@smarter.sh/ui-chat 0.2.14 → 0.7.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/LICENSE +2 -2
- package/README.md +130 -128
- package/dist/smarter-chat-library.es.js +44274 -10767
- package/dist/smarter-chat-library.es.js.map +1 -1
- package/dist/smarter-chat-library.umd.js +657 -362
- package/dist/smarter-chat-library.umd.js.map +1 -1
- package/dist/types/src/components/AppTitle/Component.d.ts +13 -0
- package/dist/types/src/components/AppTitle/index.d.ts +2 -0
- package/dist/types/src/components/Console/Component.d.ts +17 -0
- package/dist/types/src/components/Console/ServerLogs.d.ts +8 -0
- package/dist/types/src/components/Console/data.d.ts +7 -0
- package/dist/types/src/components/Console/enums.d.ts +9 -0
- package/dist/types/src/components/Console/index.d.ts +2 -0
- package/dist/types/src/components/ErrorBoundary/Component.d.ts +17 -0
- package/dist/types/src/components/ErrorBoundary/index.d.ts +2 -0
- package/dist/types/src/components/SmarterChat/Component.d.ts +26 -0
- package/dist/types/src/components/SmarterChat/icons.d.ts +17 -0
- package/dist/types/src/components/SmarterChat/index.d.ts +2 -0
- package/dist/types/src/const.d.ts +5 -0
- package/dist/types/src/index.d.ts +12 -0
- package/dist/types/src/lib/ansi.d.ts +33 -0
- package/dist/types/src/lib/api.d.ts +73 -0
- package/dist/types/src/lib/code.d.ts +32 -0
- package/dist/types/src/lib/cookie.d.ts +17 -0
- package/dist/types/src/lib/enums.d.ts +26 -0
- package/dist/types/src/lib/layout.d.ts +42 -0
- package/dist/types/src/lib/logStream.d.ts +30 -0
- package/dist/types/src/lib/math.d.ts +18 -0
- package/dist/types/src/lib/mermaid.d.ts +27 -0
- package/dist/types/src/lib/messages.d.ts +52 -0
- package/dist/types/src/types.d.ts +143 -0
- package/dist/ui-chat.css +2 -1
- package/package.json +89 -57
- package/src/components/Console/Component.css +0 -47
- package/src/components/Console/Component.jsx +0 -186
- package/src/components/Console/HeadStyles.jsx +0 -20
- package/src/components/Console/enums.js +0 -7
- package/src/components/Console/index.js +0 -2
- package/src/components/ErrorModal/ErrorModal.css +0 -35
- package/src/components/ErrorModal/ErrorModal.jsx +0 -56
- package/src/components/ErrorModal/index.js +0 -3
- package/src/components/SmarterChat/Component.jsx +0 -427
- package/src/components/SmarterChat/ErrorBoundary.jsx +0 -32
- package/src/components/SmarterChat/Layout.js +0 -47
- package/src/components/SmarterChat/api.js +0 -200
- package/src/components/SmarterChat/enums.js +0 -17
- package/src/components/SmarterChat/index.js +0 -3
- package/src/components/SmarterChat/styles.css +0 -149
- package/src/components/SmarterChat/utils.jsx +0 -148
- package/src/components/enums.js +0 -1
- package/src/components/index.js +0 -3
- package/src/components/shared/cookie.js +0 -51
- package/src/constants.js +0 -2
- package/src/index.js +0 -4
- package/src/types/index.js +0 -2
- package/src/types/propTypes.js +0 -154
- package/src/version.js +0 -2
- package/types/index.d.ts +0 -17
|
@@ -1,115 +1,68 @@
|
|
|
1
|
-
(function(Ge,ne){typeof exports=="object"&&typeof module<"u"?ne(exports,require("react/jsx-runtime"),require("react"),require("react-modal"),require("react-helmet")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-modal","react-helmet"],ne):(Ge=typeof globalThis<"u"?globalThis:Ge||self,ne(Ge.SmarterChatLibrary={},Ge.jsxRuntime,Ge.React,Ge.ReactModal,Ge.reactHelmet))})(this,(function(Ge,ne,w,fl,dl){"use strict";function fa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vr={exports:{}},mr={exports:{}},ke={};/** @license React v16.13.1
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
*/function Dn(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Dn=function(t){return typeof t}:Dn=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dn(e)}function Cl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Nl(e,t,r){return t&&xl(e.prototype,t),e}function kl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),n.forEach(function(a){kl(e,a,r[a])})}return e}function Pi(e,t){return Tl(e)||Al(e,t)||Ml()}function Tl(e){if(Array.isArray(e))return e}function Al(e,t){var r=[],n=!0,a=!1,o=void 0;try{for(var i=e[Symbol.iterator](),s;!(n=(s=i.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(c){a=!0,o=c}finally{try{!n&&i.return!=null&&i.return()}finally{if(a)throw o}}return r}function Ml(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}var Ci=function(){},_a={},xi={},Il=null,Ni={mark:Ci,measure:Ci};try{typeof window<"u"&&(_a=window),typeof document<"u"&&(xi=document),typeof MutationObserver<"u"&&(Il=MutationObserver),typeof performance<"u"&&(Ni=performance)}catch{}var $l=_a.navigator||{},ki=$l.userAgent,Ti=ki===void 0?"":ki,br=_a,et=xi,yr=Ni;br.document;var wa=!!et.documentElement&&!!et.head&&typeof et.addEventListener=="function"&&typeof et.createElement=="function";~Ti.indexOf("MSIE")||~Ti.indexOf("Trident/");var Mt="___FONT_AWESOME___",Ai="fa",Mi="svg-inline--fa",Ll="data-fa-i2svg";(function(){try{return process.env.NODE_ENV==="production"}catch{return!1}})();var Ea={GROUP:"group",PRIMARY:"primary",SECONDARY:"secondary"},Ii=br.FontAwesomeConfig||{};function Dl(e){var t=et.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Rl(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(et&&typeof et.querySelector=="function"){var Fl=[["data-family-prefix","familyPrefix"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];Fl.forEach(function(e){var t=Pi(e,2),r=t[0],n=t[1],a=Rl(Dl(r));a!=null&&(Ii[n]=a)})}var zl={familyPrefix:Ai,replacementClass:Mi,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},Sa=Ne({},zl,Ii);Sa.autoReplaceSvg||(Sa.observeMutations=!1);var lt=Ne({},Sa);br.FontAwesomeConfig=lt;var It=br||{};It[Mt]||(It[Mt]={}),It[Mt].styles||(It[Mt].styles={}),It[Mt].hooks||(It[Mt].hooks={}),It[Mt].shims||(It[Mt].shims=[]);var Ct=It[Mt],Wl=[],Bl=function e(){et.removeEventListener("DOMContentLoaded",e),ja=1,Wl.map(function(t){return t()})},ja=!1;wa&&(ja=(et.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(et.readyState),ja||et.addEventListener("DOMContentLoaded",Bl));var Pa="pending",$i="settled",gr="fulfilled",Or="rejected",Hl=function(){},Li=typeof global<"u"&&typeof global.process<"u"&&typeof global.process.emit=="function",Yl=typeof setImmediate>"u"?setTimeout:setImmediate,Rn=[],Ca;function ql(){for(var e=0;e<Rn.length;e++)Rn[e][0](Rn[e][1]);Rn=[],Ca=!1}function _r(e,t){Rn.push([e,t]),Ca||(Ca=!0,Yl(ql,0))}function Vl(e,t){function r(a){xa(t,a)}function n(a){Fn(t,a)}try{e(r,n)}catch(a){n(a)}}function Di(e){var t=e.owner,r=t._state,n=t._data,a=e[r],o=e.then;if(typeof a=="function"){r=gr;try{n=a(n)}catch(i){Fn(o,i)}}Ri(o,n)||(r===gr&&xa(o,n),r===Or&&Fn(o,n))}function Ri(e,t){var r;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&(typeof t=="function"||Dn(t)==="object")){var n=t.then;if(typeof n=="function")return n.call(t,function(a){r||(r=!0,t===a?Fi(e,a):xa(e,a))},function(a){r||(r=!0,Fn(e,a))}),!0}}catch(a){return r||Fn(e,a),!0}return!1}function xa(e,t){(e===t||!Ri(e,t))&&Fi(e,t)}function Fi(e,t){e._state===Pa&&(e._state=$i,e._data=t,_r(Ul,e))}function Fn(e,t){e._state===Pa&&(e._state=$i,e._data=t,_r(Xl,e))}function zi(e){e._then=e._then.forEach(Di)}function Ul(e){e._state=gr,zi(e)}function Xl(e){e._state=Or,zi(e),!e._handled&&Li&&global.process.emit("unhandledRejection",e._data,e)}function Kl(e){global.process.emit("rejectionHandled",e)}function pt(e){if(typeof e!="function")throw new TypeError("Promise resolver "+e+" is not a function");if(!(this instanceof pt))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],Vl(e,this)}pt.prototype={constructor:pt,_state:Pa,_then:null,_data:void 0,_handled:!1,then:function(t,r){var n={owner:this,then:new this.constructor(Hl),fulfilled:t,rejected:r};return(r||t)&&!this._handled&&(this._handled=!0,this._state===Or&&Li&&_r(Kl,this)),this._state===gr||this._state===Or?_r(Di,n):this._then.push(n),n.then},catch:function(t){return this.then(null,t)}},pt.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.all().");return new pt(function(t,r){var n=[],a=0;function o(c){return a++,function(l){n[c]=l,--a||t(n)}}for(var i=0,s;i<e.length;i++)s=e[i],s&&typeof s.then=="function"?s.then(o(i),r):n[i]=s;a||t(n)})},pt.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.race().");return new pt(function(t,r){for(var n=0,a;n<e.length;n++)a=e[n],a&&typeof a.then=="function"?a.then(t,r):t(a)})},pt.resolve=function(e){return e&&Dn(e)==="object"&&e.constructor===pt?e:new pt(function(t){t(e)})},pt.reject=function(e){return new pt(function(t,r){r(e)})};var rn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Gl(e){if(!(!e||!wa)){var t=et.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var r=et.head.childNodes,n=null,a=r.length-1;a>-1;a--){var o=r[a],i=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(i)>-1&&(n=o)}return et.head.insertBefore(t,n),e}}var Jl="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function wr(){for(var e=12,t="";e-- >0;)t+=Jl[Math.random()*62|0];return t}function Wi(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Zl(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,'="').concat(Wi(e[r]),'" ')},"").trim()}function Bi(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,": ").concat(e[r],";")},"")}function Hi(e){return e.size!==rn.size||e.x!==rn.x||e.y!==rn.y||e.rotate!==rn.rotate||e.flipX||e.flipY}function Yi(e){var t=e.transform,r=e.containerWidth,n=e.iconWidth,a={transform:"translate(".concat(r/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),i="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)"),c={transform:"".concat(o," ").concat(i," ").concat(s)},l={transform:"translate(".concat(n/2*-1," -256)")};return{outer:a,inner:c,path:l}}var Na={x:0,y:0,width:"100%",height:"100%"};function qi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function Ql(e){return e.tag==="g"?e.children:[e]}function eu(e){var t=e.children,r=e.attributes,n=e.main,a=e.mask,o=e.maskId,i=e.transform,s=n.width,c=n.icon,l=a.width,u=a.icon,h=Yi({transform:i,containerWidth:l,iconWidth:s}),b={tag:"rect",attributes:Ne({},Na,{fill:"white"})},g=c.children?{children:c.children.map(qi)}:{},_={tag:"g",attributes:Ne({},h.inner),children:[qi(Ne({tag:c.tag,attributes:Ne({},c.attributes,h.path)},g))]},E={tag:"g",attributes:Ne({},h.outer),children:[_]},L="mask-".concat(o||wr()),I="clip-".concat(o||wr()),P={tag:"mask",attributes:Ne({},Na,{id:L,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[b,E]},z={tag:"defs",children:[{tag:"clipPath",attributes:{id:I},children:Ql(u)},P]};return t.push(z,{tag:"rect",attributes:Ne({fill:"currentColor","clip-path":"url(#".concat(I,")"),mask:"url(#".concat(L,")")},Na)}),{children:t,attributes:r}}function tu(e){var t=e.children,r=e.attributes,n=e.main,a=e.transform,o=e.styles,i=Bi(o);if(i.length>0&&(r.style=i),Hi(a)){var s=Yi({transform:a,containerWidth:n.width,iconWidth:n.width});t.push({tag:"g",attributes:Ne({},s.outer),children:[{tag:"g",attributes:Ne({},s.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:Ne({},n.icon.attributes,s.path)}]}]})}else t.push(n.icon);return{children:t,attributes:r}}function nu(e){var t=e.children,r=e.main,n=e.mask,a=e.attributes,o=e.styles,i=e.transform;if(Hi(i)&&r.found&&!n.found){var s=r.width,c=r.height,l={x:s/c/2,y:.5};a.style=Bi(Ne({},o,{"transform-origin":"".concat(l.x+i.x/16,"em ").concat(l.y+i.y/16,"em")}))}return[{tag:"svg",attributes:a,children:t}]}function ru(e){var t=e.prefix,r=e.iconName,n=e.children,a=e.attributes,o=e.symbol,i=o===!0?"".concat(t,"-").concat(lt.familyPrefix,"-").concat(r):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Ne({},a,{id:i}),children:n}]}]}function au(e){var t=e.icons,r=t.main,n=t.mask,a=e.prefix,o=e.iconName,i=e.transform,s=e.symbol,c=e.title,l=e.maskId,u=e.titleId,h=e.extra,b=e.watchable,g=b===void 0?!1:b,_=n.found?n:r,E=_.width,L=_.height,I=a==="fak",P=I?"":"fa-w-".concat(Math.ceil(E/L*16)),z=[lt.replacementClass,o?"".concat(lt.familyPrefix,"-").concat(o):"",P].filter(function(M){return h.classes.indexOf(M)===-1}).filter(function(M){return M!==""||!!M}).concat(h.classes).join(" "),f={children:[],attributes:Ne({},h.attributes,{"data-prefix":a,"data-icon":o,class:z,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(E," ").concat(L)})},S=I&&!~h.classes.indexOf("fa-fw")?{width:"".concat(E/L*16*.0625,"em")}:{};g&&(f.attributes[Ll]=""),c&&f.children.push({tag:"title",attributes:{id:f.attributes["aria-labelledby"]||"title-".concat(u||wr())},children:[c]});var D=Ne({},f,{prefix:a,iconName:o,main:r,mask:n,maskId:l,transform:i,symbol:s,styles:Ne({},S,h.styles)}),F=n.found&&r.found?eu(D):tu(D),K=F.children,C=F.attributes;return D.children=K,D.attributes=C,s?ru(D):nu(D)}lt.measurePerformance&&yr&&yr.mark&&yr.measure;var ka=function(t,r,n,a){var o=Object.keys(t),i=o.length,s=r,c,l,u;for(n===void 0?(c=1,u=t[o[0]]):(c=0,u=n);c<i;c++)l=o[c],u=s(u,t[l],l,t);return u};function Vi(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.skipHooks,a=n===void 0?!1:n,o=Object.keys(t).reduce(function(i,s){var c=t[s],l=!!c.icon;return l?i[c.iconName]=c.icon:i[s]=c,i},{});typeof Ct.hooks.addPack=="function"&&!a?Ct.hooks.addPack(e,o):Ct.styles[e]=Ne({},Ct.styles[e]||{},o),e==="fas"&&Vi("fa",t)}var Ui=Ct.styles,ou=Ct.shims,Xi=function(){var t=function(a){return ka(Ui,function(o,i,s){return o[s]=ka(i,a,{}),o},{})};t(function(n,a,o){return a[3]&&(n[a[3]]=o),n}),t(function(n,a,o){var i=a[2];return n[o]=o,i.forEach(function(s){n[s]=o}),n});var r="far"in Ui;ka(ou,function(n,a){var o=a[0],i=a[1],s=a[2];return i==="far"&&!r&&(i="fas"),n[o]={prefix:i,iconName:s},n},{})};Xi(),Ct.styles;function Ki(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}function Gi(e){var t=e.tag,r=e.attributes,n=r===void 0?{}:r,a=e.children,o=a===void 0?[]:a;return typeof e=="string"?Wi(e):"<".concat(t," ").concat(Zl(n),">").concat(o.map(Gi).join(""),"</").concat(t,">")}var iu=function(t){var r={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t?t.toLowerCase().split(" ").reduce(function(n,a){var o=a.toLowerCase().split("-"),i=o[0],s=o.slice(1).join("-");if(i&&s==="h")return n.flipX=!0,n;if(i&&s==="v")return n.flipY=!0,n;if(s=parseFloat(s),isNaN(s))return n;switch(i){case"grow":n.size=n.size+s;break;case"shrink":n.size=n.size-s;break;case"left":n.x=n.x-s;break;case"right":n.x=n.x+s;break;case"up":n.y=n.y-s;break;case"down":n.y=n.y+s;break;case"rotate":n.rotate=n.rotate+s;break}return n},r):r};function Ta(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=new Error().stack}Ta.prototype=Object.create(Error.prototype),Ta.prototype.constructor=Ta;var Er={fill:"currentColor"},Ji={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};Ne({},Er,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"});var Aa=Ne({},Ji,{attributeName:"opacity"});Ne({},Er,{cx:"256",cy:"364",r:"28"}),Ne({},Ji,{attributeName:"r",values:"28;14;28;28;14;28;"}),Ne({},Aa,{values:"1;0;1;1;0;1;"}),Ne({},Er,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),Ne({},Aa,{values:"1;0;0;0;0;1;"}),Ne({},Er,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),Ne({},Aa,{values:"0;0;1;1;0;0;"}),Ct.styles;function Zi(e){var t=e[0],r=e[1],n=e.slice(4),a=Pi(n,1),o=a[0],i=null;return Array.isArray(o)?i={tag:"g",attributes:{class:"".concat(lt.familyPrefix,"-").concat(Ea.GROUP)},children:[{tag:"path",attributes:{class:"".concat(lt.familyPrefix,"-").concat(Ea.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(lt.familyPrefix,"-").concat(Ea.PRIMARY),fill:"currentColor",d:o[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:t,height:r,icon:i}}Ct.styles;var su=`svg:not(:root).svg-inline--fa {
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("react"),require("react/jsx-runtime")):typeof define==`function`&&define.amd?define([`exports`,`react`,`react/jsx-runtime`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.SmarterChatLibrary={},e.React,e.jsxRuntime))})(this,function(e,t,n){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var r=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},u=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),d=(e,t)=>{let n={};for(var r in e)i(n,r,{get:e[r],enumerable:!0});return t||i(n,Symbol.toStringTag,{value:`Module`}),n},f=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var s=o(t),l=0,u=s.length,d;l<u;l++)d=s[l],!c.call(e,d)&&d!==n&&i(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=a(t,d))||r.enumerable});return e},p=(e,t,n)=>(n=e==null?{}:r(s(e)),f(t||!e||!e.__esModule||!c.call(e,`default`)?i(n,`default`,{value:e,enumerable:!0}):n,e)),m=e=>c.call(e,`module.exports`)?e[`module.exports`]:f(i({},`__esModule`,{value:!0}),e);t=p(t);var h=u((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),g=u((e=>{process.env.NODE_ENV!==`production`&&(function(){"use strict";var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)}function x(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case l:case u:case i:case o:case a:case f:return p;default:var g=p&&p.$$typeof;switch(g){case c:case d:case h:case m:case s:return g;default:return t}}case r:return t}}}var S=l,C=u,w=c,T=s,E=n,D=d,O=i,k=h,A=m,ee=r,j=o,te=a,M=f,ne=!1;function re(e){return ne||(ne=!0,console.warn(`The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.`)),ie(e)||x(e)===l}function ie(e){return x(e)===u}function ae(e){return x(e)===c}function oe(e){return x(e)===s}function N(e){return typeof e==`object`&&!!e&&e.$$typeof===n}function se(e){return x(e)===d}function ce(e){return x(e)===i}function le(e){return x(e)===h}function ue(e){return x(e)===m}function de(e){return x(e)===r}function fe(e){return x(e)===o}function pe(e){return x(e)===a}function me(e){return x(e)===f}e.AsyncMode=S,e.ConcurrentMode=C,e.ContextConsumer=w,e.ContextProvider=T,e.Element=E,e.ForwardRef=D,e.Fragment=O,e.Lazy=k,e.Memo=A,e.Portal=ee,e.Profiler=j,e.StrictMode=te,e.Suspense=M,e.isAsyncMode=re,e.isConcurrentMode=ie,e.isContextConsumer=ae,e.isContextProvider=oe,e.isElement=N,e.isForwardRef=se,e.isFragment=ce,e.isLazy=le,e.isMemo=ue,e.isPortal=de,e.isProfiler=fe,e.isStrictMode=pe,e.isSuspense=me,e.isValidElementType=b,e.typeOf=x})()})),_=u(((e,t)=>{t.exports=process.env.NODE_ENV===`production`?h():g()})),v=u(((e,t)=>{var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),y=u(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),b=u(((e,t)=>{t.exports=Function.call.bind(Object.prototype.hasOwnProperty)})),x=u(((e,t)=>{var n=function(){};if(process.env.NODE_ENV!==`production`){var r=y(),i={},a=b();n=function(e){var t=`Warning: `+e;typeof console<`u`&&console.error(t);try{throw Error(t)}catch{}}}function o(e,t,o,s,c){if(process.env.NODE_ENV!==`production`){for(var l in e)if(a(e,l)){var u;try{if(typeof e[l]!=`function`){var d=Error((s||`React class`)+`: `+o+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name=`Invariant Violation`,d}u=e[l](t,l,s,o,null,r)}catch(e){u=e}if(u&&!(u instanceof Error)&&n((s||`React class`)+`: type specification of `+o+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+`. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).`),u instanceof Error&&!(u.message in i)){i[u.message]=!0;var f=c?c():``;n(`Failed `+o+` type: `+u.message+(f??``))}}}}o.resetWarningCache=function(){process.env.NODE_ENV!==`production`&&(i={})},t.exports=o})),S=u(((e,t)=>{var n=_(),r=v(),i=y(),a=b(),o=x(),s=function(){};process.env.NODE_ENV!==`production`&&(s=function(e){var t=`Warning: `+e;typeof console<`u`&&console.error(t);try{throw Error(t)}catch{}});function c(){return null}t.exports=function(e,t){var l=typeof Symbol==`function`&&Symbol.iterator,u=`@@iterator`;function d(e){var t=e&&(l&&e[l]||e[u]);if(typeof t==`function`)return t}var f=`<<anonymous>>`,p={array:_(`array`),bigint:_(`bigint`),bool:_(`boolean`),func:_(`function`),number:_(`number`),object:_(`object`),string:_(`string`),symbol:_(`symbol`),any:v(),arrayOf:y,element:b(),elementType:x(),instanceOf:S,node:E(),objectOf:w,oneOf:C,oneOfType:T,shape:O,exact:k};function m(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}function h(e,t){this.message=e,this.data=t&&typeof t==`object`?t:{},this.stack=``}h.prototype=Error.prototype;function g(e){if(process.env.NODE_ENV!==`production`)var n={},r=0;function a(a,o,c,l,u,d,p){if(l||=f,d||=c,p!==i){if(t){var m=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name=`Invariant Violation`,m}if(process.env.NODE_ENV!==`production`&&typeof console<`u`){var g=l+`:`+c;!n[g]&&r<3&&(s("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[g]=!0,r++)}}return o[c]==null?a?o[c]===null?new h(`The `+u+" `"+d+"` is marked as required "+("in `"+l+"`, but its value is `null`.")):new h(`The `+u+" `"+d+"` is marked as required in "+("`"+l+"`, but its value is `undefined`.")):null:e(o,c,l,u,d)}var o=a.bind(null,!1);return o.isRequired=a.bind(null,!0),o}function _(e){function t(t,n,r,i,a,o){var s=t[n];if(j(s)!==e){var c=te(s);return new h(`Invalid `+i+" `"+a+"` of type "+("`"+c+"` supplied to `"+r+"`, expected ")+("`"+e+"`."),{expectedType:e})}return null}return g(t)}function v(){return g(c)}function y(e){function t(t,n,r,a,o){if(typeof e!=`function`)return new h("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s)){var c=j(s);return new h(`Invalid `+a+" `"+o+"` of type "+("`"+c+"` supplied to `"+r+"`, expected an array."))}for(var l=0;l<s.length;l++){var u=e(s,l,r,a,o+`[`+l+`]`,i);if(u instanceof Error)return u}return null}return g(t)}function b(){function t(t,n,r,i,a){var o=t[n];if(!e(o)){var s=j(o);return new h(`Invalid `+i+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected a single ReactElement."))}return null}return g(t)}function x(){function e(e,t,r,i,a){var o=e[t];if(!n.isValidElementType(o)){var s=j(o);return new h(`Invalid `+i+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected a single ReactElement type."))}return null}return g(e)}function S(e){function t(t,n,r,i,a){if(!(t[n]instanceof e)){var o=e.name||f,s=ne(t[n]);return new h(`Invalid `+i+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected ")+("instance of `"+o+"`."))}return null}return g(t)}function C(e){if(!Array.isArray(e))return process.env.NODE_ENV!==`production`&&(arguments.length>1?s(`Invalid arguments supplied to oneOf, expected an array, got `+arguments.length+` arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).`):s(`Invalid argument supplied to oneOf, expected an array.`)),c;function t(t,n,r,i,a){for(var o=t[n],s=0;s<e.length;s++)if(m(o,e[s]))return null;var c=JSON.stringify(e,function(e,t){return te(t)===`symbol`?String(t):t});return new h(`Invalid `+i+" `"+a+"` of value `"+String(o)+"` "+("supplied to `"+r+"`, expected one of "+c+`.`))}return g(t)}function w(e){function t(t,n,r,o,s){if(typeof e!=`function`)return new h("Property `"+s+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var c=t[n],l=j(c);if(l!==`object`)return new h(`Invalid `+o+" `"+s+"` of type "+("`"+l+"` supplied to `"+r+"`, expected an object."));for(var u in c)if(a(c,u)){var d=e(c,u,r,o,s+`.`+u,i);if(d instanceof Error)return d}return null}return g(t)}function T(e){if(!Array.isArray(e))return process.env.NODE_ENV!==`production`&&s(`Invalid argument supplied to oneOfType, expected an instance of array.`),c;for(var t=0;t<e.length;t++){var n=e[t];if(typeof n!=`function`)return s(`Invalid argument supplied to oneOfType. Expected an array of check functions, but received `+M(n)+` at index `+t+`.`),c}function r(t,n,r,o,s){for(var c=[],l=0;l<e.length;l++){var u=e[l],d=u(t,n,r,o,s,i);if(d==null)return null;d.data&&a(d.data,`expectedType`)&&c.push(d.data.expectedType)}var f=c.length>0?`, expected one of type [`+c.join(`, `)+`]`:``;return new h(`Invalid `+o+" `"+s+"` supplied to "+("`"+r+"`"+f+`.`))}return g(r)}function E(){function e(e,t,n,r,i){return A(e[t])?null:new h(`Invalid `+r+" `"+i+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return g(e)}function D(e,t,n,r,i){return new h((e||`React class`)+`: `+t+" type `"+n+`.`+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function O(e){function t(t,n,r,a,o){var s=t[n],c=j(s);if(c!==`object`)return new h(`Invalid `+a+" `"+o+"` of type `"+c+"` "+("supplied to `"+r+"`, expected `object`."));for(var l in e){var u=e[l];if(typeof u!=`function`)return D(r,a,o,l,te(u));var d=u(s,l,r,a,o+`.`+l,i);if(d)return d}return null}return g(t)}function k(e){function t(t,n,o,s,c){var l=t[n],u=j(l);if(u!==`object`)return new h(`Invalid `+s+" `"+c+"` of type `"+u+"` "+("supplied to `"+o+"`, expected `object`."));for(var d in r({},t[n],e)){var f=e[d];if(a(e,d)&&typeof f!=`function`)return D(o,s,c,d,te(f));if(!f)return new h(`Invalid `+s+" `"+c+"` key `"+d+"` supplied to `"+o+`\`.
|
|
2
|
+
Bad object: `+JSON.stringify(t[n],null,` `)+`
|
|
3
|
+
Valid keys: `+JSON.stringify(Object.keys(e),null,` `));var p=f(l,d,o,s,c+`.`+d,i);if(p)return p}return null}return g(t)}function A(t){switch(typeof t){case`number`:case`string`:case`undefined`:return!0;case`boolean`:return!t;case`object`:if(Array.isArray(t))return t.every(A);if(t===null||e(t))return!0;var n=d(t);if(n){var r=n.call(t),i;if(n!==t.entries){for(;!(i=r.next()).done;)if(!A(i.value))return!1}else for(;!(i=r.next()).done;){var a=i.value;if(a&&!A(a[1]))return!1}}else return!1;return!0;default:return!1}}function ee(e,t){return e===`symbol`?!0:t?t[`@@toStringTag`]===`Symbol`||typeof Symbol==`function`&&t instanceof Symbol:!1}function j(e){var t=typeof e;return Array.isArray(e)?`array`:e instanceof RegExp?`object`:ee(t,e)?`symbol`:t}function te(e){if(e==null)return``+e;var t=j(e);if(t===`object`){if(e instanceof Date)return`date`;if(e instanceof RegExp)return`regexp`}return t}function M(e){var t=te(e);switch(t){case`array`:case`object`:return`an `+t;case`boolean`:case`date`:case`regexp`:return`a `+t;default:return t}}function ne(e){return!e.constructor||!e.constructor.name?f:e.constructor.name}return p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p}})),C=u(((e,t)=>{var n=y();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),w=u(((e,t)=>{if(process.env.NODE_ENV!==`production`){var n=_();t.exports=S()(n.isElement,!0)}else t.exports=C()()})),T=u(((e,t)=>{(function(){"use strict";var e={}.hasOwnProperty;function n(){for(var e=``,t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,r(n)))}return e}function r(t){if(typeof t==`string`||typeof t==`number`)return t;if(typeof t!=`object`)return``;if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes(`[native code]`))return t.toString();var r=``;for(var a in t)e.call(t,a)&&t[a]&&(r=i(r,a));return r}function i(e,t){return t?e?e+` `+t:e+t:e}t!==void 0&&t.exports?(n.default=n,t.exports=n):typeof define==`function`&&typeof define.amd==`object`&&define.amd?define(`classnames`,[],function(){return n}):window.classNames=n})()})),E=p(w()),D=p(T()),O=[`available`,`unavailable`,`away`,`dnd`,`invisible`,`eager`],k=[`xs`,`sm`,`md`,`lg`,`fluid`];function A(e){"@babel/helpers - typeof";return A=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},A(e)}var ee=[`status`,`size`,`className`,`name`,`selected`,`children`];function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j.apply(null,arguments)}function te(e,t,n){return(t=M(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(e){var t=ne(e,`string`);return A(t)==`symbol`?t:t+``}function ne(e,t){if(A(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(A(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function re(e,t){if(e==null)return{};var n,r,i=ie(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ie(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var ae=function(e){var n=e.status,r=e.size,i=r===void 0?`md`:r,a=e.className,o=e.name,s=e.selected,c=e.children,l=re(e,ee),u=`cs-status`,d=t.default.createElement(`div`,{className:`${u}__bullet`}),f=o||c;return t.default.createElement(`div`,j({},l,{"aria-selected":s===!0?``:null,className:(0,D.default)(u,`${u}--${i}`,`${u}--${n}`,te({},`${u}--selected`,s),te({},`${u}--named`,f),a)}),d,f&&t.default.createElement(`div`,{className:`${u}__name`},o||c))};process.env.NODE_ENV!==`production`&&(ae.propTypes={children:E.default.node,status:E.default.oneOf(O).isRequired,size:E.default.oneOf(k),name:E.default.node,selected:E.default.bool,className:E.default.string});function oe(e){"@babel/helpers - typeof";return oe=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},oe(e)}var N=[`name`,`src`,`size`,`status`,`className`,`active`,`children`];function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},se.apply(null,arguments)}function ce(e,t,n){return(t=le(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function le(e){var t=ue(e,`string`);return oe(t)==`symbol`?t:t+``}function ue(e,t){if(oe(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(oe(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function de(e,t){if(e==null)return{};var n,r,i=fe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function fe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function pe(e,n){var r=e.name,i=r===void 0?``:r,a=e.src,o=a===void 0?``:a,s=e.size,c=s===void 0?`md`:s,l=e.status,u=e.className,d=e.active,f=d!==void 0&&d,p=e.children,m=de(e,N),h=`cs-avatar`,g=c===void 0?``:` ${h}--${c}`,_=(0,t.useRef)();return(0,t.useImperativeHandle)(n,function(){return{focus:function(){return _.current.focus()}}}),t.default.createElement(`div`,se({ref:_},m,{className:(0,D.default)(`${h}${g}`,ce({},`${h}--active`,f),u)}),p||t.default.createElement(t.default.Fragment,null,t.default.createElement(`img`,{src:o,alt:i}),typeof l==`string`&&t.default.createElement(ae,{status:l,size:c}),` `))}var me=(0,t.forwardRef)(pe);me.displayName=`Avatar`,me.propTypes={children:E.default.node,name:E.default.string,src:E.default.string,size:E.default.oneOf(k),status:E.default.oneOf(O),active:E.default.bool,className:E.default.string},process.env.NODE_ENV!==`production`&&(pe.propTypes=me.propTypes);var he=me;function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ge(Object(n),!0).forEach(function(t){ve(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ve(e,t,n){return(t=ye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ye(e){var t=be(e,`string`);return xe(t)==`symbol`?t:t+``}function be(e,t){if(xe(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(xe(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function xe(e){"@babel/helpers - typeof";return xe=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},xe(e)}var Se=function(){},Ce=function(e){return e==null||Array.isArray(e)&&e.length===0},we=function(e,n){var r=[],i=n.map(function(e){return e.displayName||e.name});return t.default.Children.toArray(e).forEach(function(e){var a=n.indexOf(e.type);if(a!==-1)r[a]=e;else{var o=e?.props?.as??e?.props?.is,s=xe(o);if(s===`function`){var c=n.indexOf(o);c!==-1&&(r[c]=t.default.cloneElement(e,_e(_e({},e.props),{},{as:null})))}else if(s===`object`){var l=o.name||o.displayName,u=i.indexOf(l);u!==-1&&(r[u]=t.default.cloneElement(e,_e(_e({},e.props),{},{as:null})))}else if(s===`string`){var d=i.indexOf(o);d!==-1&&(r[d]=e)}}}),r},Te=function(e){if(typeof e==`string`)return e;if(`type`in e){var t=xe(e.type);if(t===`function`||t===`object`){if(`displayName`in e.type)return e.type.displayName;if(`name`in e.type)return e.type.name}else if(t===`string`)return e.type;return`undefined`}return`undefined`},Ee=function(e){return function(n,r,i){var a=e.map(function(e){return e.name||e.displayName}),o=t.default.Children.toArray(n[r]).find(function(t){if(typeof t==`string`&&t.trim().length===0)return!1;if(e.indexOf(t.type)===-1){var n=t?.props?.as||t?.props?.is,r=xe(n);if(r===`function`)return e.indexOf(n)===-1;if(r===`object`){var i=n.name||n.displayName;return a.indexOf(i)===-1}return r!==`string`||a.indexOf(n)===-1}});if(o!==void 0){var s=`"${Te(o)}" is not a valid child for ${i}. Allowed types: ${e.map(function(e){return e.name||e.displayName}).join(`, `)}`;return Error(s)}}},De=[`children`,`size`,`className`,`max`,`activeIndex`,`hoverToFront`];function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oe.apply(null,arguments)}function ke(e,t){if(e==null)return{};var n,r,i=Ae(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ae(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var je=function(e){var n=e.children,r=e.size,i=r===void 0?`md`:r,a=e.className,o=e.max,s=e.activeIndex,c=e.hoverToFront,l=ke(e,De),u=`cs-avatar-group`,d=typeof o==`number`&&t.default.Children.count(n)>o?t.default.Children.toArray(n).reverse().slice(0,o):t.default.Children.toArray(n).reverse(),f=typeof s==`number`?d.length-s-1:void 0;return t.default.createElement(`div`,Oe({},l,{className:(0,D.default)(u,`${u}--${i}`,a)}),d.map(function(e,n){var r=typeof f==`number`?{active:f===n}:{};return c===!0&&(r.className=(0,D.default)(`cs-avatar--active-on-hover`,e.props.className)),t.default.cloneElement(e,r)}))};je.displayName=`AvatarGroup`,process.env.NODE_ENV!==`production`&&(je.propTypes={children:Ee([he]),className:E.default.string,max:E.default.number,size:E.default.oneOf([`xs`,`sm`,`md`,`lg`,`fluid`]),activeIndex:E.default.number,hoverToFront:E.default.bool});var Me=je,Ne=[`children`,`className`,`icon`,`border`,`labelPosition`];function Pe(){return Pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pe.apply(null,arguments)}function Fe(e,t){if(e==null)return{};var n,r,i=Ie(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ie(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Le=function(e){var n=e.children,r=n===void 0?void 0:n,i=e.className,a=i===void 0?``:i,o=e.icon,s=o===void 0?void 0:o,c=e.border,l=c!==void 0&&c,u=e.labelPosition,d=u===void 0?void 0:u,f=Fe(e,Ne),p=`cs-button`,m=d===void 0?`right`:d,h=t.default.Children.count(r)>0?`${p}--${m}`:``,g=l===!0?`${p}--border`:``;return t.default.createElement(`button`,Pe({},f,{className:(0,D.default)(p,h,g,a)}),m===`left`&&r,s,m===`right`&&r)};process.env.NODE_ENV!==`production`&&(Le.propTypes={children:E.default.node,className:E.default.string,icon:E.default.node,labelPosition:E.default.oneOf([`left`,`right`]),border:E.default.bool});function Re(e,t,n){return(t=Ve(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ze(Object(n),!0).forEach(function(t){Re(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Be(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ve(e){var t=Be(e,`string`);return typeof t==`symbol`?t:t+``}var He=()=>{},Ue={},We={},Ge=null,Ke={mark:He,measure:He};try{typeof window<`u`&&(Ue=window),typeof document<`u`&&(We=document),typeof MutationObserver<`u`&&(Ge=MutationObserver),typeof performance<`u`&&(Ke=performance)}catch{}var{userAgent:qe=``}=Ue.navigator||{},Je=Ue,Ye=We,Xe=Ge,Ze=Ke;Je.document;var Qe=!!Ye.documentElement&&!!Ye.head&&typeof Ye.addEventListener==`function`&&typeof Ye.createElement==`function`,$e=~qe.indexOf(`MSIE`)||~qe.indexOf(`Trident/`),et=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,tt=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,nt={classic:{fa:`solid`,fas:`solid`,"fa-solid":`solid`,far:`regular`,"fa-regular":`regular`,fal:`light`,"fa-light":`light`,fat:`thin`,"fa-thin":`thin`,fab:`brands`,"fa-brands":`brands`},duotone:{fa:`solid`,fad:`solid`,"fa-solid":`solid`,"fa-duotone":`solid`,fadr:`regular`,"fa-regular":`regular`,fadl:`light`,"fa-light":`light`,fadt:`thin`,"fa-thin":`thin`},sharp:{fa:`solid`,fass:`solid`,"fa-solid":`solid`,fasr:`regular`,"fa-regular":`regular`,fasl:`light`,"fa-light":`light`,fast:`thin`,"fa-thin":`thin`},"sharp-duotone":{fa:`solid`,fasds:`solid`,"fa-solid":`solid`,fasdr:`regular`,"fa-regular":`regular`,fasdl:`light`,"fa-light":`light`,fasdt:`thin`,"fa-thin":`thin`}},rt={GROUP:`duotone-group`,SWAP_OPACITY:`swap-opacity`,PRIMARY:`primary`,SECONDARY:`secondary`},it=[`fa-classic`,`fa-duotone`,`fa-sharp`,`fa-sharp-duotone`],at=`classic`,ot=`duotone`,st=[at,ot,`sharp`,`sharp-duotone`],ct={classic:{900:`fas`,400:`far`,normal:`far`,300:`fal`,100:`fat`},duotone:{900:`fad`,400:`fadr`,300:`fadl`,100:`fadt`},sharp:{900:`fass`,400:`fasr`,300:`fasl`,100:`fast`},"sharp-duotone":{900:`fasds`,400:`fasdr`,300:`fasdl`,100:`fasdt`}},lt={"Font Awesome 6 Free":{900:`fas`,400:`far`},"Font Awesome 6 Pro":{900:`fas`,400:`far`,normal:`far`,300:`fal`,100:`fat`},"Font Awesome 6 Brands":{400:`fab`,normal:`fab`},"Font Awesome 6 Duotone":{900:`fad`,400:`fadr`,normal:`fadr`,300:`fadl`,100:`fadt`},"Font Awesome 6 Sharp":{900:`fass`,400:`fasr`,normal:`fasr`,300:`fasl`,100:`fast`},"Font Awesome 6 Sharp Duotone":{900:`fasds`,400:`fasdr`,normal:`fasdr`,300:`fasdl`,100:`fasdt`}},ut=new Map([[`classic`,{defaultShortPrefixId:`fas`,defaultStyleId:`solid`,styleIds:[`solid`,`regular`,`light`,`thin`,`brands`],futureStyleIds:[],defaultFontWeight:900}],[`sharp`,{defaultShortPrefixId:`fass`,defaultStyleId:`solid`,styleIds:[`solid`,`regular`,`light`,`thin`],futureStyleIds:[],defaultFontWeight:900}],[`duotone`,{defaultShortPrefixId:`fad`,defaultStyleId:`solid`,styleIds:[`solid`,`regular`,`light`,`thin`],futureStyleIds:[],defaultFontWeight:900}],[`sharp-duotone`,{defaultShortPrefixId:`fasds`,defaultStyleId:`solid`,styleIds:[`solid`,`regular`,`light`,`thin`],futureStyleIds:[],defaultFontWeight:900}]]),dt={classic:{solid:`fas`,regular:`far`,light:`fal`,thin:`fat`,brands:`fab`},duotone:{solid:`fad`,regular:`fadr`,light:`fadl`,thin:`fadt`},sharp:{solid:`fass`,regular:`fasr`,light:`fasl`,thin:`fast`},"sharp-duotone":{solid:`fasds`,regular:`fasdr`,light:`fasdl`,thin:`fasdt`}},ft=[`fak`,`fa-kit`,`fakd`,`fa-kit-duotone`],pt={kit:{fak:`kit`,"fa-kit":`kit`},"kit-duotone":{fakd:`kit-duotone`,"fa-kit-duotone":`kit-duotone`}},mt=[`kit`],ht={kit:{"fa-kit":`fak`},"kit-duotone":{"fa-kit-duotone":`fakd`}},gt=[`fak`,`fakd`],_t={kit:{fak:`fa-kit`},"kit-duotone":{fakd:`fa-kit-duotone`}},vt={kit:{kit:`fak`},"kit-duotone":{"kit-duotone":`fakd`}},yt={GROUP:`duotone-group`,SWAP_OPACITY:`swap-opacity`,PRIMARY:`primary`,SECONDARY:`secondary`},bt=[`fa-classic`,`fa-duotone`,`fa-sharp`,`fa-sharp-duotone`],xt=[`fak`,`fa-kit`,`fakd`,`fa-kit-duotone`],St={"Font Awesome Kit":{400:`fak`,normal:`fak`},"Font Awesome Kit Duotone":{400:`fakd`,normal:`fakd`}},Ct={classic:{"fa-brands":`fab`,"fa-duotone":`fad`,"fa-light":`fal`,"fa-regular":`far`,"fa-solid":`fas`,"fa-thin":`fat`},duotone:{"fa-regular":`fadr`,"fa-light":`fadl`,"fa-thin":`fadt`},sharp:{"fa-solid":`fass`,"fa-regular":`fasr`,"fa-light":`fasl`,"fa-thin":`fast`},"sharp-duotone":{"fa-solid":`fasds`,"fa-regular":`fasdr`,"fa-light":`fasdl`,"fa-thin":`fasdt`}},wt={classic:[`fas`,`far`,`fal`,`fat`,`fad`],duotone:[`fadr`,`fadl`,`fadt`],sharp:[`fass`,`fasr`,`fasl`,`fast`],"sharp-duotone":[`fasds`,`fasdr`,`fasdl`,`fasdt`]},Tt={classic:{fab:`fa-brands`,fad:`fa-duotone`,fal:`fa-light`,far:`fa-regular`,fas:`fa-solid`,fat:`fa-thin`},duotone:{fadr:`fa-regular`,fadl:`fa-light`,fadt:`fa-thin`},sharp:{fass:`fa-solid`,fasr:`fa-regular`,fasl:`fa-light`,fast:`fa-thin`},"sharp-duotone":{fasds:`fa-solid`,fasdr:`fa-regular`,fasdl:`fa-light`,fasdt:`fa-thin`}},Et=[`fa-solid`,`fa-regular`,`fa-light`,`fa-thin`,`fa-duotone`,`fa-brands`],Dt=[`fa`,`fas`,`far`,`fal`,`fat`,`fad`,`fadr`,`fadl`,`fadt`,`fab`,`fass`,`fasr`,`fasl`,`fast`,`fasds`,`fasdr`,`fasdl`,`fasdt`,...bt,...Et],Ot=[`solid`,`regular`,`light`,`thin`,`duotone`,`brands`],kt=[1,2,3,4,5,6,7,8,9,10],At=kt.concat([11,12,13,14,15,16,17,18,19,20]),jt=[...Object.keys(wt),...Ot,`2xs`,`xs`,`sm`,`lg`,`xl`,`2xl`,`beat`,`border`,`fade`,`beat-fade`,`bounce`,`flip-both`,`flip-horizontal`,`flip-vertical`,`flip`,`fw`,`inverse`,`layers-counter`,`layers-text`,`layers`,`li`,`pull-left`,`pull-right`,`pulse`,`rotate-180`,`rotate-270`,`rotate-90`,`rotate-by`,`shake`,`spin-pulse`,`spin-reverse`,`spin`,`stack-1x`,`stack-2x`,`stack`,`ul`,yt.GROUP,yt.SWAP_OPACITY,yt.PRIMARY,yt.SECONDARY].concat(kt.map(e=>`${e}x`),At.map(e=>`w-${e}`)),Mt={"Font Awesome 5 Free":{900:`fas`,400:`far`},"Font Awesome 5 Pro":{900:`fas`,400:`far`,normal:`far`,300:`fal`},"Font Awesome 5 Brands":{400:`fab`,normal:`fab`},"Font Awesome 5 Duotone":{900:`fad`}},Nt=`___FONT_AWESOME___`,Pt=16,Ft=`fa`,It=`svg-inline--fa`,Lt=`data-fa-i2svg`,Rt=`data-fa-pseudo-element`,zt=`data-fa-pseudo-element-pending`,Bt=`data-prefix`,Vt=`data-icon`,Ht=`fontawesome-i2svg`,Ut=`async`,Wt=[`HTML`,`HEAD`,`STYLE`,`SCRIPT`],Gt=(()=>{try{return process.env.NODE_ENV===`production`}catch{return!1}})();function Kt(e){return new Proxy(e,{get(e,t){return t in e?e[t]:e[at]}})}var qt=P({},nt);qt[at]=P(P(P(P({},{"fa-duotone":`duotone`}),nt[at]),pt.kit),pt[`kit-duotone`]);var Jt=Kt(qt),Yt=P({},dt);Yt[at]=P(P(P(P({},{duotone:`fad`}),Yt[at]),vt.kit),vt[`kit-duotone`]);var Xt=Kt(Yt),Zt=P({},Tt);Zt[at]=P(P({},Zt[at]),_t.kit);var Qt=Kt(Zt),$t=P({},Ct);$t[at]=P(P({},$t[at]),ht.kit),Kt($t);var en=et,tn=`fa-layers-text`,nn=tt;Kt(P({},ct));var rn=[`class`,`data-prefix`,`data-icon`,`data-fa-transform`,`data-fa-mask`],an=rt,F=[...mt,...jt],on=Je.FontAwesomeConfig||{};function sn(e){var t=Ye.querySelector(`script[`+e+`]`);if(t)return t.getAttribute(e)}function cn(e){return e===``?!0:e===`false`?!1:e===`true`||e}Ye&&typeof Ye.querySelector==`function`&&[[`data-family-prefix`,`familyPrefix`],[`data-css-prefix`,`cssPrefix`],[`data-family-default`,`familyDefault`],[`data-style-default`,`styleDefault`],[`data-replacement-class`,`replacementClass`],[`data-auto-replace-svg`,`autoReplaceSvg`],[`data-auto-add-css`,`autoAddCss`],[`data-auto-a11y`,`autoA11y`],[`data-search-pseudo-elements`,`searchPseudoElements`],[`data-observe-mutations`,`observeMutations`],[`data-mutate-approach`,`mutateApproach`],[`data-keep-original-source`,`keepOriginalSource`],[`data-measure-performance`,`measurePerformance`],[`data-show-missing-icons`,`showMissingIcons`]].forEach(e=>{let[t,n]=e,r=cn(sn(t));r!=null&&(on[n]=r)});var ln={styleDefault:`solid`,familyDefault:at,cssPrefix:Ft,replacementClass:It,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:`async`,keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};on.familyPrefix&&(on.cssPrefix=on.familyPrefix);var un=P(P({},ln),on);un.autoReplaceSvg||(un.observeMutations=!1);var I={};Object.keys(ln).forEach(e=>{Object.defineProperty(I,e,{enumerable:!0,set:function(t){un[e]=t,dn.forEach(e=>e(I))},get:function(){return un[e]}})}),Object.defineProperty(I,"familyPrefix",{enumerable:!0,set:function(e){un.cssPrefix=e,dn.forEach(e=>e(I))},get:function(){return un.cssPrefix}}),Je.FontAwesomeConfig=I;var dn=[];function fn(e){return dn.push(e),()=>{dn.splice(dn.indexOf(e),1)}}var pn=Pt,mn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function hn(e){if(!e||!Qe)return;let t=Ye.createElement(`style`);t.setAttribute(`type`,`text/css`),t.innerHTML=e;let n=Ye.head.childNodes,r=null;for(let e=n.length-1;e>-1;e--){let t=n[e],i=(t.tagName||``).toUpperCase();[`STYLE`,`LINK`].indexOf(i)>-1&&(r=t)}return Ye.head.insertBefore(t,r),e}var gn=`0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`;function _n(){let e=12,t=``;for(;e-->0;)t+=gn[Math.random()*62|0];return t}function vn(e){let t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function yn(e){return e.classList?vn(e.classList):(e.getAttribute(`class`)||``).split(` `).filter(e=>e)}function bn(e){return`${e}`.replace(/&/g,`&`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/</g,`<`).replace(/>/g,`>`)}function xn(e){return Object.keys(e||{}).reduce((t,n)=>t+`${n}="${bn(e[n])}" `,``).trim()}function Sn(e){return Object.keys(e||{}).reduce((t,n)=>t+`${n}: ${e[n].trim()};`,``)}function Cn(e){return e.size!==mn.size||e.x!==mn.x||e.y!==mn.y||e.rotate!==mn.rotate||e.flipX||e.flipY}function wn(e){let{transform:t,containerWidth:n,iconWidth:r}=e;return{outer:{transform:`translate(${n/2} 256)`},inner:{transform:`${`translate(${t.x*32}, ${t.y*32}) `} ${`scale(${t.size/16*(t.flipX?-1:1)}, ${t.size/16*(t.flipY?-1:1)}) `} ${`rotate(${t.rotate} 0 0)`}`},path:{transform:`translate(${r/2*-1} -256)`}}}function Tn(e){let{transform:t,width:n=Pt,height:r=Pt,startCentered:i=!1}=e,a=``;return a+=i&&$e?`translate(${t.x/pn-n/2}em, ${t.y/pn-r/2}em) `:i?`translate(calc(-50% + ${t.x/pn}em), calc(-50% + ${t.y/pn}em)) `:`translate(${t.x/pn}em, ${t.y/pn}em) `,a+=`scale(${t.size/pn*(t.flipX?-1:1)}, ${t.size/pn*(t.flipY?-1:1)}) `,a+=`rotate(${t.rotate}deg) `,a}var En=`:root, :host {
|
|
4
|
+
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
|
|
5
|
+
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
|
|
6
|
+
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
|
|
7
|
+
--fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";
|
|
8
|
+
--fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
|
|
9
|
+
--fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";
|
|
10
|
+
--fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";
|
|
11
|
+
--fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone";
|
|
12
|
+
--fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
|
|
13
|
+
--fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
|
|
14
|
+
--fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
|
|
15
|
+
--fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
|
|
16
|
+
--fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";
|
|
17
|
+
--fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";
|
|
18
|
+
--fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";
|
|
19
|
+
--fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";
|
|
20
|
+
--fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone";
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|
24
24
|
overflow: visible;
|
|
25
|
+
box-sizing: content-box;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
.svg-inline--fa {
|
|
28
|
-
display: inline-block;
|
|
29
|
-
font-size: inherit;
|
|
29
|
+
display: var(--fa-display, inline-block);
|
|
30
30
|
height: 1em;
|
|
31
31
|
overflow: visible;
|
|
32
32
|
vertical-align: -0.125em;
|
|
33
33
|
}
|
|
34
|
-
.svg-inline--fa.fa-
|
|
35
|
-
vertical-align:
|
|
36
|
-
}
|
|
37
|
-
.svg-inline--fa.fa-w-1 {
|
|
38
|
-
width: 0.0625em;
|
|
39
|
-
}
|
|
40
|
-
.svg-inline--fa.fa-w-2 {
|
|
41
|
-
width: 0.125em;
|
|
42
|
-
}
|
|
43
|
-
.svg-inline--fa.fa-w-3 {
|
|
44
|
-
width: 0.1875em;
|
|
45
|
-
}
|
|
46
|
-
.svg-inline--fa.fa-w-4 {
|
|
47
|
-
width: 0.25em;
|
|
48
|
-
}
|
|
49
|
-
.svg-inline--fa.fa-w-5 {
|
|
50
|
-
width: 0.3125em;
|
|
51
|
-
}
|
|
52
|
-
.svg-inline--fa.fa-w-6 {
|
|
53
|
-
width: 0.375em;
|
|
54
|
-
}
|
|
55
|
-
.svg-inline--fa.fa-w-7 {
|
|
56
|
-
width: 0.4375em;
|
|
57
|
-
}
|
|
58
|
-
.svg-inline--fa.fa-w-8 {
|
|
59
|
-
width: 0.5em;
|
|
34
|
+
.svg-inline--fa.fa-2xs {
|
|
35
|
+
vertical-align: 0.1em;
|
|
60
36
|
}
|
|
61
|
-
.svg-inline--fa.fa-
|
|
62
|
-
|
|
37
|
+
.svg-inline--fa.fa-xs {
|
|
38
|
+
vertical-align: 0em;
|
|
63
39
|
}
|
|
64
|
-
.svg-inline--fa.fa-
|
|
65
|
-
|
|
40
|
+
.svg-inline--fa.fa-sm {
|
|
41
|
+
vertical-align: -0.0714285705em;
|
|
66
42
|
}
|
|
67
|
-
.svg-inline--fa.fa-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
.svg-inline--fa.fa-w-12 {
|
|
71
|
-
width: 0.75em;
|
|
72
|
-
}
|
|
73
|
-
.svg-inline--fa.fa-w-13 {
|
|
74
|
-
width: 0.8125em;
|
|
75
|
-
}
|
|
76
|
-
.svg-inline--fa.fa-w-14 {
|
|
77
|
-
width: 0.875em;
|
|
78
|
-
}
|
|
79
|
-
.svg-inline--fa.fa-w-15 {
|
|
80
|
-
width: 0.9375em;
|
|
81
|
-
}
|
|
82
|
-
.svg-inline--fa.fa-w-16 {
|
|
83
|
-
width: 1em;
|
|
84
|
-
}
|
|
85
|
-
.svg-inline--fa.fa-w-17 {
|
|
86
|
-
width: 1.0625em;
|
|
87
|
-
}
|
|
88
|
-
.svg-inline--fa.fa-w-18 {
|
|
89
|
-
width: 1.125em;
|
|
43
|
+
.svg-inline--fa.fa-lg {
|
|
44
|
+
vertical-align: -0.2em;
|
|
90
45
|
}
|
|
91
|
-
.svg-inline--fa.fa-
|
|
92
|
-
|
|
46
|
+
.svg-inline--fa.fa-xl {
|
|
47
|
+
vertical-align: -0.25em;
|
|
93
48
|
}
|
|
94
|
-
.svg-inline--fa.fa-
|
|
95
|
-
|
|
49
|
+
.svg-inline--fa.fa-2xl {
|
|
50
|
+
vertical-align: -0.3125em;
|
|
96
51
|
}
|
|
97
52
|
.svg-inline--fa.fa-pull-left {
|
|
98
|
-
margin-right: 0.3em;
|
|
53
|
+
margin-right: var(--fa-pull-margin, 0.3em);
|
|
99
54
|
width: auto;
|
|
100
55
|
}
|
|
101
56
|
.svg-inline--fa.fa-pull-right {
|
|
102
|
-
margin-left: 0.3em;
|
|
57
|
+
margin-left: var(--fa-pull-margin, 0.3em);
|
|
103
58
|
width: auto;
|
|
104
59
|
}
|
|
105
|
-
.svg-inline--fa.fa-border {
|
|
106
|
-
height: 1.5em;
|
|
107
|
-
}
|
|
108
60
|
.svg-inline--fa.fa-li {
|
|
109
|
-
width: 2em;
|
|
61
|
+
width: var(--fa-li-width, 2em);
|
|
62
|
+
top: 0.25em;
|
|
110
63
|
}
|
|
111
64
|
.svg-inline--fa.fa-fw {
|
|
112
|
-
width: 1.25em;
|
|
65
|
+
width: var(--fa-fw-width, 1.25em);
|
|
113
66
|
}
|
|
114
67
|
|
|
115
68
|
.fa-layers svg.svg-inline--fa {
|
|
@@ -121,6 +74,12 @@ Valid keys: `+JSON.stringify(Object.keys(A),null," "));var G=Ce(Q,ue,te,le,V+".
|
|
|
121
74
|
top: 0;
|
|
122
75
|
}
|
|
123
76
|
|
|
77
|
+
.fa-layers-counter, .fa-layers-text {
|
|
78
|
+
display: inline-block;
|
|
79
|
+
position: absolute;
|
|
80
|
+
text-align: center;
|
|
81
|
+
}
|
|
82
|
+
|
|
124
83
|
.fa-layers {
|
|
125
84
|
display: inline-block;
|
|
126
85
|
height: 1em;
|
|
@@ -130,98 +89,63 @@ Valid keys: `+JSON.stringify(Object.keys(A),null," "));var G=Ce(Q,ue,te,le,V+".
|
|
|
130
89
|
width: 1em;
|
|
131
90
|
}
|
|
132
91
|
.fa-layers svg.svg-inline--fa {
|
|
133
|
-
|
|
134
|
-
transform-origin: center center;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.fa-layers-counter, .fa-layers-text {
|
|
138
|
-
display: inline-block;
|
|
139
|
-
position: absolute;
|
|
140
|
-
text-align: center;
|
|
92
|
+
transform-origin: center center;
|
|
141
93
|
}
|
|
142
94
|
|
|
143
95
|
.fa-layers-text {
|
|
144
96
|
left: 50%;
|
|
145
97
|
top: 50%;
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
-webkit-transform-origin: center center;
|
|
149
|
-
transform-origin: center center;
|
|
98
|
+
transform: translate(-50%, -50%);
|
|
99
|
+
transform-origin: center center;
|
|
150
100
|
}
|
|
151
101
|
|
|
152
102
|
.fa-layers-counter {
|
|
153
|
-
background-color: #ff253a;
|
|
154
|
-
border-radius: 1em;
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
max-width: 5em;
|
|
161
|
-
min-width: 1.5em;
|
|
103
|
+
background-color: var(--fa-counter-background-color, #ff253a);
|
|
104
|
+
border-radius: var(--fa-counter-border-radius, 1em);
|
|
105
|
+
box-sizing: border-box;
|
|
106
|
+
color: var(--fa-inverse, #fff);
|
|
107
|
+
line-height: var(--fa-counter-line-height, 1);
|
|
108
|
+
max-width: var(--fa-counter-max-width, 5em);
|
|
109
|
+
min-width: var(--fa-counter-min-width, 1.5em);
|
|
162
110
|
overflow: hidden;
|
|
163
|
-
padding: 0.25em;
|
|
164
|
-
right: 0;
|
|
111
|
+
padding: var(--fa-counter-padding, 0.25em 0.5em);
|
|
112
|
+
right: var(--fa-right, 0);
|
|
165
113
|
text-overflow: ellipsis;
|
|
166
|
-
top: 0;
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
-webkit-transform-origin: top right;
|
|
170
|
-
transform-origin: top right;
|
|
114
|
+
top: var(--fa-top, 0);
|
|
115
|
+
transform: scale(var(--fa-counter-scale, 0.25));
|
|
116
|
+
transform-origin: top right;
|
|
171
117
|
}
|
|
172
118
|
|
|
173
119
|
.fa-layers-bottom-right {
|
|
174
|
-
bottom: 0;
|
|
175
|
-
right: 0;
|
|
120
|
+
bottom: var(--fa-bottom, 0);
|
|
121
|
+
right: var(--fa-right, 0);
|
|
176
122
|
top: auto;
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
-webkit-transform-origin: bottom right;
|
|
180
|
-
transform-origin: bottom right;
|
|
123
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
|
124
|
+
transform-origin: bottom right;
|
|
181
125
|
}
|
|
182
126
|
|
|
183
127
|
.fa-layers-bottom-left {
|
|
184
|
-
bottom: 0;
|
|
185
|
-
left: 0;
|
|
128
|
+
bottom: var(--fa-bottom, 0);
|
|
129
|
+
left: var(--fa-left, 0);
|
|
186
130
|
right: auto;
|
|
187
131
|
top: auto;
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
-webkit-transform-origin: bottom left;
|
|
191
|
-
transform-origin: bottom left;
|
|
132
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
|
133
|
+
transform-origin: bottom left;
|
|
192
134
|
}
|
|
193
135
|
|
|
194
136
|
.fa-layers-top-right {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
-webkit-transform-origin: top right;
|
|
200
|
-
transform-origin: top right;
|
|
137
|
+
top: var(--fa-top, 0);
|
|
138
|
+
right: var(--fa-right, 0);
|
|
139
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
|
140
|
+
transform-origin: top right;
|
|
201
141
|
}
|
|
202
142
|
|
|
203
143
|
.fa-layers-top-left {
|
|
204
|
-
left: 0;
|
|
144
|
+
left: var(--fa-left, 0);
|
|
205
145
|
right: auto;
|
|
206
|
-
top: 0;
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
-webkit-transform-origin: top left;
|
|
210
|
-
transform-origin: top left;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
.fa-lg {
|
|
214
|
-
font-size: 1.3333333333em;
|
|
215
|
-
line-height: 0.75em;
|
|
216
|
-
vertical-align: -0.0667em;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
.fa-xs {
|
|
220
|
-
font-size: 0.75em;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.fa-sm {
|
|
224
|
-
font-size: 0.875em;
|
|
146
|
+
top: var(--fa-top, 0);
|
|
147
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
|
148
|
+
transform-origin: top left;
|
|
225
149
|
}
|
|
226
150
|
|
|
227
151
|
.fa-1x {
|
|
@@ -264,6 +188,42 @@ Valid keys: `+JSON.stringify(Object.keys(A),null," "));var G=Ce(Q,ue,te,le,V+".
|
|
|
264
188
|
font-size: 10em;
|
|
265
189
|
}
|
|
266
190
|
|
|
191
|
+
.fa-2xs {
|
|
192
|
+
font-size: 0.625em;
|
|
193
|
+
line-height: 0.1em;
|
|
194
|
+
vertical-align: 0.225em;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.fa-xs {
|
|
198
|
+
font-size: 0.75em;
|
|
199
|
+
line-height: 0.0833333337em;
|
|
200
|
+
vertical-align: 0.125em;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.fa-sm {
|
|
204
|
+
font-size: 0.875em;
|
|
205
|
+
line-height: 0.0714285718em;
|
|
206
|
+
vertical-align: 0.0535714295em;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.fa-lg {
|
|
210
|
+
font-size: 1.25em;
|
|
211
|
+
line-height: 0.05em;
|
|
212
|
+
vertical-align: -0.075em;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.fa-xl {
|
|
216
|
+
font-size: 1.5em;
|
|
217
|
+
line-height: 0.0416666682em;
|
|
218
|
+
vertical-align: -0.125em;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.fa-2xl {
|
|
222
|
+
font-size: 2em;
|
|
223
|
+
line-height: 0.03125em;
|
|
224
|
+
vertical-align: -0.1875em;
|
|
225
|
+
}
|
|
226
|
+
|
|
267
227
|
.fa-fw {
|
|
268
228
|
text-align: center;
|
|
269
229
|
width: 1.25em;
|
|
@@ -271,7 +231,7 @@ Valid keys: `+JSON.stringify(Object.keys(A),null," "));var G=Ce(Q,ue,te,le,V+".
|
|
|
271
231
|
|
|
272
232
|
.fa-ul {
|
|
273
233
|
list-style-type: none;
|
|
274
|
-
margin-left: 2.5em;
|
|
234
|
+
margin-left: var(--fa-li-margin, 2.5em);
|
|
275
235
|
padding-left: 0;
|
|
276
236
|
}
|
|
277
237
|
.fa-ul > li {
|
|
@@ -279,121 +239,244 @@ Valid keys: `+JSON.stringify(Object.keys(A),null," "));var G=Ce(Q,ue,te,le,V+".
|
|
|
279
239
|
}
|
|
280
240
|
|
|
281
241
|
.fa-li {
|
|
282
|
-
left: -2em;
|
|
242
|
+
left: calc(-1 * var(--fa-li-width, 2em));
|
|
283
243
|
position: absolute;
|
|
284
244
|
text-align: center;
|
|
285
|
-
width: 2em;
|
|
245
|
+
width: var(--fa-li-width, 2em);
|
|
286
246
|
line-height: inherit;
|
|
287
247
|
}
|
|
288
248
|
|
|
289
249
|
.fa-border {
|
|
290
|
-
border:
|
|
291
|
-
border-radius: 0.1em;
|
|
292
|
-
|
|
250
|
+
border-color: var(--fa-border-color, #eee);
|
|
251
|
+
border-radius: var(--fa-border-radius, 0.1em);
|
|
252
|
+
border-style: var(--fa-border-style, solid);
|
|
253
|
+
border-width: var(--fa-border-width, 0.08em);
|
|
254
|
+
padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
|
|
293
255
|
}
|
|
294
256
|
|
|
295
257
|
.fa-pull-left {
|
|
296
258
|
float: left;
|
|
259
|
+
margin-right: var(--fa-pull-margin, 0.3em);
|
|
297
260
|
}
|
|
298
261
|
|
|
299
262
|
.fa-pull-right {
|
|
300
263
|
float: right;
|
|
264
|
+
margin-left: var(--fa-pull-margin, 0.3em);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.fa-beat {
|
|
268
|
+
animation-name: fa-beat;
|
|
269
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
270
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
271
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
272
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
273
|
+
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
|
301
274
|
}
|
|
302
275
|
|
|
303
|
-
.fa
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
276
|
+
.fa-bounce {
|
|
277
|
+
animation-name: fa-bounce;
|
|
278
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
279
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
280
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
281
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
282
|
+
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
|
|
309
283
|
}
|
|
310
|
-
|
|
311
|
-
.
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
284
|
+
|
|
285
|
+
.fa-fade {
|
|
286
|
+
animation-name: fa-fade;
|
|
287
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
288
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
289
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
290
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
291
|
+
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
|
316
292
|
}
|
|
317
293
|
|
|
318
|
-
.fa-
|
|
319
|
-
-
|
|
320
|
-
|
|
294
|
+
.fa-beat-fade {
|
|
295
|
+
animation-name: fa-beat-fade;
|
|
296
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
297
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
298
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
299
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
300
|
+
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.fa-flip {
|
|
304
|
+
animation-name: fa-flip;
|
|
305
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
306
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
307
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
308
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
309
|
+
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
|
321
310
|
}
|
|
322
311
|
|
|
323
|
-
.fa-
|
|
324
|
-
-
|
|
325
|
-
|
|
312
|
+
.fa-shake {
|
|
313
|
+
animation-name: fa-shake;
|
|
314
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
315
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
316
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
317
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
318
|
+
animation-timing-function: var(--fa-animation-timing, linear);
|
|
326
319
|
}
|
|
327
320
|
|
|
328
|
-
|
|
321
|
+
.fa-spin {
|
|
322
|
+
animation-name: fa-spin;
|
|
323
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
324
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
325
|
+
animation-duration: var(--fa-animation-duration, 2s);
|
|
326
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
327
|
+
animation-timing-function: var(--fa-animation-timing, linear);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.fa-spin-reverse {
|
|
331
|
+
--fa-animation-direction: reverse;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.fa-pulse,
|
|
335
|
+
.fa-spin-pulse {
|
|
336
|
+
animation-name: fa-spin;
|
|
337
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
338
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
339
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
340
|
+
animation-timing-function: var(--fa-animation-timing, steps(8));
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
@media (prefers-reduced-motion: reduce) {
|
|
344
|
+
.fa-beat,
|
|
345
|
+
.fa-bounce,
|
|
346
|
+
.fa-fade,
|
|
347
|
+
.fa-beat-fade,
|
|
348
|
+
.fa-flip,
|
|
349
|
+
.fa-pulse,
|
|
350
|
+
.fa-shake,
|
|
351
|
+
.fa-spin,
|
|
352
|
+
.fa-spin-pulse {
|
|
353
|
+
animation-delay: -1ms;
|
|
354
|
+
animation-duration: 1ms;
|
|
355
|
+
animation-iteration-count: 1;
|
|
356
|
+
transition-delay: 0s;
|
|
357
|
+
transition-duration: 0s;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
@keyframes fa-beat {
|
|
361
|
+
0%, 90% {
|
|
362
|
+
transform: scale(1);
|
|
363
|
+
}
|
|
364
|
+
45% {
|
|
365
|
+
transform: scale(var(--fa-beat-scale, 1.25));
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
@keyframes fa-bounce {
|
|
329
369
|
0% {
|
|
330
|
-
|
|
331
|
-
|
|
370
|
+
transform: scale(1, 1) translateY(0);
|
|
371
|
+
}
|
|
372
|
+
10% {
|
|
373
|
+
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
|
374
|
+
}
|
|
375
|
+
30% {
|
|
376
|
+
transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
|
|
377
|
+
}
|
|
378
|
+
50% {
|
|
379
|
+
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
|
380
|
+
}
|
|
381
|
+
57% {
|
|
382
|
+
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
|
383
|
+
}
|
|
384
|
+
64% {
|
|
385
|
+
transform: scale(1, 1) translateY(0);
|
|
332
386
|
}
|
|
333
387
|
100% {
|
|
334
|
-
|
|
335
|
-
|
|
388
|
+
transform: scale(1, 1) translateY(0);
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
@keyframes fa-fade {
|
|
392
|
+
50% {
|
|
393
|
+
opacity: var(--fa-fade-opacity, 0.4);
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
@keyframes fa-beat-fade {
|
|
397
|
+
0%, 100% {
|
|
398
|
+
opacity: var(--fa-beat-fade-opacity, 0.4);
|
|
399
|
+
transform: scale(1);
|
|
400
|
+
}
|
|
401
|
+
50% {
|
|
402
|
+
opacity: 1;
|
|
403
|
+
transform: scale(var(--fa-beat-fade-scale, 1.125));
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
@keyframes fa-flip {
|
|
407
|
+
50% {
|
|
408
|
+
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
@keyframes fa-shake {
|
|
412
|
+
0% {
|
|
413
|
+
transform: rotate(-15deg);
|
|
414
|
+
}
|
|
415
|
+
4% {
|
|
416
|
+
transform: rotate(15deg);
|
|
417
|
+
}
|
|
418
|
+
8%, 24% {
|
|
419
|
+
transform: rotate(-18deg);
|
|
420
|
+
}
|
|
421
|
+
12%, 28% {
|
|
422
|
+
transform: rotate(18deg);
|
|
423
|
+
}
|
|
424
|
+
16% {
|
|
425
|
+
transform: rotate(-22deg);
|
|
426
|
+
}
|
|
427
|
+
20% {
|
|
428
|
+
transform: rotate(22deg);
|
|
429
|
+
}
|
|
430
|
+
32% {
|
|
431
|
+
transform: rotate(-12deg);
|
|
432
|
+
}
|
|
433
|
+
36% {
|
|
434
|
+
transform: rotate(12deg);
|
|
435
|
+
}
|
|
436
|
+
40%, 100% {
|
|
437
|
+
transform: rotate(0deg);
|
|
336
438
|
}
|
|
337
439
|
}
|
|
338
|
-
|
|
339
440
|
@keyframes fa-spin {
|
|
340
441
|
0% {
|
|
341
|
-
|
|
342
|
-
transform: rotate(0deg);
|
|
442
|
+
transform: rotate(0deg);
|
|
343
443
|
}
|
|
344
444
|
100% {
|
|
345
|
-
|
|
346
|
-
transform: rotate(360deg);
|
|
445
|
+
transform: rotate(360deg);
|
|
347
446
|
}
|
|
348
447
|
}
|
|
349
448
|
.fa-rotate-90 {
|
|
350
|
-
|
|
351
|
-
-webkit-transform: rotate(90deg);
|
|
352
|
-
transform: rotate(90deg);
|
|
449
|
+
transform: rotate(90deg);
|
|
353
450
|
}
|
|
354
451
|
|
|
355
452
|
.fa-rotate-180 {
|
|
356
|
-
|
|
357
|
-
-webkit-transform: rotate(180deg);
|
|
358
|
-
transform: rotate(180deg);
|
|
453
|
+
transform: rotate(180deg);
|
|
359
454
|
}
|
|
360
455
|
|
|
361
456
|
.fa-rotate-270 {
|
|
362
|
-
|
|
363
|
-
-webkit-transform: rotate(270deg);
|
|
364
|
-
transform: rotate(270deg);
|
|
457
|
+
transform: rotate(270deg);
|
|
365
458
|
}
|
|
366
459
|
|
|
367
460
|
.fa-flip-horizontal {
|
|
368
|
-
|
|
369
|
-
-webkit-transform: scale(-1, 1);
|
|
370
|
-
transform: scale(-1, 1);
|
|
461
|
+
transform: scale(-1, 1);
|
|
371
462
|
}
|
|
372
463
|
|
|
373
464
|
.fa-flip-vertical {
|
|
374
|
-
|
|
375
|
-
-webkit-transform: scale(1, -1);
|
|
376
|
-
transform: scale(1, -1);
|
|
465
|
+
transform: scale(1, -1);
|
|
377
466
|
}
|
|
378
467
|
|
|
379
|
-
.fa-flip-both,
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
transform: scale(-1, -1);
|
|
468
|
+
.fa-flip-both,
|
|
469
|
+
.fa-flip-horizontal.fa-flip-vertical {
|
|
470
|
+
transform: scale(-1, -1);
|
|
383
471
|
}
|
|
384
472
|
|
|
385
|
-
|
|
386
|
-
:
|
|
387
|
-
:root .fa-rotate-270,
|
|
388
|
-
:root .fa-flip-horizontal,
|
|
389
|
-
:root .fa-flip-vertical,
|
|
390
|
-
:root .fa-flip-both {
|
|
391
|
-
-webkit-filter: none;
|
|
392
|
-
filter: none;
|
|
473
|
+
.fa-rotate-by {
|
|
474
|
+
transform: rotate(var(--fa-rotate-angle, 0));
|
|
393
475
|
}
|
|
394
476
|
|
|
395
477
|
.fa-stack {
|
|
396
478
|
display: inline-block;
|
|
479
|
+
vertical-align: middle;
|
|
397
480
|
height: 2em;
|
|
398
481
|
position: relative;
|
|
399
482
|
width: 2.5em;
|
|
@@ -407,6 +490,7 @@ Valid keys: `+JSON.stringify(Object.keys(A),null," "));var G=Ce(Q,ue,te,le,V+".
|
|
|
407
490
|
position: absolute;
|
|
408
491
|
right: 0;
|
|
409
492
|
top: 0;
|
|
493
|
+
z-index: var(--fa-stack-z-index, auto);
|
|
410
494
|
}
|
|
411
495
|
|
|
412
496
|
.svg-inline--fa.fa-stack-1x {
|
|
@@ -419,181 +503,392 @@ Valid keys: `+JSON.stringify(Object.keys(A),null," "));var G=Ce(Q,ue,te,le,V+".
|
|
|
419
503
|
}
|
|
420
504
|
|
|
421
505
|
.fa-inverse {
|
|
422
|
-
color: #fff;
|
|
506
|
+
color: var(--fa-inverse, #fff);
|
|
423
507
|
}
|
|
424
508
|
|
|
425
|
-
.sr-only
|
|
426
|
-
|
|
427
|
-
|
|
509
|
+
.sr-only,
|
|
510
|
+
.fa-sr-only {
|
|
511
|
+
position: absolute;
|
|
512
|
+
width: 1px;
|
|
428
513
|
height: 1px;
|
|
514
|
+
padding: 0;
|
|
429
515
|
margin: -1px;
|
|
430
516
|
overflow: hidden;
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
width:
|
|
517
|
+
clip: rect(0, 0, 0, 0);
|
|
518
|
+
white-space: nowrap;
|
|
519
|
+
border-width: 0;
|
|
434
520
|
}
|
|
435
521
|
|
|
436
|
-
.sr-only-focusable:
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
522
|
+
.sr-only-focusable:not(:focus),
|
|
523
|
+
.fa-sr-only-focusable:not(:focus) {
|
|
524
|
+
position: absolute;
|
|
525
|
+
width: 1px;
|
|
526
|
+
height: 1px;
|
|
527
|
+
padding: 0;
|
|
528
|
+
margin: -1px;
|
|
529
|
+
overflow: hidden;
|
|
530
|
+
clip: rect(0, 0, 0, 0);
|
|
531
|
+
white-space: nowrap;
|
|
532
|
+
border-width: 0;
|
|
443
533
|
}
|
|
444
534
|
|
|
445
535
|
.svg-inline--fa .fa-primary {
|
|
446
536
|
fill: var(--fa-primary-color, currentColor);
|
|
447
|
-
opacity: 1;
|
|
448
537
|
opacity: var(--fa-primary-opacity, 1);
|
|
449
538
|
}
|
|
450
539
|
|
|
451
540
|
.svg-inline--fa .fa-secondary {
|
|
452
541
|
fill: var(--fa-secondary-color, currentColor);
|
|
453
|
-
opacity: 0.4;
|
|
454
542
|
opacity: var(--fa-secondary-opacity, 0.4);
|
|
455
543
|
}
|
|
456
544
|
|
|
457
545
|
.svg-inline--fa.fa-swap-opacity .fa-primary {
|
|
458
|
-
opacity: 0.4;
|
|
459
546
|
opacity: var(--fa-secondary-opacity, 0.4);
|
|
460
547
|
}
|
|
461
548
|
|
|
462
549
|
.svg-inline--fa.fa-swap-opacity .fa-secondary {
|
|
463
|
-
opacity: 1;
|
|
464
550
|
opacity: var(--fa-primary-opacity, 1);
|
|
465
551
|
}
|
|
466
552
|
|
|
467
553
|
.svg-inline--fa mask .fa-primary,
|
|
468
554
|
.svg-inline--fa mask .fa-secondary {
|
|
469
555
|
fill: black;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
.
|
|
473
|
-
|
|
474
|
-
}`;function cu(){var e=Ai,t=Mi,r=lt.familyPrefix,n=lt.replacementClass,a=su;if(r!==e||n!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),i=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");a=a.replace(o,".".concat(r,"-")).replace(i,"--".concat(r,"-")).replace(s,".".concat(n))}return a}var lu=(function(){function e(){Cl(this,e),this.definitions={}}return Nl(e,[{key:"add",value:function(){for(var r=this,n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];var i=a.reduce(this._pullDefinitions,{});Object.keys(i).forEach(function(s){r.definitions[s]=Ne({},r.definitions[s]||{},i[s]),Vi(s,i[s]),Xi()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(r,n){var a=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(a).map(function(o){var i=a[o],s=i.prefix,c=i.iconName,l=i.icon;r[s]||(r[s]={}),r[s][c]=l}),r}}]),e})();function uu(){lt.autoAddCss&&!es&&(Gl(cu()),es=!0)}function fu(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(n){return Gi(n)})}}),Object.defineProperty(e,"node",{get:function(){if(wa){var n=et.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function Qi(e){var t=e.prefix,r=t===void 0?"fa":t,n=e.iconName;if(n)return Ki(pu.definitions,r,n)||Ki(Ct.styles,r,n)}function du(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=(t||{}).icon?t:Qi(t||{}),a=r.mask;return a&&(a=(a||{}).icon?a:Qi(a||{})),e(n,Ne({},r,{mask:a}))}}var pu=new lu,es=!1,Ma={transform:function(t){return iu(t)}},hu=du(function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.transform,n=r===void 0?rn:r,a=t.symbol,o=a===void 0?!1:a,i=t.mask,s=i===void 0?null:i,c=t.maskId,l=c===void 0?null:c,u=t.title,h=u===void 0?null:u,b=t.titleId,g=b===void 0?null:b,_=t.classes,E=_===void 0?[]:_,L=t.attributes,I=L===void 0?{}:L,P=t.styles,z=P===void 0?{}:P;if(e){var f=e.prefix,S=e.iconName,D=e.icon;return fu(Ne({type:"icon"},e),function(){return uu(),lt.autoA11y&&(h?I["aria-labelledby"]="".concat(lt.replacementClass,"-title-").concat(g||wr()):(I["aria-hidden"]="true",I.focusable="false")),au({icons:{main:Zi(D),mask:s?Zi(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:f,iconName:S,transform:Ne({},rn,n),symbol:o,title:h,maskId:l,titleId:g,extra:{attributes:I,styles:z,classes:E}})})}});function ts(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Wt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ts(Object(r),!0).forEach(function(n){an(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ts(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Sr(e){"@babel/helpers - typeof";return Sr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sr(e)}function an(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vu(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function ns(e,t){if(e==null)return{};var r=vu(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ia(e){return mu(e)||bu(e)||yu(e)||gu()}function mu(e){if(Array.isArray(e))return $a(e)}function bu(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yu(e,t){if(e){if(typeof e=="string")return $a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $a(e,t)}}function $a(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function gu(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
475
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ou(e){var t,r=e.beat,n=e.fade,a=e.beatFade,o=e.bounce,i=e.shake,s=e.flash,c=e.spin,l=e.spinPulse,u=e.spinReverse,h=e.pulse,b=e.fixedWidth,g=e.inverse,_=e.border,E=e.listItem,L=e.flip,I=e.size,P=e.rotation,z=e.pull,f=(t={"fa-beat":r,"fa-fade":n,"fa-beat-fade":a,"fa-bounce":o,"fa-shake":i,"fa-flash":s,"fa-spin":c,"fa-spin-reverse":u,"fa-spin-pulse":l,"fa-pulse":h,"fa-fw":b,"fa-inverse":g,"fa-border":_,"fa-li":E,"fa-flip":L===!0,"fa-flip-horizontal":L==="horizontal"||L==="both","fa-flip-vertical":L==="vertical"||L==="both"},an(t,"fa-".concat(I),typeof I<"u"&&I!==null),an(t,"fa-rotate-".concat(P),typeof P<"u"&&P!==null&&P!==0),an(t,"fa-pull-".concat(z),typeof z<"u"&&z!==null),an(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(f).map(function(S){return f[S]?S:null}).filter(function(S){return S})}function _u(e){return e=e-0,e===e}function rs(e){return _u(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,r){return r?r.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var wu=["style"];function Eu(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Su(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,r){var n=r.indexOf(":"),a=rs(r.slice(0,n)),o=r.slice(n+1).trim();return a.startsWith("webkit")?t[Eu(a)]=o:t[a]=o,t},{})}function as(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var n=(t.children||[]).map(function(c){return as(e,c)}),a=Object.keys(t.attributes||{}).reduce(function(c,l){var u=t.attributes[l];switch(l){case"class":c.attrs.className=u,delete t.attributes.class;break;case"style":c.attrs.style=Su(u);break;default:l.indexOf("aria-")===0||l.indexOf("data-")===0?c.attrs[l.toLowerCase()]=u:c.attrs[rs(l)]=u}return c},{attrs:{}}),o=r.style,i=o===void 0?{}:o,s=ns(r,wu);return a.attrs.style=Wt(Wt({},a.attrs.style),i),e.apply(void 0,[t.tag,Wt(Wt({},a.attrs),s)].concat(Ia(n)))}var os=!1;try{os=process.env.NODE_ENV==="production"}catch{}function ju(){if(!os&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function is(e){if(e&&Sr(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Ma.icon)return Ma.icon(e);if(e===null)return null;if(e&&Sr(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function La(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?an({},e,t):{}}var Pu=["forwardedRef"];function Ze(e){var t=e.forwardedRef,r=ns(e,Pu),n=r.icon,a=r.mask,o=r.symbol,i=r.className,s=r.title,c=r.titleId,l=r.maskId,u=is(n),h=La("classes",[].concat(Ia(Ou(r)),Ia(i.split(" ")))),b=La("transform",typeof r.transform=="string"?Ma.transform(r.transform):r.transform),g=La("mask",is(a)),_=hu(u,Wt(Wt(Wt(Wt({},h),b),g),{},{symbol:o,title:s,titleId:c,maskId:l}));if(!_)return ju("Could not find icon",u),null;var E=_.abstract,L={ref:t};return Object.keys(r).forEach(function(I){Ze.defaultProps.hasOwnProperty(I)||(L[I]=r[I])}),Cu(E[0],L)}Ze.displayName="FontAwesomeIcon",Ze.propTypes={beat:d.bool,border:d.bool,beatFade:d.bool,bounce:d.bool,className:d.string,fade:d.bool,flash:d.bool,mask:d.oneOfType([d.object,d.array,d.string]),maskId:d.string,fixedWidth:d.bool,inverse:d.bool,flip:d.oneOf([!0,!1,"horizontal","vertical","both"]),icon:d.oneOfType([d.object,d.array,d.string]),listItem:d.bool,pull:d.oneOf(["right","left"]),pulse:d.bool,rotation:d.oneOf([0,90,180,270]),shake:d.bool,size:d.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:d.bool,spinPulse:d.bool,spinReverse:d.bool,symbol:d.oneOfType([d.bool,d.string]),title:d.string,titleId:d.string,transform:d.oneOfType([d.string,d.object]),swapOpacity:d.bool},Ze.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var Cu=as.bind(null,w.createElement);/*!
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
*/var xu={prefix:"fas",iconName:"check-circle",icon:[512,512,[],"f058","M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"]},Nu={prefix:"fas",iconName:"exclamation",icon:[192,512,[],"f12a","M176 432c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80zM25.26 25.199l13.6 272C39.499 309.972 50.041 320 62.83 320h66.34c12.789 0 23.331-10.028 23.97-22.801l13.6-272C167.425 11.49 156.496 0 142.77 0H49.23C35.504 0 24.575 11.49 25.26 25.199z"]},ku={prefix:"fas",iconName:"rocket",icon:[512,512,[],"f135","M505.12019,19.09375c-1.18945-5.53125-6.65819-11-12.207-12.1875C460.716,0,435.507,0,410.40747,0,307.17523,0,245.26909,55.20312,199.05238,128H94.83772c-16.34763.01562-35.55658,11.875-42.88664,26.48438L2.51562,253.29688A28.4,28.4,0,0,0,0,264a24.00867,24.00867,0,0,0,24.00582,24H127.81618l-22.47457,22.46875c-11.36521,11.36133-12.99607,32.25781,0,45.25L156.24582,406.625c11.15623,11.1875,32.15619,13.15625,45.27726,0l22.47457-22.46875V488a24.00867,24.00867,0,0,0,24.00581,24,28.55934,28.55934,0,0,0,10.707-2.51562l98.72834-49.39063c14.62888-7.29687,26.50776-26.5,26.50776-42.85937V312.79688c72.59753-46.3125,128.03493-108.40626,128.03493-211.09376C512.07526,76.5,512.07526,51.29688,505.12019,19.09375ZM384.04033,168A40,40,0,1,1,424.05,128,40.02322,40.02322,0,0,1,384.04033,168Z"]},Tu={prefix:"fas",iconName:"search",icon:[512,512,[],"f002","M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"]},Au={prefix:"fas",iconName:"times",icon:[352,512,[],"f00d","M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"]},Mu={prefix:"fas",iconName:"times-circle",icon:[512,512,[],"f057","M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"]},pe="cs",Da={exports:{}};/*!
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
http://jedwatson.github.io/classnames
|
|
482
|
-
*/var ss;function Iu(){return ss||(ss=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var o="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(o=a(o,n(s)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var i="";for(var s in o)t.call(o,s)&&o[s]&&(i=a(i,s));return i}function a(o,i){return i?o?o+" "+i:o+i:o}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Da)),Da.exports}var $u=Iu();const ye=fa($u);var Ra=["available","unavailable","away","dnd","invisible","eager"],Fa=["xs","sm","md","lg","fluid"];function zn(e){"@babel/helpers - typeof";return zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zn(e)}var Lu=["status","size","className","name","selected","children"];function za(){return za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},za.apply(this,arguments)}function cs(e,t,r){return t=Du(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Du(e){var t=Ru(e,"string");return zn(t)=="symbol"?t:String(t)}function Ru(e,t){if(zn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fu(e,t){if(e==null)return{};var r=zu(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zu(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var Wa=function(t){var r=t.status,n=t.size,a=n===void 0?"md":n,o=t.className,i=t.name,s=t.selected,c=t.children,l=Fu(t,Lu),u="".concat(pe,"-status"),h=w.createElement("div",{className:"".concat(u,"__bullet")}),b=i||c;return w.createElement("div",za({},l,{"aria-selected":s===!0?"":null,className:ye(u,"".concat(u,"--").concat(a),"".concat(u,"--").concat(r),cs({},"".concat(u,"--selected"),s),cs({},"".concat(u,"--named"),b),o)}),h,b&&w.createElement("div",{className:"".concat(u,"__name")},i||c))};process.env.NODE_ENV!=="production"&&(Wa.propTypes={children:d.node,status:d.oneOf(Ra).isRequired,size:d.oneOf(Fa),name:d.node,selected:d.bool,className:d.string});function Wn(e){"@babel/helpers - typeof";return Wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wn(e)}var Wu=["name","src","size","status","className","active","children"];function Ba(){return Ba=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ba.apply(this,arguments)}function Bu(e,t,r){return t=Hu(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hu(e){var t=Yu(e,"string");return Wn(t)=="symbol"?t:String(t)}function Yu(e,t){if(Wn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qu(e,t){if(e==null)return{};var r=Vu(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Vu(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function ls(e,t){var r=e.name,n=r===void 0?"":r,a=e.src,o=a===void 0?"":a,i=e.size,s=i===void 0?"md":i,c=e.status,l=e.className,u=e.active,h=u===void 0?!1:u,b=e.children,g=qu(e,Wu),_="".concat(pe,"-avatar"),E=typeof s<"u"?" ".concat(_,"--").concat(s):"",L=w.useRef();return w.useImperativeHandle(t,function(){return{focus:function(){return L.current.focus()}}}),w.createElement("div",Ba({ref:L},g,{className:ye("".concat(_).concat(E),Bu({},"".concat(_,"--active"),h),l)}),b||w.createElement(w.Fragment,null,w.createElement("img",{src:o,alt:n}),typeof c=="string"&&w.createElement(Wa,{status:c,size:s})," "))}var ht=w.forwardRef(ls);ht.displayName="Avatar",ht.propTypes={children:d.node,name:d.string,src:d.string,size:d.oneOf(Fa),status:d.oneOf(Ra),active:d.bool,className:d.string},process.env.NODE_ENV!=="production"&&(ls.propTypes=ht.propTypes);function us(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function jr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?us(Object(r),!0).forEach(function(n){Uu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):us(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Uu(e,t,r){return t=Xu(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xu(e){var t=Ku(e,"string");return Bt(t)=="symbol"?t:String(t)}function Ku(e,t){if(Bt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bt(e){"@babel/helpers - typeof";return Bt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bt(e)}var Pr=function(){},Gu=function(t){return t==null||Array.isArray(t)&&t.length===0},on=function(t,r){var n=[],a=r.map(function(o){return o.displayName||o.name});return w.Children.toArray(t).forEach(function(o){var i=r.indexOf(o.type);if(i!==-1)n[i]=o;else{var s,c,l,u=(s=o==null||(c=o.props)===null||c===void 0?void 0:c.as)!==null&&s!==void 0?s:o==null||(l=o.props)===null||l===void 0?void 0:l.is,h=Bt(u);if(h==="function"){var b=r.indexOf(u);b!==-1&&(n[b]=w.cloneElement(o,jr(jr({},o.props),{},{as:null})))}else if(h==="object"){var g=u.name||u.displayName,_=a.indexOf(g);_!==-1&&(n[_]=w.cloneElement(o,jr(jr({},o.props),{},{as:null})))}else if(h==="string"){var E=a.indexOf(u);E!==-1&&(n[E]=o)}}}),n},fs=function(t){if(typeof t=="string")return t;if("type"in t){var r=Bt(t.type);if(r==="function"||r==="object"){if("displayName"in t.type)return t.type.displayName;if("name"in t.type)return t.type.name}else if(r==="string")return t.type;return"undefined"}return"undefined"},yt=function(t){return function(r,n,a){var o=t.map(function(u){return u.name||u.displayName}),i=w.Children.toArray(r[n]).find(function(u){if(typeof u=="string"&&u.trim().length===0)return!1;if(t.indexOf(u.type)===-1){var h,b,g=(u==null||(h=u.props)===null||h===void 0?void 0:h.as)||(u==null||(b=u.props)===null||b===void 0?void 0:b.is),_=Bt(g);if(_==="function")return t.indexOf(g)===-1;if(_==="object"){var E=g.name||g.displayName;return o.indexOf(E)===-1}else return _==="string"?o.indexOf(g)===-1:!0}});if(typeof i<"u"){var s=fs(i),c=t.map(function(u){return u.name||u.displayName}).join(", "),l='"'.concat(s,'" is not a valid child for ').concat(a,". Allowed types: ").concat(c);return new Error(l)}}},Ju=["children","size","className","max","activeIndex","hoverToFront"];function Ha(){return Ha=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ha.apply(this,arguments)}function Zu(e,t){if(e==null)return{};var r=Qu(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Qu(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var sn=function(t){var r=t.children,n=t.size,a=n===void 0?"md":n,o=t.className,i=t.max,s=t.activeIndex,c=t.hoverToFront,l=Zu(t,Ju),u="".concat(pe,"-avatar-group"),h=typeof i=="number"&&w.Children.count(r)>i?w.Children.toArray(r).reverse().slice(0,i):w.Children.toArray(r).reverse(),b=typeof s=="number"?h.length-s-1:void 0;return w.createElement("div",Ha({},l,{className:ye(u,"".concat(u,"--").concat(a),o)}),h.map(function(g,_){var E=typeof b=="number"?{active:b===_}:{};return c===!0&&(E.className=ye("".concat(pe,"-avatar--active-on-hover"),g.props.className)),w.cloneElement(g,E)}))};sn.displayName="AvatarGroup",process.env.NODE_ENV!=="production"&&(sn.propTypes={children:yt([ht]),className:d.string,max:d.number,size:d.oneOf(["xs","sm","md","lg","fluid"]),activeIndex:d.number,hoverToFront:d.bool});var ef=["children","className","icon","border","labelPosition"];function Ya(){return Ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ya.apply(this,arguments)}function tf(e,t){if(e==null)return{};var r=nf(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nf(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var cn=function(t){var r=t.children,n=r===void 0?void 0:r,a=t.className,o=a===void 0?"":a,i=t.icon,s=i===void 0?void 0:i,c=t.border,l=c===void 0?!1:c,u=t.labelPosition,h=u===void 0?void 0:u,b=tf(t,ef),g="".concat(pe,"-button"),_=typeof h<"u"?h:"right",E=w.Children.count(n)>0?"".concat(g,"--").concat(_):"",L=l===!0?"".concat(g,"--border"):"";return w.createElement("button",Ya({},b,{className:ye(g,E,L,o)}),_==="left"&&n,s,_==="right"&&n)};process.env.NODE_ENV!=="production"&&(cn.propTypes={children:d.node,className:d.string,icon:d.node,labelPosition:d.oneOf(["left","right"]),border:d.bool});var qa={},ds;function rf(){return ds||(ds=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="fas",r="arrow-up",n=448,a=512,o=[],i="f062",s="M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z";e.definition={prefix:t,iconName:r,icon:[n,a,o,i,s]},e.faArrowUp=e.definition,e.prefix=t,e.iconName=r,e.width=n,e.height=a,e.ligatures=o,e.unicode=i,e.svgPathData=s})(qa)),qa}var af=rf(),Va={},ps;function of(){return ps||(ps=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="fas",r="arrow-right",n=448,a=512,o=[],i="f061",s="M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z";e.definition={prefix:t,iconName:r,icon:[n,a,o,i,s]},e.faArrowRight=e.definition,e.prefix=t,e.iconName=r,e.width=n,e.height=a,e.ligatures=o,e.unicode=i,e.svgPathData=s})(Va)),Va}var sf=of(),Ua={},hs;function cf(){return hs||(hs=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="fas",r="arrow-down",n=448,a=512,o=[],i="f063",s="M413.1 222.5l22.2 22.2c9.4 9.4 9.4 24.6 0 33.9L241 473c-9.4 9.4-24.6 9.4-33.9 0L12.7 278.6c-9.4-9.4-9.4-24.6 0-33.9l22.2-22.2c9.5-9.5 25-9.3 34.3.4L184 343.4V56c0-13.3 10.7-24 24-24h32c13.3 0 24 10.7 24 24v287.4l114.8-120.5c9.3-9.8 24.8-10 34.3-.4z";e.definition={prefix:t,iconName:r,icon:[n,a,o,i,s]},e.faArrowDown=e.definition,e.prefix=t,e.iconName=r,e.width=n,e.height=a,e.ligatures=o,e.unicode=i,e.svgPathData=s})(Ua)),Ua}var lf=cf(),Xa={},vs;function uf(){return vs||(vs=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="fas",r="arrow-left",n=448,a=512,o=[],i="f060",s="M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z";e.definition={prefix:t,iconName:r,icon:[n,a,o,i,s]},e.faArrowLeft=e.definition,e.prefix=t,e.iconName=r,e.width=n,e.height=a,e.ligatures=o,e.unicode=i,e.svgPathData=s})(Xa)),Xa}var ff=uf(),df=["className","direction","children"];function Ka(){return Ka=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ka.apply(this,arguments)}function pf(e,t){if(e==null)return{};var r=hf(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hf(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var ms=function(t){var r=t.className,n=r===void 0?"":r,a=t.direction,o=a===void 0?"right":a,i=t.children,s=pf(t,df),c="".concat(pe,"-button--arrow"),l=(function(){if(o==="up")return af.faArrowUp;if(o==="right")return sf.faArrowRight;if(o==="down")return lf.faArrowDown;if(o==="left")return ff.faArrowLeft})();return w.createElement(cn,Ka({},s,{className:ye(c,n),icon:w.createElement(Ze,{icon:l})}),i)};process.env.NODE_ENV!=="production"&&(ms.propTypes={children:d.node,className:d.string,direction:d.oneOf(["up","right","down","left"])});var Ga={},bs;function vf(){return bs||(bs=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="fas",r="info-circle",n=512,a=512,o=[],i="f05a",s="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z";e.definition={prefix:t,iconName:r,icon:[n,a,o,i,s]},e.faInfoCircle=e.definition,e.prefix=t,e.iconName=r,e.width=n,e.height=a,e.ligatures=o,e.unicode=i,e.svgPathData=s})(Ga)),Ga}var mf=vf(),bf=["className","children"];function Ja(){return Ja=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ja.apply(this,arguments)}function yf(e,t){if(e==null)return{};var r=gf(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gf(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var ys=function(t){var r=t.className,n=r===void 0?"":r,a=t.children,o=yf(t,bf),i="".concat(pe,"-button--info");return w.createElement(cn,Ja({},o,{className:ye(i,n),icon:w.createElement(Ze,{icon:mf.faInfoCircle})}),a)};process.env.NODE_ENV!=="production"&&(ys.propTypes={children:d.node,className:d.string}),process.env.NODE_ENV!=="production"&&(d.node,d.string),process.env.NODE_ENV!=="production"&&(d.node,d.string),process.env.NODE_ENV!=="production"&&(d.node,d.string);var Za={},gs;function Of(){return gs||(gs=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="fas",r="user-plus",n=640,a=512,o=[],i="f234",s="M624 208h-64v-64c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v64h-64c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h64v64c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-64h64c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm-400 48c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z";e.definition={prefix:t,iconName:r,icon:[n,a,o,i,s]},e.faUserPlus=e.definition,e.prefix=t,e.iconName=r,e.width=n,e.height=a,e.ligatures=o,e.unicode=i,e.svgPathData=s})(Za)),Za}var _f=Of(),wf=["className","children"];function Qa(){return Qa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qa.apply(this,arguments)}function Ef(e,t){if(e==null)return{};var r=Sf(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Sf(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var Os=function(t){var r=t.className,n=r===void 0?"":r,a=t.children,o=Ef(t,wf),i="".concat(pe,"-button--adduser");return w.createElement(cn,Qa({},o,{className:ye(i,n),icon:w.createElement(Ze,{icon:_f.faUserPlus})}),a)};process.env.NODE_ENV!=="production"&&(Os.propTypes={children:d.node,className:d.string});var eo={},_s;function jf(){return _s||(_s=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="fas",r="ellipsis-v",n=192,a=512,o=[],i="f142",s="M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z";e.definition={prefix:t,iconName:r,icon:[n,a,o,i,s]},e.faEllipsisV=e.definition,e.prefix=t,e.iconName=r,e.width=n,e.height=a,e.ligatures=o,e.unicode=i,e.svgPathData=s})(eo)),eo}var Pf=jf();process.env.NODE_ENV!=="production"&&(d.node,d.string,d.oneOf(["horizontal","vertical"]));var to={},ws;function Cf(){return ws||(ws=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="fas",r="paper-plane",n=512,a=512,o=[],i="f1d8",s="M476 3.2L12.5 270.6c-18.1 10.4-15.8 35.6 2.2 43.2L121 358.4l287.3-253.2c5.5-4.9 13.3 2.6 8.6 8.3L176 407v80.5c0 23.6 28.5 32.9 42.5 15.8L282 426l124.6 52.2c14.2 6 30.4-2.9 33-18.2l72-432C515 7.8 493.3-6.8 476 3.2z";e.definition={prefix:t,iconName:r,icon:[n,a,o,i,s]},e.faPaperPlane=e.definition,e.prefix=t,e.iconName=r,e.width=n,e.height=a,e.ligatures=o,e.unicode=i,e.svgPathData=s})(to)),to}var xf=Cf(),Nf=["className","children"];function no(){return no=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},no.apply(this,arguments)}function kf(e,t){if(e==null)return{};var r=Tf(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Tf(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var Es=function(t){var r=t.className,n=r===void 0?"":r,a=t.children,o=kf(t,Nf),i="".concat(pe,"-button--send");return w.createElement(cn,no({},o,{className:ye(i,n),icon:w.createElement(Ze,{icon:xf.faPaperPlane})}),a)};process.env.NODE_ENV!=="production"&&(Es.propTypes={children:d.node,className:d.string});var ro={},Ss;function Af(){return Ss||(Ss=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="fas",r="paperclip",n=448,a=512,o=[],i="f0c6",s="M43.246 466.142c-58.43-60.289-57.341-157.511 1.386-217.581L254.392 34c44.316-45.332 116.351-45.336 160.671 0 43.89 44.894 43.943 117.329 0 162.276L232.214 383.128c-29.855 30.537-78.633 30.111-107.982-.998-28.275-29.97-27.368-77.473 1.452-106.953l143.743-146.835c6.182-6.314 16.312-6.422 22.626-.241l22.861 22.379c6.315 6.182 6.422 16.312.241 22.626L171.427 319.927c-4.932 5.045-5.236 13.428-.648 18.292 4.372 4.634 11.245 4.711 15.688.165l182.849-186.851c19.613-20.062 19.613-52.725-.011-72.798-19.189-19.627-49.957-19.637-69.154 0L90.39 293.295c-34.763 35.56-35.299 93.12-1.191 128.313 34.01 35.093 88.985 35.137 123.058.286l172.06-175.999c6.177-6.319 16.307-6.433 22.626-.256l22.877 22.364c6.319 6.177 6.434 16.307.256 22.626l-172.06 175.998c-59.576 60.938-155.943 60.216-214.77-.485z";e.definition={prefix:t,iconName:r,icon:[n,a,o,i,s]},e.faPaperclip=e.definition,e.prefix=t,e.iconName=r,e.width=n,e.height=a,e.ligatures=o,e.unicode=i,e.svgPathData=s})(ro)),ro}var Mf=Af(),If=["className","children"];function ao(){return ao=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ao.apply(this,arguments)}function $f(e,t){if(e==null)return{};var r=Lf(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Lf(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var js=function(t){var r=t.className,n=r===void 0?"":r,a=t.children,o=$f(t,If),i="".concat(pe,"-button--attachment");return w.createElement(cn,ao({},o,{className:ye(i,n),icon:w.createElement(Ze,{icon:Mf.faPaperclip})}),a)};process.env.NODE_ENV!=="production"&&(js.propTypes={children:d.node,className:d.string});var Df=["onClick","children","className"];function oo(){return oo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oo.apply(this,arguments)}function Rf(e,t){if(e==null)return{};var r=Ff(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ff(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var Bn=function(t){var r=t.onClick,n=r===void 0?function(){}:r,a=t.children,o=a===void 0?void 0:a,i=t.className,s=Rf(t,Df),c="".concat(pe,"-conversation-header__back");return w.createElement("div",oo({},s,{className:ye(c,i)}),typeof o<"u"?o:w.createElement(ms,{direction:"left",onClick:n}))};Bn.displayName="ConversationHeader.Back",process.env.NODE_ENV!=="production"&&(Bn.propTypes={onClick:d.func,children:d.node,className:d.string});var zf=["children","className"];function io(){return io=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},io.apply(this,arguments)}function Wf(e,t){if(e==null)return{};var r=Bf(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Bf(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var Hn=function(t){var r=t.children,n=r===void 0?void 0:r,a=t.className,o=Wf(t,zf),i="".concat(pe,"-conversation-header__actions");return w.createElement("section",io({},o,{className:ye(i,a)}),n)};Hn.displayName="ConversationHeader.Actions",process.env.NODE_ENV!=="production"&&(Hn.propTypes={children:d.node,className:d.string});var Hf=["userName","info","children","className"];function so(){return so=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},so.apply(this,arguments)}function Yf(e,t){if(e==null)return{};var r=qf(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qf(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var Yn=function(t){var r=t.userName,n=r===void 0?"":r,a=t.info,o=a===void 0?"":a,i=t.children,s=i===void 0?void 0:i,c=t.className,l=Yf(t,Hf),u="".concat(pe,"-conversation-header__content");return w.createElement("div",so({},l,{className:ye(u,c)}),typeof s<"u"?s:w.createElement(w.Fragment,null,w.createElement("div",{className:"".concat(pe,"-conversation-header__user-name")},n),w.createElement("div",{className:"".concat(pe,"-conversation-header__info")},o)))};Yn.displayName="ConversationHeader.Content",process.env.NODE_ENV!=="production"&&(Yn.propTypes={children:d.node,userName:d.node,info:d.node,className:d.string});var Vf=["children","className"];function co(){return co=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},co.apply(this,arguments)}function Uf(e,t){return Jf(e)||Gf(e,t)||Kf(e,t)||Xf()}function Xf(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
*/function Nt(e){return getComputedStyle(e)}function it(e,t){for(var r in t){var n=t[r];typeof n=="number"&&(n=n+"px"),e.style[r]=n}return e}function Cr(e){var t=document.createElement("div");return t.className=e,t}var Cs=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function Ht(e,t){if(!Cs)throw new Error("No element matching method supported");return Cs.call(e,t)}function ln(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function xs(e,t){return Array.prototype.filter.call(e.children,function(r){return Ht(r,t)})}var Be={main:"ps",rtl:"ps__rtl",element:{thumb:function(t){return"ps__thumb-"+t},rail:function(t){return"ps__rail-"+t},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(t){return"ps--active-"+t},scrolling:function(t){return"ps--scrolling-"+t}}},Ns={x:null,y:null};function ks(e,t){var r=e.element.classList,n=Be.state.scrolling(t);r.contains(n)?clearTimeout(Ns[t]):r.add(n)}function Ts(e,t){Ns[t]=setTimeout(function(){return e.isAlive&&e.element.classList.remove(Be.state.scrolling(t))},e.settings.scrollingThreshold)}function ed(e,t){ks(e,t),Ts(e,t)}var qn=function(t){this.element=t,this.handlers={}},As={isEmpty:{configurable:!0}};qn.prototype.bind=function(t,r){typeof this.handlers[t]>"u"&&(this.handlers[t]=[]),this.handlers[t].push(r);var n=["touchstart","wheel","touchmove"];n.indexOf(t)!==-1?this.element.addEventListener(t,r,{passive:!1}):this.element.addEventListener(t,r,!1)},qn.prototype.unbind=function(t,r){var n=this;this.handlers[t]=this.handlers[t].filter(function(a){return r&&a!==r?!0:(n.element.removeEventListener(t,a,!1),!1)})},qn.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},As.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every(function(t){return e.handlers[t].length===0})},Object.defineProperties(qn.prototype,As);var un=function(){this.eventElements=[]};un.prototype.eventElement=function(t){var r=this.eventElements.filter(function(n){return n.element===t})[0];return r||(r=new qn(t),this.eventElements.push(r)),r},un.prototype.bind=function(t,r,n){this.eventElement(t).bind(r,n)},un.prototype.unbind=function(t,r,n){var a=this.eventElement(t);a.unbind(r,n),a.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(a),1)},un.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]},un.prototype.once=function(t,r,n){var a=this.eventElement(t),o=function i(s){a.unbind(r,i),n(s)};a.bind(r,o)};function xr(e){if(typeof window.CustomEvent=="function")return new CustomEvent(e);var t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}function Nr(e,t,r,n,a,o){n===void 0&&(n=!0),a===void 0&&(a=!1);var i;if(t==="top")i=["contentHeight","containerHeight","scrollTop","y","up","down"];else if(t==="left")i=["contentWidth","containerWidth","scrollLeft","x","left","right"];else throw new Error("A proper axis should be provided");td(e,r,i,n,a,o)}function td(e,t,r,n,a,o){var i=r[0],s=r[1],c=r[2],l=r[3],u=r[4],h=r[5];n===void 0&&(n=!0),a===void 0&&(a=!1);var b=e.element;e.reach[l]=null;var g=o===!0?e[i]!==e[s]:!0;g&&b[c]<1&&(e.reach[l]="start"),g&&b[c]>e[i]-e[s]-1&&(e.reach[l]="end"),t&&(b.dispatchEvent(xr("ps-scroll-"+l)),t<0?b.dispatchEvent(xr("ps-scroll-"+u)):t>0&&b.dispatchEvent(xr("ps-scroll-"+h)),n&&ed(e,l)),e.reach[l]&&(t||a)&&b.dispatchEvent(xr("ps-"+l+"-reach-"+e.reach[l]))}function De(e){return parseInt(e,10)||0}function nd(e){return Ht(e,"input,[contenteditable]")||Ht(e,"select,[contenteditable]")||Ht(e,"textarea,[contenteditable]")||Ht(e,"button,[contenteditable]")}function rd(e){var t=Nt(e);return De(t.width)+De(t.paddingLeft)+De(t.paddingRight)+De(t.borderLeftWidth)+De(t.borderRightWidth)}var Vn={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints};function $t(e){var t=e.element,r=Math.floor(t.scrollTop),n=t.getBoundingClientRect();e.containerWidth=Math.round(n.width),e.containerHeight=Math.round(n.height),e.contentWidth=t.scrollWidth,e.contentHeight=t.scrollHeight,t.contains(e.scrollbarXRail)||(xs(t,Be.element.rail("x")).forEach(function(a){return ln(a)}),t.appendChild(e.scrollbarXRail)),t.contains(e.scrollbarYRail)||(xs(t,Be.element.rail("y")).forEach(function(a){return ln(a)}),t.appendChild(e.scrollbarYRail)),!e.settings.suppressScrollX&&e.containerWidth+e.settings.scrollXMarginOffset<e.contentWidth?(e.scrollbarXActive=!0,e.railXWidth=e.containerWidth-e.railXMarginWidth,e.railXRatio=e.containerWidth/e.railXWidth,e.scrollbarXWidth=Ms(e,De(e.railXWidth*e.containerWidth/e.contentWidth)),e.scrollbarXLeft=De((e.negativeScrollAdjustment+t.scrollLeft)*(e.railXWidth-e.scrollbarXWidth)/(e.contentWidth-e.containerWidth))):e.scrollbarXActive=!1,!e.settings.suppressScrollY&&e.containerHeight+e.settings.scrollYMarginOffset<e.contentHeight?(e.scrollbarYActive=!0,e.railYHeight=e.containerHeight-e.railYMarginHeight,e.railYRatio=e.containerHeight/e.railYHeight,e.scrollbarYHeight=Ms(e,De(e.railYHeight*e.containerHeight/e.contentHeight)),e.scrollbarYTop=De(r*(e.railYHeight-e.scrollbarYHeight)/(e.contentHeight-e.containerHeight))):e.scrollbarYActive=!1,e.scrollbarXLeft>=e.railXWidth-e.scrollbarXWidth&&(e.scrollbarXLeft=e.railXWidth-e.scrollbarXWidth),e.scrollbarYTop>=e.railYHeight-e.scrollbarYHeight&&(e.scrollbarYTop=e.railYHeight-e.scrollbarYHeight),ad(t,e),e.scrollbarXActive?t.classList.add(Be.state.active("x")):(t.classList.remove(Be.state.active("x")),e.scrollbarXWidth=0,e.scrollbarXLeft=0,t.scrollLeft=e.isRtl===!0?e.contentWidth:0),e.scrollbarYActive?t.classList.add(Be.state.active("y")):(t.classList.remove(Be.state.active("y")),e.scrollbarYHeight=0,e.scrollbarYTop=0,t.scrollTop=0)}function Ms(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=Math.min(t,e.settings.maxScrollbarLength)),t}function ad(e,t){var r={width:t.railXWidth},n=Math.floor(e.scrollTop);t.isRtl?r.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth-t.contentWidth:r.left=e.scrollLeft,t.isScrollbarXUsingBottom?r.bottom=t.scrollbarXBottom-n:r.top=t.scrollbarXTop+n,it(t.scrollbarXRail,r);var a={top:n,height:t.railYHeight};t.isScrollbarYUsingRight?t.isRtl?a.right=t.contentWidth-(t.negativeScrollAdjustment+e.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth-9:a.right=t.scrollbarYRight-e.scrollLeft:t.isRtl?a.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth*2-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:a.left=t.scrollbarYLeft+e.scrollLeft,it(t.scrollbarYRail,a),it(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth}),it(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}function od(e){e.element,e.event.bind(e.scrollbarY,"mousedown",function(t){return t.stopPropagation()}),e.event.bind(e.scrollbarYRail,"mousedown",function(t){var r=t.pageY-window.pageYOffset-e.scrollbarYRail.getBoundingClientRect().top,n=r>e.scrollbarYTop?1:-1;e.element.scrollTop+=n*e.containerHeight,$t(e),t.stopPropagation()}),e.event.bind(e.scrollbarX,"mousedown",function(t){return t.stopPropagation()}),e.event.bind(e.scrollbarXRail,"mousedown",function(t){var r=t.pageX-window.pageXOffset-e.scrollbarXRail.getBoundingClientRect().left,n=r>e.scrollbarXLeft?1:-1;e.element.scrollLeft+=n*e.containerWidth,$t(e),t.stopPropagation()})}function id(e){Is(e,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),Is(e,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])}function Is(e,t){var r=t[0],n=t[1],a=t[2],o=t[3],i=t[4],s=t[5],c=t[6],l=t[7],u=t[8],h=e.element,b=null,g=null,_=null;function E(P){P.touches&&P.touches[0]&&(P[a]=P.touches[0].pageY),h[c]=b+_*(P[a]-g),ks(e,l),$t(e),P.stopPropagation(),P.preventDefault()}function L(){Ts(e,l),e[u].classList.remove(Be.state.clicking),e.event.unbind(e.ownerDocument,"mousemove",E)}function I(P,z){b=h[c],z&&P.touches&&(P[a]=P.touches[0].pageY),g=P[a],_=(e[n]-e[r])/(e[o]-e[s]),z?e.event.bind(e.ownerDocument,"touchmove",E):(e.event.bind(e.ownerDocument,"mousemove",E),e.event.once(e.ownerDocument,"mouseup",L),P.preventDefault()),e[u].classList.add(Be.state.clicking),P.stopPropagation()}e.event.bind(e[i],"mousedown",function(P){I(P)}),e.event.bind(e[i],"touchstart",function(P){I(P,!0)})}function sd(e){var t=e.element,r=function(){return Ht(t,":hover")},n=function(){return Ht(e.scrollbarX,":focus")||Ht(e.scrollbarY,":focus")};function a(o,i){var s=Math.floor(t.scrollTop);if(o===0){if(!e.scrollbarYActive)return!1;if(s===0&&i>0||s>=e.contentHeight-e.containerHeight&&i<0)return!e.settings.wheelPropagation}var c=t.scrollLeft;if(i===0){if(!e.scrollbarXActive)return!1;if(c===0&&o<0||c>=e.contentWidth-e.containerWidth&&o>0)return!e.settings.wheelPropagation}return!0}e.event.bind(e.ownerDocument,"keydown",function(o){if(!(o.isDefaultPrevented&&o.isDefaultPrevented()||o.defaultPrevented)&&!(!r()&&!n())){var i=document.activeElement?document.activeElement:e.ownerDocument.activeElement;if(i){if(i.tagName==="IFRAME")i=i.contentDocument.activeElement;else for(;i.shadowRoot;)i=i.shadowRoot.activeElement;if(nd(i))return}var s=0,c=0;switch(o.which){case 37:o.metaKey?s=-e.contentWidth:o.altKey?s=-e.containerWidth:s=-30;break;case 38:o.metaKey?c=e.contentHeight:o.altKey?c=e.containerHeight:c=30;break;case 39:o.metaKey?s=e.contentWidth:o.altKey?s=e.containerWidth:s=30;break;case 40:o.metaKey?c=-e.contentHeight:o.altKey?c=-e.containerHeight:c=-30;break;case 32:o.shiftKey?c=e.containerHeight:c=-e.containerHeight;break;case 33:c=e.containerHeight;break;case 34:c=-e.containerHeight;break;case 36:c=e.contentHeight;break;case 35:c=-e.contentHeight;break;default:return}e.settings.suppressScrollX&&s!==0||e.settings.suppressScrollY&&c!==0||(t.scrollTop-=c,t.scrollLeft+=s,$t(e),a(s,c)&&o.preventDefault())}})}function cd(e){var t=e.element;function r(i,s){var c=Math.floor(t.scrollTop),l=t.scrollTop===0,u=c+t.offsetHeight===t.scrollHeight,h=t.scrollLeft===0,b=t.scrollLeft+t.offsetWidth===t.scrollWidth,g;return Math.abs(s)>Math.abs(i)?g=l||u:g=h||b,g?!e.settings.wheelPropagation:!0}function n(i){var s=i.deltaX,c=-1*i.deltaY;return(typeof s>"u"||typeof c>"u")&&(s=-1*i.wheelDeltaX/6,c=i.wheelDeltaY/6),i.deltaMode&&i.deltaMode===1&&(s*=10,c*=10),s!==s&&c!==c&&(s=0,c=i.wheelDelta),i.shiftKey?[-c,-s]:[s,c]}function a(i,s,c){if(!Vn.isWebKit&&t.querySelector("select:focus"))return!0;if(!t.contains(i))return!1;for(var l=i;l&&l!==t;){if(l.classList.contains(Be.element.consuming))return!0;var u=Nt(l);if(c&&u.overflowY.match(/(scroll|auto)/)){var h=l.scrollHeight-l.clientHeight;if(h>0&&(l.scrollTop>0&&c<0||l.scrollTop<h&&c>0))return!0}if(s&&u.overflowX.match(/(scroll|auto)/)){var b=l.scrollWidth-l.clientWidth;if(b>0&&(l.scrollLeft>0&&s<0||l.scrollLeft<b&&s>0))return!0}l=l.parentNode}return!1}function o(i){var s=n(i),c=s[0],l=s[1];if(!a(i.target,c,l)){var u=!1;e.settings.useBothWheelAxes?e.scrollbarYActive&&!e.scrollbarXActive?(l?t.scrollTop-=l*e.settings.wheelSpeed:t.scrollTop+=c*e.settings.wheelSpeed,u=!0):e.scrollbarXActive&&!e.scrollbarYActive&&(c?t.scrollLeft+=c*e.settings.wheelSpeed:t.scrollLeft-=l*e.settings.wheelSpeed,u=!0):(t.scrollTop-=l*e.settings.wheelSpeed,t.scrollLeft+=c*e.settings.wheelSpeed),$t(e),u=u||r(c,l),u&&!i.ctrlKey&&(i.stopPropagation(),i.preventDefault())}}typeof window.onwheel<"u"?e.event.bind(t,"wheel",o):typeof window.onmousewheel<"u"&&e.event.bind(t,"mousewheel",o)}function ld(e){if(!Vn.supportsTouch&&!Vn.supportsIePointer)return;var t=e.element;function r(_,E){var L=Math.floor(t.scrollTop),I=Math.ceil(t.scrollLeft),P=Math.abs(_),z=Math.abs(E);if(!e.settings.wheelPropagation)return!0;if(z>P){if(e.settings.suppressScrollY)return!1;if(E>0)return L!==0;if(E<0)return L<e.contentHeight-e.containerHeight}else if(P>z){if(e.settings.suppressScrollX)return!1;if(_>0)return I!==0;if(E<0)return I<e.contentWidth-e.containerWidth}return!0}function n(_,E){t.scrollTop-=E,t.scrollLeft-=_,$t(e)}var a={},o=0,i={},s=null;function c(_){return _.targetTouches?_.targetTouches[0]:_}function l(_){return _.pointerType&&_.pointerType==="pen"&&_.buttons===0?!1:!!(_.targetTouches&&_.targetTouches.length===1||_.pointerType&&_.pointerType!=="mouse"&&_.pointerType!==_.MSPOINTER_TYPE_MOUSE)}function u(_){if(l(_)){var E=c(_);a.pageX=E.pageX,a.pageY=E.pageY,o=new Date().getTime(),s!==null&&clearInterval(s)}}function h(_,E,L){if(!t.contains(_))return!1;for(var I=_;I&&I!==t;){if(I.classList.contains(Be.element.consuming))return!0;var P=Nt(I);if(L&&P.overflowY.match(/(scroll|auto)/)){var z=I.scrollHeight-I.clientHeight;if(z>0&&(I.scrollTop>0&&L<0||I.scrollTop<z&&L>0))return!0}if(E&&P.overflowX.match(/(scroll|auto)/)){var f=I.scrollWidth-I.clientWidth;if(f>0&&(I.scrollLeft>0&&E<0||I.scrollLeft<f&&E>0))return!0}I=I.parentNode}return!1}function b(_){if(l(_)){var E=c(_),L={pageX:E.pageX,pageY:E.pageY},I=L.pageX-a.pageX,P=L.pageY-a.pageY;if(h(_.target,I,P))return;n(I,P),a=L;var z=new Date().getTime(),f=z-o;f>0&&(i.x=I/f,i.y=P/f,o=z),_.cancelable&&r(I,P)&&_.preventDefault()}}function g(){e.settings.swipeEasing&&(clearInterval(s),s=setInterval(function(){if(e.isInitialized){clearInterval(s);return}if(!i.x&&!i.y){clearInterval(s);return}if(Math.abs(i.x)<.01&&Math.abs(i.y)<.01){clearInterval(s);return}n(i.x*30,i.y*30),i.x*=.8,i.y*=.8},10))}Vn.supportsTouch?(e.event.bind(t,"touchstart",u),e.event.bind(t,"touchmove",b),e.event.bind(t,"touchend",g)):Vn.supportsIePointer&&(window.PointerEvent?(e.event.bind(t,"pointerdown",u),e.event.bind(t,"pointermove",b),e.event.bind(t,"pointerup",g)):window.MSPointerEvent&&(e.event.bind(t,"MSPointerDown",u),e.event.bind(t,"MSPointerMove",b),e.event.bind(t,"MSPointerUp",g)))}var ud=function(){return{handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1}},fd={"click-rail":od,"drag-thumb":id,keyboard:sd,wheel:cd,touch:ld},Un=function(t,r){var n=this;if(r===void 0&&(r={}),typeof t=="string"&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");this.element=t,t.classList.add(Be.main),this.settings=ud();for(var a in r)this.settings[a]=r[a];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var o=function(){return t.classList.add(Be.state.focus)},i=function(){return t.classList.remove(Be.state.focus)};this.isRtl=Nt(t).direction==="rtl",this.isRtl===!0&&t.classList.add(Be.rtl),this.isNegativeScroll=(function(){var l=t.scrollLeft,u=null;return t.scrollLeft=-1,u=t.scrollLeft<0,t.scrollLeft=l,u})(),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new un,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=Cr(Be.element.rail("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=Cr(Be.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",o),this.event.bind(this.scrollbarX,"blur",i),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var s=Nt(this.scrollbarXRail);this.scrollbarXBottom=parseInt(s.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=De(s.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=De(s.borderLeftWidth)+De(s.borderRightWidth),it(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=De(s.marginLeft)+De(s.marginRight),it(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=Cr(Be.element.rail("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=Cr(Be.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",o),this.event.bind(this.scrollbarY,"blur",i),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var c=Nt(this.scrollbarYRail);this.scrollbarYRight=parseInt(c.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=De(c.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?rd(this.scrollbarY):null,this.railBorderYWidth=De(c.borderTopWidth)+De(c.borderBottomWidth),it(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=De(c.marginTop)+De(c.marginBottom),it(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(l){return fd[l](n)}),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",function(l){return n.onScroll(l)}),$t(this)};Un.prototype.update=function(t){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,it(this.scrollbarXRail,{display:"block"}),it(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=De(Nt(this.scrollbarXRail).marginLeft)+De(Nt(this.scrollbarXRail).marginRight),this.railYMarginHeight=De(Nt(this.scrollbarYRail).marginTop)+De(Nt(this.scrollbarYRail).marginBottom),it(this.scrollbarXRail,{display:"none"}),it(this.scrollbarYRail,{display:"none"}),$t(this),Nr(this,"top",0,!1,!0,t),Nr(this,"left",0,!1,!0,t),it(this.scrollbarXRail,{display:""}),it(this.scrollbarYRail,{display:""}))},Un.prototype.onScroll=function(t){this.isAlive&&($t(this),Nr(this,"top",this.element.scrollTop-this.lastScrollTop),Nr(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Un.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),ln(this.scrollbarX),ln(this.scrollbarY),ln(this.scrollbarXRail),ln(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},Un.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(" ")};function fn(e){"@babel/helpers - typeof";return fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fn(e)}var dd=["className","style","option","options","containerRef","onScrollY","onScrollX","onScrollUp","onScrollDown","onScrollLeft","onScrollRight","onYReachStart","onYReachEnd","onXReachStart","onXReachEnd","component","onSync","children"];function lo(){return lo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lo.apply(this,arguments)}function pd(e,t){if(e==null)return{};var r=hd(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hd(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function vd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function md(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yd(n.key),n)}}function bd(e,t,r){return t&&md(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yd(e){var t=gd(e,"string");return fn(t)=="symbol"?t:String(t)}function gd(e,t){if(fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Od(e,t,r){return t=kr(t),_d(e,$s()?Reflect.construct(t,r||[],kr(e).constructor):t.apply(e,r))}function _d(e,t){if(t&&(fn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ls(e)}function $s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($s=function(){return!!e})()}function kr(e){return kr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},kr(e)}function Ls(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wd(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uo(e,t)}function uo(e,t){return uo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},uo(e,t)}var Tr={"ps-scroll-y":"onScrollY","ps-scroll-x":"onScrollX","ps-scroll-up":"onScrollUp","ps-scroll-down":"onScrollDown","ps-scroll-left":"onScrollLeft","ps-scroll-right":"onScrollRight","ps-y-reach-start":"onYReachStart","ps-y-reach-end":"onYReachEnd","ps-x-reach-start":"onXReachStart","ps-x-reach-end":"onXReachEnd"};Object.freeze(Tr);var fo=(function(e){wd(t,e);function t(r){var n;return vd(this,t),n=Od(this,t,[r]),n.handleRef=n.handleRef.bind(Ls(n)),n._handlerByEvent={},n}return bd(t,[{key:"componentDidMount",value:function(){this.props.option&&console.warn('react-perfect-scrollbar: the "option" prop has been deprecated in favor of "options"'),this._ps=new Un(this._container,this.props.options||this.props.option),this._updateEventHook(),this._updateClassName()}},{key:"componentDidUpdate",value:function(n){this._updateEventHook(n),this.updateScroll(),n.className!==this.props.className&&this._updateClassName()}},{key:"componentWillUnmount",value:function(){var n=this;Object.keys(this._handlerByEvent).forEach(function(a){var o=n._handlerByEvent[a];o&&n._container.removeEventListener(a,o,!1)}),this._handlerByEvent={},this._ps.destroy(),this._ps=null}},{key:"_updateEventHook",value:function(){var n=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Object.keys(Tr).forEach(function(o){var i=n.props[Tr[o]],s=a[Tr[o]];if(i!==s){if(s){var c=n._handlerByEvent[o];n._container.removeEventListener(o,c,!1),n._handlerByEvent[o]=null}if(i){var l=function(){return i(n._container)};n._container.addEventListener(o,l,!1),n._handlerByEvent[o]=l}}})}},{key:"_updateClassName",value:function(){var n=this.props.className,a=this._container.className.split(" ").filter(function(o){return o.match(/^ps([-_].+|)$/)}).join(" ");this._container&&(this._container.className="scrollbar-container".concat(n?" ".concat(n):"").concat(a?" ".concat(a):""))}},{key:"updateScroll",value:function(){var n=this.props.onSync;typeof n=="function"?n(this._ps):this._ps.update()}},{key:"handleRef",value:function(n){var a,o;this._container=n,(a=(o=this.props).containerRef)===null||a===void 0||a.call(o,n)}},{key:"render",value:function(){var n=this.props;n.className;var a=n.style;n.option,n.options,n.containerRef,n.onScrollY,n.onScrollX,n.onScrollUp,n.onScrollDown,n.onScrollLeft,n.onScrollRight,n.onYReachStart,n.onYReachEnd,n.onXReachStart,n.onXReachEnd;var o=n.component;n.onSync;var i=n.children,s=pd(n,dd),c=typeof o>"u"?"div":o;return w.createElement(c,lo({style:a,ref:this.handleRef},s),i)}}]),t})(w.Component);process.env.NODE_ENV!=="production"&&(fo.propTypes={children:qe.PropTypes.node.isRequired,className:qe.PropTypes.string,style:qe.PropTypes.object,option:qe.PropTypes.object,options:qe.PropTypes.object,containerRef:qe.PropTypes.func,onScrollY:qe.PropTypes.func,onScrollX:qe.PropTypes.func,onScrollUp:qe.PropTypes.func,onScrollDown:qe.PropTypes.func,onScrollLeft:qe.PropTypes.func,onScrollRight:qe.PropTypes.func,onYReachStart:qe.PropTypes.func,onYReachEnd:qe.PropTypes.func,onXReachStart:qe.PropTypes.func,onXReachEnd:qe.PropTypes.func,onSync:qe.PropTypes.func,component:qe.PropTypes.string});function Xn(e){"@babel/helpers - typeof";return Xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xn(e)}var Ed=["className","variant","children"];function po(){return po=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},po.apply(this,arguments)}function Sd(e,t,r){return t=jd(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jd(e){var t=Pd(e,"string");return Xn(t)=="symbol"?t:String(t)}function Pd(e,t){if(Xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cd(e,t){if(e==null)return{};var r=xd(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xd(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var ho=function(t){var r=t.className,n=r===void 0?void 0:r,a=t.variant,o=a===void 0?"default":a,i=t.children,s=Cd(t,Ed),c="".concat(pe,"-loader"),l=w.Children.count(i)>0?"".concat(c,"--content"):"";return w.createElement("div",po({},s,{className:ye(c,l,Sd({},"".concat(c,"--variant-").concat(o),o!=="default"),n),role:"status"}),i)};process.env.NODE_ENV!=="production"&&(ho.propTypes={children:d.node,className:d.string,variant:d.oneOf(["default"])});function Kn(e){"@babel/helpers - typeof";return Kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kn(e)}var Nd=["className","children","blur","grayscale"];function vo(){return vo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vo.apply(this,arguments)}function Ds(e,t,r){return t=kd(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kd(e){var t=Td(e,"string");return Kn(t)=="symbol"?t:String(t)}function Td(e,t){if(Kn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Kn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ad(e,t){if(e==null)return{};var r=Md(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Md(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var Rs=function(t){var r=t.className,n=r===void 0?"":r,a=t.children,o=a===void 0?void 0:a,i=t.blur,s=i===void 0?!1:i,c=t.grayscale,l=c===void 0?!1:c,u=Ad(t,Nd),h="".concat(pe,"-overlay"),b="".concat(h,"--blur"),g="".concat(h,"--grayscale");return w.createElement("div",vo({},u,{className:ye(h,Ds({},b,s),Ds({},g,l),n)}),w.createElement("div",{className:"".concat(h,"__content")},o))};process.env.NODE_ENV!=="production"&&(Rs.propTypes={children:d.node,className:d.string,blur:d.bool,grayscale:d.bool});var Id=["sender","sentTime","children","className"];function mo(){return mo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mo.apply(this,arguments)}function $d(e,t){if(e==null)return{};var r=Ld(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ld(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var Gn=function(t){var r=t.sender,n=r===void 0?"":r,a=t.sentTime,o=a===void 0?"":a,i=t.children,s=i===void 0?void 0:i,c=t.className,l=$d(t,Id),u="".concat(pe,"-message__header");return w.createElement("div",mo({},l,{className:ye(u,c)}),typeof s<"u"?s:w.createElement(w.Fragment,null,w.createElement("div",{className:"".concat(pe,"-message__sender-name")},n),w.createElement("div",{className:"".concat(pe,"-message__sent-time")},o)))};Gn.displayName="Message.Header",process.env.NODE_ENV!=="production"&&(Gn.propTypes={sender:d.string,sentTime:d.string,children:d.node,className:d.string});var Dd=["sender","sentTime","children","className"];function bo(){return bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bo.apply(this,arguments)}function Rd(e,t){if(e==null)return{};var r=Fd(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Fd(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var Jn=function(t){var r=t.sender,n=r===void 0?"":r,a=t.sentTime,o=a===void 0?"":a,i=t.children,s=i===void 0?void 0:i,c=t.className,l=Rd(t,Dd),u="".concat(pe,"-message__footer");return w.createElement("div",bo({},l,{className:ye(u,c)}),typeof s<"u"?s:w.createElement(w.Fragment,null,w.createElement("div",{className:"".concat(pe,"-message__sender-name")},n),w.createElement("div",{className:"".concat(pe,"-message__sent-time")},o)))};Jn.displayName="Message.Footer",process.env.NODE_ENV!=="production"&&(Jn.propTypes={sender:d.string,sentTime:d.string,children:d.node,className:d.string});var Xt=function(t){var r=t.children,n=t.className,a="".concat(pe,"-message__custom-content");return w.createElement("div",{className:ye(a,n)},r)};Xt.displayName="Message.CustomContent",process.env.NODE_ENV!=="production"&&(Xt.propTypes={children:d.node,className:d.string});var dn=function(t){var r=t.src,n=t.width,a=t.height,o=t.alt,i=t.className,s="".concat(pe,"-message__image-content"),c={width:typeof n=="number"?"".concat(n,"px"):typeof n=="string"?n:void 0,height:typeof a=="number"?"".concat(a,"px"):typeof a=="string"?a:void 0};return w.createElement("div",{className:ye(s,i)},w.createElement("img",{src:r,style:c,alt:o}))};dn.displayName="Message.ImageContent",process.env.NODE_ENV!=="production"&&(dn.propTypes={src:d.string,width:d.oneOfType([d.string,d.number]),height:d.oneOfType([d.string,d.number]),alt:d.string,className:d.string});var pn=function(t){var r=t.html,n=t.className,a="".concat(pe,"-message__html-content"),o=function(){return{__html:r}};return w.createElement("div",{className:ye(a,n),dangerouslySetInnerHTML:o()})};pn.displayName="Message.HtmlContent",process.env.NODE_ENV!=="production"&&(pn.propTypes={html:d.string,className:d.string});var hn=function(t){var r=t.text,n=t.className,a=t.children,o="".concat(pe,"-message__text-content"),i=a??r;return w.createElement("div",{className:ye(o,n)},i)};hn.displayName="Message.TextContent",process.env.NODE_ENV!=="production"&&(hn.propTypes={children:d.string,text:d.string,className:d.string});var zd=["model","avatarSpacer","avatarPosition","type","payload","children","className"];function yo(){return yo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yo.apply(this,arguments)}function Fs(e,t,r){return t=Wd(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wd(e){var t=Bd(e,"string");return vn(t)=="symbol"?t:String(t)}function Bd(e,t){if(vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vn(e){"@babel/helpers - typeof";return vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vn(e)}function Hd(e,t){return Ud(e)||Vd(e,t)||qd(e,t)||Yd()}function Yd(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
488
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qd(e,t){if(e){if(typeof e=="string")return zs(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zs(e,t)}}function zs(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Vd(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,o,i,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(u){l=!0,a=u}finally{try{if(!c&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return s}}function Ud(e){if(Array.isArray(e))return e}function Xd(e,t){if(e==null)return{};var r=Kd(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Kd(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var Lt=function(t){var r,n,a=t.model,o=a.message,i=o===void 0?"":o,s=a.sentTime,c=s===void 0?"":s,l=a.sender,u=l===void 0?"":l,h=a.direction,b=h===void 0?1:h,g=a.position,_=a.type,E=a.payload,L=t.avatarSpacer,I=L===void 0?!1:L,P=t.avatarPosition,z=P===void 0?void 0:P,f=t.type,S=f===void 0?"html":f,D=t.payload,F=t.children,K=t.className,C=Xd(t,zd),M="".concat(pe,"-message"),B=on(F,[ht,Gn,Jn,pn,hn,dn,Xt]),J=Hd(B,7),N=J[0],de=J[1],oe=J[2],$=J[3],ce=J[4],_e=J[5],he=J[6],A=(function(){if(b===0||b==="incoming")return"".concat(M,"--incoming");if(b===1||b==="outgoing")return"".concat(M,"--outgoing")})(),q=(function(V){var Q="".concat(M,"--avatar-");if(V===0||V==="top-left"||V==="tl")return"".concat(Q,"tl");if(V===1||V==="top-right"||V==="tr")return"".concat(Q,"tr");if(V===2||V==="bottom-right"||V==="br")return"".concat(Q,"br");if(V===3||V==="bottom-left"||V==="bl")return"".concat(Q,"bl");if(V===4||V==="center-left"||V==="cl")return"".concat(Q,"cl");if(V===5||V==="center-right"||V==="cr")return"".concat(Q,"cr")})(z),X=(function(V){var Q="".concat(pe,"-message--");if(V==="single"||V===0)return"".concat(Q,"single");if(V==="first"||V===1)return"".concat(Q,"first");if(V==="normal"||V===2)return"";if(V==="last"||V===3)return"".concat(Q,"last")})(g),re=(function(){return u?.length>0&&c?.length>0?"".concat(u,": ").concat(c):u?.length>0&&(typeof c>"u"||c?.length===0)?u:null})(),te=(r=(n=$??ce)!==null&&n!==void 0?n:_e)!==null&&r!==void 0?r:he,le=te??(function(){var V=_??S,Q=E??i,ee=Q??D,ie=vn(ee)==="object"?fs(ee):"";if(V==="html"&&ie!=="Message.CustomContent")return w.createElement(pn,{html:ee});if(V==="text")return w.createElement(hn,{text:ee});if(V==="image")return w.createElement(dn,ee);if(V==="custom"||ie==="Message.CustomContent")return ee})();return w.createElement("section",yo({},C,{"aria-label":re,className:ye(M,A,Fs({},"".concat(M,"--avatar-spacer"),I),X,q,K)},Fs({},"data-".concat(pe,"-message"),"")),typeof N<"u"&&w.createElement("div",{className:"".concat(M,"__avatar")},N),w.createElement("div",{className:"".concat(M,"__content-wrapper")},de,w.createElement("div",{className:"".concat(M,"__content")},le),oe))};process.env.NODE_ENV!=="production"&&(Lt.propTypes={model:d.shape({message:d.string,sentTime:d.string,sender:d.string,direction:d.oneOf(["incoming","outgoing",0,1]),position:d.oneOf(["single","first","normal","last",0,1,2,3]),type:d.oneOf(["html","text","image","custom"]),payload:d.oneOfType([d.string,d.object,yt([Xt])])}),avatarSpacer:d.bool,avatarPosition:d.oneOf(["tl","tr","cl","cr","bl","br","top-left","top-right","center-left","center-right","bottom-left","bottom-right"]),children:yt([ht,Gn,Jn,pn,hn,dn,Xt]),className:d.string,type:d.oneOf(["html","text","image","custom"]),payload:d.oneOfType([d.string,yt([Xt])])}),Lt.Header=Gn,Lt.HtmlContent=pn,Lt.TextContent=hn,Lt.ImageContent=dn,Lt.CustomContent=Xt,Lt.Footer=Jn;var Gd=["children","className"];function go(){return go=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},go.apply(this,arguments)}function Jd(e,t){if(e==null)return{};var r=Zd(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Zd(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var Zn=function(t){var r=t.children,n=r===void 0?void 0:r,a=t.className,o=Jd(t,Gd),i="".concat(pe,"-message-group__header");return w.createElement("div",go({},o,{className:ye(i,a)}),n)};Zn.displayName="MessageGroup.Header",process.env.NODE_ENV!=="production"&&(Zn.propTypes={children:d.node,className:d.string});var Qd=["children","className"];function Oo(){return Oo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Oo.apply(this,arguments)}function ep(e,t){if(e==null)return{};var r=tp(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tp(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var Qn=function(t){var r=t.children,n=r===void 0?void 0:r,a=t.className,o=ep(t,Qd),i="".concat(pe,"-message-group__footer");return w.createElement("div",Oo({},o,{className:ye(i,a)}),n)};Qn.displayName="MessageGroup.Footer",process.env.NODE_ENV!=="production"&&(Qn.propTypes={children:d.node,className:d.string});var np=["children","className"];function _o(){return _o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_o.apply(this,arguments)}function rp(e,t){if(e==null)return{};var r=ap(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ap(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var er=function(t){var r=t.children,n=r===void 0?void 0:r,a=t.className,o=rp(t,np),i="".concat(pe,"-message-group");return w.createElement("div",_o({},o,{className:ye("".concat(i,"__messages"),a)}),n)};er.displayName="MessageGroup.Messages",process.env.NODE_ENV!=="production"&&(er.propTypes={children:d.node,className:d.string});function tr(e){"@babel/helpers - typeof";return tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tr(e)}var op=["direction","avatarPosition","sender","sentTime","children","className"];function wo(){return wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wo.apply(this,arguments)}function ip(e,t,r){return t=sp(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sp(e){var t=cp(e,"string");return tr(t)=="symbol"?t:String(t)}function cp(e,t){if(tr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lp(e,t){return pp(e)||dp(e,t)||fp(e,t)||up()}function up(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
489
|
-
|
|
490
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jp(e,t){if(e){if(typeof e=="string")return Hs(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hs(e,t)}}function Hs(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Pp(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,o,i,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(u){l=!0,a=u}finally{try{if(!c&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return s}}function Cp(e){if(Array.isArray(e))return e}function xp(e,t){if(e==null)return{};var r=Np(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Np(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function kp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,qs(n.key),n)}}function Ap(e,t,r){return t&&Tp(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mp(e,t,r){return t=Ar(t),Ip(e,Ys()?Reflect.construct(t,r||[],Ar(e).constructor):t.apply(e,r))}function Ip(e,t){if(t&&(mn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bn(e)}function Ys(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ys=function(){return!!e})()}function Ar(e){return Ar=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ar(e)}function bn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $p(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jo(e,t)}function jo(e,t){return jo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},jo(e,t)}function Kt(e,t,r){return t=qs(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qs(e){var t=Lp(e,"string");return mn(t)=="symbol"?t:String(t)}function Lp(e,t){if(mn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mr=(function(e){$p(t,e);function t(r){var n;return kp(this,t),n=Mp(this,t,[r]),Kt(bn(n),"handleResize",function(){n.containerRef.current.clientHeight<n.lastClientHeight&&n.scrollToEnd(n.props.scrollBehavior),n.scrollRef.current.updateScroll()}),Kt(bn(n),"handleContainerResize",function(){n.resizeTicking===!1&&(window.requestAnimationFrame(function(){var a=n.containerRef.current;if(a){var o=a.clientHeight,i=o-n.lastClientHeight;i>=1?n.preventScrollTop===!1&&(a.scrollTop=Math.round(a.scrollTop)-i):a.scrollTop=a.scrollTop-i,n.lastClientHeight=a.clientHeight,n.scrollRef.current.updateScroll()}n.resizeTicking=!1}),n.resizeTicking=!0)}),Kt(bn(n),"isSticked",function(){var a=n.containerRef.current;return a.scrollHeight===Math.round(a.scrollTop+a.clientHeight)}),Kt(bn(n),"handleScroll",function(){n.scrollTicking===!1&&(window.requestAnimationFrame(function(){n.noScroll===!1?n.preventScrollTop=n.isSticked():n.noScroll=!1,n.scrollTicking=!1}),n.scrollTicking=!0)}),Kt(bn(n),"getLastMessageOrGroup",function(){var a=n.containerRef.current.querySelector("[data-".concat(pe,"-message-list]>[data-").concat(pe,"-message]:last-of-type,[data-").concat(pe,"-message-list]>[data-").concat(pe,"-message-group]:last-of-type")),o=a?.querySelector("[data-".concat(pe,"-message]:last-of-type"));return{lastElement:a,lastMessageInGroup:o}}),n.scrollPointRef=w.createRef(),n.containerRef=w.createRef(),n.scrollRef=w.createRef(),n.lastClientHeight=0,n.preventScrollTop=!1,n.resizeObserver=void 0,n.scrollTicking=!1,n.resizeTicking=!1,n.noScroll=void 0,n}return Ap(t,[{key:"getSnapshotBeforeUpdate",value:function(){var n=this.containerRef.current,a=Math.round(n.scrollTop+n.clientHeight),o=n.scrollHeight===a||n.scrollHeight+1===a||n.scrollHeight-1===a;return{sticky:o,clientHeight:n.clientHeight,scrollHeight:n.scrollHeight,lastMessageOrGroup:this.getLastMessageOrGroup(),diff:n.scrollHeight-n.scrollTop}}},{key:"componentDidMount",value:function(){this.props.autoScrollToBottomOnMount===!0&&this.scrollToEnd(this.props.scrollBehavior),this.lastClientHeight=this.containerRef.current.clientHeight,window.addEventListener("resize",this.handleResize),typeof window.ResizeObserver=="function"&&(this.resizeObserver=new ResizeObserver(this.handleContainerResize),this.resizeObserver.observe(this.containerRef.current)),this.containerRef.current.addEventListener("scroll",this.handleScroll)}},{key:"componentDidUpdate",value:function(n,a,o){var i=this.props.autoScrollToBottom;if(typeof o<"u"){var s=this.containerRef.current,c=this.getLastMessageOrGroup(),l=c.lastElement,u=c.lastMessageInGroup;if(l===o.lastMessageOrGroup.lastElement&&(typeof u>"u"||u===o.lastMessageOrGroup.lastMessageInGroup)&&(s.scrollTop=s.scrollHeight-o.diff+(this.lastClientHeight-s.clientHeight)),o.sticky===!0)i===!0&&this.scrollToEnd(this.props.scrollBehavior),this.preventScrollTop=!0;else if(o.clientHeight<this.lastClientHeight){var h=s.scrollTop+this.lastClientHeight;s.scrollHeight===h||s.scrollHeight+1===h||s.scrollHeight-1===h?i===!0&&(this.scrollToEnd(this.props.scrollBehavior),this.preventScrollTop=!0):this.preventScrollTop=!1}else this.preventScrollTop=!1,l===o.lastMessageOrGroup.lastElement&&(typeof u>"u"||u===o.lastMessageOrGroup.lastMessageInGroup)&&s.scrollTop===0&&s.scrollHeight>o.scrollHeight&&(s.scrollTop=s.scrollHeight-o.scrollHeight);this.lastClientHeight=o.clientHeight}}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleResize),typeof this.resizeObserver<"u"&&this.resizeObserver.disconnect(),this.containerRef.current.removeEventListener("scroll",this.handleScroll)}},{key:"scrollToEnd",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollBehavior,a=this.containerRef.current,o=this.scrollPointRef.current,i=a.getBoundingClientRect(),s=o.getBoundingClientRect(),c=s.top+a.scrollTop-i.top;a.scrollBy?a.scrollBy({top:c,behavior:n}):a.scrollTop=c,this.lastClientHeight=a.clientHeight,this.noScroll=!0}},{key:"render",value:function(){var n=this,a=this.props,o=a.children,i=a.typingIndicator,s=a.loading,c=a.loadingMore,l=a.loadingMorePosition,u=a.onYReachStart,h=a.onYReachEnd,b=a.className,g=a.disableOnYReachWhenNoScroll;a.scrollBehavior,a.autoScrollToBottom,a.autoScrollToBottomOnMount;var _=xp(a,wp),E="".concat(pe,"-message-list"),L=on(o,[rr]),I=Ep(L,1),P=I[0];return w.createElement("div",ar({},_,{className:ye(E,b)}),c&&w.createElement("div",{className:ye("".concat(E,"__loading-more"),Kt({},"".concat(E,"__loading-more--bottom"),l==="bottom"))},w.createElement(ho,null)),s&&w.createElement(Rs,null,w.createElement(ho,null)),w.createElement(fo,ar({onYReachStart:u,onYReachEnd:h,onSync:function(f){return f.update(g)},className:"".concat(E,"__scroll-wrapper"),ref:this.scrollRef,containerRef:function(f){return n.containerRef.current=f},options:{suppressScrollX:!0}},Kt({},"data-".concat(pe,"-message-list"),""),{style:{overscrollBehaviorY:"none",overflowAnchor:"auto",touchAction:"none"}}),P||o,w.createElement("div",{className:"".concat(E,"__scroll-to"),ref:this.scrollPointRef})),typeof i<"u"&&w.createElement("div",{className:"".concat(E,"__typing-indicator-container")},i))}}]),t})(w.Component);Mr.displayName="MessageList";function Dp(e,t){var r=w.useRef(),n=function(o){return r.current.scrollToEnd(o)};return w.useImperativeHandle(t,function(){return{scrollToBottom:n}}),w.createElement(Mr,ar({ref:r},e))}var Yt=w.forwardRef(Dp);Yt.propTypes={children:yt([Lt,nr,Bs,rr]),typingIndicator:d.node,loading:d.bool,loadingMore:d.bool,loadingMorePosition:d.oneOf(["top","bottom"]),onYReachStart:d.func,onYReachEnd:d.func,disableOnYReachWhenNoScroll:d.bool,autoScrollToBottom:d.bool,autoScrollToBottomOnMount:d.bool,scrollBehavior:d.oneOf(["auto","smooth"]),className:d.string},Yt.defaultProps={typingIndicator:void 0,loading:!1,loadingMore:!1,loadingMorePosition:"top",disableOnYReachWhenNoScroll:!1,autoScrollToBottom:!0,autoScrollToBottomOnMount:!0,scrollBehavior:"auto"},process.env.NODE_ENV!=="production"&&(Mr.propTypes=Yt.propTypes),Mr.defaultProps=Yt.defaultProps,Yt.Content=rr;function yn(e){"@babel/helpers - typeof";return yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yn(e)}function Rp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Us(n.key),n)}}function zp(e,t,r){return t&&Fp(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wp(e,t,r){return t=Ir(t),Bp(e,Vs()?Reflect.construct(t,r||[],Ir(e).constructor):t.apply(e,r))}function Bp(e,t){if(t&&(yn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gt(e)}function Vs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Vs=function(){return!!e})()}function Ir(e){return Ir=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ir(e)}function Gt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hp(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Po(e,t)}function Po(e,t){return Po=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Po(e,t)}function Co(e,t,r){return t=Us(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Us(e){var t=Yp(e,"string");return yn(t)=="symbol"?t:String(t)}function Yp(e,t){if(yn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qp=function(t,r){var n=document.activeElement===t,a=document.createTextNode("");if(t.appendChild(a),a!==null&&a.nodeValue!==null&&(n||r)){var o=window.getSelection();if(o!==null){var i=document.createRange();i.setStart(a,a.nodeValue.length),i.collapse(!0),o.removeAllRanges(),o.addRange(i)}}},Xs=(function(e){Hp(t,e);function t(r){var n;return Rp(this,t),n=Wp(this,t,[r]),Co(Gt(n),"innerHTML",function(){var a=Gt(n),o=a.props.value;return{__html:typeof o<"u"?o:""}}),Co(Gt(n),"handleKeyPress",function(a){var o=Gt(n),i=o.props.onKeyPress;i?.(a)}),Co(Gt(n),"handleInput",function(a){var o=Gt(n),i=o.props.onChange,s=a.target;i?.(s.innerHTML,s.textContent,s.innerText)}),n.msgRef=w.createRef(),n}return zp(t,[{key:"focus",value:function(){typeof this.msgRef.current<"u"&&this.msgRef.current.focus()}},{key:"componentDidMount",value:function(){this.props.autoFocus===!0&&this.msgRef.current.focus()}},{key:"shouldComponentUpdate",value:function(n){var a=this.msgRef,o=this.props,i=o.placeholder,s=o.disabled,c=o.activateAfterChange;return typeof a.current>"u"||n.value!==a.current.innerHTML?!0:i!==n.placeholder||s!==n.disabled||c!==n.activateAfterChange}},{key:"componentDidUpdate",value:function(){var n=this.msgRef,a=this.props,o=a.value,i=a.activateAfterChange;o!==n.current.innerHTML&&(n.current.innerHTML=typeof o=="string"?o:""),qp(n.current,i)}},{key:"render",value:function(){var n=this.msgRef,a=this.handleInput,o=this.handleKeyPress,i=this.innerHTML,s=this.props,c=s.placeholder,l=s.disabled,u=s.className,h=typeof c=="string"?c:"";return w.createElement("div",{ref:n,className:u,contentEditable:l===!1,disabled:l,"data-placeholder":h,onInput:a,onKeyPress:o,dangerouslySetInnerHTML:i()})}}]),t})(w.Component);process.env.NODE_ENV!=="production"&&(Xs.propTypes={value:d.string,placeholder:d.string,disabled:d.bool,activateAfterChange:d.bool,autoFocus:d.bool,onChange:d.func,onKeyPress:d.func,className:d.string});function gn(e){"@babel/helpers - typeof";return gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gn(e)}var Vp=["fancyScroll","children","forwardedRef"],Up=["value","onSend","onChange","autoFocus","placeholder","fancyScroll","className","activateAfterChange","disabled","sendDisabled","sendOnReturnDisabled","attachDisabled","sendButton","attachButton","onAttachClick"];function Xp(e,t,r){return t=Js(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xo(e,t){return Zp(e)||Jp(e,t)||Gp(e,t)||Kp()}function Kp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
491
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gp(e,t){if(e){if(typeof e=="string")return Ks(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ks(e,t)}}function Ks(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Jp(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,o,i,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(u){l=!0,a=u}finally{try{if(!c&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return s}}function Zp(e){if(Array.isArray(e))return e}function On(){return On=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},On.apply(this,arguments)}function Gs(e,t){if(e==null)return{};var r=Qp(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Qp(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function eh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function th(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Js(n.key),n)}}function nh(e,t,r){return t&&th(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Js(e){var t=rh(e,"string");return gn(t)=="symbol"?t:String(t)}function rh(e,t){if(gn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ah(e,t,r){return t=$r(t),oh(e,Zs()?Reflect.construct(t,r||[],$r(e).constructor):t.apply(e,r))}function oh(e,t){if(t&&(gn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ih(e)}function ih(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Zs=function(){return!!e})()}function $r(e){return $r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$r(e)}function sh(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&No(e,t)}function No(e,t){return No=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},No(e,t)}function ch(){var e=(function(t){sh(r,t);function r(){return eh(this,r),ah(this,r,arguments)}return nh(r,[{key:"render",value:function(){var a=this.props,o=a.fancyScroll,i=a.children,s=a.forwardedRef,c=Gs(a,Vp);return w.createElement(w.Fragment,null,o===!0&&w.createElement(fo,On({ref:function(u){return s.current=u}},c,{options:{suppressScrollX:!0}}),i),o===!1&&w.createElement("div",On({ref:s},c),i))}}]),r})(w.Component);return w.forwardRef(function(t,r){return w.createElement(e,On({forwardedRef:r},t))})}var lh=ch(),Qs=function(t,r){var n=typeof t<"u"?t:r,a=w.useState(n),o=xo(a,2),i=o[0],s=o[1],c=typeof t<"u"?t:i;return[c,function(l){s(l)}]};function ec(e,t){var r=e.value,n=r===void 0?void 0:r,a=e.onSend,o=a===void 0?Pr:a,i=e.onChange,s=i===void 0?Pr:i,c=e.autoFocus,l=c===void 0?!1:c,u=e.placeholder,h=u===void 0?"":u,b=e.fancyScroll,g=b===void 0?!0:b,_=e.className,E=e.activateAfterChange,L=E===void 0?!1:E,I=e.disabled,P=I===void 0?!1:I,z=e.sendDisabled,f=e.sendOnReturnDisabled,S=f===void 0?!1:f,D=e.attachDisabled,F=D===void 0?!1:D,K=e.sendButton,C=K===void 0?!0:K,M=e.attachButton,B=M===void 0?!0:M,J=e.onAttachClick,N=J===void 0?Pr:J,de=Gs(e,Up),oe=w.useRef(),$=w.useRef(),ce=Qs(n,""),_e=xo(ce,2),he=_e[0],A=_e[1],q=Qs(z,!0),X=xo(q,2),re=X[0],te=X[1],le=function(){typeof $.current<"u"&&$.current.focus()};w.useImperativeHandle(t,function(){return{focus:le}}),w.useEffect(function(){l===!0&&le()},[]),w.useEffect(function(){typeof oe.current.updateScroll=="function"&&oe.current.updateScroll()});var V=function(){var Pe=$.current.msgRef.current;return[Pe.textContent,Pe.innerText,Pe.cloneNode(!0).childNodes]},Q=function(){if(he.length>0){n===void 0&&A(""),typeof z>"u"&&te(!0);var Pe=V();o(he,Pe[0],Pe[1],Pe[2])}},ee=function(Pe){Pe.key==="Enter"&&Pe.shiftKey===!1&&S===!1&&(Pe.preventDefault(),Q())},ie=function(Pe,Xe,nt){A(Pe),typeof z>"u"&&te(Xe.length===0),typeof oe.current.updateScroll=="function"&&oe.current.updateScroll();var ut=V();s(Pe,Xe,nt,ut[2])},ue="".concat(pe,"-message-input"),Ce=typeof h=="string"?h:"";return w.createElement("div",On({},de,{className:ye(ue,Xp({},"".concat(ue,"--disabled"),P),_)}),B===!0&&w.createElement("div",{className:"".concat(ue,"__tools")},w.createElement(js,{onClick:N,disabled:P===!0||F===!0})),w.createElement("div",{className:"".concat(ue,"__content-editor-wrapper")},w.createElement(lh,{fancyScroll:g,ref:oe,className:"".concat(ue,"__content-editor-container")},w.createElement(Xs,{ref:$,className:"".concat(ue,"__content-editor"),disabled:P,placeholder:Ce,onKeyPress:ee,onChange:ie,activateAfterChange:L,value:he}))),C===!0&&w.createElement("div",{className:"".concat(ue,"__tools")},w.createElement(Es,{onClick:Q,disabled:P===!0||re===!0})))}var _n=w.forwardRef(ec);_n.displayName="MessageInput",_n.propTypes={value:d.string,placeholder:d.string,disabled:d.bool,sendOnReturnDisabled:d.bool,sendDisabled:d.bool,fancyScroll:d.bool,activateAfterChange:d.bool,autoFocus:d.bool,onChange:d.func,onSend:d.func,className:d.string,sendButton:d.bool,attachButton:d.bool,attachDisabled:d.bool,onAttachClick:d.func},process.env.NODE_ENV!=="production"&&(ec.propTypes=_n.propTypes);var uh=["className","children"];function ko(){return ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ko.apply(this,arguments)}function fh(e,t){if(e==null)return{};var r=dh(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function dh(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var Lr=function(t){var r=t.className,n=t.children,a=fh(t,uh),o="".concat(pe,"-input-toolbox");return w.createElement("div",ko({},a,{className:ye(o,r)}),n)};Lr.displayName="InputToolbox",process.env.NODE_ENV!=="production"&&(Lr.propTypes={children:d.node,className:d.string});var ph=["children","className"];function To(){return To=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},To.apply(this,arguments)}function hh(e,t){return yh(e)||bh(e,t)||mh(e,t)||vh()}function vh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
492
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mh(e,t){if(e){if(typeof e=="string")return tc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tc(e,t)}}function tc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bh(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,o,i,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(u){l=!0,a=u}finally{try{if(!c&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return s}}function yh(e){if(Array.isArray(e))return e}function gh(e,t){if(e==null)return{};var r=Oh(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Oh(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var nc=function(t){var r=t.children,n=r===void 0?void 0:r,a=t.className,o=gh(t,ph),i="".concat(pe,"-chat-container"),s=on(n,[xt,Yt,_n,Lr]),c=hh(s,4),l=c[0],u=c[1],h=c[2],b=c[3];return w.createElement("div",To({},o,{className:ye(i,a)}),l,u,h,b)};process.env.NODE_ENV!=="production"&&(nc.propTypes={children:yt([xt,Yt,_n,Lr]),className:d.string});var vt="".concat(pe,"-conversation");function or(e){"@babel/helpers - typeof";return or=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},or(e)}var _h=["children","className","visible"];function Ao(){return Ao=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ao.apply(this,arguments)}function wh(e,t,r){return t=Eh(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Eh(e){var t=Sh(e,"string");return or(t)=="symbol"?t:String(t)}function Sh(e,t){if(or(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(or(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jh(e,t){if(e==null)return{};var r=Ph(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ph(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var ir=function(t){var r=t.children,n=t.className,a=t.visible,o=jh(t,_h);return w.createElement("div",Ao({},o,{className:ye("".concat(vt,"__operations"),wh({},"".concat(vt,"__operations--visible"),a),n)}),w.Children.count(r)>0?r:w.createElement(Ze,{icon:Pf.faEllipsisV}))};ir.displayName="Conversation.Operations",process.env.NODE_ENV!=="production"&&(ir.propTypes={children:d.node,className:d.string,visible:d.bool});var Ch=["lastSenderName","info","name","children","className"];function Mo(){return Mo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mo.apply(this,arguments)}function Io(e){"@babel/helpers - typeof";return Io=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Io(e)}function xh(e,t){if(e==null)return{};var r=Nh(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Nh(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var rc=function(t){var r=t.name;return w.createElement(w.Fragment,null,w.createElement("div",{className:"".concat(vt,"__last-sender")},r),":")};process.env.NODE_ENV!=="production"&&(rc.propTypes={name:d.node});var ac=function(t){var r=t.info;return w.createElement("div",{className:"".concat(vt,"__info-content")},r)};process.env.NODE_ENV!=="production"&&(ac.propTypes={info:d.node});var wn=function(t){var r=t.lastSenderName,n=t.info,a=t.name,o=t.children,i=t.className,s=xh(t,Ch),c=Io(r);return w.createElement("div",Mo({},s,{className:ye("".concat(vt,"__content"),i)}),w.Children.count(o)>0?o:w.createElement(w.Fragment,null,w.createElement("div",{className:"".concat(vt,"__name")},a),w.createElement("div",{className:"".concat(vt,"__info")},c!=="undefined"?w.createElement(w.Fragment,null,c==="string"?w.createElement(rc,{name:r}):r," "):null,typeof n<"u"&&w.createElement(ac,{info:n}))))};wn.displayName="Conversation.Content",process.env.NODE_ENV!=="production"&&(wn.propTypes={children:d.node,className:d.string,name:d.node,lastSenderName:d.node,info:d.node});function sr(e){"@babel/helpers - typeof";return sr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sr(e)}var kh=["name","unreadCnt","lastSenderName","info","lastActivityTime","unreadDot","children","className","active"];function $o(){return $o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$o.apply(this,arguments)}function Th(e,t,r){return t=Ah(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ah(e){var t=Mh(e,"string");return sr(t)=="symbol"?t:String(t)}function Mh(e,t){if(sr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(sr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ih(e,t){return Rh(e)||Dh(e,t)||Lh(e,t)||$h()}function $h(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
493
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lh(e,t){if(e){if(typeof e=="string")return oc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return oc(e,t)}}function oc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Dh(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,o,i,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(u){l=!0,a=u}finally{try{if(!c&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return s}}function Rh(e){if(Array.isArray(e))return e}function Fh(e,t){if(e==null)return{};var r=zh(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zh(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var Wh=function(t){var r=t.time;return w.createElement("div",{className:"".concat(vt,"__last-activity-time"),title:r},r)},Bh=function(){return w.createElement("div",{className:"".concat(vt,"__unread-dot")})},Dr=function(t){var r=t.name,n=r===void 0?void 0:r,a=t.unreadCnt,o=a===void 0?void 0:a,i=t.lastSenderName,s=i===void 0?void 0:i,c=t.info,l=c===void 0?void 0:c,u=t.lastActivityTime,h=u===void 0?void 0:u,b=t.unreadDot,g=b===void 0?!1:b,_=t.children,E=t.className,L=t.active,I=L===void 0?!1:L,P=Fh(t,kh),z=on(_,[ht,sn,ir,wn]),f=Ih(z,4),S=f[0],D=f[1],F=f[2],K=f[3];return w.createElement("div",$o({},P,{className:ye(vt,Th({},"".concat(vt,"--active"),I),E)}),S,D,(typeof n<"u"||typeof s<"u"||typeof l<"u")&&w.createElement(wn,{name:n,lastSenderName:s,info:l}),(typeof n>"u"||n===null)&&(typeof s>"u"||s===null)&&(typeof l>"u"||l===null)&&K,h!==null&&typeof h<"u"&&w.createElement(Wh,{time:h}),g&&w.createElement(Bh,null),F,o!==null&&typeof o<"u"&&parseInt(o)>0&&w.createElement("div",{className:"".concat(vt,"__unread"),title:o},o))};process.env.NODE_ENV!=="production"&&(Dr.propTypes={children:yt([ht,sn,ir,wn]),name:d.node,unreadCnt:d.number,unreadDot:d.bool,lastSenderName:d.node,info:d.node,lastActivityTime:d.node,active:d.bool,className:d.string}),Dr.Operations=ir,Dr.Content=wn,process.env.NODE_ENV!=="production"&&(yt([Dr]),d.bool,d.bool,d.bool,d.func,d.string),process.env.NODE_ENV!=="production"&&(d.node,d.string,d.bool,d.bool,d.string,d.func);function cr(e){"@babel/helpers - typeof";return cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cr(e)}var Hh=["responsive","children","className"];function Lo(){return Lo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lo.apply(this,arguments)}function Yh(e,t,r){return t=qh(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qh(e){var t=Vh(e,"string");return cr(t)=="symbol"?t:String(t)}function Vh(e,t){if(cr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Uh(e,t){if(e==null)return{};var r=Xh(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Xh(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var ic=function(t){var r=t.responsive,n=r===void 0?!1:r,a=t.children,o=a===void 0?void 0:a,i=t.className,s=Uh(t,Hh),c="".concat(pe,"-main-container");return w.createElement("div",Lo({},s,{className:ye(c,Yh({},"".concat(c,"--responsive"),n),i)}),o)};process.env.NODE_ENV!=="production"&&(ic.propTypes={children:d.node,responsive:d.bool,className:d.string});function lr(e){"@babel/helpers - typeof";return lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lr(e)}var Kh=["placeholder","value","onChange","onClearClick","className","disabled"];function Do(){return Do=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Do.apply(this,arguments)}function sc(e,t,r){return t=Gh(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gh(e){var t=Jh(e,"string");return lr(t)=="symbol"?t:String(t)}function Jh(e,t){if(lr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(lr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cc(e,t){return tv(e)||ev(e,t)||Qh(e,t)||Zh()}function Zh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
494
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qh(e,t){if(e){if(typeof e=="string")return lc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lc(e,t)}}function lc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ev(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,o,i,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(u){l=!0,a=u}finally{try{if(!c&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return s}}function tv(e){if(Array.isArray(e))return e}function nv(e,t){if(e==null)return{};var r=rv(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rv(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var av=function(t,r){return typeof r>"u"?w.useState(t):[r,function(){}]};function uc(e,t){var r=e.placeholder,n=r===void 0?"":r,a=e.value,o=a===void 0?void 0:a,i=e.onChange,s=i===void 0?function(){}:i,c=e.onClearClick,l=c===void 0?function(){}:c,u=e.className,h=e.disabled,b=h===void 0?!1:h,g=nv(e,Kh),_="".concat(pe,"-search"),E=w.useMemo(function(){return typeof o<"u"},[]),L=av("",o),I=cc(L,2),P=I[0],z=I[1],f=w.useState(E?P.length>0:!1),S=cc(f,2),D=S[0],F=S[1];if(E!==typeof o<"u")throw"Search: Changing from controlled to uncontrolled component and vice versa is not allowed";var K=w.useRef(void 0),C=function(){typeof K.current<"u"&&K.current.focus()};w.useImperativeHandle(t,function(){return{focus:C}});var M=function(N){var de=N.target.value;F(de.length>0),E===!1&&z(de),s(de)},B=function(){E===!1&&z(""),F(!1),l()};return w.createElement("div",Do({},g,{className:ye(_,sc({},"".concat(_,"--disabled"),b),u)}),w.createElement(Ze,{icon:Tu,className:"".concat(_,"__search-icon")}),w.createElement("input",{ref:K,type:"text",className:"".concat(_,"__input"),placeholder:n,onChange:M,disabled:b,value:P}),w.createElement(Ze,{icon:Au,className:ye("".concat(_,"__clear-icon"),sc({},"".concat(_,"__clear-icon--active"),D)),onClick:B}))}var Ro=w.forwardRef(uc);Ro.displayName="Search",Ro.propTypes={placeholder:d.string,value:d.string,onChange:d.func,onClearClick:d.func,className:d.string,disabled:d.bool},process.env.NODE_ENV!=="production"&&(uc.propTypes=Ro.propTypes),process.env.NODE_ENV!=="production"&&(d.node,d.oneOf(["left","right"]),d.bool,d.bool,d.string);var ov=["content","className"];function Fo(){return Fo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fo.apply(this,arguments)}function iv(e,t){if(e==null)return{};var r=sv(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function sv(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var fc=function(t){var r=t.content,n=r===void 0?"":r,a=t.className,o=iv(t,ov),i="".concat(pe,"-typing-indicator");return w.createElement("div",Fo({},o,{className:ye(i,a)}),w.createElement("div",{className:"".concat(i,"__indicator")},w.createElement("div",{className:"".concat(i,"__dot")}),w.createElement("div",{className:"".concat(i,"__dot")}),w.createElement("div",{className:"".concat(i,"__dot")})),w.createElement("div",{className:"".concat(i,"__text")},n))};process.env.NODE_ENV!=="production"&&(fc.propTypes={content:d.node,className:d.string});function ur(e){"@babel/helpers - typeof";return ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ur(e)}var cv=["className","children","size","selected","onChange","itemsTabIndex"];function zo(){return zo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zo.apply(this,arguments)}function lv(e,t,r){return t=uv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uv(e){var t=fv(e,"string");return ur(t)=="symbol"?t:String(t)}function fv(e,t){if(ur(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ur(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dv(e,t){if(e==null)return{};var r=pv(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pv(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function dc(e,t){var r=e.className,n=e.children,a=e.size,o=e.selected,i=e.onChange,s=i===void 0?Pr:i,c=e.itemsTabIndex,l=dv(e,cv),u="".concat(pe,"-status-list"),h=w.useRef();w.useImperativeHandle(t,function(){return{focus:function(_){var E=Array.from(h.current.querySelectorAll("li")),L=E.filter(function(I){return I.parentNode===h.current});typeof L[_]<"u"&&L[_].focus()}}});var b=c;return w.createElement("ul",zo({ref:h},l,{className:ye(u,r,lv({},"".concat(u,"--").concat(a),a))}),w.Children.map(n,function(g){var _={};o&&(_.selected=g.props.status===o),s&&(_.onClick=function(I){s(g.props.status),g.onClick&&g.onClick(I)});var E=function(P){s&&P.key==="Enter"&&P.shiftKey===!1&&P.altKey===!1&&s(g.props.status)},L=(function(){if(typeof b=="number")return b>0?b++:b})();return w.createElement("li",{tabIndex:L,onKeyPress:E},w.cloneElement(g,_))}))}var Wo=w.forwardRef(dc);Wo.displayName="StatusList",Wo.propTypes={children:yt([Wa]),selected:d.oneOf(Ra),size:d.oneOf(Fa),itemsTabIndex:d.number,className:d.string,onChange:d.func},process.env.NODE_ENV!=="production"&&(dc.propTypes=Wo.propTypes);function pc(e){const t={overlay:{backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:9999},content:{margin:"auto",width:"50%",height:"25%",backgroundColor:"white",zIndex:1e4}};return ne.jsx(fl,{isOpen:e.isModalOpen,onRequestClose:e.onCloseClick,appElement:document.getElementById("root"),style:t,children:ne.jsx("div",{className:"modal-container",children:ne.jsxs("div",{className:"modal",children:[ne.jsxs("div",{className:"modal-header",children:[ne.jsx(Ze,{icon:Nu,className:"modal-icon"}),ne.jsx("h2",{children:e.title}),ne.jsx("hr",{})]}),ne.jsx("p",{children:String(e.message)}),ne.jsx("button",{className:"modal-button",onClick:e.onCloseClick,children:"Close"})]})})})}pc.propTypes={isModalOpen:d.bool.isRequired,onCloseClick:d.func.isRequired,title:d.string.isRequired,message:d.string.isRequired};var Rr={exports:{}},hv=Rr.exports,hc;function vv(){return hc||(hc=1,(function(e,t){(function(r,n){e.exports=n(w)})(hv,(function(r){return(function(n){var a={};function o(i){if(a[i])return a[i].exports;var s=a[i]={i,l:!1,exports:{}};return n[i].call(s.exports,s,s.exports,o),s.l=!0,s.exports}return o.m=n,o.c=a,o.d=function(i,s,c){o.o(i,s)||Object.defineProperty(i,s,{enumerable:!0,get:c})},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,s){if(1&s&&(i=o(i)),8&s||4&s&&typeof i=="object"&&i&&i.__esModule)return i;var c=Object.create(null);if(o.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:i}),2&s&&typeof i!="string")for(var l in i)o.d(c,l,(function(u){return i[u]}).bind(null,l));return c},o.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(s,"a",s),s},o.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},o.p="",o(o.s=48)})([function(n,a){n.exports=r},function(n,a){var o=n.exports={version:"2.6.12"};typeof __e=="number"&&(__e=o)},function(n,a,o){var i=o(26)("wks"),s=o(17),c=o(3).Symbol,l=typeof c=="function";(n.exports=function(u){return i[u]||(i[u]=l&&c[u]||(l?c:s)("Symbol."+u))}).store=i},function(n,a){var o=n.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=o)},function(n,a,o){n.exports=!o(8)((function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}))},function(n,a){var o={}.hasOwnProperty;n.exports=function(i,s){return o.call(i,s)}},function(n,a,o){var i=o(7),s=o(16);n.exports=o(4)?function(c,l,u){return i.f(c,l,s(1,u))}:function(c,l,u){return c[l]=u,c}},function(n,a,o){var i=o(10),s=o(35),c=o(23),l=Object.defineProperty;a.f=o(4)?Object.defineProperty:function(u,h,b){if(i(u),h=c(h,!0),i(b),s)try{return l(u,h,b)}catch{}if("get"in b||"set"in b)throw TypeError("Accessors not supported!");return"value"in b&&(u[h]=b.value),u}},function(n,a){n.exports=function(o){try{return!!o()}catch{return!0}}},function(n,a,o){var i=o(40),s=o(22);n.exports=function(c){return i(s(c))}},function(n,a,o){var i=o(11);n.exports=function(s){if(!i(s))throw TypeError(s+" is not an object!");return s}},function(n,a){n.exports=function(o){return typeof o=="object"?o!==null:typeof o=="function"}},function(n,a){n.exports={}},function(n,a,o){var i=o(39),s=o(27);n.exports=Object.keys||function(c){return i(c,s)}},function(n,a){n.exports=!0},function(n,a,o){var i=o(3),s=o(1),c=o(53),l=o(6),u=o(5),h=function(b,g,_){var E,L,I,P=b&h.F,z=b&h.G,f=b&h.S,S=b&h.P,D=b&h.B,F=b&h.W,K=z?s:s[g]||(s[g]={}),C=K.prototype,M=z?i:f?i[g]:(i[g]||{}).prototype;for(E in z&&(_=g),_)(L=!P&&M&&M[E]!==void 0)&&u(K,E)||(I=L?M[E]:_[E],K[E]=z&&typeof M[E]!="function"?_[E]:D&&L?c(I,i):F&&M[E]==I?(function(B){var J=function(N,de,oe){if(this instanceof B){switch(arguments.length){case 0:return new B;case 1:return new B(N);case 2:return new B(N,de)}return new B(N,de,oe)}return B.apply(this,arguments)};return J.prototype=B.prototype,J})(I):S&&typeof I=="function"?c(Function.call,I):I,S&&((K.virtual||(K.virtual={}))[E]=I,b&h.R&&C&&!C[E]&&l(C,E,I)))};h.F=1,h.G=2,h.S=4,h.P=8,h.B=16,h.W=32,h.U=64,h.R=128,n.exports=h},function(n,a){n.exports=function(o,i){return{enumerable:!(1&o),configurable:!(2&o),writable:!(4&o),value:i}}},function(n,a){var o=0,i=Math.random();n.exports=function(s){return"Symbol(".concat(s===void 0?"":s,")_",(++o+i).toString(36))}},function(n,a,o){var i=o(22);n.exports=function(s){return Object(i(s))}},function(n,a){a.f={}.propertyIsEnumerable},function(n,a,o){var i=o(52)(!0);o(34)(String,"String",(function(s){this._t=String(s),this._i=0}),(function(){var s,c=this._t,l=this._i;return l>=c.length?{value:void 0,done:!0}:(s=i(c,l),this._i+=s.length,{value:s,done:!1})}))},function(n,a){var o=Math.ceil,i=Math.floor;n.exports=function(s){return isNaN(s=+s)?0:(s>0?i:o)(s)}},function(n,a){n.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},function(n,a,o){var i=o(11);n.exports=function(s,c){if(!i(s))return s;var l,u;if(c&&typeof(l=s.toString)=="function"&&!i(u=l.call(s))||typeof(l=s.valueOf)=="function"&&!i(u=l.call(s))||!c&&typeof(l=s.toString)=="function"&&!i(u=l.call(s)))return u;throw TypeError("Can't convert object to primitive value")}},function(n,a){var o={}.toString;n.exports=function(i){return o.call(i).slice(8,-1)}},function(n,a,o){var i=o(26)("keys"),s=o(17);n.exports=function(c){return i[c]||(i[c]=s(c))}},function(n,a,o){var i=o(1),s=o(3),c=s["__core-js_shared__"]||(s["__core-js_shared__"]={});(n.exports=function(l,u){return c[l]||(c[l]=u!==void 0?u:{})})("versions",[]).push({version:i.version,mode:o(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(n,a){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,a,o){var i=o(7).f,s=o(5),c=o(2)("toStringTag");n.exports=function(l,u,h){l&&!s(l=h?l:l.prototype,c)&&i(l,c,{configurable:!0,value:u})}},function(n,a,o){o(62);for(var i=o(3),s=o(6),c=o(12),l=o(2)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),h=0;h<u.length;h++){var b=u[h],g=i[b],_=g&&g.prototype;_&&!_[l]&&s(_,l,b),c[b]=c.Array}},function(n,a,o){a.f=o(2)},function(n,a,o){var i=o(3),s=o(1),c=o(14),l=o(30),u=o(7).f;n.exports=function(h){var b=s.Symbol||(s.Symbol=c?{}:i.Symbol||{});h.charAt(0)=="_"||h in b||u(b,h,{value:l.f(h)})}},function(n,a){a.f=Object.getOwnPropertySymbols},function(n,a){n.exports=function(o,i,s){return Math.min(Math.max(o,i),s)}},function(n,a,o){var i=o(14),s=o(15),c=o(37),l=o(6),u=o(12),h=o(55),b=o(28),g=o(61),_=o(2)("iterator"),E=!([].keys&&"next"in[].keys()),L=function(){return this};n.exports=function(I,P,z,f,S,D,F){h(z,P,f);var K,C,M,B=function(A){if(!E&&A in oe)return oe[A];switch(A){case"keys":case"values":return function(){return new z(this,A)}}return function(){return new z(this,A)}},J=P+" Iterator",N=S=="values",de=!1,oe=I.prototype,$=oe[_]||oe["@@iterator"]||S&&oe[S],ce=$||B(S),_e=S?N?B("entries"):ce:void 0,he=P=="Array"&&oe.entries||$;if(he&&(M=g(he.call(new I)))!==Object.prototype&&M.next&&(b(M,J,!0),i||typeof M[_]=="function"||l(M,_,L)),N&&$&&$.name!=="values"&&(de=!0,ce=function(){return $.call(this)}),i&&!F||!E&&!de&&oe[_]||l(oe,_,ce),u[P]=ce,u[J]=L,S)if(K={values:N?ce:B("values"),keys:D?ce:B("keys"),entries:_e},F)for(C in K)C in oe||c(oe,C,K[C]);else s(s.P+s.F*(E||de),P,K);return K}},function(n,a,o){n.exports=!o(4)&&!o(8)((function(){return Object.defineProperty(o(36)("div"),"a",{get:function(){return 7}}).a!=7}))},function(n,a,o){var i=o(11),s=o(3).document,c=i(s)&&i(s.createElement);n.exports=function(l){return c?s.createElement(l):{}}},function(n,a,o){n.exports=o(6)},function(n,a,o){var i=o(10),s=o(56),c=o(27),l=o(25)("IE_PROTO"),u=function(){},h=function(){var b,g=o(36)("iframe"),_=c.length;for(g.style.display="none",o(60).appendChild(g),g.src="javascript:",(b=g.contentWindow.document).open(),b.write("<script>document.F=Object<\/script>"),b.close(),h=b.F;_--;)delete h.prototype[c[_]];return h()};n.exports=Object.create||function(b,g){var _;return b!==null?(u.prototype=i(b),_=new u,u.prototype=null,_[l]=b):_=h(),g===void 0?_:s(_,g)}},function(n,a,o){var i=o(5),s=o(9),c=o(57)(!1),l=o(25)("IE_PROTO");n.exports=function(u,h){var b,g=s(u),_=0,E=[];for(b in g)b!=l&&i(g,b)&&E.push(b);for(;h.length>_;)i(g,b=h[_++])&&(~c(E,b)||E.push(b));return E}},function(n,a,o){var i=o(24);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(s){return i(s)=="String"?s.split(""):Object(s)}},function(n,a,o){var i=o(39),s=o(27).concat("length","prototype");a.f=Object.getOwnPropertyNames||function(c){return i(c,s)}},function(n,a,o){var i=o(24),s=o(2)("toStringTag"),c=i((function(){return arguments})())=="Arguments";n.exports=function(l){var u,h,b;return l===void 0?"Undefined":l===null?"Null":typeof(h=(function(g,_){try{return g[_]}catch{}})(u=Object(l),s))=="string"?h:c?i(u):(b=i(u))=="Object"&&typeof u.callee=="function"?"Arguments":b}},function(n,a){var o;o=(function(){return this})();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}n.exports=o},function(n,a){var o=/-?\d+(\.\d+)?%?/g;n.exports=function(i){return i.match(o)}},function(n,a,o){Object.defineProperty(a,"__esModule",{value:!0}),a.getBase16Theme=a.createStyling=a.invertTheme=void 0;var i=L(o(49)),s=L(o(76)),c=L(o(81)),l=L(o(89)),u=L(o(93)),h=(function(C){if(C&&C.__esModule)return C;var M={};if(C!=null)for(var B in C)Object.prototype.hasOwnProperty.call(C,B)&&(M[B]=C[B]);return M.default=C,M})(o(94)),b=L(o(132)),g=L(o(133)),_=L(o(138)),E=o(139);function L(C){return C&&C.__esModule?C:{default:C}}var I=h.default,P=(0,l.default)(I),z=(0,_.default)(g.default,E.rgb2yuv,(function(C){var M,B=(0,c.default)(C,3),J=B[0],N=B[1],de=B[2];return[(M=J,M<.25?1:M<.5?.9-M:1.1-M),N,de]}),E.yuv2rgb,b.default),f=function(C){return function(M){return{className:[M.className,C.className].filter(Boolean).join(" "),style:(0,s.default)({},M.style||{},C.style||{})}}},S=function(C,M){var B=(0,l.default)(M);for(var J in C)B.indexOf(J)===-1&&B.push(J);return B.reduce((function(N,de){return N[de]=(function(oe,$){if(oe===void 0)return $;if($===void 0)return oe;var ce=oe===void 0?"undefined":(0,i.default)(oe),_e=$===void 0?"undefined":(0,i.default)($);switch(ce){case"string":switch(_e){case"string":return[$,oe].filter(Boolean).join(" ");case"object":return f({className:oe,style:$});case"function":return function(he){for(var A=arguments.length,q=Array(A>1?A-1:0),X=1;X<A;X++)q[X-1]=arguments[X];return f({className:oe})($.apply(void 0,[he].concat(q)))}}case"object":switch(_e){case"string":return f({className:$,style:oe});case"object":return(0,s.default)({},$,oe);case"function":return function(he){for(var A=arguments.length,q=Array(A>1?A-1:0),X=1;X<A;X++)q[X-1]=arguments[X];return f({style:oe})($.apply(void 0,[he].concat(q)))}}case"function":switch(_e){case"string":return function(he){for(var A=arguments.length,q=Array(A>1?A-1:0),X=1;X<A;X++)q[X-1]=arguments[X];return oe.apply(void 0,[f(he)({className:$})].concat(q))};case"object":return function(he){for(var A=arguments.length,q=Array(A>1?A-1:0),X=1;X<A;X++)q[X-1]=arguments[X];return oe.apply(void 0,[f(he)({style:$})].concat(q))};case"function":return function(he){for(var A=arguments.length,q=Array(A>1?A-1:0),X=1;X<A;X++)q[X-1]=arguments[X];return oe.apply(void 0,[$.apply(void 0,[he].concat(q))].concat(q))}}}})(C[de],M[de]),N}),{})},D=function(C,M){for(var B=arguments.length,J=Array(B>2?B-2:0),N=2;N<B;N++)J[N-2]=arguments[N];if(M===null)return C;Array.isArray(M)||(M=[M]);var de=M.map((function($){return C[$]})).filter(Boolean),oe=de.reduce((function($,ce){return typeof ce=="string"?$.className=[$.className,ce].filter(Boolean).join(" "):(ce===void 0?"undefined":(0,i.default)(ce))==="object"?$.style=(0,s.default)({},$.style,ce):typeof ce=="function"&&($=(0,s.default)({},$,ce.apply(void 0,[$].concat(J)))),$}),{className:"",style:{}});return oe.className||delete oe.className,(0,l.default)(oe.style).length===0&&delete oe.style,oe},F=a.invertTheme=function(C){return(0,l.default)(C).reduce((function(M,B){return M[B]=/^base/.test(B)?z(C[B]):B==="scheme"?C[B]+":inverted":C[B],M}),{})},K=(a.createStyling=(0,u.default)((function(C){for(var M=arguments.length,B=Array(M>3?M-3:0),J=3;J<M;J++)B[J-3]=arguments[J];var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},de=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},oe=N.defaultBase16,$=oe===void 0?I:oe,ce=N.base16Themes,_e=ce===void 0?null:ce,he=K(de,_e);he&&(de=(0,s.default)({},he,de));var A=P.reduce((function(te,le){return te[le]=de[le]||$[le],te}),{}),q=(0,l.default)(de).reduce((function(te,le){return P.indexOf(le)===-1&&(te[le]=de[le]),te}),{}),X=C(A),re=S(q,X);return(0,u.default)(D,2).apply(void 0,[re].concat(B))}),3),a.getBase16Theme=function(C,M){if(C&&C.extend&&(C=C.extend),typeof C=="string"){var B=C.split(":"),J=(0,c.default)(B,2),N=J[0],de=J[1];C=(M||{})[N]||h[N],de==="inverted"&&(C=F(C))}return C&&C.hasOwnProperty("base00")?C:void 0})},function(n,a,o){var i,s=typeof Reflect=="object"?Reflect:null,c=s&&typeof s.apply=="function"?s.apply:function(f,S,D){return Function.prototype.apply.call(f,S,D)};i=s&&typeof s.ownKeys=="function"?s.ownKeys:Object.getOwnPropertySymbols?function(f){return Object.getOwnPropertyNames(f).concat(Object.getOwnPropertySymbols(f))}:function(f){return Object.getOwnPropertyNames(f)};var l=Number.isNaN||function(f){return f!=f};function u(){u.init.call(this)}n.exports=u,n.exports.once=function(f,S){return new Promise((function(D,F){function K(){C!==void 0&&f.removeListener("error",C),D([].slice.call(arguments))}var C;S!=="error"&&(C=function(M){f.removeListener(S,K),F(M)},f.once("error",C)),f.once(S,K)}))},u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var h=10;function b(f){if(typeof f!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof f)}function g(f){return f._maxListeners===void 0?u.defaultMaxListeners:f._maxListeners}function _(f,S,D,F){var K,C,M,B;if(b(D),(C=f._events)===void 0?(C=f._events=Object.create(null),f._eventsCount=0):(C.newListener!==void 0&&(f.emit("newListener",S,D.listener?D.listener:D),C=f._events),M=C[S]),M===void 0)M=C[S]=D,++f._eventsCount;else if(typeof M=="function"?M=C[S]=F?[D,M]:[M,D]:F?M.unshift(D):M.push(D),(K=g(f))>0&&M.length>K&&!M.warned){M.warned=!0;var J=new Error("Possible EventEmitter memory leak detected. "+M.length+" "+String(S)+" listeners added. Use emitter.setMaxListeners() to increase limit");J.name="MaxListenersExceededWarning",J.emitter=f,J.type=S,J.count=M.length,B=J,console&&console.warn&&console.warn(B)}return f}function E(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function L(f,S,D){var F={fired:!1,wrapFn:void 0,target:f,type:S,listener:D},K=E.bind(F);return K.listener=D,F.wrapFn=K,K}function I(f,S,D){var F=f._events;if(F===void 0)return[];var K=F[S];return K===void 0?[]:typeof K=="function"?D?[K.listener||K]:[K]:D?(function(C){for(var M=new Array(C.length),B=0;B<M.length;++B)M[B]=C[B].listener||C[B];return M})(K):z(K,K.length)}function P(f){var S=this._events;if(S!==void 0){var D=S[f];if(typeof D=="function")return 1;if(D!==void 0)return D.length}return 0}function z(f,S){for(var D=new Array(S),F=0;F<S;++F)D[F]=f[F];return D}Object.defineProperty(u,"defaultMaxListeners",{enumerable:!0,get:function(){return h},set:function(f){if(typeof f!="number"||f<0||l(f))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+f+".");h=f}}),u.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(f){if(typeof f!="number"||f<0||l(f))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+f+".");return this._maxListeners=f,this},u.prototype.getMaxListeners=function(){return g(this)},u.prototype.emit=function(f){for(var S=[],D=1;D<arguments.length;D++)S.push(arguments[D]);var F=f==="error",K=this._events;if(K!==void 0)F=F&&K.error===void 0;else if(!F)return!1;if(F){var C;if(S.length>0&&(C=S[0]),C instanceof Error)throw C;var M=new Error("Unhandled error."+(C?" ("+C.message+")":""));throw M.context=C,M}var B=K[f];if(B===void 0)return!1;if(typeof B=="function")c(B,this,S);else{var J=B.length,N=z(B,J);for(D=0;D<J;++D)c(N[D],this,S)}return!0},u.prototype.addListener=function(f,S){return _(this,f,S,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(f,S){return _(this,f,S,!0)},u.prototype.once=function(f,S){return b(S),this.on(f,L(this,f,S)),this},u.prototype.prependOnceListener=function(f,S){return b(S),this.prependListener(f,L(this,f,S)),this},u.prototype.removeListener=function(f,S){var D,F,K,C,M;if(b(S),(F=this._events)===void 0)return this;if((D=F[f])===void 0)return this;if(D===S||D.listener===S)--this._eventsCount==0?this._events=Object.create(null):(delete F[f],F.removeListener&&this.emit("removeListener",f,D.listener||S));else if(typeof D!="function"){for(K=-1,C=D.length-1;C>=0;C--)if(D[C]===S||D[C].listener===S){M=D[C].listener,K=C;break}if(K<0)return this;K===0?D.shift():(function(B,J){for(;J+1<B.length;J++)B[J]=B[J+1];B.pop()})(D,K),D.length===1&&(F[f]=D[0]),F.removeListener!==void 0&&this.emit("removeListener",f,M||S)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(f){var S,D,F;if((D=this._events)===void 0)return this;if(D.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):D[f]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete D[f]),this;if(arguments.length===0){var K,C=Object.keys(D);for(F=0;F<C.length;++F)(K=C[F])!=="removeListener"&&this.removeAllListeners(K);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(S=D[f])=="function")this.removeListener(f,S);else if(S!==void 0)for(F=S.length-1;F>=0;F--)this.removeListener(f,S[F]);return this},u.prototype.listeners=function(f){return I(this,f,!0)},u.prototype.rawListeners=function(f){return I(this,f,!1)},u.listenerCount=function(f,S){return typeof f.listenerCount=="function"?f.listenerCount(S):P.call(f,S)},u.prototype.listenerCount=P,u.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(n,a,o){n.exports.Dispatcher=o(140)},function(n,a,o){n.exports=o(142)},function(n,a,o){a.__esModule=!0;var i=l(o(50)),s=l(o(65)),c=typeof s.default=="function"&&typeof i.default=="symbol"?function(u){return typeof u}:function(u){return u&&typeof s.default=="function"&&u.constructor===s.default&&u!==s.default.prototype?"symbol":typeof u};function l(u){return u&&u.__esModule?u:{default:u}}a.default=typeof s.default=="function"&&c(i.default)==="symbol"?function(u){return u===void 0?"undefined":c(u)}:function(u){return u&&typeof s.default=="function"&&u.constructor===s.default&&u!==s.default.prototype?"symbol":u===void 0?"undefined":c(u)}},function(n,a,o){n.exports={default:o(51),__esModule:!0}},function(n,a,o){o(20),o(29),n.exports=o(30).f("iterator")},function(n,a,o){var i=o(21),s=o(22);n.exports=function(c){return function(l,u){var h,b,g=String(s(l)),_=i(u),E=g.length;return _<0||_>=E?c?"":void 0:(h=g.charCodeAt(_))<55296||h>56319||_+1===E||(b=g.charCodeAt(_+1))<56320||b>57343?c?g.charAt(_):h:c?g.slice(_,_+2):b-56320+(h-55296<<10)+65536}}},function(n,a,o){var i=o(54);n.exports=function(s,c,l){if(i(s),c===void 0)return s;switch(l){case 1:return function(u){return s.call(c,u)};case 2:return function(u,h){return s.call(c,u,h)};case 3:return function(u,h,b){return s.call(c,u,h,b)}}return function(){return s.apply(c,arguments)}}},function(n,a){n.exports=function(o){if(typeof o!="function")throw TypeError(o+" is not a function!");return o}},function(n,a,o){var i=o(38),s=o(16),c=o(28),l={};o(6)(l,o(2)("iterator"),(function(){return this})),n.exports=function(u,h,b){u.prototype=i(l,{next:s(1,b)}),c(u,h+" Iterator")}},function(n,a,o){var i=o(7),s=o(10),c=o(13);n.exports=o(4)?Object.defineProperties:function(l,u){s(l);for(var h,b=c(u),g=b.length,_=0;g>_;)i.f(l,h=b[_++],u[h]);return l}},function(n,a,o){var i=o(9),s=o(58),c=o(59);n.exports=function(l){return function(u,h,b){var g,_=i(u),E=s(_.length),L=c(b,E);if(l&&h!=h){for(;E>L;)if((g=_[L++])!=g)return!0}else for(;E>L;L++)if((l||L in _)&&_[L]===h)return l||L||0;return!l&&-1}}},function(n,a,o){var i=o(21),s=Math.min;n.exports=function(c){return c>0?s(i(c),9007199254740991):0}},function(n,a,o){var i=o(21),s=Math.max,c=Math.min;n.exports=function(l,u){return(l=i(l))<0?s(l+u,0):c(l,u)}},function(n,a,o){var i=o(3).document;n.exports=i&&i.documentElement},function(n,a,o){var i=o(5),s=o(18),c=o(25)("IE_PROTO"),l=Object.prototype;n.exports=Object.getPrototypeOf||function(u){return u=s(u),i(u,c)?u[c]:typeof u.constructor=="function"&&u instanceof u.constructor?u.constructor.prototype:u instanceof Object?l:null}},function(n,a,o){var i=o(63),s=o(64),c=o(12),l=o(9);n.exports=o(34)(Array,"Array",(function(u,h){this._t=l(u),this._i=0,this._k=h}),(function(){var u=this._t,h=this._k,b=this._i++;return!u||b>=u.length?(this._t=void 0,s(1)):s(0,h=="keys"?b:h=="values"?u[b]:[b,u[b]])}),"values"),c.Arguments=c.Array,i("keys"),i("values"),i("entries")},function(n,a){n.exports=function(){}},function(n,a){n.exports=function(o,i){return{value:i,done:!!o}}},function(n,a,o){n.exports={default:o(66),__esModule:!0}},function(n,a,o){o(67),o(73),o(74),o(75),n.exports=o(1).Symbol},function(n,a,o){var i=o(3),s=o(5),c=o(4),l=o(15),u=o(37),h=o(68).KEY,b=o(8),g=o(26),_=o(28),E=o(17),L=o(2),I=o(30),P=o(31),z=o(69),f=o(70),S=o(10),D=o(11),F=o(18),K=o(9),C=o(23),M=o(16),B=o(38),J=o(71),N=o(72),de=o(32),oe=o(7),$=o(13),ce=N.f,_e=oe.f,he=J.f,A=i.Symbol,q=i.JSON,X=q&&q.stringify,re=L("_hidden"),te=L("toPrimitive"),le={}.propertyIsEnumerable,V=g("symbol-registry"),Q=g("symbols"),ee=g("op-symbols"),ie=Object.prototype,ue=typeof A=="function"&&!!de.f,Ce=i.QObject,G=!Ce||!Ce.prototype||!Ce.prototype.findChild,Pe=c&&b((function(){return B(_e({},"a",{get:function(){return _e(this,"a",{value:7}).a}})).a!=7}))?function(T,Y,Z){var se=ce(ie,Y);se&&delete ie[Y],_e(T,Y,Z),se&&T!==ie&&_e(ie,Y,se)}:_e,Xe=function(T){var Y=Q[T]=B(A.prototype);return Y._k=T,Y},nt=ue&&typeof A.iterator=="symbol"?function(T){return typeof T=="symbol"}:function(T){return T instanceof A},ut=function(T,Y,Z){return T===ie&&ut(ee,Y,Z),S(T),Y=C(Y,!0),S(Z),s(Q,Y)?(Z.enumerable?(s(T,re)&&T[re][Y]&&(T[re][Y]=!1),Z=B(Z,{enumerable:M(0,!1)})):(s(T,re)||_e(T,re,M(1,{})),T[re][Y]=!0),Pe(T,Y,Z)):_e(T,Y,Z)},Ut=function(T,Y){S(T);for(var Z,se=z(Y=K(Y)),we=0,be=se.length;be>we;)ut(T,Z=se[we++],Y[Z]);return T},wt=function(T){var Y=le.call(this,T=C(T,!0));return!(this===ie&&s(Q,T)&&!s(ee,T))&&(!(Y||!s(this,T)||!s(Q,T)||s(this,re)&&this[re][T])||Y)},Et=function(T,Y){if(T=K(T),Y=C(Y,!0),T!==ie||!s(Q,Y)||s(ee,Y)){var Z=ce(T,Y);return!Z||!s(Q,Y)||s(T,re)&&T[re][Y]||(Z.enumerable=!0),Z}},Rt=function(T){for(var Y,Z=he(K(T)),se=[],we=0;Z.length>we;)s(Q,Y=Z[we++])||Y==re||Y==h||se.push(Y);return se},St=function(T){for(var Y,Z=T===ie,se=he(Z?ee:K(T)),we=[],be=0;se.length>be;)!s(Q,Y=se[be++])||Z&&!s(ie,Y)||we.push(Q[Y]);return we};ue||(u((A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var T=E(arguments.length>0?arguments[0]:void 0),Y=function(Z){this===ie&&Y.call(ee,Z),s(this,re)&&s(this[re],T)&&(this[re][T]=!1),Pe(this,T,M(1,Z))};return c&&G&&Pe(ie,T,{configurable:!0,set:Y}),Xe(T)}).prototype,"toString",(function(){return this._k})),N.f=Et,oe.f=ut,o(41).f=J.f=Rt,o(19).f=wt,de.f=St,c&&!o(14)&&u(ie,"propertyIsEnumerable",wt,!0),I.f=function(T){return Xe(L(T))}),l(l.G+l.W+l.F*!ue,{Symbol:A});for(var ct="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Ve=0;ct.length>Ve;)L(ct[Ve++]);for(var Tt=$(L.store),H=0;Tt.length>H;)P(Tt[H++]);l(l.S+l.F*!ue,"Symbol",{for:function(T){return s(V,T+="")?V[T]:V[T]=A(T)},keyFor:function(T){if(!nt(T))throw TypeError(T+" is not a symbol!");for(var Y in V)if(V[Y]===T)return Y},useSetter:function(){G=!0},useSimple:function(){G=!1}}),l(l.S+l.F*!ue,"Object",{create:function(T,Y){return Y===void 0?B(T):Ut(B(T),Y)},defineProperty:ut,defineProperties:Ut,getOwnPropertyDescriptor:Et,getOwnPropertyNames:Rt,getOwnPropertySymbols:St});var k=b((function(){de.f(1)}));l(l.S+l.F*k,"Object",{getOwnPropertySymbols:function(T){return de.f(F(T))}}),q&&l(l.S+l.F*(!ue||b((function(){var T=A();return X([T])!="[null]"||X({a:T})!="{}"||X(Object(T))!="{}"}))),"JSON",{stringify:function(T){for(var Y,Z,se=[T],we=1;arguments.length>we;)se.push(arguments[we++]);if(Z=Y=se[1],(D(Y)||T!==void 0)&&!nt(T))return f(Y)||(Y=function(be,Me){if(typeof Z=="function"&&(Me=Z.call(this,be,Me)),!nt(Me))return Me}),se[1]=Y,X.apply(q,se)}}),A.prototype[te]||o(6)(A.prototype,te,A.prototype.valueOf),_(A,"Symbol"),_(Math,"Math",!0),_(i.JSON,"JSON",!0)},function(n,a,o){var i=o(17)("meta"),s=o(11),c=o(5),l=o(7).f,u=0,h=Object.isExtensible||function(){return!0},b=!o(8)((function(){return h(Object.preventExtensions({}))})),g=function(E){l(E,i,{value:{i:"O"+ ++u,w:{}}})},_=n.exports={KEY:i,NEED:!1,fastKey:function(E,L){if(!s(E))return typeof E=="symbol"?E:(typeof E=="string"?"S":"P")+E;if(!c(E,i)){if(!h(E))return"F";if(!L)return"E";g(E)}return E[i].i},getWeak:function(E,L){if(!c(E,i)){if(!h(E))return!0;if(!L)return!1;g(E)}return E[i].w},onFreeze:function(E){return b&&_.NEED&&h(E)&&!c(E,i)&&g(E),E}}},function(n,a,o){var i=o(13),s=o(32),c=o(19);n.exports=function(l){var u=i(l),h=s.f;if(h)for(var b,g=h(l),_=c.f,E=0;g.length>E;)_.call(l,b=g[E++])&&u.push(b);return u}},function(n,a,o){var i=o(24);n.exports=Array.isArray||function(s){return i(s)=="Array"}},function(n,a,o){var i=o(9),s=o(41).f,c={}.toString,l=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];n.exports.f=function(u){return l&&c.call(u)=="[object Window]"?(function(h){try{return s(h)}catch{return l.slice()}})(u):s(i(u))}},function(n,a,o){var i=o(19),s=o(16),c=o(9),l=o(23),u=o(5),h=o(35),b=Object.getOwnPropertyDescriptor;a.f=o(4)?b:function(g,_){if(g=c(g),_=l(_,!0),h)try{return b(g,_)}catch{}if(u(g,_))return s(!i.f.call(g,_),g[_])}},function(n,a){},function(n,a,o){o(31)("asyncIterator")},function(n,a,o){o(31)("observable")},function(n,a,o){a.__esModule=!0;var i,s=o(77),c=(i=s)&&i.__esModule?i:{default:i};a.default=c.default||function(l){for(var u=1;u<arguments.length;u++){var h=arguments[u];for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(l[b]=h[b])}return l}},function(n,a,o){n.exports={default:o(78),__esModule:!0}},function(n,a,o){o(79),n.exports=o(1).Object.assign},function(n,a,o){var i=o(15);i(i.S+i.F,"Object",{assign:o(80)})},function(n,a,o){var i=o(4),s=o(13),c=o(32),l=o(19),u=o(18),h=o(40),b=Object.assign;n.exports=!b||o(8)((function(){var g={},_={},E=Symbol(),L="abcdefghijklmnopqrst";return g[E]=7,L.split("").forEach((function(I){_[I]=I})),b({},g)[E]!=7||Object.keys(b({},_)).join("")!=L}))?function(g,_){for(var E=u(g),L=arguments.length,I=1,P=c.f,z=l.f;L>I;)for(var f,S=h(arguments[I++]),D=P?s(S).concat(P(S)):s(S),F=D.length,K=0;F>K;)f=D[K++],i&&!z.call(S,f)||(E[f]=S[f]);return E}:b},function(n,a,o){a.__esModule=!0;var i=c(o(82)),s=c(o(85));function c(l){return l&&l.__esModule?l:{default:l}}a.default=function(l,u){if(Array.isArray(l))return l;if((0,i.default)(Object(l)))return(function(h,b){var g=[],_=!0,E=!1,L=void 0;try{for(var I,P=(0,s.default)(h);!(_=(I=P.next()).done)&&(g.push(I.value),!b||g.length!==b);_=!0);}catch(z){E=!0,L=z}finally{try{!_&&P.return&&P.return()}finally{if(E)throw L}}return g})(l,u);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(n,a,o){n.exports={default:o(83),__esModule:!0}},function(n,a,o){o(29),o(20),n.exports=o(84)},function(n,a,o){var i=o(42),s=o(2)("iterator"),c=o(12);n.exports=o(1).isIterable=function(l){var u=Object(l);return u[s]!==void 0||"@@iterator"in u||c.hasOwnProperty(i(u))}},function(n,a,o){n.exports={default:o(86),__esModule:!0}},function(n,a,o){o(29),o(20),n.exports=o(87)},function(n,a,o){var i=o(10),s=o(88);n.exports=o(1).getIterator=function(c){var l=s(c);if(typeof l!="function")throw TypeError(c+" is not iterable!");return i(l.call(c))}},function(n,a,o){var i=o(42),s=o(2)("iterator"),c=o(12);n.exports=o(1).getIteratorMethod=function(l){if(l!=null)return l[s]||l["@@iterator"]||c[i(l)]}},function(n,a,o){n.exports={default:o(90),__esModule:!0}},function(n,a,o){o(91),n.exports=o(1).Object.keys},function(n,a,o){var i=o(18),s=o(13);o(92)("keys",(function(){return function(c){return s(i(c))}}))},function(n,a,o){var i=o(15),s=o(1),c=o(8);n.exports=function(l,u){var h=(s.Object||{})[l]||Object[l],b={};b[l]=u(h),i(i.S+i.F*c((function(){h(1)})),"Object",b)}},function(n,a,o){(function(i){var s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],c=/^\s+|\s+$/g,l=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,u=/\{\n\/\* \[wrapped with (.+)\] \*/,h=/,? & /,b=/^[-+]0x[0-9a-f]+$/i,g=/^0b[01]+$/i,_=/^\[object .+?Constructor\]$/,E=/^0o[0-7]+$/i,L=/^(?:0|[1-9]\d*)$/,I=parseInt,P=typeof i=="object"&&i&&i.Object===Object&&i,z=typeof self=="object"&&self&&self.Object===Object&&self,f=P||z||Function("return this")();function S(H,k,T){switch(T.length){case 0:return H.call(k);case 1:return H.call(k,T[0]);case 2:return H.call(k,T[0],T[1]);case 3:return H.call(k,T[0],T[1],T[2])}return H.apply(k,T)}function D(H,k){return!!(H&&H.length)&&(function(T,Y,Z){if(Y!=Y)return(function(be,Me,Re,ae){for(var Se=be.length,ge=Re+-1;++ge<Se;)if(Me(be[ge],ge,be))return ge;return-1})(T,F,Z);for(var se=Z-1,we=T.length;++se<we;)if(T[se]===Y)return se;return-1})(H,k,0)>-1}function F(H){return H!=H}function K(H,k){for(var T=H.length,Y=0;T--;)H[T]===k&&Y++;return Y}function C(H,k){for(var T=-1,Y=H.length,Z=0,se=[];++T<Y;){var we=H[T];we!==k&&we!=="__lodash_placeholder__"||(H[T]="__lodash_placeholder__",se[Z++]=T)}return se}var M,B,J,N=Function.prototype,de=Object.prototype,oe=f["__core-js_shared__"],$=(M=/[^.]+$/.exec(oe&&oe.keys&&oe.keys.IE_PROTO||""))?"Symbol(src)_1."+M:"",ce=N.toString,_e=de.hasOwnProperty,he=de.toString,A=RegExp("^"+ce.call(_e).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),q=Object.create,X=Math.max,re=Math.min,te=(B=Xe(Object,"defineProperty"),(J=Xe.name)&&J.length>2?B:void 0);function le(H){return ct(H)?q(H):{}}function V(H){return!(!ct(H)||(function(k){return!!$&&$ in k})(H))&&((function(k){var T=ct(k)?he.call(k):"";return T=="[object Function]"||T=="[object GeneratorFunction]"})(H)||(function(k){var T=!1;if(k!=null&&typeof k.toString!="function")try{T=!!(k+"")}catch{}return T})(H)?A:_).test((function(k){if(k!=null){try{return ce.call(k)}catch{}try{return k+""}catch{}}return""})(H))}function Q(H,k,T,Y){for(var Z=-1,se=H.length,we=T.length,be=-1,Me=k.length,Re=X(se-we,0),ae=Array(Me+Re),Se=!Y;++be<Me;)ae[be]=k[be];for(;++Z<we;)(Se||Z<se)&&(ae[T[Z]]=H[Z]);for(;Re--;)ae[be++]=H[Z++];return ae}function ee(H,k,T,Y){for(var Z=-1,se=H.length,we=-1,be=T.length,Me=-1,Re=k.length,ae=X(se-be,0),Se=Array(ae+Re),ge=!Y;++Z<ae;)Se[Z]=H[Z];for(var Ye=Z;++Me<Re;)Se[Ye+Me]=k[Me];for(;++we<be;)(ge||Z<se)&&(Se[Ye+T[we]]=H[Z++]);return Se}function ie(H){return function(){var k=arguments;switch(k.length){case 0:return new H;case 1:return new H(k[0]);case 2:return new H(k[0],k[1]);case 3:return new H(k[0],k[1],k[2]);case 4:return new H(k[0],k[1],k[2],k[3]);case 5:return new H(k[0],k[1],k[2],k[3],k[4]);case 6:return new H(k[0],k[1],k[2],k[3],k[4],k[5]);case 7:return new H(k[0],k[1],k[2],k[3],k[4],k[5],k[6])}var T=le(H.prototype),Y=H.apply(T,k);return ct(Y)?Y:T}}function ue(H,k,T,Y,Z,se,we,be,Me,Re){var ae=128&k,Se=1&k,ge=2&k,Ye=24&k,Fe=512&k,rt=ge?void 0:ie(H);return function at(){for(var ze=arguments.length,me=Array(ze),Je=ze;Je--;)me[Je]=arguments[Je];if(Ye)var ot=Pe(at),At=K(me,ot);if(Y&&(me=Q(me,Y,Z,Ye)),se&&(me=ee(me,se,we,Ye)),ze-=At,Ye&&ze<Re){var jt=C(me,ot);return Ce(H,k,ue,at.placeholder,T,me,jt,be,Me,Re-ze)}var ft=Se?T:this,Pt=ge?ft[H]:H;return ze=me.length,be?me=wt(me,be):Fe&&ze>1&&me.reverse(),ae&&Me<ze&&(me.length=Me),this&&this!==f&&this instanceof at&&(Pt=rt||ie(Pt)),Pt.apply(ft,me)}}function Ce(H,k,T,Y,Z,se,we,be,Me,Re){var ae=8&k;k|=ae?32:64,4&(k&=~(ae?64:32))||(k&=-4);var Se=T(H,k,Z,ae?se:void 0,ae?we:void 0,ae?void 0:se,ae?void 0:we,be,Me,Re);return Se.placeholder=Y,Et(Se,H,k)}function G(H,k,T,Y,Z,se,we,be){var Me=2&k;if(!Me&&typeof H!="function")throw new TypeError("Expected a function");var Re=Y?Y.length:0;if(Re||(k&=-97,Y=Z=void 0),we=we===void 0?we:X(Tt(we),0),be=be===void 0?be:Tt(be),Re-=Z?Z.length:0,64&k){var ae=Y,Se=Z;Y=Z=void 0}var ge=[H,k,T,Y,Z,ae,Se,se,we,be];if(H=ge[0],k=ge[1],T=ge[2],Y=ge[3],Z=ge[4],!(be=ge[9]=ge[9]==null?Me?0:H.length:X(ge[9]-Re,0))&&24&k&&(k&=-25),k&&k!=1)Ye=k==8||k==16?(function(Fe,rt,at){var ze=ie(Fe);return function me(){for(var Je=arguments.length,ot=Array(Je),At=Je,jt=Pe(me);At--;)ot[At]=arguments[At];var ft=Je<3&&ot[0]!==jt&&ot[Je-1]!==jt?[]:C(ot,jt);if((Je-=ft.length)<at)return Ce(Fe,rt,ue,me.placeholder,void 0,ot,ft,void 0,void 0,at-Je);var Pt=this&&this!==f&&this instanceof me?ze:Fe;return S(Pt,this,ot)}})(H,k,be):k!=32&&k!=33||Z.length?ue.apply(void 0,ge):(function(Fe,rt,at,ze){var me=1&rt,Je=ie(Fe);return function ot(){for(var At=-1,jt=arguments.length,ft=-1,Pt=ze.length,An=Array(Pt+jt),pr=this&&this!==f&&this instanceof ot?Je:Fe;++ft<Pt;)An[ft]=ze[ft];for(;jt--;)An[ft++]=arguments[++At];return S(pr,me?at:this,An)}})(H,k,T,Y);else var Ye=(function(Fe,rt,at){var ze=1&rt,me=ie(Fe);return function Je(){var ot=this&&this!==f&&this instanceof Je?me:Fe;return ot.apply(ze?at:this,arguments)}})(H,k,T);return Et(Ye,H,k)}function Pe(H){return H.placeholder}function Xe(H,k){var T=(function(Y,Z){return Y?.[Z]})(H,k);return V(T)?T:void 0}function nt(H){var k=H.match(u);return k?k[1].split(h):[]}function ut(H,k){var T=k.length,Y=T-1;return k[Y]=(T>1?"& ":"")+k[Y],k=k.join(T>2?", ":" "),H.replace(l,`{
|
|
495
|
-
|
|
496
|
-
`)}function Ut(H,k){return!!(k=k??9007199254740991)&&(typeof H=="number"||L.test(H))&&H>-1&&H%1==0&&H<k}function wt(H,k){for(var T=H.length,Y=re(k.length,T),Z=(function(we,be){var Me=-1,Re=we.length;for(be||(be=Array(Re));++Me<Re;)be[Me]=we[Me];return be})(H);Y--;){var se=k[Y];H[Y]=Ut(se,T)?Z[se]:void 0}return H}var Et=te?function(H,k,T){var Y,Z=k+"";return te(H,"toString",{configurable:!0,enumerable:!1,value:(Y=ut(Z,Rt(nt(Z),T)),function(){return Y})})}:function(H){return H};function Rt(H,k){return(function(T,Y){for(var Z=-1,se=T?T.length:0;++Z<se&&Y(T[Z],Z,T)!==!1;);})(s,(function(T){var Y="_."+T[0];k&T[1]&&!D(H,Y)&&H.push(Y)})),H.sort()}function St(H,k,T){var Y=G(H,8,void 0,void 0,void 0,void 0,void 0,k=T?void 0:k);return Y.placeholder=St.placeholder,Y}function ct(H){var k=typeof H;return!!H&&(k=="object"||k=="function")}function Ve(H){return H?(H=(function(k){if(typeof k=="number")return k;if((function(Z){return typeof Z=="symbol"||(function(se){return!!se&&typeof se=="object"})(Z)&&he.call(Z)=="[object Symbol]"})(k))return NaN;if(ct(k)){var T=typeof k.valueOf=="function"?k.valueOf():k;k=ct(T)?T+"":T}if(typeof k!="string")return k===0?k:+k;k=k.replace(c,"");var Y=g.test(k);return Y||E.test(k)?I(k.slice(2),Y?2:8):b.test(k)?NaN:+k})(H))===1/0||H===-1/0?17976931348623157e292*(H<0?-1:1):H==H?H:0:H===0?H:0}function Tt(H){var k=Ve(H),T=k%1;return k==k?T?k-T:k:0}St.placeholder={},n.exports=St}).call(this,o(43))},function(n,a,o){function i(ee){return ee&&ee.__esModule?ee.default:ee}a.__esModule=!0;var s=o(95);a.threezerotwofour=i(s);var c=o(96);a.apathy=i(c);var l=o(97);a.ashes=i(l);var u=o(98);a.atelierDune=i(u);var h=o(99);a.atelierForest=i(h);var b=o(100);a.atelierHeath=i(b);var g=o(101);a.atelierLakeside=i(g);var _=o(102);a.atelierSeaside=i(_);var E=o(103);a.bespin=i(E);var L=o(104);a.brewer=i(L);var I=o(105);a.bright=i(I);var P=o(106);a.chalk=i(P);var z=o(107);a.codeschool=i(z);var f=o(108);a.colors=i(f);var S=o(109);a.default=i(S);var D=o(110);a.eighties=i(D);var F=o(111);a.embers=i(F);var K=o(112);a.flat=i(K);var C=o(113);a.google=i(C);var M=o(114);a.grayscale=i(M);var B=o(115);a.greenscreen=i(B);var J=o(116);a.harmonic=i(J);var N=o(117);a.hopscotch=i(N);var de=o(118);a.isotope=i(de);var oe=o(119);a.marrakesh=i(oe);var $=o(120);a.mocha=i($);var ce=o(121);a.monokai=i(ce);var _e=o(122);a.ocean=i(_e);var he=o(123);a.paraiso=i(he);var A=o(124);a.pop=i(A);var q=o(125);a.railscasts=i(q);var X=o(126);a.shapeshifter=i(X);var re=o(127);a.solarized=i(re);var te=o(128);a.summerfruit=i(te);var le=o(129);a.tomorrow=i(le);var V=o(130);a.tube=i(V);var Q=o(131);a.twilight=i(Q)},function(n,a,o){a.__esModule=!0,a.default={scheme:"threezerotwofour",author:"jan t. sott (http://github.com/idleberg)",base00:"#090300",base01:"#3a3432",base02:"#4a4543",base03:"#5c5855",base04:"#807d7c",base05:"#a5a2a2",base06:"#d6d5d4",base07:"#f7f7f7",base08:"#db2d20",base09:"#e8bbd0",base0A:"#fded02",base0B:"#01a252",base0C:"#b5e4f4",base0D:"#01a0e4",base0E:"#a16a94",base0F:"#cdab53"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"apathy",author:"jannik siebert (https://github.com/janniks)",base00:"#031A16",base01:"#0B342D",base02:"#184E45",base03:"#2B685E",base04:"#5F9C92",base05:"#81B5AC",base06:"#A7CEC8",base07:"#D2E7E4",base08:"#3E9688",base09:"#3E7996",base0A:"#3E4C96",base0B:"#883E96",base0C:"#963E4C",base0D:"#96883E",base0E:"#4C963E",base0F:"#3E965B"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"ashes",author:"jannik siebert (https://github.com/janniks)",base00:"#1C2023",base01:"#393F45",base02:"#565E65",base03:"#747C84",base04:"#ADB3BA",base05:"#C7CCD1",base06:"#DFE2E5",base07:"#F3F4F5",base08:"#C7AE95",base09:"#C7C795",base0A:"#AEC795",base0B:"#95C7AE",base0C:"#95AEC7",base0D:"#AE95C7",base0E:"#C795AE",base0F:"#C79595"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"atelier dune",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)",base00:"#20201d",base01:"#292824",base02:"#6e6b5e",base03:"#7d7a68",base04:"#999580",base05:"#a6a28c",base06:"#e8e4cf",base07:"#fefbec",base08:"#d73737",base09:"#b65611",base0A:"#cfb017",base0B:"#60ac39",base0C:"#1fad83",base0D:"#6684e1",base0E:"#b854d4",base0F:"#d43552"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"atelier forest",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)",base00:"#1b1918",base01:"#2c2421",base02:"#68615e",base03:"#766e6b",base04:"#9c9491",base05:"#a8a19f",base06:"#e6e2e0",base07:"#f1efee",base08:"#f22c40",base09:"#df5320",base0A:"#d5911a",base0B:"#5ab738",base0C:"#00ad9c",base0D:"#407ee7",base0E:"#6666ea",base0F:"#c33ff3"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"atelier heath",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)",base00:"#1b181b",base01:"#292329",base02:"#695d69",base03:"#776977",base04:"#9e8f9e",base05:"#ab9bab",base06:"#d8cad8",base07:"#f7f3f7",base08:"#ca402b",base09:"#a65926",base0A:"#bb8a35",base0B:"#379a37",base0C:"#159393",base0D:"#516aec",base0E:"#7b59c0",base0F:"#cc33cc"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"atelier lakeside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)",base00:"#161b1d",base01:"#1f292e",base02:"#516d7b",base03:"#5a7b8c",base04:"#7195a8",base05:"#7ea2b4",base06:"#c1e4f6",base07:"#ebf8ff",base08:"#d22d72",base09:"#935c25",base0A:"#8a8a0f",base0B:"#568c3b",base0C:"#2d8f6f",base0D:"#257fad",base0E:"#5d5db1",base0F:"#b72dd2"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"atelier seaside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)",base00:"#131513",base01:"#242924",base02:"#5e6e5e",base03:"#687d68",base04:"#809980",base05:"#8ca68c",base06:"#cfe8cf",base07:"#f0fff0",base08:"#e6193c",base09:"#87711d",base0A:"#c3c322",base0B:"#29a329",base0C:"#1999b3",base0D:"#3d62f5",base0E:"#ad2bee",base0F:"#e619c3"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"bespin",author:"jan t. sott",base00:"#28211c",base01:"#36312e",base02:"#5e5d5c",base03:"#666666",base04:"#797977",base05:"#8a8986",base06:"#9d9b97",base07:"#baae9e",base08:"#cf6a4c",base09:"#cf7d34",base0A:"#f9ee98",base0B:"#54be0d",base0C:"#afc4db",base0D:"#5ea6ea",base0E:"#9b859d",base0F:"#937121"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"brewer",author:"timothée poisot (http://github.com/tpoisot)",base00:"#0c0d0e",base01:"#2e2f30",base02:"#515253",base03:"#737475",base04:"#959697",base05:"#b7b8b9",base06:"#dadbdc",base07:"#fcfdfe",base08:"#e31a1c",base09:"#e6550d",base0A:"#dca060",base0B:"#31a354",base0C:"#80b1d3",base0D:"#3182bd",base0E:"#756bb1",base0F:"#b15928"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"bright",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#303030",base02:"#505050",base03:"#b0b0b0",base04:"#d0d0d0",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ffffff",base08:"#fb0120",base09:"#fc6d24",base0A:"#fda331",base0B:"#a1c659",base0C:"#76c7b7",base0D:"#6fb3d2",base0E:"#d381c3",base0F:"#be643c"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"chalk",author:"chris kempson (http://chriskempson.com)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#eda987",base0A:"#ddb26f",base0B:"#acc267",base0C:"#12cfc0",base0D:"#6fc2ef",base0E:"#e1a3ee",base0F:"#deaf8f"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"codeschool",author:"brettof86",base00:"#232c31",base01:"#1c3657",base02:"#2a343a",base03:"#3f4944",base04:"#84898c",base05:"#9ea7a6",base06:"#a7cfa3",base07:"#b5d8f6",base08:"#2a5491",base09:"#43820d",base0A:"#a03b1e",base0B:"#237986",base0C:"#b02f30",base0D:"#484d79",base0E:"#c59820",base0F:"#c98344"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"colors",author:"mrmrs (http://clrs.cc)",base00:"#111111",base01:"#333333",base02:"#555555",base03:"#777777",base04:"#999999",base05:"#bbbbbb",base06:"#dddddd",base07:"#ffffff",base08:"#ff4136",base09:"#ff851b",base0A:"#ffdc00",base0B:"#2ecc40",base0C:"#7fdbff",base0D:"#0074d9",base0E:"#b10dc9",base0F:"#85144b"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"default",author:"chris kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"embers",author:"jannik siebert (https://github.com/janniks)",base00:"#16130F",base01:"#2C2620",base02:"#433B32",base03:"#5A5047",base04:"#8A8075",base05:"#A39A90",base06:"#BEB6AE",base07:"#DBD6D1",base08:"#826D57",base09:"#828257",base0A:"#6D8257",base0B:"#57826D",base0C:"#576D82",base0D:"#6D5782",base0E:"#82576D",base0F:"#825757"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"flat",author:"chris kempson (http://chriskempson.com)",base00:"#2C3E50",base01:"#34495E",base02:"#7F8C8D",base03:"#95A5A6",base04:"#BDC3C7",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ECF0F1",base08:"#E74C3C",base09:"#E67E22",base0A:"#F1C40F",base0B:"#2ECC71",base0C:"#1ABC9C",base0D:"#3498DB",base0E:"#9B59B6",base0F:"#be643c"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"google",author:"seth wright (http://sethawright.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#CC342B",base09:"#F96A38",base0A:"#FBA922",base0B:"#198844",base0C:"#3971ED",base0D:"#3971ED",base0E:"#A36AC7",base0F:"#3971ED"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"grayscale",author:"alexandre gavioli (https://github.com/alexx2/)",base00:"#101010",base01:"#252525",base02:"#464646",base03:"#525252",base04:"#ababab",base05:"#b9b9b9",base06:"#e3e3e3",base07:"#f7f7f7",base08:"#7c7c7c",base09:"#999999",base0A:"#a0a0a0",base0B:"#8e8e8e",base0C:"#868686",base0D:"#686868",base0E:"#747474",base0F:"#5e5e5e"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"green screen",author:"chris kempson (http://chriskempson.com)",base00:"#001100",base01:"#003300",base02:"#005500",base03:"#007700",base04:"#009900",base05:"#00bb00",base06:"#00dd00",base07:"#00ff00",base08:"#007700",base09:"#009900",base0A:"#007700",base0B:"#00bb00",base0C:"#005500",base0D:"#009900",base0E:"#00bb00",base0F:"#005500"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"harmonic16",author:"jannik siebert (https://github.com/janniks)",base00:"#0b1c2c",base01:"#223b54",base02:"#405c79",base03:"#627e99",base04:"#aabcce",base05:"#cbd6e2",base06:"#e5ebf1",base07:"#f7f9fb",base08:"#bf8b56",base09:"#bfbf56",base0A:"#8bbf56",base0B:"#56bf8b",base0C:"#568bbf",base0D:"#8b56bf",base0E:"#bf568b",base0F:"#bf5656"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"hopscotch",author:"jan t. sott",base00:"#322931",base01:"#433b42",base02:"#5c545b",base03:"#797379",base04:"#989498",base05:"#b9b5b8",base06:"#d5d3d5",base07:"#ffffff",base08:"#dd464c",base09:"#fd8b19",base0A:"#fdcc59",base0B:"#8fc13e",base0C:"#149b93",base0D:"#1290bf",base0E:"#c85e7c",base0F:"#b33508"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"isotope",author:"jan t. sott",base00:"#000000",base01:"#404040",base02:"#606060",base03:"#808080",base04:"#c0c0c0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#ff0000",base09:"#ff9900",base0A:"#ff0099",base0B:"#33ff00",base0C:"#00ffff",base0D:"#0066ff",base0E:"#cc00ff",base0F:"#3300ff"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"marrakesh",author:"alexandre gavioli (http://github.com/alexx2/)",base00:"#201602",base01:"#302e00",base02:"#5f5b17",base03:"#6c6823",base04:"#86813b",base05:"#948e48",base06:"#ccc37a",base07:"#faf0a5",base08:"#c35359",base09:"#b36144",base0A:"#a88339",base0B:"#18974e",base0C:"#75a738",base0D:"#477ca1",base0E:"#8868b3",base0F:"#b3588e"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"mocha",author:"chris kempson (http://chriskempson.com)",base00:"#3B3228",base01:"#534636",base02:"#645240",base03:"#7e705a",base04:"#b8afad",base05:"#d0c8c6",base06:"#e9e1dd",base07:"#f5eeeb",base08:"#cb6077",base09:"#d28b71",base0A:"#f4bc87",base0B:"#beb55b",base0C:"#7bbda4",base0D:"#8ab3b5",base0E:"#a89bb9",base0F:"#bb9584"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"monokai",author:"wimer hazenberg (http://www.monokai.nl)",base00:"#272822",base01:"#383830",base02:"#49483e",base03:"#75715e",base04:"#a59f85",base05:"#f8f8f2",base06:"#f5f4f1",base07:"#f9f8f5",base08:"#f92672",base09:"#fd971f",base0A:"#f4bf75",base0B:"#a6e22e",base0C:"#a1efe4",base0D:"#66d9ef",base0E:"#ae81ff",base0F:"#cc6633"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"ocean",author:"chris kempson (http://chriskempson.com)",base00:"#2b303b",base01:"#343d46",base02:"#4f5b66",base03:"#65737e",base04:"#a7adba",base05:"#c0c5ce",base06:"#dfe1e8",base07:"#eff1f5",base08:"#bf616a",base09:"#d08770",base0A:"#ebcb8b",base0B:"#a3be8c",base0C:"#96b5b4",base0D:"#8fa1b3",base0E:"#b48ead",base0F:"#ab7967"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"paraiso",author:"jan t. sott",base00:"#2f1e2e",base01:"#41323f",base02:"#4f424c",base03:"#776e71",base04:"#8d8687",base05:"#a39e9b",base06:"#b9b6b0",base07:"#e7e9db",base08:"#ef6155",base09:"#f99b15",base0A:"#fec418",base0B:"#48b685",base0C:"#5bc4bf",base0D:"#06b6ef",base0E:"#815ba4",base0F:"#e96ba8"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"pop",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#eb008a",base09:"#f29333",base0A:"#f8ca12",base0B:"#37b349",base0C:"#00aabb",base0D:"#0e5a94",base0E:"#b31e8d",base0F:"#7a2d00"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"railscasts",author:"ryan bates (http://railscasts.com)",base00:"#2b2b2b",base01:"#272935",base02:"#3a4055",base03:"#5a647e",base04:"#d4cfc9",base05:"#e6e1dc",base06:"#f4f1ed",base07:"#f9f7f3",base08:"#da4939",base09:"#cc7833",base0A:"#ffc66d",base0B:"#a5c261",base0C:"#519f50",base0D:"#6d9cbe",base0E:"#b6b3eb",base0F:"#bc9458"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"shapeshifter",author:"tyler benziger (http://tybenz.com)",base00:"#000000",base01:"#040404",base02:"#102015",base03:"#343434",base04:"#555555",base05:"#ababab",base06:"#e0e0e0",base07:"#f9f9f9",base08:"#e92f2f",base09:"#e09448",base0A:"#dddd13",base0B:"#0ed839",base0C:"#23edda",base0D:"#3b48e3",base0E:"#f996e2",base0F:"#69542d"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"summerfruit",author:"christopher corley (http://cscorley.github.io/)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#B0B0B0",base05:"#D0D0D0",base06:"#E0E0E0",base07:"#FFFFFF",base08:"#FF0086",base09:"#FD8900",base0A:"#ABA800",base0B:"#00C918",base0C:"#1faaaa",base0D:"#3777E6",base0E:"#AD00A1",base0F:"#cc6633"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"london tube",author:"jan t. sott",base00:"#231f20",base01:"#1c3f95",base02:"#5a5758",base03:"#737171",base04:"#959ca1",base05:"#d9d8d8",base06:"#e7e7e8",base07:"#ffffff",base08:"#ee2e24",base09:"#f386a1",base0A:"#ffd204",base0B:"#00853e",base0C:"#85cebc",base0D:"#009ddc",base0E:"#98005d",base0F:"#b06110"},n.exports=a.default},function(n,a,o){a.__esModule=!0,a.default={scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f"},n.exports=a.default},function(n,a,o){var i=o(33);function s(c){var l=Math.round(i(c,0,255)).toString(16);return l.length==1?"0"+l:l}n.exports=function(c){var l=c.length===4?s(255*c[3]):"";return"#"+s(c[0])+s(c[1])+s(c[2])+l}},function(n,a,o){var i=o(134),s=o(135),c=o(136),l=o(137),u={"#":s,hsl:function(b){var g=i(b),_=l(g);return g.length===4&&_.push(g[3]),_},rgb:c};function h(b){for(var g in u)if(b.indexOf(g)===0)return u[g](b)}h.rgb=c,h.hsl=i,h.hex=s,n.exports=h},function(n,a,o){var i=o(44),s=o(33);function c(l,u){switch(l=parseFloat(l),u){case 0:return s(l,0,360);case 1:case 2:return s(l,0,100);case 3:return s(l,0,1)}}n.exports=function(l){return i(l).map(c)}},function(n,a){n.exports=function(o){o.length!==4&&o.length!==5||(o=(function(c){for(var l="#",u=1;u<c.length;u++){var h=c.charAt(u);l+=h+h}return l})(o));var i=[parseInt(o.substring(1,3),16),parseInt(o.substring(3,5),16),parseInt(o.substring(5,7),16)];if(o.length===9){var s=parseFloat((parseInt(o.substring(7,9),16)/255).toFixed(2));i.push(s)}return i}},function(n,a,o){var i=o(44),s=o(33);function c(l,u){return u<3?l.indexOf("%")!=-1?Math.round(255*s(parseInt(l,10),0,100)/100):s(parseInt(l,10),0,255):s(parseFloat(l),0,1)}n.exports=function(l){return i(l).map(c)}},function(n,a){n.exports=function(o){var i,s,c,l,u,h=o[0]/360,b=o[1]/100,g=o[2]/100;if(b==0)return[u=255*g,u,u];i=2*g-(s=g<.5?g*(1+b):g+b-g*b),l=[0,0,0];for(var _=0;_<3;_++)(c=h+1/3*-(_-1))<0&&c++,c>1&&c--,u=6*c<1?i+6*(s-i)*c:2*c<1?s:3*c<2?i+(s-i)*(2/3-c)*6:i,l[_]=255*u;return l}},function(n,a,o){(function(i){var s=typeof i=="object"&&i&&i.Object===Object&&i,c=typeof self=="object"&&self&&self.Object===Object&&self,l=s||c||Function("return this")();function u(C,M,B){switch(B.length){case 0:return C.call(M);case 1:return C.call(M,B[0]);case 2:return C.call(M,B[0],B[1]);case 3:return C.call(M,B[0],B[1],B[2])}return C.apply(M,B)}function h(C,M){for(var B=-1,J=M.length,N=C.length;++B<J;)C[N+B]=M[B];return C}var b=Object.prototype,g=b.hasOwnProperty,_=b.toString,E=l.Symbol,L=b.propertyIsEnumerable,I=E?E.isConcatSpreadable:void 0,P=Math.max;function z(C){return f(C)||(function(M){return(function(B){return(function(J){return!!J&&typeof J=="object"})(B)&&(function(J){return J!=null&&(function(N){return typeof N=="number"&&N>-1&&N%1==0&&N<=9007199254740991})(J.length)&&!(function(N){var de=(function(oe){var $=typeof oe;return!!oe&&($=="object"||$=="function")})(N)?_.call(N):"";return de=="[object Function]"||de=="[object GeneratorFunction]"})(J)})(B)})(M)&&g.call(M,"callee")&&(!L.call(M,"callee")||_.call(M)=="[object Arguments]")})(C)||!!(I&&C&&C[I])}var f=Array.isArray,S,D,F,K=(D=function(C){var M=(C=(function(N,de,oe,$,ce){var _e=-1,he=N.length;for(oe||(oe=z),ce||(ce=[]);++_e<he;){var A=N[_e];oe(A)?h(ce,A):ce[ce.length]=A}return ce})(C)).length,B=M;for(S;B--;)if(typeof C[B]!="function")throw new TypeError("Expected a function");return function(){for(var J=0,N=M?C[J].apply(this,arguments):arguments[0];++J<M;)N=C[J].call(this,N);return N}},F=P(F===void 0?D.length-1:F,0),function(){for(var C=arguments,M=-1,B=P(C.length-F,0),J=Array(B);++M<B;)J[M]=C[F+M];M=-1;for(var N=Array(F+1);++M<F;)N[M]=C[M];return N[F]=J,u(D,this,N)});n.exports=K}).call(this,o(43))},function(n,a,o){Object.defineProperty(a,"__esModule",{value:!0}),a.yuv2rgb=function(i){var s,c,l,u=i[0],h=i[1],b=i[2];return s=1*u+0*h+1.13983*b,c=1*u+-.39465*h+-.5806*b,l=1*u+2.02311*h+0*b,s=Math.min(Math.max(0,s),1),c=Math.min(Math.max(0,c),1),l=Math.min(Math.max(0,l),1),[255*s,255*c,255*l]},a.rgb2yuv=function(i){var s=i[0]/255,c=i[1]/255,l=i[2]/255;return[.299*s+.587*c+.114*l,-.14713*s+-.28886*c+.436*l,.615*s+-.51499*c+-.10001*l]}},function(n,a,o){function i(l,u,h){return u in l?Object.defineProperty(l,u,{value:h,enumerable:!0,configurable:!0,writable:!0}):l[u]=h,l}var s=o(141),c=(function(){function l(){i(this,"_callbacks",void 0),i(this,"_isDispatching",void 0),i(this,"_isHandled",void 0),i(this,"_isPending",void 0),i(this,"_lastID",void 0),i(this,"_pendingPayload",void 0),this._callbacks={},this._isDispatching=!1,this._isHandled={},this._isPending={},this._lastID=1}var u=l.prototype;return u.register=function(h){var b="ID_"+this._lastID++;return this._callbacks[b]=h,b},u.unregister=function(h){this._callbacks[h]||s(!1),delete this._callbacks[h]},u.waitFor=function(h){this._isDispatching||s(!1);for(var b=0;b<h.length;b++){var g=h[b];this._isPending[g]?this._isHandled[g]||s(!1):(this._callbacks[g]||s(!1),this._invokeCallback(g))}},u.dispatch=function(h){this._isDispatching&&s(!1),this._startDispatching(h);try{for(var b in this._callbacks)this._isPending[b]||this._invokeCallback(b)}finally{this._stopDispatching()}},u.isDispatching=function(){return this._isDispatching},u._invokeCallback=function(h){this._isPending[h]=!0,this._callbacks[h](this._pendingPayload),this._isHandled[h]=!0},u._startDispatching=function(h){for(var b in this._callbacks)this._isPending[b]=!1,this._isHandled[b]=!1;this._pendingPayload=h,this._isDispatching=!0},u._stopDispatching=function(){delete this._pendingPayload,this._isDispatching=!1},l})();n.exports=c},function(n,a,o){n.exports=function(i,s){for(var c=arguments.length,l=new Array(c>2?c-2:0),u=2;u<c;u++)l[u-2]=arguments[u];if(!i){var h;if(s===void 0)h=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var b=0;(h=new Error(s.replace(/%s/g,(function(){return String(l[b++])})))).name="Invariant Violation"}throw h.framesToPop=1,h}}},function(n,a,o){function i(y,O,p){return O in y?Object.defineProperty(y,O,{value:p,enumerable:!0,configurable:!0,writable:!0}):y[O]=p,y}function s(y,O){var p=Object.keys(y);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(y);O&&(v=v.filter((function(m){return Object.getOwnPropertyDescriptor(y,m).enumerable}))),p.push.apply(p,v)}return p}function c(y){for(var O=1;O<arguments.length;O++){var p=arguments[O]!=null?arguments[O]:{};O%2?s(Object(p),!0).forEach((function(v){i(y,v,p[v])})):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(p)):s(Object(p)).forEach((function(v){Object.defineProperty(y,v,Object.getOwnPropertyDescriptor(p,v))}))}return y}function l(y,O){if(!(y instanceof O))throw new TypeError("Cannot call a class as a function")}function u(y,O){for(var p=0;p<O.length;p++){var v=O[p];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(y,v.key,v)}}function h(y,O,p){return O&&u(y.prototype,O),p&&u(y,p),y}function b(y,O){return(b=Object.setPrototypeOf||function(p,v){return p.__proto__=v,p})(y,O)}function g(y,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(O&&O.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),O&&b(y,O)}function _(y){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(O){return O.__proto__||Object.getPrototypeOf(O)})(y)}function E(y){return(E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O})(y)}function L(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}function I(y,O){return!O||E(O)!=="object"&&typeof O!="function"?L(y):O}function P(y){var O=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch{return!1}})();return function(){var p,v=_(y);if(O){var m=_(this).constructor;p=Reflect.construct(v,arguments,m)}else p=v.apply(this,arguments);return I(this,p)}}o.r(a);var z=o(0),f=o.n(z);function S(){var y=this.constructor.getDerivedStateFromProps(this.props,this.state);y!=null&&this.setState(y)}function D(y){this.setState((function(O){var p=this.constructor.getDerivedStateFromProps(y,O);return p??null}).bind(this))}function F(y,O){try{var p=this.props,v=this.state;this.props=y,this.state=O,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(p,v)}finally{this.props=p,this.state=v}}function K(y){var O=y.prototype;if(!O||!O.isReactComponent)throw new Error("Can only polyfill class components");if(typeof y.getDerivedStateFromProps!="function"&&typeof O.getSnapshotBeforeUpdate!="function")return y;var p=null,v=null,m=null;if(typeof O.componentWillMount=="function"?p="componentWillMount":typeof O.UNSAFE_componentWillMount=="function"&&(p="UNSAFE_componentWillMount"),typeof O.componentWillReceiveProps=="function"?v="componentWillReceiveProps":typeof O.UNSAFE_componentWillReceiveProps=="function"&&(v="UNSAFE_componentWillReceiveProps"),typeof O.componentWillUpdate=="function"?m="componentWillUpdate":typeof O.UNSAFE_componentWillUpdate=="function"&&(m="UNSAFE_componentWillUpdate"),p!==null||v!==null||m!==null){var x=y.displayName||y.name,W=typeof y.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
556
|
+
}`;function Dn(){let e=Ft,t=It,n=I.cssPrefix,r=I.replacementClass,i=En;if(n!==e||r!==t){let a=RegExp(`\\.${e}\\-`,`g`),o=RegExp(`\\--${e}\\-`,`g`),s=RegExp(`\\.${t}`,`g`);i=i.replace(a,`.${n}-`).replace(o,`--${n}-`).replace(s,`.${r}`)}return i}var On=!1;function kn(){I.autoAddCss&&!On&&(hn(Dn()),On=!0)}var An={mixout(){return{dom:{css:Dn,insertCss:kn}}},hooks(){return{beforeDOMElementCreation(){kn()},beforeI2svg(){kn()}}}},jn=Je||{};jn[Nt]||(jn[Nt]={}),jn[Nt].styles||(jn[Nt].styles={}),jn[Nt].hooks||(jn[Nt].hooks={}),jn[Nt].shims||(jn[Nt].shims=[]);var Mn=jn[Nt],Nn=[],Pn=function(){Ye.removeEventListener(`DOMContentLoaded`,Pn),Fn=1,Nn.map(e=>e())},Fn=!1;Qe&&(Fn=(Ye.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ye.readyState),Fn||Ye.addEventListener(`DOMContentLoaded`,Pn));function In(e){Qe&&(Fn?setTimeout(e,0):Nn.push(e))}function Ln(e){let{tag:t,attributes:n={},children:r=[]}=e;return typeof e==`string`?bn(e):`<${t} ${xn(n)}>${r.map(Ln).join(``)}</${t}>`}function Rn(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var zn=function(e,t){return function(n,r,i,a){return e.call(t,n,r,i,a)}},Bn=function(e,t,n,r){var i=Object.keys(e),a=i.length,o=r===void 0?t:zn(t,r),s,c,l;for(n===void 0?(s=1,l=e[i[0]]):(s=0,l=n);s<a;s++)c=i[s],l=o(l,e[c],c,e);return l};function Vn(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let r=e.charCodeAt(n++);(r&64512)==56320?t.push(((i&1023)<<10)+(r&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}function Hn(e){let t=Vn(e);return t.length===1?t[0].toString(16):null}function Un(e,t){let n=e.length,r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function Wn(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function Gn(e,t){let{skipHooks:n=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Wn(t);typeof Mn.hooks.addPack==`function`&&!n?Mn.hooks.addPack(e,Wn(t)):Mn.styles[e]=P(P({},Mn.styles[e]||{}),r),e===`fas`&&Gn(`fa`,t)}var{styles:Kn,shims:qn}=Mn,Jn=Object.keys(Qt),Yn=Jn.reduce((e,t)=>(e[t]=Object.keys(Qt[t]),e),{}),Xn=null,Zn={},Qn={},$n={},er={},tr={};function nr(e){return~F.indexOf(e)}function rr(e,t){let n=t.split(`-`),r=n[0],i=n.slice(1).join(`-`);return r===e&&i!==``&&!nr(i)?i:null}var ir=()=>{let e=e=>Bn(Kn,(t,n,r)=>(t[r]=Bn(n,e,{}),t),{});Zn=e((e,t,n)=>(t[3]&&(e[t[3]]=n),t[2]&&t[2].filter(e=>typeof e==`number`).forEach(t=>{e[t.toString(16)]=n}),e)),Qn=e((e,t,n)=>(e[n]=n,t[2]&&t[2].filter(e=>typeof e==`string`).forEach(t=>{e[t]=n}),e)),tr=e((e,t,n)=>{let r=t[2];return e[n]=n,r.forEach(t=>{e[t]=n}),e});let t=`far`in Kn||I.autoFetchSvg,n=Bn(qn,(e,n)=>{let r=n[0],i=n[1],a=n[2];return i===`far`&&!t&&(i=`fas`),typeof r==`string`&&(e.names[r]={prefix:i,iconName:a}),typeof r==`number`&&(e.unicodes[r.toString(16)]={prefix:i,iconName:a}),e},{names:{},unicodes:{}});$n=n.names,er=n.unicodes,Xn=pr(I.styleDefault,{family:I.familyDefault})};fn(e=>{Xn=pr(e.styleDefault,{family:I.familyDefault})}),ir();function ar(e,t){return(Zn[e]||{})[t]}function or(e,t){return(Qn[e]||{})[t]}function sr(e,t){return(tr[e]||{})[t]}function cr(e){return $n[e]||{prefix:null,iconName:null}}function lr(e){let t=er[e],n=ar(`fas`,e);return t||(n?{prefix:`fas`,iconName:n}:null)||{prefix:null,iconName:null}}function ur(){return Xn}var dr=()=>({prefix:null,iconName:null,rest:[]});function fr(e){let t=at,n=Jn.reduce((e,t)=>(e[t]=`${I.cssPrefix}-${t}`,e),{});return st.forEach(r=>{(e.includes(n[r])||e.some(e=>Yn[r].includes(e)))&&(t=r)}),t}function pr(e){let{family:t=at}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Jt[t][e];if(t===ot&&!e)return`fad`;let r=Xt[t][e]||Xt[t][n],i=e in Mn.styles?e:null;return r||i||null}function mr(e){let t=[],n=null;return e.forEach(e=>{let r=rr(I.cssPrefix,e);r?n=r:e&&t.push(e)}),{iconName:n,rest:t}}function hr(e){return e.sort().filter((e,t,n)=>n.indexOf(e)===t)}function gr(e){let{skipLookups:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=null,r=Dt.concat(xt),i=hr(e.filter(e=>r.includes(e))),a=hr(e.filter(e=>!Dt.includes(e))),[o=null]=i.filter(e=>(n=e,!it.includes(e))),s=fr(i),c=P(P({},mr(a)),{},{prefix:pr(o,{family:s})});return P(P(P({},c),br({values:e,family:s,styles:Kn,config:I,canonical:c,givenPrefix:n})),_r(t,n,c))}function _r(e,t,n){let{prefix:r,iconName:i}=n;if(e||!r||!i)return{prefix:r,iconName:i};let a=t===`fa`?cr(i):{},o=sr(r,i);return i=a.iconName||o||i,r=a.prefix||r,r===`far`&&!Kn.far&&Kn.fas&&!I.autoFetchSvg&&(r=`fas`),{prefix:r,iconName:i}}var vr=st.filter(e=>e!==at||e!==ot),yr=Object.keys(Tt).filter(e=>e!==at).map(e=>Object.keys(Tt[e])).flat();function br(e){let{values:t,family:n,canonical:r,givenPrefix:i=``,styles:a={},config:o={}}=e,s=n===ot,c=t.includes(`fa-duotone`)||t.includes(`fad`),l=o.familyDefault===`duotone`,u=r.prefix===`fad`||r.prefix===`fa-duotone`;return!s&&(c||l||u)&&(r.prefix=`fad`),(t.includes(`fa-brands`)||t.includes(`fab`))&&(r.prefix=`fab`),!r.prefix&&vr.includes(n)&&(Object.keys(a).find(e=>yr.includes(e))||o.autoFetchSvg)&&(r.prefix=ut.get(n).defaultShortPrefixId,r.iconName=sr(r.prefix,r.iconName)||r.iconName),(r.prefix===`fa`||i===`fa`)&&(r.prefix=ur()||`fas`),r}var xr=class{constructor(){this.definitions={}}add(){let e=[...arguments].reduce(this._pullDefinitions,{});Object.keys(e).forEach(t=>{this.definitions[t]=P(P({},this.definitions[t]||{}),e[t]),Gn(t,e[t]);let n=Qt[at][t];n&&Gn(n,e[t]),ir()})}reset(){this.definitions={}}_pullDefinitions(e,t){let n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map(t=>{let{prefix:r,iconName:i,icon:a}=n[t],o=a[2];e[r]||(e[r]={}),o.length>0&&o.forEach(t=>{typeof t==`string`&&(e[r][t]=a)}),e[r][i]=a}),e}},Sr=[],Cr={},wr={},Tr=Object.keys(wr);function Er(e,t){let{mixoutsTo:n}=t;return Sr=e,Cr={},Object.keys(wr).forEach(e=>{Tr.indexOf(e)===-1&&delete wr[e]}),Sr.forEach(e=>{let t=e.mixout?e.mixout():{};if(Object.keys(t).forEach(e=>{typeof t[e]==`function`&&(n[e]=t[e]),typeof t[e]==`object`&&Object.keys(t[e]).forEach(r=>{n[e]||(n[e]={}),n[e][r]=t[e][r]})}),e.hooks){let t=e.hooks();Object.keys(t).forEach(e=>{Cr[e]||(Cr[e]=[]),Cr[e].push(t[e])})}e.provides&&e.provides(wr)}),n}function Dr(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return(Cr[e]||[]).forEach(e=>{t=e.apply(null,[t,...r])}),t}function Or(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Cr[e]||[]).forEach(e=>{e.apply(null,n)})}function kr(){let e=arguments[0],t=Array.prototype.slice.call(arguments,1);return wr[e]?wr[e].apply(null,t):void 0}function Ar(e){e.prefix===`fa`&&(e.prefix=`fas`);let{iconName:t}=e,n=e.prefix||ur();if(t)return t=sr(n,t)||t,Rn(jr.definitions,n,t)||Rn(Mn.styles,n,t)}var jr=new xr,Mr={noAuto:()=>{I.autoReplaceSvg=!1,I.observeMutations=!1,Or(`noAuto`)},config:I,dom:{i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Qe?(Or(`beforeI2svg`,e),kr(`pseudoElements2svg`,e),kr(`i2svg`,e)):Promise.reject(Error(`Operation requires a DOM of some kind.`))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{autoReplaceSvgRoot:t}=e;I.autoReplaceSvg===!1&&(I.autoReplaceSvg=!0),I.observeMutations=!0,In(()=>{Nr({autoReplaceSvgRoot:t}),Or(`watch`,e)})}},parse:{icon:e=>{if(e===null)return null;if(typeof e==`object`&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:sr(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){let t=e[1].indexOf(`fa-`)===0?e[1].slice(3):e[1],n=pr(e[0]);return{prefix:n,iconName:sr(n,t)||t}}if(typeof e==`string`&&(e.indexOf(`${I.cssPrefix}-`)>-1||e.match(en))){let t=gr(e.split(` `),{skipLookups:!0});return{prefix:t.prefix||ur(),iconName:sr(t.prefix,t.iconName)||t.iconName}}if(typeof e==`string`){let t=ur();return{prefix:t,iconName:sr(t,e)||e}}}},library:jr,findIconDefinition:Ar,toHtml:Ln},Nr=function(){let{autoReplaceSvgRoot:e=Ye}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(Object.keys(Mn.styles).length>0||I.autoFetchSvg)&&Qe&&I.autoReplaceSvg&&Mr.dom.i2svg({node:e})};function Pr(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(e=>Ln(e))}}),Object.defineProperty(e,"node",{get:function(){if(!Qe)return;let t=Ye.createElement(`div`);return t.innerHTML=e.html,t.children}}),e}function Fr(e){let{children:t,main:n,mask:r,attributes:i,styles:a,transform:o}=e;if(Cn(o)&&n.found&&!r.found){let{width:e,height:t}=n,r={x:e/t/2,y:.5};i.style=Sn(P(P({},a),{},{"transform-origin":`${r.x+o.x/16}em ${r.y+o.y/16}em`}))}return[{tag:`svg`,attributes:i,children:t}]}function Ir(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:a}=e,o=a===!0?`${t}-${I.cssPrefix}-${n}`:a;return[{tag:`svg`,attributes:{style:`display: none;`},children:[{tag:`symbol`,attributes:P(P({},i),{},{id:o}),children:r}]}]}function Lr(e){let{icons:{main:t,mask:n},prefix:r,iconName:i,transform:a,symbol:o,title:s,maskId:c,titleId:l,extra:u,watchable:d=!1}=e,{width:f,height:p}=n.found?n:t,m=gt.includes(r),h=[I.replacementClass,i?`${I.cssPrefix}-${i}`:``].filter(e=>u.classes.indexOf(e)===-1).filter(e=>e!==``||!!e).concat(u.classes).join(` `),g={children:[],attributes:P(P({},u.attributes),{},{"data-prefix":r,"data-icon":i,class:h,role:u.attributes.role||`img`,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 ${f} ${p}`})},_=m&&!~u.classes.indexOf(`fa-fw`)?{width:`${f/p*16*.0625}em`}:{};d&&(g.attributes[Lt]=``),s&&(g.children.push({tag:`title`,attributes:{id:g.attributes[`aria-labelledby`]||`title-${l||_n()}`},children:[s]}),delete g.attributes.title);let v=P(P({},g),{},{prefix:r,iconName:i,main:t,mask:n,maskId:c,transform:a,symbol:o,styles:P(P({},_),u.styles)}),{children:y,attributes:b}=n.found&&t.found?kr(`generateAbstractMask`,v)||{children:[],attributes:{}}:kr(`generateAbstractIcon`,v)||{children:[],attributes:{}};return v.children=y,v.attributes=b,o?Ir(v):Fr(v)}function Rr(e){let{content:t,width:n,height:r,transform:i,title:a,extra:o,watchable:s=!1}=e,c=P(P(P({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(` `)});s&&(c[Lt]=``);let l=P({},o.styles);Cn(i)&&(l.transform=Tn({transform:i,startCentered:!0,width:n,height:r}),l[`-webkit-transform`]=l.transform);let u=Sn(l);u.length>0&&(c.style=u);let d=[];return d.push({tag:`span`,attributes:c,children:[t]}),a&&d.push({tag:`span`,attributes:{class:`sr-only`},children:[a]}),d}function zr(e){let{content:t,title:n,extra:r}=e,i=P(P(P({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(` `)}),a=Sn(r.styles);a.length>0&&(i.style=a);let o=[];return o.push({tag:`span`,attributes:i,children:[t]}),n&&o.push({tag:`span`,attributes:{class:`sr-only`},children:[n]}),o}var{styles:Br}=Mn;function Vr(e){let t=e[0],n=e[1],[r]=e.slice(4),i=null;return i=Array.isArray(r)?{tag:`g`,attributes:{class:`${I.cssPrefix}-${an.GROUP}`},children:[{tag:`path`,attributes:{class:`${I.cssPrefix}-${an.SECONDARY}`,fill:`currentColor`,d:r[0]}},{tag:`path`,attributes:{class:`${I.cssPrefix}-${an.PRIMARY}`,fill:`currentColor`,d:r[1]}}]}:{tag:`path`,attributes:{fill:`currentColor`,d:r}},{found:!0,width:t,height:n,icon:i}}var Hr={found:!1,width:512,height:512};function Ur(e,t){!Gt&&!I.showMissingIcons&&e&&console.error(`Icon with name "${e}" and prefix "${t}" is missing.`)}function Wr(e,t){let n=t;return t===`fa`&&I.styleDefault!==null&&(t=ur()),new Promise((r,i)=>{if(n===`fa`){let n=cr(e)||{};e=n.iconName||e,t=n.prefix||t}if(e&&t&&Br[t]&&Br[t][e]){let n=Br[t][e];return r(Vr(n))}Ur(e,t),r(P(P({},Hr),{},{icon:I.showMissingIcons&&e&&kr(`missingIconAbstract`)||{}}))})}var Gr=()=>{},Kr=I.measurePerformance&&Ze&&Ze.mark&&Ze.measure?Ze:{mark:Gr,measure:Gr},qr=`FA "6.7.2"`,Jr=e=>(Kr.mark(`${qr} ${e} begins`),()=>Yr(e)),Yr=e=>{Kr.mark(`${qr} ${e} ends`),Kr.measure(`${qr} ${e}`,`${qr} ${e} begins`,`${qr} ${e} ends`)},Xr={begin:Jr,end:Yr},Zr=()=>{};function Qr(e){return typeof(e.getAttribute?e.getAttribute(Lt):null)==`string`}function $r(e){let t=e.getAttribute?e.getAttribute(Bt):null,n=e.getAttribute?e.getAttribute(Vt):null;return t&&n}function ei(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(I.replacementClass)}function ti(){return I.autoReplaceSvg===!0?oi.replace:oi[I.autoReplaceSvg]||oi.replace}function ni(e){return Ye.createElementNS(`http://www.w3.org/2000/svg`,e)}function ri(e){return Ye.createElement(e)}function ii(e){let{ceFn:t=e.tag===`svg`?ni:ri}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof e==`string`)return Ye.createTextNode(e);let n=t(e.tag);return Object.keys(e.attributes||[]).forEach(function(t){n.setAttribute(t,e.attributes[t])}),(e.children||[]).forEach(function(e){n.appendChild(ii(e,{ceFn:t}))}),n}function ai(e){let t=` ${e.outerHTML} `;return t=`${t}Font Awesome fontawesome.com `,t}var oi={replace:function(e){let t=e[0];if(t.parentNode){if(e[1].forEach(e=>{t.parentNode.insertBefore(ii(e),t)}),t.getAttribute(Lt)===null&&I.keepOriginalSource){let e=Ye.createComment(ai(t));t.parentNode.replaceChild(e,t)}else t.remove()}},nest:function(e){let t=e[0],n=e[1];if(~yn(t).indexOf(I.replacementClass))return oi.replace(e);let r=RegExp(`${I.cssPrefix}-.*`);if(delete n[0].attributes.id,n[0].attributes.class){let e=n[0].attributes.class.split(` `).reduce((e,t)=>(t===I.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e),{toNode:[],toSvg:[]});n[0].attributes.class=e.toSvg.join(` `),e.toNode.length===0?t.removeAttribute(`class`):t.setAttribute(`class`,e.toNode.join(` `))}let i=n.map(e=>Ln(e)).join(`
|
|
557
|
+
`);t.setAttribute(Lt,``),t.innerHTML=i}};function si(e){e()}function ci(e,t){let n=typeof t==`function`?t:Zr;if(e.length===0)n();else{let t=si;I.mutateApproach===Ut&&(t=Je.requestAnimationFrame||si),t(()=>{let t=ti(),r=Xr.begin(`mutate`);e.map(t),r(),n()})}}var li=!1;function ui(){li=!0}function di(){li=!1}var fi=null;function pi(e){if(!Xe||!I.observeMutations)return;let{treeCallback:t=Zr,nodeCallback:n=Zr,pseudoElementsCallback:r=Zr,observeMutationsRoot:i=Ye}=e;fi=new Xe(e=>{if(li)return;let i=ur();vn(e).forEach(e=>{if(e.type===`childList`&&e.addedNodes.length>0&&!Qr(e.addedNodes[0])&&(I.searchPseudoElements&&r(e.target),t(e.target)),e.type===`attributes`&&e.target.parentNode&&I.searchPseudoElements&&r(e.target.parentNode),e.type===`attributes`&&Qr(e.target)&&~rn.indexOf(e.attributeName)){if(e.attributeName===`class`&&$r(e.target)){let{prefix:t,iconName:n}=gr(yn(e.target));e.target.setAttribute(Bt,t||i),n&&e.target.setAttribute(Vt,n)}else ei(e.target)&&n(e.target)}})}),Qe&&fi.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function mi(){fi&&fi.disconnect()}function hi(e){let t=e.getAttribute(`style`),n=[];return t&&(n=t.split(`;`).reduce((e,t)=>{let n=t.split(`:`),r=n[0],i=n.slice(1);return r&&i.length>0&&(e[r]=i.join(`:`).trim()),e},{})),n}function gi(e){let t=e.getAttribute(`data-prefix`),n=e.getAttribute(`data-icon`),r=e.innerText===void 0?``:e.innerText.trim(),i=gr(yn(e));return i.prefix||=ur(),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix?i:(i.prefix&&r.length>0&&(i.iconName=or(i.prefix,e.innerText)||ar(i.prefix,Hn(e.innerText))),!i.iconName&&I.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data),i)}function _i(e){let t=vn(e.attributes).reduce((e,t)=>(e.name!==`class`&&e.name!==`style`&&(e[t.name]=t.value),e),{}),n=e.getAttribute(`title`),r=e.getAttribute(`data-fa-title-id`);return I.autoA11y&&(n?t[`aria-labelledby`]=`${I.replacementClass}-title-${r||_n()}`:(t[`aria-hidden`]=`true`,t.focusable=`false`)),t}function vi(){return{iconName:null,title:null,titleId:null,prefix:null,transform:mn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function yi(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},{iconName:n,prefix:r,rest:i}=gi(e),a=_i(e),o=Dr(`parseNodeAttributes`,{},e),s=t.styleParser?hi(e):[];return P({iconName:n,title:e.getAttribute(`title`),titleId:e.getAttribute(`data-fa-title-id`),prefix:r,transform:mn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:s,attributes:a}},o)}var{styles:bi}=Mn;function xi(e){let t=I.autoReplaceSvg===`nest`?yi(e,{styleParser:!1}):yi(e);return~t.extra.classes.indexOf(tn)?kr(`generateLayersText`,e,t):kr(`generateSvgReplacementMutation`,e,t)}function Si(){return[...ft,...Dt]}function Ci(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Qe)return Promise.resolve();let n=Ye.documentElement.classList,r=e=>n.add(`${Ht}-${e}`),i=e=>n.remove(`${Ht}-${e}`),a=I.autoFetchSvg?Si():it.concat(Object.keys(bi));a.includes(`fa`)||a.push(`fa`);let o=[`.${tn}:not([${Lt}])`].concat(a.map(e=>`.${e}:not([${Lt}])`)).join(`, `);if(o.length===0)return Promise.resolve();let s=[];try{s=vn(e.querySelectorAll(o))}catch{}if(s.length>0)r(`pending`),i(`complete`);else return Promise.resolve();let c=Xr.begin(`onTree`),l=s.reduce((e,t)=>{try{let n=xi(t);n&&e.push(n)}catch(e){Gt||e.name===`MissingIcon`&&console.error(e)}return e},[]);return new Promise((e,n)=>{Promise.all(l).then(n=>{ci(n,()=>{r(`active`),r(`complete`),i(`pending`),typeof t==`function`&&t(),c(),e()})}).catch(e=>{c(),n(e)})})}function wi(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;xi(e).then(e=>{e&&ci([e],t)})}function Ti(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Ar(t||{}),{mask:i}=n;return i&&=(i||{}).icon?i:Ar(i||{}),e(r,P(P({},n),{},{mask:i}))}}var Ei=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{transform:n=mn,symbol:r=!1,mask:i=null,maskId:a=null,title:o=null,titleId:s=null,classes:c=[],attributes:l={},styles:u={}}=t;if(!e)return;let{prefix:d,iconName:f,icon:p}=e;return Pr(P({type:`icon`},e),()=>(Or(`beforeDOMElementCreation`,{iconDefinition:e,params:t}),I.autoA11y&&(o?l[`aria-labelledby`]=`${I.replacementClass}-title-${s||_n()}`:(l[`aria-hidden`]=`true`,l.focusable=`false`)),Lr({icons:{main:Vr(p),mask:i?Vr(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:d,iconName:f,transform:P(P({},mn),n),symbol:r,title:o,maskId:a,titleId:s,extra:{attributes:l,styles:u,classes:c}})))},Di={mixout(){return{icon:Ti(Ei)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=Ci,e.nodeCallback=wi,e}}},provides(e){e.i2svg=function(e){let{node:t=Ye,callback:n=()=>{}}=e;return Ci(t,n)},e.generateSvgReplacementMutation=function(e,t){let{iconName:n,title:r,titleId:i,prefix:a,transform:o,symbol:s,mask:c,maskId:l,extra:u}=t;return new Promise((t,d)=>{Promise.all([Wr(n,a),c.iconName?Wr(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(c=>{let[d,f]=c;t([e,Lr({icons:{main:d,mask:f},prefix:a,iconName:n,transform:o,symbol:s,maskId:l,title:r,titleId:i,extra:u,watchable:!0})])}).catch(d)})},e.generateAbstractIcon=function(e){let{children:t,attributes:n,main:r,transform:i,styles:a}=e,o=Sn(a);o.length>0&&(n.style=o);let s;return Cn(i)&&(s=kr(`generateAbstractTransformGrouping`,{main:r,transform:i,containerWidth:r.width,iconWidth:r.width})),t.push(s||r.icon),{children:t,attributes:n}}}},Oi={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{classes:n=[]}=t;return Pr({type:`layer`},()=>{Or(`beforeDOMElementCreation`,{assembler:e,params:t});let r=[];return e(e=>{Array.isArray(e)?e.map(e=>{r=r.concat(e.abstract)}):r=r.concat(e.abstract)}),[{tag:`span`,attributes:{class:[`${I.cssPrefix}-layers`,...n].join(` `)},children:r}]})}}}},ki={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{title:n=null,classes:r=[],attributes:i={},styles:a={}}=t;return Pr({type:`counter`,content:e},()=>(Or(`beforeDOMElementCreation`,{content:e,params:t}),zr({content:e.toString(),title:n,extra:{attributes:i,styles:a,classes:[`${I.cssPrefix}-layers-counter`,...r]}})))}}}},Ai={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{transform:n=mn,title:r=null,classes:i=[],attributes:a={},styles:o={}}=t;return Pr({type:`text`,content:e},()=>(Or(`beforeDOMElementCreation`,{content:e,params:t}),Rr({content:e,transform:P(P({},mn),n),title:r,extra:{attributes:a,styles:o,classes:[`${I.cssPrefix}-layers-text`,...i]}})))}}},provides(e){e.generateLayersText=function(e,t){let{title:n,transform:r,extra:i}=t,a=null,o=null;if($e){let t=parseInt(getComputedStyle(e).fontSize,10),n=e.getBoundingClientRect();a=n.width/t,o=n.height/t}return I.autoA11y&&!n&&(i.attributes[`aria-hidden`]=`true`),Promise.resolve([e,Rr({content:e.innerHTML,width:a,height:o,transform:r,title:n,extra:i,watchable:!0})])}}},ji=RegExp(`"`,`ug`),Mi=[1105920,1112319],Ni=P(P(P(P({},{FontAwesome:{normal:`fas`,400:`fas`}}),lt),Mt),St),Pi=Object.keys(Ni).reduce((e,t)=>(e[t.toLowerCase()]=Ni[t],e),{}),Fi=Object.keys(Pi).reduce((e,t)=>{let n=Pi[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function Ii(e){let t=e.replace(ji,``),n=Un(t,0),r=n>=Mi[0]&&n<=Mi[1],i=t.length===2&&t[0]===t[1];return{value:Hn(i?t[0]:t),isSecondary:r||i}}function Li(e,t){let n=e.replace(/^['"]|['"]$/g,``).toLowerCase(),r=parseInt(t),i=isNaN(r)?`normal`:r;return(Pi[n]||{})[i]||Fi[n]}function Ri(e,t){let n=`${zt}${t.replace(`:`,`-`)}`;return new Promise((r,i)=>{if(e.getAttribute(n)!==null)return r();let a=vn(e.children).filter(e=>e.getAttribute(Rt)===t)[0],o=Je.getComputedStyle(e,t),s=o.getPropertyValue(`font-family`),c=s.match(nn),l=o.getPropertyValue(`font-weight`),u=o.getPropertyValue(`content`);if(a&&!c)return e.removeChild(a),r();if(c&&u!==`none`&&u!==``){let u=o.getPropertyValue(`content`),d=Li(s,l),{value:f,isSecondary:p}=Ii(u),m=c[0].startsWith(`FontAwesome`),h=ar(d,f),g=h;if(m){let e=lr(f);e.iconName&&e.prefix&&(h=e.iconName,d=e.prefix)}if(h&&!p&&(!a||a.getAttribute(Bt)!==d||a.getAttribute(Vt)!==g)){e.setAttribute(n,g),a&&e.removeChild(a);let o=vi(),{extra:s}=o;s.attributes[Rt]=t,Wr(h,d).then(i=>{let a=Lr(P(P({},o),{},{icons:{main:i,mask:dr()},prefix:d,iconName:g,extra:s,watchable:!0})),c=Ye.createElementNS(`http://www.w3.org/2000/svg`,`svg`);t===`::before`?e.insertBefore(c,e.firstChild):e.appendChild(c),c.outerHTML=a.map(e=>Ln(e)).join(`
|
|
558
|
+
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function zi(e){return Promise.all([Ri(e,`::before`),Ri(e,`::after`)])}function Bi(e){return e.parentNode!==document.head&&!~Wt.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Rt)&&(!e.parentNode||e.parentNode.tagName!==`svg`)}function Vi(e){if(Qe)return new Promise((t,n)=>{let r=vn(e.querySelectorAll(`*`)).filter(Bi).map(zi),i=Xr.begin(`searchPseudoElements`);ui(),Promise.all(r).then(()=>{i(),di(),t()}).catch(()=>{i(),di(),n()})})}var Hi={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=Vi,e}}},provides(e){e.pseudoElements2svg=function(e){let{node:t=Ye}=e;I.searchPseudoElements&&Vi(t)}}},Ui=!1,Wi={mixout(){return{dom:{unwatch(){ui(),Ui=!0}}}},hooks(){return{bootstrap(){pi(Dr(`mutationObserverCallbacks`,{}))},noAuto(){mi()},watch(e){let{observeMutationsRoot:t}=e;Ui?di():pi(Dr(`mutationObserverCallbacks`,{observeMutationsRoot:t}))}}}},Gi=e=>e.toLowerCase().split(` `).reduce((e,t)=>{let n=t.toLowerCase().split(`-`),r=n[0],i=n.slice(1).join(`-`);if(r&&i===`h`)return e.flipX=!0,e;if(r&&i===`v`)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case`grow`:e.size+=i;break;case`shrink`:e.size-=i;break;case`left`:e.x-=i;break;case`right`:e.x+=i;break;case`up`:e.y-=i;break;case`down`:e.y+=i;break;case`rotate`:e.rotate+=i}return e},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0}),Ki={mixout(){return{parse:{transform:e=>Gi(e)}}},hooks(){return{parseNodeAttributes(e,t){let n=t.getAttribute(`data-fa-transform`);return n&&(e.transform=Gi(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(e){let{main:t,transform:n,containerWidth:r,iconWidth:i}=e,a={outer:{transform:`translate(${r/2} 256)`},inner:{transform:`${`translate(${n.x*32}, ${n.y*32}) `} ${`scale(${n.size/16*(n.flipX?-1:1)}, ${n.size/16*(n.flipY?-1:1)}) `} ${`rotate(${n.rotate} 0 0)`}`},path:{transform:`translate(${i/2*-1} -256)`}};return{tag:`g`,attributes:P({},a.outer),children:[{tag:`g`,attributes:P({},a.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:P(P({},t.icon.attributes),a.path)}]}]}}}},qi={x:0,y:0,width:`100%`,height:`100%`};function Ji(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill=`black`),e}function Yi(e){return e.tag===`g`?e.children:[e]}Er([An,Di,Oi,ki,Ai,Hi,Wi,Ki,{hooks(){return{parseNodeAttributes(e,t){let n=t.getAttribute(`data-fa-mask`),r=n?gr(n.split(` `).map(e=>e.trim())):dr();return r.prefix||=ur(),e.mask=r,e.maskId=t.getAttribute(`data-fa-mask-id`),e}}},provides(e){e.generateAbstractMask=function(e){let{children:t,attributes:n,main:r,mask:i,maskId:a,transform:o}=e,{width:s,icon:c}=r,{width:l,icon:u}=i,d=wn({transform:o,containerWidth:l,iconWidth:s}),f={tag:`rect`,attributes:P(P({},qi),{},{fill:`white`})},p=c.children?{children:c.children.map(Ji)}:{},m={tag:`g`,attributes:P({},d.inner),children:[Ji(P({tag:c.tag,attributes:P(P({},c.attributes),d.path)},p))]},h={tag:`g`,attributes:P({},d.outer),children:[m]},g=`mask-${a||_n()}`,_=`clip-${a||_n()}`,v={tag:`mask`,attributes:P(P({},qi),{},{id:g,maskUnits:`userSpaceOnUse`,maskContentUnits:`userSpaceOnUse`}),children:[f,h]},y={tag:`defs`,children:[{tag:`clipPath`,attributes:{id:_},children:Yi(u)},v]};return t.push(y,{tag:`rect`,attributes:P({fill:`currentColor`,"clip-path":`url(#${_})`,mask:`url(#${g})`},qi)}),{children:t,attributes:n}}}},{provides(e){let t=!1;Je.matchMedia&&(t=Je.matchMedia(`(prefers-reduced-motion: reduce)`).matches),e.missingIconAbstract=function(){let e=[],n={fill:`currentColor`},r={attributeType:`XML`,repeatCount:`indefinite`,dur:`2s`};e.push({tag:`path`,attributes:P(P({},n),{},{d:`M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z`})});let i=P(P({},r),{},{attributeName:`opacity`}),a={tag:`circle`,attributes:P(P({},n),{},{cx:`256`,cy:`364`,r:`28`}),children:[]};return t||a.children.push({tag:`animate`,attributes:P(P({},r),{},{attributeName:`r`,values:`28;14;28;28;14;28;`})},{tag:`animate`,attributes:P(P({},i),{},{values:`1;0;1;1;0;1;`})}),e.push(a),e.push({tag:`path`,attributes:P(P({},n),{},{opacity:`1`,d:`M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z`}),children:t?[]:[{tag:`animate`,attributes:P(P({},i),{},{values:`1;0;0;0;0;1;`})}]}),t||e.push({tag:`path`,attributes:P(P({},n),{},{opacity:`0`,d:`M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z`}),children:[{tag:`animate`,attributes:P(P({},i),{},{values:`0;0;1;1;0;0;`})}]}),{tag:`g`,attributes:{class:`missing`},children:e}}}},{hooks(){return{parseNodeAttributes(e,t){let n=t.getAttribute(`data-fa-symbol`);return e.symbol=n===null?!1:n===``||n,e}}}}],{mixoutsTo:Mr}),Mr.noAuto,Mr.config,Mr.library,Mr.dom;var Xi=Mr.parse;Mr.findIconDefinition,Mr.toHtml;var Zi=Mr.icon;Mr.layer,Mr.text,Mr.counter;var Qi=d({author:()=>ra,bugs:()=>na,default:()=>ha,dependencies:()=>oa,description:()=>$i,engines:()=>aa,exports:()=>pa,homepage:()=>ta,keywords:()=>ea,license:()=>`MIT`,main:()=>la,module:()=>ua,name:()=>ca,repository:()=>ia,sideEffects:()=>ma,style:()=>da,types:()=>fa,version:()=>sa}),$i,ea,ta,na,ra,ia,aa,oa,sa,ca,la,ua,da,fa,pa,ma,ha,ga=l((()=>{$i=`The iconic font, CSS, and SVG framework`,ea=[`font`,`awesome`,`fontawesome`,`icon`,`svg`,`bootstrap`],ta=`https://fontawesome.com`,na={url:`https://github.com/FortAwesome/Font-Awesome/issues`},ra=`The Font Awesome Team (https://github.com/orgs/FortAwesome/people)`,ia={type:`git`,url:`https://github.com/FortAwesome/Font-Awesome`},aa={node:`>=6`},oa={"@fortawesome/fontawesome-common-types":`6.7.2`},sa=`6.7.2`,ca=`@fortawesome/fontawesome-svg-core`,la=`index.js`,ua=`index.mjs`,da=`styles.css`,fa=`./index.d.ts`,pa={".":{types:`./index.d.ts`,module:`./index.mjs`,import:`./index.mjs`,require:`./index.js`,style:`./styles.css`,default:`./index.js`},"./index":{types:`./index.d.ts`,module:`./index.mjs`,import:`./index.mjs`,require:`./index.js`,default:`./index.js`},"./index.js":{types:`./index.d.ts`,module:`./index.mjs`,import:`./index.mjs`,require:`./index.js`,default:`./index.js`},"./plugins":{types:`./index.d.ts`,module:`./plugins.mjs`,import:`./plugins.mjs`,default:`./plugins.mjs`},"./import.macro":`./import.macro.js`,"./import.macro.js":`./import.macro.js`,"./styles":`./styles.css`,"./styles.css":`./styles.css`,"./package.json":`./package.json`},ma=[`./index.js`,`./index.mjs`,`./styles.css`],ha={description:$i,keywords:ea,homepage:ta,bugs:na,author:ra,repository:ia,engines:aa,dependencies:oa,version:sa,name:ca,main:la,module:ua,"jsnext:main":`index.mjs`,style:da,license:`MIT`,types:fa,exports:pa,sideEffects:ma}}));function _a(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function va(e){if(Array.isArray(e))return e}function ya(e){if(Array.isArray(e))return _a(e)}function ba(e,t,n){return(t=Ma(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xa(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Sa(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Ca(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
559
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wa(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
560
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ta(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ea(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ta(Object(n),!0).forEach(function(t){ba(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ta(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Da(e,t){if(e==null)return{};var n,r,i=Oa(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Oa(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function ka(e,t){return va(e)||Sa(e,t)||Pa(e,t)||Ca()}function Aa(e){return ya(e)||xa(e)||Pa(e)||wa()}function ja(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ma(e){var t=ja(e,`string`);return typeof t==`symbol`?t:t+``}function Na(e){"@babel/helpers - typeof";return Na=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Na(e)}function Pa(e,t){if(e){if(typeof e==`string`)return _a(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_a(e,t):void 0}}var Fa=`7.0.0`,Ia;try{Ia=(ga(),m(Qi).default).version}catch{Ia=typeof process<`u`&&process.env.FA_VERSION||`7.0.0`}function La(e){var t=e.beat,n=e.fade,r=e.beatFade,i=e.bounce,a=e.shake,o=e.flash,s=e.spin,c=e.spinPulse,l=e.spinReverse,u=e.pulse,d=e.fixedWidth,f=e.inverse,p=e.border,m=e.listItem,h=e.flip,g=e.size,_=e.rotation,v=e.pull,y=e.swapOpacity,b=e.rotateBy,x=e.widthAuto,S=Ra(Ia,Fa),C=ba(ba(ba(ba(ba(ba({"fa-beat":t,"fa-fade":n,"fa-beat-fade":r,"fa-bounce":i,"fa-shake":a,"fa-flash":o,"fa-spin":s,"fa-spin-reverse":l,"fa-spin-pulse":c,"fa-pulse":u,"fa-fw":d,"fa-inverse":f,"fa-border":p,"fa-li":m,"fa-flip":h===!0,"fa-flip-horizontal":h===`horizontal`||h===`both`,"fa-flip-vertical":h===`vertical`||h===`both`},`fa-${g}`,g!=null),`fa-rotate-${_}`,_!=null&&_!==0),`fa-pull-${v}`,v!=null),`fa-swap-opacity`,y),`fa-rotate-by`,S&&b),`fa-width-auto`,S&&x);return Object.keys(C).map(function(e){return C[e]?e:null}).filter(function(e){return e})}function Ra(e,t){for(var n=ka(e.split(`-`),2),r=n[0],i=n[1],a=ka(t.split(`-`),2),o=a[0],s=a[1],c=r.split(`.`),l=o.split(`.`),u=0;u<Math.max(c.length,l.length);u++){var d=c[u]||`0`,f=l[u]||`0`,p=parseInt(d,10),m=parseInt(f,10);if(p!==m)return p>m}for(var h=0;h<Math.max(c.length,l.length);h++){var g=c[h]||`0`,_=l[h]||`0`;if(g!==_&&g.length!==_.length)return g.length<_.length}return!(i&&!s)}function za(e){return e-=0,e===e}function Ba(e){return za(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(e,t){return t?t.toUpperCase():``}),e.substr(0,1).toLowerCase()+e.substr(1))}var Va=[`style`];function Ha(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Ua(e){return e.split(`;`).map(function(e){return e.trim()}).filter(function(e){return e}).reduce(function(e,t){var n=t.indexOf(`:`),r=Ba(t.slice(0,n)),i=t.slice(n+1).trim();return r.startsWith(`webkit`)?e[Ha(r)]=i:e[r]=i,e},{})}function Wa(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t==`string`)return t;var r=(t.children||[]).map(function(t){return Wa(e,t)}),i=Object.keys(t.attributes||{}).reduce(function(e,n){var r=t.attributes[n];switch(n){case`class`:e.attrs.className=r,delete t.attributes.class;break;case`style`:e.attrs.style=Ua(r);break;default:n.indexOf(`aria-`)===0||n.indexOf(`data-`)===0?e.attrs[n.toLowerCase()]=r:e.attrs[Ba(n)]=r}return e},{attrs:{}}),a=n.style,o=a===void 0?{}:a,s=Da(n,Va);return i.attrs.style=Ea(Ea({},i.attrs.style),o),e.apply(void 0,[t.tag,Ea(Ea({},i.attrs),s)].concat(Aa(r)))}var Ga=!1;try{Ga=process.env.NODE_ENV===`production`}catch{}function Ka(){if(!Ga&&console&&typeof console.error==`function`){var e;(e=console).error.apply(e,arguments)}}function qa(e){if(e&&Na(e)===`object`&&e.prefix&&e.iconName&&e.icon)return e;if(Xi.icon)return Xi.icon(e);if(e===null)return null;if(e&&Na(e)===`object`&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e==`string`)return{prefix:`fas`,iconName:e}}function Ja(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?ba({},e,t):{}}var Ya={border:!1,className:``,mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,rotateBy:!1,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:``,titleId:null,transform:null,swapOpacity:!1,widthAuto:!1},Xa=t.default.forwardRef(function(e,t){var n=Ea(Ea({},Ya),e),r=n.icon,i=n.mask,a=n.symbol,o=n.className,s=n.title,c=n.titleId,l=n.maskId,u=qa(r),d=Ja(`classes`,[].concat(Aa(La(n)),Aa((o||``).split(` `)))),f=Ja(`transform`,typeof n.transform==`string`?Xi.transform(n.transform):n.transform),p=Ja(`mask`,qa(i)),m=Zi(u,Ea(Ea(Ea(Ea({},d),f),p),{},{symbol:a,title:s,titleId:c,maskId:l}));if(!m)return Ka(`Could not find icon`,u),null;var h=m.abstract,g={ref:t};return Object.keys(n).forEach(function(e){Ya.hasOwnProperty(e)||(g[e]=n[e])}),Za(h[0],g)});Xa.displayName=`FontAwesomeIcon`,Xa.propTypes={beat:E.default.bool,border:E.default.bool,beatFade:E.default.bool,bounce:E.default.bool,className:E.default.string,fade:E.default.bool,flash:E.default.bool,mask:E.default.oneOfType([E.default.object,E.default.array,E.default.string]),maskId:E.default.string,fixedWidth:E.default.bool,inverse:E.default.bool,flip:E.default.oneOf([!0,!1,`horizontal`,`vertical`,`both`]),icon:E.default.oneOfType([E.default.object,E.default.array,E.default.string]),listItem:E.default.bool,pull:E.default.oneOf([`right`,`left`]),pulse:E.default.bool,rotation:E.default.oneOf([0,90,180,270]),rotateBy:E.default.bool,shake:E.default.bool,size:E.default.oneOf([`2xs`,`xs`,`sm`,`lg`,`xl`,`2xl`,`1x`,`2x`,`3x`,`4x`,`5x`,`6x`,`7x`,`8x`,`9x`,`10x`]),spin:E.default.bool,spinPulse:E.default.bool,spinReverse:E.default.bool,symbol:E.default.oneOfType([E.default.bool,E.default.string]),title:E.default.string,titleId:E.default.string,transform:E.default.oneOfType([E.default.string,E.default.object]),swapOpacity:E.default.bool,widthAuto:E.default.bool};var Za=Wa.bind(null,t.default.createElement),Qa=u((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=`fas`,n=`arrow-up`,r=384,i=512,a=[8593],o=`f062`,s=`M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2 160 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-306.7L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z`;e.definition={prefix:t,iconName:n,icon:[r,i,a,o,s]},e.faArrowUp=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=s,e.aliases=a})),$a=u((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=`fas`,n=`arrow-right`,r=448,i=512,a=[8594],o=`f061`,s=`M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z`;e.definition={prefix:t,iconName:n,icon:[r,i,a,o,s]},e.faArrowRight=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=s,e.aliases=a})),eo=u((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=`fas`,n=`arrow-down`,r=384,i=512,a=[8595],o=`f063`,s=`M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z`;e.definition={prefix:t,iconName:n,icon:[r,i,a,o,s]},e.faArrowDown=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=s,e.aliases=a})),to=u((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=`fas`,n=`arrow-left`,r=448,i=512,a=[8592],o=`f060`,s=`M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z`;e.definition={prefix:t,iconName:n,icon:[r,i,a,o,s]},e.faArrowLeft=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=s,e.aliases=a})),no=Qa(),ro=$a(),io=eo(),ao=to(),oo=[`className`,`direction`,`children`];function so(){return so=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},so.apply(null,arguments)}function co(e,t){if(e==null)return{};var n,r,i=lo(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function lo(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var uo=function(e){var n=e.className,r=n===void 0?``:n,i=e.direction,a=i===void 0?`right`:i,o=e.children,s=co(e,oo),c=`cs-button--arrow`,l=function(){if(a===`up`)return no.faArrowUp;if(a===`right`)return ro.faArrowRight;if(a===`down`)return io.faArrowDown;if(a===`left`)return ao.faArrowLeft}();return t.default.createElement(Le,so({},s,{className:(0,D.default)(c,r),icon:t.default.createElement(Xa,{icon:l})}),o)};process.env.NODE_ENV!==`production`&&(uo.propTypes={children:E.default.node,className:E.default.string,direction:E.default.oneOf([`up`,`right`,`down`,`left`])});var fo=u((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=`fas`,n=`circle-info`,r=512,i=512,a=[`info-circle`],o=`f05a`,s=`M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z`;e.definition={prefix:t,iconName:n,icon:[r,i,a,o,s]},e.faCircleInfo=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=s,e.aliases=a}));u((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=fo();e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faInfoCircle=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}))(),process.env.NODE_ENV!==`production`&&(E.default.node,E.default.string);var po=u((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=`fas`,n=`phone-flip`,r=512,i=512,a=[128381,`phone-alt`],o=`f879`,s=`M347.1 24.6c7.7-18.6 28-28.5 47.4-23.2l88 24C499.9 30.2 512 46 512 64c0 247.4-200.6 448-448 448c-18 0-33.8-12.1-38.6-29.5l-24-88c-5.3-19.4 4.6-39.7 23.2-47.4l96-40c16.3-6.8 35.2-2.1 46.3 11.6L207.3 368c70.4-33.3 127.4-90.3 160.7-160.7L318.7 167c-13.7-11.2-18.4-30-11.6-46.3l40-96z`;e.definition={prefix:t,iconName:n,icon:[r,i,a,o,s]},e.faPhoneFlip=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=s,e.aliases=a}));u((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=po();e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faPhoneAlt=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}))(),process.env.NODE_ENV!==`production`&&(E.default.node,E.default.string),u((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=`fas`,n=`video`,r=576,i=512,a=[`video-camera`],o=`f03d`,s=`M0 128C0 92.7 28.7 64 64 64l256 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 448c-35.3 0-64-28.7-64-64L0 128zM559.1 99.8c10.4 5.6 16.9 16.4 16.9 28.2l0 256c0 11.8-6.5 22.6-16.9 28.2s-23 5-32.9-1.6l-96-64L416 337.1l0-17.1 0-128 0-17.1 14.2-9.5 96-64c9.8-6.5 22.4-7.2 32.9-1.6z`;e.definition={prefix:t,iconName:n,icon:[r,i,a,o,s]},e.faVideo=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=s,e.aliases=a}))(),process.env.NODE_ENV!==`production`&&(E.default.node,E.default.string),u((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=`fas`,n=`star`,r=576,i=512,a=[11088,61446],o=`f005`,s=`M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z`;e.definition={prefix:t,iconName:n,icon:[r,i,a,o,s]},e.faStar=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=s,e.aliases=a}))(),process.env.NODE_ENV!==`production`&&(E.default.node,E.default.string),u((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=`fas`,n=`user-plus`,r=640,i=512,a=[],o=`f234`,s=`M96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM0 482.3C0 383.8 79.8 304 178.3 304l91.4 0C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7L29.7 512C13.3 512 0 498.7 0 482.3zM504 312l0-64-64 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l64 0 0-64c0-13.3 10.7-24 24-24s24 10.7 24 24l0 64 64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-64 0 0 64c0 13.3-10.7 24-24 24s-24-10.7-24-24z`;e.definition={prefix:t,iconName:n,icon:[r,i,a,o,s]},e.faUserPlus=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=s,e.aliases=a}))(),process.env.NODE_ENV!==`production`&&(E.default.node,E.default.string);var mo=u((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=`fas`,n=`ellipsis-vertical`,r=128,i=512,a=[`ellipsis-v`],o=`f142`,s=`M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z`;e.definition={prefix:t,iconName:n,icon:[r,i,a,o,s]},e.faEllipsisVertical=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=s,e.aliases=a})),ho=u((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=mo();e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faEllipsisV=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases})),go=u((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=`fas`,n=`ellipsis`,r=448,i=512,a=[`ellipsis-h`],o=`f141`,s=`M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z`;e.definition={prefix:t,iconName:n,icon:[r,i,a,o,s]},e.faEllipsis=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=s,e.aliases=a})),_o=u((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=go();e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faEllipsisH=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}));ho(),_o(),process.env.NODE_ENV!==`production`&&(E.default.node,E.default.string,E.default.oneOf([`horizontal`,`vertical`]));var vo=u((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=`fas`,n=`paper-plane`,r=512,i=512,a=[61913],o=`f1d8`,s=`M498.1 5.6c10.1 7 15.4 19.1 13.5 31.2l-64 416c-1.5 9.7-7.4 18.2-16 23s-18.9 5.4-28 1.6L284 427.7l-68.5 74.1c-8.9 9.7-22.9 12.9-35.2 8.1S160 493.2 160 480l0-83.6c0-4 1.5-7.8 4.2-10.8L331.8 202.8c5.8-6.3 5.6-16-.4-22s-15.7-6.4-22-.7L106 360.8 17.7 316.6C7.1 311.3 .3 300.7 0 288.9s5.9-22.8 16.1-28.7l448-256c10.7-6.1 23.9-5.5 34 1.4z`;e.definition={prefix:t,iconName:n,icon:[r,i,a,o,s]},e.faPaperPlane=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=s,e.aliases=a}))(),yo=[`className`,`children`];function bo(){return bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bo.apply(null,arguments)}function xo(e,t){if(e==null)return{};var n,r,i=So(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function So(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Co=function(e){var n=e.className,r=n===void 0?``:n,i=e.children,a=xo(e,yo);return t.default.createElement(Le,bo({},a,{className:(0,D.default)(`cs-button--send`,r),icon:t.default.createElement(Xa,{icon:vo.faPaperPlane})}),i)};process.env.NODE_ENV!==`production`&&(Co.propTypes={children:E.default.node,className:E.default.string});var wo=u((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=`fas`,n=`paperclip`,r=448,i=512,a=[128206],o=`f0c6`,s=`M364.2 83.8c-24.4-24.4-64-24.4-88.4 0l-184 184c-42.1 42.1-42.1 110.3 0 152.4s110.3 42.1 152.4 0l152-152c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-152 152c-64 64-167.6 64-231.6 0s-64-167.6 0-231.6l184-184c46.3-46.3 121.3-46.3 167.6 0s46.3 121.3 0 167.6l-176 176c-28.6 28.6-75 28.6-103.6 0s-28.6-75 0-103.6l144-144c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-144 144c-6.7 6.7-6.7 17.7 0 24.4s17.7 6.7 24.4 0l176-176c24.4-24.4 24.4-64 0-88.4z`;e.definition={prefix:t,iconName:n,icon:[r,i,a,o,s]},e.faPaperclip=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=s,e.aliases=a}))(),To=[`className`,`children`];function Eo(){return Eo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Eo.apply(null,arguments)}function Do(e,t){if(e==null)return{};var n,r,i=Oo(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Oo(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var ko=function(e){var n=e.className,r=n===void 0?``:n,i=e.children,a=Do(e,To);return t.default.createElement(Le,Eo({},a,{className:(0,D.default)(`cs-button--attachment`,r),icon:t.default.createElement(Xa,{icon:wo.faPaperclip})}),i)};process.env.NODE_ENV!==`production`&&(ko.propTypes={children:E.default.node,className:E.default.string});var Ao=[`onClick`,`children`,`className`];function jo(){return jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jo.apply(null,arguments)}function Mo(e,t){if(e==null)return{};var n,r,i=No(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function No(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Po=function(e){var n=e.onClick,r=n===void 0?function(){}:n,i=e.children,a=i===void 0?void 0:i,o=e.className,s=Mo(e,Ao);return t.default.createElement(`div`,jo({},s,{className:(0,D.default)(`cs-conversation-header__back`,o)}),a===void 0?t.default.createElement(uo,{direction:`left`,onClick:r}):a)};Po.displayName=`ConversationHeader.Back`,process.env.NODE_ENV!==`production`&&(Po.propTypes={onClick:E.default.func,children:E.default.node,className:E.default.string});var Fo=[`children`,`className`];function Io(){return Io=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Io.apply(null,arguments)}function Lo(e,t){if(e==null)return{};var n,r,i=Ro(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ro(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var zo=function(e){var n=e.children,r=n===void 0?void 0:n,i=e.className,a=Lo(e,Fo);return t.default.createElement(`section`,Io({},a,{className:(0,D.default)(`cs-conversation-header__actions`,i)}),r)};zo.displayName=`ConversationHeader.Actions`,process.env.NODE_ENV!==`production`&&(zo.propTypes={children:E.default.node,className:E.default.string});var Bo=[`userName`,`info`,`children`,`className`];function Vo(){return Vo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vo.apply(null,arguments)}function Ho(e,t){if(e==null)return{};var n,r,i=Uo(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Uo(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Wo=function(e){var n=e.userName,r=n===void 0?``:n,i=e.info,a=i===void 0?``:i,o=e.children,s=o===void 0?void 0:o,c=e.className,l=Ho(e,Bo);return t.default.createElement(`div`,Vo({},l,{className:(0,D.default)(`cs-conversation-header__content`,c)}),s===void 0?t.default.createElement(t.default.Fragment,null,t.default.createElement(`div`,{className:`cs-conversation-header__user-name`},r),t.default.createElement(`div`,{className:`cs-conversation-header__info`},a)):s)};Wo.displayName=`ConversationHeader.Content`,process.env.NODE_ENV!==`production`&&(Wo.propTypes={children:E.default.node,userName:E.default.node,info:E.default.node,className:E.default.string});var Go=[`children`,`className`];function Ko(){return Ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ko.apply(null,arguments)}function qo(e,t){return Qo(e)||Zo(e,t)||Yo(e,t)||Jo()}function Jo(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
561
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yo(e,t){if(e){if(typeof e==`string`)return Xo(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xo(e,t):void 0}}function Xo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Zo(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Qo(e){if(Array.isArray(e))return e}function $o(e,t){if(e==null)return{};var n,r,i=es(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function es(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var ts=function(e){var n=e.children,r=n===void 0?void 0:n,i=e.className,a=$o(e,Go),o=`cs-conversation-header`,s=qo(we(r,[Po,he,Me,Wo,zo]),5),c=s[0],l=s[1],u=s[2],d=s[3],f=s[4];return t.default.createElement(`div`,Ko({},a,{className:(0,D.default)(o,i)}),c,l&&t.default.createElement(`div`,{className:`${o}__avatar`},l),!l&&u&&t.default.createElement(`div`,{className:`${o}__avatar`},u),d,f)};ts.displayName=`ConversationHeader`,process.env.NODE_ENV!==`production`&&(ts.propTypes={children:Ee([Po,he,Me,Wo,zo]),className:E.default.string}),ts.Back=Po,ts.Actions=zo,ts.Content=Wo;var ns=ts;function rs(e){return getComputedStyle(e)}function is(e,t){for(var n in t){var r=t[n];typeof r==`number`&&(r+=`px`),e.style[n]=r}return e}function as(e){var t=document.createElement(`div`);return t.className=e,t}var os=typeof Element<`u`&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function ss(e,t){if(!os)throw Error(`No element matching method supported`);return os.call(e,t)}function cs(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function ls(e,t){return Array.prototype.filter.call(e.children,function(e){return ss(e,t)})}var us={main:`ps`,rtl:`ps__rtl`,element:{thumb:function(e){return`ps__thumb-`+e},rail:function(e){return`ps__rail-`+e},consuming:`ps__child--consume`},state:{focus:`ps--focus`,clicking:`ps--clicking`,active:function(e){return`ps--active-`+e},scrolling:function(e){return`ps--scrolling-`+e}}},ds={x:null,y:null};function fs(e,t){var n=e.element.classList,r=us.state.scrolling(t);n.contains(r)?clearTimeout(ds[t]):n.add(r)}function ps(e,t){ds[t]=setTimeout(function(){return e.isAlive&&e.element.classList.remove(us.state.scrolling(t))},e.settings.scrollingThreshold)}function ms(e,t){fs(e,t),ps(e,t)}var hs=function(e){this.element=e,this.handlers={}},gs={isEmpty:{configurable:!0}};hs.prototype.bind=function(e,t){this.handlers[e]===void 0&&(this.handlers[e]=[]),this.handlers[e].push(t),[`touchstart`,`wheel`,`touchmove`].indexOf(e)===-1?this.element.addEventListener(e,t,!1):this.element.addEventListener(e,t,{passive:!1})},hs.prototype.unbind=function(e,t){var n=this;this.handlers[e]=this.handlers[e].filter(function(r){return t&&r!==t?!0:(n.element.removeEventListener(e,r,!1),!1)})},hs.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)},gs.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every(function(t){return e.handlers[t].length===0})},Object.defineProperties(hs.prototype,gs);var _s=function(){this.eventElements=[]};_s.prototype.eventElement=function(e){var t=this.eventElements.filter(function(t){return t.element===e})[0];return t||(t=new hs(e),this.eventElements.push(t)),t},_s.prototype.bind=function(e,t,n){this.eventElement(e).bind(t,n)},_s.prototype.unbind=function(e,t,n){var r=this.eventElement(e);r.unbind(t,n),r.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(r),1)},_s.prototype.unbindAll=function(){this.eventElements.forEach(function(e){return e.unbindAll()}),this.eventElements=[]},_s.prototype.once=function(e,t,n){var r=this.eventElement(e),i=function(e){r.unbind(t,i),n(e)};r.bind(t,i)};function vs(e){if(typeof window.CustomEvent==`function`)return new CustomEvent(e);var t=document.createEvent(`CustomEvent`);return t.initCustomEvent(e,!1,!1,void 0),t}function ys(e,t,n,r,i,a){r===void 0&&(r=!0),i===void 0&&(i=!1);var o;if(t===`top`)o=[`contentHeight`,`containerHeight`,`scrollTop`,`y`,`up`,`down`];else if(t===`left`)o=[`contentWidth`,`containerWidth`,`scrollLeft`,`x`,`left`,`right`];else throw Error(`A proper axis should be provided`);bs(e,n,o,r,i,a)}function bs(e,t,n,r,i,a){var o=n[0],s=n[1],c=n[2],l=n[3],u=n[4],d=n[5];r===void 0&&(r=!0),i===void 0&&(i=!1);var f=e.element;e.reach[l]=null;var p=a!==!0||e[o]!==e[s];p&&f[c]<1&&(e.reach[l]=`start`),p&&f[c]>e[o]-e[s]-1&&(e.reach[l]=`end`),t&&(f.dispatchEvent(vs(`ps-scroll-`+l)),t<0?f.dispatchEvent(vs(`ps-scroll-`+u)):t>0&&f.dispatchEvent(vs(`ps-scroll-`+d)),r&&ms(e,l)),e.reach[l]&&(t||i)&&f.dispatchEvent(vs(`ps-`+l+`-reach-`+e.reach[l]))}function xs(e){return parseInt(e,10)||0}function Ss(e){return ss(e,`input,[contenteditable]`)||ss(e,`select,[contenteditable]`)||ss(e,`textarea,[contenteditable]`)||ss(e,`button,[contenteditable]`)}function Cs(e){var t=rs(e);return xs(t.width)+xs(t.paddingLeft)+xs(t.paddingRight)+xs(t.borderLeftWidth)+xs(t.borderRightWidth)}var ws={isWebKit:typeof document<`u`&&`WebkitAppearance`in document.documentElement.style,supportsTouch:typeof window<`u`&&(`ontouchstart`in window||`maxTouchPoints`in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<`u`&&navigator.msMaxTouchPoints,isChrome:typeof navigator<`u`&&/Chrome/i.test(navigator&&navigator.userAgent)};function Ts(e){var t=e.element,n=Math.floor(t.scrollTop),r=t.getBoundingClientRect();e.containerWidth=Math.round(r.width),e.containerHeight=Math.round(r.height),e.contentWidth=t.scrollWidth,e.contentHeight=t.scrollHeight,t.contains(e.scrollbarXRail)||(ls(t,us.element.rail(`x`)).forEach(function(e){return cs(e)}),t.appendChild(e.scrollbarXRail)),t.contains(e.scrollbarYRail)||(ls(t,us.element.rail(`y`)).forEach(function(e){return cs(e)}),t.appendChild(e.scrollbarYRail)),!e.settings.suppressScrollX&&e.containerWidth+e.settings.scrollXMarginOffset<e.contentWidth?(e.scrollbarXActive=!0,e.railXWidth=e.containerWidth-e.railXMarginWidth,e.railXRatio=e.containerWidth/e.railXWidth,e.scrollbarXWidth=Es(e,xs(e.railXWidth*e.containerWidth/e.contentWidth)),e.scrollbarXLeft=xs((e.negativeScrollAdjustment+t.scrollLeft)*(e.railXWidth-e.scrollbarXWidth)/(e.contentWidth-e.containerWidth))):e.scrollbarXActive=!1,!e.settings.suppressScrollY&&e.containerHeight+e.settings.scrollYMarginOffset<e.contentHeight?(e.scrollbarYActive=!0,e.railYHeight=e.containerHeight-e.railYMarginHeight,e.railYRatio=e.containerHeight/e.railYHeight,e.scrollbarYHeight=Es(e,xs(e.railYHeight*e.containerHeight/e.contentHeight)),e.scrollbarYTop=xs(n*(e.railYHeight-e.scrollbarYHeight)/(e.contentHeight-e.containerHeight))):e.scrollbarYActive=!1,e.scrollbarXLeft>=e.railXWidth-e.scrollbarXWidth&&(e.scrollbarXLeft=e.railXWidth-e.scrollbarXWidth),e.scrollbarYTop>=e.railYHeight-e.scrollbarYHeight&&(e.scrollbarYTop=e.railYHeight-e.scrollbarYHeight),Ds(t,e),e.scrollbarXActive?t.classList.add(us.state.active(`x`)):(t.classList.remove(us.state.active(`x`)),e.scrollbarXWidth=0,e.scrollbarXLeft=0,t.scrollLeft=e.isRtl===!0?e.contentWidth:0),e.scrollbarYActive?t.classList.add(us.state.active(`y`)):(t.classList.remove(us.state.active(`y`)),e.scrollbarYHeight=0,e.scrollbarYTop=0,t.scrollTop=0)}function Es(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=Math.min(t,e.settings.maxScrollbarLength)),t}function Ds(e,t){var n={width:t.railXWidth},r=Math.floor(e.scrollTop);n.left=t.isRtl?t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth-t.contentWidth:e.scrollLeft,t.isScrollbarXUsingBottom?n.bottom=t.scrollbarXBottom-r:n.top=t.scrollbarXTop+r,is(t.scrollbarXRail,n);var i={top:r,height:t.railYHeight};t.isScrollbarYUsingRight?i.right=t.isRtl?t.contentWidth-(t.negativeScrollAdjustment+e.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth-9:t.scrollbarYRight-e.scrollLeft:i.left=t.isRtl?t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth*2-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:t.scrollbarYLeft+e.scrollLeft,is(t.scrollbarYRail,i),is(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth}),is(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}function Os(e){e.element,e.event.bind(e.scrollbarY,`mousedown`,function(e){return e.stopPropagation()}),e.event.bind(e.scrollbarYRail,`mousedown`,function(t){var n=t.pageY-window.pageYOffset-e.scrollbarYRail.getBoundingClientRect().top>e.scrollbarYTop?1:-1;e.element.scrollTop+=n*e.containerHeight,Ts(e),t.stopPropagation()}),e.event.bind(e.scrollbarX,`mousedown`,function(e){return e.stopPropagation()}),e.event.bind(e.scrollbarXRail,`mousedown`,function(t){var n=t.pageX-window.pageXOffset-e.scrollbarXRail.getBoundingClientRect().left>e.scrollbarXLeft?1:-1;e.element.scrollLeft+=n*e.containerWidth,Ts(e),t.stopPropagation()})}function ks(e){As(e,[`containerWidth`,`contentWidth`,`pageX`,`railXWidth`,`scrollbarX`,`scrollbarXWidth`,`scrollLeft`,`x`,`scrollbarXRail`]),As(e,[`containerHeight`,`contentHeight`,`pageY`,`railYHeight`,`scrollbarY`,`scrollbarYHeight`,`scrollTop`,`y`,`scrollbarYRail`])}function As(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],d=e.element,f=null,p=null,m=null;function h(t){t.touches&&t.touches[0]&&(t[i]=t.touches[0].pageY),d[c]=f+m*(t[i]-p),fs(e,l),Ts(e),t.stopPropagation(),t.preventDefault()}function g(){ps(e,l),e[u].classList.remove(us.state.clicking),e.event.unbind(e.ownerDocument,`mousemove`,h)}function _(t,o){f=d[c],o&&t.touches&&(t[i]=t.touches[0].pageY),p=t[i],m=(e[r]-e[n])/(e[a]-e[s]),o?e.event.bind(e.ownerDocument,`touchmove`,h):(e.event.bind(e.ownerDocument,`mousemove`,h),e.event.once(e.ownerDocument,`mouseup`,g),t.preventDefault()),e[u].classList.add(us.state.clicking),t.stopPropagation()}e.event.bind(e[o],`mousedown`,function(e){_(e)}),e.event.bind(e[o],`touchstart`,function(e){_(e,!0)})}function js(e){var t=e.element,n=function(){return ss(t,`:hover`)},r=function(){return ss(e.scrollbarX,`:focus`)||ss(e.scrollbarY,`:focus`)};function i(n,r){var i=Math.floor(t.scrollTop);if(n===0){if(!e.scrollbarYActive)return!1;if(i===0&&r>0||i>=e.contentHeight-e.containerHeight&&r<0)return!e.settings.wheelPropagation}var a=t.scrollLeft;if(r===0){if(!e.scrollbarXActive)return!1;if(a===0&&n<0||a>=e.contentWidth-e.containerWidth&&n>0)return!e.settings.wheelPropagation}return!0}e.event.bind(e.ownerDocument,`keydown`,function(a){if(!(a.isDefaultPrevented&&a.isDefaultPrevented()||a.defaultPrevented)&&(n()||r())){var o=document.activeElement?document.activeElement:e.ownerDocument.activeElement;if(o){if(o.tagName===`IFRAME`)o=o.contentDocument.activeElement;else for(;o.shadowRoot;)o=o.shadowRoot.activeElement;if(Ss(o))return}var s=0,c=0;switch(a.which){case 37:s=a.metaKey?-e.contentWidth:a.altKey?-e.containerWidth:-30;break;case 38:c=a.metaKey?e.contentHeight:a.altKey?e.containerHeight:30;break;case 39:s=a.metaKey?e.contentWidth:a.altKey?e.containerWidth:30;break;case 40:c=a.metaKey?-e.contentHeight:a.altKey?-e.containerHeight:-30;break;case 32:c=a.shiftKey?e.containerHeight:-e.containerHeight;break;case 33:c=e.containerHeight;break;case 34:c=-e.containerHeight;break;case 36:c=e.contentHeight;break;case 35:c=-e.contentHeight;break;default:return}e.settings.suppressScrollX&&s!==0||e.settings.suppressScrollY&&c!==0||(t.scrollTop-=c,t.scrollLeft+=s,Ts(e),i(s,c)&&a.preventDefault())}})}function Ms(e){var t=e.element;function n(n,r){var i=Math.floor(t.scrollTop),a=t.scrollTop===0,o=i+t.offsetHeight===t.scrollHeight,s=t.scrollLeft===0,c=t.scrollLeft+t.offsetWidth===t.scrollWidth;return!(Math.abs(r)>Math.abs(n)?a||o:s||c)||!e.settings.wheelPropagation}function r(e){var t=e.deltaX,n=-1*e.deltaY;return(t===void 0||n===void 0)&&(t=-1*e.wheelDeltaX/6,n=e.wheelDeltaY/6),e.deltaMode&&e.deltaMode===1&&(t*=10,n*=10),t!==t&&n!==n&&(t=0,n=e.wheelDelta),e.shiftKey?[-n,-t]:[t,n]}function i(e,n,r){if(!ws.isWebKit&&t.querySelector(`select:focus`))return!0;if(!t.contains(e))return!1;for(var i=e;i&&i!==t;){if(i.classList.contains(us.element.consuming))return!0;var a=rs(i);if(r&&a.overflowY.match(/(scroll|auto)/)){var o=i.scrollHeight-i.clientHeight;if(o>0&&(i.scrollTop>0&&r<0||i.scrollTop<o&&r>0))return!0}if(n&&a.overflowX.match(/(scroll|auto)/)){var s=i.scrollWidth-i.clientWidth;if(s>0&&(i.scrollLeft>0&&n<0||i.scrollLeft<s&&n>0))return!0}i=i.parentNode}return!1}function a(a){var o=r(a),s=o[0],c=o[1];if(!i(a.target,s,c)){var l=!1;e.settings.useBothWheelAxes?e.scrollbarYActive&&!e.scrollbarXActive?(c?t.scrollTop-=c*e.settings.wheelSpeed:t.scrollTop+=s*e.settings.wheelSpeed,l=!0):e.scrollbarXActive&&!e.scrollbarYActive&&(s?t.scrollLeft+=s*e.settings.wheelSpeed:t.scrollLeft-=c*e.settings.wheelSpeed,l=!0):(t.scrollTop-=c*e.settings.wheelSpeed,t.scrollLeft+=s*e.settings.wheelSpeed),Ts(e),l||=n(s,c),l&&!a.ctrlKey&&(a.stopPropagation(),a.preventDefault())}}window.onwheel===void 0?window.onmousewheel!==void 0&&e.event.bind(t,`mousewheel`,a):e.event.bind(t,`wheel`,a)}function Ns(e){if(!ws.supportsTouch&&!ws.supportsIePointer)return;var t=e.element;function n(n,r){var i=Math.floor(t.scrollTop),a=Math.ceil(t.scrollLeft),o=Math.abs(n),s=Math.abs(r);if(!e.settings.wheelPropagation)return!0;if(s>o){if(e.settings.suppressScrollY)return!1;if(r>0)return i!==0;if(r<0)return i<e.contentHeight-e.containerHeight}else if(o>s){if(e.settings.suppressScrollX)return!1;if(n>0)return a!==0;if(r<0)return a<e.contentWidth-e.containerWidth}return!0}function r(n,r){t.scrollTop-=r,t.scrollLeft-=n,Ts(e)}var i={},a=0,o={},s=null;function c(e){return e.targetTouches?e.targetTouches[0]:e}function l(e){return e.pointerType&&e.pointerType===`pen`&&e.buttons===0?!1:!!(e.targetTouches&&e.targetTouches.length===1||e.pointerType&&e.pointerType!==`mouse`&&e.pointerType!==e.MSPOINTER_TYPE_MOUSE)}function u(e){if(l(e)){var t=c(e);i.pageX=t.pageX,i.pageY=t.pageY,a=new Date().getTime(),s!==null&&clearInterval(s)}}function d(e,n,r){if(!t.contains(e))return!1;for(var i=e;i&&i!==t;){if(i.classList.contains(us.element.consuming))return!0;var a=rs(i);if(r&&a.overflowY.match(/(scroll|auto)/)){var o=i.scrollHeight-i.clientHeight;if(o>0&&(i.scrollTop>0&&r<0||i.scrollTop<o&&r>0))return!0}if(n&&a.overflowX.match(/(scroll|auto)/)){var s=i.scrollWidth-i.clientWidth;if(s>0&&(i.scrollLeft>0&&n<0||i.scrollLeft<s&&n>0))return!0}i=i.parentNode}return!1}function f(e){if(l(e)){var t=c(e),s={pageX:t.pageX,pageY:t.pageY},u=s.pageX-i.pageX,f=s.pageY-i.pageY;if(d(e.target,u,f))return;r(u,f),i=s;var p=new Date().getTime(),m=p-a;m>0&&(o.x=u/m,o.y=f/m,a=p),e.cancelable&&n(u,f)&&e.preventDefault()}}function p(){e.settings.swipeEasing&&(clearInterval(s),s=setInterval(function(){if(e.isInitialized){clearInterval(s);return}if(!o.x&&!o.y){clearInterval(s);return}if(Math.abs(o.x)<.01&&Math.abs(o.y)<.01){clearInterval(s);return}r(o.x*30,o.y*30),o.x*=.8,o.y*=.8},10))}ws.supportsTouch?(e.event.bind(t,`touchstart`,u),e.event.bind(t,`touchmove`,f),e.event.bind(t,`touchend`,p)):ws.supportsIePointer&&(window.PointerEvent?(e.event.bind(t,`pointerdown`,u),e.event.bind(t,`pointermove`,f),e.event.bind(t,`pointerup`,p)):window.MSPointerEvent&&(e.event.bind(t,`MSPointerDown`,u),e.event.bind(t,`MSPointerMove`,f),e.event.bind(t,`MSPointerUp`,p)))}var Ps=function(){return{handlers:[`click-rail`,`drag-thumb`,`keyboard`,`wheel`,`touch`],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1}},Fs={"click-rail":Os,"drag-thumb":ks,keyboard:js,wheel:Ms,touch:Ns},Is=function(e,t){var n=this;if(t===void 0&&(t={}),typeof e==`string`&&(e=document.querySelector(e)),!e||!e.nodeName)throw Error(`no element is specified to initialize PerfectScrollbar`);for(var r in this.element=e,e.classList.add(us.main),this.settings=Ps(),t)this.settings[r]=t[r];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var i=function(){return e.classList.add(us.state.focus)},a=function(){return e.classList.remove(us.state.focus)};this.isRtl=rs(e).direction===`rtl`,this.isRtl===!0&&e.classList.add(us.rtl),this.isNegativeScroll=function(){var t=e.scrollLeft,n=null;return e.scrollLeft=-1,n=e.scrollLeft<0,e.scrollLeft=t,n}(),this.negativeScrollAdjustment=this.isNegativeScroll?e.scrollWidth-e.clientWidth:0,this.event=new _s,this.ownerDocument=e.ownerDocument||document,this.scrollbarXRail=as(us.element.rail(`x`)),e.appendChild(this.scrollbarXRail),this.scrollbarX=as(us.element.thumb(`x`)),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute(`tabindex`,0),this.event.bind(this.scrollbarX,`focus`,i),this.event.bind(this.scrollbarX,`blur`,a),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var o=rs(this.scrollbarXRail);this.scrollbarXBottom=parseInt(o.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=xs(o.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=xs(o.borderLeftWidth)+xs(o.borderRightWidth),is(this.scrollbarXRail,{display:`block`}),this.railXMarginWidth=xs(o.marginLeft)+xs(o.marginRight),is(this.scrollbarXRail,{display:``}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=as(us.element.rail(`y`)),e.appendChild(this.scrollbarYRail),this.scrollbarY=as(us.element.thumb(`y`)),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute(`tabindex`,0),this.event.bind(this.scrollbarY,`focus`,i),this.event.bind(this.scrollbarY,`blur`,a),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var s=rs(this.scrollbarYRail);this.scrollbarYRight=parseInt(s.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=xs(s.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?Cs(this.scrollbarY):null,this.railBorderYWidth=xs(s.borderTopWidth)+xs(s.borderBottomWidth),is(this.scrollbarYRail,{display:`block`}),this.railYMarginHeight=xs(s.marginTop)+xs(s.marginBottom),is(this.scrollbarYRail,{display:``}),this.railYHeight=null,this.railYRatio=null,this.reach={x:e.scrollLeft<=0?`start`:e.scrollLeft>=this.contentWidth-this.containerWidth?`end`:null,y:e.scrollTop<=0?`start`:e.scrollTop>=this.contentHeight-this.containerHeight?`end`:null},this.isAlive=!0,this.settings.handlers.forEach(function(e){return Fs[e](n)}),this.lastScrollTop=Math.floor(e.scrollTop),this.lastScrollLeft=e.scrollLeft,this.event.bind(this.element,`scroll`,function(e){return n.onScroll(e)}),Ts(this)};Is.prototype.update=function(e){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,is(this.scrollbarXRail,{display:`block`}),is(this.scrollbarYRail,{display:`block`}),this.railXMarginWidth=xs(rs(this.scrollbarXRail).marginLeft)+xs(rs(this.scrollbarXRail).marginRight),this.railYMarginHeight=xs(rs(this.scrollbarYRail).marginTop)+xs(rs(this.scrollbarYRail).marginBottom),is(this.scrollbarXRail,{display:`none`}),is(this.scrollbarYRail,{display:`none`}),Ts(this),ys(this,`top`,0,!1,!0,e),ys(this,`left`,0,!1,!0,e),is(this.scrollbarXRail,{display:``}),is(this.scrollbarYRail,{display:``}))},Is.prototype.onScroll=function(e){this.isAlive&&(Ts(this),ys(this,`top`,this.element.scrollTop-this.lastScrollTop),ys(this,`left`,this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Is.prototype.destroy=function(){this.isAlive&&=(this.event.unbindAll(),cs(this.scrollbarX),cs(this.scrollbarY),cs(this.scrollbarXRail),cs(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,!1)},Is.prototype.removePsClasses=function(){this.element.className=this.element.className.split(` `).filter(function(e){return!e.match(/^ps([-_].+|)$/)}).join(` `)};function Ls(e){"@babel/helpers - typeof";return Ls=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ls(e)}var Rs=[`className`,`style`,`option`,`options`,`containerRef`,`onScrollY`,`onScrollX`,`onScrollUp`,`onScrollDown`,`onScrollLeft`,`onScrollRight`,`onYReachStart`,`onYReachEnd`,`onXReachStart`,`onXReachEnd`,`component`,`onSync`,`children`];function zs(){return zs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zs.apply(null,arguments)}function Bs(e,t){if(e==null)return{};var n,r,i=Vs(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Vs(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Hs(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Us(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Gs(r.key),r)}}function Ws(e,t,n){return t&&Us(e.prototype,t),n&&Us(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gs(e){var t=Ks(e,`string`);return Ls(t)==`symbol`?t:t+``}function Ks(e,t){if(Ls(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Ls(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function qs(e,t,n){return t=Zs(t),Js(e,Xs()?Reflect.construct(t,n||[],Zs(e).constructor):t.apply(e,n))}function Js(e,t){if(t&&(Ls(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Ys(e)}function Ys(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Xs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Xs=function(){return!!e})()}function Zs(e){return Zs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Zs(e)}function Qs(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$s(e,t)}function $s(e,t){return $s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$s(e,t)}var ec={"ps-scroll-y":`onScrollY`,"ps-scroll-x":`onScrollX`,"ps-scroll-up":`onScrollUp`,"ps-scroll-down":`onScrollDown`,"ps-scroll-left":`onScrollLeft`,"ps-scroll-right":`onScrollRight`,"ps-y-reach-start":`onYReachStart`,"ps-y-reach-end":`onYReachEnd`,"ps-x-reach-start":`onXReachStart`,"ps-x-reach-end":`onXReachEnd`};Object.freeze(ec);var tc=function(e){function n(e){var t;return Hs(this,n),t=qs(this,n,[e]),t.handleRef=t.handleRef.bind(t),t._handlerByEvent={},t}return Qs(n,e),Ws(n,[{key:`componentDidMount`,value:function(){this.props.option&&console.warn(`react-perfect-scrollbar: the "option" prop has been deprecated in favor of "options"`),this._ps=new Is(this._container,this.props.options||this.props.option),this._updateEventHook(),this._updateClassName()}},{key:`componentDidUpdate`,value:function(e){this._updateEventHook(e),this.updateScroll(),e.className!==this.props.className&&this._updateClassName()}},{key:`componentWillUnmount`,value:function(){var e=this;Object.keys(this._handlerByEvent).forEach(function(t){var n=e._handlerByEvent[t];n&&e._container.removeEventListener(t,n,!1)}),this._handlerByEvent={},this._ps.destroy(),this._ps=null}},{key:`_updateEventHook`,value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Object.keys(ec).forEach(function(n){var r=e.props[ec[n]],i=t[ec[n]];if(r!==i){if(i){var a=e._handlerByEvent[n];e._container.removeEventListener(n,a,!1),e._handlerByEvent[n]=null}if(r){var o=function(){return r(e._container)};e._container.addEventListener(n,o,!1),e._handlerByEvent[n]=o}}})}},{key:`_updateClassName`,value:function(){var e=this.props.className,t=this._container.className.split(` `).filter(function(e){return e.match(/^ps([-_].+|)$/)}).join(` `);this._container&&(this._container.className=`scrollbar-container${e?` ${e}`:``}${t?` ${t}`:``}`)}},{key:`updateScroll`,value:function(){var e=this.props.onSync;typeof e==`function`?e(this._ps):this._ps.update()}},{key:`handleRef`,value:function(e){var t,n;this._container=e,(t=(n=this.props).containerRef)==null||t.call(n,e)}},{key:`render`,value:function(){var e=this.props;e.className;var n=e.style;e.option,e.options,e.containerRef,e.onScrollY,e.onScrollX,e.onScrollUp,e.onScrollDown,e.onScrollLeft,e.onScrollRight,e.onYReachStart,e.onYReachEnd,e.onXReachStart,e.onXReachEnd;var r=e.component;e.onSync;var i=e.children,a=Bs(e,Rs),o=r===void 0?`div`:r;return t.default.createElement(o,zs({style:n,ref:this.handleRef},a),i)}}])}(t.Component);process.env.NODE_ENV!==`production`&&(tc.propTypes={children:E.PropTypes.node.isRequired,className:E.PropTypes.string,style:E.PropTypes.object,option:E.PropTypes.object,options:E.PropTypes.object,containerRef:E.PropTypes.func,onScrollY:E.PropTypes.func,onScrollX:E.PropTypes.func,onScrollUp:E.PropTypes.func,onScrollDown:E.PropTypes.func,onScrollLeft:E.PropTypes.func,onScrollRight:E.PropTypes.func,onYReachStart:E.PropTypes.func,onYReachEnd:E.PropTypes.func,onXReachStart:E.PropTypes.func,onXReachEnd:E.PropTypes.func,onSync:E.PropTypes.func,component:E.PropTypes.string});var nc=tc;function rc(e){"@babel/helpers - typeof";return rc=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},rc(e)}var ic=[`className`,`variant`,`children`];function ac(){return ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ac.apply(null,arguments)}function oc(e,t,n){return(t=sc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sc(e){var t=cc(e,`string`);return rc(t)==`symbol`?t:t+``}function cc(e,t){if(rc(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(rc(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function lc(e,t){if(e==null)return{};var n,r,i=uc(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function uc(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var dc=function(e){var n=e.className,r=n===void 0?void 0:n,i=e.variant,a=i===void 0?`default`:i,o=e.children,s=lc(e,ic),c=`cs-loader`,l=t.default.Children.count(o)>0?`${c}--content`:``;return t.default.createElement(`div`,ac({},s,{className:(0,D.default)(c,l,oc({},`${c}--variant-${a}`,a!=="default"),r),role:`status`}),o)};process.env.NODE_ENV!==`production`&&(dc.propTypes={children:E.default.node,className:E.default.string,variant:E.default.oneOf([`default`])});var fc=dc;function pc(e){"@babel/helpers - typeof";return pc=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},pc(e)}var mc=[`className`,`children`,`blur`,`grayscale`];function hc(){return hc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hc.apply(null,arguments)}function gc(e,t,n){return(t=_c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _c(e){var t=vc(e,`string`);return pc(t)==`symbol`?t:t+``}function vc(e,t){if(pc(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(pc(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function yc(e,t){if(e==null)return{};var n,r,i=bc(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function bc(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var xc=function(e){var n=e.className,r=n===void 0?``:n,i=e.children,a=i===void 0?void 0:i,o=e.blur,s=o!==void 0&&o,c=e.grayscale,l=c!==void 0&&c,u=yc(e,mc),d=`cs-overlay`,f=`${d}--blur`,p=`${d}--grayscale`;return t.default.createElement(`div`,hc({},u,{className:(0,D.default)(d,gc({},f,s),gc({},p,l),r)}),t.default.createElement(`div`,{className:`${d}__content`},a))};process.env.NODE_ENV!==`production`&&(xc.propTypes={children:E.default.node,className:E.default.string,blur:E.default.bool,grayscale:E.default.bool});var Sc=xc,Cc=[`sender`,`sentTime`,`children`,`className`];function wc(){return wc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wc.apply(null,arguments)}function Tc(e,t){if(e==null)return{};var n,r,i=Ec(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ec(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Dc=function(e){var n=e.sender,r=n===void 0?``:n,i=e.sentTime,a=i===void 0?``:i,o=e.children,s=o===void 0?void 0:o,c=e.className,l=Tc(e,Cc);return t.default.createElement(`div`,wc({},l,{className:(0,D.default)(`cs-message__header`,c)}),s===void 0?t.default.createElement(t.default.Fragment,null,t.default.createElement(`div`,{className:`cs-message__sender-name`},r),t.default.createElement(`div`,{className:`cs-message__sent-time`},a)):s)};Dc.displayName=`Message.Header`,process.env.NODE_ENV!==`production`&&(Dc.propTypes={sender:E.default.string,sentTime:E.default.string,children:E.default.node,className:E.default.string});var Oc=[`sender`,`sentTime`,`children`,`className`];function kc(){return kc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kc.apply(null,arguments)}function Ac(e,t){if(e==null)return{};var n,r,i=jc(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function jc(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Mc=function(e){var n=e.sender,r=n===void 0?``:n,i=e.sentTime,a=i===void 0?``:i,o=e.children,s=o===void 0?void 0:o,c=e.className,l=Ac(e,Oc);return t.default.createElement(`div`,kc({},l,{className:(0,D.default)(`cs-message__footer`,c)}),s===void 0?t.default.createElement(t.default.Fragment,null,t.default.createElement(`div`,{className:`cs-message__sender-name`},r),t.default.createElement(`div`,{className:`cs-message__sent-time`},a)):s)};Mc.displayName=`Message.Footer`,process.env.NODE_ENV!==`production`&&(Mc.propTypes={sender:E.default.string,sentTime:E.default.string,children:E.default.node,className:E.default.string});var Nc=function(e){var n=e.children,r=e.className;return t.default.createElement(`div`,{className:(0,D.default)(`cs-message__custom-content`,r)},n)};Nc.displayName=`Message.CustomContent`,process.env.NODE_ENV!==`production`&&(Nc.propTypes={children:E.default.node,className:E.default.string});var Pc=function(e){var n=e.src,r=e.width,i=e.height,a=e.alt,o=e.className,s=`cs-message__image-content`,c={width:typeof r==`number`?`${r}px`:typeof r==`string`?r:void 0,height:typeof i==`number`?`${i}px`:typeof i==`string`?i:void 0};return t.default.createElement(`div`,{className:(0,D.default)(s,o)},t.default.createElement(`img`,{src:n,style:c,alt:a}))};Pc.displayName=`Message.ImageContent`,process.env.NODE_ENV!==`production`&&(Pc.propTypes={src:E.default.string,width:E.default.oneOfType([E.default.string,E.default.number]),height:E.default.oneOfType([E.default.string,E.default.number]),alt:E.default.string,className:E.default.string});var Fc=function(e){var n=e.html,r=e.className;return t.default.createElement(`div`,{className:(0,D.default)(`cs-message__html-content`,r),dangerouslySetInnerHTML:function(){return{__html:n}}()})};Fc.displayName=`Message.HtmlContent`,process.env.NODE_ENV!==`production`&&(Fc.propTypes={html:E.default.string,className:E.default.string});var Ic=function(e){var n=e.text,r=e.className,i=e.children,a=`cs-message__text-content`,o=i??n;return t.default.createElement(`div`,{className:(0,D.default)(a,r)},o)};Ic.displayName=`Message.TextContent`,process.env.NODE_ENV!==`production`&&(Ic.propTypes={children:E.default.string,text:E.default.string,className:E.default.string});var Lc=[`model`,`avatarSpacer`,`avatarPosition`,`type`,`payload`,`children`,`className`];function Rc(){return Rc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rc.apply(null,arguments)}function zc(e,t,n){return(t=Bc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bc(e){var t=Vc(e,`string`);return Hc(t)==`symbol`?t:t+``}function Vc(e,t){if(Hc(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Hc(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Hc(e){"@babel/helpers - typeof";return Hc=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Hc(e)}function Uc(e,t){return Jc(e)||qc(e,t)||Gc(e,t)||Wc()}function Wc(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
562
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gc(e,t){if(e){if(typeof e==`string`)return Kc(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kc(e,t):void 0}}function Kc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function qc(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Jc(e){if(Array.isArray(e))return e}function Yc(e,t){if(e==null)return{};var n,r,i=Xc(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Xc(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Zc=function(e){var n=e.model,r=n.message,i=r===void 0?``:r,a=n.sentTime,o=a===void 0?``:a,s=n.sender,c=s===void 0?``:s,l=n.direction,u=l===void 0?1:l,d=n.position,f=n.type,p=n.payload,m=e.avatarSpacer,h=m!==void 0&&m,g=e.avatarPosition,_=g===void 0?void 0:g,v=e.type,y=v===void 0?`html`:v,b=e.payload,x=e.children,S=e.className,C=Yc(e,Lc),w=`cs-message`,T=Uc(we(x,[he,Dc,Mc,Fc,Ic,Pc,Nc]),7),E=T[0],O=T[1],k=T[2],A=T[3],ee=T[4],j=T[5],te=T[6],M=function(){if(u===0||u===`incoming`)return`${w}--incoming`;if(u===1||u===`outgoing`)return`${w}--outgoing`}(),ne=function(e){var t=`${w}--avatar-`;if(e===0||e===`top-left`||e===`tl`)return`${t}tl`;if(e===1||e===`top-right`||e===`tr`)return`${t}tr`;if(e===2||e===`bottom-right`||e===`br`)return`${t}br`;if(e===3||e===`bottom-left`||e===`bl`)return`${t}bl`;if(e===4||e===`center-left`||e===`cl`)return`${t}cl`;if(e===5||e===`center-right`||e===`cr`)return`${t}cr`}(_),re=function(e){var t=`cs-message--`;if(e===`single`||e===0)return`${t}single`;if(e===`first`||e===1)return`${t}first`;if(e===`normal`||e===2)return``;if(e===`last`||e===3)return`${t}last`}(d),ie=function(){return c?.length>0&&o?.length>0?`${c}: ${o}`:c?.length>0&&(o===void 0||o?.length===0)?c:null}(),ae=A??ee??j??te??function(){var e=f??y,n=p??i??b,r=Hc(n)===`object`?Te(n):``;if(e===`html`&&r!==`Message.CustomContent`)return t.default.createElement(Fc,{html:n});if(e===`text`)return t.default.createElement(Ic,{text:n});if(e===`image`)return t.default.createElement(Pc,n);if(e===`custom`||r===`Message.CustomContent`)return n}();return t.default.createElement(`section`,Rc({},C,{"aria-label":ie,className:(0,D.default)(w,M,zc({},`${w}--avatar-spacer`,h),re,ne,S)},zc({},`data-cs-message`,``)),E!==void 0&&t.default.createElement(`div`,{className:`${w}__avatar`},E),t.default.createElement(`div`,{className:`${w}__content-wrapper`},O,t.default.createElement(`div`,{className:`${w}__content`},ae),k))};process.env.NODE_ENV!==`production`&&(Zc.propTypes={model:E.default.shape({message:E.default.string,sentTime:E.default.string,sender:E.default.string,direction:E.default.oneOf([`incoming`,`outgoing`,0,1]),position:E.default.oneOf([`single`,`first`,`normal`,`last`,0,1,2,3]),type:E.default.oneOf([`html`,`text`,`image`,`custom`]),payload:E.default.oneOfType([E.default.string,E.default.object,Ee([Nc])])}),avatarSpacer:E.default.bool,avatarPosition:E.default.oneOf([`tl`,`tr`,`cl`,`cr`,`bl`,`br`,`top-left`,`top-right`,`center-left`,`center-right`,`bottom-left`,`bottom-right`]),children:Ee([he,Dc,Mc,Fc,Ic,Pc,Nc]),className:E.default.string,type:E.default.oneOf([`html`,`text`,`image`,`custom`]),payload:E.default.oneOfType([E.default.string,Ee([Nc])])}),Zc.Header=Dc,Zc.HtmlContent=Fc,Zc.TextContent=Ic,Zc.ImageContent=Pc,Zc.CustomContent=Nc,Zc.Footer=Mc;var Qc=Zc,$c=[`children`,`className`];function el(){return el=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},el.apply(null,arguments)}function tl(e,t){if(e==null)return{};var n,r,i=nl(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function nl(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var rl=function(e){var n=e.children,r=n===void 0?void 0:n,i=e.className,a=tl(e,$c);return t.default.createElement(`div`,el({},a,{className:(0,D.default)(`cs-message-group__header`,i)}),r)};rl.displayName=`MessageGroup.Header`,process.env.NODE_ENV!==`production`&&(rl.propTypes={children:E.default.node,className:E.default.string});var il=[`children`,`className`];function al(){return al=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},al.apply(null,arguments)}function ol(e,t){if(e==null)return{};var n,r,i=sl(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function sl(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var cl=function(e){var n=e.children,r=n===void 0?void 0:n,i=e.className,a=ol(e,il);return t.default.createElement(`div`,al({},a,{className:(0,D.default)(`cs-message-group__footer`,i)}),r)};cl.displayName=`MessageGroup.Footer`,process.env.NODE_ENV!==`production`&&(cl.propTypes={children:E.default.node,className:E.default.string});var ll=[`children`,`className`];function ul(){return ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ul.apply(null,arguments)}function dl(e,t){if(e==null)return{};var n,r,i=fl(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function fl(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var pl=function(e){var n=e.children,r=n===void 0?void 0:n,i=e.className,a=dl(e,ll);return t.default.createElement(`div`,ul({},a,{className:(0,D.default)(`cs-message-group__messages`,i)}),r)};pl.displayName=`MessageGroup.Messages`,process.env.NODE_ENV!==`production`&&(pl.propTypes={children:E.default.node,className:E.default.string});function ml(e){"@babel/helpers - typeof";return ml=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ml(e)}var hl=[`direction`,`avatarPosition`,`sender`,`sentTime`,`children`,`className`];function gl(){return gl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gl.apply(null,arguments)}function _l(e,t,n){return(t=vl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vl(e){var t=yl(e,`string`);return ml(t)==`symbol`?t:t+``}function yl(e,t){if(ml(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(ml(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function bl(e,t){return Tl(e)||wl(e,t)||Sl(e,t)||xl()}function xl(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
563
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sl(e,t){if(e){if(typeof e==`string`)return Cl(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cl(e,t):void 0}}function Cl(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function wl(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Tl(e){if(Array.isArray(e))return e}function El(e,t){if(e==null)return{};var n,r,i=Dl(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Dl(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Ol=function(e){var n=e.direction,r=n===void 0?`incoming`:n,i=e.avatarPosition,a=i===void 0?void 0:i,o=e.sender,s=o===void 0?``:o,c=e.sentTime,l=c===void 0?``:c,u=e.children,d=e.className,f=El(e,hl),p=`cs-message-group`,m=function(){if(r===0||r===`incoming`)return`${p}--incoming`;if(r===1||r===`outgoing`)return`${p}--outgoing`}(),h=function(){var e=`${p}--avatar-`;if(typeof a==`string`&&(a===`tl`||a===`top-left`||a===`tr`||a===`top-right`||a===`bl`||a===`bottom-right`||a===`br`||a===`bottom-right`||a===`cl`||a===`center-left`||a===`cr`||a===`center-right`))return`${e}${a}`}(),g=bl(we(u,[he,rl,cl,pl]),4),_=g[0],v=g[1],y=g[2],b=g[3],x=function(){return s.length>0&&l.length>0?`${s}: ${l}`:s.length>0&&l.length===0?s:null}();return t.default.createElement(`section`,gl({"aria-label":x},f,{className:(0,D.default)(p,m,h,d)},_l({},`data-cs-message-group`,``)),_!==void 0&&t.default.createElement(`div`,{className:`${p}__avatar`},_),t.default.createElement(`div`,{className:`${p}__content`},v,b,y))};process.env.NODE_ENV!==`production`&&(Ol.propTypes={direction:E.default.oneOf([`incoming`,`outgoing`,0,1]),avatarPosition:E.default.oneOf([`tl`,`tr`,`br`,`bl`,`cl`,`cr`]),sentTime:E.default.string,sender:E.default.string,children:Ee([he,rl,cl,pl]),className:E.default.string}),Ol.Header=rl,Ol.Footer=cl,Ol.Messages=pl;var kl=Ol,Al=[`content`,`as`,`children`,`className`];function jl(){return jl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jl.apply(null,arguments)}function Ml(e,t){if(e==null)return{};var n,r,i=Nl(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Nl(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Pl=function(e){var n=e.content,r=n===void 0?void 0:n,i=e.as,a=i===void 0?`div`:i,o=e.children,s=o===void 0?void 0:o,c=e.className,l=Ml(e,Al),u=`cs-message-separator`,d=function(){return typeof a==`string`&&a.length>0?a:`div`}();return t.default.createElement(d,jl({},l,{className:(0,D.default)(u,c)}),Ce(s)===!0?r:s)};process.env.NODE_ENV!==`production`&&(Pl.propTypes={children:E.default.node,content:E.default.node,as:E.default.elementType,className:E.default.string});var Fl=Pl,Il=[`className`,`children`];function Ll(){return Ll=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ll.apply(null,arguments)}function Rl(e,t){if(e==null)return{};var n,r,i=zl(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function zl(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Bl=function(e){var n=e.className,r=e.children,i=Rl(e,Il);return t.default.createElement(`div`,Ll({},i,{className:n}),r)};Bl.displayName=`MessageList.Content`,process.env.NODE_ENV!==`production`&&(Bl.propTypes={children:E.default.node,className:E.default.string});var Vl=[`children`,`typingIndicator`,`loading`,`loadingMore`,`loadingMorePosition`,`onYReachStart`,`onYReachEnd`,`className`,`disableOnYReachWhenNoScroll`,`scrollBehavior`,`autoScrollToBottom`,`autoScrollToBottomOnMount`];function Hl(e){"@babel/helpers - typeof";return Hl=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Hl(e)}function Ul(){return Ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ul.apply(null,arguments)}function Wl(e,t){return Yl(e)||Jl(e,t)||Kl(e,t)||Gl()}function Gl(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
564
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kl(e,t){if(e){if(typeof e==`string`)return ql(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ql(e,t):void 0}}function ql(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Jl(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Yl(e){if(Array.isArray(e))return e}function Xl(e,t){if(e==null)return{};var n,r,i=Zl(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Zl(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ql(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function $l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,lu(r.key),r)}}function eu(e,t,n){return t&&$l(e.prototype,t),n&&$l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tu(e,t,n){return t=au(t),nu(e,iu()?Reflect.construct(t,n||[],au(e).constructor):t.apply(e,n))}function nu(e,t){if(t&&(Hl(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return ru(e)}function ru(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function iu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iu=function(){return!!e})()}function au(e){return au=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},au(e)}function ou(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&su(e,t)}function su(e,t){return su=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},su(e,t)}function cu(e,t,n){return(t=lu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lu(e){var t=uu(e,`string`);return Hl(t)==`symbol`?t:t+``}function uu(e,t){if(Hl(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Hl(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var du=function(e){function n(e){var r;return Ql(this,n),r=tu(this,n,[e]),cu(r,`handleResize`,function(){r.containerRef.current.clientHeight<r.lastClientHeight&&r.scrollToEnd(r.props.scrollBehavior),r.scrollRef.current.updateScroll()}),cu(r,`handleContainerResize`,function(){r.resizeTicking===!1&&(window.requestAnimationFrame(function(){var e=r.containerRef.current;if(e){var t=e.clientHeight-r.lastClientHeight;t>=1?r.preventScrollTop===!1&&(e.scrollTop=Math.round(e.scrollTop)-t):e.scrollTop-=t,r.lastClientHeight=e.clientHeight,r.scrollRef.current.updateScroll()}r.resizeTicking=!1}),r.resizeTicking=!0)}),cu(r,`isSticked`,function(){var e=r.containerRef.current;return e.scrollHeight===Math.round(e.scrollTop+e.clientHeight)}),cu(r,`handleScroll`,function(){r.scrollTicking===!1&&(window.requestAnimationFrame(function(){r.noScroll===!1?r.preventScrollTop=r.isSticked():r.noScroll=!1,r.scrollTicking=!1}),r.scrollTicking=!0)}),cu(r,`getLastMessageOrGroup`,function(){var e=r.containerRef.current.querySelector(`[data-cs-message-list]>[data-cs-message]:last-of-type,[data-cs-message-list]>[data-cs-message-group]:last-of-type`);return{lastElement:e,lastMessageInGroup:e?.querySelector(`[data-cs-message]:last-of-type`)}}),r.scrollPointRef=t.default.createRef(),r.containerRef=t.default.createRef(),r.scrollRef=t.default.createRef(),r.lastClientHeight=0,r.preventScrollTop=!1,r.resizeObserver=void 0,r.scrollTicking=!1,r.resizeTicking=!1,r.noScroll=void 0,r}return ou(n,e),eu(n,[{key:`getSnapshotBeforeUpdate`,value:function(){var e=this.containerRef.current,t=Math.round(e.scrollTop+e.clientHeight);return{sticky:e.scrollHeight===t||e.scrollHeight+1===t||e.scrollHeight-1===t,clientHeight:e.clientHeight,scrollHeight:e.scrollHeight,lastMessageOrGroup:this.getLastMessageOrGroup(),diff:e.scrollHeight-e.scrollTop}}},{key:`componentDidMount`,value:function(){this.props.autoScrollToBottomOnMount===!0&&this.scrollToEnd(this.props.scrollBehavior),this.lastClientHeight=this.containerRef.current.clientHeight,window.addEventListener(`resize`,this.handleResize),typeof window.ResizeObserver==`function`&&(this.resizeObserver=new ResizeObserver(this.handleContainerResize),this.resizeObserver.observe(this.containerRef.current)),this.containerRef.current.addEventListener(`scroll`,this.handleScroll)}},{key:`componentDidUpdate`,value:function(e,t,n){var r=this.props.autoScrollToBottom;if(n!==void 0){var i=this.containerRef.current,a=this.getLastMessageOrGroup(),o=a.lastElement,s=a.lastMessageInGroup;if(o===n.lastMessageOrGroup.lastElement&&(s===void 0||s===n.lastMessageOrGroup.lastMessageInGroup)&&(i.scrollTop=i.scrollHeight-n.diff+(this.lastClientHeight-i.clientHeight)),n.sticky===!0)r===!0&&this.scrollToEnd(this.props.scrollBehavior),this.preventScrollTop=!0;else if(n.clientHeight<this.lastClientHeight){var c=i.scrollTop+this.lastClientHeight;i.scrollHeight===c||i.scrollHeight+1===c||i.scrollHeight-1===c?r===!0&&(this.scrollToEnd(this.props.scrollBehavior),this.preventScrollTop=!0):this.preventScrollTop=!1}else this.preventScrollTop=!1,o===n.lastMessageOrGroup.lastElement&&(s===void 0||s===n.lastMessageOrGroup.lastMessageInGroup)&&i.scrollTop===0&&i.scrollHeight>n.scrollHeight&&(i.scrollTop=i.scrollHeight-n.scrollHeight);this.lastClientHeight=n.clientHeight}}},{key:`componentWillUnmount`,value:function(){window.removeEventListener(`resize`,this.handleResize),this.resizeObserver!==void 0&&this.resizeObserver.disconnect(),this.containerRef.current.removeEventListener(`scroll`,this.handleScroll)}},{key:`scrollToEnd`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollBehavior,t=this.containerRef.current,n=this.scrollPointRef.current,r=t.getBoundingClientRect(),i=n.getBoundingClientRect().top+t.scrollTop-r.top;t.scrollBy?t.scrollBy({top:i,behavior:e}):t.scrollTop=i,this.lastClientHeight=t.clientHeight,this.noScroll=!0}},{key:`render`,value:function(){var e=this,n=this.props,r=n.children,i=n.typingIndicator,a=n.loading,o=n.loadingMore,s=n.loadingMorePosition,c=n.onYReachStart,l=n.onYReachEnd,u=n.className,d=n.disableOnYReachWhenNoScroll;n.scrollBehavior,n.autoScrollToBottom,n.autoScrollToBottomOnMount;var f=Xl(n,Vl),p=`cs-message-list`,m=Wl(we(r,[Bl]),1)[0];return t.default.createElement(`div`,Ul({},f,{className:(0,D.default)(p,u)}),o&&t.default.createElement(`div`,{className:(0,D.default)(`${p}__loading-more`,cu({},`${p}__loading-more--bottom`,s===`bottom`))},t.default.createElement(fc,null)),a&&t.default.createElement(Sc,null,t.default.createElement(fc,null)),t.default.createElement(nc,Ul({onYReachStart:c,onYReachEnd:l,onSync:function(e){return e.update(d)},className:`${p}__scroll-wrapper`,ref:this.scrollRef,containerRef:function(t){return e.containerRef.current=t},options:{suppressScrollX:!0}},cu({},`data-cs-message-list`,``),{style:{overscrollBehaviorY:`none`,overflowAnchor:`auto`,touchAction:`none`}}),m||r,t.default.createElement(`div`,{className:`${p}__scroll-to`,ref:this.scrollPointRef})),i!==void 0&&t.default.createElement(`div`,{className:`${p}__typing-indicator-container`},i))}}])}(t.default.Component);du.displayName=`MessageList`;function fu(e,n){var r=(0,t.useRef)(),i=function(e){return r.current.scrollToEnd(e)};return(0,t.useImperativeHandle)(n,function(){return{scrollToBottom:i}}),t.default.createElement(du,Ul({ref:r},e))}var pu=(0,t.forwardRef)(fu);pu.propTypes={children:Ee([Qc,kl,Fl,Bl]),typingIndicator:E.default.node,loading:E.default.bool,loadingMore:E.default.bool,loadingMorePosition:E.default.oneOf([`top`,`bottom`]),onYReachStart:E.default.func,onYReachEnd:E.default.func,disableOnYReachWhenNoScroll:E.default.bool,autoScrollToBottom:E.default.bool,autoScrollToBottomOnMount:E.default.bool,scrollBehavior:E.default.oneOf([`auto`,`smooth`]),className:E.default.string},pu.defaultProps={typingIndicator:void 0,loading:!1,loadingMore:!1,loadingMorePosition:`top`,disableOnYReachWhenNoScroll:!1,autoScrollToBottom:!0,autoScrollToBottomOnMount:!0,scrollBehavior:`auto`},process.env.NODE_ENV!==`production`&&(du.propTypes=pu.propTypes),du.defaultProps=pu.defaultProps,pu.Content=Bl;var mu=pu;function hu(e){"@babel/helpers - typeof";return hu=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},hu(e)}function gu(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function _u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Du(r.key),r)}}function vu(e,t,n){return t&&_u(e.prototype,t),n&&_u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yu(e,t,n){return t=Cu(t),bu(e,Su()?Reflect.construct(t,n||[],Cu(e).constructor):t.apply(e,n))}function bu(e,t){if(t&&(hu(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return xu(e)}function xu(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Su(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Su=function(){return!!e})()}function Cu(e){return Cu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Cu(e)}function wu(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tu(e,t)}function Tu(e,t){return Tu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Tu(e,t)}function Eu(e,t,n){return(t=Du(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Du(e){var t=Ou(e,`string`);return hu(t)==`symbol`?t:t+``}function Ou(e,t){if(hu(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(hu(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var ku=function(e,t){var n=document.activeElement===e,r=document.createTextNode(``);if(e.appendChild(r),r!==null&&r.nodeValue!==null&&(n||t)){var i=window.getSelection();if(i!==null){var a=document.createRange();a.setStart(r,r.nodeValue.length),a.collapse(!0),i.removeAllRanges(),i.addRange(a)}}},Au=function(e){function n(e){var r;return gu(this,n),r=yu(this,n,[e]),Eu(r,`innerHTML`,function(){var e=r.props.value;return{__html:e===void 0?``:e}}),Eu(r,`handleKeyPress`,function(e){var t=r.props.onKeyPress;t?.(e)}),Eu(r,`handleInput`,function(e){var t=r.props.onChange,n=e.target;t?.(n.innerHTML,n.textContent,n.innerText)}),r.msgRef=t.default.createRef(),r}return wu(n,e),vu(n,[{key:`focus`,value:function(){this.msgRef.current!==void 0&&this.msgRef.current.focus()}},{key:`componentDidMount`,value:function(){this.props.autoFocus===!0&&this.msgRef.current.focus()}},{key:`shouldComponentUpdate`,value:function(e){var t=this.msgRef,n=this.props,r=n.placeholder,i=n.disabled,a=n.activateAfterChange;return t.current===void 0||e.value!==t.current.innerHTML||r!==e.placeholder||i!==e.disabled||a!==e.activateAfterChange}},{key:`componentDidUpdate`,value:function(){var e=this.msgRef,t=this.props,n=t.value,r=t.activateAfterChange;n!==e.current.innerHTML&&(e.current.innerHTML=typeof n==`string`?n:``),ku(e.current,r)}},{key:`render`,value:function(){var e=this.msgRef,n=this.handleInput,r=this.handleKeyPress,i=this.innerHTML,a=this.props,o=a.placeholder,s=a.disabled,c=a.className,l=typeof o==`string`?o:``;return t.default.createElement(`div`,{ref:e,className:c,contentEditable:s===!1,disabled:s,"data-placeholder":l,onInput:n,onKeyPress:r,dangerouslySetInnerHTML:i()})}}])}(t.Component);process.env.NODE_ENV!==`production`&&(Au.propTypes={value:E.default.string,placeholder:E.default.string,disabled:E.default.bool,activateAfterChange:E.default.bool,autoFocus:E.default.bool,onChange:E.default.func,onKeyPress:E.default.func,className:E.default.string});var ju=Au;function Mu(e){"@babel/helpers - typeof";return Mu=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Mu(e)}var Nu=[`fancyScroll`,`children`,`forwardedRef`],Pu=[`value`,`onSend`,`onChange`,`autoFocus`,`placeholder`,`fancyScroll`,`className`,`activateAfterChange`,`disabled`,`sendDisabled`,`sendOnReturnDisabled`,`attachDisabled`,`sendButton`,`attachButton`,`onAttachClick`];function Fu(e,t,n){return(t=Ju(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Iu(e,t){return Vu(e)||Bu(e,t)||Ru(e,t)||Lu()}function Lu(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
565
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ru(e,t){if(e){if(typeof e==`string`)return zu(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zu(e,t):void 0}}function zu(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Bu(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Vu(e){if(Array.isArray(e))return e}function Hu(){return Hu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hu.apply(null,arguments)}function Uu(e,t){if(e==null)return{};var n,r,i=Wu(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Wu(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Gu(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Ku(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Ju(r.key),r)}}function qu(e,t,n){return t&&Ku(e.prototype,t),n&&Ku(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ju(e){var t=Yu(e,`string`);return Mu(t)==`symbol`?t:t+``}function Yu(e,t){if(Mu(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Mu(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Xu(e,t,n){return t=ed(t),Zu(e,$u()?Reflect.construct(t,n||[],ed(e).constructor):t.apply(e,n))}function Zu(e,t){if(t&&(Mu(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Qu(e)}function Qu(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function $u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($u=function(){return!!e})()}function ed(e){return ed=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ed(e)}function td(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nd(e,t)}function nd(e,t){return nd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nd(e,t)}function rd(){var e=function(e){function n(){return Gu(this,n),Xu(this,n,arguments)}return td(n,e),qu(n,[{key:`render`,value:function(){var e=this.props,n=e.fancyScroll,r=e.children,i=e.forwardedRef,a=Uu(e,Nu);return t.default.createElement(t.default.Fragment,null,n===!0&&t.default.createElement(nc,Hu({ref:function(e){return i.current=e}},a,{options:{suppressScrollX:!0}}),r),n===!1&&t.default.createElement(`div`,Hu({ref:i},a),r))}}])}(t.Component);return t.default.forwardRef(function(n,r){return t.default.createElement(e,Hu({forwardedRef:r},n))})}var id=rd(),ad=function(e,n){var r=Iu((0,t.useState)(e===void 0?n:e),2),i=r[0],a=r[1];return[e===void 0?i:e,function(e){a(e)}]};function od(e,n){var r=e.value,i=r===void 0?void 0:r,a=e.onSend,o=a===void 0?Se:a,s=e.onChange,c=s===void 0?Se:s,l=e.autoFocus,u=l!==void 0&&l,d=e.placeholder,f=d===void 0?``:d,p=e.fancyScroll,m=p===void 0||p,h=e.className,g=e.activateAfterChange,_=g!==void 0&&g,v=e.disabled,y=v!==void 0&&v,b=e.sendDisabled,x=e.sendOnReturnDisabled,S=x!==void 0&&x,C=e.attachDisabled,w=C!==void 0&&C,T=e.sendButton,E=T===void 0||T,O=e.attachButton,k=O===void 0||O,A=e.onAttachClick,ee=A===void 0?Se:A,j=Uu(e,Pu),te=(0,t.useRef)(),M=(0,t.useRef)(),ne=Iu(ad(i,``),2),re=ne[0],ie=ne[1],ae=Iu(ad(b,!0),2),oe=ae[0],N=ae[1],se=function(){M.current!==void 0&&M.current.focus()};(0,t.useImperativeHandle)(n,function(){return{focus:se}}),(0,t.useEffect)(function(){u===!0&&se()},[]),(0,t.useEffect)(function(){typeof te.current.updateScroll==`function`&&te.current.updateScroll()});var ce=function(){var e=M.current.msgRef.current;return[e.textContent,e.innerText,e.cloneNode(!0).childNodes]},le=function(){if(re.length>0){i===void 0&&ie(``),b===void 0&&N(!0);var e=ce();o(re,e[0],e[1],e[2])}},ue=function(e){e.key===`Enter`&&e.shiftKey===!1&&S===!1&&(e.preventDefault(),le())},de=function(e,t,n){ie(e),b===void 0&&N(t.length===0),typeof te.current.updateScroll==`function`&&te.current.updateScroll(),c(e,t,n,ce()[2])},fe=`cs-message-input`,pe=typeof f==`string`?f:``;return t.default.createElement(`div`,Hu({},j,{className:(0,D.default)(fe,Fu({},`${fe}--disabled`,y),h)}),k===!0&&t.default.createElement(`div`,{className:`${fe}__tools`},t.default.createElement(ko,{onClick:ee,disabled:y===!0||w===!0})),t.default.createElement(`div`,{className:`${fe}__content-editor-wrapper`},t.default.createElement(id,{fancyScroll:m,ref:te,className:`${fe}__content-editor-container`},t.default.createElement(ju,{ref:M,className:`${fe}__content-editor`,disabled:y,placeholder:pe,onKeyPress:ue,onChange:de,activateAfterChange:_,value:re}))),E===!0&&t.default.createElement(`div`,{className:`${fe}__tools`},t.default.createElement(Co,{onClick:le,disabled:y===!0||oe===!0})))}var sd=(0,t.forwardRef)(od);sd.displayName=`MessageInput`,sd.propTypes={value:E.default.string,placeholder:E.default.string,disabled:E.default.bool,sendOnReturnDisabled:E.default.bool,sendDisabled:E.default.bool,fancyScroll:E.default.bool,activateAfterChange:E.default.bool,autoFocus:E.default.bool,onChange:E.default.func,onSend:E.default.func,className:E.default.string,sendButton:E.default.bool,attachButton:E.default.bool,attachDisabled:E.default.bool,onAttachClick:E.default.func},process.env.NODE_ENV!==`production`&&(od.propTypes=sd.propTypes);var cd=sd,ld=[`className`,`children`];function ud(){return ud=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ud.apply(null,arguments)}function dd(e,t){if(e==null)return{};var n,r,i=fd(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function fd(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var pd=function(e){var n=e.className,r=e.children,i=dd(e,ld);return t.default.createElement(`div`,ud({},i,{className:(0,D.default)(`cs-input-toolbox`,n)}),r)};pd.displayName=`InputToolbox`,process.env.NODE_ENV!==`production`&&(pd.propTypes={children:E.default.node,className:E.default.string});var md=pd,hd=[`children`,`className`];function gd(){return gd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gd.apply(null,arguments)}function _d(e,t){return Sd(e)||xd(e,t)||yd(e,t)||vd()}function vd(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
566
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yd(e,t){if(e){if(typeof e==`string`)return bd(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bd(e,t):void 0}}function bd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xd(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Sd(e){if(Array.isArray(e))return e}function Cd(e,t){if(e==null)return{};var n,r,i=wd(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function wd(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Td=function(e){var n=e.children,r=n===void 0?void 0:n,i=e.className,a=Cd(e,hd),o=`cs-chat-container`,s=_d(we(r,[ns,mu,cd,md]),4),c=s[0],l=s[1],u=s[2],d=s[3];return t.default.createElement(`div`,gd({},a,{className:(0,D.default)(o,i)}),c,l,u,d)};process.env.NODE_ENV!==`production`&&(Td.propTypes={children:Ee([ns,mu,cd,md]),className:E.default.string});var Ed=Td;process.env.NODE_ENV!==`production`&&(E.default.node,E.default.string,E.default.bool),process.env.NODE_ENV!==`production`&&E.default.node,process.env.NODE_ENV!==`production`&&E.default.node,process.env.NODE_ENV!==`production`&&(E.default.node,E.default.string,E.default.node,E.default.node,E.default.node),process.env.NODE_ENV!==`production`&&(E.default.node,E.default.number,E.default.bool,E.default.node,E.default.node,E.default.node,E.default.bool,E.default.string),process.env.NODE_ENV!==`production`&&(E.default.bool,E.default.bool,E.default.bool,E.default.func,E.default.string);var Dd=u((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=`fas`,n=`chevron-left`,r=320,i=512,a=[9001],o=`f053`,s=`M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z`;e.definition={prefix:t,iconName:n,icon:[r,i,a,o,s]},e.faChevronLeft=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=s,e.aliases=a})),Od=u((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=`fas`,n=`chevron-down`,r=512,i=512,a=[],o=`f078`,s=`M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z`;e.definition={prefix:t,iconName:n,icon:[r,i,a,o,s]},e.faChevronDown=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=s,e.aliases=a}));Dd(),Od(),process.env.NODE_ENV!==`production`&&(E.default.node,E.default.string,E.default.bool,E.default.bool,E.default.string,E.default.func);function kd(e){"@babel/helpers - typeof";return kd=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},kd(e)}var Ad=[`responsive`,`children`,`className`];function jd(){return jd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jd.apply(null,arguments)}function Md(e,t,n){return(t=Nd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nd(e){var t=Pd(e,`string`);return kd(t)==`symbol`?t:t+``}function Pd(e,t){if(kd(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(kd(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Fd(e,t){if(e==null)return{};var n,r,i=Id(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Id(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Ld=function(e){var n=e.responsive,r=n!==void 0&&n,i=e.children,a=i===void 0?void 0:i,o=e.className,s=Fd(e,Ad),c=`cs-main-container`;return t.default.createElement(`div`,jd({},s,{className:(0,D.default)(c,Md({},`${c}--responsive`,r),o)}),a)};process.env.NODE_ENV!==`production`&&(Ld.propTypes={children:E.default.node,responsive:E.default.bool,className:E.default.string});var Rd=Ld,zd={prefix:`fas`,iconName:`magnifying-glass`,icon:[512,512,[128269,`search`],`f002`,`M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z`]},Bd={prefix:`fas`,iconName:`xmark`,icon:[384,512,[128473,10005,10006,10060,215,`close`,`multiply`,`remove`,`times`],`f00d`,`M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z`]};function Vd(e){"@babel/helpers - typeof";return Vd=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Vd(e)}var Hd=[`placeholder`,`value`,`onChange`,`onClearClick`,`className`,`disabled`];function Ud(){return Ud=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ud.apply(null,arguments)}function Wd(e,t,n){return(t=Gd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gd(e){var t=Kd(e,`string`);return Vd(t)==`symbol`?t:t+``}function Kd(e,t){if(Vd(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Vd(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function qd(e,t){return Qd(e)||Zd(e,t)||Yd(e,t)||Jd()}function Jd(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
567
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yd(e,t){if(e){if(typeof e==`string`)return Xd(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xd(e,t):void 0}}function Xd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Zd(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Qd(e){if(Array.isArray(e))return e}function $d(e,t){if(e==null)return{};var n,r,i=ef(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ef(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var tf=function(e,n){return n===void 0?(0,t.useState)(e):[n,function(){}]};function nf(e,n){var r=e.placeholder,i=r===void 0?``:r,a=e.value,o=a===void 0?void 0:a,s=e.onChange,c=s===void 0?function(){}:s,l=e.onClearClick,u=l===void 0?function(){}:l,d=e.className,f=e.disabled,p=f!==void 0&&f,m=$d(e,Hd),h=`cs-search`,g=(0,t.useMemo)(function(){return o!==void 0},[]),_=qd(tf(``,o),2),v=_[0],y=_[1],b=qd((0,t.useState)(g?v.length>0:!1),2),x=b[0],S=b[1];if(g!==(o!==void 0))throw`Search: Changing from controlled to uncontrolled component and vice versa is not allowed`;var C=(0,t.useRef)(void 0),w=function(){C.current!==void 0&&C.current.focus()};return(0,t.useImperativeHandle)(n,function(){return{focus:w}}),t.default.createElement(`div`,Ud({},m,{className:(0,D.default)(h,Wd({},`${h}--disabled`,p),d)}),t.default.createElement(Xa,{icon:zd,className:`${h}__search-icon`}),t.default.createElement(`input`,{ref:C,type:`text`,className:`${h}__input`,placeholder:i,onChange:function(e){var t=e.target.value;S(t.length>0),g===!1&&y(t),c(t)},disabled:p,value:v}),t.default.createElement(Xa,{icon:Bd,className:(0,D.default)(`${h}__clear-icon`,Wd({},`${h}__clear-icon--active`,x)),onClick:function(){g===!1&&y(``),S(!1),u()}}))}var rf=(0,t.forwardRef)(nf);rf.displayName=`Search`,rf.propTypes={placeholder:E.default.string,value:E.default.string,onChange:E.default.func,onClearClick:E.default.func,className:E.default.string,disabled:E.default.bool},process.env.NODE_ENV!==`production`&&(nf.propTypes=rf.propTypes),process.env.NODE_ENV!==`production`&&(E.default.node,E.default.oneOf([`left`,`right`]),E.default.bool,E.default.bool,E.default.string);var af=ae,of=[`content`,`className`];function sf(){return sf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sf.apply(null,arguments)}function cf(e,t){if(e==null)return{};var n,r,i=lf(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function lf(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var uf=function(e){var n=e.content,r=n===void 0?``:n,i=e.className,a=cf(e,of),o=`cs-typing-indicator`;return t.default.createElement(`div`,sf({},a,{className:(0,D.default)(o,i)}),t.default.createElement(`div`,{className:`${o}__indicator`},t.default.createElement(`div`,{className:`${o}__dot`}),t.default.createElement(`div`,{className:`${o}__dot`}),t.default.createElement(`div`,{className:`${o}__dot`})),t.default.createElement(`div`,{className:`${o}__text`},r))};process.env.NODE_ENV!==`production`&&(uf.propTypes={content:E.default.node,className:E.default.string});var df=uf;function ff(e){"@babel/helpers - typeof";return ff=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ff(e)}var pf=[`className`,`children`,`size`,`selected`,`onChange`,`itemsTabIndex`];function mf(){return mf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mf.apply(null,arguments)}function hf(e,t,n){return(t=gf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gf(e){var t=_f(e,`string`);return ff(t)==`symbol`?t:t+``}function _f(e,t){if(ff(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(ff(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function vf(e,t){if(e==null)return{};var n,r,i=yf(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function yf(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function bf(e,n){var r=e.className,i=e.children,a=e.size,o=e.selected,s=e.onChange,c=s===void 0?Se:s,l=e.itemsTabIndex,u=vf(e,pf),d=`cs-status-list`,f=(0,t.useRef)();(0,t.useImperativeHandle)(n,function(){return{focus:function(e){var t=Array.from(f.current.querySelectorAll(`li`)).filter(function(e){return e.parentNode===f.current});t[e]!==void 0&&t[e].focus()}}});var p=l;return t.default.createElement(`ul`,mf({ref:f},u,{className:(0,D.default)(d,r,hf({},`${d}--${a}`,a))}),t.default.Children.map(i,function(e){var n={};o&&(n.selected=e.props.status===o),c&&(n.onClick=function(t){c(e.props.status),e.onClick&&e.onClick(t)});var r=function(t){c&&t.key===`Enter`&&t.shiftKey===!1&&t.altKey===!1&&c(e.props.status)},i=function(){if(typeof p==`number`)return p>0?p++:p}();return t.default.createElement(`li`,{tabIndex:i,onKeyPress:r},t.default.cloneElement(e,n))}))}var xf=(0,t.forwardRef)(bf);xf.displayName=`StatusList`,xf.propTypes={children:Ee([af]),selected:E.default.oneOf(O),size:E.default.oneOf(k),itemsTabIndex:E.default.number,className:E.default.string,onChange:E.default.func},process.env.NODE_ENV!==`production`&&(bf.propTypes=xf.propTypes);var Sf={name:`@smarter.sh/ui-chat`,version:`0.7.0`,description:`chatbot React.js component for the https://smarter.sh declarative, plugin-based AI resource management platform.`,homepage:`https://smarter.sh`,type:`module`,main:`./dist/smarter-chat-library.umd.js`,module:`./dist/smarter-chat-library.es.js`,types:`./dist/types/src/index.d.ts`,exports:{".":{types:`./dist/types/src/index.d.ts`,import:`./dist/smarter-chat-library.es.js`,require:`./dist/smarter-chat-library.umd.js`},"./dist/ui-chat.css":`./dist/ui-chat.css`,"./style.css":`./dist/ui-chat.css`},files:[`dist`],sideEffects:[`*.css`],keywords:[`react`,`component`,`chatbot`,`ai`,`smarter`],author:`Lawrence McDaniel <lpm0073@gmail.com>, (https://lawrencemcdaniel.com/)`,license:`AGPL-3.0-or-later`,repository:{type:`git`,url:`git+https://github.com/smarter-sh/smarter-chat.git`},bugs:{url:`https://github.com/smarter-sh/smarter-chat/issues`},contributors:[`Lawrence McDaniel <lpm0073@gmail.com> (https://lawrencemcdaniel.com/)`],engines:{node:`>=20.17.0`,npm:`>=10.8.2`},funding:{type:`individual`,url:`https://github.com/sponsors/lpm0073`},scripts:{dev:`NODE_ENV=dev && vite`,build:`tsc -b && vite build`,"build:lib":`vite build --mode lib && tsc -p tsconfig.lib.json`,lint:`eslint --max-warnings=0 .`,preview:`vite preview`,storybook:`storybook dev -p 6006`,"build-storybook":`storybook build`,typecheck:`tsc -b`,test:`vitest run`,"test:watch":`vitest`,prepublishOnly:`npm run build:lib`,coverage:`vitest run --coverage --config vitest.coverage.config.ts`,format:`prettier --write .`,"format:check":`prettier --check .`},dependencies:{"@chatscope/chat-ui-kit-react":`^2.1.1`,"@chatscope/chat-ui-kit-styles":`^1.4.0`,"@microlink/react-json-view":`^1.31.40`,dompurify:`^3.4.16`,"highlight.js":`^11.12.0`,katex:`^0.18.7`,marked:`^14.0.0`,mermaid:`^11.17.2`},peerDependencies:{react:`^19`,"react-dom":`^19`},devDependencies:{"@eslint/js":`^10.0.1`,"@storybook/addon-a11y":`^10.6.1`,"@storybook/addon-docs":`^10.6.1`,"@storybook/react-vite":`^10.6.1`,"@testing-library/dom":`^10.4.2`,"@testing-library/jest-dom":`^7.0.1`,"@testing-library/react":`^16.3.3`,"@testing-library/user-event":`^14.6.7`,"@types/node":`^26.6.3`,"@types/react":`^19.3.0`,"@types/react-dom":`^19.3.0`,"@vitejs/plugin-react":`^6.1.1`,"@vitest/coverage-v8":`^5.0.3`,"@vitest/eslint-plugin":`^1.6.27`,bootstrap:`^5.3.8`,"bootstrap-icons":`^1.13.1`,eslint:`^10.11.0`,"eslint-config-prettier":`^10.1.8`,"eslint-plugin-jest-dom":`^5.10.1`,"eslint-plugin-jsx-a11y":`^6.10.2`,"eslint-plugin-react-hooks":`^7.1.1`,"eslint-plugin-react-refresh":`^0.5.7`,"eslint-plugin-storybook":`^10.6.1`,"eslint-plugin-testing-library":`^7.16.2`,globals:`^17.13.0`,jsdom:`^30.1.2`,msw:`^2.15.0`,prettier:`^3.9.9`,react:`^19.3.0`,"react-dom":`^19.3.0`,storybook:`^10.6.1`,typescript:`~6.0.2`,"typescript-eslint":`^8.71.0`,vite:`^8.3.2`,vitest:`^5.0.3`},msw:{workerDirectory:[`.storybook/public`]},overrides:{"eslint-plugin-jsx-a11y":{eslint:`$eslint`}}},Cf=Sf.name,wf=Sf.version,Tf=`[Smarter ${Cf} v${wf}]`,Ef=864e5;function Df(e,t){let n=(t||``).trim().split(`:`)[0].replace(/^\./,``);return!n||n===`None`||e===n||e.endsWith(`.${n}`)}function Of(e,t=null){if(e.value!==null&&e.value!==void 0&&e.value!==``)return e.value;if(!Df(window.location.hostname,e.domain)||!document.cookie)return t;for(let n of document.cookie.split(`;`)){let r=n.trim();if(r.startsWith(`${e.name}=`))return decodeURIComponent(r.substring(e.name.length+1))||t}return t}function kf(e,t){let n=window.location.pathname;if(t==null||t===``){document.cookie=`${e.name}=; path=${n}; SameSite=Lax; expires=${new Date(0).toUTCString()}`;return}let r=new Date(Date.now()+(e.expiration??0)).toUTCString();document.cookie=`${e.name}=${encodeURIComponent(String(t))}; path=${n}; SameSite=Lax; expires=${r}`}function Af(e,t,n,r=null){return{name:e,expiration:t,domain:n??``,value:r}}var jf={INCOMING:`incoming`,OUTGOING:`outgoing`},Mf={SYSTEM:`system`,ASSISTANT:`assistant`,USER:`user`,TOOL:`tool`,SMARTER:`smarter`,SMARTER_ERROR:`smarter_error`},Nf=[Mf.SYSTEM,Mf.ASSISTANT,Mf.USER,Mf.TOOL],Pf=[Mf.SMARTER,Mf.SYSTEM,Mf.TOOL],Ff=`application/json`,If=`text/event-stream`,Lf=class extends Error{status;constructor(e,t){super(e),this.name=`SmarterApiError`,this.status=t}};function Rf(e,t,n){let r=e.endsWith(`/`)?e:`${e}/`,i=new URL(t||``,new URL(r,window.location.href));return n&&i.searchParams.append(`session_key`,n),i.toString()}function zf(e,t){let n={Accept:Ff,"Content-Type":Ff,"X-CSRFToken":Of(e.csrfCookie,``)??``,"X-Smarter-Client":t.smarterClient,"X-Smarter-ClientVersion":t.smarterClientVersion,"X-Smarter-ClientType":`react`};return t.smarterRequestId&&(n[`X-Smarter-RequestId`]=t.smarterRequestId),t.apiKey&&(n.Authorization=`Token ${t.apiKey}`),n}function Bf(e,t){return{method:`POST`,credentials:`include`,mode:`cors`,headers:e,body:JSON.stringify(t)}}async function Vf(e){if(!(e.headers.get(`content-type`)??``).includes(Ff)){let t=await e.text();throw new Lf(`Unexpected response from the Smarter api (http ${e.status}): ${t.slice(0,200)}`,e.status)}return await e.json()}function Hf(e,t){let n=e.error??e.data?.error;if(typeof n==`string`)return n;if(n&&typeof n==`object`){let{message:e,description:t}=n;if(typeof e==`string`)return e;if(typeof t==`string`)return t}return`The Smarter api returned http ${t.status} ${t.statusText}`.trim()}async function Uf(e,t,n){let r=Of(t.sessionCookie,``),i=Bf(zf(t,n),{session_key:r}),a=await fetch(Rf(e,`config/`,r),i),o=await Vf(a);if(!a.ok)throw new Lf(Hf(o,a),a.status);let s=o.data;if(!s||!s.chatbot)throw new Lf(`The Smarter api returned an incomplete configuration.`,a.status);return kf(t.sessionCookie,s.session_key),kf(t.debugCookie,s.debug_mode),s}function Wf(e){let t=e.data?.body;if(typeof t==`string`)try{return JSON.parse(t)}catch{return null}return t&&typeof t==`object`?t:null}function Gf(e){let t=e?.smarter;return Array.isArray(t?.messages)?t.messages:[]}async function Kf(e,t){let n=e.getReader(),r=new TextDecoder,i=``,a=e=>{let n=`message`,r=[];for(let t of e.split(`
|
|
568
|
+
`))t.startsWith(`event:`)?n=t.slice(6).trim():t.startsWith(`data:`)&&r.push(t.slice(5).replace(/^ /,``));r.length>0&&t(n,r.join(`
|
|
569
|
+
`))};for(;;){let{done:e,value:t}=await n.read();i+=r.decode(t,{stream:!e}).replace(/\r\n?/g,`
|
|
570
|
+
`);let o=i.indexOf(`
|
|
571
|
+
|
|
572
|
+
`);for(;o>=0;)a(i.slice(0,o)),i=i.slice(o+2),o=i.indexOf(`
|
|
573
|
+
|
|
574
|
+
`);if(e)break}i.trim()&&a(i)}async function qf(e,t){let n={result:null};if(!e.body)throw new Lf(`The Smarter api returned an empty event stream.`,e.status);if(await Kf(e.body,(e,r)=>{try{e===`progress`?t(JSON.parse(r)):e===`result`&&(n.result=JSON.parse(r))}catch{}}),!n.result)throw new Lf(`The Smarter api's event stream ended without a result.`,e.status);let{status:r,response:i}=n.result;return{json:i??{},status:r??e.status}}function Jf(e){let t=e?.choices,n=Array.isArray(t)?t[0]:void 0;if(n?.finish_reason!==`length`)return null;let r=e?.usage,i=r?.completion_tokens,a=r?.completion_tokens_details?.reasoning_tokens,o=i?` of ${i} completion tokens`:``,s=a?`, ${a} of which it spent reasoning`:``,c=n.message?.content?`so its response is incomplete`:`so its response is empty`;return{role:Mf.SMARTER,content:`The LLM reached this LLMClient's max tokens${o}${s}, ${c}. Raise defaultMaxTokens in the LLMClient's manifest.`}}function Yf(e,t){let n=Wf(e),r=e.data?.statusCode;if(t.status>=200&&t.status<300&&(r===void 0||r===200)&&n){let e=Jf(n);return{messages:e?[...Gf(n),e]:Gf(n),error:null}}let i=n?.error?.message||Hf(e,t),a=Gf(n?.response);return{messages:a.some(e=>e.role===Mf.SMARTER_ERROR)?a:[...a,{role:Mf.SMARTER_ERROR,content:i}],error:i}}async function Xf(e,t,n,r,i){let a=Of(n.sessionCookie,``)||e.session_key,o=zf(n,r);i&&(o.Accept=`${If}, ${Ff}`);let s=Bf(o,{session_key:a,messages:t}),c=await fetch(Rf(e.chatbot.url_chatbot,null,a),s),l=c.headers.get(`content-type`)??``;if(i&&l.includes(If)){let{json:e,status:t}=await qf(c,i);return Yf(e,{status:t,statusText:``})}return Yf(await Vf(c),c)}var Zf=u(((e,t)=>{function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw Error(`map is read-only`)}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw Error(`set is read-only`)}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{let r=e[t],i=typeof r;(i===`object`||i===`function`)&&!Object.isFrozen(r)&&n(r)}),e}var r=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function i(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}function a(e,...t){let n=Object.create(null);for(let t in e)n[t]=e[t];return t.forEach(function(e){for(let t in e)n[t]=e[t]}),n}var o=`</span>`,s=e=>!!e.scope,c=(e,{prefix:t})=>{if(e.startsWith(`language:`))return e.replace(`language:`,`language-`);if(e.includes(`.`)){let n=e.split(`.`);return[`${t}${n.shift()}`,...n.map((e,t)=>`${e}${`_`.repeat(t+1)}`)].join(` `)}return`${t}${e}`},l=class{constructor(e,t){this.buffer=``,this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=i(e)}openNode(e){if(!s(e))return;let t=c(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){s(e)&&(this.buffer+=o)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}},u=(e={})=>{let t={children:[]};return Object.assign(t,e),t},d=class e{constructor(){this.rootNode=u(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){let t=u({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t==`string`?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(t){typeof t!=`string`&&t.children&&(t.children.every(e=>typeof e==`string`)?t.children=[t.children.join(``)]:t.children.forEach(t=>{e._collapse(t)}))}},f=class extends d{constructor(e){super(),this.options=e}addText(e){e!==``&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){let n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new l(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function p(e){return e?typeof e==`string`?e:e.source:null}function m(e){return _(`(?=`,e,`)`)}function h(e){return _(`(?:`,e,`)*`)}function g(e){return _(`(?:`,e,`)?`)}function _(...e){return e.map(e=>p(e)).join(``)}function v(e){let t=e[e.length-1];return typeof t==`object`&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function y(...e){return`(`+(v(e).capture?``:`?:`)+e.map(e=>p(e)).join(`|`)+`)`}function b(e){return RegExp(e.toString()+`|`).exec(``).length-1}function x(e,t){let n=e&&e.exec(t);return n&&n.index===0}var S=new RegExp(y(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function C(e,{joinWith:t}){let n=0;return e.map(e=>{n+=1;let t=n,r=p(e),i=``;for(;r.length>0;){let e=S.exec(r);if(!e){i+=r;break}i+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),e[0][0]===`\\`&&e[1]?i+=`\\`+String(Number(e[1])+t):(i+=e[0],(e[0]===`(`||/^\(\?[<']/.test(e[0]))&&n++)}return i}).map(e=>`(${e})`).join(t)}var w=/\b\B/,T=`[a-zA-Z]\\w*`,E=`[a-zA-Z_]\\w*`,D=`\\b\\d+(\\.\\d+)?`,O=`(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)`,k=`\\b(0b[01]+)`,A=`!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~`,ee=(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=_(t,/.*\b/,e.binary,/\b.*/)),a({scope:`meta`,begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{e.index!==0&&t.ignoreMatch()}},e)},j={begin:`\\\\[\\s\\S]`,relevance:0},te={scope:`string`,begin:`'`,end:`'`,illegal:`\\n`,contains:[j]},M={scope:`string`,begin:`"`,end:`"`,illegal:`\\n`,contains:[j]},ne={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},re=function(e,t,n={}){let r=a({scope:`comment`,begin:e,end:t,contains:[]},n);r.contains.push({scope:`doctag`,begin:`[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)`,end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let i=y(`I`,`a`,`is`,`so`,`us`,`to`,`at`,`if`,`in`,`it`,`on`,/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:_(/[ ]+/,`(`,i,/[.]?[:]?([.][ ]|[ ])/,`){3}`)}),r},ie=re(`//`,`$`),ae=re(`/\\*`,`\\*/`),oe=re(`#`,`$`),N=Object.freeze({__proto__:null,APOS_STRING_MODE:te,BACKSLASH_ESCAPE:j,BINARY_NUMBER_MODE:{scope:`number`,begin:k,relevance:0},BINARY_NUMBER_RE:k,COMMENT:re,C_BLOCK_COMMENT_MODE:ae,C_LINE_COMMENT_MODE:ie,C_NUMBER_MODE:{scope:`number`,begin:O,relevance:0},C_NUMBER_RE:O,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:oe,IDENT_RE:T,MATCH_NOTHING_RE:w,METHOD_GUARD:{begin:`\\.\\s*[a-zA-Z_]\\w*`,relevance:0},NUMBER_MODE:{scope:`number`,begin:D,relevance:0},NUMBER_RE:D,PHRASAL_WORDS_MODE:ne,QUOTE_STRING_MODE:M,REGEXP_MODE:{scope:`regexp`,begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[j,{begin:/\[/,end:/\]/,relevance:0,contains:[j]}]},RE_STARTERS_RE:A,SHEBANG:ee,TITLE_MODE:{scope:`title`,begin:T,relevance:0},UNDERSCORE_IDENT_RE:E,UNDERSCORE_TITLE_MODE:{scope:`title`,begin:E,relevance:0}});function se(e,t){e.input[e.index-1]===`.`&&t.ignoreMatch()}function ce(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function le(e,t){t&&e.beginKeywords&&(e.begin=`\\b(`+e.beginKeywords.split(` `).join(`|`)+`)(?!\\.)(?=\\b|\\s)`,e.__beforeBegin=se,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function ue(e,t){Array.isArray(e.illegal)&&(e.illegal=y(...e.illegal))}function de(e,t){if(e.match){if(e.begin||e.end)throw Error(`begin & end are not supported with match`);e.begin=e.match,delete e.match}}function fe(e,t){e.relevance===void 0&&(e.relevance=1)}var pe=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw Error(`beforeMatch cannot be used with starts`);let n=Object.assign({},e);Object.keys(e).forEach(t=>{delete e[t]}),e.keywords=n.keywords,e.begin=_(n.beforeMatch,m(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},me=[`of`,`and`,`for`,`in`,`not`,`or`,`if`,`then`,`parent`,`list`,`value`],he=`keyword`;function ge(e,t,n=he){let r=Object.create(null);return typeof e==`string`?i(n,e.split(` `)):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(n){Object.assign(r,ge(e[n],t,n))}),r;function i(e,n){t&&(n=n.map(e=>e.toLowerCase())),n.forEach(function(t){let n=t.split(`|`);r[n[0]]=[e,_e(n[0],n[1])]})}}function _e(e,t){return t?Number(t):+!ve(e)}function ve(e){return me.includes(e.toLowerCase())}var ye={},be=e=>{console.error(e)},xe=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Se=(e,t)=>{ye[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),ye[`${e}/${t}`]=!0)},Ce=Error();function we(e,t,{key:n}){let r=0,i=e[n],a={},o={};for(let e=1;e<=t.length;e++)o[e+r]=i[e],a[e+r]=!0,r+=b(t[e-1]);e[n]=o,e[n]._emit=a,e[n]._multi=!0}function Te(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw be(`skip, excludeBegin, returnBegin not compatible with beginScope: {}`),Ce;if(typeof e.beginScope!=`object`||e.beginScope===null)throw be(`beginScope must be object`),Ce;we(e,e.begin,{key:`beginScope`}),e.begin=C(e.begin,{joinWith:``})}}function Ee(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw be(`skip, excludeEnd, returnEnd not compatible with endScope: {}`),Ce;if(typeof e.endScope!=`object`||e.endScope===null)throw be(`endScope must be object`),Ce;we(e,e.end,{key:`endScope`}),e.end=C(e.end,{joinWith:``})}}function De(e){e.scope&&typeof e.scope==`object`&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Oe(e){De(e),typeof e.beginScope==`string`&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope==`string`&&(e.endScope={_wrap:e.endScope}),Te(e),Ee(e)}function ke(e){function t(t,n){return new RegExp(p(t),`m`+(e.case_insensitive?`i`:``)+(e.unicodeRegex?`u`:``)+(n?`g`:``))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=b(e)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);let e=this.regexes.map(e=>e[1]);this.matcherRe=t(C(e,{joinWith:`|`}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;let t=this.matcherRe.exec(e);if(!t)return null;let n=t.findIndex((e,t)=>t>0&&e!==void 0),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];let t=new n;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),t.type===`begin`&&this.count++}exec(e){let t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition()&&!(n&&n.index===this.lastIndex)){let t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}function i(e){let t=new r;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:`begin`})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:`end`}),e.illegal&&t.addRule(e.illegal,{type:`illegal`}),t}function o(n,r){let a=n;if(n.isCompiled)return a;[ce,de,Oe,pe].forEach(e=>e(n,r)),e.compilerExtensions.forEach(e=>e(n,r)),n.__beforeBegin=null,[le,ue,fe].forEach(e=>e(n,r)),n.isCompiled=!0;let s=null;return typeof n.keywords==`object`&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),s=n.keywords.$pattern,delete n.keywords.$pattern),s||=/\w+/,n.keywords&&=ge(n.keywords,e.case_insensitive),a.keywordPatternRe=t(s,!0),r&&(n.begin||=/\B|\b/,a.beginRe=t(a.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(a.endRe=t(a.end)),a.terminatorEnd=p(a.end)||``,n.endsWithParent&&r.terminatorEnd&&(a.terminatorEnd+=(n.end?`|`:``)+r.terminatorEnd)),n.illegal&&(a.illegalRe=t(n.illegal)),n.contains||=[],n.contains=[].concat(...n.contains.map(function(e){return je(e===`self`?n:e)})),n.contains.forEach(function(e){o(e,a)}),n.starts&&o(n.starts,r),a.matcher=i(a),a}if(e.compilerExtensions||=[],e.contains&&e.contains.includes(`self`))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=a(e.classNameAliases||{}),o(e)}function Ae(e){return e?e.endsWithParent||Ae(e.starts):!1}function je(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return a(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Ae(e)?a(e,{starts:e.starts?a(e.starts):null}):Object.isFrozen(e)?a(e):e}var Me=`11.12.0`,Ne=class extends Error{constructor(e,t){super(e),this.name=`HTMLInjectionError`,this.html=t}},Pe=i,Fe=a,Ie=Symbol(`nomatch`),Le=7,Re=function(e){let t=Object.create(null),i=Object.create(null),a=[],o=!0,s=`Could not find the language '{}', did you forget to load/include a language module?`,c={disableAutodetect:!0,name:`Plain text`,contains:[]},l={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:`hljs-`,cssSelector:`pre code`,languages:null,__emitter:f};function u(e){return l.noHighlightRe.test(e)}function d(e){let t=e.className+` `;t+=e.parentNode?e.parentNode.className:``;let n=l.languageDetectRe.exec(t);if(n){let t=te(n[1]);return t||(xe(s.replace(`{}`,n[1])),xe(`Falling back to no-highlight mode for this block.`,e)),t?n[1]:`no-highlight`}return t.split(/\s+/).find(e=>u(e)||te(e))}function p(e,t,n){let r=``,i=``;typeof t==`object`?(r=e,n=t.ignoreIllegals,i=t.language):(Se(`10.7.0`,`highlight(lang, code, ...args) has been deprecated.`),Se(`10.7.0`,`Please use highlight(code, options) instead.
|
|
575
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),i=e,r=t),n===void 0&&(n=!0);let a={code:r,language:i};oe(`before:highlight`,a);let o=a.result?a.result:v(a.language,a.code,n);return o.code=a.code,oe(`after:highlight`,o),o}function v(e,n,i,a){let c=Object.create(null);function u(e,t){return e.keywords[t]}function d(){if(!A.keywords){j.addText(M);return}let e=0;A.keywordPatternRe.lastIndex=0;let t=A.keywordPatternRe.exec(M),n=``;for(;t;){n+=M.substring(e,t.index);let r=D.case_insensitive?t[0].toLowerCase():t[0],i=u(A,r);if(i){let[e,a]=i;if(j.addText(n),n=``,c[r]=(c[r]||0)+1,c[r]<=Le&&(ne+=a),e.startsWith(`_`))n+=t[0];else{let n=D.classNameAliases[e]||e;m(t[0],n)}}else n+=t[0];e=A.keywordPatternRe.lastIndex,t=A.keywordPatternRe.exec(M)}n+=M.substring(e),j.addText(n)}function f(){if(M===``)return;let e=null;if(typeof A.subLanguage==`string`){if(!t[A.subLanguage]){j.addText(M);return}e=v(A.subLanguage,M,!0,ee[A.subLanguage]),ee[A.subLanguage]=e._top}else e=S(M,A.subLanguage.length?A.subLanguage:null);A.relevance>0&&(ne+=e.relevance),j.__addSublanguage(e._emitter,e.language)}function p(){A.subLanguage==null?d():f(),M=``}function m(e,t){e!==``&&(j.startScope(t),j.addText(e),j.endScope())}function h(e,t){let n=1,r=t.length-1;for(;n<=r;){if(!e._emit[n]){n++;continue}let r=D.classNameAliases[e[n]]||e[n],i=t[n];r?m(i,r):(M=i,d(),M=``),n++}}function g(e,t){return e.scope&&typeof e.scope==`string`&&j.openNode(D.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(m(M,D.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),M=``):e.beginScope._multi&&(h(e.beginScope,t),M=``)),A=Object.create(e,{parent:{value:A}}),A}function _(e,t,n){let i=x(e.endRe,n);if(i){if(e[`on:end`]){let n=new r(e);e[`on:end`](t,n),n.isMatchIgnored&&(i=!1)}if(i){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return _(e.parent,t,n)}function y(e){return A.matcher.regexIndex===0?(M+=e[0],1):(ae=!0,0)}function b(e){let t=e[0],n=e.rule,i=new r(n),a=[n.__beforeBegin,n[`on:begin`]];for(let n of a)if(n&&(n(e,i),i.isMatchIgnored))return y(t);return n.skip?M+=t:(n.excludeBegin&&(M+=t),p(),!n.returnBegin&&!n.excludeBegin&&(M=t)),g(n,e),n.returnBegin?0:t.length}function C(e){let t=e[0],r=n.substring(e.index),i=_(A,e,r);if(!i)return Ie;let a=A;A.endScope&&A.endScope._wrap?(p(),m(t,A.endScope._wrap)):A.endScope&&A.endScope._multi?(p(),h(A.endScope,e)):a.skip?M+=t:(a.returnEnd||a.excludeEnd||(M+=t),p(),a.excludeEnd&&(M=t));do A.scope&&j.closeNode(),!A.skip&&!A.subLanguage&&(ne+=A.relevance),A=A.parent;while(A!==i.parent);return i.starts&&g(i.starts,e),a.returnEnd?0:t.length}function w(){let e=[];for(let t=A;t!==D;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach(e=>j.openNode(e))}let T={};function E(t,r){let a=r&&r[0];if(M+=t,a==null)return p(),0;if(T.type===`begin`&&r.type===`end`&&T.index===r.index&&a===``){if(M+=n.slice(r.index,r.index+1),!o){let t=Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=T.rule,t}return 1}if(T=r,r.type===`begin`)return b(r);if(r.type===`illegal`&&!i){let e=Error(`Illegal lexeme "`+a+`" for mode "`+(A.scope||`<unnamed>`)+`"`);throw e.mode=A,e}if(r.type===`end`){let e=C(r);if(e!==Ie)return e}if(r.type===`illegal`&&a===``)return r.index===n.length||(M+=`
|
|
576
|
+
`),1;if(ie>1e5&&ie>r.index*3)throw Error(`potential infinite loop, way more iterations than matches`);return M+=a,a.length}let D=te(e);if(!D)throw be(s.replace(`{}`,e)),Error(`Unknown language: "`+e+`"`);let O=ke(D),k=``,A=a||O,ee={},j=new l.__emitter(l);w();let M=``,ne=0,re=0,ie=0,ae=!1;try{if(D.__emitTokens)D.__emitTokens(n,j);else{for(A.matcher.considerAll();;){ie++,ae?ae=!1:A.matcher.considerAll(),A.matcher.lastIndex=re;let e=A.matcher.exec(n);if(!e)break;let t=E(n.substring(re,e.index),e);re=e.index+t}E(n.substring(re))}return j.finalize(),k=j.toHTML(),{language:e,value:k,relevance:ne,illegal:!1,_emitter:j,_top:A}}catch(t){if(t.message&&t.message.includes(`Illegal`))return{language:e,value:Pe(n),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:re,context:n.slice(re-100,re+100),mode:t.mode,resultSoFar:k},_emitter:j};if(o)return{language:e,value:Pe(n),illegal:!1,relevance:0,errorRaised:t,_emitter:j,_top:A};throw t}}function b(e){let t={value:Pe(e),illegal:!1,relevance:0,_top:c,_emitter:new l.__emitter(l)};return t._emitter.addText(e),t}function S(e,n){n=n||l.languages||Object.keys(t);let r=b(e),i=n.filter(te).filter(ne).map(t=>v(t,e,!1));i.unshift(r);let[a,o]=i.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(te(e.language).supersetOf===t.language)return 1;if(te(t.language).supersetOf===e.language)return-1}return 0}),s=a;return s.secondBest=o,s}function C(e,t,n){let r=t&&i[t]||n;e.classList.add(`hljs`),e.classList.add(`language-${r}`)}function w(e){let t=null,n=d(e);if(u(n))return;if(oe(`before:highlightElement`,{el:e,language:n}),e.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e);return}if(e.children.length>0&&(l.ignoreUnescapedHTML||(console.warn(`One of your code blocks includes unescaped HTML. This is a potentially serious security risk.`),console.warn(`https://github.com/highlightjs/highlight.js/wiki/security`),console.warn(`The element with unescaped HTML:`),console.warn(e)),l.throwUnescapedHTML))throw new Ne(`One of your code blocks includes unescaped HTML.`,e.innerHTML);t=e;let r=t.textContent,i=n?p(r,{language:n,ignoreIllegals:!0}):S(r);e.innerHTML=i.value,e.dataset.highlighted=`yes`,C(e,n,i.language),e.result={language:i.language,re:i.relevance,relevance:i.relevance},i.secondBest&&(e.secondBest={language:i.secondBest.language,relevance:i.secondBest.relevance}),oe(`after:highlightElement`,{el:e,result:i,text:r})}function T(e){l=Fe(l,e)}let E=()=>{k(),Se(`10.6.0`,`initHighlighting() deprecated. Use highlightAll() now.`)};function D(){k(),Se(`10.6.0`,`initHighlightingOnLoad() deprecated. Use highlightAll() now.`)}let O=!1;function k(){function e(){k()}if(document.readyState===`loading`){O||window.addEventListener(`DOMContentLoaded`,e,!1),O=!0;return}document.querySelectorAll(l.cssSelector).forEach(w)}function A(n,r){let i=null;try{i=r(e)}catch(e){if(be(`Language definition for '{}' could not be registered.`.replace(`{}`,n)),o)be(e);else throw e;i=c}i.name||(i.name=n),t[n]=i,i.rawDefinition=r.bind(null,e),i.aliases&&M(i.aliases,{languageName:n})}function ee(e){delete t[e];for(let t of Object.keys(i))i[t]===e&&delete i[t]}function j(){return Object.keys(t)}function te(e){return e=(e||``).toLowerCase(),t[e]||t[i[e]]}function M(e,{languageName:t}){typeof e==`string`&&(e=[e]),e.forEach(e=>{i[e.toLowerCase()]=t})}function ne(e){let t=te(e);return t&&!t.disableAutodetect}function re(e){e[`before:highlightBlock`]&&!e[`before:highlightElement`]&&(e[`before:highlightElement`]=t=>{e[`before:highlightBlock`](Object.assign({block:t.el},t))}),e[`after:highlightBlock`]&&!e[`after:highlightElement`]&&(e[`after:highlightElement`]=t=>{e[`after:highlightBlock`](Object.assign({block:t.el},t))})}function ie(e){re(e),a.push(e)}function ae(e){let t=a.indexOf(e);t!==-1&&a.splice(t,1)}function oe(e,t){let n=e;a.forEach(function(e){e[n]&&e[n](t)})}function se(e){return Se(`10.7.0`,`highlightBlock will be removed entirely in v12.0`),Se(`10.7.0`,`Please use highlightElement now.`),w(e)}Object.assign(e,{highlight:p,highlightAuto:S,highlightAll:k,highlightElement:w,highlightBlock:se,configure:T,initHighlighting:E,initHighlightingOnLoad:D,registerLanguage:A,unregisterLanguage:ee,listLanguages:j,getLanguage:te,registerAliases:M,autoDetection:ne,inherit:Fe,addPlugin:ie,removePlugin:ae}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=Me,e.regex={concat:_,lookahead:m,either:y,optional:g,anyNumberOfTimes:h};for(let e in N)typeof N[e]==`object`&&n(N[e]);return Object.assign(e,N),e},ze=Re({});ze.newInstance=()=>Re({}),t.exports=ze,ze.HighlightJS=ze,ze.default=ze})),Qf=u(((e,t)=>{function n(e){let t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:`symbol`,begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:`keyword`,begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(a,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:`string`}),c=e.inherit(e.QUOTE_STRING_MODE,{className:`string`}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:`attr`,begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:`string`,endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:`HTML, XML`,aliases:[`html`,`xhtml`,`rss`,`atom`,`xjb`,`xsd`,`xsl`,`plist`,`wsf`,`svg`],case_insensitive:!0,unicodeRegex:!0,contains:[{className:`meta`,begin:/<![a-z]/,end:/>/,relevance:10,contains:[a,c,s,o,{begin:/\[/,end:/\]/,contains:[{className:`meta`,begin:/<![a-z]/,end:/>/,contains:[a,o,c,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:`meta`,end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:`tag`,begin:/<style(?=\s|>)/,end:/>/,keywords:{name:`style`},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:`css`}},{className:`tag`,begin:/<script(?=\s|>)/,end:/>/,keywords:{name:`script`},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:`javascript`}},{className:`tag`,begin:/<>|<\/>/},{className:`tag`,begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:`name`,begin:n,relevance:0,starts:l}]},{className:`tag`,begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:`name`,begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}t.exports=n})),$f=u(((e,t)=>{function n(e){let t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:[`self`,{begin:/:-/,contains:[n]}]};Object.assign(n,{className:`variable`,variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,`(?![\\w\\d])(?![$])`)},r]});let i={className:`subst`,begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},a=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:`comment`}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:`string`})]}},s={className:`string`,begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(s);let c={match:/\\"/},l={className:`string`,begin:/'/,end:/'/},u={match:/\\'/},d={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:`number`},e.NUMBER_MODE,n]},f=e.SHEBANG({binary:`(${[`fish`,`bash`,`zsh`,`sh`,`csh`,`ksh`,`tcsh`,`dash`,`scsh`].join(`|`)})`,relevance:10}),p={className:`function`,begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},m=[`if`,`then`,`else`,`elif`,`fi`,`time`,`for`,`while`,`until`,`in`,`do`,`done`,`case`,`esac`,`coproc`,`function`,`select`],h=[`true`,`false`],g={match:/(\/[a-z._-]+)+/},_=[`break`,`cd`,`continue`,`eval`,`exec`,`exit`,`export`,`getopts`,`hash`,`pwd`,`readonly`,`return`,`shift`,`test`,`times`,`trap`,`umask`,`unset`],v=[`alias`,`bind`,`builtin`,`caller`,`command`,`declare`,`echo`,`enable`,`help`,`let`,`local`,`logout`,`mapfile`,`printf`,`read`,`readarray`,`source`,`sudo`,`type`,`typeset`,`ulimit`,`unalias`],y=`autoload.bg.bindkey.bye.cap.chdir.clone.comparguments.compcall.compctl.compdescribe.compfiles.compgroups.compquote.comptags.comptry.compvalues.dirs.disable.disown.echotc.echoti.emulate.fc.fg.float.functions.getcap.getln.history.integer.jobs.kill.limit.log.noglob.popd.print.pushd.pushln.rehash.sched.setcap.setopt.stat.suspend.ttyctl.unfunction.unhash.unlimit.unsetopt.vared.wait.whence.where.which.zcompile.zformat.zftp.zle.zmodload.zparseopts.zprof.zpty.zregexparse.zsocket.zstyle.ztcp`.split(`.`),b=`chcon.chgrp.chown.chmod.cp.dd.df.dir.dircolors.ln.ls.mkdir.mkfifo.mknod.mktemp.mv.realpath.rm.rmdir.shred.sync.touch.truncate.vdir.b2sum.base32.base64.cat.cksum.comm.csplit.cut.expand.fmt.fold.head.join.md5sum.nl.numfmt.od.paste.ptx.pr.sha1sum.sha224sum.sha256sum.sha384sum.sha512sum.shuf.sort.split.sum.tac.tail.tr.tsort.unexpand.uniq.wc.arch.basename.chroot.date.dirname.du.echo.env.expr.factor.groups.hostid.id.link.logname.nice.nohup.nproc.pathchk.pinky.printenv.printf.pwd.readlink.runcon.seq.sleep.stat.stdbuf.stty.tee.test.timeout.tty.uname.unlink.uptime.users.who.whoami.yes`.split(`.`);return{name:`Bash`,aliases:[`sh`,`zsh`],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:m,literal:h,built_in:[..._,...v,`set`,`shopt`,...y,...b]},contains:[f,e.SHEBANG(),p,d,a,o,g,s,c,l,u,n]}}t.exports=n})),ep=u(((e,t)=>{function n(e){let t=e.regex,n=e.COMMENT(`//`,`$`,{contains:[{begin:/\\\n/}]}),r=`[a-zA-Z_]\\w*::`,i=`(decltype\\(auto\\)|`+t.optional(r)+`[a-zA-Z_]\\w*`+t.optional(`<[^<>]+>`)+`)`,a={className:`type`,variants:[{begin:`\\b[a-z\\d_]*_t\\b`},{match:t.concat(/\batomic_/,t.either(`bool`,`char`,`schar`,`uchar`,`short`,`ushort`,`int`,`uint`,`long`,`ulong`,`llong`,`ullong`,`char16_t`,`char32_t`,`wchar_t`,`int_least8_t`,`uint_least8_t`,`int_least16_t`,`uint_least16_t`,`int_least32_t`,`uint_least32_t`,`int_least64_t`,`uint_least64_t`,`int_fast8_t`,`uint_fast8_t`,`int_fast16_t`,`uint_fast16_t`,`int_fast32_t`,`uint_fast32_t`,`int_fast64_t`,`uint_fast64_t`,`intptr_t`,`uintptr_t`,`size_t`,`ptrdiff_t`,`intmax_t`,`uintmax_t`),/\b/)}]},o={className:`string`,variants:[{begin:`(u8?|U|L)?"`,end:`"`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE]},{begin:`(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)`,end:`'`,illegal:`.`},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},s={className:`number`,variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},c={scope:`meta`,begin:/#\s*include\b/,end:/$/,keywords:{keyword:`include`},contains:[{begin:/\\\n/},o,{scope:`string`,begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},l={className:`meta`,begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:`if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include`},contains:[{begin:/\\\n/,relevance:0},e.inherit(o,{className:`string`}),n,e.C_BLOCK_COMMENT_MODE]},u=[c,l],d={className:`title`,begin:t.optional(r)+e.IDENT_RE,relevance:0},f=t.optional(r)+e.IDENT_RE+`\\s*\\(`,p={keyword:`asm.auto.break.case.continue.default.do.else.enum.extern.for.fortran.goto.if.inline.register.restrict.return.sizeof.typeof.typeof_unqual.struct.switch.typedef.union.volatile.while._Alignas._Alignof._Atomic._Generic._Noreturn._Static_assert._Thread_local.alignas.alignof.noreturn.static_assert.thread_local._Pragma`.split(`.`),type:`float.double.signed.unsigned.int.short.long.char.void._Bool._BitInt._Complex._Imaginary._Decimal32._Decimal64._Decimal96._Decimal128._Decimal64x._Decimal128x._Float16._Float32._Float64._Float128._Float32x._Float64x._Float128x.const.static.constexpr.complex.bool.imaginary`.split(`.`),literal:`true false NULL`,built_in:`std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr`},m=[...u,a,n,e.C_BLOCK_COMMENT_MODE,s,o],h={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:`new throw return else`,end:/;/}],keywords:p,contains:m.concat([{begin:/\(/,end:/\)/,keywords:p,contains:m.concat([`self`]),relevance:0}]),relevance:0},g={begin:`(`+i+`[\\*&\\s]+){1,12}`+f,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:p,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:`decltype\\(auto\\)`,keywords:p,relevance:0},{begin:f,returnBegin:!0,contains:[e.inherit(d,{className:`title.function`})],relevance:0},{relevance:0,match:/,/},{className:`params`,begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,o,s,a,{begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:[`self`,n,e.C_BLOCK_COMMENT_MODE,o,s,a]}]},a,n,e.C_BLOCK_COMMENT_MODE,...u]};return{name:`C`,aliases:[`h`],keywords:p,disableAutodetect:!0,illegal:`</`,contains:[].concat(h,g,m,[...u,{begin:e.IDENT_RE+`::`,keywords:p},{className:`class`,beginKeywords:`enum class struct union`,end:/[{;:<>=]/,contains:[{beginKeywords:`final class struct`},e.TITLE_MODE]}]),exports:{preprocessor:l,strings:o,keywords:p}}}t.exports=n})),tp=u(((e,t)=>{function n(e){let t=e.regex,n=e.COMMENT(`//`,`$`,{contains:[{begin:/\\\n/}]}),r=`[a-zA-Z_]\\w*::`,i=`(?!struct)(decltype\\(auto\\)|`+t.optional(r)+`[a-zA-Z_]\\w*`+t.optional(`<[^<>]+>`)+`)`,a={className:`type`,begin:`\\b[a-z\\d_]*_t\\b`},o={className:`string`,variants:[{begin:`(u8?|U|L)?"`,end:`"`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE]},{begin:`(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)`,end:`'`,illegal:`.`},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,end:/\)([^()\\\s"]{0,16})"/})]},s={className:`number`,variants:[{begin:`[+-]?(?:(?:\\b[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|\\b[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|\\b0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)`},{begin:`[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)`}],relevance:0},c=[{scope:`meta`,begin:/#\s*include\b/,end:/$/,keywords:{keyword:`include`},contains:[{begin:/\\\n/},o,{scope:`string`,begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},{className:`meta`,begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:`if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include`},contains:[{begin:/\\\n/,relevance:0},e.inherit(o,{className:`string`}),n,e.C_BLOCK_COMMENT_MODE]}],l={className:`title`,begin:t.optional(r)+e.IDENT_RE,relevance:0},u=t.optional(r)+e.IDENT_RE+`\\s*\\(`,d=`alignas.alignof.and.and_eq.asm.atomic_cancel.atomic_commit.atomic_noexcept.auto.bitand.bitor.break.case.catch.class.co_await.co_return.co_yield.compl.concept.const_cast|10.consteval.constexpr.constinit.continue.decltype.default.delete.do.dynamic_cast|10.else.enum.explicit.export.extern.false.final.for.friend.goto.if.import.inline.module.mutable.namespace.new.noexcept.not.not_eq.nullptr.operator.or.or_eq.override.private.protected.public.reflexpr.register.reinterpret_cast|10.requires.return.sizeof.static_assert.static_cast|10.struct.switch.synchronized.template.this.thread_local.throw.transaction_safe.transaction_safe_dynamic.true.try.typedef.typeid.typename.union.using.virtual.volatile.while.xor.xor_eq`.split(`.`),f=[`bool`,`char`,`char16_t`,`char32_t`,`char8_t`,`double`,`float`,`int`,`long`,`short`,`void`,`wchar_t`,`unsigned`,`signed`,`const`,`static`],p=`any.auto_ptr.barrier.binary_semaphore.bitset.complex.condition_variable.condition_variable_any.counting_semaphore.deque.false_type.flat_map.flat_set.future.imaginary.initializer_list.istringstream.jthread.latch.lock_guard.multimap.multiset.mutex.optional.ostringstream.packaged_task.pair.promise.priority_queue.queue.recursive_mutex.recursive_timed_mutex.scoped_lock.set.shared_future.shared_lock.shared_mutex.shared_timed_mutex.shared_ptr.stack.string_view.stringstream.timed_mutex.thread.true_type.tuple.unique_lock.unique_ptr.unordered_map.unordered_multimap.unordered_multiset.unordered_set.variant.vector.weak_ptr.wstring.wstring_view`.split(`.`),m=`abort.abs.acos.apply.as_const.asin.atan.atan2.calloc.ceil.cerr.cin.clog.cos.cosh.cout.declval.endl.exchange.exit.exp.fabs.floor.fmod.forward.fprintf.fputs.free.frexp.fscanf.future.invoke.isalnum.isalpha.iscntrl.isdigit.isgraph.islower.isprint.ispunct.isspace.isupper.isxdigit.labs.launder.ldexp.log.log10.make_pair.make_shared.make_shared_for_overwrite.make_tuple.make_unique.malloc.memchr.memcmp.memcpy.memset.modf.move.pow.printf.putchar.puts.realloc.scanf.sin.sinh.snprintf.sprintf.sqrt.sscanf.std.stderr.stdin.stdout.strcat.strchr.strcmp.strcpy.strcspn.strlen.strncat.strncmp.strncpy.strpbrk.strrchr.strspn.strstr.swap.tan.tanh.terminate.to_underlying.tolower.toupper.vfprintf.visit.vprintf.vsprintf`.split(`.`),h={type:f,keyword:d,literal:[`NULL`,`false`,`nullopt`,`nullptr`,`true`],built_in:[`_Pragma`],_type_hints:p},g={className:`function.dispatch`,relevance:0,keywords:{_hint:m},begin:t.concat(/\b/,`(?!${d.join(`|`)})`,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},_=[g,...c,a,n,e.C_BLOCK_COMMENT_MODE,s,o],v={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:`new throw return else`,end:/;/}],keywords:h,contains:_.concat([{begin:/\(/,end:/\)/,keywords:h,contains:_.concat([`self`]),relevance:0}]),relevance:0},y={className:`function`,begin:`(`+i+`[\\*&\\s]+){1,12}`+u,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:h,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:`decltype\\(auto\\)`,keywords:h,relevance:0},{begin:u,returnBegin:!0,contains:[l],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[o,s]},{relevance:0,match:/,/},{className:`params`,begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,o,s,a,{begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:[`self`,n,e.C_BLOCK_COMMENT_MODE,o,s,a]}]},a,n,e.C_BLOCK_COMMENT_MODE,...c]};return{name:`C++`,aliases:[`cc`,`c++`,`h++`,`hpp`,`hh`,`hxx`,`cxx`],keywords:h,illegal:`</`,classNameAliases:{"function.dispatch":`built_in`},contains:[].concat(v,y,g,_,[...c,{begin:`\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)`,end:`>`,keywords:h,contains:[`self`,a]},{begin:e.IDENT_RE+`::`,keywords:h},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:`keyword`,3:`title.class`}}])}}t.exports=n})),np=u(((e,t)=>{function n(e){let t=[`bool`,`byte`,`char`,`decimal`,`delegate`,`double`,`dynamic`,`enum`,`float`,`int`,`long`,`nint`,`nuint`,`object`,`sbyte`,`short`,`string`,`ulong`,`uint`,`ushort`],n=[`public`,`private`,`protected`,`static`,`internal`,`protected`,`abstract`,`async`,`extern`,`override`,`unsafe`,`virtual`,`new`,`sealed`,`partial`],r={keyword:`abstract.as.base.break.case.catch.class.const.continue.do.else.event.explicit.extern.finally.fixed.for.foreach.goto.if.implicit.in.interface.internal.is.lock.namespace.new.operator.out.override.params.private.protected.public.readonly.record.ref.return.scoped.sealed.sizeof.stackalloc.static.struct.switch.this.throw.try.typeof.unchecked.unsafe.using.virtual.void.volatile.while`.split(`.`).concat(`add.alias.and.ascending.args.async.await.by.descending.dynamic.equals.file.from.get.global.group.init.into.join.let.nameof.not.notnull.on.or.orderby.partial.record.remove.required.scoped.select.set.unmanaged.value|0.var.when.where.with.yield`.split(`.`)),built_in:t,literal:[`default`,`false`,`null`,`true`]},i=e.inherit(e.TITLE_MODE,{begin:`[a-zA-Z](\\.?\\w)*`}),a=`([uU][lL]?|[lL][uU]?)?`,o={className:`number`,variants:[{begin:`\\b0[bB]_*[01](_*[01])*`+a},{begin:`(-?)\\b0[xX]_*[a-fA-F0-9](_*[a-fA-F0-9])*`+a},{begin:`(-?)(\\b\\d(_*\\d)*(\\.(\\d(_*\\d)*)?)?|\\.\\d(_*\\d)*)([eE][-+]?\\d(_*\\d)*)?([fFdDmM]|[uU][lL]?|[lL][uU]?)?`}],relevance:0},s={className:`string`,begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},c={className:`string`,begin:`@"`,end:`"`,contains:[{begin:`""`}]},l=e.inherit(c,{illegal:/\n/}),u={className:`subst`,begin:/\{/,end:/\}/,keywords:r},d=e.inherit(u,{illegal:/\n/}),f={className:`string`,begin:/\$"/,end:`"`,illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,d]},p={className:`string`,begin:/\$@"/,end:`"`,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:`""`},u]},m=e.inherit(p,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:`""`},d]});u.contains=[p,f,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,e.C_BLOCK_COMMENT_MODE],d.contains=[m,f,l,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];let h={variants:[s,p,f,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},g={begin:`<`,end:`>`,contains:[{beginKeywords:`in out`},i]},_=e.IDENT_RE+`(<`+e.IDENT_RE+`(\\s*,\\s*`+e.IDENT_RE+`)*>)?(\\[\\])?`,v={begin:`@`+e.IDENT_RE,relevance:0};return{name:`C#`,aliases:[`cs`,`c#`],keywords:r,illegal:/::/,contains:[e.COMMENT(`///`,`$`,{returnBegin:!0,contains:[{className:`doctag`,variants:[{begin:`///`,relevance:0},{begin:`<!--|-->`},{begin:`</?`,end:`>`}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`meta`,begin:`#`,end:`$`,keywords:{keyword:`if else elif endif define undef warning error line region endregion pragma checksum`}},h,o,{beginKeywords:`class interface`,relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:`where class`},i,g,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:`namespace`,relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[i,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:`record`,relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[i,g,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:`meta`,begin:`^\\s*\\[(?=[\\w])`,excludeBegin:!0,end:`\\]`,excludeEnd:!0,contains:[{className:`string`,begin:/"/,end:/"/}]},{beginKeywords:`new return throw await else`,relevance:0},{className:`function`,begin:`(`+_+`\\s+)+`+e.IDENT_RE+`\\s*(<[^=]+>\\s*)?\\(`,returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:r,contains:[{beginKeywords:n.join(` `),relevance:0},{begin:e.IDENT_RE+`\\s*(<[^=]+>\\s*)?\\(`,returnBegin:!0,contains:[e.TITLE_MODE,g],relevance:0},{match:/\(\)/},{className:`params`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,relevance:0,contains:[h,o,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},v]}}t.exports=n})),rp=u(((e,t)=>{var n=e=>({IMPORTANT:{scope:`meta`,begin:`!important`},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:`number`,begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:`number`,begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:`built_in`,begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:`selector-attr`,begin:/\[/,end:/\]/,illegal:`$`,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:`number`,begin:e.NUMBER_RE+`(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?`,relevance:0},CSS_VARIABLE:{className:`attr`,begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),r=`a.abbr.address.article.aside.audio.b.blockquote.body.button.canvas.caption.cite.code.dd.del.details.dfn.div.dl.dt.em.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.html.i.iframe.img.input.ins.kbd.label.legend.li.main.mark.menu.nav.object.ol.optgroup.option.p.picture.q.quote.samp.section.select.source.span.strong.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.ul.var.video`.split(`.`),i=`defs.g.marker.mask.pattern.svg.switch.symbol.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feFlood.feGaussianBlur.feImage.feMerge.feMorphology.feOffset.feSpecularLighting.feTile.feTurbulence.linearGradient.radialGradient.stop.circle.ellipse.image.line.path.polygon.polyline.rect.text.use.textPath.tspan.foreignObject.clipPath`.split(`.`),a=[...r,...i],o=`any-hover.any-pointer.aspect-ratio.color.color-gamut.color-index.device-aspect-ratio.device-height.device-width.display-mode.forced-colors.grid.height.hover.inverted-colors.monochrome.orientation.overflow-block.overflow-inline.pointer.prefers-color-scheme.prefers-contrast.prefers-reduced-motion.prefers-reduced-transparency.resolution.scan.scripting.update.width.min-width.max-width.min-height.max-height`.split(`.`).sort().reverse(),s=`active.any-link.blank.checked.current.default.defined.dir.disabled.drop.empty.enabled.first.first-child.first-of-type.fullscreen.future.focus.focus-visible.focus-within.has.host.host-context.hover.indeterminate.in-range.invalid.is.lang.last-child.last-of-type.left.link.local-link.not.nth-child.nth-col.nth-last-child.nth-last-col.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.past.placeholder-shown.read-only.read-write.required.right.root.scope.target.target-within.user-invalid.valid.visited.where`.split(`.`).sort().reverse(),c=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),l=`accent-color.align-content.align-items.align-self.alignment-baseline.all.anchor-name.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.appearance.aspect-ratio.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.block-size.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-align.box-decoration-break.box-direction.box-flex.box-flex-group.box-lines.box-ordinal-group.box-orient.box-pack.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.corner-bottom-left-shape.corner-bottom-right-shape.corner-shape.corner-top-left-shape.corner-top-right-shape.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.cx.cy.direction.display.dominant-baseline.empty-cells.enable-background.field-sizing.fill.fill-opacity.fill-rule.filter.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.flood-color.flood-opacity.flow.font.font-display.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-smooth.font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphenate-character.hyphenate-limit-chars.hyphens.icon.image-orientation.image-rendering.image-resolution.ime-mode.initial-letter.initial-letter-align.inline-size.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.kerning.left.letter-spacing.lighting-color.line-break.line-height.line-height-step.list-style.list-style-image.list-style-position.list-style-type.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.margin-trim.marker.marker-end.marker-mid.marker-start.marks.mask.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.masonry-auto-flow.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.nav-down.nav-index.nav-left.nav-right.nav-up.none.normal.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overlay.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.paint-order.pause.pause-after.pause-before.perspective.perspective-origin.place-content.place-items.place-self.pointer-events.position.position-anchor.position-visibility.print-color-adjust.quotes.r.resize.rest.rest-after.rest-before.right.rotate.row-gap.ruby-align.ruby-position.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.scrollbar-color.scrollbar-gutter.scrollbar-width.shape-image-threshold.shape-margin.shape-outside.shape-rendering.speak.speak-as.src.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.table-layout.text-align.text-align-all.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-size-adjust.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.timeline-scope.top.touch-action.transform.transform-box.transform-origin.transform-style.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.unicode-range.user-modify.user-select.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.white-space.white-space-collapse.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.x.y.z-index.zoom`.split(`.`).sort().reverse();function u(e){let t=e.regex,r=n(e),i={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},u=/@-?\w[\w]*(-\w+)*/,d=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:`CSS`,case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:`from to`},classNameAliases:{keyframePosition:`selector-tag`},contains:[r.BLOCK_COMMENT,i,r.CSS_NUMBER_MODE,{className:`selector-id`,begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:`selector-class`,begin:`\\.[a-zA-Z-][a-zA-Z0-9_-]*`,relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:`selector-pseudo`,variants:[{begin:`:(`+s.join(`|`)+`)`},{begin:`:(:)?(`+c.join(`|`)+`)`}]},r.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+l.join(`|`)+`)\\b`},{begin:/:/,end:/[;}{]/,contains:[r.BLOCK_COMMENT,r.HEXCOLOR,r.IMPORTANT,r.CSS_NUMBER_MODE,r.UNICODE_RANGE,...d,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:`url data-uri`},contains:[...d,{className:`string`,begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},r.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:`[{;]`,relevance:0,illegal:/:/,contains:[{className:`keyword`,begin:u},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:o.join(` `)},contains:[{begin:/[a-z-]+(?=:)/,className:`attribute`},...d,r.CSS_NUMBER_MODE]}]},{className:`selector-tag`,begin:`\\b(`+a.join(`|`)+`)\\b`}]}}t.exports=u})),ip=u(((e,t)=>{function n(e){let t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:`>`,subLanguage:`xml`,relevance:0},r={match:/^ {0,3}([-*_])[ \t]*(?:\1[ \t]*){2,}$/},i={className:`code`,variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:`(~{3,})[^~](.|\\n)*?\\1~*[ ]*`},{begin:"```",end:"```+[ ]*$"},{begin:`~~~`,end:`~~~+[ ]*$`},{begin:"`.+?`"},{begin:`(?=^( {4}|\\t))`,contains:[{begin:`^( {4}|\\t)`,end:`(\\n)$`}],relevance:0}]},a={className:`bullet`,begin:`^[ ]*([*+-]|(\\d+\\.))(?=\\s+)`,end:`\\s+`,excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:`symbol`,begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:`link`,begin:/:\s*/,end:/$/,excludeBegin:!0}]},s={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:`string`,relevance:0,begin:`\\[`,end:`\\]`,excludeBegin:!0,returnEnd:!0},{className:`link`,relevance:0,begin:`\\]\\(`,end:`\\)`,excludeBegin:!0,excludeEnd:!0},{className:`symbol`,relevance:0,begin:`\\]\\[`,end:`\\]`,excludeBegin:!0,excludeEnd:!0}]},c={className:`strong`,contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},l={className:`emphasis`,contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},u=e.inherit(c,{contains:[]}),d=e.inherit(l,{contains:[]});c.contains.push(d),l.contains.push(u);let f=[n,s];return[c,l,u,d].forEach(e=>{e.contains=e.contains.concat(f)}),f=f.concat(c,l),{name:`Markdown`,aliases:[`md`,`mkdown`,`mkd`],contains:[{className:`section`,variants:[{begin:`^#{1,6}`,end:`$`,contains:f},{begin:`(?=^.+?\\n[=-]{2,}$)`,contains:[{begin:`^[=-]*$`},{begin:`^`,end:`\\n`,contains:f}]}]},n,a,r,c,l,{className:`quote`,begin:`^>\\s+`,contains:f,end:`$`},i,s,o,{scope:`literal`,match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}t.exports=n})),ap=u(((e,t)=>{function n(e){let t=e.regex;return{name:`Diff`,aliases:[`patch`],contains:[{className:`meta`,relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+ +\+\d+,\d+ +@@/,/^@@ +-\d+,\d+ +\+\d+ +@@/,/^@@ +-\d+ +\+\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:`comment`,variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:`addition`,begin:/^\+/,end:/$/},{className:`deletion`,begin:/^-/,end:/$/},{className:`addition`,begin:/^!/,end:/$/}]}}t.exports=n})),op=u(((e,t)=>{function n(e){let t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),a={"variable.constant":[`__FILE__`,`__LINE__`,`__ENCODING__`],"variable.language":[`self`,`super`],keyword:`alias.and.begin.BEGIN.break.case.class.defined.do.else.elsif.end.END.ensure.for.if.in.module.next.not.or.redo.require.rescue.retry.return.then.undef.unless.until.when.while.yield.include.extend.prepend.public.private.protected.raise.throw`.split(`.`),built_in:[`proc`,`lambda`,`attr_accessor`,`attr_reader`,`attr_writer`,`define_method`,`private_constant`,`module_function`],literal:[`true`,`false`,`nil`]},o={className:`doctag`,begin:`@[A-Za-z]+`},s={begin:`#<`,end:`>`},c=[e.COMMENT(`#`,`$`,{contains:[o]}),e.COMMENT(`^=begin`,`^=end`,{contains:[o],relevance:10}),e.COMMENT(`^__END__`,e.MATCH_NOTHING_RE)],l={className:`subst`,begin:/#\{/,end:/\}/,keywords:a},u={className:`string`,contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,l]})]}]},d=`[0-9](_?[0-9])*`,f={className:`number`,relevance:0,variants:[{begin:`\\b([1-9](_?[0-9])*|0)(\\.(${d}))?([eE][+-]?(${d})|r)?i?\\b`},{begin:`\\b0[dD][0-9](_?[0-9])*r?i?\\b`},{begin:`\\b0[bB][0-1](_?[0-1])*r?i?\\b`},{begin:`\\b0[oO][0-7](_?[0-7])*r?i?\\b`},{begin:`\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b`},{begin:`\\b0(_?[0-7])+r?i?\\b`}]},p={variants:[{match:/\(\)/},{className:`params`,begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},m=[u,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:`title.class`,4:`title.class.inherited`},keywords:a},{match:[/(include|extend)\s+/,i],scope:{2:`title.class`},keywords:a},{relevance:0,match:[i,/\.new[. (]/],scope:{1:`title.class`}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:`variable.constant`},{relevance:0,match:r,scope:`title.class`},{match:[/def/,/\s+/,n],scope:{1:`keyword`,3:`title.function`},contains:[p]},{begin:`::`},{className:`symbol`,begin:e.UNDERSCORE_IDENT_RE+`(!|\\?)?:`,relevance:0},{className:`symbol`,begin:`:(?!\\s)`,contains:[u,{begin:n}],relevance:0},f,{className:`variable`,begin:`(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])`},{className:`params`,begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:a},{begin:`(`+e.RE_STARTERS_RE+`|unless)\\s*`,keywords:`unless`,contains:[{className:`regexp`,contains:[e.BACKSLASH_ESCAPE,l],illegal:/\n/,variants:[{begin:`/`,end:`/[a-z]*`},{begin:/%r\{/,end:/\}[a-z]*/},{begin:`%r\\(`,end:`\\)[a-z]*`},{begin:`%r!`,end:`![a-z]*`},{begin:`%r\\[`,end:`\\][a-z]*`}]}].concat(s,c),relevance:0}].concat(s,c);l.contains=m,p.contains=m;let h=[{begin:/^\s*=>/,starts:{end:`$`,contains:m}},{className:`meta.prompt`,begin:`^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]|(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>)(?=[ ])`,starts:{end:`$`,keywords:a,contains:m}}];return c.unshift(s),{name:`Ruby`,aliases:[`rb`,`gemspec`,`podspec`,`thor`,`irb`],keywords:a,illegal:/\/\*/,contains:[e.SHEBANG({binary:`ruby`})].concat(h,c,m)}}t.exports=n})),sp=u(((e,t)=>{function n(e){let t={keyword:[`break`,`case`,`chan`,`const`,`continue`,`default`,`defer`,`else`,`fallthrough`,`for`,`func`,`go`,`goto`,`if`,`import`,`interface`,`map`,`package`,`range`,`return`,`select`,`struct`,`switch`,`type`,`var`],type:[`bool`,`byte`,`complex64`,`complex128`,`error`,`float32`,`float64`,`int8`,`int16`,`int32`,`int64`,`string`,`uint8`,`uint16`,`uint32`,`uint64`,`int`,`uint`,`uintptr`,`rune`],literal:[`true`,`false`,`iota`,`nil`],built_in:[`append`,`cap`,`close`,`complex`,`copy`,`imag`,`len`,`make`,`new`,`panic`,`print`,`println`,`real`,`recover`,`delete`]};return{name:`Go`,aliases:[`golang`],keywords:t,illegal:`</`,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`string`,variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:`number`,variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\b0[bB](_?[01])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:`function`,beginKeywords:`func`,end:`\\s*(\\{|$)`,excludeEnd:!0,contains:[e.TITLE_MODE,{className:`params`,begin:/\(/,end:/\)/,endsParent:!0,keywords:t,illegal:/["']/}]}]}}t.exports=n})),cp=u(((e,t)=>{function n(e){let t=e.regex;return{name:`GraphQL`,aliases:[`gql`],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:[`query`,`mutation`,`subscription`,`type`,`input`,`schema`,`directive`,`interface`,`union`,`scalar`,`fragment`,`enum`,`on`],literal:[`true`,`false`,`null`]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:`punctuation`,match:/[.]{3}/,relevance:0},{scope:`punctuation`,begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:`variable`,begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:`meta`,match:/@\w+/,excludeEnd:!0},{scope:`symbol`,begin:t.concat(/[_A-Za-z][_0-9A-Za-z]*/,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}t.exports=n})),lp=u(((e,t)=>{function n(e){let t=e.regex,n={className:`number`,relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];let i={className:`variable`,variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},a={className:`literal`,begin:/\bon|off|true|false|yes|no\b/},o={className:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[{begin:`'''`,end:`'''`,relevance:10},{begin:`"""`,end:`"""`,relevance:10},{begin:`"`,end:`"`},{begin:`'`,end:`'`}]},s={begin:/\[/,end:/\]/,contains:[r,a,i,o,n,`self`],relevance:0},c=t.either(/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/);return{name:`TOML, also INI`,aliases:[`toml`],case_insensitive:!0,illegal:/\S/,contains:[r,{className:`section`,begin:/\[+/,end:/\]+/},{begin:t.concat(c,`(\\s*\\.\\s*`,c,`)*`,t.lookahead(/\s*=\s*[^#\s]/)),className:`attr`,starts:{end:/$/,contains:[r,s,a,i,o,n]}}]}}t.exports=n})),up=u(((e,t)=>{var n=`[0-9](_*[0-9])*`,r=`\\.(${n})`,i=`[0-9a-fA-F](_*[0-9a-fA-F])*`,a={className:`number`,variants:[{begin:`(\\b(${n})((${r})|\\.)?|(${r}))[eE][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(${n})((${r})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${r})[fFdD]?\\b`},{begin:`\\b(${n})[fFdD]\\b`},{begin:`\\b0[xX]((${i})\\.?|(${i})?\\.(${i}))[pP][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(0|[1-9](_*[0-9])*)[lL]?\\b`},{begin:`\\b0[xX](${i})[lL]?\\b`},{begin:`\\b0(_*[0-7])*[lL]?\\b`},{begin:`\\b0[bB][01](_*[01])*[lL]?\\b`}],relevance:0};function o(e,t,n){return n===-1?``:e.replace(t,r=>o(e,t,n-1))}function s(e){let t=e.regex,n=`[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*`,r=`(?:(?:\\s*\\[\\s*])+)?`,i=`(?:\\?(?:\\s+(?:extends|super)\\s+[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*<@@@>(?:(?:\\s*\\[\\s*])+)?)?|[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*<@@@>(?:(?:\\s*\\[\\s*])+)?)`,s=o(`(?:\\s*<\\s*`+i+`(?:\\s*,\\s*`+i+`)*\\s*>)?`,/<@@@>/g,2),c={keyword:`synchronized.abstract.private.var.static.if.const .for.while.strictfp.finally.protected.import.native.final.void.enum.else.break.transient.catch.instanceof.volatile.case.assert.package.default.public.try.switch.continue.throws.protected.public.private.module.requires.exports.do.sealed.yield.permits.goto.when`.split(`.`),literal:[`false`,`true`,`null`],type:[`char`,`boolean`,`long`,`float`,`int`,`byte`,`short`,`double`],built_in:[`super`,`this`]},l={className:`meta`,begin:`@`+n,contains:[{begin:/\(/,end:/\)/,contains:[`self`]}]},u={className:`params`,begin:/\(/,end:/\)/,keywords:c,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:`Java`,aliases:[`jsp`],keywords:c,illegal:/<\/|#/,contains:[e.COMMENT(`/\\*\\*`,`\\*/`,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:`doctag`,begin:`@[A-Za-z]+`}]}),{begin:/import java\.[a-z]+\./,keywords:`import`,relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:`string`,contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:`keyword`,3:`title.class`}},{match:/non-sealed/,scope:`keyword`},{beginKeywords:`new throw return else yield assert`,relevance:0},{begin:[n,t.concat(s,r,/\s+/),n,r,/\s*/,/=(?!=)/],className:{1:`type`,3:`variable`,6:`operator`}},{begin:[/record/,/\s+/,n],className:{1:`keyword`,3:`title.class`},contains:[u,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{begin:[n,t.concat(s,r,/\s+/),n,/\s*(?=\()/],className:{1:`type`,3:`title.function`},keywords:c,contains:[{className:`params`,begin:/\(/,end:/\)/,keywords:c,relevance:0,contains:[l,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},a,l]}}t.exports=s})),dp=u(((e,t)=>{var n=`[A-Za-z$_][0-9A-Za-z$_]*`,r=`as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using`.split(`.`),i=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],a=`Object.Function.Boolean.Symbol.Math.Date.Number.BigInt.String.RegExp.Array.Float32Array.Float64Array.Int8Array.Uint8Array.Uint8ClampedArray.Int16Array.Int32Array.Uint16Array.Uint32Array.BigInt64Array.BigUint64Array.Set.Map.WeakSet.WeakMap.ArrayBuffer.SharedArrayBuffer.Atomics.DataView.JSON.Promise.Generator.GeneratorFunction.AsyncFunction.Reflect.Proxy.Intl.WebAssembly`.split(`.`),o=[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],s=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`],c=[`arguments`,`this`,`super`,`console`,`window`,`document`,`localStorage`,`sessionStorage`,`module`,`self`,`global`],l=[].concat(s,a,o);function u(e){let t=e.regex,u=(e,{after:t})=>{let n=`</`+e[0].slice(1);return e.input.indexOf(n,t)!==-1},d=n,f={begin:`<>`,end:`</>`},p=/<[A-Za-z0-9\\._:-]+\s*\/>/,m={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{let n=e[0].length+e.index,r=e.input[n];if(r===`<`||r===`,`){t.ignoreMatch();return}r===`>`&&(u(e,{after:n})||t.ignoreMatch());let i,a=e.input.substring(n);if(i=a.match(/^\s*=/)){t.ignoreMatch();return}if((i=a.match(/^\s+extends\s+/))&&i.index===0){t.ignoreMatch();return}}},h={$pattern:n,keyword:r,literal:i,built_in:l,"variable.language":c},g=`[0-9](_?[0-9])*`,_=`\\.(${g})`,v=`0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`,y={className:`number`,variants:[{begin:`(\\b(${v})((${_})|\\.)?|(${_}))[eE][+-]?(${g})\\b`},{begin:`\\b(${v})\\b((${_})\\b|\\.)?|(${_})\\b`},{begin:`\\b(0|[1-9](_?[0-9])*)n\\b`},{begin:`\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b`},{begin:`\\b0[bB][0-1](_?[0-1])*n?\\b`},{begin:`\\b0[oO][0-7](_?[0-7])*n?\\b`},{begin:`\\b0[0-7]+n?\\b`}],relevance:0},b={className:`subst`,begin:`\\$\\{`,end:`\\}`,keywords:h,contains:[]},x={begin:".?html`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:`xml`}},S={begin:".?css`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:`css`}},C={begin:".?gql`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:`graphql`}},w={className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,b]},T={className:`comment`,variants:[e.COMMENT(/\/\*\*(?!\/)/,`\\*/`,{relevance:0,contains:[{begin:`(?=@[A-Za-z]+)`,relevance:0,contains:[{className:`doctag`,begin:`@[A-Za-z]+`},{className:`type`,begin:`\\{`,end:`\\}`,excludeEnd:!0,excludeBegin:!0,relevance:0},{className:`variable`,begin:d+`(?=\\s*(-)|$)`,endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},E=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,x,S,C,w,{match:/\$\d+/},y];b.contains=E.concat({begin:/\{/,end:/\}/,keywords:h,contains:[`self`].concat(E)});let D=[].concat(T,b.contains),O=D.concat([{begin:/(\s*)\(/,end:/\)/,keywords:h,contains:[`self`].concat(D)}]),k={className:`params`,begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:O},A={variants:[{match:[/class/,/\s+/,d,/\s+/,/extends/,/\s+/,t.concat(d,`(`,t.concat(/\./,d),`)*`)],scope:{1:`keyword`,3:`title.class`,5:`keyword`,7:`title.class.inherited`}},{match:[/class/,/\s+/,d],scope:{1:`keyword`,3:`title.class`}}]},ee={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:`title.class`,keywords:{_:[...a,...o]}},j={label:`use_strict`,className:`meta`,relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},te={variants:[{match:[/function/,/\s+/,d,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:`keyword`,3:`title.function`},label:`func.def`,contains:[k],illegal:/%/},M={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:`variable.constant`};function ne(e){return t.concat(`(?!`,e.join(`|`),`)`)}let re={match:t.concat(/\b/,ne([...s,`super`,`import`,`await`].map(e=>`${e}\\s*\\(`)),d,t.lookahead(/\s*\(/)),className:`title.function`,relevance:0},ie={begin:t.concat(/\./,t.lookahead(t.concat(d,/(?![0-9A-Za-z$_(])/))),end:d,excludeBegin:!0,keywords:`prototype`,className:`property`,relevance:0},ae={match:[/get|set/,/\s+/,d,/(?=\()/],className:{1:`keyword`,3:`title.function`},contains:[{begin:/\(\)/},k]},oe=`(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|`+e.UNDERSCORE_IDENT_RE+`)\\s*=>`,N={match:[/const|var|let/,/\s+/,d,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(oe)],keywords:`async`,className:{1:`keyword`,3:`title.function`},contains:[k]};return{name:`JavaScript`,aliases:[`js`,`jsx`,`mjs`,`cjs`],keywords:h,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:ee},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:`shebang`,binary:`node`,relevance:5}),j,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,x,S,C,w,T,{match:/\$\d+/},y,ee,{scope:`attr`,match:d+t.lookahead(`:`),relevance:0},N,{begin:`(`+e.RE_STARTERS_RE+`|\\b(case|return|throw)\\b)\\s*`,keywords:`return throw case`,relevance:0,contains:[T,e.REGEXP_MODE,{className:`function`,begin:oe,returnBegin:!0,end:`\\s*=>`,contains:[{className:`params`,variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:f.begin,end:f.end},{match:p},{begin:m.begin,"on:begin":m.isTrulyOpeningTag,end:m.end}],subLanguage:`xml`,contains:[{begin:m.begin,end:m.end,skip:!0,contains:[`self`]}]}]},te,{beginKeywords:`while if switch catch for`},{begin:`\\b(?!function)`+e.UNDERSCORE_IDENT_RE+`\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{`,returnBegin:!0,label:`func.def`,contains:[k,e.inherit(e.TITLE_MODE,{begin:d,className:`title.function`})]},{match:/\.\.\./,relevance:0},ie,{match:`\\$`+d,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:`title.function`},contains:[k]},re,M,A,ae,{match:/\$[(.]/}]}}t.exports=u})),fp=u(((e,t)=>{var n={scope:`number`,match:`([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity`,relevance:0};function r(e){let t={className:`attr`,begin:/(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,relevance:1.01},r={match:/[{}[\],:]/,className:`punctuation`,relevance:0},i=[`true`,`false`,`null`],a={scope:`literal`,beginKeywords:i.join(` `)};return{name:`JSON`,aliases:[`jsonc`,`json5`],keywords:{literal:i},contains:[t,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,n,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:`\\S`}}t.exports=r})),pp=u(((e,t)=>{var n=`[0-9](_*[0-9])*`,r=`\\.(${n})`,i=`[0-9a-fA-F](_*[0-9a-fA-F])*`,a={className:`number`,variants:[{begin:`(\\b(${n})((${r})|\\.)?|(${r}))[eE][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(${n})((${r})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${r})[fFdD]?\\b`},{begin:`\\b(${n})[fFdD]\\b`},{begin:`\\b0[xX]((${i})\\.?|(${i})?\\.(${i}))[pP][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(0|[1-9](_*[0-9])*)[lL]?\\b`},{begin:`\\b0[xX](${i})[lL]?\\b`},{begin:`\\b0(_*[0-7])*[lL]?\\b`},{begin:`\\b0[bB][01](_*[01])*[lL]?\\b`}],relevance:0};function o(e){let t={keyword:`abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual`,built_in:`Byte Short Char Int Long Boolean Float Double Void Unit Nothing`,literal:`true false null`},n={className:`keyword`,begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:`symbol`,begin:/@\w+/}]}},r={className:`symbol`,begin:e.UNDERSCORE_IDENT_RE+`@`},i={className:`subst`,begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},o={className:`variable`,begin:`\\$`+e.UNDERSCORE_IDENT_RE},s={className:`string`,variants:[{begin:`"""`,end:`"""(?=[^"])`,contains:[o,i]},{begin:`'`,end:`'`,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:`"`,end:`"`,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,o,i]}]};i.contains.push(s);let c={className:`meta`,begin:`@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*`+e.UNDERSCORE_IDENT_RE+`)?`},l={className:`meta`,begin:`@`+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(s,{className:`string`}),`self`]}]},u=a,d=e.COMMENT(`/\\*`,`\\*/`,{contains:[e.C_BLOCK_COMMENT_MODE]}),f={variants:[{className:`type`,begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},p=f;return p.variants[1].contains=[f],f.variants[1].contains=[p],{name:`Kotlin`,aliases:[`kt`,`kts`,`ktm`,`ktx`],keywords:t,contains:[e.COMMENT(`/\\*\\*`,`\\*/`,{relevance:0,contains:[{className:`doctag`,begin:`@[A-Za-z]+`}]}),e.C_LINE_COMMENT_MODE,d,n,r,c,l,{className:`function`,beginKeywords:`fun`,end:`[(]|$`,returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+`\\s*\\(`,returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:`type`,begin:/</,end:/>/,keywords:`reified`,relevance:0},{className:`params`,begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[f,e.C_LINE_COMMENT_MODE,d],relevance:0},e.C_LINE_COMMENT_MODE,d,c,l,s,e.C_NUMBER_MODE]},d]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:`title.class`},keywords:`class interface trait`,end:/[:\{(]|$/,excludeEnd:!0,illegal:`extends implements`,contains:[{beginKeywords:`public protected internal private constructor`},e.UNDERSCORE_TITLE_MODE,{className:`type`,begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:`type`,begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},c,l]},s,{className:`meta`,begin:`^#!/usr/bin/env`,end:`$`,illegal:`
|
|
577
|
+
`},u]}}t.exports=o})),mp=u(((e,t)=>{var n=e=>({IMPORTANT:{scope:`meta`,begin:`!important`},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:`number`,begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:`number`,begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:`built_in`,begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:`selector-attr`,begin:/\[/,end:/\]/,illegal:`$`,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:`number`,begin:e.NUMBER_RE+`(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?`,relevance:0},CSS_VARIABLE:{className:`attr`,begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),r=`a.abbr.address.article.aside.audio.b.blockquote.body.button.canvas.caption.cite.code.dd.del.details.dfn.div.dl.dt.em.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.html.i.iframe.img.input.ins.kbd.label.legend.li.main.mark.menu.nav.object.ol.optgroup.option.p.picture.q.quote.samp.section.select.source.span.strong.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.ul.var.video`.split(`.`),i=`defs.g.marker.mask.pattern.svg.switch.symbol.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feFlood.feGaussianBlur.feImage.feMerge.feMorphology.feOffset.feSpecularLighting.feTile.feTurbulence.linearGradient.radialGradient.stop.circle.ellipse.image.line.path.polygon.polyline.rect.text.use.textPath.tspan.foreignObject.clipPath`.split(`.`),a=[...r,...i],o=`any-hover.any-pointer.aspect-ratio.color.color-gamut.color-index.device-aspect-ratio.device-height.device-width.display-mode.forced-colors.grid.height.hover.inverted-colors.monochrome.orientation.overflow-block.overflow-inline.pointer.prefers-color-scheme.prefers-contrast.prefers-reduced-motion.prefers-reduced-transparency.resolution.scan.scripting.update.width.min-width.max-width.min-height.max-height`.split(`.`).sort().reverse(),s=`active.any-link.blank.checked.current.default.defined.dir.disabled.drop.empty.enabled.first.first-child.first-of-type.fullscreen.future.focus.focus-visible.focus-within.has.host.host-context.hover.indeterminate.in-range.invalid.is.lang.last-child.last-of-type.left.link.local-link.not.nth-child.nth-col.nth-last-child.nth-last-col.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.past.placeholder-shown.read-only.read-write.required.right.root.scope.target.target-within.user-invalid.valid.visited.where`.split(`.`).sort().reverse(),c=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),l=`accent-color.align-content.align-items.align-self.alignment-baseline.all.anchor-name.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.appearance.aspect-ratio.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.block-size.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-align.box-decoration-break.box-direction.box-flex.box-flex-group.box-lines.box-ordinal-group.box-orient.box-pack.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.corner-bottom-left-shape.corner-bottom-right-shape.corner-shape.corner-top-left-shape.corner-top-right-shape.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.cx.cy.direction.display.dominant-baseline.empty-cells.enable-background.field-sizing.fill.fill-opacity.fill-rule.filter.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.flood-color.flood-opacity.flow.font.font-display.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-smooth.font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphenate-character.hyphenate-limit-chars.hyphens.icon.image-orientation.image-rendering.image-resolution.ime-mode.initial-letter.initial-letter-align.inline-size.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.kerning.left.letter-spacing.lighting-color.line-break.line-height.line-height-step.list-style.list-style-image.list-style-position.list-style-type.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.margin-trim.marker.marker-end.marker-mid.marker-start.marks.mask.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.masonry-auto-flow.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.nav-down.nav-index.nav-left.nav-right.nav-up.none.normal.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overlay.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.paint-order.pause.pause-after.pause-before.perspective.perspective-origin.place-content.place-items.place-self.pointer-events.position.position-anchor.position-visibility.print-color-adjust.quotes.r.resize.rest.rest-after.rest-before.right.rotate.row-gap.ruby-align.ruby-position.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.scrollbar-color.scrollbar-gutter.scrollbar-width.shape-image-threshold.shape-margin.shape-outside.shape-rendering.speak.speak-as.src.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.table-layout.text-align.text-align-all.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-size-adjust.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.timeline-scope.top.touch-action.transform.transform-box.transform-origin.transform-style.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.unicode-range.user-modify.user-select.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.white-space.white-space-collapse.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.x.y.z-index.zoom`.split(`.`).sort().reverse(),u=s.concat(c).sort().reverse();function d(e){let t=n(e),r=u,i=`([\\w-]+|@\\{[\\w-]+\\})`,d=[],f=[],p=function(e){return{className:`string`,begin:`~?`+e+`.*?`+e}},m=function(e,t,n){return{className:e,begin:t,relevance:n}},h={$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:o.join(` `)},g={begin:`\\(`,end:`\\)`,contains:f,keywords:h,relevance:0};f.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,p(`'`),p(`"`),t.CSS_NUMBER_MODE,{begin:`(url|data-uri)\\(`,starts:{className:`string`,end:`[\\)\\n]`,excludeEnd:!0}},t.UNICODE_RANGE,t.HEXCOLOR,g,m(`variable`,`@@?[\\w-]+`,10),m(`variable`,`@\\{[\\w-]+\\}`),m(`built_in`,"~?`[^`]*?`"),{className:`attribute`,begin:`[\\w-]+\\s*:`,end:`:`,returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:`and not`},t.FUNCTION_DISPATCH);let _=f.concat({begin:/\{/,end:/\}/,contains:d}),v={beginKeywords:`when`,endsWithParent:!0,contains:[{beginKeywords:`and not`}].concat(f)},y={begin:i+`\\s*:`,returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+l.join(`|`)+`)\\b`,end:/(?=:)/,starts:{endsWithParent:!0,illegal:`[<=$]`,relevance:0,contains:f}}]},b={className:`keyword`,begin:`@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b`,starts:{end:`[;{}]`,keywords:h,returnEnd:!0,contains:f,relevance:0}},x={className:`variable`,variants:[{begin:`@[\\w-]+\\s*:`,relevance:15},{begin:`@[\\w-]+`}],starts:{end:`[;}]`,returnEnd:!0,contains:_}},S={variants:[{begin:`[\\.#:&\\[>]`,end:`[;{}]`},{begin:i,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,v,m(`keyword`,`all\\b`),m(`variable`,`@\\{[\\w-]+\\}`),{begin:`\\b(`+a.join(`|`)+`)\\b`,className:`selector-tag`},t.CSS_NUMBER_MODE,m(`selector-tag`,i,0),m(`selector-id`,`#`+i),m(`selector-class`,`\\.`+i,0),m(`selector-tag`,`&`,0),t.ATTRIBUTE_SELECTOR_MODE,{className:`selector-pseudo`,begin:`:(`+s.join(`|`)+`)`},{className:`selector-pseudo`,begin:`:(:)?(`+c.join(`|`)+`)`},{begin:/\(/,end:/\)/,relevance:0,contains:_},{begin:`!important`},t.FUNCTION_DISPATCH]},C={begin:`[\\w-]+:(:)?(${r.join(`|`)})`,returnBegin:!0,contains:[S]};return d.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,b,x,C,y,S,v,t.FUNCTION_DISPATCH),{name:`Less`,case_insensitive:!0,illegal:`[=>'/<($"]`,contains:d}}t.exports=d})),hp=u(((e,t)=>{function n(e){let t=`\\[=*\\[`,n=`\\]=*\\]`,r={begin:t,end:n,contains:[`self`]},i=[e.COMMENT(`--(?!\\[=*\\[)`,`$`),e.COMMENT(`--\\[=*\\[`,n,{contains:[r],relevance:10})];return{name:`Lua`,aliases:[`pluto`],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:`true false nil`,keyword:`and break do else elseif end for goto if in local global not or repeat return then until while`,built_in:`_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove`},contains:i.concat([{className:`function`,beginKeywords:`function`,end:`\\)`,contains:[e.inherit(e.TITLE_MODE,{begin:`([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*`}),{className:`params`,begin:`\\(`,endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:`string`,begin:t,end:n,contains:[r],relevance:5}])}}t.exports=n})),gp=u(((e,t)=>{function n(e){let t={className:`variable`,variants:[{begin:`\\$\\(`+e.UNDERSCORE_IDENT_RE+`\\)`,contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:`string`,begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},r={className:`variable`,begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:`subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value`},contains:[t,n]},i={begin:`^`+e.UNDERSCORE_IDENT_RE+`\\s*(?=[:+?]?=)`},a={className:`meta`,begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:`.PHONY`}},o={className:`section`,begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:`Makefile`,aliases:[`mk`,`mak`,`make`],keywords:{$pattern:/[\w-]+/,keyword:`define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath`},contains:[e.HASH_COMMENT_MODE,t,n,r,i,a,o]}}t.exports=n})),_p=u(((e,t)=>{function n(e){let t=e.regex,n=`abs.accept.alarm.and.atan2.bind.binmode.bless.break.caller.chdir.chmod.chomp.chop.chown.chr.chroot.class.close.closedir.connect.continue.cos.crypt.dbmclose.dbmopen.defined.delete.die.do.dump.each.else.elsif.endgrent.endhostent.endnetent.endprotoent.endpwent.endservent.eof.eval.exec.exists.exit.exp.fcntl.field.fileno.flock.for.foreach.fork.format.formline.getc.getgrent.getgrgid.getgrnam.gethostbyaddr.gethostbyname.gethostent.getlogin.getnetbyaddr.getnetbyname.getnetent.getpeername.getpgrp.getpriority.getprotobyname.getprotobynumber.getprotoent.getpwent.getpwnam.getpwuid.getservbyname.getservbyport.getservent.getsockname.getsockopt.given.glob.gmtime.goto.grep.gt.hex.if.index.int.ioctl.join.keys.kill.last.lc.lcfirst.length.link.listen.local.localtime.log.lstat.lt.ma.map.method.mkdir.msgctl.msgget.msgrcv.msgsnd.my.ne.next.no.not.oct.open.opendir.or.ord.our.pack.package.pipe.pop.pos.print.printf.prototype.push.q|0.qq.quotemeta.qw.qx.rand.read.readdir.readline.readlink.readpipe.recv.redo.ref.rename.require.reset.return.reverse.rewinddir.rindex.rmdir.say.scalar.seek.seekdir.select.semctl.semget.semop.send.setgrent.sethostent.setnetent.setpgrp.setpriority.setprotoent.setpwent.setservent.setsockopt.shift.shmctl.shmget.shmread.shmwrite.shutdown.sin.sleep.socket.socketpair.sort.splice.split.sprintf.sqrt.srand.stat.state.study.sub.substr.symlink.syscall.sysopen.sysread.sysseek.system.syswrite.tell.telldir.tie.tied.time.times.tr.truncate.uc.ucfirst.umask.undef.unless.unlink.unpack.unshift.untie.until.use.utime.values.vec.wait.waitpid.wantarray.warn.when.while.write.x|0.xor.y|0`.split(`.`),r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(` `)},a={className:`subst`,begin:`[$@]\\{`,end:`\\}`,keywords:i},o={begin:/->\{/,end:/\}/},s={scope:`attr`,match:/\s+:\s*\w+(\s*\(.*?\))?/},c={scope:`variable`,variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,`(?![A-Za-z])(?![@$%])`)},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[s]},l={className:`number`,variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},u=[e.BACKSLASH_ESCAPE,a,c],d=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],f=(e,n,i=`\\1`)=>{let a=i===`\\1`?i:t.concat(i,n);return t.concat(t.concat(`(?:`,e,`)`),n,/(?:\\.|[^\\\/])*?/,a,/(?:\\.|[^\\\/])*?/,i,r)},p=(e,n,i)=>t.concat(t.concat(`(?:`,e,`)`),n,/(?:\\.|[^\\\/])*?/,i,r),m=[c,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:`string`,contains:u,variants:[{begin:`q[qwxr]?\\s*\\(`,end:`\\)`,relevance:5},{begin:`q[qwxr]?\\s*\\[`,end:`\\]`,relevance:5},{begin:`q[qwxr]?\\s*\\{`,end:`\\}`,relevance:5},{begin:`q[qwxr]?\\s*\\|`,end:`\\|`,relevance:5},{begin:`q[qwxr]?\\s*<`,end:`>`,relevance:5},{begin:`qw\\s+q`,end:`q`,relevance:5},{begin:`'`,end:`'`,contains:[e.BACKSLASH_ESCAPE]},{begin:`"`,end:`"`},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:`-?\\w+\\s*=>`,relevance:0}]},l,{begin:`(\\/\\/|`+e.RE_STARTERS_RE+`|\\b(split|return|print|reverse|grep)\\b)\\s*`,keywords:`split return print reverse grep`,relevance:0,contains:[e.HASH_COMMENT_MODE,{className:`regexp`,variants:[{begin:f(`s|tr|y`,t.either(...d,{capture:!0}))},{begin:f(`s|tr|y`,`\\(`,`\\)`)},{begin:f(`s|tr|y`,`\\[`,`\\]`)},{begin:f(`s|tr|y`,`\\{`,`\\}`)}],relevance:2},{className:`regexp`,variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:p(`(?:m|qr)?`,/\//,/\//)},{begin:p(`m|qr`,t.either(...d,{capture:!0}),/\1/)},{begin:p(`m|qr`,/\(/,/\)/)},{begin:p(`m|qr`,/\[/,/\]/)},{begin:p(`m|qr`,/\{/,/\}/)}]}]},{className:`function`,beginKeywords:`sub method`,end:`(\\s*\\(.*?\\))?[;{]`,excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s]},{className:`class`,beginKeywords:`class`,end:`[;{]`,excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s,l]},{begin:`-\\w\\b`,relevance:0},{begin:`^__DATA__$`,end:`^__END__$`,subLanguage:`mojolicious`,contains:[{begin:`^@@.*`,end:`$`,className:`comment`}]}];return a.contains=m,o.contains=m,{name:`Perl`,aliases:[`pl`,`pm`],keywords:i,contains:m}}t.exports=n})),vp=u(((e,t)=>{function n(e){let t={className:`built_in`,begin:`\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+`},n=/[a-zA-Z@][a-zA-Z0-9_]*/,r={"variable.language":[`this`,`super`],$pattern:n,keyword:`while.export.sizeof.typedef.const.struct.for.union.volatile.static.mutable.if.do.return.goto.enum.else.break.extern.asm.case.default.register.explicit.typename.switch.continue.inline.readonly.assign.readwrite.self.@synchronized.id.typeof.nonatomic.IBOutlet.IBAction.strong.weak.copy.in.out.inout.bycopy.byref.oneway.__strong.__weak.__block.__autoreleasing.@private.@protected.@public.@try.@property.@end.@throw.@catch.@finally.@autoreleasepool.@synthesize.@dynamic.@selector.@optional.@required.@encode.@package.@import.@defs.@compatibility_alias.__bridge.__bridge_transfer.__bridge_retained.__bridge_retain.__covariant.__contravariant.__kindof._Nonnull._Nullable._Null_unspecified.__FUNCTION__.__PRETTY_FUNCTION__.__attribute__.getter.setter.retain.unsafe_unretained.nonnull.nullable.null_unspecified.null_resettable.class.instancetype.NS_DESIGNATED_INITIALIZER.NS_UNAVAILABLE.NS_REQUIRES_SUPER.NS_RETURNS_INNER_POINTER.NS_INLINE.NS_AVAILABLE.NS_DEPRECATED.NS_ENUM.NS_OPTIONS.NS_SWIFT_UNAVAILABLE.NS_ASSUME_NONNULL_BEGIN.NS_ASSUME_NONNULL_END.NS_REFINED_FOR_SWIFT.NS_SWIFT_NAME.NS_SWIFT_NOTHROW.NS_DURING.NS_HANDLER.NS_ENDHANDLER.NS_VALUERETURN.NS_VOIDRETURN`.split(`.`),literal:[`false`,`true`,`FALSE`,`TRUE`,`nil`,`YES`,`NO`,`NULL`],built_in:[`dispatch_once_t`,`dispatch_queue_t`,`dispatch_sync`,`dispatch_async`,`dispatch_once`],type:[`int`,`float`,`char`,`unsigned`,`signed`,`short`,`long`,`double`,`wchar_t`,`unichar`,`void`,`bool`,`BOOL`,`id|0`,`_Bool`]},i={$pattern:n,keyword:[`@interface`,`@class`,`@protocol`,`@implementation`]};return{name:`Objective-C`,aliases:[`mm`,`objc`,`obj-c`,`obj-c++`,`objective-c++`],keywords:r,illegal:`</`,contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:`string`,variants:[{begin:`@"`,end:`"`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE]}]},{className:`meta`,begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:`if else elif endif define undef warning error line pragma ifdef ifndef include`},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:`string`}),{className:`string`,begin:/<.*?>/,end:/$/,illegal:`\\n`},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:`class`,begin:`(`+i.keyword.join(`|`)+`)\\b`,end:/(\{|$)/,excludeEnd:!0,keywords:i,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:`\\.`+e.UNDERSCORE_IDENT_RE,relevance:0}]}}t.exports=n})),yp=u(((e,t)=>{function n(e){let t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),a=t.concat(/[A-Z]+/,n),o={scope:`variable`,match:`\\$+`+r},s={scope:`meta`,variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},c={scope:`subst`,variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=e.inherit(e.APOS_STRING_MODE,{illegal:null}),u=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(c)}),d={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(c),"on:begin":(e,t)=>{t.data._beginMatch=e[1]||e[2]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}},f=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),p=`[
|
|
578
|
+
]`,m={scope:`string`,variants:[u,l,d,f]},h={scope:`number`,variants:[{begin:`\\b0[bB][01]+(?:_[01]+)*\\b`},{begin:`\\b0[oO][0-7]+(?:_[0-7]+)*\\b`},{begin:`\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b`},{begin:`(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?`}],relevance:0},g=[`false`,`null`,`true`],_=`__CLASS__.__DIR__.__FILE__.__FUNCTION__.__COMPILER_HALT_OFFSET__.__LINE__.__METHOD__.__NAMESPACE__.__TRAIT__.die.echo.exit.include.include_once.print.require.require_once.array.abstract.and.as.binary.bool.boolean.break.callable.case.catch.class.clone.const.continue.declare.default.do.double.else.elseif.empty.enddeclare.endfor.endforeach.endif.endswitch.endwhile.enum.eval.extends.final.finally.float.for.foreach.from.global.goto.if.implements.instanceof.insteadof.int.integer.interface.isset.iterable.list.match|0.mixed.new.never.object.or.private.protected.public.readonly.real.return.string.switch.throw.trait.try.unset.use.var.void.while.xor.yield`.split(`.`),v=`Error|0.AppendIterator.ArgumentCountError.ArithmeticError.ArrayIterator.ArrayObject.AssertionError.BadFunctionCallException.BadMethodCallException.CachingIterator.CallbackFilterIterator.CompileError.Countable.DirectoryIterator.DivisionByZeroError.DomainException.EmptyIterator.ErrorException.Exception.FilesystemIterator.FilterIterator.GlobIterator.InfiniteIterator.InvalidArgumentException.IteratorIterator.LengthException.LimitIterator.LogicException.MultipleIterator.NoRewindIterator.OutOfBoundsException.OutOfRangeException.OuterIterator.OverflowException.ParentIterator.ParseError.RangeException.RecursiveArrayIterator.RecursiveCachingIterator.RecursiveCallbackFilterIterator.RecursiveDirectoryIterator.RecursiveFilterIterator.RecursiveIterator.RecursiveIteratorIterator.RecursiveRegexIterator.RecursiveTreeIterator.RegexIterator.RuntimeException.SeekableIterator.SplDoublyLinkedList.SplFileInfo.SplFileObject.SplFixedArray.SplHeap.SplMaxHeap.SplMinHeap.SplObjectStorage.SplObserver.SplPriorityQueue.SplQueue.SplStack.SplSubject.SplTempFileObject.TypeError.UnderflowException.UnexpectedValueException.UnhandledMatchError.ArrayAccess.BackedEnum.Closure.Fiber.Generator.Iterator.IteratorAggregate.Serializable.Stringable.Throwable.Traversable.UnitEnum.WeakReference.WeakMap.Directory.__PHP_Incomplete_Class.parent.php_user_filter.self.static.stdClass`.split(`.`),y={keyword:_,literal:(e=>{let t=[];return e.forEach(e=>{t.push(e),e.toLowerCase()===e?t.push(e.toUpperCase()):t.push(e.toLowerCase())}),t})(g),built_in:v},b=e=>e.map(e=>e.replace(/\|\d+$/,``)),x={variants:[{match:[/new/,t.concat(p,`+`),t.concat(`(?!`,b(v).join(`\\b|`),`\\b)`),i],scope:{1:`keyword`,4:`title.class`}}]},S=t.concat(r,`\\b(?!\\()`),C={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),S],scope:{2:`variable.constant`}},{match:[/::/,/class/],scope:{2:`variable.language`}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),S],scope:{1:`title.class`,3:`variable.constant`}},{match:[i,t.concat(`::`,t.lookahead(/(?!class\b)/))],scope:{1:`title.class`}},{match:[i,/::/,/class/],scope:{1:`title.class`,3:`variable.language`}}]},w={scope:`attr`,match:t.concat(r,t.lookahead(`:`),t.lookahead(/(?!::)/))},T={relevance:0,begin:/\(/,end:/\)/,keywords:y,contains:[w,o,C,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.HASH_COMMENT_MODE,m,h,x]},E={relevance:0,match:[/\b/,t.concat(`(?!fn\\b|function\\b|`,b(_).join(`\\b|`),`|`,b(v).join(`\\b|`),`\\b)`),r,t.concat(p,`*`),t.lookahead(/(?=\()/)],scope:{3:`title.function.invoke`},contains:[T]};T.contains.push(E);let D=[w,C,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.HASH_COMMENT_MODE,m,h,x],O={begin:t.concat(/#\[\s*\\?/,t.either(i,a)),beginScope:`meta`,end:/]/,endScope:`meta`,keywords:{literal:g,keyword:[`new`,`array`]},contains:[{begin:/\[/,end:/]/,keywords:{literal:g,keyword:[`new`,`array`]},contains:[`self`,...D]},...D,{scope:`meta`,variants:[{match:i},{match:a}]}]};return{case_insensitive:!1,keywords:y,contains:[O,e.HASH_COMMENT_MODE,e.COMMENT(`//`,`$`),e.COMMENT(`/\\*`,`\\*/`,{contains:[{scope:`doctag`,match:`@[A-Za-z]+`}]}),{match:/__halt_compiler\(\);/,keywords:`__halt_compiler`,starts:{scope:`comment`,end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:`meta`,endsParent:!0}]}},s,{scope:`variable.language`,match:/\$this\b/},o,E,C,{match:[/const/,/\s/,r],scope:{1:`keyword`,3:`variable.constant`}},x,{scope:`function`,relevance:0,beginKeywords:`fn function`,end:/[;{]/,excludeEnd:!0,illegal:`[$%\\[]`,contains:[{beginKeywords:`use`},e.UNDERSCORE_TITLE_MODE,{begin:`=>`,endsParent:!0},{scope:`params`,begin:`\\(`,end:`\\)`,excludeBegin:!0,excludeEnd:!0,keywords:y,contains:[`self`,O,o,C,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.HASH_COMMENT_MODE,m,h]}]},{scope:`class`,variants:[{beginKeywords:`enum`,illegal:/[($"]/},{beginKeywords:`class interface trait`,illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:`extends implements`},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:`namespace`,relevance:0,end:`;`,illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:`title.class`})]},{beginKeywords:`use`,relevance:0,end:`;`,contains:[{match:/\b(as|const|function)\b/,scope:`keyword`},e.UNDERSCORE_TITLE_MODE]},m,h]}}t.exports=n})),bp=u(((e,t)=>{function n(e){return{name:`PHP template`,subLanguage:`xml`,contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:`php`,contains:[{begin:`/\\*`,end:`\\*/`,skip:!0},{begin:`b"`,end:`"`,skip:!0},{begin:`b'`,end:`'`,skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}t.exports=n})),xp=u(((e,t)=>{function n(e){return{name:`Plain text`,aliases:[`text`,`txt`],disableAutodetect:!0}}t.exports=n})),Sp=u(((e,t)=>{function n(e){let t=e.regex,n=/[\p{XID_Start}_]\p{XID_Continue}*/u,r=`and.as.assert.async.await.break.case.class.continue.def.del.elif.else.except.finally.for.from.global.if.import.in.is.lambda.lazy.match.nonlocal|10.not.or.pass.raise.return.try.while.with.yield`.split(`.`),i={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:`__import__.abs.aiter.all.anext.any.ascii.bin.bool.breakpoint.bytearray.bytes.callable.chr.classmethod.compile.complex.delattr.dict.dir.divmod.enumerate.eval.exec.filter.float.format.frozendict.frozenset.getattr.globals.hasattr.hash.help.hex.id.input.int.isinstance.issubclass.iter.len.list.locals.map.max.memoryview.min.next.object.oct.open.ord.pow.print.property.range.repr.reversed.round.sentinel.set.setattr.slice.sorted.staticmethod.str.sum.super.tuple.type.vars.zip`.split(`.`),literal:[`__debug__`,`Ellipsis`,`False`,`None`,`NotImplemented`,`True`],type:[`Any`,`Callable`,`Coroutine`,`Dict`,`List`,`Literal`,`Generic`,`Optional`,`Sequence`,`Set`,`Tuple`,`Type`,`Union`]},a={className:`meta`,begin:/^(>>>|\.\.\.) /},o={className:`subst`,begin:/\{/,end:/\}/,keywords:i,illegal:/#/},s={begin:/\{\{/,relevance:0},c={className:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,a,s,o]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a,s,o]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,s,o]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,o]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},l=`[0-9](_?[0-9])*`,u=`(\\b(${l}))?\\.(${l})|\\b(${l})\\.`,d=`\\b|${r.join(`|`)}`,f={className:`number`,relevance:0,variants:[{begin:`(\\b(${l})|(${u}))[eE][+-]?(${l})[jJ]?(?=${d})`},{begin:`(${u})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${d})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${d})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${d})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${d})`},{begin:`\\b(${l})[jJ](?=${d})`}]},p={className:`comment`,begin:t.lookahead(/# type:/),end:/$/,keywords:i,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},m={className:`params`,variants:[{className:``,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:[`self`,a,f,c,e.HASH_COMMENT_MODE]}]};return o.contains=[c,f,a],{name:`Python`,aliases:[`py`,`gyp`,`ipython`],unicodeRegex:!0,keywords:i,illegal:/(<\/|\?)|=>/,contains:[a,f,{scope:`variable.language`,match:/\bself\b/},{beginKeywords:`if`,relevance:0},{match:/\bor\b/,scope:`keyword`},c,p,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:`keyword`,3:`title.function`},contains:[m]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:`keyword`,3:`title.class`,6:`title.class.inherited`}},{className:`meta`,begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[f,m,c]}]}}t.exports=n})),Cp=u(((e,t)=>{function n(e){return{aliases:[`pycon`],contains:[{className:`meta.prompt`,starts:{end:/ |$/,starts:{end:`$`,subLanguage:`python`}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}t.exports=n})),wp=u(((e,t)=>{function n(e){let t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,a=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:`R`,keywords:{$pattern:n,keyword:`function if in break next repeat else for while`,literal:`NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10`,built_in:`LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm`},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:`doctag`,match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:`doctag`,begin:`@param`,end:/$/,contains:[{scope:`variable`,variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:`doctag`,match:/@[a-zA-Z]+/},{scope:`keyword`,match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:`"`,end:`"`,relevance:0},{begin:`'`,end:`'`,relevance:0}]},{relevance:0,variants:[{scope:{1:`operator`,2:`number`},match:[i,r]},{scope:{1:`operator`,2:`number`},match:[/%[^%]*%/,r]},{scope:{1:`punctuation`,2:`number`},match:[a,r]},{scope:{2:`number`},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:`operator`},match:[n,/\s+/,/<-/,/\s+/]},{scope:`operator`,relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:`punctuation`,relevance:0,match:a},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}t.exports=n})),Tp=u(((e,t)=>{function n(e){let t=e.regex,n=/(r#)?/,r=t.concat(n,e.UNDERSCORE_IDENT_RE),i=t.concat(n,e.IDENT_RE),a={scope:`title.function.invoke`,relevance:0,begin:t.concat(/\b/,/(?!(?:let|for|while|if|else|match)\b)/,i,t.lookahead(/\s*\(/))},o=`([ui](8|16|32|64|128|size)|f(16|32|64|128))?`,s=`abstract.as.async.await.become.box.break.const.continue.crate.do.dyn.else.enum.extern.false.final.fn.for.if.impl.in.let.loop.macro.match.mod.move.mut.override.priv.pub.raw.ref.return.self.Self.static.struct.super.trait.true.try.type.typeof.union.unsafe.unsized.use.virtual.where.while.yield`.split(`.`),c=[`true`,`false`,`Some`,`None`,`Ok`,`Err`],l=`drop .Copy.Send.Sized.Sync.Drop.Fn.FnMut.FnOnce.ToOwned.Clone.Debug.PartialEq.PartialOrd.Eq.Ord.AsRef.AsMut.Into.From.Default.Iterator.Extend.IntoIterator.DoubleEndedIterator.ExactSizeIterator.SliceConcatExt.ToString.assert!.assert_eq!.bitflags!.bytes!.cfg!.col!.concat!.concat_idents!.debug_assert!.debug_assert_eq!.env!.eprintln!.panic!.file!.format!.format_args!.include_bytes!.include_str!.line!.local_data_key!.module_path!.option_env!.print!.println!.select!.stringify!.try!.unimplemented!.unreachable!.vec!.write!.writeln!.macro_rules!.assert_ne!.debug_assert_ne!`.split(`.`),u=[`i8`,`i16`,`i32`,`i64`,`i128`,`isize`,`u8`,`u16`,`u32`,`u64`,`u128`,`usize`,`f16`,`f32`,`f64`,`f128`,`str`,`char`,`bool`,`Box`,`Option`,`Result`,`String`,`Vec`];return{name:`Rust`,aliases:[`rs`],keywords:{$pattern:e.IDENT_RE+`!?`,type:u,keyword:s,literal:c,built_in:l},illegal:`</`,contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(`/\\*`,`\\*/`,{contains:[`self`]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{scope:`symbol`,begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:`string`,variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:`char.escape`,match:/\\('|"|\\|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{scope:`number`,variants:[{begin:`\\b0b([01_]+)`+o},{begin:`\\b0o([0-7_]+)`+o},{begin:`\\b0x([A-Fa-f0-9_]+)`+o},{begin:`\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)`+o}],relevance:0},{begin:[/\bsafe/,/\s+/,/extern/],scope:{1:`keyword`,3:`keyword`}},{begin:[/fn/,/\s+/,r],scope:{1:`keyword`,3:`title.function`}},{scope:`meta`,begin:`#!?\\[`,end:`\\]`,contains:[{scope:`string`,begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,r],scope:{1:`keyword`,3:`keyword`,4:`variable`}},{begin:[/for/,/\s+/,r,/\s+/,/in/],scope:{1:`keyword`,3:`variable`,5:`keyword`}},{begin:[/type/,/\s+/,r],scope:{1:`keyword`,3:`title.class`}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,r],scope:{1:`keyword`,3:`title.class`}},{begin:e.IDENT_RE+`::`,keywords:{keyword:`Self`,built_in:l,type:u}},{scope:`punctuation`,begin:`->`},a]}}t.exports=n})),Ep=u(((e,t)=>{var n=e=>({IMPORTANT:{scope:`meta`,begin:`!important`},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:`number`,begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:`number`,begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:`built_in`,begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:`selector-attr`,begin:/\[/,end:/\]/,illegal:`$`,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:`number`,begin:e.NUMBER_RE+`(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?`,relevance:0},CSS_VARIABLE:{className:`attr`,begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),r=`a.abbr.address.article.aside.audio.b.blockquote.body.button.canvas.caption.cite.code.dd.del.details.dfn.div.dl.dt.em.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.html.i.iframe.img.input.ins.kbd.label.legend.li.main.mark.menu.nav.object.ol.optgroup.option.p.picture.q.quote.samp.section.select.source.span.strong.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.ul.var.video`.split(`.`),i=`defs.g.marker.mask.pattern.svg.switch.symbol.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feFlood.feGaussianBlur.feImage.feMerge.feMorphology.feOffset.feSpecularLighting.feTile.feTurbulence.linearGradient.radialGradient.stop.circle.ellipse.image.line.path.polygon.polyline.rect.text.use.textPath.tspan.foreignObject.clipPath`.split(`.`),a=[...r,...i],o=`any-hover.any-pointer.aspect-ratio.color.color-gamut.color-index.device-aspect-ratio.device-height.device-width.display-mode.forced-colors.grid.height.hover.inverted-colors.monochrome.orientation.overflow-block.overflow-inline.pointer.prefers-color-scheme.prefers-contrast.prefers-reduced-motion.prefers-reduced-transparency.resolution.scan.scripting.update.width.min-width.max-width.min-height.max-height`.split(`.`).sort().reverse(),s=`active.any-link.blank.checked.current.default.defined.dir.disabled.drop.empty.enabled.first.first-child.first-of-type.fullscreen.future.focus.focus-visible.focus-within.has.host.host-context.hover.indeterminate.in-range.invalid.is.lang.last-child.last-of-type.left.link.local-link.not.nth-child.nth-col.nth-last-child.nth-last-col.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.past.placeholder-shown.read-only.read-write.required.right.root.scope.target.target-within.user-invalid.valid.visited.where`.split(`.`).sort().reverse(),c=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),l=`accent-color.align-content.align-items.align-self.alignment-baseline.all.anchor-name.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.appearance.aspect-ratio.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.block-size.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-align.box-decoration-break.box-direction.box-flex.box-flex-group.box-lines.box-ordinal-group.box-orient.box-pack.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.corner-bottom-left-shape.corner-bottom-right-shape.corner-shape.corner-top-left-shape.corner-top-right-shape.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.cx.cy.direction.display.dominant-baseline.empty-cells.enable-background.field-sizing.fill.fill-opacity.fill-rule.filter.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.flood-color.flood-opacity.flow.font.font-display.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-smooth.font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphenate-character.hyphenate-limit-chars.hyphens.icon.image-orientation.image-rendering.image-resolution.ime-mode.initial-letter.initial-letter-align.inline-size.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.kerning.left.letter-spacing.lighting-color.line-break.line-height.line-height-step.list-style.list-style-image.list-style-position.list-style-type.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.margin-trim.marker.marker-end.marker-mid.marker-start.marks.mask.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.masonry-auto-flow.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.nav-down.nav-index.nav-left.nav-right.nav-up.none.normal.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overlay.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.paint-order.pause.pause-after.pause-before.perspective.perspective-origin.place-content.place-items.place-self.pointer-events.position.position-anchor.position-visibility.print-color-adjust.quotes.r.resize.rest.rest-after.rest-before.right.rotate.row-gap.ruby-align.ruby-position.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.scrollbar-color.scrollbar-gutter.scrollbar-width.shape-image-threshold.shape-margin.shape-outside.shape-rendering.speak.speak-as.src.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.table-layout.text-align.text-align-all.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-size-adjust.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.timeline-scope.top.touch-action.transform.transform-box.transform-origin.transform-style.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.unicode-range.user-modify.user-select.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.white-space.white-space-collapse.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.x.y.z-index.zoom`.split(`.`).sort().reverse();function u(e){let t=n(e),r=c,i=s,u=`@[a-z-]+`,d={className:`variable`,begin:`(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b`,relevance:0};return{name:`SCSS`,case_insensitive:!0,illegal:`[=/|']`,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:`selector-id`,begin:`#[A-Za-z0-9_-]+`,relevance:0},{className:`selector-class`,begin:`\\.[A-Za-z0-9_-]+`,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:`selector-tag`,begin:`\\b(`+a.join(`|`)+`)\\b`,relevance:0},{className:`selector-pseudo`,begin:`:(`+i.join(`|`)+`)`},{className:`selector-pseudo`,begin:`:(:)?(`+r.join(`|`)+`)`},d,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+l.join(`|`)+`)\\b`},{begin:`\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b`},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,d,t.HEXCOLOR,t.CSS_NUMBER_MODE,t.UNICODE_RANGE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:`@(page|font-face)`,keywords:{$pattern:u,keyword:`@page @font-face`}},{begin:`@`,end:`[{;]`,returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:o.join(` `)},contains:[{begin:u,className:`keyword`},{begin:/[a-z-]+(?=:)/,className:`attribute`},d,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}t.exports=u})),Dp=u(((e,t)=>{function n(e){return{name:`Shell Session`,aliases:[`console`,`shellsession`],contains:[{className:`meta.prompt`,begin:/^\s{0,3}[./~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:`bash`}}]}}t.exports=n})),Op=u(((e,t)=>{function n(e){let t=e.regex,n=e.COMMENT(`--`,`$`),r={scope:`string`,variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},a=[`true`,`false`,`unknown`],o=[`double precision`,`large object`,`with timezone`,`without timezone`],s=`bigint.binary.blob.boolean.char.character.clob.date.dec.decfloat.decimal.float.int.integer.interval.nchar.nclob.national.numeric.real.row.smallint.time.timestamp.varchar.varying.varbinary`.split(`.`),c=[`add`,`asc`,`collation`,`desc`,`final`,`first`,`last`,`view`],l=`abs.acos.all.allocate.alter.and.any.are.array.array_agg.array_max_cardinality.as.asensitive.asin.asymmetric.at.atan.atomic.authorization.avg.begin.begin_frame.begin_partition.between.bigint.binary.blob.boolean.both.by.call.called.cardinality.cascaded.case.cast.ceil.ceiling.char.char_length.character.character_length.check.classifier.clob.close.coalesce.collate.collect.column.commit.condition.connect.constraint.contains.convert.copy.corr.corresponding.cos.cosh.count.covar_pop.covar_samp.create.cross.cube.cume_dist.current.current_catalog.current_date.current_default_transform_group.current_path.current_role.current_row.current_schema.current_time.current_timestamp.current_path.current_role.current_transform_group_for_type.current_user.cursor.cycle.date.day.deallocate.dec.decimal.decfloat.declare.default.define.delete.dense_rank.deref.describe.deterministic.disconnect.distinct.double.drop.dynamic.each.element.else.empty.end.end_frame.end_partition.end-exec.equals.escape.every.except.exec.execute.exists.exp.external.extract.false.fetch.filter.first_value.float.floor.for.foreign.frame_row.free.from.full.function.fusion.get.global.grant.group.grouping.groups.having.hold.hour.identity.in.indicator.initial.inner.inout.insensitive.insert.int.integer.intersect.intersection.interval.into.is.join.json_array.json_arrayagg.json_exists.json_object.json_objectagg.json_query.json_table.json_table_primitive.json_value.lag.language.large.last_value.lateral.lead.leading.left.like.like_regex.listagg.ln.local.localtime.localtimestamp.log.log10.lower.match.match_number.match_recognize.matches.max.member.merge.method.min.minute.mod.modifies.module.month.multiset.national.natural.nchar.nclob.new.no.none.normalize.not.nth_value.ntile.null.nullif.numeric.octet_length.occurrences_regex.of.offset.old.omit.on.one.only.open.or.order.out.outer.over.overlaps.overlay.parameter.partition.pattern.per.percent.percent_rank.percentile_cont.percentile_disc.period.portion.position.position_regex.power.precedes.precision.prepare.primary.procedure.ptf.range.rank.reads.real.recursive.ref.references.referencing.regr_avgx.regr_avgy.regr_count.regr_intercept.regr_r2.regr_slope.regr_sxx.regr_sxy.regr_syy.release.result.return.returns.revoke.right.rollback.rollup.row.row_number.rows.running.savepoint.scope.scroll.search.second.seek.select.sensitive.session_user.set.show.similar.sin.sinh.skip.smallint.some.specific.specifictype.sql.sqlexception.sqlstate.sqlwarning.sqrt.start.static.stddev_pop.stddev_samp.submultiset.subset.substring.substring_regex.succeeds.sum.symmetric.system.system_time.system_user.table.tablesample.tan.tanh.then.time.timestamp.timezone_hour.timezone_minute.to.trailing.translate.translate_regex.translation.treat.trigger.trim.trim_array.true.truncate.uescape.union.unique.unknown.unnest.update.upper.user.using.value.values.value_of.var_pop.var_samp.varbinary.varchar.varying.versioning.when.whenever.where.width_bucket.window.with.within.without.year`.split(`.`),u=`abs.acos.array_agg.asin.atan.avg.cast.ceil.ceiling.coalesce.corr.cos.cosh.count.covar_pop.covar_samp.cume_dist.dense_rank.deref.element.exp.extract.first_value.floor.json_array.json_arrayagg.json_exists.json_object.json_objectagg.json_query.json_table.json_table_primitive.json_value.lag.last_value.lead.listagg.ln.log.log10.lower.max.min.mod.nth_value.ntile.nullif.percent_rank.percentile_cont.percentile_disc.position.position_regex.power.rank.regr_avgx.regr_avgy.regr_count.regr_intercept.regr_r2.regr_slope.regr_sxx.regr_sxy.regr_syy.row_number.sin.sinh.sqrt.stddev_pop.stddev_samp.substring.substring_regex.sum.tan.tanh.translate.translate_regex.treat.trim.trim_array.unnest.upper.value_of.var_pop.var_samp.width_bucket`.split(`.`),d=[`current_catalog`,`current_date`,`current_default_transform_group`,`current_path`,`current_role`,`current_schema`,`current_transform_group_for_type`,`current_user`,`session_user`,`system_time`,`system_user`,`current_time`,`localtime`,`current_timestamp`,`localtimestamp`],f=[`create table`,`insert into`,`primary key`,`foreign key`,`not null`,`alter table`,`add constraint`,`grouping sets`,`on overflow`,`character set`,`respect nulls`,`ignore nulls`,`nulls first`,`nulls last`,`depth first`,`breadth first`],p=u,m=[...l,...c].filter(e=>!u.includes(e)),h={scope:`variable`,match:/@[a-z0-9][a-z0-9_]*/},g={scope:`operator`,match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},_={match:t.concat(/\b/,t.either(...p),/\s*\(/),relevance:0,keywords:{built_in:p}};function v(e){return t.concat(/\b/,t.either(...e.map(e=>e.replace(/\s+/,`\\s+`))),/\b/)}let y={scope:`keyword`,match:v(f),relevance:0};function b(e,{exceptions:t,when:n}={}){let r=n;return t||=[],e.map(e=>e.match(/\|\d+$/)||t.includes(e)?e:r(e)?`${e}|0`:e)}return{name:`SQL`,case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:b(m,{when:e=>e.length<3}),literal:a,type:s,built_in:d},contains:[{scope:`type`,match:v(o)},y,_,h,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,g]}}t.exports=n})),kp=u(((e,t)=>{function n(e){return e?typeof e==`string`?e:e.source:null}function r(e){return i(`(?=`,e,`)`)}function i(...e){return e.map(e=>n(e)).join(``)}function a(e){let t=e[e.length-1];return typeof t==`object`&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function o(...e){return`(`+(a(e).capture?``:`?:`)+e.map(e=>n(e)).join(`|`)+`)`}new RegExp(o(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));var s=e=>i(/\b/,e,/\w$/.test(e)?/\b/:/\B/),c=[`Protocol`,`Type`].map(s),l=[`init`,`self`].map(s),u=[`Any`,`Self`],d=[`actor`,`any`,`associatedtype`,`async`,`await`,/as\?/,/as!/,`as`,`borrowing`,`break`,`case`,`catch`,`class`,`consume`,`consuming`,`continue`,`convenience`,`copy`,`default`,`defer`,`deinit`,`didSet`,`distributed`,`do`,`dynamic`,`each`,`else`,`enum`,`extension`,`fallthrough`,/fileprivate\(set\)/,`fileprivate`,`final`,`for`,`func`,`get`,`guard`,`if`,`import`,`indirect`,`infix`,/init\?/,/init!/,`inout`,/internal\(set\)/,`internal`,`in`,`is`,`isolated`,`nonisolated`,`lazy`,`let`,`macro`,`mutating`,`nonmutating`,/open\(set\)/,`open`,`operator`,`optional`,`override`,`package`,`postfix`,`precedencegroup`,`prefix`,/private\(set\)/,`private`,`protocol`,/public\(set\)/,`public`,`repeat`,`required`,`rethrows`,`return`,`set`,`some`,`static`,`struct`,`subscript`,`super`,`switch`,`throws`,`throw`,/try\?/,/try!/,`try`,`typealias`,/unowned\(safe\)/,/unowned\(unsafe\)/,`unowned`,`var`,`weak`,`where`,`while`,`willSet`],f=[`false`,`nil`,`true`],p=[`assignment`,`associativity`,`higherThan`,`left`,`lowerThan`,`none`,`right`],m=[`#colorLiteral`,`#column`,`#dsohandle`,`#else`,`#elseif`,`#endif`,`#error`,`#file`,`#fileID`,`#fileLiteral`,`#filePath`,`#function`,`#if`,`#imageLiteral`,`#keyPath`,`#line`,`#selector`,`#sourceLocation`,`#warning`],h=`abs.all.any.assert.assertionFailure.debugPrint.dump.fatalError.getVaList.isKnownUniquelyReferenced.max.min.numericCast.pointwiseMax.pointwiseMin.precondition.preconditionFailure.print.readLine.repeatElement.sequence.stride.swap.swift_unboxFromSwiftValueWithType.transcode.type.unsafeBitCast.unsafeDowncast.withExtendedLifetime.withUnsafeMutablePointer.withUnsafePointer.withVaList.withoutActuallyEscaping.zip`.split(`.`),g=o(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),_=o(g,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),v=i(g,_,`*`),y=o(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),b=o(y,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),x=i(y,b,`*`),S=i(/[A-Z]/,b,`*`),C=[`attached`,`autoclosure`,i(/convention\(/,o(`swift`,`block`,`c`),/\)/),`discardableResult`,`dynamicCallable`,`dynamicMemberLookup`,`escaping`,`freestanding`,`frozen`,`GKInspectable`,`IBAction`,`IBDesignable`,`IBInspectable`,`IBOutlet`,`IBSegueAction`,`inlinable`,`main`,`nonobjc`,`NSApplicationMain`,`NSCopying`,`NSManaged`,i(/objc\(/,x,/\)/),`objc`,`objcMembers`,`propertyWrapper`,`requires_stored_property_inits`,`resultBuilder`,`Sendable`,`testable`,`UIApplicationMain`,`unchecked`,`unknown`,`usableFromInline`,`warn_unqualified_access`],w=[`iOS`,`iOSApplicationExtension`,`macOS`,`macOSApplicationExtension`,`macCatalyst`,`macCatalystApplicationExtension`,`watchOS`,`watchOSApplicationExtension`,`tvOS`,`tvOSApplicationExtension`,`swift`];function T(e){let t={match:/\s+/,relevance:0},n=e.COMMENT(`/\\*`,`\\*/`,{contains:[`self`]}),a=[e.C_LINE_COMMENT_MODE,n],g={match:[/\./,o(...c,...l)],className:{2:`keyword`}},y={match:i(/\./,o(...d)),relevance:0},T=d.filter(e=>typeof e==`string`).concat([`_|0`]),E={variants:[{className:`keyword`,match:o(...d.filter(e=>typeof e!=`string`).concat(u).map(s),...l)}]},D={$pattern:o(/\b\w+/,/#\w+/),keyword:T.concat(m),literal:f},O=[g,y,E],k=[{match:i(/\./,o(...h)),relevance:0},{className:`built_in`,match:i(/\b/,o(...h),/(?=\()/)}],A={match:/->/,relevance:0},ee=[A,{className:`operator`,relevance:0,variants:[{match:v},{match:`\\.(\\.|${_})+`}]}],j=`([0-9]_*)+`,te=`([0-9a-fA-F]_*)+`,M={className:`number`,relevance:0,variants:[{match:`\\b(${j})(\\.(${j}))?([eE][+-]?(${j}))?\\b`},{match:`\\b0x(${te})(\\.(${te}))?([pP][+-]?(${j}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},ne=(e=``)=>({className:`subst`,variants:[{match:i(/\\/,e,/[0\\tnr"']/)},{match:i(/\\/,e,/u\{[0-9a-fA-F]{1,8}\}/)}]}),re=(e=``)=>({className:`subst`,match:i(/\\/,e,/[\t ]*(?:[\r\n]|\r\n)/)}),ie=(e=``)=>({className:`subst`,label:`interpol`,begin:i(/\\/,e,/\(/),end:/\)/}),ae=(e=``)=>({begin:i(e,/"""/),end:i(/"""/,e),contains:[ne(e),re(e),ie(e)]}),oe=(e=``)=>({begin:i(e,/"/),end:i(/"/,e),contains:[ne(e),ie(e)]}),N={className:`string`,variants:[ae(),ae(`#`),ae(`##`),ae(`###`),oe(),oe(`#`),oe(`##`),oe(`###`)]},se=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],ce={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:se},le=e=>{let t=i(e,/\//),n=i(/\//,e);return{begin:t,end:n,contains:[...se,{scope:`comment`,begin:`#(?!.*${n})`,end:/$/}]}},ue={scope:`regexp`,variants:[le(`###`),le(`##`),le(`#`),ce]},de={match:i(/`/,x,/`/)},fe=[de,{className:`variable`,match:/\$\d+/},{className:`variable`,match:`\\$${b}+`}],pe=[{match:/(@|#(un)?)available/,scope:`keyword`,starts:{contains:[{begin:/\(/,end:/\)/,keywords:w,contains:[...ee,M,N]}]}},{scope:`keyword`,match:i(/@/,o(...C),r(o(/\(/,/\s+/)))},{scope:`meta`,match:i(/@/,x)}],me={match:r(/\b[A-Z]/),relevance:0,contains:[{className:`type`,match:i(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,b,`+`)},{className:`type`,match:S,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:i(/\s+&\s+/,r(S)),relevance:0}]},he={begin:/</,end:/>/,keywords:D,contains:[...a,...O,...pe,A,me]};me.contains.push(he);let ge={begin:/\(/,end:/\)/,relevance:0,keywords:D,contains:[`self`,{match:i(x,/\s*:/),keywords:`_|0`,relevance:0},...a,ue,...O,...k,...ee,M,N,...fe,...pe,me]},_e={begin:/</,end:/>/,keywords:`repeat each`,contains:[...a,me]},ve={begin:/\(/,end:/\)/,keywords:D,contains:[{begin:o(r(i(x,/\s*:/)),r(i(x,/\s+/,x,/\s*:/))),end:/:/,relevance:0,contains:[{className:`keyword`,match:/\b_\b/},{className:`params`,match:x}]},...a,...O,...ee,M,N,...pe,me,ge],endsParent:!0,illegal:/["']/},ye={match:[/(func|macro)/,/\s+/,o(de.match,x,v)],className:{1:`keyword`,3:`title.function`},contains:[_e,ve,t],illegal:[/\[/,/%/]},be={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:`keyword`},contains:[_e,ve,t],illegal:/\[|%/},xe={match:[/operator/,/\s+/,v],className:{1:`keyword`,3:`title`}},Se={begin:[/precedencegroup/,/\s+/,S],className:{1:`keyword`,3:`title`},contains:[me],keywords:[...p,...f],end:/}/},Ce={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:`keyword`,3:`keyword`,5:`title.function`}},we={match:[/class\b/,/\s+/,/var\b/],scope:{1:`keyword`,3:`keyword`}},Te={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,x,/\s*/],beginScope:{1:`keyword`,3:`title.class`},keywords:D,contains:[_e,...O,{begin:/:/,end:/\{/,keywords:D,contains:[{scope:`title.class.inherited`,match:S},...O],relevance:0}]};for(let e of N.variants){let t=e.contains.find(e=>e.label===`interpol`);t.keywords=D;let n=[...O,...k,...ee,M,N,...fe];t.contains=[...n,{begin:/\(/,end:/\)/,contains:[`self`,...n]}]}return{name:`Swift`,keywords:D,contains:[...a,ye,be,Ce,we,Te,xe,Se,{beginKeywords:`import`,end:/$/,contains:[...a],relevance:0},ue,...O,...k,...ee,M,N,...fe,...pe,me,ge]}}t.exports=T})),Ap=u(((e,t)=>{function n(e){let t=`true false yes no null`,n=`[\\w#;/?:@&=+$,.~*'()[\\]]+`,r={className:`attr`,variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:`template-variable`,variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},a={className:`string`,relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:`char.escape`,relevance:0}]},o={className:`string`,relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},s=e.inherit(o,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),c={className:`number`,begin:`\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b`},l={end:`,`,endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},u={begin:/\{/,end:/\}/,contains:[l],illegal:`\\n`,relevance:0},d={begin:`\\[`,end:`\\]`,contains:[l],illegal:`\\n`,relevance:0},f=[r,{className:`meta`,begin:`^---\\s*$`,relevance:10},{className:`string`,begin:`[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*`},{begin:`<%[%=-]?`,end:`[%-]?%>`,subLanguage:`ruby`,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:`type`,begin:`!\\w+!`+n},{className:`type`,begin:`!<`+n+`>`},{className:`type`,begin:`!`+n},{className:`type`,begin:`!!`+n},{className:`meta`,begin:`&`+e.UNDERSCORE_IDENT_RE+`$`},{className:`meta`,begin:`\\*`+e.UNDERSCORE_IDENT_RE+`$`},{className:`bullet`,begin:`-(?=[ ]|$)`,relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},c,{className:`number`,begin:e.C_NUMBER_RE+`\\b`,relevance:0},u,d,a,o],p=[...f];return p.pop(),p.push(s),l.contains=p,{name:`YAML`,case_insensitive:!0,aliases:[`yml`],contains:f}}t.exports=n})),jp=u(((e,t)=>{var n=`[A-Za-z$_][0-9A-Za-z$_]*`,r=`as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using`.split(`.`),i=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],a=`Object.Function.Boolean.Symbol.Math.Date.Number.BigInt.String.RegExp.Array.Float32Array.Float64Array.Int8Array.Uint8Array.Uint8ClampedArray.Int16Array.Int32Array.Uint16Array.Uint32Array.BigInt64Array.BigUint64Array.Set.Map.WeakSet.WeakMap.ArrayBuffer.SharedArrayBuffer.Atomics.DataView.JSON.Promise.Generator.GeneratorFunction.AsyncFunction.Reflect.Proxy.Intl.WebAssembly`.split(`.`),o=[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],s=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`],c=[`arguments`,`this`,`super`,`console`,`window`,`document`,`localStorage`,`sessionStorage`,`module`,`self`,`global`],l=[].concat(s,a,o);function u(e){let t=e.regex,u=(e,{after:t})=>{let n=`</`+e[0].slice(1);return e.input.indexOf(n,t)!==-1},d=n,f={begin:`<>`,end:`</>`},p=/<[A-Za-z0-9\\._:-]+\s*\/>/,m={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{let n=e[0].length+e.index,r=e.input[n];if(r===`<`||r===`,`){t.ignoreMatch();return}r===`>`&&(u(e,{after:n})||t.ignoreMatch());let i,a=e.input.substring(n);if(i=a.match(/^\s*=/)){t.ignoreMatch();return}if((i=a.match(/^\s+extends\s+/))&&i.index===0){t.ignoreMatch();return}}},h={$pattern:n,keyword:r,literal:i,built_in:l,"variable.language":c},g=`[0-9](_?[0-9])*`,_=`\\.(${g})`,v=`0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`,y={className:`number`,variants:[{begin:`(\\b(${v})((${_})|\\.)?|(${_}))[eE][+-]?(${g})\\b`},{begin:`\\b(${v})\\b((${_})\\b|\\.)?|(${_})\\b`},{begin:`\\b(0|[1-9](_?[0-9])*)n\\b`},{begin:`\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b`},{begin:`\\b0[bB][0-1](_?[0-1])*n?\\b`},{begin:`\\b0[oO][0-7](_?[0-7])*n?\\b`},{begin:`\\b0[0-7]+n?\\b`}],relevance:0},b={className:`subst`,begin:`\\$\\{`,end:`\\}`,keywords:h,contains:[]},x={begin:".?html`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:`xml`}},S={begin:".?css`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:`css`}},C={begin:".?gql`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,b],subLanguage:`graphql`}},w={className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,b]},T={className:`comment`,variants:[e.COMMENT(/\/\*\*(?!\/)/,`\\*/`,{relevance:0,contains:[{begin:`(?=@[A-Za-z]+)`,relevance:0,contains:[{className:`doctag`,begin:`@[A-Za-z]+`},{className:`type`,begin:`\\{`,end:`\\}`,excludeEnd:!0,excludeBegin:!0,relevance:0},{className:`variable`,begin:d+`(?=\\s*(-)|$)`,endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},E=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,x,S,C,w,{match:/\$\d+/},y];b.contains=E.concat({begin:/\{/,end:/\}/,keywords:h,contains:[`self`].concat(E)});let D=[].concat(T,b.contains),O=D.concat([{begin:/(\s*)\(/,end:/\)/,keywords:h,contains:[`self`].concat(D)}]),k={className:`params`,begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:O},A={variants:[{match:[/class/,/\s+/,d,/\s+/,/extends/,/\s+/,t.concat(d,`(`,t.concat(/\./,d),`)*`)],scope:{1:`keyword`,3:`title.class`,5:`keyword`,7:`title.class.inherited`}},{match:[/class/,/\s+/,d],scope:{1:`keyword`,3:`title.class`}}]},ee={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:`title.class`,keywords:{_:[...a,...o]}},j={label:`use_strict`,className:`meta`,relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},te={variants:[{match:[/function/,/\s+/,d,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:`keyword`,3:`title.function`},label:`func.def`,contains:[k],illegal:/%/},M={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:`variable.constant`};function ne(e){return t.concat(`(?!`,e.join(`|`),`)`)}let re={match:t.concat(/\b/,ne([...s,`super`,`import`,`await`].map(e=>`${e}\\s*\\(`)),d,t.lookahead(/\s*\(/)),className:`title.function`,relevance:0},ie={begin:t.concat(/\./,t.lookahead(t.concat(d,/(?![0-9A-Za-z$_(])/))),end:d,excludeBegin:!0,keywords:`prototype`,className:`property`,relevance:0},ae={match:[/get|set/,/\s+/,d,/(?=\()/],className:{1:`keyword`,3:`title.function`},contains:[{begin:/\(\)/},k]},oe=`(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|`+e.UNDERSCORE_IDENT_RE+`)\\s*=>`,N={match:[/const|var|let/,/\s+/,d,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(oe)],keywords:`async`,className:{1:`keyword`,3:`title.function`},contains:[k]};return{name:`JavaScript`,aliases:[`js`,`jsx`,`mjs`,`cjs`],keywords:h,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:ee},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:`shebang`,binary:`node`,relevance:5}),j,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,x,S,C,w,T,{match:/\$\d+/},y,ee,{scope:`attr`,match:d+t.lookahead(`:`),relevance:0},N,{begin:`(`+e.RE_STARTERS_RE+`|\\b(case|return|throw)\\b)\\s*`,keywords:`return throw case`,relevance:0,contains:[T,e.REGEXP_MODE,{className:`function`,begin:oe,returnBegin:!0,end:`\\s*=>`,contains:[{className:`params`,variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:f.begin,end:f.end},{match:p},{begin:m.begin,"on:begin":m.isTrulyOpeningTag,end:m.end}],subLanguage:`xml`,contains:[{begin:m.begin,end:m.end,skip:!0,contains:[`self`]}]}]},te,{beginKeywords:`while if switch catch for`},{begin:`\\b(?!function)`+e.UNDERSCORE_IDENT_RE+`\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{`,returnBegin:!0,label:`func.def`,contains:[k,e.inherit(e.TITLE_MODE,{begin:d,className:`title.function`})]},{match:/\.\.\./,relevance:0},ie,{match:`\\$`+d,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:`title.function`},contains:[k]},re,M,A,ae,{match:/\$[(.]/}]}}function d(e){let t=e.regex,a=u(e),o=n,s=[`any`,`void`,`number`,`boolean`,`string`,`object`,`never`,`symbol`,`bigint`,`unknown`],d={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:`keyword`,3:`title.class`}},f={beginKeywords:`interface`,end:/\{/,excludeEnd:!0,keywords:{keyword:`interface extends`,built_in:s},contains:[a.exports.CLASS_REFERENCE]},p={className:`meta`,relevance:10,begin:/^\s*['"]use strict['"]/},m={$pattern:n,keyword:r.concat([`type`,`interface`,`public`,`private`,`protected`,`implements`,`declare`,`abstract`,`readonly`,`enum`,`override`,`satisfies`]),literal:i,built_in:l.concat(s),"variable.language":c},h={className:`meta`,begin:`@`+o},g=(e,t,n)=>{let r=e.contains.findIndex(e=>e.label===t);if(r===-1)throw Error(`can not find mode to replace`);e.contains.splice(r,1,n)};Object.assign(a.keywords,m),a.exports.PARAMS_CONTAINS.push(h);let _=a.contains.find(e=>e.scope===`attr`),v=Object.assign({},_,{match:t.concat(o,t.lookahead(/\s*\?:/))});a.exports.PARAMS_CONTAINS.push([a.exports.CLASS_REFERENCE,_,v]),a.contains=a.contains.concat([h,d,f,v]),g(a,`shebang`,e.SHEBANG()),g(a,`use_strict`,p);let y=a.contains.find(e=>e.label===`func.def`);return y.relevance=0,Object.assign(a,{name:`TypeScript`,aliases:[`ts`,`tsx`,`mts`,`cts`]}),a}t.exports=d})),Mp=u(((e,t)=>{function n(e){let t=e.regex,n={className:`string`,begin:/"(""|[^/n])"C\b/},r={className:`string`,begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,a=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,s=/\d{1,2}(:\d{1,2}){1,2}/,c={className:`literal`,variants:[{begin:t.concat(/# */,t.either(a,i),/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,o,/ *#/)},{begin:t.concat(/# */,t.either(a,i),/ +/,t.either(o,s),/ *#/)}]},l={className:`number`,relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},u={className:`label`,begin:/^\w+:/},d=e.COMMENT(/'''/,/$/,{contains:[{className:`doctag`,begin:/<\/?/,end:/>/}]}),f=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:`Visual Basic .NET`,aliases:[`vb`],case_insensitive:!0,classNameAliases:{label:`symbol`},keywords:{keyword:`addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield`,built_in:`addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort`,type:`boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort`,literal:`true false nothing`},illegal:`//|\\{|\\}|endif|gosub|variant|wend|^\\$ `,contains:[n,r,c,l,u,d,f,{className:`meta`,begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:`const disable else elseif enable end externalsource if region then`},contains:[f]}]}}t.exports=n})),Np=u(((e,t)=>{function n(e){e.regex;let t=e.COMMENT(/\(;/,/;\)/);return t.contains.push(`self`),{name:`WebAssembly`,keywords:{$pattern:/[\w.]+/,keyword:`anyfunc,block,br,br_if,br_table,call,call_indirect,data,drop,elem,else,end,export,func,global.get,global.set,local.get,local.set,local.tee,get_global,get_local,global,if,import,local,loop,memory,memory.grow,memory.size,module,mut,nop,offset,param,result,return,select,set_global,set_local,start,table,tee_local,then,type,unreachable`.split(`,`)},contains:[e.COMMENT(/;;/,/$/),t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:`keyword`,3:`operator`}},{className:`variable`,begin:/\$[\w_]+/},{match:/(\((?!;)|\))+/,className:`punctuation`,relevance:0},{begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:`keyword`,3:`title.function`}},e.QUOTE_STRING_MODE,{match:/(i32|i64|f32|f64)(?!\.)/,className:`type`},{className:`keyword`,match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/},{className:`number`,relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/}]}}t.exports=n})),Pp=p(u(((e,t)=>{var n=Zf();n.registerLanguage(`xml`,Qf()),n.registerLanguage(`bash`,$f()),n.registerLanguage(`c`,ep()),n.registerLanguage(`cpp`,tp()),n.registerLanguage(`csharp`,np()),n.registerLanguage(`css`,rp()),n.registerLanguage(`markdown`,ip()),n.registerLanguage(`diff`,ap()),n.registerLanguage(`ruby`,op()),n.registerLanguage(`go`,sp()),n.registerLanguage(`graphql`,cp()),n.registerLanguage(`ini`,lp()),n.registerLanguage(`java`,up()),n.registerLanguage(`javascript`,dp()),n.registerLanguage(`json`,fp()),n.registerLanguage(`kotlin`,pp()),n.registerLanguage(`less`,mp()),n.registerLanguage(`lua`,hp()),n.registerLanguage(`makefile`,gp()),n.registerLanguage(`perl`,_p()),n.registerLanguage(`objectivec`,vp()),n.registerLanguage(`php`,yp()),n.registerLanguage(`php-template`,bp()),n.registerLanguage(`plaintext`,xp()),n.registerLanguage(`python`,Sp()),n.registerLanguage(`python-repl`,Cp()),n.registerLanguage(`r`,wp()),n.registerLanguage(`rust`,Tp()),n.registerLanguage(`scss`,Ep()),n.registerLanguage(`shell`,Dp()),n.registerLanguage(`sql`,Op()),n.registerLanguage(`swift`,kp()),n.registerLanguage(`yaml`,Ap()),n.registerLanguage(`typescript`,jp()),n.registerLanguage(`vbnet`,Mp()),n.registerLanguage(`wasm`,Np()),n.HighlightJS=n,n.default=n,t.exports=n}))()).default;function Fp(e){return{name:`Dockerfile`,aliases:[`docker`],case_insensitive:!0,keywords:[`from`,`maintainer`,`expose`,`env`,`arg`,`user`,`onbuild`,`stopsignal`],contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:`run cmd entrypoint volume add copy workdir label healthcheck shell`,starts:{end:/[^\\]$/,subLanguage:`bash`}}],illegal:`</`}}function Ip(e){let t=e.regex,n={className:`variable`,variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:t.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},r={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:[`on`,`off`,`yes`,`no`,`true`,`false`,`none`,`blocked`,`debug`,`info`,`notice`,`warn`,`error`,`crit`,`select`,`break`,`last`,`permanent`,`redirect`,`kqueue`,`rtsig`,`epoll`,`poll`,`/dev/poll`]},relevance:0,illegal:`=>`,contains:[e.HASH_COMMENT_MODE,{className:`string`,contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:`([a-z]+):/`,end:`\\s`,endsWithParent:!0,excludeEnd:!0,contains:[n]},{className:`regexp`,contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:`\\s\\^`,end:`\\s|\\{|;`,returnEnd:!0},{begin:`~\\*?\\s+`,end:`\\s|\\{|;`,returnEnd:!0},{begin:`\\*(\\.[a-z\\-]+)+`},{begin:`([a-z\\-]+\\.)+\\*`}]},{className:`number`,begin:`\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b`},{className:`number`,begin:`\\b\\d+[kKmMgGdshdwy]?\\b`,relevance:0},n]};return{name:`Nginx config`,aliases:[`nginxconf`],contains:[e.HASH_COMMENT_MODE,{beginKeywords:`upstream location`,end:/;|\{/,contains:r.contains,keywords:{section:`upstream location`}},{className:`section`,begin:t.concat(e.UNDERSCORE_IDENT_RE+t.lookahead(/\s+\{/)),relevance:0},{begin:t.lookahead(e.UNDERSCORE_IDENT_RE+`\\s`),end:`;|\\{`,contains:[{className:`attribute`,begin:e.UNDERSCORE_IDENT_RE,starts:r}],relevance:0}],illegal:`[^\\s\\}\\{]`}}function Lp(e){let t=[`string`,`char`,`byte`,`int`,`long`,`bool`,`decimal`,`single`,`double`,`DateTime`,`xml`,`array`,`hashtable`,`void`],n={$pattern:/-?[A-z\.\-]+\b/,keyword:`if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter`,built_in:`ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write`},r=/\w[\w\d]*((-)[\w\d]+)*/,i={begin:"`[\\s\\S]",relevance:0},a={className:`variable`,variants:[{begin:/\$\B/},{className:`keyword`,begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},o={className:`literal`,begin:/\$(null|true|false)\b/},s={className:`string`,variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[i,a,{className:`variable`,begin:/\$[A-z]/,end:/[^A-z]/}]},c={className:`string`,variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},l=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[{className:`doctag`,variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]}]}),u={className:`built_in`,variants:[{begin:`(Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where)+(-)[\\w\\d]+`}]},d={className:`class`,beginKeywords:`class enum`,end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},f={className:`function`,begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:`function`,relevance:0,className:`keyword`},{className:`title`,begin:r,relevance:0},{begin:/\(/,end:/\)/,className:`params`,relevance:0,contains:[a]}]},p={begin:/using\s/,end:/$/,returnBegin:!0,contains:[s,c,{className:`keyword`,begin:/(using|assembly|command|module|namespace|type)/}]},m={variants:[{className:`operator`,begin:`(-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor)\\b`},{className:`literal`,begin:/(-){1,2}[\w\d-]+/,relevance:0}]},h={className:`selector-tag`,begin:/@\B/,relevance:0},g={className:`function`,begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:`keyword`,begin:`(${n.keyword.toString().replace(/\s/g,`|`)})\\b`,endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},_=[g,l,i,e.NUMBER_MODE,s,c,u,a,o,h],v={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[`self`].concat(_,{begin:`(`+t.join(`|`)+`)`,className:`built_in`,relevance:0},{className:`type`,begin:/[\.\w\d]+/,relevance:0})};return g.contains.unshift(v),{name:`PowerShell`,aliases:[`pwsh`,`ps`,`ps1`],case_insensitive:!0,keywords:n,contains:_.concat(d,f,p,m,v)}}Pp.registerLanguage(`dockerfile`,Fp),Pp.registerLanguage(`nginx`,Ip),Pp.registerLanguage(`powershell`,Lp);var Rp=`smarter-chat-code`,zp=`smarter-chat-code-copy`,Bp=`smarter-chat-mermaid`,Vp=`mermaid`,Hp=`Copy`,Up=`Copied!`,Wp=2e3,Gp={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function Kp(e){return e.replace(/[&<>"']/g,e=>Gp[e])}function qp(e){return(e??``).trim().split(/\s+/)[0].toLowerCase()}function Jp(e){return e.replace(/(\S)[ \t]*`{3,}[ \t]*$/,`$1`)}function Yp(e,t){return t&&Pp.getLanguage(t)?Pp.highlight(e,{language:t,ignoreIllegals:!0}).value:Kp(e)}function Xp(e,t){let n=qp(t),r=Jp(e).replace(/\n$/,``),i=n&&Pp.getLanguage(n)?`hljs language-${Kp(n)}`:`hljs`;return`<div class="${n===Vp?`${Rp} ${Bp}`:Rp}"><div class="${Rp}-header"><span class="${Rp}-language">${Kp(n)}</span><button type="button" class="${zp}" aria-label="Copy code">${Hp}</button></div><pre><code class="${i}">${Yp(r,n)}\n</code></pre></div>`}function Zp(e){if(!(e instanceof Element))return!1;let t=e.closest(`button.${zp}`),n=t?.closest(`.${Rp}`)?.querySelector(`pre code`);if(!t||!n)return!1;let r=(n.textContent??``).replace(/\n$/,``);return navigator.clipboard?.writeText(r).then(()=>{t.textContent=Up,setTimeout(()=>{t.textContent=Hp},Wp)}).catch(()=>void 0),!0}function Qp(e,t){this.v=e,this.k=t}function $p(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function em(e){if(Array.isArray(e))return e}function tm(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function nm(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
579
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rm(e,t){return em(e)||tm(e,t)||im(e,t)||nm()}function im(e,t){if(e){if(typeof e==`string`)return $p(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$p(e,t):void 0}}function am(e){var t,n;function r(t,n){try{var a=e[t](n),o=a.value,s=o instanceof Qp;Promise.resolve(s?o.v:o).then(function(n){if(s){var c=t===`return`&&o.k?t:`next`;if(!o.k||n.done)return r(c,n);n=e[c](n).value}i(!!a.done,n)},function(e){r(`throw`,e)})}catch(e){i(2,e)}}function i(e,i){e===2?t.reject(i):t.resolve({value:i,done:e}),(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(a,o){var s={key:e,arg:i,resolve:a,reject:o,next:null};n?n=n.next=s:(t=n=s,r(e,i))})},typeof e.return!=`function`&&(this.return=void 0)}am.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},am.prototype.next=function(e){return this._invoke(`next`,e)},am.prototype.throw=function(e){return this._invoke(`throw`,e)},am.prototype.return=function(e){return this._invoke(`return`,e)};var om=Object.entries,sm=Object.setPrototypeOf,cm=Object.isFrozen,lm=Object.getPrototypeOf,um=Object.getOwnPropertyDescriptor,dm=Object.freeze,fm=Object.seal,pm=Object.create,mm=typeof Reflect<`u`&&Reflect,hm=mm.apply,gm=mm.construct;dm||=function(e){return e},fm||=function(e){return e},hm||=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)},gm||=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)};var _m=Lm(Array.prototype.forEach);Array.prototype.indexOf;var vm=Lm(Array.prototype.lastIndexOf),ym=Lm(Array.prototype.pop),bm=Lm(Array.prototype.push);Array.prototype.slice;var xm=Lm(Array.prototype.splice),Sm=Array.isArray,Cm=Lm(String.prototype.toLowerCase),wm=Lm(String.prototype.toString),Tm=Lm(String.prototype.match),Em=Lm(String.prototype.replace),Dm=Lm(String.prototype.indexOf),Om=Lm(String.prototype.trim),km=Lm(Number.prototype.toString),Am=Lm(Boolean.prototype.toString),jm=typeof BigInt>`u`?null:Lm(BigInt.prototype.toString),Mm=typeof Symbol>`u`?null:Lm(Symbol.prototype.toString),Nm=Lm(Object.prototype.hasOwnProperty),Pm=Lm(Object.prototype.toString),Fm=Lm(RegExp.prototype.test),Im=Rm(TypeError);function Lm(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return hm(e,t,r)}}function Rm(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return gm(e,n)}}function zm(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Cm;if(sm&&sm(e,null),!Sm(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(cm(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Bm(e){for(let t=0;t<e.length;t++)Nm(e,t)||(e[t]=null);return e}function Vm(e){let t=pm(null);for(let r of om(e)){var n=rm(r,2);let i=n[0],a=n[1];Nm(e,i)&&(t[i]=Sm(a)?Bm(a):a&&typeof a==`object`&&a.constructor===Object?Vm(a):a)}return t}function Hm(e){switch(typeof e){case`string`:return e;case`number`:return km(e);case`boolean`:return Am(e);case`bigint`:return jm?jm(e):`0`;case`symbol`:return Mm?Mm(e):`Symbol()`;case`undefined`:return Pm(e);case`function`:case`object`:{if(e===null)return Pm(e);let t=e,n=Um(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:Pm(e)}return Pm(e)}default:return Pm(e)}}function Um(e,t){for(;e!==null;){let n=um(e,t);if(n){if(n.get)return Lm(n.get);if(typeof n.value==`function`)return Lm(n.value)}e=lm(e)}function n(){return null}return n}function Wm(e){try{return Fm(e,``),!0}catch{return!1}}var Gm=dm(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Km=dm(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),qm=dm([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Jm=dm([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),Ym=dm(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),Xm=dm([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Zm=dm([`#text`]),Qm=dm(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),$m=dm(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),eh=dm(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),th=dm([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),nh=fm(/{{[\w\W]*|^[\w\W]*}}/g),rh=fm(/<%[\w\W]*|^[\w\W]*%>/g),ih=fm(/\${[\w\W]*/g),ah=fm(/^data-[\-\w.\u00B7-\uFFFF]+$/),oh=fm(/^aria-[\-\w]+$/),sh=fm(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ch=fm(/^(?:\w+script|data):/i),lh=fm(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),uh=fm(/^html$/i),dh=fm(/^[a-z][.\w]*(-[.\w]+)+$/i),fh=fm(/<[/\w!]/g),ph=fm(/<[/\w]/g),mh=fm(/<\/no(script|embed|frames)/i),hh=fm(/\/>/i),gh={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},_h=[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`],vh=dm(zm({},_h)),yh=function(){let e={};return _m(_h,t=>{e[t]=fm(RegExp(`</`+t+`(?=[\\t\\n\\f\\r />])`,`i`))}),dm(e)}(),bh=function(){return typeof window>`u`?null:window},xh=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Sh=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Ch=function(e,t,n,r){return Nm(e,t)&&Sm(e[t])?zm(r.base?Vm(r.base):{},e[t],r.transform):n},wh=function(e,t,n){let r=Nm(e,t)?e[t]:void 0;return r&&typeof r==`object`?Vm(r):n()};function Th(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:bh(),t=e=>Th(e);if(t.version=`3.4.16`,t.removed=[],!e||!e.document||e.document.nodeType!==gh.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=Um(d,`cloneNode`),p=Um(d,`remove`),m=Um(d,`removeAttributeNode`),h=Um(d,`nextSibling`),g=Um(d,`childNodes`),_=Um(d,`parentNode`),v=Um(d,`shadowRoot`),y=Um(d,`attributes`),b=o&&o.prototype?Um(o.prototype,`nodeType`):null,x=o&&o.prototype?Um(o.prototype,`nodeName`):null,S=o&&o.prototype?Um(o.prototype,`ownerDocument`):null,C=function(e){return b?b(e):e.nodeType},w=function(e){return x?x(e):e.nodeName};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let T,E=``,D,O=!1,k=0,A=function(){if(k>0)throw Im(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},ee=function(e){A(),k++;try{return T.createHTML(e)}finally{k--}},j=function(e){A(),k++;try{return T.createScriptURL(e)}finally{k--}},te=function(){return O||=(D=xh(u,i),!0),D},M=n,ne=M.implementation,re=M.createNodeIterator,ie=M.createDocumentFragment,ae=M.getElementsByTagName,oe=r.importNode,N=Sh();t.isSupported=typeof om==`function`&&typeof _==`function`&&ne&&ne.createHTMLDocument!==void 0;let se=nh,ce=rh,le=ih,ue=ah,de=oh,fe=ch,pe=lh,me=dh,he=sh,ge=null,_e=zm({},[...Gm,...Km,...qm,...Ym,...Zm]),ve=null,ye=zm({},[...Qm,...$m,...eh,...th]),be=Object.seal(pm(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),xe=null,Se=null,Ce=Object.seal(pm(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),we=!0,Te=!0,Ee=!1,De=!0,Oe=!1,ke=!0,Ae=!1,je=!1,Me=null,Ne=null,Pe=!1,Fe=!1,Ie=!1,Le=!1,Re=!0,ze=!1,P=`user-content-`,Be=!0,Ve=!1,He={},Ue=null,We=zm({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Ge=null,Ke=zm({},[`audio`,`video`,`img`,`source`,`image`,`track`]),qe=null,Je=zm({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Ye=`http://www.w3.org/1998/Math/MathML`,Xe=`http://www.w3.org/2000/svg`,Ze=`http://www.w3.org/1999/xhtml`,Qe=Ze,$e=!1,et=null,tt=zm({},[Ye,Xe,Ze],wm),nt=dm([`mi`,`mo`,`mn`,`ms`,`mtext`]),rt=zm({},nt),it=dm([`annotation-xml`]),at=zm({},it),ot=zm({},[`title`,`style`,`font`,`a`,`script`]),st=null,ct=[`application/xhtml+xml`,`text/html`],lt=null,ut=null,dt=n.createElement(`form`),ft=function(e){return e instanceof RegExp||e instanceof Function},pt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ut&&ut===e)return;(!e||typeof e!=`object`)&&(e={}),e=Vm(e),st=ct.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,lt=st===`application/xhtml+xml`?wm:Cm,ge=Ch(e,`ALLOWED_TAGS`,_e,{transform:lt}),ve=Ch(e,`ALLOWED_ATTR`,ye,{transform:lt}),et=Ch(e,`ALLOWED_NAMESPACES`,tt,{transform:wm}),qe=Ch(e,`ADD_URI_SAFE_ATTR`,Je,{transform:lt,base:Je}),Ge=Ch(e,`ADD_DATA_URI_TAGS`,Ke,{transform:lt,base:Ke}),Ue=Ch(e,`FORBID_CONTENTS`,We,{transform:lt}),xe=Ch(e,`FORBID_TAGS`,Vm({}),{transform:lt}),Se=Ch(e,`FORBID_ATTR`,Vm({}),{transform:lt}),He=Nm(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?Vm(e.USE_PROFILES):e.USE_PROFILES:!1,we=e.ALLOW_ARIA_ATTR!==!1,Te=e.ALLOW_DATA_ATTR!==!1,Ee=e.ALLOW_UNKNOWN_PROTOCOLS||!1,De=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Oe=e.SAFE_FOR_TEMPLATES||!1,ke=e.SAFE_FOR_XML!==!1,Ae=e.WHOLE_DOCUMENT||!1,Fe=e.RETURN_DOM||!1,Ie=e.RETURN_DOM_FRAGMENT||!1,Le=e.RETURN_TRUSTED_TYPE||!1,Pe=e.FORCE_BODY||!1,Re=e.SANITIZE_DOM!==!1,ze=e.SANITIZE_NAMED_PROPS||!1,Be=e.KEEP_CONTENT!==!1,Ve=e.IN_PLACE||!1,he=Wm(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:sh,Qe=typeof e.NAMESPACE==`string`?e.NAMESPACE:Ze,rt=wh(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>zm({},nt)),at=wh(e,`HTML_INTEGRATION_POINTS`,()=>zm({},it));let t=wh(e,`CUSTOM_ELEMENT_HANDLING`,()=>pm(null));if(be=pm(null),Nm(t,`tagNameCheck`)&&ft(t.tagNameCheck)&&(be.tagNameCheck=t.tagNameCheck),Nm(t,`attributeNameCheck`)&&ft(t.attributeNameCheck)&&(be.attributeNameCheck=t.attributeNameCheck),Nm(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(be.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),fm(be),Oe&&(Te=!1),Ie&&(Fe=!0),He&&(ge=zm({},Zm),ve=pm(null),He.html===!0&&(zm(ge,Gm),zm(ve,Qm)),He.svg===!0&&(zm(ge,Km),zm(ve,$m),zm(ve,th)),He.svgFilters===!0&&(zm(ge,qm),zm(ve,$m),zm(ve,th)),He.mathMl===!0&&(zm(ge,Ym),zm(ve,eh),zm(ve,th))),Ce.tagCheck=null,Ce.attributeCheck=null,Nm(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?Ce.tagCheck=e.ADD_TAGS:Sm(e.ADD_TAGS)&&(ge===_e&&(ge=Vm(ge)),zm(ge,e.ADD_TAGS,lt))),Nm(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?Ce.attributeCheck=e.ADD_ATTR:Sm(e.ADD_ATTR)&&(ve===ye&&(ve=Vm(ve)),zm(ve,e.ADD_ATTR,lt))),Nm(e,`ADD_FORBID_CONTENTS`)&&Sm(e.ADD_FORBID_CONTENTS)&&(Ue===We&&(Ue=Vm(Ue)),zm(Ue,e.ADD_FORBID_CONTENTS,lt)),Be&&(ge[`#text`]=!0),Ae&&zm(ge,[`html`,`head`,`body`]),ge.table&&(zm(ge,[`tbody`]),delete xe.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Im(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Im(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=T;T=e.TRUSTED_TYPES_POLICY;try{E=ee(``)}catch(e){throw T=t,e}}else e.TRUSTED_TYPES_POLICY===null?(T=void 0,E=``):(T===void 0&&(T=te()),T&&typeof E==`string`&&(E=ee(``)));dm&&dm(e),ut=e},mt=zm({},[...Km,...qm,...Jm]),ht=zm({},[...Ym,...Xm]),gt=function(e,t,n){return t.namespaceURI===Ze?e===`svg`:t.namespaceURI===Ye?e===`svg`&&(n===`annotation-xml`||rt[n]):!!mt[e]},_t=function(e,t,n){return t.namespaceURI===Ze?e===`math`:t.namespaceURI===Xe?e===`math`&&at[n]:!!ht[e]},vt=function(e,t,n){return t.namespaceURI===Xe&&!at[n]||t.namespaceURI===Ye&&!rt[n]?!1:!ht[e]&&(ot[e]||!mt[e])},yt=function(e){let t=_(e);(!t||!t.tagName)&&(t={namespaceURI:Qe,tagName:`template`});let n=Cm(e.tagName),r=Cm(t.tagName);return et[e.namespaceURI]?e.namespaceURI===Xe?gt(n,t,r):e.namespaceURI===Ye?_t(n,t,r):e.namespaceURI===Ze?vt(n,t,r):!!(st===`application/xhtml+xml`&&et[e.namespaceURI]):!1},bt=function(e){bm(t.removed,{element:e});try{_(e).removeChild(e)}catch{if(p(e),!_(e))throw Im(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},xt=function(e,t,n){try{m(e,t)}catch{try{e.removeAttribute(n)}catch{}}},St=function(e){Tt(e);let t=g(e);if(t){let e=[];_m(t,t=>{bm(e,t)}),_m(e,e=>{try{p(e)}catch{}})}let n=y(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&xt(e,r,i)}},Ct=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}bm(t.removed,{attribute:r||null,from:n});try{r?m(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(Fe||Ie)try{bt(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},wt=function(e){let t=y(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||ve[lt(i)]||xt(e,r,i)}},Tt=function(e){let t=[e];for(;t.length>0;){let e=t.pop();C(e)===gh.element&&wt(e);let n=g(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},Et=function(e,t){return ke?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},Dt=function(e){if(!ke)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=C(e);if(n===gh.processingInstruction||n===gh.comment&&Fm(ph,e.data)){try{p(e)}catch{}continue}if(n===gh.element){let t=e,n=lt(w(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&Et(`for`,n)&&t.removeAttribute(`for`)}catch{}}let r=g(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},Ot=function(e){let t=null,r=null;if(Pe)e=`<remove></remove>`+e;else{let t=Tm(e,/^[\r\n\t ]+/);r=t&&t[0]}st===`application/xhtml+xml`&&Qe===Ze&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=T?ee(e):e;if(Qe===Ze)try{t=new l().parseFromString(i,st)}catch{}if(!t||!t.documentElement){t=ne.createDocument(Qe,`template`,null);try{t.documentElement.innerHTML=$e?E:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Qe===Ze?ae.call(t,Ae?`html`:`body`)[0]:Ae?t.documentElement:a},kt=function(e){let t=S?S(e):e.ownerDocument;return re.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},At=function(e){return e=Em(e,se,` `),e=Em(e,ce,` `),e=Em(e,le,` `),e},jt=function(e){e.normalize();let t=S?S(e):e.ownerDocument,n=re.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=At(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&_m(i,e=>{Nt(e.content)&&jt(e.content)})},Mt=function(e){let t=x?x(e):null;return typeof t!=`string`||lt(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==y(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==b(e)||e.childNodes!==g(e)},Nt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return b(e)===gh.documentFragment}catch{return!1}},Pt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return typeof b(e)==`number`}catch{return!1}};function Ft(e,n,r){e.length!==0&&_m(e,e=>{e.call(t,n,r,ut)})}let It=function(e,t){return!!(ke&&e.hasChildNodes()&&!Pt(e.firstElementChild)&&Fm(fh,e.textContent)&&Fm(fh,e.innerHTML)||ke&&e.namespaceURI===Ze&&vh[t]&&(Pt(e.firstElementChild)||typeof e.textContent==`string`&&Fm(yh[t],e.textContent))||e.nodeType===gh.processingInstruction||ke&&e.nodeType===gh.comment&&Fm(ph,e.data))},Lt=function(e,t){if(e instanceof RegExp)return Fm(e,t);if(e instanceof Function){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return!!e(t,...r)}return!1},Rt=function(e,t,n){if(!xe[t]&&Wt(t)&&Lt(be.tagNameCheck,t))return!1;if(Be&&!Ue[t]){let t=_(e),r=g(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,h(e))}}}return bt(e),!0},zt=function(e,t,n,r){return e.length===0?t:t===n||t===r?Vm(t):t},Bt=function(e,t){return e===t||_(e)!==null?!1:(Ve&&Tt(e),!0)},Vt=function(e,n){if(Ft(N.beforeSanitizeElements,e,null),Bt(e,n))return!0;if(Mt(e))return bt(e),!0;let r=lt(w(e));if(ge=zt(N.uponSanitizeElement,ge,_e,Me),Ft(N.uponSanitizeElement,e,{tagName:r,allowedTags:ge}),Bt(e,n))return!0;if(It(e,r))return bt(e),!0;if(xe[r]||!(Ce.tagCheck instanceof Function&&Ce.tagCheck(r))&&!ge[r]){let t=Rt(e,r,n);return t===!1&&(Ft(N.afterSanitizeElements,e,null),Bt(e,n))?!0:t}if(C(e)===gh.element&&!yt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&Fm(mh,e.innerHTML))return bt(e),!0;if(Oe&&e.nodeType===gh.text){let n=At(e.textContent);e.textContent!==n&&(bm(t.removed,{element:e.cloneNode()}),e.textContent=n)}return Ft(N.afterSanitizeElements,e,null),Bt(e,n)},Ht=function(e,t,r){if(Se[t]||Et(t,e)||Re&&(t===`id`||t===`name`)&&(r in n||r in dt))return!1;let i=ve[t]||Ce.attributeCheck instanceof Function&&Ce.attributeCheck(t,e);return Te&&Fm(ue,t)||we&&Fm(de,t)?!0:i?qe[t]||Fm(he,Em(r,pe,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Dm(r,`data:`)===0&&Ge[e]||Ee&&!Fm(fe,Em(r,pe,``))?!0:!r:Wt(e)&&Lt(be.tagNameCheck,e)&&Lt(be.attributeNameCheck,t,e)||t===`is`&&be.allowCustomizedBuiltInElements&&Lt(be.tagNameCheck,r)},Ut=zm({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Wt=function(e){return!Ut[Cm(e)]&&Fm(me,e)},Gt=function(e,t,n,r){if(T&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return ee(r);case`TrustedScriptURL`:return j(r)}return r},Kt=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!Mt(e)||(bt(e),!1)}catch{return Ct(t,e),!1}},qt=function(e,n){if(Ft(N.beforeSanitizeAttributes,e,null),Bt(e,n))return;let r=e.attributes;if(!r||Mt(e))return;ve=zt(N.uponSanitizeAttribute,ve,ye,Ne);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:ve,forceKeepAttr:void 0},a=r.length,o=lt(e.nodeName);for(;a--;){let n=r[a],s=n.name,c=n.namespaceURI,l=n.value,u=lt(s),d=l,f=s===`value`?d:Om(d),p=!1;if(i.attrName=u,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,Ft(N.uponSanitizeAttribute,e,i),f=i.attrValue,ze&&(u===`id`||u===`name`)&&Dm(f,P)!==0&&(Ct(s,e,n),f=P+f,p=!0),ke&&Fm(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){Ct(s,e,n);continue}if(u===`attributename`&&Tm(f,`href`)){Ct(s,e,n);continue}if(!i.forceKeepAttr){if(!i.keepAttr){Ct(s,e,n);continue}if(!De&&Fm(hh,f)){Ct(s,e,n);continue}if(Oe&&(f=At(f)),!Ht(o,u,f)){Ct(s,e,n);continue}f=Gt(o,u,c,f),f!==d&&Kt(e,s,c,f)&&p&&ym(t.removed)}}Ft(N.afterSanitizeAttributes,e,null),Bt(e,n)},Jt=function(e){let t=null,n=kt(e);for(Ft(N.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(Ft(N.uponSanitizeShadowNode,t,null),Vt(t,e),qt(t,e),Nt(t.content)&&Jt(t.content),C(t)===gh.element){let e=v(t);Nt(e)&&(Yt(e),Jt(e))}Ft(N.afterSanitizeShadowDOM,e,null)},Yt=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Jt(e.shadow);continue}let n=e.node,r=C(n)===gh.element,i=g(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=x?x(n):null;if(typeof e==`string`&<(e)===`template`){let e=n.content;Nt(e)&&t.push({node:e,shadow:null})}}if(r){let e=v(n);Nt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if($e=!e,$e&&(e=`<!-->`),typeof e!=`string`&&!Pt(e)&&(e=Hm(e),typeof e!=`string`))throw Im(`dirty is not a string, aborting`);if(!t.isSupported)return e;je?(ge=Me,ve=Ne):pt(n),(N.uponSanitizeElement.length>0||N.uponSanitizeAttribute.length>0)&&(ge=Vm(ge)),N.uponSanitizeAttribute.length>0&&(ve=Vm(ve)),t.removed=[];let c=Ve&&typeof e!=`string`&&Pt(e);if(c){Dt(e);let t=w(e);if(typeof t==`string`){let n=lt(t);if(!ge[n]||xe[n])throw St(e),Im(`root node is forbidden and cannot be sanitized in-place`)}if(Mt(e))throw St(e),Im(`root node is clobbered and cannot be sanitized in-place`);try{Yt(e)}catch(t){throw St(e),t}}else if(Pt(e))i=Ot(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===gh.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Yt(i);else{if(!Fe&&!Oe&&!Ae&&e.indexOf(`<`)===-1)return T&&Le?ee(e):e;if(i=Ot(e),!i)return Fe?null:Le?E:``}i&&Pe&&bt(i.firstChild);let l=c?e:i;try{let e=kt(l);for(;o=e.nextNode();)Vt(o,l),qt(o,l),Nt(o.content)&&Jt(o.content)}catch(n){throw c&&(St(e),_m(t.removed,e=>{e.element&&Tt(e.element)})),n}if(c){let n=!1;if(_m(t.removed,t=>{t.element&&(t.element===e&&(n=!0),Tt(t.element))}),n)throw Im(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return Oe&&jt(e),e}if(Fe){if(Oe&&jt(i),Ie)for(s=ie.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(ve.shadowroot||ve.shadowrootmode)&&(s=oe.call(r,s,!0)),s}let u=Ae?i.outerHTML:i.innerHTML;return Ae&&ge[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Fm(uh,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
580
|
+
`+u),Oe&&(u=At(u)),T&&Le?ee(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};pt(e),je=!0,Me=ge,Ne=ve},t.clearConfig=function(){ut=null,je=!1,Me=null,Ne=null,T=D,E=``},t.isValidAttribute=function(e,t,n){ut||pt({});let r=lt(e),i=lt(t);return Ht(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&Nm(N,e)&&bm(N[e],t)},t.removeHook=function(e,t){if(Nm(N,e)){if(t!==void 0){let n=vm(N[e],t);return n===-1?void 0:xm(N[e],n,1)[0]}return ym(N[e])}},t.removeHooks=function(e){Nm(N,e)&&(N[e]=[])},t.removeAllHooks=function(){N=Sh()},t}var Eh=Th(),Dh=`smarter-chat-mermaid-diagram`,Oh=`smarter-chat-mermaid-toggle`,kh={label:`Code`,name:`Show the diagram's code`},Ah={label:`Diagram`,name:`Show the diagram`},jh=[`#2563eb`,`#dc2626`,`#16a34a`,`#d97706`,`#7c3aed`,`#0891b2`,`#db2777`,`#65a30d`],Mh={xyChart:{plotColorPalette:jh.join(`, `)},...Object.fromEntries(jh.map((e,t)=>[`pie${t+1}`,e]))},Nh=null,Ph=0,Fh=new Map;function Ih(){return Nh??=import(`mermaid`).then(({default:e})=>(e.initialize({startOnLoad:!1,securityLevel:`strict`,htmlLabels:!1,theme:`neutral`,themeVariables:Mh}),e)).catch(e=>{throw Nh=null,e}),Nh}function Lh(e){return Eh.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},ADD_TAGS:[`style`]})}function Rh(e){return e.replace(/"[^"\n]*"/g,e=>e.replace(/>/g,`#gt;`))}async function zh(e){let t=await Ih(),n=Rh(e);try{if(!await t.parse(n,{suppressErrors:!0}))return null;Ph+=1;let{svg:e}=await t.render(`smarter-chat-mermaid-${Ph}`,n);return Lh(e)}catch{return null}}function Bh(e){let t=Fh.get(e);return t||(t=zh(e).catch(()=>(Fh.delete(e),null)),Fh.set(e,t)),t}function Vh(e,t){let n=e.querySelector(`pre`),r=e.querySelector(`.${Rp}-header .${zp}`);if(!n||!r)return;let i=document.createElement(`div`);i.className=Dh,i.setAttribute(`role`,`figure`),i.setAttribute(`aria-label`,`Diagram`),i.innerHTML=t,n.before(i),n.hidden=!0;let a=document.createElement(`button`);a.type=`button`,a.className=Oh,a.textContent=kh.label,a.setAttribute(`aria-label`,kh.name),r.before(a)}async function Hh(e){if(!e)return;let t=[...e.querySelectorAll(`.${Bp}:not([data-diagram])`)];await Promise.all(t.map(async e=>{e.dataset.diagram=`pending`;let t=await Bh((e.querySelector(`pre code`)?.textContent??``).replace(/\n$/,``));if(!e.isConnected){delete e.dataset.diagram;return}t&&Vh(e,t),e.dataset.diagram=t?`rendered`:`failed`}))}function Uh(e){if(!(e instanceof Element))return!1;let t=e.closest(`button.${Oh}`),n=t?.closest(`.${Bp}`),r=n?.querySelector(`.${Dh}`),i=n?.querySelector(`pre`);if(!t||!r||!i)return!1;let a=i.hidden;i.hidden=!a,r.hidden=a;let o=a?Ah:kh;return t.textContent=o.label,t.setAttribute(`aria-label`,o.name),!0}var Wh=33.33,Gh=`smarter-chat.chat-width`,Kh=`smarter-chat.console-visible`,qh=`smarter-chat.log-wrap`;function Jh(e){return Math.min(80,Math.max(20,e))}function Yh(e){try{return window.localStorage.getItem(e)}catch{return null}}function Xh(e,t){try{window.localStorage.setItem(e,t)}catch{}}function Zh(e,n,r){let[i,a]=(0,t.useState)(()=>n(Yh(e)));return[i,(0,t.useCallback)(t=>{a(n=>{let i=typeof t==`function`?t(n):t;return Xh(e,r(i)),i})},[e,r])]}function Qh(e){let t=Number(e);return e&&Number.isFinite(t)?Jh(t):Wh}function $h(e){return e!==`false`}function eg(){return Zh(Kh,$h,String)}function tg(){return Zh(qh,e=>e===`true`,String)}function ng(e){let[n,r]=Zh(Gh,Qh,String),i=(0,t.useRef)(!1),a=t=>{let n=e.current?.getBoundingClientRect();return!n||n.width<=0?null:Jh((t-n.left)/n.width*100)};return{chatWidth:n,separatorProps:{role:`separator`,tabIndex:0,"aria-orientation":`vertical`,"aria-label":`Resize the chat and the Console`,"aria-valuenow":Math.round(n),"aria-valuemin":20,"aria-valuemax":80,onPointerDown:e=>{i.current=!0,e.currentTarget.setPointerCapture?.(e.pointerId),e.preventDefault()},onPointerMove:e=>{if(!i.current)return;let t=a(e.clientX);t!==null&&r(t)},onPointerUp:e=>{i.current=!1,e.currentTarget.releasePointerCapture?.(e.pointerId)},onDoubleClick:()=>r(Wh),onKeyDown:e=>{let t={ArrowLeft:e=>e-5,ArrowRight:e=>e+5,Home:()=>20,End:()=>80}[e.key];t&&(e.preventDefault(),r(e=>Jh(t(e))))}}}}var rg=2e3;function ig(e,t=null){if(!e||!t)return e;let n=new URL(e,window.location.href);return n.searchParams.set(`level`,t),n.toString()}function ag(e){try{let t=JSON.parse(e);if(t&&typeof t==`object`&&`message`in t)return t}catch{}return{message:e}}function og(e,t){let n=typeof e.timestamp==`string`?Number(e.timestamp):e.timestamp;return typeof n==`number`&&Number.isFinite(n)&&n<t}function sg(e){return e.length>2e3?e.slice(e.length-rg):e}function cg(e){let[n,r]=(0,t.useState)([]),[i,a]=(0,t.useState)(!1),[o,s]=(0,t.useState)(null),c=(0,t.useRef)(0),l=(0,t.useCallback)(()=>{c.current=Date.now()/1e3,r([])},[]);return(0,t.useEffect)(()=>{if(!e||typeof EventSource>`u`)return;let t=new EventSource(e,{withCredentials:!0});return t.onopen=()=>{a(!0),s(null)},t.addEventListener(`bulk`,e=>{try{let t=JSON.parse(e.data);if(!Array.isArray(t))return;let n=t.map(e=>ag(JSON.stringify(e)));r(sg(n.filter(e=>!og(e,c.current))))}catch{}}),t.onmessage=e=>{let t=ag(e.data);og(t,c.current)||r(e=>sg([...e,t]))},t.onerror=()=>{a(!1),s(`The log stream disconnected. Reconnecting...`)},()=>{t.close(),a(!1)}},[e]),{logs:n,connected:i,error:o,clear:l}}function lg(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ug=lg();function dg(e){ug=e}var fg=/[&<>"']/,pg=new RegExp(fg.source,`g`),mg=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,hg=new RegExp(mg.source,`g`),gg={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},_g=e=>gg[e];function vg(e,t){if(t){if(fg.test(e))return e.replace(pg,_g)}else if(mg.test(e))return e.replace(hg,_g);return e}var yg=/(^|[^\[])\^/g;function bg(e,t){let n=typeof e==`string`?e:e.source;t||=``;let r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(yg,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}function xg(e){try{e=encodeURI(e).replace(/%25/g,`%`)}catch{return null}return e}var Sg={exec:()=>null};function Cg(e,t){let n=e.replace(/\|/g,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(/ \|/),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``)}for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,`|`);return n}function wg(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function Tg(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return-1}function Eg(e,t,n,r){let i=t.href,a=t.title?vg(t.title):null,o=e[1].replace(/\\([\[\]])/g,`$1`);if(e[0].charAt(0)!==`!`){r.state.inLink=!0;let e={type:`link`,raw:n,href:i,title:a,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,e}return{type:`image`,raw:n,href:i,title:a,text:vg(o)}}function Dg(e,t){let n=e.match(/^(\s+)(?:```)/);if(n===null)return t;let r=n[1];return t.split(`
|
|
581
|
+
`).map(e=>{let t=e.match(/^\s+/);if(t===null)return e;let[n]=t;return n.length>=r.length?e.slice(r.length):e}).join(`
|
|
582
|
+
`)}var Og=class{options;rules;lexer;constructor(e){this.options=e||ug}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(/^ {1,4}/gm,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:wg(e,`
|
|
583
|
+
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=Dg(e,t[3]||``);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){let t=wg(e,`#`);(this.options.pedantic||!t||/ $/.test(t))&&(e=t.trim())}return{type:`heading`,raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:wg(t[0],`
|
|
584
|
+
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=wg(t[0],`
|
|
585
|
+
`).split(`
|
|
586
|
+
`),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o=0;for(;o<e.length;o++)if(/^ {0,3}>/.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
|
|
587
|
+
`),c=s.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
|
|
588
|
+
$1`).replace(/^ {0,3}>[ \t]?/gm,``);n=n?`${n}\n${s}`:s,r=r?`${r}\n${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i[i.length-1];if(u?.type===`code`)break;if(u?.type===`blockquote`){let t=u,a=t.raw+`
|
|
589
|
+
`+e.join(`
|
|
590
|
+
`),o=this.blockquote(a);i[i.length-1]=o,n=n.substring(0,n.length-t.raw.length)+o.raw,r=r.substring(0,r.length-t.text.length)+o.text;break}if(u?.type===`list`){let t=u,a=t.raw+`
|
|
591
|
+
`+e.join(`
|
|
592
|
+
`),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i[i.length-1].raw.length).split(`
|
|
593
|
+
`);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=RegExp(`^( {0,3}${n})((?:[\t ][^\\n]*)?(?:\\n|$))`),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=t[2].split(`
|
|
594
|
+
`,1)[0].replace(/^\t+/,e=>` `.repeat(3*e.length)),l=e.split(`
|
|
595
|
+
`,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=t[2].search(/[^ ]/),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&/^ *$/.test(l)&&(r+=l+`
|
|
596
|
+
`,e=e.substring(l.length+1),n=!0),!n){let t=RegExp(`^ {0,${Math.min(3,d-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),n=RegExp(`^ {0,${Math.min(3,d-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),i=RegExp(`^ {0,${Math.min(3,d-1)}}(?:\`\`\`|~~~)`),a=RegExp(`^ {0,${Math.min(3,d-1)}}#`);for(;e;){let o=e.split(`
|
|
597
|
+
`,1)[0];if(l=o,this.options.pedantic&&(l=l.replace(/^ {1,4}(?=( {4})*[^ ])/g,` `)),i.test(l)||a.test(l)||t.test(l)||n.test(e))break;if(l.search(/[^ ]/)>=d||!l.trim())s+=`
|
|
598
|
+
`+l.slice(d);else{if(u||c.search(/[^ ]/)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=`
|
|
599
|
+
`+l}!u&&!l.trim()&&(u=!0),r+=o+`
|
|
600
|
+
`,e=e.substring(o.length+1),c=l.slice(d)}}i.loose||(o?i.loose=!0:/\n *\n *$/.test(r)&&(o=!0));let f=null,p;this.options.gfm&&(f=/^\[[ xX]\] /.exec(s),f&&(p=f[0]!==`[ ] `,s=s.replace(/^\[[ xX]\] +/,``))),i.items.push({type:`list_item`,raw:r,task:!!f,checked:p,loose:!1,text:s,tokens:[]}),i.raw+=r}i.items[i.items.length-1].raw=i.items[i.items.length-1].raw.trimEnd(),i.items[i.items.length-1].text=i.items[i.items.length-1].text.trimEnd(),i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[e].tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>/\n.*\n/.test(e.raw))}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:`html`,block:!0,raw:t[0],pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(/\s+/g,` `),n=t[2]?t[2].replace(/^<(.*)>$/,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!/[:|]/.test(t[2]))return;let n=Cg(t[1]),r=t[2].replace(/^\||\| *$/g,``).split(`|`),i=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,``).split(`
|
|
601
|
+
`):[],a={type:`table`,raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)/^ *-+: *$/.test(e)?a.align.push(`right`):/^ *:-+: *$/.test(e)?a.align.push(`center`):/^ *:-+ *$/.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(Cg(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:`heading`,raw:t[0],depth:t[2].charAt(0)===`=`?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
|
|
602
|
+
`?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:vg(t[1])}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;let t=wg(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=Tg(t[2],`()`);if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),Eg(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(/\s+/g,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return Eg(n,e,n[0],this.lexer)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(r&&!(r[3]&&n.match(/[\p{L}\p{N}]/u))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g,` `),n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=vg(e,!0),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:`del`,raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=vg(t[1]),n=`mailto:`+e):(e=vg(t[1]),n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=vg(t[0]),n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=vg(t[0]),n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e;return e=this.lexer.state.inRawBlock?t[0]:vg(t[0]),{type:`text`,raw:t[0],text:e}}}},kg=/^(?: *(?:\n|$))+/,Ag=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,jg=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Mg=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ng=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Pg=/(?:[*+-]|\d{1,9}[.)])/,Fg=bg(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Pg).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),Ig=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Lg=/^[^\n]+/,Rg=/(?!\s*\])(?:\\.|[^\[\]\\])+/,zg=bg(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace(`label`,Rg).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Bg=bg(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Pg).getRegex(),Vg=`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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,Hg=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ug=bg(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))`,`i`).replace(`comment`,Hg).replace(`tag`,Vg).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Wg=bg(Ig).replace(`hr`,Mg).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Vg).getRegex(),Gg={blockquote:bg(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,Wg).getRegex(),code:Ag,def:zg,fences:jg,heading:Ng,hr:Mg,html:Ug,lheading:Fg,list:Bg,newline:kg,paragraph:Wg,table:Sg,text:Lg},Kg=bg(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,Mg).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,` {4}[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Vg).getRegex(),qg={...Gg,table:Kg,paragraph:bg(Ig).replace(`hr`,Mg).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,Kg).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Vg).getRegex()},Jg={...Gg,html:bg(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,Hg).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Sg,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:bg(Ig).replace(`hr`,Mg).replace(`heading`,` *#{1,6} *[^
|
|
603
|
+
]`).replace(`lheading`,Fg).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},Yg=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Xg=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Zg=/^( {2,}|\\)\n(?!\s*$)/,Qg=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,$g=`\\p{P}\\p{S}`,e_=bg(/^((?![*_])[\spunctuation])/,`u`).replace(/punctuation/g,$g).getRegex(),t_=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,n_=bg(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,`u`).replace(/punct/g,$g).getRegex(),r_=bg(`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])`,`gu`).replace(/punct/g,$g).getRegex(),i_=bg(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])`,`gu`).replace(/punct/g,$g).getRegex(),a_=bg(/\\([punct])/,`gu`).replace(/punct/g,$g).getRegex(),o_=bg(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),s_=bg(Hg).replace(`(?:-->|$)`,`-->`).getRegex(),c_=bg(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,s_).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),l_=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,u_=bg(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace(`label`,l_).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),d_=bg(/^!?\[(label)\]\[(ref)\]/).replace(`label`,l_).replace(`ref`,Rg).getRegex(),f_=bg(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,Rg).getRegex(),p_={_backpedal:Sg,anyPunctuation:a_,autolink:o_,blockSkip:t_,br:Zg,code:Xg,del:Sg,emStrongLDelim:n_,emStrongRDelimAst:r_,emStrongRDelimUnd:i_,escape:Yg,link:u_,nolink:f_,punctuation:e_,reflink:d_,reflinkSearch:bg(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,d_).replace(`nolink`,f_).getRegex(),tag:c_,text:Qg,url:Sg},m_={...p_,link:bg(/^!?\[(label)\]\((.*?)\)/).replace(`label`,l_).getRegex(),reflink:bg(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,l_).getRegex()},h_={...p_,escape:bg(Yg).replace(`])`,`~|])`).getRegex(),url:bg(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,`i`).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},g_={...h_,br:bg(Zg).replace(`{2,}`,`*`).getRegex(),text:bg(h_.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},__={normal:Gg,gfm:qg,pedantic:Jg},v_={normal:p_,gfm:h_,breaks:g_,pedantic:m_},y_=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ug,this.options.tokenizer=this.options.tokenizer||new Og,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={block:__.normal,inline:v_.normal};this.options.pedantic?(t.block=__.pedantic,t.inline=v_.pedantic):this.options.gfm&&(t.block=__.gfm,t.inline=this.options.breaks?v_.breaks:v_.gfm),this.tokenizer.rules=t}static get rules(){return{block:__,inline:v_}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(/\r\n|\r/g,`
|
|
604
|
+
`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){e=this.options.pedantic?e.replace(/\t/g,` `).replace(/^ +$/gm,``):e.replace(/^( *)(\t+)/gm,(e,t,n)=>t+` `.repeat(n.length));let r,i,a;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))){if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length),r.raw.length===1&&t.length>0?t[t.length-1].raw+=`
|
|
605
|
+
`:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length),i=t[t.length-1],i&&(i.type===`paragraph`||i.type===`text`)?(i.raw+=`
|
|
606
|
+
`+r.raw,i.text+=`
|
|
607
|
+
`+r.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length),i=t[t.length-1],i&&(i.type===`paragraph`||i.type===`text`)?(i.raw+=`
|
|
608
|
+
`+r.raw,i.text+=`
|
|
609
|
+
`+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(a=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(a))){i=t[t.length-1],n&&i?.type===`paragraph`?(i.raw+=`
|
|
610
|
+
`+r.raw,i.text+=`
|
|
611
|
+
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(r),n=a.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length),i=t[t.length-1],i&&i.type===`text`?(i.raw+=`
|
|
612
|
+
`+r.raw,i.text+=`
|
|
613
|
+
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r,i,a=e,o,s,c;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)e.includes(o[0].slice(o[0].lastIndexOf(`[`)+1,-1))&&(a=a.slice(0,o.index)+`[`+`a`.repeat(o[0].length-2)+`]`+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,o.index)+`[`+`a`.repeat(o[0].length-2)+`]`+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,o.index)+`++`+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(s||(c=``),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(r=>(n=r.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),r=t[t.length-1],r&&n.type===`text`&&r.type===`text`?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),r=t[t.length-1],r&&n.type===`text`&&r.type===`text`?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,a,c)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}if(i=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(i)){e=e.substring(n.raw.length),n.raw.slice(-1)!==`_`&&(c=n.raw.slice(-1)),s=!0,r=t[t.length-1],r&&r.type===`text`?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},b_=class{options;parser;constructor(e){this.options=e||ug}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(/^\S*/)?.[0],i=e.replace(/\n$/,``)+`
|
|
614
|
+
`;return r?`<pre><code class="language-`+vg(r)+`">`+(n?i:vg(i,!0))+`</code></pre>
|
|
615
|
+
`:`<pre><code>`+(n?i:vg(i,!0))+`</code></pre>
|
|
616
|
+
`}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return`<hr>
|
|
617
|
+
`}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
|
|
618
|
+
`+r+`</`+i+`>
|
|
619
|
+
`}listitem(e){let t=``;if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens.length>0&&e.tokens[0].type===`paragraph`?(e.tokens[0].text=n+` `+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type===`text`&&(e.tokens[0].tokens[0].text=n+` `+e.tokens[0].tokens[0].text)):e.tokens.unshift({type:`text`,raw:n+` `,text:n+` `}):t+=n+` `}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>\n`}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox">`}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
|
|
620
|
+
<thead>
|
|
621
|
+
`+t+`</thead>
|
|
622
|
+
`+r+`</table>
|
|
623
|
+
`}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${e}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=xg(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+t+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n}){let r=xg(e);if(r===null)return n;e=r;let i=`<img src="${e}" alt="${n}"`;return t&&(i+=` title="${t}"`),i+=`>`,i}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):e.text}},x_=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}},S_=class e{options;renderer;textRenderer;constructor(e){this.options=e||ug,this.options.renderer=this.options.renderer||new b_,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new x_}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){let e=i,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(t!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`paragraph`,`text`].includes(e.type)){n+=t||``;continue}}let a=i;switch(a.type){case`space`:n+=this.renderer.space(a);continue;case`hr`:n+=this.renderer.hr(a);continue;case`heading`:n+=this.renderer.heading(a);continue;case`code`:n+=this.renderer.code(a);continue;case`table`:n+=this.renderer.table(a);continue;case`blockquote`:n+=this.renderer.blockquote(a);continue;case`list`:n+=this.renderer.list(a);continue;case`html`:n+=this.renderer.html(a);continue;case`paragraph`:n+=this.renderer.paragraph(a);continue;case`text`:{let i=a,o=this.renderer.text(i);for(;r+1<e.length&&e[r+1].type===`text`;)i=e[++r],o+=`
|
|
624
|
+
`+this.renderer.text(i);n+=t?this.renderer.paragraph({type:`paragraph`,raw:o,text:o,tokens:[{type:`text`,raw:o,text:o}]}):o;continue}default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}parseInline(e,t){t||=this.renderer;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},C_=class{options;constructor(e){this.options=e||ug}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}},w_=class{defaults=lg();options=this.setOptions;parse=this.parseMarkdown(y_.lex,S_.parse);parseInline=this.parseMarkdown(y_.lexInline,S_.parseInline);Parser=S_;Renderer=b_;TextRenderer=x_;Lexer=y_;Tokenizer=Og;Hooks=C_;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new b_(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new Og(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new C_;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if(n===`options`)continue;let r=n,i=e.hooks[r],a=t[r];t[r]=C_.passThroughHooks.has(n)?e=>{if(this.defaults.async)return Promise.resolve(i.call(t,e)).then(e=>a.call(t,e));let n=i.call(t,e);return a.call(t,n)}:(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return y_.lex(e,t??this.defaults)}parser(e,t){return S_.parse(e,t??this.defaults)}parseMarkdown(e,t){return(n,r)=>{let i={...r},a={...this.defaults,...i},o=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&i.async===!1)return o(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(n==null)return o(Error(`marked(): input parameter is undefined or null`));if(typeof n!=`string`)return o(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(n)+`, string expected`));if(a.hooks&&(a.hooks.options=a),a.async)return Promise.resolve(a.hooks?a.hooks.preprocess(n):n).then(t=>e(t,a)).then(e=>a.hooks?a.hooks.processAllTokens(e):e).then(e=>a.walkTokens?Promise.all(this.walkTokens(e,a.walkTokens)).then(()=>e):e).then(e=>t(e,a)).then(e=>a.hooks?a.hooks.postprocess(e):e).catch(o);try{a.hooks&&(n=a.hooks.preprocess(n));let r=e(n,a);a.hooks&&(r=a.hooks.processAllTokens(r)),a.walkTokens&&this.walkTokens(r,a.walkTokens);let i=t(r,a);return a.hooks&&(i=a.hooks.postprocess(i)),i}catch(e){return o(e)}}}onError(e,t){return n=>{if(n.message+=`
|
|
625
|
+
Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+vg(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},T_=new w_;function E_(e,t){return T_.parse(e,t)}E_.options=E_.setOptions=function(e){return T_.setOptions(e),E_.defaults=T_.defaults,dg(E_.defaults),E_},E_.getDefaults=lg,E_.defaults=ug,E_.use=function(...e){return T_.use(...e),E_.defaults=T_.defaults,dg(E_.defaults),E_},E_.walkTokens=function(e,t){return T_.walkTokens(e,t)},E_.parseInline=T_.parseInline,E_.Parser=S_,E_.parser=S_.parse,E_.Renderer=b_,E_.TextRenderer=x_,E_.Lexer=y_,E_.lexer=y_.lex,E_.Tokenizer=Og,E_.Hooks=C_,E_.parse=E_,E_.options,E_.setOptions,E_.use,E_.walkTokens,E_.parseInline,S_.parse,y_.lex;var L=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`…`+s.slice(i-15,i):s.slice(0,i),u=a+15<s.length?s.slice(a,a+15)+`…`:s.slice(a);r+=l+c+u}super(r),this.name=`ParseError`,this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,e.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}},D_=/([A-Z])/g,O_=e=>e.replace(D_,`-$1`).toLowerCase(),k_={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},A_=/[&><"']/g,j_=e=>String(e).replace(A_,e=>k_[e]),M_=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?M_(e.body[0]):e:e.type===`font`?M_(e.body):e,N_=new Set([`mathord`,`textord`,`atom`]),P_=e=>N_.has(M_(e).type),F_=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},I_={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format <type>`},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color <color>`,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro <def>`,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness <size>`,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size <n>`,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand <n>`,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}};function L_(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function R_(e){return Object.prototype.hasOwnProperty.call(e,`default`)&&e.default!==void 0?e.default:L_(Array.isArray(e.type)?e.type[0]:e.type)}function z_(e,t,n,r){var i=Object.prototype.hasOwnProperty.call(n,t)?n[t]:void 0,a=Object.prototype.hasOwnProperty.call(r,`processor`)?r.processor:void 0;e[t]=i===void 0?R_(r):a?a(i):i}var B_=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={};for(var t of Object.keys(I_)){var n=I_[t];n&&z_(this,t,e,n)}}reportNonstrict(e,t,n){var r=this.strict;if(typeof r==`function`&&(r=r(e,t,n)),r&&r!==`ignore`){if(r===!0||r===`error`)throw new L(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),n);r===`warn`?typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)):typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){var r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`warn`?(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)),!1):(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=F_(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},V_=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return X_[Z_[this.id]]}sub(){return X_[Q_[this.id]]}fracNum(){return X_[$_[this.id]]}fracDen(){return X_[ev[this.id]]}cramp(){return X_[tv[this.id]]}text(){return X_[nv[this.id]]}isTight(){return this.size>=2}},H_=0,U_=1,W_=2,G_=3,K_=4,q_=5,J_=6,Y_=7,X_=[new V_(H_,0,!1),new V_(U_,0,!0),new V_(W_,1,!1),new V_(G_,1,!0),new V_(K_,2,!1),new V_(q_,2,!0),new V_(J_,3,!1),new V_(Y_,3,!0)],Z_=[K_,q_,K_,q_,J_,Y_,J_,Y_],Q_=[q_,q_,q_,q_,Y_,Y_,Y_,Y_],$_=[W_,G_,K_,q_,J_,Y_,J_,Y_],ev=[G_,G_,q_,q_,Y_,Y_,Y_,Y_],tv=[U_,U_,G_,G_,q_,q_,Y_,Y_],nv=[H_,U_,W_,G_,W_,G_,W_,G_],R={DISPLAY:X_[H_],TEXT:X_[W_],SCRIPT:X_[K_],SCRIPTSCRIPT:X_[J_]},rv=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}];function iv(e){for(var t=0;t<rv.length;t++)for(var n=rv[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var av=[];rv.forEach(e=>e.blocks.forEach(e=>av.push(...e)));function ov(e){for(var t=0;t<av.length;t+=2)if(e>=av[t]&&e<=av[t+1])return!0;return!1}var sv=e=>e+` `+e,cv=80,lv=function(e,t){return`M95,`+(622+e+t)+`
|
|
626
|
+
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
627
|
+
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
628
|
+
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
629
|
+
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
630
|
+
c69,-144,104.5,-217.7,106.5,-221
|
|
631
|
+
l`+e/2.075+` -`+e+`
|
|
632
|
+
c5.3,-9.3,12,-14,20,-14
|
|
633
|
+
H400000v`+(40+e)+`H845.2724
|
|
634
|
+
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
635
|
+
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
636
|
+
M`+(834+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},uv=function(e,t){return`M263,`+(601+e+t)+`c0.7,0,18,39.7,52,119
|
|
637
|
+
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
638
|
+
c340,-704.7,510.7,-1060.3,512,-1067
|
|
639
|
+
l`+e/2.084+` -`+e+`
|
|
640
|
+
c4.7,-7.3,11,-11,19,-11
|
|
641
|
+
H40000v`+(40+e)+`H1012.3
|
|
642
|
+
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
643
|
+
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
644
|
+
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
645
|
+
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
646
|
+
M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},dv=function(e,t){return`M983 `+(10+e+t)+`
|
|
647
|
+
l`+e/3.13+` -`+e+`
|
|
648
|
+
c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
|
|
649
|
+
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
650
|
+
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
651
|
+
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
652
|
+
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
653
|
+
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
654
|
+
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
655
|
+
M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},fv=function(e,t){return`M424,`+(2398+e+t)+`
|
|
656
|
+
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
657
|
+
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
658
|
+
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
659
|
+
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
660
|
+
l`+e/4.223+` -`+e+`c4,-6.7,10,-10,18,-10 H400000
|
|
661
|
+
v`+(40+e)+`H1014.6
|
|
662
|
+
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
663
|
+
c-2,6,-10,9,-24,9
|
|
664
|
+
c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+` `+t+`
|
|
665
|
+
h400000v`+(40+e)+`h-400000z`},pv=function(e,t){return`M473,`+(2713+e+t)+`
|
|
666
|
+
c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+` -`+e+`
|
|
667
|
+
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7
|
|
668
|
+
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
669
|
+
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
670
|
+
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
671
|
+
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
672
|
+
606zM`+(1001+e)+` `+t+`h400000v`+(40+e)+`H1017.7z`},mv=function(e){var t=e/2;return`M400000 `+e+` H0 L`+t+` 0 l65 45 L145 `+(e-80)+` H400000z`},hv=function(e,t,n){var r=n-54-t-e;return`M702 `+(e+t)+`H400000`+(40+e)+`
|
|
673
|
+
H742v`+r+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
674
|
+
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
675
|
+
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
676
|
+
219 661 l218 661zM702 `+t+`H400000v`+(40+e)+`H742z`},gv=function(e,t,n){t=1e3*t;var r=``;switch(e){case`sqrtMain`:r=lv(t,cv);break;case`sqrtSize1`:r=uv(t,cv);break;case`sqrtSize2`:r=dv(t,cv);break;case`sqrtSize3`:r=fv(t,cv);break;case`sqrtSize4`:r=pv(t,cv);break;case`sqrtTall`:r=hv(t,cv,n)}return r},_v=function(e,t){switch(e){case`⎜`:return sv(`M291 0 H417 V`+t+` H291z`);case`∣`:return sv(`M145 0 H188 V`+t+` H145z`);case`∥`:return sv(`M145 0 H188 V`+t+` H145z`)+sv(`M367 0 H410 V`+t+` H367z`);case`⎟`:return sv(`M457 0 H583 V`+t+` H457z`);case`⎢`:return sv(`M319 0 H403 V`+t+` H319z`);case`⎥`:return sv(`M263 0 H347 V`+t+` H263z`);case`⎪`:return sv(`M384 0 H504 V`+t+` H384z`);case`⏐`:return sv(`M312 0 H355 V`+t+` H312z`);case`‖`:return sv(`M257 0 H300 V`+t+` H257z`)+sv(`M478 0 H521 V`+t+` H478z`);default:return``}},vv={doubleleftarrow:`M262 157
|
|
677
|
+
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
678
|
+
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
679
|
+
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
680
|
+
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
681
|
+
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
682
|
+
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
683
|
+
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
684
|
+
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
685
|
+
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
686
|
+
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
687
|
+
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
688
|
+
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
689
|
+
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
690
|
+
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
691
|
+
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
692
|
+
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
693
|
+
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
694
|
+
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
695
|
+
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
696
|
+
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
697
|
+
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
698
|
+
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
699
|
+
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
700
|
+
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
701
|
+
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
702
|
+
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
703
|
+
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
704
|
+
435 0h399565z`,leftgroupunder:`M400000 262
|
|
705
|
+
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
706
|
+
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
707
|
+
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
708
|
+
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
709
|
+
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
710
|
+
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
711
|
+
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
712
|
+
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
713
|
+
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
714
|
+
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
715
|
+
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
716
|
+
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
717
|
+
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
718
|
+
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
719
|
+
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
720
|
+
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
721
|
+
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
722
|
+
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:sv(`M40 281 V428 H0 V94 H40 V241 H400000 v40z`),leftbracketunder:sv(`M0 0 h120 V290 H399995 v120 H0z`),leftbracketover:sv(`M0 440 h120 V150 H399995 v-120 H0z`),leftmapsto:sv(`M40 281 V448H0V74H40V241H400000v40z`),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
723
|
+
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
724
|
+
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
725
|
+
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:sv(`M0 50 h400000 v40H0z m0 194h40000v40H0z`),midbrace:`M200428 334
|
|
726
|
+
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
727
|
+
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
728
|
+
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
729
|
+
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
730
|
+
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
731
|
+
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
732
|
+
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
733
|
+
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
734
|
+
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
735
|
+
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
736
|
+
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
737
|
+
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
738
|
+
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
739
|
+
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
740
|
+
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
741
|
+
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
742
|
+
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
743
|
+
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
744
|
+
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
745
|
+
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
746
|
+
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
747
|
+
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
748
|
+
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
749
|
+
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
750
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
751
|
+
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
752
|
+
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
753
|
+
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
754
|
+
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
755
|
+
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
756
|
+
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
757
|
+
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
758
|
+
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
759
|
+
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
760
|
+
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
761
|
+
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
762
|
+
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
763
|
+
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
764
|
+
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
765
|
+
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
766
|
+
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
767
|
+
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
768
|
+
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
769
|
+
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
770
|
+
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
771
|
+
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
772
|
+
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
773
|
+
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
774
|
+
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:sv(`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`),rightbracketunder:sv(`M399995 0 h-120 V290 H0 v120 H400000z`),rightbracketover:sv(`M399995 440 h-120 V150 H0 v-120 H399995z`),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
775
|
+
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
776
|
+
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
777
|
+
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
778
|
+
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
779
|
+
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
780
|
+
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
781
|
+
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
782
|
+
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
783
|
+
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
784
|
+
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
785
|
+
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
786
|
+
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
787
|
+
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
788
|
+
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
789
|
+
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
790
|
+
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
791
|
+
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
792
|
+
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
793
|
+
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
794
|
+
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
795
|
+
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
796
|
+
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
797
|
+
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
798
|
+
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
799
|
+
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
800
|
+
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
801
|
+
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
802
|
+
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
803
|
+
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
804
|
+
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
805
|
+
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
806
|
+
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
807
|
+
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
808
|
+
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
809
|
+
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
810
|
+
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
811
|
+
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
812
|
+
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
813
|
+
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
814
|
+
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
815
|
+
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
816
|
+
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
817
|
+
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
818
|
+
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
819
|
+
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
820
|
+
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
821
|
+
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
822
|
+
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
823
|
+
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
824
|
+
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
825
|
+
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
826
|
+
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
827
|
+
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
828
|
+
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
829
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
830
|
+
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
831
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
832
|
+
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
833
|
+
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
834
|
+
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
835
|
+
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
836
|
+
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
837
|
+
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
838
|
+
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
839
|
+
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
840
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
841
|
+
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
842
|
+
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
843
|
+
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
844
|
+
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
845
|
+
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
846
|
+
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
847
|
+
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},yv=function(e,t){switch(e){case`lbrack`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v1759 v84 h347 v-84
|
|
848
|
+
H403z M403 1759 V0 H319 V1759 v`+t+` v1759 v84 h84z`;case`rbrack`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v1759 H0 v84 H347z
|
|
849
|
+
M347 1759 V0 H263 V1759 v`+t+` v1759 h84z`;case`vert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
|
|
850
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
851
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z`;case`doublevert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
|
|
852
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
853
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z
|
|
854
|
+
M367 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
|
|
855
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
856
|
+
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+t+` v585 h43z`;case`lfloor`:return`M319 602 V0 H403 V602 v`+t+` v1715 h263 v84 H319z
|
|
857
|
+
MM319 602 V0 H403 V602 v`+t+` v1715 H319z`;case`rfloor`:return`M319 602 V0 H403 V602 v`+t+` v1799 H0 v-84 H319z
|
|
858
|
+
MM319 602 V0 H403 V602 v`+t+` v1715 H319z`;case`lceil`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v602 h84z
|
|
859
|
+
M403 1759 V0 H319 V1759 v`+t+` v602 h84z`;case`rceil`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v602 h84z
|
|
860
|
+
M347 1759 V0 h-84 V1759 v`+t+` v602 h84z`;case`lparen`:return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
|
|
861
|
+
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
|
|
862
|
+
-36,557 l0,`+(t+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
863
|
+
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
|
|
864
|
+
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
|
|
865
|
+
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
866
|
+
l0,-`+(t+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
867
|
+
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case`rparen`:return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
|
|
868
|
+
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
869
|
+
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(t+9)+`
|
|
870
|
+
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
|
|
871
|
+
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
|
|
872
|
+
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
|
873
|
+
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
874
|
+
l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
875
|
+
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error(`Unknown stretchy delimiter.`)}};function bv(e){return`toText`in e}var xv=class{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e=``,t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>{if(bv(e))return e.toText();throw Error(`Expected MathDomNode with toText, got `+e.constructor.name)}).join(``)}},Sv={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Cv={ex:!0,em:!0,mu:!0},wv=function(e){return typeof e!=`string`&&(e=e.unit),e in Sv||e in Cv||e===`ex`},Tv=function(e,t){var n;if(e.unit in Sv)n=Sv[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit===`mu`)n=t.fontMetrics().cssEmPerMu;else{var r=t.style.isTight()?t.havingStyle(t.style.text()):t;if(e.unit===`ex`)n=r.fontMetrics().xHeight;else if(e.unit===`em`)n=r.fontMetrics().quad;else throw new L(`Invalid unit: '`+e.unit+`'`);r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},z=function(e){return+e.toFixed(4)+`em`},Ev=function(e){return e.filter(e=>e).join(` `)},Dv=function(e){var t=``;for(var n of Object.keys(e)){var r=e[n];r!==void 0&&(t+=O_(n)+`:`+r+`;`)}return t},Ov=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push(`mtight`);var r=t.getColor();r&&(this.style.color=r)}},kv=function(e){var t=document.createElement(e);t.className=Ev(this.classes),Object.assign(t.style,this.style);for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);for(var r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t},Av=/[\s"'>/=\x00-\x1f]/,jv=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+j_(Ev(this.classes))+`"`);var n=Dv(this.style);n&&(t+=` style="`+j_(n)+`"`);for(var r of Object.keys(this.attributes)){if(Av.test(r))throw new L(`Invalid attribute name '`+r+`'`);t+=` `+r+`="`+j_(this.attributes[r])+`"`}t+=`>`;for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+=`</`+e+`>`,t},Mv=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,Ov.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return kv.call(this,`span`)}toMarkup(){return jv.call(this,`span`)}},Nv=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Ov.call(this,t,r),this.children=n||[],this.setAttribute(`href`,e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return kv.call(this,`a`)}toMarkup(){return jv.call(this,`a`)}},Pv=class{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=[`mord`],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement(`img`);return e.src=this.src,e.alt=this.alt,e.className=`mord`,Object.assign(e.style,this.style),e}toMarkup(){var e=`<img src="`+j_(this.src)+`"`+(` alt="`+j_(this.alt)+`"`),t=Dv(this.style);return t&&(e+=` style="`+j_(t)+`"`),e+=`'/>`,e}},Fv={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},Iv=class{constructor(e,t,n,r,i,a,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var c=iv(this.text.charCodeAt(0));c&&this.classes.push(c+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=Fv[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;return this.italic>0&&(t=document.createElement(`span`),t.style.marginRight=z(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=Ev(this.classes)),Object.keys(this.style).length>0&&(t||=document.createElement(`span`),Object.assign(t.style,this.style)),t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t=`<span`;this.classes.length&&(e=!0,t+=` class="`,t+=j_(Ev(this.classes)),t+=`"`);var n=``;this.italic>0&&(n+=`margin-right:`+z(this.italic)+`;`),n+=Dv(this.style),n&&(e=!0,t+=` style="`+j_(n)+`"`);var r=j_(this.text);return e?(t+=`>`,t+=r,t+=`</span>`,t):r}},Lv=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){var e=`<svg xmlns="http://www.w3.org/2000/svg"`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+j_(this.attributes[t])+`"`;e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</svg>`,e}},Rv=class{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return this.alternate?e.setAttribute(`d`,this.alternate):e.setAttribute(`d`,vv[this.pathName]),e}toMarkup(){return this.alternate?`<path d="`+j_(this.alternate)+`"/>`:`<path d="`+j_(vv[this.pathName])+`"/>`}},zv=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`line`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=`<line`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+j_(this.attributes[t])+`"`;return e+=`/>`,e}};function Bv(e){if(e instanceof Iv)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function Vv(e){if(e instanceof Mv)return e;throw Error(`Expected span<HtmlDomNode> but got `+String(e)+`.`)}var Hv=e=>e instanceof Mv||e instanceof Nv||e instanceof xv,Uv={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Wv={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Gv={Å:`A`,Ð:`D`,Þ:`o`,å:`a`,ð:`d`,þ:`o`,А:`A`,Б:`B`,В:`B`,Г:`F`,Д:`A`,Е:`E`,Ж:`K`,З:`3`,И:`N`,Й:`N`,К:`K`,Л:`N`,М:`M`,Н:`H`,О:`O`,П:`N`,Р:`P`,С:`C`,Т:`T`,У:`y`,Ф:`O`,Х:`X`,Ц:`U`,Ч:`h`,Ш:`W`,Щ:`W`,Ъ:`B`,Ы:`X`,Ь:`B`,Э:`3`,Ю:`X`,Я:`R`,а:`a`,б:`b`,в:`a`,г:`r`,д:`y`,е:`e`,ж:`m`,з:`e`,и:`n`,й:`n`,к:`n`,л:`n`,м:`m`,н:`n`,о:`o`,п:`n`,р:`p`,с:`c`,т:`o`,у:`y`,ф:`b`,х:`x`,ц:`n`,ч:`n`,ш:`w`,щ:`w`,ъ:`a`,ы:`m`,ь:`a`,э:`e`,ю:`m`,я:`r`};function Kv(e,t){Uv[e]=t}function qv(e,t,n){if(!Uv[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=Uv[t][r];if(!i&&e[0]in Gv&&(r=Gv[e[0]].charCodeAt(0),i=Uv[t][r]),!i&&n===`text`&&ov(r)&&(i=Uv[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Jv={};function Yv(e){var t=e>=5?0:e>=3?1:2;if(!Jv[t]){var n=Jv[t]={cssEmPerMu:Wv.quad[t]/18};for(var r of Object.keys(Wv))n[r]=Wv[r][t]}return Jv[t]}var Xv={math:{},text:{}};function B(e,t,n,r,i,a){Xv[e][i]={font:t,group:n,replace:r},a&&r&&(Xv[e][r]=Xv[e][i])}var V=`math`,H=`text`,U=`main`,W=`ams`,Zv=`accent-token`,G=`bin`,Qv=`close`,$v=`inner`,K=`mathord`,ey=`op-token`,ty=`open`,ny=`punct`,q=`rel`,ry=`spacing`,J=`textord`;B(V,U,q,`≡`,`\\equiv`,!0),B(V,U,q,`≺`,`\\prec`,!0),B(V,U,q,`≻`,`\\succ`,!0),B(V,U,q,`∼`,`\\sim`,!0),B(V,U,q,`⊥`,`\\perp`),B(V,U,q,`⪯`,`\\preceq`,!0),B(V,U,q,`⪰`,`\\succeq`,!0),B(V,U,q,`≃`,`\\simeq`,!0),B(V,U,q,`∣`,`\\mid`,!0),B(V,U,q,`≪`,`\\ll`,!0),B(V,U,q,`≫`,`\\gg`,!0),B(V,U,q,`≍`,`\\asymp`,!0),B(V,U,q,`∥`,`\\parallel`),B(V,U,q,`⋈`,`\\bowtie`,!0),B(V,U,q,`⌣`,`\\smile`,!0),B(V,U,q,`⊑`,`\\sqsubseteq`,!0),B(V,U,q,`⊒`,`\\sqsupseteq`,!0),B(V,U,q,`≐`,`\\doteq`,!0),B(V,U,q,`⌢`,`\\frown`,!0),B(V,U,q,`∋`,`\\ni`,!0),B(V,U,q,`∝`,`\\propto`,!0),B(V,U,q,`⊢`,`\\vdash`,!0),B(V,U,q,`⊣`,`\\dashv`,!0),B(V,U,q,`∋`,`\\owns`),B(V,U,ny,`.`,`\\ldotp`),B(V,U,ny,`⋅`,`\\cdotp`),B(V,U,ny,`⋅`,`·`),B(H,U,J,`⋅`,`·`),B(V,U,J,`#`,`\\#`),B(H,U,J,`#`,`\\#`),B(V,U,J,`&`,`\\&`),B(H,U,J,`&`,`\\&`),B(V,U,J,`ℵ`,`\\aleph`,!0),B(V,U,J,`∀`,`\\forall`,!0),B(V,U,J,`ℏ`,`\\hbar`,!0),B(V,U,J,`∃`,`\\exists`,!0),B(V,U,J,`∇`,`\\nabla`,!0),B(V,U,J,`♭`,`\\flat`,!0),B(V,U,J,`ℓ`,`\\ell`,!0),B(V,U,J,`♮`,`\\natural`,!0),B(V,U,J,`♣`,`\\clubsuit`,!0),B(V,U,J,`℘`,`\\wp`,!0),B(V,U,J,`♯`,`\\sharp`,!0),B(V,U,J,`♢`,`\\diamondsuit`,!0),B(V,U,J,`ℜ`,`\\Re`,!0),B(V,U,J,`♡`,`\\heartsuit`,!0),B(V,U,J,`ℑ`,`\\Im`,!0),B(V,U,J,`♠`,`\\spadesuit`,!0),B(V,U,J,`§`,`\\S`,!0),B(H,U,J,`§`,`\\S`),B(V,U,J,`¶`,`\\P`,!0),B(H,U,J,`¶`,`\\P`),B(V,U,J,`†`,`\\dag`),B(H,U,J,`†`,`\\dag`),B(H,U,J,`†`,`\\textdagger`),B(V,U,J,`‡`,`\\ddag`),B(H,U,J,`‡`,`\\ddag`),B(H,U,J,`‡`,`\\textdaggerdbl`),B(V,U,Qv,`⎱`,`\\rmoustache`,!0),B(V,U,ty,`⎰`,`\\lmoustache`,!0),B(V,U,Qv,`⟯`,`\\rgroup`,!0),B(V,U,ty,`⟮`,`\\lgroup`,!0),B(V,U,G,`∓`,`\\mp`,!0),B(V,U,G,`⊖`,`\\ominus`,!0),B(V,U,G,`⊎`,`\\uplus`,!0),B(V,U,G,`⊓`,`\\sqcap`,!0),B(V,U,G,`∗`,`\\ast`),B(V,U,G,`⊔`,`\\sqcup`,!0),B(V,U,G,`◯`,`\\bigcirc`,!0),B(V,U,G,`∙`,`\\bullet`,!0),B(V,U,G,`‡`,`\\ddagger`),B(V,U,G,`≀`,`\\wr`,!0),B(V,U,G,`⨿`,`\\amalg`),B(V,U,G,`&`,`\\And`),B(V,U,q,`⟵`,`\\longleftarrow`,!0),B(V,U,q,`⇐`,`\\Leftarrow`,!0),B(V,U,q,`⟸`,`\\Longleftarrow`,!0),B(V,U,q,`⟶`,`\\longrightarrow`,!0),B(V,U,q,`⇒`,`\\Rightarrow`,!0),B(V,U,q,`⟹`,`\\Longrightarrow`,!0),B(V,U,q,`↔`,`\\leftrightarrow`,!0),B(V,U,q,`⟷`,`\\longleftrightarrow`,!0),B(V,U,q,`⇔`,`\\Leftrightarrow`,!0),B(V,U,q,`⟺`,`\\Longleftrightarrow`,!0),B(V,U,q,`↦`,`\\mapsto`,!0),B(V,U,q,`⟼`,`\\longmapsto`,!0),B(V,U,q,`↗`,`\\nearrow`,!0),B(V,U,q,`↩`,`\\hookleftarrow`,!0),B(V,U,q,`↪`,`\\hookrightarrow`,!0),B(V,U,q,`↘`,`\\searrow`,!0),B(V,U,q,`↼`,`\\leftharpoonup`,!0),B(V,U,q,`⇀`,`\\rightharpoonup`,!0),B(V,U,q,`↙`,`\\swarrow`,!0),B(V,U,q,`↽`,`\\leftharpoondown`,!0),B(V,U,q,`⇁`,`\\rightharpoondown`,!0),B(V,U,q,`↖`,`\\nwarrow`,!0),B(V,U,q,`⇌`,`\\rightleftharpoons`,!0),B(V,W,q,`≮`,`\\nless`,!0),B(V,W,q,``,`\\@nleqslant`),B(V,W,q,``,`\\@nleqq`),B(V,W,q,`⪇`,`\\lneq`,!0),B(V,W,q,`≨`,`\\lneqq`,!0),B(V,W,q,``,`\\@lvertneqq`),B(V,W,q,`⋦`,`\\lnsim`,!0),B(V,W,q,`⪉`,`\\lnapprox`,!0),B(V,W,q,`⊀`,`\\nprec`,!0),B(V,W,q,`⋠`,`\\npreceq`,!0),B(V,W,q,`⋨`,`\\precnsim`,!0),B(V,W,q,`⪹`,`\\precnapprox`,!0),B(V,W,q,`≁`,`\\nsim`,!0),B(V,W,q,``,`\\@nshortmid`),B(V,W,q,`∤`,`\\nmid`,!0),B(V,W,q,`⊬`,`\\nvdash`,!0),B(V,W,q,`⊭`,`\\nvDash`,!0),B(V,W,q,`⋪`,`\\ntriangleleft`),B(V,W,q,`⋬`,`\\ntrianglelefteq`,!0),B(V,W,q,`⊊`,`\\subsetneq`,!0),B(V,W,q,``,`\\@varsubsetneq`),B(V,W,q,`⫋`,`\\subsetneqq`,!0),B(V,W,q,``,`\\@varsubsetneqq`),B(V,W,q,`≯`,`\\ngtr`,!0),B(V,W,q,``,`\\@ngeqslant`),B(V,W,q,``,`\\@ngeqq`),B(V,W,q,`⪈`,`\\gneq`,!0),B(V,W,q,`≩`,`\\gneqq`,!0),B(V,W,q,``,`\\@gvertneqq`),B(V,W,q,`⋧`,`\\gnsim`,!0),B(V,W,q,`⪊`,`\\gnapprox`,!0),B(V,W,q,`⊁`,`\\nsucc`,!0),B(V,W,q,`⋡`,`\\nsucceq`,!0),B(V,W,q,`⋩`,`\\succnsim`,!0),B(V,W,q,`⪺`,`\\succnapprox`,!0),B(V,W,q,`≆`,`\\ncong`,!0),B(V,W,q,``,`\\@nshortparallel`),B(V,W,q,`∦`,`\\nparallel`,!0),B(V,W,q,`⊯`,`\\nVDash`,!0),B(V,W,q,`⋫`,`\\ntriangleright`),B(V,W,q,`⋭`,`\\ntrianglerighteq`,!0),B(V,W,q,``,`\\@nsupseteqq`),B(V,W,q,`⊋`,`\\supsetneq`,!0),B(V,W,q,``,`\\@varsupsetneq`),B(V,W,q,`⫌`,`\\supsetneqq`,!0),B(V,W,q,``,`\\@varsupsetneqq`),B(V,W,q,`⊮`,`\\nVdash`,!0),B(V,W,q,`⪵`,`\\precneqq`,!0),B(V,W,q,`⪶`,`\\succneqq`,!0),B(V,W,q,``,`\\@nsubseteqq`),B(V,W,G,`⊴`,`\\unlhd`),B(V,W,G,`⊵`,`\\unrhd`),B(V,W,q,`↚`,`\\nleftarrow`,!0),B(V,W,q,`↛`,`\\nrightarrow`,!0),B(V,W,q,`⇍`,`\\nLeftarrow`,!0),B(V,W,q,`⇏`,`\\nRightarrow`,!0),B(V,W,q,`↮`,`\\nleftrightarrow`,!0),B(V,W,q,`⇎`,`\\nLeftrightarrow`,!0),B(V,W,q,`△`,`\\vartriangle`),B(V,W,J,`ℏ`,`\\hslash`),B(V,W,J,`▽`,`\\triangledown`),B(V,W,J,`◊`,`\\lozenge`),B(V,W,J,`Ⓢ`,`\\circledS`),B(V,W,J,`®`,`\\circledR`),B(H,W,J,`®`,`\\circledR`),B(V,W,J,`∡`,`\\measuredangle`,!0),B(V,W,J,`∄`,`\\nexists`),B(V,W,J,`℧`,`\\mho`),B(V,W,J,`Ⅎ`,`\\Finv`,!0),B(V,W,J,`⅁`,`\\Game`,!0),B(V,W,J,`‵`,`\\backprime`),B(V,W,J,`▲`,`\\blacktriangle`),B(V,W,J,`▼`,`\\blacktriangledown`),B(V,W,J,`■`,`\\blacksquare`),B(V,W,J,`⧫`,`\\blacklozenge`),B(V,W,J,`★`,`\\bigstar`),B(V,W,J,`∢`,`\\sphericalangle`,!0),B(V,W,J,`∁`,`\\complement`,!0),B(V,W,J,`ð`,`\\eth`,!0),B(H,U,J,`ð`,`ð`),B(V,W,J,`╱`,`\\diagup`),B(V,W,J,`╲`,`\\diagdown`),B(V,W,J,`□`,`\\square`),B(V,W,J,`□`,`\\Box`),B(V,W,J,`◊`,`\\Diamond`),B(V,W,J,`¥`,`\\yen`,!0),B(H,W,J,`¥`,`\\yen`,!0),B(V,W,J,`✓`,`\\checkmark`,!0),B(H,W,J,`✓`,`\\checkmark`),B(V,W,J,`ℶ`,`\\beth`,!0),B(V,W,J,`ℸ`,`\\daleth`,!0),B(V,W,J,`ℷ`,`\\gimel`,!0),B(V,W,J,`ϝ`,`\\digamma`,!0),B(V,W,J,`ϰ`,`\\varkappa`),B(V,W,ty,`┌`,`\\@ulcorner`,!0),B(V,W,Qv,`┐`,`\\@urcorner`,!0),B(V,W,ty,`└`,`\\@llcorner`,!0),B(V,W,Qv,`┘`,`\\@lrcorner`,!0),B(V,W,q,`≦`,`\\leqq`,!0),B(V,W,q,`⩽`,`\\leqslant`,!0),B(V,W,q,`⪕`,`\\eqslantless`,!0),B(V,W,q,`≲`,`\\lesssim`,!0),B(V,W,q,`⪅`,`\\lessapprox`,!0),B(V,W,q,`≊`,`\\approxeq`,!0),B(V,W,G,`⋖`,`\\lessdot`),B(V,W,q,`⋘`,`\\lll`,!0),B(V,W,q,`≶`,`\\lessgtr`,!0),B(V,W,q,`⋚`,`\\lesseqgtr`,!0),B(V,W,q,`⪋`,`\\lesseqqgtr`,!0),B(V,W,q,`≑`,`\\doteqdot`),B(V,W,q,`≓`,`\\risingdotseq`,!0),B(V,W,q,`≒`,`\\fallingdotseq`,!0),B(V,W,q,`∽`,`\\backsim`,!0),B(V,W,q,`⋍`,`\\backsimeq`,!0),B(V,W,q,`⫅`,`\\subseteqq`,!0),B(V,W,q,`⋐`,`\\Subset`,!0),B(V,W,q,`⊏`,`\\sqsubset`,!0),B(V,W,q,`≼`,`\\preccurlyeq`,!0),B(V,W,q,`⋞`,`\\curlyeqprec`,!0),B(V,W,q,`≾`,`\\precsim`,!0),B(V,W,q,`⪷`,`\\precapprox`,!0),B(V,W,q,`⊲`,`\\vartriangleleft`),B(V,W,q,`⊴`,`\\trianglelefteq`),B(V,W,q,`⊨`,`\\vDash`,!0),B(V,W,q,`⊪`,`\\Vvdash`,!0),B(V,W,q,`⌣`,`\\smallsmile`),B(V,W,q,`⌢`,`\\smallfrown`),B(V,W,q,`≏`,`\\bumpeq`,!0),B(V,W,q,`≎`,`\\Bumpeq`,!0),B(V,W,q,`≧`,`\\geqq`,!0),B(V,W,q,`⩾`,`\\geqslant`,!0),B(V,W,q,`⪖`,`\\eqslantgtr`,!0),B(V,W,q,`≳`,`\\gtrsim`,!0),B(V,W,q,`⪆`,`\\gtrapprox`,!0),B(V,W,G,`⋗`,`\\gtrdot`),B(V,W,q,`⋙`,`\\ggg`,!0),B(V,W,q,`≷`,`\\gtrless`,!0),B(V,W,q,`⋛`,`\\gtreqless`,!0),B(V,W,q,`⪌`,`\\gtreqqless`,!0),B(V,W,q,`≖`,`\\eqcirc`,!0),B(V,W,q,`≗`,`\\circeq`,!0),B(V,W,q,`≜`,`\\triangleq`,!0),B(V,W,q,`∼`,`\\thicksim`),B(V,W,q,`≈`,`\\thickapprox`),B(V,W,q,`⫆`,`\\supseteqq`,!0),B(V,W,q,`⋑`,`\\Supset`,!0),B(V,W,q,`⊐`,`\\sqsupset`,!0),B(V,W,q,`≽`,`\\succcurlyeq`,!0),B(V,W,q,`⋟`,`\\curlyeqsucc`,!0),B(V,W,q,`≿`,`\\succsim`,!0),B(V,W,q,`⪸`,`\\succapprox`,!0),B(V,W,q,`⊳`,`\\vartriangleright`),B(V,W,q,`⊵`,`\\trianglerighteq`),B(V,W,q,`⊩`,`\\Vdash`,!0),B(V,W,q,`∣`,`\\shortmid`),B(V,W,q,`∥`,`\\shortparallel`),B(V,W,q,`≬`,`\\between`,!0),B(V,W,q,`⋔`,`\\pitchfork`,!0),B(V,W,q,`∝`,`\\varpropto`),B(V,W,q,`◀`,`\\blacktriangleleft`),B(V,W,q,`∴`,`\\therefore`,!0),B(V,W,q,`∍`,`\\backepsilon`),B(V,W,q,`▶`,`\\blacktriangleright`),B(V,W,q,`∵`,`\\because`,!0),B(V,W,q,`⋘`,`\\llless`),B(V,W,q,`⋙`,`\\gggtr`),B(V,W,G,`⊲`,`\\lhd`),B(V,W,G,`⊳`,`\\rhd`),B(V,W,q,`≂`,`\\eqsim`,!0),B(V,U,q,`⋈`,`\\Join`),B(V,W,q,`≑`,`\\Doteq`,!0),B(V,W,G,`∔`,`\\dotplus`,!0),B(V,W,G,`∖`,`\\smallsetminus`),B(V,W,G,`⋒`,`\\Cap`,!0),B(V,W,G,`⋓`,`\\Cup`,!0),B(V,W,G,`⩞`,`\\doublebarwedge`,!0),B(V,W,G,`⊟`,`\\boxminus`,!0),B(V,W,G,`⊞`,`\\boxplus`,!0),B(V,W,G,`⋇`,`\\divideontimes`,!0),B(V,W,G,`⋉`,`\\ltimes`,!0),B(V,W,G,`⋊`,`\\rtimes`,!0),B(V,W,G,`⋋`,`\\leftthreetimes`,!0),B(V,W,G,`⋌`,`\\rightthreetimes`,!0),B(V,W,G,`⋏`,`\\curlywedge`,!0),B(V,W,G,`⋎`,`\\curlyvee`,!0),B(V,W,G,`⊝`,`\\circleddash`,!0),B(V,W,G,`⊛`,`\\circledast`,!0),B(V,W,G,`⋅`,`\\centerdot`),B(V,W,G,`⊺`,`\\intercal`,!0),B(V,W,G,`⋒`,`\\doublecap`),B(V,W,G,`⋓`,`\\doublecup`),B(V,W,G,`⊠`,`\\boxtimes`,!0),B(V,W,q,`⇢`,`\\dashrightarrow`,!0),B(V,W,q,`⇠`,`\\dashleftarrow`,!0),B(V,W,q,`⇇`,`\\leftleftarrows`,!0),B(V,W,q,`⇆`,`\\leftrightarrows`,!0),B(V,W,q,`⇚`,`\\Lleftarrow`,!0),B(V,W,q,`↞`,`\\twoheadleftarrow`,!0),B(V,W,q,`↢`,`\\leftarrowtail`,!0),B(V,W,q,`↫`,`\\looparrowleft`,!0),B(V,W,q,`⇋`,`\\leftrightharpoons`,!0),B(V,W,q,`↶`,`\\curvearrowleft`,!0),B(V,W,q,`↺`,`\\circlearrowleft`,!0),B(V,W,q,`↰`,`\\Lsh`,!0),B(V,W,q,`⇈`,`\\upuparrows`,!0),B(V,W,q,`↿`,`\\upharpoonleft`,!0),B(V,W,q,`⇃`,`\\downharpoonleft`,!0),B(V,U,q,`⊶`,`\\origof`,!0),B(V,U,q,`⊷`,`\\imageof`,!0),B(V,W,q,`⊸`,`\\multimap`,!0),B(V,W,q,`↭`,`\\leftrightsquigarrow`,!0),B(V,W,q,`⇉`,`\\rightrightarrows`,!0),B(V,W,q,`⇄`,`\\rightleftarrows`,!0),B(V,W,q,`↠`,`\\twoheadrightarrow`,!0),B(V,W,q,`↣`,`\\rightarrowtail`,!0),B(V,W,q,`↬`,`\\looparrowright`,!0),B(V,W,q,`↷`,`\\curvearrowright`,!0),B(V,W,q,`↻`,`\\circlearrowright`,!0),B(V,W,q,`↱`,`\\Rsh`,!0),B(V,W,q,`⇊`,`\\downdownarrows`,!0),B(V,W,q,`↾`,`\\upharpoonright`,!0),B(V,W,q,`⇂`,`\\downharpoonright`,!0),B(V,W,q,`⇝`,`\\rightsquigarrow`,!0),B(V,W,q,`⇝`,`\\leadsto`),B(V,W,q,`⇛`,`\\Rrightarrow`,!0),B(V,W,q,`↾`,`\\restriction`),B(V,U,J,`‘`,"`"),B(V,U,J,`$`,`\\$`),B(H,U,J,`$`,`\\$`),B(H,U,J,`$`,`\\textdollar`),B(V,U,J,`%`,`\\%`),B(H,U,J,`%`,`\\%`),B(V,U,J,`_`,`\\_`),B(H,U,J,`_`,`\\_`),B(H,U,J,`_`,`\\textunderscore`),B(V,U,J,`∠`,`\\angle`,!0),B(V,U,J,`∞`,`\\infty`,!0),B(V,U,J,`′`,`\\prime`),B(V,U,J,`△`,`\\triangle`),B(V,U,J,`Γ`,`\\Gamma`,!0),B(V,U,J,`Δ`,`\\Delta`,!0),B(V,U,J,`Θ`,`\\Theta`,!0),B(V,U,J,`Λ`,`\\Lambda`,!0),B(V,U,J,`Ξ`,`\\Xi`,!0),B(V,U,J,`Π`,`\\Pi`,!0),B(V,U,J,`Σ`,`\\Sigma`,!0),B(V,U,J,`Υ`,`\\Upsilon`,!0),B(V,U,J,`Φ`,`\\Phi`,!0),B(V,U,J,`Ψ`,`\\Psi`,!0),B(V,U,J,`Ω`,`\\Omega`,!0),B(V,U,J,`A`,`Α`),B(V,U,J,`B`,`Β`),B(V,U,J,`E`,`Ε`),B(V,U,J,`Z`,`Ζ`),B(V,U,J,`H`,`Η`),B(V,U,J,`I`,`Ι`),B(V,U,J,`K`,`Κ`),B(V,U,J,`M`,`Μ`),B(V,U,J,`N`,`Ν`),B(V,U,J,`O`,`Ο`),B(V,U,J,`P`,`Ρ`),B(V,U,J,`T`,`Τ`),B(V,U,J,`X`,`Χ`),B(V,U,J,`¬`,`\\neg`,!0),B(V,U,J,`¬`,`\\lnot`),B(V,U,J,`⊤`,`\\top`),B(V,U,J,`⊥`,`\\bot`),B(V,U,J,`∅`,`\\emptyset`),B(V,W,J,`∅`,`\\varnothing`),B(V,U,K,`α`,`\\alpha`,!0),B(V,U,K,`β`,`\\beta`,!0),B(V,U,K,`γ`,`\\gamma`,!0),B(V,U,K,`δ`,`\\delta`,!0),B(V,U,K,`ϵ`,`\\epsilon`,!0),B(V,U,K,`ζ`,`\\zeta`,!0),B(V,U,K,`η`,`\\eta`,!0),B(V,U,K,`θ`,`\\theta`,!0),B(V,U,K,`ι`,`\\iota`,!0),B(V,U,K,`κ`,`\\kappa`,!0),B(V,U,K,`λ`,`\\lambda`,!0),B(V,U,K,`μ`,`\\mu`,!0),B(V,U,K,`ν`,`\\nu`,!0),B(V,U,K,`ξ`,`\\xi`,!0),B(V,U,K,`ο`,`\\omicron`,!0),B(V,U,K,`π`,`\\pi`,!0),B(V,U,K,`ρ`,`\\rho`,!0),B(V,U,K,`σ`,`\\sigma`,!0),B(V,U,K,`τ`,`\\tau`,!0),B(V,U,K,`υ`,`\\upsilon`,!0),B(V,U,K,`ϕ`,`\\phi`,!0),B(V,U,K,`χ`,`\\chi`,!0),B(V,U,K,`ψ`,`\\psi`,!0),B(V,U,K,`ω`,`\\omega`,!0),B(V,U,K,`ε`,`\\varepsilon`,!0),B(V,U,K,`ϑ`,`\\vartheta`,!0),B(V,U,K,`ϖ`,`\\varpi`,!0),B(V,U,K,`ϱ`,`\\varrho`,!0),B(V,U,K,`ς`,`\\varsigma`,!0),B(V,U,K,`φ`,`\\varphi`,!0),B(V,U,G,`∗`,`*`,!0),B(V,U,G,`+`,`+`),B(V,U,G,`−`,`-`,!0),B(V,U,G,`⋅`,`\\cdot`,!0),B(V,U,G,`∘`,`\\circ`,!0),B(V,U,G,`÷`,`\\div`,!0),B(V,U,G,`±`,`\\pm`,!0),B(V,U,G,`×`,`\\times`,!0),B(V,U,G,`∩`,`\\cap`,!0),B(V,U,G,`∪`,`\\cup`,!0),B(V,U,G,`∖`,`\\setminus`,!0),B(V,U,G,`∧`,`\\land`),B(V,U,G,`∨`,`\\lor`),B(V,U,G,`∧`,`\\wedge`,!0),B(V,U,G,`∨`,`\\vee`,!0),B(V,U,J,`√`,`\\surd`),B(V,U,ty,`⟨`,`\\langle`,!0),B(V,U,ty,`∣`,`\\lvert`),B(V,U,ty,`∥`,`\\lVert`),B(V,U,Qv,`?`,`?`),B(V,U,Qv,`!`,`!`),B(V,U,Qv,`⟩`,`\\rangle`,!0),B(V,U,Qv,`∣`,`\\rvert`),B(V,U,Qv,`∥`,`\\rVert`),B(V,U,q,`=`,`=`),B(V,U,q,`:`,`:`),B(V,U,q,`≈`,`\\approx`,!0),B(V,U,q,`≅`,`\\cong`,!0),B(V,U,q,`≥`,`\\ge`),B(V,U,q,`≥`,`\\geq`,!0),B(V,U,q,`←`,`\\gets`),B(V,U,q,`>`,`\\gt`,!0),B(V,U,q,`∈`,`\\in`,!0),B(V,U,q,``,`\\@not`),B(V,U,q,`⊂`,`\\subset`,!0),B(V,U,q,`⊃`,`\\supset`,!0),B(V,U,q,`⊆`,`\\subseteq`,!0),B(V,U,q,`⊇`,`\\supseteq`,!0),B(V,W,q,`⊈`,`\\nsubseteq`,!0),B(V,W,q,`⊉`,`\\nsupseteq`,!0),B(V,U,q,`⊨`,`\\models`),B(V,U,q,`←`,`\\leftarrow`,!0),B(V,U,q,`≤`,`\\le`),B(V,U,q,`≤`,`\\leq`,!0),B(V,U,q,`<`,`\\lt`,!0),B(V,U,q,`→`,`\\rightarrow`,!0),B(V,U,q,`→`,`\\to`),B(V,W,q,`≱`,`\\ngeq`,!0),B(V,W,q,`≰`,`\\nleq`,!0),B(V,U,ry,`\xA0`,`\\ `),B(V,U,ry,`\xA0`,`\\space`),B(V,U,ry,`\xA0`,`\\nobreakspace`),B(H,U,ry,`\xA0`,`\\ `),B(H,U,ry,`\xA0`,` `),B(H,U,ry,`\xA0`,`\\space`),B(H,U,ry,`\xA0`,`\\nobreakspace`),B(V,U,ry,``,`\\nobreak`),B(V,U,ry,``,`\\allowbreak`),B(V,U,ny,`,`,`,`),B(V,U,ny,`;`,`;`),B(V,W,G,`⊼`,`\\barwedge`,!0),B(V,W,G,`⊻`,`\\veebar`,!0),B(V,U,G,`⊙`,`\\odot`,!0),B(V,U,G,`⊕`,`\\oplus`,!0),B(V,U,G,`⊗`,`\\otimes`,!0),B(V,U,J,`∂`,`\\partial`,!0),B(V,U,G,`⊘`,`\\oslash`,!0),B(V,W,G,`⊚`,`\\circledcirc`,!0),B(V,W,G,`⊡`,`\\boxdot`,!0),B(V,U,G,`△`,`\\bigtriangleup`),B(V,U,G,`▽`,`\\bigtriangledown`),B(V,U,G,`†`,`\\dagger`),B(V,U,G,`⋄`,`\\diamond`),B(V,U,G,`⋆`,`\\star`),B(V,U,G,`◃`,`\\triangleleft`),B(V,U,G,`▹`,`\\triangleright`),B(V,U,ty,`{`,`\\{`),B(H,U,J,`{`,`\\{`),B(H,U,J,`{`,`\\textbraceleft`),B(V,U,Qv,`}`,`\\}`),B(H,U,J,`}`,`\\}`),B(H,U,J,`}`,`\\textbraceright`),B(V,U,ty,`{`,`\\lbrace`),B(V,U,Qv,`}`,`\\rbrace`),B(V,U,ty,`[`,`\\lbrack`,!0),B(H,U,J,`[`,`\\lbrack`,!0),B(V,U,Qv,`]`,`\\rbrack`,!0),B(H,U,J,`]`,`\\rbrack`,!0),B(V,U,ty,`(`,`\\lparen`,!0),B(V,U,Qv,`)`,`\\rparen`,!0),B(H,U,J,`<`,`\\textless`,!0),B(H,U,J,`>`,`\\textgreater`,!0),B(V,U,ty,`⌊`,`\\lfloor`,!0),B(V,U,Qv,`⌋`,`\\rfloor`,!0),B(V,U,ty,`⌈`,`\\lceil`,!0),B(V,U,Qv,`⌉`,`\\rceil`,!0),B(V,U,J,`\\`,`\\backslash`),B(V,U,J,`∣`,`|`),B(V,U,J,`∣`,`\\vert`),B(H,U,J,`|`,`\\textbar`,!0),B(V,U,J,`∥`,`\\|`),B(V,U,J,`∥`,`\\Vert`),B(H,U,J,`∥`,`\\textbardbl`),B(H,U,J,`~`,`\\textasciitilde`),B(H,U,J,`\\`,`\\textbackslash`),B(H,U,J,`^`,`\\textasciicircum`),B(V,U,q,`↑`,`\\uparrow`,!0),B(V,U,q,`⇑`,`\\Uparrow`,!0),B(V,U,q,`↓`,`\\downarrow`,!0),B(V,U,q,`⇓`,`\\Downarrow`,!0),B(V,U,q,`↕`,`\\updownarrow`,!0),B(V,U,q,`⇕`,`\\Updownarrow`,!0),B(V,U,ey,`∐`,`\\coprod`),B(V,U,ey,`⋁`,`\\bigvee`),B(V,U,ey,`⋀`,`\\bigwedge`),B(V,U,ey,`⨄`,`\\biguplus`),B(V,U,ey,`⋂`,`\\bigcap`),B(V,U,ey,`⋃`,`\\bigcup`),B(V,U,ey,`∫`,`\\int`),B(V,U,ey,`∫`,`\\intop`),B(V,U,ey,`∬`,`\\iint`),B(V,U,ey,`∭`,`\\iiint`),B(V,U,ey,`∏`,`\\prod`),B(V,U,ey,`∑`,`\\sum`),B(V,U,ey,`⨂`,`\\bigotimes`),B(V,U,ey,`⨁`,`\\bigoplus`),B(V,U,ey,`⨀`,`\\bigodot`),B(V,U,ey,`∮`,`\\oint`),B(V,U,ey,`∯`,`\\oiint`),B(V,U,ey,`∰`,`\\oiiint`),B(V,U,ey,`⨆`,`\\bigsqcup`),B(V,U,ey,`∫`,`\\smallint`),B(H,U,$v,`…`,`\\textellipsis`),B(V,U,$v,`…`,`\\mathellipsis`),B(H,U,$v,`…`,`\\ldots`,!0),B(V,U,$v,`…`,`\\ldots`,!0),B(V,U,$v,`⋯`,`\\@cdots`,!0),B(V,U,$v,`⋱`,`\\ddots`,!0),B(V,U,J,`⋮`,`\\varvdots`),B(H,U,J,`⋮`,`\\varvdots`),B(V,U,Zv,`ˊ`,`\\acute`),B(V,U,Zv,`ˋ`,`\\grave`),B(V,U,Zv,`¨`,`\\ddot`),B(V,U,Zv,`~`,`\\tilde`),B(V,U,Zv,`ˉ`,`\\bar`),B(V,U,Zv,`˘`,`\\breve`),B(V,U,Zv,`ˇ`,`\\check`),B(V,U,Zv,`^`,`\\hat`),B(V,U,Zv,`⃗`,`\\vec`),B(V,U,Zv,`˙`,`\\dot`),B(V,U,Zv,`˚`,`\\mathring`),B(V,U,K,``,`\\@imath`),B(V,U,K,``,`\\@jmath`),B(V,U,J,`ı`,`ı`),B(V,U,J,`ȷ`,`ȷ`),B(H,U,J,`ı`,`\\i`,!0),B(H,U,J,`ȷ`,`\\j`,!0),B(H,U,J,`ß`,`\\ss`,!0),B(H,U,J,`æ`,`\\ae`,!0),B(H,U,J,`œ`,`\\oe`,!0),B(H,U,J,`ø`,`\\o`,!0),B(H,U,J,`Æ`,`\\AE`,!0),B(H,U,J,`Œ`,`\\OE`,!0),B(H,U,J,`Ø`,`\\O`,!0),B(H,U,Zv,`ˊ`,`\\'`),B(H,U,Zv,`ˋ`,"\\`"),B(H,U,Zv,`ˆ`,`\\^`),B(H,U,Zv,`˜`,`\\~`),B(H,U,Zv,`ˉ`,`\\=`),B(H,U,Zv,`˘`,`\\u`),B(H,U,Zv,`˙`,`\\.`),B(H,U,Zv,`¸`,`\\c`),B(H,U,Zv,`˚`,`\\r`),B(H,U,Zv,`ˇ`,`\\v`),B(H,U,Zv,`¨`,`\\"`),B(H,U,Zv,`˝`,`\\H`),B(H,U,Zv,`◯`,`\\textcircled`);var iy={"--":!0,"---":!0,"``":!0,"''":!0};B(H,U,J,`–`,`--`,!0),B(H,U,J,`–`,`\\textendash`),B(H,U,J,`—`,`---`,!0),B(H,U,J,`—`,`\\textemdash`),B(H,U,J,`‘`,"`",!0),B(H,U,J,`‘`,`\\textquoteleft`),B(H,U,J,`’`,`'`,!0),B(H,U,J,`’`,`\\textquoteright`),B(H,U,J,`“`,"``",!0),B(H,U,J,`“`,`\\textquotedblleft`),B(H,U,J,`”`,`''`,!0),B(H,U,J,`”`,`\\textquotedblright`),B(V,U,J,`°`,`\\degree`,!0),B(H,U,J,`°`,`\\degree`),B(H,U,J,`°`,`\\textdegree`,!0),B(V,U,J,`£`,`\\pounds`),B(V,U,J,`£`,`\\mathsterling`,!0),B(H,U,J,`£`,`\\pounds`),B(H,U,J,`£`,`\\textsterling`,!0),B(V,W,J,`✠`,`\\maltese`),B(H,W,J,`✠`,`\\maltese`);for(var ay=`0123456789/@."`,oy=0;oy<ay.length;oy++){var sy=ay.charAt(oy);B(V,U,J,sy,sy)}for(var cy=`0123456789!@*()-=+";:?/.,`,ly=0;ly<cy.length;ly++){var uy=cy.charAt(ly);B(H,U,J,uy,uy)}for(var dy=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`,fy=0;fy<dy.length;fy++){var py=dy.charAt(fy);B(V,U,K,py,py),B(H,U,J,py,py)}B(V,W,J,`C`,`ℂ`),B(H,W,J,`C`,`ℂ`),B(V,W,J,`H`,`ℍ`),B(H,W,J,`H`,`ℍ`),B(V,W,J,`N`,`ℕ`),B(H,W,J,`N`,`ℕ`),B(V,W,J,`P`,`ℙ`),B(H,W,J,`P`,`ℙ`),B(V,W,J,`Q`,`ℚ`),B(H,W,J,`Q`,`ℚ`),B(V,W,J,`R`,`ℝ`),B(H,W,J,`R`,`ℝ`),B(V,W,J,`Z`,`ℤ`),B(H,W,J,`Z`,`ℤ`),B(V,U,K,`h`,`ℎ`),B(H,U,K,`h`,`ℎ`);for(var Y,my=0;my<dy.length;my++){var hy=dy.charAt(my);Y=String.fromCharCode(55349,56320+my),B(V,U,K,hy,Y),B(H,U,J,hy,Y),Y=String.fromCharCode(55349,56372+my),B(V,U,K,hy,Y),B(H,U,J,hy,Y),Y=String.fromCharCode(55349,56424+my),B(V,U,K,hy,Y),B(H,U,J,hy,Y),Y=String.fromCharCode(55349,56580+my),B(V,U,K,hy,Y),B(H,U,J,hy,Y),Y=String.fromCharCode(55349,56684+my),B(V,U,K,hy,Y),B(H,U,J,hy,Y),Y=String.fromCharCode(55349,56736+my),B(V,U,K,hy,Y),B(H,U,J,hy,Y),Y=String.fromCharCode(55349,56788+my),B(V,U,K,hy,Y),B(H,U,J,hy,Y),Y=String.fromCharCode(55349,56840+my),B(V,U,K,hy,Y),B(H,U,J,hy,Y),Y=String.fromCharCode(55349,56944+my),B(V,U,K,hy,Y),B(H,U,J,hy,Y),my<26&&(Y=String.fromCharCode(55349,56632+my),B(V,U,K,hy,Y),B(H,U,J,hy,Y),Y=String.fromCharCode(55349,56476+my),B(V,U,K,hy,Y),B(H,U,J,hy,Y))}Y=String.fromCharCode(55349,56668),B(V,U,K,`k`,Y),B(H,U,J,`k`,Y);for(var gy=0;gy<10;gy++){var _y=gy.toString();Y=String.fromCharCode(55349,57294+gy),B(V,U,K,_y,Y),B(H,U,J,_y,Y),Y=String.fromCharCode(55349,57314+gy),B(V,U,K,_y,Y),B(H,U,J,_y,Y),Y=String.fromCharCode(55349,57324+gy),B(V,U,K,_y,Y),B(H,U,J,_y,Y),Y=String.fromCharCode(55349,57334+gy),B(V,U,K,_y,Y),B(H,U,J,_y,Y)}for(var vy=`ÐÞþ`,yy=0;yy<vy.length;yy++){var by=vy.charAt(yy);B(V,U,K,by,by),B(H,U,J,by,by)}var xy={mathClass:`mathbf`,textClass:`textbf`,font:`Main-Bold`},Sy={mathClass:`mathnormal`,textClass:`textit`,font:`Math-Italic`},Cy={mathClass:`boldsymbol`,textClass:`boldsymbol`,font:`Main-BoldItalic`},wy={mathClass:`mathscr`,textClass:`textscr`,font:`Script-Regular`},Ty={mathClass:``,textClass:``,font:``},Ey={mathClass:`mathfrak`,textClass:`textfrak`,font:`Fraktur-Regular`},Dy={mathClass:`mathbb`,textClass:`textbb`,font:`AMS-Regular`},Oy={mathClass:`mathboldfrak`,textClass:`textboldfrak`,font:`Fraktur-Regular`},ky={mathClass:`mathsf`,textClass:`textsf`,font:`SansSerif-Regular`},Ay={mathClass:`mathboldsf`,textClass:`textboldsf`,font:`SansSerif-Bold`},jy={mathClass:`mathitsf`,textClass:`textitsf`,font:`SansSerif-Italic`},My={mathClass:`mathtt`,textClass:`texttt`,font:`Typewriter-Regular`},Ny=[xy,xy,Sy,Sy,Cy,Cy,wy,Ty,Ty,Ty,Ey,Ey,Dy,Dy,Oy,Oy,ky,ky,Ay,Ay,jy,jy,Ty,Ty,My,My],Py=[xy,Ty,ky,Ay,My],Fy=e=>{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484)return Ny[Math.floor((r-119808)/26)];if(120782<=r&&r<=120831)return Py[Math.floor((r-120782)/10)];if(r===120485||r===120486)return Ny[0];if(120486<r&&r<120782)return Ty;throw new L(`Unsupported character: `+e)},Iy=function(e,t,n){if(Xv[n][e]){var r=Xv[n][e].replace;r&&(e=r)}return{value:e,metrics:qv(e,t,n)}},Ly=function(e,t,n,r,i){var a=Iy(e,t,n),o=a.metrics;e=a.value;var s;if(o){var c=o.italic;(n===`text`||r&&r.font===`mathit`)&&(c=0),s=new Iv(e,o.height,o.depth,c,o.skew,o.width,i)}else typeof console<`u`&&console.warn(`No character metrics `+(`for '`+e+`' in style '`+t+`' and mode '`+n+`'`)),s=new Iv(e,0,0,0,0,0,i);if(r){s.maxFontSize=r.sizeMultiplier,r.style.isTight()&&s.classes.push(`mtight`);var l=r.getColor();l&&(s.style.color=l)}return s},Ry=function(e,t,n,r){return r===void 0&&(r=[]),n.font===`boldsymbol`&&Iy(e,`Main-Bold`,t).metrics?Ly(e,`Main-Bold`,t,n,r.concat([`mathbf`])):e===`\\`||Xv[t][e].font===`main`?Ly(e,`Main-Regular`,t,n,r):Ly(e,`AMS-Regular`,t,n,r.concat([`amsrm`]))},zy=function(e,t,n){return n!==`textord`&&Iy(e,`Math-BoldItalic`,t).metrics?{fontName:`Math-BoldItalic`,fontClass:`boldsymbol`}:{fontName:`Main-Bold`,fontClass:`mathbf`}},By=function(e,t){var n=e.type===`mathord`?`mathord`:`textord`,r=e.mode,i=e.text,a=[`mord`],o=t.font,s=t.fontFamily,c=t.fontWeight,l=t.fontShape,u=r===`math`||r===`text`&&!!o,d=u?o:s,f=``,p=``;if(i.charCodeAt(0)===55349){var m=Fy(i);f=m.font,p=m[r+`Class`]}if(f)return Ly(i,f,r,t,a.concat(p));if(d){var h,g;if(d===`boldsymbol`){var _=zy(i,r,n);h=_.fontName,g=[_.fontClass]}else u?(h=$y[o].fontName,g=[o]):(h=Qy(s,c,l),g=[s,c,l]);if(Iy(i,h,r).metrics)return Ly(i,h,r,t,a.concat(g));if(Object.prototype.hasOwnProperty.call(iy,i)&&h.slice(0,10)===`Typewriter`){for(var v=[],y=0;y<i.length;y++)v.push(Ly(i[y],h,r,t,a.concat(g)));return qy(v)}}if(n===`mathord`)return Ly(i,`Math-Italic`,r,t,a.concat([`mathnormal`]));if(n===`textord`){var b=Xv[r][i]&&Xv[r][i].font;if(b===`ams`)return Ly(i,Qy(`amsrm`,c,l),r,t,a.concat(`amsrm`,c,l));if(b===`main`||!b)return Ly(i,Qy(`textrm`,c,l),r,t,a.concat(c,l));var x=Qy(b,c,l);return Ly(i,x,r,t,a.concat(x,c,l))}throw Error(`unexpected type: `+n+` in makeOrd`)},Vy=(e,t)=>{if(Ev(e.classes)!==Ev(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass(`mathnormal`))return!1;if(e.classes.length===1){var n=e.classes[0];if(n===`mbin`||n===`mord`)return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},Hy=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof Iv&&r instanceof Iv&&Vy(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},Uy=function(e){for(var t=0,n=0,r=0,i=0;i<e.children.length;i++){var a=e.children[i];a.height>t&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},X=function(e,t,n,r){var i=new Mv(e,t,n,r);return Uy(i),i},Wy=(e,t,n,r)=>new Mv(e,t,n,r),Gy=function(e,t,n){var r=X([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=z(r.height),r.maxFontSize=1,r},Ky=function(e,t,n,r){var i=new Nv(e,t,n,r);return Uy(i),i},qy=function(e){var t=new xv(e);return Uy(t),t},Jy=function(e,t){return e instanceof xv?X([],[e],t):e},Yy=function(e){if(e.positionType===`individualShift`){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a<t.length;a++){var o=-t[a].shift-i-t[a].elem.depth,s=o-(t[a-1].elem.height+t[a-1].elem.depth);i+=o,n.push({type:`kern`,size:s}),n.push(t[a])}return{children:n,depth:r}}var c;if(e.positionType===`top`){for(var l=e.positionData,u=0;u<e.children.length;u++){var d=e.children[u];l-=d.type===`kern`?d.size:d.elem.height+d.elem.depth}c=l}else if(e.positionType===`bottom`)c=-e.positionData;else{var f=e.children[0];if(f.type!==`elem`)throw Error(`First child must have type "elem".`);if(e.positionType===`shift`)c=-f.elem.depth-e.positionData;else if(e.positionType===`firstBaseline`)c=-f.elem.depth;else throw Error(`Invalid positionType `+e.positionType+`.`)}return{children:e.children,depth:c}},Xy=function(e,t){for(var n=Yy(e),r=n.children,i=n.depth,a=0,o=0;o<r.length;o++){var s=r[o];if(s.type===`elem`){var c=s.elem;a=Math.max(a,c.maxFontSize,c.height)}}a+=2;var l=X([`pstrut`],[]);l.style.height=z(a);for(var u=[],d=i,f=i,p=i,m=0;m<r.length;m++){var h=r[m];if(h.type===`kern`)p+=h.size;else{var g=h.elem,_=h.wrapperClasses||[],v=h.wrapperStyle||{},y=X(_,[l,g],void 0,v);y.style.top=z(-a-p-g.depth),h.marginLeft&&(y.style.marginLeft=h.marginLeft),h.marginRight&&(y.style.marginRight=h.marginRight),u.push(y),p+=g.height+g.depth}d=Math.min(d,p),f=Math.max(f,p)}var b=X([`vlist`],u);b.style.height=z(f);var x;if(d<0){var S=X([`vlist`],[X([],[])]);S.style.height=z(-d),x=[X([`vlist-r`],[b,X([`vlist-s`],[new Iv(``)])]),X([`vlist-r`],[S])]}else x=[X([`vlist-r`],[b])];var C=X([`vlist-t`],x);return x.length===2&&C.classes.push(`vlist-t2`),C.height=f,C.depth=-d,C},Zy=(e,t)=>{var n=X([`mspace`],[],t),r=Tv(e,t);return n.style.marginRight=z(r),n},Qy=(e,t,n)=>{var r,i;switch(e){case`amsrm`:r=`AMS`;break;case`textrm`:r=`Main`;break;case`textsf`:r=`SansSerif`;break;case`texttt`:r=`Typewriter`;break;default:r=e}return i=t===`textbf`&&n===`textit`?`BoldItalic`:t===`textbf`?`Bold`:n===`textit`?`Italic`:`Regular`,r+`-`+i},$y={mathbf:{variant:`bold`,fontName:`Main-Bold`},mathrm:{variant:`normal`,fontName:`Main-Regular`},textit:{variant:`italic`,fontName:`Main-Italic`},mathit:{variant:`italic`,fontName:`Main-Italic`},mathnormal:{variant:`italic`,fontName:`Math-Italic`},mathsfit:{variant:`sans-serif-italic`,fontName:`SansSerif-Italic`},mathbb:{variant:`double-struck`,fontName:`AMS-Regular`},mathcal:{variant:`script`,fontName:`Caligraphic-Regular`},mathfrak:{variant:`fraktur`,fontName:`Fraktur-Regular`},mathscr:{variant:`script`,fontName:`Script-Regular`},mathsf:{variant:`sans-serif`,fontName:`SansSerif-Regular`},mathtt:{variant:`monospace`,fontName:`Typewriter-Regular`}},eb={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},tb=function(e,t){var n=eb[e],r=n[0],i=n[1],a=n[2],o=Wy([`katex-overlay`],[new Lv([new Rv(r)],{width:z(i),height:z(a),style:`width:`+z(i),viewBox:`0 0 `+1e3*i+` `+1e3*a,preserveAspectRatio:`xMinYMin`})],t);return o.height=a,o.style.height=z(a),o.style.width=z(i),o},nb={number:3,unit:`mu`},rb={number:4,unit:`mu`},ib={number:5,unit:`mu`},ab={mord:{mop:nb,mbin:rb,mrel:ib,minner:nb},mop:{mord:nb,mop:nb,mrel:ib,minner:nb},mbin:{mord:rb,mop:rb,mopen:rb,minner:rb},mrel:{mord:ib,mop:ib,mopen:ib,minner:ib},mopen:{},mclose:{mop:nb,mbin:rb,mrel:ib,minner:nb},mpunct:{mord:nb,mop:nb,mrel:ib,mopen:nb,mclose:nb,mpunct:nb,minner:nb},minner:{mord:nb,mop:nb,mbin:rb,mrel:ib,mopen:nb,mpunct:nb,minner:nb}},ob={mord:{mop:nb},mop:{mord:nb,mop:nb},mbin:{},mrel:{},mopen:{},mclose:{mop:nb},mpunct:{},minner:{mop:nb}},sb={},cb={},lb={};function Z(e){for(var t=e.type,n=e.names,r=e.htmlBuilder,i=e.mathmlBuilder,a=0;a<n.length;++a)sb[n[a]]=e;t&&(r&&(cb[t]=r),i&&(lb[t]=i))}function ub(e){var t=e.type,n=e.htmlBuilder,r=e.mathmlBuilder;n&&(cb[t]=n),r&&(lb[t]=r)}var db=function(e){return e.type===`ordgroup`&&e.body.length===1?e.body[0]:e},fb=function(e){return e.type===`ordgroup`?e.body:[e]},pb=new Set([`leftmost`,`mbin`,`mopen`,`mrel`,`mop`,`mpunct`]),mb=new Set([`rightmost`,`mrel`,`mclose`,`mpunct`]),hb={display:R.DISPLAY,text:R.TEXT,script:R.SCRIPT,scriptscript:R.SCRIPTSCRIPT},gb={mord:`mord`,mop:`mop`,mbin:`mbin`,mrel:`mrel`,mopen:`mopen`,mclose:`mclose`,mpunct:`mpunct`,minner:`minner`},_b=function(e,t,n,r){r===void 0&&(r=[null,null]);for(var i=[],a=0;a<e.length;a++){var o=Cb(e[a],t);if(o instanceof xv){var s=o.children;i.push(...s)}else i.push(o)}if(Hy(i),!n)return i;var c=t;if(e.length===1){var l=e[0];l.type===`sizing`?c=t.havingSize(l.size):l.type===`styling`&&(c=t.havingStyle(hb[l.style]))}var u=X([r[0]||`leftmost`],[],t),d=X([r[1]||`rightmost`],[],t),f=n===`root`;return vb(i,(e,t)=>{var n=t.classes[0],r=e.classes[0];n===`mbin`&&mb.has(r)?t.classes[0]=`mord`:r===`mbin`&&pb.has(n)&&(e.classes[0]=`mord`)},{node:u},d,f),vb(i,(e,t)=>{var n=xb(t),r=xb(e),i=n&&r?e.hasClass(`mtight`)?ob[n]?.[r]:ab[n]?.[r]:null;if(i)return Zy(i,c)},{node:u},d,f),i},vb=function(e,t,n,r,i){r&&e.push(r);for(var a=0;a<e.length;a++){var o=e[a],s=yb(o);if(s){vb(s.children,t,n,null,i);continue}var c=!o.hasClass(`mspace`);if(c){var l=t(o,n.node);l&&(n.insertAfter?n.insertAfter(l):(e.unshift(l),a++))}c?n.node=o:i&&o.hasClass(`katex-newline`)&&(n.node=X([`leftmost`])),n.insertAfter=(t=>n=>{e.splice(t+1,0,n),a++})(a)}r&&e.pop()},yb=function(e){return e instanceof xv||e instanceof Nv||e instanceof Mv&&e.hasClass(`enclosing`)?e:null},bb=function(e,t){var n=yb(e);if(n){var r=n.children;if(r.length){if(t===`right`)return bb(r[r.length-1],`right`);if(t===`left`)return bb(r[0],`left`)}}return e},xb=function(e,t){return e?(t&&(e=bb(e,t)),gb[e.classes[0]]||null):null},Sb=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return X(t.concat(n))},Cb=function(e,t,n){if(!e)return X();if(cb[e.type]){var r=cb[e.type](e,t);if(n&&t.size!==n.size){r=X(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}throw new L(`Got group of unknown type: '`+e.type+`'`)};function wb(e,t){var n=X([`katex-base`],e,t),r=X([`katex-strut`]);return r.style.height=z(n.height+n.depth),n.depth&&(r.style.verticalAlign=z(-n.depth)),n.children.unshift(r),n}function Tb(e,t){var n=null;e.length===1&&e[0].type===`tag`&&(n=e[0].tag,e=e[0].body);var r=_b(e,t,`root`),i;r.length===2&&r[1].hasClass(`katex-tag`)&&(i=r.pop());for(var a=[],o=[],s=0;s<r.length;s++)if(o.push(r[s]),r[s].hasClass(`mbin`)||r[s].hasClass(`mrel`)||r[s].hasClass(`allowbreak`)){for(var c=!1;s<r.length-1&&r[s+1].hasClass(`mspace`)&&!r[s+1].hasClass(`katex-newline`);)s++,o.push(r[s]),r[s].hasClass(`nobreak`)&&(c=!0);c||(a.push(wb(o,t)),o=[])}else r[s].hasClass(`katex-newline`)&&(o.pop(),o.length>0&&(a.push(wb(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(wb(o,t));var l;n?(l=wb(_b(n,t,!0),t),l.classes=[`katex-tag`],a.push(l)):i&&a.push(i);var u=X([`katex-html`],a);if(u.setAttribute(`aria-hidden`,`true`),l){var d=l.children[0];d.style.height=z(u.height+u.depth),u.depth&&(d.style.verticalAlign=z(-u.depth))}return u}function Eb(e){return new xv(e)}var Q=class{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,this.type);for(var t of Object.entries(this.attributes)){var n=t[0],r=t[1];e.setAttribute(n,r)}this.classes.length>0&&(e.className=Ev(this.classes));for(var i=0;i<this.children.length;i++)if(this.children[i]instanceof Db&&this.children[i+1]instanceof Db){for(var a=this.children[i].toText()+this.children[++i].toText();this.children[i+1]instanceof Db;)a+=this.children[++i].toText();e.appendChild(new Db(a).toNode())}else e.appendChild(this.children[i].toNode());return e}toMarkup(){var e=`<`+this.type;for(var t of Object.entries(this.attributes)){var n=t[0],r=t[1];e+=` `+n+`="`,e+=j_(r),e+=`"`}this.classes.length>0&&(e+=` class ="`+j_(Ev(this.classes))+`"`),e+=`>`;for(var i=0;i<this.children.length;i++)e+=this.children[i].toMarkup();return e+=`</`+this.type+`>`,e}toText(){return this.children.map(e=>e.toText()).join(``)}},Db=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return j_(this.toText())}toText(){return this.text}},Ob=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?` `:e>=.1666&&e<=.1667?` `:e>=.2222&&e<=.2223?` `:e>=.2777&&e<=.2778?` `:e>=-.05556&&e<=-.05555?` `:e>=-.1667&&e<=-.1666?` `:e>=-.2223&&e<=-.2222?` `:e>=-.2778&&e<=-.2777?` `:null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`mspace`);return e.setAttribute(`width`,z(this.width)),e}toMarkup(){return this.character?`<mtext>`+this.character+`</mtext>`:`<mspace width="`+z(this.width)+`"/>`}toText(){return this.character?this.character:` `}},kb=new Set([`\\imath`,`\\jmath`]),Ab=new Set([`mrow`,`mtable`]),jb=function(e,t,n){var r,i;return Xv[t][e]&&Xv[t][e].replace&&e.charCodeAt(0)!==55349&&(!Object.prototype.hasOwnProperty.call(iy,e)||(n==null||(r=n.fontFamily)==null?void 0:r.slice(4,6))!==`tt`&&(n==null||(i=n.font)==null?void 0:i.slice(4,6))!==`tt`)&&(e=Xv[t][e].replace),new Db(e)},Mb=function(e){return e.length===1?e[0]:new Q(`mrow`,e)},Nb={mathit:`italic`,boldsymbol:e=>e.type===`textord`?`bold`:`bold-italic`,mathbf:`bold`,mathbb:`double-struck`,mathsfit:`sans-serif-italic`,mathfrak:`fraktur`,mathscr:`script`,mathcal:`script`,mathsf:`sans-serif`,mathtt:`monospace`},Pb=(e,t)=>{if(e.mode===`text`){if(t.fontFamily===`texttt`)return`monospace`;if(t.fontFamily===`textsf`)return t.fontShape===`textit`&&t.fontWeight===`textbf`?`sans-serif-bold-italic`:t.fontShape===`textit`?`sans-serif-italic`:t.fontWeight===`textbf`?`bold-sans-serif`:`sans-serif`;if(t.fontShape===`textit`&&t.fontWeight===`textbf`)return`bold-italic`;if(t.fontShape===`textit`)return`italic`;if(t.fontWeight===`textbf`)return`bold`}var n=t.font;if(!n||n===`mathnormal`)return null;var r=e.mode,i=Nb[n];if(i)return typeof i==`function`?i(e):i;var a=e.text;if(kb.has(a))return null;if(Xv[r][a]){var o=Xv[r][a].replace;o&&(a=o)}var s=$y[n].fontName;return qv(a,s,r)?$y[n].variant:null};function Fb(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof Db&&t.text===`.`}if(e.type===`mo`&&e.children.length===1&&e.getAttribute(`separator`)===`true`&&e.getAttribute(`lspace`)===`0em`&&e.getAttribute(`rspace`)===`0em`){var n=e.children[0];return n instanceof Db&&n.text===`,`}return!1}var Ib=function(e,t,n){if(e.length===1){var r=Rb(e[0],t);return n&&r instanceof Q&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o<e.length;o++){var s=Rb(e[o],t);if(s instanceof Q&&a instanceof Q){if(s.type===`mtext`&&a.type===`mtext`&&s.getAttribute(`mathvariant`)===a.getAttribute(`mathvariant`)){a.children.push(...s.children);continue}if(s.type===`mn`&&a.type===`mn`){a.children.push(...s.children);continue}if(Fb(s)&&a.type===`mn`){a.children.push(...s.children);continue}if(s.type===`mn`&&Fb(a))s.children=[...a.children,...s.children],i.pop();else if((s.type===`msup`||s.type===`msub`)&&s.children.length>=1&&(a.type===`mn`||Fb(a))){var c=s.children[0];c instanceof Q&&c.type===`mn`&&(c.children=[...a.children,...c.children],i.pop())}else if(a.type===`mi`&&a.children.length===1){var l=a.children[0];if(l instanceof Db&&l.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var u=s.children[0];u instanceof Db&&u.text.length>0&&(u.text=u.text.slice(0,1)+`̸`+u.text.slice(1),i.pop())}}}i.push(s),a=s}return i},Lb=function(e,t,n){return Mb(Ib(e,t,n))},Rb=function(e,t){if(!e)return new Q(`mrow`);if(lb[e.type])return lb[e.type](e,t);throw new L(`Got group of unknown type: '`+e.type+`'`)};function zb(e,t,n,r,i){var a=Ib(e,n),o=a.length===1&&a[0]instanceof Q&&Ab.has(a[0].type)?a[0]:new Q(`mrow`,a),s=new Q(`annotation`,[new Db(t)]);s.setAttribute(`encoding`,`application/x-tex`);var c=new Q(`math`,[new Q(`semantics`,[o,s])]);return c.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&c.setAttribute(`display`,`block`),X([i?`katex`:`katex-mathml`],[c])}var Bb=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Vb=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Hb=function(e,t){return t.size<2?e:Bb[e-1][t.size-1]},Ub=class e{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||``,this.fontFamily=t.fontFamily||``,this.fontWeight=t.fontWeight||``,this.fontShape=t.fontShape||``,this.sizeMultiplier=Vb[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(n,t),new e(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Hb(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:Vb[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=Hb(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:``})}withTextFontWeight(e){return this.extend({fontWeight:e,font:``})}withTextFontShape(e){return this.extend({fontShape:e,font:``})}sizingClasses(e){return e.size===this.size?[]:[`katex-sizing`,`reset-size`+e.size,`size`+this.size]}baseSizingClasses(){return this.size===e.BASESIZE?[]:[`katex-sizing`,`reset-size`+this.size,`size`+e.BASESIZE]}fontMetrics(){return this._fontMetrics||=Yv(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}};Ub.BASESIZE=6;var Wb=function(e){return new Ub({style:e.displayMode?R.DISPLAY:R.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},Gb=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=X(n,[e])}return e},Kb=function(e,t,n){var r=Wb(n),i;return n.output===`mathml`?zb(e,t,r,n.displayMode,!0):(i=n.output===`html`?X([`katex`],[Tb(e,r)]):X([`katex`],[zb(e,t,r,n.displayMode,!1),Tb(e,r)]),Gb(i,n))},qb=function(e,t,n){return Gb(X([`katex`],[Tb(e,Wb(n))]),n)},Jb={widehat:`^`,widecheck:`ˇ`,widetilde:`~`,utilde:`~`,overleftarrow:`←`,underleftarrow:`←`,xleftarrow:`←`,overrightarrow:`→`,underrightarrow:`→`,xrightarrow:`→`,underbrace:`⏟`,overbrace:`⏞`,underbracket:`⎵`,overbracket:`⎴`,overgroup:`⏠`,undergroup:`⏡`,overleftrightarrow:`↔`,underleftrightarrow:`↔`,xleftrightarrow:`↔`,Overrightarrow:`⇒`,xRightarrow:`⇒`,overleftharpoon:`↼`,xleftharpoonup:`↼`,overrightharpoon:`⇀`,xrightharpoonup:`⇀`,xLeftarrow:`⇐`,xLeftrightarrow:`⇔`,xhookleftarrow:`↩`,xhookrightarrow:`↪`,xmapsto:`↦`,xrightharpoondown:`⇁`,xleftharpoondown:`↽`,xrightleftharpoons:`⇌`,xleftrightharpoons:`⇋`,xtwoheadleftarrow:`↞`,xtwoheadrightarrow:`↠`,xlongequal:`=`,xtofrom:`⇄`,xrightleftarrows:`⇄`,xrightequilibrium:`⇌`,xleftequilibrium:`⇋`,"\\cdrightarrow":`→`,"\\cdleftarrow":`←`,"\\cdlongequal":`=`},Yb=function(e){var t=new Q(`mo`,[new Db(Jb[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},Xb={overrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],overleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],underrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],underleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],xrightarrow:[[`rightarrow`],1.469,522,`xMaxYMin`],"\\cdrightarrow":[[`rightarrow`],3,522,`xMaxYMin`],xleftarrow:[[`leftarrow`],1.469,522,`xMinYMin`],"\\cdleftarrow":[[`leftarrow`],3,522,`xMinYMin`],Overrightarrow:[[`doublerightarrow`],.888,560,`xMaxYMin`],xRightarrow:[[`doublerightarrow`],1.526,560,`xMaxYMin`],xLeftarrow:[[`doubleleftarrow`],1.526,560,`xMinYMin`],overleftharpoon:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoonup:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoondown:[[`leftharpoondown`],.888,522,`xMinYMin`],overrightharpoon:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoonup:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoondown:[[`rightharpoondown`],.888,522,`xMaxYMin`],xlongequal:[[`longequal`],.888,334,`xMinYMin`],"\\cdlongequal":[[`longequal`],3,334,`xMinYMin`],xtwoheadleftarrow:[[`twoheadleftarrow`],.888,334,`xMinYMin`],xtwoheadrightarrow:[[`twoheadrightarrow`],.888,334,`xMaxYMin`],overleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],overbrace:[[`leftbrace`,`midbrace`,`rightbrace`],1.6,548],underbrace:[[`leftbraceunder`,`midbraceunder`,`rightbraceunder`],1.6,548],underleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],xleftrightarrow:[[`leftarrow`,`rightarrow`],1.75,522],xLeftrightarrow:[[`doubleleftarrow`,`doublerightarrow`],1.75,560],xrightleftharpoons:[[`leftharpoondownplus`,`rightharpoonplus`],1.75,716],xleftrightharpoons:[[`leftharpoonplus`,`rightharpoondownplus`],1.75,716],xhookleftarrow:[[`leftarrow`,`righthook`],1.08,522],xhookrightarrow:[[`lefthook`,`rightarrow`],1.08,522],overlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],underlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],overbracket:[[`leftbracketover`,`rightbracketover`],1.6,440],underbracket:[[`leftbracketunder`,`rightbracketunder`],1.6,410],overgroup:[[`leftgroup`,`rightgroup`],.888,342],undergroup:[[`leftgroupunder`,`rightgroupunder`],.888,342],xmapsto:[[`leftmapsto`,`rightarrow`],1.5,522],xtofrom:[[`leftToFrom`,`rightToFrom`],1.75,528],xrightleftarrows:[[`baraboveleftarrow`,`rightarrowabovebar`],1.75,901],xrightequilibrium:[[`baraboveshortleftharpoon`,`rightharpoonaboveshortbar`],1.75,716],xleftequilibrium:[[`shortbaraboveleftharpoon`,`shortrightharpoonabovebar`],1.75,716]},Zb=new Set([`widehat`,`widecheck`,`widetilde`,`utilde`]),Qb=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(Zb.has(r)&&`base`in e){var i=e.base.type===`ordgroup`?e.base.body.length:1,a,o,s;if(i>5)r===`widehat`||r===`widecheck`?(a=420,n=2364,s=.42,o=r+`4`):(a=312,n=2340,s=.34,o=`tilde4`);else{var c=[1,1,2,2,3,3][i];r===`widehat`||r===`widecheck`?(n=[0,1062,2364,2364,2364][c],a=[0,239,300,360,420][c],s=[0,.24,.3,.3,.36,.42][c],o=r+c):(n=[0,600,1033,2339,2340][c],a=[0,260,286,306,312][c],s=[0,.26,.286,.3,.306,.34][c],o=`tilde`+c)}return{span:Wy([],[new Lv([new Rv(o)],{width:`100%`,height:z(s),viewBox:`0 0 `+n+` `+a,preserveAspectRatio:`none`})],t),minWidth:0,height:s}}var l=[],u=Xb[r];if(!u)throw Error(`No SVG data for "`+r+`".`);var d=u[0],f=u[1],p=u[2],m=p/1e3,h=d.length,g,_;if(h===1){if(u.length!==4)throw Error(`Expected 4-tuple for single-path SVG data "`+r+`".`);g=[`hide-tail`],_=[u[3]]}else if(h===2)g=[`halfarrow-left`,`halfarrow-right`],_=[`xMinYMin`,`xMaxYMin`];else if(h===3)g=[`brace-left`,`brace-center`,`brace-right`],_=[`xMinYMin`,`xMidYMin`,`xMaxYMin`];else throw Error(`Correct katexImagesData or update code here to support
|
|
876
|
+
`+h+` children.`);for(var v=0;v<h;v++){var y=new Lv([new Rv(d[v])],{width:`400em`,height:z(m),viewBox:`0 0 `+n+` `+p,preserveAspectRatio:_[v]+` slice`}),b=Wy([g[v]],[y],t);if(h===1)return{span:b,minWidth:f,height:m};b.style.height=z(m),l.push(b)}return{span:X([`katex-stretchy`],l,t),minWidth:f,height:m}}var r=n(),i=r.span,a=r.minWidth,o=r.height;return i.height=o,i.style.height=z(o),a>0&&(i.style.minWidth=z(a)),i},$b=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=X([`katex-stretchy`,t],[],i),t===`fbox`){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var c=[];/^[bx]cancel$/.test(t)&&c.push(new zv({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&c.push(new zv({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`})),a=Wy([],[new Lv(c,{width:`100%`,height:z(o)})],i)}return a.height=o,a.style.height=z(o),a},ex=[`bin`,`close`,`inner`,`open`,`punct`,`rel`],tx=[`accent-token`,`mathord`,`op-token`,`spacing`,`textord`],nx=new Set(ex),rx=new Set(tx);function ix(e){return nx.has(e)}function ax(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function ox(e){var t=sx(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function sx(e){return e.type===`atom`||rx.has(e.type)?e:null}function cx(e,t,n){var r=``;for(var i of e.body)if(i.type===`textord`)r+=i.text;else if(n&&i.type===`spacing`&&i.text===` `)r+=` `;else throw new L(t,e);return r}var lx=e=>{if(e instanceof Iv)return e;if(Hv(e)&&e.children.length===1)return lx(e.children[0])},ux=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=ax(e.base,`accent`),n=r.base,e.base=n,i=Vv(Cb(e,t)),e.base=r):(r=ax(e,`accent`),n=r.base);var a=Cb(n,t.havingCrampedStyle()),o=r.isShifty&&P_(n),s=0;o&&(s=lx(a)?.skew??0);var c=r.label===`\\c`,l=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),u;if(r.isStretchy)u=Qb(r,t),u=Xy({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:u,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+z(2*s)+`)`,marginLeft:z(2*s)}:void 0}]});else{var d,f;r.label===`\\vec`?(d=tb(`vec`,t),f=eb.vec[1]):(d=By({type:`textord`,mode:r.mode,text:r.label},t),d=Bv(d),d.italic=0,f=d.width,c&&(l+=d.depth)),u=X([`accent-body`],[d]);var p=r.label===`\\textcircled`;p&&(u.classes.push(`accent-full`),l=a.height);var m=s;p||(m-=f/2),u.style.left=z(m),r.label===`\\textcircled`&&(u.style.top=`.2em`),u=Xy({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-l},{type:`elem`,elem:u}]})}var h=X([`mord`,`katex-accent`],[u],t);return i?(i.children[0]=h,i.height=Math.max(h.height,i.height),i.classes[0]=`mord`,i):h},dx=(e,t)=>{var n=e.isStretchy?Yb(e.label):new Q(`mo`,[jb(e.label,e.mode)]),r=new Q(`mover`,[Rb(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},fx=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`));Z({type:`accent`,names:[`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`,`\\widecheck`,`\\widehat`,`\\widetilde`,`\\overrightarrow`,`\\overleftarrow`,`\\Overrightarrow`,`\\overleftrightarrow`,`\\overgroup`,`\\overlinesegment`,`\\overleftharpoon`,`\\overrightharpoon`],numArgs:1,handler:(e,t)=>{var n=db(t[0]),r=!fx.test(e.funcName),i=!r||e.funcName===`\\widehat`||e.funcName===`\\widetilde`||e.funcName===`\\widecheck`;return{type:`accent`,mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:ux,mathmlBuilder:dx}),Z({type:`accent`,names:[`\\'`,"\\`",`\\^`,`\\~`,`\\=`,`\\u`,`\\.`,`\\"`,`\\c`,`\\r`,`\\H`,`\\v`,`\\textcircled`],numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`primitive`],handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r===`math`&&(e.parser.settings.reportNonstrict(`mathVsTextAccents`,`LaTeX's accent `+e.funcName+` works only in text mode`),r=`text`),{type:`accent`,mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}}}),Z({type:`accentUnder`,names:[`\\underleftarrow`,`\\underrightarrow`,`\\underleftrightarrow`,`\\undergroup`,`\\underlinesegment`,`\\utilde`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`accentUnder`,mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=Cb(e.base,t),r=Qb(e,t),i=e.label===`\\utilde`?.12:0;return X([`mord`,`accentunder`],[Xy({positionType:`top`,positionData:n.height,children:[{type:`elem`,elem:r,wrapperClasses:[`svg-align`]},{type:`kern`,size:i},{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=Yb(e.label),r=new Q(`munder`,[Rb(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}});var px=e=>{var t=new Q(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t};Z({type:`xArrow`,names:[`\\xleftarrow`,`\\xrightarrow`,`\\xLeftarrow`,`\\xRightarrow`,`\\xleftrightarrow`,`\\xLeftrightarrow`,`\\xhookleftarrow`,`\\xhookrightarrow`,`\\xmapsto`,`\\xrightharpoondown`,`\\xrightharpoonup`,`\\xleftharpoondown`,`\\xleftharpoonup`,`\\xrightleftharpoons`,`\\xleftrightharpoons`,`\\xlongequal`,`\\xtwoheadrightarrow`,`\\xtwoheadleftarrow`,`\\xtofrom`,`\\xrightleftarrows`,`\\xrightequilibrium`,`\\xleftequilibrium`,`\\\\cdrightarrow`,`\\\\cdleftarrow`,`\\\\cdlongequal`],numArgs:1,numOptionalArgs:1,handler(e,t,n){var r=e.parser,i=e.funcName;return{type:`xArrow`,mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=Jy(Cb(e.body,r,t),t),a=e.label.slice(0,2)===`\\x`?`x`:`cd`;i.classes.push(a+`-arrow-pad`);var o;e.below&&(r=t.havingStyle(n.sub()),o=Jy(Cb(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=Qb(e,t),c=-t.fontMetrics().axisHeight+.5*s.height,l=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label===`\\xleftequilibrium`)&&(l-=i.depth);var u;if(o){var d=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;u=Xy({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]},{type:`elem`,elem:o,shift:d}]})}else u=Xy({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]}]});return X([`mrel`,`x-arrow`],[u],t)},mathmlBuilder(e,t){var n=Yb(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=px(Rb(e.body,t));r=e.below?new Q(`munderover`,[n,px(Rb(e.below,t)),i]):new Q(`mover`,[n,i])}else e.below?r=new Q(`munder`,[n,px(Rb(e.below,t))]):(r=px(),r=new Q(`mover`,[n,r]));return r}});function mx(e,t){var n=_b(e.body,t,!0);return X([e.mclass],n,t)}function hx(e,t){var n,r=Ib(e.body,t);return e.mclass===`minner`?n=new Q(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new Q(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new Q(`mo`,r),e.mclass===`mbin`?(n.attributes.lspace=`0.22em`,n.attributes.rspace=`0.22em`):e.mclass===`mpunct`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0.17em`):(e.mclass===`mopen`||e.mclass===`mclose`)&&(n.attributes.lspace=`0em`,n.attributes.rspace=`0em`)),n}Z({type:`mclass`,names:[`\\mathord`,`\\mathbin`,`\\mathrel`,`\\mathopen`,`\\mathclose`,`\\mathpunct`,`\\mathinner`],numArgs:1,primitive:!0,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`mclass`,mode:n.mode,mclass:`m`+r.slice(5),body:fb(i),isCharacterBox:P_(i)}},htmlBuilder:mx,mathmlBuilder:hx});var gx=e=>{var t=e.type===`ordgroup`&&e.body.length?e.body[0]:e;return t.type===`atom`&&(t.family===`bin`||t.family===`rel`)?`m`+t.family:`mord`};Z({type:`mclass`,names:[`\\@binrel`],numArgs:2,handler(e,t){return{type:`mclass`,mode:e.parser.mode,mclass:gx(t[0]),body:fb(t[1]),isCharacterBox:P_(t[1])}}}),Z({type:`mclass`,names:[`\\stackrel`,`\\overset`,`\\underset`],numArgs:2,handler(e,t){var n=e.parser,r=e.funcName,i=t[1],a=t[0],o=r===`\\stackrel`?`mrel`:gx(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:fb(i)},c=r===`\\underset`?{type:`supsub`,mode:a.mode,base:s,sub:a}:{type:`supsub`,mode:a.mode,base:s,sup:a};return{type:`mclass`,mode:n.mode,mclass:o,body:[c],isCharacterBox:P_(c)}}}),Z({type:`pmb`,names:[`\\pmb`],numArgs:1,allowedInText:!0,handler(e,t){return{type:`pmb`,mode:e.parser.mode,mclass:gx(t[0]),body:fb(t[0])}},htmlBuilder(e,t){var n=_b(e.body,t,!0),r=X([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=new Q(`mstyle`,Ib(e.body,t));return n.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),n}});var _x={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},vx=()=>({type:`styling`,body:[],mode:`math`,style:`display`,resetFont:!0}),yx=e=>e.type===`textord`&&e.text===`@`,bx=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t;function xx(e,t,n){var r=_x[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o={type:`ordgroup`,mode:`math`,body:[i,n.callFunction(`\\Big`,[a],[]),n.callFunction(`\\\\cdright`,[t[1]],[])]};return n.callFunction(`\\\\cdparent`,[o],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:return n.callFunction(`\\Big`,[{type:`textord`,text:`\\Vert`,mode:`math`}],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function Sx(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set(`\\cr`,`\\\\\\relax`),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,`\\\\`)),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n===`&`||n===`\\\\`)e.consume();else if(n===`\\end`){t[t.length-1].length===0&&t.pop();break}else throw new L(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;a<t.length;a++){for(var o=t[a],s=vx(),c=0;c<o.length;c++)if(!yx(o[c]))s.body.push(o[c]);else{r.push(s),c+=1;var l=ox(o[c]).text,u=[,,];if(u[0]={type:`ordgroup`,mode:`math`,body:[]},u[1]={type:`ordgroup`,mode:`math`,body:[]},!`=|.`.includes(l)){if(`<>AV`.includes(l))for(var d=0;d<2;d++){for(var f=!0,p=c+1;p<o.length;p++){if(bx(o[p],l)){f=!1,c=p;break}if(yx(o[p]))throw new L(`Missing a `+l+` character to complete a CD arrow.`,o[p]);u[d].body.push(o[p])}if(f)throw new L(`Missing a `+l+` character to complete a CD arrow.`,o[c])}else throw new L(`Expected one of "<>AV=|." after @`,o[c])}var m={type:`styling`,body:[xx(l,u,e)],mode:`math`,style:`display`,resetFont:!0};r.push(m),s=vx()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25}),colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}Z({type:`cdlabel`,names:[`\\\\cdleft`,`\\\\cdright`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName;return{type:`cdlabel`,mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=Jy(Cb(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=z(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new Q(`mrow`,[Rb(e.label,t)]);return n=new Q(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new Q(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),Z({type:`cdlabelparent`,names:[`\\\\cdparent`],numArgs:1,handler(e,t){return{type:`cdlabelparent`,mode:e.parser.mode,fragment:t[0]}},htmlBuilder(e,t){var n=Jy(Cb(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new Q(`mrow`,[Rb(e.fragment,t)])}}),Z({type:`textord`,names:[`\\@char`],numArgs:1,allowedInText:!0,handler(e,t){var n=e.parser,r=cx(ax(t[0],`ordgroup`),`\\@char has non-numeric argument`),i=parseInt(r),a;if(isNaN(i))throw new L(`\\@char has non-numeric argument `+r);if(i<0||i>1114111)throw new L(`\\@char with invalid code point `+r);return i<=65535?a=String.fromCharCode(i):(i-=65536,a=String.fromCharCode((i>>10)+55296,(i&1023)+56320)),{type:`textord`,mode:n.mode,text:a}}}),Z({type:`color`,names:[`\\textcolor`],numArgs:2,allowedInText:!0,argTypes:[`color`,`original`],handler(e,t){var n=e.parser,r=ax(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:fb(i)}},htmlBuilder:(e,t)=>qy(_b(e.body,t.withColor(e.color),!1)),mathmlBuilder:(e,t)=>{var n=new Q(`mstyle`,Ib(e.body,t.withColor(e.color)));return n.setAttribute(`mathcolor`,e.color),n}}),Z({type:`color`,names:[`\\color`],numArgs:1,allowedInText:!0,argTypes:[`color`],handler(e,t){var n=e.parser,r=e.breakOnTokenText,i=ax(t[0],`color-token`).color;n.gullet.macros.set(`\\current@color`,i);var a=n.parseExpression(!0,r);return{type:`color`,mode:n.mode,color:i,body:a}}}),Z({type:`cr`,names:[`\\\\`],numArgs:0,numOptionalArgs:0,allowedInText:!0,handler(e,t,n){var r=e.parser,i=r.gullet.future().text===`[`?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior(`newLineInDisplayMode`,`In LaTeX, \\\\ or \\newline does nothing in display mode`);return{type:`cr`,mode:r.mode,newLine:a,size:i&&ax(i,`size`).value}},htmlBuilder(e,t){var n=X([`mspace`],[],t);return e.newLine&&(n.classes.push(`katex-newline`),e.size&&(n.style.marginTop=z(Tv(e.size,t)))),n},mathmlBuilder(e,t){var n=new Q(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,z(Tv(e.size,t)))),n}});var Cx={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},wx=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new L(`Expected a control sequence`,e);return t},Tx=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},Ex=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i??=(n.noexpand=!0,{tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};Z({type:`internal`,names:[`\\global`,`\\long`,`\\\\globallong`],numArgs:0,allowedInText:!0,handler(e){var t=e.parser,n=e.funcName;t.consumeSpaces();var r=t.fetch();if(Cx[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=Cx[r.text]),ax(t.parseFunction(),`internal`);throw new L(`Invalid token after macro prefix`,r)}}),Z({type:`internal`,names:[`\\def`,`\\gdef`,`\\edef`,`\\xdef`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new L(`Expected a control sequence`,r);for(var a=0,o,s=[[]];t.gullet.future().text!==`{`;)if(r=t.gullet.popToken(),r.text===`#`){if(t.gullet.future().text===`{`){o=t.gullet.future(),s[a].push(`{`);break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new L(`Invalid argument number "`+r.text+`"`);if(parseInt(r.text)!==a+1)throw new L(`Argument number "`+r.text+`" out of order`);a++,s.push([])}else if(r.text===`EOF`)throw new L(`Expected a macro definition`);else s[a].push(r.text);var c=t.gullet.consumeArg().tokens;return o&&c.unshift(o),(n===`\\edef`||n===`\\xdef`)&&(c=t.gullet.expandTokens(c),c.reverse()),t.gullet.macros.set(i,{tokens:c,numArgs:a,delimiters:s},n===Cx[n]),{type:`internal`,mode:t.mode}}}),Z({type:`internal`,names:[`\\let`,`\\\\globallet`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=wx(t.gullet.popToken());return t.gullet.consumeSpaces(),Ex(t,r,Tx(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),Z({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=wx(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return Ex(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}});var Dx=function(e,t,n){var r=qv(Xv.math[e]&&Xv.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},Ox=function(e,t,n,r){var i=n.havingBaseStyle(t),a=X(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},kx=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push(`delimcenter`),e.style.top=z(i),e.height-=i,e.depth+=i},Ax=function(e,t,n,r,i,a){var o=Ox(Ly(e,`Main-Regular`,i,r),t,r,a);return n&&kx(o,r,t),o},jx=function(e,t,n,r){return Ly(e,`Size`+t+`-Regular`,n,r)},Mx=function(e,t,n,r,i,a){var o=jx(e,t,i,r),s=Ox(X([`delimsizing`,`size`+t],[o],r),R.TEXT,r,a);return n&&kx(s,r,R.TEXT),s},Nx=function(e,t,n){return{type:`elem`,elem:X([`delimsizinginner`,t===`Size1-Regular`?`delim-size1`:`delim-size4`],[X([],[Ly(e,t,n)])])}},Px=function(e,t,n){var r=Uv[`Size4-Regular`][e.charCodeAt(0)]?Uv[`Size4-Regular`][e.charCodeAt(0)][4]:Uv[`Size1-Regular`][e.charCodeAt(0)][4],i=Wy([],[new Lv([new Rv(`inner`,_v(e,Math.round(1e3*t)))],{width:z(r),height:z(t),style:`width:`+z(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`})],n);return i.height=t,i.style.height=z(t),i.style.width=z(r),{type:`elem`,elem:i}},Fx=.008,Ix={type:`kern`,size:-1*Fx},Lx=new Set([`|`,`\\lvert`,`\\rvert`,`\\vert`]),Rx=new Set([`\\|`,`\\lVert`,`\\rVert`,`\\Vert`]),zx=function(e,t,n,r,i,a){var o,s,c,l,u=``,d=0;o=c=l=e,s=null;var f=`Size1-Regular`;e===`\\uparrow`?c=l=`⏐`:e===`\\Uparrow`?c=l=`‖`:e===`\\downarrow`?o=c=`⏐`:e===`\\Downarrow`?o=c=`‖`:e===`\\updownarrow`?(o=`\\uparrow`,c=`⏐`,l=`\\downarrow`):e===`\\Updownarrow`?(o=`\\Uparrow`,c=`‖`,l=`\\Downarrow`):Lx.has(e)?(c=`∣`,u=`vert`,d=333):Rx.has(e)?(c=`∥`,u=`doublevert`,d=556):e===`[`||e===`\\lbrack`?(o=`⎡`,c=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lbrack`,d=667):e===`]`||e===`\\rbrack`?(o=`⎤`,c=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rbrack`,d=667):e===`\\lfloor`||e===`⌊`?(c=o=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lfloor`,d=667):e===`\\lceil`||e===`⌈`?(o=`⎡`,c=l=`⎢`,f=`Size4-Regular`,u=`lceil`,d=667):e===`\\rfloor`||e===`⌋`?(c=o=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rfloor`,d=667):e===`\\rceil`||e===`⌉`?(o=`⎤`,c=l=`⎥`,f=`Size4-Regular`,u=`rceil`,d=667):e===`(`||e===`\\lparen`?(o=`⎛`,c=`⎜`,l=`⎝`,f=`Size4-Regular`,u=`lparen`,d=875):e===`)`||e===`\\rparen`?(o=`⎞`,c=`⎟`,l=`⎠`,f=`Size4-Regular`,u=`rparen`,d=875):e===`\\{`||e===`\\lbrace`?(o=`⎧`,s=`⎨`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\}`||e===`\\rbrace`?(o=`⎫`,s=`⎬`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lgroup`||e===`⟮`?(o=`⎧`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\rgroup`||e===`⟯`?(o=`⎫`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lmoustache`||e===`⎰`?(o=`⎧`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):(e===`\\rmoustache`||e===`⎱`)&&(o=`⎫`,l=`⎩`,c=`⎪`,f=`Size4-Regular`);var p=Dx(o,f,i),m=p.height+p.depth,h=Dx(c,f,i),g=h.height+h.depth,_=Dx(l,f,i),v=_.height+_.depth,y=0,b=1;if(s!==null){var x=Dx(s,f,i);y=x.height+x.depth,b=2}var S=m+v+y,C=S+Math.max(0,Math.ceil((t-S)/(b*g)))*b*g,w=r.fontMetrics().axisHeight;n&&(w*=r.sizeMultiplier);var T=C/2-w,E=[];if(u.length>0){var D=C-m-v,O=Math.round(C*1e3),k=yv(u,Math.round(D*1e3)),A=new Rv(u,k),ee=z(d/1e3),j=z(O/1e3),te=Wy([],[new Lv([A],{width:ee,height:j,viewBox:`0 0 `+d+` `+O})],r);te.height=O/1e3,te.style.width=ee,te.style.height=j,E.push({type:`elem`,elem:te})}else{if(E.push(Nx(l,f,i)),E.push(Ix),s===null){var M=C-m-v+2*Fx;E.push(Px(c,M,r))}else{var ne=(C-m-v-y)/2+2*Fx;E.push(Px(c,ne,r)),E.push(Ix),E.push(Nx(s,f,i)),E.push(Ix),E.push(Px(c,ne,r))}E.push(Ix),E.push(Nx(o,f,i))}var re=r.havingBaseStyle(R.TEXT);return Ox(X([`delimsizing`,`mult`],[Xy({positionType:`bottom`,positionData:T,children:E})],re),R.TEXT,r,a)},Bx=80,Vx=.08,Hx=function(e,t,n,r,i){return Wy([`hide-tail`],[new Lv([new Rv(e,gv(e,r,n))],{width:`400em`,height:z(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`})],i)},Ux=function(e,t){var n=t.havingBaseSizing(),r=$x(`\\surd`,e*n.sizeMultiplier,Zx,n),i=n.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,s,c,l,u;return r.type===`small`?(l=1e3+1e3*a+Bx,e<1?i=1:e<1.4&&(i=.7),s=(1+a+Vx)/i,c=(1+a)/i,o=Hx(`sqrtMain`,s,l,a,t),o.style.minWidth=`0.853em`,u=.833/i):r.type===`large`?(l=(1e3+Bx)*qx[r.size],c=(qx[r.size]+a)/i,s=(qx[r.size]+a+Vx)/i,o=Hx(`sqrtSize`+r.size,s,l,a,t),o.style.minWidth=`1.02em`,u=1/i):(s=e+a+Vx,c=e+a,l=Math.floor(1e3*e+a)+Bx,o=Hx(`sqrtTall`,s,l,a,t),o.style.minWidth=`0.742em`,u=1.056),o.height=c,o.style.height=z(s),{span:o,advanceWidth:u,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},Wx=new Set([`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`]),Gx=new Set([`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`]),Kx=new Set([`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`]),qx=[0,1.2,1.8,2.4,3],Jx=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),Wx.has(e)||Kx.has(e))return Mx(e,t,!1,n,r,i);if(Gx.has(e))return zx(e,qx[t],!1,n,r,i);throw new L(`Illegal delimiter: '`+e+`'`)},Yx=[{type:`small`,style:R.SCRIPTSCRIPT},{type:`small`,style:R.SCRIPT},{type:`small`,style:R.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],Xx=[{type:`small`,style:R.SCRIPTSCRIPT},{type:`small`,style:R.SCRIPT},{type:`small`,style:R.TEXT},{type:`stack`}],Zx=[{type:`small`,style:R.SCRIPTSCRIPT},{type:`small`,style:R.SCRIPT},{type:`small`,style:R.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],Qx=function(e){if(e.type===`small`)return`Main-Regular`;if(e.type===`large`)return`Size`+e.size+`-Regular`;if(e.type===`stack`)return`Size4-Regular`;var t=e.type;throw Error(`Add support for delim type '`+t+`' here.`)},$x=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);i<n.length;i++){var a=n[i];if(a.type===`stack`)break;var o=Dx(e,Qx(a),`math`),s=o.height+o.depth;if(a.type===`small`){var c=r.havingBaseStyle(a.style);s*=c.sizeMultiplier}if(s>t)return a}return n[n.length-1]},eS=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o=Kx.has(e)?Yx:Wx.has(e)?Zx:Xx,s=$x(e,t,o,r);return s.type===`small`?Ax(e,s.style,n,r,i,a):s.type===`large`?Mx(e,s.size,n,r,i,a):zx(e,t,n,r,i,a)},tS=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,c=5/r.fontMetrics().ptPerEm,l=Math.max(t-o,n+o);return eS(e,Math.max(l/500*s,2*l-c),!0,r,i,a)},nS={"\\bigl":{mclass:`mopen`,size:1},"\\Bigl":{mclass:`mopen`,size:2},"\\biggl":{mclass:`mopen`,size:3},"\\Biggl":{mclass:`mopen`,size:4},"\\bigr":{mclass:`mclose`,size:1},"\\Bigr":{mclass:`mclose`,size:2},"\\biggr":{mclass:`mclose`,size:3},"\\Biggr":{mclass:`mclose`,size:4},"\\bigm":{mclass:`mrel`,size:1},"\\Bigm":{mclass:`mrel`,size:2},"\\biggm":{mclass:`mrel`,size:3},"\\Biggm":{mclass:`mrel`,size:4},"\\big":{mclass:`mord`,size:1},"\\Big":{mclass:`mord`,size:2},"\\bigg":{mclass:`mord`,size:3},"\\Bigg":{mclass:`mord`,size:4}},rS=new Set(`(,\\lparen,),\\rparen,[,\\lbrack,],\\rbrack,\\{,\\lbrace,\\},\\rbrace,\\lfloor,\\rfloor,⌊,⌋,\\lceil,\\rceil,⌈,⌉,<,>,\\langle,⟨,\\rangle,⟩,\\lt,\\gt,\\lvert,\\rvert,\\lVert,\\rVert,\\lgroup,\\rgroup,⟮,⟯,\\lmoustache,\\rmoustache,⎰,⎱,/,\\backslash,|,\\vert,\\|,\\Vert,\\uparrow,\\Uparrow,\\downarrow,\\Downarrow,\\updownarrow,\\Updownarrow,.`.split(`,`));function iS(e){return`isMiddle`in e}function aS(e,t){var n=sx(e);if(n&&rS.has(n.text))return n;throw n?new L(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new L(`Invalid delimiter type '`+e.type+`'`,e)}Z({type:`delimsizing`,names:[`\\bigl`,`\\Bigl`,`\\biggl`,`\\Biggl`,`\\bigr`,`\\Bigr`,`\\biggr`,`\\Biggr`,`\\bigm`,`\\Bigm`,`\\biggm`,`\\Biggm`,`\\big`,`\\Big`,`\\bigg`,`\\Bigg`],numArgs:1,argTypes:[`primitive`],handler:(e,t)=>{var n=aS(db(t[0]),e);return{type:`delimsizing`,mode:e.parser.mode,size:nS[e.funcName].size,mclass:nS[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?X([e.mclass]):Jx(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(jb(e.delim,e.mode));var n=new Q(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=z(qx[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}});function oS(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}Z({type:`leftright-right`,names:[`\\right`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=e.parser.gullet.macros.get(`\\current@color`);if(n&&typeof n!=`string`)throw new L(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:aS(t[0],e).text,color:n}}}),Z({type:`leftright`,names:[`\\left`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=aS(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=ax(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{oS(e);for(var n=_b(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o<n.length;o++){var s=n[o];iS(s)?a=!0:(r=Math.max(n[o].height,r),i=Math.max(n[o].depth,i))}r*=t.sizeMultiplier,i*=t.sizeMultiplier;var c=e.left===`.`?Sb(t,[`mopen`]):tS(e.left,r,i,t,e.mode,[`mopen`]);if(n.unshift(c),a)for(var l=1;l<n.length;l++){var u=n[l];if(iS(u)){var d=u.isMiddle;n[l]=tS(d.delim,r,i,d.options,e.mode,[])}}var f;if(e.right===`.`)f=Sb(t,[`mclose`]);else{var p=e.rightColor?t.withColor(e.rightColor):t;f=tS(e.right,r,i,p,e.mode,[`mclose`])}return n.push(f),X([`minner`],n,t)},mathmlBuilder:(e,t)=>{oS(e);var n=Ib(e.body,t);if(e.left!==`.`){var r=new Q(`mo`,[jb(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new Q(`mo`,[jb(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return Mb(n)}}),Z({type:`middle`,names:[`\\middle`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=aS(t[0],e);if(!e.parser.leftrightDepth)throw new L(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim===`.`?n=Sb(t,[]):(n=Jx(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=new Q(`mo`,[e.delim===`\\vert`||e.delim===`|`?jb(`|`,`text`):jb(e.delim,e.mode)]);return n.setAttribute(`fence`,`true`),n.setAttribute(`lspace`,`0.05em`),n.setAttribute(`rspace`,`0.05em`),n}}),Z({type:`enclose`,names:[`\\colorbox`],numArgs:2,allowedInText:!0,argTypes:[`color`,`hbox`],handler(e,t,n){var r=e.parser,i=e.funcName,a=ax(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:(e,t)=>{var n=Jy(Cb(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o,s=P_(e.body);if(r===`sout`)a=X([`katex-stretchy`,`katex-sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var c=Tv({number:.6,unit:`pt`},t),l=Tv({number:.35,unit:`ex`},t),u=t.havingBaseSizing();i/=u.sizeMultiplier;var d=n.height+n.depth+c+l;n.style.paddingLeft=z(d/2+c);var f=Math.floor(1e3*d*i);a=Wy([`hide-tail`],[new Lv([new Rv(`phase`,mv(f))],{width:`400em`,height:z(f/1e3),viewBox:`0 0 400000 `+f,preserveAspectRatio:`xMinYMin slice`})],t),a.style.height=z(d),o=n.depth+c+l}else{/cancel/.test(r)?s||n.classes.push(`cancel-pad`):r===`angl`?n.classes.push(`anglpad`):n.classes.push(`boxpad`);var p,m,h=0;/box/.test(r)?(h=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),p=t.fontMetrics().fboxsep+(r===`colorbox`?0:h),m=p):r===`angl`?(h=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),p=4*h,m=Math.max(0,.25-n.depth)):(p=s?.2:0,m=p),a=$b(n,r,p,m,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=z(h)):r===`angl`&&h!==.049&&(a.style.borderTopWidth=z(h),a.style.borderRightWidth=z(h)),o=n.depth+m,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var g;if(e.backgroundColor)g=Xy({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]});else{var _=/cancel|phase/.test(r)?[`svg-align`]:[];g=Xy({positionType:`individualShift`,children:[{type:`elem`,elem:n,shift:0},{type:`elem`,elem:a,shift:o,wrapperClasses:_}]})}return/cancel/.test(r)&&(g.height=n.height,g.depth=n.depth),/cancel/.test(r)&&!s?X([`mord`,`cancel-lap`],[g],t):X([`mord`],[g],t)},mathmlBuilder:(e,t)=>{var n,r=new Q(e.label.includes(`colorbox`)?`mpadded`:`menclose`,[Rb(e.body,t)]);switch(e.label){case`\\cancel`:r.setAttribute(`notation`,`updiagonalstrike`);break;case`\\bcancel`:r.setAttribute(`notation`,`downdiagonalstrike`);break;case`\\phase`:r.setAttribute(`notation`,`phasorangle`);break;case`\\sout`:r.setAttribute(`notation`,`horizontalstrike`);break;case`\\fbox`:r.setAttribute(`notation`,`box`);break;case`\\angl`:r.setAttribute(`notation`,`actuarial`);break;case`\\fcolorbox`:case`\\colorbox`:if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute(`width`,`+`+2*n+`pt`),r.setAttribute(`height`,`+`+2*n+`pt`),r.setAttribute(`lspace`,n+`pt`),r.setAttribute(`voffset`,n+`pt`),e.label===`\\fcolorbox`){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute(`style`,`border: `+z(i)+` solid `+e.borderColor)}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`)}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r}}),Z({type:`enclose`,names:[`\\fcolorbox`],numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`hbox`],handler(e,t,n){var r=e.parser,i=e.funcName,a=ax(t[0],`color-token`).color,o=ax(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}}}),Z({type:`enclose`,names:[`\\fbox`],numArgs:1,argTypes:[`hbox`],allowedInText:!0,handler(e,t){return{type:`enclose`,mode:e.parser.mode,label:`\\fbox`,body:t[0]}}}),Z({type:`enclose`,names:[`\\cancel`,`\\bcancel`,`\\xcancel`,`\\phase`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}}}),Z({type:`enclose`,names:[`\\sout`],numArgs:1,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName;n.mode===`math`&&n.settings.reportNonstrict(`mathVsSout`,`LaTeX's \\sout works only in text mode`);var i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}}}),Z({type:`enclose`,names:[`\\angl`],numArgs:1,argTypes:[`hbox`],allowedInText:!1,handler(e,t){return{type:`enclose`,mode:e.parser.mode,label:`\\angl`,body:t[0]}}});var sS={};function cS(e){for(var t=e.type,n=e.names,r=e.props,i=e.handler,a=e.htmlBuilder,o=e.mathmlBuilder,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},c=0;c<n.length;++c)sS[n[c]]=s;a&&(cb[t]=a),o&&(lb[t]=o)}var lS={};function $(e,t){lS[e]=t}var uS=class e{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new e(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}},dS=class e{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(t,n){return new e(n,uS.range(this,t))}};function fS(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n===`\\relax`&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n===`\\hline`||n===`\\hdashline`;)e.consume(),t.push(n===`\\hdashline`),e.consumeSpaces(),n=e.fetch().text;return t}var pS=e=>{if(!e.parser.settings.displayMode)throw new L(`{`+e.envName+`} can be used only in display mode.`)},mS=new Set([`gather`,`gather*`]);function hS(e){if(!e.includes(`ed`))return!e.includes(`*`)}function gS(e,t,n){var r=t.hskipBeforeAndAfter,i=t.addJot,a=t.cols,o=t.arraystretch,s=t.colSeparationType,c=t.autoTag,l=t.singleRow,u=t.emptySingleRow,d=t.maxNumCols,f=t.leqno;if(e.gullet.beginGroup(),l||e.gullet.macros.set(`\\cr`,`\\\\\\relax`),!o){var p=e.gullet.expandMacroAsText(`\\arraystretch`);if(p==null)o=1;else if(o=parseFloat(p),!o||o<0)throw new L(`Invalid \\arraystretch: `+p)}e.gullet.beginGroup();var m=[],h=[m],g=[],_=[],v=c==null?void 0:[];function y(){c&&e.gullet.macros.set(`\\@eqnsw`,`1`,!0)}function b(){v&&(e.gullet.macros.get(`\\df@tag`)?(v.push(e.subparse([new dS(`\\df@tag`)])),e.gullet.macros.set(`\\df@tag`,void 0,!0)):v.push(!!c&&e.gullet.macros.get(`\\@eqnsw`)===`1`))}for(y(),_.push(fS(e));;){var x=e.parseExpression(!1,l?`\\end`:`\\\\`);e.gullet.endGroup(),e.gullet.beginGroup();var S={type:`ordgroup`,mode:e.mode,body:x};n&&(S={type:`styling`,mode:e.mode,style:n,resetFont:!0,body:[S]}),m.push(S);var C=e.fetch().text;if(C===`&`){if(d&&m.length===d){if(l||s)throw new L(`Too many tab characters: &`,e.nextToken);e.settings.reportNonstrict(`textEnv`,`Too few columns specified in the {array} column argument.`)}e.consume()}else if(C===`\\end`){b(),m.length===1&&S.type===`styling`&&S.body.length===1&&S.body[0].type===`ordgroup`&&S.body[0].body.length===0&&(h.length>1||!u)&&!Array.isArray(v?.[v.length-1])&&h.pop(),_.length<h.length+1&&_.push([]);break}else if(C===`\\\\`){e.consume();var w=void 0;e.gullet.future().text!==` `&&(w=e.parseSizeGroup(!0)),g.push(w?w.value:null),b(),_.push(fS(e)),m=[],h.push(m),y()}else throw new L(`Expected & or \\\\ or \\cr or \\end`,e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:e.mode,addJot:i,arraystretch:o,body:h,cols:a,rowGaps:g,hskipBeforeAndAfter:r,hLinesBeforeRow:_,colSeparationType:s,tags:v,leqno:f}}function _S(e){return e.slice(0,1)===`d`?`display`:`text`}var vS=function(e,t){var n,r,i=e.body.length,a=e.hLinesBeforeRow,o=0,s=Array(i),c=[],l=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),u=1/t.fontMetrics().ptPerEm,d=5*u;e.colSeparationType&&e.colSeparationType===`small`&&(d=.2778*(t.havingStyle(R.SCRIPT).sizeMultiplier/t.sizeMultiplier));var f=e.colSeparationType===`CD`?Tv({number:3,unit:`ex`},t):12*u,p=3*u,m=e.arraystretch*f,h=.7*m,g=.3*m,_=0;function v(e){for(var t=0;t<e.length;++t)t>0&&(_+=.25),c.push({pos:_,isDashed:e[t]})}for(v(a[0]),n=0;n<e.body.length;++n){var y=e.body[n],b=h,x=g;o<y.length&&(o=y.length);var S={cells:Array(y.length),height:0,depth:0,pos:0};for(r=0;r<y.length;++r){var C=Cb(y[r],t);x<C.depth&&(x=C.depth),b<C.height&&(b=C.height),S.cells[r]=C}var w=e.rowGaps[n],T=0;w&&(T=Tv(w,t),T>0&&(T+=g,x<T&&(x=T),T=0)),e.addJot&&n<e.body.length-1&&(x+=p),S.height=b,S.depth=x,_+=b,S.pos=_,_+=x+T,s[n]=S,v(a[n+1])}var E=_/2+t.fontMetrics().axisHeight,D=e.cols||[],O=[],k,A,ee=[];if(e.tags&&e.tags.some(e=>e))for(n=0;n<i;++n){var j=s[n],te=j.pos-E,M=e.tags[n],ne=void 0;ne=M===!0?X([`eqn-num`],[],t):M===!1?X([],[],t):X([],_b(M,t,!0),t),ne.depth=j.depth,ne.height=j.height,ee.push({type:`elem`,elem:ne,shift:te})}for(r=0,A=0;r<o||A<D.length;++r,++A){for(var re=D[A],ie=!0;(ae=re)?.type===`separator`;){var ae;if(ie||(k=X([`arraycolsep`],[]),k.style.width=z(t.fontMetrics().doubleRuleSep),O.push(k)),re.separator===`|`||re.separator===`:`){var oe=re.separator===`|`?`solid`:`dashed`,N=X([`vertical-separator`],[],t);N.style.height=z(_),N.style.borderRightWidth=z(l),N.style.borderRightStyle=oe,N.style.margin=`0 `+z(-l/2);var se=_-E;se&&(N.style.verticalAlign=z(-se)),O.push(N)}else throw new L(`Invalid separator type: `+re.separator);A++,re=D[A],ie=!1}if(!(r>=o)){var ce=void 0;(r>0||e.hskipBeforeAndAfter)&&(ce=re?.pregap??d,ce!==0&&(k=X([`arraycolsep`],[]),k.style.width=z(ce),O.push(k)));var le=[];for(n=0;n<i;++n){var ue=s[n],de=ue.cells[r];if(de){var fe=ue.pos-E;de.depth=ue.depth,de.height=ue.height,le.push({type:`elem`,elem:de,shift:fe})}}var pe=Xy({positionType:`individualShift`,children:le}),me=X([`col-align-`+(re?.align||`c`)],[pe]);O.push(me),(r<o-1||e.hskipBeforeAndAfter)&&(ce=re?.postgap??d,ce!==0&&(k=X([`arraycolsep`],[]),k.style.width=z(ce),O.push(k)))}}var he=X([`mtable`],O);if(c.length>0){for(var ge=Gy(`katex-hline`,t,l),_e=Gy(`katex-hdashline`,t,l),ve=[{type:`elem`,elem:he,shift:0}];c.length>0;){var ye=c.pop(),be=ye.pos-E;ye.isDashed?ve.push({type:`elem`,elem:_e,shift:be}):ve.push({type:`elem`,elem:ge,shift:be})}he=Xy({positionType:`individualShift`,children:ve})}if(ee.length===0)return X([`mord`],[he],t);var xe=X([`katex-tag`],[Xy({positionType:`individualShift`,children:ee})],t);return qy([he,xe])},yS={c:`center `,l:`left `,r:`right `},bS=function(e,t){for(var n=[],r=new Q(`mtd`,[],[`mtr-glue`]),i=new Q(`mtd`,[],[`mml-eqn-num`]),a=0;a<e.body.length;a++){for(var o=e.body[a],s=[],c=0;c<o.length;c++)s.push(new Q(`mtd`,[Rb(o[c],t)]));e.tags&&e.tags[a]&&(s.unshift(r),s.push(r),e.leqno?s.unshift(i):s.push(i)),n.push(new Q(`mtr`,s))}var l=new Q(`mtable`,n),u=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);l.setAttribute(`rowspacing`,z(u));var d=``,f=``;if(e.cols&&e.cols.length>0){var p=e.cols,m=``,h=!1,g=0,_=p.length;p[0].type===`separator`&&(d+=`top `,g=1),p[p.length-1].type===`separator`&&(d+=`bottom `,--_);for(var v=g;v<_;v++){var y=p[v];y.type===`align`?(f+=yS[y.align],h&&(m+=`none `),h=!0):y.type===`separator`&&(h&&=(m+=y.separator===`|`?`solid `:`dashed `,!1))}l.setAttribute(`columnalign`,f.trim()),/[sd]/.test(m)&&l.setAttribute(`columnlines`,m.trim())}if(e.colSeparationType===`align`){for(var b=e.cols||[],x=``,S=1;S<b.length;S++)x+=S%2?`0em `:`1em `;l.setAttribute(`columnspacing`,x.trim())}else e.colSeparationType===`alignat`||e.colSeparationType===`gather`?l.setAttribute(`columnspacing`,`0em`):e.colSeparationType===`small`?l.setAttribute(`columnspacing`,`0.2778em`):e.colSeparationType===`CD`?l.setAttribute(`columnspacing`,`0.5em`):l.setAttribute(`columnspacing`,`1em`);var C=``,w=e.hLinesBeforeRow;d+=w[0].length>0?`left `:``,d+=w[w.length-1].length>0?`right `:``;for(var T=1;T<w.length-1;T++)C+=w[T].length===0?`none `:w[T][0]?`dashed `:`solid `;return/[sd]/.test(C)&&l.setAttribute(`rowlines`,C.trim()),d!==``&&(l=new Q(`menclose`,[l]),l.setAttribute(`notation`,d.trim())),e.arraystretch&&e.arraystretch<1&&(l=new Q(`mstyle`,[l]),l.setAttribute(`scriptlevel`,`1`)),l},xS=function(e,t){e.envName.includes(`ed`)||pS(e);var n=[],r=e.envName===`split`,i=gS(e.parser,{cols:n,addJot:!0,autoTag:r?void 0:hS(e.envName),emptySingleRow:!0,colSeparationType:e.envName.includes(`at`)?`alignat`:`align`,maxNumCols:r?2:void 0,leqno:e.parser.settings.leqno},`display`),a=0,o=0,s={type:`ordgroup`,mode:e.mode,body:[]};if(t[0]&&t[0].type===`ordgroup`){var c=`Number of columns should be a positive integer`,l=cx(t[0],c);if(!/^[0-9]+$/.test(l)||Number(l)<1)throw new L(c,t[0]);a=Number(l),o=a*2}var u=!o;i.body.forEach(function(e){for(var t=1;t<e.length;t+=2)ax(ax(e[t],`styling`).body[0],`ordgroup`).body.unshift(s);if(u)o<e.length&&(o=e.length);else{var n=e.length/2;if(a<n)throw new L(`Too many math in a row: `+(`expected `+a+`, but got `+n),e[0])}});for(var d=0;d<o;++d){var f=`r`,p=0;d%2==1?f=`l`:d>0&&u&&(p=1),n[d]={type:`align`,align:f,pregap:p,postgap:0}}return i.colSeparationType=u?`align`:`alignat`,i};cS({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(sx(t[0])?[t[0]]:ax(t[0],`ordgroup`).body).map(function(e){var t=ox(e).text;if(`lcr`.includes(t))return{type:`align`,align:t};if(t===`|`)return{type:`separator`,separator:`|`};if(t===`:`)return{type:`separator`,separator:`:`};throw new L(`Unknown column alignment: `+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return gS(e.parser,r,_S(e.envName))},htmlBuilder:vS,mathmlBuilder:bS}),cS({type:`array`,names:[`matrix`,`pmatrix`,`bmatrix`,`Bmatrix`,`vmatrix`,`Vmatrix`,`matrix*`,`pmatrix*`,`bmatrix*`,`Bmatrix*`,`vmatrix*`,`Vmatrix*`],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:[`(`,`)`],bmatrix:[`[`,`]`],Bmatrix:[`\\{`,`\\}`],vmatrix:[`|`,`|`],Vmatrix:[`\\Vert`,`\\Vert`]}[e.envName.replace(`*`,``)],n=`c`,r={hskipBeforeAndAfter:!1,cols:[{type:`align`,align:n}]};if(e.envName.charAt(e.envName.length-1)===`*`){var i=e.parser;if(i.consumeSpaces(),i.fetch().text===`[`){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,!`lcr`.includes(n))throw new L(`Expected l or c or r`,i.nextToken);i.consume(),i.consumeSpaces(),i.expect(`]`),i.consume(),r.cols=[{type:`align`,align:n}]}}var a=gS(e.parser,r,_S(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=Array(o).fill({type:`align`,align:n}),t?{type:`leftright`,mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:vS,mathmlBuilder:bS}),cS({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=gS(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:vS,mathmlBuilder:bS}),cS({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(sx(t[0])?[t[0]]:ax(t[0],`ordgroup`).body).map(function(e){var t=ox(e).text;if(`lc`.includes(t))return{type:`align`,align:t};throw new L(`Unknown column alignment: `+t,e)});if(n.length>1)throw new L(`{subarray} can contain only one column`);var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=gS(e.parser,r,`script`);if(i.body.length>0&&i.body[0].length>1)throw new L(`{subarray} can contain only one column`);return i},htmlBuilder:vS,mathmlBuilder:bS}),cS({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=gS(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},_S(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.includes(`r`)?`.`:`\\{`,right:e.envName.includes(`r`)?`\\}`:`.`,rightColor:void 0}},htmlBuilder:vS,mathmlBuilder:bS}),cS({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:xS,htmlBuilder:vS,mathmlBuilder:bS}),cS({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){mS.has(e.envName)&&pS(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:hS(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return gS(e.parser,t,`display`)},htmlBuilder:vS,mathmlBuilder:bS}),cS({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:xS,htmlBuilder:vS,mathmlBuilder:bS}),cS({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){pS(e);var t={autoTag:hS(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return gS(e.parser,t,`display`)},htmlBuilder:vS,mathmlBuilder:bS}),cS({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return pS(e),Sx(e.parser)},htmlBuilder:vS,mathmlBuilder:bS}),$(`\\nonumber`,`\\gdef\\@eqnsw{0}`),$(`\\notag`,`\\nonumber`),Z({type:`text`,names:[`\\hline`,`\\hdashline`],numArgs:0,allowedInText:!0,allowedInMath:!0,handler(e,t){throw new L(e.funcName+` valid only within array environment`)}});var SS=sS;Z({type:`environment`,names:[`\\begin`,`\\end`],numArgs:1,argTypes:[`text`],handler(e,t){var n=e.parser,r=e.funcName,i=t[0];if(i.type!==`ordgroup`)throw new L(`Invalid environment name`,i);var a=cx(i,`Environment name should contain only text characters and spaces`,!0);if(r===`\\begin`){if(!Object.prototype.hasOwnProperty.call(SS,a))throw new L(`No such environment: `+a,i);var o=SS[a],s=n.parseArguments(`\\begin{`+a+`}`,o),c=s.args,l=s.optArgs,u={mode:n.mode,envName:a,parser:n},d=o.handler(u,c,l);n.expect(`\\end`,!1);var f=n.nextToken,p=ax(n.parseFunction(),`environment`);if(p.name!==a)throw new L(`Mismatch: \\begin{`+a+`} matched by \\end{`+p.name+`}`,f);return d}return{type:`environment`,mode:n.mode,name:a,nameGroup:i}}});var CS=(e,t)=>{var n=e.font,r=t.withFont(n);return Cb(e.body,r)},wS=(e,t)=>{var n=e.font,r=t.withFont(n);return Rb(e.body,r)},TS={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`};Z({type:`font`,names:[`\\mathrm`,`\\mathit`,`\\mathbf`,`\\mathnormal`,`\\mathsfit`,`\\mathbb`,`\\mathcal`,`\\mathfrak`,`\\mathscr`,`\\mathsf`,`\\mathtt`,`\\Bbb`,`\\bold`,`\\frak`],numArgs:1,allowedInArgument:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=db(t[0]),a=r in TS?TS[r]:r;return{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:CS,mathmlBuilder:wS}),Z({type:`mclass`,names:[`\\boldsymbol`,`\\bm`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`mclass`,mode:n.mode,mclass:gx(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:P_(r)}}}),Z({type:`font`,names:[`\\rm`,`\\sf`,`\\tt`,`\\bf`,`\\it`,`\\cal`],numArgs:0,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=e.breakOnTokenText,a=n.mode,o=n.parseExpression(!0,i);return{type:`font`,mode:a,font:`math`+r.slice(1),body:{type:`ordgroup`,mode:n.mode,body:o}}}});var ES=(e,t)=>{var n=t.style,r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=Cb(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,c=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<c?c:o.depth}a=t.havingStyle(i);var l=Cb(e.denom,a,t),u,d,f;e.hasBarLine?(e.barSize?(d=Tv(e.barSize,t),u=Gy(`frac-line`,t,d)):u=Gy(`frac-line`,t),d=u.height,f=u.height):(u=null,d=0,f=t.fontMetrics().defaultRuleThickness);var p,m,h;n.size===R.DISPLAY.size?(p=t.fontMetrics().num1,m=d>0?3*f:7*f,h=t.fontMetrics().denom1):(d>0?(p=t.fontMetrics().num2,m=f):(p=t.fontMetrics().num3,m=3*f),h=t.fontMetrics().denom2);var g;if(u){var _=t.fontMetrics().axisHeight;p-o.depth-(_+.5*d)<m&&(p+=m-(p-o.depth-(_+.5*d))),_-.5*d-(l.height-h)<m&&(h+=m-(_-.5*d-(l.height-h)));var v=-(_-.5*d);g=Xy({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:u,shift:v},{type:`elem`,elem:o,shift:-p}]})}else{var y=p-o.depth-(l.height-h);y<m&&(p+=.5*(m-y),h+=.5*(m-y)),g=Xy({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:o,shift:-p}]})}a=t.havingStyle(n),g.height*=a.sizeMultiplier/t.sizeMultiplier,g.depth*=a.sizeMultiplier/t.sizeMultiplier;var b=n.size===R.DISPLAY.size?t.fontMetrics().delim1:n.size===R.SCRIPTSCRIPT.size?t.havingStyle(R.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,x=e.leftDelim==null?Sb(t,[`mopen`]):eS(e.leftDelim,b,!0,t.havingStyle(n),e.mode,[`mopen`]),S=e.continued?X([]):e.rightDelim==null?Sb(t,[`mclose`]):eS(e.rightDelim,b,!0,t.havingStyle(n),e.mode,[`mclose`]);return X([`mord`].concat(a.sizingClasses(t)),[x,X([`mfrac`],[g]),S],t)},DS=(e,t)=>{var n=new Q(`mfrac`,[Rb(e.numer,t),Rb(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=Tv(e.barSize,t);n.setAttribute(`linethickness`,z(r))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new Q(`mo`,[new Db(e.leftDelim.replace(`\\`,``))]);a.setAttribute(`fence`,`true`),i.push(a)}if(i.push(n),e.rightDelim!=null){var o=new Q(`mo`,[new Db(e.rightDelim.replace(`\\`,``))]);o.setAttribute(`fence`,`true`),i.push(o)}return Mb(i)}return n},OS=(e,t)=>t?{type:`styling`,mode:e.mode,style:t,body:[e]}:e;Z({type:`genfrac`,names:[`\\cfrac`,`\\dfrac`,`\\frac`,`\\tfrac`,`\\dbinom`,`\\binom`,`\\tbinom`,`\\\\atopfrac`,`\\\\bracefrac`,`\\\\brackfrac`],numArgs:2,allowedInArgument:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0],a=t[1],o,s=null,c=null;switch(r){case`\\cfrac`:case`\\dfrac`:case`\\frac`:case`\\tfrac`:o=!0;break;case`\\\\atopfrac`:o=!1;break;case`\\dbinom`:case`\\binom`:case`\\tbinom`:o=!1,s=`(`,c=`)`;break;case`\\\\bracefrac`:o=!1,s=`\\{`,c=`\\}`;break;case`\\\\brackfrac`:o=!1,s=`[`,c=`]`;break;default:throw Error(`Unrecognized genfrac command`)}var l=r===`\\cfrac`,u=null;return l||r.startsWith(`\\d`)?u=`display`:r.startsWith(`\\t`)&&(u=`text`),OS({type:`genfrac`,mode:n.mode,numer:i,denom:a,continued:l,hasBarLine:o,leftDelim:s,rightDelim:c,barSize:null},u)},htmlBuilder:ES,mathmlBuilder:DS}),Z({type:`infix`,names:[`\\over`,`\\choose`,`\\atop`,`\\brace`,`\\brack`],numArgs:0,infix:!0,handler(e){var t=e.parser,n=e.funcName,r=e.token,i;switch(n){case`\\over`:i=`\\frac`;break;case`\\choose`:i=`\\binom`;break;case`\\atop`:i=`\\\\atopfrac`;break;case`\\brace`:i=`\\\\bracefrac`;break;case`\\brack`:i=`\\\\brackfrac`;break;default:throw Error(`Unrecognized infix genfrac command`)}return{type:`infix`,mode:t.mode,replaceWith:i,token:r}}});var kS=[`display`,`text`,`script`,`scriptscript`],AS=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t};Z({type:`genfrac`,names:[`\\genfrac`],numArgs:6,allowedInArgument:!0,argTypes:[`math`,`math`,`size`,`text`,`math`,`math`],handler(e,t){var n=e.parser,r=t[4],i=t[5],a=db(t[0]),o=a.type===`atom`&&a.family===`open`?AS(a.text):null,s=db(t[1]),c=s.type===`atom`&&s.family===`close`?AS(s.text):null,l=ax(t[2],`size`),u,d=null;l.isBlank?u=!0:(d=l.value,u=d.number>0);var f=null,p=t[3];if(p.type===`ordgroup`){if(p.body.length>0){var m=ax(p.body[0],`textord`);f=kS[Number(m.text)]}}else p=ax(p,`textord`),f=kS[Number(p.text)];return OS({type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:d,leftDelim:o,rightDelim:c},f)}}),Z({type:`infix`,names:[`\\above`],numArgs:1,argTypes:[`size`],infix:!0,handler(e,t){var n=e.parser;e.funcName;var r=e.token;return{type:`infix`,mode:n.mode,replaceWith:`\\\\abovefrac`,size:ax(t[0],`size`).value,token:r}}}),Z({type:`genfrac`,names:[`\\\\abovefrac`],numArgs:3,argTypes:[`math`,`size`,`math`],handler:(e,t)=>{var n=e.parser;e.funcName;var r=t[0],i=ax(t[1],`infix`).size;if(!i)throw Error(`\\\\abovefrac expected size, but got `+String(i));var a=t[2],o=i.number>0;return{type:`genfrac`,mode:n.mode,numer:r,denom:a,continued:!1,hasBarLine:o,barSize:i,leftDelim:null,rightDelim:null}}});var jS=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?Cb(e.sup,t.havingStyle(n.sup()),t):Cb(e.sub,t.havingStyle(n.sub()),t),i=ax(e.base,`horizBrace`)):i=ax(e,`horizBrace`);var a=Cb(i.base,t.havingBaseStyle(R.DISPLAY)),o=Qb(i,t),s=i.isOver?Xy({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o,wrapperClasses:[`svg-align`]}]}):Xy({positionType:`bottom`,positionData:a.depth+.1+o.height,children:[{type:`elem`,elem:o,wrapperClasses:[`svg-align`]},{type:`kern`,size:.1},{type:`elem`,elem:a}]});if(r){var c=X([`minner`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?Xy({positionType:`firstBaseline`,children:[{type:`elem`,elem:c},{type:`kern`,size:.2},{type:`elem`,elem:r}]}):Xy({positionType:`bottom`,positionData:c.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:c}]})}return X([`minner`,i.isOver?`mover`:`munder`],[s],t)};Z({type:`horizBrace`,names:[`\\overbrace`,`\\underbrace`,`\\overbracket`,`\\underbracket`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName;return{type:`horizBrace`,mode:n.mode,label:r,isOver:r.includes(`\\over`),base:t[0]}},htmlBuilder:jS,mathmlBuilder:(e,t)=>{var n=Yb(e.label);return new Q(e.isOver?`mover`:`munder`,[Rb(e.base,t),n])}}),Z({type:`href`,names:[`\\href`],numArgs:2,argTypes:[`url`,`original`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[1],i=ax(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:fb(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=_b(e.body,t,!1);return Ky(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=Lb(e.body,t);return n instanceof Q||(n=new Q(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),Z({type:`href`,names:[`\\url`],numArgs:1,argTypes:[`url`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=ax(t[0],`url`).url;if(!n.settings.isTrusted({command:`\\url`,url:r}))return n.formatUnsupportedCmd(`\\url`);for(var i=[],a=0;a<r.length;a++){var o=r[a];o===`~`&&(o=`\\textasciitilde`),i.push({type:`textord`,mode:`text`,text:o})}var s={type:`text`,mode:n.mode,font:`\\texttt`,body:i};return{type:`href`,mode:n.mode,href:r,body:fb(s)}}}),Z({type:`hbox`,names:[`\\hbox`],numArgs:1,argTypes:[`text`],allowedInText:!0,primitive:!0,handler(e,t){return{type:`hbox`,mode:e.parser.mode,body:fb(t[0])}},htmlBuilder(e,t){return qy(_b(e.body,t.withFont(``),!1))},mathmlBuilder(e,t){return new Q(`mrow`,Ib(e.body,t.withFont(``)))}}),Z({type:`html`,names:[`\\htmlClass`,`\\htmlId`,`\\htmlStyle`,`\\htmlData`],numArgs:2,argTypes:[`raw`,`original`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName;e.token;var i=ax(t[0],`raw`).string,a=t[1];n.settings.strict&&n.settings.reportNonstrict(`htmlExtension`,`HTML extension is disabled on strict mode`);var o,s={};switch(r){case`\\htmlClass`:s.class=i,o={command:`\\htmlClass`,class:i};break;case`\\htmlId`:s.id=i,o={command:`\\htmlId`,id:i};break;case`\\htmlStyle`:s.style=i,o={command:`\\htmlStyle`,style:i};break;case`\\htmlData`:for(var c=`{,}`,l=[],u=``,d=0;d<i.length;d++)i.startsWith(c,d)?(u+=`,`,d+=c.length-1):i[d]===`,`?(l.push(u),u=``):u+=i[d];l.push(u);for(var f=0;f<l.length;f++){var p=l[f],m=p.indexOf(`=`);if(m<0)throw new L(`\\htmlData key/value '`+p+`' missing equals sign`);var h=p.slice(0,m),g=p.slice(m+1);s[`data-`+h.trim()]=g}o={command:`\\htmlData`,attributes:s};break;default:throw Error(`Unrecognized html command`)}return n.settings.isTrusted(o)?{type:`html`,mode:n.mode,attributes:s,body:fb(a)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=_b(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=X(r,n,t);for(var a of Object.entries(e.attributes)){var o=a[0],s=a[1];o!==`class`&&i.setAttribute(o,s)}return i},mathmlBuilder:(e,t)=>Lb(e.body,t)}),Z({type:`htmlmathml`,names:[`\\html@mathml`],numArgs:2,allowedInArgument:!0,allowedInText:!0,handler:(e,t)=>({type:`htmlmathml`,mode:e.parser.mode,html:fb(t[0]),mathml:fb(t[1])}),htmlBuilder:(e,t)=>qy(_b(e.html,t,!1)),mathmlBuilder:(e,t)=>Lb(e.mathml,t)});var MS=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:`bp`};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new L(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!wv(n))throw new L(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n};Z({type:`includegraphics`,names:[`\\includegraphics`],numArgs:1,numOptionalArgs:1,argTypes:[`raw`,`url`],allowedInText:!1,handler:(e,t,n)=>{var r=e.parser,i={number:0,unit:`em`},a={number:.9,unit:`em`},o={number:0,unit:`em`},s=``;if(n[0])for(var c=ax(n[0],`raw`).string.split(`,`),l=0;l<c.length;l++){var u=c[l].split(`=`);if(u.length===2){var d=u[1].trim();switch(u[0].trim()){case`alt`:s=d;break;case`width`:i=MS(d);break;case`height`:a=MS(d);break;case`totalheight`:o=MS(d);break;default:throw new L(`Invalid key: '`+u[0]+`' in \\includegraphics.`)}}}var f=ax(t[0],`url`).url;return s===``&&(s=f,s=s.replace(/^.*[\\/]/,``),s=s.substring(0,s.lastIndexOf(`.`))),r.settings.isTrusted({command:`\\includegraphics`,url:f})?{type:`includegraphics`,mode:r.mode,alt:s,width:i,height:a,totalheight:o,src:f}:r.formatUnsupportedCmd(`\\includegraphics`)},htmlBuilder:(e,t)=>{var n=Tv(e.height,t),r=0;e.totalheight.number>0&&(r=Tv(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=Tv(e.width,t));var a={height:z(n+r)};i>0&&(a.width=z(i)),r>0&&(a.verticalAlign=z(-r));var o=new Pv(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new Q(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=Tv(e.height,t),i=0;if(e.totalheight.number>0&&(i=Tv(e.totalheight,t)-r,n.setAttribute(`valign`,z(-i))),n.setAttribute(`height`,z(r+i)),e.width.number>0){var a=Tv(e.width,t);n.setAttribute(`width`,z(a))}return n.setAttribute(`src`,e.src),n}}),Z({type:`kern`,names:[`\\kern`,`\\mkern`,`\\hskip`,`\\mskip`],numArgs:1,argTypes:[`size`],primitive:!0,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName,i=ax(t[0],`size`);if(n.settings.strict){var a=r[1]===`m`,o=i.value.unit===`mu`;a?(o||n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` supports only mu units, `+(`not `+i.value.unit+` units`)),n.mode!==`math`&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` works only in math mode`)):o&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` doesn't support mu units`)}return{type:`kern`,mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return Zy(e.dimension,t)},mathmlBuilder(e,t){return new Ob(Tv(e.dimension,t))}}),Z({type:`lap`,names:[`\\mathllap`,`\\mathrlap`,`\\mathclap`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`lap`,mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment===`clap`?(n=X([],[Cb(e.body,t)]),n=X([`katex-inner`],[n],t)):n=X([`katex-inner`],[Cb(e.body,t)]);var r=X([`katex-fix`],[]),i=X([e.alignment],[n,r],t),a=X([`katex-strut`]);return a.style.height=z(i.height+i.depth),i.depth&&(a.style.verticalAlign=z(-i.depth)),i.children.unshift(a),i=X([`katex-thinbox`],[i],t),X([`mord`,`katex-vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new Q(`mpadded`,[Rb(e.body,t)]);if(e.alignment!==`rlap`){var r=e.alignment===`llap`?`-1`:`-0.5`;n.setAttribute(`lspace`,r+`width`)}return n.setAttribute(`width`,`0px`),n}}),Z({type:`styling`,names:[`\\(`,`$`],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,t){var n=e.funcName,r=e.parser,i=r.mode;r.switchMode(`math`);var a=n===`\\(`?`\\)`:`$`,o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:`styling`,mode:r.mode,style:`text`,resetFont:!0,body:o}}}),Z({type:`text`,names:[`\\)`,`\\]`],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,t){throw new L(`Mismatched `+e.funcName)}});var NS=(e,t)=>{switch(t.style.size){case R.DISPLAY.size:return e.display;case R.TEXT.size:return e.text;case R.SCRIPT.size:return e.script;case R.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Z({type:`mathchoice`,names:[`\\mathchoice`],numArgs:4,primitive:!0,handler:(e,t)=>({type:`mathchoice`,mode:e.parser.mode,display:fb(t[0]),text:fb(t[1]),script:fb(t[2]),scriptscript:fb(t[3])}),htmlBuilder:(e,t)=>qy(_b(NS(e,t),t,!1)),mathmlBuilder:(e,t)=>Lb(NS(e,t),t)});var PS=(e,t,n,r,i,a,o)=>{e=X([],[e]);var s=n&&P_(n),c,l;if(t){var u=Cb(t,r.havingStyle(i.sup()),r);l={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=Cb(n,r.havingStyle(i.sub()),r);c={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var f;if(l&&c)f=Xy({positionType:`bottom`,positionData:r.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+e.depth+o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:z(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:z(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else if(c)f=Xy({positionType:`top`,positionData:e.height-o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:z(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e}]});else if(l)f=Xy({positionType:`bottom`,positionData:e.depth+o,children:[{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:z(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else return e;var p=[f];if(c&&a!==0&&!s){var m=X([`mspace`],[],r);m.style.marginRight=z(a),p.unshift(m)}return X([`mop`,`op-limits`],p,r)},FS=new Set([`\\smallint`]),IS=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=ax(e.base,`op`),i=!0):a=ax(e,`op`);var o=t.style,s=!1;o.size===R.DISPLAY.size&&a.symbol&&!FS.has(a.name)&&(s=!0);var c,l;if(a.symbol){var u=s?`Size2-Regular`:`Size1-Regular`,d=``;if((a.name===`\\oiint`||a.name===`\\oiiint`)&&(d=a.name.slice(1),a.name=d===`oiint`?`\\iint`:`\\iiint`),c=Ly(a.name,u,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),l=c.italic,d.length>0){var f=tb(d+`Size`+(s?`2`:`1`),t);c=Xy({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:0},{type:`elem`,elem:f,shift:s?.08:0}]}),a.name=`\\`+d,c.classes.unshift(`mop`),c.italic=l}}else if(a.body){var p=_b(a.body,t,!0);p.length===1&&p[0]instanceof Iv?(c=p[0],c.classes[0]=`mop`):c=X([`mop`],p,t)}else{for(var m=[],h=1;h<a.name.length;h++)m.push(Ry(a.name[h],a.mode,t));c=X([`mop`],m,t)}var g=0,_=0;return(c instanceof Iv||a.name===`\\oiint`||a.name===`\\oiiint`)&&!a.suppressBaseShift&&(g=(c.height-c.depth)/2-t.fontMetrics().axisHeight,_=c.italic??0),i?PS(c,n,r,t,o,_,g):(g&&(c.style.position=`relative`,c.style.top=z(g)),c)},LS=(e,t)=>{var n;if(e.symbol)n=new Q(`mo`,[jb(e.name,e.mode)]),FS.has(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new Q(`mo`,Ib(e.body,t));else{n=new Q(`mi`,[new Db(e.name.slice(1))]);var r=new Q(`mo`,[jb(``,`text`)]);n=e.parentIsSupSub?new Q(`mrow`,[n,r]):Eb([n,r])}return n},RS={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`};Z({type:`op`,names:`\\coprod.\\bigvee.\\bigwedge.\\biguplus.\\bigcap.\\bigcup.\\intop.\\prod.\\sum.\\bigotimes.\\bigoplus.\\bigodot.\\bigsqcup.\\smallint.∏.∐.∑.⋀.⋁.⋂.⋃.⨀.⨁.⨂.⨄.⨆`.split(`.`),numArgs:0,handler:(e,t)=>{var n=e.parser,r=e.funcName;return r.length===1&&(r=RS[r]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:IS,mathmlBuilder:LS}),Z({type:`op`,names:[`\\mathop`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`op`,mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:fb(r)}}});var zS={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`};Z({type:`op`,names:`\\arcsin.\\arccos.\\arctan.\\arctg.\\arcctg.\\arg.\\ch.\\cos.\\cosec.\\cosh.\\cot.\\cotg.\\coth.\\csc.\\ctg.\\cth.\\deg.\\dim.\\exp.\\hom.\\ker.\\lg.\\ln.\\log.\\sec.\\sin.\\sinh.\\sh.\\tan.\\tanh.\\tg.\\th`.split(`.`),numArgs:0,handler(e){var t=e.parser,n=e.funcName;return{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}}}),Z({type:`op`,names:[`\\det`,`\\gcd`,`\\inf`,`\\lim`,`\\max`,`\\min`,`\\Pr`,`\\sup`],numArgs:0,handler(e){var t=e.parser,n=e.funcName;return{type:`op`,mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}}}),Z({type:`op`,names:[`\\int`,`\\iint`,`\\iiint`,`\\oint`,`\\oiint`,`\\oiiint`,`∫`,`∬`,`∭`,`∮`,`∯`,`∰`],numArgs:0,allowedInArgument:!0,handler(e){var t=e.parser,n=e.funcName;return n.length===1&&(n=zS[n]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}}});var BS=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=ax(e.base,`operatorname`),i=!0):a=ax(e,`operatorname`);var o;if(a.body.length>0){for(var s=_b(a.body.map(e=>{var t=`text`in e?e.text:void 0;return typeof t==`string`?{type:`textord`,mode:e.mode,text:t}:e}),t.withFont(`mathrm`),!0),c=0;c<s.length;c++){var l=s[c];l instanceof Iv&&(l.text=l.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`))}o=X([`mop`],s,t)}else o=X([`mop`],[],t);return i?PS(o,n,r,t,t.style,0,0):o};Z({type:`operatorname`,names:[`\\operatorname@`,`\\operatornamewithlimits`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`operatorname`,mode:n.mode,body:fb(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:BS,mathmlBuilder:(e,t)=>{for(var n=Ib(e.body,t.withFont(`mathrm`)),r=!0,i=0;i<n.length;i++){var a=n[i];if(!(a instanceof Ob)){if(a instanceof Q)switch(a.type){case`mi`:case`mn`:case`mspace`:case`mtext`:break;case`mo`:var o=a.children[0];a.children.length===1&&o instanceof Db?o.text=o.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`):r=!1;break;default:r=!1}else r=!1}}r&&(n=[new Db(n.map(e=>e.toText()).join(``))]);var s=new Q(`mi`,n);s.setAttribute(`mathvariant`,`normal`);var c=new Q(`mo`,[jb(``,`text`)]);return e.parentIsSupSub?new Q(`mrow`,[s,c]):Eb([s,c])}}),$(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),ub({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?qy(_b(e.body,t,!1)):X([`mord`],_b(e.body,t,!0),t)},mathmlBuilder(e,t){return Lb(e.body,t,!0)}}),Z({type:`overline`,names:[`\\overline`],numArgs:1,handler(e,t){var n=e.parser,r=t[0];return{type:`overline`,mode:n.mode,body:r}},htmlBuilder(e,t){var n=Cb(e.body,t.havingCrampedStyle()),r=Gy(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness;return X([`mord`,`katex-overline`],[Xy({positionType:`firstBaseline`,children:[{type:`elem`,elem:n},{type:`kern`,size:3*i},{type:`elem`,elem:r},{type:`kern`,size:i}]})],t)},mathmlBuilder(e,t){var n=new Q(`mo`,[new Db(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new Q(`mover`,[Rb(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),Z({type:`phantom`,names:[`\\phantom`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`phantom`,mode:n.mode,body:fb(r)}},htmlBuilder:(e,t)=>qy(_b(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>new Q(`mphantom`,Ib(e.body,t))}),$(`\\hphantom`,`\\smash{\\phantom{#1}}`),Z({type:`vphantom`,names:[`\\vphantom`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`vphantom`,mode:n.mode,body:r}},htmlBuilder:(e,t)=>X([`mord`,`rlap`],[X([`katex-inner`],[Cb(e.body,t.withPhantom())]),X([`katex-fix`],[])],t),mathmlBuilder:(e,t)=>{var n=new Q(`mpadded`,[new Q(`mphantom`,Ib(fb(e.body),t))]);return n.setAttribute(`width`,`0px`),n}}),Z({type:`raisebox`,names:[`\\raisebox`],numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0,handler(e,t){var n=e.parser,r=ax(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Cb(e.body,t);return Xy({positionType:`shift`,positionData:-Tv(e.dy,t),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new Q(`mpadded`,[Rb(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}});var VS=(e,t)=>({type:`reflectbox`,mode:e.parser.mode,body:t[0]});Z({type:`reflectbox`,names:[`\\reflectbox`],numArgs:1,argTypes:[`hbox`],allowedInText:!0,handler:VS,htmlBuilder(e,t){return X([`mord`,`reflectbox`],[Cb(e.body,t)],t)},mathmlBuilder(e,t){return Rb(e.body,t)}}),Z({type:`reflectbox`,names:[`\\mathreflectbox`],numArgs:1,argTypes:[`math`],handler:VS}),Z({type:`internal`,names:[`\\relax`],numArgs:0,allowedInText:!0,allowedInArgument:!0,handler(e){return{type:`internal`,mode:e.parser.mode}}}),Z({type:`rule`,names:[`\\rule`],numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`size`,`size`,`size`],handler(e,t,n){var r=e.parser,i=n[0],a=ax(t[0],`size`),o=ax(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&ax(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=X([`mord`,`katex-rule`],[],t),r=Tv(e.width,t),i=Tv(e.height,t),a=e.shift?Tv(e.shift,t):0;return n.style.borderRightWidth=z(r),n.style.borderTopWidth=z(i),n.style.bottom=z(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=Tv(e.width,t),r=Tv(e.height,t),i=e.shift?Tv(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new Q(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,z(n)),o.setAttribute(`height`,z(r));var s=new Q(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,z(i)):(s.setAttribute(`height`,z(i)),s.setAttribute(`depth`,z(-i))),s.setAttribute(`voffset`,z(i)),s}});function HS(e,t,n){for(var r=_b(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a<r.length;a++){var o=r[a].classes.indexOf(`katex-sizing`);o<0?Array.prototype.push.apply(r[a].classes,t.sizingClasses(n)):r[a].classes[o+1]===`reset-size`+t.size&&(r[a].classes[o+1]=`reset-size`+n.size),r[a].height*=i,r[a].depth*=i}return qy(r)}var US=[`\\tiny`,`\\sixptsize`,`\\scriptsize`,`\\footnotesize`,`\\small`,`\\normalsize`,`\\large`,`\\Large`,`\\LARGE`,`\\huge`,`\\Huge`];Z({type:`sizing`,names:US,numArgs:0,allowedInText:!0,handler:(e,t)=>{var n=e.breakOnTokenText,r=e.funcName,i=e.parser,a=i.parseExpression(!1,n);return{type:`sizing`,mode:i.mode,size:US.indexOf(r)+1,body:a}},htmlBuilder:(e,t)=>{var n=t.havingSize(e.size);return HS(e.body,n,t)},mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=new Q(`mstyle`,Ib(e.body,n));return r.setAttribute(`mathsize`,z(n.sizeMultiplier)),r}}),Z({type:`smash`,names:[`\\smash`],numArgs:1,numOptionalArgs:1,allowedInText:!0,handler:(e,t,n)=>{var r=e.parser,i=!1,a=!1,o=n[0]&&ax(n[0],`ordgroup`);if(o)for(var s,c=0;c<o.body.length;++c){var l=o.body[c];if(s=ox(l).text,s===`t`)i=!0;else if(s===`b`)a=!0;else{i=!1,a=!1;break}}else i=!0,a=!0;var u=t[0];return{type:`smash`,mode:r.mode,body:u,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var n=X([],[Cb(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return X([`mord`,`katex-smash`],[n],t);if(n.children)for(var r=0;r<n.children.length;r++)e.smashHeight&&(n.children[r].height=0),e.smashDepth&&(n.children[r].depth=0);return X([`mord`],[Xy({positionType:`firstBaseline`,children:[{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=new Q(`mpadded`,[Rb(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),Z({type:`sqrt`,names:[`\\sqrt`],numArgs:1,numOptionalArgs:1,handler(e,t,n){var r=e.parser,i=n[0],a=t[0];return{type:`sqrt`,mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=Cb(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=Jy(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.id<R.TEXT.id&&(i=t.fontMetrics().xHeight);var a=r+i/4,o=Ux(n.height+n.depth+a+r,t),s=o.span,c=o.ruleWidth,l=o.advanceWidth,u=s.height-c;u>n.height+n.depth+a&&(a=(a+u-n.height-n.depth)/2);var d=s.height-n.height-a-c;n.style.paddingLeft=z(l);var f=Xy({positionType:`firstBaseline`,children:[{type:`elem`,elem:n,wrapperClasses:[`svg-align`]},{type:`kern`,size:-(n.height+d)},{type:`elem`,elem:s},{type:`kern`,size:c}]});if(e.index){var p=t.havingStyle(R.SCRIPTSCRIPT),m=Cb(e.index,p,t);return X([`mord`,`sqrt`],[X([`katex-root`],[Xy({positionType:`shift`,positionData:-(.6*(f.height-f.depth)),children:[{type:`elem`,elem:m}]})]),f],t)}return X([`mord`,`sqrt`],[f],t)},mathmlBuilder(e,t){var n=e.body,r=e.index;return r?new Q(`mroot`,[Rb(n,t),Rb(r,t)]):new Q(`msqrt`,[Rb(n,t)])}});var WS={display:R.DISPLAY,text:R.TEXT,script:R.SCRIPT,scriptscript:R.SCRIPTSCRIPT};function GS(e){return e in WS}Z({type:`styling`,names:[`\\displaystyle`,`\\textstyle`,`\\scriptstyle`,`\\scriptscriptstyle`],numArgs:0,allowedInText:!0,primitive:!0,handler(e,t){var n=e.breakOnTokenText,r=e.funcName,i=e.parser,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);if(!GS(o))throw Error(`Unknown style: `+o);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=WS[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont(``)),HS(e.body,r,t)},mathmlBuilder(e,t){var n=WS[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(``));var i=new Q(`mstyle`,Ib(e.body,r)),a={display:[`0`,`true`],text:[`0`,`false`],script:[`1`,`false`],scriptscript:[`2`,`false`]}[e.style];return i.setAttribute(`scriptlevel`,a[0]),i.setAttribute(`displaystyle`,a[1]),i}});var KS=function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===R.DISPLAY.size||n.alwaysHandleSupSub)?IS:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===R.DISPLAY.size||n.limits)?BS:null:n.type===`accent`?P_(n.base)?ux:null:n.type===`horizBrace`&&!e.sub===n.isOver?jS:null:null};ub({type:`supsub`,htmlBuilder(e,t){var n=KS(e,t);if(n)return n(e,t);var r=e.base,i=e.sup,a=e.sub,o=Cb(r,t),s,c,l=t.fontMetrics(),u=0,d=0,f=r&&P_(r);if(i){var p=t.havingStyle(t.style.sup());s=Cb(i,p,t),f||(u=o.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var m=t.havingStyle(t.style.sub());c=Cb(a,m,t),f||(d=o.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}var h=t.style===R.DISPLAY?l.sup1:t.style.cramped?l.sup3:l.sup2,g=t.sizeMultiplier,_=z(.5/l.ptPerEm/g),v=null;if(c){var y=e.base&&e.base.type===`op`&&e.base.name&&(e.base.name===`\\oiint`||e.base.name===`\\oiiint`);(o instanceof Iv||y)&&(v=z(-(o.italic??0)))}var b;if(s&&c){u=Math.max(u,h,s.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var x=4*l.defaultRuleThickness;if(u-s.depth-(c.height-d)<x){d=x-(u-s.depth)+c.height;var S=.8*l.xHeight-(u-s.depth);S>0&&(u+=S,d-=S)}b=Xy({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:d,marginRight:_,marginLeft:v},{type:`elem`,elem:s,shift:-u,marginRight:_}]})}else if(c)d=Math.max(d,l.sub1,c.height-.8*l.xHeight),b=Xy({positionType:`shift`,positionData:d,children:[{type:`elem`,elem:c,marginLeft:v,marginRight:_}]});else if(s)u=Math.max(u,h,s.depth+.25*l.xHeight),b=Xy({positionType:`shift`,positionData:-u,children:[{type:`elem`,elem:s,marginRight:_}]});else throw Error(`supsub must have either sup or sub.`);return X([xb(o,`right`)||`mord`],[o,X([`msupsub`],[b])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type===`horizBrace`&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type===`op`||e.base.type===`operatorname`)&&(e.base.parentIsSupSub=!0);var a=[Rb(e.base,t)];e.sub&&a.push(Rb(e.sub,t)),e.sup&&a.push(Rb(e.sup,t));var o;if(n)o=r?`mover`:`munder`;else if(!e.sub){var s=e.base;o=s&&s.type===`op`&&s.limits&&(t.style===R.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===R.DISPLAY)?`mover`:`msup`}else if(e.sup){var c=e.base;o=c&&c.type===`op`&&c.limits&&t.style===R.DISPLAY||c&&c.type===`operatorname`&&c.alwaysHandleSupSub&&(t.style===R.DISPLAY||c.limits)?`munderover`:`msubsup`}else{var l=e.base;o=l&&l.type===`op`&&l.limits&&(t.style===R.DISPLAY||l.alwaysHandleSupSub)||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(l.limits||t.style===R.DISPLAY)?`munder`:`msub`}return new Q(o,a)}}),ub({type:`atom`,htmlBuilder(e,t){return Ry(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new Q(`mo`,[jb(e.text,e.mode)]);if(e.family===`bin`){var r=Pb(e,t);r===`bold-italic`&&n.setAttribute(`mathvariant`,r)}else e.family===`punct`?n.setAttribute(`separator`,`true`):(e.family===`open`||e.family===`close`)&&n.setAttribute(`stretchy`,`false`);return n}});var qS={mi:`italic`,mn:`normal`,mtext:`normal`};ub({type:`mathord`,htmlBuilder(e,t){return By(e,t)},mathmlBuilder(e,t){var n=new Q(`mi`,[jb(e.text,e.mode,t)]),r=Pb(e,t)||`italic`;return r!==qS[n.type]&&n.setAttribute(`mathvariant`,r),n}}),ub({type:`textord`,htmlBuilder(e,t){return By(e,t)},mathmlBuilder(e,t){var n=jb(e.text,e.mode,t),r=Pb(e,t)||`normal`,i=e.mode===`text`?new Q(`mtext`,[n]):/[0-9]/.test(e.text)?new Q(`mn`,[n]):e.text===`\\prime`?new Q(`mo`,[n]):new Q(`mi`,[n]);return r!==qS[i.type]&&i.setAttribute(`mathvariant`,r),i}});var JS=new Map([[`\\nobreak`,`nobreak`],[`\\allowbreak`,`allowbreak`]]),YS=new Map([[` `,{}],[`\\ `,{}],[`~`,{className:`nobreak`}],[`\\space`,{}],[`\\nobreakspace`,{className:`nobreak`}]]);ub({type:`spacing`,htmlBuilder(e,t){var n=YS.get(e.text),r=JS.get(e.text);if(n){var i=n.className||``;if(e.mode===`text`){var a=By(e,t);return a.classes.push(i),a}return X([`mspace`,i],[Ry(e.text,e.mode,t)],t)}if(r)return X([`mspace`,r],[],t);throw new L(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(YS.has(e.text))n=new Q(`mtext`,[new Db(`\xA0`)]);else if(JS.has(e.text))return new Q(`mspace`);else throw new L(`Unknown type of space "`+e.text+`"`);return n}});var XS=()=>{var e=new Q(`mtd`,[]);return e.setAttribute(`width`,`50%`),e};ub({type:`tag`,mathmlBuilder(e,t){var n=new Q(`mtable`,[new Q(`mtr`,[XS(),new Q(`mtd`,[Lb(e.body,t)]),XS(),new Q(`mtd`,[Lb(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}});var ZS={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},QS={"\\textbf":`textbf`,"\\textmd":`textmd`},$S={"\\textit":`textit`,"\\textup":`textup`},eC=(e,t)=>{var n=e.font;return n?ZS[n]?t.withTextFontFamily(ZS[n]):QS[n]?t.withTextFontWeight(QS[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape($S[n]):t};Z({type:`text`,names:[`\\text`,`\\textrm`,`\\textsf`,`\\texttt`,`\\textnormal`,`\\textbf`,`\\textmd`,`\\textit`,`\\textup`,`\\emph`],numArgs:1,argTypes:[`text`],allowedInArgument:!0,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`text`,mode:n.mode,body:fb(i),font:r}},htmlBuilder(e,t){var n=eC(e,t);return X([`mord`,`text`],_b(e.body,n,!0),n)},mathmlBuilder(e,t){var n=eC(e,t);return Lb(e.body,n)}}),Z({type:`underline`,names:[`\\underline`],numArgs:1,allowedInText:!0,handler(e,t){return{type:`underline`,mode:e.parser.mode,body:t[0]}},htmlBuilder(e,t){var n=Cb(e.body,t),r=Gy(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness;return X([`mord`,`katex-underline`],[Xy({positionType:`top`,positionData:n.height,children:[{type:`kern`,size:i},{type:`elem`,elem:r},{type:`kern`,size:3*i},{type:`elem`,elem:n}]})],t)},mathmlBuilder(e,t){var n=new Q(`mo`,[new Db(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new Q(`munder`,[Rb(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),Z({type:`vcenter`,names:[`\\vcenter`],numArgs:1,argTypes:[`original`],allowedInText:!1,handler(e,t){return{type:`vcenter`,mode:e.parser.mode,body:t[0]}},htmlBuilder(e,t){var n=Cb(e.body,t),r=t.fontMetrics().axisHeight;return Xy({positionType:`shift`,positionData:.5*(n.height-r-(n.depth+r)),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){return new Q(`mrow`,[new Q(`mpadded`,[Rb(e.body,t)],[`vcenter`])])}}),Z({type:`verb`,names:[`\\verb`],numArgs:0,allowedInText:!0,handler(e,t,n){throw new L(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=tC(e),r=[],i=t.havingStyle(t.style.text()),a=0;a<n.length;a++){var o=n[a];o===`~`&&(o=`\\textasciitilde`),r.push(Ly(o,`Typewriter-Regular`,e.mode,i,[`mord`,`texttt`]))}return X([`mord`,`text`].concat(i.sizingClasses(t)),Hy(r),i)},mathmlBuilder(e,t){var n=new Q(`mtext`,[new Db(tC(e))]);return n.setAttribute(`mathvariant`,`monospace`),n}});var tC=e=>e.body.replace(/ /g,e.star?`␣`:`\xA0`),nC=sb,rC=`[ \r
|
|
877
|
+
]`,iC=`\\\\[a-zA-Z@]+`,aC=`\\\\[^\ud800-\udfff]`,oC=`(`+iC+`)`+rC+`*`,sC=`\\\\(
|
|
878
|
+
|[ \r ]+
|
|
879
|
+
?)[ \r ]*`,cC=`[̀-ͯ]`,lC=RegExp(cC+`+$`),uC=`(`+rC+`+)|`+(sC+`|`)+`([!-\\[\\]-‧-豈-]`+(cC+`*`)+`|[\ud800-\udbff][\udc00-\udfff]`+(cC+`*`)+`|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5`+(`|`+oC)+(`|`+aC+`)`),dC=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(uC,`g`),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new dS(`EOF`,new uS(this,t,t));var n=this.tokenRegex.exec(e);if(n===null||n.index!==t)throw new L(`Unexpected character: '`+e[t]+`'`,new dS(e[t],new uS(this,t,t+1)));var r=n[6]||n[3]||(n[2]?`\\ `:` `);if(this.catcodes[r]===14){var i=e.indexOf(`
|
|
880
|
+
`,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict(`commentAtEnd`,`% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)`)):this.tokenRegex.lastIndex=i+1,this.lex()}return new dS(r,new uS(this,t,this.tokenRegex.lastIndex))}},fC=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new L(`Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug`);var e=this.undefStack.pop();for(var t of Object.keys(e))e[t]===void 0?delete this.current[t]:this.current[t]=e[t]}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return Object.prototype.hasOwnProperty.call(this.current,e)||Object.prototype.hasOwnProperty.call(this.builtins,e)}get(e){if(Object.prototype.hasOwnProperty.call(this.current,e))return this.current[e];if(Object.prototype.hasOwnProperty.call(this.builtins,e))return this.builtins[e]}set(e,t,n){if(n===void 0&&(n=!1),n){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!Object.prototype.hasOwnProperty.call(i,e)&&(i[e]=Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:void 0)}t==null?delete this.current[e]:this.current[e]=t}},pC=lS;$(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),$(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),$(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),$(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),$(`\\@ifnextchar`,function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),$(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),$(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var mC={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};$(`\\char`,function(e){var t=e.popToken(),n,r=0;if(t.text===`'`)n=8,t=e.popToken();else if(t.text===`"`)n=16,t=e.popToken();else if(t.text==="`"){if(t=e.popToken(),t.text[0]===`\\`)r=t.text.charCodeAt(1);else if(t.text===`EOF`)throw new L("\\char` missing argument");else r=t.text.charCodeAt(0)}else n=10;if(n){if(r=mC[t.text],r==null||r>=n)throw new L(`Invalid base-`+n+` digit `+t.text);for(var i;(i=mC[e.future().text])!=null&&i<n;)r*=n,r+=i,e.popToken()}return`\\@char{`+r+`}`});var hC=(e,t,n,r)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new L(`\\newcommand's first argument must be a macro name`);var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new L(`\\newcommand{`+a+`} attempting to redefine `+(a+`; use \\renewcommand`));if(!o&&!n)throw new L(`\\renewcommand{`+a+`} when command `+a+` does not yet exist; use \\newcommand`);var s=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text===`[`){for(var c=``,l=e.expandNextToken();l.text!==`]`&&l.text!==`EOF`;)c+=l.text,l=e.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new L(`Invalid number of arguments: `+c);s=parseInt(c),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),``};$(`\\newcommand`,e=>hC(e,!1,!0,!1)),$(`\\renewcommand`,e=>hC(e,!0,!1,!1)),$(`\\providecommand`,e=>hC(e,!0,!0,!0)),$(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),$(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),$(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),nC[n],Xv.math[n],Xv.text[n]),``}),$(`\\bgroup`,`{`),$(`\\egroup`,`}`),$(`~`,`\\nobreakspace`),$(`\\lq`,"`"),$(`\\rq`,`'`),$(`\\aa`,`\\r a`),$(`\\AA`,`\\r A`),$(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),$(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),$(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),$(`ℬ`,`\\mathscr{B}`),$(`ℰ`,`\\mathscr{E}`),$(`ℱ`,`\\mathscr{F}`),$(`ℋ`,`\\mathscr{H}`),$(`ℐ`,`\\mathscr{I}`),$(`ℒ`,`\\mathscr{L}`),$(`ℳ`,`\\mathscr{M}`),$(`ℛ`,`\\mathscr{R}`),$(`ℭ`,`\\mathfrak{C}`),$(`ℌ`,`\\mathfrak{H}`),$(`ℨ`,`\\mathfrak{Z}`),$(`\\Bbbk`,`\\Bbb{k}`),$(`\\llap`,`\\mathllap{\\textrm{#1}}`),$(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),$(`\\clap`,`\\mathclap{\\textrm{#1}}`),$(`\\mathstrut`,`\\vphantom{(}`),$(`\\underbar`,`\\underline{\\text{#1}}`),$(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}`),$(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),$(`\\ne`,`\\neq`),$(`≠`,`\\neq`),$(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),$(`∉`,`\\notin`),$(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),$(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),$(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),$(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),$(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),$(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),$(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),$(`⟂`,`\\perp`),$(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),$(`∌`,`\\notni`),$(`⌜`,`\\ulcorner`),$(`⌝`,`\\urcorner`),$(`⌞`,`\\llcorner`),$(`⌟`,`\\lrcorner`),$(`©`,`\\copyright`),$(`®`,`\\textregistered`),$(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),$(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),$(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),$(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),$(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),$(`⋮`,`\\vdots`),$(`\\varGamma`,`\\mathit{\\Gamma}`),$(`\\varDelta`,`\\mathit{\\Delta}`),$(`\\varTheta`,`\\mathit{\\Theta}`),$(`\\varLambda`,`\\mathit{\\Lambda}`),$(`\\varXi`,`\\mathit{\\Xi}`),$(`\\varPi`,`\\mathit{\\Pi}`),$(`\\varSigma`,`\\mathit{\\Sigma}`),$(`\\varUpsilon`,`\\mathit{\\Upsilon}`),$(`\\varPhi`,`\\mathit{\\Phi}`),$(`\\varPsi`,`\\mathit{\\Psi}`),$(`\\varOmega`,`\\mathit{\\Omega}`),$(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),$(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),$(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),$(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),$(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),$(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),$(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),$(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`);var gC={",":`\\dotsc`,"\\not":`\\dotsb`,"+":`\\dotsb`,"=":`\\dotsb`,"<":`\\dotsb`,">":`\\dotsb`,"-":`\\dotsb`,"*":`\\dotsb`,":":`\\dotsb`,"\\DOTSB":`\\dotsb`,"\\coprod":`\\dotsb`,"\\bigvee":`\\dotsb`,"\\bigwedge":`\\dotsb`,"\\biguplus":`\\dotsb`,"\\bigcap":`\\dotsb`,"\\bigcup":`\\dotsb`,"\\prod":`\\dotsb`,"\\sum":`\\dotsb`,"\\bigotimes":`\\dotsb`,"\\bigoplus":`\\dotsb`,"\\bigodot":`\\dotsb`,"\\bigsqcup":`\\dotsb`,"\\And":`\\dotsb`,"\\longrightarrow":`\\dotsb`,"\\Longrightarrow":`\\dotsb`,"\\longleftarrow":`\\dotsb`,"\\Longleftarrow":`\\dotsb`,"\\longleftrightarrow":`\\dotsb`,"\\Longleftrightarrow":`\\dotsb`,"\\mapsto":`\\dotsb`,"\\longmapsto":`\\dotsb`,"\\hookrightarrow":`\\dotsb`,"\\doteq":`\\dotsb`,"\\mathbin":`\\dotsb`,"\\mathrel":`\\dotsb`,"\\relbar":`\\dotsb`,"\\Relbar":`\\dotsb`,"\\xrightarrow":`\\dotsb`,"\\xleftarrow":`\\dotsb`,"\\DOTSI":`\\dotsi`,"\\int":`\\dotsi`,"\\oint":`\\dotsi`,"\\iint":`\\dotsi`,"\\iiint":`\\dotsi`,"\\iiiint":`\\dotsi`,"\\idotsint":`\\dotsi`,"\\DOTSX":`\\dotsx`},_C=new Set([`bin`,`rel`]);$(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in gC?t=gC[n]:(n.slice(0,4)===`\\not`||n in Xv.math&&_C.has(Xv.math[n].group))&&(t=`\\dotsb`),t});var vC={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};$(`\\dotso`,function(e){return e.future().text in vC?`\\ldots\\,`:`\\ldots`}),$(`\\dotsc`,function(e){var t=e.future().text;return t in vC&&t!==`,`?`\\ldots\\,`:`\\ldots`}),$(`\\cdots`,function(e){return e.future().text in vC?`\\@cdots\\,`:`\\@cdots`}),$(`\\dotsb`,`\\cdots`),$(`\\dotsm`,`\\cdots`),$(`\\dotsi`,`\\!\\cdots`),$(`\\dotsx`,`\\ldots\\,`),$(`\\DOTSI`,`\\relax`),$(`\\DOTSB`,`\\relax`),$(`\\DOTSX`,`\\relax`),$(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),$(`\\,`,`\\tmspace+{3mu}{.1667em}`),$(`\\thinspace`,`\\,`),$(`\\>`,`\\mskip{4mu}`),$(`\\:`,`\\tmspace+{4mu}{.2222em}`),$(`\\medspace`,`\\:`),$(`\\;`,`\\tmspace+{5mu}{.2777em}`),$(`\\thickspace`,`\\;`),$(`\\!`,`\\tmspace-{3mu}{.1667em}`),$(`\\negthinspace`,`\\!`),$(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),$(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),$(`\\enspace`,`\\kern.5em `),$(`\\enskip`,`\\hskip.5em\\relax`),$(`\\quad`,`\\hskip1em\\relax`),$(`\\qquad`,`\\hskip2em\\relax`),$(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),$(`\\tag@paren`,`\\tag@literal{({#1})}`),$(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new L(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),$(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),$(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),$(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),$(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),$(`\\newline`,`\\\\\\relax`),$(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`);var yC=z(Uv[`Main-Regular`][84][1]-.7*Uv[`Main-Regular`][65][1]);$(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+yC+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),$(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+yC+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),$(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),$(`\\@hspace`,`\\hskip #1\\relax`),$(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),$(`\\ordinarycolon`,`:`),$(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),$(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),$(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),$(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),$(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),$(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),$(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),$(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),$(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),$(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),$(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),$(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),$(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),$(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),$(`∷`,`\\dblcolon`),$(`∹`,`\\eqcolon`),$(`≔`,`\\coloneqq`),$(`≕`,`\\eqqcolon`),$(`⩴`,`\\Coloneqq`),$(`\\ratio`,`\\vcentcolon`),$(`\\coloncolon`,`\\dblcolon`),$(`\\colonequals`,`\\coloneqq`),$(`\\coloncolonequals`,`\\Coloneqq`),$(`\\equalscolon`,`\\eqqcolon`),$(`\\equalscoloncolon`,`\\Eqqcolon`),$(`\\colonminus`,`\\coloneq`),$(`\\coloncolonminus`,`\\Coloneq`),$(`\\minuscolon`,`\\eqcolon`),$(`\\minuscoloncolon`,`\\Eqcolon`),$(`\\coloncolonapprox`,`\\Colonapprox`),$(`\\coloncolonsim`,`\\Colonsim`),$(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),$(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),$(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),$(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),$(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),$(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),$(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),$(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),$(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),$(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),$(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),$(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),$(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),$(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),$(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),$(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),$(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),$(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),$(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),$(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),$(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),$(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),$(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),$(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),$(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),$(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),$(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),$(`\\imath`,`\\html@mathml{\\@imath}{ı}`),$(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),$(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),$(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),$(`⟦`,`\\llbracket`),$(`⟧`,`\\rrbracket`),$(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),$(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),$(`↤`,`\\mapsfrom`),$(`\\mapsfrom`,"\\html@mathml{\\mathrel{\\mathreflectbox{\\mapsto}}}{\\mathrel{\\char`↤}}"),$(`⦃`,`\\lBrace`),$(`⦄`,`\\rBrace`),$(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),$(`⦵`,`\\minuso`),$(`\\darr`,`\\downarrow`),$(`\\dArr`,`\\Downarrow`),$(`\\Darr`,`\\Downarrow`),$(`\\lang`,`\\langle`),$(`\\rang`,`\\rangle`),$(`\\uarr`,`\\uparrow`),$(`\\uArr`,`\\Uparrow`),$(`\\Uarr`,`\\Uparrow`),$(`\\N`,`\\mathbb{N}`),$(`\\R`,`\\mathbb{R}`),$(`\\Z`,`\\mathbb{Z}`),$(`\\alef`,`\\aleph`),$(`\\alefsym`,`\\aleph`),$(`\\Alpha`,`\\mathrm{A}`),$(`\\Beta`,`\\mathrm{B}`),$(`\\bull`,`\\bullet`),$(`\\Chi`,`\\mathrm{X}`),$(`\\clubs`,`\\clubsuit`),$(`\\cnums`,`\\mathbb{C}`),$(`\\Complex`,`\\mathbb{C}`),$(`\\Dagger`,`\\ddagger`),$(`\\diamonds`,`\\diamondsuit`),$(`\\empty`,`\\emptyset`),$(`\\Epsilon`,`\\mathrm{E}`),$(`\\Eta`,`\\mathrm{H}`),$(`\\exist`,`\\exists`),$(`\\harr`,`\\leftrightarrow`),$(`\\hArr`,`\\Leftrightarrow`),$(`\\Harr`,`\\Leftrightarrow`),$(`\\hearts`,`\\heartsuit`),$(`\\image`,`\\Im`),$(`\\infin`,`\\infty`),$(`\\Iota`,`\\mathrm{I}`),$(`\\isin`,`\\in`),$(`\\Kappa`,`\\mathrm{K}`),$(`\\larr`,`\\leftarrow`),$(`\\lArr`,`\\Leftarrow`),$(`\\Larr`,`\\Leftarrow`),$(`\\lrarr`,`\\leftrightarrow`),$(`\\lrArr`,`\\Leftrightarrow`),$(`\\Lrarr`,`\\Leftrightarrow`),$(`\\Mu`,`\\mathrm{M}`),$(`\\natnums`,`\\mathbb{N}`),$(`\\Nu`,`\\mathrm{N}`),$(`\\Omicron`,`\\mathrm{O}`),$(`\\plusmn`,`\\pm`),$(`\\rarr`,`\\rightarrow`),$(`\\rArr`,`\\Rightarrow`),$(`\\Rarr`,`\\Rightarrow`),$(`\\real`,`\\Re`),$(`\\reals`,`\\mathbb{R}`),$(`\\Reals`,`\\mathbb{R}`),$(`\\Rho`,`\\mathrm{P}`),$(`\\sdot`,`\\cdot`),$(`\\sect`,`\\S`),$(`\\spades`,`\\spadesuit`),$(`\\sub`,`\\subset`),$(`\\sube`,`\\subseteq`),$(`\\supe`,`\\supseteq`),$(`\\Tau`,`\\mathrm{T}`),$(`\\thetasym`,`\\vartheta`),$(`\\weierp`,`\\wp`),$(`\\Zeta`,`\\mathrm{Z}`),$(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),$(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),$(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),$(`\\bra`,`\\mathinner{\\langle{#1}|}`),$(`\\ket`,`\\mathinner{|{#1}\\rangle}`),$(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),$(`\\Bra`,`\\left\\langle#1\\right|`),$(`\\Ket`,`\\left|#1\\right\\rangle`);var bC=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get(`|`),s=t.macros.get(`\\|`);t.macros.beginGroup();var c=t=>n=>{e&&(n.macros.set(`|`,o),i.length&&n.macros.set(`\\|`,s));var a=t;return!t&&i.length&&n.future().text===`|`&&(n.popToken(),a=!0),{tokens:a?i:r,numArgs:0}};t.macros.set(`|`,c(!1)),i.length&&t.macros.set(`\\|`,c(!0));var l=t.consumeArg().tokens,u=t.expandTokens([...a,...l,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};$(`\\bra@ket`,bC(!1)),$(`\\bra@set`,bC(!0)),$(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),$(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),$(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),$(`\\angln`,`{\\angl n}`),$(`\\blue`,`\\textcolor{##6495ed}{#1}`),$(`\\orange`,`\\textcolor{##ffa500}{#1}`),$(`\\pink`,`\\textcolor{##ff00af}{#1}`),$(`\\red`,`\\textcolor{##df0030}{#1}`),$(`\\green`,`\\textcolor{##28ae7b}{#1}`),$(`\\gray`,`\\textcolor{gray}{#1}`),$(`\\purple`,`\\textcolor{##9d38bd}{#1}`),$(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),$(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),$(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),$(`\\blueD`,`\\textcolor{##11accd}{#1}`),$(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),$(`\\tealA`,`\\textcolor{##94fff5}{#1}`),$(`\\tealB`,`\\textcolor{##26edd5}{#1}`),$(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),$(`\\tealD`,`\\textcolor{##01a995}{#1}`),$(`\\tealE`,`\\textcolor{##208170}{#1}`),$(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),$(`\\greenB`,`\\textcolor{##8af281}{#1}`),$(`\\greenC`,`\\textcolor{##74cf70}{#1}`),$(`\\greenD`,`\\textcolor{##1fab54}{#1}`),$(`\\greenE`,`\\textcolor{##0d923f}{#1}`),$(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),$(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),$(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),$(`\\goldD`,`\\textcolor{##e07d10}{#1}`),$(`\\goldE`,`\\textcolor{##a75a05}{#1}`),$(`\\redA`,`\\textcolor{##fca9a9}{#1}`),$(`\\redB`,`\\textcolor{##ff8482}{#1}`),$(`\\redC`,`\\textcolor{##f9685d}{#1}`),$(`\\redD`,`\\textcolor{##e84d39}{#1}`),$(`\\redE`,`\\textcolor{##bc2612}{#1}`),$(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),$(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),$(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),$(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),$(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),$(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),$(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),$(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),$(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),$(`\\purpleE`,`\\textcolor{##543b78}{#1}`),$(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),$(`\\mintB`,`\\textcolor{##edf2df}{#1}`),$(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),$(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),$(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),$(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),$(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),$(`\\grayE`,`\\textcolor{##babec2}{#1}`),$(`\\grayF`,`\\textcolor{##888d93}{#1}`),$(`\\grayG`,`\\textcolor{##626569}{#1}`),$(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),$(`\\grayI`,`\\textcolor{##21242c}{#1}`),$(`\\kaBlue`,`\\textcolor{##314453}{#1}`),$(`\\kaGreen`,`\\textcolor{##71B307}{#1}`);var xC={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},SC=class{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new fC(pC,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new dC(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),this.future().text!==`[`)return null;t=this.popToken();var i=this.consumeArg([`]`]);r=i.tokens,n=i.end}else{var a=this.consumeArg();r=a.tokens,t=a.start,n=a.end}return this.pushToken(new dS(`EOF`,n.loc)),this.pushTokens(r),new dS(``,uS.range(t,n))}consumeSpaces(){for(;this.future().text===` `;)this.stack.pop()}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r=this.future(),i,a=0,o=0;do{if(i=this.popToken(),t.push(i),i.text===`{`)++a;else if(i.text===`}`){if(--a,a===-1)throw new L(`Extra }`,i)}else if(i.text===`EOF`)throw new L(`Unexpected end of input in a macro argument, expected '`+(e&&n?e[o]:`}`)+`'`,i);if(e&&n){if((a===0||a===1&&e[o]===`{`)&&i.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}}while(a!==0||n);return r.text===`{`&&t[t.length-1].text===`}`&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:r,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new L(`The length of delimiters doesn't match the number of args!`);for(var n=t[0],r=0;r<n.length;r++){var i=this.popToken();if(n[r]!==i.text)throw new L(`Use of the macro doesn't match its definition`,i)}}for(var a=[],o=0;o<e;o++)a.push(this.consumeArg(t&&t[o+1]).tokens);return a}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new L(`Too many expansions: infinite loop or need to increase maxExpand setting`)}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(r==null||e&&r.unexpandable){if(e&&r==null&&n[0]===`\\`&&!this.isDefined(n))throw new L(`Undefined control sequence: `+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,a=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var s=i[o];if(s.text===`#`){if(o===0)throw new L(`Incomplete placeholder at end of macro body`,s);if(s=i[--o],s.text===`#`)i.splice(o+1,1);else if(/^[1-9]$/.test(s.text))i.splice(o,2,...a[s.text-1]);else throw new L(`Not a valid argument number`,s)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text=`\\relax`),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new dS(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&=(r.noexpand=!1,!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.text).join(``)}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var r=typeof t==`function`?t(this):t;if(typeof r==`string`){var i=0;if(r.includes(`#`))for(var a=r.replace(/##/g,``);a.includes(`#`+(i+1));)++i;for(var o=new dC(r,this.settings),s=[],c=o.lex();c.text!==`EOF`;)s.push(c),c=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||Object.prototype.hasOwnProperty.call(nC,e)||Object.prototype.hasOwnProperty.call(Xv.math,e)||Object.prototype.hasOwnProperty.call(Xv.text,e)||Object.prototype.hasOwnProperty.call(xC,e)}isExpandable(e){var t=this.macros.get(e);return t==null?Object.prototype.hasOwnProperty.call(nC,e)&&!nC[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},CC=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,wC=Object.freeze({"₊":`+`,"₋":`-`,"₌":`=`,"₍":`(`,"₎":`)`,"₀":`0`,"₁":`1`,"₂":`2`,"₃":`3`,"₄":`4`,"₅":`5`,"₆":`6`,"₇":`7`,"₈":`8`,"₉":`9`,ₐ:`a`,ₑ:`e`,ₕ:`h`,ᵢ:`i`,ⱼ:`j`,ₖ:`k`,ₗ:`l`,ₘ:`m`,ₙ:`n`,ₒ:`o`,ₚ:`p`,ᵣ:`r`,ₛ:`s`,ₜ:`t`,ᵤ:`u`,ᵥ:`v`,ₓ:`x`,ᵦ:`β`,ᵧ:`γ`,ᵨ:`ρ`,ᵩ:`ϕ`,ᵪ:`χ`,"⁺":`+`,"⁻":`-`,"⁼":`=`,"⁽":`(`,"⁾":`)`,"⁰":`0`,"¹":`1`,"²":`2`,"³":`3`,"⁴":`4`,"⁵":`5`,"⁶":`6`,"⁷":`7`,"⁸":`8`,"⁹":`9`,ᴬ:`A`,ᴮ:`B`,ᴰ:`D`,ᴱ:`E`,ᴳ:`G`,ᴴ:`H`,ᴵ:`I`,ᴶ:`J`,ᴷ:`K`,ᴸ:`L`,ᴹ:`M`,ᴺ:`N`,ᴼ:`O`,ᴾ:`P`,ᴿ:`R`,ᵀ:`T`,ᵁ:`U`,ⱽ:`V`,ᵂ:`W`,ᵃ:`a`,ᵇ:`b`,ᶜ:`c`,ᵈ:`d`,ᵉ:`e`,ᶠ:`f`,ᵍ:`g`,ʰ:`h`,ⁱ:`i`,ʲ:`j`,ᵏ:`k`,ˡ:`l`,ᵐ:`m`,ⁿ:`n`,ᵒ:`o`,ᵖ:`p`,ʳ:`r`,ˢ:`s`,ᵗ:`t`,ᵘ:`u`,ᵛ:`v`,ʷ:`w`,ˣ:`x`,ʸ:`y`,ᶻ:`z`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),TC={"́":{text:`\\'`,math:`\\acute`},"̀":{text:"\\`",math:`\\grave`},"̈":{text:`\\"`,math:`\\ddot`},"̃":{text:`\\~`,math:`\\tilde`},"̄":{text:`\\=`,math:`\\bar`},"̆":{text:`\\u`,math:`\\breve`},"̌":{text:`\\v`,math:`\\check`},"̂":{text:`\\^`,math:`\\hat`},"̇":{text:`\\.`,math:`\\dot`},"̊":{text:`\\r`,math:`\\mathring`},"̋":{text:`\\H`},"̧":{text:`\\c`}},EC={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},DC=class e{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode=`math`,this.gullet=new SC(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new L(`Expected '`+e+`', got '`+this.fetch().text+`'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken??=this.gullet.expandNextToken(),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set(`\\color`,`\\textcolor`);try{var e=this.parseExpression(!1);return this.expect(`EOF`),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new dS(`}`)),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect(`}`),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){this.mode===`math`&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.has(i.text)||n&&i.text===n||t&&nC[i.text]&&nC[i.text].infix)break;var a=this.parseAtom(n);if(!a)break;a.type!==`internal`&&r.push(a)}return this.mode===`text`&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,n,r=0;r<e.length;r++){var i=e[r];if(i.type===`infix`){if(t!==-1)throw new L(`only one infix operator per group`,i.token);t=r,n=i.replaceWith}}if(t!==-1&&n){var a,o,s=e.slice(0,t),c=e.slice(t+1);return a=s.length===1&&s[0].type===`ordgroup`?s[0]:{type:`ordgroup`,mode:this.mode,body:s},o=c.length===1&&c[0].type===`ordgroup`?c[0]:{type:`ordgroup`,mode:this.mode,body:c},[n===`\\\\abovefrac`?this.callFunction(n,[a,e[t],o],[]):this.callFunction(n,[a,o],[])]}return e}handleSupSubscript(e){var t=this.fetch(),n=t.text;this.consume(),this.consumeSpaces();var r;do r=this.parseGroup(e);while(r?.type===`internal`);if(!r)throw new L(`Expected group after '`+n+`'`,t);return r}formatUnsupportedCmd(e){for(var t=[],n=0;n<e.length;n++)t.push({type:`textord`,mode:`text`,text:e[n]});var r={type:`text`,mode:this.mode,body:t};return{type:`color`,mode:this.mode,color:this.settings.errorColor,body:[r]}}parseAtom(e){var t=this.parseGroup(`atom`,e);if(t?.type===`internal`||this.mode===`text`)return t;for(var n,r;;){this.consumeSpaces();var i=this.fetch();if(i.text===`\\limits`||i.text===`\\nolimits`){if(t&&t.type===`op`)t.limits=i.text===`\\limits`,t.alwaysHandleSupSub=!0;else if(t&&t.type===`operatorname`)t.alwaysHandleSupSub&&(t.limits=i.text===`\\limits`);else throw new L(`Limit controls must follow a math operator`,i);this.consume()}else if(i.text===`^`){if(n)throw new L(`Double superscript`,i);n=this.handleSupSubscript(`superscript`)}else if(i.text===`_`){if(r)throw new L(`Double subscript`,i);r=this.handleSupSubscript(`subscript`)}else if(i.text===`'`){if(n)throw new L(`Double superscript`,i);var a={type:`textord`,mode:this.mode,text:`\\prime`},o=[a];for(this.consume();this.fetch().text===`'`;)o.push(a),this.consume();this.fetch().text===`^`&&o.push(this.handleSupSubscript(`superscript`)),n={type:`ordgroup`,mode:this.mode,body:o}}else if(wC[i.text]){var s=CC.test(i.text),c=[];for(c.push(new dS(wC[i.text])),this.consume();;){var l=this.fetch().text;if(!wC[l]||CC.test(l)!==s)break;c.unshift(new dS(wC[l])),this.consume()}var u=this.subparse(c);s?r={type:`ordgroup`,mode:`math`,body:u}:n={type:`ordgroup`,mode:`math`,body:u}}else break}return n&&r?{type:`supsub`,mode:this.mode,base:t,sup:n,sub:r}:n?{type:`supsub`,mode:this.mode,base:t,sup:n}:r?{type:`supsub`,mode:this.mode,base:t,sub:r}:t}parseFunction(e,t){var n=this.fetch(),r=n.text,i=nC[r];if(!i)return null;if(this.consume(),t&&t!==`atom`&&!i.allowedInArgument)throw new L(`Got function '`+r+`' with no arguments`+(t?` as `+t:``),n);if(this.mode===`text`&&!i.allowedInText)throw new L(`Can't use function '`+r+`' in text mode`,n);if(this.mode===`math`&&i.allowedInMath===!1)throw new L(`Can't use function '`+r+`' in math mode`,n);var a=this.parseArguments(r,i),o=a.args,s=a.optArgs;return this.callFunction(r,o,s,n,e)}callFunction(e,t,n,r,i){var a={funcName:e,parser:this,token:r,breakOnTokenText:i},o=nC[e];if(o&&o.handler)return o.handler(a,t,n);throw new L(`No function handler for `+e)}parseArguments(e,t){var n=t.numOptionalArgs??0,r=t.numArgs+n;if(r===0)return{args:[],optArgs:[]};for(var i=[],a=[],o=0;o<r;o++){var s=t.argTypes?.[o],c=o<n;(`primitive`in t&&t.primitive&&s==null||t.type===`sqrt`&&o===1&&a[0]==null)&&(s=`primitive`);var l=this.parseGroupOfType(`argument to '`+e+`'`,s,c);if(c)a.push(l);else if(l!=null)i.push(l);else throw new L(`Null argument, please report this as a bug`)}return{args:i,optArgs:a}}parseGroupOfType(e,t,n){switch(t){case`color`:return this.parseColorGroup(n);case`size`:return this.parseSizeGroup(n);case`url`:return this.parseUrlGroup(n);case`math`:case`text`:return this.parseArgumentGroup(n,t);case`hbox`:var r=this.parseArgumentGroup(n,`text`);return r==null?null:{type:`styling`,mode:r.mode,body:[r],style:`text`,resetFont:!0};case`raw`:var i=this.parseStringGroup(n);return i==null?null:{type:`raw`,mode:`text`,string:i.text};case`primitive`:if(n)throw new L(`A primitive argument cannot be optional`);var a=this.parseGroup(e);if(a==null)throw new L(`Expected group as `+e,this.fetch());return a;case`original`:case void 0:return this.parseArgumentGroup(n);default:throw new L(`Unknown group type as `+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===` `;)this.consume()}parseStringGroup(e){var t=this.gullet.scanArgument(e);if(t==null)return null;for(var n=``,r;(r=this.fetch()).text!==`EOF`;)n+=r.text,this.consume();return this.consume(),t.text=n,t}parseRegexGroup(e,t){for(var n=this.fetch(),r=n,i=``,a;(a=this.fetch()).text!==`EOF`&&e.test(i+a.text);)r=a,i+=r.text,this.consume();if(i===``)throw new L(`Invalid `+t+`: '`+n.text+`'`,n);return n.range(r,i)}parseColorGroup(e){var t=this.parseStringGroup(e);if(t==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new L(`Invalid color: '`+t.text+`'`,t);var r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r=`#`+r),{type:`color-token`,mode:this.mode,color:r}}parseSizeGroup(e){var t,n=!1;if(this.gullet.consumeSpaces(),t=!e&&this.gullet.future().text!==`{`?this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,`size`):this.parseStringGroup(e),!t)return null;!e&&t.text.length===0&&(t.text=`0pt`,n=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!r)throw new L(`Invalid size: '`+t.text+`'`,t);var i={number:+(r[1]+r[2]),unit:r[3]};if(!wv(i))throw new L(`Invalid unit: '`+i.unit+`'`,t);return{type:`size`,mode:this.mode,value:i,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode(`%`,13),this.gullet.lexer.setCatcode(`~`,12);var t=this.parseStringGroup(e);if(this.gullet.lexer.setCatcode(`%`,14),this.gullet.lexer.setCatcode(`~`,13),t==null)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,`$1`);return{type:`url`,mode:this.mode,url:n}}parseArgumentGroup(e,t){var n=this.gullet.scanArgument(e);if(n==null)return null;var r=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var i=this.parseExpression(!1,`EOF`);this.expect(`EOF`),this.gullet.endGroup();var a={type:`ordgroup`,mode:this.mode,loc:n.loc,body:i};return t&&this.switchMode(r),a}parseGroup(e,t){var n=this.fetch(),r=n.text,i;if(r===`{`||r===`\\begingroup`){this.consume();var a=r===`{`?`}`:`\\endgroup`;this.gullet.beginGroup();var o=this.parseExpression(!1,a),s=this.fetch();this.expect(a),this.gullet.endGroup(),i={type:`ordgroup`,mode:this.mode,loc:uS.range(n,s),body:o,semisimple:r===`\\begingroup`||void 0}}else if(i=this.parseFunction(t,e)||this.parseSymbol(),i==null&&r[0]===`\\`&&!Object.prototype.hasOwnProperty.call(xC,r)){if(this.settings.throwOnError)throw new L(`Undefined control sequence: `+r,n);i=this.formatUnsupportedCmd(r),this.consume()}return i}formLigatures(e){for(var t=e.length-1,n=0;n<t;++n){var r=e[n];if(r.type===`textord`){var i=r.text,a=e[n+1];if(a&&a.type===`textord`){if(i===`-`&&a.text===`-`){var o=e[n+2];n+1<t&&o&&o.type===`textord`&&o.text===`-`?(e.splice(n,3,{type:`textord`,mode:`text`,loc:uS.range(r,o),text:`---`}),t-=2):(e.splice(n,2,{type:`textord`,mode:`text`,loc:uS.range(r,a),text:`--`}),--t)}(i===`'`||i==="`")&&a.text===i&&(e.splice(n,2,{type:`textord`,mode:`text`,loc:uS.range(r,a),text:i+i}),--t)}}}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),r=n.charAt(0)===`*`;if(r&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new L(`\\verb assertion failed --
|
|
881
|
+
please report what input caused this bug`);return n=n.slice(1,-1),{type:`verb`,mode:`text`,body:n,star:r}}Object.prototype.hasOwnProperty.call(EC,t[0])&&!Xv[this.mode][t[0]]&&(this.settings.strict&&this.mode===`math`&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Accented Unicode text character "`+t[0]+`" used in math mode`,e),t=EC[t[0]]+t.slice(1));var i=lC.exec(t);i&&(t=t.substring(0,i.index),t===`i`?t=`ı`:t===`j`&&(t=`ȷ`));var a;if(Xv[this.mode][t]){this.settings.strict&&this.mode===`math`&&vy.includes(t)&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Latin-1/Unicode text character "`+t[0]+`" used in math mode`,e);var o=Xv[this.mode][t].group,s=uS.range(e);a=ix(o)?{type:`atom`,mode:this.mode,family:o,loc:s,text:t}:{type:o,mode:this.mode,loc:s,text:t}}else if(t.charCodeAt(0)>=128)this.settings.strict&&(ov(t.charCodeAt(0))?this.mode===`math`&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Unicode text character "`+t[0]+`" used in math mode`,e):this.settings.reportNonstrict(`unknownSymbol`,`Unrecognized Unicode character "`+t[0]+`"`+(` (`+t.charCodeAt(0)+`)`),e)),a={type:`textord`,mode:`text`,loc:uS.range(e),text:t};else return null;if(this.consume(),i)for(var c=0;c<i[0].length;c++){var l=i[0][c];if(!TC[l])throw new L(`Unknown accent ' `+l+`'`,e);var u=TC[l][this.mode]||TC[l].text;if(!u)throw new L(`Accent `+l+` unsupported in `+this.mode+` mode`,e);a={type:`accent`,mode:this.mode,loc:uS.range(e),label:u,isStretchy:!1,isShifty:!0,base:a}}return a}};DC.endOfExpression=new Set([`}`,`\\endgroup`,`\\end`,`\\right`,`&`]);var OC=function(e,t){if(!(typeof e==`string`||e instanceof String))throw TypeError(`KaTeX can only parse string typed expression`);var n=new DC(e,t);delete n.gullet.macros.current[`\\df@tag`];var r=n.parse();if(delete n.gullet.macros.current[`\\current@color`],delete n.gullet.macros.current[`\\color`],n.gullet.macros.get(`\\df@tag`)){if(!t.displayMode)throw new L(`\\tag works only in display equations`);r=[{type:`tag`,mode:`text`,body:r,tag:n.subparse([new dS(`\\df@tag`)])}]}return r},kC=function(e,t,n){t.textContent=``;var r=NC(e,n).toNode();t.appendChild(r)};typeof document<`u`&&document.compatMode!==`CSS1Compat`&&(typeof console<`u`&&console.warn(`Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype.`),kC=function(){throw new L(`KaTeX doesn't work in quirks mode.`)});var AC=function(e,t){return NC(e,t).toMarkup()},jC=function(e,t){return OC(e,new B_(t))},MC=function(e,t,n){if(n.throwOnError||!(e instanceof L))throw e;var r=X([`katex-error`],[new Iv(t)]);return r.setAttribute(`title`,e.toString()),r.setAttribute(`style`,`color:`+n.errorColor),r},NC=function(e,t){var n=new B_(t);try{return Kb(OC(e,n),e,n)}catch(t){return MC(t,e,n)}},PC={version:`0.18.7`,render:kC,renderToString:AC,ParseError:L,SETTINGS_SCHEMA:I_,__parse:jC,__renderToDomTree:NC,__renderToHTMLTree:function(e,t){var n=new B_(t);try{return qb(OC(e,n),e,n)}catch(t){return MC(t,e,n)}},__setFontMetrics:Kv,__defineSymbol:B,__defineFunction:Z,__defineMacro:$,__domTree:{Span:Mv,Anchor:Nv,SymbolNode:Iv,SvgNode:Lv,PathNode:Rv,LineNode:zv}},FC=/^ {0,3}(?:\$\$([\s\S]+?)\$\$|\\\[([\s\S]+?)\\\])[ \t]*(?:\n+|$)/,IC=/^ {0,3}(?:\$\$|\\\[)/m,LC=/^(?:\\\(([\s\S]+?)\\\)|\\\[([\s\S]+?)\\\]|\$\$([\s\S]+?)\$\$)/,RC=/\\\(|\\\[|\$\$/;function zC(e,t){return PC.renderToString(e.trim().replace(/(?<!\\)\$/g,`\\$`),{displayMode:t,throwOnError:!1,strict:`ignore`,trust:!1})}function BC(e,t,n,r){return{type:e,raw:t,text:n,displayMode:r}}var VC={tokenizer:{lheading(e){let t=/^(?:[^\n]+\n)+?(?: {0,3}(?:=+|-+) *(?:\n+|$))/.exec(e)?.[0]??``;return IC.test(t)?void 0:!1}},extensions:[{name:`blockMath`,level:`block`,start:e=>e.match(IC)?.index,tokenizer(e){let t=FC.exec(e);if(t)return BC(`blockMath`,t[0],t[1]??t[2],!0)},renderer:e=>`${zC(e.text,!0)}\n`},{name:`inlineMath`,level:`inline`,start:e=>e.match(RC)?.index,tokenizer(e){let t=LC.exec(e);if(!t)return;let[n,r,i,a]=t;return BC(`inlineMath`,n,r??i??a,r===void 0)},renderer:e=>zC(e.text,e.displayMode)}]},HC={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function UC(e){return e.replace(/[&<>"']/g,e=>HC[e])}var WC=String.raw`(?:https?:\/\/|\/)[^\s)"]+`,GC=String.raw`(?:${WC}|data:image\/(?:png|jpeg|gif|webp);base64,[A-Za-z0-9+/=]+)`,KC=String.raw`!\[([^\]]*)\]\((${GC})\)`,qC=new RegExp(String.raw`^${WC}$`),JC=new RegExp(String.raw`^${GC}$`),YC=new RegExp(String.raw`\[${KC}\]\((${WC})\)`,`g`),XC=new RegExp(KC,`g`),ZC=new RegExp(String.raw`\[([^\]]+)\]\((${WC})\)`,`g`);function QC(e,t){return`<a href="${e}" target="_blank" rel="noopener noreferrer">${t}</a>`}function $C(e,t){return`<img class="smarter-chat-image" src="${e}" alt="${t}" loading="lazy">`}function ew(e){return UC(e).replace(YC,(e,t,n,r)=>QC(r,$C(n,t))).replace(XC,(e,t,n)=>tw(n,t)).replace(ZC,(e,t,n)=>QC(n,t))}function tw(e,t){return e.startsWith(`data:`)?$C(e,t):QC(e,$C(e,t))}var nw=new w_({gfm:!0,breaks:!0,async:!1});nw.use(VC),nw.use({renderer:{html({text:e}){return UC(e)},link({href:e,tokens:t}){let[n]=t;if(t.length===1&&n.type===`image`){let{href:t,text:r}=n;if(qC.test(e)&&JC.test(t))return QC(UC(e),$C(UC(t),r))}let r=this.parser.parseInline(t);return qC.test(e)?QC(UC(e),r):r},image({href:e,text:t}){return JC.test(e)?tw(UC(e),t):t},code({text:e,lang:t}){return Xp(e,t)}}});function rw(e){return Eh.sanitize(e,{ADD_TAGS:[`semantics`,`annotation`],ADD_ATTR:[`target`,`encoding`]})}function iw(e){let t=nw.parse(e).trim(),n=/^<p>([\s\S]*)<\/p>$/.exec(t);return rw(n&&!n[1].includes(`<p>`)?n[1]:t)}function aw(e){return e===Mf.USER?jf.OUTGOING:jf.INCOMING}function ow(e,t){return t===Mf.USER?ew(e):iw(e)}function sw(e,t,n,r=aw(t)){let i=typeof e==`string`&&e!==``;return{message:i?ow(e,t):``,content:e??null,direction:r,sender:t,sentTime:new Date().toLocaleString(),display:i,originalMessage:n}}function cw(e){return(e??[]).filter(e=>e&&typeof e==`object`&&typeof e.role==`string`).map(e=>sw(e.content,e.role,e))}function lw(e){return!e||e.length===0?``:`Some example prompts to get you started:
|
|
882
|
+
|
|
883
|
+
`+e.map(e=>`- ${e}\n`).join(``)}function uw(e,t,n){let r=[sw(t,Mf.SYSTEM),sw(e,Mf.ASSISTANT)],i=lw(n);return i&&r.push(sw(i,Mf.ASSISTANT)),r}function dw(e,t,n,r){let i=cw(r);return i.length>0?i:uw(e,t,n)}function fw(e){return e.filter(e=>Nf.includes(e.sender)).map(e=>({...e.originalMessage,role:e.sender,content:e.content}))}function pw(e,t,n){return e.map(e=>e.message?{...e,display:!n.includes(e.sender)||t}:{...e,display:!1})}function mw(e){return e.replace(/<[^>]+>/g,``)}function hw({label:e,color:t,path:r}){return(0,n.jsxs)(`svg`,{className:`smarter-chat-title-icon`,viewBox:`0 0 16 16`,role:`img`,"aria-label":e,fill:t,children:[(0,n.jsx)(`title`,{children:e}),(0,n.jsx)(`path`,{d:r})]})}var gw=`M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0m-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z`,_w=`M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0M5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293z`,vw=`M9.752 6.193c.599.6 1.73.437 2.528-.362s.96-1.932.362-2.531c-.599-.6-1.73-.438-2.528.361-.798.8-.96 1.933-.362 2.532M15.811 3.312c-.363 1.534-1.334 3.626-3.64 6.218l-.24 2.408a2.56 2.56 0 0 1-.732 1.526L8.817 15.85a.51.51 0 0 1-.867-.434l.27-1.899c.04-.28-.013-.593-.131-.956a9 9 0 0 0-.249-.657l-.082-.202c-.468-.07-.844-.393-1.162-.71-.319-.318-.64-.695-.71-1.163l-.202-.082a9 9 0 0 0-.657-.249c-.363-.118-.676-.172-.956-.131l-1.899.27a.51.51 0 0 1-.434-.867l2.391-2.391a2.56 2.56 0 0 1 1.526-.732l2.408-.24c2.592-2.306 4.684-3.277 6.218-3.64a.5.5 0 0 1 .6.6`;function yw({title:e,isReady:t,isValid:r,isDeployed:i}){return t?(0,n.jsxs)(`span`,{className:`smarter-chat-title`,children:[e,r?(0,n.jsx)(hw,{label:`valid`,color:`green`,path:gw}):(0,n.jsx)(hw,{label:`not valid`,color:`red`,path:_w}),i?(0,n.jsx)(hw,{label:`deployed`,color:`orange`,path:vw}):(0,n.jsx)(`span`,{className:`smarter-chat-title-sandbox`,children:`(sandbox)`})]}):(0,n.jsx)(`span`,{children:`Loading...`})}var bw=yw,xw=p(u(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(require("react")):typeof define==`function`&&define.amd?define([`react`],r):typeof e==`object`?e.reactJsonView=r(require("react")):n.reactJsonView=r(n.React)})(e,e=>(()=>{var t={165(e,t,n){let r=n(877),i={};for(let e of Object.keys(r))i[r[e]]=e;let a={rgb:{channels:3,labels:`rgb`},hsl:{channels:3,labels:`hsl`},hsv:{channels:3,labels:`hsv`},hwb:{channels:3,labels:`hwb`},cmyk:{channels:4,labels:`cmyk`},xyz:{channels:3,labels:`xyz`},lab:{channels:3,labels:`lab`},lch:{channels:3,labels:`lch`},hex:{channels:1,labels:[`hex`]},keyword:{channels:1,labels:[`keyword`]},ansi16:{channels:1,labels:[`ansi16`]},ansi256:{channels:1,labels:[`ansi256`]},hcg:{channels:3,labels:[`h`,`c`,`g`]},apple:{channels:3,labels:[`r16`,`g16`,`b16`]},gray:{channels:1,labels:[`gray`]}};e.exports=a;for(let e of Object.keys(a)){if(!(`channels`in a[e]))throw Error(`missing channels property: `+e);if(!(`labels`in a[e]))throw Error(`missing channel labels property: `+e);if(a[e].labels.length!==a[e].channels)throw Error(`channel and label counts mismatch: `+e);let{channels:t,labels:n}=a[e];delete a[e].channels,delete a[e].labels,Object.defineProperty(a[e],"channels",{value:t}),Object.defineProperty(a[e],"labels",{value:n})}function o(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}a.rgb.hsl=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s,c;a===i?s=0:t===a?s=(n-r)/o:n===a?s=2+(r-t)/o:r===a&&(s=4+(t-n)/o),s=Math.min(60*s,360),s<0&&(s+=360);let l=(i+a)/2;return c=a===i?0:l<=.5?o/(a+i):o/(2-a-i),[s,100*c,100*l]},a.rgb.hsv=function(e){let t,n,r,i,a,o=e[0]/255,s=e[1]/255,c=e[2]/255,l=Math.max(o,s,c),u=l-Math.min(o,s,c),d=function(e){return(l-e)/6/u+.5};return u===0?(i=0,a=0):(a=u/l,t=d(o),n=d(s),r=d(c),o===l?i=r-n:s===l?i=1/3+t-r:c===l&&(i=2/3+n-t),i<0?i+=1:i>1&&--i),[360*i,100*a,100*l]},a.rgb.hwb=function(e){let t=e[0],n=e[1],r=e[2],i=a.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,100*o,100*r]},a.rgb.cmyk=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r);return[100*((1-t-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*((1-r-i)/(1-i)||0),100*i]},a.rgb.keyword=function(e){let t=i[e];if(t)return t;let n,a=1/0;for(let t of Object.keys(r)){let i=o(e,r[t]);i<a&&(a=i,n=t)}return n},a.keyword.rgb=function(e){return r[e]},a.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;return t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},a.rgb.lab=function(e){let t=a.rgb.xyz(e),n=t[0],r=t[1],i=t[2];return n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,[116*r-16,500*(n-r),200*(r-i)]},a.hsl.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100,i,a,o;if(n===0)return o=255*r,[o,o,o];i=r<.5?r*(1+n):r+n-r*n;let s=2*r-i,c=[0,0,0];for(let e=0;e<3;e++)a=t+1/3*-(e-1),a<0&&a++,a>1&&a--,o=6*a<1?s+6*(i-s)*a:2*a<1?i:3*a<2?s+(i-s)*(2/3-a)*6:s,c[e]=255*o;return c},a.hsl.hsv=function(e){let t=e[0],n=e[1]/100,r=e[2]/100,i=n,a=Math.max(r,.01);return r*=2,n*=r<=1?r:2-r,i*=a<=1?a:2-a,[t,100*(r===0?2*i/(a+i):2*n/(r+n)),100*((r+n)/2)]},a.hsv.rgb=function(e){let t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,a=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*a),c=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,c,o];case 1:return[s,r,o];case 2:return[o,r,c];case 3:return[o,s,r];case 4:return[c,o,r];case 5:return[r,o,s]}},a.hsv.hsl=function(e){let t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01),a,o;o=(2-n)*r;let s=(2-n)*i;return a=n*i,a/=s<=1?s:2-s,a||=0,o/=2,[t,100*a,100*o]},a.hwb.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100,i=n+r,a;i>1&&(n/=i,r/=i);let o=Math.floor(6*t),s=1-r;a=6*t-o,1&o&&(a=1-a);let c=n+a*(s-n),l,u,d;switch(o){default:case 6:case 0:l=s,u=c,d=n;break;case 1:l=c,u=s,d=n;break;case 2:l=n,u=s,d=c;break;case 3:l=n,u=c,d=s;break;case 4:l=c,u=n,d=s;break;case 5:l=s,u=n,d=c}return[255*l,255*u,255*d]},a.cmyk.rgb=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},a.xyz.rgb=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,i,a,o;return i=3.2406*t+-1.5372*n+-.4986*r,a=-.9689*t+1.8758*n+.0415*r,o=.0557*t+-.204*n+1.057*r,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[255*i,255*a,255*o]},a.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},a.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;let i=n**3,a=t**3,o=r**3;return n=i>.008856?i:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,r=o>.008856?o:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},a.lab.lch=function(e){let t=e[0],n=e[1],r=e[2],i;return i=360*Math.atan2(r,n)/2/Math.PI,i<0&&(i+=360),[t,Math.sqrt(n*n+r*r),i]},a.lch.lab=function(e){let t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},a.rgb.ansi16=function(e,t=null){let[n,r,i]=e,o=t===null?a.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return o===2&&(s+=60),s},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){let t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},a.ansi256.rgb=function(e){if(e>=232){let t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},a.rgb.hex=function(e){let t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return`000000`.substring(t.length)+t},a.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split(``).map(e=>e+e).join(``));let r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),o=i-a,s,c;return s=o<1?a/(1-o):0,c=o<=0?0:i===t?(n-r)/o%6:i===n?2+(r-t)/o:4+(t-n)/o,c/=6,c%=1,[360*c,100*o,100*s]},a.hsl.hcg=function(e){let t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n),i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},a.hsv.hcg=function(e){let t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},a.hcg.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[255*r,255*r,255*r];let i=[0,0,0],a=t%1*6,o=a%1,s=1-o,c=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return c=(1-n)*r,[255*(n*i[0]+c),255*(n*i[1]+c),255*(n*i[2]+c)]},a.hcg.hsv=function(e){let t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},a.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},a.hcg.hwb=function(e){let t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},a.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=function(e){return[0,0,e[0]]},a.gray.hsv=a.gray.hsl,a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){let t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return`000000`.substring(n.length)+n},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},880(e,t,n){let r=n(165),i=n(985),a={};Object.keys(r).forEach(e=>{a[e]={},Object.defineProperty(a[e],"channels",{value:r[e].channels}),Object.defineProperty(a[e],"labels",{value:r[e].labels});let t=i(e);Object.keys(t).forEach(n=>{let r=t[n];a[e][n]=function(e){let t=function(...t){let n=t[0];if(n==null)return n;n.length>1&&(t=n);let r=e(t);if(typeof r==`object`)for(let e=r.length,t=0;t<e;t++)r[t]=Math.round(r[t]);return r};return`conversion`in e&&(t.conversion=e.conversion),t}(r),a[e][n].raw=function(e){let t=function(...t){let n=t[0];return n==null?n:(n.length>1&&(t=n),e(t))};return`conversion`in e&&(t.conversion=e.conversion),t}(r)})}),e.exports=a},985(e,t,n){let r=n(165);function i(e){let t=function(){let e={},t=Object.keys(r);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;){let e=n.pop(),i=Object.keys(r[e]);for(let r=i.length,a=0;a<r;a++){let r=i[a],o=t[r];o.distance===-1&&(o.distance=t[e].distance+1,o.parent=e,n.unshift(r))}}return t}function a(e,t){return function(n){return t(e(n))}}function o(e,t){let n=[t[e].parent,e],i=r[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)n.unshift(t[o].parent),i=a(r[t[o].parent][o],i),o=t[o].parent;return i.conversion=n,i}e.exports=function(e){let t=i(e),n={},r=Object.keys(t);for(let e=r.length,i=0;i<e;i++){let e=r[i];t[e].parent!==null&&(n[e]=o(e,t))}return n}},877(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},138(e,t,n){var r=n(877),i=n(403),a=Object.hasOwnProperty,o=Object.create(null);for(var s in r)a.call(r,s)&&(o[r[s]]=s);var c=e.exports={to:{},get:{}};function l(e,t,n){return Math.min(Math.max(t,e),n)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?`0`+t:t}c.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case`hsl`:t=c.get.hsl(e),n=`hsl`;break;case`hwb`:t=c.get.hwb(e),n=`hwb`;break;default:t=c.get.rgb(e),n=`rgb`}return t?{model:n,value:t}:null},c.get.rgb=function(e){if(!e)return null;var t,n,i,o=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(i=t[2],t=t[1],n=0;n<3;n++){var s=2*n;o[n]=parseInt(t.slice(s,s+2),16)}i&&(o[3]=parseInt(i,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(i=(t=t[1])[3],n=0;n<3;n++)o[n]=parseInt(t[n]+t[n],16);i&&(o[3]=parseInt(i+i,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)o[n]=parseInt(t[n+1],0);t[4]&&(t[5]?o[3]=.01*parseFloat(t[4]):o[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?t[1]===`transparent`?[0,0,0,0]:a.call(r,t[1])?((o=r[t[1]])[3]=1,o):null:null;for(n=0;n<3;n++)o[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?o[3]=.01*parseFloat(t[4]):o[3]=parseFloat(t[4]))}for(n=0;n<3;n++)o[n]=l(o[n],0,255);return o[3]=l(o[3],0,1),o},c.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,l(parseFloat(t[2]),0,100),l(parseFloat(t[3]),0,100),l(isNaN(n)?1:n,0,1)]}return null},c.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,l(parseFloat(t[2]),0,100),l(parseFloat(t[3]),0,100),l(isNaN(n)?1:n,0,1)]}return null},c.to.hex=function(){var e=i(arguments);return`#`+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):``)},c.to.rgb=function(){var e=i(arguments);return e.length<4||e[3]===1?`rgb(`+Math.round(e[0])+`, `+Math.round(e[1])+`, `+Math.round(e[2])+`)`:`rgba(`+Math.round(e[0])+`, `+Math.round(e[1])+`, `+Math.round(e[2])+`, `+e[3]+`)`},c.to.rgb.percent=function(){var e=i(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||e[3]===1?`rgb(`+t+`%, `+n+`%, `+r+`%)`:`rgba(`+t+`%, `+n+`%, `+r+`%, `+e[3]+`)`},c.to.hsl=function(){var e=i(arguments);return e.length<4||e[3]===1?`hsl(`+e[0]+`, `+e[1]+`%, `+e[2]+`%)`:`hsla(`+e[0]+`, `+e[1]+`%, `+e[2]+`%, `+e[3]+`)`},c.to.hwb=function(){var e=i(arguments),t=``;return e.length>=4&&e[3]!==1&&(t=`, `+e[3]),`hwb(`+e[0]+`, `+e[1]+`%, `+e[2]+`%`+t+`)`},c.to.keyword=function(e){return o[e.slice(0,3)]}},742(e,t,n){let r=n(138),i=n(880),a=[`keyword`,`gray`,`hex`],o={};for(let e of Object.keys(i))o[[...i[e].labels].sort().join(``)]=e;let s={};function c(e,t){if(!(this instanceof c))return new c(e,t);if(t&&t in a&&(t=null),t&&!(t in i))throw Error(`Unknown model: `+t);let n,l;if(e==null)this.model=`rgb`,this.color=[0,0,0],this.valpha=1;else if(e instanceof c)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e==`string`){let t=r.get(e);if(t===null)throw Error(`Unable to parse color from string: `+e);this.model=t.model,l=i[this.model].channels,this.color=t.value.slice(0,l),this.valpha=typeof t.value[l]==`number`?t.value[l]:1}else if(e.length>0){this.model=t||`rgb`,l=i[this.model].channels;let n=Array.prototype.slice.call(e,0,l);this.color=f(n,l),this.valpha=typeof e[l]==`number`?e[l]:1}else if(typeof e==`number`)this.model=`rgb`,this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;let t=Object.keys(e);`alpha`in e&&(t.splice(t.indexOf(`alpha`),1),this.valpha=typeof e.alpha==`number`?e.alpha:0);let r=t.sort().join(``);if(!(r in o))throw Error(`Unable to parse color from object: `+JSON.stringify(e));this.model=o[r];let{labels:a}=i[this.model],s=[];for(n=0;n<a.length;n++)s.push(e[a[n]]);this.color=f(s)}if(s[this.model])for(l=i[this.model].channels,n=0;n<l;n++){let e=s[this.model][n];e&&(this.color[n]=e(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}c.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in r.to?this:this.rgb();t=t.round(typeof e==`number`?e:1);let n=t.valpha===1?t.color:[...t.color,this.valpha];return r.to[t.model](n)},percentString(e){let t=this.rgb().round(typeof e==`number`?e:1),n=t.valpha===1?t.color:[...t.color,this.valpha];return r.to.rgb.percent(n)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){let e={},{channels:t}=i[this.model],{labels:n}=i[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){let e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){let e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new c([...this.color.map(l(e)),this.valpha],this.model)},alpha(e){return e===void 0?this.valpha:new c([...this.color,Math.max(0,Math.min(1,e))],this.model)},red:u(`rgb`,0,d(255)),green:u(`rgb`,1,d(255)),blue:u(`rgb`,2,d(255)),hue:u([`hsl`,`hsv`,`hsl`,`hwb`,`hcg`],0,e=>(e%360+360)%360),saturationl:u(`hsl`,1,d(100)),lightness:u(`hsl`,2,d(100)),saturationv:u(`hsv`,1,d(100)),value:u(`hsv`,2,d(100)),chroma:u(`hcg`,1,d(100)),gray:u(`hcg`,2,d(100)),white:u(`hwb`,1,d(100)),wblack:u(`hwb`,2,d(100)),cyan:u(`cmyk`,0,d(100)),magenta:u(`cmyk`,1,d(100)),yellow:u(`cmyk`,2,d(100)),black:u(`cmyk`,3,d(100)),x:u(`xyz`,0,d(95.047)),y:u(`xyz`,1,d(100)),z:u(`xyz`,2,d(108.833)),l:u(`lab`,0,d(100)),a:u(`lab`,1),b:u(`lab`,2),keyword(e){return e===void 0?i[this.model].keyword(this.color):new c(e)},hex(e){return e===void 0?r.to.hex(this.rgb().round().color):new c(e)},hexa(e){if(e!==void 0)return new c(e);let t=this.rgb().round().color,n=Math.round(255*this.valpha).toString(16).toUpperCase();return n.length===1&&(n=`0`+n),r.to.hex(t)+n},rgbNumber(){let e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){let e=this.rgb().color,t=[];for(let[n,r]of e.entries()){let e=r/255;t[n]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){let t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){let t=this.contrast(e);return t>=7?`AAA`:t>=4.5?`AA`:``},isDark(){let e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){let e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){let t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){let t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){let t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){let t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){let t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){let t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){let e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return c.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){let t=this.hsl(),n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw Error(`Argument to "mix" was not a Color instance, but rather an instance of `+typeof e);let n=e.rgb(),r=this.rgb(),i=t===void 0?.5:t,a=2*i-1,o=n.alpha()-r.alpha(),s=((a*o===-1?a:(a+o)/(1+a*o))+1)/2,l=1-s;return c.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(let e of Object.keys(i)){if(a.includes(e))continue;let{channels:t}=i[e];c.prototype[e]=function(...t){return this.model===e?new c(this):t.length>0?new c(t,e):new c([...(n=i[this.model][e].raw(this.color),Array.isArray(n)?n:[n]),this.valpha],e);var n},c[e]=function(...n){let r=n[0];return typeof r==`number`&&(r=f(n,t)),new c(r,e)}}function l(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function u(e,t,n){e=Array.isArray(e)?e:[e];for(let r of e)(s[r]||(s[r]=[]))[t]=n;return e=e[0],function(r){let i;return r===void 0?(i=this[e]().color[t],n&&(i=n(i)),i):(n&&(r=n(r)),i=this[e](),i.color[t]=r,i)}}function d(e){return function(t){return Math.max(0,Math.min(e,t))}}function f(e,t){for(let n=0;n<t;n++)typeof e[n]!=`number`&&(e[n]=0);return e}e.exports=c},94(e){e.exports=function(e){return!(!e||typeof e==`string`)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!==`String`))}},403(e,t,n){"use strict";var r=n(94),i=Array.prototype.concat,a=Array.prototype.slice,o=e.exports=function(e){for(var t=[],n=0,o=e.length;n<o;n++){var s=e[n];r(s)?t=i.call(t,a.call(s)):t.push(s)}return t};o.wrap=function(e){return function(){return e(o(arguments))}}},119(t){"use strict";t.exports=e},436(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},991(e){e.exports=function(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}};let n={};function r(e){let i=n[e];if(i!==void 0)return i.exports;let a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.n=e=>{let t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.cw=e=>{var t;return()=>{if(e){var n=e;e=0,t={exports:{}},n.call(t.exports,t,t.exports)}return t.exports}},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})};let i={};return(()=>{"use strict";r.r(i),r.d(i,{default:()=>er});var e=r.cw(function(e,t){var n,r=typeof Reflect==`object`?Reflect:null,i=r&&typeof r.apply==`function`?r.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};n=r&&typeof r.ownKeys==`function`?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){typeof e.removeListener==`function`&&e.removeListener(`error`,i),n([].slice.call(arguments))}g(e,t,a,{once:!0}),t!==`error`&&function(e,t,n){typeof e.on==`function`&&g(e,`error`,t,n)}(e,i,{once:!0})})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function c(e){if(typeof e!=`function`)throw TypeError(`The "listener" argument must be of type Function. Received type `+typeof e)}function l(e){return e._maxListeners===void 0?o.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var i,a,o,s;if(c(n),(a=e._events)===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit(`newListener`,t,n.listener?n.listener:n),a=e._events),o=a[t]),o===void 0)o=a[t]=n,++e._eventsCount;else if(typeof o==`function`?o=a[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(i=l(e))>0&&o.length>i&&!o.warned){o.warned=!0;var u=Error(`Possible EventEmitter memory leak detected. `+o.length+` `+String(t)+` listeners added. Use emitter.setMaxListeners() to increase limit`);u.name=`MaxListenersExceededWarning`,u.emitter=e,u.type=t,u.count=o.length,s=u,console&&console.warn&&console.warn(s)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=d.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i==`function`?n?[i.listener||i]:[i]:n?function(e){for(var t=Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):h(i,i.length)}function m(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n==`function`)return 1;if(n!==void 0)return n.length}return 0}function h(e,t){for(var n=Array(t),r=0;r<t;++r)n[r]=e[r];return n}function g(e,t,n,r){if(typeof e.on==`function`)r.once?e.once(t,n):e.on(t,n);else{if(typeof e.addEventListener!=`function`)throw TypeError(`The "emitter" argument must be of type EventEmitter. Received type `+typeof e);e.addEventListener(t,function i(a){r.once&&e.removeEventListener(t,i),n(a)})}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if(typeof e!=`number`||e<0||a(e))throw RangeError(`The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received `+e+`.`);s=e}}),o.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if(typeof e!=`number`||e<0||a(e))throw RangeError(`The value of "n" is out of range. It must be a non-negative number. Received `+e+`.`);return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r=e===`error`,a=this._events;if(a!==void 0)r&&=a.error===void 0;else if(!r)return!1;if(r){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=Error(`Unhandled error.`+(o?` (`+o.message+`)`:``));throw s.context=o,s}var c=a[e];if(c===void 0)return!1;if(typeof c==`function`)i(c,this,t);else{var l=c.length,u=h(c,l);for(n=0;n<l;++n)i(u[n],this,t)}return!0},o.prototype.addListener=function(e,t){return u(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return u(this,e,t,!0)},o.prototype.once=function(e,t){return c(t),this.on(e,f(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,f(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,a,o;if(c(t),(r=this._events)===void 0||(n=r[e])===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit(`removeListener`,e,n.listener||t));else if(typeof n!=`function`){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit(`removeListener`,e,o||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if((n=this._events)===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i,a=Object.keys(n);for(r=0;r<a.length;++r)(i=a[r])!==`removeListener`&&this.removeAllListeners(i);return this.removeAllListeners(`removeListener`),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(t=n[e])==`function`)this.removeListener(e,t);else if(t!==void 0)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return typeof e.listenerCount==`function`?e.listenerCount(t):m.call(e,t)},o.prototype.listenerCount=m,o.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}}),t=r.cw(function(e,t){var r=c(),i=l(),a=s(),u=o(),d=n();function f(e){return e&&e.__esModule?e:{default:e}}function p(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var m=p(a),h=f(u),g=f(d),_=typeof document<`u`,v={"min-height":`0`,"max-height":`none`,height:`0`,visibility:`hidden`,overflow:`hidden`,position:`absolute`,"z-index":`-1000`,top:`0`,right:`0`,display:`block`},y=function(e){Object.keys(v).forEach(function(t){e.style.setProperty(t,v[t],`important`)})},b=null,x=function(e,t){var n=e.scrollHeight;return t.sizingStyle.boxSizing===`border-box`?n+t.borderSize:n-t.paddingSize},S=function(){},C=[`borderBottomWidth`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`,`boxSizing`,`fontFamily`,`fontSize`,`fontStyle`,`fontWeight`,`letterSpacing`,`lineHeight`,`paddingBottom`,`paddingLeft`,`paddingRight`,`paddingTop`,`tabSize`,`textIndent`,`textRendering`,`textTransform`,`width`,`wordBreak`,`wordSpacing`,`scrollbarGutter`],w=!!_&&!!document.documentElement.currentStyle,T=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var n,r=(n=t,C.reduce(function(e,t){return e[t]=n[t],e},{})),i=r.boxSizing;return i===``?null:(w&&i===`border-box`&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+`px`),{sizingStyle:r,paddingSize:parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),borderSize:parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth)})};function E(e,t,n){var r=h.default(n);m.useLayoutEffect(function(){var n=function(e){return r.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}},[])}var D=[`cacheMeasurements`,`maxRows`,`minRows`,`onChange`,`onHeightChange`];t.A=m.forwardRef(function(e,t){var n=e.cacheMeasurements,a=e.maxRows,o=e.minRows,s=e.onChange,c=s===void 0?S:s,l=e.onHeightChange,u=l===void 0?S:l,d=i(e,D),f=d.value!==void 0,p=m.useRef(null),h=g.default(p,t),v=m.useRef(0),C=m.useRef(),w=function(){var e=p.current,t=n&&C.current?C.current:T(e);if(t){C.current=t;var r=function(e,t,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),b||((b=document.createElement(`textarea`)).setAttribute(`tabindex`,`-1`),b.setAttribute(`aria-hidden`,`true`),y(b)),b.parentNode===null&&document.body.appendChild(b);var i=e.paddingSize,a=e.borderSize,o=e.sizingStyle,s=o.boxSizing;Object.keys(o).forEach(function(e){var t=e;b.style[t]=o[t]}),y(b),b.value=t;var c=x(b,e);b.value=t,c=x(b,e),b.value=`x`;var l=b.scrollHeight-i,u=l*n;s===`border-box`&&(u=u+i+a),c=Math.max(u,c);var d=l*r;return s===`border-box`&&(d=d+i+a),[c=Math.min(d,c),l]}(t,e.value||e.placeholder||`x`,o,a),i=r[0],s=r[1];v.current!==i&&(v.current=i,e.style.setProperty(`height`,i+`px`,`important`),u(i,{rowHeight:s}))}};return _?(m.useLayoutEffect(w),function(e,t){E(document.body,`reset`,function(n){e.current.form===n.target&&t(n)})}(p,function(){if(!f){var e=p.current.value;requestAnimationFrame(function(){var t=p.current;t&&e!==t.value&&w()})}}),E(window,`resize`,w),function(e){E(document.fonts,`loadingdone`,e)}(w),m.createElement(`textarea`,r({},d,{onChange:function(e){f||w(),c(e)},ref:h}))):m.createElement(`textarea`,r({},d,{onChange:c,ref:h}))})}),n=r.cw(function(e,t){r.r(t),r.d(t,{default:()=>i}),s();var n=function(e,t){typeof e==`function`?e(t):e.current=t},i=function(e,t){var r=u()().useRef();return u()().useCallback(function(i){e.current=i,r.current&&n(r.current,null),r.current=t,t&&n(t,i)},[t])}}),a=r.cw(function(e,t){r.d(t,{A:()=>n}),s();var n=s().useLayoutEffect}),o=r.cw(function(e,t){r.r(t),r.d(t,{default:()=>n}),s(),a();var n=function(e){var t=u()().useRef(e);return(0,a().A)(function(){t.current=e}),t}}),s=()=>r(119),c=()=>r(436),l=()=>r(991);function u(){return u.c||=r.n(s())}function d(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function f(e){this.setState(function(t){return this.constructor.getDerivedStateFromProps(e,t)??null}.bind(this))}function p(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function m(e){var t=e.prototype;if(!t||!t.isReactComponent)throw Error(`Can only polyfill class components`);if(typeof e.getDerivedStateFromProps!=`function`&&typeof t.getSnapshotBeforeUpdate!=`function`)return e;var n=null,r=null,i=null;if(typeof t.componentWillMount==`function`?n=`componentWillMount`:typeof t.UNSAFE_componentWillMount==`function`&&(n=`UNSAFE_componentWillMount`),typeof t.componentWillReceiveProps==`function`?r=`componentWillReceiveProps`:typeof t.UNSAFE_componentWillReceiveProps==`function`&&(r=`UNSAFE_componentWillReceiveProps`),typeof t.componentWillUpdate==`function`?i=`componentWillUpdate`:typeof t.UNSAFE_componentWillUpdate==`function`&&(i=`UNSAFE_componentWillUpdate`),n!==null||r!==null||i!==null){var a=e.displayName||e.name,o=typeof e.getDerivedStateFromProps==`function`?`getDerivedStateFromProps()`:`getSnapshotBeforeUpdate()`;throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
884
|
+
|
|
885
|
+
`+a+` uses `+o+` but also contains the following legacy lifecycles:`+(n===null?``:`
|
|
886
|
+
`+n)+(r===null?``:`
|
|
887
|
+
`+r)+(i===null?``:`
|
|
888
|
+
`+i)+`
|
|
502
889
|
|
|
503
890
|
The above lifecycles should be removed. Learn more about this warning here:
|
|
504
|
-
https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof y.getDerivedStateFromProps=="function"&&(O.componentWillMount=S,O.componentWillReceiveProps=D),typeof O.getSnapshotBeforeUpdate=="function"){if(typeof O.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");O.componentWillUpdate=F;var R=O.componentDidUpdate;O.componentDidUpdate=function(j,U,fe){var je=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:fe;R.call(this,j,U,je)}}return y}function C(y,O){if(y==null)return{};var p,v,m=(function(W,R){if(W==null)return{};var j,U,fe={},je=Object.keys(W);for(U=0;U<je.length;U++)j=je[U],R.indexOf(j)>=0||(fe[j]=W[j]);return fe})(y,O);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(y);for(v=0;v<x.length;v++)p=x[v],O.indexOf(p)>=0||Object.prototype.propertyIsEnumerable.call(y,p)&&(m[p]=y[p])}return m}function M(y){var O=(function(p){return{}.toString.call(p).match(/\s([a-zA-Z]+)/)[1].toLowerCase()})(y);return O==="number"&&(O=isNaN(y)?"nan":(0|y)!=y?"float":"integer"),O}S.__suppressDeprecationWarning=!0,D.__suppressDeprecationWarning=!0,F.__suppressDeprecationWarning=!0;var B={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},J={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"},N={globalFontFamily:"monospace",globalCursor:"default",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px"},de=o(45),oe=function(y){var O=(function(p){return{backgroundColor:p.base00,ellipsisColor:p.base09,braceColor:p.base07,expandedIcon:p.base0D,collapsedIcon:p.base0E,keyColor:p.base07,arrayKeyColor:p.base0C,objectSize:p.base04,copyToClipboard:p.base0F,copyToClipboardCheck:p.base0D,objectBorder:p.base02,dataTypes:{boolean:p.base0E,date:p.base0D,float:p.base0B,function:p.base0D,integer:p.base0F,string:p.base09,nan:p.base08,null:p.base0A,undefined:p.base05,regexp:p.base0A,background:p.base02},editVariable:{editIcon:p.base0E,cancelIcon:p.base09,removeIcon:p.base09,addIcon:p.base0E,checkIcon:p.base0E,background:p.base01,color:p.base0A,border:p.base07},addKeyModal:{background:p.base05,border:p.base04,color:p.base0A,labelColor:p.base01},validationFailure:{background:p.base09,iconColor:p.base01,fontColor:p.base01}}})(y);return{"app-container":{fontFamily:N.globalFontFamily,cursor:N.globalCursor,backgroundColor:O.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:O.ellipsisColor,fontSize:N.ellipsisFontSize,lineHeight:N.ellipsisLineHeight,cursor:N.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:N.braceCursor,fontWeight:N.braceFontWeight,color:O.braceColor},"expanded-icon":{color:O.expandedIcon},"collapsed-icon":{color:O.collapsedIcon},colon:{display:"inline-block",margin:N.keyMargin,color:O.keyColor,verticalAlign:"top"},objectKeyVal:function(p,v){return{style:c({paddingTop:N.keyValPaddingTop,paddingRight:N.keyValPaddingRight,paddingBottom:N.keyValPaddingBottom,borderLeft:N.keyValBorderLeft+" "+O.objectBorder,":hover":{paddingLeft:v.paddingLeft-1+"px",borderLeft:N.keyValBorderHover+" "+O.objectBorder}},v)}},"object-key-val-no-border":{padding:N.keyValPadding},"pushed-content":{marginLeft:N.pushedContentMarginLeft},variableValue:function(p,v){return{style:c({display:"inline-block",paddingRight:N.variableValuePaddingRight,position:"relative"},v)}},"object-name":{display:"inline-block",color:O.keyColor,letterSpacing:N.keyLetterSpacing,fontStyle:N.keyFontStyle,verticalAlign:N.keyVerticalAlign,opacity:N.keyOpacity,":hover":{opacity:N.keyOpacityHover}},"array-key":{display:"inline-block",color:O.arrayKeyColor,letterSpacing:N.keyLetterSpacing,fontStyle:N.keyFontStyle,verticalAlign:N.keyVerticalAlign,opacity:N.keyOpacity,":hover":{opacity:N.keyOpacityHover}},"object-size":{color:O.objectSize,borderRadius:N.objectSizeBorderRadius,fontStyle:N.objectSizeFontStyle,margin:N.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:N.dataTypeFontSize,marginRight:N.dataTypeMarginRight,opacity:N.datatypeOpacity},boolean:{display:"inline-block",color:O.dataTypes.boolean},date:{display:"inline-block",color:O.dataTypes.date},"date-value":{marginLeft:N.dateValueMarginLeft},float:{display:"inline-block",color:O.dataTypes.float},function:{display:"inline-block",color:O.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:O.dataTypes.integer},string:{display:"inline-block",color:O.dataTypes.string},nan:{display:"inline-block",color:O.dataTypes.nan,fontSize:N.nanFontSize,fontWeight:N.nanFontWeight,backgroundColor:O.dataTypes.background,padding:N.nanPadding,borderRadius:N.nanBorderRadius},null:{display:"inline-block",color:O.dataTypes.null,fontSize:N.nullFontSize,fontWeight:N.nullFontWeight,backgroundColor:O.dataTypes.background,padding:N.nullPadding,borderRadius:N.nullBorderRadius},undefined:{display:"inline-block",color:O.dataTypes.undefined,fontSize:N.undefinedFontSize,padding:N.undefinedPadding,borderRadius:N.undefinedBorderRadius,backgroundColor:O.dataTypes.background},regexp:{display:"inline-block",color:O.dataTypes.regexp},"copy-to-clipboard":{cursor:N.clipboardCursor},"copy-icon":{color:O.copyToClipboard,fontSize:N.iconFontSize,marginRight:N.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:O.copyToClipboardCheck,marginLeft:N.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:N.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:N.metaDataPadding},"icon-container":{display:"inline-block",width:N.iconContainerWidth},tooltip:{padding:N.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:O.editVariable.removeIcon,cursor:N.iconCursor,fontSize:N.iconFontSize,marginRight:N.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:O.editVariable.addIcon,cursor:N.iconCursor,fontSize:N.iconFontSize,marginRight:N.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:O.editVariable.editIcon,cursor:N.iconCursor,fontSize:N.iconFontSize,marginRight:N.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:N.iconCursor,color:O.editVariable.checkIcon,fontSize:N.iconFontSize,paddingRight:N.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:N.iconCursor,color:O.editVariable.cancelIcon,fontSize:N.iconFontSize,paddingRight:N.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:N.editInputMinWidth,borderRadius:N.editInputBorderRadius,backgroundColor:O.editVariable.background,color:O.editVariable.color,padding:N.editInputPadding,marginRight:N.editInputMarginRight,fontFamily:N.editInputFontFamily},"detected-row":{paddingTop:N.detectedRowPaddingTop},"key-modal-request":{position:N.addKeyCoverPosition,top:N.addKeyCoverPositionPx,left:N.addKeyCoverPositionPx,right:N.addKeyCoverPositionPx,bottom:N.addKeyCoverPositionPx,backgroundColor:N.addKeyCoverBackground},"key-modal":{width:N.addKeyModalWidth,backgroundColor:O.addKeyModal.background,marginLeft:N.addKeyModalMargin,marginRight:N.addKeyModalMargin,padding:N.addKeyModalPadding,borderRadius:N.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:O.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:O.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:O.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:O.addKeyModal.labelColor,fontSize:N.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:O.editVariable.addIcon,fontSize:N.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:O.ellipsisColor,fontSize:N.ellipsisFontSize,lineHeight:N.ellipsisLineHeight,cursor:N.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:O.validationFailure.fontColor,backgroundColor:O.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:O.validationFailure.iconColor,fontSize:N.iconFontSize,transform:"rotate(45deg)"}}};function $(y,O,p){return y||console.error("theme has not been set"),(function(v){var m=B;return v!==!1&&v!=="none"||(m=J),Object(de.createStyling)(oe,{defaultBase16:m})(v)})(y)(O,p)}var ce=(function(y){g(p,y);var O=P(p);function p(){return l(this,p),O.apply(this,arguments)}return h(p,[{key:"render",value:function(){var v=this.props,m=(v.rjvId,v.type_name),x=v.displayDataTypes,W=v.theme;return x?f.a.createElement("span",Object.assign({className:"data-type-label"},$(W,"data-type-label")),m):null}}]),p})(f.a.PureComponent),_e=(function(y){g(p,y);var O=P(p);function p(){return l(this,p),O.apply(this,arguments)}return h(p,[{key:"render",value:function(){var v=this.props;return f.a.createElement("div",$(v.theme,"boolean"),f.a.createElement(ce,Object.assign({type_name:"bool"},v)),v.value?"true":"false")}}]),p})(f.a.PureComponent),he=(function(y){g(p,y);var O=P(p);function p(){return l(this,p),O.apply(this,arguments)}return h(p,[{key:"render",value:function(){var v=this.props;return f.a.createElement("div",$(v.theme,"date"),f.a.createElement(ce,Object.assign({type_name:"date"},v)),f.a.createElement("span",Object.assign({className:"date-value"},$(v.theme,"date-value")),v.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),p})(f.a.PureComponent),A=(function(y){g(p,y);var O=P(p);function p(){return l(this,p),O.apply(this,arguments)}return h(p,[{key:"render",value:function(){var v=this.props;return f.a.createElement("div",$(v.theme,"float"),f.a.createElement(ce,Object.assign({type_name:"float"},v)),this.props.value)}}]),p})(f.a.PureComponent);function q(y,O){(O==null||O>y.length)&&(O=y.length);for(var p=0,v=new Array(O);p<O;p++)v[p]=y[p];return v}function X(y,O){if(y){if(typeof y=="string")return q(y,O);var p=Object.prototype.toString.call(y).slice(8,-1);return p==="Object"&&y.constructor&&(p=y.constructor.name),p==="Map"||p==="Set"?Array.from(y):p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p)?q(y,O):void 0}}function re(y,O){var p;if(typeof Symbol>"u"||y[Symbol.iterator]==null){if(Array.isArray(y)||(p=X(y))||O){p&&(y=p);var v=0,m=function(){};return{s:m,n:function(){return v>=y.length?{done:!0}:{done:!1,value:y[v++]}},e:function(j){throw j},f:m}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
505
|
-
|
|
506
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}var le=o(46),V=new(o(47)).Dispatcher,Q=new((function(y){g(p,y);var O=P(p);function p(){var v;l(this,p);for(var m=arguments.length,x=new Array(m),W=0;W<m;W++)x[W]=arguments[W];return(v=O.call.apply(O,[this].concat(x))).objects={},v.set=function(R,j,U,fe){v.objects[R]===void 0&&(v.objects[R]={}),v.objects[R][j]===void 0&&(v.objects[R][j]={}),v.objects[R][j][U]=fe},v.get=function(R,j,U,fe){return v.objects[R]===void 0||v.objects[R][j]===void 0||v.objects[R][j][U]==null?fe:v.objects[R][j][U]},v.handleAction=function(R){var j=R.rjvId,U=R.data;switch(R.name){case"RESET":v.emit("reset-"+j);break;case"VARIABLE_UPDATED":R.data.updated_src=v.updateSrc(j,U),v.set(j,"action","variable-update",c(c({},U),{},{type:"variable-edited"})),v.emit("variable-update-"+j);break;case"VARIABLE_REMOVED":R.data.updated_src=v.updateSrc(j,U),v.set(j,"action","variable-update",c(c({},U),{},{type:"variable-removed"})),v.emit("variable-update-"+j);break;case"VARIABLE_ADDED":R.data.updated_src=v.updateSrc(j,U),v.set(j,"action","variable-update",c(c({},U),{},{type:"variable-added"})),v.emit("variable-update-"+j);break;case"ADD_VARIABLE_KEY_REQUEST":v.set(j,"action","new-key-request",U),v.emit("add-key-request-"+j)}},v.updateSrc=function(R,j){var U=j.name,fe=j.namespace,je=j.new_value,xe=(j.existing_value,j.variable_removed);fe.shift();var Ie,Ee=v.get(R,"global","src"),$e=v.deepCopy(Ee,te(fe)),We=$e,ve=re(fe);try{for(ve.s();!(Ie=ve.n()).done;)We=We[Ie.value]}catch(Ke){ve.e(Ke)}finally{ve.f()}return xe?M(We)=="array"?We.splice(U,1):delete We[U]:U!==null?We[U]=je:$e=je,v.set(R,"global","src",$e),$e},v.deepCopy=function(R,j){var U,fe=M(R),je=j.shift();return fe=="array"?U=te(R):fe=="object"&&(U=c({},R)),je!==void 0&&(U[je]=v.deepCopy(R[je],j)),U},v}return p})(le.EventEmitter));V.register(Q.handleAction.bind(Q));var ee=Q,ie=(function(y){g(p,y);var O=P(p);function p(v){var m;return l(this,p),(m=O.call(this,v)).toggleCollapsed=function(){m.setState({collapsed:!m.state.collapsed},(function(){ee.set(m.props.rjvId,m.props.namespace,"collapsed",m.state.collapsed)}))},m.getFunctionDisplay=function(x){var W=L(m).props;return x?f.a.createElement("span",null,m.props.value.toString().slice(9,-1).replace(/\{[\s\S]+/,""),f.a.createElement("span",{className:"function-collapsed",style:{fontWeight:"bold"}},f.a.createElement("span",null,"{"),f.a.createElement("span",$(W.theme,"ellipsis"),"..."),f.a.createElement("span",null,"}"))):m.props.value.toString().slice(9,-1)},m.state={collapsed:ee.get(v.rjvId,v.namespace,"collapsed",!0)},m}return h(p,[{key:"render",value:function(){var v=this.props,m=this.state.collapsed;return f.a.createElement("div",$(v.theme,"function"),f.a.createElement(ce,Object.assign({type_name:"function"},v)),f.a.createElement("span",Object.assign({},$(v.theme,"function-value"),{className:"rjv-function-container",onClick:this.toggleCollapsed}),this.getFunctionDisplay(m)))}}]),p})(f.a.PureComponent),ue=(function(y){g(p,y);var O=P(p);function p(){return l(this,p),O.apply(this,arguments)}return h(p,[{key:"render",value:function(){return f.a.createElement("div",$(this.props.theme,"nan"),"NaN")}}]),p})(f.a.PureComponent),Ce=(function(y){g(p,y);var O=P(p);function p(){return l(this,p),O.apply(this,arguments)}return h(p,[{key:"render",value:function(){return f.a.createElement("div",$(this.props.theme,"null"),"NULL")}}]),p})(f.a.PureComponent),G=(function(y){g(p,y);var O=P(p);function p(){return l(this,p),O.apply(this,arguments)}return h(p,[{key:"render",value:function(){var v=this.props;return f.a.createElement("div",$(v.theme,"integer"),f.a.createElement(ce,Object.assign({type_name:"int"},v)),this.props.value)}}]),p})(f.a.PureComponent),Pe=(function(y){g(p,y);var O=P(p);function p(){return l(this,p),O.apply(this,arguments)}return h(p,[{key:"render",value:function(){var v=this.props;return f.a.createElement("div",$(v.theme,"regexp"),f.a.createElement(ce,Object.assign({type_name:"regexp"},v)),this.props.value.toString())}}]),p})(f.a.PureComponent),Xe=(function(y){g(p,y);var O=P(p);function p(v){var m;return l(this,p),(m=O.call(this,v)).toggleCollapsed=function(){m.setState({collapsed:!m.state.collapsed},(function(){ee.set(m.props.rjvId,m.props.namespace,"collapsed",m.state.collapsed)}))},m.state={collapsed:ee.get(v.rjvId,v.namespace,"collapsed",!0)},m}return h(p,[{key:"render",value:function(){this.state.collapsed;var v=this.props,m=v.collapseStringsAfterLength,x=v.theme,W=v.value,R={style:{cursor:"default"}};return M(m)==="integer"&&W.length>m&&(R.style.cursor="pointer",this.state.collapsed&&(W=f.a.createElement("span",null,W.substring(0,m),f.a.createElement("span",$(x,"ellipsis")," ...")))),f.a.createElement("div",$(x,"string"),f.a.createElement(ce,Object.assign({type_name:"string"},v)),f.a.createElement("span",Object.assign({className:"string-value"},R,{onClick:this.toggleCollapsed}),'"',W,'"'))}}]),p})(f.a.PureComponent),nt=(function(y){g(p,y);var O=P(p);function p(){return l(this,p),O.apply(this,arguments)}return h(p,[{key:"render",value:function(){return f.a.createElement("div",$(this.props.theme,"undefined"),"undefined")}}]),p})(f.a.PureComponent);function ut(){return(ut=Object.assign||function(y){for(var O=1;O<arguments.length;O++){var p=arguments[O];for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(y[v]=p[v])}return y}).apply(this,arguments)}var Ut=z.useLayoutEffect,wt=function(y){var O=Object(z.useRef)(y);return Ut((function(){O.current=y})),O},Et=function(y,O){typeof y!="function"?y.current=O:y(O)},Rt=function(y,O){var p=Object(z.useRef)();return Object(z.useCallback)((function(v){y.current=v,p.current&&Et(p.current,null),p.current=O,O&&Et(O,v)}),[O])},St={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},ct=function(y){Object.keys(St).forEach((function(O){y.style.setProperty(O,St[O],"important")}))},Ve=null,Tt=function(){},H=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width"],k=!!document.documentElement.currentStyle,T=function(y,O){var p=y.cacheMeasurements,v=y.maxRows,m=y.minRows,x=y.onChange,W=x===void 0?Tt:x,R=y.onHeightChange,j=R===void 0?Tt:R,U=(function(ve,Ke){if(ve==null)return{};var dt,Ft,ca={},zt=Object.keys(ve);for(Ft=0;Ft<zt.length;Ft++)dt=zt[Ft],Ke.indexOf(dt)>=0||(ca[dt]=ve[dt]);return ca})(y,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),fe,je=U.value!==void 0,xe=Object(z.useRef)(null),Ie=Rt(xe,O),Ee=Object(z.useRef)(0),$e=Object(z.useRef)(),We=function(){var ve=xe.current,Ke=p&&$e.current?$e.current:(function(zt){var la=window.getComputedStyle(zt);if(la===null)return null;var Mn,Qe=(Mn=la,H.reduce((function(hr,$n){return hr[$n]=Mn[$n],hr}),{})),In=Qe.boxSizing;return In===""?null:(k&&In==="border-box"&&(Qe.width=parseFloat(Qe.width)+parseFloat(Qe.borderRightWidth)+parseFloat(Qe.borderLeftWidth)+parseFloat(Qe.paddingRight)+parseFloat(Qe.paddingLeft)+"px"),{sizingStyle:Qe,paddingSize:parseFloat(Qe.paddingBottom)+parseFloat(Qe.paddingTop),borderSize:parseFloat(Qe.borderBottomWidth)+parseFloat(Qe.borderTopWidth)})})(ve);if(Ke){$e.current=Ke;var dt=(function(zt,la,Mn,Qe){Mn===void 0&&(Mn=1),Qe===void 0&&(Qe=1/0),Ve||((Ve=document.createElement("textarea")).setAttribute("tab-index","-1"),Ve.setAttribute("aria-hidden","true"),ct(Ve)),Ve.parentNode===null&&document.body.appendChild(Ve);var In=zt.paddingSize,hr=zt.borderSize,$n=zt.sizingStyle,ll=$n.boxSizing;Object.keys($n).forEach((function(di){var Ln=di;Ve.style[Ln]=$n[Ln]})),ct(Ve),Ve.value=la;var ua=(function(di,Ln){var ul=di.scrollHeight;return Ln.sizingStyle.boxSizing==="border-box"?ul+Ln.borderSize:ul-Ln.paddingSize})(Ve,zt);Ve.value="x";var li=Ve.scrollHeight-In,ui=li*Mn;ll==="border-box"&&(ui=ui+In+hr),ua=Math.max(ui,ua);var fi=li*Qe;return ll==="border-box"&&(fi=fi+In+hr),[ua=Math.min(fi,ua),li]})(Ke,ve.value||ve.placeholder||"x",m,v),Ft=dt[0],ca=dt[1];Ee.current!==Ft&&(Ee.current=Ft,ve.style.setProperty("height",Ft+"px","important"),j(Ft,{rowHeight:ca}))}};return Object(z.useLayoutEffect)(We),fe=wt(We),Object(z.useLayoutEffect)((function(){var ve=function(Ke){fe.current(Ke)};return window.addEventListener("resize",ve),function(){window.removeEventListener("resize",ve)}}),[]),Object(z.createElement)("textarea",ut({},U,{onChange:function(ve){je||We(),W(ve)},ref:Ie}))},Y=Object(z.forwardRef)(T);function Z(y){y=y.trim();try{if((y=JSON.stringify(JSON.parse(y)))[0]==="[")return se("array",JSON.parse(y));if(y[0]==="{")return se("object",JSON.parse(y));if(y.match(/\-?\d+\.\d+/)&&y.match(/\-?\d+\.\d+/)[0]===y)return se("float",parseFloat(y));if(y.match(/\-?\d+e-\d+/)&&y.match(/\-?\d+e-\d+/)[0]===y)return se("float",Number(y));if(y.match(/\-?\d+/)&&y.match(/\-?\d+/)[0]===y)return se("integer",parseInt(y));if(y.match(/\-?\d+e\+\d+/)&&y.match(/\-?\d+e\+\d+/)[0]===y)return se("integer",Number(y))}catch{}switch(y=y.toLowerCase()){case"undefined":return se("undefined",void 0);case"nan":return se("nan",NaN);case"null":return se("null",null);case"true":return se("boolean",!0);case"false":return se("boolean",!1);default:if(y=Date.parse(y))return se("date",new Date(y))}return se(!1,null)}function se(y,O){return{type:y,value:O}}var we=(function(y){g(p,y);var O=P(p);function p(){return l(this,p),O.apply(this,arguments)}return h(p,[{key:"render",value:function(){var v=this.props,m=v.style,x=C(v,["style"]);return f.a.createElement("span",x,f.a.createElement("svg",Object.assign({},me(m),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),f.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"})))}}]),p})(f.a.PureComponent),be=(function(y){g(p,y);var O=P(p);function p(){return l(this,p),O.apply(this,arguments)}return h(p,[{key:"render",value:function(){var v=this.props,m=v.style,x=C(v,["style"]);return f.a.createElement("span",x,f.a.createElement("svg",Object.assign({},me(m),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),f.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"})))}}]),p})(f.a.PureComponent),Me=(function(y){g(p,y);var O=P(p);function p(){return l(this,p),O.apply(this,arguments)}return h(p,[{key:"render",value:function(){var v=this.props,m=v.style,x=C(v,["style"]),W=me(m).style;return f.a.createElement("span",x,f.a.createElement("svg",{fill:W.color,width:W.height,height:W.width,style:W,viewBox:"0 0 1792 1792"},f.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),p})(f.a.PureComponent),Re=(function(y){g(p,y);var O=P(p);function p(){return l(this,p),O.apply(this,arguments)}return h(p,[{key:"render",value:function(){var v=this.props,m=v.style,x=C(v,["style"]),W=me(m).style;return f.a.createElement("span",x,f.a.createElement("svg",{fill:W.color,width:W.height,height:W.width,style:W,viewBox:"0 0 1792 1792"},f.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),p})(f.a.PureComponent),ae=(function(y){g(p,y);var O=P(p);function p(){return l(this,p),O.apply(this,arguments)}return h(p,[{key:"render",value:function(){var v=this.props,m=v.style,x=C(v,["style"]);return f.a.createElement("span",x,f.a.createElement("svg",{style:c(c({},me(m).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},f.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),p})(f.a.PureComponent),Se=(function(y){g(p,y);var O=P(p);function p(){return l(this,p),O.apply(this,arguments)}return h(p,[{key:"render",value:function(){var v=this.props,m=v.style,x=C(v,["style"]);return f.a.createElement("span",x,f.a.createElement("svg",{style:c(c({},me(m).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},f.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),p})(f.a.PureComponent),ge=(function(y){g(p,y);var O=P(p);function p(){return l(this,p),O.apply(this,arguments)}return h(p,[{key:"render",value:function(){var v=this.props,m=v.style,x=C(v,["style"]);return f.a.createElement("span",x,f.a.createElement("svg",Object.assign({},me(m),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),f.a.createElement("g",null,f.a.createElement("path",{d:"m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z"}))))}}]),p})(f.a.PureComponent),Ye=(function(y){g(p,y);var O=P(p);function p(){return l(this,p),O.apply(this,arguments)}return h(p,[{key:"render",value:function(){var v=this.props,m=v.style,x=C(v,["style"]);return f.a.createElement("span",x,f.a.createElement("svg",Object.assign({},me(m),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),f.a.createElement("g",null,f.a.createElement("path",{d:"m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),p})(f.a.PureComponent),Fe=(function(y){g(p,y);var O=P(p);function p(){return l(this,p),O.apply(this,arguments)}return h(p,[{key:"render",value:function(){var v=this.props,m=v.style,x=C(v,["style"]);return f.a.createElement("span",x,f.a.createElement("svg",Object.assign({},me(m),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),f.a.createElement("g",null,f.a.createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),p})(f.a.PureComponent),rt=(function(y){g(p,y);var O=P(p);function p(){return l(this,p),O.apply(this,arguments)}return h(p,[{key:"render",value:function(){var v=this.props,m=v.style,x=C(v,["style"]);return f.a.createElement("span",x,f.a.createElement("svg",Object.assign({},me(m),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),f.a.createElement("g",null,f.a.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),p})(f.a.PureComponent),at=(function(y){g(p,y);var O=P(p);function p(){return l(this,p),O.apply(this,arguments)}return h(p,[{key:"render",value:function(){var v=this.props,m=v.style,x=C(v,["style"]);return f.a.createElement("span",x,f.a.createElement("svg",Object.assign({},me(m),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),f.a.createElement("g",null,f.a.createElement("path",{d:"m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z"}))))}}]),p})(f.a.PureComponent),ze=(function(y){g(p,y);var O=P(p);function p(){return l(this,p),O.apply(this,arguments)}return h(p,[{key:"render",value:function(){var v=this.props,m=v.style,x=C(v,["style"]);return f.a.createElement("span",x,f.a.createElement("svg",Object.assign({},me(m),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),f.a.createElement("g",null,f.a.createElement("path",{d:"m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),p})(f.a.PureComponent);function me(y){return y||(y={}),{style:c(c({verticalAlign:"middle"},y),{},{color:y.color?y.color:"#000000",height:"1em",width:"1em"})}}var Je=(function(y){g(p,y);var O=P(p);function p(v){var m;return l(this,p),(m=O.call(this,v)).copiedTimer=null,m.handleCopy=function(){var x=document.createElement("textarea"),W=m.props,R=W.clickCallback,j=W.src,U=W.namespace;x.innerHTML=JSON.stringify(m.clipboardValue(j),null," "),document.body.appendChild(x),x.select(),document.execCommand("copy"),document.body.removeChild(x),m.copiedTimer=setTimeout((function(){m.setState({copied:!1})}),5500),m.setState({copied:!0},(function(){typeof R=="function"&&R({src:j,namespace:U,name:U[U.length-1]})}))},m.getClippyIcon=function(){var x=m.props.theme;return m.state.copied?f.a.createElement("span",null,f.a.createElement(ge,Object.assign({className:"copy-icon"},$(x,"copy-icon"))),f.a.createElement("span",$(x,"copy-icon-copied"),"✔")):f.a.createElement(ge,Object.assign({className:"copy-icon"},$(x,"copy-icon")))},m.clipboardValue=function(x){switch(M(x)){case"function":case"regexp":return x.toString();default:return x}},m.state={copied:!1},m}return h(p,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var v=this.props,m=(v.src,v.theme),x=v.hidden,W=v.rowHovered,R=$(m,"copy-to-clipboard").style,j="inline";return x&&(j="none"),f.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:W?"inline-block":"none"}},f.a.createElement("span",{style:c(c({},R),{},{display:j}),onClick:this.handleCopy},this.getClippyIcon()))}}]),p})(f.a.PureComponent),ot=(function(y){g(p,y);var O=P(p);function p(v){var m;return l(this,p),(m=O.call(this,v)).getEditIcon=function(){var x=m.props,W=x.variable,R=x.theme;return f.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:m.state.hovered?"inline-block":"none"}},f.a.createElement(at,Object.assign({className:"click-to-edit-icon"},$(R,"editVarIcon"),{onClick:function(){m.prepopInput(W)}})))},m.prepopInput=function(x){if(m.props.onEdit!==!1){var W=(function(j){var U;switch(M(j)){case"undefined":U="undefined";break;case"nan":U="NaN";break;case"string":U=j;break;case"date":case"function":case"regexp":U=j.toString();break;default:try{U=JSON.stringify(j,null," ")}catch{U=""}}return U})(x.value),R=Z(W);m.setState({editMode:!0,editValue:W,parsedInput:{type:R.type,value:R.value}})}},m.getRemoveIcon=function(){var x=m.props,W=x.variable,R=x.namespace,j=x.theme,U=x.rjvId;return f.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:m.state.hovered?"inline-block":"none"}},f.a.createElement(Ye,Object.assign({className:"click-to-remove-icon"},$(j,"removeVarIcon"),{onClick:function(){V.dispatch({name:"VARIABLE_REMOVED",rjvId:U,data:{name:W.name,namespace:R,existing_value:W.value,variable_removed:!0}})}})))},m.getValue=function(x,W){var R=!W&&x.type,j=L(m).props;switch(R){case!1:return m.getEditInput();case"string":return f.a.createElement(Xe,Object.assign({value:x.value},j));case"integer":return f.a.createElement(G,Object.assign({value:x.value},j));case"float":return f.a.createElement(A,Object.assign({value:x.value},j));case"boolean":return f.a.createElement(_e,Object.assign({value:x.value},j));case"function":return f.a.createElement(ie,Object.assign({value:x.value},j));case"null":return f.a.createElement(Ce,j);case"nan":return f.a.createElement(ue,j);case"undefined":return f.a.createElement(nt,j);case"date":return f.a.createElement(he,Object.assign({value:x.value},j));case"regexp":return f.a.createElement(Pe,Object.assign({value:x.value},j));default:return f.a.createElement("div",{className:"object-value"},JSON.stringify(x.value))}},m.getEditInput=function(){var x=m.props.theme,W=m.state.editValue;return f.a.createElement("div",null,f.a.createElement(Y,Object.assign({type:"text",inputRef:function(R){return R&&R.focus()},value:W,className:"variable-editor",onChange:function(R){var j=R.target.value,U=Z(j);m.setState({editValue:j,parsedInput:{type:U.type,value:U.value}})},onKeyDown:function(R){switch(R.key){case"Escape":m.setState({editMode:!1,editValue:""});break;case"Enter":(R.ctrlKey||R.metaKey)&&m.submitEdit(!0)}R.stopPropagation()},placeholder:"update this value",minRows:2},$(x,"edit-input"))),f.a.createElement("div",$(x,"edit-icon-container"),f.a.createElement(Ye,Object.assign({className:"edit-cancel"},$(x,"cancel-icon"),{onClick:function(){m.setState({editMode:!1,editValue:""})}})),f.a.createElement(ze,Object.assign({className:"edit-check string-value"},$(x,"check-icon"),{onClick:function(){m.submitEdit()}})),f.a.createElement("div",null,m.showDetected())))},m.submitEdit=function(x){var W=m.props,R=W.variable,j=W.namespace,U=W.rjvId,fe=m.state,je=fe.editValue,xe=fe.parsedInput,Ie=je;x&&xe.type&&(Ie=xe.value),m.setState({editMode:!1}),V.dispatch({name:"VARIABLE_UPDATED",rjvId:U,data:{name:R.name,namespace:j,existing_value:R.value,new_value:Ie,variable_removed:!1}})},m.showDetected=function(){var x=m.props,W=x.theme,R=(x.variable,x.namespace,x.rjvId,m.state.parsedInput),j=(R.type,R.value,m.getDetectedInput());if(j)return f.a.createElement("div",null,f.a.createElement("div",$(W,"detected-row"),j,f.a.createElement(ze,{className:"edit-check detected",style:c({verticalAlign:"top",paddingLeft:"3px"},$(W,"check-icon").style),onClick:function(){m.submitEdit(!0)}})))},m.getDetectedInput=function(){var x=m.state.parsedInput,W=x.type,R=x.value,j=L(m).props,U=j.theme;if(W!==!1)switch(W.toLowerCase()){case"object":return f.a.createElement("span",null,f.a.createElement("span",{style:c(c({},$(U,"brace").style),{},{cursor:"default"})},"{"),f.a.createElement("span",{style:c(c({},$(U,"ellipsis").style),{},{cursor:"default"})},"..."),f.a.createElement("span",{style:c(c({},$(U,"brace").style),{},{cursor:"default"})},"}"));case"array":return f.a.createElement("span",null,f.a.createElement("span",{style:c(c({},$(U,"brace").style),{},{cursor:"default"})},"["),f.a.createElement("span",{style:c(c({},$(U,"ellipsis").style),{},{cursor:"default"})},"..."),f.a.createElement("span",{style:c(c({},$(U,"brace").style),{},{cursor:"default"})},"]"));case"string":return f.a.createElement(Xe,Object.assign({value:R},j));case"integer":return f.a.createElement(G,Object.assign({value:R},j));case"float":return f.a.createElement(A,Object.assign({value:R},j));case"boolean":return f.a.createElement(_e,Object.assign({value:R},j));case"function":return f.a.createElement(ie,Object.assign({value:R},j));case"null":return f.a.createElement(Ce,j);case"nan":return f.a.createElement(ue,j);case"undefined":return f.a.createElement(nt,j);case"date":return f.a.createElement(he,Object.assign({value:new Date(R)},j))}},m.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},m}return h(p,[{key:"render",value:function(){var v=this,m=this.props,x=m.variable,W=m.singleIndent,R=m.type,j=m.theme,U=m.namespace,fe=m.indentWidth,je=m.enableClipboard,xe=m.onEdit,Ie=m.onDelete,Ee=m.onSelect,$e=m.displayArrayKey,We=m.quotesOnKeys,ve=this.state.editMode;return f.a.createElement("div",Object.assign({},$(j,"objectKeyVal",{paddingLeft:fe*W}),{onMouseEnter:function(){return v.setState(c(c({},v.state),{},{hovered:!0}))},onMouseLeave:function(){return v.setState(c(c({},v.state),{},{hovered:!1}))},className:"variable-row",key:x.name}),R=="array"?$e?f.a.createElement("span",Object.assign({},$(j,"array-key"),{key:x.name+"_"+U}),x.name,f.a.createElement("div",$(j,"colon"),":")):null:f.a.createElement("span",null,f.a.createElement("span",Object.assign({},$(j,"object-name"),{className:"object-key",key:x.name+"_"+U}),!!We&&f.a.createElement("span",{style:{verticalAlign:"top"}},'"'),f.a.createElement("span",{style:{display:"inline-block"}},x.name),!!We&&f.a.createElement("span",{style:{verticalAlign:"top"}},'"')),f.a.createElement("span",$(j,"colon"),":")),f.a.createElement("div",Object.assign({className:"variable-value",onClick:Ee===!1&&xe===!1?null:function(Ke){var dt=te(U);(Ke.ctrlKey||Ke.metaKey)&&xe!==!1?v.prepopInput(x):Ee!==!1&&(dt.shift(),Ee(c(c({},x),{},{namespace:dt})))}},$(j,"variableValue",{cursor:Ee===!1?"default":"pointer"})),this.getValue(x,ve)),je?f.a.createElement(Je,{rowHovered:this.state.hovered,hidden:ve,src:x.value,clickCallback:je,theme:j,namespace:[].concat(te(U),[x.name])}):null,xe!==!1&&ve==0?this.getEditIcon():null,Ie!==!1&&ve==0?this.getRemoveIcon():null)}}]),p})(f.a.PureComponent),At=(function(y){g(p,y);var O=P(p);function p(){var v;l(this,p);for(var m=arguments.length,x=new Array(m),W=0;W<m;W++)x[W]=arguments[W];return(v=O.call.apply(O,[this].concat(x))).getObjectSize=function(){var R=v.props,j=R.size,U=R.theme;if(R.displayObjectSize)return f.a.createElement("span",Object.assign({className:"object-size"},$(U,"object-size")),j," item",j===1?"":"s")},v.getAddAttribute=function(R){var j=v.props,U=j.theme,fe=j.namespace,je=j.name,xe=j.src,Ie=j.rjvId,Ee=j.depth;return f.a.createElement("span",{className:"click-to-add",style:{verticalAlign:"top",display:R?"inline-block":"none"}},f.a.createElement(Fe,Object.assign({className:"click-to-add-icon"},$(U,"addVarIcon"),{onClick:function(){var $e={name:Ee>0?je:null,namespace:fe.splice(0,fe.length-1),existing_value:xe,variable_removed:!1,key_name:null};M(xe)==="object"?V.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:Ie,data:$e}):V.dispatch({name:"VARIABLE_ADDED",rjvId:Ie,data:c(c({},$e),{},{new_value:[].concat(te(xe),[null])})})}})))},v.getRemoveObject=function(R){var j=v.props,U=j.theme,fe=(j.hover,j.namespace),je=j.name,xe=j.src,Ie=j.rjvId;if(fe.length!==1)return f.a.createElement("span",{className:"click-to-remove",style:{display:R?"inline-block":"none"}},f.a.createElement(Ye,Object.assign({className:"click-to-remove-icon"},$(U,"removeVarIcon"),{onClick:function(){V.dispatch({name:"VARIABLE_REMOVED",rjvId:Ie,data:{name:je,namespace:fe.splice(0,fe.length-1),existing_value:xe,variable_removed:!0}})}})))},v.render=function(){var R=v.props,j=R.theme,U=R.onDelete,fe=R.onAdd,je=R.enableClipboard,xe=R.src,Ie=R.namespace,Ee=R.rowHovered;return f.a.createElement("div",Object.assign({},$(j,"object-meta-data"),{className:"object-meta-data",onClick:function($e){$e.stopPropagation()}}),v.getObjectSize(),je?f.a.createElement(Je,{rowHovered:Ee,clickCallback:je,src:xe,theme:j,namespace:Ie}):null,fe!==!1?v.getAddAttribute(Ee):null,U!==!1?v.getRemoveObject(Ee):null)},v}return p})(f.a.PureComponent);function jt(y){var O=y.parent_type,p=y.namespace,v=y.quotesOnKeys,m=y.theme,x=y.jsvRoot,W=y.name,R=y.displayArrayKey,j=y.name?y.name:"";return!x||W!==!1&&W!==null?O=="array"?R?f.a.createElement("span",Object.assign({},$(m,"array-key"),{key:p}),f.a.createElement("span",{className:"array-key"},j),f.a.createElement("span",$(m,"colon"),":")):f.a.createElement("span",null):f.a.createElement("span",Object.assign({},$(m,"object-name"),{key:p}),f.a.createElement("span",{className:"object-key"},v&&f.a.createElement("span",{style:{verticalAlign:"top"}},'"'),f.a.createElement("span",null,j),v&&f.a.createElement("span",{style:{verticalAlign:"top"}},'"')),f.a.createElement("span",$(m,"colon"),":")):f.a.createElement("span",null)}function ft(y){var O=y.theme;switch(y.iconStyle){case"triangle":return f.a.createElement(Se,Object.assign({},$(O,"expanded-icon"),{className:"expanded-icon"}));case"square":return f.a.createElement(Me,Object.assign({},$(O,"expanded-icon"),{className:"expanded-icon"}));default:return f.a.createElement(we,Object.assign({},$(O,"expanded-icon"),{className:"expanded-icon"}))}}function Pt(y){var O=y.theme;switch(y.iconStyle){case"triangle":return f.a.createElement(ae,Object.assign({},$(O,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return f.a.createElement(Re,Object.assign({},$(O,"collapsed-icon"),{className:"collapsed-icon"}));default:return f.a.createElement(be,Object.assign({},$(O,"collapsed-icon"),{className:"collapsed-icon"}))}}var An=(function(y){g(p,y);var O=P(p);function p(v){var m;return l(this,p),(m=O.call(this,v)).toggleCollapsed=function(x){var W=[];for(var R in m.state.expanded)W.push(m.state.expanded[R]);W[x]=!W[x],m.setState({expanded:W})},m.state={expanded:[]},m}return h(p,[{key:"getExpandedIcon",value:function(v){var m=this.props,x=m.theme,W=m.iconStyle;return this.state.expanded[v]?f.a.createElement(ft,{theme:x,iconStyle:W}):f.a.createElement(Pt,{theme:x,iconStyle:W})}},{key:"render",value:function(){var v=this,m=this.props,x=m.src,W=m.groupArraysAfterLength,R=(m.depth,m.name),j=m.theme,U=m.jsvRoot,fe=m.namespace,je=(m.parent_type,C(m,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),xe=0,Ie=5*this.props.indentWidth;U||(xe=5*this.props.indentWidth);var Ee=W,$e=Math.ceil(x.length/Ee);return f.a.createElement("div",Object.assign({className:"object-key-val"},$(j,U?"jsv-root":"objectKeyVal",{paddingLeft:xe})),f.a.createElement(jt,this.props),f.a.createElement("span",null,f.a.createElement(At,Object.assign({size:x.length},this.props))),te(Array($e)).map((function(We,ve){return f.a.createElement("div",Object.assign({key:ve,className:"object-key-val array-group"},$(j,"objectKeyVal",{marginLeft:6,paddingLeft:Ie})),f.a.createElement("span",$(j,"brace-row"),f.a.createElement("div",Object.assign({className:"icon-container"},$(j,"icon-container"),{onClick:function(Ke){v.toggleCollapsed(ve)}}),v.getExpandedIcon(ve)),v.state.expanded[ve]?f.a.createElement(ia,Object.assign({key:R+ve,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:Ee,index_offset:ve*Ee,src:x.slice(ve*Ee,ve*Ee+Ee),namespace:fe,type:"array",parent_type:"array_group",theme:j},je)):f.a.createElement("span",Object.assign({},$(j,"brace"),{onClick:function(Ke){v.toggleCollapsed(ve)},className:"array-group-brace"}),"[",f.a.createElement("div",Object.assign({},$(j,"array-group-meta-data"),{className:"array-group-meta-data"}),f.a.createElement("span",Object.assign({className:"object-size"},$(j,"object-size")),ve*Ee," - ",ve*Ee+Ee>x.length?x.length:ve*Ee+Ee)),"]")))})))}}]),p})(f.a.PureComponent),pr=(function(y){g(p,y);var O=P(p);function p(v){var m;l(this,p),(m=O.call(this,v)).toggleCollapsed=function(){m.setState({expanded:!m.state.expanded},(function(){ee.set(m.props.rjvId,m.props.namespace,"expanded",m.state.expanded)}))},m.getObjectContent=function(W,R,j){return f.a.createElement("div",{className:"pushed-content object-container"},f.a.createElement("div",Object.assign({className:"object-content"},$(m.props.theme,"pushed-content")),m.renderObjectContents(R,j)))},m.getEllipsis=function(){return m.state.size===0?null:f.a.createElement("div",Object.assign({},$(m.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:m.toggleCollapsed}),"...")},m.getObjectMetaData=function(W){var R=m.props,j=(R.rjvId,R.theme,m.state),U=j.size,fe=j.hovered;return f.a.createElement(At,Object.assign({rowHovered:fe,size:U},m.props))},m.renderObjectContents=function(W,R){var j,U=m.props,fe=U.depth,je=U.parent_type,xe=U.index_offset,Ie=U.groupArraysAfterLength,Ee=U.namespace,$e=m.state.object_type,We=[],ve=Object.keys(W||{});return m.props.sortKeys&&$e!=="array"&&(ve=ve.sort()),ve.forEach((function(Ke){if(j=new qm(Ke,W[Ke]),je==="array_group"&&xe&&(j.name=parseInt(j.name)+xe),W.hasOwnProperty(Ke))if(j.type==="object")We.push(f.a.createElement(ia,Object.assign({key:j.name,depth:fe+1,name:j.name,src:j.value,namespace:Ee.concat(j.name),parent_type:$e},R)));else if(j.type==="array"){var dt=ia;Ie&&j.value.length>Ie&&(dt=An),We.push(f.a.createElement(dt,Object.assign({key:j.name,depth:fe+1,name:j.name,src:j.value,namespace:Ee.concat(j.name),type:"array",parent_type:$e},R)))}else We.push(f.a.createElement(ot,Object.assign({key:j.name+"_"+Ee,variable:j,singleIndent:5,namespace:Ee,type:m.props.type},R)))})),We};var x=p.getState(v);return m.state=c(c({},x),{},{prevProps:{}}),m}return h(p,[{key:"getBraceStart",value:function(v,m){var x=this,W=this.props,R=W.src,j=W.theme,U=W.iconStyle;if(W.parent_type==="array_group")return f.a.createElement("span",null,f.a.createElement("span",$(j,"brace"),v==="array"?"[":"{"),m?this.getObjectMetaData(R):null);var fe=m?ft:Pt;return f.a.createElement("span",null,f.a.createElement("span",Object.assign({onClick:function(je){x.toggleCollapsed()}},$(j,"brace-row")),f.a.createElement("div",Object.assign({className:"icon-container"},$(j,"icon-container")),f.a.createElement(fe,{theme:j,iconStyle:U})),f.a.createElement(jt,this.props),f.a.createElement("span",$(j,"brace"),v==="array"?"[":"{")),m?this.getObjectMetaData(R):null)}},{key:"render",value:function(){var v=this,m=this.props,x=m.depth,W=m.src,R=(m.namespace,m.name,m.type,m.parent_type),j=m.theme,U=m.jsvRoot,fe=m.iconStyle,je=C(m,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),xe=this.state,Ie=xe.object_type,Ee=xe.expanded,$e={};return U||R==="array_group"?R==="array_group"&&($e.borderLeft=0,$e.display="inline"):$e.paddingLeft=5*this.props.indentWidth,f.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return v.setState(c(c({},v.state),{},{hovered:!0}))},onMouseLeave:function(){return v.setState(c(c({},v.state),{},{hovered:!1}))}},$(j,U?"jsv-root":"objectKeyVal",$e)),this.getBraceStart(Ie,Ee),Ee?this.getObjectContent(x,W,c({theme:j,iconStyle:fe},je)):this.getEllipsis(),f.a.createElement("span",{className:"brace-row"},f.a.createElement("span",{style:c(c({},$(j,"brace").style),{},{paddingLeft:Ee?"3px":"0px"})},Ie==="array"?"]":"}"),Ee?null:this.getObjectMetaData(W)))}}],[{key:"getDerivedStateFromProps",value:function(v,m){var x=m.prevProps;return v.src!==x.src||v.collapsed!==x.collapsed||v.name!==x.name||v.namespace!==x.namespace||v.rjvId!==x.rjvId?c(c({},p.getState(v)),{},{prevProps:v}):null}}]),p})(f.a.PureComponent);pr.getState=function(y){var O=Object.keys(y.src).length,p=(y.collapsed===!1||y.collapsed!==!0&&y.collapsed>y.depth)&&(!y.shouldCollapse||y.shouldCollapse({name:y.name,src:y.src,type:M(y.src),namespace:y.namespace})===!1)&&O!==0;return{expanded:ee.get(y.rjvId,y.namespace,"expanded",p),object_type:y.type==="array"?"array":"object",parent_type:y.type==="array"?"array":"object",size:O,hovered:!1}};var qm=function y(O,p){l(this,y),this.name=O,this.value=p,this.type=M(p)};K(pr);var ia=pr,Vm=(function(y){g(p,y);var O=P(p);function p(){var v;l(this,p);for(var m=arguments.length,x=new Array(m),W=0;W<m;W++)x[W]=arguments[W];return(v=O.call.apply(O,[this].concat(x))).render=function(){var R=L(v).props,j=[R.name],U=ia;return Array.isArray(R.src)&&R.groupArraysAfterLength&&R.src.length>R.groupArraysAfterLength&&(U=An),f.a.createElement("div",{className:"pretty-json-container object-container"},f.a.createElement("div",{className:"object-content"},f.a.createElement(U,Object.assign({namespace:j,depth:0,jsvRoot:!0},R))))},v}return p})(f.a.PureComponent),Um=(function(y){g(p,y);var O=P(p);function p(v){var m;return l(this,p),(m=O.call(this,v)).closeModal=function(){V.dispatch({rjvId:m.props.rjvId,name:"RESET"})},m.submit=function(){m.props.submit(m.state.input)},m.state={input:v.input?v.input:""},m}return h(p,[{key:"render",value:function(){var v=this,m=this.props,x=m.theme,W=m.rjvId,R=m.isValid,j=this.state.input,U=R(j);return f.a.createElement("div",Object.assign({className:"key-modal-request"},$(x,"key-modal-request"),{onClick:this.closeModal}),f.a.createElement("div",Object.assign({},$(x,"key-modal"),{onClick:function(fe){fe.stopPropagation()}}),f.a.createElement("div",$(x,"key-modal-label"),"Key Name:"),f.a.createElement("div",{style:{position:"relative"}},f.a.createElement("input",Object.assign({},$(x,"key-modal-input"),{className:"key-modal-input",ref:function(fe){return fe&&fe.focus()},spellCheck:!1,value:j,placeholder:"...",onChange:function(fe){v.setState({input:fe.target.value})},onKeyPress:function(fe){U&&fe.key==="Enter"?v.submit():fe.key==="Escape"&&v.closeModal()}})),U?f.a.createElement(ze,Object.assign({},$(x,"key-modal-submit"),{className:"key-modal-submit",onClick:function(fe){return v.submit()}})):null),f.a.createElement("span",$(x,"key-modal-cancel"),f.a.createElement(rt,Object.assign({},$(x,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){V.dispatch({rjvId:W,name:"RESET"})}})))))}}]),p})(f.a.PureComponent),Xm=(function(y){g(p,y);var O=P(p);function p(){var v;l(this,p);for(var m=arguments.length,x=new Array(m),W=0;W<m;W++)x[W]=arguments[W];return(v=O.call.apply(O,[this].concat(x))).isValid=function(R){var j=v.props.rjvId,U=ee.get(j,"action","new-key-request");return R!=""&&Object.keys(U.existing_value).indexOf(R)===-1},v.submit=function(R){var j=v.props.rjvId,U=ee.get(j,"action","new-key-request");U.new_value=c({},U.existing_value),U.new_value[R]=v.props.defaultValue,V.dispatch({name:"VARIABLE_ADDED",rjvId:j,data:U})},v}return h(p,[{key:"render",value:function(){var v=this.props,m=v.active,x=v.theme,W=v.rjvId;return m?f.a.createElement(Um,{rjvId:W,theme:x,isValid:this.isValid,submit:this.submit}):null}}]),p})(f.a.PureComponent),Km=(function(y){g(p,y);var O=P(p);function p(){return l(this,p),O.apply(this,arguments)}return h(p,[{key:"render",value:function(){var v=this.props,m=v.message,x=v.active,W=v.theme,R=v.rjvId;return x?f.a.createElement("div",Object.assign({className:"validation-failure"},$(W,"validation-failure"),{onClick:function(){V.dispatch({rjvId:R,name:"RESET"})}}),f.a.createElement("span",$(W,"validation-failure-label"),m),f.a.createElement(rt,$(W,"validation-failure-clear"))):null}}]),p})(f.a.PureComponent),sa=(function(y){g(p,y);var O=P(p);function p(v){var m;return l(this,p),(m=O.call(this,v)).rjvId=Date.now().toString(),m.getListeners=function(){return{reset:m.resetState,"variable-update":m.updateSrc,"add-key-request":m.addKeyRequest}},m.updateSrc=function(){var x,W=ee.get(m.rjvId,"action","variable-update"),R=W.name,j=W.namespace,U=W.new_value,fe=W.existing_value,je=(W.variable_removed,W.updated_src),xe=W.type,Ie=m.props,Ee=Ie.onEdit,$e=Ie.onDelete,We=Ie.onAdd,ve={existing_src:m.state.src,new_value:U,updated_src:je,name:R,namespace:j,existing_value:fe};switch(xe){case"variable-added":x=We(ve);break;case"variable-edited":x=Ee(ve);break;case"variable-removed":x=$e(ve)}x!==!1?(ee.set(m.rjvId,"global","src",je),m.setState({src:je})):m.setState({validationFailure:!0})},m.addKeyRequest=function(){m.setState({addKeyRequest:!0})},m.resetState=function(){m.setState({validationFailure:!1,addKeyRequest:!1})},m.state={addKeyRequest:!1,editKeyRequest:!1,validationFailure:!1,src:p.defaultProps.src,name:p.defaultProps.name,theme:p.defaultProps.theme,validationMessage:p.defaultProps.validationMessage,prevSrc:p.defaultProps.src,prevName:p.defaultProps.name,prevTheme:p.defaultProps.theme},m}return h(p,[{key:"componentDidMount",value:function(){ee.set(this.rjvId,"global","src",this.state.src);var v=this.getListeners();for(var m in v)ee.on(m+"-"+this.rjvId,v[m]);this.setState({addKeyRequest:!1,editKeyRequest:!1})}},{key:"componentDidUpdate",value:function(v,m){m.addKeyRequest!==!1&&this.setState({addKeyRequest:!1}),m.editKeyRequest!==!1&&this.setState({editKeyRequest:!1}),v.src!==this.state.src&&ee.set(this.rjvId,"global","src",this.state.src)}},{key:"componentWillUnmount",value:function(){var v=this.getListeners();for(var m in v)ee.removeListener(m+"-"+this.rjvId,v[m])}},{key:"render",value:function(){var v=this.state,m=v.validationFailure,x=v.validationMessage,W=v.addKeyRequest,R=v.theme,j=v.src,U=v.name,fe=this.props,je=fe.style,xe=fe.defaultValue;return f.a.createElement("div",{className:"react-json-view",style:c(c({},$(R,"app-container").style),je)},f.a.createElement(Km,{message:x,active:m,theme:R,rjvId:this.rjvId}),f.a.createElement(Vm,Object.assign({},this.props,{src:j,name:U,theme:R,type:M(j),rjvId:this.rjvId})),f.a.createElement(Xm,{active:W,theme:R,rjvId:this.rjvId,defaultValue:xe}))}}],[{key:"getDerivedStateFromProps",value:function(v,m){if(v.src!==m.prevSrc||v.name!==m.prevName||v.theme!==m.prevTheme){var x={src:v.src,name:v.name,theme:v.theme,validationMessage:v.validationMessage,prevSrc:v.src,prevName:v.name,prevTheme:v.theme};return p.validateState(x)}return null}}]),p})(f.a.PureComponent);sa.defaultProps={src:{},name:"root",theme:"rjv-default",collapsed:!1,collapseStringsAfterLength:!1,shouldCollapse:!1,sortKeys:!1,quotesOnKeys:!0,groupArraysAfterLength:100,indentWidth:4,enableClipboard:!0,displayObjectSize:!0,displayDataTypes:!0,onEdit:!1,onDelete:!1,onAdd:!1,onSelect:!1,iconStyle:"triangle",style:{},validationMessage:"Validation Error",defaultValue:null,displayArrayKey:!0},sa.validateState=function(y){var O={};return M(y.theme)!=="object"||(function(p){var v=["base00","base01","base02","base03","base04","base05","base06","base07","base08","base09","base0A","base0B","base0C","base0D","base0E","base0F"];if(M(p)==="object"){for(var m=0;m<v.length;m++)if(!(v[m]in p))return!1;return!0}return!1})(y.theme)||(console.error("react-json-view error:","theme prop must be a theme name or valid base-16 theme object.",'defaulting to "rjv-default" theme'),O.theme="rjv-default"),M(y.src)!=="object"&&M(y.src)!=="array"&&(console.error("react-json-view error:","src property must be a valid json object"),O.name="ERROR",O.src={message:"src property must be a valid json object"}),c(c({},y),O)},K(sa),a.default=sa}])}))})(Rr)),Rr.exports}var mv=vv();const bv=fa(mv),yv=!1,gv=()=>ne.jsx(ne.Fragment,{children:ne.jsx(dl.Helmet,{children:yv})}),gt={CHAT_CONFIG:"chat_config",CHATBOT_REQUEST_HISTORY:"chatbot_request_history",CHAT_TOOL_CALL_HISTORY:"chat_tool_call_history",CHAT_PLUGIN_USAGE_HISTORY:"chat_plugin_usage_history"};function Bo({config:e}){const[t,r]=w.useState(),[n,a]=w.useState(),[o,i]=w.useState(),[s,c]=w.useState(),[l,u]=w.useState(gt.CHAT_CONFIG),[h,b]=w.useState(Math.floor(Math.random()*4294967295).toString(16)),[g,_]=w.useState(new Date().toString()),[E,L]=w.useState(`192.168.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`),[I,P]=w.useState(`smarter_user@smarter-${h}:~/smarter$`);w.useEffect(()=>{if(e){e?.debug_mode&&console.log("Console() component mounted"),a(e.history?.chat_tool_call_history||[]),i(e.history?.chat_plugin_usage_history||[]),c(e.history?.chatbot_request_history||[]);const F=Array.isArray(e)?e:[e];r(F),u(gt.CHAT_CONFIG)}return()=>{e?.debug_mode&&console.log("Console() component unmounted")}},[e]);const z=F=>{function K(C,M){let B=[{}];switch(M){case gt.CHAT_CONFIG:B=Array.isArray(e)?e:[e];break;case gt.CHAT_TOOL_CALL_HISTORY:B=n||B;break;case gt.CHAT_PLUGIN_USAGE_HISTORY:B=o||B;break;case gt.CHATBOT_REQUEST_HISTORY:B=s||B;break}u(M),r(B),requestAnimationFrame(()=>{M!=l?document.querySelectorAll(".nav-link").forEach(J=>J.classList.remove("active")):C.target.classList.add("active")})}return ne.jsx("li",{className:"nav-item my-1",children:ne.jsx("a",{id:F.id,className:`btn btn-sm btn-color-gray-600 bg-state-body btn-active-color-gray-800 fw-bolder fw-bold fs-6 fs-lg-base nav-link px-3 px-lg-4 mx-1 ${F.id===l?"active":""}`,onClick:C=>K(C,F.id),children:F.label})})},f=()=>ne.jsx("div",{id:"chatapp_console",className:"bg-gray-200 d-flex flex-stack flex-wrap mb-2 p-2 console-nav-items","data-kt-sticky":"true","data-kt-sticky-name":"sticky-profile-navs","data-kt-sticky-offset":"{default: false, lg: '200px'}","data-kt-sticky-width":"{target: '#kt_app_content_container'}","data-kt-sticky-left":"auto","data-kt-sticky-top":"70px","data-kt-sticky-animation":"false","data-kt-sticky-zindex":95,children:ne.jsxs("ul",{className:"nav flex-wrap border-transparent",children:[ne.jsx(z,{label:"Config",id:gt.CHAT_CONFIG}),ne.jsx(z,{label:"Api Calls",id:gt.CHATBOT_REQUEST_HISTORY}),ne.jsx(z,{label:"Tool Calls",id:gt.CHAT_TOOL_CALL_HISTORY}),ne.jsx(z,{label:"Plugin Usage",id:gt.CHAT_PLUGIN_USAGE_HISTORY})]})}),S=()=>ne.jsxs("div",{children:[ne.jsxs("p",{className:"mb-0",children:["Last login: ",g," from ",E]}),ne.jsx("p",{className:"mb-0",children:I})]}),D=()=>ne.jsx("div",{className:"console-output rounded",children:ne.jsxs("div",{className:"console-output-content",children:[ne.jsx(S,{}),Array.isArray(t)&&t.length===1&&JSON.stringify(t[0])==="{}"?null:ne.jsxs(ne.Fragment,{children:[Array.isArray(t)?t.map((F,K)=>ne.jsx(bv,{src:F,theme:"monokai"},K)):null,ne.jsx("p",{className:"mb-0",children:I})]})]})});return ne.jsxs("div",{className:"console",children:[ne.jsx(gv,{}),ne.jsx("div",{className:"app-main flex-column flex-row-fluid",id:"chatapp_console_app_main",children:ne.jsx("div",{className:"d-flex flex-column flex-column-fluid",children:ne.jsx("div",{id:"chatapp_console_app_content",className:"app-content flex-column-fluid p-0 pb-5",children:ne.jsxs("div",{id:"chatapp_console_app_content_container",className:"app-container container-lg",children:[ne.jsx(f,{}),ne.jsx(D,{})]})})})})]})}Bo.propTypes={config:Oa};var st=function(){return st=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},st.apply(this,arguments)};function En(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Ov(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var _v=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,wv=Ov(function(e){return _v.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Le="-ms-",fr="-moz-",Ae="-webkit-",vc="comm",Fr="rule",Ho="decl",Ev="@import",mc="@keyframes",Sv="@layer",bc=Math.abs,Yo=String.fromCharCode,qo=Object.assign;function jv(e,t){return Ue(e,0)^45?(((t<<2^Ue(e,0))<<2^Ue(e,1))<<2^Ue(e,2))<<2^Ue(e,3):0}function yc(e){return e.trim()}function Dt(e,t){return(e=t.exec(e))?e[0]:e}function Oe(e,t,r){return e.replace(t,r)}function zr(e,t,r){return e.indexOf(t,r)}function Ue(e,t){return e.charCodeAt(t)|0}function Sn(e,t,r){return e.slice(t,r)}function kt(e){return e.length}function gc(e){return e.length}function dr(e,t){return t.push(e),e}function Pv(e,t){return e.map(t).join("")}function Oc(e,t){return e.filter(function(r){return!Dt(r,t)})}var Wr=1,jn=1,_c=0,mt=0,He=0,Pn="";function Br(e,t,r,n,a,o,i,s){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:Wr,column:jn,length:i,return:"",siblings:s}}function qt(e,t){return qo(Br("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Cn(e){for(;e.root;)e=qt(e.root,{children:[e]});dr(e,e.siblings)}function Cv(){return He}function xv(){return He=mt>0?Ue(Pn,--mt):0,jn--,He===10&&(jn=1,Wr--),He}function Ot(){return He=mt<_c?Ue(Pn,mt++):0,jn++,He===10&&(jn=1,Wr++),He}function Jt(){return Ue(Pn,mt)}function Hr(){return mt}function Yr(e,t){return Sn(Pn,e,t)}function Vo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Nv(e){return Wr=jn=1,_c=kt(Pn=e),mt=0,[]}function kv(e){return Pn="",e}function Uo(e){return yc(Yr(mt-1,Xo(e===91?e+2:e===40?e+1:e)))}function Tv(e){for(;(He=Jt())&&He<33;)Ot();return Vo(e)>2||Vo(He)>3?"":" "}function Av(e,t){for(;--t&&Ot()&&!(He<48||He>102||He>57&&He<65||He>70&&He<97););return Yr(e,Hr()+(t<6&&Jt()==32&&Ot()==32))}function Xo(e){for(;Ot();)switch(He){case e:return mt;case 34:case 39:e!==34&&e!==39&&Xo(He);break;case 40:e===41&&Xo(e);break;case 92:Ot();break}return mt}function Mv(e,t){for(;Ot()&&e+He!==57;)if(e+He===84&&Jt()===47)break;return"/*"+Yr(t,mt-1)+"*"+Yo(e===47?e:Ot())}function Iv(e){for(;!Vo(Jt());)Ot();return Yr(e,mt)}function $v(e){return kv(qr("",null,null,null,[""],e=Nv(e),0,[0],e))}function qr(e,t,r,n,a,o,i,s,c){for(var l=0,u=0,h=i,b=0,g=0,_=0,E=1,L=1,I=1,P=0,z="",f=a,S=o,D=n,F=z;L;)switch(_=P,P=Ot()){case 40:if(_!=108&&Ue(F,h-1)==58){zr(F+=Oe(Uo(P),"&","&\f"),"&\f",bc(l?s[l-1]:0))!=-1&&(I=-1);break}case 34:case 39:case 91:F+=Uo(P);break;case 9:case 10:case 13:case 32:F+=Tv(_);break;case 92:F+=Av(Hr()-1,7);continue;case 47:switch(Jt()){case 42:case 47:dr(Lv(Mv(Ot(),Hr()),t,r,c),c);break;default:F+="/"}break;case 123*E:s[l++]=kt(F)*I;case 125*E:case 59:case 0:switch(P){case 0:case 125:L=0;case 59+u:I==-1&&(F=Oe(F,/\f/g,"")),g>0&&kt(F)-h&&dr(g>32?Ec(F+";",n,r,h-1,c):Ec(Oe(F," ","")+";",n,r,h-2,c),c);break;case 59:F+=";";default:if(dr(D=wc(F,t,r,l,u,a,s,z,f=[],S=[],h,o),o),P===123)if(u===0)qr(F,t,D,D,f,o,h,s,S);else switch(b===99&&Ue(F,3)===110?100:b){case 100:case 108:case 109:case 115:qr(e,D,D,n&&dr(wc(e,D,D,0,0,a,s,z,a,f=[],h,S),S),a,S,h,s,n?f:S);break;default:qr(F,D,D,D,[""],S,0,s,S)}}l=u=g=0,E=I=1,z=F="",h=i;break;case 58:h=1+kt(F),g=_;default:if(E<1){if(P==123)--E;else if(P==125&&E++==0&&xv()==125)continue}switch(F+=Yo(P),P*E){case 38:I=u>0?1:(F+="\f",-1);break;case 44:s[l++]=(kt(F)-1)*I,I=1;break;case 64:Jt()===45&&(F+=Uo(Ot())),b=Jt(),u=h=kt(z=F+=Iv(Hr())),P++;break;case 45:_===45&&kt(F)==2&&(E=0)}}return o}function wc(e,t,r,n,a,o,i,s,c,l,u,h){for(var b=a-1,g=a===0?o:[""],_=gc(g),E=0,L=0,I=0;E<n;++E)for(var P=0,z=Sn(e,b+1,b=bc(L=i[E])),f=e;P<_;++P)(f=yc(L>0?g[P]+" "+z:Oe(z,/&\f/g,g[P])))&&(c[I++]=f);return Br(e,t,r,a===0?Fr:s,c,l,u,h)}function Lv(e,t,r,n){return Br(e,t,r,vc,Yo(Cv()),Sn(e,2,-2),0,n)}function Ec(e,t,r,n,a){return Br(e,t,r,Ho,Sn(e,0,n),Sn(e,n+1,-1),n,a)}function Sc(e,t,r){switch(jv(e,t)){case 5103:return Ae+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ae+e+e;case 4789:return fr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ae+e+fr+e+Le+e+e;case 5936:switch(Ue(e,t+11)){case 114:return Ae+e+Le+Oe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ae+e+Le+Oe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ae+e+Le+Oe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Ae+e+Le+e+e;case 6165:return Ae+e+Le+"flex-"+e+e;case 5187:return Ae+e+Oe(e,/(\w+).+(:[^]+)/,Ae+"box-$1$2"+Le+"flex-$1$2")+e;case 5443:return Ae+e+Le+"flex-item-"+Oe(e,/flex-|-self/g,"")+(Dt(e,/flex-|baseline/)?"":Le+"grid-row-"+Oe(e,/flex-|-self/g,""))+e;case 4675:return Ae+e+Le+"flex-line-pack"+Oe(e,/align-content|flex-|-self/g,"")+e;case 5548:return Ae+e+Le+Oe(e,"shrink","negative")+e;case 5292:return Ae+e+Le+Oe(e,"basis","preferred-size")+e;case 6060:return Ae+"box-"+Oe(e,"-grow","")+Ae+e+Le+Oe(e,"grow","positive")+e;case 4554:return Ae+Oe(e,/([^-])(transform)/g,"$1"+Ae+"$2")+e;case 6187:return Oe(Oe(Oe(e,/(zoom-|grab)/,Ae+"$1"),/(image-set)/,Ae+"$1"),e,"")+e;case 5495:case 3959:return Oe(e,/(image-set\([^]*)/,Ae+"$1$`$1");case 4968:return Oe(Oe(e,/(.+:)(flex-)?(.*)/,Ae+"box-pack:$3"+Le+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ae+e+e;case 4200:if(!Dt(e,/flex-|baseline/))return Le+"grid-column-align"+Sn(e,t)+e;break;case 2592:case 3360:return Le+Oe(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,a){return t=a,Dt(n.props,/grid-\w+-end/)})?~zr(e+(r=r[t].value),"span",0)?e:Le+Oe(e,"-start","")+e+Le+"grid-row-span:"+(~zr(r,"span",0)?Dt(r,/\d+/):+Dt(r,/\d+/)-+Dt(e,/\d+/))+";":Le+Oe(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return Dt(n.props,/grid-\w+-start/)})?e:Le+Oe(Oe(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Oe(e,/(.+)-inline(.+)/,Ae+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(kt(e)-1-t>6)switch(Ue(e,t+1)){case 109:if(Ue(e,t+4)!==45)break;case 102:return Oe(e,/(.+:)(.+)-([^]+)/,"$1"+Ae+"$2-$3$1"+fr+(Ue(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~zr(e,"stretch",0)?Sc(Oe(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Oe(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,a,o,i,s,c,l){return Le+a+":"+o+l+(i?Le+a+"-span:"+(s?c:+c-+o)+l:"")+e});case 4949:if(Ue(e,t+6)===121)return Oe(e,":",":"+Ae)+e;break;case 6444:switch(Ue(e,Ue(e,14)===45?18:11)){case 120:return Oe(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ae+(Ue(e,14)===45?"inline-":"")+"box$3$1"+Ae+"$2$3$1"+Le+"$2box$3")+e;case 100:return Oe(e,":",":"+Le)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Oe(e,"scroll-","scroll-snap-")+e}return e}function Vr(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Dv(e,t,r,n){switch(e.type){case Sv:if(e.children.length)break;case Ev:case Ho:return e.return=e.return||e.value;case vc:return"";case mc:return e.return=e.value+"{"+Vr(e.children,n)+"}";case Fr:if(!kt(e.value=e.props.join(",")))return""}return kt(r=Vr(e.children,n))?e.return=e.value+"{"+r+"}":""}function Rv(e){var t=gc(e);return function(r,n,a,o){for(var i="",s=0;s<t;s++)i+=e[s](r,n,a,o)||"";return i}}function Fv(e){return function(t){t.root||(t=t.return)&&e(t)}}function zv(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Ho:e.return=Sc(e.value,e.length,r);return;case mc:return Vr([qt(e,{value:Oe(e.value,"@","@"+Ae)})],n);case Fr:if(e.length)return Pv(r=e.props,function(a){switch(Dt(a,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Cn(qt(e,{props:[Oe(a,/:(read-\w+)/,":"+fr+"$1")]})),Cn(qt(e,{props:[a]})),qo(e,{props:Oc(r,n)});break;case"::placeholder":Cn(qt(e,{props:[Oe(a,/:(plac\w+)/,":"+Ae+"input-$1")]})),Cn(qt(e,{props:[Oe(a,/:(plac\w+)/,":"+fr+"$1")]})),Cn(qt(e,{props:[Oe(a,/:(plac\w+)/,Le+"input-$1")]})),Cn(qt(e,{props:[a]})),qo(e,{props:Oc(r,n)});break}return""})}}var Wv={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Zt=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",jc="active",Pc="data-styled-version",Ur="6.1.15",Ko=`/*!sc*/
|
|
507
|
-
|
|
508
|
-
`)+`You may see this warning because you've called styled inside another component.
|
|
509
|
-
To resolve this only create new StyledComponents outside of any render method and function component.`,a=console.error;try{var o=!0;console.error=function(i){for(var s=[],c=1;c<arguments.length;c++)s[c-1]=arguments[c];Cc.test(i)?(o=!1,Kr.delete(n)):a.apply(void 0,En([i],s,!1))},w.useRef(),o&&!Kr.has(n)&&(console.warn(n),Kr.add(n))}catch(i){Cc.test(i.message)&&Kr.delete(n)}finally{console.error=a}}},Gr=Object.freeze([]),xn=Object.freeze({});function Yv(e,t,r){return r===void 0&&(r=xn),e.theme!==r.theme&&e.theme||t||r.theme}var Go=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),qv=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Vv=/(^-|-$)/g;function xc(e){return e.replace(qv,"-").replace(Vv,"")}var Uv=/(a)(d)/gi,Jr=52,Nc=function(e){return String.fromCharCode(e+(e>25?39:97))};function Jo(e){var t,r="";for(t=Math.abs(e);t>Jr;t=t/Jr|0)r=Nc(t%Jr)+r;return(Nc(t%Jr)+r).replace(Uv,"$1-$2")}var Zo,kc=5381,Qt=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Tc=function(e){return Qt(kc,e)};function Xv(e){return Jo(Tc(e)>>>0)}function Ac(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Qo(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Mc=typeof Symbol=="function"&&Symbol.for,Ic=Mc?Symbol.for("react.memo"):60115,Kv=Mc?Symbol.for("react.forward_ref"):60112,Gv={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Jv={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},$c={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Zv=((Zo={})[Kv]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Zo[Ic]=$c,Zo);function Lc(e){return("type"in(t=e)&&t.type.$$typeof)===Ic?$c:"$$typeof"in e?Zv[e.$$typeof]:Gv;var t}var Qv=Object.defineProperty,em=Object.getOwnPropertyNames,Dc=Object.getOwnPropertySymbols,tm=Object.getOwnPropertyDescriptor,nm=Object.getPrototypeOf,Rc=Object.prototype;function Fc(e,t,r){if(typeof t!="string"){if(Rc){var n=nm(t);n&&n!==Rc&&Fc(e,n,r)}var a=em(t);Dc&&(a=a.concat(Dc(t)));for(var o=Lc(e),i=Lc(t),s=0;s<a.length;++s){var c=a[s];if(!(c in Jv||r&&r[c]||i&&c in i||o&&c in o)){var l=tm(t,c);try{Qv(e,c,l)}catch{}}}}return e}function Nn(e){return typeof e=="function"}function ei(e){return typeof e=="object"&&"styledComponentId"in e}function en(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function zc(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function kn(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ti(e,t,r){if(r===void 0&&(r=!1),!r&&!kn(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=ti(e[n],t[n]);else if(kn(t))for(var n in t)e[n]=ti(e[n],t[n]);return e}function ni(e,t){Object.defineProperty(e,"toString",{value:t})}var rm=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
510
|
-
|
|
511
|
-
`,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
512
|
-
|
|
513
|
-
- Are you trying to reuse it across renders?
|
|
514
|
-
- Are you accidentally calling collectStyles twice?
|
|
515
|
-
|
|
516
|
-
`,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
517
|
-
|
|
518
|
-
`,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
519
|
-
|
|
520
|
-
- Does this error occur on the client and is your target falsy?
|
|
521
|
-
- Does this error occur on the server and is the sheet falsy?
|
|
522
|
-
|
|
523
|
-
`,5:`The clone method cannot be used on the client!
|
|
524
|
-
|
|
525
|
-
- Are you running in a client-like environment on the server?
|
|
526
|
-
- Are you trying to run SSR on the client?
|
|
527
|
-
|
|
528
|
-
`,6:`Trying to insert a new style tag, but the given Node is unmounted!
|
|
529
|
-
|
|
530
|
-
- Are you using a custom target that isn't mounted?
|
|
531
|
-
- Does your document not have a valid head element?
|
|
532
|
-
- Have you accidentally removed a style tag manually?
|
|
533
|
-
|
|
534
|
-
`,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object.
|
|
535
|
-
|
|
536
|
-
`,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
|
|
537
|
-
|
|
538
|
-
`,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
|
|
539
|
-
|
|
540
|
-
`,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
|
|
541
|
-
|
|
542
|
-
`,14:`ThemeProvider: "theme" prop is required.
|
|
543
|
-
|
|
544
|
-
`,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
|
|
545
|
-
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
546
|
-
as for instance in your render method then you may be running into this limitation.
|
|
547
|
-
|
|
548
|
-
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
549
|
-
Has styled-components' style tag been unmounted or altered by another script?
|
|
550
|
-
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function am(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],n=[],a=1,o=e.length;a<o;a+=1)n.push(e[a]);return n.forEach(function(i){r=r.replace(/%[a-z]/,i)}),r}function Tn(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(am.apply(void 0,En([rm[e]],t,!1)).trim())}var om=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,a=n.length,o=a;t>=o;)if((o<<=1)<0)throw Tn(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=a;i<o;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(t+1),c=(i=0,r.length);i<c;i++)this.tag.insertRule(s,r[i])&&(this.groupSizes[t]++,s++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),a=n+r;this.groupSizes[t]=0;for(var o=n;o<a;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],a=this.indexOfGroup(t),o=a+n,i=a;i<o;i++)r+="".concat(this.tag.getRule(i)).concat(Ko);return r},e})(),im=1<<30,Zr=new Map,Qr=new Map,ea=1,ta=function(e){if(Zr.has(e))return Zr.get(e);for(;Qr.has(ea);)ea++;var t=ea++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>im))throw Tn(16,"".concat(t));return Zr.set(e,t),Qr.set(t,e),t},sm=function(e,t){ea=t+1,Zr.set(e,t),Qr.set(t,e)},cm="style[".concat(Zt,"][").concat(Pc,'="').concat(Ur,'"]'),lm=new RegExp("^".concat(Zt,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),um=function(e,t,r){for(var n,a=r.split(","),o=0,i=a.length;o<i;o++)(n=a[o])&&e.registerName(t,n)},fm=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(Ko),a=[],o=0,i=n.length;o<i;o++){var s=n[o].trim();if(s){var c=s.match(lm);if(c){var l=0|parseInt(c[1],10),u=c[2];l!==0&&(sm(u,l),um(e,u,c[3]),e.getTag().insertRules(l,a)),a.length=0}else a.push(s)}}},Wc=function(e){for(var t=document.querySelectorAll(cm),r=0,n=t.length;r<n;r++){var a=t[r];a&&a.getAttribute(Zt)!==jc&&(fm(e,a),a.parentNode&&a.parentNode.removeChild(a))}};function dm(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Bc=function(e){var t=document.head,r=e||t,n=document.createElement("style"),a=(function(s){var c=Array.from(s.querySelectorAll("style[".concat(Zt,"]")));return c[c.length-1]})(r),o=a!==void 0?a.nextSibling:null;n.setAttribute(Zt,jc),n.setAttribute(Pc,Ur);var i=dm();return i&&n.setAttribute("nonce",i),r.insertBefore(n,o),n},pm=(function(){function e(t){this.element=Bc(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,a=0,o=n.length;a<o;a++){var i=n[a];if(i.ownerNode===r)return i}throw Tn(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e})(),hm=(function(){function e(t){this.element=Bc(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),vm=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),Hc=Xr,mm={isServer:!Xr,useCSSOMInjection:!Bv},Yc=(function(){function e(t,r,n){t===void 0&&(t=xn),r===void 0&&(r={});var a=this;this.options=st(st({},mm),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&Xr&&Hc&&(Hc=!1,Wc(this)),ni(this,function(){return(function(o){for(var i=o.getTag(),s=i.length,c="",l=function(h){var b=(function(I){return Qr.get(I)})(h);if(b===void 0)return"continue";var g=o.names.get(b),_=i.getGroup(h);if(g===void 0||!g.size||_.length===0)return"continue";var E="".concat(Zt,".g").concat(h,'[id="').concat(b,'"]'),L="";g!==void 0&&g.forEach(function(I){I.length>0&&(L+="".concat(I,","))}),c+="".concat(_).concat(E,'{content:"').concat(L,'"}').concat(Ko)},u=0;u<s;u++)l(u);return c})(a)})}return e.registerId=function(t){return ta(t)},e.prototype.rehydrate=function(){!this.server&&Xr&&Wc(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(st(st({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(r){var n=r.useCSSOMInjection,a=r.target;return r.isServer?new vm(a):n?new pm(a):new hm(a)})(this.options),new om(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(ta(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(ta(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(ta(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),bm=/&/g,ym=/^\s*\/\/.*$/gm;function qc(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=qc(r.children,t)),r})}function gm(e){var t,r,n,a=xn,o=a.options,i=o===void 0?xn:o,s=a.plugins,c=s===void 0?Gr:s,l=function(b,g,_){return _.startsWith(r)&&_.endsWith(r)&&_.replaceAll(r,"").length>0?".".concat(t):b},u=c.slice();u.push(function(b){b.type===Fr&&b.value.includes("&")&&(b.props[0]=b.props[0].replace(bm,r).replace(n,l))}),i.prefix&&u.push(zv),u.push(Dv);var h=function(b,g,_,E){g===void 0&&(g=""),_===void 0&&(_=""),E===void 0&&(E="&"),t=E,r=g,n=new RegExp("\\".concat(r,"\\b"),"g");var L=b.replace(ym,""),I=$v(_||g?"".concat(_," ").concat(g," { ").concat(L," }"):L);i.namespace&&(I=qc(I,i.namespace));var P=[];return Vr(I,Rv(u.concat(Fv(function(z){return P.push(z)})))),P};return h.hash=c.length?c.reduce(function(b,g){return g.name||Tn(15),Qt(b,g.name)},kc).toString():"",h}var Om=new Yc,ri=gm(),Vc=w.createContext({shouldForwardProp:void 0,styleSheet:Om,stylis:ri});Vc.Consumer,w.createContext(void 0);function Uc(){return w.useContext(Vc)}var Xc=(function(){function e(t,r){var n=this;this.inject=function(a,o){o===void 0&&(o=ri);var i=n.name+o.hash;a.hasNameForId(n.id,i)||a.insertRules(n.id,i,o(n.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,ni(this,function(){throw Tn(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=ri),this.name+t.hash},e})(),_m=function(e){return e>="A"&&e<="Z"};function Kc(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;_m(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Gc=function(e){return e==null||e===!1||e===""},Jc=function(e){var t,r,n=[];for(var a in e){var o=e[a];e.hasOwnProperty(a)&&!Gc(o)&&(Array.isArray(o)&&o.isCss||Nn(o)?n.push("".concat(Kc(a),":"),o,";"):kn(o)?n.push.apply(n,En(En(["".concat(a," {")],Jc(o),!1),["}"],!1)):n.push("".concat(Kc(a),": ").concat((t=a,(r=o)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in Wv||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function tn(e,t,r,n){if(Gc(e))return[];if(ei(e))return[".".concat(e.styledComponentId)];if(Nn(e)){if(!Nn(o=e)||o.prototype&&o.prototype.isReactComponent||!t)return[e];var a=e(t);return process.env.NODE_ENV==="production"||typeof a!="object"||Array.isArray(a)||a instanceof Xc||kn(a)||a===null||console.error("".concat(Ac(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),tn(a,t,r,n)}var o;return e instanceof Xc?r?(e.inject(r,n),[e.getName(n)]):[e]:kn(e)?Jc(e):Array.isArray(e)?Array.prototype.concat.apply(Gr,e.map(function(i){return tn(i,t,r,n)})):[e.toString()]}function wm(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Nn(r)&&!ei(r))return!1}return!0}var Em=Tc(Ur),Sm=(function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&wm(t),this.componentId=r,this.baseHash=Qt(Em,r),this.baseStyle=n,Yc.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var a=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))a=en(a,this.staticRulesId);else{var o=zc(tn(this.rules,t,r,n)),i=Jo(Qt(this.baseHash,o)>>>0);if(!r.hasNameForId(this.componentId,i)){var s=n(o,".".concat(i),void 0,this.componentId);r.insertRules(this.componentId,i,s)}a=en(a,i),this.staticRulesId=i}else{for(var c=Qt(this.baseHash,n.hash),l="",u=0;u<this.rules.length;u++){var h=this.rules[u];if(typeof h=="string")l+=h,process.env.NODE_ENV!=="production"&&(c=Qt(c,h));else if(h){var b=zc(tn(h,t,r,n));c=Qt(c,b+u),l+=b}}if(l){var g=Jo(c>>>0);r.hasNameForId(this.componentId,g)||r.insertRules(this.componentId,g,n(l,".".concat(g),void 0,this.componentId)),a=en(a,g)}}return a},e})(),Zc=w.createContext(void 0);Zc.Consumer;var ai={},Qc=new Set;function jm(e,t,r){var n=ei(e),a=e,o=!Qo(e),i=t.attrs,s=i===void 0?Gr:i,c=t.componentId,l=c===void 0?(function(f,S){var D=typeof f!="string"?"sc":xc(f);ai[D]=(ai[D]||0)+1;var F="".concat(D,"-").concat(Xv(Ur+D+ai[D]));return S?"".concat(S,"-").concat(F):F})(t.displayName,t.parentComponentId):c,u=t.displayName,h=u===void 0?(function(f){return Qo(f)?"styled.".concat(f):"Styled(".concat(Ac(f),")")})(e):u,b=t.displayName&&t.componentId?"".concat(xc(t.displayName),"-").concat(t.componentId):t.componentId||l,g=n&&a.attrs?a.attrs.concat(s).filter(Boolean):s,_=t.shouldForwardProp;if(n&&a.shouldForwardProp){var E=a.shouldForwardProp;if(t.shouldForwardProp){var L=t.shouldForwardProp;_=function(f,S){return E(f,S)&&L(f,S)}}else _=E}var I=new Sm(r,b,n?a.componentStyle:void 0);function P(f,S){return(function(D,F,K){var C=D.attrs,M=D.componentStyle,B=D.defaultProps,J=D.foldedComponentIds,N=D.styledComponentId,de=D.target,oe=w.useContext(Zc),$=Uc(),ce=D.shouldForwardProp||$.shouldForwardProp;process.env.NODE_ENV!=="production"&&w.useDebugValue(N);var _e=Yv(F,oe,B)||xn,he=(function(le,V,Q){for(var ee,ie=st(st({},V),{className:void 0,theme:Q}),ue=0;ue<le.length;ue+=1){var Ce=Nn(ee=le[ue])?ee(ie):ee;for(var G in Ce)ie[G]=G==="className"?en(ie[G],Ce[G]):G==="style"?st(st({},ie[G]),Ce[G]):Ce[G]}return V.className&&(ie.className=en(ie.className,V.className)),ie})(C,F,_e),A=he.as||de,q={};for(var X in he)he[X]===void 0||X[0]==="$"||X==="as"||X==="theme"&&he.theme===_e||(X==="forwardedAs"?q.as=he.forwardedAs:ce&&!ce(X,A)||(q[X]=he[X],ce||process.env.NODE_ENV!=="development"||wv(X)||Qc.has(X)||!Go.has(A)||(Qc.add(X),console.warn('styled-components: it looks like an unknown prop "'.concat(X,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var re=(function(le,V){var Q=Uc(),ee=le.generateAndInjectStyles(V,Q.styleSheet,Q.stylis);return process.env.NODE_ENV!=="production"&&w.useDebugValue(ee),ee})(M,he);process.env.NODE_ENV!=="production"&&D.warnTooManyClasses&&D.warnTooManyClasses(re);var te=en(J,N);return re&&(te+=" "+re),he.className&&(te+=" "+he.className),q[Qo(A)&&!Go.has(A)?"class":"className"]=te,K&&(q.ref=K),w.createElement(A,q)})(z,f,S)}P.displayName=h;var z=w.forwardRef(P);return z.attrs=g,z.componentStyle=I,z.displayName=h,z.shouldForwardProp=_,z.foldedComponentIds=n?en(a.foldedComponentIds,a.styledComponentId):"",z.styledComponentId=b,z.target=n?a.target:e,Object.defineProperty(z,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(f){this._foldedDefaultProps=n?(function(S){for(var D=[],F=1;F<arguments.length;F++)D[F-1]=arguments[F];for(var K=0,C=D;K<C.length;K++)ti(S,C[K],!0);return S})({},a.defaultProps,f):f}}),process.env.NODE_ENV!=="production"&&(Hv(h,b),z.warnTooManyClasses=(function(f,S){var D={},F=!1;return function(K){if(!F&&(D[K]=!0,Object.keys(D).length>=200)){var C=S?' with the id of "'.concat(S,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(f).concat(C,`.
|
|
551
|
-
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
552
|
-
Example:
|
|
553
|
-
const Component = styled.div.attrs(props => ({
|
|
554
|
-
style: {
|
|
555
|
-
background: props.background,
|
|
556
|
-
},
|
|
557
|
-
}))\`width: 100%;\`
|
|
558
|
-
|
|
559
|
-
<Component />`),F=!0,D={}}}})(h,b)),ni(z,function(){return".".concat(z.styledComponentId)}),o&&Fc(z,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),z}function el(e,t){for(var r=[e[0]],n=0,a=t.length;n<a;n+=1)r.push(t[n],e[n+1]);return r}var tl=function(e){return Object.assign(e,{isCss:!0})};function Pm(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Nn(e)||kn(e))return tl(tn(el(Gr,En([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?tn(n):tl(tn(el(n,t)))}function oi(e,t,r){if(r===void 0&&(r=xn),!t)throw Tn(1,t);var n=function(a){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,Pm.apply(void 0,En([a],o,!1)))};return n.attrs=function(a){return oi(e,t,st(st({},r),{attrs:Array.prototype.concat(r.attrs,a).filter(Boolean)}))},n.withConfig=function(a){return oi(e,t,st(st({},r),a))},n}var nl=function(e){return oi(jm,e)},nn=nl;Go.forEach(function(e){nn[e]=nl(e)}),process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
560
|
-
Perhaps you're looking to import 'styled-components/native'?
|
|
561
|
-
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var na="__sc-".concat(Zt,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[na]||(window[na]=0),window[na]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
562
|
-
|
|
563
|
-
See https://s-c.sh/2BAXzed for more info.`),window[na]+=1);const ii=nn.div`
|
|
564
|
-
margin: 0;
|
|
565
|
-
padding: 5px;
|
|
566
|
-
height: 100%;
|
|
567
|
-
box-sizing: border-box;
|
|
568
|
-
`,Cm=nn.div`
|
|
569
|
-
height: 100%;
|
|
570
|
-
display: flex;
|
|
571
|
-
flex-direction: row;
|
|
572
|
-
`,xm=nn.div`
|
|
573
|
-
flex: 1;
|
|
574
|
-
display: flex;
|
|
575
|
-
flex-direction: row;
|
|
576
|
-
margin: 0;
|
|
577
|
-
padding: 0;
|
|
578
|
-
height: 100%;
|
|
579
|
-
`,Nm=nn(ii)`
|
|
580
|
-
flex-basis: 100%;
|
|
581
|
-
`,km=nn(ii)`
|
|
582
|
-
flex-basis: 33.33%;
|
|
583
|
-
min-width: 400px;
|
|
584
|
-
@media (max-width: 992px) {
|
|
585
|
-
flex-basis: 100%;
|
|
586
|
-
}
|
|
587
|
-
`,Tm=nn(ii)`
|
|
588
|
-
flex-basis: 66.67%;
|
|
589
|
-
min-width: 600px;
|
|
590
|
-
// visible on only on large screens
|
|
591
|
-
@media (max-width: 992px) {
|
|
592
|
-
display: none;
|
|
593
|
-
flex-basis: 0%;
|
|
594
|
-
}
|
|
595
|
-
`,bt={INCOMING:"incoming",OUTGOING:"outgoing"},tt={SYSTEM:"system",ASSISTANT:"assistant",USER:"user",TOOL:"tool",SMARTER:"smarter"},rl=[tt.SYSTEM,tt.ASSISTANT,tt.USER,tt.TOOL];function ra(e,t=null){if(e.value!==null)return e.value;let r=null;if(window.location.hostname.endsWith(e.domain)&&document.cookie&&document.cookie!==""){const n=document.cookie.split(";").map(a=>a.trim());for(let a=0;a<n.length;a++){const o=n[a];if(o.startsWith(`${e.name}=`)){r=decodeURIComponent(o.substring(e.name.length+1));break}}}return r||t}function aa(e,t){const r=window.location.pathname;if(t){const n=new Date;n.setTime(n.getTime()+e.expiration);const a=n.toUTCString(),o=`${e.name}=${t}; path=${r}; SameSite=Lax; expires=${a}`;document.cookie=o}else{const a=new Date(0).toUTCString(),o=`${e.name}=; path=${r}; SameSite=Lax; expires=${a}`;document.cookie=o}}function oa(e,t,r,n=null){return{name:e,expiration:t,domain:r,value:n}}const si=!1;let Vt=si;const Am="SmarterChat/1.0",ci="application/json";function Mm(e,t){const r={session_key:t.session_key,messages:e};return JSON.stringify(r)}function al(e){Vt&&console.log("requestHeadersFactory(): cookies",e);function t(i){return document.cookie.split(";").filter(l=>!l.trim().startsWith(`${i.csrfCookie.name}=`)).join("; ")}const r=t(e),n=ra(e.csrfCookie,""),a=ra(e.authTokenCookie,""),o={Accept:ci,"Content-Type":ci,"X-CSRFToken":n,Origin:window.location.origin,Cookie:r,Authorization:`Bearer ${a}`,"User-Agent":Am};return Vt&&console.log("requestHeadersFactory(): requestHeaders",o),o}function ol(e,t){return{method:"POST",credentials:"include",mode:"cors",headers:e,body:t}}function il(e,t,r){e.endsWith("/")||(e+="/"),t=t||"";let n=new URL(t,e);return r&&n.searchParams.append("session_key",r),n.toString()}async function sl(e,t,r){try{Vt&&console.log("getJsonResponse(): url: ",e,", init: ",t,", cookies: ",r);const n=await fetch(e,t),a=n.headers.get("content-type");if(a&&a.includes(ci)){const o=await n.status;if(n.ok){const i=await n.json(),s=await i.data;return Vt&&console.log("getJsonResponse(): response: ",i),s}else return console.error("getJsonResponse(): error: ",o,n.statusText),n}else{const o=await n.text();throw new Error(`getJsonResponse() Unexpected response format: ${o}`)}}catch(n){return n}}async function Im(e,t,r){Vt=e.debug_mode||si,Vt&&console.log("fetchPrompt(): config",e);const n=e.chatbot.url_chatbot,a=ra(r.sessionCookie,""),o=il(n,null,a),i=al(r),s=Mm(t,e),c=ol(i,s),l=await sl(o,c,r);return l&&l.body?(Vt&&console.log("fetchPrompt(): parsing responseJson.body "),await JSON.parse(l.body)):null}async function $m(e,t){const r=ra(t.sessionCookie,""),n=al(t),a=JSON.stringify({session_key:r}),o=ol(n,a),i=il(e,"config/",r),s=await sl(i,o,t);return s?(aa(t.sessionCookie,s.session_key),aa(t.debugCookie,s.debug_mode),Vt=s.debug_mode||si,s):null}function Lm(e,t){try{const r=(e||[]).map(n=>{if(n.role===tt.USER)return _t(n,n.content,bt.OUTGOING,n.role);if(n.role===tt.SYSTEM)return _t(n,n.content,bt.INCOMING,n.role);if(n.role===tt.ASSISTANT)return _t(n,n.content,bt.INCOMING,n.role);if(n.role===tt.SMARTER)return _t(n,n.content,bt.INCOMING,n.role);if(n.role===tt.TOOL)return _t(n,n.content,bt.INCOMING,n.role);console.error(`chatRestoreFromBackend() Invalid role received: ${n.role}`)}).filter(n=>n&&typeof n=="object"&&!Array.isArray(n));if(t?.choices?.[0]?.message?.content){const n=t.choices[0].message,a=n.content;r.push(_t(n,a,bt.INCOMING,tt.ASSISTANT))}return r}catch(r){return console.error(`chatRestoreFromBackend() Error occurred while restoring chat from backend: ${r}`),[]}}const Dm=e=>e.length==0?"":`Some example prompts to get you started:\r
|
|
596
|
-
\r
|
|
597
|
-
`+e.map(t=>t+`\r
|
|
598
|
-
`).join("");function Rm(e,t,r){let n=[_t({},t,bt.INCOMING,tt.SYSTEM)];n.push(_t({},e,bt.INCOMING,tt.ASSISTANT));const a=Dm(r);return a&&n.push(_t({},a,bt.INCOMING,tt.ASSISTANT)),n}function Fm(e){if(typeof e!="string")return console.error(`convertMarkdownLinksToHTML() Expected a string but received ${typeof e}`),console.error("convertMarkdownLinksToHTML() broke here",e),e;const t=/\[([^\]]+)\]\(([^)]+)\)/g;return e.replace(t,'<a href="$2">$1</a>')}function _t(e,t,r,n){const a=typeof t=="string"&&t!==null,i={message:a?Fm(t):t,direction:r,sender:n,sentTime:new Date().toLocaleString(),display:a};return e?i.originalMessage=e:i.originalMessage=i,i}function zm(e){let t=e.originalMessage||{};return t.role=e.originalMessage&&e.originalMessage.role?e.originalMessage.role:e.sender,t.content=e.originalMessage&&e.originalMessage.message?e.originalMessage.message:e.message,t}function Wm(e){return e.filter(t=>rl.includes(t.sender)).map((t,r)=>zm(t))}function Bm(e,t,r,n,a,o){let i=[];return i=Lm(a,o),i.length===0&&(i=Rm(e,t,r)),i}class cl extends w.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t,r){console.error(t,r)}render(){return this.state.hasError?ne.jsx("h1",{children:"Something went wrong."}):this.props.children}}cl.propTypes={children:d.node};function Hm({apiUrl:e,apiKey:t,toggleMetadata:r,csrfCookieName:n="csrftoken",csrftoken:a,debugCookieName:o,debugCookieExpiration:i,debugMode:s=!1,sessionCookieName:c="session_key",sessionCookieExpiration:l,authSessionCookieName:u="sessionid",showConsole:h=!0,cookieDomain:b}){const[g,_]=w.useState(e),[E,L]=w.useState(r),[I,P]=w.useState(!1),[z,f]=w.useState({}),[S,D]=w.useState(""),[F,K]=w.useState(""),[C,M]=w.useState(""),[B,J]=w.useState(!1),[N,de]=w.useState(""),[oe,$]=w.useState(""),[ce,_e]=w.useState(!1),[he,A]=w.useState(!1),[q,X]=w.useState(s),[re,te]=w.useState([]),[le,V]=w.useState(!1),[Q,ee]=w.useState(!1),[ie,ue]=w.useState(""),[Ce,G]=w.useState(""),Pe=w.useRef(null),Xe=oa(n,null,b,a),nt=oa(u,null,b,null),ut=oa(c,l,b,null),Ut=oa(o,i,b,null),wt={authTokenCookie:nt,csrfCookie:Xe,sessionCookie:ut,debugCookie:Ut},Et=async()=>{const ae=await $m(g,wt);return X(ae?.debug_mode),aa(wt.debugCookie,q),q&&console.log("refetchConfig() config:",ae),d.checkPropTypes(Oa,ae,"prop","SmarterChat"),f(ae),ae},Rt=async()=>{try{const ae=await Et();q&&console.log("fetchAndSetConfig() config:",ae),D(ae.chatbot.app_placeholder),_(ae.chatbot.url_chatbot),K(ae.chatbot.app_assistant),M(ae.chatbot.app_info_url),J(ae.chatbot.app_file_attachment),_e(ae.meta_data.is_valid),A(ae.meta_data.is_deployed),X(ae.debug_mode);const Se=ae.history?.chat_history||[],ge=Bm(ae.chatbot.app_welcome_message,ae.chatbot.default_system_role,ae.chatbot.app_example_prompts,ae.session_key,Se,"BACKEND_CHAT_MOST_RECENT_RESPONSE");te(ge);const Ye=`${ae.chatbot.app_name} v${ae.chatbot.version||"1.0.0"}`;de(Ye);let Fe=`${ae.chatbot.provider} ${ae.chatbot.default_model}`;ae.plugins.meta_data.total_plugins>0&&(Fe+=` with ${ae.plugins.meta_data.total_plugins} additional plugins`),$(Fe),P(!0),V(!1),q&&console.log("fetchAndSetConfig() done!")}catch(ae){console.error("Failed to fetch config:",ae)}};w.useEffect(()=>(q&&console.log("ChatApp() component mounted"),Rt(),()=>{q&&console.log("ChatApp() component unmounted")}),[]);function St(ae,Se){ee(!0),G(ae),ue(Se)}function ct(){ee(!1)}const Ve=()=>{const ae=!E;L(ae),q&&console.log("showMetadata:",ae);const Se=re.map(ge=>ge.message===null?{...ge,display:!1}:["smarter","system","tool"].includes(ge.sender)?{...ge,display:ae}:{...ge,display:!0});te(Se)},Tt=()=>{aa(wt.sessionCookie,""),Rt()};async function H(ae,Se=!1){const ge=_t({},ae,bt.OUTGOING,tt.USER);Se&&console.error("base64 encoding not implemented yet."),te(Ye=>{const Fe=[...Ye,ge];return V(!0),(async()=>{try{q&&console.log("handleApiRequest() messages:",Fe);const rt=Wm(Fe),at=await Im(z,rt,wt);if(at){const ze=at.smarter.messages.filter(me=>me.content!==null).map(me=>_t(me,me.content,bt.INCOMING,me.role));te(me=>[...me,...ze]),V(!1),Et()}}catch(rt){V(!1),console.error("Api error: ",rt),St("Api error",rt.message)}})(),Fe})}const k=async()=>{Pe.current.click()};function T(ae){const Se=ae.target.files[0],ge=new FileReader;ge.onload=Ye=>{const Fe=Ye.target.result;H(Fe,!0)},ge.readAsText(Se)}const Y=ae=>{const Se=ae.replace(/<[^>]+>/g,"");Se.trim()&&H(Se,!1)};function Z({title:ae,isValid:Se,isDeployed:ge}){return ne.jsx("div",{children:I?ne.jsxs(ne.Fragment,{children:[ae," ",Se?ne.jsx(Ze,{icon:xu,style:{color:"green"}}):ne.jsx(Ze,{icon:Mu,style:{color:"red"}}),ge?ne.jsxs(ne.Fragment,{children:[" ",ne.jsx(Ze,{icon:ku,style:{color:"orange"}})]}):null]}):ne.jsx("div",{children:"Loading..."})})}function se({i:ae,message:Se}){let ge="";return Se.sender==="smarter"?ge="smarter-message":["tool","system"].includes(Se.sender)&&(ge="system-message"),ne.jsx(Lt,{model:Se,className:ge},ae)}const we={width:"100%"},be={backgroundColor:"rgba(0,0,0,0.10)",color:"lightgray"},Me={width:"100%",height:"100%"},Re={...we,...be};return ne.jsx("div",{id:"smarter_chat_component_container",className:"SmarterChat",children:ne.jsx(Cm,{children:ne.jsx(xm,{children:ne.jsxs(Nm,{children:[ne.jsx(km,{children:ne.jsx("div",{className:"chat-app",children:ne.jsxs(ic,{style:Me,children:[ne.jsx(cl,{children:ne.jsx(pc,{isModalOpen:Q,title:Ce,message:ie,onCloseClick:ct})}),ne.jsxs(nc,{style:Re,children:[ne.jsxs(xt,{children:[ne.jsx(xt.Content,{userName:I?ne.jsx(Z,{title:N,isValid:ce,isDeployed:he}):"Configuring workbench...",info:I?oe:""}),ne.jsxs(xt.Actions,{children:[ne.jsx(Os,{onClick:Tt,title:"Start a new chat"}),r&&ne.jsx(ys,{onClick:Ve,title:"Toggle system meta data"})]})]}),ne.jsx(Yt,{style:be,scrollBehavior:"auto",typingIndicator:le?ne.jsx(fc,{content:F+" is typing"}):null,children:re.filter(ae=>ae.display).map((ae,Se)=>ne.jsx(se,{i:Se,message:ae}))}),ne.jsx(_n,{placeholder:S,onSend:Y,onAttachClick:k,attachButton:B,fancyScroll:!1})]}),ne.jsx("input",{type:"file",accept:".py",title:"Select a Python file",ref:Pe,style:{display:"none"},onChange:T})]})})}),h&&ne.jsx(Tm,{children:ne.jsx(Bo,{config:z})})]})})})})}const Ym="0.2.14";Ge.ConfigPropTypes=Oa,Ge.Console=Bo,Ge.MenuItems=gt,Ge.MessageDirectionEnum=bt,Ge.SenderRoleEnum=tt,Ge.SmarterChat=Hm,Ge.ValidMessageRolesEnum=rl,Ge.version=Ym,Object.defineProperty(Ge,Symbol.toStringTag,{value:"Module"})}));
|
|
599
|
-
//# sourceMappingURL=smarter-chat-library.umd.js.map
|
|
891
|
+
https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps==`function`&&(t.componentWillMount=d,t.componentWillReceiveProps=f),typeof t.getSnapshotBeforeUpdate==`function`){if(typeof t.componentDidUpdate!=`function`)throw Error(`Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype`);t.componentWillUpdate=p;var s=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;s.call(this,e,t,r)}}return e}function h(e,t){if(t&&e?.constructor===t)return`bigNumber`;let n=function(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(e);return n===`number`&&(n=isNaN(e)?`nan`:(0|e)===e?`integer`:`float`),n}function g(e){return e.replace(/\\/g,`\\\\`).replace(/\n/g,`\\n`).replace(/\t/g,`\\t`).replace(/\r/g,`\\r`).replace(/\f/g,`\\f`)}s(),d.__suppressDeprecationWarning=!0,f.__suppressDeprecationWarning=!0,p.__suppressDeprecationWarning=!0;let _=class extends u()().PureComponent{render(){let{props:e}=this,{parent_type:t,namespace:n,quotesOnKeys:r,indentWidth:i,theme:a,singleIndent:o,showComma:s,isLast:c,jsvRoot:l}=e,d=e.name?e.name:``;return u()().createElement(`div`,{className:`variable-row`},u()().createElement(`span`,{...F(a,`object-name`),key:n,...F(a,`objectKeyVal`,{paddingLeft:i*o})},u()().createElement(`span`,{className:`object-key`},r&&u()().createElement(`span`,{style:{verticalAlign:`top`}},`"`),u()().createElement(`span`,null,d),r&&u()().createElement(`span`,{style:{verticalAlign:`top`}},`"`)),u()().createElement(`span`,F(a,`colon`),`:`)),u()().createElement(`span`,F(a,`circularReference`),`[CIRCULAR REFERENCE]`),s&&!c&&!l&&u()().createElement(`span`,F(a,`comma`),`,`))}},v={scheme:`rjv-default`,author:`mac gainor`,base00:`rgba(0, 0, 0, 0)`,base01:`rgb(245, 245, 245)`,base02:`rgb(235, 235, 235)`,base03:`#93a1a1`,base04:`rgba(0, 0, 0, 0.3)`,base05:`#586e75`,base06:`#073642`,base07:`#002b36`,base08:`#d33682`,base09:`#cb4b16`,base0A:`#dc322f`,base0B:`#859900`,base0C:`#6c71c4`,base0D:`#586e75`,base0E:`#2aa198`,base0F:`#268bd2`},y={scheme:`rjv-grey`,author:`mac gainor`,base00:`rgba(1, 1, 1, 0)`,base01:`rgba(1, 1, 1, 0.1)`,base02:`rgba(0, 0, 0, 0.2)`,base03:`rgba(1, 1, 1, 0.3)`,base04:`rgba(0, 0, 0, 0.4)`,base05:`rgba(1, 1, 1, 0.5)`,base06:`rgba(1, 1, 1, 0.6)`,base07:`rgba(1, 1, 1, 0.7)`,base08:`rgba(1, 1, 1, 0.8)`,base09:`rgba(1, 1, 1, 0.8)`,base0A:`rgba(1, 1, 1, 0.8)`,base0B:`rgba(1, 1, 1, 0.8)`,base0C:`rgba(1, 1, 1, 0.8)`,base0D:`rgba(1, 1, 1, 0.8)`,base0E:`rgba(1, 1, 1, 0.8)`,base0F:`rgba(1, 1, 1, 0.8)`},b={white:`#fff`,black:`#000`,transparent:`rgba(1, 1, 1, 0)`,globalFontFamily:`monospace`,globalCursor:`default`,indentBlockWidth:`5px`,braceFontWeight:`bold`,braceCursor:`pointer`,ellipsisFontSize:`18px`,ellipsisLineHeight:`10px`,ellipsisCursor:`pointer`,keyMargin:`0px 5px`,keyLetterSpacing:`0.5px`,keyFontStyle:`none`,keyBorderRadius:`3px`,keyColonWeight:`bold`,keyVerticalAlign:`top`,keyOpacity:`0.85`,keyOpacityHover:`1`,keyValPaddingTop:`3px`,keyValPaddingBottom:`3px`,keyValPaddingRight:`5px`,keyValBorderLeft:`1px solid`,keyValBorderHover:`2px solid`,keyValPaddingHover:`3px 5px 3px 4px`,pushedContentMarginLeft:`6px`,variableValuePaddingRight:`6px`,nullFontSize:`11px`,nullFontWeight:`bold`,nullPadding:`1px 2px`,nullBorderRadius:`3px`,nanFontSize:`11px`,nanFontWeight:`bold`,nanPadding:`1px 2px`,nanBorderRadius:`3px`,undefinedFontSize:`11px`,undefinedFontWeight:`bold`,undefinedPadding:`1px 2px`,undefinedBorderRadius:`3px`,dataTypeFontSize:`11px`,dataTypeMarginRight:`4px`,datatypeOpacity:`0.8`,objectSizeBorderRadius:`3px`,objectSizeFontStyle:`italic`,objectSizeMargin:`0px 6px 0px 0px`,clipboardCursor:`pointer`,clipboardCheckMarginLeft:`-12px`,metaDataPadding:`0px 0px 0px 10px`,arrayGroupMetaPadding:`0px 0px 0px 4px`,iconContainerWidth:`17px`,tooltipPadding:`4px`,editInputMinWidth:`130px`,editInputBorderRadius:`2px`,editInputPadding:`5px`,editInputMarginRight:`4px`,editInputFontFamily:`monospace`,iconCursor:`pointer`,iconFontSize:`15px`,iconPaddingRight:`1px`,dateValueMarginLeft:`2px`,iconMarginRight:`3px`,detectedRowPaddingTop:`3px`,addKeyCoverBackground:`rgba(255, 255, 255, 0.3)`,addKeyCoverPosition:`absolute`,addKeyCoverPositionPx:`0px`,addKeyModalWidth:`200px`,addKeyModalMargin:`auto`,addKeyModalPadding:`10px`,addKeyModalRadius:`3px`,commaColor:`#666`,commaFontSize:`12px`,commaMarginRight:`4px`};var x=r(742);let S=function(e){return e},C=typeof global==`object`&&global&&global.Object===Object&&global;var w=typeof self==`object`&&self&&self.Object===Object&&self;let T=C||w||Function(`return this`)(),E=T.Symbol;var D=Object.prototype,O=D.hasOwnProperty,k=D.toString,A=E?E.toStringTag:void 0;let ee=function(e){var t=O.call(e,A),n=e[A];try{e[A]=void 0;var r=!0}catch{}var i=k.call(e);return r&&(t?e[A]=n:delete e[A]),i};var j=Object.prototype.toString;let te=function(e){return j.call(e)};var M=E?E.toStringTag:void 0;let ne=function(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:M&&M in Object(e)?ee(e):te(e)},re=function(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)},ie=function(e){if(!re(e))return!1;var t=ne(e);return t==`[object Function]`||t==`[object GeneratorFunction]`||t==`[object AsyncFunction]`||t==`[object Proxy]`},ae=T[`__core-js_shared__`];var oe,N=(oe=/[^.]+$/.exec(ae&&ae.keys&&ae.keys.IE_PROTO||``))?`Symbol(src)_1.`+oe:``;let se=function(e){return!!N&&N in e};var ce=Function.prototype.toString;let le=function(e){if(e!=null){try{return ce.call(e)}catch{}try{return e+``}catch{}}return``};var ue=/^\[object .+?Constructor\]$/,de=Function.prototype,fe=Object.prototype,pe=de.toString,me=fe.hasOwnProperty,he=RegExp(`^`+pe.call(me).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);let ge=function(e){return!(!re(e)||se(e))&&(ie(e)?he:ue).test(le(e))},_e=function(e,t){return e?.[t]},ve=function(e,t){var n=_e(e,t);return ge(n)?n:void 0};var ye=ve(T,`WeakMap`);let be=ye&&new ye,xe=be?function(e,t){return be.set(e,t),e}:S;var Se=Object.create;let Ce=function(){function e(){}return function(t){if(!re(t))return{};if(Se)return Se(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),we=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Ce(e.prototype),r=e.apply(n,t);return re(r)?r:n}},Te=function(e,t,n){var r=1&t,i=we(e);return function t(){return(this&&this!==T&&this instanceof t?i:e).apply(r?n:this,arguments)}},Ee=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)};var De=Math.max;let Oe=function(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,c=t.length,l=De(a-o,0),u=Array(c+l),d=!r;++s<c;)u[s]=t[s];for(;++i<o;)(d||i<a)&&(u[n[i]]=e[i]);for(;l--;)u[s++]=e[i++];return u};var ke=Math.max;let Ae=function(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,c=-1,l=t.length,u=ke(a-s,0),d=Array(u+l),f=!r;++i<u;)d[i]=e[i];for(var p=i;++c<l;)d[p+c]=t[c];for(;++o<s;)(f||i<a)&&(d[p+n[o]]=e[i++]);return d},je=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r},Me=function(){};function Ne(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}Ne.prototype=Ce(Me.prototype),Ne.prototype.constructor=Ne;let Pe=Ne,Fe=be?function(e){return be.get(e)}:function(){},Ie={};var Le=Object.prototype.hasOwnProperty;let Re=function(e){for(var t=e.name+``,n=Ie[t],r=Le.call(Ie,t)?n.length:0;r--;){var i=n[r],a=i.func;if(a==null||a==e)return i.name}return t};function ze(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}ze.prototype=Ce(Me.prototype),ze.prototype.constructor=ze;let P=ze,Be=Array.isArray,Ve=function(e){return typeof e==`object`&&!!e},He=function(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t},Ue=function(e){if(e instanceof Pe)return e.clone();var t=new P(e.__wrapped__,e.__chain__);return t.__actions__=He(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t};var We=Object.prototype.hasOwnProperty;function Ge(e){if(Ve(e)&&!Be(e)&&!(e instanceof Pe)){if(e instanceof P)return e;if(We.call(e,`__wrapped__`))return Ue(e)}return new P(e)}Ge.prototype=Me.prototype,Ge.prototype.constructor=Ge;let Ke=Ge,qe=function(e){var t=Re(e),n=Ke[t];if(typeof n!=`function`||!(t in Pe.prototype))return!1;if(e===n)return!0;var r=Fe(n);return!!r&&e===r[0]};var Je=Date.now;let Ye=function(e){var t=0,n=0;return function(){var r=Je(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},Xe=Ye(xe);var Ze=/\{\n\/\* \[wrapped with (.+)\] \*/,Qe=/,? & /;let $e=function(e){var t=e.match(Ze);return t?t[1].split(Qe):[]};var et=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;let tt=function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?`& `:``)+t[r],t=t.join(n>2?`, `:` `),e.replace(et,`{
|
|
892
|
+
/* [wrapped with `+t+`] */
|
|
893
|
+
`)},nt=function(e){return function(){return e}},rt=function(){try{var e=ve(Object,`defineProperty`);return e({},``,{}),e}catch{}}(),it=Ye(rt?function(e,t){return rt(e,`toString`,{configurable:!0,enumerable:!1,value:nt(t),writable:!0})}:S),at=function(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},ot=function(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1},st=function(e){return e!=e},ct=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1},lt=function(e,t,n){return t==t?ct(e,t,n):ot(e,st,n)},ut=function(e,t){return!!(e!=null&&e.length)&<(e,t,0)>-1};var dt=[[`ary`,128],[`bind`,1],[`bindKey`,2],[`curry`,8],[`curryRight`,16],[`flip`,512],[`partial`,32],[`partialRight`,64],[`rearg`,256]];let ft=function(e,t){return at(dt,function(n){var r=`_.`+n[0];t&n[1]&&!ut(e,r)&&e.push(r)}),e.sort()},pt=function(e,t,n){var r=t+``;return it(e,tt(r,ft($e(r),n)))},mt=function(e,t,n,r,i,a,o,s,c,l){var u=8&t;t|=u?32:64,4&(t&=~(u?64:32))||(t&=-4);var d=[e,t,i,u?a:void 0,u?o:void 0,u?void 0:a,u?void 0:o,s,c,l],f=n.apply(void 0,d);return qe(e)&&Xe(f,d),f.placeholder=r,pt(f,e,t)},ht=function(e){return e.placeholder};var gt=/^(?:0|[1-9]\d*)$/;let _t=function(e,t){var n=typeof e;return!!(t??=9007199254740991)&&(n==`number`||n!=`symbol`&>.test(e))&&e>-1&&e%1==0&&e<t};var vt=Math.min;let yt=function(e,t){for(var n=e.length,r=vt(t.length,n),i=He(e);r--;){var a=t[r];e[r]=_t(a,n)?i[a]:void 0}return e};var bt=`__lodash_placeholder__`;let xt=function(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n];o!==t&&o!==bt||(e[n]=bt,a[i++]=n)}return a},St=function e(t,n,r,i,a,o,s,c,l,u){var d=128&n,f=1&n,p=2&n,m=24&n,h=512&n,g=p?void 0:we(t);return function _(){for(var v=arguments.length,y=Array(v),b=v;b--;)y[b]=arguments[b];if(m)var x=ht(_),S=je(y,x);if(i&&(y=Oe(y,i,a,m)),o&&(y=Ae(y,o,s,m)),v-=S,m&&v<u){var C=xt(y,x);return mt(t,n,e,_.placeholder,r,y,C,c,l,u-v)}var w=f?r:this,E=p?w[t]:t;return v=y.length,c?y=yt(y,c):h&&v>1&&y.reverse(),d&&l<v&&(y.length=l),this&&this!==T&&this instanceof _&&(E=g||we(E)),E.apply(w,y)}},Ct=function(e,t,n){var r=we(e);return function i(){for(var a=arguments.length,o=Array(a),s=a,c=ht(i);s--;)o[s]=arguments[s];var l=a<3&&o[0]!==c&&o[a-1]!==c?[]:xt(o,c);return(a-=l.length)<n?mt(e,t,St,i.placeholder,void 0,o,l,void 0,void 0,n-a):Ee(this&&this!==T&&this instanceof i?r:e,this,o)}},wt=function(e,t,n,r){var i=1&t,a=we(e);return function t(){for(var o=-1,s=arguments.length,c=-1,l=r.length,u=Array(l+s),d=this&&this!==T&&this instanceof t?a:e;++c<l;)u[c]=r[c];for(;s--;)u[c++]=arguments[++o];return Ee(d,i?n:this,u)}};var Tt=`__lodash_placeholder__`,Et=128,Dt=Math.min;let Ot=function(e,t){var n=e[1],r=t[1],i=n|r,a=i<131,o=r==Et&&n==8||r==Et&&n==256&&e[7].length<=t[8]||r==384&&t[7].length<=t[8]&&n==8;if(!a&&!o)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var s=t[3];if(s){var c=e[3];e[3]=c?Oe(c,s,t[4]):s,e[4]=c?xt(e[3],Tt):t[4]}return(s=t[5])&&(c=e[5],e[5]=c?Ae(c,s,t[6]):s,e[6]=c?xt(e[5],Tt):t[6]),(s=t[7])&&(e[7]=s),r&Et&&(e[8]=e[8]==null?t[8]:Dt(e[8],t[8])),e[9]??=t[9],e[0]=t[0],e[1]=i,e};var kt=/\s/;let At=function(e){for(var t=e.length;t--&&kt.test(e.charAt(t)););return t};var jt=/^\s+/;let Mt=function(e){return e&&e.slice(0,At(e)+1).replace(jt,``)},Nt=function(e){return typeof e==`symbol`||Ve(e)&&ne(e)==`[object Symbol]`};var Pt=/^[-+]0x[0-9a-f]+$/i,Ft=/^0b[01]+$/i,It=/^0o[0-7]+$/i,Lt=parseInt;let Rt=function(e){if(typeof e==`number`)return e;if(Nt(e))return NaN;if(re(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=re(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=Mt(e);var n=Ft.test(e);return n||It.test(e)?Lt(e.slice(2),n?2:8):Pt.test(e)?NaN:+e};var zt=1/0;let Bt=function(e){return e?(e=Rt(e))===zt||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:e===0?e:0},Vt=function(e){var t=Bt(e),n=t%1;return t==t?n?t-n:t:0};var Ht=Math.max;let Ut=function(e,t,n,r,i,a,o,s){var c=2&t;if(!c&&typeof e!=`function`)throw TypeError(`Expected a function`);var l=r?r.length:0;if(l||(t&=-97,r=i=void 0),o=o===void 0?o:Ht(Vt(o),0),s=s===void 0?s:Vt(s),l-=i?i.length:0,64&t){var u=r,d=i;r=i=void 0}var f=c?void 0:Fe(e),p=[e,t,n,r,i,u,d,a,o,s];if(f&&Ot(p,f),e=p[0],t=p[1],n=p[2],r=p[3],i=p[4],!(s=p[9]=p[9]===void 0?c?0:e.length:Ht(p[9]-l,0))&&24&t&&(t&=-25),t&&t!=1)m=t==8||t==16?Ct(e,t,s):t!=32&&t!=33||i.length?St.apply(void 0,p):wt(e,t,n,r);else var m=Te(e,t,n);return pt((f?xe:Xe)(m,p),e,t)};function Wt(e,t,n){var r=Ut(e,8,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=Wt.placeholder,r}Wt.placeholder={};let Gt=Wt,Kt={threezerotwofour:{scheme:`threezerotwofour`,author:`jan t. sott (http://github.com/idleberg)`,base00:`#090300`,base01:`#3a3432`,base02:`#4a4543`,base03:`#5c5855`,base04:`#807d7c`,base05:`#a5a2a2`,base06:`#d6d5d4`,base07:`#f7f7f7`,base08:`#db2d20`,base09:`#e8bbd0`,base0A:`#fded02`,base0B:`#01a252`,base0C:`#b5e4f4`,base0D:`#01a0e4`,base0E:`#a16a94`,base0F:`#cdab53`},apathy:{scheme:`apathy`,author:`jannik siebert (https://github.com/janniks)`,base00:`#031A16`,base01:`#0B342D`,base02:`#184E45`,base03:`#2B685E`,base04:`#5F9C92`,base05:`#81B5AC`,base06:`#A7CEC8`,base07:`#D2E7E4`,base08:`#3E9688`,base09:`#3E7996`,base0A:`#3E4C96`,base0B:`#883E96`,base0C:`#963E4C`,base0D:`#96883E`,base0E:`#4C963E`,base0F:`#3E965B`},ashes:{scheme:`ashes`,author:`jannik siebert (https://github.com/janniks)`,base00:`#1C2023`,base01:`#393F45`,base02:`#565E65`,base03:`#747C84`,base04:`#ADB3BA`,base05:`#C7CCD1`,base06:`#DFE2E5`,base07:`#F3F4F5`,base08:`#C7AE95`,base09:`#C7C795`,base0A:`#AEC795`,base0B:`#95C7AE`,base0C:`#95AEC7`,base0D:`#AE95C7`,base0E:`#C795AE`,base0F:`#C79595`},atelierDune:{scheme:`atelier dune`,author:`bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)`,base00:`#20201d`,base01:`#292824`,base02:`#6e6b5e`,base03:`#7d7a68`,base04:`#999580`,base05:`#a6a28c`,base06:`#e8e4cf`,base07:`#fefbec`,base08:`#d73737`,base09:`#b65611`,base0A:`#cfb017`,base0B:`#60ac39`,base0C:`#1fad83`,base0D:`#6684e1`,base0E:`#b854d4`,base0F:`#d43552`},atelierForest:{scheme:`atelier forest`,author:`bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)`,base00:`#1b1918`,base01:`#2c2421`,base02:`#68615e`,base03:`#766e6b`,base04:`#9c9491`,base05:`#a8a19f`,base06:`#e6e2e0`,base07:`#f1efee`,base08:`#f22c40`,base09:`#df5320`,base0A:`#d5911a`,base0B:`#5ab738`,base0C:`#00ad9c`,base0D:`#407ee7`,base0E:`#6666ea`,base0F:`#c33ff3`},atelierHeath:{scheme:`atelier heath`,author:`bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)`,base00:`#1b181b`,base01:`#292329`,base02:`#695d69`,base03:`#776977`,base04:`#9e8f9e`,base05:`#ab9bab`,base06:`#d8cad8`,base07:`#f7f3f7`,base08:`#ca402b`,base09:`#a65926`,base0A:`#bb8a35`,base0B:`#379a37`,base0C:`#159393`,base0D:`#516aec`,base0E:`#7b59c0`,base0F:`#cc33cc`},atelierLakeside:{scheme:`atelier lakeside`,author:`bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)`,base00:`#161b1d`,base01:`#1f292e`,base02:`#516d7b`,base03:`#5a7b8c`,base04:`#7195a8`,base05:`#7ea2b4`,base06:`#c1e4f6`,base07:`#ebf8ff`,base08:`#d22d72`,base09:`#935c25`,base0A:`#8a8a0f`,base0B:`#568c3b`,base0C:`#2d8f6f`,base0D:`#257fad`,base0E:`#5d5db1`,base0F:`#b72dd2`},atelierSeaside:{scheme:`atelier seaside`,author:`bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)`,base00:`#131513`,base01:`#242924`,base02:`#5e6e5e`,base03:`#687d68`,base04:`#809980`,base05:`#8ca68c`,base06:`#cfe8cf`,base07:`#f0fff0`,base08:`#e6193c`,base09:`#87711d`,base0A:`#c3c322`,base0B:`#29a329`,base0C:`#1999b3`,base0D:`#3d62f5`,base0E:`#ad2bee`,base0F:`#e619c3`},bespin:{scheme:`bespin`,author:`jan t. sott`,base00:`#28211c`,base01:`#36312e`,base02:`#5e5d5c`,base03:`#666666`,base04:`#797977`,base05:`#8a8986`,base06:`#9d9b97`,base07:`#baae9e`,base08:`#cf6a4c`,base09:`#cf7d34`,base0A:`#f9ee98`,base0B:`#54be0d`,base0C:`#afc4db`,base0D:`#5ea6ea`,base0E:`#9b859d`,base0F:`#937121`},brewer:{scheme:`brewer`,author:`timothée poisot (http://github.com/tpoisot)`,base00:`#0c0d0e`,base01:`#2e2f30`,base02:`#515253`,base03:`#737475`,base04:`#959697`,base05:`#b7b8b9`,base06:`#dadbdc`,base07:`#fcfdfe`,base08:`#e31a1c`,base09:`#e6550d`,base0A:`#dca060`,base0B:`#31a354`,base0C:`#80b1d3`,base0D:`#3182bd`,base0E:`#756bb1`,base0F:`#b15928`},bright:{scheme:`bright`,author:`chris kempson (http://chriskempson.com)`,base00:`#000000`,base01:`#303030`,base02:`#505050`,base03:`#b0b0b0`,base04:`#d0d0d0`,base05:`#e0e0e0`,base06:`#f5f5f5`,base07:`#ffffff`,base08:`#fb0120`,base09:`#fc6d24`,base0A:`#fda331`,base0B:`#a1c659`,base0C:`#76c7b7`,base0D:`#6fb3d2`,base0E:`#d381c3`,base0F:`#be643c`},chalk:{scheme:`chalk`,author:`chris kempson (http://chriskempson.com)`,base00:`#151515`,base01:`#202020`,base02:`#303030`,base03:`#505050`,base04:`#b0b0b0`,base05:`#d0d0d0`,base06:`#e0e0e0`,base07:`#f5f5f5`,base08:`#fb9fb1`,base09:`#eda987`,base0A:`#ddb26f`,base0B:`#acc267`,base0C:`#12cfc0`,base0D:`#6fc2ef`,base0E:`#e1a3ee`,base0F:`#deaf8f`},codeschool:{scheme:`codeschool`,author:`brettof86`,base00:`#232c31`,base01:`#1c3657`,base02:`#2a343a`,base03:`#3f4944`,base04:`#84898c`,base05:`#9ea7a6`,base06:`#a7cfa3`,base07:`#b5d8f6`,base08:`#2a5491`,base09:`#43820d`,base0A:`#a03b1e`,base0B:`#237986`,base0C:`#b02f30`,base0D:`#484d79`,base0E:`#c59820`,base0F:`#c98344`},colors:{scheme:`colors`,author:`mrmrs (http://clrs.cc)`,base00:`#111111`,base01:`#333333`,base02:`#555555`,base03:`#777777`,base04:`#999999`,base05:`#bbbbbb`,base06:`#dddddd`,base07:`#ffffff`,base08:`#ff4136`,base09:`#ff851b`,base0A:`#ffdc00`,base0B:`#2ecc40`,base0C:`#7fdbff`,base0D:`#0074d9`,base0E:`#b10dc9`,base0F:`#85144b`},default:{scheme:`default`,author:`chris kempson (http://chriskempson.com)`,base00:`#181818`,base01:`#282828`,base02:`#383838`,base03:`#585858`,base04:`#b8b8b8`,base05:`#d8d8d8`,base06:`#e8e8e8`,base07:`#f8f8f8`,base08:`#ab4642`,base09:`#dc9656`,base0A:`#f7ca88`,base0B:`#a1b56c`,base0C:`#86c1b9`,base0D:`#7cafc2`,base0E:`#ba8baf`,base0F:`#a16946`},eighties:{scheme:`eighties`,author:`chris kempson (http://chriskempson.com)`,base00:`#2d2d2d`,base01:`#393939`,base02:`#515151`,base03:`#747369`,base04:`#a09f93`,base05:`#d3d0c8`,base06:`#e8e6df`,base07:`#f2f0ec`,base08:`#f2777a`,base09:`#f99157`,base0A:`#ffcc66`,base0B:`#99cc99`,base0C:`#66cccc`,base0D:`#6699cc`,base0E:`#cc99cc`,base0F:`#d27b53`},embers:{scheme:`embers`,author:`jannik siebert (https://github.com/janniks)`,base00:`#16130F`,base01:`#2C2620`,base02:`#433B32`,base03:`#5A5047`,base04:`#8A8075`,base05:`#A39A90`,base06:`#BEB6AE`,base07:`#DBD6D1`,base08:`#826D57`,base09:`#828257`,base0A:`#6D8257`,base0B:`#57826D`,base0C:`#576D82`,base0D:`#6D5782`,base0E:`#82576D`,base0F:`#825757`},flat:{scheme:`flat`,author:`chris kempson (http://chriskempson.com)`,base00:`#2C3E50`,base01:`#34495E`,base02:`#7F8C8D`,base03:`#95A5A6`,base04:`#BDC3C7`,base05:`#e0e0e0`,base06:`#f5f5f5`,base07:`#ECF0F1`,base08:`#E74C3C`,base09:`#E67E22`,base0A:`#F1C40F`,base0B:`#2ECC71`,base0C:`#1ABC9C`,base0D:`#3498DB`,base0E:`#9B59B6`,base0F:`#be643c`},google:{scheme:`google`,author:`seth wright (http://sethawright.com)`,base00:`#1d1f21`,base01:`#282a2e`,base02:`#373b41`,base03:`#969896`,base04:`#b4b7b4`,base05:`#c5c8c6`,base06:`#e0e0e0`,base07:`#ffffff`,base08:`#CC342B`,base09:`#F96A38`,base0A:`#FBA922`,base0B:`#198844`,base0C:`#3971ED`,base0D:`#3971ED`,base0E:`#A36AC7`,base0F:`#3971ED`},grayscale:{scheme:`grayscale`,author:`alexandre gavioli (https://github.com/alexx2/)`,base00:`#101010`,base01:`#252525`,base02:`#464646`,base03:`#525252`,base04:`#ababab`,base05:`#b9b9b9`,base06:`#e3e3e3`,base07:`#f7f7f7`,base08:`#7c7c7c`,base09:`#999999`,base0A:`#a0a0a0`,base0B:`#8e8e8e`,base0C:`#868686`,base0D:`#686868`,base0E:`#747474`,base0F:`#5e5e5e`},greenscreen:{scheme:`green screen`,author:`chris kempson (http://chriskempson.com)`,base00:`#001100`,base01:`#003300`,base02:`#005500`,base03:`#007700`,base04:`#009900`,base05:`#00bb00`,base06:`#00dd00`,base07:`#00ff00`,base08:`#007700`,base09:`#009900`,base0A:`#007700`,base0B:`#00bb00`,base0C:`#005500`,base0D:`#009900`,base0E:`#00bb00`,base0F:`#005500`},harmonic:{scheme:`harmonic16`,author:`jannik siebert (https://github.com/janniks)`,base00:`#0b1c2c`,base01:`#223b54`,base02:`#405c79`,base03:`#627e99`,base04:`#aabcce`,base05:`#cbd6e2`,base06:`#e5ebf1`,base07:`#f7f9fb`,base08:`#bf8b56`,base09:`#bfbf56`,base0A:`#8bbf56`,base0B:`#56bf8b`,base0C:`#568bbf`,base0D:`#8b56bf`,base0E:`#bf568b`,base0F:`#bf5656`},hopscotch:{scheme:`hopscotch`,author:`jan t. sott`,base00:`#322931`,base01:`#433b42`,base02:`#5c545b`,base03:`#797379`,base04:`#989498`,base05:`#b9b5b8`,base06:`#d5d3d5`,base07:`#ffffff`,base08:`#dd464c`,base09:`#fd8b19`,base0A:`#fdcc59`,base0B:`#8fc13e`,base0C:`#149b93`,base0D:`#1290bf`,base0E:`#c85e7c`,base0F:`#b33508`},isotope:{scheme:`isotope`,author:`jan t. sott`,base00:`#000000`,base01:`#404040`,base02:`#606060`,base03:`#808080`,base04:`#c0c0c0`,base05:`#d0d0d0`,base06:`#e0e0e0`,base07:`#ffffff`,base08:`#ff0000`,base09:`#ff9900`,base0A:`#ff0099`,base0B:`#33ff00`,base0C:`#00ffff`,base0D:`#0066ff`,base0E:`#cc00ff`,base0F:`#3300ff`},marrakesh:{scheme:`marrakesh`,author:`alexandre gavioli (http://github.com/alexx2/)`,base00:`#201602`,base01:`#302e00`,base02:`#5f5b17`,base03:`#6c6823`,base04:`#86813b`,base05:`#948e48`,base06:`#ccc37a`,base07:`#faf0a5`,base08:`#c35359`,base09:`#b36144`,base0A:`#a88339`,base0B:`#18974e`,base0C:`#75a738`,base0D:`#477ca1`,base0E:`#8868b3`,base0F:`#b3588e`},mocha:{scheme:`mocha`,author:`chris kempson (http://chriskempson.com)`,base00:`#3B3228`,base01:`#534636`,base02:`#645240`,base03:`#7e705a`,base04:`#b8afad`,base05:`#d0c8c6`,base06:`#e9e1dd`,base07:`#f5eeeb`,base08:`#cb6077`,base09:`#d28b71`,base0A:`#f4bc87`,base0B:`#beb55b`,base0C:`#7bbda4`,base0D:`#8ab3b5`,base0E:`#a89bb9`,base0F:`#bb9584`},monokai:{scheme:`monokai`,author:`wimer hazenberg (http://www.monokai.nl)`,base00:`#272822`,base01:`#383830`,base02:`#49483e`,base03:`#75715e`,base04:`#a59f85`,base05:`#f8f8f2`,base06:`#f5f4f1`,base07:`#f9f8f5`,base08:`#f92672`,base09:`#fd971f`,base0A:`#f4bf75`,base0B:`#a6e22e`,base0C:`#a1efe4`,base0D:`#66d9ef`,base0E:`#ae81ff`,base0F:`#cc6633`},nicinabox:{scheme:`nicinabox`,author:`nicinabox (http://github.com/nicinabox)`,base00:`#2A2F3A`,base01:`#3C444F`,base02:`#4F5A65`,base03:`#BEBEBE`,base04:`#b0b0b0`,base05:`#d0d0d0`,base06:`#FFFFFF`,base07:`#f5f5f5`,base08:`#fb9fb1`,base09:`#FC6D24`,base0A:`#ddb26f`,base0B:`#A1C659`,base0C:`#12cfc0`,base0D:`#6FB3D2`,base0E:`#D381C3`,base0F:`#deaf8f`},ocean:{scheme:`ocean`,author:`chris kempson (http://chriskempson.com)`,base00:`#2b303b`,base01:`#343d46`,base02:`#4f5b66`,base03:`#65737e`,base04:`#a7adba`,base05:`#c0c5ce`,base06:`#dfe1e8`,base07:`#eff1f5`,base08:`#bf616a`,base09:`#d08770`,base0A:`#ebcb8b`,base0B:`#a3be8c`,base0C:`#96b5b4`,base0D:`#8fa1b3`,base0E:`#b48ead`,base0F:`#ab7967`},paraiso:{scheme:`paraiso`,author:`jan t. sott`,base00:`#2f1e2e`,base01:`#41323f`,base02:`#4f424c`,base03:`#776e71`,base04:`#8d8687`,base05:`#a39e9b`,base06:`#b9b6b0`,base07:`#e7e9db`,base08:`#ef6155`,base09:`#f99b15`,base0A:`#fec418`,base0B:`#48b685`,base0C:`#5bc4bf`,base0D:`#06b6ef`,base0E:`#815ba4`,base0F:`#e96ba8`},pop:{scheme:`pop`,author:`chris kempson (http://chriskempson.com)`,base00:`#000000`,base01:`#202020`,base02:`#303030`,base03:`#505050`,base04:`#b0b0b0`,base05:`#d0d0d0`,base06:`#e0e0e0`,base07:`#ffffff`,base08:`#eb008a`,base09:`#f29333`,base0A:`#f8ca12`,base0B:`#37b349`,base0C:`#00aabb`,base0D:`#0e5a94`,base0E:`#b31e8d`,base0F:`#7a2d00`},railscasts:{scheme:`railscasts`,author:`ryan bates (http://railscasts.com)`,base00:`#2b2b2b`,base01:`#272935`,base02:`#3a4055`,base03:`#5a647e`,base04:`#d4cfc9`,base05:`#e6e1dc`,base06:`#f4f1ed`,base07:`#f9f7f3`,base08:`#da4939`,base09:`#cc7833`,base0A:`#ffc66d`,base0B:`#a5c261`,base0C:`#519f50`,base0D:`#6d9cbe`,base0E:`#b6b3eb`,base0F:`#bc9458`},shapeshifter:{scheme:`shapeshifter`,author:`tyler benziger (http://tybenz.com)`,base00:`#000000`,base01:`#040404`,base02:`#102015`,base03:`#343434`,base04:`#555555`,base05:`#ababab`,base06:`#e0e0e0`,base07:`#f9f9f9`,base08:`#e92f2f`,base09:`#e09448`,base0A:`#dddd13`,base0B:`#0ed839`,base0C:`#23edda`,base0D:`#3b48e3`,base0E:`#f996e2`,base0F:`#69542d`},solarized:{scheme:`solarized`,author:`ethan schoonover (http://ethanschoonover.com/solarized)`,base00:`#002b36`,base01:`#073642`,base02:`#586e75`,base03:`#657b83`,base04:`#839496`,base05:`#93a1a1`,base06:`#eee8d5`,base07:`#fdf6e3`,base08:`#dc322f`,base09:`#cb4b16`,base0A:`#b58900`,base0B:`#859900`,base0C:`#2aa198`,base0D:`#268bd2`,base0E:`#6c71c4`,base0F:`#d33682`},summerfruit:{scheme:`summerfruit`,author:`christopher corley (http://cscorley.github.io/)`,base00:`#151515`,base01:`#202020`,base02:`#303030`,base03:`#505050`,base04:`#B0B0B0`,base05:`#D0D0D0`,base06:`#E0E0E0`,base07:`#FFFFFF`,base08:`#FF0086`,base09:`#FD8900`,base0A:`#ABA800`,base0B:`#00C918`,base0C:`#1faaaa`,base0D:`#3777E6`,base0E:`#AD00A1`,base0F:`#cc6633`},tomorrow:{scheme:`tomorrow`,author:`chris kempson (http://chriskempson.com)`,base00:`#1d1f21`,base01:`#282a2e`,base02:`#373b41`,base03:`#969896`,base04:`#b4b7b4`,base05:`#c5c8c6`,base06:`#e0e0e0`,base07:`#ffffff`,base08:`#cc6666`,base09:`#de935f`,base0A:`#f0c674`,base0B:`#b5bd68`,base0C:`#8abeb7`,base0D:`#81a2be`,base0E:`#b294bb`,base0F:`#a3685a`},tube:{scheme:`london tube`,author:`jan t. sott`,base00:`#231f20`,base01:`#1c3f95`,base02:`#5a5758`,base03:`#737171`,base04:`#959ca1`,base05:`#d9d8d8`,base06:`#e7e7e8`,base07:`#ffffff`,base08:`#ee2e24`,base09:`#f386a1`,base0A:`#ffd204`,base0B:`#00853e`,base0C:`#85cebc`,base0D:`#009ddc`,base0E:`#98005d`,base0F:`#b06110`},twilight:{scheme:`twilight`,author:`david hart (http://hart-dev.com)`,base00:`#1e1e1e`,base01:`#323537`,base02:`#464b50`,base03:`#5f5a60`,base04:`#838184`,base05:`#a7a7a7`,base06:`#c3c3c3`,base07:`#ffffff`,base08:`#cf6a4c`,base09:`#cda869`,base0A:`#f9ee98`,base0B:`#8f9d6a`,base0C:`#afc4db`,base0D:`#7587a6`,base0E:`#9b859d`,base0F:`#9b703f`}},qt=Kt.default,Jt=Object.keys(qt),Yt=e=>{let[t,n,r]=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;return[.299*t+.587*n+.114*r,-.14713*t+-.28886*n+.436*r,.615*t+-.51499*n+-.10001*r]}(x(e).array());var i;let a=function(e){let t=e[0],n=e[1],r=e[2],i,a,o;return i=1*t+0*n+1.13983*r,a=1*t+-.39465*n+-.5806*r,o=1*t+2.02311*n+0*r,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[255*i,255*a,255*o]}([(i=t,i<.25?1:i<.5?.9-i:1.1-i),n,r]);return x.rgb(a).hex()},Xt=e=>t=>({className:[t.className,e.className].filter(Boolean).join(` `),style:{...t.style||{},...e.style||{}}}),Zt=(e,t)=>{let n=Object.keys(t);for(let t in e)n.indexOf(t)===-1&&n.push(t);return n.reduce((n,r)=>(n[r]=((e,t)=>{if(e===void 0)return t;if(t===void 0)return e;let n=typeof t;switch(typeof e){case`string`:switch(n){case`string`:return[t,e].filter(Boolean).join(` `);case`object`:return Xt({className:e,style:t});case`function`:return(n,...r)=>Xt({className:e})(t(n,...r))}break;case`object`:switch(n){case`string`:return Xt({className:t,style:e});case`object`:return{...t,...e};case`function`:return(n,...r)=>Xt({style:e})(t(n,...r))}break;case`function`:switch(n){case`string`:return(n,...r)=>e(Xt(n)({className:t}),...r);case`object`:return(n,...r)=>e(Xt(n)({style:t}),...r);case`function`:return(n,...r)=>e(t(n,...r),...r)}}})(e[r],t[r]),n),{})},Qt=(e,t,...n)=>{if(t===null)return e;Array.isArray(t)||(t=[t]);let r=t.map(t=>e[t]).filter(Boolean).reduce((e,t)=>(typeof t==`string`?e.className=[e.className,t].filter(Boolean).join(` `):typeof t==`object`?e.style={...e.style,...t}:typeof t==`function`&&(e={...e,...t(e,...n)}),e),{className:``,style:{}});return r.className||delete r.className,Object.keys(r.style).length===0&&delete r.style,r},$t=e=>Object.keys(e).reduce((t,n)=>(t[n]=/^base/.test(n)?Yt(e[n]):n===`scheme`?e[n]+`:inverted`:e[n],t),{}),en=Gt((e,t={},n={},...r)=>{let{defaultBase16:i=qt,base16Themes:a=null}=t,o=nn(n,a);o&&(n={...o,...n});let s=Jt.reduce((e,t)=>(e[t]=n[t]||i[t],e),{}),c=Object.keys(n).reduce((e,t)=>(Jt.indexOf(t)===-1&&(e[t]=n[t]),e),{}),l=e(s),u=Zt(c,l);return Gt(Qt,2)(u,...r)},3),tn=e=>!!e.extend,nn=(e,t)=>{if(e&&tn(e)&&e.extend&&(e=e.extend),typeof e==`string`){let[n,r]=e.split(`:`);e=t?t[n]:Kt[n],r===`inverted`&&(e=$t(e))}return e&&Object.prototype.hasOwnProperty.call(e,`base00`)?e:void 0},rn=e=>{let t=(e=>({backgroundColor:e.base00,ellipsisColor:e.base09,braceColor:e.base07,expandedIcon:e.base0D,collapsedIcon:e.base0E,keyColor:e.base07,arrayKeyColor:e.base0C,objectSize:e.base04,copyToClipboard:e.base0F,copyToClipboardCheck:e.base0D,objectBorder:e.base02,dataTypes:{boolean:e.base0E,date:e.base0D,float:e.base0B,function:e.base0D,integer:e.base0F,string:e.base09,nan:e.base08,null:e.base0A,undefined:e.base05,regexp:e.base0A,background:e.base02,bigNumber:e.base09},editVariable:{editIcon:e.base0E,cancelIcon:e.base09,removeIcon:e.base09,addIcon:e.base0E,checkIcon:e.base0E,background:e.base01,color:e.base0A,border:e.base07},addKeyModal:{background:e.base05,border:e.base04,color:e.base0A,labelColor:e.base01},validationFailure:{background:e.base09,iconColor:e.base01,fontColor:e.base01}}))(e);return{"app-container":{fontFamily:b.globalFontFamily,cursor:b.globalCursor,backgroundColor:t.backgroundColor,position:`relative`},ellipsis:{display:`inline-block`,color:t.ellipsisColor,fontSize:b.ellipsisFontSize,lineHeight:b.ellipsisLineHeight,cursor:b.ellipsisCursor},"brace-row":{display:`inline-block`,cursor:`pointer`},brace:{display:`inline-block`,cursor:b.braceCursor,fontWeight:b.braceFontWeight,color:t.braceColor},"expanded-icon":{color:t.expandedIcon},"collapsed-icon":{color:t.collapsedIcon},colon:{display:`inline-block`,margin:b.keyMargin,color:t.keyColor,verticalAlign:`top`},objectKeyVal:(e,n)=>({style:{paddingTop:b.keyValPaddingTop,paddingRight:b.keyValPaddingRight,paddingBottom:b.keyValPaddingBottom,borderLeft:b.keyValBorderLeft+` `+t.objectBorder,":hover":{paddingLeft:n.paddingLeft-1+`px`,borderLeft:b.keyValBorderHover+` `+t.objectBorder},...n}}),"object-key-val-no-border":{padding:b.keyValPadding},"pushed-content":{marginLeft:b.pushedContentMarginLeft},variableValue:(e,t)=>({style:{display:`inline-block`,paddingRight:b.variableValuePaddingRight,position:`relative`,...t}}),"object-name":{display:`inline-block`,color:t.keyColor,letterSpacing:b.keyLetterSpacing,fontStyle:b.keyFontStyle,verticalAlign:b.keyVerticalAlign,opacity:b.keyOpacity,":hover":{opacity:b.keyOpacityHover}},"array-key":{display:`inline-block`,color:t.arrayKeyColor,letterSpacing:b.keyLetterSpacing,fontStyle:b.keyFontStyle,verticalAlign:b.keyVerticalAlign,opacity:b.keyOpacity,":hover":{opacity:b.keyOpacityHover}},"object-size":{color:t.objectSize,borderRadius:b.objectSizeBorderRadius,fontStyle:b.objectSizeFontStyle,margin:b.objectSizeMargin,cursor:`default`},"data-type-label":{fontSize:b.dataTypeFontSize,marginRight:b.dataTypeMarginRight,opacity:b.datatypeOpacity},boolean:{display:`inline-block`,color:t.dataTypes.boolean},date:{display:`inline-block`,color:t.dataTypes.date},"date-value":{marginLeft:b.dateValueMarginLeft},float:{display:`inline-block`,color:t.dataTypes.float},function:{display:`inline-block`,color:t.dataTypes.function,cursor:`pointer`,whiteSpace:`pre-line`},"function-value":{fontStyle:`italic`},integer:{display:`inline-block`,color:t.dataTypes.integer},bigNumber:{display:`inline-block`,color:t.dataTypes.bigNumber},string:{display:`inline-block`,color:t.dataTypes.string},nan:{display:`inline-block`,color:t.dataTypes.nan,fontSize:b.nanFontSize,fontWeight:b.nanFontWeight,backgroundColor:t.dataTypes.background,padding:b.nanPadding,borderRadius:b.nanBorderRadius},null:{display:`inline-block`,color:t.dataTypes.null,fontSize:b.nullFontSize,fontWeight:b.nullFontWeight,backgroundColor:t.dataTypes.background,padding:b.nullPadding,borderRadius:b.nullBorderRadius},undefined:{display:`inline-block`,color:t.dataTypes.undefined,fontSize:b.undefinedFontSize,padding:b.undefinedPadding,borderRadius:b.undefinedBorderRadius,backgroundColor:t.dataTypes.background},circularReference:{display:`inline-block`,color:t.dataTypes.null,fontSize:b.nullFontSize,fontWeight:b.nullFontWeight,backgroundColor:t.dataTypes.background,padding:b.nullPadding,borderRadius:b.nullBorderRadius},regexp:{display:`inline-block`,color:t.dataTypes.regexp},"copy-to-clipboard":{cursor:b.clipboardCursor},"copy-icon":{color:t.copyToClipboard,fontSize:b.iconFontSize,marginRight:b.iconMarginRight,verticalAlign:`top`},"copy-icon-copied":{color:t.copyToClipboardCheck,marginLeft:b.clipboardCheckMarginLeft},"array-group-meta-data":{display:`inline-block`,padding:b.arrayGroupMetaPadding},"object-meta-data":{display:`inline-block`,padding:b.metaDataPadding},"icon-container":{display:`inline-block`,width:b.iconContainerWidth},tooltip:{padding:b.tooltipPadding},removeVarIcon:{verticalAlign:`top`,display:`inline-block`,color:t.editVariable.removeIcon,cursor:b.iconCursor,fontSize:b.iconFontSize,marginRight:b.iconMarginRight},addVarIcon:{verticalAlign:`top`,display:`inline-block`,color:t.editVariable.addIcon,cursor:b.iconCursor,fontSize:b.iconFontSize,marginRight:b.iconMarginRight},editVarIcon:{verticalAlign:`top`,display:`inline-block`,color:t.editVariable.editIcon,cursor:b.iconCursor,fontSize:b.iconFontSize,marginRight:b.iconMarginRight},"edit-icon-container":{display:`inline-block`,verticalAlign:`top`},"check-icon":{display:`inline-block`,cursor:b.iconCursor,color:t.editVariable.checkIcon,fontSize:b.iconFontSize,paddingRight:b.iconPaddingRight},"cancel-icon":{display:`inline-block`,cursor:b.iconCursor,color:t.editVariable.cancelIcon,fontSize:b.iconFontSize,paddingRight:b.iconPaddingRight},"edit-input":{display:`inline-block`,minWidth:b.editInputMinWidth,borderRadius:b.editInputBorderRadius,backgroundColor:t.editVariable.background,color:t.editVariable.color,padding:b.editInputPadding,marginRight:b.editInputMarginRight,fontFamily:b.editInputFontFamily},"detected-row":{paddingTop:b.detectedRowPaddingTop},"key-modal-request":{position:b.addKeyCoverPosition,top:b.addKeyCoverPositionPx,left:b.addKeyCoverPositionPx,right:b.addKeyCoverPositionPx,bottom:b.addKeyCoverPositionPx,backgroundColor:b.addKeyCoverBackground},"key-modal":{width:b.addKeyModalWidth,backgroundColor:t.addKeyModal.background,marginLeft:b.addKeyModalMargin,marginRight:b.addKeyModalMargin,padding:b.addKeyModalPadding,borderRadius:b.addKeyModalRadius,marginTop:`15px`,position:`relative`},"key-modal-label":{color:t.addKeyModal.labelColor,marginLeft:`2px`,marginBottom:`5px`,fontSize:`11px`},"key-modal-input-container":{overflow:`hidden`},"key-modal-input":{width:`100%`,padding:`3px 6px`,fontFamily:`monospace`,color:t.addKeyModal.color,border:`none`,boxSizing:`border-box`,borderRadius:`2px`},"key-modal-cancel":{backgroundColor:t.editVariable.removeIcon,position:`absolute`,top:`0px`,right:`0px`,borderRadius:`0px 3px 0px 3px`,cursor:`pointer`},"key-modal-cancel-icon":{color:t.addKeyModal.labelColor,fontSize:b.iconFontSize,transform:`rotate(45deg)`},"key-modal-submit":{color:t.editVariable.addIcon,fontSize:b.iconFontSize,position:`absolute`,right:`2px`,top:`3px`,cursor:`pointer`},"function-ellipsis":{display:`inline-block`,color:t.ellipsisColor,fontSize:b.ellipsisFontSize,lineHeight:b.ellipsisLineHeight,cursor:b.ellipsisCursor},"validation-failure":{float:`right`,padding:`3px 6px`,borderRadius:`2px`,cursor:`pointer`,color:t.validationFailure.fontColor,backgroundColor:t.validationFailure.background},"validation-failure-label":{marginRight:`6px`},"validation-failure-clear":{position:`relative`,verticalAlign:`top`,cursor:`pointer`,color:t.validationFailure.iconColor,fontSize:b.iconFontSize,transform:`rotate(45deg)`},comma:{display:`inline-block`,color:b.commaColor,fontSize:b.commaFontSize,marginRight:b.commaMarginRight,cursor:`default`}}},an=e=>{let t=v;return!1!==e&&e!==`none`||(t=y),en(rn,{defaultBase16:t})(e)};function F(e,t,n){return e||console.error(`theme has not been set`),an(e)(t,n)}let on=class extends u()().PureComponent{render(){let{typeName:e,displayDataTypes:t,theme:n}=this.props;return t?u()().createElement(`span`,{className:`data-type-label`,...F(n,`data-type-label`)},e):null}},sn=class extends u()().PureComponent{render(){let{props:e}=this;return u()().createElement(`div`,F(e.theme,`boolean`),u()().createElement(on,{typeName:`bool`,...e}),e.value?`true`:`false`)}},cn=class extends u()().PureComponent{render(){let{props:e}=this;return u()().createElement(`div`,F(e.theme,`date`),u()().createElement(on,{typeName:`date`,...e}),u()().createElement(`span`,{className:`date-value`,...F(e.theme,`date-value`)},e.value.toLocaleTimeString(`en-us`,{weekday:`short`,year:`numeric`,month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`})))}},ln=class extends u()().PureComponent{render(){let{props:e}=this;return u()().createElement(`div`,F(e.theme,`float`),u()().createElement(on,{typeName:`float`,...e}),this.props.value)}};e();class un{handler=()=>{};register(e){this.handler=e}dispatch(e){this.handler?.(e)}}globalThis.__globalDispatcherInstance||(globalThis.__globalDispatcherInstance=new un);let I=globalThis.__globalDispatcherInstance,dn=`updated_src`;class fn extends e().EventEmitter{objects={};set=(e,t,n,r)=>{this.objects[e]===void 0&&(this.objects[e]={}),this.objects[e][t]===void 0&&(this.objects[e][t]={}),this.objects[e][t][n]=r};get=(e,t,n,r)=>this.objects[e]===void 0||this.objects[e][t]===void 0||this.objects[e][t][n]===void 0?r:this.objects[e][t][n];handleAction=e=>{let{rjvId:t,data:n,name:r}=e;switch(r){case`RESET`:this.emit(`reset-`+t);break;case`VARIABLE_UPDATED`:e.data[dn]=this.updateSrc(t,n),this.set(t,`action`,`variable-update`,{...n,type:`variable-edited`}),this.emit(`variable-update-`+t);break;case`VARIABLE_REMOVED`:e.data[dn]=this.updateSrc(t,n),this.set(t,`action`,`variable-update`,{...n,type:`variable-removed`}),this.emit(`variable-update-`+t);break;case`VARIABLE_ADDED`:e.data[dn]=this.updateSrc(t,n),this.set(t,`action`,`variable-update`,{...n,type:`variable-added`}),this.emit(`variable-update-`+t);break;case`ADD_VARIABLE_KEY_REQUEST`:this.set(t,`action`,`new-key-request`,n),this.emit(`add-key-request-`+t)}};updateSrc=(e,t)=>{let{name:n,namespace:r}=t,i=t.new_value,a=t.variable_removed;r.shift();let o=this.get(e,`global`,`src`),s=this.deepCopy(o,[...r]),c=s;for(let e of r)c=c[e];return a?h(c)===`array`?c.splice(n,1):delete c[n]:n===null?s=i:c[n]=i,this.set(e,`global`,`src`,s),s};deepCopy=(e,t)=>{let n=h(e),r,i=t.shift();return n===`array`?r=[...e]:n===`object`&&(r={...e}),i!==void 0&&(r[i]=this.deepCopy(e[i],t)),r}}let pn=new fn;I.register(pn.handleAction.bind(pn));let mn=pn,hn=class extends u()().PureComponent{constructor(e){super(e),this.state={collapsed:mn.get(e.rjvId,e.namespace,`collapsed`,!0)}}handleToggleCollapsed=()=>{this.setState({collapsed:!this.state.collapsed},()=>{mn.set(this.props.rjvId,this.props.namespace,`collapsed`,this.state.collapsed)})};render(){let{props:e}=this,{collapsed:t}=this.state;return u()().createElement(`div`,F(e.theme,`function`),u()().createElement(on,{typeName:`function`,...e}),u()().createElement(`span`,{...F(e.theme,`function-value`),className:`rjv-function-container`,onClick:this.handleToggleCollapsed},this.getFunctionDisplay(t)))}getFunctionDisplay=e=>{let{props:t}=this;return e?u()().createElement(`span`,null,this.props.value.toString().slice(9,-1).replace(/\{[\s\S]+/,``),u()().createElement(`span`,{className:`function-collapsed`,style:{fontWeight:`bold`}},u()().createElement(`span`,null,`{`),u()().createElement(`span`,F(t.theme,`ellipsis`),`...`),u()().createElement(`span`,null,`}`))):this.props.value.toString().slice(9,-1)}},gn=class extends u()().PureComponent{render(){return u()().createElement(`div`,F(this.props.theme,`nan`),`NaN`)}},_n=class extends u()().PureComponent{render(){return u()().createElement(`div`,F(this.props.theme,`null`),`NULL`)}},vn=class extends u()().PureComponent{render(){let{props:e}=this;return u()().createElement(`div`,F(e.theme,`integer`),u()().createElement(on,{typeName:`int`,...e}),this.props.value)}},yn=class extends u()().PureComponent{render(){let{props:e}=this;return u()().createElement(`div`,F(e.theme,`regexp`),u()().createElement(on,{typeName:`regexp`,...e}),this.props.value.toString())}},bn=class extends u()().PureComponent{constructor(e){super(e),this.state={collapsed:mn.get(e.rjvId,e.namespace,`collapsed`,!0)}}handleToggleCollapsed=()=>{this.setState({collapsed:!this.state.collapsed},()=>{mn.set(this.props.rjvId,this.props.namespace,`collapsed`,this.state.collapsed)})};render(){let{collapsed:e}=this.state,{props:t}=this,{collapseStringsAfterLength:n,theme:r,escapeStrings:i}=t,{value:a}=t,o=h(n)===`integer`,s={style:{cursor:`default`,wordBreak:`break-all`}};return i&&(a=g(a)),o&&a.length>n&&(s.style.cursor=`pointer`,e&&(a=u()().createElement(`span`,null,a.substring(0,n),u()().createElement(`span`,F(r,`ellipsis`),` ...`)))),u()().createElement(`div`,F(r,`string`),u()().createElement(on,{typeName:`string`,...t}),u()().createElement(`span`,{className:`string-value`,...s,onClick:this.handleToggleCollapsed},`"`,a,`"`))}},xn=class extends u()().PureComponent{render(){return u()().createElement(`div`,F(this.props.theme,`undefined`),`undefined`)}},Sn=class extends u()().PureComponent{render(){let{props:e}=this;return u()().createElement(`div`,F(e.theme,`bigNumber`),u()().createElement(on,{typeName:`bigNumber`,...e}),this.props.value.toString())}};function Cn(e,t){e=e.trim();try{if((e=structuredClone(e))[0]===`[`)return wn(`array`,JSON.parse(e));if(e[0]===`{`)return wn(`object`,JSON.parse(e));if(e.match(/-?\d+\.\d+/)&&e.match(/-?\d+\.\d+/)[0]===e)return t&&parseFloat(e).toString()!==e?wn(`bigNumber`,e):wn(`float`,parseFloat(e));if(e.match(/-?\d+e-\d+/)&&e.match(/-?\d+e-\d+/)[0]===e)return wn(`float`,Number(e));if(e.match(/-?\d+/)&&e.match(/-?\d+/)[0]===e)return t&&parseInt(e).toString()!==e?wn(`bigNumber`,e):wn(`integer`,parseInt(e));if(e.match(/-?\d+e\+\d+/)&&e.match(/-?\d+e\+\d+/)[0]===e)return wn(`integer`,Number(e))}catch{}switch(e=e.toLowerCase()){case`undefined`:return wn(`undefined`,void 0);case`nan`:return wn(`nan`,NaN);case`null`:return wn(`null`,null);case`true`:return wn(`boolean`,!0);case`false`:return wn(`boolean`,!1);default:if(e=Date.parse(e))return wn(`date`,new Date(e))}return wn(!1,null)}function wn(e,t){return{type:e,value:t}}class Tn extends u()().PureComponent{render(){let{props:e}=this,{style:t,...n}=e;return u()().createElement(`span`,n,u()().createElement(`svg`,{...Ln(t),viewBox:`0 0 24 24`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`},u()().createElement(`path`,{d:`M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7`})))}}class En extends u()().PureComponent{render(){let{props:e}=this,{style:t,...n}=e;return u()().createElement(`span`,n,u()().createElement(`svg`,{...Ln(t),viewBox:`0 0 24 24`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`},u()().createElement(`path`,{d:`M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z`})))}}class Dn extends u()().PureComponent{render(){let{props:e}=this,{style:t,...n}=e,r=Ln(t).style;return u()().createElement(`span`,n,u()().createElement(`svg`,{fill:r.color,width:r.height,height:r.width,style:r,viewBox:`0 0 1792 1792`},u()().createElement(`path`,{d:`M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z`})))}}class On extends u()().PureComponent{render(){let{props:e}=this,{style:t,...n}=e,r=Ln(t).style;return u()().createElement(`span`,n,u()().createElement(`svg`,{fill:r.color,width:r.height,height:r.width,style:r,viewBox:`0 0 1792 1792`},u()().createElement(`path`,{d:`M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z`})))}}class kn extends u()().PureComponent{render(){let{props:e}=this,{style:t,...n}=e;return u()().createElement(`span`,n,u()().createElement(`svg`,{style:{...Ln(t).style,paddingLeft:`2px`,verticalAlign:`top`},viewBox:`0 0 15 15`,fill:`currentColor`},u()().createElement(`path`,{d:`M0 14l6-6-6-6z`})))}}class An extends u()().PureComponent{render(){let{props:e}=this,{style:t,...n}=e;return u()().createElement(`span`,n,u()().createElement(`svg`,{style:{...Ln(t).style,paddingLeft:`2px`,verticalAlign:`top`},viewBox:`0 0 15 15`,fill:`currentColor`},u()().createElement(`path`,{d:`M0 5l6 6 6-6z`})))}}class jn extends u()().PureComponent{render(){let{props:e}=this,{style:t,...n}=e;return u()().createElement(`span`,n,u()().createElement(`svg`,{...Ln(t),viewBox:`0 0 40 40`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`},u()().createElement(`g`,null,u()().createElement(`path`,{d:`m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z`}))))}}class Mn extends u()().PureComponent{render(){let{props:e}=this,{style:t,...n}=e;return u()().createElement(`span`,n,u()().createElement(`svg`,{...Ln(t),viewBox:`0 0 40 40`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`},u()().createElement(`g`,null,u()().createElement(`path`,{d:`m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z`}))))}}class Nn extends u()().PureComponent{render(){let{props:e}=this,{style:t,...n}=e;return u()().createElement(`span`,n,u()().createElement(`svg`,{...Ln(t),viewBox:`0 0 40 40`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`},u()().createElement(`g`,null,u()().createElement(`path`,{d:`m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z`}))))}}class Pn extends u()().PureComponent{render(){let{props:e}=this,{style:t,...n}=e;return u()().createElement(`span`,n,u()().createElement(`svg`,{...Ln(t),viewBox:`0 0 40 40`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`},u()().createElement(`g`,null,u()().createElement(`path`,{d:`m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z`}))))}}class Fn extends u()().PureComponent{render(){let{props:e}=this,{style:t,...n}=e;return u()().createElement(`span`,n,u()().createElement(`svg`,{...Ln(t),viewBox:`0 0 40 40`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`},u()().createElement(`g`,null,u()().createElement(`path`,{d:`m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z`}))))}}class In extends u()().PureComponent{render(){let{props:e}=this,{style:t,...n}=e;return u()().createElement(`span`,n,u()().createElement(`svg`,{...Ln(t),viewBox:`0 0 40 40`,fill:`currentColor`,preserveAspectRatio:`xMidYMid meet`},u()().createElement(`g`,null,u()().createElement(`path`,{d:`m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z`}))))}}function Ln(e){return e||={},{style:{verticalAlign:`middle`,...e,color:e.color?e.color:`#000000`,height:`1em`,width:`1em`}}}let Rn=class extends u()().PureComponent{constructor(e){super(e),this.state={copied:!1}}copiedTimer=null;componentWillUnmount(){this.copiedTimer&&=(clearTimeout(this.copiedTimer),null)}copyToClipboardFallback=e=>{let t=document.createElement(`textarea`);t.value=e,document.body.appendChild(t),t.select(),document.execCommand(`copy`),document.body.removeChild(t)};handleCopy=()=>{let{clickCallback:e,src:t,namespace:n}=this.props,r=this.clipboardText(t);navigator.clipboard?navigator.clipboard.writeText(r).catch(()=>{this.copyToClipboardFallback(r)}):this.copyToClipboardFallback(r),this.copiedTimer=setTimeout(()=>{this.setState({copied:!1})},5500),this.setState({copied:!0},()=>{typeof e==`function`&&e({src:t,namespace:n,name:n[n.length-1]})})};getClippyIcon=()=>{let{theme:e}=this.props;return this.state.copied?u()().createElement(`span`,null,u()().createElement(jn,{className:`copy-icon`,...F(e,`copy-icon`)}),u()().createElement(`span`,F(e,`copy-icon-copied`),`✔`)):u()().createElement(jn,{className:`copy-icon`,...F(e,`copy-icon`)})};clipboardValue=e=>{switch(h(e)){case`function`:case`regexp`:return e.toString();default:return e}};clipboardText=e=>{let t=this.clipboardValue(e);return typeof t==`string`?t:JSON.stringify(t,null,` `)};render(){let{theme:e,hidden:t,rowHovered:n}=this.props,r=F(e,`copy-to-clipboard`).style,i=`inline`;return t&&(i=`none`),u()().createElement(`span`,{className:`copy-to-clipboard-container`,title:`Copy to clipboard`,style:{verticalAlign:`top`,display:n?`inline-block`:`none`}},u()().createElement(`span`,{style:{...r,display:i},onClick:this.handleCopy},this.getClippyIcon()))}};class zn extends u()().PureComponent{constructor(e){super(e),this.state={editMode:!1,editValue:``,hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}}}render(){let{variable:e,singleIndent:t,type:n,theme:r,namespace:i,indentWidth:a,enableClipboard:o,onEdit:s,onDelete:c,onSelect:l,displayArrayKey:d,quotesOnKeys:f,showComma:p,isLast:m}=this.props,{editMode:h}=this.state,_=!1!==l||!1!==s;return u()().createElement(`div`,{...F(r,`objectKeyVal`,{paddingLeft:a*t}),onMouseEnter:()=>this.setState({...this.state,hovered:!0}),onMouseLeave:()=>this.setState({...this.state,hovered:!1}),className:`variable-row`,key:e.name},n===`array`?d?u()().createElement(`span`,{...F(r,`array-key`),key:e.name+`_`+i},e.name,u()().createElement(`div`,F(r,`colon`),`:`)):null:u()().createElement(`span`,null,u()().createElement(`span`,{...F(r,`object-name`),className:`object-key`,key:e.name+`_`+i,onClick:_?this.handleSelect:null},!!f&&u()().createElement(`span`,{style:{verticalAlign:`top`}},`"`),u()().createElement(`span`,{style:{display:`inline-block`}},g(e.name)),!!f&&u()().createElement(`span`,{style:{verticalAlign:`top`}},`"`)),u()().createElement(`span`,F(r,`colon`),`:`)),u()().createElement(`div`,{className:`variable-value`,onClick:_?this.handleSelect:null,...F(r,`variableValue`,{cursor:!1===l?`default`:`pointer`})},this.getValue(e,h)),p&&!m&&u()().createElement(`span`,F(r,`comma`),`,`),o?u()().createElement(Rn,{rowHovered:this.state.hovered,hidden:h,src:e.value,clickCallback:o,theme:r,namespace:[...i,e.name]}):null,!1!==s&&!1===h?this.getEditIcon():null,!1!==c&&!1===h?this.getRemoveIcon():null)}handleSelect=e=>{let{variable:t,namespace:n,onEdit:r,onSelect:i,keyModifier:a}=this.props,o=[...n];a(e,`edit`)&&!1!==r?this.prepopInput(t):!1!==i&&(o.shift(),i({...t,namespace:o}))};getEditIcon=()=>{let{variable:e,theme:t}=this.props;return u()().createElement(`div`,{className:`click-to-edit`,style:{verticalAlign:`top`,display:this.state.hovered?`inline-block`:`none`}},u()().createElement(Fn,{className:`click-to-edit-icon`,...F(t,`editVarIcon`),onClick:()=>{this.prepopInput(e)}}))};prepopInput=e=>{if(!1!==this.props.onEdit){let t=((e,t)=>{let n;switch(h(e,t)){case`undefined`:n=`undefined`;break;case`nan`:n=`NaN`;break;case`string`:n=e;break;case`bigNumber`:case`date`:case`function`:case`regexp`:n=e.toString();break;default:try{n=JSON.stringify(e,null,` `)}catch{n=``}}return n})(e.value,this.props.bigNumber),n=Cn(t,this.props.bigNumber);this.setState({editMode:!0,editValue:t,parsedInput:{type:n.type,value:n.value}})}};getRemoveIcon=()=>{let{variable:e,namespace:t,theme:n,rjvId:r}=this.props;return u()().createElement(`div`,{className:`click-to-remove`,style:{verticalAlign:`top`,display:this.state.hovered?`inline-block`:`none`}},u()().createElement(Mn,{className:`click-to-remove-icon`,...F(n,`removeVarIcon`),onClick:()=>{I.dispatch({name:`VARIABLE_REMOVED`,rjvId:r,data:{name:e.name,namespace:t,existing_value:e.value,variable_removed:!0}})}}))};getValue=(e,t)=>{let n=!t&&e.type,{props:r}=this;switch(n){case!1:return this.getEditInput();case`string`:return u()().createElement(bn,{value:e.value,...r});case`integer`:return u()().createElement(vn,{value:e.value,...r});case`float`:return u()().createElement(ln,{value:e.value,...r});case`boolean`:return u()().createElement(sn,{value:e.value,...r});case`function`:return u()().createElement(hn,{value:e.value,...r});case`null`:return u()().createElement(_n,r);case`nan`:return u()().createElement(gn,r);case`undefined`:return u()().createElement(xn,r);case`date`:return u()().createElement(cn,{value:e.value,...r});case`regexp`:return u()().createElement(yn,{value:e.value,...r});case`bigNumber`:return u()().createElement(Sn,{value:e.value,...r});case`circularReference`:return u()().createElement(JsonCircularReference,{value:e.value,...r});default:var i=``;try{i=JSON.stringify(e.value)}catch{i=``}return u()().createElement(`div`,{className:`object-value`},i)}};getEditInput=()=>{let{keyModifier:e,selectOnFocus:n,theme:r}=this.props,{editValue:i}=this.state;return u()().createElement(`div`,null,u()().createElement(t().A,{type:`text`,ref:e=>{e&&e[n?`select`:`focus`]()},value:i,className:`variable-editor`,onChange:e=>{let t=e.target.value,n=Cn(t,this.props.bigNumber);this.setState({editValue:t,parsedInput:{type:n.type,value:n.value}})},onKeyDown:t=>{switch(t.key){case`Escape`:this.setState({editMode:!1,editValue:``});break;case`Enter`:e(t,`submit`)&&this.submitEdit(!0)}t.stopPropagation()},placeholder:`update this value`,minRows:2,...F(r,`edit-input`)}),u()().createElement(`div`,F(r,`edit-icon-container`),u()().createElement(Mn,{className:`edit-cancel`,...F(r,`cancel-icon`),onClick:e=>{e&&e.stopPropagation(),this.setState({editMode:!1,editValue:``})}}),u()().createElement(In,{className:`edit-check string-value`,...F(r,`check-icon`),onClick:e=>{e&&e.stopPropagation(),this.submitEdit()}}),u()().createElement(`div`,null,this.showDetected())))};submitEdit=e=>{let{variable:t,namespace:n,rjvId:r,bigNumber:i}=this.props,{editValue:a,parsedInput:o}=this.state,s=a;e&&o.type&&(s=o.value,i&&o.type===`bigNumber`&&(s=new i(s))),this.setState({editMode:!1}),I.dispatch({name:`VARIABLE_UPDATED`,rjvId:r,data:{name:t.name,namespace:n,existing_value:t.value,new_value:s,variable_removed:!1}})};showDetected=()=>{let{theme:e}=this.props,t=this.getDetectedInput();if(t)return u()().createElement(`div`,null,u()().createElement(`div`,F(e,`detected-row`),t,u()().createElement(In,{className:`edit-check detected`,style:{verticalAlign:`top`,paddingLeft:`3px`,...F(e,`check-icon`).style},onClick:e=>{e&&e.stopPropagation(),this.submitEdit(!0)}})))};getDetectedInput=()=>{let{parsedInput:e}=this.state,{type:t,value:n}=e,{props:r}=this,{theme:i}=r;if(!1!==t)switch(t.toLowerCase()){case`object`:return u()().createElement(`span`,null,u()().createElement(`span`,{style:{...F(i,`brace`).style,cursor:`default`}},`{`),u()().createElement(`span`,{style:{...F(i,`ellipsis`).style,cursor:`default`}},`...`),u()().createElement(`span`,{style:{...F(i,`brace`).style,cursor:`default`}},`}`));case`array`:return u()().createElement(`span`,null,u()().createElement(`span`,{style:{...F(i,`brace`).style,cursor:`default`}},`[`),u()().createElement(`span`,{style:{...F(i,`ellipsis`).style,cursor:`default`}},`...`),u()().createElement(`span`,{style:{...F(i,`brace`).style,cursor:`default`}},`]`));case`string`:return u()().createElement(bn,{value:n,...r});case`integer`:return u()().createElement(vn,{value:n,...r});case`float`:return u()().createElement(ln,{value:n,...r});case`boolean`:return u()().createElement(sn,{value:n,...r});case`function`:return u()().createElement(hn,{value:n,...r});case`null`:return u()().createElement(_n,r);case`nan`:return u()().createElement(gn,r);case`undefined`:return u()().createElement(xn,r);case`date`:return u()().createElement(cn,{value:new Date(n),...r});case`bignumber`:return u()().createElement(Sn,{value:n,...r});case`circularreference`:return u()().createElement(JsonCircularReference,{value:variable.value,...r})}}}let Bn=zn,Vn=class extends u()().PureComponent{getObjectSize=()=>{let{size:e,theme:t,displayObjectSize:n}=this.props;if(n)return u()().createElement(`span`,{className:`object-size`,...F(t,`object-size`)},e,` item`,e===1?``:`s`)};getAddAttribute=e=>{let{theme:t,namespace:n,name:r,src:i,rjvId:a,depth:o}=this.props;return u()().createElement(`span`,{className:`click-to-add`,style:{verticalAlign:`top`,display:e?`inline-block`:`none`}},u()().createElement(Nn,{className:`click-to-add-icon`,...F(t,`addVarIcon`),onClick:()=>{let e={name:o>0?r:null,namespace:n.splice(0,n.length-1),existing_value:i,variable_removed:!1,key_name:null};h(i)===`object`?I.dispatch({name:`ADD_VARIABLE_KEY_REQUEST`,rjvId:a,data:e}):I.dispatch({name:`VARIABLE_ADDED`,rjvId:a,data:{...e,new_value:[...i,null]}})}}))};getRemoveObject=e=>{let{theme:t,namespace:n,name:r,src:i,rjvId:a}=this.props;if(n.length!==1)return u()().createElement(`span`,{className:`click-to-remove`,style:{display:e?`inline-block`:`none`}},u()().createElement(Mn,{className:`click-to-remove-icon`,...F(t,`removeVarIcon`),onClick:()=>{I.dispatch({name:`VARIABLE_REMOVED`,rjvId:a,data:{name:r,namespace:n.splice(0,n.length-1),existing_value:i,variable_removed:!0}})}}))};render=()=>{let{theme:e,onDelete:t,onAdd:n,enableClipboard:r,src:i,namespace:a,rowHovered:o}=this.props;return u()().createElement(`div`,{...F(e,`object-meta-data`),className:`object-meta-data`,onClick:e=>{e.stopPropagation()}},this.getObjectSize(),r?u()().createElement(Rn,{rowHovered:o,clickCallback:r,src:i,theme:e,namespace:a}):null,!1===n?null:this.getAddAttribute(o),!1===t?null:this.getRemoveObject(o))}};function Hn(e){let{parent_type:t,namespace:n,quotesOnKeys:r,theme:i,jsvRoot:a,name:o,displayArrayKey:s,onKeyClick:c}=e,l=e.name?e.name:``,d=typeof c==`function`?c:null;return!a||!1!==o&&o!==null?t===`array`?s?u()().createElement(`span`,{...F(i,`array-key`),key:n,onClick:d},u()().createElement(`span`,{className:`array-key`},l),u()().createElement(`span`,F(i,`colon`),`:`)):u()().createElement(`span`,null):u()().createElement(`span`,{...F(i,`object-name`),key:n,onClick:d},u()().createElement(`span`,{className:`object-key`},r&&u()().createElement(`span`,{style:{verticalAlign:`top`}},`"`),u()().createElement(`span`,null,l),r&&u()().createElement(`span`,{style:{verticalAlign:`top`}},`"`)),u()().createElement(`span`,F(i,`colon`),`:`)):u()().createElement(`span`,null)}function Un(e){let{theme:t,iconStyle:n}=e;switch(n){case`triangle`:return u()().createElement(An,{...F(t,`expanded-icon`),className:`expanded-icon`});case`square`:return u()().createElement(Dn,{...F(t,`expanded-icon`),className:`expanded-icon`});default:return u()().createElement(Tn,{...F(t,`expanded-icon`),className:`expanded-icon`})}}function Wn(e){let{theme:t,iconStyle:n}=e;switch(n){case`triangle`:return u()().createElement(kn,{...F(t,`collapsed-icon`),className:`collapsed-icon`});case`square`:return u()().createElement(On,{...F(t,`collapsed-icon`),className:`collapsed-icon`});default:return u()().createElement(En,{...F(t,`collapsed-icon`),className:`collapsed-icon`})}}let Gn=class extends u()().PureComponent{constructor(e){super(e),this.state={expanded:[]}}toggleCollapsed=e=>{let{expanded:t}=this.state,n=[],r=Math.max(t.length||0,e+1);for(let e=0;e<r;e++)n[e]=!0===t[e];n[e]=!n[e],this.setState({expanded:n})};getExpandedIcon(e){let{theme:t,iconStyle:n}=this.props;return this.state.expanded[e]?u()().createElement(Un,{theme:t,iconStyle:n}):u()().createElement(Wn,{theme:t,iconStyle:n})}handleKeySelect=()=>{let{name:e,namespace:t,onSelect:n,src:r}=this.props;if(typeof n!=`function`)return;let i=[...t];i.shift(),i.length>0&&i.pop(),n({name:e,value:r,type:`array`,namespace:i})};render(){let{src:e,groupArraysAfterLength:t,depth:n,name:r,theme:i,jsvRoot:a,namespace:o,...s}=this.props,c=0,l=5*this.props.indentWidth;a||(c=5*this.props.indentWidth);let d=t,f=Math.ceil(e.length/d);return u()().createElement(`div`,{className:`object-key-val`,...F(i,a?`jsv-root`:`objectKeyVal`,{paddingLeft:c})},u()().createElement(Hn,{...this.props,onKeyClick:this.handleKeySelect}),u()().createElement(`span`,null,u()().createElement(Vn,{size:e.length,...this.props})),[...Array(f)].map((t,n)=>u()().createElement(`div`,{key:n,className:`object-key-val array-group`,...F(i,`objectKeyVal`,{marginLeft:6,paddingLeft:l})},u()().createElement(`span`,F(i,`brace-row`),u()().createElement(`div`,{className:`icon-container`,...F(i,`icon-container`),onClick:e=>{this.toggleCollapsed(n)}},this.getExpandedIcon(n)),this.state.expanded[n]?u()().createElement(Jn,{key:r+n,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:d,index_offset:n*d,src:e.slice(n*d,n*d+d),namespace:o,type:`array`,parent_type:`array_group`,theme:i,showComma:this.props.showComma,isLast:n===f-1,...s}):u()().createElement(`span`,{...F(i,`brace`),onClick:e=>{this.toggleCollapsed(n)},className:`array-group-brace`},`[`,u()().createElement(`div`,{...F(i,`array-group-meta-data`),className:`array-group-meta-data`},u()().createElement(`span`,{className:`object-size`,...F(i,`object-size`)},n*d,` - `,n*d+d-1>e.length?e.length-1:n*d+d-1)),`]`)))))}};class Kn extends u()().PureComponent{constructor(e){super(e);let t=Kn.getState(e);this.state={...t,prevProps:{}},this.listOfAncestors=Array.from(this.props.listOfAncestors||[]),this.listOfAncestors.push(e.src)}static getState=e=>{let t=Object.keys(e.src).length,n=(!1===e.collapsed||!0!==e.collapsed&&e.collapsed>e.depth)&&(!e.shouldCollapse||!1===e.shouldCollapse({name:e.name,src:e.src,type:h(e.src),namespace:e.namespace}))&&t!==0;return{expanded:mn.get(e.rjvId,e.namespace,`expanded`,n),object_type:e.type===`array`?`array`:`object`,parent_type:e.type===`array`?`array`:`object`,size:t,hovered:!1}};static getDerivedStateFromProps(e,t){let{prevProps:n}=t;return e.src!==n.src||e.collapsed!==n.collapsed||e.name!==n.name||e.namespace!==n.namespace||e.rjvId!==n.rjvId?{...Kn.getState(e),prevProps:e}:null}handleToggleCollapsed=()=>{this.setState({expanded:!this.state.expanded},()=>{mn.set(this.props.rjvId,this.props.namespace,`expanded`,this.state.expanded)})};handleKeySelect=()=>{let{name:e,namespace:t,onSelect:n,src:r}=this.props,{object_type:i}=this.state;if(typeof n!=`function`)return;let a=[...t];a.shift(),a.length>0&&a.pop(),n({name:e,value:r,type:i,namespace:a})};getObjectContent=(e,t,n)=>u()().createElement(`div`,{className:`pushed-content object-container`},u()().createElement(`div`,{className:`object-content`,...F(this.props.theme,`pushed-content`)},this.renderObjectContents(t,n)));getEllipsis=()=>{let{size:e}=this.state;return e===0?null:u()().createElement(`div`,{...F(this.props.theme,`ellipsis`),className:`node-ellipsis`,onClick:this.handleToggleCollapsed},`...`)};getObjectMetaData=e=>{let{size:t,hovered:n}=this.state;return u()().createElement(Vn,{rowHovered:n,size:t,...this.props})};getBraceStart(e,t){let{theme:n,iconStyle:r,parent_type:i}=this.props;if(i===`array_group`)return u()().createElement(`span`,null,u()().createElement(`span`,F(n,`brace`),e===`array`?`[`:`{`));let a=t?Un:Wn;return u()().createElement(`span`,null,u()().createElement(`span`,{onClick:this.handleToggleCollapsed,...F(n,`brace-row`)},u()().createElement(`div`,{className:`icon-container`,...F(n,`icon-container`)},u()().createElement(a,{theme:n,iconStyle:r})),u()().createElement(Hn,{...this.props,onKeyClick:this.handleKeySelect}),u()().createElement(`span`,F(n,`brace`),e===`array`?`[`:`{`)))}isCircularReference(e){return this.listOfAncestors.indexOf(e.value)>-1||e.value===this.props.src}render(){let{depth:e,src:t,namespace:n,name:r,type:i,parent_type:a,theme:o,jsvRoot:s,iconStyle:c,showComma:l,isLast:d,...f}=this.props,{object_type:p,expanded:m}=this.state,h={};return s||a===`array_group`?a===`array_group`&&(h.borderLeft=0,h.display=`inline`):h.paddingLeft=5*this.props.indentWidth,u()().createElement(`div`,{className:`object-key-val`,onMouseEnter:()=>this.setState({...this.state,hovered:!0}),onMouseLeave:()=>this.setState({...this.state,hovered:!1}),...F(o,s?`jsv-root`:`objectKeyVal`,h)},this.getBraceStart(p,m),m?this.getObjectContent(e,t,{theme:o,iconStyle:c,...f}):this.getEllipsis(),u()().createElement(`span`,{className:`brace-row`},u()().createElement(`span`,{style:{...F(o,`brace`).style,paddingLeft:m?`3px`:`0px`}},p===`array`?`]`:`}`)),l&&!d&&!s&&u()().createElement(`span`,F(o,`comma`),`,`),this.getObjectMetaData(t))}renderObjectContents=(e,t)=>{let{depth:n,parent_type:r,index_offset:i,groupArraysAfterLength:a,namespace:o,showComma:s}=this.props,{object_type:c}=this.state,l=[],d,f=Object.keys(e||{});return this.props.sortKeys&&c!==`array`&&(f=f.sort()),f.forEach((p,m)=>{d=new qn(p,e[p],t.bigNumber);let h=m===f.length-1;if(r===`array_group`&&i&&(d.name=parseInt(d.name,10)+i),Object.prototype.hasOwnProperty.call(e,p)&&d.type.toLowerCase()!==`window`){if(this.isCircularReference(d))l.push(u()().createElement(_,{key:d.name,depth:n+1,name:d.name,src:d.value,namespace:o.concat(d.name),type:`array`,parent_type:c,isLast:h,showComma:s,singleIndent:5,indentWidth:this.props.indentWidth,...t}));else if(d.type===`object`)l.push(u()().createElement(Jn,{key:d.name,depth:n+1,name:d.name,src:d.value,namespace:o.concat(d.name),parent_type:c,isLast:h,showComma:s,listOfAncestors:this.listOfAncestors.concat([this.props.src]),...t}));else if(d.type===`array`){let e=Jn;a&&d.value.length>a&&(e=Gn),l.push(u()().createElement(e,{key:d.name,depth:n+1,name:d.name,src:d.value,namespace:o.concat(d.name),type:`array`,parent_type:c,isLast:h,showComma:s,listOfAncestors:this.listOfAncestors.concat([this.props.src]),...t}))}else l.push(u()().createElement(Bn,{key:d.name+`_`+o,variable:d,singleIndent:5,namespace:o,type:this.props.type,isLast:h,showComma:s,...t}))}}),l}}class qn{constructor(e,t,n){this.name=e,this.value=t,this.type=h(t,n)}}m(Kn);let Jn=Kn,Yn=class extends u()().PureComponent{render=()=>{let{props:e}=this,t=[e.name],n=Jn;return typeof e.name==`object`&&!Array.isArray(e.name)&&(t=[e.name?.displayName||e.name?.name||e.name?.type?.name||`Anonymous`]),Array.isArray(e.src)&&e.groupArraysAfterLength&&e.src.length>e.groupArraysAfterLength&&(n=Gn),u()().createElement(`div`,{className:`pretty-json-container object-container`},u()().createElement(`div`,{className:`object-content`},u()().createElement(n,{namespace:t,depth:0,jsvRoot:!0,...e})))}},Xn=class extends u()().PureComponent{constructor(e){super(e),this.state={input:e.input?e.input:``}}render(){let{theme:e,rjvId:t,isValid:n}=this.props,{input:r}=this.state,i=n(r);return u()().createElement(`div`,{className:`key-modal-request`,...F(e,`key-modal-request`),onClick:this.handleCloseModal},u()().createElement(`div`,{...F(e,`key-modal`),onClick:e=>{e.stopPropagation()}},u()().createElement(`div`,F(e,`key-modal-label`),`Key Name:`),u()().createElement(`div`,{style:{position:`relative`}},u()().createElement(`input`,{...F(e,`key-modal-input`),className:`key-modal-input`,ref:e=>e&&e.focus(),spellCheck:!1,value:r,placeholder:`...`,onChange:e=>{this.setState({input:e.target.value})},onKeyPress:e=>{i&&e.key===`Enter`?this.handleSubmit():e.key===`Escape`&&this.handleCloseModal()}}),i?u()().createElement(In,{...F(e,`key-modal-submit`),className:`key-modal-submit`,onClick:this.handleSubmit}):null),u()().createElement(`span`,F(e,`key-modal-cancel`),u()().createElement(Pn,{...F(e,`key-modal-cancel-icon`),className:`key-modal-cancel`,onClick:()=>{I.dispatch({rjvId:t,name:`RESET`})}}))))}handleCloseModal=()=>{I.dispatch({rjvId:this.props.rjvId,name:`RESET`})};handleSubmit=()=>{this.props.submit(this.state.input)}},Zn=class extends u()().PureComponent{render(){let{active:e,theme:t,rjvId:n}=this.props;return e?u()().createElement(Xn,{rjvId:n,theme:t,isValid:this.isValid,submit:this.submit}):null}isValid=e=>{let{rjvId:t}=this.props,n=mn.get(t,`action`,`new-key-request`);return e!==``&&Object.keys(n.existing_value).indexOf(e)===-1};submit=e=>{let{rjvId:t}=this.props,n=mn.get(t,`action`,`new-key-request`);n.new_value={...n.existing_value},n.new_value[e]=this.props.defaultValue,I.dispatch({name:`VARIABLE_ADDED`,rjvId:t,data:n})}},Qn=class extends u()().PureComponent{render(){let{message:e,active:t,theme:n,rjvId:r}=this.props;return t?u()().createElement(`div`,{className:`validation-failure`,...F(n,`validation-failure`),onClick:()=>{I.dispatch({rjvId:r,name:`RESET`})}},u()().createElement(`span`,F(n,`validation-failure-label`),e),u()().createElement(Pn,F(n,`validation-failure-clear`))):null}};class $n extends u()().PureComponent{constructor(e){super(e),this.state={addKeyRequest:!1,editKeyRequest:!1,validationFailure:!1,src:$n.defaultProps.src,name:$n.defaultProps.name,theme:$n.defaultProps.theme,validationMessage:$n.defaultProps.validationMessage,prevSrc:$n.defaultProps.src,prevName:$n.defaultProps.name,prevTheme:$n.defaultProps.theme}}rjvId=Date.now().toString()+Math.random().toString(36).slice(2);static defaultProps={src:{},name:`root`,theme:`rjv-default`,collapsed:!1,collapseStringsAfterLength:!1,shouldCollapse:!1,sortKeys:!1,quotesOnKeys:!0,groupArraysAfterLength:100,indentWidth:4,enableClipboard:!0,escapeStrings:!0,displayObjectSize:!0,displayDataTypes:!0,onEdit:!1,onDelete:!1,onAdd:!1,onSelect:!1,iconStyle:`triangle`,style:{},validationMessage:`Validation Error`,defaultValue:null,displayArrayKey:!0,selectOnFocus:!1,keyModifier:e=>e.metaKey||e.ctrlKey,bigNumber:null,showComma:!0};static getDerivedStateFromProps(e,t){if(e.src!==t.prevSrc||e.name!==t.prevName||e.theme!==t.prevTheme){let t={src:e.src,name:e.name,theme:e.theme,validationMessage:e.validationMessage,prevSrc:e.src,prevName:e.name,prevTheme:e.theme};return $n.validateState(t)}return null}componentDidMount(){mn.set(this.rjvId,`global`,`src`,this.state.src);let e=this.getListeners();for(let t in e)mn.on(t+`-`+this.rjvId,e[t]);this.setState({addKeyRequest:!1,editKeyRequest:!1})}componentDidUpdate(e,t){!1!==t.addKeyRequest&&this.setState({addKeyRequest:!1}),!1!==t.editKeyRequest&&this.setState({editKeyRequest:!1}),e.src!==this.state.src&&mn.set(this.rjvId,`global`,`src`,this.state.src)}componentWillUnmount(){let e=this.getListeners();for(let t in e)mn.removeListener(t+`-`+this.rjvId,e[t])}getListeners=()=>({reset:this.resetState,"variable-update":this.updateSrc,"add-key-request":this.addKeyRequest});static validateState=e=>{let t={};return h(e.theme)!==`object`||function(e){let t=[`base00`,`base01`,`base02`,`base03`,`base04`,`base05`,`base06`,`base07`,`base08`,`base09`,`base0A`,`base0B`,`base0C`,`base0D`,`base0E`,`base0F`];if(h(e)===`object`){for(let n=0;n<t.length;n++)if(!(t[n]in e))return!1;return!0}return!1}(e.theme)||(console.error(`react-json-view error:`,`theme prop must be a theme name or valid base-16 theme object.`,`defaulting to "rjv-default" theme`),t.theme=`rjv-default`),h(e.src)!==`object`&&h(e.src)!==`array`&&(console.error(`react-json-view error:`,`src property must be a valid json object`),t.name=`ERROR`,t.src={message:`src property must be a valid json object`}),{...e,...t}};render(){let{validationFailure:e,validationMessage:t,addKeyRequest:n,theme:r,src:i,name:a}=this.state,{style:o,defaultValue:s}=this.props;return u()().createElement(`div`,{className:`react-json-view`,style:{...F(r,`app-container`).style,...o}},u()().createElement(Qn,{message:t,active:e,theme:r,rjvId:this.rjvId}),u()().createElement(Yn,{...this.props,src:i,name:a,theme:r,type:h(i),rjvId:this.rjvId}),u()().createElement(Zn,{active:n,theme:r,rjvId:this.rjvId,defaultValue:s}))}updateSrc=()=>{let{name:e,namespace:t,new_value:n,existing_value:r,updated_src:i,type:a}=mn.get(this.rjvId,`action`,`variable-update`),{onEdit:o,onDelete:s,onAdd:c}=this.props,{src:l}=this.state,u,d={existing_src:l,new_value:n,updated_src:i,name:e,namespace:t,existing_value:r};switch(a){case`variable-added`:u=c(d);break;case`variable-edited`:u=o(d);break;case`variable-removed`:u=s(d)}!1===u?this.setState({validationFailure:!0}):(mn.set(this.rjvId,`global`,`src`,i),this.setState({src:i}))};addKeyRequest=()=>{this.setState({addKeyRequest:!0})};resetState=()=>{this.setState({validationFailure:!1,addKeyRequest:!1})}}m($n);let er=$n})(),i})())}))(),1),Sw=xw.default.default||xw.default,Cw={CHAT_CONFIG:`chat_config`,LLMCLIENT_REQUEST_HISTORY:`llmclient_request_history`,CHAT_TOOL_CALL_HISTORY:`chat_tool_call_history`,CHAT_PLUGIN_USAGE_HISTORY:`chat_plugin_usage_history`,SERVER_LOGS:`server_logs`};function ww(e){return!!e&&Object.keys(e).length>0}function Tw(e,t){if(!ww(e))return[];let n=e.history??{},r=(e,t)=>Array.isArray(e)?e:Array.isArray(t)?t:[];switch(t){case Cw.LLMCLIENT_REQUEST_HISTORY:return r(n.llmclient_request_history,n.chatbot_request_history);case Cw.CHAT_TOOL_CALL_HISTORY:return r(n.prompt_tool_call_history,n.chat_tool_call_history);case Cw.CHAT_PLUGIN_USAGE_HISTORY:return r(n.prompt_plugin_usage_history,n.chat_plugin_usage_history);case Cw.SERVER_LOGS:return[];default:return[e]}}var Ew=[`#1b1f24`,`#ff8f8f`,`#7bd88f`,`#ffd580`,`#78dce8`,`#c792ea`,`#89ddff`,`#d9e1ea`,`#5c6773`,`#ff8f8f`,`#7bd88f`,`#ffd580`,`#89ddff`,`#d8b4ff`,`#89ddff`,`#ffffff`],Dw=/\x1b\[([0-9;?]*)([A-Za-z])|\x1b[@-Z\\-_]/g;function Ow(e){if(!Number.isInteger(e)||e<0||e>255)return;if(e<16)return Ew[e];if(e<232){let t=e=>e===0?0:55+e*40,n=e-16;return kw(t(Math.floor(n/36)),t(Math.floor(n/6)%6),t(n%6))}let t=8+(e-232)*10;return kw(t,t,t)}function kw(e,t,n){return`rgb(${e}, ${t}, ${n})`}function Aw(e){if(e[0]===5)return[Ow(e[1]),2];if(e[0]===2){let[t,n,r]=e.slice(1,4);return[[t,n,r].every(e=>Number.isInteger(e)&&e>=0&&e<=255)?kw(t,n,r):void 0,4]}return[void 0,1]}function jw(e,t){let n={...e},r=t.length===0?[0]:[...t];for(;r.length>0;){let e=r.shift();if(e===0)n={};else if(e===1)n.bold=!0;else if(e===2)n.dim=!0;else if(e===3)n.italic=!0;else if(e===4)n.underline=!0;else if(e===22)n={...n,bold:void 0,dim:void 0};else if(e===23)n.italic=void 0;else if(e===24)n.underline=void 0;else if(e>=30&&e<=37)n.color=Ew[e-30];else if(e>=90&&e<=97)n.color=Ew[e-90+8];else if(e===39)n.color=void 0;else if(e>=40&&e<=47)n.backgroundColor=Ew[e-40];else if(e>=100&&e<=107)n.backgroundColor=Ew[e-100+8];else if(e===49)n.backgroundColor=void 0;else if(e===38||e===48){let[t,i]=Aw(r);r.splice(0,i),e===38?n.color=t:n.backgroundColor=t}}return n}function Mw(e){let t=[],n={},r=0,i=i=>{i>r&&t.push({text:e.slice(r,i),style:n})};for(let t of e.matchAll(Dw))if(i(t.index),r=t.index+t[0].length,t[2]===`m`){let e=t[1]===``?[]:t[1].split(`;`).map(e=>e===``?0:Number(e));n=jw(n,e)}return i(e.length),t}function Nw(e){let t={};return e.color&&(t.color=e.color),e.backgroundColor&&(t.backgroundColor=e.backgroundColor),e.bold&&(t.fontWeight=`bold`),e.dim&&(t.opacity=.7),e.italic&&(t.fontStyle=`italic`),e.underline&&(t.textDecoration=`underline`),t}var Pw=new Set([`Waiting for log stream...`,`[stream] connected`]);function Fw({logs:e,connected:t,error:n}){return n||(t?e.length>0?`Streaming server logs...`:`Streaming server logs... There are none yet.`:`Connecting to the server log stream...`)}function Iw({message:e}){return(0,n.jsx)(`div`,{className:`console-log-line`,children:Mw(e).map((e,t)=>(0,n.jsx)(`span`,{style:Nw(e.style),children:e.text},t))})}function Lw(e){let[t,r]=tg(),i=e.logs.map(e=>String(e.message??``)).filter(e=>!Pw.has(e.trim()));return(0,n.jsxs)(`div`,{className:`console-server-logs ${t?`console-server-logs-wrap`:``}`,children:[(0,n.jsxs)(`div`,{className:`console-server-logs-toolbar`,children:[(0,n.jsx)(`p`,{className:`mb-0 console-server-logs-status`,children:Fw(e)}),(0,n.jsxs)(`button`,{type:`button`,className:`console-server-logs-wrap-toggle`,"aria-pressed":t,title:t?`Scroll long lines`:`Wrap long lines`,onClick:()=>r(e=>!e),children:[(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,width:`14`,height:`14`,"aria-hidden":`true`,fill:`currentColor`,children:(0,n.jsx)(`path`,{d:`M1 3.5a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 0 1h-13a.5.5 0 0 1-.5-.5Zm0 4a.5.5 0 0 1 .5-.5h11a2.5 2.5 0 0 1 0 5H9.707l.647.646a.5.5 0 0 1-.708.708l-1.5-1.5a.5.5 0 0 1 0-.708l1.5-1.5a.5.5 0 1 1 .708.708L9.707 11H12.5a1.5 1.5 0 0 0 0-3h-11a.5.5 0 0 1-.5-.5Zm0 4a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 0 1h-4a.5.5 0 0 1-.5-.5Z`})}),`Wrap lines`]})]}),(0,n.jsx)(`div`,{className:`console-server-logs-lines`,children:i.map((e,t)=>(0,n.jsx)(Iw,{message:e},t))})]})}var Rw=[{label:`Api Calls`,id:Cw.LLMCLIENT_REQUEST_HISTORY},{label:`Tool Calls`,id:Cw.CHAT_TOOL_CALL_HISTORY},{label:`Plugin Usage`,id:Cw.CHAT_PLUGIN_USAGE_HISTORY},{label:`Config`,id:Cw.CHAT_CONFIG}],zw={label:`Server Logs`,id:Cw.SERVER_LOGS};function Bw({config:e,logStreamUrl:r=null,logLevel:i=null,resetKey:a}){let[o,s]=(0,t.useState)(r?Cw.SERVER_LOGS:Cw.CHAT_CONFIG),{clear:c,...l}=cg(ig(r,i)),u=(0,t.useRef)(a);(0,t.useEffect)(()=>{a!==u.current&&(u.current=a,c())},[a,c]);let d=r?[zw,...Rw]:Rw,f=o===Cw.SERVER_LOGS&&!!r,p=d.find(({id:e})=>e===o)?.label??``,[m]=(0,t.useState)(()=>({lastLogin:new Date().toString(),ipAddress:`192.168.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`,prompt:`smarter_user@smarter-${Math.floor(Math.random()*4294967295).toString(16)}:~/smarter$`})),h=Tw(e,o),g=!f&&h.length===0&&!!e&&Object.keys(e).length>0;return(0,n.jsx)(`div`,{className:`console`,children:(0,n.jsx)(`div`,{className:`app-main flex-column flex-row-fluid`,id:`chatapp_console_app_main`,children:(0,n.jsx)(`div`,{className:`d-flex flex-column flex-column-fluid`,children:(0,n.jsx)(`div`,{id:`chatapp_console_app_content`,className:`app-content flex-column-fluid p-0 pb-5`,children:(0,n.jsxs)(`div`,{id:`chatapp_console_app_content_container`,className:`app-container container-lg`,children:[(0,n.jsx)(`nav`,{id:`chatapp_console`,"aria-label":`Console`,className:`bg-gray-200 d-flex flex-stack flex-wrap mb-2 p-2 console-nav-items`,children:(0,n.jsx)(`ul`,{className:`nav flex-wrap border-transparent`,children:d.map(({label:e,id:t})=>(0,n.jsx)(`li`,{className:`nav-item my-1`,children:(0,n.jsx)(`button`,{type:`button`,id:t,"aria-pressed":t===o,className:`btn btn-sm btn-color-gray-600 bg-state-body btn-active-color-gray-800 fw-bolder fw-bold fs-6 fs-lg-base nav-link px-3 px-lg-4 mx-1 ${t===o?`active`:``}`,onClick:()=>s(t),children:e})},t))})}),(0,n.jsx)(`div`,{className:`console-output rounded ${f?`console-output-logs`:``}`,role:`log`,"aria-label":`Console output`,children:(0,n.jsxs)(`div`,{className:`console-output-content`,children:[(0,n.jsxs)(`p`,{className:`mb-0`,children:[`Last login: `,m.lastLogin,` from `,m.ipAddress]}),(0,n.jsx)(`p`,{className:`mb-0`,children:m.prompt}),f&&(0,n.jsx)(Lw,{...l}),g&&(0,n.jsxs)(`p`,{className:`mb-0 console-empty`,children:[`No `,p.toLowerCase(),` in this chat session yet.`]}),h.length>0&&(0,n.jsxs)(n.Fragment,{children:[h.map((e,t)=>(0,n.jsx)(Sw,{src:e,theme:`monokai`},t)),(0,n.jsx)(`p`,{className:`mb-0`,children:m.prompt})]})]})})]})})})})})}var Vw=Bw,Hw=class extends t.Component{state={error:null};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error(`${Tf} ErrorBoundary caught an error:`,e,t)}render(){return this.state.error?(0,n.jsxs)(`div`,{role:`alert`,className:`smarter-chat-error-boundary`,children:[(0,n.jsx)(`h2`,{children:`Something went wrong.`}),(0,n.jsx)(`p`,{children:this.state.error.message})]}):this.props.children}};function Uw({paths:e}){return(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,children:e.map(e=>(0,n.jsx)(`path`,{d:e},e))})}function Ww(){return(0,n.jsx)(Uw,{paths:[`M14 4.5V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h5.5zm-3 0A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4.5z`]})}function Gw({visible:e}){return e?(0,n.jsx)(Uw,{paths:[`M2 2a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1zm12-1a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2z`,`M13 4a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1z`]}):(0,n.jsx)(Uw,{paths:[`M16 3a2 2 0 0 0-2-2H2a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2zm-5-1v12H2a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1zm1 0h2a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-2z`]})}function Kw(){return(0,n.jsx)(Uw,{paths:[`M1 0 0 1l2.2 3.081a1 1 0 0 0 .815.419h.07a1 1 0 0 1 .708.293l2.675 2.675-2.617 2.654A3.003 3.003 0 0 0 0 13a3 3 0 1 0 5.878-.851l2.654-2.617.968.968-.305.914a1 1 0 0 0 .242 1.023l3.27 3.27a.997.997 0 0 0 1.414 0l1.586-1.586a.997.997 0 0 0 0-1.414l-3.27-3.27a1 1 0 0 0-1.023-.242L10.5 9.5l-.96-.96 2.68-2.643A3.005 3.005 0 0 0 16 3q0-.405-.102-.777l-2.14 2.141L12 4l-.364-1.757L13.777.102a3 3 0 0 0-3.675 3.68L7.462 6.46 4.793 3.793a1 1 0 0 1-.293-.707v-.071a1 1 0 0 0-.419-.814zm9.646 10.646a.5.5 0 0 1 .708 0l2.914 2.915a.5.5 0 0 1-.707.707l-2.915-2.914a.5.5 0 0 1 0-.708M3 11l.471.242.529.026.287.445.445.287.026.529L5 13l-.242.471-.026.529-.445.287-.287.445-.529.026L3 15l-.471-.242L2 14.732l-.287-.445L1.268 14l-.026-.529L1 13l.242-.471.026-.529.445-.287.287-.445.529-.026z`]})}function qw(){return(0,n.jsx)(Uw,{paths:[`M5.338 1.59a61 61 0 0 0-2.837.856.48.48 0 0 0-.328.39c-.554 4.157.726 7.19 2.253 9.188a10.7 10.7 0 0 0 2.287 2.233c.346.244.652.42.893.533q.18.085.293.118a1 1 0 0 0 .101.025 1 1 0 0 0 .1-.025q.114-.034.294-.118c.24-.113.547-.29.893-.533a10.7 10.7 0 0 0 2.287-2.233c1.527-1.997 2.807-5.031 2.253-9.188a.48.48 0 0 0-.328-.39c-.651-.213-1.75-.56-2.837-.855C9.552 1.29 8.531 1.067 8 1.067c-.53 0-1.552.223-2.662.524zM5.072.56C6.157.265 7.31 0 8 0s1.843.265 2.928.56c1.11.3 2.229.655 2.887.87a1.54 1.54 0 0 1 1.044 1.262c.596 4.477-.787 7.795-2.465 9.99a11.8 11.8 0 0 1-2.517 2.453 7 7 0 0 1-1.048.625c-.28.132-.581.24-.829.24s-.548-.108-.829-.24a7 7 0 0 1-1.048-.625 11.8 11.8 0 0 1-2.517-2.453C1.928 10.487.545 7.169 1.141 2.692A1.54 1.54 0 0 1 2.185 1.43 63 63 0 0 1 5.072.56`,`M10.854 5.146a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 1 1 .708-.708L7.5 7.793l2.646-2.647a.5.5 0 0 1 .708 0`]})}function Jw(e){return e===Mf.SMARTER?`smarter-message`:e===Mf.SMARTER_ERROR?`smarter-error-message`:e===Mf.TOOL||e===Mf.SYSTEM?`system-message`:``}function Yw(e){return sw(e.message,Mf.SMARTER).message}function Xw({apiUrl:e,apiKey:r=null,toggleMetadata:i=!1,csrfCookieName:a=`csrftoken`,csrftoken:o=null,debugCookieName:s=`debug`,debugCookieExpiration:c=Ef,debugMode:l=!1,sessionCookieName:u=`session_key`,sessionCookieExpiration:d=Ef,showConsole:f=!0,cookieDomain:p=``,smarterRequestId:m=``,logStreamUrl:h=null,streamProgress:g=!0}){let[_,v]=(0,t.useState)(null),[y,b]=(0,t.useState)(null),[x,S]=(0,t.useState)([]),[C,w]=(0,t.useState)(!0),[T,E]=(0,t.useState)(!1),[D,O]=(0,t.useState)([]),[k,A]=eg(),[ee,j]=(0,t.useState)(0),te=(0,t.useRef)(null),M=(0,t.useRef)(null),ne=(0,t.useRef)(null),{chatWidth:re,separatorProps:ie}=ng(ne),ae=f&&k,oe=(0,t.useMemo)(()=>({csrfCookie:Af(a,null,p,o),sessionCookie:Af(u,d,p),debugCookie:Af(s,c,p)}),[a,o,p,u,d,s,c]),N=(0,t.useMemo)(()=>({smarterClient:Cf,smarterClientVersion:wf,smarterRequestId:m,apiKey:r}),[m,r]),se=(0,t.useCallback)((...e)=>{(l||_?.debug_mode)&&console.log(Tf,...e)},[l,_?.debug_mode]),ce=(0,t.useCallback)(async()=>{let t=await Uf(e,oe,N);return v(t),t},[e,oe,N]),le=(0,t.useCallback)(async()=>{try{b(null);let e=await ce(),t=e.chatbot;S(dw(t.app_welcome_message,t.default_system_role,t.app_example_prompts,e.history?.chat_history)),w(!0),E(!1),se(`chat started`,e)}catch(e){console.error(`${Tf} Failed to fetch the configuration:`,e),b(e instanceof Error?e.message:String(e))}},[ce,se]);(0,t.useEffect)(()=>{le()},[e]),(0,t.useEffect)(()=>{let e=M.current?.querySelector(`.cs-message-input__content-editor`);e?.setAttribute(`role`,`textbox`),e?.setAttribute(`aria-multiline`,`true`),e?.setAttribute(`aria-label`,`Message`)},[]),(0,t.useEffect)(()=>{let e=M.current,t=e=>Zp(e.target)||Uh(e.target);return e?.addEventListener(`click`,t),()=>e?.removeEventListener(`click`,t)},[]),(0,t.useLayoutEffect)(()=>{Hh(M.current)},[x,C]);let ue=()=>{kf(oe.sessionCookie,``),v(null),j(e=>e+1),le()},de=()=>{let e=!C;w(e),S(t=>pw(t,e,Pf))};async function fe(e){if(!_)return;let t=[...x,sw(e,Mf.USER)];S(t),E(!0),O([]);let n=g?e=>{se(`prompt progress`,e),O(t=>[...t,e])}:void 0;try{let e=await Xf(_,fw(t),oe,N,n),r=e.messages.map(e=>{let t=sw(e.content,e.role,e);return Pf.includes(t.sender)&&!C?{...t,display:!1}:t});S(e=>[...e,...r]),se(`prompt response`,e),await ce().catch(e=>console.error(`${Tf} Failed to refresh:`,e))}catch(e){console.error(`${Tf} Prompt failed:`,e);let t=e instanceof Error?e.message:String(e);S(e=>[...e,sw(t,Mf.SMARTER_ERROR)])}finally{E(!1),O([])}}let pe=(e,t,n)=>{let r=n??t??mw(e);r.trim()&&fe(r)},me=e=>{let t=e.target.files?.[0];t&&(t.text().then(e=>void fe(e)),e.target.value=``)},he=_?.chatbot,ge=!!_,_e=he?`${he.app_name} v${he.version||`1.0.0`}`:``,ve=_?.plugins?.meta_data?.total_plugins??0,ye=he?`${he.provider} ${he.default_model}${ve>0?` with ${ve} additional plugins`:``}`:``,be=_?.meta_data?.is_valid??_?.meta_data?.ready??!0,xe=!!(_?.meta_data?.is_deployed??he?.deployed),Se=he?.app_assistant??`Assistant`,Ce=D.at(-1)?.message,we=Ce?`${Se}: ${Ce}`:`${Se} is typing`,Te;return Te=y?`Smarter Chat is not available`:ge?(0,n.jsx)(bw,{title:_e,isReady:ge,isValid:be,isDeployed:xe}):`Configuring workbench...`,(0,n.jsx)(`div`,{id:`smarter_chat_component_container`,className:`SmarterChat`,children:(0,n.jsxs)(`div`,{className:`smarter-chat-container`,ref:ne,children:[(0,n.jsx)(`div`,{role:`region`,"aria-label":`Chat`,className:`smarter-chat-app ${ae?``:`smarter-chat-app-full`}`,style:ae?{flexBasis:`${re}%`}:void 0,children:(0,n.jsxs)(`div`,{className:`chat-app`,ref:M,children:[(0,n.jsx)(Hw,{children:(0,n.jsx)(Rd,{style:{width:`100%`,height:`100%`},children:(0,n.jsxs)(Ed,{className:`smarter-chat-container-inner`,children:[(0,n.jsxs)(ns,{children:[(0,n.jsx)(ns.Content,{userName:Te,info:ge?ye:``}),(0,n.jsxs)(ns.Actions,{children:[i&&(0,n.jsx)(Le,{className:`smarter-chat-toolbar-button smarter-chat-mode-toggle`,icon:C?(0,n.jsx)(Kw,{}):(0,n.jsx)(qw,{}),onClick:de,title:C?`Sandbox mode: Smarter's system, tool and meta data messages are displayed. Click for production mode.`:`Production mode: the conversation is displayed as its users see it. Click for sandbox mode.`,children:C?`Sandbox mode`:`Production mode`}),(0,n.jsx)(Le,{className:`smarter-chat-toolbar-button`,icon:(0,n.jsx)(Ww,{}),onClick:ue,title:`Start a new chat`,"aria-label":`Start a new chat`}),f&&(0,n.jsx)(Le,{className:`smarter-chat-toolbar-button smarter-chat-console-toggle`,icon:(0,n.jsx)(Gw,{visible:k}),onClick:()=>A(e=>!e),title:k?`Hide the Console`:`Show the Console`,"aria-label":`Show the Console`,"aria-pressed":k})]})]}),(0,n.jsxs)(mu,{className:`smarter-chat-message-list`,scrollBehavior:`auto`,typingIndicator:T?(0,n.jsx)(df,{content:we}):null,children:[y&&(0,n.jsx)(Qc,{className:`smarter-error-message`,model:{message:sw(y,Mf.SMARTER_ERROR).message,direction:`incoming`,position:`single`,sender:Mf.SMARTER_ERROR}}),x.map((e,t)=>e.display?(0,n.jsx)(Qc,{className:Jw(e.sender),model:{message:e.message,sentTime:e.sentTime,sender:e.sender,direction:e.direction,position:`single`}},t):null),C&&D.map((e,t)=>(0,n.jsx)(Qc,{className:`smarter-progress-message ${t===D.length-1?`smarter-progress-message-active`:`smarter-progress-message-done`}`,model:{message:Yw(e),sender:Mf.SMARTER,direction:`incoming`,position:`single`}},`progress-${t}`))]}),(0,n.jsx)(cd,{placeholder:he?.app_placeholder??``,onSend:pe,onAttachClick:()=>te.current?.click(),attachButton:!!he?.app_file_attachment,disabled:!ge,fancyScroll:!1})]})})}),(0,n.jsx)(`input`,{type:`file`,accept:`.py,.txt,.md,.json,.yaml,.yml,.csv`,"aria-label":`Attach a file`,ref:te,style:{display:`none`},onChange:me})]})}),ae&&(0,n.jsx)(`div`,{className:`smarter-chat-separator`,...ie}),f&&(0,n.jsx)(`div`,{className:`smarter-chat-console ${k?``:`smarter-chat-console-hidden`}`,"aria-hidden":!k,inert:!k,children:(0,n.jsx)(Hw,{children:(0,n.jsx)(Vw,{config:_,logStreamUrl:h,logLevel:C?`DEBUG`:null,resetKey:ee})})})]})})}var Zw=Xw;e.Console=Vw,e.MenuItems=Cw,e.MessageDirectionEnum=jf,e.SenderRoleEnum=Mf,e.SmarterChat=Zw,e.ValidMessageRolesEnum=Nf,e.version=wf});
|
|
894
|
+
//# sourceMappingURL=smarter-chat-library.umd.js.map
|