diff --git a/0.6181fded132369e1226c.manager.bundle.js b/0.6181fded132369e1226c.manager.bundle.js new file mode 100644 index 000000000..2cd6880e5 --- /dev/null +++ b/0.6181fded132369e1226c.manager.bundle.js @@ -0,0 +1,2 @@ +/*! For license information please see 0.6181fded132369e1226c.manager.bundle.js.LICENSE.txt */ +(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{320:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"SyntaxHighlighter",(function(){return SyntaxHighlighter})),__webpack_require__.d(__webpack_exports__,"createCopyToClipboardFunction",(function(){return createCopyToClipboardFunction})),__webpack_require__.d(__webpack_exports__,"default",(function(){return SyntaxHighlighter}));__webpack_require__(93),__webpack_require__(19),__webpack_require__(99),__webpack_require__(142),__webpack_require__(90),__webpack_require__(79),__webpack_require__(42),__webpack_require__(305),__webpack_require__(70),__webpack_require__(11),__webpack_require__(849),__webpack_require__(29),__webpack_require__(143),__webpack_require__(304),__webpack_require__(16),__webpack_require__(21),__webpack_require__(22),__webpack_require__(15),__webpack_require__(18),__webpack_require__(17),__webpack_require__(33),__webpack_require__(27),__webpack_require__(45),__webpack_require__(222),__webpack_require__(38),__webpack_require__(26),__webpack_require__(91),__webpack_require__(62),__webpack_require__(80),__webpack_require__(37),__webpack_require__(50),__webpack_require__(119),__webpack_require__(103),__webpack_require__(175),__webpack_require__(58);var _index_681e4b07_js__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__(2),react__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_36___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_36__),_storybook_client_logger__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__(10),_storybook_theming__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__(1),memoizerific__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__(28),memoizerific__WEBPACK_IMPORTED_MODULE_39___default=__webpack_require__.n(memoizerific__WEBPACK_IMPORTED_MODULE_39__);__webpack_require__(48);function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray2(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray2(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray2(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray2(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i*\.{3}(?:[^{}]|)*\})/.source;function re(source,flags){return source=source.replace(//g,(function(){return space})).replace(//g,(function(){return braces})).replace(//g,(function(){return spread})),RegExp(source,flags)}spread=re(spread).source,Prism.languages.jsx=Prism.languages.extend("markup",javascript),Prism.languages.jsx.tag.pattern=re(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),Prism.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,Prism.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,Prism.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,Prism.languages.jsx.tag.inside.comment=javascript.comment,Prism.languages.insertBefore("inside","attr-name",{spread:{pattern:re(//.source),inside:Prism.languages.jsx}},Prism.languages.jsx.tag),Prism.languages.insertBefore("inside","special-attr",{script:{pattern:re(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:Prism.languages.jsx}}},Prism.languages.jsx.tag);var stringifyToken=function stringifyToken(token){return token?"string"==typeof token?token:"string"==typeof token.content?token.content:token.content.map(stringifyToken).join(""):""},walkTokens=function walkTokens(tokens){for(var openedTags=[],i=0;i0&&openedTags[openedTags.length-1].tagName===stringifyToken(token.content[0].content[1])&&openedTags.pop():"/>"===token.content[token.content.length-1].content||openedTags.push({tagName:stringifyToken(token.content[0].content[1]),openedBraces:0}):openedTags.length>0&&"punctuation"===token.type&&"{"===token.content?openedTags[openedTags.length-1].openedBraces++:openedTags.length>0&&openedTags[openedTags.length-1].openedBraces>0&&"punctuation"===token.type&&"}"===token.content?openedTags[openedTags.length-1].openedBraces--:notTagNorBrace=!0),(notTagNorBrace||"string"==typeof token)&&openedTags.length>0&&0===openedTags[openedTags.length-1].openedBraces){var plainText=stringifyToken(token);i0&&("string"==typeof tokens[i-1]||"plain-text"===tokens[i-1].type)&&(plainText=stringifyToken(tokens[i-1])+plainText,tokens.splice(i-1,1),i--),tokens[i]=new Prism.Token("plain-text",plainText,null,plainText)}token.content&&"string"!=typeof token.content&&walkTokens(token.content)}};Prism.hooks.add("after-tokenize",(function(env){"jsx"!==env.language&&"tsx"!==env.language||walkTokens(env.tokens)}))}(Prism)}jsx.displayName="jsx",jsx.aliases=[];var jsx$1=jsx_1,bash_1=bash;function bash(Prism){!function(Prism){var envVars="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",commandAfterHeredoc={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},insideString={bash:commandAfterHeredoc,environment:{pattern:RegExp("\\$"+envVars),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+envVars),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};Prism.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+envVars),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:insideString},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:commandAfterHeredoc}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:insideString},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:insideString.entity}}],environment:{pattern:RegExp("\\$?"+envVars),alias:"constant"},variable:insideString.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},commandAfterHeredoc.inside=Prism.languages.bash;for(var toBeCopied=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],inside=insideString.variable[1].inside,i=0;i/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),flags)}Prism.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+Prism.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),Prism.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+Prism.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),Prism.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),Prism.languages.insertBefore("javascript","keyword",{imports:{pattern:withId(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:Prism.languages.javascript},exports:{pattern:withId(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:Prism.languages.javascript}}),Prism.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),Prism.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),Prism.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:withId(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var maybeClassNameTokens=["function","function-variable","method","method-variable","property-access"],i=0;i0)){var mutationEnd=findClosingBracket(/^\{$/,/^\}$/);if(-1===mutationEnd)continue;for(var i=currentIndex;i=0&&addAlias(varToken,"variable-input")}}}}function getToken(offset){return validTokens[currentIndex+offset]}function isTokenType(types,offset){offset=offset||0;for(var i=0;i/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(env){"entity"===env.type&&(env.attributes.title=env.content.value.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function addInlined(tagName,lang){var includedCdataInside={};includedCdataInside["language-"+lang]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[lang]},includedCdataInside.cdata=/^$/i;var inside={"included-cdata":{pattern://i,inside:includedCdataInside}};inside["language-"+lang]={pattern:/[\s\S]+/,inside:Prism.languages[lang]};var def={};def[tagName]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return tagName})),"i"),lookbehind:!0,greedy:!0,inside:inside},Prism.languages.insertBefore("markup","cdata",def)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function value(attrName,lang){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+attrName+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[lang,"language-"+lang],inside:Prism.languages[lang]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml}markup$1.displayName="markup",markup$1.aliases=["html","mathml","svg","xml","ssml","atom","rss"];var markup$2=markup_1,markdown_1=markdown;function markdown(Prism){!function(Prism){var inner=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function createInline(pattern){return pattern=pattern.replace(//g,(function(){return inner})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+pattern+")")}var tableCell=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,tableRow=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return tableCell})),tableLine=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;Prism.languages.markdown=Prism.languages.extend("markup",{}),Prism.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:Prism.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+tableRow+tableLine+"(?:"+tableRow+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+tableRow+tableLine+")(?:"+tableRow+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(tableCell),inside:Prism.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+tableRow+")"+tableLine+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+tableRow+"$"),inside:{"table-header":{pattern:RegExp(tableCell),alias:"important",inside:Prism.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:createInline(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:createInline(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:createInline(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:createInline(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(token){["url","bold","italic","strike","code-snippet"].forEach((function(inside){token!==inside&&(Prism.languages.markdown[token].inside.content.inside[inside]=Prism.languages.markdown[inside])}))})),Prism.hooks.add("after-tokenize",(function(env){"markdown"!==env.language&&"md"!==env.language||function walkTokens(tokens){if(tokens&&"string"!=typeof tokens)for(var i=0,l=tokens.length;i",quot:'"'},fromCodePoint=String.fromCodePoint||String.fromCharCode;Prism.languages.md=Prism.languages.markdown}(Prism)}markdown.displayName="markdown",markdown.aliases=["md"];var markdown$1=markdown_1,yaml_1=yaml;function yaml(Prism){!function(Prism){var anchorOrAlias=/[*&][^\s[\]{},]+/,tag=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,properties="(?:"+tag.source+"(?:[ \t]+"+anchorOrAlias.source+")?|"+anchorOrAlias.source+"(?:[ \t]+"+tag.source+")?)",plainKey=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),string=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function createValuePattern(value,flags){flags=(flags||"").replace(/m/g,"")+"m";var pattern=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,(function(){return properties})).replace(/<>/g,(function(){return value}));return RegExp(pattern,flags)}Prism.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,(function(){return properties}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,(function(){return properties})).replace(/<>/g,(function(){return"(?:"+plainKey+"|"+string+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:createValuePattern(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:createValuePattern(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:createValuePattern(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:createValuePattern(string),lookbehind:!0,greedy:!0},number:{pattern:createValuePattern(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:tag,important:anchorOrAlias,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},Prism.languages.yml=Prism.languages.yaml}(Prism)}yaml.displayName="yaml",yaml.aliases=["yml"];var yaml$1=yaml_1,typescript_1=typescript;function typescript(Prism){!function(Prism){Prism.languages.typescript=Prism.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),Prism.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete Prism.languages.typescript.parameter,delete Prism.languages.typescript["literal-property"];var typeInside=Prism.languages.extend("typescript",{});delete typeInside["class-name"],Prism.languages.typescript["class-name"].inside=typeInside,Prism.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:typeInside}}}}),Prism.languages.ts=Prism.languages.typescript}(Prism)}typescript.displayName="typescript",typescript.aliases=["ts"];var typescript$1=typescript_1,refractorJsx=jsx_1,refractorTypescript=typescript_1,tsx_1=tsx;function tsx(Prism){Prism.register(refractorJsx),Prism.register(refractorTypescript),function(Prism){var typescript=Prism.util.clone(Prism.languages.typescript);Prism.languages.tsx=Prism.languages.extend("jsx",typescript),delete Prism.languages.tsx.parameter,delete Prism.languages.tsx["literal-property"];var tag=Prism.languages.tsx.tag;tag.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+tag.pattern.source+")",tag.pattern.flags),tag.lookbehind=!0}(Prism)}tsx.displayName="tsx",tsx.aliases=[];var tsx$1=tsx_1;function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&void 0!==arguments[1]?arguments[1]:{},stylesheet=arguments.length>2?arguments[2]:void 0;return function getClassNameCombinations(classNames){if(0===classNames.length||1===classNames.length)return classNames;var key=classNames.join(".");return classNameCombinations[key]||(classNameCombinations[key]=function powerSetPermutations(arr){var arrLength=arr.length;return 0===arrLength||1===arrLength?arr:2===arrLength?[arr[0],arr[1],"".concat(arr[0],".").concat(arr[1]),"".concat(arr[1],".").concat(arr[0])]:3===arrLength?[arr[0],arr[1],arr[2],"".concat(arr[0],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[0]),"".concat(arr[1],".").concat(arr[2]),"".concat(arr[2],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[1],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[2],".").concat(arr[1]),"".concat(arr[1],".").concat(arr[0],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[2],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[0],".").concat(arr[1]),"".concat(arr[2],".").concat(arr[1],".").concat(arr[0])]:arrLength>=4?[arr[0],arr[1],arr[2],arr[3],"".concat(arr[0],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[3]),"".concat(arr[1],".").concat(arr[0]),"".concat(arr[1],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[3]),"".concat(arr[2],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[1]),"".concat(arr[2],".").concat(arr[3]),"".concat(arr[3],".").concat(arr[0]),"".concat(arr[3],".").concat(arr[1]),"".concat(arr[3],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[1],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[1],".").concat(arr[3]),"".concat(arr[0],".").concat(arr[2],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[2],".").concat(arr[3]),"".concat(arr[0],".").concat(arr[3],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[3],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[0],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[0],".").concat(arr[3]),"".concat(arr[1],".").concat(arr[2],".").concat(arr[0]),"".concat(arr[1],".").concat(arr[2],".").concat(arr[3]),"".concat(arr[1],".").concat(arr[3],".").concat(arr[0]),"".concat(arr[1],".").concat(arr[3],".").concat(arr[2]),"".concat(arr[2],".").concat(arr[0],".").concat(arr[1]),"".concat(arr[2],".").concat(arr[0],".").concat(arr[3]),"".concat(arr[2],".").concat(arr[1],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[1],".").concat(arr[3]),"".concat(arr[2],".").concat(arr[3],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[3],".").concat(arr[1]),"".concat(arr[3],".").concat(arr[0],".").concat(arr[1]),"".concat(arr[3],".").concat(arr[0],".").concat(arr[2]),"".concat(arr[3],".").concat(arr[1],".").concat(arr[0]),"".concat(arr[3],".").concat(arr[1],".").concat(arr[2]),"".concat(arr[3],".").concat(arr[2],".").concat(arr[0]),"".concat(arr[3],".").concat(arr[2],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[1],".").concat(arr[2],".").concat(arr[3]),"".concat(arr[0],".").concat(arr[1],".").concat(arr[3],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[2],".").concat(arr[1],".").concat(arr[3]),"".concat(arr[0],".").concat(arr[2],".").concat(arr[3],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[3],".").concat(arr[1],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[3],".").concat(arr[2],".").concat(arr[1]),"".concat(arr[1],".").concat(arr[0],".").concat(arr[2],".").concat(arr[3]),"".concat(arr[1],".").concat(arr[0],".").concat(arr[3],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[2],".").concat(arr[0],".").concat(arr[3]),"".concat(arr[1],".").concat(arr[2],".").concat(arr[3],".").concat(arr[0]),"".concat(arr[1],".").concat(arr[3],".").concat(arr[0],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[3],".").concat(arr[2],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[0],".").concat(arr[1],".").concat(arr[3]),"".concat(arr[2],".").concat(arr[0],".").concat(arr[3],".").concat(arr[1]),"".concat(arr[2],".").concat(arr[1],".").concat(arr[0],".").concat(arr[3]),"".concat(arr[2],".").concat(arr[1],".").concat(arr[3],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[3],".").concat(arr[0],".").concat(arr[1]),"".concat(arr[2],".").concat(arr[3],".").concat(arr[1],".").concat(arr[0]),"".concat(arr[3],".").concat(arr[0],".").concat(arr[1],".").concat(arr[2]),"".concat(arr[3],".").concat(arr[0],".").concat(arr[2],".").concat(arr[1]),"".concat(arr[3],".").concat(arr[1],".").concat(arr[0],".").concat(arr[2]),"".concat(arr[3],".").concat(arr[1],".").concat(arr[2],".").concat(arr[0]),"".concat(arr[3],".").concat(arr[2],".").concat(arr[0],".").concat(arr[1]),"".concat(arr[3],".").concat(arr[2],".").concat(arr[1],".").concat(arr[0])]:void 0}(classNames)),classNameCombinations[key]}(classNames.filter((function(className){return"token"!==className}))).reduce((function(styleObject,className){return _objectSpread({},styleObject,stylesheet[className])}),elementStyle)}function createClassNameString(classNames){return classNames.join(" ")}function createElement(_ref){var node=_ref.node,stylesheet=_ref.stylesheet,_ref$style=_ref.style,style=void 0===_ref$style?{}:_ref$style,useInlineStyles=_ref.useInlineStyles,key=_ref.key,properties=node.properties,type=node.type,TagName=node.tagName,value=node.value;if("text"===type)return value;if(TagName){var props,childrenCreator=function createChildren(stylesheet,useInlineStyles){var childrenCount=0;return function(children){return childrenCount+=1,children.map((function(child,i){return createElement({node:child,stylesheet:stylesheet,useInlineStyles:useInlineStyles,key:"code-segment-".concat(childrenCount,"-").concat(i)})}))}}(stylesheet,useInlineStyles);if(useInlineStyles){var allStylesheetSelectors=Object.keys(stylesheet).reduce((function(classes,selector){return selector.split(".").forEach((function(className){classes.includes(className)||classes.push(className)})),classes}),[]),startingClassName=properties.className&&properties.className.includes("token")?["token"]:[],className=properties.className&&startingClassName.concat(properties.className.filter((function(className){return!allStylesheetSelectors.includes(className)})));props=_objectSpread({},properties,{className:createClassNameString(className)||void 0,style:createStyleObject(properties.className,Object.assign({},properties.style,style),stylesheet)})}else props=_objectSpread({},properties,{className:createClassNameString(properties.className)});var children=childrenCreator(node.children);return react__WEBPACK_IMPORTED_MODULE_36___default.a.createElement(TagName,Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_35__.h)({key:key},props),children)}}var checkForListedLanguage=function checkForListedLanguage(astGenerator,language){return-1!==astGenerator.listLanguages().indexOf(language)},newLineRegex=/\n/g;function AllLineNumbers(_ref2){var codeString=_ref2.codeString,codeStyle=_ref2.codeStyle,_ref2$containerStyle=_ref2.containerStyle,containerStyle=void 0===_ref2$containerStyle?{float:"left",paddingRight:"10px"}:_ref2$containerStyle,_ref2$numberStyle=_ref2.numberStyle,numberStyle=void 0===_ref2$numberStyle?{}:_ref2$numberStyle,startingLineNumber=_ref2.startingLineNumber;return react__WEBPACK_IMPORTED_MODULE_36___default.a.createElement("code",{style:Object.assign({},codeStyle,containerStyle)},function getAllLineNumbers(_ref){var lines=_ref.lines,startingLineNumber=_ref.startingLineNumber,style=_ref.style;return lines.map((function(_,i){var number=i+startingLineNumber;return react__WEBPACK_IMPORTED_MODULE_36___default.a.createElement("span",{key:"line-".concat(i),className:"react-syntax-highlighter-line-number",style:"function"==typeof style?style(number):style},"".concat(number,"\n"))}))}({lines:codeString.replace(/\n$/,"").split("\n"),style:numberStyle,startingLineNumber:startingLineNumber}))}function getEmWidthOfNumber(num){return"".concat(num.toString().length,".25em")}function getInlineLineNumber(lineNumber,inlineLineNumberStyle){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(lineNumber),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:inlineLineNumberStyle},children:[{type:"text",value:lineNumber}]}}function assembleLineNumberStyles(lineNumberStyle,lineNumber,largestLineNumber){return _objectSpread({},{display:"inline-block",minWidth:getEmWidthOfNumber(largestLineNumber),paddingRight:"1em",textAlign:"right",userSelect:"none"},"function"==typeof lineNumberStyle?lineNumberStyle(lineNumber):lineNumberStyle)}function createLineElement(_ref3){var children=_ref3.children,lineNumber=_ref3.lineNumber,lineNumberStyle=_ref3.lineNumberStyle,largestLineNumber=_ref3.largestLineNumber,showInlineLineNumbers=_ref3.showInlineLineNumbers,_ref3$lineProps=_ref3.lineProps,lineProps=void 0===_ref3$lineProps?{}:_ref3$lineProps,_ref3$className=_ref3.className,className=void 0===_ref3$className?[]:_ref3$className,showLineNumbers=_ref3.showLineNumbers,wrapLongLines=_ref3.wrapLongLines,properties="function"==typeof lineProps?lineProps(lineNumber):lineProps;if(properties.className=className,lineNumber&&showInlineLineNumbers){var inlineLineNumberStyle=assembleLineNumberStyles(lineNumberStyle,lineNumber,largestLineNumber);children.unshift(getInlineLineNumber(lineNumber,inlineLineNumberStyle))}return wrapLongLines&showLineNumbers&&(properties.style=_objectSpread({},properties.style,{display:"flex"})),{type:"element",tagName:"span",properties:properties,children:children}}function flattenCodeTree(tree){for(var className=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],newTree=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=0;i2&&void 0!==arguments[2]?arguments[2]:[];return wrapLines||className.length>0?function createWrappedLine(children,lineNumber){return createLineElement({children:children,lineNumber:lineNumber,lineNumberStyle:lineNumberStyle,largestLineNumber:largestLineNumber,showInlineLineNumbers:showInlineLineNumbers,lineProps:lineProps,className:arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],showLineNumbers:showLineNumbers,wrapLongLines:wrapLongLines})}(children,lineNumber,className):function createUnwrappedLine(children,lineNumber){if(showLineNumbers&&lineNumber&&showInlineLineNumbers){var inlineLineNumberStyle=assembleLineNumberStyles(lineNumberStyle,lineNumber,largestLineNumber);children.unshift(getInlineLineNumber(lineNumber,inlineLineNumberStyle))}return children}(children,lineNumber)}for(var _loop=function _loop(){var node=tree[index],value=node.children[0].value;if(function getNewLines(str){return str.match(newLineRegex)}(value)){var splitValue=value.split("\n");splitValue.forEach((function(text,i){var lineNumber=showLineNumbers&&newTree.length+startingLineNumber,newChild={type:"text",value:"".concat(text,"\n")};if(0===i){var _line=createLine(tree.slice(lastLineBreakIndex+1,index).concat(createLineElement({children:[newChild],className:node.properties.className})),lineNumber);newTree.push(_line)}else if(i===splitValue.length-1){if(tree[index+1]&&tree[index+1].children&&tree[index+1].children[0]){var newElem=createLineElement({children:[{type:"text",value:"".concat(text)}],className:node.properties.className});tree.splice(index+1,0,newElem)}else{var _line2=createLine([newChild],lineNumber,node.properties.className);newTree.push(_line2)}}else{var _line3=createLine([newChild],lineNumber,node.properties.className);newTree.push(_line3)}})),lastLineBreakIndex=index}index++};index4&&normal.slice(0,4)===data&&valid.test(value)&&("-"===value.charAt(4)?prop=function datasetToProperty(attribute){var value=attribute.slice(5).replace(dash$1,camelcase);return data+value.charAt(0).toUpperCase()+value.slice(1)}(value):value=function datasetToAttribute(property){var value=property.slice(4);if(dash$1.test(value))return property;value=value.replace(cap$1,kebab),"-"!==value.charAt(0)&&(value="-"+value);return data+value}(value),Type=DefinedInfo);return new Type(prop,value)},valid=/^data[-\w.:]+$/i,dash$1=/-[a-z]/g,cap$1=/[A-Z]/g;function kebab($0){return"-"+$0.toLowerCase()}function camelcase($0){return $0.charAt(1).toUpperCase()}var hastUtilParseSelector=function parse$3(selector,defaultTagName){var subvalue,previous,match,value=selector||"",name=defaultTagName||"div",props={},start=0;for(;start=48&&code<=57};var alphabetical=function alphabetical$1(character){var code="string"==typeof character?character.charCodeAt(0):character;return code>=97&&code<=122||code>=65&&code<=90},decimal$1=isDecimal;var characterEntities={AEli:"Æ",AElig:"Æ",AM:"&",AMP:"&",Aacut:"Á",Aacute:"Á",Abreve:"Ă",Acir:"Â",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrav:"À",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",Arin:"Å",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atild:"Ã",Atilde:"Ã",Aum:"Ä",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COP:"©",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedi:"Ç",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ET:"Ð",ETH:"Ð",Eacut:"É",Eacute:"É",Ecaron:"Ě",Ecir:"Ê",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrav:"È",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Eum:"Ë",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",G:">",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacut:"Í",Iacute:"Í",Icir:"Î",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrav:"Ì",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Ium:"Ï",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",L:"<",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntild:"Ñ",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacut:"Ó",Oacute:"Ó",Ocir:"Ô",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograv:"Ò",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslas:"Ø",Oslash:"Ø",Otild:"Õ",Otilde:"Õ",Otimes:"⨷",Oum:"Ö",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUO:'"',QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",RE:"®",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THOR:"Þ",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacut:"Ú",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucir:"Û",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrav:"Ù",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uum:"Ü",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacut:"Ý",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacut:"á",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acir:"â",acirc:"â",acut:"´",acute:"´",acy:"а",aeli:"æ",aelig:"æ",af:"⁡",afr:"𝔞",agrav:"à",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",am:"&",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",arin:"å",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atild:"ã",atilde:"ã",aum:"ä",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvba:"¦",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedi:"ç",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedi:"¸",cedil:"¸",cemptyv:"⦲",cen:"¢",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",cop:"©",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curre:"¤",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",de:"°",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divid:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacut:"é",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"ê",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrav:"è",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",et:"ð",eth:"ð",eum:"ë",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac1:"¼",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac3:"¾",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",g:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacut:"í",iacute:"í",ic:"⁣",icir:"î",icirc:"î",icy:"и",iecy:"е",iexc:"¡",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrav:"ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iques:"¿",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",ium:"ï",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laqu:"«",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",l:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",mac:"¯",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micr:"µ",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middo:"·",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbs:" ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",no:"¬",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntild:"ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacut:"ó",oacute:"ó",oast:"⊛",ocir:"ô",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograv:"ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"º",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslas:"ø",oslash:"ø",osol:"⊘",otild:"õ",otilde:"õ",otimes:"⊗",otimesas:"⨶",oum:"ö",ouml:"ö",ovbar:"⌽",par:"¶",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusm:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",poun:"£",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quo:'"',quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raqu:"»",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",re:"®",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sec:"§",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",sh:"­",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szli:"ß",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thor:"þ",thorn:"þ",tilde:"˜",time:"×",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacut:"ú",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucir:"û",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrav:"ù",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",um:"¨",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uum:"ü",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacut:"ý",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",ye:"¥",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yum:"ÿ",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},decodeEntity_1=function decodeEntity$1(characters){return!!own$2.call(characterEntities,characters)&&characterEntities[characters]},own$2={}.hasOwnProperty;var legacy={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"},invalid={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},decimal=isDecimal,hexadecimal=function hexadecimal$1(character){var code="string"==typeof character?character.charCodeAt(0):character;return code>=97&&code<=102||code>=65&&code<=70||code>=48&&code<=57},alphanumerical=function alphanumerical$1(character){return alphabetical(character)||decimal$1(character)},decodeEntity=decodeEntity_1,parseEntities_1=function parseEntities(value,options){var option,key,settings={};options||(options={});for(key in defaults)option=options[key],settings[key]=null==option?defaults[key]:option;(settings.position.indent||settings.position.start)&&(settings.indent=settings.position.indent||[],settings.position=settings.position.start);return function parse(value,settings){var entityCharacters,namedEntity,terminated,characters,character,reference,following,warning,reason,output,entity,begin,start,type,test,prev,next,diff,end,additional=settings.additional,nonTerminated=settings.nonTerminated,handleText=settings.text,handleReference=settings.reference,handleWarning=settings.warning,textContext=settings.textContext,referenceContext=settings.referenceContext,warningContext=settings.warningContext,pos=settings.position,indent=settings.indent||[],length=value.length,index=0,lines=-1,column=pos.column||1,line=pos.line||1,queue="",result=[];"string"==typeof additional&&(additional=additional.charCodeAt(0));prev=now(),warning=handleWarning?parseError:noop,index--,length++;for(;++index65535&&(output+=fromCharCode((reference-=65536)>>>10|55296),reference=56320|1023&reference),reference=output+fromCharCode(reference))):type!==name&&warning(numericEmpty,diff)),reference?(flush(),prev=now(),index=end-1,column+=end-start+1,result.push(reference),(next=now()).offset++,handleReference&&handleReference.call(referenceContext,reference,{start:prev,end:next},value.slice(start-1,end)),prev=next):(characters=value.slice(start-1,end),queue+=characters,column+=characters.length,index=end-1)}else 10===character&&(line++,lines++,column=0),character==character?(queue+=fromCharCode(character),column++):flush();return result.join("");function now(){return{line:line,column:column,offset:index+(pos.offset||0)}}function parseError(code,offset){var position=now();position.column+=offset,position.offset+=offset,handleWarning.call(warningContext,messages[code],position,code)}function flush(){queue&&(result.push(queue),handleText&&handleText.call(textContext,queue,{start:prev,end:now()}),queue="")}}(value,settings)},own$1={}.hasOwnProperty,fromCharCode=String.fromCharCode,noop=Function.prototype,defaults={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},tab=9,lineFeed=10,formFeed=12,space=32,ampersand=38,semicolon=59,lessThan=60,equalsTo=61,numberSign=35,uppercaseX=88,lowercaseX=120,replacementCharacter=65533,name="named",hexa="hexadecimal",deci="decimal",bases={};bases[hexa]=16,bases[deci]=10;var tests={};tests[name]=alphanumerical,tests[deci]=decimal,tests[hexa]=hexadecimal;var namedNotTerminated=1,numericNotTerminated=2,namedEmpty=3,numericEmpty=4,namedUnknown=5,numericDisallowed=6,numericProhibited=7,messages={};function prohibited(code){return code>=55296&&code<=57343||code>1114111}function disallowed(code){return code>=1&&code<=8||11===code||code>=13&&code<=31||code>=127&&code<=159||code>=64976&&code<=65007||!(65535&~code)||65534==(65535&code)}messages[namedNotTerminated]="Named character references must be terminated by a semicolon",messages[numericNotTerminated]="Numeric character references must be terminated by a semicolon",messages[namedEmpty]="Named character references cannot be empty",messages[numericEmpty]="Numeric character references cannot be empty",messages[namedUnknown]="Named character references must be known",messages[numericDisallowed]="Numeric character references cannot be disallowed",messages[numericProhibited]="Numeric character references cannot be outside the permissible Unicode range";var prismCore={exports:{}};!function(module){var Prism=function(_self){var lang=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,uniqueId=0,plainTextGrammar={},_={manual:_self.Prism&&_self.Prism.manual,disableWorkerMessageHandler:_self.Prism&&_self.Prism.disableWorkerMessageHandler,util:{encode:function encode(tokens){return tokens instanceof Token?new Token(tokens.type,encode(tokens.content),tokens.alias):Array.isArray(tokens)?tokens.map(encode):tokens.replace(/&/g,"&").replace(/=rematch.reach);pos+=currentNode.value.length,currentNode=currentNode.next){var str=currentNode.value;if(tokenList.length>text.length)return;if(!(str instanceof Token)){var match,removeCount=1;if(greedy){if(!(match=matchPattern(pattern,pos,text,lookbehind))||match.index>=text.length)break;var from=match.index,to=match.index+match[0].length,p=pos;for(p+=currentNode.value.length;from>=p;)p+=(currentNode=currentNode.next).value.length;if(pos=p-=currentNode.value.length,currentNode.value instanceof Token)continue;for(var k=currentNode;k!==tokenList.tail&&(prematch.reach&&(rematch.reach=reach);var removeFrom=currentNode.prev;if(before&&(removeFrom=addAfter(tokenList,removeFrom,before),pos+=before.length),removeRange(tokenList,removeFrom,removeCount),currentNode=addAfter(tokenList,removeFrom,new Token(token,inside?_.tokenize(matchStr,inside):matchStr,alias,matchStr)),after&&addAfter(tokenList,currentNode,after),removeCount>1){var nestedRematch={cause:token+","+j,reach:reach};matchGrammar(text,tokenList,grammar,currentNode.prev,pos,nestedRematch),rematch&&nestedRematch.reach>rematch.reach&&(rematch.reach=nestedRematch.reach)}}}}}}function LinkedList(){var head={value:null,prev:null,next:null},tail={value:null,prev:head,next:null};head.next=tail,this.head=head,this.tail=tail,this.length=0}function addAfter(list,node,value){var next=node.next,newNode={value:value,prev:node,next:next};return node.next=newNode,next.prev=newNode,list.length++,newNode}function removeRange(list,node,count){for(var next=node.next,i=0;i"+env.content+""},!_self.document)return _self.addEventListener?(_.disableWorkerMessageHandler||_self.addEventListener("message",(function(evt){var message=JSON.parse(evt.data),lang=message.language,code=message.code,immediateClose=message.immediateClose;_self.postMessage(_.highlight(code,_.languages[lang],lang)),immediateClose&&_self.close()}),!1),_):_;var script=_.util.currentScript();function highlightAutomaticallyCallback(){_.manual||_.highlightAll()}if(script&&(_.filename=script.src,script.hasAttribute("data-manual")&&(_.manual=!0)),!_.manual){var readyState=document.readyState;"loading"===readyState||"interactive"===readyState&&script&&script.defer?document.addEventListener("DOMContentLoaded",highlightAutomaticallyCallback):window.requestAnimationFrame?window.requestAnimationFrame(highlightAutomaticallyCallback):window.setTimeout(highlightAutomaticallyCallback,16)}return _}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});module.exports&&(module.exports=Prism),void 0!==_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_35__.C&&(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_35__.C.Prism=Prism)}(prismCore);var clike_1=clike$1;function clike$1(Prism){Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}clike$1.displayName="clike",clike$1.aliases=[];var javascript_1=javascript;function javascript(Prism){Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript}javascript.displayName="javascript",javascript.aliases=["js"];var ctx="object"===("undefined"==typeof globalThis?"undefined":_typeof(globalThis))?globalThis:"object"===("undefined"==typeof self?"undefined":_typeof(self))?self:"object"===("undefined"==typeof window?"undefined":_typeof(window))?window:"object"===_typeof(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_35__.C)?_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_35__.C:{},restore=function capture(){var defined="Prism"in ctx,current=defined?ctx.Prism:void 0;return function restore(){defined?ctx.Prism=current:delete ctx.Prism;defined=void 0,current=void 0}}();ctx.Prism={manual:!0,disableWorkerMessageHandler:!0};var h=hastscript,decode=parseEntities_1,Prism=prismCore.exports,markup=markup_1,css=css_1,clike=clike_1,js=javascript_1;restore();var own={}.hasOwnProperty;function Refractor(){}Refractor.prototype=Prism;var refract=new Refractor,core=refract;function register(grammar){if("function"!=typeof grammar||!grammar.displayName)throw new Error("Expected `function` for `grammar`, got `"+grammar+"`");void 0===refract.languages[grammar.displayName]&&grammar(refract)}refract.highlight=function highlight(value,name){var grammar,sup=Prism.highlight;if("string"!=typeof value)throw new Error("Expected `string` for `value`, got `"+value+"`");if("Object"===refract.util.type(name))grammar=name,name=null;else{if("string"!=typeof name)throw new Error("Expected `string` for `name`, got `"+name+"`");if(!own.call(refract.languages,name))throw new Error("Unknown language: `"+name+"` is not registered");grammar=refract.languages[name]}return sup.call(this,value,grammar,name)},refract.register=register,refract.alias=function alias(name,alias){var key,list,length,index,languages=refract.languages,map=name;alias&&((map={})[name]=alias);for(key in map)for(length=(list="string"==typeof(list=map[key])?[list]:list).length,index=-1;++index=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}(_ref7,["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"]);astGenerator=astGenerator||defaultAstGenerator;var allLineNumbers=showLineNumbers?react__WEBPACK_IMPORTED_MODULE_36___default.a.createElement(AllLineNumbers,{containerStyle:lineNumberContainerStyle,codeStyle:codeTagProps.style||{},numberStyle:lineNumberStyle,startingLineNumber:startingLineNumber,codeString:code}):null,defaultPreStyle=style.hljs||style['pre[class*="language-"]']||{backgroundColor:"#fff"},generatorClassName=isHighlightJs(astGenerator)?"hljs":"prismjs",preProps=useInlineStyles?Object.assign({},rest,{style:Object.assign({},defaultPreStyle,customStyle)}):Object.assign({},rest,{className:rest.className?"".concat(generatorClassName," ").concat(rest.className):generatorClassName,style:Object.assign({},customStyle)});if(!astGenerator)return react__WEBPACK_IMPORTED_MODULE_36___default.a.createElement(PreTag,preProps,allLineNumbers,react__WEBPACK_IMPORTED_MODULE_36___default.a.createElement(CodeTag,codeTagProps,code));(void 0===wrapLines&&renderer||wrapLongLines)&&(wrapLines=!0),renderer=renderer||defaultRenderer;var defaultCodeValue=[{type:"text",value:code}],codeTree=function getCodeTree(_ref6){var astGenerator=_ref6.astGenerator,language=_ref6.language,code=_ref6.code,defaultCodeValue=_ref6.defaultCodeValue;if(isHighlightJs(astGenerator)){var hasLanguage=checkForListedLanguage(astGenerator,language);return"text"===language?{value:defaultCodeValue,language:"text"}:hasLanguage?astGenerator.highlight(language,code):astGenerator.highlightAuto(code)}try{return language&&"text"!==language?{value:astGenerator.highlight(code,language)}:{value:defaultCodeValue}}catch(e){return{value:defaultCodeValue}}}({astGenerator:astGenerator,language:language,code:code,defaultCodeValue:defaultCodeValue});null===codeTree.language&&(codeTree.value=defaultCodeValue);var rows=processLines(codeTree,wrapLines,lineProps,showLineNumbers,showInlineLineNumbers,startingLineNumber,codeTree.value.length+startingLineNumber,lineNumberStyle,wrapLongLines);return codeTagProps.style=_objectSpread({},codeTagProps.style,wrapLongLines?{whiteSpace:"pre-wrap"}:{whiteSpace:"pre"}),react__WEBPACK_IMPORTED_MODULE_36___default.a.createElement(PreTag,preProps,react__WEBPACK_IMPORTED_MODULE_36___default.a.createElement(CodeTag,codeTagProps,!showInlineLineNumbers&&allLineNumbers,renderer({rows:rows,stylesheet:style,useInlineStyles:useInlineStyles})))}}(core,{});SyntaxHighlighter$1.registerLanguage=function(_,language){return core.register(language)};var ReactSyntaxHighlighter=SyntaxHighlighter$1,navigator=_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_35__.W.navigator,document$1=_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_35__.W.document,globalWindow=_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_35__.W.window;ReactSyntaxHighlighter.registerLanguage("jsextra",jsExtras$1),ReactSyntaxHighlighter.registerLanguage("jsx",jsx$1),ReactSyntaxHighlighter.registerLanguage("json",json$1),ReactSyntaxHighlighter.registerLanguage("yml",yaml$1),ReactSyntaxHighlighter.registerLanguage("md",markdown$1),ReactSyntaxHighlighter.registerLanguage("bash",bash$1),ReactSyntaxHighlighter.registerLanguage("css",css$2),ReactSyntaxHighlighter.registerLanguage("html",markup$2),ReactSyntaxHighlighter.registerLanguage("tsx",tsx$1),ReactSyntaxHighlighter.registerLanguage("typescript",typescript$1),ReactSyntaxHighlighter.registerLanguage("graphql",graphql$1);var themedSyntax=memoizerific__WEBPACK_IMPORTED_MODULE_39___default()(2)((function(theme){return Object.entries(theme.code||{}).reduce((function(acc,_ref8){var _ref9=_slicedToArray(_ref8,2),key=_ref9[0],val=_ref9[1];return Object.assign(Object.assign({},acc),function _defineProperty2(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}({},"* .".concat(key),val))}),{})})),copyToClipboard=createCopyToClipboardFunction();function createCopyToClipboardFunction(){var _this=this;return(null==navigator?void 0:navigator.clipboard)?function(text){return navigator.clipboard.writeText(text)}:function(text){return Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_35__.B)(_this,void 0,void 0,regeneratorRuntime.mark((function _callee(){var tmp,focus;return regeneratorRuntime.wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:tmp=document$1.createElement("TEXTAREA"),focus=document$1.activeElement,tmp.value=text,document$1.body.appendChild(tmp),tmp.select(),document$1.execCommand("copy"),document$1.body.removeChild(tmp),focus.focus();case 8:case"end":return _context.stop()}}),_callee)})))}}var Wrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_38__.l.div((function(_ref10){return{position:"relative",overflow:"hidden",color:_ref10.theme.color.defaultText}}),(function(_ref11){var theme=_ref11.theme;return _ref11.bordered?{border:"1px solid ".concat(theme.appBorderColor),borderRadius:theme.borderRadius,background:theme.background.content}:{}})),Scroller=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_38__.l)((function(_ref12){var children=_ref12.children,className=_ref12.className;return react__WEBPACK_IMPORTED_MODULE_36___default.a.createElement(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_35__.d,{horizontal:!0,vertical:!0,className:className},children)}))({position:"relative"},(function(_ref13){var theme=_ref13.theme;return themedSyntax(theme)})),Pre=_storybook_theming__WEBPACK_IMPORTED_MODULE_38__.l.pre((function(_ref14){var theme=_ref14.theme;return{display:"flex",justifyContent:"flex-start",margin:0,padding:_ref14.padded?theme.layoutMargin:0}})),Code=_storybook_theming__WEBPACK_IMPORTED_MODULE_38__.l.div((function(_ref15){return{flex:1,paddingLeft:2,paddingRight:_ref15.theme.layoutMargin,opacity:1}})),SyntaxHighlighter=function SyntaxHighlighter(_a){var children=_a.children,_a$language=_a.language,language=void 0===_a$language?"jsx":_a$language,_a$copyable=_a.copyable,copyable=void 0!==_a$copyable&&_a$copyable,_a$bordered=_a.bordered,bordered=void 0!==_a$bordered&&_a$bordered,_a$padded=_a.padded,padded=void 0!==_a$padded&&_a$padded,_a$format=_a.format,format=void 0===_a$format||_a$format,_a$formatter=_a.formatter,formatter=void 0===_a$formatter?null:_a$formatter,_a$className=_a.className,className=void 0===_a$className?null:_a$className,_a$showLineNumbers=_a.showLineNumbers,showLineNumbers=void 0!==_a$showLineNumbers&&_a$showLineNumbers,rest=Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_35__.D)(_a,["children","language","copyable","bordered","padded","format","formatter","className","showLineNumbers"]);if("string"!=typeof children||!children.trim())return null;var highlightableCode=formatter?formatter(format,children):children.trim(),_useState2=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_36__.useState)(!1),2),copied=_useState2[0],setCopied=_useState2[1],onClick=Object(react__WEBPACK_IMPORTED_MODULE_36__.useCallback)((function(e){e.preventDefault();var selectedText=globalWindow.getSelection().toString(),textToCopy="click"!==e.type&&selectedText?selectedText:highlightableCode;copyToClipboard(textToCopy).then((function(){setCopied(!0),globalWindow.setTimeout((function(){return setCopied(!1)}),1500)})).catch(_storybook_client_logger__WEBPACK_IMPORTED_MODULE_37__.a.error)}),[]);return react__WEBPACK_IMPORTED_MODULE_36___default.a.createElement(Wrapper,{bordered:bordered,padded:padded,className:className,onCopyCapture:onClick},react__WEBPACK_IMPORTED_MODULE_36___default.a.createElement(Scroller,null,react__WEBPACK_IMPORTED_MODULE_36___default.a.createElement(ReactSyntaxHighlighter,Object.assign({padded:padded||bordered,language:language,showLineNumbers:showLineNumbers,showInlineLineNumbers:showLineNumbers,useInlineStyles:!1,PreTag:Pre,CodeTag:Code,lineNumberContainerStyle:{}},rest),highlightableCode)),copyable?react__WEBPACK_IMPORTED_MODULE_36___default.a.createElement(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_35__.a,{actionItems:[{title:copied?"Copied":"Copy",onClick:onClick}]}):null)}},849:function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__(3),uncurryThis=__webpack_require__(9),toAbsoluteIndex=__webpack_require__(172),$RangeError=RangeError,fromCharCode=String.fromCharCode,$fromCodePoint=String.fromCodePoint,join=uncurryThis([].join);$({target:"String",stat:!0,arity:1,forced:!!$fromCodePoint&&1!==$fromCodePoint.length},{fromCodePoint:function fromCodePoint(x){for(var code,elements=[],length=arguments.length,i=0;length>i;){if(code=+arguments[i++],toAbsoluteIndex(code,1114111)!==code)throw new $RangeError(code+" is not a valid code point");elements[i]=code<65536?fromCharCode(code):fromCharCode(55296+((code-=65536)>>10),code%1024+56320)}return join(elements,"")}})}}]); \ No newline at end of file diff --git a/0.6181fded132369e1226c.manager.bundle.js.LICENSE.txt b/0.6181fded132369e1226c.manager.bundle.js.LICENSE.txt new file mode 100644 index 000000000..7a4147477 --- /dev/null +++ b/0.6181fded132369e1226c.manager.bundle.js.LICENSE.txt @@ -0,0 +1,8 @@ +/** + * Prism: Lightweight, robust, elegant syntax highlighting + * + * @license MIT + * @author Lea Verou + * @namespace + * @public + */ diff --git a/0.ae4d4b04.iframe.bundle.js b/0.ae4d4b04.iframe.bundle.js new file mode 100644 index 000000000..025c65c13 --- /dev/null +++ b/0.ae4d4b04.iframe.bundle.js @@ -0,0 +1,3 @@ +/*! For license information please see 0.ae4d4b04.iframe.bundle.js.LICENSE.txt */ +(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"./node_modules/@storybook/components/dist/esm/syntaxhighlighter-b07b042a.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"SyntaxHighlighter",(function(){return SyntaxHighlighter})),__webpack_require__.d(__webpack_exports__,"createCopyToClipboardFunction",(function(){return createCopyToClipboardFunction})),__webpack_require__.d(__webpack_exports__,"default",(function(){return SyntaxHighlighter}));__webpack_require__("./node_modules/regenerator-runtime/runtime.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.splice.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.from-code-point.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.flags.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.string.split.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.string.match.js"),__webpack_require__("./node_modules/core-js/modules/es.set.js"),__webpack_require__("./node_modules/core-js/modules/es.string.trim.js"),__webpack_require__("./node_modules/core-js/modules/esnext.global-this.js"),__webpack_require__("./node_modules/core-js/modules/es.object.entries.js");var _index_681e4b07_js__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__("./node_modules/@storybook/components/dist/esm/index-681e4b07.js"),react__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_36___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_36__),_storybook_client_logger__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__("./node_modules/@storybook/client-logger/dist/esm/index.js"),_storybook_theming__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__("./node_modules/@storybook/theming/dist/esm/index.js"),memoizerific__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__("./node_modules/memoizerific/memoizerific.js"),memoizerific__WEBPACK_IMPORTED_MODULE_39___default=__webpack_require__.n(memoizerific__WEBPACK_IMPORTED_MODULE_39__);__webpack_require__("./node_modules/@storybook/csf/dist/index.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray2(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray2(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray2(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray2(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i*\.{3}(?:[^{}]|)*\})/.source;function re(source,flags){return source=source.replace(//g,(function(){return space})).replace(//g,(function(){return braces})).replace(//g,(function(){return spread})),RegExp(source,flags)}spread=re(spread).source,Prism.languages.jsx=Prism.languages.extend("markup",javascript),Prism.languages.jsx.tag.pattern=re(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),Prism.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,Prism.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,Prism.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,Prism.languages.jsx.tag.inside.comment=javascript.comment,Prism.languages.insertBefore("inside","attr-name",{spread:{pattern:re(//.source),inside:Prism.languages.jsx}},Prism.languages.jsx.tag),Prism.languages.insertBefore("inside","special-attr",{script:{pattern:re(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:Prism.languages.jsx}}},Prism.languages.jsx.tag);var stringifyToken=function stringifyToken(token){return token?"string"==typeof token?token:"string"==typeof token.content?token.content:token.content.map(stringifyToken).join(""):""},walkTokens=function walkTokens(tokens){for(var openedTags=[],i=0;i0&&openedTags[openedTags.length-1].tagName===stringifyToken(token.content[0].content[1])&&openedTags.pop():"/>"===token.content[token.content.length-1].content||openedTags.push({tagName:stringifyToken(token.content[0].content[1]),openedBraces:0}):openedTags.length>0&&"punctuation"===token.type&&"{"===token.content?openedTags[openedTags.length-1].openedBraces++:openedTags.length>0&&openedTags[openedTags.length-1].openedBraces>0&&"punctuation"===token.type&&"}"===token.content?openedTags[openedTags.length-1].openedBraces--:notTagNorBrace=!0),(notTagNorBrace||"string"==typeof token)&&openedTags.length>0&&0===openedTags[openedTags.length-1].openedBraces){var plainText=stringifyToken(token);i0&&("string"==typeof tokens[i-1]||"plain-text"===tokens[i-1].type)&&(plainText=stringifyToken(tokens[i-1])+plainText,tokens.splice(i-1,1),i--),tokens[i]=new Prism.Token("plain-text",plainText,null,plainText)}token.content&&"string"!=typeof token.content&&walkTokens(token.content)}};Prism.hooks.add("after-tokenize",(function(env){"jsx"!==env.language&&"tsx"!==env.language||walkTokens(env.tokens)}))}(Prism)}jsx.displayName="jsx",jsx.aliases=[];var jsx$1=jsx_1,bash_1=bash;function bash(Prism){!function(Prism){var envVars="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",commandAfterHeredoc={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},insideString={bash:commandAfterHeredoc,environment:{pattern:RegExp("\\$"+envVars),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+envVars),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};Prism.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+envVars),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:insideString},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:commandAfterHeredoc}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:insideString},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:insideString.entity}}],environment:{pattern:RegExp("\\$?"+envVars),alias:"constant"},variable:insideString.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},commandAfterHeredoc.inside=Prism.languages.bash;for(var toBeCopied=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],inside=insideString.variable[1].inside,i=0;i/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),flags)}Prism.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+Prism.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),Prism.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+Prism.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),Prism.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),Prism.languages.insertBefore("javascript","keyword",{imports:{pattern:withId(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:Prism.languages.javascript},exports:{pattern:withId(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:Prism.languages.javascript}}),Prism.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),Prism.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),Prism.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:withId(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var maybeClassNameTokens=["function","function-variable","method","method-variable","property-access"],i=0;i0)){var mutationEnd=findClosingBracket(/^\{$/,/^\}$/);if(-1===mutationEnd)continue;for(var i=currentIndex;i=0&&addAlias(varToken,"variable-input")}}}}function getToken(offset){return validTokens[currentIndex+offset]}function isTokenType(types,offset){offset=offset||0;for(var i=0;i/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(env){"entity"===env.type&&(env.attributes.title=env.content.value.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function addInlined(tagName,lang){var includedCdataInside={};includedCdataInside["language-"+lang]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[lang]},includedCdataInside.cdata=/^$/i;var inside={"included-cdata":{pattern://i,inside:includedCdataInside}};inside["language-"+lang]={pattern:/[\s\S]+/,inside:Prism.languages[lang]};var def={};def[tagName]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return tagName})),"i"),lookbehind:!0,greedy:!0,inside:inside},Prism.languages.insertBefore("markup","cdata",def)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function value(attrName,lang){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+attrName+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[lang,"language-"+lang],inside:Prism.languages[lang]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml}markup$1.displayName="markup",markup$1.aliases=["html","mathml","svg","xml","ssml","atom","rss"];var markup$2=markup_1,markdown_1=markdown;function markdown(Prism){!function(Prism){var inner=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function createInline(pattern){return pattern=pattern.replace(//g,(function(){return inner})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+pattern+")")}var tableCell=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,tableRow=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return tableCell})),tableLine=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;Prism.languages.markdown=Prism.languages.extend("markup",{}),Prism.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:Prism.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+tableRow+tableLine+"(?:"+tableRow+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+tableRow+tableLine+")(?:"+tableRow+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(tableCell),inside:Prism.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+tableRow+")"+tableLine+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+tableRow+"$"),inside:{"table-header":{pattern:RegExp(tableCell),alias:"important",inside:Prism.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:createInline(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:createInline(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:createInline(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:createInline(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(token){["url","bold","italic","strike","code-snippet"].forEach((function(inside){token!==inside&&(Prism.languages.markdown[token].inside.content.inside[inside]=Prism.languages.markdown[inside])}))})),Prism.hooks.add("after-tokenize",(function(env){"markdown"!==env.language&&"md"!==env.language||function walkTokens(tokens){if(tokens&&"string"!=typeof tokens)for(var i=0,l=tokens.length;i",quot:'"'},fromCodePoint=String.fromCodePoint||String.fromCharCode;Prism.languages.md=Prism.languages.markdown}(Prism)}markdown.displayName="markdown",markdown.aliases=["md"];var markdown$1=markdown_1,yaml_1=yaml;function yaml(Prism){!function(Prism){var anchorOrAlias=/[*&][^\s[\]{},]+/,tag=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,properties="(?:"+tag.source+"(?:[ \t]+"+anchorOrAlias.source+")?|"+anchorOrAlias.source+"(?:[ \t]+"+tag.source+")?)",plainKey=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),string=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function createValuePattern(value,flags){flags=(flags||"").replace(/m/g,"")+"m";var pattern=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,(function(){return properties})).replace(/<>/g,(function(){return value}));return RegExp(pattern,flags)}Prism.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,(function(){return properties}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,(function(){return properties})).replace(/<>/g,(function(){return"(?:"+plainKey+"|"+string+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:createValuePattern(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:createValuePattern(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:createValuePattern(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:createValuePattern(string),lookbehind:!0,greedy:!0},number:{pattern:createValuePattern(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:tag,important:anchorOrAlias,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},Prism.languages.yml=Prism.languages.yaml}(Prism)}yaml.displayName="yaml",yaml.aliases=["yml"];var yaml$1=yaml_1,typescript_1=typescript;function typescript(Prism){!function(Prism){Prism.languages.typescript=Prism.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),Prism.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete Prism.languages.typescript.parameter,delete Prism.languages.typescript["literal-property"];var typeInside=Prism.languages.extend("typescript",{});delete typeInside["class-name"],Prism.languages.typescript["class-name"].inside=typeInside,Prism.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:typeInside}}}}),Prism.languages.ts=Prism.languages.typescript}(Prism)}typescript.displayName="typescript",typescript.aliases=["ts"];var typescript$1=typescript_1,refractorJsx=jsx_1,refractorTypescript=typescript_1,tsx_1=tsx;function tsx(Prism){Prism.register(refractorJsx),Prism.register(refractorTypescript),function(Prism){var typescript=Prism.util.clone(Prism.languages.typescript);Prism.languages.tsx=Prism.languages.extend("jsx",typescript),delete Prism.languages.tsx.parameter,delete Prism.languages.tsx["literal-property"];var tag=Prism.languages.tsx.tag;tag.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+tag.pattern.source+")",tag.pattern.flags),tag.lookbehind=!0}(Prism)}tsx.displayName="tsx",tsx.aliases=[];var tsx$1=tsx_1;function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&void 0!==arguments[1]?arguments[1]:{},stylesheet=arguments.length>2?arguments[2]:void 0;return function getClassNameCombinations(classNames){if(0===classNames.length||1===classNames.length)return classNames;var key=classNames.join(".");return classNameCombinations[key]||(classNameCombinations[key]=function powerSetPermutations(arr){var arrLength=arr.length;return 0===arrLength||1===arrLength?arr:2===arrLength?[arr[0],arr[1],"".concat(arr[0],".").concat(arr[1]),"".concat(arr[1],".").concat(arr[0])]:3===arrLength?[arr[0],arr[1],arr[2],"".concat(arr[0],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[0]),"".concat(arr[1],".").concat(arr[2]),"".concat(arr[2],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[1],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[2],".").concat(arr[1]),"".concat(arr[1],".").concat(arr[0],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[2],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[0],".").concat(arr[1]),"".concat(arr[2],".").concat(arr[1],".").concat(arr[0])]:arrLength>=4?[arr[0],arr[1],arr[2],arr[3],"".concat(arr[0],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[3]),"".concat(arr[1],".").concat(arr[0]),"".concat(arr[1],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[3]),"".concat(arr[2],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[1]),"".concat(arr[2],".").concat(arr[3]),"".concat(arr[3],".").concat(arr[0]),"".concat(arr[3],".").concat(arr[1]),"".concat(arr[3],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[1],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[1],".").concat(arr[3]),"".concat(arr[0],".").concat(arr[2],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[2],".").concat(arr[3]),"".concat(arr[0],".").concat(arr[3],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[3],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[0],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[0],".").concat(arr[3]),"".concat(arr[1],".").concat(arr[2],".").concat(arr[0]),"".concat(arr[1],".").concat(arr[2],".").concat(arr[3]),"".concat(arr[1],".").concat(arr[3],".").concat(arr[0]),"".concat(arr[1],".").concat(arr[3],".").concat(arr[2]),"".concat(arr[2],".").concat(arr[0],".").concat(arr[1]),"".concat(arr[2],".").concat(arr[0],".").concat(arr[3]),"".concat(arr[2],".").concat(arr[1],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[1],".").concat(arr[3]),"".concat(arr[2],".").concat(arr[3],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[3],".").concat(arr[1]),"".concat(arr[3],".").concat(arr[0],".").concat(arr[1]),"".concat(arr[3],".").concat(arr[0],".").concat(arr[2]),"".concat(arr[3],".").concat(arr[1],".").concat(arr[0]),"".concat(arr[3],".").concat(arr[1],".").concat(arr[2]),"".concat(arr[3],".").concat(arr[2],".").concat(arr[0]),"".concat(arr[3],".").concat(arr[2],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[1],".").concat(arr[2],".").concat(arr[3]),"".concat(arr[0],".").concat(arr[1],".").concat(arr[3],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[2],".").concat(arr[1],".").concat(arr[3]),"".concat(arr[0],".").concat(arr[2],".").concat(arr[3],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[3],".").concat(arr[1],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[3],".").concat(arr[2],".").concat(arr[1]),"".concat(arr[1],".").concat(arr[0],".").concat(arr[2],".").concat(arr[3]),"".concat(arr[1],".").concat(arr[0],".").concat(arr[3],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[2],".").concat(arr[0],".").concat(arr[3]),"".concat(arr[1],".").concat(arr[2],".").concat(arr[3],".").concat(arr[0]),"".concat(arr[1],".").concat(arr[3],".").concat(arr[0],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[3],".").concat(arr[2],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[0],".").concat(arr[1],".").concat(arr[3]),"".concat(arr[2],".").concat(arr[0],".").concat(arr[3],".").concat(arr[1]),"".concat(arr[2],".").concat(arr[1],".").concat(arr[0],".").concat(arr[3]),"".concat(arr[2],".").concat(arr[1],".").concat(arr[3],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[3],".").concat(arr[0],".").concat(arr[1]),"".concat(arr[2],".").concat(arr[3],".").concat(arr[1],".").concat(arr[0]),"".concat(arr[3],".").concat(arr[0],".").concat(arr[1],".").concat(arr[2]),"".concat(arr[3],".").concat(arr[0],".").concat(arr[2],".").concat(arr[1]),"".concat(arr[3],".").concat(arr[1],".").concat(arr[0],".").concat(arr[2]),"".concat(arr[3],".").concat(arr[1],".").concat(arr[2],".").concat(arr[0]),"".concat(arr[3],".").concat(arr[2],".").concat(arr[0],".").concat(arr[1]),"".concat(arr[3],".").concat(arr[2],".").concat(arr[1],".").concat(arr[0])]:void 0}(classNames)),classNameCombinations[key]}(classNames.filter((function(className){return"token"!==className}))).reduce((function(styleObject,className){return _objectSpread({},styleObject,stylesheet[className])}),elementStyle)}function createClassNameString(classNames){return classNames.join(" ")}function createElement(_ref){var node=_ref.node,stylesheet=_ref.stylesheet,_ref$style=_ref.style,style=void 0===_ref$style?{}:_ref$style,useInlineStyles=_ref.useInlineStyles,key=_ref.key,properties=node.properties,type=node.type,TagName=node.tagName,value=node.value;if("text"===type)return value;if(TagName){var props,childrenCreator=function createChildren(stylesheet,useInlineStyles){var childrenCount=0;return function(children){return childrenCount+=1,children.map((function(child,i){return createElement({node:child,stylesheet:stylesheet,useInlineStyles:useInlineStyles,key:"code-segment-".concat(childrenCount,"-").concat(i)})}))}}(stylesheet,useInlineStyles);if(useInlineStyles){var allStylesheetSelectors=Object.keys(stylesheet).reduce((function(classes,selector){return selector.split(".").forEach((function(className){classes.includes(className)||classes.push(className)})),classes}),[]),startingClassName=properties.className&&properties.className.includes("token")?["token"]:[],className=properties.className&&startingClassName.concat(properties.className.filter((function(className){return!allStylesheetSelectors.includes(className)})));props=_objectSpread({},properties,{className:createClassNameString(className)||void 0,style:createStyleObject(properties.className,Object.assign({},properties.style,style),stylesheet)})}else props=_objectSpread({},properties,{className:createClassNameString(properties.className)});var children=childrenCreator(node.children);return react__WEBPACK_IMPORTED_MODULE_36___default.a.createElement(TagName,Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_35__.m)({key:key},props),children)}}var checkForListedLanguage=function checkForListedLanguage(astGenerator,language){return-1!==astGenerator.listLanguages().indexOf(language)},newLineRegex=/\n/g;function AllLineNumbers(_ref2){var codeString=_ref2.codeString,codeStyle=_ref2.codeStyle,_ref2$containerStyle=_ref2.containerStyle,containerStyle=void 0===_ref2$containerStyle?{float:"left",paddingRight:"10px"}:_ref2$containerStyle,_ref2$numberStyle=_ref2.numberStyle,numberStyle=void 0===_ref2$numberStyle?{}:_ref2$numberStyle,startingLineNumber=_ref2.startingLineNumber;return react__WEBPACK_IMPORTED_MODULE_36___default.a.createElement("code",{style:Object.assign({},codeStyle,containerStyle)},function getAllLineNumbers(_ref){var lines=_ref.lines,startingLineNumber=_ref.startingLineNumber,style=_ref.style;return lines.map((function(_,i){var number=i+startingLineNumber;return react__WEBPACK_IMPORTED_MODULE_36___default.a.createElement("span",{key:"line-".concat(i),className:"react-syntax-highlighter-line-number",style:"function"==typeof style?style(number):style},"".concat(number,"\n"))}))}({lines:codeString.replace(/\n$/,"").split("\n"),style:numberStyle,startingLineNumber:startingLineNumber}))}function getEmWidthOfNumber(num){return"".concat(num.toString().length,".25em")}function getInlineLineNumber(lineNumber,inlineLineNumberStyle){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(lineNumber),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:inlineLineNumberStyle},children:[{type:"text",value:lineNumber}]}}function assembleLineNumberStyles(lineNumberStyle,lineNumber,largestLineNumber){return _objectSpread({},{display:"inline-block",minWidth:getEmWidthOfNumber(largestLineNumber),paddingRight:"1em",textAlign:"right",userSelect:"none"},"function"==typeof lineNumberStyle?lineNumberStyle(lineNumber):lineNumberStyle)}function createLineElement(_ref3){var children=_ref3.children,lineNumber=_ref3.lineNumber,lineNumberStyle=_ref3.lineNumberStyle,largestLineNumber=_ref3.largestLineNumber,showInlineLineNumbers=_ref3.showInlineLineNumbers,_ref3$lineProps=_ref3.lineProps,lineProps=void 0===_ref3$lineProps?{}:_ref3$lineProps,_ref3$className=_ref3.className,className=void 0===_ref3$className?[]:_ref3$className,showLineNumbers=_ref3.showLineNumbers,wrapLongLines=_ref3.wrapLongLines,properties="function"==typeof lineProps?lineProps(lineNumber):lineProps;if(properties.className=className,lineNumber&&showInlineLineNumbers){var inlineLineNumberStyle=assembleLineNumberStyles(lineNumberStyle,lineNumber,largestLineNumber);children.unshift(getInlineLineNumber(lineNumber,inlineLineNumberStyle))}return wrapLongLines&showLineNumbers&&(properties.style=_objectSpread({},properties.style,{display:"flex"})),{type:"element",tagName:"span",properties:properties,children:children}}function flattenCodeTree(tree){for(var className=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],newTree=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=0;i2&&void 0!==arguments[2]?arguments[2]:[];return wrapLines||className.length>0?function createWrappedLine(children,lineNumber){return createLineElement({children:children,lineNumber:lineNumber,lineNumberStyle:lineNumberStyle,largestLineNumber:largestLineNumber,showInlineLineNumbers:showInlineLineNumbers,lineProps:lineProps,className:arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],showLineNumbers:showLineNumbers,wrapLongLines:wrapLongLines})}(children,lineNumber,className):function createUnwrappedLine(children,lineNumber){if(showLineNumbers&&lineNumber&&showInlineLineNumbers){var inlineLineNumberStyle=assembleLineNumberStyles(lineNumberStyle,lineNumber,largestLineNumber);children.unshift(getInlineLineNumber(lineNumber,inlineLineNumberStyle))}return children}(children,lineNumber)}for(var _loop=function _loop(){var node=tree[index],value=node.children[0].value;if(function getNewLines(str){return str.match(newLineRegex)}(value)){var splitValue=value.split("\n");splitValue.forEach((function(text,i){var lineNumber=showLineNumbers&&newTree.length+startingLineNumber,newChild={type:"text",value:"".concat(text,"\n")};if(0===i){var _line=createLine(tree.slice(lastLineBreakIndex+1,index).concat(createLineElement({children:[newChild],className:node.properties.className})),lineNumber);newTree.push(_line)}else if(i===splitValue.length-1){if(tree[index+1]&&tree[index+1].children&&tree[index+1].children[0]){var newElem=createLineElement({children:[{type:"text",value:"".concat(text)}],className:node.properties.className});tree.splice(index+1,0,newElem)}else{var _line2=createLine([newChild],lineNumber,node.properties.className);newTree.push(_line2)}}else{var _line3=createLine([newChild],lineNumber,node.properties.className);newTree.push(_line3)}})),lastLineBreakIndex=index}index++};index4&&normal.slice(0,4)===data&&valid.test(value)&&("-"===value.charAt(4)?prop=function datasetToProperty(attribute){var value=attribute.slice(5).replace(dash$1,camelcase);return data+value.charAt(0).toUpperCase()+value.slice(1)}(value):value=function datasetToAttribute(property){var value=property.slice(4);if(dash$1.test(value))return property;value=value.replace(cap$1,kebab),"-"!==value.charAt(0)&&(value="-"+value);return data+value}(value),Type=DefinedInfo);return new Type(prop,value)},valid=/^data[-\w.:]+$/i,dash$1=/-[a-z]/g,cap$1=/[A-Z]/g;function kebab($0){return"-"+$0.toLowerCase()}function camelcase($0){return $0.charAt(1).toUpperCase()}var hastUtilParseSelector=function parse$3(selector,defaultTagName){var subvalue,previous,match,value=selector||"",name=defaultTagName||"div",props={},start=0;for(;start=48&&code<=57};var alphabetical=function alphabetical$1(character){var code="string"==typeof character?character.charCodeAt(0):character;return code>=97&&code<=122||code>=65&&code<=90},decimal$1=isDecimal;var characterEntities={AEli:"Æ",AElig:"Æ",AM:"&",AMP:"&",Aacut:"Á",Aacute:"Á",Abreve:"Ă",Acir:"Â",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrav:"À",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",Arin:"Å",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atild:"Ã",Atilde:"Ã",Aum:"Ä",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COP:"©",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedi:"Ç",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ET:"Ð",ETH:"Ð",Eacut:"É",Eacute:"É",Ecaron:"Ě",Ecir:"Ê",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrav:"È",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Eum:"Ë",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",G:">",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacut:"Í",Iacute:"Í",Icir:"Î",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrav:"Ì",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Ium:"Ï",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",L:"<",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntild:"Ñ",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacut:"Ó",Oacute:"Ó",Ocir:"Ô",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograv:"Ò",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslas:"Ø",Oslash:"Ø",Otild:"Õ",Otilde:"Õ",Otimes:"⨷",Oum:"Ö",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUO:'"',QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",RE:"®",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THOR:"Þ",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacut:"Ú",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucir:"Û",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrav:"Ù",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uum:"Ü",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacut:"Ý",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacut:"á",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acir:"â",acirc:"â",acut:"´",acute:"´",acy:"а",aeli:"æ",aelig:"æ",af:"⁡",afr:"𝔞",agrav:"à",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",am:"&",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",arin:"å",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atild:"ã",atilde:"ã",aum:"ä",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvba:"¦",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedi:"ç",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedi:"¸",cedil:"¸",cemptyv:"⦲",cen:"¢",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",cop:"©",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curre:"¤",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",de:"°",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divid:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacut:"é",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"ê",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrav:"è",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",et:"ð",eth:"ð",eum:"ë",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac1:"¼",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac3:"¾",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",g:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacut:"í",iacute:"í",ic:"⁣",icir:"î",icirc:"î",icy:"и",iecy:"е",iexc:"¡",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrav:"ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iques:"¿",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",ium:"ï",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laqu:"«",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",l:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",mac:"¯",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micr:"µ",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middo:"·",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbs:" ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",no:"¬",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntild:"ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacut:"ó",oacute:"ó",oast:"⊛",ocir:"ô",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograv:"ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"º",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslas:"ø",oslash:"ø",osol:"⊘",otild:"õ",otilde:"õ",otimes:"⊗",otimesas:"⨶",oum:"ö",ouml:"ö",ovbar:"⌽",par:"¶",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusm:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",poun:"£",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quo:'"',quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raqu:"»",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",re:"®",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sec:"§",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",sh:"­",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szli:"ß",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thor:"þ",thorn:"þ",tilde:"˜",time:"×",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacut:"ú",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucir:"û",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrav:"ù",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",um:"¨",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uum:"ü",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacut:"ý",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",ye:"¥",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yum:"ÿ",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},decodeEntity_1=function decodeEntity$1(characters){return!!own$2.call(characterEntities,characters)&&characterEntities[characters]},own$2={}.hasOwnProperty;var legacy={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"},invalid={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},decimal=isDecimal,hexadecimal=function hexadecimal$1(character){var code="string"==typeof character?character.charCodeAt(0):character;return code>=97&&code<=102||code>=65&&code<=70||code>=48&&code<=57},alphanumerical=function alphanumerical$1(character){return alphabetical(character)||decimal$1(character)},decodeEntity=decodeEntity_1,parseEntities_1=function parseEntities(value,options){var option,key,settings={};options||(options={});for(key in defaults)option=options[key],settings[key]=null==option?defaults[key]:option;(settings.position.indent||settings.position.start)&&(settings.indent=settings.position.indent||[],settings.position=settings.position.start);return function parse(value,settings){var entityCharacters,namedEntity,terminated,characters,character,reference,following,warning,reason,output,entity,begin,start,type,test,prev,next,diff,end,additional=settings.additional,nonTerminated=settings.nonTerminated,handleText=settings.text,handleReference=settings.reference,handleWarning=settings.warning,textContext=settings.textContext,referenceContext=settings.referenceContext,warningContext=settings.warningContext,pos=settings.position,indent=settings.indent||[],length=value.length,index=0,lines=-1,column=pos.column||1,line=pos.line||1,queue="",result=[];"string"==typeof additional&&(additional=additional.charCodeAt(0));prev=now(),warning=handleWarning?parseError:noop,index--,length++;for(;++index65535&&(output+=fromCharCode((reference-=65536)>>>10|55296),reference=56320|1023&reference),reference=output+fromCharCode(reference))):type!==name&&warning(numericEmpty,diff)),reference?(flush(),prev=now(),index=end-1,column+=end-start+1,result.push(reference),(next=now()).offset++,handleReference&&handleReference.call(referenceContext,reference,{start:prev,end:next},value.slice(start-1,end)),prev=next):(characters=value.slice(start-1,end),queue+=characters,column+=characters.length,index=end-1)}else 10===character&&(line++,lines++,column=0),character==character?(queue+=fromCharCode(character),column++):flush();return result.join("");function now(){return{line:line,column:column,offset:index+(pos.offset||0)}}function parseError(code,offset){var position=now();position.column+=offset,position.offset+=offset,handleWarning.call(warningContext,messages[code],position,code)}function flush(){queue&&(result.push(queue),handleText&&handleText.call(textContext,queue,{start:prev,end:now()}),queue="")}}(value,settings)},own$1={}.hasOwnProperty,fromCharCode=String.fromCharCode,noop=Function.prototype,defaults={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},tab=9,lineFeed=10,formFeed=12,space=32,ampersand=38,semicolon=59,lessThan=60,equalsTo=61,numberSign=35,uppercaseX=88,lowercaseX=120,replacementCharacter=65533,name="named",hexa="hexadecimal",deci="decimal",bases={};bases[hexa]=16,bases[deci]=10;var tests={};tests[name]=alphanumerical,tests[deci]=decimal,tests[hexa]=hexadecimal;var namedNotTerminated=1,numericNotTerminated=2,namedEmpty=3,numericEmpty=4,namedUnknown=5,numericDisallowed=6,numericProhibited=7,messages={};function prohibited(code){return code>=55296&&code<=57343||code>1114111}function disallowed(code){return code>=1&&code<=8||11===code||code>=13&&code<=31||code>=127&&code<=159||code>=64976&&code<=65007||!(65535&~code)||65534==(65535&code)}messages[namedNotTerminated]="Named character references must be terminated by a semicolon",messages[numericNotTerminated]="Numeric character references must be terminated by a semicolon",messages[namedEmpty]="Named character references cannot be empty",messages[numericEmpty]="Numeric character references cannot be empty",messages[namedUnknown]="Named character references must be known",messages[numericDisallowed]="Numeric character references cannot be disallowed",messages[numericProhibited]="Numeric character references cannot be outside the permissible Unicode range";var prismCore={exports:{}};!function(module){var Prism=function(_self){var lang=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,uniqueId=0,plainTextGrammar={},_={manual:_self.Prism&&_self.Prism.manual,disableWorkerMessageHandler:_self.Prism&&_self.Prism.disableWorkerMessageHandler,util:{encode:function encode(tokens){return tokens instanceof Token?new Token(tokens.type,encode(tokens.content),tokens.alias):Array.isArray(tokens)?tokens.map(encode):tokens.replace(/&/g,"&").replace(/=rematch.reach);pos+=currentNode.value.length,currentNode=currentNode.next){var str=currentNode.value;if(tokenList.length>text.length)return;if(!(str instanceof Token)){var match,removeCount=1;if(greedy){if(!(match=matchPattern(pattern,pos,text,lookbehind))||match.index>=text.length)break;var from=match.index,to=match.index+match[0].length,p=pos;for(p+=currentNode.value.length;from>=p;)p+=(currentNode=currentNode.next).value.length;if(pos=p-=currentNode.value.length,currentNode.value instanceof Token)continue;for(var k=currentNode;k!==tokenList.tail&&(prematch.reach&&(rematch.reach=reach);var removeFrom=currentNode.prev;if(before&&(removeFrom=addAfter(tokenList,removeFrom,before),pos+=before.length),removeRange(tokenList,removeFrom,removeCount),currentNode=addAfter(tokenList,removeFrom,new Token(token,inside?_.tokenize(matchStr,inside):matchStr,alias,matchStr)),after&&addAfter(tokenList,currentNode,after),removeCount>1){var nestedRematch={cause:token+","+j,reach:reach};matchGrammar(text,tokenList,grammar,currentNode.prev,pos,nestedRematch),rematch&&nestedRematch.reach>rematch.reach&&(rematch.reach=nestedRematch.reach)}}}}}}function LinkedList(){var head={value:null,prev:null,next:null},tail={value:null,prev:head,next:null};head.next=tail,this.head=head,this.tail=tail,this.length=0}function addAfter(list,node,value){var next=node.next,newNode={value:value,prev:node,next:next};return node.next=newNode,next.prev=newNode,list.length++,newNode}function removeRange(list,node,count){for(var next=node.next,i=0;i"+env.content+""},!_self.document)return _self.addEventListener?(_.disableWorkerMessageHandler||_self.addEventListener("message",(function(evt){var message=JSON.parse(evt.data),lang=message.language,code=message.code,immediateClose=message.immediateClose;_self.postMessage(_.highlight(code,_.languages[lang],lang)),immediateClose&&_self.close()}),!1),_):_;var script=_.util.currentScript();function highlightAutomaticallyCallback(){_.manual||_.highlightAll()}if(script&&(_.filename=script.src,script.hasAttribute("data-manual")&&(_.manual=!0)),!_.manual){var readyState=document.readyState;"loading"===readyState||"interactive"===readyState&&script&&script.defer?document.addEventListener("DOMContentLoaded",highlightAutomaticallyCallback):window.requestAnimationFrame?window.requestAnimationFrame(highlightAutomaticallyCallback):window.setTimeout(highlightAutomaticallyCallback,16)}return _}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});module.exports&&(module.exports=Prism),void 0!==_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_35__.H&&(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_35__.H.Prism=Prism)}(prismCore);var clike_1=clike$1;function clike$1(Prism){Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}clike$1.displayName="clike",clike$1.aliases=[];var javascript_1=javascript;function javascript(Prism){Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript}javascript.displayName="javascript",javascript.aliases=["js"];var ctx="object"===("undefined"==typeof globalThis?"undefined":_typeof(globalThis))?globalThis:"object"===("undefined"==typeof self?"undefined":_typeof(self))?self:"object"===("undefined"==typeof window?"undefined":_typeof(window))?window:"object"===_typeof(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_35__.H)?_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_35__.H:{},restore=function capture(){var defined="Prism"in ctx,current=defined?ctx.Prism:void 0;return function restore(){defined?ctx.Prism=current:delete ctx.Prism;defined=void 0,current=void 0}}();ctx.Prism={manual:!0,disableWorkerMessageHandler:!0};var h=hastscript,decode=parseEntities_1,Prism=prismCore.exports,markup=markup_1,css=css_1,clike=clike_1,js=javascript_1;restore();var own={}.hasOwnProperty;function Refractor(){}Refractor.prototype=Prism;var refract=new Refractor,core=refract;function register(grammar){if("function"!=typeof grammar||!grammar.displayName)throw new Error("Expected `function` for `grammar`, got `"+grammar+"`");void 0===refract.languages[grammar.displayName]&&grammar(refract)}refract.highlight=function highlight(value,name){var grammar,sup=Prism.highlight;if("string"!=typeof value)throw new Error("Expected `string` for `value`, got `"+value+"`");if("Object"===refract.util.type(name))grammar=name,name=null;else{if("string"!=typeof name)throw new Error("Expected `string` for `name`, got `"+name+"`");if(!own.call(refract.languages,name))throw new Error("Unknown language: `"+name+"` is not registered");grammar=refract.languages[name]}return sup.call(this,value,grammar,name)},refract.register=register,refract.alias=function alias(name,alias){var key,list,length,index,languages=refract.languages,map=name;alias&&((map={})[name]=alias);for(key in map)for(length=(list="string"==typeof(list=map[key])?[list]:list).length,index=-1;++index=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}(_ref7,["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"]);astGenerator=astGenerator||defaultAstGenerator;var allLineNumbers=showLineNumbers?react__WEBPACK_IMPORTED_MODULE_36___default.a.createElement(AllLineNumbers,{containerStyle:lineNumberContainerStyle,codeStyle:codeTagProps.style||{},numberStyle:lineNumberStyle,startingLineNumber:startingLineNumber,codeString:code}):null,defaultPreStyle=style.hljs||style['pre[class*="language-"]']||{backgroundColor:"#fff"},generatorClassName=isHighlightJs(astGenerator)?"hljs":"prismjs",preProps=useInlineStyles?Object.assign({},rest,{style:Object.assign({},defaultPreStyle,customStyle)}):Object.assign({},rest,{className:rest.className?"".concat(generatorClassName," ").concat(rest.className):generatorClassName,style:Object.assign({},customStyle)});if(!astGenerator)return react__WEBPACK_IMPORTED_MODULE_36___default.a.createElement(PreTag,preProps,allLineNumbers,react__WEBPACK_IMPORTED_MODULE_36___default.a.createElement(CodeTag,codeTagProps,code));(void 0===wrapLines&&renderer||wrapLongLines)&&(wrapLines=!0),renderer=renderer||defaultRenderer;var defaultCodeValue=[{type:"text",value:code}],codeTree=function getCodeTree(_ref6){var astGenerator=_ref6.astGenerator,language=_ref6.language,code=_ref6.code,defaultCodeValue=_ref6.defaultCodeValue;if(isHighlightJs(astGenerator)){var hasLanguage=checkForListedLanguage(astGenerator,language);return"text"===language?{value:defaultCodeValue,language:"text"}:hasLanguage?astGenerator.highlight(language,code):astGenerator.highlightAuto(code)}try{return language&&"text"!==language?{value:astGenerator.highlight(code,language)}:{value:defaultCodeValue}}catch(e){return{value:defaultCodeValue}}}({astGenerator:astGenerator,language:language,code:code,defaultCodeValue:defaultCodeValue});null===codeTree.language&&(codeTree.value=defaultCodeValue);var rows=processLines(codeTree,wrapLines,lineProps,showLineNumbers,showInlineLineNumbers,startingLineNumber,codeTree.value.length+startingLineNumber,lineNumberStyle,wrapLongLines);return codeTagProps.style=_objectSpread({},codeTagProps.style,wrapLongLines?{whiteSpace:"pre-wrap"}:{whiteSpace:"pre"}),react__WEBPACK_IMPORTED_MODULE_36___default.a.createElement(PreTag,preProps,react__WEBPACK_IMPORTED_MODULE_36___default.a.createElement(CodeTag,codeTagProps,!showInlineLineNumbers&&allLineNumbers,renderer({rows:rows,stylesheet:style,useInlineStyles:useInlineStyles})))}}(core,{});SyntaxHighlighter$1.registerLanguage=function(_,language){return core.register(language)};var ReactSyntaxHighlighter=SyntaxHighlighter$1,navigator=_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_35__.bb.navigator,document$1=_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_35__.bb.document,globalWindow=_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_35__.bb.window;ReactSyntaxHighlighter.registerLanguage("jsextra",jsExtras$1),ReactSyntaxHighlighter.registerLanguage("jsx",jsx$1),ReactSyntaxHighlighter.registerLanguage("json",json$1),ReactSyntaxHighlighter.registerLanguage("yml",yaml$1),ReactSyntaxHighlighter.registerLanguage("md",markdown$1),ReactSyntaxHighlighter.registerLanguage("bash",bash$1),ReactSyntaxHighlighter.registerLanguage("css",css$2),ReactSyntaxHighlighter.registerLanguage("html",markup$2),ReactSyntaxHighlighter.registerLanguage("tsx",tsx$1),ReactSyntaxHighlighter.registerLanguage("typescript",typescript$1),ReactSyntaxHighlighter.registerLanguage("graphql",graphql$1);var themedSyntax=memoizerific__WEBPACK_IMPORTED_MODULE_39___default()(2)((function(theme){return Object.entries(theme.code||{}).reduce((function(acc,_ref8){var _ref9=_slicedToArray(_ref8,2),key=_ref9[0],val=_ref9[1];return Object.assign(Object.assign({},acc),function _defineProperty2(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}({},"* .".concat(key),val))}),{})})),copyToClipboard=createCopyToClipboardFunction();function createCopyToClipboardFunction(){var _this=this;return(null==navigator?void 0:navigator.clipboard)?function(text){return navigator.clipboard.writeText(text)}:function(text){return Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_35__.G)(_this,void 0,void 0,regeneratorRuntime.mark((function _callee(){var tmp,focus;return regeneratorRuntime.wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:tmp=document$1.createElement("TEXTAREA"),focus=document$1.activeElement,tmp.value=text,document$1.body.appendChild(tmp),tmp.select(),document$1.execCommand("copy"),document$1.body.removeChild(tmp),focus.focus();case 8:case"end":return _context.stop()}}),_callee)})))}}var Wrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_38__.i.div((function(_ref10){return{position:"relative",overflow:"hidden",color:_ref10.theme.color.defaultText}}),(function(_ref11){var theme=_ref11.theme;return _ref11.bordered?{border:"1px solid ".concat(theme.appBorderColor),borderRadius:theme.borderRadius,background:theme.background.content}:{}})),Scroller=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_38__.i)((function(_ref12){var children=_ref12.children,className=_ref12.className;return react__WEBPACK_IMPORTED_MODULE_36___default.a.createElement(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_35__.i,{horizontal:!0,vertical:!0,className:className},children)}))({position:"relative"},(function(_ref13){var theme=_ref13.theme;return themedSyntax(theme)})),Pre=_storybook_theming__WEBPACK_IMPORTED_MODULE_38__.i.pre((function(_ref14){var theme=_ref14.theme;return{display:"flex",justifyContent:"flex-start",margin:0,padding:_ref14.padded?theme.layoutMargin:0}})),Code=_storybook_theming__WEBPACK_IMPORTED_MODULE_38__.i.div((function(_ref15){return{flex:1,paddingLeft:2,paddingRight:_ref15.theme.layoutMargin,opacity:1}})),SyntaxHighlighter=function SyntaxHighlighter(_a){var children=_a.children,_a$language=_a.language,language=void 0===_a$language?"jsx":_a$language,_a$copyable=_a.copyable,copyable=void 0!==_a$copyable&&_a$copyable,_a$bordered=_a.bordered,bordered=void 0!==_a$bordered&&_a$bordered,_a$padded=_a.padded,padded=void 0!==_a$padded&&_a$padded,_a$format=_a.format,format=void 0===_a$format||_a$format,_a$formatter=_a.formatter,formatter=void 0===_a$formatter?null:_a$formatter,_a$className=_a.className,className=void 0===_a$className?null:_a$className,_a$showLineNumbers=_a.showLineNumbers,showLineNumbers=void 0!==_a$showLineNumbers&&_a$showLineNumbers,rest=Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_35__.I)(_a,["children","language","copyable","bordered","padded","format","formatter","className","showLineNumbers"]);if("string"!=typeof children||!children.trim())return null;var highlightableCode=formatter?formatter(format,children):children.trim(),_useState2=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_36__.useState)(!1),2),copied=_useState2[0],setCopied=_useState2[1],onClick=Object(react__WEBPACK_IMPORTED_MODULE_36__.useCallback)((function(e){e.preventDefault();var selectedText=globalWindow.getSelection().toString(),textToCopy="click"!==e.type&&selectedText?selectedText:highlightableCode;copyToClipboard(textToCopy).then((function(){setCopied(!0),globalWindow.setTimeout((function(){return setCopied(!1)}),1500)})).catch(_storybook_client_logger__WEBPACK_IMPORTED_MODULE_37__.a.error)}),[]);return react__WEBPACK_IMPORTED_MODULE_36___default.a.createElement(Wrapper,{bordered:bordered,padded:padded,className:className,onCopyCapture:onClick},react__WEBPACK_IMPORTED_MODULE_36___default.a.createElement(Scroller,null,react__WEBPACK_IMPORTED_MODULE_36___default.a.createElement(ReactSyntaxHighlighter,Object.assign({padded:padded||bordered,language:language,showLineNumbers:showLineNumbers,showInlineLineNumbers:showLineNumbers,useInlineStyles:!1,PreTag:Pre,CodeTag:Code,lineNumberContainerStyle:{}},rest),highlightableCode)),copyable?react__WEBPACK_IMPORTED_MODULE_36___default.a.createElement(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_35__.a,{actionItems:[{title:copied?"Copied":"Copy",onClick:onClick}]}):null)}},"./node_modules/core-js/modules/es.regexp.flags.js":function(module,exports,__webpack_require__){"use strict";var global=__webpack_require__("./node_modules/core-js/internals/global.js"),DESCRIPTORS=__webpack_require__("./node_modules/core-js/internals/descriptors.js"),defineBuiltInAccessor=__webpack_require__("./node_modules/core-js/internals/define-built-in-accessor.js"),regExpFlags=__webpack_require__("./node_modules/core-js/internals/regexp-flags.js"),fails=__webpack_require__("./node_modules/core-js/internals/fails.js"),RegExp=global.RegExp,RegExpPrototype=RegExp.prototype;DESCRIPTORS&&fails((function(){var INDICES_SUPPORT=!0;try{RegExp(".","d")}catch(error){INDICES_SUPPORT=!1}var O={},calls="",expected=INDICES_SUPPORT?"dgimsy":"gimsy",addGetter=function(key,chr){Object.defineProperty(O,key,{get:function(){return calls+=chr,!0}})},pairs={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var key in INDICES_SUPPORT&&(pairs.hasIndices="d"),pairs)addGetter(key,pairs[key]);return Object.getOwnPropertyDescriptor(RegExpPrototype,"flags").get.call(O)!==expected||calls!==expected}))&&defineBuiltInAccessor(RegExpPrototype,"flags",{configurable:!0,get:regExpFlags})},"./node_modules/core-js/modules/es.string.from-code-point.js":function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__("./node_modules/core-js/internals/export.js"),uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),toAbsoluteIndex=__webpack_require__("./node_modules/core-js/internals/to-absolute-index.js"),$RangeError=RangeError,fromCharCode=String.fromCharCode,$fromCodePoint=String.fromCodePoint,join=uncurryThis([].join);$({target:"String",stat:!0,arity:1,forced:!!$fromCodePoint&&1!==$fromCodePoint.length},{fromCodePoint:function fromCodePoint(x){for(var code,elements=[],length=arguments.length,i=0;length>i;){if(code=+arguments[i++],toAbsoluteIndex(code,1114111)!==code)throw new $RangeError(code+" is not a valid code point");elements[i]=code<65536?fromCharCode(code):fromCharCode(55296+((code-=65536)>>10),code%1024+56320)}return join(elements,"")}})}}]); +//# sourceMappingURL=0.ae4d4b04.iframe.bundle.js.map \ No newline at end of file diff --git a/0.ae4d4b04.iframe.bundle.js.LICENSE.txt b/0.ae4d4b04.iframe.bundle.js.LICENSE.txt new file mode 100644 index 000000000..7a4147477 --- /dev/null +++ b/0.ae4d4b04.iframe.bundle.js.LICENSE.txt @@ -0,0 +1,8 @@ +/** + * Prism: Lightweight, robust, elegant syntax highlighting + * + * @license MIT + * @author Lea Verou + * @namespace + * @public + */ diff --git a/0.ae4d4b04.iframe.bundle.js.map b/0.ae4d4b04.iframe.bundle.js.map new file mode 100644 index 000000000..92e09bd8d --- /dev/null +++ b/0.ae4d4b04.iframe.bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"0.ae4d4b04.iframe.bundle.js","sources":[],"mappings":";A","sourceRoot":""} \ No newline at end of file diff --git a/1.b6d7327d5b17118e61b6.manager.bundle.js b/1.b6d7327d5b17118e61b6.manager.bundle.js new file mode 100644 index 000000000..f46075cbf --- /dev/null +++ b/1.b6d7327d5b17118e61b6.manager.bundle.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{458:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithToolTipState",(function(){return WithToolTipState})),__webpack_require__.d(__webpack_exports__,"WithTooltip",(function(){return WithToolTipState})),__webpack_require__.d(__webpack_exports__,"WithTooltipPure",(function(){return WithTooltipPure}));__webpack_require__(16),__webpack_require__(21),__webpack_require__(22),__webpack_require__(56),__webpack_require__(11),__webpack_require__(90),__webpack_require__(38),__webpack_require__(45),__webpack_require__(37),__webpack_require__(19),__webpack_require__(91),__webpack_require__(70),__webpack_require__(27),__webpack_require__(79),__webpack_require__(26),__webpack_require__(99),__webpack_require__(120),__webpack_require__(15),__webpack_require__(173),__webpack_require__(18),__webpack_require__(17),__webpack_require__(92),__webpack_require__(29),__webpack_require__(119),__webpack_require__(71),__webpack_require__(42),__webpack_require__(307),__webpack_require__(142),__webpack_require__(304),__webpack_require__(50),__webpack_require__(62),__webpack_require__(80),__webpack_require__(221),__webpack_require__(33);var _templateObject,_templateObject2,_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__(2),react__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_35___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_35__),_storybook_theming__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__(1),react_dom__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__(171),memoizerific__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__(28),memoizerific__WEBPACK_IMPORTED_MODULE_38___default=__webpack_require__.n(memoizerific__WEBPACK_IMPORTED_MODULE_38__);__webpack_require__(48);function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&(scaleX=round(rect.width)/offsetWidth||1),offsetHeight>0&&(scaleY=round(rect.height)/offsetHeight||1)}return{width:rect.width/scaleX,height:rect.height/scaleY,top:rect.top/scaleY,right:rect.right/scaleX,bottom:rect.bottom/scaleY,left:rect.left/scaleX,x:rect.left/scaleX,y:rect.top/scaleY}}function getLayoutRect(element){var clientRect=getBoundingClientRect(element),width=element.offsetWidth,height=element.offsetHeight;return Math.abs(clientRect.width-width)<=1&&(width=clientRect.width),Math.abs(clientRect.height-height)<=1&&(height=clientRect.height),{x:element.offsetLeft,y:element.offsetTop,width:width,height:height}}function contains(parent,child){var rootNode=child.getRootNode&&child.getRootNode();if(parent.contains(child))return!0;if(rootNode&&isShadowRoot(rootNode)){var next=child;do{if(next&&parent.isSameNode(next))return!0;next=next.parentNode||next.host}while(next)}return!1}function getComputedStyle(element){return getWindow(element).getComputedStyle(element)}function isTableElement(element){return["table","td","th"].indexOf(getNodeName(element))>=0}function getDocumentElement(element){return((isElement(element)?element.ownerDocument:element.document)||window.document).documentElement}function getParentNode(element){return"html"===getNodeName(element)?element:element.assignedSlot||element.parentNode||(isShadowRoot(element)?element.host:null)||getDocumentElement(element)}function getTrueOffsetParent(element){return isHTMLElement(element)&&"fixed"!==getComputedStyle(element).position?element.offsetParent:null}function getOffsetParent(element){for(var window=getWindow(element),offsetParent=getTrueOffsetParent(element);offsetParent&&isTableElement(offsetParent)&&"static"===getComputedStyle(offsetParent).position;)offsetParent=getTrueOffsetParent(offsetParent);return offsetParent&&("html"===getNodeName(offsetParent)||"body"===getNodeName(offsetParent)&&"static"===getComputedStyle(offsetParent).position)?window:offsetParent||function getContainingBlock(element){var isFirefox=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&isHTMLElement(element)&&"fixed"===getComputedStyle(element).position)return null;for(var currentNode=getParentNode(element);isHTMLElement(currentNode)&&["html","body"].indexOf(getNodeName(currentNode))<0;){var css=getComputedStyle(currentNode);if("none"!==css.transform||"none"!==css.perspective||"paint"===css.contain||-1!==["transform","perspective"].indexOf(css.willChange)||isFirefox&&"filter"===css.willChange||isFirefox&&css.filter&&"none"!==css.filter)return currentNode;currentNode=currentNode.parentNode}return null}(element)||window}function getMainAxisFromPlacement(placement){return["top","bottom"].indexOf(placement)>=0?"x":"y"}function within(min$1,value,max$1){return max(min$1,min(value,max$1))}function mergePaddingObject(paddingObject){return Object.assign({},{top:0,right:0,bottom:0,left:0},paddingObject)}function expandToHashMap(value,keys){return keys.reduce((function(hashMap,key){return hashMap[key]=value,hashMap}),{})}var arrow$1={name:"arrow",enabled:!0,phase:"main",fn:function arrow(_ref){var _state$modifiersData$,state=_ref.state,name=_ref.name,options=_ref.options,arrowElement=state.elements.arrow,popperOffsets=state.modifiersData.popperOffsets,basePlacement=getBasePlacement(state.placement),axis=getMainAxisFromPlacement(basePlacement),len=[_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.L,_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.R].indexOf(basePlacement)>=0?"height":"width";if(arrowElement&&popperOffsets){var paddingObject=function toPaddingObject(padding,state){return mergePaddingObject("number"!=typeof(padding="function"==typeof padding?padding(Object.assign({},state.rects,{placement:state.placement})):padding)?padding:expandToHashMap(padding,_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.F))}(options.padding,state),arrowRect=getLayoutRect(arrowElement),minProp="y"===axis?_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.T:_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.L,maxProp="y"===axis?_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.H:_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.R,endDiff=state.rects.reference[len]+state.rects.reference[axis]-popperOffsets[axis]-state.rects.popper[len],startDiff=popperOffsets[axis]-state.rects.reference[axis],arrowOffsetParent=getOffsetParent(arrowElement),clientSize=arrowOffsetParent?"y"===axis?arrowOffsetParent.clientHeight||0:arrowOffsetParent.clientWidth||0:0,centerToReference=endDiff/2-startDiff/2,min=paddingObject[minProp],max=clientSize-arrowRect[len]-paddingObject[maxProp],center=clientSize/2-arrowRect[len]/2+centerToReference,offset=within(min,center,max),axisProp=axis;state.modifiersData[name]=((_state$modifiersData$={})[axisProp]=offset,_state$modifiersData$.centerOffset=offset-center,_state$modifiersData$)}},effect:function effect$1(_ref2){var state=_ref2.state,_options$element=_ref2.options.element,arrowElement=void 0===_options$element?"[data-popper-arrow]":_options$element;null!=arrowElement&&("string"!=typeof arrowElement||(arrowElement=state.elements.popper.querySelector(arrowElement)))&&contains(state.elements.popper,arrowElement)&&(state.elements.arrow=arrowElement)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(placement){return placement.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mapToStyles(_ref2){var _Object$assign2,popper=_ref2.popper,popperRect=_ref2.popperRect,placement=_ref2.placement,variation=_ref2.variation,offsets=_ref2.offsets,position=_ref2.position,gpuAcceleration=_ref2.gpuAcceleration,adaptive=_ref2.adaptive,roundOffsets=_ref2.roundOffsets,isFixed=_ref2.isFixed,_offsets$x=offsets.x,x=void 0===_offsets$x?0:_offsets$x,_offsets$y=offsets.y,y=void 0===_offsets$y?0:_offsets$y,_ref3="function"==typeof roundOffsets?roundOffsets({x:x,y:y}):{x:x,y:y};x=_ref3.x,y=_ref3.y;var hasX=offsets.hasOwnProperty("x"),hasY=offsets.hasOwnProperty("y"),sideX=_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.L,sideY=_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.T,win=window;if(adaptive){var offsetParent=getOffsetParent(popper),heightProp="clientHeight",widthProp="clientWidth";if(offsetParent===getWindow(popper)&&"static"!==getComputedStyle(offsetParent=getDocumentElement(popper)).position&&"absolute"===position&&(heightProp="scrollHeight",widthProp="scrollWidth"),placement===_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.T||(placement===_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.L||placement===_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.R)&&variation===_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.I)sideY=_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.H,y-=(isFixed&&win.visualViewport?win.visualViewport.height:offsetParent[heightProp])-popperRect.height,y*=gpuAcceleration?1:-1;if(placement===_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.L||(placement===_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.T||placement===_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.H)&&variation===_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.I)sideX=_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.R,x-=(isFixed&&win.visualViewport?win.visualViewport.width:offsetParent[widthProp])-popperRect.width,x*=gpuAcceleration?1:-1}var _Object$assign,commonStyles=Object.assign({position:position},adaptive&&unsetSides),_ref4=!0===roundOffsets?function roundOffsetsByDPR(_ref){var x=_ref.x,y=_ref.y,dpr=window.devicePixelRatio||1;return{x:round(x*dpr)/dpr||0,y:round(y*dpr)/dpr||0}}({x:x,y:y}):{x:x,y:y};return x=_ref4.x,y=_ref4.y,gpuAcceleration?Object.assign({},commonStyles,((_Object$assign={})[sideY]=hasY?"0":"",_Object$assign[sideX]=hasX?"0":"",_Object$assign.transform=(win.devicePixelRatio||1)<=1?"translate("+x+"px, "+y+"px)":"translate3d("+x+"px, "+y+"px, 0)",_Object$assign)):Object.assign({},commonStyles,((_Object$assign2={})[sideY]=hasY?y+"px":"",_Object$assign2[sideX]=hasX?x+"px":"",_Object$assign2.transform="",_Object$assign2))}var passive={passive:!0};var hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(placement){return placement.replace(/left|right|bottom|top/g,(function(matched){return hash$1[matched]}))}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(placement){return placement.replace(/start|end/g,(function(matched){return hash[matched]}))}function getWindowScroll(node){var win=getWindow(node);return{scrollLeft:win.pageXOffset,scrollTop:win.pageYOffset}}function getWindowScrollBarX(element){return getBoundingClientRect(getDocumentElement(element)).left+getWindowScroll(element).scrollLeft}function isScrollParent(element){var _getComputedStyle=getComputedStyle(element),overflow=_getComputedStyle.overflow,overflowX=_getComputedStyle.overflowX,overflowY=_getComputedStyle.overflowY;return/auto|scroll|overlay|hidden/.test(overflow+overflowY+overflowX)}function getScrollParent(node){return["html","body","#document"].indexOf(getNodeName(node))>=0?node.ownerDocument.body:isHTMLElement(node)&&isScrollParent(node)?node:getScrollParent(getParentNode(node))}function listScrollParents(element,list){var _element$ownerDocumen;void 0===list&&(list=[]);var scrollParent=getScrollParent(element),isBody=scrollParent===(null==(_element$ownerDocumen=element.ownerDocument)?void 0:_element$ownerDocumen.body),win=getWindow(scrollParent),target=isBody?[win].concat(win.visualViewport||[],isScrollParent(scrollParent)?scrollParent:[]):scrollParent,updatedList=list.concat(target);return isBody?updatedList:updatedList.concat(listScrollParents(getParentNode(target)))}function rectToClientRect(rect){return Object.assign({},rect,{left:rect.x,top:rect.y,right:rect.x+rect.width,bottom:rect.y+rect.height})}function getClientRectFromMixedType(element,clippingParent){return clippingParent===_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.V?rectToClientRect(function getViewportRect(element){var win=getWindow(element),html=getDocumentElement(element),visualViewport=win.visualViewport,width=html.clientWidth,height=html.clientHeight,x=0,y=0;return visualViewport&&(width=visualViewport.width,height=visualViewport.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(x=visualViewport.offsetLeft,y=visualViewport.offsetTop)),{width:width,height:height,x:x+getWindowScrollBarX(element),y:y}}(element)):isElement(clippingParent)?function getInnerBoundingClientRect(element){var rect=getBoundingClientRect(element);return rect.top=rect.top+element.clientTop,rect.left=rect.left+element.clientLeft,rect.bottom=rect.top+element.clientHeight,rect.right=rect.left+element.clientWidth,rect.width=element.clientWidth,rect.height=element.clientHeight,rect.x=rect.left,rect.y=rect.top,rect}(clippingParent):rectToClientRect(function getDocumentRect(element){var _element$ownerDocumen,html=getDocumentElement(element),winScroll=getWindowScroll(element),body=null==(_element$ownerDocumen=element.ownerDocument)?void 0:_element$ownerDocumen.body,width=max(html.scrollWidth,html.clientWidth,body?body.scrollWidth:0,body?body.clientWidth:0),height=max(html.scrollHeight,html.clientHeight,body?body.scrollHeight:0,body?body.clientHeight:0),x=-winScroll.scrollLeft+getWindowScrollBarX(element),y=-winScroll.scrollTop;return"rtl"===getComputedStyle(body||html).direction&&(x+=max(html.clientWidth,body?body.clientWidth:0)-width),{width:width,height:height,x:x,y:y}}(getDocumentElement(element)))}function getClippingRect(element,boundary,rootBoundary){var mainClippingParents="clippingParents"===boundary?function getClippingParents(element){var clippingParents=listScrollParents(getParentNode(element)),clipperElement=["absolute","fixed"].indexOf(getComputedStyle(element).position)>=0&&isHTMLElement(element)?getOffsetParent(element):element;return isElement(clipperElement)?clippingParents.filter((function(clippingParent){return isElement(clippingParent)&&contains(clippingParent,clipperElement)&&"body"!==getNodeName(clippingParent)})):[]}(element):[].concat(boundary),clippingParents=[].concat(mainClippingParents,[rootBoundary]),firstClippingParent=clippingParents[0],clippingRect=clippingParents.reduce((function(accRect,clippingParent){var rect=getClientRectFromMixedType(element,clippingParent);return accRect.top=max(rect.top,accRect.top),accRect.right=min(rect.right,accRect.right),accRect.bottom=min(rect.bottom,accRect.bottom),accRect.left=max(rect.left,accRect.left),accRect}),getClientRectFromMixedType(element,firstClippingParent));return clippingRect.width=clippingRect.right-clippingRect.left,clippingRect.height=clippingRect.bottom-clippingRect.top,clippingRect.x=clippingRect.left,clippingRect.y=clippingRect.top,clippingRect}function computeOffsets(_ref){var offsets,reference=_ref.reference,element=_ref.element,placement=_ref.placement,basePlacement=placement?getBasePlacement(placement):null,variation=placement?getVariation(placement):null,commonX=reference.x+reference.width/2-element.width/2,commonY=reference.y+reference.height/2-element.height/2;switch(basePlacement){case _index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.T:offsets={x:commonX,y:reference.y-element.height};break;case _index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.H:offsets={x:commonX,y:reference.y+reference.height};break;case _index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.R:offsets={x:reference.x+reference.width,y:commonY};break;case _index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.L:offsets={x:reference.x-element.width,y:commonY};break;default:offsets={x:reference.x,y:reference.y}}var mainAxis=basePlacement?getMainAxisFromPlacement(basePlacement):null;if(null!=mainAxis){var len="y"===mainAxis?"height":"width";switch(variation){case _index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.S:offsets[mainAxis]=offsets[mainAxis]-(reference[len]/2-element[len]/2);break;case _index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.I:offsets[mainAxis]=offsets[mainAxis]+(reference[len]/2-element[len]/2)}}return offsets}function detectOverflow(state,options){void 0===options&&(options={});var _options=options,_options$placement=_options.placement,placement=void 0===_options$placement?state.placement:_options$placement,_options$boundary=_options.boundary,boundary=void 0===_options$boundary?_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.J:_options$boundary,_options$rootBoundary=_options.rootBoundary,rootBoundary=void 0===_options$rootBoundary?_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.V:_options$rootBoundary,_options$elementConte=_options.elementContext,elementContext=void 0===_options$elementConte?_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.P:_options$elementConte,_options$altBoundary=_options.altBoundary,altBoundary=void 0!==_options$altBoundary&&_options$altBoundary,_options$padding=_options.padding,padding=void 0===_options$padding?0:_options$padding,paddingObject=mergePaddingObject("number"!=typeof padding?padding:expandToHashMap(padding,_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.F)),altContext=elementContext===_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.P?_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.K:_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.P,popperRect=state.rects.popper,element=state.elements[altBoundary?altContext:elementContext],clippingClientRect=getClippingRect(isElement(element)?element:element.contextElement||getDocumentElement(state.elements.popper),boundary,rootBoundary),referenceClientRect=getBoundingClientRect(state.elements.reference),popperOffsets=computeOffsets({reference:referenceClientRect,element:popperRect,strategy:"absolute",placement:placement}),popperClientRect=rectToClientRect(Object.assign({},popperRect,popperOffsets)),elementClientRect=elementContext===_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.P?popperClientRect:referenceClientRect,overflowOffsets={top:clippingClientRect.top-elementClientRect.top+paddingObject.top,bottom:elementClientRect.bottom-clippingClientRect.bottom+paddingObject.bottom,left:clippingClientRect.left-elementClientRect.left+paddingObject.left,right:elementClientRect.right-clippingClientRect.right+paddingObject.right},offsetData=state.modifiersData.offset;if(elementContext===_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.P&&offsetData){var offset=offsetData[placement];Object.keys(overflowOffsets).forEach((function(key){var multiply=[_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.R,_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.H].indexOf(key)>=0?1:-1,axis=[_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.T,_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.H].indexOf(key)>=0?"y":"x";overflowOffsets[key]+=offset[axis]*multiply}))}return overflowOffsets}function getSideOffsets(overflow,rect,preventedOffsets){return void 0===preventedOffsets&&(preventedOffsets={x:0,y:0}),{top:overflow.top-rect.height-preventedOffsets.y,right:overflow.right-rect.width+preventedOffsets.x,bottom:overflow.bottom-rect.height+preventedOffsets.y,left:overflow.left-rect.width-preventedOffsets.x}}function isAnySideFullyClipped(overflow){return[_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.T,_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.R,_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.H,_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.L].some((function(side){return overflow[side]>=0}))}var offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function offset(_ref2){var state=_ref2.state,options=_ref2.options,name=_ref2.name,_options$offset=options.offset,offset=void 0===_options$offset?[0,0]:_options$offset,data=_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.N.reduce((function(acc,placement){return acc[placement]=function distanceAndSkiddingToXY(placement,rects,offset){var basePlacement=getBasePlacement(placement),invertDistance=[_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.L,_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.T].indexOf(basePlacement)>=0?-1:1,_ref="function"==typeof offset?offset(Object.assign({},rects,{placement:placement})):offset,skidding=_ref[0],distance=_ref[1];return skidding=skidding||0,distance=(distance||0)*invertDistance,[_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.L,_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.R].indexOf(basePlacement)>=0?{x:distance,y:skidding}:{x:skidding,y:distance}}(placement,state.rects,offset),acc}),{}),_data$state$placement=data[state.placement],x=_data$state$placement.x,y=_data$state$placement.y;null!=state.modifiersData.popperOffsets&&(state.modifiersData.popperOffsets.x+=x,state.modifiersData.popperOffsets.y+=y),state.modifiersData[name]=data}};var preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:function preventOverflow(_ref){var state=_ref.state,options=_ref.options,name=_ref.name,_options$mainAxis=options.mainAxis,checkMainAxis=void 0===_options$mainAxis||_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=void 0!==_options$altAxis&&_options$altAxis,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,padding=options.padding,_options$tether=options.tether,tether=void 0===_options$tether||_options$tether,_options$tetherOffset=options.tetherOffset,tetherOffset=void 0===_options$tetherOffset?0:_options$tetherOffset,overflow=detectOverflow(state,{boundary:boundary,rootBoundary:rootBoundary,padding:padding,altBoundary:altBoundary}),basePlacement=getBasePlacement(state.placement),variation=getVariation(state.placement),isBasePlacement=!variation,mainAxis=getMainAxisFromPlacement(basePlacement),altAxis=function getAltAxis(axis){return"x"===axis?"y":"x"}(mainAxis),popperOffsets=state.modifiersData.popperOffsets,referenceRect=state.rects.reference,popperRect=state.rects.popper,tetherOffsetValue="function"==typeof tetherOffset?tetherOffset(Object.assign({},state.rects,{placement:state.placement})):tetherOffset,normalizedTetherOffsetValue="number"==typeof tetherOffsetValue?{mainAxis:tetherOffsetValue,altAxis:tetherOffsetValue}:Object.assign({mainAxis:0,altAxis:0},tetherOffsetValue),offsetModifierState=state.modifiersData.offset?state.modifiersData.offset[state.placement]:null,data={x:0,y:0};if(popperOffsets){if(checkMainAxis){var _offsetModifierState$,mainSide="y"===mainAxis?_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.T:_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.L,altSide="y"===mainAxis?_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.H:_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.R,len="y"===mainAxis?"height":"width",offset=popperOffsets[mainAxis],min$1=offset+overflow[mainSide],max$1=offset-overflow[altSide],additive=tether?-popperRect[len]/2:0,minLen=variation===_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.S?referenceRect[len]:popperRect[len],maxLen=variation===_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.S?-popperRect[len]:-referenceRect[len],arrowElement=state.elements.arrow,arrowRect=tether&&arrowElement?getLayoutRect(arrowElement):{width:0,height:0},arrowPaddingObject=state.modifiersData["arrow#persistent"]?state.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},arrowPaddingMin=arrowPaddingObject[mainSide],arrowPaddingMax=arrowPaddingObject[altSide],arrowLen=within(0,referenceRect[len],arrowRect[len]),minOffset=isBasePlacement?referenceRect[len]/2-additive-arrowLen-arrowPaddingMin-normalizedTetherOffsetValue.mainAxis:minLen-arrowLen-arrowPaddingMin-normalizedTetherOffsetValue.mainAxis,maxOffset=isBasePlacement?-referenceRect[len]/2+additive+arrowLen+arrowPaddingMax+normalizedTetherOffsetValue.mainAxis:maxLen+arrowLen+arrowPaddingMax+normalizedTetherOffsetValue.mainAxis,arrowOffsetParent=state.elements.arrow&&getOffsetParent(state.elements.arrow),clientOffset=arrowOffsetParent?"y"===mainAxis?arrowOffsetParent.clientTop||0:arrowOffsetParent.clientLeft||0:0,offsetModifierValue=null!=(_offsetModifierState$=null==offsetModifierState?void 0:offsetModifierState[mainAxis])?_offsetModifierState$:0,tetherMax=offset+maxOffset-offsetModifierValue,preventedOffset=within(tether?min(min$1,offset+minOffset-offsetModifierValue-clientOffset):min$1,offset,tether?max(max$1,tetherMax):max$1);popperOffsets[mainAxis]=preventedOffset,data[mainAxis]=preventedOffset-offset}if(checkAltAxis){var _offsetModifierState$2,_mainSide="x"===mainAxis?_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.T:_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.L,_altSide="x"===mainAxis?_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.H:_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.R,_offset=popperOffsets[altAxis],_len="y"===altAxis?"height":"width",_min=_offset+overflow[_mainSide],_max=_offset-overflow[_altSide],isOriginSide=-1!==[_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.T,_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.L].indexOf(basePlacement),_offsetModifierValue=null!=(_offsetModifierState$2=null==offsetModifierState?void 0:offsetModifierState[altAxis])?_offsetModifierState$2:0,_tetherMin=isOriginSide?_min:_offset-referenceRect[_len]-popperRect[_len]-_offsetModifierValue+normalizedTetherOffsetValue.altAxis,_tetherMax=isOriginSide?_offset+referenceRect[_len]+popperRect[_len]-_offsetModifierValue-normalizedTetherOffsetValue.altAxis:_max,_preventedOffset=tether&&isOriginSide?function withinMaxClamp(min,value,max){var v=within(min,value,max);return v>max?max:v}(_tetherMin,_offset,_tetherMax):within(tether?_tetherMin:_min,_offset,tether?_tetherMax:_max);popperOffsets[altAxis]=_preventedOffset,data[altAxis]=_preventedOffset-_offset}state.modifiersData[name]=data}},requiresIfExists:["offset"]};function getCompositeRect(elementOrVirtualElement,offsetParent,isFixed){void 0===isFixed&&(isFixed=!1);var isOffsetParentAnElement=isHTMLElement(offsetParent),offsetParentIsScaled=isHTMLElement(offsetParent)&&function isElementScaled(element){var rect=element.getBoundingClientRect(),scaleX=round(rect.width)/element.offsetWidth||1,scaleY=round(rect.height)/element.offsetHeight||1;return 1!==scaleX||1!==scaleY}(offsetParent),documentElement=getDocumentElement(offsetParent),rect=getBoundingClientRect(elementOrVirtualElement,offsetParentIsScaled),scroll={scrollLeft:0,scrollTop:0},offsets={x:0,y:0};return(isOffsetParentAnElement||!isOffsetParentAnElement&&!isFixed)&&(("body"!==getNodeName(offsetParent)||isScrollParent(documentElement))&&(scroll=function getNodeScroll(node){return node!==getWindow(node)&&isHTMLElement(node)?function getHTMLElementScroll(element){return{scrollLeft:element.scrollLeft,scrollTop:element.scrollTop}}(node):getWindowScroll(node)}(offsetParent)),isHTMLElement(offsetParent)?((offsets=getBoundingClientRect(offsetParent,!0)).x+=offsetParent.clientLeft,offsets.y+=offsetParent.clientTop):documentElement&&(offsets.x=getWindowScrollBarX(documentElement))),{x:rect.left+scroll.scrollLeft-offsets.x,y:rect.top+scroll.scrollTop-offsets.y,width:rect.width,height:rect.height}}function order(modifiers){var map=new Map,visited=new Set,result=[];function sort(modifier){visited.add(modifier.name),[].concat(modifier.requires||[],modifier.requiresIfExists||[]).forEach((function(dep){if(!visited.has(dep)){var depModifier=map.get(dep);depModifier&&sort(depModifier)}})),result.push(modifier)}return modifiers.forEach((function(modifier){map.set(modifier.name,modifier)})),modifiers.forEach((function(modifier){visited.has(modifier.name)||sort(modifier)})),result}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return!args.some((function(element){return!(element&&"function"==typeof element.getBoundingClientRect)}))}function popperGenerator(generatorOptions){void 0===generatorOptions&&(generatorOptions={});var _generatorOptions=generatorOptions,_generatorOptions$def=_generatorOptions.defaultModifiers,defaultModifiers=void 0===_generatorOptions$def?[]:_generatorOptions$def,_generatorOptions$def2=_generatorOptions.defaultOptions,defaultOptions=void 0===_generatorOptions$def2?DEFAULT_OPTIONS:_generatorOptions$def2;return function createPopper(reference,popper,options){void 0===options&&(options=defaultOptions);var fn,pending,state={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,defaultOptions),modifiersData:{},elements:{reference:reference,popper:popper},attributes:{},styles:{}},effectCleanupFns=[],isDestroyed=!1,instance={state:state,setOptions:function setOptions(setOptionsAction){var options="function"==typeof setOptionsAction?setOptionsAction(state.options):setOptionsAction;cleanupModifierEffects(),state.options=Object.assign({},defaultOptions,state.options,options),state.scrollParents={reference:isElement(reference)?listScrollParents(reference):reference.contextElement?listScrollParents(reference.contextElement):[],popper:listScrollParents(popper)};var orderedModifiers=function orderModifiers(modifiers){var orderedModifiers=order(modifiers);return _index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.Q.reduce((function(acc,phase){return acc.concat(orderedModifiers.filter((function(modifier){return modifier.phase===phase})))}),[])}(function mergeByName(modifiers){var merged=modifiers.reduce((function(merged,current){var existing=merged[current.name];return merged[current.name]=existing?Object.assign({},existing,current,{options:Object.assign({},existing.options,current.options),data:Object.assign({},existing.data,current.data)}):current,merged}),{});return Object.keys(merged).map((function(key){return merged[key]}))}([].concat(defaultModifiers,state.options.modifiers)));return state.orderedModifiers=orderedModifiers.filter((function(m){return m.enabled})),function runModifierEffects(){state.orderedModifiers.forEach((function(_ref3){var name=_ref3.name,_ref3$options=_ref3.options,options=void 0===_ref3$options?{}:_ref3$options,effect=_ref3.effect;if("function"==typeof effect){var cleanupFn=effect({state:state,name:name,instance:instance,options:options}),noopFn=function noopFn(){};effectCleanupFns.push(cleanupFn||noopFn)}}))}(),instance.update()},forceUpdate:function forceUpdate(){if(!isDestroyed){var _state$elements=state.elements,reference=_state$elements.reference,popper=_state$elements.popper;if(areValidElements(reference,popper)){state.rects={reference:getCompositeRect(reference,getOffsetParent(popper),"fixed"===state.options.strategy),popper:getLayoutRect(popper)},state.reset=!1,state.placement=state.options.placement,state.orderedModifiers.forEach((function(modifier){return state.modifiersData[modifier.name]=Object.assign({},modifier.data)}));for(var index=0;index=0}));0===allowedPlacements.length&&(allowedPlacements=placements$1);var overflows=allowedPlacements.reduce((function(acc,placement){return acc[placement]=detectOverflow(state,{placement:placement,boundary:boundary,rootBoundary:rootBoundary,padding:padding})[getBasePlacement(placement)],acc}),{});return Object.keys(overflows).sort((function(a,b){return overflows[a]-overflows[b]}))}(state,{placement:placement,boundary:boundary,rootBoundary:rootBoundary,padding:padding,flipVariations:flipVariations,allowedAutoPlacements:allowedAutoPlacements}):placement)}),[]),referenceRect=state.rects.reference,popperRect=state.rects.popper,checksMap=new Map,makeFallbackChecks=!0,firstFittingPlacement=placements[0],i=0;i=0,len=isVertical?"width":"height",overflow=detectOverflow(state,{placement:placement,boundary:boundary,rootBoundary:rootBoundary,altBoundary:altBoundary,padding:padding}),mainVariationSide=isVertical?isStartVariation?_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.R:_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.L:isStartVariation?_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.H:_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.T;referenceRect[len]>popperRect[len]&&(mainVariationSide=getOppositePlacement(mainVariationSide));var altVariationSide=getOppositePlacement(mainVariationSide),checks=[];if(checkMainAxis&&checks.push(overflow[_basePlacement]<=0),checkAltAxis&&checks.push(overflow[mainVariationSide]<=0,overflow[altVariationSide]<=0),checks.every((function(check){return check}))){firstFittingPlacement=placement,makeFallbackChecks=!1;break}checksMap.set(placement,checks)}if(makeFallbackChecks)for(var _loop=function _loop(_i){var fittingPlacement=placements.find((function(placement){var checks=checksMap.get(placement);if(checks)return checks.slice(0,_i).every((function(check){return check}))}));if(fittingPlacement)return firstFittingPlacement=fittingPlacement,"break"},_i=flipVariations?3:1;_i>0;_i--){if("break"===_loop(_i))break}state.placement!==firstFittingPlacement&&(state.modifiersData[name]._skip=!0,state.placement=firstFittingPlacement,state.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},preventOverflow$1,arrow$1,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function hide(_ref){var state=_ref.state,name=_ref.name,referenceRect=state.rects.reference,popperRect=state.rects.popper,preventedOffsets=state.modifiersData.preventOverflow,referenceOverflow=detectOverflow(state,{elementContext:"reference"}),popperAltOverflow=detectOverflow(state,{altBoundary:!0}),referenceClippingOffsets=getSideOffsets(referenceOverflow,referenceRect),popperEscapeOffsets=getSideOffsets(popperAltOverflow,popperRect,preventedOffsets),isReferenceHidden=isAnySideFullyClipped(referenceClippingOffsets),hasPopperEscaped=isAnySideFullyClipped(popperEscapeOffsets);state.modifiersData[name]={referenceClippingOffsets:referenceClippingOffsets,popperEscapeOffsets:popperEscapeOffsets,isReferenceHidden:isReferenceHidden,hasPopperEscaped:hasPopperEscaped},state.attributes.popper=Object.assign({},state.attributes.popper,{"data-popper-reference-hidden":isReferenceHidden,"data-popper-escaped":hasPopperEscaped})}}]});function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,_setPrototypeOf(subClass,superClass)}var ManagerReferenceNodeContext=react__WEBPACK_IMPORTED_MODULE_35__.createContext(),ManagerReferenceNodeSetterContext=react__WEBPACK_IMPORTED_MODULE_35__.createContext();function Manager(_ref){var children=_ref.children,_React$useState=react__WEBPACK_IMPORTED_MODULE_35__.useState(null),referenceNode=_React$useState[0],setReferenceNode=_React$useState[1],hasUnmounted=react__WEBPACK_IMPORTED_MODULE_35__.useRef(!1);react__WEBPACK_IMPORTED_MODULE_35__.useEffect((function(){return function(){hasUnmounted.current=!0}}),[]);var handleSetReferenceNode=react__WEBPACK_IMPORTED_MODULE_35__.useCallback((function(node){hasUnmounted.current||setReferenceNode(node)}),[]);return react__WEBPACK_IMPORTED_MODULE_35__.createElement(ManagerReferenceNodeContext.Provider,{value:referenceNode},react__WEBPACK_IMPORTED_MODULE_35__.createElement(ManagerReferenceNodeSetterContext.Provider,{value:handleSetReferenceNode},children))}var unwrapArray=function unwrapArray(arg){return Array.isArray(arg)?arg[0]:arg},safeInvoke=function safeInvoke(fn){if("function"==typeof fn){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];return fn.apply(void 0,args)}},setRef$1=function setRef(ref,node){if("function"==typeof ref)return safeInvoke(ref,node);null!=ref&&(ref.current=node)},fromEntries=function fromEntries(entries){return entries.reduce((function(acc,_ref){var key=_ref[0],value=_ref[1];return acc[key]=value,acc}),{})},useIsomorphicLayoutEffect="undefined"!=typeof window&&window.document&&window.document.createElement?react__WEBPACK_IMPORTED_MODULE_35__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_35__.useEffect,hasElementType="undefined"!=typeof Element,hasMap="function"==typeof Map,hasSet="function"==typeof Set,hasArrayBuffer="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function equal(a,b){if(a===b)return!0;if(a&&b&&"object"==_typeof(a)&&"object"==_typeof(b)){if(a.constructor!==b.constructor)return!1;var length,i,keys,it;if(Array.isArray(a)){if((length=a.length)!=b.length)return!1;for(i=length;0!=i--;)if(!equal(a[i],b[i]))return!1;return!0}if(hasMap&&a instanceof Map&&b instanceof Map){if(a.size!==b.size)return!1;for(it=a.entries();!(i=it.next()).done;)if(!b.has(i.value[0]))return!1;for(it=a.entries();!(i=it.next()).done;)if(!equal(i.value[1],b.get(i.value[0])))return!1;return!0}if(hasSet&&a instanceof Set&&b instanceof Set){if(a.size!==b.size)return!1;for(it=a.entries();!(i=it.next()).done;)if(!b.has(i.value[0]))return!1;return!0}if(hasArrayBuffer&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(b)){if((length=a.length)!=b.length)return!1;for(i=length;0!=i--;)if(a[i]!==b[i])return!1;return!0}if(a.constructor===RegExp)return a.source===b.source&&a.flags===b.flags;if(a.valueOf!==Object.prototype.valueOf)return a.valueOf()===b.valueOf();if(a.toString!==Object.prototype.toString)return a.toString()===b.toString();if((length=(keys=Object.keys(a)).length)!==Object.keys(b).length)return!1;for(i=length;0!=i--;)if(!Object.prototype.hasOwnProperty.call(b,keys[i]))return!1;if(hasElementType&&a instanceof Element)return!1;for(i=length;0!=i--;)if(("_owner"!==keys[i]&&"__v"!==keys[i]&&"__o"!==keys[i]||!a.$$typeof)&&!equal(a[keys[i]],b[keys[i]]))return!1;return!0}return a!=a&&b!=b}var reactFastCompare=function isEqual(a,b){try{return equal(a,b)}catch(error){if((error.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw error}},EMPTY_MODIFIERS$1=[],NOOP=function NOOP(){},NOOP_PROMISE=function NOOP_PROMISE(){return Promise.resolve(null)},EMPTY_MODIFIERS=[];function Popper(_ref){var _ref$placement=_ref.placement,placement=void 0===_ref$placement?"bottom":_ref$placement,_ref$strategy=_ref.strategy,strategy=void 0===_ref$strategy?"absolute":_ref$strategy,_ref$modifiers=_ref.modifiers,modifiers=void 0===_ref$modifiers?EMPTY_MODIFIERS:_ref$modifiers,referenceElement=_ref.referenceElement,onFirstUpdate=_ref.onFirstUpdate,innerRef=_ref.innerRef,children=_ref.children,referenceNode=react__WEBPACK_IMPORTED_MODULE_35__.useContext(ManagerReferenceNodeContext),_React$useState=react__WEBPACK_IMPORTED_MODULE_35__.useState(null),popperElement=_React$useState[0],setPopperElement=_React$useState[1],_React$useState2=react__WEBPACK_IMPORTED_MODULE_35__.useState(null),arrowElement=_React$useState2[0],setArrowElement=_React$useState2[1];react__WEBPACK_IMPORTED_MODULE_35__.useEffect((function(){setRef$1(innerRef,popperElement)}),[innerRef,popperElement]);var options=react__WEBPACK_IMPORTED_MODULE_35__.useMemo((function(){return{placement:placement,strategy:strategy,onFirstUpdate:onFirstUpdate,modifiers:[].concat(modifiers,[{name:"arrow",enabled:null!=arrowElement,options:{element:arrowElement}}])}}),[placement,strategy,onFirstUpdate,modifiers,arrowElement]),_usePopper=function usePopper(referenceElement,popperElement,options){void 0===options&&(options={});var prevOptions=react__WEBPACK_IMPORTED_MODULE_35__.useRef(null),optionsWithDefaults={onFirstUpdate:options.onFirstUpdate,placement:options.placement||"bottom",strategy:options.strategy||"absolute",modifiers:options.modifiers||EMPTY_MODIFIERS$1},_React$useState=react__WEBPACK_IMPORTED_MODULE_35__.useState({styles:{popper:{position:optionsWithDefaults.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),state=_React$useState[0],setState=_React$useState[1],updateStateModifier=react__WEBPACK_IMPORTED_MODULE_35__.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function fn(_ref){var state=_ref.state,elements=Object.keys(state.elements);setState({styles:fromEntries(elements.map((function(element){return[element,state.styles[element]||{}]}))),attributes:fromEntries(elements.map((function(element){return[element,state.attributes[element]]})))})},requires:["computeStyles"]}}),[]),popperOptions=react__WEBPACK_IMPORTED_MODULE_35__.useMemo((function(){var newOptions={onFirstUpdate:optionsWithDefaults.onFirstUpdate,placement:optionsWithDefaults.placement,strategy:optionsWithDefaults.strategy,modifiers:[].concat(optionsWithDefaults.modifiers,[updateStateModifier,{name:"applyStyles",enabled:!1}])};return reactFastCompare(prevOptions.current,newOptions)?prevOptions.current||newOptions:(prevOptions.current=newOptions,newOptions)}),[optionsWithDefaults.onFirstUpdate,optionsWithDefaults.placement,optionsWithDefaults.strategy,optionsWithDefaults.modifiers,updateStateModifier]),popperInstanceRef=react__WEBPACK_IMPORTED_MODULE_35__.useRef();return useIsomorphicLayoutEffect((function(){popperInstanceRef.current&&popperInstanceRef.current.setOptions(popperOptions)}),[popperOptions]),useIsomorphicLayoutEffect((function(){if(null!=referenceElement&&null!=popperElement){var popperInstance=(options.createPopper||createPopper)(referenceElement,popperElement,popperOptions);return popperInstanceRef.current=popperInstance,function(){popperInstance.destroy(),popperInstanceRef.current=null}}}),[referenceElement,popperElement,options.createPopper]),{state:popperInstanceRef.current?popperInstanceRef.current.state:null,styles:state.styles,attributes:state.attributes,update:popperInstanceRef.current?popperInstanceRef.current.update:null,forceUpdate:popperInstanceRef.current?popperInstanceRef.current.forceUpdate:null}}(referenceElement||referenceNode,popperElement,options),state=_usePopper.state,styles=_usePopper.styles,forceUpdate=_usePopper.forceUpdate,update=_usePopper.update,childrenProps=react__WEBPACK_IMPORTED_MODULE_35__.useMemo((function(){return{ref:setPopperElement,style:styles.popper,placement:state?state.placement:placement,hasPopperEscaped:state&&state.modifiersData.hide?state.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:state&&state.modifiersData.hide?state.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:styles.arrow,ref:setArrowElement},forceUpdate:forceUpdate||NOOP,update:update||NOOP_PROMISE}}),[setPopperElement,setArrowElement,placement,state,styles,update,forceUpdate]);return unwrapArray(children)(childrenProps)}var warning=function warning(){},warning_1=warning;function Reference(_ref){var children=_ref.children,innerRef=_ref.innerRef,setReferenceNode=react__WEBPACK_IMPORTED_MODULE_35__.useContext(ManagerReferenceNodeSetterContext),refHandler=react__WEBPACK_IMPORTED_MODULE_35__.useCallback((function(node){setRef$1(innerRef,node),safeInvoke(setReferenceNode,node)}),[innerRef,setReferenceNode]);return react__WEBPACK_IMPORTED_MODULE_35__.useEffect((function(){return function(){return setRef$1(innerRef,null)}})),react__WEBPACK_IMPORTED_MODULE_35__.useEffect((function(){warning_1(Boolean(setReferenceNode),"`Reference` should not be used outside of a `Manager` component.")}),[setReferenceNode]),unwrapArray(children)({ref:refHandler})}var TooltipContext=react__WEBPACK_IMPORTED_MODULE_35___default.a.createContext({}),callAll=function callAll(){for(var _len=arguments.length,fns=new Array(_len),_key=0;_key<_len;_key++)fns[_key]=arguments[_key];return function(){for(var _len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++)args[_key2]=arguments[_key2];return fns.forEach((function(fn){return fn&&fn.apply(void 0,args)}))}},canUseDOM=function canUseDOM(){return!("undefined"==typeof window||!window.document||!window.document.createElement)},Tooltip$1=function(_Component){function Tooltip(){for(var _this,_len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return(_this=_Component.call.apply(_Component,[this].concat(args))||this).observer=void 0,_this.tooltipRef=void 0,_this.handleOutsideClick=function(event){if(_this.tooltipRef&&!_this.tooltipRef.contains(event.target)){var parentOutsideClickHandler=_this.context.parentOutsideClickHandler,_this$props=_this.props,hideTooltip=_this$props.hideTooltip;(0,_this$props.clearScheduled)(),hideTooltip(),parentOutsideClickHandler&&parentOutsideClickHandler(event)}},_this.handleOutsideRightClick=function(event){if(_this.tooltipRef&&!_this.tooltipRef.contains(event.target)){var parentOutsideRightClickHandler=_this.context.parentOutsideRightClickHandler,_this$props2=_this.props,hideTooltip=_this$props2.hideTooltip;(0,_this$props2.clearScheduled)(),hideTooltip(),parentOutsideRightClickHandler&&parentOutsideRightClickHandler(event)}},_this.addOutsideClickHandler=function(){document.body.addEventListener("touchend",_this.handleOutsideClick),document.body.addEventListener("click",_this.handleOutsideClick)},_this.removeOutsideClickHandler=function(){document.body.removeEventListener("touchend",_this.handleOutsideClick),document.body.removeEventListener("click",_this.handleOutsideClick)},_this.addOutsideRightClickHandler=function(){return document.body.addEventListener("contextmenu",_this.handleOutsideRightClick)},_this.removeOutsideRightClickHandler=function(){return document.body.removeEventListener("contextmenu",_this.handleOutsideRightClick)},_this.getTooltipRef=function(node){_this.tooltipRef=node,function setRef(ref,node){if("function"==typeof ref)return ref(node);null!=ref&&(ref.current=node)}(_this.props.innerRef,node)},_this.getArrowProps=function(props){return void 0===props&&(props={}),Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.h)({},props,{style:Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.h)({},props.style,_this.props.arrowProps.style)})},_this.getTooltipProps=function(props){return void 0===props&&(props={}),Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.h)({},props,_this.isTriggeredBy("hover")&&{onMouseEnter:callAll(_this.props.clearScheduled,props.onMouseEnter),onMouseLeave:callAll(_this.props.hideTooltip,props.onMouseLeave)},{style:Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.h)({},props.style,_this.props.style)})},_this.contextValue={isParentNoneTriggered:"none"===_this.props.trigger,addParentOutsideClickHandler:_this.addOutsideClickHandler,addParentOutsideRightClickHandler:_this.addOutsideRightClickHandler,parentOutsideClickHandler:_this.handleOutsideClick,parentOutsideRightClickHandler:_this.handleOutsideRightClick,removeParentOutsideClickHandler:_this.removeOutsideClickHandler,removeParentOutsideRightClickHandler:_this.removeOutsideRightClickHandler},_this}_inheritsLoose(Tooltip,_Component);var _proto=Tooltip.prototype;return _proto.componentDidMount=function componentDidMount(){var _this2=this;if((this.observer=new MutationObserver((function(){_this2.props.update()}))).observe(this.tooltipRef,this.props.mutationObserverOptions),this.isTriggeredBy("hover")||this.isTriggeredBy("click")||this.isTriggeredBy("right-click")){var _this$context=this.context,removeParentOutsideClickHandler=_this$context.removeParentOutsideClickHandler,removeParentOutsideRightClickHandler=_this$context.removeParentOutsideRightClickHandler;this.addOutsideClickHandler(),this.addOutsideRightClickHandler(),removeParentOutsideClickHandler&&removeParentOutsideClickHandler(),removeParentOutsideRightClickHandler&&removeParentOutsideRightClickHandler()}},_proto.componentDidUpdate=function componentDidUpdate(){this.props.closeOnReferenceHidden&&this.props.isReferenceHidden&&this.props.hideTooltip()},_proto.componentWillUnmount=function componentWillUnmount(){if(this.observer&&this.observer.disconnect(),this.isTriggeredBy("hover")||this.isTriggeredBy("click")||this.isTriggeredBy("right-click")){var _this$context2=this.context,isParentNoneTriggered=_this$context2.isParentNoneTriggered,addParentOutsideClickHandler=_this$context2.addParentOutsideClickHandler,addParentOutsideRightClickHandler=_this$context2.addParentOutsideRightClickHandler;this.removeOutsideClickHandler(),this.removeOutsideRightClickHandler(),this.handleOutsideClick=void 0,this.handleOutsideRightClick=void 0,!isParentNoneTriggered&&addParentOutsideClickHandler&&addParentOutsideClickHandler(),!isParentNoneTriggered&&addParentOutsideRightClickHandler&&addParentOutsideRightClickHandler()}},_proto.render=function render(){var _this$props3=this.props,arrowProps=_this$props3.arrowProps,placement=_this$props3.placement,tooltip=_this$props3.tooltip;return react__WEBPACK_IMPORTED_MODULE_35___default.a.createElement(TooltipContext.Provider,{value:this.contextValue},tooltip({arrowRef:arrowProps.ref,getArrowProps:this.getArrowProps,getTooltipProps:this.getTooltipProps,placement:placement,tooltipRef:this.getTooltipRef}))},_proto.isTriggeredBy=function isTriggeredBy(event){var trigger=this.props.trigger;return trigger===event||Array.isArray(trigger)&&trigger.includes(event)},Tooltip}(react__WEBPACK_IMPORTED_MODULE_35__.Component);Tooltip$1.contextType=TooltipContext;var TooltipTrigger=function(_Component){function TooltipTrigger(){for(var _this,_len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return(_this=_Component.call.apply(_Component,[this].concat(args))||this).state={tooltipShown:_this.props.defaultTooltipShown},_this.hideTimeout=void 0,_this.showTimeout=void 0,_this.popperOffset=void 0,_this.setTooltipState=function(state){var cb=function cb(){return _this.props.onVisibilityChange(state.tooltipShown)};_this.isControlled()?cb():_this.setState(state,cb)},_this.clearScheduled=function(){clearTimeout(_this.hideTimeout),clearTimeout(_this.showTimeout)},_this.showTooltip=function(_ref){var pageX=_ref.pageX,pageY=_ref.pageY;_this.clearScheduled();var state={tooltipShown:!0};_this.props.followCursor&&(state=Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.h)({},state,{pageX:pageX,pageY:pageY})),_this.showTimeout=window.setTimeout((function(){return _this.setTooltipState(state)}),_this.props.delayShow)},_this.hideTooltip=function(){_this.clearScheduled(),_this.hideTimeout=window.setTimeout((function(){return _this.setTooltipState({tooltipShown:!1})}),_this.props.delayHide)},_this.toggleTooltip=function(_ref2){var pageX=_ref2.pageX,pageY=_ref2.pageY,action=_this.getState()?"hideTooltip":"showTooltip";_this[action]({pageX:pageX,pageY:pageY})},_this.clickToggle=function(event){event.preventDefault();var pageX=event.pageX,pageY=event.pageY,action=_this.props.followCursor?"showTooltip":"toggleTooltip";_this[action]({pageX:pageX,pageY:pageY})},_this.contextMenuToggle=function(event){event.preventDefault();var pageX=event.pageX,pageY=event.pageY,action=_this.props.followCursor?"showTooltip":"toggleTooltip";_this[action]({pageX:pageX,pageY:pageY})},_this.getTriggerProps=function(props){return void 0===props&&(props={}),Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.h)({},props,_this.isTriggeredBy("click")&&{onClick:callAll(_this.clickToggle,props.onClick),onTouchEnd:callAll(_this.clickToggle,props.onTouchEnd)},_this.isTriggeredBy("right-click")&&{onContextMenu:callAll(_this.contextMenuToggle,props.onContextMenu)},_this.isTriggeredBy("hover")&&Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.h)({onMouseEnter:callAll(_this.showTooltip,props.onMouseEnter),onMouseLeave:callAll(_this.hideTooltip,props.onMouseLeave)},_this.props.followCursor&&{onMouseMove:callAll(_this.showTooltip,props.onMouseMove)}),_this.isTriggeredBy("focus")&&{onFocus:callAll(_this.showTooltip,props.onFocus),onBlur:callAll(_this.hideTooltip,props.onBlur)})},_this}_inheritsLoose(TooltipTrigger,_Component);var _proto=TooltipTrigger.prototype;return _proto.componentWillUnmount=function componentWillUnmount(){this.clearScheduled()},_proto.render=function render(){var _this2=this,_this$props=this.props,children=_this$props.children,tooltip=_this$props.tooltip,placement=_this$props.placement,trigger=_this$props.trigger,getTriggerRef=_this$props.getTriggerRef,modifiers=_this$props.modifiers,closeOnReferenceHidden=_this$props.closeOnReferenceHidden,usePortal=_this$props.usePortal,portalContainer=_this$props.portalContainer,followCursor=_this$props.followCursor,getTooltipRef=_this$props.getTooltipRef,mutationObserverOptions=_this$props.mutationObserverOptions,restProps=Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.g)(_this$props,["children","tooltip","placement","trigger","getTriggerRef","modifiers","closeOnReferenceHidden","usePortal","portalContainer","followCursor","getTooltipRef","mutationObserverOptions"]),popper=react__WEBPACK_IMPORTED_MODULE_35___default.a.createElement(Popper,Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.h)({innerRef:getTooltipRef,placement:placement,modifiers:[{name:"followCursor",enabled:followCursor,phase:"main",fn:function fn(data){_this2.popperOffset=data.state.rects.popper}}].concat(modifiers)},restProps),(function(_ref3){var ref=_ref3.ref,style=_ref3.style,placement=_ref3.placement,arrowProps=_ref3.arrowProps,isReferenceHidden=_ref3.isReferenceHidden,update=_ref3.update;if(followCursor&&_this2.popperOffset){var _this2$state=_this2.state,pageX=_this2$state.pageX,pageY=_this2$state.pageY,_this2$popperOffset=_this2.popperOffset,width=_this2$popperOffset.width,height=_this2$popperOffset.height,x=pageX+width>window.pageXOffset+document.body.offsetWidth?pageX-width:pageX,y=pageY+height>window.pageYOffset+document.body.offsetHeight?pageY-height:pageY;style.transform="translate3d("+x+"px, "+y+"px, 0"}return react__WEBPACK_IMPORTED_MODULE_35___default.a.createElement(Tooltip$1,Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.h)({arrowProps:arrowProps,closeOnReferenceHidden:closeOnReferenceHidden,isReferenceHidden:isReferenceHidden,placement:placement,update:update,style:style,tooltip:tooltip,trigger:trigger,mutationObserverOptions:mutationObserverOptions},{clearScheduled:_this2.clearScheduled,hideTooltip:_this2.hideTooltip,innerRef:ref}))}));return react__WEBPACK_IMPORTED_MODULE_35___default.a.createElement(Manager,null,react__WEBPACK_IMPORTED_MODULE_35___default.a.createElement(Reference,{innerRef:getTriggerRef},(function(_ref4){var ref=_ref4.ref;return children({getTriggerProps:_this2.getTriggerProps,triggerRef:ref})})),this.getState()&&(usePortal?Object(react_dom__WEBPACK_IMPORTED_MODULE_37__.createPortal)(popper,portalContainer):popper))},_proto.isControlled=function isControlled(){return void 0!==this.props.tooltipShown},_proto.getState=function getState(){return this.isControlled()?this.props.tooltipShown:this.state.tooltipShown},_proto.isTriggeredBy=function isTriggeredBy(event){var trigger=this.props.trigger;return trigger===event||Array.isArray(trigger)&&trigger.includes(event)},TooltipTrigger}(react__WEBPACK_IMPORTED_MODULE_35__.Component);TooltipTrigger.defaultProps={closeOnReferenceHidden:!0,defaultTooltipShown:!1,delayHide:0,delayShow:0,followCursor:!1,onVisibilityChange:function noop(){},placement:"right",portalContainer:canUseDOM()?document.body:null,trigger:"hover",usePortal:canUseDOM(),mutationObserverOptions:{childList:!0,subtree:!0},modifiers:[]};var TooltipTrigger$1=TooltipTrigger,match=memoizerific__WEBPACK_IMPORTED_MODULE_38___default()(1e3)((function(requests,actual,value){var fallback=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return actual.split("-")[0]===requests?value:fallback})),Arrow=_storybook_theming__WEBPACK_IMPORTED_MODULE_36__.l.div({position:"absolute",borderStyle:"solid"},(function(_ref6){var placement=_ref6.placement,x=0,y=0;switch(!0){case placement.startsWith("left")||placement.startsWith("right"):y=8;break;case placement.startsWith("top")||placement.startsWith("bottom"):x=8}return{transform:"translate3d(".concat(x,"px, ").concat(y,"px, 0px)")}}),(function(_ref7){var theme=_ref7.theme,color=_ref7.color,placement=_ref7.placement;return{bottom:"".concat(match("top",placement,-8,"auto"),"px"),top:"".concat(match("bottom",placement,-8,"auto"),"px"),right:"".concat(match("left",placement,-8,"auto"),"px"),left:"".concat(match("right",placement,-8,"auto"),"px"),borderBottomWidth:"".concat(match("top",placement,"0",8),"px"),borderTopWidth:"".concat(match("bottom",placement,"0",8),"px"),borderRightWidth:"".concat(match("left",placement,"0",8),"px"),borderLeftWidth:"".concat(match("right",placement,"0",8),"px"),borderTopColor:match("top",placement,theme.color[color]||color||"light"===theme.base?Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_36__.k)(theme.background.app):Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_36__.g)(theme.background.app),"transparent"),borderBottomColor:match("bottom",placement,theme.color[color]||color||"light"===theme.base?Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_36__.k)(theme.background.app):Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_36__.g)(theme.background.app),"transparent"),borderLeftColor:match("left",placement,theme.color[color]||color||"light"===theme.base?Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_36__.k)(theme.background.app):Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_36__.g)(theme.background.app),"transparent"),borderRightColor:match("right",placement,theme.color[color]||color||"light"===theme.base?Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_36__.k)(theme.background.app):Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_36__.g)(theme.background.app),"transparent")}})),Wrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_36__.l.div((function(_ref8){return{display:_ref8.hidden?"none":"inline-block",zIndex:2147483647}}),(function(_ref9){var theme=_ref9.theme,color=_ref9.color;return _ref9.hasChrome?{background:theme.color[color]||color||"light"===theme.base?Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_36__.k)(theme.background.app):Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_36__.g)(theme.background.app),filter:"\n drop-shadow(0px 5px 5px rgba(0,0,0,0.05))\n drop-shadow(0 1px 3px rgba(0,0,0,0.1))\n ",borderRadius:2*theme.appBorderRadius,fontSize:theme.typography.size.s1}:{}})),Tooltip=function Tooltip(_a){var placement=_a.placement,hasChrome=_a.hasChrome,children=_a.children,arrowProps=_a.arrowProps,tooltipRef=_a.tooltipRef,arrowRef=_a.arrowRef,color=_a.color,props=Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.D)(_a,["placement","hasChrome","children","arrowProps","tooltipRef","arrowRef","color"]);return react__WEBPACK_IMPORTED_MODULE_35___default.a.createElement(Wrapper,Object.assign({hasChrome:hasChrome,placement:placement,ref:tooltipRef},props,{color:color}),hasChrome&&react__WEBPACK_IMPORTED_MODULE_35___default.a.createElement(Arrow,Object.assign({placement:placement,ref:arrowRef},arrowProps,{color:color})),children)};Tooltip.defaultProps={color:void 0,arrowRef:void 0,tooltipRef:void 0,hasChrome:!0,placement:"top",arrowProps:{}};var document$1=_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.W.document,TargetContainer=_storybook_theming__WEBPACK_IMPORTED_MODULE_36__.l.div(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n display: inline-block;\n cursor: ",";\n"])),(function(props){return"hover"===props.mode?"default":"pointer"})),TargetSvgContainer=_storybook_theming__WEBPACK_IMPORTED_MODULE_36__.l.g(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n cursor: ",";\n"])),(function(props){return"hover"===props.mode?"default":"pointer"})),WithTooltipPure=function WithTooltipPure(_a){var svg=_a.svg,trigger=_a.trigger,placement=(_a.closeOnClick,_a.placement),modifiers=_a.modifiers,hasChrome=_a.hasChrome,_tooltip=_a.tooltip,children=_a.children,tooltipShown=_a.tooltipShown,onVisibilityChange=_a.onVisibilityChange,props=Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.D)(_a,["svg","trigger","closeOnClick","placement","modifiers","hasChrome","tooltip","children","tooltipShown","onVisibilityChange"]),Container=svg?TargetSvgContainer:TargetContainer;return react__WEBPACK_IMPORTED_MODULE_35___default.a.createElement(TooltipTrigger$1,{placement:placement,trigger:trigger,modifiers:modifiers,tooltipShown:tooltipShown,onVisibilityChange:onVisibilityChange,tooltip:function tooltip(_ref10){var getTooltipProps=_ref10.getTooltipProps,getArrowProps=_ref10.getArrowProps,tooltipRef=_ref10.tooltipRef,arrowRef=_ref10.arrowRef,tooltipPlacement=_ref10.placement;return react__WEBPACK_IMPORTED_MODULE_35___default.a.createElement(Tooltip,Object.assign({hasChrome:hasChrome,placement:tooltipPlacement,tooltipRef:tooltipRef,arrowRef:arrowRef,arrowProps:getArrowProps()},getTooltipProps()),"function"==typeof _tooltip?_tooltip({onHide:function onHide(){return onVisibilityChange(!1)}}):_tooltip)}},(function(_ref11){var getTriggerProps=_ref11.getTriggerProps,triggerRef=_ref11.triggerRef;return react__WEBPACK_IMPORTED_MODULE_35___default.a.createElement(Container,Object.assign({ref:triggerRef},getTriggerProps(),props),children)}))};WithTooltipPure.defaultProps={svg:!1,trigger:"hover",closeOnClick:!1,placement:"top",modifiers:[{name:"preventOverflow",options:{padding:8}},{name:"offset",options:{offset:[8,8]}},{name:"arrow",options:{padding:8}}],hasChrome:!0,tooltipShown:!1};var WithToolTipState=function WithToolTipState(_a){var startOpen=_a.startOpen,onChange=_a.onVisibilityChange,rest=Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.D)(_a,["startOpen","onVisibilityChange"]),_useState2=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_35__.useState)(startOpen||!1),2),tooltipShown=_useState2[0],setTooltipShown=_useState2[1],onVisibilityChange=Object(react__WEBPACK_IMPORTED_MODULE_35__.useCallback)((function(visibility){onChange&&!1===onChange(visibility)||setTooltipShown(visibility)}),[onChange]);return Object(react__WEBPACK_IMPORTED_MODULE_35__.useEffect)((function(){var hide=function hide(){return onVisibilityChange(!1)};document$1.addEventListener("keydown",hide,!1);var iframes=Array.from(document$1.getElementsByTagName("iframe")),unbinders=[];return iframes.forEach((function(iframe){var bind=function bind(){try{iframe.contentWindow.document&&(iframe.contentWindow.document.addEventListener("click",hide),unbinders.push((function(){try{iframe.contentWindow.document.removeEventListener("click",hide)}catch(e){}})))}catch(e){}};bind(),iframe.addEventListener("load",bind),unbinders.push((function(){iframe.removeEventListener("load",bind)}))})),function(){document$1.removeEventListener("keydown",hide),unbinders.forEach((function(unbind){unbind()}))}})),react__WEBPACK_IMPORTED_MODULE_35___default.a.createElement(WithTooltipPure,Object.assign({},rest,{tooltipShown:tooltipShown,onVisibilityChange:onVisibilityChange}))}}}]); \ No newline at end of file diff --git a/1.df4e5dad.iframe.bundle.js b/1.df4e5dad.iframe.bundle.js new file mode 100644 index 000000000..0f446b168 --- /dev/null +++ b/1.df4e5dad.iframe.bundle.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"./node_modules/core-js/internals/array-buffer-view-core.js":function(module,exports,__webpack_require__){"use strict";var NAME,Constructor,Prototype,NATIVE_ARRAY_BUFFER=__webpack_require__("./node_modules/core-js/internals/array-buffer-basic-detection.js"),DESCRIPTORS=__webpack_require__("./node_modules/core-js/internals/descriptors.js"),global=__webpack_require__("./node_modules/core-js/internals/global.js"),isCallable=__webpack_require__("./node_modules/core-js/internals/is-callable.js"),isObject=__webpack_require__("./node_modules/core-js/internals/is-object.js"),hasOwn=__webpack_require__("./node_modules/core-js/internals/has-own-property.js"),classof=__webpack_require__("./node_modules/core-js/internals/classof.js"),tryToString=__webpack_require__("./node_modules/core-js/internals/try-to-string.js"),createNonEnumerableProperty=__webpack_require__("./node_modules/core-js/internals/create-non-enumerable-property.js"),defineBuiltIn=__webpack_require__("./node_modules/core-js/internals/define-built-in.js"),defineBuiltInAccessor=__webpack_require__("./node_modules/core-js/internals/define-built-in-accessor.js"),isPrototypeOf=__webpack_require__("./node_modules/core-js/internals/object-is-prototype-of.js"),getPrototypeOf=__webpack_require__("./node_modules/core-js/internals/object-get-prototype-of.js"),setPrototypeOf=__webpack_require__("./node_modules/core-js/internals/object-set-prototype-of.js"),wellKnownSymbol=__webpack_require__("./node_modules/core-js/internals/well-known-symbol.js"),uid=__webpack_require__("./node_modules/core-js/internals/uid.js"),InternalStateModule=__webpack_require__("./node_modules/core-js/internals/internal-state.js"),enforceInternalState=InternalStateModule.enforce,getInternalState=InternalStateModule.get,Int8Array=global.Int8Array,Int8ArrayPrototype=Int8Array&&Int8Array.prototype,Uint8ClampedArray=global.Uint8ClampedArray,Uint8ClampedArrayPrototype=Uint8ClampedArray&&Uint8ClampedArray.prototype,TypedArray=Int8Array&&getPrototypeOf(Int8Array),TypedArrayPrototype=Int8ArrayPrototype&&getPrototypeOf(Int8ArrayPrototype),ObjectPrototype=Object.prototype,TypeError=global.TypeError,TO_STRING_TAG=wellKnownSymbol("toStringTag"),TYPED_ARRAY_TAG=uid("TYPED_ARRAY_TAG"),NATIVE_ARRAY_BUFFER_VIEWS=NATIVE_ARRAY_BUFFER&&!!setPrototypeOf&&"Opera"!==classof(global.opera),TYPED_ARRAY_TAG_REQUIRED=!1,TypedArrayConstructorsList={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},BigIntArrayConstructorsList={BigInt64Array:8,BigUint64Array:8},getTypedArrayConstructor=function(it){var proto=getPrototypeOf(it);if(isObject(proto)){var state=getInternalState(proto);return state&&hasOwn(state,"TypedArrayConstructor")?state.TypedArrayConstructor:getTypedArrayConstructor(proto)}},isTypedArray=function(it){if(!isObject(it))return!1;var klass=classof(it);return hasOwn(TypedArrayConstructorsList,klass)||hasOwn(BigIntArrayConstructorsList,klass)};for(NAME in TypedArrayConstructorsList)(Prototype=(Constructor=global[NAME])&&Constructor.prototype)?enforceInternalState(Prototype).TypedArrayConstructor=Constructor:NATIVE_ARRAY_BUFFER_VIEWS=!1;for(NAME in BigIntArrayConstructorsList)(Prototype=(Constructor=global[NAME])&&Constructor.prototype)&&(enforceInternalState(Prototype).TypedArrayConstructor=Constructor);if((!NATIVE_ARRAY_BUFFER_VIEWS||!isCallable(TypedArray)||TypedArray===Function.prototype)&&(TypedArray=function TypedArray(){throw new TypeError("Incorrect invocation")},NATIVE_ARRAY_BUFFER_VIEWS))for(NAME in TypedArrayConstructorsList)global[NAME]&&setPrototypeOf(global[NAME],TypedArray);if((!NATIVE_ARRAY_BUFFER_VIEWS||!TypedArrayPrototype||TypedArrayPrototype===ObjectPrototype)&&(TypedArrayPrototype=TypedArray.prototype,NATIVE_ARRAY_BUFFER_VIEWS))for(NAME in TypedArrayConstructorsList)global[NAME]&&setPrototypeOf(global[NAME].prototype,TypedArrayPrototype);if(NATIVE_ARRAY_BUFFER_VIEWS&&getPrototypeOf(Uint8ClampedArrayPrototype)!==TypedArrayPrototype&&setPrototypeOf(Uint8ClampedArrayPrototype,TypedArrayPrototype),DESCRIPTORS&&!hasOwn(TypedArrayPrototype,TO_STRING_TAG))for(NAME in TYPED_ARRAY_TAG_REQUIRED=!0,defineBuiltInAccessor(TypedArrayPrototype,TO_STRING_TAG,{configurable:!0,get:function(){return isObject(this)?this[TYPED_ARRAY_TAG]:void 0}}),TypedArrayConstructorsList)global[NAME]&&createNonEnumerableProperty(global[NAME],TYPED_ARRAY_TAG,NAME);module.exports={NATIVE_ARRAY_BUFFER_VIEWS:NATIVE_ARRAY_BUFFER_VIEWS,TYPED_ARRAY_TAG:TYPED_ARRAY_TAG_REQUIRED&&TYPED_ARRAY_TAG,aTypedArray:function(it){if(isTypedArray(it))return it;throw new TypeError("Target is not a typed array")},aTypedArrayConstructor:function(C){if(isCallable(C)&&(!setPrototypeOf||isPrototypeOf(TypedArray,C)))return C;throw new TypeError(tryToString(C)+" is not a typed array constructor")},exportTypedArrayMethod:function(KEY,property,forced,options){if(DESCRIPTORS){if(forced)for(var ARRAY in TypedArrayConstructorsList){var TypedArrayConstructor=global[ARRAY];if(TypedArrayConstructor&&hasOwn(TypedArrayConstructor.prototype,KEY))try{delete TypedArrayConstructor.prototype[KEY]}catch(error){try{TypedArrayConstructor.prototype[KEY]=property}catch(error2){}}}TypedArrayPrototype[KEY]&&!forced||defineBuiltIn(TypedArrayPrototype,KEY,forced?property:NATIVE_ARRAY_BUFFER_VIEWS&&Int8ArrayPrototype[KEY]||property,options)}},exportTypedArrayStaticMethod:function(KEY,property,forced){var ARRAY,TypedArrayConstructor;if(DESCRIPTORS){if(setPrototypeOf){if(forced)for(ARRAY in TypedArrayConstructorsList)if((TypedArrayConstructor=global[ARRAY])&&hasOwn(TypedArrayConstructor,KEY))try{delete TypedArrayConstructor[KEY]}catch(error){}if(TypedArray[KEY]&&!forced)return;try{return defineBuiltIn(TypedArray,KEY,forced?property:NATIVE_ARRAY_BUFFER_VIEWS&&TypedArray[KEY]||property)}catch(error){}}for(ARRAY in TypedArrayConstructorsList)!(TypedArrayConstructor=global[ARRAY])||TypedArrayConstructor[KEY]&&!forced||defineBuiltIn(TypedArrayConstructor,KEY,property)}},getTypedArrayConstructor:getTypedArrayConstructor,isView:function isView(it){if(!isObject(it))return!1;var klass=classof(it);return"DataView"===klass||hasOwn(TypedArrayConstructorsList,klass)||hasOwn(BigIntArrayConstructorsList,klass)},isTypedArray:isTypedArray,TypedArray:TypedArray,TypedArrayPrototype:TypedArrayPrototype}},"./node_modules/core-js/internals/array-copy-within.js":function(module,exports,__webpack_require__){"use strict";var toObject=__webpack_require__("./node_modules/core-js/internals/to-object.js"),toAbsoluteIndex=__webpack_require__("./node_modules/core-js/internals/to-absolute-index.js"),lengthOfArrayLike=__webpack_require__("./node_modules/core-js/internals/length-of-array-like.js"),deletePropertyOrThrow=__webpack_require__("./node_modules/core-js/internals/delete-property-or-throw.js"),min=Math.min;module.exports=[].copyWithin||function copyWithin(target,start){var O=toObject(this),len=lengthOfArrayLike(O),to=toAbsoluteIndex(target,len),from=toAbsoluteIndex(start,len),end=arguments.length>2?arguments[2]:void 0,count=min((void 0===end?len:toAbsoluteIndex(end,len))-from,len-to),inc=1;for(from0;)from in O?O[to]=O[from]:deletePropertyOrThrow(O,to),to+=inc,from+=inc;return O}},"./node_modules/core-js/internals/array-from-constructor-and-list.js":function(module,exports,__webpack_require__){"use strict";var lengthOfArrayLike=__webpack_require__("./node_modules/core-js/internals/length-of-array-like.js");module.exports=function(Constructor,list,$length){for(var index=0,length=arguments.length>2?$length:lengthOfArrayLike(list),result=new Constructor(length);length>index;)result[index]=list[index++];return result}},"./node_modules/core-js/internals/array-last-index-of.js":function(module,exports,__webpack_require__){"use strict";var apply=__webpack_require__("./node_modules/core-js/internals/function-apply.js"),toIndexedObject=__webpack_require__("./node_modules/core-js/internals/to-indexed-object.js"),toIntegerOrInfinity=__webpack_require__("./node_modules/core-js/internals/to-integer-or-infinity.js"),lengthOfArrayLike=__webpack_require__("./node_modules/core-js/internals/length-of-array-like.js"),arrayMethodIsStrict=__webpack_require__("./node_modules/core-js/internals/array-method-is-strict.js"),min=Math.min,$lastIndexOf=[].lastIndexOf,NEGATIVE_ZERO=!!$lastIndexOf&&1/[1].lastIndexOf(1,-0)<0,STRICT_METHOD=arrayMethodIsStrict("lastIndexOf"),FORCED=NEGATIVE_ZERO||!STRICT_METHOD;module.exports=FORCED?function lastIndexOf(searchElement){if(NEGATIVE_ZERO)return apply($lastIndexOf,this,arguments)||0;var O=toIndexedObject(this),length=lengthOfArrayLike(O);if(0===length)return-1;var index=length-1;for(arguments.length>1&&(index=min(index,toIntegerOrInfinity(arguments[1]))),index<0&&(index=length+index);index>=0;index--)if(index in O&&O[index]===searchElement)return index||0;return-1}:$lastIndexOf},"./node_modules/core-js/internals/array-reduce.js":function(module,exports,__webpack_require__){"use strict";var aCallable=__webpack_require__("./node_modules/core-js/internals/a-callable.js"),toObject=__webpack_require__("./node_modules/core-js/internals/to-object.js"),IndexedObject=__webpack_require__("./node_modules/core-js/internals/indexed-object.js"),lengthOfArrayLike=__webpack_require__("./node_modules/core-js/internals/length-of-array-like.js"),$TypeError=TypeError,REDUCE_EMPTY="Reduce of empty array with no initial value",createMethod=function(IS_RIGHT){return function(that,callbackfn,argumentsLength,memo){var O=toObject(that),self=IndexedObject(O),length=lengthOfArrayLike(O);if(aCallable(callbackfn),0===length&&argumentsLength<2)throw new $TypeError(REDUCE_EMPTY);var index=IS_RIGHT?length-1:0,i=IS_RIGHT?-1:1;if(argumentsLength<2)for(;;){if(index in self){memo=self[index],index+=i;break}if(index+=i,IS_RIGHT?index<0:length<=index)throw new $TypeError(REDUCE_EMPTY)}for(;IS_RIGHT?index>=0:length>index;index+=i)index in self&&(memo=callbackfn(memo,self[index],index,O));return memo}};module.exports={left:createMethod(!1),right:createMethod(!0)}},"./node_modules/core-js/internals/is-big-int-array.js":function(module,exports,__webpack_require__){"use strict";var classof=__webpack_require__("./node_modules/core-js/internals/classof.js");module.exports=function(it){var klass=classof(it);return"BigInt64Array"===klass||"BigUint64Array"===klass}},"./node_modules/core-js/internals/to-big-int.js":function(module,exports,__webpack_require__){"use strict";var toPrimitive=__webpack_require__("./node_modules/core-js/internals/to-primitive.js"),$TypeError=TypeError;module.exports=function(argument){var prim=toPrimitive(argument,"number");if("number"==typeof prim)throw new $TypeError("Can't convert number to bigint");return BigInt(prim)}},"./node_modules/core-js/internals/to-offset.js":function(module,exports,__webpack_require__){"use strict";var toPositiveInteger=__webpack_require__("./node_modules/core-js/internals/to-positive-integer.js"),$RangeError=RangeError;module.exports=function(it,BYTES){var offset=toPositiveInteger(it);if(offset%BYTES)throw new $RangeError("Wrong offset");return offset}},"./node_modules/core-js/internals/to-positive-integer.js":function(module,exports,__webpack_require__){"use strict";var toIntegerOrInfinity=__webpack_require__("./node_modules/core-js/internals/to-integer-or-infinity.js"),$RangeError=RangeError;module.exports=function(it){var result=toIntegerOrInfinity(it);if(result<0)throw new $RangeError("The argument can't be less than 0");return result}},"./node_modules/core-js/internals/to-uint8-clamped.js":function(module,exports,__webpack_require__){"use strict";var round=Math.round;module.exports=function(it){var value=round(it);return value<0?0:value>255?255:255&value}},"./node_modules/core-js/internals/typed-array-constructor.js":function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__("./node_modules/core-js/internals/export.js"),global=__webpack_require__("./node_modules/core-js/internals/global.js"),call=__webpack_require__("./node_modules/core-js/internals/function-call.js"),DESCRIPTORS=__webpack_require__("./node_modules/core-js/internals/descriptors.js"),TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS=__webpack_require__("./node_modules/core-js/internals/typed-array-constructors-require-wrappers.js"),ArrayBufferViewCore=__webpack_require__("./node_modules/core-js/internals/array-buffer-view-core.js"),ArrayBufferModule=__webpack_require__("./node_modules/core-js/internals/array-buffer.js"),anInstance=__webpack_require__("./node_modules/core-js/internals/an-instance.js"),createPropertyDescriptor=__webpack_require__("./node_modules/core-js/internals/create-property-descriptor.js"),createNonEnumerableProperty=__webpack_require__("./node_modules/core-js/internals/create-non-enumerable-property.js"),isIntegralNumber=__webpack_require__("./node_modules/core-js/internals/is-integral-number.js"),toLength=__webpack_require__("./node_modules/core-js/internals/to-length.js"),toIndex=__webpack_require__("./node_modules/core-js/internals/to-index.js"),toOffset=__webpack_require__("./node_modules/core-js/internals/to-offset.js"),toUint8Clamped=__webpack_require__("./node_modules/core-js/internals/to-uint8-clamped.js"),toPropertyKey=__webpack_require__("./node_modules/core-js/internals/to-property-key.js"),hasOwn=__webpack_require__("./node_modules/core-js/internals/has-own-property.js"),classof=__webpack_require__("./node_modules/core-js/internals/classof.js"),isObject=__webpack_require__("./node_modules/core-js/internals/is-object.js"),isSymbol=__webpack_require__("./node_modules/core-js/internals/is-symbol.js"),create=__webpack_require__("./node_modules/core-js/internals/object-create.js"),isPrototypeOf=__webpack_require__("./node_modules/core-js/internals/object-is-prototype-of.js"),setPrototypeOf=__webpack_require__("./node_modules/core-js/internals/object-set-prototype-of.js"),getOwnPropertyNames=__webpack_require__("./node_modules/core-js/internals/object-get-own-property-names.js").f,typedArrayFrom=__webpack_require__("./node_modules/core-js/internals/typed-array-from.js"),forEach=__webpack_require__("./node_modules/core-js/internals/array-iteration.js").forEach,setSpecies=__webpack_require__("./node_modules/core-js/internals/set-species.js"),defineBuiltInAccessor=__webpack_require__("./node_modules/core-js/internals/define-built-in-accessor.js"),definePropertyModule=__webpack_require__("./node_modules/core-js/internals/object-define-property.js"),getOwnPropertyDescriptorModule=__webpack_require__("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),arrayFromConstructorAndList=__webpack_require__("./node_modules/core-js/internals/array-from-constructor-and-list.js"),InternalStateModule=__webpack_require__("./node_modules/core-js/internals/internal-state.js"),inheritIfRequired=__webpack_require__("./node_modules/core-js/internals/inherit-if-required.js"),getInternalState=InternalStateModule.get,setInternalState=InternalStateModule.set,enforceInternalState=InternalStateModule.enforce,nativeDefineProperty=definePropertyModule.f,nativeGetOwnPropertyDescriptor=getOwnPropertyDescriptorModule.f,RangeError=global.RangeError,ArrayBuffer=ArrayBufferModule.ArrayBuffer,ArrayBufferPrototype=ArrayBuffer.prototype,DataView=ArrayBufferModule.DataView,NATIVE_ARRAY_BUFFER_VIEWS=ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS,TYPED_ARRAY_TAG=ArrayBufferViewCore.TYPED_ARRAY_TAG,TypedArray=ArrayBufferViewCore.TypedArray,TypedArrayPrototype=ArrayBufferViewCore.TypedArrayPrototype,isTypedArray=ArrayBufferViewCore.isTypedArray,addGetter=function(it,key){defineBuiltInAccessor(it,key,{configurable:!0,get:function(){return getInternalState(this)[key]}})},isArrayBuffer=function(it){var klass;return isPrototypeOf(ArrayBufferPrototype,it)||"ArrayBuffer"===(klass=classof(it))||"SharedArrayBuffer"===klass},isTypedArrayIndex=function(target,key){return isTypedArray(target)&&!isSymbol(key)&&key in target&&isIntegralNumber(+key)&&key>=0},wrappedGetOwnPropertyDescriptor=function getOwnPropertyDescriptor(target,key){return key=toPropertyKey(key),isTypedArrayIndex(target,key)?createPropertyDescriptor(2,target[key]):nativeGetOwnPropertyDescriptor(target,key)},wrappedDefineProperty=function defineProperty(target,key,descriptor){return key=toPropertyKey(key),!(isTypedArrayIndex(target,key)&&isObject(descriptor)&&hasOwn(descriptor,"value"))||hasOwn(descriptor,"get")||hasOwn(descriptor,"set")||descriptor.configurable||hasOwn(descriptor,"writable")&&!descriptor.writable||hasOwn(descriptor,"enumerable")&&!descriptor.enumerable?nativeDefineProperty(target,key,descriptor):(target[key]=descriptor.value,target)};DESCRIPTORS?(NATIVE_ARRAY_BUFFER_VIEWS||(getOwnPropertyDescriptorModule.f=wrappedGetOwnPropertyDescriptor,definePropertyModule.f=wrappedDefineProperty,addGetter(TypedArrayPrototype,"buffer"),addGetter(TypedArrayPrototype,"byteOffset"),addGetter(TypedArrayPrototype,"byteLength"),addGetter(TypedArrayPrototype,"length")),$({target:"Object",stat:!0,forced:!NATIVE_ARRAY_BUFFER_VIEWS},{getOwnPropertyDescriptor:wrappedGetOwnPropertyDescriptor,defineProperty:wrappedDefineProperty}),module.exports=function(TYPE,wrapper,CLAMPED){var BYTES=TYPE.match(/\d+/)[0]/8,CONSTRUCTOR_NAME=TYPE+(CLAMPED?"Clamped":"")+"Array",GETTER="get"+TYPE,SETTER="set"+TYPE,NativeTypedArrayConstructor=global[CONSTRUCTOR_NAME],TypedArrayConstructor=NativeTypedArrayConstructor,TypedArrayConstructorPrototype=TypedArrayConstructor&&TypedArrayConstructor.prototype,exported={},addElement=function(that,index){nativeDefineProperty(that,index,{get:function(){return function(that,index){var data=getInternalState(that);return data.view[GETTER](index*BYTES+data.byteOffset,!0)}(this,index)},set:function(value){return function(that,index,value){var data=getInternalState(that);data.view[SETTER](index*BYTES+data.byteOffset,CLAMPED?toUint8Clamped(value):value,!0)}(this,index,value)},enumerable:!0})};NATIVE_ARRAY_BUFFER_VIEWS?TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS&&(TypedArrayConstructor=wrapper((function(dummy,data,typedArrayOffset,$length){return anInstance(dummy,TypedArrayConstructorPrototype),inheritIfRequired(isObject(data)?isArrayBuffer(data)?void 0!==$length?new NativeTypedArrayConstructor(data,toOffset(typedArrayOffset,BYTES),$length):void 0!==typedArrayOffset?new NativeTypedArrayConstructor(data,toOffset(typedArrayOffset,BYTES)):new NativeTypedArrayConstructor(data):isTypedArray(data)?arrayFromConstructorAndList(TypedArrayConstructor,data):call(typedArrayFrom,TypedArrayConstructor,data):new NativeTypedArrayConstructor(toIndex(data)),dummy,TypedArrayConstructor)})),setPrototypeOf&&setPrototypeOf(TypedArrayConstructor,TypedArray),forEach(getOwnPropertyNames(NativeTypedArrayConstructor),(function(key){key in TypedArrayConstructor||createNonEnumerableProperty(TypedArrayConstructor,key,NativeTypedArrayConstructor[key])})),TypedArrayConstructor.prototype=TypedArrayConstructorPrototype):(TypedArrayConstructor=wrapper((function(that,data,offset,$length){anInstance(that,TypedArrayConstructorPrototype);var buffer,byteLength,length,index=0,byteOffset=0;if(isObject(data)){if(!isArrayBuffer(data))return isTypedArray(data)?arrayFromConstructorAndList(TypedArrayConstructor,data):call(typedArrayFrom,TypedArrayConstructor,data);buffer=data,byteOffset=toOffset(offset,BYTES);var $len=data.byteLength;if(void 0===$length){if($len%BYTES)throw new RangeError("Wrong length");if((byteLength=$len-byteOffset)<0)throw new RangeError("Wrong length")}else if((byteLength=toLength($length)*BYTES)+byteOffset>$len)throw new RangeError("Wrong length");length=byteLength/BYTES}else length=toIndex(data),buffer=new ArrayBuffer(byteLength=length*BYTES);for(setInternalState(that,{buffer:buffer,byteOffset:byteOffset,byteLength:byteLength,length:length,view:new DataView(buffer)});index1?arguments[1]:void 0,mapping=void 0!==mapfn,iteratorMethod=getIteratorMethod(O);if(iteratorMethod&&!isArrayIteratorMethod(iteratorMethod))for(next=(iterator=getIterator(O,iteratorMethod)).next,O=[];!(step=call(next,iterator)).done;)O.push(step.value);for(mapping&&argumentsLength>2&&(mapfn=bind(mapfn,arguments[2])),length=lengthOfArrayLike(O),result=new(aTypedArrayConstructor(C))(length),thisIsBigIntArray=isBigIntArray(result),i=0;length>i;i++)value=mapping?mapfn(O[i],i):O[i],result[i]=thisIsBigIntArray?toBigInt(value):+value;return result}},"./node_modules/core-js/internals/typed-array-species-constructor.js":function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__("./node_modules/core-js/internals/array-buffer-view-core.js"),speciesConstructor=__webpack_require__("./node_modules/core-js/internals/species-constructor.js"),aTypedArrayConstructor=ArrayBufferViewCore.aTypedArrayConstructor,getTypedArrayConstructor=ArrayBufferViewCore.getTypedArrayConstructor;module.exports=function(originalArray){return aTypedArrayConstructor(speciesConstructor(originalArray,getTypedArrayConstructor(originalArray)))}},"./node_modules/core-js/modules/es.regexp.flags.js":function(module,exports,__webpack_require__){"use strict";var global=__webpack_require__("./node_modules/core-js/internals/global.js"),DESCRIPTORS=__webpack_require__("./node_modules/core-js/internals/descriptors.js"),defineBuiltInAccessor=__webpack_require__("./node_modules/core-js/internals/define-built-in-accessor.js"),regExpFlags=__webpack_require__("./node_modules/core-js/internals/regexp-flags.js"),fails=__webpack_require__("./node_modules/core-js/internals/fails.js"),RegExp=global.RegExp,RegExpPrototype=RegExp.prototype;DESCRIPTORS&&fails((function(){var INDICES_SUPPORT=!0;try{RegExp(".","d")}catch(error){INDICES_SUPPORT=!1}var O={},calls="",expected=INDICES_SUPPORT?"dgimsy":"gimsy",addGetter=function(key,chr){Object.defineProperty(O,key,{get:function(){return calls+=chr,!0}})},pairs={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var key in INDICES_SUPPORT&&(pairs.hasIndices="d"),pairs)addGetter(key,pairs[key]);return Object.getOwnPropertyDescriptor(RegExpPrototype,"flags").get.call(O)!==expected||calls!==expected}))&&defineBuiltInAccessor(RegExpPrototype,"flags",{configurable:!0,get:regExpFlags})},"./node_modules/core-js/modules/es.typed-array.copy-within.js":function(module,exports,__webpack_require__){"use strict";var uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),ArrayBufferViewCore=__webpack_require__("./node_modules/core-js/internals/array-buffer-view-core.js"),u$ArrayCopyWithin=uncurryThis(__webpack_require__("./node_modules/core-js/internals/array-copy-within.js")),aTypedArray=ArrayBufferViewCore.aTypedArray;(0,ArrayBufferViewCore.exportTypedArrayMethod)("copyWithin",(function copyWithin(target,start){return u$ArrayCopyWithin(aTypedArray(this),target,start,arguments.length>2?arguments[2]:void 0)}))},"./node_modules/core-js/modules/es.typed-array.every.js":function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__("./node_modules/core-js/internals/array-buffer-view-core.js"),$every=__webpack_require__("./node_modules/core-js/internals/array-iteration.js").every,aTypedArray=ArrayBufferViewCore.aTypedArray;(0,ArrayBufferViewCore.exportTypedArrayMethod)("every",(function every(callbackfn){return $every(aTypedArray(this),callbackfn,arguments.length>1?arguments[1]:void 0)}))},"./node_modules/core-js/modules/es.typed-array.fill.js":function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__("./node_modules/core-js/internals/array-buffer-view-core.js"),$fill=__webpack_require__("./node_modules/core-js/internals/array-fill.js"),toBigInt=__webpack_require__("./node_modules/core-js/internals/to-big-int.js"),classof=__webpack_require__("./node_modules/core-js/internals/classof.js"),call=__webpack_require__("./node_modules/core-js/internals/function-call.js"),uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),fails=__webpack_require__("./node_modules/core-js/internals/fails.js"),aTypedArray=ArrayBufferViewCore.aTypedArray,exportTypedArrayMethod=ArrayBufferViewCore.exportTypedArrayMethod,slice=uncurryThis("".slice);exportTypedArrayMethod("fill",(function fill(value){var length=arguments.length;aTypedArray(this);var actualValue="Big"===slice(classof(this),0,3)?toBigInt(value):+value;return call($fill,this,actualValue,length>1?arguments[1]:void 0,length>2?arguments[2]:void 0)}),fails((function(){var count=0;return new Int8Array(2).fill({valueOf:function(){return count++}}),1!==count})))},"./node_modules/core-js/modules/es.typed-array.filter.js":function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__("./node_modules/core-js/internals/array-buffer-view-core.js"),$filter=__webpack_require__("./node_modules/core-js/internals/array-iteration.js").filter,fromSpeciesAndList=__webpack_require__("./node_modules/core-js/internals/typed-array-from-species-and-list.js"),aTypedArray=ArrayBufferViewCore.aTypedArray;(0,ArrayBufferViewCore.exportTypedArrayMethod)("filter",(function filter(callbackfn){var list=$filter(aTypedArray(this),callbackfn,arguments.length>1?arguments[1]:void 0);return fromSpeciesAndList(this,list)}))},"./node_modules/core-js/modules/es.typed-array.find-index.js":function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__("./node_modules/core-js/internals/array-buffer-view-core.js"),$findIndex=__webpack_require__("./node_modules/core-js/internals/array-iteration.js").findIndex,aTypedArray=ArrayBufferViewCore.aTypedArray;(0,ArrayBufferViewCore.exportTypedArrayMethod)("findIndex",(function findIndex(predicate){return $findIndex(aTypedArray(this),predicate,arguments.length>1?arguments[1]:void 0)}))},"./node_modules/core-js/modules/es.typed-array.find.js":function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__("./node_modules/core-js/internals/array-buffer-view-core.js"),$find=__webpack_require__("./node_modules/core-js/internals/array-iteration.js").find,aTypedArray=ArrayBufferViewCore.aTypedArray;(0,ArrayBufferViewCore.exportTypedArrayMethod)("find",(function find(predicate){return $find(aTypedArray(this),predicate,arguments.length>1?arguments[1]:void 0)}))},"./node_modules/core-js/modules/es.typed-array.float32-array.js":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/internals/typed-array-constructor.js")("Float32",(function(init){return function Float32Array(data,byteOffset,length){return init(this,data,byteOffset,length)}}))},"./node_modules/core-js/modules/es.typed-array.float64-array.js":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/internals/typed-array-constructor.js")("Float64",(function(init){return function Float64Array(data,byteOffset,length){return init(this,data,byteOffset,length)}}))},"./node_modules/core-js/modules/es.typed-array.for-each.js":function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__("./node_modules/core-js/internals/array-buffer-view-core.js"),$forEach=__webpack_require__("./node_modules/core-js/internals/array-iteration.js").forEach,aTypedArray=ArrayBufferViewCore.aTypedArray;(0,ArrayBufferViewCore.exportTypedArrayMethod)("forEach",(function forEach(callbackfn){$forEach(aTypedArray(this),callbackfn,arguments.length>1?arguments[1]:void 0)}))},"./node_modules/core-js/modules/es.typed-array.includes.js":function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__("./node_modules/core-js/internals/array-buffer-view-core.js"),$includes=__webpack_require__("./node_modules/core-js/internals/array-includes.js").includes,aTypedArray=ArrayBufferViewCore.aTypedArray;(0,ArrayBufferViewCore.exportTypedArrayMethod)("includes",(function includes(searchElement){return $includes(aTypedArray(this),searchElement,arguments.length>1?arguments[1]:void 0)}))},"./node_modules/core-js/modules/es.typed-array.index-of.js":function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__("./node_modules/core-js/internals/array-buffer-view-core.js"),$indexOf=__webpack_require__("./node_modules/core-js/internals/array-includes.js").indexOf,aTypedArray=ArrayBufferViewCore.aTypedArray;(0,ArrayBufferViewCore.exportTypedArrayMethod)("indexOf",(function indexOf(searchElement){return $indexOf(aTypedArray(this),searchElement,arguments.length>1?arguments[1]:void 0)}))},"./node_modules/core-js/modules/es.typed-array.iterator.js":function(module,exports,__webpack_require__){"use strict";var global=__webpack_require__("./node_modules/core-js/internals/global.js"),fails=__webpack_require__("./node_modules/core-js/internals/fails.js"),uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),ArrayBufferViewCore=__webpack_require__("./node_modules/core-js/internals/array-buffer-view-core.js"),ArrayIterators=__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),ITERATOR=__webpack_require__("./node_modules/core-js/internals/well-known-symbol.js")("iterator"),Uint8Array=global.Uint8Array,arrayValues=uncurryThis(ArrayIterators.values),arrayKeys=uncurryThis(ArrayIterators.keys),arrayEntries=uncurryThis(ArrayIterators.entries),aTypedArray=ArrayBufferViewCore.aTypedArray,exportTypedArrayMethod=ArrayBufferViewCore.exportTypedArrayMethod,TypedArrayPrototype=Uint8Array&&Uint8Array.prototype,GENERIC=!fails((function(){TypedArrayPrototype[ITERATOR].call([1])})),ITERATOR_IS_VALUES=!!TypedArrayPrototype&&TypedArrayPrototype.values&&TypedArrayPrototype[ITERATOR]===TypedArrayPrototype.values&&"values"===TypedArrayPrototype.values.name,typedArrayValues=function values(){return arrayValues(aTypedArray(this))};exportTypedArrayMethod("entries",(function entries(){return arrayEntries(aTypedArray(this))}),GENERIC),exportTypedArrayMethod("keys",(function keys(){return arrayKeys(aTypedArray(this))}),GENERIC),exportTypedArrayMethod("values",typedArrayValues,GENERIC||!ITERATOR_IS_VALUES,{name:"values"}),exportTypedArrayMethod(ITERATOR,typedArrayValues,GENERIC||!ITERATOR_IS_VALUES,{name:"values"})},"./node_modules/core-js/modules/es.typed-array.join.js":function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__("./node_modules/core-js/internals/array-buffer-view-core.js"),uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),aTypedArray=ArrayBufferViewCore.aTypedArray,exportTypedArrayMethod=ArrayBufferViewCore.exportTypedArrayMethod,$join=uncurryThis([].join);exportTypedArrayMethod("join",(function join(separator){return $join(aTypedArray(this),separator)}))},"./node_modules/core-js/modules/es.typed-array.last-index-of.js":function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__("./node_modules/core-js/internals/array-buffer-view-core.js"),apply=__webpack_require__("./node_modules/core-js/internals/function-apply.js"),$lastIndexOf=__webpack_require__("./node_modules/core-js/internals/array-last-index-of.js"),aTypedArray=ArrayBufferViewCore.aTypedArray;(0,ArrayBufferViewCore.exportTypedArrayMethod)("lastIndexOf",(function lastIndexOf(searchElement){var length=arguments.length;return apply($lastIndexOf,aTypedArray(this),length>1?[searchElement,arguments[1]]:[searchElement])}))},"./node_modules/core-js/modules/es.typed-array.map.js":function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__("./node_modules/core-js/internals/array-buffer-view-core.js"),$map=__webpack_require__("./node_modules/core-js/internals/array-iteration.js").map,typedArraySpeciesConstructor=__webpack_require__("./node_modules/core-js/internals/typed-array-species-constructor.js"),aTypedArray=ArrayBufferViewCore.aTypedArray;(0,ArrayBufferViewCore.exportTypedArrayMethod)("map",(function map(mapfn){return $map(aTypedArray(this),mapfn,arguments.length>1?arguments[1]:void 0,(function(O,length){return new(typedArraySpeciesConstructor(O))(length)}))}))},"./node_modules/core-js/modules/es.typed-array.reduce-right.js":function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__("./node_modules/core-js/internals/array-buffer-view-core.js"),$reduceRight=__webpack_require__("./node_modules/core-js/internals/array-reduce.js").right,aTypedArray=ArrayBufferViewCore.aTypedArray;(0,ArrayBufferViewCore.exportTypedArrayMethod)("reduceRight",(function reduceRight(callbackfn){var length=arguments.length;return $reduceRight(aTypedArray(this),callbackfn,length,length>1?arguments[1]:void 0)}))},"./node_modules/core-js/modules/es.typed-array.reduce.js":function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__("./node_modules/core-js/internals/array-buffer-view-core.js"),$reduce=__webpack_require__("./node_modules/core-js/internals/array-reduce.js").left,aTypedArray=ArrayBufferViewCore.aTypedArray;(0,ArrayBufferViewCore.exportTypedArrayMethod)("reduce",(function reduce(callbackfn){var length=arguments.length;return $reduce(aTypedArray(this),callbackfn,length,length>1?arguments[1]:void 0)}))},"./node_modules/core-js/modules/es.typed-array.reverse.js":function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__("./node_modules/core-js/internals/array-buffer-view-core.js"),aTypedArray=ArrayBufferViewCore.aTypedArray,exportTypedArrayMethod=ArrayBufferViewCore.exportTypedArrayMethod,floor=Math.floor;exportTypedArrayMethod("reverse",(function reverse(){for(var value,length=aTypedArray(this).length,middle=floor(length/2),index=0;index1?arguments[1]:void 0,1),src=toIndexedObject(arrayLike);if(WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS)return call($set,this,src,offset);var length=this.length,len=lengthOfArrayLike(src),index=0;if(len+offset>length)throw new RangeError("Wrong length");for(;indexindex;)result[index]=list[index++];return result}),fails((function(){new Int8Array(1).slice()})))},"./node_modules/core-js/modules/es.typed-array.some.js":function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__("./node_modules/core-js/internals/array-buffer-view-core.js"),$some=__webpack_require__("./node_modules/core-js/internals/array-iteration.js").some,aTypedArray=ArrayBufferViewCore.aTypedArray;(0,ArrayBufferViewCore.exportTypedArrayMethod)("some",(function some(callbackfn){return $some(aTypedArray(this),callbackfn,arguments.length>1?arguments[1]:void 0)}))},"./node_modules/core-js/modules/es.typed-array.sort.js":function(module,exports,__webpack_require__){"use strict";var global=__webpack_require__("./node_modules/core-js/internals/global.js"),uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this-clause.js"),fails=__webpack_require__("./node_modules/core-js/internals/fails.js"),aCallable=__webpack_require__("./node_modules/core-js/internals/a-callable.js"),internalSort=__webpack_require__("./node_modules/core-js/internals/array-sort.js"),ArrayBufferViewCore=__webpack_require__("./node_modules/core-js/internals/array-buffer-view-core.js"),FF=__webpack_require__("./node_modules/core-js/internals/engine-ff-version.js"),IE_OR_EDGE=__webpack_require__("./node_modules/core-js/internals/engine-is-ie-or-edge.js"),V8=__webpack_require__("./node_modules/core-js/internals/engine-v8-version.js"),WEBKIT=__webpack_require__("./node_modules/core-js/internals/engine-webkit-version.js"),aTypedArray=ArrayBufferViewCore.aTypedArray,exportTypedArrayMethod=ArrayBufferViewCore.exportTypedArrayMethod,Uint16Array=global.Uint16Array,nativeSort=Uint16Array&&uncurryThis(Uint16Array.prototype.sort),ACCEPT_INCORRECT_ARGUMENTS=!(!nativeSort||fails((function(){nativeSort(new Uint16Array(2),null)}))&&fails((function(){nativeSort(new Uint16Array(2),{})}))),STABLE_SORT=!!nativeSort&&!fails((function(){if(V8)return V8<74;if(FF)return FF<67;if(IE_OR_EDGE)return!0;if(WEBKIT)return WEBKIT<602;var index,mod,array=new Uint16Array(516),expected=Array(516);for(index=0;index<516;index++)mod=index%4,array[index]=515-index,expected[index]=index-2*mod+3;for(nativeSort(array,(function(a,b){return(a/4|0)-(b/4|0)})),index=0;index<516;index++)if(array[index]!==expected[index])return!0}));exportTypedArrayMethod("sort",(function sort(comparefn){return void 0!==comparefn&&aCallable(comparefn),STABLE_SORT?nativeSort(this,comparefn):internalSort(aTypedArray(this),function(comparefn){return function(x,y){return void 0!==comparefn?+comparefn(x,y)||0:y!=y?-1:x!=x?1:0===x&&0===y?1/x>0&&1/y<0?1:-1:x>y}}(comparefn))}),!STABLE_SORT||ACCEPT_INCORRECT_ARGUMENTS)},"./node_modules/core-js/modules/es.typed-array.subarray.js":function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__("./node_modules/core-js/internals/array-buffer-view-core.js"),toLength=__webpack_require__("./node_modules/core-js/internals/to-length.js"),toAbsoluteIndex=__webpack_require__("./node_modules/core-js/internals/to-absolute-index.js"),typedArraySpeciesConstructor=__webpack_require__("./node_modules/core-js/internals/typed-array-species-constructor.js"),aTypedArray=ArrayBufferViewCore.aTypedArray;(0,ArrayBufferViewCore.exportTypedArrayMethod)("subarray",(function subarray(begin,end){var O=aTypedArray(this),length=O.length,beginIndex=toAbsoluteIndex(begin,length);return new(typedArraySpeciesConstructor(O))(O.buffer,O.byteOffset+beginIndex*O.BYTES_PER_ELEMENT,toLength((void 0===end?length:toAbsoluteIndex(end,length))-beginIndex))}))},"./node_modules/core-js/modules/es.typed-array.to-locale-string.js":function(module,exports,__webpack_require__){"use strict";var global=__webpack_require__("./node_modules/core-js/internals/global.js"),apply=__webpack_require__("./node_modules/core-js/internals/function-apply.js"),ArrayBufferViewCore=__webpack_require__("./node_modules/core-js/internals/array-buffer-view-core.js"),fails=__webpack_require__("./node_modules/core-js/internals/fails.js"),arraySlice=__webpack_require__("./node_modules/core-js/internals/array-slice.js"),Int8Array=global.Int8Array,aTypedArray=ArrayBufferViewCore.aTypedArray,exportTypedArrayMethod=ArrayBufferViewCore.exportTypedArrayMethod,$toLocaleString=[].toLocaleString,TO_LOCALE_STRING_BUG=!!Int8Array&&fails((function(){$toLocaleString.call(new Int8Array(1))}));exportTypedArrayMethod("toLocaleString",(function toLocaleString(){return apply($toLocaleString,TO_LOCALE_STRING_BUG?arraySlice(aTypedArray(this)):aTypedArray(this),arraySlice(arguments))}),fails((function(){return[1,2].toLocaleString()!==new Int8Array([1,2]).toLocaleString()}))||!fails((function(){Int8Array.prototype.toLocaleString.call([1,2])})))},"./node_modules/core-js/modules/es.typed-array.to-string.js":function(module,exports,__webpack_require__){"use strict";var exportTypedArrayMethod=__webpack_require__("./node_modules/core-js/internals/array-buffer-view-core.js").exportTypedArrayMethod,fails=__webpack_require__("./node_modules/core-js/internals/fails.js"),global=__webpack_require__("./node_modules/core-js/internals/global.js"),uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),Uint8Array=global.Uint8Array,Uint8ArrayPrototype=Uint8Array&&Uint8Array.prototype||{},arrayToString=[].toString,join=uncurryThis([].join);fails((function(){arrayToString.call({})}))&&(arrayToString=function toString(){return join(this)});var IS_NOT_ARRAY_METHOD=Uint8ArrayPrototype.toString!==arrayToString;exportTypedArrayMethod("toString",arrayToString,IS_NOT_ARRAY_METHOD)}}]); \ No newline at end of file diff --git a/10.58f1ecfe.iframe.bundle.js b/10.58f1ecfe.iframe.bundle.js new file mode 100644 index 000000000..f238b368c --- /dev/null +++ b/10.58f1ecfe.iframe.bundle.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{"./node_modules/@sendbird/chat/lib/__bundle-2aa1a987.js":function(module,exports,__webpack_require__){(function(global){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__,e;e=function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var r=0;r=200&&x.status<400)try{var e=JSON.parse(x.responseText);p(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc(i,e))}catch(u){c(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.networkError)}else try{var d=JSON.parse(x.responseText);if(d){var u=new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc(d);if(u.isSessionExpiredError){if(l.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.l({reason:u.code})),!(x instanceof _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Zb)){var f=new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Cb;return l.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ac({request:x,deferred:f,error:u})),f.promise}}else u.isSessionInvalidatedError&&l.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.l({reason:u.code}));c(u)}else c(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.requestFailed)}catch(u){c(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.requestFailed)}},l.on((function(e){e instanceof _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ab&&(e.requestId&&e.requestId!==q||(S=!0,x.abort()))})),x.send(E)}else c(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.xmlHttpRequestNotSupported)}))}}}]); \ No newline at end of file diff --git a/12.044f4a58.iframe.bundle.js b/12.044f4a58.iframe.bundle.js new file mode 100644 index 000000000..105fd3647 --- /dev/null +++ b/12.044f4a58.iframe.bundle.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{"./node_modules/@sendbird/chat/lib/__bundle-ba2b9764.js":function(module,exports,__webpack_require__){(function(global){var t="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==global&&global||{},e="URLSearchParams"in t,r="Symbol"in t&&"iterator"in Symbol,o="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),n="FormData"in t,s="ArrayBuffer"in t;if(s)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function h(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function u(t){return"string"!=typeof t&&(t=String(t)),t}function f(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function d(t){this.map={},t instanceof d?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){if(2!=t.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function l(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function y(t){var e=new FileReader,r=l(e);return e.readAsArrayBuffer(t),r}function p(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(t){var r;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:n&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():s&&o&&(r=t)&&DataView.prototype.isPrototypeOf(r)?(this._bodyArrayBuffer=p(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(t)||a(t))?this._bodyArrayBuffer=p(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return c(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(o)return this.blob().then(y);throw new Error("could not read as ArrayBuffer")},this.text=function(){var t,e,r,o,n,s=c(this);if(s)return s;if(this._bodyBlob)return t=this._bodyBlob,r=l(e=new FileReader),n=(o=/charset=([A-Za-z0-9_-]+)/.exec(t.type))?o[1]:"utf-8",e.readAsText(t,n),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),o=0;o-1?n:o),this.mode=r.mode||this.mode||null,this.signal=r.signal||this.signal||function(){if("AbortController"in t)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&s)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(s),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==r.cache&&"no-cache"!==r.cache)){var i=/([?&])_=[^&]*/;i.test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),o=r.shift().replace(/\+/g," "),n=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),decodeURIComponent(n))}})),e}function v(t,e){if(!(this instanceof v))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new d(e.headers),this.url=e.url||"",this._initBody(t)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},b.call(w.prototype),b.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},v.error=function(){var t=new v(null,{status:200,statusText:""});return t.status=0,t.type="error",t};var A=[301,302,303,307,308];v.redirect=function(t,e){if(-1===A.indexOf(e))throw new RangeError("Invalid status code");return new v(null,{status:e,headers:{location:t}})};var T=t.DOMException;try{new T}catch(t){(T=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),T.prototype.constructor=T}function _(e,r){return new Promise((function(n,i){var a=new w(e,r);if(a.signal&&a.signal.aborted)return i(new T("Aborted","AbortError"));var f=new XMLHttpRequest;function c(){f.abort()}if(f.onload=function(){var t,e,r={statusText:f.statusText,headers:(t=f.getAllResponseHeaders()||"",e=new d,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var r=t.split(":"),o=r.shift().trim();if(o){var n=r.join(":").trim();try{e.append(o,n)}catch(t){console.warn("Response "+t.message)}}})),e)};a.url.startsWith("file://")&&(f.status<200||f.status>599)?r.status=200:r.status=f.status,r.url="responseURL"in f?f.responseURL:r.headers.get("X-Request-URL");var o="response"in f?f.response:f.responseText;setTimeout((function(){n(new v(o,r))}),0)},f.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},f.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request timed out"))}),0)},f.onabort=function(){setTimeout((function(){i(new T("Aborted","AbortError"))}),0)},f.open(a.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(t){return e}}(a.url),!0),"include"===a.credentials?f.withCredentials=!0:"omit"===a.credentials&&(f.withCredentials=!1),"responseType"in f&&(o?f.responseType="blob":s&&(f.responseType="arraybuffer")),r&&"object"==typeof r.headers&&!(r.headers instanceof d||t.Headers&&r.headers instanceof t.Headers)){var l=[];Object.getOwnPropertyNames(r.headers).forEach((function(t){l.push(h(t)),f.setRequestHeader(t,u(r.headers[t]))})),a.headers.forEach((function(t,e){-1===l.indexOf(e)&&f.setRequestHeader(e,t)}))}else a.headers.forEach((function(t,e){f.setRequestHeader(e,t)}));a.signal&&(a.signal.addEventListener("abort",c),f.onreadystatechange=function(){4===f.readyState&&a.signal.removeEventListener("abort",c)}),f.send(void 0===a._bodyInit?null:a._bodyInit)}))}_.polyfill=!0,t.fetch||(t.fetch=_,t.Headers=d,t.Request=w,t.Response=v),("undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==global&&global||{fetch:null}).fetch=_}).call(this,__webpack_require__("./node_modules/webpack/buildin/global.js"))}}]); \ No newline at end of file diff --git a/13.fc0fc5ef.iframe.bundle.js b/13.fc0fc5ef.iframe.bundle.js new file mode 100644 index 000000000..a0d758334 --- /dev/null +++ b/13.fc0fc5ef.iframe.bundle.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{"./node_modules/@storybook/components/dist/esm/Color-f953d088.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"ColorControl",(function(){return ColorControl})),__webpack_require__.d(__webpack_exports__,"default",(function(){return ColorControl}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.map.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.match.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.string.split.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.object.values.js"),__webpack_require__("./node_modules/core-js/modules/es.string.starts-with.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js");var _ColorPicker,_fallbackColor,_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/@storybook/components/dist/esm/index-681e4b07.js"),react__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_27___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_27__),_storybook_theming__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./node_modules/@storybook/theming/dist/esm/index.js");__webpack_require__("./node_modules/memoizerific/memoizerific.js"),__webpack_require__("./node_modules/@storybook/csf/dist/index.js");function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(o[t]=e[t]);return o}function i(e){var t=Object(react__WEBPACK_IMPORTED_MODULE_27__.useRef)(e),n=Object(react__WEBPACK_IMPORTED_MODULE_27__.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var s=function s(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=1),e>t?t:e0:_e.buttons>0)&&m.current?g(d(m.current,_e,b.current)):t(!1)},r=function r(){return t(!1)};function t(t){var n=_.current,o=v(m.current),a=t?o.addEventListener:o.removeEventListener;a(n?"touchmove":"mousemove",e),a(n?"touchend":"mouseup",r)}return[function(e){var r=e.nativeEvent,n=m.current;if(n&&(h(r),!function(e,r){return r&&!f(e)}(r,_.current)&&n)){if(f(r)){_.current=!0;var o=r.changedTouches||[];o.length&&(b.current=o[0].identifier)}n.focus(),g(d(n,r,b.current)),t(!0)}},function(e){var r=e.which||e.keyCode;r<37||r>40||(e.preventDefault(),p({left:39===r?.05:37===r?-.05:0,top:40===r?.05:38===r?-.05:0}))},t]}),[p,g]),C=x[0],E=x[1],H=x[2];return Object(react__WEBPACK_IMPORTED_MODULE_27__.useEffect)((function(){return H}),[H]),react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement("div",u({},s,{onTouchStart:C,onMouseDown:C,className:"react-colorful__interactive",ref:m,onKeyDown:E,tabIndex:0,role:"slider"}))})),g=function g(e){return e.filter(Boolean).join(" ")},p=function p(r){var t=r.color,n=r.left,o=r.top,a=void 0===o?.5:o,l=g(["react-colorful__pointer",r.className]);return react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement("div",{className:l,style:{top:100*a+"%",left:100*n+"%"}},react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},b=function b(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=Math.pow(10,r)),Math.round(t*e)/t},_={grad:.9,turn:360,rad:360/(2*Math.PI)},x=function x(e){return"#"===e[0]&&(e=e.substr(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:1}:{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:1}},C=function C(e,r){return void 0===r&&(r="deg"),Number(e)*(_[r]||1)},M=function M(e){var r=e.s,t=e.l;return{h:e.h,s:(r*=(t<50?t:100-t)/100)>0?2*r/(t+r)*100:0,v:t+r,a:e.a}},N=function N(e){var r=e.s,t=e.v,n=e.a,o=(200-r)*t/100;return{h:b(e.h),s:b(o>0&&o<200?r*t/100/(o<=100?o:200-o)*100:0),l:b(o/2),a:b(n,2)}},w=function w(e){var r=N(e);return"hsl("+r.h+", "+r.s+"%, "+r.l+"%)"},y=function y(e){var r=N(e);return"hsla("+r.h+", "+r.s+"%, "+r.l+"%, "+r.a+")"},q=function q(e){var r=e.h,t=e.s,n=e.v,o=e.a;r=r/360*6,t/=100,n/=100;var a=Math.floor(r),l=n*(1-t),u=n*(1-(r-a)*t),c=n*(1-(1-r+a)*t),i=a%6;return{r:b(255*[n,u,l,l,c,n][i]),g:b(255*[c,n,n,u,l,l][i]),b:b(255*[l,l,c,n,n,u][i]),a:b(o,2)}},z=function z(e){var r=e.toString(16);return r.length<2?"0"+r:r},B=function B(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=Math.max(r,t,n),l=a-Math.min(r,t,n),u=l?a===r?(t-n)/l:a===t?2+(n-r)/l:4+(r-t)/l:0;return{h:b(60*(u<0?u+6:u)),s:b(a?l/a*100:0),v:b(a/255*100),a:o}},K=react__WEBPACK_IMPORTED_MODULE_27___default.a.memo((function(r){var t=r.hue,n=r.onChange,o=g(["react-colorful__hue",r.className]);return react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement("div",{className:o},react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(m,{onMove:function onMove(e){n({h:360*e.left})},onKey:function onKey(e){n({h:s(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuetext":b(t)},react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(p,{className:"react-colorful__hue-pointer",left:t/360,color:w({h:t,s:100,v:100,a:1})})))})),L=react__WEBPACK_IMPORTED_MODULE_27___default.a.memo((function(r){var t=r.hsva,n=r.onChange,o={backgroundColor:w({h:t.h,s:100,v:100,a:1})};return react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement("div",{className:"react-colorful__saturation",style:o},react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(m,{onMove:function onMove(e){n({s:100*e.left,v:100-100*e.top})},onKey:function onKey(e){n({s:s(t.s+100*e.left,0,100),v:s(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+b(t.s)+"%, Brightness "+b(t.v)+"%"},react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(p,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:w(t)})))})),A=function A(e,r){if(e===r)return!0;for(var t in e)if(e[t]!==r[t])return!1;return!0},S=function S(e,r){return e.replace(/\s/g,"")===r.replace(/\s/g,"")};function T(e,t,l){var u=i(l),c=Object(react__WEBPACK_IMPORTED_MODULE_27__.useState)((function(){return e.toHsva(t)})),s=c[0],f=c[1],v=Object(react__WEBPACK_IMPORTED_MODULE_27__.useRef)({color:t,hsva:s});Object(react__WEBPACK_IMPORTED_MODULE_27__.useEffect)((function(){if(!e.equal(t,v.current.color)){var r=e.toHsva(t);v.current={hsva:r,color:t},f(r)}}),[t,e]),Object(react__WEBPACK_IMPORTED_MODULE_27__.useEffect)((function(){var r;A(s,v.current.hsva)||e.equal(r=e.fromHsva(s),v.current.color)||(v.current={hsva:s,color:r},u(r))}),[s,e,u]);var d=Object(react__WEBPACK_IMPORTED_MODULE_27__.useCallback)((function(e){f((function(r){return Object.assign({},r,e)}))}),[]);return[s,d]}for(var P="undefined"!=typeof window?react__WEBPACK_IMPORTED_MODULE_27__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_27__.useEffect,R=new Map,V=function V(e){P((function(){var r=e.current?e.current.ownerDocument:document;if(void 0!==r&&!R.has(r)){var t=r.createElement("style");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',R.set(r,t);var n=function X(){return __webpack_require__.nc}();n&&t.setAttribute("nonce",n),r.head.appendChild(t)}}),[])},$=function $(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c(t,["className","colorModel","color","onChange"]),f=Object(react__WEBPACK_IMPORTED_MODULE_27__.useRef)(null);V(f);var v=T(o,l,i),d=v[0],h=v[1],m=g(["react-colorful",n]);return react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement("div",u({},s,{ref:f,className:m}),react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(L,{hsva:d,onChange:h}),react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(K,{hue:d.h,onChange:h,className:"react-colorful__last-control"}))},G={defaultColor:"000",toHsva:function toHsva(e){return B(x(e))},fromHsva:function fromHsva(e){return t=(r=q(e)).g,n=r.b,"#"+z(r.r)+z(t)+z(n);var r,t,n},equal:function equal(e,r){return e.toLowerCase()===r.toLowerCase()||A(x(e),x(r))}},Q=function Q(r){var t=r.className,n=r.hsva,o=r.onChange,a={backgroundImage:"linear-gradient(90deg, "+y(Object.assign({},n,{a:0}))+", "+y(Object.assign({},n,{a:1}))+")"},l=g(["react-colorful__alpha",t]);return react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement("div",{className:l},react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement("div",{className:"react-colorful__alpha-gradient",style:a}),react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(m,{onMove:function onMove(e){o({a:e.left})},onKey:function onKey(e){o({a:s(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":b(100*n.a)+"%"},react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(p,{className:"react-colorful__alpha-pointer",left:n.a,color:y(n)})))},U=function U(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c(t,["className","colorModel","color","onChange"]),f=Object(react__WEBPACK_IMPORTED_MODULE_27__.useRef)(null);V(f);var v=T(o,l,i),d=v[0],h=v[1],m=g(["react-colorful",n]);return react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement("div",u({},s,{ref:f,className:m}),react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(L,{hsva:d,onChange:h}),react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(K,{hue:d.h,onChange:h}),react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(Q,{hsva:d,onChange:h,className:"react-colorful__last-control"}))},ee={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:function E(e){var r=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?M({h:C(r[1],r[2]),s:Number(r[3]),l:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},fromHsva:y,equal:S},ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:function I(e){var r=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?B({r:Number(r[1])/(r[2]?100/255:1),g:Number(r[3])/(r[4]?100/255:1),b:Number(r[5])/(r[6]?100/255:1),a:void 0===r[7]?1:Number(r[7])/(r[8]?100:1)}):{h:0,s:0,v:0,a:1}},fromHsva:function fromHsva(e){var r=q(e);return"rgba("+r.r+", "+r.g+", "+r.b+", "+r.a+")"},equal:S},cssKeywords={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]},reverseKeywords={},_i=0,_Object$keys=Object.keys(cssKeywords);_i<_Object$keys.length;_i++){var key=_Object$keys[_i];reverseKeywords[cssKeywords[key]]=key}for(var convert$1={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"]}},conversions$2=convert$1,_i2=0,_Object$keys2=Object.keys(convert$1);_i2<_Object$keys2.length;_i2++){var model=_Object$keys2[_i2];if(!("channels"in convert$1[model]))throw new Error("missing channels property: "+model);if(!("labels"in convert$1[model]))throw new Error("missing channel labels property: "+model);if(convert$1[model].labels.length!==convert$1[model].channels)throw new Error("channel and label counts mismatch: "+model);var _convert$1$model=convert$1[model],channels=_convert$1$model.channels,labels=_convert$1$model.labels;delete convert$1[model].channels,delete convert$1[model].labels,Object.defineProperty(convert$1[model],"channels",{value:channels}),Object.defineProperty(convert$1[model],"labels",{value:labels})}function comparativeDistance(x,y){return Math.pow(x[0]-y[0],2)+Math.pow(x[1]-y[1],2)+Math.pow(x[2]-y[2],2)}convert$1.rgb.hsl=function(rgb){var h,r=rgb[0]/255,g=rgb[1]/255,b=rgb[2]/255,min=Math.min(r,g,b),max=Math.max(r,g,b),delta=max-min;max===min?h=0:r===max?h=(g-b)/delta:g===max?h=2+(b-r)/delta:b===max&&(h=4+(r-g)/delta),(h=Math.min(60*h,360))<0&&(h+=360);var l=(min+max)/2;return[h,100*(max===min?0:l<=.5?delta/(max+min):delta/(2-max-min)),100*l]},convert$1.rgb.hsv=function(rgb){var rdif,gdif,bdif,h,s,r=rgb[0]/255,g=rgb[1]/255,b=rgb[2]/255,v=Math.max(r,g,b),diff=v-Math.min(r,g,b),diffc=function diffc(c){return(v-c)/6/diff+.5};return 0===diff?(h=0,s=0):(s=diff/v,rdif=diffc(r),gdif=diffc(g),bdif=diffc(b),r===v?h=bdif-gdif:g===v?h=1/3+rdif-bdif:b===v&&(h=2/3+gdif-rdif),h<0?h+=1:h>1&&(h-=1)),[360*h,100*s,100*v]},convert$1.rgb.hwb=function(rgb){var r=rgb[0],g=rgb[1],b=rgb[2];return[convert$1.rgb.hsl(rgb)[0],100*(1/255*Math.min(r,Math.min(g,b))),100*(b=1-1/255*Math.max(r,Math.max(g,b)))]},convert$1.rgb.cmyk=function(rgb){var r=rgb[0]/255,g=rgb[1]/255,b=rgb[2]/255,k=Math.min(1-r,1-g,1-b);return[100*((1-r-k)/(1-k)||0),100*((1-g-k)/(1-k)||0),100*((1-b-k)/(1-k)||0),100*k]},convert$1.rgb.keyword=function(rgb){var reversed=reverseKeywords[rgb];if(reversed)return reversed;for(var currentClosestKeyword,currentClosestDistance=1/0,_i3=0,_Object$keys3=Object.keys(cssKeywords);_i3<_Object$keys3.length;_i3++){var keyword=_Object$keys3[_i3],distance=comparativeDistance(rgb,cssKeywords[keyword]);distance.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.3576*(g=g>.04045?Math.pow((g+.055)/1.055,2.4):g/12.92)+.1805*(b=b>.04045?Math.pow((b+.055)/1.055,2.4):b/12.92)),100*(.2126*r+.7152*g+.0722*b),100*(.0193*r+.1192*g+.9505*b)]},convert$1.rgb.lab=function(rgb){var xyz=convert$1.rgb.xyz(rgb),x=xyz[0],y=xyz[1],z=xyz[2];return y/=100,z/=108.883,x=(x/=95.047)>.008856?Math.pow(x,1/3):7.787*x+16/116,[116*(y=y>.008856?Math.pow(y,1/3):7.787*y+16/116)-16,500*(x-y),200*(y-(z=z>.008856?Math.pow(z,1/3):7.787*z+16/116))]},convert$1.hsl.rgb=function(hsl){var t2,t3,val,h=hsl[0]/360,s=hsl[1]/100,l=hsl[2]/100;if(0===s)return[val=255*l,val,val];for(var t1=2*l-(t2=l<.5?l*(1+s):l+s-l*s),rgb=[0,0,0],_i4=0;_i4<3;_i4++)(t3=h+1/3*-(_i4-1))<0&&t3++,t3>1&&t3--,val=6*t3<1?t1+6*(t2-t1)*t3:2*t3<1?t2:3*t3<2?t1+(t2-t1)*(2/3-t3)*6:t1,rgb[_i4]=255*val;return rgb},convert$1.hsl.hsv=function(hsl){var h=hsl[0],s=hsl[1]/100,l=hsl[2]/100,smin=s,lmin=Math.max(l,.01);return s*=(l*=2)<=1?l:2-l,smin*=lmin<=1?lmin:2-lmin,[h,100*(0===l?2*smin/(lmin+smin):2*s/(l+s)),100*((l+s)/2)]},convert$1.hsv.rgb=function(hsv){var h=hsv[0]/60,s=hsv[1]/100,v=hsv[2]/100,hi=Math.floor(h)%6,f=h-Math.floor(h),p=255*v*(1-s),q=255*v*(1-s*f),t=255*v*(1-s*(1-f));switch(v*=255,hi){case 0:return[v,t,p];case 1:return[q,v,p];case 2:return[p,v,t];case 3:return[p,q,v];case 4:return[t,p,v];case 5:return[v,p,q]}},convert$1.hsv.hsl=function(hsv){var sl,l,h=hsv[0],s=hsv[1]/100,v=hsv[2]/100,vmin=Math.max(v,.01);l=(2-s)*v;var lmin=(2-s)*vmin;return sl=s*vmin,[h,100*(sl=(sl/=lmin<=1?lmin:2-lmin)||0),100*(l/=2)]},convert$1.hwb.rgb=function(hwb){var f,h=hwb[0]/360,wh=hwb[1]/100,bl=hwb[2]/100,ratio=wh+bl;ratio>1&&(wh/=ratio,bl/=ratio);var i=Math.floor(6*h),v=1-bl;f=6*h-i,1&i&&(f=1-f);var r,g,b,n=wh+f*(v-wh);switch(i){default:case 6:case 0:r=v,g=n,b=wh;break;case 1:r=n,g=v,b=wh;break;case 2:r=wh,g=v,b=n;break;case 3:r=wh,g=n,b=v;break;case 4:r=n,g=wh,b=v;break;case 5:r=v,g=wh,b=n}return[255*r,255*g,255*b]},convert$1.cmyk.rgb=function(cmyk){var c=cmyk[0]/100,m=cmyk[1]/100,y=cmyk[2]/100,k=cmyk[3]/100;return[255*(1-Math.min(1,c*(1-k)+k)),255*(1-Math.min(1,m*(1-k)+k)),255*(1-Math.min(1,y*(1-k)+k))]},convert$1.xyz.rgb=function(xyz){var r,g,b,x=xyz[0]/100,y=xyz[1]/100,z=xyz[2]/100;return g=-.9689*x+1.8758*y+.0415*z,b=.0557*x+-.204*y+1.057*z,r=(r=3.2406*x+-1.5372*y+-.4986*z)>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,g=g>.0031308?1.055*Math.pow(g,1/2.4)-.055:12.92*g,b=b>.0031308?1.055*Math.pow(b,1/2.4)-.055:12.92*b,[255*(r=Math.min(Math.max(0,r),1)),255*(g=Math.min(Math.max(0,g),1)),255*(b=Math.min(Math.max(0,b),1))]},convert$1.xyz.lab=function(xyz){var x=xyz[0],y=xyz[1],z=xyz[2];return y/=100,z/=108.883,x=(x/=95.047)>.008856?Math.pow(x,1/3):7.787*x+16/116,[116*(y=y>.008856?Math.pow(y,1/3):7.787*y+16/116)-16,500*(x-y),200*(y-(z=z>.008856?Math.pow(z,1/3):7.787*z+16/116))]},convert$1.lab.xyz=function(lab){var x,y,z,l=lab[0];x=lab[1]/500+(y=(l+16)/116),z=y-lab[2]/200;var y2=Math.pow(y,3),x2=Math.pow(x,3),z2=Math.pow(z,3);return y=y2>.008856?y2:(y-16/116)/7.787,x=x2>.008856?x2:(x-16/116)/7.787,z=z2>.008856?z2:(z-16/116)/7.787,[x*=95.047,y*=100,z*=108.883]},convert$1.lab.lch=function(lab){var h,l=lab[0],a=lab[1],b=lab[2];return(h=360*Math.atan2(b,a)/2/Math.PI)<0&&(h+=360),[l,Math.sqrt(a*a+b*b),h]},convert$1.lch.lab=function(lch){var l=lch[0],c=lch[1],hr=lch[2]/360*2*Math.PI;return[l,c*Math.cos(hr),c*Math.sin(hr)]},convert$1.rgb.ansi16=function(args){var saturation=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,_args=_slicedToArray(args,3),r=_args[0],g=_args[1],b=_args[2],value=null===saturation?convert$1.rgb.hsv(args)[2]:saturation;if(0===(value=Math.round(value/50)))return 30;var ansi=30+(Math.round(b/255)<<2|Math.round(g/255)<<1|Math.round(r/255));return 2===value&&(ansi+=60),ansi},convert$1.hsv.ansi16=function(args){return convert$1.rgb.ansi16(convert$1.hsv.rgb(args),args[2])},convert$1.rgb.ansi256=function(args){var r=args[0],g=args[1],b=args[2];return r===g&&g===b?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(g/255*5)+Math.round(b/255*5)},convert$1.ansi16.rgb=function(args){var color=args%10;if(0===color||7===color)return args>50&&(color+=3.5),[color=color/10.5*255,color,color];var mult=.5*(1+~~(args>50));return[(1&color)*mult*255,(color>>1&1)*mult*255,(color>>2&1)*mult*255]},convert$1.ansi256.rgb=function(args){if(args>=232){var _c=10*(args-232)+8;return[_c,_c,_c]}var rem;return args-=16,[Math.floor(args/36)/5*255,Math.floor((rem=args%36)/6)/5*255,rem%6/5*255]},convert$1.rgb.hex=function(args){var string=(((255&Math.round(args[0]))<<16)+((255&Math.round(args[1]))<<8)+(255&Math.round(args[2]))).toString(16).toUpperCase();return"000000".substring(string.length)+string},convert$1.hex.rgb=function(args){var match=args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!match)return[0,0,0];var colorString=match[0];3===match[0].length&&(colorString=colorString.split("").map((function(char){return char+char})).join(""));var integer=parseInt(colorString,16);return[integer>>16&255,integer>>8&255,255&integer]},convert$1.rgb.hcg=function(rgb){var hue,r=rgb[0]/255,g=rgb[1]/255,b=rgb[2]/255,max=Math.max(Math.max(r,g),b),min=Math.min(Math.min(r,g),b),chroma=max-min;return hue=chroma<=0?0:max===r?(g-b)/chroma%6:max===g?2+(b-r)/chroma:4+(r-g)/chroma,hue/=6,[360*(hue%=1),100*chroma,100*(chroma<1?min/(1-chroma):0)]},convert$1.hsl.hcg=function(hsl){var s=hsl[1]/100,l=hsl[2]/100,c=l<.5?2*s*l:2*s*(1-l),f=0;return c<1&&(f=(l-.5*c)/(1-c)),[hsl[0],100*c,100*f]},convert$1.hsv.hcg=function(hsv){var s=hsv[1]/100,v=hsv[2]/100,c=s*v,f=0;return c<1&&(f=(v-c)/(1-c)),[hsv[0],100*c,100*f]},convert$1.hcg.rgb=function(hcg){var h=hcg[0]/360,c=hcg[1]/100,g=hcg[2]/100;if(0===c)return[255*g,255*g,255*g];var mg,pure=[0,0,0],hi=h%1*6,v=hi%1,w=1-v;switch(Math.floor(hi)){case 0:pure[0]=1,pure[1]=v,pure[2]=0;break;case 1:pure[0]=w,pure[1]=1,pure[2]=0;break;case 2:pure[0]=0,pure[1]=1,pure[2]=v;break;case 3:pure[0]=0,pure[1]=w,pure[2]=1;break;case 4:pure[0]=v,pure[1]=0,pure[2]=1;break;default:pure[0]=1,pure[1]=0,pure[2]=w}return mg=(1-c)*g,[255*(c*pure[0]+mg),255*(c*pure[1]+mg),255*(c*pure[2]+mg)]},convert$1.hcg.hsv=function(hcg){var c=hcg[1]/100,v=c+hcg[2]/100*(1-c),f=0;return v>0&&(f=c/v),[hcg[0],100*f,100*v]},convert$1.hcg.hsl=function(hcg){var c=hcg[1]/100,l=hcg[2]/100*(1-c)+.5*c,s=0;return l>0&&l<.5?s=c/(2*l):l>=.5&&l<1&&(s=c/(2*(1-l))),[hcg[0],100*s,100*l]},convert$1.hcg.hwb=function(hcg){var c=hcg[1]/100,v=c+hcg[2]/100*(1-c);return[hcg[0],100*(v-c),100*(1-v)]},convert$1.hwb.hcg=function(hwb){var w=hwb[1]/100,v=1-hwb[2]/100,c=v-w,g=0;return c<1&&(g=(v-c)/(1-c)),[hwb[0],100*c,100*g]},convert$1.apple.rgb=function(apple){return[apple[0]/65535*255,apple[1]/65535*255,apple[2]/65535*255]},convert$1.rgb.apple=function(rgb){return[rgb[0]/255*65535,rgb[1]/255*65535,rgb[2]/255*65535]},convert$1.gray.rgb=function(args){return[args[0]/100*255,args[0]/100*255,args[0]/100*255]},convert$1.gray.hsl=function(args){return[0,0,args[0]]},convert$1.gray.hsv=convert$1.gray.hsl,convert$1.gray.hwb=function(gray){return[0,100,gray[0]]},convert$1.gray.cmyk=function(gray){return[0,0,0,gray[0]]},convert$1.gray.lab=function(gray){return[gray[0],0,0]},convert$1.gray.hex=function(gray){var val=255&Math.round(gray[0]/100*255),string=((val<<16)+(val<<8)+val).toString(16).toUpperCase();return"000000".substring(string.length)+string},convert$1.rgb.gray=function(rgb){return[(rgb[0]+rgb[1]+rgb[2])/3/255*100]};var conversions$1=conversions$2;function deriveBFS(fromModel){var graph=function buildGraph(){for(var graph={},models=Object.keys(conversions$1),len=models.length,_i5=0;_i51&&(args=arg0);var result=fn(args);if("object"===_typeof(result))for(var len=result.length,_i8=0;_i81&&(args=arg0),fn(args))};return"conversion"in fn&&(wrappedFn.conversion=fn.conversion),wrappedFn}(fn)}))}));var colorConvert=convert,root=_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_26__.Z,now_1=function now$1(){return root.Date.now()},reWhitespace=/\s/;var trimmedEndIndex=function trimmedEndIndex$1(string){for(var index=string.length;index--&&reWhitespace.test(string.charAt(index)););return index},reTrimStart=/^\s+/;var baseTrim=function baseTrim$1(string){return string?string.slice(0,trimmedEndIndex(string)+1).replace(reTrimStart,""):string},isObject$2=_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_26__.cb,isSymbol=_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_26__.db,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;var toNumber_1=function toNumber$1(value){if("number"==typeof value)return value;if(isSymbol(value))return NaN;if(isObject$2(value)){var other="function"==typeof value.valueOf?value.valueOf():value;value=isObject$2(other)?other+"":other}if("string"!=typeof value)return 0===value?value:+value;value=baseTrim(value);var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NaN:+value},isObject$1=_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_26__.cb,now=now_1,toNumber=toNumber_1,nativeMax=Math.max,nativeMin=Math.min;var debounce_1=function debounce$1(func,wait,options){var lastArgs,lastThis,maxWait,result,timerId,lastCallTime,lastInvokeTime=0,leading=!1,maxing=!1,trailing=!0;if("function"!=typeof func)throw new TypeError("Expected a function");function invokeFunc(time){var args=lastArgs,thisArg=lastThis;return lastArgs=lastThis=void 0,lastInvokeTime=time,result=func.apply(thisArg,args)}function shouldInvoke(time){var timeSinceLastCall=time-lastCallTime;return void 0===lastCallTime||timeSinceLastCall>=wait||timeSinceLastCall<0||maxing&&time-lastInvokeTime>=maxWait}function timerExpired(){var time=now();if(shouldInvoke(time))return trailingEdge(time);timerId=setTimeout(timerExpired,function remainingWait(time){var timeWaiting=wait-(time-lastCallTime);return maxing?nativeMin(timeWaiting,maxWait-(time-lastInvokeTime)):timeWaiting}(time))}function trailingEdge(time){return timerId=void 0,trailing&&lastArgs?invokeFunc(time):(lastArgs=lastThis=void 0,result)}function debounced(){var time=now(),isInvoking=shouldInvoke(time);if(lastArgs=arguments,lastThis=this,lastCallTime=time,isInvoking){if(void 0===timerId)return function leadingEdge(time){return lastInvokeTime=time,timerId=setTimeout(timerExpired,wait),leading?invokeFunc(time):result}(lastCallTime);if(maxing)return clearTimeout(timerId),timerId=setTimeout(timerExpired,wait),invokeFunc(lastCallTime)}return void 0===timerId&&(timerId=setTimeout(timerExpired,wait)),result}return wait=toNumber(wait)||0,isObject$1(options)&&(leading=!!options.leading,maxWait=(maxing="maxWait"in options)?nativeMax(toNumber(options.maxWait)||0,wait):maxWait,trailing="trailing"in options?!!options.trailing:trailing),debounced.cancel=function cancel(){void 0!==timerId&&clearTimeout(timerId),lastInvokeTime=0,lastArgs=lastCallTime=lastThis=timerId=void 0},debounced.flush=function flush(){return void 0===timerId?result:trailingEdge(now())},debounced},debounce=debounce_1,isObject=_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_26__.cb;var ColorSpace,throttle_1=function throttle(func,wait,options){var leading=!0,trailing=!0;if("function"!=typeof func)throw new TypeError("Expected a function");return isObject(options)&&(leading="leading"in options?!!options.leading:leading,trailing="trailing"in options?!!options.trailing:trailing),debounce(func,wait,{leading:leading,maxWait:wait,trailing:trailing})},Wrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_28__.i.div({position:"relative",maxWidth:250}),PickerTooltip=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_28__.i)(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_26__.k)({position:"absolute",zIndex:1,top:4,left:4}),TooltipContent=_storybook_theming__WEBPACK_IMPORTED_MODULE_28__.i.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Note=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_28__.i)(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_26__.j)((function(_ref){return{fontFamily:_ref.theme.typography.fonts.base}})),Swatches=_storybook_theming__WEBPACK_IMPORTED_MODULE_28__.i.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),SwatchColor=_storybook_theming__WEBPACK_IMPORTED_MODULE_28__.i.div((function(_ref2){var theme=_ref2.theme;return{width:16,height:16,boxShadow:_ref2.active?"".concat(theme.appBorderColor," 0 0 0 1px inset, ").concat(theme.color.mediumdark,"50 0 0 0 4px"):"".concat(theme.appBorderColor," 0 0 0 1px inset"),borderRadius:theme.appBorderRadius}})),Swatch=function Swatch(_a){var value=_a.value,active=_a.active,onClick=_a.onClick,style=_a.style,props=Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_26__.I)(_a,["value","active","onClick","style"]),backgroundImage="linear-gradient(".concat(value,", ").concat(value,"), ").concat('url(\'data:image/svg+xml;charset=utf-8,\')',", linear-gradient(#fff, #fff)");return react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(SwatchColor,Object.assign({},props,{active:active,onClick:onClick},{style:Object.assign(Object.assign({},style),{backgroundImage:backgroundImage})}))},Input=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_28__.i)(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_26__.d.Input)((function(_ref3){return{width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:_ref3.theme.typography.fonts.base}})),ToggleIcon=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_28__.i)(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_26__.f)((function(_ref4){return{position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:_ref4.theme.input.color}}));!function(ColorSpace){ColorSpace.RGB="rgb",ColorSpace.HSL="hsl",ColorSpace.HEX="hex"}(ColorSpace||(ColorSpace={}));var COLOR_SPACES=Object.values(ColorSpace),COLOR_REGEXP=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,RGB_REGEXP=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,HSL_REGEXP=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,HEX_REGEXP=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,SHORTHEX_REGEXP=/^\s*#?([0-9a-f]{3})\s*$/i,ColorPicker=(_defineProperty(_ColorPicker={},ColorSpace.HEX,(function J(r){return react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement($,u({},r,{colorModel:G}))})),_defineProperty(_ColorPicker,ColorSpace.RGB,(function pe(r){return react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(U,u({},r,{colorModel:ge}))})),_defineProperty(_ColorPicker,ColorSpace.HSL,(function re(r){return react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(U,u({},r,{colorModel:ee}))})),_ColorPicker),fallbackColor=(_defineProperty(_fallbackColor={},ColorSpace.HEX,"transparent"),_defineProperty(_fallbackColor,ColorSpace.RGB,"rgba(0, 0, 0, 0)"),_defineProperty(_fallbackColor,ColorSpace.HSL,"hsla(0, 0%, 0%, 0)"),_fallbackColor),stringToArgs=function stringToArgs(value){var match=null==value?void 0:value.match(COLOR_REGEXP);if(!match)return[0,0,0,1];var _match=_slicedToArray(match,5),x=_match[1],y=_match[2],z=_match[3],_match$=_match[4];return[x,y,z,void 0===_match$?1:_match$].map(Number)},parseValue=function parseValue(value){var _ref11;if(value){var valid=!0;if(RGB_REGEXP.test(value)){var _ref7,_stringToArgs2=_slicedToArray(stringToArgs(value),4),r=_stringToArgs2[0],_g=_stringToArgs2[1],_b=_stringToArgs2[2],a=_stringToArgs2[3],_ref6=_slicedToArray(colorConvert.rgb.hsl([r,_g,_b])||[0,0,0],3),_h=_ref6[0],_s2=_ref6[1],l=_ref6[2];return _defineProperty(_ref7={valid:valid,value:value,keyword:colorConvert.rgb.keyword([r,_g,_b]),colorSpace:ColorSpace.RGB},ColorSpace.RGB,value),_defineProperty(_ref7,ColorSpace.HSL,"hsla(".concat(_h,", ").concat(_s2,"%, ").concat(l,"%, ").concat(a,")")),_defineProperty(_ref7,ColorSpace.HEX,"#".concat(colorConvert.rgb.hex([r,_g,_b]).toLowerCase())),_ref7}if(HSL_REGEXP.test(value)){var _ref10,_stringToArgs4=_slicedToArray(stringToArgs(value),4),_h2=_stringToArgs4[0],_s3=_stringToArgs4[1],_l=_stringToArgs4[2],_a2=_stringToArgs4[3],_ref9=_slicedToArray(colorConvert.hsl.rgb([_h2,_s3,_l])||[0,0,0],3),_r=_ref9[0],_g2=_ref9[1],_b2=_ref9[2];return _defineProperty(_ref10={valid:valid,value:value,keyword:colorConvert.hsl.keyword([_h2,_s3,_l]),colorSpace:ColorSpace.HSL},ColorSpace.RGB,"rgba(".concat(_r,", ").concat(_g2,", ").concat(_b2,", ").concat(_a2,")")),_defineProperty(_ref10,ColorSpace.HSL,value),_defineProperty(_ref10,ColorSpace.HEX,"#".concat(colorConvert.hsl.hex([_h2,_s3,_l]).toLowerCase())),_ref10}var plain=value.replace("#",""),rgb=colorConvert.keyword.rgb(plain)||colorConvert.hex.rgb(plain),hsl=colorConvert.rgb.hsl(rgb),mapped=value;if(/[^#a-f0-9]/i.test(value)?mapped=plain:HEX_REGEXP.test(value)&&(mapped="#".concat(plain)),mapped.startsWith("#"))valid=HEX_REGEXP.test(mapped);else try{colorConvert.keyword.hex(mapped)}catch(e){valid=!1}return _defineProperty(_ref11={valid:valid,value:mapped,keyword:colorConvert.rgb.keyword(rgb),colorSpace:ColorSpace.HEX},ColorSpace.RGB,"rgba(".concat(rgb[0],", ").concat(rgb[1],", ").concat(rgb[2],", 1)")),_defineProperty(_ref11,ColorSpace.HSL,"hsla(".concat(hsl[0],", ").concat(hsl[1],"%, ").concat(hsl[2],"%, 1)")),_defineProperty(_ref11,ColorSpace.HEX,mapped),_ref11}},useColorInput=function useColorInput(initialValue,onChange){var _useState2=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_27__.useState)(initialValue||""),2),value=_useState2[0],setValue=_useState2[1],_useState4=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_27__.useState)((function(){return parseValue(value)})),2),color=_useState4[0],setColor=_useState4[1],_useState6=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_27__.useState)((null==color?void 0:color.colorSpace)||ColorSpace.HEX),2),colorSpace=_useState6[0],setColorSpace=_useState6[1];Object(react__WEBPACK_IMPORTED_MODULE_27__.useEffect)((function(){void 0===initialValue&&(setValue(""),setColor(void 0),setColorSpace(ColorSpace.HEX))}),[initialValue]);var realValue=Object(react__WEBPACK_IMPORTED_MODULE_27__.useMemo)((function(){return function getRealValue(value,color,colorSpace){if(!value||!(null==color?void 0:color.valid))return fallbackColor[colorSpace];if(colorSpace!==ColorSpace.HEX)return(null==color?void 0:color[colorSpace])||fallbackColor[colorSpace];if(!color.hex.startsWith("#"))try{return"#".concat(colorConvert.keyword.hex(color.hex))}catch(e){return fallbackColor.hex}var short=color.hex.match(SHORTHEX_REGEXP);if(!short)return HEX_REGEXP.test(color.hex)?color.hex:fallbackColor.hex;var _short$1$split2=_slicedToArray(short[1].split(""),3),r=_short$1$split2[0],g=_short$1$split2[1],b=_short$1$split2[2];return"#".concat(r).concat(r).concat(g).concat(g).concat(b).concat(b)}(value,color,colorSpace).toLowerCase()}),[value,color,colorSpace]),updateValue=Object(react__WEBPACK_IMPORTED_MODULE_27__.useCallback)((function(update){var parsed=parseValue(update);setValue((null==parsed?void 0:parsed.value)||update||""),parsed&&(setColor(parsed),setColorSpace(parsed.colorSpace),onChange(parsed.value))}),[onChange]),cycleColorSpace=Object(react__WEBPACK_IMPORTED_MODULE_27__.useCallback)((function(){var next=COLOR_SPACES.indexOf(colorSpace)+1;next>=COLOR_SPACES.length&&(next=0),setColorSpace(COLOR_SPACES[next]);var update=(null==color?void 0:color[COLOR_SPACES[next]])||"";setValue(update),onChange(update)}),[color,colorSpace,onChange]);return{value:value,realValue:realValue,updateValue:updateValue,color:color,colorSpace:colorSpace,cycleColorSpace:cycleColorSpace}},id=function id(value){return value.replace(/\s*/,"").toLowerCase()},ColorControl=function ColorControl(_ref12){var name=_ref12.name,initialValue=_ref12.value,onChange=_ref12.onChange,onFocus=_ref12.onFocus,onBlur=_ref12.onBlur,presetColors=_ref12.presetColors,startOpen=_ref12.startOpen,_useColorInput=useColorInput(initialValue,throttle_1(onChange,200)),value=_useColorInput.value,realValue=_useColorInput.realValue,updateValue=_useColorInput.updateValue,color=_useColorInput.color,colorSpace=_useColorInput.colorSpace,cycleColorSpace=_useColorInput.cycleColorSpace,_usePresets=function usePresets(presetColors,currentColor,colorSpace){var _useState8=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_27__.useState)((null==currentColor?void 0:currentColor.valid)?[currentColor]:[]),2),selectedColors=_useState8[0],setSelectedColors=_useState8[1];Object(react__WEBPACK_IMPORTED_MODULE_27__.useEffect)((function(){void 0===currentColor&&setSelectedColors([])}),[currentColor]);var presets=Object(react__WEBPACK_IMPORTED_MODULE_27__.useMemo)((function(){return(presetColors||[]).map((function(preset){return"string"==typeof preset?parseValue(preset):preset.title?Object.assign(Object.assign({},parseValue(preset.color)),{keyword:preset.title}):parseValue(preset.color)})).concat(selectedColors).filter(Boolean).slice(-27)}),[presetColors,selectedColors]),addPreset=Object(react__WEBPACK_IMPORTED_MODULE_27__.useCallback)((function(color){(null==color?void 0:color.valid)&&(presets.some((function(preset){return id(preset[colorSpace])===id(color[colorSpace])}))||setSelectedColors((function(arr){return arr.concat(color)})))}),[colorSpace,presets]);return{presets:presets,addPreset:addPreset}}(presetColors,color,colorSpace),presets=_usePresets.presets,addPreset=_usePresets.addPreset,Picker=ColorPicker[colorSpace];return react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(Wrapper,null,react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(PickerTooltip,{trigger:"click",startOpen:startOpen,closeOnClick:!0,onVisibilityChange:function onVisibilityChange(){return addPreset(color)},tooltip:react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(TooltipContent,null,react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(Picker,Object.assign({color:"transparent"===realValue?"#000000":realValue},{onChange:updateValue,onFocus:onFocus,onBlur:onBlur})),presets.length>0&&react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(Swatches,null,presets.map((function(preset,index){return react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_26__.k,{key:"".concat(preset.value,"-").concat(index),hasChrome:!1,tooltip:react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(Note,{note:preset.keyword||preset.value})},react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(Swatch,{value:preset[colorSpace],active:color&&id(preset[colorSpace])===id(color[colorSpace]),onClick:function onClick(){return updateValue(preset.value)}}))}))))},react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(Swatch,{value:realValue,style:{margin:4}})),react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(Input,{id:Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_26__.eb)(name),value:value,onChange:function onChange(e){return updateValue(e.target.value)},onFocus:function onFocus(e){return e.target.select()},placeholder:"Choose color..."}),value?react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(ToggleIcon,{icon:"markup",onClick:cycleColorSpace}):null)}}}]); \ No newline at end of file diff --git a/14.e40fa54b.iframe.bundle.js b/14.e40fa54b.iframe.bundle.js new file mode 100644 index 000000000..f7c20ce97 --- /dev/null +++ b/14.e40fa54b.iframe.bundle.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{"./node_modules/@storybook/components/dist/esm/GlobalScrollAreaStyles-8793ce4a.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"default",(function(){return GlobalScrollAreaStyles})),__webpack_require__.d(__webpack_exports__,"getScrollAreaStyles",(function(){return getScrollAreaStyles}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__),_storybook_theming__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/theming/dist/esm/index.js");var hsResizeObserverDummyAnimation=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_3__.g)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["0%{z-index:0}to{z-index:-1}"]))),getScrollAreaStyles=function getScrollAreaStyles(theme){return{"html.os-html, html.os-html>.os-host":{display:"block",overflow:"hidden",boxSizing:"border-box",height:"100%!important",width:"100%!important",minWidth:"100%!important",minHeight:"100%!important",margin:"0!important",position:"absolute!important"},"html.os-html>.os-host>.os-padding":{position:"absolute"},"body.os-dragging, body.os-dragging *":{cursor:"default"},".os-host, .os-host-textarea":{position:"relative",overflow:"visible!important",flexDirection:"column",flexWrap:"nowrap",justifyContent:"flex-start",alignContent:"flex-start",alignItems:"flex-start"},".os-host-flexbox":{overflow:"hidden!important",display:"flex"},".os-host-flexbox>.os-size-auto-observer":{height:"inherit!important"},".os-host-flexbox>.os-content-glue":{flexGrow:1,flexShrink:0},".os-host-flexbox>.os-size-auto-observer, .os-host-flexbox>.os-content-glue":{minHeight:0,minWidth:0,flexGrow:0,flexShrink:1,flexBasis:"auto"},"#os-dummy-scrollbar-size":{position:"fixed",opacity:0,visibility:"hidden",overflow:"scroll",height:500,width:500},"#os-dummy-scrollbar-size>div":{width:"200%",height:"200%",margin:10},"#os-dummy-scrollbar-size, .os-viewport":{},".os-viewport-native-scrollbars-invisible#os-dummy-scrollbar-size, .os-viewport-native-scrollbars-invisible.os-viewport":{scrollbarWidth:"none!important"},".os-viewport-native-scrollbars-invisible#os-dummy-scrollbar-size::-webkit-scrollbar, .os-viewport-native-scrollbars-invisible.os-viewport::-webkit-scrollbar, .os-viewport-native-scrollbars-invisible#os-dummy-scrollbar-size::-webkit-scrollbar-corner, .os-viewport-native-scrollbars-invisible.os-viewport::-webkit-scrollbar-corner":{display:"none!important",width:"0!important",height:"0!important",visibility:"hidden!important",background:"0 0!important"},".os-content-glue":{boxSizing:"inherit",maxHeight:"100%",maxWidth:"100%",width:"100%",pointerEvents:"none"},".os-padding":{boxSizing:"inherit",direction:"inherit",position:"absolute",overflow:"visible",padding:0,margin:0,left:0,top:0,bottom:0,right:0,width:"auto!important",height:"auto!important",zIndex:1},".os-host-overflow>.os-padding":{overflow:"hidden"},".os-viewport":{direction:"inherit!important",boxSizing:"inherit!important",resize:"none!important",outline:"0!important",position:"absolute",overflow:"hidden",top:0,left:0,bottom:0,right:0,padding:0,margin:0},".os-content-arrange":{position:"absolute",zIndex:-1,minHeight:1,minWidth:1,pointerEvents:"none"},".os-content":{direction:"inherit",boxSizing:"border-box!important",position:"relative",display:"block",height:"100%",width:"100%",visibility:"visible"},".os-content:before, .os-content:after":{content:"''",display:"table",width:0,height:0,lineHeight:0,fontSize:0},".os-content>.os-textarea":{boxSizing:"border-box!important",direction:"inherit!important",background:"0 0!important",outline:"0 transparent!important",overflow:"hidden!important",position:"absolute!important",display:"block!important",top:"0!important",left:"0!important",margin:"0!important",borderRadius:"0!important",float:"none!important",filter:"none!important",border:"0!important",resize:"none!important",transform:"none!important",maxWidth:"none!important",maxHeight:"none!important",boxShadow:"none!important",perspective:"none!important",opacity:"1!important",zIndex:"1!important",clip:"auto!important",verticalAlign:"baseline!important",padding:0},".os-host-rtl>.os-padding>.os-viewport>.os-content>.os-textarea":{right:"0!important"},".os-content>.os-textarea-cover":{zIndex:-1,pointerEvents:"none"},".os-content>.os-textarea[wrap=off]":{whiteSpace:"pre!important",margin:"0!important"},".os-text-inherit":{fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit",fontStyle:"inherit",fontVariant:"inherit",textTransform:"inherit",textDecoration:"inherit",textIndent:"inherit",textAlign:"inherit",textShadow:"inherit",textOverflow:"inherit",letterSpacing:"inherit",wordSpacing:"inherit",lineHeight:"inherit",unicodeBidi:"inherit",direction:"inherit",color:"inherit",cursor:"text"},".os-resize-observer, .os-resize-observer-host":{boxSizing:"inherit",display:"block",opacity:0,position:"absolute",top:0,left:0,height:"100%",width:"100%",overflow:"hidden",pointerEvents:"none",zIndex:-1},".os-resize-observer-host":{padding:"inherit",border:"inherit",borderColor:"transparent",borderStyle:"solid",boxSizing:"border-box"},".os-resize-observer-host:after":{content:"''"},".os-resize-observer-host>.os-resize-observer, .os-resize-observer-host:after":{height:"200%",width:"200%",padding:"inherit",border:"inherit",margin:0,display:"block",boxSizing:"content-box"},".os-resize-observer.observed, object.os-resize-observer":{boxSizing:"border-box!important"},".os-size-auto-observer":{boxSizing:"inherit!important",height:"100%",width:"inherit",maxWidth:1,position:"relative",float:"left",maxHeight:1,overflow:"hidden",zIndex:-1,padding:0,margin:0,pointerEvents:"none",flexGrow:"inherit",flexShrink:0,flexBasis:0},".os-size-auto-observer>.os-resize-observer":{width:"1000%",height:"1000%",minHeight:1,minWidth:1},".os-resize-observer-item":{position:"absolute",top:0,right:0,bottom:0,left:0,overflow:"hidden",zIndex:-1,opacity:0,direction:"ltr!important",flex:"none!important"},".os-resize-observer-item-final":{position:"absolute",left:0,top:0,transition:"none!important",flex:"none!important"},".os-resize-observer":{animationDuration:".001s",animationName:"".concat(hsResizeObserverDummyAnimation)},".os-host-transition>.os-scrollbar, .os-host-transition>.os-scrollbar-corner":{transition:"opacity .3s,visibility .3s,top .3s,right .3s,bottom .3s,left .3s"},"html.os-html>.os-host>.os-scrollbar":{position:"absolute",zIndex:999999},".os-scrollbar, .os-scrollbar-corner":{position:"absolute",opacity:1,zIndex:1},".os-scrollbar-corner":{bottom:0,right:0,height:10,width:10,backgroundColor:"transparent"},".os-scrollbar":{pointerEvents:"none",padding:2,boxSizing:"border-box",background:0},".os-scrollbar-track":{pointerEvents:"auto",position:"relative",height:"100%",width:"100%",padding:"0!important",border:"0!important"},".os-scrollbar-handle":{pointerEvents:"auto",position:"absolute",width:"100%",height:"100%"},".os-scrollbar-handle-off, .os-scrollbar-track-off":{pointerEvents:"none"},".os-scrollbar.os-scrollbar-unusable, .os-scrollbar.os-scrollbar-unusable *":{pointerEvents:"none!important"},".os-scrollbar.os-scrollbar-unusable .os-scrollbar-handle":{opacity:"0!important"},".os-scrollbar-horizontal":{bottom:0,left:0,right:10,height:10},".os-scrollbar-vertical":{top:0,right:0,bottom:10,width:10},".os-host-rtl>.os-scrollbar-horizontal":{right:0},".os-host-rtl>.os-scrollbar-vertical":{right:"auto",left:0},".os-host-rtl>.os-scrollbar-corner":{right:"auto",left:0},".os-scrollbar-auto-hidden, .os-padding+.os-scrollbar-corner, .os-host-resize-disabled.os-host-scrollbar-horizontal-hidden>.os-scrollbar-corner, .os-host-scrollbar-horizontal-hidden>.os-scrollbar-horizontal, .os-host-resize-disabled.os-host-scrollbar-vertical-hidden>.os-scrollbar-corner, .os-host-scrollbar-vertical-hidden>.os-scrollbar-vertical, .os-scrollbar-horizontal.os-scrollbar-auto-hidden+.os-scrollbar-vertical+.os-scrollbar-corner, .os-scrollbar-horizontal+.os-scrollbar-vertical.os-scrollbar-auto-hidden+.os-scrollbar-corner, .os-scrollbar-horizontal.os-scrollbar-auto-hidden+.os-scrollbar-vertical.os-scrollbar-auto-hidden+.os-scrollbar-corner":{opacity:0,visibility:"hidden",pointerEvents:"none"},".os-scrollbar-corner-resize-both":{cursor:"nwse-resize"},".os-host-rtl>.os-scrollbar-corner-resize-both":{cursor:"nesw-resize"},".os-scrollbar-corner-resize-horizontal":{cursor:"ew-resize"},".os-scrollbar-corner-resize-vertical":{cursor:"ns-resize"},".os-dragging .os-scrollbar-corner.os-scrollbar-corner-resize":{cursor:"default"},".os-host-resize-disabled.os-host-scrollbar-horizontal-hidden>.os-scrollbar-vertical":{top:0,bottom:0},".os-host-resize-disabled.os-host-scrollbar-vertical-hidden>.os-scrollbar-horizontal, .os-host-rtl.os-host-resize-disabled.os-host-scrollbar-vertical-hidden>.os-scrollbar-horizontal":{right:0,left:0},".os-scrollbar:hover, .os-scrollbar-corner.os-scrollbar-corner-resize":{opacity:"1!important",visibility:"visible!important"},".os-scrollbar-corner.os-scrollbar-corner-resize":{backgroundImage:"linear-gradient(135deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.4) 100%)",backgroundRepeat:"no-repeat",backgroundPosition:"100% 100%",pointerEvents:"auto!important"},".os-host-rtl>.os-scrollbar-corner.os-scrollbar-corner-resize":{transform:"scale(-1,1)"},".os-host-overflow":{overflow:"hidden!important"},".os-theme-dark.os-host-rtl>.os-scrollbar-horizontal":{left:10,right:0},".os-scrollbar.os-scrollbar-unusable":{background:0},".os-scrollbar>.os-scrollbar-track":{background:0},".os-scrollbar-horizontal>.os-scrollbar-track>.os-scrollbar-handle":{minWidth:30},".os-scrollbar-vertical>.os-scrollbar-track>.os-scrollbar-handle":{minHeight:30},".os-theme-dark.os-host-transition>.os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle":{transition:"background-color .3s"},".os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle, .os-scrollbar>.os-scrollbar-track":{borderRadius:10},".os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle":{background:theme.color.mediumdark,opacity:.5},".os-scrollbar:hover>.os-scrollbar-track>.os-scrollbar-handle":{opacity:.6},".os-scrollbar-horizontal .os-scrollbar-handle:before, .os-scrollbar-vertical .os-scrollbar-handle:before":{content:"''",position:"absolute",left:0,right:0,top:0,bottom:0,display:"block"},".os-theme-dark.os-host-scrollbar-horizontal-hidden>.os-scrollbar-horizontal .os-scrollbar-handle:before, .os-theme-dark.os-host-scrollbar-vertical-hidden>.os-scrollbar-vertical .os-scrollbar-handle:before":{display:"none"},".os-scrollbar-horizontal .os-scrollbar-handle:before":{top:-6,bottom:-2},".os-scrollbar-vertical .os-scrollbar-handle:before":{left:-6,right:-2},".os-host-rtl.os-scrollbar-vertical .os-scrollbar-handle:before":{right:-6,left:-2}}},GlobalScrollAreaStyles=function GlobalScrollAreaStyles(){return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_storybook_theming__WEBPACK_IMPORTED_MODULE_3__.a,{styles:getScrollAreaStyles})}}}]); \ No newline at end of file diff --git a/15.cae363b0.iframe.bundle.js b/15.cae363b0.iframe.bundle.js new file mode 100644 index 000000000..39041a7ac --- /dev/null +++ b/15.cae363b0.iframe.bundle.js @@ -0,0 +1,3 @@ +/*! For license information please see 15.cae363b0.iframe.bundle.js.LICENSE.txt */ +(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{"./node_modules/@storybook/components/dist/esm/OverlayScrollbars-1355f44c.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"OverlayScrollbarsComponent",(function(){return OverlayScrollbarsComponent})),__webpack_require__.d(__webpack_exports__,"default",(function(){return OverlayScrollbarsComponent}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.string.split.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.match.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.splice.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.find.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.number.to-fixed.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var _index_681e4b07_js__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/@storybook/components/dist/esm/index-681e4b07.js"),react__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_23___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_23__);__webpack_require__("./node_modules/memoizerific/memoizerific.js"),__webpack_require__("./node_modules/@storybook/csf/dist/index.js");function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}var OverlayScrollbars$1={exports:{}};!function(module){var global;global="undefined"!=typeof window?window:_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_22__.H,module.exports=function(window,document,undefined$1){var _targets,_instancePropertyString,_easingsMath,PLUGINNAME="OverlayScrollbars",TYPES={o:"object",f:"function",a:"array",s:"string",b:"boolean",n:"number",u:"undefined",z:"null"},LEXICON={c:"class",s:"style",i:"id",l:"length",p:"prototype",ti:"tabindex",oH:"offsetHeight",cH:"clientHeight",sH:"scrollHeight",oW:"offsetWidth",cW:"clientWidth",sW:"scrollWidth",hOP:"hasOwnProperty",bCR:"getBoundingClientRect"},VENDORS=function(){var jsCache={},cssCache={},cssPrefixes=["-webkit-","-moz-","-o-","-ms-"],jsPrefixes=["WebKit","Moz","O","MS"];function firstLetterToUpper(str){return str.charAt(0).toUpperCase()+str.slice(1)}return{_cssPrefixes:cssPrefixes,_jsPrefixes:jsPrefixes,_cssProperty:function _cssProperty(name){var result=cssCache[name];if(cssCache[LEXICON.hOP](name))return result;for(var resultPossibilities,v,currVendorWithoutDashes,uppercasedName=firstLetterToUpper(name),elmStyle=document.createElement("div")[LEXICON.s],i=0;i0&&length-1 in obj)}function stripAndCollapse(value){return(value.match(_rnothtmlwhite)||[]).join(_strSpace)}function matches(elem,selector){for(var nodeList=(elem.parentNode||document).querySelectorAll(selector)||[],i=nodeList[LEXICON.l];i--;)if(nodeList[i]==elem)return!0;return!1}function insertAdjacentElement(el,strategy,child){if(COMPATIBILITY.isA(child))for(var i=0;i0?(nextAnim=animObj.q[0],_animate(animObj.el,nextAnim.props,nextAnim.duration,nextAnim.easing,nextAnim.complete,!0)):(index=inArray(animObj,_animations))>-1&&_animations.splice(index,1)}function setAnimationValue(el,prop,value){prop===_strScrollLeft||prop===_strScrollTop?el[prop]=value:setCSSVal(el,prop,value)}function _animate(el,props,options,easing,complete,guaranteedNext){var key,animObj,progress,step,specialEasing,duration,hasOptions=isPlainObject(options),from={},to={},i=0;for(hasOptions?(easing=options.easing,progress=options.progress,step=options.step,specialEasing=options.specialEasing,complete=options.complete,duration=options.duration):duration=options,specialEasing=specialEasing||{},duration=duration||400,easing=easing||"swing",guaranteedNext=guaranteedNext||!1;i<_animations[LEXICON.l];i++)if(_animations[i].el===el){animObj=_animations[i];break}for(key in animObj||(animObj={el:el,q:[]},_animations.push(animObj)),props)from[key]=key===_strScrollLeft||key===_strScrollTop?el[key]:FakejQuery(el).css(key);for(key in from)from[key]!==props[key]&&props[key]!==undefined$1&&(to[key]=props[key]);if(isEmptyObject(to))guaranteedNext&&startNextAnimationInQ(animObj);else{var timeNow,end,percent,fromVal,toVal,easedVal,timeStart,_frame,elapsed,qPos=guaranteedNext?0:inArray(qObj,animObj.q),qObj={props:to,duration:hasOptions?options:duration,easing:easing,complete:complete};if(-1===qPos&&(qPos=animObj.q[LEXICON.l],animObj.q.push(qObj)),0===qPos)if(duration>0)timeStart=COMPATIBILITY.now(),_frame=function frame(){for(key in timeNow=COMPATIBILITY.now(),elapsed=timeNow-timeStart,end=qObj.stop||elapsed>=duration,percent=1-(MATH.max(0,timeStart+duration-timeNow)/duration||0),to)fromVal=parseFloat(from[key]),toVal=parseFloat(to[key]),easedVal=(toVal-fromVal)*EASING[specialEasing[key]||easing](percent,percent*duration,0,1,duration)+fromVal,setAnimationValue(el,key,easedVal),isFunction(step)&&step(easedVal,{elem:el,prop:key,start:fromVal,now:easedVal,end:toVal,pos:percent,options:{easing:easing,speacialEasing:specialEasing,duration:duration,complete:complete,step:step},startTime:timeStart});isFunction(progress)&&progress({},percent,MATH.max(0,duration-elapsed)),end?(startNextAnimationInQ(animObj),isFunction(complete)&&complete()):qObj.frame=COMPATIBILITY.rAF()(_frame)},qObj.frame=COMPATIBILITY.rAF()(_frame);else{for(key in to)setAnimationValue(el,key,to[key]);startNextAnimationInQ(animObj)}}}function _stop(el,clearQ,jumpToEnd){for(var animObj,qObj,key,i=0;i<_animations[LEXICON.l];i++)if((animObj=_animations[i]).el===el){if(animObj.q[LEXICON.l]>0){if((qObj=animObj.q[0]).stop=!0,COMPATIBILITY.cAF()(qObj.frame),animObj.q.splice(0,1),jumpToEnd)for(key in qObj.props)setAnimationValue(el,key,qObj.props[key]);clearQ?animObj.q=[]:startNextAnimationInQ(animObj,!1)}break}}function elementIsVisible(el){return!!(el[LEXICON.oW]||el[LEXICON.oH]||el.getClientRects()[LEXICON.l])}function FakejQuery(selector){if(0===arguments[LEXICON.l])return this;var elms,el,base=new FakejQuery,elements=selector,i=0;if(_type(selector)==TYPES.s)for(elements=[],"<"===selector.charAt(0)?((el=document.createElement("div")).innerHTML=selector,elms=el.children):elms=document.querySelectorAll(selector);i0;)deepest=deepest.childNodes[0];for(i=0;nodes[LEXICON.l]-i;deepest.firstChild===nodes[0]&&i++)deepest.appendChild(nodes[i]);var nextSibling=previousSibling?previousSibling.nextSibling:parent.firstChild;return parent.insertBefore(wrapper,nextSibling),this},wrapInner:function wrapInner(wrapperHTML){return this.each((function(){var el=FakejQuery(this),contents=el.contents();contents[LEXICON.l]?contents.wrapAll(wrapperHTML):el.append(wrapperHTML)}))},wrap:function wrap(wrapperHTML){return this.each((function(){FakejQuery(this).wrapAll(wrapperHTML)}))},css:function css(styles,val){var el,key,cptStyle,getCptStyle=window.getComputedStyle;return _type(styles)==TYPES.s?val===undefined$1?(el=this[0],cptStyle=getCptStyle?getCptStyle(el,null):el.currentStyle[styles],getCptStyle?null!=cptStyle?cptStyle.getPropertyValue(styles):el[LEXICON.s][styles]:cptStyle):this.each((function(){setCSSVal(this,styles,val)})):this.each((function(){for(key in styles)setCSSVal(this,key,styles[key])}))},hasClass:function hasClass(className){for(var elem,classList,i=0,classNamePrepared=_strSpace+className+_strSpace;elem=this[i++];){if((classList=elem.classList)&&classList.contains(className))return!0;if(1===elem.nodeType&&(_strSpace+stripAndCollapse(elem.className+_strEmpty)+_strSpace).indexOf(classNamePrepared)>-1)return!0}return!1},addClass:function addClass(className){var classes,elem,cur,curValue,clazz,finalValue,supportClassList,elmClassList,i=0,v=0;if(className)for(classes=className.match(_rnothtmlwhite)||[];elem=this[i++];)if(elmClassList=elem.classList,supportClassList===undefined$1&&(supportClassList=elmClassList!==undefined$1),supportClassList)for(;clazz=classes[v++];)elmClassList.add(clazz);else if(curValue=elem.className+_strEmpty,cur=1===elem.nodeType&&_strSpace+stripAndCollapse(curValue)+_strSpace){for(;clazz=classes[v++];)cur.indexOf(_strSpace+clazz+_strSpace)<0&&(cur+=clazz+_strSpace);curValue!==(finalValue=stripAndCollapse(cur))&&(elem.className=finalValue)}return this},removeClass:function removeClass(className){var classes,elem,cur,curValue,clazz,finalValue,supportClassList,elmClassList,i=0,v=0;if(className)for(classes=className.match(_rnothtmlwhite)||[];elem=this[i++];)if(elmClassList=elem.classList,supportClassList===undefined$1&&(supportClassList=elmClassList!==undefined$1),supportClassList)for(;clazz=classes[v++];)elmClassList.remove(clazz);else if(curValue=elem.className+_strEmpty,cur=1===elem.nodeType&&_strSpace+stripAndCollapse(curValue)+_strSpace){for(;clazz=classes[v++];)for(;cur.indexOf(_strSpace+clazz+_strSpace)>-1;)cur=cur.replace(_strSpace+clazz+_strSpace,_strSpace);curValue!==(finalValue=stripAndCollapse(cur))&&(elem.className=finalValue)}return this},hide:function hide(){return this.each((function(){this[LEXICON.s].display="none"}))},show:function show(){return this.each((function(){this[LEXICON.s].display="block"}))},attr:function attr(attrName,value){for(var el,i=0;el=this[i++];){if(value===undefined$1)return el.getAttribute(attrName);el.setAttribute(attrName,value)}return this},removeAttr:function removeAttr(attrName){return this.each((function(){this.removeAttribute(attrName)}))},offset:function offset(){var rect=this[0][LEXICON.bCR](),scrollLeft=window.pageXOffset||document.documentElement[_strScrollLeft],scrollTop=window.pageYOffset||document.documentElement[_strScrollTop];return{top:rect.top+scrollTop,left:rect.left+scrollLeft}},position:function position(){var el=this[0];return{top:el.offsetTop,left:el.offsetLeft}},scrollLeft:function scrollLeft(value){for(var el,i=0;el=this[i++];){if(value===undefined$1)return el[_strScrollLeft];el[_strScrollLeft]=value}return this},scrollTop:function scrollTop(value){for(var el,i=0;el=this[i++];){if(value===undefined$1)return el[_strScrollTop];el[_strScrollTop]=value}return this},val:function val(value){var el=this[0];return value?(el.value=value,this):el.value},first:function first(){return this.eq(0)},last:function last(){return this.eq(-1)},eq:function eq(index){return FakejQuery(this[index>=0?index:this[LEXICON.l]+index])},find:function find(selector){var i,children=[];return this.each((function(){var ch=this.querySelectorAll(selector);for(i=0;i-1){if(!(argLen>1))return _targets[index][_instancePropertyString];delete target[_instancePropertyString],_targets.splice(index,1)}}}),PLUGIN=function(){var _plugin,_pluginsGlobals,_pluginsAutoUpdateLoop,type,possibleTemplateTypes,restrictedStringsSplit,restrictedStringsPossibilitiesSplit,classNameAllowedValues,numberAllowedValues,booleanNullAllowedValues,booleanTrueTemplate,booleanFalseTemplate,callbackTemplate,overflowBehaviorAllowedValues,optionsDefaultsAndTemplate,convert,_pluginsExtensions=[],_pluginsOptions=(type=COMPATIBILITY.type,possibleTemplateTypes=[TYPES.b,TYPES.n,TYPES.s,TYPES.a,TYPES.o,TYPES.f,TYPES.z],restrictedStringsSplit=" ",restrictedStringsPossibilitiesSplit=":",classNameAllowedValues=[TYPES.z,TYPES.s],numberAllowedValues=TYPES.n,booleanNullAllowedValues=[TYPES.z,TYPES.b],booleanTrueTemplate=[!0,TYPES.b],booleanFalseTemplate=[!1,TYPES.b],callbackTemplate=[null,[TYPES.z,TYPES.f]],overflowBehaviorAllowedValues="v-h:visible-hidden v-s:visible-scroll s:scroll h:hidden",optionsDefaultsAndTemplate={className:["os-theme-dark",classNameAllowedValues],resize:["none","n:none b:both h:horizontal v:vertical"],sizeAutoCapable:booleanTrueTemplate,clipAlways:booleanTrueTemplate,normalizeRTL:booleanTrueTemplate,paddingAbsolute:booleanFalseTemplate,autoUpdate:[null,booleanNullAllowedValues],autoUpdateInterval:[33,numberAllowedValues],updateOnLoad:[["img"],[TYPES.s,TYPES.a,TYPES.z]],nativeScrollbarsOverlaid:{showNativeScrollbars:booleanFalseTemplate,initialize:booleanTrueTemplate},overflowBehavior:{x:["scroll",overflowBehaviorAllowedValues],y:["scroll",overflowBehaviorAllowedValues]},scrollbars:{visibility:["auto","v:visible h:hidden a:auto"],autoHide:["never","n:never s:scroll l:leave m:move"],autoHideDelay:[800,numberAllowedValues],dragScrolling:booleanTrueTemplate,clickScrolling:booleanFalseTemplate,touchSupport:booleanTrueTemplate,snapHandle:booleanFalseTemplate},textarea:{dynWidth:booleanFalseTemplate,dynHeight:booleanFalseTemplate,inheritedAttrs:[["style","class"],[TYPES.s,TYPES.a,TYPES.z]]},callbacks:{onInitialized:callbackTemplate,onInitializationWithdrawn:callbackTemplate,onDestroyed:callbackTemplate,onScrollStart:callbackTemplate,onScroll:callbackTemplate,onScrollStop:callbackTemplate,onOverflowChanged:callbackTemplate,onOverflowAmountChanged:callbackTemplate,onDirectionChanged:callbackTemplate,onContentSizeChanged:callbackTemplate,onHostSizeChanged:callbackTemplate,onUpdated:callbackTemplate}},{_defaults:(convert=function convert(template){return function recursive(obj){var key,val,valType;for(key in obj)obj[LEXICON.hOP](key)&&(val=obj[key],(valType=type(val))==TYPES.a?obj[key]=val[template?1:0]:valType==TYPES.o&&(obj[key]=recursive(val)));return obj}(FRAMEWORK.extend(!0,{},optionsDefaultsAndTemplate))})(),_template:convert(!0),_validate:function _validate(obj,template,writeErrors,diffObj){var validatedOptions={},validatedOptionsPrepared={},objectCopy=FRAMEWORK.extend(!0,{},obj),inArray=FRAMEWORK.inArray,isEmptyObj=FRAMEWORK.isEmptyObject,checkObjectProps=function checkObjectProps(data,template,diffData,validatedOptions,validatedOptionsPrepared,prevPropName){for(var prop in template)if(template[LEXICON.hOP](prop)&&data[LEXICON.hOP](prop)){var restrictedStringValuesSplit,restrictedStringValuesPossibilitiesSplit,isRestrictedValue,mainPossibility,currType,i,v,j,isValid=!1,isDiff=!1,templateValue=template[prop],templateValueType=type(templateValue),templateIsComplex=templateValueType==TYPES.o,templateTypes=COMPATIBILITY.isA(templateValue)?templateValue:[templateValue],dataDiffValue=diffData[prop],dataValue=data[prop],dataValueType=type(dataValue),propPrefix=prevPropName?prevPropName+".":"",error='The option "'+propPrefix+prop+"\" wasn't set, because",errorPossibleTypes=[],errorRestrictedStrings=[];if(dataDiffValue=dataDiffValue===undefined$1?{}:dataDiffValue,templateIsComplex&&dataValueType==TYPES.o)validatedOptions[prop]={},validatedOptionsPrepared[prop]={},checkObjectProps(dataValue,templateValue,dataDiffValue,validatedOptions[prop],validatedOptionsPrepared[prop],propPrefix+prop),FRAMEWORK.each([data,validatedOptions,validatedOptionsPrepared],(function(index,value){isEmptyObj(value[prop])&&delete value[prop]}));else if(!templateIsComplex){for(i=0;i0?"\r\nValid strings are: [ "+errorRestrictedStrings.join(", ").split(restrictedStringsPossibilitiesSplit).join(", ")+" ].":"")),delete data[prop]}}};return checkObjectProps(objectCopy,template,diffObj||{},validatedOptions,validatedOptionsPrepared),!isEmptyObj(objectCopy)&&writeErrors&&console.warn("The following options are discarded due to invalidity:\r\n"+window.JSON.stringify(objectCopy,null,2)),{_default:validatedOptions,_prepared:validatedOptionsPrepared}}});function initOverlayScrollbarsStatics(){_pluginsGlobals||(_pluginsGlobals=new OverlayScrollbarsGlobals(_pluginsOptions._defaults)),_pluginsAutoUpdateLoop||(_pluginsAutoUpdateLoop=new OverlayScrollbarsAutoUpdateLoop(_pluginsGlobals))}function OverlayScrollbarsGlobals(defaultOptions){var _base=this,strOverflow="overflow",strHidden="hidden",strScroll="scroll",bodyElement=FRAMEWORK("body"),scrollbarDummyElement=FRAMEWORK('
'),scrollbarDummyElement0=scrollbarDummyElement[0],dummyContainerChild=FRAMEWORK(scrollbarDummyElement.children("div").eq(0));bodyElement.append(scrollbarDummyElement),scrollbarDummyElement.hide().show();var nativeScrollbarSize=calcNativeScrollbarSize(scrollbarDummyElement0),nativeScrollbarIsOverlaid={x:0===nativeScrollbarSize.x,y:0===nativeScrollbarSize.y},msie=function(){var result,ua=window.navigator.userAgent,strIndexOf="indexOf",strSubString="substring",msie=ua[strIndexOf]("MSIE "),trident=ua[strIndexOf]("Trident/"),edge=ua[strIndexOf]("Edge/"),rv=ua[strIndexOf]("rv:"),parseIntFunc=parseInt;return msie>0?result=parseIntFunc(ua[strSubString](msie+5,ua[strIndexOf](".",msie)),10):trident>0?result=parseIntFunc(ua[strSubString](rv+3,ua[strIndexOf](".",rv)),10):edge>0&&(result=parseIntFunc(ua[strSubString](edge+5,ua[strIndexOf](".",edge)),10)),result}();function calcNativeScrollbarSize(measureElement){return{x:measureElement[LEXICON.oH]-measureElement[LEXICON.cH],y:measureElement[LEXICON.oW]-measureElement[LEXICON.cW]}}FRAMEWORK.extend(_base,{defaultOptions:defaultOptions,msie:msie,autoUpdateLoop:!1,autoUpdateRecommended:!COMPATIBILITY.mO(),nativeScrollbarSize:nativeScrollbarSize,nativeScrollbarIsOverlaid:nativeScrollbarIsOverlaid,nativeScrollbarStyling:function(){var result=!1;scrollbarDummyElement.addClass("os-viewport-native-scrollbars-invisible");try{result="none"===scrollbarDummyElement.css("scrollbar-width")&&(msie>9||!msie)||"none"===window.getComputedStyle(scrollbarDummyElement0,"::-webkit-scrollbar").getPropertyValue("display")}catch(ex){}return result}(),overlayScrollbarDummySize:{x:30,y:30},cssCalc:VENDORS._cssPropertyValue("width","calc","(1px)")||null,restrictedMeasuring:function(){scrollbarDummyElement.css(strOverflow,strHidden);var scrollSize={w:scrollbarDummyElement0[LEXICON.sW],h:scrollbarDummyElement0[LEXICON.sH]};scrollbarDummyElement.css(strOverflow,"visible");var scrollSize2={w:scrollbarDummyElement0[LEXICON.sW],h:scrollbarDummyElement0[LEXICON.sH]};return scrollSize.w-scrollSize2.w!=0||scrollSize.h-scrollSize2.h!=0}(),rtlScrollBehavior:function(){scrollbarDummyElement.css({"overflow-y":strHidden,"overflow-x":strScroll,direction:"rtl"}).scrollLeft(0);var dummyContainerOffset=scrollbarDummyElement.offset(),dummyContainerChildOffset=dummyContainerChild.offset();scrollbarDummyElement.scrollLeft(-999);var dummyContainerChildOffsetAfterScroll=dummyContainerChild.offset();return{i:dummyContainerOffset.left===dummyContainerChildOffset.left,n:dummyContainerChildOffset.left!==dummyContainerChildOffsetAfterScroll.left}}(),supportTransform:!!VENDORS._cssProperty("transform"),supportTransition:!!VENDORS._cssProperty("transition"),supportPassiveEvents:function(){var supportsPassive=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function get(){supportsPassive=!0}}))}catch(e){}return supportsPassive}(),supportResizeObserver:!!COMPATIBILITY.rO(),supportMutationObserver:!!COMPATIBILITY.mO()}),scrollbarDummyElement.removeAttr(LEXICON.s).remove(),function(){if(!nativeScrollbarIsOverlaid.x||!nativeScrollbarIsOverlaid.y){var abs=MATH.abs,windowWidth=COMPATIBILITY.wW(),windowHeight=COMPATIBILITY.wH(),windowDpr=getWindowDPR(),onResize=function onResize(){if(INSTANCES().length>0){var newW=COMPATIBILITY.wW(),newH=COMPATIBILITY.wH(),deltaW=newW-windowWidth,deltaH=newH-windowHeight;if(0===deltaW&&0===deltaH)return;var newScrollbarSize,deltaWRatio=MATH.round(newW/(windowWidth/100)),deltaHRatio=MATH.round(newH/(windowHeight/100)),absDeltaW=abs(deltaW),absDeltaH=abs(deltaH),absDeltaWRatio=abs(deltaWRatio),absDeltaHRatio=abs(deltaHRatio),newDPR=getWindowDPR(),deltaIsBigger=absDeltaW>2&&absDeltaH>2,difference=!differenceIsBiggerThanOne(absDeltaWRatio,absDeltaHRatio),isZoom=deltaIsBigger&&difference&&newDPR!==windowDpr&&windowDpr>0,oldScrollbarSize=_base.nativeScrollbarSize;isZoom&&(bodyElement.append(scrollbarDummyElement),newScrollbarSize=_base.nativeScrollbarSize=calcNativeScrollbarSize(scrollbarDummyElement[0]),scrollbarDummyElement.remove(),oldScrollbarSize.x===newScrollbarSize.x&&oldScrollbarSize.y===newScrollbarSize.y||FRAMEWORK.each(INSTANCES(),(function(){INSTANCES(this)&&INSTANCES(this).update("zoom")}))),windowWidth=newW,windowHeight=newH,windowDpr=newDPR}};FRAMEWORK(window).on("resize",onResize)}function differenceIsBiggerThanOne(valOne,valTwo){var absValOne=abs(valOne),absValTwo=abs(valTwo);return!(absValOne===absValTwo||absValOne+1===absValTwo||absValOne-1===absValTwo)}function getWindowDPR(){var dDPI=window.screen.deviceXDPI||0,sDPI=window.screen.logicalXDPI||1;return window.devicePixelRatio||dDPI/sDPI}}()}function OverlayScrollbarsAutoUpdateLoop(globals){var _loopID,_base=this,_inArray=FRAMEWORK.inArray,_getNow=COMPATIBILITY.now,_strAutoUpdate="autoUpdate",_strAutoUpdateInterval=_strAutoUpdate+"Interval",_strLength=LEXICON.l,_loopingInstances=[],_loopingInstancesIntervalCache=[],_loopIsActive=!1,_loopIntervalDefault=33,_loopInterval=_loopIntervalDefault,_loopTimeOld=_getNow(),loop=function loop(){if(_loopingInstances[_strLength]>0&&_loopIsActive){_loopID=COMPATIBILITY.rAF()((function(){loop()}));var lowestInterval,instance,instanceOptions,instanceAutoUpdateAllowed,instanceAutoUpdateInterval,now,timeNew=_getNow(),timeDelta=timeNew-_loopTimeOld;if(timeDelta>_loopInterval){_loopTimeOld=timeNew-timeDelta%_loopInterval,lowestInterval=_loopIntervalDefault;for(var i=0;i<_loopingInstances[_strLength];i++)(instance=_loopingInstances[i])!==undefined$1&&(instanceAutoUpdateAllowed=(instanceOptions=instance.options())[_strAutoUpdate],instanceAutoUpdateInterval=MATH.max(1,instanceOptions[_strAutoUpdateInterval]),now=_getNow(),(!0===instanceAutoUpdateAllowed||null===instanceAutoUpdateAllowed)&&now-_loopingInstancesIntervalCache[i]>instanceAutoUpdateInterval&&(instance.update("auto"),_loopingInstancesIntervalCache[i]=new Date(now+=instanceAutoUpdateInterval)),lowestInterval=MATH.max(1,MATH.min(lowestInterval,instanceAutoUpdateInterval)));_loopInterval=lowestInterval}}else _loopInterval=_loopIntervalDefault};_base.add=function(instance){-1===_inArray(instance,_loopingInstances)&&(_loopingInstances.push(instance),_loopingInstancesIntervalCache.push(_getNow()),_loopingInstances[_strLength]>0&&!_loopIsActive&&(_loopIsActive=!0,globals.autoUpdateLoop=_loopIsActive,loop()))},_base.remove=function(instance){var index=_inArray(instance,_loopingInstances);index>-1&&(_loopingInstancesIntervalCache.splice(index,1),_loopingInstances.splice(index,1),0===_loopingInstances[_strLength]&&_loopIsActive&&(_loopIsActive=!1,globals.autoUpdateLoop=_loopIsActive,_loopID!==undefined$1&&(COMPATIBILITY.cAF()(_loopID),_loopID=-1)))}}function OverlayScrollbarsInstance(pluginTargetElement,options,extensions,globals,autoUpdateLoop){var type=COMPATIBILITY.type,inArray=FRAMEWORK.inArray,each=FRAMEWORK.each,_base=new _plugin,_frameworkProto=FRAMEWORK[LEXICON.p];if(isHTMLElement(pluginTargetElement)){if(INSTANCES(pluginTargetElement)){var inst=INSTANCES(pluginTargetElement);return inst.options(options),inst}var _nativeScrollbarIsOverlaid,_overlayScrollbarDummySize,_rtlScrollBehavior,_autoUpdateRecommended,_msieVersion,_nativeScrollbarStyling,_cssCalc,_nativeScrollbarSize,_supportTransition,_supportTransform,_supportPassiveEvents,_supportResizeObserver,_supportMutationObserver,_initialized,_destroyed,_isTextarea,_isBody,_documentMixed,_domExists,_isBorderBox,_sizeAutoObserverAdded,_paddingX,_paddingY,_borderX,_borderY,_marginX,_marginY,_isRTL,_sleeping,_defaultOptions,_currentOptions,_currentPreparedOptions,_lastUpdateTime,_swallowedUpdateTimeout,_windowElement,_documentElement,_htmlElement,_bodyElement,_targetElement,_hostElement,_sizeAutoObserverElement,_sizeObserverElement,_paddingElement,_viewportElement,_contentElement,_contentArrangeElement,_contentGlueElement,_textareaCoverElement,_scrollbarCornerElement,_scrollbarHorizontalElement,_scrollbarHorizontalTrackElement,_scrollbarHorizontalHandleElement,_scrollbarVerticalElement,_scrollbarVerticalTrackElement,_scrollbarVerticalHandleElement,_windowElementNative,_documentElementNative,_targetElementNative,_hostElementNative,_sizeAutoObserverElementNative,_sizeObserverElementNative,_paddingElementNative,_viewportElementNative,_contentElementNative,_hostSizeCache,_contentScrollSizeCache,_arrangeContentSizeCache,_hasOverflowCache,_hideOverflowCache,_widthAutoCache,_heightAutoCache,_cssBoxSizingCache,_cssPaddingCache,_cssBorderCache,_cssMarginCache,_cssDirectionCache,_cssDirectionDetectedCache,_paddingAbsoluteCache,_clipAlwaysCache,_contentGlueSizeCache,_overflowBehaviorCache,_overflowAmountCache,_ignoreOverlayScrollbarHidingCache,_autoUpdateCache,_sizeAutoCapableCache,_contentElementScrollSizeChangeDetectedCache,_hostElementSizeChangeDetectedCache,_scrollbarsVisibilityCache,_scrollbarsAutoHideCache,_scrollbarsClickScrollingCache,_scrollbarsDragScrollingCache,_resizeCache,_normalizeRTLCache,_classNameCache,_oldClassName,_textareaAutoWrappingCache,_textareaInfoCache,_textareaSizeCache,_textareaDynHeightCache,_textareaDynWidthCache,_bodyMinSizeCache,_mutationObserverHost,_mutationObserverContent,_mutationObserverHostCallback,_mutationObserverContentCallback,_mutationObserversConnected,_textareaHasFocus,_scrollbarsAutoHideTimeoutId,_scrollbarsAutoHideMoveTimeoutId,_scrollbarsAutoHideDelay,_scrollbarsAutoHideNever,_scrollbarsAutoHideScroll,_scrollbarsAutoHideMove,_scrollbarsAutoHideLeave,_scrollbarsHandleHovered,_scrollbarsHandlesDefineScrollPos,_resizeNone,_resizeBoth,_resizeHorizontal,_resizeVertical,_contentBorderSize={},_scrollHorizontalInfo={},_scrollVerticalInfo={},_viewportSize={},_nativeScrollbarMinSize={},_strMinusHidden="-hidden",_strMarginMinus="margin-",_strPaddingMinus="padding-",_strBorderMinus="border-",_strTop="top",_strRight="right",_strBottom="bottom",_strLeft="left",_strMinMinus="min-",_strMaxMinus="max-",_strWidth="width",_strHeight="height",_strFloat="float",_strEmpty="",_strAuto="auto",_strSync="sync",_strScroll="scroll",_strHundredPercent="100%",_strX="x",_strY="y",_strDot=".",_strSpace=" ",_strScrollbar="scrollbar",_strMinusHorizontal="-horizontal",_strMinusVertical="-vertical",_strScrollLeft=_strScroll+"Left",_strScrollTop=_strScroll+"Top",_strMouseTouchDownEvent="mousedown touchstart",_strMouseTouchUpEvent="mouseup touchend touchcancel",_strMouseTouchMoveEvent="mousemove touchmove",_strMouseEnter="mouseenter",_strMouseLeave="mouseleave",_strKeyDownEvent="keydown",_strKeyUpEvent="keyup",_strSelectStartEvent="selectstart",_strTransitionEndEvent="transitionend webkitTransitionEnd oTransitionEnd",_strResizeObserverProperty="__overlayScrollbarsRO__",_cassNamesPrefix="os-",_classNameHTMLElement=_cassNamesPrefix+"html",_classNameHostElement=_cassNamesPrefix+"host",_classNameHostElementForeign=_classNameHostElement+"-foreign",_classNameHostTextareaElement=_classNameHostElement+"-textarea",_classNameHostScrollbarHorizontalHidden=_classNameHostElement+"-"+_strScrollbar+_strMinusHorizontal+_strMinusHidden,_classNameHostScrollbarVerticalHidden=_classNameHostElement+"-"+_strScrollbar+_strMinusVertical+_strMinusHidden,_classNameHostTransition=_classNameHostElement+"-transition",_classNameHostRTL=_classNameHostElement+"-rtl",_classNameHostResizeDisabled=_classNameHostElement+"-resize-disabled",_classNameHostScrolling=_classNameHostElement+"-scrolling",_classNameHostOverflow=_classNameHostElement+"-overflow",_classNameHostOverflowX=(_classNameHostOverflow=_classNameHostElement+"-overflow")+"-x",_classNameHostOverflowY=_classNameHostOverflow+"-y",_classNameTextareaElement=_cassNamesPrefix+"textarea",_classNameTextareaCoverElement=_classNameTextareaElement+"-cover",_classNamePaddingElement=_cassNamesPrefix+"padding",_classNameViewportElement=_cassNamesPrefix+"viewport",_classNameViewportNativeScrollbarsInvisible=_classNameViewportElement+"-native-scrollbars-invisible",_classNameViewportNativeScrollbarsOverlaid=_classNameViewportElement+"-native-scrollbars-overlaid",_classNameContentElement=_cassNamesPrefix+"content",_classNameContentArrangeElement=_cassNamesPrefix+"content-arrange",_classNameContentGlueElement=_cassNamesPrefix+"content-glue",_classNameSizeAutoObserverElement=_cassNamesPrefix+"size-auto-observer",_classNameResizeObserverElement=_cassNamesPrefix+"resize-observer",_classNameResizeObserverItemElement=_cassNamesPrefix+"resize-observer-item",_classNameResizeObserverItemFinalElement=_classNameResizeObserverItemElement+"-final",_classNameTextInherit=_cassNamesPrefix+"text-inherit",_classNameScrollbar=_cassNamesPrefix+_strScrollbar,_classNameScrollbarTrack=_classNameScrollbar+"-track",_classNameScrollbarTrackOff=_classNameScrollbarTrack+"-off",_classNameScrollbarHandle=_classNameScrollbar+"-handle",_classNameScrollbarHandleOff=_classNameScrollbarHandle+"-off",_classNameScrollbarUnusable=_classNameScrollbar+"-unusable",_classNameScrollbarAutoHidden=_classNameScrollbar+"-"+_strAuto+_strMinusHidden,_classNameScrollbarCorner=_classNameScrollbar+"-corner",_classNameScrollbarCornerResize=_classNameScrollbarCorner+"-resize",_classNameScrollbarCornerResizeB=_classNameScrollbarCornerResize+"-both",_classNameScrollbarCornerResizeH=_classNameScrollbarCornerResize+_strMinusHorizontal,_classNameScrollbarCornerResizeV=_classNameScrollbarCornerResize+_strMinusVertical,_classNameScrollbarHorizontal=_classNameScrollbar+_strMinusHorizontal,_classNameScrollbarVertical=_classNameScrollbar+_strMinusVertical,_classNameDragging=_cassNamesPrefix+"dragging",_classNameThemeNone=_cassNamesPrefix+"theme-none",_classNamesDynamicDestroy=[_classNameViewportNativeScrollbarsInvisible,_classNameViewportNativeScrollbarsOverlaid,_classNameScrollbarTrackOff,_classNameScrollbarHandleOff,_classNameScrollbarUnusable,_classNameScrollbarAutoHidden,_classNameScrollbarCornerResize,_classNameScrollbarCornerResizeB,_classNameScrollbarCornerResizeH,_classNameScrollbarCornerResizeV,_classNameDragging].join(_strSpace),_callbacksInitQeueue=[],_viewportAttrsFromTarget=[LEXICON.ti],_extensions={},_extensionsPrivateMethods="added removed on contract",_swallowedUpdateHints={},_swallowUpdateLag=42,_updateOnLoadEventName="load",_updateOnLoadElms=[],_updateAutoCache={},_mutationObserverAttrsTextarea=["wrap","cols","rows"],_mutationObserverAttrsHost=[LEXICON.i,LEXICON.c,LEXICON.s,"open"].concat(_viewportAttrsFromTarget),_destroyEvents=[];return _base.sleep=function(){_sleeping=!0},_base.update=function(force){var attrsChanged,contentSizeC,doUpdateAuto,mutHost,mutContent;if(!_destroyed)return type(force)==TYPES.s?force===_strAuto?(attrsChanged=meaningfulAttrsChanged(),contentSizeC=updateAutoContentSizeChanged(),(doUpdateAuto=attrsChanged||contentSizeC)&&update({_contentSizeChanged:contentSizeC,_changedOptions:_initialized?undefined$1:_currentPreparedOptions})):force===_strSync?_mutationObserversConnected?(mutHost=_mutationObserverHostCallback(_mutationObserverHost.takeRecords()),mutContent=_mutationObserverContentCallback(_mutationObserverContent.takeRecords())):mutHost=_base.update(_strAuto):"zoom"===force&&update({_hostSizeChanged:!0,_contentSizeChanged:!0}):(force=_sleeping||force,_sleeping=!1,_base.update(_strSync)&&!force||update({_force:force})),updateElementsOnLoad(),doUpdateAuto||mutHost||mutContent},_base.options=function(newOptions,value){var changedOps,option={};if(FRAMEWORK.isEmptyObject(newOptions)||!FRAMEWORK.isPlainObject(newOptions)){if(type(newOptions)!=TYPES.s)return _currentOptions;if(!(arguments.length>1))return getObjectPropVal(_currentOptions,newOptions);setObjectPropVal(option,newOptions,value),changedOps=setOptions(option)}else changedOps=setOptions(newOptions);FRAMEWORK.isEmptyObject(changedOps)||update({_changedOptions:changedOps})},_base.destroy=function(){if(!_destroyed){for(var extName in autoUpdateLoop.remove(_base),disconnectMutationObservers(),setupResizeObserver(_sizeObserverElement),setupResizeObserver(_sizeAutoObserverElement),_extensions)_base.removeExt(extName);for(;_destroyEvents[LEXICON.l]>0;)_destroyEvents.pop()();setupHostMouseTouchEvents(!0),_contentGlueElement&&remove(_contentGlueElement),_contentArrangeElement&&remove(_contentArrangeElement),_sizeAutoObserverAdded&&remove(_sizeAutoObserverElement),setupScrollbarsDOM(!0),setupScrollbarCornerDOM(!0),setupStructureDOM(!0);for(var i=0;i<_updateOnLoadElms[LEXICON.l];i++)FRAMEWORK(_updateOnLoadElms[i]).off(_updateOnLoadEventName,updateOnLoadCallback);_updateOnLoadElms=undefined$1,_destroyed=!0,_sleeping=!0,INSTANCES(pluginTargetElement,0),dispatchCallback("onDestroyed")}},_base.scroll=function(coordinates,duration,easing,complete){if(0===arguments.length||coordinates===undefined$1){var infoX=_scrollHorizontalInfo,infoY=_scrollVerticalInfo,normalizeInvert=_normalizeRTLCache&&_isRTL&&_rtlScrollBehavior.i,normalizeNegate=_normalizeRTLCache&&_isRTL&&_rtlScrollBehavior.n,scrollX=infoX._currentScroll,scrollXRatio=infoX._currentScrollRatio,maxScrollX=infoX._maxScroll;return scrollXRatio=normalizeInvert?1-scrollXRatio:scrollXRatio,scrollX=normalizeInvert?maxScrollX-scrollX:scrollX,maxScrollX*=normalizeNegate?-1:1,{position:{x:scrollX*=normalizeNegate?-1:1,y:infoY._currentScroll},ratio:{x:scrollXRatio,y:infoY._currentScrollRatio},max:{x:maxScrollX,y:infoY._maxScroll},handleOffset:{x:infoX._handleOffset,y:infoY._handleOffset},handleLength:{x:infoX._handleLength,y:infoY._handleLength},handleLengthRatio:{x:infoX._handleLengthRatio,y:infoY._handleLengthRatio},trackLength:{x:infoX._trackLength,y:infoY._trackLength},snappedHandleOffset:{x:infoX._snappedHandleOffset,y:infoY._snappedHandleOffset},isRTL:_isRTL,isRTLNormalized:_normalizeRTLCache}}_base.update(_strSync);var i,doScrollLeft,doScrollTop,animationOptions,settingsAxis,settingsScroll,settingsBlock,settingsMargin,finalElement,normalizeRTL=_normalizeRTLCache,coordinatesXAxisProps=[_strX,_strLeft,"l"],coordinatesYAxisProps=[_strY,_strTop,"t"],coordinatesOperators=["+=","-=","*=","/="],durationIsObject=type(duration)==TYPES.o,completeCallback=durationIsObject?duration.complete:complete,finalScroll={},specialEasing={},strEnd="end",strBegin="begin",strCenter="center",strNearest="nearest",strAlways="always",strNever="never",strIfNeeded="ifneeded",strLength=LEXICON.l,elementObjSettingsAxisValues=[_strX,_strY,"xy","yx"],elementObjSettingsBlockValues=[strBegin,strEnd,strCenter,strNearest],elementObjSettingsScrollValues=[strAlways,strNever,strIfNeeded],coordinatesIsElementObj=coordinates[LEXICON.hOP]("el"),possibleElement=coordinatesIsElementObj?coordinates.el:coordinates,possibleElementIsJQuery=!!(possibleElement instanceof FRAMEWORK||JQUERY)&&possibleElement instanceof JQUERY,possibleElementIsHTMLElement=!possibleElementIsJQuery&&isHTMLElement(possibleElement),updateScrollbarInfos=function updateScrollbarInfos(){doScrollLeft&&refreshScrollbarHandleOffset(!0),doScrollTop&&refreshScrollbarHandleOffset(!1)},proxyCompleteCallback=type(completeCallback)!=TYPES.f?undefined$1:function(){updateScrollbarInfos(),completeCallback()};function checkSettingsStringValue(currValue,allowedValues){for(i=0;i2&&(possibleOperator=rawScroll.substr(0,2),inArray(possibleOperator,coordinatesOperators)>-1&&(operator=possibleOperator)),rawScroll=(rawScroll=operator?rawScroll.substr(2):rawScroll)[strReplace](/min/g,0)[strReplace](//g,(normalizeShortcuts?"-":_strEmpty)+_strHundredPercent)[strReplace](/px/g,_strEmpty)[strReplace](/%/g,mult+maxScroll*(isRTLisX&&_rtlScrollBehavior.n?-1:1)/100)[strReplace](/vw/g,mult+_viewportSize.w)[strReplace](/vh/g,mult+_viewportSize.h),amount=parseToZeroOrNumber(isNaN(rawScroll)?parseToZeroOrNumber(evalFunc(rawScroll),!0).toFixed():rawScroll)):amount=rawScroll,amount!==undefined$1&&!isNaN(amount)&&type(amount)==TYPES.n){var normalizeIsRTLisX=normalizeRTL&&isRTLisX,operatorCurrScroll=currScroll*(normalizeIsRTLisX&&_rtlScrollBehavior.n?-1:1),invert=normalizeIsRTLisX&&_rtlScrollBehavior.i,negate=normalizeIsRTLisX&&_rtlScrollBehavior.n;switch(operatorCurrScroll=invert?maxScroll-operatorCurrScroll:operatorCurrScroll,operator){case"+=":finalValue=operatorCurrScroll+amount;break;case"-=":finalValue=operatorCurrScroll-amount;break;case"*=":finalValue=operatorCurrScroll*amount;break;case"/=":finalValue=operatorCurrScroll/amount;break;default:finalValue=amount}finalValue=invert?maxScroll-finalValue:finalValue,finalValue*=negate?-1:1,finalValue=isRTLisX&&_rtlScrollBehavior.n?MATH.min(0,MATH.max(maxScroll,finalValue)):MATH.max(0,MATH.min(maxScroll,finalValue))}return finalValue===currScroll?undefined$1:finalValue}function getPerAxisValue(value,valueInternalType,defaultValue,allowedValues){var valueArrLength,valueArrItem,resultDefault=[defaultValue,defaultValue],valueType=type(value);if(valueType==valueInternalType)value=[value,value];else if(valueType==TYPES.a){if((valueArrLength=value[strLength])>2||valueArrLength<1)value=resultDefault;else for(1===valueArrLength&&(value[1]=defaultValue),i=0;i0){margin=marginType==TYPES.n||marginType==TYPES.b?generateMargin([margin,margin,margin,margin]):marginType==TYPES.a?2===(marginLength=margin[strLength])?generateMargin([margin[0],margin[1],margin[0],margin[1]]):marginLength>=4?generateMargin(margin):marginDefault:marginType==TYPES.o?generateMargin([margin[_strTop],margin[_strRight],margin[_strBottom],margin[_strLeft]]):marginDefault,settingsAxis=checkSettingsStringValue(axis,elementObjSettingsAxisValues)?axis:"xy",settingsScroll=getPerAxisValue(scroll,TYPES.s,strAlways,elementObjSettingsScrollValues),settingsBlock=getPerAxisValue(block,TYPES.s,strBegin,elementObjSettingsBlockValues),settingsMargin=margin;var viewportScroll={l:_scrollHorizontalInfo._currentScroll,t:_scrollVerticalInfo._currentScroll},viewportOffset=_paddingElement.offset(),elementOffset=finalElement.offset(),doNotScroll={x:settingsScroll.x==strNever||settingsAxis==_strY,y:settingsScroll.y==strNever||settingsAxis==_strX};elementOffset[_strTop]-=settingsMargin[0],elementOffset[_strLeft]-=settingsMargin[3];var elementScrollCoordinates={x:MATH.round(elementOffset[_strLeft]-viewportOffset[_strLeft]+viewportScroll.l),y:MATH.round(elementOffset[_strTop]-viewportOffset[_strTop]+viewportScroll.t)};if(_isRTL&&(_rtlScrollBehavior.n||_rtlScrollBehavior.i||(elementScrollCoordinates.x=MATH.round(viewportOffset[_strLeft]-elementOffset[_strLeft]+viewportScroll.l)),_rtlScrollBehavior.n&&normalizeRTL&&(elementScrollCoordinates.x*=-1),_rtlScrollBehavior.i&&normalizeRTL&&(elementScrollCoordinates.x=MATH.round(viewportOffset[_strLeft]-elementOffset[_strLeft]+(_scrollHorizontalInfo._maxScroll-viewportScroll.l)))),settingsBlock.x!=strBegin||settingsBlock.y!=strBegin||settingsScroll.x==strIfNeeded||settingsScroll.y==strIfNeeded||_isRTL){var measuringElm=finalElement[0],rawElementSize=_supportTransform?measuringElm[LEXICON.bCR]():{width:measuringElm[LEXICON.oW],height:measuringElm[LEXICON.oH]},elementSize={w:rawElementSize[_strWidth]+settingsMargin[3]+settingsMargin[1],h:rawElementSize[_strHeight]+settingsMargin[0]+settingsMargin[2]},finalizeBlock=function finalizeBlock(isX){var vars=getScrollbarVars(isX),wh=vars._w_h,lt=vars._left_top,xy=vars._x_y,blockIsEnd=settingsBlock[xy]==(isX&&_isRTL?strBegin:strEnd),blockIsCenter=settingsBlock[xy]==strCenter,blockIsNearest=settingsBlock[xy]==strNearest,scrollNever=settingsScroll[xy]==strNever,scrollIfNeeded=settingsScroll[xy]==strIfNeeded,vpSize=_viewportSize[wh],vpOffset=viewportOffset[lt],elSize=elementSize[wh],elOffset=elementOffset[lt],divide=blockIsCenter?2:1,elementCenterOffset=elOffset+elSize/2,viewportCenterOffset=vpOffset+vpSize/2,isInView=elSize<=vpSize&&elOffset>=vpOffset&&elOffset+elSize<=vpOffset+vpSize;scrollNever?doNotScroll[xy]=!0:doNotScroll[xy]||((blockIsNearest||scrollIfNeeded)&&(doNotScroll[xy]=!!scrollIfNeeded&&isInView,blockIsEnd=elSizeviewportCenterOffset:elementCenterOffset0||durationIsObject)?durationIsObject?(duration.complete=proxyCompleteCallback,_viewportElement.animate(finalScroll,duration)):(animationOptions={duration:duration,complete:proxyCompleteCallback},COMPATIBILITY.isA(easing)||FRAMEWORK.isPlainObject(easing)?(specialEasing[_strScrollLeft]=easing[0]||easing.x,specialEasing[_strScrollTop]=easing[1]||easing.y,animationOptions.specialEasing=specialEasing):animationOptions.easing=easing,_viewportElement.animate(finalScroll,animationOptions)):(doScrollLeft&&_viewportElement[_strScrollLeft](finalScroll[_strScrollLeft]),doScrollTop&&_viewportElement[_strScrollTop](finalScroll[_strScrollTop]),updateScrollbarInfos())},_base.scrollStop=function(param1,param2,param3){return _viewportElement.stop(param1,param2,param3),_base},_base.getElements=function(elementName){var obj={target:_targetElementNative,host:_hostElementNative,padding:_paddingElementNative,viewport:_viewportElementNative,content:_contentElementNative,scrollbarHorizontal:{scrollbar:_scrollbarHorizontalElement[0],track:_scrollbarHorizontalTrackElement[0],handle:_scrollbarHorizontalHandleElement[0]},scrollbarVertical:{scrollbar:_scrollbarVerticalElement[0],track:_scrollbarVerticalTrackElement[0],handle:_scrollbarVerticalHandleElement[0]},scrollbarCorner:_scrollbarCornerElement[0]};return type(elementName)==TYPES.s?getObjectPropVal(obj,elementName):obj},_base.getState=function(stateProperty){function prepare(obj){if(!FRAMEWORK.isPlainObject(obj))return obj;var extended=extendDeep({},obj),changePropertyName=function changePropertyName(from,to){extended[LEXICON.hOP](from)&&(extended[to]=extended[from],delete extended[from])};return changePropertyName("w",_strWidth),changePropertyName("h",_strHeight),delete extended.c,extended}var obj={destroyed:!!prepare(_destroyed),sleeping:!!prepare(_sleeping),autoUpdate:prepare(!_mutationObserversConnected),widthAuto:prepare(_widthAutoCache),heightAuto:prepare(_heightAutoCache),padding:prepare(_cssPaddingCache),overflowAmount:prepare(_overflowAmountCache),hideOverflow:prepare(_hideOverflowCache),hasOverflow:prepare(_hasOverflowCache),contentScrollSize:prepare(_contentScrollSizeCache),viewportSize:prepare(_viewportSize),hostSize:prepare(_hostSizeCache),documentMixed:prepare(_documentMixed)};return type(stateProperty)==TYPES.s?getObjectPropVal(obj,stateProperty):obj},_base.ext=function(extName){var result,privateMethods=_extensionsPrivateMethods.split(" "),i=0;if(type(extName)==TYPES.s){if(_extensions[LEXICON.hOP](extName))for(result=extendDeep({},_extensions[extName]);i9||!_autoUpdateRecommended){targetElement.prepend(generateDiv(_classNameResizeObserverElement,generateDiv({c:_classNameResizeObserverItemElement,dir:"ltr"},generateDiv(_classNameResizeObserverItemElement,generateDiv(_classNameResizeObserverItemFinalElement))+generateDiv(_classNameResizeObserverItemElement,generateDiv({c:_classNameResizeObserverItemFinalElement,style:"width: 200%; height: 200%"})))));var isDirty,rAFId,currWidth,currHeight,observerElement=targetElement[0][strChildNodes][0][strChildNodes][0],shrinkElement=FRAMEWORK(observerElement[strChildNodes][1]),expandElement=FRAMEWORK(observerElement[strChildNodes][0]),expandElementChild=FRAMEWORK(expandElement[0][strChildNodes][0]),widthCache=observerElement[LEXICON.oW],heightCache=observerElement[LEXICON.oH],factor=2,nativeScrollbarSize=globals.nativeScrollbarSize,reset=function reset(){expandElement[_strScrollLeft](constScroll)[_strScrollTop](constScroll),shrinkElement[_strScrollLeft](constScroll)[_strScrollTop](constScroll)},onResized=function onResized(){rAFId=0,isDirty&&(widthCache=currWidth,heightCache=currHeight,callback())},onScroll=function onScroll(event){return currWidth=observerElement[LEXICON.oW],currHeight=observerElement[LEXICON.oH],isDirty=currWidth!=widthCache||currHeight!=heightCache,event&&isDirty&&!rAFId?(COMPATIBILITY.cAF()(rAFId),rAFId=COMPATIBILITY.rAF()(onResized)):event||onResized(),reset(),event&&(COMPATIBILITY.prvD(event),COMPATIBILITY.stpP(event)),!1},expandChildCSS={},observerElementCSS={};setTopRightBottomLeft(observerElementCSS,_strEmpty,[-(nativeScrollbarSize.y+1)*factor,nativeScrollbarSize.x*-factor,nativeScrollbarSize.y*-factor,-(nativeScrollbarSize.x+1)*factor]),FRAMEWORK(observerElement).css(observerElementCSS),expandElement.on(_strScroll,onScroll),shrinkElement.on(_strScroll,onScroll),targetElement.on(strAnimationStartEvent,(function(){onScroll(!1)})),expandChildCSS[_strWidth]=constScroll,expandChildCSS[_strHeight]=constScroll,expandElementChild.css(expandChildCSS),reset()}else{var attachEvent=_documentElementNative.attachEvent,isIE=_msieVersion!==undefined$1;if(attachEvent)targetElement.prepend(generateDiv(_classNameResizeObserverElement)),findFirst(targetElement,_strDot+_classNameResizeObserverElement)[0].attachEvent("onresize",callback);else{var obj=_documentElementNative.createElement(TYPES.o);obj.setAttribute(LEXICON.ti,"-1"),obj.setAttribute(LEXICON.c,_classNameResizeObserverElement),obj.onload=function(){var wnd=this.contentDocument.defaultView;wnd.addEventListener("resize",callback),wnd.document.documentElement.style.display="none"},obj.type="text/html",isIE&&targetElement.prepend(obj),obj.data="about:blank",isIE||targetElement.prepend(obj),targetElement.on(strAnimationStartEvent,callback)}}if(targetElement[0]===_sizeObserverElementNative){var directionChanged=function directionChanged(){var dir=_hostElement.css("direction"),css={},scrollLeftValue=0,result=!1;return dir!==_cssDirectionDetectedCache&&("ltr"===dir?(css[_strLeft]=0,css[_strRight]=_strAuto,scrollLeftValue=constScroll):(css[_strLeft]=_strAuto,css[_strRight]=0,scrollLeftValue=_rtlScrollBehavior.n?-constScroll:_rtlScrollBehavior.i?0:constScroll),_sizeObserverElement.children().eq(0).css(css),_sizeObserverElement[_strScrollLeft](scrollLeftValue)[_strScrollTop](constScroll),_cssDirectionDetectedCache=dir,result=!0),result};directionChanged(),addDestroyEventListener(targetElement,_strScroll,(function(event){return directionChanged()&&update(),COMPATIBILITY.prvD(event),COMPATIBILITY.stpP(event),!1}))}}else if(_supportResizeObserver){var element,resizeObserverObj=(element=targetElement.contents()[0])[_strResizeObserverProperty];resizeObserverObj&&(resizeObserverObj.disconnect(),delete element[_strResizeObserverProperty])}else remove(targetElement.children(_strDot+_classNameResizeObserverElement).eq(0))}}function createMutationObservers(){if(_supportMutationObserver){var mutationTarget,mutationAttrName,mutationIsClass,oldMutationVal,newClassVal,hostClassNameRegex,contentTimeout,now,sizeAuto,action,mutationObserverContentLag=11,mutationObserver=COMPATIBILITY.mO(),contentLastUpdate=COMPATIBILITY.now();_mutationObserverContentCallback=function _mutationObserverContentCallback(mutations){var doUpdate=!1;return _initialized&&!_sleeping&&(each(mutations,(function(){return!(doUpdate=isUnknownMutation(this))})),doUpdate&&(now=COMPATIBILITY.now(),sizeAuto=_heightAutoCache||_widthAutoCache,action=function action(){_destroyed||(contentLastUpdate=now,_isTextarea&&textareaUpdate(),sizeAuto?update():_base.update(_strAuto))},clearTimeout(contentTimeout),mutationObserverContentLag<=0||now-contentLastUpdate>mutationObserverContentLag||!sizeAuto?action():contentTimeout=setTimeout(action,mutationObserverContentLag))),doUpdate},_mutationObserverHost=new mutationObserver(_mutationObserverHostCallback=function _mutationObserverHostCallback(mutations){var mutation,doUpdate=!1,doUpdateForce=!1,mutatedAttrs=[];return _initialized&&!_sleeping&&(each(mutations,(function(){mutationTarget=(mutation=this).target,mutationAttrName=mutation.attributeName,mutationIsClass=mutationAttrName===LEXICON.c,oldMutationVal=mutation.oldValue,newClassVal=mutationTarget.className,_domExists&&mutationIsClass&&!doUpdateForce&&oldMutationVal.indexOf(_classNameHostElementForeign)>-1&&newClassVal.indexOf(_classNameHostElementForeign)<0&&(hostClassNameRegex=createHostClassNameRegExp(!0),_hostElementNative.className=newClassVal.split(_strSpace).concat(oldMutationVal.split(_strSpace).filter((function(name){return name.match(hostClassNameRegex)}))).join(_strSpace),doUpdate=doUpdateForce=!0),doUpdate||(doUpdate=mutationIsClass?hostClassNamesChanged(oldMutationVal,newClassVal):mutationAttrName!==LEXICON.s||oldMutationVal!==mutationTarget[LEXICON.s].cssText),mutatedAttrs.push(mutationAttrName)})),updateViewportAttrsFromTarget(mutatedAttrs),doUpdate&&_base.update(doUpdateForce||_strAuto)),doUpdate}),_mutationObserverContent=new mutationObserver(_mutationObserverContentCallback)}}function connectMutationObservers(){_supportMutationObserver&&!_mutationObserversConnected&&(_mutationObserverHost.observe(_hostElementNative,{attributes:!0,attributeOldValue:!0,attributeFilter:_mutationObserverAttrsHost}),_mutationObserverContent.observe(_isTextarea?_targetElementNative:_contentElementNative,{attributes:!0,attributeOldValue:!0,subtree:!_isTextarea,childList:!_isTextarea,characterData:!_isTextarea,attributeFilter:_isTextarea?_mutationObserverAttrsTextarea:_mutationObserverAttrsHost}),_mutationObserversConnected=!0)}function disconnectMutationObservers(){_supportMutationObserver&&_mutationObserversConnected&&(_mutationObserverHost.disconnect(),_mutationObserverContent.disconnect(),_mutationObserversConnected=!1)}function hostOnResized(){if(!_sleeping){var changed,hostSize={w:_sizeObserverElementNative[LEXICON.sW],h:_sizeObserverElementNative[LEXICON.sH]};changed=checkCache(hostSize,_hostElementSizeChangeDetectedCache),_hostElementSizeChangeDetectedCache=hostSize,changed&&update({_hostSizeChanged:!0})}}function hostOnMouseEnter(){_scrollbarsAutoHideLeave&&refreshScrollbarsAutoHide(!0)}function hostOnMouseLeave(){_scrollbarsAutoHideLeave&&!_bodyElement.hasClass(_classNameDragging)&&refreshScrollbarsAutoHide(!1)}function hostOnMouseMove(){_scrollbarsAutoHideMove&&(refreshScrollbarsAutoHide(!0),clearTimeout(_scrollbarsAutoHideMoveTimeoutId),_scrollbarsAutoHideMoveTimeoutId=setTimeout((function(){_scrollbarsAutoHideMove&&!_destroyed&&refreshScrollbarsAutoHide(!1)}),100))}function documentOnSelectStart(event){return COMPATIBILITY.prvD(event),!1}function updateOnLoadCallback(event){var elm=FRAMEWORK(event.target);eachUpdateOnLoad((function(i,updateOnLoadSelector){elm.is(updateOnLoadSelector)&&update({_contentSizeChanged:!0})}))}function setupHostMouseTouchEvents(destroy){destroy||setupHostMouseTouchEvents(!0),setupResponsiveEventListener(_hostElement,_strMouseTouchMoveEvent.split(_strSpace)[0],hostOnMouseMove,!_scrollbarsAutoHideMove||destroy,!0),setupResponsiveEventListener(_hostElement,[_strMouseEnter,_strMouseLeave],[hostOnMouseEnter,hostOnMouseLeave],!_scrollbarsAutoHideLeave||destroy,!0),_initialized||destroy||_hostElement.one("mouseover",hostOnMouseEnter)}function bodyMinSizeChanged(){var bodyMinSize={};return _isBody&&_contentArrangeElement&&(bodyMinSize.w=parseToZeroOrNumber(_contentArrangeElement.css(_strMinMinus+_strWidth)),bodyMinSize.h=parseToZeroOrNumber(_contentArrangeElement.css(_strMinMinus+_strHeight)),bodyMinSize.c=checkCache(bodyMinSize,_bodyMinSizeCache),bodyMinSize.f=!0),_bodyMinSizeCache=bodyMinSize,!!bodyMinSize.c}function hostClassNamesChanged(oldClassNames,newClassNames){var i,regex,currClasses=_typeof(newClassNames)==TYPES.s?newClassNames.split(_strSpace):[],diff=getArrayDifferences(_typeof(oldClassNames)==TYPES.s?oldClassNames.split(_strSpace):[],currClasses),idx=inArray(_classNameThemeNone,diff);if(idx>-1&&diff.splice(idx,1),diff[LEXICON.l]>0)for(regex=createHostClassNameRegExp(!0,!0),i=0;i0}}function isSizeAffectingCSSProperty(propertyName){if(!_initialized)return!0;var flexGrow="flex-grow",flexShrink="flex-shrink",flexBasis="flex-basis",affectingPropsX=[_strWidth,_strMinMinus+_strWidth,_strMaxMinus+_strWidth,_strMarginMinus+_strLeft,_strMarginMinus+_strRight,_strLeft,_strRight,"font-weight","word-spacing",flexGrow,flexShrink,flexBasis],affectingPropsXContentBox=[_strPaddingMinus+_strLeft,_strPaddingMinus+_strRight,_strBorderMinus+_strLeft+_strWidth,_strBorderMinus+_strRight+_strWidth],affectingPropsY=[_strHeight,_strMinMinus+_strHeight,_strMaxMinus+_strHeight,_strMarginMinus+_strTop,_strMarginMinus+_strBottom,_strTop,_strBottom,"line-height",flexGrow,flexShrink,flexBasis],affectingPropsYContentBox=[_strPaddingMinus+_strTop,_strPaddingMinus+_strBottom,_strBorderMinus+_strTop+_strWidth,_strBorderMinus+_strBottom+_strWidth],_strS="s",_strVS="v-s",checkX=_overflowBehaviorCache.x===_strS||_overflowBehaviorCache.x===_strVS,sizeIsAffected=!1,checkPropertyName=function checkPropertyName(arr,name){for(var i=0;i-1){var targetAttr=_targetElement.attr(attr);type(targetAttr)==TYPES.s?_viewportElement.attr(attr,targetAttr):_viewportElement.removeAttr(attr)}}))}function textareaUpdate(){if(!_sleeping){var origWidth,width,origHeight,height,wrapAttrOff=!_textareaAutoWrappingCache,minWidth=_viewportSize.w,minHeight=_viewportSize.h,css={},doMeasure=_widthAutoCache||wrapAttrOff;return css[_strMinMinus+_strWidth]=_strEmpty,css[_strMinMinus+_strHeight]=_strEmpty,css[_strWidth]=_strAuto,_targetElement.css(css),origWidth=_targetElementNative[LEXICON.oW],width=doMeasure?MATH.max(origWidth,_targetElementNative[LEXICON.sW]-1):1,css[_strWidth]=_widthAutoCache?_strAuto:_strHundredPercent,css[_strMinMinus+_strWidth]=_strHundredPercent,css[_strHeight]=_strAuto,_targetElement.css(css),origHeight=_targetElementNative[LEXICON.oH],height=MATH.max(origHeight,_targetElementNative[LEXICON.sH]-1),css[_strWidth]=width,css[_strHeight]=height,_textareaCoverElement.css(css),css[_strMinMinus+_strWidth]=minWidth,css[_strMinMinus+_strHeight]=minHeight,_targetElement.css(css),{_originalWidth:origWidth,_originalHeight:origHeight,_dynamicWidth:width,_dynamicHeight:height}}}function update(updateHints){clearTimeout(_swallowedUpdateTimeout),updateHints=updateHints||{},_swallowedUpdateHints._hostSizeChanged|=updateHints._hostSizeChanged,_swallowedUpdateHints._contentSizeChanged|=updateHints._contentSizeChanged,_swallowedUpdateHints._force|=updateHints._force;var displayIsHidden,now=COMPATIBILITY.now(),hostSizeChanged=!!_swallowedUpdateHints._hostSizeChanged,contentSizeChanged=!!_swallowedUpdateHints._contentSizeChanged,force=!!_swallowedUpdateHints._force,changedOptions=updateHints._changedOptions,swallow=_initialized&&!_destroyed&&!force&&!changedOptions&&now-_lastUpdateTime<_swallowUpdateLag&&!_heightAutoCache&&!_widthAutoCache;if(swallow&&(_swallowedUpdateTimeout=setTimeout(update,_swallowUpdateLag)),!(_destroyed||swallow||_sleeping&&!changedOptions||_initialized&&!force&&(displayIsHidden=_hostElement.is(":hidden"))||"inline"===_hostElement.css("display"))){_lastUpdateTime=now,_swallowedUpdateHints={},!_nativeScrollbarStyling||_nativeScrollbarIsOverlaid.x&&_nativeScrollbarIsOverlaid.y?_nativeScrollbarSize=extendDeep({},globals.nativeScrollbarSize):(_nativeScrollbarSize.x=0,_nativeScrollbarSize.y=0),_nativeScrollbarMinSize={x:3*(_nativeScrollbarSize.x+(_nativeScrollbarIsOverlaid.x?0:3)),y:3*(_nativeScrollbarSize.y+(_nativeScrollbarIsOverlaid.y?0:3))},changedOptions=changedOptions||{};var checkCacheAutoForce=function checkCacheAutoForce(){return checkCache.apply(this,[].slice.call(arguments).concat([force]))},currScroll={x:_viewportElement[_strScrollLeft](),y:_viewportElement[_strScrollTop]()},currentPreparedOptionsScrollbars=_currentPreparedOptions.scrollbars,currentPreparedOptionsTextarea=_currentPreparedOptions.textarea,scrollbarsVisibility=currentPreparedOptionsScrollbars.visibility,scrollbarsVisibilityChanged=checkCacheAutoForce(scrollbarsVisibility,_scrollbarsVisibilityCache),scrollbarsAutoHide=currentPreparedOptionsScrollbars.autoHide,scrollbarsAutoHideChanged=checkCacheAutoForce(scrollbarsAutoHide,_scrollbarsAutoHideCache),scrollbarsClickScrolling=currentPreparedOptionsScrollbars.clickScrolling,scrollbarsClickScrollingChanged=checkCacheAutoForce(scrollbarsClickScrolling,_scrollbarsClickScrollingCache),scrollbarsDragScrolling=currentPreparedOptionsScrollbars.dragScrolling,scrollbarsDragScrollingChanged=checkCacheAutoForce(scrollbarsDragScrolling,_scrollbarsDragScrollingCache),className=_currentPreparedOptions.className,classNameChanged=checkCacheAutoForce(className,_classNameCache),resize=_currentPreparedOptions.resize,resizeChanged=checkCacheAutoForce(resize,_resizeCache)&&!_isBody,paddingAbsolute=_currentPreparedOptions.paddingAbsolute,paddingAbsoluteChanged=checkCacheAutoForce(paddingAbsolute,_paddingAbsoluteCache),clipAlways=_currentPreparedOptions.clipAlways,clipAlwaysChanged=checkCacheAutoForce(clipAlways,_clipAlwaysCache),sizeAutoCapable=_currentPreparedOptions.sizeAutoCapable&&!_isBody,sizeAutoCapableChanged=checkCacheAutoForce(sizeAutoCapable,_sizeAutoCapableCache),ignoreOverlayScrollbarHiding=_currentPreparedOptions.nativeScrollbarsOverlaid.showNativeScrollbars,ignoreOverlayScrollbarHidingChanged=checkCacheAutoForce(ignoreOverlayScrollbarHiding,_ignoreOverlayScrollbarHidingCache),autoUpdate=_currentPreparedOptions.autoUpdate,autoUpdateChanged=checkCacheAutoForce(autoUpdate,_autoUpdateCache),overflowBehavior=_currentPreparedOptions.overflowBehavior,overflowBehaviorChanged=checkCacheAutoForce(overflowBehavior,_overflowBehaviorCache,force),textareaDynWidth=currentPreparedOptionsTextarea.dynWidth,textareaDynWidthChanged=checkCacheAutoForce(_textareaDynWidthCache,textareaDynWidth),textareaDynHeight=currentPreparedOptionsTextarea.dynHeight,textareaDynHeightChanged=checkCacheAutoForce(_textareaDynHeightCache,textareaDynHeight);if(_scrollbarsAutoHideNever="n"===scrollbarsAutoHide,_scrollbarsAutoHideScroll="s"===scrollbarsAutoHide,_scrollbarsAutoHideMove="m"===scrollbarsAutoHide,_scrollbarsAutoHideLeave="l"===scrollbarsAutoHide,_scrollbarsAutoHideDelay=currentPreparedOptionsScrollbars.autoHideDelay,_oldClassName=_classNameCache,_resizeNone="n"===resize,_resizeBoth="b"===resize,_resizeHorizontal="h"===resize,_resizeVertical="v"===resize,_normalizeRTLCache=_currentPreparedOptions.normalizeRTL,ignoreOverlayScrollbarHiding=ignoreOverlayScrollbarHiding&&_nativeScrollbarIsOverlaid.x&&_nativeScrollbarIsOverlaid.y,_scrollbarsVisibilityCache=scrollbarsVisibility,_scrollbarsAutoHideCache=scrollbarsAutoHide,_scrollbarsClickScrollingCache=scrollbarsClickScrolling,_scrollbarsDragScrollingCache=scrollbarsDragScrolling,_classNameCache=className,_resizeCache=resize,_paddingAbsoluteCache=paddingAbsolute,_clipAlwaysCache=clipAlways,_sizeAutoCapableCache=sizeAutoCapable,_ignoreOverlayScrollbarHidingCache=ignoreOverlayScrollbarHiding,_autoUpdateCache=autoUpdate,_overflowBehaviorCache=extendDeep({},overflowBehavior),_textareaDynWidthCache=textareaDynWidth,_textareaDynHeightCache=textareaDynHeight,_hasOverflowCache=_hasOverflowCache||{x:!1,y:!1},classNameChanged&&(removeClass(_hostElement,_oldClassName+_strSpace+_classNameThemeNone),addClass(_hostElement,className!==undefined$1&&null!==className&&className.length>0?className:_classNameThemeNone)),autoUpdateChanged&&(!0===autoUpdate||null===autoUpdate&&_autoUpdateRecommended?(disconnectMutationObservers(),autoUpdateLoop.add(_base)):(autoUpdateLoop.remove(_base),connectMutationObservers())),sizeAutoCapableChanged)if(sizeAutoCapable)if(_contentGlueElement?_contentGlueElement.show():(_contentGlueElement=FRAMEWORK(generateDiv(_classNameContentGlueElement)),_paddingElement.before(_contentGlueElement)),_sizeAutoObserverAdded)_sizeAutoObserverElement.show();else{_sizeAutoObserverElement=FRAMEWORK(generateDiv(_classNameSizeAutoObserverElement)),_sizeAutoObserverElementNative=_sizeAutoObserverElement[0],_contentGlueElement.before(_sizeAutoObserverElement);var oldSize={w:-1,h:-1};setupResizeObserver(_sizeAutoObserverElement,(function(){var newSize={w:_sizeAutoObserverElementNative[LEXICON.oW],h:_sizeAutoObserverElementNative[LEXICON.oH]};checkCache(newSize,oldSize)&&(_initialized&&_heightAutoCache&&newSize.h>0||_widthAutoCache&&newSize.w>0||_initialized&&!_heightAutoCache&&0===newSize.h||!_widthAutoCache&&0===newSize.w)&&update(),oldSize=newSize})),_sizeAutoObserverAdded=!0,null!==_cssCalc&&_sizeAutoObserverElement.css(_strHeight,_cssCalc+"(100% + 1px)")}else _sizeAutoObserverAdded&&_sizeAutoObserverElement.hide(),_contentGlueElement&&_contentGlueElement.hide();force&&(_sizeObserverElement.find("*").trigger(_strScroll),_sizeAutoObserverAdded&&_sizeAutoObserverElement.find("*").trigger(_strScroll)),displayIsHidden=displayIsHidden===undefined$1?_hostElement.is(":hidden"):displayIsHidden;var sizeAutoObserverElementBCRect,textareaAutoWrapping=!!_isTextarea&&"off"!==_targetElement.attr("wrap"),textareaAutoWrappingChanged=checkCacheAutoForce(textareaAutoWrapping,_textareaAutoWrappingCache),cssDirection=_hostElement.css("direction"),cssDirectionChanged=checkCacheAutoForce(cssDirection,_cssDirectionCache),boxSizing=_hostElement.css("box-sizing"),boxSizingChanged=checkCacheAutoForce(boxSizing,_cssBoxSizingCache),padding=getTopRightBottomLeftHost(_strPaddingMinus);try{sizeAutoObserverElementBCRect=_sizeAutoObserverAdded?_sizeAutoObserverElementNative[LEXICON.bCR]():null}catch(ex){return}_isBorderBox="border-box"===boxSizing;var isRTLLeft=(_isRTL="rtl"===cssDirection)?_strLeft:_strRight,isRTLRight=_isRTL?_strRight:_strLeft,widthAutoResizeDetection=!1,widthAutoObserverDetection=!(!_sizeAutoObserverAdded||"none"===_hostElement.css(_strFloat))&&0===MATH.round(sizeAutoObserverElementBCRect.right-sizeAutoObserverElementBCRect.left)&&(!!paddingAbsolute||_hostElementNative[LEXICON.cW]-_paddingX>0);if(sizeAutoCapable&&!widthAutoObserverDetection){var tmpCurrHostWidth=_hostElementNative[LEXICON.oW],tmpCurrContentGlueWidth=_contentGlueElement.css(_strWidth);_contentGlueElement.css(_strWidth,_strAuto);var tmpNewHostWidth=_hostElementNative[LEXICON.oW];_contentGlueElement.css(_strWidth,tmpCurrContentGlueWidth),(widthAutoResizeDetection=tmpCurrHostWidth!==tmpNewHostWidth)||(_contentGlueElement.css(_strWidth,tmpCurrHostWidth+1),tmpNewHostWidth=_hostElementNative[LEXICON.oW],_contentGlueElement.css(_strWidth,tmpCurrContentGlueWidth),widthAutoResizeDetection=tmpCurrHostWidth!==tmpNewHostWidth)}var widthAuto=(widthAutoObserverDetection||widthAutoResizeDetection)&&sizeAutoCapable&&!displayIsHidden,widthAutoChanged=checkCacheAutoForce(widthAuto,_widthAutoCache),wasWidthAuto=!widthAuto&&_widthAutoCache,heightAuto=!(!_sizeAutoObserverAdded||!sizeAutoCapable||displayIsHidden)&&0===MATH.round(sizeAutoObserverElementBCRect.bottom-sizeAutoObserverElementBCRect.top),heightAutoChanged=checkCacheAutoForce(heightAuto,_heightAutoCache),wasHeightAuto=!heightAuto&&_heightAutoCache,border=getTopRightBottomLeftHost(_strBorderMinus,"-"+_strWidth,!(widthAuto&&_isBorderBox||!_isBorderBox),!(heightAuto&&_isBorderBox||!_isBorderBox)),margin=getTopRightBottomLeftHost(_strMarginMinus),contentElementCSS={},contentGlueElementCSS={},getHostSize=function getHostSize(){return{w:_hostElementNative[LEXICON.cW],h:_hostElementNative[LEXICON.cH]}},getViewportSize=function getViewportSize(){return{w:_paddingElementNative[LEXICON.oW]+MATH.max(0,_contentElementNative[LEXICON.cW]-_contentElementNative[LEXICON.sW]),h:_paddingElementNative[LEXICON.oH]+MATH.max(0,_contentElementNative[LEXICON.cH]-_contentElementNative[LEXICON.sH])}},paddingAbsoluteX=_paddingX=padding.l+padding.r,paddingAbsoluteY=_paddingY=padding.t+padding.b;if(paddingAbsoluteX*=paddingAbsolute?1:0,paddingAbsoluteY*=paddingAbsolute?1:0,padding.c=checkCacheAutoForce(padding,_cssPaddingCache),_borderX=border.l+border.r,_borderY=border.t+border.b,border.c=checkCacheAutoForce(border,_cssBorderCache),_marginX=margin.l+margin.r,_marginY=margin.t+margin.b,margin.c=checkCacheAutoForce(margin,_cssMarginCache),_textareaAutoWrappingCache=textareaAutoWrapping,_cssDirectionCache=cssDirection,_cssBoxSizingCache=boxSizing,_widthAutoCache=widthAuto,_heightAutoCache=heightAuto,_cssPaddingCache=padding,_cssBorderCache=border,_cssMarginCache=margin,cssDirectionChanged&&_sizeAutoObserverAdded&&_sizeAutoObserverElement.css(_strFloat,isRTLRight),padding.c||cssDirectionChanged||paddingAbsoluteChanged||widthAutoChanged||heightAutoChanged||boxSizingChanged||sizeAutoCapableChanged){var paddingElementCSS={},textareaCSS={},paddingValues=[padding.t,padding.r,padding.b,padding.l];setTopRightBottomLeft(contentGlueElementCSS,_strMarginMinus,[-padding.t,-padding.r,-padding.b,-padding.l]),paddingAbsolute?(setTopRightBottomLeft(paddingElementCSS,_strEmpty,paddingValues),setTopRightBottomLeft(_isTextarea?textareaCSS:contentElementCSS,_strPaddingMinus)):(setTopRightBottomLeft(paddingElementCSS,_strEmpty),setTopRightBottomLeft(_isTextarea?textareaCSS:contentElementCSS,_strPaddingMinus,paddingValues)),_paddingElement.css(paddingElementCSS),_targetElement.css(textareaCSS)}_viewportSize=getViewportSize();var textareaSize=!!_isTextarea&&textareaUpdate(),textareaSizeChanged=_isTextarea&&checkCacheAutoForce(textareaSize,_textareaSizeCache),textareaDynOrigSize=_isTextarea&&textareaSize?{w:textareaDynWidth?textareaSize._dynamicWidth:textareaSize._originalWidth,h:textareaDynHeight?textareaSize._dynamicHeight:textareaSize._originalHeight}:{};if(_textareaSizeCache=textareaSize,heightAuto&&(heightAutoChanged||paddingAbsoluteChanged||boxSizingChanged||padding.c||border.c)?contentElementCSS[_strHeight]=_strAuto:(heightAutoChanged||paddingAbsoluteChanged)&&(contentElementCSS[_strHeight]=_strHundredPercent),widthAuto&&(widthAutoChanged||paddingAbsoluteChanged||boxSizingChanged||padding.c||border.c||cssDirectionChanged)?(contentElementCSS[_strWidth]=_strAuto,contentGlueElementCSS[_strMaxMinus+_strWidth]=_strHundredPercent):(widthAutoChanged||paddingAbsoluteChanged)&&(contentElementCSS[_strWidth]=_strHundredPercent,contentElementCSS[_strFloat]=_strEmpty,contentGlueElementCSS[_strMaxMinus+_strWidth]=_strEmpty),widthAuto?(contentGlueElementCSS[_strWidth]=_strAuto,contentElementCSS[_strWidth]=VENDORS._cssPropertyValue(_strWidth,"max-content intrinsic")||_strAuto,contentElementCSS[_strFloat]=isRTLRight):contentGlueElementCSS[_strWidth]=_strEmpty,contentGlueElementCSS[_strHeight]=heightAuto?textareaDynOrigSize.h||_contentElementNative[LEXICON.cH]:_strEmpty,sizeAutoCapable&&_contentGlueElement.css(contentGlueElementCSS),_contentElement.css(contentElementCSS),contentElementCSS={},contentGlueElementCSS={},hostSizeChanged||contentSizeChanged||textareaSizeChanged||cssDirectionChanged||boxSizingChanged||paddingAbsoluteChanged||widthAutoChanged||widthAuto||heightAutoChanged||heightAuto||ignoreOverlayScrollbarHidingChanged||overflowBehaviorChanged||clipAlwaysChanged||resizeChanged||scrollbarsVisibilityChanged||scrollbarsAutoHideChanged||scrollbarsDragScrollingChanged||scrollbarsClickScrollingChanged||textareaDynWidthChanged||textareaDynHeightChanged||textareaAutoWrappingChanged){var strOverflow="overflow",strOverflowX=strOverflow+"-x",strOverflowY=strOverflow+"-y",strHidden="hidden",strVisible="visible";if(!_nativeScrollbarStyling){var viewportElementResetCSS={},resetXTmp=_hasOverflowCache.y&&_hideOverflowCache.ys&&!ignoreOverlayScrollbarHiding?_nativeScrollbarIsOverlaid.y?_viewportElement.css(isRTLLeft):-_nativeScrollbarSize.y:0,resetBottomTmp=_hasOverflowCache.x&&_hideOverflowCache.xs&&!ignoreOverlayScrollbarHiding?_nativeScrollbarIsOverlaid.x?_viewportElement.css(_strBottom):-_nativeScrollbarSize.x:0;setTopRightBottomLeft(viewportElementResetCSS,_strEmpty),_viewportElement.css(viewportElementResetCSS)}var contentMeasureElement=getContentMeasureElement(),contentSize={w:textareaDynOrigSize.w||contentMeasureElement[LEXICON.cW],h:textareaDynOrigSize.h||contentMeasureElement[LEXICON.cH]},scrollSize={w:contentMeasureElement[LEXICON.sW],h:contentMeasureElement[LEXICON.sH]};_nativeScrollbarStyling||(viewportElementResetCSS[_strBottom]=wasHeightAuto?_strEmpty:resetBottomTmp,viewportElementResetCSS[isRTLLeft]=wasWidthAuto?_strEmpty:resetXTmp,_viewportElement.css(viewportElementResetCSS)),_viewportSize=getViewportSize();var hostSize=getHostSize(),hostAbsoluteRectSize={w:hostSize.w-_marginX-_borderX-(_isBorderBox?0:_paddingX),h:hostSize.h-_marginY-_borderY-(_isBorderBox?0:_paddingY)},contentGlueSize={w:MATH.max((widthAuto?contentSize.w:scrollSize.w)+paddingAbsoluteX,hostAbsoluteRectSize.w),h:MATH.max((heightAuto?contentSize.h:scrollSize.h)+paddingAbsoluteY,hostAbsoluteRectSize.h)};if(contentGlueSize.c=checkCacheAutoForce(contentGlueSize,_contentGlueSizeCache),_contentGlueSizeCache=contentGlueSize,sizeAutoCapable){(contentGlueSize.c||heightAuto||widthAuto)&&(contentGlueElementCSS[_strWidth]=contentGlueSize.w,contentGlueElementCSS[_strHeight]=contentGlueSize.h,_isTextarea||(contentSize={w:contentMeasureElement[LEXICON.cW],h:contentMeasureElement[LEXICON.cH]}));var textareaCoverCSS={},setContentGlueElementCSSfunction=function setContentGlueElementCSSfunction(horizontal){var scrollbarVars=getScrollbarVars(horizontal),wh=scrollbarVars._w_h,strWH=scrollbarVars._width_height,autoSize=horizontal?widthAuto:heightAuto,borderSize=horizontal?_borderX:_borderY,paddingSize=horizontal?_paddingX:_paddingY,marginSize=horizontal?_marginX:_marginY,viewportSize=_viewportSize[wh]-borderSize-marginSize-(_isBorderBox?0:paddingSize);(!autoSize||!autoSize&&border.c)&&(contentGlueElementCSS[strWH]=hostAbsoluteRectSize[wh]-1),!(autoSize&&contentSize[wh]0&&(contentGlueElementCSS[strWH]=MATH.max(1,contentGlueElementCSS[strWH]))};setContentGlueElementCSSfunction(!0),setContentGlueElementCSSfunction(!1),_isTextarea&&_textareaCoverElement.css(textareaCoverCSS),_contentGlueElement.css(contentGlueElementCSS)}widthAuto&&(contentElementCSS[_strWidth]=_strHundredPercent),!widthAuto||_isBorderBox||_mutationObserversConnected||(contentElementCSS[_strFloat]="none"),_contentElement.css(contentElementCSS),contentElementCSS={};var contentScrollSize={w:contentMeasureElement[LEXICON.sW],h:contentMeasureElement[LEXICON.sH]};contentScrollSize.c=contentSizeChanged=checkCacheAutoForce(contentScrollSize,_contentScrollSizeCache),_contentScrollSizeCache=contentScrollSize,_viewportSize=getViewportSize(),hostSizeChanged=checkCacheAutoForce(hostSize=getHostSize(),_hostSizeCache),_hostSizeCache=hostSize;var hideOverflowForceTextarea=_isTextarea&&(0===_viewportSize.w||0===_viewportSize.h),previousOverflowAmount=_overflowAmountCache,overflowBehaviorIsVS={},overflowBehaviorIsVH={},overflowBehaviorIsS={},overflowAmount={},hasOverflow={},hideOverflow={},canScroll={},viewportRect=_paddingElementNative[LEXICON.bCR](),setOverflowVariables=function setOverflowVariables(horizontal){var scrollbarVars=getScrollbarVars(horizontal),xyI=getScrollbarVars(!horizontal)._x_y,xy=scrollbarVars._x_y,wh=scrollbarVars._w_h,widthHeight=scrollbarVars._width_height,scrollMax=_strScroll+scrollbarVars._Left_Top+"Max",fractionalOverflowAmount=viewportRect[widthHeight]?MATH.abs(viewportRect[widthHeight]-_viewportSize[wh]):0,checkFractionalOverflowAmount=previousOverflowAmount&&previousOverflowAmount[xy]>0&&0===_viewportElementNative[scrollMax];overflowBehaviorIsVS[xy]="v-s"===overflowBehavior[xy],overflowBehaviorIsVH[xy]="v-h"===overflowBehavior[xy],overflowBehaviorIsS[xy]="s"===overflowBehavior[xy],overflowAmount[xy]=MATH.max(0,MATH.round(100*(contentScrollSize[wh]-_viewportSize[wh]))/100),overflowAmount[xy]*=hideOverflowForceTextarea||checkFractionalOverflowAmount&&fractionalOverflowAmount>0&&fractionalOverflowAmount<1?0:1,hasOverflow[xy]=overflowAmount[xy]>0,hideOverflow[xy]=overflowBehaviorIsVS[xy]||overflowBehaviorIsVH[xy]?hasOverflow[xyI]&&!overflowBehaviorIsVS[xyI]&&!overflowBehaviorIsVH[xyI]:hasOverflow[xy],hideOverflow[xy+"s"]=!!hideOverflow[xy]&&(overflowBehaviorIsS[xy]||overflowBehaviorIsVS[xy]),canScroll[xy]=hasOverflow[xy]&&hideOverflow[xy+"s"]};if(setOverflowVariables(!0),setOverflowVariables(!1),overflowAmount.c=checkCacheAutoForce(overflowAmount,_overflowAmountCache),_overflowAmountCache=overflowAmount,hasOverflow.c=checkCacheAutoForce(hasOverflow,_hasOverflowCache),_hasOverflowCache=hasOverflow,hideOverflow.c=checkCacheAutoForce(hideOverflow,_hideOverflowCache),_hideOverflowCache=hideOverflow,_nativeScrollbarIsOverlaid.x||_nativeScrollbarIsOverlaid.y){var setContentElementCSS,borderDesign="px solid transparent",contentArrangeElementCSS={},arrangeContent={},arrangeChanged=force;(hasOverflow.x||hasOverflow.y)&&(arrangeContent.w=_nativeScrollbarIsOverlaid.y&&hasOverflow.y?contentScrollSize.w+_overlayScrollbarDummySize.y:_strEmpty,arrangeContent.h=_nativeScrollbarIsOverlaid.x&&hasOverflow.x?contentScrollSize.h+_overlayScrollbarDummySize.x:_strEmpty,arrangeChanged=checkCacheAutoForce(arrangeContent,_arrangeContentSizeCache),_arrangeContentSizeCache=arrangeContent),(hasOverflow.c||hideOverflow.c||contentScrollSize.c||cssDirectionChanged||widthAutoChanged||heightAutoChanged||widthAuto||heightAuto||ignoreOverlayScrollbarHidingChanged)&&(contentElementCSS[_strMarginMinus+isRTLRight]=contentElementCSS[_strBorderMinus+isRTLRight]=_strEmpty,setContentElementCSS=function setContentElementCSS(horizontal){var scrollbarVars=getScrollbarVars(horizontal),scrollbarVarsInverted=getScrollbarVars(!horizontal),xy=scrollbarVars._x_y,strDirection=horizontal?_strBottom:isRTLLeft,invertedAutoSize=horizontal?heightAuto:widthAuto;_nativeScrollbarIsOverlaid[xy]&&hasOverflow[xy]&&hideOverflow[xy+"s"]?(contentElementCSS[_strMarginMinus+strDirection]=invertedAutoSize?ignoreOverlayScrollbarHiding?_strEmpty:_overlayScrollbarDummySize[xy]:_strEmpty,contentElementCSS[_strBorderMinus+strDirection]=horizontal&&invertedAutoSize||ignoreOverlayScrollbarHiding?_strEmpty:_overlayScrollbarDummySize[xy]+borderDesign):(arrangeContent[scrollbarVarsInverted._w_h]=contentElementCSS[_strMarginMinus+strDirection]=contentElementCSS[_strBorderMinus+strDirection]=_strEmpty,arrangeChanged=!0)},_nativeScrollbarStyling?addRemoveClass(_viewportElement,_classNameViewportNativeScrollbarsInvisible,!ignoreOverlayScrollbarHiding):(setContentElementCSS(!0),setContentElementCSS(!1))),ignoreOverlayScrollbarHiding&&(arrangeContent.w=arrangeContent.h=_strEmpty,arrangeChanged=!0),arrangeChanged&&!_nativeScrollbarStyling&&(contentArrangeElementCSS[_strWidth]=hideOverflow.y?arrangeContent.w:_strEmpty,contentArrangeElementCSS[_strHeight]=hideOverflow.x?arrangeContent.h:_strEmpty,_contentArrangeElement||(_contentArrangeElement=FRAMEWORK(generateDiv(_classNameContentArrangeElement)),_viewportElement.prepend(_contentArrangeElement)),_contentArrangeElement.css(contentArrangeElementCSS)),_contentElement.css(contentElementCSS)}var setViewportCSS,viewportElementCSS={};if(paddingElementCSS={},(hostSizeChanged||hasOverflow.c||hideOverflow.c||contentScrollSize.c||overflowBehaviorChanged||boxSizingChanged||ignoreOverlayScrollbarHidingChanged||cssDirectionChanged||clipAlwaysChanged||heightAutoChanged)&&(viewportElementCSS[isRTLRight]=_strEmpty,(setViewportCSS=function setViewportCSS(horizontal){var scrollbarVars=getScrollbarVars(horizontal),scrollbarVarsInverted=getScrollbarVars(!horizontal),xy=scrollbarVars._x_y,XY=scrollbarVars._X_Y,strDirection=horizontal?_strBottom:isRTLLeft,reset=function reset(){viewportElementCSS[strDirection]=_strEmpty,_contentBorderSize[scrollbarVarsInverted._w_h]=0};hasOverflow[xy]&&hideOverflow[xy+"s"]?(viewportElementCSS[strOverflow+XY]=_strScroll,ignoreOverlayScrollbarHiding||_nativeScrollbarStyling?reset():(viewportElementCSS[strDirection]=-(_nativeScrollbarIsOverlaid[xy]?_overlayScrollbarDummySize[xy]:_nativeScrollbarSize[xy]),_contentBorderSize[scrollbarVarsInverted._w_h]=_nativeScrollbarIsOverlaid[xy]?_overlayScrollbarDummySize[scrollbarVarsInverted._x_y]:0)):(viewportElementCSS[strOverflow+XY]=_strEmpty,reset())})(!0),setViewportCSS(!1),!_nativeScrollbarStyling&&(_viewportSize.h<_nativeScrollbarMinSize.x||_viewportSize.w<_nativeScrollbarMinSize.y)&&(hasOverflow.x&&hideOverflow.x&&!_nativeScrollbarIsOverlaid.x||hasOverflow.y&&hideOverflow.y&&!_nativeScrollbarIsOverlaid.y)?(viewportElementCSS[_strPaddingMinus+_strTop]=_nativeScrollbarMinSize.x,viewportElementCSS[_strMarginMinus+_strTop]=-_nativeScrollbarMinSize.x,viewportElementCSS[_strPaddingMinus+isRTLRight]=_nativeScrollbarMinSize.y,viewportElementCSS[_strMarginMinus+isRTLRight]=-_nativeScrollbarMinSize.y):viewportElementCSS[_strPaddingMinus+_strTop]=viewportElementCSS[_strMarginMinus+_strTop]=viewportElementCSS[_strPaddingMinus+isRTLRight]=viewportElementCSS[_strMarginMinus+isRTLRight]=_strEmpty,viewportElementCSS[_strPaddingMinus+isRTLLeft]=viewportElementCSS[_strMarginMinus+isRTLLeft]=_strEmpty,hasOverflow.x&&hideOverflow.x||hasOverflow.y&&hideOverflow.y||hideOverflowForceTextarea?_isTextarea&&hideOverflowForceTextarea&&(paddingElementCSS[strOverflowX]=paddingElementCSS[strOverflowY]=strHidden):(!clipAlways||overflowBehaviorIsVH.x||overflowBehaviorIsVS.x||overflowBehaviorIsVH.y||overflowBehaviorIsVS.y)&&(_isTextarea&&(paddingElementCSS[strOverflowX]=paddingElementCSS[strOverflowY]=_strEmpty),viewportElementCSS[strOverflowX]=viewportElementCSS[strOverflowY]=strVisible),_paddingElement.css(paddingElementCSS),_viewportElement.css(viewportElementCSS),viewportElementCSS={},(hasOverflow.c||boxSizingChanged||widthAutoChanged||heightAutoChanged)&&(!_nativeScrollbarIsOverlaid.x||!_nativeScrollbarIsOverlaid.y))){var elementStyle=_contentElementNative[LEXICON.s];elementStyle.webkitTransform="scale(1)",elementStyle.display="run-in",elementStyle.display=_strEmpty,elementStyle.webkitTransform=_strEmpty}if(contentElementCSS={},cssDirectionChanged||widthAutoChanged||heightAutoChanged)if(_isRTL&&widthAuto){var floatTmp=_contentElement.css(_strFloat),posLeftWithoutFloat=MATH.round(_contentElement.css(_strFloat,_strEmpty).css(_strLeft,_strEmpty).position().left);_contentElement.css(_strFloat,floatTmp),posLeftWithoutFloat!==MATH.round(_contentElement.position().left)&&(contentElementCSS[_strLeft]=posLeftWithoutFloat)}else contentElementCSS[_strLeft]=_strEmpty;if(_contentElement.css(contentElementCSS),_isTextarea&&contentSizeChanged){var textareaInfo=getTextareaInfo();if(textareaInfo){var textareaRowsChanged=_textareaInfoCache===undefined$1||textareaInfo._rows!==_textareaInfoCache._rows,cursorRow=textareaInfo._cursorRow,cursorCol=textareaInfo._cursorColumn,widestRow=textareaInfo._widestRow,lastRow=textareaInfo._rows,lastCol=textareaInfo._columns,cursorIsLastPosition=textareaInfo._cursorPosition>=textareaInfo._cursorMax&&_textareaHasFocus,textareaScrollAmount={x:textareaAutoWrapping||cursorCol!==lastCol||cursorRow!==widestRow?-1:_overflowAmountCache.x,y:(textareaAutoWrapping?cursorIsLastPosition||textareaRowsChanged&&previousOverflowAmount&&currScroll.y===previousOverflowAmount.y:(cursorIsLastPosition||textareaRowsChanged)&&cursorRow===lastRow)?_overflowAmountCache.y:-1};currScroll.x=textareaScrollAmount.x>-1?_isRTL&&_normalizeRTLCache&&_rtlScrollBehavior.i?0:textareaScrollAmount.x:currScroll.x,currScroll.y=textareaScrollAmount.y>-1?textareaScrollAmount.y:currScroll.y}_textareaInfoCache=textareaInfo}_isRTL&&_rtlScrollBehavior.i&&_nativeScrollbarIsOverlaid.y&&hasOverflow.x&&_normalizeRTLCache&&(currScroll.x+=_contentBorderSize.w||0),widthAuto&&_hostElement[_strScrollLeft](0),heightAuto&&_hostElement[_strScrollTop](0),_viewportElement[_strScrollLeft](currScroll.x)[_strScrollTop](currScroll.y);var scrollbarsVisibilityVisible="v"===scrollbarsVisibility,scrollbarsVisibilityHidden="h"===scrollbarsVisibility,scrollbarsVisibilityAuto="a"===scrollbarsVisibility,refreshScrollbarsVisibility=function refreshScrollbarsVisibility(showX,showY){showY=showY===undefined$1?showX:showY,refreshScrollbarAppearance(!0,showX,canScroll.x),refreshScrollbarAppearance(!1,showY,canScroll.y)};addRemoveClass(_hostElement,_classNameHostOverflow,hideOverflow.x||hideOverflow.y),addRemoveClass(_hostElement,_classNameHostOverflowX,hideOverflow.x),addRemoveClass(_hostElement,_classNameHostOverflowY,hideOverflow.y),cssDirectionChanged&&!_isBody&&addRemoveClass(_hostElement,_classNameHostRTL,_isRTL),_isBody&&addClass(_hostElement,_classNameHostResizeDisabled),resizeChanged&&(addRemoveClass(_hostElement,_classNameHostResizeDisabled,_resizeNone),addRemoveClass(_scrollbarCornerElement,_classNameScrollbarCornerResize,!_resizeNone),addRemoveClass(_scrollbarCornerElement,_classNameScrollbarCornerResizeB,_resizeBoth),addRemoveClass(_scrollbarCornerElement,_classNameScrollbarCornerResizeH,_resizeHorizontal),addRemoveClass(_scrollbarCornerElement,_classNameScrollbarCornerResizeV,_resizeVertical)),(scrollbarsVisibilityChanged||overflowBehaviorChanged||hideOverflow.c||hasOverflow.c||ignoreOverlayScrollbarHidingChanged)&&(ignoreOverlayScrollbarHiding?ignoreOverlayScrollbarHidingChanged&&(removeClass(_hostElement,_classNameHostScrolling),ignoreOverlayScrollbarHiding&&refreshScrollbarsVisibility(!1)):scrollbarsVisibilityAuto?refreshScrollbarsVisibility(canScroll.x,canScroll.y):scrollbarsVisibilityVisible?refreshScrollbarsVisibility(!0):scrollbarsVisibilityHidden&&refreshScrollbarsVisibility(!1)),(scrollbarsAutoHideChanged||ignoreOverlayScrollbarHidingChanged)&&(setupHostMouseTouchEvents(!_scrollbarsAutoHideLeave&&!_scrollbarsAutoHideMove),refreshScrollbarsAutoHide(_scrollbarsAutoHideNever,!_scrollbarsAutoHideNever)),(hostSizeChanged||overflowAmount.c||heightAutoChanged||widthAutoChanged||resizeChanged||boxSizingChanged||paddingAbsoluteChanged||ignoreOverlayScrollbarHidingChanged||cssDirectionChanged)&&(refreshScrollbarHandleLength(!0),refreshScrollbarHandleOffset(!0),refreshScrollbarHandleLength(!1),refreshScrollbarHandleOffset(!1)),scrollbarsClickScrollingChanged&&refreshScrollbarsInteractive(!0,scrollbarsClickScrolling),scrollbarsDragScrollingChanged&&refreshScrollbarsInteractive(!1,scrollbarsDragScrolling),dispatchCallback("onDirectionChanged",{isRTL:_isRTL,dir:cssDirection},cssDirectionChanged),dispatchCallback("onHostSizeChanged",{width:_hostSizeCache.w,height:_hostSizeCache.h},hostSizeChanged),dispatchCallback("onContentSizeChanged",{width:_contentScrollSizeCache.w,height:_contentScrollSizeCache.h},contentSizeChanged),dispatchCallback("onOverflowChanged",{x:hasOverflow.x,y:hasOverflow.y,xScrollable:hideOverflow.xs,yScrollable:hideOverflow.ys,clipped:hideOverflow.x||hideOverflow.y},hasOverflow.c||hideOverflow.c),dispatchCallback("onOverflowAmountChanged",{x:overflowAmount.x,y:overflowAmount.y},overflowAmount.c)}_isBody&&_bodyMinSizeCache&&(_hasOverflowCache.c||_bodyMinSizeCache.c)&&(_bodyMinSizeCache.f||bodyMinSizeChanged(),_nativeScrollbarIsOverlaid.y&&_hasOverflowCache.x&&_contentElement.css(_strMinMinus+_strWidth,_bodyMinSizeCache.w+_overlayScrollbarDummySize.y),_nativeScrollbarIsOverlaid.x&&_hasOverflowCache.y&&_contentElement.css(_strMinMinus+_strHeight,_bodyMinSizeCache.h+_overlayScrollbarDummySize.x),_bodyMinSizeCache.c=!1),_initialized&&changedOptions.updateOnLoad&&updateElementsOnLoad(),dispatchCallback("onUpdated",{forced:force})}}function updateElementsOnLoad(){_isTextarea||eachUpdateOnLoad((function(i,updateOnLoadSelector){_contentElement.find(updateOnLoadSelector).each((function(i,el){COMPATIBILITY.inA(el,_updateOnLoadElms)<0&&(_updateOnLoadElms.push(el),FRAMEWORK(el).off(_updateOnLoadEventName,updateOnLoadCallback).on(_updateOnLoadEventName,updateOnLoadCallback))}))}))}function setOptions(newOptions){var validatedOpts=_pluginsOptions._validate(newOptions,_pluginsOptions._template,!0,_currentOptions);return _currentOptions=extendDeep({},_currentOptions,validatedOpts._default),_currentPreparedOptions=extendDeep({},_currentPreparedOptions,validatedOpts._prepared),validatedOpts._prepared}function setupStructureDOM(destroy){var strParent="parent",classNameResizeObserverHost="os-resize-observer-host",classNameTextareaElementFull=_classNameTextareaElement+_strSpace+_classNameTextInherit,textareaClass=_isTextarea?_strSpace+_classNameTextInherit:_strEmpty,adoptAttrs=_currentPreparedOptions.textarea.inheritedAttrs,adoptAttrsMap={},applyAdoptedAttrs=function applyAdoptedAttrs(){var applyAdoptedAttrsElm=destroy?_targetElement:_hostElement;each(adoptAttrsMap,(function(key,value){type(value)==TYPES.s&&(key==LEXICON.c?applyAdoptedAttrsElm.addClass(value):applyAdoptedAttrsElm.attr(key,value))}))},hostElementClassNames=[_classNameHostElement,_classNameHostElementForeign,_classNameHostTextareaElement,_classNameHostResizeDisabled,_classNameHostRTL,_classNameHostScrollbarHorizontalHidden,_classNameHostScrollbarVerticalHidden,_classNameHostTransition,_classNameHostScrolling,_classNameHostOverflow,_classNameHostOverflowX,_classNameHostOverflowY,_classNameThemeNone,_classNameTextareaElement,_classNameTextInherit,_classNameCache].join(_strSpace),hostElementCSS={};_hostElement=_hostElement||(_isTextarea?_domExists?_targetElement[strParent]()[strParent]()[strParent]()[strParent]():FRAMEWORK(generateDiv(_classNameHostTextareaElement)):_targetElement),_contentElement=_contentElement||selectOrGenerateDivByClass(_classNameContentElement+textareaClass),_viewportElement=_viewportElement||selectOrGenerateDivByClass(_classNameViewportElement+textareaClass),_paddingElement=_paddingElement||selectOrGenerateDivByClass(_classNamePaddingElement+textareaClass),_sizeObserverElement=_sizeObserverElement||selectOrGenerateDivByClass(classNameResizeObserverHost),_textareaCoverElement=_textareaCoverElement||(_isTextarea?selectOrGenerateDivByClass(_classNameTextareaCoverElement):undefined$1),_domExists&&addClass(_hostElement,_classNameHostElementForeign),destroy&&removeClass(_hostElement,hostElementClassNames),adoptAttrs=type(adoptAttrs)==TYPES.s?adoptAttrs.split(_strSpace):adoptAttrs,COMPATIBILITY.isA(adoptAttrs)&&_isTextarea&&each(adoptAttrs,(function(i,v){type(v)==TYPES.s&&(adoptAttrsMap[v]=destroy?_hostElement.attr(v):_targetElement.attr(v))})),destroy?(_domExists&&_initialized?(_sizeObserverElement.children().remove(),each([_paddingElement,_viewportElement,_contentElement,_textareaCoverElement],(function(i,elm){elm&&removeClass(elm.removeAttr(LEXICON.s),_classNamesDynamicDestroy)})),addClass(_hostElement,_isTextarea?_classNameHostTextareaElement:_classNameHostElement)):(remove(_sizeObserverElement),_contentElement.contents().unwrap().unwrap().unwrap(),_isTextarea&&(_targetElement.unwrap(),remove(_hostElement),remove(_textareaCoverElement),applyAdoptedAttrs())),_isTextarea&&_targetElement.removeAttr(LEXICON.s),_isBody&&removeClass(_htmlElement,_classNameHTMLElement)):(_isTextarea&&(_currentPreparedOptions.sizeAutoCapable||(hostElementCSS[_strWidth]=_targetElement.css(_strWidth),hostElementCSS[_strHeight]=_targetElement.css(_strHeight)),_domExists||_targetElement.addClass(_classNameTextInherit).wrap(_hostElement),_hostElement=_targetElement[strParent]().css(hostElementCSS)),_domExists||(addClass(_targetElement,_isTextarea?classNameTextareaElementFull:_classNameHostElement),_hostElement.wrapInner(_contentElement).wrapInner(_viewportElement).wrapInner(_paddingElement).prepend(_sizeObserverElement),_contentElement=findFirst(_hostElement,_strDot+_classNameContentElement),_viewportElement=findFirst(_hostElement,_strDot+_classNameViewportElement),_paddingElement=findFirst(_hostElement,_strDot+_classNamePaddingElement),_isTextarea&&(_contentElement.prepend(_textareaCoverElement),applyAdoptedAttrs())),_nativeScrollbarStyling&&addClass(_viewportElement,_classNameViewportNativeScrollbarsInvisible),_nativeScrollbarIsOverlaid.x&&_nativeScrollbarIsOverlaid.y&&addClass(_viewportElement,_classNameViewportNativeScrollbarsOverlaid),_isBody&&addClass(_htmlElement,_classNameHTMLElement),_sizeObserverElementNative=_sizeObserverElement[0],_hostElementNative=_hostElement[0],_paddingElementNative=_paddingElement[0],_viewportElementNative=_viewportElement[0],_contentElementNative=_contentElement[0],updateViewportAttrsFromTarget())}function setupStructureEvents(){var textareaUpdateIntervalID,scrollStopTimeoutId,textareaKeyDownRestrictedKeyCodes=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],textareaKeyDownKeyCodesList=[],scrollStopDelay=175,strFocus="focus";function updateTextarea(doClearInterval){textareaUpdate(),_base.update(_strAuto),doClearInterval&&_autoUpdateRecommended&&clearInterval(textareaUpdateIntervalID)}function textareaOnScroll(event){return _targetElement[_strScrollLeft](_rtlScrollBehavior.i&&_normalizeRTLCache?9999999:0),_targetElement[_strScrollTop](0),COMPATIBILITY.prvD(event),COMPATIBILITY.stpP(event),!1}function textareaOnDrop(event){setTimeout((function(){_destroyed||updateTextarea()}),50)}function textareaOnFocus(){_textareaHasFocus=!0,addClass(_hostElement,strFocus)}function textareaOnFocusout(){_textareaHasFocus=!1,textareaKeyDownKeyCodesList=[],removeClass(_hostElement,strFocus),updateTextarea(!0)}function textareaOnKeyDown(event){var keyCode=event.keyCode;inArray(keyCode,textareaKeyDownRestrictedKeyCodes)<0&&(textareaKeyDownKeyCodesList[LEXICON.l]||(updateTextarea(),textareaUpdateIntervalID=setInterval(updateTextarea,1e3/60)),inArray(keyCode,textareaKeyDownKeyCodesList)<0&&textareaKeyDownKeyCodesList.push(keyCode))}function textareaOnKeyUp(event){var keyCode=event.keyCode,index=inArray(keyCode,textareaKeyDownKeyCodesList);inArray(keyCode,textareaKeyDownRestrictedKeyCodes)<0&&(index>-1&&textareaKeyDownKeyCodesList.splice(index,1),textareaKeyDownKeyCodesList[LEXICON.l]||updateTextarea(!0))}function contentOnTransitionEnd(event){!0!==_autoUpdateCache&&isSizeAffectingCSSProperty((event=event.originalEvent||event).propertyName)&&_base.update(_strAuto)}function viewportOnScroll(event){_sleeping||(scrollStopTimeoutId!==undefined$1?clearTimeout(scrollStopTimeoutId):((_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove)&&refreshScrollbarsAutoHide(!0),nativeOverlayScrollbarsAreActive()||addClass(_hostElement,_classNameHostScrolling),dispatchCallback("onScrollStart",event)),_scrollbarsHandlesDefineScrollPos||(refreshScrollbarHandleOffset(!0),refreshScrollbarHandleOffset(!1)),dispatchCallback("onScroll",event),scrollStopTimeoutId=setTimeout((function(){_destroyed||(clearTimeout(scrollStopTimeoutId),scrollStopTimeoutId=undefined$1,(_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove)&&refreshScrollbarsAutoHide(!1),nativeOverlayScrollbarsAreActive()||removeClass(_hostElement,_classNameHostScrolling),dispatchCallback("onScrollStop",event))}),scrollStopDelay))}_isTextarea?(_msieVersion>9||!_autoUpdateRecommended?addDestroyEventListener(_targetElement,"input",updateTextarea):addDestroyEventListener(_targetElement,[_strKeyDownEvent,_strKeyUpEvent],[textareaOnKeyDown,textareaOnKeyUp]),addDestroyEventListener(_targetElement,[_strScroll,"drop",strFocus,strFocus+"out"],[textareaOnScroll,textareaOnDrop,textareaOnFocus,textareaOnFocusout])):addDestroyEventListener(_contentElement,_strTransitionEndEvent,contentOnTransitionEnd),addDestroyEventListener(_viewportElement,_strScroll,viewportOnScroll,!0)}function setupScrollbarsDOM(destroy){var horizontalElements,verticalElements,selectOrGenerateScrollbarDOM=function selectOrGenerateScrollbarDOM(isHorizontal){var scrollbar=selectOrGenerateDivByClass(_classNameScrollbar+_strSpace+(isHorizontal?_classNameScrollbarHorizontal:_classNameScrollbarVertical),!0),track=selectOrGenerateDivByClass(_classNameScrollbarTrack,scrollbar),handle=selectOrGenerateDivByClass(_classNameScrollbarHandle,scrollbar);return _domExists||destroy||(scrollbar.append(track),track.append(handle)),{_scrollbar:scrollbar,_track:track,_handle:handle}};function resetScrollbarDOM(isHorizontal){var scrollbarVars=getScrollbarVars(isHorizontal),scrollbar=scrollbarVars._scrollbar,track=scrollbarVars._track,handle=scrollbarVars._handle;_domExists&&_initialized?each([scrollbar,track,handle],(function(i,elm){removeClass(elm.removeAttr(LEXICON.s),_classNamesDynamicDestroy)})):remove(scrollbar||selectOrGenerateScrollbarDOM(isHorizontal)._scrollbar)}destroy?(resetScrollbarDOM(!0),resetScrollbarDOM()):(horizontalElements=selectOrGenerateScrollbarDOM(!0),verticalElements=selectOrGenerateScrollbarDOM(),_scrollbarHorizontalElement=horizontalElements._scrollbar,_scrollbarHorizontalTrackElement=horizontalElements._track,_scrollbarHorizontalHandleElement=horizontalElements._handle,_scrollbarVerticalElement=verticalElements._scrollbar,_scrollbarVerticalTrackElement=verticalElements._track,_scrollbarVerticalHandleElement=verticalElements._handle,_domExists||(_paddingElement.after(_scrollbarVerticalElement),_paddingElement.after(_scrollbarHorizontalElement)))}function setupScrollbarEvents(isHorizontal){var trackTimeout,mouseDownScroll,mouseDownOffset,mouseDownInvertedScale,scrollbarVars=getScrollbarVars(isHorizontal),scrollbarVarsInfo=scrollbarVars._info,insideIFrame=_windowElementNative.top!==_windowElementNative,xy=scrollbarVars._x_y,XY=scrollbarVars._X_Y,scroll=_strScroll+scrollbarVars._Left_Top,strActive="active",strSnapHandle="snapHandle",strClickEvent="click",scrollDurationFactor=1,increaseDecreaseScrollAmountKeyCodes=[16,17];function getPointerPosition(event){return _msieVersion&&insideIFrame?event["screen"+XY]:COMPATIBILITY.page(event)[xy]}function getPreparedScrollbarsOption(name){return _currentPreparedOptions.scrollbars[name]}function increaseTrackScrollAmount(){scrollDurationFactor=.5}function decreaseTrackScrollAmount(){scrollDurationFactor=1}function stopClickEventPropagation(event){COMPATIBILITY.stpP(event)}function documentKeyDown(event){inArray(event.keyCode,increaseDecreaseScrollAmountKeyCodes)>-1&&increaseTrackScrollAmount()}function documentKeyUp(event){inArray(event.keyCode,increaseDecreaseScrollAmountKeyCodes)>-1&&decreaseTrackScrollAmount()}function onMouseTouchDownContinue(event){var isTouchEvent=(event.originalEvent||event).touches!==undefined$1;return!(_sleeping||_destroyed||nativeOverlayScrollbarsAreActive()||!_scrollbarsDragScrollingCache||isTouchEvent&&!getPreparedScrollbarsOption("touchSupport"))&&(1===COMPATIBILITY.mBtn(event)||isTouchEvent)}function documentDragMove(event){if(onMouseTouchDownContinue(event)){var trackLength=scrollbarVarsInfo._trackLength,handleLength=scrollbarVarsInfo._handleLength,scrollDelta=scrollbarVarsInfo._maxScroll*((getPointerPosition(event)-mouseDownOffset)*mouseDownInvertedScale/(trackLength-handleLength));scrollDelta=isFinite(scrollDelta)?scrollDelta:0,_isRTL&&isHorizontal&&!_rtlScrollBehavior.i&&(scrollDelta*=-1),_viewportElement[scroll](MATH.round(mouseDownScroll+scrollDelta)),_scrollbarsHandlesDefineScrollPos&&refreshScrollbarHandleOffset(isHorizontal,mouseDownScroll+scrollDelta),_supportPassiveEvents||COMPATIBILITY.prvD(event)}else documentMouseTouchUp(event)}function documentMouseTouchUp(event){if(event=event||event.originalEvent,setupResponsiveEventListener(_documentElement,[_strMouseTouchMoveEvent,_strMouseTouchUpEvent,_strKeyDownEvent,_strKeyUpEvent,_strSelectStartEvent],[documentDragMove,documentMouseTouchUp,documentKeyDown,documentKeyUp,documentOnSelectStart],!0),COMPATIBILITY.rAF()((function(){setupResponsiveEventListener(_documentElement,strClickEvent,stopClickEventPropagation,!0,{_capture:!0})})),_scrollbarsHandlesDefineScrollPos&&refreshScrollbarHandleOffset(isHorizontal,!0),_scrollbarsHandlesDefineScrollPos=!1,removeClass(_bodyElement,_classNameDragging),removeClass(scrollbarVars._handle,strActive),removeClass(scrollbarVars._track,strActive),removeClass(scrollbarVars._scrollbar,strActive),mouseDownScroll=undefined$1,mouseDownOffset=undefined$1,mouseDownInvertedScale=1,decreaseTrackScrollAmount(),trackTimeout!==undefined$1&&(_base.scrollStop(),clearTimeout(trackTimeout),trackTimeout=undefined$1),event){var rect=_hostElementNative[LEXICON.bCR]();event.clientX>=rect.left&&event.clientX<=rect.right&&event.clientY>=rect.top&&event.clientY<=rect.bottom||hostOnMouseLeave(),(_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove)&&refreshScrollbarsAutoHide(!1)}}function onHandleMouseTouchDown(event){onMouseTouchDownContinue(event)&&onHandleMouseTouchDownAction(event)}function onHandleMouseTouchDownAction(event){mouseDownScroll=_viewportElement[scroll](),mouseDownScroll=isNaN(mouseDownScroll)?0:mouseDownScroll,(_isRTL&&isHorizontal&&!_rtlScrollBehavior.n||!_isRTL)&&(mouseDownScroll=mouseDownScroll<0?0:mouseDownScroll),mouseDownInvertedScale=getHostElementInvertedScale()[xy],mouseDownOffset=getPointerPosition(event),_scrollbarsHandlesDefineScrollPos=!getPreparedScrollbarsOption(strSnapHandle),addClass(_bodyElement,_classNameDragging),addClass(scrollbarVars._handle,strActive),addClass(scrollbarVars._scrollbar,strActive),setupResponsiveEventListener(_documentElement,[_strMouseTouchMoveEvent,_strMouseTouchUpEvent,_strSelectStartEvent],[documentDragMove,documentMouseTouchUp,documentOnSelectStart]),COMPATIBILITY.rAF()((function(){setupResponsiveEventListener(_documentElement,strClickEvent,stopClickEventPropagation,!1,{_capture:!0})})),!_msieVersion&&_documentMixed||COMPATIBILITY.prvD(event),COMPATIBILITY.stpP(event)}function onTrackMouseTouchDown(event){if(onMouseTouchDownContinue(event)){var decreaseScroll,handleToViewportRatio=scrollbarVars._info._handleLength/Math.round(MATH.min(1,_viewportSize[scrollbarVars._w_h]/_contentScrollSizeCache[scrollbarVars._w_h])*scrollbarVars._info._trackLength),scrollDistance=MATH.round(_viewportSize[scrollbarVars._w_h]*handleToViewportRatio),scrollBaseDuration=270*handleToViewportRatio,scrollFirstIterationDelay=400*handleToViewportRatio,trackOffset=scrollbarVars._track.offset()[scrollbarVars._left_top],ctrlKey=event.ctrlKey,instantScroll=event.shiftKey,instantScrollTransition=instantScroll&&ctrlKey,isFirstIteration=!0,easing="linear",scrollActionFinsished=function scrollActionFinsished(transition){_scrollbarsHandlesDefineScrollPos&&refreshScrollbarHandleOffset(isHorizontal,transition)},scrollActionInstantFinished=function scrollActionInstantFinished(){scrollActionFinsished(),onHandleMouseTouchDownAction(event)},scrollAction=function scrollAction(){if(!_destroyed){var mouseOffset=(mouseDownOffset-trackOffset)*mouseDownInvertedScale,handleOffset=scrollbarVarsInfo._handleOffset,trackLength=scrollbarVarsInfo._trackLength,handleLength=scrollbarVarsInfo._handleLength,scrollRange=scrollbarVarsInfo._maxScroll,currScroll=scrollbarVarsInfo._currentScroll,scrollDuration=scrollBaseDuration*scrollDurationFactor,timeoutDelay=isFirstIteration?MATH.max(scrollFirstIterationDelay,scrollDuration):scrollDuration,instantScrollPosition=scrollRange*((mouseOffset-handleLength/2)/(trackLength-handleLength)),rtlIsNormal=_isRTL&&isHorizontal&&(!_rtlScrollBehavior.i&&!_rtlScrollBehavior.n||_normalizeRTLCache),decreaseScrollCondition=rtlIsNormal?handleOffsetmouseOffset,scrollObj={},animationObj={easing:easing,step:function step(now){_scrollbarsHandlesDefineScrollPos&&(_viewportElement[scroll](now),refreshScrollbarHandleOffset(isHorizontal,now))}};instantScrollPosition=isFinite(instantScrollPosition)?instantScrollPosition:0,instantScrollPosition=_isRTL&&isHorizontal&&!_rtlScrollBehavior.i?scrollRange-instantScrollPosition:instantScrollPosition,instantScroll?(_viewportElement[scroll](instantScrollPosition),instantScrollTransition?(instantScrollPosition=_viewportElement[scroll](),_viewportElement[scroll](currScroll),instantScrollPosition=rtlIsNormal&&_rtlScrollBehavior.i?scrollRange-instantScrollPosition:instantScrollPosition,instantScrollPosition=rtlIsNormal&&_rtlScrollBehavior.n?-instantScrollPosition:instantScrollPosition,scrollObj[xy]=instantScrollPosition,_base.scroll(scrollObj,extendDeep(animationObj,{duration:130,complete:scrollActionInstantFinished}))):scrollActionInstantFinished()):(decreaseScroll=isFirstIteration?decreaseScrollCondition:decreaseScroll,(rtlIsNormal?decreaseScroll?handleOffset+handleLength>=mouseOffset:handleOffset<=mouseOffset:decreaseScroll?handleOffset<=mouseOffset:handleOffset+handleLength>=mouseOffset)?(clearTimeout(trackTimeout),_base.scrollStop(),trackTimeout=undefined$1,scrollActionFinsished(!0)):(trackTimeout=setTimeout(scrollAction,timeoutDelay),scrollObj[xy]=(decreaseScroll?"-=":"+=")+scrollDistance,_base.scroll(scrollObj,extendDeep(animationObj,{duration:scrollDuration}))),isFirstIteration=!1)}};ctrlKey&&increaseTrackScrollAmount(),mouseDownInvertedScale=getHostElementInvertedScale()[xy],mouseDownOffset=COMPATIBILITY.page(event)[xy],_scrollbarsHandlesDefineScrollPos=!getPreparedScrollbarsOption(strSnapHandle),addClass(_bodyElement,_classNameDragging),addClass(scrollbarVars._track,strActive),addClass(scrollbarVars._scrollbar,strActive),setupResponsiveEventListener(_documentElement,[_strMouseTouchUpEvent,_strKeyDownEvent,_strKeyUpEvent,_strSelectStartEvent],[documentMouseTouchUp,documentKeyDown,documentKeyUp,documentOnSelectStart]),scrollAction(),COMPATIBILITY.prvD(event),COMPATIBILITY.stpP(event)}}function onTrackMouseTouchEnter(event){_scrollbarsHandleHovered=!0,(_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove)&&refreshScrollbarsAutoHide(!0)}function onTrackMouseTouchLeave(event){_scrollbarsHandleHovered=!1,(_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove)&&refreshScrollbarsAutoHide(!1)}function onScrollbarMouseTouchDown(event){COMPATIBILITY.stpP(event)}addDestroyEventListener(scrollbarVars._handle,_strMouseTouchDownEvent,onHandleMouseTouchDown),addDestroyEventListener(scrollbarVars._track,[_strMouseTouchDownEvent,_strMouseEnter,_strMouseLeave],[onTrackMouseTouchDown,onTrackMouseTouchEnter,onTrackMouseTouchLeave]),addDestroyEventListener(scrollbarVars._scrollbar,_strMouseTouchDownEvent,onScrollbarMouseTouchDown),_supportTransition&&addDestroyEventListener(scrollbarVars._scrollbar,_strTransitionEndEvent,(function(event){event.target===scrollbarVars._scrollbar[0]&&(refreshScrollbarHandleLength(isHorizontal),refreshScrollbarHandleOffset(isHorizontal))}))}function refreshScrollbarAppearance(isHorizontal,shallBeVisible,canScroll){var scrollbarElement=isHorizontal?_scrollbarHorizontalElement:_scrollbarVerticalElement;addRemoveClass(_hostElement,isHorizontal?_classNameHostScrollbarHorizontalHidden:_classNameHostScrollbarVerticalHidden,!shallBeVisible),addRemoveClass(scrollbarElement,_classNameScrollbarUnusable,!canScroll)}function refreshScrollbarsAutoHide(shallBeVisible,delayfree){if(clearTimeout(_scrollbarsAutoHideTimeoutId),shallBeVisible)removeClass(_scrollbarHorizontalElement,_classNameScrollbarAutoHidden),removeClass(_scrollbarVerticalElement,_classNameScrollbarAutoHidden);else{var anyActive,strActive="active",hide=function hide(){_scrollbarsHandleHovered||_destroyed||(!(anyActive=_scrollbarHorizontalHandleElement.hasClass(strActive)||_scrollbarVerticalHandleElement.hasClass(strActive))&&(_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove||_scrollbarsAutoHideLeave)&&addClass(_scrollbarHorizontalElement,_classNameScrollbarAutoHidden),!anyActive&&(_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove||_scrollbarsAutoHideLeave)&&addClass(_scrollbarVerticalElement,_classNameScrollbarAutoHidden))};_scrollbarsAutoHideDelay>0&&!0!==delayfree?_scrollbarsAutoHideTimeoutId=setTimeout(hide,_scrollbarsAutoHideDelay):hide()}}function refreshScrollbarHandleLength(isHorizontal){var handleCSS={},scrollbarVars=getScrollbarVars(isHorizontal),scrollbarVarsInfo=scrollbarVars._info,digit=1e6,handleRatio=MATH.min(1,_viewportSize[scrollbarVars._w_h]/_contentScrollSizeCache[scrollbarVars._w_h]);handleCSS[scrollbarVars._width_height]=MATH.floor(100*handleRatio*digit)/digit+"%",nativeOverlayScrollbarsAreActive()||scrollbarVars._handle.css(handleCSS),scrollbarVarsInfo._handleLength=scrollbarVars._handle[0]["offset"+scrollbarVars._Width_Height],scrollbarVarsInfo._handleLengthRatio=handleRatio}function refreshScrollbarHandleOffset(isHorizontal,scrollOrTransition){var transformOffset,translateValue,transition=type(scrollOrTransition)==TYPES.b,transitionDuration=250,isRTLisHorizontal=_isRTL&&isHorizontal,scrollbarVars=getScrollbarVars(isHorizontal),scrollbarVarsInfo=scrollbarVars._info,strTranslateBrace="translate(",strTransform=VENDORS._cssProperty("transform"),strTransition=VENDORS._cssProperty("transition"),nativeScroll=isHorizontal?_viewportElement[_strScrollLeft]():_viewportElement[_strScrollTop](),currentScroll=scrollOrTransition===undefined$1||transition?nativeScroll:scrollOrTransition,handleLength=scrollbarVarsInfo._handleLength,trackLength=scrollbarVars._track[0]["offset"+scrollbarVars._Width_Height],handleTrackDiff=trackLength-handleLength,handleCSS={},maxScroll=(_viewportElementNative[_strScroll+scrollbarVars._Width_Height]-_viewportElementNative["client"+scrollbarVars._Width_Height])*(_rtlScrollBehavior.n&&isRTLisHorizontal?-1:1),getScrollRatio=function getScrollRatio(base){return isNaN(base/maxScroll)?0:MATH.max(0,MATH.min(1,base/maxScroll))},getHandleOffset=function getHandleOffset(scrollRatio){var offset=handleTrackDiff*scrollRatio;return offset=isNaN(offset)?0:offset,offset=isRTLisHorizontal&&!_rtlScrollBehavior.i?trackLength-handleLength-offset:offset,offset=MATH.max(0,offset)},scrollRatio=getScrollRatio(nativeScroll),handleOffset=getHandleOffset(getScrollRatio(currentScroll)),snappedHandleOffset=getHandleOffset(scrollRatio);scrollbarVarsInfo._maxScroll=maxScroll,scrollbarVarsInfo._currentScroll=nativeScroll,scrollbarVarsInfo._currentScrollRatio=scrollRatio,_supportTransform?(transformOffset=isRTLisHorizontal?-(trackLength-handleLength-handleOffset):handleOffset,translateValue=isHorizontal?strTranslateBrace+transformOffset+"px, 0)":strTranslateBrace+"0, "+transformOffset+"px)",handleCSS[strTransform]=translateValue,_supportTransition&&(handleCSS[strTransition]=transition&&MATH.abs(handleOffset-scrollbarVarsInfo._handleOffset)>1?getCSSTransitionString(scrollbarVars._handle)+", "+(strTransform+_strSpace+transitionDuration)+"ms":_strEmpty)):handleCSS[scrollbarVars._left_top]=handleOffset,nativeOverlayScrollbarsAreActive()||(scrollbarVars._handle.css(handleCSS),_supportTransform&&_supportTransition&&transition&&scrollbarVars._handle.one(_strTransitionEndEvent,(function(){_destroyed||scrollbarVars._handle.css(strTransition,_strEmpty)}))),scrollbarVarsInfo._handleOffset=handleOffset,scrollbarVarsInfo._snappedHandleOffset=snappedHandleOffset,scrollbarVarsInfo._trackLength=trackLength}function refreshScrollbarsInteractive(isTrack,value){var action=value?"removeClass":"addClass",element2=isTrack?_scrollbarVerticalTrackElement:_scrollbarVerticalHandleElement,className=isTrack?_classNameScrollbarTrackOff:_classNameScrollbarHandleOff;(isTrack?_scrollbarHorizontalTrackElement:_scrollbarHorizontalHandleElement)[action](className),element2[action](className)}function getScrollbarVars(isHorizontal){return{_width_height:isHorizontal?_strWidth:_strHeight,_Width_Height:isHorizontal?"Width":"Height",_left_top:isHorizontal?_strLeft:_strTop,_Left_Top:isHorizontal?"Left":"Top",_x_y:isHorizontal?_strX:_strY,_X_Y:isHorizontal?"X":"Y",_w_h:isHorizontal?"w":"h",_l_t:isHorizontal?"l":"t",_track:isHorizontal?_scrollbarHorizontalTrackElement:_scrollbarVerticalTrackElement,_handle:isHorizontal?_scrollbarHorizontalHandleElement:_scrollbarVerticalHandleElement,_scrollbar:isHorizontal?_scrollbarHorizontalElement:_scrollbarVerticalElement,_info:isHorizontal?_scrollHorizontalInfo:_scrollVerticalInfo}}function setupScrollbarCornerDOM(destroy){_scrollbarCornerElement=_scrollbarCornerElement||selectOrGenerateDivByClass(_classNameScrollbarCorner,!0),destroy?_domExists&&_initialized?removeClass(_scrollbarCornerElement.removeAttr(LEXICON.s),_classNamesDynamicDestroy):remove(_scrollbarCornerElement):_domExists||_hostElement.append(_scrollbarCornerElement)}function setupScrollbarCornerEvents(){var reconnectMutationObserver,insideIFrame=_windowElementNative.top!==_windowElementNative,mouseDownPosition={},mouseDownSize={},mouseDownInvertedScale={};function documentDragMove(event){if(onMouseTouchDownContinue(event)){var pageOffset=getCoordinates(event),hostElementCSS={};(_resizeHorizontal||_resizeBoth)&&(hostElementCSS[_strWidth]=mouseDownSize.w+(pageOffset.x-mouseDownPosition.x)*mouseDownInvertedScale.x),(_resizeVertical||_resizeBoth)&&(hostElementCSS[_strHeight]=mouseDownSize.h+(pageOffset.y-mouseDownPosition.y)*mouseDownInvertedScale.y),_hostElement.css(hostElementCSS),COMPATIBILITY.stpP(event)}else documentMouseTouchUp(event)}function documentMouseTouchUp(event){var eventIsTrusted=event!==undefined$1;setupResponsiveEventListener(_documentElement,[_strSelectStartEvent,_strMouseTouchMoveEvent,_strMouseTouchUpEvent],[documentOnSelectStart,documentDragMove,documentMouseTouchUp],!0),removeClass(_bodyElement,_classNameDragging),_scrollbarCornerElement.releaseCapture&&_scrollbarCornerElement.releaseCapture(),eventIsTrusted&&(reconnectMutationObserver&&connectMutationObservers(),_base.update(_strAuto)),reconnectMutationObserver=!1}function onMouseTouchDownContinue(event){var isTouchEvent=(event.originalEvent||event).touches!==undefined$1;return!_sleeping&&!_destroyed&&(1===COMPATIBILITY.mBtn(event)||isTouchEvent)}function getCoordinates(event){return _msieVersion&&insideIFrame?{x:event.screenX,y:event.screenY}:COMPATIBILITY.page(event)}addDestroyEventListener(_scrollbarCornerElement,_strMouseTouchDownEvent,(function(event){onMouseTouchDownContinue(event)&&!_resizeNone&&(_mutationObserversConnected&&(reconnectMutationObserver=!0,disconnectMutationObservers()),mouseDownPosition=getCoordinates(event),mouseDownSize.w=_hostElementNative[LEXICON.oW]-(_isBorderBox?0:_paddingX),mouseDownSize.h=_hostElementNative[LEXICON.oH]-(_isBorderBox?0:_paddingY),mouseDownInvertedScale=getHostElementInvertedScale(),setupResponsiveEventListener(_documentElement,[_strSelectStartEvent,_strMouseTouchMoveEvent,_strMouseTouchUpEvent],[documentOnSelectStart,documentDragMove,documentMouseTouchUp]),addClass(_bodyElement,_classNameDragging),_scrollbarCornerElement.setCapture&&_scrollbarCornerElement.setCapture(),COMPATIBILITY.prvD(event),COMPATIBILITY.stpP(event))}))}function dispatchCallback(name,args,dependent){if(!1!==dependent)if(_initialized){var ext,callback=_currentPreparedOptions.callbacks[name],extensionOnName=name;"on"===extensionOnName.substr(0,2)&&(extensionOnName=extensionOnName.substr(2,1).toLowerCase()+extensionOnName.substr(3)),type(callback)==TYPES.f&&callback.call(_base,args),each(_extensions,(function(){type((ext=this).on)==TYPES.f&&ext.on(extensionOnName,args)}))}else _destroyed||_callbacksInitQeueue.push({n:name,a:args})}function setTopRightBottomLeft(targetCSSObject,prefix,values){values=values||[_strEmpty,_strEmpty,_strEmpty,_strEmpty],targetCSSObject[(prefix=prefix||_strEmpty)+_strTop]=values[0],targetCSSObject[prefix+_strRight]=values[1],targetCSSObject[prefix+_strBottom]=values[2],targetCSSObject[prefix+_strLeft]=values[3]}function getTopRightBottomLeftHost(prefix,suffix,zeroX,zeroY){return suffix=suffix||_strEmpty,prefix=prefix||_strEmpty,{t:zeroY?0:parseToZeroOrNumber(_hostElement.css(prefix+_strTop+suffix)),r:zeroX?0:parseToZeroOrNumber(_hostElement.css(prefix+_strRight+suffix)),b:zeroY?0:parseToZeroOrNumber(_hostElement.css(prefix+_strBottom+suffix)),l:zeroX?0:parseToZeroOrNumber(_hostElement.css(prefix+_strLeft+suffix))}}function getCSSTransitionString(element){var transitionStr=VENDORS._cssProperty("transition"),assembledValue=element.css(transitionStr);if(assembledValue)return assembledValue;for(var strResult,valueArray,j,regExpString="\\s*(([^,(]+(\\(.+?\\))?)+)[\\s,]*",regExpMain=new RegExp(regExpString),regExpValidate=new RegExp("^("+regExpString+")+$"),properties="property duration timing-function delay".split(" "),result=[],i=0,splitCssStyleByComma=function splitCssStyleByComma(str){if(strResult=[],!str.match(regExpValidate))return str;for(;str.match(regExpMain);)strResult.push(RegExp.$1),str=str.replace(regExpMain,_strEmpty);return strResult};itextareaLastCol&&(widestRow=i+1,textareaLastCol=rowCols);return{_cursorRow:cursorRow,_cursorColumn:cursorCol,_rows:textareaLastRow,_columns:textareaLastCol,_widestRow:widestRow,_cursorPosition:textareaCursorPosition,_cursorMax:textareaLength}}}function nativeOverlayScrollbarsAreActive(){return _ignoreOverlayScrollbarHidingCache&&_nativeScrollbarIsOverlaid.x&&_nativeScrollbarIsOverlaid.y}function getContentMeasureElement(){return _isTextarea?_textareaCoverElement[0]:_contentElementNative}function generateDiv(classesOrAttrs,content){return"
"+(content||_strEmpty)+"
"}function selectOrGenerateDivByClass(className,selectParentOrOnlyChildren){var onlyChildren=type(selectParentOrOnlyChildren)==TYPES.b,selectParent=onlyChildren?_hostElement:selectParentOrOnlyChildren||_hostElement;return _domExists&&!selectParent[LEXICON.l]?null:_domExists?selectParent[onlyChildren?"children":"find"](_strDot+className.replace(/\s/g,_strDot)).eq(0):FRAMEWORK(generateDiv(className))}function getObjectPropVal(obj,path){for(var val,splits=path.split(_strDot),i=0;i0&&(optsIsPlainObj?FRAMEWORK.each(pluginTargetElements,(function(i,v){(inst=v)!==undefined$1&&arr.push(OverlayScrollbarsInstance(inst,options,extensions,_pluginsGlobals,_pluginsAutoUpdateLoop))})):FRAMEWORK.each(pluginTargetElements,(function(i,v){inst=INSTANCES(v),("!"===options&&_plugin.valid(inst)||COMPATIBILITY.type(options)==TYPES.f&&options(v,inst)||options===undefined$1)&&arr.push(inst)})),result=1===arr[LEXICON.l]?arr[0]:arr),result):optsIsPlainObj||!options?result:arr},_plugin.globals=function(){initOverlayScrollbarsStatics();var globals=FRAMEWORK.extend(!0,{},_pluginsGlobals);return delete globals.msie,globals},_plugin.defaultOptions=function(newDefaultOptions){initOverlayScrollbarsStatics();var currDefaultOptions=_pluginsGlobals.defaultOptions;if(newDefaultOptions===undefined$1)return FRAMEWORK.extend(!0,{},currDefaultOptions);_pluginsGlobals.defaultOptions=FRAMEWORK.extend(!0,{},currDefaultOptions,_pluginsOptions._validate(newDefaultOptions,_pluginsOptions._template,!0,currDefaultOptions)._default)},_plugin.valid=function(osInstance){return osInstance instanceof _plugin&&!osInstance.getState().destroyed},_plugin.extension=function(extensionName,extension,defaultOptions){var extNameTypeString=COMPATIBILITY.type(extensionName)==TYPES.s,argLen=arguments[LEXICON.l],i=0;if(argLen<1||!extNameTypeString)return FRAMEWORK.extend(!0,{length:_pluginsExtensions[LEXICON.l]},_pluginsExtensions);if(extNameTypeString)if(COMPATIBILITY.type(extension)==TYPES.f)_pluginsExtensions.push({name:extensionName,extensionFactory:extension,defaultOptions:defaultOptions});else for(;i<_pluginsExtensions[LEXICON.l];i++)if(_pluginsExtensions[i].name===extensionName){if(!(argLen>1))return FRAMEWORK.extend(!0,{},_pluginsExtensions[i]);_pluginsExtensions.splice(i,1)}},_plugin}();return JQUERY&&JQUERY.fn&&(JQUERY.fn.overlayScrollbars=function(options,extensions){var _elements=this;return JQUERY.isPlainObject(options)?(JQUERY.each(_elements,(function(){PLUGIN(this,options,extensions)})),_elements):PLUGIN(_elements,options)}),PLUGIN}(global,global.document,void 0)}(OverlayScrollbars$1);var OverlayScrollbars=OverlayScrollbars$1.exports,OverlayScrollbarsComponent=function OverlayScrollbarsComponent(_a){var _a$options=_a.options,options=void 0===_a$options?{}:_a$options,extensions=_a.extensions,className=_a.className,children=_a.children,rest=Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_22__.I)(_a,["options","extensions","className","children"]),osTargetRef=Object(react__WEBPACK_IMPORTED_MODULE_23__.useRef)(),osInstance=Object(react__WEBPACK_IMPORTED_MODULE_23__.useRef)();return Object(react__WEBPACK_IMPORTED_MODULE_23__.useEffect)((function(){return osInstance.current=OverlayScrollbars(osTargetRef.current,options,extensions),mergeHostClassNames(osInstance.current,className),function(){OverlayScrollbars.valid(osInstance.current)&&(osInstance.current.destroy(),osInstance.current=null)}}),[]),Object(react__WEBPACK_IMPORTED_MODULE_23__.useEffect)((function(){OverlayScrollbars.valid(osInstance.current)&&osInstance.current.options(options)}),[options]),Object(react__WEBPACK_IMPORTED_MODULE_23__.useEffect)((function(){OverlayScrollbars.valid(osInstance.current)&&mergeHostClassNames(osInstance.current,className)}),[className]),react__WEBPACK_IMPORTED_MODULE_23___default.a.createElement("div",Object.assign({className:"os-host"},rest,{ref:osTargetRef}),react__WEBPACK_IMPORTED_MODULE_23___default.a.createElement("div",{className:"os-resize-observer-host"}),react__WEBPACK_IMPORTED_MODULE_23___default.a.createElement("div",{className:"os-padding"},react__WEBPACK_IMPORTED_MODULE_23___default.a.createElement("div",{className:"os-viewport"},react__WEBPACK_IMPORTED_MODULE_23___default.a.createElement("div",{className:"os-content"},children))),react__WEBPACK_IMPORTED_MODULE_23___default.a.createElement("div",{className:"os-scrollbar os-scrollbar-horizontal "},react__WEBPACK_IMPORTED_MODULE_23___default.a.createElement("div",{className:"os-scrollbar-track"},react__WEBPACK_IMPORTED_MODULE_23___default.a.createElement("div",{className:"os-scrollbar-handle"}))),react__WEBPACK_IMPORTED_MODULE_23___default.a.createElement("div",{className:"os-scrollbar os-scrollbar-vertical"},react__WEBPACK_IMPORTED_MODULE_23___default.a.createElement("div",{className:"os-scrollbar-track"},react__WEBPACK_IMPORTED_MODULE_23___default.a.createElement("div",{className:"os-scrollbar-handle"}))),react__WEBPACK_IMPORTED_MODULE_23___default.a.createElement("div",{className:"os-scrollbar-corner"}))};function mergeHostClassNames(osInstance,className){if(OverlayScrollbars.valid(osInstance)){var host=osInstance.getElements().host,regex=new RegExp("(^os-host([-_].+|)$)|".concat(osInstance.options().className.replace(/\s/g,"$|"),"$"),"g"),osClassNames=host.className.split(" ").filter((function(name){return name.match(regex)})).join(" ");host.className="".concat(osClassNames," ").concat(className||"")}}}}]); +//# sourceMappingURL=15.cae363b0.iframe.bundle.js.map \ No newline at end of file diff --git a/15.cae363b0.iframe.bundle.js.LICENSE.txt b/15.cae363b0.iframe.bundle.js.LICENSE.txt new file mode 100644 index 000000000..cfda1d61d --- /dev/null +++ b/15.cae363b0.iframe.bundle.js.LICENSE.txt @@ -0,0 +1,12 @@ +/*! + * OverlayScrollbars + * https://github.com/KingSora/OverlayScrollbars + * + * Version: 1.13.0 + * + * Copyright KingSora | Rene Haas. + * https://github.com/KingSora + * + * Released under the MIT license. + * Date: 02.08.2020 + */ diff --git a/15.cae363b0.iframe.bundle.js.map b/15.cae363b0.iframe.bundle.js.map new file mode 100644 index 000000000..d4d62b542 --- /dev/null +++ b/15.cae363b0.iframe.bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"15.cae363b0.iframe.bundle.js","sources":[],"mappings":";A","sourceRoot":""} \ No newline at end of file diff --git a/16.643bad69.iframe.bundle.js b/16.643bad69.iframe.bundle.js new file mode 100644 index 000000000..ccdee9c90 --- /dev/null +++ b/16.643bad69.iframe.bundle.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{"./node_modules/react-dom/client.js":function(module,exports,__webpack_require__){"use strict";var m=__webpack_require__("./node_modules/react-dom/index.js");exports.createRoot=m.createRoot,exports.hydrateRoot=m.hydrateRoot}}]); \ No newline at end of file diff --git a/2.9d7015e1.iframe.bundle.js b/2.9d7015e1.iframe.bundle.js new file mode 100644 index 000000000..651393511 --- /dev/null +++ b/2.9d7015e1.iframe.bundle.js @@ -0,0 +1,3 @@ +/*! For license information please see 2.9d7015e1.iframe.bundle.js.LICENSE.txt */ +(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"./node_modules/@storybook/addon-docs/dist/esm/blocks/index.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"ColorPalette",(function(){return index_681e4b07.x})),__webpack_require__.d(__webpack_exports__,"ColorItem",(function(){return index_681e4b07.w})),__webpack_require__.d(__webpack_exports__,"IconGallery",(function(){return index_681e4b07.z})),__webpack_require__.d(__webpack_exports__,"IconItem",(function(){return index_681e4b07.y})),__webpack_require__.d(__webpack_exports__,"Typeset",(function(){return index_681e4b07.v})),__webpack_require__.d(__webpack_exports__,"anchorBlockIdFromId",(function(){return anchorBlockIdFromId})),__webpack_require__.d(__webpack_exports__,"Anchor",(function(){return Anchor_Anchor})),__webpack_require__.d(__webpack_exports__,"extractComponentArgTypes",(function(){return ArgsTable_extractComponentArgTypes})),__webpack_require__.d(__webpack_exports__,"getComponent",(function(){return ArgsTable_getComponent})),__webpack_require__.d(__webpack_exports__,"StoryTable",(function(){return ArgsTable_StoryTable})),__webpack_require__.d(__webpack_exports__,"ComponentsTable",(function(){return ArgsTable_ComponentsTable})),__webpack_require__.d(__webpack_exports__,"ArgsTable",(function(){return ArgsTable_ArgsTable})),__webpack_require__.d(__webpack_exports__,"SourceState",(function(){return SourceState})),__webpack_require__.d(__webpack_exports__,"Canvas",(function(){return Canvas_Canvas})),__webpack_require__.d(__webpack_exports__,"DescriptionType",(function(){return DescriptionType})),__webpack_require__.d(__webpack_exports__,"getDescriptionProps",(function(){return Description_getDescriptionProps})),__webpack_require__.d(__webpack_exports__,"Description",(function(){return Description_DescriptionContainer})),__webpack_require__.d(__webpack_exports__,"DocsContext",(function(){return DocsContext})),__webpack_require__.d(__webpack_exports__,"DocsPage",(function(){return DocsPage_DocsPage})),__webpack_require__.d(__webpack_exports__,"DocsContainer",(function(){return DocsContainer_DocsContainer})),__webpack_require__.d(__webpack_exports__,"DocsStory",(function(){return DocsStory_DocsStory})),__webpack_require__.d(__webpack_exports__,"Heading",(function(){return Heading_Heading})),__webpack_require__.d(__webpack_exports__,"Meta",(function(){return Meta})),__webpack_require__.d(__webpack_exports__,"Preview",(function(){return Preview})),__webpack_require__.d(__webpack_exports__,"Primary",(function(){return Primary_Primary})),__webpack_require__.d(__webpack_exports__,"Props",(function(){return Props})),__webpack_require__.d(__webpack_exports__,"getSourceProps",(function(){return Source_getSourceProps})),__webpack_require__.d(__webpack_exports__,"Source",(function(){return Source_Source})),__webpack_require__.d(__webpack_exports__,"SourceContext",(function(){return SourceContext})),__webpack_require__.d(__webpack_exports__,"SourceContainer",(function(){return SourceContainer_SourceContainer})),__webpack_require__.d(__webpack_exports__,"Stories",(function(){return Stories_Stories})),__webpack_require__.d(__webpack_exports__,"storyBlockIdFromId",(function(){return storyBlockIdFromId})),__webpack_require__.d(__webpack_exports__,"lookupStoryId",(function(){return Story_lookupStoryId})),__webpack_require__.d(__webpack_exports__,"getStoryId",(function(){return Story_getStoryId})),__webpack_require__.d(__webpack_exports__,"getStoryProps",(function(){return getStoryProps})),__webpack_require__.d(__webpack_exports__,"Story",(function(){return Story_Story})),__webpack_require__.d(__webpack_exports__,"Subheading",(function(){return Subheading_Subheading})),__webpack_require__.d(__webpack_exports__,"Subtitle",(function(){return Subtitle_Subtitle})),__webpack_require__.d(__webpack_exports__,"extractTitle",(function(){return extractTitle})),__webpack_require__.d(__webpack_exports__,"Title",(function(){return Title_Title})),__webpack_require__.d(__webpack_exports__,"Wrapper",(function(){return Wrapper_Wrapper})),__webpack_require__.d(__webpack_exports__,"CURRENT_SELECTION",(function(){return CURRENT_SELECTION})),__webpack_require__.d(__webpack_exports__,"PRIMARY_STORY",(function(){return PRIMARY_STORY})),__webpack_require__.d(__webpack_exports__,"assertIsFn",(function(){return assertIsFn})),__webpack_require__.d(__webpack_exports__,"AddContext",(function(){return mdx_AddContext})),__webpack_require__.d(__webpack_exports__,"CodeOrSourceMdx",(function(){return mdx_CodeOrSourceMdx})),__webpack_require__.d(__webpack_exports__,"AnchorMdx",(function(){return mdx_AnchorMdx})),__webpack_require__.d(__webpack_exports__,"HeaderMdx",(function(){return mdx_HeaderMdx})),__webpack_require__.d(__webpack_exports__,"HeadersMdx",(function(){return HeadersMdx}));var index_681e4b07=__webpack_require__("./node_modules/@storybook/components/dist/esm/index-681e4b07.js"),react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),anchorBlockIdFromId=function anchorBlockIdFromId(storyId){return"anchor--".concat(storyId)},Anchor_Anchor=function Anchor(_ref){var storyId=_ref.storyId,children=_ref.children;return react_default.a.createElement("div",{id:anchorBlockIdFromId(storyId)},children)},mapValues=(__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.array.sort.js"),__webpack_require__("./node_modules/core-js/modules/es.array.find.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.object.values.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/lodash/mapValues.js")),mapValues_default=__webpack_require__.n(mapValues),esm=__webpack_require__("./node_modules/@storybook/addons/dist/esm/index.js"),filterArgTypes=__webpack_require__("./node_modules/@storybook/store/dist/esm/filterArgTypes.js"),dist_esm=__webpack_require__("./node_modules/@storybook/core-events/dist/esm/index.js"),global_window=__webpack_require__("./node_modules/global/window.js"),window_default=__webpack_require__.n(global_window);global_window.window&&void 0===global_window.window.__DOCS_CONTEXT__&&(global_window.window.__DOCS_CONTEXT__=Object(react.createContext)({}),global_window.window.__DOCS_CONTEXT__.displayName="DocsContext");var DocsContext=global_window.window?global_window.window.__DOCS_CONTEXT__:Object(react.createContext)({}),CURRENT_SELECTION=".",PRIMARY_STORY="^",getComponentName=(__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.string.split.js"),function getComponentName(component){if(component)return"string"==typeof component?component.includes("-")?function titleCase(str){return str.split("-").map((function(part){return part.charAt(0).toUpperCase()+part.slice(1)})).join("")}(component):component:component.__docgenInfo&&component.__docgenInfo.displayName?component.__docgenInfo.displayName:component.name});function scrollToElement(element){var block=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"start";element.scrollIntoView({behavior:"smooth",block:block,inline:"nearest"})}__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _objectSpread2(target){for(var i=1;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var MDXContext=react_default.a.createContext({}),esm_useMDXComponents=function useMDXComponents(components){var contextComponents=react_default.a.useContext(MDXContext),allComponents=contextComponents;return components&&(allComponents=function isFunction(obj){return"function"==typeof obj}(components)?components(contextComponents):_objectSpread2(_objectSpread2({},contextComponents),components)),allComponents},esm_MDXProvider=function MDXProvider(props){var allComponents=esm_useMDXComponents(props.components);return react_default.a.createElement(MDXContext.Provider,{value:allComponents},props.children)},DEFAULTS={inlineCode:"code",wrapper:function wrapper(_ref){var children=_ref.children;return react_default.a.createElement(react_default.a.Fragment,{},children)}},MDXCreateElement=react_default.a.forwardRef((function(props,ref){var propComponents=props.components,mdxType=props.mdxType,originalType=props.originalType,parentName=props.parentName,etc=_objectWithoutProperties(props,["components","mdxType","originalType","parentName"]),components=esm_useMDXComponents(propComponents),type=mdxType,Component=components["".concat(parentName,".").concat(type)]||components[type]||DEFAULTS[type]||originalType;return propComponents?react_default.a.createElement(Component,_objectSpread2(_objectSpread2({ref:ref},etc),{},{components:propComponents})):react_default.a.createElement(Component,_objectSpread2({ref:ref},etc))}));MDXCreateElement.displayName="MDXCreateElement";var dist=__webpack_require__("./node_modules/@storybook/csf/dist/index.js");__webpack_require__("./node_modules/regenerator-runtime/runtime.js");function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i"}})))}Promise.all([storyFnRan,rendered]).then((function(){channel.emit(dist_esm.default.STORY_RENDERED,storyId)}))}return react_default.a.createElement("div",{id:storyBlockIdFromId(story.id)},react_default.a.createElement(esm_MDXProvider,{components:index_681e4b07.c},react_default.a.createElement(index_681e4b07.t,storyProps)))};function ArgsTable_extends(){return ArgsTable_extends=Object.assign||function(target){for(var i=1;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&void 0!==arguments[0]?arguments[0]:{},_ref3=arguments.length>1?arguments[1]:void 0,id=_ref3.id,storyById=_ref3.storyById,of=props.of,story=props.story,component=storyById(id).component;if(ArgsTable_isShortcut(of)||ArgsTable_isShortcut(story))return component||null;if(!of)throw new Error(index_681e4b07.o.NO_COMPONENT);return of},ArgsTable_addComponentTabs=function addComponentTabs(tabs,components,context,include,exclude,sort){return Object.assign({},tabs,mapValues_default()(components,(function(comp){return{rows:ArgsTable_extractComponentArgTypes(comp,context,include,exclude),sort:sort}})))},ArgsTable_StoryTable=function StoryTable(props){var context=Object(react.useContext)(DocsContext),currentId=context.id,componentStories=context.componentStories,storyName=props.story,component=props.component,subcomponents=props.subcomponents,showComponent=props.showComponent,include=props.include,exclude=props.exclude,sort=props.sort;try{var storyId;switch(storyName){case CURRENT_SELECTION:storyId=currentId;break;case PRIMARY_STORY:storyId=componentStories()[0].id;break;default:storyId=Story_lookupStoryId(storyName,context)}var story=useStory(storyId,context),_useArgs=function useArgs(storyId,context){var channel=esm.a.getChannel(),storyContext=getContext(storyId,context),_useState2=ArgsTable_slicedToArray(Object(react.useState)(storyContext.args),2),args=_useState2[0],setArgs=_useState2[1];return Object(react.useEffect)((function(){var cb=function cb(changed){changed.storyId===storyId&&setArgs(changed.args)};return channel.on(dist_esm.default.STORY_ARGS_UPDATED,cb),function(){return channel.off(dist_esm.default.STORY_ARGS_UPDATED,cb)}}),[storyId]),[args,Object(react.useCallback)((function(updatedArgs){return channel.emit(dist_esm.default.UPDATE_STORY_ARGS,{storyId:storyId,updatedArgs:updatedArgs})}),[storyId]),Object(react.useCallback)((function(argNames){return channel.emit(dist_esm.default.RESET_STORY_ARGS,{storyId:storyId,argNames:argNames})}),[storyId])]}(storyId,context),_useArgs2=ArgsTable_slicedToArray(_useArgs,3),args=_useArgs2[0],updateArgs=_useArgs2[1],resetArgs=_useArgs2[2],_useGlobals=function useGlobals(storyId,context){var channel=esm.a.getChannel(),storyContext=getContext(storyId,context),_useState4=ArgsTable_slicedToArray(Object(react.useState)(storyContext.globals),2),globals=_useState4[0],setGlobals=_useState4[1];return Object(react.useEffect)((function(){var cb=function cb(changed){setGlobals(changed.globals)};return channel.on(dist_esm.default.GLOBALS_UPDATED,cb),function(){return channel.off(dist_esm.default.GLOBALS_UPDATED,cb)}}),[]),[globals]}(storyId,context),globals=ArgsTable_slicedToArray(_useGlobals,1)[0];if(!story)return react_default.a.createElement(index_681e4b07.p,{isLoading:!0,updateArgs:updateArgs,resetArgs:resetArgs});var argTypes=Object(filterArgTypes.a)(story.argTypes,include,exclude),mainLabel=getComponentName(component)||"Story",tabs=ArgsTable_defineProperty({},mainLabel,{rows:argTypes,args:args,globals:globals,updateArgs:updateArgs,resetArgs:resetArgs}),storyHasArgsWithControls=argTypes&&Object.values(argTypes).find((function(v){return!(null==v||!v.control)}));if(storyHasArgsWithControls||(updateArgs=null,resetArgs=null,tabs={}),!component||storyHasArgsWithControls&&!showComponent||(tabs=ArgsTable_addComponentTabs(tabs,ArgsTable_defineProperty({},mainLabel,component),context,include,exclude)),subcomponents){if(Array.isArray(subcomponents))throw new Error("Unexpected subcomponents array. Expected an object whose keys are tab labels and whose values are components.");tabs=ArgsTable_addComponentTabs(tabs,subcomponents,context,include,exclude)}return react_default.a.createElement(index_681e4b07.q,{tabs:tabs,sort:sort})}catch(err){return react_default.a.createElement(index_681e4b07.p,{error:err.message})}},ArgsTable_ComponentsTable=function ComponentsTable(props){var context=Object(react.useContext)(DocsContext),components=props.components,include=props.include,exclude=props.exclude,sort=props.sort,tabs=ArgsTable_addComponentTabs({},components,context,include,exclude);return react_default.a.createElement(index_681e4b07.q,{tabs:tabs,sort:sort})},ArgsTable_ArgsTable=function ArgsTable(props){var context=Object(react.useContext)(DocsContext),id=context.id,_storyById3=(0,context.storyById)(id),controls=_storyById3.parameters.controls,subcomponents=_storyById3.subcomponents,_ref6=props,include=_ref6.include,exclude=_ref6.exclude,components=_ref6.components,sortProp=_ref6.sort,storyName=props.story,sort=sortProp||(null==controls?void 0:controls.sort),main=ArgsTable_getComponent(props,context);if(storyName)return react_default.a.createElement(ArgsTable_StoryTable,ArgsTable_extends({},props,{component:main,subcomponents:subcomponents,sort:sort}));if(!components&&!subcomponents){var mainProps;try{mainProps={rows:ArgsTable_extractComponentArgTypes(main,context,include,exclude)}}catch(err){mainProps={error:err.message}}return react_default.a.createElement(index_681e4b07.p,ArgsTable_extends({},mainProps,{sort:sort}))}if(components)return react_default.a.createElement(ArgsTable_ComponentsTable,ArgsTable_extends({},props,{components:components,sort:sort}));var mainLabel=getComponentName(main);return react_default.a.createElement(ArgsTable_ComponentsTable,ArgsTable_extends({},props,{components:Object.assign(ArgsTable_defineProperty({},mainLabel,main),subcomponents),sort:sort}))};ArgsTable_ArgsTable.defaultProps={of:CURRENT_SELECTION};__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js");var SourceType,fast_deep_equal=__webpack_require__("./node_modules/fast-deep-equal/index.js"),fast_deep_equal_default=__webpack_require__.n(fast_deep_equal),SNIPPET_RENDERED=("".concat("storybook/docs","/panel"),"".concat("storybook/docs","/snippet-rendered"));function SourceContainer_slicedToArray(arr,i){return function SourceContainer_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function SourceContainer_iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function SourceContainer_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return SourceContainer_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SourceContainer_arrayLikeToArray(o,minLen)}(arr,i)||function SourceContainer_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function SourceContainer_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i2&&void 0!==arguments[2]&&arguments[2];sources[id]&&sources[id].code===newSource||setSources((function(current){var newSources=Object.assign({},current,function SourceContainer_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}({},id,{code:newSource,format:format}));return fast_deep_equal_default()(current,newSources)?current:newSources}))};return channel.on(SNIPPET_RENDERED,handleSnippetRendered),function(){return channel.off(SNIPPET_RENDERED,handleSnippetRendered)}}),[]),react_default.a.createElement(SourceContext.Provider,{value:{sources:sources}},children)},esm_parameters=(__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/@storybook/store/dist/esm/parameters.js"));function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return enhanceSource_arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function enhanceSource_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return enhanceSource_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return enhanceSource_arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function enhanceSource_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var DescriptionType,Canvas_Canvas=function Canvas(props){var _getPreviewProps=function getPreviewProps(_ref,docsContext,sourceContext){var withSource=_ref.withSource,mdxSource=_ref.mdxSource,children=_ref.children,props=Canvas_objectWithoutProperties(_ref,_excluded),mdxComponentAnnotations=docsContext.mdxComponentAnnotations,mdxStoryNameToKey=docsContext.mdxStoryNameToKey,sourceState=withSource,isLoading=!1;if(sourceState===SourceState.NONE)return{isLoading:isLoading,previewProps:props};if(mdxSource)return{isLoading:isLoading,previewProps:Object.assign({},props,{withSource:Source_getSourceProps({code:decodeURI(mdxSource)},docsContext,sourceContext)})};var targetIds=(Array.isArray(children)?children:[children]).filter((function(c){return c.props&&(c.props.id||c.props.name)})).map((function(s){return s.props.id||Object(dist.toId)(mdxComponentAnnotations.id||mdxComponentAnnotations.title,Object(dist.storyNameFromExport)(mdxStoryNameToKey[s.props.name]))})),sourceProps=Source_getSourceProps({ids:targetIds},docsContext,sourceContext);return sourceState||(sourceState=sourceProps.state),{isLoading:isLoading=useStories(targetIds.map((function(targetId){return targetId===CURRENT_SELECTION?docsContext.id:targetId})),docsContext).some((function(s){return!s})),previewProps:Object.assign({},props,{withSource:sourceProps,isExpanded:sourceState===SourceState.OPEN})}}(props,Object(react.useContext)(DocsContext),Object(react.useContext)(SourceContext)),isLoading=_getPreviewProps.isLoading,previewProps=_getPreviewProps.previewProps,children=props.children;return isLoading?react_default.a.createElement(index_681e4b07.n,null):react_default.a.createElement(esm_MDXProvider,{components:index_681e4b07.c},react_default.a.createElement(index_681e4b07.F,previewProps,children))},string=(__webpack_require__("./node_modules/core-js/modules/es.string.trim.js"),__webpack_require__("./node_modules/@storybook/docs-tools/dist/esm/argTypes/docgen/utils/string.js"));!function(DescriptionType){DescriptionType.INFO="info",DescriptionType.NOTES="notes",DescriptionType.DOCGEN="docgen",DescriptionType.LEGACY_5_2="legacy-5.2",DescriptionType.AUTO="auto"}(DescriptionType||(DescriptionType={}));var Description_getNotes=function getNotes(notes){return notes&&("string"==typeof notes?notes:Object(string.a)(notes.markdown)||Object(string.a)(notes.text))},Description_getInfo=function getInfo(info){return info&&("string"==typeof info?info:Object(string.a)(info.text))},noDescription=function noDescription(component){return null},Description_getDescriptionProps=function getDescriptionProps(_ref,_ref2){var of=_ref.of,type=_ref.type,markdown=_ref.markdown,children=_ref.children,id=_ref2.id,_storyById=(0,_ref2.storyById)(id),component=_storyById.component,parameters=_storyById.parameters;if(children||markdown)return{markdown:children||markdown};var notes=parameters.notes,info=parameters.info,_ref3=parameters.docs||{},_ref3$extractComponen=_ref3.extractComponentDescription,extractComponentDescription=void 0===_ref3$extractComponen?noDescription:_ref3$extractComponen,description=_ref3.description,target=of===CURRENT_SELECTION?component:of,componentDescriptionParameter=null==description?void 0:description.component;if(componentDescriptionParameter)return{markdown:componentDescriptionParameter};switch(type){case DescriptionType.INFO:return{markdown:Description_getInfo(info)};case DescriptionType.NOTES:return{markdown:Description_getNotes(notes)};case DescriptionType.LEGACY_5_2:return{markdown:"\n".concat(Description_getNotes(notes)||Description_getInfo(info)||"","\n\n").concat(extractComponentDescription(target)||"","\n").trim()};case DescriptionType.DOCGEN:case DescriptionType.AUTO:default:return{markdown:extractComponentDescription(target,Object.assign({component:component},parameters))}}},Description_DescriptionContainer=function DescriptionContainer(props){var context=Object(react.useContext)(DocsContext),markdown=Description_getDescriptionProps(props,context).markdown;return markdown?react_default.a.createElement(index_681e4b07.A,{markdown:markdown}):null};Description_DescriptionContainer.defaultProps={of:"."};var STORY_KIND_PATH_SEPARATOR=/\s*\/\s*/,extractTitle=function extractTitle(_ref){var title=_ref.title,groups=title.trim().split(STORY_KIND_PATH_SEPARATOR);return groups&&groups[groups.length-1]||title},Title_Title=function Title(_ref2){var children=_ref2.children,context=Object(react.useContext)(DocsContext),text=children;return text||(text=extractTitle(context)),text?react_default.a.createElement(index_681e4b07.B,{className:"sbdocs-title"},text):null},Subtitle_Subtitle=function Subtitle(_ref){var children=_ref.children,_useContext=Object(react.useContext)(DocsContext),id=_useContext.id,parameters=(0,_useContext.storyById)(id).parameters,text=children;return text||(text=null==parameters?void 0:parameters.componentSubtitle),text?react_default.a.createElement(index_681e4b07.C,{className:"sbdocs-subtitle"},text):null},browser=(__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/util-deprecate/browser.js")),browser_default=__webpack_require__.n(browser),ts_dedent_esm=__webpack_require__("./node_modules/ts-dedent/esm/index.js"),theming_dist_esm=(__webpack_require__("./node_modules/core-js/modules/es.string.match.js"),__webpack_require__("./node_modules/core-js/modules/es.string.starts-with.js"),__webpack_require__("./node_modules/@storybook/theming/dist/esm/index.js")),mdx_excluded=["children"],_excluded2=["className","children"],_excluded3=["href","target","children"],_excluded4=["as","id","children"],_excluded5=["as","id","children"];function mdx_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function mdx_extends(){return mdx_extends=Object.assign||function(target){for(var i=1;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var mdx_document=window_default.a.document,assertIsFn=function assertIsFn(val){if("function"!=typeof val)throw new Error("Expected story function, got: ".concat(val));return val},mdx_AddContext=function AddContext(props){var children=props.children,rest=mdx_objectWithoutProperties(props,mdx_excluded),parentContext=react_default.a.useContext(DocsContext);return react_default.a.createElement(DocsContext.Provider,{value:Object.assign({},parentContext,rest)},children)},mdx_CodeOrSourceMdx=function CodeOrSourceMdx(_ref){var className=_ref.className,children=_ref.children,rest=mdx_objectWithoutProperties(_ref,_excluded2);if("string"!=typeof className&&("string"!=typeof children||!children.match(/[\n\r]/g)))return react_default.a.createElement(index_681e4b07.e,null,children);var language=className&&className.split("-");return react_default.a.createElement(index_681e4b07.s,mdx_extends({language:language&&language[1]||"plaintext",format:!1,code:children},rest))};function mdx_navigate(url){esm.a.getChannel().emit(dist_esm.NAVIGATE_URL,url)}var _templateObject,A=index_681e4b07.b.a,mdx_AnchorInPage=function AnchorInPage(_ref2){var hash=_ref2.hash,children=_ref2.children;return react_default.a.createElement(A,{href:hash,target:"_self",onClick:function onClick(event){var id=hash.substring(1);mdx_document.getElementById(id)&&mdx_navigate(hash)}},children)},mdx_AnchorMdx=function AnchorMdx(props){var href=props.href,target=props.target,children=props.children,rest=mdx_objectWithoutProperties(props,_excluded3);if(href){if(href.startsWith("#"))return react_default.a.createElement(mdx_AnchorInPage,{hash:href},children);if("_blank"!==target&&!href.startsWith("https://"))return react_default.a.createElement(A,mdx_extends({href:href,onClick:function onClick(event){event.preventDefault(),mdx_navigate(event.currentTarget.getAttribute("href"))},target:target},rest),children)}return react_default.a.createElement(A,props)},SUPPORTED_MDX_HEADERS=["h1","h2","h3","h4","h5","h6"],OcticonHeaders=SUPPORTED_MDX_HEADERS.reduce((function(acc,headerType){return Object.assign({},acc,mdx_defineProperty({},headerType,Object(theming_dist_esm.i)(index_681e4b07.b[headerType])({"& svg":{visibility:"hidden"},"&:hover svg":{visibility:"visible"}})))}),{}),OcticonAnchor=theming_dist_esm.i.a((function(){return{float:"left",paddingRight:"4px",marginLeft:"-20px",color:"inherit"}})),mdx_HeaderWithOcticonAnchor=function HeaderWithOcticonAnchor(_ref3){var as=_ref3.as,id=_ref3.id,children=_ref3.children,rest=mdx_objectWithoutProperties(_ref3,_excluded4),OcticonHeader=OcticonHeaders[as],hash="#".concat(id);return react_default.a.createElement(OcticonHeader,mdx_extends({id:id},rest),react_default.a.createElement(OcticonAnchor,{"aria-hidden":"true",href:hash,tabIndex:-1,target:"_self",onClick:function onClick(event){mdx_document.getElementById(id)&&mdx_navigate(hash)}},react_default.a.createElement("svg",{viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16","aria-hidden":"true",fill:"currentColor"},react_default.a.createElement("path",{fillRule:"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}))),children)},mdx_HeaderMdx=function HeaderMdx(props){var as=props.as,id=props.id,children=props.children,rest=mdx_objectWithoutProperties(props,_excluded5);if(id)return react_default.a.createElement(mdx_HeaderWithOcticonAnchor,mdx_extends({as:as,id:id},rest),children);var Header=index_681e4b07.b[as];return react_default.a.createElement(Header,props)},HeadersMdx=SUPPORTED_MDX_HEADERS.reduce((function(acc,headerType){return Object.assign({},acc,mdx_defineProperty({},headerType,(function(props){return react_default.a.createElement(mdx_HeaderMdx,mdx_extends({as:headerType},props))})))}),{}),Subheading_Subheading=function Subheading(_ref){var children=_ref.children;if(_ref.disableAnchor||"string"!=typeof children)return react_default.a.createElement(index_681e4b07.h,null,children);var tagID=children.toLowerCase().replace(/[^a-z0-9]/gi,"-");return react_default.a.createElement(mdx_HeaderMdx,{as:"h3",id:tagID},children)};var warnStoryDescription=browser_default()((function(){}),Object(ts_dedent_esm.a)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n Deprecated parameter: docs.storyDescription => docs.description.story\n \n https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#docs-description-parameter\n "])))),DocsStory_DocsStory=function DocsStory(_ref){var description,_docs$description,id=_ref.id,name=_ref.name,_ref$expanded=_ref.expanded,expanded=void 0===_ref$expanded||_ref$expanded,_ref$withToolbar=_ref.withToolbar,withToolbar=void 0!==_ref$withToolbar&&_ref$withToolbar,_ref$parameters=_ref.parameters,parameters=void 0===_ref$parameters?{}:_ref$parameters,docs=parameters.docs;expanded&&docs&&((description=null===(_docs$description=docs.description)||void 0===_docs$description?void 0:_docs$description.story)||(description=docs.storyDescription)&&warnStoryDescription());var subheading=expanded&&name;return react_default.a.createElement(Anchor_Anchor,{storyId:id},subheading&&react_default.a.createElement(Subheading_Subheading,null,subheading),description&&react_default.a.createElement(Description_DescriptionContainer,{markdown:description}),react_default.a.createElement(Canvas_Canvas,{withToolbar:withToolbar},react_default.a.createElement(Story_Story,{id:id,parameters:parameters})))};function Primary_extends(){return Primary_extends=Object.assign||function(target){for(var i=1;i docs.theme\n\n https://github.com/storybookjs/storybook/blob/next/addons/docs/docs/theming.md#storybook-theming\n"])))),DocsContainer_DocsContainer=function DocsContainer(_ref){var context=_ref.context,children=_ref.children,storyId=context.id,_storyById$parameters=(0,context.storyById)(storyId).parameters,_storyById$parameters2=_storyById$parameters.options,options=void 0===_storyById$parameters2?{}:_storyById$parameters2,_storyById$parameters3=_storyById$parameters.docs,docs=void 0===_storyById$parameters3?{}:_storyById$parameters3,themeVars=docs.theme;!themeVars&&options.theme&&(warnOptionsTheme(),themeVars=options.theme);var theme=Object(theming_dist_esm.e)(themeVars),allComponents=Object.assign({},defaultComponents,docs.components);return Object(react.useEffect)((function(){var url;try{url=new URL(globalWindow.parent.location)}catch(err){return}if(url.hash){var element=DocsContainer_document.getElementById(url.hash.substring(1));element&&setTimeout((function(){scrollToElement(element)}),200)}else{var _element=DocsContainer_document.getElementById(anchorBlockIdFromId(storyId))||DocsContainer_document.getElementById(storyBlockIdFromId(storyId));if(_element){var allStories=_element.parentElement.querySelectorAll('[id|="anchor-"]'),scrollTarget=_element;allStories&&allStories[0]===_element&&(scrollTarget=DocsContainer_document.getElementById("docs-root")),setTimeout((function(){scrollToElement(scrollTarget,"start")}),200)}}}),[storyId]),react_default.a.createElement(DocsContext.Provider,{value:context},react_default.a.createElement(SourceContainer_SourceContainer,null,react_default.a.createElement(theming_dist_esm.b,{theme:theme},react_default.a.createElement(esm_MDXProvider,{components:allComponents},react_default.a.createElement(index_681e4b07.E,{className:"sbdocs sbdocs-wrapper"},react_default.a.createElement(index_681e4b07.D,{className:"sbdocs sbdocs-content"},children))))))},Meta_document=window_default.a.document;var Preview_templateObject,Meta=function Meta(){return"docs"===new URL(Meta_document.location).searchParams.get("viewMode")?function renderAnchor(){var context=Object(react.useContext)(DocsContext),anchorId=function getFirstStoryId(docsContext){var stories=docsContext.componentStories();return stories.length>0?stories[0].id:null}(context)||context.id;return react_default.a.createElement(Anchor_Anchor,{storyId:anchorId})}():null};var Props_templateObject,Preview=browser_default()((function(props){return react_default.a.createElement(Canvas_Canvas,props)}),Object(ts_dedent_esm.a)(Preview_templateObject||(Preview_templateObject=function Preview_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n Preview doc block has been renamed to Canvas.\n\n https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#previewprops-renamed\n "]))));var Props=browser_default()((function(props){return react_default.a.createElement(ArgsTable_ArgsTable,props)}),Object(ts_dedent_esm.a)(Props_templateObject||(Props_templateObject=function Props_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n Props doc block has been renamed to ArgsTable.\n\n https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#previewprops-renamed\n "]))));Props.defaultProps={of:CURRENT_SELECTION};var Wrapper_Wrapper=function Wrapper(_ref){var children=_ref.children;return react_default.a.createElement("div",{style:{fontFamily:"sans-serif"}},children)}},"./node_modules/@storybook/components/dist/esm/index-681e4b07.js":function(module,__webpack_exports__,__webpack_require__){"use strict";(function(global){__webpack_require__.d(__webpack_exports__,"a",(function(){return ActionBar})),__webpack_require__.d(__webpack_exports__,"b",(function(){return components})),__webpack_require__.d(__webpack_exports__,"c",(function(){return resetComponents})),__webpack_require__.d(__webpack_exports__,"d",(function(){return Form})),__webpack_require__.d(__webpack_exports__,"e",(function(){return Code})),__webpack_require__.d(__webpack_exports__,"f",(function(){return Icons})),__webpack_require__.d(__webpack_exports__,"g",(function(){return H2})),__webpack_require__.d(__webpack_exports__,"h",(function(){return H3})),__webpack_require__.d(__webpack_exports__,"i",(function(){return ScrollArea})),__webpack_require__.d(__webpack_exports__,"j",(function(){return TooltipNote})),__webpack_require__.d(__webpack_exports__,"k",(function(){return WithTooltip})),__webpack_require__.d(__webpack_exports__,"l",(function(){return _objectWithoutPropertiesLoose})),__webpack_require__.d(__webpack_exports__,"m",(function(){return _extends})),__webpack_require__.d(__webpack_exports__,"n",(function(){return PreviewSkeleton})),__webpack_require__.d(__webpack_exports__,"o",(function(){return ArgsTableError})),__webpack_require__.d(__webpack_exports__,"p",(function(){return ArgsTable})),__webpack_require__.d(__webpack_exports__,"q",(function(){return TabbedArgsTable})),__webpack_require__.d(__webpack_exports__,"r",(function(){return SourceError})),__webpack_require__.d(__webpack_exports__,"s",(function(){return Source})),__webpack_require__.d(__webpack_exports__,"t",(function(){return Story})),__webpack_require__.d(__webpack_exports__,"u",(function(){return StorySkeleton})),__webpack_require__.d(__webpack_exports__,"v",(function(){return Typeset})),__webpack_require__.d(__webpack_exports__,"w",(function(){return ColorItem})),__webpack_require__.d(__webpack_exports__,"x",(function(){return ColorPalette})),__webpack_require__.d(__webpack_exports__,"y",(function(){return IconItem})),__webpack_require__.d(__webpack_exports__,"z",(function(){return IconGallery})),__webpack_require__.d(__webpack_exports__,"A",(function(){return Description$1})),__webpack_require__.d(__webpack_exports__,"B",(function(){return Title})),__webpack_require__.d(__webpack_exports__,"C",(function(){return Subtitle})),__webpack_require__.d(__webpack_exports__,"D",(function(){return DocsContent})),__webpack_require__.d(__webpack_exports__,"E",(function(){return DocsWrapper})),__webpack_require__.d(__webpack_exports__,"F",(function(){return Preview})),__webpack_require__.d(__webpack_exports__,"G",(function(){return __awaiter})),__webpack_require__.d(__webpack_exports__,"H",(function(){return commonjsGlobal})),__webpack_require__.d(__webpack_exports__,"I",(function(){return __rest})),__webpack_require__.d(__webpack_exports__,"J",(function(){return dedent})),__webpack_require__.d(__webpack_exports__,"K",(function(){return basePlacements})),__webpack_require__.d(__webpack_exports__,"L",(function(){return getDefaultExportFromCjs})),__webpack_require__.d(__webpack_exports__,"M",(function(){return bottom})),__webpack_require__.d(__webpack_exports__,"N",(function(){return end})),__webpack_require__.d(__webpack_exports__,"O",(function(){return clippingParents})),__webpack_require__.d(__webpack_exports__,"P",(function(){return reference})),__webpack_require__.d(__webpack_exports__,"Q",(function(){return left})),__webpack_require__.d(__webpack_exports__,"R",(function(){return variationPlacements})),__webpack_require__.d(__webpack_exports__,"S",(function(){return placements})),__webpack_require__.d(__webpack_exports__,"T",(function(){return auto})),__webpack_require__.d(__webpack_exports__,"U",(function(){return popper})),__webpack_require__.d(__webpack_exports__,"V",(function(){return modifierPhases})),__webpack_require__.d(__webpack_exports__,"W",(function(){return right})),__webpack_require__.d(__webpack_exports__,"X",(function(){return start})),__webpack_require__.d(__webpack_exports__,"Y",(function(){return top})),__webpack_require__.d(__webpack_exports__,"Z",(function(){return _root})),__webpack_require__.d(__webpack_exports__,"ab",(function(){return viewport})),__webpack_require__.d(__webpack_exports__,"bb",(function(){return window_1})),__webpack_require__.d(__webpack_exports__,"cb",(function(){return isObject_1})),__webpack_require__.d(__webpack_exports__,"db",(function(){return isSymbol_1})),__webpack_require__.d(__webpack_exports__,"eb",(function(){return getControlId}));var core_js_modules_es_object_freeze_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),core_js_modules_es_object_freeze_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_object_freeze_js__WEBPACK_IMPORTED_MODULE_0__),regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/regenerator-runtime/runtime.js"),regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/core-js/modules/es.promise.js"),core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_7__),core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_8__),core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/core-js/modules/es.object.get-prototype-of.js"),core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_9__),core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_10__),core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/core-js/modules/es.reflect.construct.js"),core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_11__),core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_12__),core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/core-js/modules/es.map.js"),core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_13__),core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_14__),core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_15__),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_16__),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_17___default=__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_17__),core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/core-js/modules/es.string.match.js"),core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_18__),core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/core-js/modules/es.number.to-fixed.js"),core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_19___default=__webpack_require__.n(core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_19__),core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_20___default=__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_20__),core_js_modules_es_string_bold_js__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/core-js/modules/es.string.bold.js"),core_js_modules_es_string_bold_js__WEBPACK_IMPORTED_MODULE_21___default=__webpack_require__.n(core_js_modules_es_string_bold_js__WEBPACK_IMPORTED_MODULE_21__),core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_22___default=__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_22__),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_23___default=__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_23__),core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_24___default=__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_24__),core_js_modules_esnext_global_this_js__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/core-js/modules/esnext.global-this.js"),core_js_modules_esnext_global_this_js__WEBPACK_IMPORTED_MODULE_25___default=__webpack_require__.n(core_js_modules_esnext_global_this_js__WEBPACK_IMPORTED_MODULE_25__),core_js_modules_es_string_small_js__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/core-js/modules/es.string.small.js"),core_js_modules_es_string_small_js__WEBPACK_IMPORTED_MODULE_26___default=__webpack_require__.n(core_js_modules_es_string_small_js__WEBPACK_IMPORTED_MODULE_26__),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_27___default=__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_27__),core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./node_modules/core-js/modules/es.regexp.constructor.js"),core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_28___default=__webpack_require__.n(core_js_modules_es_regexp_constructor_js__WEBPACK_IMPORTED_MODULE_28__),core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./node_modules/core-js/modules/es.string.trim.js"),core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_29___default=__webpack_require__.n(core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_29__),core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./node_modules/core-js/modules/es.string.split.js"),core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_30___default=__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_30__),core_js_modules_es_string_ends_with_js__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./node_modules/core-js/modules/es.string.ends-with.js"),core_js_modules_es_string_ends_with_js__WEBPACK_IMPORTED_MODULE_31___default=__webpack_require__.n(core_js_modules_es_string_ends_with_js__WEBPACK_IMPORTED_MODULE_31__),core_js_modules_es_string_trim_end_js__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("./node_modules/core-js/modules/es.string.trim-end.js"),core_js_modules_es_string_trim_end_js__WEBPACK_IMPORTED_MODULE_32___default=__webpack_require__.n(core_js_modules_es_string_trim_end_js__WEBPACK_IMPORTED_MODULE_32__),core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__("./node_modules/core-js/modules/es.array.sort.js"),core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_33___default=__webpack_require__.n(core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_33__),core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__("./node_modules/core-js/modules/es.array.splice.js"),core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_34___default=__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_34__),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_35___default=__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_35__),core_js_modules_es_array_buffer_constructor_js__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__("./node_modules/core-js/modules/es.array-buffer.constructor.js"),core_js_modules_es_array_buffer_constructor_js__WEBPACK_IMPORTED_MODULE_36___default=__webpack_require__.n(core_js_modules_es_array_buffer_constructor_js__WEBPACK_IMPORTED_MODULE_36__),core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_37___default=__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_37__),core_js_modules_es_number_is_nan_js__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__("./node_modules/core-js/modules/es.number.is-nan.js"),core_js_modules_es_number_is_nan_js__WEBPACK_IMPORTED_MODULE_38___default=__webpack_require__.n(core_js_modules_es_number_is_nan_js__WEBPACK_IMPORTED_MODULE_38__),core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_39___default=__webpack_require__.n(core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_39__),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_40__=__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_40___default=__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_40__),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_41__=__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_41___default=__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_41__),core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_42__=__webpack_require__("./node_modules/core-js/modules/es.array.find.js"),core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_42___default=__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_42__),core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_43__=__webpack_require__("./node_modules/core-js/modules/es.object.entries.js"),core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_43___default=__webpack_require__.n(core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_43__),core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_44__=__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_44___default=__webpack_require__.n(core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_44__),core_js_modules_es_string_repeat_js__WEBPACK_IMPORTED_MODULE_45__=__webpack_require__("./node_modules/core-js/modules/es.string.repeat.js"),core_js_modules_es_string_repeat_js__WEBPACK_IMPORTED_MODULE_45___default=__webpack_require__.n(core_js_modules_es_string_repeat_js__WEBPACK_IMPORTED_MODULE_45__),core_js_modules_es_object_get_own_property_names_js__WEBPACK_IMPORTED_MODULE_46__=__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-names.js"),core_js_modules_es_object_get_own_property_names_js__WEBPACK_IMPORTED_MODULE_46___default=__webpack_require__.n(core_js_modules_es_object_get_own_property_names_js__WEBPACK_IMPORTED_MODULE_46__),core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_47__=__webpack_require__("./node_modules/core-js/modules/es.string.starts-with.js"),core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_47___default=__webpack_require__.n(core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_47__),core_js_modules_web_url_js__WEBPACK_IMPORTED_MODULE_48__=__webpack_require__("./node_modules/core-js/modules/web.url.js"),core_js_modules_web_url_js__WEBPACK_IMPORTED_MODULE_48___default=__webpack_require__.n(core_js_modules_web_url_js__WEBPACK_IMPORTED_MODULE_48__),core_js_modules_web_url_search_params_js__WEBPACK_IMPORTED_MODULE_49__=__webpack_require__("./node_modules/core-js/modules/web.url-search-params.js"),core_js_modules_web_url_search_params_js__WEBPACK_IMPORTED_MODULE_49___default=__webpack_require__.n(core_js_modules_web_url_search_params_js__WEBPACK_IMPORTED_MODULE_49__),core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_50__=__webpack_require__("./node_modules/core-js/modules/es.object.values.js"),core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_50___default=__webpack_require__.n(core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_50__),react__WEBPACK_IMPORTED_MODULE_51__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_51___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_51__),_storybook_theming__WEBPACK_IMPORTED_MODULE_52__=__webpack_require__("./node_modules/@storybook/theming/dist/esm/index.js"),memoizerific__WEBPACK_IMPORTED_MODULE_53__=__webpack_require__("./node_modules/memoizerific/memoizerific.js"),memoizerific__WEBPACK_IMPORTED_MODULE_53___default=__webpack_require__.n(memoizerific__WEBPACK_IMPORTED_MODULE_53__),_storybook_csf__WEBPACK_IMPORTED_MODULE_54__=__webpack_require__("./node_modules/@storybook/csf/dist/index.js"),_storybook_csf__WEBPACK_IMPORTED_MODULE_54___default=__webpack_require__.n(_storybook_csf__WEBPACK_IMPORTED_MODULE_54__),qs__WEBPACK_IMPORTED_MODULE_55__=__webpack_require__("./node_modules/qs/lib/index.js"),qs__WEBPACK_IMPORTED_MODULE_55___default=__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_55__),_storybook_client_logger__WEBPACK_IMPORTED_MODULE_56__=__webpack_require__("./node_modules/@storybook/client-logger/dist/esm/index.js"),_templateObject,_templateObject2,_templateObject3,_templateObject4;function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0&&huePrime<1?(red=chroma,green=secondComponent):huePrime>=1&&huePrime<2?(red=secondComponent,green=chroma):huePrime>=2&&huePrime<3?(green=chroma,blue=secondComponent):huePrime>=3&&huePrime<4?(green=secondComponent,blue=chroma):huePrime>=4&&huePrime<5?(red=secondComponent,blue=chroma):huePrime>=5&&huePrime<6&&(red=chroma,blue=secondComponent);var lightnessModification=lightness-chroma/2;return convert(red+lightnessModification,green+lightnessModification,blue+lightnessModification)}var namedColorMap={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function nameToHex(color){if("string"!=typeof color)return color;var normalizedColorName=color.toLowerCase();return namedColorMap[normalizedColorName]?"#"+namedColorMap[normalizedColorName]:color}var hexRegex=/^#[a-fA-F0-9]{6}$/,hexRgbaRegex=/^#[a-fA-F0-9]{8}$/,reducedHexRegex=/^#[a-fA-F0-9]{3}$/,reducedRgbaHexRegex=/^#[a-fA-F0-9]{4}$/,rgbRegex=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,rgbaRegex=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,hslRegex=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,hslaRegex=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function parseToRgb(color){if("string"!=typeof color)throw new PolishedError(3);var normalizedColor=nameToHex(color);if(normalizedColor.match(hexRegex))return{red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16)};if(normalizedColor.match(hexRgbaRegex)){var alpha=parseFloat((parseInt(""+normalizedColor[7]+normalizedColor[8],16)/255).toFixed(2));return{red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16),alpha:alpha}}if(normalizedColor.match(reducedHexRegex))return{red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16)};if(normalizedColor.match(reducedRgbaHexRegex)){var _alpha=parseFloat((parseInt(""+normalizedColor[4]+normalizedColor[4],16)/255).toFixed(2));return{red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16),alpha:_alpha}}var rgbMatched=rgbRegex.exec(normalizedColor);if(rgbMatched)return{red:parseInt(""+rgbMatched[1],10),green:parseInt(""+rgbMatched[2],10),blue:parseInt(""+rgbMatched[3],10)};var rgbaMatched=rgbaRegex.exec(normalizedColor.substring(0,50));if(rgbaMatched)return{red:parseInt(""+rgbaMatched[1],10),green:parseInt(""+rgbaMatched[2],10),blue:parseInt(""+rgbaMatched[3],10),alpha:parseFloat(""+rgbaMatched[4])>1?parseFloat(""+rgbaMatched[4])/100:parseFloat(""+rgbaMatched[4])};var hslMatched=hslRegex.exec(normalizedColor);if(hslMatched){var rgbColorString="rgb("+hslToRgb(parseInt(""+hslMatched[1],10),parseInt(""+hslMatched[2],10)/100,parseInt(""+hslMatched[3],10)/100)+")",hslRgbMatched=rgbRegex.exec(rgbColorString);if(!hslRgbMatched)throw new PolishedError(4,normalizedColor,rgbColorString);return{red:parseInt(""+hslRgbMatched[1],10),green:parseInt(""+hslRgbMatched[2],10),blue:parseInt(""+hslRgbMatched[3],10)}}var hslaMatched=hslaRegex.exec(normalizedColor.substring(0,50));if(hslaMatched){var _rgbColorString="rgb("+hslToRgb(parseInt(""+hslaMatched[1],10),parseInt(""+hslaMatched[2],10)/100,parseInt(""+hslaMatched[3],10)/100)+")",_hslRgbMatched=rgbRegex.exec(_rgbColorString);if(!_hslRgbMatched)throw new PolishedError(4,normalizedColor,_rgbColorString);return{red:parseInt(""+_hslRgbMatched[1],10),green:parseInt(""+_hslRgbMatched[2],10),blue:parseInt(""+_hslRgbMatched[3],10),alpha:parseFloat(""+hslaMatched[4])>1?parseFloat(""+hslaMatched[4])/100:parseFloat(""+hslaMatched[4])}}throw new PolishedError(5)}function rgbToHsl(color){var hue,red=color.red/255,green=color.green/255,blue=color.blue/255,max=Math.max(red,green,blue),min=Math.min(red,green,blue),lightness=(max+min)/2;if(max===min)return void 0!==color.alpha?{hue:0,saturation:0,lightness:lightness,alpha:color.alpha}:{hue:0,saturation:0,lightness:lightness};var delta=max-min,saturation=lightness>.5?delta/(2-max-min):delta/(max+min);switch(max){case red:hue=(green-blue)/delta+(green=1?hslToHex(value,saturation,lightness):"rgba("+hslToRgb(value,saturation,lightness)+","+alpha+")";if("object"===_typeof(value)&&void 0===saturation&&void 0===lightness&&void 0===alpha)return value.alpha>=1?hslToHex(value.hue,value.saturation,value.lightness):"rgba("+hslToRgb(value.hue,value.saturation,value.lightness)+","+value.alpha+")";throw new PolishedError(2)}function rgb(value,green,blue){if("number"==typeof value&&"number"==typeof green&&"number"==typeof blue)return reduceHexValue$1("#"+numberToHex(value)+numberToHex(green)+numberToHex(blue));if("object"===_typeof(value)&&void 0===green&&void 0===blue)return reduceHexValue$1("#"+numberToHex(value.red)+numberToHex(value.green)+numberToHex(value.blue));throw new PolishedError(6)}function rgba(firstValue,secondValue,thirdValue,fourthValue){if("string"==typeof firstValue&&"number"==typeof secondValue){var rgbValue=parseToRgb(firstValue);return"rgba("+rgbValue.red+","+rgbValue.green+","+rgbValue.blue+","+secondValue+")"}if("number"==typeof firstValue&&"number"==typeof secondValue&&"number"==typeof thirdValue&&"number"==typeof fourthValue)return fourthValue>=1?rgb(firstValue,secondValue,thirdValue):"rgba("+firstValue+","+secondValue+","+thirdValue+","+fourthValue+")";if("object"===_typeof(firstValue)&&void 0===secondValue&&void 0===thirdValue&&void 0===fourthValue)return firstValue.alpha>=1?rgb(firstValue.red,firstValue.green,firstValue.blue):"rgba("+firstValue.red+","+firstValue.green+","+firstValue.blue+","+firstValue.alpha+")";throw new PolishedError(7)}var isRgb=function isRgb(color){return"number"==typeof color.red&&"number"==typeof color.green&&"number"==typeof color.blue&&("number"!=typeof color.alpha||void 0===color.alpha)},isRgba=function isRgba(color){return"number"==typeof color.red&&"number"==typeof color.green&&"number"==typeof color.blue&&"number"==typeof color.alpha},isHsl=function isHsl(color){return"number"==typeof color.hue&&"number"==typeof color.saturation&&"number"==typeof color.lightness&&("number"!=typeof color.alpha||void 0===color.alpha)},isHsla=function isHsla(color){return"number"==typeof color.hue&&"number"==typeof color.saturation&&"number"==typeof color.lightness&&"number"==typeof color.alpha};function toColorString(color){if("object"!==_typeof(color))throw new PolishedError(8);if(isRgba(color))return rgba(color);if(isRgb(color))return rgb(color);if(isHsla(color))return hsla(color);if(isHsl(color))return hsl(color);throw new PolishedError(8)}function curried(f,length,acc){return function fn(){var combined=acc.concat(Array.prototype.slice.call(arguments));return combined.length>=length?f.apply(this,combined):curried(f,length,combined)}}function curry(f){return curried(f,f.length,[])}function guard(lowerBoundary,upperBoundary,value){return Math.max(lowerBoundary,Math.min(upperBoundary,value))}function darken(amount,color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(_extends$1({},hslColor,{lightness:guard(0,1,hslColor.lightness-parseFloat(amount))}))}var curriedDarken=curry(darken),curriedDarken$1=curriedDarken;function lighten(amount,color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(_extends$1({},hslColor,{lightness:guard(0,1,hslColor.lightness+parseFloat(amount))}))}var curriedLighten=curry(lighten),curriedLighten$1=curriedLighten;function opacify(amount,color){if("transparent"===color)return color;var parsedColor=parseToRgb(color);return rgba(_extends$1({},parsedColor,{alpha:guard(0,1,(100*("number"==typeof parsedColor.alpha?parsedColor.alpha:1)+100*parseFloat(amount))/100)}))}var curriedOpacify=curry(opacify),curriedOpacify$1=curriedOpacify;function transparentize(amount,color){if("transparent"===color)return color;var parsedColor=parseToRgb(color);return rgba(_extends$1({},parsedColor,{alpha:guard(0,1,+(100*("number"==typeof parsedColor.alpha?parsedColor.alpha:1)-100*parseFloat(amount)).toFixed(2)/100)}))}var curriedTransparentize=curry(transparentize),curriedTransparentize$1=curriedTransparentize,headerCommon=function headerCommon(_ref2){return{margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:_ref2.theme.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}},codeCommon=function codeCommon(_ref3){var theme=_ref3.theme;return{lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:theme.typography.size.s2-1,border:"light"===theme.base?"1px solid ".concat(theme.color.mediumlight):"1px solid ".concat(theme.color.darker),color:"light"===theme.base?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.3,theme.color.defaultText),backgroundColor:"light"===theme.base?theme.color.lighter:theme.color.border}},withReset=function withReset(_ref4){var theme=_ref4.theme;return{fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}},withMargin={margin:"16px 0"},Link$1=function Link$1(_a){var input=_a.href,children=_a.children,props=__rest(_a,["href","children"]),isStorybookPath=/^\//.test(input),isAnchorUrl=/^#.*/.test(input),href=isStorybookPath?"?path=".concat(input):input,target=isAnchorUrl?"_self":"_top";return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("a",Object.assign({href:href,target:target},props),children)},A$2=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i)(Link$1)(withReset,(function(_ref5){return{fontSize:"inherit",lineHeight:"24px",color:_ref5.theme.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}}})),Blockquote=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.blockquote(withReset,withMargin,(function(_ref6){var theme=_ref6.theme;return{borderLeft:"4px solid ".concat(theme.color.medium),padding:"0 15px",color:theme.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}}})),Wrapper$8=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div(withReset,(function(_ref7){var theme=_ref7.theme;return{backgroundColor:"light"===theme.base?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:theme.appBorderRadius,border:"1px dashed ".concat(theme.appBorderColor),display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:curriedTransparentize$1(.3,theme.color.defaultText),fontSize:theme.typography.size.s2}})),EmptyBlock=function EmptyBlock(props){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Wrapper$8,Object.assign({},props,{className:"docblock-emptyblock"}))},LazySyntaxHighlighter=Object(react__WEBPACK_IMPORTED_MODULE_51__.lazy)((function(){return __webpack_require__.e(0).then(__webpack_require__.bind(null,"./node_modules/@storybook/components/dist/esm/syntaxhighlighter-b07b042a.js"))})),LazySyntaxHighlighterWithFormatter=Object(react__WEBPACK_IMPORTED_MODULE_51__.lazy)((function(){return __awaiter(void 0,void 0,void 0,regeneratorRuntime.mark((function _callee(){var _yield$Promise$all,_yield$Promise$all2,SyntaxHighlighter,formatter;return regeneratorRuntime.wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=2,Promise.all([__webpack_require__.e(0).then(__webpack_require__.bind(null,"./node_modules/@storybook/components/dist/esm/syntaxhighlighter-b07b042a.js")),Promise.all([__webpack_require__.e(1),__webpack_require__.e(9)]).then(__webpack_require__.bind(null,"./node_modules/@storybook/components/dist/esm/formatter-0d5cb0eb.js"))]);case 2:return _yield$Promise$all=_context.sent,_yield$Promise$all2=_slicedToArray(_yield$Promise$all,2),SyntaxHighlighter=_yield$Promise$all2[0].SyntaxHighlighter,formatter=_yield$Promise$all2[1].formatter,_context.abrupt("return",{default:function _default(props){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SyntaxHighlighter,Object.assign({},props,{formatter:formatter}))}});case 7:case"end":return _context.stop()}}),_callee)})))})),SyntaxHighlighter=function SyntaxHighlighter(props){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",null)},!1!==props.format?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(LazySyntaxHighlighterWithFormatter,Object.assign({},props)):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(LazySyntaxHighlighter,Object.assign({},props)))},StyledSyntaxHighlighter=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i)(SyntaxHighlighter)((function(_ref8){var theme=_ref8.theme;return{fontSize:"".concat(theme.typography.size.s2-1,"px"),lineHeight:"19px",margin:"25px 0 40px",borderRadius:theme.appBorderRadius,boxShadow:"light"===theme.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}}})),SourceError;!function(SourceError){SourceError.NO_STORY="There’s no story here.",SourceError.SOURCE_UNAVAILABLE="Oh no! The source is not available."}(SourceError||(SourceError={}));var SourceSkeletonWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref9){var theme=_ref9.theme;return{background:theme.background.content,borderRadius:theme.appBorderRadius,border:"1px solid ".concat(theme.appBorderColor),boxShadow:"light"===theme.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"}})),SourceSkeletonPlaceholder=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref10){var theme=_ref10.theme;return _defineProperty2({animation:"".concat(theme.animation.glow," 1.5s ease-in-out infinite"),background:theme.appBorderColor,height:17,marginTop:1,width:"60%"},"&:first-child",{margin:0})})),SourceSkeleton=function SourceSkeleton(){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SourceSkeletonWrapper,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SourceSkeletonPlaceholder,null),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SourceSkeletonPlaceholder,{style:{width:"80%"}}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SourceSkeletonPlaceholder,{style:{width:"30%"}}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SourceSkeletonPlaceholder,{style:{width:"80%"}}))},Source=function Source(props){var isLoading=props.isLoading,error=props.error;if(isLoading)return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SourceSkeleton,null);if(error)return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(EmptyBlock,null,error);var _a=props,language=_a.language,code=_a.code,dark=_a.dark,format=_a.format,rest=__rest(_a,["language","code","dark","format"]),syntaxHighlighter=react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(StyledSyntaxHighlighter,Object.assign({bordered:!0,copyable:!0,format:format,language:language,className:"docblock-source"},rest),code);if(void 0===dark)return syntaxHighlighter;var overrideTheme=dark?_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.j.dark:_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.j.light;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.b,{theme:Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.c)(overrideTheme)},syntaxHighlighter)};Source.defaultProps={format:!1};var isReactChildString=function isReactChildString(child){return"string"==typeof child},isInlineCodeRegex=/[\n\r]/g,DefaultCodeBlock=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.code((function(_ref12){return{fontFamily:_ref12.theme.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"}}),codeCommon),Code=function Code(_a){var _b,className=_a.className,children=_a.children,props=__rest(_a,["className","children"]),language=(className||"").match(/lang-(\S+)/),childrenArray=react__WEBPACK_IMPORTED_MODULE_51__.Children.toArray(children);return!childrenArray.filter(isReactChildString).some((function(child){return child.match(isInlineCodeRegex)}))?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(DefaultCodeBlock,Object.assign({},props,{className:className}),childrenArray):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(StyledSyntaxHighlighter,Object.assign({bordered:!0,copyable:!0,language:null!==(_b=null==language?void 0:language[1])&&void 0!==_b?_b:"plaintext",format:!1},props),children)},Div=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div(withReset),DL=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.dl(withReset,Object.assign(Object.assign({},withMargin),{padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}})),H1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.h1(withReset,headerCommon,(function(_ref13){var theme=_ref13.theme;return{fontSize:"".concat(theme.typography.size.l1,"px"),fontWeight:theme.typography.weight.black}})),H2=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.h2(withReset,headerCommon,(function(_ref14){var theme=_ref14.theme;return{fontSize:"".concat(theme.typography.size.m2,"px"),paddingBottom:4,borderBottom:"1px solid ".concat(theme.appBorderColor)}})),H3=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.h3(withReset,headerCommon,(function(_ref15){var theme=_ref15.theme;return{fontSize:"".concat(theme.typography.size.m1,"px")}})),H4=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.h4(withReset,headerCommon,(function(_ref16){var theme=_ref16.theme;return{fontSize:"".concat(theme.typography.size.s3,"px")}})),H5=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.h5(withReset,headerCommon,(function(_ref17){var theme=_ref17.theme;return{fontSize:"".concat(theme.typography.size.s2,"px")}})),H6=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.h6(withReset,headerCommon,(function(_ref18){var theme=_ref18.theme;return{fontSize:"".concat(theme.typography.size.s2,"px"),color:theme.color.dark}})),HR=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.hr((function(_ref19){var theme=_ref19.theme;return{border:"0 none",borderTop:"1px solid ".concat(theme.appBorderColor),height:4,padding:0}})),Img=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.img({maxWidth:"100%"}),LI=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.li(withReset,(function(_ref20){var theme=_ref20.theme;return{fontSize:theme.typography.size.s2,color:theme.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":codeCommon({theme:theme})}})),listCommon$1={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},OL=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.ol(withReset,withMargin,Object.assign(Object.assign({},listCommon$1),{listStyle:"decimal"})),P$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.p(withReset,withMargin,(function(_ref21){var theme=_ref21.theme;return{fontSize:theme.typography.size.s2,lineHeight:"24px",color:theme.color.defaultText,"& code":codeCommon({theme:theme})}})),Pre=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.pre(withReset,withMargin,(function(_ref22){return{fontFamily:_ref22.theme.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}}})),Span=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.span(withReset,(function(_ref23){var theme=_ref23.theme;return{"&.frame":{display:"block",overflow:"hidden","& > span":{border:"1px solid ".concat(theme.color.medium),display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:theme.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}}})),Table$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.table(withReset,withMargin,(function(_ref24){var theme=_ref24.theme;return{fontSize:theme.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:"1px solid ".concat(theme.appBorderColor),backgroundColor:theme.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:"dark"===theme.base?theme.color.darker:theme.color.lighter},"& tr th":{fontWeight:"bold",color:theme.color.defaultText,border:"1px solid ".concat(theme.appBorderColor),margin:0,padding:"6px 13px"},"& tr td":{border:"1px solid ".concat(theme.appBorderColor),color:theme.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}}})),TT=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.title(codeCommon),listCommon={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},UL=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.ul(withReset,withMargin,Object.assign(Object.assign({},listCommon),{listStyle:"disc"})),ResetWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div(withReset),components$1={h1:function h1(props){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(H1,Object.assign({},nameSpaceClassNames(props,"h1")))},h2:function h2(props){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(H2,Object.assign({},nameSpaceClassNames(props,"h2")))},h3:function h3(props){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(H3,Object.assign({},nameSpaceClassNames(props,"h3")))},h4:function h4(props){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(H4,Object.assign({},nameSpaceClassNames(props,"h4")))},h5:function h5(props){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(H5,Object.assign({},nameSpaceClassNames(props,"h5")))},h6:function h6(props){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(H6,Object.assign({},nameSpaceClassNames(props,"h6")))},pre:function pre(props){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Pre,Object.assign({},nameSpaceClassNames(props,"pre")))},a:function a(props){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(A$2,Object.assign({},nameSpaceClassNames(props,"a")))},hr:function hr(props){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(HR,Object.assign({},nameSpaceClassNames(props,"hr")))},dl:function dl(props){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(DL,Object.assign({},nameSpaceClassNames(props,"dl")))},blockquote:function blockquote(props){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Blockquote,Object.assign({},nameSpaceClassNames(props,"blockquote")))},table:function table(props){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Table$1,Object.assign({},nameSpaceClassNames(props,"table")))},img:function img(props){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Img,Object.assign({},nameSpaceClassNames(props,"img")))},div:function div(props){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Div,Object.assign({},nameSpaceClassNames(props,"div")))},span:function span(props){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Span,Object.assign({},nameSpaceClassNames(props,"span")))},li:function li(props){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(LI,Object.assign({},nameSpaceClassNames(props,"li")))},ul:function ul(props){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(UL,Object.assign({},nameSpaceClassNames(props,"ul")))},ol:function ol(props){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(OL,Object.assign({},nameSpaceClassNames(props,"ol")))},p:function p(props){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(P$1,Object.assign({},nameSpaceClassNames(props,"p")))},code:function code(props){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Code,Object.assign({},nameSpaceClassNames(props,"code")))},tt:function tt(props){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(TT,Object.assign({},nameSpaceClassNames(props,"tt")))},resetwrapper:function resetwrapper(props){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ResetWrapper,Object.assign({},nameSpaceClassNames(props,"resetwrapper")))}},BadgeWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref25){return{display:"inline-block",fontSize:11,lineHeight:"12px",alignSelf:"center",padding:"4px 12px",borderRadius:"3em",fontWeight:_ref25.theme.typography.weight.bold}}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},(function(_ref26){var theme=_ref26.theme;switch(_ref26.status){case"critical":return{color:theme.color.critical,background:theme.background.critical};case"negative":return{color:theme.color.negative,background:theme.background.negative};case"warning":return{color:theme.color.warning,background:theme.background.warning};case"neutral":return{color:theme.color.dark,background:theme.color.mediumlight};case"positive":return{color:theme.color.positive,background:theme.background.positive};default:return{}}})),Badge=function Badge(_a){var props=__rest(_a,[]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(BadgeWrapper,Object.assign({},props))},icons={mobile:"M648 64h-272c-66.274 0-120 53.726-120 120v656c0 66.274 53.726 120 120 120h272c66.274 0 120-53.726 120-120v-656c0-66.274-53.726-120-120-120zM376 144h272c22.056 0 40 17.944 40 40v495.968h-352v-495.968c0-22.056 17.946-40 40-40zM648 880h-272c-22.054 0-40-17.944-40-40v-80.032h352v80.032c0 22.056-17.944 40-40 40zM544.034 819.962c0 17.676-14.33 32.002-32.004 32.002-17.67 0-32-14.326-32-32.002 0-17.672 14.33-31.998 32-31.998 17.674-0 32.004 14.326 32.004 31.998z",watch:"M736.172 108.030c0-11.044-8.956-20-20-20h-408.282c-11.044 0-20 8.956-20 20 0 11.046 8.956 20 20 20h408.282c11.044 0 20-8.954 20-20zM736.172 50.37c0-11.044-8.956-20-20-20h-408.282c-11.044 0-20 8.956-20 20s8.956 20 20 20h408.282c11.044 0 20-8.956 20-20zM736.172 973.692c0-11.044-8.956-20-20-20h-408.282c-11.044 0-20 8.956-20 20s8.956 20 20 20h408.282c11.044 0 20-8.956 20-20zM736.172 916.030c0-11.044-8.956-20-20-20h-408.282c-11.044 0-20 8.956-20 20 0 11.046 8.956 20 20 20h408.282c11.044 0 20-8.954 20-20zM717.53 228c18.904 0 34.286 15.14 34.286 33.75v500.502c0 18.61-15.38 33.75-34.286 33.75h-411.43c-18.904 0-34.286-15.14-34.286-33.75v-500.502c0-18.61 15.38-33.75 34.286-33.75h411.43zM717.53 148h-411.43c-63.118 0-114.286 50.928-114.286 113.75v500.502c0 62.822 51.166 113.75 114.286 113.75h411.43c63.118 0 114.286-50.926 114.286-113.75v-500.502c-0.002-62.822-51.168-113.75-114.286-113.75v0zM680.036 511.53c0 22.090-17.91 40-40 40h-128.004c-5.384 0-10.508-1.078-15.196-3.006-0.124-0.048-0.254-0.086-0.376-0.132-0.61-0.262-1.188-0.57-1.782-0.86-0.572-0.276-1.16-0.528-1.718-0.828-0.204-0.112-0.39-0.246-0.594-0.364-0.918-0.514-1.832-1.050-2.704-1.64-0.086-0.058-0.164-0.128-0.254-0.188-10.492-7.21-17.382-19.284-17.382-32.98v-151.5c0-22.094 17.91-40 40.004-40 22.088 0 40 17.906 40 40v111.498h88c22.094-0.002 40.002 17.91 40.006 40z",tablet:"M200.022 927.988h624.018c1.38 0 2.746-0.072 4.090-0.208 20.168-2.050 35.91-19.080 35.91-39.792v-751.916c0-22.092-17.91-40-40-40h-624.018c-22.098 0-40 17.908-40 40v751.916c0 22.094 17.906 40 40 40zM512.002 878.206c-17.674 0-32.004-14.328-32.004-31.998 0-17.678 14.33-32.002 32.004-32.002 17.67 0 32 14.324 32 32.002 0 17.67-14.33 31.998-32 31.998zM240.022 176.078h544.018v591.902h-544.018v-591.902z",browser:"M920.004 128h-816.008c-1.38 0-2.746 0.070-4.090 0.208-20.168 2.048-35.91 19.080-35.91 39.792v688c0 22.090 17.91 40 40 40h816.008c22.098 0 40-17.91 40-40v-688c-0-22.094-17.906-40-40-40zM368 177.78c17.674 0 32.004 14.328 32.004 31.998 0 17.676-14.33 32.002-32.004 32.002-17.67 0-32-14.326-32-32.002 0-17.67 14.33-31.998 32-31.998zM272 177.78c17.674 0 32.004 14.328 32.004 31.998 0 17.676-14.33 32.002-32.004 32.002-17.67 0-32-14.326-32-32.002 0-17.67 14.33-31.998 32-31.998zM176 177.78c17.674 0 32.004 14.328 32.004 31.998 0 17.676-14.33 32.002-32.004 32.002-17.67 0-32-14.326-32-32.002 0-17.67 14.33-31.998 32-31.998zM880.004 815.996h-736.008v-527.988h736.008v527.988z",sidebar:"M920.032 127.858h-816c-22.092 0-40 17.908-40 40v688c0 22.092 17.908 40 40 40h316.578c1.13 0.096 2.266 0.172 3.422 0.172s2.292-0.078 3.424-0.172h492.576c22.092 0 40-17.908 40-40v-688c0-22.092-17.908-40-40-40zM144.032 207.858h240v608h-240v-608zM880.032 815.858h-416v-608h416v608zM198.734 288.030c0-17.674 14.328-32 32.002-32h66.396c17.672 0 32 14.326 32 32 0 17.676-14.324 32-32 32h-66.398c-17.674 0-32-14.326-32-32zM198.734 416.030c0-17.674 14.328-32 32.002-32h66.396c17.672 0 32 14.326 32 32 0 17.676-14.324 32-32 32h-66.398c-17.674 0-32-14.326-32-32zM198.734 544.030c0-17.674 14.328-32 32.002-32h66.396c17.672 0 32 14.326 32 32 0 17.676-14.324 32-32 32h-66.398c-17.674 0-32-14.326-32-32z",sidebaralt:"M64 167.944v688c0 22.092 17.908 40 40 40h816c22.092 0 40-17.908 40-40v-688c0-22.092-17.908-40-40-40h-816c-22.092 0-40 17.908-40 40zM880 815.944h-240v-608h240v608zM144 207.944h416v608h-416v-608zM793.296 320.118h-66.398c-17.676 0-32-14.324-32-32 0-17.674 14.328-32 32-32h66.396c17.674 0 32.002 14.326 32.002 32 0 17.672-14.324 32-32 32zM793.296 448.118h-66.398c-17.676 0-32-14.324-32-32 0-17.674 14.328-32 32-32h66.396c17.674 0 32.002 14.326 32.002 32 0 17.672-14.324 32-32 32zM793.296 576.118h-66.398c-17.676 0-32-14.324-32-32 0-17.674 14.328-32 32-32h66.396c17.674 0 32.002 14.326 32.002 32 0 17.672-14.324 32-32 32z",bottombar:"M85 121h854c24 0 42 18 42 41v700c0 23-18 41-42 41H608a44 44 0 0 1-7 0H85c-24 0-42-18-42-41V162c0-23 18-41 42-41zm41 535v165h772V656H126zm0-82h772V202H126v372zm185 197h-69c-19 0-34-14-34-32s15-33 34-33h69c19 0 34 15 34 33s-15 32-34 32zm236 0h-70c-18 0-33-14-33-32s15-33 33-33h70c18 0 33 15 33 33s-15 32-33 32zm235 0h-70c-18 0-33-14-33-32s15-33 33-33h70c18 0 33 15 33 33s-15 32-33 32z",useralt:"M533 960a850 850 0 0 0 386-92v-19c0-117-242-223-306-234-20-3-21-58-21-58s59-58 72-137c35 0 56-84 21-113 2-31 45-243-173-243S337 276 338 307c-34 29-13 113 22 113 13 79 72 137 72 137s-1 55-21 58c-64 11-301 115-306 231a855 855 0 0 0 428 114z",user:"M814 805a525 525 0 00-217-116c-17-3-17-50-17-50s50-49 61-116c29 0 48-71 18-96 1-26 38-206-147-206S364 401 365 427c-30 25-11 96 18 96 11 67 61 116 61 116s0 47-17 50c-39 6-154 53-217 116a418 418 0 015-590 418 418 0 01594 0 418 418 0 015 590M512 0a512 512 0 100 1024A512 512 0 00512 0",useradd:"M87 859c-30-12-59-27-87-43 5-105 221-200 279-210 19-3 19-53 19-53s-54-53-65-125c-32 0-51-76-20-103-1-28-40-221 158-221 199 0 160 193 158 221 32 27 12 103-19 103-12 72-66 125-66 125s1 50 19 53c59 10 279 107 279 213v18a781 781 0 0 1-655 22zm892-565h-91v-90a45 45 0 1 0-91 0v90h-91a45 45 0 1 0 0 91h91v91a45 45 0 1 0 91 0v-91h91a45 45 0 1 0 0-91z",users:"M360 128c193 0 155 182 154 208 31 25 12 97-19 97-11 67-64 118-64 118s1 47 19 50c57 9 271 100 271 200v16a771 771 0 0 1-637 21c-29-11-57-25-84-40 4-99 215-189 271-197 18-3 18-50 18-50s-52-51-63-118c-31 0-50-72-19-97-1-26-40-208 153-208zm416 66c133 0 107 125 106 144 21 17 8 66-13 66-8 47-44 81-44 81s0 33 12 34c40 6 187 69 187 138v46c-80 27-163 41-249 41l-9-1c-16-31-44-61-83-90a546 546 0 0 0-111-64c47-38 117-66 143-70 12-1 12-34 12-34s-36-34-43-81c-21 0-34-49-13-66-1-19-27-144 105-144z",profile:"M761 631c0-13-10-23-22-23H285c-12 0-22 10-22 23 0 12 10 23 22 23h454c12 0 22-11 22-23zm0 100c0-12-10-22-22-22H285c-12 0-22 10-22 22 0 13 10 23 22 23h454c12 0 22-10 22-23zm0 101c0-13-10-23-22-23H285c-12 0-22 10-22 23s10 23 22 23h454c12 0 22-10 22-23zM832 0c59 0 107 49 107 109v807c-1 60-49 108-107 108H130c-25 0-45-20-45-46V46a45 45 0 0 1 45-46h702zm0 91H174v842h658c10 0 18-9 18-18V110c0-10-8-19-18-19zM384 532l-39-20c2-49 100-93 126-97 8-1 8-25 8-25s-24-24-29-57c-14 0-23-35-9-48-1-13-18-102 71-102s72 89 71 102c14 13 5 48-9 48-5 33-29 57-29 57s0 24 8 25c27 4 126 49 126 98v8a346 346 0 0 1-295 11z",bookmark:"M772 1012L511 761l-260 251a49 49 0 0 1-52 10c-18-7-29-24-29-43V132c0-25 21-46 47-46h588c26 0 47 21 47 46v847c0 19-11 36-29 43a49 49 0 0 1-51-10z",bookmarkhollow:"M772 1012L511 761l-260 251a49 49 0 0 1-52 10c-18-7-29-24-29-43V132c0-25 21-46 47-46h588c26 0 47 21 47 46v847c0 19-11 36-29 43a49 49 0 0 1-51-10zM545 664l213 205V181H265v688l213-205c9-9 21-14 33-14s24 5 34 14z",book:"M896.054 159.774c-0.122-52.914-43.048-95.774-95.992-95.774h-632.004c-1.754 0-3.468 0.154-5.164 0.372-19.644 2.54-34.836 19.292-34.836 39.628v816c0 22.094 17.91 40 40 40h632.004c52.642 0 95.368-42.378 95.968-94.88h0.036v-705.332l-0.012-0.014zM368.062 144h80v271.922l-11.728-11.718c-15.62-15.606-40.924-15.606-56.542 0l-11.728 11.718v-271.922zM816.036 864.204c-0.1 8.712-7.268 15.796-15.972 15.796h-592.004v-736h80.004v368.426c0 16.176 9.742 30.758 24.684 36.954 14.944 6.192 32.146 2.778 43.586-8.656l51.728-51.68 51.728 51.68c7.652 7.644 17.876 11.708 28.28 11.708 5.156 0 10.356-1 15.306-3.050 14.944-6.196 24.684-20.778 24.684-36.954v-368.428h272c8.796 0 15.972 7.16 15.992 15.958l-0.016 704.246z",repository:"M856.020 159.804c-0.122-52.916-43.048-95.774-95.992-95.774h-591.968c-1.754 0-3.468 0.154-5.164 0.37-19.644 2.54-34.836 19.292-34.836 39.63v784.584c0 22.094 17.91 40 40 40h151.972v63.594c0 10.876 6.548 20.682 16.598 24.844 10.046 4.164 21.612 1.87 29.304-5.818l34.78-34.748 34.78 34.748c5.144 5.14 12.020 7.87 19.014 7.87 3.466 0 6.962-0.672 10.292-2.052 10.048-4.164 16.598-13.968 16.598-24.844v-63.594h278.63c52.642 0 95.368-42.38 95.968-94.882h0.036v-673.916l-0.012-0.012zM776.020 159.988l-0.014 504.628h-519.974v-520.584h503.996c8.796-0 15.972 7.158 15.992 15.956zM760.028 848.616h-278.63v-56h-161.366v56h-111.972v-104h567.944l-0.002 88.204c-0.102 8.71-7.27 15.796-15.974 15.796zM320.032 240.396c0-17.67 14.328-31.998 31.998-31.998s32.002 14.326 32.002 31.998c0 17.674-14.332 32-32.002 32-17.672-0.002-31.998-14.326-31.998-32zM320.032 349.79c0-17.67 14.328-31.998 31.998-31.998s32.002 14.328 32.002 31.998c0 17.676-14.332 32-32.002 32-17.672 0-31.998-14.324-31.998-32zM320.032 459.188c0-17.67 14.328-32 31.998-32s32.002 14.328 32.002 32c0 17.674-14.332 31.998-32.002 31.998-17.672 0-31.998-14.324-31.998-31.998zM384.032 568.582c0 17.674-14.332 31.998-32.002 31.998s-31.998-14.324-31.998-31.998c0-17.67 14.328-32 31.998-32 17.67 0.002 32.002 14.33 32.002 32z",star:"M763.972 919.5c-6.368 0-12.758-1.518-18.61-4.596l-233.358-122.688-233.37 122.688c-13.476 7.090-29.808 5.904-42.124-3.042-12.318-8.95-18.486-24.118-15.912-39.124l44.57-259.856-188.792-184.028c-10.904-10.626-14.828-26.524-10.124-41.004s17.222-25.034 32.292-27.222l260.906-37.912 116.686-236.42c6.738-13.652 20.644-22.296 35.87-22.296v0c15.226 0 29.13 8.644 35.87 22.298l116.674 236.418 260.906 37.912c15.068 2.19 27.586 12.742 32.292 27.222s0.782 30.376-10.124 41.004l-188.792 184.028 44.24 257.93c0.62 2.796 0.946 5.704 0.946 8.688 0 22.054-17.848 39.942-39.888 40-0.054 0-0.106 0-0.158 0z",starhollow:"M763.972 919.5c-6.368 0-12.758-1.518-18.61-4.596l-233.358-122.688-233.37 122.688c-13.476 7.090-29.808 5.904-42.124-3.042-12.318-8.95-18.486-24.118-15.912-39.124l44.57-259.856-188.792-184.028c-10.904-10.626-14.828-26.524-10.124-41.004s17.222-25.034 32.292-27.222l260.906-37.912 116.686-236.42c6.738-13.652 20.644-22.296 35.87-22.296v0c15.226 0 29.13 8.644 35.87 22.298l116.674 236.418 260.906 37.912c15.068 2.19 27.586 12.742 32.292 27.222s0.782 30.376-10.124 41.004l-188.792 184.028 44.24 257.93c0.62 2.796 0.946 5.704 0.946 8.688 0 22.054-17.848 39.942-39.888 40-0.054 0-0.106 0-0.158 0zM190.256 428.144l145.812 142.13c9.428 9.192 13.73 22.432 11.504 35.406l-34.424 200.7 180.244-94.758c11.654-6.13 25.576-6.126 37.226 0l180.232 94.756-34.422-200.698c-2.226-12.974 2.076-26.214 11.504-35.406l145.812-142.13-201.51-29.282c-13.030-1.892-24.292-10.076-30.118-21.882l-90.114-182.596-90.122 182.598c-5.826 11.804-17.090 19.988-30.118 21.88l-201.506 29.282z",circle:"M1024 512A512 512 0 110 512a512 512 0 011024 0z",circlehollow:"M1024 512A512 512 0 100 512a512 512 0 001024 0zM215 809a418 418 0 010-594 418 418 0 01594 0 418 418 0 010 594 418 418 0 01-594 0z",heart:"M895.032 194.328c-20.906-21.070-46.492-37.316-76.682-48.938-30.104-11.71-63.986-17.39-101.474-17.39-19.55 0-38.744 2.882-57.584 9.094-18.472 6.062-36.584 14.242-54.072 24.246-17.476 9.828-34.056 21.276-49.916 33.898-16.038 12.8-30.456 25.572-43.346 38.664-13.52-13.092-28.026-25.864-43.616-38.664-15.684-12.624-32.080-24.070-49.382-33.898-17.214-10.004-35.414-18.184-54.704-24.246-19.104-6.21-38.568-9.094-58.034-9.094-37.126 0-70.56 5.68-100.48 17.39-29.732 11.622-55.328 27.868-76.328 48.938-20.994 21.094-37.214 46.962-48.478 77.328-11.174 30.544-16.942 64.5-16.942 101.812 0 21.628 3.068 43.078 9.19 64.53 6.308 21.096 14.416 41.986 24.876 61.642 10.446 19.656 22.702 38.488 36.584 56.59 13.88 18.124 28.388 34.516 43.344 49.58l305.766 305.112c8.466 7.558 18.11 11.444 28.204 11.444 10.726 0 19.914-3.884 27.308-11.444l305.934-304.226c14.78-14.772 29.382-31.368 43.166-49.378 14.058-18.212 26.314-37.222 37.042-57.23 10.9-19.924 19.192-40.638 25.406-62 6.218-21.188 9.198-42.61 9.198-64.618 0-37.312-5.592-71.268-16.582-101.812-11.264-30.366-27.22-56.236-48.398-77.33z",hearthollow:"M716.876 208c27.708 0 52.092 4.020 72.47 11.948l0.132 0.052 0.13 0.050c19.866 7.644 35.774 17.664 48.632 30.624l0.166 0.168 0.17 0.168c12.586 12.536 22.304 28.27 29.706 48.094 7.782 21.786 11.726 46.798 11.726 74.364 0 14.658-1.95 28.426-5.958 42.086l-0.028 0.092-0.026 0.092c-4.866 16.72-11.006 31.752-18.776 45.952l-0.162 0.298-0.16 0.296c-8.81 16.434-18.58 31.532-29.864 46.148l-0.204 0.264c-11.316 14.786-23.48 28.708-36.154 41.378l-277.122 275.574-276.94-276.35c-13.32-13.43-25.248-27.074-36.488-41.75-11.386-14.848-21.284-30.136-29.444-45.49-7.206-13.54-13.494-29.17-18.7-46.472-4.030-14.264-5.988-28.044-5.988-42.116 0-27.36 4.042-52.314 12.016-74.176 7.214-19.378 17.344-35.708 30.066-48.492 12.998-13.042 28.958-23.148 48.826-30.914 20.436-8 43.764-11.886 71.32-11.886 11.536 0 22.738 1.742 33.298 5.174l0.374 0.122 0.376 0.12c13.116 4.122 26.066 9.874 38.494 17.094l0.34 0.2 0.344 0.196c12.736 7.234 25.308 15.876 38.43 26.412 14.486 11.906 27.060 23.048 38.428 34.056l56.994 55.192 55.662-56.532c10.324-10.484 22.18-21.040 36.242-32.264 13.382-10.646 26.216-19.38 39.228-26.698l0.256-0.144 0.254-0.144c13.008-7.442 26.228-13.386 39.294-17.676l0.050-0.016 0.050-0.018c10.354-3.414 20.998-5.076 32.54-5.076zM716.876 128c-19.55 0-38.744 2.882-57.584 9.094-18.472 6.062-36.584 14.242-54.072 24.246-17.476 9.828-34.056 21.276-49.916 33.898-16.038 12.8-30.456 25.572-43.346 38.664-13.52-13.092-28.026-25.864-43.616-38.664-15.684-12.624-32.080-24.070-49.382-33.898-17.214-10.004-35.414-18.184-54.704-24.246-19.104-6.21-38.568-9.094-58.034-9.094-37.126 0-70.56 5.68-100.48 17.39-29.732 11.622-55.328 27.868-76.328 48.938-20.994 21.094-37.214 46.962-48.478 77.328-11.174 30.544-16.942 64.5-16.942 101.812 0 21.628 3.068 43.078 9.19 64.53 6.308 21.096 14.416 41.986 24.876 61.642 10.446 19.656 22.702 38.488 36.584 56.59 13.88 18.124 28.388 34.516 43.344 49.58l305.766 305.112c8.466 7.558 18.11 11.444 28.204 11.444 10.726 0 19.914-3.884 27.308-11.444l305.934-304.226c14.78-14.772 29.382-31.368 43.166-49.378 14.058-18.212 26.314-37.222 37.042-57.23 10.9-19.924 19.192-40.638 25.406-62 6.218-21.188 9.198-42.61 9.198-64.618 0-37.312-5.592-71.268-16.582-101.812-11.262-30.366-27.216-56.234-48.396-77.328-20.906-21.070-46.492-37.316-76.682-48.938-30.106-11.712-63.988-17.392-101.476-17.392v0z",facehappy:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm248 493.7c15.2 0 28.7 7.5 37 19l2.6 3.9a46 46 0 015.8 18l.3 4.9c0 6.6-1.4 13-4 18.7l-2.1 4.1A329 329 0 01232 663l-5.5-9.3a46 46 0 01-2-41.2l2-4.2v-.2a45.6 45.6 0 0176.7-4l2.5 4a237.9 237.9 0 00410 7.7l4.5-7.7a46 46 0 0139.7-22.9zM329.7 292.6a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2zm365.2 0a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2z",facesad:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm1.1 449.2a329 329 0 01281.1 157.7l5.5 9.2a46 46 0 012 41.3l-2 4.1v.3a45.6 45.6 0 01-76.7 4l-2.6-4a238 238 0 00-410-7.7l-4.5 7.7a46 46 0 01-76.6 4l-2.6-4a46 46 0 01-5.9-18l-.2-5c0-6.6 1.4-12.9 4-18.6l2.1-4.2a329 329 0 01286.4-166.8zm-183.4-248a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2zm365.2 0a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2z",faceneutral:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm248 521.2a45.7 45.7 0 014.7 91.2l-4.7.2H266.3a45.7 45.7 0 01-4.7-91.2l4.7-.2H760zm-430.3-320a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2zm365.2 0a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2z",lock:"M896.032 915.53v-467.498c0-19.102-13.402-35.052-31.31-39.026-0.21-0.046-0.414-0.12-0.628-0.162-0.444-0.090-0.904-0.13-1.354-0.208-2.186-0.37-4.416-0.606-6.708-0.606h-55.902l0.002-55.85h0.020c0-159.14-129.010-288.15-288.15-288.15-159.128 0-288.13 128.992-288.15 288.118v55.884h-54.852c-20.71 0-37.746 15.742-39.792 35.91-0.136 1.344-0.208 2.708-0.208 4.090v463.332c-0.618 2.792-0.968 5.688-0.968 8.668 0 22.094 17.91 40 40 40h688.27c22.092 0 40-17.91 40-40-0.002-1.524-0.104-3.024-0.27-4.502zM209 488.032h607.032v392h-607.032v-392zM303.85 352.182c0-114.776 93.376-208.15 208.15-208.15 114.59 0 207.842 93.074 208.142 207.596 0 0.084-0.012 0.164-0.012 0.248v56.156h-416.284l0.004-55.85zM552.164 691.858l-0.002 58.188c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.906-40-40v-57.974c-14.704-11.726-24.134-29.782-24.134-50.048 0-35.346 28.654-64 64-64s64 28.654 64 64c0 20.142-9.318 38.104-23.868 49.836z",unlock:"M896.032 915.53v-467.498c0-1.988-0.194-3.926-0.472-5.834-0.11-0.744-0.192-1.498-0.34-2.226-1.524-7.44-5.136-14.1-10.164-19.408-0.252-0.266-0.48-0.554-0.738-0.814-0.496-0.494-1.036-0.944-1.554-1.412-0.43-0.386-0.84-0.8-1.288-1.17-0.292-0.24-0.608-0.446-0.904-0.676-2.506-1.954-5.244-3.616-8.176-4.934-0.744-0.334-1.504-0.632-2.27-0.922-4.39-1.656-9.124-2.604-14.094-2.604h-552.184l0.002-55.85c0-114.776 93.376-208.15 208.15-208.15 86.038 0 160.034 52.474 191.7 127.096 0.012 0.028 0.030 0.044 0.042 0.072 5.978 14.566 20.284 24.832 37.006 24.832 22.090 0 40-17.906 40-40 0-4.71-0.86-9.21-2.354-13.41-0.182-0.694-0.42-1.438-0.782-2.292-43.666-103.582-146.14-176.296-265.612-176.296-159.128 0-288.13 128.994-288.15 288.12v55.882h-54.85c-20.71 0-37.746 15.742-39.792 35.91-0.136 1.344-0.208 2.708-0.208 4.090v463.332c-0.618 2.794-0.968 5.688-0.968 8.668 0 22.094 17.91 40 40 40h688.27c22.092 0 40-17.91 40-40-0.002-1.528-0.104-3.028-0.27-4.506zM209 488.032h607.032v392h-607.032v-392zM552.164 691.86l-0.002 58.186c0.004 22.088-17.906 39.996-39.996 40-22.094 0-40.004-17.908-40-40v-57.976c-14.702-11.726-24.134-29.782-24.134-50.048 0-35.346 28.654-64 64-64s64 28.654 64 64c0 20.142-9.318 38.102-23.868 49.838z",key:"M768.032 320.032c0 35.346-28.654 64-64 64s-64-28.654-64-64 28.654-64 64-64 64 28.654 64 64zM960.032 353.092c0 159.062-128.946 288.010-288.008 288.010-35.306 0-69.124-6.368-100.38-17.996l-27.736 27.738-0.002 54.464c0 0.016 0.002 0.028 0.002 0.040 0 11.046-4.478 21.046-11.716 28.29-6.334 6.332-14.784 10.55-24.196 11.508-1.346 0.136-2.708 0.208-4.090 0.208h-71.748l-0.002 71.96c0 0.012 0.002 0.040 0.002 0.040 0 11.046-4.478 21.046-11.716 28.286-6.334 6.336-14.784 10.554-24.196 11.508-1.346 0.136-2.708 0.208-4.090 0.208h-71.996l-0.002 62.684c0 22.094-17.908 40-40 40-0.022 0-0.042 0-0.062 0-0.022 0-0.042 0-0.064 0h-175.996c-13.76 0-25.888-6.95-33.086-17.524-4.362-6.406-6.916-14.14-6.916-22.476v-112c0-0.664 0.066-1.308 0.1-1.964 0.032-0.618 0.034-1.234 0.092-1.852 0.11-1.148 0.288-2.278 0.492-3.398 0.024-0.128 0.034-0.258 0.058-0.386 1.614-8.378 5.848-15.808 11.808-21.446l325.456-325.458c-11.642-31.274-18.020-65.11-18.020-100.44 0-159.060 128.946-288.006 288.006-288.006 159.060-0.004 288.006 128.942 288.006 288.002zM880.032 353.092c0-114.696-93.312-208.006-208.008-208.006s-208.006 93.31-208.006 208.006c0 43.208 13.246 83.376 35.884 116.668l-57.36 57.362c-0.136-0.184-0.27-0.368-0.408-0.546l-298.102 298.106-0.002 55.356h96.124v-62.684c0-0.708 0.070-1.394 0.106-2.094 0.036-0.664 0.036-1.336 0.102-1.992 0.132-1.316 0.334-2.61 0.592-3.882 0.006-0.028 0.008-0.058 0.014-0.090 0.258-1.262 0.58-2.5 0.956-3.714 0.012-0.040 0.018-0.078 0.030-0.118 4.676-15.032 17.976-26.262 34.114-27.902 1.344-0.136 2.708-0.208 4.090-0.208h71.998v-67.64c-0.156-1.434-0.248-2.882-0.248-4.36 0-22.094 17.908-40 40-40h71.998v-30.692c0-0.148 0.020-0.29 0.022-0.438 0.008-10.226 3.912-20.45 11.714-28.254l55.99-55.988c1.982-1.984 4.124-3.71 6.38-5.188l18.68-18.684c33.030 22.090 72.702 34.992 115.332 34.992 114.694-0 208.008-93.314 208.008-208.010z",arrowleftalt:"M107.854 539.924l282.834 283.272c15.594 15.65 40.92 15.692 56.568 0.1 15.648-15.594 15.694-40.92 0.1-56.568l-214.838-215.040h655.412c22.092 0 40-17.908 40-40s-17.908-40-40-40h-655l214.75-214.61c15.64-15.602 15.672-40.928 0.070-56.568-7.814-7.834-18.066-11.752-28.32-11.75-10.22 0-20.442 3.892-28.25 11.68l-283.242 282.93c-15.634 15.594-15.672 40.91-0.084 56.554z",arrowrightalt:"M916.266 483.792l-282.834-283.272c-15.594-15.65-40.92-15.692-56.568-0.1-15.648 15.594-15.694 40.92-0.1 56.568l214.838 215.040h-655.412c-22.092 0-40 17.908-40 40s17.908 40 40 40h655l-214.748 214.61c-15.64 15.602-15.672 40.928-0.070 56.568 7.814 7.834 18.066 11.752 28.32 11.75 10.22 0 20.442-3.892 28.25-11.68l283.242-282.93c15.632-15.596 15.67-40.91 0.082-56.554z",sync:"M135.6 442.5a41 41 0 0130 12l94.9 94.6c16 16 16 42 0 58s-42.1 16-58.2 0l-30.1-30a341.9 341.9 0 0095 178.6c65.3 65 152 101 244.3 101 92.3 0 179-36 244.3-101a345 345 0 0066.8-93.6 41.1 41.1 0 0174.3 35v.2l-.1.2-5.2 10.3a427.8 427.8 0 01-380 230.9A427.5 427.5 0 0190.1 585.8l-20 20c-16 16-42 16-58.2 0a41 41 0 010-58l93.6-93.3a41 41 0 0130-12zm376-357.2c208.9 0 382.8 149.5 420.1 347.1l22-22c16.1-16 42.2-16 58.2 0s16 42 0 58l-93.5 93.4a41 41 0 01-30 12 41 41 0 01-30-12L763.5 467a41 41 0 010-58c16-16 42.1-16 58.2 0l26.8 26.8a342 342 0 00-92.7-167.6c-65.3-65-152-101-244.3-101-92.3 0-179 36-244.2 101a345.2 345.2 0 00-66.9 93.6 41.1 41.1 0 01-74.3-35v-.2l.2-.2c.7-1.7.2-.8 5.1-10.3A427.8 427.8 0 01511.5 85.3z",reply:"M679.496 431.738c-0.414-0.062-0.834-0.102-1.266-0.102h-477.482l171.506-171.504c15.622-15.622 15.622-40.95-0.002-56.57-15.62-15.624-40.948-15.624-56.568 0l-239.734 239.732c-0.958 0.956-1.868 1.958-2.724 3.006-0.328 0.402-1.884 2.482-2.324 3.138-0.36 0.54-1.696 2.77-2.008 3.352-0.308 0.58-1.424 2.936-1.676 3.544-0.036 0.086-0.468 1.268-0.648 1.774-0.23 0.636-0.474 1.266-0.672 1.918-0.186 0.612-0.818 3.13-0.95 3.788-0.148 0.748-0.522 3.318-0.574 3.862-0.262 2.642-0.262 5.3 0 7.942 0.044 0.448 0.412 3.032 0.58 3.874 0.112 0.556 0.74 3.088 0.958 3.808 0.158 0.524 1.036 2.992 1.328 3.7 0.192 0.458 1.298 2.828 1.688 3.552 0.208 0.386 0.446 0.75 0.666 1.126 0.436 0.752 1.844 2.888 2.084 3.224 0.52 0.724 4.262 5.074 4.29 5.098l239.718 239.72c15.62 15.618 40.948 15.618 56.57 0 15.62-15.624 15.622-40.948 0-56.57l-171.516-171.514h471.296c114.52 0.084 207.688 93.124 207.988 207.594 0 0.084-0.012 0.164-0.012 0.248v95.876c-0.004 22.094 17.906 40.002 40 40 22.090-0.002 40-17.91 39.996-39.998l0.004-95.57h0.020c0-156.594-124.914-284.012-280.536-288.048z",undo:"M230 301h480a240 240 0 1 1 0 481H235c-23 0-42-20-42-43 0-24 19-43 42-43h475a155 155 0 0 0 0-310H228l3 3 65 65a45 45 0 0 1-65 64L90 376a45 45 0 0 1 0-64l142-142a45 45 0 1 1 64 65l-63 62-3 4z",transfer:"M916.25 348.726l-125 124.688c-7.808 7.79-18.032 11.68-28.25 11.68-10.254 0.002-20.506-3.918-28.32-11.75-15.602-15.64-15.57-40.966 0.070-56.568l56.508-56.368h-655.258c-22.092 0-40-17.908-40-40s17.908-40 40-40h655.672l-57.006-57.206c-15.594-15.646-15.548-40.972 0.1-56.566s40.972-15.55 56.568 0.098l125 125.438c15.588 15.644 15.548 40.958-0.084 56.554zM107.666 731.892l125 125.438c15.596 15.648 40.92 15.692 56.568 0.098s15.694-40.92 0.1-56.566l-57.006-57.206h655.672c22.092 0 40-17.908 40-40s-17.908-40-40-40h-655.258l56.508-56.368c15.64-15.602 15.672-40.928 0.070-56.568-7.814-7.832-18.066-11.752-28.32-11.75-10.218 0-20.442 3.89-28.25 11.68l-125 124.688c-15.632 15.596-15.672 40.91-0.084 56.554z",redirect:"M913.852 702.796c-15.594-15.648-40.922-15.694-56.57-0.1l-57.204 57.006v-451.424c0-0.372-0.028-0.736-0.074-1.098-0.458-99.016-80.86-179.15-179.988-179.15-99.412 0-180 80.592-180 180 0 0.084 0.004 0.166 0.004 0.248h-0.004v343.504h-0.006c0 0.082 0.006 0.164 0.006 0.248 0 55.14-44.86 100-100 100s-100-44.86-100-100c0-0.084 0.006-0.166 0.006-0.248h-0.002v-483.752c0-22.092-17.91-40-40-40s-40.004 17.908-40.004 40v483.752c0 0.018 0.002 0.036 0.002 0.054 0 0.064-0.002 0.128-0.002 0.194 0 99.408 80.59 180 180 180 99.412 0 180-80.592 180-180 0-0.084-0.004-0.166-0.004-0.248h0.004v-343.504h0.008c0-0.082-0.008-0.164-0.008-0.248 0-55.138 44.86-100 100-100s100 44.862 100 100c0 0.084-0.008 0.166-0.008 0.248h0.070v451.008l-56.368-56.506c-15.602-15.642-40.93-15.67-56.566-0.070-7.836 7.814-11.754 18.066-11.754 28.32 0 10.218 3.894 20.442 11.68 28.252l124.692 125c15.594 15.632 40.91 15.67 56.554 0.084l125.434-125c15.652-15.598 15.692-40.92 0.102-56.57z",expand:"M433.4 578.8l6.2 5.2a44.8 44.8 0 010 63.3L238.4 849.1h100.3a44.8 44.8 0 018 88.8l-8 .8H130l-6.2-.5 2.7.3h-.3a44.7 44.7 0 01-24.8-10.2l-.3-.3-.3-.2-.3-.4-.3-.2-.3-.2v-.2h-.1l-.2-.1a45.7 45.7 0 01-13.5-24.8l-.3-1.7a45 45 0 01-.5-5.3V685.7a44.8 44.8 0 0189-8.1l.6 8 .1 100L376.3 584a44.8 44.8 0 0157.1-5.2zm157.2 0a44.8 44.8 0 0157.1 5.2L849 785.7v-100l.8-8.1a44.8 44.8 0 0188.9 8V895a45 45 0 01-.5 5.3l-.3 1.7a38.6 38.6 0 01-2.8 9.4 43.4 43.4 0 01-9.6 14.2l-4.7 4.2 2-1.7.7-.6-.3.4a44.1 44.1 0 01-4.4 3.3l-.6.4a45.8 45.8 0 01-20.4 7h-.3.9l1.8-.3-6.2.5H685.3l-8-.8a44.8 44.8 0 018-88.8h100.3L584.4 647.3a44.8 44.8 0 010-63.3zM98.5 925.5l1.3 1.3.1.2.6.4a45 45 0 002 1.7l.7.6-4.7-4.2zM893.9 85.3h.9-.8l6.2.5a45 45 0 00-1.8-.2l-.9-.1h-1l-.5-.1h-1.2 2.7l.3.1a44.7 44.7 0 0125.4 10.7l.3.3v.1l.3.2.3.2v.2h.1l.2.1.6.6.5.6A45.6 45.6 0 01938 122l.3 1.7c.3 1.8.4 3.6.5 5.3v209.2a44.8 44.8 0 01-89 8.1l-.6-8-.1-100L647.7 440a44.8 44.8 0 01-57.1 5.2l-6.2-5.2a44.8 44.8 0 010-63.3l201.2-201.8H685.3a44.8 44.8 0 01-8-88.8l8-.8H894h-.1zm-555.2 0l8 .8a44.8 44.8 0 01-8 88.8H238.4l201.2 201.8a44.8 44.8 0 010 63.3l-6.2 5.2a44.8 44.8 0 01-57.1-5.2L175 238.3v100l-.8 8.1a44.8 44.8 0 01-88.9-8V129c0-1.7.2-3.5.5-5.3l.3-1.7a38.6 38.6 0 012.8-9.4 43.4 43.4 0 019.6-14.2l4.7-4.2-2 1.7.2-.3a43.7 43.7 0 0124.8-10.2h1.3l.3-.1h2.3-.1 208.7zm582 9l4.8 4.2-1.3-1.3-.1-.2-.5-.4h-.1l-.6-.6-1.4-1.1-.7-.6zm-790.7-9h-2l-.5.1h-1l-.9.2c-.6 0-1.2 0-1.8.2l6.2-.5z",expandalt:"M479.7 13.4L205.4 287.6a45.7 45.7 0 1064.7 64.7l242-242 241.8 241.9a45.7 45.7 0 1064.7-64.7L544.4 13.4a45.6 45.6 0 00-64.7 0M512 1024a45.6 45.6 0 01-32.3-13.4L205.4 736.5a45.7 45.7 0 1164.7-64.7l241.8 241.8 242-241.9a45.7 45.7 0 1164.7 64.7l-274.3 274.2c-9 9-20.7 13.4-32.4 13.4",collapse:"M479.7 411L205.4 136.6a45.7 45.7 0 1164.7-64.6L512 314 753.9 72.2a45.7 45.7 0 1164.7 64.6L544.4 411a45.6 45.6 0 01-64.7 0M512 598.3a45.6 45.6 0 00-32.3 13.4L205.4 885.8a45.7 45.7 0 1064.7 64.7l241.8-241.8 242 242a45.7 45.7 0 1064.7-64.7L544.3 611.7c-9-8.9-20.7-13.4-32.4-13.4",grow:"M541.146 448.384c-1.694-0.216-3.408-0.37-5.162-0.37h-367.968c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v368.032c0 22.094 17.91 40 40 40h367.968c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-368.036c0-20.34-15.192-37.094-34.838-39.632zM208.016 816.046v-288.032h287.968v288.032h-287.968zM736.032 856.046c0 22.090-17.908 40-40 40-22.090 0-40-17.908-40-40v-487.902l-488.016 0.002c-22.090 0-40-17.91-40-40s17.908-40.002 40-40.002h528.016c1.754 0 3.468 0.152 5.162 0.37 19.646 2.538 34.838 19.292 34.838 39.63v527.902zM896.032 168.030v688.004c-0.002 22.088-17.91 39.996-40 39.996s-40.002-17.908-40.002-40c0 0 0.002-304.026 0.002-304.040v-343.96h-343.96c-0.014 0-304.040 0.002-304.040 0.002-22.090 0-40-17.91-40-40s17.908-40.002 40-40.002h688c1.754 0 3.468 0.152 5.162 0.37 19.646 2.536 34.838 19.29 34.838 39.63z",arrowleft:"M257.93 511.976c0-10.236 3.902-20.47 11.71-28.282l344.098-344.158c15.622-15.624 40.946-15.624 56.57-0.006 15.622 15.622 15.624 40.948 0.004 56.568l-315.82 315.876 315.868 315.922c15.618 15.624 15.618 40.952-0.004 56.568-15.622 15.62-40.95 15.618-56.57-0.006l-344.146-344.202c-7.808-7.81-11.71-18.044-11.71-28.28z",arrowup:"M512.024 256c10.236 0 20.47 3.904 28.282 11.712l344.154 344.098c15.624 15.62 15.624 40.946 0.006 56.57-15.622 15.622-40.948 15.624-56.568 0.004l-315.876-315.82-315.922 315.868c-15.624 15.618-40.952 15.618-56.568-0.004-15.62-15.624-15.618-40.95 0.006-56.57l344.204-344.144c7.81-7.81 18.046-11.714 28.282-11.714z",arrowdown:"M511.976 768.002c-10.236 0-20.47-3.904-28.282-11.712l-344.154-344.098c-15.624-15.62-15.624-40.946-0.006-56.57 15.622-15.622 40.948-15.624 56.568-0.004l315.876 315.82 315.922-315.868c15.624-15.618 40.952-15.616 56.568 0.004 15.62 15.624 15.618 40.95-0.006 56.57l-344.204 344.144c-7.81 7.81-18.046 11.714-28.282 11.714z",arrowright:"M768.072 514.022c0 10.236-3.904 20.47-11.712 28.282l-344.098 344.156c-15.62 15.624-40.946 15.624-56.568 0.006-15.622-15.622-15.624-40.948-0.006-56.568l315.82-315.876-315.868-315.922c-15.618-15.624-15.618-40.952 0.004-56.568 15.624-15.62 40.95-15.618 56.57 0.006l344.144 344.204c7.81 7.81 11.714 18.044 11.714 28.28z",chevrondown:"M511.976 833c-10.236 0-20.47-3.904-28.282-11.712l-471.934-471.874c-15.624-15.62-15.624-40.946-0.006-56.57 15.622-15.622 40.948-15.624 56.568-0.004l443.652 443.598 443.61-443.556c15.624-15.618 40.952-15.616 56.568 0.004 15.62 15.624 15.618 40.95-0.006 56.57l-471.89 471.832c-7.808 7.808-18.044 11.712-28.28 11.712z",back:"M512 932.6c-112.3 0-218-43.8-297.4-123.2A417.8 417.8 0 0191.4 512c0-112.3 43.8-218 123.2-297.4A417.8 417.8 0 01512 91.4c112.3 0 218 43.8 297.4 123.2A417.8 417.8 0 01932.6 512c0 112.3-43.8 218-123.2 297.4A417.8 417.8 0 01512 932.6zm0 91.4A512 512 0 10512 0a512 512 0 000 1024zM232.7 542.5l142.8 143.3a45.7 45.7 0 0064.8-64.5L375 555.9h383.7a45.7 45.7 0 000-91.4H375.6l64.6-64.4a45.7 45.7 0 10-64.6-64.8L232.8 477.8a45.7 45.7 0 00-.1 64.6z",download:"M543.8 791.3a45.7 45.7 0 01-64.6 0l-142.5-143a45.6 45.6 0 010-64.6 45.7 45.7 0 0164.7 0l64.5 64.7V265.2a45.7 45.7 0 1191.4 0v383.6l65.4-65.1a45.7 45.7 0 1164.5 64.8L543.8 791.3zM1024 512A512 512 0 110 512a512 512 0 011024 0zm-91.4 0c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512z",upload:"M480.2 232.7a45.7 45.7 0 0164.6 0l142.5 143a45.6 45.6 0 010 64.6 45.7 45.7 0 01-64.7 0L558 375.5v383.2a45.7 45.7 0 11-91.4 0V375.2l-65.4 65.1a45.7 45.7 0 11-64.5-64.8l143.4-142.8zM0 512a512 512 0 111024 0A512 512 0 010 512zm91.4 0c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512z",proceed:"M791.3 480.2L648.5 336.8a45.7 45.7 0 10-64.8 64.5l65.1 65.4H265.2a45.7 45.7 0 100 91.4h383.2l-64.6 64.5a45.7 45.7 0 0064.6 64.7l142.8-142.5a45.7 45.7 0 00.1-64.6M512 0a512 512 0 100 1024A512 512 0 00512 0m0 91.4c112.3 0 218 43.8 297.4 123.2A417.8 417.8 0 01932.6 512c0 112.3-43.8 218-123.2 297.4A417.8 417.8 0 01512 932.6c-112.3 0-218-43.8-297.4-123.2A417.8 417.8 0 0191.4 512c0-112.3 43.8-218 123.2-297.4A417.8 417.8 0 01512 91.4",info:"M874.04 149.96c199.95 199.95 199.95 524.14 0 724.08-199.95 199.95-524.13 199.95-724.08 0-199.95-199.95-199.95-524.13 0-724.08 199.95-199.95 524.13-199.95 724.08 0zM512 91.43c-112.34 0-217.95 43.75-297.39 123.18-79.43 79.44-123.18 185.05-123.18 297.4 0 112.33 43.75 217.94 123.18 297.38 79.44 79.43 185.05 123.18 297.4 123.18 112.33 0 217.94-43.75 297.38-123.18C888.82 729.95 932.57 624.34 932.57 512c0-112.34-43.75-217.95-123.18-297.39C729.95 135.18 624.34 91.43 512 91.43zm1.14 318.96a45.73 45.73 0 00-45.11 38.3l-.6 7.42v274.28a45.71 45.71 0 0090.83 7.42l.6-7.42V456.11a45.72 45.72 0 00-45.72-45.72zm0-162.25a45.72 45.72 0 100 91.44 45.72 45.72 0 000-91.44z",question:"M874.04 149.96c199.95 199.95 199.95 524.13 0 724.08-199.95 199.95-524.13 199.95-724.08 0-199.95-199.95-199.95-524.13 0-724.08 199.95-199.95 524.13-199.95 724.08 0zM512 91.43c-112.34 0-217.95 43.75-297.39 123.18-79.43 79.44-123.18 185.05-123.18 297.4 0 112.33 43.75 217.95 123.18 297.38 79.44 79.43 185.05 123.18 297.4 123.18 112.33 0 217.94-43.75 297.38-123.18C888.82 729.96 932.57 624.34 932.57 512c0-112.34-43.75-217.95-123.18-297.39C729.95 135.18 624.34 91.43 512 91.43zm1.14 640.9a45.72 45.72 0 100 91.43 45.72 45.72 0 000-91.44zm-1.14-549c-111.3 0-201.52 90.22-201.52 201.52a45.71 45.71 0 0090.84 7.41l.6-7.47c.03-60.68 49.4-110.03 110.08-110.03 60.7 0 110.1 49.38 110.1 110.09 0 60.7-49.4 110.09-110.1 110.09v.17a45.68 45.68 0 00-44.57 45.65v100.58a45.7 45.7 0 1091.42 0v-60.46c88.7-21.12 154.67-100.87 154.67-196.03 0-111.3-90.22-201.52-201.52-201.52z",support:"M512 932.57c-87.57 0-171.05-26.59-241.23-75.93l106-106a273.98 273.98 0 00135.26 35.62c46.7 0 93.41-11.88 135.22-35.6l105.98 105.98c-70.19 49.34-153.66 75.93-241.23 75.93m-344.64-661.8l105.97 105.98c-47.44 83.63-47.43 186.86.02 270.49L167.36 753.22C118.02 683.04 91.43 599.56 91.43 512c0-87.57 26.59-171.05 75.93-241.23m585.87-103.41L647.29 273.3a273.95 273.95 0 00-135.26-35.61c-46.74 0-93.47 11.9-135.3 35.63L270.77 167.36C340.96 118.02 424.43 91.43 512 91.43s171.05 26.59 241.23 75.93m-370.5 473.91c-71.3-71.3-71.3-187.3 0-258.6a181.7 181.7 0 01129.3-53.55h.02c48.83 0 94.74 19.02 129.28 53.56 71.29 71.29 71.29 187.3 0 258.6a181.66 181.66 0 01-129.3 53.55 181.67 181.67 0 01-129.3-53.56m473.91 111.95L750.68 647.27c47.48-83.65 47.48-186.91.02-270.56l105.94-105.94c49.34 70.18 75.93 153.66 75.93 241.23s-26.59 171.04-75.93 241.22m17.4-603.26c-199.95-199.95-524.13-199.95-724.08 0-199.95 199.95-199.95 524.13 0 724.08 199.95 199.95 524.13 199.95 724.08 0 199.95-199.95 199.95-524.13 0-724.08",alert:"M511.998 623.846c-22.090 0-40-17.906-40-40v-208c0-22.090 17.91-40 40-40v0c22.090 0 40.004 17.91 40.004 40v208c0 22.094-17.914 40-40.004 40v0zM511.998 743.846c22.090 0 40.004-17.906 40.004-40v0c0-22.090-17.914-40-40.004-40v0c-22.090 0-40 17.91-40 40v0c0 22.094 17.91 40 40 40v0zM512.142 211.808l-340.074 589.028h680.148l-340.074-589.028zM512.142 92.51c14.5 0 29 9.526 40 28.58l398.638 690.462c22 38.106 4 69.282-40 69.282h-797.278c-44 0-62-31.176-40-69.282l398.638-690.462c11.002-19.052 25.502-28.58 40.002-28.58v0z",bell:"M901.344 760.018l-57.644-77.648c-7.906-7.906-11.77-38.284-11.71-48.646h0.042v-200.588h-0.364c-6.878-148.106-114.428-269.902-255.792-298.528 0.208-2.1 0.318-4.228 0.318-6.384 0-35.452-28.738-64.194-64.194-64.194-35.458 0-64.194 28.742-64.194 64.194 0 2.19 0.112 4.352 0.326 6.486-141.128 28.802-248.446 150.488-255.316 298.426h-0.364v200.588h0.042c0.058 10.362-3.804 40.74-11.71 48.646l-57.644 77.648c-8.802 8.802-16.35 18.978-16.35 32.208 0 22.092 17.908 40 40 40h255.876c-0.814 5.412-1.28 10.936-1.28 16.576 0 61.43 49.794 111.23 111.23 111.23 61.432 0 111.228-49.8 111.228-111.23 0-5.638-0.464-11.164-1.282-16.576h255.128c22.092 0 40-17.908 40-40 0.004-13.23-7.542-23.404-16.346-32.208zM272.732 436.848c2.862-61.602 29.032-119.104 73.69-161.91 44.786-42.93 103.628-66.62 165.692-66.706h0.26c62.062 0.086 120.906 23.776 165.692 66.706 44.658 42.806 70.828 100.308 73.69 161.91l0.278 5.962v149.384h-479.58v-149.384l0.278-5.962zM543.846 848.8c0 17.22-14.010 31.23-31.228 31.23-17.22 0-31.23-14.010-31.23-31.23 0-6.096 1.784-11.768 4.82-16.576h52.818c3.038 4.81 4.82 10.482 4.82 16.576zM512.484 752.226h-283.922l14.572-19.63c12.064-14.542 20.078-33.27 24.982-58.158 0.146-0.742 0.276-1.496 0.416-2.244h487.42c0.138 0.748 0.268 1.5 0.414 2.244 4.904 24.888 12.918 43.616 24.982 58.158l14.572 19.63h-283.436z",rss:"M256.094 865.048c0 53.020-42.972 96-96 96-53.020 0-96-42.98-96-96 0-53.016 42.98-96 96-96s96 42.984 96 96zM510.020 918.352c-0.018-0.172-0.042-0.344-0.050-0.52-0.054-0.676-0.124-1.34-0.214-2.004-10.582-105.644-57.866-200.46-128.894-271.536v0c-71.074-71.054-165.906-118.352-271.564-128.934-0.664-0.090-1.33-0.16-2.006-0.214-0.174-0.016-0.348-0.040-0.52-0.054-0.254-0.024-0.5-0.024-0.742-0.008-0.64-0.032-1.278-0.098-1.922-0.098-22.098 0-40 17.908-40 40 0 20.582 15.542 37.516 35.536 39.738 0.042 0.004 0.066 0.036 0.106 0.040 84.82 8.098 163.514 45.024 224.542 106.042v0c61.036 61.036 97.964 139.738 106.070 224.574 0.004 0.040 0.036 0.070 0.042 0.106 2.222 19.988 19.156 35.536 39.736 35.536 22.092 0 40-17.902 40-40 0-0.644-0.066-1.282-0.098-1.922 0-0.246 0-0.492-0.022-0.746zM734.688 918.45c-0.004-0.090-0.018-0.186-0.024-0.276-0.040-0.544-0.058-1.102-0.124-1.638-10.972-167.816-83.558-318.804-195.33-430.616h0.002c-111.812-111.788-262.81-184.384-430.644-195.36-0.542-0.060-1.094-0.084-1.642-0.122-0.092-0.008-0.182-0.016-0.272-0.022-0.020-0.002-0.042 0.004-0.054 0.004-0.836-0.052-1.664-0.124-2.512-0.124-22.092 0-40 17.908-40 40 0 21.036 16.246 38.24 36.874 39.842 0.046 0.008 0.078 0.038 0.128 0.042 66.876 4.086 131.786 19.292 193.406 45.358 70.472 29.81 133.78 72.494 188.166 126.874v0c54.394 54.396 97.090 117.71 126.902 188.204 26.064 61.624 41.274 126.532 45.362 193.408 0.004 0.052 0.036 0.080 0.042 0.13 1.604 20.624 18.802 36.87 39.844 36.87 22.090 0 40-17.904 40-40 0-0.85-0.074-1.678-0.126-2.514-0.002-0.024 0.006-0.040 0.002-0.060zM959.126 920.556c-0.002-0.094 0.008-0.164 0.004-0.262-10.342-231.204-108.314-439.604-261.486-592.796v-0.002c-153.2-153.19-361.61-251.174-592.828-261.518-0.096-0.004-0.168 0.006-0.262 0.004-0.176-0.004-0.348-0.030-0.524-0.030-22.098 0-40 17.91-40 40 0 20.988 16.168 38.164 36.716 39.834 0.184 0.042 0.356 0.086 0.566 0.098 97.040 4.314 191.186 25.538 280.376 63.258 97.14 41.090 184.406 99.928 259.368 174.876v0c74.96 74.964 133.81 162.24 174.908 259.398 37.718 89.19 58.946 183.336 63.26 280.376 0.010 0.208 0.052 0.38 0.096 0.562 1.67 20.552 18.848 36.72 39.834 36.72 22.092 0 40-17.906 40-40-0-0.17-0.024-0.342-0.028-0.518z",edit:"M948.56 263.376c12.704-12.708 15.072-31.836 7.11-46.936-1.84-3.524-4.232-6.832-7.192-9.792-0.286-0.286-0.594-0.528-0.886-0.8l-129.318-128.634c-0.048-0.048-0.088-0.106-0.138-0.154-7.812-7.812-18.050-11.716-28.292-11.714-10.242-0.004-20.484 3.902-28.296 11.714-0.064 0.066-0.12 0.136-0.184 0.204l-636.168 636.168c-5.868 5.134-10.21 11.958-12.298 19.748l-47.606 177.664c-3.7 13.804 0.248 28.534 10.352 38.638 7.602 7.6 17.816 11.714 28.288 11.714 3.452 0 6.93-0.446 10.352-1.364l177.664-47.606c7.296-1.956 13.732-5.904 18.74-11.216l521.486-521.484c1.126-0.904 2.222-1.87 3.268-2.914 1.042-1.044 2.006-2.138 2.91-3.264l107.75-107.748c0.836-0.71 1.668-1.432 2.458-2.224zM806.9 291.66l-73.592-73.202 56.61-56.61 73.594 73.2-56.612 56.612zM281.566 816.996l-73.4-73.4 468.572-468.568 73.594 73.202-468.766 468.766zM160.496 864.628l11.742-43.822 32.080 32.080-43.822 11.742z",paintbrush:"M946.58 293.66c12.704-12.708 15.072-31.836 7.108-46.938-1.838-3.524-4.23-6.83-7.19-9.79-0.282-0.282-0.588-0.52-0.876-0.792l-129.338-128.654c-0.046-0.046-0.084-0.098-0.13-0.144-7.814-7.812-18.056-11.718-28.296-11.714-10.24 0-20.48 3.906-28.292 11.714-0.064 0.066-0.12 0.138-0.184 0.206l-557.048 557.048c-2.194 2.192-4.042 4.59-5.622 7.11-70.624 87.486-17.922 195.43-174.738 239.554 0 0 64.758 18.11 144.33 18.11 74.374 0 161.678-15.824 221.23-77.020 0.394-0.364 0.808-0.696 1.192-1.078l1.734-1.734c0.852-0.798 1.678-1.578 2.504-2.426 0.348-0.356 0.668-0.728 1.010-1.086l168.756-168.756c1.126-0.906 2.224-1.872 3.272-2.918 1.044-1.044 2.008-2.14 2.914-3.266l375.212-375.212c0.834-0.706 1.664-1.424 2.452-2.214zM537.462 589.402l-73.594-73.206 324.068-324.064 73.594 73.2-324.068 324.070zM388.178 667.684c-13.288-13.632-28.584-23.974-44.78-31.016l63.902-63.902 73.596 73.204-64.246 64.248c-6.498-15.23-15.964-29.698-28.472-42.534zM229.848 791.928c8.294-30.346 14.852-54.332 32.416-73.862 0.83-0.864 2.664-2.702 4.26-4.286 8.030-6.792 17.534-8.246 24.198-8.246 14.386 0 29.026 6.554 40.162 17.98 19.592 20.106 21.934 49.238 5.596 66.874l-1.712 1.712c-0.798 0.752-1.612 1.524-2.462 2.354l-0.86 0.84-0.834 0.864c-30.666 31.79-75.914 45.424-118.104 50.542 7.53-18.888 12.598-37.426 17.34-54.772z",close:"M150 150a512 512 0 11724 724 512 512 0 01-724-724zm69.3 64.2A418.5 418.5 0 0095.9 512a418.5 418.5 0 00123.4 297.8A418.5 418.5 0 00517 933.2 418.5 418.5 0 00815 809.8 418.5 418.5 0 00938.4 512 418.5 418.5 0 00815 214.2 418.5 418.5 0 00517 90.8a418.5 418.5 0 00-297.8 123.4zM655 304a46 46 0 0165 65L577 512l143 143a46 46 0 11-65 65L512 577 369 720a46 46 0 11-65-65l143-143-143-143a46 46 0 0165-65l143 143 143-143z",closeAlt:"M586.7 512L936 861.4a52.8 52.8 0 0 1-74.6 74.7L512 586.7 162.6 936A52.8 52.8 0 0 1 88 861.4L437.3 512 88 162.6A52.8 52.8 0 1 1 162.6 88L512 437.3 861.4 88a52.8 52.8 0 1 1 74.7 74.7L586.7 512z",trash:"M919.5 225.208h-215.5v-120.080c0-20.344-15.192-37.096-34.836-39.632-1.696-0.216-3.41-0.372-5.164-0.372h-304.004c-1.754 0-3.468 0.152-5.164 0.372-19.644 2.54-34.836 19.292-34.836 39.628v120.084h-215.996c-22.090 0-40 17.912-40 40.002 0 22.092 17.91 40 40 40h27.216l53.916 615.914h0.214c0 22.092 17.91 40 40 40h573.372c22.094 0 40-17.91 40-40h0.148l53.916-615.914h26.716c22.090 0 40-17.91 40-40s-17.908-40.002-39.998-40.002zM399.996 145.126h224.004v80.082h-224.004v-80.082zM762.062 881.124h-500.124l-50.414-575.912h600.954l-50.416 575.912zM632.004 697.124v-240c-0.004-22.092 17.906-40.002 40-40.002 22.090 0.002 40 17.908 40 40.002l-0.004 240.002c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.906-40-40zM311.996 697.124v-240c-0.004-22.092 17.906-40.002 40-40.002 22.090 0.002 40 17.908 40 40.002l-0.004 240.002c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.906-40-40zM472 697.124v-240c-0.004-22.092 17.906-40.002 40-40.002 22.090 0.002 40 17.908 40 40.002l-0.004 240.002c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.906-40-40z",cross:"M1013.286 955.716l-443.72-443.716 443.718-443.718c15.622-15.622 15.62-40.948-0.004-56.566-15.618-15.622-40.942-15.622-56.562 0l-443.716 443.718-443.72-443.718c-15.62-15.624-40.946-15.622-56.566 0-15.622 15.62-15.622 40.944 0 56.566l443.722 443.718-443.722 443.722c-15.622 15.618-15.62 40.942 0 56.56s40.948 15.622 56.566 0l443.72-443.718 443.722 443.718c15.618 15.624 40.942 15.622 56.56 0 15.62-15.618 15.622-40.944 0.002-56.566z",delete:"M874 150A512 512 0 10150 874 512 512 0 00874 150zm-659.4 64.6A417.8 417.8 0 01512 91.4c97 0 188.9 32.6 263.3 92.6L184 775.3A417.4 417.4 0 0191.4 512c0-112.4 43.7-218 123.2-297.4zm594.8 594.8A417.8 417.8 0 01512 932.6c-97 0-189-32.7-263.3-92.6L840 248.7A417.4 417.4 0 01932.6 512c0 112.3-43.8 218-123.2 297.4z",add:"M512-.2a512 512 0 110 1024 512 512 0 010-1024zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 511.8c0 112.4 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.4c112.3 0 218-43.8 297.4-123.2a417.8 417.8 0 00123.2-297.4c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.2zm1.1 129.2a45.7 45.7 0 0145.7 45.7v201.1H760a45.7 45.7 0 010 91.5H558.8v201.1a45.7 45.7 0 11-91.4 0V558.7H266.3a45.7 45.7 0 110-91.5h201.1V266.1a45.7 45.7 0 0145.7-45.7z",subtract:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm4 94A418 418 0 0094 515a418 418 0 00422 422 418 418 0 00421-422A418 418 0 00516 94zm244 372a46 46 0 010 92H264a46 46 0 110-92z",plus:"M921.002 473h-368.008v-368.004c0.002-22.090-17.906-39.996-39.996-39.996-22.088 0-39.998 17.91-39.998 40v368h-368.002c-22.094 0-40 17.908-39.998 40-0.002 22.090 17.904 39.996 39.996 39.996l368.004-0.002v368.010c0 22.094 17.908 40 40 39.996 22.090 0.004 39.996-17.902 39.996-39.996v-368.010h368.010c22.090 0.002 39.994-17.906 39.994-39.996-0-22.088-17.908-39.998-39.998-39.998z",document:"M764 1c12 0 24 4 32 13l129 132c9 8 13 20 13 31v802c0 24-20 44-45 44H131c-25 0-45-20-45-44V45c0-24 20-44 45-44h633zm-48 89H175v844h674l-1-707h-87c-22 0-40-15-44-36v-8l-1-93zm-16 584a45 45 0 0 1 8 89H324a45 45 0 0 1-8-88l8-1h376zm0-187a45 45 0 0 1 8 89l-8 1H324a45 45 0 0 1-8-89l8-1h376zm0-186a45 45 0 0 1 8 88l-8 1H324a45 45 0 0 1-8-89h384z",folder:"M571 274h327c23 0 41 18 41 41v488c0 22-18 40-41 40H126c-23 0-41-18-41-40V242c0-34 27-61 61-61h317c18 0 35 7 47 21l61 72zm-119-8H170v492h684V359H531l-79-93z",component:"M171 469h298V171H246c-42 0-75 33-75 75v223zm0 86v223c0 42 33 75 75 75h223V555H171zm682-86V246c0-42-33-75-75-75H555v298h298zm0 86H555v298h223c42 0 75-33 75-75V555zM256 85h512c94 0 171 77 171 171v512c0 94-77 171-171 171H256c-94 0-171-77-171-171V256c0-94 77-171 171-171z",calendar:"M920.036 160.030h-112.004v-72c0-22.092-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v72.004h-432v-72c0-22.092-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v72.004h-112.004c-1.38 0-2.746 0.070-4.090 0.208-20.168 2.046-35.91 19.080-35.91 39.792v688c0 22.090 17.91 40 40 40h816.008c22.098 0 40-17.91 40-40v-688c0-22.094-17.908-40-40-40zM356.032 848.026h-212.004v-142.662h212.004v142.662zM356.032 665.364h-212.004v-162.664h212.004v162.664zM356.032 462.7h-212.004v-142.662h212.004v142.662zM628.032 848.026h-232v-142.662h232v142.662zM628.032 665.364h-232v-162.664h232v162.664zM628.032 462.7h-232v-142.662h232v142.662zM880.036 848.026h-212.004v-142.662h212.004v142.662zM880.036 665.364h-212.004v-162.664h212.004v162.664zM880.036 462.7h-212.004v-142.662h212.004v142.662z",graphline:"M820.536 489.23c-15.624 15.618-40.954 15.618-56.57 0l-42.006-42.002-169.898 169.9c-7.822 7.82-18.076 11.722-28.326 11.712-10.248 0.008-20.496-3.894-28.314-11.712l-96.178-96.182-140.67 140.674c-15.624 15.622-40.954 15.618-56.57-0.004-15.624-15.618-15.624-40.946 0-56.566l168.946-168.946c7.812-7.816 18.058-11.72 28.3-11.716 10.238-0.002 20.476 3.904 28.29 11.716l96.204 96.204 168.91-168.91c0.33-0.356 0.626-0.73 0.972-1.076 7.824-7.824 18.084-11.726 28.34-11.712 10.252-0.012 20.508 3.892 28.332 11.714 0.346 0.346 0.64 0.72 0.972 1.074l69.266 69.266c15.62 15.618 15.616 40.942 0 56.566zM880 144h-736v736h736v-736zM920 64c22.092 0 40 17.908 40 40v816c0 22.092-17.908 40-40 40h-816c-22.092 0-40-17.908-40-40v-816c0-22.092 17.908-40 40-40h816z",docchart:"M919.938 128h-816.008c-1.38 0-2.746 0.070-4.090 0.208-20.168 2.046-35.91 19.080-35.91 39.792v688c0 22.090 17.91 40 40 40h816.008c22.098 0 40-17.91 40-40v-688c0-22.094-17.906-40-40-40zM395.934 470.67h232v162.664h-232v-162.664zM355.934 633.334h-212.004v-162.664h212.004v162.664zM395.934 430.67v-142.662h232v142.662h-232zM667.934 470.67h212.004v162.664h-212.004v-162.664zM667.934 430.67v-142.662h212.004v142.662h-212.004zM355.934 288.008v142.662h-212.004v-142.662h212.004zM143.93 673.334h212.004v142.662h-212.004v-142.662zM395.934 673.334h232v142.662h-232v-142.662zM667.934 673.334h212.004v142.662h-212.004v-142.662z",doclist:"M919.938 128h-816.008c-1.38 0-2.746 0.070-4.090 0.208-20.168 2.046-35.91 19.080-35.91 39.792v688c0 22.090 17.91 40 40 40h816.008c22.098 0 40-17.91 40-40v-688c-0-22.094-17.906-40-40-40zM143.93 288.008h736.008v527.988h-736.008v-527.988zM248 400.004c0-22.090 17.91-40 40-40h448c22.094 0 40 17.906 40 40 0 22.090-17.906 40-40 40h-448c-22.090 0-40-17.91-40-40zM776 552.002c0 22.094-17.906 40-40 40h-448c-22.090 0-40-17.906-40-40 0-22.090 17.91-40 40-40h448c22.094 0 40 17.91 40 40zM776 704c0 22.094-17.906 40-40 40h-448c-22.090 0-40-17.906-40-40 0-22.090 17.91-40 40-40h448c22.094 0 40 17.91 40 40z",category:"M925.224 256.37c-1.694-0.216-3.408-0.37-5.162-0.37h-816c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v624c0 22.094 17.91 40 40 40h816c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-624.004c0-20.342-15.19-37.096-34.838-39.632zM144.062 880v-544h736v544h-736zM896.11 180c0 11.044-8.954 20-20 20h-728.032c-11.046 0-20-8.956-20-20v0c0-11.046 8.954-20 20-20h728.032c11.046 0 20 8.954 20 20v0zM832.094 84c0 11.044-8.954 20-20 20h-600c-11.046 0-20-8.956-20-20v0c0-11.046 8.954-20 20-20h600c11.046 0 20 8.954 20 20v0z",grid:"M437.162 552.368c-1.694-0.216-3.408-0.37-5.162-0.37h-263.978c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v264.040c0 22.094 17.91 40 40 40h263.978c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-264.044c0-20.34-15.19-37.094-34.838-39.632zM208.022 816.038v-184.040h183.978v184.040h-183.978zM437.162 128.4c-1.694-0.216-3.408-0.37-5.162-0.37h-263.978c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v263.968c0 22.094 17.91 40 40 40h263.978c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-263.972c0-20.342-15.19-37.096-34.838-39.632zM208.022 392v-183.968h183.978v183.968h-183.978zM861.212 552.368c-1.694-0.216-3.408-0.37-5.162-0.37h-264.050c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v264.040c0 22.094 17.91 40 40 40h264.048c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-264.044c0.002-20.34-15.19-37.094-34.836-39.632zM632 816.038v-184.040h184.048v184.040h-184.048zM861.212 128.4c-1.694-0.216-3.408-0.37-5.162-0.37h-264.050c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v263.968c0 22.094 17.91 40 40 40h264.048c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-263.972c0.002-20.342-15.19-37.096-34.836-39.632zM632 392v-183.968h184.048v183.968h-184.048z",copy:"M960.132 210.186c0-0.444-0.050-0.874-0.066-1.312-0.024-0.684-0.044-1.366-0.104-2.046-0.060-0.74-0.158-1.468-0.26-2.198-0.080-0.564-0.156-1.128-0.258-1.692-0.146-0.792-0.328-1.566-0.518-2.34-0.124-0.508-0.244-1.014-0.39-1.518-0.224-0.784-0.488-1.548-0.76-2.312-0.176-0.49-0.344-0.98-0.538-1.466-0.302-0.754-0.642-1.486-0.988-2.216-0.224-0.472-0.436-0.946-0.68-1.41-0.398-0.762-0.838-1.496-1.284-2.228-0.242-0.396-0.466-0.798-0.722-1.19-0.608-0.924-1.262-1.81-1.942-2.678-0.132-0.168-0.248-0.346-0.382-0.512-0.98-1.212-2.028-2.364-3.14-3.454l-104.020-104.9c-3.714-3.714-7.988-6.518-12.542-8.464-0.088-0.040-0.174-0.084-0.262-0.122-0.994-0.418-2.006-0.774-3.024-1.108-0.242-0.080-0.474-0.176-0.72-0.252-0.942-0.288-1.894-0.516-2.854-0.732-0.334-0.076-0.658-0.176-0.996-0.244-0.998-0.2-2.004-0.336-3.010-0.458-0.306-0.038-0.606-0.1-0.912-0.13-1.322-0.13-2.65-0.204-3.976-0.204h-391.784c-1.754 0-3.468 0.152-5.162 0.372-19.646 2.538-34.838 19.29-34.838 39.628v145.516h-279.874c-1.754 0-3.468 0.152-5.162 0.372-19.646 2.538-34.838 19.29-34.838 39.628v628.28c0 22.094 17.91 40 40 40h496.118c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 2.084-3.466 2.128-3.548 2.992-5.612 4.704-12.010 4.704-18.808 0 0 0 0 0-0.004v-145.518h279.874c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 2.084-3.466 2.128-3.548 2.992-5.612 4.704-12.010 4.704-18.808 0 0 0 0 0-0.004v-521.828c0.008-0.23-0.016-0.458-0.014-0.688 0.002-0.202 0.028-0.39 0.028-0.584zM144.124 878.792v-548.278h311.752v65.186c0 22.090 17.91 40 40 40h64.366v443.092h-416.118zM640.244 693.278v-296.31c0.006-0.23-0.018-0.458-0.014-0.688 0.004-0.196 0.030-0.382 0.030-0.578 0-0.444-0.052-0.874-0.066-1.312-0.024-0.684-0.044-1.366-0.104-2.046-0.062-0.74-0.16-1.468-0.262-2.198-0.078-0.564-0.152-1.128-0.258-1.692-0.144-0.792-0.324-1.566-0.516-2.34-0.124-0.508-0.246-1.014-0.39-1.518-0.226-0.784-0.488-1.548-0.76-2.312-0.174-0.49-0.342-0.98-0.538-1.466-0.302-0.754-0.64-1.486-0.988-2.216-0.222-0.472-0.438-0.946-0.68-1.41-0.398-0.762-0.838-1.496-1.284-2.228-0.242-0.396-0.466-0.798-0.724-1.19-0.606-0.924-1.262-1.81-1.942-2.678-0.13-0.168-0.246-0.346-0.382-0.512-0.978-1.212-2.028-2.364-3.138-3.454l-104.020-104.9c-3.714-3.714-7.988-6.518-12.542-8.464-0.088-0.040-0.172-0.084-0.262-0.122-0.994-0.418-2.004-0.774-3.024-1.108-0.242-0.080-0.476-0.176-0.72-0.252-0.942-0.288-1.896-0.516-2.854-0.732-0.334-0.076-0.658-0.176-0.996-0.244-0.998-0.2-2.004-0.336-3.012-0.458-0.304-0.038-0.602-0.1-0.91-0.13-1.322-0.13-2.648-0.204-3.976-0.204h-31.916v-105.516h311.752v65.186c0 22.090 17.91 40 40 40h64.366v443.092h-239.87z",certificate:"M832.032 384.032c0-176.728-143.266-320-320-320s-320 143.272-320 320c0 104.662 50.25 197.584 127.938 255.966v311.5c0 16.174 9.74 30.756 24.682 36.952 4.954 2.052 10.152 3.050 15.31 3.050 10.402 0 20.626-4.060 28.276-11.702l123.726-123.58 123.772 123.332c11.452 11.412 28.644 14.804 43.574 8.608 14.93-6.2 24.66-20.776 24.66-36.942v-311.124c77.756-58.376 128.062-151.342 128.062-256.060zM272.032 384.032c0-64.106 24.964-124.374 70.292-169.706 45.33-45.33 105.6-70.294 169.708-70.294s124.376 24.964 169.708 70.294c45.33 45.332 70.292 105.6 70.292 169.706s-24.964 124.376-70.292 169.704c-45.33 45.33-105.6 70.294-169.708 70.294s-124.376-24.964-169.708-70.294c-45.328-45.328-70.292-105.598-70.292-169.704zM623.968 854.89l-83.804-83.508c-15.622-15.564-40.898-15.552-56.502 0.034l-83.694 83.594v-171.17c34.878 13.042 72.632 20.192 112.062 20.192 39.382 0 77.094-7.13 111.938-20.142v171z",print:"M925.922 304.496c-1.698-0.218-3.41-0.37-5.166-0.37h-88.64v-93.548c0.006-0.21-0.016-0.422-0.014-0.634 0.004-0.212 0.036-0.416 0.036-0.63 0-0.478-0.054-0.942-0.074-1.416-0.024-0.636-0.042-1.27-0.094-1.906-0.066-0.776-0.168-1.54-0.276-2.302-0.074-0.534-0.146-1.066-0.242-1.596-0.15-0.82-0.338-1.624-0.538-2.424-0.12-0.48-0.23-0.958-0.37-1.436-0.234-0.812-0.506-1.608-0.792-2.398-0.164-0.462-0.322-0.924-0.504-1.38-0.318-0.788-0.668-1.552-1.036-2.316-0.208-0.436-0.406-0.88-0.628-1.312-0.424-0.802-0.88-1.574-1.352-2.344-0.218-0.358-0.422-0.724-0.656-1.078-0.636-0.972-1.324-1.91-2.042-2.82-0.098-0.124-0.182-0.252-0.282-0.376-0.988-1.224-2.048-2.388-3.172-3.488l-104.004-104.882c-3.696-3.696-7.948-6.486-12.466-8.432-0.122-0.050-0.224-0.11-0.344-0.16-0.974-0.41-1.966-0.756-2.962-1.084-0.262-0.086-0.512-0.19-0.78-0.272-0.926-0.284-1.87-0.506-2.812-0.722-0.346-0.080-0.684-0.182-1.034-0.252-0.988-0.198-1.988-0.334-2.988-0.456-0.31-0.040-0.618-0.102-0.93-0.134-1.324-0.132-2.652-0.204-3.978-0.204h-455.67c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.29-34.838 39.63v200h-87.356c-1.754 0-3.468 0.152-5.164 0.37-19.644 2.538-34.836 19.29-34.836 39.63v320c0 22.094 17.91 40 40 40h87.368v216c0 22.094 17.91 40 40 40h560.006c13.81 0 25.982-6.996 33.17-17.636 0.102-0.146 0.184-0.306 0.282-0.458 0.612-0.922 1.2-1.86 1.722-2.836 0.046-0.082 0.080-0.17 0.124-0.254 2.994-5.612 4.704-12.008 4.704-18.808 0 0 0 0 0-0.004v-216h88.624c13.808 0 25.982-6.996 33.168-17.636 0.104-0.148 0.186-0.308 0.286-0.458 0.612-0.922 1.198-1.862 1.72-2.836 0.046-0.082 0.082-0.172 0.124-0.256 2.994-5.61 4.702-12.008 4.702-18.806 0 0 0 0 0-0.004v-320c0-20.344-15.186-37.096-34.834-39.636zM272.116 144.128h375.634v65.186c0 1.38 0.070 2.746 0.208 4.090 2.048 20.168 19.080 35.91 39.792 35.91h64.366v54.812h-480v-159.998zM272.124 880.126v-327.998h480.006v327.998zM880.756 384.128v239.998h-48.624v-111.998c0-20.34-15.19-37.092-34.836-39.63-1.694-0.218-565.17-0.372-565.17-0.372-1.754 0-3.468 0.152-5.162 0.372-19.646 2.538-34.838 19.29-34.838 39.628v112h-47.368v-239.998zM664.124 608.126c22.092 0 40 17.908 40 40s-17.908 40-40 40h-304c-22.092 0-40-17.908-40-40s17.908-40 40-40h304zM704.124 784.126c0 22.092-17.908 40-40 40h-304c-22.092 0-40-17.908-40-40s17.908-40 40-40h304c22.092 0 40 17.908 40 40z",listunordered:"M961 233c0 22.090-17.908 40-40 40h-607.996c-22.090 0-40-17.908-40-40v0c0-22.090 17.908-40.002 40-40.002h607.996c22.092 0 40 17.912 40 40.002v0zM961 793c0-22.090-17.908-40.002-40-40.002h-607.996c-22.092 0-40 17.912-40 40.002v0c0 22.092 17.91 40 40 40h607.996c22.092 0 40-17.91 40-40v0zM961 606.332c0-22.090-17.908-40-40-40h-607.996c-22.092 0-40 17.91-40 40v0c0 22.094 17.91 40 40 40h607.996c22.092 0 40-17.91 40-40v0zM961 419.668c0-22.090-17.908-40.004-40-40.004h-607.996c-22.092 0-40 17.914-40 40.004v0c0 22.090 17.91 40 40 40h607.996c22.092-0 40-17.91 40-40v0zM129 168.998c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zM129 728.998c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zM129 542.332c-35.346 0-64 28.652-64 64 0 35.344 28.654 64 64 64s64-28.656 64-64c0-35.348-28.654-64-64-64zM129 355.664c-35.346 0-64 28.656-64 64 0 35.348 28.654 64 64 64s64-28.652 64-64c0-35.344-28.654-64-64-64z",graphbar:"M324.832 513c22.090 0 40 17.91 40 40v304c0 22.090-17.906 40-40 40v0c-22.090 0-40-17.906-40-40v-304c0-22.090 17.91-40 40-40v0zM884.832 128.998c-22.090 0-40 17.906-40 40v688.002c0 22.094 17.91 40 40 40v0c22.094 0 40-17.91 40-40v-688.002c0-22.094-17.91-40-40-40v0zM698.164 256.998c-22.090 0-40 17.91-40 40v560.002c0 22.094 17.91 40 40 40v0c22.094 0 40-17.91 40-40v-560.002c0-22.090-17.91-40-40-40v0zM511.5 384.998c-22.090 0-40.004 17.91-40.004 40v432.002c0 22.094 17.914 40 40.004 40v0c22.090 0 40-17.91 40-40v-432.002c0-22.090-17.91-40-40-40v0zM139.168 641c-22.090 0-40 17.91-40 40v176c0 22.094 17.91 40 40 40v0c22.094 0 40-17.91 40-40v-176c0-22.090-17.91-40-40-40v0z",menu:"M960 232c0 22.092-17.908 40-40.002 40h-815.996c-22.092 0-40-17.908-40-40v0c0-22.090 17.908-40 40-40h815.998c22.092 0 40 17.91 40 40v0zM768 416c0 22.090-17.908 40-40 40h-624c-22.090 0-40-17.908-40-40v0c0-22.090 17.908-40.002 40-40.002h624c22.092 0.002 40 17.914 40 40.002v0zM832 608c0 22.092-17.906 40.002-40 40.002h-688c-22.090 0-40-17.91-40-40.002v0c0-22.090 17.908-40 40-40h688c22.094 0 40 17.912 40 40v0zM576 792c0 22.094-17.91 40-40.002 40h-431.998c-22.090 0-40-17.906-40-40v0c0-22.094 17.908-40.002 40-40.002h432c22.094 0.002 40 17.912 40 40.002v0z",filter:"M962.030 168.032c0 22.092-17.908 40-40.002 40h-815.996c-22.092 0-40-17.908-40-40v0c0-22.090 17.908-40 40-40h815.998c22.092 0 40 17.908 40 40v0zM770 544.034c0 22.090-17.908 40-40 40h-432c-22.090 0-40-17.908-40-40v0c0-22.090 17.908-40.002 40-40.002h432c22.090 0 40 17.912 40 40.002v0zM642.030 728.032c0 22.094-17.91 40-40.002 40h-175.998c-22.090 0-40-17.906-40-40v0c0-22.094 17.908-40.002 40-40.002h176c22.094 0.002 40 17.91 40 40.002v0zM866 352.030c0 22.092-17.906 40.002-40 40.002h-624c-22.090 0-40-17.91-40-40.002v0c0-22.090 17.908-40 40-40h624c22.092 0 40 17.91 40 40v0zM512.030 928.034c22.090 0 40.004-17.906 40.004-40v0c0-22.090-17.914-40-40.004-40v0c-22.090 0-40 17.91-40 40v0c0 22.092 17.91 40 40 40v0z",ellipsis:"M184 393c66.274 0 120 53.73 120 120s-53.726 120-120 120c-66.286 0-120-53.73-120-120s53.714-120 120-120zM512 393c66.272 0 120 53.73 120 120s-53.728 120-120 120c-66.286 0-120-53.73-120-120s53.714-120 120-120zM840 393c66.272 0 120 53.73 120 120s-53.728 120-120 120c-66.286 0-120-53.73-120-120s53.714-120 120-120z",cog:"M512 288a224 224 0 0 0 0 448h2a225 225 0 0 0 52-7 47 47 0 0 0-23-90 130 130 0 0 1-31 3 131 131 0 1 1 127-101v1a47 47 0 1 0 91 19 224 224 0 0 0-218-273zM409 0c-67 14-131 40-186 77v98c0 13-6 25-15 33-8 9-20 15-33 15H77C40 278 14 341 0 409l69 68c9 10 14 22 13 34 1 13-4 25-13 34L0 614c14 68 41 132 78 188h97c13 0 25 6 33 15 9 8 15 20 15 33v97c55 37 119 63 187 77l68-69a46 46 0 0 1 36-13c11 0 23 4 32 13l69 69c68-14 131-40 186-77v-98c0-13 6-25 15-34 8-8 20-14 33-14h98c37-56 63-119 77-186l-69-70c-10-9-14-21-14-34 0-12 4-24 14-34l69-69c-14-67-40-129-77-184h-98c-13 0-25-6-33-15-9-8-15-20-15-33V77C746 40 683 14 615 0l-69 69a46 46 0 0 1-35 14c-11 0-23-5-33-14L409 0zm-28 103l32 32c26 26 61 41 98 41h3c37 0 72-15 98-41l32-31c22 7 43 16 64 26v46c0 37 15 73 42 99 26 27 62 42 99 42h45c11 20 19 41 26 63l-31 31c-26 27-41 63-41 100 0 38 15 74 41 100l32 32c-8 22-17 44-27 65h-45c-37 0-73 15-99 42-27 26-42 62-42 99v44c-21 11-42 20-65 27l-31-31c-26-26-61-41-98-41h-3c-37 0-72 15-98 41l-32 32c-22-8-44-17-65-28v-43c0-37-15-73-42-99-26-27-62-42-99-42h-44c-11-21-20-44-28-67l32-31c26-26 41-62 40-100 1-37-14-73-40-100l-31-30c7-23 16-44 26-65h45c37 0 73-15 99-42 27-26 42-62 42-99v-45c21-10 43-19 65-27z",wrench:"M959.438 274.25c0-22.090-17.914-40-40.004-40-11.16 0-21.242 4.582-28.496 11.954l-60.152 60.148c-15.622 15.622-40.946 15.618-56.566-0.004l-56.57-56.566c-15.622-15.622-15.622-40.95 0-56.57l59.55-59.546c7.75-7.292 12.614-17.618 12.614-29.102 0-22.090-17.914-40-40.004-40-1.598 0-3.164 0.122-4.71 0.304-0.012 0-0.020-0.008-0.032-0.004-94.958 11.586-168.504 92.492-168.504 190.574 0 23.528 4.238 46.058 11.98 66.886l-503.078 503.074c-1.496 1.496-2.8 3.102-4.012 4.758-10.914 13.676-17.454 30.992-17.454 49.848 0 44.188 35.818 79.996 79.996 79.996 18.906 0 36.27-6.574 49.964-17.54 1.614-1.188 3.18-2.464 4.64-3.926l503.078-503.078c20.828 7.742 43.36 11.98 66.882 11.98 97.988 0 178.828-73.402 190.54-168.222v-0.012c0.2-1.628 0.338-3.272 0.338-4.952zM151.996 912c-22.090 0-40-17.906-40-40 0-22.090 17.91-40 40-40s40.004 17.91 40.004 40c0 22.094-17.914 40-40.004 40z",nut:"M512 286a229 229 0 0 0-233 226c0 124 104 225 233 225h2a240 240 0 0 0 54-7c21-5 35-24 35-45a48 48 0 0 0-59-45 139 139 0 0 1-32 3c-75 0-136-59-136-131 0-73 61-132 136-132a134 134 0 0 1 132 161v1l-2 9c0 26 22 47 49 47a48 48 0 0 0 47-37c4-16 6-33 6-49 0-125-104-226-232-226m0-286c-16 0-33 4-47 12L90 223a91 91 0 0 0-47 79v420c0 33 18 63 47 79l375 211a96 96 0 0 0 94 0l375-211c29-16 47-46 47-79V302c0-33-18-63-47-79L559 12c-14-8-31-12-47-12m0 91l375 211v420L512 933 137 722V302L512 91",camera:"M925.164 208.372c-1.694-0.218-3.408-0.372-5.162-0.372h-471.968v-39.962c0-20.344-15.192-37.096-34.836-39.63-1.696-0.218-3.41-0.374-5.164-0.374h-176.004c-1.754 0-3.468 0.152-5.164 0.374-19.644 2.538-34.836 19.29-34.836 39.626v39.966h-88.032c-1.754 0-3.468 0.152-5.162 0.372-19.646 2.536-34.838 19.29-34.838 39.628v528c0 22.094 17.91 40 40 40h816.004c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.46 0.612-0.922 1.2-1.86 1.722-2.836 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-528.004c-0-20.342-15.192-37.096-34.838-39.63zM880.002 736h-736.004v-448h736.004v448zM512 402.522c60.368 0 109.478 49.112 109.478 109.478s-49.112 109.478-109.478 109.478-109.478-49.112-109.478-109.478 49.11-109.478 109.478-109.478zM512 322.522c-104.644 0-189.478 84.832-189.478 189.478 0 104.644 84.834 189.478 189.478 189.478 104.646 0 189.478-84.834 189.478-189.478 0-104.646-84.832-189.478-189.478-189.478v0z",eye:"M1008.714 490.522c-9.002-12.594-223.276-308.808-496.684-308.808-273.444 0-487.682 296.214-496.684 308.808l-15.316 21.49 15.316 21.466c9.002 12.618 223.24 308.808 496.684 308.808 273.408 0 487.682-296.19 496.684-308.808l15.316-21.466-15.316-21.49zM807.68 631.688c-46 39.142-92.558 70.064-138.382 91.904-53.874 25.676-106.786 38.694-157.266 38.694-50.49 0-103.406-13.018-157.282-38.696-45.826-21.838-92.382-52.758-138.378-91.902-53.708-45.706-94.302-92.122-116.61-119.672 22.36-27.602 63.028-74.094 116.612-119.696 45.996-39.146 92.554-70.068 138.378-91.908 53.876-25.678 106.792-38.698 157.28-38.698 50.48 0 103.39 13.020 157.264 38.696 45.824 21.842 92.382 52.764 138.382 91.91 53.602 45.614 94.264 92.098 116.624 119.696-22.306 27.544-62.898 73.954-116.622 119.672zM692.032 512.036c0 99.41-80.588 180-180 180s-180-80.59-180-180c0-99.406 80.588-179.998 180-179.998s180 80.59 180 179.998z",eyeclose:"M75.744 948.314c-15.62-15.62-15.62-40.948 0-56.564l816-816c15.626-15.624 40.95-15.624 56.57 0 15.624 15.62 15.626 40.946 0.004 56.57l-816 815.994c-15.62 15.62-40.95 15.62-56.572 0zM332.032 512.034c0 20.104 3.296 39.434 9.376 57.484l228.104-228.106c-18.050-6.080-37.38-9.376-57.48-9.376-99.412-0.004-180 80.588-180 179.996zM692.032 512.034c0-20.1-3.3-39.432-9.38-57.484l-228.106 228.11c18.052 6.080 37.384 9.376 57.488 9.376 99.412 0 180-80.59 180-180zM1008.716 490.522c-4.98-6.968-72.86-100.8-178.81-183.22l-57.040 57.040c11.624 8.8 23.24 18.128 34.814 27.98 53.6 45.614 94.264 92.1 116.624 119.696-22.304 27.544-62.896 73.954-116.62 119.672-46 39.14-92.56 70.064-138.384 91.904-53.872 25.676-106.786 38.694-157.266 38.694-37.448 0-76.234-7.18-115.76-21.36l-61.486 61.49c54.786 24.22 114.45 39.87 177.248 39.87 273.41 0 487.684-296.19 496.686-308.808l15.316-21.468-15.316-21.49zM216.372 631.69c-53.708-45.706-94.3-92.12-116.61-119.672 22.36-27.6 63.028-74.094 116.612-119.696 46-39.146 92.554-70.068 138.38-91.908 53.874-25.68 106.79-38.7 157.28-38.7 37.46 0 76.264 7.188 115.8 21.38l61.484-61.484c-54.796-24.236-114.474-39.896-177.286-39.896-273.446 0-487.684 296.214-496.686 308.808l-15.316 21.49 15.314 21.466c4.98 6.984 72.866 100.84 178.84 183.26l57.040-57.040c-11.64-8.806-23.264-18.144-34.854-28.008z",photo:"M920 64h-816c-22.092 0-40 17.91-40 40v816c0 22.094 17.908 40 40 40h816c22.092 0 40-17.906 40-40v-816c0-22.090-17.908-40-40-40zM880 144v449.782l-235.39-235.392c-7.502-7.5-17.676-11.714-28.286-11.714s-20.784 4.214-28.286 11.716l-169.804 169.804-40.958-40.958c-15.622-15.622-40.95-15.622-56.57 0l-176.708 176.708v-519.946h736.002zM144 880v-102.914l204.992-204.994 215.972 215.974c7.81 7.81 18.048 11.714 28.286 11.714s20.474-3.904 28.286-11.714c15.62-15.622 15.62-40.95 0-56.57l-146.732-146.73 141.522-141.524 263.676 263.68v173.078h-736.002zM356.174 400.542c52.466 0 95-42.536 95-95s-42.534-95-95-95-95 42.536-95 95 42.534 95 95 95zM356.174 250.542c30.326 0 55 24.672 55 55s-24.674 55-55 55-55-24.672-55-55 24.674-55 55-55z",video:"M926.050 273.364c-9.556 0-20.574 3.8-32.278 11.812l-189.738 129.894v-151.068c0-20.342-15.192-37.094-34.838-39.63-1.694-0.218-3.408-0.372-5.162-0.372h-560.002c-1.754 0-3.468 0.152-5.162 0.372-19.646 2.538-34.838 19.29-34.838 39.628v496.002c0 22.092 17.91 40 40 40h560.004c13.808 0 25.98-6.998 33.168-17.638 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.922 1.2-1.862 1.722-2.836 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.612 4.704-12.010 4.704-18.81v-151.066l189.738 129.886c11.706 8.012 22.718 11.812 32.278 11.812 20.092 0 33.736-16.806 33.736-46.622v-384.032c0-29.816-13.644-46.62-33.738-46.62zM624.036 720h-480.004v-415.998h480.004v415.998zM879.788 632.3l-175.728-120.296 175.728-120.302v240.598zM240.688 663.534c-22.090 0-40-17.906-40-40v0c0-22.090 17.91-40 40-40v0c22.090 0 40.004 17.91 40.004 40v0c0 22.092-17.914 40-40.004 40v0z",speaker:"M692.070 580.856c18.156-18.156 28.152-42.266 28.152-67.89-0.008-25.622-10.002-49.726-28.148-67.872-8.476-8.478-18.308-15.188-29-19.922-0.222-0.098-0.408-0.22-0.566-0.364-13.294-6.5-22.476-20.116-22.476-35.914 0-22.090 17.91-40 40-40 5.774 0 11.246 1.248 16.204 3.45 0.016 0.006 0.026 0.008 0.040 0.016 19.292 8.656 37.036 20.832 52.368 36.164 33.254 33.254 51.574 77.446 51.58 124.43 0.006 46.996-18.31 91.204-51.58 124.472-15.064 15.062-32.45 27.074-51.344 35.7-0.154 0.070-0.286 0.112-0.434 0.176-5.124 2.382-10.812 3.75-16.832 3.75-22.090 0-40-17.906-40-40 0-16.196 9.644-30.112 23.488-36.402 0.156-0.11 0.32-0.216 0.516-0.304 10.314-4.712 19.81-11.268 28.032-19.49zM861.778 275.386c-47.824-47.824-107.946-79.588-173.204-92.242-0.356-0.078-0.712-0.146-1.072-0.214-0.060-0.012-0.124-0.026-0.186-0.038-0.506-0.096-0.976-0.162-1.422-0.208-1.918-0.282-3.868-0.476-5.864-0.476-22.090 0-40 17.91-40 40 0 19.024 13.292 34.91 31.084 38.968 0.352 0.128 0.728 0.244 1.162 0.326 48.7 9.268 95.226 32.748 132.934 70.452 99.972 99.972 100.054 261.984-0.002 362.040-37.684 37.684-84.152 61.14-132.788 70.426-0.084 0.016-0.144 0.046-0.224 0.066-18.338 3.644-32.166 19.816-32.166 39.222 0 22.094 17.91 40 40 40 2.776 0 5.484-0.286 8.102-0.822 0.094-0.018 0.172-0.018 0.27-0.038 65.32-12.626 125.496-44.406 173.376-92.286 131.008-131.008 131.008-344.172 0-475.176zM525.988 159.516v704.968c0 22.090-17.906 40-40 40-12.73 0-24.046-5.966-31.374-15.234l-51.056-61.722v0.216l-122.14-147.666h-177.386c-22.090 0-40-17.906-40-40v0 0-256c0-5.22 1.030-10.194 2.85-14.766 0.104-0.266 0.184-0.542 0.294-0.804 0.39-0.924 0.844-1.812 1.3-2.702 0.134-0.26 0.242-0.538 0.382-0.794 0.246-0.456 0.54-0.878 0.804-1.324 6.972-11.726 19.734-19.61 34.368-19.61h177.386l173.13-209.238c7.324-9.316 18.67-15.324 31.44-15.324 22.092-0 40.002 17.91 40.002 40zM445.988 270.826l-126.708 153.252h-175.248v176h175.248l19.832 23.998h0.17l106.708 129.112v-482.362z",phone:"M742.52 960c-76.266 0-163.184-32.364-258.338-96.194-73.798-49.504-136.41-106.904-175.938-146.34-43.282-43.222-105.612-111.376-156.842-190.682-66.576-103.062-95.348-196.038-85.518-276.344 8.952-73.326 50.674-134.292 120.664-176.304 10.95-6.63 23.76-10.134 37.054-10.134 32.752 0 71.124 23.354 120.764 73.494 36.434 36.802 70.108 79.22 89.472 106.644 46.698 66.176 60.686 107.352 48.286 142.136-12.638 35.538-35.534 55.704-52.25 70.428-5.662 5.006-9.95 8.854-13.070 12.262 4.040 7.542 11.744 19.868 26.054 37.476 42.388 52.076 90.548 89.024 111.972 100.874 3.308-2.96 7.11-7.168 12.352-13.152 14.87-16.81 35.062-39.636 70.482-52.28 7.978-2.842 16.498-4.276 25.35-4.276 44.172 0 108.804 44.078 155.246 81.056 45.834 36.494 103.292 90.498 127.104 132.612 22.602 39.596 14.982 68.64 4.596 86.006-48.138 80.296-119.862 122.718-207.44 122.718zM224.758 144.53c-47.558 29.426-73.566 67.28-79.468 115.618-7.494 61.224 17.17 136.326 73.308 223.226 49.902 77.252 112.994 144.35 146.16 177.472 30.296 30.222 91.906 88.17 163.988 136.524 81.738 54.83 153.662 82.63 213.772 82.63 58.618 0 103.506-26.526 137.138-81.076-0.47-1.536-1.532-4.062-3.854-8.132-14.584-25.794-57.006-69.202-105.642-108.156-58.776-47.074-96.708-63.894-106.756-64.982-15.348 5.826-25.020 16.758-36.178 29.372-12.542 14.318-28.31 32.316-55.476 41.528l-6.25 2.12h-6.598c-8.704 0-31.826 0-86.73-43.378-32.196-25.438-64.65-57.534-91.38-90.374-35.712-43.942-51.41-77.764-46.674-100.548l0.55-2.642 0.9-2.546c9.19-26 26.284-41.118 41.364-54.458 12.726-11.208 23.698-20.874 29.494-36.378-0.606-4.398-5.076-23.488-37.948-70.072-15.882-22.494-45.746-60.376-77.614-93.084-39.93-40.986-60.106-50.546-66.106-52.664z",flag:"M168 960.060c-22.092 0-40-17.908-40-40v-816.36c0-22.092 17.908-40 40-40h687.698c16.178 0 30.764 9.746 36.956 24.694 6.192 14.946 2.77 32.15-8.67 43.59l-188.918 188.922 189.218 189.216c11.44 11.442 14.862 28.646 8.67 43.592-6.192 14.948-20.776 24.694-36.956 24.694h-647.998v341.654c0 22.090-17.908 39.998-40 39.998zM208 498.406h551.428l-149.218-149.216c-15.622-15.622-15.622-40.95 0-56.568l148.918-148.922h-551.128v354.706z",pin:"M512 959.916c-13.36 0-25.84-6.672-33.262-17.782l-242.080-362.324c-0.12-0.176-0.236-0.356-0.354-0.536-36.394-54.5-55.63-118.042-55.63-183.804 0-182.696 148.632-331.324 331.326-331.324 182.696 0 331.328 148.628 331.328 331.324 0 60.71-16.554 119.98-47.906 171.652-0.758 1.528-1.618 3.016-2.578 4.45l-5.786 8.664c-0.054 0.082-0.112 0.164-0.168 0.246-0.042 0.070-0.104 0.16-0.148 0.23l-241.484 361.426c-7.422 11.106-19.898 17.778-33.258 17.778zM303.458 535.784l0.026 0.040c0.038 0.054 0.158 0.238 0.194 0.292l208.324 311.796 212.374-317.86c0.376-0.696 0.778-1.382 1.198-2.062 24.7-39.708 37.758-85.532 37.758-132.52 0-138.582-112.746-251.324-251.328-251.324s-251.326 112.742-251.326 251.324c0 50.054 14.674 98.39 42.432 139.782 0.114 0.176 0.232 0.356 0.348 0.532zM512 304.4c49.98 0 90.64 40.66 90.64 90.64 0 49.976-40.66 90.636-90.64 90.636s-90.64-40.66-90.64-90.636c0-49.98 40.66-90.64 90.64-90.64zM512 224.4c-94.242 0-170.64 76.398-170.64 170.64s76.398 170.636 170.64 170.636 170.64-76.394 170.64-170.636-76.398-170.64-170.64-170.64v0z",compass:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm242.4 178.1a22.9 22.9 0 012.9 28.9L574.9 571.7l-3.2 3.2-273.3 182.4a22.9 22.9 0 01-31.7-31.7l181-271.6c1.7-2.5 3.8-4.6 6.3-6.3l271.6-181c9-6 21.1-4.9 28.8 2.8zM483.2 483.3l-115 172.4 172.5-115-57.5-57.4z",globe:"M533.6 1.6a144.2 144.2 0 00-43.2 0A511.7 511.7 0 000 512.6 511.7 511.7 0 00512 1024c282.8 0 512-229 512-511.4a511.7 511.7 0 00-490.4-511zM930 467H749c-3.6-105.7-20-204.7-47.2-282.5a494.4 494.4 0 00-24.2-58.2 419.3 419.3 0 01131.8 89.3A416.7 416.7 0 01930.2 467zM512 931.5c-75.3 0-137.3-163.3-145.4-373.3h290.8c-8.1 210-70.1 373.3-145.4 373.3zM366.5 467c7.4-200.2 63.7-358.5 134-374.3a406.8 406.8 0 0123 0c70.3 15.9 126.6 174.1 134 374.3h-291zM214.6 215.5A420.7 420.7 0 01346.4 126c-8.7 17.7-16.9 37.1-24.2 58.2-27.1 78-43.6 177-47.2 282.5H94a416.7 416.7 0 01120.7-251.3zM93.9 558.2H275c3.8 104.8 20.2 203 47 280.3a488.6 488.6 0 0025.8 61 420.4 420.4 0 01-133.3-89.9A416.7 416.7 0 0193.9 558.2zm715.5 251.4a420.4 420.4 0 01-133.3 90c9.3-18.4 18-38.8 25.7-61.1 27-77.4 43.3-175.5 47-280.3h181.3a416.7 416.7 0 01-120.7 251.4z",location:"M1024 512a512 512 0 10-512.1 512C643 1024 774 974 874 874s150-231 150-362zM809.4 809.4a417.4 417.4 0 01-251.7 120.7v-153a45.7 45.7 0 00-91.5 0v153a417 417 0 01-251.6-120.7A417.7 417.7 0 0194 557.7h153a45.7 45.7 0 000-91.5h-153a417.3 417.3 0 01120.7-251.6A417.5 417.5 0 01466.2 93.8v153a45.7 45.7 0 0091.4 0v-153a417.4 417.4 0 01251.8 120.7A417.5 417.5 0 01930 466.2H777a45.7 45.7 0 000 91.4h153a417.3 417.3 0 01-120.7 251.7v.1z",search:"M218 670a318 318 0 0 1 0-451 316 316 0 0 1 451 0 318 318 0 0 1 0 451 316 316 0 0 1-451 0m750 240L756 698a402 402 0 1 0-59 60l212 212c16 16 42 16 59 0 16-17 16-43 0-60",zoom:"M220 670a316 316 0 0 1 0-450 316 316 0 0 1 450 0 316 316 0 0 1 0 450 316 316 0 0 1-450 0zm749 240L757 698a402 402 0 1 0-59 59l212 212a42 42 0 0 0 59-59zM487 604a42 42 0 0 1-84 0V487H286a42 42 0 1 1 0-84h117V286a42 42 0 1 1 84 0v117h117a42 42 0 0 1 0 84H487v117z",zoomout:"M757 698a402 402 0 1 0-59 59l212 212a42 42 0 0 0 59-59L757 698zM126 445a316 316 0 0 1 319-319 316 316 0 0 1 318 319 316 316 0 0 1-318 318 316 316 0 0 1-319-318zm160 42a42 42 0 1 1 0-84h318a42 42 0 0 1 0 84H286z",zoomreset:"M148 560a318 318 0 0 0 522 110 316 316 0 0 0 0-450 316 316 0 0 0-450 0c-11 11-21 22-30 34v4h47c25 0 46 21 46 46s-21 45-46 45H90c-13 0-25-6-33-14-9-9-14-20-14-33V156c0-25 20-45 45-45s45 20 45 45v32l1 1a401 401 0 0 1 623 509l212 212a42 42 0 0 1-59 59L698 757A401 401 0 0 1 65 570a42 42 0 0 1 83-10z",timer:"M571.5 0a42.7 42.7 0 010 85.3h-16.7l-.2 53.1a441.6 441.6 0 01221.2 84.9l44.7-44.6a42.7 42.7 0 0160.3 60.3l-41.5 41.5a443.8 443.8 0 11-370-142l.1-53.2H452A42.7 42.7 0 01452 0h119.5zM512 221.7a356 356 0 00-253.5 105 356 356 0 00-105 253.5 356 356 0 00105 253.5 356 356 0 00253.5 105 356 356 0 00253.5-105 356.2 356.2 0 00105-253.5 356 356 0 00-105-253.5 356 356 0 00-253.5-105zm-.1 52.7a42.7 42.7 0 0142.6 42.6v206.6a68.2 68.2 0 0125.3 47.3l.2 5.8a68.2 68.2 0 11-110.8-53.4V317a42.7 42.7 0 0142.7-42.6z",time:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm0 54.9a45.7 45.7 0 0145.7 45.7v280H759a45.7 45.7 0 010 91.4H512c-6.1 0-12-1.2-17.4-3.4l-.4-.2-2-1c-.7-.3-1.4-.5-2-.9l-.7-.4-3-1.9-.4-.2c-12-8.2-19.8-22-19.8-37.7V192a45.7 45.7 0 0145.7-45.7z",lightning:"M320.022 1022.644c-7.408 0-14.852-2.052-21.44-6.238-15.292-9.714-22.144-28.494-16.706-45.774l115.186-365.908-214.552-52.57c-14.714-3.606-26.128-15.214-29.486-29.988-3.356-14.772 1.92-30.174 13.632-39.786l576-472.662c14.458-11.864 35.208-12.126 49.962-0.626 14.752 11.496 19.568 31.682 11.594 48.602l-171.202 363.256 208.648 51.756c14.29 3.544 25.476 14.652 29.124 28.914s-0.834 29.376-11.668 39.344l-512 471.112c-7.586 6.984-17.308 10.568-27.092 10.568zM279.236 493.49l178.314 43.69c10.74 2.632 19.912 9.59 25.336 19.226s6.62 21.086 3.298 31.636l-83.030 263.76 347.066-319.352-183.82-45.596c-11.63-2.884-21.356-10.832-26.498-21.656-5.144-10.822-5.164-23.382-0.054-34.22l116.31-246.788-376.922 309.3z",lightningoff:"M310 374L76 150a37 37 0 0 1 0-54c15-14 41-14 56 0l816 778c16 15 16 39 0 54a41 41 0 0 1-56 0L666 712l-57-54-242-230-57-54zm-32 28l57 54-44 38 115 29 78 76-75 254 169-165 57 54-279 271c-8 7-17 11-26 11-7 0-14-2-20-6a41 41 0 0 1-16-46l109-367-203-52c-14-4-25-16-28-30-4-15 1-31 13-40l93-81zm124-108L731 9c13-12 33-12 47-1 14 12 19 32 11 49L627 421l198 52c13 4 24 15 27 29 4 14-1 29-11 39l-89 87-56-54 42-41-118-31-80-76 109-242-190 165-57-55z",dashboard:"M512 85.3a512 512 0 01361 875c-99.5-44-225-70.4-361.6-70.4-136.1 0-261.4 26.2-360.8 70A512 512 0 01512 85.4zm0 91.5c-112.4 0-218 43.7-297.4 123.1A417.8 417.8 0 0091.4 597.3c0 93 30 181.5 85.5 254.2 101-34.8 215.3-53 334.5-53 119.6 0 234.2 18.3 335.5 53.4a417.3 417.3 0 0085.7-254.6c0-112.3-43.8-218-123.2-297.4a417.5 417.5 0 00-275-122.6l-22.4-.5zm219.7 115.7a45.7 45.7 0 0116.7 62.4L580.4 646c6.5 17.1 6.7 36.6-.6 54.3l-4.3 8.7A73.1 73.1 0 11501.3 600l168-291a45.7 45.7 0 0162.4-16.6z",hourglass:"M511.926 801.946c-22.090 0-40-17.906-40-40v0c0-22.090 17.91-40 40-40v0c22.090 0 40.004 17.91 40.004 40v0c0 22.094-17.914 40-40.004 40v0zM831.682 915.242c0.192 1.582 0.318 3.186 0.318 4.82 0 22.090-17.908 40-40 40h-560c-22.092 0-40-17.914-40-40 0-2.438 0.252-4.812 0.67-7.128 2.36-53.636 18.034-105.7 45.852-151.554 0.734-1.476 1.562-2.912 2.492-4.296l5.582-8.364c0.054-0.080 0.11-0.158 0.164-0.238 0.042-0.068 0.098-0.156 0.144-0.222l157.704-236.036-158.5-237.228c-0.116-0.17-0.23-0.342-0.34-0.516-32.842-49.178-51.11-105.994-53.368-165.044-0.238-1.762-0.402-3.546-0.402-5.374 0-22.090 17.908-40 40-40h560c22.092 0 40 17.914 40 40 0 2.056-0.204 4.064-0.504 6.038-2.194 54.020-17.886 106.48-45.894 152.648-0.734 1.472-1.562 2.91-2.492 4.294l-5.582 8.366c-0.054 0.078-0.11 0.156-0.164 0.236-0.042 0.068-0.098 0.154-0.144 0.222l-157.734 236.082 158.468 237.182c0.116 0.168 0.23 0.344 0.34 0.516 32.946 49.33 51.226 106.346 53.39 165.596zM749.958 144.060h-475.99c6.138 31.304 18.384 61.124 36.354 87.916 0.118 0.17 0.23 0.344 0.342 0.514l0.024 0.038c0.036 0.054 0.15 0.23 0.186 0.284l54.286 81.25h293.596l58.196-87.1c0.366-0.67 0.75-1.334 1.154-1.99 15.492-24.916 26.228-52.324 31.852-80.912zM497.528 512.178l-0.032 0.046 14.426 21.592 93.378-139.756h-186.692l78.92 118.118zM305.96 799.156c-15.498 24.91-26.234 52.318-31.856 80.906h476.052c-6.138-31.304-18.384-61.122-36.354-87.918-0.118-0.168-0.23-0.344-0.342-0.512l-0.024-0.040c-0.036-0.050-0.15-0.23-0.186-0.282l-140.242-209.902-28.98 43.374c-7.166 10.72-19.21 17.162-32.11 17.162-12.896 0-24.942-6.442-32.11-17.166l-28.76-43.044-143.938 215.428c-0.36 0.674-0.744 1.338-1.15 1.994z",play:"M878.78 477.856l-591.884-341.722c-9.464-5.464-18.426-8.050-26.386-8.048-19.516 0.002-33.002 15.546-33.002 42.338v683.446c0 26.792 13.482 42.338 33.002 42.338 7.96 0 16.924-2.586 26.386-8.048l591.884-341.722c32.664-18.864 32.664-49.724 0-68.582z",playnext:"M222 136l513 342 12 10V192a64 64 0 01128 0v640a64 64 0 01-128 0V536l-12 10-513 342c-8 5-16 8-23 8-17 0-28-16-28-42V170c0-26 11-42 28-42 7 0 15 3 23 8z",playback:"M823 136L311 478l-12 10V192a64 64 0 00-128 0v640a64 64 0 10128 0V536l12 10 512 342c8 5 16 8 23 8 17 0 29-16 29-42V170c0-26-12-42-29-42-7 0-15 3-23 8z",stop:"M1024 512A512 512 0 100 512a512 512 0 001024 0zM215 809a418 418 0 010-594 418 418 0 01594 0 418 418 0 010 594 418 418 0 01-594 0zm471-78H338c-25 0-45-20-45-45V338c0-25 20-45 45-45h348c25 0 45 20 45 45v348c0 25-20 45-45 45z",stopalt:"M894 85H130c-25 0-45 20-45 45v764c0 25 20 45 45 45h764c25 0 45-20 45-45V130c0-25-20-45-45-45z",rewind:"m631.8 642.6 345 245.4c7.7 5.4 15 8 21.4 8 15.9 0 26.8-15.5 26.8-42.3V170.3c0-26.8-11-42.3-26.8-42.3-6.4 0-13.7 2.6-21.4 8l-345 245.4v-211c0-26.9-10.9-42.4-26.8-42.4-6.4 0-13.7 2.6-21.4 8L129 459.4V192a64 64 0 0 0-128 0v640a64 64 0 0 0 128 0V564.6L583.6 888c7.7 5.4 15 8 21.4 8 15.9 0 26.8-15.5 26.8-42.3v-211Z",fastforward:"M398.2 386.4 53.2 141c-7.7-5.4-15-8-21.4-8C15.9 133 5 148.5 5 175.3v683.4C5 885.5 16 901 31.8 901c6.4 0 13.7-2.6 21.4-8l345-245.4v211c0 26.9 11 42.4 26.8 42.4 6.4 0 13.7-2.6 21.4-8L901 569.6V837a64 64 0 0 0 128 0V197a64 64 0 0 0-128 0v267.4L446.4 141c-7.7-5.4-15-8-21.4-8-15.9 0-26.8 15.5-26.8 42.3v211Z",email:"M960.032 268.004c0.748-10.040-2.246-20.364-9.226-28.684-5.984-7.132-13.938-11.62-22.394-13.394-0.13-0.026-0.268-0.066-0.396-0.092-1.082-0.22-2.172-0.376-3.272-0.5-0.25-0.032-0.492-0.080-0.742-0.102-1.028-0.096-2.052-0.136-3.090-0.156-0.292-0.002-0.582-0.042-0.876-0.042h-816.008c-21.416 0-38.848 16.844-39.898 38-0.034 0.628-0.092 1.256-0.096 1.89 0 0.034-0.006 0.074-0.006 0.114 0 0.050 0.008 0.102 0.008 0.152v495.692c0 0.054-0.008 0.106-0.008 0.156 0 22.090 17.91 40 40 40h816.004c13.808 0 25.98-6.996 33.17-17.636 0.1-0.148 0.182-0.312 0.28-0.458 0.606-0.93 1.196-1.868 1.722-2.84 0.046-0.082 0.080-0.172 0.124-0.258 2.992-5.604 4.704-12.008 4.704-18.804v0 0-493.038zM144.032 350.156l339.946 281.188c6.568 6.434 14.918 10.168 23.564 11.122 0.16 0.024 0.32 0.050 0.48 0.066 0.838 0.082 1.676 0.114 2.518 0.14 0.496 0.020 0.994 0.058 1.492 0.058s0.996-0.042 1.492-0.058c0.842-0.028 1.68-0.058 2.518-0.14 0.16-0.016 0.32-0.042 0.48-0.066 8.646-0.958 16.996-4.688 23.564-11.122l339.946-281.206v370.894h-736v-370.876zM215.066 305.030h593.91l-296.946 245.422-296.964-245.422z",link:"M743.52 529.234c5.616-5.616 83.048-83.046 88.462-88.46 30.944-32.778 47.97-75.636 47.97-120.792 0-47.048-18.304-91.26-51.542-124.484-33.228-33.22-77.43-51.516-124.458-51.516-45.024 0-87.792 16.94-120.536 47.72l-104.458 104.456c-30.792 32.738-47.734 75.512-47.734 120.548 0 41.916 14.576 81.544 41.248 113.196 3.264 3.876 6.666 7.664 10.292 11.29 4.258 4.258 8.704 8.262 13.304 12.022 0.054 0.080 0.096 0.152 0.148 0.232 9.572 7.308 15.778 18.804 15.778 31.776 0 22.094-17.914 40-40.004 40-8.542 0-16.442-2.696-22.938-7.26-2.746-1.93-20.622-17.43-30.35-28.050-0.008-0.010-0.018-0.018-0.026-0.028-4.992-5.432-13.234-15.23-18.552-22.65s-16.556-25.872-17.036-26.736c-0.7-1.262-2.974-5.526-3.422-6.39-0.69-1.334-6.118-12.67-6.114-12.67-14.342-31.96-22.332-67.4-22.332-104.728 0-60.826 21.198-116.648 56.58-160.544 0.252-0.314 4.61-5.594 6.594-7.866 0.304-0.35 5.038-5.636 7.16-7.874 0.252-0.268 105.86-105.874 106.128-106.126 45.902-43.584 107.958-70.314 176.264-70.314 141.382 0 255.998 114.5 255.998 256 0 68.516-26.882 130.688-70.652 176.61-0.144 0.148-109.854 109.546-112.090 111.528-0.958 0.848-5.072 4.352-5.072 4.352-6.448 5.434-13.132 10.592-20.1 15.378 0.412-6.836 0.644-13.702 0.644-20.6 0-26.46-3.108-52.206-8.918-76.918l-0.236-1.102zM616.144 767.82c35.382-43.896 56.58-99.718 56.58-160.544 0-37.328-7.99-72.768-22.332-104.728 0.004 0 0.006-0.002 0.010-0.004-0.258-0.576-0.538-1.14-0.8-1.714-0.686-1.498-2.894-6.112-3.296-6.93-0.668-1.344-2.952-5.732-3.386-6.604-3.48-6.982-8.708-15.126-9.49-16.366-0.498-0.792-0.996-1.58-1.502-2.364-0.834-1.29-15.364-22.066-26.656-34.466-0.008-0.010-0.018-0.018-0.026-0.028-7.056-8.448-24.932-24.198-30.35-28.050-6.47-4.602-14.396-7.26-22.938-7.26-22.090 0-40.004 17.906-40.004 40 0 12.97 6.206 24.466 15.778 31.776 0.052 0.080 0.094 0.152 0.148 0.232 4.602 3.76 20.334 19.434 23.598 23.31 26.672 31.65 41.248 71.28 41.248 113.196 0 45.038-16.944 87.81-47.734 120.548l-104.458 104.456c-32.742 30.782-75.512 47.72-120.536 47.72-47.028 0-91.228-18.294-124.458-51.516-33.236-33.224-51.542-77.436-51.542-124.484 0-45.154 17.028-88.014 47.97-120.792 5.414-5.414 40.812-40.812 68.958-68.958 7.176-7.176 13.888-13.886 19.504-19.502v-0.002c-0.356-1.562-0.246-1.096-0.246-1.096-5.81-24.712-8.918-50.458-8.918-76.918 0-6.898 0.232-13.764 0.644-20.6-6.966 4.788-20.1 15.33-20.1 15.33-0.734 0.62-9.518 8.388-11.68 10.45-0.16 0.154-105.338 105.33-105.482 105.478-43.77 45.922-70.652 108.094-70.652 176.61 0 141.5 114.616 256 255.998 256 68.306 0 130.362-26.73 176.264-70.314 0.27-0.254 105.876-105.86 106.128-106.126 0.004-0.002 13.506-15.426 13.758-15.74z",paperclip:"M824.25 369.354c68.146-70.452 67.478-182.784-2.094-252.354-70.296-70.296-184.266-70.296-254.558 0-0.014 0.012-0.028 0.026-0.042 0.042-0.004 0.002-0.006 0.004-0.010 0.008l-433.144 433.142c-0.036 0.036-0.074 0.068-0.11 0.106-0.054 0.052-0.106 0.11-0.16 0.162l-2.668 2.67c-0.286 0.286-0.528 0.596-0.8 0.888-43.028 44.88-66.664 103.616-66.664 165.986 0 64.106 24.962 124.376 70.292 169.704 45.328 45.33 105.598 70.292 169.706 70.292 50.612 0 98.822-15.57 139.186-44.428 4.932-1.952 9.556-4.906 13.544-8.894l16.802-16.802c0.056-0.056 0.116-0.112 0.172-0.168 0.038-0.038 0.074-0.076 0.112-0.116l289.010-289.014c15.622-15.618 15.62-40.942 0-56.56s-40.948-15.62-56.566 0l-289.124 289.122c-62.482 62.484-163.792 62.484-226.274 0-62.484-62.482-62.484-163.79 0-226.272h-0.002l433.134-433.12c0.058-0.060 0.112-0.122 0.172-0.18 38.99-38.99 102.43-38.99 141.42 0 38.992 38.99 38.99 102.432 0 141.422-0.058 0.060-0.122 0.114-0.18 0.17l0.006 0.006-280.536 280.534c-0.002-0.002-0.002-0.004-0.004-0.006l-79.978 79.98c-0.010 0.010-0.016 0.020-0.028 0.028-0.008 0.012-0.018 0.018-0.028 0.028l-0.064 0.062c-15.622 15.624-40.944 15.624-56.562 0-15.624-15.62-15.624-40.944-0.002-56.566l0.062-0.062c0.010-0.010 0.018-0.020 0.028-0.028 0.008-0.012 0.020-0.018 0.028-0.028l79.98-79.978c-0.002-0.002-0.004-0.002-0.006-0.004l136.508-136.512c15.622-15.62 15.62-40.944-0.002-56.562-15.618-15.62-40.946-15.62-56.564 0l-219.342 219.344c-1.284 1.284-2.42 2.652-3.494 4.052-40.4 47.148-38.316 118.184 6.322 162.824 44.64 44.638 115.674 46.722 162.82 6.324 1.402-1.072 2.772-2.21 4.054-3.494l2.83-2.832c0.002 0 0.002 0 0.002 0s0 0 0 0l360.54-360.54c0.058-0.056 0.12-0.114 0.18-0.172 0.050-0.050 0.098-0.106 0.15-0.158l0.994-0.994c0.34-0.338 0.63-0.702 0.952-1.052z",box:"M960.016 408.080c0-0.672-0.046-1.342-0.078-2.014-0.032-0.594-0.044-1.19-0.102-1.782-0.068-0.726-0.186-1.448-0.294-2.17-0.080-0.54-0.144-1.080-0.248-1.616-0.138-0.724-0.326-1.442-0.506-2.16-0.134-0.534-0.252-1.070-0.408-1.6-0.196-0.662-0.436-1.314-0.668-1.968-0.204-0.582-0.396-1.166-0.628-1.74-0.226-0.56-0.494-1.11-0.75-1.662-0.3-0.656-0.598-1.312-0.934-1.954-0.242-0.454-0.514-0.894-0.774-1.342-0.414-0.716-0.83-1.43-1.292-2.124-0.256-0.382-0.538-0.752-0.806-1.128-0.514-0.716-1.036-1.428-1.602-2.116-0.090-0.11-0.162-0.226-0.254-0.336-0.244-0.292-0.516-0.542-0.768-0.826-0.534-0.6-1.068-1.198-1.644-1.772-0.48-0.478-0.982-0.924-1.48-1.376-0.354-0.316-0.674-0.658-1.040-0.964l-405.788-335.666c-6.568-6.436-14.918-10.166-23.564-11.124-0.16-0.022-0.32-0.050-0.48-0.066-0.838-0.082-1.676-0.11-2.518-0.14-0.496-0.020-0.994-0.058-1.492-0.058s-0.996 0.040-1.492 0.058c-0.842 0.028-1.68 0.058-2.518 0.14-0.16 0.016-0.32 0.044-0.48 0.066-8.646 0.956-16.996 4.688-23.564 11.124l-405.662 335.542c-7.13 5.982-11.616 13.93-13.392 22.382-0.032 0.14-0.070 0.278-0.1 0.42-0.212 1.072-0.37 2.152-0.494 3.238-0.032 0.258-0.078 0.51-0.106 0.77-0.086 0.89-0.114 1.786-0.138 2.68-0.014 0.39-0.052 0.78-0.054 1.17 0 0.040-0.006 0.074-0.006 0.114v204.856c-0.958 12.434 3.854 25.128 14.134 33.754l405.662 335.54c6.568 6.438 14.918 10.168 23.564 11.124 0.16 0.020 0.32 0.050 0.48 0.066 0.838 0.082 1.676 0.114 2.518 0.14 0.496 0.020 0.994 0.058 1.492 0.058 0.054 0 0.11-0.008 0.162-0.008 0.042 0 0.084 0.008 0.126 0.008 0.342 0 0.672-0.042 1.012-0.050 0.062-0.004 0.126-0.008 0.192-0.008 0.134-0.004 0.27-0.020 0.402-0.024 10.602-0.422 20.136-4.938 27.054-12.046l404.526-334.624c0.084-0.066 0.166-0.136 0.248-0.204l0.12-0.098c0.17-0.144 0.314-0.304 0.48-0.45 0.814-0.704 1.614-1.43 2.37-2.2 0.296-0.3 0.562-0.624 0.85-0.934 0.602-0.652 1.2-1.308 1.756-2 0.3-0.372 0.566-0.758 0.852-1.136 0.504-0.672 1.002-1.344 1.462-2.046 0.242-0.368 0.458-0.75 0.686-1.124 0.458-0.754 0.908-1.508 1.316-2.292 0.164-0.312 0.304-0.636 0.46-0.954 0.426-0.872 0.832-1.746 1.196-2.652 0.092-0.23 0.168-0.464 0.256-0.696 0.376-0.996 0.728-2 1.026-3.032 0.042-0.148 0.074-0.296 0.114-0.442 0.306-1.102 0.578-2.218 0.79-3.356 0.016-0.082 0.024-0.164 0.038-0.246 0.212-1.184 0.382-2.378 0.49-3.598v0c0.1-1.156 0.176-2.32 0.176-3.5v-204.86c0.024-0.318 0.022-0.638 0.040-0.958 0.026-0.668 0.074-1.338 0.074-2.008zM143.89 493.202l328.14 271.42v103.902l-328.14-271.18v-104.142zM552.032 764.402l327.868-271.212v103.88l-327.868 270.972v-103.64zM511.898 122.66l345.348 285.42-345.348 285.42-345.374-285.42 345.374-285.42z",structure:"M954.324 833.3c0.208-0.558 0.388-1.128 0.586-1.692 0.3-0.868 0.608-1.734 0.882-2.61 0.234-0.746 0.444-1.5 0.66-2.25 0.212-0.734 0.432-1.464 0.624-2.204 0.204-0.766 0.378-1.54 0.562-2.308 0.18-0.766 0.366-1.528 0.528-2.292 0.146-0.692 0.272-1.386 0.402-2.082 0.168-0.89 0.332-1.778 0.476-2.668 0.090-0.566 0.164-1.136 0.244-1.704 0.148-1.058 0.29-2.118 0.404-3.18 0.042-0.422 0.080-0.852 0.12-1.274 0.118-1.23 0.212-2.46 0.282-3.696 0.018-0.304 0.030-0.606 0.042-0.906 0.062-1.36 0.098-2.718 0.104-4.082 0-0.114 0.008-0.226 0.008-0.34 0-0.128-0.010-0.258-0.010-0.39-0.006-1.368-0.042-2.734-0.104-4.102-0.014-0.296-0.030-0.594-0.044-0.89-0.070-1.246-0.166-2.492-0.284-3.738-0.042-0.434-0.084-0.864-0.128-1.292-0.116-1.050-0.25-2.098-0.4-3.144-0.088-0.628-0.18-1.258-0.282-1.882-0.13-0.8-0.276-1.598-0.428-2.394-0.162-0.868-0.332-1.73-0.518-2.594-0.116-0.524-0.24-1.046-0.364-1.57-0.264-1.128-0.542-2.25-0.846-3.36-0.070-0.254-0.144-0.504-0.214-0.754-11.38-40.382-48.464-69.996-92.488-69.996-3.066 0-6.096 0.16-9.088 0.442l-264.576-458.262c21.080-29.698 24.3-70.13 4.9-103.732-12.596-21.816-32.458-36.812-54.764-43.724-0.062-0.020-0.124-0.036-0.186-0.054-1.394-0.43-2.798-0.83-4.21-1.196-0.296-0.076-0.596-0.142-0.894-0.216-1.208-0.3-2.422-0.586-3.642-0.84-0.384-0.082-0.774-0.148-1.16-0.224-1.168-0.228-2.338-0.444-3.514-0.626-0.384-0.060-0.776-0.112-1.162-0.168-1.208-0.174-2.416-0.332-3.63-0.46-0.35-0.038-0.7-0.066-1.048-0.1-1.27-0.12-2.54-0.218-3.814-0.29-0.32-0.018-0.642-0.032-0.964-0.044-1.294-0.058-2.594-0.094-3.892-0.1-0.166 0-0.328-0.012-0.492-0.012-0.19 0-0.376 0.014-0.564 0.014-1.21 0.008-2.42 0.040-3.63 0.092-0.494 0.022-0.986 0.046-1.478 0.074-0.992 0.060-1.986 0.136-2.978 0.226-0.722 0.064-1.442 0.134-2.16 0.214-0.696 0.080-1.392 0.17-2.090 0.266-1.014 0.136-2.026 0.286-3.032 0.452-0.352 0.060-0.704 0.124-1.054 0.19-44.97 8.028-79.122 47.302-79.122 94.582 0 20.756 6.602 39.958 17.79 55.67l-264.58 458.26c-2.954-0.274-5.94-0.434-8.962-0.434-53.078 0-96.11 43.032-96.11 96.11 0 53.082 43.032 96.11 96.11 96.11 38.8 0 72.208-23.004 87.386-56.11l529.202-0.004c0.138 0.304 0.292 0.606 0.436 0.91 0.226 0.48 0.456 0.958 0.69 1.434 0.474 0.968 0.966 1.93 1.476 2.882 0.214 0.402 0.432 0.8 0.65 1.2 0.314 0.566 0.604 1.14 0.93 1.708 0.284 0.488 0.59 0.958 0.88 1.442 0.122 0.2 0.244 0.398 0.37 0.602 27.086 44.372 84.766 59.278 130.040 33.136 18.864-10.89 32.624-27.214 40.478-45.852 0.054-0.132 0.104-0.266 0.158-0.398 0.518-1.248 1.020-2.506 1.486-3.776zM238.414 744.282l264.542-458.204c0.424 0.042 0.85 0.064 1.276 0.098 0.668 0.056 1.334 0.112 2.004 0.152 0.652 0.040 1.306 0.066 1.96 0.092 1.122 0.046 2.244 0.076 3.368 0.084 0.146 0.002 0.292 0.012 0.438 0.012 0.168 0 0.334-0.012 0.502-0.014 1.436-0.004 2.874-0.040 4.31-0.108 0.088-0.006 0.176-0.010 0.262-0.014 1.376-0.070 2.75-0.168 4.124-0.296l264.596 458.298c-3.48 4.894-6.514 10.122-9.042 15.636h-529.226c-2.546-5.55-5.602-10.814-9.114-15.736z",cpu:"M392.016 672.016h240.032c22.092 0 40-17.908 40-40v-240.032c0-22.092-17.908-40-40-40h-240.032c-22.092 0-40 17.908-40 40v240.032c0 22.092 17.908 40 40 40zM432.016 431.984h160.032v160.032h-160.032v-160.032zM864.032 424h71.98c22.094 0 40.004-17.906 40.004-40 0-22.092-17.906-40-40-40h-71.984v-143.968c0-22.092-17.908-40-40-40h-144v-72.012c0-22.094-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v72.016h-176v-72.012c0-22.094-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v72.016h-144c-22.092 0-40 17.908-40 40v143.968h-71.984c-22.094 0-40 17.908-40 40s17.91 40 40 40h71.984v176h-71.984c-22.094 0-40 17.908-40 40s17.91 40 40 40h71.984v144.030c0 22.092 17.908 40 40 40h144v71.954c0 22.094 17.906 40 40 40s40-17.91 40-40v-71.954h176v71.954c0 22.094 17.906 40 40 40s40-17.91 40-40v-71.954h144c22.092 0 40-17.908 40-40v-144.030h71.98c22.094 0 40.004-17.906 40.004-40 0-22.092-17.906-40-40-40h-71.984v-176zM784.032 784.032h-143.692c-0.104 0-0.204-0.016-0.308-0.016s-0.206 0.016-0.308 0.016h-127.382c-0.104 0-0.204-0.016-0.308-0.016s-0.206 0.016-0.308 0.016h-127.382c-0.104 0-0.204-0.016-0.308-0.016s-0.206 0.016-0.308 0.016h-143.696v-544h544v544z",memory:"M320.032 416.032v-152.968c0-22.094 17.91-40 40-40 22.094 0 40 17.91 40 40.004v152.964c0 22.090-17.906 40-40 40s-40-17.908-40-40zM512 456.032c22.094 0 40-17.91 40-40v-152.964c0-22.094-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v152.968c0 22.092 17.908 40 40 40zM664.032 456.032c22.094 0 40-17.91 40-40v-82.996c0-22.094-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v83c0 22.092 17.906 40 40 40zM864.018 316.616v603.418c0 0.004 0 0.004 0 0.004 0 6.798-1.71 13.198-4.704 18.808-0.044 0.084-0.078 0.172-0.124 0.254-0.524 0.976-1.112 1.914-1.722 2.836-0.098 0.15-0.18 0.312-0.282 0.46-7.188 10.638-19.36 17.634-33.168 17.634h-623.99c-22.090 0-40-17.908-40-40v-343.574c-0.002-0.142-0.022-0.282-0.022-0.426 0-0.142 0.020-0.282 0.022-0.426v-471.574c0-20.34 15.192-37.092 34.838-39.63 1.694-0.216 3.408-0.37 5.162-0.37l411.254 0.052c10.594-0.286 21.282 3.58 29.368 11.668l211.672 212.206c7.906 7.908 11.792 18.298 11.696 28.66zM240.026 144.034v391.998h543.99v-203.27l-188.252-188.728h-355.738zM784.016 880.032v-264h-543.99v264h543.99z",database:"M895.95 221.364c-3.414-87.32-173.972-157.672-383.918-157.672s-380.504 70.352-383.918 157.672h-0.082v578.328c0 88.552 171.918 160.338 384 160.338s384-71.786 384-160.338v-578.328h-0.082zM798.412 430.578c-15.6 11.386-37.69 22.346-63.882 31.696-60.984 21.77-140.002 33.758-222.498 33.758s-161.514-11.988-222.498-33.758c-26.192-9.348-48.282-20.308-63.88-31.696-8.706-6.352-13.646-11.608-16.122-14.874v-92.9c70.29 37.478 179.654 61.566 302.5 61.566s232.21-24.088 302.5-61.566v92.9c-2.476 3.266-7.416 8.522-16.12 14.874zM814.532 514.464v93.24c-2.474 3.266-7.416 8.522-16.12 14.874-15.6 11.386-37.69 22.346-63.882 31.696-60.984 21.77-140.002 33.758-222.498 33.758s-161.514-11.988-222.498-33.758c-26.192-9.348-48.282-20.308-63.88-31.696-8.706-6.352-13.646-11.608-16.122-14.874v-93.24c70.29 37.48 179.654 61.566 302.5 61.566s232.21-24.086 302.5-61.566zM225.652 209.146c15.6-11.386 37.69-22.346 63.88-31.696 60.984-21.77 140.002-33.758 222.498-33.758s161.514 11.988 222.498 33.758c26.192 9.348 48.282 20.308 63.882 31.696 8.704 6.352 13.646 11.608 16.12 14.874v0.026c-2.474 3.266-7.416 8.522-16.12 14.874-15.6 11.386-37.69 22.346-63.882 31.696-60.984 21.77-140.002 33.758-222.498 33.758s-161.514-11.988-222.498-33.758c-26.192-9.348-48.282-20.308-63.88-31.696-8.706-6.352-13.646-11.608-16.122-14.874v-0.026c2.476-3.268 7.418-8.524 16.122-14.874zM798.412 814.578c-15.6 11.386-37.69 22.346-63.882 31.696-60.984 21.77-140.002 33.758-222.498 33.758s-161.514-11.988-222.498-33.758c-26.192-9.348-48.282-20.308-63.88-31.696-8.714-6.36-13.66-11.62-16.13-14.886h0.010v-93.228c70.29 37.48 179.654 61.566 302.5 61.566s232.21-24.086 302.5-61.566v93.228h0.010c-2.474 3.266-7.42 8.526-16.132 14.886z",power:"M320 118.3a45.7 45.7 0 0122.5 85.6 384.6 384.6 0 00-120.8 93.4A380.9 380.9 0 00128 548.6c0 102.5 39.9 199 112.4 271.5A381.5 381.5 0 00512 932.5c102.5 0 199-39.9 271.5-112.4a381.5 381.5 0 00112.4-271.5c0-98.1-36.5-190.6-103.1-262l-2-2-9.4-9.5a384.2 384.2 0 00-100-71.2 45.6 45.6 0 0139.6-82.2l.6.3h.2l.1.1h.1l2 1 4 2 1.9 1 3.5 1.9a480.6 480.6 0 0144.9 27l2 1.3v-.3.1a475.4 475.4 0 11-545.3 6.2l3.6-2.6v.1a471.4 471.4 0 0151.7-31.7l3.7-2 1.4-.7.3-.2 6.4-3.1.1-.1h.1l.7-.3c5.2-2.1 11-3.4 17-3.4zM511.8 0c25 0 45.3 20 45.7 45v421.3a45.7 45.7 0 01-91.4.7V45.7A45.7 45.7 0 01511.9 0z",outbox:"M960.062 616v304c0 1.382-0.070 2.746-0.208 4.090-2.046 20.172-19.080 35.91-39.792 35.91h-816c-22.090 0-40-17.906-40-40v-304c0-22.090 17.91-40 40-40s40 17.91 40 40v264h736v-264c0-22.090 17.91-40 40-40s40 17.912 40 40zM664.732 200.168l-124.41-124.41c-0.014-0.014-0.024-0.028-0.038-0.042-3.57-3.57-7.664-6.284-12.018-8.222-5.316-2.368-11.028-3.54-16.742-3.47-0.14-0.002-0.276-0.020-0.414-0.020-13.552 0-25.512 6.756-32.748 17.072l-119.1 119.092c-15.622 15.62-15.618 40.948 0.002 56.57 15.622 15.62 40.95 15.62 56.568 0l55.276-55.276v462.54c0 22.094 17.912 40 40.002 40 22.092 0 40-17.91 40-40v-464.314l57.052 57.052c15.622 15.624 40.948 15.62 56.568 0 15.628-15.624 15.628-40.952 0.002-56.572z",share:"M896.006 920c0 22.090-17.91 40-40 40h-688.006c-22.090 0-40-17.906-40-40v-549.922c-0.838-3.224-1.33-6.588-1.33-10.072 0-22.090 17.908-40.004 40-40.004h178.66c22.092 0.004 40 17.914 40 40.004 0 22.088-17.908 40-40 40h-137.33v479.996h607.998v-479.996h-138.658c-22.090 0-40-17.912-40-40 0-22.090 17.906-40.004 40-40.004h178.658c22.090 0 40 17.91 40 40v559.844c0 0.050 0.008 0.102 0.008 0.154zM665.622 200.168l-124.452-124.45c-8.042-8.042-18.65-11.912-29.186-11.674-1.612-0.034-3.222 0-4.828 0.16-0.558 0.054-1.098 0.16-1.648 0.238-0.742 0.104-1.484 0.192-2.218 0.338-0.656 0.13-1.29 0.31-1.934 0.472-0.622 0.154-1.244 0.292-1.86 0.476-0.64 0.196-1.258 0.436-1.886 0.66-0.602 0.216-1.208 0.414-1.802 0.66-0.598 0.248-1.17 0.54-1.754 0.814-0.598 0.282-1.202 0.546-1.788 0.86-0.578 0.312-1.13 0.664-1.694 1-0.552 0.332-1.116 0.644-1.654 1.006-0.67 0.448-1.3 0.942-1.942 1.426-0.394 0.302-0.806 0.576-1.196 0.894-1.046 0.858-2.052 1.768-3.008 2.726l-124.398 124.39c-15.622 15.62-15.618 40.948 0.002 56.57 15.622 15.62 40.95 15.62 56.568 0l56.164-56.166v439.426c0 22.094 17.912 40 40.002 40 22.092 0 40-17.91 40-40v-441.202l57.942 57.942c15.622 15.624 40.948 15.62 56.568 0 15.626-15.618 15.626-40.946 0.002-56.566z",button:"M644.634 802.32c-4.558 5.434-10.254 9.328-16.446 11.672l0.008 0.024-45.628 16.606 27.54 75.66c7.554 20.756-3.148 43.71-23.906 51.266s-43.714-3.146-51.27-23.906l-27.54-75.656-47.63 17.29c-6.020 1.956-12.586 2.518-19.254 1.342-21.75-3.836-36.282-24.582-32.45-46.34l30.57-173.328c2.55-14.476 12.61-25.714 25.458-30.508 0.292-0.118 0.586-0.23 0.878-0.34 0.238-0.084 0.476-0.168 0.718-0.246 12.942-4.624 27.91-2.492 39.196 6.98l134.824 113.13c16.932 14.2 19.144 39.432 4.932 56.354zM960.002 664v-368.082c0-22.092-17.908-40-40-40h-816c-22.092 0-40 17.908-40 40l-0.292 368.238c0 22.092 17.908 40 40 40h240.292c22.092 0 40-17.908 40-40s-17.908-40-40-40h-200.292l0.292-288.238h736v288.082h-200c-22.092 0-40 17.908-40 40s17.908 40 40 40h240c22.092 0 40-17.908 40-40z",form:"M948.362 178.828l-471.082 470.086c-0.24 0.25-0.45 0.52-0.698 0.77-7.82 7.82-18.070 11.722-28.32 11.712-10.25 0.010-20.504-3.892-28.324-11.712-0.262-0.262-0.48-0.546-0.734-0.812l-221.736-221.738c-15.624-15.622-15.624-40.95 0-56.566 15.618-15.622 40.946-15.624 56.57 0l194.224 194.222 443.53-442.528c15.622-15.618 40.95-15.618 56.57 0 15.62 15.62 15.62 40.946 0 56.566zM98.372 128.448c-18.926 0-34.266 15.342-34.266 34.268v699.032c0 18.926 15.34 34.266 34.266 34.266h699.032c18.926 0 34.266-15.34 34.266-34.266v-430.588c0 0 0.002-1.184 0.002-1.788 0-22.090-17.914-40-40.004-40s-40 17.91-40 40c0 0.288 0.002 386.64 0.002 386.64h-607.562v-607.564h600.002c22.090-0.002 40.002-17.906 40.002-40 0-22.090-17.914-40-40.004-40z",check:"M948.598 199.75c-15.622-15.618-40.95-15.618-56.57 0l-535.644 535.644-224.060-224.062c-15.624-15.624-40.954-15.62-56.57 0-15.624 15.62-15.624 40.948 0 56.568l251.574 251.574c0.252 0.266 0.472 0.55 0.734 0.812 7.82 7.82 18.072 11.724 28.322 11.714 10.25 0.010 20.502-3.894 28.322-11.714 0.248-0.248 0.456-0.518 0.698-0.77l563.196-563.202c15.618-15.618 15.618-40.94-0.002-56.564z",batchaccept:"M684 277L271 772l-1 1a40 40 0 0 1-56 5l-1-1L14 610a40 40 0 1 1 52-61l169 142 387-465a40 40 0 0 1 62 51zm340 234c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zm0-216c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zm0 432c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40z",batchdeny:"M1024 512c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zm0-216c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zm0 432c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zM625 236c16 15 16 41 0 56L406 512l220 220a40 40 0 1 1-57 57L349 568 129 788a40 40 0 1 1-57-56l220-220L73 292a40 40 0 0 1 56-57l220 220 219-219c16-16 41-16 57 0z",home:"M948.12 483.624l-407.814-407.754c-7.812-7.808-18.046-11.712-28.282-11.712-10.238 0-20.472 3.904-28.282 11.712l-407.92 407.86c-15.624 15.622-15.624 40.948-0.006 56.57s40.944 15.622 56.568 0.004l19.616-19.612v366.708c0 22.090 17.91 40 40 40h190.696c0.416 0.014 0.82 0.062 1.238 0.062 11.054 0 21.060-4.484 28.3-11.734 7.266-7.244 11.766-17.262 11.766-28.332 0-0.418-0.050-0.822-0.062-1.238v-263.204h176.060v263.934c0 22.090 17.91 40 40 40l191.876 0.124c2.292 0 4.524-0.236 6.708-0.608 0.45-0.074 0.91-0.116 1.356-0.206 0.21-0.044 0.414-0.116 0.628-0.162 17.906-3.972 31.308-19.924 31.308-39.026v-366.492l19.682 19.68c15.622 15.62 40.948 15.616 56.568-0.006s15.618-40.948-0.004-56.568zM791.876 448.272v398.71l-111.874-0.074v-263.876c0-0.020-0.002-0.042-0.002-0.062 0-0.006 0-0.014 0-0.022 0-22.090-17.91-40-40-40h-254.002c-0.556 0-1.1 0.060-1.65 0.084-0.14-0.002-0.274-0.022-0.414-0.022-22.090 0-40 17.91-40 40v264.382h-111.934v-399.392c0-2.286-0.234-4.512-0.604-6.694l280.626-280.584 280.514 280.472c-0.412 2.302-0.66 4.658-0.66 7.078z",admin:"M919.596 847.534h-88.414v-467.716l88.75-0.044c13.688-0.132 26.958-7.25 34.294-19.96 11.044-19.13 4.49-43.596-14.642-54.64l-407.904-235.676c-0.44-0.254-0.894-0.45-1.34-0.684-0.542-0.29-1.084-0.578-1.638-0.84-0.696-0.328-1.4-0.62-2.108-0.904-0.478-0.194-0.954-0.388-1.44-0.56-0.78-0.282-1.564-0.524-2.352-0.754-0.442-0.126-0.878-0.256-1.324-0.37-0.808-0.206-1.618-0.376-2.43-0.528-0.468-0.088-0.934-0.174-1.404-0.246-0.768-0.116-1.534-0.204-2.302-0.274-0.554-0.052-1.108-0.096-1.664-0.124-0.672-0.034-1.34-0.044-2.012-0.044-0.67 0-1.338 0.012-2.010 0.044-0.556 0.030-1.11 0.072-1.664 0.124-0.77 0.070-1.536 0.158-2.302 0.274-0.468 0.072-0.938 0.158-1.402 0.246-0.814 0.152-1.624 0.322-2.432 0.528-0.444 0.114-0.882 0.242-1.322 0.37-0.79 0.23-1.574 0.472-2.356 0.754-0.484 0.172-0.958 0.368-1.438 0.56-0.708 0.286-1.41 0.576-2.11 0.904-0.554 0.262-1.094 0.55-1.636 0.84-0.446 0.234-0.9 0.43-1.34 0.684l-407.906 235.672c-19.128 11.044-25.686 35.51-14.64 54.64 7.34 12.71 20.606 19.828 34.292 19.96v0.044h89.842v467.716h-89.474c-22.090 0-40 17.91-40 40s17.91 40 40 40h128.276c0.402 0.012 0.794 0.060 1.2 0.060s0.796-0.048 1.2-0.060h183.602c0.402 0.012 0.794 0.060 1.2 0.060s0.796-0.048 1.2-0.060h183.602c0.402 0.012 0.794 0.060 1.2 0.060s0.796-0.048 1.2-0.060h313.154c22.098 0 40-17.91 40-40-0.006-22.090-17.914-39.996-40.006-39.996zM751.182 847.534h-105.94v-467.716h105.94v467.716zM252.93 299.816l258.736-149.486 258.738 149.486h-517.474zM565.242 379.816v467.716h-106v-467.716h106zM273.242 379.816h106v467.716h-106v-467.716z",paragraph:"M728.032 96.032h-116.98c-0.026 0-0.050-0.004-0.076-0.004s-0.050 0.004-0.076 0.004h-199.848c-0.026 0-0.050-0.004-0.076-0.004s-0.050 0.004-0.076 0.004h-31.924c-123.712 0-224 100.292-224 224 0 121.032 95.994 219.628 216 223.842v344.158c0 22.092 17.91 40 40 40 22.086 0 40-17.908 40-40v-712h120v712c0 22.092 17.91 40 40 40 22.086 0 40-17.908 40-40v-712h77.056c22.094 0 40-17.91 40-40 0-22.092-17.91-40-40-40z",basket:"M632.254 695.604v-112.016c-0.004-22.092 17.906-40.002 40-40.002 22.090 0.002 40 17.908 40 40.002l-0.004 112.018c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.904-40-40zM352.246 735.604c22.090-0.002 40-17.91 39.996-39.998l0.004-112.018c0-22.094-17.91-40-40-40.002-22.094 0-40.004 17.91-40 40.002v112.016c-0.004 22.096 17.906 40.002 40 40zM512.25 735.604c22.090-0.002 40-17.91 39.996-39.998l0.004-112.018c0-22.094-17.91-40-40-40.002-22.094 0-40.004 17.91-40 40.002v112.016c-0.004 22.096 17.906 40.002 40 40zM950.3 397.424c-7.596-8.686-18.574-13.67-30.114-13.67h-313.284c0.87 5.196 1.346 10.524 1.346 15.966 0 24.608-9.27 47.044-24.494 64.034h290.684l-47.318 351.376-629.908-0.030-47.502-351.346h291.034c-15.224-16.988-24.494-39.426-24.494-64.034 0-5.444 0.476-10.772 1.346-15.966h-313.66c-11.542 0-22.524 4.986-30.12 13.678-7.596 8.694-11.066 20.242-9.52 31.682l51.614 381.742 0.050 0.042c5.832 47.424 46.222 84.158 95.222 84.172l0.054 0.034 601.816-0.034c0.042 0 0.082 0.002 0.124 0.002 49.414 0 90.090-37.34 95.396-85.336l51.258-380.64c1.54-11.44-1.934-22.984-9.53-31.672zM805.492 105.34c-15.622-15.622-40.95-15.624-56.572 0.004l-230.684 230.684c-2.052-0.2-4.132-0.306-6.236-0.306-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64c0-2.652-0.18-5.262-0.494-7.83l229.986-229.98c15.622-15.624 15.616-40.95-0-56.572z",credit:"M376.188 672.062h-112.124c-22.092 0-40-17.908-40-40s17.908-40 40-40h112.124c22.092 0 40 17.908 40 40s-17.908 40-40 40zM960 232.002v560c0 6.8-1.708 13.2-4.704 18.81-0.044 0.082-0.078 0.172-0.124 0.254-0.524 0.974-1.112 1.914-1.722 2.836-0.098 0.15-0.18 0.31-0.282 0.458-7.188 10.64-19.36 17.638-33.168 17.638h-816c-22.090 0-40-17.908-40-40v-559.998c0-20.34 15.192-37.092 34.838-39.628 1.694-0.218 3.408-0.372 5.162-0.372h816c1.754 0 3.468 0.152 5.162 0.372 19.646 2.536 34.838 19.288 34.838 39.63zM144 272.002v80.030h736v-80.030h-736zM880 751.998v-239.966h-736v239.966h736z",shield:"M875.146 148.994c-0.064-0.040-0.116-0.094-0.184-0.132-92.714-52.39-221.036-84.83-362.846-84.83-138.512 0-270.346 34.356-362.51 84.618-0.606 0.33-1.138 0.658-1.608 0.986-11.954 6.918-20.016 19.81-20.016 34.614v451.4c0 12.7 5.938 23.996 15.166 31.32l340.538 281.676c6.568 6.434 14.918 10.168 23.564 11.122 0.16 0.024 0.32 0.050 0.48 0.066 0.838 0.082 1.676 0.114 2.518 0.14 0.496 0.020 0.994 0.058 1.492 0.058s0.996-0.040 1.492-0.058c0.842-0.032 1.68-0.058 2.518-0.14 0.16-0.016 0.32-0.042 0.48-0.066 8.646-0.958 16.996-4.688 23.564-11.122l339.36-280.718c10.326-7.23 17.094-19.2 17.094-32.762v-450.918c0.002-15.254-8.54-28.506-21.102-35.254zM207.984 208.212c36.292-18.168 77.668-32.854 123.356-43.722 57.062-13.576 117.884-20.458 180.778-20.458s123.714 6.882 180.778 20.458c30.186 7.182 58.474 16.040 84.674 26.456l-490.846 490.848-78.738-65.070v-408.512zM511.742 867.75l-163.078-134.77 467.586-467.584v350.69l-304.508 251.664z",beaker:"M848.64 790.56l-208.638-361.374v-252.062h24c22.092 0 40-17.908 40-40s-17.908-40-40-40h-304.002c-22.092 0-40 17.908-40 40s17.908 40 40 40h24v252.066l-208.636 361.37c-44 76.208-8 138.564 80 138.564h513.278c87.998 0 123.998-62.354 79.998-138.564zM464 177.124h96.002l-0.070 273.376 63.872 110.628h-223.678c35.932-62.268 63.872-110.684 63.876-110.692v-273.312zM768.64 849.124h-513.278c-8.28 0-14.186-0.976-17.968-2 1.004-3.792 3.112-9.394 7.25-16.564 0 0 54.598-94.614 109.316-189.436l316.026-0.002 109.374 189.44c4.138 7.168 6.246 12.77 7.25 16.562-3.784 1.024-9.69 2-17.97 2z",thumbsup:"M256.972 768.004c0-8.67-3.156-16.158-9.484-22.534-6.332-6.34-13.836-9.484-22.504-9.458-8.682 0-16.188 3.172-22.516 9.458-6.33 6.344-9.488 13.84-9.488 22.534 0 8.692 3.158 16.186 9.488 22.532 6.328 6.286 13.834 9.458 22.516 9.458 8.668 0.028 16.172-3.118 22.504-9.458 6.328-6.376 9.484-13.868 9.484-22.532zM832.948 480.010c0-17.004-6.478-31.908-19.468-44.734-13.014-12.82-27.834-19.25-44.512-19.276h-175.97c0-19.328 7.98-45.904 24.004-79.724 15.968-33.826 23.978-60.568 23.978-80.256 0-32.646-5.332-56.808-15.994-72.48-10.664-15.664-31.988-23.484-63.98-23.484-8.696 8.64-15.012 22.828-19.032 42.486-4.020 19.69-9.102 40.606-15.254 62.752-6.168 22.172-16.080 40.382-29.762 54.738-7.344 7.68-20.168 22.832-38.5 45.496-1.326 1.67-5.164 6.65-11.512 15.010-6.342 8.342-11.594 15.178-15.762 20.508-4.156 5.308-9.91 12.386-17.252 21.218-7.328 8.862-14 16.186-19.988 22.038-5.986 5.794-12.412 11.73-19.26 17.744-6.852 5.984-13.508 10.5-19.99 13.48-6.478 3.010-12.4 4.484-17.756 4.512h-15.982v320.010h15.982c4.332 0 9.596 0.492 15.774 1.504 6.168 1.012 11.676 2.080 16.488 3.258 4.812 1.144 11.154 2.98 19.002 5.466 7.862 2.512 13.702 4.424 17.502 5.74 3.812 1.31 9.732 3.422 17.756 6.238 8.026 2.842 12.866 4.586 14.506 5.272 70.324 24.334 127.304 36.504 170.996 36.504h60.482c64.006 0 96.024-27.836 96.024-83.478 0-8.664-0.848-18.016-2.514-27.996 10.004-5.334 17.936-14.084 23.758-26.276 5.824-12.172 8.724-24.416 8.778-36.746 0-12.366-3.008-23.844-9.024-34.51 17.664-16.682 26.524-36.496 26.524-59.496 0-8.308-1.696-17.554-5.032-27.72-3.336-10.202-7.492-18.104-12.468-23.762 10.636-0.328 19.55-8.15 26.714-23.486 7.192-15.34 10.744-28.82 10.744-40.496v-0.054zM896.984 479.516c0 29.638-8.204 56.816-24.5 81.506 2.98 10.994 4.484 22.476 4.484 34.482 0 25.674-6.344 49.68-19.004 71.99 1.012 7 1.506 14.164 1.506 21.488 0 33.688-10.008 63.354-29.968 89.026 0.326 46.32-13.834 82.904-42.518 109.756-28.682 26.848-66.522 40.246-113.496 40.246h-64.528c-31.99 0-63.542-3.746-94.742-11.268-31.168-7.492-67.246-18.402-108.23-32.758-38.662-13.312-61.656-19.956-68.984-19.956h-143.996c-17.664 0-32.742-6.292-45.252-18.784-12.508-12.5-18.756-27.588-18.756-45.254v-319.982c0-17.666 6.248-32.728 18.756-45.226 12.51-12.52 27.588-18.784 45.252-18.784h136.998c12.002-8.010 34.818-33.822 68.478-77.484 19.33-24.99 37.168-46.344 53.508-64.008 7.996-8.314 13.918-22.586 17.744-42.766 3.828-20.178 8.912-41.232 15.256-63.24 6.36-21.984 16.68-40.002 30.994-53.998 13.002-12.362 28.012-18.514 45.018-18.514 27.998 0 53.152 5.414 75.464 16.242 22.31 10.828 39.316 27.748 50.964 50.77 11.704 23.002 17.5 53.978 17.5 92.962 0 31.008-7.984 63-23.98 96.028h88.014c34.67 0 64.634 12.628 89.956 37.98 25.346 25.346 38.008 55.144 38.008 89.49l0.054 0.056z",mirror:"M857 127.778h-688c-22.092 0-40 17.91-40 40v688c0 22.090 17.908 40 40 40h688c22.094 0 40-17.91 40-40v-688c0-22.092-17.906-40-40-40zM817 815.778h-608v-1.086l606.914-606.914h1.086v608z",switchalt:"M923.946 63.418h-631.232c-20.268 0-36.7 16.432-36.7 36.7v155.286h-155.284c-20.268 0-36.7 16.432-36.7 36.7v631.23c0 20.268 16.43 36.7 36.7 36.7h631.23c20.272 0 36.7-16.432 36.7-36.7v-155.286h155.286c20.272 0 36.7-16.432 36.7-36.7v-631.23c-0.002-20.268-16.43-36.7-36.7-36.7zM688.66 880.032h-544.628v-544.628h111.984v395.946c0 20.268 16.43 36.7 36.7 36.7h395.944v111.982zM688.66 688.046h-352.644v-352.644h352.644v352.644zM880.644 688.046h-111.984v-395.946c0-20.268-16.428-36.7-36.7-36.7h-395.944v-111.984h544.628v544.63z",commit:"M984.032 472h-186.808c-19.474-140.12-139.74-248-285.222-248s-265.748 107.88-285.222 248h-186.746c-22.092 0-40 17.912-40 40.002 0 22.092 17.91 40 40 40h186.746c19.476 140.122 139.74 247.998 285.222 247.998s265.746-107.876 285.222-247.998h186.808c22.092 0 40-17.91 40-40s-17.908-40.002-40-40.002zM512 720c-114.692 0-208-93.308-208-208s93.308-208 208-208 208 93.308 208 208-93.308 208-208 208z",branch:"M861.968 312.032c0-66.168-53.832-120-120-120s-120 53.832-120 120c0 50.55 31.436 93.87 75.77 111.516-5.384 20.352-15.71 39.68-29.844 54.92-28.828 31.092-72.202 46.858-128.91 46.858-77.162 0-129.12 26.162-162.984 55.12V297.15c46.556-16.512 80-60.974 80-113.12 0-66.168-53.832-120-120-120s-120 53.832-120 120c0 52.146 33.444 96.608 80 113.12v429.762c-46.556 16.512-80 60.974-80 113.12 0 66.168 53.832 120 120 120s120-53.832 120-120c0-50.926-31.902-94.514-76.758-111.908 5.222-26.17 16.578-51.154 32.558-70.432 28.8-34.746 71.592-52.364 127.184-52.364 99.498 0 156.922-39.408 187.574-72.466 27.402-29.554 45.708-67.194 52.48-106.716 48.078-15.66 82.93-60.882 82.93-114.114zM336 144.032c22.056 0 40 17.944 40 40s-17.944 40-40 40-40-17.944-40-40 17.944-40 40-40zm0 736c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.944 40-40 40zm405.968-528c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.942 40-40 40z",merge:"M776.306 456.032c-51.602 0-95.696 32.744-112.612 78.542-69.674-6.072-141.482-31.012-197.386-69.306-46.266-31.69-100.392-85.728-111.792-168.92 45.4-17.12 77.79-60.998 77.79-112.314 0-66.168-53.832-120-120-120s-120 53.832-120 120c0 52.146 33.444 96.608 80 113.12v429.762c-46.556 16.512-80 60.974-80 113.12 0 66.168 53.832 120 120 120s120-53.832 120-120c0-52.146-33.444-96.608-80-113.12V471.444c19.622 21.888 42.618 41.898 68.792 59.828 68.422 46.868 156.64 77.042 241.646 83.462 16.14 47.23 60.932 81.3 113.56 81.3 66.168 0 120-53.832 120-120s-53.83-120.002-119.998-120.002zm-464-312c22.056 0 40 17.944 40 40s-17.944 40-40 40-40-17.944-40-40 17.942-40 40-40zm0 736c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.944 40-40 40zm464-264c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.944 40-40 40z",pullrequest:"M631 157c104 1 171 52 171 166v397a123 123 0 1 1-82 0V323c0-63-27-83-90-84h-24l22 23a41 41 0 1 1-58 58l-93-93a41 41 0 0 1 1-58l93-93a41 41 0 1 1 58 58l-23 23h25zM222 314a123 123 0 1 1 82 0v406a123 123 0 1 1-82 0V314zm41 564a41 41 0 1 0 0-82 41 41 0 0 0 0 82zm0-639a41 41 0 1 0 0-83 41 41 0 0 0 0 83zm498 639a41 41 0 1 0 0-82 41 41 0 0 0 0 82z",chromatic:"M512 0a512 512 0 110 1024A512 512 0 01512 0zM368 452v284a144 144 0 00274 59c-10-4-20-8-29-14l-111-64c-6-3-10-10-10-16V523l-124-71zm454 89c-8 7-17 13-26 18L551 701l81 46 1 1a144 144 0 00189-207zm-493-89l-81 47h-1a143 143 0 00-52 196 144 144 0 00137 71c-2-10-3-21-3-32V452zm375-195l-12 1c2 10 3 21 3 32v128c0 7-4 13-10 17l-154 88v144l245-142 2-1a144 144 0 00-74-267zm-384 0c-51 0-99 28-125 72-28 49-25 109 7 154 8-7 17-13 26-18l111-64a20 20 0 0120 0l153 88 124-71-244-141-1-1c-22-12-46-19-71-19zm192-111c-57 0-107 33-130 83 10 4 19 8 29 14l245 141v-96c-2-79-66-142-144-142z",twitter:"M960 233.114c-32.946 14.616-68.41 24.5-105.598 28.942 37.954-22.762 67.098-58.774 80.856-101.688-35.52 21.054-74.894 36.368-116.726 44.598-33.542-35.724-81.316-58.038-134.204-58.038-101.496 0-183.796 82.292-183.796 183.814 0 14.424 1.628 28.45 4.758 41.89-152.75-7.668-288.22-80.872-378.876-192.072-15.822 27.15-24.898 58.706-24.898 92.42 0 63.776 32.458 120.034 81.782 153.010-30.116-0.944-58.458-9.212-83.262-22.982-0.028 0.75-0.028 1.546-0.028 2.324 0 89.070 63.356 163.334 147.438 180.256-15.426 4.186-31.664 6.426-48.442 6.426-11.836 0-23.35-1.146-34.574-3.28 23.406 73.006 91.286 126.16 171.726 127.632-62.914 49.324-142.18 78.696-228.314 78.696-14.828 0-29.448-0.876-43.842-2.568 81.33 52.138 177.96 82.574 281.786 82.574 338.11 0 523-280.104 523-523.014 0-7.986-0.164-15.914-0.542-23.778 35.952-25.96 67.124-58.318 91.756-95.162z",google:"M799.094 79.996c0 0-200.938 0-267.936 0-120.126 0-233.188 91.004-233.188 196.434 0 107.692 81.904 194.624 204.124 194.624 8.496 0 16.75-0.148 24.812-0.74-7.942 15.186-13.594 32.286-13.594 50.022 0 29.974 16.094 54.226 36.466 74.042-15.376 0-30.248 0.438-46.438 0.438-148.782 0.036-263.312 94.784-263.312 193.056 0 96.758 125.534 157.312 274.312 157.312 169.656 0 263.312-96.25 263.312-193.024 0-77.6-22.908-124.062-93.686-174.156-24.216-17.128-70.534-58.812-70.534-83.32 0-28.69 8.19-42.868 51.406-76.624 44.346-34.63 75.688-83.302 75.688-139.944 0-67.372-30-133.058-86.374-154.746h85l59.942-43.374zM701.504 735.438c2.092 8.992 3.276 18.226 3.276 27.624 0 78.226-50.374 139.304-194.934 139.304-102.874 0-177.124-65.078-177.124-143.304 0-76.622 92.122-140.434 194.934-139.32 24.004 0.254 46.376 4.136 66.69 10.702 55.812 38.834 95.874 60.808 107.158 104.994zM536.844 443.782c-69-2.094-134.624-77.212-146.564-167.876-11.874-90.664 34.378-160.030 103.442-157.97 68.996 2.060 134.594 74.818 146.53 165.432 11.906 90.696-34.408 162.508-103.408 160.414z",gdrive:"M465.926 641.356l-149.328 258.708h494.074l149.328-258.708h-494.074zM917.704 567.988l-256.33-444.048h-298.686l256.356 444.048h298.66zM320.236 197.442l-256.236 443.914 149.36 258.708 256.23-443.914-149.354-258.708z",youtube:"M704.010 511.988c0-12.332-5.038-21.358-15.042-26.992l-255.982-159.99c-10.344-6.666-21.178-6.998-32.51-1.008-10.988 5.984-16.492 15.312-16.492 28.002v320c0 12.69 5.504 22.018 16.492 28.002 5.332 2.678 10.516 3.996 15.506 3.996 6.668 0 12.334-1.644 17.004-4.98l255.982-160.014c10.004-5.69 15.042-14.684 15.042-26.992v-0.024zM960 511.988c0 31.99-0.164 56.98-0.488 75.032-0.334 17.99-1.754 40.738-4.27 68.25-2.516 27.504-6.262 52.058-11.27 73.742-5.332 24.338-16.84 44.85-34.504 61.496-17.64 16.63-38.306 26.308-61.96 28.988-73.992 8.342-185.824 12.526-335.508 12.526-149.668 0-261.5-4.184-335.5-12.526-23.662-2.656-44.414-12.302-62.242-28.988-17.834-16.678-29.412-37.182-34.744-61.496-4.672-21.684-8.258-46.238-10.756-73.742-2.508-27.512-3.928-50.26-4.254-68.25-0.342-18.050-0.504-43.042-0.504-75.032 0-31.998 0.162-57.010 0.504-75.008 0.326-18.022 1.746-40.768 4.254-68.28 2.498-27.474 6.262-52.082 11.252-73.744 5.34-24.336 16.842-44.842 34.504-61.496 17.648-16.654 38.324-26.332 61.986-29.010 74-8.312 185.832-12.472 335.5-12.472 149.684 0 261.516 4.16 335.508 12.472 23.654 2.678 44.406 12.356 62.232 29.010 17.826 16.678 29.422 37.16 34.73 61.496 4.702 21.662 8.256 46.27 10.772 73.744 2.516 27.512 3.936 50.258 4.27 68.28 0.324 17.998 0.488 43.010 0.488 75.008z",facebook:"M582.52 960h-167.88v-448h-112v-154.396l112-0.052-0.166-90.948c-0.036-125.974 34.12-202.604 182.484-202.604h123.542v154.424h-77.19c-57.782 0-60.566 21.56-60.566 61.85l-0.218 77.278h138.854l-16.376 154.394-122.36 0.052-0.124 448.002z",medium:"M0 0v1024h1024v-1024h-1024zM850.708 242.614l-54.918 52.655c-3.858 2.965-6.321 7.581-6.321 12.772 0 0.933 0.080 1.847 0.232 2.736l-0.014-0.095v386.883c-0.139 0.794-0.219 1.708-0.219 2.641 0 5.191 2.462 9.807 6.283 12.744l0.038 0.028 53.637 52.655v11.558h-269.774v-11.558l55.559-53.936c5.461-5.456 5.461-7.068 5.461-15.413v-312.719l-154.477 392.344h-20.874l-179.851-392.344v262.947c-0.209 1.465-0.329 3.156-0.329 4.875 0 9.848 3.924 18.78 10.293 25.317l-0.008-0.008 72.258 87.649v11.558h-204.895v-11.558l72.263-87.649c6.070-6.284 9.81-14.852 9.81-24.293 0-2.081-0.182-4.12-0.53-6.101l0.031 0.21v-304.044c0.086-0.804 0.135-1.737 0.135-2.682 0-7.844-3.389-14.896-8.782-19.773l-0.023-0.021-64.234-77.378v-11.558h199.438l154.157 338.083 135.53-338.083h190.123v11.558z",graphql:"M576 849a85 85 0 0 0-125-2L253 733l1-3h517l2 5-197 114zM451 177l2 2-258 448-3-1V398a85 85 0 0 0 61-107l198-114zm321 114a85 85 0 0 0 61 107v228l-3 1-258-448 2-2 198 114zM254 689a85 85 0 0 0-24-42l259-447a86 86 0 0 0 47 0l259 448a85 85 0 0 0-24 41H254zm643-54c-7-4-15-7-23-9V398a86 86 0 1 0-82-142L595 142a85 85 0 1 0-165 0L233 256a85 85 0 1 0-82 142v228a85 85 0 1 0 82 142l197 114a85 85 0 1 0 164-2l196-114a86 86 0 1 0 107-131z",redux:"M359.016 943.608c-23.82 5.948-47.642 8.322-71.512 8.322-88.208 0-168.084-36.982-207.444-96.534-52.432-79.882-70.296-249.182 102.538-374.356 3.586 19.078 10.746 45.292 15.492 60.834-22.656 16.652-58.39 50.064-81.046 95.324-32.19 63.184-28.61 126.404 9.54 184.798 26.194 39.304 67.926 63.176 121.564 70.34 65.598 8.332 131.154-3.582 194.332-36.94 92.998-48.898 155.014-107.282 195.49-187.162-10.702-10.75-17.818-26.248-19.074-44.15-1.168-36.942 27.45-67.922 64.388-69.132h2.418c35.73 0 65.55 28.61 66.714 64.384 1.206 35.73-24.986 65.546-59.548 69.132-65.6 134.686-181.254 225.312-333.852 255.14zM902.646 540.622c-90.59-106.072-224.11-164.488-376.708-164.488h-19.072c-10.744-21.444-33.402-35.752-58.388-35.752h-2.418c-36.944 1.186-65.548 32.192-64.392 69.13 1.216 35.774 30.99 64.394 66.81 64.394h2.328c26.242-1.208 48.894-17.892 58.434-40.542h21.45c90.624 0 176.46 26.234 253.968 77.482 59.55 39.36 102.49 90.576 126.356 152.596 20.24 50.052 19.074 98.952-2.42 140.64-33.356 63.228-89.37 97.794-163.292 97.794-47.69 0-92.998-14.33-116.822-25.082-13.118 11.958-36.984 31.028-53.64 42.944 51.226 23.87 103.7 36.94 153.762 36.94 114.446 0 199.070-63.132 231.268-126.362 34.562-69.13 32.188-188.326-57.224-289.694zM297.046 708.706c1.21 35.828 30.984 64.394 66.764 64.394h2.368c36.992-1.168 65.556-32.15 64.39-69.132-1.162-35.732-30.984-64.394-66.758-64.394h-2.376c-2.418 0-5.958 0-8.332 1.208-48.89-81.090-69.132-169.27-62.014-264.648 4.792-71.528 28.616-133.516 70.346-184.766 34.568-44.106 101.326-65.57 146.598-66.758 126.402-2.396 180.044 154.968 183.576 218.144 15.542 3.584 41.734 11.936 59.644 17.892-14.328-193.118-133.526-293.266-247.97-293.266-107.28 0-206.236 77.484-245.552 191.932-54.848 152.596-19.070 299.212 47.644 414.826-5.912 8.374-9.494 21.498-8.328 34.568z",github:"M214.6 809.4A417.8 417.8 0 0191.4 512c0-112.3 43.8-218 123.2-297.4A417.8 417.8 0 01512 91.4c112.3 0 218 43.8 297.4 123.2A417.8 417.8 0 01932.6 512c0 112.3-43.8 218-123.2 297.4-49 49-108 84.3-172.2 104.3v-74.4c0-39.5-13.6-68.6-40.7-87.2a354 354 0 0091.9-19.6c15.8-5.6 30-12.2 42.6-19.9a177.8 177.8 0 0036.3-29.8 175 175 0 0029.1-41.7 228 228 0 0018.6-55.9c4.6-21.7 6.9-45.6 6.9-71.7 0-50.7-16.5-93.8-49.5-129.4 15-39.2 13.4-81.8-4.9-127.9l-12.2-1.4c-8.5-1-23.8 2.6-45.8 10.8-22 8.1-46.8 21.5-74.3 40.1a450.9 450.9 0 00-121-16.1 442 442 0 00-120.5 16.1 419.6 419.6 0 00-49.3-29.1c-15.5-7.7-27.9-13-37.2-15.7a127.6 127.6 0 00-41.4-5.6c-2.3.3-4 .6-4.9 1-18.3 46.3-20 89-4.9 127.8a183.5 183.5 0 00-49.5 129.4c0 26.1 2.3 50 6.9 71.7a228.3 228.3 0 0018.6 56 175 175 0 0029.1 41.6 177.9 177.9 0 0036.3 29.8 223.4 223.4 0 0042.6 19.9A353.2 353.2 0 00432 752c-26.8 18.3-40.2 47.3-40.2 87.2v75.9a418.4 418.4 0 01-177-105.8M512 0a512 512 0 100 1024A512 512 0 00512 0",bitbucket:"M362.3 395l53 276.5h195.4l34-198.4h283l-74.4 457a30 30 0 01-29.7 25.3H210.7a41 41 0 01-40-34.2l-127.6-775a30 30 0 0130-34.9l877.8.2a30 30 0 0130 34.8L940.5 395H362.3z",gitlab:"M186.9 75a18.7 18.7 0 0135.6 0l108.8 333.4h361.4L512 961.8 331.3 408.4H78.1zM78.1 408.5L512 961.8 36.8 618.2a37.1 37.1 0 01-13.6-41.6L78 408.4zm867.8 0l55 168.2c5 15.3-.5 32.1-13.7 41.6L512 961.8l434-553.4zM837.1 75l108.8 333.3H692.7L801.5 75a18.7 18.7 0 0135.6 0z",azuredevops:"M0,378.6 L95.8,252 L454.4,106.2 L454.4,1 L768.8,231 L126.6,355.8 L126.6,706.8 L0,670.2 L0,378.6 Z M1024,188.8 L1024,814 L778.6,1023 L381.8,892.6 L381.8,1023 L126.6,706.6 L769,783.2 L769,231 L1024,188.8 Z",discord:"M371 147c-14 0-126 3-245 91 0 0-126 227-126 507 0 0 74 126 268 132l58-71c-111-34-153-103-153-103l24 15 4 2 8 4a668 668 0 0 0 420 68 629 629 0 0 0 228-89s-44 71-159 103l58 71c194-7 268-133 268-132 0-280-126-507-126-507-126-94-246-91-246-91l-12 14a576 576 0 0 1 218 110 729 729 0 0 0-441-81l-15 1c-31 4-105 14-199 56-33 14-52 24-52 24s72-69 230-114l-9-10h-1zm-23 323c50 0 91 43 90 97 0 53-40 96-90 96-49 0-89-43-89-96 0-54 39-97 89-97zm321 0c49 0 89 43 89 97 0 53-39 96-89 96s-90-43-90-96c0-54 40-97 90-97z",contrast:"M368 713h79l266-266v-79L368 713zm192 0h153V560L560 713zm98-402h-79L311 579v79l347-347zm-192 0H311v155l155-155zm467 402V91H311v128h452c23 0 42 19 42 42v452h128zM713 933V805H261c-23 0-42-19-42-42V311H91v622h622zM982 0c23 0 42 19 42 42v721c0 23-19 42-42 42H805v177c0 23-19 42-42 42H42c-23 0-42-19-42-42V261c0-23 19-42 42-42h177V42c0-23 19-42 42-42h721z",unfold:"M512 645l8 1c21 4 37 22 37 44v181l52-52 6-6a45 45 0 0 1 58 69l-129 129-7 5a45 45 0 0 1-57-5L351 882l-5-6a45 45 0 0 1 5-57l7-6c17-12 41-10 57 6l52 52V690l1-8c4-21 22-37 44-37zM337 275a45 45 0 1 1 0 90H229l91 102h382l91-102H685a45 45 0 1 1 0-90h208c39 0 59 46 34 75L782 512l145 162c25 29 5 75-34 75H685a45 45 0 1 1 0-90h108l-91-102H320l-91 102h108a45 45 0 1 1 0 90H129c-38 0-59-46-33-75l144-162L96 350c-24-27-8-69 26-74l7-1h208zM537 8l7 6 129 129a45 45 0 0 1-58 68l-6-5-52-52v181c0 22-16 40-37 44h-8c-22 0-40-15-44-36l-1-8V153l-52 53a45 45 0 0 1-57 5l-7-5a45 45 0 0 1-5-57l5-6L480 14c16-16 40-18 57-6z",sharealt:"M130 85h332a45 45 0 0 1 8 89l-8 1H175v674h674V557a45 45 0 0 1 89-8l1 8v337c0 22-16 40-37 44l-8 1H130c-22 0-40-16-44-37l-1-8V130c0-22 16-40 37-44l8-1h332-332zm555 0h210l5 1-6-1a45 45 0 0 1 32 13l-5-4 3 3 2 1a46 46 0 0 1 12 24v2l1 5v209a45 45 0 0 1-89 8l-1-8V238L544 544a45 45 0 0 1-57 5l-7-5a45 45 0 0 1 0-64l306-305H685a45 45 0 0 1-8-89l8-1h209-209z",accessibility:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 89.6a422.4 422.4 0 100 844.8 422.4 422.4 0 000-844.8zm262.2 250a40.9 40.9 0 01-27.5 49.3l-169.1 50.7c-8.2 2.7-15.1 11-13.7 20.5 1.3 27.4 1.5 76.5 7 98.4 12.9 59 82.4 214.4 91 233.6a56 56 0 014.9 19 40 40 0 01-40 40c-18 0-30.3-12.7-38.2-28.4A34096 34096 0 01510.9 664l-77.7 165.7-1.3 2.1a40 40 0 01-69.3-39.7c8.6-19 78-174.5 90.8-233.6 5.5-21.9 6-71 7.3-98.4a21 21 0 00-13.7-20.5l-169.1-50.7a40.7 40.7 0 01-27.5-50.7c6.9-20.5 30.2-30.1 50.9-24.6 0 0 154.6 49.3 209.6 49.3s213.8-50.7 213.8-50.7c20.6-5.5 44 6.8 49.5 27.4zm-264-171.2a76.7 76.7 0 110 153.4c-42.6 0-77-34.2-77-76.7 0-41 34.4-76.7 77-76.7z",accessibilityalt:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm262.2 339.6c-5.5-20.6-28.9-32.9-49.5-27.4 0 0-158.8 50.7-213.8 50.7s-209.6-49.3-209.6-49.3c-20.7-5.5-44 4-51 24.6A40.7 40.7 0 00278 389l169 50.7a21 21 0 0113.8 20.5c-1.3 27.4-1.8 76.5-7.3 98.4-12.9 59.1-82.2 214.5-90.8 233.6a40 40 0 1070.6 37.5L511 664a34096 34096 0 0077.7 158.7c7.9 15.7 20.2 28.4 38.2 28.4a40 40 0 0040-40 56 56 0 00-4.8-19c-8.7-19.2-78.2-174.5-91.1-233.6-5.5-21.9-5.7-71-7-98.4-1.4-9.6 5.5-17.8 13.7-20.5l169.1-50.7a40.9 40.9 0 0027.5-49.3zm-264-171.2c-42.6 0-77 35.6-77 76.7a76.7 76.7 0 0077 76.7 76.7 76.7 0 100-153.4z",markup:"M1010.6 479.7L736.4 205.4a45.7 45.7 0 10-64.7 64.6l242 242L671.7 754a45.7 45.7 0 1064.7 64.6l274.1-274.2a45.6 45.6 0 000-64.6M0 511.9c0-11.7 4.5-23.4 13.4-32.3l274.1-274.2a45.7 45.7 0 1164.7 64.6L110.4 512l241.9 241.9a45.7 45.7 0 01-64.7 64.6L13.4 544.2C4.4 535.3 0 523.6 0 512",outline:"M180.1 714.3V844h129.6v94.8h-180c-24.2 0-44-19.5-44.4-43.7V714.3h94.8zM619.3 844v94.8H404.7v-94.8h214.6zm319.4-129.6v180c0 24.2-19.5 44-43.7 44.4H714.3v-94.8H844V714.3h94.8zm0-309.6v214.6h-94.8V404.7h94.8zm-758.6 0v214.6H85.3V404.7h94.8zm331.9 34a73.2 73.2 0 110 146.4 73.2 73.2 0 010-146.3zM894.2 85.4c24.3 0 44 19.5 44.5 43.7V309.7h-94.8V180H714.3V85.3h180zm-584.5 0v94.8H180v129.6H85.3v-180c0-24.2 19.5-44 43.7-44.4H309.7zm309.6 0v94.8H404.7V85.3h214.6z",verified:"M719 66l30 56c12 23 35 40 61 44l62 11c45 8 76 51 70 96l-9 63c-4 26 5 52 23 71l44 46c32 33 32 85 0 118l-44 46a85 85 0 00-23 71l9 63c6 45-25 88-70 96l-62 11c-26 4-49 21-61 44l-30 56a85 85 0 01-113 36l-57-27a85 85 0 00-74 0l-57 27c-42 21-92 4-113-36l-30-56a85 85 0 00-61-44l-62-11c-45-8-76-51-70-96l9-63c4-26-5-52-23-71l-44-46a85 85 0 010-118l44-46c18-19 27-45 23-71l-9-63c-6-45 25-88 70-96l62-11c26-4 49-21 61-44l30-56c21-40 71-57 113-36l57 27c23 12 51 12 74 0l57-27c42-21 92-4 113 36zm70 258a46 46 0 00-59 5L437 622 294 480l-6-5a46 46 0 00-59 69l175 175 6 5c18 13 43 11 59-5l326-325 4-6c13-18 12-43-4-59z",comment:"M936 85l6 1c22 3 39 21 39 44v709c0 8-2 15-5 21l-2 4c-9 12-23 20-38 20H427l-131 127c-9 9-21 13-34 13-25 0-46-20-46-45v-95H88c-25 0-45-20-45-45V130a45 45 0 0145-45zm-46 89H134v620h756V174zM768 544c25 0 46 20 46 44 0 25-21 45-46 45H256c-25 0-46-20-46-45 0-24 21-44 46-44zm0-208c25 0 46 20 46 44 0 25-21 45-46 45H256c-25 0-46-20-46-45 0-24 21-44 46-44z",commentadd:"M937 85l6 1c23 3 40 21 40 44v711c0 7-2 14-5 21l-3 4c-8 12-22 19-38 19H428l-131 128c-9 9-22 13-35 13-25 0-45-20-45-45v-96H89c-26 0-46-20-46-44V130a45 45 0 0146-45zm-45 90H134v621h758V175zm-379 97c22 0 40 18 40 40v134h132a40 40 0 010 81H553v132a40 40 0 11-80 0V527H341a40 40 0 110-81h132V312c0-22 18-40 40-40z",requestchange:"M937 85l6 1c23 3 40 21 40 44v711c0 7-2 14-5 21l-3 4c-8 12-22 19-38 19H428l-131 128c-9 9-22 13-35 13-25 0-45-20-45-45v-96H89c-26 0-46-20-46-44V130a45 45 0 0146-45zm-45 90H134v621h758V175zM585 310c18-18 47-18 65 0l143 144c18 17 18 46 0 64L650 661a46 46 0 01-65 0 46 46 0 010-65l65-64H266a46 46 0 110-92h384l-65-65a46 46 0 010-65z",comments:"M978.3 92.2a45 45 0 0145.7 44.6v535.6a45.2 45.2 0 01-45.7 44.6h-125v122c0 7.7-2 14.8-5.5 21.3l-2.3 3.7a46.1 46.1 0 01-38 19.6H298.8L168 1011a47 47 0 01-34.3 13.1c-25.2 0-45.7-20-45.7-44.6v-95.8H45.7c-25.2 0-45.7-20-45.7-44.5V303.4A45 45 0 0145.7 259h125v-122a45 45 0 0139.8-44.3c1.3-.1 257.2-.3 767.8-.4zM761.9 348H91.4v446.5H762V348zm-125 264c25.3 0 45.8 20 45.8 44.6A45.2 45.2 0 01637 701H216.4c-25.3 0-45.7-20-45.7-44.5a45.2 45.2 0 0145.7-44.6H637zm295.7-430.7H262V259h505.1l46.3.4a45 45 0 0139.8 44.2v324.3h79.3V181.3zM637 441.3c25.2 0 45.7 20 45.7 44.6a45.2 45.2 0 01-45.7 44.6H216.4c-25.3 0-45.7-20-45.7-44.6a45.2 45.2 0 0145.7-44.5H637z",ruler:"M83 110c-22 0-40 18-40 40v176a40 40 0 0080 0v-49h778v49a40 40 0 0080 0V150a40 40 0 10-80 0v49H123v-49c0-22-18-40-40-40zm40 458v266h778V568h-63v115a40 40 0 11-80 0V568h-63v46a40 40 0 11-80 0v-46h-63v115a40 40 0 11-80 0V568h-63v46a40 40 0 11-80 0v-46h-63v115a40 40 0 11-80 0V568h-63zm103-80h691c36 0 64 28 64 64v298c0 36-28 64-64 64H107c-36 0-64-28-64-64V552c0-36 28-64 64-64h119z"},Svg=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.svg({shapeRendering:"inherit",transform:"translate3d(0,0,0)"},(function(_ref27){return _ref27.inline?{display:"inline-block"}:{display:"block"}}));Svg.displayName="Svg";var Path=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.path({fill:"currentColor"}),Icons=Object(react__WEBPACK_IMPORTED_MODULE_51__.memo)((function(_a){var icon=_a.icon,symbol=_a.symbol,props=__rest(_a,["icon","symbol"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Svg,Object.assign({viewBox:"0 0 1024 1024"},props),symbol?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("use",{xlinkHref:"#icon--".concat(symbol)}):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Path,{d:icons[icon]}))})),Symbols=Object(react__WEBPACK_IMPORTED_MODULE_51__.memo)((function(_ref28){var _ref28$icons=_ref28.icons,keys=void 0===_ref28$icons?Object.keys(icons):_ref28$icons;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:{position:"absolute",width:0,height:0},"data-chromatic":"ignore"},keys.map((function(key){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("symbol",{id:"icon--".concat(key),key:key},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Path,{d:icons[key]}))})))})),LEFT_BUTTON=0,isPlainLeftClick=function isPlainLeftClick(e){return!(e.button!==LEFT_BUTTON||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)},cancelled=function cancelled(e,cb){isPlainLeftClick(e)&&(e.preventDefault(),cb(e))},LinkInner=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.span((function(_ref29){return _ref29.withArrow?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{}}),(function(_ref30){return _ref30.containsIcon?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}})),A$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.a((function(_ref31){var theme=_ref31.theme;return{display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:theme.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:curriedDarken$1(.07,theme.color.secondary),"svg path":{fill:curriedDarken$1(.07,theme.color.secondary)}},"&:active":{color:curriedDarken$1(.1,theme.color.secondary),"svg path":{fill:curriedDarken$1(.1,theme.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:theme.color.secondary}}}}),(function(_ref32){var colors,theme=_ref32.theme,secondary=_ref32.secondary,tertiary=_ref32.tertiary;return secondary&&(colors=[theme.color.mediumdark,theme.color.dark,theme.color.darker]),tertiary&&(colors=[theme.color.dark,theme.color.darkest,theme.color.mediumdark]),colors?{color:colors[0],"svg path":{fill:colors[0]},"&:hover":{color:colors[1],"svg path":{fill:colors[1]}},"&:active":{color:colors[2],"svg path":{fill:colors[2]}}}:{}}),(function(_ref33){return _ref33.nochrome?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{}}),(function(_ref34){var theme=_ref34.theme;return _ref34.inverse?{color:theme.color.lightest,"svg path":{fill:theme.color.lightest},"&:hover":{color:theme.color.lighter,"svg path":{fill:theme.color.lighter}},"&:active":{color:theme.color.light,"svg path":{fill:theme.color.light}}}:{}}),(function(_ref35){return _ref35.isButton?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{}})),Link=function Link(_a){var cancel=_a.cancel,children=_a.children,onClick=_a.onClick,withArrow=_a.withArrow,containsIcon=_a.containsIcon,className=_a.className,rest=__rest(_a,["cancel","children","onClick","withArrow","containsIcon","className"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(A$1,Object.assign({},rest,{onClick:onClick&&cancel?function(e){return cancelled(e,onClick)}:onClick,className:className}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(LinkInner,{withArrow:withArrow,containsIcon:containsIcon},children,withArrow&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Icons,{icon:"arrowright"})))};Link.defaultProps={cancel:!0,className:void 0,style:void 0,onClick:void 0,withArrow:!1,containsIcon:!1};var DocumentWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref36){var theme=_ref36.theme;return{fontSize:"".concat(theme.typography.size.s2,"px"),lineHeight:"1.6",h1:{fontSize:"".concat(theme.typography.size.l1,"px"),fontWeight:theme.typography.weight.black},h2:{fontSize:"".concat(theme.typography.size.m2,"px"),borderBottom:"1px solid ".concat(theme.appBorderColor)},h3:{fontSize:"".concat(theme.typography.size.m1,"px")},h4:{fontSize:"".concat(theme.typography.size.s3,"px")},h5:{fontSize:"".concat(theme.typography.size.s2,"px")},h6:{fontSize:"".concat(theme.typography.size.s2,"px"),color:theme.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:theme.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:"1px solid ".concat(theme.appBorderColor),height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:"4px solid ".concat(theme.color.medium),padding:"0 15px",color:theme.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:"1px solid ".concat(theme.appBorderColor),backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:"1px solid ".concat(theme.appBorderColor),textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:"1px solid ".concat(theme.appBorderColor),textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:theme.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:"1px solid ".concat(theme.color.medium),display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:theme.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:"1px solid ".concat(theme.color.mediumlight),backgroundColor:theme.color.lighter,borderRadius:3,color:"dark"===theme.base&&theme.color.darkest}}})),Container$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref37){return{position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",background:_ref37.theme.background.content,zIndex:1}})),ActionButton=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.button((function(_ref38){var theme=_ref38.theme;return{margin:0,border:"0 none",padding:"4px 10px",cursor:"pointer",display:"flex",alignItems:"center",color:theme.color.defaultText,background:theme.background.content,fontSize:12,lineHeight:"16px",fontFamily:theme.typography.fonts.base,fontWeight:theme.typography.weight.bold,borderTop:"1px solid ".concat(theme.appBorderColor),borderLeft:"1px solid ".concat(theme.appBorderColor),marginLeft:-1,borderRadius:"4px 0 0 0","&:not(:last-child)":{borderRight:"1px solid ".concat(theme.appBorderColor)},"& + *":{borderLeft:"1px solid ".concat(theme.appBorderColor),borderRadius:0},"&:focus":{boxShadow:"".concat(theme.color.secondary," 0 -3px 0 0 inset"),outline:"0 none"}}}),(function(_ref39){return _ref39.disabled&&{cursor:"not-allowed",opacity:.5}}));ActionButton.displayName="ActionButton";var ActionBar=function ActionBar(_a){var actionItems=_a.actionItems,props=__rest(_a,["actionItems"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Container$1,Object.assign({},props),actionItems.map((function(_ref40,index){var title=_ref40.title,className=_ref40.className,onClick=_ref40.onClick,disabled=_ref40.disabled;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ActionButton,{key:index,className:className,onClick:onClick,disabled:disabled},title)})))},toNumber=function toNumber(input){return"number"==typeof input?input:Number(input)},Container=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref41){var theme=_ref41.theme,col=_ref41.col,_ref41$row=_ref41.row,row=void 0===_ref41$row?1:_ref41$row;return col?_defineProperty2({display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:col*theme.layoutMargin,verticalAlign:"inherit"}},"& > *:first-child",{marginLeft:0}):_defineProperty2({"& > *":{marginTop:row*theme.layoutMargin}},"& > *:first-child",{marginTop:0})}),(function(_ref44){var theme=_ref44.theme,outer=_ref44.outer,col=_ref44.col,row=_ref44.row;switch(!0){case!(!outer||!col):return{marginLeft:outer*theme.layoutMargin,marginRight:outer*theme.layoutMargin};case!(!outer||!row):return{marginTop:outer*theme.layoutMargin,marginBottom:outer*theme.layoutMargin};default:return{}}})),Spaced=function Spaced(_a){var col=_a.col,row=_a.row,outer=_a.outer,children=_a.children,rest=__rest(_a,["col","row","outer","children"]),outerAmount=toNumber("number"!=typeof outer&&outer?col||row:outer);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Container,Object.assign({col:col,row:row,outer:outerAmount},rest),children)},Title$3=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref45){return{fontWeight:_ref45.theme.typography.weight.bold}})),Desc$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div(),Message$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref46){var theme=_ref46.theme;return{padding:30,textAlign:"center",color:theme.color.defaultText,fontSize:theme.typography.size.s2-1}})),Placeholder=function Placeholder(_a){var children=_a.children,props=__rest(_a,["children"]),_Children$toArray2=_slicedToArray(react__WEBPACK_IMPORTED_MODULE_51__.Children.toArray(children),2),title=_Children$toArray2[0],desc=_Children$toArray2[1];return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Message$1,Object.assign({},props),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Title$3,null,title),desc&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Desc$1,null,desc))},GlobalScrollAreaStyles=Object(react__WEBPACK_IMPORTED_MODULE_51__.lazy)((function(){return __webpack_require__.e(14).then(__webpack_require__.bind(null,"./node_modules/@storybook/components/dist/esm/GlobalScrollAreaStyles-8793ce4a.js"))})),OverlayScrollbars=Object(react__WEBPACK_IMPORTED_MODULE_51__.lazy)((function(){return __webpack_require__.e(15).then(__webpack_require__.bind(null,"./node_modules/@storybook/components/dist/esm/OverlayScrollbars-1355f44c.js"))})),Scroller=function Scroller(_a){var props=__rest(_a,["horizontal","vertical"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",Object.assign({},props))},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(GlobalScrollAreaStyles,null),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(OverlayScrollbars,Object.assign({options:{scrollbars:{autoHide:"leave"}}},props)))},ScrollArea=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i)(Scroller)((function(_ref47){return _ref47.vertical?{overflowY:"auto",height:"100%"}:{overflowY:"hidden"}}),(function(_ref48){return _ref48.horizontal?{overflowX:"auto",width:"100%"}:{overflowX:"hidden"}}));ScrollArea.defaultProps={horizontal:!1,vertical:!1};var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==global?global:"undefined"!=typeof self?self:{},win;function getDefaultExportFromCjs(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}win="undefined"!=typeof window?window:void 0!==commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:{};var window_1=win,globalWindow$2=window_1.window;function browserSupportsCssZoom(){try{return void 0!==globalWindow$2.document.implementation.createHTMLDocument("").body.style.zoom}catch(error){return!1}}var ZoomElementWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref49){var _ref49$scale=_ref49.scale,scale=void 0===_ref49$scale?1:_ref49$scale,height=_ref49.height;return browserSupportsCssZoom()?{"> *":{zoom:1/scale}}:{height:height+50,transformOrigin:"top left",transform:"scale(".concat(1/scale,")")}}));function ZoomElement(_ref50){var scale=_ref50.scale,children=_ref50.children,componentWrapperRef=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)(null),_useState2=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(0),2),height=_useState2[0],setHeight=_useState2[1];return Object(react__WEBPACK_IMPORTED_MODULE_51__.useEffect)((function(){componentWrapperRef.current&&setHeight(componentWrapperRef.current.getBoundingClientRect().height)}),[scale,componentWrapperRef.current]),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ZoomElementWrapper,{scale:scale,height:height},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",{ref:componentWrapperRef,className:"innerZoomElementWrapper"},children))}var ZoomIFrame=function(_Component){_inherits(ZoomIFrame,_Component);var _super=_createSuper(ZoomIFrame);function ZoomIFrame(){var _this2;return _classCallCheck(this,ZoomIFrame),(_this2=_super.apply(this,arguments)).iframe=null,_this2}return _createClass(ZoomIFrame,[{key:"componentDidMount",value:function componentDidMount(){var iFrameRef=this.props.iFrameRef;this.iframe=iFrameRef.current}},{key:"shouldComponentUpdate",value:function shouldComponentUpdate(nextProps){var _this$props=this.props,scale=_this$props.scale,active=_this$props.active;return scale!==nextProps.scale&&this.setIframeInnerZoom(nextProps.scale),active!==nextProps.active&&this.iframe.setAttribute("data-is-storybook",nextProps.active?"true":"false"),nextProps.children.props.src!==this.props.children.props.src}},{key:"setIframeInnerZoom",value:function setIframeInnerZoom(scale){try{browserSupportsCssZoom()?Object.assign(this.iframe.contentDocument.body.style,{zoom:1/scale}):Object.assign(this.iframe.contentDocument.body.style,{width:"".concat(100*scale,"%"),height:"".concat(100*scale,"%"),transform:"scale(".concat(1/scale,")"),transformOrigin:"top left"})}catch(e){this.setIframeZoom(scale)}}},{key:"setIframeZoom",value:function setIframeZoom(scale){Object.assign(this.iframe.style,{width:"".concat(100*scale,"%"),height:"".concat(100*scale,"%"),transform:"scale(".concat(1/scale,")"),transformOrigin:"top left"})}},{key:"render",value:function render(){return this.props.children}}]),ZoomIFrame}(react__WEBPACK_IMPORTED_MODULE_51__.Component),Zoom$1={Element:ZoomElement,IFrame:ZoomIFrame},ButtonWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.button((function(_ref51){var small=_ref51.small,theme=_ref51.theme;return{border:0,borderRadius:"3em",cursor:"pointer",display:"inline-block",overflow:"hidden",padding:small?"8px 16px":"13px 20px",position:"relative",textAlign:"center",textDecoration:"none",transition:"all 150ms ease-out",transform:"translate3d(0,0,0)",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:1,margin:0,background:"transparent",fontSize:"".concat(small?theme.typography.size.s1:theme.typography.size.s2-1,"px"),fontWeight:theme.typography.weight.bold,lineHeight:"1",svg:{display:"inline-block",height:small?14:16,width:small?14:16,verticalAlign:"top",marginRight:small?4:6,marginTop:small?-1:-2,marginBottom:small?-1:-2,pointerEvents:"none",path:{fill:"currentColor"}}}}),(function(_ref52){return _ref52.disabled?{cursor:"not-allowed !important",opacity:.5,"&:hover":{transform:"none"}}:{}}),(function(_ref53){var containsIcon=_ref53.containsIcon,small=_ref53.small;return containsIcon?Object.assign({svg:{display:"block",margin:0}},small?{padding:9}:{padding:12}):{}}),(function(_ref54){var color,theme=_ref54.theme,primary=_ref54.primary,secondary=_ref54.secondary,gray=_ref54.gray;return gray?color=theme.color.medium:secondary?color=theme.color.secondary:primary&&(color=theme.color.primary),color?{background:color,color:gray?theme.color.darkest:theme.color.lightest,"&:hover":{background:curriedDarken$1(.05,color)},"&:active":{boxShadow:"rgba(0, 0, 0, 0.1) 0 0 0 3em inset"},"&:focus":{boxShadow:"".concat(rgba(color,1)," 0 1px 9px 2px"),outline:"none"},"&:focus:hover":{boxShadow:"".concat(rgba(color,.2)," 0 8px 18px 0px")}}:{}}),(function(_ref55){var theme=_ref55.theme,tertiary=_ref55.tertiary,inForm=_ref55.inForm,small=_ref55.small;return tertiary?Object.assign(Object.assign({background:"light"===theme.base?curriedDarken$1(.02,theme.input.background):curriedLighten$1(.02,theme.input.background),color:theme.input.color,boxShadow:"".concat(theme.input.border," 0 0 0 1px inset"),borderRadius:theme.input.borderRadius},inForm&&small?{padding:"10px 16px"}:{}),{"&:hover":Object.assign({background:"light"===theme.base?curriedDarken$1(.05,theme.input.background):curriedLighten$1(.05,theme.input.background)},inForm?{}:{boxShadow:"rgba(0,0,0,.2) 0 2px 6px 0, rgba(0,0,0,.1) 0 0 0 1px inset"}),"&:active":{background:theme.input.background},"&:focus":{boxShadow:"".concat(rgba(theme.color.secondary,1)," 0 0 0 1px inset"),outline:"none"}}):{}}),(function(_ref56){var theme=_ref56.theme;return _ref56.outline?{boxShadow:"".concat(curriedTransparentize$1(.8,theme.color.defaultText)," 0 0 0 1px inset"),color:curriedTransparentize$1(.3,theme.color.defaultText),background:"transparent","&:hover, &:focus":{boxShadow:"".concat(curriedTransparentize$1(.5,theme.color.defaultText)," 0 0 0 1px inset"),outline:"none"},"&:active":{boxShadow:"".concat(curriedTransparentize$1(.5,theme.color.defaultText)," 0 0 0 2px inset"),color:curriedTransparentize$1(0,theme.color.defaultText)}}:{}}),(function(_ref57){var theme=_ref57.theme,outline=_ref57.outline,primary=_ref57.primary,color=theme.color.primary;return outline&&primary?{boxShadow:"".concat(color," 0 0 0 1px inset"),color:color,"svg path":{fill:color},"&:hover":{boxShadow:"".concat(color," 0 0 0 1px inset"),background:"transparent"},"&:active":{background:color,boxShadow:"".concat(color," 0 0 0 1px inset"),color:theme.color.tertiary},"&:focus":{boxShadow:"".concat(color," 0 0 0 1px inset, ").concat(rgba(color,.4)," 0 1px 9px 2px"),outline:"none"},"&:focus:hover":{boxShadow:"".concat(color," 0 0 0 1px inset, ").concat(rgba(color,.2)," 0 8px 18px 0px")}}:{}}),(function(_ref58){var color,theme=_ref58.theme,outline=_ref58.outline,primary=_ref58.primary;return _ref58.secondary?color=theme.color.secondary:primary&&(color=theme.color.primary),outline&&color?{boxShadow:"".concat(color," 0 0 0 1px inset"),color:color,"svg path":{fill:color},"&:hover":{boxShadow:"".concat(color," 0 0 0 1px inset"),background:"transparent"},"&:active":{background:color,boxShadow:"".concat(color," 0 0 0 1px inset"),color:theme.color.tertiary},"&:focus":{boxShadow:"".concat(color," 0 0 0 1px inset, ").concat(rgba(color,.4)," 0 1px 9px 2px"),outline:"none"},"&:focus:hover":{boxShadow:"".concat(color," 0 0 0 1px inset, ").concat(rgba(color,.2)," 0 8px 18px 0px")}}:{}})),ButtonLink=ButtonWrapper.withComponent("a"),Button$2=Object.assign(Object(react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)((function(_a,ref){var isLink=_a.isLink,children=_a.children,props=__rest(_a,["isLink","children"]);return isLink?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ButtonLink,Object.assign({},props,{ref:ref}),children):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ButtonWrapper,Object.assign({},props,{ref:ref}),children)})),{defaultProps:{isLink:!1}}),Wrapper$7=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.label((function(_ref59){var theme=_ref59.theme;return{display:"flex",borderBottom:"1px solid ".concat(theme.appBorderColor),margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}}})),Label$4=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.span((function(_ref60){return{minWidth:100,fontWeight:_ref60.theme.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"}})),Field=function Field(_a){var label=_a.label,children=_a.children,props=__rest(_a,["label","children"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Wrapper$7,Object.assign({},props),label?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Label$4,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",null,label)):null,children)};function _extends(){return _extends=Object.assign||function(target){for(var i=1;i=0||(target[key]=source[key]);return target}Field.defaultProps={label:void 0};var index$1="undefined"!=typeof document?react__WEBPACK_IMPORTED_MODULE_51__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_51__.useEffect,useLatest=function useLatest(value){var ref=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)(value);return index$1((function(){ref.current=value})),ref},updateRef=function updateRef(ref,value){"function"!=typeof ref?ref.current=value:ref(value)},useComposedRef=function useComposedRef(libRef,userRef){var prevUserRef=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)();return Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(instance){libRef.current=instance,prevUserRef.current&&updateRef(prevUserRef.current,null),prevUserRef.current=userRef,userRef&&updateRef(userRef,instance)}),[userRef])},HIDDEN_TEXTAREA_STYLE={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},forceHiddenStyles=function forceHiddenStyles(node){Object.keys(HIDDEN_TEXTAREA_STYLE).forEach((function(key){node.style.setProperty(key,HIDDEN_TEXTAREA_STYLE[key],"important")}))},hiddenTextarea=null,getHeight=function getHeight(node,sizingData){var height=node.scrollHeight;return"border-box"===sizingData.sizingStyle.boxSizing?height+sizingData.borderSize:height-sizingData.paddingSize};function calculateNodeHeight(sizingData,value,minRows,maxRows){void 0===minRows&&(minRows=1),void 0===maxRows&&(maxRows=1/0),hiddenTextarea||((hiddenTextarea=document.createElement("textarea")).setAttribute("tabindex","-1"),hiddenTextarea.setAttribute("aria-hidden","true"),forceHiddenStyles(hiddenTextarea)),null===hiddenTextarea.parentNode&&document.body.appendChild(hiddenTextarea);var paddingSize=sizingData.paddingSize,borderSize=sizingData.borderSize,sizingStyle=sizingData.sizingStyle,boxSizing=sizingStyle.boxSizing;Object.keys(sizingStyle).forEach((function(_key){var key=_key;hiddenTextarea.style[key]=sizingStyle[key]})),forceHiddenStyles(hiddenTextarea),hiddenTextarea.value=value;var height=getHeight(hiddenTextarea,sizingData);hiddenTextarea.value="x";var rowHeight=hiddenTextarea.scrollHeight-paddingSize,minHeight=rowHeight*minRows;"border-box"===boxSizing&&(minHeight=minHeight+paddingSize+borderSize),height=Math.max(minHeight,height);var maxHeight=rowHeight*maxRows;return"border-box"===boxSizing&&(maxHeight=maxHeight+paddingSize+borderSize),[height=Math.min(maxHeight,height),rowHeight]}var noop$2=function noop(){},pick=function pick(props,obj){return props.reduce((function(acc,prop){return acc[prop]=obj[prop],acc}),{})},SIZING_STYLE=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],isIE="undefined"!=typeof document&&!!document.documentElement.currentStyle,getSizingData=function getSizingData(node){var style=window.getComputedStyle(node);if(null===style)return null;var sizingStyle=pick(SIZING_STYLE,style),boxSizing=sizingStyle.boxSizing;return""===boxSizing?null:(isIE&&"border-box"===boxSizing&&(sizingStyle.width=parseFloat(sizingStyle.width)+parseFloat(sizingStyle.borderRightWidth)+parseFloat(sizingStyle.borderLeftWidth)+parseFloat(sizingStyle.paddingRight)+parseFloat(sizingStyle.paddingLeft)+"px"),{sizingStyle:sizingStyle,paddingSize:parseFloat(sizingStyle.paddingBottom)+parseFloat(sizingStyle.paddingTop),borderSize:parseFloat(sizingStyle.borderBottomWidth)+parseFloat(sizingStyle.borderTopWidth)})},useWindowResizeListener=function useWindowResizeListener(listener){var latestListener=useLatest(listener);Object(react__WEBPACK_IMPORTED_MODULE_51__.useLayoutEffect)((function(){var handler=function handler(event){latestListener.current(event)};return window.addEventListener("resize",handler),function(){window.removeEventListener("resize",handler)}}),[])},TextareaAutosize=function TextareaAutosize(_ref,userRef){var cacheMeasurements=_ref.cacheMeasurements,maxRows=_ref.maxRows,minRows=_ref.minRows,_ref$onChange=_ref.onChange,onChange=void 0===_ref$onChange?noop$2:_ref$onChange,_ref$onHeightChange=_ref.onHeightChange,onHeightChange=void 0===_ref$onHeightChange?noop$2:_ref$onHeightChange,props=_objectWithoutPropertiesLoose(_ref,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]);var isControlled=void 0!==props.value,libRef=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)(null),ref=useComposedRef(libRef,userRef),heightRef=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)(0),measurementsCacheRef=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)(),resizeTextarea=function resizeTextarea(){var node=libRef.current,nodeSizingData=cacheMeasurements&&measurementsCacheRef.current?measurementsCacheRef.current:getSizingData(node);if(nodeSizingData){measurementsCacheRef.current=nodeSizingData;var _calculateNodeHeight=calculateNodeHeight(nodeSizingData,node.value||node.placeholder||"x",minRows,maxRows),height=_calculateNodeHeight[0],rowHeight=_calculateNodeHeight[1];heightRef.current!==height&&(heightRef.current=height,node.style.setProperty("height",height+"px","important"),onHeightChange(height,{rowHeight:rowHeight}))}};return"undefined"!=typeof document&&(Object(react__WEBPACK_IMPORTED_MODULE_51__.useLayoutEffect)(resizeTextarea),useWindowResizeListener(resizeTextarea)),Object(react__WEBPACK_IMPORTED_MODULE_51__.createElement)("textarea",_extends({},props,{onChange:function handleChange(event){isControlled||resizeTextarea(),onChange(event)},ref:ref}))},index=Object(react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)(TextareaAutosize),TextareaAutoResize=index,styleResets$1={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},styles=function styles(_ref61){var theme=_ref61.theme;return Object.assign(Object.assign({},styleResets$1),{transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:theme.input.color||"inherit",background:theme.input.background,boxShadow:"".concat(theme.input.border," 0 0 0 1px inset"),borderRadius:theme.input.borderRadius,fontSize:theme.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px","&:focus":{boxShadow:"".concat(theme.color.secondary," 0 0 0 1px inset"),outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 3em ".concat(theme.color.lightest," inset")},"::placeholder":{color:theme.color.mediumdark}})},sizes=function sizes(_ref62){switch(_ref62.size){case"100%":return{width:"100%"};case"flex":return{flex:1};default:return{display:"inline"}}},alignment=function alignment(_ref63){switch(_ref63.align){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};default:return{textAlign:"left"}}},validation=function validation(_ref64){var valid=_ref64.valid,theme=_ref64.theme;switch(valid){case"valid":return{boxShadow:"".concat(theme.color.positive," 0 0 0 1px inset !important")};case"error":return{boxShadow:"".concat(theme.color.negative," 0 0 0 1px inset !important")};case"warn":return{boxShadow:"".concat(theme.color.warning," 0 0 0 1px inset")};default:return{}}},Input$1=Object.assign(Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i)(Object(react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)((function(_a,ref){var props=__rest(_a,["size","valid","align"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("input",Object.assign({},props,{ref:ref}))})))(styles,sizes,alignment,validation,{minHeight:32}),{displayName:"Input"}),Select=Object.assign(Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i)(Object(react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)((function(_a,ref){var props=__rest(_a,["size","valid","align"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("select",Object.assign({},props,{ref:ref}))})))(styles,sizes,validation,{height:32,userSelect:"none",paddingRight:20,appearance:"menulist"}),{displayName:"Select"}),Textarea=Object.assign(Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i)(Object(react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)((function(_a,ref){var props=__rest(_a,["size","valid","align"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(TextareaAutoResize,Object.assign({},props,{ref:ref}))})))(styles,sizes,alignment,validation,(function(_ref65){var _ref65$height=_ref65.height;return{overflow:"visible",maxHeight:void 0===_ref65$height?400:_ref65$height}})),{displayName:"Textarea"}),ButtonStyled=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i)(Object(react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)((function(_a,ref){var props=__rest(_a,["size","valid","align"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Button$2,Object.assign({},props,{ref:ref}))})))(sizes,validation,{userSelect:"none",overflow:"visible",zIndex:2,"&:hover":{transform:"none"}}),Button$1=Object.assign(Object(react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)((function(props,ref){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ButtonStyled,Object.assign({},props,{tertiary:!0,small:!0,inForm:!0},{ref:ref}))})),{displayName:"Button"}),Form=Object.assign(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.form({boxSizing:"border-box",width:"100%"}),{Field:Field,Input:Input$1,Select:Select,Textarea:Textarea,Button:Button$1}),LazyWithTooltip=Object(react__WEBPACK_IMPORTED_MODULE_51__.lazy)((function(){return __webpack_require__.e(3).then(__webpack_require__.bind(null,"./node_modules/@storybook/components/dist/esm/WithTooltip-167e9982.js")).then((function(mod){return{default:mod.WithTooltip}}))})),WithTooltip=function WithTooltip(props){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",null)},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(LazyWithTooltip,Object.assign({},props)))},LazyWithTooltipPure=Object(react__WEBPACK_IMPORTED_MODULE_51__.lazy)((function(){return __webpack_require__.e(3).then(__webpack_require__.bind(null,"./node_modules/@storybook/components/dist/esm/WithTooltip-167e9982.js")).then((function(mod){return{default:mod.WithTooltipPure}}))})),WithTooltipPure=function WithTooltipPure(props){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",null)},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(LazyWithTooltipPure,Object.assign({},props)))},Title$2=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref66){return{fontWeight:_ref66.theme.typography.weight.black}})),Desc=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.span(),Links=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref67){return{marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:_ref67.theme.typography.weight.black}}})),Message=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref68){return{color:_ref68.theme.textColor,lineHeight:"18px"}})),MessageWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div({padding:15,width:280,boxSizing:"border-box"}),TooltipMessage=function TooltipMessage(_ref69){var title=_ref69.title,desc=_ref69.desc,links=_ref69.links;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(MessageWrapper,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Message,null,title&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Title$2,null,title),desc&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Desc,null,desc)),links&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Links,null,links.map((function(_a){var linkTitle=_a.title,other=__rest(_a,["title"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Link,Object.assign({},other,{key:linkTitle}),linkTitle)}))))};TooltipMessage.defaultProps={title:null,desc:null,links:null};var Note=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref70){var theme=_ref70.theme;return{padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:theme.typography.weight.bold,color:theme.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:"light"===theme.base?"rgba(60, 60, 60, 0.9)":"rgba(20, 20, 20, 0.85)",margin:6}})),TooltipNote=function TooltipNote(_a){var note=_a.note,props=__rest(_a,["note"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Note,Object.assign({},props),note)},Title$1=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i)((function(_a){var rest=__rest(_a,["active","loading","disabled"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",Object.assign({},rest))}))((function(_ref71){var theme=_ref71.theme;return{color:theme.color.defaultText,fontWeight:theme.typography.weight.regular}}),(function(_ref72){var active=_ref72.active,theme=_ref72.theme;return active?{color:theme.color.primary,fontWeight:theme.typography.weight.bold}:{}}),(function(_ref73){var loading=_ref73.loading,theme=_ref73.theme;return loading?Object.assign({display:"inline-block",flex:"none"},theme.animation.inlineGlow):{}}),(function(_ref74){var disabled=_ref74.disabled,theme=_ref74.theme;return disabled?{color:curriedTransparentize$1(.7,theme.color.defaultText)}:{}})),Right=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.span({"& svg":{transition:"all 200ms ease-out",opacity:0,height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}},(function(_ref75){var active=_ref75.active,theme=_ref75.theme;return active?{"& svg":{opacity:1},"& path":{fill:theme.color.primary}}:{}})),Center=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.span({flex:1,textAlign:"left",display:"inline-flex","& > * + *":{paddingLeft:10}}),CenterText=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.span({flex:1,textAlign:"center"},(function(_ref76){var active=_ref76.active,theme=_ref76.theme;return active?{color:theme.color.primary}:{}}),(function(_ref77){var theme=_ref77.theme;return _ref77.disabled?{color:theme.color.mediumdark}:{}})),Left=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.span((function(_ref78){var active=_ref78.active,theme=_ref78.theme;return active?{"& svg":{opacity:1},"& path":{fill:theme.color.primary}}:{}})),Item$3=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.a((function(_ref79){var theme=_ref79.theme;return{fontSize:theme.typography.size.s1,transition:"all 150ms ease-out",color:curriedTransparentize$1(.5,theme.color.defaultText),textDecoration:"none",cursor:"pointer",justifyContent:"space-between",lineHeight:"18px",padding:"7px 15px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:hover":{background:theme.background.hoverable},"&:hover svg":{opacity:1}}}),(function(_ref80){return _ref80.disabled?{cursor:"not-allowed"}:{}})),getItemProps=memoizerific__WEBPACK_IMPORTED_MODULE_53___default()(100)((function(onClick,href,LinkWrapper){var result={};return onClick&&Object.assign(result,{onClick:onClick}),href&&Object.assign(result,{href:href}),LinkWrapper&&href&&Object.assign(result,{to:href,as:LinkWrapper}),result})),ListItem=function ListItem(_a){var loading=_a.loading,left=_a.left,title=_a.title,center=_a.center,right=_a.right,active=_a.active,disabled=_a.disabled,href=_a.href,onClick=_a.onClick,LinkWrapper=_a.LinkWrapper,rest=__rest(_a,["loading","left","title","center","right","active","disabled","href","onClick","LinkWrapper"]),itemProps=getItemProps(onClick,href,LinkWrapper),commonProps={active:active,disabled:disabled};return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Item$3,Object.assign({},commonProps,rest,itemProps),left&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Left,Object.assign({},commonProps),left),title||center?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Center,null,title&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Title$1,Object.assign({},commonProps,{loading:loading}),title),center&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(CenterText,Object.assign({},commonProps),center)):null,right&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Right,Object.assign({},commonProps),right))};ListItem.defaultProps={loading:!1,left:null,title:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",null,"Loading state"),center:null,right:null,active:!1,disabled:!1,href:null,LinkWrapper:null,onClick:null};var List$2=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:432},(function(_ref81){return{borderRadius:2*_ref81.theme.appBorderRadius}})),Item$2=function Item$2(props){var LinkWrapper=props.LinkWrapper,onClickFromProps=props.onClick,rest=__rest(props,["LinkWrapper","onClick"]),title=rest.title,href=rest.href,active=rest.active,onClick=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(event){onClickFromProps(event,rest)}),[onClickFromProps]),hasOnClick=!!onClickFromProps;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ListItem,Object.assign({title:title,active:active,href:href,LinkWrapper:LinkWrapper},rest,hasOnClick?{onClick:onClick}:{}))},TooltipLinkList=function TooltipLinkList(_ref82){var links=_ref82.links,LinkWrapper=_ref82.LinkWrapper;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(List$2,null,links.map((function(_a){var isGatsby=_a.isGatsby,p=__rest(_a,["isGatsby"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Item$2,Object.assign({key:p.id,LinkWrapper:isGatsby?LinkWrapper:null},p))})))};TooltipLinkList.defaultProps={LinkWrapper:ListItem.defaultProps.LinkWrapper};var Side=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",flexShrink:0,marginLeft:3,marginRight:3},(function(_ref83){return _ref83.left?{"& > *":{marginLeft:4}}:{}}),(function(_ref84){return _ref84.right?{marginLeft:30,"& > *":{marginRight:4}}:{}}));Side.displayName="Side";var Bar$1=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i)((function(_ref85){var children=_ref85.children,className=_ref85.className;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ScrollArea,{horizontal:!0,vertical:!1,className:className},children)}))((function(_ref86){return{color:_ref86.theme.barTextColor,width:"100%",height:40,flexShrink:0,overflow:"auto",overflowY:"hidden"}}),(function(_ref87){var theme=_ref87.theme;return _ref87.border?{boxShadow:"".concat(theme.appBorderColor," 0 -1px 0 0 inset"),background:theme.barBg}:{}}));Bar$1.displayName="Bar";var BarInner=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref88){return{display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:_ref88.bgColor||""}})),FlexBar=function FlexBar(_a){var children=_a.children,backgroundColor=_a.backgroundColor,rest=__rest(_a,["children","backgroundColor"]),_Children$toArray4=_slicedToArray(react__WEBPACK_IMPORTED_MODULE_51__.Children.toArray(children),2),left=_Children$toArray4[0],right=_Children$toArray4[1];return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Bar$1,Object.assign({},rest),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(BarInner,{bgColor:backgroundColor},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Side,{left:!0},left),right?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Side,{right:!0},right):null))};FlexBar.displayName="FlexBar";var top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce((function(acc,placement){return acc.concat([placement+"-"+start,placement+"-"+end])}),[]),placements=[].concat(basePlacements,[auto]).reduce((function(acc,placement){return acc.concat([placement,placement+"-"+start,placement+"-"+end])}),[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite],ButtonOrLink=function ButtonOrLink(_a){var children=_a.children,restProps=__rest(_a,["children"]);return null!=restProps.href?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("a",Object.assign({},restProps),children):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("button",Object.assign({type:"button"},restProps),children)},TabButton=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i)(ButtonOrLink,{shouldForwardProp:_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.f})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"}},(function(_ref89){return{padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:_ref89.theme.color.secondary}}}),(function(_ref90){var active=_ref90.active,textColor=_ref90.textColor,theme=_ref90.theme;return active?{color:textColor||theme.barSelectedColor,borderBottomColor:theme.barSelectedColor}:{color:textColor||theme.barTextColor,borderBottomColor:"transparent"}}));TabButton.displayName="TabButton";var IconButton=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i)(ButtonOrLink,{shouldForwardProp:_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.f})((function(){return{alignItems:"center",background:"transparent",border:"none",borderRadius:4,color:"inherit",cursor:"pointer",display:"inline-flex",fontSize:13,fontWeight:"bold",height:28,justifyContent:"center",marginTop:6,padding:"8px 7px","& > svg":{width:14}}}),(function(_ref91){var active=_ref91.active,theme=_ref91.theme;return active?{backgroundColor:theme.background.hoverable,color:theme.color.secondary}:{}}),(function(_ref92){var disabled=_ref92.disabled,theme=_ref92.theme;return disabled?{opacity:.5,cursor:"not-allowed"}:{"&:hover, &:focus-visible":{background:curriedTransparentize$1(.88,theme.color.secondary),color:theme.color.secondary},"&:focus-visible":{outline:auto},"&:focus:not(:focus-visible)":{outline:"none"}}}));IconButton.displayName="IconButton";var IconPlaceholder=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref93){var theme=_ref93.theme;return{width:14,height:14,backgroundColor:theme.appBorderColor,animation:"".concat(theme.animation.glow," 1.5s ease-in-out infinite")}})),IconButtonSkeletonWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(){return{marginTop:6,padding:7,height:28}})),IconButtonSkeleton=function IconButtonSkeleton(){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(IconButtonSkeletonWrapper,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(IconPlaceholder,null))},Wrapper$6=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref94){var theme=_ref94.theme;return _ref94.bordered?{backgroundClip:"padding-box",border:"1px solid ".concat(theme.appBorderColor),borderRadius:theme.appBorderRadius,overflow:"hidden",boxSizing:"border-box"}:{}}),(function(_ref95){return _ref95.absolute?{width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"}:{display:"block"}})),TabBar=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div({overflow:"hidden","&:first-of-type":{marginLeft:-3}}),Content=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div({display:"block",position:"relative"},(function(_ref96){var theme=_ref96.theme;return{fontSize:theme.typography.size.s2-1,background:theme.background.content}}),(function(_ref97){var bordered=_ref97.bordered,theme=_ref97.theme;return bordered?{borderRadius:"0 0 ".concat(theme.appBorderRadius-1,"px ").concat(theme.appBorderRadius-1,"px")}:{}}),(function(_ref98){var absolute=_ref98.absolute,bordered=_ref98.bordered;return absolute?_defineProperty2({height:"calc(100% - ".concat(bordered?42:40,"px)"),position:"absolute",left:0+(bordered?1:0),right:0+(bordered?1:0),bottom:0+(bordered?1:0),top:40+(bordered?1:0),overflow:"auto"},"& > *:first-child",{position:"absolute",left:0+(bordered?1:0),right:0+(bordered?1:0),bottom:0+(bordered?1:0),top:0+(bordered?1:0),height:"calc(100% - ".concat(bordered?2:0,"px)"),overflow:"auto"}):{}})),VisuallyHidden=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref100){return _ref100.active?{display:"block"}:{display:"none"}})),TabWrapper=function TabWrapper(_ref101){var active=_ref101.active,render=_ref101.render,children=_ref101.children;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(VisuallyHidden,{active:active},render?render():children)},childrenToList=function childrenToList(children,selected){return react__WEBPACK_IMPORTED_MODULE_51__.Children.toArray(children).map((function(_ref102,index){var _ref102$props=_ref102.props,title=_ref102$props.title,id=_ref102$props.id,color=_ref102$props.color,childrenOfChild=_ref102$props.children,content=Array.isArray(childrenOfChild)?childrenOfChild[0]:childrenOfChild;return{active:selected?id===selected:0===index,title:title,id:id,color:color,render:"function"==typeof content?content:function(_ref103){var active=_ref103.active,key=_ref103.key;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(VisuallyHidden,{key:key,active:active,role:"tabpanel"},content)}}}))},Tabs=Object(react__WEBPACK_IMPORTED_MODULE_51__.memo)((function(_ref104){var children=_ref104.children,selected=_ref104.selected,actions=_ref104.actions,absolute=_ref104.absolute,bordered=_ref104.bordered,tools=_ref104.tools,backgroundColor=_ref104.backgroundColor,htmlId=_ref104.id,list=childrenToList(children,selected);return list.length?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Wrapper$6,{absolute:absolute,bordered:bordered,id:htmlId},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(FlexBar,{border:!0,backgroundColor:backgroundColor},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(TabBar,{role:"tablist"},list.map((function(_ref105){var title=_ref105.title,id=_ref105.id,active=_ref105.active,color=_ref105.color,tabTitle="function"==typeof title?title():title;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(TabButton,{id:"tabbutton-".concat(Object(_storybook_csf__WEBPACK_IMPORTED_MODULE_54__.sanitize)(tabTitle)),className:"tabbutton ".concat(active?"tabbutton-active":""),type:"button",key:id,active:active,textColor:color,onClick:function onClick(e){e.preventDefault(),actions.onSelect(id)},role:"tab"},tabTitle)}))),tools?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,null,tools):null),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Content,{id:"panel-tab-content",bordered:bordered,absolute:absolute},list.map((function(_ref106){var id=_ref106.id,active=_ref106.active;return(0,_ref106.render)({key:id,active:active})})))):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Placeholder,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,{key:"title"},"Nothing found"))}));Tabs.displayName="Tabs",Tabs.defaultProps={id:null,children:null,tools:null,selected:null,absolute:!1,bordered:!1};var TabsState=function(_Component2){_inherits(TabsState,_Component2);var _super2=_createSuper(TabsState);function TabsState(props){var _this3;return _classCallCheck(this,TabsState),(_this3=_super2.call(this,props)).handlers={onSelect:function onSelect(id){return _this3.setState({selected:id})}},_this3.state={selected:props.initial},_this3}return _createClass(TabsState,[{key:"render",value:function render(){var _this$props2=this.props,_this$props2$bordered=_this$props2.bordered,bordered=void 0!==_this$props2$bordered&&_this$props2$bordered,_this$props2$absolute=_this$props2.absolute,absolute=void 0!==_this$props2$absolute&&_this$props2$absolute,children=_this$props2.children,backgroundColor=_this$props2.backgroundColor,selected=this.state.selected;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Tabs,{bordered:bordered,absolute:absolute,selected:selected,backgroundColor:backgroundColor,actions:this.handlers},children)}}]),TabsState}(react__WEBPACK_IMPORTED_MODULE_51__.Component);TabsState.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:""};var Separator=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.span((function(_ref107){return{width:1,height:20,background:_ref107.theme.appBorderColor,marginTop:10,marginLeft:6,marginRight:2}}),(function(_ref108){return _ref108.force?{}:{"& + &":{display:"none"}}}));Separator.displayName="Separator";var interleaveSeparators=function interleaveSeparators(list){return list.reduce((function(acc,item,index){return item?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,{key:item.id||item.key||"f-".concat(index)},acc,index>0?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Separator,{key:"s-".concat(index)}):null,item.render()||item):acc}),null)},usePrevious=function usePrevious(value){var ref=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)();return Object(react__WEBPACK_IMPORTED_MODULE_51__.useEffect)((function(){ref.current=value}),[value]),ref.current},useUpdate=function useUpdate(update,value){var previousValue=usePrevious(value);return update?value:previousValue},AddonPanel=function AddonPanel(_ref109){var active=_ref109.active,children=_ref109.children;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",{hidden:!active,style:{transform:"translateX(0px)"}},useUpdate(active,children))},StorybookLogo=function StorybookLogo(_a){var alt=_a.alt,props=__rest(_a,["alt"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("svg",Object.assign({width:"200px",height:"40px",viewBox:"0 0 200 40"},props,{role:"img"}),alt?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("title",null,alt):null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("defs",null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("path",{d:"M1.2 36.9L0 3.9c0-1.1.8-2 1.9-2.1l28-1.8a2 2 0 0 1 2.2 1.9 2 2 0 0 1 0 .1v36a2 2 0 0 1-2 2 2 2 0 0 1-.1 0L3.2 38.8a2 2 0 0 1-2-2z",id:"a"})),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("g",{fill:"none",fillRule:"evenodd"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("path",{d:"M53.3 31.7c-1.7 0-3.4-.3-5-.7-1.5-.5-2.8-1.1-3.9-2l1.6-3.5c2.2 1.5 4.6 2.3 7.3 2.3 1.5 0 2.5-.2 3.3-.7.7-.5 1.1-1 1.1-1.9 0-.7-.3-1.3-1-1.7s-2-.8-3.7-1.2c-2-.4-3.6-.9-4.8-1.5-1.1-.5-2-1.2-2.6-2-.5-1-.8-2-.8-3.2 0-1.4.4-2.6 1.2-3.6.7-1.1 1.8-2 3.2-2.6 1.3-.6 2.9-.9 4.7-.9 1.6 0 3.1.3 4.6.7 1.5.5 2.7 1.1 3.5 2l-1.6 3.5c-2-1.5-4.2-2.3-6.5-2.3-1.3 0-2.3.2-3 .8-.8.5-1.2 1.1-1.2 2 0 .5.2 1 .5 1.3.2.3.7.6 1.4.9l2.9.8c2.9.6 5 1.4 6.2 2.4a5 5 0 0 1 2 4.2 6 6 0 0 1-2.5 5c-1.7 1.2-4 1.9-7 1.9zm21-3.6l1.4-.1-.2 3.5-1.9.1c-2.4 0-4.1-.5-5.2-1.5-1.1-1-1.6-2.7-1.6-4.8v-6h-3v-3.6h3V11h4.8v4.6h4v3.6h-4v6c0 1.8.9 2.8 2.6 2.8zm11.1 3.5c-1.6 0-3-.3-4.3-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.3-1 1.7 0 3.2.3 4.4 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.4 1zm0-3.6c2.4 0 3.6-1.6 3.6-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.6-1c-2.3 0-3.5 1.4-3.5 4.4 0 3 1.2 4.6 3.5 4.6zm21.7-8.8l-2.7.3c-1.3.2-2.3.5-2.8 1.2-.6.6-.9 1.4-.9 2.5v8.2H96V15.7h4.6v2.6c.8-1.8 2.5-2.8 5-3h1.3l.3 4zm14-3.5h4.8L116.4 37h-4.9l3-6.6-6.4-14.8h5l4 10 4-10zm16-.4c1.4 0 2.6.3 3.6 1 1 .6 1.9 1.6 2.5 2.8.6 1.2.9 2.7.9 4.3 0 1.6-.3 3-1 4.3a6.9 6.9 0 0 1-2.4 2.9c-1 .7-2.2 1-3.6 1-1 0-2-.2-3-.7-.8-.4-1.5-1-2-1.9v2.4h-4.7V8.8h4.8v9c.5-.8 1.2-1.4 2-1.9.9-.4 1.8-.6 3-.6zM135.7 28c1.1 0 2-.4 2.6-1.2.6-.8 1-2 1-3.4 0-1.5-.4-2.5-1-3.3s-1.5-1.1-2.6-1.1-2 .3-2.6 1.1c-.6.8-1 2-1 3.3 0 1.5.4 2.6 1 3.4.6.8 1.5 1.2 2.6 1.2zm18.9 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.3 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm18 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.4 1a7 7 0 0 1 2.9 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm27.4 3.4h-6l-6-7v7h-4.8V8.8h4.9v13.6l5.8-6.7h5.7l-6.6 7.5 7 8.2z",fill:"currentColor"}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("mask",{id:"b",fill:"#fff"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("use",{xlinkHref:"#a"})),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("use",{fill:"#FF4785",fillRule:"nonzero",xlinkHref:"#a"}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("path",{d:"M23.7 5L24 .2l3.9-.3.1 4.8a.3.3 0 0 1-.5.2L26 3.8l-1.7 1.4a.3.3 0 0 1-.5-.3zm-5 10c0 .9 5.3.5 6 0 0-5.4-2.8-8.2-8-8.2-5.3 0-8.2 2.8-8.2 7.1 0 7.4 10 7.6 10 11.6 0 1.2-.5 1.9-1.8 1.9-1.6 0-2.2-.9-2.1-3.6 0-.6-6.1-.8-6.3 0-.5 6.7 3.7 8.6 8.5 8.6 4.6 0 8.3-2.5 8.3-7 0-7.9-10.2-7.7-10.2-11.6 0-1.6 1.2-1.8 2-1.8.6 0 2 0 1.9 3z",fill:"#FFF",fillRule:"nonzero",mask:"url(#b)"})))},StorybookIcon=function StorybookIcon(_a){var props=__rest(_a,[]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("svg",Object.assign({viewBox:"0 0 64 64"},props),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("title",null,"Storybook icon"),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("g",{id:"Artboard",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("path",{d:"M8.04798541,58.7875918 L6.07908839,6.32540407 C6.01406344,4.5927838 7.34257463,3.12440831 9.07303814,3.01625434 L53.6958037,0.227331489 C55.457209,0.117243658 56.974354,1.45590096 57.0844418,3.21730626 C57.0885895,3.28366922 57.0906648,3.35014546 57.0906648,3.41663791 L57.0906648,60.5834697 C57.0906648,62.3483119 55.6599776,63.7789992 53.8951354,63.7789992 C53.847325,63.7789992 53.7995207,63.7779262 53.7517585,63.775781 L11.0978899,61.8600599 C9.43669044,61.7854501 8.11034889,60.4492961 8.04798541,58.7875918 Z",id:"path-1",fill:"#FF4785",fillRule:"nonzero"}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("path",{d:"M35.9095005,24.1768792 C35.9095005,25.420127 44.2838488,24.8242707 45.4080313,23.9509748 C45.4080313,15.4847538 40.8652557,11.0358878 32.5466666,11.0358878 C24.2280775,11.0358878 19.5673077,15.553972 19.5673077,22.3311017 C19.5673077,34.1346028 35.4965208,34.3605071 35.4965208,40.7987804 C35.4965208,42.606015 34.6115646,43.6790606 32.6646607,43.6790606 C30.127786,43.6790606 29.1248356,42.3834613 29.2428298,37.9783269 C29.2428298,37.0226907 19.5673077,36.7247626 19.2723223,37.9783269 C18.5211693,48.6535354 25.1720308,51.7326752 32.7826549,51.7326752 C40.1572906,51.7326752 45.939005,47.8018145 45.939005,40.6858282 C45.939005,28.035186 29.7738035,28.3740425 29.7738035,22.1051974 C29.7738035,19.5637737 31.6617103,19.2249173 32.7826549,19.2249173 C33.9625966,19.2249173 36.0864917,19.4328883 35.9095005,24.1768792 Z",id:"path9_fill-path",fill:"#FFFFFF",fillRule:"nonzero"}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("path",{d:"M44.0461638,0.830433986 L50.1874092,0.446606143 L50.443532,7.7810017 C50.4527198,8.04410717 50.2468789,8.26484453 49.9837734,8.27403237 C49.871115,8.27796649 49.7607078,8.24184808 49.6721567,8.17209069 L47.3089847,6.3104681 L44.5110468,8.43287463 C44.3012992,8.591981 44.0022839,8.55092814 43.8431776,8.34118051 C43.7762017,8.25288717 43.742082,8.14401677 43.7466857,8.03329059 L44.0461638,0.830433986 Z",id:"Path",fill:"#FFFFFF"})))};function e(){return(e=Object.assign||function(t){for(var e=1;e",lt:"<",nbsp:" ",quot:"“"},a=["style","script"],u=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,i=/mailto:/i,l=/\n{2,}$/,s=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,_2=/^ *> ?/gm,f=/^ {2,}\n/,d=/^(?:( *[-*_]) *){3,}(?:\n *)+\n/,p=/^\s*(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n *)+\n?/,g=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,m=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,y=/^(?:\n *)*\n/,h=/\r\n?/g,k=/^\[\^([^\]]+)](:.*)\n/,x=/^\[\^([^\]]+)]/,v=/\f/g,b=/^\s*?\[(x|\s)\]/,S=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,$=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,w=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,z=/&([a-z]+);/g,E=/^)/,A=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,R=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,I=/^\{.*\}$/,M=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,O=/^<([^ >]+@[^ >]+)>/,B=/^<([^ >]+:\/[^ >]+)>/,L=/ *\n+$/,T=/(?:^|\n)( *)$/,j=/-([a-z])?/gi,C=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,D=/^\[([^\]]*)\]:\s*(\S+)\s*("([^"]*)")?/,N=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Z=/^\[([^\]]*)\] ?\[([^\]]*)\]/,F=/(\[|\])/g,P=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,G=/\t/g,H=/^ *\| */,q=/(^ *\||\| *$)/g,U=/ *$/,V=/^ *:-+: *$/,W=/^ *:-+ *$/,Q=/^ *-+: *$/,X=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,J=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,K=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,Y=/^\\([^0-9A-Za-z\s])/,tt=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,et=/^\n+/,nt=/^([ \t]*)/,rt=/\\([^0-9A-Z\s])/gi,ot=new RegExp("^( *)((?:[*+-]|\\d+\\.)) +"),ct=new RegExp("^( *)((?:[*+-]|\\d+\\.)) +[^\\n]*(?:\\n(?!\\1(?:[*+-]|\\d+\\.) )[^\\n]*)*(\\n|$)","gm"),at=new RegExp("^( *)((?:[*+-]|\\d+\\.)) [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1(?:[*+-]|\\d+\\.) (?!(?:[*+-]|\\d+\\.) ))\\n*|\\s*\\n*$)"),ut="(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*",it=new RegExp("^\\[("+ut+")\\]\\(\\s*?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),lt=new RegExp("^!\\[("+ut+")\\]\\(\\s*?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),st=[s,g,p,S,$,E,ct,at,C],_t=[].concat(st,[/^[^\n]+(?: \n|\n{2,})/,w,R]);function ft(t){return t.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function dt(t){return Q.test(t)?"right":V.test(t)?"center":W.test(t)?"left":null}function pt(t,e,n){var r=n.t;n.t=!0;var o=e(t.trim(),n);n.t=r;var c=[[]];return o.forEach((function(t,e){"tableSeparator"===t.type?0!==e&&e!==o.length-1&&c.push([]):("text"!==t.type||null!=o[e+1]&&"tableSeparator"!==o[e+1].type||(t.content=t.content.replace(U,"")),c[c.length-1].push(t))})),c}function gt(t,e,n){n.o=!0;var r=pt(t[1],e,n),o=t[2].replace(q,"").split("|").map(dt),c=function(t,e,n){return t.trim().split("\n").map((function(t){return pt(t,e,n)}))}(t[3],e,n);return n.o=!1,{align:o,cells:c,header:r,type:"table"}}function mt(t,e){return null==t.align[e]?{}:{textAlign:t.align[e]}}function yt(t){return function(e,n){return n.o?t.exec(e):null}}function ht(t){return function(e,n){return n.o||n.u?t.exec(e):null}}function kt(t){return function(e,n){return n.o||n.u?null:t.exec(e)}}function xt(t){return function(e){return t.exec(e)}}function vt(t,e,n){if(e.o||e.u)return null;if(n&&!n.endsWith("\n"))return null;var r="";t.split("\n").every((function(t){return!st.some((function(e){return e.test(t)}))&&(r+=t+"\n",t.trim())}));var o=r.trimEnd();return""==o?null:[r,o]}function bt(t){try{if(decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data):/i))return null}catch(t){return null}return t}function St(t){return t.replace(rt,"$1")}function $t(t,e,n){var r=n.o||!1,o=n.u||!1;n.o=!0,n.u=!0;var c=t(e,n);return n.o=r,n.u=o,c}function wt(t,e,n){var r=n.o||!1,o=n.u||!1;n.o=!1,n.u=!0;var c=t(e,n);return n.o=r,n.u=o,c}function zt(t,e,n){return n.o=!1,t(e+"\n\n",n)}var Et=function Et(t,e,n){return{content:$t(e,t[1],n)}},Ot,t;function At(){return{}}function Rt(){return null}function It(){for(var _len3=arguments.length,t=new Array(_len3),_key3=0;_key3<_len3;_key3++)t[_key3]=arguments[_key3];return t.filter(Boolean).join(" ")}function Mt(t,e,n){for(var r=t,o=e.split(".");o.length&&void 0!==(r=r[o[0]]);)o.shift();return r||n}function Bt(r){var q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};q.overrides=q.overrides||{},q.slugify=q.slugify||ft,q.namedCodesToUnicode=q.namedCodesToUnicode?e({},c,q.namedCodesToUnicode):c;var U=q.createElement||react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement;function V(t,n){for(var o=Mt(q.overrides,"".concat(t,".props"),{}),_len4=arguments.length,r=new Array(_len4>2?_len4-2:0),_key4=2;_key4<_len4;_key4++)r[_key4-2]=arguments[_key4];return U.apply(void 0,[function(t,e){var n=Mt(e,t);return n?"function"==typeof n||"object"==_typeof(n)&&"render"in n?n:Mt(e,"".concat(t,".component"),t):t}(t,q.overrides),e({},n,o,{className:It(null==n?void 0:n.className,o.className)||void 0})].concat(r))}function W(e){var n=!1;q.forceInline?n=!0:q.forceBlock||(n=!1===P.test(e));for(var r=pt(dt(n?e:"".concat(e.trimEnd().replace(et,""),"\n\n"),{o:n}));"string"==typeof r[r.length-1]&&!r[r.length-1].trim();)r.pop();if(null===q.wrapper)return r;var c,o=q.wrapper||(n?"span":"div");if(r.length>1||q.forceWrapper)c=r;else{if(1===r.length)return"string"==typeof(c=r[0])?V("span",{key:"outer"},c):c;c=null}return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(o,{key:"outer"},c)}function Q(e){var r=e.match(u);return r?r.reduce((function(e,r,c){var t,a=r.indexOf("=");if(-1!==a){var _u=(t=r.slice(0,a),-1!==t.indexOf("-")&&null===t.match(A)&&(t=t.replace(j,(function(t,e){return e.toUpperCase()}))),t).trim(),_i2=function(t){return t?(n.test(t.charAt(0))&&(t=t.substr(1)),n.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""}(r.slice(a+1).trim()),_l=o[_u]||_u,_s2=e[_l]=function(t,e){return"style"===t?e.split(/;\s?/).reduce((function(t,e){var n=e.slice(0,e.indexOf(":"));return t[n.replace(/(-[a-z])/g,(function(t){return t[1].toUpperCase()}))]=e.slice(n.length+1).trim(),t}),{}):"href"===t?bt(e):(e.match(I)&&(e=e.slice(1,e.length-1)),"true"===e||"false"!==e&&e)}(_u,_i2);"string"==typeof _s2&&(w.test(_s2)||R.test(_s2))&&(e[_l]=react__WEBPACK_IMPORTED_MODULE_51___default.a.cloneElement(W(_s2.trim()),{key:c}))}else"style"!==r&&(e[o[r]||r]=!0);return e}),{}):void 0}var rt=[],ut={},st={blockQuote:{i:kt(s),l:Ot.HIGH,_:function _(t,e,n){return{content:e(t[0].replace(_2,""),n)}},p:function p(t,e,n){return V("blockquote",{key:n.g},e(t.content,n))}},breakLine:{i:xt(f),l:Ot.HIGH,_:At,p:function p(t,e,n){return V("br",{key:n.g})}},breakThematic:{i:kt(d),l:Ot.HIGH,_:At,p:function p(t,e,n){return V("hr",{key:n.g})}},codeBlock:{i:kt(g),l:Ot.MAX,_:function _(t){return{content:t[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),lang:void 0}},p:function p(t,e,n){return V("pre",{key:n.g},V("code",{className:t.lang?"lang-".concat(t.lang):""},t.content))}},codeFenced:{i:kt(p),l:Ot.MAX,_:function _(t){return{content:t[3],lang:t[2]||void 0,type:"codeBlock"}}},codeInline:{i:ht(m),l:Ot.LOW,_:function _(t){return{content:t[2]}},p:function p(t,e,n){return V("code",{key:n.g},t.content)}},footnote:{i:kt(k),l:Ot.MAX,_:function _(t){return rt.push({footnote:t[2],identifier:t[1]}),{}},p:Rt},footnoteReference:{i:yt(x),l:Ot.HIGH,_:function _(t){return{content:t[1],target:"#".concat(q.slugify(t[1]))}},p:function p(t,e,n){return V("a",{key:n.g,href:bt(t.target)},V("sup",{key:n.g},t.content))}},gfmTask:{i:yt(b),l:Ot.HIGH,_:function _(t){return{completed:"x"===t[1].toLowerCase()}},p:function p(t,e,n){return V("input",{checked:t.completed,key:n.g,readOnly:!0,type:"checkbox"})}},heading:{i:kt(S),l:Ot.HIGH,_:function _(t,e,n){return{content:$t(e,t[2],n),id:q.slugify(t[2]),level:t[1].length}},p:function p(t,e,n){return t.tag="h".concat(t.level),V(t.tag,{id:t.id,key:n.g},e(t.content,n))}},headingSetext:{i:kt($),l:Ot.MAX,_:function _(t,e,n){return{content:$t(e,t[1],n),level:"="===t[2]?1:2,type:"heading"}}},htmlComment:{i:xt(E),l:Ot.HIGH,_:function _(){return{}},p:Rt},image:{i:ht(lt),l:Ot.HIGH,_:function _(t){return{alt:t[1],target:St(t[2]),title:t[3]}},p:function p(t,e,n){return V("img",{key:n.g,alt:t.alt||void 0,title:t.title||void 0,src:bt(t.target)})}},link:{i:yt(it),l:Ot.LOW,_:function _(t,e,n){return{content:wt(e,t[1],n),target:St(t[2]),title:t[3]}},p:function p(t,e,n){return V("a",{key:n.g,href:bt(t.target),title:t.title},e(t.content,n))}},linkAngleBraceStyleDetector:{i:yt(B),l:Ot.MAX,_:function _(t){return{content:[{content:t[1],type:"text"}],target:t[1],type:"link"}}},linkBareUrlDetector:{i:function i(t,e){return e.m?null:yt(M)(t,e)},l:Ot.MAX,_:function _(t){return{content:[{content:t[1],type:"text"}],target:t[1],title:void 0,type:"link"}}},linkMailtoDetector:{i:yt(O),l:Ot.MAX,_:function _(t){var e=t[1],n=t[1];return i.test(n)||(n="mailto:"+n),{content:[{content:e.replace("mailto:",""),type:"text"}],target:n,type:"link"}}},list:{i:function i(t,e,n){var r=T.exec(n);return!r||!e.h&&e.o?null:at.exec(t=r[1]+t)},l:Ot.HIGH,_:function _(t,e,n){var r=t[2],o=r.length>1,c=o?+r:void 0,a=t[0].replace(l,"\n").match(ct),u=!1;return{items:a.map((function(t,r){var o=ot.exec(t)[0].length,c=new RegExp("^ {1,"+o+"}","gm"),i=t.replace(c,"").replace(ot,""),l=r===a.length-1,s=-1!==i.indexOf("\n\n")||l&&u;u=s;var d,_=n.o,f=n.h;n.h=!0,s?(n.o=!1,d=i.replace(L,"\n\n")):(n.o=!0,d=i.replace(L,""));var p=e(d,n);return n.o=_,n.h=f,p})),ordered:o,start:c}},p:function p(t,e,n){return V(t.ordered?"ol":"ul",{key:n.g,start:t.start},t.items.map((function(t,r){return V("li",{key:r},e(t,n))})))}},newlineCoalescer:{i:kt(y),l:Ot.LOW,_:At,p:function p(){return"\n"}},paragraph:{i:vt,l:Ot.LOW,_:Et,p:function p(t,e,n){return V("p",{key:n.g},e(t.content,n))}},ref:{i:yt(D),l:Ot.MAX,_:function _(t){return ut[t[1]]={target:t[2],title:t[4]},{}},p:Rt},refImage:{i:ht(N),l:Ot.MAX,_:function _(t){return{alt:t[1]||void 0,ref:t[2]}},p:function p(t,e,n){return V("img",{key:n.g,alt:t.alt,src:bt(ut[t.ref].target),title:ut[t.ref].title})}},refLink:{i:yt(Z),l:Ot.MAX,_:function _(t,e,n){return{content:e(t[1],n),fallbackContent:e(t[0].replace(F,"\\$1"),n),ref:t[2]}},p:function p(t,e,n){return ut[t.ref]?V("a",{key:n.g,href:bt(ut[t.ref].target),title:ut[t.ref].title},e(t.content,n)):V("span",{key:n.g},e(t.fallbackContent,n))}},table:{i:kt(C),l:Ot.HIGH,_:gt,p:function p(t,e,n){return V("table",{key:n.g},V("thead",null,V("tr",null,t.header.map((function(r,o){return V("th",{key:o,style:mt(t,o)},e(r,n))})))),V("tbody",null,t.cells.map((function(r,o){return V("tr",{key:o},r.map((function(r,o){return V("td",{key:o,style:mt(t,o)},e(r,n))})))}))))}},tableSeparator:{i:function i(t,e){return e.t?H.exec(t):null},l:Ot.HIGH,_:function _(){return{type:"tableSeparator"}},p:function p(){return" | "}},text:{i:xt(tt),l:Ot.MIN,_:function _(t){return{content:t[0].replace(z,(function(t,e){return q.namedCodesToUnicode[e]?q.namedCodesToUnicode[e]:t}))}},p:function p(t){return t.content}},textBolded:{i:ht(X),l:Ot.MED,_:function _(t,e,n){return{content:e(t[2],n)}},p:function p(t,e,n){return V("strong",{key:n.g},e(t.content,n))}},textEmphasized:{i:ht(J),l:Ot.LOW,_:function _(t,e,n){return{content:e(t[2],n)}},p:function p(t,e,n){return V("em",{key:n.g},e(t.content,n))}},textEscaped:{i:ht(Y),l:Ot.HIGH,_:function _(t){return{content:t[1],type:"text"}}},textStrikethroughed:{i:ht(K),l:Ot.LOW,_:Et,p:function p(t,e,n){return V("del",{key:n.g},e(t.content,n))}}};!0!==q.disableParsingRawHTML&&(st.htmlBlock={i:xt(w),l:Ot.HIGH,_:function _(t,e,n){var i,r=_slicedToArray(t[3].match(nt),2)[1],o=new RegExp("^".concat(r),"gm"),c=t[3].replace(o,""),u=(i=c,_t.some((function(t){return t.test(i)}))?zt:$t),l=t[1].toLowerCase(),s=-1!==a.indexOf(l);n.m=n.m||"a"===l;var _=s?t[3]:u(e,c,n);return n.m=!1,{attrs:Q(t[2]),content:_,noInnerParse:s,tag:s?l:t[1]}},p:function p(t,n,r){return V(t.tag,e({key:r.g},t.attrs),t.noInnerParse?t.content:n(t.content,r))}},st.htmlSelfClosing={i:xt(R),l:Ot.HIGH,_:function _(t){return{attrs:Q(t[2]||""),tag:t[1]}},p:function p(t,n,r){return V(t.tag,e({},t.attrs,{key:r.g}))}});var t,Bt,dt=function(t){var e=Object.keys(t);function n(r,o){for(var c=[],a="";r;)for(var _u2=0;_u21&&void 0!==arguments[1]?arguments[1]:{};if(Array.isArray(e)){for(var _r=n.g,_o=[],_c=!1,_r2=0;_r2=0||(o[n]=t[n]);return o}(e,r);return react__WEBPACK_IMPORTED_MODULE_51___default.a.cloneElement(Bt(n,o),c)},Description$1=function Description$1(_ref110){var markdown=_ref110.markdown;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ResetWrapper,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Markdown,{options:{forceBlock:!0,overrides:components$1}},markdown))},breakpoint=600,Title=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.h1(withReset,(function(_ref111){var theme=_ref111.theme;return _defineProperty2({color:theme.color.defaultText,fontSize:theme.typography.size.m3,fontWeight:theme.typography.weight.black,lineHeight:"32px"},"@media (min-width: ".concat(breakpoint,"px)"),{fontSize:theme.typography.size.l1,lineHeight:"36px",marginBottom:".5rem"})})),Subtitle=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.h2(withReset,(function(_ref113){var _ref114,theme=_ref113.theme;return _defineProperty2(_ref114={fontWeight:theme.typography.weight.regular,fontSize:theme.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15},"@media (min-width: ".concat(breakpoint,"px)"),{fontSize:theme.typography.size.m1,lineHeight:"28px",marginBottom:24}),_defineProperty2(_ref114,"color",curriedTransparentize$1(.25,theme.color.defaultText)),_ref114})),DocsContent=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div({maxWidth:1e3,width:"100%"}),DocsWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref115){return _defineProperty2({background:_ref115.theme.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box"},"@media (min-width: ".concat(breakpoint,"px)"),{})})),DocsPageWrapper=function DocsPageWrapper(_ref117){var children=_ref117.children;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(DocsWrapper,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(DocsContent,null,children))},getBlockBackgroundStyle=function getBlockBackgroundStyle(theme){return{borderRadius:theme.appBorderRadius,background:theme.background.content,boxShadow:"light"===theme.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:"1px solid ".concat(theme.appBorderColor)}},getStoryHref=function getStoryHref(baseUrl,storyId){var additionalParams=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},_baseUrl$split2=_slicedToArray(baseUrl.split("?"),2),url=_baseUrl$split2[0],paramsStr=_baseUrl$split2[1],params=paramsStr?Object.assign(Object.assign(Object.assign({},qs__WEBPACK_IMPORTED_MODULE_55___default.a.parse(paramsStr)),additionalParams),{id:storyId}):Object.assign(Object.assign({},additionalParams),{id:storyId});return"".concat(url).concat(qs__WEBPACK_IMPORTED_MODULE_55___default.a.stringify(params,{addQueryPrefix:!0,encode:!1}))},Zoom=function Zoom(_ref118){var zoom=_ref118.zoom,resetZoom=_ref118.resetZoom;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(IconButton,{key:"zoomin",onClick:function onClick(e){e.preventDefault(),zoom(.8)},title:"Zoom in"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Icons,{icon:"zoom"})),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(IconButton,{key:"zoomout",onClick:function onClick(e){e.preventDefault(),zoom(1.25)},title:"Zoom out"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Icons,{icon:"zoomout"})),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(IconButton,{key:"zoomreset",onClick:function onClick(e){e.preventDefault(),resetZoom()},title:"Reset zoom"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Icons,{icon:"zoomreset"})))},Eject=function Eject(_ref119){var baseUrl=_ref119.baseUrl,storyId=_ref119.storyId;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(IconButton,{key:"opener",href:getStoryHref(baseUrl,storyId),target:"_blank",title:"Open canvas in new tab"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Icons,{icon:"share"}))},Bar=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i)(FlexBar)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),Toolbar=function Toolbar(_a){var isLoading=_a.isLoading,storyId=_a.storyId,baseUrl=_a.baseUrl,zoom=_a.zoom,resetZoom=_a.resetZoom,rest=__rest(_a,["isLoading","storyId","baseUrl","zoom","resetZoom"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Bar,Object.assign({},rest),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,{key:"left"},isLoading?[1,2,3].map((function(key){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(IconButtonSkeleton,{key:key})})):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Zoom,Object.assign({},{zoom:zoom,resetZoom:resetZoom}))),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,{key:"right"},storyId&&(isLoading?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(IconButtonSkeleton,null):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Eject,Object.assign({},{storyId:storyId,baseUrl:baseUrl})))))},ZoomContext=Object(react__WEBPACK_IMPORTED_MODULE_51__.createContext)({scale:1}),globalWindow$1=window_1.window,IFrame=function(_Component3){_inherits(IFrame,_Component3);var _super3=_createSuper(IFrame);function IFrame(){var _this4;return _classCallCheck(this,IFrame),(_this4=_super3.apply(this,arguments)).iframe=null,_this4}return _createClass(IFrame,[{key:"componentDidMount",value:function componentDidMount(){var id=this.props.id;this.iframe=globalWindow$1.document.getElementById(id)}},{key:"shouldComponentUpdate",value:function shouldComponentUpdate(nextProps){var scale=nextProps.scale;return scale!==this.props.scale&&this.setIframeBodyStyle({width:"".concat(100*scale,"%"),height:"".concat(100*scale,"%"),transform:"scale(".concat(1/scale,")"),transformOrigin:"top left"}),!1}},{key:"setIframeBodyStyle",value:function setIframeBodyStyle(style){return Object.assign(this.iframe.contentDocument.body.style,style)}},{key:"render",value:function render(){var _a=this.props,id=_a.id,title=_a.title,src=_a.src,allowFullScreen=_a.allowFullScreen,rest=(_a.scale,__rest(_a,["id","title","src","allowFullScreen","scale"]));return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("iframe",Object.assign({id:id,title:title,src:src,allowFullScreen:allowFullScreen,loading:"lazy"},rest))}}]),IFrame}(react__WEBPACK_IMPORTED_MODULE_51__.Component),rotate360=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.g)(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\tfrom {\n\t\ttransform: rotate(0deg);\n\t}\n\tto {\n\t\ttransform: rotate(360deg);\n\t}\n"]))),EventSource=window_1.EventSource,CONFIG_TYPE=window_1.CONFIG_TYPE,LoaderWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref120){var _ref120$size=_ref120.size,size=void 0===_ref120$size?32:_ref120$size;return{borderRadius:"50%",cursor:"progress",display:"inline-block",overflow:"hidden",position:"absolute",transition:"all 200ms ease-out",verticalAlign:"top",top:"50%",left:"50%",marginTop:-size/2,marginLeft:-size/2,height:size,width:size,zIndex:4,borderWidth:2,borderStyle:"solid",borderColor:"rgba(97, 97, 97, 0.29)",borderTopColor:"rgb(100,100,100)",animation:"".concat(rotate360," 0.7s linear infinite"),mixBlendMode:"difference"}})),ProgressWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div({position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),ProgressTrack=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref121){var theme=_ref121.theme;return{position:"relative",width:"80%",marginBottom:"0.75rem",maxWidth:300,height:5,borderRadius:5,background:curriedTransparentize$1(.8,theme.color.secondary),overflow:"hidden",cursor:"progress"}})),ProgressBar=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref122){return{position:"absolute",top:0,left:0,height:"100%",background:_ref122.theme.color.secondary}})),ProgressMessage=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref123){var theme=_ref123.theme;return{minHeight:"2em",fontSize:"".concat(theme.typography.size.s1,"px"),color:theme.barTextColor}})),ErrorIcon=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i)(Icons)((function(_ref124){return{width:20,height:20,marginBottom:"0.5rem",color:_ref124.theme.color.mediumdark}})),ellipsis=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.g)(_templateObject2||(_templateObject2=_taggedTemplateLiteral(['\n from { content: "..." }\n 33% { content: "." }\n 66% { content: ".." }\n to { content: "..." }\n']))),Ellipsis=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.span({"&::after":{content:"'...'",animation:"".concat(ellipsis," 1s linear infinite"),animationDelay:"1s",display:"inline-block",width:"1em",height:"auto"}}),PureLoader=function PureLoader(_a){var progress=_a.progress,error=_a.error,size=_a.size,props=__rest(_a,["progress","error","size"]);if(error)return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ProgressWrapper,Object.assign({"aria-label":error.toString(),"aria-live":"polite",role:"status"},props),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ErrorIcon,{icon:"lightningoff"}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ProgressMessage,null,error.message));if(progress){var _value=progress.value,modules=progress.modules,message=progress.message;return modules&&(message+=" ".concat(modules.complete," / ").concat(modules.total," modules")),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ProgressWrapper,Object.assign({"aria-label":"Content is loading...","aria-live":"polite","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":100*_value,"aria-valuetext":message,role:"progressbar"},props),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ProgressTrack,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ProgressBar,{style:{width:"".concat(100*_value,"%")}})),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ProgressMessage,null,message,_value<1&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Ellipsis,{key:message})))}return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(LoaderWrapper,Object.assign({"aria-label":"Content is loading...","aria-live":"polite",role:"status",size:size},props))},Loader=function Loader(props){var _useState4=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(void 0),2),progress=_useState4[0],setProgress=_useState4[1],_useState6=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(void 0),2),error=_useState6[0],setError=_useState6[1];return Object(react__WEBPACK_IMPORTED_MODULE_51__.useEffect)((function(){if("DEVELOPMENT"===CONFIG_TYPE&&EventSource){var lastProgress,eventSource=new EventSource("/progress");return eventSource.onmessage=function(event){try{lastProgress=JSON.parse(event.data),setProgress(lastProgress)}catch(e){setError(e),eventSource.close()}},eventSource.onerror=function(){lastProgress&&1!==lastProgress.value&&setError(new Error("Connection closed")),eventSource.close()},function(){return eventSource.close()}}}),[]),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(PureLoader,Object.assign({progress:progress,error:error},props))},PREVIEW_URL=window_1.PREVIEW_URL,BASE_URL=PREVIEW_URL||"iframe.html",StoryError;!function(StoryError){StoryError.NO_STORY="No component or story to display"}(StoryError||(StoryError={}));var MISSING_STORY=function MISSING_STORY(id){return id?'Story "'.concat(id,"\" doesn't exist."):StoryError.NO_STORY},InlineStory=function InlineStory(_ref125){var storyFn=_ref125.storyFn,height=_ref125.height,id=_ref125.id;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,null,height?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("style",null,"#story--".concat(id," { min-height: ").concat(height,"; transform: translateZ(0); overflow: auto }")):null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Fragment,null,storyFn?Object(react__WEBPACK_IMPORTED_MODULE_51__.createElement)(storyFn):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(EmptyBlock,null,MISSING_STORY(id))))},IFrameStory=function IFrameStory(_ref126){var id=_ref126.id,title=_ref126.title,_ref126$height=_ref126.height,height=void 0===_ref126$height?"500px":_ref126$height;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",{style:{width:"100%",height:height}},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ZoomContext.Consumer,null,(function(_ref127){var scale=_ref127.scale;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(IFrame,{key:"iframe",id:"iframe--".concat(id),title:title,src:getStoryHref(BASE_URL,id,{viewMode:"story"}),allowFullScreen:!0,scale:scale,style:{width:"100%",height:"100%",border:"0 none"}})})))},Story=function Story(_a){_a.children;var error=_a.error,inline=_a.inline,props=__rest(_a,["children","error","inline"]),id=props.id,title=props.title,height=props.height;return error?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(EmptyBlock,null,error):inline?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(InlineStory,Object.assign({},props)):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(IFrameStory,{id:id,title:title,height:height})},StorySkeleton=function StorySkeleton(){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Loader,null)},ChildrenContainer=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref128){var isColumn=_ref128.isColumn,columns=_ref128.columns,layout=_ref128.layout;return{display:isColumn||!columns?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:isColumn?"column":"row","& .innerZoomElementWrapper > *":isColumn?{width:"fullscreen"!==layout?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:"fullscreen"!==layout?"calc(100% - 20px)":"100%",display:"inline-block"}}}),(function(_ref129){var _ref129$layout=_ref129.layout,layout=void 0===_ref129$layout?"padded":_ref129$layout;return"centered"===layout||"padded"===layout?{padding:"30px 20px",margin:-10,"& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{}}),(function(_ref130){var _ref130$layout=_ref130.layout;return"centered"===(void 0===_ref130$layout?"padded":_ref130$layout)?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{}}),(function(_ref131){var columns=_ref131.columns;return columns&&columns>1?{".innerZoomElementWrapper > *":{minWidth:"calc(100% / ".concat(columns," - 20px)")}}:{}})),StyledSource=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i)(Source)((function(_ref132){var theme=_ref132.theme;return{margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:theme.appBorderRadius,borderBottomRightRadius:theme.appBorderRadius,border:"none",background:"light"===theme.base?"rgba(0, 0, 0, 0.85)":curriedDarken$1(.05,theme.background.content),color:theme.color.lightest,button:{background:"light"===theme.base?"rgba(0, 0, 0, 0.85)":curriedDarken$1(.05,theme.background.content)}}})),PreviewContainer=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref133){var theme=_ref133.theme,withSource=_ref133.withSource,isExpanded=_ref133.isExpanded;return Object.assign(Object.assign({position:"relative",overflow:"hidden",margin:"25px 0 40px"},getBlockBackgroundStyle(theme)),{borderBottomLeftRadius:withSource&&isExpanded&&0,borderBottomRightRadius:withSource&&isExpanded&&0,borderBottomWidth:isExpanded&&0})}),(function(_ref134){return _ref134.withToolbar&&{paddingTop:40}})),getSource=function getSource(withSource,expanded,setExpanded){switch(!0){case!(!withSource||!withSource.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:function onClick(){return setExpanded(!1)}}};case expanded:return{source:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(StyledSource,Object.assign({},withSource,{dark:!0})),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:function onClick(){return setExpanded(!1)}}};default:return{source:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(StyledSource,Object.assign({},withSource,{dark:!0})),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:function onClick(){return setExpanded(!0)}}}}};function getStoryId(children){if(1===react__WEBPACK_IMPORTED_MODULE_51__.Children.count(children)){var elt=children;if(elt.props)return elt.props.id}return null}var PositionedToolbar=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i)(Toolbar)({position:"absolute",top:0,left:0,right:0,height:40}),Relative=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div({overflow:"hidden",position:"relative"}),getLayout=function getLayout(children){return children.reduce((function(result,c){return result||("string"==typeof c||"number"==typeof c?"padded":c.props&&c.props.parameters&&c.props.parameters.layout||"padded")}),void 0)},Preview=function Preview(_a){var isLoading=_a.isLoading,isColumn=_a.isColumn,columns=_a.columns,children=_a.children,withSource=_a.withSource,_a$withToolbar=_a.withToolbar,withToolbar=void 0!==_a$withToolbar&&_a$withToolbar,_a$isExpanded=_a.isExpanded,isExpanded=void 0!==_a$isExpanded&&_a$isExpanded,additionalActions=_a.additionalActions,className=_a.className,props=__rest(_a,["isLoading","isColumn","columns","children","withSource","withToolbar","isExpanded","additionalActions","className"]),_useState8=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(isExpanded),2),expanded=_useState8[0],setExpanded=_useState8[1],_getSource=getSource(withSource,expanded,setExpanded),source=_getSource.source,actionItem=_getSource.actionItem,_useState10=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(1),2),scale=_useState10[0],setScale=_useState10[1],previewClasses=[className].concat(["sbdocs","sbdocs-preview"]),defaultActionItems=withSource?[actionItem]:[],_useState12=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(additionalActions?_toConsumableArray(additionalActions):[]),2),additionalActionItems=_useState12[0],setAdditionalActionItems=_useState12[1],actionItems=[].concat(defaultActionItems,_toConsumableArray(additionalActionItems)),layout=getLayout(1===react__WEBPACK_IMPORTED_MODULE_51__.Children.count(children)?[children]:children),globalWindow=window_1.window,copyToClipboard=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(text){return __awaiter(void 0,void 0,void 0,regeneratorRuntime.mark((function _callee2(){var _yield$import;return regeneratorRuntime.wrap((function _callee2$(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return _context2.next=2,__webpack_require__.e(0).then(__webpack_require__.bind(null,"./node_modules/@storybook/components/dist/esm/syntaxhighlighter-b07b042a.js"));case 2:_yield$import=_context2.sent,(0,_yield$import.createCopyToClipboardFunction)();case 5:case"end":return _context2.stop()}}),_callee2)})))}),[]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(PreviewContainer,Object.assign({},{withSource:withSource,withToolbar:withToolbar},props,{className:previewClasses.join(" ")}),withToolbar&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(PositionedToolbar,{isLoading:isLoading,border:!0,zoom:function zoom(z){return setScale(scale*z)},resetZoom:function resetZoom(){return setScale(1)},storyId:getStoryId(children),baseUrl:"./iframe.html"}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ZoomContext.Provider,{value:{scale:scale}},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Relative,{className:"docs-story",onCopyCapture:withSource&&function onCopyCapture(e){e.preventDefault(),0===additionalActionItems.filter((function(item){return"Copied"===item.title})).length&©ToClipboard(source.props.code).then((function(){setAdditionalActionItems([].concat(_toConsumableArray(additionalActionItems),[{title:"Copied",onClick:function onClick(){}}])),globalWindow.setTimeout((function(){return setAdditionalActionItems(additionalActionItems.filter((function(item){return"Copied"!==item.title})))}),1500)}))}},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ChildrenContainer,{isColumn:isColumn||!Array.isArray(children),columns:columns,layout:layout},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Zoom$1.Element,{scale:scale},Array.isArray(children)?children.map((function(child,i){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",{key:i},child)})):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",null,children))),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ActionBar,{actionItems:actionItems}))),withSource&&expanded&&source)},StyledPreview=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i)(Preview)((function(){return{".docs-story":{paddingTop:32,paddingBottom:40}}})),PreviewSkeleton=function PreviewSkeleton(){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(StyledPreview,{isLoading:!0,withToolbar:!0},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(StorySkeleton,null))};function arrayMap$2(array,iteratee){for(var index=-1,length=null==array?0:array.length,result=Array(length);++index-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(key,value){var data=this.__data__,index=assocIndexOf(data,key);return index<0?(++this.size,data.push([key,value])):data[index][1]=value,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++indexarrLength))return!1;var arrStacked=stack.get(array),othStacked=stack.get(other);if(arrStacked&&othStacked)return arrStacked==other&&othStacked==array;var index=-1,result=!0,seen=bitmask&COMPARE_UNORDERED_FLAG$3?new SetCache$1:void 0;for(stack.set(array,other),stack.set(other,array);++index-1&&value%1==0&&value-1&&value%1==0&&value<=MAX_SAFE_INTEGER}var isLength_1=isLength$3,baseGetTag$2=_baseGetTag,isLength$2=isLength_1,isObjectLike$4=isObjectLike_1,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$1="[object Error]",funcTag$1="[object Function]",mapTag$4="[object Map]",numberTag$2="[object Number]",objectTag$3="[object Object]",regexpTag$2="[object RegExp]",setTag$4="[object Set]",stringTag$2="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};function baseIsTypedArray$1(value){return isObjectLike$4(value)&&isLength$2(value.length)&&!!typedArrayTags[baseGetTag$2(value)]}typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0,typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$2]=typedArrayTags[boolTag$2]=typedArrayTags[dataViewTag$3]=typedArrayTags[dateTag$2]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$4]=typedArrayTags[numberTag$2]=typedArrayTags[objectTag$3]=typedArrayTags[regexpTag$2]=typedArrayTags[setTag$4]=typedArrayTags[stringTag$2]=typedArrayTags[weakMapTag$2]=!1;var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$3(func){return function(value){return func(value)}}var _baseUnary=baseUnary$3,_nodeUtil={exports:{}};!function(module,exports){var freeGlobal=_freeGlobal,freeExports=exports&&!exports.nodeType&&exports,freeModule=freeExports&&module&&!module.nodeType&&module,freeProcess=freeModule&&freeModule.exports===freeExports&&freeGlobal.process,nodeUtil=function(){try{var types=freeModule&&freeModule.require&&freeModule.require("util").types;return types||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch(e){}}();module.exports=nodeUtil}(_nodeUtil,_nodeUtil.exports);var baseIsTypedArray=_baseIsTypedArray,baseUnary$2=_baseUnary,nodeUtil$2=_nodeUtil.exports,nodeIsTypedArray=nodeUtil$2&&nodeUtil$2.isTypedArray,isTypedArray$2=nodeIsTypedArray?baseUnary$2(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$2,baseTimes=_baseTimes,isArguments$1=isArguments_1,isArray$7=isArray_1,isBuffer$2=isBuffer$3.exports,isIndex$2=_isIndex,isTypedArray$1=isTypedArray_1,objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty;function arrayLikeKeys$2(value,inherited){var isArr=isArray$7(value),isArg=!isArr&&isArguments$1(value),isBuff=!isArr&&!isArg&&isBuffer$2(value),isType=!isArr&&!isArg&&!isBuff&&isTypedArray$1(value),skipIndexes=isArr||isArg||isBuff||isType,result=skipIndexes?baseTimes(value.length,String):[],length=result.length;for(var key in value)!inherited&&!hasOwnProperty$6.call(value,key)||skipIndexes&&("length"==key||isBuff&&("offset"==key||"parent"==key)||isType&&("buffer"==key||"byteLength"==key||"byteOffset"==key)||isIndex$2(key,length))||result.push(key);return result}var _arrayLikeKeys=arrayLikeKeys$2,objectProto$6=Object.prototype;function isPrototype$3(value){var Ctor=value&&value.constructor;return value===("function"==typeof Ctor&&Ctor.prototype||objectProto$6)}var _isPrototype=isPrototype$3;function overArg$2(func,transform){return function(arg){return func(transform(arg))}}var _overArg=overArg$2,overArg$1=_overArg,nativeKeys$1=overArg$1(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$2=_isPrototype,nativeKeys=_nativeKeys,objectProto$5=Object.prototype,hasOwnProperty$5=objectProto$5.hasOwnProperty;function baseKeys$1(object){if(!isPrototype$2(object))return nativeKeys(object);var result=[];for(var key in Object(object))hasOwnProperty$5.call(object,key)&&"constructor"!=key&&result.push(key);return result}var _baseKeys=baseKeys$1,isFunction=isFunction_1,isLength$1=isLength_1;function isArrayLike$2(value){return null!=value&&isLength$1(value.length)&&!isFunction(value)}var isArrayLike_1=isArrayLike$2,arrayLikeKeys$1=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$1=isArrayLike_1;function keys$4(object){return isArrayLike$1(object)?arrayLikeKeys$1(object):baseKeys(object)}var keys_1=keys$4,baseGetAllKeys$1=_baseGetAllKeys,getSymbols$2=_getSymbols,keys$3=keys_1;function getAllKeys$2(object){return baseGetAllKeys$1(object,keys$3,getSymbols$2)}var _getAllKeys=getAllKeys$2,getAllKeys$1=_getAllKeys,COMPARE_PARTIAL_FLAG$3=1,objectProto$4=Object.prototype,hasOwnProperty$4=objectProto$4.hasOwnProperty;function equalObjects$1(object,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG$3,objProps=getAllKeys$1(object),objLength=objProps.length;if(objLength!=getAllKeys$1(other).length&&!isPartial)return!1;for(var index=objLength;index--;){var key=objProps[index];if(!(isPartial?key in other:hasOwnProperty$4.call(other,key)))return!1}var objStacked=stack.get(object),othStacked=stack.get(other);if(objStacked&&othStacked)return objStacked==other&&othStacked==object;var result=!0;stack.set(object,other),stack.set(other,object);for(var skipCtor=isPartial;++index-1}var _arrayIncludes=arrayIncludes$1;function arrayIncludesWith$1(array,value,comparator){for(var index=-1,length=null==array?0:array.length;++index=LARGE_ARRAY_SIZE){var set=iteratee?null:createSet(array);if(set)return setToArray(set);isCommon=!1,includes=cacheHas,seen=new SetCache}else seen=iteratee?[]:result;outer:for(;++index1&&void 0!==arguments[1])||arguments[1]||(items=summaryItems.slice(0,ITEMS_BEFORE_EXPANSION)),items.map((function(item){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgText,{key:item,text:""===item?'""':item})}))},ArgSummary=function ArgSummary(_ref143){var value=_ref143.value,initialExpandedArgs=_ref143.initialExpandedArgs,summary=value.summary,detail=value.detail,_useState14=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(!1),2),isOpen=_useState14[0],setIsOpen=_useState14[1],_useState16=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(initialExpandedArgs||!1),2),isExpanded=_useState16[0],setIsExpanded=_useState16[1];if(null==summary)return null;var summaryAsString="function"==typeof summary.toString?summary.toString():summary;if(null==detail){if(/[(){}[\]<>]/.test(summaryAsString))return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgText,{text:summaryAsString});var summaryItems=getSummaryItems(summaryAsString),itemsCount=summaryItems.length;return itemsCount>ITEMS_BEFORE_EXPANSION?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Summary,{isExpanded:isExpanded},renderSummaryItems(summaryItems,isExpanded),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ExpandButton,{onClick:function onClick(){return setIsExpanded(!isExpanded)}},isExpanded?"Show less...":"Show ".concat(itemsCount-ITEMS_BEFORE_EXPANSION," more..."))):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Summary,null,renderSummaryItems(summaryItems))}return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(WithTooltipPure,{closeOnClick:!0,trigger:"click",placement:"bottom",tooltipShown:isOpen,onVisibilityChange:function onVisibilityChange(isVisible){setIsOpen(isVisible)},tooltip:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Detail,{width:calculateDetailWidth(detail)},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SyntaxHighlighter,{language:"jsx",format:!1},detail))},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Expandable,{className:"sbdocs-expandable"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",null,summaryAsString),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArrowIcon,{icon:isOpen?"arrowup":"arrowdown"})))},ArgValue=function ArgValue(_ref144){var value=_ref144.value,initialExpandedArgs=_ref144.initialExpandedArgs;return null==value?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(EmptyArg,null):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgSummary,{value:value,initialExpandedArgs:initialExpandedArgs})},getControlId=function getControlId(value){return"control-".concat(value.replace(/\s+/g,"-"))},getControlSetterButtonId=function getControlSetterButtonId(value){return"set-".concat(value.replace(/\s+/g,"-"))},Label$3=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.label((function(_ref145){var theme=_ref145.theme;return{lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:"".concat(curriedOpacify$1(.05,theme.appBorderColor)),borderRadius:"3em",padding:1,input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:"".concat(theme.color.secondary," 0 0 0 1px inset !important")}},span:{textAlign:"center",fontSize:theme.typography.size.s1,fontWeight:theme.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:curriedTransparentize$1(.4,theme.color.defaultText),background:"transparent","&:hover":{boxShadow:"".concat(curriedOpacify$1(.3,theme.appBorderColor)," 0 0 0 1px inset")},"&:active":{boxShadow:"".concat(curriedOpacify$1(.05,theme.appBorderColor)," 0 0 0 2px inset"),color:curriedOpacify$1(1,theme.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:theme.background.app,boxShadow:"".concat(curriedOpacify$1(.1,theme.appBorderColor)," 0 0 2px"),color:theme.color.defaultText,padding:"7px 15px"}}})),parse$2=function parse$2(value){return"true"===value},BooleanControl=function BooleanControl(_ref146){var name=_ref146.name,value=_ref146.value,_onChange=_ref146.onChange,onBlur=_ref146.onBlur,onFocus=_ref146.onFocus,onSetFalse=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(){return _onChange(!1)}),[_onChange]);if(void 0===value)return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Form.Button,{id:getControlSetterButtonId(name),onClick:onSetFalse},"Set boolean");var parsedValue="string"==typeof value?parse$2(value):value;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Label$3,{htmlFor:name,title:parsedValue?"Change to false":"Change to true"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("input",Object.assign({id:getControlId(name),type:"checkbox",onChange:function onChange(e){return _onChange(e.target.checked)},checked:parsedValue},{name:name,onBlur:onBlur,onFocus:onFocus})),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",null,"False"),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",null,"True"))},parseDate=function parseDate(value){var _value$split2=_slicedToArray(value.split("-"),3),year=_value$split2[0],month=_value$split2[1],day=_value$split2[2],result=new Date;return result.setFullYear(parseInt(year,10),parseInt(month,10)-1,parseInt(day,10)),result},parseTime=function parseTime(value){var _value$split4=_slicedToArray(value.split(":"),2),hours=_value$split4[0],minutes=_value$split4[1],result=new Date;return result.setHours(parseInt(hours,10)),result.setMinutes(parseInt(minutes,10)),result},formatDate=function formatDate(value){var date=new Date(value),year="000".concat(date.getFullYear()).slice(-4),month="0".concat(date.getMonth()+1).slice(-2),day="0".concat(date.getDate()).slice(-2);return"".concat(year,"-").concat(month,"-").concat(day)},formatTime=function formatTime(value){var date=new Date(value),hours="0".concat(date.getHours()).slice(-2),minutes="0".concat(date.getMinutes()).slice(-2);return"".concat(hours,":").concat(minutes)},FlexSpaced=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref147){return{flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:"light"===_ref147.theme.base?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}}})),DateControl=function DateControl(_ref148){var name=_ref148.name,value=_ref148.value,onChange=_ref148.onChange,onFocus=_ref148.onFocus,onBlur=_ref148.onBlur,_useState18=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(!0),2),valid=_useState18[0],setValid=_useState18[1],dateRef=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)(),timeRef=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)();Object(react__WEBPACK_IMPORTED_MODULE_51__.useEffect)((function(){!1!==valid&&(dateRef&&dateRef.current&&(dateRef.current.value=formatDate(value)),timeRef&&timeRef.current&&(timeRef.current.value=formatTime(value)))}),[value]);var controlId=getControlId(name);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(FlexSpaced,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Form.Input,Object.assign({type:"date",max:"9999-12-31",ref:dateRef,id:"".concat(controlId,"-date"),name:"".concat(controlId,"-date"),onChange:function onDateChange(e){var parsed=parseDate(e.target.value),result=new Date(value);result.setFullYear(parsed.getFullYear(),parsed.getMonth(),parsed.getDate());var time=result.getTime();time&&onChange(time),setValid(!!time)}},{onFocus:onFocus,onBlur:onBlur})),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Form.Input,Object.assign({type:"time",id:"".concat(controlId,"-time"),name:"".concat(controlId,"-time"),ref:timeRef,onChange:function onTimeChange(e){var parsed=parseTime(e.target.value),result=new Date(value);result.setHours(parsed.getHours()),result.setMinutes(parsed.getMinutes());var time=result.getTime();time&&onChange(time),setValid(!!time)}},{onFocus:onFocus,onBlur:onBlur})),valid?null:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",null,"invalid"))},Wrapper$5=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.label({display:"flex"}),parse$1=function parse$1(value){var result=parseFloat(value);return Number.isNaN(result)?void 0:result},format=function format(value){return null!=value?String(value):""},NumberControl=function NumberControl(_ref149){var name=_ref149.name,value=_ref149.value,onChange=_ref149.onChange,min=_ref149.min,max=_ref149.max,step=_ref149.step,onBlur=_ref149.onBlur,onFocus=_ref149.onFocus,_useState20=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)("number"==typeof value?value:""),2),inputValue=_useState20[0],setInputValue=_useState20[1],_useState22=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(!1),2),forceVisible=_useState22[0],setForceVisible=_useState22[1],_useState24=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(null),2),parseError=_useState24[0],setParseError=_useState24[1],handleChange=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(event){setInputValue(event.target.value);var result=parseFloat(event.target.value);Number.isNaN(result)?setParseError(new Error("'".concat(event.target.value,"' is not a number"))):(onChange(result),setParseError(null))}),[onChange,setParseError]),onForceVisible=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(){setInputValue("0"),onChange(0),setForceVisible(!0)}),[setForceVisible]),htmlElRef=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)(null);return Object(react__WEBPACK_IMPORTED_MODULE_51__.useEffect)((function(){forceVisible&&htmlElRef.current&&htmlElRef.current.select()}),[forceVisible]),Object(react__WEBPACK_IMPORTED_MODULE_51__.useEffect)((function(){inputValue!==("number"==typeof value?value:"")&&setInputValue(value)}),[value]),forceVisible||void 0!==value?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Wrapper$5,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Form.Input,Object.assign({ref:htmlElRef,id:getControlId(name),type:"number",onChange:handleChange,size:"flex",placeholder:"Edit number...",value:inputValue,valid:parseError?"error":null,autoFocus:forceVisible},{name:name,min:min,max:max,step:step,onFocus:onFocus,onBlur:onBlur}))):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Form.Button,{id:getControlSetterButtonId(name),onClick:onForceVisible},"Set number")};function dedent(templ){for(var values=[],_i=1;_i .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:theme.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:theme.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:theme.background.app,borderColor:theme.color.border}}})),Button=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.button((function(_ref164){var theme=_ref164.theme,primary=_ref164.primary;return{border:0,height:20,margin:1,borderRadius:4,background:primary?theme.color.secondary:"transparent",color:primary?theme.color.lightest:theme.color.dark,fontWeight:primary?"bold":"normal",cursor:"pointer",order:primary?"initial":9}})),ActionIcon=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i)(Icons)((function(_ref165){var theme=_ref165.theme,icon=_ref165.icon,disabled=_ref165.disabled;return{display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:disabled?"not-allowed":"pointer",color:theme.color.mediumdark,"&:hover":disabled?{}:{color:"subtract"===icon?theme.color.negative:theme.color.ancillary},"svg + &":{marginLeft:0}}})),Input=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.input((function(_ref166){var theme=_ref166.theme,placeholder=_ref166.placeholder;return{outline:0,margin:placeholder?1:"1px 0",padding:"3px 4px",color:theme.color.defaultText,background:theme.background.app,border:"1px solid ".concat(theme.color.border),borderRadius:4,lineHeight:"14px",width:"Key"===placeholder?80:120,"&:focus":{border:"1px solid ".concat(theme.color.secondary)}}})),RawButton=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i)(IconButton)((function(_ref167){var theme=_ref167.theme;return{position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:theme.background.bar,border:"1px solid ".concat(theme.color.border),borderRadius:3,color:theme.color.mediumdark,fontSize:"9px",fontWeight:"bold",span:{marginLeft:3,marginTop:1}}})),RawInput=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i)(Form.Textarea)((function(_ref168){var theme=_ref168.theme;return{flex:1,padding:"7px 6px",fontFamily:theme.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:theme.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}}})),ENTER_EVENT={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},dispatchEnterKey=function dispatchEnterKey(event){event.currentTarget.dispatchEvent(new globalWindow.KeyboardEvent("keydown",ENTER_EVENT))},selectValue=function selectValue(event){event.currentTarget.select()},getCustomStyleFunction=function getCustomStyleFunction(theme){return function(){return{name:{color:theme.color.secondary},collapsed:{color:theme.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}}},ObjectControl=function ObjectControl(_ref169){var name=_ref169.name,value=_ref169.value,onChange=_ref169.onChange,theme=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.k)(),data=Object(react__WEBPACK_IMPORTED_MODULE_51__.useMemo)((function(){return value&&cloneDeep_1(value)}),[value]),hasData=null!=data,_useState28=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(!hasData),2),showRaw=_useState28[0],setShowRaw=_useState28[1],_useState30=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(null),2),parseError=_useState30[0],setParseError=_useState30[1],updateRaw=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(raw){try{raw&&onChange(JSON.parse(raw)),setParseError(void 0)}catch(e){setParseError(e)}}),[onChange]),_useState32=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(!1),2),forceVisible=_useState32[0],setForceVisible=_useState32[1],onForceVisible=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(){onChange({}),setForceVisible(!0)}),[setForceVisible]),htmlElRef=Object(react__WEBPACK_IMPORTED_MODULE_51__.useRef)(null);if(Object(react__WEBPACK_IMPORTED_MODULE_51__.useEffect)((function(){forceVisible&&htmlElRef.current&&htmlElRef.current.select()}),[forceVisible]),!hasData)return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Form.Button,{id:getControlSetterButtonId(name),onClick:onForceVisible},"Set object");var rawJSONForm=react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(RawInput,{ref:htmlElRef,id:getControlId(name),name:name,defaultValue:null===value?"":JSON.stringify(value,null,2),onBlur:function onBlur(event){return updateRaw(event.target.value)},placeholder:"Edit JSON string...",autoFocus:forceVisible,valid:parseError?"error":null});return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Wrapper$2,null,["Object","Array"].includes(getObjectType(data))&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(RawButton,{onClick:function onClick(){return setShowRaw((function(v){return!v}))}},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Icons,{icon:showRaw?"eyeclose":"eye"}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",null,"RAW")),showRaw?rawJSONForm:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(JsonTree,{data:data,rootName:name,onFullyUpdate:onChange,getStyle:getCustomStyleFunction(theme),cancelButtonElement:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Button,{type:"button"},"Cancel"),editButtonElement:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Button,{type:"submit"},"Save"),addButtonElement:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Button,{type:"submit",primary:!0},"Save"),plusMenuElement:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ActionIcon,{icon:"add"}),minusMenuElement:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ActionIcon,{icon:"subtract"}),inputElement:function inputElement(_,__,___,key){return key?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Input,{onFocus:selectValue,onBlur:dispatchEnterKey}):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Input,null)},fallback:rawJSONForm}))},RangeInput=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.input((function(_ref170){var theme=_ref170.theme,min=_ref170.min,max=_ref170.max,value=_ref170.value;return{"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:"light"===theme.base?"linear-gradient(to right, \n ".concat(theme.color.green," 0%, ").concat(theme.color.green," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedDarken$1(.02,theme.input.background)," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedDarken$1(.02,theme.input.background)," 100%)"):"linear-gradient(to right, \n ".concat(theme.color.green," 0%, ").concat(theme.color.green," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedLighten$1(.02,theme.input.background)," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedLighten$1(.02,theme.input.background)," 100%)"),boxShadow:"".concat(theme.appBorderColor," 0 0 0 1px inset"),borderRadius:6,width:"100%",height:6,cursor:"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:"1px solid ".concat(rgba(theme.appBorderColor,.2)),borderRadius:"50px",boxShadow:"0 1px 3px 0px ".concat(rgba(theme.appBorderColor,.2)),cursor:"grab",appearance:"none",background:"".concat(theme.input.background),transition:"all 150ms ease-out","&:hover":{background:"".concat(curriedDarken$1(.05,theme.input.background)),transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:"".concat(theme.input.background),transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:rgba(theme.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:theme.color.secondary,boxShadow:"0 0px 5px 0px ".concat(theme.color.secondary)}},"&::-moz-range-track":{background:"light"===theme.base?"linear-gradient(to right, \n ".concat(theme.color.green," 0%, ").concat(theme.color.green," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedDarken$1(.02,theme.input.background)," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedDarken$1(.02,theme.input.background)," 100%)"):"linear-gradient(to right, \n ".concat(theme.color.green," 0%, ").concat(theme.color.green," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedLighten$1(.02,theme.input.background)," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedLighten$1(.02,theme.input.background)," 100%)"),boxShadow:"".concat(theme.appBorderColor," 0 0 0 1px inset"),borderRadius:6,width:"100%",height:6,cursor:"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:"1px solid ".concat(rgba(theme.color.border,.2)),borderRadius:"50px",boxShadow:"0 1px 3px 0px ".concat(rgba(theme.color.border,.2)),cursor:"grab",background:"".concat(theme.input.background),transition:"all 150ms ease-out","&:hover":{background:"".concat(curriedDarken$1(.05,theme.input.background)),transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:"".concat(theme.input.background),transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:"light"===theme.base?"linear-gradient(to right, \n ".concat(theme.color.green," 0%, ").concat(theme.color.green," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedDarken$1(.02,theme.input.background)," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedDarken$1(.02,theme.input.background)," 100%)"):"linear-gradient(to right, \n ".concat(theme.color.green," 0%, ").concat(theme.color.green," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedLighten$1(.02,theme.input.background)," ").concat((value-min)/(max-min)*100,"%, \n ").concat(curriedLighten$1(.02,theme.input.background)," 100%)"),boxShadow:"".concat(theme.appBorderColor," 0 0 0 1px inset"),color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:"".concat(theme.input.background),border:"1px solid ".concat(rgba(theme.appBorderColor,.2)),borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}}})),RangeLabel=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),RangeWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div({display:"flex",alignItems:"center",width:"100%"});function getNumberOfDecimalPlaces(number){var match=number.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return match?Math.max(0,(match[1]?match[1].length:0)-(match[2]?+match[2]:0)):0}var RangeControl=function RangeControl(_ref171){var name=_ref171.name,value=_ref171.value,onChange=_ref171.onChange,_ref171$min=_ref171.min,min=void 0===_ref171$min?0:_ref171$min,_ref171$max=_ref171.max,max=void 0===_ref171$max?100:_ref171$max,_ref171$step=_ref171.step,step=void 0===_ref171$step?1:_ref171$step,onBlur=_ref171.onBlur,onFocus=_ref171.onFocus,hasValue=void 0!==value,numberOFDecimalsPlaces=Object(react__WEBPACK_IMPORTED_MODULE_51__.useMemo)((function(){return getNumberOfDecimalPlaces(step)}),[step]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(RangeWrapper,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(RangeLabel,null,min),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(RangeInput,Object.assign({id:getControlId(name),type:"range",onChange:function handleChange(event){onChange(parse$1(event.target.value))}},{name:name,value:value,min:min,max:max,step:step,onFocus:onFocus,onBlur:onBlur})),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(RangeLabel,null,"".concat(hasValue?value.toFixed(numberOFDecimalsPlaces):"--")," / ",max))},Wrapper$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.label({display:"flex"}),TextControl=function TextControl(_ref172){var name=_ref172.name,value=_ref172.value,onChange=_ref172.onChange,onFocus=_ref172.onFocus,onBlur=_ref172.onBlur,_useState34=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(!1),2),forceVisible=_useState34[0],setForceVisible=_useState34[1],onForceVisible=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(){onChange(""),setForceVisible(!0)}),[setForceVisible]);if(void 0===value)return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Form.Button,{id:getControlSetterButtonId(name),onClick:onForceVisible},"Set string");var isValid="string"==typeof value;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Wrapper$1,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Form.Textarea,Object.assign({id:getControlId(name),onChange:function handleChange(event){onChange(event.target.value)},size:"flex",placeholder:"Edit string...",autoFocus:forceVisible,valid:isValid?null:"error"},{name:name,value:isValid?value:"",onFocus:onFocus,onBlur:onBlur})))},FileInput=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i)(Form.Input)({padding:10});function revokeOldUrls(urls){urls.forEach((function(url){url.startsWith("blob:")&&URL.revokeObjectURL(url)}))}var FilesControl=function FilesControl(_ref173){var onChange=_ref173.onChange,name=_ref173.name,_ref173$accept=_ref173.accept,accept=void 0===_ref173$accept?"image/*":_ref173$accept,value=_ref173.value;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(FileInput,{id:getControlId(name),type:"file",name:name,multiple:!0,onChange:function handleFileChange(e){if(e.target.files){var fileUrls=Array.from(e.target.files).map((function(file){return URL.createObjectURL(file)}));onChange(fileUrls),revokeOldUrls(value)}},accept:accept,size:"flex"})},LazyColorControl=Object(react__WEBPACK_IMPORTED_MODULE_51__.lazy)((function(){return __webpack_require__.e(13).then(__webpack_require__.bind(null,"./node_modules/@storybook/components/dist/esm/Color-f953d088.js"))})),ColorControl=function ColorControl(props){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",null)},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(LazyColorControl,Object.assign({},props)))},Controls={array:ObjectControl,object:ObjectControl,boolean:BooleanControl,color:ColorControl,date:DateControl,number:NumberControl,check:OptionsControl,"inline-check":OptionsControl,radio:OptionsControl,"inline-radio":OptionsControl,select:OptionsControl,"multi-select":OptionsControl,range:RangeControl,text:TextControl,file:FilesControl},NoControl=function NoControl(){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51___default.a.Fragment,null,"-")},ArgControl=function ArgControl(_ref174){var row=_ref174.row,arg=_ref174.arg,updateArgs=_ref174.updateArgs,key=row.key,control=row.control,_useState36=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(!1),2),isFocused=_useState36[0],setFocused=_useState36[1],_useState38=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)({value:arg}),2),boxedValue=_useState38[0],setBoxedValue=_useState38[1];Object(react__WEBPACK_IMPORTED_MODULE_51__.useEffect)((function(){isFocused||setBoxedValue({value:arg})}),[isFocused,arg]);var onChange=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(argVal){return setBoxedValue({value:argVal}),updateArgs(_defineProperty2({},key,argVal)),argVal}),[updateArgs,key]),onBlur=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(){return setFocused(!1)}),[]),onFocus=Object(react__WEBPACK_IMPORTED_MODULE_51__.useCallback)((function(){return setFocused(!0)}),[]);if(!control||control.disable)return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(NoControl,null);var props={name:key,argType:row,value:boxedValue.value,onChange:onChange,onBlur:onBlur,onFocus:onFocus},Control=Controls[control.type]||NoControl;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Control,Object.assign({},props,control,{controlType:control.type}))},Name=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.span({fontWeight:"bold"}),Required=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.span((function(_ref175){var theme=_ref175.theme;return{color:theme.color.negative,fontFamily:theme.typography.fonts.mono,cursor:"help"}})),Description=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref176){var theme=_ref176.theme;return{"&&":{p:{margin:"0 0 10px 0"},a:{color:theme.color.secondary}},code:Object.assign(Object.assign({},codeCommon({theme:theme})),{fontSize:12,fontFamily:theme.typography.fonts.mono}),"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}}})),Type=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref177){var theme=_ref177.theme,hasDescription=_ref177.hasDescription;return{color:"light"===theme.base?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.2,theme.color.defaultText),marginTop:hasDescription?4:0}})),TypeWithJsDoc=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref178){var theme=_ref178.theme,hasDescription=_ref178.hasDescription;return{color:"light"===theme.base?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.2,theme.color.defaultText),marginTop:hasDescription?12:0,marginBottom:12}})),StyledTd$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.td((function(_ref179){_ref179.theme;return{paddingLeft:_ref179.expandable?"40px !important":"20px !important"}})),ArgRow=function ArgRow(props){var _a,row=props.row,updateArgs=props.updateArgs,compact=props.compact,expandable=props.expandable,initialExpandedArgs=props.initialExpandedArgs,name=row.name,description=row.description,table=row.table||{},type=table.type||row.type,defaultValue=table.defaultValue||row.defaultValue,required=null===(_a=row.type)||void 0===_a?void 0:_a.required,hasDescription=null!=description&&""!==description;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("tr",null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(StyledTd$1,{expandable:expandable},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Name,null,name),required?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Required,{title:"Required"},"*"):null),compact?null:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("td",null,hasDescription&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Description,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Markdown,null,description)),null!=table.jsDocTags?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(TypeWithJsDoc,{hasDescription:hasDescription},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgValue,{value:type,initialExpandedArgs:initialExpandedArgs})),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgJsDoc,{tags:table.jsDocTags})):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Type,{hasDescription:hasDescription},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgValue,{value:type,initialExpandedArgs:initialExpandedArgs}))),compact?null:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("td",null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgValue,{value:defaultValue,initialExpandedArgs:initialExpandedArgs})),updateArgs?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("td",null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgControl,Object.assign({},props))):null)},ExpanderIcon=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i)(Icons)((function(_ref180){var theme=_ref180.theme;return{marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:"light"===theme.base?curriedTransparentize$1(.25,theme.color.defaultText):curriedTransparentize$1(.3,theme.color.defaultText),border:"none",display:"inline-block"}})),FlexWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.span((function(_ref181){_ref181.theme;return{display:"flex",lineHeight:"20px",alignItems:"center"}})),Section=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.td((function(_ref182){var theme=_ref182.theme;return{position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:theme.typography.weight.black,fontSize:theme.typography.size.s1-1,color:"light"===theme.base?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText),background:"".concat(theme.background.app," !important"),"& ~ td":{background:"".concat(theme.background.app," !important")}}})),Subsection=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.td((function(_ref183){var theme=_ref183.theme;return{position:"relative",fontWeight:theme.typography.weight.bold,fontSize:theme.typography.size.s2-1,background:theme.background.content}})),StyledTd=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.td((function(_ref184){_ref184.theme;return{position:"relative"}})),StyledTr=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.tr((function(_ref185){var theme=_ref185.theme;return{"&:hover > td":{backgroundColor:"".concat(theme.background.hoverable," !important"),boxShadow:"".concat(theme.color.mediumlight," 0 - 1px 0 0 inset"),cursor:"row-resize"}}})),ClickIntercept=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.button((function(){return{background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"}})),SectionRow=function SectionRow(_ref186){var _ref186$level=_ref186.level,level=void 0===_ref186$level?"section":_ref186$level,label=_ref186.label,children=_ref186.children,_ref186$initialExpand=_ref186.initialExpanded,initialExpanded=void 0===_ref186$initialExpand||_ref186$initialExpand,_ref186$colSpan=_ref186.colSpan,colSpan=void 0===_ref186$colSpan?3:_ref186$colSpan,_useState40=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_51__.useState)(initialExpanded),2),expanded=_useState40[0],setExpanded=_useState40[1],Level="subsection"===level?Subsection:Section,itemCount=(null==children?void 0:children.length)||0,caption="subsection"===level?"".concat(itemCount," item").concat(1!==itemCount?"s":""):"",icon=expanded?"arrowdown":"arrowright",helperText="".concat(expanded?"Hide":"Show"," ").concat("subsection"===level?itemCount:label," item").concat(1!==itemCount?"s":"");return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_51___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(StyledTr,{title:helperText},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Level,{colSpan:1},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ClickIntercept,{onClick:function onClick(e){return setExpanded(!expanded)},tabIndex:0},helperText),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(FlexWrapper,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ExpanderIcon,{icon:icon}),label)),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(StyledTd,{colSpan:colSpan-1},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ClickIntercept,{onClick:function onClick(e){return setExpanded(!expanded)},tabIndex:-1,style:{outline:"none"}},helperText),expanded?null:caption)),expanded?children:null)},TableWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.table((function(_ref187){var _trFirstChild,_trLastChild,_3,theme=_ref187.theme,compact=_ref187.compact,inAddonPanel=_ref187.inAddonPanel;return{"&&":(_3={borderCollapse:"collapse",borderSpacing:0,color:theme.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:theme.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:inAddonPanel?0:25,marginBottom:inAddonPanel?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":Object.assign({},compact?null:{width:"35%"}),"td:nth-of-type(3)":Object.assign({},compact?null:{width:"15%"}),"th:last-of-type, td:last-of-type":Object.assign({paddingRight:20},compact?null:{width:"25%"}),th:{color:"light"===theme.base?curriedTransparentize$1(.25,theme.color.defaultText):curriedTransparentize$1(.45,theme.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:inAddonPanel?0:1,marginRight:inAddonPanel?0:1},_defineProperty2(_3,"tr:first-child",(_trFirstChild={},_defineProperty2(_trFirstChild,"td:first-child, th:first-child",{borderTopLeftRadius:inAddonPanel?0:theme.appBorderRadius}),_defineProperty2(_trFirstChild,"td:last-child, th:last-child",{borderTopRightRadius:inAddonPanel?0:theme.appBorderRadius}),_trFirstChild)),_defineProperty2(_3,"tr:last-child",(_trLastChild={},_defineProperty2(_trLastChild,"td:first-child, th:first-child",{borderBottomLeftRadius:inAddonPanel?0:theme.appBorderRadius}),_defineProperty2(_trLastChild,"td:last-child, th:last-child",{borderBottomRightRadius:inAddonPanel?0:theme.appBorderRadius}),_trLastChild)),_defineProperty2(_3,"tbody",{boxShadow:!inAddonPanel&&("light"===theme.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 1px,\n ".concat(curriedTransparentize$1(.035,theme.appBorderColor)," 0 0 0 1px"):"rgba(0, 0, 0, 0.20) 0 2px 5px 1px,\n ".concat(curriedOpacify$1(.05,theme.appBorderColor)," 0 0 0 1px")),borderRadius:theme.appBorderRadius,"@media not all and (min-resolution:.001dpcm)":{"@supports (-webkit-appearance:none)":Object.assign(Object.assign({borderWidth:1,borderStyle:"solid"},inAddonPanel&&{borderColor:"transparent"}),!inAddonPanel&&{borderColor:"light"===theme.base?curriedTransparentize$1(.035,theme.appBorderColor):curriedOpacify$1(.05,theme.appBorderColor)})},tr:Object.assign({background:"transparent",overflow:"hidden"},inAddonPanel?{borderTopWidth:1,borderTopStyle:"solid",borderTopColor:"light"===theme.base?curriedDarken$1(.1,theme.background.content):curriedLighten$1(.05,theme.background.content)}:_defineProperty2({},"&:not(:first-child)",{borderTopWidth:1,borderTopStyle:"solid",borderTopColor:"light"===theme.base?curriedDarken$1(.1,theme.background.content):curriedLighten$1(.05,theme.background.content)})),td:{background:theme.background.content}}),_3)}}),(function(_ref189){var isLoading=_ref189.isLoading,theme=_ref189.theme;return isLoading?{"th span, td span, td button":{display:"inline",backgroundColor:theme.appBorderColor,animation:"".concat(theme.animation.glow," 1.5s ease-in-out infinite"),color:"transparent",boxShadow:"none",borderRadius:0}}:{}})),ResetButton=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.button((function(_ref190){var theme=_ref190.theme;return{border:0,borderRadius:"3em",cursor:"pointer",display:"inline-block",overflow:"hidden",padding:"3px 8px",transition:"all 150ms ease-out",verticalAlign:"top",userSelect:"none",margin:0,backgroundColor:"light"===theme.base?"#EAF3FC":theme.color.border,boxShadow:"light"===theme.base?"".concat(theme.color.border," 0 0 0 1px inset"):"".concat(theme.color.darker," 0 0 0 1px inset"),color:theme.color.secondary,"&:hover":{background:"light"===theme.base?curriedDarken$1(.03,"#EAF3FC"):curriedOpacify$1(.1,theme.color.border)},"&:focus":{boxShadow:"".concat(theme.color.secondary," 0 0 0 1px inset"),outline:"none"},svg:{display:"block",height:14,width:14}}})),ControlHeadingWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.span({display:"flex",justifyContent:"space-between"}),ArgsTableError;!function(ArgsTableError){ArgsTableError.NO_COMPONENT="No component found.",ArgsTableError.ARGS_UNSUPPORTED="Args unsupported. See Args documentation for your framework."}(ArgsTableError||(ArgsTableError={}));var sortFns={alpha:function alpha(a,b){return a.name.localeCompare(b.name)},requiredFirst:function requiredFirst(a,b){var _a,_b;return Number(!!(null===(_a=b.type)||void 0===_a?void 0:_a.required))-Number(!!(null===(_b=a.type)||void 0===_b?void 0:_b.required))||a.name.localeCompare(b.name)},none:void 0},rowLoadingData=function rowLoadingData(key){return{key:key,name:"propertyName",description:"This is a short description",control:{type:"text"},table:{type:{summary:"summary"},defaultValue:{summary:"defaultValue"}}}},argsTableLoadingData={rows:{row1:rowLoadingData("row1"),row2:rowLoadingData("row2"),row3:rowLoadingData("row3")}},groupRows=function groupRows(rows,sort){var sections={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!rows)return sections;Object.entries(rows).forEach((function(_ref191){var _ref192=_slicedToArray(_ref191,2),key=_ref192[0],row=_ref192[1],_ref193=(null==row?void 0:row.table)||{},category=_ref193.category,subcategory=_ref193.subcategory;if(category){var section=sections.sections[category]||{ungrouped:[],subsections:{}};if(subcategory){var subsection=section.subsections[subcategory]||[];subsection.push(Object.assign({key:key},row)),section.subsections[subcategory]=subsection}else section.ungrouped.push(Object.assign({key:key},row));sections.sections[category]=section}else if(subcategory){var _subsection=sections.ungroupedSubsections[subcategory]||[];_subsection.push(Object.assign({key:key},row)),sections.ungroupedSubsections[subcategory]=_subsection}else sections.ungrouped.push(Object.assign({key:key},row))}));var sortFn=sortFns[sort],sortSubsection=function sortSubsection(record){return sortFn?Object.keys(record).reduce((function(acc,cur){return Object.assign(Object.assign({},acc),_defineProperty2({},cur,record[cur].sort(sortFn)))}),{}):record};return{ungrouped:sections.ungrouped.sort(sortFn),ungroupedSubsections:sortSubsection(sections.ungroupedSubsections),sections:Object.keys(sections.sections).reduce((function(acc,cur){return Object.assign(Object.assign({},acc),_defineProperty2({},cur,{ungrouped:sections.sections[cur].ungrouped.sort(sortFn),subsections:sortSubsection(sections.sections[cur].subsections)}))}),{})}},safeIncludeConditionalArg=function safeIncludeConditionalArg(row,args,globals){try{return Object(_storybook_csf__WEBPACK_IMPORTED_MODULE_54__.includeConditionalArg)(row,args,globals)}catch(err){return _storybook_client_logger__WEBPACK_IMPORTED_MODULE_56__.b.warn(err.message),!1}},ArgsTable=function ArgsTable(props){if("error"in props)return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(EmptyBlock,null,props.error," ",react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Link,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},"Read the docs"));var updateArgs=props.updateArgs,resetArgs=props.resetArgs,compact=props.compact,inAddonPanel=props.inAddonPanel,initialExpandedArgs=props.initialExpandedArgs,_props$sort=props.sort,sort=void 0===_props$sort?"none":_props$sort,isLoading="isLoading"in props,_ref194="rows"in props?props:argsTableLoadingData,rows=_ref194.rows,args=_ref194.args,globals=_ref194.globals,groups=groupRows(pickBy_1(rows,(function(row){var _a;return!(null===(_a=null==row?void 0:row.table)||void 0===_a?void 0:_a.disable)&&safeIncludeConditionalArg(row,args||{},globals||{})})),sort);if(0===groups.ungrouped.length&&0===Object.entries(groups.sections).length&&0===Object.entries(groups.ungroupedSubsections).length)return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(EmptyBlock,null,"No inputs found for this component. ",react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Link,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},"Read the docs"));var colSpan=1;updateArgs&&(colSpan+=1),compact||(colSpan+=2);var expandable=Object.keys(groups.sections).length>0,common={updateArgs:updateArgs,compact:compact,inAddonPanel:inAddonPanel,initialExpandedArgs:initialExpandedArgs};return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ResetWrapper,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(TableWrapper,Object.assign({"aria-hidden":isLoading},{compact:compact,inAddonPanel:inAddonPanel,isLoading:isLoading},{className:"docblock-argstable"}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("thead",{className:"docblock-argstable-head"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("tr",null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("th",null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",null,"Name")),compact?null:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("th",null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",null,"Description")),compact?null:react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("th",null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",null,"Default")),updateArgs?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("th",null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ControlHeadingWrapper,null,"Control"," ",!isLoading&&resetArgs&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ResetButton,{onClick:function onClick(){return resetArgs()},title:"Reset controls"},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Icons,{icon:"undo","aria-hidden":!0})))):null)),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("tbody",{className:"docblock-argstable-body"},groups.ungrouped.map((function(row){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgRow,Object.assign({key:row.key,row:row,arg:args&&args[row.key]},common))})),Object.entries(groups.ungroupedSubsections).map((function(_ref195){var _ref196=_slicedToArray(_ref195,2),subcategory=_ref196[0],subsection=_ref196[1];return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SectionRow,{key:subcategory,label:subcategory,level:"subsection",colSpan:colSpan},subsection.map((function(row){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgRow,Object.assign({key:row.key,row:row,arg:args&&args[row.key],expandable:expandable},common))})))})),Object.entries(groups.sections).map((function(_ref197){var _ref198=_slicedToArray(_ref197,2),category=_ref198[0],section=_ref198[1];return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SectionRow,{key:category,label:category,level:"section",colSpan:colSpan},section.ungrouped.map((function(row){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgRow,Object.assign({key:row.key,row:row,arg:args&&args[row.key]},common))})),Object.entries(section.subsections).map((function(_ref199){var _ref200=_slicedToArray(_ref199,2),subcategory=_ref200[0],subsection=_ref200[1];return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SectionRow,{key:subcategory,label:subcategory,level:"subsection",colSpan:colSpan},subsection.map((function(row){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgRow,Object.assign({key:row.key,row:row,arg:args&&args[row.key],expandable:expandable},common))})))})))})))))},TabbedArgsTable=function TabbedArgsTable(_a){var tabs=_a.tabs,props=__rest(_a,["tabs"]),entries=Object.entries(tabs);return 1===entries.length?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgsTable,Object.assign({},entries[0][1],props)):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(TabsState,null,entries.map((function(entry){var _entry=_slicedToArray(entry,2),label=_entry[0],table=_entry[1],id="prop_table_div_".concat(label);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",{key:id,id:id,title:label},(function(_ref201){return _ref201.active?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ArgsTable,Object.assign({key:"prop_table_".concat(label)},table,props)):null}))})))},NoControlsWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref202){var theme=_ref202.theme;return{background:theme.background.warning,color:theme.color.darkest,padding:"10px 15px",lineHeight:"20px",boxShadow:"".concat(theme.appBorderColor," 0 -1px 0 0 inset")}})),NoControlsWarning=function NoControlsWarning(){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(NoControlsWrapper,null,"This story is not configured to handle controls."," ",react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Link,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",cancel:!1,withArrow:!0},"Learn how to add controls"))},Label=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref203){var theme=_ref203.theme;return{marginRight:30,fontSize:"".concat(theme.typography.size.s1,"px"),color:"light"===theme.base?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText)}})),Sample=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),TypeSpecimen=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}}),Wrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div(withReset,(function(_ref204){var theme=_ref204.theme;return Object.assign(Object.assign({},getBlockBackgroundStyle(theme)),{margin:"25px 0 40px",padding:"30px 20px"})})),Typeset=function Typeset(_a){var fontFamily=_a.fontFamily,fontSizes=_a.fontSizes,fontWeight=_a.fontWeight,sampleText=_a.sampleText,props=__rest(_a,["fontFamily","fontSizes","fontWeight","sampleText"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Wrapper,Object.assign({},props,{className:"docblock-typeset"}),fontSizes.map((function(size){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(TypeSpecimen,{key:size},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Label,null,size),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Sample,{style:{fontFamily:fontFamily,fontSize:size,fontWeight:fontWeight,lineHeight:1.2}},sampleText||"Was he a beast if music could move him so?"))})))},ItemTitle=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref205){var theme=_ref205.theme;return{fontWeight:theme.typography.weight.bold,color:theme.color.defaultText}})),ItemSubtitle=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref206){var theme=_ref206.theme;return{color:"light"===theme.base?curriedTransparentize$1(.2,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText)}})),ItemDescription=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5}),SwatchLabel=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref207){var theme=_ref207.theme;return{flex:1,textAlign:"center",fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,lineHeight:1,overflow:"hidden",color:"light"===theme.base?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}})),SwatchLabels=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div({display:"flex",flexDirection:"row"}),Swatch=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref208){return{position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:_ref208.background,content:'""'}}})),SwatchColors=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref209){var theme=_ref209.theme;return Object.assign(Object.assign({},getBlockBackgroundStyle(theme)),{display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"})})),SwatchSpecimen=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30}),Swatches=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div({flex:1,display:"flex",flexDirection:"row"}),Item$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div({display:"flex",alignItems:"flex-start"}),ListName=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div({flex:"0 0 30%"}),ListSwatches=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div({flex:1}),ListHeading=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref210){var theme=_ref210.theme;return{display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:theme.typography.weight.bold,color:"light"===theme.base?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText)}})),List$1=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref211){return{fontSize:_ref211.theme.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}}));function renderSwatch(color,index){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Swatch,{key:"".concat(color,"-").concat(index),title:color,background:color})}function renderSwatchLabel(color,index,colorDescription){return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SwatchLabel,{key:"".concat(color,"-").concat(index),title:color},react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("div",null,color,colorDescription&&react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement("span",null,colorDescription)))}function renderSwatchSpecimen(colors){return Array.isArray(colors)?react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SwatchSpecimen,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SwatchColors,null,colors.map((function(color,index){return renderSwatch(color,index)}))),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SwatchLabels,null,colors.map((function(color,index){return renderSwatchLabel(color,index)})))):react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SwatchSpecimen,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SwatchColors,null,Object.values(colors).map((function(color,index){return renderSwatch(color,index)}))),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(SwatchLabels,null,Object.keys(colors).map((function(color,index){return renderSwatchLabel(color,index,colors[color])}))))}var ColorItem=function ColorItem(_ref212){var title=_ref212.title,subtitle=_ref212.subtitle,colors=_ref212.colors;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Item$1,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ItemDescription,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ItemTitle,null,title),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ItemSubtitle,null,subtitle)),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Swatches,null,renderSwatchSpecimen(colors)))},ColorPalette=function ColorPalette(_a){var children=_a.children,props=__rest(_a,["children"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ResetWrapper,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(List$1,Object.assign({},props,{className:"docblock-colorpalette"}),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ListHeading,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ListName,null,"Name"),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ListSwatches,null,"Swatches")),children))},ItemLabel=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref213){var theme=_ref213.theme;return{fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s2,color:theme.color.defaultText,marginLeft:10,lineHeight:1.2}})),ItemSpecimen=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div((function(_ref214){var theme=_ref214.theme;return Object.assign(Object.assign({},getBlockBackgroundStyle(theme)),{overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}})})),Item=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"}),List=_storybook_theming__WEBPACK_IMPORTED_MODULE_52__.i.div({display:"flex",flexFlow:"row wrap"}),IconItem=function IconItem(_ref215){var name=_ref215.name,children=_ref215.children;return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(Item,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ItemSpecimen,null,children),react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ItemLabel,null,name))},IconGallery=function IconGallery(_a){var children=_a.children,props=__rest(_a,["children"]);return react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(ResetWrapper,null,react__WEBPACK_IMPORTED_MODULE_51___default.a.createElement(List,Object.assign({},props,{className:"docblock-icongallery"}),children))},components=components$1,resetComponents={};Object.keys(components$1).forEach((function(key){resetComponents[key]=Object(react__WEBPACK_IMPORTED_MODULE_51__.forwardRef)((function(props,ref){return Object(react__WEBPACK_IMPORTED_MODULE_51__.createElement)(key,Object.assign(Object.assign({},props),{ref:ref}))}))}))}).call(this,__webpack_require__("./node_modules/webpack/buildin/global.js"))},"./node_modules/@storybook/theming/dist/esm/index.js":function(module,__webpack_exports__,__webpack_require__){"use strict";(function(global){__webpack_require__.d(__webpack_exports__,"a",(function(){return Global})),__webpack_require__.d(__webpack_exports__,"b",(function(){return ThemeProvider})),__webpack_require__.d(__webpack_exports__,"c",(function(){return convert})),__webpack_require__.d(__webpack_exports__,"d",(function(){return darkenColor})),__webpack_require__.d(__webpack_exports__,"e",(function(){return ensure})),__webpack_require__.d(__webpack_exports__,"f",(function(){return isPropValid})),__webpack_require__.d(__webpack_exports__,"g",(function(){return keyframes})),__webpack_require__.d(__webpack_exports__,"h",(function(){return lightenColor})),__webpack_require__.d(__webpack_exports__,"i",(function(){return styled})),__webpack_require__.d(__webpack_exports__,"j",(function(){return themes})),__webpack_require__.d(__webpack_exports__,"k",(function(){return useTheme}));__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.string.trim.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.weak-map.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.match.js"),__webpack_require__("./node_modules/core-js/modules/es.string.split.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/esnext.global-this.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-names.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.set.js"),__webpack_require__("./node_modules/core-js/modules/es.reflect.construct.js"),__webpack_require__("./node_modules/core-js/modules/es.map.js"),__webpack_require__("./node_modules/core-js/modules/es.number.to-fixed.js"),__webpack_require__("./node_modules/core-js/modules/es.string.bold.js"),__webpack_require__("./node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var _templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,react__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__("./node_modules/react/index.js"),memoizerific__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__("./node_modules/memoizerific/memoizerific.js"),memoizerific__WEBPACK_IMPORTED_MODULE_38___default=__webpack_require__.n(memoizerific__WEBPACK_IMPORTED_MODULE_38__),_storybook_client_logger__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__("./node_modules/@storybook/client-logger/dist/esm/index.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0?charat(characters,--position):0,column--,10===character&&(column=1,line--),character}function next(){return character=position2||token(character)>3?"":" "}function escaping(index,count){for(;--count&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(index,caret()+(count<6&&32==peek()&&32==next()))}function delimiter(type){for(;next();)switch(character){case type:return position;case 34:case 39:34!==type&&39!==type&&delimiter(character);break;case 40:41===type&&delimiter(type);break;case 92:next()}return position}function commenter(type,index){for(;next()&&type+character!==57&&(type+character!==84||47!==peek()););return"/*"+slice(index,position-1)+"*"+from(47===type?type:next())}function identifier(index){for(;!token(peek());)next();return slice(index,position)}function compile(value){return dealloc(parse("",null,null,null,[""],value=alloc(value),0,[0],value))}function parse(value,root,parent,rule,rules,rulesets,pseudo,points,declarations){for(var index=0,offset=0,length=pseudo,atrule=0,property=0,previous=0,variable=1,scanning=1,ampersand=1,character=0,type="",props=rules,children=rulesets,reference=rule,characters=type;scanning;)switch(previous=character,character=next()){case 40:if(108!=previous&&58==characters.charCodeAt(length-1)){-1!=indexof(characters+=replace(delimit(character),"&","&\f"),"&\f")&&(ampersand=-1);break}case 34:case 39:case 91:characters+=delimit(character);break;case 9:case 10:case 13:case 32:characters+=whitespace(previous);break;case 92:characters+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),root,parent),declarations);break;default:characters+="/"}break;case 123*variable:points[index++]=strlen(characters)*ampersand;case 125*variable:case 59:case 0:switch(character){case 0:case 125:scanning=0;case 59+offset:property>0&&strlen(characters)-length&&append(property>32?declaration(characters+";",rule,parent,length-1):declaration(replace(characters," ","")+";",rule,parent,length-2),declarations);break;case 59:characters+=";";default:if(append(reference=ruleset(characters,root,parent,index,offset,rules,points,type,props=[],children=[],length),rulesets),123===character)if(0===offset)parse(characters,root,reference,reference,props,rulesets,length,points,children);else switch(atrule){case 100:case 109:case 115:parse(value,reference,reference,rule&&append(ruleset(value,reference,reference,0,0,rules,points,type,rules,props=[],length),children),rules,children,length,points,rule?props:children);break;default:parse(characters,reference,reference,reference,[""],children,0,points,children)}}index=offset=property=0,variable=ampersand=1,type=characters="",length=pseudo;break;case 58:length=1+strlen(characters),property=previous;default:if(variable<1)if(123==character)--variable;else if(125==character&&0==variable++&&125==prev())continue;switch(characters+=from(character),character*variable){case 38:ampersand=offset>0?1:(characters+="\f",-1);break;case 44:points[index++]=(strlen(characters)-1)*ampersand,ampersand=1;break;case 64:45===peek()&&(characters+=delimit(next())),atrule=peek(),offset=length=strlen(type=characters+=identifier(caret())),character++;break;case 45:45===previous&&2==strlen(characters)&&(variable=0)}}return rulesets}function ruleset(value,root,parent,index,offset,rules,points,type,props,children,length){for(var post=offset-1,rule=0===offset?rules:[""],size=sizeof(rule),i=0,j=0,k=0;i0?rule[x]+" "+y:replace(y,/&\f/g,rule[x])))&&(props[k++]=z);return node(value,root,parent,0===offset?RULESET:type,props,children,length)}function comment(value,root,parent){return node(value,root,parent,COMMENT,from(function char(){return character}()),substr(value,2,-2),0)}function declaration(value,root,parent,length){return node(value,root,parent,DECLARATION,substr(value,0,length),substr(value,length+1,-1),length)}function prefix(value,length){switch(function hash(value,length){return(((length<<2^charat(value,0))<<2^charat(value,1))<<2^charat(value,2))<<2^charat(value,3)}(value,length)){case 5103:return WEBKIT+"print-"+value+value;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 WEBKIT+value+value;case 5349:case 4246:case 4810:case 6968:case 2756:return WEBKIT+value+MOZ+value+MS+value+value;case 6828:case 4268:return WEBKIT+value+MS+value+value;case 6165:return WEBKIT+value+MS+"flex-"+value+value;case 5187:return WEBKIT+value+replace(value,/(\w+).+(:[^]+)/,WEBKIT+"box-$1$2"+MS+"flex-$1$2")+value;case 5443:return WEBKIT+value+MS+"flex-item-"+replace(value,/flex-|-self/,"")+value;case 4675:return WEBKIT+value+MS+"flex-line-pack"+replace(value,/align-content|flex-|-self/,"")+value;case 5548:return WEBKIT+value+MS+replace(value,"shrink","negative")+value;case 5292:return WEBKIT+value+MS+replace(value,"basis","preferred-size")+value;case 6060:return WEBKIT+"box-"+replace(value,"-grow","")+WEBKIT+value+MS+replace(value,"grow","positive")+value;case 4554:return WEBKIT+replace(value,/([^-])(transform)/g,"$1"+WEBKIT+"$2")+value;case 6187:return replace(replace(replace(value,/(zoom-|grab)/,WEBKIT+"$1"),/(image-set)/,WEBKIT+"$1"),value,"")+value;case 5495:case 3959:return replace(value,/(image-set\([^]*)/,WEBKIT+"$1$`$1");case 4968:return replace(replace(value,/(.+:)(flex-)?(.*)/,WEBKIT+"box-pack:$3"+MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+WEBKIT+value+value;case 4095:case 3583:case 4068:case 2532:return replace(value,/(.+)-inline(.+)/,WEBKIT+"$1$2")+value;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(strlen(value)-1-length>6)switch(charat(value,length+1)){case 109:if(45!==charat(value,length+4))break;case 102:return replace(value,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(108==charat(value,length+3)?"$3":"$2-$3"))+value;case 115:return~indexof(value,"stretch")?prefix(replace(value,"stretch","fill-available"),length)+value:value}break;case 4949:if(115!==charat(value,length+1))break;case 6444:switch(charat(value,strlen(value)-3-(~indexof(value,"!important")&&10))){case 107:return replace(value,":",":"+WEBKIT)+value;case 101:return replace(value,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(45===charat(value,14)?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+value}break;case 5936:switch(charat(value,length+11)){case 114:return WEBKIT+value+MS+replace(value,/[svh]\w+-[tblr]{2}/,"tb")+value;case 108:return WEBKIT+value+MS+replace(value,/[svh]\w+-[tblr]{2}/,"tb-rl")+value;case 45:return WEBKIT+value+MS+replace(value,/[svh]\w+-[tblr]{2}/,"lr")+value}return WEBKIT+value+MS+value+value}return value}function serialize(children,callback){for(var output="",length=sizeof(children),i=0;i-1&&!element.return)switch(element.type){case DECLARATION:element.return=prefix(element.value,element.length);break;case"@keyframes":return serialize([copy(element,{value:replace(element.value,"@","@"+WEBKIT)})],callback);case RULESET:if(element.length)return function combine(array,callback){return array.map(callback).join("")}(element.props,(function(value){switch(function match(value,pattern){return(value=pattern.exec(value))?value[0]:value}(value,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(element,{props:[replace(value,/:(read-\w+)/,":"+MOZ+"$1")]})],callback);case"::placeholder":return serialize([copy(element,{props:[replace(value,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(element,{props:[replace(value,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(element,{props:[replace(value,/:(plac\w+)/,MS+"input-$1")]})],callback)}return""}))}}],createCache=function createCache(options){var key=options.key;if(isBrowser$6&&"css"===key){var ssrStyles=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(ssrStyles,(function(node){-1!==node.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(node),node.setAttribute("data-s",""))}))}var stylisPlugins=options.stylisPlugins||defaultStylisPlugins;var container,_insert,inserted={},nodesToHydrate=[];isBrowser$6&&(container=options.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+key+' "]'),(function(node){for(var attrib=node.getAttribute("data-emotion").split(" "),i=1;i=4;++i,len-=4)k=1540483477*(65535&(k=255&str.charCodeAt(i)|(255&str.charCodeAt(++i))<<8|(255&str.charCodeAt(++i))<<16|(255&str.charCodeAt(++i))<<24))+(59797*(k>>>16)<<16),h=1540483477*(65535&(k^=k>>>24))+(59797*(k>>>16)<<16)^1540483477*(65535&h)+(59797*(h>>>16)<<16);switch(len){case 3:h^=(255&str.charCodeAt(i+2))<<16;case 2:h^=(255&str.charCodeAt(i+1))<<8;case 1:h=1540483477*(65535&(h^=255&str.charCodeAt(i)))+(59797*(h>>>16)<<16)}return(((h=1540483477*(65535&(h^=h>>>13))+(59797*(h>>>16)<<16))^h>>>15)>>>0).toString(36)}var unitlessKeys={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hyphenateRegex$1=/[A-Z]|^ms/g,animationRegex$1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty$1=function isCustomProperty(property){return 45===property.charCodeAt(1)},isProcessableValue$1=function isProcessableValue(value){return null!=value&&"boolean"!=typeof value},processStyleName$1=memoize((function(styleName){return isCustomProperty$1(styleName)?styleName:styleName.replace(hyphenateRegex$1,"-$&").toLowerCase()})),processStyleValue$1=function processStyleValue(key,value){switch(key){case"animation":case"animationName":if("string"==typeof value)return value.replace(animationRegex$1,(function(match,p1,p2){return cursor$1={name:p1,styles:p2,next:cursor$1},p1}))}return 1===unitlessKeys[key]||isCustomProperty$1(key)||"number"!=typeof value||0===value?value:value+"px"};function handleInterpolation$1(mergedProps,registered,interpolation){if(null==interpolation)return"";if(void 0!==interpolation.__emotion_styles)return interpolation;switch(_typeof(interpolation)){case"boolean":return"";case"object":if(1===interpolation.anim)return cursor$1={name:interpolation.name,styles:interpolation.styles,next:cursor$1},interpolation.name;if(void 0!==interpolation.styles){var next=interpolation.next;if(void 0!==next)for(;void 0!==next;)cursor$1={name:next.name,styles:next.styles,next:cursor$1},next=next.next;return interpolation.styles+";"}return function createStringFromObject$1(mergedProps,registered,obj){var string="";if(Array.isArray(obj))for(var i=0;i96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function composeShouldForwardProps(tag,options,isReal){var shouldForwardProp;if(options){var optionsShouldForwardProp=options.shouldForwardProp;shouldForwardProp=tag.__emotion_forwardProp&&optionsShouldForwardProp?function(propName){return tag.__emotion_forwardProp(propName)&&optionsShouldForwardProp(propName)}:optionsShouldForwardProp}return"function"!=typeof shouldForwardProp&&isReal&&(shouldForwardProp=tag.__emotion_forwardProp),shouldForwardProp},isBrowser="undefined"!=typeof document,useInsertionEffect=react__WEBPACK_IMPORTED_MODULE_37__.useInsertionEffect?react__WEBPACK_IMPORTED_MODULE_37__.useInsertionEffect:function useInsertionEffect(create){create()};var isBrowser$1="undefined"!=typeof document,Insertion=function Insertion(_ref){var cache=_ref.cache,serialized=_ref.serialized,isStringTag=_ref.isStringTag;registerStyles(cache,serialized,isStringTag);var rules=function useInsertionEffectMaybe(create){if(!isBrowser)return create();useInsertionEffect(create)}((function(){return function insertStyles(cache,serialized,isStringTag){registerStyles(cache,serialized,isStringTag);var className=cache.key+"-"+serialized.name;if(void 0===cache.inserted[serialized.name]){var stylesForSSR="",current=serialized;do{var maybeStyles=cache.insert(serialized===current?"."+className:"",current,cache.sheet,!0);isBrowser$2||void 0===maybeStyles||(stylesForSSR+=maybeStyles),current=current.next}while(void 0!==current);if(!isBrowser$2&&0!==stylesForSSR.length)return stylesForSSR}}(cache,serialized,isStringTag)}));if(!isBrowser$1&&void 0!==rules){for(var _ref2,serializedNames=serialized.name,next=serialized.next;void 0!==next;)serializedNames+=" "+next.name,next=next.next;return Object(react__WEBPACK_IMPORTED_MODULE_37__.createElement)("style",((_ref2={})["data-emotion"]=cache.key+" "+serializedNames,_ref2.dangerouslySetInnerHTML={__html:rules},_ref2.nonce=cache.sheet.nonce,_ref2))}return null},newStyled=function createStyled(tag,options){var identifierName,targetClassName,isReal=tag.__emotion_real===tag,baseTag=isReal&&tag.__emotion_base||tag;void 0!==options&&(identifierName=options.label,targetClassName=options.target);var shouldForwardProp=composeShouldForwardProps(tag,options,isReal),defaultShouldForwardProp=shouldForwardProp||getDefaultShouldForwardProp(baseTag),shouldUseAs=!defaultShouldForwardProp("as");return function(){var args=arguments,styles=isReal&&void 0!==tag.__emotion_styles?tag.__emotion_styles.slice(0):[];if(void 0!==identifierName&&styles.push("label:"+identifierName+";"),null==args[0]||void 0===args[0].raw)styles.push.apply(styles,args);else{0,styles.push(args[0][0]);for(var len=args.length,i=1;i=0&&huePrime<1?(red=chroma,green=secondComponent):huePrime>=1&&huePrime<2?(red=secondComponent,green=chroma):huePrime>=2&&huePrime<3?(green=chroma,blue=secondComponent):huePrime>=3&&huePrime<4?(green=secondComponent,blue=chroma):huePrime>=4&&huePrime<5?(red=secondComponent,blue=chroma):huePrime>=5&&huePrime<6&&(red=chroma,blue=secondComponent);var lightnessModification=lightness-chroma/2;return convert(red+lightnessModification,green+lightnessModification,blue+lightnessModification)}var namedColorMap={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var hexRegex=/^#[a-fA-F0-9]{6}$/,hexRgbaRegex=/^#[a-fA-F0-9]{8}$/,reducedHexRegex=/^#[a-fA-F0-9]{3}$/,reducedRgbaHexRegex=/^#[a-fA-F0-9]{4}$/,rgbRegex=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,rgbaRegex=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,hslRegex=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,hslaRegex=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function parseToRgb(color){if("string"!=typeof color)throw new PolishedError(3);var normalizedColor=function nameToHex(color){if("string"!=typeof color)return color;var normalizedColorName=color.toLowerCase();return namedColorMap[normalizedColorName]?"#"+namedColorMap[normalizedColorName]:color}(color);if(normalizedColor.match(hexRegex))return{red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16)};if(normalizedColor.match(hexRgbaRegex)){var alpha=parseFloat((parseInt(""+normalizedColor[7]+normalizedColor[8],16)/255).toFixed(2));return{red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16),alpha:alpha}}if(normalizedColor.match(reducedHexRegex))return{red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16)};if(normalizedColor.match(reducedRgbaHexRegex)){var _alpha=parseFloat((parseInt(""+normalizedColor[4]+normalizedColor[4],16)/255).toFixed(2));return{red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16),alpha:_alpha}}var rgbMatched=rgbRegex.exec(normalizedColor);if(rgbMatched)return{red:parseInt(""+rgbMatched[1],10),green:parseInt(""+rgbMatched[2],10),blue:parseInt(""+rgbMatched[3],10)};var rgbaMatched=rgbaRegex.exec(normalizedColor.substring(0,50));if(rgbaMatched)return{red:parseInt(""+rgbaMatched[1],10),green:parseInt(""+rgbaMatched[2],10),blue:parseInt(""+rgbaMatched[3],10),alpha:parseFloat(""+rgbaMatched[4])>1?parseFloat(""+rgbaMatched[4])/100:parseFloat(""+rgbaMatched[4])};var hslMatched=hslRegex.exec(normalizedColor);if(hslMatched){var rgbColorString="rgb("+hslToRgb(parseInt(""+hslMatched[1],10),parseInt(""+hslMatched[2],10)/100,parseInt(""+hslMatched[3],10)/100)+")",hslRgbMatched=rgbRegex.exec(rgbColorString);if(!hslRgbMatched)throw new PolishedError(4,normalizedColor,rgbColorString);return{red:parseInt(""+hslRgbMatched[1],10),green:parseInt(""+hslRgbMatched[2],10),blue:parseInt(""+hslRgbMatched[3],10)}}var hslaMatched=hslaRegex.exec(normalizedColor.substring(0,50));if(hslaMatched){var _rgbColorString="rgb("+hslToRgb(parseInt(""+hslaMatched[1],10),parseInt(""+hslaMatched[2],10)/100,parseInt(""+hslaMatched[3],10)/100)+")",_hslRgbMatched=rgbRegex.exec(_rgbColorString);if(!_hslRgbMatched)throw new PolishedError(4,normalizedColor,_rgbColorString);return{red:parseInt(""+_hslRgbMatched[1],10),green:parseInt(""+_hslRgbMatched[2],10),blue:parseInt(""+_hslRgbMatched[3],10),alpha:parseFloat(""+hslaMatched[4])>1?parseFloat(""+hslaMatched[4])/100:parseFloat(""+hslaMatched[4])}}throw new PolishedError(5)}function parseToHsl(color){return function rgbToHsl(color){var hue,red=color.red/255,green=color.green/255,blue=color.blue/255,max=Math.max(red,green,blue),min=Math.min(red,green,blue),lightness=(max+min)/2;if(max===min)return void 0!==color.alpha?{hue:0,saturation:0,lightness:lightness,alpha:color.alpha}:{hue:0,saturation:0,lightness:lightness};var delta=max-min,saturation=lightness>.5?delta/(2-max-min):delta/(max+min);switch(max){case red:hue=(green-blue)/delta+(green=1?rgb(firstValue,secondValue,thirdValue):"rgba("+firstValue+","+secondValue+","+thirdValue+","+fourthValue+")";if("object"===_typeof(firstValue)&&void 0===secondValue&&void 0===thirdValue&&void 0===fourthValue)return firstValue.alpha>=1?rgb(firstValue.red,firstValue.green,firstValue.blue):"rgba("+firstValue.red+","+firstValue.green+","+firstValue.blue+","+firstValue.alpha+")";throw new PolishedError(7)}var isRgb=function isRgb(color){return"number"==typeof color.red&&"number"==typeof color.green&&"number"==typeof color.blue&&("number"!=typeof color.alpha||void 0===color.alpha)},isRgba=function isRgba(color){return"number"==typeof color.red&&"number"==typeof color.green&&"number"==typeof color.blue&&"number"==typeof color.alpha},isHsl=function isHsl(color){return"number"==typeof color.hue&&"number"==typeof color.saturation&&"number"==typeof color.lightness&&("number"!=typeof color.alpha||void 0===color.alpha)},isHsla=function isHsla(color){return"number"==typeof color.hue&&"number"==typeof color.saturation&&"number"==typeof color.lightness&&"number"==typeof color.alpha};function toColorString(color){if("object"!==_typeof(color))throw new PolishedError(8);if(isRgba(color))return rgba(color);if(isRgb(color))return rgb(color);if(isHsla(color))return function hsla(value,saturation,lightness,alpha){if("number"==typeof value&&"number"==typeof saturation&&"number"==typeof lightness&&"number"==typeof alpha)return alpha>=1?hslToHex(value,saturation,lightness):"rgba("+hslToRgb(value,saturation,lightness)+","+alpha+")";if("object"===_typeof(value)&&void 0===saturation&&void 0===lightness&&void 0===alpha)return value.alpha>=1?hslToHex(value.hue,value.saturation,value.lightness):"rgba("+hslToRgb(value.hue,value.saturation,value.lightness)+","+value.alpha+")";throw new PolishedError(2)}(color);if(isHsl(color))return function hsl(value,saturation,lightness){if("number"==typeof value&&"number"==typeof saturation&&"number"==typeof lightness)return hslToHex(value,saturation,lightness);if("object"===_typeof(value)&&void 0===saturation&&void 0===lightness)return hslToHex(value.hue,value.saturation,value.lightness);throw new PolishedError(1)}(color);throw new PolishedError(8)}function curried(f,length,acc){return function fn(){var combined=acc.concat(Array.prototype.slice.call(arguments));return combined.length>=length?f.apply(this,combined):curried(f,length,combined)}}function curry(f){return curried(f,f.length,[])}function guard(lowerBoundary,upperBoundary,value){return Math.max(lowerBoundary,Math.min(upperBoundary,value))}function darken(amount,color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(_extends({},hslColor,{lightness:guard(0,1,hslColor.lightness-parseFloat(amount))}))}var curriedDarken$1=curry(darken);function lighten(amount,color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(_extends({},hslColor,{lightness:guard(0,1,hslColor.lightness+parseFloat(amount))}))}var curriedLighten$1=curry(lighten);function opacify(amount,color){if("transparent"===color)return color;var parsedColor=parseToRgb(color);return rgba(_extends({},parsedColor,{alpha:guard(0,1,(100*("number"==typeof parsedColor.alpha?parsedColor.alpha:1)+100*parseFloat(amount))/100)}))}var curriedOpacify$1=curry(opacify);function transparentize(amount,color){if("transparent"===color)return color;var parsedColor=parseToRgb(color);return rgba(_extends({},parsedColor,{alpha:guard(0,1,+(100*("number"==typeof parsedColor.alpha?parsedColor.alpha:1)-100*parseFloat(amount)).toFixed(2)/100)}))}var color_secondary="#1EA7FD",color_tertiary="#FAFBFC",color_ancillary="#22a699",color_orange="#FC521F",color_gold="#FFAE00",color_green="#66BF3C",color_seafoam="#37D5D3",color_purple="#6F2CAC",color_ultraviolet="#2A0481",color_lightest="#FFFFFF",color_lighter="#F8F8F8",color_light="#F3F3F3",color_mediumlight="#EEEEEE",color_medium="#DDDDDD",color_mediumdark="#999999",color_dark="#666666",color_darker="#444444",color_darkest="#333333",color_border="rgba(0,0,0,.1)",color_positive="#66BF3C",color_negative="#FF4400",color_warning="#E69D00",color_critical="#FFFFFF",background={app:"#F6F9FC",bar:"#FFFFFF",content:color_lightest,gridCellSize:10,hoverable:curry(transparentize)(.93,color_secondary),positive:"#E1FFD4",negative:"#FEDED2",warning:"#FFF5CF",critical:"#FF4400"},typography={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700,black:900},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},createReset=memoizerific__WEBPACK_IMPORTED_MODULE_38___default()(1)((function(_ref3){var typography=_ref3.typography;return{body:{fontFamily:typography.fonts.base,fontSize:typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:typography.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:typography.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}}})),theme$1=(memoizerific__WEBPACK_IMPORTED_MODULE_38___default()(1)((function(_ref4){var color=_ref4.color,background=_ref4.background,typography=_ref4.typography,resetStyles=createReset({typography:typography});return Object.assign(Object.assign({},resetStyles),{body:Object.assign(Object.assign({},resetStyles.body),{color:color.defaultText,background:background.app,overflow:"hidden"}),hr:Object.assign(Object.assign({},resetStyles.hr),{borderTop:"1px solid ".concat(color.border)})})})),{base:"light",colorPrimary:"#FF4785",colorSecondary:"#1EA7FD",appBg:background.app,appContentBg:color_lightest,appBorderColor:color_border,appBorderRadius:4,fontBase:typography.fonts.base,fontCode:typography.fonts.mono,textColor:color_darkest,textInverseColor:color_lightest,textMutedColor:color_dark,barTextColor:color_mediumdark,barSelectedColor:color_secondary,barBg:color_lightest,inputBg:color_lightest,inputBorder:color_border,inputTextColor:color_darkest,inputBorderRadius:4}),theme={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#1EA7FD",appBg:"#2f2f2f",appContentBg:color_darkest,appBorderColor:"rgba(255,255,255,.1)",appBorderRadius:4,fontBase:typography.fonts.base,fontCode:typography.fonts.mono,textColor:color_lightest,textInverseColor:color_darkest,textMutedColor:color_mediumdark,barTextColor:"#999999",barSelectedColor:color_secondary,barBg:color_darkest,inputBg:"#3f3f3f",inputBorder:"rgba(0,0,0,.3)",inputTextColor:color_lightest,inputBorderRadius:4},globalWindow=("undefined"!=typeof window?window:void 0!==commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:{}).window,colorFactory=function colorFactory(type){return function(color){if(!function isColorString(color){return"string"==typeof color||(_storybook_client_logger__WEBPACK_IMPORTED_MODULE_39__.a.warn("Color passed to theme object should be a string. Instead "+"".concat(color,"(").concat(_typeof(color),") was passed.")),!1)}(color))return color;if(!function isValidColorForPolished(color){return!/(gradient|var|calc)/.test(color)}(color))return color;try{return function applyPolished(type,color){return"darken"===type?rgba("".concat(curriedDarken$1(1,color)),.95):"lighten"===type?rgba("".concat(curriedLighten$1(1,color)),.95):color}(type,color)}catch(error){return color}}},lightenColor=colorFactory("lighten"),darkenColor=colorFactory("darken"),getPreferredColorScheme=function getPreferredColorScheme(){return globalWindow&&globalWindow.matchMedia&&globalWindow.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"},themes={light:theme$1,dark:theme,normal:theme$1};getPreferredColorScheme();var easing={rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"},rotate360=keyframes(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\tfrom {\n\t\ttransform: rotate(0deg);\n\t}\n\tto {\n\t\ttransform: rotate(360deg);\n\t}\n"]))),glow=keyframes(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n 0%, 100% { opacity: 1; }\n 50% { opacity: .4; }\n"]))),animation={rotate360:rotate360,glow:glow,float:keyframes(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n 0% { transform: translateY(1px); }\n 25% { transform: translateY(0px); }\n 50% { transform: translateY(-3px); }\n 100% { transform: translateY(1px); }\n"]))),jiggle:keyframes(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n 0%, 100% { transform:translate3d(0,0,0); }\n 12.5%, 62.5% { transform:translate3d(-4px,0,0); }\n 37.5%, 87.5% { transform: translate3d(4px,0,0); }\n"]))),inlineGlow:css(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n animation: "," 1.5s ease-in-out infinite;\n color: transparent;\n cursor: progress;\n"])),glow),hoverable:css(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n transition: all 150ms ease-out;\n transform: translate3d(0, 0, 0);\n\n &:hover {\n transform: translate3d(0, -2px, 0);\n }\n\n &:active {\n transform: translate3d(0, 0, 0);\n }\n"])))},chromeDark={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},chromeLight={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},convertColors=function convertColors(colors){return Object.entries(colors).reduce((function(acc,_ref5){var _ref6=_slicedToArray(_ref5,2),k=_ref6[0],v=_ref6[1];return Object.assign(Object.assign({},acc),function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}({},k,function mkColor(color){return{color:color}}(v)))}),{})},create=function create(_ref7){var colors=_ref7.colors,mono=_ref7.mono,colorsObjs=convertColors(colors);return{token:{fontFamily:mono,WebkitFontSmoothing:"antialiased","&.tag":colorsObjs.red3,"&.comment":Object.assign(Object.assign({},colorsObjs.green1),{fontStyle:"italic"}),"&.prolog":Object.assign(Object.assign({},colorsObjs.green1),{fontStyle:"italic"}),"&.doctype":Object.assign(Object.assign({},colorsObjs.green1),{fontStyle:"italic"}),"&.cdata":Object.assign(Object.assign({},colorsObjs.green1),{fontStyle:"italic"}),"&.string":colorsObjs.red1,"&.url":colorsObjs.cyan1,"&.symbol":colorsObjs.cyan1,"&.number":colorsObjs.cyan1,"&.boolean":colorsObjs.cyan1,"&.variable":colorsObjs.cyan1,"&.constant":colorsObjs.cyan1,"&.inserted":colorsObjs.cyan1,"&.atrule":colorsObjs.blue1,"&.keyword":colorsObjs.blue1,"&.attr-value":colorsObjs.blue1,"&.punctuation":colorsObjs.gray1,"&.operator":colorsObjs.gray1,"&.function":colorsObjs.gray1,"&.deleted":colorsObjs.red2,"&.important":{fontWeight:"bold"},"&.bold":{fontWeight:"bold"},"&.italic":{fontStyle:"italic"},"&.class-name":colorsObjs.cyan2,"&.selector":colorsObjs.red3,"&.attr-name":colorsObjs.red4,"&.property":colorsObjs.red4,"&.regex":colorsObjs.red4,"&.entity":colorsObjs.red4,"&.directive.tag .tag":Object.assign({background:"#ffff00"},colorsObjs.gray1)},"language-json .token.boolean":colorsObjs.blue1,"language-json .token.number":colorsObjs.blue1,"language-json .token.property":colorsObjs.cyan2,namespace:{opacity:.7}}},lightSyntaxColors={green1:"#008000",red1:"#A31515",red2:"#9a050f",red3:"#800000",red4:"#ff0000",gray1:"#393A34",cyan1:"#36acaa",cyan2:"#2B91AF",blue1:"#0000ff",blue2:"#00009f"},darkSyntaxColors={green1:"#7C7C7C",red1:"#92C379",red2:"#9a050f",red3:"#A8FF60",red4:"#96CBFE",gray1:"#EDEDED",cyan1:"#C6C5FE",cyan2:"#FFFFB6",blue1:"#B474DD",blue2:"#00009f"},createColors=function createColors(vars){return{primary:vars.colorPrimary,secondary:vars.colorSecondary,tertiary:color_tertiary,ancillary:color_ancillary,orange:color_orange,gold:color_gold,green:color_green,seafoam:color_seafoam,purple:color_purple,ultraviolet:color_ultraviolet,lightest:color_lightest,lighter:color_lighter,light:color_light,mediumlight:color_mediumlight,medium:color_medium,mediumdark:color_mediumdark,dark:color_dark,darker:color_darker,darkest:color_darkest,border:color_border,positive:color_positive,negative:color_negative,warning:color_warning,critical:color_critical,defaultText:vars.textColor||color_darkest,inverseText:vars.textInverseColor||color_lightest}},convert=function convert(){var inherit=arguments.length>0&&void 0!==arguments[0]?arguments[0]:themes[getPreferredColorScheme()],base=inherit.base,colorSecondary=(inherit.colorPrimary,inherit.colorSecondary),appBg=inherit.appBg,appContentBg=inherit.appContentBg,appBorderColor=inherit.appBorderColor,appBorderRadius=inherit.appBorderRadius,fontBase=inherit.fontBase,fontCode=inherit.fontCode,textColor=inherit.textColor,barTextColor=(inherit.textInverseColor,inherit.barTextColor),barSelectedColor=inherit.barSelectedColor,barBg=inherit.barBg,inputBg=inherit.inputBg,inputBorder=inherit.inputBorder,inputTextColor=inherit.inputTextColor,inputBorderRadius=inherit.inputBorderRadius,brandTitle=inherit.brandTitle,brandUrl=inherit.brandUrl,brandImage=inherit.brandImage,brandTarget=inherit.brandTarget,gridCellSize=inherit.gridCellSize,rest=function __rest(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i1?_len3-1:0),_key3=1;_key3<_len3;_key3++)args[_key3-1]=arguments[_key3];return(_Object$prototype$has=Object.prototype.hasOwnProperty).call.apply(_Object$prototype$has,[o].concat(args))}(r,key)){var difference=deletedDiff(l[key],r[key]);return isObject(difference)&&function isEmpty(o){return 0===Object.keys(o).length}(difference)||(acc[key]=difference),acc}return acc[key]=void 0,acc}),{})};var ensure=function ensure(input){if(!input)return convert(theme$1);var missing=deletedDiff(theme$1,input);return Object.keys(missing).length&&_storybook_client_logger__WEBPACK_IMPORTED_MODULE_39__.a.warn(function dedent(templ){for(var values=[],_i=1;_i>8&255]},packInt32=function(number){return[255&number,number>>8&255,number>>16&255,number>>24&255]},unpackInt32=function(buffer){return buffer[3]<<24|buffer[2]<<16|buffer[1]<<8|buffer[0]},packFloat32=function(number){return packIEEE754(fround(number),23,4)},packFloat64=function(number){return packIEEE754(number,52,8)},addGetter=function(Constructor,key,getInternalState){defineBuiltInAccessor(Constructor.prototype,key,{configurable:!0,get:function(){return getInternalState(this)[key]}})},get=function(view,count,index,isLittleEndian){var store=getInternalDataViewState(view),intIndex=toIndex(index),boolIsLittleEndian=!!isLittleEndian;if(intIndex+count>store.byteLength)throw new RangeError("Wrong index");var bytes=store.bytes,start=intIndex+store.byteOffset,pack=arraySlice(bytes,start,start+count);return boolIsLittleEndian?pack:reverse(pack)},set=function(view,count,index,conversion,value,isLittleEndian){var store=getInternalDataViewState(view),intIndex=toIndex(index),pack=conversion(+value),boolIsLittleEndian=!!isLittleEndian;if(intIndex+count>store.byteLength)throw new RangeError("Wrong index");for(var bytes=store.bytes,start=intIndex+store.byteOffset,i=0;i>24)},setUint8:function setUint8(byteOffset,value){$setInt8(this,byteOffset,value<<24>>24)}},{unsafe:!0})}else ArrayBufferPrototype=($ArrayBuffer=function ArrayBuffer(length){anInstance(this,ArrayBufferPrototype);var byteLength=toIndex(length);setInternalState(this,{type:"ArrayBuffer",bytes:fill(Array(byteLength),0),byteLength:byteLength}),DESCRIPTORS||(this.byteLength=byteLength,this.detached=!1)}).prototype,DataViewPrototype=($DataView=function DataView(buffer,byteOffset,byteLength){anInstance(this,DataViewPrototype),anInstance(buffer,ArrayBufferPrototype);var bufferState=getInternalArrayBufferState(buffer),bufferLength=bufferState.byteLength,offset=toIntegerOrInfinity(byteOffset);if(offset<0||offset>bufferLength)throw new RangeError("Wrong offset");if(offset+(byteLength=void 0===byteLength?bufferLength-offset:toLength(byteLength))>bufferLength)throw new RangeError("Wrong length");setInternalState(this,{type:"DataView",buffer:buffer,byteLength:byteLength,byteOffset:offset,bytes:bufferState.bytes}),DESCRIPTORS||(this.buffer=buffer,this.byteLength=byteLength,this.byteOffset=offset)}).prototype,DESCRIPTORS&&(addGetter($ArrayBuffer,"byteLength",getInternalArrayBufferState),addGetter($DataView,"buffer",getInternalDataViewState),addGetter($DataView,"byteLength",getInternalDataViewState),addGetter($DataView,"byteOffset",getInternalDataViewState)),defineBuiltIns(DataViewPrototype,{getInt8:function getInt8(byteOffset){return get(this,1,byteOffset)[0]<<24>>24},getUint8:function getUint8(byteOffset){return get(this,1,byteOffset)[0]},getInt16:function getInt16(byteOffset){var bytes=get(this,2,byteOffset,arguments.length>1&&arguments[1]);return(bytes[1]<<8|bytes[0])<<16>>16},getUint16:function getUint16(byteOffset){var bytes=get(this,2,byteOffset,arguments.length>1&&arguments[1]);return bytes[1]<<8|bytes[0]},getInt32:function getInt32(byteOffset){return unpackInt32(get(this,4,byteOffset,arguments.length>1&&arguments[1]))},getUint32:function getUint32(byteOffset){return unpackInt32(get(this,4,byteOffset,arguments.length>1&&arguments[1]))>>>0},getFloat32:function getFloat32(byteOffset){return unpackIEEE754(get(this,4,byteOffset,arguments.length>1&&arguments[1]),23)},getFloat64:function getFloat64(byteOffset){return unpackIEEE754(get(this,8,byteOffset,arguments.length>1&&arguments[1]),52)},setInt8:function setInt8(byteOffset,value){set(this,1,byteOffset,packInt8,value)},setUint8:function setUint8(byteOffset,value){set(this,1,byteOffset,packInt8,value)},setInt16:function setInt16(byteOffset,value){set(this,2,byteOffset,packInt16,value,arguments.length>2&&arguments[2])},setUint16:function setUint16(byteOffset,value){set(this,2,byteOffset,packInt16,value,arguments.length>2&&arguments[2])},setInt32:function setInt32(byteOffset,value){set(this,4,byteOffset,packInt32,value,arguments.length>2&&arguments[2])},setUint32:function setUint32(byteOffset,value){set(this,4,byteOffset,packInt32,value,arguments.length>2&&arguments[2])},setFloat32:function setFloat32(byteOffset,value){set(this,4,byteOffset,packFloat32,value,arguments.length>2&&arguments[2])},setFloat64:function setFloat64(byteOffset,value){set(this,8,byteOffset,packFloat64,value,arguments.length>2&&arguments[2])}});setToStringTag($ArrayBuffer,"ArrayBuffer"),setToStringTag($DataView,"DataView"),module.exports={ArrayBuffer:$ArrayBuffer,DataView:$DataView}},"./node_modules/core-js/internals/create-html.js":function(module,exports,__webpack_require__){"use strict";var uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),requireObjectCoercible=__webpack_require__("./node_modules/core-js/internals/require-object-coercible.js"),toString=__webpack_require__("./node_modules/core-js/internals/to-string.js"),quot=/"/g,replace=uncurryThis("".replace);module.exports=function(string,tag,attribute,value){var S=toString(requireObjectCoercible(string)),p1="<"+tag;return""!==attribute&&(p1+=" "+attribute+'="'+replace(toString(value),quot,""")+'"'),p1+">"+S+""}},"./node_modules/core-js/internals/ieee754.js":function(module,exports,__webpack_require__){"use strict";var $Array=Array,abs=Math.abs,pow=Math.pow,floor=Math.floor,log=Math.log,LN2=Math.LN2;module.exports={pack:function(number,mantissaLength,bytes){var exponent,mantissa,c,buffer=$Array(bytes),exponentLength=8*bytes-mantissaLength-1,eMax=(1<>1,rt=23===mantissaLength?pow(2,-24)-pow(2,-77):0,sign=number<0||0===number&&1/number<0?1:0,index=0;for((number=abs(number))!=number||number===1/0?(mantissa=number!=number?1:0,exponent=eMax):(exponent=floor(log(number)/LN2),number*(c=pow(2,-exponent))<1&&(exponent--,c*=2),(number+=exponent+eBias>=1?rt/c:rt*pow(2,1-eBias))*c>=2&&(exponent++,c/=2),exponent+eBias>=eMax?(mantissa=0,exponent=eMax):exponent+eBias>=1?(mantissa=(number*c-1)*pow(2,mantissaLength),exponent+=eBias):(mantissa=number*pow(2,eBias-1)*pow(2,mantissaLength),exponent=0));mantissaLength>=8;)buffer[index++]=255&mantissa,mantissa/=256,mantissaLength-=8;for(exponent=exponent<0;)buffer[index++]=255&exponent,exponent/=256,exponentLength-=8;return buffer[--index]|=128*sign,buffer},unpack:function(buffer,mantissaLength){var mantissa,bytes=buffer.length,exponentLength=8*bytes-mantissaLength-1,eMax=(1<>1,nBits=exponentLength-7,index=bytes-1,sign=buffer[index--],exponent=127&sign;for(sign>>=7;nBits>0;)exponent=256*exponent+buffer[index--],nBits-=8;for(mantissa=exponent&(1<<-nBits)-1,exponent>>=-nBits,nBits+=mantissaLength;nBits>0;)mantissa=256*mantissa+buffer[index--],nBits-=8;if(0===exponent)exponent=1-eBias;else{if(exponent===eMax)return mantissa?NaN:sign?-1/0:1/0;mantissa+=pow(2,mantissaLength),exponent-=eBias}return(sign?-1:1)*mantissa*pow(2,exponent-mantissaLength)}}},"./node_modules/core-js/internals/math-float-round.js":function(module,exports,__webpack_require__){"use strict";var sign=__webpack_require__("./node_modules/core-js/internals/math-sign.js"),abs=Math.abs;module.exports=function(x,FLOAT_EPSILON,FLOAT_MAX_VALUE,FLOAT_MIN_VALUE){var n=+x,absolute=abs(n),s=sign(n);if(absoluteFLOAT_MAX_VALUE||result!=result?s*(1/0):s*result}},"./node_modules/core-js/internals/math-fround.js":function(module,exports,__webpack_require__){"use strict";var floatRound=__webpack_require__("./node_modules/core-js/internals/math-float-round.js");module.exports=Math.fround||function fround(x){return floatRound(x,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},"./node_modules/core-js/internals/math-sign.js":function(module,exports,__webpack_require__){"use strict";module.exports=Math.sign||function sign(x){var n=+x;return 0===n||n!=n?n:n<0?-1:1}},"./node_modules/core-js/internals/string-html-forced.js":function(module,exports,__webpack_require__){"use strict";var fails=__webpack_require__("./node_modules/core-js/internals/fails.js");module.exports=function(METHOD_NAME){return fails((function(){var test=""[METHOD_NAME]('"');return test!==test.toLowerCase()||test.split('"').length>3}))}},"./node_modules/core-js/internals/string-trim-end.js":function(module,exports,__webpack_require__){"use strict";var $trimEnd=__webpack_require__("./node_modules/core-js/internals/string-trim.js").end,forcedStringTrimMethod=__webpack_require__("./node_modules/core-js/internals/string-trim-forced.js");module.exports=forcedStringTrimMethod("trimEnd")?function trimEnd(){return $trimEnd(this)}:"".trimEnd},"./node_modules/core-js/internals/to-index.js":function(module,exports,__webpack_require__){"use strict";var toIntegerOrInfinity=__webpack_require__("./node_modules/core-js/internals/to-integer-or-infinity.js"),toLength=__webpack_require__("./node_modules/core-js/internals/to-length.js"),$RangeError=RangeError;module.exports=function(it){if(void 0===it)return 0;var number=toIntegerOrInfinity(it),length=toLength(number);if(number!==length)throw new $RangeError("Wrong length or index");return length}},"./node_modules/core-js/modules/es.array-buffer.constructor.js":function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__("./node_modules/core-js/internals/export.js"),global=__webpack_require__("./node_modules/core-js/internals/global.js"),arrayBufferModule=__webpack_require__("./node_modules/core-js/internals/array-buffer.js"),setSpecies=__webpack_require__("./node_modules/core-js/internals/set-species.js"),ArrayBuffer=arrayBufferModule.ArrayBuffer;$({global:!0,constructor:!0,forced:global.ArrayBuffer!==ArrayBuffer},{ArrayBuffer:ArrayBuffer}),setSpecies("ArrayBuffer")},"./node_modules/core-js/modules/es.global-this.js":function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__("./node_modules/core-js/internals/export.js"),global=__webpack_require__("./node_modules/core-js/internals/global.js");$({global:!0,forced:global.globalThis!==global},{globalThis:global})},"./node_modules/core-js/modules/es.object.get-own-property-names.js":function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__("./node_modules/core-js/internals/export.js"),fails=__webpack_require__("./node_modules/core-js/internals/fails.js"),getOwnPropertyNames=__webpack_require__("./node_modules/core-js/internals/object-get-own-property-names-external.js").f;$({target:"Object",stat:!0,forced:fails((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:getOwnPropertyNames})},"./node_modules/core-js/modules/es.string.bold.js":function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__("./node_modules/core-js/internals/export.js"),createHTML=__webpack_require__("./node_modules/core-js/internals/create-html.js");$({target:"String",proto:!0,forced:__webpack_require__("./node_modules/core-js/internals/string-html-forced.js")("bold")},{bold:function bold(){return createHTML(this,"b","","")}})},"./node_modules/core-js/modules/es.string.small.js":function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__("./node_modules/core-js/internals/export.js"),createHTML=__webpack_require__("./node_modules/core-js/internals/create-html.js");$({target:"String",proto:!0,forced:__webpack_require__("./node_modules/core-js/internals/string-html-forced.js")("small")},{small:function small(){return createHTML(this,"small","","")}})},"./node_modules/core-js/modules/es.string.trim-end.js":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.string.trim-right.js");var $=__webpack_require__("./node_modules/core-js/internals/export.js"),trimEnd=__webpack_require__("./node_modules/core-js/internals/string-trim-end.js");$({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==trimEnd},{trimEnd:trimEnd})},"./node_modules/core-js/modules/es.string.trim-right.js":function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__("./node_modules/core-js/internals/export.js"),trimEnd=__webpack_require__("./node_modules/core-js/internals/string-trim-end.js");$({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==trimEnd},{trimRight:trimEnd})},"./node_modules/core-js/modules/esnext.global-this.js":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.global-this.js")}}]); +//# sourceMappingURL=2.9d7015e1.iframe.bundle.js.map \ No newline at end of file diff --git a/2.9d7015e1.iframe.bundle.js.LICENSE.txt b/2.9d7015e1.iframe.bundle.js.LICENSE.txt new file mode 100644 index 000000000..c18ab1d93 --- /dev/null +++ b/2.9d7015e1.iframe.bundle.js.LICENSE.txt @@ -0,0 +1,14 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ diff --git a/2.9d7015e1.iframe.bundle.js.map b/2.9d7015e1.iframe.bundle.js.map new file mode 100644 index 000000000..5df88f45a --- /dev/null +++ b/2.9d7015e1.iframe.bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"2.9d7015e1.iframe.bundle.js","sources":[],"mappings":";A","sourceRoot":""} \ No newline at end of file diff --git a/3.5d025f14.iframe.bundle.js b/3.5d025f14.iframe.bundle.js new file mode 100644 index 000000000..5fdc8a931 --- /dev/null +++ b/3.5d025f14.iframe.bundle.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"./node_modules/@storybook/components/dist/esm/WithTooltip-167e9982.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithToolTipState",(function(){return WithToolTipState})),__webpack_require__.d(__webpack_exports__,"WithTooltip",(function(){return WithToolTipState})),__webpack_require__.d(__webpack_exports__,"WithTooltipPure",(function(){return WithTooltipPure}));__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.split.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.array.sort.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.map.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.find.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.set.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array-buffer.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.flags.js"),__webpack_require__("./node_modules/core-js/modules/es.string.match.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.starts-with.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js");var _templateObject,_templateObject2,_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__("./node_modules/@storybook/components/dist/esm/index-681e4b07.js"),react__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_35___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_35__),_storybook_theming__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__("./node_modules/@storybook/theming/dist/esm/index.js"),react_dom__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__("./node_modules/react-dom/index.js"),memoizerific__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__("./node_modules/memoizerific/memoizerific.js"),memoizerific__WEBPACK_IMPORTED_MODULE_38___default=__webpack_require__.n(memoizerific__WEBPACK_IMPORTED_MODULE_38__);__webpack_require__("./node_modules/@storybook/csf/dist/index.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&(scaleX=round(rect.width)/offsetWidth||1),offsetHeight>0&&(scaleY=round(rect.height)/offsetHeight||1)}return{width:rect.width/scaleX,height:rect.height/scaleY,top:rect.top/scaleY,right:rect.right/scaleX,bottom:rect.bottom/scaleY,left:rect.left/scaleX,x:rect.left/scaleX,y:rect.top/scaleY}}function getLayoutRect(element){var clientRect=getBoundingClientRect(element),width=element.offsetWidth,height=element.offsetHeight;return Math.abs(clientRect.width-width)<=1&&(width=clientRect.width),Math.abs(clientRect.height-height)<=1&&(height=clientRect.height),{x:element.offsetLeft,y:element.offsetTop,width:width,height:height}}function contains(parent,child){var rootNode=child.getRootNode&&child.getRootNode();if(parent.contains(child))return!0;if(rootNode&&isShadowRoot(rootNode)){var next=child;do{if(next&&parent.isSameNode(next))return!0;next=next.parentNode||next.host}while(next)}return!1}function getComputedStyle(element){return getWindow(element).getComputedStyle(element)}function isTableElement(element){return["table","td","th"].indexOf(getNodeName(element))>=0}function getDocumentElement(element){return((isElement(element)?element.ownerDocument:element.document)||window.document).documentElement}function getParentNode(element){return"html"===getNodeName(element)?element:element.assignedSlot||element.parentNode||(isShadowRoot(element)?element.host:null)||getDocumentElement(element)}function getTrueOffsetParent(element){return isHTMLElement(element)&&"fixed"!==getComputedStyle(element).position?element.offsetParent:null}function getOffsetParent(element){for(var window=getWindow(element),offsetParent=getTrueOffsetParent(element);offsetParent&&isTableElement(offsetParent)&&"static"===getComputedStyle(offsetParent).position;)offsetParent=getTrueOffsetParent(offsetParent);return offsetParent&&("html"===getNodeName(offsetParent)||"body"===getNodeName(offsetParent)&&"static"===getComputedStyle(offsetParent).position)?window:offsetParent||function getContainingBlock(element){var isFirefox=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&isHTMLElement(element)&&"fixed"===getComputedStyle(element).position)return null;for(var currentNode=getParentNode(element);isHTMLElement(currentNode)&&["html","body"].indexOf(getNodeName(currentNode))<0;){var css=getComputedStyle(currentNode);if("none"!==css.transform||"none"!==css.perspective||"paint"===css.contain||-1!==["transform","perspective"].indexOf(css.willChange)||isFirefox&&"filter"===css.willChange||isFirefox&&css.filter&&"none"!==css.filter)return currentNode;currentNode=currentNode.parentNode}return null}(element)||window}function getMainAxisFromPlacement(placement){return["top","bottom"].indexOf(placement)>=0?"x":"y"}function within(min$1,value,max$1){return max(min$1,min(value,max$1))}function mergePaddingObject(paddingObject){return Object.assign({},{top:0,right:0,bottom:0,left:0},paddingObject)}function expandToHashMap(value,keys){return keys.reduce((function(hashMap,key){return hashMap[key]=value,hashMap}),{})}var arrow$1={name:"arrow",enabled:!0,phase:"main",fn:function arrow(_ref){var _state$modifiersData$,state=_ref.state,name=_ref.name,options=_ref.options,arrowElement=state.elements.arrow,popperOffsets=state.modifiersData.popperOffsets,basePlacement=getBasePlacement(state.placement),axis=getMainAxisFromPlacement(basePlacement),len=[_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.Q,_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.W].indexOf(basePlacement)>=0?"height":"width";if(arrowElement&&popperOffsets){var paddingObject=function toPaddingObject(padding,state){return mergePaddingObject("number"!=typeof(padding="function"==typeof padding?padding(Object.assign({},state.rects,{placement:state.placement})):padding)?padding:expandToHashMap(padding,_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.K))}(options.padding,state),arrowRect=getLayoutRect(arrowElement),minProp="y"===axis?_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.Y:_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.Q,maxProp="y"===axis?_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.M:_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.W,endDiff=state.rects.reference[len]+state.rects.reference[axis]-popperOffsets[axis]-state.rects.popper[len],startDiff=popperOffsets[axis]-state.rects.reference[axis],arrowOffsetParent=getOffsetParent(arrowElement),clientSize=arrowOffsetParent?"y"===axis?arrowOffsetParent.clientHeight||0:arrowOffsetParent.clientWidth||0:0,centerToReference=endDiff/2-startDiff/2,min=paddingObject[minProp],max=clientSize-arrowRect[len]-paddingObject[maxProp],center=clientSize/2-arrowRect[len]/2+centerToReference,offset=within(min,center,max),axisProp=axis;state.modifiersData[name]=((_state$modifiersData$={})[axisProp]=offset,_state$modifiersData$.centerOffset=offset-center,_state$modifiersData$)}},effect:function effect$1(_ref2){var state=_ref2.state,_options$element=_ref2.options.element,arrowElement=void 0===_options$element?"[data-popper-arrow]":_options$element;null!=arrowElement&&("string"!=typeof arrowElement||(arrowElement=state.elements.popper.querySelector(arrowElement)))&&contains(state.elements.popper,arrowElement)&&(state.elements.arrow=arrowElement)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(placement){return placement.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mapToStyles(_ref2){var _Object$assign2,popper=_ref2.popper,popperRect=_ref2.popperRect,placement=_ref2.placement,variation=_ref2.variation,offsets=_ref2.offsets,position=_ref2.position,gpuAcceleration=_ref2.gpuAcceleration,adaptive=_ref2.adaptive,roundOffsets=_ref2.roundOffsets,isFixed=_ref2.isFixed,_offsets$x=offsets.x,x=void 0===_offsets$x?0:_offsets$x,_offsets$y=offsets.y,y=void 0===_offsets$y?0:_offsets$y,_ref3="function"==typeof roundOffsets?roundOffsets({x:x,y:y}):{x:x,y:y};x=_ref3.x,y=_ref3.y;var hasX=offsets.hasOwnProperty("x"),hasY=offsets.hasOwnProperty("y"),sideX=_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.Q,sideY=_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.Y,win=window;if(adaptive){var offsetParent=getOffsetParent(popper),heightProp="clientHeight",widthProp="clientWidth";if(offsetParent===getWindow(popper)&&"static"!==getComputedStyle(offsetParent=getDocumentElement(popper)).position&&"absolute"===position&&(heightProp="scrollHeight",widthProp="scrollWidth"),placement===_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.Y||(placement===_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.Q||placement===_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.W)&&variation===_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.N)sideY=_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.M,y-=(isFixed&&win.visualViewport?win.visualViewport.height:offsetParent[heightProp])-popperRect.height,y*=gpuAcceleration?1:-1;if(placement===_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.Q||(placement===_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.Y||placement===_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.M)&&variation===_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.N)sideX=_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.W,x-=(isFixed&&win.visualViewport?win.visualViewport.width:offsetParent[widthProp])-popperRect.width,x*=gpuAcceleration?1:-1}var _Object$assign,commonStyles=Object.assign({position:position},adaptive&&unsetSides),_ref4=!0===roundOffsets?function roundOffsetsByDPR(_ref){var x=_ref.x,y=_ref.y,dpr=window.devicePixelRatio||1;return{x:round(x*dpr)/dpr||0,y:round(y*dpr)/dpr||0}}({x:x,y:y}):{x:x,y:y};return x=_ref4.x,y=_ref4.y,gpuAcceleration?Object.assign({},commonStyles,((_Object$assign={})[sideY]=hasY?"0":"",_Object$assign[sideX]=hasX?"0":"",_Object$assign.transform=(win.devicePixelRatio||1)<=1?"translate("+x+"px, "+y+"px)":"translate3d("+x+"px, "+y+"px, 0)",_Object$assign)):Object.assign({},commonStyles,((_Object$assign2={})[sideY]=hasY?y+"px":"",_Object$assign2[sideX]=hasX?x+"px":"",_Object$assign2.transform="",_Object$assign2))}var passive={passive:!0};var hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(placement){return placement.replace(/left|right|bottom|top/g,(function(matched){return hash$1[matched]}))}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(placement){return placement.replace(/start|end/g,(function(matched){return hash[matched]}))}function getWindowScroll(node){var win=getWindow(node);return{scrollLeft:win.pageXOffset,scrollTop:win.pageYOffset}}function getWindowScrollBarX(element){return getBoundingClientRect(getDocumentElement(element)).left+getWindowScroll(element).scrollLeft}function isScrollParent(element){var _getComputedStyle=getComputedStyle(element),overflow=_getComputedStyle.overflow,overflowX=_getComputedStyle.overflowX,overflowY=_getComputedStyle.overflowY;return/auto|scroll|overlay|hidden/.test(overflow+overflowY+overflowX)}function getScrollParent(node){return["html","body","#document"].indexOf(getNodeName(node))>=0?node.ownerDocument.body:isHTMLElement(node)&&isScrollParent(node)?node:getScrollParent(getParentNode(node))}function listScrollParents(element,list){var _element$ownerDocumen;void 0===list&&(list=[]);var scrollParent=getScrollParent(element),isBody=scrollParent===(null==(_element$ownerDocumen=element.ownerDocument)?void 0:_element$ownerDocumen.body),win=getWindow(scrollParent),target=isBody?[win].concat(win.visualViewport||[],isScrollParent(scrollParent)?scrollParent:[]):scrollParent,updatedList=list.concat(target);return isBody?updatedList:updatedList.concat(listScrollParents(getParentNode(target)))}function rectToClientRect(rect){return Object.assign({},rect,{left:rect.x,top:rect.y,right:rect.x+rect.width,bottom:rect.y+rect.height})}function getClientRectFromMixedType(element,clippingParent){return clippingParent===_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.ab?rectToClientRect(function getViewportRect(element){var win=getWindow(element),html=getDocumentElement(element),visualViewport=win.visualViewport,width=html.clientWidth,height=html.clientHeight,x=0,y=0;return visualViewport&&(width=visualViewport.width,height=visualViewport.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(x=visualViewport.offsetLeft,y=visualViewport.offsetTop)),{width:width,height:height,x:x+getWindowScrollBarX(element),y:y}}(element)):isElement(clippingParent)?function getInnerBoundingClientRect(element){var rect=getBoundingClientRect(element);return rect.top=rect.top+element.clientTop,rect.left=rect.left+element.clientLeft,rect.bottom=rect.top+element.clientHeight,rect.right=rect.left+element.clientWidth,rect.width=element.clientWidth,rect.height=element.clientHeight,rect.x=rect.left,rect.y=rect.top,rect}(clippingParent):rectToClientRect(function getDocumentRect(element){var _element$ownerDocumen,html=getDocumentElement(element),winScroll=getWindowScroll(element),body=null==(_element$ownerDocumen=element.ownerDocument)?void 0:_element$ownerDocumen.body,width=max(html.scrollWidth,html.clientWidth,body?body.scrollWidth:0,body?body.clientWidth:0),height=max(html.scrollHeight,html.clientHeight,body?body.scrollHeight:0,body?body.clientHeight:0),x=-winScroll.scrollLeft+getWindowScrollBarX(element),y=-winScroll.scrollTop;return"rtl"===getComputedStyle(body||html).direction&&(x+=max(html.clientWidth,body?body.clientWidth:0)-width),{width:width,height:height,x:x,y:y}}(getDocumentElement(element)))}function getClippingRect(element,boundary,rootBoundary){var mainClippingParents="clippingParents"===boundary?function getClippingParents(element){var clippingParents=listScrollParents(getParentNode(element)),clipperElement=["absolute","fixed"].indexOf(getComputedStyle(element).position)>=0&&isHTMLElement(element)?getOffsetParent(element):element;return isElement(clipperElement)?clippingParents.filter((function(clippingParent){return isElement(clippingParent)&&contains(clippingParent,clipperElement)&&"body"!==getNodeName(clippingParent)})):[]}(element):[].concat(boundary),clippingParents=[].concat(mainClippingParents,[rootBoundary]),firstClippingParent=clippingParents[0],clippingRect=clippingParents.reduce((function(accRect,clippingParent){var rect=getClientRectFromMixedType(element,clippingParent);return accRect.top=max(rect.top,accRect.top),accRect.right=min(rect.right,accRect.right),accRect.bottom=min(rect.bottom,accRect.bottom),accRect.left=max(rect.left,accRect.left),accRect}),getClientRectFromMixedType(element,firstClippingParent));return clippingRect.width=clippingRect.right-clippingRect.left,clippingRect.height=clippingRect.bottom-clippingRect.top,clippingRect.x=clippingRect.left,clippingRect.y=clippingRect.top,clippingRect}function computeOffsets(_ref){var offsets,reference=_ref.reference,element=_ref.element,placement=_ref.placement,basePlacement=placement?getBasePlacement(placement):null,variation=placement?getVariation(placement):null,commonX=reference.x+reference.width/2-element.width/2,commonY=reference.y+reference.height/2-element.height/2;switch(basePlacement){case _index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.Y:offsets={x:commonX,y:reference.y-element.height};break;case _index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.M:offsets={x:commonX,y:reference.y+reference.height};break;case _index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.W:offsets={x:reference.x+reference.width,y:commonY};break;case _index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.Q:offsets={x:reference.x-element.width,y:commonY};break;default:offsets={x:reference.x,y:reference.y}}var mainAxis=basePlacement?getMainAxisFromPlacement(basePlacement):null;if(null!=mainAxis){var len="y"===mainAxis?"height":"width";switch(variation){case _index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.X:offsets[mainAxis]=offsets[mainAxis]-(reference[len]/2-element[len]/2);break;case _index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.N:offsets[mainAxis]=offsets[mainAxis]+(reference[len]/2-element[len]/2)}}return offsets}function detectOverflow(state,options){void 0===options&&(options={});var _options=options,_options$placement=_options.placement,placement=void 0===_options$placement?state.placement:_options$placement,_options$boundary=_options.boundary,boundary=void 0===_options$boundary?_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.O:_options$boundary,_options$rootBoundary=_options.rootBoundary,rootBoundary=void 0===_options$rootBoundary?_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.ab:_options$rootBoundary,_options$elementConte=_options.elementContext,elementContext=void 0===_options$elementConte?_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.U:_options$elementConte,_options$altBoundary=_options.altBoundary,altBoundary=void 0!==_options$altBoundary&&_options$altBoundary,_options$padding=_options.padding,padding=void 0===_options$padding?0:_options$padding,paddingObject=mergePaddingObject("number"!=typeof padding?padding:expandToHashMap(padding,_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.K)),altContext=elementContext===_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.U?_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.P:_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.U,popperRect=state.rects.popper,element=state.elements[altBoundary?altContext:elementContext],clippingClientRect=getClippingRect(isElement(element)?element:element.contextElement||getDocumentElement(state.elements.popper),boundary,rootBoundary),referenceClientRect=getBoundingClientRect(state.elements.reference),popperOffsets=computeOffsets({reference:referenceClientRect,element:popperRect,strategy:"absolute",placement:placement}),popperClientRect=rectToClientRect(Object.assign({},popperRect,popperOffsets)),elementClientRect=elementContext===_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.U?popperClientRect:referenceClientRect,overflowOffsets={top:clippingClientRect.top-elementClientRect.top+paddingObject.top,bottom:elementClientRect.bottom-clippingClientRect.bottom+paddingObject.bottom,left:clippingClientRect.left-elementClientRect.left+paddingObject.left,right:elementClientRect.right-clippingClientRect.right+paddingObject.right},offsetData=state.modifiersData.offset;if(elementContext===_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.U&&offsetData){var offset=offsetData[placement];Object.keys(overflowOffsets).forEach((function(key){var multiply=[_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.W,_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.M].indexOf(key)>=0?1:-1,axis=[_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.Y,_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.M].indexOf(key)>=0?"y":"x";overflowOffsets[key]+=offset[axis]*multiply}))}return overflowOffsets}function getSideOffsets(overflow,rect,preventedOffsets){return void 0===preventedOffsets&&(preventedOffsets={x:0,y:0}),{top:overflow.top-rect.height-preventedOffsets.y,right:overflow.right-rect.width+preventedOffsets.x,bottom:overflow.bottom-rect.height+preventedOffsets.y,left:overflow.left-rect.width-preventedOffsets.x}}function isAnySideFullyClipped(overflow){return[_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.Y,_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.W,_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.M,_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.Q].some((function(side){return overflow[side]>=0}))}var offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function offset(_ref2){var state=_ref2.state,options=_ref2.options,name=_ref2.name,_options$offset=options.offset,offset=void 0===_options$offset?[0,0]:_options$offset,data=_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.S.reduce((function(acc,placement){return acc[placement]=function distanceAndSkiddingToXY(placement,rects,offset){var basePlacement=getBasePlacement(placement),invertDistance=[_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.Q,_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.Y].indexOf(basePlacement)>=0?-1:1,_ref="function"==typeof offset?offset(Object.assign({},rects,{placement:placement})):offset,skidding=_ref[0],distance=_ref[1];return skidding=skidding||0,distance=(distance||0)*invertDistance,[_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.Q,_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.W].indexOf(basePlacement)>=0?{x:distance,y:skidding}:{x:skidding,y:distance}}(placement,state.rects,offset),acc}),{}),_data$state$placement=data[state.placement],x=_data$state$placement.x,y=_data$state$placement.y;null!=state.modifiersData.popperOffsets&&(state.modifiersData.popperOffsets.x+=x,state.modifiersData.popperOffsets.y+=y),state.modifiersData[name]=data}};var preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:function preventOverflow(_ref){var state=_ref.state,options=_ref.options,name=_ref.name,_options$mainAxis=options.mainAxis,checkMainAxis=void 0===_options$mainAxis||_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=void 0!==_options$altAxis&&_options$altAxis,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,padding=options.padding,_options$tether=options.tether,tether=void 0===_options$tether||_options$tether,_options$tetherOffset=options.tetherOffset,tetherOffset=void 0===_options$tetherOffset?0:_options$tetherOffset,overflow=detectOverflow(state,{boundary:boundary,rootBoundary:rootBoundary,padding:padding,altBoundary:altBoundary}),basePlacement=getBasePlacement(state.placement),variation=getVariation(state.placement),isBasePlacement=!variation,mainAxis=getMainAxisFromPlacement(basePlacement),altAxis=function getAltAxis(axis){return"x"===axis?"y":"x"}(mainAxis),popperOffsets=state.modifiersData.popperOffsets,referenceRect=state.rects.reference,popperRect=state.rects.popper,tetherOffsetValue="function"==typeof tetherOffset?tetherOffset(Object.assign({},state.rects,{placement:state.placement})):tetherOffset,normalizedTetherOffsetValue="number"==typeof tetherOffsetValue?{mainAxis:tetherOffsetValue,altAxis:tetherOffsetValue}:Object.assign({mainAxis:0,altAxis:0},tetherOffsetValue),offsetModifierState=state.modifiersData.offset?state.modifiersData.offset[state.placement]:null,data={x:0,y:0};if(popperOffsets){if(checkMainAxis){var _offsetModifierState$,mainSide="y"===mainAxis?_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.Y:_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.Q,altSide="y"===mainAxis?_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.M:_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.W,len="y"===mainAxis?"height":"width",offset=popperOffsets[mainAxis],min$1=offset+overflow[mainSide],max$1=offset-overflow[altSide],additive=tether?-popperRect[len]/2:0,minLen=variation===_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.X?referenceRect[len]:popperRect[len],maxLen=variation===_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.X?-popperRect[len]:-referenceRect[len],arrowElement=state.elements.arrow,arrowRect=tether&&arrowElement?getLayoutRect(arrowElement):{width:0,height:0},arrowPaddingObject=state.modifiersData["arrow#persistent"]?state.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},arrowPaddingMin=arrowPaddingObject[mainSide],arrowPaddingMax=arrowPaddingObject[altSide],arrowLen=within(0,referenceRect[len],arrowRect[len]),minOffset=isBasePlacement?referenceRect[len]/2-additive-arrowLen-arrowPaddingMin-normalizedTetherOffsetValue.mainAxis:minLen-arrowLen-arrowPaddingMin-normalizedTetherOffsetValue.mainAxis,maxOffset=isBasePlacement?-referenceRect[len]/2+additive+arrowLen+arrowPaddingMax+normalizedTetherOffsetValue.mainAxis:maxLen+arrowLen+arrowPaddingMax+normalizedTetherOffsetValue.mainAxis,arrowOffsetParent=state.elements.arrow&&getOffsetParent(state.elements.arrow),clientOffset=arrowOffsetParent?"y"===mainAxis?arrowOffsetParent.clientTop||0:arrowOffsetParent.clientLeft||0:0,offsetModifierValue=null!=(_offsetModifierState$=null==offsetModifierState?void 0:offsetModifierState[mainAxis])?_offsetModifierState$:0,tetherMax=offset+maxOffset-offsetModifierValue,preventedOffset=within(tether?min(min$1,offset+minOffset-offsetModifierValue-clientOffset):min$1,offset,tether?max(max$1,tetherMax):max$1);popperOffsets[mainAxis]=preventedOffset,data[mainAxis]=preventedOffset-offset}if(checkAltAxis){var _offsetModifierState$2,_mainSide="x"===mainAxis?_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.Y:_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.Q,_altSide="x"===mainAxis?_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.M:_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.W,_offset=popperOffsets[altAxis],_len="y"===altAxis?"height":"width",_min=_offset+overflow[_mainSide],_max=_offset-overflow[_altSide],isOriginSide=-1!==[_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.Y,_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.Q].indexOf(basePlacement),_offsetModifierValue=null!=(_offsetModifierState$2=null==offsetModifierState?void 0:offsetModifierState[altAxis])?_offsetModifierState$2:0,_tetherMin=isOriginSide?_min:_offset-referenceRect[_len]-popperRect[_len]-_offsetModifierValue+normalizedTetherOffsetValue.altAxis,_tetherMax=isOriginSide?_offset+referenceRect[_len]+popperRect[_len]-_offsetModifierValue-normalizedTetherOffsetValue.altAxis:_max,_preventedOffset=tether&&isOriginSide?function withinMaxClamp(min,value,max){var v=within(min,value,max);return v>max?max:v}(_tetherMin,_offset,_tetherMax):within(tether?_tetherMin:_min,_offset,tether?_tetherMax:_max);popperOffsets[altAxis]=_preventedOffset,data[altAxis]=_preventedOffset-_offset}state.modifiersData[name]=data}},requiresIfExists:["offset"]};function getCompositeRect(elementOrVirtualElement,offsetParent,isFixed){void 0===isFixed&&(isFixed=!1);var isOffsetParentAnElement=isHTMLElement(offsetParent),offsetParentIsScaled=isHTMLElement(offsetParent)&&function isElementScaled(element){var rect=element.getBoundingClientRect(),scaleX=round(rect.width)/element.offsetWidth||1,scaleY=round(rect.height)/element.offsetHeight||1;return 1!==scaleX||1!==scaleY}(offsetParent),documentElement=getDocumentElement(offsetParent),rect=getBoundingClientRect(elementOrVirtualElement,offsetParentIsScaled),scroll={scrollLeft:0,scrollTop:0},offsets={x:0,y:0};return(isOffsetParentAnElement||!isOffsetParentAnElement&&!isFixed)&&(("body"!==getNodeName(offsetParent)||isScrollParent(documentElement))&&(scroll=function getNodeScroll(node){return node!==getWindow(node)&&isHTMLElement(node)?function getHTMLElementScroll(element){return{scrollLeft:element.scrollLeft,scrollTop:element.scrollTop}}(node):getWindowScroll(node)}(offsetParent)),isHTMLElement(offsetParent)?((offsets=getBoundingClientRect(offsetParent,!0)).x+=offsetParent.clientLeft,offsets.y+=offsetParent.clientTop):documentElement&&(offsets.x=getWindowScrollBarX(documentElement))),{x:rect.left+scroll.scrollLeft-offsets.x,y:rect.top+scroll.scrollTop-offsets.y,width:rect.width,height:rect.height}}function order(modifiers){var map=new Map,visited=new Set,result=[];function sort(modifier){visited.add(modifier.name),[].concat(modifier.requires||[],modifier.requiresIfExists||[]).forEach((function(dep){if(!visited.has(dep)){var depModifier=map.get(dep);depModifier&&sort(depModifier)}})),result.push(modifier)}return modifiers.forEach((function(modifier){map.set(modifier.name,modifier)})),modifiers.forEach((function(modifier){visited.has(modifier.name)||sort(modifier)})),result}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return!args.some((function(element){return!(element&&"function"==typeof element.getBoundingClientRect)}))}function popperGenerator(generatorOptions){void 0===generatorOptions&&(generatorOptions={});var _generatorOptions=generatorOptions,_generatorOptions$def=_generatorOptions.defaultModifiers,defaultModifiers=void 0===_generatorOptions$def?[]:_generatorOptions$def,_generatorOptions$def2=_generatorOptions.defaultOptions,defaultOptions=void 0===_generatorOptions$def2?DEFAULT_OPTIONS:_generatorOptions$def2;return function createPopper(reference,popper,options){void 0===options&&(options=defaultOptions);var fn,pending,state={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,defaultOptions),modifiersData:{},elements:{reference:reference,popper:popper},attributes:{},styles:{}},effectCleanupFns=[],isDestroyed=!1,instance={state:state,setOptions:function setOptions(setOptionsAction){var options="function"==typeof setOptionsAction?setOptionsAction(state.options):setOptionsAction;cleanupModifierEffects(),state.options=Object.assign({},defaultOptions,state.options,options),state.scrollParents={reference:isElement(reference)?listScrollParents(reference):reference.contextElement?listScrollParents(reference.contextElement):[],popper:listScrollParents(popper)};var orderedModifiers=function orderModifiers(modifiers){var orderedModifiers=order(modifiers);return _index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.V.reduce((function(acc,phase){return acc.concat(orderedModifiers.filter((function(modifier){return modifier.phase===phase})))}),[])}(function mergeByName(modifiers){var merged=modifiers.reduce((function(merged,current){var existing=merged[current.name];return merged[current.name]=existing?Object.assign({},existing,current,{options:Object.assign({},existing.options,current.options),data:Object.assign({},existing.data,current.data)}):current,merged}),{});return Object.keys(merged).map((function(key){return merged[key]}))}([].concat(defaultModifiers,state.options.modifiers)));return state.orderedModifiers=orderedModifiers.filter((function(m){return m.enabled})),function runModifierEffects(){state.orderedModifiers.forEach((function(_ref3){var name=_ref3.name,_ref3$options=_ref3.options,options=void 0===_ref3$options?{}:_ref3$options,effect=_ref3.effect;if("function"==typeof effect){var cleanupFn=effect({state:state,name:name,instance:instance,options:options}),noopFn=function noopFn(){};effectCleanupFns.push(cleanupFn||noopFn)}}))}(),instance.update()},forceUpdate:function forceUpdate(){if(!isDestroyed){var _state$elements=state.elements,reference=_state$elements.reference,popper=_state$elements.popper;if(areValidElements(reference,popper)){state.rects={reference:getCompositeRect(reference,getOffsetParent(popper),"fixed"===state.options.strategy),popper:getLayoutRect(popper)},state.reset=!1,state.placement=state.options.placement,state.orderedModifiers.forEach((function(modifier){return state.modifiersData[modifier.name]=Object.assign({},modifier.data)}));for(var index=0;index=0}));0===allowedPlacements.length&&(allowedPlacements=placements$1);var overflows=allowedPlacements.reduce((function(acc,placement){return acc[placement]=detectOverflow(state,{placement:placement,boundary:boundary,rootBoundary:rootBoundary,padding:padding})[getBasePlacement(placement)],acc}),{});return Object.keys(overflows).sort((function(a,b){return overflows[a]-overflows[b]}))}(state,{placement:placement,boundary:boundary,rootBoundary:rootBoundary,padding:padding,flipVariations:flipVariations,allowedAutoPlacements:allowedAutoPlacements}):placement)}),[]),referenceRect=state.rects.reference,popperRect=state.rects.popper,checksMap=new Map,makeFallbackChecks=!0,firstFittingPlacement=placements[0],i=0;i=0,len=isVertical?"width":"height",overflow=detectOverflow(state,{placement:placement,boundary:boundary,rootBoundary:rootBoundary,altBoundary:altBoundary,padding:padding}),mainVariationSide=isVertical?isStartVariation?_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.W:_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.Q:isStartVariation?_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.M:_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.Y;referenceRect[len]>popperRect[len]&&(mainVariationSide=getOppositePlacement(mainVariationSide));var altVariationSide=getOppositePlacement(mainVariationSide),checks=[];if(checkMainAxis&&checks.push(overflow[_basePlacement]<=0),checkAltAxis&&checks.push(overflow[mainVariationSide]<=0,overflow[altVariationSide]<=0),checks.every((function(check){return check}))){firstFittingPlacement=placement,makeFallbackChecks=!1;break}checksMap.set(placement,checks)}if(makeFallbackChecks)for(var _loop=function _loop(_i){var fittingPlacement=placements.find((function(placement){var checks=checksMap.get(placement);if(checks)return checks.slice(0,_i).every((function(check){return check}))}));if(fittingPlacement)return firstFittingPlacement=fittingPlacement,"break"},_i=flipVariations?3:1;_i>0;_i--){if("break"===_loop(_i))break}state.placement!==firstFittingPlacement&&(state.modifiersData[name]._skip=!0,state.placement=firstFittingPlacement,state.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},preventOverflow$1,arrow$1,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function hide(_ref){var state=_ref.state,name=_ref.name,referenceRect=state.rects.reference,popperRect=state.rects.popper,preventedOffsets=state.modifiersData.preventOverflow,referenceOverflow=detectOverflow(state,{elementContext:"reference"}),popperAltOverflow=detectOverflow(state,{altBoundary:!0}),referenceClippingOffsets=getSideOffsets(referenceOverflow,referenceRect),popperEscapeOffsets=getSideOffsets(popperAltOverflow,popperRect,preventedOffsets),isReferenceHidden=isAnySideFullyClipped(referenceClippingOffsets),hasPopperEscaped=isAnySideFullyClipped(popperEscapeOffsets);state.modifiersData[name]={referenceClippingOffsets:referenceClippingOffsets,popperEscapeOffsets:popperEscapeOffsets,isReferenceHidden:isReferenceHidden,hasPopperEscaped:hasPopperEscaped},state.attributes.popper=Object.assign({},state.attributes.popper,{"data-popper-reference-hidden":isReferenceHidden,"data-popper-escaped":hasPopperEscaped})}}]});function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,_setPrototypeOf(subClass,superClass)}var ManagerReferenceNodeContext=react__WEBPACK_IMPORTED_MODULE_35__.createContext(),ManagerReferenceNodeSetterContext=react__WEBPACK_IMPORTED_MODULE_35__.createContext();function Manager(_ref){var children=_ref.children,_React$useState=react__WEBPACK_IMPORTED_MODULE_35__.useState(null),referenceNode=_React$useState[0],setReferenceNode=_React$useState[1],hasUnmounted=react__WEBPACK_IMPORTED_MODULE_35__.useRef(!1);react__WEBPACK_IMPORTED_MODULE_35__.useEffect((function(){return function(){hasUnmounted.current=!0}}),[]);var handleSetReferenceNode=react__WEBPACK_IMPORTED_MODULE_35__.useCallback((function(node){hasUnmounted.current||setReferenceNode(node)}),[]);return react__WEBPACK_IMPORTED_MODULE_35__.createElement(ManagerReferenceNodeContext.Provider,{value:referenceNode},react__WEBPACK_IMPORTED_MODULE_35__.createElement(ManagerReferenceNodeSetterContext.Provider,{value:handleSetReferenceNode},children))}var unwrapArray=function unwrapArray(arg){return Array.isArray(arg)?arg[0]:arg},safeInvoke=function safeInvoke(fn){if("function"==typeof fn){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];return fn.apply(void 0,args)}},setRef$1=function setRef(ref,node){if("function"==typeof ref)return safeInvoke(ref,node);null!=ref&&(ref.current=node)},fromEntries=function fromEntries(entries){return entries.reduce((function(acc,_ref){var key=_ref[0],value=_ref[1];return acc[key]=value,acc}),{})},useIsomorphicLayoutEffect="undefined"!=typeof window&&window.document&&window.document.createElement?react__WEBPACK_IMPORTED_MODULE_35__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_35__.useEffect,hasElementType="undefined"!=typeof Element,hasMap="function"==typeof Map,hasSet="function"==typeof Set,hasArrayBuffer="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function equal(a,b){if(a===b)return!0;if(a&&b&&"object"==_typeof(a)&&"object"==_typeof(b)){if(a.constructor!==b.constructor)return!1;var length,i,keys,it;if(Array.isArray(a)){if((length=a.length)!=b.length)return!1;for(i=length;0!=i--;)if(!equal(a[i],b[i]))return!1;return!0}if(hasMap&&a instanceof Map&&b instanceof Map){if(a.size!==b.size)return!1;for(it=a.entries();!(i=it.next()).done;)if(!b.has(i.value[0]))return!1;for(it=a.entries();!(i=it.next()).done;)if(!equal(i.value[1],b.get(i.value[0])))return!1;return!0}if(hasSet&&a instanceof Set&&b instanceof Set){if(a.size!==b.size)return!1;for(it=a.entries();!(i=it.next()).done;)if(!b.has(i.value[0]))return!1;return!0}if(hasArrayBuffer&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(b)){if((length=a.length)!=b.length)return!1;for(i=length;0!=i--;)if(a[i]!==b[i])return!1;return!0}if(a.constructor===RegExp)return a.source===b.source&&a.flags===b.flags;if(a.valueOf!==Object.prototype.valueOf)return a.valueOf()===b.valueOf();if(a.toString!==Object.prototype.toString)return a.toString()===b.toString();if((length=(keys=Object.keys(a)).length)!==Object.keys(b).length)return!1;for(i=length;0!=i--;)if(!Object.prototype.hasOwnProperty.call(b,keys[i]))return!1;if(hasElementType&&a instanceof Element)return!1;for(i=length;0!=i--;)if(("_owner"!==keys[i]&&"__v"!==keys[i]&&"__o"!==keys[i]||!a.$$typeof)&&!equal(a[keys[i]],b[keys[i]]))return!1;return!0}return a!=a&&b!=b}var reactFastCompare=function isEqual(a,b){try{return equal(a,b)}catch(error){if((error.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw error}},EMPTY_MODIFIERS$1=[],NOOP=function NOOP(){},NOOP_PROMISE=function NOOP_PROMISE(){return Promise.resolve(null)},EMPTY_MODIFIERS=[];function Popper(_ref){var _ref$placement=_ref.placement,placement=void 0===_ref$placement?"bottom":_ref$placement,_ref$strategy=_ref.strategy,strategy=void 0===_ref$strategy?"absolute":_ref$strategy,_ref$modifiers=_ref.modifiers,modifiers=void 0===_ref$modifiers?EMPTY_MODIFIERS:_ref$modifiers,referenceElement=_ref.referenceElement,onFirstUpdate=_ref.onFirstUpdate,innerRef=_ref.innerRef,children=_ref.children,referenceNode=react__WEBPACK_IMPORTED_MODULE_35__.useContext(ManagerReferenceNodeContext),_React$useState=react__WEBPACK_IMPORTED_MODULE_35__.useState(null),popperElement=_React$useState[0],setPopperElement=_React$useState[1],_React$useState2=react__WEBPACK_IMPORTED_MODULE_35__.useState(null),arrowElement=_React$useState2[0],setArrowElement=_React$useState2[1];react__WEBPACK_IMPORTED_MODULE_35__.useEffect((function(){setRef$1(innerRef,popperElement)}),[innerRef,popperElement]);var options=react__WEBPACK_IMPORTED_MODULE_35__.useMemo((function(){return{placement:placement,strategy:strategy,onFirstUpdate:onFirstUpdate,modifiers:[].concat(modifiers,[{name:"arrow",enabled:null!=arrowElement,options:{element:arrowElement}}])}}),[placement,strategy,onFirstUpdate,modifiers,arrowElement]),_usePopper=function usePopper(referenceElement,popperElement,options){void 0===options&&(options={});var prevOptions=react__WEBPACK_IMPORTED_MODULE_35__.useRef(null),optionsWithDefaults={onFirstUpdate:options.onFirstUpdate,placement:options.placement||"bottom",strategy:options.strategy||"absolute",modifiers:options.modifiers||EMPTY_MODIFIERS$1},_React$useState=react__WEBPACK_IMPORTED_MODULE_35__.useState({styles:{popper:{position:optionsWithDefaults.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),state=_React$useState[0],setState=_React$useState[1],updateStateModifier=react__WEBPACK_IMPORTED_MODULE_35__.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function fn(_ref){var state=_ref.state,elements=Object.keys(state.elements);setState({styles:fromEntries(elements.map((function(element){return[element,state.styles[element]||{}]}))),attributes:fromEntries(elements.map((function(element){return[element,state.attributes[element]]})))})},requires:["computeStyles"]}}),[]),popperOptions=react__WEBPACK_IMPORTED_MODULE_35__.useMemo((function(){var newOptions={onFirstUpdate:optionsWithDefaults.onFirstUpdate,placement:optionsWithDefaults.placement,strategy:optionsWithDefaults.strategy,modifiers:[].concat(optionsWithDefaults.modifiers,[updateStateModifier,{name:"applyStyles",enabled:!1}])};return reactFastCompare(prevOptions.current,newOptions)?prevOptions.current||newOptions:(prevOptions.current=newOptions,newOptions)}),[optionsWithDefaults.onFirstUpdate,optionsWithDefaults.placement,optionsWithDefaults.strategy,optionsWithDefaults.modifiers,updateStateModifier]),popperInstanceRef=react__WEBPACK_IMPORTED_MODULE_35__.useRef();return useIsomorphicLayoutEffect((function(){popperInstanceRef.current&&popperInstanceRef.current.setOptions(popperOptions)}),[popperOptions]),useIsomorphicLayoutEffect((function(){if(null!=referenceElement&&null!=popperElement){var popperInstance=(options.createPopper||createPopper)(referenceElement,popperElement,popperOptions);return popperInstanceRef.current=popperInstance,function(){popperInstance.destroy(),popperInstanceRef.current=null}}}),[referenceElement,popperElement,options.createPopper]),{state:popperInstanceRef.current?popperInstanceRef.current.state:null,styles:state.styles,attributes:state.attributes,update:popperInstanceRef.current?popperInstanceRef.current.update:null,forceUpdate:popperInstanceRef.current?popperInstanceRef.current.forceUpdate:null}}(referenceElement||referenceNode,popperElement,options),state=_usePopper.state,styles=_usePopper.styles,forceUpdate=_usePopper.forceUpdate,update=_usePopper.update,childrenProps=react__WEBPACK_IMPORTED_MODULE_35__.useMemo((function(){return{ref:setPopperElement,style:styles.popper,placement:state?state.placement:placement,hasPopperEscaped:state&&state.modifiersData.hide?state.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:state&&state.modifiersData.hide?state.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:styles.arrow,ref:setArrowElement},forceUpdate:forceUpdate||NOOP,update:update||NOOP_PROMISE}}),[setPopperElement,setArrowElement,placement,state,styles,update,forceUpdate]);return unwrapArray(children)(childrenProps)}var warning=function warning(){},warning_1=warning;function Reference(_ref){var children=_ref.children,innerRef=_ref.innerRef,setReferenceNode=react__WEBPACK_IMPORTED_MODULE_35__.useContext(ManagerReferenceNodeSetterContext),refHandler=react__WEBPACK_IMPORTED_MODULE_35__.useCallback((function(node){setRef$1(innerRef,node),safeInvoke(setReferenceNode,node)}),[innerRef,setReferenceNode]);return react__WEBPACK_IMPORTED_MODULE_35__.useEffect((function(){return function(){return setRef$1(innerRef,null)}})),react__WEBPACK_IMPORTED_MODULE_35__.useEffect((function(){warning_1(Boolean(setReferenceNode),"`Reference` should not be used outside of a `Manager` component.")}),[setReferenceNode]),unwrapArray(children)({ref:refHandler})}var TooltipContext=react__WEBPACK_IMPORTED_MODULE_35___default.a.createContext({}),callAll=function callAll(){for(var _len=arguments.length,fns=new Array(_len),_key=0;_key<_len;_key++)fns[_key]=arguments[_key];return function(){for(var _len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++)args[_key2]=arguments[_key2];return fns.forEach((function(fn){return fn&&fn.apply(void 0,args)}))}},canUseDOM=function canUseDOM(){return!("undefined"==typeof window||!window.document||!window.document.createElement)},Tooltip$1=function(_Component){function Tooltip(){for(var _this,_len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return(_this=_Component.call.apply(_Component,[this].concat(args))||this).observer=void 0,_this.tooltipRef=void 0,_this.handleOutsideClick=function(event){if(_this.tooltipRef&&!_this.tooltipRef.contains(event.target)){var parentOutsideClickHandler=_this.context.parentOutsideClickHandler,_this$props=_this.props,hideTooltip=_this$props.hideTooltip;(0,_this$props.clearScheduled)(),hideTooltip(),parentOutsideClickHandler&&parentOutsideClickHandler(event)}},_this.handleOutsideRightClick=function(event){if(_this.tooltipRef&&!_this.tooltipRef.contains(event.target)){var parentOutsideRightClickHandler=_this.context.parentOutsideRightClickHandler,_this$props2=_this.props,hideTooltip=_this$props2.hideTooltip;(0,_this$props2.clearScheduled)(),hideTooltip(),parentOutsideRightClickHandler&&parentOutsideRightClickHandler(event)}},_this.addOutsideClickHandler=function(){document.body.addEventListener("touchend",_this.handleOutsideClick),document.body.addEventListener("click",_this.handleOutsideClick)},_this.removeOutsideClickHandler=function(){document.body.removeEventListener("touchend",_this.handleOutsideClick),document.body.removeEventListener("click",_this.handleOutsideClick)},_this.addOutsideRightClickHandler=function(){return document.body.addEventListener("contextmenu",_this.handleOutsideRightClick)},_this.removeOutsideRightClickHandler=function(){return document.body.removeEventListener("contextmenu",_this.handleOutsideRightClick)},_this.getTooltipRef=function(node){_this.tooltipRef=node,function setRef(ref,node){if("function"==typeof ref)return ref(node);null!=ref&&(ref.current=node)}(_this.props.innerRef,node)},_this.getArrowProps=function(props){return void 0===props&&(props={}),Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.m)({},props,{style:Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.m)({},props.style,_this.props.arrowProps.style)})},_this.getTooltipProps=function(props){return void 0===props&&(props={}),Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.m)({},props,_this.isTriggeredBy("hover")&&{onMouseEnter:callAll(_this.props.clearScheduled,props.onMouseEnter),onMouseLeave:callAll(_this.props.hideTooltip,props.onMouseLeave)},{style:Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.m)({},props.style,_this.props.style)})},_this.contextValue={isParentNoneTriggered:"none"===_this.props.trigger,addParentOutsideClickHandler:_this.addOutsideClickHandler,addParentOutsideRightClickHandler:_this.addOutsideRightClickHandler,parentOutsideClickHandler:_this.handleOutsideClick,parentOutsideRightClickHandler:_this.handleOutsideRightClick,removeParentOutsideClickHandler:_this.removeOutsideClickHandler,removeParentOutsideRightClickHandler:_this.removeOutsideRightClickHandler},_this}_inheritsLoose(Tooltip,_Component);var _proto=Tooltip.prototype;return _proto.componentDidMount=function componentDidMount(){var _this2=this;if((this.observer=new MutationObserver((function(){_this2.props.update()}))).observe(this.tooltipRef,this.props.mutationObserverOptions),this.isTriggeredBy("hover")||this.isTriggeredBy("click")||this.isTriggeredBy("right-click")){var _this$context=this.context,removeParentOutsideClickHandler=_this$context.removeParentOutsideClickHandler,removeParentOutsideRightClickHandler=_this$context.removeParentOutsideRightClickHandler;this.addOutsideClickHandler(),this.addOutsideRightClickHandler(),removeParentOutsideClickHandler&&removeParentOutsideClickHandler(),removeParentOutsideRightClickHandler&&removeParentOutsideRightClickHandler()}},_proto.componentDidUpdate=function componentDidUpdate(){this.props.closeOnReferenceHidden&&this.props.isReferenceHidden&&this.props.hideTooltip()},_proto.componentWillUnmount=function componentWillUnmount(){if(this.observer&&this.observer.disconnect(),this.isTriggeredBy("hover")||this.isTriggeredBy("click")||this.isTriggeredBy("right-click")){var _this$context2=this.context,isParentNoneTriggered=_this$context2.isParentNoneTriggered,addParentOutsideClickHandler=_this$context2.addParentOutsideClickHandler,addParentOutsideRightClickHandler=_this$context2.addParentOutsideRightClickHandler;this.removeOutsideClickHandler(),this.removeOutsideRightClickHandler(),this.handleOutsideClick=void 0,this.handleOutsideRightClick=void 0,!isParentNoneTriggered&&addParentOutsideClickHandler&&addParentOutsideClickHandler(),!isParentNoneTriggered&&addParentOutsideRightClickHandler&&addParentOutsideRightClickHandler()}},_proto.render=function render(){var _this$props3=this.props,arrowProps=_this$props3.arrowProps,placement=_this$props3.placement,tooltip=_this$props3.tooltip;return react__WEBPACK_IMPORTED_MODULE_35___default.a.createElement(TooltipContext.Provider,{value:this.contextValue},tooltip({arrowRef:arrowProps.ref,getArrowProps:this.getArrowProps,getTooltipProps:this.getTooltipProps,placement:placement,tooltipRef:this.getTooltipRef}))},_proto.isTriggeredBy=function isTriggeredBy(event){var trigger=this.props.trigger;return trigger===event||Array.isArray(trigger)&&trigger.includes(event)},Tooltip}(react__WEBPACK_IMPORTED_MODULE_35__.Component);Tooltip$1.contextType=TooltipContext;var TooltipTrigger=function(_Component){function TooltipTrigger(){for(var _this,_len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return(_this=_Component.call.apply(_Component,[this].concat(args))||this).state={tooltipShown:_this.props.defaultTooltipShown},_this.hideTimeout=void 0,_this.showTimeout=void 0,_this.popperOffset=void 0,_this.setTooltipState=function(state){var cb=function cb(){return _this.props.onVisibilityChange(state.tooltipShown)};_this.isControlled()?cb():_this.setState(state,cb)},_this.clearScheduled=function(){clearTimeout(_this.hideTimeout),clearTimeout(_this.showTimeout)},_this.showTooltip=function(_ref){var pageX=_ref.pageX,pageY=_ref.pageY;_this.clearScheduled();var state={tooltipShown:!0};_this.props.followCursor&&(state=Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.m)({},state,{pageX:pageX,pageY:pageY})),_this.showTimeout=window.setTimeout((function(){return _this.setTooltipState(state)}),_this.props.delayShow)},_this.hideTooltip=function(){_this.clearScheduled(),_this.hideTimeout=window.setTimeout((function(){return _this.setTooltipState({tooltipShown:!1})}),_this.props.delayHide)},_this.toggleTooltip=function(_ref2){var pageX=_ref2.pageX,pageY=_ref2.pageY,action=_this.getState()?"hideTooltip":"showTooltip";_this[action]({pageX:pageX,pageY:pageY})},_this.clickToggle=function(event){event.preventDefault();var pageX=event.pageX,pageY=event.pageY,action=_this.props.followCursor?"showTooltip":"toggleTooltip";_this[action]({pageX:pageX,pageY:pageY})},_this.contextMenuToggle=function(event){event.preventDefault();var pageX=event.pageX,pageY=event.pageY,action=_this.props.followCursor?"showTooltip":"toggleTooltip";_this[action]({pageX:pageX,pageY:pageY})},_this.getTriggerProps=function(props){return void 0===props&&(props={}),Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.m)({},props,_this.isTriggeredBy("click")&&{onClick:callAll(_this.clickToggle,props.onClick),onTouchEnd:callAll(_this.clickToggle,props.onTouchEnd)},_this.isTriggeredBy("right-click")&&{onContextMenu:callAll(_this.contextMenuToggle,props.onContextMenu)},_this.isTriggeredBy("hover")&&Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.m)({onMouseEnter:callAll(_this.showTooltip,props.onMouseEnter),onMouseLeave:callAll(_this.hideTooltip,props.onMouseLeave)},_this.props.followCursor&&{onMouseMove:callAll(_this.showTooltip,props.onMouseMove)}),_this.isTriggeredBy("focus")&&{onFocus:callAll(_this.showTooltip,props.onFocus),onBlur:callAll(_this.hideTooltip,props.onBlur)})},_this}_inheritsLoose(TooltipTrigger,_Component);var _proto=TooltipTrigger.prototype;return _proto.componentWillUnmount=function componentWillUnmount(){this.clearScheduled()},_proto.render=function render(){var _this2=this,_this$props=this.props,children=_this$props.children,tooltip=_this$props.tooltip,placement=_this$props.placement,trigger=_this$props.trigger,getTriggerRef=_this$props.getTriggerRef,modifiers=_this$props.modifiers,closeOnReferenceHidden=_this$props.closeOnReferenceHidden,usePortal=_this$props.usePortal,portalContainer=_this$props.portalContainer,followCursor=_this$props.followCursor,getTooltipRef=_this$props.getTooltipRef,mutationObserverOptions=_this$props.mutationObserverOptions,restProps=Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.l)(_this$props,["children","tooltip","placement","trigger","getTriggerRef","modifiers","closeOnReferenceHidden","usePortal","portalContainer","followCursor","getTooltipRef","mutationObserverOptions"]),popper=react__WEBPACK_IMPORTED_MODULE_35___default.a.createElement(Popper,Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.m)({innerRef:getTooltipRef,placement:placement,modifiers:[{name:"followCursor",enabled:followCursor,phase:"main",fn:function fn(data){_this2.popperOffset=data.state.rects.popper}}].concat(modifiers)},restProps),(function(_ref3){var ref=_ref3.ref,style=_ref3.style,placement=_ref3.placement,arrowProps=_ref3.arrowProps,isReferenceHidden=_ref3.isReferenceHidden,update=_ref3.update;if(followCursor&&_this2.popperOffset){var _this2$state=_this2.state,pageX=_this2$state.pageX,pageY=_this2$state.pageY,_this2$popperOffset=_this2.popperOffset,width=_this2$popperOffset.width,height=_this2$popperOffset.height,x=pageX+width>window.pageXOffset+document.body.offsetWidth?pageX-width:pageX,y=pageY+height>window.pageYOffset+document.body.offsetHeight?pageY-height:pageY;style.transform="translate3d("+x+"px, "+y+"px, 0"}return react__WEBPACK_IMPORTED_MODULE_35___default.a.createElement(Tooltip$1,Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.m)({arrowProps:arrowProps,closeOnReferenceHidden:closeOnReferenceHidden,isReferenceHidden:isReferenceHidden,placement:placement,update:update,style:style,tooltip:tooltip,trigger:trigger,mutationObserverOptions:mutationObserverOptions},{clearScheduled:_this2.clearScheduled,hideTooltip:_this2.hideTooltip,innerRef:ref}))}));return react__WEBPACK_IMPORTED_MODULE_35___default.a.createElement(Manager,null,react__WEBPACK_IMPORTED_MODULE_35___default.a.createElement(Reference,{innerRef:getTriggerRef},(function(_ref4){var ref=_ref4.ref;return children({getTriggerProps:_this2.getTriggerProps,triggerRef:ref})})),this.getState()&&(usePortal?Object(react_dom__WEBPACK_IMPORTED_MODULE_37__.createPortal)(popper,portalContainer):popper))},_proto.isControlled=function isControlled(){return void 0!==this.props.tooltipShown},_proto.getState=function getState(){return this.isControlled()?this.props.tooltipShown:this.state.tooltipShown},_proto.isTriggeredBy=function isTriggeredBy(event){var trigger=this.props.trigger;return trigger===event||Array.isArray(trigger)&&trigger.includes(event)},TooltipTrigger}(react__WEBPACK_IMPORTED_MODULE_35__.Component);TooltipTrigger.defaultProps={closeOnReferenceHidden:!0,defaultTooltipShown:!1,delayHide:0,delayShow:0,followCursor:!1,onVisibilityChange:function noop(){},placement:"right",portalContainer:canUseDOM()?document.body:null,trigger:"hover",usePortal:canUseDOM(),mutationObserverOptions:{childList:!0,subtree:!0},modifiers:[]};var TooltipTrigger$1=TooltipTrigger,match=memoizerific__WEBPACK_IMPORTED_MODULE_38___default()(1e3)((function(requests,actual,value){var fallback=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return actual.split("-")[0]===requests?value:fallback})),Arrow=_storybook_theming__WEBPACK_IMPORTED_MODULE_36__.i.div({position:"absolute",borderStyle:"solid"},(function(_ref6){var placement=_ref6.placement,x=0,y=0;switch(!0){case placement.startsWith("left")||placement.startsWith("right"):y=8;break;case placement.startsWith("top")||placement.startsWith("bottom"):x=8}return{transform:"translate3d(".concat(x,"px, ").concat(y,"px, 0px)")}}),(function(_ref7){var theme=_ref7.theme,color=_ref7.color,placement=_ref7.placement;return{bottom:"".concat(match("top",placement,-8,"auto"),"px"),top:"".concat(match("bottom",placement,-8,"auto"),"px"),right:"".concat(match("left",placement,-8,"auto"),"px"),left:"".concat(match("right",placement,-8,"auto"),"px"),borderBottomWidth:"".concat(match("top",placement,"0",8),"px"),borderTopWidth:"".concat(match("bottom",placement,"0",8),"px"),borderRightWidth:"".concat(match("left",placement,"0",8),"px"),borderLeftWidth:"".concat(match("right",placement,"0",8),"px"),borderTopColor:match("top",placement,theme.color[color]||color||"light"===theme.base?Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_36__.h)(theme.background.app):Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_36__.d)(theme.background.app),"transparent"),borderBottomColor:match("bottom",placement,theme.color[color]||color||"light"===theme.base?Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_36__.h)(theme.background.app):Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_36__.d)(theme.background.app),"transparent"),borderLeftColor:match("left",placement,theme.color[color]||color||"light"===theme.base?Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_36__.h)(theme.background.app):Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_36__.d)(theme.background.app),"transparent"),borderRightColor:match("right",placement,theme.color[color]||color||"light"===theme.base?Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_36__.h)(theme.background.app):Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_36__.d)(theme.background.app),"transparent")}})),Wrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_36__.i.div((function(_ref8){return{display:_ref8.hidden?"none":"inline-block",zIndex:2147483647}}),(function(_ref9){var theme=_ref9.theme,color=_ref9.color;return _ref9.hasChrome?{background:theme.color[color]||color||"light"===theme.base?Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_36__.h)(theme.background.app):Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_36__.d)(theme.background.app),filter:"\n drop-shadow(0px 5px 5px rgba(0,0,0,0.05))\n drop-shadow(0 1px 3px rgba(0,0,0,0.1))\n ",borderRadius:2*theme.appBorderRadius,fontSize:theme.typography.size.s1}:{}})),Tooltip=function Tooltip(_a){var placement=_a.placement,hasChrome=_a.hasChrome,children=_a.children,arrowProps=_a.arrowProps,tooltipRef=_a.tooltipRef,arrowRef=_a.arrowRef,color=_a.color,props=Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.I)(_a,["placement","hasChrome","children","arrowProps","tooltipRef","arrowRef","color"]);return react__WEBPACK_IMPORTED_MODULE_35___default.a.createElement(Wrapper,Object.assign({hasChrome:hasChrome,placement:placement,ref:tooltipRef},props,{color:color}),hasChrome&&react__WEBPACK_IMPORTED_MODULE_35___default.a.createElement(Arrow,Object.assign({placement:placement,ref:arrowRef},arrowProps,{color:color})),children)};Tooltip.defaultProps={color:void 0,arrowRef:void 0,tooltipRef:void 0,hasChrome:!0,placement:"top",arrowProps:{}};var document$1=_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.bb.document,TargetContainer=_storybook_theming__WEBPACK_IMPORTED_MODULE_36__.i.div(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n display: inline-block;\n cursor: ",";\n"])),(function(props){return"hover"===props.mode?"default":"pointer"})),TargetSvgContainer=_storybook_theming__WEBPACK_IMPORTED_MODULE_36__.i.g(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n cursor: ",";\n"])),(function(props){return"hover"===props.mode?"default":"pointer"})),WithTooltipPure=function WithTooltipPure(_a){var svg=_a.svg,trigger=_a.trigger,placement=(_a.closeOnClick,_a.placement),modifiers=_a.modifiers,hasChrome=_a.hasChrome,_tooltip=_a.tooltip,children=_a.children,tooltipShown=_a.tooltipShown,onVisibilityChange=_a.onVisibilityChange,props=Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.I)(_a,["svg","trigger","closeOnClick","placement","modifiers","hasChrome","tooltip","children","tooltipShown","onVisibilityChange"]),Container=svg?TargetSvgContainer:TargetContainer;return react__WEBPACK_IMPORTED_MODULE_35___default.a.createElement(TooltipTrigger$1,{placement:placement,trigger:trigger,modifiers:modifiers,tooltipShown:tooltipShown,onVisibilityChange:onVisibilityChange,tooltip:function tooltip(_ref10){var getTooltipProps=_ref10.getTooltipProps,getArrowProps=_ref10.getArrowProps,tooltipRef=_ref10.tooltipRef,arrowRef=_ref10.arrowRef,tooltipPlacement=_ref10.placement;return react__WEBPACK_IMPORTED_MODULE_35___default.a.createElement(Tooltip,Object.assign({hasChrome:hasChrome,placement:tooltipPlacement,tooltipRef:tooltipRef,arrowRef:arrowRef,arrowProps:getArrowProps()},getTooltipProps()),"function"==typeof _tooltip?_tooltip({onHide:function onHide(){return onVisibilityChange(!1)}}):_tooltip)}},(function(_ref11){var getTriggerProps=_ref11.getTriggerProps,triggerRef=_ref11.triggerRef;return react__WEBPACK_IMPORTED_MODULE_35___default.a.createElement(Container,Object.assign({ref:triggerRef},getTriggerProps(),props),children)}))};WithTooltipPure.defaultProps={svg:!1,trigger:"hover",closeOnClick:!1,placement:"top",modifiers:[{name:"preventOverflow",options:{padding:8}},{name:"offset",options:{offset:[8,8]}},{name:"arrow",options:{padding:8}}],hasChrome:!0,tooltipShown:!1};var WithToolTipState=function WithToolTipState(_a){var startOpen=_a.startOpen,onChange=_a.onVisibilityChange,rest=Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_34__.I)(_a,["startOpen","onVisibilityChange"]),_useState2=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_35__.useState)(startOpen||!1),2),tooltipShown=_useState2[0],setTooltipShown=_useState2[1],onVisibilityChange=Object(react__WEBPACK_IMPORTED_MODULE_35__.useCallback)((function(visibility){onChange&&!1===onChange(visibility)||setTooltipShown(visibility)}),[onChange]);return Object(react__WEBPACK_IMPORTED_MODULE_35__.useEffect)((function(){var hide=function hide(){return onVisibilityChange(!1)};document$1.addEventListener("keydown",hide,!1);var iframes=Array.from(document$1.getElementsByTagName("iframe")),unbinders=[];return iframes.forEach((function(iframe){var bind=function bind(){try{iframe.contentWindow.document&&(iframe.contentWindow.document.addEventListener("click",hide),unbinders.push((function(){try{iframe.contentWindow.document.removeEventListener("click",hide)}catch(e){}})))}catch(e){}};bind(),iframe.addEventListener("load",bind),unbinders.push((function(){iframe.removeEventListener("load",bind)}))})),function(){document$1.removeEventListener("keydown",hide),unbinders.forEach((function(unbind){unbind()}))}})),react__WEBPACK_IMPORTED_MODULE_35___default.a.createElement(WithTooltipPure,Object.assign({},rest,{tooltipShown:tooltipShown,onVisibilityChange:onVisibilityChange}))}},"./node_modules/core-js/modules/es.regexp.flags.js":function(module,exports,__webpack_require__){"use strict";var global=__webpack_require__("./node_modules/core-js/internals/global.js"),DESCRIPTORS=__webpack_require__("./node_modules/core-js/internals/descriptors.js"),defineBuiltInAccessor=__webpack_require__("./node_modules/core-js/internals/define-built-in-accessor.js"),regExpFlags=__webpack_require__("./node_modules/core-js/internals/regexp-flags.js"),fails=__webpack_require__("./node_modules/core-js/internals/fails.js"),RegExp=global.RegExp,RegExpPrototype=RegExp.prototype;DESCRIPTORS&&fails((function(){var INDICES_SUPPORT=!0;try{RegExp(".","d")}catch(error){INDICES_SUPPORT=!1}var O={},calls="",expected=INDICES_SUPPORT?"dgimsy":"gimsy",addGetter=function(key,chr){Object.defineProperty(O,key,{get:function(){return calls+=chr,!0}})},pairs={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var key in INDICES_SUPPORT&&(pairs.hasIndices="d"),pairs)addGetter(key,pairs[key]);return Object.getOwnPropertyDescriptor(RegExpPrototype,"flags").get.call(O)!==expected||calls!==expected}))&&defineBuiltInAccessor(RegExpPrototype,"flags",{configurable:!0,get:regExpFlags})}}]); \ No newline at end of file diff --git a/4.e27ed8d0.iframe.bundle.js b/4.e27ed8d0.iframe.bundle.js new file mode 100644 index 000000000..6d6e283f0 --- /dev/null +++ b/4.e27ed8d0.iframe.bundle.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{"./node_modules/@storybook/preview-web/dist/esm/renderDocs.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"renderDocs",(function(){return renderDocs})),__webpack_require__.d(__webpack_exports__,"unmountDocs",(function(){return unmountDocs}));__webpack_require__("./node_modules/regenerator-runtime/runtime.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),react_dom=__webpack_require__("./node_modules/react-dom/index.js"),react_dom_default=__webpack_require__.n(react_dom),wrapper={fontSize:"14px",letterSpacing:"0.2px",margin:"10px 0"},main={margin:"auto",padding:30,borderRadius:10,background:"rgba(0,0,0,0.03)"},heading={textAlign:"center"},NoDocs_NoDocs=function NoDocs(){return react_default.a.createElement("div",{style:wrapper,className:"sb-nodocs sb-wrapper"},react_default.a.createElement("div",{style:main},react_default.a.createElement("h1",{style:heading},"No Docs"),react_default.a.createElement("p",null,"Sorry, but there are no docs for the selected story. To add them, set the story's ",react_default.a.createElement("code",null,"docs")," parameter. If you think this is an error:"),react_default.a.createElement("ul",null,react_default.a.createElement("li",null,"Please check the story definition."),react_default.a.createElement("li",null,"Please check the Storybook config."),react_default.a.createElement("li",null,"Try reloading the page.")),react_default.a.createElement("p",null,"If the problem persists, check the browser console, or the terminal you've run Storybook from.")))};function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function renderDocs(story,docsContext,element,callback){return function renderDocsAsync(_x,_x2,_x3){return _renderDocsAsync.apply(this,arguments)}(story,docsContext,element).then(callback)}function _renderDocsAsync(){return _renderDocsAsync=function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}(regeneratorRuntime.mark((function _callee(story,docsContext,element){var _docs$getContainer,_docs$getPage,docs,DocsContainer,Page,docsElement;return regeneratorRuntime.wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:if(!(null!=(docs=story.parameters.docs)&&docs.getPage||null!=docs&&docs.page)||(null!=docs&&docs.getContainer||null!=docs&&docs.container)){_context.next=3;break}throw new Error("No `docs.container` set, did you run `addon-docs/preset`?");case 3:if(_context.t1=docs.container,_context.t1){_context.next=8;break}return _context.next=7,null===(_docs$getContainer=docs.getContainer)||void 0===_docs$getContainer?void 0:_docs$getContainer.call(docs);case 7:_context.t1=_context.sent;case 8:if(_context.t0=_context.t1,_context.t0){_context.next=11;break}_context.t0=function(_ref){var children=_ref.children;return react_default.a.createElement(react_default.a.Fragment,null,children)};case 11:if(DocsContainer=_context.t0,_context.t3=docs.page,_context.t3){_context.next=17;break}return _context.next=16,null===(_docs$getPage=docs.getPage)||void 0===_docs$getPage?void 0:_docs$getPage.call(docs);case 16:_context.t3=_context.sent;case 17:if(_context.t2=_context.t3,_context.t2){_context.next=20;break}_context.t2=NoDocs_NoDocs;case 20:return Page=_context.t2,docsElement=react_default.a.createElement(DocsContainer,{key:story.componentId,context:docsContext},react_default.a.createElement(Page,null)),_context.next=24,new Promise((function(resolve){react_dom_default.a.render(docsElement,element,resolve)}));case 24:case"end":return _context.stop()}}),_callee)}))),_renderDocsAsync.apply(this,arguments)}function unmountDocs(element){react_dom_default.a.unmountComponentAtNode(element)}NoDocs_NoDocs.displayName="NoDocs"}}]); \ No newline at end of file diff --git a/5.ce07b5fa794f89a2333c.manager.bundle.js b/5.ce07b5fa794f89a2333c.manager.bundle.js new file mode 100644 index 000000000..38c5a0541 --- /dev/null +++ b/5.ce07b5fa794f89a2333c.manager.bundle.js @@ -0,0 +1,2 @@ +/*! For license information please see 5.ce07b5fa794f89a2333c.manager.bundle.js.LICENSE.txt */ +(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{842:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"formatter",(function(){return formatter}));__webpack_require__(93),__webpack_require__(175),__webpack_require__(27),__webpack_require__(15),__webpack_require__(173),__webpack_require__(11),__webpack_require__(18),__webpack_require__(17),__webpack_require__(79),__webpack_require__(26),__webpack_require__(19),__webpack_require__(99),__webpack_require__(103),__webpack_require__(29),__webpack_require__(104),__webpack_require__(42),__webpack_require__(38),__webpack_require__(45),__webpack_require__(71),__webpack_require__(90),__webpack_require__(91),__webpack_require__(50),__webpack_require__(119),__webpack_require__(142),__webpack_require__(457),__webpack_require__(143),__webpack_require__(855),__webpack_require__(56),__webpack_require__(456),__webpack_require__(70),__webpack_require__(229),__webpack_require__(120),__webpack_require__(58),__webpack_require__(37),__webpack_require__(92),__webpack_require__(62),__webpack_require__(80),__webpack_require__(221),__webpack_require__(16),__webpack_require__(21),__webpack_require__(233),__webpack_require__(849),__webpack_require__(305),__webpack_require__(22),__webpack_require__(856),__webpack_require__(33),__webpack_require__(316),__webpack_require__(317),__webpack_require__(857),__webpack_require__(863),__webpack_require__(865),__webpack_require__(866),__webpack_require__(867),__webpack_require__(869),__webpack_require__(870),__webpack_require__(871),__webpack_require__(872),__webpack_require__(873),__webpack_require__(874),__webpack_require__(875),__webpack_require__(876),__webpack_require__(878),__webpack_require__(879),__webpack_require__(880),__webpack_require__(881),__webpack_require__(882),__webpack_require__(883),__webpack_require__(884),__webpack_require__(885),__webpack_require__(886),__webpack_require__(887),__webpack_require__(888),__webpack_require__(307),__webpack_require__(222),__webpack_require__(447),__webpack_require__(889),__webpack_require__(448),__webpack_require__(304),__webpack_require__(183),__webpack_require__(228),__webpack_require__(890),__webpack_require__(891),__webpack_require__(226),__webpack_require__(319),__webpack_require__(111),__webpack_require__(892),__webpack_require__(318),__webpack_require__(894),__webpack_require__(125),__webpack_require__(895);var memoizerific__WEBPACK_IMPORTED_MODULE_90__=__webpack_require__(28),memoizerific__WEBPACK_IMPORTED_MODULE_90___default=__webpack_require__.n(memoizerific__WEBPACK_IMPORTED_MODULE_90__),_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_91__=__webpack_require__(2);__webpack_require__(0),__webpack_require__(48);function _wrapNativeSuper(Class){var _cache="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function _wrapNativeSuper(Class){if(null===Class||!function _isNativeFunction(fn){return-1!==Function.toString.call(fn).indexOf("[native code]")}(Class))return Class;if("function"!=typeof Class)throw new TypeError("Super expression must either be null or a function");if(void 0!==_cache){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper)}function Wrapper(){return _construct(Class,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,Class)},_wrapNativeSuper(Class)}function _construct(Parent,args,Class){return _construct=_isNativeReflectConstruct()?Reflect.construct:function _construct(Parent,args,Class){var a=[null];a.push.apply(a,args);var instance=new(Function.bind.apply(Parent,a));return Class&&_setPrototypeOf(instance,Class.prototype),instance},_construct.apply(null,arguments)}function _toArray(arr){return _arrayWithHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableRest()}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function _get(target,property,receiver){var base=function _superPropBase(object,property){for(;!Object.prototype.hasOwnProperty.call(object,property)&&null!==(object=_getPrototypeOf(object)););return object}(target,property);if(base){var desc=Object.getOwnPropertyDescriptor(base,property);return desc.get?desc.get.call(arguments.length<3?target:receiver):desc.value}},_get.apply(this,arguments)}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}(self)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(o)}function _createForOfIteratorHelper(o,allowArrayLike){var it="undefined"!=typeof Symbol&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&"number"==typeof o.length){it&&(o=it);var i=0,F=function F(){};return{s:F,n:function n(){return i>=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function e(_e217){throw _e217},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var err,normalCompletion=!0,didErr=!1;return{s:function s(){it=it.call(o)},n:function n(){var step=it.next();return normalCompletion=step.done,step},e:function e(_e218){didErr=!0,err=_e218},f:function f(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throw err}}}}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=t.$TAB&&e<=t.$SPACE||e==t.$NBSP},t.isDigit=r,t.isAsciiLetter=function(e){return e>=t.$a&&e<=t.$z||e>=t.$A&&e<=t.$Z},t.isAsciiHexDigit=function(e){return e>=t.$a&&e<=t.$f||e>=t.$A&&e<=t.$F||r(e)},t.isNewLine=function(e){return e===t.$LF||e===t.$CR},t.isOctalDigit=function(e){return t.$0<=e&&e<=t.$7}})),n=function(){function n(e,t,r){_classCallCheck(this,n),this.filePath=e,this.name=t,this.members=r}return _createClass(n,[{key:"assertNoMembers",value:function assertNoMembers(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got ".concat(JSON.stringify(this),"."))}}]),n}(),s=n,i=function(){function i(){_classCallCheck(this,i),this.cache=new Map}return _createClass(i,[{key:"get",value:function get(e,t,r){var s=(r=r||[]).length?".".concat(r.join(".")):"",_i2='"'.concat(e,'".').concat(t).concat(s),o=this.cache.get(_i2);return o||(o=new n(e,t,r),this.cache.set(_i2,o)),o}}]),i}(),o=Object.defineProperty({StaticSymbol:s,StaticSymbolCache:i},"__esModule",{value:!0}),a=/-+([a-z0-9])/g,u=function u(e){return e.replace(a,(function(){for(var _len=arguments.length,e=new Array(_len),_key=0;_key<_len;_key++)e[_key]=arguments[_key];return e[1].toUpperCase()}))},c=function c(e,t){return D(e,":",t)},l=function l(e,t){return D(e,".",t)};function D(e,t,r){var n=e.indexOf(t);return-1==n?r:[e.slice(0,n).trim(),e.slice(n+1).trim()]}function p(e,t,r){return Array.isArray(e)?t.visitArray(e,r):"object"==_typeof(n=e)&&null!==n&&Object.getPrototypeOf(n)===v?t.visitStringMap(e,r):null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e?t.visitPrimitive(e,r):t.visitOther(e,r);var n}var h=p,d=function d(e){return null!=e},m=function m(e){return void 0===e?null:e},f=function(){function f(){_classCallCheck(this,f)}return _createClass(f,[{key:"visitArray",value:function visitArray(e,t){var _this=this;return e.map((function(e){return p(e,_this,t)}))}},{key:"visitStringMap",value:function visitStringMap(e,t){var _this2=this,r={};return Object.keys(e).forEach((function(n){r[n]=p(e[n],_this2,t)})),r}},{key:"visitPrimitive",value:function visitPrimitive(e,t){return e}},{key:"visitOther",value:function visitOther(e,t){return e}}]),f}(),g={assertSync:function assertSync(e){if(N(e))throw new Error("Illegal state: value cannot be a promise");return e},then:function then(e,t){return N(e)?e.then(t):t(e)},all:function all(e){return e.some(N)?Promise.all(e):e}},E=function E(e){throw new Error("Internal Error: ".concat(e))},C=function C(e,t){var r=Error(e);return r[T]=!0,t&&(r[_]=t),r},T="ngSyntaxError",_="ngParseErrors",S=function S(e){return e[T]},y=function y(e){return e[_]||[]},F=function F(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")},v=Object.getPrototypeOf({}),A=function A(e){for(var t="",_r2=0;_r2=55296&&_n2<=56319&&e.length>_r2+1){var _t2=e.charCodeAt(_r2+1);_t2>=56320&&_t2<=57343&&(_r2++,_n2=(_n2-55296<<10)+_t2-56320+65536)}_n2<=127?t+=String.fromCharCode(_n2):_n2<=2047?t+=String.fromCharCode(_n2>>6&31|192,63&_n2|128):_n2<=65535?t+=String.fromCharCode(_n2>>12|224,_n2>>6&63|128,63&_n2|128):_n2<=2097151&&(t+=String.fromCharCode(_n2>>18&7|240,_n2>>12&63|128,_n2>>6&63|128,63&_n2|128))}return t},b=function e(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(e).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);if(!t.toString)return"object";var r=t.toString();if(null==r)return""+r;var n=r.indexOf("\n");return-1===n?r:r.substring(0,n)},w=function w(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")?e():e};function N(e){return!!e&&"function"==typeof e.then}var k=N,x=_createClass((function x(e){_classCallCheck(this,x),this.full=e;var t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")})),I="undefined"!=typeof window&&window,P="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,R=void 0!==e&&e||I||P,O=Object.defineProperty({dashCaseToCamelCase:u,splitAtColon:c,splitAtPeriod:l,visitValue:h,isDefined:d,noUndefined:m,ValueTransformer:f,SyncAsync:g,error:E,syntaxError:C,isSyntaxError:S,getParseErrors:y,escapeRegExp:F,utf8Encode:A,stringify:b,resolveForwardRef:w,isPromise:k,Version:x,global:R},"__esModule",{value:!0}),L=t((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function n(e){return e.replace(/\W/g,"_")}t.sanitizeIdentifier=n;var a,s=0;function i(e){if(!e||!e.reference)return null;var t=e.reference;if(t instanceof o.StaticSymbol)return t.name;if(t.__anonymousType)return t.__anonymousType;var r=O.stringify(t);return r.indexOf("(")>=0?(r="anonymous_".concat(s++),t.__anonymousType=r):r=n(r),r}t.identifierName=i,t.identifierModuleUrl=function(e){var t=e.reference;return t instanceof o.StaticSymbol?t.filePath:"./".concat(O.stringify(t))},t.viewClassName=function(e,t){return"View_".concat(i({reference:e}),"_").concat(t)},t.rendererTypeName=function(e){return"RenderType_".concat(i({reference:e}))},t.hostViewClassName=function(e){return"HostView_".concat(i({reference:e}))},t.componentFactoryName=function(e){return"".concat(i({reference:e}),"NgFactory")},function(e){e[e.Pipe=0]="Pipe",e[e.Directive=1]="Directive",e[e.NgModule=2]="NgModule",e[e.Injectable=3]="Injectable"}(a=t.CompileSummaryKind||(t.CompileSummaryKind={})),t.tokenName=function(e){return null!=e.value?n(e.value):i(e.identifier)},t.tokenReference=function(e){return null!=e.identifier?e.identifier.reference:e.value},t.CompileStylesheetMetadata=function(){function _class(){var _ref=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=_ref.moduleUrl,t=_ref.styles,r=_ref.styleUrls;_classCallCheck(this,_class),this.moduleUrl=e||null,this.styles=c(t),this.styleUrls=c(r)}return _createClass(_class)}(),t.CompileTemplateMetadata=function(){function _class2(_ref2){var e=_ref2.encapsulation,t=_ref2.template,r=_ref2.templateUrl,n=_ref2.htmlAst,s=_ref2.styles,i=_ref2.styleUrls,o=_ref2.externalStylesheets,a=_ref2.animations,u=_ref2.ngContentSelectors,D=_ref2.interpolation,p=_ref2.isInline,h=_ref2.preserveWhitespaces;if(_classCallCheck(this,_class2),this.encapsulation=e,this.template=t,this.templateUrl=r,this.htmlAst=n,this.styles=c(s),this.styleUrls=c(i),this.externalStylesheets=c(o),this.animations=a?l(a):[],this.ngContentSelectors=u||[],D&&2!=D.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=D,this.isInline=p,this.preserveWhitespaces=h}return _createClass(_class2,[{key:"toSummary",value:function toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}}]),_class2}();var u=function(){function u(_ref3){var e=_ref3.isHost,t=_ref3.type,r=_ref3.isComponent,n=_ref3.selector,s=_ref3.exportAs,i=_ref3.changeDetection,o=_ref3.inputs,a=_ref3.outputs,_u2=_ref3.hostListeners,l=_ref3.hostProperties,D=_ref3.hostAttributes,p=_ref3.providers,h=_ref3.viewProviders,d=_ref3.queries,m=_ref3.guards,f=_ref3.viewQueries,g=_ref3.entryComponents,E=_ref3.template,C=_ref3.componentViewType,T=_ref3.rendererType,_=_ref3.componentFactory;_classCallCheck(this,u),this.isHost=!!e,this.type=t,this.isComponent=r,this.selector=n,this.exportAs=s,this.changeDetection=i,this.inputs=o,this.outputs=a,this.hostListeners=_u2,this.hostProperties=l,this.hostAttributes=D,this.providers=c(p),this.viewProviders=c(h),this.queries=c(d),this.guards=m,this.viewQueries=c(f),this.entryComponents=c(g),this.template=E,this.componentViewType=C,this.rendererType=T,this.componentFactory=_}return _createClass(u,[{key:"toSummary",value:function toSummary(){return{summaryKind:a.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}}],[{key:"create",value:function create(_ref4){var e=_ref4.isHost,t=_ref4.type,n=_ref4.isComponent,s=_ref4.selector,i=_ref4.exportAs,o=_ref4.changeDetection,a=_ref4.inputs,c=_ref4.outputs,l=_ref4.host,D=_ref4.providers,p=_ref4.viewProviders,h=_ref4.queries,d=_ref4.guards,m=_ref4.viewQueries,f=_ref4.entryComponents,g=_ref4.template,E=_ref4.componentViewType,C=_ref4.rendererType,T=_ref4.componentFactory,_={},S={},y={};null!=l&&Object.keys(l).forEach((function(e){var t=l[e],n=e.match(r);null===n?y[e]=t:null!=n[1]?S[n[1]]=t:null!=n[2]&&(_[n[2]]=t)}));var F={};null!=a&&a.forEach((function(e){var t=O.splitAtColon(e,[e,e]);F[t[0]]=t[1]}));var v={};return null!=c&&c.forEach((function(e){var t=O.splitAtColon(e,[e,e]);v[t[0]]=t[1]})),new u({isHost:e,type:t,isComponent:!!n,selector:s,exportAs:i,changeDetection:o,inputs:F,outputs:v,hostListeners:_,hostProperties:S,hostAttributes:y,providers:D,viewProviders:p,queries:h,guards:d,viewQueries:m,entryComponents:f,template:g,componentViewType:E,rendererType:C,componentFactory:T})}}]),u}();function c(e){return e||[]}function l(e){return e.reduce((function(e,t){var r=Array.isArray(t)?l(t):t;return e.concat(r)}),[])}function D(e){return e.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}t.CompileDirectiveMetadata=u,t.CompilePipeMetadata=function(){function _class3(_ref5){var e=_ref5.type,t=_ref5.name,r=_ref5.pure;_classCallCheck(this,_class3),this.type=e,this.name=t,this.pure=!!r}return _createClass(_class3,[{key:"toSummary",value:function toSummary(){return{summaryKind:a.Pipe,type:this.type,name:this.name,pure:this.pure}}}]),_class3}(),t.CompileShallowModuleMetadata=function(){function _class4(){_classCallCheck(this,_class4)}return _createClass(_class4)}(),t.CompileNgModuleMetadata=function(){function _class5(_ref6){var e=_ref6.type,t=_ref6.providers,r=_ref6.declaredDirectives,n=_ref6.exportedDirectives,s=_ref6.declaredPipes,i=_ref6.exportedPipes,o=_ref6.entryComponents,a=_ref6.bootstrapComponents,u=_ref6.importedModules,l=_ref6.exportedModules,D=_ref6.schemas,p=_ref6.transitiveModule,h=_ref6.id;_classCallCheck(this,_class5),this.type=e||null,this.declaredDirectives=c(r),this.exportedDirectives=c(n),this.declaredPipes=c(s),this.exportedPipes=c(i),this.providers=c(t),this.entryComponents=c(o),this.bootstrapComponents=c(a),this.importedModules=c(u),this.exportedModules=c(l),this.schemas=c(D),this.id=h||null,this.transitiveModule=p||null}return _createClass(_class5,[{key:"toSummary",value:function toSummary(){var e=this.transitiveModule;return{summaryKind:a.NgModule,type:this.type,entryComponents:e.entryComponents,providers:e.providers,modules:e.modules,exportedDirectives:e.exportedDirectives,exportedPipes:e.exportedPipes}}}]),_class5}(),t.TransitiveCompileNgModuleMetadata=function(){function _class6(){_classCallCheck(this,_class6),this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return _createClass(_class6,[{key:"addProvider",value:function addProvider(e,t){this.providers.push({provider:e,module:t})}},{key:"addDirective",value:function addDirective(e){this.directivesSet.has(e.reference)||(this.directivesSet.add(e.reference),this.directives.push(e))}},{key:"addExportedDirective",value:function addExportedDirective(e){this.exportedDirectivesSet.has(e.reference)||(this.exportedDirectivesSet.add(e.reference),this.exportedDirectives.push(e))}},{key:"addPipe",value:function addPipe(e){this.pipesSet.has(e.reference)||(this.pipesSet.add(e.reference),this.pipes.push(e))}},{key:"addExportedPipe",value:function addExportedPipe(e){this.exportedPipesSet.has(e.reference)||(this.exportedPipesSet.add(e.reference),this.exportedPipes.push(e))}},{key:"addModule",value:function addModule(e){this.modulesSet.has(e.reference)||(this.modulesSet.add(e.reference),this.modules.push(e))}},{key:"addEntryComponent",value:function addEntryComponent(e){this.entryComponentsSet.has(e.componentType)||(this.entryComponentsSet.add(e.componentType),this.entryComponents.push(e))}}]),_class6}(),t.ProviderMeta=function(){function _class7(e,_ref7){var t=_ref7.useClass,r=_ref7.useValue,n=_ref7.useExisting,s=_ref7.useFactory,i=_ref7.deps,o=_ref7.multi;_classCallCheck(this,_class7),this.token=e,this.useClass=t||null,this.useValue=r,this.useExisting=n,this.useFactory=s||null,this.dependencies=i||null,this.multi=!!o}return _createClass(_class7)}(),t.flatten=l,t.templateSourceUrl=function(e,t,r){var n;return n=r.isInline?t.type.reference instanceof o.StaticSymbol?"".concat(t.type.reference.filePath,".").concat(t.type.reference.name,".html"):"".concat(i(e),"/").concat(i(t.type),".html"):r.templateUrl,t.type.reference instanceof o.StaticSymbol?n:D(n)},t.sharedStylesheetJitUrl=function(e,t){var r=e.moduleUrl.split(/\/\\/g),n=r[r.length-1];return D("css/".concat(t).concat(n,".ngstyle.js"))},t.ngModuleJitUrl=function(e){return D("".concat(i(e.type),"/module.ngfactory.js"))},t.templateJitUrl=function(e,t){return D("".concat(i(e),"/").concat(i(t.type),".ngfactory.js"))}})),B=t((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function n(e,t,r,_n3){_classCallCheck(this,n),this.file=e,this.offset=t,this.line=r,this.col=_n3}return _createClass(n,[{key:"toString",value:function toString(){return null!=this.offset?"".concat(this.file.url,"@").concat(this.line,":").concat(this.col):this.file.url}},{key:"moveBy",value:function moveBy(e){for(var t=this.file.content,s=t.length,i=this.offset,o=this.line,a=this.col;i>0&&e<0;)if(i--,e++,t.charCodeAt(i)==r.$LF){o--;var _e2=t.substr(0,i-1).lastIndexOf(String.fromCharCode(r.$LF));a=_e2>0?i-_e2:i}else a--;for(;i0;){var _n6=t.charCodeAt(i);i++,e--,_n6==r.$LF?(o++,a=0):a++}return new n(this.file,i,o,a)}},{key:"getContext",value:function getContext(e,t){var r=this.file.content,_n5=this.offset;if(null!=_n5){_n5>r.length-1&&(_n5=r.length-1);for(var _s2=_n5,_i3=0,_o2=0;_i30&&(_i3++,"\n"!=r[--_n5]||++_o2!=t););for(_i3=0,_o2=0;_i32&&void 0!==arguments[2]?arguments[2]:null;_classCallCheck(this,i),this.start=e,this.end=t,this.details=r}return _createClass(i,[{key:"toString",value:function toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}}]),i}();t.ParseSourceSpan=i,t.EMPTY_PARSE_LOCATION=new n(new s("",""),0,0,0),t.EMPTY_SOURCE_SPAN=new i(t.EMPTY_PARSE_LOCATION,t.EMPTY_PARSE_LOCATION),function(e){e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR"}(o=t.ParseErrorLevel||(t.ParseErrorLevel={})),t.ParseError=function(){function _class8(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.ERROR;_classCallCheck(this,_class8),this.span=e,this.msg=t,this.level=r}return _createClass(_class8,[{key:"contextualMessage",value:function contextualMessage(){var e=this.span.start.getContext(100,3);return e?"".concat(this.msg,' ("').concat(e.before,"[").concat(o[this.level]," ->]").concat(e.after,'")'):this.msg}},{key:"toString",value:function toString(){var e=this.span.details?", ".concat(this.span.details):"";return"".concat(this.contextualMessage(),": ").concat(this.span.start).concat(e)}}]),_class8}(),t.typeSourceSpan=function(e,t){var r=L.identifierModuleUrl(t),o=null!=r?"in ".concat(e," ").concat(L.identifierName(t)," in ").concat(r):"in ".concat(e," ").concat(L.identifierName(t)),a=new s("",o);return new i(new n(a,-1,-1,-1),new n(a,-1,-1,-1))},t.r3JitTypeSourceSpan=function(e,t,r){var o="in ".concat(e," ").concat(t," in ").concat(r),a=new s("",o);return new i(new n(a,-1,-1,-1),new n(a,-1,-1,-1))}})),q=new RegExp("^(?-{3}|\\+{3})(?[^\\n]*)\\n(?:|(?[\\S\\s]*?)\\n)(?\\k|\\.{3})[^\\S\\n]*(?:\\n|$)"),$=function $(e){var t=e.match(q);if(!t)return{content:e};var _t$groups=t.groups,r=_t$groups.startDelimiter,n=_t$groups.language,_t$groups$value=_t$groups.value,s=void 0===_t$groups$value?"":_t$groups$value,i=_t$groups.endDelimiter,o=n.trim()||"yaml";if("+++"===r&&(o="toml"),"yaml"!==o&&r!==i)return{content:e};var a=_slicedToArray(t,1)[0];return{frontMatter:{type:"front-matter",lang:o,value:s,startDelimiter:r,endDelimiter:i,raw:a.replace(/\n$/,"")},content:a.replace(/[^\n]/g," ")+e.slice(a.length)}},M=function M(e){return e[e.length-1]},U=function U(e,t){var r=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return r.loc=t,r},V=function V(e){return"string"==typeof e?e.replace(function(){var _ref8$onlyFirst=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).onlyFirst,e=void 0!==_ref8$onlyFirst&&_ref8$onlyFirst,t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}(),""):e},G=function G(e){return!Number.isNaN(e)&&e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)},j=G,X=G;j.default=X;var H=function H(e){if("string"!=typeof e||0===e.length)return 0;if(0===(e=V(e)).length)return 0;e=e.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g," ");for(var t=0,_r3=0;_r3=127&&_n7<=159||_n7>=768&&_n7<=879||(_n7>65535&&_r3++,t+=j(_n7)?2:1)}return t},z=H,W=H;z.default=W;var Y=function Y(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};function Q(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var J=function J(e){for(var t=-1,r=null==e?0:e.length,n={};++t1)for(var r=1;r)?=?)"),a("XRANGEIDENTIFIERLOOSE","".concat(s[i.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),a("XRANGEIDENTIFIER","".concat(s[i.NUMERICIDENTIFIER],"|x|X|\\*")),a("XRANGEPLAIN","[v=\\s]*(".concat(s[i.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[i.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[i.XRANGEIDENTIFIER],")")+"(?:".concat(s[i.PRERELEASE],")?").concat(s[i.BUILD],"?")+")?)?"),a("XRANGEPLAINLOOSE","[v=\\s]*(".concat(s[i.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[i.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[i.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(s[i.PRERELEASELOOSE],")?").concat(s[i.BUILD],"?")+")?)?"),a("XRANGE","^".concat(s[i.GTLT],"\\s*").concat(s[i.XRANGEPLAIN],"$")),a("XRANGELOOSE","^".concat(s[i.GTLT],"\\s*").concat(s[i.XRANGEPLAINLOOSE],"$")),a("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(r,"})")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:$|[^\\d])"),a("COERCERTL",s[i.COERCE],!0),a("LONETILDE","(?:~>?)"),a("TILDETRIM","(\\s*)".concat(s[i.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",a("TILDE","^".concat(s[i.LONETILDE]).concat(s[i.XRANGEPLAIN],"$")),a("TILDELOOSE","^".concat(s[i.LONETILDE]).concat(s[i.XRANGEPLAINLOOSE],"$")),a("LONECARET","(?:\\^)"),a("CARETTRIM","(\\s*)".concat(s[i.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",a("CARET","^".concat(s[i.LONECARET]).concat(s[i.XRANGEPLAIN],"$")),a("CARETLOOSE","^".concat(s[i.LONECARET]).concat(s[i.XRANGEPLAINLOOSE],"$")),a("COMPARATORLOOSE","^".concat(s[i.GTLT],"\\s*(").concat(s[i.LOOSEPLAIN],")$|^$")),a("COMPARATOR","^".concat(s[i.GTLT],"\\s*(").concat(s[i.FULLPLAIN],")$|^$")),a("COMPARATORTRIM","(\\s*)".concat(s[i.GTLT],"\\s*(").concat(s[i.LOOSEPLAIN],"|").concat(s[i.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",a("HYPHENRANGE","^\\s*(".concat(s[i.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(s[i.XRANGEPLAIN],")")+"\\s*$"),a("HYPHENRANGELOOSE","^\\s*(".concat(s[i.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(s[i.XRANGEPLAINLOOSE],")")+"\\s*$"),a("STAR","(<|>)?=?\\s*\\*"),a("GTE0","^\\s*>=\\s*0.0.0\\s*$"),a("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")})),Ae=["includePrerelease","loose","rtl"],be=function be(e){return e?"object"!=_typeof(e)?{loose:!0}:Ae.filter((function(t){return e[t]})).reduce((function(e,t){return e[t]=!0,e}),{}):{}},we=/^[0-9]+$/,Ne=function Ne(e,t){var r=we.test(e),n=we.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:exe)throw new TypeError("version is longer than ".concat(xe," characters"));ye("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;var r=e.trim().match(t.loose?Pe[Re.LOOSE]:Pe[Re.FULL]);if(!r)throw new TypeError("Invalid Version: ".concat(e));if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>Ie||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Ie||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Ie||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var _t4=+e;if(_t4>=0&&_t4=0;)"number"==typeof this.prerelease[_e3]&&(this.prerelease[_e3]++,_e3=-2);-1===_e3&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: ".concat(e))}return this.format(),this.raw=this.version,this}}]),Le}(),Be=Le,qe=function qe(e,t,r){return new Be(e,r).compare(new Be(t,r))},$e=function $e(e,t,r){return qe(e,t,r)<0},He=function He(e,t,r){return qe(e,t,r)>=0},ze="2.3.0",We=t((function(e,t){function r(){for(var e=[],t=0;t0&&void 0!==arguments[0]?arguments[0]:{},_ref9$plugins=_ref9.plugins,e=void 0===_ref9$plugins?[]:_ref9$plugins,_ref9$showUnreleased=_ref9.showUnreleased,t=void 0!==_ref9$showUnreleased&&_ref9$showUnreleased,_ref9$showDeprecated=_ref9.showDeprecated,r=void 0!==_ref9$showDeprecated&&_ref9$showDeprecated,_ref9$showInternal=_ref9.showInternal,n=void 0!==_ref9$showInternal&&_ref9$showInternal,s=nt.split("-",1)[0],i=e.reduce((function(e,t){return[].concat(_toConsumableArray(e),_toConsumableArray(t.languages||[]))}),[]).filter(a),o=function(e,t){return Object.entries(e).map((function(_ref10){var _ref11=_slicedToArray(_ref10,2),e=_ref11[0],r=_ref11[1];return Object.assign(_defineProperty({},t,e),r)}))}(Object.assign.apply(Object,[{}].concat(_toConsumableArray(e.map((function(_ref12){return _ref12.options}))),[st])),"name").filter((function(e){return a(e)&&u(e)})).sort((function(e,t){return e.name===t.name?0:e.name=0||(s[r]=e[r]);return s}(e,["cliName","cliCategory","cliDescription"])})).map((function(t){t=Object.assign({},t),Array.isArray(t.default)&&(t.default=1===t.default.length?t.default[0].value:t.default.filter(a).sort((function(e,t){return rt.compare(t.since,e.since)}))[0].value),Array.isArray(t.choices)&&(t.choices=t.choices.filter((function(e){return a(e)&&u(e)})),"parser"===t.name&&function(e,t,r){var _step,n=new Set(e.choices.map((function(e){return e.value}))),_iterator=_createForOfIteratorHelper(t);try{for(_iterator.s();!(_step=_iterator.n()).done;){var _s3=_step.value;if(_s3.parsers){var _step2,_iterator2=_createForOfIteratorHelper(_s3.parsers);try{var _loop=function _loop(){var t=_step2.value;if(!n.has(t)){n.add(t);var _i4=r.find((function(e){return e.parsers&&e.parsers[t]})),_o3=_s3.name;_i4&&_i4.name&&(_o3+=" (plugin: ".concat(_i4.name,")")),e.choices.push({value:t,description:_o3})}};for(_iterator2.s();!(_step2=_iterator2.n()).done;)_loop()}catch(err){_iterator2.e(err)}finally{_iterator2.f()}}}}catch(err){_iterator.e(err)}finally{_iterator.f()}}(t,i,e));var r=J(e.filter((function(e){return e.defaultOptions&&void 0!==e.defaultOptions[t.name]})).map((function(e){return[e.name,e.defaultOptions[t.name]]})));return Object.assign({},t,{pluginDefaults:r})}));return{languages:i,options:o};function a(e){return t||!("since"in e)||e.since&&rt.gte(s,e.since)}function u(e){return r||!("deprecated"in e)||e.deprecated&&rt.lt(s,e.deprecated)}}},ot=it.getSupportInfo,at=/[^\x20-\x7F]/;function ut(e){return function(t,r,n){var s=n&&n.backwards;if(!1===r)return!1;for(var i=t.length,o=r;o>=0&&o2&&void 0!==arguments[2]?arguments[2]:{},n=lt(e,r.backwards?t-1:t,r);return n!==mt(e,n,r)}function gt(e,t){for(var r=null,n=t;n!==r;)r=n,n=ht(e,n=Dt(e,n)),n=lt(e,n);return!1!==(n=mt(e,n=dt(e,n)))&&ft(e,n)}function Et(e,t){for(var r=null,n=t;n!==r;)r=n,n=mt(e,n=dt(e,n=ht(e,n=lt(e,n))));return n}function Ct(e,t,r){return Et(e,r(t))}function Tt(e,t){for(var n=0,_s4=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;_s4(r.match(o.regex)||[]).length?o.quote:i.quote),a}function St(e,t,r){var n='"'===t?"'":'"',s=e.replace(/\\([\S\s])|(["'])/g,(function(e,s,i){return s===n?s:i===t?"\\"+i:i||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(s)?s:"\\"+s)}));return t+s+t}function yt(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=function(e){var t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&("object"==_typeof(e.id)?e.id.name:e.id)||e.key&&("object"==_typeof(e.key)?e.key.name:e.key)||e.value&&("object"==_typeof(e.value)?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"…"),t+(r?" "+r:"")}(e)}var Ft={inferParserByLanguage:function inferParserByLanguage(e,t){var r=ot({plugins:t.plugins}).languages,n=r.find((function(_ref13){return _ref13.name.toLowerCase()===e}))||r.find((function(_ref14){var t=_ref14.aliases;return Array.isArray(t)&&t.includes(e)}))||r.find((function(_ref15){var t=_ref15.extensions;return Array.isArray(t)&&t.includes(".".concat(e))}));return n&&n.parsers[0]},replaceEndOfLineWith:function replaceEndOfLineWith(e,t){var _step3,r=[],_iterator3=_createForOfIteratorHelper(e.split("\n"));try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var _n10=_step3.value;r.length>0&&r.push(t),r.push(_n10)}}catch(err){_iterator3.e(err)}finally{_iterator3.f()}return r},getStringWidth:function getStringWidth(e){return e?at.test(e)?z(e):e.length:0},getMaxContinuousCount:function getMaxContinuousCount(e,t){var r=e.match(new RegExp("(".concat(Y(t),")+"),"g"));return null===r?0:r.reduce((function(e,r){return Math.max(e,r.length/t.length)}),0)},getMinNotPresentContinuousCount:function getMinNotPresentContinuousCount(e,t){var r=e.match(new RegExp("(".concat(Y(t),")+"),"g"));if(null===r)return 0;var _step4,n=new Map,s=0,_iterator4=_createForOfIteratorHelper(r);try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var _r8=_step4.value.length/t.length;n.set(_r8,!0),_r8>s&&(s=_r8)}}catch(err){_iterator4.e(err)}finally{_iterator4.f()}for(var _e4=1;_e42&&void 0!==arguments[2]?arguments[2]:{};return lt(e,r.backwards?t-1:t,r)!==t},getAlignmentSize:Tt,getIndentSize:function getIndentSize(e,t){var r=e.lastIndexOf("\n");return-1===r?0:Tt(e.slice(r+1).match(/^[\t ]*/)[0],t)},getPreferredQuote:_t,printString:function printString(e,t){return St(e.slice(1,-1),"json"===t.parser||"json5"===t.parser&&"preserve"===t.quoteProps&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":_t(e,t.singleQuote?"'":'"'),!("css"===t.parser||"less"===t.parser||"scss"===t.parser||t.__embeddedInHtml))},printNumber:function printNumber(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")},makeString:St,addLeadingComment:function addLeadingComment(e,t){t.leading=!0,t.trailing=!1,yt(e,t)},addDanglingComment:function addDanglingComment(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),yt(e,t)},addTrailingComment:function addTrailingComment(e,t){t.leading=!1,t.trailing=!0,yt(e,t)},isFrontMatterNode:function isFrontMatterNode(e){return e&&"front-matter"===e.type},getShebang:function getShebang(e){if(!e.startsWith("#!"))return"";var t=e.indexOf("\n");return-1===t?e:e.slice(0,t)},isNonEmptyArray:function isNonEmptyArray(e){return Array.isArray(e)&&e.length>0},createGroupIdMapper:function createGroupIdMapper(e){var t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}},vt={"*":["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","slot","spellcheck","style","tabindex","title","translate"],a:["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","tabindex","target","type"],abbr:["title"],applet:["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"],area:["accesskey","alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","tabindex","target","type"],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],base:["href","target"],basefont:["color","face","size"],bdo:["dir"],blockquote:["cite"],body:["alink","background","bgcolor","link","text","vlink"],br:["clear"],button:["accesskey","autofocus","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","tabindex","type","value"],canvas:["height","width"],caption:["align"],col:["align","char","charoff","span","valign","width"],colgroup:["align","char","charoff","span","valign","width"],data:["value"],del:["cite","datetime"],details:["open"],dfn:["title"],dialog:["open"],dir:["compact"],div:["align"],dl:["compact"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],font:["color","face","size"],form:["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"],frame:["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"],frameset:["cols","rows"],h1:["align"],h2:["align"],h3:["align"],h4:["align"],h5:["align"],h6:["align"],head:["profile"],hr:["align","noshade","size","width"],html:["manifest","version"],iframe:["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"],img:["align","alt","border","crossorigin","decoding","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"],input:["accept","accesskey","align","alt","autocomplete","autofocus","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","tabindex","title","type","usemap","value","width"],ins:["cite","datetime"],isindex:["prompt"],label:["accesskey","for","form"],legend:["accesskey","align"],li:["type","value"],link:["as","charset","color","crossorigin","disabled","href","hreflang","imagesizes","imagesrcset","integrity","media","nonce","referrerpolicy","rel","rev","sizes","target","title","type"],map:["name"],menu:["compact"],meta:["charset","content","http-equiv","name","scheme"],meter:["high","low","max","min","optimum","value"],object:["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","tabindex","type","typemustmatch","usemap","vspace","width"],ol:["compact","reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["for","form","name"],p:["align"],param:["name","type","value","valuetype"],pre:["width"],progress:["max","value"],q:["cite"],script:["async","charset","crossorigin","defer","integrity","language","nomodule","nonce","referrerpolicy","src","type"],select:["autocomplete","autofocus","disabled","form","multiple","name","required","size","tabindex"],slot:["name"],source:["media","sizes","src","srcset","type"],style:["media","nonce","title","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],tbody:["align","char","charoff","valign"],td:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],textarea:["accesskey","autocomplete","autofocus","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","tabindex","wrap"],tfoot:["align","char","charoff","valign"],th:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],thead:["align","char","charoff","valign"],time:["datetime"],tr:["align","bgcolor","char","charoff","valign"],track:["default","kind","label","src","srclang"],ul:["compact","type"],video:["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"]},At=Ft.inferParserByLanguage,bt=Ft.isFrontMatterNode,_CSS_DISPLAY_TAGS$CSS={CSS_DISPLAY_TAGS:{area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",details:"block",summary:"block",dialog:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},CSS_DISPLAY_DEFAULT:"inline",CSS_WHITE_SPACE_TAGS:{listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},CSS_WHITE_SPACE_DEFAULT:"normal"},wt=_CSS_DISPLAY_TAGS$CSS.CSS_DISPLAY_TAGS,Nt=_CSS_DISPLAY_TAGS$CSS.CSS_DISPLAY_DEFAULT,kt=_CSS_DISPLAY_TAGS$CSS.CSS_WHITE_SPACE_TAGS,xt=_CSS_DISPLAY_TAGS$CSS.CSS_WHITE_SPACE_DEFAULT,It=Lt(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]),Pt=function(e,t){for(var r=Object.create(null),_i5=0,_Object$entries=Object.entries(e);_i5<_Object$entries.length;_i5++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i5],2),_n12=_Object$entries$_i[0],_s5=_Object$entries$_i[1];r[_n12]=t(_s5,_n12)}return r}(vt,Lt),Rt=new Set(["\t","\n","\f","\r"," "]),Ot=function Ot(e){return e.replace(/[\t\n\f\r ]+$/,"")};function Lt(e){var _step5,t=Object.create(null),_iterator5=_createForOfIteratorHelper(e);try{for(_iterator5.s();!(_step5=_iterator5.n()).done;)t[_step5.value]=!0}catch(err){_iterator5.e(err)}finally{_iterator5.f()}return t}function Bt(e,t){return!("ieConditionalComment"!==e.type||!e.lastChild||e.lastChild.isSelfClosing||e.lastChild.endSourceSpan)||"ieConditionalComment"===e.type&&!e.complete||!(!Yt(e)||!e.children.some((function(e){return"text"!==e.type&&"interpolation"!==e.type})))||!(!tr(e,t)||$t(e)||"interpolation"===e.type)}function qt(e){return"attribute"!==e.type&&!!e.parent&&"number"==typeof e.index&&0!==e.index&&function(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}(e.parent.children[e.index-1])}function $t(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName||Qt(e)&&("script"===e.name||"style"===e.name))}function Mt(e){return Jt(e).startsWith("pre")}function Ut(e){return"element"===e.type&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function Vt(e){return Ht(e)||"element"===e.type&&"br"===e.fullName||Gt(e)}function Gt(e){return jt(e)&&Xt(e)}function jt(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.linee.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function Ht(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function zt(e){var _e$attrMap=e.attrMap,t=_e$attrMap.type,r=_e$attrMap.lang;return"module"===t||"text/javascript"===t||"text/babel"===t||"application/javascript"===t||"jsx"===r?"babel":"application/x-typescript"===t||"ts"===r||"tsx"===r?"typescript":"text/markdown"===t?"markdown":"text/html"===t?"html":t&&(t.endsWith("json")||t.endsWith("importmap"))?"json":"text/x-handlebars-template"===t?"glimmer":void 0}function Wt(e){return"block"===e||"list-item"===e||e.startsWith("table")}function Yt(e){return Jt(e).startsWith("pre")}function Qt(e){return"element"===e.type&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}function Jt(e){return"element"===e.type&&(!e.namespace||Qt(e))&&kt[e.name]||xt}var Zt=new Set(["template","style","script"]);function Kt(e,t){return er(e,t)&&!Zt.has(e.fullName)}function er(e,t){return"vue"===t.parser&&"element"===e.type&&"root"===e.parent.type&&"html"!==e.fullName.toLowerCase()}function tr(e,t){return er(e,t)&&(Kt(e,t)||e.attrMap.lang&&"html"!==e.attrMap.lang)}var rr={HTML_ELEMENT_ATTRIBUTES:Pt,HTML_TAGS:It,htmlTrim:function htmlTrim(e){return function(e){return e.replace(/^[\t\n\f\r ]+/,"")}(Ot(e))},htmlTrimPreserveIndentation:function htmlTrimPreserveIndentation(e){return function(e){return e.replace(/^[\t\f\r ]*?\n/g,"")}(Ot(e))},splitByHtmlWhitespace:function splitByHtmlWhitespace(e){return e.split(/[\t\n\f\r ]+/)},hasHtmlWhitespace:function hasHtmlWhitespace(e){return/[\t\n\f\r ]/.test(e)},getLeadingAndTrailingHtmlWhitespace:function getLeadingAndTrailingHtmlWhitespace(e){var _e$match2=_slicedToArray(e.match(/^([\t\n\f\r ]*)([\S\s]*?)([\t\n\f\r ]*)$/),4),t=_e$match2[1],r=_e$match2[2];return{leadingWhitespace:t,trailingWhitespace:_e$match2[3],text:r}},canHaveInterpolation:function canHaveInterpolation(e){return e.children&&!$t(e)},countChars:function countChars(e,t){for(var r=0,_n13=0;_n13=0;_n14--){var _s6=e.stack[_n14];_s6&&"object"==_typeof(_s6)&&!Array.isArray(_s6)&&t(_s6)&&r++}return r},dedentString:function dedentString(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){var _step6,r,t=Number.POSITIVE_INFINITY,_iterator6=_createForOfIteratorHelper(e.split("\n"));try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _n15=_step6.value;if(0!==_n15.length){if(!Rt.has(_n15[0]))return 0;var _e6=(r=_n15,r.match(/^[\t\n\f\r ]*/)[0]).length;_n15.length!==_e6&&_e60&&(["body","script","style"].includes(e.name)||e.children.some((function(e){return function(e){return e.children&&e.children.some((function(e){return"text"!==e.type}))}(e)})))||e.firstChild&&e.firstChild===e.lastChild&&"text"!==e.firstChild.type&&jt(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||Xt(e.lastChild))},forceNextEmptyLine:function forceNextEmptyLine(e){return bt(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1/.test(e)},insertPragma:function insertPragma(e){return"\x3c!-- @format --\x3e\n\n"+e.replace(/^\s*\n/,"")}},sr=Ft.isNonEmptyArray,ir={attrs:!0,children:!0},or=function(){function or(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,or);for(var _i6=0,_Object$entries2=Object.entries(e);_i6<_Object$entries2.length;_i6++){var _Object$entries2$_i=_slicedToArray(_Object$entries2[_i6],2),_t6=_Object$entries2$_i[0],_r10=_Object$entries2$_i[1];_t6 in ir?this._setNodes(_t6,_r10):this[_t6]=_r10}}return _createClass(or,[{key:"_setNodes",value:function _setNodes(e,t){t!==this[e]&&(this[e]=function(e,t){for(var r=e.map((function(e){return e instanceof or?e.clone():new or(e)})),n=null,s=r[0],i=r[1]||null,_e7=0;_e7)([\s\S]*?)",Gt:"≫",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",LT:"<",Lt:"≪",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"},t.NGSP_UNICODE="",t.NAMED_ENTITIES.ngsp=t.NGSP_UNICODE})),mr=function(){function mr(){var _this3=this,_ref20=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=_ref20.closedByChildren,t=_ref20.implicitNamespacePrefix,_ref20$contentType=_ref20.contentType,r=void 0===_ref20$contentType?dr.TagContentType.PARSABLE_DATA:_ref20$contentType,_ref20$closedByParent=_ref20.closedByParent,n=void 0!==_ref20$closedByParent&&_ref20$closedByParent,_ref20$isVoid=_ref20.isVoid,s=void 0!==_ref20$isVoid&&_ref20$isVoid,_ref20$ignoreFirstLf=_ref20.ignoreFirstLf,i=void 0!==_ref20$ignoreFirstLf&&_ref20$ignoreFirstLf;_classCallCheck(this,mr),this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,e&&e.length>0&&e.forEach((function(e){return _this3.closedByChildren[e]=!0})),this.isVoid=s,this.closedByParent=n||s,this.implicitNamespacePrefix=t||null,this.contentType=r,this.ignoreFirstLf=i}return _createClass(mr,[{key:"isClosedByChild",value:function isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}}]),mr}(),fr=mr,Cr=function Cr(e){return Er||(gr=new mr,Er={base:new mr({isVoid:!0}),meta:new mr({isVoid:!0}),area:new mr({isVoid:!0}),embed:new mr({isVoid:!0}),link:new mr({isVoid:!0}),img:new mr({isVoid:!0}),input:new mr({isVoid:!0}),param:new mr({isVoid:!0}),hr:new mr({isVoid:!0}),br:new mr({isVoid:!0}),source:new mr({isVoid:!0}),track:new mr({isVoid:!0}),wbr:new mr({isVoid:!0}),p:new mr({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new mr({closedByChildren:["tbody","tfoot"]}),tbody:new mr({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new mr({closedByChildren:["tbody"],closedByParent:!0}),tr:new mr({closedByChildren:["tr"],closedByParent:!0}),td:new mr({closedByChildren:["td","th"],closedByParent:!0}),th:new mr({closedByChildren:["td","th"],closedByParent:!0}),col:new mr({isVoid:!0}),svg:new mr({implicitNamespacePrefix:"svg"}),math:new mr({implicitNamespacePrefix:"math"}),li:new mr({closedByChildren:["li"],closedByParent:!0}),dt:new mr({closedByChildren:["dt","dd"]}),dd:new mr({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new mr({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new mr({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new mr({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new mr({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new mr({closedByChildren:["optgroup"],closedByParent:!0}),option:new mr({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new mr({ignoreFirstLf:!0}),listing:new mr({ignoreFirstLf:!0}),style:new mr({contentType:dr.TagContentType.RAW_TEXT}),script:new mr({contentType:dr.TagContentType.RAW_TEXT}),title:new mr({contentType:dr.TagContentType.ESCAPABLE_RAW_TEXT}),textarea:new mr({contentType:dr.TagContentType.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),Er[e]||gr},Tr=Object.defineProperty({HtmlTagDefinition:fr,getHtmlTagDefinition:Cr},"__esModule",{value:!0}),_r=function(){function _r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;_classCallCheck(this,_r),this.path=e,this.position=t}return _createClass(_r,[{key:"empty",get:function get(){return!this.path||!this.path.length}},{key:"head",get:function get(){return this.path[0]}},{key:"tail",get:function get(){return this.path[this.path.length-1]}},{key:"parentOf",value:function parentOf(e){return e&&this.path[this.path.indexOf(e)-1]}},{key:"childOf",value:function childOf(e){return this.path[this.path.indexOf(e)+1]}},{key:"first",value:function first(e){for(var _t7=this.path.length-1;_t7>=0;_t7--){var _r16=this.path[_t7];if(_r16 instanceof e)return _r16}}},{key:"push",value:function push(e){this.path.push(e)}},{key:"pop",value:function pop(){return this.path.pop()}}]),_r}(),Sr=Object.defineProperty({AstPath:_r},"__esModule",{value:!0}),yr=function(){function yr(e,t,r){_classCallCheck(this,yr),this.value=e,this.sourceSpan=t,this.i18n=r,this.type="text"}return _createClass(yr,[{key:"visit",value:function visit(e,t){return e.visitText(this,t)}}]),yr}(),Fr=function(){function Fr(e,t){_classCallCheck(this,Fr),this.value=e,this.sourceSpan=t,this.type="cdata"}return _createClass(Fr,[{key:"visit",value:function visit(e,t){return e.visitCdata(this,t)}}]),Fr}(),vr=function(){function vr(e,t,r,n,s,i){_classCallCheck(this,vr),this.switchValue=e,this.type=t,this.cases=r,this.sourceSpan=n,this.switchValueSourceSpan=s,this.i18n=i}return _createClass(vr,[{key:"visit",value:function visit(e,t){return e.visitExpansion(this,t)}}]),vr}(),Ar=function(){function Ar(e,t,r,n,s){_classCallCheck(this,Ar),this.value=e,this.expression=t,this.sourceSpan=r,this.valueSourceSpan=n,this.expSourceSpan=s}return _createClass(Ar,[{key:"visit",value:function visit(e,t){return e.visitExpansionCase(this,t)}}]),Ar}(),br=function(){function br(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;_classCallCheck(this,br),this.name=e,this.value=t,this.sourceSpan=r,this.valueSpan=n,this.nameSpan=s,this.i18n=i,this.type="attribute"}return _createClass(br,[{key:"visit",value:function visit(e,t){return e.visitAttribute(this,t)}}]),br}(),wr=function(){function wr(e,t,r,n){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;_classCallCheck(this,wr),this.name=e,this.attrs=t,this.children=r,this.sourceSpan=n,this.startSourceSpan=s,this.endSourceSpan=i,this.nameSpan=o,this.i18n=a,this.type="element"}return _createClass(wr,[{key:"visit",value:function visit(e,t){return e.visitElement(this,t)}}]),wr}(),Nr=wr,kr=function(){function kr(e,t){_classCallCheck(this,kr),this.value=e,this.sourceSpan=t,this.type="comment"}return _createClass(kr,[{key:"visit",value:function visit(e,t){return e.visitComment(this,t)}}]),kr}(),xr=function(){function xr(e,t){_classCallCheck(this,xr),this.value=e,this.sourceSpan=t,this.type="docType"}return _createClass(xr,[{key:"visit",value:function visit(e,t){return e.visitDocType(this,t)}}]),xr}();function Ir(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=[],s=e.visit?function(t){return e.visit(t,r)||t.visit(e,r)}:function(t){return t.visit(e,r)};return t.forEach((function(e){var t=s(e);t&&n.push(t)})),n}var Pr=Ir,Rr=function(){function Rr(){_classCallCheck(this,Rr)}return _createClass(Rr,[{key:"visitElement",value:function visitElement(e,t){this.visitChildren(t,(function(t){t(e.attrs),t(e.children)}))}},{key:"visitAttribute",value:function visitAttribute(e,t){}},{key:"visitText",value:function visitText(e,t){}},{key:"visitCdata",value:function visitCdata(e,t){}},{key:"visitComment",value:function visitComment(e,t){}},{key:"visitDocType",value:function visitDocType(e,t){}},{key:"visitExpansion",value:function visitExpansion(e,t){return this.visitChildren(t,(function(t){t(e.cases)}))}},{key:"visitExpansionCase",value:function visitExpansionCase(e,t){}},{key:"visitChildren",value:function visitChildren(e,t){var r=[],n=this;return t((function(t){t&&r.push(Ir(n,t,e))})),Array.prototype.concat.apply([],r)}}]),Rr}(),Or=Rr;function Lr(e){var t=e.sourceSpan.start.offset,r=e.sourceSpan.end.offset;return e instanceof wr&&(e.endSourceSpan?r=e.endSourceSpan.end.offset:e.children&&e.children.length&&(r=Lr(e.children[e.children.length-1]).end)),{start:t,end:r}}var Br=function Br(e,t){var r=[];return Ir(new(function(_Rr){_inherits(_class9,_Rr);var _super=_createSuper(_class9);function _class9(){return _classCallCheck(this,_class9),_super.apply(this,arguments)}return _createClass(_class9,[{key:"visit",value:function visit(e,n){var s=Lr(e);if(!(s.start<=t&&t]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],Ur=function Ur(e,t){if(!(null==t||Array.isArray(t)&&2==t.length))throw new Error("Expected '".concat(e,"' to be an array, [start, end]."));if(null!=t){var _e10=t[0],_r18=t[1];Mr.forEach((function(t){if(t.test(_e10)||t.test(_r18))throw new Error("['".concat(_e10,"', '").concat(_r18,"'] contains unusable interpolation symbol."))}))}},Vr=Object.defineProperty({assertArrayOfStrings:$r,assertInterpolationSymbols:Ur},"__esModule",{value:!0}),Gr=t((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function r(e,t){_classCallCheck(this,r),this.start=e,this.end=t}return _createClass(r,null,[{key:"fromArray",value:function fromArray(e){return e?(Vr.assertInterpolationSymbols("interpolation",e),new r(e[0],e[1])):t.DEFAULT_INTERPOLATION_CONFIG}}]),r}();t.InterpolationConfig=r,t.DEFAULT_INTERPOLATION_CONFIG=new r("{{","}}")})),jr=t((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var s,n=r;!function(e){e[e.TAG_OPEN_START=0]="TAG_OPEN_START",e[e.TAG_OPEN_END=1]="TAG_OPEN_END",e[e.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",e[e.TAG_CLOSE=3]="TAG_CLOSE",e[e.TEXT=4]="TEXT",e[e.ESCAPABLE_RAW_TEXT=5]="ESCAPABLE_RAW_TEXT",e[e.RAW_TEXT=6]="RAW_TEXT",e[e.COMMENT_START=7]="COMMENT_START",e[e.COMMENT_END=8]="COMMENT_END",e[e.CDATA_START=9]="CDATA_START",e[e.CDATA_END=10]="CDATA_END",e[e.ATTR_NAME=11]="ATTR_NAME",e[e.ATTR_QUOTE=12]="ATTR_QUOTE",e[e.ATTR_VALUE=13]="ATTR_VALUE",e[e.DOC_TYPE_START=14]="DOC_TYPE_START",e[e.DOC_TYPE_END=15]="DOC_TYPE_END",e[e.EXPANSION_FORM_START=16]="EXPANSION_FORM_START",e[e.EXPANSION_CASE_VALUE=17]="EXPANSION_CASE_VALUE",e[e.EXPANSION_CASE_EXP_START=18]="EXPANSION_CASE_EXP_START",e[e.EXPANSION_CASE_EXP_END=19]="EXPANSION_CASE_EXP_END",e[e.EXPANSION_FORM_END=20]="EXPANSION_FORM_END",e[e.EOF=21]="EOF"}(s=t.TokenType||(t.TokenType={}));var i=_createClass((function i(e,t,r){_classCallCheck(this,i),this.type=e,this.parts=t,this.sourceSpan=r}));t.Token=i;var o=function(_B$ParseError){_inherits(o,_B$ParseError);var _super2=_createSuper(o);function o(e,t,r){var _this4;return _classCallCheck(this,o),(_this4=_super2.call(this,r,e)).tokenType=t,_this4}return _createClass(o)}(B.ParseError);t.TokenError=o;var a=_createClass((function a(e,t){_classCallCheck(this,a),this.tokens=e,this.errors=t}));t.TokenizeResult=a,t.tokenize=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return new p(new B.ParseSourceFile(e,t),r,n).tokenize()};var u=/\r\n?/g;function c(e){var t=e===n.$EOF?"EOF":String.fromCharCode(e);return'Unexpected character "'.concat(t,'"')}function l(e){return'Unknown entity "'.concat(e,'" - use the "&#;" or "&#x;" syntax')}var D=_createClass((function D(e){_classCallCheck(this,D),this.error=e})),p=function(){function p(e,t,r){_classCallCheck(this,p),this._getTagContentType=t,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this._tokenizeIcu=r.tokenizeExpansionForms||!1,this._interpolationConfig=r.interpolationConfig||Gr.DEFAULT_INTERPOLATION_CONFIG,this._leadingTriviaCodePoints=r.leadingTriviaChars&&r.leadingTriviaChars.map((function(e){return e.codePointAt(0)||0})),this._canSelfClose=r.canSelfClose||!1,this._allowHtmComponentClosingTags=r.allowHtmComponentClosingTags||!1;var n=r.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=r.escapedString?new C(e,n):new E(e,n);try{this._cursor.init()}catch(e){this.handleError(e)}}return _createClass(p,[{key:"_processCarriageReturns",value:function _processCarriageReturns(e){return e.replace(u,"\n")}},{key:"tokenize",value:function tokenize(){for(;this._cursor.peek()!==n.$EOF;){var _e11=this._cursor.clone();try{if(this._attemptCharCode(n.$LT))if(this._attemptCharCode(n.$BANG))this._attemptStr("[CDATA[")?this._consumeCdata(_e11):this._attemptStr("--")?this._consumeComment(_e11):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(_e11):this._consumeBogusComment(_e11);else if(this._attemptCharCode(n.$SLASH))this._consumeTagClose(_e11);else{var _t8=this._cursor.clone();this._attemptCharCode(n.$QUESTION)?(this._cursor=_t8,this._consumeBogusComment(_e11)):this._consumeTagOpen(_e11)}else this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(e){this.handleError(e)}}return this._beginToken(s.EOF),this._endToken([]),new a(function(e){for(var r,t=[],_n19=0;_n191&&void 0!==arguments[1]?arguments[1]:this._cursor.clone();this._currentTokenStart=t,this._currentTokenType=e}},{key:"_endToken",value:function _endToken(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._cursor.clone();if(null===this._currentTokenStart)throw new o("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(t));if(null===this._currentTokenType)throw new o("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));var r=new i(this._currentTokenType,e,this._cursor.getSpan(this._currentTokenStart,this._leadingTriviaCodePoints));return this.tokens.push(r),this._currentTokenStart=null,this._currentTokenType=null,r}},{key:"_createError",value:function _createError(e,t){this._isInExpansionForm()&&(e+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var r=new o(e,this._currentTokenType,t);return this._currentTokenStart=null,this._currentTokenType=null,new D(r)}},{key:"handleError",value:function handleError(e){if(e instanceof T&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),!(e instanceof D))throw e;this.errors.push(e.error)}},{key:"_attemptCharCode",value:function _attemptCharCode(e){return this._cursor.peek()===e&&(this._cursor.advance(),!0)}},{key:"_attemptCharCodeCaseInsensitive",value:function _attemptCharCodeCaseInsensitive(e){return r=e,g(this._cursor.peek())==g(r)&&(this._cursor.advance(),!0);var r}},{key:"_requireCharCode",value:function _requireCharCode(e){var t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(c(this._cursor.peek()),this._cursor.getSpan(t))}},{key:"_attemptStr",value:function _attemptStr(e){var t=e.length;if(this._cursor.charsLeft()")})),this._beginToken(s.CDATA_END),this._requireStr("]]>"),this._endToken([])}},{key:"_consumeDocType",value:function _consumeDocType(e){var _this8=this;this._beginToken(s.DOC_TYPE_START,e),this._endToken([]),this._consumeRawText(!1,(function(){return _this8._cursor.peek()===n.$GT})),this._beginToken(s.DOC_TYPE_END),this._cursor.advance(),this._endToken([])}},{key:"_consumePrefixAndName",value:function _consumePrefixAndName(){for(var r,s,e=this._cursor.clone(),t="";this._cursor.peek()!==n.$COLON&&!(((r=this._cursor.peek())n.$9));)this._cursor.advance();return this._cursor.peek()===n.$COLON?(t=this._cursor.getChars(e),this._cursor.advance(),s=this._cursor.clone()):s=e,this._requireCharCodeUntilFn(d,""===t?0:1),[t,this._cursor.getChars(s)]}},{key:"_consumeTagOpen",value:function _consumeTagOpen(e){var t,r,i,o=this.tokens.length,a=this._cursor.clone(),u=[];try{if(!n.isAsciiLetter(this._cursor.peek()))throw this._createError(c(this._cursor.peek()),this._cursor.getSpan(e));for(r=(i=this._consumeTagOpenStart(e)).parts[0],t=i.parts[1],this._attemptCharCodeUntilFn(h);this._cursor.peek()!==n.$SLASH&&this._cursor.peek()!==n.$GT;){var _this$_consumeAttribu2=_slicedToArray(this._consumeAttributeName(),2),_e14=_this$_consumeAttribu2[0],_t12=_this$_consumeAttribu2[1];if(this._attemptCharCodeUntilFn(h),this._attemptCharCode(n.$EQ)){this._attemptCharCodeUntilFn(h);var _r21=this._consumeAttributeValue();u.push({prefix:_e14,name:_t12,value:_r21})}else u.push({prefix:_e14,name:_t12});this._attemptCharCodeUntilFn(h)}this._consumeTagOpenEnd()}catch(t){if(t instanceof D)return this._cursor=a,i&&(this.tokens.length=o),this._beginToken(s.TEXT,e),void this._endToken(["<"]);throw t}if(!this._canSelfClose||this.tokens[this.tokens.length-1].type!==s.TAG_OPEN_END_VOID){var l=this._getTagContentType(t,r,this._fullNameStack.length>0,u);this._handleFullNameStackForTagOpen(r,t),l===dr.TagContentType.RAW_TEXT?this._consumeRawTextWithTagClose(r,t,!1):l===dr.TagContentType.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,t,!0)}}},{key:"_consumeRawTextWithTagClose",value:function _consumeRawTextWithTagClose(e,t,r){var _this9=this;this._consumeRawText(r,(function(){return!!_this9._attemptCharCode(n.$LT)&&!!_this9._attemptCharCode(n.$SLASH)&&(_this9._attemptCharCodeUntilFn(h),!!_this9._attemptStrCaseInsensitive(e?"".concat(e,":").concat(t):t)&&(_this9._attemptCharCodeUntilFn(h),_this9._attemptCharCode(n.$GT)))})),this._beginToken(s.TAG_CLOSE),this._requireCharCodeUntilFn((function(e){return e===n.$GT}),3),this._cursor.advance(),this._endToken([e,t]),this._handleFullNameStackForTagClose(e,t)}},{key:"_consumeTagOpenStart",value:function _consumeTagOpenStart(e){this._beginToken(s.TAG_OPEN_START,e);var t=this._consumePrefixAndName();return this._endToken(t)}},{key:"_consumeAttributeName",value:function _consumeAttributeName(){var e=this._cursor.peek();if(e===n.$SQ||e===n.$DQ)throw this._createError(c(e),this._cursor.getSpan());this._beginToken(s.ATTR_NAME);var t=this._consumePrefixAndName();return this._endToken(t),t}},{key:"_consumeAttributeValue",value:function _consumeAttributeValue(){var e;if(this._cursor.peek()===n.$SQ||this._cursor.peek()===n.$DQ){this._beginToken(s.ATTR_QUOTE);var _t13=this._cursor.peek();this._cursor.advance(),this._endToken([String.fromCodePoint(_t13)]),this._beginToken(s.ATTR_VALUE);for(var _r22=[];this._cursor.peek()!==_t13;)_r22.push(this._readChar(!0));e=this._processCarriageReturns(_r22.join("")),this._endToken([e]),this._beginToken(s.ATTR_QUOTE),this._cursor.advance(),this._endToken([String.fromCodePoint(_t13)])}else{this._beginToken(s.ATTR_VALUE);var _t14=this._cursor.clone();this._requireCharCodeUntilFn(d,1),e=this._processCarriageReturns(this._cursor.getChars(_t14)),this._endToken([e])}return e}},{key:"_consumeTagOpenEnd",value:function _consumeTagOpenEnd(){var e=this._attemptCharCode(n.$SLASH)?s.TAG_OPEN_END_VOID:s.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(n.$GT),this._endToken([])}},{key:"_consumeTagClose",value:function _consumeTagClose(e){if(this._beginToken(s.TAG_CLOSE,e),this._attemptCharCodeUntilFn(h),this._allowHtmComponentClosingTags&&this._attemptCharCode(n.$SLASH))this._attemptCharCodeUntilFn(h),this._requireCharCode(n.$GT),this._endToken([]);else{var _this$_consumePrefixA2=_slicedToArray(this._consumePrefixAndName(),2),_e15=_this$_consumePrefixA2[0],_t15=_this$_consumePrefixA2[1];this._attemptCharCodeUntilFn(h),this._requireCharCode(n.$GT),this._endToken([_e15,_t15]),this._handleFullNameStackForTagClose(_e15,_t15)}}},{key:"_consumeExpansionFormStart",value:function _consumeExpansionFormStart(){this._beginToken(s.EXPANSION_FORM_START),this._requireCharCode(n.$LBRACE),this._endToken([]),this._expansionCaseStack.push(s.EXPANSION_FORM_START),this._beginToken(s.RAW_TEXT);var e=this._readUntil(n.$COMMA);this._endToken([e]),this._requireCharCode(n.$COMMA),this._attemptCharCodeUntilFn(h),this._beginToken(s.RAW_TEXT);var t=this._readUntil(n.$COMMA);this._endToken([t]),this._requireCharCode(n.$COMMA),this._attemptCharCodeUntilFn(h)}},{key:"_consumeExpansionCaseStart",value:function _consumeExpansionCaseStart(){this._beginToken(s.EXPANSION_CASE_VALUE);var e=this._readUntil(n.$LBRACE).trim();this._endToken([e]),this._attemptCharCodeUntilFn(h),this._beginToken(s.EXPANSION_CASE_EXP_START),this._requireCharCode(n.$LBRACE),this._endToken([]),this._attemptCharCodeUntilFn(h),this._expansionCaseStack.push(s.EXPANSION_CASE_EXP_START)}},{key:"_consumeExpansionCaseEnd",value:function _consumeExpansionCaseEnd(){this._beginToken(s.EXPANSION_CASE_EXP_END),this._requireCharCode(n.$RBRACE),this._endToken([]),this._attemptCharCodeUntilFn(h),this._expansionCaseStack.pop()}},{key:"_consumeExpansionFormEnd",value:function _consumeExpansionFormEnd(){this._beginToken(s.EXPANSION_FORM_END),this._requireCharCode(n.$RBRACE),this._endToken([]),this._expansionCaseStack.pop()}},{key:"_consumeText",value:function _consumeText(){var e=this._cursor.clone();this._beginToken(s.TEXT,e);var t=[];do{this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(t.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(t.push(this._interpolationConfig.end),this._inInterpolation=!1):t.push(this._readChar(!0))}while(!this._isTextEnd());this._endToken([this._processCarriageReturns(t.join(""))])}},{key:"_isTextEnd",value:function _isTextEnd(){if(this._cursor.peek()===n.$LT||this._cursor.peek()===n.$EOF)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(this.isExpansionFormStart())return!0;if(this._cursor.peek()===n.$RBRACE&&this._isInExpansionCase())return!0}return!1}},{key:"_readUntil",value:function _readUntil(e){var t=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(t)}},{key:"_isInExpansionCase",value:function _isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===s.EXPANSION_CASE_EXP_START}},{key:"_isInExpansionForm",value:function _isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===s.EXPANSION_FORM_START}},{key:"isExpansionFormStart",value:function isExpansionFormStart(){if(this._cursor.peek()!==n.$LBRACE)return!1;if(this._interpolationConfig){var _e16=this._cursor.clone(),_t16=this._attemptStr(this._interpolationConfig.start);return this._cursor=_e16,!_t16}return!0}},{key:"_handleFullNameStackForTagOpen",value:function _handleFullNameStackForTagOpen(e,t){var r=dr.mergeNsAndName(e,t);0!==this._fullNameStack.length&&this._fullNameStack[this._fullNameStack.length-1]!==r||this._fullNameStack.push(r)}},{key:"_handleFullNameStackForTagClose",value:function _handleFullNameStackForTagClose(e,t){var r=dr.mergeNsAndName(e,t);0!==this._fullNameStack.length&&this._fullNameStack[this._fullNameStack.length-1]===r&&this._fullNameStack.pop()}}]),p}();function h(e){return!n.isWhitespace(e)||e===n.$EOF}function d(e){return n.isWhitespace(e)||e===n.$GT||e===n.$SLASH||e===n.$SQ||e===n.$DQ||e===n.$EQ}function m(e){return e==n.$SEMICOLON||e==n.$EOF||!n.isAsciiHexDigit(e)}function f(e){return e==n.$SEMICOLON||e==n.$EOF||!n.isAsciiLetter(e)}function g(e){return e>=n.$a&&e<=n.$z?e-n.$a+n.$A:e}var E=function(){function E(e,t){if(_classCallCheck(this,E),e instanceof E)this.file=e.file,this.input=e.input,this.end=e.end,this.state=Object.assign({},e.state);else{if(!t)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=e,this.input=e.content,this.end=t.endPos,this.state={peek:-1,offset:t.startPos,line:t.startLine,column:t.startCol}}}return _createClass(E,[{key:"clone",value:function clone(){return new E(this)}},{key:"peek",value:function peek(){return this.state.peek}},{key:"charsLeft",value:function charsLeft(){return this.end-this.state.offset}},{key:"diff",value:function diff(e){return this.state.offset-e.state.offset}},{key:"advance",value:function advance(){this.advanceState(this.state)}},{key:"init",value:function init(){this.updatePeek(this.state)}},{key:"getSpan",value:function getSpan(e,t){if(e=e||this,t)for(e=e.clone();this.diff(e)>0&&-1!==t.indexOf(e.peek());)e.advance();return new B.ParseSourceSpan(new B.ParseLocation(e.file,e.state.offset,e.state.line,e.state.column),new B.ParseLocation(this.file,this.state.offset,this.state.line,this.state.column))}},{key:"getChars",value:function getChars(e){return this.input.substring(e.state.offset,this.state.offset)}},{key:"charAt",value:function charAt(e){return this.input.charCodeAt(e)}},{key:"advanceState",value:function advanceState(e){if(e.offset>=this.end)throw this.state=e,new T('Unexpected character "EOF"',this);var t=this.charAt(e.offset);t===n.$LF?(e.line++,e.column=0):n.isNewLine(t)||e.column++,e.offset++,this.updatePeek(e)}},{key:"updatePeek",value:function updatePeek(e){e.peek=e.offset>=this.end?n.$EOF:this.charAt(e.offset)}}]),E}(),C=function(_E2){_inherits(C,_E2);var _super3=_createSuper(C);function C(e,t){var _this10;return _classCallCheck(this,C),e instanceof C?(_this10=_super3.call(this,e)).internalState=Object.assign({},e.internalState):(_this10=_super3.call(this,e,t)).internalState=_this10.state,_possibleConstructorReturn(_this10)}return _createClass(C,[{key:"advance",value:function advance(){this.state=this.internalState,_get(_getPrototypeOf(C.prototype),"advance",this).call(this),this.processEscapeSequence()}},{key:"init",value:function init(){_get(_getPrototypeOf(C.prototype),"init",this).call(this),this.processEscapeSequence()}},{key:"clone",value:function clone(){return new C(this)}},{key:"getChars",value:function getChars(e){for(var t=e.clone(),r="";t.internalState.offset3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4?arguments[4]:void 0,i=function i(e){return function(t){for(var _len3=arguments.length,r=new Array(_len3>1?_len3-1:0),_key3=1;_key3<_len3;_key3++)r[_key3-1]=arguments[_key3];return e.apply(void 0,[t.toLowerCase()].concat(r))}},o=n?this.getTagDefinition:i(this.getTagDefinition),a=function a(e){return o(e).contentType},u=n?s:i(s),c=s?function(e,t,r,n){var s=u(e,t,r,n);return void 0!==s?s:a(e)}:a,l=jr.tokenize(e,t,c,r),D=r&&r.canSelfClose||!1,p=r&&r.allowHtmComponentClosingTags||!1,h=new Qr(l.tokens,o,D,p,n).build();return new zr(h.rootNodes,l.errors.concat(h.errors))}}]),Yr}(),Qr=function(){function Qr(e,t,r,n,s){_classCallCheck(this,Qr),this.tokens=e,this.getTagDefinition=t,this.canSelfClose=r,this.allowHtmComponentClosingTags=n,this.isTagNameCaseSensitive=s,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}return _createClass(Qr,[{key:"build",value:function build(){for(;this._peek.type!==jr.TokenType.EOF;)this._peek.type===jr.TokenType.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===jr.TokenType.TAG_CLOSE?(this._closeVoidElement(),this._consumeEndTag(this._advance())):this._peek.type===jr.TokenType.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===jr.TokenType.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===jr.TokenType.TEXT||this._peek.type===jr.TokenType.RAW_TEXT||this._peek.type===jr.TokenType.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===jr.TokenType.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._peek.type===jr.TokenType.DOC_TYPE_START?this._consumeDocType(this._advance()):this._advance();return new zr(this._rootNodes,this._errors)}},{key:"_advance",value:function _advance(){var e=this._peek;return this._index0)return this._errors=this._errors.concat(s.errors),null;var i=new B.ParseSourceSpan(e.sourceSpan.start,n.sourceSpan.end),o=new B.ParseSourceSpan(t.sourceSpan.start,n.sourceSpan.end);return new qr.ExpansionCase(e.parts[0],s.rootNodes,i,e.sourceSpan,o)}},{key:"_collectExpansionExpTokens",value:function _collectExpansionExpTokens(e){for(var t=[],r=[jr.TokenType.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==jr.TokenType.EXPANSION_FORM_START&&this._peek.type!==jr.TokenType.EXPANSION_CASE_EXP_START||r.push(this._peek.type),this._peek.type===jr.TokenType.EXPANSION_CASE_EXP_END){if(!Jr(r,jr.TokenType.EXPANSION_CASE_EXP_START))return this._errors.push(Xr.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(r.pop(),0==r.length)return t}if(this._peek.type===jr.TokenType.EXPANSION_FORM_END){if(!Jr(r,jr.TokenType.EXPANSION_FORM_START))return this._errors.push(Xr.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.pop()}if(this._peek.type===jr.TokenType.EOF)return this._errors.push(Xr.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;t.push(this._advance())}}},{key:"_getText",value:function _getText(e){var t=e.parts[0];if(t.length>0&&"\n"==t[0]){var _e20=this._getParentElement();null!=_e20&&0==_e20.children.length&&this.getTagDefinition(_e20.name).ignoreFirstLf&&(t=t.substring(1))}return t}},{key:"_consumeText",value:function _consumeText(e){var t=this._getText(e);t.length>0&&this._addToParent(new qr.Text(t,e.sourceSpan))}},{key:"_closeVoidElement",value:function _closeVoidElement(){var e=this._getParentElement();e&&this.getTagDefinition(e.name).isVoid&&this._elementStack.pop()}},{key:"_consumeStartTag",value:function _consumeStartTag(e){for(var t=e.parts[0],r=e.parts[1],n=[];this._peek.type===jr.TokenType.ATTR_NAME;)n.push(this._consumeAttr(this._advance()));var s=this._getElementFullName(t,r,this._getParentElement()),i=!1;if(this._peek.type===jr.TokenType.TAG_OPEN_END_VOID){this._advance(),i=!0;var _t19=this.getTagDefinition(s);this.canSelfClose||_t19.canSelfClose||null!==dr.getNsPrefix(s)||_t19.isVoid||this._errors.push(Xr.create(s,e.sourceSpan,'Only void and foreign elements can be self closed "'.concat(e.parts[1],'"')))}else this._peek.type===jr.TokenType.TAG_OPEN_END&&(this._advance(),i=!1);var o=this._peek.sourceSpan.start,a=new B.ParseSourceSpan(e.sourceSpan.start,o),u=new B.ParseSourceSpan(e.sourceSpan.start.moveBy(1),e.sourceSpan.end),c=new qr.Element(s,n,[],a,a,void 0,u);this._pushElement(c),i&&(this._popElement(s),c.endSourceSpan=a)}},{key:"_pushElement",value:function _pushElement(e){var t=this._getParentElement();t&&this.getTagDefinition(t.name).isClosedByChild(e.name)&&this._elementStack.pop(),this._addToParent(e),this._elementStack.push(e)}},{key:"_consumeEndTag",value:function _consumeEndTag(e){var t=this.allowHtmComponentClosingTags&&0===e.parts.length?null:this._getElementFullName(e.parts[0],e.parts[1],this._getParentElement());if(this._getParentElement()&&(this._getParentElement().endSourceSpan=e.sourceSpan),t&&this.getTagDefinition(t).isVoid)this._errors.push(Xr.create(t,e.sourceSpan,'Void elements do not have end tags "'.concat(e.parts[1],'"')));else if(!this._popElement(t)){var _r25='Unexpected closing tag "'.concat(t,'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags');this._errors.push(Xr.create(t,e.sourceSpan,_r25))}}},{key:"_popElement",value:function _popElement(e){for(var _t20=this._elementStack.length-1;_t20>=0;_t20--){var _r26=this._elementStack[_t20];if(!e||(dr.getNsPrefix(_r26.name)?_r26.name==e:_r26.name.toLowerCase()==e.toLowerCase()))return this._elementStack.splice(_t20,this._elementStack.length-_t20),!0;if(!this.getTagDefinition(_r26.name).closedByParent)return!1}return!1}},{key:"_consumeAttr",value:function _consumeAttr(e){var r,n,t=dr.mergeNsAndName(e.parts[0],e.parts[1]),s=e.sourceSpan.end,i="";if(this._peek.type===jr.TokenType.ATTR_QUOTE&&(n=this._advance().sourceSpan.start),this._peek.type===jr.TokenType.ATTR_VALUE){var _e21=this._advance();i=_e21.parts[0],s=_e21.sourceSpan.end,r=_e21.sourceSpan}return this._peek.type===jr.TokenType.ATTR_QUOTE&&(s=this._advance().sourceSpan.end,r=new B.ParseSourceSpan(n,s)),new qr.Attribute(t,i,new B.ParseSourceSpan(e.sourceSpan.start,s),r,e.sourceSpan)}},{key:"_getParentElement",value:function _getParentElement(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null}},{key:"_getParentElementSkippingContainers",value:function _getParentElementSkippingContainers(){for(var e=null,_t21=this._elementStack.length-1;_t21>=0;_t21--){if(!dr.isNgContainer(this._elementStack[_t21].name))return{parent:this._elementStack[_t21],container:e};e=this._elementStack[_t21]}return{parent:null,container:e}}},{key:"_addToParent",value:function _addToParent(e){var t=this._getParentElement();null!=t?t.children.push(e):this._rootNodes.push(e)}},{key:"_insertBeforeContainer",value:function _insertBeforeContainer(e,t,r){if(t){if(e){var _n22=e.children.indexOf(t);e.children[_n22]=r}else this._rootNodes.push(r);r.children.push(t),this._elementStack.splice(this._elementStack.indexOf(t),0,r)}else this._addToParent(r),this._elementStack.push(r)}},{key:"_getElementFullName",value:function _getElementFullName(e,t,r){return""===e&&""===(e=this.getTagDefinition(t).implicitNamespacePrefix||"")&&null!=r&&(e=dr.getNsPrefix(r.name)),dr.mergeNsAndName(e,t)}}]),Qr}();function Jr(e,t){return e.length>0&&e[e.length-1]===t}var Zr=Object.defineProperty({TreeError:Hr,ParseTreeResult:Wr,Parser:Yr},"__esModule",{value:!0}),Kr=Zr,en=Kr.ParseTreeResult,tn=Kr.TreeError,rn=function(_Zr$Parser){_inherits(rn,_Zr$Parser);var _super5=_createSuper(rn);function rn(){return _classCallCheck(this,rn),_super5.call(this,Tr.getHtmlTagDefinition)}return _createClass(rn,[{key:"parse",value:function parse(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4?arguments[4]:void 0;return _get(_getPrototypeOf(rn.prototype),"parse",this).call(this,e,t,r,n,s)}}]),rn}(Zr.Parser),nn=rn,sn=Object.defineProperty({ParseTreeResult:en,TreeError:tn,HtmlParser:nn},"__esModule",{value:!0}),on=dr.TagContentType,an=null,un=function un(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},_t$canSelfClose=t.canSelfClose,r=void 0!==_t$canSelfClose&&_t$canSelfClose,_t$allowHtmComponentC=t.allowHtmComponentClosingTags,n=void 0!==_t$allowHtmComponentC&&_t$allowHtmComponentC,_t$isTagNameCaseSensi=t.isTagNameCaseSensitive,s=void 0!==_t$isTagNameCaseSensi&&_t$isTagNameCaseSensi,i=t.getTagContentType;return(an||(an=new sn.HtmlParser),an).parse(e,"angular-html-parser",{tokenizeExpansionForms:!1,interpolationConfig:void 0,canSelfClose:r,allowHtmComponentClosingTags:n},s,i)},cn=Object.defineProperty({TagContentType:on,parse:un},"__esModule",{value:!0}),ln=B.ParseSourceSpan,Dn=B.ParseLocation,pn=B.ParseSourceFile,hn=Ft.inferParserByLanguage,dn=rr.HTML_ELEMENT_ATTRIBUTES,mn=rr.HTML_TAGS,fn=rr.isUnknownNamespace,gn=nr.hasPragma,En=cr.Node,Cn=pr.parseIeConditionalComment,Tn=hr.locStart,_n=hr.locEnd;function Sn(e,_ref21,a){var t=_ref21.recognizeSelfClosing,r=_ref21.normalizeTagName,n=_ref21.normalizeAttributeName,s=_ref21.allowHtmComponentClosingTags,i=_ref21.isTagNameCaseSensitive,o=_ref21.getTagContentType,u=cn,c=qr.RecursiveVisitor,l=qr.visitAll,D=B.ParseSourceSpan,p=Tr.getHtmlTagDefinition,_u$parse=u.parse(e,{canSelfClose:t,allowHtmComponentClosingTags:s,isTagNameCaseSensitive:i,getTagContentType:o}),h=_u$parse.rootNodes,d=_u$parse.errors;if("vue"===a.parser)if(h.some((function(e){return"docType"===e.type&&"html"===e.value||"element"===e.type&&"html"===e.name.toLowerCase()}))){t=!0,r=!0,n=!0,s=!0,i=!1;var _o4=u.parse(e,{canSelfClose:t,allowHtmComponentClosingTags:s,isTagNameCaseSensitive:i});h=_o4.rootNodes,d=_o4.errors}else{var _r27=function _r27(e){if(!e)return!1;if("element"!==e.type||"template"!==e.name)return!1;var t=e.attrs.find((function(e){return"lang"===e.name})),r=t&&t.value;return!r||"html"===hn(r,a)};if(h.some(_r27))for(var _n23,_o5=function _o5(){return u.parse(e,{canSelfClose:t,allowHtmComponentClosingTags:s,isTagNameCaseSensitive:i})},_a2=function _a2(){return _n23||(_n23=_o5())},_c2=function _c2(e){return _a2().rootNodes.find((function(_ref22){var t=_ref22.startSourceSpan;return t&&t.start.offset===e.startSourceSpan.start.offset}))},_e22=0;_e220){var _d$=d[0],_e24=_d$.msg,_d$$span=_d$.span,_t24=_d$$span.start,_r29=_d$$span.end;throw U(_e24,{start:{line:_t24.line+1,column:_t24.col+1},end:{line:_r29.line+1,column:_r29.col+1}})}var m=function m(e){var t=e.name.startsWith(":")?e.name.slice(1).split(":")[0]:null,r=e.nameSpan.toString(),n=null!==t&&r.startsWith("".concat(t,":")),s=n?r.slice(t.length+1):r;e.name=s,e.namespace=t,e.hasExplicitNamespace=n},f=function f(e,t){var r=e.toLowerCase();return t(r)?r:e};return l(new(function(_c3){_inherits(_class10,_c3);var _super6=_createSuper(_class10);function _class10(){return _classCallCheck(this,_class10),_super6.apply(this,arguments)}return _createClass(_class10,[{key:"visit",value:function visit(e){(function(e){if("element"===e.type){m(e);var _step9,_iterator9=_createForOfIteratorHelper(e.attrs);try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){var _t25=_step9.value;m(_t25),_t25.valueSpan?(_t25.value=_t25.valueSpan.toString(),/["']/.test(_t25.value[0])&&(_t25.value=_t25.value.slice(1,-1))):_t25.value=null}}catch(err){_iterator9.e(err)}finally{_iterator9.f()}}else"comment"===e.type?e.value=e.sourceSpan.toString().slice(4,-3):"text"===e.type&&(e.value=e.sourceSpan.toString())})(e),function(e){if("element"===e.type){var _t26=p(i?e.name:e.name.toLowerCase());!e.namespace||e.namespace===_t26.implicitNamespacePrefix||fn(e)?e.tagDefinition=_t26:e.tagDefinition=p("")}}(e),function(e){"element"===e.type&&(!r||e.namespace&&e.namespace!==e.tagDefinition.implicitNamespacePrefix&&!fn(e)||(e.name=f(e.name,(function(e){return e in mn}))),n)&&function(){var _step10,t=dn[e.name]||Object.create(null),_iterator10=_createForOfIteratorHelper(e.attrs);try{for(_iterator10.s();!(_step10=_iterator10.n()).done;){var _r30=_step10.value;_r30.namespace||(_r30.name=f(_r30.name,(function(r){return e.name in dn&&(r in dn["*"]||r in t)})))}}catch(err){_iterator10.e(err)}finally{_iterator10.f()}}()}(e),function(e){e.sourceSpan&&e.endSourceSpan&&(e.sourceSpan=new D(e.sourceSpan.start,e.endSourceSpan.end))}(e)}}]),_class10}(c)),h),h}function yn(e,t,r){var _ref23=arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?{frontMatter:null,content:e}:$(e),s=_ref23.frontMatter,i=_ref23.content,o=new pn(e,t.filepath),a=new Dn(o,0,0,0),u=a.moveBy(e.length),c={type:"root",sourceSpan:new ln(a,u),children:Sn(i,r,t)};if(s){var _e25=new Dn(o,0,0,0),_t27=_e25.moveBy(s.raw.length);s.sourceSpan=new ln(_e25,_t27),c.children.unshift(s)}var l=new En(c),D=function D(n,s){var i=s.offset,o=yn(e.slice(0,i).replace(/[^\n\r]/g," ")+n,t,r,!1);o.sourceSpan=new ln(s,M(o.children).sourceSpan.end);var a=o.children[0];return a.length===i?o.children.shift():(a.sourceSpan=new ln(a.sourceSpan.start.moveBy(i),a.sourceSpan.end),a.value=a.value.slice(i)),o};return l.map((function(e){if("comment"===e.type){var _t28=Cn(e,D);if(_t28)return _t28}return e}))}function Fn(){var _ref24=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref24$recognizeSelfC=_ref24.recognizeSelfClosing,e=void 0!==_ref24$recognizeSelfC&&_ref24$recognizeSelfC,_ref24$normalizeTagNa=_ref24.normalizeTagName,t=void 0!==_ref24$normalizeTagNa&&_ref24$normalizeTagNa,_ref24$normalizeAttri=_ref24.normalizeAttributeName,r=void 0!==_ref24$normalizeAttri&&_ref24$normalizeAttri,_ref24$allowHtmCompon=_ref24.allowHtmComponentClosingTags,n=void 0!==_ref24$allowHtmCompon&&_ref24$allowHtmCompon,_ref24$isTagNameCaseS=_ref24.isTagNameCaseSensitive,s=void 0!==_ref24$isTagNameCaseS&&_ref24$isTagNameCaseS,i=_ref24.getTagContentType;return{parse:function parse(o,a,u){return yn(o,u,{recognizeSelfClosing:e,normalizeTagName:t,normalizeAttributeName:r,allowHtmComponentClosingTags:n,isTagNameCaseSensitive:s,getTagContentType:i})},hasPragma:gn,astFormat:"html",locStart:Tn,locEnd:_n}}return{parsers:{html:Fn({recognizeSelfClosing:!0,normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0}),angular:Fn(),vue:Fn({recognizeSelfClosing:!0,isTagNameCaseSensitive:!0,getTagContentType:function getTagContentType(e,t,r,n){if("html"!==e.toLowerCase()&&!r&&("template"!==e||n.some((function(_ref25){var e=_ref25.name,t=_ref25.value;return"lang"===e&&"html"!==t}))))return cn.TagContentType.RAW_TEXT}}),lwc:Fn()}}}()}(parserHtml);var prettierHtml=Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_91__.G)(parserHtml.exports),standalone={exports:{}};!function(module,exports){_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_91__.C,module.exports=function(){function e(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}function t(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var n={name:"prettier",version:"2.3.0",description:"Prettier is an opinionated code formatter",bin:"./bin/prettier.js",repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",browser:"./standalone.js",unpkg:"./standalone.js",engines:{node:">=10.13.0"},files:["index.js","standalone.js","src","bin"],dependencies:{"@angular/compiler":"11.2.13","@babel/code-frame":"7.12.13","@babel/parser":"7.14.1","@glimmer/syntax":"0.79.0","@iarna/toml":"2.2.5","@typescript-eslint/typescript-estree":"4.22.0","angular-estree-parser":"2.3.0","angular-html-parser":"1.8.0",camelcase:"6.2.0",chalk:"4.1.1","ci-info":"3.1.1","cjk-regex":"2.0.1",cosmiconfig:"7.0.0",dashify:"2.0.0",diff:"5.0.0",editorconfig:"0.15.3","editorconfig-to-prettier":"0.2.0","escape-string-regexp":"4.0.0",espree:"7.3.1",esutils:"2.0.3","fast-glob":"3.2.5","fast-json-stable-stringify":"2.1.0","find-parent-dir":"0.3.0","flow-parser":"0.150.1","get-stdin":"8.0.0",globby:"11.0.3",graphql:"15.5.0","html-element-attributes":"2.3.0","html-styles":"1.0.0","html-tag-names":"1.1.5","html-void-elements":"1.0.5",ignore:"4.0.6","jest-docblock":"26.0.0",json5:"2.2.0",leven:"3.1.0","lines-and-columns":"1.1.6","linguist-languages":"7.14.0",lodash:"4.17.21",mem:"8.1.1",meriyah:"4.1.5",minimatch:"3.0.4",minimist:"1.2.5","n-readlines":"1.0.1",outdent:"0.8.0","parse-srcset":"ikatyang/parse-srcset#54eb9c1cb21db5c62b4d0e275d7249516df6f0ee","please-upgrade-node":"3.2.0","postcss-less":"3.1.4","postcss-media-query-parser":"0.2.3","postcss-scss":"2.1.1","postcss-selector-parser":"2.2.3","postcss-values-parser":"2.0.1","regexp-util":"1.2.2","remark-footnotes":"2.0.0","remark-math":"3.0.1","remark-parse":"8.0.3",resolve:"1.20.0",semver:"7.3.5","string-width":"4.2.2","strip-ansi":"6.0.0",typescript:"4.2.4","unicode-regex":"3.0.0",unified:"9.2.1",vnopts:"1.0.2",wcwidth:"1.0.1","yaml-unist-parser":"1.3.1"},devDependencies:{"@babel/core":"7.14.0","@babel/preset-env":"7.14.1","@babel/types":"7.14.1","@glimmer/reference":"0.79.0","@rollup/plugin-alias":"3.1.2","@rollup/plugin-babel":"5.3.0","@rollup/plugin-commonjs":"18.1.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"13.0.0","@rollup/plugin-replace":"2.4.2","@types/estree":"0.0.47","@types/node":"15.0.1","babel-jest":"26.6.3","babel-loader":"8.2.2",benchmark:"2.1.4","builtin-modules":"3.2.0","cross-env":"7.0.3",cspell:"4.2.8",eslint:"7.26.0","eslint-config-prettier":"8.3.0","eslint-formatter-friendly":"7.0.0","eslint-plugin-import":"2.22.1","eslint-plugin-jest":"24.3.6","eslint-plugin-prettier-internal-rules":"link:scripts/tools/eslint-plugin-prettier-internal-rules","eslint-plugin-react":"7.23.2","eslint-plugin-unicorn":"31.0.0",execa:"5.0.0",jest:"26.6.3","jest-snapshot-serializer-ansi":"1.0.0","jest-snapshot-serializer-raw":"1.2.0","jest-watch-typeahead":"0.6.3","npm-run-all":"4.1.5","path-browserify":"1.0.1",prettier:"2.2.1","pretty-bytes":"5.6.0",rimraf:"3.0.2",rollup:"2.47.0","rollup-plugin-polyfill-node":"0.6.2","rollup-plugin-terser":"7.0.2",shelljs:"0.8.4","snapshot-diff":"0.8.1","synchronous-promise":"2.0.15",tempy:"1.0.1","terser-webpack-plugin":"5.1.1",webpack:"5.36.2"},scripts:{prepublishOnly:'echo "Error: must publish from dist/" && exit 1',"prepare-release":"yarn && yarn build && yarn test:dist",test:"jest","test:dev-package":"cross-env INSTALL_PACKAGE=1 jest","test:dist":"cross-env NODE_ENV=production jest","test:dist-standalone":"cross-env NODE_ENV=production TEST_STANDALONE=1 jest","test:integration":"jest tests/integration","perf:repeat":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:repeat-inspect":"yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:benchmark":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-benchmark --loglevel debug ${PERF_FILE:-./index.js} > /dev/null",lint:"run-p lint:*","lint:typecheck":"tsc","lint:eslint":"cross-env EFF_NO_LINK_RULES=true eslint . --format friendly","lint:changelog":"node ./scripts/lint-changelog.js","lint:prettier":'prettier . "!test*" --check',"lint:dist":'eslint --no-eslintrc --no-ignore --no-inline-config --env=es6,browser --parser-options=ecmaVersion:2018 "dist/!(bin-prettier|index|third-party).js"',"lint:spellcheck":'cspell "**/*" ".github/**/*"',"lint:deps":"node ./scripts/check-deps.js",fix:"run-s fix:eslint fix:prettier","fix:eslint":"yarn lint:eslint --fix","fix:prettier":"yarn lint:prettier --write",build:"node --max-old-space-size=3072 ./scripts/build/build.js","build-docs":"node ./scripts/build-docs.js"}},r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_91__.C?_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_91__.C:"undefined"!=typeof self?self:{};function o(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(e){var t={exports:{}};return e(t,t.exports),t.exports}var y,u=i((function(e,t){function n(){}function r(e,t,n,r,o){for(var i=0,u=t.length,s=0,a=0;ie.length?n:e})),c.value=e.join(p)}else c.value=e.join(n.slice(s,s+c.count));s+=c.count,c.added||(a+=c.count)}}var f=t[u-1];return u>1&&"string"==typeof f.value&&(f.added||f.removed)&&e.equals("",f.value)&&(t[u-2].value+=f.value,t.pop()),t}function o(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,n.prototype={diff:function diff(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.callback;"function"==typeof n&&(i=n,n={}),this.options=n;var u=this;function s(e){return i?(setTimeout((function(){i(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var a=(t=this.removeEmpty(this.tokenize(t))).length,c=e.length,l=1,p=a+c,f=[{newPos:-1,components:[]}],d=this.extractCommon(f[0],t,e,0);if(f[0].newPos+1>=a&&d+1>=c)return s([{value:this.join(t),count:t.length}]);function h(){for(var n=-1*l;n<=l;n+=2){var i=void 0,p=f[n-1],d=f[n+1],h=(d?d.newPos:0)-n;p&&(f[n-1]=void 0);var m=p&&p.newPos+1=a&&h+1>=c)return s(r(u,i.components,t,e,u.useLongestToken));f[n]=i}else f[n]=void 0}l++}if(i)!function e(){setTimeout((function(){if(l>p)return i();h()||e()}),0)}();else for(;l<=p;){var m=h();if(m)return m}},pushComponent:function pushComponent(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function extractCommon(e,t,n,r){for(var o=t.length,i=n.length,u=e.newPos,s=u-r,a=0;u+11&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],o=[],i=0;function u(){var e={};for(o.push(e);i2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=(0,D.parsePatch)(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var r,o,i=e.split(/\r\n|[\n\v\f\r\x85]/),u=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],s=t.hunks,a=n.compareLine||function(e,t,n,r){return t===r},c=0,l=n.fuzzFactor||0,p=0,f=0;function d(e,t){for(var n=0;n0?r[0]:" ",u=r.length>0?r.substr(1):r;if(" "===o||"-"===o){if(!a(t+1,i[t],o,u)&&++c>l)return!1;t++}}return!0}for(var h=0;h0?w[0]:" ",B=w.length>0?w.substr(1):w,k=F.linedelimiters[S];if(" "===T)x++;else if("-"===T)i.splice(x,1),u.splice(x,1);else if("+"===T)i.splice(x,0,B),u.splice(x,0,k),x++;else if("\\"===T){var N=F.lines[S-1]?F.lines[S-1][0]:null;"+"===N?r=!0:"-"===N&&(o=!0)}}}if(r)for(;!i[i.length-1];)i.pop(),u.pop();else o&&(i.push(""),u.push("\n"));for(var P=0;Pe.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?a(p.lines.slice(-u.context)):[],l-=d.length,f-=d.length)}(i=d).push.apply(i,B(o.map((function(e){return(t.added?"+":"-")+e})))),t.added?m+=o.length:h+=o.length}else{if(l)if(o.length<=2*u.context&&e=s.length-2&&o.length<=u.context){var b=/\n$/.test(n),C=/\n$/.test(r),v=0==o.length&&d.length>E.oldLines;!b&&v&&n.length>0&&d.splice(E.oldLines,0,"\\ No newline at end of file"),(b||v)&&C||d.push("\\ No newline at end of file")}c.push(E),l=0,f=0,d=[]}h+=o.length,m+=o.length}},y=0;ye.length)return!1;for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n"):r.removed&&t.push(""),t.push(ce(r.value)),r.added?t.push(""):r.removed&&t.push("")}return t.join("")};function ce(e){var t=e;return(t=(t=(t=t.replace(/&/g,"&")).replace(//g,">")).replace(/"/g,""")}var le=Object.defineProperty({convertChangesToXML:ae},"__esModule",{value:!0}),pe=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Diff",{enumerable:!0,get:function get(){return n.default}}),Object.defineProperty(t,"diffChars",{enumerable:!0,get:function get(){return s.diffChars}}),Object.defineProperty(t,"diffWords",{enumerable:!0,get:function get(){return l.diffWords}}),Object.defineProperty(t,"diffWordsWithSpace",{enumerable:!0,get:function get(){return l.diffWordsWithSpace}}),Object.defineProperty(t,"diffLines",{enumerable:!0,get:function get(){return p.diffLines}}),Object.defineProperty(t,"diffTrimmedLines",{enumerable:!0,get:function get(){return p.diffTrimmedLines}}),Object.defineProperty(t,"diffSentences",{enumerable:!0,get:function get(){return f.diffSentences}}),Object.defineProperty(t,"diffCss",{enumerable:!0,get:function get(){return d.diffCss}}),Object.defineProperty(t,"diffJson",{enumerable:!0,get:function get(){return h.diffJson}}),Object.defineProperty(t,"canonicalize",{enumerable:!0,get:function get(){return h.canonicalize}}),Object.defineProperty(t,"diffArrays",{enumerable:!0,get:function get(){return m.diffArrays}}),Object.defineProperty(t,"applyPatch",{enumerable:!0,get:function get(){return F.applyPatch}}),Object.defineProperty(t,"applyPatches",{enumerable:!0,get:function get(){return F.applyPatches}}),Object.defineProperty(t,"parsePatch",{enumerable:!0,get:function get(){return D.parsePatch}}),Object.defineProperty(t,"merge",{enumerable:!0,get:function get(){return ie.merge}}),Object.defineProperty(t,"structuredPatch",{enumerable:!0,get:function get(){return I.structuredPatch}}),Object.defineProperty(t,"createTwoFilesPatch",{enumerable:!0,get:function get(){return I.createTwoFilesPatch}}),Object.defineProperty(t,"createPatch",{enumerable:!0,get:function get(){return I.createPatch}}),Object.defineProperty(t,"convertChangesToDMP",{enumerable:!0,get:function get(){return se.convertChangesToDMP}}),Object.defineProperty(t,"convertChangesToXML",{enumerable:!0,get:function get(){return le.convertChangesToXML}});var n=function(e){return e&&e.__esModule?e:{default:e}}(u)}));function fe(e){return{type:"concat",parts:e}}function de(e){return{type:"indent",contents:e}}function he(e,t){return{type:"align",contents:t,n:e}}function me(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"group",id:t.id,contents:e,break:Boolean(t.shouldBreak),expandedStates:t.expandedStates}}var ge={type:"break-parent"},ye={type:"line",hard:!0},De={type:"line",hard:!0,literal:!0},Ee=fe([ye,ge]),be=fe([De,ge]),Ce={concat:fe,join:function join(e,t){for(var n=[],_r31=0;_r312&&void 0!==arguments[2]?arguments[2]:{}).groupId}},trim:{type:"trim"},indent:de,indentIfBreak:function indentIfBreak(e,t){return{type:"indent-if-break",contents:e,groupId:t.groupId,negate:t.negate}},align:he,addAlignmentToDoc:function addAlignmentToDoc(e,t,n){var r=e;if(t>0){for(var _e26=0;_e260&&void 0!==arguments[0]?arguments[0]:{}).onlyFirst,e=void 0!==_ref26$onlyFirst&&_ref26$onlyFirst,t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}(),""):e},Ae=function Ae(e){return!Number.isNaN(e)&&e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)},Fe=Ae,xe=Ae;Fe.default=xe;var Se=function Se(e){if("string"!=typeof e||0===e.length)return 0;if(0===(e=ve(e)).length)return 0;e=e.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g," ");for(var t=0,_n25=0;_n25=127&&_r32<=159||_r32>=768&&_r32<=879||(_r32>65535&&_n25++,t+=Fe(_r32)?2:1)}return t},we=Se,Te=Se;we.default=Te;var Be=function Be(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},ke=function ke(e){return e[e.length-1]},Ne=function Ne(e){for(var t=-1,n=null==e?0:e.length,r={};++t1)for(var n=1;n)?=?)"),s("XRANGEIDENTIFIERLOOSE","".concat(o[i.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),s("XRANGEIDENTIFIER","".concat(o[i.NUMERICIDENTIFIER],"|x|X|\\*")),s("XRANGEPLAIN","[v=\\s]*(".concat(o[i.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(o[i.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(o[i.XRANGEIDENTIFIER],")")+"(?:".concat(o[i.PRERELEASE],")?").concat(o[i.BUILD],"?")+")?)?"),s("XRANGEPLAINLOOSE","[v=\\s]*(".concat(o[i.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(o[i.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(o[i.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(o[i.PRERELEASELOOSE],")?").concat(o[i.BUILD],"?")+")?)?"),s("XRANGE","^".concat(o[i.GTLT],"\\s*").concat(o[i.XRANGEPLAIN],"$")),s("XRANGELOOSE","^".concat(o[i.GTLT],"\\s*").concat(o[i.XRANGEPLAINLOOSE],"$")),s("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:$|[^\\d])"),s("COERCERTL",o[i.COERCE],!0),s("LONETILDE","(?:~>?)"),s("TILDETRIM","(\\s*)".concat(o[i.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",s("TILDE","^".concat(o[i.LONETILDE]).concat(o[i.XRANGEPLAIN],"$")),s("TILDELOOSE","^".concat(o[i.LONETILDE]).concat(o[i.XRANGEPLAINLOOSE],"$")),s("LONECARET","(?:\\^)"),s("CARETTRIM","(\\s*)".concat(o[i.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",s("CARET","^".concat(o[i.LONECARET]).concat(o[i.XRANGEPLAIN],"$")),s("CARETLOOSE","^".concat(o[i.LONECARET]).concat(o[i.XRANGEPLAINLOOSE],"$")),s("COMPARATORLOOSE","^".concat(o[i.GTLT],"\\s*(").concat(o[i.LOOSEPLAIN],")$|^$")),s("COMPARATOR","^".concat(o[i.GTLT],"\\s*(").concat(o[i.FULLPLAIN],")$|^$")),s("COMPARATORTRIM","(\\s*)".concat(o[i.GTLT],"\\s*(").concat(o[i.LOOSEPLAIN],"|").concat(o[i.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",s("HYPHENRANGE","^\\s*(".concat(o[i.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(o[i.XRANGEPLAIN],")")+"\\s*$"),s("HYPHENRANGELOOSE","^\\s*(".concat(o[i.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(o[i.XRANGEPLAINLOOSE],")")+"\\s*$"),s("STAR","(<|>)?=?\\s*\\*"),s("GTE0","^\\s*>=\\s*0.0.0\\s*$"),s("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")})),ut=["includePrerelease","loose","rtl"],st=function st(e){return e?"object"!=_typeof(e)?{loose:!0}:ut.filter((function(t){return e[t]})).reduce((function(e,t){return e[t]=!0,e}),{}):{}},at=/^[0-9]+$/,ct=function ct(e,t){var n=at.test(e),r=at.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:ept)throw new TypeError("version is longer than ".concat(pt," characters"));rt("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;var n=e.trim().match(t.loose?dt[ht.LOOSE]:dt[ht.FULL]);if(!n)throw new TypeError("Invalid Version: ".concat(e));if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>ft||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ft||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ft||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var _t29=+e;if(_t29>=0&&_t29=0;)"number"==typeof this.prerelease[_e27]&&(this.prerelease[_e27]++,_e27=-2);-1===_e27&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: ".concat(e))}return this.format(),this.raw=this.version,this}}]),gt}(),yt=gt,Dt=function Dt(e,t,n){return new yt(e,n).compare(new yt(t,n))},Et=function Et(e,t,n){return Dt(e,t,n)<0},St=function St(e,t,n){return Dt(e,t,n)>=0},wt=i((function(e,t){function n(){for(var e=[],t=0;t0&&void 0!==arguments[0]?arguments[0]:{},_ref27$plugins=_ref27.plugins,t=void 0===_ref27$plugins?[]:_ref27$plugins,_ref27$showUnreleased=_ref27.showUnreleased,n=void 0!==_ref27$showUnreleased&&_ref27$showUnreleased,_ref27$showDeprecated=_ref27.showDeprecated,r=void 0!==_ref27$showDeprecated&&_ref27$showDeprecated,_ref27$showInternal=_ref27.showInternal,o=void 0!==_ref27$showInternal&&_ref27$showInternal,i=Lt.split("-",1)[0],u=t.reduce((function(e,t){return[].concat(_toConsumableArray(e),_toConsumableArray(t.languages||[]))}),[]).filter(a),s=function(e,t){return Object.entries(e).map((function(_ref28){var _ref29=_slicedToArray(_ref28,2),e=_ref29[0],n=_ref29[1];return Object.assign(_defineProperty({},t,e),n)}))}(Object.assign.apply(Object,[{}].concat(_toConsumableArray(t.map((function(_ref30){return _ref30.options}))),[_t])),"name").filter((function(e){return a(e)&&c(e)})).sort((function(e,t){return e.name===t.name?0:e.name=0&&u2&&void 0!==arguments[2]?arguments[2]:{},r=Wt(e,n.backwards?t-1:t,n);return r!==Jt(e,r,n)}function Yt(e,t){for(var n=null,r=t;r!==n;)n=r,r=Ht(e,r=Ut(e,r)),r=Wt(e,r);return!1!==(r=Jt(e,r=Gt(e,r)))&&Xt(e,r)}function Kt(e,t){for(var n=null,r=t;r!==n;)n=r,r=Jt(e,r=Gt(e,r=Ht(e,r=Wt(e,r))));return r}function Qt(e,t,n){return Kt(e,n(t))}function Zt(e,t){for(var r=0,_o8=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;_o8(n.match(u.regex)||[]).length?u.quote:i.quote),s}function tn(e,t,n){var r='"'===t?"'":'"',o=e.replace(/\\([\S\s])|(["'])/g,(function(e,o,i){return o===r?o:i===t?"\\"+i:i||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(o)?o:"\\"+o)}));return t+o+t}function nn(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=function(e){var t=e.type||e.kind||"(unknown type)",n=String(e.name||e.id&&("object"==_typeof(e.id)?e.id.name:e.id)||e.key&&("object"==_typeof(e.key)?e.key.name:e.key)||e.value&&("object"==_typeof(e.value)?"":String(e.value))||e.operator||"");return n.length>20&&(n=n.slice(0,19)+"…"),t+(n?" "+n:"")}(e)}var rn={inferParserByLanguage:function inferParserByLanguage(e,t){var n=Rt({plugins:t.plugins}).languages,r=n.find((function(_ref31){return _ref31.name.toLowerCase()===e}))||n.find((function(_ref32){var t=_ref32.aliases;return Array.isArray(t)&&t.includes(e)}))||n.find((function(_ref33){var t=_ref33.extensions;return Array.isArray(t)&&t.includes(".".concat(e))}));return r&&r.parsers[0]},replaceEndOfLineWith:function replaceEndOfLineWith(e,t){var _step13,n=[],_iterator13=_createForOfIteratorHelper(e.split("\n"));try{for(_iterator13.s();!(_step13=_iterator13.n()).done;){var _r35=_step13.value;n.length>0&&n.push(t),n.push(_r35)}}catch(err){_iterator13.e(err)}finally{_iterator13.f()}return n},getStringWidth:function getStringWidth(e){return e?Vt.test(e)?we(e):e.length:0},getMaxContinuousCount:function getMaxContinuousCount(e,t){var n=e.match(new RegExp("(".concat(Be(t),")+"),"g"));return null===n?0:n.reduce((function(e,n){return Math.max(e,n.length/t.length)}),0)},getMinNotPresentContinuousCount:function getMinNotPresentContinuousCount(e,t){var n=e.match(new RegExp("(".concat(Be(t),")+"),"g"));if(null===n)return 0;var _step14,r=new Map,o=0,_iterator14=_createForOfIteratorHelper(n);try{for(_iterator14.s();!(_step14=_iterator14.n()).done;){var _n30=_step14.value.length/t.length;r.set(_n30,!0),_n30>o&&(o=_n30)}}catch(err){_iterator14.e(err)}finally{_iterator14.f()}for(var _e28=1;_e282&&void 0!==arguments[2]?arguments[2]:{};return Wt(e,n.backwards?t-1:t,n)!==t},getAlignmentSize:Zt,getIndentSize:function getIndentSize(e,t){var n=e.lastIndexOf("\n");return-1===n?0:Zt(e.slice(n+1).match(/^[\t ]*/)[0],t)},getPreferredQuote:en,printString:function printString(e,t){return tn(e.slice(1,-1),"json"===t.parser||"json5"===t.parser&&"preserve"===t.quoteProps&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":en(e,t.singleQuote?"'":'"'),!("css"===t.parser||"less"===t.parser||"scss"===t.parser||t.__embeddedInHtml))},printNumber:function printNumber(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")},makeString:tn,addLeadingComment:function addLeadingComment(e,t){t.leading=!0,t.trailing=!1,nn(e,t)},addDanglingComment:function addDanglingComment(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),nn(e,t)},addTrailingComment:function addTrailingComment(e,t){t.leading=!1,t.trailing=!0,nn(e,t)},isFrontMatterNode:function isFrontMatterNode(e){return e&&"front-matter"===e.type},getShebang:function getShebang(e){if(!e.startsWith("#!"))return"";var t=e.indexOf("\n");return-1===t?e:e.slice(0,t)},isNonEmptyArray:function isNonEmptyArray(e){return Array.isArray(e)&&e.length>0},createGroupIdMapper:function createGroupIdMapper(e){var t=new WeakMap;return function(n){return t.has(n)||t.set(n,Symbol(e)),t.get(n)}}},on={guessEndOfLine:function guessEndOfLine(e){var t=e.indexOf("\r");return t>=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"},convertEndOfLineToChars:function convertEndOfLineToChars(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}},countEndOfLineChars:function countEndOfLineChars(e,t){var n;if("\n"===t)n=/\n/g;else if("\r"===t)n=/\r/g;else{if("\r\n"!==t)throw new Error('Unexpected "eol" '.concat(JSON.stringify(t),"."));n=/\r\n/g}var r=e.match(n);return r?r.length:0},normalizeEndOfLine:function normalizeEndOfLine(e){return e.replace(/\r\n?/g,"\n")}},un=Ce.literalline,sn=function sn(e){return Array.isArray(e)||e&&"concat"===e.type},an=function an(e){if(Array.isArray(e))return e;if("concat"!==e.type&&"fill"!==e.type)throw new Error("Expect doc type to be `concat` or `fill`.");return e.parts},cn={};function ln(e,t,n,r){for(var o=[e];o.length>0;){var _e30=o.pop();if(_e30!==cn){if(n&&o.push(_e30,cn),!t||!1!==t(_e30))if(sn(_e30)||"fill"===_e30.type)for(var _t30=an(_e30),_e31=_t30.length-1;_e31>=0;--_e31)o.push(_t30[_e31]);else if("if-break"===_e30.type)_e30.flatContents&&o.push(_e30.flatContents),_e30.breakContents&&o.push(_e30.breakContents);else if("group"===_e30.type&&_e30.expandedStates)if(r)for(var _t31=_e30.expandedStates.length-1;_t31>=0;--_t31)o.push(_e30.expandedStates[_t31]);else o.push(_e30.contents);else _e30.contents&&o.push(_e30.contents)}else n(o.pop())}}function pn(e,t){var n=new Map;return r(e);function r(e){if(n.has(e))return n.get(e);var o=function(e){if(Array.isArray(e))return t(e.map(r));if("concat"===e.type||"fill"===e.type){var _n31=e.parts.map(r);return t(Object.assign({},e,{parts:_n31}))}if("if-break"===e.type){var _n32=e.breakContents&&r(e.breakContents),_o9=e.flatContents&&r(e.flatContents);return t(Object.assign({},e,{breakContents:_n32,flatContents:_o9}))}if("group"===e.type&&e.expandedStates){var _n33=e.expandedStates.map(r),_o10=_n33[0];return t(Object.assign({},e,{contents:_o10,expandedStates:_n33}))}if(e.contents){var _n34=r(e.contents);return t(Object.assign({},e,{contents:_n34}))}return t(e)}(e);return n.set(e,o),o}}function fn(e,t,n){var r=n,o=!1;return ln(e,(function(e){var n=t(e);if(void 0!==n&&(o=!0,r=n),o)return!1})),r}function dn(e){return!("group"!==e.type||!e.break)||!("line"!==e.type||!e.hard)||"break-parent"===e.type||void 0}function hn(e){if(e.length>0){var _t32=ke(e);_t32.expandedStates||_t32.break||(_t32.break="propagated")}return null}function mn(e){return"line"!==e.type||e.hard?"if-break"===e.type?e.flatContents||"":e:e.soft?"":" "}var gn=function gn(e,t){return e&&"line"===e.type&&e.hard&&t&&"break-parent"===t.type};function yn(e){if(!e)return e;if(sn(e)||"fill"===e.type){for(var _t33=an(e);_t33.length>1&&gn.apply(void 0,_toConsumableArray(_t33.slice(-2)));)_t33.length-=2;if(_t33.length>0){var _e32=yn(ke(_t33));_t33[_t33.length-1]=_e32}return Array.isArray(e)?_t33:Object.assign({},e,{parts:_t33})}switch(e.type){case"align":case"indent":case"indent-if-break":case"group":case"line-suffix":case"label":var _t34=yn(e.contents);return Object.assign({},e,{contents:_t34});case"if-break":var _t35=yn(e.breakContents),_n35=yn(e.flatContents);return Object.assign({},e,{breakContents:_t35,flatContents:_n35})}return e}function Dn(e){return pn(e,(function(e){return function(e){switch(e.type){case"fill":if(0===e.parts.length||e.parts.every((function(e){return""===e})))return"";break;case"group":if(!(e.contents||e.id||e.break||e.expandedStates))return"";if("group"===e.contents.type&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case"align":case"indent":case"indent-if-break":case"line-suffix":if(!e.contents)return"";break;case"if-break":if(!e.flatContents&&!e.breakContents)return""}if(!sn(e))return e;var _step15,t=[],_iterator15=_createForOfIteratorHelper(an(e));try{for(_iterator15.s();!(_step15=_iterator15.n()).done;){var _n36=_step15.value;if(_n36){var _ref35=_toArray(sn(_n36)?an(_n36):[_n36]),_e33=_ref35[0],_r37=_ref35.slice(1);"string"==typeof _e33&&"string"==typeof ke(t)?t[t.length-1]+=_e33:t.push(_e33),t.push.apply(t,_toConsumableArray(_r37))}}}catch(err){_iterator15.e(err)}finally{_iterator15.f()}return 0===t.length?"":1===t.length?t[0]:Array.isArray(e)?t:Object.assign({},e,{parts:t})}(e)}))}function En(e){for(var t=[],n=e.filter(Boolean);n.length>0;){var _e34=n.shift();_e34&&(sn(_e34)?n.unshift.apply(n,_toConsumableArray(an(_e34))):t.length>0&&"string"==typeof ke(t)&&"string"==typeof _e34?t[t.length-1]+=_e34:t.push(_e34))}return t}var Bn,bn={isConcat:sn,getDocParts:an,willBreak:function willBreak(e){return fn(e,dn,!1)},traverseDoc:ln,findInDoc:fn,mapDoc:pn,propagateBreaks:function propagateBreaks(e){var t=new Set,n=[];ln(e,(function(e){if("break-parent"===e.type&&hn(n),"group"===e.type){if(n.push(e),t.has(e))return!1;t.add(e)}}),(function(e){"group"===e.type&&n.pop().break&&hn(n)}),!0)},removeLines:function removeLines(e){return pn(e,mn)},stripTrailingHardline:function stripTrailingHardline(e){return yn(Dn(e))},normalizeParts:En,normalizeDoc:function normalizeDoc(e){return pn(e,(function(e){return Array.isArray(e)?En(e):e.parts?Object.assign({},e,{parts:En(e.parts)}):e}))},cleanDoc:Dn,replaceNewlinesWithLiterallines:function replaceNewlinesWithLiterallines(e){return pn(e,(function(e){return"string"==typeof e&&e.includes("\n")?e.split(/(\n)/g).map((function(e,t){return t%2==0?e:un})):e}))}},Cn=rn.getStringWidth,vn=rn.getLast,An=on.convertEndOfLineToChars,Fn=Ce.fill,xn=Ce.cursor,Sn=Ce.indent,wn=bn.isConcat,Tn=bn.getDocParts;function kn(e,t){return Pn(e,{type:"indent"},t)}function Nn(e,t,n){return t===Number.NEGATIVE_INFINITY?e.root||{value:"",length:0,queue:[]}:t<0?Pn(e,{type:"dedent"},n):t?"root"===t.type?Object.assign({},e,{root:e}):Pn(e,{type:"string"==typeof t?"stringAlign":"numberAlign",n:t},n):e}function Pn(e,t,n){var _step16,r="dedent"===t.type?e.queue.slice(0,-1):[].concat(_toConsumableArray(e.queue),[t]),o="",i=0,u=0,s=0,_iterator16=_createForOfIteratorHelper(r);try{for(_iterator16.s();!(_step16=_iterator16.n()).done;){var _e35=_step16.value;switch(_e35.type){case"indent":l(),n.useTabs?a(1):c(n.tabWidth);break;case"stringAlign":l(),o+=_e35.n,i+=_e35.n.length;break;case"numberAlign":u+=1,s+=_e35.n;break;default:throw new Error("Unexpected type '".concat(_e35.type,"'"))}}}catch(err){_iterator16.e(err)}finally{_iterator16.f()}return p(),Object.assign({},e,{value:o,length:i,queue:r});function a(e){o+="\t".repeat(e),i+=n.tabWidth*e}function c(e){o+=" ".repeat(e),i+=e}function l(){n.useTabs?(u>0&&a(u),f()):p()}function p(){s>0&&c(s),f()}function f(){u=0,s=0}}function On(e){if(0===e.length)return 0;for(var t=0;e.length>0&&"string"==typeof vn(e)&&/^[\t ]*$/.test(vn(e));)t+=e.pop().length;if(e.length>0&&"string"==typeof vn(e)){var _n37=vn(e).replace(/[\t ]*$/,"");t+=vn(e).length-_n37.length,e[e.length-1]=_n37}return t}function In(e,t,n,r,o,i){for(var u=t.length,s=[e],a=[];n>=0;)if(0!==s.length){var _s$pop2=_slicedToArray(s.pop(),3),_e36=_s$pop2[0],_c4=_s$pop2[1],_l2=_s$pop2[2];if("string"==typeof _l2)a.push(_l2),n-=Cn(_l2);else if(wn(_l2))for(var _t36=Tn(_l2),_n38=_t36.length-1;_n38>=0;_n38--)s.push([_e36,_c4,_t36[_n38]]);else switch(_l2.type){case"indent":s.push([kn(_e36,r),_c4,_l2.contents]);break;case"align":s.push([Nn(_e36,_l2.n,r),_c4,_l2.contents]);break;case"trim":n+=On(a);break;case"group":if(i&&_l2.break)return!1;var _t37=_l2.break?1:_c4;s.push([_e36,_t37,_l2.expandedStates&&1===_t37?vn(_l2.expandedStates):_l2.contents]),_l2.id&&(Bn[_l2.id]=_t37);break;case"fill":for(var _t38=_l2.parts.length-1;_t38>=0;_t38--)s.push([_e36,_c4,_l2.parts[_t38]]);break;case"if-break":case"indent-if-break":var _t39=_l2.groupId?Bn[_l2.groupId]:_c4;if(1===_t39){var _t40="if-break"===_l2.type?_l2.breakContents:_l2.negate?_l2.contents:Sn(_l2.contents);_t40&&s.push([_e36,_c4,_t40])}if(2===_t39){var _t41="if-break"===_l2.type?_l2.flatContents:_l2.negate?Sn(_l2.contents):_l2.contents;_t41&&s.push([_e36,_c4,_t41])}break;case"line":switch(_c4){case 2:if(!_l2.hard){_l2.soft||(a.push(" "),n-=1);break}return!0;case 1:return!0}break;case"line-suffix":o=!0;break;case"line-suffix-boundary":if(o)return!1;break;case"label":s.push([_e36,_c4,_l2.contents])}}else{if(0===u)return!0;s.push(t[u-1]),u--}return!1}var jn={printDocToString:function printDocToString(e,t){Bn={};for(var n=t.printWidth,r=An(t.endOfLine),o=0,i=[[{value:"",length:0,queue:[]},1,e]],u=[],s=!1,a=[];i.length>0;){var _i$pop2=_slicedToArray(i.pop(),3),_e37=_i$pop2[0],_c5=_i$pop2[1],_l3=_i$pop2[2];if("string"==typeof _l3){var _e38="\n"!==r?_l3.replace(/\n/g,r):_l3;u.push(_e38),o+=Cn(_e38)}else if(wn(_l3))for(var _t42=Tn(_l3),_n39=_t42.length-1;_n39>=0;_n39--)i.push([_e37,_c5,_t42[_n39]]);else switch(_l3.type){case"cursor":u.push(xn.placeholder);break;case"indent":i.push([kn(_e37,t),_c5,_l3.contents]);break;case"align":i.push([Nn(_e37,_l3.n,t),_c5,_l3.contents]);break;case"trim":o-=On(u);break;case"group":switch(_c5){case 2:if(!s){i.push([_e37,_l3.break?1:2,_l3.contents]);break}case 1:s=!1;var _r38=[_e37,2,_l3.contents],_u4=n-o,_c6=a.length>0;if(!_l3.break&&In(_r38,i,_u4,t,_c6))i.push(_r38);else if(_l3.expandedStates){var _n40=vn(_l3.expandedStates);if(_l3.break){i.push([_e37,1,_n40]);break}for(var _r39=1;_r39<_l3.expandedStates.length+1;_r39++){if(_r39>=_l3.expandedStates.length){i.push([_e37,1,_n40]);break}var _n41=[_e37,2,_l3.expandedStates[_r39]];if(In(_n41,i,_u4,t,_c6)){i.push(_n41);break}}}else i.push([_e37,1,_l3.contents])}_l3.id&&(Bn[_l3.id]=vn(i)[1]);break;case"fill":var _r40=n-o,_u5=_l3.parts;if(0===_u5.length)break;var _u6=_slicedToArray(_u5,2),_s15=_u6[0],_p2=_u6[1],_f2=[_e37,2,_s15],_d2=[_e37,1,_s15],_h2=In(_f2,[],_r40,t,a.length>0,!0);if(1===_u5.length){_h2?i.push(_f2):i.push(_d2);break}var _m2=[_e37,2,_p2],_g2=[_e37,1,_p2];if(2===_u5.length){_h2?i.push(_m2,_f2):i.push(_g2,_d2);break}_u5.splice(0,2);var _y2=[_e37,_c5,Fn(_u5)];In([_e37,2,[_s15,_p2,_u5[0]]],[],_r40,t,a.length>0,!0)?i.push(_y2,_m2,_f2):_h2?i.push(_y2,_g2,_f2):i.push(_y2,_g2,_d2);break;case"if-break":case"indent-if-break":var _t43=_l3.groupId?Bn[_l3.groupId]:_c5;if(1===_t43){var _t44="if-break"===_l3.type?_l3.breakContents:_l3.negate?_l3.contents:Sn(_l3.contents);_t44&&i.push([_e37,_c5,_t44])}if(2===_t43){var _t45="if-break"===_l3.type?_l3.flatContents:_l3.negate?Sn(_l3.contents):_l3.contents;_t45&&i.push([_e37,_c5,_t45])}break;case"line-suffix":a.push([_e37,_c5,_l3.contents]);break;case"line-suffix-boundary":a.length>0&&i.push([_e37,_c5,{type:"line",hard:!0}]);break;case"line":switch(_c5){case 2:if(!_l3.hard){_l3.soft||(u.push(" "),o+=1);break}s=!0;case 1:if(a.length>0){i.push.apply(i,[[_e37,_c5,_l3]].concat(_toConsumableArray(a.reverse()))),a=[];break}_l3.literal?_e37.root?(u.push(r,_e37.root.value),o=_e37.root.length):(u.push(r),o=0):(o-=On(u),u.push(r+_e37.value),o=_e37.length)}break;case"label":i.push([_e37,_c5,_l3.contents])}0===i.length&&a.length>0&&(i.push.apply(i,_toConsumableArray(a.reverse())),a=[])}var c=u.indexOf(xn.placeholder);if(-1!==c){var _e39=u.indexOf(xn.placeholder,c+1),_t46=u.slice(0,c).join(""),_n42=u.slice(c+1,_e39).join("");return{formatted:_t46+_n42+u.slice(_e39+1).join(""),cursorNodeStart:_t46.length,cursorNodeText:_n42}}return{formatted:u.join("")}}},Ln=bn.isConcat,_n=bn.getDocParts;function Mn(e){if(!e)return"";if(Ln(e)){var _step17,_t47=[],_iterator17=_createForOfIteratorHelper(_n(e));try{for(_iterator17.s();!(_step17=_iterator17.n()).done;){var _n43=_step17.value;if(Ln(_n43))_t47.push.apply(_t47,_toConsumableArray(Mn(_n43).parts));else{var _e40=Mn(_n43);""!==_e40&&_t47.push(_e40)}}}catch(err){_iterator17.e(err)}finally{_iterator17.f()}return{type:"concat",parts:_t47}}return"if-break"===e.type?Object.assign({},e,{breakContents:Mn(e.breakContents),flatContents:Mn(e.flatContents)}):"group"===e.type?Object.assign({},e,{contents:Mn(e.contents),expandedStates:e.expandedStates&&e.expandedStates.map(Mn)}):"fill"===e.type?{type:"fill",parts:e.parts.map(Mn)}:e.contents?Object.assign({},e,{contents:Mn(e.contents)}):e}var Rn={builders:Ce,printer:jn,utils:bn,debug:{printDocToDebug:function printDocToDebug(e){var t=Object.create(null),n=new Set;return function e(t,n,o){if("string"==typeof t)return JSON.stringify(t);if(Ln(t)){var _n44=_n(t).map(e).filter(Boolean);return 1===_n44.length?_n44[0]:"[".concat(_n44.join(", "),"]")}if("line"===t.type){var _e41=Array.isArray(o)&&o[n+1]&&"break-parent"===o[n+1].type;return t.literal?_e41?"literalline":"literallineWithoutBreakParent":t.hard?_e41?"hardline":"hardlineWithoutBreakParent":t.soft?"softline":"line"}if("break-parent"===t.type)return Array.isArray(o)&&o[n-1]&&"line"===o[n-1].type&&o[n-1].hard?void 0:"breakParent";if("trim"===t.type)return"trim";if("indent"===t.type)return"indent("+e(t.contents)+")";if("align"===t.type)return t.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+e(t.contents)+")":t.n<0?"dedent("+e(t.contents)+")":"root"===t.n.type?"markAsRoot("+e(t.contents)+")":"align("+JSON.stringify(t.n)+", "+e(t.contents)+")";if("if-break"===t.type)return"ifBreak("+e(t.breakContents)+(t.flatContents?", "+e(t.flatContents):"")+(t.groupId?(t.flatContents?"":', ""')+", { groupId: ".concat(r(t.groupId)," }"):"")+")";if("indent-if-break"===t.type){var _n45=[];t.negate&&_n45.push("negate: true"),t.groupId&&_n45.push("groupId: ".concat(r(t.groupId)));var _o11=_n45.length>0?", { ".concat(_n45.join(", ")," }"):"";return"indentIfBreak(".concat(e(t.contents)).concat(_o11,")")}if("group"===t.type){var _n46=[];t.break&&"propagated"!==t.break&&_n46.push("shouldBreak: true"),t.id&&_n46.push("id: ".concat(r(t.id)));var _o12=_n46.length>0?", { ".concat(_n46.join(", ")," }"):"";return t.expandedStates?"conditionalGroup([".concat(t.expandedStates.map((function(t){return e(t)})).join(","),"]").concat(_o12,")"):"group(".concat(e(t.contents)).concat(_o12,")")}if("fill"===t.type)return"fill([".concat(t.parts.map((function(t){return e(t)})).join(", "),"])");if("line-suffix"===t.type)return"lineSuffix("+e(t.contents)+")";if("line-suffix-boundary"===t.type)return"lineSuffixBoundary";if("label"===t.type)return"label(".concat(JSON.stringify(t.label),", ").concat(e(t.contents),")");throw new Error("Unknown doc type "+t.type)}(Mn(e));function r(e){if("symbol"!=_typeof(e))return JSON.stringify(String(e));if(e in t)return t[e];for(var r=String(e).slice(7,-1)||"symbol",_o13=0;;_o13++){var _i11=r+(_o13>0?" #".concat(_o13):"");if(!n.has(_i11))return n.add(_i11),t[e]="Symbol.for(".concat(JSON.stringify(_i11),")")}}}}},Vn=Object.freeze({__proto__:null,default:{}});function $n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var qn=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,Wn=function Wn(e){return qn.exec(e).slice(1)};function Un(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:"/";if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r.charAt(0))}return(t?"/":"")+(e=$n(Zn(e.split("/"),(function(e){return!!e})),!t).join("/"))||"."}function zn(e){var t=Hn(e),n="/"===er(e,-1);return(e=$n(Zn(e.split("/"),(function(e){return!!e})),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e}function Hn(e){return"/"===e.charAt(0)}function Gn(){return zn(Zn(Array.prototype.slice.call(arguments,0),(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))}function Jn(e,t){function n(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=Un(e).substr(1),t=Un(t).substr(1);for(var r=n(e.split("/")),o=n(t.split("/")),i=Math.min(r.length,o.length),u=i,s=0;s>18&63]+nr[o>>12&63]+nr[o>>6&63]+nr[63&o]);return i.join("")}function ar(e){var t;ir||ur();for(var n=e.length,r=n%3,o="",i=[],u=16383,s=0,a=n-r;sa?a:s+u));return 1===r?(t=e[n-1],o+=nr[t>>2],o+=nr[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=nr[t>>10],o+=nr[t>>4&63],o+=nr[t<<2&63],o+="="),i.push(o),i.join("")}function cr(e,t,n,r,o){var i,u,s=8*o-r-1,a=(1<>1,l=-7,p=n?o-1:0,f=n?-1:1,d=e[t+p];for(p+=f,i=d&(1<<-l)-1,d>>=-l,l+=s;l>0;i=256*i+e[t+p],p+=f,l-=8);for(u=i&(1<<-l)-1,i>>=-l,l+=r;l>0;u=256*u+e[t+p],p+=f,l-=8);if(0===i)i=1-c;else{if(i===a)return u?NaN:1/0*(d?-1:1);u+=Math.pow(2,r),i-=c}return(d?-1:1)*u*Math.pow(2,i-r)}function lr(e,t,n,r,o,i){var u,s,a,c=8*i-o-1,l=(1<>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,u=l):(u=Math.floor(Math.log(t)/Math.LN2),t*(a=Math.pow(2,-u))<1&&(u--,a*=2),(t+=u+p>=1?f/a:f*Math.pow(2,1-p))*a>=2&&(u++,a/=2),u+p>=l?(s=0,u=l):u+p>=1?(s=(t*a-1)*Math.pow(2,o),u+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,o),u=0));o>=8;e[n+d]=255&s,d+=h,s/=256,o-=8);for(u=u<0;e[n+d]=255&u,d+=h,u/=256,c-=8);e[n+d-h]|=128*m}var pr={}.toString,fr=Array.isArray||function(e){return"[object Array]"==pr.call(e)};function dr(){return mr.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function hr(e,t){if(dr()=dr())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+dr().toString(16)+" bytes");return 0|e}function Cr(e){return!(null==e||!e._isBuffer)}function vr(e,t){if(Cr(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Xr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Yr(e).length;default:if(r)return Xr(e).length;t=(""+t).toLowerCase(),r=!0}}function Ar(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Mr(this,t,n);case"utf8":case"utf-8":return Ir(this,t,n);case"ascii":return Lr(this,t,n);case"latin1":case"binary":return _r(this,t,n);case"base64":return Or(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Rr(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Fr(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function xr(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=mr.from(t,r)),Cr(t))return 0===t.length?-1:Sr(e,t,n,r,o);if("number"==typeof t)return t&=255,mr.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Sr(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function Sr(e,t,n,r,o){var i,u=1,s=e.length,a=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;u=2,s/=2,a/=2,n/=2}function c(e,t){return 1===u?e[t]:e.readUInt16BE(t*u)}if(o){var l=-1;for(i=n;is&&(n=s-a),i=n;i>=0;i--){for(var p=!0,f=0;fo&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var u=0;u>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function Or(e,t,n){return 0===t&&n===e.length?ar(e):ar(e.slice(t,n))}function Ir(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:c>223?3:c>191?2:1;if(o+p<=n)switch(p){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(a=(31&c)<<6|63&i)>127&&(l=a);break;case 3:i=e[o+1],u=e[o+2],128==(192&i)&&128==(192&u)&&(a=(15&c)<<12|(63&i)<<6|63&u)>2047&&(a<55296||a>57343)&&(l=a);break;case 4:i=e[o+1],u=e[o+2],s=e[o+3],128==(192&i)&&128==(192&u)&&128==(192&s)&&(a=(15&c)<<18|(63&i)<<12|(63&u)<<6|63&s)>65535&&a<1114112&&(l=a)}null===l?(l=65533,p=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=p}return function(e){var t=e.length;if(t<=jr)return String.fromCharCode.apply(String,e);for(var n="",r=0;r0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},mr.prototype.compare=function(e,t,n,r,o){if(!Cr(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),u=(n>>>=0)-(t>>>=0),s=Math.min(i,u),a=this.slice(r,o),c=e.slice(t,n),l=0;lo)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return wr(this,e,t,n);case"utf8":case"utf-8":return Tr(this,e,t,n);case"ascii":return Br(this,e,t,n);case"latin1":case"binary":return kr(this,e,t,n);case"base64":return Nr(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pr(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},mr.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var jr=4096;function Lr(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;or)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function $r(e,t,n,r,o,i){if(!Cr(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function qr(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function Wr(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function Ur(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function zr(e,t,n,r,o){return o||Ur(e,0,n,4),lr(e,t,n,r,23,4),n+4}function Hr(e,t,n,r,o){return o||Ur(e,0,n,8),lr(e,t,n,r,52,8),n+8}mr.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},mr.prototype.readUInt8=function(e,t){return t||Vr(e,1,this.length),this[e]},mr.prototype.readUInt16LE=function(e,t){return t||Vr(e,2,this.length),this[e]|this[e+1]<<8},mr.prototype.readUInt16BE=function(e,t){return t||Vr(e,2,this.length),this[e]<<8|this[e+1]},mr.prototype.readUInt32LE=function(e,t){return t||Vr(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},mr.prototype.readUInt32BE=function(e,t){return t||Vr(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},mr.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Vr(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},mr.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Vr(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},mr.prototype.readInt8=function(e,t){return t||Vr(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},mr.prototype.readInt16LE=function(e,t){t||Vr(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},mr.prototype.readInt16BE=function(e,t){t||Vr(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},mr.prototype.readInt32LE=function(e,t){return t||Vr(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},mr.prototype.readInt32BE=function(e,t){return t||Vr(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},mr.prototype.readFloatLE=function(e,t){return t||Vr(e,4,this.length),cr(this,e,!0,23,4)},mr.prototype.readFloatBE=function(e,t){return t||Vr(e,4,this.length),cr(this,e,!1,23,4)},mr.prototype.readDoubleLE=function(e,t){return t||Vr(e,8,this.length),cr(this,e,!0,52,8)},mr.prototype.readDoubleBE=function(e,t){return t||Vr(e,8,this.length),cr(this,e,!1,52,8)},mr.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||$r(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+n},mr.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||$r(this,e,t,1,255,0),mr.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},mr.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||$r(this,e,t,2,65535,0),mr.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):qr(this,e,t,!0),t+2},mr.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||$r(this,e,t,2,65535,0),mr.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):qr(this,e,t,!1),t+2},mr.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||$r(this,e,t,4,4294967295,0),mr.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Wr(this,e,t,!0),t+4},mr.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||$r(this,e,t,4,4294967295,0),mr.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Wr(this,e,t,!1),t+4},mr.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);$r(this,e,t,n,o-1,-o)}var i=0,u=1,s=0;for(this[t]=255&e;++i=0&&(u*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/u|0)-s&255;return t+n},mr.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||$r(this,e,t,1,127,-128),mr.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},mr.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||$r(this,e,t,2,32767,-32768),mr.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):qr(this,e,t,!0),t+2},mr.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||$r(this,e,t,2,32767,-32768),mr.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):qr(this,e,t,!1),t+2},mr.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||$r(this,e,t,4,2147483647,-2147483648),mr.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Wr(this,e,t,!0),t+4},mr.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||$r(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),mr.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Wr(this,e,t,!1),t+4},mr.prototype.writeFloatLE=function(e,t,n){return zr(this,e,t,!0,n)},mr.prototype.writeFloatBE=function(e,t,n){return zr(this,e,t,!1,n)},mr.prototype.writeDoubleLE=function(e,t,n){return Hr(this,e,t,!0,n)},mr.prototype.writeDoubleBE=function(e,t,n){return Hr(this,e,t,!1,n)},mr.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(i<1e3||!mr.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(u+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function Yr(e){return function(e){var t,n,r,o,i,u;ir||ur();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===e[s-2]?2:"="===e[s-1]?1:0,u=new or(3*s/4-i),r=i>0?s-4:s;var a=0;for(t=0,n=0;t>16&255,u[a++]=o>>8&255,u[a++]=255&o;return 2===i?(o=rr[e.charCodeAt(t)]<<2|rr[e.charCodeAt(t+1)]>>4,u[a++]=255&o):1===i&&(o=rr[e.charCodeAt(t)]<<10|rr[e.charCodeAt(t+1)]<<4|rr[e.charCodeAt(t+2)]>>2,u[a++]=o>>8&255,u[a++]=255&o),u}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Gr,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Kr(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Qr(e){return null!=e&&(!!e._isBuffer||Zr(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Zr(e.slice(0,0))}(e))}function Zr(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var eo=o(Vn),to=function(){function to(e,t){_classCallCheck(this,to),(t=t||{}).readChunk||(t.readChunk=1024),t.newLineCharacter?t.newLineCharacter=t.newLineCharacter.charCodeAt(0):t.newLineCharacter=10,this.fd="number"==typeof e?e:eo.openSync(e,"r"),this.options=t,this.newLineCharacter=t.newLineCharacter,this.reset()}return _createClass(to,[{key:"_searchInBuffer",value:function _searchInBuffer(e,t){for(var n=-1,_r41=0;_r41<=e.length;_r41++)if(e[_r41]===t){n=_r41;break}return n}},{key:"reset",value:function reset(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}},{key:"close",value:function close(){eo.closeSync(this.fd),this.fd=null}},{key:"_extractLines",value:function _extractLines(e){for(var t,n=[],r=0,o=0;;){var _i12=e[r++];if(_i12===this.newLineCharacter)t=e.slice(o,r),n.push(t),o=r;else if(void 0===_i12)break}var i=e.slice(o,r);return i.length&&n.push(i),n}},{key:"_readChunk",value:function _readChunk(e){var t,n=0,r=[];do{var _e42=new mr(this.options.readChunk);n+=t=eo.readSync(this.fd,_e42,0,this.options.readChunk,this.fdPosition),this.fdPosition=this.fdPosition+t,r.push(_e42)}while(t&&-1===this._searchInBuffer(r[r.length-1],this.options.newLineCharacter));var o=mr.concat(r);return t=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function lo(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}function po(e){return this instanceof po?(this.v=e,this):new po(e)}var fo=Object.freeze({__proto__:null,__extends:function __extends(e,t){function n(){this.constructor=e}_so(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},get __assign(){return _ao},__rest:function __rest(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=0;s--)(o=e[s])&&(u=(i<3?o(u):i>3?o(t,n,u):o(t,n))||u);return i>3&&u&&Object.defineProperty(t,n,u),u},__param:function __param(e,t){return function(n,r){t(n,r,e)}},__metadata:function __metadata(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function __awaiter(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{a(r.next(e))}catch(e){i(e)}}function s(e){try{a(r.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,s)}a((r=r.apply(e,t||[])).next())}))},__generator:function __generator(e,t){var n,r,o,i,u={label:0,sent:function sent(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof po?Promise.resolve(n.value.v).then(a,c):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function a(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}},__asyncDelegator:function __asyncDelegator(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:po(e[r](t)),done:"return"===r}:o?o(t):t}:o}},__asyncValues:function __asyncValues(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=co(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}},__makeTemplateObject:function __makeTemplateObject(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function __importStar(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},__importDefault:function __importDefault(e){return e&&e.__esModule?e:{default:e}},__classPrivateFieldGet:function __classPrivateFieldGet(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},__classPrivateFieldSet:function __classPrivateFieldSet(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}}),ho=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.apiDescriptor={key:function key(e){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e)},value:function value(e){if(null===e||"object"!=_typeof(e))return JSON.stringify(e);if(Array.isArray(e))return"[".concat(e.map((function(e){return t.apiDescriptor.value(e)})).join(", "),"]");var n=Object.keys(e);return 0===n.length?"{}":"{ ".concat(n.map((function(n){return"".concat(t.apiDescriptor.key(n),": ").concat(t.apiDescriptor.value(e[n]))})).join(", ")," }")},pair:function pair(_ref36){var e=_ref36.key,n=_ref36.value;return t.apiDescriptor.value(_defineProperty({},e,n))}}})),mo=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),fo.__exportStar(ho,t)})),go=/[|\\{}()[\]^$+*?.]/g,yo=function yo(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(go,"\\$&")},Do={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]},Eo=i((function(e){var t={};for(var n in Do)Do.hasOwnProperty(n)&&(t[Do[n]]=n);var r=e.exports={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"]}};for(var o in r)if(r.hasOwnProperty(o)){if(!("channels"in r[o]))throw new Error("missing channels property: "+o);if(!("labels"in r[o]))throw new Error("missing channel labels property: "+o);if(r[o].labels.length!==r[o].channels)throw new Error("channel and label counts mismatch: "+o);var i=r[o].channels,u=r[o].labels;delete r[o].channels,delete r[o].labels,Object.defineProperty(r[o],"channels",{value:i}),Object.defineProperty(r[o],"labels",{value:u})}r.rgb.hsl=function(e){var t,n,r=e[0]/255,o=e[1]/255,i=e[2]/255,u=Math.min(r,o,i),s=Math.max(r,o,i),a=s-u;return s===u?t=0:r===s?t=(o-i)/a:o===s?t=2+(i-r)/a:i===s&&(t=4+(r-o)/a),(t=Math.min(60*t,360))<0&&(t+=360),n=(u+s)/2,[t,100*(s===u?0:n<=.5?a/(s+u):a/(2-s-u)),100*n]},r.rgb.hsv=function(e){var t,n,r,o,i,u=e[0]/255,s=e[1]/255,a=e[2]/255,c=Math.max(u,s,a),l=c-Math.min(u,s,a),p=function p(e){return(c-e)/6/l+.5};return 0===l?o=i=0:(i=l/c,t=p(u),n=p(s),r=p(a),u===c?o=r-n:s===c?o=1/3+t-r:a===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*c]},r.rgb.hwb=function(e){var t=e[0],n=e[1],o=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,o))*100,100*(o=1-1/255*Math.max(t,Math.max(n,o)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-o)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},r.rgb.keyword=function(e){var n=t[e];if(n)return n;var r,o,i,u=1/0;for(var s in Do)if(Do.hasOwnProperty(s)){var c=(o=e,i=Do[s],Math.pow(o[0]-i[0],2)+Math.pow(o[1]-i[1],2)+Math.pow(o[2]-i[2],2));c.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],o=t[1],i=t[2];return o/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116)-16,500*(n-o),200*(o-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},r.hsl.rgb=function(e){var t,n,r,o,i,u=e[0]/360,s=e[1]/100,a=e[2]/100;if(0===s)return[i=255*a,i,i];t=2*a-(n=a<.5?a*(1+s):a+s-a*s),o=[0,0,0];for(var c=0;c<3;c++)(r=u+1/3*-(c-1))<0&&r++,r>1&&r--,i=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,o[c]=255*i;return o},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,o=n,i=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,o*=i<=1?i:2-i,[t,100*(0===r?2*o/(i+o):2*n/(r+n)),(r+n)/2*100]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),u=255*r*(1-n),s=255*r*(1-n*i),a=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,a,u];case 1:return[s,r,u];case 2:return[u,r,a];case 3:return[u,s,r];case 4:return[a,u,r];case 5:return[r,u,s]}},r.hsv.hsl=function(e){var t,n,r,o=e[0],i=e[1]/100,u=e[2]/100,s=Math.max(u,.01);return r=(2-i)*u,n=i*s,[o,100*(n=(n/=(t=(2-i)*s)<=1?t:2-t)||0),100*(r/=2)]},r.hwb.rgb=function(e){var t,n,r,o,i,u,s,a=e[0]/360,c=e[1]/100,l=e[2]/100,p=c+l;switch(p>1&&(c/=p,l/=p),r=6*a-(t=Math.floor(6*a)),!!(1&t)&&(r=1-r),o=c+r*((n=1-l)-c),t){default:case 6:case 0:i=n,u=o,s=c;break;case 1:i=o,u=n,s=c;break;case 2:i=c,u=n,s=o;break;case 3:i=c,u=o,s=n;break;case 4:i=o,u=c,s=n;break;case 5:i=n,u=c,s=o}return[255*i,255*u,255*s]},r.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},r.xyz.rgb=function(e){var t,n,r,o=e[0]/100,i=e[1]/100,u=e[2]/100;return n=-.9689*o+1.8758*i+.0415*u,r=.0557*o+-.204*i+1.057*u,t=(t=3.2406*o+-1.5372*i+-.4986*u)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},r.lab.xyz=function(e){var t,n,r,o=e[0];t=e[1]/500+(n=(o+16)/116),r=n-e[2]/200;var i=Math.pow(n,3),u=Math.pow(t,3),s=Math.pow(r,3);return n=i>.008856?i:(n-16/116)/7.787,t=u>.008856?u:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},r.lab.lch=function(e){var t,n=e[0],r=e[1],o=e[2];return(t=360*Math.atan2(o,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+o*o),t]},r.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],o=e[2],i=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var u=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(u+=60),u},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var 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)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var 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},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},r.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255,i=Math.max(Math.max(n,r),o),u=Math.min(Math.min(n,r),o),s=i-u;return t=s<=0?0:i===n?(r-o)/s%6:i===r?2+(o-n)/s:4+(n-r)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?u/(1-s):0)]},r.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,o=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},r.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var o,i=[0,0,0],u=t%1*6,s=u%1,a=1-s;switch(Math.floor(u)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return o=(1-n)*r,[255*(n*i[0]+o),255*(n*i[1]+o),255*(n*i[2]+o)]},r.hcg.hsv=function(e){var 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]},r.hcg.hsl=function(e){var 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]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function bo(e){var t=function(){for(var e={},t=Object.keys(Eo),n=t.length,r=0;r1&&(_t48=Array.prototype.slice.call(arguments));var n=e(_t48);if("object"==_typeof(n))for(var r=n.length,o=0;o1&&(_t49=Array.prototype.slice.call(arguments)),e(_t49))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var Fo,xo=Ao,So=i((function(e){var t=function t(e,_t50){return function(){var n=e.apply(xo,arguments);return"[".concat(n+_t50,"m")}},n=function n(e,t){return function(){var n=e.apply(xo,arguments);return"[".concat(38+t,";5;").concat(n,"m")}},r=function r(e,t){return function(){var n=e.apply(xo,arguments);return"[".concat(38+t,";2;").concat(n[0],";").concat(n[1],";").concat(n[2],"m")}};Object.defineProperty(e,"exports",{enumerable:!0,get:function get(){var e=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.grey=o.color.gray;for(var _i13=0,_Object$keys=Object.keys(o);_i13<_Object$keys.length;_i13++){for(var _t51=_Object$keys[_i13],_n47=o[_t51],_i14=0,_Object$keys2=Object.keys(_n47);_i14<_Object$keys2.length;_i14++){var _t52=_Object$keys2[_i14],_r42=_n47[_t52];o[_t52]={open:"[".concat(_r42[0],"m"),close:"[".concat(_r42[1],"m")},_n47[_t52]=o[_t52],e.set(_r42[0],_r42[1])}Object.defineProperty(o,_t51,{value:_n47,enumerable:!1}),Object.defineProperty(o,"codes",{value:e,enumerable:!1})}var i=function i(e){return e},u=function u(e,t,n){return[e,t,n]};o.color.close="",o.bgColor.close="",o.color.ansi={ansi:t(i,0)},o.color.ansi256={ansi256:n(i,0)},o.color.ansi16m={rgb:r(u,0)},o.bgColor.ansi={ansi:t(i,10)},o.bgColor.ansi256={ansi256:n(i,10)},o.bgColor.ansi16m={rgb:r(u,10)};for(var _i15=0,_Object$keys3=Object.keys(xo);_i15<_Object$keys3.length;_i15++){var _e43=_Object$keys3[_i15];if("object"==_typeof(xo[_e43])){var _i16=xo[_e43];"ansi16"===_e43&&(_e43="ansi"),"ansi16"in _i16&&(o.color.ansi[_e43]=t(_i16.ansi16,0),o.bgColor.ansi[_e43]=t(_i16.ansi16,10)),"ansi256"in _i16&&(o.color.ansi256[_e43]=n(_i16.ansi256,0),o.bgColor.ansi256[_e43]=n(_i16.ansi256,10)),"rgb"in _i16&&(o.color.ansi16m[_e43]=r(_i16.rgb,0),o.bgColor.ansi16m[_e43]=r(_i16.rgb,10))}}return o}})}));function wo(){if(void 0===Fo){var e=new ArrayBuffer(2),t=new Uint8Array(e),n=new Uint16Array(e);if(t[0]=1,t[1]=2,258===n[0])Fo="BE";else{if(513!==n[0])throw new Error("unable to figure out endianess");Fo="LE"}}return Fo}function To(){return void 0!==Pe.location?Pe.location.hostname:""}function Bo(){return[]}function ko(){return 0}function No(){return Number.MAX_VALUE}function Po(){return Number.MAX_VALUE}function Oo(){return[]}function Io(){return"Browser"}function jo(){return void 0!==Pe.navigator?Pe.navigator.appVersion:""}function Lo(){}function _o(){}function Mo(){return"javascript"}function Ro(){return"browser"}function Vo(){return"/tmp"}var Ho,$o=Vo,qo={EOL:"\n",arch:Mo,platform:Ro,tmpdir:$o,tmpDir:Vo,networkInterfaces:Lo,getNetworkInterfaces:_o,release:jo,type:Io,cpus:Oo,totalmem:Po,freemem:No,uptime:ko,loadavg:Bo,hostname:To,endianness:wo},Wo=function Wo(e,t){t=t||nt.argv;var n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),o=t.indexOf("--");return-1!==r&&(-1===o||r=2,has16m:e>=3}}(function(e){if(!1===Ho)return 0;if(Wo("color=16m")||Wo("color=full")||Wo("color=truecolor"))return 3;if(Wo("color=256"))return 2;if(e&&!e.isTTY&&!0!==Ho)return 0;var t=Ho?1:0;if("CI"in zo)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(e){return e in zo}))||"codeship"===zo.CI_NAME?1:t;if("TEAMCITY_VERSION"in zo)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(zo.TEAMCITY_VERSION)?1:0;if("truecolor"===zo.COLORTERM)return 3;if("TERM_PROGRAM"in zo){var _e44=parseInt((zo.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(zo.TERM_PROGRAM){case"iTerm.app":return _e44>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(zo.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(zo.TERM)||"COLORTERM"in zo?1:(zo.TERM,t)}(e))}Wo("no-color")||Wo("no-colors")||Wo("color=false")?Ho=!1:(Wo("color")||Wo("colors")||Wo("color=true")||Wo("color=always"))&&(Ho=!0),"FORCE_COLOR"in zo&&(Ho=0===zo.FORCE_COLOR.length||0!==parseInt(zo.FORCE_COLOR,10));var Jo={supportsColor:Go,stdout:Go(nt.stdout),stderr:Go(nt.stderr)},Xo=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Yo=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Ko=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Qo=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Zo=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function ei(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):Zo.get(e)||e}function ti(e,t){var o,_step18,n=[],_iterator18=_createForOfIteratorHelper(t.trim().split(/\s*,\s*/g));try{for(_iterator18.s();!(_step18=_iterator18.n()).done;){var _t53=_step18.value;if(isNaN(_t53)){if(!(o=_t53.match(Ko)))throw new Error("Invalid Chalk template style argument: ".concat(_t53," (in style '").concat(e,"')"));n.push(o[2].replace(Qo,(function(e,t,n){return t?ei(t):n})))}else n.push(Number(_t53))}}catch(err){_iterator18.e(err)}finally{_iterator18.f()}return n}function ni(e){Yo.lastIndex=0;for(var n,t=[];null!==(n=Yo.exec(e));){var _e45=n[1];if(n[2]){var _r43=ti(_e45,n[2]);t.push([_e45].concat(_r43))}else t.push([_e45])}return t}function ri(e,t){var _step19,n={},_iterator19=_createForOfIteratorHelper(t);try{for(_iterator19.s();!(_step19=_iterator19.n()).done;){var _step20,_e47=_step19.value,_iterator20=_createForOfIteratorHelper(_e47.styles);try{for(_iterator20.s();!(_step20=_iterator20.n()).done;){var _t54=_step20.value;n[_t54[0]]=_e47.inverse?null:_t54.slice(1)}}catch(err){_iterator20.e(err)}finally{_iterator20.f()}}}catch(err){_iterator19.e(err)}finally{_iterator19.f()}for(var r=e,_i17=0,_Object$keys4=Object.keys(n);_i17<_Object$keys4.length;_i17++){var _e46=_Object$keys4[_i17];if(Array.isArray(n[_e46])){if(!(_e46 in r))throw new Error("Unknown Chalk style: ".concat(_e46));r=n[_e46].length>0?r[_e46].apply(r,n[_e46]):r[_e46]}}return r}var oi=function oi(e,t){var n=[],r=[],o=[];if(t.replace(Xo,(function(t,i,u,s,a,c){if(i)o.push(ei(i));else if(s){var _t55=o.join("");o=[],r.push(0===n.length?_t55:ri(e,n)(_t55)),n.push({inverse:u,styles:ni(s)})}else if(a){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(ri(e,n)(o.join(""))),o=[],n.pop()}else o.push(c)})),r.push(o.join("")),n.length>0){var _e48="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(_e48)}return r.join("")},ii=i((function(e){var t=Jo.stdout,r=["ansi","ansi","ansi256","ansi16m"],o=new Set(["gray"]),i=Object.create(null);function u(e,n){n=n||{};var r=t?t.level:0;e.level=void 0===n.level?r:n.level,e.enabled="enabled"in n?n.enabled:e.level>0}function s(e){if(!this||!(this instanceof s)||this.template){var _t56={};return u(_t56,e),_t56.template=function(){var e=[].slice.call(arguments);return p.apply(null,[_t56.template].concat(e))},Object.setPrototypeOf(_t56,s.prototype),Object.setPrototypeOf(_t56.template,_t56),_t56.template.constructor=s,_t56.template}u(this,e)}for(var _loop3=function _loop3(){var e=_Object$keys5[_i18];So[e].closeRe=new RegExp(yo(So[e].close),"g"),i[e]={get:function get(){var t=So[e];return c.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}}},_i18=0,_Object$keys5=Object.keys(So);_i18<_Object$keys5.length;_i18++)_loop3();i.visible={get:function get(){return c.call(this,this._styles||[],!0,"visible")}},So.color.closeRe=new RegExp(yo(So.color.close),"g");for(var _loop4=function _loop4(){var e=_Object$keys6[_i19];o.has(e)||(i[e]={get:function get(){var t=this.level;return function(){var o={open:So.color[r[t]][e].apply(null,arguments),close:So.color.close,closeRe:So.color.closeRe};return c.call(this,this._styles?this._styles.concat(o):[o],this._empty,e)}}})},_i19=0,_Object$keys6=Object.keys(So.color.ansi);_i19<_Object$keys6.length;_i19++)_loop4();So.bgColor.closeRe=new RegExp(yo(So.bgColor.close),"g");for(var _loop5=function _loop5(){var e=_Object$keys7[_i20];if(o.has(e))return"continue";i["bg"+e[0].toUpperCase()+e.slice(1)]={get:function get(){var t=this.level;return function(){var o={open:So.bgColor[r[t]][e].apply(null,arguments),close:So.bgColor.close,closeRe:So.bgColor.closeRe};return c.call(this,this._styles?this._styles.concat(o):[o],this._empty,e)}}}},_i20=0,_Object$keys7=Object.keys(So.bgColor.ansi);_i20<_Object$keys7.length;_i20++)_loop5();var a=Object.defineProperties((function(){}),i);function c(e,t,n){var r=function r(){return l.apply(r,arguments)};r._styles=e,r._empty=t;var o=this;return Object.defineProperty(r,"level",{enumerable:!0,get:function get(){return o.level},set:function set(e){o.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:function get(){return o.enabled},set:function set(e){o.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=a,r}function l(){var e=arguments,t=e.length,r=String(arguments[0]);if(0===t)return"";if(t>1)for(var _n48=1;_n48t.length&&(e=t,t=n);var r=e.length,o=t.length;if(0===r)return o;if(0===o)return r;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-o);)r--,o--;if(0===r)return o;for(var i,u,s,a,c=0;cu?a>u?u+1:a:a>s?s+1:a;return u}(e,t)<3}));u&&i.push("Did you mean ".concat(ii.default.blue(n.key(u)),"?")),r.warn(i.join(" "))}},"__esModule",{value:!0}),di=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),fo.__exportStar(fi,t)})),hi=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),fo.__exportStar(si,t),fo.__exportStar(ci,t),fo.__exportStar(di,t)})),mi=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function gi(e,t){var _step22,n=new e(t),r=Object.create(n),_iterator22=_createForOfIteratorHelper(mi);try{for(_iterator22.s();!(_step22=_iterator22.n()).done;){var _e51=_step22.value;_e51 in t&&(r[_e51]=bi(t[_e51],n,Di.prototype[_e51].length))}}catch(err){_iterator22.e(err)}finally{_iterator22.f()}return r}var yi=gi,Di=function(){function Di(e){_classCallCheck(this,Di),this.name=e.name}return _createClass(Di,[{key:"default",value:function _default(e){}},{key:"expected",value:function expected(e){return"nothing"}},{key:"validate",value:function validate(e,t){return!1}},{key:"deprecated",value:function deprecated(e,t){return!1}},{key:"forward",value:function forward(e,t){}},{key:"redirect",value:function redirect(e,t){}},{key:"overlap",value:function overlap(e,t,n){return e}},{key:"preprocess",value:function preprocess(e,t){return e}},{key:"postprocess",value:function postprocess(e,t){return e}}],[{key:"create",value:function create(e){return gi(this,e)}}]),Di}(),Ei=Di;function bi(e,t,n){return"function"==typeof e?function(){for(var _len5=arguments.length,r=new Array(_len5),_key5=0;_key5<_len5;_key5++)r[_key5]=arguments[_key5];return e.apply(void 0,_toConsumableArray(r.slice(0,n-1)).concat([t],_toConsumableArray(r.slice(n-1))))}:function(){return e}}var Ci=Object.defineProperty({createSchema:yi,Schema:Ei},"__esModule",{value:!0}),vi=function(_Ci$Schema){_inherits(vi,_Ci$Schema);var _super11=_createSuper(vi);function vi(e){var _this13;return _classCallCheck(this,vi),(_this13=_super11.call(this,e))._sourceName=e.sourceName,_this13}return _createClass(vi,[{key:"expected",value:function expected(e){return e.schemas[this._sourceName].expected(e)}},{key:"validate",value:function validate(e,t){return t.schemas[this._sourceName].validate(e,t)}},{key:"redirect",value:function redirect(e,t){return this._sourceName}}]),vi}(Ci.Schema),Ai=vi,Fi=Object.defineProperty({AliasSchema:Ai},"__esModule",{value:!0}),xi=function(_Ci$Schema2){_inherits(xi,_Ci$Schema2);var _super12=_createSuper(xi);function xi(){return _classCallCheck(this,xi),_super12.apply(this,arguments)}return _createClass(xi,[{key:"expected",value:function expected(){return"anything"}},{key:"validate",value:function validate(){return!0}}]),xi}(Ci.Schema),Si=xi,wi=Object.defineProperty({AnySchema:Si},"__esModule",{value:!0}),Ti=function(_Ci$Schema3){_inherits(Ti,_Ci$Schema3);var _super13=_createSuper(Ti);function Ti(e){var _this14;_classCallCheck(this,Ti);var t=e.valueSchema,_e$name=e.name,n=void 0===_e$name?t.name:_e$name,r=fo.__rest(e,["valueSchema","name"]);return(_this14=_super13.call(this,Object.assign({},r,{name:n})))._valueSchema=t,_this14}return _createClass(Ti,[{key:"expected",value:function expected(e){return"an array of ".concat(this._valueSchema.expected(e))}},{key:"validate",value:function validate(e,t){if(!Array.isArray(e))return!1;var _step23,n=[],_iterator23=_createForOfIteratorHelper(e);try{for(_iterator23.s();!(_step23=_iterator23.n()).done;){var _r44=_step23.value,_e52=t.normalizeValidateResult(this._valueSchema.validate(_r44,t),_r44);!0!==_e52&&n.push(_e52.value)}}catch(err){_iterator23.e(err)}finally{_iterator23.f()}return 0===n.length||{value:n}}},{key:"deprecated",value:function deprecated(e,t){var _step24,n=[],_iterator24=_createForOfIteratorHelper(e);try{for(_iterator24.s();!(_step24=_iterator24.n()).done;){var _r45=_step24.value,_e53=t.normalizeDeprecatedResult(this._valueSchema.deprecated(_r45,t),_r45);!1!==_e53&&n.push.apply(n,_toConsumableArray(_e53.map((function(_ref39){return{value:[_ref39.value]}}))))}}catch(err){_iterator24.e(err)}finally{_iterator24.f()}return n}},{key:"forward",value:function forward(e,t){var _step25,n=[],_iterator25=_createForOfIteratorHelper(e);try{for(_iterator25.s();!(_step25=_iterator25.n()).done;){var _r46=_step25.value,_e54=t.normalizeForwardResult(this._valueSchema.forward(_r46,t),_r46);n.push.apply(n,_toConsumableArray(_e54.map(ki)))}}catch(err){_iterator25.e(err)}finally{_iterator25.f()}return n}},{key:"redirect",value:function redirect(e,t){var _step26,n=[],r=[],_iterator26=_createForOfIteratorHelper(e);try{for(_iterator26.s();!(_step26=_iterator26.n()).done;){var _o14=_step26.value,_e55=t.normalizeRedirectResult(this._valueSchema.redirect(_o14,t),_o14);"remain"in _e55&&n.push(_e55.remain),r.push.apply(r,_toConsumableArray(_e55.redirect.map(ki)))}}catch(err){_iterator26.e(err)}finally{_iterator26.f()}return 0===n.length?{redirect:r}:{redirect:r,remain:n}}},{key:"overlap",value:function overlap(e,t){return e.concat(t)}}]),Ti}(Ci.Schema),Bi=Ti;function ki(_ref40){return{from:[_ref40.from],to:_ref40.to}}var Ni=Object.defineProperty({ArraySchema:Bi},"__esModule",{value:!0}),Pi=function(_Ci$Schema4){_inherits(Pi,_Ci$Schema4);var _super14=_createSuper(Pi);function Pi(){return _classCallCheck(this,Pi),_super14.apply(this,arguments)}return _createClass(Pi,[{key:"expected",value:function expected(){return"true or false"}},{key:"validate",value:function validate(e){return"boolean"==typeof e}}]),Pi}(Ci.Schema),Oi=Pi,Ii=Object.defineProperty({BooleanSchema:Oi},"__esModule",{value:!0}),ji=function ji(e,t){var _step27,n=Object.create(null),_iterator27=_createForOfIteratorHelper(e);try{for(_iterator27.s();!(_step27=_iterator27.n()).done;){var _r47=_step27.value,_e56=_r47[t];if(n[_e56])throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(_e56)));n[_e56]=_r47}}catch(err){_iterator27.e(err)}finally{_iterator27.f()}return n},Li=function Li(e,t){var _step28,n=new Map,_iterator28=_createForOfIteratorHelper(e);try{for(_iterator28.s();!(_step28=_iterator28.n()).done;){var _r48=_step28.value,_e57=_r48[t];if(n.has(_e57))throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(_e57)));n.set(_e57,_r48)}}catch(err){_iterator28.e(err)}finally{_iterator28.f()}return n},_i=function _i(){var e=Object.create(null);return function(t){var n=JSON.stringify(t);return!!e[n]||(e[n]=!0,!1)}},Mi=function Mi(e,t){var _step29,n=[],r=[],_iterator29=_createForOfIteratorHelper(e);try{for(_iterator29.s();!(_step29=_iterator29.n()).done;){var _o15=_step29.value;t(_o15)?n.push(_o15):r.push(_o15)}}catch(err){_iterator29.e(err)}finally{_iterator29.f()}return[n,r]},Ri=function Ri(e){return e===Math.floor(e)},Vi=function Vi(e,t){if(e===t)return 0;var n=_typeof(e),r=_typeof(t),o=["undefined","object","boolean","number","string"];return n!==r?o.indexOf(n)-o.indexOf(r):"string"!==n?Number(e)-Number(t):e.localeCompare(t)},$i=function $i(e){return void 0===e?{}:e},qi=function qi(e,t){return!0===e||(!1===e?{value:t}:e)},Wi=function Wi(e,t){return!1!==e&&(!0===e?!!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])||[{value:t}]:"value"in e?[e]:0!==e.length&&e)};function Ui(e,t){return"string"==typeof e||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}var zi=Ui;function Hi(e,t){return void 0===e?[]:Array.isArray(e)?e.map((function(e){return Ui(e,t)})):[Ui(e,t)]}var Gi=Hi,Ji=function Ji(e,t){var n=Hi("object"==_typeof(e)&&"redirect"in e?e.redirect:e,t);return 0===n.length?{remain:t,redirect:n}:"object"==_typeof(e)&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}},Xi=Object.defineProperty({recordFromArray:ji,mapFromArray:Li,createAutoChecklist:_i,partition:Mi,isInt:Ri,comparePrimitive:Vi,normalizeDefaultResult:$i,normalizeValidateResult:qi,normalizeDeprecatedResult:Wi,normalizeTransferResult:zi,normalizeForwardResult:Gi,normalizeRedirectResult:Ji},"__esModule",{value:!0}),Yi=function(_Ci$Schema5){_inherits(Yi,_Ci$Schema5);var _super15=_createSuper(Yi);function Yi(e){var _this15;return _classCallCheck(this,Yi),(_this15=_super15.call(this,e))._choices=Xi.mapFromArray(e.choices.map((function(e){return e&&"object"==_typeof(e)?e:{value:e}})),"value"),_this15}return _createClass(Yi,[{key:"expected",value:function expected(_ref41){var _this16=this,e=_ref41.descriptor,t=Array.from(this._choices.keys()).map((function(e){return _this16._choices.get(e)})).filter((function(e){return!e.deprecated})).map((function(e){return e.value})).sort(Xi.comparePrimitive).map(e.value),n=t.slice(0,-2),r=t.slice(-2);return n.concat(r.join(" or ")).join(", ")}},{key:"validate",value:function validate(e){return this._choices.has(e)}},{key:"deprecated",value:function deprecated(e){var t=this._choices.get(e);return!(!t||!t.deprecated)&&{value:e}}},{key:"forward",value:function forward(e){var t=this._choices.get(e);return t?t.forward:void 0}},{key:"redirect",value:function redirect(e){var t=this._choices.get(e);return t?t.redirect:void 0}}]),Yi}(Ci.Schema),Ki=Yi,Qi=Object.defineProperty({ChoiceSchema:Ki},"__esModule",{value:!0}),Zi=function(_Ci$Schema6){_inherits(Zi,_Ci$Schema6);var _super16=_createSuper(Zi);function Zi(){return _classCallCheck(this,Zi),_super16.apply(this,arguments)}return _createClass(Zi,[{key:"expected",value:function expected(){return"a number"}},{key:"validate",value:function validate(e,t){return"number"==typeof e}}]),Zi}(Ci.Schema),eu=Zi,tu=Object.defineProperty({NumberSchema:eu},"__esModule",{value:!0}),nu=function(_tu$NumberSchema){_inherits(nu,_tu$NumberSchema);var _super17=_createSuper(nu);function nu(){return _classCallCheck(this,nu),_super17.apply(this,arguments)}return _createClass(nu,[{key:"expected",value:function expected(){return"an integer"}},{key:"validate",value:function validate(e,t){return!0===t.normalizeValidateResult(_get(_getPrototypeOf(nu.prototype),"validate",this).call(this,e,t),e)&&Xi.isInt(e)}}]),nu}(tu.NumberSchema),ru=nu,ou=Object.defineProperty({IntegerSchema:ru},"__esModule",{value:!0}),iu=function(_Ci$Schema7){_inherits(iu,_Ci$Schema7);var _super18=_createSuper(iu);function iu(){return _classCallCheck(this,iu),_super18.apply(this,arguments)}return _createClass(iu,[{key:"expected",value:function expected(){return"a string"}},{key:"validate",value:function validate(e){return"string"==typeof e}}]),iu}(Ci.Schema),uu=iu,su=Object.defineProperty({StringSchema:uu},"__esModule",{value:!0}),au=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),fo.__exportStar(Fi,t),fo.__exportStar(wi,t),fo.__exportStar(Ni,t),fo.__exportStar(Ii,t),fo.__exportStar(Qi,t),fo.__exportStar(ou,t),fo.__exportStar(tu,t),fo.__exportStar(su,t)})),cu=ho.apiDescriptor,lu=fi.levenUnknownHandler,pu=ci.commonInvalidHandler,fu=ui.commonDeprecatedHandler,du=Object.defineProperty({defaultDescriptor:cu,defaultUnknownHandler:lu,defaultInvalidHandler:pu,defaultDeprecatedHandler:fu},"__esModule",{value:!0}),hu=function(){function hu(e,t){_classCallCheck(this,hu);var _ref42=t||{},_ref42$logger=_ref42.logger,n=void 0===_ref42$logger?console:_ref42$logger,_ref42$descriptor=_ref42.descriptor,r=void 0===_ref42$descriptor?du.defaultDescriptor:_ref42$descriptor,_ref42$unknown=_ref42.unknown,o=void 0===_ref42$unknown?du.defaultUnknownHandler:_ref42$unknown,_ref42$invalid=_ref42.invalid,i=void 0===_ref42$invalid?du.defaultInvalidHandler:_ref42$invalid,_ref42$deprecated=_ref42.deprecated,u=void 0===_ref42$deprecated?du.defaultDeprecatedHandler:_ref42$deprecated;this._utils={descriptor:r,logger:n||{warn:function warn(){}},schemas:Xi.recordFromArray(e,"name"),normalizeDefaultResult:Xi.normalizeDefaultResult,normalizeDeprecatedResult:Xi.normalizeDeprecatedResult,normalizeForwardResult:Xi.normalizeForwardResult,normalizeRedirectResult:Xi.normalizeRedirectResult,normalizeValidateResult:Xi.normalizeValidateResult},this._unknownHandler=o,this._invalidHandler=i,this._deprecatedHandler=u,this.cleanHistory()}return _createClass(hu,[{key:"cleanHistory",value:function cleanHistory(){this._hasDeprecationWarned=Xi.createAutoChecklist()}},{key:"normalize",value:function normalize(e){var _this17=this,t={},n=[e],r=function r(){for(;0!==n.length;){var _e58=n.shift(),_r49=_this17._applyNormalization(_e58,t);n.push.apply(n,_toConsumableArray(_r49))}};r();for(var _i21=0,_Object$keys8=Object.keys(this._utils.schemas);_i21<_Object$keys8.length;_i21++){var _e59=_Object$keys8[_i21],_r50=this._utils.schemas[_e59];if(!(_e59 in t)){var _t57=Xi.normalizeDefaultResult(_r50.default(this._utils));"value"in _t57&&n.push(_defineProperty({},_e59,_t57.value))}}r();for(var _i22=0,_Object$keys9=Object.keys(this._utils.schemas);_i22<_Object$keys9.length;_i22++){var _e60=_Object$keys9[_i22],_n49=this._utils.schemas[_e60];_e60 in t&&(t[_e60]=_n49.postprocess(t[_e60],this._utils))}return t}},{key:"_applyNormalization",value:function _applyNormalization(e,t){var _step30,_this18=this,n=[],_Xi$partition=Xi.partition(Object.keys(e),(function(e){return e in _this18._utils.schemas})),_Xi$partition2=_slicedToArray(_Xi$partition,2),r=_Xi$partition2[0],o=_Xi$partition2[1],_iterator30=_createForOfIteratorHelper(r);try{var _loop6=function _loop6(){var o=_step30.value,r=_this18._utils.schemas[o],i=r.preprocess(e[o],_this18._utils),u=Xi.normalizeValidateResult(r.validate(i,_this18._utils),i);if(!0!==u){var _e61=u.value,_t58=_this18._invalidHandler(o,_e61,_this18._utils);throw"string"==typeof _t58?new Error(_t58):_t58}var s=function s(_ref43){var e=_ref43.from,t=_ref43.to;n.push("string"==typeof t?_defineProperty({},t,e):_defineProperty({},t.key,t.value))},a=function a(_ref46){var e=_ref46.value,t=_ref46.redirectTo,n=Xi.normalizeDeprecatedResult(r.deprecated(e,_this18._utils),i,!0);if(!1!==n)if(!0===n)_this18._hasDeprecationWarned(o)||_this18._utils.logger.warn(_this18._deprecatedHandler(o,t,_this18._utils));else{var _step32,_iterator32=_createForOfIteratorHelper(n);try{for(_iterator32.s();!(_step32=_iterator32.n()).done;){var _e62=_step32.value.value,_n50={key:o,value:_e62};if(!_this18._hasDeprecationWarned(_n50)){var _r51="string"==typeof t?{key:t,value:_e62}:t;_this18._utils.logger.warn(_this18._deprecatedHandler(_n50,_r51,_this18._utils))}}}catch(err){_iterator32.e(err)}finally{_iterator32.f()}}};Xi.normalizeForwardResult(r.forward(i,_this18._utils),i).forEach(s);var c=Xi.normalizeRedirectResult(r.redirect(i,_this18._utils),i);if(c.redirect.forEach(s),"remain"in c){var _e63=c.remain;t[o]=o in t?r.overlap(t[o],_e63,_this18._utils):_e63,a({value:_e63})}var _step33,_iterator33=_createForOfIteratorHelper(c.redirect);try{for(_iterator33.s();!(_step33=_iterator33.n()).done;){var _step33$value=_step33.value;a({value:_step33$value.from,redirectTo:_step33$value.to})}}catch(err){_iterator33.e(err)}finally{_iterator33.f()}};for(_iterator30.s();!(_step30=_iterator30.n()).done;)_loop6()}catch(err){_iterator30.e(err)}finally{_iterator30.f()}var _step31,_iterator31=_createForOfIteratorHelper(o);try{for(_iterator31.s();!(_step31=_iterator31.n()).done;){var _r52=_step31.value,_o16=e[_r52],_i23=this._unknownHandler(_r52,_o16,this._utils);if(_i23)for(var _i24=0,_Object$keys10=Object.keys(_i23);_i24<_Object$keys10.length;_i24++){var _e65=_Object$keys10[_i24],_r53=_defineProperty({},_e65,_i23[_e65]);_e65 in this._utils.schemas?n.push(_r53):Object.assign(t,_r53)}}}catch(err){_iterator31.e(err)}finally{_iterator31.f()}return n}}]),hu}(),mu=hu,gu=Object.defineProperty({normalize:function normalize(e,t,n){return new hu(t,n).normalize(e)},Normalizer:mu},"__esModule",{value:!0}),yu=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),fo.__exportStar(mo,t),fo.__exportStar(hi,t),fo.__exportStar(au,t),fo.__exportStar(gu,t),fo.__exportStar(Ci,t)})),Du=[],Eu=[],bu=function bu(e,t){if(e===t)return 0;var n=e;e.length>t.length&&(e=t,t=n);for(var r=e.length,o=t.length;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-o);)r--,o--;for(var i,u,s,a,c=0;cu?a>u?u+1:a:a>s?s+1:a;return u},Cu=bu,vu=bu;Cu.default=vu;for(var Au={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]},Fu={},_i25=0,_Object$keys11=Object.keys(Au);_i25<_Object$keys11.length;_i25++){var _e66=_Object$keys11[_i25];Fu[Au[_e66]]=_e66}for(var xu={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"]}},Su=xu,_i26=0,_Object$keys12=Object.keys(xu);_i26<_Object$keys12.length;_i26++){var _e67=_Object$keys12[_i26];if(!("channels"in xu[_e67]))throw new Error("missing channels property: "+_e67);if(!("labels"in xu[_e67]))throw new Error("missing channel labels property: "+_e67);if(xu[_e67].labels.length!==xu[_e67].channels)throw new Error("channel and label counts mismatch: "+_e67);var _xu$_e=xu[_e67],_t60=_xu$_e.channels,_n51=_xu$_e.labels;delete xu[_e67].channels,delete xu[_e67].labels,Object.defineProperty(xu[_e67],"channels",{value:_t60}),Object.defineProperty(xu[_e67],"labels",{value:_n51})}function wu(e){var t=function(){for(var e={},t=Object.keys(Su),_n52=t.length,_r55=0;_r55<_n52;_r55++)e[t[_r55]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var _e68=n.pop(),_r56=Object.keys(Su[_e68]),_o17=_r56.length,_i27=0;_i27<_o17;_i27++){var _o18=_r56[_i27],_u7=t[_o18];-1===_u7.distance&&(_u7.distance=t[_e68].distance+1,_u7.parent=_e68,n.unshift(_o18))}return t}function Tu(e,t){return function(n){return t(e(n))}}function Bu(e,t){for(var n=[t[e].parent,e],r=Su[t[e].parent][e],o=t[e].parent;t[o].parent;)n.unshift(t[o].parent),r=Tu(Su[t[o].parent][o],r),o=t[o].parent;return r.conversion=n,r}xu.rgb.hsl=function(e){var s,t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),i=Math.max(t,n,r),u=i-o;i===o?s=0:t===i?s=(n-r)/u:n===i?s=2+(r-t)/u:r===i&&(s=4+(t-n)/u),(s=Math.min(60*s,360))<0&&(s+=360);var c=(o+i)/2;return[s,100*(i===o?0:c<=.5?u/(i+o):u/(2-i-o)),100*c]},xu.rgb.hsv=function(e){var t,n,r,o,i,u=e[0]/255,s=e[1]/255,a=e[2]/255,c=Math.max(u,s,a),l=c-Math.min(u,s,a),p=function p(e){return(c-e)/6/l+.5};return 0===l?(o=0,i=0):(i=l/c,t=p(u),n=p(s),r=p(a),u===c?o=r-n:s===c?o=1/3+t-r:a===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*c]},xu.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[xu.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,r))*100,100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},xu.rgb.cmyk=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r);return[100*((1-t-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*o]},xu.rgb.keyword=function(e){var t=Fu[e];if(t)return t;for(var n,o,i,r=1/0,_i28=0,_Object$keys13=Object.keys(Au);_i28<_Object$keys13.length;_i28++){var _t61=_Object$keys13[_i28],_u8=(i=Au[_t61],Math.pow((o=e)[0]-i[0],2)+Math.pow(o[1]-i[1],2)+Math.pow(o[2]-i[2],2));_u8.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},xu.rgb.lab=function(e){var t=xu.rgb.xyz(e),n=t[0],r=t[1],o=t[2];return r/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},xu.hsl.rgb=function(e){var o,i,u,t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[u=255*r,u,u];for(var s=2*r-(o=r<.5?r*(1+n):r+n-r*n),a=[0,0,0],_e69=0;_e69<3;_e69++)(i=t+1/3*-(_e69-1))<0&&i++,i>1&&i--,u=6*i<1?s+6*(o-s)*i:2*i<1?o:3*i<2?s+(o-s)*(2/3-i)*6:s,a[_e69]=255*u;return a},xu.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,o=n,i=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,o*=i<=1?i:2-i,[t,100*(0===r?2*o/(i+o):2*n/(r+n)),(r+n)/2*100]},xu.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),u=255*r*(1-n),s=255*r*(1-n*i),a=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,a,u];case 1:return[s,r,u];case 2:return[u,r,a];case 3:return[u,s,r];case 4:return[a,u,r];case 5:return[r,u,s]}},xu.hsv.hsl=function(e){var i,u,t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);u=(2-n)*r;var s=(2-n)*o;return i=n*o,[t,100*(i=(i/=s<=1?s:2-s)||0),100*(u/=2)]},xu.hwb.rgb=function(e){var i,t=e[0]/360,n=e[1]/100,r=e[2]/100,o=n+r;o>1&&(n/=o,r/=o);var u=Math.floor(6*t),s=1-r;i=6*t-u,1&u&&(i=1-i);var c,l,p,a=n+i*(s-n);switch(u){default:case 6:case 0:c=s,l=a,p=n;break;case 1:c=a,l=s,p=n;break;case 2:c=n,l=s,p=a;break;case 3:c=n,l=a,p=s;break;case 4:c=a,l=n,p=s;break;case 5:c=s,l=n,p=a}return[255*c,255*l,255*p]},xu.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},xu.xyz.rgb=function(e){var o,i,u,t=e[0]/100,n=e[1]/100,r=e[2]/100;return i=-.9689*t+1.8758*n+.0415*r,u=.0557*t+-.204*n+1.057*r,o=(o=3.2406*t+-1.5372*n+-.4986*r)>.0031308?1.055*Math.pow(o,1/2.4)-.055:12.92*o,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:12.92*i,u=u>.0031308?1.055*Math.pow(u,1/2.4)-.055:12.92*u,[255*(o=Math.min(Math.max(0,o),1)),255*(i=Math.min(Math.max(0,i),1)),255*(u=Math.min(Math.max(0,u),1))]},xu.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},xu.lab.xyz=function(e){var t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;var o=Math.pow(n,3),i=Math.pow(t,3),u=Math.pow(r,3);return n=o>.008856?o:(n-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,r=u>.008856?u:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},xu.lab.lch=function(e){var o,t=e[0],n=e[1],r=e[2];return(o=360*Math.atan2(r,n)/2/Math.PI)<0&&(o+=360),[t,Math.sqrt(n*n+r*r),o]},xu.lch.lab=function(e){var t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},xu.rgb.ansi16=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,_e70=_slicedToArray(e,3),n=_e70[0],r=_e70[1],o=_e70[2],i=null===t?xu.rgb.hsv(e)[2]:t;if(0===(i=Math.round(i/50)))return 30;var u=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===i&&(u+=60),u},xu.hsv.ansi16=function(e){return xu.rgb.ansi16(xu.hsv.rgb(e),e[2])},xu.rgb.ansi256=function(e){var 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)},xu.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},xu.ansi256.rgb=function(e){if(e>=232){var _t62=10*(e-232)+8;return[_t62,_t62,_t62]}var t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},xu.rgb.hex=function(e){var 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},xu.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},xu.rgb.hcg=function(e){var a,t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),i=Math.min(Math.min(t,n),r),u=o-i;return a=u<=0?0:o===t?(n-r)/u%6:o===n?2+(r-t)/u:4+(t-n)/u,a/=6,[360*(a%=1),100*u,100*(u<1?i/(1-u):0)]},xu.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n),o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},xu.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},xu.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var o=[0,0,0],i=t%1*6,u=i%1,s=1-u,a=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=u,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=u;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=u,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return a=(1-n)*r,[255*(n*o[0]+a),255*(n*o[1]+a),255*(n*o[2]+a)]},xu.hcg.hsv=function(e){var 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]},xu.hcg.hsl=function(e){var 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]},xu.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},xu.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},xu.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},xu.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},xu.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},xu.gray.hsl=function(e){return[0,0,e[0]]},xu.gray.hsv=xu.gray.hsl,xu.gray.hwb=function(e){return[0,100,e[0]]},xu.gray.cmyk=function(e){return[0,0,0,e[0]]},xu.gray.lab=function(e){return[e[0],0,0]},xu.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},xu.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};var ku={};Object.keys(Su).forEach((function(e){ku[e]={},Object.defineProperty(ku[e],"channels",{value:Su[e].channels}),Object.defineProperty(ku[e],"labels",{value:Su[e].labels});var t=function(e){for(var t=wu(e),n={},r=Object.keys(t),_e71=r.length,_o19=0;_o19<_e71;_o19++){var _e72=r[_o19];null!==t[_e72].parent&&(n[_e72]=Bu(_e72,t))}return n}(e);Object.keys(t).forEach((function(n){var r=t[n];ku[e][n]=function(e){var t=function t(){for(var _len6=arguments.length,t=new Array(_len6),_key6=0;_key6<_len6;_key6++)t[_key6]=arguments[_key6];var n=t[0];if(null==n)return n;n.length>1&&(t=n);var r=e(t);if("object"==_typeof(r))for(var _e73=r.length,_t63=0;_t63<_e73;_t63++)r[_t63]=Math.round(r[_t63]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(r),ku[e][n].raw=function(e){var t=function t(){for(var _len7=arguments.length,t=new Array(_len7),_key7=0;_key7<_len7;_key7++)t[_key7]=arguments[_key7];var n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var Nu=ku,Pu=i((function(e){var s,t=function t(e,_t64){return function(){var r=e.apply(void 0,arguments);return"[".concat(r+_t64,"m")}},n=function n(e,t){return function(){var r=e.apply(void 0,arguments);return"[".concat(38+t,";5;").concat(r,"m")}},r=function r(e,t){return function(){var r=e.apply(void 0,arguments);return"[".concat(38+t,";2;").concat(r[0],";").concat(r[1],";").concat(r[2],"m")}},o=function o(e){return e},i=function i(e,t,n){return[e,t,n]},u=function u(e,t,n){Object.defineProperty(e,t,{get:function get(){var r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})},a=function a(e,t,n,r){void 0===s&&(s=Nu);for(var o=r?10:0,i={},_i29=0,_Object$entries3=Object.entries(s);_i29<_Object$entries3.length;_i29++){var _Object$entries3$_i=_slicedToArray(_Object$entries3[_i29],2),_r57=_Object$entries3$_i[0],_u9=_Object$entries3$_i[1],_s16="ansi16"===_r57?"ansi":_r57;_r57===t?i[_s16]=e(n,o):"object"==_typeof(_u9)&&(i[_s16]=e(_u9[t],o))}return i};Object.defineProperty(e,"exports",{enumerable:!0,get:function get(){var e=new Map,s={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};s.color.gray=s.color.blackBright,s.bgColor.bgGray=s.bgColor.bgBlackBright,s.color.grey=s.color.blackBright,s.bgColor.bgGrey=s.bgColor.bgBlackBright;for(var _i30=0,_Object$entries4=Object.entries(s);_i30<_Object$entries4.length;_i30++){for(var _Object$entries4$_i=_slicedToArray(_Object$entries4[_i30],2),_t65=_Object$entries4$_i[0],_n53=_Object$entries4$_i[1],_i31=0,_Object$entries5=Object.entries(_n53);_i31<_Object$entries5.length;_i31++){var _Object$entries5$_i=_slicedToArray(_Object$entries5[_i31],2),_t66=_Object$entries5$_i[0],_r58=_Object$entries5$_i[1];s[_t66]={open:"[".concat(_r58[0],"m"),close:"[".concat(_r58[1],"m")},_n53[_t66]=s[_t66],e.set(_r58[0],_r58[1])}Object.defineProperty(s,_t65,{value:_n53,enumerable:!1})}return Object.defineProperty(s,"codes",{value:e,enumerable:!1}),s.color.close="",s.bgColor.close="",u(s.color,"ansi",(function(){return a(t,"ansi16",o,!1)})),u(s.color,"ansi256",(function(){return a(n,"ansi256",o,!1)})),u(s.color,"ansi16m",(function(){return a(r,"rgb",i,!1)})),u(s.bgColor,"ansi",(function(){return a(t,"ansi16",o,!0)})),u(s.bgColor,"ansi256",(function(){return a(n,"ansi256",o,!0)})),u(s.bgColor,"ansi16m",(function(){return a(r,"rgb",i,!0)})),s}})}));function Ou(){return!1}function Iu(){throw new Error("tty.ReadStream is not implemented")}function ju(){throw new Error("tty.ReadStream is not implemented")}var Vu,Lu={isatty:Ou,ReadStream:Iu,WriteStream:ju},_u=function _u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nt.argv,n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),o=t.indexOf("--");return-1!==r&&(-1===o||r=2,has16m:e>=3}}function qu(e,t){if(0===Vu)return 0;if(_u("color=16m")||_u("color=full")||_u("color=truecolor"))return 3;if(_u("color=256"))return 2;if(e&&!t&&void 0===Vu)return 0;var n=Vu||0;if("dumb"===Ru.TERM)return n;if("CI"in Ru)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((function(e){return e in Ru}))||"codeship"===Ru.CI_NAME?1:n;if("TEAMCITY_VERSION"in Ru)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ru.TEAMCITY_VERSION)?1:0;if("truecolor"===Ru.COLORTERM)return 3;if("TERM_PROGRAM"in Ru){var _e74=parseInt((Ru.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ru.TERM_PROGRAM){case"iTerm.app":return _e74>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ru.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ru.TERM)||"COLORTERM"in Ru?1:n}_u("no-color")||_u("no-colors")||_u("color=false")||_u("color=never")?Vu=0:(_u("color")||_u("colors")||_u("color=true")||_u("color=always"))&&(Vu=1),"FORCE_COLOR"in Ru&&(Vu="true"===Ru.FORCE_COLOR?1:"false"===Ru.FORCE_COLOR?0:0===Ru.FORCE_COLOR.length?1:Math.min(parseInt(Ru.FORCE_COLOR,10),3));var Wu={supportsColor:function supportsColor(e){return $u(qu(e,e&&e.isTTY))},stdout:$u(qu(!0,Mu.isatty(1))),stderr:$u(qu(!0,Mu.isatty(2)))},Uu={stringReplaceAll:function stringReplaceAll(e,t,n){var r=e.indexOf(t);if(-1===r)return e;var o=t.length,i=0,u="";do{u+=e.substr(i,r-i)+t+n,i=r+o,r=e.indexOf(t,i)}while(-1!==r);return u+=e.substr(i)},stringEncaseCRLFWithFirstIndex:function stringEncaseCRLFWithFirstIndex(e,t,n,r){var o=0,i="";do{var _u10="\r"===e[r-1];i+=e.substr(o,(_u10?r-1:r)-o)+t+(_u10?"\r\n":"\n")+n,o=r+1,r=e.indexOf("\n",o)}while(-1!==r);return i+=e.substr(o)}},zu=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Hu=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Gu=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Ju=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Xu=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function Yu(e){var t="u"===e[0],n="{"===e[1];return t&&!n&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):Xu.get(e)||e}function Ku(e,t){var o,_step34,n=[],_iterator34=_createForOfIteratorHelper(t.trim().split(/\s*,\s*/g));try{for(_iterator34.s();!(_step34=_iterator34.n()).done;){var _t67=_step34.value,_r59=Number(_t67);if(Number.isNaN(_r59)){if(!(o=_t67.match(Gu)))throw new Error("Invalid Chalk template style argument: ".concat(_t67," (in style '").concat(e,"')"));n.push(o[2].replace(Ju,(function(e,t,n){return t?Yu(t):n})))}else n.push(_r59)}}catch(err){_iterator34.e(err)}finally{_iterator34.f()}return n}function Qu(e){Hu.lastIndex=0;for(var n,t=[];null!==(n=Hu.exec(e));){var _e75=n[1];if(n[2]){var _r60=Ku(_e75,n[2]);t.push([_e75].concat(_r60))}else t.push([_e75])}return t}function Zu(e,t){var _step35,n={},_iterator35=_createForOfIteratorHelper(t);try{for(_iterator35.s();!(_step35=_iterator35.n()).done;){var _step36,_e77=_step35.value,_iterator36=_createForOfIteratorHelper(_e77.styles);try{for(_iterator36.s();!(_step36=_iterator36.n()).done;){var _t69=_step36.value;n[_t69[0]]=_e77.inverse?null:_t69.slice(1)}}catch(err){_iterator36.e(err)}finally{_iterator36.f()}}}catch(err){_iterator35.e(err)}finally{_iterator35.f()}for(var r=e,_i32=0,_Object$entries6=Object.entries(n);_i32<_Object$entries6.length;_i32++){var _Object$entries6$_i=_slicedToArray(_Object$entries6[_i32],2),_e76=_Object$entries6$_i[0],_t68=_Object$entries6$_i[1];if(Array.isArray(_t68)){var _r61;if(!(_e76 in r))throw new Error("Unknown Chalk style: ".concat(_e76));r=_t68.length>0?(_r61=r)[_e76].apply(_r61,_toConsumableArray(_t68)):r[_e76]}}return r}var es=function es(e,t){var n=[],r=[],o=[];if(t.replace(zu,(function(t,i,u,s,a,c){if(i)o.push(Yu(i));else if(s){var _t70=o.join("");o=[],r.push(0===n.length?_t70:Zu(e,n)(_t70)),n.push({inverse:u,styles:Qu(s)})}else if(a){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(Zu(e,n)(o.join(""))),o=[],n.pop()}else o.push(c)})),r.push(o.join("")),n.length>0){var _e78="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(_e78)}return r.join("")},ts=Wu.stdout,ns=Wu.stderr,rs=Uu.stringReplaceAll,os=Uu.stringEncaseCRLFWithFirstIndex,is=Array.isArray,us=["ansi","ansi","ansi256","ansi16m"],ss=Object.create(null),as=_createClass((function as(e){return _classCallCheck(this,as),cs(e)})),cs=function cs(e){var t={};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");var n=ts?ts.level:0;e.level=void 0===t.level?n:t.level}(t,e),t.template=function(){for(var _len8=arguments.length,e=new Array(_len8),_key8=0;_key8<_len8;_key8++)e[_key8]=arguments[_key8];return ys.apply(void 0,[t.template].concat(e))},Object.setPrototypeOf(t,ls.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=function(){throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=as,t.template};function ls(e){return cs(e)}for(var _loop7=function _loop7(){var _Object$entries7$_i=_slicedToArray(_Object$entries7[_i33],2),e=_Object$entries7$_i[0],t=_Object$entries7$_i[1];ss[e]={get:function get(){var n=hs(this,ds(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:n}),n}}},_i33=0,_Object$entries7=Object.entries(Pu);_i33<_Object$entries7.length;_i33++)_loop7();ss.visible={get:function get(){var e=hs(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};for(var ps=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"],_loop8=function _loop8(){var e=_ps[_i34];ss[e]={get:function get(){var t=this.level;return function(){var _Pu$color$us$t,r=ds((_Pu$color$us$t=Pu.color[us[t]])[e].apply(_Pu$color$us$t,arguments),Pu.color.close,this._styler);return hs(this,r,this._isEmpty)}}}},_i34=0,_ps=ps;_i34<_ps.length;_i34++)_loop8();for(var _loop9=function _loop9(){var e=_ps2[_i35];ss["bg"+e[0].toUpperCase()+e.slice(1)]={get:function get(){var t=this.level;return function(){var _Pu$bgColor$us$t,r=ds((_Pu$bgColor$us$t=Pu.bgColor[us[t]])[e].apply(_Pu$bgColor$us$t,arguments),Pu.bgColor.close,this._styler);return hs(this,r,this._isEmpty)}}}},_i35=0,_ps2=ps;_i35<_ps2.length;_i35++)_loop9();var gs,fs=Object.defineProperties((function(){}),Object.assign({},ss,{level:{enumerable:!0,get:function get(){return this._generator.level},set:function set(e){this._generator.level=e}}})),ds=function ds(e,t,n){var r,o;return void 0===n?(r=e,o=t):(r=n.openAll+e,o=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:o,parent:n}},hs=function hs(e,t,n){var r=function r(){for(var _len9=arguments.length,e=new Array(_len9),_key9=0;_key9<_len9;_key9++)e[_key9]=arguments[_key9];return is(e[0])&&is(e[0].raw)?ms(r,ys.apply(void 0,[r].concat(e))):ms(r,1===e.length?""+e[0]:e.join(" "))};return Object.setPrototypeOf(r,fs),r._generator=e,r._styler=t,r._isEmpty=n,r},ms=function ms(e,t){if(e.level<=0||!t)return e._isEmpty?"":t;var n=e._styler;if(void 0===n)return t;var _n54=n,r=_n54.openAll,o=_n54.closeAll;if(-1!==t.indexOf(""))for(;void 0!==n;)t=rs(t,n.close,n.open),n=n.parent;var i=t.indexOf("\n");return-1!==i&&(t=os(t,o,r,i)),r+t+o},ys=function ys(e){for(var _len10=arguments.length,t=new Array(_len10>1?_len10-1:0),_key10=1;_key10<_len10;_key10++)t[_key10-1]=arguments[_key10];var n=t[0];if(!is(n)||!is(n.raw))return t.join(" ");for(var r=t.slice(1),o=[n.raw[0]],_e79=1;_e790&&r(a)?n>1?e(a,n-1,r,o,i):bs(i,a):o||(i[i.length]=a)}return i},Ws=function Ws(e){return null!=e&&e.length?qs(e,1):[]},Us={key:function key(e){return 1===e.length?"-".concat(e):"--".concat(e)},value:function value(e){return yu.apiDescriptor.value(e)},pair:function pair(_ref47){var e=_ref47.key,t=_ref47.value;return!1===t?"--no-".concat(e):!0===t?Us.key(e):""===t?"".concat(Us.key(e)," without an argument"):"".concat(Us.key(e),"=").concat(t)}},zs=function(_yu$ChoiceSchema){_inherits(zs,_yu$ChoiceSchema);var _super19=_createSuper(zs);function zs(_ref48){var _this19,e=_ref48.name,t=_ref48.flags;return _classCallCheck(this,zs),(_this19=_super19.call(this,{name:e,choices:t}))._flags=_toConsumableArray(t).sort(),_this19}return _createClass(zs,[{key:"preprocess",value:function preprocess(e,t){if("string"==typeof e&&e.length>0&&!this._flags.includes(e)){var _n55=this._flags.find((function(t){return Cu(t,e)<3}));if(_n55)return t.logger.warn(["Unknown flag ".concat(Es.yellow(t.descriptor.value(e)),","),"did you mean ".concat(Es.blue(t.descriptor.value(_n55)),"?")].join(" ")),_n55}return e}},{key:"expected",value:function expected(){return"a flag"}}]),zs}(yu.ChoiceSchema);function Gs(t,n){var _ref49=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=_ref49.logger,_ref49$isCLI=_ref49.isCLI,o=void 0!==_ref49$isCLI&&_ref49$isCLI,_ref49$passThrough=_ref49.passThrough,i=void 0!==_ref49$passThrough&&_ref49$passThrough,u=i?Array.isArray(i)?function(e,t){return i.includes(e)?_defineProperty({},e,t):void 0}:function(e,t){return _defineProperty({},e,t)}:function(t,n,r){var o=e(r.schemas,["_"]);return yu.levenUnknownHandler(t,n,Object.assign({},r,{schemas:o}))},s=o?Us:yu.apiDescriptor,a=function(e,_ref52){var t=_ref52.isCLI,n=[];t&&n.push(yu.AnySchema.create({name:"_"}));var _step37,_iterator37=_createForOfIteratorHelper(e);try{for(_iterator37.s();!(_step37=_iterator37.n()).done;){var _r62=_step37.value;n.push(Js(_r62,{isCLI:t,optionInfos:e})),_r62.alias&&t&&n.push(yu.AliasSchema.create({name:_r62.alias,sourceName:_r62.name}))}}catch(err){_iterator37.e(err)}finally{_iterator37.f()}return n}(n,{isCLI:o}),c=new yu.Normalizer(a,{logger:r,unknown:u,descriptor:s}),l=!1!==r;l&&Hs&&(c._hasDeprecationWarned=Hs);var p=c.normalize(t);return l&&(Hs=c._hasDeprecationWarned),p}function Js(e,_ref53){var r,t=_ref53.isCLI,n=_ref53.optionInfos,o={name:e.name},i={};switch(e.type){case"int":r=yu.IntegerSchema,t&&(o.preprocess=function(e){return Number(e)});break;case"string":case"path":r=yu.StringSchema;break;case"choice":r=yu.ChoiceSchema,o.choices=e.choices.map((function(t){return"object"==_typeof(t)&&t.redirect?Object.assign({},t,{redirect:{to:{key:e.name,value:t.redirect}}}):t}));break;case"boolean":r=yu.BooleanSchema;break;case"flag":r=zs,o.flags=Ws(n.map((function(e){return[e.alias,e.description&&e.name,e.oppositeDescription&&"no-".concat(e.name)].filter(Boolean)})));break;default:throw new Error("Unexpected type ".concat(e.type))}if(e.exception?o.validate=function(t,n,r){return e.exception(t)||n.validate(t,r)}:o.validate=function(e,t,n){return void 0===e||t.validate(e,n)},e.redirect&&(i.redirect=function(t){return t?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0}),e.deprecated&&(i.deprecated=!0),t&&!e.array){var _e80=o.preprocess||function(e){return e};o.preprocess=function(t,n,r){return n.preprocess(_e80(Array.isArray(t)?ke(t):t),r)}}return e.array?yu.ArraySchema.create(Object.assign({},t?{preprocess:function preprocess(e){return Array.isArray(e)?e:[e]}}:{},i,{valueSchema:r.create(o)})):r.create(Object.assign({},o,i))}var Xs={normalizeApiOptions:function normalizeApiOptions(e,t,n){return Gs(e,t,n)},normalizeCliOptions:function normalizeCliOptions(e,t,n){return Gs(e,t,Object.assign({isCLI:!0},n))}},Ys=rn.isNonEmptyArray;function Ks(e,t){if(!(t||{}).ignoreDecorators){var _t71=e.declaration&&e.declaration.decorators||e.decorators;if(Ys(_t71))return Ks(_t71[0])}return e.range?e.range[0]:e.start}function Qs(e){return e.range?e.range[1]:e.end}function Zs(e,t){return Ks(e)===Ks(t)}var ea={locStart:Ks,locEnd:Qs,hasSameLocStart:Zs,hasSameLoc:function hasSameLoc(e,t){return Zs(e,t)&&function(e,t){return Qs(e)===Qs(t)}(e,t)}},ta=Object.defineProperty({default:/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,matchToToken:function matchToToken(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}},"__esModule",{value:!0}),na=fa,ra=da,oa=function oa(e){for(var t=!0,_n56=0;_n56e)return!1;if((n+=t[_r64+1])>=e)return!0}return!1}function fa(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&sa.test(String.fromCharCode(e)):pa(e,ca)))}function da(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&aa.test(String.fromCharCode(e)):pa(e,ca)||pa(e,la))))}var ha=Object.defineProperty({isIdentifierStart:na,isIdentifierChar:ra,isIdentifierName:oa},"__esModule",{value:!0}),ma=xa,ga=Sa,ya=wa,Da=function Da(e,t){return Sa(e,t)||wa(e)},Ea=function Ea(e){return va.has(e)},ba=["implements","interface","let","package","private","protected","public","static","yield"],Ca=["eval","arguments"],va=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),Aa=new Set(ba),Fa=new Set(Ca);function xa(e,t){return t&&"await"===e||"enum"===e}function Sa(e,t){return xa(e,t)||Aa.has(e)}function wa(e){return Fa.has(e)}var Ta=Object.defineProperty({isReservedWord:ma,isStrictReservedWord:ga,isStrictBindOnlyReservedWord:ya,isStrictBindReservedWord:Da,isKeyword:Ea},"__esModule",{value:!0}),Ba=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function get(){return ha.isIdentifierName}}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function get(){return ha.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function get(){return ha.isIdentifierStart}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function get(){return Ta.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function get(){return Ta.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function get(){return Ta.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function get(){return Ta.isStrictReservedWord}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function get(){return Ta.isKeyword}})})),ka=/[|\\{}()[\]^$+*?.]/g,Na=function Na(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(ka,"\\$&")},Pa={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]},Oa=i((function(e){var t={};for(var n in Pa)Pa.hasOwnProperty(n)&&(t[Pa[n]]=n);var r=e.exports={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"]}};for(var o in r)if(r.hasOwnProperty(o)){if(!("channels"in r[o]))throw new Error("missing channels property: "+o);if(!("labels"in r[o]))throw new Error("missing channel labels property: "+o);if(r[o].labels.length!==r[o].channels)throw new Error("channel and label counts mismatch: "+o);var i=r[o].channels,u=r[o].labels;delete r[o].channels,delete r[o].labels,Object.defineProperty(r[o],"channels",{value:i}),Object.defineProperty(r[o],"labels",{value:u})}r.rgb.hsl=function(e){var t,n,r=e[0]/255,o=e[1]/255,i=e[2]/255,u=Math.min(r,o,i),s=Math.max(r,o,i),a=s-u;return s===u?t=0:r===s?t=(o-i)/a:o===s?t=2+(i-r)/a:i===s&&(t=4+(r-o)/a),(t=Math.min(60*t,360))<0&&(t+=360),n=(u+s)/2,[t,100*(s===u?0:n<=.5?a/(s+u):a/(2-s-u)),100*n]},r.rgb.hsv=function(e){var t,n,r,o,i,u=e[0]/255,s=e[1]/255,a=e[2]/255,c=Math.max(u,s,a),l=c-Math.min(u,s,a),p=function p(e){return(c-e)/6/l+.5};return 0===l?o=i=0:(i=l/c,t=p(u),n=p(s),r=p(a),u===c?o=r-n:s===c?o=1/3+t-r:a===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*c]},r.rgb.hwb=function(e){var t=e[0],n=e[1],o=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,o))*100,100*(o=1-1/255*Math.max(t,Math.max(n,o)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-o)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},r.rgb.keyword=function(e){var n=t[e];if(n)return n;var r,o,i,u=1/0;for(var s in Pa)if(Pa.hasOwnProperty(s)){var c=(o=e,i=Pa[s],Math.pow(o[0]-i[0],2)+Math.pow(o[1]-i[1],2)+Math.pow(o[2]-i[2],2));c.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],o=t[1],i=t[2];return o/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116)-16,500*(n-o),200*(o-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},r.hsl.rgb=function(e){var t,n,r,o,i,u=e[0]/360,s=e[1]/100,a=e[2]/100;if(0===s)return[i=255*a,i,i];t=2*a-(n=a<.5?a*(1+s):a+s-a*s),o=[0,0,0];for(var c=0;c<3;c++)(r=u+1/3*-(c-1))<0&&r++,r>1&&r--,i=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,o[c]=255*i;return o},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,o=n,i=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,o*=i<=1?i:2-i,[t,100*(0===r?2*o/(i+o):2*n/(r+n)),(r+n)/2*100]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),u=255*r*(1-n),s=255*r*(1-n*i),a=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,a,u];case 1:return[s,r,u];case 2:return[u,r,a];case 3:return[u,s,r];case 4:return[a,u,r];case 5:return[r,u,s]}},r.hsv.hsl=function(e){var t,n,r,o=e[0],i=e[1]/100,u=e[2]/100,s=Math.max(u,.01);return r=(2-i)*u,n=i*s,[o,100*(n=(n/=(t=(2-i)*s)<=1?t:2-t)||0),100*(r/=2)]},r.hwb.rgb=function(e){var t,n,r,o,i,u,s,a=e[0]/360,c=e[1]/100,l=e[2]/100,p=c+l;switch(p>1&&(c/=p,l/=p),r=6*a-(t=Math.floor(6*a)),!!(1&t)&&(r=1-r),o=c+r*((n=1-l)-c),t){default:case 6:case 0:i=n,u=o,s=c;break;case 1:i=o,u=n,s=c;break;case 2:i=c,u=n,s=o;break;case 3:i=c,u=o,s=n;break;case 4:i=o,u=c,s=n;break;case 5:i=n,u=c,s=o}return[255*i,255*u,255*s]},r.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},r.xyz.rgb=function(e){var t,n,r,o=e[0]/100,i=e[1]/100,u=e[2]/100;return n=-.9689*o+1.8758*i+.0415*u,r=.0557*o+-.204*i+1.057*u,t=(t=3.2406*o+-1.5372*i+-.4986*u)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},r.lab.xyz=function(e){var t,n,r,o=e[0];t=e[1]/500+(n=(o+16)/116),r=n-e[2]/200;var i=Math.pow(n,3),u=Math.pow(t,3),s=Math.pow(r,3);return n=i>.008856?i:(n-16/116)/7.787,t=u>.008856?u:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},r.lab.lch=function(e){var t,n=e[0],r=e[1],o=e[2];return(t=360*Math.atan2(o,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+o*o),t]},r.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],o=e[2],i=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var u=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(u+=60),u},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var 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)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var 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},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},r.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255,i=Math.max(Math.max(n,r),o),u=Math.min(Math.min(n,r),o),s=i-u;return t=s<=0?0:i===n?(r-o)/s%6:i===r?2+(o-n)/s:4+(n-r)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?u/(1-s):0)]},r.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,o=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},r.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var o,i=[0,0,0],u=t%1*6,s=u%1,a=1-s;switch(Math.floor(u)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return o=(1-n)*r,[255*(n*i[0]+o),255*(n*i[1]+o),255*(n*i[2]+o)]},r.hcg.hsv=function(e){var 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]},r.hcg.hsl=function(e){var 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]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function Ia(e){var t=function(){for(var e={},t=Object.keys(Oa),n=t.length,r=0;r1&&(_t73=Array.prototype.slice.call(arguments));var n=e(_t73);if("object"==_typeof(n))for(var r=n.length,o=0;o1&&(_t74=Array.prototype.slice.call(arguments)),e(_t74))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var $a,Ma=_a,Ra=i((function(e){var t=function t(e,_t75){return function(){var n=e.apply(Ma,arguments);return"[".concat(n+_t75,"m")}},n=function n(e,t){return function(){var n=e.apply(Ma,arguments);return"[".concat(38+t,";5;").concat(n,"m")}},r=function r(e,t){return function(){var n=e.apply(Ma,arguments);return"[".concat(38+t,";2;").concat(n[0],";").concat(n[1],";").concat(n[2],"m")}};Object.defineProperty(e,"exports",{enumerable:!0,get:function get(){var e=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.grey=o.color.gray;for(var _i36=0,_Object$keys14=Object.keys(o);_i36<_Object$keys14.length;_i36++){for(var _t76=_Object$keys14[_i36],_n57=o[_t76],_i37=0,_Object$keys15=Object.keys(_n57);_i37<_Object$keys15.length;_i37++){var _t77=_Object$keys15[_i37],_r65=_n57[_t77];o[_t77]={open:"[".concat(_r65[0],"m"),close:"[".concat(_r65[1],"m")},_n57[_t77]=o[_t77],e.set(_r65[0],_r65[1])}Object.defineProperty(o,_t76,{value:_n57,enumerable:!1}),Object.defineProperty(o,"codes",{value:e,enumerable:!1})}var i=function i(e){return e},u=function u(e,t,n){return[e,t,n]};o.color.close="",o.bgColor.close="",o.color.ansi={ansi:t(i,0)},o.color.ansi256={ansi256:n(i,0)},o.color.ansi16m={rgb:r(u,0)},o.bgColor.ansi={ansi:t(i,10)},o.bgColor.ansi256={ansi256:n(i,10)},o.bgColor.ansi16m={rgb:r(u,10)};for(var _i38=0,_Object$keys16=Object.keys(Ma);_i38<_Object$keys16.length;_i38++){var _e81=_Object$keys16[_i38];if("object"==_typeof(Ma[_e81])){var _i39=Ma[_e81];"ansi16"===_e81&&(_e81="ansi"),"ansi16"in _i39&&(o.color.ansi[_e81]=t(_i39.ansi16,0),o.bgColor.ansi[_e81]=t(_i39.ansi16,10)),"ansi256"in _i39&&(o.color.ansi256[_e81]=n(_i39.ansi256,0),o.bgColor.ansi256[_e81]=n(_i39.ansi256,10)),"rgb"in _i39&&(o.color.ansi16m[_e81]=r(_i39.rgb,0),o.bgColor.ansi16m[_e81]=r(_i39.rgb,10))}}return o}})})),Va=nt.env;function qa(e){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(function(e){if(!1===$a)return 0;if(Wo("color=16m")||Wo("color=full")||Wo("color=truecolor"))return 3;if(Wo("color=256"))return 2;if(e&&!e.isTTY&&!0!==$a)return 0;var t=$a?1:0;if("CI"in Va)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(e){return e in Va}))||"codeship"===Va.CI_NAME?1:t;if("TEAMCITY_VERSION"in Va)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Va.TEAMCITY_VERSION)?1:0;if("truecolor"===Va.COLORTERM)return 3;if("TERM_PROGRAM"in Va){var _e82=parseInt((Va.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Va.TERM_PROGRAM){case"iTerm.app":return _e82>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Va.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Va.TERM)||"COLORTERM"in Va?1:(Va.TERM,t)}(e))}Wo("no-color")||Wo("no-colors")||Wo("color=false")?$a=!1:(Wo("color")||Wo("colors")||Wo("color=true")||Wo("color=always"))&&($a=!0),"FORCE_COLOR"in Va&&($a=0===Va.FORCE_COLOR.length||0!==parseInt(Va.FORCE_COLOR,10));var Wa={supportsColor:qa,stdout:qa(nt.stdout),stderr:qa(nt.stderr)},Ua=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,za=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Ha=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Ga=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Ja=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function Xa(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):Ja.get(e)||e}function Ya(e,t){var o,_step38,n=[],_iterator38=_createForOfIteratorHelper(t.trim().split(/\s*,\s*/g));try{for(_iterator38.s();!(_step38=_iterator38.n()).done;){var _t78=_step38.value;if(isNaN(_t78)){if(!(o=_t78.match(Ha)))throw new Error("Invalid Chalk template style argument: ".concat(_t78," (in style '").concat(e,"')"));n.push(o[2].replace(Ga,(function(e,t,n){return t?Xa(t):n})))}else n.push(Number(_t78))}}catch(err){_iterator38.e(err)}finally{_iterator38.f()}return n}function Ka(e){za.lastIndex=0;for(var n,t=[];null!==(n=za.exec(e));){var _e83=n[1];if(n[2]){var _r66=Ya(_e83,n[2]);t.push([_e83].concat(_r66))}else t.push([_e83])}return t}function Qa(e,t){var _step39,n={},_iterator39=_createForOfIteratorHelper(t);try{for(_iterator39.s();!(_step39=_iterator39.n()).done;){var _step40,_e85=_step39.value,_iterator40=_createForOfIteratorHelper(_e85.styles);try{for(_iterator40.s();!(_step40=_iterator40.n()).done;){var _t79=_step40.value;n[_t79[0]]=_e85.inverse?null:_t79.slice(1)}}catch(err){_iterator40.e(err)}finally{_iterator40.f()}}}catch(err){_iterator39.e(err)}finally{_iterator39.f()}for(var r=e,_i40=0,_Object$keys17=Object.keys(n);_i40<_Object$keys17.length;_i40++){var _e84=_Object$keys17[_i40];if(Array.isArray(n[_e84])){if(!(_e84 in r))throw new Error("Unknown Chalk style: ".concat(_e84));r=n[_e84].length>0?r[_e84].apply(r,n[_e84]):r[_e84]}}return r}var Za=function Za(e,t){var n=[],r=[],o=[];if(t.replace(Ua,(function(t,i,u,s,a,c){if(i)o.push(Xa(i));else if(s){var _t80=o.join("");o=[],r.push(0===n.length?_t80:Qa(e,n)(_t80)),n.push({inverse:u,styles:Ka(s)})}else if(a){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(Qa(e,n)(o.join(""))),o=[],n.pop()}else o.push(c)})),r.push(o.join("")),n.length>0){var _e86="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(_e86)}return r.join("")},ec=i((function(e){var t=Wa.stdout,r=["ansi","ansi","ansi256","ansi16m"],o=new Set(["gray"]),i=Object.create(null);function u(e,n){n=n||{};var r=t?t.level:0;e.level=void 0===n.level?r:n.level,e.enabled="enabled"in n?n.enabled:e.level>0}function s(e){if(!this||!(this instanceof s)||this.template){var _t81={};return u(_t81,e),_t81.template=function(){var e=[].slice.call(arguments);return p.apply(null,[_t81.template].concat(e))},Object.setPrototypeOf(_t81,s.prototype),Object.setPrototypeOf(_t81.template,_t81),_t81.template.constructor=s,_t81.template}u(this,e)}for(var _loop10=function _loop10(){var e=_Object$keys18[_i41];Ra[e].closeRe=new RegExp(Na(Ra[e].close),"g"),i[e]={get:function get(){var t=Ra[e];return c.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}}},_i41=0,_Object$keys18=Object.keys(Ra);_i41<_Object$keys18.length;_i41++)_loop10();i.visible={get:function get(){return c.call(this,this._styles||[],!0,"visible")}},Ra.color.closeRe=new RegExp(Na(Ra.color.close),"g");for(var _loop11=function _loop11(){var e=_Object$keys19[_i42];o.has(e)||(i[e]={get:function get(){var t=this.level;return function(){var o={open:Ra.color[r[t]][e].apply(null,arguments),close:Ra.color.close,closeRe:Ra.color.closeRe};return c.call(this,this._styles?this._styles.concat(o):[o],this._empty,e)}}})},_i42=0,_Object$keys19=Object.keys(Ra.color.ansi);_i42<_Object$keys19.length;_i42++)_loop11();Ra.bgColor.closeRe=new RegExp(Na(Ra.bgColor.close),"g");for(var _loop12=function _loop12(){var e=_Object$keys20[_i43];if(o.has(e))return"continue";i["bg"+e[0].toUpperCase()+e.slice(1)]={get:function get(){var t=this.level;return function(){var o={open:Ra.bgColor[r[t]][e].apply(null,arguments),close:Ra.bgColor.close,closeRe:Ra.bgColor.closeRe};return c.call(this,this._styles?this._styles.concat(o):[o],this._empty,e)}}}},_i43=0,_Object$keys20=Object.keys(Ra.bgColor.ansi);_i43<_Object$keys20.length;_i43++)_loop12();var a=Object.defineProperties((function(){}),i);function c(e,t,n){var r=function r(){return l.apply(r,arguments)};r._styles=e,r._empty=t;var o=this;return Object.defineProperty(r,"level",{enumerable:!0,get:function get(){return o.level},set:function set(e){o.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:function get(){return o.enabled},set:function set(e){o.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=a,r}function l(){var e=arguments,t=e.length,r=String(arguments[0]);if(0===t)return"";if(t>1)for(var _n58=1;_n581&&void 0!==arguments[1]?arguments[1]:{};return pc(t)?function(e,t){var _step42,n="",_iterator42=_createForOfIteratorHelper(lc(t));try{var _loop13=function _loop13(){var _step42$value=_step42.value,r=_step42$value.type,o=_step42$value.value,t=e[r];n+=t?o.split(ac).map((function(e){return t(e)})).join("\n"):o};for(_iterator42.s();!(_step42=_iterator42.n()).done;)_loop13()}catch(err){_iterator42.e(err)}finally{_iterator42.f()}return n}(function(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}(fc(t)),e):e},oc=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=_typeof(e)&&"function"!=typeof e)return{default:e};var t=uc();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(ta),ic=function(e){return e&&e.__esModule?e:{default:e}}(ec);function uc(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return uc=function uc(){return e},e}var lc,sc=new Set(["as","async","from","get","of","set"]),ac=/\r\n|[\n\r\u2028\u2029]/,cc=/^[()[\]{}]$/,_e89=oc.matchToToken,_t82=/^[a-z][\w-]*$/i,_n60=function _n60(e,n,r){if("name"===e.type){if((0,Ba.isKeyword)(e.value)||(0,Ba.isStrictReservedWord)(e.value,!0)||sc.has(e.value))return"keyword";if(_t82.test(e.value)&&("<"===r[n-1]||"3&&void 0!==arguments[3]?arguments[3]:{};if(!yc){yc=!0;var _e90="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";new Error(_e90).name="DeprecationWarning",console.warn(new Error(_e90))}return Ec(e,{start:{column:n=Math.max(n,0),line:t}},r)},mc=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=_typeof(e)&&"function"!=typeof e)return{default:e};var t=gc();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(Object.defineProperty({shouldHighlight:tc,getChalk:nc,default:rc},"__esModule",{value:!0}));function gc(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return gc=function gc(){return e},e}var yc=!1,Dc=/\r\n|[\n\r\u2028\u2029]/;function Ec(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(n.highlightCode||n.forceColor)&&(0,mc.shouldHighlight)(n),o=(0,mc.getChalk)(n),i=function(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}(o),u=function u(e,t){return r?e(t):t},_ref55=function(e,t,n){var r=Object.assign({column:0,line:-1},e.start),o=Object.assign({},r,e.end),_ref56=n||{},_ref56$linesAbove=_ref56.linesAbove,i=void 0===_ref56$linesAbove?2:_ref56$linesAbove,_ref56$linesBelow=_ref56.linesBelow,u=void 0===_ref56$linesBelow?3:_ref56$linesBelow,s=r.line,a=r.column,c=o.line,l=o.column,p=Math.max(s-(i+1),0),f=Math.min(t.length,c+u);-1===s&&(p=0),-1===c&&(f=t.length);var d=c-s,h={};if(d)for(var _e91=0;_e91<=d;_e91++){var _n61=_e91+s;if(a)if(0===_e91){var _e92=t[_n61-1].length;h[_n61]=[a,_e92-a+1]}else if(_e91===d)h[_n61]=[0,l];else{var _r67=t[_n61-_e91].length;h[_n61]=[0,_r67]}else h[_n61]=!0}else h[s]=a===l?!a||[a,0]:[a,l-a];return{start:p,end:f,markerLines:h}}(t,e.split(Dc),n),a=_ref55.start,c=_ref55.end,l=_ref55.markerLines,p=t.start&&"number"==typeof t.start.column,f=String(c).length,d=(r?(0,mc.default)(e,n):e).split(Dc).slice(a,c).map((function(e,t){var r=a+1+t,o=" ".concat(r).slice(-f),s=" ".concat(o," |"),c=l[r],p=!l[r+1];if(c){var _t83="";if(Array.isArray(c)){var _r68=e.slice(0,Math.max(c[0]-1,0)).replace(/[^\t]/g," "),_o22=c[1]||1;_t83=["\n ",u(i.gutter,s.replace(/\d/g," "))," ",_r68,u(i.marker,"^").repeat(_o22)].join(""),p&&n.message&&(_t83+=" "+u(i.message,n.message))}return[u(i.marker,">"),u(i.gutter,s),e.length>0?" ".concat(e):"",_t83].join("")}return" ".concat(u(i.gutter,s)).concat(e.length>0?" ".concat(e):"")})).join("\n");return n.message&&!p&&(d="".concat(" ".repeat(f+1)).concat(n.message,"\n").concat(d)),r?o.reset(d):d}var bc=Object.defineProperty({codeFrameColumns:dc,default:hc},"__esModule",{value:!0}),Cc=o(tr),vc=uo.ConfigError,Ac=ea.locStart,Fc=ea.locEnd,xc=Object.getOwnPropertyNames,Sc=Object.getOwnPropertyDescriptor;function wc(e){var _step43,t={},_iterator43=_createForOfIteratorHelper(e.plugins);try{for(_iterator43.s();!(_step43=_iterator43.n()).done;){var _n62=_step43.value;if(_n62.parsers){var _step44,_iterator44=_createForOfIteratorHelper(xc(_n62.parsers));try{for(_iterator44.s();!(_step44=_iterator44.n()).done;){var _e93=_step44.value;Object.defineProperty(t,_e93,Sc(_n62.parsers,_e93))}}catch(err){_iterator44.e(err)}finally{_iterator44.f()}}}}catch(err){_iterator43.e(err)}finally{_iterator43.f()}return t}function Tc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wc(e);if("function"==typeof e.parser)return{parse:e.parser,astFormat:"estree",locStart:Ac,locEnd:Fc};if("string"==typeof e.parser){if(Object.prototype.hasOwnProperty.call(t,e.parser))return t[e.parser];throw new vc("Couldn't resolve parser \"".concat(e.parser,'". Parsers must be explicitly added to the standalone bundle.'))}}var Bc={parse:function parse(e,t){var n=wc(t),r=Object.keys(n).reduce((function(e,t){return Object.defineProperty(e,t,{enumerable:!0,get:function get(){return n[t].parse}})}),{}),o=Tc(t,n);try{return o.preprocess&&(e=o.preprocess(e,t)),{text:e,ast:o.parse(e,r,t)}}catch(t){var _n63=t.loc;if(_n63){var _r69=bc.codeFrameColumns;throw t.codeFrame=_r69(e,_n63,{highlightCode:!0}),t.message+="\n"+t.codeFrame,t}throw t.stack}},resolveParser:Tc},kc=uo.UndefinedParserError,Nc=Mt.getSupportInfo,Pc=Bc.resolveParser,Oc={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function Ic(e,t){var n=Cc.basename(e).toLowerCase(),r=Nc({plugins:t}).languages.filter((function(e){return null!==e.since})),o=r.find((function(e){return e.extensions&&e.extensions.some((function(e){return n.endsWith(e)}))||e.filenames&&e.filenames.some((function(e){return e.toLowerCase()===n}))}));if(!o&&!n.includes(".")){var _t84=function(e){if("string"!=typeof e)return"";var t;try{t=eo.openSync(e,"r")}catch(e){return""}try{var _e94=new to(t).next().toString("utf8"),_n64=_e94.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/);if(_n64)return _n64[1];var _r70=_e94.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/);return _r70?_r70[1]:""}catch(e){return""}finally{try{eo.closeSync(t)}catch(e){}}}(e);o=r.find((function(e){return e.interpreters&&e.interpreters.includes(_t84)}))}return o&&o.parsers[0]}var jc={normalize:function normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign({},e),r=Nc({plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,o=Object.assign({},Oc,Ne(r.filter((function(e){return void 0!==e.default})).map((function(e){return[e.name,e.default]}))));if(!n.parser)if(n.filepath){if(n.parser=Ic(n.filepath,n.plugins),!n.parser)throw new kc("No parser could be inferred for file: ".concat(n.filepath))}else(t.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),n.parser="babel";var i=Pc(Xs.normalizeApiOptions(n,[r.find((function(e){return"parser"===e.name}))],{passThrough:!0,logger:!1}));n.astFormat=i.astFormat,n.locEnd=i.locEnd,n.locStart=i.locStart;var u=function(e){var t=e.astFormat;if(!t)throw new Error("getPlugin() requires astFormat to be set");var n=e.plugins.find((function(e){return e.printers&&e.printers[t]}));if(!n)throw new Error("Couldn't find plugin for AST format \"".concat(t,'"'));return n}(n);n.printer=u.printers[n.astFormat];for(var s=Ne(r.filter((function(e){return e.pluginDefaults&&void 0!==e.pluginDefaults[u.name]})).map((function(e){return[e.name,e.pluginDefaults[u.name]]}))),a=Object.assign({},o,s),_i44=0,_Object$entries8=Object.entries(a);_i44<_Object$entries8.length;_i44++){var _Object$entries8$_i=_slicedToArray(_Object$entries8[_i44],2),_e95=_Object$entries8$_i[0],_t85=_Object$entries8$_i[1];null!==n[_e95]&&void 0!==n[_e95]||(n[_e95]=_t85)}return"json"===n.parser&&(n.trailingComma="none"),Xs.normalizeApiOptions(n,r,Object.assign({passThrough:Object.keys(Oc)},t))},hiddenDefaults:Oc,inferParser:Ic},Lc=function e(t,n,r){if(Array.isArray(t))return t.map((function(t){return e(t,n,r)})).filter(Boolean);if(!t||"object"!=_typeof(t))return t;var i,o=n.printer.massageAstNode;i=o&&o.ignoredProperties?o.ignoredProperties:new Set;for(var u={},_i45=0,_Object$entries9=Object.entries(t);_i45<_Object$entries9.length;_i45++){var _Object$entries9$_i=_slicedToArray(_Object$entries9[_i45],2),_r71=_Object$entries9$_i[0],_o23=_Object$entries9$_i[1];i.has(_r71)||"function"==typeof _o23||(u[_r71]=e(_o23,n,t))}if(o){var _e96=o(t,u,r);if(null===_e96)return;if(_e96)return _e96}return u},_c="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function n(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e};function Mc(e,t){var n={seen:[],stylize:Vc};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Uc(t)?n.showHidden=t:t&&tl(n,t),Gc(n.showHidden)&&(n.showHidden=!1),Gc(n.depth)&&(n.depth=2),Gc(n.colors)&&(n.colors=!1),Gc(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=Rc),$c(n,e,n.depth)}function Rc(e,t){var n=Mc.styles[t];return n?"["+Mc.colors[n][0]+"m"+e+"["+Mc.colors[n][1]+"m":e}function Vc(e,t){return e}function $c(e,t,n){if(e.customInspect&&t&&Qc(t.inspect)&&t.inspect!==Mc&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return Hc(r)||(r=$c(e,r,n)),r}var o=function(e,t){if(Gc(t))return e.stylize("undefined","undefined");if(Hc(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return"number"==typeof t?e.stylize(""+t,"number"):Uc(t)?e.stylize(""+t,"boolean"):zc(t)?e.stylize("null","null"):void 0}(e,t);if(o)return o;var i=Object.keys(t),u=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),Kc(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return qc(t);if(0===i.length){if(Qc(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Jc(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Yc(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Kc(t))return qc(t)}var a,c,l="",p=!1,f=["{","}"];return a=t,Array.isArray(a)&&(p=!0,f=["[","]"]),Qc(t)&&(l=" [Function"+(t.name?": "+t.name:"")+"]"),Jc(t)&&(l=" "+RegExp.prototype.toString.call(t)),Yc(t)&&(l=" "+Date.prototype.toUTCString.call(t)),Kc(t)&&(l=" "+qc(t)),0!==i.length||p&&0!=t.length?n<0?Jc(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=p?function(e,t,n,r,o){for(var i=[],u=0,s=t.length;u60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(c,l,f)):f[0]+l+f[1]}function qc(e){return"["+Error.prototype.toString.call(e)+"]"}function Wc(e,t,n,r,o,i){var u,s,a;if((a=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=a.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):a.set&&(s=e.stylize("[Setter]","special")),nl(r,o)||(u="["+o+"]"),s||(e.seen.indexOf(a.value)<0?(s=zc(n)?$c(e,a.value,null):$c(e,a.value,n-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),Gc(u)){if(i&&o.match(/^\d+$/))return s;(u=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=e.stylize(u,"name")):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=e.stylize(u,"string"))}return u+": "+s}function Uc(e){return"boolean"==typeof e}function zc(e){return null===e}function Hc(e){return"string"==typeof e}function Gc(e){return void 0===e}function Jc(e){return Xc(e)&&"[object RegExp]"===el(e)}function Xc(e){return"object"==_typeof(e)&&null!==e}function Yc(e){return Xc(e)&&"[object Date]"===el(e)}function Kc(e){return Xc(e)&&("[object Error]"===el(e)||e instanceof Error)}function Qc(e){return"function"==typeof e}function Zc(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==_typeof(e)||void 0===e}function el(e){return Object.prototype.toString.call(e)}function tl(e,t){if(!t||!Xc(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function nl(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function rl(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o=0){var u=r.indexOf("\n",i+1);r=r.substring(u+1)}this.stack=r}}}function ml(e,t){return"string"==typeof e?e.length=0;s--)if(a[s]!==c[s])return!1;for(s=a.length-1;s>=0;s--)if(!Al(e[u=a[s]],t[u],n,r))return!1;return!0}(e,t,n,r))}return n?e===t:e==t}function Fl(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function xl(e,t,n){Al(e,t,!1)&&yl(e,t,n,"notDeepEqual",xl)}function Sl(e,t,n){Al(e,t,!0)&&yl(e,t,n,"notDeepStrictEqual",Sl)}function wl(e,t,n){e!==t&&yl(e,t,n,"===",wl)}function Tl(e,t,n){e===t&&yl(e,t,n,"!==",Tl)}function Bl(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function kl(e,t,n,r){var o;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),o=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!o&&yl(o,n,"Missing expected exception"+r);var i="string"==typeof r,u=!e&&o&&!n;if((!e&&Kc(o)&&i&&Bl(o,n)||u)&&yl(o,n,"Got unwanted exception"+r),e&&o&&n&&!Bl(o,n)||!e&&o)throw o}function Nl(e,t,n){kl(!0,e,t,n)}function Pl(e,t,n){kl(!1,e,t,n)}function Ol(e){if(e)throw e}pl.AssertionError=hl,_c(hl,Error),pl.fail=yl,pl.ok=Dl,pl.equal=El,pl.notEqual=bl,pl.deepEqual=Cl,pl.deepStrictEqual=vl,pl.notDeepEqual=xl,pl.notDeepStrictEqual=Sl,pl.strictEqual=wl,pl.notStrictEqual=Tl,pl.throws=Nl,pl.doesNotThrow=Pl,pl.ifError=Ol;var Il=o(Object.freeze({__proto__:null,default:pl,AssertionError:hl,fail:yl,ok:Dl,assert:Dl,equal:El,notEqual:bl,deepEqual:Cl,deepStrictEqual:vl,notDeepEqual:xl,notDeepStrictEqual:Sl,strictEqual:wl,notStrictEqual:Tl,throws:Nl,doesNotThrow:Pl,ifError:Ol})),_Rn$builders=Rn.builders,jl=_Rn$builders.line,Ll=_Rn$builders.hardline,_l=_Rn$builders.breakParent,Ml=_Rn$builders.indent,Rl=_Rn$builders.lineSuffix,Vl=_Rn$builders.join,$l=_Rn$builders.cursor,ql=rn.hasNewline,Wl=rn.skipNewline,Ul=rn.skipSpaces,zl=rn.isPreviousLineEmpty,Hl=rn.addLeadingComment,Gl=rn.addDanglingComment,Jl=rn.addTrailingComment,Xl=new WeakMap;function Yl(e,t,n){if(e){var r=t.printer,o=t.locStart,i=t.locEnd;if(n){if(r.canAttachComment&&r.canAttachComment(e)){var _t86;for(_t86=n.length-1;_t86>=0&&!(o(n[_t86])<=o(e)&&i(n[_t86])<=i(e));--_t86);return void n.splice(_t86+1,0,e)}}else if(Xl.has(e))return Xl.get(e);var u=r.getCommentChildNodes&&r.getCommentChildNodes(e,t)||"object"==_typeof(e)&&Object.entries(e).filter((function(_ref57){var e=_slicedToArray(_ref57,1)[0];return"enclosingNode"!==e&&"precedingNode"!==e&&"followingNode"!==e&&"tokens"!==e&&"comments"!==e})).map((function(_ref59){return _slicedToArray(_ref59,2)[1]}));if(u){n||(n=[],Xl.set(e,n));var _step45,_iterator45=_createForOfIteratorHelper(u);try{for(_iterator45.s();!(_step45=_iterator45.n()).done;)Yl(_step45.value,t,n)}catch(err){_iterator45.e(err)}finally{_iterator45.f()}return n}}}function Kl(e,t,n,r){for(var c,l,o=n.locStart,i=n.locEnd,u=o(t),s=i(t),a=Yl(e,n),p=0,f=a.length;p>1,_r72=a[_e98],_d3=o(_r72),_h3=i(_r72);if(_d3<=u&&s<=_h3)return Kl(_r72,t,n,_r72);if(_h3<=u)c=_r72,p=_e98+1;else{if(!(s<=_d3))throw new Error("Comment location overlaps with node location");l=_r72,f=_e98}}if(r&&"TemplateLiteral"===r.type){var _e99=r.quasis,_o24=op(_e99,t,n);c&&op(_e99,c,n)!==_o24&&(c=null),l&&op(_e99,l,n)!==_o24&&(l=null)}return{enclosingNode:r,precedingNode:c,followingNode:l}}var Ql=function Ql(){return!1},Zl=function Zl(e){return!/[\S\n\u2028\u2029]/.test(e)};function ep(e,t,n,r){var _n$r=n[r],o=_n$r.comment,i=_n$r.precedingNode,u=t.locStart,s=t.locEnd,a=u(o);if(i)for(var _t87=r-1;_t87>=0;_t87--){var _n$_t=n[_t87],_r73=_n$_t.comment;if(_n$_t.precedingNode!==i||!Zl(e.slice(s(_r73),a)))break;a=u(_r73)}return ql(e,a,{backwards:!0})}function tp(e,t,n,r){var _n$r2=n[r],o=_n$r2.comment,i=_n$r2.followingNode,u=t.locStart,s=t.locEnd,a=s(o);if(i)for(var _t88=r+1;_t880;--a){var _e100=e[a-1],_r75=_e100.comment,_u11=_e100.precedingNode,_l4=_e100.followingNode;Il.strictEqual(_u11,o),Il.strictEqual(_l4,i);var _p3=t.slice(n.locEnd(_r75),c);if(!s.test(_p3))break;c=n.locStart(_r75)}var _step46,_iterator46=_createForOfIteratorHelper(e.entries());try{for(_iterator46.s();!(_step46=_iterator46.n()).done;){var _step46$value=_slicedToArray(_step46.value,2),_t89=_step46$value[0],_n65=_step46$value[1].comment;_t891&&_e101.comments.sort((function(e,t){return n.locStart(e)-n.locStart(t)}))}e.length=0}}function rp(e,t){return e.getValue().printed=!0,t.printer.printComment(e,t)}function op(e,t,n){for(var r=n.locStart(t)-1,_t90=1;_t90=0){Jl(_g3,_n66);continue}}var _D2=void 0;if(a?_D2=[_t92]:(_n66.enclosingNode=_s17,_n66.precedingNode=_r76,_n66.followingNode=_d4,_D2=[_n66,_h4,_m3,_g3,_y3]),ep(_h4,_m3,f,_e105))_n66.placement="ownLine",c.apply(void 0,_toConsumableArray(_D2))||(_d4?Hl(_d4,_n66):_r76?Jl(_r76,_n66):Gl(_s17||_g3,_n66));else if(tp(_h4,_m3,f,_e105))_n66.placement="endOfLine",l.apply(void 0,_toConsumableArray(_D2))||(_r76?Jl(_r76,_n66):_d4?Hl(_d4,_n66):Gl(_s17||_g3,_n66));else if(_n66.placement="remaining",p.apply(void 0,_toConsumableArray(_D2)));else if(_r76&&_d4){var _e106=o.length;_e106>0&&o[_e106-1].followingNode!==_d4&&np(o,_h4,_m3),o.push(_t92)}else _r76?Jl(_r76,_n66):_d4?Hl(_d4,_n66):Gl(_s17||_g3,_n66)}}catch(err){_iterator47.e(err)}finally{_iterator47.f()}if(np(o,n,r),!a){var _step48,_iterator48=_createForOfIteratorHelper(e);try{for(_iterator48.s();!(_step48=_iterator48.n()).done;){var _t91=_step48.value;delete _t91.precedingNode,delete _t91.enclosingNode,delete _t91.followingNode}}catch(err){_iterator48.e(err)}finally{_iterator48.f()}}}},printComments:function printComments(e,t,n,r){var _ip=ip(e,n,r),o=_ip.leading,i=_ip.trailing;return o||i?[o,t,i]:t},printCommentsSeparately:ip,printDanglingComments:function printDanglingComments(e,t,n,r){var o=[],i=e.getValue();return i&&i.comments?(e.each((function(){var n=e.getValue();n.leading||n.trailing||r&&!r(n)||o.push(rp(e,t))}),"comments"),0===o.length?"":n?Vl(Ll,o):Ml([Ll,Vl(Ll,o)])):""},getSortedChildNodes:Yl,ensureAllCommentsPrinted:function ensureAllCommentsPrinted(e){if(e){var _step49,_iterator49=_createForOfIteratorHelper(e);try{for(_iterator49.s();!(_step49=_iterator49.n()).done;){var _t93=_step49.value;if(!_t93.printed)throw new Error('Comment "'+_t93.value.trim()+'" was not printed. Please report this error!');delete _t93.printed}}catch(err){_iterator49.e(err)}finally{_iterator49.f()}}}};function sp(e,t){var n=ap(e.stack,t);return-1===n?null:e.stack[n]}function ap(e,t){for(var _n67=e.length-1;_n67>=0;_n67-=2){var r=e[_n67];if(r&&!Array.isArray(r)&&--t<0)return _n67}return-1}var cp=function(){function cp(e){_classCallCheck(this,cp),this.stack=[e]}return _createClass(cp,[{key:"getName",value:function getName(){var e=this.stack,t=e.length;return t>1?e[t-2]:null}},{key:"getValue",value:function getValue(){return ke(this.stack)}},{key:"getNode",value:function getNode(){return sp(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"getParentNode",value:function getParentNode(){return sp(this,(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1)}},{key:"call",value:function call(e){for(var n=this.stack,r=n.length,o=ke(n),_len11=arguments.length,t=new Array(_len11>1?_len11-1:0),_key11=1;_key11<_len11;_key11++)t[_key11-1]=arguments[_key11];for(var _i47=0,_t94=t;_i47<_t94.length;_i47++){var _e107=_t94[_i47];o=o[_e107],n.push(_e107,o)}var i=e(this);return n.length=r,i}},{key:"callParent",value:function callParent(e){var _this$stack,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=ap(this.stack,t+1),r=this.stack.splice(n+1),o=e(this);return(_this$stack=this.stack).push.apply(_this$stack,_toConsumableArray(r)),o}},{key:"each",value:function each(e){for(var n=this.stack,r=n.length,o=ke(n),_len12=arguments.length,t=new Array(_len12>1?_len12-1:0),_key12=1;_key12<_len12;_key12++)t[_key12-1]=arguments[_key12];for(var _i48=0,_t95=t;_i48<_t95.length;_i48++){var _e108=_t95[_i48];o=o[_e108],n.push(_e108,o)}for(var _t96=0;_t961?_len13-1:0),_key13=1;_key13<_len13;_key13++)t[_key13-1]=arguments[_key13];return this.each.apply(this,[function(t,r,o){n[r]=e(t,r,o)}].concat(t)),n}},{key:"try",value:function _try(e){var t=this.stack,n=_toConsumableArray(t);try{return e()}finally{t.length=0,t.push.apply(t,n)}}},{key:"match",value:function match(){for(var t=this.stack.length-1,n=null,r=this.stack[t--],_len14=arguments.length,e=new Array(_len14),_key14=0;_key14<_len14;_key14++)e[_key14]=arguments[_key14];for(var _i49=0,_e109=e;_i49<_e109.length;_i49++){var _o27=_e109[_i49];if(void 0===r)return!1;var _e110=null;if("number"==typeof n&&(_e110=n,n=this.stack[t--],r=this.stack[t--]),_o27&&!_o27(r,n,_e110))return!1;n=this.stack[t--],r=this.stack[t--]}return!0}},{key:"findAncestor",value:function findAncestor(e){for(var t=this.stack.length-1,n=null,r=this.stack[t--];r;){var _o28=null;if("number"==typeof n&&(_o28=n,n=this.stack[t--],r=this.stack[t--]),null!==n&&e(r,n,_o28))return r;n=this.stack[t--],r=this.stack[t--]}}}]),cp}(),lp=Rn.utils.stripTrailingHardline,pp=jc.normalize,fp={printSubtree:function printSubtree(e,t,n,r){if(n.printer.embed&&"auto"===n.embeddedLanguageFormatting)return n.printer.embed(e,t,(function(e,t,o){return function(e,t,n,r){var _ref61$stripTrailingH=(arguments.length>4&&void 0!==arguments[4]?arguments[4]:{}).stripTrailingHardline,o=void 0!==_ref61$stripTrailingH&&_ref61$stripTrailingH,i=pp(Object.assign({},n,t,{parentParser:n.parser,originalText:e}),{passThrough:!0}),u=Bc.parse(e,i),s=u.ast;e=u.text;var a=s.comments;delete s.comments,up.attach(a,s,e,i),i[Symbol.for("comments")]=a||[],i[Symbol.for("tokens")]=s.tokens||[];var c=r(s,i);return up.ensureAllCommentsPrinted(a),o?"string"==typeof c?c.replace(/(?:\r?\n)*$/,""):lp(c):c}(e,t,n,r,o)}),n)}},_Rn$builders2=Rn.builders,dp=_Rn$builders2.hardline,hp=_Rn$builders2.addAlignmentToDoc,mp=Rn.utils.propagateBreaks,gp=up.printComments;function yp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=t.printer;o.preprocess&&(e=o.preprocess(e,t));var i=new Map,u=new cp(e),s=a();return n>0&&(s=hp([dp,s],n,t.tabWidth)),mp(s),s;function a(e,t){return void 0===e||e===u?c(t):Array.isArray(e)?u.call.apply(u,[function(){return c(t)}].concat(_toConsumableArray(e))):u.call((function(){return c(t)}),e)}function c(e){var n=u.getValue(),o=n&&"object"==_typeof(n)&&void 0===e;if(o&&i.has(n))return i.get(n);var s=function(e,t,n,o){var s,a,i=e.getValue(),u=t.printer;if(u.hasPrettierIgnore&&u.hasPrettierIgnore(e)){var _ref62=function(e,t){var _step50,n=t.originalText,r=t[Symbol.for("comments")],o=t.locStart,i=t.locEnd,u=o(e),s=i(e),a=new Set,_iterator50=_createForOfIteratorHelper(r);try{for(_iterator50.s();!(_step50=_iterator50.n()).done;){var _e111=_step50.value;o(_e111)>=u&&i(_e111)<=s&&(_e111.printed=!0,a.add(_e111))}}catch(err){_iterator50.e(err)}finally{_iterator50.f()}return{doc:n.slice(u,s),printedComments:a}}(i,t);s=_ref62.doc,a=_ref62.printedComments}else{if(i)try{s=fp.printSubtree(e,n,t,yp)}catch(e){if(r.PRETTIER_DEBUG)throw e}s||(s=u.print(e,t,n,o))}return u.willPrintOwnComments&&u.willPrintOwnComments(e,t)||(s=gp(e,s,t,a)),s}(u,t,a,e);return o&&i.set(n,s),s}}var Dp=yp;function Ep(e){for(var t=e.length-1;;){var _n68=e[t];if(!_n68||"Program"!==_n68.type&&"File"!==_n68.type)break;t--}return e.slice(0,t+1)}function bp(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=arguments.length>5?arguments[5]:void 0,u=n.locStart,s=n.locEnd,a=u(e),c=s(e);if(!(t>c||tr);var s=e.slice(r,o).search(/\S/),a=-1===s;if(!a)for(r+=s;o>r&&!/\S/.test(e[o-1]);--o);var p,f,c=bp(n,r,t,(function(e,n){return Ap(t,e,n)}),[],"rangeStart"),l=a?c:bp(n,o,t,(function(e){return Ap(t,e)}),[],"rangeEnd");if(!c||!l)return{rangeStart:0,rangeEnd:0};if(function(_ref63){var e=_ref63.parser;return"json"===e||"json5"===e||"json-stringify"===e}(t)){var _e112=function(e,t){var n=[e.node].concat(_toConsumableArray(e.parentNodes)),r=new Set([t.node].concat(_toConsumableArray(t.parentNodes)));return n.find((function(e){return Cp.has(e.type)&&r.has(e)}))}(c,l);p=_e112,f=_e112}else{var _ref64=function(e,t,_ref65){var n=_ref65.locStart,r=_ref65.locEnd,o=e.node,i=t.node;if(o===i)return{startNode:o,endNode:i};var _step52,u=n(e.node),_iterator52=_createForOfIteratorHelper(Ep(t.parentNodes));try{for(_iterator52.s();!(_step52=_iterator52.n()).done;){var _e113=_step52.value;if(!(n(_e113)>=u))break;i=_e113}}catch(err){_iterator52.e(err)}finally{_iterator52.f()}var _step53,s=r(t.node),_iterator53=_createForOfIteratorHelper(Ep(e.parentNodes));try{for(_iterator53.s();!(_step53=_iterator53.n()).done;){var _t97=_step53.value;if(!(r(_t97)<=s))break;o=_t97}}catch(err){_iterator53.e(err)}finally{_iterator53.f()}return{startNode:o,endNode:i}}(c,l,t);p=_ref64.startNode,f=_ref64.endNode}return{rangeStart:Math.min(i(p),i(f)),rangeEnd:Math.max(u(p),u(f))}},findNodeAtOffset:bp},xp=Rn.printer.printDocToString,Sp=Rn.debug.printDocToDebug,wp=rn.getAlignmentSize,Tp=on.guessEndOfLine,Bp=on.convertEndOfLineToChars,kp=on.countEndOfLineChars,Np=on.normalizeEndOfLine,Pp=jc.normalize,Op=Symbol("cursor");function Ip(e,t,n){var r=t.comments;return r&&(delete t.comments,up.attach(r,t,e,n)),n[Symbol.for("comments")]=r||[],n[Symbol.for("tokens")]=t.tokens||[],n.originalText=e,r}function jp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!e||0===e.trim().length)return{formatted:"",cursorOffset:-1,comments:[]};var _Bc$parse=Bc.parse(e,t),r=_Bc$parse.ast,o=_Bc$parse.text;if(t.cursorOffset>=0){var _e114=Fp.findNodeAtOffset(r,t.cursorOffset,t);_e114&&_e114.node&&(t.cursorNode=_e114.node)}var i=Ip(o,r,t),u=Dp(r,t,n),s=xp(u,t);if(up.ensureAllCommentsPrinted(i),n>0){var _e115=s.formatted.trim();void 0!==s.cursorNodeStart&&(s.cursorNodeStart-=s.formatted.indexOf(_e115)),s.formatted=_e115+Bp(t.endOfLine)}if(t.cursorOffset>=0){var _e116,_n69,_r77,_u13,_a3;if(t.cursorNode&&s.cursorNodeText?(_e116=t.locStart(t.cursorNode),_n69=o.slice(_e116,t.locEnd(t.cursorNode)),_r77=t.cursorOffset-_e116,_u13=s.cursorNodeStart,_a3=s.cursorNodeText):(_e116=0,_n69=o,_r77=t.cursorOffset,_u13=0,_a3=s.formatted),_n69===_a3)return{formatted:s.formatted,cursorOffset:_u13+_r77,comments:i};var _c7=_n69.split("");_c7.splice(_r77,0,Op);var _step54,_l5=_a3.split(""),_f3=_u13,_iterator54=_createForOfIteratorHelper(pe.diffArrays(_c7,_l5));try{for(_iterator54.s();!(_step54=_iterator54.n()).done;){var _e117=_step54.value;if(_e117.removed){if(_e117.value.includes(Op))break}else _f3+=_e117.count}}catch(err){_iterator54.e(err)}finally{_iterator54.f()}return{formatted:s.formatted,cursorOffset:_f3,comments:i}}return{formatted:s.formatted,cursorOffset:-1,comments:i}}function Lp(e,t,n){return"number"!=typeof t||Number.isNaN(t)||t<0||t>e.length?n:t}function _p(e,t){var n=t.cursorOffset,r=t.rangeStart,o=t.rangeEnd;return n=Lp(e,n,-1),r=Lp(e,r,0),o=Lp(e,o,e.length),Object.assign({},t,{cursorOffset:n,rangeStart:r,rangeEnd:o})}function Mp(e,t){var _p5=_p(e,t),n=_p5.cursorOffset,r=_p5.rangeStart,o=_p5.rangeEnd,i=_p5.endOfLine,u="\ufeff"===e.charAt(0);if(u&&(e=e.slice(1),n--,r--,o--),"auto"===i&&(i=Tp(e)),e.includes("\r")){var _t98=function _t98(t){return kp(e.slice(0,Math.max(t,0)),"\r\n")};n-=_t98(n),r-=_t98(r),o-=_t98(o),e=Np(e)}return{hasBOM:u,text:e,options:_p(e,Object.assign({},t,{cursorOffset:n,rangeStart:r,rangeEnd:o,endOfLine:i}))}}function Rp(e,t){var n=Bc.resolveParser(t);return!n.hasPragma||n.hasPragma(e)}function Vp(e,t){var n,_Mp=Mp(e,Pp(t)),r=_Mp.hasBOM,o=_Mp.text,i=_Mp.options;return i.rangeStart>=i.rangeEnd&&""!==o||i.requirePragma&&!Rp(o,i)?{formatted:e,cursorOffset:t.cursorOffset,comments:[]}:(i.rangeStart>0||i.rangeEndo&&t.cursorOffset=i?f+=p.length-u.length:l.cursorOffset>=0&&(f=l.cursorOffset+o);var d=r.slice(0,o)+p+r.slice(i);if("lf"!==t.endOfLine){var _e118=Bp(t.endOfLine);f>=0&&"\r\n"===_e118&&(f+=kp(d.slice(0,f),"\n")),d=d.replace(/\n/g,_e118)}return{formatted:d,cursorOffset:f,comments:l.comments}}(o,i):(!i.requirePragma&&i.insertPragma&&i.printer.insertPragma&&!Rp(o,i)&&(o=i.printer.insertPragma(o)),n=jp(o,i)),r&&(n.formatted="\ufeff"+n.formatted,n.cursorOffset>=0&&n.cursorOffset++),n)}var $p={formatWithCursor:Vp,parse:function parse(e,t,n){var _Mp2=Mp(e,Pp(t)),r=_Mp2.text,o=_Mp2.options,i=Bc.parse(r,o);return n&&(i.ast=Lc(i.ast,o)),i},formatAST:function formatAST(e,t){t=Pp(t);var n=Dp(e,t);return xp(n,t)},formatDoc:function formatDoc(e,t){return Vp(Sp(e),Object.assign({},t,{parser:"__js_expression"})).formatted},printToDoc:function printToDoc(e,t){t=Pp(t);var _Bc$parse3=Bc.parse(e,t),n=_Bc$parse3.ast;return Ip(_Bc$parse3.text,n,t),Dp(n,t)},printDocToString:function printDocToString(e,t){return xp(e,Pp(t))}},qp=rn.getMaxContinuousCount,Wp=rn.getStringWidth,Up=rn.getAlignmentSize,zp=rn.getIndentSize,Hp=rn.skip,Gp=rn.skipWhitespace,Jp=rn.skipSpaces,Xp=rn.skipNewline,Yp=rn.skipToLineEnd,Kp=rn.skipEverythingButNewLine,Qp=rn.skipInlineComment,Zp=rn.skipTrailingComment,ef=rn.hasNewline,tf=rn.hasNewlineInRange,nf=rn.hasSpaces,rf=rn.isNextLineEmpty,of=rn.isNextLineEmptyAfterIndex,uf=rn.isPreviousLineEmpty,sf=rn.getNextNonSpaceNonCommentCharacterIndex,af=rn.makeString,cf=rn.addLeadingComment,lf=rn.addDanglingComment,pf=rn.addTrailingComment,ff={getMaxContinuousCount:qp,getStringWidth:Wp,getAlignmentSize:Up,getIndentSize:zp,skip:Hp,skipWhitespace:Gp,skipSpaces:Jp,skipNewline:Xp,skipToLineEnd:Yp,skipEverythingButNewLine:Kp,skipInlineComment:Qp,skipTrailingComment:Zp,hasNewline:ef,hasNewlineInRange:tf,hasSpaces:nf,isNextLineEmpty:rf,isNextLineEmptyAfterIndex:of,isPreviousLineEmpty:uf,getNextNonSpaceNonCommentCharacterIndex:sf,makeString:af,addLeadingComment:cf,addDanglingComment:lf,addTrailingComment:pf},df=function df(t,n){var r=t.languageId,o=e(t,["languageId"]);return Object.assign({linguistLanguageId:r},o,n(t))},hf=i((function(e){!function(){function t(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function n(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}e.exports={isExpression:function isExpression(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:t,isIterationStatement:function isIterationStatement(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function isSourceElement(e){return t(e)||null!=e&&"FunctionDeclaration"===e.type},isProblematicIfStatement:function isProblematicIfStatement(e){var t;if("IfStatement"!==e.type)return!1;if(null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=n(t)}while(t);return!1},trailingStatement:n}}()})),mf=i((function(e){!function(){var t,n,r,o,i,u;function s(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],o=new Array(128),u=0;u<128;++u)o[u]=u>=97&&u<=122||u>=65&&u<=90||36===u||95===u;for(i=new Array(128),u=0;u<128;++u)i[u]=u>=97&&u<=122||u>=65&&u<=90||u>=48&&u<=57||36===u||95===u;e.exports={isDecimalDigit:function isDecimalDigit(e){return 48<=e&&e<=57},isHexDigit:function isHexDigit(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function isOctalDigit(e){return e>=48&&e<=55},isWhiteSpace:function isWhiteSpace(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&r.indexOf(e)>=0},isLineTerminator:function isLineTerminator(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function isIdentifierStartES5(e){return e<128?o[e]:n.NonAsciiIdentifierStart.test(s(e))},isIdentifierPartES5:function isIdentifierPartES5(e){return e<128?i[e]:n.NonAsciiIdentifierPart.test(s(e))},isIdentifierStartES6:function isIdentifierStartES6(e){return e<128?o[e]:t.NonAsciiIdentifierStart.test(s(e))},isIdentifierPartES6:function isIdentifierPartES6(e){return e<128?i[e]:t.NonAsciiIdentifierPart.test(s(e))}}}()})),gf=i((function(e){!function(){var t=mf;function n(e,t){return!(!t&&"yield"===e)&&r(e,t)}function r(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function o(e,t){return"null"===e||"true"===e||"false"===e||n(e,t)}function i(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function u(e){var n,r,o;if(0===e.length)return!1;if(o=e.charCodeAt(0),!t.isIdentifierStartES5(o))return!1;for(n=1,r=e.length;n=r)return!1;if(!(56320<=(i=e.charCodeAt(n))&&i<=57343))return!1;o=1024*(o-55296)+(i-56320)+65536}if(!u(o))return!1;u=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:n,isKeywordES6:r,isReservedWordES5:o,isReservedWordES6:i,isRestrictedWord:function isRestrictedWord(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:u,isIdentifierNameES6:s,isIdentifierES5:function isIdentifierES5(e,t){return u(e)&&!o(e,t)},isIdentifierES6:function isIdentifierES6(e,t){return s(e)&&!i(e,t)}}}()})),yf=i((function(e,t){t.ast=hf,t.code=mf,t.keyword=gf})).keyword.isIdentifierNameES5,Df=rn.getLast,Ef=rn.hasNewline,bf=rn.skipWhitespace,Cf=rn.isNonEmptyArray,vf=rn.isNextLineEmptyAfterIndex,Af=ea.locStart,Ff=ea.locEnd,xf=ea.hasSameLocStart,Sf="(?:(?=.)\\s)",wf=new RegExp("^".concat(Sf,"*:")),Tf=new RegExp("^".concat(Sf,"*::"));function Bf(e){return"AssignmentExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type||"ConditionalExpression"===e.type||Uf(e)||zf(e)||"SequenceExpression"===e.type||"TaggedTemplateExpression"===e.type||"BindExpression"===e.type||"UpdateExpression"===e.type&&!e.prefix||"TSAsExpression"===e.type||"TSNonNullExpression"===e.type}function kf(e){return"Block"===e.type||"CommentBlock"===e.type||"MultiLine"===e.type}function Nf(e){return"Line"===e.type||"CommentLine"===e.type||"SingleLine"===e.type||"HashbangComment"===e.type||"HTMLOpen"===e.type||"HTMLClose"===e.type}var Pf=new Set(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function Of(e){return e&&Pf.has(e.type)}function If(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"==typeof e.value}function jf(e){return"StringLiteral"===e.type||"Literal"===e.type&&"string"==typeof e.value}function Lf(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type}function _f(e){return Uf(e)&&"Identifier"===e.callee.type&&("async"===e.callee.name||"inject"===e.callee.name||"fakeAsync"===e.callee.name)}function Mf(e){return"JSXElement"===e.type||"JSXFragment"===e.type}function Rf(e){return"get"===e.kind||"set"===e.kind}function Vf(e){return Rf(e)||xf(e,e.value)}var $f=new Set(["BinaryExpression","LogicalExpression","NGPipeExpression"]),qf=new Set(["AnyTypeAnnotation","TSAnyKeyword","NullLiteralTypeAnnotation","TSNullKeyword","ThisTypeAnnotation","TSThisType","NumberTypeAnnotation","TSNumberKeyword","VoidTypeAnnotation","TSVoidKeyword","BooleanTypeAnnotation","TSBooleanKeyword","BigIntTypeAnnotation","TSBigIntKeyword","SymbolTypeAnnotation","TSSymbolKeyword","StringTypeAnnotation","TSStringKeyword","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType","EmptyTypeAnnotation","MixedTypeAnnotation","TSNeverKeyword","TSObjectKeyword","TSUndefinedKeyword","TSUnknownKeyword"]),Wf=/^(skip|[fx]?(it|describe|test))$/;function Uf(e){return e&&("CallExpression"===e.type||"OptionalCallExpression"===e.type)}function zf(e){return e&&("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)}function Hf(e,t){return Mf(t)?id(t):ad(t,ud.Leading,(function(t){return Ef(e,Ff(t))}))}function Gf(e){return/^(\d+|\d+\.\d+)$/.test(e)}function Jf(e){return e.quasis.some((function(e){return e.value.raw.includes("\n")}))}function Xf(e){return e.extra?e.extra.raw:e.raw}var _step55,Yf={"==":!0,"!=":!0,"===":!0,"!==":!0},Kf={"*":!0,"/":!0,"%":!0},Qf={">>":!0,">>>":!0,"<<":!0},Zf={},_iterator55=_createForOfIteratorHelper([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].entries());try{for(_iterator55.s();!(_step55=_iterator55.n()).done;){var _step79,_step55$value=_slicedToArray(_step55.value,2),_e216=_step55$value[0],_iterator79=_createForOfIteratorHelper(_step55$value[1]);try{for(_iterator79.s();!(_step79=_iterator79.n()).done;){var _n134=_step79.value;Zf[_n134]=_e216}}catch(err){_iterator79.e(err)}finally{_iterator79.f()}}}catch(err){_iterator55.e(err)}finally{_iterator55.f()}function ed(e){return Zf[e]}var td=new WeakMap;function nd(e){if(td.has(e))return td.get(e);var t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push.apply(t,_toConsumableArray(e.parameters)):Array.isArray(e.params)&&t.push.apply(t,_toConsumableArray(e.params)),e.rest&&t.push(e.rest),td.set(e,t),t}var rd=new WeakMap;function od(e){return"prettier-ignore"===e.value.trim()&&!e.unignore}function id(e){return e&&(e.prettierIgnore||ad(e,ud.PrettierIgnore))}var ud={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},sd=function sd(e,t){if("function"==typeof e&&(t=e,e=0),e||t)return function(n,r,o){return!(e&ud.Leading&&!n.leading||e&ud.Trailing&&!n.trailing||e&ud.Dangling&&(n.leading||n.trailing)||e&ud.Block&&!kf(n)||e&ud.Line&&!Nf(n)||e&ud.First&&0!==r||e&ud.Last&&r!==o.length-1||e&ud.PrettierIgnore&&!od(n)||t&&!t(n))}};function ad(e,t,n){if(!e||!Cf(e.comments))return!1;var r=sd(t,n);return!r||e.comments.some(r)}function cd(e,t,n){if(!e||!Array.isArray(e.comments))return[];var r=sd(t,n);return r?e.comments.filter(r):e.comments}function ld(e){return Uf(e)||"NewExpression"===e.type||"ImportExpression"===e.type}var pd={getFunctionParameters:nd,iterateFunctionParametersPath:function iterateFunctionParametersPath(e,t){var n=e.getValue(),r=0,o=function o(e){return t(e,r++)};n.this&&e.call(o,"this"),Array.isArray(n.parameters)?e.each(o,"parameters"):Array.isArray(n.params)&&e.each(o,"params"),n.rest&&e.call(o,"rest")},getCallArguments:function getCallArguments(e){if(rd.has(e))return rd.get(e);var t="ImportExpression"===e.type?[e.source]:e.arguments;return rd.set(e,t),t},iterateCallArgumentsPath:function iterateCallArgumentsPath(e,t){"ImportExpression"===e.getValue().type?e.call((function(e){return t(e,0)}),"source"):e.each(t,"arguments")},hasRestParameter:function hasRestParameter(e){if(e.rest)return!0;var t=nd(e);return t.length>0&&"RestElement"===Df(t).type},getLeftSidePathName:function getLeftSidePathName(e,t){if(t.expressions)return["expressions",0];if(t.left)return["left"];if(t.test)return["test"];if(t.object)return["object"];if(t.callee)return["callee"];if(t.tag)return["tag"];if(t.argument)return["argument"];if(t.expression)return["expression"];throw new Error("Unexpected node has no left side.")},getParentExportDeclaration:function getParentExportDeclaration(e){var t=e.getParentNode();return"declaration"===e.getName()&&Of(t)?t:null},getTypeScriptMappedTypeModifier:function getTypeScriptMappedTypeModifier(e,t){return"+"===e?"+"+t:"-"===e?"-"+t:t},hasFlowAnnotationComment:function hasFlowAnnotationComment(e){return e&&kf(e[0])&&Tf.test(e[0].value)},hasFlowShorthandAnnotationComment:function hasFlowShorthandAnnotationComment(e){return e.extra&&e.extra.parenthesized&&Cf(e.trailingComments)&&kf(e.trailingComments[0])&&wf.test(e.trailingComments[0].value)},hasLeadingOwnLineComment:Hf,hasNakedLeftSide:Bf,hasNode:function e(t,n){if(!t||"object"!=_typeof(t))return!1;if(Array.isArray(t))return t.some((function(t){return e(t,n)}));var r=n(t);return"boolean"==typeof r?r:Object.values(t).some((function(t){return e(t,n)}))},hasIgnoreComment:function hasIgnoreComment(e){return id(e.getValue())},hasNodeIgnoreComment:id,identity:function identity(e){return e},isBinaryish:function isBinaryish(e){return $f.has(e.type)},isBlockComment:kf,isCallLikeExpression:ld,isLineComment:Nf,isPrettierIgnoreComment:od,isCallExpression:Uf,isMemberExpression:zf,isExportDeclaration:Of,isFlowAnnotationComment:function isFlowAnnotationComment(e,t){var n=Af(t),r=bf(e,Ff(t));return!1!==r&&"/*"===e.slice(n,n+2)&&"*/"===e.slice(r,r+2)},isFunctionCompositionArgs:function isFunctionCompositionArgs(e){if(e.length<=1)return!1;var _step56,t=0,_iterator56=_createForOfIteratorHelper(e);try{for(_iterator56.s();!(_step56=_iterator56.n()).done;){var _n70=_step56.value;if(Lf(_n70)){if((t+=1)>1)return!0}else if(Uf(_n70)){var _step57,_iterator57=_createForOfIteratorHelper(_n70.arguments);try{for(_iterator57.s();!(_step57=_iterator57.n()).done;)if(Lf(_step57.value))return!0}catch(err){_iterator57.e(err)}finally{_iterator57.f()}}}}catch(err){_iterator56.e(err)}finally{_iterator56.f()}return!1},isFunctionNotation:Vf,isFunctionOrArrowExpression:Lf,isGetterOrSetter:Rf,isJestEachTemplateLiteral:function isJestEachTemplateLiteral(e,t){var n=/^[fx]?(describe|it|test)$/;return"TaggedTemplateExpression"===t.type&&t.quasi===e&&"MemberExpression"===t.tag.type&&"Identifier"===t.tag.property.type&&"each"===t.tag.property.name&&("Identifier"===t.tag.object.type&&n.test(t.tag.object.name)||"MemberExpression"===t.tag.object.type&&"Identifier"===t.tag.object.property.type&&("only"===t.tag.object.property.name||"skip"===t.tag.object.property.name)&&"Identifier"===t.tag.object.object.type&&n.test(t.tag.object.object.name))},isJsxNode:Mf,isLiteral:function isLiteral(e){return"BooleanLiteral"===e.type||"DirectiveLiteral"===e.type||"Literal"===e.type||"NullLiteral"===e.type||"NumericLiteral"===e.type||"BigIntLiteral"===e.type||"DecimalLiteral"===e.type||"RegExpLiteral"===e.type||"StringLiteral"===e.type||"TemplateLiteral"===e.type||"TSTypeLiteral"===e.type||"JSXText"===e.type},isLongCurriedCallExpression:function isLongCurriedCallExpression(e){var t=e.getValue(),n=e.getParentNode();return Uf(t)&&Uf(n)&&n.callee===t&&t.arguments.length>n.arguments.length&&n.arguments.length>0},isSimpleCallArgument:function e(t,n){if(n>=2)return!1;var r=function r(t){return e(t,n+1)},o="Literal"===t.type&&"regex"in t&&t.regex.pattern||"RegExpLiteral"===t.type&&t.pattern;return!(o&&o.length>5)&&("Literal"===t.type||"BigIntLiteral"===t.type||"DecimalLiteral"===t.type||"BooleanLiteral"===t.type||"NullLiteral"===t.type||"NumericLiteral"===t.type||"RegExpLiteral"===t.type||"StringLiteral"===t.type||"Identifier"===t.type||"ThisExpression"===t.type||"Super"===t.type||"PrivateName"===t.type||"PrivateIdentifier"===t.type||"ArgumentPlaceholder"===t.type||"Import"===t.type||("TemplateLiteral"===t.type?t.quasis.every((function(e){return!e.value.raw.includes("\n")}))&&t.expressions.every(r):"ObjectExpression"===t.type?t.properties.every((function(e){return!e.computed&&(e.shorthand||e.value&&r(e.value))})):"ArrayExpression"===t.type?t.elements.every((function(e){return null===e||r(e)})):"ImportExpression"===t.type?r(t.source):ld(t)?e(t.callee,n)&&t.arguments.every(r):zf(t)?e(t.object,n)&&e(t.property,n):"UnaryExpression"!==t.type||"!"!==t.operator&&"-"!==t.operator?"TSNonNullExpression"===t.type&&e(t.expression,n):e(t.argument,n)))},isMemberish:function isMemberish(e){return zf(e)||"BindExpression"===e.type&&Boolean(e.object)},isNumericLiteral:If,isSignedNumericLiteral:function isSignedNumericLiteral(e){return"UnaryExpression"===e.type&&("+"===e.operator||"-"===e.operator)&&If(e.argument)},isObjectType:function isObjectType(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type},isObjectTypePropertyAFunction:function isObjectTypePropertyAFunction(e){return!("ObjectTypeProperty"!==e.type&&"ObjectTypeInternalSlot"!==e.type||"FunctionTypeAnnotation"!==e.value.type||e.static||Vf(e))},isSimpleType:function isSimpleType(e){return!(!e||("GenericTypeAnnotation"!==e.type&&"TSTypeReference"!==e.type||e.typeParameters)&&!qf.has(e.type))},isSimpleNumber:Gf,isSimpleTemplateLiteral:function isSimpleTemplateLiteral(e){var t="expressions";"TSTemplateLiteralType"===e.type&&(t="types");var n=e[t];return 0!==n.length&&n.every((function(e){if(ad(e))return!1;if("Identifier"===e.type||"ThisExpression"===e.type)return!0;if(zf(e)){for(var _t99=e;zf(_t99);){if("Identifier"!==_t99.property.type&&"Literal"!==_t99.property.type&&"StringLiteral"!==_t99.property.type&&"NumericLiteral"!==_t99.property.type)return!1;if(ad(_t99=_t99.object))return!1}return"Identifier"===_t99.type||"ThisExpression"===_t99.type}return!1}))},isStringLiteral:jf,isStringPropSafeToUnquote:function isStringPropSafeToUnquote(e,t){return"json"!==t.parser&&jf(e.key)&&Xf(e.key).slice(1,-1)===e.key.value&&(yf(e.key.value)&&!(("typescript"===t.parser||"babel-ts"===t.parser)&&"ClassProperty"===e.type)||Gf(e.key.value)&&String(Number(e.key.value))===e.key.value&&("babel"===t.parser||"espree"===t.parser||"meriyah"===t.parser))},isTemplateOnItsOwnLine:function isTemplateOnItsOwnLine(e,t){return("TemplateLiteral"===e.type&&Jf(e)||"TaggedTemplateExpression"===e.type&&Jf(e.quasi))&&!Ef(t,Af(e),{backwards:!0})},isTestCall:function e(t,n){if("CallExpression"!==t.type)return!1;if(1===t.arguments.length){if(_f(t)&&n&&e(n))return Lf(t.arguments[0]);if(function(e){return"Identifier"===e.callee.type&&/^(before|after)(Each|All)$/.test(e.callee.name)&&1===e.arguments.length}(t))return _f(t.arguments[0])}else if((2===t.arguments.length||3===t.arguments.length)&&("Identifier"===t.callee.type&&Wf.test(t.callee.name)||function(e){return zf(e.callee)&&"Identifier"===e.callee.object.type&&"Identifier"===e.callee.property.type&&Wf.test(e.callee.object.name)&&("only"===e.callee.property.name||"skip"===e.callee.property.name)}(t))&&(function(e){return"TemplateLiteral"===e.type}(t.arguments[0])||jf(t.arguments[0])))return!(t.arguments[2]&&!If(t.arguments[2]))&&((2===t.arguments.length?Lf(t.arguments[1]):function(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type}(t.arguments[1])&&nd(t.arguments[1]).length<=1)||_f(t.arguments[1]));return!1},isTheOnlyJsxElementInMarkdown:function isTheOnlyJsxElementInMarkdown(e,t){if("markdown"!==e.parentParser&&"mdx"!==e.parentParser)return!1;var n=t.getNode();if(!n.expression||!Mf(n.expression))return!1;var r=t.getParentNode();return"Program"===r.type&&1===r.body.length},isTSXFile:function isTSXFile(e){return e.filepath&&/\.tsx$/i.test(e.filepath)},isTypeAnnotationAFunction:function isTypeAnnotationAFunction(e){return!("TypeAnnotation"!==e.type&&"TSTypeAnnotation"!==e.type||"FunctionTypeAnnotation"!==e.typeAnnotation.type||e.static||xf(e,e.typeAnnotation))},isNextLineEmpty:function isNextLineEmpty(e,_ref66){var t=_ref66.originalText;return vf(t,Ff(e))},needsHardlineAfterDanglingComment:function needsHardlineAfterDanglingComment(e){if(!ad(e))return!1;var t=Df(cd(e,ud.Dangling));return t&&!kf(t)},rawText:Xf,returnArgumentHasLeadingComment:function returnArgumentHasLeadingComment(e,t){if(Hf(e.originalText,t))return!0;if(Bf(t))for(var _r78,_o29=t;_r78=(n=_o29).expressions?n.expressions[0]:n.left||n.test||n.callee||n.object||n.tag||n.argument||n.expression;)if(_o29=_r78,Hf(e.originalText,_o29))return!0;var n;return!1},shouldPrintComma:function shouldPrintComma(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"es5";return"es5"===e.trailingComma&&"es5"===t||"all"===e.trailingComma&&("all"===t||"es5"===t)},isBitwiseOperator:function isBitwiseOperator(e){return Boolean(Qf[e])||"|"===e||"^"===e||"&"===e},shouldFlatten:function shouldFlatten(e,t){return!(ed(t)!==ed(e)||"**"===e||Yf[e]&&Yf[t]||"%"===t&&Kf[e]||"%"===e&&Kf[t]||t!==e&&Kf[t]&&Kf[e]||Qf[e]&&Qf[t])},startsWithNoLookaheadToken:function e(t,n){switch((t=function(e){for(;e.left;)e=e.left;return e}(t)).type){case"FunctionExpression":case"ClassExpression":case"DoExpression":return n;case"ObjectExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return e(t.object,n);case"TaggedTemplateExpression":return"FunctionExpression"!==t.tag.type&&e(t.tag,n);case"CallExpression":case"OptionalCallExpression":return"FunctionExpression"!==t.callee.type&&e(t.callee,n);case"ConditionalExpression":return e(t.test,n);case"UpdateExpression":return!t.prefix&&e(t.argument,n);case"BindExpression":return t.object&&e(t.object,n);case"SequenceExpression":return e(t.expressions[0],n);case"TSAsExpression":case"TSNonNullExpression":return e(t.expression,n);default:return!1}},getPrecedence:ed,hasComment:ad,getComments:cd,CommentCheckFlags:ud},fd=rn.getStringWidth,dd=rn.getIndentSize,_Rn$builders3=Rn.builders,hd=_Rn$builders3.join,md=_Rn$builders3.hardline,gd=_Rn$builders3.softline,yd=_Rn$builders3.group,Dd=_Rn$builders3.indent,Ed=_Rn$builders3.align,bd=_Rn$builders3.lineSuffixBoundary,Cd=_Rn$builders3.addAlignmentToDoc,vd=Rn.printer.printDocToString,Ad=Rn.utils.mapDoc,Fd=pd.isBinaryish,xd=pd.isJestEachTemplateLiteral,Sd=pd.isSimpleTemplateLiteral,wd=pd.hasComment,Td=pd.isMemberExpression;function Bd(e){return e.replace(/([\\`]|\${)/g,"\\$1")}var kd={printTemplateLiteral:function printTemplateLiteral(e,t,n){var r=e.getValue();if("TemplateLiteral"===r.type&&xd(r,e.getParentNode())){var _r79=function(e,t,n){var r=e.getNode(),o=r.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(o.length>1||o.some((function(e){return e.length>0}))){t.__inJestEach=!0;var _i50=e.map(n,"expressions");t.__inJestEach=!1;for(var _u14=[],_s19=_i50.map((function(e){return"${"+vd(e,Object.assign({},t,{printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"})).formatted+"}"})),_a4=[{hasLineBreak:!1,cells:[]}],_e120=1;_e1200})))),_iterator58=_createForOfIteratorHelper(_p6.filter((function(e){return!e.hasLineBreak})));try{for(_iterator58.s();!(_step58=_iterator58.n()).done;){var _step59,_iterator59=_createForOfIteratorHelper(_step58.value.cells.entries());try{for(_iterator59.s();!(_step59=_iterator59.n()).done;){var _step59$value=_slicedToArray(_step59.value,2),_t101=_step59$value[0],_n72=_step59$value[1];_l6[_t101]=Math.max(_l6[_t101],fd(_n72))}}catch(err){_iterator59.e(err)}finally{_iterator59.f()}}}catch(err){_iterator58.e(err)}finally{_iterator58.f()}return _u14.push(bd,"`",Dd([md,hd(md,_p6.map((function(e){return hd(" | ",e.cells.map((function(t,n){return e.hasLineBreak?t:t+" ".repeat(_l6[n]-fd(t))})))})))]),md,"`"),_u14}}(e,n,t);if(_r79)return _r79}var o="expressions";"TSTemplateLiteralType"===r.type&&(o="types");var i=[],u=e.map(t,o),s=Sd(r);return s&&(u=u.map((function(e){return vd(e,Object.assign({},n,{printWidth:Number.POSITIVE_INFINITY})).formatted}))),i.push(bd,"`"),e.each((function(e){var a=e.getName();if(i.push(t()),a2&&""===_c10[0].trim()&&""===_c10[1].trim(),_d5=_l8>2&&""===_c10[_l8-1].trim()&&""===_c10[_l8-2].trim(),_h5=_c10.every((function(e){return/^\s*(?:#[^\n\r]*)?$/.test(e)}));if(!_s20&&/#[^\n\r]*$/.test(_c10[_l8-1]))return null;var _m4=null;(_m4=_h5?Kd(_c10):n(_a5,{parser:"graphql"},{stripTrailingHardline:!0}))?(_m4=Xd(_m4,!1),!_t103&&_f5&&u.push(""),u.push(_m4),!_s20&&_d5&&u.push("")):_t103||_s20||!_f5||u.push(""),_p8&&u.push(_p8)}return["`",Hd([Jd,Gd(Jd,u)]),Jd,"`"]},_Rn$builders7=Rn.builders,Zd=_Rn$builders7.indent,eh=_Rn$builders7.line,th=_Rn$builders7.hardline,nh=_Rn$builders7.group,rh=Rn.utils.mapDoc,oh=kd.printTemplateExpressions,ih=kd.uncookTemplateElementValue,uh=0,sh=function sh(e,t,n,r,_ref67){var o=_ref67.parser,i=e.getValue(),u=uh;uh=uh+1>>>0;var s=function s(e){return"PRETTIER_HTML_PLACEHOLDER_".concat(e,"_").concat(u,"_IN_JS")},a=i.quasis.map((function(e,t,n){return t===n.length-1?e.value.cooked:e.value.cooked+s(t)})).join(""),c=oh(e,t);if(0===c.length&&0===a.trim().length)return"``";var l=new RegExp(s("(\\d+)"),"g"),p=0,f=n(a,{parser:o,__onHtmlRoot:function __onHtmlRoot(e){p=e.children.length}},{stripTrailingHardline:!0}),d=rh(f,(function(e){if("string"!=typeof e)return e;for(var t=[],n=e.split(l),_e125=0;_e1251?Zd(nh(d)):nh(d),m,"`"])},ah=pd.hasComment,ch=pd.CommentCheckFlags;function lh(e){return function(e){var t=e.getValue(),n=e.getParentNode(),r=e.getParentNode(1);return r&&t.quasis&&"JSXExpressionContainer"===n.type&&"JSXElement"===r.type&&"style"===r.openingElement.name.name&&r.openingElement.attributes.some((function(e){return"jsx"===e.name.name}))||n&&"TaggedTemplateExpression"===n.type&&"Identifier"===n.tag.type&&"css"===n.tag.name||n&&"TaggedTemplateExpression"===n.type&&"MemberExpression"===n.tag.type&&"css"===n.tag.object.name&&("global"===n.tag.property.name||"resolve"===n.tag.property.name)}(e)||function(e){var t=e.getParentNode();if(!t||"TaggedTemplateExpression"!==t.type)return!1;var n=t.tag;switch(n.type){case"MemberExpression":return fh(n.object)||dh(n);case"CallExpression":return fh(n.callee)||"MemberExpression"===n.callee.type&&("MemberExpression"===n.callee.object.type&&(fh(n.callee.object.object)||dh(n.callee.object))||"CallExpression"===n.callee.object.type&&fh(n.callee.object.callee));case"Identifier":return"css"===n.name;default:return!1}}(e)||function(e){var t=e.getParentNode(),n=e.getParentNode(1);return n&&"JSXExpressionContainer"===t.type&&"JSXAttribute"===n.type&&"JSXIdentifier"===n.name.type&&"css"===n.name.name}(e)||function(e){return e.match.apply(e,[function(e){return"TemplateLiteral"===e.type},function(e,t){return"ArrayExpression"===e.type&&"elements"===t},function(e,t){return("Property"===e.type||"ObjectProperty"===e.type)&&"Identifier"===e.key.type&&"styles"===e.key.name&&"value"===t}].concat(ph))}(e)?"css":function(e){var t=e.getValue(),n=e.getParentNode();return hh(t,"GraphQL")||n&&("TaggedTemplateExpression"===n.type&&("MemberExpression"===n.tag.type&&"graphql"===n.tag.object.name&&"experimental"===n.tag.property.name||"Identifier"===n.tag.type&&("gql"===n.tag.name||"graphql"===n.tag.name))||"CallExpression"===n.type&&"Identifier"===n.callee.type&&"graphql"===n.callee.name)}(e)?"graphql":function(e){return hh(e.getValue(),"HTML")||e.match((function(e){return"TemplateLiteral"===e.type}),(function(e,t){return"TaggedTemplateExpression"===e.type&&"Identifier"===e.tag.type&&"html"===e.tag.name&&"quasi"===t}))}(e)?"html":function(e){return e.match.apply(e,[function(e){return"TemplateLiteral"===e.type},function(e,t){return("Property"===e.type||"ObjectProperty"===e.type)&&"Identifier"===e.key.type&&"template"===e.key.name&&"value"===t}].concat(ph))}(e)?"angular":function(e){var t=e.getValue(),n=e.getParentNode();return n&&"TaggedTemplateExpression"===n.type&&1===t.quasis.length&&"Identifier"===n.tag.type&&("md"===n.tag.name||"markdown"===n.tag.name)}(e)?"markdown":void 0}var ph=[function(e,t){return"ObjectExpression"===e.type&&"properties"===t},function(e,t){return"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t},function(e,t){return"Decorator"===e.type&&"expression"===t}];function fh(e){return"Identifier"===e.type&&"styled"===e.name}function dh(e){return/^[A-Z]/.test(e.object.name)&&"extend"===e.property.name}function hh(e,t){return ah(e,ch.Block|ch.Leading,(function(_ref68){return _ref68.value===" ".concat(t," ")}))}var mh=function mh(e,t,n,r){var o=e.getValue();if("TemplateLiteral"===o.type&&!o.quasis.some((function(_ref70){return null===_ref70.value.cooked}))){var i=lh(e);return i?"markdown"===i?Ld(e,t,n):"css"===i?zd(e,t,n):"graphql"===i?Qd(e,t,n):"html"===i||"angular"===i?sh(e,t,n,r,{parser:i}):void 0:void 0}},gh=pd.isBlockComment,yh=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),Dh=function Dh(e){var _step61,_iterator61=_createForOfIteratorHelper(e.quasis);try{for(_iterator61.s();!(_step61=_iterator61.n()).done;)delete _step61.value.value}catch(err){_iterator61.e(err)}finally{_iterator61.f()}};function Eh(e,t,n){if("Program"===e.type&&delete t.sourceType,"BigIntLiteral"!==e.type&&"BigIntLiteralTypeAnnotation"!==e.type||t.value&&(t.value=t.value.toLowerCase()),"BigIntLiteral"!==e.type&&"Literal"!==e.type||t.bigint&&(t.bigint=t.bigint.toLowerCase()),"DecimalLiteral"===e.type&&(t.value=Number(t.value)),"EmptyStatement"===e.type)return null;if("JSXText"===e.type)return null;if("JSXExpressionContainer"===e.type&&("Literal"===e.expression.type||"StringLiteral"===e.expression.type)&&" "===e.expression.value)return null;if("Property"!==e.type&&"ObjectProperty"!==e.type&&"MethodDefinition"!==e.type&&"ClassProperty"!==e.type&&"ClassMethod"!==e.type&&"PropertyDefinition"!==e.type&&"TSDeclareMethod"!==e.type&&"TSPropertySignature"!==e.type&&"ObjectTypeProperty"!==e.type||"object"!=_typeof(e.key)||!e.key||"Literal"!==e.key.type&&"NumericLiteral"!==e.key.type&&"StringLiteral"!==e.key.type&&"Identifier"!==e.key.type||delete t.key,"JSXElement"===e.type&&"style"===e.openingElement.name.name&&e.openingElement.attributes.some((function(e){return"jsx"===e.name.name}))){var _step62,_iterator62=_createForOfIteratorHelper(t.children);try{for(_iterator62.s();!(_step62=_iterator62.n()).done;){var _step62$value=_step62.value,_e126=_step62$value.type,_n73=_step62$value.expression;"JSXExpressionContainer"===_e126&&"TemplateLiteral"===_n73.type&&Dh(_n73)}}catch(err){_iterator62.e(err)}finally{_iterator62.f()}}"JSXAttribute"===e.type&&"css"===e.name.name&&"JSXExpressionContainer"===e.value.type&&"TemplateLiteral"===e.value.expression.type&&Dh(t.value.expression),"JSXAttribute"===e.type&&e.value&&"Literal"===e.value.type&&/["']|"|'/.test(e.value.value)&&(t.value.value=t.value.value.replace(/["']|"|'/g,'"'));var r=e.expression||e.callee;if("Decorator"===e.type&&"CallExpression"===r.type&&"Component"===r.callee.name&&1===r.arguments.length){var _step63,_n74=e.expression.arguments[0].properties,_iterator63=_createForOfIteratorHelper(t.expression.arguments[0].properties.entries());try{for(_iterator63.s();!(_step63=_iterator63.n()).done;){var _step63$value=_slicedToArray(_step63.value,2),_e127=_step63$value[0],_r80=_step63$value[1];switch(_n74[_e127].key.name){case"styles":"ArrayExpression"===_r80.value.type&&Dh(_r80.value.elements[0]);break;case"template":"TemplateLiteral"===_r80.value.type&&Dh(_r80.value)}}}catch(err){_iterator63.e(err)}finally{_iterator63.f()}}return"TaggedTemplateExpression"!==e.type||"MemberExpression"!==e.tag.type&&("Identifier"!==e.tag.type||"gql"!==e.tag.name&&"graphql"!==e.tag.name&&"css"!==e.tag.name&&"md"!==e.tag.name&&"markdown"!==e.tag.name&&"html"!==e.tag.name)&&"CallExpression"!==e.tag.type||Dh(t.quasi),"TemplateLiteral"===e.type&&(e.leadingComments&&e.leadingComments.some((function(e){return gh(e)&&["GraphQL","HTML"].some((function(t){return e.value===" ".concat(t," ")}))}))||"CallExpression"===n.type&&"graphql"===n.callee.name||!e.leadingComments)&&Dh(t),"InterpreterDirective"===e.type&&(t.value=t.value.trimEnd()),"TSIntersectionType"!==e.type&&"TSUnionType"!==e.type||1!==e.types.length?void 0:t.types[0]}Eh.ignoredProperties=yh;var bh=Eh,Ch=function Ch(e){if("string"!=typeof e)throw new TypeError("Expected a string");var t=e.match(/(?:\r?\n)/g)||[];if(0!==t.length){var n=t.filter((function(e){return"\r\n"===e})).length;return n>t.length-n?"\r\n":"\n"}},vh=Ch;vh.graceful=function(e){return"string"==typeof e&&Ch(e)||"\n"};var Ah=function Ah(e){var t=e.match(Ph);return t?t[0].trimLeft():""},Fh=function Fh(e){var t=e.match(Ph);return t&&t[0]?e.substring(t[0].length):e},xh=function xh(e){return Rh(e).pragmas},Sh=Rh,wh=function wh(_ref71){var _ref71$comments=_ref71.comments,e=void 0===_ref71$comments?"":_ref71$comments,_ref71$pragmas=_ref71.pragmas,t=void 0===_ref71$pragmas?{}:_ref71$pragmas,n=(0,Bh().default)(e)||Th().EOL,r=" *",o=Object.keys(t),i=o.map((function(e){return Vh(e,t[e])})).reduce((function(e,t){return e.concat(t)}),[]).map((function(e){return" * "+e+n})).join("");if(!e){if(0===o.length)return"";if(1===o.length&&!Array.isArray(t[o[0]])){var _e128=t[o[0]];return"".concat("/**"," ").concat(Vh(o[0],_e128)[0]).concat(" */")}}var u=e.split(n).map((function(e){return"".concat(r," ").concat(e)})).join(n)+n;return"/**"+n+(e?u:"")+(e&&o.length?r+n:"")+i+" */"};function Th(){var e=Uo;return Th=function Th(){return e},e}function Bh(){var e=function(e){return e&&e.__esModule?e:{default:e}}(vh);return Bh=function Bh(){return e},e}var kh=/\*\/$/,Nh=/^\/\*\*/,Ph=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Oh=/(^|\s+)\/\/([^\r\n]*)/g,Ih=/^(\r?\n)+/,jh=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,Lh=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,_h=/(\r?\n|^) *\* ?/g,Mh=[];function Rh(e){var t=(0,Bh().default)(e)||Th().EOL;e=e.replace(Nh,"").replace(kh,"").replace(_h,"$1");for(var n="";n!==e;)n=e,e=e.replace(jh,"".concat(t,"$1 $2").concat(t));e=e.replace(Ih,"").trimRight();for(var i,r=Object.create(null),o=e.replace(Lh,"").replace(Ih,"").trimRight();i=Lh.exec(e);){var _e129=i[2].replace(Oh,"");"string"==typeof r[i[1]]||Array.isArray(r[i[1]])?r[i[1]]=Mh.concat(r[i[1]],_e129):r[i[1]]=_e129}return{comments:o,pragmas:r}}function Vh(e,t){return Mh.concat(t).map((function(t){return"@".concat(e," ").concat(t).trim()}))}var $h=Object.defineProperty({extract:Ah,strip:Fh,parse:xh,parseWithComments:Sh,print:wh},"__esModule",{value:!0}),qh=$h.parseWithComments,Wh=$h.strip,Uh=$h.extract,zh=$h.print,Hh=rn.getShebang,Gh=on.normalizeEndOfLine;function Jh(e){var t=Hh(e);t&&(e=e.slice(t.length+1));var n=Uh(e),_qh=qh(n);return{shebang:t,text:e,pragmas:_qh.pragmas,comments:_qh.comments}}var Xh={hasPragma:function hasPragma(e){var t=Object.keys(Jh(e).pragmas);return t.includes("prettier")||t.includes("format")},insertPragma:function insertPragma(e){var _Jh=Jh(e),t=_Jh.shebang,n=_Jh.text,r=_Jh.pragmas,o=_Jh.comments,i=Wh(n),u=zh({pragmas:Object.assign({format:""},r),comments:o.trimStart()});return(t?"".concat(t,"\n"):"")+Gh(u)+(i.startsWith("\n")?"\n":"\n\n")+i}},Yh=rn.getLast,Kh=rn.hasNewline,Qh=rn.getNextNonSpaceNonCommentCharacterIndexWithStartIndex,Zh=rn.getNextNonSpaceNonCommentCharacter,em=rn.hasNewlineInRange,tm=rn.addLeadingComment,nm=rn.addTrailingComment,rm=rn.addDanglingComment,om=rn.getNextNonSpaceNonCommentCharacterIndex,im=rn.isNonEmptyArray,um=pd.isBlockComment,sm=pd.getFunctionParameters,am=pd.isPrettierIgnoreComment,cm=pd.isJsxNode,lm=pd.hasFlowShorthandAnnotationComment,pm=pd.hasFlowAnnotationComment,fm=pd.hasIgnoreComment,dm=pd.isCallLikeExpression,hm=pd.getCallArguments,mm=pd.isCallExpression,gm=pd.isMemberExpression,ym=ea.locStart,Dm=ea.locEnd;function Em(e,t){var n=(e.body||e.properties).find((function(_ref72){return"EmptyStatement"!==_ref72.type}));n?tm(n,t):rm(e,t)}function bm(e,t){"BlockStatement"===e.type?Em(e,t):tm(e,t)}function Cm(_ref73){var e=_ref73.comment,t=_ref73.followingNode;return!(!t||!Ym(e)||(tm(t,e),0))}function vm(_ref74){var e=_ref74.comment,t=_ref74.precedingNode,n=_ref74.enclosingNode,r=_ref74.followingNode,o=_ref74.text;return!(!n||"IfStatement"!==n.type||!r||(")"===Zh(o,e,Dm)?(nm(t,e),0):t===n.consequent&&r===n.alternate?("BlockStatement"===t.type?nm(t,e):rm(n,e),0):"BlockStatement"===r.type?(Em(r,e),0):"IfStatement"===r.type?(bm(r.consequent,e),0):n.consequent!==r||(tm(r,e),0)))}function Am(_ref75){var e=_ref75.comment,t=_ref75.precedingNode,n=_ref75.enclosingNode,r=_ref75.followingNode,o=_ref75.text;return!(!n||"WhileStatement"!==n.type||!r||(")"===Zh(o,e,Dm)?(nm(t,e),0):"BlockStatement"===r.type?(Em(r,e),0):n.body!==r||(tm(r,e),0)))}function Fm(_ref76){var e=_ref76.comment,t=_ref76.precedingNode,n=_ref76.enclosingNode,r=_ref76.followingNode;return!(!n||"TryStatement"!==n.type&&"CatchClause"!==n.type||!r||("CatchClause"===n.type&&t?(nm(t,e),0):"BlockStatement"===r.type?(Em(r,e),0):"TryStatement"===r.type?(bm(r.finalizer,e),0):"CatchClause"!==r.type||(bm(r.body,e),0)))}function xm(_ref77){var e=_ref77.comment,t=_ref77.enclosingNode,n=_ref77.followingNode;return!(!gm(t)||!n||"Identifier"!==n.type||(tm(t,e),0))}function Sm(_ref78){var e=_ref78.comment,t=_ref78.precedingNode,n=_ref78.enclosingNode,r=_ref78.followingNode,o=_ref78.text,i=t&&!em(o,Dm(t),ym(e));return!(t&&i||!n||"ConditionalExpression"!==n.type&&"TSConditionalType"!==n.type||!r||(tm(r,e),0))}function wm(_ref79){var e=_ref79.comment,t=_ref79.precedingNode,n=_ref79.enclosingNode;return!(!n||"ObjectProperty"!==n.type&&"Property"!==n.type||!n.shorthand||n.key!==t||"AssignmentPattern"!==n.value.type||(nm(n.value.left,e),0))}function Tm(_ref80){var e=_ref80.comment,t=_ref80.precedingNode,n=_ref80.enclosingNode,r=_ref80.followingNode;if(n&&("ClassDeclaration"===n.type||"ClassExpression"===n.type||"DeclareClass"===n.type||"DeclareInterface"===n.type||"InterfaceDeclaration"===n.type||"TSInterfaceDeclaration"===n.type)){if(im(n.decorators)&&(!r||"Decorator"!==r.type))return nm(Yh(n.decorators),e),!0;if(n.body&&r===n.body)return Em(n.body,e),!0;if(r)for(var _i52=0,_arr3=["implements","extends","mixins"];_i52<_arr3.length;_i52++){var _o32=_arr3[_i52];if(n[_o32]&&r===n[_o32][0])return!t||t!==n.id&&t!==n.typeParameters&&t!==n.superClass?rm(n,e,_o32):nm(t,e),!0}}return!1}function Bm(_ref81){var e=_ref81.comment,t=_ref81.precedingNode,n=_ref81.enclosingNode,r=_ref81.text;return(n&&t&&("Property"===n.type||"TSDeclareMethod"===n.type||"TSAbstractMethodDefinition"===n.type)&&"Identifier"===t.type&&n.key===t&&":"!==Zh(r,t,Dm)||!(!t||!n||"Decorator"!==t.type||"ClassMethod"!==n.type&&"ClassProperty"!==n.type&&"PropertyDefinition"!==n.type&&"TSAbstractClassProperty"!==n.type&&"TSAbstractMethodDefinition"!==n.type&&"TSDeclareMethod"!==n.type&&"MethodDefinition"!==n.type))&&(nm(t,e),!0)}function km(_ref82){var e=_ref82.comment,t=_ref82.precedingNode,n=_ref82.enclosingNode,r=_ref82.text;return"("===Zh(r,e,Dm)&&!(!t||!n||"FunctionDeclaration"!==n.type&&"FunctionExpression"!==n.type&&"ClassMethod"!==n.type&&"MethodDefinition"!==n.type&&"ObjectMethod"!==n.type)&&(nm(t,e),!0)}function Nm(_ref83){var e=_ref83.comment,t=_ref83.enclosingNode,n=_ref83.text;if(!t||"ArrowFunctionExpression"!==t.type)return!1;var r=om(n,e,Dm);return!1!==r&&"=>"===n.slice(r,r+2)&&(rm(t,e),!0)}function Pm(_ref84){var e=_ref84.comment,t=_ref84.enclosingNode,n=_ref84.text;return!(")"!==Zh(n,e,Dm)||(t&&(Xm(t)&&0===sm(t).length||dm(t)&&0===hm(t).length)?(rm(t,e),0):!t||"MethodDefinition"!==t.type&&"TSAbstractMethodDefinition"!==t.type||0!==sm(t.value).length||(rm(t.value,e),0)))}function Om(_ref85){var e=_ref85.comment,t=_ref85.precedingNode,n=_ref85.enclosingNode,r=_ref85.followingNode,o=_ref85.text;if(t&&"FunctionTypeParam"===t.type&&n&&"FunctionTypeAnnotation"===n.type&&r&&"FunctionTypeParam"!==r.type)return nm(t,e),!0;if(t&&("Identifier"===t.type||"AssignmentPattern"===t.type)&&n&&Xm(n)&&")"===Zh(o,e,Dm))return nm(t,e),!0;if(n&&"FunctionDeclaration"===n.type&&r&&"BlockStatement"===r.type){var _t105=function(){var e=sm(n);if(e.length>0)return Qh(o,Dm(Yh(e)));var t=Qh(o,Dm(n.id));return!1!==t&&Qh(o,t+1)}();if(ym(e)>_t105)return Em(r,e),!0}return!1}function Im(_ref86){var e=_ref86.comment,t=_ref86.enclosingNode;return!(!t||"ImportSpecifier"!==t.type||(tm(t,e),0))}function jm(_ref87){var e=_ref87.comment,t=_ref87.enclosingNode;return!(!t||"LabeledStatement"!==t.type||(tm(t,e),0))}function Lm(_ref88){var e=_ref88.comment,t=_ref88.enclosingNode;return!(!t||"ContinueStatement"!==t.type&&"BreakStatement"!==t.type||t.label||(nm(t,e),0))}function _m(_ref89){var e=_ref89.comment,t=_ref89.precedingNode,n=_ref89.enclosingNode;return!!(mm(n)&&t&&n.callee===t&&n.arguments.length>0)&&(tm(n.arguments[0],e),!0)}function Mm(_ref90){var e=_ref90.comment,t=_ref90.precedingNode,n=_ref90.enclosingNode,r=_ref90.followingNode;return!n||"UnionTypeAnnotation"!==n.type&&"TSUnionType"!==n.type?(r&&("UnionTypeAnnotation"===r.type||"TSUnionType"===r.type)&&am(e)&&(r.types[0].prettierIgnore=!0,e.unignore=!0),!1):(am(e)&&(r.prettierIgnore=!0,e.unignore=!0),!!t&&(nm(t,e),!0))}function Rm(_ref91){var e=_ref91.comment,t=_ref91.enclosingNode;return!(!t||"Property"!==t.type&&"ObjectProperty"!==t.type||(tm(t,e),0))}function Vm(_ref92){var e=_ref92.comment,t=_ref92.enclosingNode,n=_ref92.followingNode,r=_ref92.ast,o=_ref92.isLastComment;return r&&r.body&&0===r.body.length?(o?rm(r,e):tm(r,e),!0):t&&"Program"===t.type&&0===t.body.length&&t.directives&&0===t.directives.length?(o?rm(t,e):tm(t,e),!0):!(!n||"Program"!==n.type||0!==n.body.length||!t||"ModuleExpression"!==t.type||(rm(n,e),0))}function $m(_ref93){var e=_ref93.comment,t=_ref93.enclosingNode;return!(!t||"ForInStatement"!==t.type&&"ForOfStatement"!==t.type||(tm(t,e),0))}function qm(_ref94){var e=_ref94.comment,t=_ref94.precedingNode,n=_ref94.enclosingNode,r=_ref94.text;return!!(t&&"ImportSpecifier"===t.type&&n&&"ImportDeclaration"===n.type&&Kh(r,Dm(e)))&&(nm(t,e),!0)}function Wm(_ref95){var e=_ref95.comment,t=_ref95.enclosingNode;return!(!t||"AssignmentPattern"!==t.type||(tm(t,e),0))}function Um(_ref96){var e=_ref96.comment,t=_ref96.enclosingNode;return!(!t||"TypeAlias"!==t.type||(tm(t,e),0))}function zm(_ref97){var e=_ref97.comment,t=_ref97.enclosingNode,n=_ref97.followingNode;return!(!t||"VariableDeclarator"!==t.type&&"AssignmentExpression"!==t.type||!n||"ObjectExpression"!==n.type&&"ArrayExpression"!==n.type&&"TemplateLiteral"!==n.type&&"TaggedTemplateExpression"!==n.type&&!um(e)||(tm(n,e),0))}function Hm(_ref98){var e=_ref98.comment,t=_ref98.enclosingNode,n=_ref98.followingNode,r=_ref98.text;return!(n||!t||"TSMethodSignature"!==t.type&&"TSDeclareFunction"!==t.type&&"TSAbstractMethodDefinition"!==t.type||";"!==Zh(r,e,Dm)||(nm(t,e),0))}function Gm(_ref99){var e=_ref99.comment,t=_ref99.enclosingNode,n=_ref99.followingNode;if(am(e)&&t&&"TSMappedType"===t.type&&n&&"TSTypeParameter"===n.type&&n.constraint)return t.prettierIgnore=!0,e.unignore=!0,!0}function Jm(_ref100){var e=_ref100.comment,t=_ref100.precedingNode,n=_ref100.enclosingNode,r=_ref100.followingNode;return!(!n||"TSMappedType"!==n.type||(r&&"TSTypeParameter"===r.type&&r.name?(tm(r.name,e),0):!t||"TSTypeParameter"!==t.type||!t.constraint||(nm(t.constraint,e),0)))}function Xm(e){return"ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||"FunctionDeclaration"===e.type||"ObjectMethod"===e.type||"ClassMethod"===e.type||"TSDeclareFunction"===e.type||"TSCallSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSMethodSignature"===e.type||"TSConstructorType"===e.type||"TSFunctionType"===e.type||"TSDeclareMethod"===e.type}function Ym(e){return um(e)&&"*"===e.value[0]&&/@type\b/.test(e.value)}var Km={handleOwnLineComment:function handleOwnLineComment(e){return[Gm,Om,xm,vm,Am,Fm,Tm,Im,$m,Mm,Vm,qm,Wm,Bm,jm].some((function(t){return t(e)}))},handleEndOfLineComment:function handleEndOfLineComment(e){return[Cm,Om,Sm,Im,vm,Am,Fm,Tm,jm,_m,Rm,Vm,Um,zm].some((function(t){return t(e)}))},handleRemainingComment:function handleRemainingComment(e){return[Gm,vm,Am,wm,Pm,Bm,Vm,Nm,km,Jm,Lm,Hm].some((function(t){return t(e)}))},isTypeCastComment:Ym,getCommentChildNodes:function getCommentChildNodes(e,t){if(("typescript"===t.parser||"flow"===t.parser||"espree"===t.parser||"meriyah"===t.parser)&&"MethodDefinition"===e.type&&e.value&&"FunctionExpression"===e.value.type&&0===sm(e.value).length&&!e.value.returnType&&!im(e.value.typeParameters)&&e.value.body)return[].concat(_toConsumableArray(e.decorators||[]),[e.key,e.value.body])},willPrintOwnComments:function willPrintOwnComments(e){var t=e.getValue(),n=e.getParentNode();return(t&&(cm(t)||lm(t)||mm(n)&&(pm(t.leadingComments)||pm(t.trailingComments)))||n&&("JSXSpreadAttribute"===n.type||"JSXSpreadChild"===n.type||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type||("ClassDeclaration"===n.type||"ClassExpression"===n.type)&&n.superClass===t))&&(!fm(e)||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type)}},Qm=pd.getFunctionParameters,Zm=pd.getLeftSidePathName,eg=pd.hasFlowShorthandAnnotationComment,tg=pd.hasNakedLeftSide,ng=pd.hasNode,rg=pd.isBitwiseOperator,og=pd.startsWithNoLookaheadToken,ig=pd.shouldFlatten,ug=pd.getPrecedence,sg=pd.isCallExpression,ag=pd.isMemberExpression;function cg(e,t){var n=e.getParentNode();if(!n)return!1;var r=e.getName(),o=e.getNode();if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&function(e){return"ObjectExpression"===e.type}(o)&&lg(e))return!0;if(function(e){return"BlockStatement"===e.type||"BreakStatement"===e.type||"ClassBody"===e.type||"ClassDeclaration"===e.type||"ClassMethod"===e.type||"ClassProperty"===e.type||"PropertyDefinition"===e.type||"ClassPrivateProperty"===e.type||"ContinueStatement"===e.type||"DebuggerStatement"===e.type||"DeclareClass"===e.type||"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type||"DeclareFunction"===e.type||"DeclareInterface"===e.type||"DeclareModule"===e.type||"DeclareModuleExports"===e.type||"DeclareVariable"===e.type||"DoWhileStatement"===e.type||"EnumDeclaration"===e.type||"ExportAllDeclaration"===e.type||"ExportDefaultDeclaration"===e.type||"ExportNamedDeclaration"===e.type||"ExpressionStatement"===e.type||"ForInStatement"===e.type||"ForOfStatement"===e.type||"ForStatement"===e.type||"FunctionDeclaration"===e.type||"IfStatement"===e.type||"ImportDeclaration"===e.type||"InterfaceDeclaration"===e.type||"LabeledStatement"===e.type||"MethodDefinition"===e.type||"ReturnStatement"===e.type||"SwitchStatement"===e.type||"ThrowStatement"===e.type||"TryStatement"===e.type||"TSDeclareFunction"===e.type||"TSEnumDeclaration"===e.type||"TSImportEqualsDeclaration"===e.type||"TSInterfaceDeclaration"===e.type||"TSModuleDeclaration"===e.type||"TSNamespaceExportDeclaration"===e.type||"TypeAlias"===e.type||"VariableDeclaration"===e.type||"WhileStatement"===e.type||"WithStatement"===e.type}(o))return!1;if("flow"!==t.parser&&eg(e.getValue()))return!0;if("Identifier"===o.type)return!!(o.extra&&o.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(o.name))||"left"===r&&"async"===o.name&&"ForOfStatement"===n.type&&!n.await;switch(n.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if("superClass"===r&&("ArrowFunctionExpression"===o.type||"AssignmentExpression"===o.type||"AwaitExpression"===o.type||"BinaryExpression"===o.type||"ConditionalExpression"===o.type||"LogicalExpression"===o.type||"NewExpression"===o.type||"ObjectExpression"===o.type||"ParenthesizedExpression"===o.type||"SequenceExpression"===o.type||"TaggedTemplateExpression"===o.type||"UnaryExpression"===o.type||"UpdateExpression"===o.type||"YieldExpression"===o.type||"TSNonNullExpression"===o.type))return!0;break;case"ExportDefaultDeclaration":return pg(e,t)||"SequenceExpression"===o.type;case"Decorator":if("expression"===r){for(var _e130=!1,_t106=!1,_n75=o;_n75;)switch(_n75.type){case"MemberExpression":_t106=!0,_n75=_n75.object;break;case"CallExpression":if(_t106||_e130)return!0;_e130=!0,_n75=_n75.callee;break;case"Identifier":return!1;default:return!0}return!0}break;case"ExpressionStatement":if(og(o,!0))return!0;break;case"ArrowFunctionExpression":if("body"===r&&"SequenceExpression"!==o.type&&og(o,!1))return!0}switch(o.type){case"UpdateExpression":if("UnaryExpression"===n.type)return o.prefix&&("++"===o.operator&&"+"===n.operator||"--"===o.operator&&"-"===n.operator);case"UnaryExpression":switch(n.type){case"UnaryExpression":return o.operator===n.operator&&("+"===o.operator||"-"===o.operator);case"BindExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"BinaryExpression":return"left"===r&&"**"===n.operator;default:return!1}case"BinaryExpression":if("UpdateExpression"===n.type||"PipelineTopicExpression"===n.type&&"|>"===o.operator)return!0;if("in"===o.operator&&function(e){for(var t=0,n=e.getValue();n;){var _r81=e.getParentNode(t++);if(_r81&&"ForStatement"===_r81.type&&_r81.init===n)return!0;n=_r81}return!1}(e))return!0;if("|>"===o.operator&&o.extra&&o.extra.parenthesized){var _t107=e.getParentNode(1);if("BinaryExpression"===_t107.type&&"|>"===_t107.operator)return!0}case"TSTypeAssertion":case"TSAsExpression":case"LogicalExpression":switch(n.type){case"TSAsExpression":return"TSAsExpression"!==o.type;case"ConditionalExpression":return"TSAsExpression"===o.type;case"CallExpression":case"NewExpression":case"OptionalCallExpression":return"callee"===r;case"ClassExpression":case"ClassDeclaration":return"superClass"===r;case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"AssignmentExpression":case"AssignmentPattern":return"left"===r&&("TSTypeAssertion"===o.type||"TSAsExpression"===o.type);case"LogicalExpression":if("LogicalExpression"===o.type)return n.operator!==o.operator;case"BinaryExpression":var _e131=o.operator,_t108=o.type;if(!_e131&&"TSTypeAssertion"!==_t108)return!0;var _i53=ug(_e131),_u15=n.operator,_s21=ug(_u15);return _s21>_i53||"right"===r&&_s21===_i53||_s21===_i53&&!ig(_u15,_e131)||(_s21<_i53&&"%"===_e131?"+"===_u15||"-"===_u15:!!rg(_u15));default:return!1}case"SequenceExpression":switch(n.type){case"ReturnStatement":case"ForStatement":return!1;case"ExpressionStatement":return"expression"!==r;case"ArrowFunctionExpression":return"body"!==r;default:return!0}case"YieldExpression":if("UnaryExpression"===n.type||"AwaitExpression"===n.type||"TSAsExpression"===n.type||"TSNonNullExpression"===n.type)return!0;if("expression"===r&&o.argument&&"PipelinePrimaryTopicReference"===o.argument.type&&"PipelineTopicExpression"===n.type)return!0;case"AwaitExpression":switch(n.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"SpreadProperty":case"TSAsExpression":case"TSNonNullExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"ConditionalExpression":return"test"===r;case"BinaryExpression":return!(!o.argument&&"|>"===n.operator);default:return!1}case"TSJSDocFunctionType":case"TSConditionalType":if("extendsType"===r&&"TSConditionalType"===n.type)return!0;case"TSFunctionType":case"TSConstructorType":if("checkType"===r&&"TSConditionalType"===n.type)return!0;case"TSUnionType":case"TSIntersectionType":if(("TSUnionType"===n.type||"TSIntersectionType"===n.type)&&n.types.length>1&&(!o.types||o.types.length>1))return!0;case"TSInferType":if("TSInferType"===o.type&&"TSRestType"===n.type)return!1;case"TSTypeOperator":return"TSArrayType"===n.type||"TSOptionalType"===n.type||"TSRestType"===n.type||"objectType"===r&&"TSIndexedAccessType"===n.type||"TSTypeOperator"===n.type||"TSTypeAnnotation"===n.type&&/^TSJSDoc/.test(e.getParentNode(1).type);case"ArrayTypeAnnotation":return"NullableTypeAnnotation"===n.type;case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return"ArrayTypeAnnotation"===n.type||"NullableTypeAnnotation"===n.type||"IntersectionTypeAnnotation"===n.type||"UnionTypeAnnotation"===n.type;case"NullableTypeAnnotation":return"ArrayTypeAnnotation"===n.type;case"FunctionTypeAnnotation":var _t109="NullableTypeAnnotation"===n.type?e.getParentNode(1):n;return"UnionTypeAnnotation"===_t109.type||"IntersectionTypeAnnotation"===_t109.type||"ArrayTypeAnnotation"===_t109.type||"NullableTypeAnnotation"===_t109.type||"FunctionTypeParam"===n.type&&null===n.name&&Qm(o).some((function(e){return e.typeAnnotation&&"NullableTypeAnnotation"===e.typeAnnotation.type}));case"OptionalIndexedAccessType":return"objectType"===r&&"IndexedAccessType"===n.type;case"StringLiteral":case"NumericLiteral":case"Literal":if("string"==typeof o.value&&"ExpressionStatement"===n.type&&!n.directive){var _t110=e.getParentNode(1);return"Program"===_t110.type||"BlockStatement"===_t110.type}return"object"===r&&"MemberExpression"===n.type&&"number"==typeof o.value;case"AssignmentExpression":var _t111=e.getParentNode(1);return"body"===r&&"ArrowFunctionExpression"===n.type||("key"!==r||"ClassProperty"!==n.type&&"PropertyDefinition"!==n.type||!n.computed)&&("init"!==r&&"update"!==r||"ForStatement"!==n.type)&&("ExpressionStatement"===n.type?"ObjectPattern"===o.left.type:!("key"===r&&"TSPropertySignature"===n.type||"AssignmentExpression"===n.type||"SequenceExpression"===n.type&&_t111&&"ForStatement"===_t111.type&&(_t111.init===n||_t111.update===n)||"value"===r&&"Property"===n.type&&_t111&&"ObjectPattern"===_t111.type&&_t111.properties.includes(n)||"NGChainedExpression"===n.type));case"ConditionalExpression":switch(n.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"ConditionalExpression":return"test"===r;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;default:return!1}case"FunctionExpression":switch(n.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(n.type){case"PipelineTopicExpression":return Boolean(o.extra&&o.extra.parenthesized);case"BinaryExpression":return"|>"!==n.operator||o.extra&&o.extra.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"TSAsExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return"test"===r;default:return!1}case"ClassExpression":return"NewExpression"===n.type&&"callee"===r;case"OptionalMemberExpression":case"OptionalCallExpression":var _t112=e.getParentNode(1);if("object"===r&&"MemberExpression"===n.type||"callee"===r&&("CallExpression"===n.type||"NewExpression"===n.type)||"TSNonNullExpression"===n.type&&"MemberExpression"===_t112.type&&_t112.object===n)return!0;case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":if("callee"===r&&("BindExpression"===n.type||"NewExpression"===n.type))for(var _e132=o;_e132;)switch(_e132.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":_e132=_e132.object;break;case"TaggedTemplateExpression":_e132=_e132.tag;break;case"TSNonNullExpression":_e132=_e132.expression;break;default:return!1}return!1;case"BindExpression":return"callee"===r&&("BindExpression"===n.type||"NewExpression"===n.type)||"object"===r&&ag(n);case"NGPipeExpression":return!("NGRoot"===n.type||"NGMicrosyntaxExpression"===n.type||"ObjectProperty"===n.type&&(!o.extra||!o.extra.parenthesized)||"ArrayExpression"===n.type||sg(n)&&n.arguments[r]===o||"right"===r&&"NGPipeExpression"===n.type||"property"===r&&"MemberExpression"===n.type||"AssignmentExpression"===n.type);case"JSXFragment":case"JSXElement":return"callee"===r||"left"===r&&"BinaryExpression"===n.type&&"<"===n.operator||"ArrayExpression"!==n.type&&"ArrowFunctionExpression"!==n.type&&"AssignmentExpression"!==n.type&&"AssignmentPattern"!==n.type&&"BinaryExpression"!==n.type&&"NewExpression"!==n.type&&"ConditionalExpression"!==n.type&&"ExpressionStatement"!==n.type&&"JsExpressionRoot"!==n.type&&"JSXAttribute"!==n.type&&"JSXElement"!==n.type&&"JSXExpressionContainer"!==n.type&&"JSXFragment"!==n.type&&"LogicalExpression"!==n.type&&"ObjectProperty"!==n.type&&!sg(n)&&"Property"!==n.type&&"ReturnStatement"!==n.type&&"ThrowStatement"!==n.type&&"TypeCastExpression"!==n.type&&"VariableDeclarator"!==n.type&&"YieldExpression"!==n.type;case"TypeAnnotation":return"returnType"===r&&"ArrowFunctionExpression"===n.type&&function(e){return ng(e,(function(e){return"ObjectTypeAnnotation"===e.type&&ng(e,(function(e){return"FunctionTypeAnnotation"===e.type||void 0}))||void 0}))}(o)}return!1}function lg(e){var t=e.getValue(),n=e.getParentNode(),r=e.getName();switch(n.type){case"NGPipeExpression":if("number"==typeof r&&n.arguments[r]===t&&n.arguments.length-1===r)return e.callParent(lg);break;case"ObjectProperty":if("value"===r){var _t113=e.getParentNode(1);return ke(_t113.properties)===n}break;case"BinaryExpression":case"LogicalExpression":if("right"===r)return e.callParent(lg);break;case"ConditionalExpression":if("alternate"===r)return e.callParent(lg);break;case"UnaryExpression":if(n.prefix)return e.callParent(lg)}return!1}function pg(e,t){var n=e.getValue(),r=e.getParentNode();return"FunctionExpression"===n.type||"ClassExpression"===n.type?"ExportDefaultDeclaration"===r.type||!cg(e,t):!(!tg(n)||"ExportDefaultDeclaration"!==r.type&&cg(e,t))&&e.call.apply(e,[function(e){return pg(e,t)}].concat(_toConsumableArray(Zm(e,n))))}var fg=cg,dg=function dg(e,t){switch(t.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":return Object.assign({},e,{type:t.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:e,comments:[],rootMarker:t.rootMarker});default:return e}},_Rn$builders8=Rn.builders,hg=_Rn$builders8.join,mg=_Rn$builders8.line,gg=_Rn$builders8.group,yg=_Rn$builders8.softline,Dg=_Rn$builders8.indent,Eg={isVueEventBindingExpression:function e(t){switch(t.type){case"MemberExpression":switch(t.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return e(t.object)}return!1;case"Identifier":return!0;default:return!1}},printHtmlBinding:function printHtmlBinding(e,t,n){var r=e.getValue();if(t.__onHtmlBindingRoot&&null===e.getName()&&t.__onHtmlBindingRoot(r,t),"File"===r.type)return t.__isVueForBindingLeft?e.call((function(e){var t=hg([",",mg],e.map(n,"params"));return 1===e.getValue().params.length?t:["(",Dg([yg,gg(t)]),yg,")"]}),"program","body",0):t.__isVueBindings?e.call((function(e){return hg([",",mg],e.map(n,"params"))}),"program","body",0):void 0}},bg=up.printComments,Cg=rn.getLast,_Rn$builders9=Rn.builders,vg=_Rn$builders9.join,Ag=_Rn$builders9.line,Fg=_Rn$builders9.softline,xg=_Rn$builders9.group,Sg=_Rn$builders9.indent,wg=_Rn$builders9.align,Tg=_Rn$builders9.ifBreak,Bg=_Rn$builders9.indentIfBreak,_Rn$utils2=Rn.utils,kg=_Rn$utils2.cleanDoc,Ng=_Rn$utils2.getDocParts,Pg=_Rn$utils2.isConcat,Og=pd.hasLeadingOwnLineComment,Ig=pd.isBinaryish,jg=pd.isJsxNode,Lg=pd.shouldFlatten,_g=pd.hasComment,Mg=pd.CommentCheckFlags,Rg=pd.isCallExpression,Vg=pd.isMemberExpression,$g=0;function qg(e,t,n,r,o){var i=[],u=e.getValue();if(Ig(u)){Lg(u.operator,u.left.operator)?i=[].concat(_toConsumableArray(i),_toConsumableArray(e.call((function(e){return qg(e,t,n,!0,o)}),"left"))):i.push(xg(t("left")));var _s22=Wg(u),_a6=("|>"===u.operator||"NGPipeExpression"===u.type||"|"===u.operator&&"__vue_expression"===n.parser)&&!Og(n.originalText,u.right),_c11="NGPipeExpression"===u.type?"|":u.operator,_l9="NGPipeExpression"===u.type&&u.arguments.length>0?xg(Sg([Fg,": ",vg([Fg,":",Tg(" ")],e.map(t,"arguments").map((function(e){return wg(2,xg(e))})))])):"",_p9=_s22?[_c11," ",t("right"),_l9]:[_a6?Ag:"",_c11,_a6?" ":Ag,t("right"),_l9],_f6=e.getParentNode(),_d6=_g(u.left,Mg.Trailing|Mg.Line),_h6=_d6||!(o&&"LogicalExpression"===u.type)&&_f6.type!==u.type&&u.left.type!==u.type&&u.right.type!==u.type;if(i.push(_a6?"":" ",_h6?xg(_p9,{shouldBreak:_d6}):_p9),r&&_g(u)){var _t114=kg(bg(e,i,n));i=Pg(_t114)||"fill"===_t114.type?Ng(_t114):[_t114]}}else i.push(xg(t()));return i}function Wg(e){return"LogicalExpression"===e.type&&("ObjectExpression"===e.right.type&&e.right.properties.length>0||"ArrayExpression"===e.right.type&&e.right.elements.length>0||!!jg(e.right))}var Ug={printBinaryishExpression:function printBinaryishExpression(e,t,n){var r=e.getValue(),o=e.getParentNode(),i=e.getParentNode(1),u=r!==o.body&&("IfStatement"===o.type||"WhileStatement"===o.type||"SwitchStatement"===o.type||"DoWhileStatement"===o.type),s=qg(e,n,t,!1,u);if(u)return s;if(Rg(o)&&o.callee===r||"UnaryExpression"===o.type||Vg(o)&&!o.computed)return xg([Sg([Fg].concat(_toConsumableArray(s))),Fg]);var a="ReturnStatement"===o.type||"ThrowStatement"===o.type||"JSXExpressionContainer"===o.type&&"JSXAttribute"===i.type||"|"!==r.operator&&"JsExpressionRoot"===o.type||"NGPipeExpression"!==r.type&&("NGRoot"===o.type&&"__ng_binding"===t.parser||"NGMicrosyntaxExpression"===o.type&&"NGMicrosyntax"===i.type&&1===i.body.length)||r===o.body&&"ArrowFunctionExpression"===o.type||r!==o.body&&"ForStatement"===o.type||"ConditionalExpression"===o.type&&"ReturnStatement"!==i.type&&"ThrowStatement"!==i.type&&!Rg(i)||"TemplateLiteral"===o.type,c="AssignmentExpression"===o.type||"VariableDeclarator"===o.type||"ClassProperty"===o.type||"PropertyDefinition"===o.type||"TSAbstractClassProperty"===o.type||"ClassPrivateProperty"===o.type||"ObjectProperty"===o.type||"Property"===o.type,l=Ig(r.left)&&Lg(r.operator,r.left.operator);if(a||Wg(r)&&!l||!Wg(r)&&c)return xg(s);if(0===s.length)return"";var p=jg(r.right),f=s.findIndex((function(e){return"string"!=typeof e&&!Array.isArray(e)&&"group"===e.type})),d=s.slice(0,-1===f?1:f+1),h=s.slice(d.length,p?-1:void 0),m=Symbol("logicalChain-"+ ++$g),g=xg([].concat(_toConsumableArray(d),[Sg(h)]),{id:m});if(!p)return g;var y=Cg(s);return xg([g,Bg(y,{groupId:m})])},shouldInlineLogicalExpression:Wg},_Rn$builders10=Rn.builders,zg=_Rn$builders10.join,Hg=_Rn$builders10.line,Gg=_Rn$builders10.group,Jg=pd.hasNode,Xg=pd.hasComment,Yg=pd.getComments,Kg=Ug.printBinaryishExpression;function Qg(e,t,n){return"NGMicrosyntaxKeyedExpression"===e.type&&"of"===e.key.name&&1===t&&"NGMicrosyntaxLet"===n.body[0].type&&null===n.body[0].value}var Zg={printAngular:function printAngular(e,t,n){var r=e.getValue();switch(r.type){case"NGRoot":return[n("node"),Xg(r.node)?" //"+Yg(r.node)[0].value.trimEnd():""];case"NGPipeExpression":return Kg(e,t,n);case"NGChainedExpression":return Gg(zg([";",Hg],e.map((function(e){return function(e){return Jg(e.getValue(),(function(e){switch(e.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}}))}(e)?n():["(",n(),")"]}),"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return[r.prefix,": ",r.value.trim()];case"NGMicrosyntax":return e.map((function(e,t){return[0===t?"":Qg(e.getValue(),t,r)?" ":[";",Hg],n()]}),"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(-[$_a-z][\w$])*$/i.test(r.name)?r.name:JSON.stringify(r.name);case"NGMicrosyntaxExpression":return[n("expression"),null===r.alias?"":[" as ",n("alias")]];case"NGMicrosyntaxKeyedExpression":var _t115=e.getName(),_o33=e.getParentNode(),_i54=Qg(r,_t115,_o33)||(1===_t115&&("then"===r.key.name||"else"===r.key.name)||2===_t115&&"else"===r.key.name&&"NGMicrosyntaxKeyedExpression"===_o33.body[_t115-1].type&&"then"===_o33.body[_t115-1].key.name)&&"NGMicrosyntaxExpression"===_o33.body[0].type;return[n("key"),_i54?" ":": ",n("expression")];case"NGMicrosyntaxLet":return["let ",n("key"),null===r.value?"":[" = ",n("value")]];case"NGMicrosyntaxAs":return[n("key")," as ",n("alias")]}}},ey=up.printComments,ty=up.printDanglingComments,_Rn$builders11=Rn.builders,ny=_Rn$builders11.line,ry=_Rn$builders11.hardline,oy=_Rn$builders11.softline,iy=_Rn$builders11.group,uy=_Rn$builders11.indent,sy=_Rn$builders11.conditionalGroup,ay=_Rn$builders11.fill,cy=_Rn$builders11.ifBreak,ly=_Rn$builders11.lineSuffixBoundary,py=_Rn$builders11.join,fy=Rn.utils.willBreak,dy=rn.getLast,hy=rn.getPreferredQuote,my=pd.isJsxNode,gy=pd.rawText,yy=pd.isLiteral,Dy=pd.isCallExpression,Ey=pd.isStringLiteral,by=pd.isBinaryish,Cy=pd.hasComment,vy=pd.CommentCheckFlags,Ay=pd.hasNodeIgnoreComment,Fy=Km.willPrintOwnComments,xy=function xy(e){return""===e||e===ny||e===ry||e===oy};function Sy(e,t,n){var r=e.getValue();if("JSXElement"===r.type&&function(e){if(0===e.children.length)return!0;if(e.children.length>1)return!1;var t=e.children[0];return yy(t)&&!Iy(t)}(r))return[n("openingElement"),n("closingElement")];var o="JSXElement"===r.type?n("openingElement"):n("openingFragment"),i="JSXElement"===r.type?n("closingElement"):n("closingFragment");if(1===r.children.length&&"JSXExpressionContainer"===r.children[0].type&&("TemplateLiteral"===r.children[0].expression.type||"TaggedTemplateExpression"===r.children[0].expression.type))return[o].concat(_toConsumableArray(e.map(n,"children")),[i]);r.children=r.children.map((function(e){return function(e){return"JSXExpressionContainer"===e.type&&yy(e.expression)&&" "===e.expression.value&&!Cy(e.expression)}(e)?{type:"JSXText",value:" ",raw:" "}:e}));for(var u=r.children.filter(my).length>0,s=r.children.filter((function(e){return"JSXExpressionContainer"===e.type})).length>1,a="JSXElement"===r.type&&r.openingElement.attributes.length>1,c=fy(o)||u||a||s,l="mdx"===e.getParentNode().rootMarker,p=t.singleQuote?"{' '}":'{" "}',f=l?" ":cy([p,oy]," "),d=function(e,t,n,r,o){var i=[];return e.each((function(e,t,u){var s=e.getValue();if(yy(s)){var _e133=gy(s);if(Iy(s)){var _a7,_n76=_e133.split(Ny);if(""===_n76[0]){if(i.push(""),_n76.shift(),/\n/.test(_n76[0])){var _e134=u[t+1];i.push(Ty(o,_n76[1],s,_e134))}else i.push(r);_n76.shift()}if(""===dy(_n76)&&(_n76.pop(),_a7=_n76.pop()),0===_n76.length)return;var _step64,_iterator64=_createForOfIteratorHelper(_n76.entries());try{for(_iterator64.s();!(_step64=_iterator64.n()).done;){var _step64$value=_slicedToArray(_step64.value,2),_e137=_step64$value[0],_t116=_step64$value[1];_e137%2==1?i.push(ny):i.push(_t116)}}catch(err){_iterator64.e(err)}finally{_iterator64.f()}if(void 0!==_a7)if(/\n/.test(_a7)){var _e135=u[t+1];i.push(Ty(o,dy(i),s,_e135))}else i.push(r);else{var _e136=u[t+1];i.push(wy(o,dy(i),s,_e136))}}else/\n/.test(_e133)?_e133.match(/\n/g).length>1&&i.push("",ry):i.push("",r)}else{var _e138=n();i.push(_e138);var _r82=u[t+1];if(_r82&&Iy(_r82)){var _e139=Oy(gy(_r82)).split(Ny)[0];i.push(wy(o,_e139,s,_r82))}else i.push(ry)}}),"children"),i}(e,0,n,f,r.openingElement&&r.openingElement.name&&"fbt"===r.openingElement.name.name),h=r.children.some((function(e){return Iy(e)})),_e140=d.length-2;_e140>=0;_e140--){var _t117=""===d[_e140]&&""===d[_e140+1],_n77=d[_e140]===ry&&""===d[_e140+1]&&d[_e140+2]===ry,_r83=(d[_e140]===oy||d[_e140]===ry)&&""===d[_e140+1]&&d[_e140+2]===f,_o34=d[_e140]===f&&""===d[_e140+1]&&(d[_e140+2]===oy||d[_e140+2]===ry),_i55=d[_e140]===f&&""===d[_e140+1]&&d[_e140+2]===f,_u16=d[_e140]===oy&&""===d[_e140+1]&&d[_e140+2]===ry||d[_e140]===ry&&""===d[_e140+1]&&d[_e140+2]===oy;_n77&&h||_t117||_r83||_i55||_u16?d.splice(_e140,2):_o34&&d.splice(_e140+1,2)}for(;d.length>0&&xy(dy(d));)d.pop();for(;d.length>1&&xy(d[0])&&xy(d[1]);)d.shift(),d.shift();var _step65,m=[],_iterator65=_createForOfIteratorHelper(d.entries());try{for(_iterator65.s();!(_step65=_iterator65.n()).done;){var _step65$value=_slicedToArray(_step65.value,2),_e141=_step65$value[0],_t118=_step65$value[1];if(_t118===f){if(1===_e141&&""===d[_e141-1]){if(2===d.length){m.push(p);continue}m.push([p,ry]);continue}if(_e141===d.length-1){m.push(p);continue}if(""===d[_e141-1]&&d[_e141-2]===ry){m.push(p);continue}}m.push(_t118),fy(_t118)&&(c=!0)}}catch(err){_iterator65.e(err)}finally{_iterator65.f()}var g=h?ay(m):iy(m,{shouldBreak:!0});if(l)return g;var y=iy([o,uy([ry,g]),ry,i]);return c?y:sy([iy([o].concat(_toConsumableArray(d),[i])),y])}function wy(e,t,n,r){return e?"":"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?1===t.length?oy:ry:oy}function Ty(e,t,n,r){return e?ry:1===t.length?"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?ry:oy:ry}function By(e,t,n){return function(e,t,n){var r=e.getParentNode();if(!r)return t;if({ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[r.type])return t;var o=e.match(void 0,(function(e){return"ArrowFunctionExpression"===e.type}),Dy,(function(e){return"JSXExpressionContainer"===e.type})),i=fg(e,n);return iy([i?"":cy("("),uy([oy,t]),oy,i?"":cy(")")],{shouldBreak:o})}(e,ey(e,Sy(e,t,n),t),t)}function ky(e,t,n){var r=e.getValue();return["{",e.call((function(e){var r=["...",n()],o=e.getValue();return Cy(o)&&Fy(e)?[uy([oy,ey(e,r,t)]),oy]:r}),"JSXSpreadAttribute"===r.type?"argument":"expression"),"}"]}var Ny=new RegExp("([ \n\r\t]+)"),Py=new RegExp("[^ \n\r\t]"),Oy=function Oy(e){return e.replace(new RegExp("(?:^"+Ny.source+"|"+Ny.source+"$)"),"")};function Iy(e){return yy(e)&&(Py.test(gy(e))||!/\n/.test(gy(e)))}var jy={hasJsxIgnoreComment:function hasJsxIgnoreComment(e){var t=e.getValue(),n=e.getParentNode();if(!(n&&t&&my(t)&&my(n)))return!1;for(var r=null,_e142=n.children.indexOf(t);_e142>0;_e142--){var _t119=n.children[_e142-1];if("JSXText"!==_t119.type||Iy(_t119)){r=_t119;break}}return r&&"JSXExpressionContainer"===r.type&&"JSXEmptyExpression"===r.expression.type&&Ay(r.expression)},printJsx:function printJsx(e,t,n){var r=e.getValue();switch(r.type){case"JSXAttribute":return function(e,t,n){var r=e.getValue(),o=[];if(o.push(n("name")),r.value){var _e143;if(Ey(r.value)){var _n78=gy(r.value).replace(/'/g,"'").replace(/"/g,'"'),_o35=hy(_n78,t.jsxSingleQuote?"'":'"'),_i56="'"===_o35?"'":""";_e143=[_o35,_n78=_n78.slice(1,-1).replace(new RegExp(_o35,"g"),_i56),_o35]}else _e143=n("value");o.push("=",_e143)}return o}(e,t,n);case"JSXIdentifier":return String(r.name);case"JSXNamespacedName":return py(":",[n("namespace"),n("name")]);case"JSXMemberExpression":return py(".",[n("object"),n("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return ky(e,t,n);case"JSXExpressionContainer":return function(e,t,n){var r=e.getValue(),o=e.getParentNode(0),i="JSXEmptyExpression"===r.expression.type||!Cy(r.expression)&&("ArrayExpression"===r.expression.type||"ObjectExpression"===r.expression.type||"ArrowFunctionExpression"===r.expression.type||Dy(r.expression)||"FunctionExpression"===r.expression.type||"TemplateLiteral"===r.expression.type||"TaggedTemplateExpression"===r.expression.type||"DoExpression"===r.expression.type||my(o)&&("ConditionalExpression"===r.expression.type||by(r.expression)));return iy(i?["{",n("expression"),ly,"}"]:["{",uy([oy,n("expression")]),oy,ly,"}"])}(e,0,n);case"JSXFragment":case"JSXElement":return By(e,t,n);case"JSXOpeningElement":return function(e,t,n){var r=e.getValue(),o=r.name&&Cy(r.name)||r.typeParameters&&Cy(r.typeParameters);if(r.selfClosing&&0===r.attributes.length&&!o)return["<",n("name"),n("typeParameters")," />"];if(r.attributes&&1===r.attributes.length&&r.attributes[0].value&&Ey(r.attributes[0].value)&&!r.attributes[0].value.value.includes("\n")&&!o&&!Cy(r.attributes[0]))return iy(["<",n("name"),n("typeParameters")," "].concat(_toConsumableArray(e.map(n,"attributes")),[r.selfClosing?" />":">"]));var i=r.attributes.length>0&&Cy(dy(r.attributes),vy.Trailing),u=0===r.attributes.length&&!o||t.jsxBracketSameLine&&(!o||r.attributes.length>0)&&!i,s=r.attributes&&r.attributes.some((function(e){return e.value&&Ey(e.value)&&e.value.value.includes("\n")}));return iy(["<",n("name"),n("typeParameters"),uy(e.map((function(){return[ny,n()]}),"attributes")),r.selfClosing?ny:u?">":oy,r.selfClosing?"/>":u?"":">"],{shouldBreak:s})}(e,t,n);case"JSXClosingElement":return function(e,t,n){var r=e.getValue(),o=[];o.push(""),o}(e,0,n);case"JSXOpeningFragment":case"JSXClosingFragment":return function(e,t){var n=e.getValue(),r=Cy(n),o=Cy(n,vy.Line),i="JSXOpeningFragment"===n.type;return[i?"<":""]}(e,t);case"JSXEmptyExpression":return function(e,t){var n=e.getValue(),r=Cy(n,vy.Line);return[ty(e,t,!r),r?ry:""]}(e,t);case"JSXText":throw new Error("JSXTest should be handled by JSXElement")}}},Ly=rn.isNonEmptyArray,_Rn$builders12=Rn.builders,_y=_Rn$builders12.indent,My=_Rn$builders12.join,Ry=_Rn$builders12.line,Vy=pd.isFlowAnnotationComment,$y={printOptionalToken:function printOptionalToken(e){var t=e.getValue();return!t.optional||"Identifier"===t.type&&t===e.getParentNode().key?"":"OptionalCallExpression"===t.type||"OptionalMemberExpression"===t.type&&t.computed?"?.":"?"},printFunctionTypeParameters:function printFunctionTypeParameters(e,t,n){var r=e.getValue();return r.typeArguments?n("typeArguments"):r.typeParameters?n("typeParameters"):""},printBindExpressionCallee:function printBindExpressionCallee(e,t,n){return["::",n("callee")]},printTypeScriptModifiers:function printTypeScriptModifiers(e,t,n){var r=e.getValue();return Ly(r.modifiers)?[My(" ",e.map(n,"modifiers"))," "]:""},printTypeAnnotation:function printTypeAnnotation(e,t,n){var r=e.getValue();if(!r.typeAnnotation)return"";var o=e.getParentNode(),i=r.definite||o&&"VariableDeclarator"===o.type&&o.definite,u="DeclareFunction"===o.type&&o.id===r;return Vy(t.originalText,r.typeAnnotation)?[" /*: ",n("typeAnnotation")," */"]:[u?"":i?"!: ":": ",n("typeAnnotation")]},adjustClause:function adjustClause(e,t,n){return"EmptyStatement"===e.type?";":"BlockStatement"===e.type||n?[" ",t]:_y([Ry,t])}},qy=up.printDanglingComments,_Rn$builders13=Rn.builders,Wy=_Rn$builders13.line,Uy=_Rn$builders13.softline,zy=_Rn$builders13.hardline,Hy=_Rn$builders13.group,Gy=_Rn$builders13.indent,Jy=_Rn$builders13.ifBreak,Xy=_Rn$builders13.fill,Yy=rn.getLast,Ky=rn.hasNewline,Qy=pd.shouldPrintComma,Zy=pd.hasComment,eD=pd.CommentCheckFlags,tD=pd.isNextLineEmpty,nD=pd.isNumericLiteral,rD=pd.isSignedNumericLiteral,oD=ea.locStart,iD=$y.printOptionalToken,uD=$y.printTypeAnnotation;function sD(e,t){return e.elements.length>1&&e.elements.every((function(e){return e&&(nD(e)||rD(e)&&!Zy(e.argument))&&!Zy(e,eD.Trailing|eD.Line,(function(e){return!Ky(t.originalText,oD(e),{backwards:!0})}))}))}function aD(e,t,n,r){var o=[],i=[];return e.each((function(e){o.push(i,Hy(r())),i=[",",Wy],e.getValue()&&tD(e.getValue(),t)&&i.push(Uy)}),n),o}function cD(e,t,n,r){var o=[];return e.each((function(e,i,u){var s=i===u.length-1;o.push([n(),s?r:","]),s||o.push(tD(e.getValue(),t)?[zy,zy]:Zy(u[i+1],eD.Leading|eD.Line)?zy:Wy)}),"elements"),Xy(o)}var lD={printArray:function printArray(e,t,n){var r=e.getValue(),o=[],i="TupleExpression"===r.type?"#[":"[";if(0===r.elements.length)Zy(r,eD.Dangling)?o.push(Hy([i,qy(e,t),Uy,"]"])):o.push(i,"]");else{var _u17=Yy(r.elements),_s23=!(_u17&&"RestElement"===_u17.type),_a8=null===_u17,_c12=Symbol("array"),_l10=!t.__inJestEach&&r.elements.length>1&&r.elements.every((function(e,t,n){var r=e&&e.type;if("ArrayExpression"!==r&&"ObjectExpression"!==r)return!1;var o=n[t+1];if(o&&r!==o.type)return!1;var i="ArrayExpression"===r?"elements":"properties";return e[i]&&e[i].length>1})),_p10=sD(r,t),_f7=_s23?_a8?",":Qy(t)?_p10?Jy(",","",{groupId:_c12}):Jy(","):"":"";o.push(Hy([i,Gy([Uy,_p10?cD(e,t,n,_f7):[aD(e,t,"elements",n),_f7],qy(e,t,!0)]),Uy,"]"],{shouldBreak:_l10,id:_c12}))}return o.push(iD(e),uD(e,t,n)),o},printArrayItems:aD,isConciselyPrintedArray:sD},pD=up.printDanglingComments,fD=rn.getLast,dD=rn.getPenultimate,hD=pd.getFunctionParameters,mD=pd.hasComment,gD=pd.CommentCheckFlags,yD=pd.isFunctionCompositionArgs,DD=pd.isJsxNode,ED=pd.isLongCurriedCallExpression,bD=pd.shouldPrintComma,CD=pd.getCallArguments,vD=pd.iterateCallArgumentsPath,AD=pd.isNextLineEmpty,FD=pd.isCallExpression,_Rn$builders14=Rn.builders,xD=_Rn$builders14.line,SD=_Rn$builders14.hardline,wD=_Rn$builders14.softline,TD=_Rn$builders14.group,BD=_Rn$builders14.indent,kD=_Rn$builders14.conditionalGroup,ND=_Rn$builders14.ifBreak,PD=_Rn$builders14.breakParent,OD=Rn.utils.willBreak,ID=uo.ArgExpansionBailout,jD=lD.isConciselyPrintedArray;function LD(e){var n,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"ObjectExpression"===e.type&&(e.properties.length>0||mD(e))||"ArrayExpression"===e.type&&(e.elements.length>0||mD(e))||"TSTypeAssertion"===e.type&&LD(e.expression)||"TSAsExpression"===e.type&&LD(e.expression)||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&(!e.returnType||!e.returnType.typeAnnotation||"TSTypeReference"!==e.returnType.typeAnnotation.type||"BlockStatement"===(n=e.body).type&&(n.body.some((function(e){return"EmptyStatement"!==e.type}))||mD(n,gD.Dangling)))&&("BlockStatement"===e.body.type||"ArrowFunctionExpression"===e.body.type&&LD(e.body,!0)||"ObjectExpression"===e.body.type||"ArrayExpression"===e.body.type||!t&&(FD(e.body)||"ConditionalExpression"===e.body.type)||DD(e.body))||"DoExpression"===e.type||"ModuleExpression"===e.type}var _D=function _D(e,t,n){var r=e.getValue(),o="ImportExpression"===r.type,i=CD(r);if(0===i.length)return["(",pD(e,t,!0),")"];if(function(e){return 2===e.length&&"ArrowFunctionExpression"===e[0].type&&0===hD(e[0]).length&&"BlockStatement"===e[0].body.type&&"ArrayExpression"===e[1].type&&!e.some((function(e){return mD(e)}))}(i))return["(",n(["arguments",0]),", ",n(["arguments",1]),")"];var u=!1,s=!1,a=i.length-1,c=[];vD(e,(function(e,r){var o=e.getNode(),i=[n()];r===a||(AD(o,t)?(0===r&&(s=!0),u=!0,i.push(",",SD,SD)):i.push(",",xD)),c.push(i)}));var l=o||r.callee&&"Import"===r.callee.type||!bD(t,"all")?"":",";function p(){return TD(["(",BD([xD].concat(c)),l,xD,")"],{shouldBreak:!0})}if(u||"Decorator"!==e.getParentNode().type&&yD(i))return p();var f=function(e){if(2!==e.length)return!1;var _e144=_slicedToArray(e,2),t=_e144[0],n=_e144[1];return!("ModuleExpression"!==t.type||!function(e){return"ObjectExpression"===e.type&&1===e.properties.length&&"ObjectProperty"===e.properties[0].type&&"Identifier"===e.properties[0].key.type&&"type"===e.properties[0].key.name&&"StringLiteral"===e.properties[0].value.type&&"module"===e.properties[0].value.value}(n))||!mD(t)&&("FunctionExpression"===t.type||"ArrowFunctionExpression"===t.type&&"BlockStatement"===t.body.type)&&"FunctionExpression"!==n.type&&"ArrowFunctionExpression"!==n.type&&"ConditionalExpression"!==n.type&&!LD(n)}(i),d=function(e,t){var n=fD(e),r=dD(e);return!mD(n,gD.Leading)&&!mD(n,gD.Trailing)&&LD(n)&&(!r||r.type!==n.type)&&(2!==e.length||"ArrowFunctionExpression"!==r.type||"ArrayExpression"!==n.type)&&!(e.length>1&&"ArrayExpression"===n.type&&jD(n,t))}(i,t);if(f||d){if(f?c.slice(1).some(OD):c.slice(0,-1).some(OD))return p();var _t120=[];try{e.try((function(){vD(e,(function(e,r){f&&0===r&&(_t120=[[n([],{expandFirstArg:!0}),c.length>1?",":"",s?SD:xD,s?SD:""]].concat(_toConsumableArray(c.slice(1)))),d&&r===a&&(_t120=[].concat(_toConsumableArray(c.slice(0,-1)),[n([],{expandLastArg:!0})]))}))}))}catch(e){if(e instanceof ID)return p();throw e}return[c.some(OD)?PD:"",kD([["("].concat(_toConsumableArray(_t120),[")"]),f?["(",TD(_t120[0],{shouldBreak:!0})].concat(_toConsumableArray(_t120.slice(1)),[")"]):["("].concat(_toConsumableArray(c.slice(0,-1)),[TD(fD(_t120),{shouldBreak:!0}),")"]),p()])]}var h=["(",BD([wD].concat(c)),ND(l),wD,")"];return ED(e)?h:TD(h,{shouldBreak:c.some(OD)||u})},_Rn$builders15=Rn.builders,MD=_Rn$builders15.softline,RD=_Rn$builders15.group,VD=_Rn$builders15.indent,$D=_Rn$builders15.label,qD=pd.isNumericLiteral,WD=pd.isMemberExpression,UD=pd.isCallExpression,zD=$y.printOptionalToken;function HD(e,t,n){var r=n("property"),o=e.getValue(),i=zD(e);return o.computed?!o.property||qD(o.property)?[i,"[",r,"]"]:RD([i,"[",VD([MD,r]),MD,"]"]):[i,".",r]}var GD={printMemberExpression:function printMemberExpression(e,t,n){var i,r=e.getValue(),o=e.getParentNode(),u=0;do{i=e.getParentNode(u),u++}while(i&&(WD(i)||"TSNonNullExpression"===i.type));var s=n("object"),a=HD(e,t,n),c=i&&("NewExpression"===i.type||"BindExpression"===i.type||"AssignmentExpression"===i.type&&"Identifier"!==i.left.type)||r.computed||"Identifier"===r.object.type&&"Identifier"===r.property.type&&!WD(o)||("AssignmentExpression"===o.type||"VariableDeclarator"===o.type)&&(UD(r.object)&&r.object.arguments.length>0||"TSNonNullExpression"===r.object.type&&UD(r.object.expression)&&r.object.expression.arguments.length>0||"member-chain"===s.label);return $D("member-chain"===s.label?"member-chain":"member",[s,c?a:RD(VD([MD,a]))])},printMemberLookup:HD},JD=up.printComments,XD=rn.getLast,YD=rn.isNextLineEmptyAfterIndex,KD=rn.getNextNonSpaceNonCommentCharacterIndex,QD=pd.isCallExpression,ZD=pd.isMemberExpression,eE=pd.isFunctionOrArrowExpression,tE=pd.isLongCurriedCallExpression,nE=pd.isMemberish,rE=pd.isNumericLiteral,oE=pd.isSimpleCallArgument,iE=pd.hasComment,uE=pd.CommentCheckFlags,sE=pd.isNextLineEmpty,aE=ea.locEnd,_Rn$builders16=Rn.builders,cE=_Rn$builders16.join,lE=_Rn$builders16.hardline,pE=_Rn$builders16.group,fE=_Rn$builders16.indent,dE=_Rn$builders16.conditionalGroup,hE=_Rn$builders16.breakParent,mE=_Rn$builders16.label,gE=Rn.utils.willBreak,yE=GD.printMemberLookup,DE=$y.printOptionalToken,EE=$y.printFunctionTypeParameters,bE=$y.printBindExpressionCallee,CE=function CE(e,t,n){var r=e.getParentNode(),o=!r||"ExpressionStatement"===r.type,i=[];function u(e){var n=t.originalText,r=KD(n,e,aE);return")"===n.charAt(r)?!1!==r&&YD(n,r+1):sE(e,t)}function s(e){var r=e.getValue();QD(r)&&(nE(r.callee)||QD(r.callee))?(i.unshift({node:r,printed:[JD(e,[DE(e),EE(e,t,n),_D(e,t,n)],t),u(r)?lE:""]}),e.call((function(e){return s(e)}),"callee")):nE(r)?(i.unshift({node:r,needsParens:fg(e,t),printed:JD(e,ZD(r)?yE(e,t,n):bE(e,t,n),t)}),e.call((function(e){return s(e)}),"object")):"TSNonNullExpression"===r.type?(i.unshift({node:r,printed:JD(e,"!",t)}),e.call((function(e){return s(e)}),"expression")):i.unshift({node:r,printed:n()})}var a=e.getValue();i.unshift({node:a,printed:[DE(e),EE(e,t,n),_D(e,t,n)]}),a.callee&&e.call((function(e){return s(e)}),"callee");for(var c=[],l=[i[0]],p=1;p0&&c.push(l);var h=c.length>=2&&!iE(c[1][0].node)&&function(e){var n=e[1].length>0&&e[1][0].node.computed;if(1===e[0].length){var _r84=e[0][0].node;return"ThisExpression"===_r84.type||"Identifier"===_r84.type&&(d(_r84.name)||o&&function(e){return e.length<=t.tabWidth}(_r84.name)||n)}var r=XD(e[0]).node;return ZD(r)&&"Identifier"===r.property.type&&(d(r.property.name)||n)}(c);function m(e){var t=e.map((function(e){return e.printed}));return e.length>0&&XD(e).needsParens?["("].concat(_toConsumableArray(t),[")"]):t}var g=c.map(m),y=g,D=h?3:2,E=Ws(c),b=E.slice(1,-1).some((function(e){return iE(e.node,uE.Leading)}))||E.slice(0,-1).some((function(e){return iE(e.node,uE.Trailing)}))||c[D]&&iE(c[D][0].node,uE.Leading);if(c.length<=D&&!b)return tE(e)?y:pE(y);var x,C=XD(c[h?1:0]).node,v=!QD(C)&&u(C),A=[m(c[0]),h?c.slice(1,2).map(m):"",v?lE:"",function(e){return 0===e.length?"":fE(pE([lE,cE(lE,e.map(m))]))}(c.slice(h?2:1))],F=i.map((function(_ref101){return _ref101.node})).filter(QD);return x=b||F.length>2&&F.some((function(e){return!e.arguments.every((function(e){return oE(e,0)}))}))||g.slice(0,-1).some(gE)||function(){var e=XD(XD(c)).node,t=XD(g);return QD(e)&&gE(t)&&F.slice(0,-1).some((function(e){return e.arguments.some(eE)}))}()?pE(A):[gE(y)||v?hE:"",dE([y,A])],mE("member-chain",x)},_Rn$builders17=Rn.builders,vE=_Rn$builders17.join,AE=_Rn$builders17.group,FE=pd.getCallArguments,xE=pd.hasFlowAnnotationComment,SE=pd.isCallExpression,wE=pd.isMemberish,TE=pd.isStringLiteral,BE=pd.isTemplateOnItsOwnLine,kE=pd.isTestCall,NE=pd.iterateCallArgumentsPath,PE=$y.printOptionalToken,OE=$y.printFunctionTypeParameters,IE={printCallExpression:function printCallExpression(e,t,n){var r=e.getValue(),o=e.getParentNode(),i="NewExpression"===r.type,u="ImportExpression"===r.type,s=PE(e),a=FE(r);if(a.length>0&&(!u&&!i&&function(e,t){if("Identifier"!==e.callee.type)return!1;if("require"===e.callee.name)return!0;if("define"===e.callee.name){var _n79=FE(e);return"ExpressionStatement"===t.type&&(1===_n79.length||2===_n79.length&&"ArrayExpression"===_n79[0].type||3===_n79.length&&TE(_n79[0])&&"ArrayExpression"===_n79[1].type)}return!1}(r,o)||1===a.length&&BE(a[0],t.originalText)||!i&&kE(r,o))){var _r85=[];return NE(e,(function(){_r85.push(n())})),[i?"new ":"",n("callee"),s,OE(e,t,n),"(",vE(", ",_r85),")"]}var c=("babel"===t.parser||"babel-flow"===t.parser)&&r.callee&&"Identifier"===r.callee.type&&xE(r.callee.trailingComments);if(c&&(r.callee.trailingComments[0].printed=!0),!u&&!i&&wE(r.callee)&&!e.call((function(e){return fg(e,t)}),"callee"))return CE(e,t,n);var l=[i?"new ":"",u?"import":n("callee"),s,c?"/*:: ".concat(r.callee.trailingComments[0].value.slice(2).trim()," */"):"",OE(e,t,n),_D(e,t,n)];return u||SE(r.callee)?AE(l):l}},jE=rn.isNonEmptyArray,LE=rn.getStringWidth,_Rn$builders18=Rn.builders,_E=_Rn$builders18.line,ME=_Rn$builders18.group,RE=_Rn$builders18.indent,VE=_Rn$builders18.indentIfBreak,$E=Rn.utils.cleanDoc,qE=pd.hasLeadingOwnLineComment,WE=pd.isBinaryish,UE=pd.isStringLiteral,zE=pd.isLiteral,HE=pd.isNumericLiteral,GE=pd.isCallExpression,JE=pd.isMemberExpression,XE=pd.getCallArguments,YE=pd.rawText,KE=pd.hasComment,QE=pd.isSignedNumericLiteral,ZE=Ug.shouldInlineLogicalExpression,eb=IE.printCallExpression;function tb(e,t,n,r,o,i){var u=function(e,t,n,r,o){var i=e.getValue(),u=i[o];if(!u)return"only-left";var s=!nb(u);if(e.match(nb,rb,(function(e){return!s||"ExpressionStatement"!==e.type&&"VariableDeclaration"!==e.type})))return s?"ArrowFunctionExpression"===u.type&&"ArrowFunctionExpression"===u.body.type?"chain-tail-arrow-chain":"chain-tail":"chain";if(!s&&nb(u.right)||qE(t.originalText,u))return"break-after-operator";if("CallExpression"===u.type&&"require"===u.callee.name||"json5"===t.parser||"json"===t.parser)return"never-break-after-operator";if(function(e){if(rb(e)){var _t121=e.left||e.id;return"ObjectPattern"===_t121.type&&_t121.properties.length>2&&_t121.properties.some((function(e){return("ObjectProperty"===e.type||"Property"===e.type)&&(!e.shorthand||e.value&&"AssignmentPattern"===e.value.type)}))}return!1}(i))return"break-lhs";var a=function(e,t,n){if("ObjectProperty"!==e.type&&"Property"!==e.type)return!1;var r=3;return"string"==typeof(t=$E(t))&&LE(t)3&&void 0!==arguments[3]&&arguments[3],o=e.getValue(),i=function i(){return ob(e,t,n,!0)};if("TSNonNullExpression"===o.type)return e.call(i,"expression");if(GE(o)){if("member-chain"===eb(e,t,n).label)return!1;var _r86=XE(o);return!!(0===_r86.length||1===_r86.length&&function(e,_ref102){var t=_ref102.printWidth;if(KE(e))return!1;var n=.25*t;if("ThisExpression"===e.type||"Identifier"===e.type&&e.name.length<=n||QE(e)&&!KE(e.argument))return!0;var r="Literal"===e.type&&"regex"in e&&e.regex.pattern||"RegExpLiteral"===e.type&&e.pattern;return r?r.length<=n:UE(e)?YE(e).length<=n:"TemplateLiteral"===e.type?0===e.expressions.length&&e.quasis[0].value.raw.length<=n&&!e.quasis[0].value.raw.includes("\n"):zE(e)}(_r86[0],t))&&e.call(i,"callee")}return JE(o)?e.call(i,"object"):r&&("Identifier"===o.type||"ThisExpression"===o.type)}var ib={printVariableDeclarator:function printVariableDeclarator(e,t,n){return tb(e,t,n,n("id")," =","init")},printAssignmentExpression:function printAssignmentExpression(e,t,n){var r=e.getValue();return tb(e,t,n,n("left"),[" ",r.operator],"right")},printAssignment:tb},ub=rn.getNextNonSpaceNonCommentCharacter,sb=up.printDanglingComments,_Rn$builders19=Rn.builders,ab=_Rn$builders19.line,cb=_Rn$builders19.hardline,lb=_Rn$builders19.softline,pb=_Rn$builders19.group,fb=_Rn$builders19.indent,db=_Rn$builders19.ifBreak,_Rn$utils3=Rn.utils,hb=_Rn$utils3.removeLines,mb=_Rn$utils3.willBreak,gb=pd.getFunctionParameters,yb=pd.iterateFunctionParametersPath,Db=pd.isSimpleType,Eb=pd.isTestCall,bb=pd.isTypeAnnotationAFunction,Cb=pd.isObjectType,vb=pd.isObjectTypePropertyAFunction,Ab=pd.hasRestParameter,Fb=pd.shouldPrintComma,xb=pd.hasComment,Sb=pd.isNextLineEmpty,wb=ea.locEnd,Tb=uo.ArgExpansionBailout,Bb=$y.printFunctionTypeParameters;function kb(e){if(!e)return!1;var t=gb(e);if(1!==t.length)return!1;var n=_slicedToArray(t,1)[0];return!xb(n)&&("ObjectPattern"===n.type||"ArrayPattern"===n.type||"Identifier"===n.type&&n.typeAnnotation&&("TypeAnnotation"===n.typeAnnotation.type||"TSTypeAnnotation"===n.typeAnnotation.type)&&Cb(n.typeAnnotation.typeAnnotation)||"FunctionTypeParam"===n.type&&Cb(n.typeAnnotation)||"AssignmentPattern"===n.type&&("ObjectPattern"===n.left.type||"ArrayPattern"===n.left.type)&&("Identifier"===n.right.type||"ObjectExpression"===n.right.type&&0===n.right.properties.length||"ArrayExpression"===n.right.type&&0===n.right.elements.length))}var Nb={printFunctionParameters:function printFunctionParameters(e,t,n,r,o){var i=e.getValue(),u=gb(i),s=o?Bb(e,n,t):"";if(0===u.length)return[s,"(",sb(e,n,!0,(function(e){return")"===ub(n.originalText,e,wb)})),")"];var a=e.getParentNode(),c=Eb(a),l=kb(i),p=[];if(yb(e,(function(e,r){var o=r===u.length-1;o&&i.rest&&p.push("..."),p.push(t()),o||(p.push(","),c||l?p.push(" "):Sb(u[r],n)?p.push(cb,cb):p.push(ab))})),r){if(mb(s)||mb(p))throw new Tb;return pb([hb(s),"(",hb(p),")"])}var f=u.every((function(e){return!e.decorators}));return l&&f||c?[s,"("].concat(p,[")"]):(vb(a)||bb(a)||"TypeAlias"===a.type||"UnionTypeAnnotation"===a.type||"TSUnionType"===a.type||"IntersectionTypeAnnotation"===a.type||"FunctionTypeAnnotation"===a.type&&a.returnType===i)&&1===u.length&&null===u[0].name&&i.this!==u[0]&&u[0].typeAnnotation&&null===i.typeParameters&&Db(u[0].typeAnnotation)&&!i.rest?"always"===n.arrowParens?["("].concat(p,[")"]):p:[s,"(",fb([lb].concat(p)),db(!Ab(i)&&Fb(n,"all")?",":""),lb,")"]},shouldHugFunctionParameters:kb,shouldGroupFunctionParameters:function shouldGroupFunctionParameters(e,t){var n=function(e){var t;return e.returnType?(t=e.returnType).typeAnnotation&&(t=t.typeAnnotation):e.typeAnnotation&&(t=e.typeAnnotation),t}(e);if(!n)return!1;var r=e.typeParameters&&e.typeParameters.params;if(r){if(r.length>1)return!1;if(1===r.length){var _e147=r[0];if(_e147.constraint||_e147.default)return!1}}return 1===gb(e).length&&(Cb(n)||mb(t))}},Pb=up.printComments,Ob=up.printDanglingComments,Ib=rn.getLast,_Rn$builders20=Rn.builders,jb=_Rn$builders20.group,Lb=_Rn$builders20.join,_b=_Rn$builders20.line,Mb=_Rn$builders20.softline,Rb=_Rn$builders20.indent,Vb=_Rn$builders20.align,$b=_Rn$builders20.ifBreak,qb=ea.locStart,Wb=pd.isSimpleType,Ub=pd.isObjectType,zb=pd.hasLeadingOwnLineComment,Hb=pd.isObjectTypePropertyAFunction,Gb=pd.shouldPrintComma,Jb=ib.printAssignment,Xb=Nb.printFunctionParameters,Yb=Nb.shouldGroupFunctionParameters,Kb=lD.printArrayItems;function Qb(e){if(Wb(e)||Ub(e))return!0;if("UnionTypeAnnotation"===e.type||"TSUnionType"===e.type){var _t123=e.types.filter((function(e){return"VoidTypeAnnotation"===e.type||"TSVoidKeyword"===e.type||"NullLiteralTypeAnnotation"===e.type||"TSNullKeyword"===e.type})).length,_n80=e.types.some((function(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"GenericTypeAnnotation"===e.type||"TSTypeReference"===e.type}));if(e.types.length-1===_t123&&_n80)return!0}return!1}var Zb={printOpaqueType:function printOpaqueType(e,t,n){var r=t.semi?";":"",o=e.getValue(),i=[];return i.push("opaque type ",n("id"),n("typeParameters")),o.supertype&&i.push(": ",n("supertype")),o.impltype&&i.push(" = ",n("impltype")),i.push(r),i},printTypeAlias:function printTypeAlias(e,t,n){var r=t.semi?";":"",o=e.getValue(),i=[];o.declare&&i.push("declare "),i.push("type ",n("id"),n("typeParameters"));var u="TSTypeAliasDeclaration"===o.type?"typeAnnotation":"right";return[Jb(e,t,n,i," =",u),r]},printIntersectionType:function printIntersectionType(e,t,n){for(var r=e.getValue(),o=e.map(n,"types"),i=[],u=!1,_e148=0;_e1481&&(u=!0),i.push(" & ",_e148>1?Rb(o[_e148]):o[_e148])):i.push(Rb([" &",_b,o[_e148]]));return jb(i)},printUnionType:function printUnionType(e,t,n){var r=e.getValue(),o=e.getParentNode(),i=!("TypeParameterInstantiation"===o.type||"TSTypeParameterInstantiation"===o.type||"GenericTypeAnnotation"===o.type||"TSTypeReference"===o.type||"TSTypeAssertion"===o.type||"TupleTypeAnnotation"===o.type||"TSTupleType"===o.type||"FunctionTypeParam"===o.type&&!o.name&&e.getParentNode(1).this!==o||("TypeAlias"===o.type||"VariableDeclarator"===o.type||"TSTypeAliasDeclaration"===o.type)&&zb(t.originalText,r)),u=Qb(r),s=e.map((function(e){var r=n();return u||(r=Vb(2,r)),Pb(e,r,t)}),"types");if(u)return Lb(" | ",s);var a=i&&!zb(t.originalText,r),c=[$b([a?_b:"","| "]),Lb([_b,"| "],s)];return fg(e,t)?jb([Rb(c),Mb]):"TupleTypeAnnotation"===o.type&&o.types.length>1||"TSTupleType"===o.type&&o.elementTypes.length>1?jb([Rb([$b(["(",Mb]),c]),Mb,$b(")")]):jb(i?Rb(c):c)},printFunctionType:function printFunctionType(e,t,n){var r=e.getValue(),o=[],i=e.getParentNode(0),u=e.getParentNode(1),s=e.getParentNode(2),a="TSFunctionType"===r.type||!(("ObjectTypeProperty"===i.type||"ObjectTypeInternalSlot"===i.type)&&!i.variance&&!i.optional&&qb(i)===qb(r)||"ObjectTypeCallProperty"===i.type||s&&"DeclareFunction"===s.type),c=a&&("TypeAnnotation"===i.type||"TSTypeAnnotation"===i.type),l=c&&a&&("TypeAnnotation"===i.type||"TSTypeAnnotation"===i.type)&&"ArrowFunctionExpression"===u.type;Hb(i)&&(a=!0,c=!0),l&&o.push("(");var p=Xb(e,n,t,!1,!0),f=r.returnType||r.predicate||r.typeAnnotation?[a?" => ":": ",n("returnType"),n("predicate"),n("typeAnnotation")]:"",d=Yb(r,f);return o.push(d?jb(p):p),f&&o.push(f),l&&o.push(")"),jb(o)},printTupleType:function printTupleType(e,t,n){var r=e.getValue(),o="TSTupleType"===r.type?"elementTypes":"types",i=r[o].length>0&&"TSRestType"===Ib(r[o]).type;return jb(["[",Rb([Mb,Kb(e,t,o,n)]),$b(Gb(t,"all")&&!i?",":""),Ob(e,t,!0),Mb,"]"])},printIndexedAccessType:function printIndexedAccessType(e,t,n){var r=e.getValue(),o="OptionalIndexedAccessType"===r.type&&r.optional?"?.[":"[";return[n("objectType"),o,n("indexType"),"]"]},shouldHugType:Qb},eC=up.printDanglingComments,_Rn$builders21=Rn.builders,tC=_Rn$builders21.join,nC=_Rn$builders21.line,rC=_Rn$builders21.hardline,oC=_Rn$builders21.softline,iC=_Rn$builders21.group,uC=_Rn$builders21.indent,sC=_Rn$builders21.ifBreak,aC=pd.isTestCall,cC=pd.hasComment,lC=pd.CommentCheckFlags,pC=pd.isTSXFile,fC=pd.shouldPrintComma,dC=pd.getFunctionParameters,hC=rn.createGroupIdMapper,mC=Zb.shouldHugType,gC=hC("typeParameters");function yC(e,t){var n=e.getValue();if(!cC(n,lC.Dangling))return"";var r=!cC(n,lC.Line),o=eC(e,t,r);return r?o:[o,rC]}var DC={printTypeParameter:function printTypeParameter(e,t,n){var r=e.getValue(),o=[],i=e.getParentNode();return"TSMappedType"===i.type?(o.push("[",n("name")),r.constraint&&o.push(" in ",n("constraint")),i.nameType&&o.push(" as ",e.callParent((function(){return n("nameType")}))),o.push("]"),o):(r.variance&&o.push(n("variance")),o.push(n("name")),r.bound&&o.push(": ",n("bound")),r.constraint&&o.push(" extends ",n("constraint")),r.default&&o.push(" = ",n("default")),o)},printTypeParameters:function printTypeParameters(e,t,n,r){var o=e.getValue();if(!o[r])return"";if(!Array.isArray(o[r]))return n(r);var i=e.getNode(2);if(i&&aC(i)||0===o[r].length||1===o[r].length&&(mC(o[r][0])||"NullableTypeAnnotation"===o[r][0].type))return["<",tC(", ",e.map(n,r)),yC(e,t),">"];var u="TSTypeParameterInstantiation"===o.type?"":1===dC(o).length&&pC(t)&&!o[r][0].constraint&&"ArrowFunctionExpression"===e.getParentNode().type?",":fC(t,"all")?sC(","):"";return iC(["<",uC([oC,tC([",",nC],e.map(n,r))]),u,oC,">"],{id:gC(o)})},getTypeParametersGroupId:gC},EC=up.printComments,bC=rn.printString,CC=rn.printNumber,vC=pd.isNumericLiteral,AC=pd.isSimpleNumber,FC=pd.isStringLiteral,xC=pd.isStringPropSafeToUnquote,SC=pd.rawText,wC=ib.printAssignment,TC=new WeakMap;function BC(e,t,n){var r=e.getNode();if(r.computed)return["[",n("key"),"]"];var o=e.getParentNode(),i=r.key;if("ClassPrivateProperty"===r.type&&"Identifier"===i.type)return["#",n("key")];if("consistent"===t.quoteProps&&!TC.has(o)){var _e149=(o.properties||o.body||o.members).some((function(e){return!e.computed&&e.key&&FC(e.key)&&!xC(e,t)}));TC.set(o,_e149)}if(("Identifier"===i.type||vC(i)&&AC(CC(SC(i)))&&String(i.value)===CC(SC(i))&&"typescript"!==t.parser&&"babel-ts"!==t.parser)&&("json"===t.parser||"consistent"===t.quoteProps&&TC.get(o))){var _n81=bC(JSON.stringify("Identifier"===i.type?i.name:i.value.toString()),t);return e.call((function(e){return EC(e,_n81,t)}),"key")}return xC(r,t)&&("as-needed"===t.quoteProps||"consistent"===t.quoteProps&&!TC.get(o))?e.call((function(e){return EC(e,/^\d/.test(i.value)?CC(i.value):i.value,t)}),"key"):n("key")}var kC={printProperty:function printProperty(e,t,n){return e.getValue().shorthand?n("value"):wC(e,t,n,BC(e,t,n),":","value")},printPropertyKey:BC},NC=up.printDanglingComments,PC=up.printCommentsSeparately,OC=rn.getNextNonSpaceNonCommentCharacterIndex,_Rn$builders22=Rn.builders,IC=_Rn$builders22.line,jC=_Rn$builders22.softline,LC=_Rn$builders22.group,_C=_Rn$builders22.indent,MC=_Rn$builders22.ifBreak,RC=_Rn$builders22.hardline,VC=_Rn$builders22.join,$C=_Rn$builders22.indentIfBreak,qC=pd.getFunctionParameters,WC=pd.hasLeadingOwnLineComment,UC=pd.isFlowAnnotationComment,zC=pd.isJsxNode,HC=pd.isTemplateOnItsOwnLine,GC=pd.shouldPrintComma,JC=pd.startsWithNoLookaheadToken,XC=pd.returnArgumentHasLeadingComment,YC=pd.isBinaryish,KC=pd.isLineComment,QC=pd.hasComment,ZC=pd.getComments,ev=pd.CommentCheckFlags,tv=pd.isCallLikeExpression,nv=ea.locEnd,rv=Nb.printFunctionParameters,ov=Nb.shouldGroupFunctionParameters,iv=kC.printPropertyKey,uv=$y.printFunctionTypeParameters;function sv(e,t,n){var r=e.getNode(),o=rv(e,n,t),i=cv(e,n,t),u=ov(r,i),s=[uv(e,t,n),LC([u?LC(o):o,i])];return r.body?s.push(" ",n("body")):s.push(t.semi?";":""),s}function av(e,t){return"always"!==t.arrowParens&&"avoid"===t.arrowParens&&function(e){var t=qC(e);return!(1!==t.length||e.typeParameters||QC(e,ev.Dangling)||"Identifier"!==t[0].type||t[0].typeAnnotation||QC(t[0])||t[0].optional||e.predicate||e.returnType)}(e.getValue())}function cv(e,t,n){var r=e.getValue(),o=t("returnType");if(r.returnType&&UC(n.originalText,r.returnType))return[" /*: ",o," */"];var i=[o];return r.returnType&&r.returnType.typeAnnotation&&i.unshift(": "),r.predicate&&i.push(r.returnType?" ":": ",t("predicate")),i}function lv(e,t,n){var r=e.getValue(),o=t.semi?";":"",i=[];r.argument&&(XC(t,r.argument)?i.push([" (",_C([RC,n("argument")]),RC,")"]):YC(r.argument)||"SequenceExpression"===r.argument.type?i.push(LC([MC(" ("," "),_C([jC,n("argument")]),jC,MC(")")])):i.push(" ",n("argument")));var u=ZC(r),s=ke(u),a=s&&KC(s);return a&&i.push(o),QC(r,ev.Dangling)&&i.push(" ",NC(e,t,!0)),a||i.push(o),i}var pv={printFunctionDeclaration:function printFunctionDeclaration(e,t,n,r){var o=e.getValue(),i=[];"TSDeclareFunction"===o.type&&o.declare&&i.push("declare "),o.async&&i.push("async "),o.generator?i.push("function* "):i.push("function "),o.id&&i.push(t("id"));var u=rv(e,t,n,r),s=cv(e,t,n),a=ov(o,s);return i.push(uv(e,n,t),LC([a?LC(u):u,s]),o.body?" ":"",t("body")),!n.semi||!o.declare&&o.body||i.push(";"),i},printArrowFunctionExpression:function printArrowFunctionExpression(e,t,n,r){var o=e.getValue(),i=[],u=[],s=!1;if(function a(){var c=function(e,t,n,r){var o=[];e.getValue().async&&o.push("async "),av(e,t)?o.push(n(["params",0])):o.push(LC([rv(e,n,t,r&&(r.expandLastArg||r.expandFirstArg),!0),cv(e,n,t)]));var i=NC(e,t,!0,(function(e){var n=OC(t.originalText,e,nv);return!1!==n&&"=>"===t.originalText.slice(n,n+2)}));return i&&o.push(" ",i),o}(e,t,n,r);if(0===i.length)i.push(c);else{var _PC=PC(e,t),_n82=_PC.leading,_r87=_PC.trailing;i.push([_n82,c]),u.unshift(_r87)}s=s||o.returnType&&qC(o).length>0||o.typeParameters||qC(o).some((function(e){return"Identifier"!==e.type})),"ArrowFunctionExpression"!==o.body.type||r&&r.expandLastArg?u.unshift(n("body",r)):(o=o.body,e.call(a,"body"))}(),i.length>1)return function(e,t,n,r,o,i){var u=e.getName(),s=e.getParentNode(),a=tv(s)&&"callee"===u,c=Boolean(t&&t.assignmentLayout),l="BlockStatement"!==i.body.type&&"ObjectExpression"!==i.body.type,p=a&&l||t&&"chain-tail-arrow-chain"===t.assignmentLayout,f=Symbol("arrow-chain");return LC([LC(_C([a||c?jC:"",LC(VC([" =>",IC],n),{shouldBreak:r})]),{id:f,shouldBreak:p})," =>",$C(l?_C([IC,o]):[" ",o],{groupId:f}),a?MC(jC,"",{groupId:f}):""])}(e,r,i,s,u,o);var a=i;if(a.push(" =>"),!WC(t.originalText,o.body)&&("ArrayExpression"===o.body.type||"ObjectExpression"===o.body.type||"BlockStatement"===o.body.type||zC(o.body)||HC(o.body,t.originalText)||"ArrowFunctionExpression"===o.body.type||"DoExpression"===o.body.type))return LC([].concat(a,[" ",u]));if("SequenceExpression"===o.body.type)return LC([].concat(a,[LC([" (",_C([jC,u]),jC,")"])]));var c=(r&&r.expandLastArg||"JSXExpressionContainer"===e.getParentNode().type)&&!QC(o),l=r&&r.expandLastArg&&GC(t,"all"),p="ConditionalExpression"===o.body.type&&!JC(o.body,!1);return LC([].concat(a,[LC([_C([IC,p?MC("","("):"",u,p?MC("",")"):""]),c?[MC(l?",":""),jC]:""])]))},printMethod:function printMethod(e,t,n){var r=e.getNode(),o=r.kind,i=r.value||r,u=[];return o&&"init"!==o&&"method"!==o&&"constructor"!==o?(Il.ok("get"===o||"set"===o),u.push(o," ")):i.async&&u.push("async "),i.generator&&u.push("*"),u.push(iv(e,t,n),r.optional||r.key.optional?"?":""),r===i?u.push(sv(e,t,n)):"FunctionExpression"===i.type?u.push(e.call((function(e){return sv(e,t,n)}),"value")):u.push(n("value")),u},printReturnStatement:function printReturnStatement(e,t,n){return["return",lv(e,t,n)]},printThrowStatement:function printThrowStatement(e,t,n){return["throw",lv(e,t,n)]},printMethodInternal:sv,shouldPrintParamsWithoutParens:av},fv=rn.isNonEmptyArray,dv=rn.hasNewline,_Rn$builders23=Rn.builders,hv=_Rn$builders23.line,mv=_Rn$builders23.hardline,gv=_Rn$builders23.join,yv=_Rn$builders23.breakParent,Dv=_Rn$builders23.group,Ev=ea.locStart,bv=ea.locEnd,Cv=pd.getParentExportDeclaration;function vv(e,t){return e.decorators.some((function(e){return dv(t.originalText,bv(e))}))}function Av(e){if("ExportDefaultDeclaration"!==e.type&&"ExportNamedDeclaration"!==e.type&&"DeclareExportDeclaration"!==e.type)return!1;var t=e.declaration&&e.declaration.decorators;return fv(t)&&Ev(e,{ignoreDecorators:!0})>Ev(t[0])}var Fv={printDecorators:function printDecorators(e,t,n){var r=e.getValue(),o=r.decorators;if(fv(o)&&!Av(e.getParentNode())){var i="ClassExpression"===r.type||"ClassDeclaration"===r.type||vv(r,t);return[Cv(e)?mv:i?yv:"",gv(hv,e.map(n,"decorators")),hv]}},printClassMemberDecorators:function printClassMemberDecorators(e,t,n){var r=e.getValue();return Dv([gv(hv,e.map(n,"decorators")),vv(r,t)?mv:hv])},printDecoratorsBeforeExport:function printDecoratorsBeforeExport(e,t,n){return[gv(mv,e.map(n,"declaration","decorators")),mv]},hasDecoratorsBeforeExport:Av},xv=rn.isNonEmptyArray,Sv=rn.createGroupIdMapper,wv=up.printComments,Tv=up.printDanglingComments,_Rn$builders24=Rn.builders,Bv=_Rn$builders24.join,kv=_Rn$builders24.line,Nv=_Rn$builders24.hardline,Pv=_Rn$builders24.softline,Ov=_Rn$builders24.group,Iv=_Rn$builders24.indent,jv=_Rn$builders24.ifBreak,Lv=pd.hasComment,_v=pd.CommentCheckFlags,Mv=DC.getTypeParametersGroupId,Rv=pv.printMethod,Vv=$y.printOptionalToken,$v=$y.printTypeAnnotation,qv=kC.printPropertyKey,Wv=ib.printAssignment,Uv=Fv.printClassMemberDecorators,zv=Sv("heritageGroup");function Hv(e){return e.typeParameters&&!Lv(e.typeParameters,_v.Trailing|_v.Line)&&!function(e){return["superClass","extends","mixins","implements"].filter((function(t){return Boolean(e[t])})).length>1}(e)}function Gv(e,t,n,r){var o=e.getValue();if(!xv(o[r]))return"";var i=Tv(e,t,!0,(function(_ref103){return _ref103.marker===r}));return[Hv(o)?jv(" ",kv,{groupId:Mv(o.typeParameters)}):kv,i,i&&Nv,r,Ov(Iv([kv,Bv([",",kv],e.map(n,r))]))]}function Jv(e,t,n){var r=n("superClass");return"AssignmentExpression"===e.getParentNode().type?Ov(jv(["(",Iv([Pv,r]),Pv,")"],r)):r}var Xv={printClass:function printClass(e,t,n){var r=e.getValue(),o=[];r.declare&&o.push("declare "),r.abstract&&o.push("abstract "),o.push("class");var _e150,i=r.id&&Lv(r.id,_v.Trailing)||r.superClass&&Lv(r.superClass)||xv(r.extends)||xv(r.mixins)||xv(r.implements),u=[],s=[];if(r.id&&u.push(" ",n("id")),u.push(n("typeParameters")),r.superClass){var _r88=["extends ",Jv(e,t,n),n("superTypeParameters")],_o36=e.call((function(e){return wv(e,_r88,t)}),"superClass");i?s.push(kv,Ov(_o36)):s.push(" ",_o36)}else s.push(Gv(e,t,n,"extends"));return s.push(Gv(e,t,n,"mixins"),Gv(e,t,n,"implements")),i?(_e150=Hv(r)?[].concat(u,[Iv(s)]):Iv([].concat(u,[s])),o.push(Ov(_e150,{id:zv(r)}))):o.push.apply(o,u.concat(s)),o.push(" ",n("body")),o},printClassMethod:function printClassMethod(e,t,n){var r=e.getValue(),o=[];return xv(r.decorators)&&o.push(Uv(e,t,n)),r.accessibility&&o.push(r.accessibility+" "),r.readonly&&o.push("readonly "),r.declare&&o.push("declare "),r.static&&o.push("static "),r.override&&o.push("override "),("TSAbstractMethodDefinition"===r.type||r.abstract)&&o.push("abstract "),o.push(Rv(e,t,n)),o},printClassProperty:function printClassProperty(e,t,n){var r=e.getValue(),o=[],i=t.semi?";":"";return xv(r.decorators)&&o.push(Uv(e,t,n)),r.accessibility&&o.push(r.accessibility+" "),r.declare&&o.push("declare "),r.static&&o.push("static "),r.override&&o.push("override "),("TSAbstractClassProperty"===r.type||r.abstract)&&o.push("abstract "),r.readonly&&o.push("readonly "),r.variance&&o.push(n("variance")),o.push(qv(e,t,n),Vv(e),$v(e,t,n)),[Wv(e,t,n,o," =","value"),i]},printHardlineAfterHeritage:function printHardlineAfterHeritage(e){return jv(Nv,"",{groupId:zv(e)})}},Yv=rn.isNonEmptyArray,_Rn$builders25=Rn.builders,Kv=_Rn$builders25.join,Qv=_Rn$builders25.line,Zv=_Rn$builders25.group,eA=_Rn$builders25.indent,tA=_Rn$builders25.ifBreak,nA=pd.hasComment,rA=pd.identity,oA=pd.CommentCheckFlags,iA=DC.getTypeParametersGroupId,uA=$y.printTypeScriptModifiers,sA={printInterface:function printInterface(e,t,n){var r=e.getValue(),o=[];r.declare&&o.push("declare "),"TSInterfaceDeclaration"===r.type&&o.push(r.abstract?"abstract ":"",uA(e,t,n)),o.push("interface");var i=[],u=[];"InterfaceTypeAnnotation"!==r.type&&i.push(" ",n("id"),n("typeParameters"));var s=r.typeParameters&&!nA(r.typeParameters,oA.Trailing|oA.Line);return Yv(r.extends)&&u.push(s?tA(" ",Qv,{groupId:iA(r.typeParameters)}):Qv,"extends ",(1===r.extends.length?rA:eA)(Kv([",",Qv],e.map(n,"extends")))),r.id&&nA(r.id,oA.Trailing)||Yv(r.extends)?s?o.push(Zv([].concat(i,[eA(u)]))):o.push(Zv(eA([].concat(i,u)))):o.push.apply(o,i.concat(u)),o.push(" ",n("body")),Zv(o)}},aA=rn.isNonEmptyArray,_Rn$builders26=Rn.builders,cA=_Rn$builders26.softline,lA=_Rn$builders26.group,pA=_Rn$builders26.indent,fA=_Rn$builders26.join,dA=_Rn$builders26.line,hA=_Rn$builders26.ifBreak,mA=_Rn$builders26.hardline,gA=up.printDanglingComments,yA=pd.hasComment,DA=pd.CommentCheckFlags,EA=pd.shouldPrintComma,bA=pd.needsHardlineAfterDanglingComment,CA=ea.locStart,vA=ea.hasSameLoc,AA=Fv.hasDecoratorsBeforeExport,FA=Fv.printDecoratorsBeforeExport;function xA(e,t,n){var r=e.getValue();if(!r.source)return"";var o=[];return wA(r,t)||o.push(" from"),o.push(" ",n("source")),o}function SA(e,t,n){var r=e.getValue();if(wA(r,t))return"";var o=[" "];if(aA(r.specifiers)){var _i57=[],_u18=[];e.each((function(){var t=e.getValue().type;if("ExportNamespaceSpecifier"===t||"ExportDefaultSpecifier"===t||"ImportNamespaceSpecifier"===t||"ImportDefaultSpecifier"===t)_i57.push(n());else{if("ExportSpecifier"!==t&&"ImportSpecifier"!==t)throw new Error("Unknown specifier type ".concat(JSON.stringify(t)));_u18.push(n())}}),"specifiers"),o.push(fA(", ",_i57)),_u18.length>0&&(_i57.length>0&&o.push(", "),_u18.length>1||_i57.length>0||r.specifiers.some((function(e){return yA(e)}))?o.push(lA(["{",pA([t.bracketSpacing?dA:cA,fA([",",dA],_u18)]),hA(EA(t)?",":""),t.bracketSpacing?dA:cA,"}"])):o.push(["{",t.bracketSpacing?" ":""].concat(_u18,[t.bracketSpacing?" ":"","}"])))}else o.push("{}");return o}function wA(e,t){var n=e.type,r=e.importKind,o=e.source,i=e.specifiers;return"ImportDeclaration"===n&&!aA(i)&&"type"!==r&&!/{\s*}/.test(t.originalText.slice(CA(e),CA(o)))}function TA(e,t,n){var r=e.getNode();return aA(r.assertions)?[" assert {",t.bracketSpacing?" ":"",fA(", ",e.map(n,"assertions")),t.bracketSpacing?" ":"","}"]:""}var BA={printImportDeclaration:function printImportDeclaration(e,t,n){var r=e.getValue(),o=t.semi?";":"",i=[],u=r.importKind;return i.push("import"),u&&"value"!==u&&i.push(" ",u),i.push(SA(e,t,n),xA(e,t,n),TA(e,t,n),o),i},printExportDeclaration:function printExportDeclaration(e,t,n){var r=e.getValue(),o=[];AA(r)&&o.push(FA(e,t,n));var i=r.type,u=r.exportKind,s=r.declaration;return o.push("export"),(r.default||"ExportDefaultDeclaration"===i)&&o.push(" default"),yA(r,DA.Dangling)&&(o.push(" ",gA(e,t,!0)),bA(r)&&o.push(mA)),s?o.push(" ",n("declaration")):o.push("type"===u?" type":"",SA(e,t,n),xA(e,t,n),TA(e,t,n)),function(e,t){if(!t.semi)return!1;var n=e.type,r=e.declaration,o=e.default||"ExportDefaultDeclaration"===n;if(!r)return!0;var i=r.type;return!(!o||"ClassDeclaration"===i||"FunctionDeclaration"===i||"TSInterfaceDeclaration"===i||"DeclareClass"===i||"DeclareFunction"===i||"TSDeclareFunction"===i||"EnumDeclaration"===i)}(r,t)&&o.push(";"),o},printExportAllDeclaration:function printExportAllDeclaration(e,t,n){var r=e.getValue(),o=t.semi?";":"",i=[],u=r.exportKind,s=r.exported;return i.push("export"),"type"===u&&i.push(" type"),i.push(" *"),s&&i.push(" as ",n("exported")),i.push(xA(e,t,n),TA(e,t,n),o),i},printModuleSpecifier:function printModuleSpecifier(e,t,n){var r=e.getNode(),o=r.type,i=r.importKind,u=[];"ImportSpecifier"===o&&i&&u.push(i," ");var s=o.startsWith("Import"),a=s?"imported":"local",c=s?"local":"exported",l="",p="";return"ExportNamespaceSpecifier"===o||"ImportNamespaceSpecifier"===o?l="*":r[a]&&(l=n(a)),!r[c]||r[a]&&vA(r[a],r[c])||(p=n(c)),u.push(l,l&&p?" as ":"",p),u}},kA=pd.getParentExportDeclaration,NA=Xv.printClass,PA=Zb.printOpaqueType,OA=Zb.printTypeAlias,IA=Zb.printIntersectionType,jA=Zb.printUnionType,LA=Zb.printFunctionType,_A=Zb.printTupleType,MA=Zb.printIndexedAccessType,RA=sA.printInterface,VA=DC.printTypeParameters,$A=BA.printExportDeclaration,qA=BA.printExportAllDeclaration;function WA(e,t){var n=kA(e);return n?(Il.strictEqual(n.type,"DeclareExportDeclaration"),t):["declare ",t]}var UA={printFlow:function printFlow(e,t,n){var r=e.getValue(),o=t.semi?";":"";switch(r.type){case"DeclareClass":return WA(e,NA(e,t,n));case"DeclareFunction":return WA(e,["function ",n("id"),r.predicate?" ":"",n("predicate"),o]);case"DeclareModule":return WA(e,["module ",n("id")," ",n("body")]);case"DeclareModuleExports":return WA(e,["module.exports",": ",n("typeAnnotation"),o]);case"DeclareVariable":return WA(e,["var ",n("id"),o]);case"DeclareOpaqueType":return WA(e,PA(e,t,n));case"DeclareInterface":return WA(e,RA(e,t,n));case"DeclareTypeAlias":return WA(e,OA(e,t,n));case"DeclareExportDeclaration":return WA(e,$A(e,t,n));case"DeclareExportAllDeclaration":return WA(e,qA(e,t,n));case"OpaqueType":return PA(e,t,n);case"TypeAlias":return OA(e,t,n);case"IntersectionTypeAnnotation":return IA(e,t,n);case"UnionTypeAnnotation":return jA(e,t,n);case"FunctionTypeAnnotation":return LA(e,t,n);case"TupleTypeAnnotation":return _A(e,t,n);case"GenericTypeAnnotation":return[n("id"),VA(e,t,n,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return MA(e,t,n);case"TypeAnnotation":return n("typeAnnotation")}}},zA=rn.hasNewlineInRange,HA=pd.isJsxNode,GA=pd.isBlockComment,JA=pd.getComments,XA=pd.isCallExpression,YA=pd.isMemberExpression,KA=ea.locStart,QA=ea.locEnd,_Rn$builders27=Rn.builders,ZA=_Rn$builders27.line,eF=_Rn$builders27.softline,tF=_Rn$builders27.group,nF=_Rn$builders27.indent,rF=_Rn$builders27.align,oF=_Rn$builders27.ifBreak,iF=_Rn$builders27.dedent,uF=_Rn$builders27.breakParent;function sF(e,t,n){var r=e.getValue(),o="ConditionalExpression"===r.type,i=o?"alternate":"falseType",u=e.getParentNode(),s=o?n("test"):[n("checkType")," ","extends"," ",n("extendsType")];return u.type===r.type&&u[i]===r?rF(2,s):s}var aF=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"]]),cF={printTernary:function printTernary(e,t,n){var h,m,r=e.getValue(),o="ConditionalExpression"===r.type,i=o?"consequent":"trueType",u=o?"alternate":"falseType",s=o?["test"]:["checkType","extendsType"],a=r[i],c=r[u],l=[],p=!1,f=e.getParentNode(),d=f.type===r.type&&s.some((function(e){return f[e]===r})),g=f.type===r.type&&!d,y=0;do{m=h||r,h=e.getParentNode(y),y++}while(h&&h.type===r.type&&s.every((function(e){return h[e]!==m})));var D=h||f,E=m;if(o&&(HA(r[s[0]])||HA(a)||HA(c)||function(e){for(var t=[e],_e151=0;_e1511&&m.sort((function(e,t){return e.loc-t.loc}));var g=[],y=m.map((function(e){var n=[].concat(_toConsumableArray(g),[dF(e.printed)]);return g=[f,pF],"TSPropertySignature"!==e.node.type&&"TSMethodSignature"!==e.node.type&&"TSConstructSignatureDeclaration"!==e.node.type||!vF(e.node,FF.PrettierIgnore)||g.shift(),xF(e.node,t)&&g.push(gF),n}));if(o.inexact){var _n84;if(vF(o,FF.Dangling)){var _r90=vF(o,FF.Line);_n84=[lF(e,t,!0),_r90||EF(t.originalText,wF(yF(AF(o))))?gF:pF,"..."]}else _n84=["..."];y.push([].concat(_toConsumableArray(g),_toConsumableArray(_n84)))}var b,D=yF(o[i]),E=!(o.inexact||D&&"RestElement"===D.type||D&&("TSPropertySignature"===D.type||"TSCallSignatureDeclaration"===D.type||"TSMethodSignature"===D.type||"TSConstructSignatureDeclaration"===D.type)&&vF(D,FF.PrettierIgnore));if(0===y.length){if(!vF(o,FF.Dangling))return[d,h,BF(e,t,n)];b=dF([d,lF(e,t),fF,h,TF(e),BF(e,t,n)])}else b=[l&&bF(o.properties)?PF(c):"",d,hF([t.bracketSpacing?pF:fF].concat(_toConsumableArray(y))),mF(E&&(","!==f||CF(t))?f:""),t.bracketSpacing?pF:fF,h,TF(e),BF(e,t,n)];return e.match((function(e){return"ObjectPattern"===e.type&&!e.decorators}),(function(e,t,n){return kF(e)&&("params"===t||"parameters"===t||"this"===t||"rest"===t)&&0===n}))||e.match(NF,(function(e,t){return"typeAnnotation"===t}),(function(e,t){return"typeAnnotation"===t}),(function(e,t,n){return kF(e)&&("params"===t||"parameters"===t||"this"===t||"rest"===t)&&0===n}))||!p&&e.match((function(e){return"ObjectPattern"===e.type}),(function(e){return"AssignmentExpression"===e.type||"VariableDeclarator"===e.type}))?b:dF(b,{shouldBreak:p})}},IF=Rn.builders.hardline,jF=pd.getLeftSidePathName,LF=pd.hasNakedLeftSide,_F=pd.isJsxNode,MF=pd.isTheOnlyJsxElementInMarkdown,RF=pd.hasComment,VF=pd.CommentCheckFlags,$F=pd.isNextLineEmpty,qF=pv.shouldPrintParamsWithoutParens;function WF(e,t,n,r){var o=e.getValue(),i=[],u="ClassBody"===o.type,s=function(e){for(var _t127=e.length-1;_t127>=0;_t127--){var _n85=e[_t127];if("EmptyStatement"!==_n85.type)return _n85}}(o[r]);return e.each((function(e,r,o){var a=e.getValue();if("EmptyStatement"!==a.type){var c=n();t.semi||u||MF(t,e)||!function(e,t){return"ExpressionStatement"===e.getNode().type&&e.call((function(e){return UF(e,t)}),"expression")}(e,t)?i.push(c):RF(a,VF.Leading)?i.push(n([],{needsSemi:!0})):i.push(";",c),!t.semi&&u&&zF(a)&&function(e,t){var n=e.key&&e.key.name;if(!("static"!==n&&"get"!==n&&"set"!==n||e.value||e.typeAnnotation))return!0;if(!t)return!1;if(t.static||t.accessibility)return!1;if(!t.computed){var _e155=t.key&&t.key.name;if("in"===_e155||"instanceof"===_e155)return!0}switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractClassProperty":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":if((t.value?t.value.async:t.async)||"get"===t.kind||"set"===t.kind)return!1;var _e156=t.value?t.value.generator:t.generator;return!(!t.computed&&!_e156);case"TSIndexSignature":return!0}return!1}(a,o[r+1])&&i.push(";"),a!==s&&(i.push(IF),$F(a,t)&&i.push(IF))}}),r),i}function UF(e,t){var n=e.getValue();switch(n.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!qF(e,t))return!0;break;case"UnaryExpression":var _e157=n.prefix,_t128=n.operator;if(_e157&&("+"===_t128||"-"===_t128))return!0;break;case"BindExpression":if(!n.object)return!0;break;case"Literal":if(n.regex)return!0;break;default:if(_F(n))return!0}return!!fg(e,t)||!!LF(n)&&e.call.apply(e,[function(e){return UF(e,t)}].concat(_toConsumableArray(jF(e,n))))}var zF=function zF(_ref104){var e=_ref104.type;return"ClassProperty"===e||"PropertyDefinition"===e||"ClassPrivateProperty"===e},HF={printBody:function printBody(e,t,n){return WF(e,t,n,"body")},printSwitchCaseConsequent:function printSwitchCaseConsequent(e,t,n){return WF(e,t,n,"consequent")}},GF=up.printDanglingComments,JF=rn.isNonEmptyArray,_Rn$builders29=Rn.builders,XF=_Rn$builders29.hardline,YF=_Rn$builders29.indent,KF=pd.hasComment,QF=pd.CommentCheckFlags,ZF=pd.isNextLineEmpty,ex=Xv.printHardlineAfterHeritage,tx=HF.printBody;function nx(e,t,n){var r=e.getValue(),o=JF(r.directives),i=r.body.some((function(e){return"EmptyStatement"!==e.type})),u=KF(r,QF.Dangling);if(!o&&!i&&!u)return"";var s=[];if(o&&e.each((function(e,r,o){s.push(n()),(r"]),_o38=[dx("("),px([cx,n("expression")]),cx,dx(")")];return _e158?fx([[_t132,n("expression")],[_t132,lx(_o38,{shouldBreak:!0})],[_t132,n("expression")]]):lx([_t132,n("expression")]);case"TSDeclareFunction":return Ix(e,n,t);case"TSExportAssignment":return["export = ",n("expression"),o];case"TSModuleBlock":return _x(e,t,n);case"TSInterfaceBody":case"TSTypeLiteral":return Tx(e,t,n);case"TSTypeAliasDeclaration":return Mx(e,t,n);case"TSQualifiedName":return ux(".",[n("left"),n("right")]);case"TSAbstractMethodDefinition":case"TSDeclareMethod":return kx(e,t,n);case"TSAbstractClassProperty":return Bx(e,t,n);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return i.push(n("expression")),r.typeParameters&&i.push(n("typeParameters")),i;case"TSTemplateLiteralType":return Sx(e,n,t);case"TSNamedTupleMember":return[n("label"),r.optional?"?":"",": ",n("elementType")];case"TSRestType":return["...",n("typeAnnotation")];case"TSOptionalType":return[n("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return Lx(e,t,n);case"TSClassImplements":return[n("expression"),n("typeParameters")];case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return Px(e,t,n,"params");case"TSTypeParameter":case"TypeParameter":return Nx(e,t,n);case"TypeofTypeAnnotation":return["typeof ",n("argument")];case"TSAbstractKeyword":return"abstract";case"TSAsyncKeyword":return"async";case"TSDeclareKeyword":return"declare";case"TSExportKeyword":return"export";case"TSNeverKeyword":return"never";case"TSObjectKeyword":return"object";case"TSProtectedKeyword":return"protected";case"TSPrivateKeyword":return"private";case"TSPublicKeyword":return"public";case"TSReadonlyKeyword":return"readonly";case"TSStaticKeyword":return"static";case"TSUndefinedKeyword":return"undefined";case"TSUnknownKeyword":return"unknown";case"TSIntrinsicKeyword":return"intrinsic";case"TSAsExpression":i.push(n("expression")," as ",n("typeAnnotation"));var _t133=e.getParentNode();return yx(_t133)&&_t133.callee===r||Dx(_t133)&&_t133.object===r?lx([px([cx].concat(i)),cx]):i;case"TSArrayType":return[n("elementType"),"[]"];case"TSPropertySignature":return r.export&&i.push("export "),r.accessibility&&i.push(r.accessibility+" "),r.static&&i.push("static "),r.readonly&&i.push("readonly "),i.push(Ox(e,t,n),Cx(e)),r.typeAnnotation&&i.push(": ",n("typeAnnotation")),r.initializer&&i.push(" = ",n("initializer")),i;case"TSParameterProperty":return r.accessibility&&i.push(r.accessibility+" "),r.export&&i.push("export "),r.static&&i.push("static "),r.readonly&&i.push("readonly "),i.push(n("parameter")),i;case"TSTypeQuery":return["typeof ",n("exprName")];case"TSIndexSignature":var _i60=e.getParentNode(),_u19=r.parameters.length>1?dx(gx(t)?",":""):"",_s25=lx([px([cx,ux([", ",cx],e.map(n,"parameters"))]),_u19,cx]);return[r.export?"export ":"",r.accessibility?[r.accessibility," "]:"",r.static?"static ":"",r.readonly?"readonly ":"",r.declare?"declare ":"","[",r.parameters?_s25:"",r.typeAnnotation?"]: ":"]",r.typeAnnotation?n("typeAnnotation"):"","ClassBody"===_i60.type?o:""];case"TSTypePredicate":return[r.asserts?"asserts ":"",n("parameterName"),r.typeAnnotation?[" is ",n("typeAnnotation")]:""];case"TSNonNullExpression":return[n("expression"),"!"];case"TSImportType":return[r.isTypeOf?"typeof ":"","import(",n(r.parameter?"parameter":"argument"),")",r.qualifier?[".",n("qualifier")]:"",Px(e,t,n,"typeParameters")];case"TSLiteralType":return n("literal");case"TSIndexedAccessType":return Wx(e,t,n);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":if("TSConstructorType"===r.type&&r.abstract&&i.push("abstract "),"TSCallSignatureDeclaration"!==r.type&&i.push("new "),i.push(lx(Fx(e,n,t,!1,!0))),r.returnType||r.typeAnnotation){var _e159="TSConstructorType"===r.type;i.push(_e159?" => ":": ",n("returnType"),n("typeAnnotation"))}return i;case"TSTypeOperator":return[r.operator," ",n("typeAnnotation")];case"TSMappedType":var _i61=ix(t.originalText,Ex(r),bx(r));return lx(["{",px([t.bracketSpacing?sx:cx,r.readonly?[mx(r.readonly,"readonly")," "]:"",vx(e,t,n),n("typeParameter"),r.optional?mx(r.optional,"?"):"",r.typeAnnotation?": ":"",n("typeAnnotation"),dx(o)]),ox(e,t,!0),t.bracketSpacing?sx:cx,"}"],{shouldBreak:_i61});case"TSMethodSignature":var _o39=r.kind&&"method"!==r.kind?"".concat(r.kind," "):"";i.push(r.accessibility?[r.accessibility," "]:"",_o39,r.export?"export ":"",r.static?"static ":"",r.readonly?"readonly ":"",r.abstract?"abstract ":"",r.declare?"declare ":"",r.computed?"[":"",n("key"),r.computed?"]":"",Cx(e));var _u20=Fx(e,n,t,!1,!0),_s26=r.returnType?"returnType":"typeAnnotation",_a9=r[_s26],_c13=_a9?n(_s26):"",_l11=xx(r,_c13);return i.push(_l11?lx(_u20):_u20),_a9&&i.push(": ",lx(_c13)),lx(i);case"TSNamespaceExportDeclaration":return i.push("export as namespace ",n("id")),t.semi&&i.push(";"),lx(i);case"TSEnumDeclaration":return r.declare&&i.push("declare "),r.modifiers&&i.push(vx(e,t,n)),r.const&&i.push("const "),i.push("enum ",n("id")," "),0===r.members.length?i.push(lx(["{",ox(e,t),cx,"}"])):i.push(lx(["{",px([ax,wx(e,t,"members",n),gx(t,"es5")?",":""]),ox(e,t,!0),ax,"}"])),i;case"TSEnumMember":return i.push(n("id")),r.initializer&&i.push(" = ",n("initializer")),i;case"TSImportEqualsDeclaration":return r.isExport&&i.push("export "),i.push("import "),r.importKind&&"value"!==r.importKind&&i.push(r.importKind," "),i.push(n("id")," = ",n("moduleReference")),t.semi&&i.push(";"),lx(i);case"TSExternalModuleReference":return["require(",n("expression"),")"];case"TSModuleDeclaration":var _u21=e.getParentNode(),_s27=hx(r.id),_a10="TSModuleDeclaration"===_u21.type,_c14=r.body&&"TSModuleDeclaration"===r.body.type;if(_a10)i.push(".");else{r.declare&&i.push("declare "),i.push(vx(e,t,n));var _o40=t.originalText.slice(Ex(r),Ex(r.id));"Identifier"===r.id.type&&"global"===r.id.name&&!/namespace|module/.test(_o40)||i.push(_s27||/(^|\s)module(\s|$)/.test(_o40)?"module ":"namespace ")}return i.push(n("id")),_c14?i.push(n("body")):r.body?i.push(" ",lx(n("body"))):i.push(o),i;case"TSPrivateIdentifier":return r.escapedText;case"TSConditionalType":return Ax(e,t,n);case"TSInferType":return["infer"," ",n("typeParameter")];case"TSIntersectionType":return Rx(e,t,n);case"TSUnionType":return Vx(e,t,n);case"TSFunctionType":return $x(e,t,n);case"TSTupleType":return qx(e,t,n);case"TSTypeReference":return[n("typeName"),Px(e,t,n,"typeParameters")];case"TSTypeAnnotation":return n("typeAnnotation");case"TSEmptyBodyFunctionExpression":return jx(e,t,n);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return["?",n("typeAnnotation")];case"TSJSDocNonNullableType":return["!",n("typeAnnotation")];case"TSJSDocFunctionType":return["function(","): ",n("typeAnnotation")]}}},zx=rn.hasNewline,_Rn$builders31=Rn.builders,Hx=_Rn$builders31.join,Gx=_Rn$builders31.hardline,Jx=Rn.utils.replaceNewlinesWithLiterallines,Xx=pd.isLineComment,Yx=pd.isBlockComment,Kx=ea.locStart,Qx=ea.locEnd,Zx={printComment:function printComment(e,t){var n=e.getValue();if(Xx(n))return t.originalText.slice(Kx(n),Qx(n)).trimEnd();if(Yx(n)){if(function(e){var t="*".concat(e.value,"*").split("\n");return t.length>1&&t.every((function(e){return"*"===e.trim()[0]}))}(n)){var _e161=function(e){var t=e.value.split("\n");return["/*",Hx(Gx,t.map((function(e,n){return 0===n?e.trimEnd():" "+(n1&&(_o42=!0)}return sw(e,n,t,_o42);case"ArrowFunctionExpression":return aw(e,t,n,r);case"YieldExpression":return u.push("yield"),o.delegate&&u.push("*"),o.argument&&u.push(" ",n("argument")),u;case"AwaitExpression":if(u.push("await"),o.argument){u.push(" ",n("argument"));var _t136=e.getParentNode();if(NS(_t136)&&_t136.callee===o||PS(_t136)&&_t136.object===o){u=[mS([fS].concat(_toConsumableArray(u))),fS];var _t137=e.findAncestor((function(e){return"AwaitExpression"===e.type||"BlockStatement"===e.type}));if(!_t137||"AwaitExpression"!==_t137.type)return hS(u)}}return u;case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return GS(e,t,n);case"ExportAllDeclaration":return JS(e,t,n);case"ImportDeclaration":return HS(e,t,n);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return XS(e,t,n);case"ImportAttribute":return[n("key"),": ",n("value")];case"Import":return"import";case"BlockStatement":case"StaticBlock":case"ClassBody":return Ew(e,t,n);case"ThrowStatement":return pw(e,t,n);case"ReturnStatement":return lw(e,t,n);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return fw(e,t,n);case"ObjectTypeInternalSlot":return[o.static?"static ":"","[[",n("id"),"]]",qS(e),o.method?"":": ",n("value")];case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":case"RecordExpression":return ew(e,t,n);case"ObjectProperty":case"Property":return o.method||"get"===o.kind||"set"===o.kind?cw(e,t,n):uw(e,t,n);case"ObjectMethod":return cw(e,t,n);case"Decorator":return["@",n("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return QS(e,t,n);case"SequenceExpression":var _t138=e.getParentNode(0);if("ExpressionStatement"===_t138.type||"ForStatement"===_t138.type){var _t139=[];return e.each((function(e,r){0===r?_t139.push(n()):_t139.push(",",mS([lS,n()]))}),"expressions"),hS(_t139)}return hS(cS([",",lS],e.map(n,"expressions")));case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[n("value"),i];case"DirectiveLiteral":return Fw(o,t);case"UnaryExpression":return u.push(o.operator),/[a-z]$/.test(o.operator)&&u.push(" "),ES(o.argument)?u.push(hS(["(",mS([fS,n("argument")]),fS,")"])):u.push(n("argument")),u;case"UpdateExpression":return u.push(n("argument"),o.operator),o.prefix&&u.reverse(),u;case"ConditionalExpression":return YS(e,t,n);case"VariableDeclaration":var _c15,_t140=e.map(n,"declarations"),_r93=e.getParentNode(),_s28="ForStatement"===_r93.type||"ForInStatement"===_r93.type||"ForOfStatement"===_r93.type,_a11=o.declarations.some((function(e){return e.init}));return 1!==_t140.length||ES(o.declarations[0])?_t140.length>0&&(_c15=mS(_t140[0])):_c15=_t140[0],u=[o.declare?"declare ":"",o.kind,_c15?[" ",_c15]:"",mS(_t140.slice(1).map((function(e){return[",",_a11&&!_s28?pS:lS,e]})))],_s28&&_r93.body!==o||u.push(i),hS(u);case"WithStatement":return hS(["with (",n("object"),")",zS(o.body,n("body"))]);case"IfStatement":var _r94=zS(o.consequent,n("consequent")),_i63=hS(["if (",hS([mS([fS,n("test")]),fS]),")",_r94]);if(u.push(_i63),o.alternate){var _r95=ES(o.consequent,bS.Trailing|bS.Line)||wS(o),_i64="BlockStatement"===o.consequent.type&&!_r95;u.push(_i64?" ":pS),ES(o,bS.Dangling)&&u.push(iS(e,t,!0),_r95?pS:" "),u.push("else",hS(zS(o.alternate,n("alternate"),"IfStatement"===o.alternate.type)))}return u;case"ForStatement":var _r96=zS(o.body,n("body")),_i65=iS(e,t,!0),_u22=_i65?[_i65,fS]:"";return o.init||o.test||o.update?[_u22,hS(["for (",hS([mS([fS,n("init"),";",lS,n("test"),";",lS,n("update")]),fS]),")",_r96])]:[_u22,hS(["for (;;)",_r96])];case"WhileStatement":return hS(["while (",hS([mS([fS,n("test")]),fS]),")",zS(o.body,n("body"))]);case"ForInStatement":return hS(["for (",n("left")," in ",n("right"),")",zS(o.body,n("body"))]);case"ForOfStatement":return hS(["for",o.await?" await":""," (",n("left")," of ",n("right"),")",zS(o.body,n("body"))]);case"DoWhileStatement":var _e163=zS(o.body,n("body"));return u=[hS(["do",_e163])],"BlockStatement"===o.body.type?u.push(" "):u.push(pS),u.push("while (",hS([mS([fS,n("test")]),fS]),")",i),u;case"DoExpression":return[o.async?"async ":"","do ",n("body")];case"BreakStatement":return u.push("break"),o.label&&u.push(" ",n("label")),u.push(i),u;case"ContinueStatement":return u.push("continue"),o.label&&u.push(" ",n("label")),u.push(i),u;case"LabeledStatement":return"EmptyStatement"===o.body.type?[n("label"),":;"]:[n("label"),": ",n("body")];case"TryStatement":return["try ",n("block"),o.handler?[" ",n("handler")]:"",o.finalizer?[" finally ",n("finalizer")]:""];case"CatchClause":if(o.param){var _e164=ES(o.param,(function(e){return!FS(e)||e.leading&&uS(t.originalText,IS(e))||e.trailing&&uS(t.originalText,OS(e),{backwards:!0})})),_r97=n("param");return["catch ",_e164?["(",mS([fS,_r97]),fS,") "]:["(",_r97,") "],n("body")]}return["catch ",n("body")];case"SwitchStatement":return[hS(["switch (",mS([fS,n("discriminant")]),fS,")"])," {",o.cases.length>0?mS([pS,cS(pS,e.map((function(e,r,o){var i=e.getValue();return[n(),r!==o.length-1&&SS(i,t)?pS:""]}),"cases"))]):"",pS,"}"];case"SwitchCase":o.test?u.push("case ",n("test"),":"):u.push("default:");var _r98=o.consequent.filter((function(e){return"EmptyStatement"!==e.type}));if(_r98.length>0){var _o43=yw(e,t,n);u.push(1===_r98.length&&"BlockStatement"===_r98[0].type?[" ",_o43]:mS([pS,_o43]))}return u;case"DebuggerStatement":return["debugger",i];case"ClassDeclaration":case"ClassExpression":return tw(e,t,n);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return nw(e,t,n);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":return rw(e,t,n);case"TemplateElement":return cS(dS,o.value.raw.split(/\r?\n/g));case"TemplateLiteral":return KS(e,n,t);case"TaggedTemplateExpression":return[n("tag"),n("typeParameters"),n("quasi")];case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"MemberTypeAnnotation":case"Type":throw new Error("unprintable type: "+JSON.stringify(o.type));case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return[n("elementType"),"[]"];case"BooleanLiteralTypeAnnotation":return String(o.value);case"EnumDeclaration":return["enum ",n("id")," ",n("body")];case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":if("EnumSymbolBody"===o.type||o.explicitType){var _e165=null;switch(o.type){case"EnumBooleanBody":_e165="boolean";break;case"EnumNumberBody":_e165="number";break;case"EnumStringBody":_e165="string";break;case"EnumSymbolBody":_e165="symbol"}u.push("of ",_e165," ")}if(0!==o.members.length||o.hasUnknownMembers){var _r99=o.members.length>0?[pS,ZS(e,t,"members",n),o.hasUnknownMembers||BS(t)?",":""]:[];u.push(hS(["{",mS([].concat(_r99,_toConsumableArray(o.hasUnknownMembers?[pS,"..."]:[]))),iS(e,t,!0),pS,"}"]))}else u.push(hS(["{",iS(e,t),fS,"}"]));return u;case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return[n("id")," = ","object"==_typeof(o.init)?n("init"):String(o.init)];case"EnumDefaultedMember":return n("id");case"FunctionTypeParam":var _t141=o.name?n("name"):e.getParentNode().this===o?"this":"";return[_t141,qS(e),_t141?": ":"",n("typeAnnotation")];case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return dw(e,t,n);case"ClassImplements":case"InterfaceExtends":return[n("id"),n("typeParameters")];case"NullableTypeAnnotation":return["?",n("typeAnnotation")];case"Variance":var _e166=o.kind;return Il.ok("plus"===_e166||"minus"===_e166),"plus"===_e166?"+":"-";case"ObjectTypeCallProperty":return o.static&&u.push("static "),u.push(n("value")),u;case"ObjectTypeIndexer":return[o.variance?n("variance"):"","[",n("id"),o.id?": ":"",n("key"),"]: ",n("value")];case"ObjectTypeProperty":var _r100="";return o.proto?_r100="proto ":o.static&&(_r100="static "),[_r100,vS(o)?o.kind+" ":"",o.variance?n("variance"):"",iw(e,t,n),qS(e),CS(o)?"":": ",n("value")];case"QualifiedTypeIdentifier":return[n("qualification"),".",n("id")];case"StringLiteralTypeAnnotation":return sS(TS(o),t);case"NumberLiteralTypeAnnotation":Il.strictEqual(_typeof(o.value),"number");case"BigIntLiteralTypeAnnotation":return o.extra?aS(o.extra.raw):aS(o.raw);case"TypeCastExpression":return["(",n("expression"),US(e,t,n),")"];case"TypeParameterDeclaration":case"TypeParameterInstantiation":var _r101=ow(e,t,n,"params");if("flow"===t.parser){var _e167=OS(o),_n87=IS(o),_i66=t.originalText.lastIndexOf("/*",_e167),_u23=t.originalText.indexOf("*/",_n87);if(-1!==_i66&&-1!==_u23){var _e168=t.originalText.slice(_i66+2,_u23).trim();if(_e168.startsWith("::")&&!_e168.includes("/*")&&!_e168.includes("*/"))return["/*:: ",_r101," */"]}}return _r101;case"InferredPredicate":return"%checks";case"DeclaredPredicate":return["%checks(",n("value"),")"];case"AnyTypeAnnotation":case"TSAnyKeyword":return"any";case"BooleanTypeAnnotation":case"TSBooleanKeyword":return"boolean";case"BigIntTypeAnnotation":case"TSBigIntKeyword":return"bigint";case"TSConstKeyword":return"const";case"NullLiteralTypeAnnotation":case"TSNullKeyword":return"null";case"NumberTypeAnnotation":case"TSNumberKeyword":return"number";case"SymbolTypeAnnotation":case"TSSymbolKeyword":return"symbol";case"StringTypeAnnotation":case"TSStringKeyword":return"string";case"VoidTypeAnnotation":case"TSVoidKeyword":return"void";case"ThisTypeAnnotation":case"TSThisType":return"this";case"PrivateIdentifier":return["#",n("name")];case"PrivateName":return["#",n("id")];case"InterpreterDirective":return u.push("#!",o.value,pS),SS(o,t)&&u.push(pS),u;case"PipelineBareFunction":return n("callee");case"PipelineTopicExpression":return n("expression");case"PipelinePrimaryTopicReference":return"#";case"ArgumentPlaceholder":return"?";case"ModuleExpression":u.push("module {");var _e169=n("body");return _e169&&u.push(mS([pS,_e169]),pS),u.push("}"),u;default:throw new Error("unknown type: "+JSON.stringify(o.type))}}(e,t,n,r);if(!o)return"";var i=e.getValue(),u=i.type;if("ClassMethod"===u||"ClassPrivateMethod"===u||"ClassProperty"===u||"PropertyDefinition"===u||"TSAbstractClassProperty"===u||"ClassPrivateProperty"===u||"MethodDefinition"===u||"TSAbstractMethodDefinition"===u||"TSDeclareMethod"===u)return o;var s=Aw(e,t,n);if(s)return hS([].concat(_toConsumableArray(s),[o]));if(!fg(e,t))return r&&r.needsSemi?[";",o]:o;var a=[r&&r.needsSemi?";(":"(",o];if(DS(i)){var _e170=_slicedToArray(i.trailingComments,1)[0];a.push(" /*",_e170.value.trimStart(),"*/"),_e170.printed=!0}return a.push(")"),a},embed:mh,insertPragma:gS,massageAstNode:bh,hasPrettierIgnore:function hasPrettierIgnore(e){return kS(e)||RS(e)},willPrintOwnComments:Km.willPrintOwnComments,canAttachComment:function canAttachComment(e){return e.type&&!FS(e)&&!xS(e)&&"EmptyStatement"!==e.type&&"TemplateElement"!==e.type&&"Import"!==e.type&&"TSEmptyBodyFunctionExpression"!==e.type},printComment:Cw,isBlockComment:FS,handleComments:{avoidAstMutation:!0,ownLine:Km.handleOwnLineComment,endOfLine:Km.handleEndOfLineComment,remaining:Km.handleRemainingComment},getCommentChildNodes:Km.getCommentChildNodes},_Rn$builders33=Rn.builders,Sw=_Rn$builders33.hardline,ww=_Rn$builders33.indent,Tw=_Rn$builders33.join,Bw=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function kw(e,t){var n=e.type;if("ObjectProperty"!==n||"Identifier"!==e.key.type){if("UnaryExpression"===n&&"+"===e.operator)return t.argument;if("ArrayExpression"!==n)return"TemplateLiteral"===n?{type:"StringLiteral",value:e.quasis[0].value.cooked}:void 0;var _step66,_iterator66=_createForOfIteratorHelper(e.elements.entries());try{for(_iterator66.s();!(_step66=_iterator66.n()).done;){var _step66$value=_slicedToArray(_step66.value,2),_n88=_step66$value[0];null===_step66$value[1]&&t.elements.splice(_n88,0,{type:"NullLiteral"})}}catch(err){_iterator66.e(err)}finally{_iterator66.f()}}else t.key={type:"StringLiteral",value:e.key.name}}kw.ignoredProperties=Bw;var Nw={preprocess:dg,print:function print(e,t,n){var r=e.getValue();switch(r.type){case"JsonRoot":return[n("node"),Sw];case"ArrayExpression":if(0===r.elements.length)return"[]";var _t142=e.map((function(){return null===e.getValue()?"null":n()}),"elements");return["[",ww([Sw,Tw([",",Sw],_t142)]),Sw,"]"];case"ObjectExpression":return 0===r.properties.length?"{}":["{",ww([Sw,Tw([",",Sw],e.map(n,"properties"))]),Sw,"}"];case"ObjectProperty":return[n("key"),": ",n("value")];case"UnaryExpression":return["+"===r.operator?"":r.operator,n("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return r.value?"true":"false";case"StringLiteral":case"NumericLiteral":return JSON.stringify(r.value);case"Identifier":var _t143=e.getParentNode();return _t143&&"ObjectProperty"===_t143.type&&_t143.key===r?JSON.stringify(r.name):r.name;case"TemplateLiteral":return n(["quasis",0]);case"TemplateElement":return JSON.stringify(r.value.cooked);default:throw new Error("unknown type: "+JSON.stringify(r.type))}},massageAstNode:kw},Pw="Common",Ow={bracketSpacing:{since:"0.0.0",category:Pw,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:Pw,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:Pw,type:"choice",default:[{since:"1.8.2",value:!0},{since:"1.9.0",value:"preserve"}],description:"How to wrap prose.",choices:[{since:"1.9.0",value:"always",description:"Wrap prose if it exceeds the print width."},{since:"1.9.0",value:"never",description:"Do not wrap prose."},{since:"1.9.0",value:"preserve",description:"Wrap prose as-is."}]}},Iw="JavaScript",jw={arrowParens:{since:"1.9.0",category:Iw,type:"choice",default:[{since:"1.9.0",value:"avoid"},{since:"2.0.0",value:"always"}],description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSpacing:Ow.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:Iw,type:"boolean",default:!1,description:"Put > on the last line instead of at a new line."},semi:{since:"1.0.0",category:Iw,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:Ow.singleQuote,jsxSingleQuote:{since:"1.15.0",category:Iw,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:Iw,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{since:"0.0.0",category:Iw,type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"},{since:"2.0.0",value:"es5"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."},{value:"all",description:"Trailing commas wherever possible (including function arguments)."}]}},Lw={name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".jsb",".jscad",".jsfl",".jsm",".jss",".jsx",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],languageId:183},_w={name:"TypeScript",type:"programming",color:"#2b7489",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378},Mw={name:"TSX",type:"programming",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924},Rw={name:"JSON",type:"data",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",extensions:[".json",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".arcconfig",".htmlhintrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","mcmod.info"],languageId:174},Vw={name:"JSON with Comments",type:"data",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[".babelrc",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","devcontainer.json","jsconfig.json","language-configuration.json","tsconfig.json","tslint.json"],languageId:423},$w={name:"JSON5",type:"data",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175},qw={languages:[df(Lw,(function(e){return{since:"0.0.0",parsers:["babel","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],extensions:[].concat(_toConsumableArray(e.extensions.filter((function(e){return".jsx"!==e}))),[".wxs"])}})),df(Lw,(function(){return{name:"Flow",since:"0.0.0",parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]}})),df(Lw,(function(){return{name:"JSX",since:"0.0.0",parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],aliases:void 0,filenames:void 0,extensions:[".jsx"],group:"JavaScript",interpreters:void 0,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0}})),df(_w,(function(){return{since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]}})),df(Mw,(function(){return{since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}})),df(Rw,(function(){return{name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[],filenames:["package.json","package-lock.json","composer.json"]}})),df(Rw,(function(e){return{since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],extensions:e.extensions.filter((function(e){return".jsonl"!==e}))}})),df(Vw,(function(e){return{since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:[].concat(_toConsumableArray(e.filenames),[".eslintrc"])}})),df($w,(function(){return{since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]}}))],options:jw,printers:{estree:xw,"estree-json":Nw},parsers:{get babel(){return{}.parsers.babel},get"babel-flow"(){return{}.parsers["babel-flow"]},get"babel-ts"(){return{}.parsers["babel-ts"]},get json(){return{}.parsers.json},get json5(){return{}.parsers.json5},get"json-stringify"(){return{}.parsers["json-stringify"]},get __js_expression(){return{}.parsers.__js_expression},get __vue_expression(){return{}.parsers.__vue_expression},get __vue_event_binding(){return{}.parsers.__vue_event_binding},get flow(){return{}.parsers.flow},get typescript(){return{}.parsers.typescript},get __ng_action(){return{}.parsers.__ng_action},get __ng_binding(){return{}.parsers.__ng_binding},get __ng_interpolation(){return{}.parsers.__ng_interpolation},get __ng_directive(){return{}.parsers.__ng_directive},get espree(){return{}.parsers.espree},get meriyah(){return{}.parsers.meriyah}}},Ww=rn.isFrontMatterNode,Uw=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma"]);function zw(e,t,n){if(Ww(e)&&"yaml"===e.lang&&delete t.value,"css-comment"===e.type&&"css-root"===n.type&&n.nodes.length>0){if((n.nodes[0]===e||Ww(n.nodes[0])&&n.nodes[1]===e)&&(delete t.text,/^\*\s*@(format|prettier)\s*$/.test(e.text)))return null;if("css-root"===n.type&&ke(n.nodes)===e)return null}if("value-root"===e.type&&delete t.text,"media-query"!==e.type&&"media-query-list"!==e.type&&"media-feature-expression"!==e.type||delete t.value,"css-rule"===e.type&&delete t.params,"selector-combinator"===e.type&&(t.value=t.value.replace(/\s+/g," ")),"media-feature"===e.type&&(t.value=t.value.replace(/ /g,"")),("value-word"===e.type&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(t.value.replace().toLowerCase()))||"media-feature"===e.type||"selector-root-invalid"===e.type||"selector-pseudo"===e.type)&&(t.value=t.value.toLowerCase()),"css-decl"===e.type&&(t.prop=t.prop.toLowerCase()),"css-atrule"!==e.type&&"css-import"!==e.type||(t.name=t.name.toLowerCase()),"value-number"===e.type&&(t.unit=t.unit.toLowerCase()),"media-feature"!==e.type&&"media-keyword"!==e.type&&"media-type"!==e.type&&"media-unknown"!==e.type&&"media-url"!==e.type&&"media-value"!==e.type&&"selector-attribute"!==e.type&&"selector-string"!==e.type&&"selector-class"!==e.type&&"selector-combinator"!==e.type&&"value-string"!==e.type||!t.value||(t.value=t.value.replace(/'/g,'"').replace(/\\([^\dA-Fa-f])/g,"$1")),"selector-attribute"===e.type&&(t.attribute=t.attribute.trim(),t.namespace&&"string"==typeof t.namespace&&(t.namespace=t.namespace.trim(),0===t.namespace.length&&(t.namespace=!0)),t.value&&(t.value=t.value.trim().replace(/^["']|["']$/g,""),delete t.quoted)),"media-value"!==e.type&&"media-type"!==e.type&&"value-number"!==e.type&&"selector-root-invalid"!==e.type&&"selector-class"!==e.type&&"selector-combinator"!==e.type&&"selector-tag"!==e.type||!t.value||(t.value=t.value.replace(/([\d+.Ee-]+)([A-Za-z]*)/g,(function(e,t,n){var r=Number(t);return Number.isNaN(r)?e:r+n.toLowerCase()}))),"selector-tag"===e.type){var _n89=e.value.toLowerCase();["from","to"].includes(_n89)&&(t.value=_n89)}"css-atrule"===e.type&&"supports"===e.name.toLowerCase()&&delete t.value,"selector-unknown"===e.type&&delete t.value}zw.ignoredProperties=Uw;var Hw=zw,_Rn$builders34=Rn.builders,Gw=_Rn$builders34.hardline,Jw=_Rn$builders34.markAsRoot,Xw=function Xw(e,t){if("yaml"===e.lang){var _n90=e.value.trim(),_r103=_n90?t(_n90,{parser:"yaml"},{stripTrailingHardline:!0}):"";return Jw([e.startDelimiter,Gw,_r103,_r103?Gw:"",e.endDelimiter])}},Yw=Rn.builders.hardline,Kw=function Kw(e,t,n){var r=e.getValue();if("front-matter"===r.type){var _e171=Xw(r,n);return _e171?[_e171,Yw]:""}},Qw=new RegExp("^(?-{3}|\\+{3})(?[^\\n]*)\\n(?:|(?[\\S\\s]*?)\\n)(?\\k|\\.{3})[^\\S\\n]*(?:\\n|$)"),Zw=function Zw(e){var t=e.match(Qw);if(!t)return{content:e};var _t$groups2=t.groups,n=_t$groups2.startDelimiter,r=_t$groups2.language,_t$groups2$value=_t$groups2.value,o=void 0===_t$groups2$value?"":_t$groups2$value,i=_t$groups2.endDelimiter,u=r.trim()||"yaml";if("+++"===n&&(u="toml"),"yaml"!==u&&n!==i)return{content:e};var s=_slicedToArray(t,1)[0];return{frontMatter:{type:"front-matter",lang:u,value:o,startDelimiter:n,endDelimiter:i,raw:s.replace(/\n$/,"")},content:s.replace(/[^\n]/g," ")+e.slice(s.length)}},eT={hasPragma:function hasPragma(e){return Xh.hasPragma(Zw(e).content)},insertPragma:function insertPragma(e){var _Zw=Zw(e),t=_Zw.frontMatter,n=_Zw.content;return(t?t.raw+"\n\n":"")+Xh.insertPragma(n)}},tT=rn.isNonEmptyArray,nT=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function rT(e,t){for(var r,n=Array.isArray(t)?t:[t],o=-1;r=e.getParentNode(++o);)if(n.includes(r.type))return o;return-1}function oT(e,t){var n=rT(e,t);return-1===n?null:e.getParentNode(n)}function iT(e){return"value-operator"===e.type&&"*"===e.value}function uT(e){return"value-operator"===e.type&&"/"===e.value}function sT(e){return"value-operator"===e.type&&"+"===e.value}function aT(e){return"value-operator"===e.type&&"-"===e.value}function cT(e){return"value-operator"===e.type&&"%"===e.value}function lT(e){return"value-comma_group"===e.type&&e.groups&&e.groups[1]&&"value-colon"===e.groups[1].type}function pT(e){return"value-paren_group"===e.type&&e.groups&&e.groups[0]&&lT(e.groups[0])}function fT(e){return e&&"value-colon"===e.type}var dT={getAncestorCounter:rT,getAncestorNode:oT,getPropOfDeclNode:function getPropOfDeclNode(e){var t=oT(e,"css-decl");return t&&t.prop&&t.prop.toLowerCase()},hasSCSSInterpolation:function hasSCSSInterpolation(e){if(tT(e))for(var _t145=e.length-1;_t145>0;_t145--)if("word"===e[_t145].type&&"{"===e[_t145].value&&"word"===e[_t145-1].type&&e[_t145-1].value.endsWith("#"))return!0;return!1},hasStringOrFunction:function hasStringOrFunction(e){if(tT(e))for(var _t146=0;_t146","<=",">="].includes(e.value)},isEqualityOperatorNode:function isEqualityOperatorNode(e){return"value-word"===e.type&&["==","!="].includes(e.value)},isMultiplicationNode:iT,isDivisionNode:uT,isAdditionNode:sT,isSubtractionNode:aT,isModuloNode:cT,isMathOperatorNode:function isMathOperatorNode(e){return iT(e)||uT(e)||sT(e)||aT(e)||cT(e)},isEachKeywordNode:function isEachKeywordNode(e){return"value-word"===e.type&&"in"===e.value},isForKeywordNode:function isForKeywordNode(e){return"value-word"===e.type&&["from","through","end"].includes(e.value)},isURLFunctionNode:function isURLFunctionNode(e){return"value-func"===e.type&&"url"===e.value.toLowerCase()},isIfElseKeywordNode:function isIfElseKeywordNode(e){return"value-word"===e.type&&["and","or","not"].includes(e.value)},hasComposesNode:function hasComposesNode(e){return e.value&&"value-root"===e.value.type&&e.value.group&&"value-value"===e.value.group.type&&"composes"===e.prop.toLowerCase()},hasParensAroundNode:function hasParensAroundNode(e){return e.value&&e.value.group&&e.value.group.group&&"value-paren_group"===e.value.group.group.type&&null!==e.value.group.group.open&&null!==e.value.group.group.close},hasEmptyRawBefore:function hasEmptyRawBefore(e){return e.raws&&""===e.raws.before},isSCSSNestedPropertyNode:function isSCSSNestedPropertyNode(e){return!!e.selector&&e.selector.replace(/\/\*.*?\*\//,"").replace(/\/\/.*?\n/,"").trim().endsWith(":")},isDetachedRulesetCallNode:function isDetachedRulesetCallNode(e){return e.raws&&e.raws.params&&/^\(\s*\)$/.test(e.raws.params)},isTemplatePlaceholderNode:function isTemplatePlaceholderNode(e){return e.name.startsWith("prettier-placeholder")},isTemplatePropNode:function isTemplatePropNode(e){return e.prop.startsWith("@prettier-placeholder")},isPostcssSimpleVarNode:function isPostcssSimpleVarNode(e,t){return"$$"===e.value&&"value-func"===e.type&&t&&"value-word"===t.type&&!t.raws.before},isKeyValuePairNode:lT,isKeyValuePairInParenGroupNode:pT,isKeyInValuePairNode:function isKeyInValuePairNode(e,t){if(!lT(t))return!1;var n=t.groups,r=n.indexOf(e);return-1!==r&&fT(n[r+1])},isSCSSMapItemNode:function isSCSSMapItemNode(e){var t=e.getValue();if(0===t.groups.length)return!1;var n=e.getParentNode(1);if(!(pT(t)||n&&pT(n)))return!1;var r=oT(e,"css-decl");return!!(r&&r.prop&&r.prop.startsWith("$"))||!!pT(n)||"value-func"===n.type},isInlineValueCommentNode:function isInlineValueCommentNode(e){return"value-comment"===e.type&&e.inline},isHashNode:function isHashNode(e){return"value-word"===e.type&&"#"===e.value},isLeftCurlyBraceNode:function isLeftCurlyBraceNode(e){return"value-word"===e.type&&"{"===e.value},isRightCurlyBraceNode:function isRightCurlyBraceNode(e){return"value-word"===e.type&&"}"===e.value},isWordNode:function isWordNode(e){return["value-word","value-atword"].includes(e.type)},isColonNode:fT,isMediaAndSupportsKeywords:function isMediaAndSupportsKeywords(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())},isColorAdjusterFuncNode:function isColorAdjusterFuncNode(e){return"value-func"===e.type&&nT.has(e.value.toLowerCase())},lastLineHasInlineComment:function lastLineHasInlineComment(e){return/\/\//.test(e.split(/[\n\r]/).pop())},stringifyNode:function e(t){if(t.groups)return(t.open&&t.open.value?t.open.value:"")+t.groups.reduce((function(n,r,o){return n+e(r)+("comma_group"===t.groups[0].type&&o!==t.groups.length-1?",":"")}),"")+(t.close&&t.close.value?t.close.value:"");var n=t.raws&&t.raws.before?t.raws.before:"",r=t.raws&&t.raws.quote?t.raws.quote:"";return n+r+("atword"===t.type?"@":"")+(t.value?t.value:"")+r+(t.unit?t.unit:"")+(t.group?e(t.group):"")+(t.raws&&t.raws.after?t.raws.after:"")},isAtWordPlaceholderNode:function isAtWordPlaceholderNode(e){return e&&"value-atword"===e.type&&e.value.startsWith("prettier-placeholder-")}},hT=function hT(e,t){for(var n=0,_r104=0;_r1040?kT:""];case"css-comment":var _e172=r.inline||r.raws.inline,_n93=t.originalText.slice(PB(r),OB(r));return _e172?_n93.trimEnd():_n93;case"css-rule":return[n("selector"),r.important?" !important":"",r.nodes?[r.selector&&"selector-unknown"===r.selector.type&&kB(r.selector.value)?BT:" ","{",r.nodes.length>0?IT([kT,jB(e,t,n)]):"",kT,"}",eB(r)?";":""]:";"];case"css-decl":var _o47=e.getParentNode(),_u25=r.raws.between.trim(),_s30=":"===_u25,_a12=fB(r)?MT(n("value")):n("value");return!_s30&&kB(_u25)&&(_a12=IT([kT,jT(_a12)])),[r.raws.before.replace(/[\s;]/g,""),zT(e)?r.prop:WT(r.prop),_u25.startsWith("//")?" ":"",_u25,r.extend?"":" ",QT(t)&&r.extend&&r.selector?["extend(",n("selector"),")"]:"",_a12,r.raws.important?r.raws.important.replace(/\s*!\s*important/i," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/i," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/i," !global"):r.scssGlobal?" !global":"",r.nodes?[" {",IT([NT,jB(e,t,n)]),NT,"}"]:EB(r)&&!_o47.raws.semicolon&&";"!==t.originalText[OB(r)-1]?"":t.__isHTMLStyleAttribute&&KT(e,r)?LT(";"):";"];case"css-atrule":var _o48=e.getParentNode(),_i71=DB(r)&&!_o48.raws.semicolon&&";"!==t.originalText[OB(r)-1];if(QT(t)){if(r.mixin)return[n("selector"),r.important?" !important":"",_i71?"":";"];if(r.function)return[r.name,n("params"),_i71?"":";"];if(r.variable)return["@",r.name,": ",r.value?n("value"):"",r.raws.between.trim()?r.raws.between.trim()+" ":"",r.nodes?["{",IT([r.nodes.length>0?NT:"",jB(e,t,n)]),NT,"}"]:"",_i71?"":";"]}return["@",yB(r)||r.name.endsWith(":")?r.name:WT(r.name),r.params?[yB(r)?"":DB(r)?""===r.raws.afterName?"":r.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(r.raws.afterName)?[kT,kT]:/^\s*\n/.test(r.raws.afterName)?kT:" ":" ",n("params")]:"",r.selector?IT([" ",n("selector")]):"",r.value?PT([" ",n("value"),ZT(r)?dB(r)?" ":BT:""]):"else"===r.name?" ":"",r.nodes?[ZT(r)?"":r.selector&&!r.selector.nodes&&"string"==typeof r.selector.value&&kB(r.selector.value)||!r.selector&&"string"==typeof r.params&&kB(r.params)?BT:" ","{",IT([r.nodes.length>0?NT:"",jB(e,t,n)]),NT,"}"]:_i71?"":";"];case"media-query-list":var _t148=[];return e.each((function(e){var r=e.getValue();"media-query"===r.type&&""===r.value||_t148.push(n())}),"nodes"),PT(IT(TT(BT,_t148)));case"media-query":return[TT(" ",e.map(n,"nodes")),KT(e,r)?"":","];case"media-type":case"media-value":return VB(MB(r.value,t));case"media-feature-expression":return r.nodes?["("].concat(_toConsumableArray(e.map(n,"nodes")),[")"]):r.value;case"media-feature":return WT(MB(r.value.replace(/ +/g," "),t));case"media-colon":case"value-comma":return[r.value," "];case"media-keyword":case"selector-string":return MB(r.value,t);case"media-url":return MB(r.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/gi,")"),t);case"media-unknown":case"selector-comment":case"selector-nesting":case"value-paren":case"value-operator":case"value-unicode-range":case"value-unknown":return r.value;case"selector-root":return PT([HT(e,"custom-selector")?[$T(e,"css-atrule").customSelector,BT]:"",TT([",",HT(e,["extend","custom-selector","nest"])?BT:kT],e.map(n,"nodes"))]);case"selector-selector":return PT(IT(e.map(n,"nodes")));case"selector-tag":var _t149=e.getParentNode(),_n94=_t149&&_t149.nodes.indexOf(r),_o49=_n94&&_t149.nodes[_n94-1];return[r.namespace?[!0===r.namespace?"":r.namespace.trim(),"|"]:"","selector-nesting"===_o49.type?r.value:VB(JT(e,r.value)?r.value.toLowerCase():r.value)];case"selector-id":return["#",r.value];case"selector-class":return[".",VB(MB(r.value,t))];case"selector-attribute":return["[",r.namespace?[!0===r.namespace?"":r.namespace.trim(),"|"]:"",r.attribute.trim(),r.operator?r.operator:"",r.value?RB(MB(r.value.trim(),t),t):"",r.insensitive?" i":"","]"];case"selector-combinator":if("+"===r.value||">"===r.value||"~"===r.value||">>>"===r.value){var _t150=e.getParentNode();return["selector-selector"===_t150.type&&_t150.nodes[0]===r?"":BT,r.value,KT(e,r)?"":" "]}return[r.value.trim().startsWith("(")?BT:"",VB(MB(r.value.trim(),t))||BT];case"selector-universal":return[r.namespace?[!0===r.namespace?"":r.namespace.trim(),"|"]:"",r.value];case"selector-pseudo":return[WT(r.value),wT(r.nodes)?["(",TT(", ",e.map(n,"nodes")),")"]:""];case"selector-unknown":var _n95=$T(e,"css-rule");if(_n95&&_n95.isSCSSNesterProperty)return VB(MB(WT(r.value),t));var _o50=e.getParentNode();if(_o50.raws&&_o50.raws.selector){var _e173=PB(_o50),_n96=_e173+_o50.raws.selector.length;return t.originalText.slice(_e173,_n96).trim()}var _i72=e.getParentNode(1);if("value-paren_group"===_o50.type&&_i72&&"value-func"===_i72.type&&"selector"===_i72.value){var _e174=PB(_o50.open)+1,_n97=OB(_o50.close)-1,_r107=t.originalText.slice(_e174,_n97).trim();return kB(_r107)?[_T,_r107]:_r107}return r.value;case"value-value":case"value-root":return n("group");case"value-comment":return t.originalText.slice(PB(r),OB(r));case"value-comma_group":for(var _t151=e.getParentNode(),_o51=e.getParentNode(1),_i73=qT(e),_u26=_i73&&"value-value"===_t151.type&&("grid"===_i73||_i73.startsWith("grid-template")),_s31=$T(e,"css-atrule"),_a13=_s31&&ZT(_s31),_c16=r.groups.some((function(e){return vB(e)})),_l12=e.map(n,"groups"),_p11=[],_f8=UT(e,"url"),_d7=!1,_h7=!1,_n98=0;_n980&&"value-comma_group"===r.groups[0].type&&r.groups[0].groups.length>0&&"value-word"===r.groups[0].groups[0].type&&r.groups[0].groups[0].value.startsWith("data:")))return[r.open?n("open"):"",TT(",",e.map(n,"groups")),r.close?n("close"):""];if(!r.open){for(var _t152=e.map(n,"groups"),_r108=[],_e175=0;_e175<_t152.length;_e175++)0!==_e175&&_r108.push([",",BT]),_r108.push(_t152[_e175]);return PT(IT(OT(_r108)))}var _i75=CB(e),_u27=ke(r.groups),_s32=_u27&&"value-comment"===_u27.type,_a14=gB(r,_o52),_c18=PT([r.open?n("open"):"",IT([NT,TT([",",BT],e.map((function(e){var t=e.getValue(),r=n();if(mB(t)&&"value-comma_group"===t.type&&t.groups&&"value-paren_group"!==t.groups[0].type&&t.groups[2]&&"value-paren_group"===t.groups[2].type){var _e176=RT(r.contents.contents);return _e176[1]=PT(_e176[1]),PT(jT(r))}return r}),"groups"))]),LT(!_s32&&YT(t.parser,t.originalText)&&_i75&&IB(t)?",":""),NT,r.close?n("close"):""],{shouldBreak:_i75&&!_a14});return _a14?jT(_c18):_c18;case"value-func":return[r.value,HT(e,"supports")&&TB(r)?" ":"",n("group")];case"value-number":return[$B(r.value),WT(r.unit)];case"value-word":return r.isColor&&r.isHex||XT(r.value)?r.value.toLowerCase():r.value;case"value-colon":var _t153=e.getParentNode(),_n99=_t153&&_t153.groups.indexOf(r),_o53=_n99&&_t153.groups[_n99-1];return[r.value,_o53&&"string"==typeof _o53.value&&"\\"===ke(_o53.value)||UT(e,"url")?"":BT];case"value-string":return AT(r.raws.quote+r.value+r.raws.quote,t);case"value-atword":return["@",r.value];default:throw new Error("Unknown postcss type ".concat(JSON.stringify(r.type)))}},embed:Kw,insertPragma:VT,massageAstNode:Hw},WB={singleQuote:Ow.singleQuote},UB={name:"PostCSS",type:"markup",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",languageId:262764437},zB={name:"Less",type:"markup",color:"#1d365d",extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",languageId:198},HB={name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],languageId:329},GB={languages:[df({name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css"],languageId:50},(function(e){return{since:"1.4.0",parsers:["css"],vscodeLanguageIds:["css"],extensions:[].concat(_toConsumableArray(e.extensions),[".wxss"])}})),df(UB,(function(){return{since:"1.4.0",parsers:["css"],vscodeLanguageIds:["postcss"]}})),df(zB,(function(){return{since:"1.4.0",parsers:["less"],vscodeLanguageIds:["less"]}})),df(HB,(function(){return{since:"1.4.0",parsers:["scss"],vscodeLanguageIds:["scss"]}}))],options:WB,printers:{postcss:qB},parsers:{get css(){return{}.parsers.css},get less(){return{}.parsers.less},get scss(){return{}.parsers.scss}}},JB={locStart:function locStart(e){return e.loc.start.offset},locEnd:function locEnd(e){return e.loc.end.offset}};function XB(e,t){if("TextNode"===e.type){var _n100=e.chars.trim();if(!_n100)return null;t.chars=_n100.replace(/[\t\n\f\r ]+/g," ")}"AttrNode"===e.type&&"class"===e.name.toLowerCase()&&delete t.value}XB.ignoredProperties=new Set(["loc","selfClosing"]);var YB=XB,KB=new Set(["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"]);function QB(e){return ZB(e,["TextNode"])&&!/\S/.test(e.chars)}function ZB(e,t){return e&&t.includes(e.type)}function ek(e,t){return ZB(e.getParentNode(0),t)}function tk(e,t){var n=e.getValue(),r=e.getParentNode(0)||{},o=r.children||r.body||r.parts||[],i=o.indexOf(n);return-1!==i&&o[i+t]}function nk(e){return tk(e,-(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1))}function rk(e){return tk(e,1)}function ok(e){return ZB(e,["MustacheCommentStatement"])&&"string"==typeof e.value&&"prettier-ignore"===e.value.trim()}var ik={getNextNode:rk,getPreviousNode:nk,hasPrettierIgnore:function hasPrettierIgnore(e){var t=e.getValue(),n=nk(e,2);return ok(t)||ok(n)},isLastNodeOfSiblings:function isLastNodeOfSiblings(e){var t=e.getValue(),n=e.getParentNode(0);return!(!ek(e,["ElementNode"])||ke(n.children)!==t)||!(!ek(e,["Block"])||ke(n.body)!==t)},isNextNodeOfSomeType:function isNextNodeOfSomeType(e,t){return ZB(rk(e),t)},isNodeOfSomeType:ZB,isParentOfSomeType:ek,isPreviousNodeOfSomeType:function isPreviousNodeOfSomeType(e,t){return ZB(nk(e),t)},isVoid:function isVoid(e){return function(e){return ZB(e,["ElementNode"])&&"string"==typeof e.tag&&(function(e){return e.toUpperCase()===e}(e.tag[0])||e.tag.includes("."))}(e)&&e.children.every((function(e){return QB(e)}))||KB.has(e.tag)},isWhitespaceNode:QB},_Rn$builders36=Rn.builders,uk=_Rn$builders36.dedent,sk=_Rn$builders36.fill,ak=_Rn$builders36.group,ck=_Rn$builders36.hardline,lk=_Rn$builders36.ifBreak,pk=_Rn$builders36.indent,fk=_Rn$builders36.join,dk=_Rn$builders36.line,hk=_Rn$builders36.softline,mk=_Rn$builders36.literalline,gk=Rn.utils.getDocParts,yk=rn.isNonEmptyArray,Dk=rn.replaceEndOfLineWith,Ek=JB.locStart,bk=JB.locEnd,Ck=ik.getNextNode,vk=ik.getPreviousNode,Ak=ik.hasPrettierIgnore,Fk=ik.isLastNodeOfSiblings,xk=ik.isNextNodeOfSomeType,Sk=ik.isNodeOfSomeType,wk=ik.isParentOfSomeType,Tk=ik.isPreviousNodeOfSomeType,Bk=ik.isVoid,kk=ik.isWhitespaceNode;function Nk(e,t,n){var r=e.getValue().children.every((function(e){return kk(e)}));return"ignore"===t.htmlWhitespaceSensitivity&&r?"":e.map((function(e,r){var o=n();return 0===r&&"ignore"===t.htmlWhitespaceSensitivity?[hk,o]:o}),"children")}function Pk(e){return Bk(e)?lk([hk,"/>"],[" />",hk]):lk([hk,">"],">")}function Ok(e){return[!1===e.escaped?"{{{":"{{",e.strip&&e.strip.open?"~":""]}function Ik(e){var t=!1===e.escaped?"}}}":"}}";return[e.strip&&e.strip.close?"~":"",t]}function jk(e){return[Ok(e),e.closeStrip.open?"~":"","/"]}function Lk(e){var t=Ik(e);return[e.closeStrip.close?"~":"",t]}function _k(e){return[Ok(e),e.inverseStrip.open?"~":""]}function Mk(e){var t=Ik(e);return[e.inverseStrip.close?"~":"",t]}function Rk(e,t){var n=e.getValue(),r=function(e){return[Ok(e),e.openStrip.open?"~":"","#"]}(n),o=function(e){var t=Ik(e);return[e.openStrip.close?"~":"",t]}(n),i=[Zk(e,t)],u=eN(e,t);if(u&&i.push(dk,u),yk(n.program.blockParams)){var _e177=tN(n.program);i.push(dk,_e177)}return ak([r,pk(i),hk,o])}function Vk(e,t){return["ignore"===t.htmlWhitespaceSensitivity?ck:"",_k(e),"else",Mk(e)]}function $k(e,t){var n=e.getParentNode(1);return[_k(n),"else if ",eN(e,t),Mk(n)]}function qk(e,t,n){var r=e.getValue();return"ignore"===n.htmlWhitespaceSensitivity?[Wk(r)?hk:ck,jk(r),t("path"),Lk(r)]:[jk(r),t("path"),Lk(r)]}function Wk(e){return Sk(e,["BlockStatement"])&&e.program.body.every((function(e){return kk(e)}))}function Uk(e){return Sk(e,["BlockStatement"])&&e.inverse}function zk(e,t,n){if(Wk(e.getValue()))return"";var r=t("program");return"ignore"===n.htmlWhitespaceSensitivity?pk([ck,r]):pk(r)}function Hk(e,t,n){var r=e.getValue(),o=t("inverse"),i="ignore"===n.htmlWhitespaceSensitivity?[ck,o]:o;return function(e){return Uk(e)&&1===e.inverse.body.length&&Sk(e.inverse.body[0],["BlockStatement"])&&"if"===e.inverse.body[0].path.parts[0]}(r)?i:Uk(r)?[Vk(r,n),pk(i)]:""}function Gk(e){return gk(fk(dk,function(e){return e.split(/[\t\n\f\r ]+/)}(e)))}function Jk(e){return(e="string"==typeof e?e:"").split("\n").length-1}function Xk(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Array(Math.min(e,2)).fill(ck)}function Yk(e,t){var n={quote:'"',regex:/"/g},r={quote:"'",regex:/'/g},o=e.singleQuote?r:n,i=o===r?n:r,u=!1;return(t.includes(o.quote)||t.includes(i.quote))&&(u=(t.match(o.regex)||[]).length>(t.match(i.regex)||[]).length),u?i:o}function Kk(e,t){var n=Zk(e,t),r=eN(e,t);return r?pk([n,dk,ak(r)]):n}function Qk(e,t){var n=Zk(e,t),r=eN(e,t);return r?[pk([n,dk,r]),hk]:n}function Zk(e,t){return t("path")}function eN(e,t){var n=e.getValue(),r=[];if(n.params.length>0){var _n101=e.map(t,"params");r.push.apply(r,_toConsumableArray(_n101))}if(n.hash&&n.hash.pairs.length>0){var _e178=t("hash");r.push(_e178)}return 0===r.length?"":fk(dk,r)}function tN(e){return["as |",e.blockParams.join(" "),"|"]}var nN={print:function print(e,t,n){var r=e.getValue();if(!r)return"";if(Ak(e))return t.originalText.slice(Ek(r),bk(r));switch(r.type){case"Block":case"Program":case"Template":return ak(e.map(n,"body"));case"ElementNode":var _o54=ak(function(e,t){var n=e.getValue(),r=["attributes","modifiers","comments","blockParams"].filter((function(e){return yk(n[e])})).map((function(r){return[dk,"blockParams"===r?tN(n):fk(dk,e.map(t,r))]}));return["<",n.tag,pk(r),Pk(n)]}(e,n)),_i76="ignore"===t.htmlWhitespaceSensitivity&&xk(e,["ElementNode"])?hk:"";if(Bk(r))return[_o54,_i76];var _u28=[""];return 0===r.children.length?[_o54,pk(_u28),_i76]:"ignore"===t.htmlWhitespaceSensitivity?[_o54,pk(Nk(e,t,n)),ck,pk(_u28),_i76]:[_o54,pk(ak(Nk(e,t,n))),pk(_u28),_i76];case"BlockStatement":var _o55=e.getParentNode(1);return _o55&&_o55.inverse&&1===_o55.inverse.body.length&&_o55.inverse.body[0]===r&&"if"===_o55.inverse.body[0].path.parts[0]?[$k(e,n),zk(e,n,t),Hk(e,n,t)]:[Rk(e,n),ak([zk(e,n,t),Hk(e,n,t),qk(e,n,t)])];case"ElementModifierStatement":return ak(["{{",Qk(e,n),"}}"]);case"MustacheStatement":return ak([Ok(r),Qk(e,n),Ik(r)]);case"SubExpression":return ak(["(",Kk(e,n),hk,")"]);case"AttrNode":var _e179="TextNode"===r.value.type;if(_e179&&""===r.value.chars&&Ek(r.value)===bk(r.value))return r.name;var _o56=_e179?Yk(t,r.value.chars).quote:"ConcatStatement"===r.value.type?Yk(t,r.value.parts.filter((function(e){return"TextNode"===e.type})).map((function(e){return e.chars})).join("")).quote:"",_i77=n("value");return[r.name,"=",_o56,"class"===r.name&&_o56?ak(pk(_i77)):_i77,_o56];case"ConcatStatement":return e.map(n,"parts");case"Hash":return fk(dk,e.map(n,"pairs"));case"HashPair":return[r.key,"=",n("value")];case"TextNode":var _n102=r.chars.replace(/{{/g,"\\{{"),_o57=function(e){for(var _t154=0;_t154<2;_t154++){var _n103=e.getParentNode(_t154);if(_n103&&"AttrNode"===_n103.type)return _n103.name.toLowerCase()}}(e);if(_o57){if("class"===_o57){var _t155=_n102.trim().split(/\s+/).join(" "),_r109=!1,_o58=!1;return wk(e,["ConcatStatement"])&&(Tk(e,["MustacheStatement"])&&/^\s/.test(_n102)&&(_r109=!0),xk(e,["MustacheStatement"])&&/\s$/.test(_n102)&&""!==_t155&&(_o58=!0)),[_r109?dk:"",_t155,_o58?dk:""]}return Dk(_n102,mk)}var _i78=/^[\t\n\f\r ]*$/.test(_n102),_u29=!vk(e),_s33=!Ck(e);if("ignore"!==t.htmlWhitespaceSensitivity){var _t156=/^[\t\n\f\r ]*/,_r110=/[\t\n\f\r ]*$/,_o59=_s33&&wk(e,["Template"]),_a16=_u29&&wk(e,["Template"]);if(_i78){if(_a16||_o59)return"";var _t157=[dk],_r111=Jk(_n102);return _r111&&(_t157=Xk(_r111)),Fk(e)&&(_t157=_t157.map((function(e){return uk(e)}))),_t157}var _c20=_slicedToArray(_n102.match(_t156),1)[0],_l14=_slicedToArray(_n102.match(_r110),1)[0],_p13=[];if(_c20){_p13=[dk];var _e180=Jk(_c20);_e180&&(_p13=Xk(_e180)),_n102=_n102.replace(_t156,"")}var _f10=[];if(_l14){if(!_o59){_f10=[dk];var _t158=Jk(_l14);_t158&&(_f10=Xk(_t158)),Fk(e)&&(_f10=_f10.map((function(e){return uk(e)})))}_n102=_n102.replace(_r110,"")}return[].concat(_toConsumableArray(_p13),[sk(Gk(_n102))],_toConsumableArray(_f10))}var _a15=Jk(_n102),_c19=function(e){return Jk(((e="string"==typeof e?e:"").match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"")}(_n102),_l13=function(e){return Jk(((e="string"==typeof e?e:"").match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"")}(_n102);if((_u29||_s33)&&_i78&&wk(e,["Block","ElementNode","Template"]))return"";_i78&&_a15?(_c19=Math.min(_a15,2),_l13=0):(xk(e,["BlockStatement","ElementNode"])&&(_l13=Math.max(_l13,1)),Tk(e,["BlockStatement","ElementNode"])&&(_c19=Math.max(_c19,1)));var _p12="",_f9="";return 0===_l13&&xk(e,["MustacheStatement"])&&(_f9=" "),0===_c19&&Tk(e,["MustacheStatement"])&&(_p12=" "),_u29&&(_c19=0,_p12=""),_s33&&(_l13=0,_f9=""),_n102=_n102.replace(/^[\t\n\f\r ]+/g,_p12).replace(/[\t\n\f\r ]+$/,_f9),[].concat(_toConsumableArray(Xk(_c19)),[sk(Gk(_n102))],_toConsumableArray(Xk(_l13)));case"MustacheCommentStatement":var _e181=Ek(r),_n104=bk(r),_o60="~"===t.originalText.charAt(_e181+2),_i79="~"===t.originalText.charAt(_n104-3),_u30=r.value.includes("}}")?"--":"";return["{{",_o60?"~":"","!",_u30,r.value,_u30,_i79?"~":"","}}"];case"PathExpression":return r.original;case"BooleanLiteral":case"NumberLiteral":return String(r.value);case"CommentStatement":return["\x3c!--",r.value,"--\x3e"];case"StringLiteral":return function(e,t){var _Yk=Yk(t,e),n=_Yk.quote,r=_Yk.regex;return[n,e.replace(r,"\\".concat(n)),n]}(r.value,t);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Error("unknown glimmer type: "+JSON.stringify(r.type))}},massageAstNode:YB},rN={languages:[df({name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155},(function(){return{since:"2.3.0",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}}))],printers:{glimmer:nN},parsers:{get glimmer(){return{}.parsers.glimmer}}},oN={hasPragma:function hasPragma(e){return/^\s*#[^\S\n]*@(format|prettier)\s*(\n|$)/.test(e)},insertPragma:function insertPragma(e){return"# @format\n\n"+e}},iN={locStart:function locStart(e){return"number"==typeof e.start?e.start:e.loc&&e.loc.start},locEnd:function locEnd(e){return"number"==typeof e.end?e.end:e.loc&&e.loc.end}},_Rn$builders37=Rn.builders,uN=_Rn$builders37.join,sN=_Rn$builders37.hardline,aN=_Rn$builders37.line,cN=_Rn$builders37.softline,lN=_Rn$builders37.group,pN=_Rn$builders37.indent,fN=_Rn$builders37.ifBreak,dN=rn.isNextLineEmpty,hN=rn.isNonEmptyArray,mN=oN.insertPragma,gN=iN.locStart,yN=iN.locEnd;function DN(e,t,n){if(0===n.directives.length)return"";var r=uN(aN,e.map(t,"directives"));return"FragmentDefinition"===n.kind||"OperationDefinition"===n.kind?lN([aN,r]):[" ",lN(pN([cN,r]))]}function EN(e,t,n){var r=e.getValue().length;return e.map((function(e,o){var i=n();return dN(t.originalText,e.getValue(),yN)&&o0?lN(["(",pN([cN,uN([fN("",", "),cN],e.call((function(e){return EN(e,t,n)}),"arguments"))]),cN,")"]):"",DN(e,n,r),r.selectionSet?" ":"",n("selectionSet")]);case"Name":case"IntValue":case"FloatValue":case"EnumValue":return r.value;case"StringValue":return r.block?['"""',sN,uN(sN,r.value.replace(/"""/g,"\\$&").split("\n")),sN,'"""']:['"',r.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"'];case"BooleanValue":return r.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",n("name")];case"ListValue":return lN(["[",pN([cN,uN([fN("",", "),cN],e.map(n,"values"))]),cN,"]"]);case"ObjectValue":return lN(["{",t.bracketSpacing&&r.fields.length>0?" ":"",pN([cN,uN([fN("",", "),cN],e.map(n,"fields"))]),cN,fN("",t.bracketSpacing&&r.fields.length>0?" ":""),"}"]);case"ObjectField":case"Argument":return[n("name"),": ",n("value")];case"Directive":return["@",n("name"),r.arguments.length>0?lN(["(",pN([cN,uN([fN("",", "),cN],e.call((function(e){return EN(e,t,n)}),"arguments"))]),cN,")"]):""];case"NamedType":return n("name");case"VariableDefinition":return[n("variable"),": ",n("type"),r.defaultValue?[" = ",n("defaultValue")]:"",DN(e,n,r)];case"ObjectTypeExtension":case"ObjectTypeDefinition":return[n("description"),r.description?sN:"","ObjectTypeExtension"===r.kind?"extend ":"","type ",n("name"),r.interfaces.length>0?[" implements "].concat(_toConsumableArray(bN(e,t,n))):"",DN(e,n,r),r.fields.length>0?[" {",pN([sN,uN(sN,e.call((function(e){return EN(e,t,n)}),"fields"))]),sN,"}"]:""];case"FieldDefinition":return[n("description"),r.description?sN:"",n("name"),r.arguments.length>0?lN(["(",pN([cN,uN([fN("",", "),cN],e.call((function(e){return EN(e,t,n)}),"arguments"))]),cN,")"]):"",": ",n("type"),DN(e,n,r)];case"DirectiveDefinition":return[n("description"),r.description?sN:"","directive ","@",n("name"),r.arguments.length>0?lN(["(",pN([cN,uN([fN("",", "),cN],e.call((function(e){return EN(e,t,n)}),"arguments"))]),cN,")"]):"",r.repeatable?" repeatable":""," on ",uN(" | ",e.map(n,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[n("description"),r.description?sN:"","EnumTypeExtension"===r.kind?"extend ":"","enum ",n("name"),DN(e,n,r),r.values.length>0?[" {",pN([sN,uN(sN,e.call((function(e){return EN(e,t,n)}),"values"))]),sN,"}"]:""];case"EnumValueDefinition":return[n("description"),r.description?sN:"",n("name"),DN(e,n,r)];case"InputValueDefinition":return[n("description"),r.description?r.description.block?sN:aN:"",n("name"),": ",n("type"),r.defaultValue?[" = ",n("defaultValue")]:"",DN(e,n,r)];case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return[n("description"),r.description?sN:"","InputObjectTypeExtension"===r.kind?"extend ":"","input ",n("name"),DN(e,n,r),r.fields.length>0?[" {",pN([sN,uN(sN,e.call((function(e){return EN(e,t,n)}),"fields"))]),sN,"}"]:""];case"SchemaDefinition":return["schema",DN(e,n,r)," {",r.operationTypes.length>0?pN([sN,uN(sN,e.call((function(e){return EN(e,t,n)}),"operationTypes"))]):"",sN,"}"];case"OperationTypeDefinition":return[n("operation"),": ",n("type")];case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return[n("description"),r.description?sN:"","InterfaceTypeExtension"===r.kind?"extend ":"","interface ",n("name"),r.interfaces.length>0?[" implements "].concat(_toConsumableArray(bN(e,t,n))):"",DN(e,n,r),r.fields.length>0?[" {",pN([sN,uN(sN,e.call((function(e){return EN(e,t,n)}),"fields"))]),sN,"}"]:""];case"FragmentSpread":return["...",n("name"),DN(e,n,r)];case"InlineFragment":return["...",r.typeCondition?[" on ",n("typeCondition")]:"",DN(e,n,r)," ",n("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return lN([n("description"),r.description?sN:"",lN(["UnionTypeExtension"===r.kind?"extend ":"","union ",n("name"),DN(e,n,r),r.types.length>0?[" =",fN(""," "),pN([fN([aN," "]),uN([aN,"| "],e.map(n,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[n("description"),r.description?sN:"","ScalarTypeExtension"===r.kind?"extend ":"","scalar ",n("name"),DN(e,n,r)];case"NonNullType":return[n("type"),"!"];case"ListType":return["[",n("type"),"]"];default:throw new Error("unknown graphql type: "+JSON.stringify(r.kind))}},massageAstNode:CN,hasPrettierIgnore:function hasPrettierIgnore(e){var t=e.getValue();return t&&Array.isArray(t.comments)&&t.comments.some((function(e){return"prettier-ignore"===e.value.trim()}))},insertPragma:mN,printComment:function printComment(e){var t=e.getValue();if("Comment"===t.kind)return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))},canAttachComment:function canAttachComment(e){return e.kind&&"Comment"!==e.kind}},AN={bracketSpacing:Ow.bracketSpacing},FN={languages:[df({name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",languageId:139},(function(){return{since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]}}))],options:AN,printers:{graphql:vN},parsers:{get graphql(){return{}.parsers.graphql}}},xN={locStart:function locStart(e){return e.position.start.offset},locEnd:function locEnd(e){return e.position.end.offset}},SN=rn.getLast,wN=xN.locStart,TN=xN.locEnd,_cjkPattern$kPattern$={cjkPattern:"(?:[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u2ff0-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e\\udd50-\\udd52\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d])(?:[\\ufe00-\\ufe0f]|\\udb40[\\udd00-\\uddef])?",kPattern:"[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",punctuationPattern:"[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udf55-\\udf59]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]"},BN=_cjkPattern$kPattern$.cjkPattern,kN=_cjkPattern$kPattern$.kPattern,NN=_cjkPattern$kPattern$.punctuationPattern,PN=["liquidNode","inlineCode","emphasis","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],ON=[].concat(PN,["tableCell","paragraph","heading"]),IN=new RegExp(kN),jN=new RegExp(NN);function LN(e,t){var _t$slice$match2=_slicedToArray(t.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/),4);return{numberText:_t$slice$match2[1],marker:_t$slice$match2[2],leadingSpaces:_t$slice$match2[3]}}var _N={mapAst:function mapAst(e,t){return function e(n,r,o){var i=Object.assign({},t(n,r,o));return i.children&&(i.children=i.children.map((function(t,n){return e(t,n,[i].concat(_toConsumableArray(o)))}))),i}(e,null,[])},splitText:function splitText(e,t){var _step67,n="non-cjk",r="cj-letter",o="cjk-punctuation",i=[],u=("preserve"===t.proseWrap?e:e.replace(new RegExp("(".concat(BN,")\n(").concat(BN,")"),"g"),"$1$2")).split(/([\t\n ]+)/),_iterator67=_createForOfIteratorHelper(u.entries());try{for(_iterator67.s();!(_step67=_iterator67.n()).done;){var _step67$value=_slicedToArray(_step67.value,2),_e184=_step67$value[0],_t159=_step67$value[1];if(_e184%2!=1){if(0!==_e184&&_e184!==u.length-1||""!==_t159){var _step68,_a17=_t159.split(new RegExp("(".concat(BN,")"))),_iterator68=_createForOfIteratorHelper(_a17.entries());try{for(_iterator68.s();!(_step68=_iterator68.n()).done;){var _step68$value=_slicedToArray(_step68.value,2),_e185=_step68$value[0],_t160=_step68$value[1];(0!==_e185&&_e185!==_a17.length-1||""!==_t160)&&(_e185%2!=0?s(jN.test(_t160)?{type:"word",value:_t160,kind:o,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:_t160,kind:IN.test(_t160)?"k-letter":r,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1}):""!==_t160&&s({type:"word",value:_t160,kind:n,hasLeadingPunctuation:jN.test(_t160[0]),hasTrailingPunctuation:jN.test(SN(_t160))}))}}catch(err){_iterator68.e(err)}finally{_iterator68.f()}}}else i.push({type:"whitespace",value:/\n/.test(_t159)?"\n":" "})}}catch(err){_iterator67.e(err)}finally{_iterator67.f()}return i;function s(e){var u,s,t=SN(i);t&&"word"===t.type&&(t.kind===n&&e.kind===r&&!t.hasTrailingPunctuation||t.kind===r&&e.kind===n&&!e.hasLeadingPunctuation?i.push({type:"whitespace",value:" "}):(u=n,s=o,t.kind===u&&e.kind===s||t.kind===s&&e.kind===u||[t.value,e.value].some((function(e){return/\u3000/.test(e)}))||i.push({type:"whitespace",value:""}))),i.push(e)}},punctuationPattern:NN,getFencedCodeBlockValue:function getFencedCodeBlockValue(e,t){var n=e.value;return e.position.end.offset===t.length&&n.endsWith("\n")&&t.endsWith("\n")?n.slice(0,-1):n},getOrderedListItemInfo:LN,hasGitDiffFriendlyOrderedList:function hasGitDiffFriendlyOrderedList(e,t){if(!e.ordered)return!1;if(e.children.length<2)return!1;var n=Number(LN(e.children[0],t.originalText).numberText),r=Number(LN(e.children[1],t.originalText).numberText);if(0===n&&e.children.length>2){var _n106=Number(LN(e.children[2],t.originalText).numberText);return 1===r&&1===_n106}return 1===r},INLINE_NODE_TYPES:PN,INLINE_NODE_WRAPPER_TYPES:ON,isAutolink:function isAutolink(e){if(!e||"link"!==e.type||1!==e.children.length)return!1;var t=e.children[0];return t&&wN(e)===wN(t)&&TN(e)===TN(t)}},MN=rn.inferParserByLanguage,RN=rn.getMaxContinuousCount,_Rn$builders38=Rn.builders,VN=_Rn$builders38.hardline,$N=_Rn$builders38.markAsRoot,qN=Rn.utils.replaceNewlinesWithLiterallines,WN=_N.getFencedCodeBlockValue,UN=function UN(e,t,n,r){var o=e.getValue();if("code"===o.type&&null!==o.lang){var _e186=MN(o.lang,r);if(_e186){var _t161=r.__inJsTemplate?"~":"`",_i82=_t161.repeat(Math.max(3,RN(o.value,_t161)+1)),_u32=n(WN(o,r.originalText),{parser:_e186},{stripTrailingHardline:!0});return $N([_i82,o.lang,o.meta?" "+o.meta:"",VN,qN(_u32),VN,_i82])}}switch(o.type){case"front-matter":return Xw(o,n);case"importExport":return[n(o.value,{parser:"babel"},{stripTrailingHardline:!0}),VN];case"jsx":return n("<$>".concat(o.value,""),{parser:"__js_expression",rootMarker:"mdx"},{stripTrailingHardline:!0})}return null},zN=["format","prettier"];function HN(e){var t="@(".concat(zN.join("|"),")"),n=new RegExp(["\x3c!--\\s*".concat(t,"\\s*--\x3e"),"\x3c!--.*\r?\n[\\s\\S]*(^|\n)[^\\S\n]*".concat(t,"[^\\S\n]*($|\n)[\\s\\S]*\n.*--\x3e")].join("|"),"m"),r=e.match(n);return r&&0===r.index}var GN={startWithPragma:HN,hasPragma:function hasPragma(e){return HN(Zw(e).content.trimStart())},insertPragma:function insertPragma(e){var t=Zw(e),n="\x3c!-- @".concat(zN[0]," --\x3e");return t.frontMatter?"".concat(t.frontMatter.raw,"\n\n").concat(n,"\n\n").concat(t.content):"".concat(n,"\n\n").concat(t.content)}},JN=_N.getOrderedListItemInfo,XN=_N.mapAst,YN=_N.splitText,KN=/^([\u0000-\uffff]|[\ud800-\udbff][\udc00-\udfff])$/;function QN(e,t,n){return XN(e,(function(e){if(!e.children)return e;var r=e.children.reduce((function(e,r){var o=ke(e);return o&&t(o,r)?e.splice(-1,1,n(o,r)):e.push(r),e}),[]);return Object.assign({},e,{children:r})}))}var ZN=function ZN(e,t){return function(e){return QN(e,(function(e,t){return"importExport"===e.type&&"importExport"===t.type}),(function(e,t){return{type:"importExport",value:e.value+"\n\n"+t.value,position:{start:e.position.start,end:t.position.end}}}))}(e=function(e){return XN(e,(function(e){return"import"!==e.type&&"export"!==e.type?e:Object.assign({},e,{type:"importExport"})}))}(e=function(e,t){return XN(e,(function(e,n,_ref106){var r=_slicedToArray(_ref106,1)[0];if("text"!==e.type)return e;var o=e.value;return"paragraph"===r.type&&(0===n&&(o=o.trimStart()),n===r.children.length-1&&(o=o.trimEnd())),{type:"sentence",position:e.position,children:YN(o,t)}}))}(e=function(e,t){return XN(e,(function(e,t,n){if("list"===e.type&&e.children.length>0){for(var _t162=0;_t1621)return!0;var i=n(r);return-1!==i&&(1===e.children.length?i%t.tabWidth==0:i===n(o)&&(i%t.tabWidth==0||JN(o,t.originalText).leadingSpaces.length>1))}}(e=function(e,t){return XN(e,(function(e,n,r){if("code"===e.type){var _n107=/^\n?( {4,}|\t)/.test(t.originalText.slice(e.position.start.offset,e.position.end.offset));if(e.isIndented=_n107,_n107)for(var _e187=0;_e1870&&(n.children[0]===e||eP(n.children[0])&&n.children[1]===e)&&"html"===e.type&&tP(e.value)?null:void 0)}rP.ignoredProperties=nP;var oP=rP,iP=rn.getLast,uP=rn.getMinNotPresentContinuousCount,sP=rn.getMaxContinuousCount,aP=rn.getStringWidth,cP=rn.isNonEmptyArray,_Rn$builders39=Rn.builders,lP=_Rn$builders39.breakParent,pP=_Rn$builders39.join,fP=_Rn$builders39.line,dP=_Rn$builders39.literalline,hP=_Rn$builders39.markAsRoot,mP=_Rn$builders39.hardline,gP=_Rn$builders39.softline,yP=_Rn$builders39.ifBreak,DP=_Rn$builders39.fill,EP=_Rn$builders39.align,bP=_Rn$builders39.indent,CP=_Rn$builders39.group,vP=_Rn$builders39.hardlineWithoutBreakParent,AP=Rn.utils.normalizeDoc,FP=Rn.printer.printDocToString,xP=rn.replaceEndOfLineWith,SP=GN.insertPragma,wP=xN.locStart,TP=xN.locEnd,BP=_N.getFencedCodeBlockValue,kP=_N.hasGitDiffFriendlyOrderedList,NP=_N.splitText,PP=_N.punctuationPattern,OP=_N.INLINE_NODE_TYPES,IP=_N.INLINE_NODE_WRAPPER_TYPES,jP=_N.isAutolink,LP=new Set(["importExport"]),_P=["heading","tableCell","link","wikiLink"],MP=new Set(["listItem","definition","footnoteDefinition"]);function RP(e,t,n,r){var o=e.getValue(),i=null===o.checked?"":o.checked?"[x] ":"[ ] ";return[i,zP(e,t,n,{processor:function processor(e,o){if(0===o&&"list"!==e.getValue().type)return EP(" ".repeat(i.length),n());var s,a,c,u=" ".repeat((c=3,(s=t.tabWidth-r.length)<(a=0)?a:s>c?c:s));return[u,EP(u,n())]}})]}function VP(e,t){return function(e,t,n){var _step69,r=-1,_iterator69=_createForOfIteratorHelper(t.children);try{for(_iterator69.s();!(_step69=_iterator69.n()).done;){var _o62=_step69.value;if(_o62.type===e.type&&n(_o62)?r++:r=-1,_o62===e)return r}}catch(err){_iterator69.e(err)}finally{_iterator69.f()}}(e,t,(function(t){return t.ordered===e.ordered}))}function $P(e,t){for(var r,n=Array.isArray(t)?t:[t],o=-1;r=e.getParentNode(++o);)if(n.includes(r.type))return o;return-1}function qP(e,t){var n=$P(e,t);return-1===n?null:e.getParentNode(n)}function WP(e,t,n){if("preserve"===n.proseWrap&&"\n"===t)return mP;var r="always"===n.proseWrap&&!qP(e,_P);return""!==t?r?fP:" ":r?gP:""}function UP(e,t,n){var _step70,r=[],o=null,i=e.getValue().children,_iterator70=_createForOfIteratorHelper(i.entries());try{for(_iterator70.s();!(_step70=_iterator70.n()).done;){var _step70$value=_slicedToArray(_step70.value,2),_e189=_step70$value[0],_t164=_step70$value[1];switch(GP(_t164)){case"start":null===o&&(o={index:_e189,offset:_t164.position.end.offset});break;case"end":null!==o&&(r.push({start:o,end:{index:_e189,offset:_t164.position.start.offset}}),o=null)}}}catch(err){_iterator70.e(err)}finally{_iterator70.f()}return zP(e,t,n,{processor:function processor(e,o){if(r.length>0){var _e188=r[0];if(o===_e188.start.index)return[i[_e188.start.index].value,t.originalText.slice(_e188.start.offset,_e188.end.offset),i[_e188.end.index].value];if(_e188.start.index3&&void 0!==arguments[3]?arguments[3]:{},o=r.postprocessor,i=r.processor||function(){return n()},u=e.getValue(),s=[];return e.each((function(e,n){var r=e.getValue(),o=i(e,n);if(!1!==o){var _e190={parts:s,prevNode:a,parentNode:u,options:t};(function(e,t){var n=0===t.parts.length,r=OP.includes(e.type),o="html"===e.type&&IP.includes(t.parentNode.type);return!n&&!r&&!o})(r,_e190)&&(s.push(mP),a&&LP.has(a.type)||(function(e,t){var n=(t.prevNode&&t.prevNode.type)===e.type&&MP.has(e.type),r="listItem"===t.parentNode.type&&!t.parentNode.loose,o=t.prevNode&&"listItem"===t.prevNode.type&&t.prevNode.loose,i="next"===GP(t.prevNode),u="html"===e.type&&t.prevNode&&"html"===t.prevNode.type&&t.prevNode.position.end.line+1===e.position.start.line,s="html"===e.type&&"listItem"===t.parentNode.type&&t.prevNode&&"paragraph"===t.prevNode.type&&t.prevNode.position.end.line+1===e.position.start.line;return o||!(n||r||i||u||s)}(r,_e190)||JP(r,_e190))&&s.push(mP),JP(r,_e190)&&s.push(mP)),s.push(o),a=r}}),"children"),o?o(s):s}function HP(e){for(var t=e;cP(t.children);)t=iP(t.children);return t}function GP(e){if("html"!==e.type)return!1;var t=e.value.match(/^$/);return null!==t&&(t[1]?t[1]:"next")}function JP(e,t){var n=t.prevNode&&"list"===t.prevNode.type,r="code"===e.type&&e.isIndented;return n&&r}function XP(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[" "].concat(_toConsumableArray(Array.isArray(t)?t:[t]));return new RegExp(n.map((function(e){return"\\".concat(e)})).join("|")).test(e)?"<".concat(e,">"):e}function YP(e,t){if(!e)return"";if(!(arguments.length>2&&void 0!==arguments[2])||arguments[2])return" "+YP(e,t,!1);if((e=e.replace(/\\(["')])/g,"$1")).includes('"')&&e.includes("'")&&!e.includes(")"))return"(".concat(e,")");var r=e.split("'").length-1,o=e.split('"').length-1,i=r>o?'"':o>r||t.singleQuote?"'":'"';return e=(e=e.replace(/\\/,"\\\\")).replace(new RegExp("(".concat(i,")"),"g"),"\\$1"),"".concat(i).concat(e).concat(i)}var KP={preprocess:ZN,print:function print(e,t,n){var r=e.getValue();if(function(e){var t=qP(e,["linkReference","imageReference"]);return t&&("linkReference"!==t.type||"full"!==t.referenceType)}(e))return NP(t.originalText.slice(r.position.start.offset,r.position.end.offset),t).map((function(n){return"word"===n.type?n.value:""===n.value?"":WP(e,n.value,t)}));switch(r.type){case"front-matter":return t.originalText.slice(r.position.start.offset,r.position.end.offset);case"root":return 0===r.children.length?"":[AP(UP(e,t,n)),LP.has(HP(r).type)?"":mP];case"paragraph":return zP(e,t,n,{postprocessor:DP});case"sentence":return zP(e,t,n);case"word":var _t165=r.value.replace(/\*/g,"\\$&").replace(new RegExp(["(^|".concat(PP,")(_+)"),"(_+)(".concat(PP,"|$)")].join("|"),"g"),(function(e,t,n,r,o){return(n?"".concat(t).concat(n):"".concat(r).concat(o)).replace(/_/g,"\\_")})),_n108=function _n108(e,t,n){return"sentence"===e.type&&0===n},_o63=function _o63(e,t,n){return jP(e.children[n-1])};return _t165!==r.value&&(e.match(void 0,_n108,_o63)||e.match(void 0,_n108,(function(e,t,n){return"emphasis"===e.type&&0===n}),_o63))&&(_t165=_t165.replace(/^(\\?[*_])+/,(function(e){return e.replace(/\\/g,"")}))),_t165;case"whitespace":var _n109=e.getParentNode(),_o64=_n109.children.indexOf(r),_i83=_n109.children[_o64+1],_u33=_i83&&/^>|^([*+-]|#{1,6}|\d+[).])$/.test(_i83.value)?"never":t.proseWrap;return WP(e,r.value,{proseWrap:_u33});case"emphasis":var _o65;if(jP(r.children[0]))_o65=t.originalText[r.position.start.offset];else{var _t166=e.getParentNode(),_n110=_t166.children.indexOf(r),_i84=_t166.children[_n110-1],_u34=_t166.children[_n110+1];_o65=_i84&&"sentence"===_i84.type&&_i84.children.length>0&&"word"===iP(_i84.children).type&&!iP(_i84.children).hasTrailingPunctuation||_u34&&"sentence"===_u34.type&&_u34.children.length>0&&"word"===_u34.children[0].type&&!_u34.children[0].hasLeadingPunctuation||qP(e,"emphasis")?"*":"_"}return[_o65,zP(e,t,n),_o65];case"strong":return["**",zP(e,t,n),"**"];case"delete":return["~~",zP(e,t,n),"~~"];case"inlineCode":var _e191=uP(r.value,"`"),_t167="`".repeat(_e191||1),_n111=_e191&&!/^\s/.test(r.value)?" ":"";return[_t167,_n111,r.value,_n111,_t167];case"wikiLink":return["[[","preserve"===t.proseWrap?r.value:r.value.replace(/[\t\n]+/g," "),"]]"];case"link":switch(t.originalText[r.position.start.offset]){case"<":var _e193="mailto:";return["<",r.url.startsWith(_e193)&&t.originalText.slice(r.position.start.offset+1,r.position.start.offset+1+_e193.length)!==_e193?r.url.slice(_e193.length):r.url,">"];case"[":return["[",zP(e,t,n),"](",XP(r.url,")"),YP(r.title,t),")"];default:return t.originalText.slice(r.position.start.offset,r.position.end.offset)}case"image":return["![",r.alt||"","](",XP(r.url,")"),YP(r.title,t),")"];case"blockquote":return["> ",EP("> ",zP(e,t,n))];case"heading":return["#".repeat(r.depth)+" ",zP(e,t,n)];case"code":if(r.isIndented){var _e195=" ".repeat(4);return EP(_e195,[_e195].concat(_toConsumableArray(xP(r.value,mP))))}var _e194=t.__inJsTemplate?"~":"`",_n112=_e194.repeat(Math.max(3,sP(r.value,_e194)+1));return[_n112,r.lang||"",r.meta?" "+r.meta:"",mP].concat(_toConsumableArray(xP(BP(r,t.originalText),mP)),[mP,_n112]);case"html":var _t168=e.getParentNode(),_n113="root"===_t168.type&&iP(_t168.children)===r?r.value.trimEnd():r.value,_o66=/^$/.test(_n113);return xP(_n113,_o66?mP:hP(dP));case"list":var _o67=VP(r,e.getParentNode()),_i85=kP(r,t);return zP(e,t,n,{processor:function processor(e,u){var s=function(){var e=r.ordered?(0===u?r.start:_i85?1:r.start+u)+(_o67%2==0?". ":") "):_o67%2==0?"- ":"* ";return r.isAligned||r.hasIndentedCodeblock?function(e,t){var n=r();return e+" ".repeat(n>=4?0:n);function r(){var n=e.length%t.tabWidth;return 0===n?0:t.tabWidth-n}}(e,t):e}(),a=e.getValue();return 2===a.children.length&&"html"===a.children[1].type&&a.children[0].position.start.column!==a.children[1].position.start.column?[s,RP(e,t,n,s)]:[s,EP(" ".repeat(s.length),RP(e,t,n,s))]}});case"thematicBreak":var _t169=$P(e,"list");return-1===_t169?"---":VP(e.getParentNode(_t169),e.getParentNode(_t169+1))%2==0?"***":"---";case"linkReference":return["[",zP(e,t,n),"]","full"===r.referenceType?["[",r.identifier,"]"]:"collapsed"===r.referenceType?"[]":""];case"imageReference":return"full"===r.referenceType?["![",r.alt||"","][",r.identifier,"]"]:["![",r.alt,"]","collapsed"===r.referenceType?"[]":""];case"definition":var _e196="always"===t.proseWrap?fP:" ";return CP(["[",r.identifier,"]:",bP([_e196,XP(r.url),null===r.title?"":[_e196,YP(r.title,t,!1)]])]);case"footnote":return["[^",zP(e,t,n),"]"];case"footnoteReference":return["[^",r.identifier,"]"];case"footnoteDefinition":var _o68=e.getParentNode().children[e.getName()+1],_i86=1===r.children.length&&"paragraph"===r.children[0].type&&("never"===t.proseWrap||"preserve"===t.proseWrap&&r.children[0].position.start.line===r.children[0].position.end.line);return["[^",r.identifier,"]: ",_i86?zP(e,t,n):CP([EP(" ".repeat(4),zP(e,t,n,{processor:function processor(e,t){return 0===t?CP([gP,n()]):n()}})),_o68&&"footnoteDefinition"===_o68.type?gP:""])];case"table":return function(e,t,n){var r=e.getValue(),o=[],i=e.map((function(e){return e.map((function(e,r){var i=FP(n(),t).formatted,u=aP(i);return o[r]=Math.max(o[r]||3,u),{text:i,width:u}}),"children")}),"children"),u=a(!1);if("never"!==t.proseWrap)return[lP,u];var s=a(!0);return[lP,CP(yP(s,u))];function a(e){var t=[l(i[0],e),c(e)];return i.length>1&&t.push(pP(vP,i.slice(1).map((function(t){return l(t,e)})))),pP(vP,t)}function c(e){var t=o.map((function(t,n){var o=r.align[n],i="center"===o||"left"===o?":":"-",u="center"===o||"right"===o?":":"-",s=e?"-":"-".repeat(t-2);return"".concat(i).concat(s).concat(u)}));return"| ".concat(t.join(" | ")," |")}function l(e,t){var n=e.map((function(_ref108,i){var e=_ref108.text,n=_ref108.width;if(t)return e;var u=o[i]-n,s=r.align[i],a=0;"right"===s?a=u:"center"===s&&(a=Math.floor(u/2));var c=u-a;return"".concat(" ".repeat(a)).concat(e).concat(" ".repeat(c))}));return"| ".concat(n.join(" | ")," |")}}(e,t,n);case"tableCell":return zP(e,t,n);case"break":return/\s/.test(t.originalText[r.position.start.offset])?[" ",hP(dP)]:["\\",mP];case"liquidNode":return xP(r.value,mP);case"importExport":return[r.value,mP];case"jsx":return r.value;case"math":return["$$",mP,r.value?[].concat(_toConsumableArray(xP(r.value,mP)),[mP]):"","$$"];case"inlineMath":return t.originalText.slice(wP(r),TP(r));default:throw new Error("Unknown markdown type ".concat(JSON.stringify(r.type)))}},embed:UN,massageAstNode:oP,hasPrettierIgnore:function hasPrettierIgnore(e){var t=Number(e.getName());return 0!==t&&"next"===GP(e.getParentNode().children[t-1])},insertPragma:SP},QP={proseWrap:Ow.proseWrap,singleQuote:Ow.singleQuote},ZP={name:"Markdown",type:"prose",color:"#083fa1",aliases:["pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr"],tmScope:"source.gfm",languageId:222},eO={languages:[df(ZP,(function(e){return{since:"1.8.0",parsers:["markdown"],vscodeLanguageIds:["markdown"],filenames:[].concat(_toConsumableArray(e.filenames),["README"]),extensions:e.extensions.filter((function(e){return".mdx"!==e}))}})),df(ZP,(function(){return{name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]}}))],options:QP,printers:{mdast:KP},parsers:{get remark(){return{}.parsers.remark},get markdown(){return{}.parsers.remark},get mdx(){return{}.parsers.mdx}}},tO=rn.isFrontMatterNode,nO=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan"]);function rO(e,t){return"text"===e.type||"comment"===e.type||tO(e)||"yaml"===e.type||"toml"===e.type?null:("attribute"===e.type&&delete t.value,void("docType"===e.type&&delete t.value))}rO.ignoredProperties=nO;var oO=rO,iO={"*":["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","slot","spellcheck","style","tabindex","title","translate"],a:["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","tabindex","target","type"],abbr:["title"],applet:["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"],area:["accesskey","alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","tabindex","target","type"],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],base:["href","target"],basefont:["color","face","size"],bdo:["dir"],blockquote:["cite"],body:["alink","background","bgcolor","link","text","vlink"],br:["clear"],button:["accesskey","autofocus","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","tabindex","type","value"],canvas:["height","width"],caption:["align"],col:["align","char","charoff","span","valign","width"],colgroup:["align","char","charoff","span","valign","width"],data:["value"],del:["cite","datetime"],details:["open"],dfn:["title"],dialog:["open"],dir:["compact"],div:["align"],dl:["compact"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],font:["color","face","size"],form:["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"],frame:["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"],frameset:["cols","rows"],h1:["align"],h2:["align"],h3:["align"],h4:["align"],h5:["align"],h6:["align"],head:["profile"],hr:["align","noshade","size","width"],html:["manifest","version"],iframe:["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"],img:["align","alt","border","crossorigin","decoding","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"],input:["accept","accesskey","align","alt","autocomplete","autofocus","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","tabindex","title","type","usemap","value","width"],ins:["cite","datetime"],isindex:["prompt"],label:["accesskey","for","form"],legend:["accesskey","align"],li:["type","value"],link:["as","charset","color","crossorigin","disabled","href","hreflang","imagesizes","imagesrcset","integrity","media","nonce","referrerpolicy","rel","rev","sizes","target","title","type"],map:["name"],menu:["compact"],meta:["charset","content","http-equiv","name","scheme"],meter:["high","low","max","min","optimum","value"],object:["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","tabindex","type","typemustmatch","usemap","vspace","width"],ol:["compact","reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["for","form","name"],p:["align"],param:["name","type","value","valuetype"],pre:["width"],progress:["max","value"],q:["cite"],script:["async","charset","crossorigin","defer","integrity","language","nomodule","nonce","referrerpolicy","src","type"],select:["autocomplete","autofocus","disabled","form","multiple","name","required","size","tabindex"],slot:["name"],source:["media","sizes","src","srcset","type"],style:["media","nonce","title","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],tbody:["align","char","charoff","valign"],td:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],textarea:["accesskey","autocomplete","autofocus","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","tabindex","wrap"],tfoot:["align","char","charoff","valign"],th:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],thead:["align","char","charoff","valign"],time:["datetime"],tr:["align","bgcolor","char","charoff","valign"],track:["default","kind","label","src","srclang"],ul:["compact","type"],video:["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"]},uO=rn.inferParserByLanguage,sO=rn.isFrontMatterNode,_CSS_DISPLAY_TAGS$CSS2={CSS_DISPLAY_TAGS:{area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",details:"block",summary:"block",dialog:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},CSS_DISPLAY_DEFAULT:"inline",CSS_WHITE_SPACE_TAGS:{listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},CSS_WHITE_SPACE_DEFAULT:"normal"},aO=_CSS_DISPLAY_TAGS$CSS2.CSS_DISPLAY_TAGS,cO=_CSS_DISPLAY_TAGS$CSS2.CSS_DISPLAY_DEFAULT,lO=_CSS_DISPLAY_TAGS$CSS2.CSS_WHITE_SPACE_TAGS,pO=_CSS_DISPLAY_TAGS$CSS2.CSS_WHITE_SPACE_DEFAULT,fO=yO(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]),dO=function(e,t){for(var n=Object.create(null),_i87=0,_Object$entries10=Object.entries(e);_i87<_Object$entries10.length;_i87++){var _Object$entries10$_i=_slicedToArray(_Object$entries10[_i87],2),_r115=_Object$entries10$_i[0],_o69=_Object$entries10$_i[1];n[_r115]=t(_o69,_r115)}return n}(iO,yO),hO=new Set(["\t","\n","\f","\r"," "]),mO=function mO(e){return e.replace(/[\t\n\f\r ]+$/,"")},gO=function gO(e){return e.match(/^[\t\n\f\r ]*/)[0]};function yO(e){var _step71,t=Object.create(null),_iterator71=_createForOfIteratorHelper(e);try{for(_iterator71.s();!(_step71=_iterator71.n()).done;)t[_step71.value]=!0}catch(err){_iterator71.e(err)}finally{_iterator71.f()}return t}function DO(e,t){return!("ieConditionalComment"!==e.type||!e.lastChild||e.lastChild.isSelfClosing||e.lastChild.endSourceSpan)||"ieConditionalComment"===e.type&&!e.complete||!(!kO(e)||!e.children.some((function(e){return"text"!==e.type&&"interpolation"!==e.type})))||!(!LO(e,t)||bO(e)||"interpolation"===e.type)}function EO(e){return"attribute"!==e.type&&!!e.parent&&"number"==typeof e.index&&0!==e.index&&function(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}(e.parent.children[e.index-1])}function bO(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName||NO(e)&&("script"===e.name||"style"===e.name))}function CO(e){return PO(e).startsWith("pre")}function vO(e){return"element"===e.type&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function AO(e){return wO(e)||"element"===e.type&&"br"===e.fullName||FO(e)}function FO(e){return xO(e)&&SO(e)}function xO(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.linee.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function wO(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function TO(e){var _e$attrMap2=e.attrMap,t=_e$attrMap2.type,n=_e$attrMap2.lang;return"module"===t||"text/javascript"===t||"text/babel"===t||"application/javascript"===t||"jsx"===n?"babel":"application/x-typescript"===t||"ts"===n||"tsx"===n?"typescript":"text/markdown"===t?"markdown":"text/html"===t?"html":t&&(t.endsWith("json")||t.endsWith("importmap"))?"json":"text/x-handlebars-template"===t?"glimmer":void 0}function BO(e){return"block"===e||"list-item"===e||e.startsWith("table")}function kO(e){return PO(e).startsWith("pre")}function NO(e){return"element"===e.type&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}function PO(e){return"element"===e.type&&(!e.namespace||NO(e))&&lO[e.name]||pO}var OO=new Set(["template","style","script"]);function IO(e,t){return jO(e,t)&&!OO.has(e.fullName)}function jO(e,t){return"vue"===t.parser&&"element"===e.type&&"root"===e.parent.type&&"html"!==e.fullName.toLowerCase()}function LO(e,t){return jO(e,t)&&(IO(e,t)||e.attrMap.lang&&"html"!==e.attrMap.lang)}var _O={HTML_ELEMENT_ATTRIBUTES:dO,HTML_TAGS:fO,htmlTrim:function htmlTrim(e){return function(e){return e.replace(/^[\t\n\f\r ]+/,"")}(mO(e))},htmlTrimPreserveIndentation:function htmlTrimPreserveIndentation(e){return function(e){return e.replace(/^[\t\f\r ]*?\n/g,"")}(mO(e))},splitByHtmlWhitespace:function splitByHtmlWhitespace(e){return e.split(/[\t\n\f\r ]+/)},hasHtmlWhitespace:function hasHtmlWhitespace(e){return/[\t\n\f\r ]/.test(e)},getLeadingAndTrailingHtmlWhitespace:function getLeadingAndTrailingHtmlWhitespace(e){var _e$match4=_slicedToArray(e.match(/^([\t\n\f\r ]*)([\S\s]*?)([\t\n\f\r ]*)$/),4),t=_e$match4[1],n=_e$match4[2];return{leadingWhitespace:t,trailingWhitespace:_e$match4[3],text:n}},canHaveInterpolation:function canHaveInterpolation(e){return e.children&&!bO(e)},countChars:function countChars(e,t){for(var n=0,_r116=0;_r116=0;_r117--){var _o70=e.stack[_r117];_o70&&"object"==_typeof(_o70)&&!Array.isArray(_o70)&&t(_o70)&&n++}return n},dedentString:function dedentString(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){var _step72,t=Number.POSITIVE_INFINITY,_iterator72=_createForOfIteratorHelper(e.split("\n"));try{for(_iterator72.s();!(_step72=_iterator72.n()).done;){var _n115=_step72.value;if(0!==_n115.length){if(!hO.has(_n115[0]))return 0;var _e197=gO(_n115).length;_n115.length!==_e197&&_e1970&&(["body","script","style"].includes(e.name)||e.children.some((function(e){return function(e){return e.children&&e.children.some((function(e){return"text"!==e.type}))}(e)})))||e.firstChild&&e.firstChild===e.lastChild&&"text"!==e.firstChild.type&&xO(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||SO(e.lastChild))},forceNextEmptyLine:function forceNextEmptyLine(e){return sO(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1=t.$TAB&&e<=t.$SPACE||e==t.$NBSP},t.isDigit=n,t.isAsciiLetter=function(e){return e>=t.$a&&e<=t.$z||e>=t.$A&&e<=t.$Z},t.isAsciiHexDigit=function(e){return e>=t.$a&&e<=t.$f||e>=t.$A&&e<=t.$F||n(e)},t.isNewLine=function(e){return e===t.$LF||e===t.$CR},t.isOctalDigit=function(e){return t.$0<=e&&e<=t.$7}})),RO=function(){function RO(e,t,n){_classCallCheck(this,RO),this.filePath=e,this.name=t,this.members=n}return _createClass(RO,[{key:"assertNoMembers",value:function assertNoMembers(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got ".concat(JSON.stringify(this),"."))}}]),RO}(),VO=RO,$O=function(){function $O(){_classCallCheck(this,$O),this.cache=new Map}return _createClass($O,[{key:"get",value:function get(e,t,n){var r=(n=n||[]).length?".".concat(n.join(".")):"",o='"'.concat(e,'".').concat(t).concat(r),i=this.cache.get(o);return i||(i=new RO(e,t,n),this.cache.set(o,i)),i}}]),$O}(),qO=Object.defineProperty({StaticSymbol:VO,StaticSymbolCache:$O},"__esModule",{value:!0}),WO=/-+([a-z0-9])/g,UO=function UO(e){return e.replace(WO,(function(){for(var _len15=arguments.length,e=new Array(_len15),_key15=0;_key15<_len15;_key15++)e[_key15]=arguments[_key15];return e[1].toUpperCase()}))},zO=function zO(e,t){return GO(e,":",t)},HO=function HO(e,t){return GO(e,".",t)};function GO(e,t,n){var r=e.indexOf(t);return-1==r?n:[e.slice(0,r).trim(),e.slice(r+1).trim()]}function JO(e,t,n){return Array.isArray(e)?t.visitArray(e,n):function(e){return"object"==_typeof(e)&&null!==e&&Object.getPrototypeOf(e)===sI}(e)?t.visitStringMap(e,n):null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e?t.visitPrimitive(e,n):t.visitOther(e,n)}var XO=JO,YO=function YO(e){return null!=e},KO=function KO(e){return void 0===e?null:e},QO=function(){function QO(){_classCallCheck(this,QO)}return _createClass(QO,[{key:"visitArray",value:function visitArray(e,t){var _this20=this;return e.map((function(e){return JO(e,_this20,t)}))}},{key:"visitStringMap",value:function visitStringMap(e,t){var _this21=this,n={};return Object.keys(e).forEach((function(r){n[r]=JO(e[r],_this21,t)})),n}},{key:"visitPrimitive",value:function visitPrimitive(e,t){return e}},{key:"visitOther",value:function visitOther(e,t){return e}}]),QO}(),ZO={assertSync:function assertSync(e){if(pI(e))throw new Error("Illegal state: value cannot be a promise");return e},then:function then(e,t){return pI(e)?e.then(t):t(e)},all:function all(e){return e.some(pI)?Promise.all(e):e}},eI=function eI(e){throw new Error("Internal Error: ".concat(e))},tI=function tI(e,t){var n=Error(e);return n[nI]=!0,t&&(n[rI]=t),n},nI="ngSyntaxError",rI="ngParseErrors",oI=function oI(e){return e[nI]},iI=function iI(e){return e[rI]||[]},uI=function uI(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")},sI=Object.getPrototypeOf({}),aI=function aI(e){for(var t="",_n116=0;_n116=55296&&_r118<=56319&&e.length>_n116+1){var _t171=e.charCodeAt(_n116+1);_t171>=56320&&_t171<=57343&&(_n116++,_r118=(_r118-55296<<10)+_t171-56320+65536)}_r118<=127?t+=String.fromCharCode(_r118):_r118<=2047?t+=String.fromCharCode(_r118>>6&31|192,63&_r118|128):_r118<=65535?t+=String.fromCharCode(_r118>>12|224,_r118>>6&63|128,63&_r118|128):_r118<=2097151&&(t+=String.fromCharCode(_r118>>18&7|240,_r118>>12&63|128,_r118>>6&63|128,63&_r118|128))}return t},cI=function e(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(e).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);if(!t.toString)return"object";var n=t.toString();if(null==n)return""+n;var r=n.indexOf("\n");return-1===r?n:n.substring(0,r)},lI=function lI(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")?e():e};function pI(e){return!!e&&"function"==typeof e.then}var fI=pI,dI=_createClass((function dI(e){_classCallCheck(this,dI),this.full=e;var t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")})),hI="undefined"!=typeof window&&window,mI="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,gI=void 0!==r&&r||hI||mI,yI=Object.defineProperty({dashCaseToCamelCase:UO,splitAtColon:zO,splitAtPeriod:HO,visitValue:XO,isDefined:YO,noUndefined:KO,ValueTransformer:QO,SyncAsync:ZO,error:eI,syntaxError:tI,isSyntaxError:oI,getParseErrors:iI,escapeRegExp:uI,utf8Encode:aI,stringify:cI,resolveForwardRef:lI,isPromise:fI,Version:dI,global:gI},"__esModule",{value:!0}),DI=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function r(e){return e.replace(/\W/g,"_")}t.sanitizeIdentifier=r;var u,o=0;function i(e){if(!e||!e.reference)return null;var t=e.reference;if(t instanceof qO.StaticSymbol)return t.name;if(t.__anonymousType)return t.__anonymousType;var n=yI.stringify(t);return n.indexOf("(")>=0?(n="anonymous_".concat(o++),t.__anonymousType=n):n=r(n),n}t.identifierName=i,t.identifierModuleUrl=function(e){var t=e.reference;return t instanceof qO.StaticSymbol?t.filePath:"./".concat(yI.stringify(t))},t.viewClassName=function(e,t){return"View_".concat(i({reference:e}),"_").concat(t)},t.rendererTypeName=function(e){return"RenderType_".concat(i({reference:e}))},t.hostViewClassName=function(e){return"HostView_".concat(i({reference:e}))},t.componentFactoryName=function(e){return"".concat(i({reference:e}),"NgFactory")},function(e){e[e.Pipe=0]="Pipe",e[e.Directive=1]="Directive",e[e.NgModule=2]="NgModule",e[e.Injectable=3]="Injectable"}(u=t.CompileSummaryKind||(t.CompileSummaryKind={})),t.tokenName=function(e){return null!=e.value?r(e.value):i(e.identifier)},t.tokenReference=function(e){return null!=e.identifier?e.identifier.reference:e.value},t.CompileStylesheetMetadata=function(){function _class11(){var _ref109=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=_ref109.moduleUrl,t=_ref109.styles,n=_ref109.styleUrls;_classCallCheck(this,_class11),this.moduleUrl=e||null,this.styles=a(t),this.styleUrls=a(n)}return _createClass(_class11)}(),t.CompileTemplateMetadata=function(){function _class12(_ref110){var e=_ref110.encapsulation,t=_ref110.template,n=_ref110.templateUrl,r=_ref110.htmlAst,o=_ref110.styles,i=_ref110.styleUrls,u=_ref110.externalStylesheets,s=_ref110.animations,l=_ref110.ngContentSelectors,p=_ref110.interpolation,f=_ref110.isInline,d=_ref110.preserveWhitespaces;if(_classCallCheck(this,_class12),this.encapsulation=e,this.template=t,this.templateUrl=n,this.htmlAst=r,this.styles=a(o),this.styleUrls=a(i),this.externalStylesheets=a(u),this.animations=s?c(s):[],this.ngContentSelectors=l||[],p&&2!=p.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=p,this.isInline=f,this.preserveWhitespaces=d}return _createClass(_class12,[{key:"toSummary",value:function toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}}]),_class12}();var s=function(){function s(_ref111){var e=_ref111.isHost,t=_ref111.type,n=_ref111.isComponent,r=_ref111.selector,o=_ref111.exportAs,i=_ref111.changeDetection,u=_ref111.inputs,_s34=_ref111.outputs,c=_ref111.hostListeners,l=_ref111.hostProperties,p=_ref111.hostAttributes,f=_ref111.providers,d=_ref111.viewProviders,h=_ref111.queries,m=_ref111.guards,g=_ref111.viewQueries,y=_ref111.entryComponents,D=_ref111.template,E=_ref111.componentViewType,b=_ref111.rendererType,C=_ref111.componentFactory;_classCallCheck(this,s),this.isHost=!!e,this.type=t,this.isComponent=n,this.selector=r,this.exportAs=o,this.changeDetection=i,this.inputs=u,this.outputs=_s34,this.hostListeners=c,this.hostProperties=l,this.hostAttributes=p,this.providers=a(f),this.viewProviders=a(d),this.queries=a(h),this.guards=m,this.viewQueries=a(g),this.entryComponents=a(y),this.template=D,this.componentViewType=E,this.rendererType=b,this.componentFactory=C}return _createClass(s,[{key:"toSummary",value:function toSummary(){return{summaryKind:u.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}}],[{key:"create",value:function create(_ref112){var e=_ref112.isHost,t=_ref112.type,r=_ref112.isComponent,o=_ref112.selector,i=_ref112.exportAs,u=_ref112.changeDetection,a=_ref112.inputs,c=_ref112.outputs,l=_ref112.host,p=_ref112.providers,f=_ref112.viewProviders,d=_ref112.queries,h=_ref112.guards,m=_ref112.viewQueries,g=_ref112.entryComponents,y=_ref112.template,D=_ref112.componentViewType,E=_ref112.rendererType,b=_ref112.componentFactory,C={},v={},A={};null!=l&&Object.keys(l).forEach((function(e){var t=l[e],r=e.match(n);null===r?A[e]=t:null!=r[1]?v[r[1]]=t:null!=r[2]&&(C[r[2]]=t)}));var F={};null!=a&&a.forEach((function(e){var t=yI.splitAtColon(e,[e,e]);F[t[0]]=t[1]}));var x={};return null!=c&&c.forEach((function(e){var t=yI.splitAtColon(e,[e,e]);x[t[0]]=t[1]})),new s({isHost:e,type:t,isComponent:!!r,selector:o,exportAs:i,changeDetection:u,inputs:F,outputs:x,hostListeners:C,hostProperties:v,hostAttributes:A,providers:p,viewProviders:f,queries:d,guards:h,viewQueries:m,entryComponents:g,template:y,componentViewType:D,rendererType:E,componentFactory:b})}}]),s}();function a(e){return e||[]}function c(e){return e.reduce((function(e,t){var n=Array.isArray(t)?c(t):t;return e.concat(n)}),[])}function l(e){return e.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}t.CompileDirectiveMetadata=s,t.CompilePipeMetadata=function(){function _class13(_ref113){var e=_ref113.type,t=_ref113.name,n=_ref113.pure;_classCallCheck(this,_class13),this.type=e,this.name=t,this.pure=!!n}return _createClass(_class13,[{key:"toSummary",value:function toSummary(){return{summaryKind:u.Pipe,type:this.type,name:this.name,pure:this.pure}}}]),_class13}(),t.CompileShallowModuleMetadata=function(){function _class14(){_classCallCheck(this,_class14)}return _createClass(_class14)}(),t.CompileNgModuleMetadata=function(){function _class15(_ref114){var e=_ref114.type,t=_ref114.providers,n=_ref114.declaredDirectives,r=_ref114.exportedDirectives,o=_ref114.declaredPipes,i=_ref114.exportedPipes,u=_ref114.entryComponents,s=_ref114.bootstrapComponents,c=_ref114.importedModules,l=_ref114.exportedModules,p=_ref114.schemas,f=_ref114.transitiveModule,d=_ref114.id;_classCallCheck(this,_class15),this.type=e||null,this.declaredDirectives=a(n),this.exportedDirectives=a(r),this.declaredPipes=a(o),this.exportedPipes=a(i),this.providers=a(t),this.entryComponents=a(u),this.bootstrapComponents=a(s),this.importedModules=a(c),this.exportedModules=a(l),this.schemas=a(p),this.id=d||null,this.transitiveModule=f||null}return _createClass(_class15,[{key:"toSummary",value:function toSummary(){var e=this.transitiveModule;return{summaryKind:u.NgModule,type:this.type,entryComponents:e.entryComponents,providers:e.providers,modules:e.modules,exportedDirectives:e.exportedDirectives,exportedPipes:e.exportedPipes}}}]),_class15}(),t.TransitiveCompileNgModuleMetadata=function(){function _class16(){_classCallCheck(this,_class16),this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return _createClass(_class16,[{key:"addProvider",value:function addProvider(e,t){this.providers.push({provider:e,module:t})}},{key:"addDirective",value:function addDirective(e){this.directivesSet.has(e.reference)||(this.directivesSet.add(e.reference),this.directives.push(e))}},{key:"addExportedDirective",value:function addExportedDirective(e){this.exportedDirectivesSet.has(e.reference)||(this.exportedDirectivesSet.add(e.reference),this.exportedDirectives.push(e))}},{key:"addPipe",value:function addPipe(e){this.pipesSet.has(e.reference)||(this.pipesSet.add(e.reference),this.pipes.push(e))}},{key:"addExportedPipe",value:function addExportedPipe(e){this.exportedPipesSet.has(e.reference)||(this.exportedPipesSet.add(e.reference),this.exportedPipes.push(e))}},{key:"addModule",value:function addModule(e){this.modulesSet.has(e.reference)||(this.modulesSet.add(e.reference),this.modules.push(e))}},{key:"addEntryComponent",value:function addEntryComponent(e){this.entryComponentsSet.has(e.componentType)||(this.entryComponentsSet.add(e.componentType),this.entryComponents.push(e))}}]),_class16}(),t.ProviderMeta=function(){function _class17(e,_ref115){var t=_ref115.useClass,n=_ref115.useValue,r=_ref115.useExisting,o=_ref115.useFactory,i=_ref115.deps,u=_ref115.multi;_classCallCheck(this,_class17),this.token=e,this.useClass=t||null,this.useValue=n,this.useExisting=r,this.useFactory=o||null,this.dependencies=i||null,this.multi=!!u}return _createClass(_class17)}(),t.flatten=c,t.templateSourceUrl=function(e,t,n){var r;return r=n.isInline?t.type.reference instanceof qO.StaticSymbol?"".concat(t.type.reference.filePath,".").concat(t.type.reference.name,".html"):"".concat(i(e),"/").concat(i(t.type),".html"):n.templateUrl,t.type.reference instanceof qO.StaticSymbol?r:l(r)},t.sharedStylesheetJitUrl=function(e,t){var n=e.moduleUrl.split(/\/\\/g),r=n[n.length-1];return l("css/".concat(t).concat(r,".ngstyle.js"))},t.ngModuleJitUrl=function(e){return l("".concat(i(e.type),"/module.ngfactory.js"))},t.templateJitUrl=function(e,t){return l("".concat(i(e),"/").concat(i(t.type),".ngfactory.js"))}})),EI=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function n(e,t,_n117,r){_classCallCheck(this,n),this.file=e,this.offset=t,this.line=_n117,this.col=r}return _createClass(n,[{key:"toString",value:function toString(){return null!=this.offset?"".concat(this.file.url,"@").concat(this.line,":").concat(this.col):this.file.url}},{key:"moveBy",value:function moveBy(e){for(var t=this.file.content,r=t.length,o=this.offset,i=this.line,u=this.col;o>0&&e<0;)if(o--,e++,t.charCodeAt(o)==MO.$LF){i--;var _e198=t.substr(0,o-1).lastIndexOf(String.fromCharCode(MO.$LF));u=_e198>0?o-_e198:o}else u--;for(;o0;){var _n120=t.charCodeAt(o);o++,e--,_n120==MO.$LF?(i++,u=0):u++}return new n(this.file,o,i,u)}},{key:"getContext",value:function getContext(e,t){var _n119=this.file.content,r=this.offset;if(null!=r){r>_n119.length-1&&(r=_n119.length-1);for(var _o71=r,_i88=0,_u35=0;_i880&&(_i88++,"\n"!=_n119[--r]||++_u35!=t););for(_i88=0,_u35=0;_i882&&void 0!==arguments[2]?arguments[2]:null;_classCallCheck(this,o),this.start=e,this.end=t,this.details=n}return _createClass(o,[{key:"toString",value:function toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}}]),o}();t.ParseSourceSpan=o,t.EMPTY_PARSE_LOCATION=new n(new r("",""),0,0,0),t.EMPTY_SOURCE_SPAN=new o(t.EMPTY_PARSE_LOCATION,t.EMPTY_PARSE_LOCATION),function(e){e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR"}(i=t.ParseErrorLevel||(t.ParseErrorLevel={})),t.ParseError=function(){function _class18(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.ERROR;_classCallCheck(this,_class18),this.span=e,this.msg=t,this.level=n}return _createClass(_class18,[{key:"contextualMessage",value:function contextualMessage(){var e=this.span.start.getContext(100,3);return e?"".concat(this.msg,' ("').concat(e.before,"[").concat(i[this.level]," ->]").concat(e.after,'")'):this.msg}},{key:"toString",value:function toString(){var e=this.span.details?", ".concat(this.span.details):"";return"".concat(this.contextualMessage(),": ").concat(this.span.start).concat(e)}}]),_class18}(),t.typeSourceSpan=function(e,t){var i=DI.identifierModuleUrl(t),u=null!=i?"in ".concat(e," ").concat(DI.identifierName(t)," in ").concat(i):"in ".concat(e," ").concat(DI.identifierName(t)),s=new r("",u);return new o(new n(s,-1,-1,-1),new n(s,-1,-1,-1))},t.r3JitTypeSourceSpan=function(e,t,i){var u="in ".concat(e," ").concat(t," in ").concat(i),s=new r("",u);return new o(new n(s,-1,-1,-1),new n(s,-1,-1,-1))}})),bI=EI.ParseSourceSpan,CI=_O.htmlTrim,vI=_O.getLeadingAndTrailingHtmlWhitespace,AI=_O.hasHtmlWhitespace,FI=_O.canHaveInterpolation,xI=_O.getNodeCssStyleDisplay,SI=_O.isDanglingSpaceSensitiveNode,wI=_O.isIndentationSensitiveNode,TI=_O.isLeadingSpaceSensitiveNode,BI=_O.isTrailingSpaceSensitiveNode,kI=_O.isWhitespaceSensitiveNode,NI=[function(e){return e.map((function(e){if("element"===e.type&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&"text"===e.children[0].type&&"\n"===e.children[0].value[0]){var _e$children2=_toArray(e.children),_t172=_e$children2[0],_n121=_e$children2.slice(1);return e.clone({children:1===_t172.value.length?_n121:[_t172.clone({value:_t172.value.slice(1)})].concat(_toConsumableArray(_n121))})}return e}))},function(e){var t=function t(e){return"element"===e.type&&e.prev&&"ieConditionalStartComment"===e.prev.type&&e.prev.sourceSpan.end.offset===e.startSourceSpan.start.offset&&e.firstChild&&"ieConditionalEndComment"===e.firstChild.type&&e.firstChild.sourceSpan.start.offset===e.startSourceSpan.end.offset};return e.map((function(e){if(e.children){var _n122=e.children.map(t);if(_n122.some(Boolean)){for(var _t173=[],_r119=0;_r119")}))},function(e,t){if("html"===t.parser)return e;var n=/{{([\S\s]+?)}}/g;return e.map((function(e){if(!FI(e))return e;var _step73,t=[],_iterator73=_createForOfIteratorHelper(e.children);try{for(_iterator73.s();!(_step73=_iterator73.n()).done;){var _r122=_step73.value;if("text"===_r122.type)for(var _e200=_r122.sourceSpan.start,_o74=null,_i91=_r122.value.split(n),_n124=0;_n124<_i91.length;_n124++,_e200=_o74){var _r123=_i91[_n124];_n124%2!=0?(_o74=_e200.moveBy(_r123.length+4),t.push({type:"interpolation",sourceSpan:new bI(_e200,_o74),children:0===_r123.length?[]:[{type:"text",value:_r123,sourceSpan:new bI(_e200.moveBy(2),_o74.moveBy(-2))}]})):(_o74=_e200.moveBy(_r123.length),_r123.length>0&&t.push({type:"text",value:_r123,sourceSpan:new bI(_e200,_o74)}))}else t.push(_r122)}}catch(err){_iterator73.e(err)}finally{_iterator73.f()}return e.clone({children:t})}))},function(e){var t="whitespace";return e.map((function(e){if(!e.children)return e;if(0===e.children.length||1===e.children.length&&"text"===e.children[0].type&&0===CI(e.children[0].value).length)return e.clone({children:[],hasDanglingSpaces:e.children.length>0});var n=kI(e),r=wI(e);return e.clone({isWhitespaceSensitive:n,isIndentationSensitive:r,children:e.children.reduce((function(e,r){if("text"!==r.type||n)return[].concat(_toConsumableArray(e),[r]);var o=[],_vI=vI(r.value),i=_vI.leadingWhitespace,u=_vI.text,s=_vI.trailingWhitespace;return i&&o.push({type:t}),u&&o.push({type:"text",value:u,sourceSpan:new bI(r.sourceSpan.start.moveBy(i.length),r.sourceSpan.end.moveBy(-s.length))}),s&&o.push({type:t}),[].concat(_toConsumableArray(e),o)}),[]).reduce((function(e,n,r,o){if(n.type===t)return e;var i=0!==r&&o[r-1].type===t,u=r!==o.length-1&&o[r+1].type===t;return[].concat(_toConsumableArray(e),[Object.assign({},n,{hasLeadingSpaces:i,hasTrailingSpaces:u})])}),[])})}))},function(e,t){return e.map((function(e){return Object.assign(e,{cssDisplay:xI(e,t)})}))},function(e){return e.map((function(e){return Object.assign(e,{isSelfClosing:!e.children||"element"===e.type&&(e.tagDefinition.isVoid||e.startSourceSpan===e.endSourceSpan)})}))},function(e,t){return e.map((function(e){return"element"!==e.type?e:Object.assign(e,{hasHtmComponentClosingTag:e.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset))})}))},function(e,t){return e.map((function(e){return e.children?0===e.children.length?e.clone({isDanglingSpaceSensitive:SI(e)}):e.clone({children:e.children.map((function(e){return Object.assign({},e,{isLeadingSpaceSensitive:TI(e,t),isTrailingSpaceSensitive:BI(e,t)})})).map((function(e,t,n){return Object.assign({},e,{isLeadingSpaceSensitive:(0===t||n[t-1].isTrailingSpaceSensitive)&&e.isLeadingSpaceSensitive,isTrailingSpaceSensitive:(t===n.length-1||n[t+1].isLeadingSpaceSensitive)&&e.isTrailingSpaceSensitive})}))}):e}))},function(e){var t=function t(e){return"element"===e.type&&0===e.attrs.length&&1===e.children.length&&"text"===e.firstChild.type&&!AI(e.children[0].value)&&!e.firstChild.hasLeadingSpaces&&!e.firstChild.hasTrailingSpaces&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces&&e.prev&&"text"===e.prev.type&&e.next&&"text"===e.next.type};return e.map((function(e){if(e.children){var _n125=e.children.map(t);if(_n125.some(Boolean)){for(var _t175=[],_r124=0;_r124")+_o75.firstChild.value+"")+_i92.value,sourceSpan:new bI(_n126.sourceSpan.start,_i92.sourceSpan.end),isTrailingSpaceSensitive:_u37,hasTrailingSpaces:_s36}))}else _t175.push(_o75)}return e.clone({children:_t175})}}return e}))}],PI=function PI(e,t){var _step74,_iterator74=_createForOfIteratorHelper(NI);try{for(_iterator74.s();!(_step74=_iterator74.n()).done;)e=(0,_step74.value)(e,t)}catch(err){_iterator74.e(err)}finally{_iterator74.f()}return e},OI={hasPragma:function hasPragma(e){return/^\s*/.test(e)},insertPragma:function insertPragma(e){return"\x3c!-- @format --\x3e\n\n"+e.replace(/^\s*\n/,"")}},II={locStart:function locStart(e){return e.sourceSpan.start.offset},locEnd:function locEnd(e){return e.sourceSpan.end.offset}},jI=Rn.builders.group,LI={isVueEventBindingExpression:function isVueEventBindingExpression(e){var t=e.trim();return/^([\w$]+|\([^)]*?\))\s*=>|^function\s*\(/.test(t)||/^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[$A-Z_a-z][\w$]*])*$/.test(t)},printVueFor:function printVueFor(e,t){var _ref116=function(e){var t=/([^]*?)\s+(in|of)\s+([^]*)/,n=/,([^,\]}]*)(?:,([^,\]}]*))?$/,r=/^\(|\)$/g,o=e.match(t);if(o){var i={};i.for=o[3].trim();var u=o[1].trim().replace(r,""),s=u.match(n);return s?(i.alias=u.replace(n,""),i.iterator1=s[1].trim(),s[2]&&(i.iterator2=s[2].trim())):i.alias=u,{left:"".concat([i.alias,i.iterator1,i.iterator2].filter(Boolean).join(",")),operator:o[2],right:i.for}}}(e),n=_ref116.left,r=_ref116.operator,o=_ref116.right;return[jI(t("function _(".concat(n,") {}"),{parser:"babel",__isVueForBindingLeft:!0}))," ",r," ",t(o,{parser:"__js_expression"},{stripTrailingHardline:!0})]},printVueBindings:function printVueBindings(e,t){return t("function _(".concat(e,") {}"),{parser:"babel",__isVueBindings:!0})}},_I=i((function(e){!function(t,n){e.exports?e.exports=n():t.parseSrcset=n()}(r,(function(){return function(e,t){var n=t&&t.logger||console;function r(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function o(t){var n,r=t.exec(e.substring(y));if(r)return n=r[0],y+=n.length,n}for(var i,u,s,a,c,l=e.length,p=/^[ \t\n\r\u000c]+/,f=/^[, \t\n\r\u000c]+/,d=/^[^ \t\n\r\u000c]+/,h=/[,]+$/,m=/^\d+$/,g=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,y=0,D=[];;){if(o(f),y>=l)return D;i=o(d),u=[],","===i.slice(-1)?(i=i.replace(h,""),b()):E()}function E(){for(o(p),s="",a="in descriptor";;){if(c=e.charAt(y),"in descriptor"===a)if(r(c))s&&(u.push(s),s="",a="after descriptor");else{if(","===c)return y+=1,s&&u.push(s),void b();if("("===c)s+=c,a="in parens";else{if(""===c)return s&&u.push(s),void b();s+=c}}else if("in parens"===a)if(")"===c)s+=c,a="in descriptor";else{if(""===c)return u.push(s),void b();s+=c}else if("after descriptor"===a)if(r(c));else{if(""===c)return void b();a="in descriptor",y-=1}y+=1}}function b(){var t,r,o,s,a,c,l,p,f,d=!1,h={};for(s=0;s1)throw new Error("Mixed descriptor in srcset is not supported");var o=n?"w":r?"h":"d",i=n?"w":r?"h":"x",u=function u(e){return Math.max.apply(Math,_toConsumableArray(e))},s=t.map((function(e){return e.url})),a=u(s.map((function(e){return e.length}))),c=t.map((function(e){return e[o]})).map((function(e){return e?e.toString():""})),l=c.map((function(e){var t=e.indexOf(".");return-1===t?e.length:t})),p=u(l);return $I([",",qI],s.map((function(e,t){var n=[e],r=c[t];if(r){var _o76=a-e.length+1,_u38=p-l[t],_s37=" ".repeat(_o76+_u38);n.push(RI(_s37," "),r+i)}return n})))},printClassNames:function printClassNames(e){for(var r,t=e.trim().split(/\s+/),n=[],_e201=0;_e2010)||"element"===e.type&&e.isSelfClosing&&Zj(t)?"":!t.isLeadingSpaceSensitive||Bj(t)||Zj(t)&&e.lastChild&&tL(e.lastChild)&&e.lastChild.lastChild&&tL(e.lastChild.lastChild)?KI:t.hasLeadingSpaces?nj:oj}}function Wj(e,t){var n=e.startSourceSpan.end.offset;e.firstChild&&Qj(e.firstChild)&&(n-=uL(e).length);var r=e.endSourceSpan.start.offset;return e.lastChild&&tL(e.lastChild)?r+=sL(e,t).length:eL(e)&&(r-=aL(e.lastChild,t).length),t.originalText.slice(n,r)}function Uj(e,t,n){var r=e.getValue();if(!lj(r.attrs))return r.isSelfClosing?" ":"";var o=r.prev&&"comment"===r.prev.type&&bj(r.prev.value),i="boolean"==typeof o?function(){return o}:Array.isArray(o)?function(e){return o.includes(e.rawName)}:function(){return!1},u=e.map((function(e){var r=e.getValue();return i(r)?cj(t.originalText.slice(jj(r),Lj(r)),rj):n()}),"attrs"),s="element"===r.type&&"script"===r.fullName&&1===r.attrs.length&&"src"===r.attrs[0].fullName&&0===r.children.length,a=[ej([s?" ":nj,tj(nj,u)])];return r.firstChild&&Qj(r.firstChild)||r.isSelfClosing&&eL(r.parent)||s?a.push(r.isSelfClosing?" ":""):a.push(r.isSelfClosing?nj:oj),a}function zj(e,t,n){var r=e.getValue();return[Hj(r,t),Uj(e,t,n),r.isSelfClosing?"":Gj(r)]}function Hj(e,t){return e.prev&&Kj(e.prev)?"":[nL(e,t),iL(e)]}function Gj(e){return e.firstChild&&Qj(e.firstChild)?"":uL(e)}function Jj(e,t){return[e.isSelfClosing?"":Xj(e,t),Yj(e,t)]}function Xj(e,t){return e.lastChild&&tL(e.lastChild)?"":[rL(e,t),sL(e,t)]}function Yj(e,t){return(e.next?Zj(e.next):eL(e.parent))?"":[aL(e,t),oL(e,t)]}function Kj(e){return e.next&&!Tj(e.next)&&Tj(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function Qj(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Zj(e){return e.prev&&"docType"!==e.prev.type&&!Tj(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function eL(e){return e.lastChild&&e.lastChild.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!Tj(Ej(e.lastChild))&&!Oj(e)}function tL(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&Tj(Ej(e))}function nL(e,t){return Qj(e)?uL(e.parent):Zj(e)?aL(e.prev,t):""}function rL(e,t){return eL(e)?aL(e.lastChild,t):""}function oL(e,t){return tL(e)?sL(e.parent,t):Kj(e)?iL(e.next):""}function iL(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return"\x3c!--[if ".concat(e.condition);case"ieConditionalEndComment":return"\x3c!--\x3c!--\x3e<").concat(e.rawName);default:return"<".concat(e.rawName)}}function uL(e){switch(Il(!e.isSelfClosing),e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--"}}function sL(e,t){if(Il(!e.isSelfClosing),kj(e,t))return"";switch(e.type){case"ieConditionalComment":return"\x3c!--\x3e";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function cL(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.value;return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?cj(t,rj):cj(mj(pj(t)),KI):sj(tj(nj,fj(t)))}var lL={preprocess:PI,print:function print(e,t,n){var o,r=e.getValue();switch(r.type){case"front-matter":return cj(r.raw,rj);case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(r),[YI(qj(e,t,n)),KI];case"element":case"ieConditionalComment":if(Nj(r,t))return[nL(r,t),YI(zj(e,t,n))].concat(_toConsumableArray(cj(Wj(r,t),rj)),_toConsumableArray(Jj(r,t)),[oL(r,t)]);var _i93=1===r.children.length&&"interpolation"===r.firstChild.type&&r.firstChild.isLeadingSpaceSensitive&&!r.firstChild.hasLeadingSpaces&&r.lastChild.isTrailingSpaceSensitive&&!r.lastChild.hasTrailingSpaces,_u39=Symbol("element-attr-group-id");return[YI([YI(zj(e,t,n),{id:_u39}),0===r.children.length?r.hasDanglingSpaces&&r.isDanglingSpaceSensitive?nj:"":[yj(r)?GI:"",(o=[_i93?QI(oj,"",{groupId:_u39}):r.firstChild.hasLeadingSpaces&&r.firstChild.isLeadingSpaceSensitive?nj:"text"===r.firstChild.type&&r.isWhitespaceSensitive&&r.isIndentationSensitive?JI(oj):oj,qj(e,t,n)],_i93?ZI(o,{groupId:_u39}):!wj(r)&&!Aj(r,t)||"root"!==r.parent.type||"vue"!==t.parser||t.vueIndentScriptAndStyle?ej(o):o),(r.next?Zj(r.next):eL(r.parent))?r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?" ":"":_i93?QI(oj,"",{groupId:_u39}):r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?nj:("comment"===r.lastChild.type||"text"===r.lastChild.type&&r.isWhitespaceSensitive&&r.isIndentationSensitive)&&new RegExp("\\n[\\t ]{".concat(t.tabWidth*hj(e,(function(e){return e.parent&&"root"!==e.parent.type})),"}$")).test(r.lastChild.value)?"":oj]]),Jj(r,t)];case"ieConditionalStartComment":case"ieConditionalEndComment":return[Hj(r),Yj(r)];case"interpolation":return[Hj(r,t)].concat(_toConsumableArray(e.map(n,"children")),[Yj(r,t)]);case"text":if("interpolation"===r.parent.type){var _e203=/\n[^\S\n]*?$/,_t177=_e203.test(r.value),_n129=_t177?r.value.replace(_e203,""):r.value;return[].concat(_toConsumableArray(cj(_n129,rj)),[_t177?KI:""])}var _e202=uj([nL(r,t)].concat(_toConsumableArray(cL(r)),[oL(r,t)]));return aj(_e202)||"fill"===_e202.type?XI(sj(_e202)):_e202;case"docType":return[YI([Hj(r,t)," ",r.value.replace(/^html\b/i,"html").replace(/\s+/g," ")]),Yj(r,t)];case"comment":return[nL(r,t)].concat(_toConsumableArray(cj(t.originalText.slice(jj(r),Lj(r)),rj)),[oL(r,t)]);case"attribute":if(null===r.value)return r.rawName;var _e204=Pj(r.value),_t178=dj(_e204,"'")1&&void 0!==arguments[1])||arguments[1];return YI([ej([oj,e]),t?oj:""])},c=function c(e){return i?s(e):a(e)},l=function l(e,n){return t(e,Object.assign({__onHtmlBindingRoot:u,__embeddedInHtml:!0},n),{stripTrailingHardline:!0})};if("srcset"===e.fullName&&("img"===e.parent.fullName||"source"===e.parent.fullName))return a(Vj(o()));if("class"===e.fullName&&!n.parentParser){var _e209=o();if(!_e209.includes("{{"))return $j(_e209)}if("style"===e.fullName&&!n.parentParser){var _e210=o();if(!_e210.includes("{{"))return a(l(_e210,{parser:"css",__isHTMLStyleAttribute:!0}))}if("vue"===n.parser){if("v-for"===e.fullName)return _j(o(),l);if(xj(e)||Sj(e,n))return Mj(o(),l);var _t181=["^:","^v-bind:"],_i96=["^v-"];if(r(["^@","^v-on:"])){var _e211=o();return c(l(_e211,{parser:Rj(_e211)?"__js_expression":"__vue_event_binding"}))}if(r(_t181))return c(l(o(),{parser:"__vue_expression"}));if(r(_i96))return c(l(o(),{parser:"__js_expression"}))}if("angular"===n.parser){var _t182=function _t182(e,t){return l(e,Object.assign({},t,{trailingComma:"none"}))},_n130=["^\\*"],_i97=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],_u41=["^i18n(-.+)?$"];if(r(["^\\(.+\\)$","^on-"]))return c(_t182(o(),{parser:"__ng_action"}));if(r(_i97))return c(_t182(o(),{parser:"__ng_binding"}));if(r(_u41)){var _t183=o().trim();return a(XI(cL(e,_t183)),!_t183.includes("@@"))}if(r(_n130))return c(_t182(o(),{parser:"__ng_directive"}));var _s39=/{{([\S\s]+?)}}/g,_p14=o();if(_s39.test(_p14)){var _step76,_e212=[],_iterator76=_createForOfIteratorHelper(_p14.split(_s39).entries());try{for(_iterator76.s();!(_step76=_iterator76.n()).done;){var _step76$value=_slicedToArray(_step76.value,2),_n131=_step76$value[0],_r126=_step76$value[1];if(_n131%2==0)_e212.push(cj(_r126,rj));else try{_e212.push(YI(["{{",ej([nj,_t182(_r126,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),nj,"}}"]))}catch(t){_e212.push("{{",cj(_r126,rj),"}}")}}}catch(err){_iterator76.e(err)}finally{_iterator76.f()}return YI(_e212)}}return null}(o,(function(e,t){return n(e,Object.assign({__isInHtmlAttribute:!0,__embeddedInHtml:!0},t),{stripTrailingHardline:!0})}),r);if(_e208)return[o.rawName,'="',YI(ij(_e208,(function(e){return"string"==typeof e?e.replace(/"/g,"""):e}))),'"'];break;case"front-matter":return Xw(o,n)}}},pL="HTML",fL={htmlWhitespaceSensitivity:{since:"1.15.0",category:pL,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},vueIndentScriptAndStyle:{since:"1.19.0",category:pL,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},dL={name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".htm",".html.hl",".inc",".xht",".xhtml"],languageId:146},hL={name:"Vue",type:"markup",color:"#2c3e50",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",languageId:391},mL={languages:[df(dL,(function(){return{name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]}})),df(dL,(function(e){return{since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:[].concat(_toConsumableArray(e.extensions),[".mjml"])}})),df(dL,(function(){return{name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]}})),df(hL,(function(){return{since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]}}))],printers:{html:lL},options:fL,parsers:{get html(){return{}.parsers.html},get vue(){return{}.parsers.vue},get angular(){return{}.parsers.angular},get lwc(){return{}.parsers.lwc}}},gL={isPragma:function isPragma(e){return/^\s*@(prettier|format)\s*$/.test(e)},hasPragma:function hasPragma(e){return/^\s*#[^\S\n]*@(prettier|format)\s*?(\n|$)/.test(e)},insertPragma:function insertPragma(e){return"# @format\n\n".concat(e)}},yL={locStart:function locStart(e){return e.position.start.offset},locEnd:function locEnd(e){return e.position.end.offset}},DL=function DL(e,t,n,r){if("root"===e.getValue().type&&r.filepath&&/(?:[/\\]|^)\.prettierrc$/.test(r.filepath))return n(r.originalText,Object.assign({},r,{parser:"json"}))},EL=rn.getLast,bL=rn.isNonEmptyArray;function CL(e,t){return e&&"string"==typeof e.type&&(!t||t.includes(e.type))}function vL(e){return"prettier-ignore"===e.value.trim()}function AL(e){return e&&bL(e.leadingComments)}function FL(e){return e&&bL(e.middleComments)}function xL(e){return e&&e.indicatorComment}function SL(e){return e&&e.trailingComment}function wL(e){return e&&bL(e.endComments)}function TL(e){var n,_step77,t=[],_iterator77=_createForOfIteratorHelper(e.split(/( +)/g));try{for(_iterator77.s();!(_step77=_iterator77.n()).done;){var _r127=_step77.value;" "!==_r127?" "===n?t.push(_r127):t.push((t.pop()||"")+_r127):void 0===n&&t.unshift(""),n=_r127}}catch(err){_iterator77.e(err)}finally{_iterator77.f()}return" "===n&&t.push((t.pop()||"")+" "),""===t[0]&&(t.shift(),t.unshift(" "+(t.shift()||""))),t}var BL={getLast:EL,getAncestorCount:function getAncestorCount(e,t){for(var n=0,r=e.stack.length-1,_o78=0;_o780&&t.length>0&&!/^\s/.test(t[0])&&!/^\s|\s$/.test(EL(e))?[].concat(_toConsumableArray(e.slice(0,-1)),[[].concat(_toConsumableArray(EL(e)),_toConsumableArray(t))]):[].concat(_toConsumableArray(e),[t])}),[]).map((function(e){return e.reduce((function(e,t){return e.length>0&&/\s$/.test(EL(e))?[].concat(_toConsumableArray(e.slice(0,-1)),[EL(e)+" "+t]):[].concat(_toConsumableArray(e),[t])}),[])})).map((function(e){return"never"===r.proseWrap?[e.join(" ")]:e})));function a(t){if("keep"===e.chomping)return 0===EL(t).length?t.slice(0,-1):t;for(var r=0,_e214=t.length-1;_e214>=0&&0===t[_e214].length;_e214--)r++;return 0===r?t:r>=2&&!n?t.slice(0,-(r-1)):t.slice(0,-r)}},getFlowScalarLineContents:function getFlowScalarLineContents(e,t,n){var r=t.split("\n").map((function(e,t,n){return 0===t&&t===n.length-1?e:0!==t&&t!==n.length-1?e.trim():0===t?e.trimEnd():e.trimStart()}));return"preserve"===n.proseWrap?r.map((function(e){return 0===e.length?[]:[e]})):r.map((function(e){return 0===e.length?[]:TL(e)})).reduce((function(t,n,o){return 0!==o&&r[o-1].length>0&&n.length>0&&("quoteDouble"!==e||!EL(EL(t)).endsWith("\\"))?[].concat(_toConsumableArray(t.slice(0,-1)),[[].concat(_toConsumableArray(EL(t)),_toConsumableArray(n))]):[].concat(_toConsumableArray(t),[n])}),[]).map((function(e){return"never"===n.proseWrap?[e.join(" ")]:e}))},getLastDescendantNode:function e(t){return bL(t.children)?e(EL(t.children)):t},hasPrettierIgnore:function hasPrettierIgnore(e){var t=e.getValue();if("documentBody"===t.type){var _t185=e.getParentNode();return wL(_t185.head)&&vL(EL(_t185.head.endComments))}return AL(t)&&vL(EL(t.leadingComments))},hasLeadingComments:AL,hasMiddleComments:FL,hasIndicatorComment:xL,hasTrailingComment:SL,hasEndComments:wL},kL=BL.defineShortcut,NL=BL.mapNode;function PL(e){switch(e.type){case"document":kL(e,"head",(function(){return e.children[0]})),kL(e,"body",(function(){return e.children[1]}));break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":kL(e,"content",(function(){return e.children[0]}));break;case"mappingItem":case"flowMappingItem":kL(e,"key",(function(){return e.children[0]})),kL(e,"value",(function(){return e.children[1]}))}return e}var OL=function OL(e){return NL(e,PL)},_Rn$builders42=Rn.builders,IL=_Rn$builders42.softline,jL=_Rn$builders42.align,LL=BL.hasEndComments,_L=BL.isNextLineEmpty,ML=BL.isNode,RL=new WeakMap;function VL(e){return LL(e)&&!ML(e,["documentHead","documentBody","flowMapping","flowSequence"])}var $L={alignWithSpaces:function alignWithSpaces(e,t){return jL(" ".repeat(e),t)},shouldPrintEndComments:VL,printNextEmptyLine:function printNextEmptyLine(e,t){var o,n=e.getValue(),r=e.stack[0];return RL.has(r)?o=RL.get(r):(o=new Set,RL.set(r,o)),o.has(n.position.end.line)||(o.add(n.position.end.line),!_L(n,t)||VL(e.getParentNode()))?"":IL}},_Rn$builders43=Rn.builders,qL=_Rn$builders43.ifBreak,WL=_Rn$builders43.line,UL=_Rn$builders43.softline,zL=_Rn$builders43.hardline,HL=_Rn$builders43.join,GL=BL.isEmptyNode,JL=BL.getLast,XL=BL.hasEndComments,YL=$L.printNextEmptyLine,KL=$L.alignWithSpaces;function QL(e,t,n){var r=e.getValue(),o="flowMapping"===r.type,i=o?"{":"[",u=o?"}":"]",s=UL;o&&r.children.length>0&&n.bracketSpacing&&(s=WL);var a=JL(r.children),c=a&&"flowMappingItem"===a.type&&GL(a.key)&&GL(a.value);return[i,KL(n.tabWidth,[s,ZL(e,t,n),"none"===n.trailingComma?"":qL(","),XL(r)?[zL,HL(zL,e.map(t,"endComments"))]:""]),c?"":s,u]}function ZL(e,t,n){var r=e.getValue();return e.map((function(e,o){return[t(),o===r.children.length-1?"":[",",WL,r.children[o].position.start.line!==r.children[o+1].position.start.line?YL(e,n.originalText):""]]}),"children")}var e_={printFlowMapping:QL,printFlowSequence:QL},_Rn$builders44=Rn.builders,t_=_Rn$builders44.conditionalGroup,n_=_Rn$builders44.group,r_=_Rn$builders44.hardline,o_=_Rn$builders44.ifBreak,i_=_Rn$builders44.join,u_=_Rn$builders44.line,s_=BL.hasLeadingComments,a_=BL.hasMiddleComments,c_=BL.hasTrailingComment,l_=BL.hasEndComments,p_=BL.isNode,f_=BL.isEmptyNode,d_=BL.isInlineNode,h_=$L.alignWithSpaces;function m_(e,t){if(!e)return!0;switch(e.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if("preserve"===t.proseWrap)return e.position.start.line===e.position.end.line;if(/\\$/m.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case"never":return!e.value.includes("\n");case"always":return!/[\n ]/.test(e.value);default:return!1}}var g_=function g_(e,t,n,r,o){var i=e.key,u=e.value,s=f_(i),a=f_(u);if(s&&a)return": ";var c=r("key"),l=function(e){return e.key.content&&"alias"===e.key.content.type}(e)?" ":"";if(a)return"flowMappingItem"===e.type&&"flowMapping"===t.type?c:"mappingItem"!==e.type||!m_(i.content,o)||c_(i.content)||t.tag&&"tag:yaml.org,2002:set"===t.tag.value?["? ",h_(2,c)]:[c,l,":"];var p=r("value");if(s)return[": ",h_(2,p)];if(s_(u)||!d_(i.content))return["? ",h_(2,c),r_,i_("",n.map(r,"value","leadingComments").map((function(e){return[e,r_]}))),": ",h_(2,p)];if(function(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":return e.position.start.line===e.position.end.line;case"alias":return!0;default:return!1}}(i.content)&&!s_(i.content)&&!a_(i.content)&&!c_(i.content)&&!l_(i)&&!s_(u.content)&&!a_(u.content)&&!l_(u)&&m_(u.content,o))return[c,l,": ",p];var f=Symbol("mappingKey"),d=n_([o_("? "),n_(h_(2,c),{id:f})]),h=[r_,": ",h_(2,p)],m=[l,":"];s_(u.content)||l_(u)&&u.content&&!p_(u.content,["mapping","sequence"])||"mapping"===t.type&&c_(i.content)&&d_(u.content)||p_(u.content,["mapping","sequence"])&&null===u.content.tag&&null===u.content.anchor?m.push(r_):u.content&&m.push(u_),m.push(p);var g=h_(o.tabWidth,m);return t_([[d,o_(h,g,{groupId:f})]])},_Rn$builders45=Rn.builders,y_=_Rn$builders45.dedent,D_=_Rn$builders45.dedentToRoot,E_=_Rn$builders45.fill,b_=_Rn$builders45.hardline,C_=_Rn$builders45.join,v_=_Rn$builders45.line,A_=_Rn$builders45.literalline,F_=_Rn$builders45.markAsRoot,x_=Rn.utils.getDocParts,S_=BL.getAncestorCount,w_=BL.getBlockValueLineContents,T_=BL.hasIndicatorComment,B_=BL.isLastDescendantNode,k_=BL.isNode,N_=$L.alignWithSpaces,P_=function P_(e,t,n){var r=e.getValue(),o=S_(e,(function(e){return k_(e,["sequence","mapping"])})),i=B_(e),u=["blockFolded"===r.type?">":"|"];null!==r.indent&&u.push(r.indent.toString()),"clip"!==r.chomping&&u.push("keep"===r.chomping?"+":"-"),T_(r)&&u.push(" ",t("indicatorComment"));var _step78,s=w_(r,{parentIndent:o,isLastDescendant:i,options:n}),a=[],_iterator78=_createForOfIteratorHelper(s.entries());try{for(_iterator78.s();!(_step78=_iterator78.n()).done;){var _step78$value=_slicedToArray(_step78.value,2),_e215=_step78$value[0],_t186=_step78$value[1];0===_e215&&a.push(b_),a.push(E_(x_(C_(v_,_t186)))),_e215!==s.length-1?a.push(0===_t186.length?b_:F_(A_)):"keep"===r.chomping&&i&&a.push(D_(0===_t186.length?b_:A_))}}catch(err){_iterator78.e(err)}finally{_iterator78.f()}return null===r.indent?u.push(y_(N_(n.tabWidth,a))):u.push(D_(N_(r.indent-1+o,a))),u},_Rn$builders46=Rn.builders,O_=_Rn$builders46.breakParent,I_=_Rn$builders46.fill,j_=_Rn$builders46.group,L_=_Rn$builders46.hardline,__=_Rn$builders46.join,M_=_Rn$builders46.line,R_=_Rn$builders46.lineSuffix,V_=_Rn$builders46.literalline,$_=Rn.utils.getDocParts,q_=rn.replaceEndOfLineWith,W_=rn.isPreviousLineEmpty,U_=gL.insertPragma,z_=gL.isPragma,H_=yL.locStart,G_=BL.getFlowScalarLineContents,J_=BL.getLastDescendantNode,X_=BL.hasLeadingComments,Y_=BL.hasMiddleComments,K_=BL.hasTrailingComment,Q_=BL.hasEndComments,Z_=BL.hasPrettierIgnore,eM=BL.isLastDescendantNode,tM=BL.isNode,nM=BL.isInlineNode,rM=$L.alignWithSpaces,oM=$L.printNextEmptyLine,iM=$L.shouldPrintEndComments,uM=e_.printFlowMapping,sM=e_.printFlowSequence;function aM(e,t){return K_(e)||t&&(t.head.children.length>0||Q_(t.head))}function cM(e,t,n){var r=G_(e,t,n);return __(L_,r.map((function(e){return I_($_(__(M_,e)))})))}var lM={preprocess:OL,embed:DL,print:function print(e,t,n){var r=e.getValue(),o=[];"mappingValue"!==r.type&&X_(r)&&o.push([__(L_,e.map(n,"leadingComments")),L_]);var i=r.tag,u=r.anchor;i&&o.push(n("tag")),i&&u&&o.push(" "),u&&o.push(n("anchor"));var s="";tM(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!eM(e)&&(s=oM(e,t.originalText)),(i||u)&&(tM(r,["sequence","mapping"])&&!Y_(r)?o.push(L_):o.push(" ")),Y_(r)&&o.push([1===r.middleComments.length?"":L_,__(L_,e.map(n,"middleComments")),L_]);var a=e.getParentNode();return Z_(e)?o.push(q_(t.originalText.slice(r.position.start.offset,r.position.end.offset).trimEnd(),V_)):o.push(j_(function(e,t,n,r,o){switch(e.type){case"root":var _t187=e.children,_r130=[];n.each((function(e,n){var i=_t187[n],u=_t187[n+1];0!==n&&_r130.push(L_),_r130.push(o()),aM(i,u)?(_r130.push(L_,"..."),K_(i)&&_r130.push(" ",o("trailingComment"))):u&&!K_(u.head)&&_r130.push(L_,"---")}),"children");var _i98=J_(e);return tM(_i98,["blockLiteral","blockFolded"])&&"keep"===_i98.chomping||_r130.push(L_),_r130;case"document":var _i99=[];return"head"===function(e,t,n,r){return n.children[0]===e&&/---(\s|$)/.test(r.originalText.slice(H_(e),H_(e)+4))||e.head.children.length>0||Q_(e.head)||K_(e.head)?"head":!aM(e,t)&&!!t&&"root"}(e,t.children[n.getName()+1],t,r)&&((e.head.children.length>0||e.head.endComments.length>0)&&_i99.push(o("head")),K_(e.head)?_i99.push(["---"," ",o(["head","trailingComment"])]):_i99.push("---")),function(e){return e.body.children.length>0||Q_(e.body)}(e)&&_i99.push(o("body")),__(L_,_i99);case"documentHead":return __(L_,[].concat(_toConsumableArray(n.map(o,"children")),_toConsumableArray(n.map(o,"endComments"))));case"documentBody":var _t188=e.children,_r131=e.endComments,_i100="";if(_t188.length>0&&_r131.length>0){var _t189=J_(e);tM(_t189,["blockFolded","blockLiteral"])?"keep"!==_t189.chomping&&(_i100=[L_,L_]):_i100=L_}return[__(L_,n.map(o,"children")),_i100,__(L_,n.map(o,"endComments"))];case"directive":return["%",__(" ",[e.name].concat(_toConsumableArray(e.parameters)))];case"comment":return["#",e.value];case"alias":return["*",e.value];case"tag":return r.originalText.slice(e.position.start.offset,e.position.end.offset);case"anchor":return["&",e.value];case"plain":return cM(e.type,r.originalText.slice(e.position.start.offset,e.position.end.offset),r);case"quoteDouble":case"quoteSingle":var _t190="'",_n133='"',_o80=r.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if("quoteSingle"===e.type&&_o80.includes("\\")||"quoteDouble"===e.type&&/\\[^"]/.test(_o80)){var _i102="quoteDouble"===e.type?_n133:_t190;return[_i102,cM(e.type,_o80,r),_i102]}if(_o80.includes(_n133))return[_t190,cM(e.type,"quoteDouble"===e.type?_o80.replace(/\\"/g,_n133).replace(/'/g,_t190.repeat(2)):_o80,r),_t190];if(_o80.includes(_t190))return[_n133,cM(e.type,"quoteSingle"===e.type?_o80.replace(/''/g,_t190):_o80,r),_n133];var _i101=r.singleQuote?_t190:_n133;return[_i101,cM(e.type,_o80,r),_i101];case"blockFolded":case"blockLiteral":return P_(n,o,r);case"mapping":case"sequence":return __(L_,n.map(o,"children"));case"sequenceItem":return["- ",rM(2,e.content?o("content"):"")];case"mappingKey":case"mappingValue":return e.content?o("content"):"";case"mappingItem":case"flowMappingItem":return g_(e,t,n,o,r);case"flowMapping":return uM(n,o,r);case"flowSequence":return sM(n,o,r);case"flowSequenceItem":return o("content");default:throw new Error("Unexpected node type ".concat(e.type))}}(r,a,e,t,n))),K_(r)&&!tM(r,["document","documentHead"])&&o.push(R_(["mappingValue"!==r.type||r.content?" ":"","mappingKey"===a.type&&"mapping"===e.getParentNode(2).type&&nM(r)?"":O_,n("trailingComment")])),iM(r)&&o.push(rM("sequenceItem"===r.type?2:0,[L_,__(L_,e.map((function(e){return[W_(t.originalText,e.getValue(),H_)?L_:"",n()]}),"endComments"))])),o.push(s),o},massageAstNode:function massageAstNode(e,t){if(tM(t))switch(delete t.position,t.type){case"comment":if(z_(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote"}},insertPragma:U_},pM={bracketSpacing:Ow.bracketSpacing,singleQuote:Ow.singleQuote,proseWrap:Ow.proseWrap},fM=[qw,GB,rN,FN,eO,mL,{languages:[df({name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","glide.lock","yarn.lock"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407},(function(e){return{since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"],filenames:[].concat(_toConsumableArray(e.filenames.filter((function(e){return"yarn.lock"!==e}))),[".prettierrc"])}}))],printers:{yaml:lM},options:pM,parsers:{get yaml(){return{}.parsers.yaml}}}],dM=n.version,hM=Mt.getSupportInfo,mM=fM.map((function(t){return e(t,["parsers"])}));function gM(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return function(){for(var _len16=arguments.length,n=new Array(_len16),_key16=0;_key16<_len16;_key16++)n[_key16]=arguments[_key16];var r=n[t]||{},o=r.plugins||[];return n[t]=Object.assign({},r,{plugins:[].concat(_toConsumableArray(mM),_toConsumableArray(Array.isArray(o)?o:Object.values(o)))}),e.apply(void 0,n)}}var yM=gM($p.formatWithCursor);return{formatWithCursor:yM,format:function format(e,t){return yM(e,t).formatted},check:function check(e,t){return yM(e,t).formatted===e},doc:Rn,getSupportInfo:gM(hM,0),version:dM,util:ff,__debug:{parse:gM($p.parse),formatAST:gM($p.formatAST),formatDoc:gM($p.formatDoc),printToDoc:gM($p.printToDoc),printDocToString:gM($p.printDocToString)}}}()}(standalone);var prettier=Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_91__.G)(standalone.exports),formatter=memoizerific__WEBPACK_IMPORTED_MODULE_90___default()(2)((function(type,source){return!1===type?source:"dedent"===type||!0===type?Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_91__.E)(source):prettier.format(source,{parser:type,plugins:[prettierHtml],htmlWhitespaceSensitivity:"ignore"}).trim()}))},846:function(module,exports,__webpack_require__){"use strict";var NAME,Constructor,Prototype,NATIVE_ARRAY_BUFFER=__webpack_require__(451),DESCRIPTORS=__webpack_require__(24),global=__webpack_require__(12),isCallable=__webpack_require__(23),isObject=__webpack_require__(31),hasOwn=__webpack_require__(32),classof=__webpack_require__(141),tryToString=__webpack_require__(123),createNonEnumerableProperty=__webpack_require__(101),defineBuiltIn=__webpack_require__(43),defineBuiltInAccessor=__webpack_require__(94),isPrototypeOf=__webpack_require__(100),getPrototypeOf=__webpack_require__(144),setPrototypeOf=__webpack_require__(174),wellKnownSymbol=__webpack_require__(20),uid=__webpack_require__(178),InternalStateModule=__webpack_require__(57),enforceInternalState=InternalStateModule.enforce,getInternalState=InternalStateModule.get,Int8Array=global.Int8Array,Int8ArrayPrototype=Int8Array&&Int8Array.prototype,Uint8ClampedArray=global.Uint8ClampedArray,Uint8ClampedArrayPrototype=Uint8ClampedArray&&Uint8ClampedArray.prototype,TypedArray=Int8Array&&getPrototypeOf(Int8Array),TypedArrayPrototype=Int8ArrayPrototype&&getPrototypeOf(Int8ArrayPrototype),ObjectPrototype=Object.prototype,TypeError=global.TypeError,TO_STRING_TAG=wellKnownSymbol("toStringTag"),TYPED_ARRAY_TAG=uid("TYPED_ARRAY_TAG"),NATIVE_ARRAY_BUFFER_VIEWS=NATIVE_ARRAY_BUFFER&&!!setPrototypeOf&&"Opera"!==classof(global.opera),TYPED_ARRAY_TAG_REQUIRED=!1,TypedArrayConstructorsList={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},BigIntArrayConstructorsList={BigInt64Array:8,BigUint64Array:8},getTypedArrayConstructor=function(it){var proto=getPrototypeOf(it);if(isObject(proto)){var state=getInternalState(proto);return state&&hasOwn(state,"TypedArrayConstructor")?state.TypedArrayConstructor:getTypedArrayConstructor(proto)}},isTypedArray=function(it){if(!isObject(it))return!1;var klass=classof(it);return hasOwn(TypedArrayConstructorsList,klass)||hasOwn(BigIntArrayConstructorsList,klass)};for(NAME in TypedArrayConstructorsList)(Prototype=(Constructor=global[NAME])&&Constructor.prototype)?enforceInternalState(Prototype).TypedArrayConstructor=Constructor:NATIVE_ARRAY_BUFFER_VIEWS=!1;for(NAME in BigIntArrayConstructorsList)(Prototype=(Constructor=global[NAME])&&Constructor.prototype)&&(enforceInternalState(Prototype).TypedArrayConstructor=Constructor);if((!NATIVE_ARRAY_BUFFER_VIEWS||!isCallable(TypedArray)||TypedArray===Function.prototype)&&(TypedArray=function TypedArray(){throw new TypeError("Incorrect invocation")},NATIVE_ARRAY_BUFFER_VIEWS))for(NAME in TypedArrayConstructorsList)global[NAME]&&setPrototypeOf(global[NAME],TypedArray);if((!NATIVE_ARRAY_BUFFER_VIEWS||!TypedArrayPrototype||TypedArrayPrototype===ObjectPrototype)&&(TypedArrayPrototype=TypedArray.prototype,NATIVE_ARRAY_BUFFER_VIEWS))for(NAME in TypedArrayConstructorsList)global[NAME]&&setPrototypeOf(global[NAME].prototype,TypedArrayPrototype);if(NATIVE_ARRAY_BUFFER_VIEWS&&getPrototypeOf(Uint8ClampedArrayPrototype)!==TypedArrayPrototype&&setPrototypeOf(Uint8ClampedArrayPrototype,TypedArrayPrototype),DESCRIPTORS&&!hasOwn(TypedArrayPrototype,TO_STRING_TAG))for(NAME in TYPED_ARRAY_TAG_REQUIRED=!0,defineBuiltInAccessor(TypedArrayPrototype,TO_STRING_TAG,{configurable:!0,get:function(){return isObject(this)?this[TYPED_ARRAY_TAG]:void 0}}),TypedArrayConstructorsList)global[NAME]&&createNonEnumerableProperty(global[NAME],TYPED_ARRAY_TAG,NAME);module.exports={NATIVE_ARRAY_BUFFER_VIEWS:NATIVE_ARRAY_BUFFER_VIEWS,TYPED_ARRAY_TAG:TYPED_ARRAY_TAG_REQUIRED&&TYPED_ARRAY_TAG,aTypedArray:function(it){if(isTypedArray(it))return it;throw new TypeError("Target is not a typed array")},aTypedArrayConstructor:function(C){if(isCallable(C)&&(!setPrototypeOf||isPrototypeOf(TypedArray,C)))return C;throw new TypeError(tryToString(C)+" is not a typed array constructor")},exportTypedArrayMethod:function(KEY,property,forced,options){if(DESCRIPTORS){if(forced)for(var ARRAY in TypedArrayConstructorsList){var TypedArrayConstructor=global[ARRAY];if(TypedArrayConstructor&&hasOwn(TypedArrayConstructor.prototype,KEY))try{delete TypedArrayConstructor.prototype[KEY]}catch(error){try{TypedArrayConstructor.prototype[KEY]=property}catch(error2){}}}TypedArrayPrototype[KEY]&&!forced||defineBuiltIn(TypedArrayPrototype,KEY,forced?property:NATIVE_ARRAY_BUFFER_VIEWS&&Int8ArrayPrototype[KEY]||property,options)}},exportTypedArrayStaticMethod:function(KEY,property,forced){var ARRAY,TypedArrayConstructor;if(DESCRIPTORS){if(setPrototypeOf){if(forced)for(ARRAY in TypedArrayConstructorsList)if((TypedArrayConstructor=global[ARRAY])&&hasOwn(TypedArrayConstructor,KEY))try{delete TypedArrayConstructor[KEY]}catch(error){}if(TypedArray[KEY]&&!forced)return;try{return defineBuiltIn(TypedArray,KEY,forced?property:NATIVE_ARRAY_BUFFER_VIEWS&&TypedArray[KEY]||property)}catch(error){}}for(ARRAY in TypedArrayConstructorsList)!(TypedArrayConstructor=global[ARRAY])||TypedArrayConstructor[KEY]&&!forced||defineBuiltIn(TypedArrayConstructor,KEY,property)}},getTypedArrayConstructor:getTypedArrayConstructor,isView:function isView(it){if(!isObject(it))return!1;var klass=classof(it);return"DataView"===klass||hasOwn(TypedArrayConstructorsList,klass)||hasOwn(BigIntArrayConstructorsList,klass)},isTypedArray:isTypedArray,TypedArray:TypedArray,TypedArrayPrototype:TypedArrayPrototype}},847:function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__(3),global=__webpack_require__(12),call=__webpack_require__(30),DESCRIPTORS=__webpack_require__(24),TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS=__webpack_require__(858),ArrayBufferViewCore=__webpack_require__(846),ArrayBufferModule=__webpack_require__(450),anInstance=__webpack_require__(112),createPropertyDescriptor=__webpack_require__(121),createNonEnumerableProperty=__webpack_require__(101),isIntegralNumber=__webpack_require__(449),toLength=__webpack_require__(102),toIndex=__webpack_require__(452),toOffset=__webpack_require__(850),toUint8Clamped=__webpack_require__(860),toPropertyKey=__webpack_require__(177),hasOwn=__webpack_require__(32),classof=__webpack_require__(141),isObject=__webpack_require__(31),isSymbol=__webpack_require__(122),create=__webpack_require__(95),isPrototypeOf=__webpack_require__(100),setPrototypeOf=__webpack_require__(174),getOwnPropertyNames=__webpack_require__(124).f,typedArrayFrom=__webpack_require__(861),forEach=__webpack_require__(89).forEach,setSpecies=__webpack_require__(182),defineBuiltInAccessor=__webpack_require__(94),definePropertyModule=__webpack_require__(41),getOwnPropertyDescriptorModule=__webpack_require__(81),arrayFromConstructorAndList=__webpack_require__(852),InternalStateModule=__webpack_require__(57),inheritIfRequired=__webpack_require__(181),getInternalState=InternalStateModule.get,setInternalState=InternalStateModule.set,enforceInternalState=InternalStateModule.enforce,nativeDefineProperty=definePropertyModule.f,nativeGetOwnPropertyDescriptor=getOwnPropertyDescriptorModule.f,RangeError=global.RangeError,ArrayBuffer=ArrayBufferModule.ArrayBuffer,ArrayBufferPrototype=ArrayBuffer.prototype,DataView=ArrayBufferModule.DataView,NATIVE_ARRAY_BUFFER_VIEWS=ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS,TYPED_ARRAY_TAG=ArrayBufferViewCore.TYPED_ARRAY_TAG,TypedArray=ArrayBufferViewCore.TypedArray,TypedArrayPrototype=ArrayBufferViewCore.TypedArrayPrototype,isTypedArray=ArrayBufferViewCore.isTypedArray,addGetter=function(it,key){defineBuiltInAccessor(it,key,{configurable:!0,get:function(){return getInternalState(this)[key]}})},isArrayBuffer=function(it){var klass;return isPrototypeOf(ArrayBufferPrototype,it)||"ArrayBuffer"===(klass=classof(it))||"SharedArrayBuffer"===klass},isTypedArrayIndex=function(target,key){return isTypedArray(target)&&!isSymbol(key)&&key in target&&isIntegralNumber(+key)&&key>=0},wrappedGetOwnPropertyDescriptor=function getOwnPropertyDescriptor(target,key){return key=toPropertyKey(key),isTypedArrayIndex(target,key)?createPropertyDescriptor(2,target[key]):nativeGetOwnPropertyDescriptor(target,key)},wrappedDefineProperty=function defineProperty(target,key,descriptor){return key=toPropertyKey(key),!(isTypedArrayIndex(target,key)&&isObject(descriptor)&&hasOwn(descriptor,"value"))||hasOwn(descriptor,"get")||hasOwn(descriptor,"set")||descriptor.configurable||hasOwn(descriptor,"writable")&&!descriptor.writable||hasOwn(descriptor,"enumerable")&&!descriptor.enumerable?nativeDefineProperty(target,key,descriptor):(target[key]=descriptor.value,target)};DESCRIPTORS?(NATIVE_ARRAY_BUFFER_VIEWS||(getOwnPropertyDescriptorModule.f=wrappedGetOwnPropertyDescriptor,definePropertyModule.f=wrappedDefineProperty,addGetter(TypedArrayPrototype,"buffer"),addGetter(TypedArrayPrototype,"byteOffset"),addGetter(TypedArrayPrototype,"byteLength"),addGetter(TypedArrayPrototype,"length")),$({target:"Object",stat:!0,forced:!NATIVE_ARRAY_BUFFER_VIEWS},{getOwnPropertyDescriptor:wrappedGetOwnPropertyDescriptor,defineProperty:wrappedDefineProperty}),module.exports=function(TYPE,wrapper,CLAMPED){var BYTES=TYPE.match(/\d+/)[0]/8,CONSTRUCTOR_NAME=TYPE+(CLAMPED?"Clamped":"")+"Array",GETTER="get"+TYPE,SETTER="set"+TYPE,NativeTypedArrayConstructor=global[CONSTRUCTOR_NAME],TypedArrayConstructor=NativeTypedArrayConstructor,TypedArrayConstructorPrototype=TypedArrayConstructor&&TypedArrayConstructor.prototype,exported={},addElement=function(that,index){nativeDefineProperty(that,index,{get:function(){return function(that,index){var data=getInternalState(that);return data.view[GETTER](index*BYTES+data.byteOffset,!0)}(this,index)},set:function(value){return function(that,index,value){var data=getInternalState(that);data.view[SETTER](index*BYTES+data.byteOffset,CLAMPED?toUint8Clamped(value):value,!0)}(this,index,value)},enumerable:!0})};NATIVE_ARRAY_BUFFER_VIEWS?TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS&&(TypedArrayConstructor=wrapper((function(dummy,data,typedArrayOffset,$length){return anInstance(dummy,TypedArrayConstructorPrototype),inheritIfRequired(isObject(data)?isArrayBuffer(data)?void 0!==$length?new NativeTypedArrayConstructor(data,toOffset(typedArrayOffset,BYTES),$length):void 0!==typedArrayOffset?new NativeTypedArrayConstructor(data,toOffset(typedArrayOffset,BYTES)):new NativeTypedArrayConstructor(data):isTypedArray(data)?arrayFromConstructorAndList(TypedArrayConstructor,data):call(typedArrayFrom,TypedArrayConstructor,data):new NativeTypedArrayConstructor(toIndex(data)),dummy,TypedArrayConstructor)})),setPrototypeOf&&setPrototypeOf(TypedArrayConstructor,TypedArray),forEach(getOwnPropertyNames(NativeTypedArrayConstructor),(function(key){key in TypedArrayConstructor||createNonEnumerableProperty(TypedArrayConstructor,key,NativeTypedArrayConstructor[key])})),TypedArrayConstructor.prototype=TypedArrayConstructorPrototype):(TypedArrayConstructor=wrapper((function(that,data,offset,$length){anInstance(that,TypedArrayConstructorPrototype);var buffer,byteLength,length,index=0,byteOffset=0;if(isObject(data)){if(!isArrayBuffer(data))return isTypedArray(data)?arrayFromConstructorAndList(TypedArrayConstructor,data):call(typedArrayFrom,TypedArrayConstructor,data);buffer=data,byteOffset=toOffset(offset,BYTES);var $len=data.byteLength;if(void 0===$length){if($len%BYTES)throw new RangeError("Wrong length");if((byteLength=$len-byteOffset)<0)throw new RangeError("Wrong length")}else if((byteLength=toLength($length)*BYTES)+byteOffset>$len)throw new RangeError("Wrong length");length=byteLength/BYTES}else length=toIndex(data),buffer=new ArrayBuffer(byteLength=length*BYTES);for(setInternalState(that,{buffer:buffer,byteOffset:byteOffset,byteLength:byteLength,length:length,view:new DataView(buffer)});indexi;){if(code=+arguments[i++],toAbsoluteIndex(code,1114111)!==code)throw new $RangeError(code+" is not a valid code point");elements[i]=code<65536?fromCharCode(code):fromCharCode(55296+((code-=65536)>>10),code%1024+56320)}return join(elements,"")}})},850:function(module,exports,__webpack_require__){"use strict";var toPositiveInteger=__webpack_require__(859),$RangeError=RangeError;module.exports=function(it,BYTES){var offset=toPositiveInteger(it);if(offset%BYTES)throw new $RangeError("Wrong offset");return offset}},851:function(module,exports,__webpack_require__){"use strict";var toPrimitive=__webpack_require__(308),$TypeError=TypeError;module.exports=function(argument){var prim=toPrimitive(argument,"number");if("number"==typeof prim)throw new $TypeError("Can't convert number to bigint");return BigInt(prim)}},852:function(module,exports,__webpack_require__){"use strict";var lengthOfArrayLike=__webpack_require__(69);module.exports=function(Constructor,list,$length){for(var index=0,length=arguments.length>2?$length:lengthOfArrayLike(list),result=new Constructor(length);length>index;)result[index]=list[index++];return result}},853:function(module,exports,__webpack_require__){"use strict";var aCallable=__webpack_require__(82),toObject=__webpack_require__(51),IndexedObject=__webpack_require__(176),lengthOfArrayLike=__webpack_require__(69),$TypeError=TypeError,REDUCE_EMPTY="Reduce of empty array with no initial value",createMethod=function(IS_RIGHT){return function(that,callbackfn,argumentsLength,memo){var O=toObject(that),self=IndexedObject(O),length=lengthOfArrayLike(O);if(aCallable(callbackfn),0===length&&argumentsLength<2)throw new $TypeError(REDUCE_EMPTY);var index=IS_RIGHT?length-1:0,i=IS_RIGHT?-1:1;if(argumentsLength<2)for(;;){if(index in self){memo=self[index],index+=i;break}if(index+=i,IS_RIGHT?index<0:length<=index)throw new $TypeError(REDUCE_EMPTY)}for(;IS_RIGHT?index>=0:length>index;index+=i)index in self&&(memo=callbackfn(memo,self[index],index,O));return memo}};module.exports={left:createMethod(!1),right:createMethod(!0)}},854:function(module,exports,__webpack_require__){"use strict";var $trimStart=__webpack_require__(225).start,forcedStringTrimMethod=__webpack_require__(315);module.exports=forcedStringTrimMethod("trimStart")?function trimStart(){return $trimStart(this)}:"".trimStart},855:function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__(3),codeAt=__webpack_require__(223).codeAt;$({target:"String",proto:!0},{codePointAt:function codePointAt(pos){return codeAt(this,pos)}})},856:function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__(3),call=__webpack_require__(30);$({target:"URL",proto:!0,enumerable:!0},{toJSON:function toJSON(){return call(URL.prototype.toString,this)}})},857:function(module,exports,__webpack_require__){"use strict";__webpack_require__(847)("Uint8",(function(init){return function Uint8Array(data,byteOffset,length){return init(this,data,byteOffset,length)}}))},858:function(module,exports,__webpack_require__){"use strict";var global=__webpack_require__(12),fails=__webpack_require__(8),checkCorrectnessOfIteration=__webpack_require__(227),NATIVE_ARRAY_BUFFER_VIEWS=__webpack_require__(846).NATIVE_ARRAY_BUFFER_VIEWS,ArrayBuffer=global.ArrayBuffer,Int8Array=global.Int8Array;module.exports=!NATIVE_ARRAY_BUFFER_VIEWS||!fails((function(){Int8Array(1)}))||!fails((function(){new Int8Array(-1)}))||!checkCorrectnessOfIteration((function(iterable){new Int8Array,new Int8Array(null),new Int8Array(1.5),new Int8Array(iterable)}),!0)||fails((function(){return 1!==new Int8Array(new ArrayBuffer(2),1,void 0).length}))},859:function(module,exports,__webpack_require__){"use strict";var toIntegerOrInfinity=__webpack_require__(83),$RangeError=RangeError;module.exports=function(it){var result=toIntegerOrInfinity(it);if(result<0)throw new $RangeError("The argument can't be less than 0");return result}},860:function(module,exports,__webpack_require__){"use strict";var round=Math.round;module.exports=function(it){var value=round(it);return value<0?0:value>255?255:255&value}},861:function(module,exports,__webpack_require__){"use strict";var bind=__webpack_require__(96),call=__webpack_require__(30),aConstructor=__webpack_require__(309),toObject=__webpack_require__(51),lengthOfArrayLike=__webpack_require__(69),getIterator=__webpack_require__(224),getIteratorMethod=__webpack_require__(180),isArrayIteratorMethod=__webpack_require__(310),isBigIntArray=__webpack_require__(862),aTypedArrayConstructor=__webpack_require__(846).aTypedArrayConstructor,toBigInt=__webpack_require__(851);module.exports=function from(source){var i,length,result,thisIsBigIntArray,value,step,iterator,next,C=aConstructor(this),O=toObject(source),argumentsLength=arguments.length,mapfn=argumentsLength>1?arguments[1]:void 0,mapping=void 0!==mapfn,iteratorMethod=getIteratorMethod(O);if(iteratorMethod&&!isArrayIteratorMethod(iteratorMethod))for(next=(iterator=getIterator(O,iteratorMethod)).next,O=[];!(step=call(next,iterator)).done;)O.push(step.value);for(mapping&&argumentsLength>2&&(mapfn=bind(mapfn,arguments[2])),length=lengthOfArrayLike(O),result=new(aTypedArrayConstructor(C))(length),thisIsBigIntArray=isBigIntArray(result),i=0;length>i;i++)value=mapping?mapfn(O[i],i):O[i],result[i]=thisIsBigIntArray?toBigInt(value):+value;return result}},862:function(module,exports,__webpack_require__){"use strict";var classof=__webpack_require__(141);module.exports=function(it){var klass=classof(it);return"BigInt64Array"===klass||"BigUint64Array"===klass}},863:function(module,exports,__webpack_require__){"use strict";var uncurryThis=__webpack_require__(9),ArrayBufferViewCore=__webpack_require__(846),u$ArrayCopyWithin=uncurryThis(__webpack_require__(864)),aTypedArray=ArrayBufferViewCore.aTypedArray;(0,ArrayBufferViewCore.exportTypedArrayMethod)("copyWithin",(function copyWithin(target,start){return u$ArrayCopyWithin(aTypedArray(this),target,start,arguments.length>2?arguments[2]:void 0)}))},864:function(module,exports,__webpack_require__){"use strict";var toObject=__webpack_require__(51),toAbsoluteIndex=__webpack_require__(172),lengthOfArrayLike=__webpack_require__(69),deletePropertyOrThrow=__webpack_require__(314),min=Math.min;module.exports=[].copyWithin||function copyWithin(target,start){var O=toObject(this),len=lengthOfArrayLike(O),to=toAbsoluteIndex(target,len),from=toAbsoluteIndex(start,len),end=arguments.length>2?arguments[2]:void 0,count=min((void 0===end?len:toAbsoluteIndex(end,len))-from,len-to),inc=1;for(from0;)from in O?O[to]=O[from]:deletePropertyOrThrow(O,to),to+=inc,from+=inc;return O}},865:function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__(846),$every=__webpack_require__(89).every,aTypedArray=ArrayBufferViewCore.aTypedArray;(0,ArrayBufferViewCore.exportTypedArrayMethod)("every",(function every(callbackfn){return $every(aTypedArray(this),callbackfn,arguments.length>1?arguments[1]:void 0)}))},866:function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__(846),$fill=__webpack_require__(313),toBigInt=__webpack_require__(851),classof=__webpack_require__(141),call=__webpack_require__(30),uncurryThis=__webpack_require__(9),fails=__webpack_require__(8),aTypedArray=ArrayBufferViewCore.aTypedArray,exportTypedArrayMethod=ArrayBufferViewCore.exportTypedArrayMethod,slice=uncurryThis("".slice);exportTypedArrayMethod("fill",(function fill(value){var length=arguments.length;aTypedArray(this);var actualValue="Big"===slice(classof(this),0,3)?toBigInt(value):+value;return call($fill,this,actualValue,length>1?arguments[1]:void 0,length>2?arguments[2]:void 0)}),fails((function(){var count=0;return new Int8Array(2).fill({valueOf:function(){return count++}}),1!==count})))},867:function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__(846),$filter=__webpack_require__(89).filter,fromSpeciesAndList=__webpack_require__(868),aTypedArray=ArrayBufferViewCore.aTypedArray;(0,ArrayBufferViewCore.exportTypedArrayMethod)("filter",(function filter(callbackfn){var list=$filter(aTypedArray(this),callbackfn,arguments.length>1?arguments[1]:void 0);return fromSpeciesAndList(this,list)}))},868:function(module,exports,__webpack_require__){"use strict";var arrayFromConstructorAndList=__webpack_require__(852),typedArraySpeciesConstructor=__webpack_require__(848);module.exports=function(instance,list){return arrayFromConstructorAndList(typedArraySpeciesConstructor(instance),list)}},869:function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__(846),$find=__webpack_require__(89).find,aTypedArray=ArrayBufferViewCore.aTypedArray;(0,ArrayBufferViewCore.exportTypedArrayMethod)("find",(function find(predicate){return $find(aTypedArray(this),predicate,arguments.length>1?arguments[1]:void 0)}))},870:function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__(846),$findIndex=__webpack_require__(89).findIndex,aTypedArray=ArrayBufferViewCore.aTypedArray;(0,ArrayBufferViewCore.exportTypedArrayMethod)("findIndex",(function findIndex(predicate){return $findIndex(aTypedArray(this),predicate,arguments.length>1?arguments[1]:void 0)}))},871:function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__(846),$forEach=__webpack_require__(89).forEach,aTypedArray=ArrayBufferViewCore.aTypedArray;(0,ArrayBufferViewCore.exportTypedArrayMethod)("forEach",(function forEach(callbackfn){$forEach(aTypedArray(this),callbackfn,arguments.length>1?arguments[1]:void 0)}))},872:function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__(846),$includes=__webpack_require__(306).includes,aTypedArray=ArrayBufferViewCore.aTypedArray;(0,ArrayBufferViewCore.exportTypedArrayMethod)("includes",(function includes(searchElement){return $includes(aTypedArray(this),searchElement,arguments.length>1?arguments[1]:void 0)}))},873:function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__(846),$indexOf=__webpack_require__(306).indexOf,aTypedArray=ArrayBufferViewCore.aTypedArray;(0,ArrayBufferViewCore.exportTypedArrayMethod)("indexOf",(function indexOf(searchElement){return $indexOf(aTypedArray(this),searchElement,arguments.length>1?arguments[1]:void 0)}))},874:function(module,exports,__webpack_require__){"use strict";var global=__webpack_require__(12),fails=__webpack_require__(8),uncurryThis=__webpack_require__(9),ArrayBufferViewCore=__webpack_require__(846),ArrayIterators=__webpack_require__(15),ITERATOR=__webpack_require__(20)("iterator"),Uint8Array=global.Uint8Array,arrayValues=uncurryThis(ArrayIterators.values),arrayKeys=uncurryThis(ArrayIterators.keys),arrayEntries=uncurryThis(ArrayIterators.entries),aTypedArray=ArrayBufferViewCore.aTypedArray,exportTypedArrayMethod=ArrayBufferViewCore.exportTypedArrayMethod,TypedArrayPrototype=Uint8Array&&Uint8Array.prototype,GENERIC=!fails((function(){TypedArrayPrototype[ITERATOR].call([1])})),ITERATOR_IS_VALUES=!!TypedArrayPrototype&&TypedArrayPrototype.values&&TypedArrayPrototype[ITERATOR]===TypedArrayPrototype.values&&"values"===TypedArrayPrototype.values.name,typedArrayValues=function values(){return arrayValues(aTypedArray(this))};exportTypedArrayMethod("entries",(function entries(){return arrayEntries(aTypedArray(this))}),GENERIC),exportTypedArrayMethod("keys",(function keys(){return arrayKeys(aTypedArray(this))}),GENERIC),exportTypedArrayMethod("values",typedArrayValues,GENERIC||!ITERATOR_IS_VALUES,{name:"values"}),exportTypedArrayMethod(ITERATOR,typedArrayValues,GENERIC||!ITERATOR_IS_VALUES,{name:"values"})},875:function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__(846),uncurryThis=__webpack_require__(9),aTypedArray=ArrayBufferViewCore.aTypedArray,exportTypedArrayMethod=ArrayBufferViewCore.exportTypedArrayMethod,$join=uncurryThis([].join);exportTypedArrayMethod("join",(function join(separator){return $join(aTypedArray(this),separator)}))},876:function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__(846),apply=__webpack_require__(118),$lastIndexOf=__webpack_require__(877),aTypedArray=ArrayBufferViewCore.aTypedArray;(0,ArrayBufferViewCore.exportTypedArrayMethod)("lastIndexOf",(function lastIndexOf(searchElement){var length=arguments.length;return apply($lastIndexOf,aTypedArray(this),length>1?[searchElement,arguments[1]]:[searchElement])}))},877:function(module,exports,__webpack_require__){"use strict";var apply=__webpack_require__(118),toIndexedObject=__webpack_require__(63),toIntegerOrInfinity=__webpack_require__(83),lengthOfArrayLike=__webpack_require__(69),arrayMethodIsStrict=__webpack_require__(146),min=Math.min,$lastIndexOf=[].lastIndexOf,NEGATIVE_ZERO=!!$lastIndexOf&&1/[1].lastIndexOf(1,-0)<0,STRICT_METHOD=arrayMethodIsStrict("lastIndexOf"),FORCED=NEGATIVE_ZERO||!STRICT_METHOD;module.exports=FORCED?function lastIndexOf(searchElement){if(NEGATIVE_ZERO)return apply($lastIndexOf,this,arguments)||0;var O=toIndexedObject(this),length=lengthOfArrayLike(O);if(0===length)return-1;var index=length-1;for(arguments.length>1&&(index=min(index,toIntegerOrInfinity(arguments[1]))),index<0&&(index=length+index);index>=0;index--)if(index in O&&O[index]===searchElement)return index||0;return-1}:$lastIndexOf},878:function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__(846),$map=__webpack_require__(89).map,typedArraySpeciesConstructor=__webpack_require__(848),aTypedArray=ArrayBufferViewCore.aTypedArray;(0,ArrayBufferViewCore.exportTypedArrayMethod)("map",(function map(mapfn){return $map(aTypedArray(this),mapfn,arguments.length>1?arguments[1]:void 0,(function(O,length){return new(typedArraySpeciesConstructor(O))(length)}))}))},879:function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__(846),$reduce=__webpack_require__(853).left,aTypedArray=ArrayBufferViewCore.aTypedArray;(0,ArrayBufferViewCore.exportTypedArrayMethod)("reduce",(function reduce(callbackfn){var length=arguments.length;return $reduce(aTypedArray(this),callbackfn,length,length>1?arguments[1]:void 0)}))},880:function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__(846),$reduceRight=__webpack_require__(853).right,aTypedArray=ArrayBufferViewCore.aTypedArray;(0,ArrayBufferViewCore.exportTypedArrayMethod)("reduceRight",(function reduceRight(callbackfn){var length=arguments.length;return $reduceRight(aTypedArray(this),callbackfn,length,length>1?arguments[1]:void 0)}))},881:function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__(846),aTypedArray=ArrayBufferViewCore.aTypedArray,exportTypedArrayMethod=ArrayBufferViewCore.exportTypedArrayMethod,floor=Math.floor;exportTypedArrayMethod("reverse",(function reverse(){for(var value,length=aTypedArray(this).length,middle=floor(length/2),index=0;index1?arguments[1]:void 0,1),src=toIndexedObject(arrayLike);if(WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS)return call($set,this,src,offset);var length=this.length,len=lengthOfArrayLike(src),index=0;if(len+offset>length)throw new RangeError("Wrong length");for(;indexindex;)result[index]=list[index++];return result}),fails((function(){new Int8Array(1).slice()})))},884:function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__(846),$some=__webpack_require__(89).some,aTypedArray=ArrayBufferViewCore.aTypedArray;(0,ArrayBufferViewCore.exportTypedArrayMethod)("some",(function some(callbackfn){return $some(aTypedArray(this),callbackfn,arguments.length>1?arguments[1]:void 0)}))},885:function(module,exports,__webpack_require__){"use strict";var global=__webpack_require__(12),uncurryThis=__webpack_require__(179),fails=__webpack_require__(8),aCallable=__webpack_require__(82),internalSort=__webpack_require__(312),ArrayBufferViewCore=__webpack_require__(846),FF=__webpack_require__(453),IE_OR_EDGE=__webpack_require__(454),V8=__webpack_require__(145),WEBKIT=__webpack_require__(455),aTypedArray=ArrayBufferViewCore.aTypedArray,exportTypedArrayMethod=ArrayBufferViewCore.exportTypedArrayMethod,Uint16Array=global.Uint16Array,nativeSort=Uint16Array&&uncurryThis(Uint16Array.prototype.sort),ACCEPT_INCORRECT_ARGUMENTS=!(!nativeSort||fails((function(){nativeSort(new Uint16Array(2),null)}))&&fails((function(){nativeSort(new Uint16Array(2),{})}))),STABLE_SORT=!!nativeSort&&!fails((function(){if(V8)return V8<74;if(FF)return FF<67;if(IE_OR_EDGE)return!0;if(WEBKIT)return WEBKIT<602;var index,mod,array=new Uint16Array(516),expected=Array(516);for(index=0;index<516;index++)mod=index%4,array[index]=515-index,expected[index]=index-2*mod+3;for(nativeSort(array,(function(a,b){return(a/4|0)-(b/4|0)})),index=0;index<516;index++)if(array[index]!==expected[index])return!0}));exportTypedArrayMethod("sort",(function sort(comparefn){return void 0!==comparefn&&aCallable(comparefn),STABLE_SORT?nativeSort(this,comparefn):internalSort(aTypedArray(this),function(comparefn){return function(x,y){return void 0!==comparefn?+comparefn(x,y)||0:y!=y?-1:x!=x?1:0===x&&0===y?1/x>0&&1/y<0?1:-1:x>y}}(comparefn))}),!STABLE_SORT||ACCEPT_INCORRECT_ARGUMENTS)},886:function(module,exports,__webpack_require__){"use strict";var ArrayBufferViewCore=__webpack_require__(846),toLength=__webpack_require__(102),toAbsoluteIndex=__webpack_require__(172),typedArraySpeciesConstructor=__webpack_require__(848),aTypedArray=ArrayBufferViewCore.aTypedArray;(0,ArrayBufferViewCore.exportTypedArrayMethod)("subarray",(function subarray(begin,end){var O=aTypedArray(this),length=O.length,beginIndex=toAbsoluteIndex(begin,length);return new(typedArraySpeciesConstructor(O))(O.buffer,O.byteOffset+beginIndex*O.BYTES_PER_ELEMENT,toLength((void 0===end?length:toAbsoluteIndex(end,length))-beginIndex))}))},887:function(module,exports,__webpack_require__){"use strict";var global=__webpack_require__(12),apply=__webpack_require__(118),ArrayBufferViewCore=__webpack_require__(846),fails=__webpack_require__(8),arraySlice=__webpack_require__(84),Int8Array=global.Int8Array,aTypedArray=ArrayBufferViewCore.aTypedArray,exportTypedArrayMethod=ArrayBufferViewCore.exportTypedArrayMethod,$toLocaleString=[].toLocaleString,TO_LOCALE_STRING_BUG=!!Int8Array&&fails((function(){$toLocaleString.call(new Int8Array(1))}));exportTypedArrayMethod("toLocaleString",(function toLocaleString(){return apply($toLocaleString,TO_LOCALE_STRING_BUG?arraySlice(aTypedArray(this)):aTypedArray(this),arraySlice(arguments))}),fails((function(){return[1,2].toLocaleString()!==new Int8Array([1,2]).toLocaleString()}))||!fails((function(){Int8Array.prototype.toLocaleString.call([1,2])})))},888:function(module,exports,__webpack_require__){"use strict";var exportTypedArrayMethod=__webpack_require__(846).exportTypedArrayMethod,fails=__webpack_require__(8),global=__webpack_require__(12),uncurryThis=__webpack_require__(9),Uint8Array=global.Uint8Array,Uint8ArrayPrototype=Uint8Array&&Uint8Array.prototype||{},arrayToString=[].toString,join=uncurryThis([].join);fails((function(){arrayToString.call({})}))&&(arrayToString=function toString(){return join(this)});var IS_NOT_ARRAY_METHOD=Uint8ArrayPrototype.toString!==arrayToString;exportTypedArrayMethod("toString",arrayToString,IS_NOT_ARRAY_METHOD)},889:function(module,exports,__webpack_require__){"use strict";__webpack_require__(847)("Uint16",(function(init){return function Uint16Array(data,byteOffset,length){return init(this,data,byteOffset,length)}}))},890:function(module,exports,__webpack_require__){"use strict";__webpack_require__(847)("Float32",(function(init){return function Float32Array(data,byteOffset,length){return init(this,data,byteOffset,length)}}))},891:function(module,exports,__webpack_require__){"use strict";__webpack_require__(847)("Float64",(function(init){return function Float64Array(data,byteOffset,length){return init(this,data,byteOffset,length)}}))},892:function(module,exports,__webpack_require__){"use strict";__webpack_require__(893);var $=__webpack_require__(3),trimStart=__webpack_require__(854);$({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==trimStart},{trimStart:trimStart})},893:function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__(3),trimStart=__webpack_require__(854);$({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==trimStart},{trimLeft:trimStart})},894:function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__(3),createHTML=__webpack_require__(230);$({target:"String",proto:!0,forced:__webpack_require__(231)("anchor")},{anchor:function anchor(name){return createHTML(this,"a","name",name)}})},895:function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__(3),call=__webpack_require__(30),isObject=__webpack_require__(31),anObject=__webpack_require__(34),isDataDescriptor=__webpack_require__(896),getOwnPropertyDescriptorModule=__webpack_require__(81),getPrototypeOf=__webpack_require__(144);$({target:"Reflect",stat:!0},{get:function get(target,propertyKey){var descriptor,prototype,receiver=arguments.length<3?target:arguments[2];return anObject(target)===receiver?target[propertyKey]:(descriptor=getOwnPropertyDescriptorModule.f(target,propertyKey))?isDataDescriptor(descriptor)?descriptor.value:void 0===descriptor.get?void 0:call(descriptor.get,receiver):isObject(prototype=getPrototypeOf(target))?get(prototype,propertyKey,receiver):void 0}})},896:function(module,exports,__webpack_require__){"use strict";var hasOwn=__webpack_require__(32);module.exports=function(descriptor){return void 0!==descriptor&&(hasOwn(descriptor,"value")||hasOwn(descriptor,"writable"))}}}]); \ No newline at end of file diff --git a/5.ce07b5fa794f89a2333c.manager.bundle.js.LICENSE.txt b/5.ce07b5fa794f89a2333c.manager.bundle.js.LICENSE.txt new file mode 100644 index 000000000..1ade02a1c --- /dev/null +++ b/5.ce07b5fa794f89a2333c.manager.bundle.js.LICENSE.txt @@ -0,0 +1,31 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ diff --git a/6.ccbeb76e6cc4bca2aa13.manager.bundle.js b/6.ccbeb76e6cc4bca2aa13.manager.bundle.js new file mode 100644 index 000000000..59c91427b --- /dev/null +++ b/6.ccbeb76e6cc4bca2aa13.manager.bundle.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{845:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"ColorControl",(function(){return ColorControl})),__webpack_require__.d(__webpack_exports__,"default",(function(){return ColorControl}));__webpack_require__(37),__webpack_require__(45),__webpack_require__(79),__webpack_require__(70),__webpack_require__(11),__webpack_require__(143),__webpack_require__(19),__webpack_require__(90),__webpack_require__(99),__webpack_require__(15),__webpack_require__(173),__webpack_require__(18),__webpack_require__(17),__webpack_require__(50),__webpack_require__(42),__webpack_require__(91),__webpack_require__(38),__webpack_require__(29),__webpack_require__(26),__webpack_require__(111),__webpack_require__(221),__webpack_require__(27),__webpack_require__(16),__webpack_require__(21),__webpack_require__(22),__webpack_require__(33);var _ColorPicker,_fallbackColor,_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__(2),react__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_27___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_27__),_storybook_theming__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__(1);__webpack_require__(28),__webpack_require__(48);function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(o[t]=e[t]);return o}function i(e){var t=Object(react__WEBPACK_IMPORTED_MODULE_27__.useRef)(e),n=Object(react__WEBPACK_IMPORTED_MODULE_27__.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var s=function s(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=1),e>t?t:e0:_e.buttons>0)&&m.current?g(d(m.current,_e,b.current)):t(!1)},r=function r(){return t(!1)};function t(t){var n=_.current,o=v(m.current),a=t?o.addEventListener:o.removeEventListener;a(n?"touchmove":"mousemove",e),a(n?"touchend":"mouseup",r)}return[function(e){var r=e.nativeEvent,n=m.current;if(n&&(h(r),!function(e,r){return r&&!f(e)}(r,_.current)&&n)){if(f(r)){_.current=!0;var o=r.changedTouches||[];o.length&&(b.current=o[0].identifier)}n.focus(),g(d(n,r,b.current)),t(!0)}},function(e){var r=e.which||e.keyCode;r<37||r>40||(e.preventDefault(),p({left:39===r?.05:37===r?-.05:0,top:40===r?.05:38===r?-.05:0}))},t]}),[p,g]),C=x[0],E=x[1],H=x[2];return Object(react__WEBPACK_IMPORTED_MODULE_27__.useEffect)((function(){return H}),[H]),react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement("div",u({},s,{onTouchStart:C,onMouseDown:C,className:"react-colorful__interactive",ref:m,onKeyDown:E,tabIndex:0,role:"slider"}))})),g=function g(e){return e.filter(Boolean).join(" ")},p=function p(r){var t=r.color,n=r.left,o=r.top,a=void 0===o?.5:o,l=g(["react-colorful__pointer",r.className]);return react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement("div",{className:l,style:{top:100*a+"%",left:100*n+"%"}},react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},b=function b(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=Math.pow(10,r)),Math.round(t*e)/t},_={grad:.9,turn:360,rad:360/(2*Math.PI)},x=function x(e){return"#"===e[0]&&(e=e.substr(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:1}:{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:1}},C=function C(e,r){return void 0===r&&(r="deg"),Number(e)*(_[r]||1)},M=function M(e){var r=e.s,t=e.l;return{h:e.h,s:(r*=(t<50?t:100-t)/100)>0?2*r/(t+r)*100:0,v:t+r,a:e.a}},N=function N(e){var r=e.s,t=e.v,n=e.a,o=(200-r)*t/100;return{h:b(e.h),s:b(o>0&&o<200?r*t/100/(o<=100?o:200-o)*100:0),l:b(o/2),a:b(n,2)}},w=function w(e){var r=N(e);return"hsl("+r.h+", "+r.s+"%, "+r.l+"%)"},y=function y(e){var r=N(e);return"hsla("+r.h+", "+r.s+"%, "+r.l+"%, "+r.a+")"},q=function q(e){var r=e.h,t=e.s,n=e.v,o=e.a;r=r/360*6,t/=100,n/=100;var a=Math.floor(r),l=n*(1-t),u=n*(1-(r-a)*t),c=n*(1-(1-r+a)*t),i=a%6;return{r:b(255*[n,u,l,l,c,n][i]),g:b(255*[c,n,n,u,l,l][i]),b:b(255*[l,l,c,n,n,u][i]),a:b(o,2)}},z=function z(e){var r=e.toString(16);return r.length<2?"0"+r:r},B=function B(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=Math.max(r,t,n),l=a-Math.min(r,t,n),u=l?a===r?(t-n)/l:a===t?2+(n-r)/l:4+(r-t)/l:0;return{h:b(60*(u<0?u+6:u)),s:b(a?l/a*100:0),v:b(a/255*100),a:o}},K=react__WEBPACK_IMPORTED_MODULE_27___default.a.memo((function(r){var t=r.hue,n=r.onChange,o=g(["react-colorful__hue",r.className]);return react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement("div",{className:o},react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(m,{onMove:function onMove(e){n({h:360*e.left})},onKey:function onKey(e){n({h:s(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuetext":b(t)},react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(p,{className:"react-colorful__hue-pointer",left:t/360,color:w({h:t,s:100,v:100,a:1})})))})),L=react__WEBPACK_IMPORTED_MODULE_27___default.a.memo((function(r){var t=r.hsva,n=r.onChange,o={backgroundColor:w({h:t.h,s:100,v:100,a:1})};return react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement("div",{className:"react-colorful__saturation",style:o},react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(m,{onMove:function onMove(e){n({s:100*e.left,v:100-100*e.top})},onKey:function onKey(e){n({s:s(t.s+100*e.left,0,100),v:s(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+b(t.s)+"%, Brightness "+b(t.v)+"%"},react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(p,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:w(t)})))})),A=function A(e,r){if(e===r)return!0;for(var t in e)if(e[t]!==r[t])return!1;return!0},S=function S(e,r){return e.replace(/\s/g,"")===r.replace(/\s/g,"")};function T(e,t,l){var u=i(l),c=Object(react__WEBPACK_IMPORTED_MODULE_27__.useState)((function(){return e.toHsva(t)})),s=c[0],f=c[1],v=Object(react__WEBPACK_IMPORTED_MODULE_27__.useRef)({color:t,hsva:s});Object(react__WEBPACK_IMPORTED_MODULE_27__.useEffect)((function(){if(!e.equal(t,v.current.color)){var r=e.toHsva(t);v.current={hsva:r,color:t},f(r)}}),[t,e]),Object(react__WEBPACK_IMPORTED_MODULE_27__.useEffect)((function(){var r;A(s,v.current.hsva)||e.equal(r=e.fromHsva(s),v.current.color)||(v.current={hsva:s,color:r},u(r))}),[s,e,u]);var d=Object(react__WEBPACK_IMPORTED_MODULE_27__.useCallback)((function(e){f((function(r){return Object.assign({},r,e)}))}),[]);return[s,d]}for(var P="undefined"!=typeof window?react__WEBPACK_IMPORTED_MODULE_27__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_27__.useEffect,R=new Map,V=function V(e){P((function(){var r=e.current?e.current.ownerDocument:document;if(void 0!==r&&!R.has(r)){var t=r.createElement("style");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',R.set(r,t);var n=function X(){return __webpack_require__.nc}();n&&t.setAttribute("nonce",n),r.head.appendChild(t)}}),[])},$=function $(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c(t,["className","colorModel","color","onChange"]),f=Object(react__WEBPACK_IMPORTED_MODULE_27__.useRef)(null);V(f);var v=T(o,l,i),d=v[0],h=v[1],m=g(["react-colorful",n]);return react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement("div",u({},s,{ref:f,className:m}),react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(L,{hsva:d,onChange:h}),react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(K,{hue:d.h,onChange:h,className:"react-colorful__last-control"}))},G={defaultColor:"000",toHsva:function toHsva(e){return B(x(e))},fromHsva:function fromHsva(e){return t=(r=q(e)).g,n=r.b,"#"+z(r.r)+z(t)+z(n);var r,t,n},equal:function equal(e,r){return e.toLowerCase()===r.toLowerCase()||A(x(e),x(r))}},Q=function Q(r){var t=r.className,n=r.hsva,o=r.onChange,a={backgroundImage:"linear-gradient(90deg, "+y(Object.assign({},n,{a:0}))+", "+y(Object.assign({},n,{a:1}))+")"},l=g(["react-colorful__alpha",t]);return react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement("div",{className:l},react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement("div",{className:"react-colorful__alpha-gradient",style:a}),react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(m,{onMove:function onMove(e){o({a:e.left})},onKey:function onKey(e){o({a:s(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":b(100*n.a)+"%"},react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(p,{className:"react-colorful__alpha-pointer",left:n.a,color:y(n)})))},U=function U(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c(t,["className","colorModel","color","onChange"]),f=Object(react__WEBPACK_IMPORTED_MODULE_27__.useRef)(null);V(f);var v=T(o,l,i),d=v[0],h=v[1],m=g(["react-colorful",n]);return react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement("div",u({},s,{ref:f,className:m}),react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(L,{hsva:d,onChange:h}),react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(K,{hue:d.h,onChange:h}),react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(Q,{hsva:d,onChange:h,className:"react-colorful__last-control"}))},ee={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:function E(e){var r=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?M({h:C(r[1],r[2]),s:Number(r[3]),l:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},fromHsva:y,equal:S},ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:function I(e){var r=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?B({r:Number(r[1])/(r[2]?100/255:1),g:Number(r[3])/(r[4]?100/255:1),b:Number(r[5])/(r[6]?100/255:1),a:void 0===r[7]?1:Number(r[7])/(r[8]?100:1)}):{h:0,s:0,v:0,a:1}},fromHsva:function fromHsva(e){var r=q(e);return"rgba("+r.r+", "+r.g+", "+r.b+", "+r.a+")"},equal:S},cssKeywords={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]},reverseKeywords={},_i=0,_Object$keys=Object.keys(cssKeywords);_i<_Object$keys.length;_i++){var key=_Object$keys[_i];reverseKeywords[cssKeywords[key]]=key}for(var convert$1={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"]}},conversions$2=convert$1,_i2=0,_Object$keys2=Object.keys(convert$1);_i2<_Object$keys2.length;_i2++){var model=_Object$keys2[_i2];if(!("channels"in convert$1[model]))throw new Error("missing channels property: "+model);if(!("labels"in convert$1[model]))throw new Error("missing channel labels property: "+model);if(convert$1[model].labels.length!==convert$1[model].channels)throw new Error("channel and label counts mismatch: "+model);var _convert$1$model=convert$1[model],channels=_convert$1$model.channels,labels=_convert$1$model.labels;delete convert$1[model].channels,delete convert$1[model].labels,Object.defineProperty(convert$1[model],"channels",{value:channels}),Object.defineProperty(convert$1[model],"labels",{value:labels})}function comparativeDistance(x,y){return Math.pow(x[0]-y[0],2)+Math.pow(x[1]-y[1],2)+Math.pow(x[2]-y[2],2)}convert$1.rgb.hsl=function(rgb){var h,r=rgb[0]/255,g=rgb[1]/255,b=rgb[2]/255,min=Math.min(r,g,b),max=Math.max(r,g,b),delta=max-min;max===min?h=0:r===max?h=(g-b)/delta:g===max?h=2+(b-r)/delta:b===max&&(h=4+(r-g)/delta),(h=Math.min(60*h,360))<0&&(h+=360);var l=(min+max)/2;return[h,100*(max===min?0:l<=.5?delta/(max+min):delta/(2-max-min)),100*l]},convert$1.rgb.hsv=function(rgb){var rdif,gdif,bdif,h,s,r=rgb[0]/255,g=rgb[1]/255,b=rgb[2]/255,v=Math.max(r,g,b),diff=v-Math.min(r,g,b),diffc=function diffc(c){return(v-c)/6/diff+.5};return 0===diff?(h=0,s=0):(s=diff/v,rdif=diffc(r),gdif=diffc(g),bdif=diffc(b),r===v?h=bdif-gdif:g===v?h=1/3+rdif-bdif:b===v&&(h=2/3+gdif-rdif),h<0?h+=1:h>1&&(h-=1)),[360*h,100*s,100*v]},convert$1.rgb.hwb=function(rgb){var r=rgb[0],g=rgb[1],b=rgb[2];return[convert$1.rgb.hsl(rgb)[0],100*(1/255*Math.min(r,Math.min(g,b))),100*(b=1-1/255*Math.max(r,Math.max(g,b)))]},convert$1.rgb.cmyk=function(rgb){var r=rgb[0]/255,g=rgb[1]/255,b=rgb[2]/255,k=Math.min(1-r,1-g,1-b);return[100*((1-r-k)/(1-k)||0),100*((1-g-k)/(1-k)||0),100*((1-b-k)/(1-k)||0),100*k]},convert$1.rgb.keyword=function(rgb){var reversed=reverseKeywords[rgb];if(reversed)return reversed;for(var currentClosestKeyword,currentClosestDistance=1/0,_i3=0,_Object$keys3=Object.keys(cssKeywords);_i3<_Object$keys3.length;_i3++){var keyword=_Object$keys3[_i3],distance=comparativeDistance(rgb,cssKeywords[keyword]);distance.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.3576*(g=g>.04045?Math.pow((g+.055)/1.055,2.4):g/12.92)+.1805*(b=b>.04045?Math.pow((b+.055)/1.055,2.4):b/12.92)),100*(.2126*r+.7152*g+.0722*b),100*(.0193*r+.1192*g+.9505*b)]},convert$1.rgb.lab=function(rgb){var xyz=convert$1.rgb.xyz(rgb),x=xyz[0],y=xyz[1],z=xyz[2];return y/=100,z/=108.883,x=(x/=95.047)>.008856?Math.pow(x,1/3):7.787*x+16/116,[116*(y=y>.008856?Math.pow(y,1/3):7.787*y+16/116)-16,500*(x-y),200*(y-(z=z>.008856?Math.pow(z,1/3):7.787*z+16/116))]},convert$1.hsl.rgb=function(hsl){var t2,t3,val,h=hsl[0]/360,s=hsl[1]/100,l=hsl[2]/100;if(0===s)return[val=255*l,val,val];for(var t1=2*l-(t2=l<.5?l*(1+s):l+s-l*s),rgb=[0,0,0],_i4=0;_i4<3;_i4++)(t3=h+1/3*-(_i4-1))<0&&t3++,t3>1&&t3--,val=6*t3<1?t1+6*(t2-t1)*t3:2*t3<1?t2:3*t3<2?t1+(t2-t1)*(2/3-t3)*6:t1,rgb[_i4]=255*val;return rgb},convert$1.hsl.hsv=function(hsl){var h=hsl[0],s=hsl[1]/100,l=hsl[2]/100,smin=s,lmin=Math.max(l,.01);return s*=(l*=2)<=1?l:2-l,smin*=lmin<=1?lmin:2-lmin,[h,100*(0===l?2*smin/(lmin+smin):2*s/(l+s)),100*((l+s)/2)]},convert$1.hsv.rgb=function(hsv){var h=hsv[0]/60,s=hsv[1]/100,v=hsv[2]/100,hi=Math.floor(h)%6,f=h-Math.floor(h),p=255*v*(1-s),q=255*v*(1-s*f),t=255*v*(1-s*(1-f));switch(v*=255,hi){case 0:return[v,t,p];case 1:return[q,v,p];case 2:return[p,v,t];case 3:return[p,q,v];case 4:return[t,p,v];case 5:return[v,p,q]}},convert$1.hsv.hsl=function(hsv){var sl,l,h=hsv[0],s=hsv[1]/100,v=hsv[2]/100,vmin=Math.max(v,.01);l=(2-s)*v;var lmin=(2-s)*vmin;return sl=s*vmin,[h,100*(sl=(sl/=lmin<=1?lmin:2-lmin)||0),100*(l/=2)]},convert$1.hwb.rgb=function(hwb){var f,h=hwb[0]/360,wh=hwb[1]/100,bl=hwb[2]/100,ratio=wh+bl;ratio>1&&(wh/=ratio,bl/=ratio);var i=Math.floor(6*h),v=1-bl;f=6*h-i,1&i&&(f=1-f);var r,g,b,n=wh+f*(v-wh);switch(i){default:case 6:case 0:r=v,g=n,b=wh;break;case 1:r=n,g=v,b=wh;break;case 2:r=wh,g=v,b=n;break;case 3:r=wh,g=n,b=v;break;case 4:r=n,g=wh,b=v;break;case 5:r=v,g=wh,b=n}return[255*r,255*g,255*b]},convert$1.cmyk.rgb=function(cmyk){var c=cmyk[0]/100,m=cmyk[1]/100,y=cmyk[2]/100,k=cmyk[3]/100;return[255*(1-Math.min(1,c*(1-k)+k)),255*(1-Math.min(1,m*(1-k)+k)),255*(1-Math.min(1,y*(1-k)+k))]},convert$1.xyz.rgb=function(xyz){var r,g,b,x=xyz[0]/100,y=xyz[1]/100,z=xyz[2]/100;return g=-.9689*x+1.8758*y+.0415*z,b=.0557*x+-.204*y+1.057*z,r=(r=3.2406*x+-1.5372*y+-.4986*z)>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,g=g>.0031308?1.055*Math.pow(g,1/2.4)-.055:12.92*g,b=b>.0031308?1.055*Math.pow(b,1/2.4)-.055:12.92*b,[255*(r=Math.min(Math.max(0,r),1)),255*(g=Math.min(Math.max(0,g),1)),255*(b=Math.min(Math.max(0,b),1))]},convert$1.xyz.lab=function(xyz){var x=xyz[0],y=xyz[1],z=xyz[2];return y/=100,z/=108.883,x=(x/=95.047)>.008856?Math.pow(x,1/3):7.787*x+16/116,[116*(y=y>.008856?Math.pow(y,1/3):7.787*y+16/116)-16,500*(x-y),200*(y-(z=z>.008856?Math.pow(z,1/3):7.787*z+16/116))]},convert$1.lab.xyz=function(lab){var x,y,z,l=lab[0];x=lab[1]/500+(y=(l+16)/116),z=y-lab[2]/200;var y2=Math.pow(y,3),x2=Math.pow(x,3),z2=Math.pow(z,3);return y=y2>.008856?y2:(y-16/116)/7.787,x=x2>.008856?x2:(x-16/116)/7.787,z=z2>.008856?z2:(z-16/116)/7.787,[x*=95.047,y*=100,z*=108.883]},convert$1.lab.lch=function(lab){var h,l=lab[0],a=lab[1],b=lab[2];return(h=360*Math.atan2(b,a)/2/Math.PI)<0&&(h+=360),[l,Math.sqrt(a*a+b*b),h]},convert$1.lch.lab=function(lch){var l=lch[0],c=lch[1],hr=lch[2]/360*2*Math.PI;return[l,c*Math.cos(hr),c*Math.sin(hr)]},convert$1.rgb.ansi16=function(args){var saturation=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,_args=_slicedToArray(args,3),r=_args[0],g=_args[1],b=_args[2],value=null===saturation?convert$1.rgb.hsv(args)[2]:saturation;if(0===(value=Math.round(value/50)))return 30;var ansi=30+(Math.round(b/255)<<2|Math.round(g/255)<<1|Math.round(r/255));return 2===value&&(ansi+=60),ansi},convert$1.hsv.ansi16=function(args){return convert$1.rgb.ansi16(convert$1.hsv.rgb(args),args[2])},convert$1.rgb.ansi256=function(args){var r=args[0],g=args[1],b=args[2];return r===g&&g===b?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(g/255*5)+Math.round(b/255*5)},convert$1.ansi16.rgb=function(args){var color=args%10;if(0===color||7===color)return args>50&&(color+=3.5),[color=color/10.5*255,color,color];var mult=.5*(1+~~(args>50));return[(1&color)*mult*255,(color>>1&1)*mult*255,(color>>2&1)*mult*255]},convert$1.ansi256.rgb=function(args){if(args>=232){var _c=10*(args-232)+8;return[_c,_c,_c]}var rem;return args-=16,[Math.floor(args/36)/5*255,Math.floor((rem=args%36)/6)/5*255,rem%6/5*255]},convert$1.rgb.hex=function(args){var string=(((255&Math.round(args[0]))<<16)+((255&Math.round(args[1]))<<8)+(255&Math.round(args[2]))).toString(16).toUpperCase();return"000000".substring(string.length)+string},convert$1.hex.rgb=function(args){var match=args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!match)return[0,0,0];var colorString=match[0];3===match[0].length&&(colorString=colorString.split("").map((function(char){return char+char})).join(""));var integer=parseInt(colorString,16);return[integer>>16&255,integer>>8&255,255&integer]},convert$1.rgb.hcg=function(rgb){var hue,r=rgb[0]/255,g=rgb[1]/255,b=rgb[2]/255,max=Math.max(Math.max(r,g),b),min=Math.min(Math.min(r,g),b),chroma=max-min;return hue=chroma<=0?0:max===r?(g-b)/chroma%6:max===g?2+(b-r)/chroma:4+(r-g)/chroma,hue/=6,[360*(hue%=1),100*chroma,100*(chroma<1?min/(1-chroma):0)]},convert$1.hsl.hcg=function(hsl){var s=hsl[1]/100,l=hsl[2]/100,c=l<.5?2*s*l:2*s*(1-l),f=0;return c<1&&(f=(l-.5*c)/(1-c)),[hsl[0],100*c,100*f]},convert$1.hsv.hcg=function(hsv){var s=hsv[1]/100,v=hsv[2]/100,c=s*v,f=0;return c<1&&(f=(v-c)/(1-c)),[hsv[0],100*c,100*f]},convert$1.hcg.rgb=function(hcg){var h=hcg[0]/360,c=hcg[1]/100,g=hcg[2]/100;if(0===c)return[255*g,255*g,255*g];var mg,pure=[0,0,0],hi=h%1*6,v=hi%1,w=1-v;switch(Math.floor(hi)){case 0:pure[0]=1,pure[1]=v,pure[2]=0;break;case 1:pure[0]=w,pure[1]=1,pure[2]=0;break;case 2:pure[0]=0,pure[1]=1,pure[2]=v;break;case 3:pure[0]=0,pure[1]=w,pure[2]=1;break;case 4:pure[0]=v,pure[1]=0,pure[2]=1;break;default:pure[0]=1,pure[1]=0,pure[2]=w}return mg=(1-c)*g,[255*(c*pure[0]+mg),255*(c*pure[1]+mg),255*(c*pure[2]+mg)]},convert$1.hcg.hsv=function(hcg){var c=hcg[1]/100,v=c+hcg[2]/100*(1-c),f=0;return v>0&&(f=c/v),[hcg[0],100*f,100*v]},convert$1.hcg.hsl=function(hcg){var c=hcg[1]/100,l=hcg[2]/100*(1-c)+.5*c,s=0;return l>0&&l<.5?s=c/(2*l):l>=.5&&l<1&&(s=c/(2*(1-l))),[hcg[0],100*s,100*l]},convert$1.hcg.hwb=function(hcg){var c=hcg[1]/100,v=c+hcg[2]/100*(1-c);return[hcg[0],100*(v-c),100*(1-v)]},convert$1.hwb.hcg=function(hwb){var w=hwb[1]/100,v=1-hwb[2]/100,c=v-w,g=0;return c<1&&(g=(v-c)/(1-c)),[hwb[0],100*c,100*g]},convert$1.apple.rgb=function(apple){return[apple[0]/65535*255,apple[1]/65535*255,apple[2]/65535*255]},convert$1.rgb.apple=function(rgb){return[rgb[0]/255*65535,rgb[1]/255*65535,rgb[2]/255*65535]},convert$1.gray.rgb=function(args){return[args[0]/100*255,args[0]/100*255,args[0]/100*255]},convert$1.gray.hsl=function(args){return[0,0,args[0]]},convert$1.gray.hsv=convert$1.gray.hsl,convert$1.gray.hwb=function(gray){return[0,100,gray[0]]},convert$1.gray.cmyk=function(gray){return[0,0,0,gray[0]]},convert$1.gray.lab=function(gray){return[gray[0],0,0]},convert$1.gray.hex=function(gray){var val=255&Math.round(gray[0]/100*255),string=((val<<16)+(val<<8)+val).toString(16).toUpperCase();return"000000".substring(string.length)+string},convert$1.rgb.gray=function(rgb){return[(rgb[0]+rgb[1]+rgb[2])/3/255*100]};var conversions$1=conversions$2;function deriveBFS(fromModel){var graph=function buildGraph(){for(var graph={},models=Object.keys(conversions$1),len=models.length,_i5=0;_i51&&(args=arg0);var result=fn(args);if("object"===_typeof(result))for(var len=result.length,_i8=0;_i81&&(args=arg0),fn(args))};return"conversion"in fn&&(wrappedFn.conversion=fn.conversion),wrappedFn}(fn)}))}));var colorConvert=convert,root=_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_26__.U,now_1=function now$1(){return root.Date.now()},reWhitespace=/\s/;var trimmedEndIndex=function trimmedEndIndex$1(string){for(var index=string.length;index--&&reWhitespace.test(string.charAt(index)););return index},reTrimStart=/^\s+/;var baseTrim=function baseTrim$1(string){return string?string.slice(0,trimmedEndIndex(string)+1).replace(reTrimStart,""):string},isObject$2=_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_26__.X,isSymbol=_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_26__.Y,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;var toNumber_1=function toNumber$1(value){if("number"==typeof value)return value;if(isSymbol(value))return NaN;if(isObject$2(value)){var other="function"==typeof value.valueOf?value.valueOf():value;value=isObject$2(other)?other+"":other}if("string"!=typeof value)return 0===value?value:+value;value=baseTrim(value);var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NaN:+value},isObject$1=_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_26__.X,now=now_1,toNumber=toNumber_1,nativeMax=Math.max,nativeMin=Math.min;var debounce_1=function debounce$1(func,wait,options){var lastArgs,lastThis,maxWait,result,timerId,lastCallTime,lastInvokeTime=0,leading=!1,maxing=!1,trailing=!0;if("function"!=typeof func)throw new TypeError("Expected a function");function invokeFunc(time){var args=lastArgs,thisArg=lastThis;return lastArgs=lastThis=void 0,lastInvokeTime=time,result=func.apply(thisArg,args)}function shouldInvoke(time){var timeSinceLastCall=time-lastCallTime;return void 0===lastCallTime||timeSinceLastCall>=wait||timeSinceLastCall<0||maxing&&time-lastInvokeTime>=maxWait}function timerExpired(){var time=now();if(shouldInvoke(time))return trailingEdge(time);timerId=setTimeout(timerExpired,function remainingWait(time){var timeWaiting=wait-(time-lastCallTime);return maxing?nativeMin(timeWaiting,maxWait-(time-lastInvokeTime)):timeWaiting}(time))}function trailingEdge(time){return timerId=void 0,trailing&&lastArgs?invokeFunc(time):(lastArgs=lastThis=void 0,result)}function debounced(){var time=now(),isInvoking=shouldInvoke(time);if(lastArgs=arguments,lastThis=this,lastCallTime=time,isInvoking){if(void 0===timerId)return function leadingEdge(time){return lastInvokeTime=time,timerId=setTimeout(timerExpired,wait),leading?invokeFunc(time):result}(lastCallTime);if(maxing)return clearTimeout(timerId),timerId=setTimeout(timerExpired,wait),invokeFunc(lastCallTime)}return void 0===timerId&&(timerId=setTimeout(timerExpired,wait)),result}return wait=toNumber(wait)||0,isObject$1(options)&&(leading=!!options.leading,maxWait=(maxing="maxWait"in options)?nativeMax(toNumber(options.maxWait)||0,wait):maxWait,trailing="trailing"in options?!!options.trailing:trailing),debounced.cancel=function cancel(){void 0!==timerId&&clearTimeout(timerId),lastInvokeTime=0,lastArgs=lastCallTime=lastThis=timerId=void 0},debounced.flush=function flush(){return void 0===timerId?result:trailingEdge(now())},debounced},debounce=debounce_1,isObject=_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_26__.X;var ColorSpace,throttle_1=function throttle(func,wait,options){var leading=!0,trailing=!0;if("function"!=typeof func)throw new TypeError("Expected a function");return isObject(options)&&(leading="leading"in options?!!options.leading:leading,trailing="trailing"in options?!!options.trailing:trailing),debounce(func,wait,{leading:leading,maxWait:wait,trailing:trailing})},Wrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_28__.l.div({position:"relative",maxWidth:250}),PickerTooltip=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_28__.l)(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_26__.f)({position:"absolute",zIndex:1,top:4,left:4}),TooltipContent=_storybook_theming__WEBPACK_IMPORTED_MODULE_28__.l.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Note=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_28__.l)(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_26__.e)((function(_ref){return{fontFamily:_ref.theme.typography.fonts.base}})),Swatches=_storybook_theming__WEBPACK_IMPORTED_MODULE_28__.l.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),SwatchColor=_storybook_theming__WEBPACK_IMPORTED_MODULE_28__.l.div((function(_ref2){var theme=_ref2.theme;return{width:16,height:16,boxShadow:_ref2.active?"".concat(theme.appBorderColor," 0 0 0 1px inset, ").concat(theme.color.mediumdark,"50 0 0 0 4px"):"".concat(theme.appBorderColor," 0 0 0 1px inset"),borderRadius:theme.appBorderRadius}})),Swatch=function Swatch(_a){var value=_a.value,active=_a.active,onClick=_a.onClick,style=_a.style,props=Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_26__.D)(_a,["value","active","onClick","style"]),backgroundImage="linear-gradient(".concat(value,", ").concat(value,"), ").concat('url(\'data:image/svg+xml;charset=utf-8,\')',", linear-gradient(#fff, #fff)");return react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(SwatchColor,Object.assign({},props,{active:active,onClick:onClick},{style:Object.assign(Object.assign({},style),{backgroundImage:backgroundImage})}))},Input=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_28__.l)(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_26__.b.Input)((function(_ref3){return{width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:_ref3.theme.typography.fonts.base}})),ToggleIcon=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_28__.l)(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_26__.c)((function(_ref4){return{position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:_ref4.theme.input.color}}));!function(ColorSpace){ColorSpace.RGB="rgb",ColorSpace.HSL="hsl",ColorSpace.HEX="hex"}(ColorSpace||(ColorSpace={}));var COLOR_SPACES=Object.values(ColorSpace),COLOR_REGEXP=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,RGB_REGEXP=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,HSL_REGEXP=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,HEX_REGEXP=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,SHORTHEX_REGEXP=/^\s*#?([0-9a-f]{3})\s*$/i,ColorPicker=(_defineProperty(_ColorPicker={},ColorSpace.HEX,(function J(r){return react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement($,u({},r,{colorModel:G}))})),_defineProperty(_ColorPicker,ColorSpace.RGB,(function pe(r){return react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(U,u({},r,{colorModel:ge}))})),_defineProperty(_ColorPicker,ColorSpace.HSL,(function re(r){return react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(U,u({},r,{colorModel:ee}))})),_ColorPicker),fallbackColor=(_defineProperty(_fallbackColor={},ColorSpace.HEX,"transparent"),_defineProperty(_fallbackColor,ColorSpace.RGB,"rgba(0, 0, 0, 0)"),_defineProperty(_fallbackColor,ColorSpace.HSL,"hsla(0, 0%, 0%, 0)"),_fallbackColor),stringToArgs=function stringToArgs(value){var match=null==value?void 0:value.match(COLOR_REGEXP);if(!match)return[0,0,0,1];var _match=_slicedToArray(match,5),x=_match[1],y=_match[2],z=_match[3],_match$=_match[4];return[x,y,z,void 0===_match$?1:_match$].map(Number)},parseValue=function parseValue(value){var _ref11;if(value){var valid=!0;if(RGB_REGEXP.test(value)){var _ref7,_stringToArgs2=_slicedToArray(stringToArgs(value),4),r=_stringToArgs2[0],_g=_stringToArgs2[1],_b=_stringToArgs2[2],a=_stringToArgs2[3],_ref6=_slicedToArray(colorConvert.rgb.hsl([r,_g,_b])||[0,0,0],3),_h=_ref6[0],_s2=_ref6[1],l=_ref6[2];return _defineProperty(_ref7={valid:valid,value:value,keyword:colorConvert.rgb.keyword([r,_g,_b]),colorSpace:ColorSpace.RGB},ColorSpace.RGB,value),_defineProperty(_ref7,ColorSpace.HSL,"hsla(".concat(_h,", ").concat(_s2,"%, ").concat(l,"%, ").concat(a,")")),_defineProperty(_ref7,ColorSpace.HEX,"#".concat(colorConvert.rgb.hex([r,_g,_b]).toLowerCase())),_ref7}if(HSL_REGEXP.test(value)){var _ref10,_stringToArgs4=_slicedToArray(stringToArgs(value),4),_h2=_stringToArgs4[0],_s3=_stringToArgs4[1],_l=_stringToArgs4[2],_a2=_stringToArgs4[3],_ref9=_slicedToArray(colorConvert.hsl.rgb([_h2,_s3,_l])||[0,0,0],3),_r=_ref9[0],_g2=_ref9[1],_b2=_ref9[2];return _defineProperty(_ref10={valid:valid,value:value,keyword:colorConvert.hsl.keyword([_h2,_s3,_l]),colorSpace:ColorSpace.HSL},ColorSpace.RGB,"rgba(".concat(_r,", ").concat(_g2,", ").concat(_b2,", ").concat(_a2,")")),_defineProperty(_ref10,ColorSpace.HSL,value),_defineProperty(_ref10,ColorSpace.HEX,"#".concat(colorConvert.hsl.hex([_h2,_s3,_l]).toLowerCase())),_ref10}var plain=value.replace("#",""),rgb=colorConvert.keyword.rgb(plain)||colorConvert.hex.rgb(plain),hsl=colorConvert.rgb.hsl(rgb),mapped=value;if(/[^#a-f0-9]/i.test(value)?mapped=plain:HEX_REGEXP.test(value)&&(mapped="#".concat(plain)),mapped.startsWith("#"))valid=HEX_REGEXP.test(mapped);else try{colorConvert.keyword.hex(mapped)}catch(e){valid=!1}return _defineProperty(_ref11={valid:valid,value:mapped,keyword:colorConvert.rgb.keyword(rgb),colorSpace:ColorSpace.HEX},ColorSpace.RGB,"rgba(".concat(rgb[0],", ").concat(rgb[1],", ").concat(rgb[2],", 1)")),_defineProperty(_ref11,ColorSpace.HSL,"hsla(".concat(hsl[0],", ").concat(hsl[1],"%, ").concat(hsl[2],"%, 1)")),_defineProperty(_ref11,ColorSpace.HEX,mapped),_ref11}},useColorInput=function useColorInput(initialValue,onChange){var _useState2=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_27__.useState)(initialValue||""),2),value=_useState2[0],setValue=_useState2[1],_useState4=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_27__.useState)((function(){return parseValue(value)})),2),color=_useState4[0],setColor=_useState4[1],_useState6=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_27__.useState)((null==color?void 0:color.colorSpace)||ColorSpace.HEX),2),colorSpace=_useState6[0],setColorSpace=_useState6[1];Object(react__WEBPACK_IMPORTED_MODULE_27__.useEffect)((function(){void 0===initialValue&&(setValue(""),setColor(void 0),setColorSpace(ColorSpace.HEX))}),[initialValue]);var realValue=Object(react__WEBPACK_IMPORTED_MODULE_27__.useMemo)((function(){return function getRealValue(value,color,colorSpace){if(!value||!(null==color?void 0:color.valid))return fallbackColor[colorSpace];if(colorSpace!==ColorSpace.HEX)return(null==color?void 0:color[colorSpace])||fallbackColor[colorSpace];if(!color.hex.startsWith("#"))try{return"#".concat(colorConvert.keyword.hex(color.hex))}catch(e){return fallbackColor.hex}var short=color.hex.match(SHORTHEX_REGEXP);if(!short)return HEX_REGEXP.test(color.hex)?color.hex:fallbackColor.hex;var _short$1$split2=_slicedToArray(short[1].split(""),3),r=_short$1$split2[0],g=_short$1$split2[1],b=_short$1$split2[2];return"#".concat(r).concat(r).concat(g).concat(g).concat(b).concat(b)}(value,color,colorSpace).toLowerCase()}),[value,color,colorSpace]),updateValue=Object(react__WEBPACK_IMPORTED_MODULE_27__.useCallback)((function(update){var parsed=parseValue(update);setValue((null==parsed?void 0:parsed.value)||update||""),parsed&&(setColor(parsed),setColorSpace(parsed.colorSpace),onChange(parsed.value))}),[onChange]),cycleColorSpace=Object(react__WEBPACK_IMPORTED_MODULE_27__.useCallback)((function(){var next=COLOR_SPACES.indexOf(colorSpace)+1;next>=COLOR_SPACES.length&&(next=0),setColorSpace(COLOR_SPACES[next]);var update=(null==color?void 0:color[COLOR_SPACES[next]])||"";setValue(update),onChange(update)}),[color,colorSpace,onChange]);return{value:value,realValue:realValue,updateValue:updateValue,color:color,colorSpace:colorSpace,cycleColorSpace:cycleColorSpace}},id=function id(value){return value.replace(/\s*/,"").toLowerCase()},ColorControl=function ColorControl(_ref12){var name=_ref12.name,initialValue=_ref12.value,onChange=_ref12.onChange,onFocus=_ref12.onFocus,onBlur=_ref12.onBlur,presetColors=_ref12.presetColors,startOpen=_ref12.startOpen,_useColorInput=useColorInput(initialValue,throttle_1(onChange,200)),value=_useColorInput.value,realValue=_useColorInput.realValue,updateValue=_useColorInput.updateValue,color=_useColorInput.color,colorSpace=_useColorInput.colorSpace,cycleColorSpace=_useColorInput.cycleColorSpace,_usePresets=function usePresets(presetColors,currentColor,colorSpace){var _useState8=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_27__.useState)((null==currentColor?void 0:currentColor.valid)?[currentColor]:[]),2),selectedColors=_useState8[0],setSelectedColors=_useState8[1];Object(react__WEBPACK_IMPORTED_MODULE_27__.useEffect)((function(){void 0===currentColor&&setSelectedColors([])}),[currentColor]);var presets=Object(react__WEBPACK_IMPORTED_MODULE_27__.useMemo)((function(){return(presetColors||[]).map((function(preset){return"string"==typeof preset?parseValue(preset):preset.title?Object.assign(Object.assign({},parseValue(preset.color)),{keyword:preset.title}):parseValue(preset.color)})).concat(selectedColors).filter(Boolean).slice(-27)}),[presetColors,selectedColors]),addPreset=Object(react__WEBPACK_IMPORTED_MODULE_27__.useCallback)((function(color){(null==color?void 0:color.valid)&&(presets.some((function(preset){return id(preset[colorSpace])===id(color[colorSpace])}))||setSelectedColors((function(arr){return arr.concat(color)})))}),[colorSpace,presets]);return{presets:presets,addPreset:addPreset}}(presetColors,color,colorSpace),presets=_usePresets.presets,addPreset=_usePresets.addPreset,Picker=ColorPicker[colorSpace];return react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(Wrapper,null,react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(PickerTooltip,{trigger:"click",startOpen:startOpen,closeOnClick:!0,onVisibilityChange:function onVisibilityChange(){return addPreset(color)},tooltip:react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(TooltipContent,null,react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(Picker,Object.assign({color:"transparent"===realValue?"#000000":realValue},{onChange:updateValue,onFocus:onFocus,onBlur:onBlur})),presets.length>0&&react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(Swatches,null,presets.map((function(preset,index){return react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_26__.f,{key:"".concat(preset.value,"-").concat(index),hasChrome:!1,tooltip:react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(Note,{note:preset.keyword||preset.value})},react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(Swatch,{value:preset[colorSpace],active:color&&id(preset[colorSpace])===id(color[colorSpace]),onClick:function onClick(){return updateValue(preset.value)}}))}))))},react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(Swatch,{value:realValue,style:{margin:4}})),react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(Input,{id:Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_26__.Z)(name),value:value,onChange:function onChange(e){return updateValue(e.target.value)},onFocus:function onFocus(e){return e.target.select()},placeholder:"Choose color..."}),value?react__WEBPACK_IMPORTED_MODULE_27___default.a.createElement(ToggleIcon,{icon:"markup",onClick:cycleColorSpace}):null)}}}]); \ No newline at end of file diff --git a/7.297c63ba40f8006aac5c.manager.bundle.js b/7.297c63ba40f8006aac5c.manager.bundle.js new file mode 100644 index 000000000..0cb8e8f20 --- /dev/null +++ b/7.297c63ba40f8006aac5c.manager.bundle.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{843:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"default",(function(){return GlobalScrollAreaStyles})),__webpack_require__.d(__webpack_exports__,"getScrollAreaStyles",(function(){return getScrollAreaStyles}));__webpack_require__(29),__webpack_require__(56);var _templateObject,react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__),_storybook_theming__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(1);var hsResizeObserverDummyAnimation=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_3__.j)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["0%{z-index:0}to{z-index:-1}"]))),getScrollAreaStyles=function getScrollAreaStyles(theme){return{"html.os-html, html.os-html>.os-host":{display:"block",overflow:"hidden",boxSizing:"border-box",height:"100%!important",width:"100%!important",minWidth:"100%!important",minHeight:"100%!important",margin:"0!important",position:"absolute!important"},"html.os-html>.os-host>.os-padding":{position:"absolute"},"body.os-dragging, body.os-dragging *":{cursor:"default"},".os-host, .os-host-textarea":{position:"relative",overflow:"visible!important",flexDirection:"column",flexWrap:"nowrap",justifyContent:"flex-start",alignContent:"flex-start",alignItems:"flex-start"},".os-host-flexbox":{overflow:"hidden!important",display:"flex"},".os-host-flexbox>.os-size-auto-observer":{height:"inherit!important"},".os-host-flexbox>.os-content-glue":{flexGrow:1,flexShrink:0},".os-host-flexbox>.os-size-auto-observer, .os-host-flexbox>.os-content-glue":{minHeight:0,minWidth:0,flexGrow:0,flexShrink:1,flexBasis:"auto"},"#os-dummy-scrollbar-size":{position:"fixed",opacity:0,visibility:"hidden",overflow:"scroll",height:500,width:500},"#os-dummy-scrollbar-size>div":{width:"200%",height:"200%",margin:10},"#os-dummy-scrollbar-size, .os-viewport":{},".os-viewport-native-scrollbars-invisible#os-dummy-scrollbar-size, .os-viewport-native-scrollbars-invisible.os-viewport":{scrollbarWidth:"none!important"},".os-viewport-native-scrollbars-invisible#os-dummy-scrollbar-size::-webkit-scrollbar, .os-viewport-native-scrollbars-invisible.os-viewport::-webkit-scrollbar, .os-viewport-native-scrollbars-invisible#os-dummy-scrollbar-size::-webkit-scrollbar-corner, .os-viewport-native-scrollbars-invisible.os-viewport::-webkit-scrollbar-corner":{display:"none!important",width:"0!important",height:"0!important",visibility:"hidden!important",background:"0 0!important"},".os-content-glue":{boxSizing:"inherit",maxHeight:"100%",maxWidth:"100%",width:"100%",pointerEvents:"none"},".os-padding":{boxSizing:"inherit",direction:"inherit",position:"absolute",overflow:"visible",padding:0,margin:0,left:0,top:0,bottom:0,right:0,width:"auto!important",height:"auto!important",zIndex:1},".os-host-overflow>.os-padding":{overflow:"hidden"},".os-viewport":{direction:"inherit!important",boxSizing:"inherit!important",resize:"none!important",outline:"0!important",position:"absolute",overflow:"hidden",top:0,left:0,bottom:0,right:0,padding:0,margin:0},".os-content-arrange":{position:"absolute",zIndex:-1,minHeight:1,minWidth:1,pointerEvents:"none"},".os-content":{direction:"inherit",boxSizing:"border-box!important",position:"relative",display:"block",height:"100%",width:"100%",visibility:"visible"},".os-content:before, .os-content:after":{content:"''",display:"table",width:0,height:0,lineHeight:0,fontSize:0},".os-content>.os-textarea":{boxSizing:"border-box!important",direction:"inherit!important",background:"0 0!important",outline:"0 transparent!important",overflow:"hidden!important",position:"absolute!important",display:"block!important",top:"0!important",left:"0!important",margin:"0!important",borderRadius:"0!important",float:"none!important",filter:"none!important",border:"0!important",resize:"none!important",transform:"none!important",maxWidth:"none!important",maxHeight:"none!important",boxShadow:"none!important",perspective:"none!important",opacity:"1!important",zIndex:"1!important",clip:"auto!important",verticalAlign:"baseline!important",padding:0},".os-host-rtl>.os-padding>.os-viewport>.os-content>.os-textarea":{right:"0!important"},".os-content>.os-textarea-cover":{zIndex:-1,pointerEvents:"none"},".os-content>.os-textarea[wrap=off]":{whiteSpace:"pre!important",margin:"0!important"},".os-text-inherit":{fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit",fontStyle:"inherit",fontVariant:"inherit",textTransform:"inherit",textDecoration:"inherit",textIndent:"inherit",textAlign:"inherit",textShadow:"inherit",textOverflow:"inherit",letterSpacing:"inherit",wordSpacing:"inherit",lineHeight:"inherit",unicodeBidi:"inherit",direction:"inherit",color:"inherit",cursor:"text"},".os-resize-observer, .os-resize-observer-host":{boxSizing:"inherit",display:"block",opacity:0,position:"absolute",top:0,left:0,height:"100%",width:"100%",overflow:"hidden",pointerEvents:"none",zIndex:-1},".os-resize-observer-host":{padding:"inherit",border:"inherit",borderColor:"transparent",borderStyle:"solid",boxSizing:"border-box"},".os-resize-observer-host:after":{content:"''"},".os-resize-observer-host>.os-resize-observer, .os-resize-observer-host:after":{height:"200%",width:"200%",padding:"inherit",border:"inherit",margin:0,display:"block",boxSizing:"content-box"},".os-resize-observer.observed, object.os-resize-observer":{boxSizing:"border-box!important"},".os-size-auto-observer":{boxSizing:"inherit!important",height:"100%",width:"inherit",maxWidth:1,position:"relative",float:"left",maxHeight:1,overflow:"hidden",zIndex:-1,padding:0,margin:0,pointerEvents:"none",flexGrow:"inherit",flexShrink:0,flexBasis:0},".os-size-auto-observer>.os-resize-observer":{width:"1000%",height:"1000%",minHeight:1,minWidth:1},".os-resize-observer-item":{position:"absolute",top:0,right:0,bottom:0,left:0,overflow:"hidden",zIndex:-1,opacity:0,direction:"ltr!important",flex:"none!important"},".os-resize-observer-item-final":{position:"absolute",left:0,top:0,transition:"none!important",flex:"none!important"},".os-resize-observer":{animationDuration:".001s",animationName:"".concat(hsResizeObserverDummyAnimation)},".os-host-transition>.os-scrollbar, .os-host-transition>.os-scrollbar-corner":{transition:"opacity .3s,visibility .3s,top .3s,right .3s,bottom .3s,left .3s"},"html.os-html>.os-host>.os-scrollbar":{position:"absolute",zIndex:999999},".os-scrollbar, .os-scrollbar-corner":{position:"absolute",opacity:1,zIndex:1},".os-scrollbar-corner":{bottom:0,right:0,height:10,width:10,backgroundColor:"transparent"},".os-scrollbar":{pointerEvents:"none",padding:2,boxSizing:"border-box",background:0},".os-scrollbar-track":{pointerEvents:"auto",position:"relative",height:"100%",width:"100%",padding:"0!important",border:"0!important"},".os-scrollbar-handle":{pointerEvents:"auto",position:"absolute",width:"100%",height:"100%"},".os-scrollbar-handle-off, .os-scrollbar-track-off":{pointerEvents:"none"},".os-scrollbar.os-scrollbar-unusable, .os-scrollbar.os-scrollbar-unusable *":{pointerEvents:"none!important"},".os-scrollbar.os-scrollbar-unusable .os-scrollbar-handle":{opacity:"0!important"},".os-scrollbar-horizontal":{bottom:0,left:0,right:10,height:10},".os-scrollbar-vertical":{top:0,right:0,bottom:10,width:10},".os-host-rtl>.os-scrollbar-horizontal":{right:0},".os-host-rtl>.os-scrollbar-vertical":{right:"auto",left:0},".os-host-rtl>.os-scrollbar-corner":{right:"auto",left:0},".os-scrollbar-auto-hidden, .os-padding+.os-scrollbar-corner, .os-host-resize-disabled.os-host-scrollbar-horizontal-hidden>.os-scrollbar-corner, .os-host-scrollbar-horizontal-hidden>.os-scrollbar-horizontal, .os-host-resize-disabled.os-host-scrollbar-vertical-hidden>.os-scrollbar-corner, .os-host-scrollbar-vertical-hidden>.os-scrollbar-vertical, .os-scrollbar-horizontal.os-scrollbar-auto-hidden+.os-scrollbar-vertical+.os-scrollbar-corner, .os-scrollbar-horizontal+.os-scrollbar-vertical.os-scrollbar-auto-hidden+.os-scrollbar-corner, .os-scrollbar-horizontal.os-scrollbar-auto-hidden+.os-scrollbar-vertical.os-scrollbar-auto-hidden+.os-scrollbar-corner":{opacity:0,visibility:"hidden",pointerEvents:"none"},".os-scrollbar-corner-resize-both":{cursor:"nwse-resize"},".os-host-rtl>.os-scrollbar-corner-resize-both":{cursor:"nesw-resize"},".os-scrollbar-corner-resize-horizontal":{cursor:"ew-resize"},".os-scrollbar-corner-resize-vertical":{cursor:"ns-resize"},".os-dragging .os-scrollbar-corner.os-scrollbar-corner-resize":{cursor:"default"},".os-host-resize-disabled.os-host-scrollbar-horizontal-hidden>.os-scrollbar-vertical":{top:0,bottom:0},".os-host-resize-disabled.os-host-scrollbar-vertical-hidden>.os-scrollbar-horizontal, .os-host-rtl.os-host-resize-disabled.os-host-scrollbar-vertical-hidden>.os-scrollbar-horizontal":{right:0,left:0},".os-scrollbar:hover, .os-scrollbar-corner.os-scrollbar-corner-resize":{opacity:"1!important",visibility:"visible!important"},".os-scrollbar-corner.os-scrollbar-corner-resize":{backgroundImage:"linear-gradient(135deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.4) 100%)",backgroundRepeat:"no-repeat",backgroundPosition:"100% 100%",pointerEvents:"auto!important"},".os-host-rtl>.os-scrollbar-corner.os-scrollbar-corner-resize":{transform:"scale(-1,1)"},".os-host-overflow":{overflow:"hidden!important"},".os-theme-dark.os-host-rtl>.os-scrollbar-horizontal":{left:10,right:0},".os-scrollbar.os-scrollbar-unusable":{background:0},".os-scrollbar>.os-scrollbar-track":{background:0},".os-scrollbar-horizontal>.os-scrollbar-track>.os-scrollbar-handle":{minWidth:30},".os-scrollbar-vertical>.os-scrollbar-track>.os-scrollbar-handle":{minHeight:30},".os-theme-dark.os-host-transition>.os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle":{transition:"background-color .3s"},".os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle, .os-scrollbar>.os-scrollbar-track":{borderRadius:10},".os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle":{background:theme.color.mediumdark,opacity:.5},".os-scrollbar:hover>.os-scrollbar-track>.os-scrollbar-handle":{opacity:.6},".os-scrollbar-horizontal .os-scrollbar-handle:before, .os-scrollbar-vertical .os-scrollbar-handle:before":{content:"''",position:"absolute",left:0,right:0,top:0,bottom:0,display:"block"},".os-theme-dark.os-host-scrollbar-horizontal-hidden>.os-scrollbar-horizontal .os-scrollbar-handle:before, .os-theme-dark.os-host-scrollbar-vertical-hidden>.os-scrollbar-vertical .os-scrollbar-handle:before":{display:"none"},".os-scrollbar-horizontal .os-scrollbar-handle:before":{top:-6,bottom:-2},".os-scrollbar-vertical .os-scrollbar-handle:before":{left:-6,right:-2},".os-host-rtl.os-scrollbar-vertical .os-scrollbar-handle:before":{right:-6,left:-2}}},GlobalScrollAreaStyles=function GlobalScrollAreaStyles(){return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_storybook_theming__WEBPACK_IMPORTED_MODULE_3__.b,{styles:getScrollAreaStyles})}}}]); \ No newline at end of file diff --git a/8.5a16d26f32353c4e9e4f.manager.bundle.js b/8.5a16d26f32353c4e9e4f.manager.bundle.js new file mode 100644 index 000000000..2e1a293a0 --- /dev/null +++ b/8.5a16d26f32353c4e9e4f.manager.bundle.js @@ -0,0 +1,2 @@ +/*! For license information please see 8.5a16d26f32353c4e9e4f.manager.bundle.js.LICENSE.txt */ +(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{844:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"OverlayScrollbarsComponent",(function(){return OverlayScrollbarsComponent})),__webpack_require__.d(__webpack_exports__,"default",(function(){return OverlayScrollbarsComponent}));__webpack_require__(29),__webpack_require__(19),__webpack_require__(99),__webpack_require__(91),__webpack_require__(26),__webpack_require__(11),__webpack_require__(90),__webpack_require__(50),__webpack_require__(79),__webpack_require__(305),__webpack_require__(70),__webpack_require__(92),__webpack_require__(142),__webpack_require__(232),__webpack_require__(27),__webpack_require__(37),__webpack_require__(16),__webpack_require__(21),__webpack_require__(22),__webpack_require__(15),__webpack_require__(18),__webpack_require__(17);var _index_681e4b07_js__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(2),react__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_23___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_23__);__webpack_require__(28),__webpack_require__(48);function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}var OverlayScrollbars$1={exports:{}};!function(module){var global;global="undefined"!=typeof window?window:_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_22__.C,module.exports=function(window,document,undefined$1){var _targets,_instancePropertyString,_easingsMath,PLUGINNAME="OverlayScrollbars",TYPES={o:"object",f:"function",a:"array",s:"string",b:"boolean",n:"number",u:"undefined",z:"null"},LEXICON={c:"class",s:"style",i:"id",l:"length",p:"prototype",ti:"tabindex",oH:"offsetHeight",cH:"clientHeight",sH:"scrollHeight",oW:"offsetWidth",cW:"clientWidth",sW:"scrollWidth",hOP:"hasOwnProperty",bCR:"getBoundingClientRect"},VENDORS=function(){var jsCache={},cssCache={},cssPrefixes=["-webkit-","-moz-","-o-","-ms-"],jsPrefixes=["WebKit","Moz","O","MS"];function firstLetterToUpper(str){return str.charAt(0).toUpperCase()+str.slice(1)}return{_cssPrefixes:cssPrefixes,_jsPrefixes:jsPrefixes,_cssProperty:function _cssProperty(name){var result=cssCache[name];if(cssCache[LEXICON.hOP](name))return result;for(var resultPossibilities,v,currVendorWithoutDashes,uppercasedName=firstLetterToUpper(name),elmStyle=document.createElement("div")[LEXICON.s],i=0;i0&&length-1 in obj)}function stripAndCollapse(value){return(value.match(_rnothtmlwhite)||[]).join(_strSpace)}function matches(elem,selector){for(var nodeList=(elem.parentNode||document).querySelectorAll(selector)||[],i=nodeList[LEXICON.l];i--;)if(nodeList[i]==elem)return!0;return!1}function insertAdjacentElement(el,strategy,child){if(COMPATIBILITY.isA(child))for(var i=0;i0?(nextAnim=animObj.q[0],_animate(animObj.el,nextAnim.props,nextAnim.duration,nextAnim.easing,nextAnim.complete,!0)):(index=inArray(animObj,_animations))>-1&&_animations.splice(index,1)}function setAnimationValue(el,prop,value){prop===_strScrollLeft||prop===_strScrollTop?el[prop]=value:setCSSVal(el,prop,value)}function _animate(el,props,options,easing,complete,guaranteedNext){var key,animObj,progress,step,specialEasing,duration,hasOptions=isPlainObject(options),from={},to={},i=0;for(hasOptions?(easing=options.easing,progress=options.progress,step=options.step,specialEasing=options.specialEasing,complete=options.complete,duration=options.duration):duration=options,specialEasing=specialEasing||{},duration=duration||400,easing=easing||"swing",guaranteedNext=guaranteedNext||!1;i<_animations[LEXICON.l];i++)if(_animations[i].el===el){animObj=_animations[i];break}for(key in animObj||(animObj={el:el,q:[]},_animations.push(animObj)),props)from[key]=key===_strScrollLeft||key===_strScrollTop?el[key]:FakejQuery(el).css(key);for(key in from)from[key]!==props[key]&&props[key]!==undefined$1&&(to[key]=props[key]);if(isEmptyObject(to))guaranteedNext&&startNextAnimationInQ(animObj);else{var timeNow,end,percent,fromVal,toVal,easedVal,timeStart,_frame,elapsed,qPos=guaranteedNext?0:inArray(qObj,animObj.q),qObj={props:to,duration:hasOptions?options:duration,easing:easing,complete:complete};if(-1===qPos&&(qPos=animObj.q[LEXICON.l],animObj.q.push(qObj)),0===qPos)if(duration>0)timeStart=COMPATIBILITY.now(),_frame=function frame(){for(key in timeNow=COMPATIBILITY.now(),elapsed=timeNow-timeStart,end=qObj.stop||elapsed>=duration,percent=1-(MATH.max(0,timeStart+duration-timeNow)/duration||0),to)fromVal=parseFloat(from[key]),toVal=parseFloat(to[key]),easedVal=(toVal-fromVal)*EASING[specialEasing[key]||easing](percent,percent*duration,0,1,duration)+fromVal,setAnimationValue(el,key,easedVal),isFunction(step)&&step(easedVal,{elem:el,prop:key,start:fromVal,now:easedVal,end:toVal,pos:percent,options:{easing:easing,speacialEasing:specialEasing,duration:duration,complete:complete,step:step},startTime:timeStart});isFunction(progress)&&progress({},percent,MATH.max(0,duration-elapsed)),end?(startNextAnimationInQ(animObj),isFunction(complete)&&complete()):qObj.frame=COMPATIBILITY.rAF()(_frame)},qObj.frame=COMPATIBILITY.rAF()(_frame);else{for(key in to)setAnimationValue(el,key,to[key]);startNextAnimationInQ(animObj)}}}function _stop(el,clearQ,jumpToEnd){for(var animObj,qObj,key,i=0;i<_animations[LEXICON.l];i++)if((animObj=_animations[i]).el===el){if(animObj.q[LEXICON.l]>0){if((qObj=animObj.q[0]).stop=!0,COMPATIBILITY.cAF()(qObj.frame),animObj.q.splice(0,1),jumpToEnd)for(key in qObj.props)setAnimationValue(el,key,qObj.props[key]);clearQ?animObj.q=[]:startNextAnimationInQ(animObj,!1)}break}}function elementIsVisible(el){return!!(el[LEXICON.oW]||el[LEXICON.oH]||el.getClientRects()[LEXICON.l])}function FakejQuery(selector){if(0===arguments[LEXICON.l])return this;var elms,el,base=new FakejQuery,elements=selector,i=0;if(_type(selector)==TYPES.s)for(elements=[],"<"===selector.charAt(0)?((el=document.createElement("div")).innerHTML=selector,elms=el.children):elms=document.querySelectorAll(selector);i0;)deepest=deepest.childNodes[0];for(i=0;nodes[LEXICON.l]-i;deepest.firstChild===nodes[0]&&i++)deepest.appendChild(nodes[i]);var nextSibling=previousSibling?previousSibling.nextSibling:parent.firstChild;return parent.insertBefore(wrapper,nextSibling),this},wrapInner:function wrapInner(wrapperHTML){return this.each((function(){var el=FakejQuery(this),contents=el.contents();contents[LEXICON.l]?contents.wrapAll(wrapperHTML):el.append(wrapperHTML)}))},wrap:function wrap(wrapperHTML){return this.each((function(){FakejQuery(this).wrapAll(wrapperHTML)}))},css:function css(styles,val){var el,key,cptStyle,getCptStyle=window.getComputedStyle;return _type(styles)==TYPES.s?val===undefined$1?(el=this[0],cptStyle=getCptStyle?getCptStyle(el,null):el.currentStyle[styles],getCptStyle?null!=cptStyle?cptStyle.getPropertyValue(styles):el[LEXICON.s][styles]:cptStyle):this.each((function(){setCSSVal(this,styles,val)})):this.each((function(){for(key in styles)setCSSVal(this,key,styles[key])}))},hasClass:function hasClass(className){for(var elem,classList,i=0,classNamePrepared=_strSpace+className+_strSpace;elem=this[i++];){if((classList=elem.classList)&&classList.contains(className))return!0;if(1===elem.nodeType&&(_strSpace+stripAndCollapse(elem.className+_strEmpty)+_strSpace).indexOf(classNamePrepared)>-1)return!0}return!1},addClass:function addClass(className){var classes,elem,cur,curValue,clazz,finalValue,supportClassList,elmClassList,i=0,v=0;if(className)for(classes=className.match(_rnothtmlwhite)||[];elem=this[i++];)if(elmClassList=elem.classList,supportClassList===undefined$1&&(supportClassList=elmClassList!==undefined$1),supportClassList)for(;clazz=classes[v++];)elmClassList.add(clazz);else if(curValue=elem.className+_strEmpty,cur=1===elem.nodeType&&_strSpace+stripAndCollapse(curValue)+_strSpace){for(;clazz=classes[v++];)cur.indexOf(_strSpace+clazz+_strSpace)<0&&(cur+=clazz+_strSpace);curValue!==(finalValue=stripAndCollapse(cur))&&(elem.className=finalValue)}return this},removeClass:function removeClass(className){var classes,elem,cur,curValue,clazz,finalValue,supportClassList,elmClassList,i=0,v=0;if(className)for(classes=className.match(_rnothtmlwhite)||[];elem=this[i++];)if(elmClassList=elem.classList,supportClassList===undefined$1&&(supportClassList=elmClassList!==undefined$1),supportClassList)for(;clazz=classes[v++];)elmClassList.remove(clazz);else if(curValue=elem.className+_strEmpty,cur=1===elem.nodeType&&_strSpace+stripAndCollapse(curValue)+_strSpace){for(;clazz=classes[v++];)for(;cur.indexOf(_strSpace+clazz+_strSpace)>-1;)cur=cur.replace(_strSpace+clazz+_strSpace,_strSpace);curValue!==(finalValue=stripAndCollapse(cur))&&(elem.className=finalValue)}return this},hide:function hide(){return this.each((function(){this[LEXICON.s].display="none"}))},show:function show(){return this.each((function(){this[LEXICON.s].display="block"}))},attr:function attr(attrName,value){for(var el,i=0;el=this[i++];){if(value===undefined$1)return el.getAttribute(attrName);el.setAttribute(attrName,value)}return this},removeAttr:function removeAttr(attrName){return this.each((function(){this.removeAttribute(attrName)}))},offset:function offset(){var rect=this[0][LEXICON.bCR](),scrollLeft=window.pageXOffset||document.documentElement[_strScrollLeft],scrollTop=window.pageYOffset||document.documentElement[_strScrollTop];return{top:rect.top+scrollTop,left:rect.left+scrollLeft}},position:function position(){var el=this[0];return{top:el.offsetTop,left:el.offsetLeft}},scrollLeft:function scrollLeft(value){for(var el,i=0;el=this[i++];){if(value===undefined$1)return el[_strScrollLeft];el[_strScrollLeft]=value}return this},scrollTop:function scrollTop(value){for(var el,i=0;el=this[i++];){if(value===undefined$1)return el[_strScrollTop];el[_strScrollTop]=value}return this},val:function val(value){var el=this[0];return value?(el.value=value,this):el.value},first:function first(){return this.eq(0)},last:function last(){return this.eq(-1)},eq:function eq(index){return FakejQuery(this[index>=0?index:this[LEXICON.l]+index])},find:function find(selector){var i,children=[];return this.each((function(){var ch=this.querySelectorAll(selector);for(i=0;i-1){if(!(argLen>1))return _targets[index][_instancePropertyString];delete target[_instancePropertyString],_targets.splice(index,1)}}}),PLUGIN=function(){var _plugin,_pluginsGlobals,_pluginsAutoUpdateLoop,type,possibleTemplateTypes,restrictedStringsSplit,restrictedStringsPossibilitiesSplit,classNameAllowedValues,numberAllowedValues,booleanNullAllowedValues,booleanTrueTemplate,booleanFalseTemplate,callbackTemplate,overflowBehaviorAllowedValues,optionsDefaultsAndTemplate,convert,_pluginsExtensions=[],_pluginsOptions=(type=COMPATIBILITY.type,possibleTemplateTypes=[TYPES.b,TYPES.n,TYPES.s,TYPES.a,TYPES.o,TYPES.f,TYPES.z],restrictedStringsSplit=" ",restrictedStringsPossibilitiesSplit=":",classNameAllowedValues=[TYPES.z,TYPES.s],numberAllowedValues=TYPES.n,booleanNullAllowedValues=[TYPES.z,TYPES.b],booleanTrueTemplate=[!0,TYPES.b],booleanFalseTemplate=[!1,TYPES.b],callbackTemplate=[null,[TYPES.z,TYPES.f]],overflowBehaviorAllowedValues="v-h:visible-hidden v-s:visible-scroll s:scroll h:hidden",optionsDefaultsAndTemplate={className:["os-theme-dark",classNameAllowedValues],resize:["none","n:none b:both h:horizontal v:vertical"],sizeAutoCapable:booleanTrueTemplate,clipAlways:booleanTrueTemplate,normalizeRTL:booleanTrueTemplate,paddingAbsolute:booleanFalseTemplate,autoUpdate:[null,booleanNullAllowedValues],autoUpdateInterval:[33,numberAllowedValues],updateOnLoad:[["img"],[TYPES.s,TYPES.a,TYPES.z]],nativeScrollbarsOverlaid:{showNativeScrollbars:booleanFalseTemplate,initialize:booleanTrueTemplate},overflowBehavior:{x:["scroll",overflowBehaviorAllowedValues],y:["scroll",overflowBehaviorAllowedValues]},scrollbars:{visibility:["auto","v:visible h:hidden a:auto"],autoHide:["never","n:never s:scroll l:leave m:move"],autoHideDelay:[800,numberAllowedValues],dragScrolling:booleanTrueTemplate,clickScrolling:booleanFalseTemplate,touchSupport:booleanTrueTemplate,snapHandle:booleanFalseTemplate},textarea:{dynWidth:booleanFalseTemplate,dynHeight:booleanFalseTemplate,inheritedAttrs:[["style","class"],[TYPES.s,TYPES.a,TYPES.z]]},callbacks:{onInitialized:callbackTemplate,onInitializationWithdrawn:callbackTemplate,onDestroyed:callbackTemplate,onScrollStart:callbackTemplate,onScroll:callbackTemplate,onScrollStop:callbackTemplate,onOverflowChanged:callbackTemplate,onOverflowAmountChanged:callbackTemplate,onDirectionChanged:callbackTemplate,onContentSizeChanged:callbackTemplate,onHostSizeChanged:callbackTemplate,onUpdated:callbackTemplate}},{_defaults:(convert=function convert(template){return function recursive(obj){var key,val,valType;for(key in obj)obj[LEXICON.hOP](key)&&(val=obj[key],(valType=type(val))==TYPES.a?obj[key]=val[template?1:0]:valType==TYPES.o&&(obj[key]=recursive(val)));return obj}(FRAMEWORK.extend(!0,{},optionsDefaultsAndTemplate))})(),_template:convert(!0),_validate:function _validate(obj,template,writeErrors,diffObj){var validatedOptions={},validatedOptionsPrepared={},objectCopy=FRAMEWORK.extend(!0,{},obj),inArray=FRAMEWORK.inArray,isEmptyObj=FRAMEWORK.isEmptyObject,checkObjectProps=function checkObjectProps(data,template,diffData,validatedOptions,validatedOptionsPrepared,prevPropName){for(var prop in template)if(template[LEXICON.hOP](prop)&&data[LEXICON.hOP](prop)){var restrictedStringValuesSplit,restrictedStringValuesPossibilitiesSplit,isRestrictedValue,mainPossibility,currType,i,v,j,isValid=!1,isDiff=!1,templateValue=template[prop],templateValueType=type(templateValue),templateIsComplex=templateValueType==TYPES.o,templateTypes=COMPATIBILITY.isA(templateValue)?templateValue:[templateValue],dataDiffValue=diffData[prop],dataValue=data[prop],dataValueType=type(dataValue),propPrefix=prevPropName?prevPropName+".":"",error='The option "'+propPrefix+prop+"\" wasn't set, because",errorPossibleTypes=[],errorRestrictedStrings=[];if(dataDiffValue=dataDiffValue===undefined$1?{}:dataDiffValue,templateIsComplex&&dataValueType==TYPES.o)validatedOptions[prop]={},validatedOptionsPrepared[prop]={},checkObjectProps(dataValue,templateValue,dataDiffValue,validatedOptions[prop],validatedOptionsPrepared[prop],propPrefix+prop),FRAMEWORK.each([data,validatedOptions,validatedOptionsPrepared],(function(index,value){isEmptyObj(value[prop])&&delete value[prop]}));else if(!templateIsComplex){for(i=0;i0?"\r\nValid strings are: [ "+errorRestrictedStrings.join(", ").split(restrictedStringsPossibilitiesSplit).join(", ")+" ].":"")),delete data[prop]}}};return checkObjectProps(objectCopy,template,diffObj||{},validatedOptions,validatedOptionsPrepared),!isEmptyObj(objectCopy)&&writeErrors&&console.warn("The following options are discarded due to invalidity:\r\n"+window.JSON.stringify(objectCopy,null,2)),{_default:validatedOptions,_prepared:validatedOptionsPrepared}}});function initOverlayScrollbarsStatics(){_pluginsGlobals||(_pluginsGlobals=new OverlayScrollbarsGlobals(_pluginsOptions._defaults)),_pluginsAutoUpdateLoop||(_pluginsAutoUpdateLoop=new OverlayScrollbarsAutoUpdateLoop(_pluginsGlobals))}function OverlayScrollbarsGlobals(defaultOptions){var _base=this,strOverflow="overflow",strHidden="hidden",strScroll="scroll",bodyElement=FRAMEWORK("body"),scrollbarDummyElement=FRAMEWORK('
'),scrollbarDummyElement0=scrollbarDummyElement[0],dummyContainerChild=FRAMEWORK(scrollbarDummyElement.children("div").eq(0));bodyElement.append(scrollbarDummyElement),scrollbarDummyElement.hide().show();var nativeScrollbarSize=calcNativeScrollbarSize(scrollbarDummyElement0),nativeScrollbarIsOverlaid={x:0===nativeScrollbarSize.x,y:0===nativeScrollbarSize.y},msie=function(){var result,ua=window.navigator.userAgent,strIndexOf="indexOf",strSubString="substring",msie=ua[strIndexOf]("MSIE "),trident=ua[strIndexOf]("Trident/"),edge=ua[strIndexOf]("Edge/"),rv=ua[strIndexOf]("rv:"),parseIntFunc=parseInt;return msie>0?result=parseIntFunc(ua[strSubString](msie+5,ua[strIndexOf](".",msie)),10):trident>0?result=parseIntFunc(ua[strSubString](rv+3,ua[strIndexOf](".",rv)),10):edge>0&&(result=parseIntFunc(ua[strSubString](edge+5,ua[strIndexOf](".",edge)),10)),result}();function calcNativeScrollbarSize(measureElement){return{x:measureElement[LEXICON.oH]-measureElement[LEXICON.cH],y:measureElement[LEXICON.oW]-measureElement[LEXICON.cW]}}FRAMEWORK.extend(_base,{defaultOptions:defaultOptions,msie:msie,autoUpdateLoop:!1,autoUpdateRecommended:!COMPATIBILITY.mO(),nativeScrollbarSize:nativeScrollbarSize,nativeScrollbarIsOverlaid:nativeScrollbarIsOverlaid,nativeScrollbarStyling:function(){var result=!1;scrollbarDummyElement.addClass("os-viewport-native-scrollbars-invisible");try{result="none"===scrollbarDummyElement.css("scrollbar-width")&&(msie>9||!msie)||"none"===window.getComputedStyle(scrollbarDummyElement0,"::-webkit-scrollbar").getPropertyValue("display")}catch(ex){}return result}(),overlayScrollbarDummySize:{x:30,y:30},cssCalc:VENDORS._cssPropertyValue("width","calc","(1px)")||null,restrictedMeasuring:function(){scrollbarDummyElement.css(strOverflow,strHidden);var scrollSize={w:scrollbarDummyElement0[LEXICON.sW],h:scrollbarDummyElement0[LEXICON.sH]};scrollbarDummyElement.css(strOverflow,"visible");var scrollSize2={w:scrollbarDummyElement0[LEXICON.sW],h:scrollbarDummyElement0[LEXICON.sH]};return scrollSize.w-scrollSize2.w!=0||scrollSize.h-scrollSize2.h!=0}(),rtlScrollBehavior:function(){scrollbarDummyElement.css({"overflow-y":strHidden,"overflow-x":strScroll,direction:"rtl"}).scrollLeft(0);var dummyContainerOffset=scrollbarDummyElement.offset(),dummyContainerChildOffset=dummyContainerChild.offset();scrollbarDummyElement.scrollLeft(-999);var dummyContainerChildOffsetAfterScroll=dummyContainerChild.offset();return{i:dummyContainerOffset.left===dummyContainerChildOffset.left,n:dummyContainerChildOffset.left!==dummyContainerChildOffsetAfterScroll.left}}(),supportTransform:!!VENDORS._cssProperty("transform"),supportTransition:!!VENDORS._cssProperty("transition"),supportPassiveEvents:function(){var supportsPassive=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function get(){supportsPassive=!0}}))}catch(e){}return supportsPassive}(),supportResizeObserver:!!COMPATIBILITY.rO(),supportMutationObserver:!!COMPATIBILITY.mO()}),scrollbarDummyElement.removeAttr(LEXICON.s).remove(),function(){if(!nativeScrollbarIsOverlaid.x||!nativeScrollbarIsOverlaid.y){var abs=MATH.abs,windowWidth=COMPATIBILITY.wW(),windowHeight=COMPATIBILITY.wH(),windowDpr=getWindowDPR(),onResize=function onResize(){if(INSTANCES().length>0){var newW=COMPATIBILITY.wW(),newH=COMPATIBILITY.wH(),deltaW=newW-windowWidth,deltaH=newH-windowHeight;if(0===deltaW&&0===deltaH)return;var newScrollbarSize,deltaWRatio=MATH.round(newW/(windowWidth/100)),deltaHRatio=MATH.round(newH/(windowHeight/100)),absDeltaW=abs(deltaW),absDeltaH=abs(deltaH),absDeltaWRatio=abs(deltaWRatio),absDeltaHRatio=abs(deltaHRatio),newDPR=getWindowDPR(),deltaIsBigger=absDeltaW>2&&absDeltaH>2,difference=!differenceIsBiggerThanOne(absDeltaWRatio,absDeltaHRatio),isZoom=deltaIsBigger&&difference&&newDPR!==windowDpr&&windowDpr>0,oldScrollbarSize=_base.nativeScrollbarSize;isZoom&&(bodyElement.append(scrollbarDummyElement),newScrollbarSize=_base.nativeScrollbarSize=calcNativeScrollbarSize(scrollbarDummyElement[0]),scrollbarDummyElement.remove(),oldScrollbarSize.x===newScrollbarSize.x&&oldScrollbarSize.y===newScrollbarSize.y||FRAMEWORK.each(INSTANCES(),(function(){INSTANCES(this)&&INSTANCES(this).update("zoom")}))),windowWidth=newW,windowHeight=newH,windowDpr=newDPR}};FRAMEWORK(window).on("resize",onResize)}function differenceIsBiggerThanOne(valOne,valTwo){var absValOne=abs(valOne),absValTwo=abs(valTwo);return!(absValOne===absValTwo||absValOne+1===absValTwo||absValOne-1===absValTwo)}function getWindowDPR(){var dDPI=window.screen.deviceXDPI||0,sDPI=window.screen.logicalXDPI||1;return window.devicePixelRatio||dDPI/sDPI}}()}function OverlayScrollbarsAutoUpdateLoop(globals){var _loopID,_base=this,_inArray=FRAMEWORK.inArray,_getNow=COMPATIBILITY.now,_strAutoUpdate="autoUpdate",_strAutoUpdateInterval=_strAutoUpdate+"Interval",_strLength=LEXICON.l,_loopingInstances=[],_loopingInstancesIntervalCache=[],_loopIsActive=!1,_loopIntervalDefault=33,_loopInterval=_loopIntervalDefault,_loopTimeOld=_getNow(),loop=function loop(){if(_loopingInstances[_strLength]>0&&_loopIsActive){_loopID=COMPATIBILITY.rAF()((function(){loop()}));var lowestInterval,instance,instanceOptions,instanceAutoUpdateAllowed,instanceAutoUpdateInterval,now,timeNew=_getNow(),timeDelta=timeNew-_loopTimeOld;if(timeDelta>_loopInterval){_loopTimeOld=timeNew-timeDelta%_loopInterval,lowestInterval=_loopIntervalDefault;for(var i=0;i<_loopingInstances[_strLength];i++)(instance=_loopingInstances[i])!==undefined$1&&(instanceAutoUpdateAllowed=(instanceOptions=instance.options())[_strAutoUpdate],instanceAutoUpdateInterval=MATH.max(1,instanceOptions[_strAutoUpdateInterval]),now=_getNow(),(!0===instanceAutoUpdateAllowed||null===instanceAutoUpdateAllowed)&&now-_loopingInstancesIntervalCache[i]>instanceAutoUpdateInterval&&(instance.update("auto"),_loopingInstancesIntervalCache[i]=new Date(now+=instanceAutoUpdateInterval)),lowestInterval=MATH.max(1,MATH.min(lowestInterval,instanceAutoUpdateInterval)));_loopInterval=lowestInterval}}else _loopInterval=_loopIntervalDefault};_base.add=function(instance){-1===_inArray(instance,_loopingInstances)&&(_loopingInstances.push(instance),_loopingInstancesIntervalCache.push(_getNow()),_loopingInstances[_strLength]>0&&!_loopIsActive&&(_loopIsActive=!0,globals.autoUpdateLoop=_loopIsActive,loop()))},_base.remove=function(instance){var index=_inArray(instance,_loopingInstances);index>-1&&(_loopingInstancesIntervalCache.splice(index,1),_loopingInstances.splice(index,1),0===_loopingInstances[_strLength]&&_loopIsActive&&(_loopIsActive=!1,globals.autoUpdateLoop=_loopIsActive,_loopID!==undefined$1&&(COMPATIBILITY.cAF()(_loopID),_loopID=-1)))}}function OverlayScrollbarsInstance(pluginTargetElement,options,extensions,globals,autoUpdateLoop){var type=COMPATIBILITY.type,inArray=FRAMEWORK.inArray,each=FRAMEWORK.each,_base=new _plugin,_frameworkProto=FRAMEWORK[LEXICON.p];if(isHTMLElement(pluginTargetElement)){if(INSTANCES(pluginTargetElement)){var inst=INSTANCES(pluginTargetElement);return inst.options(options),inst}var _nativeScrollbarIsOverlaid,_overlayScrollbarDummySize,_rtlScrollBehavior,_autoUpdateRecommended,_msieVersion,_nativeScrollbarStyling,_cssCalc,_nativeScrollbarSize,_supportTransition,_supportTransform,_supportPassiveEvents,_supportResizeObserver,_supportMutationObserver,_initialized,_destroyed,_isTextarea,_isBody,_documentMixed,_domExists,_isBorderBox,_sizeAutoObserverAdded,_paddingX,_paddingY,_borderX,_borderY,_marginX,_marginY,_isRTL,_sleeping,_defaultOptions,_currentOptions,_currentPreparedOptions,_lastUpdateTime,_swallowedUpdateTimeout,_windowElement,_documentElement,_htmlElement,_bodyElement,_targetElement,_hostElement,_sizeAutoObserverElement,_sizeObserverElement,_paddingElement,_viewportElement,_contentElement,_contentArrangeElement,_contentGlueElement,_textareaCoverElement,_scrollbarCornerElement,_scrollbarHorizontalElement,_scrollbarHorizontalTrackElement,_scrollbarHorizontalHandleElement,_scrollbarVerticalElement,_scrollbarVerticalTrackElement,_scrollbarVerticalHandleElement,_windowElementNative,_documentElementNative,_targetElementNative,_hostElementNative,_sizeAutoObserverElementNative,_sizeObserverElementNative,_paddingElementNative,_viewportElementNative,_contentElementNative,_hostSizeCache,_contentScrollSizeCache,_arrangeContentSizeCache,_hasOverflowCache,_hideOverflowCache,_widthAutoCache,_heightAutoCache,_cssBoxSizingCache,_cssPaddingCache,_cssBorderCache,_cssMarginCache,_cssDirectionCache,_cssDirectionDetectedCache,_paddingAbsoluteCache,_clipAlwaysCache,_contentGlueSizeCache,_overflowBehaviorCache,_overflowAmountCache,_ignoreOverlayScrollbarHidingCache,_autoUpdateCache,_sizeAutoCapableCache,_contentElementScrollSizeChangeDetectedCache,_hostElementSizeChangeDetectedCache,_scrollbarsVisibilityCache,_scrollbarsAutoHideCache,_scrollbarsClickScrollingCache,_scrollbarsDragScrollingCache,_resizeCache,_normalizeRTLCache,_classNameCache,_oldClassName,_textareaAutoWrappingCache,_textareaInfoCache,_textareaSizeCache,_textareaDynHeightCache,_textareaDynWidthCache,_bodyMinSizeCache,_mutationObserverHost,_mutationObserverContent,_mutationObserverHostCallback,_mutationObserverContentCallback,_mutationObserversConnected,_textareaHasFocus,_scrollbarsAutoHideTimeoutId,_scrollbarsAutoHideMoveTimeoutId,_scrollbarsAutoHideDelay,_scrollbarsAutoHideNever,_scrollbarsAutoHideScroll,_scrollbarsAutoHideMove,_scrollbarsAutoHideLeave,_scrollbarsHandleHovered,_scrollbarsHandlesDefineScrollPos,_resizeNone,_resizeBoth,_resizeHorizontal,_resizeVertical,_contentBorderSize={},_scrollHorizontalInfo={},_scrollVerticalInfo={},_viewportSize={},_nativeScrollbarMinSize={},_strMinusHidden="-hidden",_strMarginMinus="margin-",_strPaddingMinus="padding-",_strBorderMinus="border-",_strTop="top",_strRight="right",_strBottom="bottom",_strLeft="left",_strMinMinus="min-",_strMaxMinus="max-",_strWidth="width",_strHeight="height",_strFloat="float",_strEmpty="",_strAuto="auto",_strSync="sync",_strScroll="scroll",_strHundredPercent="100%",_strX="x",_strY="y",_strDot=".",_strSpace=" ",_strScrollbar="scrollbar",_strMinusHorizontal="-horizontal",_strMinusVertical="-vertical",_strScrollLeft=_strScroll+"Left",_strScrollTop=_strScroll+"Top",_strMouseTouchDownEvent="mousedown touchstart",_strMouseTouchUpEvent="mouseup touchend touchcancel",_strMouseTouchMoveEvent="mousemove touchmove",_strMouseEnter="mouseenter",_strMouseLeave="mouseleave",_strKeyDownEvent="keydown",_strKeyUpEvent="keyup",_strSelectStartEvent="selectstart",_strTransitionEndEvent="transitionend webkitTransitionEnd oTransitionEnd",_strResizeObserverProperty="__overlayScrollbarsRO__",_cassNamesPrefix="os-",_classNameHTMLElement=_cassNamesPrefix+"html",_classNameHostElement=_cassNamesPrefix+"host",_classNameHostElementForeign=_classNameHostElement+"-foreign",_classNameHostTextareaElement=_classNameHostElement+"-textarea",_classNameHostScrollbarHorizontalHidden=_classNameHostElement+"-"+_strScrollbar+_strMinusHorizontal+_strMinusHidden,_classNameHostScrollbarVerticalHidden=_classNameHostElement+"-"+_strScrollbar+_strMinusVertical+_strMinusHidden,_classNameHostTransition=_classNameHostElement+"-transition",_classNameHostRTL=_classNameHostElement+"-rtl",_classNameHostResizeDisabled=_classNameHostElement+"-resize-disabled",_classNameHostScrolling=_classNameHostElement+"-scrolling",_classNameHostOverflow=_classNameHostElement+"-overflow",_classNameHostOverflowX=(_classNameHostOverflow=_classNameHostElement+"-overflow")+"-x",_classNameHostOverflowY=_classNameHostOverflow+"-y",_classNameTextareaElement=_cassNamesPrefix+"textarea",_classNameTextareaCoverElement=_classNameTextareaElement+"-cover",_classNamePaddingElement=_cassNamesPrefix+"padding",_classNameViewportElement=_cassNamesPrefix+"viewport",_classNameViewportNativeScrollbarsInvisible=_classNameViewportElement+"-native-scrollbars-invisible",_classNameViewportNativeScrollbarsOverlaid=_classNameViewportElement+"-native-scrollbars-overlaid",_classNameContentElement=_cassNamesPrefix+"content",_classNameContentArrangeElement=_cassNamesPrefix+"content-arrange",_classNameContentGlueElement=_cassNamesPrefix+"content-glue",_classNameSizeAutoObserverElement=_cassNamesPrefix+"size-auto-observer",_classNameResizeObserverElement=_cassNamesPrefix+"resize-observer",_classNameResizeObserverItemElement=_cassNamesPrefix+"resize-observer-item",_classNameResizeObserverItemFinalElement=_classNameResizeObserverItemElement+"-final",_classNameTextInherit=_cassNamesPrefix+"text-inherit",_classNameScrollbar=_cassNamesPrefix+_strScrollbar,_classNameScrollbarTrack=_classNameScrollbar+"-track",_classNameScrollbarTrackOff=_classNameScrollbarTrack+"-off",_classNameScrollbarHandle=_classNameScrollbar+"-handle",_classNameScrollbarHandleOff=_classNameScrollbarHandle+"-off",_classNameScrollbarUnusable=_classNameScrollbar+"-unusable",_classNameScrollbarAutoHidden=_classNameScrollbar+"-"+_strAuto+_strMinusHidden,_classNameScrollbarCorner=_classNameScrollbar+"-corner",_classNameScrollbarCornerResize=_classNameScrollbarCorner+"-resize",_classNameScrollbarCornerResizeB=_classNameScrollbarCornerResize+"-both",_classNameScrollbarCornerResizeH=_classNameScrollbarCornerResize+_strMinusHorizontal,_classNameScrollbarCornerResizeV=_classNameScrollbarCornerResize+_strMinusVertical,_classNameScrollbarHorizontal=_classNameScrollbar+_strMinusHorizontal,_classNameScrollbarVertical=_classNameScrollbar+_strMinusVertical,_classNameDragging=_cassNamesPrefix+"dragging",_classNameThemeNone=_cassNamesPrefix+"theme-none",_classNamesDynamicDestroy=[_classNameViewportNativeScrollbarsInvisible,_classNameViewportNativeScrollbarsOverlaid,_classNameScrollbarTrackOff,_classNameScrollbarHandleOff,_classNameScrollbarUnusable,_classNameScrollbarAutoHidden,_classNameScrollbarCornerResize,_classNameScrollbarCornerResizeB,_classNameScrollbarCornerResizeH,_classNameScrollbarCornerResizeV,_classNameDragging].join(_strSpace),_callbacksInitQeueue=[],_viewportAttrsFromTarget=[LEXICON.ti],_extensions={},_extensionsPrivateMethods="added removed on contract",_swallowedUpdateHints={},_swallowUpdateLag=42,_updateOnLoadEventName="load",_updateOnLoadElms=[],_updateAutoCache={},_mutationObserverAttrsTextarea=["wrap","cols","rows"],_mutationObserverAttrsHost=[LEXICON.i,LEXICON.c,LEXICON.s,"open"].concat(_viewportAttrsFromTarget),_destroyEvents=[];return _base.sleep=function(){_sleeping=!0},_base.update=function(force){var attrsChanged,contentSizeC,doUpdateAuto,mutHost,mutContent;if(!_destroyed)return type(force)==TYPES.s?force===_strAuto?(attrsChanged=meaningfulAttrsChanged(),contentSizeC=updateAutoContentSizeChanged(),(doUpdateAuto=attrsChanged||contentSizeC)&&update({_contentSizeChanged:contentSizeC,_changedOptions:_initialized?undefined$1:_currentPreparedOptions})):force===_strSync?_mutationObserversConnected?(mutHost=_mutationObserverHostCallback(_mutationObserverHost.takeRecords()),mutContent=_mutationObserverContentCallback(_mutationObserverContent.takeRecords())):mutHost=_base.update(_strAuto):"zoom"===force&&update({_hostSizeChanged:!0,_contentSizeChanged:!0}):(force=_sleeping||force,_sleeping=!1,_base.update(_strSync)&&!force||update({_force:force})),updateElementsOnLoad(),doUpdateAuto||mutHost||mutContent},_base.options=function(newOptions,value){var changedOps,option={};if(FRAMEWORK.isEmptyObject(newOptions)||!FRAMEWORK.isPlainObject(newOptions)){if(type(newOptions)!=TYPES.s)return _currentOptions;if(!(arguments.length>1))return getObjectPropVal(_currentOptions,newOptions);setObjectPropVal(option,newOptions,value),changedOps=setOptions(option)}else changedOps=setOptions(newOptions);FRAMEWORK.isEmptyObject(changedOps)||update({_changedOptions:changedOps})},_base.destroy=function(){if(!_destroyed){for(var extName in autoUpdateLoop.remove(_base),disconnectMutationObservers(),setupResizeObserver(_sizeObserverElement),setupResizeObserver(_sizeAutoObserverElement),_extensions)_base.removeExt(extName);for(;_destroyEvents[LEXICON.l]>0;)_destroyEvents.pop()();setupHostMouseTouchEvents(!0),_contentGlueElement&&remove(_contentGlueElement),_contentArrangeElement&&remove(_contentArrangeElement),_sizeAutoObserverAdded&&remove(_sizeAutoObserverElement),setupScrollbarsDOM(!0),setupScrollbarCornerDOM(!0),setupStructureDOM(!0);for(var i=0;i<_updateOnLoadElms[LEXICON.l];i++)FRAMEWORK(_updateOnLoadElms[i]).off(_updateOnLoadEventName,updateOnLoadCallback);_updateOnLoadElms=undefined$1,_destroyed=!0,_sleeping=!0,INSTANCES(pluginTargetElement,0),dispatchCallback("onDestroyed")}},_base.scroll=function(coordinates,duration,easing,complete){if(0===arguments.length||coordinates===undefined$1){var infoX=_scrollHorizontalInfo,infoY=_scrollVerticalInfo,normalizeInvert=_normalizeRTLCache&&_isRTL&&_rtlScrollBehavior.i,normalizeNegate=_normalizeRTLCache&&_isRTL&&_rtlScrollBehavior.n,scrollX=infoX._currentScroll,scrollXRatio=infoX._currentScrollRatio,maxScrollX=infoX._maxScroll;return scrollXRatio=normalizeInvert?1-scrollXRatio:scrollXRatio,scrollX=normalizeInvert?maxScrollX-scrollX:scrollX,maxScrollX*=normalizeNegate?-1:1,{position:{x:scrollX*=normalizeNegate?-1:1,y:infoY._currentScroll},ratio:{x:scrollXRatio,y:infoY._currentScrollRatio},max:{x:maxScrollX,y:infoY._maxScroll},handleOffset:{x:infoX._handleOffset,y:infoY._handleOffset},handleLength:{x:infoX._handleLength,y:infoY._handleLength},handleLengthRatio:{x:infoX._handleLengthRatio,y:infoY._handleLengthRatio},trackLength:{x:infoX._trackLength,y:infoY._trackLength},snappedHandleOffset:{x:infoX._snappedHandleOffset,y:infoY._snappedHandleOffset},isRTL:_isRTL,isRTLNormalized:_normalizeRTLCache}}_base.update(_strSync);var i,doScrollLeft,doScrollTop,animationOptions,settingsAxis,settingsScroll,settingsBlock,settingsMargin,finalElement,normalizeRTL=_normalizeRTLCache,coordinatesXAxisProps=[_strX,_strLeft,"l"],coordinatesYAxisProps=[_strY,_strTop,"t"],coordinatesOperators=["+=","-=","*=","/="],durationIsObject=type(duration)==TYPES.o,completeCallback=durationIsObject?duration.complete:complete,finalScroll={},specialEasing={},strEnd="end",strBegin="begin",strCenter="center",strNearest="nearest",strAlways="always",strNever="never",strIfNeeded="ifneeded",strLength=LEXICON.l,elementObjSettingsAxisValues=[_strX,_strY,"xy","yx"],elementObjSettingsBlockValues=[strBegin,strEnd,strCenter,strNearest],elementObjSettingsScrollValues=[strAlways,strNever,strIfNeeded],coordinatesIsElementObj=coordinates[LEXICON.hOP]("el"),possibleElement=coordinatesIsElementObj?coordinates.el:coordinates,possibleElementIsJQuery=!!(possibleElement instanceof FRAMEWORK||JQUERY)&&possibleElement instanceof JQUERY,possibleElementIsHTMLElement=!possibleElementIsJQuery&&isHTMLElement(possibleElement),updateScrollbarInfos=function updateScrollbarInfos(){doScrollLeft&&refreshScrollbarHandleOffset(!0),doScrollTop&&refreshScrollbarHandleOffset(!1)},proxyCompleteCallback=type(completeCallback)!=TYPES.f?undefined$1:function(){updateScrollbarInfos(),completeCallback()};function checkSettingsStringValue(currValue,allowedValues){for(i=0;i2&&(possibleOperator=rawScroll.substr(0,2),inArray(possibleOperator,coordinatesOperators)>-1&&(operator=possibleOperator)),rawScroll=(rawScroll=operator?rawScroll.substr(2):rawScroll)[strReplace](/min/g,0)[strReplace](//g,(normalizeShortcuts?"-":_strEmpty)+_strHundredPercent)[strReplace](/px/g,_strEmpty)[strReplace](/%/g,mult+maxScroll*(isRTLisX&&_rtlScrollBehavior.n?-1:1)/100)[strReplace](/vw/g,mult+_viewportSize.w)[strReplace](/vh/g,mult+_viewportSize.h),amount=parseToZeroOrNumber(isNaN(rawScroll)?parseToZeroOrNumber(evalFunc(rawScroll),!0).toFixed():rawScroll)):amount=rawScroll,amount!==undefined$1&&!isNaN(amount)&&type(amount)==TYPES.n){var normalizeIsRTLisX=normalizeRTL&&isRTLisX,operatorCurrScroll=currScroll*(normalizeIsRTLisX&&_rtlScrollBehavior.n?-1:1),invert=normalizeIsRTLisX&&_rtlScrollBehavior.i,negate=normalizeIsRTLisX&&_rtlScrollBehavior.n;switch(operatorCurrScroll=invert?maxScroll-operatorCurrScroll:operatorCurrScroll,operator){case"+=":finalValue=operatorCurrScroll+amount;break;case"-=":finalValue=operatorCurrScroll-amount;break;case"*=":finalValue=operatorCurrScroll*amount;break;case"/=":finalValue=operatorCurrScroll/amount;break;default:finalValue=amount}finalValue=invert?maxScroll-finalValue:finalValue,finalValue*=negate?-1:1,finalValue=isRTLisX&&_rtlScrollBehavior.n?MATH.min(0,MATH.max(maxScroll,finalValue)):MATH.max(0,MATH.min(maxScroll,finalValue))}return finalValue===currScroll?undefined$1:finalValue}function getPerAxisValue(value,valueInternalType,defaultValue,allowedValues){var valueArrLength,valueArrItem,resultDefault=[defaultValue,defaultValue],valueType=type(value);if(valueType==valueInternalType)value=[value,value];else if(valueType==TYPES.a){if((valueArrLength=value[strLength])>2||valueArrLength<1)value=resultDefault;else for(1===valueArrLength&&(value[1]=defaultValue),i=0;i0){margin=marginType==TYPES.n||marginType==TYPES.b?generateMargin([margin,margin,margin,margin]):marginType==TYPES.a?2===(marginLength=margin[strLength])?generateMargin([margin[0],margin[1],margin[0],margin[1]]):marginLength>=4?generateMargin(margin):marginDefault:marginType==TYPES.o?generateMargin([margin[_strTop],margin[_strRight],margin[_strBottom],margin[_strLeft]]):marginDefault,settingsAxis=checkSettingsStringValue(axis,elementObjSettingsAxisValues)?axis:"xy",settingsScroll=getPerAxisValue(scroll,TYPES.s,strAlways,elementObjSettingsScrollValues),settingsBlock=getPerAxisValue(block,TYPES.s,strBegin,elementObjSettingsBlockValues),settingsMargin=margin;var viewportScroll={l:_scrollHorizontalInfo._currentScroll,t:_scrollVerticalInfo._currentScroll},viewportOffset=_paddingElement.offset(),elementOffset=finalElement.offset(),doNotScroll={x:settingsScroll.x==strNever||settingsAxis==_strY,y:settingsScroll.y==strNever||settingsAxis==_strX};elementOffset[_strTop]-=settingsMargin[0],elementOffset[_strLeft]-=settingsMargin[3];var elementScrollCoordinates={x:MATH.round(elementOffset[_strLeft]-viewportOffset[_strLeft]+viewportScroll.l),y:MATH.round(elementOffset[_strTop]-viewportOffset[_strTop]+viewportScroll.t)};if(_isRTL&&(_rtlScrollBehavior.n||_rtlScrollBehavior.i||(elementScrollCoordinates.x=MATH.round(viewportOffset[_strLeft]-elementOffset[_strLeft]+viewportScroll.l)),_rtlScrollBehavior.n&&normalizeRTL&&(elementScrollCoordinates.x*=-1),_rtlScrollBehavior.i&&normalizeRTL&&(elementScrollCoordinates.x=MATH.round(viewportOffset[_strLeft]-elementOffset[_strLeft]+(_scrollHorizontalInfo._maxScroll-viewportScroll.l)))),settingsBlock.x!=strBegin||settingsBlock.y!=strBegin||settingsScroll.x==strIfNeeded||settingsScroll.y==strIfNeeded||_isRTL){var measuringElm=finalElement[0],rawElementSize=_supportTransform?measuringElm[LEXICON.bCR]():{width:measuringElm[LEXICON.oW],height:measuringElm[LEXICON.oH]},elementSize={w:rawElementSize[_strWidth]+settingsMargin[3]+settingsMargin[1],h:rawElementSize[_strHeight]+settingsMargin[0]+settingsMargin[2]},finalizeBlock=function finalizeBlock(isX){var vars=getScrollbarVars(isX),wh=vars._w_h,lt=vars._left_top,xy=vars._x_y,blockIsEnd=settingsBlock[xy]==(isX&&_isRTL?strBegin:strEnd),blockIsCenter=settingsBlock[xy]==strCenter,blockIsNearest=settingsBlock[xy]==strNearest,scrollNever=settingsScroll[xy]==strNever,scrollIfNeeded=settingsScroll[xy]==strIfNeeded,vpSize=_viewportSize[wh],vpOffset=viewportOffset[lt],elSize=elementSize[wh],elOffset=elementOffset[lt],divide=blockIsCenter?2:1,elementCenterOffset=elOffset+elSize/2,viewportCenterOffset=vpOffset+vpSize/2,isInView=elSize<=vpSize&&elOffset>=vpOffset&&elOffset+elSize<=vpOffset+vpSize;scrollNever?doNotScroll[xy]=!0:doNotScroll[xy]||((blockIsNearest||scrollIfNeeded)&&(doNotScroll[xy]=!!scrollIfNeeded&&isInView,blockIsEnd=elSizeviewportCenterOffset:elementCenterOffset0||durationIsObject)?durationIsObject?(duration.complete=proxyCompleteCallback,_viewportElement.animate(finalScroll,duration)):(animationOptions={duration:duration,complete:proxyCompleteCallback},COMPATIBILITY.isA(easing)||FRAMEWORK.isPlainObject(easing)?(specialEasing[_strScrollLeft]=easing[0]||easing.x,specialEasing[_strScrollTop]=easing[1]||easing.y,animationOptions.specialEasing=specialEasing):animationOptions.easing=easing,_viewportElement.animate(finalScroll,animationOptions)):(doScrollLeft&&_viewportElement[_strScrollLeft](finalScroll[_strScrollLeft]),doScrollTop&&_viewportElement[_strScrollTop](finalScroll[_strScrollTop]),updateScrollbarInfos())},_base.scrollStop=function(param1,param2,param3){return _viewportElement.stop(param1,param2,param3),_base},_base.getElements=function(elementName){var obj={target:_targetElementNative,host:_hostElementNative,padding:_paddingElementNative,viewport:_viewportElementNative,content:_contentElementNative,scrollbarHorizontal:{scrollbar:_scrollbarHorizontalElement[0],track:_scrollbarHorizontalTrackElement[0],handle:_scrollbarHorizontalHandleElement[0]},scrollbarVertical:{scrollbar:_scrollbarVerticalElement[0],track:_scrollbarVerticalTrackElement[0],handle:_scrollbarVerticalHandleElement[0]},scrollbarCorner:_scrollbarCornerElement[0]};return type(elementName)==TYPES.s?getObjectPropVal(obj,elementName):obj},_base.getState=function(stateProperty){function prepare(obj){if(!FRAMEWORK.isPlainObject(obj))return obj;var extended=extendDeep({},obj),changePropertyName=function changePropertyName(from,to){extended[LEXICON.hOP](from)&&(extended[to]=extended[from],delete extended[from])};return changePropertyName("w",_strWidth),changePropertyName("h",_strHeight),delete extended.c,extended}var obj={destroyed:!!prepare(_destroyed),sleeping:!!prepare(_sleeping),autoUpdate:prepare(!_mutationObserversConnected),widthAuto:prepare(_widthAutoCache),heightAuto:prepare(_heightAutoCache),padding:prepare(_cssPaddingCache),overflowAmount:prepare(_overflowAmountCache),hideOverflow:prepare(_hideOverflowCache),hasOverflow:prepare(_hasOverflowCache),contentScrollSize:prepare(_contentScrollSizeCache),viewportSize:prepare(_viewportSize),hostSize:prepare(_hostSizeCache),documentMixed:prepare(_documentMixed)};return type(stateProperty)==TYPES.s?getObjectPropVal(obj,stateProperty):obj},_base.ext=function(extName){var result,privateMethods=_extensionsPrivateMethods.split(" "),i=0;if(type(extName)==TYPES.s){if(_extensions[LEXICON.hOP](extName))for(result=extendDeep({},_extensions[extName]);i9||!_autoUpdateRecommended){targetElement.prepend(generateDiv(_classNameResizeObserverElement,generateDiv({c:_classNameResizeObserverItemElement,dir:"ltr"},generateDiv(_classNameResizeObserverItemElement,generateDiv(_classNameResizeObserverItemFinalElement))+generateDiv(_classNameResizeObserverItemElement,generateDiv({c:_classNameResizeObserverItemFinalElement,style:"width: 200%; height: 200%"})))));var isDirty,rAFId,currWidth,currHeight,observerElement=targetElement[0][strChildNodes][0][strChildNodes][0],shrinkElement=FRAMEWORK(observerElement[strChildNodes][1]),expandElement=FRAMEWORK(observerElement[strChildNodes][0]),expandElementChild=FRAMEWORK(expandElement[0][strChildNodes][0]),widthCache=observerElement[LEXICON.oW],heightCache=observerElement[LEXICON.oH],factor=2,nativeScrollbarSize=globals.nativeScrollbarSize,reset=function reset(){expandElement[_strScrollLeft](constScroll)[_strScrollTop](constScroll),shrinkElement[_strScrollLeft](constScroll)[_strScrollTop](constScroll)},onResized=function onResized(){rAFId=0,isDirty&&(widthCache=currWidth,heightCache=currHeight,callback())},onScroll=function onScroll(event){return currWidth=observerElement[LEXICON.oW],currHeight=observerElement[LEXICON.oH],isDirty=currWidth!=widthCache||currHeight!=heightCache,event&&isDirty&&!rAFId?(COMPATIBILITY.cAF()(rAFId),rAFId=COMPATIBILITY.rAF()(onResized)):event||onResized(),reset(),event&&(COMPATIBILITY.prvD(event),COMPATIBILITY.stpP(event)),!1},expandChildCSS={},observerElementCSS={};setTopRightBottomLeft(observerElementCSS,_strEmpty,[-(nativeScrollbarSize.y+1)*factor,nativeScrollbarSize.x*-factor,nativeScrollbarSize.y*-factor,-(nativeScrollbarSize.x+1)*factor]),FRAMEWORK(observerElement).css(observerElementCSS),expandElement.on(_strScroll,onScroll),shrinkElement.on(_strScroll,onScroll),targetElement.on(strAnimationStartEvent,(function(){onScroll(!1)})),expandChildCSS[_strWidth]=constScroll,expandChildCSS[_strHeight]=constScroll,expandElementChild.css(expandChildCSS),reset()}else{var attachEvent=_documentElementNative.attachEvent,isIE=_msieVersion!==undefined$1;if(attachEvent)targetElement.prepend(generateDiv(_classNameResizeObserverElement)),findFirst(targetElement,_strDot+_classNameResizeObserverElement)[0].attachEvent("onresize",callback);else{var obj=_documentElementNative.createElement(TYPES.o);obj.setAttribute(LEXICON.ti,"-1"),obj.setAttribute(LEXICON.c,_classNameResizeObserverElement),obj.onload=function(){var wnd=this.contentDocument.defaultView;wnd.addEventListener("resize",callback),wnd.document.documentElement.style.display="none"},obj.type="text/html",isIE&&targetElement.prepend(obj),obj.data="about:blank",isIE||targetElement.prepend(obj),targetElement.on(strAnimationStartEvent,callback)}}if(targetElement[0]===_sizeObserverElementNative){var directionChanged=function directionChanged(){var dir=_hostElement.css("direction"),css={},scrollLeftValue=0,result=!1;return dir!==_cssDirectionDetectedCache&&("ltr"===dir?(css[_strLeft]=0,css[_strRight]=_strAuto,scrollLeftValue=constScroll):(css[_strLeft]=_strAuto,css[_strRight]=0,scrollLeftValue=_rtlScrollBehavior.n?-constScroll:_rtlScrollBehavior.i?0:constScroll),_sizeObserverElement.children().eq(0).css(css),_sizeObserverElement[_strScrollLeft](scrollLeftValue)[_strScrollTop](constScroll),_cssDirectionDetectedCache=dir,result=!0),result};directionChanged(),addDestroyEventListener(targetElement,_strScroll,(function(event){return directionChanged()&&update(),COMPATIBILITY.prvD(event),COMPATIBILITY.stpP(event),!1}))}}else if(_supportResizeObserver){var element,resizeObserverObj=(element=targetElement.contents()[0])[_strResizeObserverProperty];resizeObserverObj&&(resizeObserverObj.disconnect(),delete element[_strResizeObserverProperty])}else remove(targetElement.children(_strDot+_classNameResizeObserverElement).eq(0))}}function createMutationObservers(){if(_supportMutationObserver){var mutationTarget,mutationAttrName,mutationIsClass,oldMutationVal,newClassVal,hostClassNameRegex,contentTimeout,now,sizeAuto,action,mutationObserverContentLag=11,mutationObserver=COMPATIBILITY.mO(),contentLastUpdate=COMPATIBILITY.now();_mutationObserverContentCallback=function _mutationObserverContentCallback(mutations){var doUpdate=!1;return _initialized&&!_sleeping&&(each(mutations,(function(){return!(doUpdate=isUnknownMutation(this))})),doUpdate&&(now=COMPATIBILITY.now(),sizeAuto=_heightAutoCache||_widthAutoCache,action=function action(){_destroyed||(contentLastUpdate=now,_isTextarea&&textareaUpdate(),sizeAuto?update():_base.update(_strAuto))},clearTimeout(contentTimeout),mutationObserverContentLag<=0||now-contentLastUpdate>mutationObserverContentLag||!sizeAuto?action():contentTimeout=setTimeout(action,mutationObserverContentLag))),doUpdate},_mutationObserverHost=new mutationObserver(_mutationObserverHostCallback=function _mutationObserverHostCallback(mutations){var mutation,doUpdate=!1,doUpdateForce=!1,mutatedAttrs=[];return _initialized&&!_sleeping&&(each(mutations,(function(){mutationTarget=(mutation=this).target,mutationAttrName=mutation.attributeName,mutationIsClass=mutationAttrName===LEXICON.c,oldMutationVal=mutation.oldValue,newClassVal=mutationTarget.className,_domExists&&mutationIsClass&&!doUpdateForce&&oldMutationVal.indexOf(_classNameHostElementForeign)>-1&&newClassVal.indexOf(_classNameHostElementForeign)<0&&(hostClassNameRegex=createHostClassNameRegExp(!0),_hostElementNative.className=newClassVal.split(_strSpace).concat(oldMutationVal.split(_strSpace).filter((function(name){return name.match(hostClassNameRegex)}))).join(_strSpace),doUpdate=doUpdateForce=!0),doUpdate||(doUpdate=mutationIsClass?hostClassNamesChanged(oldMutationVal,newClassVal):mutationAttrName!==LEXICON.s||oldMutationVal!==mutationTarget[LEXICON.s].cssText),mutatedAttrs.push(mutationAttrName)})),updateViewportAttrsFromTarget(mutatedAttrs),doUpdate&&_base.update(doUpdateForce||_strAuto)),doUpdate}),_mutationObserverContent=new mutationObserver(_mutationObserverContentCallback)}}function connectMutationObservers(){_supportMutationObserver&&!_mutationObserversConnected&&(_mutationObserverHost.observe(_hostElementNative,{attributes:!0,attributeOldValue:!0,attributeFilter:_mutationObserverAttrsHost}),_mutationObserverContent.observe(_isTextarea?_targetElementNative:_contentElementNative,{attributes:!0,attributeOldValue:!0,subtree:!_isTextarea,childList:!_isTextarea,characterData:!_isTextarea,attributeFilter:_isTextarea?_mutationObserverAttrsTextarea:_mutationObserverAttrsHost}),_mutationObserversConnected=!0)}function disconnectMutationObservers(){_supportMutationObserver&&_mutationObserversConnected&&(_mutationObserverHost.disconnect(),_mutationObserverContent.disconnect(),_mutationObserversConnected=!1)}function hostOnResized(){if(!_sleeping){var changed,hostSize={w:_sizeObserverElementNative[LEXICON.sW],h:_sizeObserverElementNative[LEXICON.sH]};changed=checkCache(hostSize,_hostElementSizeChangeDetectedCache),_hostElementSizeChangeDetectedCache=hostSize,changed&&update({_hostSizeChanged:!0})}}function hostOnMouseEnter(){_scrollbarsAutoHideLeave&&refreshScrollbarsAutoHide(!0)}function hostOnMouseLeave(){_scrollbarsAutoHideLeave&&!_bodyElement.hasClass(_classNameDragging)&&refreshScrollbarsAutoHide(!1)}function hostOnMouseMove(){_scrollbarsAutoHideMove&&(refreshScrollbarsAutoHide(!0),clearTimeout(_scrollbarsAutoHideMoveTimeoutId),_scrollbarsAutoHideMoveTimeoutId=setTimeout((function(){_scrollbarsAutoHideMove&&!_destroyed&&refreshScrollbarsAutoHide(!1)}),100))}function documentOnSelectStart(event){return COMPATIBILITY.prvD(event),!1}function updateOnLoadCallback(event){var elm=FRAMEWORK(event.target);eachUpdateOnLoad((function(i,updateOnLoadSelector){elm.is(updateOnLoadSelector)&&update({_contentSizeChanged:!0})}))}function setupHostMouseTouchEvents(destroy){destroy||setupHostMouseTouchEvents(!0),setupResponsiveEventListener(_hostElement,_strMouseTouchMoveEvent.split(_strSpace)[0],hostOnMouseMove,!_scrollbarsAutoHideMove||destroy,!0),setupResponsiveEventListener(_hostElement,[_strMouseEnter,_strMouseLeave],[hostOnMouseEnter,hostOnMouseLeave],!_scrollbarsAutoHideLeave||destroy,!0),_initialized||destroy||_hostElement.one("mouseover",hostOnMouseEnter)}function bodyMinSizeChanged(){var bodyMinSize={};return _isBody&&_contentArrangeElement&&(bodyMinSize.w=parseToZeroOrNumber(_contentArrangeElement.css(_strMinMinus+_strWidth)),bodyMinSize.h=parseToZeroOrNumber(_contentArrangeElement.css(_strMinMinus+_strHeight)),bodyMinSize.c=checkCache(bodyMinSize,_bodyMinSizeCache),bodyMinSize.f=!0),_bodyMinSizeCache=bodyMinSize,!!bodyMinSize.c}function hostClassNamesChanged(oldClassNames,newClassNames){var i,regex,currClasses=_typeof(newClassNames)==TYPES.s?newClassNames.split(_strSpace):[],diff=getArrayDifferences(_typeof(oldClassNames)==TYPES.s?oldClassNames.split(_strSpace):[],currClasses),idx=inArray(_classNameThemeNone,diff);if(idx>-1&&diff.splice(idx,1),diff[LEXICON.l]>0)for(regex=createHostClassNameRegExp(!0,!0),i=0;i0}}function isSizeAffectingCSSProperty(propertyName){if(!_initialized)return!0;var flexGrow="flex-grow",flexShrink="flex-shrink",flexBasis="flex-basis",affectingPropsX=[_strWidth,_strMinMinus+_strWidth,_strMaxMinus+_strWidth,_strMarginMinus+_strLeft,_strMarginMinus+_strRight,_strLeft,_strRight,"font-weight","word-spacing",flexGrow,flexShrink,flexBasis],affectingPropsXContentBox=[_strPaddingMinus+_strLeft,_strPaddingMinus+_strRight,_strBorderMinus+_strLeft+_strWidth,_strBorderMinus+_strRight+_strWidth],affectingPropsY=[_strHeight,_strMinMinus+_strHeight,_strMaxMinus+_strHeight,_strMarginMinus+_strTop,_strMarginMinus+_strBottom,_strTop,_strBottom,"line-height",flexGrow,flexShrink,flexBasis],affectingPropsYContentBox=[_strPaddingMinus+_strTop,_strPaddingMinus+_strBottom,_strBorderMinus+_strTop+_strWidth,_strBorderMinus+_strBottom+_strWidth],_strS="s",_strVS="v-s",checkX=_overflowBehaviorCache.x===_strS||_overflowBehaviorCache.x===_strVS,sizeIsAffected=!1,checkPropertyName=function checkPropertyName(arr,name){for(var i=0;i-1){var targetAttr=_targetElement.attr(attr);type(targetAttr)==TYPES.s?_viewportElement.attr(attr,targetAttr):_viewportElement.removeAttr(attr)}}))}function textareaUpdate(){if(!_sleeping){var origWidth,width,origHeight,height,wrapAttrOff=!_textareaAutoWrappingCache,minWidth=_viewportSize.w,minHeight=_viewportSize.h,css={},doMeasure=_widthAutoCache||wrapAttrOff;return css[_strMinMinus+_strWidth]=_strEmpty,css[_strMinMinus+_strHeight]=_strEmpty,css[_strWidth]=_strAuto,_targetElement.css(css),origWidth=_targetElementNative[LEXICON.oW],width=doMeasure?MATH.max(origWidth,_targetElementNative[LEXICON.sW]-1):1,css[_strWidth]=_widthAutoCache?_strAuto:_strHundredPercent,css[_strMinMinus+_strWidth]=_strHundredPercent,css[_strHeight]=_strAuto,_targetElement.css(css),origHeight=_targetElementNative[LEXICON.oH],height=MATH.max(origHeight,_targetElementNative[LEXICON.sH]-1),css[_strWidth]=width,css[_strHeight]=height,_textareaCoverElement.css(css),css[_strMinMinus+_strWidth]=minWidth,css[_strMinMinus+_strHeight]=minHeight,_targetElement.css(css),{_originalWidth:origWidth,_originalHeight:origHeight,_dynamicWidth:width,_dynamicHeight:height}}}function update(updateHints){clearTimeout(_swallowedUpdateTimeout),updateHints=updateHints||{},_swallowedUpdateHints._hostSizeChanged|=updateHints._hostSizeChanged,_swallowedUpdateHints._contentSizeChanged|=updateHints._contentSizeChanged,_swallowedUpdateHints._force|=updateHints._force;var displayIsHidden,now=COMPATIBILITY.now(),hostSizeChanged=!!_swallowedUpdateHints._hostSizeChanged,contentSizeChanged=!!_swallowedUpdateHints._contentSizeChanged,force=!!_swallowedUpdateHints._force,changedOptions=updateHints._changedOptions,swallow=_initialized&&!_destroyed&&!force&&!changedOptions&&now-_lastUpdateTime<_swallowUpdateLag&&!_heightAutoCache&&!_widthAutoCache;if(swallow&&(_swallowedUpdateTimeout=setTimeout(update,_swallowUpdateLag)),!(_destroyed||swallow||_sleeping&&!changedOptions||_initialized&&!force&&(displayIsHidden=_hostElement.is(":hidden"))||"inline"===_hostElement.css("display"))){_lastUpdateTime=now,_swallowedUpdateHints={},!_nativeScrollbarStyling||_nativeScrollbarIsOverlaid.x&&_nativeScrollbarIsOverlaid.y?_nativeScrollbarSize=extendDeep({},globals.nativeScrollbarSize):(_nativeScrollbarSize.x=0,_nativeScrollbarSize.y=0),_nativeScrollbarMinSize={x:3*(_nativeScrollbarSize.x+(_nativeScrollbarIsOverlaid.x?0:3)),y:3*(_nativeScrollbarSize.y+(_nativeScrollbarIsOverlaid.y?0:3))},changedOptions=changedOptions||{};var checkCacheAutoForce=function checkCacheAutoForce(){return checkCache.apply(this,[].slice.call(arguments).concat([force]))},currScroll={x:_viewportElement[_strScrollLeft](),y:_viewportElement[_strScrollTop]()},currentPreparedOptionsScrollbars=_currentPreparedOptions.scrollbars,currentPreparedOptionsTextarea=_currentPreparedOptions.textarea,scrollbarsVisibility=currentPreparedOptionsScrollbars.visibility,scrollbarsVisibilityChanged=checkCacheAutoForce(scrollbarsVisibility,_scrollbarsVisibilityCache),scrollbarsAutoHide=currentPreparedOptionsScrollbars.autoHide,scrollbarsAutoHideChanged=checkCacheAutoForce(scrollbarsAutoHide,_scrollbarsAutoHideCache),scrollbarsClickScrolling=currentPreparedOptionsScrollbars.clickScrolling,scrollbarsClickScrollingChanged=checkCacheAutoForce(scrollbarsClickScrolling,_scrollbarsClickScrollingCache),scrollbarsDragScrolling=currentPreparedOptionsScrollbars.dragScrolling,scrollbarsDragScrollingChanged=checkCacheAutoForce(scrollbarsDragScrolling,_scrollbarsDragScrollingCache),className=_currentPreparedOptions.className,classNameChanged=checkCacheAutoForce(className,_classNameCache),resize=_currentPreparedOptions.resize,resizeChanged=checkCacheAutoForce(resize,_resizeCache)&&!_isBody,paddingAbsolute=_currentPreparedOptions.paddingAbsolute,paddingAbsoluteChanged=checkCacheAutoForce(paddingAbsolute,_paddingAbsoluteCache),clipAlways=_currentPreparedOptions.clipAlways,clipAlwaysChanged=checkCacheAutoForce(clipAlways,_clipAlwaysCache),sizeAutoCapable=_currentPreparedOptions.sizeAutoCapable&&!_isBody,sizeAutoCapableChanged=checkCacheAutoForce(sizeAutoCapable,_sizeAutoCapableCache),ignoreOverlayScrollbarHiding=_currentPreparedOptions.nativeScrollbarsOverlaid.showNativeScrollbars,ignoreOverlayScrollbarHidingChanged=checkCacheAutoForce(ignoreOverlayScrollbarHiding,_ignoreOverlayScrollbarHidingCache),autoUpdate=_currentPreparedOptions.autoUpdate,autoUpdateChanged=checkCacheAutoForce(autoUpdate,_autoUpdateCache),overflowBehavior=_currentPreparedOptions.overflowBehavior,overflowBehaviorChanged=checkCacheAutoForce(overflowBehavior,_overflowBehaviorCache,force),textareaDynWidth=currentPreparedOptionsTextarea.dynWidth,textareaDynWidthChanged=checkCacheAutoForce(_textareaDynWidthCache,textareaDynWidth),textareaDynHeight=currentPreparedOptionsTextarea.dynHeight,textareaDynHeightChanged=checkCacheAutoForce(_textareaDynHeightCache,textareaDynHeight);if(_scrollbarsAutoHideNever="n"===scrollbarsAutoHide,_scrollbarsAutoHideScroll="s"===scrollbarsAutoHide,_scrollbarsAutoHideMove="m"===scrollbarsAutoHide,_scrollbarsAutoHideLeave="l"===scrollbarsAutoHide,_scrollbarsAutoHideDelay=currentPreparedOptionsScrollbars.autoHideDelay,_oldClassName=_classNameCache,_resizeNone="n"===resize,_resizeBoth="b"===resize,_resizeHorizontal="h"===resize,_resizeVertical="v"===resize,_normalizeRTLCache=_currentPreparedOptions.normalizeRTL,ignoreOverlayScrollbarHiding=ignoreOverlayScrollbarHiding&&_nativeScrollbarIsOverlaid.x&&_nativeScrollbarIsOverlaid.y,_scrollbarsVisibilityCache=scrollbarsVisibility,_scrollbarsAutoHideCache=scrollbarsAutoHide,_scrollbarsClickScrollingCache=scrollbarsClickScrolling,_scrollbarsDragScrollingCache=scrollbarsDragScrolling,_classNameCache=className,_resizeCache=resize,_paddingAbsoluteCache=paddingAbsolute,_clipAlwaysCache=clipAlways,_sizeAutoCapableCache=sizeAutoCapable,_ignoreOverlayScrollbarHidingCache=ignoreOverlayScrollbarHiding,_autoUpdateCache=autoUpdate,_overflowBehaviorCache=extendDeep({},overflowBehavior),_textareaDynWidthCache=textareaDynWidth,_textareaDynHeightCache=textareaDynHeight,_hasOverflowCache=_hasOverflowCache||{x:!1,y:!1},classNameChanged&&(removeClass(_hostElement,_oldClassName+_strSpace+_classNameThemeNone),addClass(_hostElement,className!==undefined$1&&null!==className&&className.length>0?className:_classNameThemeNone)),autoUpdateChanged&&(!0===autoUpdate||null===autoUpdate&&_autoUpdateRecommended?(disconnectMutationObservers(),autoUpdateLoop.add(_base)):(autoUpdateLoop.remove(_base),connectMutationObservers())),sizeAutoCapableChanged)if(sizeAutoCapable)if(_contentGlueElement?_contentGlueElement.show():(_contentGlueElement=FRAMEWORK(generateDiv(_classNameContentGlueElement)),_paddingElement.before(_contentGlueElement)),_sizeAutoObserverAdded)_sizeAutoObserverElement.show();else{_sizeAutoObserverElement=FRAMEWORK(generateDiv(_classNameSizeAutoObserverElement)),_sizeAutoObserverElementNative=_sizeAutoObserverElement[0],_contentGlueElement.before(_sizeAutoObserverElement);var oldSize={w:-1,h:-1};setupResizeObserver(_sizeAutoObserverElement,(function(){var newSize={w:_sizeAutoObserverElementNative[LEXICON.oW],h:_sizeAutoObserverElementNative[LEXICON.oH]};checkCache(newSize,oldSize)&&(_initialized&&_heightAutoCache&&newSize.h>0||_widthAutoCache&&newSize.w>0||_initialized&&!_heightAutoCache&&0===newSize.h||!_widthAutoCache&&0===newSize.w)&&update(),oldSize=newSize})),_sizeAutoObserverAdded=!0,null!==_cssCalc&&_sizeAutoObserverElement.css(_strHeight,_cssCalc+"(100% + 1px)")}else _sizeAutoObserverAdded&&_sizeAutoObserverElement.hide(),_contentGlueElement&&_contentGlueElement.hide();force&&(_sizeObserverElement.find("*").trigger(_strScroll),_sizeAutoObserverAdded&&_sizeAutoObserverElement.find("*").trigger(_strScroll)),displayIsHidden=displayIsHidden===undefined$1?_hostElement.is(":hidden"):displayIsHidden;var sizeAutoObserverElementBCRect,textareaAutoWrapping=!!_isTextarea&&"off"!==_targetElement.attr("wrap"),textareaAutoWrappingChanged=checkCacheAutoForce(textareaAutoWrapping,_textareaAutoWrappingCache),cssDirection=_hostElement.css("direction"),cssDirectionChanged=checkCacheAutoForce(cssDirection,_cssDirectionCache),boxSizing=_hostElement.css("box-sizing"),boxSizingChanged=checkCacheAutoForce(boxSizing,_cssBoxSizingCache),padding=getTopRightBottomLeftHost(_strPaddingMinus);try{sizeAutoObserverElementBCRect=_sizeAutoObserverAdded?_sizeAutoObserverElementNative[LEXICON.bCR]():null}catch(ex){return}_isBorderBox="border-box"===boxSizing;var isRTLLeft=(_isRTL="rtl"===cssDirection)?_strLeft:_strRight,isRTLRight=_isRTL?_strRight:_strLeft,widthAutoResizeDetection=!1,widthAutoObserverDetection=!(!_sizeAutoObserverAdded||"none"===_hostElement.css(_strFloat))&&0===MATH.round(sizeAutoObserverElementBCRect.right-sizeAutoObserverElementBCRect.left)&&(!!paddingAbsolute||_hostElementNative[LEXICON.cW]-_paddingX>0);if(sizeAutoCapable&&!widthAutoObserverDetection){var tmpCurrHostWidth=_hostElementNative[LEXICON.oW],tmpCurrContentGlueWidth=_contentGlueElement.css(_strWidth);_contentGlueElement.css(_strWidth,_strAuto);var tmpNewHostWidth=_hostElementNative[LEXICON.oW];_contentGlueElement.css(_strWidth,tmpCurrContentGlueWidth),(widthAutoResizeDetection=tmpCurrHostWidth!==tmpNewHostWidth)||(_contentGlueElement.css(_strWidth,tmpCurrHostWidth+1),tmpNewHostWidth=_hostElementNative[LEXICON.oW],_contentGlueElement.css(_strWidth,tmpCurrContentGlueWidth),widthAutoResizeDetection=tmpCurrHostWidth!==tmpNewHostWidth)}var widthAuto=(widthAutoObserverDetection||widthAutoResizeDetection)&&sizeAutoCapable&&!displayIsHidden,widthAutoChanged=checkCacheAutoForce(widthAuto,_widthAutoCache),wasWidthAuto=!widthAuto&&_widthAutoCache,heightAuto=!(!_sizeAutoObserverAdded||!sizeAutoCapable||displayIsHidden)&&0===MATH.round(sizeAutoObserverElementBCRect.bottom-sizeAutoObserverElementBCRect.top),heightAutoChanged=checkCacheAutoForce(heightAuto,_heightAutoCache),wasHeightAuto=!heightAuto&&_heightAutoCache,border=getTopRightBottomLeftHost(_strBorderMinus,"-"+_strWidth,!(widthAuto&&_isBorderBox||!_isBorderBox),!(heightAuto&&_isBorderBox||!_isBorderBox)),margin=getTopRightBottomLeftHost(_strMarginMinus),contentElementCSS={},contentGlueElementCSS={},getHostSize=function getHostSize(){return{w:_hostElementNative[LEXICON.cW],h:_hostElementNative[LEXICON.cH]}},getViewportSize=function getViewportSize(){return{w:_paddingElementNative[LEXICON.oW]+MATH.max(0,_contentElementNative[LEXICON.cW]-_contentElementNative[LEXICON.sW]),h:_paddingElementNative[LEXICON.oH]+MATH.max(0,_contentElementNative[LEXICON.cH]-_contentElementNative[LEXICON.sH])}},paddingAbsoluteX=_paddingX=padding.l+padding.r,paddingAbsoluteY=_paddingY=padding.t+padding.b;if(paddingAbsoluteX*=paddingAbsolute?1:0,paddingAbsoluteY*=paddingAbsolute?1:0,padding.c=checkCacheAutoForce(padding,_cssPaddingCache),_borderX=border.l+border.r,_borderY=border.t+border.b,border.c=checkCacheAutoForce(border,_cssBorderCache),_marginX=margin.l+margin.r,_marginY=margin.t+margin.b,margin.c=checkCacheAutoForce(margin,_cssMarginCache),_textareaAutoWrappingCache=textareaAutoWrapping,_cssDirectionCache=cssDirection,_cssBoxSizingCache=boxSizing,_widthAutoCache=widthAuto,_heightAutoCache=heightAuto,_cssPaddingCache=padding,_cssBorderCache=border,_cssMarginCache=margin,cssDirectionChanged&&_sizeAutoObserverAdded&&_sizeAutoObserverElement.css(_strFloat,isRTLRight),padding.c||cssDirectionChanged||paddingAbsoluteChanged||widthAutoChanged||heightAutoChanged||boxSizingChanged||sizeAutoCapableChanged){var paddingElementCSS={},textareaCSS={},paddingValues=[padding.t,padding.r,padding.b,padding.l];setTopRightBottomLeft(contentGlueElementCSS,_strMarginMinus,[-padding.t,-padding.r,-padding.b,-padding.l]),paddingAbsolute?(setTopRightBottomLeft(paddingElementCSS,_strEmpty,paddingValues),setTopRightBottomLeft(_isTextarea?textareaCSS:contentElementCSS,_strPaddingMinus)):(setTopRightBottomLeft(paddingElementCSS,_strEmpty),setTopRightBottomLeft(_isTextarea?textareaCSS:contentElementCSS,_strPaddingMinus,paddingValues)),_paddingElement.css(paddingElementCSS),_targetElement.css(textareaCSS)}_viewportSize=getViewportSize();var textareaSize=!!_isTextarea&&textareaUpdate(),textareaSizeChanged=_isTextarea&&checkCacheAutoForce(textareaSize,_textareaSizeCache),textareaDynOrigSize=_isTextarea&&textareaSize?{w:textareaDynWidth?textareaSize._dynamicWidth:textareaSize._originalWidth,h:textareaDynHeight?textareaSize._dynamicHeight:textareaSize._originalHeight}:{};if(_textareaSizeCache=textareaSize,heightAuto&&(heightAutoChanged||paddingAbsoluteChanged||boxSizingChanged||padding.c||border.c)?contentElementCSS[_strHeight]=_strAuto:(heightAutoChanged||paddingAbsoluteChanged)&&(contentElementCSS[_strHeight]=_strHundredPercent),widthAuto&&(widthAutoChanged||paddingAbsoluteChanged||boxSizingChanged||padding.c||border.c||cssDirectionChanged)?(contentElementCSS[_strWidth]=_strAuto,contentGlueElementCSS[_strMaxMinus+_strWidth]=_strHundredPercent):(widthAutoChanged||paddingAbsoluteChanged)&&(contentElementCSS[_strWidth]=_strHundredPercent,contentElementCSS[_strFloat]=_strEmpty,contentGlueElementCSS[_strMaxMinus+_strWidth]=_strEmpty),widthAuto?(contentGlueElementCSS[_strWidth]=_strAuto,contentElementCSS[_strWidth]=VENDORS._cssPropertyValue(_strWidth,"max-content intrinsic")||_strAuto,contentElementCSS[_strFloat]=isRTLRight):contentGlueElementCSS[_strWidth]=_strEmpty,contentGlueElementCSS[_strHeight]=heightAuto?textareaDynOrigSize.h||_contentElementNative[LEXICON.cH]:_strEmpty,sizeAutoCapable&&_contentGlueElement.css(contentGlueElementCSS),_contentElement.css(contentElementCSS),contentElementCSS={},contentGlueElementCSS={},hostSizeChanged||contentSizeChanged||textareaSizeChanged||cssDirectionChanged||boxSizingChanged||paddingAbsoluteChanged||widthAutoChanged||widthAuto||heightAutoChanged||heightAuto||ignoreOverlayScrollbarHidingChanged||overflowBehaviorChanged||clipAlwaysChanged||resizeChanged||scrollbarsVisibilityChanged||scrollbarsAutoHideChanged||scrollbarsDragScrollingChanged||scrollbarsClickScrollingChanged||textareaDynWidthChanged||textareaDynHeightChanged||textareaAutoWrappingChanged){var strOverflow="overflow",strOverflowX=strOverflow+"-x",strOverflowY=strOverflow+"-y",strHidden="hidden",strVisible="visible";if(!_nativeScrollbarStyling){var viewportElementResetCSS={},resetXTmp=_hasOverflowCache.y&&_hideOverflowCache.ys&&!ignoreOverlayScrollbarHiding?_nativeScrollbarIsOverlaid.y?_viewportElement.css(isRTLLeft):-_nativeScrollbarSize.y:0,resetBottomTmp=_hasOverflowCache.x&&_hideOverflowCache.xs&&!ignoreOverlayScrollbarHiding?_nativeScrollbarIsOverlaid.x?_viewportElement.css(_strBottom):-_nativeScrollbarSize.x:0;setTopRightBottomLeft(viewportElementResetCSS,_strEmpty),_viewportElement.css(viewportElementResetCSS)}var contentMeasureElement=getContentMeasureElement(),contentSize={w:textareaDynOrigSize.w||contentMeasureElement[LEXICON.cW],h:textareaDynOrigSize.h||contentMeasureElement[LEXICON.cH]},scrollSize={w:contentMeasureElement[LEXICON.sW],h:contentMeasureElement[LEXICON.sH]};_nativeScrollbarStyling||(viewportElementResetCSS[_strBottom]=wasHeightAuto?_strEmpty:resetBottomTmp,viewportElementResetCSS[isRTLLeft]=wasWidthAuto?_strEmpty:resetXTmp,_viewportElement.css(viewportElementResetCSS)),_viewportSize=getViewportSize();var hostSize=getHostSize(),hostAbsoluteRectSize={w:hostSize.w-_marginX-_borderX-(_isBorderBox?0:_paddingX),h:hostSize.h-_marginY-_borderY-(_isBorderBox?0:_paddingY)},contentGlueSize={w:MATH.max((widthAuto?contentSize.w:scrollSize.w)+paddingAbsoluteX,hostAbsoluteRectSize.w),h:MATH.max((heightAuto?contentSize.h:scrollSize.h)+paddingAbsoluteY,hostAbsoluteRectSize.h)};if(contentGlueSize.c=checkCacheAutoForce(contentGlueSize,_contentGlueSizeCache),_contentGlueSizeCache=contentGlueSize,sizeAutoCapable){(contentGlueSize.c||heightAuto||widthAuto)&&(contentGlueElementCSS[_strWidth]=contentGlueSize.w,contentGlueElementCSS[_strHeight]=contentGlueSize.h,_isTextarea||(contentSize={w:contentMeasureElement[LEXICON.cW],h:contentMeasureElement[LEXICON.cH]}));var textareaCoverCSS={},setContentGlueElementCSSfunction=function setContentGlueElementCSSfunction(horizontal){var scrollbarVars=getScrollbarVars(horizontal),wh=scrollbarVars._w_h,strWH=scrollbarVars._width_height,autoSize=horizontal?widthAuto:heightAuto,borderSize=horizontal?_borderX:_borderY,paddingSize=horizontal?_paddingX:_paddingY,marginSize=horizontal?_marginX:_marginY,viewportSize=_viewportSize[wh]-borderSize-marginSize-(_isBorderBox?0:paddingSize);(!autoSize||!autoSize&&border.c)&&(contentGlueElementCSS[strWH]=hostAbsoluteRectSize[wh]-1),!(autoSize&&contentSize[wh]0&&(contentGlueElementCSS[strWH]=MATH.max(1,contentGlueElementCSS[strWH]))};setContentGlueElementCSSfunction(!0),setContentGlueElementCSSfunction(!1),_isTextarea&&_textareaCoverElement.css(textareaCoverCSS),_contentGlueElement.css(contentGlueElementCSS)}widthAuto&&(contentElementCSS[_strWidth]=_strHundredPercent),!widthAuto||_isBorderBox||_mutationObserversConnected||(contentElementCSS[_strFloat]="none"),_contentElement.css(contentElementCSS),contentElementCSS={};var contentScrollSize={w:contentMeasureElement[LEXICON.sW],h:contentMeasureElement[LEXICON.sH]};contentScrollSize.c=contentSizeChanged=checkCacheAutoForce(contentScrollSize,_contentScrollSizeCache),_contentScrollSizeCache=contentScrollSize,_viewportSize=getViewportSize(),hostSizeChanged=checkCacheAutoForce(hostSize=getHostSize(),_hostSizeCache),_hostSizeCache=hostSize;var hideOverflowForceTextarea=_isTextarea&&(0===_viewportSize.w||0===_viewportSize.h),previousOverflowAmount=_overflowAmountCache,overflowBehaviorIsVS={},overflowBehaviorIsVH={},overflowBehaviorIsS={},overflowAmount={},hasOverflow={},hideOverflow={},canScroll={},viewportRect=_paddingElementNative[LEXICON.bCR](),setOverflowVariables=function setOverflowVariables(horizontal){var scrollbarVars=getScrollbarVars(horizontal),xyI=getScrollbarVars(!horizontal)._x_y,xy=scrollbarVars._x_y,wh=scrollbarVars._w_h,widthHeight=scrollbarVars._width_height,scrollMax=_strScroll+scrollbarVars._Left_Top+"Max",fractionalOverflowAmount=viewportRect[widthHeight]?MATH.abs(viewportRect[widthHeight]-_viewportSize[wh]):0,checkFractionalOverflowAmount=previousOverflowAmount&&previousOverflowAmount[xy]>0&&0===_viewportElementNative[scrollMax];overflowBehaviorIsVS[xy]="v-s"===overflowBehavior[xy],overflowBehaviorIsVH[xy]="v-h"===overflowBehavior[xy],overflowBehaviorIsS[xy]="s"===overflowBehavior[xy],overflowAmount[xy]=MATH.max(0,MATH.round(100*(contentScrollSize[wh]-_viewportSize[wh]))/100),overflowAmount[xy]*=hideOverflowForceTextarea||checkFractionalOverflowAmount&&fractionalOverflowAmount>0&&fractionalOverflowAmount<1?0:1,hasOverflow[xy]=overflowAmount[xy]>0,hideOverflow[xy]=overflowBehaviorIsVS[xy]||overflowBehaviorIsVH[xy]?hasOverflow[xyI]&&!overflowBehaviorIsVS[xyI]&&!overflowBehaviorIsVH[xyI]:hasOverflow[xy],hideOverflow[xy+"s"]=!!hideOverflow[xy]&&(overflowBehaviorIsS[xy]||overflowBehaviorIsVS[xy]),canScroll[xy]=hasOverflow[xy]&&hideOverflow[xy+"s"]};if(setOverflowVariables(!0),setOverflowVariables(!1),overflowAmount.c=checkCacheAutoForce(overflowAmount,_overflowAmountCache),_overflowAmountCache=overflowAmount,hasOverflow.c=checkCacheAutoForce(hasOverflow,_hasOverflowCache),_hasOverflowCache=hasOverflow,hideOverflow.c=checkCacheAutoForce(hideOverflow,_hideOverflowCache),_hideOverflowCache=hideOverflow,_nativeScrollbarIsOverlaid.x||_nativeScrollbarIsOverlaid.y){var setContentElementCSS,borderDesign="px solid transparent",contentArrangeElementCSS={},arrangeContent={},arrangeChanged=force;(hasOverflow.x||hasOverflow.y)&&(arrangeContent.w=_nativeScrollbarIsOverlaid.y&&hasOverflow.y?contentScrollSize.w+_overlayScrollbarDummySize.y:_strEmpty,arrangeContent.h=_nativeScrollbarIsOverlaid.x&&hasOverflow.x?contentScrollSize.h+_overlayScrollbarDummySize.x:_strEmpty,arrangeChanged=checkCacheAutoForce(arrangeContent,_arrangeContentSizeCache),_arrangeContentSizeCache=arrangeContent),(hasOverflow.c||hideOverflow.c||contentScrollSize.c||cssDirectionChanged||widthAutoChanged||heightAutoChanged||widthAuto||heightAuto||ignoreOverlayScrollbarHidingChanged)&&(contentElementCSS[_strMarginMinus+isRTLRight]=contentElementCSS[_strBorderMinus+isRTLRight]=_strEmpty,setContentElementCSS=function setContentElementCSS(horizontal){var scrollbarVars=getScrollbarVars(horizontal),scrollbarVarsInverted=getScrollbarVars(!horizontal),xy=scrollbarVars._x_y,strDirection=horizontal?_strBottom:isRTLLeft,invertedAutoSize=horizontal?heightAuto:widthAuto;_nativeScrollbarIsOverlaid[xy]&&hasOverflow[xy]&&hideOverflow[xy+"s"]?(contentElementCSS[_strMarginMinus+strDirection]=invertedAutoSize?ignoreOverlayScrollbarHiding?_strEmpty:_overlayScrollbarDummySize[xy]:_strEmpty,contentElementCSS[_strBorderMinus+strDirection]=horizontal&&invertedAutoSize||ignoreOverlayScrollbarHiding?_strEmpty:_overlayScrollbarDummySize[xy]+borderDesign):(arrangeContent[scrollbarVarsInverted._w_h]=contentElementCSS[_strMarginMinus+strDirection]=contentElementCSS[_strBorderMinus+strDirection]=_strEmpty,arrangeChanged=!0)},_nativeScrollbarStyling?addRemoveClass(_viewportElement,_classNameViewportNativeScrollbarsInvisible,!ignoreOverlayScrollbarHiding):(setContentElementCSS(!0),setContentElementCSS(!1))),ignoreOverlayScrollbarHiding&&(arrangeContent.w=arrangeContent.h=_strEmpty,arrangeChanged=!0),arrangeChanged&&!_nativeScrollbarStyling&&(contentArrangeElementCSS[_strWidth]=hideOverflow.y?arrangeContent.w:_strEmpty,contentArrangeElementCSS[_strHeight]=hideOverflow.x?arrangeContent.h:_strEmpty,_contentArrangeElement||(_contentArrangeElement=FRAMEWORK(generateDiv(_classNameContentArrangeElement)),_viewportElement.prepend(_contentArrangeElement)),_contentArrangeElement.css(contentArrangeElementCSS)),_contentElement.css(contentElementCSS)}var setViewportCSS,viewportElementCSS={};if(paddingElementCSS={},(hostSizeChanged||hasOverflow.c||hideOverflow.c||contentScrollSize.c||overflowBehaviorChanged||boxSizingChanged||ignoreOverlayScrollbarHidingChanged||cssDirectionChanged||clipAlwaysChanged||heightAutoChanged)&&(viewportElementCSS[isRTLRight]=_strEmpty,(setViewportCSS=function setViewportCSS(horizontal){var scrollbarVars=getScrollbarVars(horizontal),scrollbarVarsInverted=getScrollbarVars(!horizontal),xy=scrollbarVars._x_y,XY=scrollbarVars._X_Y,strDirection=horizontal?_strBottom:isRTLLeft,reset=function reset(){viewportElementCSS[strDirection]=_strEmpty,_contentBorderSize[scrollbarVarsInverted._w_h]=0};hasOverflow[xy]&&hideOverflow[xy+"s"]?(viewportElementCSS[strOverflow+XY]=_strScroll,ignoreOverlayScrollbarHiding||_nativeScrollbarStyling?reset():(viewportElementCSS[strDirection]=-(_nativeScrollbarIsOverlaid[xy]?_overlayScrollbarDummySize[xy]:_nativeScrollbarSize[xy]),_contentBorderSize[scrollbarVarsInverted._w_h]=_nativeScrollbarIsOverlaid[xy]?_overlayScrollbarDummySize[scrollbarVarsInverted._x_y]:0)):(viewportElementCSS[strOverflow+XY]=_strEmpty,reset())})(!0),setViewportCSS(!1),!_nativeScrollbarStyling&&(_viewportSize.h<_nativeScrollbarMinSize.x||_viewportSize.w<_nativeScrollbarMinSize.y)&&(hasOverflow.x&&hideOverflow.x&&!_nativeScrollbarIsOverlaid.x||hasOverflow.y&&hideOverflow.y&&!_nativeScrollbarIsOverlaid.y)?(viewportElementCSS[_strPaddingMinus+_strTop]=_nativeScrollbarMinSize.x,viewportElementCSS[_strMarginMinus+_strTop]=-_nativeScrollbarMinSize.x,viewportElementCSS[_strPaddingMinus+isRTLRight]=_nativeScrollbarMinSize.y,viewportElementCSS[_strMarginMinus+isRTLRight]=-_nativeScrollbarMinSize.y):viewportElementCSS[_strPaddingMinus+_strTop]=viewportElementCSS[_strMarginMinus+_strTop]=viewportElementCSS[_strPaddingMinus+isRTLRight]=viewportElementCSS[_strMarginMinus+isRTLRight]=_strEmpty,viewportElementCSS[_strPaddingMinus+isRTLLeft]=viewportElementCSS[_strMarginMinus+isRTLLeft]=_strEmpty,hasOverflow.x&&hideOverflow.x||hasOverflow.y&&hideOverflow.y||hideOverflowForceTextarea?_isTextarea&&hideOverflowForceTextarea&&(paddingElementCSS[strOverflowX]=paddingElementCSS[strOverflowY]=strHidden):(!clipAlways||overflowBehaviorIsVH.x||overflowBehaviorIsVS.x||overflowBehaviorIsVH.y||overflowBehaviorIsVS.y)&&(_isTextarea&&(paddingElementCSS[strOverflowX]=paddingElementCSS[strOverflowY]=_strEmpty),viewportElementCSS[strOverflowX]=viewportElementCSS[strOverflowY]=strVisible),_paddingElement.css(paddingElementCSS),_viewportElement.css(viewportElementCSS),viewportElementCSS={},(hasOverflow.c||boxSizingChanged||widthAutoChanged||heightAutoChanged)&&(!_nativeScrollbarIsOverlaid.x||!_nativeScrollbarIsOverlaid.y))){var elementStyle=_contentElementNative[LEXICON.s];elementStyle.webkitTransform="scale(1)",elementStyle.display="run-in",elementStyle.display=_strEmpty,elementStyle.webkitTransform=_strEmpty}if(contentElementCSS={},cssDirectionChanged||widthAutoChanged||heightAutoChanged)if(_isRTL&&widthAuto){var floatTmp=_contentElement.css(_strFloat),posLeftWithoutFloat=MATH.round(_contentElement.css(_strFloat,_strEmpty).css(_strLeft,_strEmpty).position().left);_contentElement.css(_strFloat,floatTmp),posLeftWithoutFloat!==MATH.round(_contentElement.position().left)&&(contentElementCSS[_strLeft]=posLeftWithoutFloat)}else contentElementCSS[_strLeft]=_strEmpty;if(_contentElement.css(contentElementCSS),_isTextarea&&contentSizeChanged){var textareaInfo=getTextareaInfo();if(textareaInfo){var textareaRowsChanged=_textareaInfoCache===undefined$1||textareaInfo._rows!==_textareaInfoCache._rows,cursorRow=textareaInfo._cursorRow,cursorCol=textareaInfo._cursorColumn,widestRow=textareaInfo._widestRow,lastRow=textareaInfo._rows,lastCol=textareaInfo._columns,cursorIsLastPosition=textareaInfo._cursorPosition>=textareaInfo._cursorMax&&_textareaHasFocus,textareaScrollAmount={x:textareaAutoWrapping||cursorCol!==lastCol||cursorRow!==widestRow?-1:_overflowAmountCache.x,y:(textareaAutoWrapping?cursorIsLastPosition||textareaRowsChanged&&previousOverflowAmount&&currScroll.y===previousOverflowAmount.y:(cursorIsLastPosition||textareaRowsChanged)&&cursorRow===lastRow)?_overflowAmountCache.y:-1};currScroll.x=textareaScrollAmount.x>-1?_isRTL&&_normalizeRTLCache&&_rtlScrollBehavior.i?0:textareaScrollAmount.x:currScroll.x,currScroll.y=textareaScrollAmount.y>-1?textareaScrollAmount.y:currScroll.y}_textareaInfoCache=textareaInfo}_isRTL&&_rtlScrollBehavior.i&&_nativeScrollbarIsOverlaid.y&&hasOverflow.x&&_normalizeRTLCache&&(currScroll.x+=_contentBorderSize.w||0),widthAuto&&_hostElement[_strScrollLeft](0),heightAuto&&_hostElement[_strScrollTop](0),_viewportElement[_strScrollLeft](currScroll.x)[_strScrollTop](currScroll.y);var scrollbarsVisibilityVisible="v"===scrollbarsVisibility,scrollbarsVisibilityHidden="h"===scrollbarsVisibility,scrollbarsVisibilityAuto="a"===scrollbarsVisibility,refreshScrollbarsVisibility=function refreshScrollbarsVisibility(showX,showY){showY=showY===undefined$1?showX:showY,refreshScrollbarAppearance(!0,showX,canScroll.x),refreshScrollbarAppearance(!1,showY,canScroll.y)};addRemoveClass(_hostElement,_classNameHostOverflow,hideOverflow.x||hideOverflow.y),addRemoveClass(_hostElement,_classNameHostOverflowX,hideOverflow.x),addRemoveClass(_hostElement,_classNameHostOverflowY,hideOverflow.y),cssDirectionChanged&&!_isBody&&addRemoveClass(_hostElement,_classNameHostRTL,_isRTL),_isBody&&addClass(_hostElement,_classNameHostResizeDisabled),resizeChanged&&(addRemoveClass(_hostElement,_classNameHostResizeDisabled,_resizeNone),addRemoveClass(_scrollbarCornerElement,_classNameScrollbarCornerResize,!_resizeNone),addRemoveClass(_scrollbarCornerElement,_classNameScrollbarCornerResizeB,_resizeBoth),addRemoveClass(_scrollbarCornerElement,_classNameScrollbarCornerResizeH,_resizeHorizontal),addRemoveClass(_scrollbarCornerElement,_classNameScrollbarCornerResizeV,_resizeVertical)),(scrollbarsVisibilityChanged||overflowBehaviorChanged||hideOverflow.c||hasOverflow.c||ignoreOverlayScrollbarHidingChanged)&&(ignoreOverlayScrollbarHiding?ignoreOverlayScrollbarHidingChanged&&(removeClass(_hostElement,_classNameHostScrolling),ignoreOverlayScrollbarHiding&&refreshScrollbarsVisibility(!1)):scrollbarsVisibilityAuto?refreshScrollbarsVisibility(canScroll.x,canScroll.y):scrollbarsVisibilityVisible?refreshScrollbarsVisibility(!0):scrollbarsVisibilityHidden&&refreshScrollbarsVisibility(!1)),(scrollbarsAutoHideChanged||ignoreOverlayScrollbarHidingChanged)&&(setupHostMouseTouchEvents(!_scrollbarsAutoHideLeave&&!_scrollbarsAutoHideMove),refreshScrollbarsAutoHide(_scrollbarsAutoHideNever,!_scrollbarsAutoHideNever)),(hostSizeChanged||overflowAmount.c||heightAutoChanged||widthAutoChanged||resizeChanged||boxSizingChanged||paddingAbsoluteChanged||ignoreOverlayScrollbarHidingChanged||cssDirectionChanged)&&(refreshScrollbarHandleLength(!0),refreshScrollbarHandleOffset(!0),refreshScrollbarHandleLength(!1),refreshScrollbarHandleOffset(!1)),scrollbarsClickScrollingChanged&&refreshScrollbarsInteractive(!0,scrollbarsClickScrolling),scrollbarsDragScrollingChanged&&refreshScrollbarsInteractive(!1,scrollbarsDragScrolling),dispatchCallback("onDirectionChanged",{isRTL:_isRTL,dir:cssDirection},cssDirectionChanged),dispatchCallback("onHostSizeChanged",{width:_hostSizeCache.w,height:_hostSizeCache.h},hostSizeChanged),dispatchCallback("onContentSizeChanged",{width:_contentScrollSizeCache.w,height:_contentScrollSizeCache.h},contentSizeChanged),dispatchCallback("onOverflowChanged",{x:hasOverflow.x,y:hasOverflow.y,xScrollable:hideOverflow.xs,yScrollable:hideOverflow.ys,clipped:hideOverflow.x||hideOverflow.y},hasOverflow.c||hideOverflow.c),dispatchCallback("onOverflowAmountChanged",{x:overflowAmount.x,y:overflowAmount.y},overflowAmount.c)}_isBody&&_bodyMinSizeCache&&(_hasOverflowCache.c||_bodyMinSizeCache.c)&&(_bodyMinSizeCache.f||bodyMinSizeChanged(),_nativeScrollbarIsOverlaid.y&&_hasOverflowCache.x&&_contentElement.css(_strMinMinus+_strWidth,_bodyMinSizeCache.w+_overlayScrollbarDummySize.y),_nativeScrollbarIsOverlaid.x&&_hasOverflowCache.y&&_contentElement.css(_strMinMinus+_strHeight,_bodyMinSizeCache.h+_overlayScrollbarDummySize.x),_bodyMinSizeCache.c=!1),_initialized&&changedOptions.updateOnLoad&&updateElementsOnLoad(),dispatchCallback("onUpdated",{forced:force})}}function updateElementsOnLoad(){_isTextarea||eachUpdateOnLoad((function(i,updateOnLoadSelector){_contentElement.find(updateOnLoadSelector).each((function(i,el){COMPATIBILITY.inA(el,_updateOnLoadElms)<0&&(_updateOnLoadElms.push(el),FRAMEWORK(el).off(_updateOnLoadEventName,updateOnLoadCallback).on(_updateOnLoadEventName,updateOnLoadCallback))}))}))}function setOptions(newOptions){var validatedOpts=_pluginsOptions._validate(newOptions,_pluginsOptions._template,!0,_currentOptions);return _currentOptions=extendDeep({},_currentOptions,validatedOpts._default),_currentPreparedOptions=extendDeep({},_currentPreparedOptions,validatedOpts._prepared),validatedOpts._prepared}function setupStructureDOM(destroy){var strParent="parent",classNameResizeObserverHost="os-resize-observer-host",classNameTextareaElementFull=_classNameTextareaElement+_strSpace+_classNameTextInherit,textareaClass=_isTextarea?_strSpace+_classNameTextInherit:_strEmpty,adoptAttrs=_currentPreparedOptions.textarea.inheritedAttrs,adoptAttrsMap={},applyAdoptedAttrs=function applyAdoptedAttrs(){var applyAdoptedAttrsElm=destroy?_targetElement:_hostElement;each(adoptAttrsMap,(function(key,value){type(value)==TYPES.s&&(key==LEXICON.c?applyAdoptedAttrsElm.addClass(value):applyAdoptedAttrsElm.attr(key,value))}))},hostElementClassNames=[_classNameHostElement,_classNameHostElementForeign,_classNameHostTextareaElement,_classNameHostResizeDisabled,_classNameHostRTL,_classNameHostScrollbarHorizontalHidden,_classNameHostScrollbarVerticalHidden,_classNameHostTransition,_classNameHostScrolling,_classNameHostOverflow,_classNameHostOverflowX,_classNameHostOverflowY,_classNameThemeNone,_classNameTextareaElement,_classNameTextInherit,_classNameCache].join(_strSpace),hostElementCSS={};_hostElement=_hostElement||(_isTextarea?_domExists?_targetElement[strParent]()[strParent]()[strParent]()[strParent]():FRAMEWORK(generateDiv(_classNameHostTextareaElement)):_targetElement),_contentElement=_contentElement||selectOrGenerateDivByClass(_classNameContentElement+textareaClass),_viewportElement=_viewportElement||selectOrGenerateDivByClass(_classNameViewportElement+textareaClass),_paddingElement=_paddingElement||selectOrGenerateDivByClass(_classNamePaddingElement+textareaClass),_sizeObserverElement=_sizeObserverElement||selectOrGenerateDivByClass(classNameResizeObserverHost),_textareaCoverElement=_textareaCoverElement||(_isTextarea?selectOrGenerateDivByClass(_classNameTextareaCoverElement):undefined$1),_domExists&&addClass(_hostElement,_classNameHostElementForeign),destroy&&removeClass(_hostElement,hostElementClassNames),adoptAttrs=type(adoptAttrs)==TYPES.s?adoptAttrs.split(_strSpace):adoptAttrs,COMPATIBILITY.isA(adoptAttrs)&&_isTextarea&&each(adoptAttrs,(function(i,v){type(v)==TYPES.s&&(adoptAttrsMap[v]=destroy?_hostElement.attr(v):_targetElement.attr(v))})),destroy?(_domExists&&_initialized?(_sizeObserverElement.children().remove(),each([_paddingElement,_viewportElement,_contentElement,_textareaCoverElement],(function(i,elm){elm&&removeClass(elm.removeAttr(LEXICON.s),_classNamesDynamicDestroy)})),addClass(_hostElement,_isTextarea?_classNameHostTextareaElement:_classNameHostElement)):(remove(_sizeObserverElement),_contentElement.contents().unwrap().unwrap().unwrap(),_isTextarea&&(_targetElement.unwrap(),remove(_hostElement),remove(_textareaCoverElement),applyAdoptedAttrs())),_isTextarea&&_targetElement.removeAttr(LEXICON.s),_isBody&&removeClass(_htmlElement,_classNameHTMLElement)):(_isTextarea&&(_currentPreparedOptions.sizeAutoCapable||(hostElementCSS[_strWidth]=_targetElement.css(_strWidth),hostElementCSS[_strHeight]=_targetElement.css(_strHeight)),_domExists||_targetElement.addClass(_classNameTextInherit).wrap(_hostElement),_hostElement=_targetElement[strParent]().css(hostElementCSS)),_domExists||(addClass(_targetElement,_isTextarea?classNameTextareaElementFull:_classNameHostElement),_hostElement.wrapInner(_contentElement).wrapInner(_viewportElement).wrapInner(_paddingElement).prepend(_sizeObserverElement),_contentElement=findFirst(_hostElement,_strDot+_classNameContentElement),_viewportElement=findFirst(_hostElement,_strDot+_classNameViewportElement),_paddingElement=findFirst(_hostElement,_strDot+_classNamePaddingElement),_isTextarea&&(_contentElement.prepend(_textareaCoverElement),applyAdoptedAttrs())),_nativeScrollbarStyling&&addClass(_viewportElement,_classNameViewportNativeScrollbarsInvisible),_nativeScrollbarIsOverlaid.x&&_nativeScrollbarIsOverlaid.y&&addClass(_viewportElement,_classNameViewportNativeScrollbarsOverlaid),_isBody&&addClass(_htmlElement,_classNameHTMLElement),_sizeObserverElementNative=_sizeObserverElement[0],_hostElementNative=_hostElement[0],_paddingElementNative=_paddingElement[0],_viewportElementNative=_viewportElement[0],_contentElementNative=_contentElement[0],updateViewportAttrsFromTarget())}function setupStructureEvents(){var textareaUpdateIntervalID,scrollStopTimeoutId,textareaKeyDownRestrictedKeyCodes=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],textareaKeyDownKeyCodesList=[],scrollStopDelay=175,strFocus="focus";function updateTextarea(doClearInterval){textareaUpdate(),_base.update(_strAuto),doClearInterval&&_autoUpdateRecommended&&clearInterval(textareaUpdateIntervalID)}function textareaOnScroll(event){return _targetElement[_strScrollLeft](_rtlScrollBehavior.i&&_normalizeRTLCache?9999999:0),_targetElement[_strScrollTop](0),COMPATIBILITY.prvD(event),COMPATIBILITY.stpP(event),!1}function textareaOnDrop(event){setTimeout((function(){_destroyed||updateTextarea()}),50)}function textareaOnFocus(){_textareaHasFocus=!0,addClass(_hostElement,strFocus)}function textareaOnFocusout(){_textareaHasFocus=!1,textareaKeyDownKeyCodesList=[],removeClass(_hostElement,strFocus),updateTextarea(!0)}function textareaOnKeyDown(event){var keyCode=event.keyCode;inArray(keyCode,textareaKeyDownRestrictedKeyCodes)<0&&(textareaKeyDownKeyCodesList[LEXICON.l]||(updateTextarea(),textareaUpdateIntervalID=setInterval(updateTextarea,1e3/60)),inArray(keyCode,textareaKeyDownKeyCodesList)<0&&textareaKeyDownKeyCodesList.push(keyCode))}function textareaOnKeyUp(event){var keyCode=event.keyCode,index=inArray(keyCode,textareaKeyDownKeyCodesList);inArray(keyCode,textareaKeyDownRestrictedKeyCodes)<0&&(index>-1&&textareaKeyDownKeyCodesList.splice(index,1),textareaKeyDownKeyCodesList[LEXICON.l]||updateTextarea(!0))}function contentOnTransitionEnd(event){!0!==_autoUpdateCache&&isSizeAffectingCSSProperty((event=event.originalEvent||event).propertyName)&&_base.update(_strAuto)}function viewportOnScroll(event){_sleeping||(scrollStopTimeoutId!==undefined$1?clearTimeout(scrollStopTimeoutId):((_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove)&&refreshScrollbarsAutoHide(!0),nativeOverlayScrollbarsAreActive()||addClass(_hostElement,_classNameHostScrolling),dispatchCallback("onScrollStart",event)),_scrollbarsHandlesDefineScrollPos||(refreshScrollbarHandleOffset(!0),refreshScrollbarHandleOffset(!1)),dispatchCallback("onScroll",event),scrollStopTimeoutId=setTimeout((function(){_destroyed||(clearTimeout(scrollStopTimeoutId),scrollStopTimeoutId=undefined$1,(_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove)&&refreshScrollbarsAutoHide(!1),nativeOverlayScrollbarsAreActive()||removeClass(_hostElement,_classNameHostScrolling),dispatchCallback("onScrollStop",event))}),scrollStopDelay))}_isTextarea?(_msieVersion>9||!_autoUpdateRecommended?addDestroyEventListener(_targetElement,"input",updateTextarea):addDestroyEventListener(_targetElement,[_strKeyDownEvent,_strKeyUpEvent],[textareaOnKeyDown,textareaOnKeyUp]),addDestroyEventListener(_targetElement,[_strScroll,"drop",strFocus,strFocus+"out"],[textareaOnScroll,textareaOnDrop,textareaOnFocus,textareaOnFocusout])):addDestroyEventListener(_contentElement,_strTransitionEndEvent,contentOnTransitionEnd),addDestroyEventListener(_viewportElement,_strScroll,viewportOnScroll,!0)}function setupScrollbarsDOM(destroy){var horizontalElements,verticalElements,selectOrGenerateScrollbarDOM=function selectOrGenerateScrollbarDOM(isHorizontal){var scrollbar=selectOrGenerateDivByClass(_classNameScrollbar+_strSpace+(isHorizontal?_classNameScrollbarHorizontal:_classNameScrollbarVertical),!0),track=selectOrGenerateDivByClass(_classNameScrollbarTrack,scrollbar),handle=selectOrGenerateDivByClass(_classNameScrollbarHandle,scrollbar);return _domExists||destroy||(scrollbar.append(track),track.append(handle)),{_scrollbar:scrollbar,_track:track,_handle:handle}};function resetScrollbarDOM(isHorizontal){var scrollbarVars=getScrollbarVars(isHorizontal),scrollbar=scrollbarVars._scrollbar,track=scrollbarVars._track,handle=scrollbarVars._handle;_domExists&&_initialized?each([scrollbar,track,handle],(function(i,elm){removeClass(elm.removeAttr(LEXICON.s),_classNamesDynamicDestroy)})):remove(scrollbar||selectOrGenerateScrollbarDOM(isHorizontal)._scrollbar)}destroy?(resetScrollbarDOM(!0),resetScrollbarDOM()):(horizontalElements=selectOrGenerateScrollbarDOM(!0),verticalElements=selectOrGenerateScrollbarDOM(),_scrollbarHorizontalElement=horizontalElements._scrollbar,_scrollbarHorizontalTrackElement=horizontalElements._track,_scrollbarHorizontalHandleElement=horizontalElements._handle,_scrollbarVerticalElement=verticalElements._scrollbar,_scrollbarVerticalTrackElement=verticalElements._track,_scrollbarVerticalHandleElement=verticalElements._handle,_domExists||(_paddingElement.after(_scrollbarVerticalElement),_paddingElement.after(_scrollbarHorizontalElement)))}function setupScrollbarEvents(isHorizontal){var trackTimeout,mouseDownScroll,mouseDownOffset,mouseDownInvertedScale,scrollbarVars=getScrollbarVars(isHorizontal),scrollbarVarsInfo=scrollbarVars._info,insideIFrame=_windowElementNative.top!==_windowElementNative,xy=scrollbarVars._x_y,XY=scrollbarVars._X_Y,scroll=_strScroll+scrollbarVars._Left_Top,strActive="active",strSnapHandle="snapHandle",strClickEvent="click",scrollDurationFactor=1,increaseDecreaseScrollAmountKeyCodes=[16,17];function getPointerPosition(event){return _msieVersion&&insideIFrame?event["screen"+XY]:COMPATIBILITY.page(event)[xy]}function getPreparedScrollbarsOption(name){return _currentPreparedOptions.scrollbars[name]}function increaseTrackScrollAmount(){scrollDurationFactor=.5}function decreaseTrackScrollAmount(){scrollDurationFactor=1}function stopClickEventPropagation(event){COMPATIBILITY.stpP(event)}function documentKeyDown(event){inArray(event.keyCode,increaseDecreaseScrollAmountKeyCodes)>-1&&increaseTrackScrollAmount()}function documentKeyUp(event){inArray(event.keyCode,increaseDecreaseScrollAmountKeyCodes)>-1&&decreaseTrackScrollAmount()}function onMouseTouchDownContinue(event){var isTouchEvent=(event.originalEvent||event).touches!==undefined$1;return!(_sleeping||_destroyed||nativeOverlayScrollbarsAreActive()||!_scrollbarsDragScrollingCache||isTouchEvent&&!getPreparedScrollbarsOption("touchSupport"))&&(1===COMPATIBILITY.mBtn(event)||isTouchEvent)}function documentDragMove(event){if(onMouseTouchDownContinue(event)){var trackLength=scrollbarVarsInfo._trackLength,handleLength=scrollbarVarsInfo._handleLength,scrollDelta=scrollbarVarsInfo._maxScroll*((getPointerPosition(event)-mouseDownOffset)*mouseDownInvertedScale/(trackLength-handleLength));scrollDelta=isFinite(scrollDelta)?scrollDelta:0,_isRTL&&isHorizontal&&!_rtlScrollBehavior.i&&(scrollDelta*=-1),_viewportElement[scroll](MATH.round(mouseDownScroll+scrollDelta)),_scrollbarsHandlesDefineScrollPos&&refreshScrollbarHandleOffset(isHorizontal,mouseDownScroll+scrollDelta),_supportPassiveEvents||COMPATIBILITY.prvD(event)}else documentMouseTouchUp(event)}function documentMouseTouchUp(event){if(event=event||event.originalEvent,setupResponsiveEventListener(_documentElement,[_strMouseTouchMoveEvent,_strMouseTouchUpEvent,_strKeyDownEvent,_strKeyUpEvent,_strSelectStartEvent],[documentDragMove,documentMouseTouchUp,documentKeyDown,documentKeyUp,documentOnSelectStart],!0),COMPATIBILITY.rAF()((function(){setupResponsiveEventListener(_documentElement,strClickEvent,stopClickEventPropagation,!0,{_capture:!0})})),_scrollbarsHandlesDefineScrollPos&&refreshScrollbarHandleOffset(isHorizontal,!0),_scrollbarsHandlesDefineScrollPos=!1,removeClass(_bodyElement,_classNameDragging),removeClass(scrollbarVars._handle,strActive),removeClass(scrollbarVars._track,strActive),removeClass(scrollbarVars._scrollbar,strActive),mouseDownScroll=undefined$1,mouseDownOffset=undefined$1,mouseDownInvertedScale=1,decreaseTrackScrollAmount(),trackTimeout!==undefined$1&&(_base.scrollStop(),clearTimeout(trackTimeout),trackTimeout=undefined$1),event){var rect=_hostElementNative[LEXICON.bCR]();event.clientX>=rect.left&&event.clientX<=rect.right&&event.clientY>=rect.top&&event.clientY<=rect.bottom||hostOnMouseLeave(),(_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove)&&refreshScrollbarsAutoHide(!1)}}function onHandleMouseTouchDown(event){onMouseTouchDownContinue(event)&&onHandleMouseTouchDownAction(event)}function onHandleMouseTouchDownAction(event){mouseDownScroll=_viewportElement[scroll](),mouseDownScroll=isNaN(mouseDownScroll)?0:mouseDownScroll,(_isRTL&&isHorizontal&&!_rtlScrollBehavior.n||!_isRTL)&&(mouseDownScroll=mouseDownScroll<0?0:mouseDownScroll),mouseDownInvertedScale=getHostElementInvertedScale()[xy],mouseDownOffset=getPointerPosition(event),_scrollbarsHandlesDefineScrollPos=!getPreparedScrollbarsOption(strSnapHandle),addClass(_bodyElement,_classNameDragging),addClass(scrollbarVars._handle,strActive),addClass(scrollbarVars._scrollbar,strActive),setupResponsiveEventListener(_documentElement,[_strMouseTouchMoveEvent,_strMouseTouchUpEvent,_strSelectStartEvent],[documentDragMove,documentMouseTouchUp,documentOnSelectStart]),COMPATIBILITY.rAF()((function(){setupResponsiveEventListener(_documentElement,strClickEvent,stopClickEventPropagation,!1,{_capture:!0})})),!_msieVersion&&_documentMixed||COMPATIBILITY.prvD(event),COMPATIBILITY.stpP(event)}function onTrackMouseTouchDown(event){if(onMouseTouchDownContinue(event)){var decreaseScroll,handleToViewportRatio=scrollbarVars._info._handleLength/Math.round(MATH.min(1,_viewportSize[scrollbarVars._w_h]/_contentScrollSizeCache[scrollbarVars._w_h])*scrollbarVars._info._trackLength),scrollDistance=MATH.round(_viewportSize[scrollbarVars._w_h]*handleToViewportRatio),scrollBaseDuration=270*handleToViewportRatio,scrollFirstIterationDelay=400*handleToViewportRatio,trackOffset=scrollbarVars._track.offset()[scrollbarVars._left_top],ctrlKey=event.ctrlKey,instantScroll=event.shiftKey,instantScrollTransition=instantScroll&&ctrlKey,isFirstIteration=!0,easing="linear",scrollActionFinsished=function scrollActionFinsished(transition){_scrollbarsHandlesDefineScrollPos&&refreshScrollbarHandleOffset(isHorizontal,transition)},scrollActionInstantFinished=function scrollActionInstantFinished(){scrollActionFinsished(),onHandleMouseTouchDownAction(event)},scrollAction=function scrollAction(){if(!_destroyed){var mouseOffset=(mouseDownOffset-trackOffset)*mouseDownInvertedScale,handleOffset=scrollbarVarsInfo._handleOffset,trackLength=scrollbarVarsInfo._trackLength,handleLength=scrollbarVarsInfo._handleLength,scrollRange=scrollbarVarsInfo._maxScroll,currScroll=scrollbarVarsInfo._currentScroll,scrollDuration=scrollBaseDuration*scrollDurationFactor,timeoutDelay=isFirstIteration?MATH.max(scrollFirstIterationDelay,scrollDuration):scrollDuration,instantScrollPosition=scrollRange*((mouseOffset-handleLength/2)/(trackLength-handleLength)),rtlIsNormal=_isRTL&&isHorizontal&&(!_rtlScrollBehavior.i&&!_rtlScrollBehavior.n||_normalizeRTLCache),decreaseScrollCondition=rtlIsNormal?handleOffsetmouseOffset,scrollObj={},animationObj={easing:easing,step:function step(now){_scrollbarsHandlesDefineScrollPos&&(_viewportElement[scroll](now),refreshScrollbarHandleOffset(isHorizontal,now))}};instantScrollPosition=isFinite(instantScrollPosition)?instantScrollPosition:0,instantScrollPosition=_isRTL&&isHorizontal&&!_rtlScrollBehavior.i?scrollRange-instantScrollPosition:instantScrollPosition,instantScroll?(_viewportElement[scroll](instantScrollPosition),instantScrollTransition?(instantScrollPosition=_viewportElement[scroll](),_viewportElement[scroll](currScroll),instantScrollPosition=rtlIsNormal&&_rtlScrollBehavior.i?scrollRange-instantScrollPosition:instantScrollPosition,instantScrollPosition=rtlIsNormal&&_rtlScrollBehavior.n?-instantScrollPosition:instantScrollPosition,scrollObj[xy]=instantScrollPosition,_base.scroll(scrollObj,extendDeep(animationObj,{duration:130,complete:scrollActionInstantFinished}))):scrollActionInstantFinished()):(decreaseScroll=isFirstIteration?decreaseScrollCondition:decreaseScroll,(rtlIsNormal?decreaseScroll?handleOffset+handleLength>=mouseOffset:handleOffset<=mouseOffset:decreaseScroll?handleOffset<=mouseOffset:handleOffset+handleLength>=mouseOffset)?(clearTimeout(trackTimeout),_base.scrollStop(),trackTimeout=undefined$1,scrollActionFinsished(!0)):(trackTimeout=setTimeout(scrollAction,timeoutDelay),scrollObj[xy]=(decreaseScroll?"-=":"+=")+scrollDistance,_base.scroll(scrollObj,extendDeep(animationObj,{duration:scrollDuration}))),isFirstIteration=!1)}};ctrlKey&&increaseTrackScrollAmount(),mouseDownInvertedScale=getHostElementInvertedScale()[xy],mouseDownOffset=COMPATIBILITY.page(event)[xy],_scrollbarsHandlesDefineScrollPos=!getPreparedScrollbarsOption(strSnapHandle),addClass(_bodyElement,_classNameDragging),addClass(scrollbarVars._track,strActive),addClass(scrollbarVars._scrollbar,strActive),setupResponsiveEventListener(_documentElement,[_strMouseTouchUpEvent,_strKeyDownEvent,_strKeyUpEvent,_strSelectStartEvent],[documentMouseTouchUp,documentKeyDown,documentKeyUp,documentOnSelectStart]),scrollAction(),COMPATIBILITY.prvD(event),COMPATIBILITY.stpP(event)}}function onTrackMouseTouchEnter(event){_scrollbarsHandleHovered=!0,(_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove)&&refreshScrollbarsAutoHide(!0)}function onTrackMouseTouchLeave(event){_scrollbarsHandleHovered=!1,(_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove)&&refreshScrollbarsAutoHide(!1)}function onScrollbarMouseTouchDown(event){COMPATIBILITY.stpP(event)}addDestroyEventListener(scrollbarVars._handle,_strMouseTouchDownEvent,onHandleMouseTouchDown),addDestroyEventListener(scrollbarVars._track,[_strMouseTouchDownEvent,_strMouseEnter,_strMouseLeave],[onTrackMouseTouchDown,onTrackMouseTouchEnter,onTrackMouseTouchLeave]),addDestroyEventListener(scrollbarVars._scrollbar,_strMouseTouchDownEvent,onScrollbarMouseTouchDown),_supportTransition&&addDestroyEventListener(scrollbarVars._scrollbar,_strTransitionEndEvent,(function(event){event.target===scrollbarVars._scrollbar[0]&&(refreshScrollbarHandleLength(isHorizontal),refreshScrollbarHandleOffset(isHorizontal))}))}function refreshScrollbarAppearance(isHorizontal,shallBeVisible,canScroll){var scrollbarElement=isHorizontal?_scrollbarHorizontalElement:_scrollbarVerticalElement;addRemoveClass(_hostElement,isHorizontal?_classNameHostScrollbarHorizontalHidden:_classNameHostScrollbarVerticalHidden,!shallBeVisible),addRemoveClass(scrollbarElement,_classNameScrollbarUnusable,!canScroll)}function refreshScrollbarsAutoHide(shallBeVisible,delayfree){if(clearTimeout(_scrollbarsAutoHideTimeoutId),shallBeVisible)removeClass(_scrollbarHorizontalElement,_classNameScrollbarAutoHidden),removeClass(_scrollbarVerticalElement,_classNameScrollbarAutoHidden);else{var anyActive,strActive="active",hide=function hide(){_scrollbarsHandleHovered||_destroyed||(!(anyActive=_scrollbarHorizontalHandleElement.hasClass(strActive)||_scrollbarVerticalHandleElement.hasClass(strActive))&&(_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove||_scrollbarsAutoHideLeave)&&addClass(_scrollbarHorizontalElement,_classNameScrollbarAutoHidden),!anyActive&&(_scrollbarsAutoHideScroll||_scrollbarsAutoHideMove||_scrollbarsAutoHideLeave)&&addClass(_scrollbarVerticalElement,_classNameScrollbarAutoHidden))};_scrollbarsAutoHideDelay>0&&!0!==delayfree?_scrollbarsAutoHideTimeoutId=setTimeout(hide,_scrollbarsAutoHideDelay):hide()}}function refreshScrollbarHandleLength(isHorizontal){var handleCSS={},scrollbarVars=getScrollbarVars(isHorizontal),scrollbarVarsInfo=scrollbarVars._info,digit=1e6,handleRatio=MATH.min(1,_viewportSize[scrollbarVars._w_h]/_contentScrollSizeCache[scrollbarVars._w_h]);handleCSS[scrollbarVars._width_height]=MATH.floor(100*handleRatio*digit)/digit+"%",nativeOverlayScrollbarsAreActive()||scrollbarVars._handle.css(handleCSS),scrollbarVarsInfo._handleLength=scrollbarVars._handle[0]["offset"+scrollbarVars._Width_Height],scrollbarVarsInfo._handleLengthRatio=handleRatio}function refreshScrollbarHandleOffset(isHorizontal,scrollOrTransition){var transformOffset,translateValue,transition=type(scrollOrTransition)==TYPES.b,transitionDuration=250,isRTLisHorizontal=_isRTL&&isHorizontal,scrollbarVars=getScrollbarVars(isHorizontal),scrollbarVarsInfo=scrollbarVars._info,strTranslateBrace="translate(",strTransform=VENDORS._cssProperty("transform"),strTransition=VENDORS._cssProperty("transition"),nativeScroll=isHorizontal?_viewportElement[_strScrollLeft]():_viewportElement[_strScrollTop](),currentScroll=scrollOrTransition===undefined$1||transition?nativeScroll:scrollOrTransition,handleLength=scrollbarVarsInfo._handleLength,trackLength=scrollbarVars._track[0]["offset"+scrollbarVars._Width_Height],handleTrackDiff=trackLength-handleLength,handleCSS={},maxScroll=(_viewportElementNative[_strScroll+scrollbarVars._Width_Height]-_viewportElementNative["client"+scrollbarVars._Width_Height])*(_rtlScrollBehavior.n&&isRTLisHorizontal?-1:1),getScrollRatio=function getScrollRatio(base){return isNaN(base/maxScroll)?0:MATH.max(0,MATH.min(1,base/maxScroll))},getHandleOffset=function getHandleOffset(scrollRatio){var offset=handleTrackDiff*scrollRatio;return offset=isNaN(offset)?0:offset,offset=isRTLisHorizontal&&!_rtlScrollBehavior.i?trackLength-handleLength-offset:offset,offset=MATH.max(0,offset)},scrollRatio=getScrollRatio(nativeScroll),handleOffset=getHandleOffset(getScrollRatio(currentScroll)),snappedHandleOffset=getHandleOffset(scrollRatio);scrollbarVarsInfo._maxScroll=maxScroll,scrollbarVarsInfo._currentScroll=nativeScroll,scrollbarVarsInfo._currentScrollRatio=scrollRatio,_supportTransform?(transformOffset=isRTLisHorizontal?-(trackLength-handleLength-handleOffset):handleOffset,translateValue=isHorizontal?strTranslateBrace+transformOffset+"px, 0)":strTranslateBrace+"0, "+transformOffset+"px)",handleCSS[strTransform]=translateValue,_supportTransition&&(handleCSS[strTransition]=transition&&MATH.abs(handleOffset-scrollbarVarsInfo._handleOffset)>1?getCSSTransitionString(scrollbarVars._handle)+", "+(strTransform+_strSpace+transitionDuration)+"ms":_strEmpty)):handleCSS[scrollbarVars._left_top]=handleOffset,nativeOverlayScrollbarsAreActive()||(scrollbarVars._handle.css(handleCSS),_supportTransform&&_supportTransition&&transition&&scrollbarVars._handle.one(_strTransitionEndEvent,(function(){_destroyed||scrollbarVars._handle.css(strTransition,_strEmpty)}))),scrollbarVarsInfo._handleOffset=handleOffset,scrollbarVarsInfo._snappedHandleOffset=snappedHandleOffset,scrollbarVarsInfo._trackLength=trackLength}function refreshScrollbarsInteractive(isTrack,value){var action=value?"removeClass":"addClass",element2=isTrack?_scrollbarVerticalTrackElement:_scrollbarVerticalHandleElement,className=isTrack?_classNameScrollbarTrackOff:_classNameScrollbarHandleOff;(isTrack?_scrollbarHorizontalTrackElement:_scrollbarHorizontalHandleElement)[action](className),element2[action](className)}function getScrollbarVars(isHorizontal){return{_width_height:isHorizontal?_strWidth:_strHeight,_Width_Height:isHorizontal?"Width":"Height",_left_top:isHorizontal?_strLeft:_strTop,_Left_Top:isHorizontal?"Left":"Top",_x_y:isHorizontal?_strX:_strY,_X_Y:isHorizontal?"X":"Y",_w_h:isHorizontal?"w":"h",_l_t:isHorizontal?"l":"t",_track:isHorizontal?_scrollbarHorizontalTrackElement:_scrollbarVerticalTrackElement,_handle:isHorizontal?_scrollbarHorizontalHandleElement:_scrollbarVerticalHandleElement,_scrollbar:isHorizontal?_scrollbarHorizontalElement:_scrollbarVerticalElement,_info:isHorizontal?_scrollHorizontalInfo:_scrollVerticalInfo}}function setupScrollbarCornerDOM(destroy){_scrollbarCornerElement=_scrollbarCornerElement||selectOrGenerateDivByClass(_classNameScrollbarCorner,!0),destroy?_domExists&&_initialized?removeClass(_scrollbarCornerElement.removeAttr(LEXICON.s),_classNamesDynamicDestroy):remove(_scrollbarCornerElement):_domExists||_hostElement.append(_scrollbarCornerElement)}function setupScrollbarCornerEvents(){var reconnectMutationObserver,insideIFrame=_windowElementNative.top!==_windowElementNative,mouseDownPosition={},mouseDownSize={},mouseDownInvertedScale={};function documentDragMove(event){if(onMouseTouchDownContinue(event)){var pageOffset=getCoordinates(event),hostElementCSS={};(_resizeHorizontal||_resizeBoth)&&(hostElementCSS[_strWidth]=mouseDownSize.w+(pageOffset.x-mouseDownPosition.x)*mouseDownInvertedScale.x),(_resizeVertical||_resizeBoth)&&(hostElementCSS[_strHeight]=mouseDownSize.h+(pageOffset.y-mouseDownPosition.y)*mouseDownInvertedScale.y),_hostElement.css(hostElementCSS),COMPATIBILITY.stpP(event)}else documentMouseTouchUp(event)}function documentMouseTouchUp(event){var eventIsTrusted=event!==undefined$1;setupResponsiveEventListener(_documentElement,[_strSelectStartEvent,_strMouseTouchMoveEvent,_strMouseTouchUpEvent],[documentOnSelectStart,documentDragMove,documentMouseTouchUp],!0),removeClass(_bodyElement,_classNameDragging),_scrollbarCornerElement.releaseCapture&&_scrollbarCornerElement.releaseCapture(),eventIsTrusted&&(reconnectMutationObserver&&connectMutationObservers(),_base.update(_strAuto)),reconnectMutationObserver=!1}function onMouseTouchDownContinue(event){var isTouchEvent=(event.originalEvent||event).touches!==undefined$1;return!_sleeping&&!_destroyed&&(1===COMPATIBILITY.mBtn(event)||isTouchEvent)}function getCoordinates(event){return _msieVersion&&insideIFrame?{x:event.screenX,y:event.screenY}:COMPATIBILITY.page(event)}addDestroyEventListener(_scrollbarCornerElement,_strMouseTouchDownEvent,(function(event){onMouseTouchDownContinue(event)&&!_resizeNone&&(_mutationObserversConnected&&(reconnectMutationObserver=!0,disconnectMutationObservers()),mouseDownPosition=getCoordinates(event),mouseDownSize.w=_hostElementNative[LEXICON.oW]-(_isBorderBox?0:_paddingX),mouseDownSize.h=_hostElementNative[LEXICON.oH]-(_isBorderBox?0:_paddingY),mouseDownInvertedScale=getHostElementInvertedScale(),setupResponsiveEventListener(_documentElement,[_strSelectStartEvent,_strMouseTouchMoveEvent,_strMouseTouchUpEvent],[documentOnSelectStart,documentDragMove,documentMouseTouchUp]),addClass(_bodyElement,_classNameDragging),_scrollbarCornerElement.setCapture&&_scrollbarCornerElement.setCapture(),COMPATIBILITY.prvD(event),COMPATIBILITY.stpP(event))}))}function dispatchCallback(name,args,dependent){if(!1!==dependent)if(_initialized){var ext,callback=_currentPreparedOptions.callbacks[name],extensionOnName=name;"on"===extensionOnName.substr(0,2)&&(extensionOnName=extensionOnName.substr(2,1).toLowerCase()+extensionOnName.substr(3)),type(callback)==TYPES.f&&callback.call(_base,args),each(_extensions,(function(){type((ext=this).on)==TYPES.f&&ext.on(extensionOnName,args)}))}else _destroyed||_callbacksInitQeueue.push({n:name,a:args})}function setTopRightBottomLeft(targetCSSObject,prefix,values){values=values||[_strEmpty,_strEmpty,_strEmpty,_strEmpty],targetCSSObject[(prefix=prefix||_strEmpty)+_strTop]=values[0],targetCSSObject[prefix+_strRight]=values[1],targetCSSObject[prefix+_strBottom]=values[2],targetCSSObject[prefix+_strLeft]=values[3]}function getTopRightBottomLeftHost(prefix,suffix,zeroX,zeroY){return suffix=suffix||_strEmpty,prefix=prefix||_strEmpty,{t:zeroY?0:parseToZeroOrNumber(_hostElement.css(prefix+_strTop+suffix)),r:zeroX?0:parseToZeroOrNumber(_hostElement.css(prefix+_strRight+suffix)),b:zeroY?0:parseToZeroOrNumber(_hostElement.css(prefix+_strBottom+suffix)),l:zeroX?0:parseToZeroOrNumber(_hostElement.css(prefix+_strLeft+suffix))}}function getCSSTransitionString(element){var transitionStr=VENDORS._cssProperty("transition"),assembledValue=element.css(transitionStr);if(assembledValue)return assembledValue;for(var strResult,valueArray,j,regExpString="\\s*(([^,(]+(\\(.+?\\))?)+)[\\s,]*",regExpMain=new RegExp(regExpString),regExpValidate=new RegExp("^("+regExpString+")+$"),properties="property duration timing-function delay".split(" "),result=[],i=0,splitCssStyleByComma=function splitCssStyleByComma(str){if(strResult=[],!str.match(regExpValidate))return str;for(;str.match(regExpMain);)strResult.push(RegExp.$1),str=str.replace(regExpMain,_strEmpty);return strResult};itextareaLastCol&&(widestRow=i+1,textareaLastCol=rowCols);return{_cursorRow:cursorRow,_cursorColumn:cursorCol,_rows:textareaLastRow,_columns:textareaLastCol,_widestRow:widestRow,_cursorPosition:textareaCursorPosition,_cursorMax:textareaLength}}}function nativeOverlayScrollbarsAreActive(){return _ignoreOverlayScrollbarHidingCache&&_nativeScrollbarIsOverlaid.x&&_nativeScrollbarIsOverlaid.y}function getContentMeasureElement(){return _isTextarea?_textareaCoverElement[0]:_contentElementNative}function generateDiv(classesOrAttrs,content){return"
"+(content||_strEmpty)+"
"}function selectOrGenerateDivByClass(className,selectParentOrOnlyChildren){var onlyChildren=type(selectParentOrOnlyChildren)==TYPES.b,selectParent=onlyChildren?_hostElement:selectParentOrOnlyChildren||_hostElement;return _domExists&&!selectParent[LEXICON.l]?null:_domExists?selectParent[onlyChildren?"children":"find"](_strDot+className.replace(/\s/g,_strDot)).eq(0):FRAMEWORK(generateDiv(className))}function getObjectPropVal(obj,path){for(var val,splits=path.split(_strDot),i=0;i0&&(optsIsPlainObj?FRAMEWORK.each(pluginTargetElements,(function(i,v){(inst=v)!==undefined$1&&arr.push(OverlayScrollbarsInstance(inst,options,extensions,_pluginsGlobals,_pluginsAutoUpdateLoop))})):FRAMEWORK.each(pluginTargetElements,(function(i,v){inst=INSTANCES(v),("!"===options&&_plugin.valid(inst)||COMPATIBILITY.type(options)==TYPES.f&&options(v,inst)||options===undefined$1)&&arr.push(inst)})),result=1===arr[LEXICON.l]?arr[0]:arr),result):optsIsPlainObj||!options?result:arr},_plugin.globals=function(){initOverlayScrollbarsStatics();var globals=FRAMEWORK.extend(!0,{},_pluginsGlobals);return delete globals.msie,globals},_plugin.defaultOptions=function(newDefaultOptions){initOverlayScrollbarsStatics();var currDefaultOptions=_pluginsGlobals.defaultOptions;if(newDefaultOptions===undefined$1)return FRAMEWORK.extend(!0,{},currDefaultOptions);_pluginsGlobals.defaultOptions=FRAMEWORK.extend(!0,{},currDefaultOptions,_pluginsOptions._validate(newDefaultOptions,_pluginsOptions._template,!0,currDefaultOptions)._default)},_plugin.valid=function(osInstance){return osInstance instanceof _plugin&&!osInstance.getState().destroyed},_plugin.extension=function(extensionName,extension,defaultOptions){var extNameTypeString=COMPATIBILITY.type(extensionName)==TYPES.s,argLen=arguments[LEXICON.l],i=0;if(argLen<1||!extNameTypeString)return FRAMEWORK.extend(!0,{length:_pluginsExtensions[LEXICON.l]},_pluginsExtensions);if(extNameTypeString)if(COMPATIBILITY.type(extension)==TYPES.f)_pluginsExtensions.push({name:extensionName,extensionFactory:extension,defaultOptions:defaultOptions});else for(;i<_pluginsExtensions[LEXICON.l];i++)if(_pluginsExtensions[i].name===extensionName){if(!(argLen>1))return FRAMEWORK.extend(!0,{},_pluginsExtensions[i]);_pluginsExtensions.splice(i,1)}},_plugin}();return JQUERY&&JQUERY.fn&&(JQUERY.fn.overlayScrollbars=function(options,extensions){var _elements=this;return JQUERY.isPlainObject(options)?(JQUERY.each(_elements,(function(){PLUGIN(this,options,extensions)})),_elements):PLUGIN(_elements,options)}),PLUGIN}(global,global.document,void 0)}(OverlayScrollbars$1);var OverlayScrollbars=OverlayScrollbars$1.exports,OverlayScrollbarsComponent=function OverlayScrollbarsComponent(_a){var _a$options=_a.options,options=void 0===_a$options?{}:_a$options,extensions=_a.extensions,className=_a.className,children=_a.children,rest=Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_22__.D)(_a,["options","extensions","className","children"]),osTargetRef=Object(react__WEBPACK_IMPORTED_MODULE_23__.useRef)(),osInstance=Object(react__WEBPACK_IMPORTED_MODULE_23__.useRef)();return Object(react__WEBPACK_IMPORTED_MODULE_23__.useEffect)((function(){return osInstance.current=OverlayScrollbars(osTargetRef.current,options,extensions),mergeHostClassNames(osInstance.current,className),function(){OverlayScrollbars.valid(osInstance.current)&&(osInstance.current.destroy(),osInstance.current=null)}}),[]),Object(react__WEBPACK_IMPORTED_MODULE_23__.useEffect)((function(){OverlayScrollbars.valid(osInstance.current)&&osInstance.current.options(options)}),[options]),Object(react__WEBPACK_IMPORTED_MODULE_23__.useEffect)((function(){OverlayScrollbars.valid(osInstance.current)&&mergeHostClassNames(osInstance.current,className)}),[className]),react__WEBPACK_IMPORTED_MODULE_23___default.a.createElement("div",Object.assign({className:"os-host"},rest,{ref:osTargetRef}),react__WEBPACK_IMPORTED_MODULE_23___default.a.createElement("div",{className:"os-resize-observer-host"}),react__WEBPACK_IMPORTED_MODULE_23___default.a.createElement("div",{className:"os-padding"},react__WEBPACK_IMPORTED_MODULE_23___default.a.createElement("div",{className:"os-viewport"},react__WEBPACK_IMPORTED_MODULE_23___default.a.createElement("div",{className:"os-content"},children))),react__WEBPACK_IMPORTED_MODULE_23___default.a.createElement("div",{className:"os-scrollbar os-scrollbar-horizontal "},react__WEBPACK_IMPORTED_MODULE_23___default.a.createElement("div",{className:"os-scrollbar-track"},react__WEBPACK_IMPORTED_MODULE_23___default.a.createElement("div",{className:"os-scrollbar-handle"}))),react__WEBPACK_IMPORTED_MODULE_23___default.a.createElement("div",{className:"os-scrollbar os-scrollbar-vertical"},react__WEBPACK_IMPORTED_MODULE_23___default.a.createElement("div",{className:"os-scrollbar-track"},react__WEBPACK_IMPORTED_MODULE_23___default.a.createElement("div",{className:"os-scrollbar-handle"}))),react__WEBPACK_IMPORTED_MODULE_23___default.a.createElement("div",{className:"os-scrollbar-corner"}))};function mergeHostClassNames(osInstance,className){if(OverlayScrollbars.valid(osInstance)){var host=osInstance.getElements().host,regex=new RegExp("(^os-host([-_].+|)$)|".concat(osInstance.options().className.replace(/\s/g,"$|"),"$"),"g"),osClassNames=host.className.split(" ").filter((function(name){return name.match(regex)})).join(" ");host.className="".concat(osClassNames," ").concat(className||"")}}}}]); \ No newline at end of file diff --git a/8.5a16d26f32353c4e9e4f.manager.bundle.js.LICENSE.txt b/8.5a16d26f32353c4e9e4f.manager.bundle.js.LICENSE.txt new file mode 100644 index 000000000..cfda1d61d --- /dev/null +++ b/8.5a16d26f32353c4e9e4f.manager.bundle.js.LICENSE.txt @@ -0,0 +1,12 @@ +/*! + * OverlayScrollbars + * https://github.com/KingSora/OverlayScrollbars + * + * Version: 1.13.0 + * + * Copyright KingSora | Rene Haas. + * https://github.com/KingSora + * + * Released under the MIT license. + * Date: 02.08.2020 + */ diff --git a/8.644a14f9.iframe.bundle.js b/8.644a14f9.iframe.bundle.js new file mode 100644 index 000000000..c7738d720 --- /dev/null +++ b/8.644a14f9.iframe.bundle.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{"./node_modules/core-js/internals/array-buffer-basic-detection.js":function(module,exports,__webpack_require__){"use strict";module.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},"./node_modules/core-js/internals/array-buffer.js":function(module,exports,__webpack_require__){"use strict";var global=__webpack_require__("./node_modules/core-js/internals/global.js"),uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),DESCRIPTORS=__webpack_require__("./node_modules/core-js/internals/descriptors.js"),NATIVE_ARRAY_BUFFER=__webpack_require__("./node_modules/core-js/internals/array-buffer-basic-detection.js"),FunctionName=__webpack_require__("./node_modules/core-js/internals/function-name.js"),createNonEnumerableProperty=__webpack_require__("./node_modules/core-js/internals/create-non-enumerable-property.js"),defineBuiltInAccessor=__webpack_require__("./node_modules/core-js/internals/define-built-in-accessor.js"),defineBuiltIns=__webpack_require__("./node_modules/core-js/internals/define-built-ins.js"),fails=__webpack_require__("./node_modules/core-js/internals/fails.js"),anInstance=__webpack_require__("./node_modules/core-js/internals/an-instance.js"),toIntegerOrInfinity=__webpack_require__("./node_modules/core-js/internals/to-integer-or-infinity.js"),toLength=__webpack_require__("./node_modules/core-js/internals/to-length.js"),toIndex=__webpack_require__("./node_modules/core-js/internals/to-index.js"),fround=__webpack_require__("./node_modules/core-js/internals/math-fround.js"),IEEE754=__webpack_require__("./node_modules/core-js/internals/ieee754.js"),getPrototypeOf=__webpack_require__("./node_modules/core-js/internals/object-get-prototype-of.js"),setPrototypeOf=__webpack_require__("./node_modules/core-js/internals/object-set-prototype-of.js"),arrayFill=__webpack_require__("./node_modules/core-js/internals/array-fill.js"),arraySlice=__webpack_require__("./node_modules/core-js/internals/array-slice.js"),inheritIfRequired=__webpack_require__("./node_modules/core-js/internals/inherit-if-required.js"),copyConstructorProperties=__webpack_require__("./node_modules/core-js/internals/copy-constructor-properties.js"),setToStringTag=__webpack_require__("./node_modules/core-js/internals/set-to-string-tag.js"),InternalStateModule=__webpack_require__("./node_modules/core-js/internals/internal-state.js"),PROPER_FUNCTION_NAME=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,getInternalArrayBufferState=InternalStateModule.getterFor("ArrayBuffer"),getInternalDataViewState=InternalStateModule.getterFor("DataView"),setInternalState=InternalStateModule.set,NativeArrayBuffer=global.ArrayBuffer,$ArrayBuffer=NativeArrayBuffer,ArrayBufferPrototype=$ArrayBuffer&&$ArrayBuffer.prototype,$DataView=global.DataView,DataViewPrototype=$DataView&&$DataView.prototype,ObjectPrototype=Object.prototype,Array=global.Array,RangeError=global.RangeError,fill=uncurryThis(arrayFill),reverse=uncurryThis([].reverse),packIEEE754=IEEE754.pack,unpackIEEE754=IEEE754.unpack,packInt8=function(number){return[255&number]},packInt16=function(number){return[255&number,number>>8&255]},packInt32=function(number){return[255&number,number>>8&255,number>>16&255,number>>24&255]},unpackInt32=function(buffer){return buffer[3]<<24|buffer[2]<<16|buffer[1]<<8|buffer[0]},packFloat32=function(number){return packIEEE754(fround(number),23,4)},packFloat64=function(number){return packIEEE754(number,52,8)},addGetter=function(Constructor,key,getInternalState){defineBuiltInAccessor(Constructor.prototype,key,{configurable:!0,get:function(){return getInternalState(this)[key]}})},get=function(view,count,index,isLittleEndian){var store=getInternalDataViewState(view),intIndex=toIndex(index),boolIsLittleEndian=!!isLittleEndian;if(intIndex+count>store.byteLength)throw new RangeError("Wrong index");var bytes=store.bytes,start=intIndex+store.byteOffset,pack=arraySlice(bytes,start,start+count);return boolIsLittleEndian?pack:reverse(pack)},set=function(view,count,index,conversion,value,isLittleEndian){var store=getInternalDataViewState(view),intIndex=toIndex(index),pack=conversion(+value),boolIsLittleEndian=!!isLittleEndian;if(intIndex+count>store.byteLength)throw new RangeError("Wrong index");for(var bytes=store.bytes,start=intIndex+store.byteOffset,i=0;i>24)},setUint8:function setUint8(byteOffset,value){$setInt8(this,byteOffset,value<<24>>24)}},{unsafe:!0})}else ArrayBufferPrototype=($ArrayBuffer=function ArrayBuffer(length){anInstance(this,ArrayBufferPrototype);var byteLength=toIndex(length);setInternalState(this,{type:"ArrayBuffer",bytes:fill(Array(byteLength),0),byteLength:byteLength}),DESCRIPTORS||(this.byteLength=byteLength,this.detached=!1)}).prototype,DataViewPrototype=($DataView=function DataView(buffer,byteOffset,byteLength){anInstance(this,DataViewPrototype),anInstance(buffer,ArrayBufferPrototype);var bufferState=getInternalArrayBufferState(buffer),bufferLength=bufferState.byteLength,offset=toIntegerOrInfinity(byteOffset);if(offset<0||offset>bufferLength)throw new RangeError("Wrong offset");if(offset+(byteLength=void 0===byteLength?bufferLength-offset:toLength(byteLength))>bufferLength)throw new RangeError("Wrong length");setInternalState(this,{type:"DataView",buffer:buffer,byteLength:byteLength,byteOffset:offset,bytes:bufferState.bytes}),DESCRIPTORS||(this.buffer=buffer,this.byteLength=byteLength,this.byteOffset=offset)}).prototype,DESCRIPTORS&&(addGetter($ArrayBuffer,"byteLength",getInternalArrayBufferState),addGetter($DataView,"buffer",getInternalDataViewState),addGetter($DataView,"byteLength",getInternalDataViewState),addGetter($DataView,"byteOffset",getInternalDataViewState)),defineBuiltIns(DataViewPrototype,{getInt8:function getInt8(byteOffset){return get(this,1,byteOffset)[0]<<24>>24},getUint8:function getUint8(byteOffset){return get(this,1,byteOffset)[0]},getInt16:function getInt16(byteOffset){var bytes=get(this,2,byteOffset,arguments.length>1&&arguments[1]);return(bytes[1]<<8|bytes[0])<<16>>16},getUint16:function getUint16(byteOffset){var bytes=get(this,2,byteOffset,arguments.length>1&&arguments[1]);return bytes[1]<<8|bytes[0]},getInt32:function getInt32(byteOffset){return unpackInt32(get(this,4,byteOffset,arguments.length>1&&arguments[1]))},getUint32:function getUint32(byteOffset){return unpackInt32(get(this,4,byteOffset,arguments.length>1&&arguments[1]))>>>0},getFloat32:function getFloat32(byteOffset){return unpackIEEE754(get(this,4,byteOffset,arguments.length>1&&arguments[1]),23)},getFloat64:function getFloat64(byteOffset){return unpackIEEE754(get(this,8,byteOffset,arguments.length>1&&arguments[1]),52)},setInt8:function setInt8(byteOffset,value){set(this,1,byteOffset,packInt8,value)},setUint8:function setUint8(byteOffset,value){set(this,1,byteOffset,packInt8,value)},setInt16:function setInt16(byteOffset,value){set(this,2,byteOffset,packInt16,value,arguments.length>2&&arguments[2])},setUint16:function setUint16(byteOffset,value){set(this,2,byteOffset,packInt16,value,arguments.length>2&&arguments[2])},setInt32:function setInt32(byteOffset,value){set(this,4,byteOffset,packInt32,value,arguments.length>2&&arguments[2])},setUint32:function setUint32(byteOffset,value){set(this,4,byteOffset,packInt32,value,arguments.length>2&&arguments[2])},setFloat32:function setFloat32(byteOffset,value){set(this,4,byteOffset,packFloat32,value,arguments.length>2&&arguments[2])},setFloat64:function setFloat64(byteOffset,value){set(this,8,byteOffset,packFloat64,value,arguments.length>2&&arguments[2])}});setToStringTag($ArrayBuffer,"ArrayBuffer"),setToStringTag($DataView,"DataView"),module.exports={ArrayBuffer:$ArrayBuffer,DataView:$DataView}},"./node_modules/core-js/internals/ieee754.js":function(module,exports,__webpack_require__){"use strict";var $Array=Array,abs=Math.abs,pow=Math.pow,floor=Math.floor,log=Math.log,LN2=Math.LN2;module.exports={pack:function(number,mantissaLength,bytes){var exponent,mantissa,c,buffer=$Array(bytes),exponentLength=8*bytes-mantissaLength-1,eMax=(1<>1,rt=23===mantissaLength?pow(2,-24)-pow(2,-77):0,sign=number<0||0===number&&1/number<0?1:0,index=0;for((number=abs(number))!=number||number===1/0?(mantissa=number!=number?1:0,exponent=eMax):(exponent=floor(log(number)/LN2),number*(c=pow(2,-exponent))<1&&(exponent--,c*=2),(number+=exponent+eBias>=1?rt/c:rt*pow(2,1-eBias))*c>=2&&(exponent++,c/=2),exponent+eBias>=eMax?(mantissa=0,exponent=eMax):exponent+eBias>=1?(mantissa=(number*c-1)*pow(2,mantissaLength),exponent+=eBias):(mantissa=number*pow(2,eBias-1)*pow(2,mantissaLength),exponent=0));mantissaLength>=8;)buffer[index++]=255&mantissa,mantissa/=256,mantissaLength-=8;for(exponent=exponent<0;)buffer[index++]=255&exponent,exponent/=256,exponentLength-=8;return buffer[--index]|=128*sign,buffer},unpack:function(buffer,mantissaLength){var mantissa,bytes=buffer.length,exponentLength=8*bytes-mantissaLength-1,eMax=(1<>1,nBits=exponentLength-7,index=bytes-1,sign=buffer[index--],exponent=127&sign;for(sign>>=7;nBits>0;)exponent=256*exponent+buffer[index--],nBits-=8;for(mantissa=exponent&(1<<-nBits)-1,exponent>>=-nBits,nBits+=mantissaLength;nBits>0;)mantissa=256*mantissa+buffer[index--],nBits-=8;if(0===exponent)exponent=1-eBias;else{if(exponent===eMax)return mantissa?NaN:sign?-1/0:1/0;mantissa+=pow(2,mantissaLength),exponent-=eBias}return(sign?-1:1)*mantissa*pow(2,exponent-mantissaLength)}}},"./node_modules/core-js/internals/math-float-round.js":function(module,exports,__webpack_require__){"use strict";var sign=__webpack_require__("./node_modules/core-js/internals/math-sign.js"),abs=Math.abs;module.exports=function(x,FLOAT_EPSILON,FLOAT_MAX_VALUE,FLOAT_MIN_VALUE){var n=+x,absolute=abs(n),s=sign(n);if(absoluteFLOAT_MAX_VALUE||result!=result?s*(1/0):s*result}},"./node_modules/core-js/internals/math-fround.js":function(module,exports,__webpack_require__){"use strict";var floatRound=__webpack_require__("./node_modules/core-js/internals/math-float-round.js");module.exports=Math.fround||function fround(x){return floatRound(x,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},"./node_modules/core-js/internals/math-log10.js":function(module,exports,__webpack_require__){"use strict";var log=Math.log,LOG10E=Math.LOG10E;module.exports=Math.log10||function log10(x){return log(x)*LOG10E}},"./node_modules/core-js/internals/math-sign.js":function(module,exports,__webpack_require__){"use strict";module.exports=Math.sign||function sign(x){var n=+x;return 0===n||n!=n?n:n<0?-1:1}},"./node_modules/core-js/internals/to-index.js":function(module,exports,__webpack_require__){"use strict";var toIntegerOrInfinity=__webpack_require__("./node_modules/core-js/internals/to-integer-or-infinity.js"),toLength=__webpack_require__("./node_modules/core-js/internals/to-length.js"),$RangeError=RangeError;module.exports=function(it){if(void 0===it)return 0;var number=toIntegerOrInfinity(it),length=toLength(number);if(number!==length)throw new $RangeError("Wrong length or index");return length}},"./node_modules/core-js/modules/es.array-buffer.constructor.js":function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__("./node_modules/core-js/internals/export.js"),global=__webpack_require__("./node_modules/core-js/internals/global.js"),arrayBufferModule=__webpack_require__("./node_modules/core-js/internals/array-buffer.js"),setSpecies=__webpack_require__("./node_modules/core-js/internals/set-species.js"),ArrayBuffer=arrayBufferModule.ArrayBuffer;$({global:!0,constructor:!0,forced:global.ArrayBuffer!==ArrayBuffer},{ArrayBuffer:ArrayBuffer}),setSpecies("ArrayBuffer")},"./node_modules/core-js/modules/es.math.log10.js":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/internals/export.js")({target:"Math",stat:!0},{log10:__webpack_require__("./node_modules/core-js/internals/math-log10.js")})},"./node_modules/core-js/modules/es.typed-array.int16-array.js":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/internals/typed-array-constructor.js")("Int16",(function(init){return function Int16Array(data,byteOffset,length){return init(this,data,byteOffset,length)}}))},"./node_modules/core-js/modules/es.typed-array.int32-array.js":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/internals/typed-array-constructor.js")("Int32",(function(init){return function Int32Array(data,byteOffset,length){return init(this,data,byteOffset,length)}}))},"./node_modules/core-js/modules/es.typed-array.int8-array.js":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/internals/typed-array-constructor.js")("Int8",(function(init){return function Int8Array(data,byteOffset,length){return init(this,data,byteOffset,length)}}))},"./src/hooks/VoiceRecorder/WebAudioUtils.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"downsampleToWav",(function(){return downsampleToWav})),__webpack_require__.d(__webpack_exports__,"encodeMp3",(function(){return encodeMp3}));__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.typed-array.int16-array.js"),__webpack_require__("./node_modules/core-js/modules/es.typed-array.copy-within.js"),__webpack_require__("./node_modules/core-js/modules/es.typed-array.every.js"),__webpack_require__("./node_modules/core-js/modules/es.typed-array.fill.js"),__webpack_require__("./node_modules/core-js/modules/es.typed-array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.typed-array.find.js"),__webpack_require__("./node_modules/core-js/modules/es.typed-array.find-index.js"),__webpack_require__("./node_modules/core-js/modules/es.typed-array.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.typed-array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.typed-array.index-of.js"),__webpack_require__("./node_modules/core-js/modules/es.typed-array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.typed-array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.typed-array.last-index-of.js"),__webpack_require__("./node_modules/core-js/modules/es.typed-array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.typed-array.reduce.js"),__webpack_require__("./node_modules/core-js/modules/es.typed-array.reduce-right.js"),__webpack_require__("./node_modules/core-js/modules/es.typed-array.reverse.js"),__webpack_require__("./node_modules/core-js/modules/es.typed-array.set.js"),__webpack_require__("./node_modules/core-js/modules/es.typed-array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.typed-array.some.js"),__webpack_require__("./node_modules/core-js/modules/es.typed-array.sort.js"),__webpack_require__("./node_modules/core-js/modules/es.typed-array.subarray.js"),__webpack_require__("./node_modules/core-js/modules/es.typed-array.to-locale-string.js"),__webpack_require__("./node_modules/core-js/modules/es.typed-array.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.typed-array.int8-array.js"),__webpack_require__("./node_modules/core-js/modules/es.array-buffer.constructor.js");var consts=__webpack_require__("./src/utils/consts.ts"),e=(__webpack_require__("./node_modules/core-js/modules/es.typed-array.int32-array.js"),__webpack_require__("./node_modules/core-js/modules/es.typed-array.float32-array.js"),__webpack_require__("./node_modules/core-js/modules/es.math.log10.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.typed-array.float64-array.js"),__webpack_require__("./node_modules/core-js/modules/es.array.fill.js"),__webpack_require__("./node_modules/core-js/modules/es.array.sort.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.flags.js"),__webpack_require__("./node_modules/core-js/modules/es.string.starts-with.js"),{});function a(e){return new Int16Array(e)}function t(e){return new Int32Array(e)}function s(e){return new Float32Array(e)}var r={arraycopy:function arraycopy(e,a,t,s,n){for(var r=a+n;a=0;--z){var ee,ae;ee=F[C+z]*l[20+z]+F[C+-1-z]*f[28+z],ae=F[C+z]*f[28+z]-F[C+-1-z]*l[20+z],F[C+-1-z]=ee,F[C+z]=ae}}}if(N=b,O=286,1==e.mode_gr)for(var te=0;te<18;te++)a.arraycopy(e.sb_sample[X][1][te],0,e.sb_sample[X][0][te],0,32)}}}}(),l=function(){if(m)return b;m=1;var e=v();return b=function b(){this.thm=new e,this.en=new e}}(),h=R,u=o.FFTOFFSET,d=o.MPG_MD_MS_LR,g=null;this.psy=null;var S=null,M=null,B=null;this.setModules=function(e,a,t,s){g=e,this.psy=a,S=a,M=s,B=t};var w=new e;this.lame_encode_mp3_frame=function(e,f,c,b,m,p){var v,R=s([2,2]);R[0][0]=new l,R[0][1]=new l,R[1][0]=new l,R[1][1]=new l;var A,T=s([2,2]);T[0][0]=new l,T[0][1]=new l,T[1][0]=new l,T[1][1]=new l;var E,k,y,x=[null,null],P=e.internal_flags,I=r([2,4]),H=[.5,.5],V=[[0,0],[0,0]],L=[[0,0],[0,0]];if(x[0]=f,x[1]=c,0==P.lame_encode_frame_init&&function(e,a){var t,s,r=e.internal_flags;if(0==r.lame_encode_frame_init){var _,l,f=n(2014),c=n(2014);for(r.lame_encode_frame_init=1,_=0,l=0;_<286+576*(1+r.mode_gr);++_)_<576*r.mode_gr?(f[_]=0,2==r.channels_out&&(c[_]=0)):(f[_]=a[0][l],2==r.channels_out&&(c[_]=a[1][l]),++l);for(s=0;s=o.FFTOFFSET),i(r.mf_size>=o.BLKSIZE+e.framesize-o.FFTOFFSET),i(r.mf_size>=512+e.framesize-32)}}(e,x),P.padding=0,(P.slot_lag-=P.frac_SpF)<0&&(P.slot_lag+=e.out_samplerate,P.padding=1),0!=P.psymodel){var N=[null,null],O=0,X=_(2);for(y=0;y0&&(H[y]=I[y][3]/H[y])),k=0;k.03125)e.ATH.adjust>=1?e.ATH.adjust=1:e.ATH.adjust=s?(e.ATH.adjust*=.075*s+.925,e.ATH.adjust=s?e.ATH.adjust=s:e.ATH.adjust>1,b=(u=n<<1)+(h=n),n=u<<1,_=(r=a)+m;do{A=e[r+0]-e[r+h],R=e[r+0]+e[r+h],E=e[r+u]-e[r+b],w=e[r+u]+e[r+b],e[r+u]=R-w,e[r+0]=R+w,e[r+b]=A-E,e[r+h]=A+E,A=e[_+0]-e[_+h],R=e[_+0]+e[_+h],E=B.SQRT2*e[_+b],w=B.SQRT2*e[_+u],e[_+u]=R-w,e[_+0]=R+w,e[_+b]=A-E,e[_+h]=A+E,_+=n,r+=n}while(r=0);s(t[o],l,T.BLKSIZE_s/2)}},this.fft_long=function(a,t,r,_,i){var o=T.BLKSIZE/8-1,l=T.BLKSIZE/2;do{var f,c,h,u,b,m=255&n[o];c=(f=e[m]*_[r][i+m])-(b=e[m+512]*_[r][i+m+512]),f+=b,u=(h=e[m+256]*_[r][i+m+256])-(b=e[m+768]*_[r][i+m+768]),h+=b,t[0+(l-=4)]=f+h,t[l+2]=f-h,t[l+1]=c+u,t[l+3]=c-u,c=(f=e[m+1]*_[r][i+m+1])-(b=e[m+513]*_[r][i+m+513]),f+=b,u=(h=e[m+257]*_[r][i+m+257])-(b=e[m+769]*_[r][i+m+769]),h+=b,t[l+T.BLKSIZE/2+0]=f+h,t[l+T.BLKSIZE/2+2]=f-h,t[l+T.BLKSIZE/2+1]=c+u,t[l+T.BLKSIZE/2+3]=c-u}while(--o>=0);s(t,l,T.BLKSIZE/2)},this.init_fft=function(t){for(var s=0;s=0;--b){var m=n[r+0][b],p=n[r+1][b];n[r+0][b]=(m+p)*I.SQRT2*.5,n[r+1][b]=(m-p)*I.SQRT2*.5}for(var v=2;v>=0;--v)for(b=D.BLKSIZE_s-1;b>=0;--b)m=_[o+0][v][b],p=_[o+1][v][b],_[o+0][v][b]=(m+p)*I.SQRT2*.5,_[o+1][v][b]=(m-p)*I.SQRT2*.5}for(t[0]=n[r+0][0],t[0]*=t[0],b=D.BLKSIZE/2-1;b>=0;--b){var d=n[r+0][D.BLKSIZE/2-b],g=n[r+0][D.BLKSIZE/2+b];t[D.BLKSIZE/2-b]=.5*(d*d+g*g)}for(v=2;v>=0;--v)for(s[v][0]=_[o+0][v][0],s[v][0]*=s[v][0],b=D.BLKSIZE_s/2-1;b>=0;--b)d=_[o+0][v][D.BLKSIZE_s/2-b],g=_[o+0][v][D.BLKSIZE_s/2+b],s[v][D.BLKSIZE_s/2-b]=.5*(d*d+g*g);var S=0;for(b=11;be){if(!(a=a*f)return e+a;_=e/a}if(e+=a,s+3<=6){if(_>=l)return e;var i=0|I.FAST_LOG10_X(_,16);return e*b[i]}return i=0|I.FAST_LOG10_X(_,16),a=0!=r?n.ATH.cb_s[t]*n.ATH.adjust:n.ATH.cb_l[t]*n.ATH.adjust,ea?(o=1,i<=13&&(o=m[i]),h=I.FAST_LOG10_X(e/a,10/15),e*((u[i]-o)*h+o)):i>13?e:e*m[i]:e*u[i]}var v=[1.7782755904,1.35879*1.35879,1.38454*1.38454,1.39497*1.39497,1.40548*1.40548,1.3537*1.3537,1.6999465924,1.22321*1.22321,1.3169398564,1];function d(e,a,t){var s;if(e<0&&(e=0),a<0&&(a=0),e<=0)return a;if(a<=0)return e;if(s=a>e?a/e:e/a,-2<=t&&t<=2){if(s>=l)return e+a;var n=0|I.FAST_LOG10_X(s,16);return(e+a)*v[n]}return s=0),O(t[_]>=0),i+=a[_],o+=t[_],_++;if(e.en[s].s[r][n]=i,e.thm[s].s[r][n]=o,_>=f){++r;break}O(a[_]>=0),O(t[_]>=0);var h=e.PSY.bo_s_weight[r],u=1-h;i=h*a[_],o=h*t[_],e.en[s].s[r][n]+=i,e.thm[s].s[r][n]+=o,i=u*a[_],o=u*t[_]}for(;r=0),O(t[r]>=0),_+=a[r],i+=t[r],r++;if(e.en[s].l[n]=_,e.thm[s].l[n]=i,r>=l){++n;break}O(a[r]>=0),O(t[r]>=0);var c=e.PSY.bo_l_weight[n],h=1-c;_=c*a[r],i=c*t[r],e.en[s].l[n]+=_,e.thm[s].l[n]+=i,_=h*a[r],i=h*t[r]}for(;n=0)}for(;i<=D.CBANDS;++i)t[i]=0,s[i]=0}function M(e,a,t){return t>=1?e:t<=0?a:a>0?Math.pow(e/a,t)*a:0}var B=[11.8,13.6,17.2,32,46.5,51.3,57.5,67.1,71.5,84.6,97.6,130];function w(e,a){for(var s=309.07,n=0;n0){var i=_*a,o=e.en.s[n][r];o>i&&(s+=o>1e10*i?B[n]*(10*t):B[n]*I.FAST_LOG10(o/i))}}return s}var T=[6.8,5.8,5.8,6.4,6.5,9.9,12.1,14.4,15,18.9,21.6,26.9,34.2,40.2,46.8,56.5,60.7,73.9,85.7,93.4,126.1];function E(e,a){for(var s=281.0575,n=0;n0){var _=r*a,i=e.en.l[n];i>_&&(s+=i>1e10*_?T[n]*(10*t):T[n]*I.FAST_LOG10(i/_))}}return s}function k(e,a,t,s,n){var r,_;for(r=_=0;r=0),O(t[r]>=0),O(s[r]>=0),O(n[r]>=0)}}function Y(e,a,t,s){var n=h.length-1,r=0,_=t[r]+t[r+1];for(_>0?((i=a[r])0),(o=0|(_=20*(2*i-_)/(_*(e.numlines_l[r]+e.numlines_l[r+1]-1))))>n&&(o=n),s[r]=o):s[r]=0,r=1;r0?((i=a[r-1])0),(o=0|(_=20*(3*i-_)/(_*(e.numlines_l[r-1]+e.numlines_l[r]+e.numlines_l[r+1]-1))))>n&&(o=n),s[r]=o):s[r]=0}O(r==e.npart_l-1),(_=t[r-1]+t[r])>0?((i=a[r-1])0),(o=0|(_=20*(2*i-_)/(_*(e.numlines_l[r-1]+e.numlines_l[r]-1))))>n&&(o=n),s[r]=o):s[r]=0,O(r==e.npart_l-1)}var q=[-1730326e-23,-.01703172,-1349528e-23,.0418072,-673278e-22,-.0876324,-30835e-21,.1863476,-1104424e-22,-.627638];function F(e,t,s,n,r,_,i,o){var l=e.internal_flags;if(n<2)a.fft_long(l,i[o],n,t,s);else if(2==n)for(var f=D.BLKSIZE-1;f>=0;--f){var c=i[o+0][f],h=i[o+1][f];i[o+0][f]=(c+h)*I.SQRT2*.5,i[o+1][f]=(c-h)*I.SQRT2*.5}for(_[0]=i[o+0][0],_[0]*=_[0],f=D.BLKSIZE/2-1;f>=0;--f){var u=i[o+0][D.BLKSIZE/2-f],b=i[o+0][D.BLKSIZE/2+f];_[D.BLKSIZE/2-f]=.5*(u*u+b*b)}var m=0;for(f=11;f=0;--f){var c=i[o+0][r][f],h=i[o+1][r][f];i[o+0][r][f]=(c+h)*I.SQRT2*.5,i[o+1][r][f]=(c-h)*I.SQRT2*.5}for(_[r][0]=i[o+0][r][0],_[r][0]*=_[r][0],f=D.BLKSIZE_s/2-1;f>=0;--f){var u=i[o+0][r][D.BLKSIZE_s/2-f],b=i[o+0][r][D.BLKSIZE_s/2+f];_[r][D.BLKSIZE_s/2-f]=.5*(u*u+b*b)}}function j(e,a,t,s){var n=e.internal_flags;2==e.athaa_loudapprox&&t<2&&(n.loudness_sq[a][t]=n.loudness_sq_save[t],n.loudness_sq_save[t]=i(s,n))}this.L3psycho_anal_ns=function(a,t,s,_,i,l,f,c,u,b){var m,v,d,R,B,T,x,I,X,F,C=a.internal_flags,j=L([2,D.BLKSIZE]),G=L([2,3,D.BLKSIZE_s]),z=V(D.CBANDS+1),K=V(D.CBANDS+1),Z=V(D.CBANDS+2),U=N(2),Q=N(2),W=L([2,576]),J=N(D.CBANDS+2),$=N(D.CBANDS+2);for(H.fill($,0),m=C.channels_out,a.mode==e.JOINT_STEREO&&(m=4),X=a.VBR==y.vbr_off?0==C.ResvMax?0:C.ResvSize/C.ResvMax*.5:a.VBR==y.vbr_rh||a.VBR==y.vbr_mtrh||a.VBR==y.vbr_mt?.6:1,v=0;v2&&(l[_][v].en.assign(C.en[v+2]),l[_][v].thm.assign(C.thm[v+2]))}for(v=0;v0),ie[R]=re[R]/C.nsPsy.last_en_subshort[v][R+4],_e[0]+=re[R];if(2==v)for(R=0;R<576;R++){var be,me;be=W[0][R],me=W[1][R],W[0][R]=be+me,W[1][R]=be-me}var pe=W[1&v],ve=0;for(R=0;R<9;R++){for(var de=ve+64,ge=1;vere[R+3-2]?(O(re[R+3-2]>0),ge/=re[R+3-2]):ge=re[R+3-2]>10*ge?re[R+3-2]/(10*ge):0,ie[R+3]=ge}if(a.analysis){var Se=ie[0];for(R=1;R<12;R++)Sene&&(ce[R/3]=R%3+1);for(R=1;R<4;R++){var Re;_e[R-1]>_e[R]?(O(_e[R]>0),Re=_e[R-1]/_e[R]):(O(_e[R-1]>0),Re=_e[R]/_e[R-1]),Re<1.7&&(ce[R]=0,1==R&&(ce[0]=0))}for(0!=ce[0]&&0!=C.nsPsy.lastAttacks[v]&&(ce[0]=0),3!=C.nsPsy.lastAttacks[v]&&ce[0]+ce[1]+ce[2]+ce[3]==0||(oe=0,0!=ce[1]&&0!=ce[0]&&(ce[1]=0),0!=ce[2]&&0!=ce[1]&&(ce[2]=0),0!=ce[3]&&0!=ce[2]&&(ce[3]=0)),v<2?Q[v]=oe:0==oe&&(Q[0]=Q[1]=0),u[v]=C.tot_ener[v],o(a,he,ue,j,1&v,G,1&v,_,v,t,s),k(C,he,z,le,fe),Y(C,le,fe,J),I=0;I<3;I++){var Ae,Me;for(A(a,ue,K,Z,v,I),g(C,K,Z,v,I),x=0;x=2||1==ce[I+1]){var Be=0!=I?I-1:2;ge=M(C.thm[v].s[x][Be],Me,.6*X),Me=Math.min(Me,ge)}1==ce[I]?(Be=0!=I?I-1:2,ge=M(C.thm[v].s[x][Be],Me,.3*X),Me=Math.min(Me,ge)):(0!=I&&3==ce[I-1]||0==I&&3==C.nsPsy.lastAttacks[v])&&(Be=2!=I?I+1:0,ge=M(C.thm[v].s[x][Be],Me,.3*X),Me=Math.min(Me,ge)),Ae=re[3*I+3]+re[3*I+4]+re[3*I+5],6*re[3*I+5]0&&function(e,a){var t=e.internal_flags;if(t.channels_out>1){for(var s=0;s1.58*e.thm[1].l[a]||e.thm[1].l[a]>1.58*e.thm[0].l[a])){var t=e.mld_l[a]*e.en[3].l[a],s=Math.max(e.thm[2].l[a],Math.min(e.thm[3].l[a],t));t=e.mld_l[a]*e.en[2].l[a];var n=Math.max(e.thm[3].l[a],Math.min(e.thm[2].l[a],t));e.thm[2].l[a]=s,e.thm[3].l[a]=n}for(a=0;a1.58*e.thm[1].s[a][r]||e.thm[1].s[a][r]>1.58*e.thm[0].s[a][r]||(t=e.mld_s[a]*e.en[3].s[a][r],s=Math.max(e.thm[2].s[a][r],Math.min(e.thm[3].s[a][r],t)),t=e.mld_s[a]*e.en[2].s[a][r],n=Math.max(e.thm[3].s[a][r],Math.min(e.thm[2].s[a][r],t)),e.thm[2].s[a][r]=s,e.thm[3].s[a][r]=n)}(C),F=a.msfix,Math.abs(F)>0&&function(e,a,t){var s=a,n=Math.pow(10,t);a*=2,s*=2;for(var r=0;r1?(ke=c,Pe=-2,ye=D.NORM_TYPE,b[0]!=D.SHORT_TYPE&&b[1]!=D.SHORT_TYPE||(ye=D.SHORT_TYPE),xe=l[_][v-2]):(ke=f,Pe=0,ye=b[v],xe=i[_][v]),ye==D.SHORT_TYPE?ke[Pe+v]=w(xe,C.masking_lower):ke[Pe+v]=E(xe,C.masking_lower),a.analysis&&(C.pinfo.pe[_][v]=ke[Pe+v])}return 0};var G=[-1730326e-23,-.01703172,-1349528e-23,.0418072,-673278e-22,-.0876324,-30835e-21,.1863476,-1104424e-22,-.627638];function z(e,a,t){if(0==t)for(var s=0;s=0)}for(O(o==l.npart_s);o0?((i=a[r])0),(o=0|(_=20*(2*i-_)/(_*(e.numlines_s[r]+e.numlines_s[r+1]-1))))>n&&(o=n),s[r]=o):s[r]=0,r=1;r0?((i=a[r-1])0),(o=0|(_=20*(3*i-_)/(_*(e.numlines_s[r-1]+e.numlines_s[r]+e.numlines_s[r+1]-1))))>n&&(o=n),s[r]=o):s[r]=0}O(r==e.npart_s-1),(_=t[r-1]+t[r])>0?((i=a[r-1])0),(o=0|(_=20*(2*i-_)/(_*(e.numlines_s[r-1]+e.numlines_s[r]-1))))>n&&(o=n),s[r]=o):s[r]=0,O(r==e.npart_s-1)}(l,f,c,u),i=o=0;oR&&(s[o]=R),l.masking_lower>1&&(s[o]*=l.masking_lower),s[o]>t[o]&&(s[o]=t[o]),l.masking_lower<1&&(s[o]*=l.masking_lower),O(s[o]>=0)}for(;o0?Math.min(u,S):Math.min(u,.3*t[_])}else{var R=16*e.nb_2[r][_],A=2*e.nb_1[r][_];R<=0&&(R=u),A<=0&&(A=u),S=e.blocktype_old[1&r]==D.NORM_TYPE?Math.min(A,R):A,s[_]=Math.min(u,S)}e.nb_2[r][_]=e.nb_1[r][_],e.nb_1[r][_]=u,c=i[_],c*=e.minval_l[_],c*=b,s[_]>c&&(s[_]=c),e.masking_lower>1&&(s[_]*=e.masking_lower),s[_]>t[_]&&(s[_]=t[_]),e.masking_lower<1&&(s[_]*=e.masking_lower),O(s[_]>=0)}for(;_0?Math.pow(10,n):1,c=0;c<_;++c){var h=e[2][c],u=e[3][c],b=a[0][c],m=a[1][c],p=a[2][c],v=a[3][c];if(b<=1.58*m&&m<=1.58*b){var d=t[c]*u,g=t[c]*h;o=Math.max(p,Math.min(v,d)),i=Math.max(v,Math.min(p,g))}else o=p,i=v;if(r>0){var S,R,A=s[c]*f;if(S=Math.min(Math.max(b,A),Math.max(m,A)),(R=(p=Math.max(o,A))+(v=Math.max(i,A)))>0&&S*lh&&(o=h),i>u&&(i=u),a[2][c]=o,a[3][c]=i}}function W(e,a){var t;return(t=e>=0?27*-e:e*a)<=-72?0:Math.exp(t*_)}function J(e){var a,t,n,r,s=0;for(s=0;W(s,e)>1e-20;s-=1);for(n=s,r=0;Math.abs(r-n)>1e-12;)W(s=(r+n)/2,e)>0?r=s:n=s;for(a=n,s=0,s=0;W(s,e)>1e-20;s+=1);for(n=0,r=s;Math.abs(r-n)>1e-12;)W(s=(r+n)/2,e)>0?n=s:r=s;t=r;var _,i=0,o=1e3;for(_=0;_<=o;++_)i+=W(s=a+_*(t-a)/o,e);return(o+1)/(i*(t-a))}function $(e){return e<0&&(e=0),e*=.001,13*Math.atan(.76*e)+3.5*Math.atan(e*e/56.25)}function ee(e,a,t,s,n,r,_,i,o,l,f,c){var h,u=V(D.CBANDS+1),b=i/(c>15?1152:384),m=N(D.HBLKSIZE);i/=o;var p=0,v=0;for(h=0;ho/2){p=o/2,++h;break}}O(ho/2&&(R=o/2),t[g]=(m[S]+m[R])/2,a[g]=m[R];var w=b*M;_[g]=(w-u[a[g]])/(u[a[g]+1]-u[a[g]]),_[g]<0?_[g]=0:_[g]>1&&(_[g]=1),B=$(i*l[g]*f),B=Math.min(B,15.5)/15.5,r[g]=Math.pow(10,1.25*(1-Math.cos(Math.PI*B))-2.5)}p=0;for(var T=0;T=0?3:1.5)>=.5&&l<=2.5?8*((h=l-.5)*h-2*h):0,((c=15.811389+7.5*(l+=.474)-17.5*Math.sqrt(1+l*l))<=-60?0:(l=Math.exp((f+c)*_),l/=.6609193))*s[i]);u[m][i]=p*n[m]}else for(i=0;i0);i++);for(e[m][0]=i,i=a-1;i>0&&!(u[m][i]>0);i--);e[m][1]=i,b+=e[m][1]-e[m][0]+1}var g=V(b),S=0;for(m=0;m2&&(i[n][p].en.assign(u.en[p+2]),i[n][p].thm.assign(u.thm[p+2]))}for(p=0;p0;++d,--R){var y=h[0][d],x=h[1][d];h[0][d]=y+x,h[1][d]=y-x}for(d=0;d<3;d++)M[d]=u.nsPsy.last_en_subshort[p][d+6],O(u.nsPsy.last_en_subshort[p][d+4]>0),A[d]=M[d]/u.nsPsy.last_en_subshort[p][d+4],B[0]+=M[d];for(d=0;d<9;d++){for(var P=T+64,I=1;TM[d+3-2]?(O(M[d+3-2]>0),I/=M[d+3-2]):I=M[d+3-2]>10*I?M[d+3-2]/(10*I):0,A[d+3]=I}for(d=0;d<3;++d){var H=M[3*d+3]+M[3*d+4]+M[3*d+5],N=1;6*M[3*d+5]E&&(f[p][d/3]=d%3+1);for(d=1;d<4;d++){var D=B[d-1],Y=B[d];Math.max(D,Y)<4e4&&D<1.7*Y&&Y<1.7*D&&(1==d&&f[p][0]<=f[p][d]&&(f[p][0]=0),f[p][d]=0)}f[p][0]<=u.nsPsy.lastAttacks[p]&&(f[p][0]=0),3!=u.nsPsy.lastAttacks[p]&&f[p][0]+f[p][1]+f[p][2]+f[p][3]==0||(k=0,0!=f[p][1]&&0!=f[p][0]&&(f[p][1]=0),0!=f[p][2]&&0!=f[p][1]&&(f[p][2]=0),0!=f[p][3]&&0!=f[p][2]&&(f[p][3]=0)),p<2?c[p]=k:0==k&&(c[0]=c[1]=0),o[p]=u.tot_ener[p]}}(a,t,s,n,_,i,f,R,A,B),function(e,a){var t=e.internal_flags;e.short_blocks!=P.short_block_coupled||0!=a[0]&&0!=a[1]||(a[0]=a[1]=0);for(var s=0;s=2||1==A[k][y+1]){var Y=0!=y?y-1:2,q=M(h.thm[k].s[I][Y],X,.36);X=Math.min(X,q)}else 1==A[k][y]?(Y=0!=y?y-1:2,q=M(h.thm[k].s[I][Y],X,.18),X=Math.min(X,q)):(0!=y&&3==A[k][y-1]||0==y&&3==h.nsPsy.lastAttacks[k])&&(Y=2!=y?y+1:0,q=M(h.thm[k].s[I][Y],X,.18),X=Math.min(X,q));X*=R[k][y],H[y]=X}for(y=0;y<3;y++)h.thm[k].s[I][y]=H[y]}}for(k=0;k1?(W=l,J=-2,$=D.NORM_TYPE,c[0]!=D.SHORT_TYPE&&c[1]!=D.SHORT_TYPE||($=D.SHORT_TYPE),ee=i[n][k-2]):(W=o,J=0,$=c[k],ee=_[n][k]),$==D.SHORT_TYPE?W[J+k]=w(ee,h.masking_lower):W[J+k]=E(ee,h.masking_lower),a.analysis&&(h.pinfo.pe[n][k]=W[J+k])}return 0},this.psymodel_init=function(e){var s,A,n=e.internal_flags,r=!0,_=13,i=24,o=0,h=0,u=-8.25,b=-4.5,m=V(D.CBANDS),p=V(D.CBANDS),v=V(D.CBANDS),d=e.out_samplerate;switch(e.experimentalZ){default:case 0:r=!0;break;case 1:r=e.VBR!=y.vbr_mtrh&&e.VBR!=y.vbr_mt;break;case 2:r=!1;break;case 3:_=8,o=-1.75,h=-.0125,u=-8.25,b=-2.25}for(n.ms_ener_ratio_old=.25,n.blocktype_old[0]=n.blocktype_old[1]=D.NORM_TYPE,s=0;s<4;++s){for(var g=0;g=_&&(R=h*(m[s]-_)/(i-_)+o*(i-m[s])/(i-_)),v[s]=Math.pow(10,R/10),n.numlines_l[s]>0?n.rnumlines_l[s]=1/n.numlines_l[s]:n.rnumlines_l[s]=0}for(n.s3_ll=ae(n.s3ind,n.npart_l,m,p,v,r),g=0,s=0;s(T*=n.numlines_l[s])&&(w=T)}n.ATH.cb_l[s]=w,(w=20*m[s]/10-20)>6&&(w=100),w<-15&&(w=-15),w-=8,n.minval_l[s]=Math.pow(10,w/10)*n.numlines_l[s]}for(n.npart_s=ee(n.numlines_s,n.bo_s,n.bm_s,m,p,n.mld_s,n.PSY.bo_s_weight,d,D.BLKSIZE_s,n.scalefac_band.s,D.BLKSIZE_s/384,D.SBMAX_s),O(n.npart_s=_&&(R=b*(m[s]-_)/(i-_)+u*(i-m[s])/(i-_)),v[s]=Math.pow(10,R/10),w=x.MAX_VALUE,M=0;M(T*=n.numlines_s[s])&&(w=T)}n.ATH.cb_s[s]=w,w=7*m[s]/12-7,m[s]>12&&(w*=1+3.1*Math.log(1+w)),m[s]<12&&(w*=1+2.3*Math.log(1-w)),w<-15&&(w=-15),w-=8,n.minval_s[s]=Math.pow(10,w/10)*n.numlines_s[s]}n.s3_ss=ae(n.s3ind_s,n.npart_s,m,p,v,r),l=Math.pow(10,9/16),f=Math.pow(10,1.5),c=Math.pow(10,1.5),a.init_fft(n),n.decay=Math.exp(-1*t/(.01*d/192)),A=3.5,!!(2&e.exp_nspsytune)&&(A=1),Math.abs(e.msfix)>0&&(A=e.msfix),e.msfix=A;for(var E=0;En.npart_l-1&&(n.s3ind[E][1]=n.npart_l-1);var k=576*n.mode_gr/d;if(n.ATH.decay=Math.pow(10,-1.2*k),n.ATH.adjust=.01,n.ATH.adjustLimit=1,O(n.bo_l[D.SBMAX_l-1]<=n.npart_l),O(n.bo_s[D.SBMAX_s-1]<=n.npart_s),-1!=e.ATHtype){var P=e.out_samplerate/D.BLKSIZE,I=0;for(B=0,s=0;s=0;)n.ATH.eql_w[s]*=I}for(E=g=0;E0;){v=p>e.sampleWindow-e.totsamp?e.sampleWindow-e.totsamp:p,dMAX_ORDER-d&&(v=MAX_ORDER-d)):(h=i+d,u=a,b=l+d,m=o),n(u,h,e.lstepbuf,e.lstep+e.totsamp,v,t[e.reqindex]),n(m,b,e.rstepbuf,e.rstep+e.totsamp,v,t[e.reqindex]),r(e.lstepbuf,e.lstep+e.totsamp,e.loutbuf,e.lout+e.totsamp,v,s[e.reqindex]),r(e.rstepbuf,e.rstep+e.totsamp,e.routbuf,e.rout+e.totsamp,v,s[e.reqindex]),h=e.lout+e.totsamp,u=e.loutbuf,b=e.rout+e.totsamp,m=e.routbuf;for(var g=v%8;0!=g--;)e.lsum+=_(u[h++]),e.rsum+=_(m[b++]);for(g=v/8;0!=g--;)e.lsum+=_(u[h+0])+_(u[h+1])+_(u[h+2])+_(u[h+3])+_(u[h+4])+_(u[h+5])+_(u[h+6])+_(u[h+7]),h+=8,e.rsum+=_(m[b+0])+_(m[b+1])+_(m[b+2])+_(m[b+3])+_(m[b+4])+_(m[b+5])+_(m[b+6])+_(m[b+7]),b+=8;if(p-=v,d+=v,e.totsamp+=v,e.totsamp==e.sampleWindow){var S=10*Ve.STEPS_per_dB*Math.log10((e.lsum+e.rsum)/e.totsamp*.5+1e-37),R=S<=0?0:0|S;R>=e.A.length&&(R=e.A.length-1),e.A[R]++,e.lsum=e.rsum=0,Ie.arraycopy(e.loutbuf,e.totsamp,e.loutbuf,0,MAX_ORDER),Ie.arraycopy(e.routbuf,e.totsamp,e.routbuf,0,MAX_ORDER),Ie.arraycopy(e.lstepbuf,e.totsamp,e.lstepbuf,0,MAX_ORDER),Ie.arraycopy(e.rstepbuf,e.totsamp,e.rstepbuf,0,MAX_ORDER),e.totsamp=0}if(e.totsamp>e.sampleWindow)return GAIN_ANALYSIS_ERROR}return f0&&!((n-=e[t])<=0););return 64.82-t/Ve.STEPS_per_dB}(e.A,e.A.length),t=0;t>2&63)>=32&&(a-=64),r=Math.pow(10,a/4/10),(a=e.exp_nspsytune>>8&63)>=32&&(a-=64),_=Math.pow(10,a/4/10),(a=e.exp_nspsytune>>14&63)>=32&&(a-=64),i=Math.pow(10,a/4/10),(a=e.exp_nspsytune>>20&63)>=32&&(a-=64),l=i*Math.pow(10,a/4/10),a=0;af.MAX_BITS_PER_GRANULE&&(v=f.MAX_BITS_PER_GRANULE),i=0,o=0;o3*s/4&&(b[o]=3*s/4),b[o]<0&&(b[o]=0),b[o]+t[o]>f.MAX_BITS_PER_CHANNEL&&(b[o]=Math.max(0,f.MAX_BITS_PER_CHANNEL-t[o])),i+=b[o];if(i>p)for(o=0;of.MAX_BITS_PER_GRANULE)for(o=0;o.5&&(n=.5);var r=0|.5*n*(e[0]+e[1]);r>f.MAX_BITS_PER_CHANNEL-e[0]&&(r=f.MAX_BITS_PER_CHANNEL-e[0]),r<0&&(r=0),e[1]>=125&&(e[1]-r>125?(e[0]s&&(e[0]=s*e[0]/r,e[1]=s*e[1]/r),i(e[0]<=f.MAX_BITS_PER_CHANNEL),i(e[1]<=f.MAX_BITS_PER_CHANNEL),i(e[0]+e[1]<=f.MAX_BITS_PER_GRANULE)},this.athAdjust=function(e,a,t){var s=90.30873362,r=n.FAST_LOG10_X(a,10),_=e*e,i=0;return r-=t,_>1e-20&&(i=1+n.FAST_LOG10_X(_,10/s)),i<0&&(i=0),r*=i,r+=t+s-94.82444863,Math.pow(10,.1*r)},this.calc_xmin=function(e,s,n,r){var _,i=0,l=e.internal_flags,f=0,c=0,h=l.ATH,u=n.xr,b=e.VBR==t.vbr_mtrh?1:0,p=l.masking_lower;for(e.VBR!=t.vbr_mtrh&&e.VBR!=t.vbr_mt||(p=1),_=0;_>1,k=0;do{k+=x=u[f]*u[f],w+=x0);k>M&&c++,_==o.SBPSY_l&&w<(E=M*l.nsPsy.longfact[_])&&(w=E),0!=b&&(M=w),e.ATHonly||(T=s.en.l[_])>0&&(E=k*s.thm.l[_]*p/T,0!=b&&(E*=l.nsPsy.longfact[_]),M>1;B=A/S,w=m;do{var x,P;k+=x=u[f]*u[f],w+=x0);k>A&&c++,g==o.SBPSY_s&&w<(E=A*l.nsPsy.shortfact[g])&&(w=E),M=0!=b?w:A,e.ATHonly||e.ATHshort||(T=s.en.s[g][R])>0&&(E=k*s.thm.s[g][R]*p/T,0!=b&&(E*=l.nsPsy.shortfact[g]),Mr[i-3+1]&&(r[i-3+1]+=(r[i-3]-r[i-3+1])*l.decay),r[i-3+1]>r[i-3+2]&&(r[i-3+2]+=(r[i-3+1]-r[i-3+2])*l.decay))}return c},this.calc_noise_core=function(e,a,t,s){var n=0,_=a.s,i=e.l3_enc;if(_>e.count1)for(;0!=t--;)l=e.xr[_],_++,n+=l*l,l=e.xr[_],_++,n+=l*l;else if(_>e.big_values){var o=r(2);for(o[0]=0,o[1]=s;0!=t--;)l=Math.abs(e.xr[_])-o[i[_]],_++,n+=l*l,l=Math.abs(e.xr[_])-o[i[_]],_++,n+=l*l}else for(;0!=t--;){var l;l=Math.abs(e.xr[_])-M[i[_]]*s,_++,n+=l*l,l=Math.abs(e.xr[_])-M[i[_]]*s,_++,n+=l*l}return a.s=_,n},this.calc_noise=function(e,a,t,s,r){var _,o,l,f=0,h=0,u=0,b=0,m=0,p=-20,v=0,d=e.scalefac,g=0;for(s.over_SSD=0,_=0;_>1,v+e.width[_]>e.max_nonzero_coeff&&(o=(w=e.max_nonzero_coeff-v+1)>0?w>>1:0);var k=new T(v);B=this.calc_noise_core(e,k,o,E),v=k.s,null!=r&&(r.step[_]=M,r.noise[_]=B),B=t[f++]=B/a[h++],B=n.FAST_LOG10(Math.max(B,1e-20)),null!=r&&(r.noise_log[_]=B)}null!=r&&(r.global_gain=e.global_gain),m+=B,B>0&&(A=Math.max(0|10*B+.5,1),s.over_SSD+=A*A,u++,b+=B),p=Math.max(p,B)}return s.over_count=u,s.tot_noise=m,s.over_noise=b,s.max_noise=p,u},this.set_pinfo=function(e,a,t,s,n){var _,l,f,c,h,u=e.internal_flags,b=0==a.scalefac_scale?.5:1,m=a.scalefac,p=r(L3Side.SFBMAX),v=r(L3Side.SFBMAX),d=new CalcNoiseResult;calc_xmin(e,t,a,p),calc_noise(a,p,v,d,null);var g=0;for(l=a.sfb_lmax,a.block_type!=o.SHORT_TYPE&&0==a.mixed_block_flag&&(l=22),_=0;_0&&!e.ATHonly?c/=t.en.l[_]:c=0,u.pinfo.thr[s][n][_]=h*Math.max(c*t.thm.l[_],u.ATH.l[_]),u.pinfo.LAMEsfb[s][n][_]=0,0!=a.preflag&&_>=11&&(u.pinfo.LAMEsfb[s][n][_]=-b*S[_]),_=0),u.pinfo.LAMEsfb[s][n][_]-=b*m[_])}if(a.block_type==o.SHORT_TYPE)for(l=_,_=a.sfb_smin;_0?c/=t.en.s[_][B]:c=0,(e.ATHonly||e.ATHshort)&&(c=0),u.pinfo.thr_s[s][n][3*_+B]=h*Math.max(c*t.thm.s[_][B],u.ATH.s[_]),u.pinfo.LAMEsfb_s[s][n][3*_+B]=-2*a.subblock_gain[B],_>=1;0!=e--;)n[r++]=_>t[s++]?0:1,n[r++]=_>t[s++]?0:1}function u(e,a,t,s,n,r){var _=(e>>=1)%2;for(e>>=1;0!=e--;){var i,o,f,c,h,u,b,m;i=t[s++]*a,o=t[s++]*a,h=0|i,f=t[s++]*a,u=0|o,c=t[s++]*a,b=0|f,i+=l.adj43[h],m=0|c,o+=l.adj43[u],n[r++]=0|i,f+=l.adj43[b],n[r++]=0|o,c+=l.adj43[m],n[r++]=0|f,n[r++]=0|c}0!=_&&(h=0|(i=t[s++]*a),u=0|(o=t[s++]*a),i+=l.adj43[h],o+=l.adj43[u],n[r++]=0|i,n[r++]=0|o)}var b=[1,2,5,7,7,10,10,13,13,13,13,13,13,13,13];function m(e,a,t,s){var n=function(e,a,t){var s=0,n=0;do{var r=e[a++],_=e[a++];s>=16)>r&&(o=r,s++),n.bits+=o,s}(e,a,t,b[n-1],s);case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:return function(e,a,t,s,n){var r=0,i=0,o=0,l=_.ht[s].xlen,f=_.ht[s].hlen,c=_.ht[s+1].hlen,h=_.ht[s+2].hlen;do{var u=e[a+0]*l+e[a+1];a+=2,r+=f[u],i+=c[u],o+=h[u]}while(ai&&(r=i,b++),r>o&&(r=o,b=s+2),n.bits+=r,b}(e,a,t,b[n-1],s);default:if(n>o.IXMAX_VAL)return s.bits=o.LARGE_BITS,-1;var r,i;for(n-=15,r=24;r<32&&!(_.ht[r].linmax>=n);r++);for(i=r-8;i<24&&!(_.ht[i].linmax>=n);i++);return function(e,a,t,s,n,r){var i,o=65536*_.ht[s].xlen+_.ht[n].xlen,l=0;do{var f=e[a++],c=e[a++];0!=f&&(f>14&&(f=15,l+=o),f*=16),0!=c&&(c>14&&(c=15,l+=o),f+=c),l+=_.largetbl[f]}while(a>=16)>i&&(l=i,s=n),r.bits+=l,s}(e,a,t,i,r,s)}}function p(e,a,t,s,n,_,i,o){for(var l=a.big_values,c=2;c=l)break;var u=n[c-2]+a.count1bits;if(t.part2_3_length<=u)break;var b=new f(u),p=m(s,h,l,b);u=b.bits,t.part2_3_length<=u||(t.assign(a),t.part2_3_length=u,t.region0_count=_[c-2],t.region1_count=c-2-_[c-2],t.table_select[0]=i[c-2],t.table_select[1]=o[c-2],t.table_select[2]=p)}}this.noquant_count_bits=function(e,a,t){var s=a.l3_enc,i=Math.min(576,a.max_nonzero_coeff+2>>1<<1);for(null!=t&&(t.sfb_count1=0);i>1&&!(s[i-1]|s[i-2]);i-=2);a.count1=i;for(var o=0,l=0;i>3;i-=4){var c;if((2147483647&(s[i-1]|s[i-2]|s[i-3]|s[i-4]))>1)break;c=2*(2*(2*s[i-4]+s[i-3])+s[i-2])+s[i-1],o+=_.t32l[c],l+=_.t33l[c]}var h=o;if(a.count1table_select=0,o>l&&(h=l,a.count1table_select=1),a.count1bits=h,a.big_values=i,0==i)return h;if(a.block_type==r.SHORT_TYPE)(o=3*e.scalefac_band.s[3])>a.big_values&&(o=a.big_values),l=a.big_values;else if(a.block_type==r.NORM_TYPE){if(o=a.region0_count=e.bv_scf[i-2],l=a.region1_count=e.bv_scf[i-1],n(o+l+2(l=i)&&(o=l);if(o=Math.min(o,i),l=Math.min(l,i),0f)return o.LARGE_BITS;if(function(e,a,s,_,i){var o,f,c,b=0,m=0,p=0,v=0,d=a,g=0,S=d,R=0,A=e,M=0;for(c=null!=i&&_.global_gain==i.global_gain,f=_.block_type==r.SHORT_TYPE?38:21,o=0;o<=f;o++){var B=-1;if((c||_.block_type==r.NORM_TYPE)&&(B=_.global_gain-(_.scalefac[o]+(0!=_.preflag?l.pretab[o]:0)<<_.scalefac_scale+1)-8*_.subblock_gain[_.window[o]]),n(_.width[o]>=0),c&&i.step[o]==B)0!=m&&(u(m,s,A,M,S,R),m=0),0!=p&&(h(p,s,A,M,S,R),p=0);else{var w,T=_.width[o];if(b+_.width[o]>_.max_nonzero_coeff&&(w=_.max_nonzero_coeff-b+1,t.fill(a,_.max_nonzero_coeff,576,0),(T=w)<0&&(T=0),o=f+1),0==m&&0==p&&(S=d,R=g,A=e,M=v),null!=i&&i.sfb_count1>0&&o>=i.sfb_count1&&i.step[o]>0&&B>=i.step[o]?(0!=m&&(u(m,s,A,M,S,R),m=0,S=d,R=g,A=e,M=v),p+=T):(0!=p&&(h(p,s,A,M,S,R),p=0,S=d,R=g,A=e,M=v),m+=T),T<=0){0!=p&&(h(p,s,A,M,S,R),p=0),0!=m&&(u(m,s,A,M,S,R),m=0);break}}o<=f&&(g+=_.width[o],v+=_.width[o],b+=_.width[o])}0!=m&&(u(m,s,A,M,S,R),m=0),0!=p&&(h(p,s,A,M,S,R),p=0)}(a,i,l.IPOW20(s.global_gain),s,_),2&e.substep_shaping)for(var c=0,b=s.global_gain+s.scalefac_scale,m=.634521682242439/l.IPOW20(b),p=0;p=m?i[v]:0}return this.noquant_count_bits(e,s,_)},this.best_huffman_divide=function(e,a){var t=new i,n=a.l3_enc,l=s(23),c=s(23),h=s(23),u=s(23);if(a.block_type!=r.SHORT_TYPE||1!=e.mode_gr){t.assign(a),a.block_type==r.NORM_TYPE&&(function(e,a,t,s,n,r,_){for(var i=a.big_values,l=0;l<=22;l++)s[l]=o.LARGE_BITS;for(l=0;l<16;l++){var c=e.scalefac_band.l[l+1];if(c>=i)break;var h=0,u=new f(h),b=m(t,0,c,u);h=u.bits;for(var p=0;p<8;p++){var v=e.scalefac_band.l[l+p+2];if(v>=i)break;var d=h,g=m(t,c,v,u=new f(d));d=u.bits,s[l+p]>d&&(s[l+p]=d,n[l+p]=l,r[l+p]=b,_[l+p]=g)}}}(e,a,n,l,c,h,u),p(e,t,a,n,l,c,h,u));var b=t.big_values;if(!(0==b||(n[b-2]|n[b-1])>1||(b=a.count1+2)>576)){t.assign(a),t.count1=b;for(var v=0,d=0;b>t.big_values;b-=4){var g=2*(2*(2*n[b-4]+n[b-3])+n[b-2])+n[b-1];v+=_.t32l[g],d+=_.t33l[g]}if(t.big_values=b,t.count1table_select=0,v>d&&(v=d,t.count1table_select=1),t.count1bits=v,t.block_type==r.NORM_TYPE)p(e,t,a,n,l,c,h,u);else{if(t.part2_3_length=v,(v=e.scalefac_band.l[8])>b&&(v=b),v>0){var S=new f(t.part2_3_length);t.table_select[0]=m(n,0,v,S),t.part2_3_length=S.bits}b>v&&(S=new f(t.part2_3_length),t.table_select[1]=m(n,v,b,S),t.part2_3_length=S.bits),a.part2_3_length>t.part2_3_length&&a.assign(t)}}}};var v=[1,1,1,1,8,2,2,2,4,4,4,8,8,8,16,16],d=[1,2,4,8,1,2,4,8,2,4,8,2,4,8,4,8],g=[0,0,0,0,3,1,1,1,2,2,2,3,3,3,4,4],S=[0,1,2,3,0,1,2,3,1,2,3,1,2,3,2,3];e.slen1_tab=g,e.slen2_tab=S,this.best_scalefac_store=function(e,a,t,s){var n,i,o,f,c=s.tt[a][t],h=0;for(o=0,n=0;n0&&(b|=c.scalefac[n]);if(!(1&b)&&0!=b){for(n=0;n0&&(c.scalefac[n]>>=1);c.scalefac_scale=h=1}}if(0==c.preflag&&c.block_type!=r.SHORT_TYPE&&2==e.mode_gr){for(n=11;n0&&(c.scalefac[n]-=l.pretab[n]);c.preflag=h=1}}for(i=0;i<4;i++)s.scfsi[t][i]=0;for(2==e.mode_gr&&1==a&&s.tt[0][t].block_type!=r.SHORT_TYPE&&s.tt[1][t].block_type!=r.SHORT_TYPE&&(function(e,a){for(var t,s=a.tt[1][e],n=a.tt[0][e],i=0;i<_.scfsi_band.length-1;i++){for(t=_.scfsi_band[i];t<_.scfsi_band[i+1]&&!(n.scalefac[t]!=s.scalefac[t]&&s.scalefac[t]>=0);t++);if(t==_.scfsi_band[i+1]){for(t=_.scfsi_band[i];t<_.scfsi_band[i+1];t++)s.scalefac[t]=-1;a.scfsi[e][i]=1}}var o=0,l=0;for(t=0;t<11;t++)-1!=s.scalefac[t]&&(l++,oh&&(s.part2_length=h,s.scalefac_compress=i)}}(t,s),h=0),n=0;ns[a]&&(e.part2_length=s[a],e.scalefac_compress=a);return e.part2_length==o.LARGE_BITS};var B=[[15,15,7,7],[15,15,7,0],[7,3,0,0],[15,31,31,0],[7,7,7,0],[3,3,0,0]];this.scale_bitcount_lsf=function(e,t){var _,i,o,f,c,h,u,b,m=s(4),p=t.scalefac;for(_=0!=t.preflag?2:0,u=0;u<4;u++)m[u]=0;if(t.block_type==r.SHORT_TYPE){i=1;var v=l.nr_of_sfb_block[_][i];for(b=0,o=0;o<4;o++)for(f=v[o]/3,u=0;um[o]&&(m[o]=p[3*b+c])}else for(i=0,v=l.nr_of_sfb_block[_][i],b=0,o=0;o<4;o++)for(f=v[o],u=0;um[o]&&(m[o]=p[b]);for(h=!1,o=0;o<4;o++)m[o]>B[_][o]&&(h=!0);if(!h){var d,g,S,R;for(t.sfb_partition_table=l.nr_of_sfb_block[_][i],o=0;o<4;o++)t.slen[o]=w[m[o]];switch(d=t.slen[0],g=t.slen[1],S=t.slen[2],R=t.slen[3],_){case 0:t.scalefac_compress=(5*d+g<<4)+(S<<2)+R;break;case 1:t.scalefac_compress=400+(5*d+g<<2)+S;break;case 2:t.scalefac_compress=500+3*d+g;break;default:a.err.printf("intensity stereo not implemented yet\n")}}if(!h)for(n(null!=t.sfb_partition_table),t.part2_length=0,o=0;o<4;o++)t.part2_length+=t.slen[o]*t.sfb_partition_table[o];return h};var w=[0,1,2,2,3,3,3,3,4,4,4,4,4,4,4,4];this.huffman_init=function(e){for(var a=2;a<=576;a+=2){for(var t,s=0;e.scalefac_band.l[++s]a;)t--;for(t<0&&(t=c[s][0]),e.bv_scf[a-2]=t,t=c[s][1];e.scalefac_band.l[t+e.bv_scf[a-2]+2]>a;)t--;t<0&&(t=c[s][1]),e.bv_scf[a-1]=t}}},aa}function fa(){if(na)return sa;na=1;var e=p,a=e.System,t=e.Arrays,s=e.new_byte,n=e.new_float_n,r=e.new_int,_=e.assert,i=la(),o=ia,l=A(),f=Ee;function c(){var e=ca(),c=this,h=null,u=null,b=null,m=null;this.setModules=function(e,a,t,s){h=e,u=a,b=t,m=s};var p=null,v=0,d=0,g=0;function S(e){a.arraycopy(e.header[e.w_ptr].buf,0,p,d,e.sideinfo_len),d+=e.sideinfo_len,v+=8*e.sideinfo_len,e.w_ptr=e.w_ptr+1&f.MAX_HEADER_BUF-1}function R(a,t,s){for(;s>0;){var n;0==g&&(g=8,d++,_(d=v),a.header[a.w_ptr].write_timing==v&&S(a),p[d]=0),s-=n=Math.min(s,g),g-=n,p[d]|=t>>s<0;){var n;0==g&&(g=8,d++,_(d>s<=8&&(R(s,76,8),a-=8),a>=8&&(R(s,65,8),a-=8),a>=8&&(R(s,77,8),a-=8),a>=8&&(R(s,69,8),a-=8),a>=32){var n=b.getLameShortVersion();if(a>=32)for(t=0;t=8;++t)a-=8,R(s,n.charAt(t),8)}for(;a>=1;a-=1)R(s,s.ancillary_flag,1),s.ancillary_flag^=e.disable_reservoir?0:1}function B(e,a,t){for(var s=e.header[e.h_ptr].ptr;t>0;){var n=Math.min(t,8-(7&s));t-=n,e.header[e.h_ptr].buf[s>>3]|=a>>t<<8-(7&s)-n,s+=n}e.header[e.h_ptr].ptr=s}function w(e,a){e<<=8;for(var t=0;t<8;t++)65536&((a<<=1)^(e<<=1))&&(a^=32773);return a}function T(e,a){var t,s=o.ht[a.count1table_select+32],n=0,r=a.big_values,i=a.big_values;for(_(a.count1table_select<2),t=(a.count1-a.big_values)/4;t>0;--t){var l=0,f=0;0!=a.l3_enc[r+0]&&(f+=8,a.xr[i+0]<0&&l++),0!=a.l3_enc[r+1]&&(f+=4,l*=2,a.xr[i+1]<0&&l++),0!=a.l3_enc[r+2]&&(f+=2,l*=2,a.xr[i+2]<0&&l++),0!=a.l3_enc[r+3]&&(f++,l*=2,a.xr[i+3]<0&&l++),r+=4,i+=4,R(e,l+s.table[f],s.hlen[f]),n+=s.hlen[f]}return n}function E(e,a,t,s,n){var r=o.ht[a],i=0;if(0==a)return i;for(var l=t;l15){if(m>14){var v=m-15;_(v<=r.linmax),b|=v<<1,c=h,m=15}if(p>14){var d=p-15;_(d<=r.linmax),b<<=h,b|=d,c+=h,p=15}u=16}0!=p&&(b<<=1,n.xr[l+1]<0&&b++,f--),m=m*u+p,c-=f,f+=r.hlen[m],R(e,r.table[m],f),R(e,b,c),i+=f+c}return i}function k(e,a){var t=3*e.scalefac_band.s[3];return t>a.big_values&&(t=a.big_values),E(e,a.table_select[0],0,t,a)+E(e,a.table_select[1],t,a.big_values,a)}function y(e,a){var t,s,n,r;t=a.big_values;var i=a.region0_count+1;return _(it&&(n=t),(r=e.scalefac_band.l[i])>t&&(r=t),s=E(e,a.table_select[0],0,n,a),(s+=E(e,a.table_select[1],n,r,a))+E(e,a.table_select[2],r,t,a)}function x(){this.total=0}function P(e,t){var s,n,r,_,i,o=e.internal_flags;return i=o.w_ptr,-1==(_=o.h_ptr-1)&&(_=f.MAX_HEADER_BUF-1),s=o.header[_].write_timing-v,t.total=s,s>=0&&(n=1+_-i,_>8),a[5]=byte(255&t)},this.flush_bitstream=function(e){var a,t,s=e.internal_flags,n=s.h_ptr-1;if(-1==n&&(n=f.MAX_HEADER_BUF-1),a=s.l3_side,!((t=P(e,new x))<0)){if(M(e,t),_(s.header[n].write_timing+this.getframebits(e)==v),s.ResvSize=0,a.main_data_begin=0,s.findReplayGain){var r=h.GetTitleGain(s.rgdata);_(NEQ(r,GainAnalysis.GAIN_NOT_ENOUGH_SAMPLES)),s.RadioGain=0|Math.floor(10*r+.5)}s.findPeakSample&&(s.noclipGainChange=0|Math.ceil(20*Math.log10(s.PeakSample/32767)*10),s.noclipGainChange>0&&(EQ(e.scale,1)||EQ(e.scale,0))?s.noclipScale=Math.floor(32767/s.PeakSample*100)/100:s.noclipScale=-1)}},this.add_dummy_byte=function(e,a,t){for(var s,n=e.internal_flags;t-- >0;)for(A(0,a,8),s=0;s=0),B(o,n.main_data_begin,9),2==o.channels_out?B(o,n.private_bits,3):B(o,n.private_bits,5),i=0;i=0),B(o,n.main_data_begin,8),B(o,n.private_bits,o.channels_out),r=0,i=0;i ResvSize"),8*s.main_data_begin!=n.ResvSize&&(a.err.printf("bit reservoir error: \nl3_side.main_data_begin: %d \nResvoir size: %d \nresv drain (post) %d \nresv drain (pre) %d \nheader and sideinfo: %d \ndata bits: %d \ntotal bits: %d (remainder: %d) \nbitsperframe: %d \n",8*s.main_data_begin,n.ResvSize,s.resvDrain_post,s.resvDrain_pre,8*n.sideinfo_len,o-s.resvDrain_post-8*n.sideinfo_len,o,o%8,r),a.err.println("This is a fatal error. It has several possible causes:"),a.err.println("90%% LAME compiled with buggy version of gcc using advanced optimizations"),a.err.println(" 9%% Your system is overclocked"),a.err.println(" 1%% bug in LAME encoding library"),n.ResvSize=8*s.main_data_begin),v>1e9){var c;for(c=0;c_)return-1;if(a.arraycopy(p,0,t,s,o),d=-1,g=0,0!=i){var l=r(1);if(l[0]=e.nMusicCRC,m.updateMusicCRC(l,t,s,o),e.nMusicCRC=l[0],o>0&&(e.VBR_seek_table.nBytesWritten+=o),e.decode_on_the_fly)for(var f,c=n([2,1152]),b=o,v=-1;0!=v;)if(v=u.hip_decode1_unclipped(e.hip,t,s,b,c[0],c[1]),b=0,-1==v&&(v=0),v>0){if(e.findPeakSample){for(f=0;fe.PeakSample?e.PeakSample=c[0][f]:-c[0][f]>e.PeakSample&&(e.PeakSample=-c[0][f]);if(e.channels_out>1)for(f=0;fe.PeakSample?e.PeakSample=c[1][f]:-c[1][f]>e.PeakSample&&(e.PeakSample=-c[1][f])}if(e.findReplayGain&&h.AnalyzeSamples(e.rgdata,c[0],0,c[1],0,v,e.channels_out)==GainAnalysis.GAIN_ANALYSIS_ERROR)return-6}}return o},this.init_bit_stream_w=function(a){p=s(e.LAME_MAXMP3BUFFER),a.h_ptr=a.w_ptr=0,a.header[a.h_ptr].write_timing=0,d=-1,g=0,v=0}}return c.EQ=function(e,a){return Math.abs(e)>Math.abs(a)?Math.abs(e-a)<=1e-6*Math.abs(e):Math.abs(e-a)<=1e-6*Math.abs(a)},c.NEQ=function(e,a){return!c.EQ(e,a)},sa=c}function ca(){if(_a)return ra;_a=1;var e=p,a=e.System,t=e.VbrMode,s=e.ShortBlock,n=e.new_float,r=e.new_int_n,_=e.new_short_n,i=e.assert,o=Y,l=F,f=Ee,c=xe,h=Ye,u=Qe,b=fa(),m=ia,v=A();return ra=function e(){var p,d,g,S,A,M=R,B=this;e.V9=410,e.V8=420,e.V7=430,e.V6=440,e.V5=450,e.V4=460,e.V3=470,e.V2=480,e.V1=490,e.V0=500,e.R3MIX=1e3,e.STANDARD=1001,e.EXTREME=1002,e.INSANE=1003,e.STANDARD_FAST=1004,e.EXTREME_FAST=1005,e.MEDIUM=1006,e.MEDIUM_FAST=1007,e.LAME_MAXMP3BUFFER=147456;var w,T,E,k=new o;function y(){this.mask_adjust=0,this.mask_adjust_short=0,this.bo_l_weight=n(v.SBMAX_l),this.bo_s_weight=n(v.SBMAX_s)}function x(){this.lowerlimit=0}function P(e,a){this.lowpass=a}this.enc=new v,this.setModules=function(e,a,t,s,n,r,_,i,o){p=e,d=a,g=t,S=s,A=n,w=r,T=i,E=o,this.enc.setModules(d,k,S,w)};var I=4294479419;function H(e){return e>1?0:e<=0?1:Math.cos(Math.PI/2*e)}function V(e,a){switch(e){case 44100:return a.version=1,0;case 48e3:return a.version=1,1;case 32e3:return a.version=1,2;case 22050:case 11025:return a.version=0,0;case 24e3:case 12e3:return a.version=0,1;case 16e3:case 8e3:return a.version=0,2;default:return a.version=0,-1}}function L(e,a,t){t<16e3&&(a=2);for(var s=m.bitrate_table[a][1],n=2;n<=14;n++)m.bitrate_table[a][n]>0&&Math.abs(m.bitrate_table[a][n]-e)0&&m.bitrate_table[a][s]==e)return s;return-1}function O(e,a){var t=[new P(8,2e3),new P(16,3700),new P(24,3900),new P(32,5500),new P(40,7e3),new P(48,7500),new P(56,1e4),new P(64,11e3),new P(80,13500),new P(96,15100),new P(112,15600),new P(128,17e3),new P(160,17500),new P(192,18600),new P(224,19400),new P(256,19700),new P(320,20500)],s=B.nearestBitrateFullIndex(a);e.lowerlimit=t[s].lowpass}function X(e){var a=v.BLKSIZE+e.framesize-v.FFTOFFSET;return Math.max(a,512+e.framesize-32)}function D(e,a,t,s,n,r){var _=B.enc.lame_encode_mp3_frame(e,a,t,s,n,r);return e.frameNum++,_}function Y(){this.n_in=0,this.n_out=0}function q(){this.num_used=0}function F(e,a){return 0!=a?F(a,e%a):e}function C(e,a,t){var s=Math.PI*a;(e/=t)<0&&(e=0),e>1&&(e=1);var n=e-.5,r=.42-.5*Math.cos(2*e*Math.PI)+.08*Math.cos(4*e*Math.PI);return Math.abs(n)<1e-9?s/Math.PI:r*Math.sin(t*s*n)/(Math.PI*t*n)}function j(e,a,t,s,r,_,o,l,c){var h,u,b=e.internal_flags,m=0,p=e.out_samplerate/F(e.out_samplerate,e.in_samplerate);p>f.BPC&&(p=f.BPC);var v=Math.abs(b.resample_ratio-Math.floor(.5+b.resample_ratio))<1e-4?1:0,d=1/b.resample_ratio;d>1&&(d=1);var g=31;0==g%2&&--g;var S=(g+=v)+1;if(0==b.fill_buffer_resample_init){for(b.inbuf_old[0]=n(S),b.inbuf_old[1]=n(S),h=0;h<=2*p;++h)b.blackfilt[h]=n(S);for(b.itime[0]=0,b.itime[1]=0,m=0;m<=2*p;m++){var R=0,A=(m-p)/(2*p);for(h=0;h<=g;h++)R+=b.blackfilt[m][h]=C(h-A,d,g);for(h=0;h<=g;h++)b.blackfilt[m][h]/=R}b.fill_buffer_resample_init=1}var M=b.inbuf_old[c];for(u=0;u=o)break;A=B-b.itime[c]-(m+g%2*.5),w=0|Math.floor(2*A*p+p+.5);var T=0;for(h=0;h<=g;++h){var E=0|h+m-g/2;T+=(E<0?M[S+E]:r[_+E])*b.blackfilt[w][h]}a[t+u]=T}if(l.num_used=Math.min(o,g+m-g/2),b.itime[c]+=l.num_used-u*b.resample_ratio,l.num_used>=S)for(h=0;h1.0001)for(var i=0;i<_.channels_out;i++){var o=new q;r.n_out=j(e,a[i],_.mf_size,e.framesize,t[i],s,n,o,i),r.n_in=o.num_used}else{r.n_out=Math.min(e.framesize,n),r.n_in=r.n_out;for(var l=0;le-s?t:n},this.lame_init_params=function(e){var n,_,l,f=e.internal_flags;if(f.Class_ID=0,null==f.ATH&&(f.ATH=new c),null==f.PSY&&(f.PSY=new y),null==f.rgdata&&(f.rgdata=new h),f.channels_in=e.num_channels,1==f.channels_in&&(e.mode=M.MONO),f.channels_out=e.mode==M.MONO?1:2,f.mode_ext=v.MPG_MD_MS_LR,e.mode==M.MONO&&(e.force_ms=!1),e.VBR==t.vbr_off&&128!=e.VBR_mean_bitrate_kbps&&0==e.brate&&(e.brate=e.VBR_mean_bitrate_kbps),e.VBR==t.vbr_off||e.VBR==t.vbr_mtrh||e.VBR==t.vbr_mt||(e.free_format=!1),e.VBR==t.vbr_off&&0==e.brate&&b.EQ(e.compression_ratio,0)&&(e.compression_ratio=11.025),e.VBR==t.vbr_off&&e.compression_ratio>0&&(0==e.out_samplerate&&(e.out_samplerate=map2MP3Frequency(int(.97*e.in_samplerate))),e.brate=0|16*e.out_samplerate*f.channels_out/(1e3*e.compression_ratio),f.samplerate_index=V(e.out_samplerate,e),e.free_format||(e.brate=L(e.brate,e.version,e.out_samplerate))),0!=e.out_samplerate&&(e.out_samplerate<16e3?(e.VBR_mean_bitrate_kbps=Math.max(e.VBR_mean_bitrate_kbps,8),e.VBR_mean_bitrate_kbps=Math.min(e.VBR_mean_bitrate_kbps,64)):e.out_samplerate<32e3?(e.VBR_mean_bitrate_kbps=Math.max(e.VBR_mean_bitrate_kbps,8),e.VBR_mean_bitrate_kbps=Math.min(e.VBR_mean_bitrate_kbps,160)):(e.VBR_mean_bitrate_kbps=Math.max(e.VBR_mean_bitrate_kbps,32),e.VBR_mean_bitrate_kbps=Math.min(e.VBR_mean_bitrate_kbps,320))),0==e.lowpassfreq){var R=16e3;switch(e.VBR){case t.vbr_off:O(B=new x,e.brate),R=B.lowerlimit;break;case t.vbr_abr:var B;O(B=new x,e.VBR_mean_bitrate_kbps),R=B.lowerlimit;break;case t.vbr_rh:var P=[19500,19e3,18600,18e3,17500,16e3,15600,14900,12500,1e4,3950];if(0<=e.VBR_q&&e.VBR_q<=9){var X=P[e.VBR_q],D=P[e.VBR_q+1],Y=e.VBR_q_frac;R=linear_int(X,D,Y)}else R=19500;break;default:P=[19500,19e3,18500,18e3,17500,16500,15500,14500,12500,9500,3950],0<=e.VBR_q&&e.VBR_q<=9?(X=P[e.VBR_q],D=P[e.VBR_q+1],Y=e.VBR_q_frac,R=linear_int(X,D,Y)):R=19500}e.mode!=M.MONO||e.VBR!=t.vbr_off&&e.VBR!=t.vbr_abr||(R*=1.5),e.lowpassfreq=0|R}if(0==e.out_samplerate&&(2*e.lowpassfreq>e.in_samplerate&&(e.lowpassfreq=e.in_samplerate/2),e.out_samplerate=(n=0|e.lowpassfreq,l=44100,(_=e.in_samplerate)>=48e3?l=48e3:_>=44100?l=44100:_>=32e3?l=32e3:_>=24e3?l=24e3:_>=22050?l=22050:_>=16e3?l=16e3:_>=12e3?l=12e3:_>=11025?l=11025:_>=8e3&&(l=8e3),-1==n?l:(n<=15960&&(l=44100),n<=15250&&(l=32e3),n<=11220&&(l=24e3),n<=9970&&(l=22050),n<=7230&&(l=16e3),n<=5420&&(l=12e3),n<=4510&&(l=11025),n<=3970&&(l=8e3),_44100?48e3:_>32e3?44100:_>24e3?32e3:_>22050?24e3:_>16e3?22050:_>12e3?16e3:_>11025?12e3:_>8e3?11025:8e3:l))),e.lowpassfreq=Math.min(20500,e.lowpassfreq),e.lowpassfreq=Math.min(e.out_samplerate/2,e.lowpassfreq),e.VBR==t.vbr_off&&(e.compression_ratio=16*e.out_samplerate*f.channels_out/(1e3*e.brate)),e.VBR==t.vbr_abr&&(e.compression_ratio=16*e.out_samplerate*f.channels_out/(1e3*e.VBR_mean_bitrate_kbps)),e.bWriteVbrTag||(e.findReplayGain=!1,e.decode_on_the_fly=!1,f.findPeakSample=!1),f.findReplayGain=e.findReplayGain,f.decode_on_the_fly=e.decode_on_the_fly,f.decode_on_the_fly&&(f.findPeakSample=!0),f.findReplayGain&&p.InitGainAnalysis(f.rgdata,e.out_samplerate)==GainAnalysis.INIT_GAIN_ANALYSIS_ERROR)return e.internal_flags=null,-6;switch(f.decode_on_the_fly&&!e.decode_only&&(null!=f.hip&&E.hip_decode_exit(f.hip),f.hip=E.hip_decode_init()),f.mode_gr=e.out_samplerate<=24e3?1:2,e.framesize=576*f.mode_gr,e.encoder_delay=v.ENCDELAY,f.resample_ratio=e.in_samplerate/e.out_samplerate,e.VBR){case t.vbr_mt:case t.vbr_rh:case t.vbr_mtrh:e.compression_ratio=[5.7,6.5,7.3,8.2,10,11.9,13,14,15,16.5][e.VBR_q];break;case t.vbr_abr:e.compression_ratio=16*e.out_samplerate*f.channels_out/(1e3*e.VBR_mean_bitrate_kbps);break;default:e.compression_ratio=16*e.out_samplerate*f.channels_out/(1e3*e.brate)}if(e.mode==M.NOT_SET&&(e.mode=M.JOINT_STEREO),e.highpassfreq>0?(f.highpass1=2*e.highpassfreq,e.highpasswidth>=0?f.highpass2=2*(e.highpassfreq+e.highpasswidth):f.highpass2=2*e.highpassfreq,f.highpass1/=e.out_samplerate,f.highpass2/=e.out_samplerate):(f.highpass1=0,f.highpass2=0),e.lowpassfreq>0?(f.lowpass2=2*e.lowpassfreq,e.lowpasswidth>=0?(f.lowpass1=2*(e.lowpassfreq-e.lowpasswidth),f.lowpass1<0&&(f.lowpass1=0)):f.lowpass1=2*e.lowpassfreq,f.lowpass1/=e.out_samplerate,f.lowpass2/=e.out_samplerate):(f.lowpass1=0,f.lowpass2=0),function(e){var t=e.internal_flags,s=32,n=-1;if(t.lowpass1>0){for(var r=999,_=0;_<=31;_++)(f=_/31)>=t.lowpass2&&(s=Math.min(s,_)),t.lowpass10&&t.highpass2<.75/31*.9&&(t.highpass1=0,t.highpass2=0,a.err.println("Warning: highpass filter disabled. highpass frequency too small\n")),t.highpass2>0){var i=-1;for(_=0;_<=31;_++)(f=_/31)<=t.highpass1&&(n=Math.max(n,_)),t.highpass1t.highpass1?H((t.highpass2-f)/(t.highpass2-t.highpass1+1e-20)):1,l=t.lowpass2>t.lowpass1?H((f-t.lowpass1)/(t.lowpass2-t.lowpass1+1e-20)):1,t.amp_filter[_]=o*l}}(e),f.samplerate_index=V(e.out_samplerate,e),f.samplerate_index<0)return e.internal_flags=null,-1;if(e.VBR==t.vbr_off){if(e.free_format)f.bitrate_index=0;else if(e.brate=L(e.brate,e.version,e.out_samplerate),f.bitrate_index=N(e.brate,e.version,e.out_samplerate),f.bitrate_index<=0)return e.internal_flags=null,-1}else f.bitrate_index=1;e.analysis&&(e.bWriteVbrTag=!1),null!=f.pinfo&&(e.bWriteVbrTag=!1),d.init_bit_stream_w(f);for(var q,F=f.samplerate_index+3*e.version+6*(e.out_samplerate<16e3?1:0),C=0;C=0),e.VBR){case t.vbr_mt:e.VBR=t.vbr_mtrh;case t.vbr_mtrh:null==e.useTemporal&&(e.useTemporal=!1),g.apply_preset(e,500-10*e.VBR_q,0),e.quality<0&&(e.quality=LAME_DEFAULT_QUALITY),e.quality<5&&(e.quality=0),e.quality>5&&(e.quality=5),f.PSY.mask_adjust=e.maskingadjust,f.PSY.mask_adjust_short=e.maskingadjust_short,e.experimentalY?f.sfb21_extra=!1:f.sfb21_extra=e.out_samplerate>44e3,f.iteration_loop=new VBRNewIterationLoop(A);break;case t.vbr_rh:g.apply_preset(e,500-10*e.VBR_q,0),f.PSY.mask_adjust=e.maskingadjust,f.PSY.mask_adjust_short=e.maskingadjust_short,e.experimentalY?f.sfb21_extra=!1:f.sfb21_extra=e.out_samplerate>44e3,e.quality>6&&(e.quality=6),e.quality<0&&(e.quality=LAME_DEFAULT_QUALITY),f.iteration_loop=new VBROldIterationLoop(A);break;default:var z;f.sfb21_extra=!1,e.quality<0&&(e.quality=LAME_DEFAULT_QUALITY),(z=e.VBR)==t.vbr_off&&(e.VBR_mean_bitrate_kbps=e.brate),g.apply_preset(e,e.VBR_mean_bitrate_kbps,0),e.VBR=z,f.PSY.mask_adjust=e.maskingadjust,f.PSY.mask_adjust_short=e.maskingadjust_short,z==t.vbr_off?f.iteration_loop=new u(A):f.iteration_loop=new ABRIterationLoop(A)}if(i(e.scale>=0),e.VBR!=t.vbr_off){if(f.VBR_min_bitrate=1,f.VBR_max_bitrate=14,e.out_samplerate<16e3&&(f.VBR_max_bitrate=8),0!=e.VBR_min_bitrate_kbps&&(e.VBR_min_bitrate_kbps=L(e.VBR_min_bitrate_kbps,e.version,e.out_samplerate),f.VBR_min_bitrate=N(e.VBR_min_bitrate_kbps,e.version,e.out_samplerate),f.VBR_min_bitrate<0))return-1;if(0!=e.VBR_max_bitrate_kbps&&(e.VBR_max_bitrate_kbps=L(e.VBR_max_bitrate_kbps,e.version,e.out_samplerate),f.VBR_max_bitrate=N(e.VBR_max_bitrate_kbps,e.version,e.out_samplerate),f.VBR_max_bitrate<0))return-1;e.VBR_min_bitrate_kbps=m.bitrate_table[e.version][f.VBR_min_bitrate],e.VBR_max_bitrate_kbps=m.bitrate_table[e.version][f.VBR_max_bitrate],e.VBR_mean_bitrate_kbps=Math.min(m.bitrate_table[e.version][f.VBR_max_bitrate],e.VBR_mean_bitrate_kbps),e.VBR_mean_bitrate_kbps=Math.max(m.bitrate_table[e.version][f.VBR_min_bitrate],e.VBR_mean_bitrate_kbps)}return e.tune&&(f.PSY.mask_adjust+=e.tune_value_a,f.PSY.mask_adjust_short+=e.tune_value_a),function(e){var a=e.internal_flags;switch(e.quality){default:case 9:a.psymodel=0,a.noise_shaping=0,a.noise_shaping_amp=0,a.noise_shaping_stop=0,a.use_best_huffman=0,a.full_outer_loop=0;break;case 8:e.quality=7;case 7:a.psymodel=1,a.noise_shaping=0,a.noise_shaping_amp=0,a.noise_shaping_stop=0,a.use_best_huffman=0,a.full_outer_loop=0;break;case 6:case 5:a.psymodel=1,0==a.noise_shaping&&(a.noise_shaping=1),a.noise_shaping_amp=0,a.noise_shaping_stop=0,-1==a.subblock_gain&&(a.subblock_gain=1),a.use_best_huffman=0,a.full_outer_loop=0;break;case 4:a.psymodel=1,0==a.noise_shaping&&(a.noise_shaping=1),a.noise_shaping_amp=0,a.noise_shaping_stop=0,-1==a.subblock_gain&&(a.subblock_gain=1),a.use_best_huffman=1,a.full_outer_loop=0;break;case 3:a.psymodel=1,0==a.noise_shaping&&(a.noise_shaping=1),a.noise_shaping_amp=1,a.noise_shaping_stop=1,-1==a.subblock_gain&&(a.subblock_gain=1),a.use_best_huffman=1,a.full_outer_loop=0;break;case 2:a.psymodel=1,0==a.noise_shaping&&(a.noise_shaping=1),0==a.substep_shaping&&(a.substep_shaping=2),a.noise_shaping_amp=1,a.noise_shaping_stop=1,-1==a.subblock_gain&&(a.subblock_gain=1),a.use_best_huffman=1,a.full_outer_loop=0;break;case 1:case 0:a.psymodel=1,0==a.noise_shaping&&(a.noise_shaping=1),0==a.substep_shaping&&(a.substep_shaping=2),a.noise_shaping_amp=2,a.noise_shaping_stop=1,-1==a.subblock_gain&&(a.subblock_gain=1),a.use_best_huffman=1,a.full_outer_loop=0}}(e),i(e.scale>=0),e.athaa_type<0?f.ATH.useAdjust=3:f.ATH.useAdjust=e.athaa_type,f.ATH.aaSensitivityP=Math.pow(10,e.athaa_sensitivity/-10),null==e.short_blocks&&(e.short_blocks=s.short_block_allowed),e.short_blocks!=s.short_block_allowed||e.mode!=M.JOINT_STEREO&&e.mode!=M.STEREO||(e.short_blocks=s.short_block_coupled),e.quant_comp<0&&(e.quant_comp=1),e.quant_comp_short<0&&(e.quant_comp_short=0),e.msfix<0&&(e.msfix=0),e.exp_nspsytune=1|e.exp_nspsytune,e.internal_flags.nsPsy.attackthre<0&&(e.internal_flags.nsPsy.attackthre=o.NSATTACKTHRE),e.internal_flags.nsPsy.attackthre_s<0&&(e.internal_flags.nsPsy.attackthre_s=o.NSATTACKTHRE_S),i(e.scale>=0),e.scale<0&&(e.scale=1),e.ATHtype<0&&(e.ATHtype=4),e.ATHcurve<0&&(e.ATHcurve=4),e.athaa_loudapprox<0&&(e.athaa_loudapprox=2),e.interChRatio<0&&(e.interChRatio=0),null==e.useTemporal&&(e.useTemporal=!0),f.slot_lag=f.frac_SpF=0,e.VBR==t.vbr_off&&(f.slot_lag=f.frac_SpF=72e3*(e.version+1)*e.brate%e.out_samplerate|0),S.iteration_init(e),k.psymodel_init(e),i(e.scale>=0),0},this.lame_encode_flush=function(e,a,t,s){var n,r,i,o,l=e.internal_flags,f=_([2,1152]),c=0,h=l.mf_samples_to_encode-v.POSTDELAY,u=X(e);if(l.mf_samples_to_encode<1)return 0;for(n=0,e.in_samplerate!=e.out_samplerate&&(h+=16*e.out_samplerate/e.in_samplerate),(i=e.framesize-h%e.framesize)<576&&(i+=e.framesize),e.encoder_padding=i,o=(h+i)/e.framesize;o>0&&c>=0;){var b=u-l.mf_size,m=e.frameNum;b*=e.in_samplerate,(b/=e.out_samplerate)>1152&&(b=1152),b<1&&(b=1),r=s-n,0==s&&(r=0),t+=c=this.lame_encode_buffer(e,f[0],f[1],b,a,t,r),n+=c,o-=m!=e.frameNum?1:0}if(l.mf_samples_to_encode=0,c<0)return c;if(r=s-n,0==s&&(r=0),d.flush_bitstream(e),(c=d.copy_buffer(l,a,t,r,1))<0)return c;if(t+=c,r=s-(n+=c),0==s&&(r=0),e.write_id3tag_automatic){if(T.id3tag_write_v1(e),(c=d.copy_buffer(l,a,t,r,0))<0)return c;n+=c}return n},this.lame_encode_buffer=function(e,a,t,s,r,_,o){var l=e.internal_flags,c=[null,null];if(l.Class_ID!=I)return-3;if(0==s)return 0;!function(e,a){(null==e.in_buffer_0||e.in_buffer_nsamples1&&(c[1][h]=t[h]);return function(e,a,t,s,n,r,_){var o,l,c,h,u,m=e.internal_flags,g=0,S=[null,null],R=[null,null];if(m.Class_ID!=I)return-3;if(0==s)return 0;if((u=d.copy_buffer(m,n,r,_,0))<0)return u;if(r+=u,g+=u,R[0]=a,R[1]=t,b.NEQ(e.scale,0)&&b.NEQ(e.scale,1))for(l=0;l0;){var B,w,M=[null,null];M[0]=R[0],M[1]=R[1];var T=new Y;if(G(e,S,M,A,s,T),B=T.n_in,w=T.n_out,m.findReplayGain&&!m.decode_on_the_fly&&p.AnalyzeSamples(m.rgdata,S[0],m.mf_size,S[1],m.mf_size,w,m.channels_out)==GainAnalysis.GAIN_ANALYSIS_ERROR)return-6;if(s-=B,A+=B,m.channels_out,m.mf_size+=w,i(m.mf_size<=f.MFSIZE),m.mf_samples_to_encode<1&&(m.mf_samples_to_encode=v.ENCDELAY+v.POSTDELAY),m.mf_samples_to_encode+=w,m.mf_size>=h){var E=_-g;if(0==_&&(E=0),(o=D(e,S[0],S[1],n,r,E))<0)return o;for(r+=o,g+=o,m.mf_size-=e.framesize,m.mf_samples_to_encode-=e.framesize,c=0;c>24,e[a+1]=255&t>>16,e[a+2]=255&t>>8,e[a+3]=255&t}function c(e,a,t){e[a+0]=255&t>>8,e[a+1]=255&t}function h(e,a,t){return 255&(e<>8^o[255&(a^e)]}this.addVbrFrame=function(e){var a=e.internal_flags,t=Tables.bitrate_table[e.version][a.bitrate_index];Ca(null!=a.VBR_seek_table.bag),function(e,a){if(e.nVbrNumFrames++,e.sum+=a,e.seen++,!(e.seen>3&1,r=e[t+2]>>2&3,o=e[t+3]>>6&3,f=e[t+2]>>4&15;if(f=Tables.bitrate_table[n][f],e[t+1]>>4==14?a.samprate=Tables.samplerate_table[2][r]:a.samprate=Tables.samplerate_table[n][r],!function(e,a){return new String(e,a,4(),null).equals(_)||new String(e,a,4(),null).equals(i)}(e,t+=0!=n?3!=o?36:21:3!=o?21:13))return null;t+=4,a.hId=n;var c=a.flags=l(e,t);if(t+=4,!!(1&c)&&(a.frames=l(e,t),t+=4),!!(2&c)&&(a.bytes=l(e,t),t+=4),4&c){if(null!=a.toc)for(var h=0;h>4;var b=(15&e[t+1])<<8;return(u<0||u>3e3)&&(u=-1),((b+=255&e[t+2])<0||b>3e3)&&(b=-1),a.encDelay=u,a.encPadding=b,a},this.InitVbrTag=function(e){var t,s=e.internal_flags;t=1==e.version?128:e.out_samplerate<16e3?32:64,e.VBR==Da.vbr_off&&(t=e.brate);var _=72e3*(e.version+1)*t/e.out_samplerate,i=s.sideinfo_len+r;if(s.VBR_seek_table.TotalFrameSize=_,_n)e.bWriteVbrTag=!1;else{s.VBR_seek_table.nVbrNumFrames=0,s.VBR_seek_table.nBytesWritten=0,s.VBR_seek_table.sum=0,s.VBR_seek_table.seen=0,s.VBR_seek_table.want=1,s.VBR_seek_table.pos=0,null==s.VBR_seek_table.bag&&(s.VBR_seek_table.bag=new int[400],s.VBR_seek_table.size=400);var o=Fa(n);u(e,o);for(var l=s.VBR_seek_table.TotalFrameSize,f=0;fe.pos-1&&(r=e.pos-1);var _=0|256*e.bag[r]/e.sum;_>255&&(_=255),a[t]=255&_}}(r.VBR_seek_table,o);var h=r.sideinfo_len;e.error_protection&&(h-=2),e.VBR==Da.vbr_off?(n[h++]=255&i.charAt(0),n[h++]=255&i.charAt(1),n[h++]=255&i.charAt(2),n[h++]=255&i.charAt(3)):(n[h++]=255&_.charAt(0),n[h++]=255&_.charAt(1),n[h++]=255&_.charAt(2),n[h++]=255&_.charAt(3)),f(n,h,15),f(n,h+=4,r.VBR_seek_table.nVbrNumFrames),h+=4;var m=r.VBR_seek_table.nBytesWritten+r.VBR_seek_table.TotalFrameSize;f(n,h,0|m),h+=4,Xa.arraycopy(o,0,n,h,o.length),h+=o.length,e.error_protection&&a.CRC_writeheader(r,n);var p=0;for(l=0;l255?255:e.lowpassfreq/100+.5),A=0,M=0,B=e.internal_flags.noise_shaping,w=0,T=0,k=!!(1&e.exp_nspsytune),y=!!(2&e.exp_nspsytune),x=!1,P=!1,I=e.internal_flags.nogap_total,H=e.internal_flags.nogap_current,V=e.ATHtype;switch(e.VBR){case vbr_abr:h=e.VBR_mean_bitrate_kbps;break;case vbr_off:h=e.brate;break;default:h=e.VBR_min_bitrate_kbps}switch(_=0+(e.VBR.ordinal()510&&(u.RadioGain=510),u.RadioGain<-510&&(u.RadioGain=-510),M=8192,M|=3072,u.RadioGain>=0?M|=u.RadioGain:(M|=512,M|=-u.RadioGain)),u.findPeakSample&&(A=Math.abs(0|u.PeakSample/32767*Math.pow(2,23)+.5)),-1!=I&&(H>0&&(P=!0),H48e3?3:1,(e.short_blocks==Ya.short_block_forced||e.short_blocks==Ya.short_block_dispensed||-1==e.lowpassfreq&&-1==e.highpassfreq||e.scale_lefte.scale_right||e.disable_reservoir&&e.brate<320||e.noATH||e.ATHonly||0==V||e.in_samplerate<=32e3)&&(T=1),i=B+(w<<2)+(T<<5)+(E<<6),o=u.nMusicCRC,f(s,n+m,d),m+=4;for(var L=0;L<9;L++)s[n+m+L]=255&g.charAt(L);s[n+(m+=9)]=255&_,s[n+ ++m]=255&R,f(s,n+ ++m,A),c(s,n+(m+=4),M),c(s,n+(m+=2),0),s[n+(m+=2)]=255&l,s[n+ ++m]=h>=255?255:255&h,s[n+ ++m]=255&p>>4,s[n+m+1]=255&(p<<4)+(v>>8),s[n+m+2]=255&v,s[n+(m+=3)]=255&i,m++,s[n+m++]=0,c(s,n+m,e.preset),f(s,n+(m+=2),a),c(s,n+(m+=4),o),m+=2;for(var N=0;Ns.length?-1:(r<1||a.write(s,0,r),0)}}ja.NUMTOCENTRIES=100,ja.MAXFRAMESIZE=2880;var Ga=ja,za=p,Ka=za.new_byte,Za=za.assert,Ua=ca(),Qa=function ua(){var e,a=ca();function t(e,a,t,s,n,r,_,i,o,l,f,c,h,u,b){this.vbr_q=e,this.quant_comp=a,this.quant_comp_s=t,this.expY=s,this.st_lrm=n,this.st_s=r,this.masking_adj=_,this.masking_adj_short=i,this.ath_lower=o,this.ath_curve=l,this.ath_sensitivity=f,this.interch=c,this.safejoint=h,this.sfb21mod=u,this.msfix=b}function s(e,a,t,s,n,r,_,i,o,l,f,c,h,u){this.quant_comp=a,this.quant_comp_s=t,this.safejoint=s,this.nsmsfix=n,this.st_lrm=r,this.st_s=_,this.nsbass=i,this.scale=o,this.masking_adj=l,this.ath_lower=f,this.ath_curve=c,this.interch=h,this.sfscale=u}this.setModules=function(a){e=a};var n=[new t(0,9,9,0,5.2,125,-4.2,-6.3,4.8,1,0,0,2,21,.97),new t(1,9,9,0,5.3,125,-3.6,-5.6,4.5,1.5,0,0,2,21,1.35),new t(2,9,9,0,5.6,125,-2.2,-3.5,2.8,2,0,0,2,21,1.49),new t(3,9,9,1,5.8,130,-1.8,-2.8,2.6,3,-4,0,2,20,1.64),new t(4,9,9,1,6,135,-.7,-1.1,1.1,3.5,-8,0,2,0,1.79),new t(5,9,9,1,6.4,140,.5,.4,-7.5,4,-12,2e-4,0,0,1.95),new t(6,9,9,1,6.6,145,.67,.65,-14.7,6.5,-19,4e-4,0,0,2.3),new t(7,9,9,1,6.6,145,.8,.75,-19.7,8,-22,6e-4,0,0,2.7),new t(8,9,9,1,6.6,145,1.2,1.15,-27.5,10,-23,7e-4,0,0,0),new t(9,9,9,1,6.6,145,1.6,1.6,-36,11,-25,8e-4,0,0,0),new t(10,9,9,1,6.6,145,2,2,-36,12,-25,8e-4,0,0,0)],r=[new t(0,9,9,0,4.2,25,-7,-4,7.5,1,0,0,2,26,.97),new t(1,9,9,0,4.2,25,-5.6,-3.6,4.5,1.5,0,0,2,21,1.35),new t(2,9,9,0,4.2,25,-4.4,-1.8,2,2,0,0,2,18,1.49),new t(3,9,9,1,4.2,25,-3.4,-1.25,1.1,3,-4,0,2,15,1.64),new t(4,9,9,1,4.2,25,-2.2,.1,0,3.5,-8,0,2,0,1.79),new t(5,9,9,1,4.2,25,-1,1.65,-7.7,4,-12,2e-4,0,0,1.95),new t(6,9,9,1,4.2,25,-0,2.47,-7.7,6.5,-19,4e-4,0,0,2),new t(7,9,9,1,4.2,25,.5,2,-14.5,8,-22,6e-4,0,0,2),new t(8,9,9,1,4.2,25,1,2.4,-22,10,-23,7e-4,0,0,2),new t(9,9,9,1,4.2,25,1.5,2.95,-30,11,-25,8e-4,0,0,2),new t(10,9,9,1,4.2,25,2,2.95,-36,12,-30,8e-4,0,0,2)];function _(e,a,t){var s=e.VBR==ha.vbr_rh?n:r,_=e.VBR_q_frac,i=s[a],o=s[a+1],l=i;i.st_lrm=i.st_lrm+_*(o.st_lrm-i.st_lrm),i.st_s=i.st_s+_*(o.st_s-i.st_s),i.masking_adj=i.masking_adj+_*(o.masking_adj-i.masking_adj),i.masking_adj_short=i.masking_adj_short+_*(o.masking_adj_short-i.masking_adj_short),i.ath_lower=i.ath_lower+_*(o.ath_lower-i.ath_lower),i.ath_curve=i.ath_curve+_*(o.ath_curve-i.ath_curve),i.ath_sensitivity=i.ath_sensitivity+_*(o.ath_sensitivity-i.ath_sensitivity),i.interch=i.interch+_*(o.interch-i.interch),i.msfix=i.msfix+_*(o.msfix-i.msfix),function(e,a){0>a&&(-1,a=0),90||(e.quant_comp=l.quant_comp),0!=t?e.quant_comp_short=l.quant_comp_s:Math.abs(e.quant_comp_short- -1)>0||(e.quant_comp_short=l.quant_comp_s),0!=l.expY&&(e.experimentalY=0!=l.expY),0!=t?e.internal_flags.nsPsy.attackthre=l.st_lrm:Math.abs(e.internal_flags.nsPsy.attackthre- -1)>0||(e.internal_flags.nsPsy.attackthre=l.st_lrm),0!=t?e.internal_flags.nsPsy.attackthre_s=l.st_s:Math.abs(e.internal_flags.nsPsy.attackthre_s- -1)>0||(e.internal_flags.nsPsy.attackthre_s=l.st_s),0!=t?e.maskingadjust=l.masking_adj:Math.abs(e.maskingadjust-0)>0||(e.maskingadjust=l.masking_adj),0!=t?e.maskingadjust_short=l.masking_adj_short:Math.abs(e.maskingadjust_short-0)>0||(e.maskingadjust_short=l.masking_adj_short),0!=t?e.ATHlower=-l.ath_lower/10:Math.abs(10*-e.ATHlower-0)>0||(e.ATHlower=-l.ath_lower/10),0!=t?e.ATHcurve=l.ath_curve:Math.abs(e.ATHcurve- -1)>0||(e.ATHcurve=l.ath_curve),0!=t?e.athaa_sensitivity=l.ath_sensitivity:Math.abs(e.athaa_sensitivity- -1)>0||(e.athaa_sensitivity=l.ath_sensitivity),l.interch>0&&(0!=t?e.interChRatio=l.interch:Math.abs(e.interChRatio- -1)>0||(e.interChRatio=l.interch)),l.safejoint>0&&(e.exp_nspsytune=e.exp_nspsytune|l.safejoint),l.sfb21mod>0&&(e.exp_nspsytune=e.exp_nspsytune|l.sfb21mod<<20),0!=t?e.msfix=l.msfix:Math.abs(e.msfix- -1)>0||(e.msfix=l.msfix),0==t&&(e.VBR_q=a,e.VBR_q_frac=_)}var i=[new s(8,9,9,0,0,6.6,145,0,.95,0,-30,11,.0012,1),new s(16,9,9,0,0,6.6,145,0,.95,0,-25,11,.001,1),new s(24,9,9,0,0,6.6,145,0,.95,0,-20,11,.001,1),new s(32,9,9,0,0,6.6,145,0,.95,0,-15,11,.001,1),new s(40,9,9,0,0,6.6,145,0,.95,0,-10,11,9e-4,1),new s(48,9,9,0,0,6.6,145,0,.95,0,-10,11,9e-4,1),new s(56,9,9,0,0,6.6,145,0,.95,0,-6,11,8e-4,1),new s(64,9,9,0,0,6.6,145,0,.95,0,-2,11,8e-4,1),new s(80,9,9,0,0,6.6,145,0,.95,0,0,8,7e-4,1),new s(96,9,9,0,2.5,6.6,145,0,.95,0,1,5.5,6e-4,1),new s(112,9,9,0,2.25,6.6,145,0,.95,0,2,4.5,5e-4,1),new s(128,9,9,0,1.95,6.4,140,0,.95,0,3,4,2e-4,1),new s(160,9,9,1,1.79,6,135,0,.95,-2,5,3.5,0,1),new s(192,9,9,1,1.49,5.6,125,0,.97,-4,7,3,0,0),new s(224,9,9,1,1.25,5.2,125,0,.98,-6,9,2,0,0),new s(256,9,9,1,.97,5.2,125,0,1,-8,10,1,0,0),new s(320,9,9,1,.9,5.2,125,0,1,-10,12,0,0,0)];function o(a,t,s){var n=t,r=e.nearestBitrateFullIndex(t);if(a.VBR=ha.vbr_abr,a.VBR_mean_bitrate_kbps=n,a.VBR_mean_bitrate_kbps=Math.min(a.VBR_mean_bitrate_kbps,320),a.VBR_mean_bitrate_kbps=Math.max(a.VBR_mean_bitrate_kbps,8),a.brate=a.VBR_mean_bitrate_kbps,a.VBR_mean_bitrate_kbps>320&&(a.disable_reservoir=!0),i[r].safejoint>0&&(a.exp_nspsytune=2|a.exp_nspsytune),i[r].sfscale>0&&(a.internal_flags.noise_shaping=2),Math.abs(i[r].nsbass)>0){var _=int(4*i[r].nsbass);_<0&&(_+=64),a.exp_nspsytune=a.exp_nspsytune|_<<2}return 0!=s?a.quant_comp=i[r].quant_comp:Math.abs(a.quant_comp- -1)>0||(a.quant_comp=i[r].quant_comp),0!=s?a.quant_comp_short=i[r].quant_comp_s:Math.abs(a.quant_comp_short- -1)>0||(a.quant_comp_short=i[r].quant_comp_s),0!=s?a.msfix=i[r].nsmsfix:Math.abs(a.msfix- -1)>0||(a.msfix=i[r].nsmsfix),0!=s?a.internal_flags.nsPsy.attackthre=i[r].st_lrm:Math.abs(a.internal_flags.nsPsy.attackthre- -1)>0||(a.internal_flags.nsPsy.attackthre=i[r].st_lrm),0!=s?a.internal_flags.nsPsy.attackthre_s=i[r].st_s:Math.abs(a.internal_flags.nsPsy.attackthre_s- -1)>0||(a.internal_flags.nsPsy.attackthre_s=i[r].st_s),0!=s?a.scale=i[r].scale:Math.abs(a.scale- -1)>0||(a.scale=i[r].scale),0!=s?a.maskingadjust=i[r].masking_adj:Math.abs(a.maskingadjust-0)>0||(a.maskingadjust=i[r].masking_adj),i[r].masking_adj>0?0!=s?a.maskingadjust_short=.9*i[r].masking_adj:Math.abs(a.maskingadjust_short-0)>0||(a.maskingadjust_short=.9*i[r].masking_adj):0!=s?a.maskingadjust_short=1.1*i[r].masking_adj:Math.abs(a.maskingadjust_short-0)>0||(a.maskingadjust_short=1.1*i[r].masking_adj),0!=s?a.ATHlower=-i[r].ath_lower/10:Math.abs(10*-a.ATHlower-0)>0||(a.ATHlower=-i[r].ath_lower/10),0!=s?a.ATHcurve=i[r].ath_curve:Math.abs(a.ATHcurve- -1)>0||(a.ATHcurve=i[r].ath_curve),0!=s?a.interChRatio=i[r].interch:Math.abs(a.interChRatio- -1)>0||(a.interChRatio=i[r].interch),t}this.apply_preset=function(e,t,s){switch(t){case a.R3MIX:t=a.V3,e.VBR=ha.vbr_mtrh;break;case a.MEDIUM:t=a.V4,e.VBR=ha.vbr_rh;break;case a.MEDIUM_FAST:t=a.V4,e.VBR=ha.vbr_mtrh;break;case a.STANDARD:t=a.V2,e.VBR=ha.vbr_rh;break;case a.STANDARD_FAST:t=a.V2,e.VBR=ha.vbr_mtrh;break;case a.EXTREME:t=a.V0,e.VBR=ha.vbr_rh;break;case a.EXTREME_FAST:t=a.V0,e.VBR=ha.vbr_mtrh;break;case a.INSANE:return t=320,e.preset=t,o(e,t,s),e.VBR=ha.vbr_off,t}switch(e.preset=t,t){case a.V9:return _(e,9,s),t;case a.V8:return _(e,8,s),t;case a.V7:return _(e,7,s),t;case a.V6:return _(e,6,s),t;case a.V5:return _(e,5,s),t;case a.V4:return _(e,4,s),t;case a.V3:return _(e,3,s),t;case a.V2:return _(e,2,s),t;case a.V1:return _(e,1,s),t;case a.V0:return _(e,0,s),t}return 8<=t&&t<=320?o(e,t,s):(e.preset=0,t)}},Wa=Le,Ja=oa(),$a=function Ha(){var e,a,t;this.rv=null,this.qupvt=null;var s,n=new Ea;function r(e){this.ordinal=e}function _(e){for(var a=0;a0?(r=t.over_SSD<=a.over_SSD,t.over_SSD==a.over_SSD&&(r=t.bits.2||t.max_noise<=0&&a.max_noise<0&&a.max_noise>t.max_noise-.2&&t.tot_noise0&&a.max_noise>t.max_noise-.2&&t.tot_noise0&&a.max_noise>-.05&&a.max_noise>t.max_noise-.1&&t.tot_noise+t.over_noise0&&a.max_noise>-.1&&a.max_noise>t.max_noise-.15&&t.tot_noise+t.over_noise+t.over_noise1?i=Math.pow(i,.5):i*=.95;break;default:i>1?i=1:i*=.95}var f=0;for(o=0;oa.xrpow_max&&(a.xrpow_max=s[f+c]);if(2==_.noise_shaping_amp)return}}}(e,a,n,r,i);var l=_(a);return!(l||(l=2==o.mode_gr?s.scale_bitcount(a):s.scale_bitcount_lsf(o,a))&&(o.noise_shaping>1&&(Ba.fill(o.pseudohalf,0),0==a.scalefac_scale?(function(e,a){for(var s=0,n=0;ne.xrpow_max&&(e.xrpow_max=a[s+i])}e.scalefac[n]=_>>1}e.preflag=0,e.scalefac_scale=1}(a,r),l=!1):a.block_type==xa.SHORT_TYPE&&o.subblock_gain>0&&(l=function(e,a,s){var n,r=a.scalefac;for(n=0;n=16)return!0;for(var _=0;_<3;_++){var i=0,o=0;for(n=a.sfb_lmax+_;n=7)return!0;a.subblock_gain[_]++;var l=e.scalefac_band.l[a.sfb_lmax];for(n=a.sfb_lmax+_;n>a.scalefac_scale)>=0)r[n]=c,l+=3*f;else{r[n]=0;var h=210+(c<a.xrpow_max&&(a.xrpow_max=s[l+u]);l+=f*(3-_-1)}}var b=t.IPOW20(202);for(l+=a.width[n]*(_+1),u=-a.width[n];u<0;u++)s[l+u]*=b,s[l+u]>a.xrpow_max&&(a.xrpow_max=s[l+u])}}return!1}(o,a,r)||_(a))),l||(l=2==o.mode_gr?s.scale_bitcount(a):s.scale_bitcount_lsf(o,a)),l))}this.setModules=function(r,_,i,o){e=r,a=_,this.rv=_,t=i,this.qupvt=i,s=o,n.setModules(t,s)},this.ms_convert=function(e,a){for(var t=0;t<576;++t){var s=e.tt[a][0].xr[t],n=e.tt[a][1].xr[t];e.tt[a][0].xr[t]=(s+n)*(.5*Ma.SQRT2),e.tt[a][1].xr[t]=(s-n)*(.5*Ma.SQRT2)}},this.init_xrpow=function(e,a,t){var s=0,n=0|a.max_nonzero_coeff;if(a.xrpow_max=0,Ba.fill(t,n,576,0),s=function(e,a,t,s){s=0;for(var n=0;n<=t;++n){var r=Math.abs(e.xr[n]);s+=r,a[n]=Math.sqrt(r*Math.sqrt(r)),a[n]>e.xrpow_max&&(e.xrpow_max=a[n])}return s}(a,t,n,s),s>1e-20){var r=0;2&e.substep_shaping&&(r=1);for(var _=0;_=0&&!r;_--){var i=e.scalefac_band.psfb21[_],o=e.scalefac_band.psfb21[_+1],l=t.athAdjust(s.adjust,s.psfb21[_],s.floor);e.nsPsy.longfact[21]>1e-12&&(l*=e.nsPsy.longfact[21]);for(var f=o-1;f>=i;f--){if(!(Math.abs(n[f])=0&&!r;_--){o=(i=3*e.scalefac_band.s[12]+(e.scalefac_band.s[13]-e.scalefac_band.s[12])*c+(e.scalefac_band.psfb12[_]-e.scalefac_band.psfb12[0]))+(e.scalefac_band.psfb12[_+1]-e.scalefac_band.psfb12[_]);var h=t.athAdjust(s.adjust,s.psfb12[_],s.floor);for(e.nsPsy.shortfact[12]>1e-12&&(h*=e.nsPsy.shortfact[12]),f=o-1;f>=i;f--){if(!(Math.abs(n[f])=1||(Ba.sort(r,i-b,b),BitStream.EQ(r[i-1],0)))){f=(1-_[l])*n[l],c=0,u=0;do{var m;for(h=1;u+h0)}}while(++lt?(c==r.BINSEARCH_DOWN&&(l=!0),l&&(o/=2),c=r.BINSEARCH_UP,h=o):(c==r.BINSEARCH_UP&&(l=!0),l&&(o/=2),c=r.BINSEARCH_DOWN,h=-o),a.global_gain+=h,a.global_gain<0&&(a.global_gain=0,l=!0),a.global_gain>255&&(a.global_gain=255,l=!0)}for(Ta(a.global_gain>=0),Ta(a.global_gain<256);i>t&&a.global_gain<255;)a.global_gain++,i=s.count_bits(e,_,a,null);e.CurrentStep[n]=f-a.global_gain>=4?4:2,e.OldValue[n]=a.global_gain,a.part2_3_length=i}(c,a,f,l,_),0==c.noise_shaping)return 100;t.calc_noise(a,n,b,m,p),m.bits=a.part2_3_length,h.assign(a);var R=0;for(Ra.arraycopy(_,0,u,0,576);!d;){do{var A,M=new ka,B=255;if(A=2&c.substep_shaping?20:3,c.sfb21_extra){if(b[h.sfbmax]>1)break;if(h.block_type==xa.SHORT_TYPE&&(b[h.sfbmax+1]>1||b[h.sfbmax+2]>1))break}if(!o(e,h,b,_,g))break;0!=h.scalefac_scale&&(B=254);var w=f-h.part2_length;if(w<=0)break;for(;(h.part2_3_length=s.count_bits(c,_,h,p))>w&&h.global_gain<=B;)h.global_gain++;if(h.global_gain>B)break;if(0==m.over_count){for(;(h.part2_3_length=s.count_bits(c,_,h,p))>v&&h.global_gain<=B;)h.global_gain++;if(h.global_gain>B)break}if(t.calc_noise(h,n,b,M,p),M.bits=h.part2_3_length,0!=(i(a.block_type!=xa.SHORT_TYPE?e.quant_comp:e.quant_comp_short,m,M,h,b)?1:0))v=a.part2_3_length,m=M,a.assign(h),R=0,Ra.arraycopy(_,0,u,0,576);else if(0==c.full_outer_loop){if(++R>A&&0==m.over_count)break;if(3==c.noise_shaping_amp&&g&&R>30)break;if(3==c.noise_shaping_amp&&g&&h.global_gain-S>15)break}}while(h.global_gain+h.scalefac_scale<255);3==c.noise_shaping_amp?g?d=!0:(h.assign(a),Ra.arraycopy(u,0,_,0,576),R=0,S=h.global_gain,g=!0):d=!0}return Ta(a.global_gain+a.scalefac_scale<=255),e.VBR==Aa.vbr_rh||e.VBR==Aa.vbr_mtrh?Ra.arraycopy(u,0,_,0,576):!!(1&c.substep_shaping)&&trancate_smallspectrums(c,a,n,_),m.over_count},this.iteration_finish_one=function(e,t,n){var r=e.l3_side,_=r.tt[t][n];s.best_scalefac_store(e,t,n,r),1==e.use_best_huffman&&s.best_huffman_divide(e,_),a.ResvAdjust(e,_)},this.VBR_encode_granule=function(e,a,t,s,n,r,_){var i,o=e.internal_flags,l=new Pa,f=wa(576),c=_,h=_+1,u=(_+r)/2,b=0,m=o.sfb21_extra;Ta(c<=LameInternalFlags.MAX_BITS_PER_CHANNEL),Ba.fill(l.l3_enc,0);do{o.sfb21_extra=!(u>c-42)&&m,outer_loop(e,a,t,s,n,u)<=0?(b=1,h=a.part2_3_length,l.assign(a),Ra.arraycopy(s,0,f,0,576),i=(_=h-32)-r,u=(_+r)/2):(i=_-(r=u+32),u=(_+r)/2,0!=b&&(b=2,a.assign(l),Ra.arraycopy(f,0,s,0,576)))}while(i>12);o.sfb21_extra=m,2==b&&Ra.arraycopy(l.l3_enc,0,a.l3_enc,0,576),Ta(a.part2_3_length<=c)},this.get_framebits=function(t,s){var n=t.internal_flags;n.bitrate_index=n.VBR_min_bitrate;var r=e.getframebits(t);n.bitrate_index=1,r=e.getframebits(t);for(var _=1;_<=n.VBR_max_bitrate;_++){n.bitrate_index=_;var i=new MeanBits(r);s[_]=a.ResvFrameBegin(t,i),r=i.bits}},this.VBR_old_prepare=function(e,s,n,r,_,i,o,l,f){var c,h=e.internal_flags,u=0,b=1,m=0;h.bitrate_index=h.VBR_max_bitrate;var p=a.ResvFrameBegin(e,new MeanBits(0))/h.mode_gr;get_framebits(e,i);for(var v=0;vi[h.VBR_max_bitrate]&&(l[v][g]*=i[h.VBR_max_bitrate],l[v][g]/=m),o[v][g]>l[v][g]&&(o[v][g]=l[v][g]);return b},this.bitpressure_strategy=function(e,a,t,s){for(var n=0;no&&(i[b][m]*=o,i[b][m]/=h);return f},this.calc_target_bits=function(s,n,r,_,i,o){var l,f,c,h,u=s.internal_flags,b=u.l3_side,m=0;u.bitrate_index=u.VBR_max_bitrate;var p=new MeanBits(m);for(o[0]=a.ResvFrameBegin(s,p),m=p.bits,u.bitrate_index=1,m=e.getframebits(s)-8*u.sideinfo_len,i[0]=m/(u.mode_gr*u.channels_out),m=s.VBR_mean_bitrate_kbps*s.framesize*1e3,!!(1&u.substep_shaping)&&(m*=1.09),m/=s.out_samplerate,m-=8*u.sideinfo_len,m/=u.mode_gr*u.channels_out,(l=.93+.07*(11-s.compression_ratio)/5.5)<.9&&(l=.9),l>1&&(l=1),f=0;f700){var d=int((n[f][c]-700)/1.4),g=b.tt[f][c];_[f][c]=int(l*m),g.block_type==xa.SHORT_TYPE&&d3*m/2?d=3*m/2:d<0&&(d=0),_[f][c]+=d}_[f][c]>LameInternalFlags.MAX_BITS_PER_CHANNEL&&(_[f][c]=LameInternalFlags.MAX_BITS_PER_CHANNEL),v+=_[f][c]}if(v>LameInternalFlags.MAX_BITS_PER_GRANULE)for(c=0;cLameInternalFlags.MAX_BITS_PER_CHANNEL&&(_[f][c]=LameInternalFlags.MAX_BITS_PER_CHANNEL),h+=_[f][c];if(h>o[0])for(f=0;f320?s=8*int(1e3*a.brate/(a.out_samplerate/1152)/8+.5):(s=11520,a.strict_ISO&&(s=8*int(32e4/(a.out_samplerate/1152)/8+.5))),n.ResvMax=s-_,n.ResvMax>i&&(n.ResvMax=i),(n.ResvMax<0||a.disable_reservoir)&&(n.ResvMax=0);var o=t.bits*n.mode_gr+Math.min(n.ResvSize,n.ResvMax);return o>s&&(o=s),Va(0==n.ResvMax%8),Va(n.ResvMax>=0),r.resvDrain_pre=0,null!=n.pinfo&&(n.pinfo.mean_bits=t.bits/2,n.pinfo.resvsize=n.ResvSize),o},this.ResvMaxBits=function(e,a,t,s){var n,r=e.internal_flags,_=r.ResvSize,i=r.ResvMax;0!=s&&(_+=a),!!(1&r.substep_shaping)&&(i*=.9),t.bits=a,10*_>9*i?(n=_-9*i/10,t.bits+=n,r.substep_shaping|=128):(n=0,r.substep_shaping&=127,e.disable_reservoir||1&r.substep_shaping||(t.bits-=.1*a));var o=_<6*r.ResvMax/10?_:6*r.ResvMax/10;return(o-=n)<0&&(o=0),o},this.ResvAdjust=function(e,a){e.ResvSize-=a.part2_3_length+a.part2_length},this.ResvFrameEnd=function(e,a){var t,s=e.l3_side;e.ResvSize+=a*e.mode_gr;var n=0;s.resvDrain_post=0,s.resvDrain_pre=0,0!=(t=e.ResvSize%8)&&(n+=t),(t=e.ResvSize-n-e.ResvMax)>0&&(n+=t);var r=Math.min(8*s.main_data_begin,n)/8;s.resvDrain_pre+=8*r,n-=8*r,e.ResvSize-=8*r,s.main_data_begin-=r,s.resvDrain_post+=n,e.ResvSize-=n}},tt=R,st=fa();A();var nt=function Na(){this.getLameVersion=function(){return"3.98.4"},this.getLameShortVersion=function(){return"3.98.4"},this.getLameVeryShortVersion=function(){return"LAME3.98r"},this.getPsyVersion=function(){return"0.93"},this.getLameUrl=function(){return"http://www.mp3dev.org/"},this.getLameOsBitness=function(){return"32bits"}},rt=Ga;function _t(){this.setModules=function(e,a){}}function it(){this.setModules=function(e,a,t){}}function ot(){}function lt(){this.setModules=function(e,a){}}function ft(){this.dataOffset=0,this.dataLen=0,this.channels=0,this.sampleRate=0}function ct(e){return e.charCodeAt(0)<<24|e.charCodeAt(1)<<16|e.charCodeAt(2)<<8|e.charCodeAt(3)}ft.RIFF=ct("RIFF"),ft.WAVE=ct("WAVE"),ft.fmt_=ct("fmt "),ft.data=ct("data"),ft.readHeader=function(e){var a=new ft,t=e.getUint32(0,!1);if(ft.RIFF==t&&(e.getUint32(4,!0),ft.WAVE==e.getUint32(8,!1)&&ft.fmt_==e.getUint32(12,!1))){var s=e.getUint32(16,!0),n=20;switch(s){case 16:case 18:a.channels=e.getUint16(n+2,!0),a.sampleRate=e.getUint32(n+4,!0);break;default:throw"extended fmt chunk not implemented"}n+=s;for(var r=ft.data,_=0;r!=t&&(t=e.getUint32(n,!1),_=e.getUint32(n+4,!0),r!=t);)n+=_+8;return a.dataLen=_,a.dataOffset=n+8,a}};var ht=e.Mp3Encoder=function(e,a,t){3!=arguments.length&&(console.error("WARN: Mp3Encoder(channels, samplerate, kbps) not specified"),e=1,a=44100,t=128);var s=new Ua,n=new _t,r=new Wa,_=new st,i=new Qa,o=new Ja,l=new $a,f=new rt,c=new nt,h=new lt,u=new at,b=new et,m=new it,p=new ot;s.setModules(r,_,i,o,l,f,c,h,p),_.setModules(r,p,c,f),h.setModules(_,c),i.setModules(s),l.setModules(_,u,o,b),o.setModules(b,u,s.enc.psy),u.setModules(_),b.setModules(o),f.setModules(s,_,c),n.setModules(m,p),m.setModules(c,h,i);var v=s.lame_init();v.num_channels=e,v.in_samplerate=a,v.brate=t,v.mode=tt.STEREO,v.quality=3,v.bWriteVbrTag=!1,v.disable_reservoir=!0,v.write_id3tag_automatic=!1,s.lame_init_params(v);var d=1152,g=0|1.25*d+7200,S=Ka(g);this.encodeBuffer=function(a,t){1==e&&(t=a),Za(a.length==t.length),a.length>d&&(d=a.length,S=Ka(g=0|1.25*d+7200));var n=s.lame_encode_buffer(v,a,t,a.length,S,0,g);return new Int8Array(S.subarray(0,n))},this.flush=function(){var e=s.lame_encode_flush(v,S,0,g);return new Int8Array(S.subarray(0,e))}},ut=e.WavHeader=ft;function encodeMp3(arrayBuffer){var wav=ut.readHeader(new DataView(arrayBuffer)),dataView=new Int16Array(arrayBuffer,wav.dataOffset,wav.dataLen/2),mp3Encoder=new ht(wav.channels,wav.sampleRate,128),samplesLeft=1===wav.channels?dataView:new Int16Array(wav.dataLen/(2*wav.channels)),samplesRight=2===wav.channels?new Int16Array(wav.dataLen/(2*wav.channels)):void 0;if(wav.channels>1)for(var j=0;j=1152;i+=1152){var left=samplesLeft.subarray(i,i+1152),right=void 0;samplesRight&&(right=samplesRight.subarray(i,i+1152));var mp3buf=mp3Encoder.encodeBuffer(left,right);dataBuffer.push(new Int8Array(mp3buf)),remaining-=1152}var mp3Lastbuf=mp3Encoder.flush();return dataBuffer.push(new Int8Array(mp3Lastbuf)),dataBuffer}function downsampleToWav(file,callback){var audioCtx=new AudioContext({sampleRate:consts.s}),fileReader=new FileReader;fileReader.onload=function(ev){audioCtx.decodeAudioData(ev.target.result,(function(buffer){var usingWebkit=!window.OfflineAudioContext,offlineAudioCtx=new OfflineAudioContext(1,16e3*buffer.duration,16e3),soundSource=offlineAudioCtx.createBufferSource();soundSource.buffer=buffer,soundSource.connect(offlineAudioCtx.destination);var reader=new FileReader;reader.onload=function(){var renderCompleteHandler=function renderCompleteHandler(evt){var renderedBuffer=usingWebkit?evt.renderedBuffer:evt,buffer=function bufferToWav(abuffer,len){var sample,numOfChan=abuffer.numberOfChannels,length=len*numOfChan*2+44,buffer=new ArrayBuffer(length),view=new DataView(buffer),channels=[],i=0,offset=0,pos=0;for(setUint32(1179011410),setUint32(length-8),setUint32(1163280727),setUint32(544501094),setUint32(16),setUint16(1),setUint16(numOfChan),setUint32(abuffer.sampleRate),setUint32(2*abuffer.sampleRate*numOfChan),setUint16(2*numOfChan),setUint16(16),setUint32(1635017060),setUint32(length-pos-4),i=0;i=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function e(_e217){throw _e217},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var err,normalCompletion=!0,didErr=!1;return{s:function s(){it=it.call(o)},n:function n(){var step=it.next();return normalCompletion=step.done,step},e:function e(_e218){didErr=!0,err=_e218},f:function f(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throw err}}}}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=t.$TAB&&e<=t.$SPACE||e==t.$NBSP},t.isDigit=r,t.isAsciiLetter=function(e){return e>=t.$a&&e<=t.$z||e>=t.$A&&e<=t.$Z},t.isAsciiHexDigit=function(e){return e>=t.$a&&e<=t.$f||e>=t.$A&&e<=t.$F||r(e)},t.isNewLine=function(e){return e===t.$LF||e===t.$CR},t.isOctalDigit=function(e){return t.$0<=e&&e<=t.$7}})),n=function(){function n(e,t,r){_classCallCheck(this,n),this.filePath=e,this.name=t,this.members=r}return _createClass(n,[{key:"assertNoMembers",value:function assertNoMembers(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got ".concat(JSON.stringify(this),"."))}}]),n}(),s=n,i=function(){function i(){_classCallCheck(this,i),this.cache=new Map}return _createClass(i,[{key:"get",value:function get(e,t,r){var s=(r=r||[]).length?".".concat(r.join(".")):"",_i2='"'.concat(e,'".').concat(t).concat(s),o=this.cache.get(_i2);return o||(o=new n(e,t,r),this.cache.set(_i2,o)),o}}]),i}(),o=Object.defineProperty({StaticSymbol:s,StaticSymbolCache:i},"__esModule",{value:!0}),a=/-+([a-z0-9])/g,u=function u(e){return e.replace(a,(function(){for(var _len=arguments.length,e=new Array(_len),_key=0;_key<_len;_key++)e[_key]=arguments[_key];return e[1].toUpperCase()}))},c=function c(e,t){return D(e,":",t)},l=function l(e,t){return D(e,".",t)};function D(e,t,r){var n=e.indexOf(t);return-1==n?r:[e.slice(0,n).trim(),e.slice(n+1).trim()]}function p(e,t,r){return Array.isArray(e)?t.visitArray(e,r):"object"==_typeof(n=e)&&null!==n&&Object.getPrototypeOf(n)===v?t.visitStringMap(e,r):null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e?t.visitPrimitive(e,r):t.visitOther(e,r);var n}var h=p,d=function d(e){return null!=e},m=function m(e){return void 0===e?null:e},f=function(){function f(){_classCallCheck(this,f)}return _createClass(f,[{key:"visitArray",value:function visitArray(e,t){var _this=this;return e.map((function(e){return p(e,_this,t)}))}},{key:"visitStringMap",value:function visitStringMap(e,t){var _this2=this,r={};return Object.keys(e).forEach((function(n){r[n]=p(e[n],_this2,t)})),r}},{key:"visitPrimitive",value:function visitPrimitive(e,t){return e}},{key:"visitOther",value:function visitOther(e,t){return e}}]),f}(),g={assertSync:function assertSync(e){if(N(e))throw new Error("Illegal state: value cannot be a promise");return e},then:function then(e,t){return N(e)?e.then(t):t(e)},all:function all(e){return e.some(N)?Promise.all(e):e}},E=function E(e){throw new Error("Internal Error: ".concat(e))},C=function C(e,t){var r=Error(e);return r[T]=!0,t&&(r[_]=t),r},T="ngSyntaxError",_="ngParseErrors",S=function S(e){return e[T]},y=function y(e){return e[_]||[]},F=function F(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")},v=Object.getPrototypeOf({}),A=function A(e){for(var t="",_r2=0;_r2=55296&&_n2<=56319&&e.length>_r2+1){var _t2=e.charCodeAt(_r2+1);_t2>=56320&&_t2<=57343&&(_r2++,_n2=(_n2-55296<<10)+_t2-56320+65536)}_n2<=127?t+=String.fromCharCode(_n2):_n2<=2047?t+=String.fromCharCode(_n2>>6&31|192,63&_n2|128):_n2<=65535?t+=String.fromCharCode(_n2>>12|224,_n2>>6&63|128,63&_n2|128):_n2<=2097151&&(t+=String.fromCharCode(_n2>>18&7|240,_n2>>12&63|128,_n2>>6&63|128,63&_n2|128))}return t},b=function e(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(e).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);if(!t.toString)return"object";var r=t.toString();if(null==r)return""+r;var n=r.indexOf("\n");return-1===n?r:r.substring(0,n)},w=function w(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")?e():e};function N(e){return!!e&&"function"==typeof e.then}var k=N,x=_createClass((function x(e){_classCallCheck(this,x),this.full=e;var t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")})),I="undefined"!=typeof window&&window,P="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,R=void 0!==e&&e||I||P,O=Object.defineProperty({dashCaseToCamelCase:u,splitAtColon:c,splitAtPeriod:l,visitValue:h,isDefined:d,noUndefined:m,ValueTransformer:f,SyncAsync:g,error:E,syntaxError:C,isSyntaxError:S,getParseErrors:y,escapeRegExp:F,utf8Encode:A,stringify:b,resolveForwardRef:w,isPromise:k,Version:x,global:R},"__esModule",{value:!0}),L=t((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function n(e){return e.replace(/\W/g,"_")}t.sanitizeIdentifier=n;var a,s=0;function i(e){if(!e||!e.reference)return null;var t=e.reference;if(t instanceof o.StaticSymbol)return t.name;if(t.__anonymousType)return t.__anonymousType;var r=O.stringify(t);return r.indexOf("(")>=0?(r="anonymous_".concat(s++),t.__anonymousType=r):r=n(r),r}t.identifierName=i,t.identifierModuleUrl=function(e){var t=e.reference;return t instanceof o.StaticSymbol?t.filePath:"./".concat(O.stringify(t))},t.viewClassName=function(e,t){return"View_".concat(i({reference:e}),"_").concat(t)},t.rendererTypeName=function(e){return"RenderType_".concat(i({reference:e}))},t.hostViewClassName=function(e){return"HostView_".concat(i({reference:e}))},t.componentFactoryName=function(e){return"".concat(i({reference:e}),"NgFactory")},function(e){e[e.Pipe=0]="Pipe",e[e.Directive=1]="Directive",e[e.NgModule=2]="NgModule",e[e.Injectable=3]="Injectable"}(a=t.CompileSummaryKind||(t.CompileSummaryKind={})),t.tokenName=function(e){return null!=e.value?n(e.value):i(e.identifier)},t.tokenReference=function(e){return null!=e.identifier?e.identifier.reference:e.value},t.CompileStylesheetMetadata=function(){function _class(){var _ref=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=_ref.moduleUrl,t=_ref.styles,r=_ref.styleUrls;_classCallCheck(this,_class),this.moduleUrl=e||null,this.styles=c(t),this.styleUrls=c(r)}return _createClass(_class)}(),t.CompileTemplateMetadata=function(){function _class2(_ref2){var e=_ref2.encapsulation,t=_ref2.template,r=_ref2.templateUrl,n=_ref2.htmlAst,s=_ref2.styles,i=_ref2.styleUrls,o=_ref2.externalStylesheets,a=_ref2.animations,u=_ref2.ngContentSelectors,D=_ref2.interpolation,p=_ref2.isInline,h=_ref2.preserveWhitespaces;if(_classCallCheck(this,_class2),this.encapsulation=e,this.template=t,this.templateUrl=r,this.htmlAst=n,this.styles=c(s),this.styleUrls=c(i),this.externalStylesheets=c(o),this.animations=a?l(a):[],this.ngContentSelectors=u||[],D&&2!=D.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=D,this.isInline=p,this.preserveWhitespaces=h}return _createClass(_class2,[{key:"toSummary",value:function toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}}]),_class2}();var u=function(){function u(_ref3){var e=_ref3.isHost,t=_ref3.type,r=_ref3.isComponent,n=_ref3.selector,s=_ref3.exportAs,i=_ref3.changeDetection,o=_ref3.inputs,a=_ref3.outputs,_u2=_ref3.hostListeners,l=_ref3.hostProperties,D=_ref3.hostAttributes,p=_ref3.providers,h=_ref3.viewProviders,d=_ref3.queries,m=_ref3.guards,f=_ref3.viewQueries,g=_ref3.entryComponents,E=_ref3.template,C=_ref3.componentViewType,T=_ref3.rendererType,_=_ref3.componentFactory;_classCallCheck(this,u),this.isHost=!!e,this.type=t,this.isComponent=r,this.selector=n,this.exportAs=s,this.changeDetection=i,this.inputs=o,this.outputs=a,this.hostListeners=_u2,this.hostProperties=l,this.hostAttributes=D,this.providers=c(p),this.viewProviders=c(h),this.queries=c(d),this.guards=m,this.viewQueries=c(f),this.entryComponents=c(g),this.template=E,this.componentViewType=C,this.rendererType=T,this.componentFactory=_}return _createClass(u,[{key:"toSummary",value:function toSummary(){return{summaryKind:a.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}}],[{key:"create",value:function create(_ref4){var e=_ref4.isHost,t=_ref4.type,n=_ref4.isComponent,s=_ref4.selector,i=_ref4.exportAs,o=_ref4.changeDetection,a=_ref4.inputs,c=_ref4.outputs,l=_ref4.host,D=_ref4.providers,p=_ref4.viewProviders,h=_ref4.queries,d=_ref4.guards,m=_ref4.viewQueries,f=_ref4.entryComponents,g=_ref4.template,E=_ref4.componentViewType,C=_ref4.rendererType,T=_ref4.componentFactory,_={},S={},y={};null!=l&&Object.keys(l).forEach((function(e){var t=l[e],n=e.match(r);null===n?y[e]=t:null!=n[1]?S[n[1]]=t:null!=n[2]&&(_[n[2]]=t)}));var F={};null!=a&&a.forEach((function(e){var t=O.splitAtColon(e,[e,e]);F[t[0]]=t[1]}));var v={};return null!=c&&c.forEach((function(e){var t=O.splitAtColon(e,[e,e]);v[t[0]]=t[1]})),new u({isHost:e,type:t,isComponent:!!n,selector:s,exportAs:i,changeDetection:o,inputs:F,outputs:v,hostListeners:_,hostProperties:S,hostAttributes:y,providers:D,viewProviders:p,queries:h,guards:d,viewQueries:m,entryComponents:f,template:g,componentViewType:E,rendererType:C,componentFactory:T})}}]),u}();function c(e){return e||[]}function l(e){return e.reduce((function(e,t){var r=Array.isArray(t)?l(t):t;return e.concat(r)}),[])}function D(e){return e.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}t.CompileDirectiveMetadata=u,t.CompilePipeMetadata=function(){function _class3(_ref5){var e=_ref5.type,t=_ref5.name,r=_ref5.pure;_classCallCheck(this,_class3),this.type=e,this.name=t,this.pure=!!r}return _createClass(_class3,[{key:"toSummary",value:function toSummary(){return{summaryKind:a.Pipe,type:this.type,name:this.name,pure:this.pure}}}]),_class3}(),t.CompileShallowModuleMetadata=function(){function _class4(){_classCallCheck(this,_class4)}return _createClass(_class4)}(),t.CompileNgModuleMetadata=function(){function _class5(_ref6){var e=_ref6.type,t=_ref6.providers,r=_ref6.declaredDirectives,n=_ref6.exportedDirectives,s=_ref6.declaredPipes,i=_ref6.exportedPipes,o=_ref6.entryComponents,a=_ref6.bootstrapComponents,u=_ref6.importedModules,l=_ref6.exportedModules,D=_ref6.schemas,p=_ref6.transitiveModule,h=_ref6.id;_classCallCheck(this,_class5),this.type=e||null,this.declaredDirectives=c(r),this.exportedDirectives=c(n),this.declaredPipes=c(s),this.exportedPipes=c(i),this.providers=c(t),this.entryComponents=c(o),this.bootstrapComponents=c(a),this.importedModules=c(u),this.exportedModules=c(l),this.schemas=c(D),this.id=h||null,this.transitiveModule=p||null}return _createClass(_class5,[{key:"toSummary",value:function toSummary(){var e=this.transitiveModule;return{summaryKind:a.NgModule,type:this.type,entryComponents:e.entryComponents,providers:e.providers,modules:e.modules,exportedDirectives:e.exportedDirectives,exportedPipes:e.exportedPipes}}}]),_class5}(),t.TransitiveCompileNgModuleMetadata=function(){function _class6(){_classCallCheck(this,_class6),this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return _createClass(_class6,[{key:"addProvider",value:function addProvider(e,t){this.providers.push({provider:e,module:t})}},{key:"addDirective",value:function addDirective(e){this.directivesSet.has(e.reference)||(this.directivesSet.add(e.reference),this.directives.push(e))}},{key:"addExportedDirective",value:function addExportedDirective(e){this.exportedDirectivesSet.has(e.reference)||(this.exportedDirectivesSet.add(e.reference),this.exportedDirectives.push(e))}},{key:"addPipe",value:function addPipe(e){this.pipesSet.has(e.reference)||(this.pipesSet.add(e.reference),this.pipes.push(e))}},{key:"addExportedPipe",value:function addExportedPipe(e){this.exportedPipesSet.has(e.reference)||(this.exportedPipesSet.add(e.reference),this.exportedPipes.push(e))}},{key:"addModule",value:function addModule(e){this.modulesSet.has(e.reference)||(this.modulesSet.add(e.reference),this.modules.push(e))}},{key:"addEntryComponent",value:function addEntryComponent(e){this.entryComponentsSet.has(e.componentType)||(this.entryComponentsSet.add(e.componentType),this.entryComponents.push(e))}}]),_class6}(),t.ProviderMeta=function(){function _class7(e,_ref7){var t=_ref7.useClass,r=_ref7.useValue,n=_ref7.useExisting,s=_ref7.useFactory,i=_ref7.deps,o=_ref7.multi;_classCallCheck(this,_class7),this.token=e,this.useClass=t||null,this.useValue=r,this.useExisting=n,this.useFactory=s||null,this.dependencies=i||null,this.multi=!!o}return _createClass(_class7)}(),t.flatten=l,t.templateSourceUrl=function(e,t,r){var n;return n=r.isInline?t.type.reference instanceof o.StaticSymbol?"".concat(t.type.reference.filePath,".").concat(t.type.reference.name,".html"):"".concat(i(e),"/").concat(i(t.type),".html"):r.templateUrl,t.type.reference instanceof o.StaticSymbol?n:D(n)},t.sharedStylesheetJitUrl=function(e,t){var r=e.moduleUrl.split(/\/\\/g),n=r[r.length-1];return D("css/".concat(t).concat(n,".ngstyle.js"))},t.ngModuleJitUrl=function(e){return D("".concat(i(e.type),"/module.ngfactory.js"))},t.templateJitUrl=function(e,t){return D("".concat(i(e),"/").concat(i(t.type),".ngfactory.js"))}})),B=t((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function n(e,t,r,_n3){_classCallCheck(this,n),this.file=e,this.offset=t,this.line=r,this.col=_n3}return _createClass(n,[{key:"toString",value:function toString(){return null!=this.offset?"".concat(this.file.url,"@").concat(this.line,":").concat(this.col):this.file.url}},{key:"moveBy",value:function moveBy(e){for(var t=this.file.content,s=t.length,i=this.offset,o=this.line,a=this.col;i>0&&e<0;)if(i--,e++,t.charCodeAt(i)==r.$LF){o--;var _e2=t.substr(0,i-1).lastIndexOf(String.fromCharCode(r.$LF));a=_e2>0?i-_e2:i}else a--;for(;i0;){var _n6=t.charCodeAt(i);i++,e--,_n6==r.$LF?(o++,a=0):a++}return new n(this.file,i,o,a)}},{key:"getContext",value:function getContext(e,t){var r=this.file.content,_n5=this.offset;if(null!=_n5){_n5>r.length-1&&(_n5=r.length-1);for(var _s2=_n5,_i3=0,_o2=0;_i30&&(_i3++,"\n"!=r[--_n5]||++_o2!=t););for(_i3=0,_o2=0;_i32&&void 0!==arguments[2]?arguments[2]:null;_classCallCheck(this,i),this.start=e,this.end=t,this.details=r}return _createClass(i,[{key:"toString",value:function toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}}]),i}();t.ParseSourceSpan=i,t.EMPTY_PARSE_LOCATION=new n(new s("",""),0,0,0),t.EMPTY_SOURCE_SPAN=new i(t.EMPTY_PARSE_LOCATION,t.EMPTY_PARSE_LOCATION),function(e){e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR"}(o=t.ParseErrorLevel||(t.ParseErrorLevel={})),t.ParseError=function(){function _class8(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.ERROR;_classCallCheck(this,_class8),this.span=e,this.msg=t,this.level=r}return _createClass(_class8,[{key:"contextualMessage",value:function contextualMessage(){var e=this.span.start.getContext(100,3);return e?"".concat(this.msg,' ("').concat(e.before,"[").concat(o[this.level]," ->]").concat(e.after,'")'):this.msg}},{key:"toString",value:function toString(){var e=this.span.details?", ".concat(this.span.details):"";return"".concat(this.contextualMessage(),": ").concat(this.span.start).concat(e)}}]),_class8}(),t.typeSourceSpan=function(e,t){var r=L.identifierModuleUrl(t),o=null!=r?"in ".concat(e," ").concat(L.identifierName(t)," in ").concat(r):"in ".concat(e," ").concat(L.identifierName(t)),a=new s("",o);return new i(new n(a,-1,-1,-1),new n(a,-1,-1,-1))},t.r3JitTypeSourceSpan=function(e,t,r){var o="in ".concat(e," ").concat(t," in ").concat(r),a=new s("",o);return new i(new n(a,-1,-1,-1),new n(a,-1,-1,-1))}})),q=new RegExp("^(?-{3}|\\+{3})(?[^\\n]*)\\n(?:|(?[\\S\\s]*?)\\n)(?\\k|\\.{3})[^\\S\\n]*(?:\\n|$)"),$=function $(e){var t=e.match(q);if(!t)return{content:e};var _t$groups=t.groups,r=_t$groups.startDelimiter,n=_t$groups.language,_t$groups$value=_t$groups.value,s=void 0===_t$groups$value?"":_t$groups$value,i=_t$groups.endDelimiter,o=n.trim()||"yaml";if("+++"===r&&(o="toml"),"yaml"!==o&&r!==i)return{content:e};var a=_slicedToArray(t,1)[0];return{frontMatter:{type:"front-matter",lang:o,value:s,startDelimiter:r,endDelimiter:i,raw:a.replace(/\n$/,"")},content:a.replace(/[^\n]/g," ")+e.slice(a.length)}},M=function M(e){return e[e.length-1]},U=function U(e,t){var r=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return r.loc=t,r},V=function V(e){return"string"==typeof e?e.replace(function(){var _ref8$onlyFirst=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).onlyFirst,e=void 0!==_ref8$onlyFirst&&_ref8$onlyFirst,t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}(),""):e},G=function G(e){return!Number.isNaN(e)&&e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)},j=G,X=G;j.default=X;var H=function H(e){if("string"!=typeof e||0===e.length)return 0;if(0===(e=V(e)).length)return 0;e=e.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g," ");for(var t=0,_r3=0;_r3=127&&_n7<=159||_n7>=768&&_n7<=879||(_n7>65535&&_r3++,t+=j(_n7)?2:1)}return t},z=H,W=H;z.default=W;var Y=function Y(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};function Q(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var J=function J(e){for(var t=-1,r=null==e?0:e.length,n={};++t1)for(var r=1;r)?=?)"),a("XRANGEIDENTIFIERLOOSE","".concat(s[i.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),a("XRANGEIDENTIFIER","".concat(s[i.NUMERICIDENTIFIER],"|x|X|\\*")),a("XRANGEPLAIN","[v=\\s]*(".concat(s[i.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[i.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[i.XRANGEIDENTIFIER],")")+"(?:".concat(s[i.PRERELEASE],")?").concat(s[i.BUILD],"?")+")?)?"),a("XRANGEPLAINLOOSE","[v=\\s]*(".concat(s[i.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[i.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[i.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(s[i.PRERELEASELOOSE],")?").concat(s[i.BUILD],"?")+")?)?"),a("XRANGE","^".concat(s[i.GTLT],"\\s*").concat(s[i.XRANGEPLAIN],"$")),a("XRANGELOOSE","^".concat(s[i.GTLT],"\\s*").concat(s[i.XRANGEPLAINLOOSE],"$")),a("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(r,"})")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:$|[^\\d])"),a("COERCERTL",s[i.COERCE],!0),a("LONETILDE","(?:~>?)"),a("TILDETRIM","(\\s*)".concat(s[i.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",a("TILDE","^".concat(s[i.LONETILDE]).concat(s[i.XRANGEPLAIN],"$")),a("TILDELOOSE","^".concat(s[i.LONETILDE]).concat(s[i.XRANGEPLAINLOOSE],"$")),a("LONECARET","(?:\\^)"),a("CARETTRIM","(\\s*)".concat(s[i.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",a("CARET","^".concat(s[i.LONECARET]).concat(s[i.XRANGEPLAIN],"$")),a("CARETLOOSE","^".concat(s[i.LONECARET]).concat(s[i.XRANGEPLAINLOOSE],"$")),a("COMPARATORLOOSE","^".concat(s[i.GTLT],"\\s*(").concat(s[i.LOOSEPLAIN],")$|^$")),a("COMPARATOR","^".concat(s[i.GTLT],"\\s*(").concat(s[i.FULLPLAIN],")$|^$")),a("COMPARATORTRIM","(\\s*)".concat(s[i.GTLT],"\\s*(").concat(s[i.LOOSEPLAIN],"|").concat(s[i.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",a("HYPHENRANGE","^\\s*(".concat(s[i.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(s[i.XRANGEPLAIN],")")+"\\s*$"),a("HYPHENRANGELOOSE","^\\s*(".concat(s[i.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(s[i.XRANGEPLAINLOOSE],")")+"\\s*$"),a("STAR","(<|>)?=?\\s*\\*"),a("GTE0","^\\s*>=\\s*0.0.0\\s*$"),a("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")})),Ae=["includePrerelease","loose","rtl"],be=function be(e){return e?"object"!=_typeof(e)?{loose:!0}:Ae.filter((function(t){return e[t]})).reduce((function(e,t){return e[t]=!0,e}),{}):{}},we=/^[0-9]+$/,Ne=function Ne(e,t){var r=we.test(e),n=we.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:exe)throw new TypeError("version is longer than ".concat(xe," characters"));ye("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;var r=e.trim().match(t.loose?Pe[Re.LOOSE]:Pe[Re.FULL]);if(!r)throw new TypeError("Invalid Version: ".concat(e));if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>Ie||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Ie||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Ie||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var _t4=+e;if(_t4>=0&&_t4=0;)"number"==typeof this.prerelease[_e3]&&(this.prerelease[_e3]++,_e3=-2);-1===_e3&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: ".concat(e))}return this.format(),this.raw=this.version,this}}]),Le}(),Be=Le,qe=function qe(e,t,r){return new Be(e,r).compare(new Be(t,r))},$e=function $e(e,t,r){return qe(e,t,r)<0},He=function He(e,t,r){return qe(e,t,r)>=0},ze="2.3.0",We=t((function(e,t){function r(){for(var e=[],t=0;t0&&void 0!==arguments[0]?arguments[0]:{},_ref9$plugins=_ref9.plugins,e=void 0===_ref9$plugins?[]:_ref9$plugins,_ref9$showUnreleased=_ref9.showUnreleased,t=void 0!==_ref9$showUnreleased&&_ref9$showUnreleased,_ref9$showDeprecated=_ref9.showDeprecated,r=void 0!==_ref9$showDeprecated&&_ref9$showDeprecated,_ref9$showInternal=_ref9.showInternal,n=void 0!==_ref9$showInternal&&_ref9$showInternal,s=nt.split("-",1)[0],i=e.reduce((function(e,t){return[].concat(_toConsumableArray(e),_toConsumableArray(t.languages||[]))}),[]).filter(a),o=function(e,t){return Object.entries(e).map((function(_ref10){var _ref11=_slicedToArray(_ref10,2),e=_ref11[0],r=_ref11[1];return Object.assign(_defineProperty({},t,e),r)}))}(Object.assign.apply(Object,[{}].concat(_toConsumableArray(e.map((function(_ref12){return _ref12.options}))),[st])),"name").filter((function(e){return a(e)&&u(e)})).sort((function(e,t){return e.name===t.name?0:e.name=0||(s[r]=e[r]);return s}(e,["cliName","cliCategory","cliDescription"])})).map((function(t){t=Object.assign({},t),Array.isArray(t.default)&&(t.default=1===t.default.length?t.default[0].value:t.default.filter(a).sort((function(e,t){return rt.compare(t.since,e.since)}))[0].value),Array.isArray(t.choices)&&(t.choices=t.choices.filter((function(e){return a(e)&&u(e)})),"parser"===t.name&&function(e,t,r){var _step,n=new Set(e.choices.map((function(e){return e.value}))),_iterator=_createForOfIteratorHelper(t);try{for(_iterator.s();!(_step=_iterator.n()).done;){var _s3=_step.value;if(_s3.parsers){var _step2,_iterator2=_createForOfIteratorHelper(_s3.parsers);try{var _loop=function _loop(){var t=_step2.value;if(!n.has(t)){n.add(t);var _i4=r.find((function(e){return e.parsers&&e.parsers[t]})),_o3=_s3.name;_i4&&_i4.name&&(_o3+=" (plugin: ".concat(_i4.name,")")),e.choices.push({value:t,description:_o3})}};for(_iterator2.s();!(_step2=_iterator2.n()).done;)_loop()}catch(err){_iterator2.e(err)}finally{_iterator2.f()}}}}catch(err){_iterator.e(err)}finally{_iterator.f()}}(t,i,e));var r=J(e.filter((function(e){return e.defaultOptions&&void 0!==e.defaultOptions[t.name]})).map((function(e){return[e.name,e.defaultOptions[t.name]]})));return Object.assign({},t,{pluginDefaults:r})}));return{languages:i,options:o};function a(e){return t||!("since"in e)||e.since&&rt.gte(s,e.since)}function u(e){return r||!("deprecated"in e)||e.deprecated&&rt.lt(s,e.deprecated)}}},ot=it.getSupportInfo,at=/[^\x20-\x7F]/;function ut(e){return function(t,r,n){var s=n&&n.backwards;if(!1===r)return!1;for(var i=t.length,o=r;o>=0&&o2&&void 0!==arguments[2]?arguments[2]:{},n=lt(e,r.backwards?t-1:t,r);return n!==mt(e,n,r)}function gt(e,t){for(var r=null,n=t;n!==r;)r=n,n=ht(e,n=Dt(e,n)),n=lt(e,n);return!1!==(n=mt(e,n=dt(e,n)))&&ft(e,n)}function Et(e,t){for(var r=null,n=t;n!==r;)r=n,n=mt(e,n=dt(e,n=ht(e,n=lt(e,n))));return n}function Ct(e,t,r){return Et(e,r(t))}function Tt(e,t){for(var n=0,_s4=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;_s4(r.match(o.regex)||[]).length?o.quote:i.quote),a}function St(e,t,r){var n='"'===t?"'":'"',s=e.replace(/\\([\S\s])|(["'])/g,(function(e,s,i){return s===n?s:i===t?"\\"+i:i||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(s)?s:"\\"+s)}));return t+s+t}function yt(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=function(e){var t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&("object"==_typeof(e.id)?e.id.name:e.id)||e.key&&("object"==_typeof(e.key)?e.key.name:e.key)||e.value&&("object"==_typeof(e.value)?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"…"),t+(r?" "+r:"")}(e)}var Ft={inferParserByLanguage:function inferParserByLanguage(e,t){var r=ot({plugins:t.plugins}).languages,n=r.find((function(_ref13){return _ref13.name.toLowerCase()===e}))||r.find((function(_ref14){var t=_ref14.aliases;return Array.isArray(t)&&t.includes(e)}))||r.find((function(_ref15){var t=_ref15.extensions;return Array.isArray(t)&&t.includes(".".concat(e))}));return n&&n.parsers[0]},replaceEndOfLineWith:function replaceEndOfLineWith(e,t){var _step3,r=[],_iterator3=_createForOfIteratorHelper(e.split("\n"));try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var _n10=_step3.value;r.length>0&&r.push(t),r.push(_n10)}}catch(err){_iterator3.e(err)}finally{_iterator3.f()}return r},getStringWidth:function getStringWidth(e){return e?at.test(e)?z(e):e.length:0},getMaxContinuousCount:function getMaxContinuousCount(e,t){var r=e.match(new RegExp("(".concat(Y(t),")+"),"g"));return null===r?0:r.reduce((function(e,r){return Math.max(e,r.length/t.length)}),0)},getMinNotPresentContinuousCount:function getMinNotPresentContinuousCount(e,t){var r=e.match(new RegExp("(".concat(Y(t),")+"),"g"));if(null===r)return 0;var _step4,n=new Map,s=0,_iterator4=_createForOfIteratorHelper(r);try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var _r8=_step4.value.length/t.length;n.set(_r8,!0),_r8>s&&(s=_r8)}}catch(err){_iterator4.e(err)}finally{_iterator4.f()}for(var _e4=1;_e42&&void 0!==arguments[2]?arguments[2]:{};return lt(e,r.backwards?t-1:t,r)!==t},getAlignmentSize:Tt,getIndentSize:function getIndentSize(e,t){var r=e.lastIndexOf("\n");return-1===r?0:Tt(e.slice(r+1).match(/^[\t ]*/)[0],t)},getPreferredQuote:_t,printString:function printString(e,t){return St(e.slice(1,-1),"json"===t.parser||"json5"===t.parser&&"preserve"===t.quoteProps&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":_t(e,t.singleQuote?"'":'"'),!("css"===t.parser||"less"===t.parser||"scss"===t.parser||t.__embeddedInHtml))},printNumber:function printNumber(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")},makeString:St,addLeadingComment:function addLeadingComment(e,t){t.leading=!0,t.trailing=!1,yt(e,t)},addDanglingComment:function addDanglingComment(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),yt(e,t)},addTrailingComment:function addTrailingComment(e,t){t.leading=!1,t.trailing=!0,yt(e,t)},isFrontMatterNode:function isFrontMatterNode(e){return e&&"front-matter"===e.type},getShebang:function getShebang(e){if(!e.startsWith("#!"))return"";var t=e.indexOf("\n");return-1===t?e:e.slice(0,t)},isNonEmptyArray:function isNonEmptyArray(e){return Array.isArray(e)&&e.length>0},createGroupIdMapper:function createGroupIdMapper(e){var t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}},vt={"*":["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","slot","spellcheck","style","tabindex","title","translate"],a:["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","tabindex","target","type"],abbr:["title"],applet:["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"],area:["accesskey","alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","tabindex","target","type"],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],base:["href","target"],basefont:["color","face","size"],bdo:["dir"],blockquote:["cite"],body:["alink","background","bgcolor","link","text","vlink"],br:["clear"],button:["accesskey","autofocus","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","tabindex","type","value"],canvas:["height","width"],caption:["align"],col:["align","char","charoff","span","valign","width"],colgroup:["align","char","charoff","span","valign","width"],data:["value"],del:["cite","datetime"],details:["open"],dfn:["title"],dialog:["open"],dir:["compact"],div:["align"],dl:["compact"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],font:["color","face","size"],form:["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"],frame:["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"],frameset:["cols","rows"],h1:["align"],h2:["align"],h3:["align"],h4:["align"],h5:["align"],h6:["align"],head:["profile"],hr:["align","noshade","size","width"],html:["manifest","version"],iframe:["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"],img:["align","alt","border","crossorigin","decoding","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"],input:["accept","accesskey","align","alt","autocomplete","autofocus","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","tabindex","title","type","usemap","value","width"],ins:["cite","datetime"],isindex:["prompt"],label:["accesskey","for","form"],legend:["accesskey","align"],li:["type","value"],link:["as","charset","color","crossorigin","disabled","href","hreflang","imagesizes","imagesrcset","integrity","media","nonce","referrerpolicy","rel","rev","sizes","target","title","type"],map:["name"],menu:["compact"],meta:["charset","content","http-equiv","name","scheme"],meter:["high","low","max","min","optimum","value"],object:["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","tabindex","type","typemustmatch","usemap","vspace","width"],ol:["compact","reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["for","form","name"],p:["align"],param:["name","type","value","valuetype"],pre:["width"],progress:["max","value"],q:["cite"],script:["async","charset","crossorigin","defer","integrity","language","nomodule","nonce","referrerpolicy","src","type"],select:["autocomplete","autofocus","disabled","form","multiple","name","required","size","tabindex"],slot:["name"],source:["media","sizes","src","srcset","type"],style:["media","nonce","title","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],tbody:["align","char","charoff","valign"],td:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],textarea:["accesskey","autocomplete","autofocus","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","tabindex","wrap"],tfoot:["align","char","charoff","valign"],th:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],thead:["align","char","charoff","valign"],time:["datetime"],tr:["align","bgcolor","char","charoff","valign"],track:["default","kind","label","src","srclang"],ul:["compact","type"],video:["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"]},At=Ft.inferParserByLanguage,bt=Ft.isFrontMatterNode,_CSS_DISPLAY_TAGS$CSS={CSS_DISPLAY_TAGS:{area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",details:"block",summary:"block",dialog:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},CSS_DISPLAY_DEFAULT:"inline",CSS_WHITE_SPACE_TAGS:{listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},CSS_WHITE_SPACE_DEFAULT:"normal"},wt=_CSS_DISPLAY_TAGS$CSS.CSS_DISPLAY_TAGS,Nt=_CSS_DISPLAY_TAGS$CSS.CSS_DISPLAY_DEFAULT,kt=_CSS_DISPLAY_TAGS$CSS.CSS_WHITE_SPACE_TAGS,xt=_CSS_DISPLAY_TAGS$CSS.CSS_WHITE_SPACE_DEFAULT,It=Lt(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]),Pt=function(e,t){for(var r=Object.create(null),_i5=0,_Object$entries=Object.entries(e);_i5<_Object$entries.length;_i5++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i5],2),_n12=_Object$entries$_i[0],_s5=_Object$entries$_i[1];r[_n12]=t(_s5,_n12)}return r}(vt,Lt),Rt=new Set(["\t","\n","\f","\r"," "]),Ot=function Ot(e){return e.replace(/[\t\n\f\r ]+$/,"")};function Lt(e){var _step5,t=Object.create(null),_iterator5=_createForOfIteratorHelper(e);try{for(_iterator5.s();!(_step5=_iterator5.n()).done;)t[_step5.value]=!0}catch(err){_iterator5.e(err)}finally{_iterator5.f()}return t}function Bt(e,t){return!("ieConditionalComment"!==e.type||!e.lastChild||e.lastChild.isSelfClosing||e.lastChild.endSourceSpan)||"ieConditionalComment"===e.type&&!e.complete||!(!Yt(e)||!e.children.some((function(e){return"text"!==e.type&&"interpolation"!==e.type})))||!(!tr(e,t)||$t(e)||"interpolation"===e.type)}function qt(e){return"attribute"!==e.type&&!!e.parent&&"number"==typeof e.index&&0!==e.index&&function(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}(e.parent.children[e.index-1])}function $t(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName||Qt(e)&&("script"===e.name||"style"===e.name))}function Mt(e){return Jt(e).startsWith("pre")}function Ut(e){return"element"===e.type&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function Vt(e){return Ht(e)||"element"===e.type&&"br"===e.fullName||Gt(e)}function Gt(e){return jt(e)&&Xt(e)}function jt(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.linee.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function Ht(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function zt(e){var _e$attrMap=e.attrMap,t=_e$attrMap.type,r=_e$attrMap.lang;return"module"===t||"text/javascript"===t||"text/babel"===t||"application/javascript"===t||"jsx"===r?"babel":"application/x-typescript"===t||"ts"===r||"tsx"===r?"typescript":"text/markdown"===t?"markdown":"text/html"===t?"html":t&&(t.endsWith("json")||t.endsWith("importmap"))?"json":"text/x-handlebars-template"===t?"glimmer":void 0}function Wt(e){return"block"===e||"list-item"===e||e.startsWith("table")}function Yt(e){return Jt(e).startsWith("pre")}function Qt(e){return"element"===e.type&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}function Jt(e){return"element"===e.type&&(!e.namespace||Qt(e))&&kt[e.name]||xt}var Zt=new Set(["template","style","script"]);function Kt(e,t){return er(e,t)&&!Zt.has(e.fullName)}function er(e,t){return"vue"===t.parser&&"element"===e.type&&"root"===e.parent.type&&"html"!==e.fullName.toLowerCase()}function tr(e,t){return er(e,t)&&(Kt(e,t)||e.attrMap.lang&&"html"!==e.attrMap.lang)}var rr={HTML_ELEMENT_ATTRIBUTES:Pt,HTML_TAGS:It,htmlTrim:function htmlTrim(e){return function(e){return e.replace(/^[\t\n\f\r ]+/,"")}(Ot(e))},htmlTrimPreserveIndentation:function htmlTrimPreserveIndentation(e){return function(e){return e.replace(/^[\t\f\r ]*?\n/g,"")}(Ot(e))},splitByHtmlWhitespace:function splitByHtmlWhitespace(e){return e.split(/[\t\n\f\r ]+/)},hasHtmlWhitespace:function hasHtmlWhitespace(e){return/[\t\n\f\r ]/.test(e)},getLeadingAndTrailingHtmlWhitespace:function getLeadingAndTrailingHtmlWhitespace(e){var _e$match2=_slicedToArray(e.match(/^([\t\n\f\r ]*)([\S\s]*?)([\t\n\f\r ]*)$/),4),t=_e$match2[1],r=_e$match2[2];return{leadingWhitespace:t,trailingWhitespace:_e$match2[3],text:r}},canHaveInterpolation:function canHaveInterpolation(e){return e.children&&!$t(e)},countChars:function countChars(e,t){for(var r=0,_n13=0;_n13=0;_n14--){var _s6=e.stack[_n14];_s6&&"object"==_typeof(_s6)&&!Array.isArray(_s6)&&t(_s6)&&r++}return r},dedentString:function dedentString(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){var _step6,r,t=Number.POSITIVE_INFINITY,_iterator6=_createForOfIteratorHelper(e.split("\n"));try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _n15=_step6.value;if(0!==_n15.length){if(!Rt.has(_n15[0]))return 0;var _e6=(r=_n15,r.match(/^[\t\n\f\r ]*/)[0]).length;_n15.length!==_e6&&_e60&&(["body","script","style"].includes(e.name)||e.children.some((function(e){return function(e){return e.children&&e.children.some((function(e){return"text"!==e.type}))}(e)})))||e.firstChild&&e.firstChild===e.lastChild&&"text"!==e.firstChild.type&&jt(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||Xt(e.lastChild))},forceNextEmptyLine:function forceNextEmptyLine(e){return bt(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1/.test(e)},insertPragma:function insertPragma(e){return"\x3c!-- @format --\x3e\n\n"+e.replace(/^\s*\n/,"")}},sr=Ft.isNonEmptyArray,ir={attrs:!0,children:!0},or=function(){function or(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,or);for(var _i6=0,_Object$entries2=Object.entries(e);_i6<_Object$entries2.length;_i6++){var _Object$entries2$_i=_slicedToArray(_Object$entries2[_i6],2),_t6=_Object$entries2$_i[0],_r10=_Object$entries2$_i[1];_t6 in ir?this._setNodes(_t6,_r10):this[_t6]=_r10}}return _createClass(or,[{key:"_setNodes",value:function _setNodes(e,t){t!==this[e]&&(this[e]=function(e,t){for(var r=e.map((function(e){return e instanceof or?e.clone():new or(e)})),n=null,s=r[0],i=r[1]||null,_e7=0;_e7)([\s\S]*?)",Gt:"≫",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",LT:"<",Lt:"≪",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"},t.NGSP_UNICODE="",t.NAMED_ENTITIES.ngsp=t.NGSP_UNICODE})),mr=function(){function mr(){var _this3=this,_ref20=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=_ref20.closedByChildren,t=_ref20.implicitNamespacePrefix,_ref20$contentType=_ref20.contentType,r=void 0===_ref20$contentType?dr.TagContentType.PARSABLE_DATA:_ref20$contentType,_ref20$closedByParent=_ref20.closedByParent,n=void 0!==_ref20$closedByParent&&_ref20$closedByParent,_ref20$isVoid=_ref20.isVoid,s=void 0!==_ref20$isVoid&&_ref20$isVoid,_ref20$ignoreFirstLf=_ref20.ignoreFirstLf,i=void 0!==_ref20$ignoreFirstLf&&_ref20$ignoreFirstLf;_classCallCheck(this,mr),this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,e&&e.length>0&&e.forEach((function(e){return _this3.closedByChildren[e]=!0})),this.isVoid=s,this.closedByParent=n||s,this.implicitNamespacePrefix=t||null,this.contentType=r,this.ignoreFirstLf=i}return _createClass(mr,[{key:"isClosedByChild",value:function isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}}]),mr}(),fr=mr,Cr=function Cr(e){return Er||(gr=new mr,Er={base:new mr({isVoid:!0}),meta:new mr({isVoid:!0}),area:new mr({isVoid:!0}),embed:new mr({isVoid:!0}),link:new mr({isVoid:!0}),img:new mr({isVoid:!0}),input:new mr({isVoid:!0}),param:new mr({isVoid:!0}),hr:new mr({isVoid:!0}),br:new mr({isVoid:!0}),source:new mr({isVoid:!0}),track:new mr({isVoid:!0}),wbr:new mr({isVoid:!0}),p:new mr({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new mr({closedByChildren:["tbody","tfoot"]}),tbody:new mr({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new mr({closedByChildren:["tbody"],closedByParent:!0}),tr:new mr({closedByChildren:["tr"],closedByParent:!0}),td:new mr({closedByChildren:["td","th"],closedByParent:!0}),th:new mr({closedByChildren:["td","th"],closedByParent:!0}),col:new mr({isVoid:!0}),svg:new mr({implicitNamespacePrefix:"svg"}),math:new mr({implicitNamespacePrefix:"math"}),li:new mr({closedByChildren:["li"],closedByParent:!0}),dt:new mr({closedByChildren:["dt","dd"]}),dd:new mr({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new mr({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new mr({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new mr({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new mr({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new mr({closedByChildren:["optgroup"],closedByParent:!0}),option:new mr({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new mr({ignoreFirstLf:!0}),listing:new mr({ignoreFirstLf:!0}),style:new mr({contentType:dr.TagContentType.RAW_TEXT}),script:new mr({contentType:dr.TagContentType.RAW_TEXT}),title:new mr({contentType:dr.TagContentType.ESCAPABLE_RAW_TEXT}),textarea:new mr({contentType:dr.TagContentType.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),Er[e]||gr},Tr=Object.defineProperty({HtmlTagDefinition:fr,getHtmlTagDefinition:Cr},"__esModule",{value:!0}),_r=function(){function _r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;_classCallCheck(this,_r),this.path=e,this.position=t}return _createClass(_r,[{key:"empty",get:function get(){return!this.path||!this.path.length}},{key:"head",get:function get(){return this.path[0]}},{key:"tail",get:function get(){return this.path[this.path.length-1]}},{key:"parentOf",value:function parentOf(e){return e&&this.path[this.path.indexOf(e)-1]}},{key:"childOf",value:function childOf(e){return this.path[this.path.indexOf(e)+1]}},{key:"first",value:function first(e){for(var _t7=this.path.length-1;_t7>=0;_t7--){var _r16=this.path[_t7];if(_r16 instanceof e)return _r16}}},{key:"push",value:function push(e){this.path.push(e)}},{key:"pop",value:function pop(){return this.path.pop()}}]),_r}(),Sr=Object.defineProperty({AstPath:_r},"__esModule",{value:!0}),yr=function(){function yr(e,t,r){_classCallCheck(this,yr),this.value=e,this.sourceSpan=t,this.i18n=r,this.type="text"}return _createClass(yr,[{key:"visit",value:function visit(e,t){return e.visitText(this,t)}}]),yr}(),Fr=function(){function Fr(e,t){_classCallCheck(this,Fr),this.value=e,this.sourceSpan=t,this.type="cdata"}return _createClass(Fr,[{key:"visit",value:function visit(e,t){return e.visitCdata(this,t)}}]),Fr}(),vr=function(){function vr(e,t,r,n,s,i){_classCallCheck(this,vr),this.switchValue=e,this.type=t,this.cases=r,this.sourceSpan=n,this.switchValueSourceSpan=s,this.i18n=i}return _createClass(vr,[{key:"visit",value:function visit(e,t){return e.visitExpansion(this,t)}}]),vr}(),Ar=function(){function Ar(e,t,r,n,s){_classCallCheck(this,Ar),this.value=e,this.expression=t,this.sourceSpan=r,this.valueSourceSpan=n,this.expSourceSpan=s}return _createClass(Ar,[{key:"visit",value:function visit(e,t){return e.visitExpansionCase(this,t)}}]),Ar}(),br=function(){function br(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;_classCallCheck(this,br),this.name=e,this.value=t,this.sourceSpan=r,this.valueSpan=n,this.nameSpan=s,this.i18n=i,this.type="attribute"}return _createClass(br,[{key:"visit",value:function visit(e,t){return e.visitAttribute(this,t)}}]),br}(),wr=function(){function wr(e,t,r,n){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;_classCallCheck(this,wr),this.name=e,this.attrs=t,this.children=r,this.sourceSpan=n,this.startSourceSpan=s,this.endSourceSpan=i,this.nameSpan=o,this.i18n=a,this.type="element"}return _createClass(wr,[{key:"visit",value:function visit(e,t){return e.visitElement(this,t)}}]),wr}(),Nr=wr,kr=function(){function kr(e,t){_classCallCheck(this,kr),this.value=e,this.sourceSpan=t,this.type="comment"}return _createClass(kr,[{key:"visit",value:function visit(e,t){return e.visitComment(this,t)}}]),kr}(),xr=function(){function xr(e,t){_classCallCheck(this,xr),this.value=e,this.sourceSpan=t,this.type="docType"}return _createClass(xr,[{key:"visit",value:function visit(e,t){return e.visitDocType(this,t)}}]),xr}();function Ir(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=[],s=e.visit?function(t){return e.visit(t,r)||t.visit(e,r)}:function(t){return t.visit(e,r)};return t.forEach((function(e){var t=s(e);t&&n.push(t)})),n}var Pr=Ir,Rr=function(){function Rr(){_classCallCheck(this,Rr)}return _createClass(Rr,[{key:"visitElement",value:function visitElement(e,t){this.visitChildren(t,(function(t){t(e.attrs),t(e.children)}))}},{key:"visitAttribute",value:function visitAttribute(e,t){}},{key:"visitText",value:function visitText(e,t){}},{key:"visitCdata",value:function visitCdata(e,t){}},{key:"visitComment",value:function visitComment(e,t){}},{key:"visitDocType",value:function visitDocType(e,t){}},{key:"visitExpansion",value:function visitExpansion(e,t){return this.visitChildren(t,(function(t){t(e.cases)}))}},{key:"visitExpansionCase",value:function visitExpansionCase(e,t){}},{key:"visitChildren",value:function visitChildren(e,t){var r=[],n=this;return t((function(t){t&&r.push(Ir(n,t,e))})),Array.prototype.concat.apply([],r)}}]),Rr}(),Or=Rr;function Lr(e){var t=e.sourceSpan.start.offset,r=e.sourceSpan.end.offset;return e instanceof wr&&(e.endSourceSpan?r=e.endSourceSpan.end.offset:e.children&&e.children.length&&(r=Lr(e.children[e.children.length-1]).end)),{start:t,end:r}}var Br=function Br(e,t){var r=[];return Ir(new(function(_Rr){_inherits(_class9,_Rr);var _super=_createSuper(_class9);function _class9(){return _classCallCheck(this,_class9),_super.apply(this,arguments)}return _createClass(_class9,[{key:"visit",value:function visit(e,n){var s=Lr(e);if(!(s.start<=t&&t]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],Ur=function Ur(e,t){if(!(null==t||Array.isArray(t)&&2==t.length))throw new Error("Expected '".concat(e,"' to be an array, [start, end]."));if(null!=t){var _e10=t[0],_r18=t[1];Mr.forEach((function(t){if(t.test(_e10)||t.test(_r18))throw new Error("['".concat(_e10,"', '").concat(_r18,"'] contains unusable interpolation symbol."))}))}},Vr=Object.defineProperty({assertArrayOfStrings:$r,assertInterpolationSymbols:Ur},"__esModule",{value:!0}),Gr=t((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function r(e,t){_classCallCheck(this,r),this.start=e,this.end=t}return _createClass(r,null,[{key:"fromArray",value:function fromArray(e){return e?(Vr.assertInterpolationSymbols("interpolation",e),new r(e[0],e[1])):t.DEFAULT_INTERPOLATION_CONFIG}}]),r}();t.InterpolationConfig=r,t.DEFAULT_INTERPOLATION_CONFIG=new r("{{","}}")})),jr=t((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var s,n=r;!function(e){e[e.TAG_OPEN_START=0]="TAG_OPEN_START",e[e.TAG_OPEN_END=1]="TAG_OPEN_END",e[e.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",e[e.TAG_CLOSE=3]="TAG_CLOSE",e[e.TEXT=4]="TEXT",e[e.ESCAPABLE_RAW_TEXT=5]="ESCAPABLE_RAW_TEXT",e[e.RAW_TEXT=6]="RAW_TEXT",e[e.COMMENT_START=7]="COMMENT_START",e[e.COMMENT_END=8]="COMMENT_END",e[e.CDATA_START=9]="CDATA_START",e[e.CDATA_END=10]="CDATA_END",e[e.ATTR_NAME=11]="ATTR_NAME",e[e.ATTR_QUOTE=12]="ATTR_QUOTE",e[e.ATTR_VALUE=13]="ATTR_VALUE",e[e.DOC_TYPE_START=14]="DOC_TYPE_START",e[e.DOC_TYPE_END=15]="DOC_TYPE_END",e[e.EXPANSION_FORM_START=16]="EXPANSION_FORM_START",e[e.EXPANSION_CASE_VALUE=17]="EXPANSION_CASE_VALUE",e[e.EXPANSION_CASE_EXP_START=18]="EXPANSION_CASE_EXP_START",e[e.EXPANSION_CASE_EXP_END=19]="EXPANSION_CASE_EXP_END",e[e.EXPANSION_FORM_END=20]="EXPANSION_FORM_END",e[e.EOF=21]="EOF"}(s=t.TokenType||(t.TokenType={}));var i=_createClass((function i(e,t,r){_classCallCheck(this,i),this.type=e,this.parts=t,this.sourceSpan=r}));t.Token=i;var o=function(_B$ParseError){_inherits(o,_B$ParseError);var _super2=_createSuper(o);function o(e,t,r){var _this4;return _classCallCheck(this,o),(_this4=_super2.call(this,r,e)).tokenType=t,_this4}return _createClass(o)}(B.ParseError);t.TokenError=o;var a=_createClass((function a(e,t){_classCallCheck(this,a),this.tokens=e,this.errors=t}));t.TokenizeResult=a,t.tokenize=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return new p(new B.ParseSourceFile(e,t),r,n).tokenize()};var u=/\r\n?/g;function c(e){var t=e===n.$EOF?"EOF":String.fromCharCode(e);return'Unexpected character "'.concat(t,'"')}function l(e){return'Unknown entity "'.concat(e,'" - use the "&#;" or "&#x;" syntax')}var D=_createClass((function D(e){_classCallCheck(this,D),this.error=e})),p=function(){function p(e,t,r){_classCallCheck(this,p),this._getTagContentType=t,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this._tokenizeIcu=r.tokenizeExpansionForms||!1,this._interpolationConfig=r.interpolationConfig||Gr.DEFAULT_INTERPOLATION_CONFIG,this._leadingTriviaCodePoints=r.leadingTriviaChars&&r.leadingTriviaChars.map((function(e){return e.codePointAt(0)||0})),this._canSelfClose=r.canSelfClose||!1,this._allowHtmComponentClosingTags=r.allowHtmComponentClosingTags||!1;var n=r.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=r.escapedString?new C(e,n):new E(e,n);try{this._cursor.init()}catch(e){this.handleError(e)}}return _createClass(p,[{key:"_processCarriageReturns",value:function _processCarriageReturns(e){return e.replace(u,"\n")}},{key:"tokenize",value:function tokenize(){for(;this._cursor.peek()!==n.$EOF;){var _e11=this._cursor.clone();try{if(this._attemptCharCode(n.$LT))if(this._attemptCharCode(n.$BANG))this._attemptStr("[CDATA[")?this._consumeCdata(_e11):this._attemptStr("--")?this._consumeComment(_e11):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(_e11):this._consumeBogusComment(_e11);else if(this._attemptCharCode(n.$SLASH))this._consumeTagClose(_e11);else{var _t8=this._cursor.clone();this._attemptCharCode(n.$QUESTION)?(this._cursor=_t8,this._consumeBogusComment(_e11)):this._consumeTagOpen(_e11)}else this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(e){this.handleError(e)}}return this._beginToken(s.EOF),this._endToken([]),new a(function(e){for(var r,t=[],_n19=0;_n191&&void 0!==arguments[1]?arguments[1]:this._cursor.clone();this._currentTokenStart=t,this._currentTokenType=e}},{key:"_endToken",value:function _endToken(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._cursor.clone();if(null===this._currentTokenStart)throw new o("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(t));if(null===this._currentTokenType)throw new o("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));var r=new i(this._currentTokenType,e,this._cursor.getSpan(this._currentTokenStart,this._leadingTriviaCodePoints));return this.tokens.push(r),this._currentTokenStart=null,this._currentTokenType=null,r}},{key:"_createError",value:function _createError(e,t){this._isInExpansionForm()&&(e+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var r=new o(e,this._currentTokenType,t);return this._currentTokenStart=null,this._currentTokenType=null,new D(r)}},{key:"handleError",value:function handleError(e){if(e instanceof T&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),!(e instanceof D))throw e;this.errors.push(e.error)}},{key:"_attemptCharCode",value:function _attemptCharCode(e){return this._cursor.peek()===e&&(this._cursor.advance(),!0)}},{key:"_attemptCharCodeCaseInsensitive",value:function _attemptCharCodeCaseInsensitive(e){return r=e,g(this._cursor.peek())==g(r)&&(this._cursor.advance(),!0);var r}},{key:"_requireCharCode",value:function _requireCharCode(e){var t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(c(this._cursor.peek()),this._cursor.getSpan(t))}},{key:"_attemptStr",value:function _attemptStr(e){var t=e.length;if(this._cursor.charsLeft()")})),this._beginToken(s.CDATA_END),this._requireStr("]]>"),this._endToken([])}},{key:"_consumeDocType",value:function _consumeDocType(e){var _this8=this;this._beginToken(s.DOC_TYPE_START,e),this._endToken([]),this._consumeRawText(!1,(function(){return _this8._cursor.peek()===n.$GT})),this._beginToken(s.DOC_TYPE_END),this._cursor.advance(),this._endToken([])}},{key:"_consumePrefixAndName",value:function _consumePrefixAndName(){for(var r,s,e=this._cursor.clone(),t="";this._cursor.peek()!==n.$COLON&&!(((r=this._cursor.peek())n.$9));)this._cursor.advance();return this._cursor.peek()===n.$COLON?(t=this._cursor.getChars(e),this._cursor.advance(),s=this._cursor.clone()):s=e,this._requireCharCodeUntilFn(d,""===t?0:1),[t,this._cursor.getChars(s)]}},{key:"_consumeTagOpen",value:function _consumeTagOpen(e){var t,r,i,o=this.tokens.length,a=this._cursor.clone(),u=[];try{if(!n.isAsciiLetter(this._cursor.peek()))throw this._createError(c(this._cursor.peek()),this._cursor.getSpan(e));for(r=(i=this._consumeTagOpenStart(e)).parts[0],t=i.parts[1],this._attemptCharCodeUntilFn(h);this._cursor.peek()!==n.$SLASH&&this._cursor.peek()!==n.$GT;){var _this$_consumeAttribu2=_slicedToArray(this._consumeAttributeName(),2),_e14=_this$_consumeAttribu2[0],_t12=_this$_consumeAttribu2[1];if(this._attemptCharCodeUntilFn(h),this._attemptCharCode(n.$EQ)){this._attemptCharCodeUntilFn(h);var _r21=this._consumeAttributeValue();u.push({prefix:_e14,name:_t12,value:_r21})}else u.push({prefix:_e14,name:_t12});this._attemptCharCodeUntilFn(h)}this._consumeTagOpenEnd()}catch(t){if(t instanceof D)return this._cursor=a,i&&(this.tokens.length=o),this._beginToken(s.TEXT,e),void this._endToken(["<"]);throw t}if(!this._canSelfClose||this.tokens[this.tokens.length-1].type!==s.TAG_OPEN_END_VOID){var l=this._getTagContentType(t,r,this._fullNameStack.length>0,u);this._handleFullNameStackForTagOpen(r,t),l===dr.TagContentType.RAW_TEXT?this._consumeRawTextWithTagClose(r,t,!1):l===dr.TagContentType.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,t,!0)}}},{key:"_consumeRawTextWithTagClose",value:function _consumeRawTextWithTagClose(e,t,r){var _this9=this;this._consumeRawText(r,(function(){return!!_this9._attemptCharCode(n.$LT)&&!!_this9._attemptCharCode(n.$SLASH)&&(_this9._attemptCharCodeUntilFn(h),!!_this9._attemptStrCaseInsensitive(e?"".concat(e,":").concat(t):t)&&(_this9._attemptCharCodeUntilFn(h),_this9._attemptCharCode(n.$GT)))})),this._beginToken(s.TAG_CLOSE),this._requireCharCodeUntilFn((function(e){return e===n.$GT}),3),this._cursor.advance(),this._endToken([e,t]),this._handleFullNameStackForTagClose(e,t)}},{key:"_consumeTagOpenStart",value:function _consumeTagOpenStart(e){this._beginToken(s.TAG_OPEN_START,e);var t=this._consumePrefixAndName();return this._endToken(t)}},{key:"_consumeAttributeName",value:function _consumeAttributeName(){var e=this._cursor.peek();if(e===n.$SQ||e===n.$DQ)throw this._createError(c(e),this._cursor.getSpan());this._beginToken(s.ATTR_NAME);var t=this._consumePrefixAndName();return this._endToken(t),t}},{key:"_consumeAttributeValue",value:function _consumeAttributeValue(){var e;if(this._cursor.peek()===n.$SQ||this._cursor.peek()===n.$DQ){this._beginToken(s.ATTR_QUOTE);var _t13=this._cursor.peek();this._cursor.advance(),this._endToken([String.fromCodePoint(_t13)]),this._beginToken(s.ATTR_VALUE);for(var _r22=[];this._cursor.peek()!==_t13;)_r22.push(this._readChar(!0));e=this._processCarriageReturns(_r22.join("")),this._endToken([e]),this._beginToken(s.ATTR_QUOTE),this._cursor.advance(),this._endToken([String.fromCodePoint(_t13)])}else{this._beginToken(s.ATTR_VALUE);var _t14=this._cursor.clone();this._requireCharCodeUntilFn(d,1),e=this._processCarriageReturns(this._cursor.getChars(_t14)),this._endToken([e])}return e}},{key:"_consumeTagOpenEnd",value:function _consumeTagOpenEnd(){var e=this._attemptCharCode(n.$SLASH)?s.TAG_OPEN_END_VOID:s.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(n.$GT),this._endToken([])}},{key:"_consumeTagClose",value:function _consumeTagClose(e){if(this._beginToken(s.TAG_CLOSE,e),this._attemptCharCodeUntilFn(h),this._allowHtmComponentClosingTags&&this._attemptCharCode(n.$SLASH))this._attemptCharCodeUntilFn(h),this._requireCharCode(n.$GT),this._endToken([]);else{var _this$_consumePrefixA2=_slicedToArray(this._consumePrefixAndName(),2),_e15=_this$_consumePrefixA2[0],_t15=_this$_consumePrefixA2[1];this._attemptCharCodeUntilFn(h),this._requireCharCode(n.$GT),this._endToken([_e15,_t15]),this._handleFullNameStackForTagClose(_e15,_t15)}}},{key:"_consumeExpansionFormStart",value:function _consumeExpansionFormStart(){this._beginToken(s.EXPANSION_FORM_START),this._requireCharCode(n.$LBRACE),this._endToken([]),this._expansionCaseStack.push(s.EXPANSION_FORM_START),this._beginToken(s.RAW_TEXT);var e=this._readUntil(n.$COMMA);this._endToken([e]),this._requireCharCode(n.$COMMA),this._attemptCharCodeUntilFn(h),this._beginToken(s.RAW_TEXT);var t=this._readUntil(n.$COMMA);this._endToken([t]),this._requireCharCode(n.$COMMA),this._attemptCharCodeUntilFn(h)}},{key:"_consumeExpansionCaseStart",value:function _consumeExpansionCaseStart(){this._beginToken(s.EXPANSION_CASE_VALUE);var e=this._readUntil(n.$LBRACE).trim();this._endToken([e]),this._attemptCharCodeUntilFn(h),this._beginToken(s.EXPANSION_CASE_EXP_START),this._requireCharCode(n.$LBRACE),this._endToken([]),this._attemptCharCodeUntilFn(h),this._expansionCaseStack.push(s.EXPANSION_CASE_EXP_START)}},{key:"_consumeExpansionCaseEnd",value:function _consumeExpansionCaseEnd(){this._beginToken(s.EXPANSION_CASE_EXP_END),this._requireCharCode(n.$RBRACE),this._endToken([]),this._attemptCharCodeUntilFn(h),this._expansionCaseStack.pop()}},{key:"_consumeExpansionFormEnd",value:function _consumeExpansionFormEnd(){this._beginToken(s.EXPANSION_FORM_END),this._requireCharCode(n.$RBRACE),this._endToken([]),this._expansionCaseStack.pop()}},{key:"_consumeText",value:function _consumeText(){var e=this._cursor.clone();this._beginToken(s.TEXT,e);var t=[];do{this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(t.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(t.push(this._interpolationConfig.end),this._inInterpolation=!1):t.push(this._readChar(!0))}while(!this._isTextEnd());this._endToken([this._processCarriageReturns(t.join(""))])}},{key:"_isTextEnd",value:function _isTextEnd(){if(this._cursor.peek()===n.$LT||this._cursor.peek()===n.$EOF)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(this.isExpansionFormStart())return!0;if(this._cursor.peek()===n.$RBRACE&&this._isInExpansionCase())return!0}return!1}},{key:"_readUntil",value:function _readUntil(e){var t=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(t)}},{key:"_isInExpansionCase",value:function _isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===s.EXPANSION_CASE_EXP_START}},{key:"_isInExpansionForm",value:function _isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===s.EXPANSION_FORM_START}},{key:"isExpansionFormStart",value:function isExpansionFormStart(){if(this._cursor.peek()!==n.$LBRACE)return!1;if(this._interpolationConfig){var _e16=this._cursor.clone(),_t16=this._attemptStr(this._interpolationConfig.start);return this._cursor=_e16,!_t16}return!0}},{key:"_handleFullNameStackForTagOpen",value:function _handleFullNameStackForTagOpen(e,t){var r=dr.mergeNsAndName(e,t);0!==this._fullNameStack.length&&this._fullNameStack[this._fullNameStack.length-1]!==r||this._fullNameStack.push(r)}},{key:"_handleFullNameStackForTagClose",value:function _handleFullNameStackForTagClose(e,t){var r=dr.mergeNsAndName(e,t);0!==this._fullNameStack.length&&this._fullNameStack[this._fullNameStack.length-1]===r&&this._fullNameStack.pop()}}]),p}();function h(e){return!n.isWhitespace(e)||e===n.$EOF}function d(e){return n.isWhitespace(e)||e===n.$GT||e===n.$SLASH||e===n.$SQ||e===n.$DQ||e===n.$EQ}function m(e){return e==n.$SEMICOLON||e==n.$EOF||!n.isAsciiHexDigit(e)}function f(e){return e==n.$SEMICOLON||e==n.$EOF||!n.isAsciiLetter(e)}function g(e){return e>=n.$a&&e<=n.$z?e-n.$a+n.$A:e}var E=function(){function E(e,t){if(_classCallCheck(this,E),e instanceof E)this.file=e.file,this.input=e.input,this.end=e.end,this.state=Object.assign({},e.state);else{if(!t)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=e,this.input=e.content,this.end=t.endPos,this.state={peek:-1,offset:t.startPos,line:t.startLine,column:t.startCol}}}return _createClass(E,[{key:"clone",value:function clone(){return new E(this)}},{key:"peek",value:function peek(){return this.state.peek}},{key:"charsLeft",value:function charsLeft(){return this.end-this.state.offset}},{key:"diff",value:function diff(e){return this.state.offset-e.state.offset}},{key:"advance",value:function advance(){this.advanceState(this.state)}},{key:"init",value:function init(){this.updatePeek(this.state)}},{key:"getSpan",value:function getSpan(e,t){if(e=e||this,t)for(e=e.clone();this.diff(e)>0&&-1!==t.indexOf(e.peek());)e.advance();return new B.ParseSourceSpan(new B.ParseLocation(e.file,e.state.offset,e.state.line,e.state.column),new B.ParseLocation(this.file,this.state.offset,this.state.line,this.state.column))}},{key:"getChars",value:function getChars(e){return this.input.substring(e.state.offset,this.state.offset)}},{key:"charAt",value:function charAt(e){return this.input.charCodeAt(e)}},{key:"advanceState",value:function advanceState(e){if(e.offset>=this.end)throw this.state=e,new T('Unexpected character "EOF"',this);var t=this.charAt(e.offset);t===n.$LF?(e.line++,e.column=0):n.isNewLine(t)||e.column++,e.offset++,this.updatePeek(e)}},{key:"updatePeek",value:function updatePeek(e){e.peek=e.offset>=this.end?n.$EOF:this.charAt(e.offset)}}]),E}(),C=function(_E2){_inherits(C,_E2);var _super3=_createSuper(C);function C(e,t){var _this10;return _classCallCheck(this,C),e instanceof C?(_this10=_super3.call(this,e)).internalState=Object.assign({},e.internalState):(_this10=_super3.call(this,e,t)).internalState=_this10.state,_possibleConstructorReturn(_this10)}return _createClass(C,[{key:"advance",value:function advance(){this.state=this.internalState,_get(_getPrototypeOf(C.prototype),"advance",this).call(this),this.processEscapeSequence()}},{key:"init",value:function init(){_get(_getPrototypeOf(C.prototype),"init",this).call(this),this.processEscapeSequence()}},{key:"clone",value:function clone(){return new C(this)}},{key:"getChars",value:function getChars(e){for(var t=e.clone(),r="";t.internalState.offset3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4?arguments[4]:void 0,i=function i(e){return function(t){for(var _len3=arguments.length,r=new Array(_len3>1?_len3-1:0),_key3=1;_key3<_len3;_key3++)r[_key3-1]=arguments[_key3];return e.apply(void 0,[t.toLowerCase()].concat(r))}},o=n?this.getTagDefinition:i(this.getTagDefinition),a=function a(e){return o(e).contentType},u=n?s:i(s),c=s?function(e,t,r,n){var s=u(e,t,r,n);return void 0!==s?s:a(e)}:a,l=jr.tokenize(e,t,c,r),D=r&&r.canSelfClose||!1,p=r&&r.allowHtmComponentClosingTags||!1,h=new Qr(l.tokens,o,D,p,n).build();return new zr(h.rootNodes,l.errors.concat(h.errors))}}]),Yr}(),Qr=function(){function Qr(e,t,r,n,s){_classCallCheck(this,Qr),this.tokens=e,this.getTagDefinition=t,this.canSelfClose=r,this.allowHtmComponentClosingTags=n,this.isTagNameCaseSensitive=s,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}return _createClass(Qr,[{key:"build",value:function build(){for(;this._peek.type!==jr.TokenType.EOF;)this._peek.type===jr.TokenType.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===jr.TokenType.TAG_CLOSE?(this._closeVoidElement(),this._consumeEndTag(this._advance())):this._peek.type===jr.TokenType.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===jr.TokenType.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===jr.TokenType.TEXT||this._peek.type===jr.TokenType.RAW_TEXT||this._peek.type===jr.TokenType.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===jr.TokenType.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._peek.type===jr.TokenType.DOC_TYPE_START?this._consumeDocType(this._advance()):this._advance();return new zr(this._rootNodes,this._errors)}},{key:"_advance",value:function _advance(){var e=this._peek;return this._index0)return this._errors=this._errors.concat(s.errors),null;var i=new B.ParseSourceSpan(e.sourceSpan.start,n.sourceSpan.end),o=new B.ParseSourceSpan(t.sourceSpan.start,n.sourceSpan.end);return new qr.ExpansionCase(e.parts[0],s.rootNodes,i,e.sourceSpan,o)}},{key:"_collectExpansionExpTokens",value:function _collectExpansionExpTokens(e){for(var t=[],r=[jr.TokenType.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==jr.TokenType.EXPANSION_FORM_START&&this._peek.type!==jr.TokenType.EXPANSION_CASE_EXP_START||r.push(this._peek.type),this._peek.type===jr.TokenType.EXPANSION_CASE_EXP_END){if(!Jr(r,jr.TokenType.EXPANSION_CASE_EXP_START))return this._errors.push(Xr.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(r.pop(),0==r.length)return t}if(this._peek.type===jr.TokenType.EXPANSION_FORM_END){if(!Jr(r,jr.TokenType.EXPANSION_FORM_START))return this._errors.push(Xr.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.pop()}if(this._peek.type===jr.TokenType.EOF)return this._errors.push(Xr.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;t.push(this._advance())}}},{key:"_getText",value:function _getText(e){var t=e.parts[0];if(t.length>0&&"\n"==t[0]){var _e20=this._getParentElement();null!=_e20&&0==_e20.children.length&&this.getTagDefinition(_e20.name).ignoreFirstLf&&(t=t.substring(1))}return t}},{key:"_consumeText",value:function _consumeText(e){var t=this._getText(e);t.length>0&&this._addToParent(new qr.Text(t,e.sourceSpan))}},{key:"_closeVoidElement",value:function _closeVoidElement(){var e=this._getParentElement();e&&this.getTagDefinition(e.name).isVoid&&this._elementStack.pop()}},{key:"_consumeStartTag",value:function _consumeStartTag(e){for(var t=e.parts[0],r=e.parts[1],n=[];this._peek.type===jr.TokenType.ATTR_NAME;)n.push(this._consumeAttr(this._advance()));var s=this._getElementFullName(t,r,this._getParentElement()),i=!1;if(this._peek.type===jr.TokenType.TAG_OPEN_END_VOID){this._advance(),i=!0;var _t19=this.getTagDefinition(s);this.canSelfClose||_t19.canSelfClose||null!==dr.getNsPrefix(s)||_t19.isVoid||this._errors.push(Xr.create(s,e.sourceSpan,'Only void and foreign elements can be self closed "'.concat(e.parts[1],'"')))}else this._peek.type===jr.TokenType.TAG_OPEN_END&&(this._advance(),i=!1);var o=this._peek.sourceSpan.start,a=new B.ParseSourceSpan(e.sourceSpan.start,o),u=new B.ParseSourceSpan(e.sourceSpan.start.moveBy(1),e.sourceSpan.end),c=new qr.Element(s,n,[],a,a,void 0,u);this._pushElement(c),i&&(this._popElement(s),c.endSourceSpan=a)}},{key:"_pushElement",value:function _pushElement(e){var t=this._getParentElement();t&&this.getTagDefinition(t.name).isClosedByChild(e.name)&&this._elementStack.pop(),this._addToParent(e),this._elementStack.push(e)}},{key:"_consumeEndTag",value:function _consumeEndTag(e){var t=this.allowHtmComponentClosingTags&&0===e.parts.length?null:this._getElementFullName(e.parts[0],e.parts[1],this._getParentElement());if(this._getParentElement()&&(this._getParentElement().endSourceSpan=e.sourceSpan),t&&this.getTagDefinition(t).isVoid)this._errors.push(Xr.create(t,e.sourceSpan,'Void elements do not have end tags "'.concat(e.parts[1],'"')));else if(!this._popElement(t)){var _r25='Unexpected closing tag "'.concat(t,'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags');this._errors.push(Xr.create(t,e.sourceSpan,_r25))}}},{key:"_popElement",value:function _popElement(e){for(var _t20=this._elementStack.length-1;_t20>=0;_t20--){var _r26=this._elementStack[_t20];if(!e||(dr.getNsPrefix(_r26.name)?_r26.name==e:_r26.name.toLowerCase()==e.toLowerCase()))return this._elementStack.splice(_t20,this._elementStack.length-_t20),!0;if(!this.getTagDefinition(_r26.name).closedByParent)return!1}return!1}},{key:"_consumeAttr",value:function _consumeAttr(e){var r,n,t=dr.mergeNsAndName(e.parts[0],e.parts[1]),s=e.sourceSpan.end,i="";if(this._peek.type===jr.TokenType.ATTR_QUOTE&&(n=this._advance().sourceSpan.start),this._peek.type===jr.TokenType.ATTR_VALUE){var _e21=this._advance();i=_e21.parts[0],s=_e21.sourceSpan.end,r=_e21.sourceSpan}return this._peek.type===jr.TokenType.ATTR_QUOTE&&(s=this._advance().sourceSpan.end,r=new B.ParseSourceSpan(n,s)),new qr.Attribute(t,i,new B.ParseSourceSpan(e.sourceSpan.start,s),r,e.sourceSpan)}},{key:"_getParentElement",value:function _getParentElement(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null}},{key:"_getParentElementSkippingContainers",value:function _getParentElementSkippingContainers(){for(var e=null,_t21=this._elementStack.length-1;_t21>=0;_t21--){if(!dr.isNgContainer(this._elementStack[_t21].name))return{parent:this._elementStack[_t21],container:e};e=this._elementStack[_t21]}return{parent:null,container:e}}},{key:"_addToParent",value:function _addToParent(e){var t=this._getParentElement();null!=t?t.children.push(e):this._rootNodes.push(e)}},{key:"_insertBeforeContainer",value:function _insertBeforeContainer(e,t,r){if(t){if(e){var _n22=e.children.indexOf(t);e.children[_n22]=r}else this._rootNodes.push(r);r.children.push(t),this._elementStack.splice(this._elementStack.indexOf(t),0,r)}else this._addToParent(r),this._elementStack.push(r)}},{key:"_getElementFullName",value:function _getElementFullName(e,t,r){return""===e&&""===(e=this.getTagDefinition(t).implicitNamespacePrefix||"")&&null!=r&&(e=dr.getNsPrefix(r.name)),dr.mergeNsAndName(e,t)}}]),Qr}();function Jr(e,t){return e.length>0&&e[e.length-1]===t}var Zr=Object.defineProperty({TreeError:Hr,ParseTreeResult:Wr,Parser:Yr},"__esModule",{value:!0}),Kr=Zr,en=Kr.ParseTreeResult,tn=Kr.TreeError,rn=function(_Zr$Parser){_inherits(rn,_Zr$Parser);var _super5=_createSuper(rn);function rn(){return _classCallCheck(this,rn),_super5.call(this,Tr.getHtmlTagDefinition)}return _createClass(rn,[{key:"parse",value:function parse(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4?arguments[4]:void 0;return _get(_getPrototypeOf(rn.prototype),"parse",this).call(this,e,t,r,n,s)}}]),rn}(Zr.Parser),nn=rn,sn=Object.defineProperty({ParseTreeResult:en,TreeError:tn,HtmlParser:nn},"__esModule",{value:!0}),on=dr.TagContentType,an=null,un=function un(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},_t$canSelfClose=t.canSelfClose,r=void 0!==_t$canSelfClose&&_t$canSelfClose,_t$allowHtmComponentC=t.allowHtmComponentClosingTags,n=void 0!==_t$allowHtmComponentC&&_t$allowHtmComponentC,_t$isTagNameCaseSensi=t.isTagNameCaseSensitive,s=void 0!==_t$isTagNameCaseSensi&&_t$isTagNameCaseSensi,i=t.getTagContentType;return(an||(an=new sn.HtmlParser),an).parse(e,"angular-html-parser",{tokenizeExpansionForms:!1,interpolationConfig:void 0,canSelfClose:r,allowHtmComponentClosingTags:n},s,i)},cn=Object.defineProperty({TagContentType:on,parse:un},"__esModule",{value:!0}),ln=B.ParseSourceSpan,Dn=B.ParseLocation,pn=B.ParseSourceFile,hn=Ft.inferParserByLanguage,dn=rr.HTML_ELEMENT_ATTRIBUTES,mn=rr.HTML_TAGS,fn=rr.isUnknownNamespace,gn=nr.hasPragma,En=cr.Node,Cn=pr.parseIeConditionalComment,Tn=hr.locStart,_n=hr.locEnd;function Sn(e,_ref21,a){var t=_ref21.recognizeSelfClosing,r=_ref21.normalizeTagName,n=_ref21.normalizeAttributeName,s=_ref21.allowHtmComponentClosingTags,i=_ref21.isTagNameCaseSensitive,o=_ref21.getTagContentType,u=cn,c=qr.RecursiveVisitor,l=qr.visitAll,D=B.ParseSourceSpan,p=Tr.getHtmlTagDefinition,_u$parse=u.parse(e,{canSelfClose:t,allowHtmComponentClosingTags:s,isTagNameCaseSensitive:i,getTagContentType:o}),h=_u$parse.rootNodes,d=_u$parse.errors;if("vue"===a.parser)if(h.some((function(e){return"docType"===e.type&&"html"===e.value||"element"===e.type&&"html"===e.name.toLowerCase()}))){t=!0,r=!0,n=!0,s=!0,i=!1;var _o4=u.parse(e,{canSelfClose:t,allowHtmComponentClosingTags:s,isTagNameCaseSensitive:i});h=_o4.rootNodes,d=_o4.errors}else{var _r27=function _r27(e){if(!e)return!1;if("element"!==e.type||"template"!==e.name)return!1;var t=e.attrs.find((function(e){return"lang"===e.name})),r=t&&t.value;return!r||"html"===hn(r,a)};if(h.some(_r27))for(var _n23,_o5=function _o5(){return u.parse(e,{canSelfClose:t,allowHtmComponentClosingTags:s,isTagNameCaseSensitive:i})},_a2=function _a2(){return _n23||(_n23=_o5())},_c2=function _c2(e){return _a2().rootNodes.find((function(_ref22){var t=_ref22.startSourceSpan;return t&&t.start.offset===e.startSourceSpan.start.offset}))},_e22=0;_e220){var _d$=d[0],_e24=_d$.msg,_d$$span=_d$.span,_t24=_d$$span.start,_r29=_d$$span.end;throw U(_e24,{start:{line:_t24.line+1,column:_t24.col+1},end:{line:_r29.line+1,column:_r29.col+1}})}var m=function m(e){var t=e.name.startsWith(":")?e.name.slice(1).split(":")[0]:null,r=e.nameSpan.toString(),n=null!==t&&r.startsWith("".concat(t,":")),s=n?r.slice(t.length+1):r;e.name=s,e.namespace=t,e.hasExplicitNamespace=n},f=function f(e,t){var r=e.toLowerCase();return t(r)?r:e};return l(new(function(_c3){_inherits(_class10,_c3);var _super6=_createSuper(_class10);function _class10(){return _classCallCheck(this,_class10),_super6.apply(this,arguments)}return _createClass(_class10,[{key:"visit",value:function visit(e){(function(e){if("element"===e.type){m(e);var _step9,_iterator9=_createForOfIteratorHelper(e.attrs);try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){var _t25=_step9.value;m(_t25),_t25.valueSpan?(_t25.value=_t25.valueSpan.toString(),/["']/.test(_t25.value[0])&&(_t25.value=_t25.value.slice(1,-1))):_t25.value=null}}catch(err){_iterator9.e(err)}finally{_iterator9.f()}}else"comment"===e.type?e.value=e.sourceSpan.toString().slice(4,-3):"text"===e.type&&(e.value=e.sourceSpan.toString())})(e),function(e){if("element"===e.type){var _t26=p(i?e.name:e.name.toLowerCase());!e.namespace||e.namespace===_t26.implicitNamespacePrefix||fn(e)?e.tagDefinition=_t26:e.tagDefinition=p("")}}(e),function(e){"element"===e.type&&(!r||e.namespace&&e.namespace!==e.tagDefinition.implicitNamespacePrefix&&!fn(e)||(e.name=f(e.name,(function(e){return e in mn}))),n)&&function(){var _step10,t=dn[e.name]||Object.create(null),_iterator10=_createForOfIteratorHelper(e.attrs);try{for(_iterator10.s();!(_step10=_iterator10.n()).done;){var _r30=_step10.value;_r30.namespace||(_r30.name=f(_r30.name,(function(r){return e.name in dn&&(r in dn["*"]||r in t)})))}}catch(err){_iterator10.e(err)}finally{_iterator10.f()}}()}(e),function(e){e.sourceSpan&&e.endSourceSpan&&(e.sourceSpan=new D(e.sourceSpan.start,e.endSourceSpan.end))}(e)}}]),_class10}(c)),h),h}function yn(e,t,r){var _ref23=arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?{frontMatter:null,content:e}:$(e),s=_ref23.frontMatter,i=_ref23.content,o=new pn(e,t.filepath),a=new Dn(o,0,0,0),u=a.moveBy(e.length),c={type:"root",sourceSpan:new ln(a,u),children:Sn(i,r,t)};if(s){var _e25=new Dn(o,0,0,0),_t27=_e25.moveBy(s.raw.length);s.sourceSpan=new ln(_e25,_t27),c.children.unshift(s)}var l=new En(c),D=function D(n,s){var i=s.offset,o=yn(e.slice(0,i).replace(/[^\n\r]/g," ")+n,t,r,!1);o.sourceSpan=new ln(s,M(o.children).sourceSpan.end);var a=o.children[0];return a.length===i?o.children.shift():(a.sourceSpan=new ln(a.sourceSpan.start.moveBy(i),a.sourceSpan.end),a.value=a.value.slice(i)),o};return l.map((function(e){if("comment"===e.type){var _t28=Cn(e,D);if(_t28)return _t28}return e}))}function Fn(){var _ref24=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref24$recognizeSelfC=_ref24.recognizeSelfClosing,e=void 0!==_ref24$recognizeSelfC&&_ref24$recognizeSelfC,_ref24$normalizeTagNa=_ref24.normalizeTagName,t=void 0!==_ref24$normalizeTagNa&&_ref24$normalizeTagNa,_ref24$normalizeAttri=_ref24.normalizeAttributeName,r=void 0!==_ref24$normalizeAttri&&_ref24$normalizeAttri,_ref24$allowHtmCompon=_ref24.allowHtmComponentClosingTags,n=void 0!==_ref24$allowHtmCompon&&_ref24$allowHtmCompon,_ref24$isTagNameCaseS=_ref24.isTagNameCaseSensitive,s=void 0!==_ref24$isTagNameCaseS&&_ref24$isTagNameCaseS,i=_ref24.getTagContentType;return{parse:function parse(o,a,u){return yn(o,u,{recognizeSelfClosing:e,normalizeTagName:t,normalizeAttributeName:r,allowHtmComponentClosingTags:n,isTagNameCaseSensitive:s,getTagContentType:i})},hasPragma:gn,astFormat:"html",locStart:Tn,locEnd:_n}}return{parsers:{html:Fn({recognizeSelfClosing:!0,normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0}),angular:Fn(),vue:Fn({recognizeSelfClosing:!0,isTagNameCaseSensitive:!0,getTagContentType:function getTagContentType(e,t,r,n){if("html"!==e.toLowerCase()&&!r&&("template"!==e||n.some((function(_ref25){var e=_ref25.name,t=_ref25.value;return"lang"===e&&"html"!==t}))))return cn.TagContentType.RAW_TEXT}}),lwc:Fn()}}}()}(parserHtml);var prettierHtml=Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_91__.L)(parserHtml.exports),standalone={exports:{}};!function(module,exports){_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_91__.H,module.exports=function(){function e(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}function t(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var n={name:"prettier",version:"2.3.0",description:"Prettier is an opinionated code formatter",bin:"./bin/prettier.js",repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",browser:"./standalone.js",unpkg:"./standalone.js",engines:{node:">=10.13.0"},files:["index.js","standalone.js","src","bin"],dependencies:{"@angular/compiler":"11.2.13","@babel/code-frame":"7.12.13","@babel/parser":"7.14.1","@glimmer/syntax":"0.79.0","@iarna/toml":"2.2.5","@typescript-eslint/typescript-estree":"4.22.0","angular-estree-parser":"2.3.0","angular-html-parser":"1.8.0",camelcase:"6.2.0",chalk:"4.1.1","ci-info":"3.1.1","cjk-regex":"2.0.1",cosmiconfig:"7.0.0",dashify:"2.0.0",diff:"5.0.0",editorconfig:"0.15.3","editorconfig-to-prettier":"0.2.0","escape-string-regexp":"4.0.0",espree:"7.3.1",esutils:"2.0.3","fast-glob":"3.2.5","fast-json-stable-stringify":"2.1.0","find-parent-dir":"0.3.0","flow-parser":"0.150.1","get-stdin":"8.0.0",globby:"11.0.3",graphql:"15.5.0","html-element-attributes":"2.3.0","html-styles":"1.0.0","html-tag-names":"1.1.5","html-void-elements":"1.0.5",ignore:"4.0.6","jest-docblock":"26.0.0",json5:"2.2.0",leven:"3.1.0","lines-and-columns":"1.1.6","linguist-languages":"7.14.0",lodash:"4.17.21",mem:"8.1.1",meriyah:"4.1.5",minimatch:"3.0.4",minimist:"1.2.5","n-readlines":"1.0.1",outdent:"0.8.0","parse-srcset":"ikatyang/parse-srcset#54eb9c1cb21db5c62b4d0e275d7249516df6f0ee","please-upgrade-node":"3.2.0","postcss-less":"3.1.4","postcss-media-query-parser":"0.2.3","postcss-scss":"2.1.1","postcss-selector-parser":"2.2.3","postcss-values-parser":"2.0.1","regexp-util":"1.2.2","remark-footnotes":"2.0.0","remark-math":"3.0.1","remark-parse":"8.0.3",resolve:"1.20.0",semver:"7.3.5","string-width":"4.2.2","strip-ansi":"6.0.0",typescript:"4.2.4","unicode-regex":"3.0.0",unified:"9.2.1",vnopts:"1.0.2",wcwidth:"1.0.1","yaml-unist-parser":"1.3.1"},devDependencies:{"@babel/core":"7.14.0","@babel/preset-env":"7.14.1","@babel/types":"7.14.1","@glimmer/reference":"0.79.0","@rollup/plugin-alias":"3.1.2","@rollup/plugin-babel":"5.3.0","@rollup/plugin-commonjs":"18.1.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"13.0.0","@rollup/plugin-replace":"2.4.2","@types/estree":"0.0.47","@types/node":"15.0.1","babel-jest":"26.6.3","babel-loader":"8.2.2",benchmark:"2.1.4","builtin-modules":"3.2.0","cross-env":"7.0.3",cspell:"4.2.8",eslint:"7.26.0","eslint-config-prettier":"8.3.0","eslint-formatter-friendly":"7.0.0","eslint-plugin-import":"2.22.1","eslint-plugin-jest":"24.3.6","eslint-plugin-prettier-internal-rules":"link:scripts/tools/eslint-plugin-prettier-internal-rules","eslint-plugin-react":"7.23.2","eslint-plugin-unicorn":"31.0.0",execa:"5.0.0",jest:"26.6.3","jest-snapshot-serializer-ansi":"1.0.0","jest-snapshot-serializer-raw":"1.2.0","jest-watch-typeahead":"0.6.3","npm-run-all":"4.1.5","path-browserify":"1.0.1",prettier:"2.2.1","pretty-bytes":"5.6.0",rimraf:"3.0.2",rollup:"2.47.0","rollup-plugin-polyfill-node":"0.6.2","rollup-plugin-terser":"7.0.2",shelljs:"0.8.4","snapshot-diff":"0.8.1","synchronous-promise":"2.0.15",tempy:"1.0.1","terser-webpack-plugin":"5.1.1",webpack:"5.36.2"},scripts:{prepublishOnly:'echo "Error: must publish from dist/" && exit 1',"prepare-release":"yarn && yarn build && yarn test:dist",test:"jest","test:dev-package":"cross-env INSTALL_PACKAGE=1 jest","test:dist":"cross-env NODE_ENV=production jest","test:dist-standalone":"cross-env NODE_ENV=production TEST_STANDALONE=1 jest","test:integration":"jest tests/integration","perf:repeat":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:repeat-inspect":"yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:benchmark":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-benchmark --loglevel debug ${PERF_FILE:-./index.js} > /dev/null",lint:"run-p lint:*","lint:typecheck":"tsc","lint:eslint":"cross-env EFF_NO_LINK_RULES=true eslint . --format friendly","lint:changelog":"node ./scripts/lint-changelog.js","lint:prettier":'prettier . "!test*" --check',"lint:dist":'eslint --no-eslintrc --no-ignore --no-inline-config --env=es6,browser --parser-options=ecmaVersion:2018 "dist/!(bin-prettier|index|third-party).js"',"lint:spellcheck":'cspell "**/*" ".github/**/*"',"lint:deps":"node ./scripts/check-deps.js",fix:"run-s fix:eslint fix:prettier","fix:eslint":"yarn lint:eslint --fix","fix:prettier":"yarn lint:prettier --write",build:"node --max-old-space-size=3072 ./scripts/build/build.js","build-docs":"node ./scripts/build-docs.js"}},r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_91__.H?_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_91__.H:"undefined"!=typeof self?self:{};function o(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(e){var t={exports:{}};return e(t,t.exports),t.exports}var y,u=i((function(e,t){function n(){}function r(e,t,n,r,o){for(var i=0,u=t.length,s=0,a=0;ie.length?n:e})),c.value=e.join(p)}else c.value=e.join(n.slice(s,s+c.count));s+=c.count,c.added||(a+=c.count)}}var f=t[u-1];return u>1&&"string"==typeof f.value&&(f.added||f.removed)&&e.equals("",f.value)&&(t[u-2].value+=f.value,t.pop()),t}function o(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,n.prototype={diff:function diff(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.callback;"function"==typeof n&&(i=n,n={}),this.options=n;var u=this;function s(e){return i?(setTimeout((function(){i(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var a=(t=this.removeEmpty(this.tokenize(t))).length,c=e.length,l=1,p=a+c,f=[{newPos:-1,components:[]}],d=this.extractCommon(f[0],t,e,0);if(f[0].newPos+1>=a&&d+1>=c)return s([{value:this.join(t),count:t.length}]);function h(){for(var n=-1*l;n<=l;n+=2){var i=void 0,p=f[n-1],d=f[n+1],h=(d?d.newPos:0)-n;p&&(f[n-1]=void 0);var m=p&&p.newPos+1=a&&h+1>=c)return s(r(u,i.components,t,e,u.useLongestToken));f[n]=i}else f[n]=void 0}l++}if(i)!function e(){setTimeout((function(){if(l>p)return i();h()||e()}),0)}();else for(;l<=p;){var m=h();if(m)return m}},pushComponent:function pushComponent(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function extractCommon(e,t,n,r){for(var o=t.length,i=n.length,u=e.newPos,s=u-r,a=0;u+11&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],o=[],i=0;function u(){var e={};for(o.push(e);i2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=(0,D.parsePatch)(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var r,o,i=e.split(/\r\n|[\n\v\f\r\x85]/),u=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],s=t.hunks,a=n.compareLine||function(e,t,n,r){return t===r},c=0,l=n.fuzzFactor||0,p=0,f=0;function d(e,t){for(var n=0;n0?r[0]:" ",u=r.length>0?r.substr(1):r;if(" "===o||"-"===o){if(!a(t+1,i[t],o,u)&&++c>l)return!1;t++}}return!0}for(var h=0;h0?w[0]:" ",B=w.length>0?w.substr(1):w,k=F.linedelimiters[S];if(" "===T)x++;else if("-"===T)i.splice(x,1),u.splice(x,1);else if("+"===T)i.splice(x,0,B),u.splice(x,0,k),x++;else if("\\"===T){var N=F.lines[S-1]?F.lines[S-1][0]:null;"+"===N?r=!0:"-"===N&&(o=!0)}}}if(r)for(;!i[i.length-1];)i.pop(),u.pop();else o&&(i.push(""),u.push("\n"));for(var P=0;Pe.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?a(p.lines.slice(-u.context)):[],l-=d.length,f-=d.length)}(i=d).push.apply(i,B(o.map((function(e){return(t.added?"+":"-")+e})))),t.added?m+=o.length:h+=o.length}else{if(l)if(o.length<=2*u.context&&e=s.length-2&&o.length<=u.context){var b=/\n$/.test(n),C=/\n$/.test(r),v=0==o.length&&d.length>E.oldLines;!b&&v&&n.length>0&&d.splice(E.oldLines,0,"\\ No newline at end of file"),(b||v)&&C||d.push("\\ No newline at end of file")}c.push(E),l=0,f=0,d=[]}h+=o.length,m+=o.length}},y=0;ye.length)return!1;for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n"):r.removed&&t.push(""),t.push(ce(r.value)),r.added?t.push(""):r.removed&&t.push("")}return t.join("")};function ce(e){var t=e;return(t=(t=(t=t.replace(/&/g,"&")).replace(//g,">")).replace(/"/g,""")}var le=Object.defineProperty({convertChangesToXML:ae},"__esModule",{value:!0}),pe=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Diff",{enumerable:!0,get:function get(){return n.default}}),Object.defineProperty(t,"diffChars",{enumerable:!0,get:function get(){return s.diffChars}}),Object.defineProperty(t,"diffWords",{enumerable:!0,get:function get(){return l.diffWords}}),Object.defineProperty(t,"diffWordsWithSpace",{enumerable:!0,get:function get(){return l.diffWordsWithSpace}}),Object.defineProperty(t,"diffLines",{enumerable:!0,get:function get(){return p.diffLines}}),Object.defineProperty(t,"diffTrimmedLines",{enumerable:!0,get:function get(){return p.diffTrimmedLines}}),Object.defineProperty(t,"diffSentences",{enumerable:!0,get:function get(){return f.diffSentences}}),Object.defineProperty(t,"diffCss",{enumerable:!0,get:function get(){return d.diffCss}}),Object.defineProperty(t,"diffJson",{enumerable:!0,get:function get(){return h.diffJson}}),Object.defineProperty(t,"canonicalize",{enumerable:!0,get:function get(){return h.canonicalize}}),Object.defineProperty(t,"diffArrays",{enumerable:!0,get:function get(){return m.diffArrays}}),Object.defineProperty(t,"applyPatch",{enumerable:!0,get:function get(){return F.applyPatch}}),Object.defineProperty(t,"applyPatches",{enumerable:!0,get:function get(){return F.applyPatches}}),Object.defineProperty(t,"parsePatch",{enumerable:!0,get:function get(){return D.parsePatch}}),Object.defineProperty(t,"merge",{enumerable:!0,get:function get(){return ie.merge}}),Object.defineProperty(t,"structuredPatch",{enumerable:!0,get:function get(){return I.structuredPatch}}),Object.defineProperty(t,"createTwoFilesPatch",{enumerable:!0,get:function get(){return I.createTwoFilesPatch}}),Object.defineProperty(t,"createPatch",{enumerable:!0,get:function get(){return I.createPatch}}),Object.defineProperty(t,"convertChangesToDMP",{enumerable:!0,get:function get(){return se.convertChangesToDMP}}),Object.defineProperty(t,"convertChangesToXML",{enumerable:!0,get:function get(){return le.convertChangesToXML}});var n=function(e){return e&&e.__esModule?e:{default:e}}(u)}));function fe(e){return{type:"concat",parts:e}}function de(e){return{type:"indent",contents:e}}function he(e,t){return{type:"align",contents:t,n:e}}function me(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"group",id:t.id,contents:e,break:Boolean(t.shouldBreak),expandedStates:t.expandedStates}}var ge={type:"break-parent"},ye={type:"line",hard:!0},De={type:"line",hard:!0,literal:!0},Ee=fe([ye,ge]),be=fe([De,ge]),Ce={concat:fe,join:function join(e,t){for(var n=[],_r31=0;_r312&&void 0!==arguments[2]?arguments[2]:{}).groupId}},trim:{type:"trim"},indent:de,indentIfBreak:function indentIfBreak(e,t){return{type:"indent-if-break",contents:e,groupId:t.groupId,negate:t.negate}},align:he,addAlignmentToDoc:function addAlignmentToDoc(e,t,n){var r=e;if(t>0){for(var _e26=0;_e260&&void 0!==arguments[0]?arguments[0]:{}).onlyFirst,e=void 0!==_ref26$onlyFirst&&_ref26$onlyFirst,t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}(),""):e},Ae=function Ae(e){return!Number.isNaN(e)&&e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)},Fe=Ae,xe=Ae;Fe.default=xe;var Se=function Se(e){if("string"!=typeof e||0===e.length)return 0;if(0===(e=ve(e)).length)return 0;e=e.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g," ");for(var t=0,_n25=0;_n25=127&&_r32<=159||_r32>=768&&_r32<=879||(_r32>65535&&_n25++,t+=Fe(_r32)?2:1)}return t},we=Se,Te=Se;we.default=Te;var Be=function Be(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},ke=function ke(e){return e[e.length-1]},Ne=function Ne(e){for(var t=-1,n=null==e?0:e.length,r={};++t1)for(var n=1;n)?=?)"),s("XRANGEIDENTIFIERLOOSE","".concat(o[i.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),s("XRANGEIDENTIFIER","".concat(o[i.NUMERICIDENTIFIER],"|x|X|\\*")),s("XRANGEPLAIN","[v=\\s]*(".concat(o[i.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(o[i.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(o[i.XRANGEIDENTIFIER],")")+"(?:".concat(o[i.PRERELEASE],")?").concat(o[i.BUILD],"?")+")?)?"),s("XRANGEPLAINLOOSE","[v=\\s]*(".concat(o[i.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(o[i.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(o[i.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(o[i.PRERELEASELOOSE],")?").concat(o[i.BUILD],"?")+")?)?"),s("XRANGE","^".concat(o[i.GTLT],"\\s*").concat(o[i.XRANGEPLAIN],"$")),s("XRANGELOOSE","^".concat(o[i.GTLT],"\\s*").concat(o[i.XRANGEPLAINLOOSE],"$")),s("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:$|[^\\d])"),s("COERCERTL",o[i.COERCE],!0),s("LONETILDE","(?:~>?)"),s("TILDETRIM","(\\s*)".concat(o[i.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",s("TILDE","^".concat(o[i.LONETILDE]).concat(o[i.XRANGEPLAIN],"$")),s("TILDELOOSE","^".concat(o[i.LONETILDE]).concat(o[i.XRANGEPLAINLOOSE],"$")),s("LONECARET","(?:\\^)"),s("CARETTRIM","(\\s*)".concat(o[i.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",s("CARET","^".concat(o[i.LONECARET]).concat(o[i.XRANGEPLAIN],"$")),s("CARETLOOSE","^".concat(o[i.LONECARET]).concat(o[i.XRANGEPLAINLOOSE],"$")),s("COMPARATORLOOSE","^".concat(o[i.GTLT],"\\s*(").concat(o[i.LOOSEPLAIN],")$|^$")),s("COMPARATOR","^".concat(o[i.GTLT],"\\s*(").concat(o[i.FULLPLAIN],")$|^$")),s("COMPARATORTRIM","(\\s*)".concat(o[i.GTLT],"\\s*(").concat(o[i.LOOSEPLAIN],"|").concat(o[i.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",s("HYPHENRANGE","^\\s*(".concat(o[i.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(o[i.XRANGEPLAIN],")")+"\\s*$"),s("HYPHENRANGELOOSE","^\\s*(".concat(o[i.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(o[i.XRANGEPLAINLOOSE],")")+"\\s*$"),s("STAR","(<|>)?=?\\s*\\*"),s("GTE0","^\\s*>=\\s*0.0.0\\s*$"),s("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")})),ut=["includePrerelease","loose","rtl"],st=function st(e){return e?"object"!=_typeof(e)?{loose:!0}:ut.filter((function(t){return e[t]})).reduce((function(e,t){return e[t]=!0,e}),{}):{}},at=/^[0-9]+$/,ct=function ct(e,t){var n=at.test(e),r=at.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:ept)throw new TypeError("version is longer than ".concat(pt," characters"));rt("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;var n=e.trim().match(t.loose?dt[ht.LOOSE]:dt[ht.FULL]);if(!n)throw new TypeError("Invalid Version: ".concat(e));if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>ft||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ft||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ft||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var _t29=+e;if(_t29>=0&&_t29=0;)"number"==typeof this.prerelease[_e27]&&(this.prerelease[_e27]++,_e27=-2);-1===_e27&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: ".concat(e))}return this.format(),this.raw=this.version,this}}]),gt}(),yt=gt,Dt=function Dt(e,t,n){return new yt(e,n).compare(new yt(t,n))},Et=function Et(e,t,n){return Dt(e,t,n)<0},St=function St(e,t,n){return Dt(e,t,n)>=0},wt=i((function(e,t){function n(){for(var e=[],t=0;t0&&void 0!==arguments[0]?arguments[0]:{},_ref27$plugins=_ref27.plugins,t=void 0===_ref27$plugins?[]:_ref27$plugins,_ref27$showUnreleased=_ref27.showUnreleased,n=void 0!==_ref27$showUnreleased&&_ref27$showUnreleased,_ref27$showDeprecated=_ref27.showDeprecated,r=void 0!==_ref27$showDeprecated&&_ref27$showDeprecated,_ref27$showInternal=_ref27.showInternal,o=void 0!==_ref27$showInternal&&_ref27$showInternal,i=Lt.split("-",1)[0],u=t.reduce((function(e,t){return[].concat(_toConsumableArray(e),_toConsumableArray(t.languages||[]))}),[]).filter(a),s=function(e,t){return Object.entries(e).map((function(_ref28){var _ref29=_slicedToArray(_ref28,2),e=_ref29[0],n=_ref29[1];return Object.assign(_defineProperty({},t,e),n)}))}(Object.assign.apply(Object,[{}].concat(_toConsumableArray(t.map((function(_ref30){return _ref30.options}))),[_t])),"name").filter((function(e){return a(e)&&c(e)})).sort((function(e,t){return e.name===t.name?0:e.name=0&&u2&&void 0!==arguments[2]?arguments[2]:{},r=Wt(e,n.backwards?t-1:t,n);return r!==Jt(e,r,n)}function Yt(e,t){for(var n=null,r=t;r!==n;)n=r,r=Ht(e,r=Ut(e,r)),r=Wt(e,r);return!1!==(r=Jt(e,r=Gt(e,r)))&&Xt(e,r)}function Kt(e,t){for(var n=null,r=t;r!==n;)n=r,r=Jt(e,r=Gt(e,r=Ht(e,r=Wt(e,r))));return r}function Qt(e,t,n){return Kt(e,n(t))}function Zt(e,t){for(var r=0,_o8=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;_o8(n.match(u.regex)||[]).length?u.quote:i.quote),s}function tn(e,t,n){var r='"'===t?"'":'"',o=e.replace(/\\([\S\s])|(["'])/g,(function(e,o,i){return o===r?o:i===t?"\\"+i:i||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(o)?o:"\\"+o)}));return t+o+t}function nn(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=function(e){var t=e.type||e.kind||"(unknown type)",n=String(e.name||e.id&&("object"==_typeof(e.id)?e.id.name:e.id)||e.key&&("object"==_typeof(e.key)?e.key.name:e.key)||e.value&&("object"==_typeof(e.value)?"":String(e.value))||e.operator||"");return n.length>20&&(n=n.slice(0,19)+"…"),t+(n?" "+n:"")}(e)}var rn={inferParserByLanguage:function inferParserByLanguage(e,t){var n=Rt({plugins:t.plugins}).languages,r=n.find((function(_ref31){return _ref31.name.toLowerCase()===e}))||n.find((function(_ref32){var t=_ref32.aliases;return Array.isArray(t)&&t.includes(e)}))||n.find((function(_ref33){var t=_ref33.extensions;return Array.isArray(t)&&t.includes(".".concat(e))}));return r&&r.parsers[0]},replaceEndOfLineWith:function replaceEndOfLineWith(e,t){var _step13,n=[],_iterator13=_createForOfIteratorHelper(e.split("\n"));try{for(_iterator13.s();!(_step13=_iterator13.n()).done;){var _r35=_step13.value;n.length>0&&n.push(t),n.push(_r35)}}catch(err){_iterator13.e(err)}finally{_iterator13.f()}return n},getStringWidth:function getStringWidth(e){return e?Vt.test(e)?we(e):e.length:0},getMaxContinuousCount:function getMaxContinuousCount(e,t){var n=e.match(new RegExp("(".concat(Be(t),")+"),"g"));return null===n?0:n.reduce((function(e,n){return Math.max(e,n.length/t.length)}),0)},getMinNotPresentContinuousCount:function getMinNotPresentContinuousCount(e,t){var n=e.match(new RegExp("(".concat(Be(t),")+"),"g"));if(null===n)return 0;var _step14,r=new Map,o=0,_iterator14=_createForOfIteratorHelper(n);try{for(_iterator14.s();!(_step14=_iterator14.n()).done;){var _n30=_step14.value.length/t.length;r.set(_n30,!0),_n30>o&&(o=_n30)}}catch(err){_iterator14.e(err)}finally{_iterator14.f()}for(var _e28=1;_e282&&void 0!==arguments[2]?arguments[2]:{};return Wt(e,n.backwards?t-1:t,n)!==t},getAlignmentSize:Zt,getIndentSize:function getIndentSize(e,t){var n=e.lastIndexOf("\n");return-1===n?0:Zt(e.slice(n+1).match(/^[\t ]*/)[0],t)},getPreferredQuote:en,printString:function printString(e,t){return tn(e.slice(1,-1),"json"===t.parser||"json5"===t.parser&&"preserve"===t.quoteProps&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":en(e,t.singleQuote?"'":'"'),!("css"===t.parser||"less"===t.parser||"scss"===t.parser||t.__embeddedInHtml))},printNumber:function printNumber(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")},makeString:tn,addLeadingComment:function addLeadingComment(e,t){t.leading=!0,t.trailing=!1,nn(e,t)},addDanglingComment:function addDanglingComment(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),nn(e,t)},addTrailingComment:function addTrailingComment(e,t){t.leading=!1,t.trailing=!0,nn(e,t)},isFrontMatterNode:function isFrontMatterNode(e){return e&&"front-matter"===e.type},getShebang:function getShebang(e){if(!e.startsWith("#!"))return"";var t=e.indexOf("\n");return-1===t?e:e.slice(0,t)},isNonEmptyArray:function isNonEmptyArray(e){return Array.isArray(e)&&e.length>0},createGroupIdMapper:function createGroupIdMapper(e){var t=new WeakMap;return function(n){return t.has(n)||t.set(n,Symbol(e)),t.get(n)}}},on={guessEndOfLine:function guessEndOfLine(e){var t=e.indexOf("\r");return t>=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"},convertEndOfLineToChars:function convertEndOfLineToChars(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}},countEndOfLineChars:function countEndOfLineChars(e,t){var n;if("\n"===t)n=/\n/g;else if("\r"===t)n=/\r/g;else{if("\r\n"!==t)throw new Error('Unexpected "eol" '.concat(JSON.stringify(t),"."));n=/\r\n/g}var r=e.match(n);return r?r.length:0},normalizeEndOfLine:function normalizeEndOfLine(e){return e.replace(/\r\n?/g,"\n")}},un=Ce.literalline,sn=function sn(e){return Array.isArray(e)||e&&"concat"===e.type},an=function an(e){if(Array.isArray(e))return e;if("concat"!==e.type&&"fill"!==e.type)throw new Error("Expect doc type to be `concat` or `fill`.");return e.parts},cn={};function ln(e,t,n,r){for(var o=[e];o.length>0;){var _e30=o.pop();if(_e30!==cn){if(n&&o.push(_e30,cn),!t||!1!==t(_e30))if(sn(_e30)||"fill"===_e30.type)for(var _t30=an(_e30),_e31=_t30.length-1;_e31>=0;--_e31)o.push(_t30[_e31]);else if("if-break"===_e30.type)_e30.flatContents&&o.push(_e30.flatContents),_e30.breakContents&&o.push(_e30.breakContents);else if("group"===_e30.type&&_e30.expandedStates)if(r)for(var _t31=_e30.expandedStates.length-1;_t31>=0;--_t31)o.push(_e30.expandedStates[_t31]);else o.push(_e30.contents);else _e30.contents&&o.push(_e30.contents)}else n(o.pop())}}function pn(e,t){var n=new Map;return r(e);function r(e){if(n.has(e))return n.get(e);var o=function(e){if(Array.isArray(e))return t(e.map(r));if("concat"===e.type||"fill"===e.type){var _n31=e.parts.map(r);return t(Object.assign({},e,{parts:_n31}))}if("if-break"===e.type){var _n32=e.breakContents&&r(e.breakContents),_o9=e.flatContents&&r(e.flatContents);return t(Object.assign({},e,{breakContents:_n32,flatContents:_o9}))}if("group"===e.type&&e.expandedStates){var _n33=e.expandedStates.map(r),_o10=_n33[0];return t(Object.assign({},e,{contents:_o10,expandedStates:_n33}))}if(e.contents){var _n34=r(e.contents);return t(Object.assign({},e,{contents:_n34}))}return t(e)}(e);return n.set(e,o),o}}function fn(e,t,n){var r=n,o=!1;return ln(e,(function(e){var n=t(e);if(void 0!==n&&(o=!0,r=n),o)return!1})),r}function dn(e){return!("group"!==e.type||!e.break)||!("line"!==e.type||!e.hard)||"break-parent"===e.type||void 0}function hn(e){if(e.length>0){var _t32=ke(e);_t32.expandedStates||_t32.break||(_t32.break="propagated")}return null}function mn(e){return"line"!==e.type||e.hard?"if-break"===e.type?e.flatContents||"":e:e.soft?"":" "}var gn=function gn(e,t){return e&&"line"===e.type&&e.hard&&t&&"break-parent"===t.type};function yn(e){if(!e)return e;if(sn(e)||"fill"===e.type){for(var _t33=an(e);_t33.length>1&&gn.apply(void 0,_toConsumableArray(_t33.slice(-2)));)_t33.length-=2;if(_t33.length>0){var _e32=yn(ke(_t33));_t33[_t33.length-1]=_e32}return Array.isArray(e)?_t33:Object.assign({},e,{parts:_t33})}switch(e.type){case"align":case"indent":case"indent-if-break":case"group":case"line-suffix":case"label":var _t34=yn(e.contents);return Object.assign({},e,{contents:_t34});case"if-break":var _t35=yn(e.breakContents),_n35=yn(e.flatContents);return Object.assign({},e,{breakContents:_t35,flatContents:_n35})}return e}function Dn(e){return pn(e,(function(e){return function(e){switch(e.type){case"fill":if(0===e.parts.length||e.parts.every((function(e){return""===e})))return"";break;case"group":if(!(e.contents||e.id||e.break||e.expandedStates))return"";if("group"===e.contents.type&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case"align":case"indent":case"indent-if-break":case"line-suffix":if(!e.contents)return"";break;case"if-break":if(!e.flatContents&&!e.breakContents)return""}if(!sn(e))return e;var _step15,t=[],_iterator15=_createForOfIteratorHelper(an(e));try{for(_iterator15.s();!(_step15=_iterator15.n()).done;){var _n36=_step15.value;if(_n36){var _ref35=_toArray(sn(_n36)?an(_n36):[_n36]),_e33=_ref35[0],_r37=_ref35.slice(1);"string"==typeof _e33&&"string"==typeof ke(t)?t[t.length-1]+=_e33:t.push(_e33),t.push.apply(t,_toConsumableArray(_r37))}}}catch(err){_iterator15.e(err)}finally{_iterator15.f()}return 0===t.length?"":1===t.length?t[0]:Array.isArray(e)?t:Object.assign({},e,{parts:t})}(e)}))}function En(e){for(var t=[],n=e.filter(Boolean);n.length>0;){var _e34=n.shift();_e34&&(sn(_e34)?n.unshift.apply(n,_toConsumableArray(an(_e34))):t.length>0&&"string"==typeof ke(t)&&"string"==typeof _e34?t[t.length-1]+=_e34:t.push(_e34))}return t}var Bn,bn={isConcat:sn,getDocParts:an,willBreak:function willBreak(e){return fn(e,dn,!1)},traverseDoc:ln,findInDoc:fn,mapDoc:pn,propagateBreaks:function propagateBreaks(e){var t=new Set,n=[];ln(e,(function(e){if("break-parent"===e.type&&hn(n),"group"===e.type){if(n.push(e),t.has(e))return!1;t.add(e)}}),(function(e){"group"===e.type&&n.pop().break&&hn(n)}),!0)},removeLines:function removeLines(e){return pn(e,mn)},stripTrailingHardline:function stripTrailingHardline(e){return yn(Dn(e))},normalizeParts:En,normalizeDoc:function normalizeDoc(e){return pn(e,(function(e){return Array.isArray(e)?En(e):e.parts?Object.assign({},e,{parts:En(e.parts)}):e}))},cleanDoc:Dn,replaceNewlinesWithLiterallines:function replaceNewlinesWithLiterallines(e){return pn(e,(function(e){return"string"==typeof e&&e.includes("\n")?e.split(/(\n)/g).map((function(e,t){return t%2==0?e:un})):e}))}},Cn=rn.getStringWidth,vn=rn.getLast,An=on.convertEndOfLineToChars,Fn=Ce.fill,xn=Ce.cursor,Sn=Ce.indent,wn=bn.isConcat,Tn=bn.getDocParts;function kn(e,t){return Pn(e,{type:"indent"},t)}function Nn(e,t,n){return t===Number.NEGATIVE_INFINITY?e.root||{value:"",length:0,queue:[]}:t<0?Pn(e,{type:"dedent"},n):t?"root"===t.type?Object.assign({},e,{root:e}):Pn(e,{type:"string"==typeof t?"stringAlign":"numberAlign",n:t},n):e}function Pn(e,t,n){var _step16,r="dedent"===t.type?e.queue.slice(0,-1):[].concat(_toConsumableArray(e.queue),[t]),o="",i=0,u=0,s=0,_iterator16=_createForOfIteratorHelper(r);try{for(_iterator16.s();!(_step16=_iterator16.n()).done;){var _e35=_step16.value;switch(_e35.type){case"indent":l(),n.useTabs?a(1):c(n.tabWidth);break;case"stringAlign":l(),o+=_e35.n,i+=_e35.n.length;break;case"numberAlign":u+=1,s+=_e35.n;break;default:throw new Error("Unexpected type '".concat(_e35.type,"'"))}}}catch(err){_iterator16.e(err)}finally{_iterator16.f()}return p(),Object.assign({},e,{value:o,length:i,queue:r});function a(e){o+="\t".repeat(e),i+=n.tabWidth*e}function c(e){o+=" ".repeat(e),i+=e}function l(){n.useTabs?(u>0&&a(u),f()):p()}function p(){s>0&&c(s),f()}function f(){u=0,s=0}}function On(e){if(0===e.length)return 0;for(var t=0;e.length>0&&"string"==typeof vn(e)&&/^[\t ]*$/.test(vn(e));)t+=e.pop().length;if(e.length>0&&"string"==typeof vn(e)){var _n37=vn(e).replace(/[\t ]*$/,"");t+=vn(e).length-_n37.length,e[e.length-1]=_n37}return t}function In(e,t,n,r,o,i){for(var u=t.length,s=[e],a=[];n>=0;)if(0!==s.length){var _s$pop2=_slicedToArray(s.pop(),3),_e36=_s$pop2[0],_c4=_s$pop2[1],_l2=_s$pop2[2];if("string"==typeof _l2)a.push(_l2),n-=Cn(_l2);else if(wn(_l2))for(var _t36=Tn(_l2),_n38=_t36.length-1;_n38>=0;_n38--)s.push([_e36,_c4,_t36[_n38]]);else switch(_l2.type){case"indent":s.push([kn(_e36,r),_c4,_l2.contents]);break;case"align":s.push([Nn(_e36,_l2.n,r),_c4,_l2.contents]);break;case"trim":n+=On(a);break;case"group":if(i&&_l2.break)return!1;var _t37=_l2.break?1:_c4;s.push([_e36,_t37,_l2.expandedStates&&1===_t37?vn(_l2.expandedStates):_l2.contents]),_l2.id&&(Bn[_l2.id]=_t37);break;case"fill":for(var _t38=_l2.parts.length-1;_t38>=0;_t38--)s.push([_e36,_c4,_l2.parts[_t38]]);break;case"if-break":case"indent-if-break":var _t39=_l2.groupId?Bn[_l2.groupId]:_c4;if(1===_t39){var _t40="if-break"===_l2.type?_l2.breakContents:_l2.negate?_l2.contents:Sn(_l2.contents);_t40&&s.push([_e36,_c4,_t40])}if(2===_t39){var _t41="if-break"===_l2.type?_l2.flatContents:_l2.negate?Sn(_l2.contents):_l2.contents;_t41&&s.push([_e36,_c4,_t41])}break;case"line":switch(_c4){case 2:if(!_l2.hard){_l2.soft||(a.push(" "),n-=1);break}return!0;case 1:return!0}break;case"line-suffix":o=!0;break;case"line-suffix-boundary":if(o)return!1;break;case"label":s.push([_e36,_c4,_l2.contents])}}else{if(0===u)return!0;s.push(t[u-1]),u--}return!1}var jn={printDocToString:function printDocToString(e,t){Bn={};for(var n=t.printWidth,r=An(t.endOfLine),o=0,i=[[{value:"",length:0,queue:[]},1,e]],u=[],s=!1,a=[];i.length>0;){var _i$pop2=_slicedToArray(i.pop(),3),_e37=_i$pop2[0],_c5=_i$pop2[1],_l3=_i$pop2[2];if("string"==typeof _l3){var _e38="\n"!==r?_l3.replace(/\n/g,r):_l3;u.push(_e38),o+=Cn(_e38)}else if(wn(_l3))for(var _t42=Tn(_l3),_n39=_t42.length-1;_n39>=0;_n39--)i.push([_e37,_c5,_t42[_n39]]);else switch(_l3.type){case"cursor":u.push(xn.placeholder);break;case"indent":i.push([kn(_e37,t),_c5,_l3.contents]);break;case"align":i.push([Nn(_e37,_l3.n,t),_c5,_l3.contents]);break;case"trim":o-=On(u);break;case"group":switch(_c5){case 2:if(!s){i.push([_e37,_l3.break?1:2,_l3.contents]);break}case 1:s=!1;var _r38=[_e37,2,_l3.contents],_u4=n-o,_c6=a.length>0;if(!_l3.break&&In(_r38,i,_u4,t,_c6))i.push(_r38);else if(_l3.expandedStates){var _n40=vn(_l3.expandedStates);if(_l3.break){i.push([_e37,1,_n40]);break}for(var _r39=1;_r39<_l3.expandedStates.length+1;_r39++){if(_r39>=_l3.expandedStates.length){i.push([_e37,1,_n40]);break}var _n41=[_e37,2,_l3.expandedStates[_r39]];if(In(_n41,i,_u4,t,_c6)){i.push(_n41);break}}}else i.push([_e37,1,_l3.contents])}_l3.id&&(Bn[_l3.id]=vn(i)[1]);break;case"fill":var _r40=n-o,_u5=_l3.parts;if(0===_u5.length)break;var _u6=_slicedToArray(_u5,2),_s15=_u6[0],_p2=_u6[1],_f2=[_e37,2,_s15],_d2=[_e37,1,_s15],_h2=In(_f2,[],_r40,t,a.length>0,!0);if(1===_u5.length){_h2?i.push(_f2):i.push(_d2);break}var _m2=[_e37,2,_p2],_g2=[_e37,1,_p2];if(2===_u5.length){_h2?i.push(_m2,_f2):i.push(_g2,_d2);break}_u5.splice(0,2);var _y2=[_e37,_c5,Fn(_u5)];In([_e37,2,[_s15,_p2,_u5[0]]],[],_r40,t,a.length>0,!0)?i.push(_y2,_m2,_f2):_h2?i.push(_y2,_g2,_f2):i.push(_y2,_g2,_d2);break;case"if-break":case"indent-if-break":var _t43=_l3.groupId?Bn[_l3.groupId]:_c5;if(1===_t43){var _t44="if-break"===_l3.type?_l3.breakContents:_l3.negate?_l3.contents:Sn(_l3.contents);_t44&&i.push([_e37,_c5,_t44])}if(2===_t43){var _t45="if-break"===_l3.type?_l3.flatContents:_l3.negate?Sn(_l3.contents):_l3.contents;_t45&&i.push([_e37,_c5,_t45])}break;case"line-suffix":a.push([_e37,_c5,_l3.contents]);break;case"line-suffix-boundary":a.length>0&&i.push([_e37,_c5,{type:"line",hard:!0}]);break;case"line":switch(_c5){case 2:if(!_l3.hard){_l3.soft||(u.push(" "),o+=1);break}s=!0;case 1:if(a.length>0){i.push.apply(i,[[_e37,_c5,_l3]].concat(_toConsumableArray(a.reverse()))),a=[];break}_l3.literal?_e37.root?(u.push(r,_e37.root.value),o=_e37.root.length):(u.push(r),o=0):(o-=On(u),u.push(r+_e37.value),o=_e37.length)}break;case"label":i.push([_e37,_c5,_l3.contents])}0===i.length&&a.length>0&&(i.push.apply(i,_toConsumableArray(a.reverse())),a=[])}var c=u.indexOf(xn.placeholder);if(-1!==c){var _e39=u.indexOf(xn.placeholder,c+1),_t46=u.slice(0,c).join(""),_n42=u.slice(c+1,_e39).join("");return{formatted:_t46+_n42+u.slice(_e39+1).join(""),cursorNodeStart:_t46.length,cursorNodeText:_n42}}return{formatted:u.join("")}}},Ln=bn.isConcat,_n=bn.getDocParts;function Mn(e){if(!e)return"";if(Ln(e)){var _step17,_t47=[],_iterator17=_createForOfIteratorHelper(_n(e));try{for(_iterator17.s();!(_step17=_iterator17.n()).done;){var _n43=_step17.value;if(Ln(_n43))_t47.push.apply(_t47,_toConsumableArray(Mn(_n43).parts));else{var _e40=Mn(_n43);""!==_e40&&_t47.push(_e40)}}}catch(err){_iterator17.e(err)}finally{_iterator17.f()}return{type:"concat",parts:_t47}}return"if-break"===e.type?Object.assign({},e,{breakContents:Mn(e.breakContents),flatContents:Mn(e.flatContents)}):"group"===e.type?Object.assign({},e,{contents:Mn(e.contents),expandedStates:e.expandedStates&&e.expandedStates.map(Mn)}):"fill"===e.type?{type:"fill",parts:e.parts.map(Mn)}:e.contents?Object.assign({},e,{contents:Mn(e.contents)}):e}var Rn={builders:Ce,printer:jn,utils:bn,debug:{printDocToDebug:function printDocToDebug(e){var t=Object.create(null),n=new Set;return function e(t,n,o){if("string"==typeof t)return JSON.stringify(t);if(Ln(t)){var _n44=_n(t).map(e).filter(Boolean);return 1===_n44.length?_n44[0]:"[".concat(_n44.join(", "),"]")}if("line"===t.type){var _e41=Array.isArray(o)&&o[n+1]&&"break-parent"===o[n+1].type;return t.literal?_e41?"literalline":"literallineWithoutBreakParent":t.hard?_e41?"hardline":"hardlineWithoutBreakParent":t.soft?"softline":"line"}if("break-parent"===t.type)return Array.isArray(o)&&o[n-1]&&"line"===o[n-1].type&&o[n-1].hard?void 0:"breakParent";if("trim"===t.type)return"trim";if("indent"===t.type)return"indent("+e(t.contents)+")";if("align"===t.type)return t.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+e(t.contents)+")":t.n<0?"dedent("+e(t.contents)+")":"root"===t.n.type?"markAsRoot("+e(t.contents)+")":"align("+JSON.stringify(t.n)+", "+e(t.contents)+")";if("if-break"===t.type)return"ifBreak("+e(t.breakContents)+(t.flatContents?", "+e(t.flatContents):"")+(t.groupId?(t.flatContents?"":', ""')+", { groupId: ".concat(r(t.groupId)," }"):"")+")";if("indent-if-break"===t.type){var _n45=[];t.negate&&_n45.push("negate: true"),t.groupId&&_n45.push("groupId: ".concat(r(t.groupId)));var _o11=_n45.length>0?", { ".concat(_n45.join(", ")," }"):"";return"indentIfBreak(".concat(e(t.contents)).concat(_o11,")")}if("group"===t.type){var _n46=[];t.break&&"propagated"!==t.break&&_n46.push("shouldBreak: true"),t.id&&_n46.push("id: ".concat(r(t.id)));var _o12=_n46.length>0?", { ".concat(_n46.join(", ")," }"):"";return t.expandedStates?"conditionalGroup([".concat(t.expandedStates.map((function(t){return e(t)})).join(","),"]").concat(_o12,")"):"group(".concat(e(t.contents)).concat(_o12,")")}if("fill"===t.type)return"fill([".concat(t.parts.map((function(t){return e(t)})).join(", "),"])");if("line-suffix"===t.type)return"lineSuffix("+e(t.contents)+")";if("line-suffix-boundary"===t.type)return"lineSuffixBoundary";if("label"===t.type)return"label(".concat(JSON.stringify(t.label),", ").concat(e(t.contents),")");throw new Error("Unknown doc type "+t.type)}(Mn(e));function r(e){if("symbol"!=_typeof(e))return JSON.stringify(String(e));if(e in t)return t[e];for(var r=String(e).slice(7,-1)||"symbol",_o13=0;;_o13++){var _i11=r+(_o13>0?" #".concat(_o13):"");if(!n.has(_i11))return n.add(_i11),t[e]="Symbol.for(".concat(JSON.stringify(_i11),")")}}}}},Vn=Object.freeze({__proto__:null,default:{}});function $n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var qn=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,Wn=function Wn(e){return qn.exec(e).slice(1)};function Un(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:"/";if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r.charAt(0))}return(t?"/":"")+(e=$n(Zn(e.split("/"),(function(e){return!!e})),!t).join("/"))||"."}function zn(e){var t=Hn(e),n="/"===er(e,-1);return(e=$n(Zn(e.split("/"),(function(e){return!!e})),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e}function Hn(e){return"/"===e.charAt(0)}function Gn(){return zn(Zn(Array.prototype.slice.call(arguments,0),(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))}function Jn(e,t){function n(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=Un(e).substr(1),t=Un(t).substr(1);for(var r=n(e.split("/")),o=n(t.split("/")),i=Math.min(r.length,o.length),u=i,s=0;s>18&63]+nr[o>>12&63]+nr[o>>6&63]+nr[63&o]);return i.join("")}function ar(e){var t;ir||ur();for(var n=e.length,r=n%3,o="",i=[],u=16383,s=0,a=n-r;sa?a:s+u));return 1===r?(t=e[n-1],o+=nr[t>>2],o+=nr[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=nr[t>>10],o+=nr[t>>4&63],o+=nr[t<<2&63],o+="="),i.push(o),i.join("")}function cr(e,t,n,r,o){var i,u,s=8*o-r-1,a=(1<>1,l=-7,p=n?o-1:0,f=n?-1:1,d=e[t+p];for(p+=f,i=d&(1<<-l)-1,d>>=-l,l+=s;l>0;i=256*i+e[t+p],p+=f,l-=8);for(u=i&(1<<-l)-1,i>>=-l,l+=r;l>0;u=256*u+e[t+p],p+=f,l-=8);if(0===i)i=1-c;else{if(i===a)return u?NaN:1/0*(d?-1:1);u+=Math.pow(2,r),i-=c}return(d?-1:1)*u*Math.pow(2,i-r)}function lr(e,t,n,r,o,i){var u,s,a,c=8*i-o-1,l=(1<>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,u=l):(u=Math.floor(Math.log(t)/Math.LN2),t*(a=Math.pow(2,-u))<1&&(u--,a*=2),(t+=u+p>=1?f/a:f*Math.pow(2,1-p))*a>=2&&(u++,a/=2),u+p>=l?(s=0,u=l):u+p>=1?(s=(t*a-1)*Math.pow(2,o),u+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,o),u=0));o>=8;e[n+d]=255&s,d+=h,s/=256,o-=8);for(u=u<0;e[n+d]=255&u,d+=h,u/=256,c-=8);e[n+d-h]|=128*m}var pr={}.toString,fr=Array.isArray||function(e){return"[object Array]"==pr.call(e)};function dr(){return mr.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function hr(e,t){if(dr()=dr())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+dr().toString(16)+" bytes");return 0|e}function Cr(e){return!(null==e||!e._isBuffer)}function vr(e,t){if(Cr(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Xr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Yr(e).length;default:if(r)return Xr(e).length;t=(""+t).toLowerCase(),r=!0}}function Ar(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Mr(this,t,n);case"utf8":case"utf-8":return Ir(this,t,n);case"ascii":return Lr(this,t,n);case"latin1":case"binary":return _r(this,t,n);case"base64":return Or(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Rr(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Fr(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function xr(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=mr.from(t,r)),Cr(t))return 0===t.length?-1:Sr(e,t,n,r,o);if("number"==typeof t)return t&=255,mr.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Sr(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function Sr(e,t,n,r,o){var i,u=1,s=e.length,a=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;u=2,s/=2,a/=2,n/=2}function c(e,t){return 1===u?e[t]:e.readUInt16BE(t*u)}if(o){var l=-1;for(i=n;is&&(n=s-a),i=n;i>=0;i--){for(var p=!0,f=0;fo&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var u=0;u>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function Or(e,t,n){return 0===t&&n===e.length?ar(e):ar(e.slice(t,n))}function Ir(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:c>223?3:c>191?2:1;if(o+p<=n)switch(p){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(a=(31&c)<<6|63&i)>127&&(l=a);break;case 3:i=e[o+1],u=e[o+2],128==(192&i)&&128==(192&u)&&(a=(15&c)<<12|(63&i)<<6|63&u)>2047&&(a<55296||a>57343)&&(l=a);break;case 4:i=e[o+1],u=e[o+2],s=e[o+3],128==(192&i)&&128==(192&u)&&128==(192&s)&&(a=(15&c)<<18|(63&i)<<12|(63&u)<<6|63&s)>65535&&a<1114112&&(l=a)}null===l?(l=65533,p=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=p}return function(e){var t=e.length;if(t<=jr)return String.fromCharCode.apply(String,e);for(var n="",r=0;r0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},mr.prototype.compare=function(e,t,n,r,o){if(!Cr(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),u=(n>>>=0)-(t>>>=0),s=Math.min(i,u),a=this.slice(r,o),c=e.slice(t,n),l=0;lo)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return wr(this,e,t,n);case"utf8":case"utf-8":return Tr(this,e,t,n);case"ascii":return Br(this,e,t,n);case"latin1":case"binary":return kr(this,e,t,n);case"base64":return Nr(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pr(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},mr.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var jr=4096;function Lr(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;or)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function $r(e,t,n,r,o,i){if(!Cr(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function qr(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function Wr(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function Ur(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function zr(e,t,n,r,o){return o||Ur(e,0,n,4),lr(e,t,n,r,23,4),n+4}function Hr(e,t,n,r,o){return o||Ur(e,0,n,8),lr(e,t,n,r,52,8),n+8}mr.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},mr.prototype.readUInt8=function(e,t){return t||Vr(e,1,this.length),this[e]},mr.prototype.readUInt16LE=function(e,t){return t||Vr(e,2,this.length),this[e]|this[e+1]<<8},mr.prototype.readUInt16BE=function(e,t){return t||Vr(e,2,this.length),this[e]<<8|this[e+1]},mr.prototype.readUInt32LE=function(e,t){return t||Vr(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},mr.prototype.readUInt32BE=function(e,t){return t||Vr(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},mr.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Vr(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},mr.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Vr(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},mr.prototype.readInt8=function(e,t){return t||Vr(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},mr.prototype.readInt16LE=function(e,t){t||Vr(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},mr.prototype.readInt16BE=function(e,t){t||Vr(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},mr.prototype.readInt32LE=function(e,t){return t||Vr(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},mr.prototype.readInt32BE=function(e,t){return t||Vr(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},mr.prototype.readFloatLE=function(e,t){return t||Vr(e,4,this.length),cr(this,e,!0,23,4)},mr.prototype.readFloatBE=function(e,t){return t||Vr(e,4,this.length),cr(this,e,!1,23,4)},mr.prototype.readDoubleLE=function(e,t){return t||Vr(e,8,this.length),cr(this,e,!0,52,8)},mr.prototype.readDoubleBE=function(e,t){return t||Vr(e,8,this.length),cr(this,e,!1,52,8)},mr.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||$r(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+n},mr.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||$r(this,e,t,1,255,0),mr.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},mr.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||$r(this,e,t,2,65535,0),mr.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):qr(this,e,t,!0),t+2},mr.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||$r(this,e,t,2,65535,0),mr.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):qr(this,e,t,!1),t+2},mr.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||$r(this,e,t,4,4294967295,0),mr.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Wr(this,e,t,!0),t+4},mr.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||$r(this,e,t,4,4294967295,0),mr.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Wr(this,e,t,!1),t+4},mr.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);$r(this,e,t,n,o-1,-o)}var i=0,u=1,s=0;for(this[t]=255&e;++i=0&&(u*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/u|0)-s&255;return t+n},mr.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||$r(this,e,t,1,127,-128),mr.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},mr.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||$r(this,e,t,2,32767,-32768),mr.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):qr(this,e,t,!0),t+2},mr.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||$r(this,e,t,2,32767,-32768),mr.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):qr(this,e,t,!1),t+2},mr.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||$r(this,e,t,4,2147483647,-2147483648),mr.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Wr(this,e,t,!0),t+4},mr.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||$r(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),mr.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Wr(this,e,t,!1),t+4},mr.prototype.writeFloatLE=function(e,t,n){return zr(this,e,t,!0,n)},mr.prototype.writeFloatBE=function(e,t,n){return zr(this,e,t,!1,n)},mr.prototype.writeDoubleLE=function(e,t,n){return Hr(this,e,t,!0,n)},mr.prototype.writeDoubleBE=function(e,t,n){return Hr(this,e,t,!1,n)},mr.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(i<1e3||!mr.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(u+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function Yr(e){return function(e){var t,n,r,o,i,u;ir||ur();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===e[s-2]?2:"="===e[s-1]?1:0,u=new or(3*s/4-i),r=i>0?s-4:s;var a=0;for(t=0,n=0;t>16&255,u[a++]=o>>8&255,u[a++]=255&o;return 2===i?(o=rr[e.charCodeAt(t)]<<2|rr[e.charCodeAt(t+1)]>>4,u[a++]=255&o):1===i&&(o=rr[e.charCodeAt(t)]<<10|rr[e.charCodeAt(t+1)]<<4|rr[e.charCodeAt(t+2)]>>2,u[a++]=o>>8&255,u[a++]=255&o),u}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Gr,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Kr(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Qr(e){return null!=e&&(!!e._isBuffer||Zr(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Zr(e.slice(0,0))}(e))}function Zr(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var eo=o(Vn),to=function(){function to(e,t){_classCallCheck(this,to),(t=t||{}).readChunk||(t.readChunk=1024),t.newLineCharacter?t.newLineCharacter=t.newLineCharacter.charCodeAt(0):t.newLineCharacter=10,this.fd="number"==typeof e?e:eo.openSync(e,"r"),this.options=t,this.newLineCharacter=t.newLineCharacter,this.reset()}return _createClass(to,[{key:"_searchInBuffer",value:function _searchInBuffer(e,t){for(var n=-1,_r41=0;_r41<=e.length;_r41++)if(e[_r41]===t){n=_r41;break}return n}},{key:"reset",value:function reset(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}},{key:"close",value:function close(){eo.closeSync(this.fd),this.fd=null}},{key:"_extractLines",value:function _extractLines(e){for(var t,n=[],r=0,o=0;;){var _i12=e[r++];if(_i12===this.newLineCharacter)t=e.slice(o,r),n.push(t),o=r;else if(void 0===_i12)break}var i=e.slice(o,r);return i.length&&n.push(i),n}},{key:"_readChunk",value:function _readChunk(e){var t,n=0,r=[];do{var _e42=new mr(this.options.readChunk);n+=t=eo.readSync(this.fd,_e42,0,this.options.readChunk,this.fdPosition),this.fdPosition=this.fdPosition+t,r.push(_e42)}while(t&&-1===this._searchInBuffer(r[r.length-1],this.options.newLineCharacter));var o=mr.concat(r);return t=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function lo(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}function po(e){return this instanceof po?(this.v=e,this):new po(e)}var fo=Object.freeze({__proto__:null,__extends:function __extends(e,t){function n(){this.constructor=e}_so(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},get __assign(){return _ao},__rest:function __rest(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=0;s--)(o=e[s])&&(u=(i<3?o(u):i>3?o(t,n,u):o(t,n))||u);return i>3&&u&&Object.defineProperty(t,n,u),u},__param:function __param(e,t){return function(n,r){t(n,r,e)}},__metadata:function __metadata(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function __awaiter(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{a(r.next(e))}catch(e){i(e)}}function s(e){try{a(r.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,s)}a((r=r.apply(e,t||[])).next())}))},__generator:function __generator(e,t){var n,r,o,i,u={label:0,sent:function sent(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof po?Promise.resolve(n.value.v).then(a,c):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function a(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}},__asyncDelegator:function __asyncDelegator(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:po(e[r](t)),done:"return"===r}:o?o(t):t}:o}},__asyncValues:function __asyncValues(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=co(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}},__makeTemplateObject:function __makeTemplateObject(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function __importStar(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},__importDefault:function __importDefault(e){return e&&e.__esModule?e:{default:e}},__classPrivateFieldGet:function __classPrivateFieldGet(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},__classPrivateFieldSet:function __classPrivateFieldSet(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}}),ho=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.apiDescriptor={key:function key(e){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e)},value:function value(e){if(null===e||"object"!=_typeof(e))return JSON.stringify(e);if(Array.isArray(e))return"[".concat(e.map((function(e){return t.apiDescriptor.value(e)})).join(", "),"]");var n=Object.keys(e);return 0===n.length?"{}":"{ ".concat(n.map((function(n){return"".concat(t.apiDescriptor.key(n),": ").concat(t.apiDescriptor.value(e[n]))})).join(", ")," }")},pair:function pair(_ref36){var e=_ref36.key,n=_ref36.value;return t.apiDescriptor.value(_defineProperty({},e,n))}}})),mo=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),fo.__exportStar(ho,t)})),go=/[|\\{}()[\]^$+*?.]/g,yo=function yo(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(go,"\\$&")},Do={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]},Eo=i((function(e){var t={};for(var n in Do)Do.hasOwnProperty(n)&&(t[Do[n]]=n);var r=e.exports={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"]}};for(var o in r)if(r.hasOwnProperty(o)){if(!("channels"in r[o]))throw new Error("missing channels property: "+o);if(!("labels"in r[o]))throw new Error("missing channel labels property: "+o);if(r[o].labels.length!==r[o].channels)throw new Error("channel and label counts mismatch: "+o);var i=r[o].channels,u=r[o].labels;delete r[o].channels,delete r[o].labels,Object.defineProperty(r[o],"channels",{value:i}),Object.defineProperty(r[o],"labels",{value:u})}r.rgb.hsl=function(e){var t,n,r=e[0]/255,o=e[1]/255,i=e[2]/255,u=Math.min(r,o,i),s=Math.max(r,o,i),a=s-u;return s===u?t=0:r===s?t=(o-i)/a:o===s?t=2+(i-r)/a:i===s&&(t=4+(r-o)/a),(t=Math.min(60*t,360))<0&&(t+=360),n=(u+s)/2,[t,100*(s===u?0:n<=.5?a/(s+u):a/(2-s-u)),100*n]},r.rgb.hsv=function(e){var t,n,r,o,i,u=e[0]/255,s=e[1]/255,a=e[2]/255,c=Math.max(u,s,a),l=c-Math.min(u,s,a),p=function p(e){return(c-e)/6/l+.5};return 0===l?o=i=0:(i=l/c,t=p(u),n=p(s),r=p(a),u===c?o=r-n:s===c?o=1/3+t-r:a===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*c]},r.rgb.hwb=function(e){var t=e[0],n=e[1],o=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,o))*100,100*(o=1-1/255*Math.max(t,Math.max(n,o)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-o)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},r.rgb.keyword=function(e){var n=t[e];if(n)return n;var r,o,i,u=1/0;for(var s in Do)if(Do.hasOwnProperty(s)){var c=(o=e,i=Do[s],Math.pow(o[0]-i[0],2)+Math.pow(o[1]-i[1],2)+Math.pow(o[2]-i[2],2));c.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],o=t[1],i=t[2];return o/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116)-16,500*(n-o),200*(o-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},r.hsl.rgb=function(e){var t,n,r,o,i,u=e[0]/360,s=e[1]/100,a=e[2]/100;if(0===s)return[i=255*a,i,i];t=2*a-(n=a<.5?a*(1+s):a+s-a*s),o=[0,0,0];for(var c=0;c<3;c++)(r=u+1/3*-(c-1))<0&&r++,r>1&&r--,i=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,o[c]=255*i;return o},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,o=n,i=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,o*=i<=1?i:2-i,[t,100*(0===r?2*o/(i+o):2*n/(r+n)),(r+n)/2*100]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),u=255*r*(1-n),s=255*r*(1-n*i),a=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,a,u];case 1:return[s,r,u];case 2:return[u,r,a];case 3:return[u,s,r];case 4:return[a,u,r];case 5:return[r,u,s]}},r.hsv.hsl=function(e){var t,n,r,o=e[0],i=e[1]/100,u=e[2]/100,s=Math.max(u,.01);return r=(2-i)*u,n=i*s,[o,100*(n=(n/=(t=(2-i)*s)<=1?t:2-t)||0),100*(r/=2)]},r.hwb.rgb=function(e){var t,n,r,o,i,u,s,a=e[0]/360,c=e[1]/100,l=e[2]/100,p=c+l;switch(p>1&&(c/=p,l/=p),r=6*a-(t=Math.floor(6*a)),!!(1&t)&&(r=1-r),o=c+r*((n=1-l)-c),t){default:case 6:case 0:i=n,u=o,s=c;break;case 1:i=o,u=n,s=c;break;case 2:i=c,u=n,s=o;break;case 3:i=c,u=o,s=n;break;case 4:i=o,u=c,s=n;break;case 5:i=n,u=c,s=o}return[255*i,255*u,255*s]},r.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},r.xyz.rgb=function(e){var t,n,r,o=e[0]/100,i=e[1]/100,u=e[2]/100;return n=-.9689*o+1.8758*i+.0415*u,r=.0557*o+-.204*i+1.057*u,t=(t=3.2406*o+-1.5372*i+-.4986*u)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},r.lab.xyz=function(e){var t,n,r,o=e[0];t=e[1]/500+(n=(o+16)/116),r=n-e[2]/200;var i=Math.pow(n,3),u=Math.pow(t,3),s=Math.pow(r,3);return n=i>.008856?i:(n-16/116)/7.787,t=u>.008856?u:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},r.lab.lch=function(e){var t,n=e[0],r=e[1],o=e[2];return(t=360*Math.atan2(o,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+o*o),t]},r.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],o=e[2],i=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var u=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(u+=60),u},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var 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)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var 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},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},r.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255,i=Math.max(Math.max(n,r),o),u=Math.min(Math.min(n,r),o),s=i-u;return t=s<=0?0:i===n?(r-o)/s%6:i===r?2+(o-n)/s:4+(n-r)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?u/(1-s):0)]},r.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,o=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},r.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var o,i=[0,0,0],u=t%1*6,s=u%1,a=1-s;switch(Math.floor(u)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return o=(1-n)*r,[255*(n*i[0]+o),255*(n*i[1]+o),255*(n*i[2]+o)]},r.hcg.hsv=function(e){var 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]},r.hcg.hsl=function(e){var 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]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function bo(e){var t=function(){for(var e={},t=Object.keys(Eo),n=t.length,r=0;r1&&(_t48=Array.prototype.slice.call(arguments));var n=e(_t48);if("object"==_typeof(n))for(var r=n.length,o=0;o1&&(_t49=Array.prototype.slice.call(arguments)),e(_t49))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var Fo,xo=Ao,So=i((function(e){var t=function t(e,_t50){return function(){var n=e.apply(xo,arguments);return"[".concat(n+_t50,"m")}},n=function n(e,t){return function(){var n=e.apply(xo,arguments);return"[".concat(38+t,";5;").concat(n,"m")}},r=function r(e,t){return function(){var n=e.apply(xo,arguments);return"[".concat(38+t,";2;").concat(n[0],";").concat(n[1],";").concat(n[2],"m")}};Object.defineProperty(e,"exports",{enumerable:!0,get:function get(){var e=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.grey=o.color.gray;for(var _i13=0,_Object$keys=Object.keys(o);_i13<_Object$keys.length;_i13++){for(var _t51=_Object$keys[_i13],_n47=o[_t51],_i14=0,_Object$keys2=Object.keys(_n47);_i14<_Object$keys2.length;_i14++){var _t52=_Object$keys2[_i14],_r42=_n47[_t52];o[_t52]={open:"[".concat(_r42[0],"m"),close:"[".concat(_r42[1],"m")},_n47[_t52]=o[_t52],e.set(_r42[0],_r42[1])}Object.defineProperty(o,_t51,{value:_n47,enumerable:!1}),Object.defineProperty(o,"codes",{value:e,enumerable:!1})}var i=function i(e){return e},u=function u(e,t,n){return[e,t,n]};o.color.close="",o.bgColor.close="",o.color.ansi={ansi:t(i,0)},o.color.ansi256={ansi256:n(i,0)},o.color.ansi16m={rgb:r(u,0)},o.bgColor.ansi={ansi:t(i,10)},o.bgColor.ansi256={ansi256:n(i,10)},o.bgColor.ansi16m={rgb:r(u,10)};for(var _i15=0,_Object$keys3=Object.keys(xo);_i15<_Object$keys3.length;_i15++){var _e43=_Object$keys3[_i15];if("object"==_typeof(xo[_e43])){var _i16=xo[_e43];"ansi16"===_e43&&(_e43="ansi"),"ansi16"in _i16&&(o.color.ansi[_e43]=t(_i16.ansi16,0),o.bgColor.ansi[_e43]=t(_i16.ansi16,10)),"ansi256"in _i16&&(o.color.ansi256[_e43]=n(_i16.ansi256,0),o.bgColor.ansi256[_e43]=n(_i16.ansi256,10)),"rgb"in _i16&&(o.color.ansi16m[_e43]=r(_i16.rgb,0),o.bgColor.ansi16m[_e43]=r(_i16.rgb,10))}}return o}})}));function wo(){if(void 0===Fo){var e=new ArrayBuffer(2),t=new Uint8Array(e),n=new Uint16Array(e);if(t[0]=1,t[1]=2,258===n[0])Fo="BE";else{if(513!==n[0])throw new Error("unable to figure out endianess");Fo="LE"}}return Fo}function To(){return void 0!==Pe.location?Pe.location.hostname:""}function Bo(){return[]}function ko(){return 0}function No(){return Number.MAX_VALUE}function Po(){return Number.MAX_VALUE}function Oo(){return[]}function Io(){return"Browser"}function jo(){return void 0!==Pe.navigator?Pe.navigator.appVersion:""}function Lo(){}function _o(){}function Mo(){return"javascript"}function Ro(){return"browser"}function Vo(){return"/tmp"}var Ho,$o=Vo,qo={EOL:"\n",arch:Mo,platform:Ro,tmpdir:$o,tmpDir:Vo,networkInterfaces:Lo,getNetworkInterfaces:_o,release:jo,type:Io,cpus:Oo,totalmem:Po,freemem:No,uptime:ko,loadavg:Bo,hostname:To,endianness:wo},Wo=function Wo(e,t){t=t||nt.argv;var n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),o=t.indexOf("--");return-1!==r&&(-1===o||r=2,has16m:e>=3}}(function(e){if(!1===Ho)return 0;if(Wo("color=16m")||Wo("color=full")||Wo("color=truecolor"))return 3;if(Wo("color=256"))return 2;if(e&&!e.isTTY&&!0!==Ho)return 0;var t=Ho?1:0;if("CI"in zo)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(e){return e in zo}))||"codeship"===zo.CI_NAME?1:t;if("TEAMCITY_VERSION"in zo)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(zo.TEAMCITY_VERSION)?1:0;if("truecolor"===zo.COLORTERM)return 3;if("TERM_PROGRAM"in zo){var _e44=parseInt((zo.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(zo.TERM_PROGRAM){case"iTerm.app":return _e44>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(zo.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(zo.TERM)||"COLORTERM"in zo?1:(zo.TERM,t)}(e))}Wo("no-color")||Wo("no-colors")||Wo("color=false")?Ho=!1:(Wo("color")||Wo("colors")||Wo("color=true")||Wo("color=always"))&&(Ho=!0),"FORCE_COLOR"in zo&&(Ho=0===zo.FORCE_COLOR.length||0!==parseInt(zo.FORCE_COLOR,10));var Jo={supportsColor:Go,stdout:Go(nt.stdout),stderr:Go(nt.stderr)},Xo=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Yo=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Ko=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Qo=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Zo=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function ei(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):Zo.get(e)||e}function ti(e,t){var o,_step18,n=[],_iterator18=_createForOfIteratorHelper(t.trim().split(/\s*,\s*/g));try{for(_iterator18.s();!(_step18=_iterator18.n()).done;){var _t53=_step18.value;if(isNaN(_t53)){if(!(o=_t53.match(Ko)))throw new Error("Invalid Chalk template style argument: ".concat(_t53," (in style '").concat(e,"')"));n.push(o[2].replace(Qo,(function(e,t,n){return t?ei(t):n})))}else n.push(Number(_t53))}}catch(err){_iterator18.e(err)}finally{_iterator18.f()}return n}function ni(e){Yo.lastIndex=0;for(var n,t=[];null!==(n=Yo.exec(e));){var _e45=n[1];if(n[2]){var _r43=ti(_e45,n[2]);t.push([_e45].concat(_r43))}else t.push([_e45])}return t}function ri(e,t){var _step19,n={},_iterator19=_createForOfIteratorHelper(t);try{for(_iterator19.s();!(_step19=_iterator19.n()).done;){var _step20,_e47=_step19.value,_iterator20=_createForOfIteratorHelper(_e47.styles);try{for(_iterator20.s();!(_step20=_iterator20.n()).done;){var _t54=_step20.value;n[_t54[0]]=_e47.inverse?null:_t54.slice(1)}}catch(err){_iterator20.e(err)}finally{_iterator20.f()}}}catch(err){_iterator19.e(err)}finally{_iterator19.f()}for(var r=e,_i17=0,_Object$keys4=Object.keys(n);_i17<_Object$keys4.length;_i17++){var _e46=_Object$keys4[_i17];if(Array.isArray(n[_e46])){if(!(_e46 in r))throw new Error("Unknown Chalk style: ".concat(_e46));r=n[_e46].length>0?r[_e46].apply(r,n[_e46]):r[_e46]}}return r}var oi=function oi(e,t){var n=[],r=[],o=[];if(t.replace(Xo,(function(t,i,u,s,a,c){if(i)o.push(ei(i));else if(s){var _t55=o.join("");o=[],r.push(0===n.length?_t55:ri(e,n)(_t55)),n.push({inverse:u,styles:ni(s)})}else if(a){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(ri(e,n)(o.join(""))),o=[],n.pop()}else o.push(c)})),r.push(o.join("")),n.length>0){var _e48="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(_e48)}return r.join("")},ii=i((function(e){var t=Jo.stdout,r=["ansi","ansi","ansi256","ansi16m"],o=new Set(["gray"]),i=Object.create(null);function u(e,n){n=n||{};var r=t?t.level:0;e.level=void 0===n.level?r:n.level,e.enabled="enabled"in n?n.enabled:e.level>0}function s(e){if(!this||!(this instanceof s)||this.template){var _t56={};return u(_t56,e),_t56.template=function(){var e=[].slice.call(arguments);return p.apply(null,[_t56.template].concat(e))},Object.setPrototypeOf(_t56,s.prototype),Object.setPrototypeOf(_t56.template,_t56),_t56.template.constructor=s,_t56.template}u(this,e)}for(var _loop3=function _loop3(){var e=_Object$keys5[_i18];So[e].closeRe=new RegExp(yo(So[e].close),"g"),i[e]={get:function get(){var t=So[e];return c.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}}},_i18=0,_Object$keys5=Object.keys(So);_i18<_Object$keys5.length;_i18++)_loop3();i.visible={get:function get(){return c.call(this,this._styles||[],!0,"visible")}},So.color.closeRe=new RegExp(yo(So.color.close),"g");for(var _loop4=function _loop4(){var e=_Object$keys6[_i19];o.has(e)||(i[e]={get:function get(){var t=this.level;return function(){var o={open:So.color[r[t]][e].apply(null,arguments),close:So.color.close,closeRe:So.color.closeRe};return c.call(this,this._styles?this._styles.concat(o):[o],this._empty,e)}}})},_i19=0,_Object$keys6=Object.keys(So.color.ansi);_i19<_Object$keys6.length;_i19++)_loop4();So.bgColor.closeRe=new RegExp(yo(So.bgColor.close),"g");for(var _loop5=function _loop5(){var e=_Object$keys7[_i20];if(o.has(e))return"continue";i["bg"+e[0].toUpperCase()+e.slice(1)]={get:function get(){var t=this.level;return function(){var o={open:So.bgColor[r[t]][e].apply(null,arguments),close:So.bgColor.close,closeRe:So.bgColor.closeRe};return c.call(this,this._styles?this._styles.concat(o):[o],this._empty,e)}}}},_i20=0,_Object$keys7=Object.keys(So.bgColor.ansi);_i20<_Object$keys7.length;_i20++)_loop5();var a=Object.defineProperties((function(){}),i);function c(e,t,n){var r=function r(){return l.apply(r,arguments)};r._styles=e,r._empty=t;var o=this;return Object.defineProperty(r,"level",{enumerable:!0,get:function get(){return o.level},set:function set(e){o.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:function get(){return o.enabled},set:function set(e){o.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=a,r}function l(){var e=arguments,t=e.length,r=String(arguments[0]);if(0===t)return"";if(t>1)for(var _n48=1;_n48t.length&&(e=t,t=n);var r=e.length,o=t.length;if(0===r)return o;if(0===o)return r;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-o);)r--,o--;if(0===r)return o;for(var i,u,s,a,c=0;cu?a>u?u+1:a:a>s?s+1:a;return u}(e,t)<3}));u&&i.push("Did you mean ".concat(ii.default.blue(n.key(u)),"?")),r.warn(i.join(" "))}},"__esModule",{value:!0}),di=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),fo.__exportStar(fi,t)})),hi=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),fo.__exportStar(si,t),fo.__exportStar(ci,t),fo.__exportStar(di,t)})),mi=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function gi(e,t){var _step22,n=new e(t),r=Object.create(n),_iterator22=_createForOfIteratorHelper(mi);try{for(_iterator22.s();!(_step22=_iterator22.n()).done;){var _e51=_step22.value;_e51 in t&&(r[_e51]=bi(t[_e51],n,Di.prototype[_e51].length))}}catch(err){_iterator22.e(err)}finally{_iterator22.f()}return r}var yi=gi,Di=function(){function Di(e){_classCallCheck(this,Di),this.name=e.name}return _createClass(Di,[{key:"default",value:function _default(e){}},{key:"expected",value:function expected(e){return"nothing"}},{key:"validate",value:function validate(e,t){return!1}},{key:"deprecated",value:function deprecated(e,t){return!1}},{key:"forward",value:function forward(e,t){}},{key:"redirect",value:function redirect(e,t){}},{key:"overlap",value:function overlap(e,t,n){return e}},{key:"preprocess",value:function preprocess(e,t){return e}},{key:"postprocess",value:function postprocess(e,t){return e}}],[{key:"create",value:function create(e){return gi(this,e)}}]),Di}(),Ei=Di;function bi(e,t,n){return"function"==typeof e?function(){for(var _len5=arguments.length,r=new Array(_len5),_key5=0;_key5<_len5;_key5++)r[_key5]=arguments[_key5];return e.apply(void 0,_toConsumableArray(r.slice(0,n-1)).concat([t],_toConsumableArray(r.slice(n-1))))}:function(){return e}}var Ci=Object.defineProperty({createSchema:yi,Schema:Ei},"__esModule",{value:!0}),vi=function(_Ci$Schema){_inherits(vi,_Ci$Schema);var _super11=_createSuper(vi);function vi(e){var _this13;return _classCallCheck(this,vi),(_this13=_super11.call(this,e))._sourceName=e.sourceName,_this13}return _createClass(vi,[{key:"expected",value:function expected(e){return e.schemas[this._sourceName].expected(e)}},{key:"validate",value:function validate(e,t){return t.schemas[this._sourceName].validate(e,t)}},{key:"redirect",value:function redirect(e,t){return this._sourceName}}]),vi}(Ci.Schema),Ai=vi,Fi=Object.defineProperty({AliasSchema:Ai},"__esModule",{value:!0}),xi=function(_Ci$Schema2){_inherits(xi,_Ci$Schema2);var _super12=_createSuper(xi);function xi(){return _classCallCheck(this,xi),_super12.apply(this,arguments)}return _createClass(xi,[{key:"expected",value:function expected(){return"anything"}},{key:"validate",value:function validate(){return!0}}]),xi}(Ci.Schema),Si=xi,wi=Object.defineProperty({AnySchema:Si},"__esModule",{value:!0}),Ti=function(_Ci$Schema3){_inherits(Ti,_Ci$Schema3);var _super13=_createSuper(Ti);function Ti(e){var _this14;_classCallCheck(this,Ti);var t=e.valueSchema,_e$name=e.name,n=void 0===_e$name?t.name:_e$name,r=fo.__rest(e,["valueSchema","name"]);return(_this14=_super13.call(this,Object.assign({},r,{name:n})))._valueSchema=t,_this14}return _createClass(Ti,[{key:"expected",value:function expected(e){return"an array of ".concat(this._valueSchema.expected(e))}},{key:"validate",value:function validate(e,t){if(!Array.isArray(e))return!1;var _step23,n=[],_iterator23=_createForOfIteratorHelper(e);try{for(_iterator23.s();!(_step23=_iterator23.n()).done;){var _r44=_step23.value,_e52=t.normalizeValidateResult(this._valueSchema.validate(_r44,t),_r44);!0!==_e52&&n.push(_e52.value)}}catch(err){_iterator23.e(err)}finally{_iterator23.f()}return 0===n.length||{value:n}}},{key:"deprecated",value:function deprecated(e,t){var _step24,n=[],_iterator24=_createForOfIteratorHelper(e);try{for(_iterator24.s();!(_step24=_iterator24.n()).done;){var _r45=_step24.value,_e53=t.normalizeDeprecatedResult(this._valueSchema.deprecated(_r45,t),_r45);!1!==_e53&&n.push.apply(n,_toConsumableArray(_e53.map((function(_ref39){return{value:[_ref39.value]}}))))}}catch(err){_iterator24.e(err)}finally{_iterator24.f()}return n}},{key:"forward",value:function forward(e,t){var _step25,n=[],_iterator25=_createForOfIteratorHelper(e);try{for(_iterator25.s();!(_step25=_iterator25.n()).done;){var _r46=_step25.value,_e54=t.normalizeForwardResult(this._valueSchema.forward(_r46,t),_r46);n.push.apply(n,_toConsumableArray(_e54.map(ki)))}}catch(err){_iterator25.e(err)}finally{_iterator25.f()}return n}},{key:"redirect",value:function redirect(e,t){var _step26,n=[],r=[],_iterator26=_createForOfIteratorHelper(e);try{for(_iterator26.s();!(_step26=_iterator26.n()).done;){var _o14=_step26.value,_e55=t.normalizeRedirectResult(this._valueSchema.redirect(_o14,t),_o14);"remain"in _e55&&n.push(_e55.remain),r.push.apply(r,_toConsumableArray(_e55.redirect.map(ki)))}}catch(err){_iterator26.e(err)}finally{_iterator26.f()}return 0===n.length?{redirect:r}:{redirect:r,remain:n}}},{key:"overlap",value:function overlap(e,t){return e.concat(t)}}]),Ti}(Ci.Schema),Bi=Ti;function ki(_ref40){return{from:[_ref40.from],to:_ref40.to}}var Ni=Object.defineProperty({ArraySchema:Bi},"__esModule",{value:!0}),Pi=function(_Ci$Schema4){_inherits(Pi,_Ci$Schema4);var _super14=_createSuper(Pi);function Pi(){return _classCallCheck(this,Pi),_super14.apply(this,arguments)}return _createClass(Pi,[{key:"expected",value:function expected(){return"true or false"}},{key:"validate",value:function validate(e){return"boolean"==typeof e}}]),Pi}(Ci.Schema),Oi=Pi,Ii=Object.defineProperty({BooleanSchema:Oi},"__esModule",{value:!0}),ji=function ji(e,t){var _step27,n=Object.create(null),_iterator27=_createForOfIteratorHelper(e);try{for(_iterator27.s();!(_step27=_iterator27.n()).done;){var _r47=_step27.value,_e56=_r47[t];if(n[_e56])throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(_e56)));n[_e56]=_r47}}catch(err){_iterator27.e(err)}finally{_iterator27.f()}return n},Li=function Li(e,t){var _step28,n=new Map,_iterator28=_createForOfIteratorHelper(e);try{for(_iterator28.s();!(_step28=_iterator28.n()).done;){var _r48=_step28.value,_e57=_r48[t];if(n.has(_e57))throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(_e57)));n.set(_e57,_r48)}}catch(err){_iterator28.e(err)}finally{_iterator28.f()}return n},_i=function _i(){var e=Object.create(null);return function(t){var n=JSON.stringify(t);return!!e[n]||(e[n]=!0,!1)}},Mi=function Mi(e,t){var _step29,n=[],r=[],_iterator29=_createForOfIteratorHelper(e);try{for(_iterator29.s();!(_step29=_iterator29.n()).done;){var _o15=_step29.value;t(_o15)?n.push(_o15):r.push(_o15)}}catch(err){_iterator29.e(err)}finally{_iterator29.f()}return[n,r]},Ri=function Ri(e){return e===Math.floor(e)},Vi=function Vi(e,t){if(e===t)return 0;var n=_typeof(e),r=_typeof(t),o=["undefined","object","boolean","number","string"];return n!==r?o.indexOf(n)-o.indexOf(r):"string"!==n?Number(e)-Number(t):e.localeCompare(t)},$i=function $i(e){return void 0===e?{}:e},qi=function qi(e,t){return!0===e||(!1===e?{value:t}:e)},Wi=function Wi(e,t){return!1!==e&&(!0===e?!!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])||[{value:t}]:"value"in e?[e]:0!==e.length&&e)};function Ui(e,t){return"string"==typeof e||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}var zi=Ui;function Hi(e,t){return void 0===e?[]:Array.isArray(e)?e.map((function(e){return Ui(e,t)})):[Ui(e,t)]}var Gi=Hi,Ji=function Ji(e,t){var n=Hi("object"==_typeof(e)&&"redirect"in e?e.redirect:e,t);return 0===n.length?{remain:t,redirect:n}:"object"==_typeof(e)&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}},Xi=Object.defineProperty({recordFromArray:ji,mapFromArray:Li,createAutoChecklist:_i,partition:Mi,isInt:Ri,comparePrimitive:Vi,normalizeDefaultResult:$i,normalizeValidateResult:qi,normalizeDeprecatedResult:Wi,normalizeTransferResult:zi,normalizeForwardResult:Gi,normalizeRedirectResult:Ji},"__esModule",{value:!0}),Yi=function(_Ci$Schema5){_inherits(Yi,_Ci$Schema5);var _super15=_createSuper(Yi);function Yi(e){var _this15;return _classCallCheck(this,Yi),(_this15=_super15.call(this,e))._choices=Xi.mapFromArray(e.choices.map((function(e){return e&&"object"==_typeof(e)?e:{value:e}})),"value"),_this15}return _createClass(Yi,[{key:"expected",value:function expected(_ref41){var _this16=this,e=_ref41.descriptor,t=Array.from(this._choices.keys()).map((function(e){return _this16._choices.get(e)})).filter((function(e){return!e.deprecated})).map((function(e){return e.value})).sort(Xi.comparePrimitive).map(e.value),n=t.slice(0,-2),r=t.slice(-2);return n.concat(r.join(" or ")).join(", ")}},{key:"validate",value:function validate(e){return this._choices.has(e)}},{key:"deprecated",value:function deprecated(e){var t=this._choices.get(e);return!(!t||!t.deprecated)&&{value:e}}},{key:"forward",value:function forward(e){var t=this._choices.get(e);return t?t.forward:void 0}},{key:"redirect",value:function redirect(e){var t=this._choices.get(e);return t?t.redirect:void 0}}]),Yi}(Ci.Schema),Ki=Yi,Qi=Object.defineProperty({ChoiceSchema:Ki},"__esModule",{value:!0}),Zi=function(_Ci$Schema6){_inherits(Zi,_Ci$Schema6);var _super16=_createSuper(Zi);function Zi(){return _classCallCheck(this,Zi),_super16.apply(this,arguments)}return _createClass(Zi,[{key:"expected",value:function expected(){return"a number"}},{key:"validate",value:function validate(e,t){return"number"==typeof e}}]),Zi}(Ci.Schema),eu=Zi,tu=Object.defineProperty({NumberSchema:eu},"__esModule",{value:!0}),nu=function(_tu$NumberSchema){_inherits(nu,_tu$NumberSchema);var _super17=_createSuper(nu);function nu(){return _classCallCheck(this,nu),_super17.apply(this,arguments)}return _createClass(nu,[{key:"expected",value:function expected(){return"an integer"}},{key:"validate",value:function validate(e,t){return!0===t.normalizeValidateResult(_get(_getPrototypeOf(nu.prototype),"validate",this).call(this,e,t),e)&&Xi.isInt(e)}}]),nu}(tu.NumberSchema),ru=nu,ou=Object.defineProperty({IntegerSchema:ru},"__esModule",{value:!0}),iu=function(_Ci$Schema7){_inherits(iu,_Ci$Schema7);var _super18=_createSuper(iu);function iu(){return _classCallCheck(this,iu),_super18.apply(this,arguments)}return _createClass(iu,[{key:"expected",value:function expected(){return"a string"}},{key:"validate",value:function validate(e){return"string"==typeof e}}]),iu}(Ci.Schema),uu=iu,su=Object.defineProperty({StringSchema:uu},"__esModule",{value:!0}),au=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),fo.__exportStar(Fi,t),fo.__exportStar(wi,t),fo.__exportStar(Ni,t),fo.__exportStar(Ii,t),fo.__exportStar(Qi,t),fo.__exportStar(ou,t),fo.__exportStar(tu,t),fo.__exportStar(su,t)})),cu=ho.apiDescriptor,lu=fi.levenUnknownHandler,pu=ci.commonInvalidHandler,fu=ui.commonDeprecatedHandler,du=Object.defineProperty({defaultDescriptor:cu,defaultUnknownHandler:lu,defaultInvalidHandler:pu,defaultDeprecatedHandler:fu},"__esModule",{value:!0}),hu=function(){function hu(e,t){_classCallCheck(this,hu);var _ref42=t||{},_ref42$logger=_ref42.logger,n=void 0===_ref42$logger?console:_ref42$logger,_ref42$descriptor=_ref42.descriptor,r=void 0===_ref42$descriptor?du.defaultDescriptor:_ref42$descriptor,_ref42$unknown=_ref42.unknown,o=void 0===_ref42$unknown?du.defaultUnknownHandler:_ref42$unknown,_ref42$invalid=_ref42.invalid,i=void 0===_ref42$invalid?du.defaultInvalidHandler:_ref42$invalid,_ref42$deprecated=_ref42.deprecated,u=void 0===_ref42$deprecated?du.defaultDeprecatedHandler:_ref42$deprecated;this._utils={descriptor:r,logger:n||{warn:function warn(){}},schemas:Xi.recordFromArray(e,"name"),normalizeDefaultResult:Xi.normalizeDefaultResult,normalizeDeprecatedResult:Xi.normalizeDeprecatedResult,normalizeForwardResult:Xi.normalizeForwardResult,normalizeRedirectResult:Xi.normalizeRedirectResult,normalizeValidateResult:Xi.normalizeValidateResult},this._unknownHandler=o,this._invalidHandler=i,this._deprecatedHandler=u,this.cleanHistory()}return _createClass(hu,[{key:"cleanHistory",value:function cleanHistory(){this._hasDeprecationWarned=Xi.createAutoChecklist()}},{key:"normalize",value:function normalize(e){var _this17=this,t={},n=[e],r=function r(){for(;0!==n.length;){var _e58=n.shift(),_r49=_this17._applyNormalization(_e58,t);n.push.apply(n,_toConsumableArray(_r49))}};r();for(var _i21=0,_Object$keys8=Object.keys(this._utils.schemas);_i21<_Object$keys8.length;_i21++){var _e59=_Object$keys8[_i21],_r50=this._utils.schemas[_e59];if(!(_e59 in t)){var _t57=Xi.normalizeDefaultResult(_r50.default(this._utils));"value"in _t57&&n.push(_defineProperty({},_e59,_t57.value))}}r();for(var _i22=0,_Object$keys9=Object.keys(this._utils.schemas);_i22<_Object$keys9.length;_i22++){var _e60=_Object$keys9[_i22],_n49=this._utils.schemas[_e60];_e60 in t&&(t[_e60]=_n49.postprocess(t[_e60],this._utils))}return t}},{key:"_applyNormalization",value:function _applyNormalization(e,t){var _step30,_this18=this,n=[],_Xi$partition=Xi.partition(Object.keys(e),(function(e){return e in _this18._utils.schemas})),_Xi$partition2=_slicedToArray(_Xi$partition,2),r=_Xi$partition2[0],o=_Xi$partition2[1],_iterator30=_createForOfIteratorHelper(r);try{var _loop6=function _loop6(){var o=_step30.value,r=_this18._utils.schemas[o],i=r.preprocess(e[o],_this18._utils),u=Xi.normalizeValidateResult(r.validate(i,_this18._utils),i);if(!0!==u){var _e61=u.value,_t58=_this18._invalidHandler(o,_e61,_this18._utils);throw"string"==typeof _t58?new Error(_t58):_t58}var s=function s(_ref43){var e=_ref43.from,t=_ref43.to;n.push("string"==typeof t?_defineProperty({},t,e):_defineProperty({},t.key,t.value))},a=function a(_ref46){var e=_ref46.value,t=_ref46.redirectTo,n=Xi.normalizeDeprecatedResult(r.deprecated(e,_this18._utils),i,!0);if(!1!==n)if(!0===n)_this18._hasDeprecationWarned(o)||_this18._utils.logger.warn(_this18._deprecatedHandler(o,t,_this18._utils));else{var _step32,_iterator32=_createForOfIteratorHelper(n);try{for(_iterator32.s();!(_step32=_iterator32.n()).done;){var _e62=_step32.value.value,_n50={key:o,value:_e62};if(!_this18._hasDeprecationWarned(_n50)){var _r51="string"==typeof t?{key:t,value:_e62}:t;_this18._utils.logger.warn(_this18._deprecatedHandler(_n50,_r51,_this18._utils))}}}catch(err){_iterator32.e(err)}finally{_iterator32.f()}}};Xi.normalizeForwardResult(r.forward(i,_this18._utils),i).forEach(s);var c=Xi.normalizeRedirectResult(r.redirect(i,_this18._utils),i);if(c.redirect.forEach(s),"remain"in c){var _e63=c.remain;t[o]=o in t?r.overlap(t[o],_e63,_this18._utils):_e63,a({value:_e63})}var _step33,_iterator33=_createForOfIteratorHelper(c.redirect);try{for(_iterator33.s();!(_step33=_iterator33.n()).done;){var _step33$value=_step33.value;a({value:_step33$value.from,redirectTo:_step33$value.to})}}catch(err){_iterator33.e(err)}finally{_iterator33.f()}};for(_iterator30.s();!(_step30=_iterator30.n()).done;)_loop6()}catch(err){_iterator30.e(err)}finally{_iterator30.f()}var _step31,_iterator31=_createForOfIteratorHelper(o);try{for(_iterator31.s();!(_step31=_iterator31.n()).done;){var _r52=_step31.value,_o16=e[_r52],_i23=this._unknownHandler(_r52,_o16,this._utils);if(_i23)for(var _i24=0,_Object$keys10=Object.keys(_i23);_i24<_Object$keys10.length;_i24++){var _e65=_Object$keys10[_i24],_r53=_defineProperty({},_e65,_i23[_e65]);_e65 in this._utils.schemas?n.push(_r53):Object.assign(t,_r53)}}}catch(err){_iterator31.e(err)}finally{_iterator31.f()}return n}}]),hu}(),mu=hu,gu=Object.defineProperty({normalize:function normalize(e,t,n){return new hu(t,n).normalize(e)},Normalizer:mu},"__esModule",{value:!0}),yu=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),fo.__exportStar(mo,t),fo.__exportStar(hi,t),fo.__exportStar(au,t),fo.__exportStar(gu,t),fo.__exportStar(Ci,t)})),Du=[],Eu=[],bu=function bu(e,t){if(e===t)return 0;var n=e;e.length>t.length&&(e=t,t=n);for(var r=e.length,o=t.length;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-o);)r--,o--;for(var i,u,s,a,c=0;cu?a>u?u+1:a:a>s?s+1:a;return u},Cu=bu,vu=bu;Cu.default=vu;for(var Au={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]},Fu={},_i25=0,_Object$keys11=Object.keys(Au);_i25<_Object$keys11.length;_i25++){var _e66=_Object$keys11[_i25];Fu[Au[_e66]]=_e66}for(var xu={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"]}},Su=xu,_i26=0,_Object$keys12=Object.keys(xu);_i26<_Object$keys12.length;_i26++){var _e67=_Object$keys12[_i26];if(!("channels"in xu[_e67]))throw new Error("missing channels property: "+_e67);if(!("labels"in xu[_e67]))throw new Error("missing channel labels property: "+_e67);if(xu[_e67].labels.length!==xu[_e67].channels)throw new Error("channel and label counts mismatch: "+_e67);var _xu$_e=xu[_e67],_t60=_xu$_e.channels,_n51=_xu$_e.labels;delete xu[_e67].channels,delete xu[_e67].labels,Object.defineProperty(xu[_e67],"channels",{value:_t60}),Object.defineProperty(xu[_e67],"labels",{value:_n51})}function wu(e){var t=function(){for(var e={},t=Object.keys(Su),_n52=t.length,_r55=0;_r55<_n52;_r55++)e[t[_r55]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var _e68=n.pop(),_r56=Object.keys(Su[_e68]),_o17=_r56.length,_i27=0;_i27<_o17;_i27++){var _o18=_r56[_i27],_u7=t[_o18];-1===_u7.distance&&(_u7.distance=t[_e68].distance+1,_u7.parent=_e68,n.unshift(_o18))}return t}function Tu(e,t){return function(n){return t(e(n))}}function Bu(e,t){for(var n=[t[e].parent,e],r=Su[t[e].parent][e],o=t[e].parent;t[o].parent;)n.unshift(t[o].parent),r=Tu(Su[t[o].parent][o],r),o=t[o].parent;return r.conversion=n,r}xu.rgb.hsl=function(e){var s,t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),i=Math.max(t,n,r),u=i-o;i===o?s=0:t===i?s=(n-r)/u:n===i?s=2+(r-t)/u:r===i&&(s=4+(t-n)/u),(s=Math.min(60*s,360))<0&&(s+=360);var c=(o+i)/2;return[s,100*(i===o?0:c<=.5?u/(i+o):u/(2-i-o)),100*c]},xu.rgb.hsv=function(e){var t,n,r,o,i,u=e[0]/255,s=e[1]/255,a=e[2]/255,c=Math.max(u,s,a),l=c-Math.min(u,s,a),p=function p(e){return(c-e)/6/l+.5};return 0===l?(o=0,i=0):(i=l/c,t=p(u),n=p(s),r=p(a),u===c?o=r-n:s===c?o=1/3+t-r:a===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*c]},xu.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[xu.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,r))*100,100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},xu.rgb.cmyk=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r);return[100*((1-t-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*o]},xu.rgb.keyword=function(e){var t=Fu[e];if(t)return t;for(var n,o,i,r=1/0,_i28=0,_Object$keys13=Object.keys(Au);_i28<_Object$keys13.length;_i28++){var _t61=_Object$keys13[_i28],_u8=(i=Au[_t61],Math.pow((o=e)[0]-i[0],2)+Math.pow(o[1]-i[1],2)+Math.pow(o[2]-i[2],2));_u8.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},xu.rgb.lab=function(e){var t=xu.rgb.xyz(e),n=t[0],r=t[1],o=t[2];return r/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},xu.hsl.rgb=function(e){var o,i,u,t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[u=255*r,u,u];for(var s=2*r-(o=r<.5?r*(1+n):r+n-r*n),a=[0,0,0],_e69=0;_e69<3;_e69++)(i=t+1/3*-(_e69-1))<0&&i++,i>1&&i--,u=6*i<1?s+6*(o-s)*i:2*i<1?o:3*i<2?s+(o-s)*(2/3-i)*6:s,a[_e69]=255*u;return a},xu.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,o=n,i=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,o*=i<=1?i:2-i,[t,100*(0===r?2*o/(i+o):2*n/(r+n)),(r+n)/2*100]},xu.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),u=255*r*(1-n),s=255*r*(1-n*i),a=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,a,u];case 1:return[s,r,u];case 2:return[u,r,a];case 3:return[u,s,r];case 4:return[a,u,r];case 5:return[r,u,s]}},xu.hsv.hsl=function(e){var i,u,t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);u=(2-n)*r;var s=(2-n)*o;return i=n*o,[t,100*(i=(i/=s<=1?s:2-s)||0),100*(u/=2)]},xu.hwb.rgb=function(e){var i,t=e[0]/360,n=e[1]/100,r=e[2]/100,o=n+r;o>1&&(n/=o,r/=o);var u=Math.floor(6*t),s=1-r;i=6*t-u,1&u&&(i=1-i);var c,l,p,a=n+i*(s-n);switch(u){default:case 6:case 0:c=s,l=a,p=n;break;case 1:c=a,l=s,p=n;break;case 2:c=n,l=s,p=a;break;case 3:c=n,l=a,p=s;break;case 4:c=a,l=n,p=s;break;case 5:c=s,l=n,p=a}return[255*c,255*l,255*p]},xu.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},xu.xyz.rgb=function(e){var o,i,u,t=e[0]/100,n=e[1]/100,r=e[2]/100;return i=-.9689*t+1.8758*n+.0415*r,u=.0557*t+-.204*n+1.057*r,o=(o=3.2406*t+-1.5372*n+-.4986*r)>.0031308?1.055*Math.pow(o,1/2.4)-.055:12.92*o,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:12.92*i,u=u>.0031308?1.055*Math.pow(u,1/2.4)-.055:12.92*u,[255*(o=Math.min(Math.max(0,o),1)),255*(i=Math.min(Math.max(0,i),1)),255*(u=Math.min(Math.max(0,u),1))]},xu.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},xu.lab.xyz=function(e){var t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;var o=Math.pow(n,3),i=Math.pow(t,3),u=Math.pow(r,3);return n=o>.008856?o:(n-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,r=u>.008856?u:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},xu.lab.lch=function(e){var o,t=e[0],n=e[1],r=e[2];return(o=360*Math.atan2(r,n)/2/Math.PI)<0&&(o+=360),[t,Math.sqrt(n*n+r*r),o]},xu.lch.lab=function(e){var t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},xu.rgb.ansi16=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,_e70=_slicedToArray(e,3),n=_e70[0],r=_e70[1],o=_e70[2],i=null===t?xu.rgb.hsv(e)[2]:t;if(0===(i=Math.round(i/50)))return 30;var u=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===i&&(u+=60),u},xu.hsv.ansi16=function(e){return xu.rgb.ansi16(xu.hsv.rgb(e),e[2])},xu.rgb.ansi256=function(e){var 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)},xu.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},xu.ansi256.rgb=function(e){if(e>=232){var _t62=10*(e-232)+8;return[_t62,_t62,_t62]}var t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},xu.rgb.hex=function(e){var 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},xu.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},xu.rgb.hcg=function(e){var a,t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),i=Math.min(Math.min(t,n),r),u=o-i;return a=u<=0?0:o===t?(n-r)/u%6:o===n?2+(r-t)/u:4+(t-n)/u,a/=6,[360*(a%=1),100*u,100*(u<1?i/(1-u):0)]},xu.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n),o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},xu.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},xu.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var o=[0,0,0],i=t%1*6,u=i%1,s=1-u,a=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=u,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=u;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=u,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return a=(1-n)*r,[255*(n*o[0]+a),255*(n*o[1]+a),255*(n*o[2]+a)]},xu.hcg.hsv=function(e){var 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]},xu.hcg.hsl=function(e){var 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]},xu.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},xu.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},xu.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},xu.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},xu.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},xu.gray.hsl=function(e){return[0,0,e[0]]},xu.gray.hsv=xu.gray.hsl,xu.gray.hwb=function(e){return[0,100,e[0]]},xu.gray.cmyk=function(e){return[0,0,0,e[0]]},xu.gray.lab=function(e){return[e[0],0,0]},xu.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},xu.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};var ku={};Object.keys(Su).forEach((function(e){ku[e]={},Object.defineProperty(ku[e],"channels",{value:Su[e].channels}),Object.defineProperty(ku[e],"labels",{value:Su[e].labels});var t=function(e){for(var t=wu(e),n={},r=Object.keys(t),_e71=r.length,_o19=0;_o19<_e71;_o19++){var _e72=r[_o19];null!==t[_e72].parent&&(n[_e72]=Bu(_e72,t))}return n}(e);Object.keys(t).forEach((function(n){var r=t[n];ku[e][n]=function(e){var t=function t(){for(var _len6=arguments.length,t=new Array(_len6),_key6=0;_key6<_len6;_key6++)t[_key6]=arguments[_key6];var n=t[0];if(null==n)return n;n.length>1&&(t=n);var r=e(t);if("object"==_typeof(r))for(var _e73=r.length,_t63=0;_t63<_e73;_t63++)r[_t63]=Math.round(r[_t63]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(r),ku[e][n].raw=function(e){var t=function t(){for(var _len7=arguments.length,t=new Array(_len7),_key7=0;_key7<_len7;_key7++)t[_key7]=arguments[_key7];var n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var Nu=ku,Pu=i((function(e){var s,t=function t(e,_t64){return function(){var r=e.apply(void 0,arguments);return"[".concat(r+_t64,"m")}},n=function n(e,t){return function(){var r=e.apply(void 0,arguments);return"[".concat(38+t,";5;").concat(r,"m")}},r=function r(e,t){return function(){var r=e.apply(void 0,arguments);return"[".concat(38+t,";2;").concat(r[0],";").concat(r[1],";").concat(r[2],"m")}},o=function o(e){return e},i=function i(e,t,n){return[e,t,n]},u=function u(e,t,n){Object.defineProperty(e,t,{get:function get(){var r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})},a=function a(e,t,n,r){void 0===s&&(s=Nu);for(var o=r?10:0,i={},_i29=0,_Object$entries3=Object.entries(s);_i29<_Object$entries3.length;_i29++){var _Object$entries3$_i=_slicedToArray(_Object$entries3[_i29],2),_r57=_Object$entries3$_i[0],_u9=_Object$entries3$_i[1],_s16="ansi16"===_r57?"ansi":_r57;_r57===t?i[_s16]=e(n,o):"object"==_typeof(_u9)&&(i[_s16]=e(_u9[t],o))}return i};Object.defineProperty(e,"exports",{enumerable:!0,get:function get(){var e=new Map,s={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};s.color.gray=s.color.blackBright,s.bgColor.bgGray=s.bgColor.bgBlackBright,s.color.grey=s.color.blackBright,s.bgColor.bgGrey=s.bgColor.bgBlackBright;for(var _i30=0,_Object$entries4=Object.entries(s);_i30<_Object$entries4.length;_i30++){for(var _Object$entries4$_i=_slicedToArray(_Object$entries4[_i30],2),_t65=_Object$entries4$_i[0],_n53=_Object$entries4$_i[1],_i31=0,_Object$entries5=Object.entries(_n53);_i31<_Object$entries5.length;_i31++){var _Object$entries5$_i=_slicedToArray(_Object$entries5[_i31],2),_t66=_Object$entries5$_i[0],_r58=_Object$entries5$_i[1];s[_t66]={open:"[".concat(_r58[0],"m"),close:"[".concat(_r58[1],"m")},_n53[_t66]=s[_t66],e.set(_r58[0],_r58[1])}Object.defineProperty(s,_t65,{value:_n53,enumerable:!1})}return Object.defineProperty(s,"codes",{value:e,enumerable:!1}),s.color.close="",s.bgColor.close="",u(s.color,"ansi",(function(){return a(t,"ansi16",o,!1)})),u(s.color,"ansi256",(function(){return a(n,"ansi256",o,!1)})),u(s.color,"ansi16m",(function(){return a(r,"rgb",i,!1)})),u(s.bgColor,"ansi",(function(){return a(t,"ansi16",o,!0)})),u(s.bgColor,"ansi256",(function(){return a(n,"ansi256",o,!0)})),u(s.bgColor,"ansi16m",(function(){return a(r,"rgb",i,!0)})),s}})}));function Ou(){return!1}function Iu(){throw new Error("tty.ReadStream is not implemented")}function ju(){throw new Error("tty.ReadStream is not implemented")}var Vu,Lu={isatty:Ou,ReadStream:Iu,WriteStream:ju},_u=function _u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nt.argv,n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),o=t.indexOf("--");return-1!==r&&(-1===o||r=2,has16m:e>=3}}function qu(e,t){if(0===Vu)return 0;if(_u("color=16m")||_u("color=full")||_u("color=truecolor"))return 3;if(_u("color=256"))return 2;if(e&&!t&&void 0===Vu)return 0;var n=Vu||0;if("dumb"===Ru.TERM)return n;if("CI"in Ru)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((function(e){return e in Ru}))||"codeship"===Ru.CI_NAME?1:n;if("TEAMCITY_VERSION"in Ru)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ru.TEAMCITY_VERSION)?1:0;if("truecolor"===Ru.COLORTERM)return 3;if("TERM_PROGRAM"in Ru){var _e74=parseInt((Ru.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ru.TERM_PROGRAM){case"iTerm.app":return _e74>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ru.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ru.TERM)||"COLORTERM"in Ru?1:n}_u("no-color")||_u("no-colors")||_u("color=false")||_u("color=never")?Vu=0:(_u("color")||_u("colors")||_u("color=true")||_u("color=always"))&&(Vu=1),"FORCE_COLOR"in Ru&&(Vu="true"===Ru.FORCE_COLOR?1:"false"===Ru.FORCE_COLOR?0:0===Ru.FORCE_COLOR.length?1:Math.min(parseInt(Ru.FORCE_COLOR,10),3));var Wu={supportsColor:function supportsColor(e){return $u(qu(e,e&&e.isTTY))},stdout:$u(qu(!0,Mu.isatty(1))),stderr:$u(qu(!0,Mu.isatty(2)))},Uu={stringReplaceAll:function stringReplaceAll(e,t,n){var r=e.indexOf(t);if(-1===r)return e;var o=t.length,i=0,u="";do{u+=e.substr(i,r-i)+t+n,i=r+o,r=e.indexOf(t,i)}while(-1!==r);return u+=e.substr(i)},stringEncaseCRLFWithFirstIndex:function stringEncaseCRLFWithFirstIndex(e,t,n,r){var o=0,i="";do{var _u10="\r"===e[r-1];i+=e.substr(o,(_u10?r-1:r)-o)+t+(_u10?"\r\n":"\n")+n,o=r+1,r=e.indexOf("\n",o)}while(-1!==r);return i+=e.substr(o)}},zu=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Hu=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Gu=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Ju=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Xu=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function Yu(e){var t="u"===e[0],n="{"===e[1];return t&&!n&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):Xu.get(e)||e}function Ku(e,t){var o,_step34,n=[],_iterator34=_createForOfIteratorHelper(t.trim().split(/\s*,\s*/g));try{for(_iterator34.s();!(_step34=_iterator34.n()).done;){var _t67=_step34.value,_r59=Number(_t67);if(Number.isNaN(_r59)){if(!(o=_t67.match(Gu)))throw new Error("Invalid Chalk template style argument: ".concat(_t67," (in style '").concat(e,"')"));n.push(o[2].replace(Ju,(function(e,t,n){return t?Yu(t):n})))}else n.push(_r59)}}catch(err){_iterator34.e(err)}finally{_iterator34.f()}return n}function Qu(e){Hu.lastIndex=0;for(var n,t=[];null!==(n=Hu.exec(e));){var _e75=n[1];if(n[2]){var _r60=Ku(_e75,n[2]);t.push([_e75].concat(_r60))}else t.push([_e75])}return t}function Zu(e,t){var _step35,n={},_iterator35=_createForOfIteratorHelper(t);try{for(_iterator35.s();!(_step35=_iterator35.n()).done;){var _step36,_e77=_step35.value,_iterator36=_createForOfIteratorHelper(_e77.styles);try{for(_iterator36.s();!(_step36=_iterator36.n()).done;){var _t69=_step36.value;n[_t69[0]]=_e77.inverse?null:_t69.slice(1)}}catch(err){_iterator36.e(err)}finally{_iterator36.f()}}}catch(err){_iterator35.e(err)}finally{_iterator35.f()}for(var r=e,_i32=0,_Object$entries6=Object.entries(n);_i32<_Object$entries6.length;_i32++){var _Object$entries6$_i=_slicedToArray(_Object$entries6[_i32],2),_e76=_Object$entries6$_i[0],_t68=_Object$entries6$_i[1];if(Array.isArray(_t68)){var _r61;if(!(_e76 in r))throw new Error("Unknown Chalk style: ".concat(_e76));r=_t68.length>0?(_r61=r)[_e76].apply(_r61,_toConsumableArray(_t68)):r[_e76]}}return r}var es=function es(e,t){var n=[],r=[],o=[];if(t.replace(zu,(function(t,i,u,s,a,c){if(i)o.push(Yu(i));else if(s){var _t70=o.join("");o=[],r.push(0===n.length?_t70:Zu(e,n)(_t70)),n.push({inverse:u,styles:Qu(s)})}else if(a){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(Zu(e,n)(o.join(""))),o=[],n.pop()}else o.push(c)})),r.push(o.join("")),n.length>0){var _e78="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(_e78)}return r.join("")},ts=Wu.stdout,ns=Wu.stderr,rs=Uu.stringReplaceAll,os=Uu.stringEncaseCRLFWithFirstIndex,is=Array.isArray,us=["ansi","ansi","ansi256","ansi16m"],ss=Object.create(null),as=_createClass((function as(e){return _classCallCheck(this,as),cs(e)})),cs=function cs(e){var t={};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");var n=ts?ts.level:0;e.level=void 0===t.level?n:t.level}(t,e),t.template=function(){for(var _len8=arguments.length,e=new Array(_len8),_key8=0;_key8<_len8;_key8++)e[_key8]=arguments[_key8];return ys.apply(void 0,[t.template].concat(e))},Object.setPrototypeOf(t,ls.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=function(){throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=as,t.template};function ls(e){return cs(e)}for(var _loop7=function _loop7(){var _Object$entries7$_i=_slicedToArray(_Object$entries7[_i33],2),e=_Object$entries7$_i[0],t=_Object$entries7$_i[1];ss[e]={get:function get(){var n=hs(this,ds(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:n}),n}}},_i33=0,_Object$entries7=Object.entries(Pu);_i33<_Object$entries7.length;_i33++)_loop7();ss.visible={get:function get(){var e=hs(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};for(var ps=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"],_loop8=function _loop8(){var e=_ps[_i34];ss[e]={get:function get(){var t=this.level;return function(){var _Pu$color$us$t,r=ds((_Pu$color$us$t=Pu.color[us[t]])[e].apply(_Pu$color$us$t,arguments),Pu.color.close,this._styler);return hs(this,r,this._isEmpty)}}}},_i34=0,_ps=ps;_i34<_ps.length;_i34++)_loop8();for(var _loop9=function _loop9(){var e=_ps2[_i35];ss["bg"+e[0].toUpperCase()+e.slice(1)]={get:function get(){var t=this.level;return function(){var _Pu$bgColor$us$t,r=ds((_Pu$bgColor$us$t=Pu.bgColor[us[t]])[e].apply(_Pu$bgColor$us$t,arguments),Pu.bgColor.close,this._styler);return hs(this,r,this._isEmpty)}}}},_i35=0,_ps2=ps;_i35<_ps2.length;_i35++)_loop9();var gs,fs=Object.defineProperties((function(){}),Object.assign({},ss,{level:{enumerable:!0,get:function get(){return this._generator.level},set:function set(e){this._generator.level=e}}})),ds=function ds(e,t,n){var r,o;return void 0===n?(r=e,o=t):(r=n.openAll+e,o=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:o,parent:n}},hs=function hs(e,t,n){var r=function r(){for(var _len9=arguments.length,e=new Array(_len9),_key9=0;_key9<_len9;_key9++)e[_key9]=arguments[_key9];return is(e[0])&&is(e[0].raw)?ms(r,ys.apply(void 0,[r].concat(e))):ms(r,1===e.length?""+e[0]:e.join(" "))};return Object.setPrototypeOf(r,fs),r._generator=e,r._styler=t,r._isEmpty=n,r},ms=function ms(e,t){if(e.level<=0||!t)return e._isEmpty?"":t;var n=e._styler;if(void 0===n)return t;var _n54=n,r=_n54.openAll,o=_n54.closeAll;if(-1!==t.indexOf(""))for(;void 0!==n;)t=rs(t,n.close,n.open),n=n.parent;var i=t.indexOf("\n");return-1!==i&&(t=os(t,o,r,i)),r+t+o},ys=function ys(e){for(var _len10=arguments.length,t=new Array(_len10>1?_len10-1:0),_key10=1;_key10<_len10;_key10++)t[_key10-1]=arguments[_key10];var n=t[0];if(!is(n)||!is(n.raw))return t.join(" ");for(var r=t.slice(1),o=[n.raw[0]],_e79=1;_e790&&r(a)?n>1?e(a,n-1,r,o,i):bs(i,a):o||(i[i.length]=a)}return i},Ws=function Ws(e){return null!=e&&e.length?qs(e,1):[]},Us={key:function key(e){return 1===e.length?"-".concat(e):"--".concat(e)},value:function value(e){return yu.apiDescriptor.value(e)},pair:function pair(_ref47){var e=_ref47.key,t=_ref47.value;return!1===t?"--no-".concat(e):!0===t?Us.key(e):""===t?"".concat(Us.key(e)," without an argument"):"".concat(Us.key(e),"=").concat(t)}},zs=function(_yu$ChoiceSchema){_inherits(zs,_yu$ChoiceSchema);var _super19=_createSuper(zs);function zs(_ref48){var _this19,e=_ref48.name,t=_ref48.flags;return _classCallCheck(this,zs),(_this19=_super19.call(this,{name:e,choices:t}))._flags=_toConsumableArray(t).sort(),_this19}return _createClass(zs,[{key:"preprocess",value:function preprocess(e,t){if("string"==typeof e&&e.length>0&&!this._flags.includes(e)){var _n55=this._flags.find((function(t){return Cu(t,e)<3}));if(_n55)return t.logger.warn(["Unknown flag ".concat(Es.yellow(t.descriptor.value(e)),","),"did you mean ".concat(Es.blue(t.descriptor.value(_n55)),"?")].join(" ")),_n55}return e}},{key:"expected",value:function expected(){return"a flag"}}]),zs}(yu.ChoiceSchema);function Gs(t,n){var _ref49=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=_ref49.logger,_ref49$isCLI=_ref49.isCLI,o=void 0!==_ref49$isCLI&&_ref49$isCLI,_ref49$passThrough=_ref49.passThrough,i=void 0!==_ref49$passThrough&&_ref49$passThrough,u=i?Array.isArray(i)?function(e,t){return i.includes(e)?_defineProperty({},e,t):void 0}:function(e,t){return _defineProperty({},e,t)}:function(t,n,r){var o=e(r.schemas,["_"]);return yu.levenUnknownHandler(t,n,Object.assign({},r,{schemas:o}))},s=o?Us:yu.apiDescriptor,a=function(e,_ref52){var t=_ref52.isCLI,n=[];t&&n.push(yu.AnySchema.create({name:"_"}));var _step37,_iterator37=_createForOfIteratorHelper(e);try{for(_iterator37.s();!(_step37=_iterator37.n()).done;){var _r62=_step37.value;n.push(Js(_r62,{isCLI:t,optionInfos:e})),_r62.alias&&t&&n.push(yu.AliasSchema.create({name:_r62.alias,sourceName:_r62.name}))}}catch(err){_iterator37.e(err)}finally{_iterator37.f()}return n}(n,{isCLI:o}),c=new yu.Normalizer(a,{logger:r,unknown:u,descriptor:s}),l=!1!==r;l&&Hs&&(c._hasDeprecationWarned=Hs);var p=c.normalize(t);return l&&(Hs=c._hasDeprecationWarned),p}function Js(e,_ref53){var r,t=_ref53.isCLI,n=_ref53.optionInfos,o={name:e.name},i={};switch(e.type){case"int":r=yu.IntegerSchema,t&&(o.preprocess=function(e){return Number(e)});break;case"string":case"path":r=yu.StringSchema;break;case"choice":r=yu.ChoiceSchema,o.choices=e.choices.map((function(t){return"object"==_typeof(t)&&t.redirect?Object.assign({},t,{redirect:{to:{key:e.name,value:t.redirect}}}):t}));break;case"boolean":r=yu.BooleanSchema;break;case"flag":r=zs,o.flags=Ws(n.map((function(e){return[e.alias,e.description&&e.name,e.oppositeDescription&&"no-".concat(e.name)].filter(Boolean)})));break;default:throw new Error("Unexpected type ".concat(e.type))}if(e.exception?o.validate=function(t,n,r){return e.exception(t)||n.validate(t,r)}:o.validate=function(e,t,n){return void 0===e||t.validate(e,n)},e.redirect&&(i.redirect=function(t){return t?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0}),e.deprecated&&(i.deprecated=!0),t&&!e.array){var _e80=o.preprocess||function(e){return e};o.preprocess=function(t,n,r){return n.preprocess(_e80(Array.isArray(t)?ke(t):t),r)}}return e.array?yu.ArraySchema.create(Object.assign({},t?{preprocess:function preprocess(e){return Array.isArray(e)?e:[e]}}:{},i,{valueSchema:r.create(o)})):r.create(Object.assign({},o,i))}var Xs={normalizeApiOptions:function normalizeApiOptions(e,t,n){return Gs(e,t,n)},normalizeCliOptions:function normalizeCliOptions(e,t,n){return Gs(e,t,Object.assign({isCLI:!0},n))}},Ys=rn.isNonEmptyArray;function Ks(e,t){if(!(t||{}).ignoreDecorators){var _t71=e.declaration&&e.declaration.decorators||e.decorators;if(Ys(_t71))return Ks(_t71[0])}return e.range?e.range[0]:e.start}function Qs(e){return e.range?e.range[1]:e.end}function Zs(e,t){return Ks(e)===Ks(t)}var ea={locStart:Ks,locEnd:Qs,hasSameLocStart:Zs,hasSameLoc:function hasSameLoc(e,t){return Zs(e,t)&&function(e,t){return Qs(e)===Qs(t)}(e,t)}},ta=Object.defineProperty({default:/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,matchToToken:function matchToToken(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}},"__esModule",{value:!0}),na=fa,ra=da,oa=function oa(e){for(var t=!0,_n56=0;_n56e)return!1;if((n+=t[_r64+1])>=e)return!0}return!1}function fa(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&sa.test(String.fromCharCode(e)):pa(e,ca)))}function da(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&aa.test(String.fromCharCode(e)):pa(e,ca)||pa(e,la))))}var ha=Object.defineProperty({isIdentifierStart:na,isIdentifierChar:ra,isIdentifierName:oa},"__esModule",{value:!0}),ma=xa,ga=Sa,ya=wa,Da=function Da(e,t){return Sa(e,t)||wa(e)},Ea=function Ea(e){return va.has(e)},ba=["implements","interface","let","package","private","protected","public","static","yield"],Ca=["eval","arguments"],va=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),Aa=new Set(ba),Fa=new Set(Ca);function xa(e,t){return t&&"await"===e||"enum"===e}function Sa(e,t){return xa(e,t)||Aa.has(e)}function wa(e){return Fa.has(e)}var Ta=Object.defineProperty({isReservedWord:ma,isStrictReservedWord:ga,isStrictBindOnlyReservedWord:ya,isStrictBindReservedWord:Da,isKeyword:Ea},"__esModule",{value:!0}),Ba=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function get(){return ha.isIdentifierName}}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function get(){return ha.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function get(){return ha.isIdentifierStart}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function get(){return Ta.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function get(){return Ta.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function get(){return Ta.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function get(){return Ta.isStrictReservedWord}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function get(){return Ta.isKeyword}})})),ka=/[|\\{}()[\]^$+*?.]/g,Na=function Na(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(ka,"\\$&")},Pa={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]},Oa=i((function(e){var t={};for(var n in Pa)Pa.hasOwnProperty(n)&&(t[Pa[n]]=n);var r=e.exports={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"]}};for(var o in r)if(r.hasOwnProperty(o)){if(!("channels"in r[o]))throw new Error("missing channels property: "+o);if(!("labels"in r[o]))throw new Error("missing channel labels property: "+o);if(r[o].labels.length!==r[o].channels)throw new Error("channel and label counts mismatch: "+o);var i=r[o].channels,u=r[o].labels;delete r[o].channels,delete r[o].labels,Object.defineProperty(r[o],"channels",{value:i}),Object.defineProperty(r[o],"labels",{value:u})}r.rgb.hsl=function(e){var t,n,r=e[0]/255,o=e[1]/255,i=e[2]/255,u=Math.min(r,o,i),s=Math.max(r,o,i),a=s-u;return s===u?t=0:r===s?t=(o-i)/a:o===s?t=2+(i-r)/a:i===s&&(t=4+(r-o)/a),(t=Math.min(60*t,360))<0&&(t+=360),n=(u+s)/2,[t,100*(s===u?0:n<=.5?a/(s+u):a/(2-s-u)),100*n]},r.rgb.hsv=function(e){var t,n,r,o,i,u=e[0]/255,s=e[1]/255,a=e[2]/255,c=Math.max(u,s,a),l=c-Math.min(u,s,a),p=function p(e){return(c-e)/6/l+.5};return 0===l?o=i=0:(i=l/c,t=p(u),n=p(s),r=p(a),u===c?o=r-n:s===c?o=1/3+t-r:a===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*c]},r.rgb.hwb=function(e){var t=e[0],n=e[1],o=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,o))*100,100*(o=1-1/255*Math.max(t,Math.max(n,o)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-o)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},r.rgb.keyword=function(e){var n=t[e];if(n)return n;var r,o,i,u=1/0;for(var s in Pa)if(Pa.hasOwnProperty(s)){var c=(o=e,i=Pa[s],Math.pow(o[0]-i[0],2)+Math.pow(o[1]-i[1],2)+Math.pow(o[2]-i[2],2));c.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],o=t[1],i=t[2];return o/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116)-16,500*(n-o),200*(o-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},r.hsl.rgb=function(e){var t,n,r,o,i,u=e[0]/360,s=e[1]/100,a=e[2]/100;if(0===s)return[i=255*a,i,i];t=2*a-(n=a<.5?a*(1+s):a+s-a*s),o=[0,0,0];for(var c=0;c<3;c++)(r=u+1/3*-(c-1))<0&&r++,r>1&&r--,i=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,o[c]=255*i;return o},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,o=n,i=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,o*=i<=1?i:2-i,[t,100*(0===r?2*o/(i+o):2*n/(r+n)),(r+n)/2*100]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),u=255*r*(1-n),s=255*r*(1-n*i),a=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,a,u];case 1:return[s,r,u];case 2:return[u,r,a];case 3:return[u,s,r];case 4:return[a,u,r];case 5:return[r,u,s]}},r.hsv.hsl=function(e){var t,n,r,o=e[0],i=e[1]/100,u=e[2]/100,s=Math.max(u,.01);return r=(2-i)*u,n=i*s,[o,100*(n=(n/=(t=(2-i)*s)<=1?t:2-t)||0),100*(r/=2)]},r.hwb.rgb=function(e){var t,n,r,o,i,u,s,a=e[0]/360,c=e[1]/100,l=e[2]/100,p=c+l;switch(p>1&&(c/=p,l/=p),r=6*a-(t=Math.floor(6*a)),!!(1&t)&&(r=1-r),o=c+r*((n=1-l)-c),t){default:case 6:case 0:i=n,u=o,s=c;break;case 1:i=o,u=n,s=c;break;case 2:i=c,u=n,s=o;break;case 3:i=c,u=o,s=n;break;case 4:i=o,u=c,s=n;break;case 5:i=n,u=c,s=o}return[255*i,255*u,255*s]},r.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},r.xyz.rgb=function(e){var t,n,r,o=e[0]/100,i=e[1]/100,u=e[2]/100;return n=-.9689*o+1.8758*i+.0415*u,r=.0557*o+-.204*i+1.057*u,t=(t=3.2406*o+-1.5372*i+-.4986*u)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},r.lab.xyz=function(e){var t,n,r,o=e[0];t=e[1]/500+(n=(o+16)/116),r=n-e[2]/200;var i=Math.pow(n,3),u=Math.pow(t,3),s=Math.pow(r,3);return n=i>.008856?i:(n-16/116)/7.787,t=u>.008856?u:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},r.lab.lch=function(e){var t,n=e[0],r=e[1],o=e[2];return(t=360*Math.atan2(o,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+o*o),t]},r.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],o=e[2],i=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var u=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(u+=60),u},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var 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)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var 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},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},r.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255,i=Math.max(Math.max(n,r),o),u=Math.min(Math.min(n,r),o),s=i-u;return t=s<=0?0:i===n?(r-o)/s%6:i===r?2+(o-n)/s:4+(n-r)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?u/(1-s):0)]},r.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,o=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},r.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var o,i=[0,0,0],u=t%1*6,s=u%1,a=1-s;switch(Math.floor(u)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return o=(1-n)*r,[255*(n*i[0]+o),255*(n*i[1]+o),255*(n*i[2]+o)]},r.hcg.hsv=function(e){var 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]},r.hcg.hsl=function(e){var 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]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function Ia(e){var t=function(){for(var e={},t=Object.keys(Oa),n=t.length,r=0;r1&&(_t73=Array.prototype.slice.call(arguments));var n=e(_t73);if("object"==_typeof(n))for(var r=n.length,o=0;o1&&(_t74=Array.prototype.slice.call(arguments)),e(_t74))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var $a,Ma=_a,Ra=i((function(e){var t=function t(e,_t75){return function(){var n=e.apply(Ma,arguments);return"[".concat(n+_t75,"m")}},n=function n(e,t){return function(){var n=e.apply(Ma,arguments);return"[".concat(38+t,";5;").concat(n,"m")}},r=function r(e,t){return function(){var n=e.apply(Ma,arguments);return"[".concat(38+t,";2;").concat(n[0],";").concat(n[1],";").concat(n[2],"m")}};Object.defineProperty(e,"exports",{enumerable:!0,get:function get(){var e=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.grey=o.color.gray;for(var _i36=0,_Object$keys14=Object.keys(o);_i36<_Object$keys14.length;_i36++){for(var _t76=_Object$keys14[_i36],_n57=o[_t76],_i37=0,_Object$keys15=Object.keys(_n57);_i37<_Object$keys15.length;_i37++){var _t77=_Object$keys15[_i37],_r65=_n57[_t77];o[_t77]={open:"[".concat(_r65[0],"m"),close:"[".concat(_r65[1],"m")},_n57[_t77]=o[_t77],e.set(_r65[0],_r65[1])}Object.defineProperty(o,_t76,{value:_n57,enumerable:!1}),Object.defineProperty(o,"codes",{value:e,enumerable:!1})}var i=function i(e){return e},u=function u(e,t,n){return[e,t,n]};o.color.close="",o.bgColor.close="",o.color.ansi={ansi:t(i,0)},o.color.ansi256={ansi256:n(i,0)},o.color.ansi16m={rgb:r(u,0)},o.bgColor.ansi={ansi:t(i,10)},o.bgColor.ansi256={ansi256:n(i,10)},o.bgColor.ansi16m={rgb:r(u,10)};for(var _i38=0,_Object$keys16=Object.keys(Ma);_i38<_Object$keys16.length;_i38++){var _e81=_Object$keys16[_i38];if("object"==_typeof(Ma[_e81])){var _i39=Ma[_e81];"ansi16"===_e81&&(_e81="ansi"),"ansi16"in _i39&&(o.color.ansi[_e81]=t(_i39.ansi16,0),o.bgColor.ansi[_e81]=t(_i39.ansi16,10)),"ansi256"in _i39&&(o.color.ansi256[_e81]=n(_i39.ansi256,0),o.bgColor.ansi256[_e81]=n(_i39.ansi256,10)),"rgb"in _i39&&(o.color.ansi16m[_e81]=r(_i39.rgb,0),o.bgColor.ansi16m[_e81]=r(_i39.rgb,10))}}return o}})})),Va=nt.env;function qa(e){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(function(e){if(!1===$a)return 0;if(Wo("color=16m")||Wo("color=full")||Wo("color=truecolor"))return 3;if(Wo("color=256"))return 2;if(e&&!e.isTTY&&!0!==$a)return 0;var t=$a?1:0;if("CI"in Va)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(e){return e in Va}))||"codeship"===Va.CI_NAME?1:t;if("TEAMCITY_VERSION"in Va)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Va.TEAMCITY_VERSION)?1:0;if("truecolor"===Va.COLORTERM)return 3;if("TERM_PROGRAM"in Va){var _e82=parseInt((Va.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Va.TERM_PROGRAM){case"iTerm.app":return _e82>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Va.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Va.TERM)||"COLORTERM"in Va?1:(Va.TERM,t)}(e))}Wo("no-color")||Wo("no-colors")||Wo("color=false")?$a=!1:(Wo("color")||Wo("colors")||Wo("color=true")||Wo("color=always"))&&($a=!0),"FORCE_COLOR"in Va&&($a=0===Va.FORCE_COLOR.length||0!==parseInt(Va.FORCE_COLOR,10));var Wa={supportsColor:qa,stdout:qa(nt.stdout),stderr:qa(nt.stderr)},Ua=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,za=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Ha=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Ga=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Ja=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function Xa(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):Ja.get(e)||e}function Ya(e,t){var o,_step38,n=[],_iterator38=_createForOfIteratorHelper(t.trim().split(/\s*,\s*/g));try{for(_iterator38.s();!(_step38=_iterator38.n()).done;){var _t78=_step38.value;if(isNaN(_t78)){if(!(o=_t78.match(Ha)))throw new Error("Invalid Chalk template style argument: ".concat(_t78," (in style '").concat(e,"')"));n.push(o[2].replace(Ga,(function(e,t,n){return t?Xa(t):n})))}else n.push(Number(_t78))}}catch(err){_iterator38.e(err)}finally{_iterator38.f()}return n}function Ka(e){za.lastIndex=0;for(var n,t=[];null!==(n=za.exec(e));){var _e83=n[1];if(n[2]){var _r66=Ya(_e83,n[2]);t.push([_e83].concat(_r66))}else t.push([_e83])}return t}function Qa(e,t){var _step39,n={},_iterator39=_createForOfIteratorHelper(t);try{for(_iterator39.s();!(_step39=_iterator39.n()).done;){var _step40,_e85=_step39.value,_iterator40=_createForOfIteratorHelper(_e85.styles);try{for(_iterator40.s();!(_step40=_iterator40.n()).done;){var _t79=_step40.value;n[_t79[0]]=_e85.inverse?null:_t79.slice(1)}}catch(err){_iterator40.e(err)}finally{_iterator40.f()}}}catch(err){_iterator39.e(err)}finally{_iterator39.f()}for(var r=e,_i40=0,_Object$keys17=Object.keys(n);_i40<_Object$keys17.length;_i40++){var _e84=_Object$keys17[_i40];if(Array.isArray(n[_e84])){if(!(_e84 in r))throw new Error("Unknown Chalk style: ".concat(_e84));r=n[_e84].length>0?r[_e84].apply(r,n[_e84]):r[_e84]}}return r}var Za=function Za(e,t){var n=[],r=[],o=[];if(t.replace(Ua,(function(t,i,u,s,a,c){if(i)o.push(Xa(i));else if(s){var _t80=o.join("");o=[],r.push(0===n.length?_t80:Qa(e,n)(_t80)),n.push({inverse:u,styles:Ka(s)})}else if(a){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(Qa(e,n)(o.join(""))),o=[],n.pop()}else o.push(c)})),r.push(o.join("")),n.length>0){var _e86="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(_e86)}return r.join("")},ec=i((function(e){var t=Wa.stdout,r=["ansi","ansi","ansi256","ansi16m"],o=new Set(["gray"]),i=Object.create(null);function u(e,n){n=n||{};var r=t?t.level:0;e.level=void 0===n.level?r:n.level,e.enabled="enabled"in n?n.enabled:e.level>0}function s(e){if(!this||!(this instanceof s)||this.template){var _t81={};return u(_t81,e),_t81.template=function(){var e=[].slice.call(arguments);return p.apply(null,[_t81.template].concat(e))},Object.setPrototypeOf(_t81,s.prototype),Object.setPrototypeOf(_t81.template,_t81),_t81.template.constructor=s,_t81.template}u(this,e)}for(var _loop10=function _loop10(){var e=_Object$keys18[_i41];Ra[e].closeRe=new RegExp(Na(Ra[e].close),"g"),i[e]={get:function get(){var t=Ra[e];return c.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}}},_i41=0,_Object$keys18=Object.keys(Ra);_i41<_Object$keys18.length;_i41++)_loop10();i.visible={get:function get(){return c.call(this,this._styles||[],!0,"visible")}},Ra.color.closeRe=new RegExp(Na(Ra.color.close),"g");for(var _loop11=function _loop11(){var e=_Object$keys19[_i42];o.has(e)||(i[e]={get:function get(){var t=this.level;return function(){var o={open:Ra.color[r[t]][e].apply(null,arguments),close:Ra.color.close,closeRe:Ra.color.closeRe};return c.call(this,this._styles?this._styles.concat(o):[o],this._empty,e)}}})},_i42=0,_Object$keys19=Object.keys(Ra.color.ansi);_i42<_Object$keys19.length;_i42++)_loop11();Ra.bgColor.closeRe=new RegExp(Na(Ra.bgColor.close),"g");for(var _loop12=function _loop12(){var e=_Object$keys20[_i43];if(o.has(e))return"continue";i["bg"+e[0].toUpperCase()+e.slice(1)]={get:function get(){var t=this.level;return function(){var o={open:Ra.bgColor[r[t]][e].apply(null,arguments),close:Ra.bgColor.close,closeRe:Ra.bgColor.closeRe};return c.call(this,this._styles?this._styles.concat(o):[o],this._empty,e)}}}},_i43=0,_Object$keys20=Object.keys(Ra.bgColor.ansi);_i43<_Object$keys20.length;_i43++)_loop12();var a=Object.defineProperties((function(){}),i);function c(e,t,n){var r=function r(){return l.apply(r,arguments)};r._styles=e,r._empty=t;var o=this;return Object.defineProperty(r,"level",{enumerable:!0,get:function get(){return o.level},set:function set(e){o.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:function get(){return o.enabled},set:function set(e){o.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=a,r}function l(){var e=arguments,t=e.length,r=String(arguments[0]);if(0===t)return"";if(t>1)for(var _n58=1;_n581&&void 0!==arguments[1]?arguments[1]:{};return pc(t)?function(e,t){var _step42,n="",_iterator42=_createForOfIteratorHelper(lc(t));try{var _loop13=function _loop13(){var _step42$value=_step42.value,r=_step42$value.type,o=_step42$value.value,t=e[r];n+=t?o.split(ac).map((function(e){return t(e)})).join("\n"):o};for(_iterator42.s();!(_step42=_iterator42.n()).done;)_loop13()}catch(err){_iterator42.e(err)}finally{_iterator42.f()}return n}(function(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}(fc(t)),e):e},oc=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=_typeof(e)&&"function"!=typeof e)return{default:e};var t=uc();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(ta),ic=function(e){return e&&e.__esModule?e:{default:e}}(ec);function uc(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return uc=function uc(){return e},e}var lc,sc=new Set(["as","async","from","get","of","set"]),ac=/\r\n|[\n\r\u2028\u2029]/,cc=/^[()[\]{}]$/,_e89=oc.matchToToken,_t82=/^[a-z][\w-]*$/i,_n60=function _n60(e,n,r){if("name"===e.type){if((0,Ba.isKeyword)(e.value)||(0,Ba.isStrictReservedWord)(e.value,!0)||sc.has(e.value))return"keyword";if(_t82.test(e.value)&&("<"===r[n-1]||"3&&void 0!==arguments[3]?arguments[3]:{};if(!yc){yc=!0;var _e90="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";new Error(_e90).name="DeprecationWarning",console.warn(new Error(_e90))}return Ec(e,{start:{column:n=Math.max(n,0),line:t}},r)},mc=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=_typeof(e)&&"function"!=typeof e)return{default:e};var t=gc();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(Object.defineProperty({shouldHighlight:tc,getChalk:nc,default:rc},"__esModule",{value:!0}));function gc(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return gc=function gc(){return e},e}var yc=!1,Dc=/\r\n|[\n\r\u2028\u2029]/;function Ec(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(n.highlightCode||n.forceColor)&&(0,mc.shouldHighlight)(n),o=(0,mc.getChalk)(n),i=function(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}(o),u=function u(e,t){return r?e(t):t},_ref55=function(e,t,n){var r=Object.assign({column:0,line:-1},e.start),o=Object.assign({},r,e.end),_ref56=n||{},_ref56$linesAbove=_ref56.linesAbove,i=void 0===_ref56$linesAbove?2:_ref56$linesAbove,_ref56$linesBelow=_ref56.linesBelow,u=void 0===_ref56$linesBelow?3:_ref56$linesBelow,s=r.line,a=r.column,c=o.line,l=o.column,p=Math.max(s-(i+1),0),f=Math.min(t.length,c+u);-1===s&&(p=0),-1===c&&(f=t.length);var d=c-s,h={};if(d)for(var _e91=0;_e91<=d;_e91++){var _n61=_e91+s;if(a)if(0===_e91){var _e92=t[_n61-1].length;h[_n61]=[a,_e92-a+1]}else if(_e91===d)h[_n61]=[0,l];else{var _r67=t[_n61-_e91].length;h[_n61]=[0,_r67]}else h[_n61]=!0}else h[s]=a===l?!a||[a,0]:[a,l-a];return{start:p,end:f,markerLines:h}}(t,e.split(Dc),n),a=_ref55.start,c=_ref55.end,l=_ref55.markerLines,p=t.start&&"number"==typeof t.start.column,f=String(c).length,d=(r?(0,mc.default)(e,n):e).split(Dc).slice(a,c).map((function(e,t){var r=a+1+t,o=" ".concat(r).slice(-f),s=" ".concat(o," |"),c=l[r],p=!l[r+1];if(c){var _t83="";if(Array.isArray(c)){var _r68=e.slice(0,Math.max(c[0]-1,0)).replace(/[^\t]/g," "),_o22=c[1]||1;_t83=["\n ",u(i.gutter,s.replace(/\d/g," "))," ",_r68,u(i.marker,"^").repeat(_o22)].join(""),p&&n.message&&(_t83+=" "+u(i.message,n.message))}return[u(i.marker,">"),u(i.gutter,s),e.length>0?" ".concat(e):"",_t83].join("")}return" ".concat(u(i.gutter,s)).concat(e.length>0?" ".concat(e):"")})).join("\n");return n.message&&!p&&(d="".concat(" ".repeat(f+1)).concat(n.message,"\n").concat(d)),r?o.reset(d):d}var bc=Object.defineProperty({codeFrameColumns:dc,default:hc},"__esModule",{value:!0}),Cc=o(tr),vc=uo.ConfigError,Ac=ea.locStart,Fc=ea.locEnd,xc=Object.getOwnPropertyNames,Sc=Object.getOwnPropertyDescriptor;function wc(e){var _step43,t={},_iterator43=_createForOfIteratorHelper(e.plugins);try{for(_iterator43.s();!(_step43=_iterator43.n()).done;){var _n62=_step43.value;if(_n62.parsers){var _step44,_iterator44=_createForOfIteratorHelper(xc(_n62.parsers));try{for(_iterator44.s();!(_step44=_iterator44.n()).done;){var _e93=_step44.value;Object.defineProperty(t,_e93,Sc(_n62.parsers,_e93))}}catch(err){_iterator44.e(err)}finally{_iterator44.f()}}}}catch(err){_iterator43.e(err)}finally{_iterator43.f()}return t}function Tc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wc(e);if("function"==typeof e.parser)return{parse:e.parser,astFormat:"estree",locStart:Ac,locEnd:Fc};if("string"==typeof e.parser){if(Object.prototype.hasOwnProperty.call(t,e.parser))return t[e.parser];throw new vc("Couldn't resolve parser \"".concat(e.parser,'". Parsers must be explicitly added to the standalone bundle.'))}}var Bc={parse:function parse(e,t){var n=wc(t),r=Object.keys(n).reduce((function(e,t){return Object.defineProperty(e,t,{enumerable:!0,get:function get(){return n[t].parse}})}),{}),o=Tc(t,n);try{return o.preprocess&&(e=o.preprocess(e,t)),{text:e,ast:o.parse(e,r,t)}}catch(t){var _n63=t.loc;if(_n63){var _r69=bc.codeFrameColumns;throw t.codeFrame=_r69(e,_n63,{highlightCode:!0}),t.message+="\n"+t.codeFrame,t}throw t.stack}},resolveParser:Tc},kc=uo.UndefinedParserError,Nc=Mt.getSupportInfo,Pc=Bc.resolveParser,Oc={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function Ic(e,t){var n=Cc.basename(e).toLowerCase(),r=Nc({plugins:t}).languages.filter((function(e){return null!==e.since})),o=r.find((function(e){return e.extensions&&e.extensions.some((function(e){return n.endsWith(e)}))||e.filenames&&e.filenames.some((function(e){return e.toLowerCase()===n}))}));if(!o&&!n.includes(".")){var _t84=function(e){if("string"!=typeof e)return"";var t;try{t=eo.openSync(e,"r")}catch(e){return""}try{var _e94=new to(t).next().toString("utf8"),_n64=_e94.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/);if(_n64)return _n64[1];var _r70=_e94.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/);return _r70?_r70[1]:""}catch(e){return""}finally{try{eo.closeSync(t)}catch(e){}}}(e);o=r.find((function(e){return e.interpreters&&e.interpreters.includes(_t84)}))}return o&&o.parsers[0]}var jc={normalize:function normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign({},e),r=Nc({plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,o=Object.assign({},Oc,Ne(r.filter((function(e){return void 0!==e.default})).map((function(e){return[e.name,e.default]}))));if(!n.parser)if(n.filepath){if(n.parser=Ic(n.filepath,n.plugins),!n.parser)throw new kc("No parser could be inferred for file: ".concat(n.filepath))}else(t.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),n.parser="babel";var i=Pc(Xs.normalizeApiOptions(n,[r.find((function(e){return"parser"===e.name}))],{passThrough:!0,logger:!1}));n.astFormat=i.astFormat,n.locEnd=i.locEnd,n.locStart=i.locStart;var u=function(e){var t=e.astFormat;if(!t)throw new Error("getPlugin() requires astFormat to be set");var n=e.plugins.find((function(e){return e.printers&&e.printers[t]}));if(!n)throw new Error("Couldn't find plugin for AST format \"".concat(t,'"'));return n}(n);n.printer=u.printers[n.astFormat];for(var s=Ne(r.filter((function(e){return e.pluginDefaults&&void 0!==e.pluginDefaults[u.name]})).map((function(e){return[e.name,e.pluginDefaults[u.name]]}))),a=Object.assign({},o,s),_i44=0,_Object$entries8=Object.entries(a);_i44<_Object$entries8.length;_i44++){var _Object$entries8$_i=_slicedToArray(_Object$entries8[_i44],2),_e95=_Object$entries8$_i[0],_t85=_Object$entries8$_i[1];null!==n[_e95]&&void 0!==n[_e95]||(n[_e95]=_t85)}return"json"===n.parser&&(n.trailingComma="none"),Xs.normalizeApiOptions(n,r,Object.assign({passThrough:Object.keys(Oc)},t))},hiddenDefaults:Oc,inferParser:Ic},Lc=function e(t,n,r){if(Array.isArray(t))return t.map((function(t){return e(t,n,r)})).filter(Boolean);if(!t||"object"!=_typeof(t))return t;var i,o=n.printer.massageAstNode;i=o&&o.ignoredProperties?o.ignoredProperties:new Set;for(var u={},_i45=0,_Object$entries9=Object.entries(t);_i45<_Object$entries9.length;_i45++){var _Object$entries9$_i=_slicedToArray(_Object$entries9[_i45],2),_r71=_Object$entries9$_i[0],_o23=_Object$entries9$_i[1];i.has(_r71)||"function"==typeof _o23||(u[_r71]=e(_o23,n,t))}if(o){var _e96=o(t,u,r);if(null===_e96)return;if(_e96)return _e96}return u},_c="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function n(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e};function Mc(e,t){var n={seen:[],stylize:Vc};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Uc(t)?n.showHidden=t:t&&tl(n,t),Gc(n.showHidden)&&(n.showHidden=!1),Gc(n.depth)&&(n.depth=2),Gc(n.colors)&&(n.colors=!1),Gc(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=Rc),$c(n,e,n.depth)}function Rc(e,t){var n=Mc.styles[t];return n?"["+Mc.colors[n][0]+"m"+e+"["+Mc.colors[n][1]+"m":e}function Vc(e,t){return e}function $c(e,t,n){if(e.customInspect&&t&&Qc(t.inspect)&&t.inspect!==Mc&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return Hc(r)||(r=$c(e,r,n)),r}var o=function(e,t){if(Gc(t))return e.stylize("undefined","undefined");if(Hc(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return"number"==typeof t?e.stylize(""+t,"number"):Uc(t)?e.stylize(""+t,"boolean"):zc(t)?e.stylize("null","null"):void 0}(e,t);if(o)return o;var i=Object.keys(t),u=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),Kc(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return qc(t);if(0===i.length){if(Qc(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Jc(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Yc(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Kc(t))return qc(t)}var a,c,l="",p=!1,f=["{","}"];return a=t,Array.isArray(a)&&(p=!0,f=["[","]"]),Qc(t)&&(l=" [Function"+(t.name?": "+t.name:"")+"]"),Jc(t)&&(l=" "+RegExp.prototype.toString.call(t)),Yc(t)&&(l=" "+Date.prototype.toUTCString.call(t)),Kc(t)&&(l=" "+qc(t)),0!==i.length||p&&0!=t.length?n<0?Jc(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=p?function(e,t,n,r,o){for(var i=[],u=0,s=t.length;u60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(c,l,f)):f[0]+l+f[1]}function qc(e){return"["+Error.prototype.toString.call(e)+"]"}function Wc(e,t,n,r,o,i){var u,s,a;if((a=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=a.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):a.set&&(s=e.stylize("[Setter]","special")),nl(r,o)||(u="["+o+"]"),s||(e.seen.indexOf(a.value)<0?(s=zc(n)?$c(e,a.value,null):$c(e,a.value,n-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),Gc(u)){if(i&&o.match(/^\d+$/))return s;(u=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=e.stylize(u,"name")):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=e.stylize(u,"string"))}return u+": "+s}function Uc(e){return"boolean"==typeof e}function zc(e){return null===e}function Hc(e){return"string"==typeof e}function Gc(e){return void 0===e}function Jc(e){return Xc(e)&&"[object RegExp]"===el(e)}function Xc(e){return"object"==_typeof(e)&&null!==e}function Yc(e){return Xc(e)&&"[object Date]"===el(e)}function Kc(e){return Xc(e)&&("[object Error]"===el(e)||e instanceof Error)}function Qc(e){return"function"==typeof e}function Zc(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==_typeof(e)||void 0===e}function el(e){return Object.prototype.toString.call(e)}function tl(e,t){if(!t||!Xc(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function nl(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function rl(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o=0){var u=r.indexOf("\n",i+1);r=r.substring(u+1)}this.stack=r}}}function ml(e,t){return"string"==typeof e?e.length=0;s--)if(a[s]!==c[s])return!1;for(s=a.length-1;s>=0;s--)if(!Al(e[u=a[s]],t[u],n,r))return!1;return!0}(e,t,n,r))}return n?e===t:e==t}function Fl(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function xl(e,t,n){Al(e,t,!1)&&yl(e,t,n,"notDeepEqual",xl)}function Sl(e,t,n){Al(e,t,!0)&&yl(e,t,n,"notDeepStrictEqual",Sl)}function wl(e,t,n){e!==t&&yl(e,t,n,"===",wl)}function Tl(e,t,n){e===t&&yl(e,t,n,"!==",Tl)}function Bl(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function kl(e,t,n,r){var o;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),o=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!o&&yl(o,n,"Missing expected exception"+r);var i="string"==typeof r,u=!e&&o&&!n;if((!e&&Kc(o)&&i&&Bl(o,n)||u)&&yl(o,n,"Got unwanted exception"+r),e&&o&&n&&!Bl(o,n)||!e&&o)throw o}function Nl(e,t,n){kl(!0,e,t,n)}function Pl(e,t,n){kl(!1,e,t,n)}function Ol(e){if(e)throw e}pl.AssertionError=hl,_c(hl,Error),pl.fail=yl,pl.ok=Dl,pl.equal=El,pl.notEqual=bl,pl.deepEqual=Cl,pl.deepStrictEqual=vl,pl.notDeepEqual=xl,pl.notDeepStrictEqual=Sl,pl.strictEqual=wl,pl.notStrictEqual=Tl,pl.throws=Nl,pl.doesNotThrow=Pl,pl.ifError=Ol;var Il=o(Object.freeze({__proto__:null,default:pl,AssertionError:hl,fail:yl,ok:Dl,assert:Dl,equal:El,notEqual:bl,deepEqual:Cl,deepStrictEqual:vl,notDeepEqual:xl,notDeepStrictEqual:Sl,strictEqual:wl,notStrictEqual:Tl,throws:Nl,doesNotThrow:Pl,ifError:Ol})),_Rn$builders=Rn.builders,jl=_Rn$builders.line,Ll=_Rn$builders.hardline,_l=_Rn$builders.breakParent,Ml=_Rn$builders.indent,Rl=_Rn$builders.lineSuffix,Vl=_Rn$builders.join,$l=_Rn$builders.cursor,ql=rn.hasNewline,Wl=rn.skipNewline,Ul=rn.skipSpaces,zl=rn.isPreviousLineEmpty,Hl=rn.addLeadingComment,Gl=rn.addDanglingComment,Jl=rn.addTrailingComment,Xl=new WeakMap;function Yl(e,t,n){if(e){var r=t.printer,o=t.locStart,i=t.locEnd;if(n){if(r.canAttachComment&&r.canAttachComment(e)){var _t86;for(_t86=n.length-1;_t86>=0&&!(o(n[_t86])<=o(e)&&i(n[_t86])<=i(e));--_t86);return void n.splice(_t86+1,0,e)}}else if(Xl.has(e))return Xl.get(e);var u=r.getCommentChildNodes&&r.getCommentChildNodes(e,t)||"object"==_typeof(e)&&Object.entries(e).filter((function(_ref57){var e=_slicedToArray(_ref57,1)[0];return"enclosingNode"!==e&&"precedingNode"!==e&&"followingNode"!==e&&"tokens"!==e&&"comments"!==e})).map((function(_ref59){return _slicedToArray(_ref59,2)[1]}));if(u){n||(n=[],Xl.set(e,n));var _step45,_iterator45=_createForOfIteratorHelper(u);try{for(_iterator45.s();!(_step45=_iterator45.n()).done;)Yl(_step45.value,t,n)}catch(err){_iterator45.e(err)}finally{_iterator45.f()}return n}}}function Kl(e,t,n,r){for(var c,l,o=n.locStart,i=n.locEnd,u=o(t),s=i(t),a=Yl(e,n),p=0,f=a.length;p>1,_r72=a[_e98],_d3=o(_r72),_h3=i(_r72);if(_d3<=u&&s<=_h3)return Kl(_r72,t,n,_r72);if(_h3<=u)c=_r72,p=_e98+1;else{if(!(s<=_d3))throw new Error("Comment location overlaps with node location");l=_r72,f=_e98}}if(r&&"TemplateLiteral"===r.type){var _e99=r.quasis,_o24=op(_e99,t,n);c&&op(_e99,c,n)!==_o24&&(c=null),l&&op(_e99,l,n)!==_o24&&(l=null)}return{enclosingNode:r,precedingNode:c,followingNode:l}}var Ql=function Ql(){return!1},Zl=function Zl(e){return!/[\S\n\u2028\u2029]/.test(e)};function ep(e,t,n,r){var _n$r=n[r],o=_n$r.comment,i=_n$r.precedingNode,u=t.locStart,s=t.locEnd,a=u(o);if(i)for(var _t87=r-1;_t87>=0;_t87--){var _n$_t=n[_t87],_r73=_n$_t.comment;if(_n$_t.precedingNode!==i||!Zl(e.slice(s(_r73),a)))break;a=u(_r73)}return ql(e,a,{backwards:!0})}function tp(e,t,n,r){var _n$r2=n[r],o=_n$r2.comment,i=_n$r2.followingNode,u=t.locStart,s=t.locEnd,a=s(o);if(i)for(var _t88=r+1;_t880;--a){var _e100=e[a-1],_r75=_e100.comment,_u11=_e100.precedingNode,_l4=_e100.followingNode;Il.strictEqual(_u11,o),Il.strictEqual(_l4,i);var _p3=t.slice(n.locEnd(_r75),c);if(!s.test(_p3))break;c=n.locStart(_r75)}var _step46,_iterator46=_createForOfIteratorHelper(e.entries());try{for(_iterator46.s();!(_step46=_iterator46.n()).done;){var _step46$value=_slicedToArray(_step46.value,2),_t89=_step46$value[0],_n65=_step46$value[1].comment;_t891&&_e101.comments.sort((function(e,t){return n.locStart(e)-n.locStart(t)}))}e.length=0}}function rp(e,t){return e.getValue().printed=!0,t.printer.printComment(e,t)}function op(e,t,n){for(var r=n.locStart(t)-1,_t90=1;_t90=0){Jl(_g3,_n66);continue}}var _D2=void 0;if(a?_D2=[_t92]:(_n66.enclosingNode=_s17,_n66.precedingNode=_r76,_n66.followingNode=_d4,_D2=[_n66,_h4,_m3,_g3,_y3]),ep(_h4,_m3,f,_e105))_n66.placement="ownLine",c.apply(void 0,_toConsumableArray(_D2))||(_d4?Hl(_d4,_n66):_r76?Jl(_r76,_n66):Gl(_s17||_g3,_n66));else if(tp(_h4,_m3,f,_e105))_n66.placement="endOfLine",l.apply(void 0,_toConsumableArray(_D2))||(_r76?Jl(_r76,_n66):_d4?Hl(_d4,_n66):Gl(_s17||_g3,_n66));else if(_n66.placement="remaining",p.apply(void 0,_toConsumableArray(_D2)));else if(_r76&&_d4){var _e106=o.length;_e106>0&&o[_e106-1].followingNode!==_d4&&np(o,_h4,_m3),o.push(_t92)}else _r76?Jl(_r76,_n66):_d4?Hl(_d4,_n66):Gl(_s17||_g3,_n66)}}catch(err){_iterator47.e(err)}finally{_iterator47.f()}if(np(o,n,r),!a){var _step48,_iterator48=_createForOfIteratorHelper(e);try{for(_iterator48.s();!(_step48=_iterator48.n()).done;){var _t91=_step48.value;delete _t91.precedingNode,delete _t91.enclosingNode,delete _t91.followingNode}}catch(err){_iterator48.e(err)}finally{_iterator48.f()}}}},printComments:function printComments(e,t,n,r){var _ip=ip(e,n,r),o=_ip.leading,i=_ip.trailing;return o||i?[o,t,i]:t},printCommentsSeparately:ip,printDanglingComments:function printDanglingComments(e,t,n,r){var o=[],i=e.getValue();return i&&i.comments?(e.each((function(){var n=e.getValue();n.leading||n.trailing||r&&!r(n)||o.push(rp(e,t))}),"comments"),0===o.length?"":n?Vl(Ll,o):Ml([Ll,Vl(Ll,o)])):""},getSortedChildNodes:Yl,ensureAllCommentsPrinted:function ensureAllCommentsPrinted(e){if(e){var _step49,_iterator49=_createForOfIteratorHelper(e);try{for(_iterator49.s();!(_step49=_iterator49.n()).done;){var _t93=_step49.value;if(!_t93.printed)throw new Error('Comment "'+_t93.value.trim()+'" was not printed. Please report this error!');delete _t93.printed}}catch(err){_iterator49.e(err)}finally{_iterator49.f()}}}};function sp(e,t){var n=ap(e.stack,t);return-1===n?null:e.stack[n]}function ap(e,t){for(var _n67=e.length-1;_n67>=0;_n67-=2){var r=e[_n67];if(r&&!Array.isArray(r)&&--t<0)return _n67}return-1}var cp=function(){function cp(e){_classCallCheck(this,cp),this.stack=[e]}return _createClass(cp,[{key:"getName",value:function getName(){var e=this.stack,t=e.length;return t>1?e[t-2]:null}},{key:"getValue",value:function getValue(){return ke(this.stack)}},{key:"getNode",value:function getNode(){return sp(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"getParentNode",value:function getParentNode(){return sp(this,(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1)}},{key:"call",value:function call(e){for(var n=this.stack,r=n.length,o=ke(n),_len11=arguments.length,t=new Array(_len11>1?_len11-1:0),_key11=1;_key11<_len11;_key11++)t[_key11-1]=arguments[_key11];for(var _i47=0,_t94=t;_i47<_t94.length;_i47++){var _e107=_t94[_i47];o=o[_e107],n.push(_e107,o)}var i=e(this);return n.length=r,i}},{key:"callParent",value:function callParent(e){var _this$stack,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=ap(this.stack,t+1),r=this.stack.splice(n+1),o=e(this);return(_this$stack=this.stack).push.apply(_this$stack,_toConsumableArray(r)),o}},{key:"each",value:function each(e){for(var n=this.stack,r=n.length,o=ke(n),_len12=arguments.length,t=new Array(_len12>1?_len12-1:0),_key12=1;_key12<_len12;_key12++)t[_key12-1]=arguments[_key12];for(var _i48=0,_t95=t;_i48<_t95.length;_i48++){var _e108=_t95[_i48];o=o[_e108],n.push(_e108,o)}for(var _t96=0;_t961?_len13-1:0),_key13=1;_key13<_len13;_key13++)t[_key13-1]=arguments[_key13];return this.each.apply(this,[function(t,r,o){n[r]=e(t,r,o)}].concat(t)),n}},{key:"try",value:function _try(e){var t=this.stack,n=_toConsumableArray(t);try{return e()}finally{t.length=0,t.push.apply(t,n)}}},{key:"match",value:function match(){for(var t=this.stack.length-1,n=null,r=this.stack[t--],_len14=arguments.length,e=new Array(_len14),_key14=0;_key14<_len14;_key14++)e[_key14]=arguments[_key14];for(var _i49=0,_e109=e;_i49<_e109.length;_i49++){var _o27=_e109[_i49];if(void 0===r)return!1;var _e110=null;if("number"==typeof n&&(_e110=n,n=this.stack[t--],r=this.stack[t--]),_o27&&!_o27(r,n,_e110))return!1;n=this.stack[t--],r=this.stack[t--]}return!0}},{key:"findAncestor",value:function findAncestor(e){for(var t=this.stack.length-1,n=null,r=this.stack[t--];r;){var _o28=null;if("number"==typeof n&&(_o28=n,n=this.stack[t--],r=this.stack[t--]),null!==n&&e(r,n,_o28))return r;n=this.stack[t--],r=this.stack[t--]}}}]),cp}(),lp=Rn.utils.stripTrailingHardline,pp=jc.normalize,fp={printSubtree:function printSubtree(e,t,n,r){if(n.printer.embed&&"auto"===n.embeddedLanguageFormatting)return n.printer.embed(e,t,(function(e,t,o){return function(e,t,n,r){var _ref61$stripTrailingH=(arguments.length>4&&void 0!==arguments[4]?arguments[4]:{}).stripTrailingHardline,o=void 0!==_ref61$stripTrailingH&&_ref61$stripTrailingH,i=pp(Object.assign({},n,t,{parentParser:n.parser,originalText:e}),{passThrough:!0}),u=Bc.parse(e,i),s=u.ast;e=u.text;var a=s.comments;delete s.comments,up.attach(a,s,e,i),i[Symbol.for("comments")]=a||[],i[Symbol.for("tokens")]=s.tokens||[];var c=r(s,i);return up.ensureAllCommentsPrinted(a),o?"string"==typeof c?c.replace(/(?:\r?\n)*$/,""):lp(c):c}(e,t,n,r,o)}),n)}},_Rn$builders2=Rn.builders,dp=_Rn$builders2.hardline,hp=_Rn$builders2.addAlignmentToDoc,mp=Rn.utils.propagateBreaks,gp=up.printComments;function yp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=t.printer;o.preprocess&&(e=o.preprocess(e,t));var i=new Map,u=new cp(e),s=a();return n>0&&(s=hp([dp,s],n,t.tabWidth)),mp(s),s;function a(e,t){return void 0===e||e===u?c(t):Array.isArray(e)?u.call.apply(u,[function(){return c(t)}].concat(_toConsumableArray(e))):u.call((function(){return c(t)}),e)}function c(e){var n=u.getValue(),o=n&&"object"==_typeof(n)&&void 0===e;if(o&&i.has(n))return i.get(n);var s=function(e,t,n,o){var s,a,i=e.getValue(),u=t.printer;if(u.hasPrettierIgnore&&u.hasPrettierIgnore(e)){var _ref62=function(e,t){var _step50,n=t.originalText,r=t[Symbol.for("comments")],o=t.locStart,i=t.locEnd,u=o(e),s=i(e),a=new Set,_iterator50=_createForOfIteratorHelper(r);try{for(_iterator50.s();!(_step50=_iterator50.n()).done;){var _e111=_step50.value;o(_e111)>=u&&i(_e111)<=s&&(_e111.printed=!0,a.add(_e111))}}catch(err){_iterator50.e(err)}finally{_iterator50.f()}return{doc:n.slice(u,s),printedComments:a}}(i,t);s=_ref62.doc,a=_ref62.printedComments}else{if(i)try{s=fp.printSubtree(e,n,t,yp)}catch(e){if(r.PRETTIER_DEBUG)throw e}s||(s=u.print(e,t,n,o))}return u.willPrintOwnComments&&u.willPrintOwnComments(e,t)||(s=gp(e,s,t,a)),s}(u,t,a,e);return o&&i.set(n,s),s}}var Dp=yp;function Ep(e){for(var t=e.length-1;;){var _n68=e[t];if(!_n68||"Program"!==_n68.type&&"File"!==_n68.type)break;t--}return e.slice(0,t+1)}function bp(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=arguments.length>5?arguments[5]:void 0,u=n.locStart,s=n.locEnd,a=u(e),c=s(e);if(!(t>c||tr);var s=e.slice(r,o).search(/\S/),a=-1===s;if(!a)for(r+=s;o>r&&!/\S/.test(e[o-1]);--o);var p,f,c=bp(n,r,t,(function(e,n){return Ap(t,e,n)}),[],"rangeStart"),l=a?c:bp(n,o,t,(function(e){return Ap(t,e)}),[],"rangeEnd");if(!c||!l)return{rangeStart:0,rangeEnd:0};if(function(_ref63){var e=_ref63.parser;return"json"===e||"json5"===e||"json-stringify"===e}(t)){var _e112=function(e,t){var n=[e.node].concat(_toConsumableArray(e.parentNodes)),r=new Set([t.node].concat(_toConsumableArray(t.parentNodes)));return n.find((function(e){return Cp.has(e.type)&&r.has(e)}))}(c,l);p=_e112,f=_e112}else{var _ref64=function(e,t,_ref65){var n=_ref65.locStart,r=_ref65.locEnd,o=e.node,i=t.node;if(o===i)return{startNode:o,endNode:i};var _step52,u=n(e.node),_iterator52=_createForOfIteratorHelper(Ep(t.parentNodes));try{for(_iterator52.s();!(_step52=_iterator52.n()).done;){var _e113=_step52.value;if(!(n(_e113)>=u))break;i=_e113}}catch(err){_iterator52.e(err)}finally{_iterator52.f()}var _step53,s=r(t.node),_iterator53=_createForOfIteratorHelper(Ep(e.parentNodes));try{for(_iterator53.s();!(_step53=_iterator53.n()).done;){var _t97=_step53.value;if(!(r(_t97)<=s))break;o=_t97}}catch(err){_iterator53.e(err)}finally{_iterator53.f()}return{startNode:o,endNode:i}}(c,l,t);p=_ref64.startNode,f=_ref64.endNode}return{rangeStart:Math.min(i(p),i(f)),rangeEnd:Math.max(u(p),u(f))}},findNodeAtOffset:bp},xp=Rn.printer.printDocToString,Sp=Rn.debug.printDocToDebug,wp=rn.getAlignmentSize,Tp=on.guessEndOfLine,Bp=on.convertEndOfLineToChars,kp=on.countEndOfLineChars,Np=on.normalizeEndOfLine,Pp=jc.normalize,Op=Symbol("cursor");function Ip(e,t,n){var r=t.comments;return r&&(delete t.comments,up.attach(r,t,e,n)),n[Symbol.for("comments")]=r||[],n[Symbol.for("tokens")]=t.tokens||[],n.originalText=e,r}function jp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!e||0===e.trim().length)return{formatted:"",cursorOffset:-1,comments:[]};var _Bc$parse=Bc.parse(e,t),r=_Bc$parse.ast,o=_Bc$parse.text;if(t.cursorOffset>=0){var _e114=Fp.findNodeAtOffset(r,t.cursorOffset,t);_e114&&_e114.node&&(t.cursorNode=_e114.node)}var i=Ip(o,r,t),u=Dp(r,t,n),s=xp(u,t);if(up.ensureAllCommentsPrinted(i),n>0){var _e115=s.formatted.trim();void 0!==s.cursorNodeStart&&(s.cursorNodeStart-=s.formatted.indexOf(_e115)),s.formatted=_e115+Bp(t.endOfLine)}if(t.cursorOffset>=0){var _e116,_n69,_r77,_u13,_a3;if(t.cursorNode&&s.cursorNodeText?(_e116=t.locStart(t.cursorNode),_n69=o.slice(_e116,t.locEnd(t.cursorNode)),_r77=t.cursorOffset-_e116,_u13=s.cursorNodeStart,_a3=s.cursorNodeText):(_e116=0,_n69=o,_r77=t.cursorOffset,_u13=0,_a3=s.formatted),_n69===_a3)return{formatted:s.formatted,cursorOffset:_u13+_r77,comments:i};var _c7=_n69.split("");_c7.splice(_r77,0,Op);var _step54,_l5=_a3.split(""),_f3=_u13,_iterator54=_createForOfIteratorHelper(pe.diffArrays(_c7,_l5));try{for(_iterator54.s();!(_step54=_iterator54.n()).done;){var _e117=_step54.value;if(_e117.removed){if(_e117.value.includes(Op))break}else _f3+=_e117.count}}catch(err){_iterator54.e(err)}finally{_iterator54.f()}return{formatted:s.formatted,cursorOffset:_f3,comments:i}}return{formatted:s.formatted,cursorOffset:-1,comments:i}}function Lp(e,t,n){return"number"!=typeof t||Number.isNaN(t)||t<0||t>e.length?n:t}function _p(e,t){var n=t.cursorOffset,r=t.rangeStart,o=t.rangeEnd;return n=Lp(e,n,-1),r=Lp(e,r,0),o=Lp(e,o,e.length),Object.assign({},t,{cursorOffset:n,rangeStart:r,rangeEnd:o})}function Mp(e,t){var _p5=_p(e,t),n=_p5.cursorOffset,r=_p5.rangeStart,o=_p5.rangeEnd,i=_p5.endOfLine,u="\ufeff"===e.charAt(0);if(u&&(e=e.slice(1),n--,r--,o--),"auto"===i&&(i=Tp(e)),e.includes("\r")){var _t98=function _t98(t){return kp(e.slice(0,Math.max(t,0)),"\r\n")};n-=_t98(n),r-=_t98(r),o-=_t98(o),e=Np(e)}return{hasBOM:u,text:e,options:_p(e,Object.assign({},t,{cursorOffset:n,rangeStart:r,rangeEnd:o,endOfLine:i}))}}function Rp(e,t){var n=Bc.resolveParser(t);return!n.hasPragma||n.hasPragma(e)}function Vp(e,t){var n,_Mp=Mp(e,Pp(t)),r=_Mp.hasBOM,o=_Mp.text,i=_Mp.options;return i.rangeStart>=i.rangeEnd&&""!==o||i.requirePragma&&!Rp(o,i)?{formatted:e,cursorOffset:t.cursorOffset,comments:[]}:(i.rangeStart>0||i.rangeEndo&&t.cursorOffset=i?f+=p.length-u.length:l.cursorOffset>=0&&(f=l.cursorOffset+o);var d=r.slice(0,o)+p+r.slice(i);if("lf"!==t.endOfLine){var _e118=Bp(t.endOfLine);f>=0&&"\r\n"===_e118&&(f+=kp(d.slice(0,f),"\n")),d=d.replace(/\n/g,_e118)}return{formatted:d,cursorOffset:f,comments:l.comments}}(o,i):(!i.requirePragma&&i.insertPragma&&i.printer.insertPragma&&!Rp(o,i)&&(o=i.printer.insertPragma(o)),n=jp(o,i)),r&&(n.formatted="\ufeff"+n.formatted,n.cursorOffset>=0&&n.cursorOffset++),n)}var $p={formatWithCursor:Vp,parse:function parse(e,t,n){var _Mp2=Mp(e,Pp(t)),r=_Mp2.text,o=_Mp2.options,i=Bc.parse(r,o);return n&&(i.ast=Lc(i.ast,o)),i},formatAST:function formatAST(e,t){t=Pp(t);var n=Dp(e,t);return xp(n,t)},formatDoc:function formatDoc(e,t){return Vp(Sp(e),Object.assign({},t,{parser:"__js_expression"})).formatted},printToDoc:function printToDoc(e,t){t=Pp(t);var _Bc$parse3=Bc.parse(e,t),n=_Bc$parse3.ast;return Ip(_Bc$parse3.text,n,t),Dp(n,t)},printDocToString:function printDocToString(e,t){return xp(e,Pp(t))}},qp=rn.getMaxContinuousCount,Wp=rn.getStringWidth,Up=rn.getAlignmentSize,zp=rn.getIndentSize,Hp=rn.skip,Gp=rn.skipWhitespace,Jp=rn.skipSpaces,Xp=rn.skipNewline,Yp=rn.skipToLineEnd,Kp=rn.skipEverythingButNewLine,Qp=rn.skipInlineComment,Zp=rn.skipTrailingComment,ef=rn.hasNewline,tf=rn.hasNewlineInRange,nf=rn.hasSpaces,rf=rn.isNextLineEmpty,of=rn.isNextLineEmptyAfterIndex,uf=rn.isPreviousLineEmpty,sf=rn.getNextNonSpaceNonCommentCharacterIndex,af=rn.makeString,cf=rn.addLeadingComment,lf=rn.addDanglingComment,pf=rn.addTrailingComment,ff={getMaxContinuousCount:qp,getStringWidth:Wp,getAlignmentSize:Up,getIndentSize:zp,skip:Hp,skipWhitespace:Gp,skipSpaces:Jp,skipNewline:Xp,skipToLineEnd:Yp,skipEverythingButNewLine:Kp,skipInlineComment:Qp,skipTrailingComment:Zp,hasNewline:ef,hasNewlineInRange:tf,hasSpaces:nf,isNextLineEmpty:rf,isNextLineEmptyAfterIndex:of,isPreviousLineEmpty:uf,getNextNonSpaceNonCommentCharacterIndex:sf,makeString:af,addLeadingComment:cf,addDanglingComment:lf,addTrailingComment:pf},df=function df(t,n){var r=t.languageId,o=e(t,["languageId"]);return Object.assign({linguistLanguageId:r},o,n(t))},hf=i((function(e){!function(){function t(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function n(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}e.exports={isExpression:function isExpression(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:t,isIterationStatement:function isIterationStatement(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function isSourceElement(e){return t(e)||null!=e&&"FunctionDeclaration"===e.type},isProblematicIfStatement:function isProblematicIfStatement(e){var t;if("IfStatement"!==e.type)return!1;if(null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=n(t)}while(t);return!1},trailingStatement:n}}()})),mf=i((function(e){!function(){var t,n,r,o,i,u;function s(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],o=new Array(128),u=0;u<128;++u)o[u]=u>=97&&u<=122||u>=65&&u<=90||36===u||95===u;for(i=new Array(128),u=0;u<128;++u)i[u]=u>=97&&u<=122||u>=65&&u<=90||u>=48&&u<=57||36===u||95===u;e.exports={isDecimalDigit:function isDecimalDigit(e){return 48<=e&&e<=57},isHexDigit:function isHexDigit(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function isOctalDigit(e){return e>=48&&e<=55},isWhiteSpace:function isWhiteSpace(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&r.indexOf(e)>=0},isLineTerminator:function isLineTerminator(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function isIdentifierStartES5(e){return e<128?o[e]:n.NonAsciiIdentifierStart.test(s(e))},isIdentifierPartES5:function isIdentifierPartES5(e){return e<128?i[e]:n.NonAsciiIdentifierPart.test(s(e))},isIdentifierStartES6:function isIdentifierStartES6(e){return e<128?o[e]:t.NonAsciiIdentifierStart.test(s(e))},isIdentifierPartES6:function isIdentifierPartES6(e){return e<128?i[e]:t.NonAsciiIdentifierPart.test(s(e))}}}()})),gf=i((function(e){!function(){var t=mf;function n(e,t){return!(!t&&"yield"===e)&&r(e,t)}function r(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function o(e,t){return"null"===e||"true"===e||"false"===e||n(e,t)}function i(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function u(e){var n,r,o;if(0===e.length)return!1;if(o=e.charCodeAt(0),!t.isIdentifierStartES5(o))return!1;for(n=1,r=e.length;n=r)return!1;if(!(56320<=(i=e.charCodeAt(n))&&i<=57343))return!1;o=1024*(o-55296)+(i-56320)+65536}if(!u(o))return!1;u=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:n,isKeywordES6:r,isReservedWordES5:o,isReservedWordES6:i,isRestrictedWord:function isRestrictedWord(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:u,isIdentifierNameES6:s,isIdentifierES5:function isIdentifierES5(e,t){return u(e)&&!o(e,t)},isIdentifierES6:function isIdentifierES6(e,t){return s(e)&&!i(e,t)}}}()})),yf=i((function(e,t){t.ast=hf,t.code=mf,t.keyword=gf})).keyword.isIdentifierNameES5,Df=rn.getLast,Ef=rn.hasNewline,bf=rn.skipWhitespace,Cf=rn.isNonEmptyArray,vf=rn.isNextLineEmptyAfterIndex,Af=ea.locStart,Ff=ea.locEnd,xf=ea.hasSameLocStart,Sf="(?:(?=.)\\s)",wf=new RegExp("^".concat(Sf,"*:")),Tf=new RegExp("^".concat(Sf,"*::"));function Bf(e){return"AssignmentExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type||"ConditionalExpression"===e.type||Uf(e)||zf(e)||"SequenceExpression"===e.type||"TaggedTemplateExpression"===e.type||"BindExpression"===e.type||"UpdateExpression"===e.type&&!e.prefix||"TSAsExpression"===e.type||"TSNonNullExpression"===e.type}function kf(e){return"Block"===e.type||"CommentBlock"===e.type||"MultiLine"===e.type}function Nf(e){return"Line"===e.type||"CommentLine"===e.type||"SingleLine"===e.type||"HashbangComment"===e.type||"HTMLOpen"===e.type||"HTMLClose"===e.type}var Pf=new Set(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function Of(e){return e&&Pf.has(e.type)}function If(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"==typeof e.value}function jf(e){return"StringLiteral"===e.type||"Literal"===e.type&&"string"==typeof e.value}function Lf(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type}function _f(e){return Uf(e)&&"Identifier"===e.callee.type&&("async"===e.callee.name||"inject"===e.callee.name||"fakeAsync"===e.callee.name)}function Mf(e){return"JSXElement"===e.type||"JSXFragment"===e.type}function Rf(e){return"get"===e.kind||"set"===e.kind}function Vf(e){return Rf(e)||xf(e,e.value)}var $f=new Set(["BinaryExpression","LogicalExpression","NGPipeExpression"]),qf=new Set(["AnyTypeAnnotation","TSAnyKeyword","NullLiteralTypeAnnotation","TSNullKeyword","ThisTypeAnnotation","TSThisType","NumberTypeAnnotation","TSNumberKeyword","VoidTypeAnnotation","TSVoidKeyword","BooleanTypeAnnotation","TSBooleanKeyword","BigIntTypeAnnotation","TSBigIntKeyword","SymbolTypeAnnotation","TSSymbolKeyword","StringTypeAnnotation","TSStringKeyword","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType","EmptyTypeAnnotation","MixedTypeAnnotation","TSNeverKeyword","TSObjectKeyword","TSUndefinedKeyword","TSUnknownKeyword"]),Wf=/^(skip|[fx]?(it|describe|test))$/;function Uf(e){return e&&("CallExpression"===e.type||"OptionalCallExpression"===e.type)}function zf(e){return e&&("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)}function Hf(e,t){return Mf(t)?id(t):ad(t,ud.Leading,(function(t){return Ef(e,Ff(t))}))}function Gf(e){return/^(\d+|\d+\.\d+)$/.test(e)}function Jf(e){return e.quasis.some((function(e){return e.value.raw.includes("\n")}))}function Xf(e){return e.extra?e.extra.raw:e.raw}var _step55,Yf={"==":!0,"!=":!0,"===":!0,"!==":!0},Kf={"*":!0,"/":!0,"%":!0},Qf={">>":!0,">>>":!0,"<<":!0},Zf={},_iterator55=_createForOfIteratorHelper([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].entries());try{for(_iterator55.s();!(_step55=_iterator55.n()).done;){var _step79,_step55$value=_slicedToArray(_step55.value,2),_e216=_step55$value[0],_iterator79=_createForOfIteratorHelper(_step55$value[1]);try{for(_iterator79.s();!(_step79=_iterator79.n()).done;){var _n134=_step79.value;Zf[_n134]=_e216}}catch(err){_iterator79.e(err)}finally{_iterator79.f()}}}catch(err){_iterator55.e(err)}finally{_iterator55.f()}function ed(e){return Zf[e]}var td=new WeakMap;function nd(e){if(td.has(e))return td.get(e);var t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push.apply(t,_toConsumableArray(e.parameters)):Array.isArray(e.params)&&t.push.apply(t,_toConsumableArray(e.params)),e.rest&&t.push(e.rest),td.set(e,t),t}var rd=new WeakMap;function od(e){return"prettier-ignore"===e.value.trim()&&!e.unignore}function id(e){return e&&(e.prettierIgnore||ad(e,ud.PrettierIgnore))}var ud={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},sd=function sd(e,t){if("function"==typeof e&&(t=e,e=0),e||t)return function(n,r,o){return!(e&ud.Leading&&!n.leading||e&ud.Trailing&&!n.trailing||e&ud.Dangling&&(n.leading||n.trailing)||e&ud.Block&&!kf(n)||e&ud.Line&&!Nf(n)||e&ud.First&&0!==r||e&ud.Last&&r!==o.length-1||e&ud.PrettierIgnore&&!od(n)||t&&!t(n))}};function ad(e,t,n){if(!e||!Cf(e.comments))return!1;var r=sd(t,n);return!r||e.comments.some(r)}function cd(e,t,n){if(!e||!Array.isArray(e.comments))return[];var r=sd(t,n);return r?e.comments.filter(r):e.comments}function ld(e){return Uf(e)||"NewExpression"===e.type||"ImportExpression"===e.type}var pd={getFunctionParameters:nd,iterateFunctionParametersPath:function iterateFunctionParametersPath(e,t){var n=e.getValue(),r=0,o=function o(e){return t(e,r++)};n.this&&e.call(o,"this"),Array.isArray(n.parameters)?e.each(o,"parameters"):Array.isArray(n.params)&&e.each(o,"params"),n.rest&&e.call(o,"rest")},getCallArguments:function getCallArguments(e){if(rd.has(e))return rd.get(e);var t="ImportExpression"===e.type?[e.source]:e.arguments;return rd.set(e,t),t},iterateCallArgumentsPath:function iterateCallArgumentsPath(e,t){"ImportExpression"===e.getValue().type?e.call((function(e){return t(e,0)}),"source"):e.each(t,"arguments")},hasRestParameter:function hasRestParameter(e){if(e.rest)return!0;var t=nd(e);return t.length>0&&"RestElement"===Df(t).type},getLeftSidePathName:function getLeftSidePathName(e,t){if(t.expressions)return["expressions",0];if(t.left)return["left"];if(t.test)return["test"];if(t.object)return["object"];if(t.callee)return["callee"];if(t.tag)return["tag"];if(t.argument)return["argument"];if(t.expression)return["expression"];throw new Error("Unexpected node has no left side.")},getParentExportDeclaration:function getParentExportDeclaration(e){var t=e.getParentNode();return"declaration"===e.getName()&&Of(t)?t:null},getTypeScriptMappedTypeModifier:function getTypeScriptMappedTypeModifier(e,t){return"+"===e?"+"+t:"-"===e?"-"+t:t},hasFlowAnnotationComment:function hasFlowAnnotationComment(e){return e&&kf(e[0])&&Tf.test(e[0].value)},hasFlowShorthandAnnotationComment:function hasFlowShorthandAnnotationComment(e){return e.extra&&e.extra.parenthesized&&Cf(e.trailingComments)&&kf(e.trailingComments[0])&&wf.test(e.trailingComments[0].value)},hasLeadingOwnLineComment:Hf,hasNakedLeftSide:Bf,hasNode:function e(t,n){if(!t||"object"!=_typeof(t))return!1;if(Array.isArray(t))return t.some((function(t){return e(t,n)}));var r=n(t);return"boolean"==typeof r?r:Object.values(t).some((function(t){return e(t,n)}))},hasIgnoreComment:function hasIgnoreComment(e){return id(e.getValue())},hasNodeIgnoreComment:id,identity:function identity(e){return e},isBinaryish:function isBinaryish(e){return $f.has(e.type)},isBlockComment:kf,isCallLikeExpression:ld,isLineComment:Nf,isPrettierIgnoreComment:od,isCallExpression:Uf,isMemberExpression:zf,isExportDeclaration:Of,isFlowAnnotationComment:function isFlowAnnotationComment(e,t){var n=Af(t),r=bf(e,Ff(t));return!1!==r&&"/*"===e.slice(n,n+2)&&"*/"===e.slice(r,r+2)},isFunctionCompositionArgs:function isFunctionCompositionArgs(e){if(e.length<=1)return!1;var _step56,t=0,_iterator56=_createForOfIteratorHelper(e);try{for(_iterator56.s();!(_step56=_iterator56.n()).done;){var _n70=_step56.value;if(Lf(_n70)){if((t+=1)>1)return!0}else if(Uf(_n70)){var _step57,_iterator57=_createForOfIteratorHelper(_n70.arguments);try{for(_iterator57.s();!(_step57=_iterator57.n()).done;)if(Lf(_step57.value))return!0}catch(err){_iterator57.e(err)}finally{_iterator57.f()}}}}catch(err){_iterator56.e(err)}finally{_iterator56.f()}return!1},isFunctionNotation:Vf,isFunctionOrArrowExpression:Lf,isGetterOrSetter:Rf,isJestEachTemplateLiteral:function isJestEachTemplateLiteral(e,t){var n=/^[fx]?(describe|it|test)$/;return"TaggedTemplateExpression"===t.type&&t.quasi===e&&"MemberExpression"===t.tag.type&&"Identifier"===t.tag.property.type&&"each"===t.tag.property.name&&("Identifier"===t.tag.object.type&&n.test(t.tag.object.name)||"MemberExpression"===t.tag.object.type&&"Identifier"===t.tag.object.property.type&&("only"===t.tag.object.property.name||"skip"===t.tag.object.property.name)&&"Identifier"===t.tag.object.object.type&&n.test(t.tag.object.object.name))},isJsxNode:Mf,isLiteral:function isLiteral(e){return"BooleanLiteral"===e.type||"DirectiveLiteral"===e.type||"Literal"===e.type||"NullLiteral"===e.type||"NumericLiteral"===e.type||"BigIntLiteral"===e.type||"DecimalLiteral"===e.type||"RegExpLiteral"===e.type||"StringLiteral"===e.type||"TemplateLiteral"===e.type||"TSTypeLiteral"===e.type||"JSXText"===e.type},isLongCurriedCallExpression:function isLongCurriedCallExpression(e){var t=e.getValue(),n=e.getParentNode();return Uf(t)&&Uf(n)&&n.callee===t&&t.arguments.length>n.arguments.length&&n.arguments.length>0},isSimpleCallArgument:function e(t,n){if(n>=2)return!1;var r=function r(t){return e(t,n+1)},o="Literal"===t.type&&"regex"in t&&t.regex.pattern||"RegExpLiteral"===t.type&&t.pattern;return!(o&&o.length>5)&&("Literal"===t.type||"BigIntLiteral"===t.type||"DecimalLiteral"===t.type||"BooleanLiteral"===t.type||"NullLiteral"===t.type||"NumericLiteral"===t.type||"RegExpLiteral"===t.type||"StringLiteral"===t.type||"Identifier"===t.type||"ThisExpression"===t.type||"Super"===t.type||"PrivateName"===t.type||"PrivateIdentifier"===t.type||"ArgumentPlaceholder"===t.type||"Import"===t.type||("TemplateLiteral"===t.type?t.quasis.every((function(e){return!e.value.raw.includes("\n")}))&&t.expressions.every(r):"ObjectExpression"===t.type?t.properties.every((function(e){return!e.computed&&(e.shorthand||e.value&&r(e.value))})):"ArrayExpression"===t.type?t.elements.every((function(e){return null===e||r(e)})):"ImportExpression"===t.type?r(t.source):ld(t)?e(t.callee,n)&&t.arguments.every(r):zf(t)?e(t.object,n)&&e(t.property,n):"UnaryExpression"!==t.type||"!"!==t.operator&&"-"!==t.operator?"TSNonNullExpression"===t.type&&e(t.expression,n):e(t.argument,n)))},isMemberish:function isMemberish(e){return zf(e)||"BindExpression"===e.type&&Boolean(e.object)},isNumericLiteral:If,isSignedNumericLiteral:function isSignedNumericLiteral(e){return"UnaryExpression"===e.type&&("+"===e.operator||"-"===e.operator)&&If(e.argument)},isObjectType:function isObjectType(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type},isObjectTypePropertyAFunction:function isObjectTypePropertyAFunction(e){return!("ObjectTypeProperty"!==e.type&&"ObjectTypeInternalSlot"!==e.type||"FunctionTypeAnnotation"!==e.value.type||e.static||Vf(e))},isSimpleType:function isSimpleType(e){return!(!e||("GenericTypeAnnotation"!==e.type&&"TSTypeReference"!==e.type||e.typeParameters)&&!qf.has(e.type))},isSimpleNumber:Gf,isSimpleTemplateLiteral:function isSimpleTemplateLiteral(e){var t="expressions";"TSTemplateLiteralType"===e.type&&(t="types");var n=e[t];return 0!==n.length&&n.every((function(e){if(ad(e))return!1;if("Identifier"===e.type||"ThisExpression"===e.type)return!0;if(zf(e)){for(var _t99=e;zf(_t99);){if("Identifier"!==_t99.property.type&&"Literal"!==_t99.property.type&&"StringLiteral"!==_t99.property.type&&"NumericLiteral"!==_t99.property.type)return!1;if(ad(_t99=_t99.object))return!1}return"Identifier"===_t99.type||"ThisExpression"===_t99.type}return!1}))},isStringLiteral:jf,isStringPropSafeToUnquote:function isStringPropSafeToUnquote(e,t){return"json"!==t.parser&&jf(e.key)&&Xf(e.key).slice(1,-1)===e.key.value&&(yf(e.key.value)&&!(("typescript"===t.parser||"babel-ts"===t.parser)&&"ClassProperty"===e.type)||Gf(e.key.value)&&String(Number(e.key.value))===e.key.value&&("babel"===t.parser||"espree"===t.parser||"meriyah"===t.parser))},isTemplateOnItsOwnLine:function isTemplateOnItsOwnLine(e,t){return("TemplateLiteral"===e.type&&Jf(e)||"TaggedTemplateExpression"===e.type&&Jf(e.quasi))&&!Ef(t,Af(e),{backwards:!0})},isTestCall:function e(t,n){if("CallExpression"!==t.type)return!1;if(1===t.arguments.length){if(_f(t)&&n&&e(n))return Lf(t.arguments[0]);if(function(e){return"Identifier"===e.callee.type&&/^(before|after)(Each|All)$/.test(e.callee.name)&&1===e.arguments.length}(t))return _f(t.arguments[0])}else if((2===t.arguments.length||3===t.arguments.length)&&("Identifier"===t.callee.type&&Wf.test(t.callee.name)||function(e){return zf(e.callee)&&"Identifier"===e.callee.object.type&&"Identifier"===e.callee.property.type&&Wf.test(e.callee.object.name)&&("only"===e.callee.property.name||"skip"===e.callee.property.name)}(t))&&(function(e){return"TemplateLiteral"===e.type}(t.arguments[0])||jf(t.arguments[0])))return!(t.arguments[2]&&!If(t.arguments[2]))&&((2===t.arguments.length?Lf(t.arguments[1]):function(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type}(t.arguments[1])&&nd(t.arguments[1]).length<=1)||_f(t.arguments[1]));return!1},isTheOnlyJsxElementInMarkdown:function isTheOnlyJsxElementInMarkdown(e,t){if("markdown"!==e.parentParser&&"mdx"!==e.parentParser)return!1;var n=t.getNode();if(!n.expression||!Mf(n.expression))return!1;var r=t.getParentNode();return"Program"===r.type&&1===r.body.length},isTSXFile:function isTSXFile(e){return e.filepath&&/\.tsx$/i.test(e.filepath)},isTypeAnnotationAFunction:function isTypeAnnotationAFunction(e){return!("TypeAnnotation"!==e.type&&"TSTypeAnnotation"!==e.type||"FunctionTypeAnnotation"!==e.typeAnnotation.type||e.static||xf(e,e.typeAnnotation))},isNextLineEmpty:function isNextLineEmpty(e,_ref66){var t=_ref66.originalText;return vf(t,Ff(e))},needsHardlineAfterDanglingComment:function needsHardlineAfterDanglingComment(e){if(!ad(e))return!1;var t=Df(cd(e,ud.Dangling));return t&&!kf(t)},rawText:Xf,returnArgumentHasLeadingComment:function returnArgumentHasLeadingComment(e,t){if(Hf(e.originalText,t))return!0;if(Bf(t))for(var _r78,_o29=t;_r78=(n=_o29).expressions?n.expressions[0]:n.left||n.test||n.callee||n.object||n.tag||n.argument||n.expression;)if(_o29=_r78,Hf(e.originalText,_o29))return!0;var n;return!1},shouldPrintComma:function shouldPrintComma(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"es5";return"es5"===e.trailingComma&&"es5"===t||"all"===e.trailingComma&&("all"===t||"es5"===t)},isBitwiseOperator:function isBitwiseOperator(e){return Boolean(Qf[e])||"|"===e||"^"===e||"&"===e},shouldFlatten:function shouldFlatten(e,t){return!(ed(t)!==ed(e)||"**"===e||Yf[e]&&Yf[t]||"%"===t&&Kf[e]||"%"===e&&Kf[t]||t!==e&&Kf[t]&&Kf[e]||Qf[e]&&Qf[t])},startsWithNoLookaheadToken:function e(t,n){switch((t=function(e){for(;e.left;)e=e.left;return e}(t)).type){case"FunctionExpression":case"ClassExpression":case"DoExpression":return n;case"ObjectExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return e(t.object,n);case"TaggedTemplateExpression":return"FunctionExpression"!==t.tag.type&&e(t.tag,n);case"CallExpression":case"OptionalCallExpression":return"FunctionExpression"!==t.callee.type&&e(t.callee,n);case"ConditionalExpression":return e(t.test,n);case"UpdateExpression":return!t.prefix&&e(t.argument,n);case"BindExpression":return t.object&&e(t.object,n);case"SequenceExpression":return e(t.expressions[0],n);case"TSAsExpression":case"TSNonNullExpression":return e(t.expression,n);default:return!1}},getPrecedence:ed,hasComment:ad,getComments:cd,CommentCheckFlags:ud},fd=rn.getStringWidth,dd=rn.getIndentSize,_Rn$builders3=Rn.builders,hd=_Rn$builders3.join,md=_Rn$builders3.hardline,gd=_Rn$builders3.softline,yd=_Rn$builders3.group,Dd=_Rn$builders3.indent,Ed=_Rn$builders3.align,bd=_Rn$builders3.lineSuffixBoundary,Cd=_Rn$builders3.addAlignmentToDoc,vd=Rn.printer.printDocToString,Ad=Rn.utils.mapDoc,Fd=pd.isBinaryish,xd=pd.isJestEachTemplateLiteral,Sd=pd.isSimpleTemplateLiteral,wd=pd.hasComment,Td=pd.isMemberExpression;function Bd(e){return e.replace(/([\\`]|\${)/g,"\\$1")}var kd={printTemplateLiteral:function printTemplateLiteral(e,t,n){var r=e.getValue();if("TemplateLiteral"===r.type&&xd(r,e.getParentNode())){var _r79=function(e,t,n){var r=e.getNode(),o=r.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(o.length>1||o.some((function(e){return e.length>0}))){t.__inJestEach=!0;var _i50=e.map(n,"expressions");t.__inJestEach=!1;for(var _u14=[],_s19=_i50.map((function(e){return"${"+vd(e,Object.assign({},t,{printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"})).formatted+"}"})),_a4=[{hasLineBreak:!1,cells:[]}],_e120=1;_e1200})))),_iterator58=_createForOfIteratorHelper(_p6.filter((function(e){return!e.hasLineBreak})));try{for(_iterator58.s();!(_step58=_iterator58.n()).done;){var _step59,_iterator59=_createForOfIteratorHelper(_step58.value.cells.entries());try{for(_iterator59.s();!(_step59=_iterator59.n()).done;){var _step59$value=_slicedToArray(_step59.value,2),_t101=_step59$value[0],_n72=_step59$value[1];_l6[_t101]=Math.max(_l6[_t101],fd(_n72))}}catch(err){_iterator59.e(err)}finally{_iterator59.f()}}}catch(err){_iterator58.e(err)}finally{_iterator58.f()}return _u14.push(bd,"`",Dd([md,hd(md,_p6.map((function(e){return hd(" | ",e.cells.map((function(t,n){return e.hasLineBreak?t:t+" ".repeat(_l6[n]-fd(t))})))})))]),md,"`"),_u14}}(e,n,t);if(_r79)return _r79}var o="expressions";"TSTemplateLiteralType"===r.type&&(o="types");var i=[],u=e.map(t,o),s=Sd(r);return s&&(u=u.map((function(e){return vd(e,Object.assign({},n,{printWidth:Number.POSITIVE_INFINITY})).formatted}))),i.push(bd,"`"),e.each((function(e){var a=e.getName();if(i.push(t()),a2&&""===_c10[0].trim()&&""===_c10[1].trim(),_d5=_l8>2&&""===_c10[_l8-1].trim()&&""===_c10[_l8-2].trim(),_h5=_c10.every((function(e){return/^\s*(?:#[^\n\r]*)?$/.test(e)}));if(!_s20&&/#[^\n\r]*$/.test(_c10[_l8-1]))return null;var _m4=null;(_m4=_h5?Kd(_c10):n(_a5,{parser:"graphql"},{stripTrailingHardline:!0}))?(_m4=Xd(_m4,!1),!_t103&&_f5&&u.push(""),u.push(_m4),!_s20&&_d5&&u.push("")):_t103||_s20||!_f5||u.push(""),_p8&&u.push(_p8)}return["`",Hd([Jd,Gd(Jd,u)]),Jd,"`"]},_Rn$builders7=Rn.builders,Zd=_Rn$builders7.indent,eh=_Rn$builders7.line,th=_Rn$builders7.hardline,nh=_Rn$builders7.group,rh=Rn.utils.mapDoc,oh=kd.printTemplateExpressions,ih=kd.uncookTemplateElementValue,uh=0,sh=function sh(e,t,n,r,_ref67){var o=_ref67.parser,i=e.getValue(),u=uh;uh=uh+1>>>0;var s=function s(e){return"PRETTIER_HTML_PLACEHOLDER_".concat(e,"_").concat(u,"_IN_JS")},a=i.quasis.map((function(e,t,n){return t===n.length-1?e.value.cooked:e.value.cooked+s(t)})).join(""),c=oh(e,t);if(0===c.length&&0===a.trim().length)return"``";var l=new RegExp(s("(\\d+)"),"g"),p=0,f=n(a,{parser:o,__onHtmlRoot:function __onHtmlRoot(e){p=e.children.length}},{stripTrailingHardline:!0}),d=rh(f,(function(e){if("string"!=typeof e)return e;for(var t=[],n=e.split(l),_e125=0;_e1251?Zd(nh(d)):nh(d),m,"`"])},ah=pd.hasComment,ch=pd.CommentCheckFlags;function lh(e){return function(e){var t=e.getValue(),n=e.getParentNode(),r=e.getParentNode(1);return r&&t.quasis&&"JSXExpressionContainer"===n.type&&"JSXElement"===r.type&&"style"===r.openingElement.name.name&&r.openingElement.attributes.some((function(e){return"jsx"===e.name.name}))||n&&"TaggedTemplateExpression"===n.type&&"Identifier"===n.tag.type&&"css"===n.tag.name||n&&"TaggedTemplateExpression"===n.type&&"MemberExpression"===n.tag.type&&"css"===n.tag.object.name&&("global"===n.tag.property.name||"resolve"===n.tag.property.name)}(e)||function(e){var t=e.getParentNode();if(!t||"TaggedTemplateExpression"!==t.type)return!1;var n=t.tag;switch(n.type){case"MemberExpression":return fh(n.object)||dh(n);case"CallExpression":return fh(n.callee)||"MemberExpression"===n.callee.type&&("MemberExpression"===n.callee.object.type&&(fh(n.callee.object.object)||dh(n.callee.object))||"CallExpression"===n.callee.object.type&&fh(n.callee.object.callee));case"Identifier":return"css"===n.name;default:return!1}}(e)||function(e){var t=e.getParentNode(),n=e.getParentNode(1);return n&&"JSXExpressionContainer"===t.type&&"JSXAttribute"===n.type&&"JSXIdentifier"===n.name.type&&"css"===n.name.name}(e)||function(e){return e.match.apply(e,[function(e){return"TemplateLiteral"===e.type},function(e,t){return"ArrayExpression"===e.type&&"elements"===t},function(e,t){return("Property"===e.type||"ObjectProperty"===e.type)&&"Identifier"===e.key.type&&"styles"===e.key.name&&"value"===t}].concat(ph))}(e)?"css":function(e){var t=e.getValue(),n=e.getParentNode();return hh(t,"GraphQL")||n&&("TaggedTemplateExpression"===n.type&&("MemberExpression"===n.tag.type&&"graphql"===n.tag.object.name&&"experimental"===n.tag.property.name||"Identifier"===n.tag.type&&("gql"===n.tag.name||"graphql"===n.tag.name))||"CallExpression"===n.type&&"Identifier"===n.callee.type&&"graphql"===n.callee.name)}(e)?"graphql":function(e){return hh(e.getValue(),"HTML")||e.match((function(e){return"TemplateLiteral"===e.type}),(function(e,t){return"TaggedTemplateExpression"===e.type&&"Identifier"===e.tag.type&&"html"===e.tag.name&&"quasi"===t}))}(e)?"html":function(e){return e.match.apply(e,[function(e){return"TemplateLiteral"===e.type},function(e,t){return("Property"===e.type||"ObjectProperty"===e.type)&&"Identifier"===e.key.type&&"template"===e.key.name&&"value"===t}].concat(ph))}(e)?"angular":function(e){var t=e.getValue(),n=e.getParentNode();return n&&"TaggedTemplateExpression"===n.type&&1===t.quasis.length&&"Identifier"===n.tag.type&&("md"===n.tag.name||"markdown"===n.tag.name)}(e)?"markdown":void 0}var ph=[function(e,t){return"ObjectExpression"===e.type&&"properties"===t},function(e,t){return"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t},function(e,t){return"Decorator"===e.type&&"expression"===t}];function fh(e){return"Identifier"===e.type&&"styled"===e.name}function dh(e){return/^[A-Z]/.test(e.object.name)&&"extend"===e.property.name}function hh(e,t){return ah(e,ch.Block|ch.Leading,(function(_ref68){return _ref68.value===" ".concat(t," ")}))}var mh=function mh(e,t,n,r){var o=e.getValue();if("TemplateLiteral"===o.type&&!o.quasis.some((function(_ref70){return null===_ref70.value.cooked}))){var i=lh(e);return i?"markdown"===i?Ld(e,t,n):"css"===i?zd(e,t,n):"graphql"===i?Qd(e,t,n):"html"===i||"angular"===i?sh(e,t,n,r,{parser:i}):void 0:void 0}},gh=pd.isBlockComment,yh=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),Dh=function Dh(e){var _step61,_iterator61=_createForOfIteratorHelper(e.quasis);try{for(_iterator61.s();!(_step61=_iterator61.n()).done;)delete _step61.value.value}catch(err){_iterator61.e(err)}finally{_iterator61.f()}};function Eh(e,t,n){if("Program"===e.type&&delete t.sourceType,"BigIntLiteral"!==e.type&&"BigIntLiteralTypeAnnotation"!==e.type||t.value&&(t.value=t.value.toLowerCase()),"BigIntLiteral"!==e.type&&"Literal"!==e.type||t.bigint&&(t.bigint=t.bigint.toLowerCase()),"DecimalLiteral"===e.type&&(t.value=Number(t.value)),"EmptyStatement"===e.type)return null;if("JSXText"===e.type)return null;if("JSXExpressionContainer"===e.type&&("Literal"===e.expression.type||"StringLiteral"===e.expression.type)&&" "===e.expression.value)return null;if("Property"!==e.type&&"ObjectProperty"!==e.type&&"MethodDefinition"!==e.type&&"ClassProperty"!==e.type&&"ClassMethod"!==e.type&&"PropertyDefinition"!==e.type&&"TSDeclareMethod"!==e.type&&"TSPropertySignature"!==e.type&&"ObjectTypeProperty"!==e.type||"object"!=_typeof(e.key)||!e.key||"Literal"!==e.key.type&&"NumericLiteral"!==e.key.type&&"StringLiteral"!==e.key.type&&"Identifier"!==e.key.type||delete t.key,"JSXElement"===e.type&&"style"===e.openingElement.name.name&&e.openingElement.attributes.some((function(e){return"jsx"===e.name.name}))){var _step62,_iterator62=_createForOfIteratorHelper(t.children);try{for(_iterator62.s();!(_step62=_iterator62.n()).done;){var _step62$value=_step62.value,_e126=_step62$value.type,_n73=_step62$value.expression;"JSXExpressionContainer"===_e126&&"TemplateLiteral"===_n73.type&&Dh(_n73)}}catch(err){_iterator62.e(err)}finally{_iterator62.f()}}"JSXAttribute"===e.type&&"css"===e.name.name&&"JSXExpressionContainer"===e.value.type&&"TemplateLiteral"===e.value.expression.type&&Dh(t.value.expression),"JSXAttribute"===e.type&&e.value&&"Literal"===e.value.type&&/["']|"|'/.test(e.value.value)&&(t.value.value=t.value.value.replace(/["']|"|'/g,'"'));var r=e.expression||e.callee;if("Decorator"===e.type&&"CallExpression"===r.type&&"Component"===r.callee.name&&1===r.arguments.length){var _step63,_n74=e.expression.arguments[0].properties,_iterator63=_createForOfIteratorHelper(t.expression.arguments[0].properties.entries());try{for(_iterator63.s();!(_step63=_iterator63.n()).done;){var _step63$value=_slicedToArray(_step63.value,2),_e127=_step63$value[0],_r80=_step63$value[1];switch(_n74[_e127].key.name){case"styles":"ArrayExpression"===_r80.value.type&&Dh(_r80.value.elements[0]);break;case"template":"TemplateLiteral"===_r80.value.type&&Dh(_r80.value)}}}catch(err){_iterator63.e(err)}finally{_iterator63.f()}}return"TaggedTemplateExpression"!==e.type||"MemberExpression"!==e.tag.type&&("Identifier"!==e.tag.type||"gql"!==e.tag.name&&"graphql"!==e.tag.name&&"css"!==e.tag.name&&"md"!==e.tag.name&&"markdown"!==e.tag.name&&"html"!==e.tag.name)&&"CallExpression"!==e.tag.type||Dh(t.quasi),"TemplateLiteral"===e.type&&(e.leadingComments&&e.leadingComments.some((function(e){return gh(e)&&["GraphQL","HTML"].some((function(t){return e.value===" ".concat(t," ")}))}))||"CallExpression"===n.type&&"graphql"===n.callee.name||!e.leadingComments)&&Dh(t),"InterpreterDirective"===e.type&&(t.value=t.value.trimEnd()),"TSIntersectionType"!==e.type&&"TSUnionType"!==e.type||1!==e.types.length?void 0:t.types[0]}Eh.ignoredProperties=yh;var bh=Eh,Ch=function Ch(e){if("string"!=typeof e)throw new TypeError("Expected a string");var t=e.match(/(?:\r?\n)/g)||[];if(0!==t.length){var n=t.filter((function(e){return"\r\n"===e})).length;return n>t.length-n?"\r\n":"\n"}},vh=Ch;vh.graceful=function(e){return"string"==typeof e&&Ch(e)||"\n"};var Ah=function Ah(e){var t=e.match(Ph);return t?t[0].trimLeft():""},Fh=function Fh(e){var t=e.match(Ph);return t&&t[0]?e.substring(t[0].length):e},xh=function xh(e){return Rh(e).pragmas},Sh=Rh,wh=function wh(_ref71){var _ref71$comments=_ref71.comments,e=void 0===_ref71$comments?"":_ref71$comments,_ref71$pragmas=_ref71.pragmas,t=void 0===_ref71$pragmas?{}:_ref71$pragmas,n=(0,Bh().default)(e)||Th().EOL,r=" *",o=Object.keys(t),i=o.map((function(e){return Vh(e,t[e])})).reduce((function(e,t){return e.concat(t)}),[]).map((function(e){return" * "+e+n})).join("");if(!e){if(0===o.length)return"";if(1===o.length&&!Array.isArray(t[o[0]])){var _e128=t[o[0]];return"".concat("/**"," ").concat(Vh(o[0],_e128)[0]).concat(" */")}}var u=e.split(n).map((function(e){return"".concat(r," ").concat(e)})).join(n)+n;return"/**"+n+(e?u:"")+(e&&o.length?r+n:"")+i+" */"};function Th(){var e=Uo;return Th=function Th(){return e},e}function Bh(){var e=function(e){return e&&e.__esModule?e:{default:e}}(vh);return Bh=function Bh(){return e},e}var kh=/\*\/$/,Nh=/^\/\*\*/,Ph=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Oh=/(^|\s+)\/\/([^\r\n]*)/g,Ih=/^(\r?\n)+/,jh=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,Lh=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,_h=/(\r?\n|^) *\* ?/g,Mh=[];function Rh(e){var t=(0,Bh().default)(e)||Th().EOL;e=e.replace(Nh,"").replace(kh,"").replace(_h,"$1");for(var n="";n!==e;)n=e,e=e.replace(jh,"".concat(t,"$1 $2").concat(t));e=e.replace(Ih,"").trimRight();for(var i,r=Object.create(null),o=e.replace(Lh,"").replace(Ih,"").trimRight();i=Lh.exec(e);){var _e129=i[2].replace(Oh,"");"string"==typeof r[i[1]]||Array.isArray(r[i[1]])?r[i[1]]=Mh.concat(r[i[1]],_e129):r[i[1]]=_e129}return{comments:o,pragmas:r}}function Vh(e,t){return Mh.concat(t).map((function(t){return"@".concat(e," ").concat(t).trim()}))}var $h=Object.defineProperty({extract:Ah,strip:Fh,parse:xh,parseWithComments:Sh,print:wh},"__esModule",{value:!0}),qh=$h.parseWithComments,Wh=$h.strip,Uh=$h.extract,zh=$h.print,Hh=rn.getShebang,Gh=on.normalizeEndOfLine;function Jh(e){var t=Hh(e);t&&(e=e.slice(t.length+1));var n=Uh(e),_qh=qh(n);return{shebang:t,text:e,pragmas:_qh.pragmas,comments:_qh.comments}}var Xh={hasPragma:function hasPragma(e){var t=Object.keys(Jh(e).pragmas);return t.includes("prettier")||t.includes("format")},insertPragma:function insertPragma(e){var _Jh=Jh(e),t=_Jh.shebang,n=_Jh.text,r=_Jh.pragmas,o=_Jh.comments,i=Wh(n),u=zh({pragmas:Object.assign({format:""},r),comments:o.trimStart()});return(t?"".concat(t,"\n"):"")+Gh(u)+(i.startsWith("\n")?"\n":"\n\n")+i}},Yh=rn.getLast,Kh=rn.hasNewline,Qh=rn.getNextNonSpaceNonCommentCharacterIndexWithStartIndex,Zh=rn.getNextNonSpaceNonCommentCharacter,em=rn.hasNewlineInRange,tm=rn.addLeadingComment,nm=rn.addTrailingComment,rm=rn.addDanglingComment,om=rn.getNextNonSpaceNonCommentCharacterIndex,im=rn.isNonEmptyArray,um=pd.isBlockComment,sm=pd.getFunctionParameters,am=pd.isPrettierIgnoreComment,cm=pd.isJsxNode,lm=pd.hasFlowShorthandAnnotationComment,pm=pd.hasFlowAnnotationComment,fm=pd.hasIgnoreComment,dm=pd.isCallLikeExpression,hm=pd.getCallArguments,mm=pd.isCallExpression,gm=pd.isMemberExpression,ym=ea.locStart,Dm=ea.locEnd;function Em(e,t){var n=(e.body||e.properties).find((function(_ref72){return"EmptyStatement"!==_ref72.type}));n?tm(n,t):rm(e,t)}function bm(e,t){"BlockStatement"===e.type?Em(e,t):tm(e,t)}function Cm(_ref73){var e=_ref73.comment,t=_ref73.followingNode;return!(!t||!Ym(e)||(tm(t,e),0))}function vm(_ref74){var e=_ref74.comment,t=_ref74.precedingNode,n=_ref74.enclosingNode,r=_ref74.followingNode,o=_ref74.text;return!(!n||"IfStatement"!==n.type||!r||(")"===Zh(o,e,Dm)?(nm(t,e),0):t===n.consequent&&r===n.alternate?("BlockStatement"===t.type?nm(t,e):rm(n,e),0):"BlockStatement"===r.type?(Em(r,e),0):"IfStatement"===r.type?(bm(r.consequent,e),0):n.consequent!==r||(tm(r,e),0)))}function Am(_ref75){var e=_ref75.comment,t=_ref75.precedingNode,n=_ref75.enclosingNode,r=_ref75.followingNode,o=_ref75.text;return!(!n||"WhileStatement"!==n.type||!r||(")"===Zh(o,e,Dm)?(nm(t,e),0):"BlockStatement"===r.type?(Em(r,e),0):n.body!==r||(tm(r,e),0)))}function Fm(_ref76){var e=_ref76.comment,t=_ref76.precedingNode,n=_ref76.enclosingNode,r=_ref76.followingNode;return!(!n||"TryStatement"!==n.type&&"CatchClause"!==n.type||!r||("CatchClause"===n.type&&t?(nm(t,e),0):"BlockStatement"===r.type?(Em(r,e),0):"TryStatement"===r.type?(bm(r.finalizer,e),0):"CatchClause"!==r.type||(bm(r.body,e),0)))}function xm(_ref77){var e=_ref77.comment,t=_ref77.enclosingNode,n=_ref77.followingNode;return!(!gm(t)||!n||"Identifier"!==n.type||(tm(t,e),0))}function Sm(_ref78){var e=_ref78.comment,t=_ref78.precedingNode,n=_ref78.enclosingNode,r=_ref78.followingNode,o=_ref78.text,i=t&&!em(o,Dm(t),ym(e));return!(t&&i||!n||"ConditionalExpression"!==n.type&&"TSConditionalType"!==n.type||!r||(tm(r,e),0))}function wm(_ref79){var e=_ref79.comment,t=_ref79.precedingNode,n=_ref79.enclosingNode;return!(!n||"ObjectProperty"!==n.type&&"Property"!==n.type||!n.shorthand||n.key!==t||"AssignmentPattern"!==n.value.type||(nm(n.value.left,e),0))}function Tm(_ref80){var e=_ref80.comment,t=_ref80.precedingNode,n=_ref80.enclosingNode,r=_ref80.followingNode;if(n&&("ClassDeclaration"===n.type||"ClassExpression"===n.type||"DeclareClass"===n.type||"DeclareInterface"===n.type||"InterfaceDeclaration"===n.type||"TSInterfaceDeclaration"===n.type)){if(im(n.decorators)&&(!r||"Decorator"!==r.type))return nm(Yh(n.decorators),e),!0;if(n.body&&r===n.body)return Em(n.body,e),!0;if(r)for(var _i52=0,_arr3=["implements","extends","mixins"];_i52<_arr3.length;_i52++){var _o32=_arr3[_i52];if(n[_o32]&&r===n[_o32][0])return!t||t!==n.id&&t!==n.typeParameters&&t!==n.superClass?rm(n,e,_o32):nm(t,e),!0}}return!1}function Bm(_ref81){var e=_ref81.comment,t=_ref81.precedingNode,n=_ref81.enclosingNode,r=_ref81.text;return(n&&t&&("Property"===n.type||"TSDeclareMethod"===n.type||"TSAbstractMethodDefinition"===n.type)&&"Identifier"===t.type&&n.key===t&&":"!==Zh(r,t,Dm)||!(!t||!n||"Decorator"!==t.type||"ClassMethod"!==n.type&&"ClassProperty"!==n.type&&"PropertyDefinition"!==n.type&&"TSAbstractClassProperty"!==n.type&&"TSAbstractMethodDefinition"!==n.type&&"TSDeclareMethod"!==n.type&&"MethodDefinition"!==n.type))&&(nm(t,e),!0)}function km(_ref82){var e=_ref82.comment,t=_ref82.precedingNode,n=_ref82.enclosingNode,r=_ref82.text;return"("===Zh(r,e,Dm)&&!(!t||!n||"FunctionDeclaration"!==n.type&&"FunctionExpression"!==n.type&&"ClassMethod"!==n.type&&"MethodDefinition"!==n.type&&"ObjectMethod"!==n.type)&&(nm(t,e),!0)}function Nm(_ref83){var e=_ref83.comment,t=_ref83.enclosingNode,n=_ref83.text;if(!t||"ArrowFunctionExpression"!==t.type)return!1;var r=om(n,e,Dm);return!1!==r&&"=>"===n.slice(r,r+2)&&(rm(t,e),!0)}function Pm(_ref84){var e=_ref84.comment,t=_ref84.enclosingNode,n=_ref84.text;return!(")"!==Zh(n,e,Dm)||(t&&(Xm(t)&&0===sm(t).length||dm(t)&&0===hm(t).length)?(rm(t,e),0):!t||"MethodDefinition"!==t.type&&"TSAbstractMethodDefinition"!==t.type||0!==sm(t.value).length||(rm(t.value,e),0)))}function Om(_ref85){var e=_ref85.comment,t=_ref85.precedingNode,n=_ref85.enclosingNode,r=_ref85.followingNode,o=_ref85.text;if(t&&"FunctionTypeParam"===t.type&&n&&"FunctionTypeAnnotation"===n.type&&r&&"FunctionTypeParam"!==r.type)return nm(t,e),!0;if(t&&("Identifier"===t.type||"AssignmentPattern"===t.type)&&n&&Xm(n)&&")"===Zh(o,e,Dm))return nm(t,e),!0;if(n&&"FunctionDeclaration"===n.type&&r&&"BlockStatement"===r.type){var _t105=function(){var e=sm(n);if(e.length>0)return Qh(o,Dm(Yh(e)));var t=Qh(o,Dm(n.id));return!1!==t&&Qh(o,t+1)}();if(ym(e)>_t105)return Em(r,e),!0}return!1}function Im(_ref86){var e=_ref86.comment,t=_ref86.enclosingNode;return!(!t||"ImportSpecifier"!==t.type||(tm(t,e),0))}function jm(_ref87){var e=_ref87.comment,t=_ref87.enclosingNode;return!(!t||"LabeledStatement"!==t.type||(tm(t,e),0))}function Lm(_ref88){var e=_ref88.comment,t=_ref88.enclosingNode;return!(!t||"ContinueStatement"!==t.type&&"BreakStatement"!==t.type||t.label||(nm(t,e),0))}function _m(_ref89){var e=_ref89.comment,t=_ref89.precedingNode,n=_ref89.enclosingNode;return!!(mm(n)&&t&&n.callee===t&&n.arguments.length>0)&&(tm(n.arguments[0],e),!0)}function Mm(_ref90){var e=_ref90.comment,t=_ref90.precedingNode,n=_ref90.enclosingNode,r=_ref90.followingNode;return!n||"UnionTypeAnnotation"!==n.type&&"TSUnionType"!==n.type?(r&&("UnionTypeAnnotation"===r.type||"TSUnionType"===r.type)&&am(e)&&(r.types[0].prettierIgnore=!0,e.unignore=!0),!1):(am(e)&&(r.prettierIgnore=!0,e.unignore=!0),!!t&&(nm(t,e),!0))}function Rm(_ref91){var e=_ref91.comment,t=_ref91.enclosingNode;return!(!t||"Property"!==t.type&&"ObjectProperty"!==t.type||(tm(t,e),0))}function Vm(_ref92){var e=_ref92.comment,t=_ref92.enclosingNode,n=_ref92.followingNode,r=_ref92.ast,o=_ref92.isLastComment;return r&&r.body&&0===r.body.length?(o?rm(r,e):tm(r,e),!0):t&&"Program"===t.type&&0===t.body.length&&t.directives&&0===t.directives.length?(o?rm(t,e):tm(t,e),!0):!(!n||"Program"!==n.type||0!==n.body.length||!t||"ModuleExpression"!==t.type||(rm(n,e),0))}function $m(_ref93){var e=_ref93.comment,t=_ref93.enclosingNode;return!(!t||"ForInStatement"!==t.type&&"ForOfStatement"!==t.type||(tm(t,e),0))}function qm(_ref94){var e=_ref94.comment,t=_ref94.precedingNode,n=_ref94.enclosingNode,r=_ref94.text;return!!(t&&"ImportSpecifier"===t.type&&n&&"ImportDeclaration"===n.type&&Kh(r,Dm(e)))&&(nm(t,e),!0)}function Wm(_ref95){var e=_ref95.comment,t=_ref95.enclosingNode;return!(!t||"AssignmentPattern"!==t.type||(tm(t,e),0))}function Um(_ref96){var e=_ref96.comment,t=_ref96.enclosingNode;return!(!t||"TypeAlias"!==t.type||(tm(t,e),0))}function zm(_ref97){var e=_ref97.comment,t=_ref97.enclosingNode,n=_ref97.followingNode;return!(!t||"VariableDeclarator"!==t.type&&"AssignmentExpression"!==t.type||!n||"ObjectExpression"!==n.type&&"ArrayExpression"!==n.type&&"TemplateLiteral"!==n.type&&"TaggedTemplateExpression"!==n.type&&!um(e)||(tm(n,e),0))}function Hm(_ref98){var e=_ref98.comment,t=_ref98.enclosingNode,n=_ref98.followingNode,r=_ref98.text;return!(n||!t||"TSMethodSignature"!==t.type&&"TSDeclareFunction"!==t.type&&"TSAbstractMethodDefinition"!==t.type||";"!==Zh(r,e,Dm)||(nm(t,e),0))}function Gm(_ref99){var e=_ref99.comment,t=_ref99.enclosingNode,n=_ref99.followingNode;if(am(e)&&t&&"TSMappedType"===t.type&&n&&"TSTypeParameter"===n.type&&n.constraint)return t.prettierIgnore=!0,e.unignore=!0,!0}function Jm(_ref100){var e=_ref100.comment,t=_ref100.precedingNode,n=_ref100.enclosingNode,r=_ref100.followingNode;return!(!n||"TSMappedType"!==n.type||(r&&"TSTypeParameter"===r.type&&r.name?(tm(r.name,e),0):!t||"TSTypeParameter"!==t.type||!t.constraint||(nm(t.constraint,e),0)))}function Xm(e){return"ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||"FunctionDeclaration"===e.type||"ObjectMethod"===e.type||"ClassMethod"===e.type||"TSDeclareFunction"===e.type||"TSCallSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSMethodSignature"===e.type||"TSConstructorType"===e.type||"TSFunctionType"===e.type||"TSDeclareMethod"===e.type}function Ym(e){return um(e)&&"*"===e.value[0]&&/@type\b/.test(e.value)}var Km={handleOwnLineComment:function handleOwnLineComment(e){return[Gm,Om,xm,vm,Am,Fm,Tm,Im,$m,Mm,Vm,qm,Wm,Bm,jm].some((function(t){return t(e)}))},handleEndOfLineComment:function handleEndOfLineComment(e){return[Cm,Om,Sm,Im,vm,Am,Fm,Tm,jm,_m,Rm,Vm,Um,zm].some((function(t){return t(e)}))},handleRemainingComment:function handleRemainingComment(e){return[Gm,vm,Am,wm,Pm,Bm,Vm,Nm,km,Jm,Lm,Hm].some((function(t){return t(e)}))},isTypeCastComment:Ym,getCommentChildNodes:function getCommentChildNodes(e,t){if(("typescript"===t.parser||"flow"===t.parser||"espree"===t.parser||"meriyah"===t.parser)&&"MethodDefinition"===e.type&&e.value&&"FunctionExpression"===e.value.type&&0===sm(e.value).length&&!e.value.returnType&&!im(e.value.typeParameters)&&e.value.body)return[].concat(_toConsumableArray(e.decorators||[]),[e.key,e.value.body])},willPrintOwnComments:function willPrintOwnComments(e){var t=e.getValue(),n=e.getParentNode();return(t&&(cm(t)||lm(t)||mm(n)&&(pm(t.leadingComments)||pm(t.trailingComments)))||n&&("JSXSpreadAttribute"===n.type||"JSXSpreadChild"===n.type||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type||("ClassDeclaration"===n.type||"ClassExpression"===n.type)&&n.superClass===t))&&(!fm(e)||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type)}},Qm=pd.getFunctionParameters,Zm=pd.getLeftSidePathName,eg=pd.hasFlowShorthandAnnotationComment,tg=pd.hasNakedLeftSide,ng=pd.hasNode,rg=pd.isBitwiseOperator,og=pd.startsWithNoLookaheadToken,ig=pd.shouldFlatten,ug=pd.getPrecedence,sg=pd.isCallExpression,ag=pd.isMemberExpression;function cg(e,t){var n=e.getParentNode();if(!n)return!1;var r=e.getName(),o=e.getNode();if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&function(e){return"ObjectExpression"===e.type}(o)&&lg(e))return!0;if(function(e){return"BlockStatement"===e.type||"BreakStatement"===e.type||"ClassBody"===e.type||"ClassDeclaration"===e.type||"ClassMethod"===e.type||"ClassProperty"===e.type||"PropertyDefinition"===e.type||"ClassPrivateProperty"===e.type||"ContinueStatement"===e.type||"DebuggerStatement"===e.type||"DeclareClass"===e.type||"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type||"DeclareFunction"===e.type||"DeclareInterface"===e.type||"DeclareModule"===e.type||"DeclareModuleExports"===e.type||"DeclareVariable"===e.type||"DoWhileStatement"===e.type||"EnumDeclaration"===e.type||"ExportAllDeclaration"===e.type||"ExportDefaultDeclaration"===e.type||"ExportNamedDeclaration"===e.type||"ExpressionStatement"===e.type||"ForInStatement"===e.type||"ForOfStatement"===e.type||"ForStatement"===e.type||"FunctionDeclaration"===e.type||"IfStatement"===e.type||"ImportDeclaration"===e.type||"InterfaceDeclaration"===e.type||"LabeledStatement"===e.type||"MethodDefinition"===e.type||"ReturnStatement"===e.type||"SwitchStatement"===e.type||"ThrowStatement"===e.type||"TryStatement"===e.type||"TSDeclareFunction"===e.type||"TSEnumDeclaration"===e.type||"TSImportEqualsDeclaration"===e.type||"TSInterfaceDeclaration"===e.type||"TSModuleDeclaration"===e.type||"TSNamespaceExportDeclaration"===e.type||"TypeAlias"===e.type||"VariableDeclaration"===e.type||"WhileStatement"===e.type||"WithStatement"===e.type}(o))return!1;if("flow"!==t.parser&&eg(e.getValue()))return!0;if("Identifier"===o.type)return!!(o.extra&&o.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(o.name))||"left"===r&&"async"===o.name&&"ForOfStatement"===n.type&&!n.await;switch(n.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if("superClass"===r&&("ArrowFunctionExpression"===o.type||"AssignmentExpression"===o.type||"AwaitExpression"===o.type||"BinaryExpression"===o.type||"ConditionalExpression"===o.type||"LogicalExpression"===o.type||"NewExpression"===o.type||"ObjectExpression"===o.type||"ParenthesizedExpression"===o.type||"SequenceExpression"===o.type||"TaggedTemplateExpression"===o.type||"UnaryExpression"===o.type||"UpdateExpression"===o.type||"YieldExpression"===o.type||"TSNonNullExpression"===o.type))return!0;break;case"ExportDefaultDeclaration":return pg(e,t)||"SequenceExpression"===o.type;case"Decorator":if("expression"===r){for(var _e130=!1,_t106=!1,_n75=o;_n75;)switch(_n75.type){case"MemberExpression":_t106=!0,_n75=_n75.object;break;case"CallExpression":if(_t106||_e130)return!0;_e130=!0,_n75=_n75.callee;break;case"Identifier":return!1;default:return!0}return!0}break;case"ExpressionStatement":if(og(o,!0))return!0;break;case"ArrowFunctionExpression":if("body"===r&&"SequenceExpression"!==o.type&&og(o,!1))return!0}switch(o.type){case"UpdateExpression":if("UnaryExpression"===n.type)return o.prefix&&("++"===o.operator&&"+"===n.operator||"--"===o.operator&&"-"===n.operator);case"UnaryExpression":switch(n.type){case"UnaryExpression":return o.operator===n.operator&&("+"===o.operator||"-"===o.operator);case"BindExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"BinaryExpression":return"left"===r&&"**"===n.operator;default:return!1}case"BinaryExpression":if("UpdateExpression"===n.type||"PipelineTopicExpression"===n.type&&"|>"===o.operator)return!0;if("in"===o.operator&&function(e){for(var t=0,n=e.getValue();n;){var _r81=e.getParentNode(t++);if(_r81&&"ForStatement"===_r81.type&&_r81.init===n)return!0;n=_r81}return!1}(e))return!0;if("|>"===o.operator&&o.extra&&o.extra.parenthesized){var _t107=e.getParentNode(1);if("BinaryExpression"===_t107.type&&"|>"===_t107.operator)return!0}case"TSTypeAssertion":case"TSAsExpression":case"LogicalExpression":switch(n.type){case"TSAsExpression":return"TSAsExpression"!==o.type;case"ConditionalExpression":return"TSAsExpression"===o.type;case"CallExpression":case"NewExpression":case"OptionalCallExpression":return"callee"===r;case"ClassExpression":case"ClassDeclaration":return"superClass"===r;case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"AssignmentExpression":case"AssignmentPattern":return"left"===r&&("TSTypeAssertion"===o.type||"TSAsExpression"===o.type);case"LogicalExpression":if("LogicalExpression"===o.type)return n.operator!==o.operator;case"BinaryExpression":var _e131=o.operator,_t108=o.type;if(!_e131&&"TSTypeAssertion"!==_t108)return!0;var _i53=ug(_e131),_u15=n.operator,_s21=ug(_u15);return _s21>_i53||"right"===r&&_s21===_i53||_s21===_i53&&!ig(_u15,_e131)||(_s21<_i53&&"%"===_e131?"+"===_u15||"-"===_u15:!!rg(_u15));default:return!1}case"SequenceExpression":switch(n.type){case"ReturnStatement":case"ForStatement":return!1;case"ExpressionStatement":return"expression"!==r;case"ArrowFunctionExpression":return"body"!==r;default:return!0}case"YieldExpression":if("UnaryExpression"===n.type||"AwaitExpression"===n.type||"TSAsExpression"===n.type||"TSNonNullExpression"===n.type)return!0;if("expression"===r&&o.argument&&"PipelinePrimaryTopicReference"===o.argument.type&&"PipelineTopicExpression"===n.type)return!0;case"AwaitExpression":switch(n.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"SpreadProperty":case"TSAsExpression":case"TSNonNullExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"ConditionalExpression":return"test"===r;case"BinaryExpression":return!(!o.argument&&"|>"===n.operator);default:return!1}case"TSJSDocFunctionType":case"TSConditionalType":if("extendsType"===r&&"TSConditionalType"===n.type)return!0;case"TSFunctionType":case"TSConstructorType":if("checkType"===r&&"TSConditionalType"===n.type)return!0;case"TSUnionType":case"TSIntersectionType":if(("TSUnionType"===n.type||"TSIntersectionType"===n.type)&&n.types.length>1&&(!o.types||o.types.length>1))return!0;case"TSInferType":if("TSInferType"===o.type&&"TSRestType"===n.type)return!1;case"TSTypeOperator":return"TSArrayType"===n.type||"TSOptionalType"===n.type||"TSRestType"===n.type||"objectType"===r&&"TSIndexedAccessType"===n.type||"TSTypeOperator"===n.type||"TSTypeAnnotation"===n.type&&/^TSJSDoc/.test(e.getParentNode(1).type);case"ArrayTypeAnnotation":return"NullableTypeAnnotation"===n.type;case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return"ArrayTypeAnnotation"===n.type||"NullableTypeAnnotation"===n.type||"IntersectionTypeAnnotation"===n.type||"UnionTypeAnnotation"===n.type;case"NullableTypeAnnotation":return"ArrayTypeAnnotation"===n.type;case"FunctionTypeAnnotation":var _t109="NullableTypeAnnotation"===n.type?e.getParentNode(1):n;return"UnionTypeAnnotation"===_t109.type||"IntersectionTypeAnnotation"===_t109.type||"ArrayTypeAnnotation"===_t109.type||"NullableTypeAnnotation"===_t109.type||"FunctionTypeParam"===n.type&&null===n.name&&Qm(o).some((function(e){return e.typeAnnotation&&"NullableTypeAnnotation"===e.typeAnnotation.type}));case"OptionalIndexedAccessType":return"objectType"===r&&"IndexedAccessType"===n.type;case"StringLiteral":case"NumericLiteral":case"Literal":if("string"==typeof o.value&&"ExpressionStatement"===n.type&&!n.directive){var _t110=e.getParentNode(1);return"Program"===_t110.type||"BlockStatement"===_t110.type}return"object"===r&&"MemberExpression"===n.type&&"number"==typeof o.value;case"AssignmentExpression":var _t111=e.getParentNode(1);return"body"===r&&"ArrowFunctionExpression"===n.type||("key"!==r||"ClassProperty"!==n.type&&"PropertyDefinition"!==n.type||!n.computed)&&("init"!==r&&"update"!==r||"ForStatement"!==n.type)&&("ExpressionStatement"===n.type?"ObjectPattern"===o.left.type:!("key"===r&&"TSPropertySignature"===n.type||"AssignmentExpression"===n.type||"SequenceExpression"===n.type&&_t111&&"ForStatement"===_t111.type&&(_t111.init===n||_t111.update===n)||"value"===r&&"Property"===n.type&&_t111&&"ObjectPattern"===_t111.type&&_t111.properties.includes(n)||"NGChainedExpression"===n.type));case"ConditionalExpression":switch(n.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"ConditionalExpression":return"test"===r;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;default:return!1}case"FunctionExpression":switch(n.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(n.type){case"PipelineTopicExpression":return Boolean(o.extra&&o.extra.parenthesized);case"BinaryExpression":return"|>"!==n.operator||o.extra&&o.extra.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"TSAsExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return"test"===r;default:return!1}case"ClassExpression":return"NewExpression"===n.type&&"callee"===r;case"OptionalMemberExpression":case"OptionalCallExpression":var _t112=e.getParentNode(1);if("object"===r&&"MemberExpression"===n.type||"callee"===r&&("CallExpression"===n.type||"NewExpression"===n.type)||"TSNonNullExpression"===n.type&&"MemberExpression"===_t112.type&&_t112.object===n)return!0;case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":if("callee"===r&&("BindExpression"===n.type||"NewExpression"===n.type))for(var _e132=o;_e132;)switch(_e132.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":_e132=_e132.object;break;case"TaggedTemplateExpression":_e132=_e132.tag;break;case"TSNonNullExpression":_e132=_e132.expression;break;default:return!1}return!1;case"BindExpression":return"callee"===r&&("BindExpression"===n.type||"NewExpression"===n.type)||"object"===r&&ag(n);case"NGPipeExpression":return!("NGRoot"===n.type||"NGMicrosyntaxExpression"===n.type||"ObjectProperty"===n.type&&(!o.extra||!o.extra.parenthesized)||"ArrayExpression"===n.type||sg(n)&&n.arguments[r]===o||"right"===r&&"NGPipeExpression"===n.type||"property"===r&&"MemberExpression"===n.type||"AssignmentExpression"===n.type);case"JSXFragment":case"JSXElement":return"callee"===r||"left"===r&&"BinaryExpression"===n.type&&"<"===n.operator||"ArrayExpression"!==n.type&&"ArrowFunctionExpression"!==n.type&&"AssignmentExpression"!==n.type&&"AssignmentPattern"!==n.type&&"BinaryExpression"!==n.type&&"NewExpression"!==n.type&&"ConditionalExpression"!==n.type&&"ExpressionStatement"!==n.type&&"JsExpressionRoot"!==n.type&&"JSXAttribute"!==n.type&&"JSXElement"!==n.type&&"JSXExpressionContainer"!==n.type&&"JSXFragment"!==n.type&&"LogicalExpression"!==n.type&&"ObjectProperty"!==n.type&&!sg(n)&&"Property"!==n.type&&"ReturnStatement"!==n.type&&"ThrowStatement"!==n.type&&"TypeCastExpression"!==n.type&&"VariableDeclarator"!==n.type&&"YieldExpression"!==n.type;case"TypeAnnotation":return"returnType"===r&&"ArrowFunctionExpression"===n.type&&function(e){return ng(e,(function(e){return"ObjectTypeAnnotation"===e.type&&ng(e,(function(e){return"FunctionTypeAnnotation"===e.type||void 0}))||void 0}))}(o)}return!1}function lg(e){var t=e.getValue(),n=e.getParentNode(),r=e.getName();switch(n.type){case"NGPipeExpression":if("number"==typeof r&&n.arguments[r]===t&&n.arguments.length-1===r)return e.callParent(lg);break;case"ObjectProperty":if("value"===r){var _t113=e.getParentNode(1);return ke(_t113.properties)===n}break;case"BinaryExpression":case"LogicalExpression":if("right"===r)return e.callParent(lg);break;case"ConditionalExpression":if("alternate"===r)return e.callParent(lg);break;case"UnaryExpression":if(n.prefix)return e.callParent(lg)}return!1}function pg(e,t){var n=e.getValue(),r=e.getParentNode();return"FunctionExpression"===n.type||"ClassExpression"===n.type?"ExportDefaultDeclaration"===r.type||!cg(e,t):!(!tg(n)||"ExportDefaultDeclaration"!==r.type&&cg(e,t))&&e.call.apply(e,[function(e){return pg(e,t)}].concat(_toConsumableArray(Zm(e,n))))}var fg=cg,dg=function dg(e,t){switch(t.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":return Object.assign({},e,{type:t.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:e,comments:[],rootMarker:t.rootMarker});default:return e}},_Rn$builders8=Rn.builders,hg=_Rn$builders8.join,mg=_Rn$builders8.line,gg=_Rn$builders8.group,yg=_Rn$builders8.softline,Dg=_Rn$builders8.indent,Eg={isVueEventBindingExpression:function e(t){switch(t.type){case"MemberExpression":switch(t.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return e(t.object)}return!1;case"Identifier":return!0;default:return!1}},printHtmlBinding:function printHtmlBinding(e,t,n){var r=e.getValue();if(t.__onHtmlBindingRoot&&null===e.getName()&&t.__onHtmlBindingRoot(r,t),"File"===r.type)return t.__isVueForBindingLeft?e.call((function(e){var t=hg([",",mg],e.map(n,"params"));return 1===e.getValue().params.length?t:["(",Dg([yg,gg(t)]),yg,")"]}),"program","body",0):t.__isVueBindings?e.call((function(e){return hg([",",mg],e.map(n,"params"))}),"program","body",0):void 0}},bg=up.printComments,Cg=rn.getLast,_Rn$builders9=Rn.builders,vg=_Rn$builders9.join,Ag=_Rn$builders9.line,Fg=_Rn$builders9.softline,xg=_Rn$builders9.group,Sg=_Rn$builders9.indent,wg=_Rn$builders9.align,Tg=_Rn$builders9.ifBreak,Bg=_Rn$builders9.indentIfBreak,_Rn$utils2=Rn.utils,kg=_Rn$utils2.cleanDoc,Ng=_Rn$utils2.getDocParts,Pg=_Rn$utils2.isConcat,Og=pd.hasLeadingOwnLineComment,Ig=pd.isBinaryish,jg=pd.isJsxNode,Lg=pd.shouldFlatten,_g=pd.hasComment,Mg=pd.CommentCheckFlags,Rg=pd.isCallExpression,Vg=pd.isMemberExpression,$g=0;function qg(e,t,n,r,o){var i=[],u=e.getValue();if(Ig(u)){Lg(u.operator,u.left.operator)?i=[].concat(_toConsumableArray(i),_toConsumableArray(e.call((function(e){return qg(e,t,n,!0,o)}),"left"))):i.push(xg(t("left")));var _s22=Wg(u),_a6=("|>"===u.operator||"NGPipeExpression"===u.type||"|"===u.operator&&"__vue_expression"===n.parser)&&!Og(n.originalText,u.right),_c11="NGPipeExpression"===u.type?"|":u.operator,_l9="NGPipeExpression"===u.type&&u.arguments.length>0?xg(Sg([Fg,": ",vg([Fg,":",Tg(" ")],e.map(t,"arguments").map((function(e){return wg(2,xg(e))})))])):"",_p9=_s22?[_c11," ",t("right"),_l9]:[_a6?Ag:"",_c11,_a6?" ":Ag,t("right"),_l9],_f6=e.getParentNode(),_d6=_g(u.left,Mg.Trailing|Mg.Line),_h6=_d6||!(o&&"LogicalExpression"===u.type)&&_f6.type!==u.type&&u.left.type!==u.type&&u.right.type!==u.type;if(i.push(_a6?"":" ",_h6?xg(_p9,{shouldBreak:_d6}):_p9),r&&_g(u)){var _t114=kg(bg(e,i,n));i=Pg(_t114)||"fill"===_t114.type?Ng(_t114):[_t114]}}else i.push(xg(t()));return i}function Wg(e){return"LogicalExpression"===e.type&&("ObjectExpression"===e.right.type&&e.right.properties.length>0||"ArrayExpression"===e.right.type&&e.right.elements.length>0||!!jg(e.right))}var Ug={printBinaryishExpression:function printBinaryishExpression(e,t,n){var r=e.getValue(),o=e.getParentNode(),i=e.getParentNode(1),u=r!==o.body&&("IfStatement"===o.type||"WhileStatement"===o.type||"SwitchStatement"===o.type||"DoWhileStatement"===o.type),s=qg(e,n,t,!1,u);if(u)return s;if(Rg(o)&&o.callee===r||"UnaryExpression"===o.type||Vg(o)&&!o.computed)return xg([Sg([Fg].concat(_toConsumableArray(s))),Fg]);var a="ReturnStatement"===o.type||"ThrowStatement"===o.type||"JSXExpressionContainer"===o.type&&"JSXAttribute"===i.type||"|"!==r.operator&&"JsExpressionRoot"===o.type||"NGPipeExpression"!==r.type&&("NGRoot"===o.type&&"__ng_binding"===t.parser||"NGMicrosyntaxExpression"===o.type&&"NGMicrosyntax"===i.type&&1===i.body.length)||r===o.body&&"ArrowFunctionExpression"===o.type||r!==o.body&&"ForStatement"===o.type||"ConditionalExpression"===o.type&&"ReturnStatement"!==i.type&&"ThrowStatement"!==i.type&&!Rg(i)||"TemplateLiteral"===o.type,c="AssignmentExpression"===o.type||"VariableDeclarator"===o.type||"ClassProperty"===o.type||"PropertyDefinition"===o.type||"TSAbstractClassProperty"===o.type||"ClassPrivateProperty"===o.type||"ObjectProperty"===o.type||"Property"===o.type,l=Ig(r.left)&&Lg(r.operator,r.left.operator);if(a||Wg(r)&&!l||!Wg(r)&&c)return xg(s);if(0===s.length)return"";var p=jg(r.right),f=s.findIndex((function(e){return"string"!=typeof e&&!Array.isArray(e)&&"group"===e.type})),d=s.slice(0,-1===f?1:f+1),h=s.slice(d.length,p?-1:void 0),m=Symbol("logicalChain-"+ ++$g),g=xg([].concat(_toConsumableArray(d),[Sg(h)]),{id:m});if(!p)return g;var y=Cg(s);return xg([g,Bg(y,{groupId:m})])},shouldInlineLogicalExpression:Wg},_Rn$builders10=Rn.builders,zg=_Rn$builders10.join,Hg=_Rn$builders10.line,Gg=_Rn$builders10.group,Jg=pd.hasNode,Xg=pd.hasComment,Yg=pd.getComments,Kg=Ug.printBinaryishExpression;function Qg(e,t,n){return"NGMicrosyntaxKeyedExpression"===e.type&&"of"===e.key.name&&1===t&&"NGMicrosyntaxLet"===n.body[0].type&&null===n.body[0].value}var Zg={printAngular:function printAngular(e,t,n){var r=e.getValue();switch(r.type){case"NGRoot":return[n("node"),Xg(r.node)?" //"+Yg(r.node)[0].value.trimEnd():""];case"NGPipeExpression":return Kg(e,t,n);case"NGChainedExpression":return Gg(zg([";",Hg],e.map((function(e){return function(e){return Jg(e.getValue(),(function(e){switch(e.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}}))}(e)?n():["(",n(),")"]}),"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return[r.prefix,": ",r.value.trim()];case"NGMicrosyntax":return e.map((function(e,t){return[0===t?"":Qg(e.getValue(),t,r)?" ":[";",Hg],n()]}),"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(-[$_a-z][\w$])*$/i.test(r.name)?r.name:JSON.stringify(r.name);case"NGMicrosyntaxExpression":return[n("expression"),null===r.alias?"":[" as ",n("alias")]];case"NGMicrosyntaxKeyedExpression":var _t115=e.getName(),_o33=e.getParentNode(),_i54=Qg(r,_t115,_o33)||(1===_t115&&("then"===r.key.name||"else"===r.key.name)||2===_t115&&"else"===r.key.name&&"NGMicrosyntaxKeyedExpression"===_o33.body[_t115-1].type&&"then"===_o33.body[_t115-1].key.name)&&"NGMicrosyntaxExpression"===_o33.body[0].type;return[n("key"),_i54?" ":": ",n("expression")];case"NGMicrosyntaxLet":return["let ",n("key"),null===r.value?"":[" = ",n("value")]];case"NGMicrosyntaxAs":return[n("key")," as ",n("alias")]}}},ey=up.printComments,ty=up.printDanglingComments,_Rn$builders11=Rn.builders,ny=_Rn$builders11.line,ry=_Rn$builders11.hardline,oy=_Rn$builders11.softline,iy=_Rn$builders11.group,uy=_Rn$builders11.indent,sy=_Rn$builders11.conditionalGroup,ay=_Rn$builders11.fill,cy=_Rn$builders11.ifBreak,ly=_Rn$builders11.lineSuffixBoundary,py=_Rn$builders11.join,fy=Rn.utils.willBreak,dy=rn.getLast,hy=rn.getPreferredQuote,my=pd.isJsxNode,gy=pd.rawText,yy=pd.isLiteral,Dy=pd.isCallExpression,Ey=pd.isStringLiteral,by=pd.isBinaryish,Cy=pd.hasComment,vy=pd.CommentCheckFlags,Ay=pd.hasNodeIgnoreComment,Fy=Km.willPrintOwnComments,xy=function xy(e){return""===e||e===ny||e===ry||e===oy};function Sy(e,t,n){var r=e.getValue();if("JSXElement"===r.type&&function(e){if(0===e.children.length)return!0;if(e.children.length>1)return!1;var t=e.children[0];return yy(t)&&!Iy(t)}(r))return[n("openingElement"),n("closingElement")];var o="JSXElement"===r.type?n("openingElement"):n("openingFragment"),i="JSXElement"===r.type?n("closingElement"):n("closingFragment");if(1===r.children.length&&"JSXExpressionContainer"===r.children[0].type&&("TemplateLiteral"===r.children[0].expression.type||"TaggedTemplateExpression"===r.children[0].expression.type))return[o].concat(_toConsumableArray(e.map(n,"children")),[i]);r.children=r.children.map((function(e){return function(e){return"JSXExpressionContainer"===e.type&&yy(e.expression)&&" "===e.expression.value&&!Cy(e.expression)}(e)?{type:"JSXText",value:" ",raw:" "}:e}));for(var u=r.children.filter(my).length>0,s=r.children.filter((function(e){return"JSXExpressionContainer"===e.type})).length>1,a="JSXElement"===r.type&&r.openingElement.attributes.length>1,c=fy(o)||u||a||s,l="mdx"===e.getParentNode().rootMarker,p=t.singleQuote?"{' '}":'{" "}',f=l?" ":cy([p,oy]," "),d=function(e,t,n,r,o){var i=[];return e.each((function(e,t,u){var s=e.getValue();if(yy(s)){var _e133=gy(s);if(Iy(s)){var _a7,_n76=_e133.split(Ny);if(""===_n76[0]){if(i.push(""),_n76.shift(),/\n/.test(_n76[0])){var _e134=u[t+1];i.push(Ty(o,_n76[1],s,_e134))}else i.push(r);_n76.shift()}if(""===dy(_n76)&&(_n76.pop(),_a7=_n76.pop()),0===_n76.length)return;var _step64,_iterator64=_createForOfIteratorHelper(_n76.entries());try{for(_iterator64.s();!(_step64=_iterator64.n()).done;){var _step64$value=_slicedToArray(_step64.value,2),_e137=_step64$value[0],_t116=_step64$value[1];_e137%2==1?i.push(ny):i.push(_t116)}}catch(err){_iterator64.e(err)}finally{_iterator64.f()}if(void 0!==_a7)if(/\n/.test(_a7)){var _e135=u[t+1];i.push(Ty(o,dy(i),s,_e135))}else i.push(r);else{var _e136=u[t+1];i.push(wy(o,dy(i),s,_e136))}}else/\n/.test(_e133)?_e133.match(/\n/g).length>1&&i.push("",ry):i.push("",r)}else{var _e138=n();i.push(_e138);var _r82=u[t+1];if(_r82&&Iy(_r82)){var _e139=Oy(gy(_r82)).split(Ny)[0];i.push(wy(o,_e139,s,_r82))}else i.push(ry)}}),"children"),i}(e,0,n,f,r.openingElement&&r.openingElement.name&&"fbt"===r.openingElement.name.name),h=r.children.some((function(e){return Iy(e)})),_e140=d.length-2;_e140>=0;_e140--){var _t117=""===d[_e140]&&""===d[_e140+1],_n77=d[_e140]===ry&&""===d[_e140+1]&&d[_e140+2]===ry,_r83=(d[_e140]===oy||d[_e140]===ry)&&""===d[_e140+1]&&d[_e140+2]===f,_o34=d[_e140]===f&&""===d[_e140+1]&&(d[_e140+2]===oy||d[_e140+2]===ry),_i55=d[_e140]===f&&""===d[_e140+1]&&d[_e140+2]===f,_u16=d[_e140]===oy&&""===d[_e140+1]&&d[_e140+2]===ry||d[_e140]===ry&&""===d[_e140+1]&&d[_e140+2]===oy;_n77&&h||_t117||_r83||_i55||_u16?d.splice(_e140,2):_o34&&d.splice(_e140+1,2)}for(;d.length>0&&xy(dy(d));)d.pop();for(;d.length>1&&xy(d[0])&&xy(d[1]);)d.shift(),d.shift();var _step65,m=[],_iterator65=_createForOfIteratorHelper(d.entries());try{for(_iterator65.s();!(_step65=_iterator65.n()).done;){var _step65$value=_slicedToArray(_step65.value,2),_e141=_step65$value[0],_t118=_step65$value[1];if(_t118===f){if(1===_e141&&""===d[_e141-1]){if(2===d.length){m.push(p);continue}m.push([p,ry]);continue}if(_e141===d.length-1){m.push(p);continue}if(""===d[_e141-1]&&d[_e141-2]===ry){m.push(p);continue}}m.push(_t118),fy(_t118)&&(c=!0)}}catch(err){_iterator65.e(err)}finally{_iterator65.f()}var g=h?ay(m):iy(m,{shouldBreak:!0});if(l)return g;var y=iy([o,uy([ry,g]),ry,i]);return c?y:sy([iy([o].concat(_toConsumableArray(d),[i])),y])}function wy(e,t,n,r){return e?"":"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?1===t.length?oy:ry:oy}function Ty(e,t,n,r){return e?ry:1===t.length?"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?ry:oy:ry}function By(e,t,n){return function(e,t,n){var r=e.getParentNode();if(!r)return t;if({ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[r.type])return t;var o=e.match(void 0,(function(e){return"ArrowFunctionExpression"===e.type}),Dy,(function(e){return"JSXExpressionContainer"===e.type})),i=fg(e,n);return iy([i?"":cy("("),uy([oy,t]),oy,i?"":cy(")")],{shouldBreak:o})}(e,ey(e,Sy(e,t,n),t),t)}function ky(e,t,n){var r=e.getValue();return["{",e.call((function(e){var r=["...",n()],o=e.getValue();return Cy(o)&&Fy(e)?[uy([oy,ey(e,r,t)]),oy]:r}),"JSXSpreadAttribute"===r.type?"argument":"expression"),"}"]}var Ny=new RegExp("([ \n\r\t]+)"),Py=new RegExp("[^ \n\r\t]"),Oy=function Oy(e){return e.replace(new RegExp("(?:^"+Ny.source+"|"+Ny.source+"$)"),"")};function Iy(e){return yy(e)&&(Py.test(gy(e))||!/\n/.test(gy(e)))}var jy={hasJsxIgnoreComment:function hasJsxIgnoreComment(e){var t=e.getValue(),n=e.getParentNode();if(!(n&&t&&my(t)&&my(n)))return!1;for(var r=null,_e142=n.children.indexOf(t);_e142>0;_e142--){var _t119=n.children[_e142-1];if("JSXText"!==_t119.type||Iy(_t119)){r=_t119;break}}return r&&"JSXExpressionContainer"===r.type&&"JSXEmptyExpression"===r.expression.type&&Ay(r.expression)},printJsx:function printJsx(e,t,n){var r=e.getValue();switch(r.type){case"JSXAttribute":return function(e,t,n){var r=e.getValue(),o=[];if(o.push(n("name")),r.value){var _e143;if(Ey(r.value)){var _n78=gy(r.value).replace(/'/g,"'").replace(/"/g,'"'),_o35=hy(_n78,t.jsxSingleQuote?"'":'"'),_i56="'"===_o35?"'":""";_e143=[_o35,_n78=_n78.slice(1,-1).replace(new RegExp(_o35,"g"),_i56),_o35]}else _e143=n("value");o.push("=",_e143)}return o}(e,t,n);case"JSXIdentifier":return String(r.name);case"JSXNamespacedName":return py(":",[n("namespace"),n("name")]);case"JSXMemberExpression":return py(".",[n("object"),n("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return ky(e,t,n);case"JSXExpressionContainer":return function(e,t,n){var r=e.getValue(),o=e.getParentNode(0),i="JSXEmptyExpression"===r.expression.type||!Cy(r.expression)&&("ArrayExpression"===r.expression.type||"ObjectExpression"===r.expression.type||"ArrowFunctionExpression"===r.expression.type||Dy(r.expression)||"FunctionExpression"===r.expression.type||"TemplateLiteral"===r.expression.type||"TaggedTemplateExpression"===r.expression.type||"DoExpression"===r.expression.type||my(o)&&("ConditionalExpression"===r.expression.type||by(r.expression)));return iy(i?["{",n("expression"),ly,"}"]:["{",uy([oy,n("expression")]),oy,ly,"}"])}(e,0,n);case"JSXFragment":case"JSXElement":return By(e,t,n);case"JSXOpeningElement":return function(e,t,n){var r=e.getValue(),o=r.name&&Cy(r.name)||r.typeParameters&&Cy(r.typeParameters);if(r.selfClosing&&0===r.attributes.length&&!o)return["<",n("name"),n("typeParameters")," />"];if(r.attributes&&1===r.attributes.length&&r.attributes[0].value&&Ey(r.attributes[0].value)&&!r.attributes[0].value.value.includes("\n")&&!o&&!Cy(r.attributes[0]))return iy(["<",n("name"),n("typeParameters")," "].concat(_toConsumableArray(e.map(n,"attributes")),[r.selfClosing?" />":">"]));var i=r.attributes.length>0&&Cy(dy(r.attributes),vy.Trailing),u=0===r.attributes.length&&!o||t.jsxBracketSameLine&&(!o||r.attributes.length>0)&&!i,s=r.attributes&&r.attributes.some((function(e){return e.value&&Ey(e.value)&&e.value.value.includes("\n")}));return iy(["<",n("name"),n("typeParameters"),uy(e.map((function(){return[ny,n()]}),"attributes")),r.selfClosing?ny:u?">":oy,r.selfClosing?"/>":u?"":">"],{shouldBreak:s})}(e,t,n);case"JSXClosingElement":return function(e,t,n){var r=e.getValue(),o=[];o.push(""),o}(e,0,n);case"JSXOpeningFragment":case"JSXClosingFragment":return function(e,t){var n=e.getValue(),r=Cy(n),o=Cy(n,vy.Line),i="JSXOpeningFragment"===n.type;return[i?"<":""]}(e,t);case"JSXEmptyExpression":return function(e,t){var n=e.getValue(),r=Cy(n,vy.Line);return[ty(e,t,!r),r?ry:""]}(e,t);case"JSXText":throw new Error("JSXTest should be handled by JSXElement")}}},Ly=rn.isNonEmptyArray,_Rn$builders12=Rn.builders,_y=_Rn$builders12.indent,My=_Rn$builders12.join,Ry=_Rn$builders12.line,Vy=pd.isFlowAnnotationComment,$y={printOptionalToken:function printOptionalToken(e){var t=e.getValue();return!t.optional||"Identifier"===t.type&&t===e.getParentNode().key?"":"OptionalCallExpression"===t.type||"OptionalMemberExpression"===t.type&&t.computed?"?.":"?"},printFunctionTypeParameters:function printFunctionTypeParameters(e,t,n){var r=e.getValue();return r.typeArguments?n("typeArguments"):r.typeParameters?n("typeParameters"):""},printBindExpressionCallee:function printBindExpressionCallee(e,t,n){return["::",n("callee")]},printTypeScriptModifiers:function printTypeScriptModifiers(e,t,n){var r=e.getValue();return Ly(r.modifiers)?[My(" ",e.map(n,"modifiers"))," "]:""},printTypeAnnotation:function printTypeAnnotation(e,t,n){var r=e.getValue();if(!r.typeAnnotation)return"";var o=e.getParentNode(),i=r.definite||o&&"VariableDeclarator"===o.type&&o.definite,u="DeclareFunction"===o.type&&o.id===r;return Vy(t.originalText,r.typeAnnotation)?[" /*: ",n("typeAnnotation")," */"]:[u?"":i?"!: ":": ",n("typeAnnotation")]},adjustClause:function adjustClause(e,t,n){return"EmptyStatement"===e.type?";":"BlockStatement"===e.type||n?[" ",t]:_y([Ry,t])}},qy=up.printDanglingComments,_Rn$builders13=Rn.builders,Wy=_Rn$builders13.line,Uy=_Rn$builders13.softline,zy=_Rn$builders13.hardline,Hy=_Rn$builders13.group,Gy=_Rn$builders13.indent,Jy=_Rn$builders13.ifBreak,Xy=_Rn$builders13.fill,Yy=rn.getLast,Ky=rn.hasNewline,Qy=pd.shouldPrintComma,Zy=pd.hasComment,eD=pd.CommentCheckFlags,tD=pd.isNextLineEmpty,nD=pd.isNumericLiteral,rD=pd.isSignedNumericLiteral,oD=ea.locStart,iD=$y.printOptionalToken,uD=$y.printTypeAnnotation;function sD(e,t){return e.elements.length>1&&e.elements.every((function(e){return e&&(nD(e)||rD(e)&&!Zy(e.argument))&&!Zy(e,eD.Trailing|eD.Line,(function(e){return!Ky(t.originalText,oD(e),{backwards:!0})}))}))}function aD(e,t,n,r){var o=[],i=[];return e.each((function(e){o.push(i,Hy(r())),i=[",",Wy],e.getValue()&&tD(e.getValue(),t)&&i.push(Uy)}),n),o}function cD(e,t,n,r){var o=[];return e.each((function(e,i,u){var s=i===u.length-1;o.push([n(),s?r:","]),s||o.push(tD(e.getValue(),t)?[zy,zy]:Zy(u[i+1],eD.Leading|eD.Line)?zy:Wy)}),"elements"),Xy(o)}var lD={printArray:function printArray(e,t,n){var r=e.getValue(),o=[],i="TupleExpression"===r.type?"#[":"[";if(0===r.elements.length)Zy(r,eD.Dangling)?o.push(Hy([i,qy(e,t),Uy,"]"])):o.push(i,"]");else{var _u17=Yy(r.elements),_s23=!(_u17&&"RestElement"===_u17.type),_a8=null===_u17,_c12=Symbol("array"),_l10=!t.__inJestEach&&r.elements.length>1&&r.elements.every((function(e,t,n){var r=e&&e.type;if("ArrayExpression"!==r&&"ObjectExpression"!==r)return!1;var o=n[t+1];if(o&&r!==o.type)return!1;var i="ArrayExpression"===r?"elements":"properties";return e[i]&&e[i].length>1})),_p10=sD(r,t),_f7=_s23?_a8?",":Qy(t)?_p10?Jy(",","",{groupId:_c12}):Jy(","):"":"";o.push(Hy([i,Gy([Uy,_p10?cD(e,t,n,_f7):[aD(e,t,"elements",n),_f7],qy(e,t,!0)]),Uy,"]"],{shouldBreak:_l10,id:_c12}))}return o.push(iD(e),uD(e,t,n)),o},printArrayItems:aD,isConciselyPrintedArray:sD},pD=up.printDanglingComments,fD=rn.getLast,dD=rn.getPenultimate,hD=pd.getFunctionParameters,mD=pd.hasComment,gD=pd.CommentCheckFlags,yD=pd.isFunctionCompositionArgs,DD=pd.isJsxNode,ED=pd.isLongCurriedCallExpression,bD=pd.shouldPrintComma,CD=pd.getCallArguments,vD=pd.iterateCallArgumentsPath,AD=pd.isNextLineEmpty,FD=pd.isCallExpression,_Rn$builders14=Rn.builders,xD=_Rn$builders14.line,SD=_Rn$builders14.hardline,wD=_Rn$builders14.softline,TD=_Rn$builders14.group,BD=_Rn$builders14.indent,kD=_Rn$builders14.conditionalGroup,ND=_Rn$builders14.ifBreak,PD=_Rn$builders14.breakParent,OD=Rn.utils.willBreak,ID=uo.ArgExpansionBailout,jD=lD.isConciselyPrintedArray;function LD(e){var n,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"ObjectExpression"===e.type&&(e.properties.length>0||mD(e))||"ArrayExpression"===e.type&&(e.elements.length>0||mD(e))||"TSTypeAssertion"===e.type&&LD(e.expression)||"TSAsExpression"===e.type&&LD(e.expression)||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&(!e.returnType||!e.returnType.typeAnnotation||"TSTypeReference"!==e.returnType.typeAnnotation.type||"BlockStatement"===(n=e.body).type&&(n.body.some((function(e){return"EmptyStatement"!==e.type}))||mD(n,gD.Dangling)))&&("BlockStatement"===e.body.type||"ArrowFunctionExpression"===e.body.type&&LD(e.body,!0)||"ObjectExpression"===e.body.type||"ArrayExpression"===e.body.type||!t&&(FD(e.body)||"ConditionalExpression"===e.body.type)||DD(e.body))||"DoExpression"===e.type||"ModuleExpression"===e.type}var _D=function _D(e,t,n){var r=e.getValue(),o="ImportExpression"===r.type,i=CD(r);if(0===i.length)return["(",pD(e,t,!0),")"];if(function(e){return 2===e.length&&"ArrowFunctionExpression"===e[0].type&&0===hD(e[0]).length&&"BlockStatement"===e[0].body.type&&"ArrayExpression"===e[1].type&&!e.some((function(e){return mD(e)}))}(i))return["(",n(["arguments",0]),", ",n(["arguments",1]),")"];var u=!1,s=!1,a=i.length-1,c=[];vD(e,(function(e,r){var o=e.getNode(),i=[n()];r===a||(AD(o,t)?(0===r&&(s=!0),u=!0,i.push(",",SD,SD)):i.push(",",xD)),c.push(i)}));var l=o||r.callee&&"Import"===r.callee.type||!bD(t,"all")?"":",";function p(){return TD(["(",BD([xD].concat(c)),l,xD,")"],{shouldBreak:!0})}if(u||"Decorator"!==e.getParentNode().type&&yD(i))return p();var f=function(e){if(2!==e.length)return!1;var _e144=_slicedToArray(e,2),t=_e144[0],n=_e144[1];return!("ModuleExpression"!==t.type||!function(e){return"ObjectExpression"===e.type&&1===e.properties.length&&"ObjectProperty"===e.properties[0].type&&"Identifier"===e.properties[0].key.type&&"type"===e.properties[0].key.name&&"StringLiteral"===e.properties[0].value.type&&"module"===e.properties[0].value.value}(n))||!mD(t)&&("FunctionExpression"===t.type||"ArrowFunctionExpression"===t.type&&"BlockStatement"===t.body.type)&&"FunctionExpression"!==n.type&&"ArrowFunctionExpression"!==n.type&&"ConditionalExpression"!==n.type&&!LD(n)}(i),d=function(e,t){var n=fD(e),r=dD(e);return!mD(n,gD.Leading)&&!mD(n,gD.Trailing)&&LD(n)&&(!r||r.type!==n.type)&&(2!==e.length||"ArrowFunctionExpression"!==r.type||"ArrayExpression"!==n.type)&&!(e.length>1&&"ArrayExpression"===n.type&&jD(n,t))}(i,t);if(f||d){if(f?c.slice(1).some(OD):c.slice(0,-1).some(OD))return p();var _t120=[];try{e.try((function(){vD(e,(function(e,r){f&&0===r&&(_t120=[[n([],{expandFirstArg:!0}),c.length>1?",":"",s?SD:xD,s?SD:""]].concat(_toConsumableArray(c.slice(1)))),d&&r===a&&(_t120=[].concat(_toConsumableArray(c.slice(0,-1)),[n([],{expandLastArg:!0})]))}))}))}catch(e){if(e instanceof ID)return p();throw e}return[c.some(OD)?PD:"",kD([["("].concat(_toConsumableArray(_t120),[")"]),f?["(",TD(_t120[0],{shouldBreak:!0})].concat(_toConsumableArray(_t120.slice(1)),[")"]):["("].concat(_toConsumableArray(c.slice(0,-1)),[TD(fD(_t120),{shouldBreak:!0}),")"]),p()])]}var h=["(",BD([wD].concat(c)),ND(l),wD,")"];return ED(e)?h:TD(h,{shouldBreak:c.some(OD)||u})},_Rn$builders15=Rn.builders,MD=_Rn$builders15.softline,RD=_Rn$builders15.group,VD=_Rn$builders15.indent,$D=_Rn$builders15.label,qD=pd.isNumericLiteral,WD=pd.isMemberExpression,UD=pd.isCallExpression,zD=$y.printOptionalToken;function HD(e,t,n){var r=n("property"),o=e.getValue(),i=zD(e);return o.computed?!o.property||qD(o.property)?[i,"[",r,"]"]:RD([i,"[",VD([MD,r]),MD,"]"]):[i,".",r]}var GD={printMemberExpression:function printMemberExpression(e,t,n){var i,r=e.getValue(),o=e.getParentNode(),u=0;do{i=e.getParentNode(u),u++}while(i&&(WD(i)||"TSNonNullExpression"===i.type));var s=n("object"),a=HD(e,t,n),c=i&&("NewExpression"===i.type||"BindExpression"===i.type||"AssignmentExpression"===i.type&&"Identifier"!==i.left.type)||r.computed||"Identifier"===r.object.type&&"Identifier"===r.property.type&&!WD(o)||("AssignmentExpression"===o.type||"VariableDeclarator"===o.type)&&(UD(r.object)&&r.object.arguments.length>0||"TSNonNullExpression"===r.object.type&&UD(r.object.expression)&&r.object.expression.arguments.length>0||"member-chain"===s.label);return $D("member-chain"===s.label?"member-chain":"member",[s,c?a:RD(VD([MD,a]))])},printMemberLookup:HD},JD=up.printComments,XD=rn.getLast,YD=rn.isNextLineEmptyAfterIndex,KD=rn.getNextNonSpaceNonCommentCharacterIndex,QD=pd.isCallExpression,ZD=pd.isMemberExpression,eE=pd.isFunctionOrArrowExpression,tE=pd.isLongCurriedCallExpression,nE=pd.isMemberish,rE=pd.isNumericLiteral,oE=pd.isSimpleCallArgument,iE=pd.hasComment,uE=pd.CommentCheckFlags,sE=pd.isNextLineEmpty,aE=ea.locEnd,_Rn$builders16=Rn.builders,cE=_Rn$builders16.join,lE=_Rn$builders16.hardline,pE=_Rn$builders16.group,fE=_Rn$builders16.indent,dE=_Rn$builders16.conditionalGroup,hE=_Rn$builders16.breakParent,mE=_Rn$builders16.label,gE=Rn.utils.willBreak,yE=GD.printMemberLookup,DE=$y.printOptionalToken,EE=$y.printFunctionTypeParameters,bE=$y.printBindExpressionCallee,CE=function CE(e,t,n){var r=e.getParentNode(),o=!r||"ExpressionStatement"===r.type,i=[];function u(e){var n=t.originalText,r=KD(n,e,aE);return")"===n.charAt(r)?!1!==r&&YD(n,r+1):sE(e,t)}function s(e){var r=e.getValue();QD(r)&&(nE(r.callee)||QD(r.callee))?(i.unshift({node:r,printed:[JD(e,[DE(e),EE(e,t,n),_D(e,t,n)],t),u(r)?lE:""]}),e.call((function(e){return s(e)}),"callee")):nE(r)?(i.unshift({node:r,needsParens:fg(e,t),printed:JD(e,ZD(r)?yE(e,t,n):bE(e,t,n),t)}),e.call((function(e){return s(e)}),"object")):"TSNonNullExpression"===r.type?(i.unshift({node:r,printed:JD(e,"!",t)}),e.call((function(e){return s(e)}),"expression")):i.unshift({node:r,printed:n()})}var a=e.getValue();i.unshift({node:a,printed:[DE(e),EE(e,t,n),_D(e,t,n)]}),a.callee&&e.call((function(e){return s(e)}),"callee");for(var c=[],l=[i[0]],p=1;p0&&c.push(l);var h=c.length>=2&&!iE(c[1][0].node)&&function(e){var n=e[1].length>0&&e[1][0].node.computed;if(1===e[0].length){var _r84=e[0][0].node;return"ThisExpression"===_r84.type||"Identifier"===_r84.type&&(d(_r84.name)||o&&function(e){return e.length<=t.tabWidth}(_r84.name)||n)}var r=XD(e[0]).node;return ZD(r)&&"Identifier"===r.property.type&&(d(r.property.name)||n)}(c);function m(e){var t=e.map((function(e){return e.printed}));return e.length>0&&XD(e).needsParens?["("].concat(_toConsumableArray(t),[")"]):t}var g=c.map(m),y=g,D=h?3:2,E=Ws(c),b=E.slice(1,-1).some((function(e){return iE(e.node,uE.Leading)}))||E.slice(0,-1).some((function(e){return iE(e.node,uE.Trailing)}))||c[D]&&iE(c[D][0].node,uE.Leading);if(c.length<=D&&!b)return tE(e)?y:pE(y);var x,C=XD(c[h?1:0]).node,v=!QD(C)&&u(C),A=[m(c[0]),h?c.slice(1,2).map(m):"",v?lE:"",function(e){return 0===e.length?"":fE(pE([lE,cE(lE,e.map(m))]))}(c.slice(h?2:1))],F=i.map((function(_ref101){return _ref101.node})).filter(QD);return x=b||F.length>2&&F.some((function(e){return!e.arguments.every((function(e){return oE(e,0)}))}))||g.slice(0,-1).some(gE)||function(){var e=XD(XD(c)).node,t=XD(g);return QD(e)&&gE(t)&&F.slice(0,-1).some((function(e){return e.arguments.some(eE)}))}()?pE(A):[gE(y)||v?hE:"",dE([y,A])],mE("member-chain",x)},_Rn$builders17=Rn.builders,vE=_Rn$builders17.join,AE=_Rn$builders17.group,FE=pd.getCallArguments,xE=pd.hasFlowAnnotationComment,SE=pd.isCallExpression,wE=pd.isMemberish,TE=pd.isStringLiteral,BE=pd.isTemplateOnItsOwnLine,kE=pd.isTestCall,NE=pd.iterateCallArgumentsPath,PE=$y.printOptionalToken,OE=$y.printFunctionTypeParameters,IE={printCallExpression:function printCallExpression(e,t,n){var r=e.getValue(),o=e.getParentNode(),i="NewExpression"===r.type,u="ImportExpression"===r.type,s=PE(e),a=FE(r);if(a.length>0&&(!u&&!i&&function(e,t){if("Identifier"!==e.callee.type)return!1;if("require"===e.callee.name)return!0;if("define"===e.callee.name){var _n79=FE(e);return"ExpressionStatement"===t.type&&(1===_n79.length||2===_n79.length&&"ArrayExpression"===_n79[0].type||3===_n79.length&&TE(_n79[0])&&"ArrayExpression"===_n79[1].type)}return!1}(r,o)||1===a.length&&BE(a[0],t.originalText)||!i&&kE(r,o))){var _r85=[];return NE(e,(function(){_r85.push(n())})),[i?"new ":"",n("callee"),s,OE(e,t,n),"(",vE(", ",_r85),")"]}var c=("babel"===t.parser||"babel-flow"===t.parser)&&r.callee&&"Identifier"===r.callee.type&&xE(r.callee.trailingComments);if(c&&(r.callee.trailingComments[0].printed=!0),!u&&!i&&wE(r.callee)&&!e.call((function(e){return fg(e,t)}),"callee"))return CE(e,t,n);var l=[i?"new ":"",u?"import":n("callee"),s,c?"/*:: ".concat(r.callee.trailingComments[0].value.slice(2).trim()," */"):"",OE(e,t,n),_D(e,t,n)];return u||SE(r.callee)?AE(l):l}},jE=rn.isNonEmptyArray,LE=rn.getStringWidth,_Rn$builders18=Rn.builders,_E=_Rn$builders18.line,ME=_Rn$builders18.group,RE=_Rn$builders18.indent,VE=_Rn$builders18.indentIfBreak,$E=Rn.utils.cleanDoc,qE=pd.hasLeadingOwnLineComment,WE=pd.isBinaryish,UE=pd.isStringLiteral,zE=pd.isLiteral,HE=pd.isNumericLiteral,GE=pd.isCallExpression,JE=pd.isMemberExpression,XE=pd.getCallArguments,YE=pd.rawText,KE=pd.hasComment,QE=pd.isSignedNumericLiteral,ZE=Ug.shouldInlineLogicalExpression,eb=IE.printCallExpression;function tb(e,t,n,r,o,i){var u=function(e,t,n,r,o){var i=e.getValue(),u=i[o];if(!u)return"only-left";var s=!nb(u);if(e.match(nb,rb,(function(e){return!s||"ExpressionStatement"!==e.type&&"VariableDeclaration"!==e.type})))return s?"ArrowFunctionExpression"===u.type&&"ArrowFunctionExpression"===u.body.type?"chain-tail-arrow-chain":"chain-tail":"chain";if(!s&&nb(u.right)||qE(t.originalText,u))return"break-after-operator";if("CallExpression"===u.type&&"require"===u.callee.name||"json5"===t.parser||"json"===t.parser)return"never-break-after-operator";if(function(e){if(rb(e)){var _t121=e.left||e.id;return"ObjectPattern"===_t121.type&&_t121.properties.length>2&&_t121.properties.some((function(e){return("ObjectProperty"===e.type||"Property"===e.type)&&(!e.shorthand||e.value&&"AssignmentPattern"===e.value.type)}))}return!1}(i))return"break-lhs";var a=function(e,t,n){if("ObjectProperty"!==e.type&&"Property"!==e.type)return!1;var r=3;return"string"==typeof(t=$E(t))&&LE(t)3&&void 0!==arguments[3]&&arguments[3],o=e.getValue(),i=function i(){return ob(e,t,n,!0)};if("TSNonNullExpression"===o.type)return e.call(i,"expression");if(GE(o)){if("member-chain"===eb(e,t,n).label)return!1;var _r86=XE(o);return!!(0===_r86.length||1===_r86.length&&function(e,_ref102){var t=_ref102.printWidth;if(KE(e))return!1;var n=.25*t;if("ThisExpression"===e.type||"Identifier"===e.type&&e.name.length<=n||QE(e)&&!KE(e.argument))return!0;var r="Literal"===e.type&&"regex"in e&&e.regex.pattern||"RegExpLiteral"===e.type&&e.pattern;return r?r.length<=n:UE(e)?YE(e).length<=n:"TemplateLiteral"===e.type?0===e.expressions.length&&e.quasis[0].value.raw.length<=n&&!e.quasis[0].value.raw.includes("\n"):zE(e)}(_r86[0],t))&&e.call(i,"callee")}return JE(o)?e.call(i,"object"):r&&("Identifier"===o.type||"ThisExpression"===o.type)}var ib={printVariableDeclarator:function printVariableDeclarator(e,t,n){return tb(e,t,n,n("id")," =","init")},printAssignmentExpression:function printAssignmentExpression(e,t,n){var r=e.getValue();return tb(e,t,n,n("left"),[" ",r.operator],"right")},printAssignment:tb},ub=rn.getNextNonSpaceNonCommentCharacter,sb=up.printDanglingComments,_Rn$builders19=Rn.builders,ab=_Rn$builders19.line,cb=_Rn$builders19.hardline,lb=_Rn$builders19.softline,pb=_Rn$builders19.group,fb=_Rn$builders19.indent,db=_Rn$builders19.ifBreak,_Rn$utils3=Rn.utils,hb=_Rn$utils3.removeLines,mb=_Rn$utils3.willBreak,gb=pd.getFunctionParameters,yb=pd.iterateFunctionParametersPath,Db=pd.isSimpleType,Eb=pd.isTestCall,bb=pd.isTypeAnnotationAFunction,Cb=pd.isObjectType,vb=pd.isObjectTypePropertyAFunction,Ab=pd.hasRestParameter,Fb=pd.shouldPrintComma,xb=pd.hasComment,Sb=pd.isNextLineEmpty,wb=ea.locEnd,Tb=uo.ArgExpansionBailout,Bb=$y.printFunctionTypeParameters;function kb(e){if(!e)return!1;var t=gb(e);if(1!==t.length)return!1;var n=_slicedToArray(t,1)[0];return!xb(n)&&("ObjectPattern"===n.type||"ArrayPattern"===n.type||"Identifier"===n.type&&n.typeAnnotation&&("TypeAnnotation"===n.typeAnnotation.type||"TSTypeAnnotation"===n.typeAnnotation.type)&&Cb(n.typeAnnotation.typeAnnotation)||"FunctionTypeParam"===n.type&&Cb(n.typeAnnotation)||"AssignmentPattern"===n.type&&("ObjectPattern"===n.left.type||"ArrayPattern"===n.left.type)&&("Identifier"===n.right.type||"ObjectExpression"===n.right.type&&0===n.right.properties.length||"ArrayExpression"===n.right.type&&0===n.right.elements.length))}var Nb={printFunctionParameters:function printFunctionParameters(e,t,n,r,o){var i=e.getValue(),u=gb(i),s=o?Bb(e,n,t):"";if(0===u.length)return[s,"(",sb(e,n,!0,(function(e){return")"===ub(n.originalText,e,wb)})),")"];var a=e.getParentNode(),c=Eb(a),l=kb(i),p=[];if(yb(e,(function(e,r){var o=r===u.length-1;o&&i.rest&&p.push("..."),p.push(t()),o||(p.push(","),c||l?p.push(" "):Sb(u[r],n)?p.push(cb,cb):p.push(ab))})),r){if(mb(s)||mb(p))throw new Tb;return pb([hb(s),"(",hb(p),")"])}var f=u.every((function(e){return!e.decorators}));return l&&f||c?[s,"("].concat(p,[")"]):(vb(a)||bb(a)||"TypeAlias"===a.type||"UnionTypeAnnotation"===a.type||"TSUnionType"===a.type||"IntersectionTypeAnnotation"===a.type||"FunctionTypeAnnotation"===a.type&&a.returnType===i)&&1===u.length&&null===u[0].name&&i.this!==u[0]&&u[0].typeAnnotation&&null===i.typeParameters&&Db(u[0].typeAnnotation)&&!i.rest?"always"===n.arrowParens?["("].concat(p,[")"]):p:[s,"(",fb([lb].concat(p)),db(!Ab(i)&&Fb(n,"all")?",":""),lb,")"]},shouldHugFunctionParameters:kb,shouldGroupFunctionParameters:function shouldGroupFunctionParameters(e,t){var n=function(e){var t;return e.returnType?(t=e.returnType).typeAnnotation&&(t=t.typeAnnotation):e.typeAnnotation&&(t=e.typeAnnotation),t}(e);if(!n)return!1;var r=e.typeParameters&&e.typeParameters.params;if(r){if(r.length>1)return!1;if(1===r.length){var _e147=r[0];if(_e147.constraint||_e147.default)return!1}}return 1===gb(e).length&&(Cb(n)||mb(t))}},Pb=up.printComments,Ob=up.printDanglingComments,Ib=rn.getLast,_Rn$builders20=Rn.builders,jb=_Rn$builders20.group,Lb=_Rn$builders20.join,_b=_Rn$builders20.line,Mb=_Rn$builders20.softline,Rb=_Rn$builders20.indent,Vb=_Rn$builders20.align,$b=_Rn$builders20.ifBreak,qb=ea.locStart,Wb=pd.isSimpleType,Ub=pd.isObjectType,zb=pd.hasLeadingOwnLineComment,Hb=pd.isObjectTypePropertyAFunction,Gb=pd.shouldPrintComma,Jb=ib.printAssignment,Xb=Nb.printFunctionParameters,Yb=Nb.shouldGroupFunctionParameters,Kb=lD.printArrayItems;function Qb(e){if(Wb(e)||Ub(e))return!0;if("UnionTypeAnnotation"===e.type||"TSUnionType"===e.type){var _t123=e.types.filter((function(e){return"VoidTypeAnnotation"===e.type||"TSVoidKeyword"===e.type||"NullLiteralTypeAnnotation"===e.type||"TSNullKeyword"===e.type})).length,_n80=e.types.some((function(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"GenericTypeAnnotation"===e.type||"TSTypeReference"===e.type}));if(e.types.length-1===_t123&&_n80)return!0}return!1}var Zb={printOpaqueType:function printOpaqueType(e,t,n){var r=t.semi?";":"",o=e.getValue(),i=[];return i.push("opaque type ",n("id"),n("typeParameters")),o.supertype&&i.push(": ",n("supertype")),o.impltype&&i.push(" = ",n("impltype")),i.push(r),i},printTypeAlias:function printTypeAlias(e,t,n){var r=t.semi?";":"",o=e.getValue(),i=[];o.declare&&i.push("declare "),i.push("type ",n("id"),n("typeParameters"));var u="TSTypeAliasDeclaration"===o.type?"typeAnnotation":"right";return[Jb(e,t,n,i," =",u),r]},printIntersectionType:function printIntersectionType(e,t,n){for(var r=e.getValue(),o=e.map(n,"types"),i=[],u=!1,_e148=0;_e1481&&(u=!0),i.push(" & ",_e148>1?Rb(o[_e148]):o[_e148])):i.push(Rb([" &",_b,o[_e148]]));return jb(i)},printUnionType:function printUnionType(e,t,n){var r=e.getValue(),o=e.getParentNode(),i=!("TypeParameterInstantiation"===o.type||"TSTypeParameterInstantiation"===o.type||"GenericTypeAnnotation"===o.type||"TSTypeReference"===o.type||"TSTypeAssertion"===o.type||"TupleTypeAnnotation"===o.type||"TSTupleType"===o.type||"FunctionTypeParam"===o.type&&!o.name&&e.getParentNode(1).this!==o||("TypeAlias"===o.type||"VariableDeclarator"===o.type||"TSTypeAliasDeclaration"===o.type)&&zb(t.originalText,r)),u=Qb(r),s=e.map((function(e){var r=n();return u||(r=Vb(2,r)),Pb(e,r,t)}),"types");if(u)return Lb(" | ",s);var a=i&&!zb(t.originalText,r),c=[$b([a?_b:"","| "]),Lb([_b,"| "],s)];return fg(e,t)?jb([Rb(c),Mb]):"TupleTypeAnnotation"===o.type&&o.types.length>1||"TSTupleType"===o.type&&o.elementTypes.length>1?jb([Rb([$b(["(",Mb]),c]),Mb,$b(")")]):jb(i?Rb(c):c)},printFunctionType:function printFunctionType(e,t,n){var r=e.getValue(),o=[],i=e.getParentNode(0),u=e.getParentNode(1),s=e.getParentNode(2),a="TSFunctionType"===r.type||!(("ObjectTypeProperty"===i.type||"ObjectTypeInternalSlot"===i.type)&&!i.variance&&!i.optional&&qb(i)===qb(r)||"ObjectTypeCallProperty"===i.type||s&&"DeclareFunction"===s.type),c=a&&("TypeAnnotation"===i.type||"TSTypeAnnotation"===i.type),l=c&&a&&("TypeAnnotation"===i.type||"TSTypeAnnotation"===i.type)&&"ArrowFunctionExpression"===u.type;Hb(i)&&(a=!0,c=!0),l&&o.push("(");var p=Xb(e,n,t,!1,!0),f=r.returnType||r.predicate||r.typeAnnotation?[a?" => ":": ",n("returnType"),n("predicate"),n("typeAnnotation")]:"",d=Yb(r,f);return o.push(d?jb(p):p),f&&o.push(f),l&&o.push(")"),jb(o)},printTupleType:function printTupleType(e,t,n){var r=e.getValue(),o="TSTupleType"===r.type?"elementTypes":"types",i=r[o].length>0&&"TSRestType"===Ib(r[o]).type;return jb(["[",Rb([Mb,Kb(e,t,o,n)]),$b(Gb(t,"all")&&!i?",":""),Ob(e,t,!0),Mb,"]"])},printIndexedAccessType:function printIndexedAccessType(e,t,n){var r=e.getValue(),o="OptionalIndexedAccessType"===r.type&&r.optional?"?.[":"[";return[n("objectType"),o,n("indexType"),"]"]},shouldHugType:Qb},eC=up.printDanglingComments,_Rn$builders21=Rn.builders,tC=_Rn$builders21.join,nC=_Rn$builders21.line,rC=_Rn$builders21.hardline,oC=_Rn$builders21.softline,iC=_Rn$builders21.group,uC=_Rn$builders21.indent,sC=_Rn$builders21.ifBreak,aC=pd.isTestCall,cC=pd.hasComment,lC=pd.CommentCheckFlags,pC=pd.isTSXFile,fC=pd.shouldPrintComma,dC=pd.getFunctionParameters,hC=rn.createGroupIdMapper,mC=Zb.shouldHugType,gC=hC("typeParameters");function yC(e,t){var n=e.getValue();if(!cC(n,lC.Dangling))return"";var r=!cC(n,lC.Line),o=eC(e,t,r);return r?o:[o,rC]}var DC={printTypeParameter:function printTypeParameter(e,t,n){var r=e.getValue(),o=[],i=e.getParentNode();return"TSMappedType"===i.type?(o.push("[",n("name")),r.constraint&&o.push(" in ",n("constraint")),i.nameType&&o.push(" as ",e.callParent((function(){return n("nameType")}))),o.push("]"),o):(r.variance&&o.push(n("variance")),o.push(n("name")),r.bound&&o.push(": ",n("bound")),r.constraint&&o.push(" extends ",n("constraint")),r.default&&o.push(" = ",n("default")),o)},printTypeParameters:function printTypeParameters(e,t,n,r){var o=e.getValue();if(!o[r])return"";if(!Array.isArray(o[r]))return n(r);var i=e.getNode(2);if(i&&aC(i)||0===o[r].length||1===o[r].length&&(mC(o[r][0])||"NullableTypeAnnotation"===o[r][0].type))return["<",tC(", ",e.map(n,r)),yC(e,t),">"];var u="TSTypeParameterInstantiation"===o.type?"":1===dC(o).length&&pC(t)&&!o[r][0].constraint&&"ArrowFunctionExpression"===e.getParentNode().type?",":fC(t,"all")?sC(","):"";return iC(["<",uC([oC,tC([",",nC],e.map(n,r))]),u,oC,">"],{id:gC(o)})},getTypeParametersGroupId:gC},EC=up.printComments,bC=rn.printString,CC=rn.printNumber,vC=pd.isNumericLiteral,AC=pd.isSimpleNumber,FC=pd.isStringLiteral,xC=pd.isStringPropSafeToUnquote,SC=pd.rawText,wC=ib.printAssignment,TC=new WeakMap;function BC(e,t,n){var r=e.getNode();if(r.computed)return["[",n("key"),"]"];var o=e.getParentNode(),i=r.key;if("ClassPrivateProperty"===r.type&&"Identifier"===i.type)return["#",n("key")];if("consistent"===t.quoteProps&&!TC.has(o)){var _e149=(o.properties||o.body||o.members).some((function(e){return!e.computed&&e.key&&FC(e.key)&&!xC(e,t)}));TC.set(o,_e149)}if(("Identifier"===i.type||vC(i)&&AC(CC(SC(i)))&&String(i.value)===CC(SC(i))&&"typescript"!==t.parser&&"babel-ts"!==t.parser)&&("json"===t.parser||"consistent"===t.quoteProps&&TC.get(o))){var _n81=bC(JSON.stringify("Identifier"===i.type?i.name:i.value.toString()),t);return e.call((function(e){return EC(e,_n81,t)}),"key")}return xC(r,t)&&("as-needed"===t.quoteProps||"consistent"===t.quoteProps&&!TC.get(o))?e.call((function(e){return EC(e,/^\d/.test(i.value)?CC(i.value):i.value,t)}),"key"):n("key")}var kC={printProperty:function printProperty(e,t,n){return e.getValue().shorthand?n("value"):wC(e,t,n,BC(e,t,n),":","value")},printPropertyKey:BC},NC=up.printDanglingComments,PC=up.printCommentsSeparately,OC=rn.getNextNonSpaceNonCommentCharacterIndex,_Rn$builders22=Rn.builders,IC=_Rn$builders22.line,jC=_Rn$builders22.softline,LC=_Rn$builders22.group,_C=_Rn$builders22.indent,MC=_Rn$builders22.ifBreak,RC=_Rn$builders22.hardline,VC=_Rn$builders22.join,$C=_Rn$builders22.indentIfBreak,qC=pd.getFunctionParameters,WC=pd.hasLeadingOwnLineComment,UC=pd.isFlowAnnotationComment,zC=pd.isJsxNode,HC=pd.isTemplateOnItsOwnLine,GC=pd.shouldPrintComma,JC=pd.startsWithNoLookaheadToken,XC=pd.returnArgumentHasLeadingComment,YC=pd.isBinaryish,KC=pd.isLineComment,QC=pd.hasComment,ZC=pd.getComments,ev=pd.CommentCheckFlags,tv=pd.isCallLikeExpression,nv=ea.locEnd,rv=Nb.printFunctionParameters,ov=Nb.shouldGroupFunctionParameters,iv=kC.printPropertyKey,uv=$y.printFunctionTypeParameters;function sv(e,t,n){var r=e.getNode(),o=rv(e,n,t),i=cv(e,n,t),u=ov(r,i),s=[uv(e,t,n),LC([u?LC(o):o,i])];return r.body?s.push(" ",n("body")):s.push(t.semi?";":""),s}function av(e,t){return"always"!==t.arrowParens&&"avoid"===t.arrowParens&&function(e){var t=qC(e);return!(1!==t.length||e.typeParameters||QC(e,ev.Dangling)||"Identifier"!==t[0].type||t[0].typeAnnotation||QC(t[0])||t[0].optional||e.predicate||e.returnType)}(e.getValue())}function cv(e,t,n){var r=e.getValue(),o=t("returnType");if(r.returnType&&UC(n.originalText,r.returnType))return[" /*: ",o," */"];var i=[o];return r.returnType&&r.returnType.typeAnnotation&&i.unshift(": "),r.predicate&&i.push(r.returnType?" ":": ",t("predicate")),i}function lv(e,t,n){var r=e.getValue(),o=t.semi?";":"",i=[];r.argument&&(XC(t,r.argument)?i.push([" (",_C([RC,n("argument")]),RC,")"]):YC(r.argument)||"SequenceExpression"===r.argument.type?i.push(LC([MC(" ("," "),_C([jC,n("argument")]),jC,MC(")")])):i.push(" ",n("argument")));var u=ZC(r),s=ke(u),a=s&&KC(s);return a&&i.push(o),QC(r,ev.Dangling)&&i.push(" ",NC(e,t,!0)),a||i.push(o),i}var pv={printFunctionDeclaration:function printFunctionDeclaration(e,t,n,r){var o=e.getValue(),i=[];"TSDeclareFunction"===o.type&&o.declare&&i.push("declare "),o.async&&i.push("async "),o.generator?i.push("function* "):i.push("function "),o.id&&i.push(t("id"));var u=rv(e,t,n,r),s=cv(e,t,n),a=ov(o,s);return i.push(uv(e,n,t),LC([a?LC(u):u,s]),o.body?" ":"",t("body")),!n.semi||!o.declare&&o.body||i.push(";"),i},printArrowFunctionExpression:function printArrowFunctionExpression(e,t,n,r){var o=e.getValue(),i=[],u=[],s=!1;if(function a(){var c=function(e,t,n,r){var o=[];e.getValue().async&&o.push("async "),av(e,t)?o.push(n(["params",0])):o.push(LC([rv(e,n,t,r&&(r.expandLastArg||r.expandFirstArg),!0),cv(e,n,t)]));var i=NC(e,t,!0,(function(e){var n=OC(t.originalText,e,nv);return!1!==n&&"=>"===t.originalText.slice(n,n+2)}));return i&&o.push(" ",i),o}(e,t,n,r);if(0===i.length)i.push(c);else{var _PC=PC(e,t),_n82=_PC.leading,_r87=_PC.trailing;i.push([_n82,c]),u.unshift(_r87)}s=s||o.returnType&&qC(o).length>0||o.typeParameters||qC(o).some((function(e){return"Identifier"!==e.type})),"ArrowFunctionExpression"!==o.body.type||r&&r.expandLastArg?u.unshift(n("body",r)):(o=o.body,e.call(a,"body"))}(),i.length>1)return function(e,t,n,r,o,i){var u=e.getName(),s=e.getParentNode(),a=tv(s)&&"callee"===u,c=Boolean(t&&t.assignmentLayout),l="BlockStatement"!==i.body.type&&"ObjectExpression"!==i.body.type,p=a&&l||t&&"chain-tail-arrow-chain"===t.assignmentLayout,f=Symbol("arrow-chain");return LC([LC(_C([a||c?jC:"",LC(VC([" =>",IC],n),{shouldBreak:r})]),{id:f,shouldBreak:p})," =>",$C(l?_C([IC,o]):[" ",o],{groupId:f}),a?MC(jC,"",{groupId:f}):""])}(e,r,i,s,u,o);var a=i;if(a.push(" =>"),!WC(t.originalText,o.body)&&("ArrayExpression"===o.body.type||"ObjectExpression"===o.body.type||"BlockStatement"===o.body.type||zC(o.body)||HC(o.body,t.originalText)||"ArrowFunctionExpression"===o.body.type||"DoExpression"===o.body.type))return LC([].concat(a,[" ",u]));if("SequenceExpression"===o.body.type)return LC([].concat(a,[LC([" (",_C([jC,u]),jC,")"])]));var c=(r&&r.expandLastArg||"JSXExpressionContainer"===e.getParentNode().type)&&!QC(o),l=r&&r.expandLastArg&&GC(t,"all"),p="ConditionalExpression"===o.body.type&&!JC(o.body,!1);return LC([].concat(a,[LC([_C([IC,p?MC("","("):"",u,p?MC("",")"):""]),c?[MC(l?",":""),jC]:""])]))},printMethod:function printMethod(e,t,n){var r=e.getNode(),o=r.kind,i=r.value||r,u=[];return o&&"init"!==o&&"method"!==o&&"constructor"!==o?(Il.ok("get"===o||"set"===o),u.push(o," ")):i.async&&u.push("async "),i.generator&&u.push("*"),u.push(iv(e,t,n),r.optional||r.key.optional?"?":""),r===i?u.push(sv(e,t,n)):"FunctionExpression"===i.type?u.push(e.call((function(e){return sv(e,t,n)}),"value")):u.push(n("value")),u},printReturnStatement:function printReturnStatement(e,t,n){return["return",lv(e,t,n)]},printThrowStatement:function printThrowStatement(e,t,n){return["throw",lv(e,t,n)]},printMethodInternal:sv,shouldPrintParamsWithoutParens:av},fv=rn.isNonEmptyArray,dv=rn.hasNewline,_Rn$builders23=Rn.builders,hv=_Rn$builders23.line,mv=_Rn$builders23.hardline,gv=_Rn$builders23.join,yv=_Rn$builders23.breakParent,Dv=_Rn$builders23.group,Ev=ea.locStart,bv=ea.locEnd,Cv=pd.getParentExportDeclaration;function vv(e,t){return e.decorators.some((function(e){return dv(t.originalText,bv(e))}))}function Av(e){if("ExportDefaultDeclaration"!==e.type&&"ExportNamedDeclaration"!==e.type&&"DeclareExportDeclaration"!==e.type)return!1;var t=e.declaration&&e.declaration.decorators;return fv(t)&&Ev(e,{ignoreDecorators:!0})>Ev(t[0])}var Fv={printDecorators:function printDecorators(e,t,n){var r=e.getValue(),o=r.decorators;if(fv(o)&&!Av(e.getParentNode())){var i="ClassExpression"===r.type||"ClassDeclaration"===r.type||vv(r,t);return[Cv(e)?mv:i?yv:"",gv(hv,e.map(n,"decorators")),hv]}},printClassMemberDecorators:function printClassMemberDecorators(e,t,n){var r=e.getValue();return Dv([gv(hv,e.map(n,"decorators")),vv(r,t)?mv:hv])},printDecoratorsBeforeExport:function printDecoratorsBeforeExport(e,t,n){return[gv(mv,e.map(n,"declaration","decorators")),mv]},hasDecoratorsBeforeExport:Av},xv=rn.isNonEmptyArray,Sv=rn.createGroupIdMapper,wv=up.printComments,Tv=up.printDanglingComments,_Rn$builders24=Rn.builders,Bv=_Rn$builders24.join,kv=_Rn$builders24.line,Nv=_Rn$builders24.hardline,Pv=_Rn$builders24.softline,Ov=_Rn$builders24.group,Iv=_Rn$builders24.indent,jv=_Rn$builders24.ifBreak,Lv=pd.hasComment,_v=pd.CommentCheckFlags,Mv=DC.getTypeParametersGroupId,Rv=pv.printMethod,Vv=$y.printOptionalToken,$v=$y.printTypeAnnotation,qv=kC.printPropertyKey,Wv=ib.printAssignment,Uv=Fv.printClassMemberDecorators,zv=Sv("heritageGroup");function Hv(e){return e.typeParameters&&!Lv(e.typeParameters,_v.Trailing|_v.Line)&&!function(e){return["superClass","extends","mixins","implements"].filter((function(t){return Boolean(e[t])})).length>1}(e)}function Gv(e,t,n,r){var o=e.getValue();if(!xv(o[r]))return"";var i=Tv(e,t,!0,(function(_ref103){return _ref103.marker===r}));return[Hv(o)?jv(" ",kv,{groupId:Mv(o.typeParameters)}):kv,i,i&&Nv,r,Ov(Iv([kv,Bv([",",kv],e.map(n,r))]))]}function Jv(e,t,n){var r=n("superClass");return"AssignmentExpression"===e.getParentNode().type?Ov(jv(["(",Iv([Pv,r]),Pv,")"],r)):r}var Xv={printClass:function printClass(e,t,n){var r=e.getValue(),o=[];r.declare&&o.push("declare "),r.abstract&&o.push("abstract "),o.push("class");var _e150,i=r.id&&Lv(r.id,_v.Trailing)||r.superClass&&Lv(r.superClass)||xv(r.extends)||xv(r.mixins)||xv(r.implements),u=[],s=[];if(r.id&&u.push(" ",n("id")),u.push(n("typeParameters")),r.superClass){var _r88=["extends ",Jv(e,t,n),n("superTypeParameters")],_o36=e.call((function(e){return wv(e,_r88,t)}),"superClass");i?s.push(kv,Ov(_o36)):s.push(" ",_o36)}else s.push(Gv(e,t,n,"extends"));return s.push(Gv(e,t,n,"mixins"),Gv(e,t,n,"implements")),i?(_e150=Hv(r)?[].concat(u,[Iv(s)]):Iv([].concat(u,[s])),o.push(Ov(_e150,{id:zv(r)}))):o.push.apply(o,u.concat(s)),o.push(" ",n("body")),o},printClassMethod:function printClassMethod(e,t,n){var r=e.getValue(),o=[];return xv(r.decorators)&&o.push(Uv(e,t,n)),r.accessibility&&o.push(r.accessibility+" "),r.readonly&&o.push("readonly "),r.declare&&o.push("declare "),r.static&&o.push("static "),r.override&&o.push("override "),("TSAbstractMethodDefinition"===r.type||r.abstract)&&o.push("abstract "),o.push(Rv(e,t,n)),o},printClassProperty:function printClassProperty(e,t,n){var r=e.getValue(),o=[],i=t.semi?";":"";return xv(r.decorators)&&o.push(Uv(e,t,n)),r.accessibility&&o.push(r.accessibility+" "),r.declare&&o.push("declare "),r.static&&o.push("static "),r.override&&o.push("override "),("TSAbstractClassProperty"===r.type||r.abstract)&&o.push("abstract "),r.readonly&&o.push("readonly "),r.variance&&o.push(n("variance")),o.push(qv(e,t,n),Vv(e),$v(e,t,n)),[Wv(e,t,n,o," =","value"),i]},printHardlineAfterHeritage:function printHardlineAfterHeritage(e){return jv(Nv,"",{groupId:zv(e)})}},Yv=rn.isNonEmptyArray,_Rn$builders25=Rn.builders,Kv=_Rn$builders25.join,Qv=_Rn$builders25.line,Zv=_Rn$builders25.group,eA=_Rn$builders25.indent,tA=_Rn$builders25.ifBreak,nA=pd.hasComment,rA=pd.identity,oA=pd.CommentCheckFlags,iA=DC.getTypeParametersGroupId,uA=$y.printTypeScriptModifiers,sA={printInterface:function printInterface(e,t,n){var r=e.getValue(),o=[];r.declare&&o.push("declare "),"TSInterfaceDeclaration"===r.type&&o.push(r.abstract?"abstract ":"",uA(e,t,n)),o.push("interface");var i=[],u=[];"InterfaceTypeAnnotation"!==r.type&&i.push(" ",n("id"),n("typeParameters"));var s=r.typeParameters&&!nA(r.typeParameters,oA.Trailing|oA.Line);return Yv(r.extends)&&u.push(s?tA(" ",Qv,{groupId:iA(r.typeParameters)}):Qv,"extends ",(1===r.extends.length?rA:eA)(Kv([",",Qv],e.map(n,"extends")))),r.id&&nA(r.id,oA.Trailing)||Yv(r.extends)?s?o.push(Zv([].concat(i,[eA(u)]))):o.push(Zv(eA([].concat(i,u)))):o.push.apply(o,i.concat(u)),o.push(" ",n("body")),Zv(o)}},aA=rn.isNonEmptyArray,_Rn$builders26=Rn.builders,cA=_Rn$builders26.softline,lA=_Rn$builders26.group,pA=_Rn$builders26.indent,fA=_Rn$builders26.join,dA=_Rn$builders26.line,hA=_Rn$builders26.ifBreak,mA=_Rn$builders26.hardline,gA=up.printDanglingComments,yA=pd.hasComment,DA=pd.CommentCheckFlags,EA=pd.shouldPrintComma,bA=pd.needsHardlineAfterDanglingComment,CA=ea.locStart,vA=ea.hasSameLoc,AA=Fv.hasDecoratorsBeforeExport,FA=Fv.printDecoratorsBeforeExport;function xA(e,t,n){var r=e.getValue();if(!r.source)return"";var o=[];return wA(r,t)||o.push(" from"),o.push(" ",n("source")),o}function SA(e,t,n){var r=e.getValue();if(wA(r,t))return"";var o=[" "];if(aA(r.specifiers)){var _i57=[],_u18=[];e.each((function(){var t=e.getValue().type;if("ExportNamespaceSpecifier"===t||"ExportDefaultSpecifier"===t||"ImportNamespaceSpecifier"===t||"ImportDefaultSpecifier"===t)_i57.push(n());else{if("ExportSpecifier"!==t&&"ImportSpecifier"!==t)throw new Error("Unknown specifier type ".concat(JSON.stringify(t)));_u18.push(n())}}),"specifiers"),o.push(fA(", ",_i57)),_u18.length>0&&(_i57.length>0&&o.push(", "),_u18.length>1||_i57.length>0||r.specifiers.some((function(e){return yA(e)}))?o.push(lA(["{",pA([t.bracketSpacing?dA:cA,fA([",",dA],_u18)]),hA(EA(t)?",":""),t.bracketSpacing?dA:cA,"}"])):o.push(["{",t.bracketSpacing?" ":""].concat(_u18,[t.bracketSpacing?" ":"","}"])))}else o.push("{}");return o}function wA(e,t){var n=e.type,r=e.importKind,o=e.source,i=e.specifiers;return"ImportDeclaration"===n&&!aA(i)&&"type"!==r&&!/{\s*}/.test(t.originalText.slice(CA(e),CA(o)))}function TA(e,t,n){var r=e.getNode();return aA(r.assertions)?[" assert {",t.bracketSpacing?" ":"",fA(", ",e.map(n,"assertions")),t.bracketSpacing?" ":"","}"]:""}var BA={printImportDeclaration:function printImportDeclaration(e,t,n){var r=e.getValue(),o=t.semi?";":"",i=[],u=r.importKind;return i.push("import"),u&&"value"!==u&&i.push(" ",u),i.push(SA(e,t,n),xA(e,t,n),TA(e,t,n),o),i},printExportDeclaration:function printExportDeclaration(e,t,n){var r=e.getValue(),o=[];AA(r)&&o.push(FA(e,t,n));var i=r.type,u=r.exportKind,s=r.declaration;return o.push("export"),(r.default||"ExportDefaultDeclaration"===i)&&o.push(" default"),yA(r,DA.Dangling)&&(o.push(" ",gA(e,t,!0)),bA(r)&&o.push(mA)),s?o.push(" ",n("declaration")):o.push("type"===u?" type":"",SA(e,t,n),xA(e,t,n),TA(e,t,n)),function(e,t){if(!t.semi)return!1;var n=e.type,r=e.declaration,o=e.default||"ExportDefaultDeclaration"===n;if(!r)return!0;var i=r.type;return!(!o||"ClassDeclaration"===i||"FunctionDeclaration"===i||"TSInterfaceDeclaration"===i||"DeclareClass"===i||"DeclareFunction"===i||"TSDeclareFunction"===i||"EnumDeclaration"===i)}(r,t)&&o.push(";"),o},printExportAllDeclaration:function printExportAllDeclaration(e,t,n){var r=e.getValue(),o=t.semi?";":"",i=[],u=r.exportKind,s=r.exported;return i.push("export"),"type"===u&&i.push(" type"),i.push(" *"),s&&i.push(" as ",n("exported")),i.push(xA(e,t,n),TA(e,t,n),o),i},printModuleSpecifier:function printModuleSpecifier(e,t,n){var r=e.getNode(),o=r.type,i=r.importKind,u=[];"ImportSpecifier"===o&&i&&u.push(i," ");var s=o.startsWith("Import"),a=s?"imported":"local",c=s?"local":"exported",l="",p="";return"ExportNamespaceSpecifier"===o||"ImportNamespaceSpecifier"===o?l="*":r[a]&&(l=n(a)),!r[c]||r[a]&&vA(r[a],r[c])||(p=n(c)),u.push(l,l&&p?" as ":"",p),u}},kA=pd.getParentExportDeclaration,NA=Xv.printClass,PA=Zb.printOpaqueType,OA=Zb.printTypeAlias,IA=Zb.printIntersectionType,jA=Zb.printUnionType,LA=Zb.printFunctionType,_A=Zb.printTupleType,MA=Zb.printIndexedAccessType,RA=sA.printInterface,VA=DC.printTypeParameters,$A=BA.printExportDeclaration,qA=BA.printExportAllDeclaration;function WA(e,t){var n=kA(e);return n?(Il.strictEqual(n.type,"DeclareExportDeclaration"),t):["declare ",t]}var UA={printFlow:function printFlow(e,t,n){var r=e.getValue(),o=t.semi?";":"";switch(r.type){case"DeclareClass":return WA(e,NA(e,t,n));case"DeclareFunction":return WA(e,["function ",n("id"),r.predicate?" ":"",n("predicate"),o]);case"DeclareModule":return WA(e,["module ",n("id")," ",n("body")]);case"DeclareModuleExports":return WA(e,["module.exports",": ",n("typeAnnotation"),o]);case"DeclareVariable":return WA(e,["var ",n("id"),o]);case"DeclareOpaqueType":return WA(e,PA(e,t,n));case"DeclareInterface":return WA(e,RA(e,t,n));case"DeclareTypeAlias":return WA(e,OA(e,t,n));case"DeclareExportDeclaration":return WA(e,$A(e,t,n));case"DeclareExportAllDeclaration":return WA(e,qA(e,t,n));case"OpaqueType":return PA(e,t,n);case"TypeAlias":return OA(e,t,n);case"IntersectionTypeAnnotation":return IA(e,t,n);case"UnionTypeAnnotation":return jA(e,t,n);case"FunctionTypeAnnotation":return LA(e,t,n);case"TupleTypeAnnotation":return _A(e,t,n);case"GenericTypeAnnotation":return[n("id"),VA(e,t,n,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return MA(e,t,n);case"TypeAnnotation":return n("typeAnnotation")}}},zA=rn.hasNewlineInRange,HA=pd.isJsxNode,GA=pd.isBlockComment,JA=pd.getComments,XA=pd.isCallExpression,YA=pd.isMemberExpression,KA=ea.locStart,QA=ea.locEnd,_Rn$builders27=Rn.builders,ZA=_Rn$builders27.line,eF=_Rn$builders27.softline,tF=_Rn$builders27.group,nF=_Rn$builders27.indent,rF=_Rn$builders27.align,oF=_Rn$builders27.ifBreak,iF=_Rn$builders27.dedent,uF=_Rn$builders27.breakParent;function sF(e,t,n){var r=e.getValue(),o="ConditionalExpression"===r.type,i=o?"alternate":"falseType",u=e.getParentNode(),s=o?n("test"):[n("checkType")," ","extends"," ",n("extendsType")];return u.type===r.type&&u[i]===r?rF(2,s):s}var aF=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"]]),cF={printTernary:function printTernary(e,t,n){var h,m,r=e.getValue(),o="ConditionalExpression"===r.type,i=o?"consequent":"trueType",u=o?"alternate":"falseType",s=o?["test"]:["checkType","extendsType"],a=r[i],c=r[u],l=[],p=!1,f=e.getParentNode(),d=f.type===r.type&&s.some((function(e){return f[e]===r})),g=f.type===r.type&&!d,y=0;do{m=h||r,h=e.getParentNode(y),y++}while(h&&h.type===r.type&&s.every((function(e){return h[e]!==m})));var D=h||f,E=m;if(o&&(HA(r[s[0]])||HA(a)||HA(c)||function(e){for(var t=[e],_e151=0;_e1511&&m.sort((function(e,t){return e.loc-t.loc}));var g=[],y=m.map((function(e){var n=[].concat(_toConsumableArray(g),[dF(e.printed)]);return g=[f,pF],"TSPropertySignature"!==e.node.type&&"TSMethodSignature"!==e.node.type&&"TSConstructSignatureDeclaration"!==e.node.type||!vF(e.node,FF.PrettierIgnore)||g.shift(),xF(e.node,t)&&g.push(gF),n}));if(o.inexact){var _n84;if(vF(o,FF.Dangling)){var _r90=vF(o,FF.Line);_n84=[lF(e,t,!0),_r90||EF(t.originalText,wF(yF(AF(o))))?gF:pF,"..."]}else _n84=["..."];y.push([].concat(_toConsumableArray(g),_toConsumableArray(_n84)))}var b,D=yF(o[i]),E=!(o.inexact||D&&"RestElement"===D.type||D&&("TSPropertySignature"===D.type||"TSCallSignatureDeclaration"===D.type||"TSMethodSignature"===D.type||"TSConstructSignatureDeclaration"===D.type)&&vF(D,FF.PrettierIgnore));if(0===y.length){if(!vF(o,FF.Dangling))return[d,h,BF(e,t,n)];b=dF([d,lF(e,t),fF,h,TF(e),BF(e,t,n)])}else b=[l&&bF(o.properties)?PF(c):"",d,hF([t.bracketSpacing?pF:fF].concat(_toConsumableArray(y))),mF(E&&(","!==f||CF(t))?f:""),t.bracketSpacing?pF:fF,h,TF(e),BF(e,t,n)];return e.match((function(e){return"ObjectPattern"===e.type&&!e.decorators}),(function(e,t,n){return kF(e)&&("params"===t||"parameters"===t||"this"===t||"rest"===t)&&0===n}))||e.match(NF,(function(e,t){return"typeAnnotation"===t}),(function(e,t){return"typeAnnotation"===t}),(function(e,t,n){return kF(e)&&("params"===t||"parameters"===t||"this"===t||"rest"===t)&&0===n}))||!p&&e.match((function(e){return"ObjectPattern"===e.type}),(function(e){return"AssignmentExpression"===e.type||"VariableDeclarator"===e.type}))?b:dF(b,{shouldBreak:p})}},IF=Rn.builders.hardline,jF=pd.getLeftSidePathName,LF=pd.hasNakedLeftSide,_F=pd.isJsxNode,MF=pd.isTheOnlyJsxElementInMarkdown,RF=pd.hasComment,VF=pd.CommentCheckFlags,$F=pd.isNextLineEmpty,qF=pv.shouldPrintParamsWithoutParens;function WF(e,t,n,r){var o=e.getValue(),i=[],u="ClassBody"===o.type,s=function(e){for(var _t127=e.length-1;_t127>=0;_t127--){var _n85=e[_t127];if("EmptyStatement"!==_n85.type)return _n85}}(o[r]);return e.each((function(e,r,o){var a=e.getValue();if("EmptyStatement"!==a.type){var c=n();t.semi||u||MF(t,e)||!function(e,t){return"ExpressionStatement"===e.getNode().type&&e.call((function(e){return UF(e,t)}),"expression")}(e,t)?i.push(c):RF(a,VF.Leading)?i.push(n([],{needsSemi:!0})):i.push(";",c),!t.semi&&u&&zF(a)&&function(e,t){var n=e.key&&e.key.name;if(!("static"!==n&&"get"!==n&&"set"!==n||e.value||e.typeAnnotation))return!0;if(!t)return!1;if(t.static||t.accessibility)return!1;if(!t.computed){var _e155=t.key&&t.key.name;if("in"===_e155||"instanceof"===_e155)return!0}switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractClassProperty":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":if((t.value?t.value.async:t.async)||"get"===t.kind||"set"===t.kind)return!1;var _e156=t.value?t.value.generator:t.generator;return!(!t.computed&&!_e156);case"TSIndexSignature":return!0}return!1}(a,o[r+1])&&i.push(";"),a!==s&&(i.push(IF),$F(a,t)&&i.push(IF))}}),r),i}function UF(e,t){var n=e.getValue();switch(n.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!qF(e,t))return!0;break;case"UnaryExpression":var _e157=n.prefix,_t128=n.operator;if(_e157&&("+"===_t128||"-"===_t128))return!0;break;case"BindExpression":if(!n.object)return!0;break;case"Literal":if(n.regex)return!0;break;default:if(_F(n))return!0}return!!fg(e,t)||!!LF(n)&&e.call.apply(e,[function(e){return UF(e,t)}].concat(_toConsumableArray(jF(e,n))))}var zF=function zF(_ref104){var e=_ref104.type;return"ClassProperty"===e||"PropertyDefinition"===e||"ClassPrivateProperty"===e},HF={printBody:function printBody(e,t,n){return WF(e,t,n,"body")},printSwitchCaseConsequent:function printSwitchCaseConsequent(e,t,n){return WF(e,t,n,"consequent")}},GF=up.printDanglingComments,JF=rn.isNonEmptyArray,_Rn$builders29=Rn.builders,XF=_Rn$builders29.hardline,YF=_Rn$builders29.indent,KF=pd.hasComment,QF=pd.CommentCheckFlags,ZF=pd.isNextLineEmpty,ex=Xv.printHardlineAfterHeritage,tx=HF.printBody;function nx(e,t,n){var r=e.getValue(),o=JF(r.directives),i=r.body.some((function(e){return"EmptyStatement"!==e.type})),u=KF(r,QF.Dangling);if(!o&&!i&&!u)return"";var s=[];if(o&&e.each((function(e,r,o){s.push(n()),(r"]),_o38=[dx("("),px([cx,n("expression")]),cx,dx(")")];return _e158?fx([[_t132,n("expression")],[_t132,lx(_o38,{shouldBreak:!0})],[_t132,n("expression")]]):lx([_t132,n("expression")]);case"TSDeclareFunction":return Ix(e,n,t);case"TSExportAssignment":return["export = ",n("expression"),o];case"TSModuleBlock":return _x(e,t,n);case"TSInterfaceBody":case"TSTypeLiteral":return Tx(e,t,n);case"TSTypeAliasDeclaration":return Mx(e,t,n);case"TSQualifiedName":return ux(".",[n("left"),n("right")]);case"TSAbstractMethodDefinition":case"TSDeclareMethod":return kx(e,t,n);case"TSAbstractClassProperty":return Bx(e,t,n);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return i.push(n("expression")),r.typeParameters&&i.push(n("typeParameters")),i;case"TSTemplateLiteralType":return Sx(e,n,t);case"TSNamedTupleMember":return[n("label"),r.optional?"?":"",": ",n("elementType")];case"TSRestType":return["...",n("typeAnnotation")];case"TSOptionalType":return[n("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return Lx(e,t,n);case"TSClassImplements":return[n("expression"),n("typeParameters")];case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return Px(e,t,n,"params");case"TSTypeParameter":case"TypeParameter":return Nx(e,t,n);case"TypeofTypeAnnotation":return["typeof ",n("argument")];case"TSAbstractKeyword":return"abstract";case"TSAsyncKeyword":return"async";case"TSDeclareKeyword":return"declare";case"TSExportKeyword":return"export";case"TSNeverKeyword":return"never";case"TSObjectKeyword":return"object";case"TSProtectedKeyword":return"protected";case"TSPrivateKeyword":return"private";case"TSPublicKeyword":return"public";case"TSReadonlyKeyword":return"readonly";case"TSStaticKeyword":return"static";case"TSUndefinedKeyword":return"undefined";case"TSUnknownKeyword":return"unknown";case"TSIntrinsicKeyword":return"intrinsic";case"TSAsExpression":i.push(n("expression")," as ",n("typeAnnotation"));var _t133=e.getParentNode();return yx(_t133)&&_t133.callee===r||Dx(_t133)&&_t133.object===r?lx([px([cx].concat(i)),cx]):i;case"TSArrayType":return[n("elementType"),"[]"];case"TSPropertySignature":return r.export&&i.push("export "),r.accessibility&&i.push(r.accessibility+" "),r.static&&i.push("static "),r.readonly&&i.push("readonly "),i.push(Ox(e,t,n),Cx(e)),r.typeAnnotation&&i.push(": ",n("typeAnnotation")),r.initializer&&i.push(" = ",n("initializer")),i;case"TSParameterProperty":return r.accessibility&&i.push(r.accessibility+" "),r.export&&i.push("export "),r.static&&i.push("static "),r.readonly&&i.push("readonly "),i.push(n("parameter")),i;case"TSTypeQuery":return["typeof ",n("exprName")];case"TSIndexSignature":var _i60=e.getParentNode(),_u19=r.parameters.length>1?dx(gx(t)?",":""):"",_s25=lx([px([cx,ux([", ",cx],e.map(n,"parameters"))]),_u19,cx]);return[r.export?"export ":"",r.accessibility?[r.accessibility," "]:"",r.static?"static ":"",r.readonly?"readonly ":"",r.declare?"declare ":"","[",r.parameters?_s25:"",r.typeAnnotation?"]: ":"]",r.typeAnnotation?n("typeAnnotation"):"","ClassBody"===_i60.type?o:""];case"TSTypePredicate":return[r.asserts?"asserts ":"",n("parameterName"),r.typeAnnotation?[" is ",n("typeAnnotation")]:""];case"TSNonNullExpression":return[n("expression"),"!"];case"TSImportType":return[r.isTypeOf?"typeof ":"","import(",n(r.parameter?"parameter":"argument"),")",r.qualifier?[".",n("qualifier")]:"",Px(e,t,n,"typeParameters")];case"TSLiteralType":return n("literal");case"TSIndexedAccessType":return Wx(e,t,n);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":if("TSConstructorType"===r.type&&r.abstract&&i.push("abstract "),"TSCallSignatureDeclaration"!==r.type&&i.push("new "),i.push(lx(Fx(e,n,t,!1,!0))),r.returnType||r.typeAnnotation){var _e159="TSConstructorType"===r.type;i.push(_e159?" => ":": ",n("returnType"),n("typeAnnotation"))}return i;case"TSTypeOperator":return[r.operator," ",n("typeAnnotation")];case"TSMappedType":var _i61=ix(t.originalText,Ex(r),bx(r));return lx(["{",px([t.bracketSpacing?sx:cx,r.readonly?[mx(r.readonly,"readonly")," "]:"",vx(e,t,n),n("typeParameter"),r.optional?mx(r.optional,"?"):"",r.typeAnnotation?": ":"",n("typeAnnotation"),dx(o)]),ox(e,t,!0),t.bracketSpacing?sx:cx,"}"],{shouldBreak:_i61});case"TSMethodSignature":var _o39=r.kind&&"method"!==r.kind?"".concat(r.kind," "):"";i.push(r.accessibility?[r.accessibility," "]:"",_o39,r.export?"export ":"",r.static?"static ":"",r.readonly?"readonly ":"",r.abstract?"abstract ":"",r.declare?"declare ":"",r.computed?"[":"",n("key"),r.computed?"]":"",Cx(e));var _u20=Fx(e,n,t,!1,!0),_s26=r.returnType?"returnType":"typeAnnotation",_a9=r[_s26],_c13=_a9?n(_s26):"",_l11=xx(r,_c13);return i.push(_l11?lx(_u20):_u20),_a9&&i.push(": ",lx(_c13)),lx(i);case"TSNamespaceExportDeclaration":return i.push("export as namespace ",n("id")),t.semi&&i.push(";"),lx(i);case"TSEnumDeclaration":return r.declare&&i.push("declare "),r.modifiers&&i.push(vx(e,t,n)),r.const&&i.push("const "),i.push("enum ",n("id")," "),0===r.members.length?i.push(lx(["{",ox(e,t),cx,"}"])):i.push(lx(["{",px([ax,wx(e,t,"members",n),gx(t,"es5")?",":""]),ox(e,t,!0),ax,"}"])),i;case"TSEnumMember":return i.push(n("id")),r.initializer&&i.push(" = ",n("initializer")),i;case"TSImportEqualsDeclaration":return r.isExport&&i.push("export "),i.push("import "),r.importKind&&"value"!==r.importKind&&i.push(r.importKind," "),i.push(n("id")," = ",n("moduleReference")),t.semi&&i.push(";"),lx(i);case"TSExternalModuleReference":return["require(",n("expression"),")"];case"TSModuleDeclaration":var _u21=e.getParentNode(),_s27=hx(r.id),_a10="TSModuleDeclaration"===_u21.type,_c14=r.body&&"TSModuleDeclaration"===r.body.type;if(_a10)i.push(".");else{r.declare&&i.push("declare "),i.push(vx(e,t,n));var _o40=t.originalText.slice(Ex(r),Ex(r.id));"Identifier"===r.id.type&&"global"===r.id.name&&!/namespace|module/.test(_o40)||i.push(_s27||/(^|\s)module(\s|$)/.test(_o40)?"module ":"namespace ")}return i.push(n("id")),_c14?i.push(n("body")):r.body?i.push(" ",lx(n("body"))):i.push(o),i;case"TSPrivateIdentifier":return r.escapedText;case"TSConditionalType":return Ax(e,t,n);case"TSInferType":return["infer"," ",n("typeParameter")];case"TSIntersectionType":return Rx(e,t,n);case"TSUnionType":return Vx(e,t,n);case"TSFunctionType":return $x(e,t,n);case"TSTupleType":return qx(e,t,n);case"TSTypeReference":return[n("typeName"),Px(e,t,n,"typeParameters")];case"TSTypeAnnotation":return n("typeAnnotation");case"TSEmptyBodyFunctionExpression":return jx(e,t,n);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return["?",n("typeAnnotation")];case"TSJSDocNonNullableType":return["!",n("typeAnnotation")];case"TSJSDocFunctionType":return["function(","): ",n("typeAnnotation")]}}},zx=rn.hasNewline,_Rn$builders31=Rn.builders,Hx=_Rn$builders31.join,Gx=_Rn$builders31.hardline,Jx=Rn.utils.replaceNewlinesWithLiterallines,Xx=pd.isLineComment,Yx=pd.isBlockComment,Kx=ea.locStart,Qx=ea.locEnd,Zx={printComment:function printComment(e,t){var n=e.getValue();if(Xx(n))return t.originalText.slice(Kx(n),Qx(n)).trimEnd();if(Yx(n)){if(function(e){var t="*".concat(e.value,"*").split("\n");return t.length>1&&t.every((function(e){return"*"===e.trim()[0]}))}(n)){var _e161=function(e){var t=e.value.split("\n");return["/*",Hx(Gx,t.map((function(e,n){return 0===n?e.trimEnd():" "+(n1&&(_o42=!0)}return sw(e,n,t,_o42);case"ArrowFunctionExpression":return aw(e,t,n,r);case"YieldExpression":return u.push("yield"),o.delegate&&u.push("*"),o.argument&&u.push(" ",n("argument")),u;case"AwaitExpression":if(u.push("await"),o.argument){u.push(" ",n("argument"));var _t136=e.getParentNode();if(NS(_t136)&&_t136.callee===o||PS(_t136)&&_t136.object===o){u=[mS([fS].concat(_toConsumableArray(u))),fS];var _t137=e.findAncestor((function(e){return"AwaitExpression"===e.type||"BlockStatement"===e.type}));if(!_t137||"AwaitExpression"!==_t137.type)return hS(u)}}return u;case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return GS(e,t,n);case"ExportAllDeclaration":return JS(e,t,n);case"ImportDeclaration":return HS(e,t,n);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return XS(e,t,n);case"ImportAttribute":return[n("key"),": ",n("value")];case"Import":return"import";case"BlockStatement":case"StaticBlock":case"ClassBody":return Ew(e,t,n);case"ThrowStatement":return pw(e,t,n);case"ReturnStatement":return lw(e,t,n);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return fw(e,t,n);case"ObjectTypeInternalSlot":return[o.static?"static ":"","[[",n("id"),"]]",qS(e),o.method?"":": ",n("value")];case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":case"RecordExpression":return ew(e,t,n);case"ObjectProperty":case"Property":return o.method||"get"===o.kind||"set"===o.kind?cw(e,t,n):uw(e,t,n);case"ObjectMethod":return cw(e,t,n);case"Decorator":return["@",n("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return QS(e,t,n);case"SequenceExpression":var _t138=e.getParentNode(0);if("ExpressionStatement"===_t138.type||"ForStatement"===_t138.type){var _t139=[];return e.each((function(e,r){0===r?_t139.push(n()):_t139.push(",",mS([lS,n()]))}),"expressions"),hS(_t139)}return hS(cS([",",lS],e.map(n,"expressions")));case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[n("value"),i];case"DirectiveLiteral":return Fw(o,t);case"UnaryExpression":return u.push(o.operator),/[a-z]$/.test(o.operator)&&u.push(" "),ES(o.argument)?u.push(hS(["(",mS([fS,n("argument")]),fS,")"])):u.push(n("argument")),u;case"UpdateExpression":return u.push(n("argument"),o.operator),o.prefix&&u.reverse(),u;case"ConditionalExpression":return YS(e,t,n);case"VariableDeclaration":var _c15,_t140=e.map(n,"declarations"),_r93=e.getParentNode(),_s28="ForStatement"===_r93.type||"ForInStatement"===_r93.type||"ForOfStatement"===_r93.type,_a11=o.declarations.some((function(e){return e.init}));return 1!==_t140.length||ES(o.declarations[0])?_t140.length>0&&(_c15=mS(_t140[0])):_c15=_t140[0],u=[o.declare?"declare ":"",o.kind,_c15?[" ",_c15]:"",mS(_t140.slice(1).map((function(e){return[",",_a11&&!_s28?pS:lS,e]})))],_s28&&_r93.body!==o||u.push(i),hS(u);case"WithStatement":return hS(["with (",n("object"),")",zS(o.body,n("body"))]);case"IfStatement":var _r94=zS(o.consequent,n("consequent")),_i63=hS(["if (",hS([mS([fS,n("test")]),fS]),")",_r94]);if(u.push(_i63),o.alternate){var _r95=ES(o.consequent,bS.Trailing|bS.Line)||wS(o),_i64="BlockStatement"===o.consequent.type&&!_r95;u.push(_i64?" ":pS),ES(o,bS.Dangling)&&u.push(iS(e,t,!0),_r95?pS:" "),u.push("else",hS(zS(o.alternate,n("alternate"),"IfStatement"===o.alternate.type)))}return u;case"ForStatement":var _r96=zS(o.body,n("body")),_i65=iS(e,t,!0),_u22=_i65?[_i65,fS]:"";return o.init||o.test||o.update?[_u22,hS(["for (",hS([mS([fS,n("init"),";",lS,n("test"),";",lS,n("update")]),fS]),")",_r96])]:[_u22,hS(["for (;;)",_r96])];case"WhileStatement":return hS(["while (",hS([mS([fS,n("test")]),fS]),")",zS(o.body,n("body"))]);case"ForInStatement":return hS(["for (",n("left")," in ",n("right"),")",zS(o.body,n("body"))]);case"ForOfStatement":return hS(["for",o.await?" await":""," (",n("left")," of ",n("right"),")",zS(o.body,n("body"))]);case"DoWhileStatement":var _e163=zS(o.body,n("body"));return u=[hS(["do",_e163])],"BlockStatement"===o.body.type?u.push(" "):u.push(pS),u.push("while (",hS([mS([fS,n("test")]),fS]),")",i),u;case"DoExpression":return[o.async?"async ":"","do ",n("body")];case"BreakStatement":return u.push("break"),o.label&&u.push(" ",n("label")),u.push(i),u;case"ContinueStatement":return u.push("continue"),o.label&&u.push(" ",n("label")),u.push(i),u;case"LabeledStatement":return"EmptyStatement"===o.body.type?[n("label"),":;"]:[n("label"),": ",n("body")];case"TryStatement":return["try ",n("block"),o.handler?[" ",n("handler")]:"",o.finalizer?[" finally ",n("finalizer")]:""];case"CatchClause":if(o.param){var _e164=ES(o.param,(function(e){return!FS(e)||e.leading&&uS(t.originalText,IS(e))||e.trailing&&uS(t.originalText,OS(e),{backwards:!0})})),_r97=n("param");return["catch ",_e164?["(",mS([fS,_r97]),fS,") "]:["(",_r97,") "],n("body")]}return["catch ",n("body")];case"SwitchStatement":return[hS(["switch (",mS([fS,n("discriminant")]),fS,")"])," {",o.cases.length>0?mS([pS,cS(pS,e.map((function(e,r,o){var i=e.getValue();return[n(),r!==o.length-1&&SS(i,t)?pS:""]}),"cases"))]):"",pS,"}"];case"SwitchCase":o.test?u.push("case ",n("test"),":"):u.push("default:");var _r98=o.consequent.filter((function(e){return"EmptyStatement"!==e.type}));if(_r98.length>0){var _o43=yw(e,t,n);u.push(1===_r98.length&&"BlockStatement"===_r98[0].type?[" ",_o43]:mS([pS,_o43]))}return u;case"DebuggerStatement":return["debugger",i];case"ClassDeclaration":case"ClassExpression":return tw(e,t,n);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return nw(e,t,n);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":return rw(e,t,n);case"TemplateElement":return cS(dS,o.value.raw.split(/\r?\n/g));case"TemplateLiteral":return KS(e,n,t);case"TaggedTemplateExpression":return[n("tag"),n("typeParameters"),n("quasi")];case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"MemberTypeAnnotation":case"Type":throw new Error("unprintable type: "+JSON.stringify(o.type));case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return[n("elementType"),"[]"];case"BooleanLiteralTypeAnnotation":return String(o.value);case"EnumDeclaration":return["enum ",n("id")," ",n("body")];case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":if("EnumSymbolBody"===o.type||o.explicitType){var _e165=null;switch(o.type){case"EnumBooleanBody":_e165="boolean";break;case"EnumNumberBody":_e165="number";break;case"EnumStringBody":_e165="string";break;case"EnumSymbolBody":_e165="symbol"}u.push("of ",_e165," ")}if(0!==o.members.length||o.hasUnknownMembers){var _r99=o.members.length>0?[pS,ZS(e,t,"members",n),o.hasUnknownMembers||BS(t)?",":""]:[];u.push(hS(["{",mS([].concat(_r99,_toConsumableArray(o.hasUnknownMembers?[pS,"..."]:[]))),iS(e,t,!0),pS,"}"]))}else u.push(hS(["{",iS(e,t),fS,"}"]));return u;case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return[n("id")," = ","object"==_typeof(o.init)?n("init"):String(o.init)];case"EnumDefaultedMember":return n("id");case"FunctionTypeParam":var _t141=o.name?n("name"):e.getParentNode().this===o?"this":"";return[_t141,qS(e),_t141?": ":"",n("typeAnnotation")];case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return dw(e,t,n);case"ClassImplements":case"InterfaceExtends":return[n("id"),n("typeParameters")];case"NullableTypeAnnotation":return["?",n("typeAnnotation")];case"Variance":var _e166=o.kind;return Il.ok("plus"===_e166||"minus"===_e166),"plus"===_e166?"+":"-";case"ObjectTypeCallProperty":return o.static&&u.push("static "),u.push(n("value")),u;case"ObjectTypeIndexer":return[o.variance?n("variance"):"","[",n("id"),o.id?": ":"",n("key"),"]: ",n("value")];case"ObjectTypeProperty":var _r100="";return o.proto?_r100="proto ":o.static&&(_r100="static "),[_r100,vS(o)?o.kind+" ":"",o.variance?n("variance"):"",iw(e,t,n),qS(e),CS(o)?"":": ",n("value")];case"QualifiedTypeIdentifier":return[n("qualification"),".",n("id")];case"StringLiteralTypeAnnotation":return sS(TS(o),t);case"NumberLiteralTypeAnnotation":Il.strictEqual(_typeof(o.value),"number");case"BigIntLiteralTypeAnnotation":return o.extra?aS(o.extra.raw):aS(o.raw);case"TypeCastExpression":return["(",n("expression"),US(e,t,n),")"];case"TypeParameterDeclaration":case"TypeParameterInstantiation":var _r101=ow(e,t,n,"params");if("flow"===t.parser){var _e167=OS(o),_n87=IS(o),_i66=t.originalText.lastIndexOf("/*",_e167),_u23=t.originalText.indexOf("*/",_n87);if(-1!==_i66&&-1!==_u23){var _e168=t.originalText.slice(_i66+2,_u23).trim();if(_e168.startsWith("::")&&!_e168.includes("/*")&&!_e168.includes("*/"))return["/*:: ",_r101," */"]}}return _r101;case"InferredPredicate":return"%checks";case"DeclaredPredicate":return["%checks(",n("value"),")"];case"AnyTypeAnnotation":case"TSAnyKeyword":return"any";case"BooleanTypeAnnotation":case"TSBooleanKeyword":return"boolean";case"BigIntTypeAnnotation":case"TSBigIntKeyword":return"bigint";case"TSConstKeyword":return"const";case"NullLiteralTypeAnnotation":case"TSNullKeyword":return"null";case"NumberTypeAnnotation":case"TSNumberKeyword":return"number";case"SymbolTypeAnnotation":case"TSSymbolKeyword":return"symbol";case"StringTypeAnnotation":case"TSStringKeyword":return"string";case"VoidTypeAnnotation":case"TSVoidKeyword":return"void";case"ThisTypeAnnotation":case"TSThisType":return"this";case"PrivateIdentifier":return["#",n("name")];case"PrivateName":return["#",n("id")];case"InterpreterDirective":return u.push("#!",o.value,pS),SS(o,t)&&u.push(pS),u;case"PipelineBareFunction":return n("callee");case"PipelineTopicExpression":return n("expression");case"PipelinePrimaryTopicReference":return"#";case"ArgumentPlaceholder":return"?";case"ModuleExpression":u.push("module {");var _e169=n("body");return _e169&&u.push(mS([pS,_e169]),pS),u.push("}"),u;default:throw new Error("unknown type: "+JSON.stringify(o.type))}}(e,t,n,r);if(!o)return"";var i=e.getValue(),u=i.type;if("ClassMethod"===u||"ClassPrivateMethod"===u||"ClassProperty"===u||"PropertyDefinition"===u||"TSAbstractClassProperty"===u||"ClassPrivateProperty"===u||"MethodDefinition"===u||"TSAbstractMethodDefinition"===u||"TSDeclareMethod"===u)return o;var s=Aw(e,t,n);if(s)return hS([].concat(_toConsumableArray(s),[o]));if(!fg(e,t))return r&&r.needsSemi?[";",o]:o;var a=[r&&r.needsSemi?";(":"(",o];if(DS(i)){var _e170=_slicedToArray(i.trailingComments,1)[0];a.push(" /*",_e170.value.trimStart(),"*/"),_e170.printed=!0}return a.push(")"),a},embed:mh,insertPragma:gS,massageAstNode:bh,hasPrettierIgnore:function hasPrettierIgnore(e){return kS(e)||RS(e)},willPrintOwnComments:Km.willPrintOwnComments,canAttachComment:function canAttachComment(e){return e.type&&!FS(e)&&!xS(e)&&"EmptyStatement"!==e.type&&"TemplateElement"!==e.type&&"Import"!==e.type&&"TSEmptyBodyFunctionExpression"!==e.type},printComment:Cw,isBlockComment:FS,handleComments:{avoidAstMutation:!0,ownLine:Km.handleOwnLineComment,endOfLine:Km.handleEndOfLineComment,remaining:Km.handleRemainingComment},getCommentChildNodes:Km.getCommentChildNodes},_Rn$builders33=Rn.builders,Sw=_Rn$builders33.hardline,ww=_Rn$builders33.indent,Tw=_Rn$builders33.join,Bw=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function kw(e,t){var n=e.type;if("ObjectProperty"!==n||"Identifier"!==e.key.type){if("UnaryExpression"===n&&"+"===e.operator)return t.argument;if("ArrayExpression"!==n)return"TemplateLiteral"===n?{type:"StringLiteral",value:e.quasis[0].value.cooked}:void 0;var _step66,_iterator66=_createForOfIteratorHelper(e.elements.entries());try{for(_iterator66.s();!(_step66=_iterator66.n()).done;){var _step66$value=_slicedToArray(_step66.value,2),_n88=_step66$value[0];null===_step66$value[1]&&t.elements.splice(_n88,0,{type:"NullLiteral"})}}catch(err){_iterator66.e(err)}finally{_iterator66.f()}}else t.key={type:"StringLiteral",value:e.key.name}}kw.ignoredProperties=Bw;var Nw={preprocess:dg,print:function print(e,t,n){var r=e.getValue();switch(r.type){case"JsonRoot":return[n("node"),Sw];case"ArrayExpression":if(0===r.elements.length)return"[]";var _t142=e.map((function(){return null===e.getValue()?"null":n()}),"elements");return["[",ww([Sw,Tw([",",Sw],_t142)]),Sw,"]"];case"ObjectExpression":return 0===r.properties.length?"{}":["{",ww([Sw,Tw([",",Sw],e.map(n,"properties"))]),Sw,"}"];case"ObjectProperty":return[n("key"),": ",n("value")];case"UnaryExpression":return["+"===r.operator?"":r.operator,n("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return r.value?"true":"false";case"StringLiteral":case"NumericLiteral":return JSON.stringify(r.value);case"Identifier":var _t143=e.getParentNode();return _t143&&"ObjectProperty"===_t143.type&&_t143.key===r?JSON.stringify(r.name):r.name;case"TemplateLiteral":return n(["quasis",0]);case"TemplateElement":return JSON.stringify(r.value.cooked);default:throw new Error("unknown type: "+JSON.stringify(r.type))}},massageAstNode:kw},Pw="Common",Ow={bracketSpacing:{since:"0.0.0",category:Pw,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:Pw,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:Pw,type:"choice",default:[{since:"1.8.2",value:!0},{since:"1.9.0",value:"preserve"}],description:"How to wrap prose.",choices:[{since:"1.9.0",value:"always",description:"Wrap prose if it exceeds the print width."},{since:"1.9.0",value:"never",description:"Do not wrap prose."},{since:"1.9.0",value:"preserve",description:"Wrap prose as-is."}]}},Iw="JavaScript",jw={arrowParens:{since:"1.9.0",category:Iw,type:"choice",default:[{since:"1.9.0",value:"avoid"},{since:"2.0.0",value:"always"}],description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSpacing:Ow.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:Iw,type:"boolean",default:!1,description:"Put > on the last line instead of at a new line."},semi:{since:"1.0.0",category:Iw,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:Ow.singleQuote,jsxSingleQuote:{since:"1.15.0",category:Iw,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:Iw,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{since:"0.0.0",category:Iw,type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"},{since:"2.0.0",value:"es5"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."},{value:"all",description:"Trailing commas wherever possible (including function arguments)."}]}},Lw={name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".jsb",".jscad",".jsfl",".jsm",".jss",".jsx",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],languageId:183},_w={name:"TypeScript",type:"programming",color:"#2b7489",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378},Mw={name:"TSX",type:"programming",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924},Rw={name:"JSON",type:"data",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",extensions:[".json",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".arcconfig",".htmlhintrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","mcmod.info"],languageId:174},Vw={name:"JSON with Comments",type:"data",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[".babelrc",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","devcontainer.json","jsconfig.json","language-configuration.json","tsconfig.json","tslint.json"],languageId:423},$w={name:"JSON5",type:"data",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175},qw={languages:[df(Lw,(function(e){return{since:"0.0.0",parsers:["babel","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],extensions:[].concat(_toConsumableArray(e.extensions.filter((function(e){return".jsx"!==e}))),[".wxs"])}})),df(Lw,(function(){return{name:"Flow",since:"0.0.0",parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]}})),df(Lw,(function(){return{name:"JSX",since:"0.0.0",parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],aliases:void 0,filenames:void 0,extensions:[".jsx"],group:"JavaScript",interpreters:void 0,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0}})),df(_w,(function(){return{since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]}})),df(Mw,(function(){return{since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}})),df(Rw,(function(){return{name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[],filenames:["package.json","package-lock.json","composer.json"]}})),df(Rw,(function(e){return{since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],extensions:e.extensions.filter((function(e){return".jsonl"!==e}))}})),df(Vw,(function(e){return{since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:[].concat(_toConsumableArray(e.filenames),[".eslintrc"])}})),df($w,(function(){return{since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]}}))],options:jw,printers:{estree:xw,"estree-json":Nw},parsers:{get babel(){return{}.parsers.babel},get"babel-flow"(){return{}.parsers["babel-flow"]},get"babel-ts"(){return{}.parsers["babel-ts"]},get json(){return{}.parsers.json},get json5(){return{}.parsers.json5},get"json-stringify"(){return{}.parsers["json-stringify"]},get __js_expression(){return{}.parsers.__js_expression},get __vue_expression(){return{}.parsers.__vue_expression},get __vue_event_binding(){return{}.parsers.__vue_event_binding},get flow(){return{}.parsers.flow},get typescript(){return{}.parsers.typescript},get __ng_action(){return{}.parsers.__ng_action},get __ng_binding(){return{}.parsers.__ng_binding},get __ng_interpolation(){return{}.parsers.__ng_interpolation},get __ng_directive(){return{}.parsers.__ng_directive},get espree(){return{}.parsers.espree},get meriyah(){return{}.parsers.meriyah}}},Ww=rn.isFrontMatterNode,Uw=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma"]);function zw(e,t,n){if(Ww(e)&&"yaml"===e.lang&&delete t.value,"css-comment"===e.type&&"css-root"===n.type&&n.nodes.length>0){if((n.nodes[0]===e||Ww(n.nodes[0])&&n.nodes[1]===e)&&(delete t.text,/^\*\s*@(format|prettier)\s*$/.test(e.text)))return null;if("css-root"===n.type&&ke(n.nodes)===e)return null}if("value-root"===e.type&&delete t.text,"media-query"!==e.type&&"media-query-list"!==e.type&&"media-feature-expression"!==e.type||delete t.value,"css-rule"===e.type&&delete t.params,"selector-combinator"===e.type&&(t.value=t.value.replace(/\s+/g," ")),"media-feature"===e.type&&(t.value=t.value.replace(/ /g,"")),("value-word"===e.type&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(t.value.replace().toLowerCase()))||"media-feature"===e.type||"selector-root-invalid"===e.type||"selector-pseudo"===e.type)&&(t.value=t.value.toLowerCase()),"css-decl"===e.type&&(t.prop=t.prop.toLowerCase()),"css-atrule"!==e.type&&"css-import"!==e.type||(t.name=t.name.toLowerCase()),"value-number"===e.type&&(t.unit=t.unit.toLowerCase()),"media-feature"!==e.type&&"media-keyword"!==e.type&&"media-type"!==e.type&&"media-unknown"!==e.type&&"media-url"!==e.type&&"media-value"!==e.type&&"selector-attribute"!==e.type&&"selector-string"!==e.type&&"selector-class"!==e.type&&"selector-combinator"!==e.type&&"value-string"!==e.type||!t.value||(t.value=t.value.replace(/'/g,'"').replace(/\\([^\dA-Fa-f])/g,"$1")),"selector-attribute"===e.type&&(t.attribute=t.attribute.trim(),t.namespace&&"string"==typeof t.namespace&&(t.namespace=t.namespace.trim(),0===t.namespace.length&&(t.namespace=!0)),t.value&&(t.value=t.value.trim().replace(/^["']|["']$/g,""),delete t.quoted)),"media-value"!==e.type&&"media-type"!==e.type&&"value-number"!==e.type&&"selector-root-invalid"!==e.type&&"selector-class"!==e.type&&"selector-combinator"!==e.type&&"selector-tag"!==e.type||!t.value||(t.value=t.value.replace(/([\d+.Ee-]+)([A-Za-z]*)/g,(function(e,t,n){var r=Number(t);return Number.isNaN(r)?e:r+n.toLowerCase()}))),"selector-tag"===e.type){var _n89=e.value.toLowerCase();["from","to"].includes(_n89)&&(t.value=_n89)}"css-atrule"===e.type&&"supports"===e.name.toLowerCase()&&delete t.value,"selector-unknown"===e.type&&delete t.value}zw.ignoredProperties=Uw;var Hw=zw,_Rn$builders34=Rn.builders,Gw=_Rn$builders34.hardline,Jw=_Rn$builders34.markAsRoot,Xw=function Xw(e,t){if("yaml"===e.lang){var _n90=e.value.trim(),_r103=_n90?t(_n90,{parser:"yaml"},{stripTrailingHardline:!0}):"";return Jw([e.startDelimiter,Gw,_r103,_r103?Gw:"",e.endDelimiter])}},Yw=Rn.builders.hardline,Kw=function Kw(e,t,n){var r=e.getValue();if("front-matter"===r.type){var _e171=Xw(r,n);return _e171?[_e171,Yw]:""}},Qw=new RegExp("^(?-{3}|\\+{3})(?[^\\n]*)\\n(?:|(?[\\S\\s]*?)\\n)(?\\k|\\.{3})[^\\S\\n]*(?:\\n|$)"),Zw=function Zw(e){var t=e.match(Qw);if(!t)return{content:e};var _t$groups2=t.groups,n=_t$groups2.startDelimiter,r=_t$groups2.language,_t$groups2$value=_t$groups2.value,o=void 0===_t$groups2$value?"":_t$groups2$value,i=_t$groups2.endDelimiter,u=r.trim()||"yaml";if("+++"===n&&(u="toml"),"yaml"!==u&&n!==i)return{content:e};var s=_slicedToArray(t,1)[0];return{frontMatter:{type:"front-matter",lang:u,value:o,startDelimiter:n,endDelimiter:i,raw:s.replace(/\n$/,"")},content:s.replace(/[^\n]/g," ")+e.slice(s.length)}},eT={hasPragma:function hasPragma(e){return Xh.hasPragma(Zw(e).content)},insertPragma:function insertPragma(e){var _Zw=Zw(e),t=_Zw.frontMatter,n=_Zw.content;return(t?t.raw+"\n\n":"")+Xh.insertPragma(n)}},tT=rn.isNonEmptyArray,nT=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function rT(e,t){for(var r,n=Array.isArray(t)?t:[t],o=-1;r=e.getParentNode(++o);)if(n.includes(r.type))return o;return-1}function oT(e,t){var n=rT(e,t);return-1===n?null:e.getParentNode(n)}function iT(e){return"value-operator"===e.type&&"*"===e.value}function uT(e){return"value-operator"===e.type&&"/"===e.value}function sT(e){return"value-operator"===e.type&&"+"===e.value}function aT(e){return"value-operator"===e.type&&"-"===e.value}function cT(e){return"value-operator"===e.type&&"%"===e.value}function lT(e){return"value-comma_group"===e.type&&e.groups&&e.groups[1]&&"value-colon"===e.groups[1].type}function pT(e){return"value-paren_group"===e.type&&e.groups&&e.groups[0]&&lT(e.groups[0])}function fT(e){return e&&"value-colon"===e.type}var dT={getAncestorCounter:rT,getAncestorNode:oT,getPropOfDeclNode:function getPropOfDeclNode(e){var t=oT(e,"css-decl");return t&&t.prop&&t.prop.toLowerCase()},hasSCSSInterpolation:function hasSCSSInterpolation(e){if(tT(e))for(var _t145=e.length-1;_t145>0;_t145--)if("word"===e[_t145].type&&"{"===e[_t145].value&&"word"===e[_t145-1].type&&e[_t145-1].value.endsWith("#"))return!0;return!1},hasStringOrFunction:function hasStringOrFunction(e){if(tT(e))for(var _t146=0;_t146","<=",">="].includes(e.value)},isEqualityOperatorNode:function isEqualityOperatorNode(e){return"value-word"===e.type&&["==","!="].includes(e.value)},isMultiplicationNode:iT,isDivisionNode:uT,isAdditionNode:sT,isSubtractionNode:aT,isModuloNode:cT,isMathOperatorNode:function isMathOperatorNode(e){return iT(e)||uT(e)||sT(e)||aT(e)||cT(e)},isEachKeywordNode:function isEachKeywordNode(e){return"value-word"===e.type&&"in"===e.value},isForKeywordNode:function isForKeywordNode(e){return"value-word"===e.type&&["from","through","end"].includes(e.value)},isURLFunctionNode:function isURLFunctionNode(e){return"value-func"===e.type&&"url"===e.value.toLowerCase()},isIfElseKeywordNode:function isIfElseKeywordNode(e){return"value-word"===e.type&&["and","or","not"].includes(e.value)},hasComposesNode:function hasComposesNode(e){return e.value&&"value-root"===e.value.type&&e.value.group&&"value-value"===e.value.group.type&&"composes"===e.prop.toLowerCase()},hasParensAroundNode:function hasParensAroundNode(e){return e.value&&e.value.group&&e.value.group.group&&"value-paren_group"===e.value.group.group.type&&null!==e.value.group.group.open&&null!==e.value.group.group.close},hasEmptyRawBefore:function hasEmptyRawBefore(e){return e.raws&&""===e.raws.before},isSCSSNestedPropertyNode:function isSCSSNestedPropertyNode(e){return!!e.selector&&e.selector.replace(/\/\*.*?\*\//,"").replace(/\/\/.*?\n/,"").trim().endsWith(":")},isDetachedRulesetCallNode:function isDetachedRulesetCallNode(e){return e.raws&&e.raws.params&&/^\(\s*\)$/.test(e.raws.params)},isTemplatePlaceholderNode:function isTemplatePlaceholderNode(e){return e.name.startsWith("prettier-placeholder")},isTemplatePropNode:function isTemplatePropNode(e){return e.prop.startsWith("@prettier-placeholder")},isPostcssSimpleVarNode:function isPostcssSimpleVarNode(e,t){return"$$"===e.value&&"value-func"===e.type&&t&&"value-word"===t.type&&!t.raws.before},isKeyValuePairNode:lT,isKeyValuePairInParenGroupNode:pT,isKeyInValuePairNode:function isKeyInValuePairNode(e,t){if(!lT(t))return!1;var n=t.groups,r=n.indexOf(e);return-1!==r&&fT(n[r+1])},isSCSSMapItemNode:function isSCSSMapItemNode(e){var t=e.getValue();if(0===t.groups.length)return!1;var n=e.getParentNode(1);if(!(pT(t)||n&&pT(n)))return!1;var r=oT(e,"css-decl");return!!(r&&r.prop&&r.prop.startsWith("$"))||!!pT(n)||"value-func"===n.type},isInlineValueCommentNode:function isInlineValueCommentNode(e){return"value-comment"===e.type&&e.inline},isHashNode:function isHashNode(e){return"value-word"===e.type&&"#"===e.value},isLeftCurlyBraceNode:function isLeftCurlyBraceNode(e){return"value-word"===e.type&&"{"===e.value},isRightCurlyBraceNode:function isRightCurlyBraceNode(e){return"value-word"===e.type&&"}"===e.value},isWordNode:function isWordNode(e){return["value-word","value-atword"].includes(e.type)},isColonNode:fT,isMediaAndSupportsKeywords:function isMediaAndSupportsKeywords(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())},isColorAdjusterFuncNode:function isColorAdjusterFuncNode(e){return"value-func"===e.type&&nT.has(e.value.toLowerCase())},lastLineHasInlineComment:function lastLineHasInlineComment(e){return/\/\//.test(e.split(/[\n\r]/).pop())},stringifyNode:function e(t){if(t.groups)return(t.open&&t.open.value?t.open.value:"")+t.groups.reduce((function(n,r,o){return n+e(r)+("comma_group"===t.groups[0].type&&o!==t.groups.length-1?",":"")}),"")+(t.close&&t.close.value?t.close.value:"");var n=t.raws&&t.raws.before?t.raws.before:"",r=t.raws&&t.raws.quote?t.raws.quote:"";return n+r+("atword"===t.type?"@":"")+(t.value?t.value:"")+r+(t.unit?t.unit:"")+(t.group?e(t.group):"")+(t.raws&&t.raws.after?t.raws.after:"")},isAtWordPlaceholderNode:function isAtWordPlaceholderNode(e){return e&&"value-atword"===e.type&&e.value.startsWith("prettier-placeholder-")}},hT=function hT(e,t){for(var n=0,_r104=0;_r1040?kT:""];case"css-comment":var _e172=r.inline||r.raws.inline,_n93=t.originalText.slice(PB(r),OB(r));return _e172?_n93.trimEnd():_n93;case"css-rule":return[n("selector"),r.important?" !important":"",r.nodes?[r.selector&&"selector-unknown"===r.selector.type&&kB(r.selector.value)?BT:" ","{",r.nodes.length>0?IT([kT,jB(e,t,n)]):"",kT,"}",eB(r)?";":""]:";"];case"css-decl":var _o47=e.getParentNode(),_u25=r.raws.between.trim(),_s30=":"===_u25,_a12=fB(r)?MT(n("value")):n("value");return!_s30&&kB(_u25)&&(_a12=IT([kT,jT(_a12)])),[r.raws.before.replace(/[\s;]/g,""),zT(e)?r.prop:WT(r.prop),_u25.startsWith("//")?" ":"",_u25,r.extend?"":" ",QT(t)&&r.extend&&r.selector?["extend(",n("selector"),")"]:"",_a12,r.raws.important?r.raws.important.replace(/\s*!\s*important/i," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/i," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/i," !global"):r.scssGlobal?" !global":"",r.nodes?[" {",IT([NT,jB(e,t,n)]),NT,"}"]:EB(r)&&!_o47.raws.semicolon&&";"!==t.originalText[OB(r)-1]?"":t.__isHTMLStyleAttribute&&KT(e,r)?LT(";"):";"];case"css-atrule":var _o48=e.getParentNode(),_i71=DB(r)&&!_o48.raws.semicolon&&";"!==t.originalText[OB(r)-1];if(QT(t)){if(r.mixin)return[n("selector"),r.important?" !important":"",_i71?"":";"];if(r.function)return[r.name,n("params"),_i71?"":";"];if(r.variable)return["@",r.name,": ",r.value?n("value"):"",r.raws.between.trim()?r.raws.between.trim()+" ":"",r.nodes?["{",IT([r.nodes.length>0?NT:"",jB(e,t,n)]),NT,"}"]:"",_i71?"":";"]}return["@",yB(r)||r.name.endsWith(":")?r.name:WT(r.name),r.params?[yB(r)?"":DB(r)?""===r.raws.afterName?"":r.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(r.raws.afterName)?[kT,kT]:/^\s*\n/.test(r.raws.afterName)?kT:" ":" ",n("params")]:"",r.selector?IT([" ",n("selector")]):"",r.value?PT([" ",n("value"),ZT(r)?dB(r)?" ":BT:""]):"else"===r.name?" ":"",r.nodes?[ZT(r)?"":r.selector&&!r.selector.nodes&&"string"==typeof r.selector.value&&kB(r.selector.value)||!r.selector&&"string"==typeof r.params&&kB(r.params)?BT:" ","{",IT([r.nodes.length>0?NT:"",jB(e,t,n)]),NT,"}"]:_i71?"":";"];case"media-query-list":var _t148=[];return e.each((function(e){var r=e.getValue();"media-query"===r.type&&""===r.value||_t148.push(n())}),"nodes"),PT(IT(TT(BT,_t148)));case"media-query":return[TT(" ",e.map(n,"nodes")),KT(e,r)?"":","];case"media-type":case"media-value":return VB(MB(r.value,t));case"media-feature-expression":return r.nodes?["("].concat(_toConsumableArray(e.map(n,"nodes")),[")"]):r.value;case"media-feature":return WT(MB(r.value.replace(/ +/g," "),t));case"media-colon":case"value-comma":return[r.value," "];case"media-keyword":case"selector-string":return MB(r.value,t);case"media-url":return MB(r.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/gi,")"),t);case"media-unknown":case"selector-comment":case"selector-nesting":case"value-paren":case"value-operator":case"value-unicode-range":case"value-unknown":return r.value;case"selector-root":return PT([HT(e,"custom-selector")?[$T(e,"css-atrule").customSelector,BT]:"",TT([",",HT(e,["extend","custom-selector","nest"])?BT:kT],e.map(n,"nodes"))]);case"selector-selector":return PT(IT(e.map(n,"nodes")));case"selector-tag":var _t149=e.getParentNode(),_n94=_t149&&_t149.nodes.indexOf(r),_o49=_n94&&_t149.nodes[_n94-1];return[r.namespace?[!0===r.namespace?"":r.namespace.trim(),"|"]:"","selector-nesting"===_o49.type?r.value:VB(JT(e,r.value)?r.value.toLowerCase():r.value)];case"selector-id":return["#",r.value];case"selector-class":return[".",VB(MB(r.value,t))];case"selector-attribute":return["[",r.namespace?[!0===r.namespace?"":r.namespace.trim(),"|"]:"",r.attribute.trim(),r.operator?r.operator:"",r.value?RB(MB(r.value.trim(),t),t):"",r.insensitive?" i":"","]"];case"selector-combinator":if("+"===r.value||">"===r.value||"~"===r.value||">>>"===r.value){var _t150=e.getParentNode();return["selector-selector"===_t150.type&&_t150.nodes[0]===r?"":BT,r.value,KT(e,r)?"":" "]}return[r.value.trim().startsWith("(")?BT:"",VB(MB(r.value.trim(),t))||BT];case"selector-universal":return[r.namespace?[!0===r.namespace?"":r.namespace.trim(),"|"]:"",r.value];case"selector-pseudo":return[WT(r.value),wT(r.nodes)?["(",TT(", ",e.map(n,"nodes")),")"]:""];case"selector-unknown":var _n95=$T(e,"css-rule");if(_n95&&_n95.isSCSSNesterProperty)return VB(MB(WT(r.value),t));var _o50=e.getParentNode();if(_o50.raws&&_o50.raws.selector){var _e173=PB(_o50),_n96=_e173+_o50.raws.selector.length;return t.originalText.slice(_e173,_n96).trim()}var _i72=e.getParentNode(1);if("value-paren_group"===_o50.type&&_i72&&"value-func"===_i72.type&&"selector"===_i72.value){var _e174=PB(_o50.open)+1,_n97=OB(_o50.close)-1,_r107=t.originalText.slice(_e174,_n97).trim();return kB(_r107)?[_T,_r107]:_r107}return r.value;case"value-value":case"value-root":return n("group");case"value-comment":return t.originalText.slice(PB(r),OB(r));case"value-comma_group":for(var _t151=e.getParentNode(),_o51=e.getParentNode(1),_i73=qT(e),_u26=_i73&&"value-value"===_t151.type&&("grid"===_i73||_i73.startsWith("grid-template")),_s31=$T(e,"css-atrule"),_a13=_s31&&ZT(_s31),_c16=r.groups.some((function(e){return vB(e)})),_l12=e.map(n,"groups"),_p11=[],_f8=UT(e,"url"),_d7=!1,_h7=!1,_n98=0;_n980&&"value-comma_group"===r.groups[0].type&&r.groups[0].groups.length>0&&"value-word"===r.groups[0].groups[0].type&&r.groups[0].groups[0].value.startsWith("data:")))return[r.open?n("open"):"",TT(",",e.map(n,"groups")),r.close?n("close"):""];if(!r.open){for(var _t152=e.map(n,"groups"),_r108=[],_e175=0;_e175<_t152.length;_e175++)0!==_e175&&_r108.push([",",BT]),_r108.push(_t152[_e175]);return PT(IT(OT(_r108)))}var _i75=CB(e),_u27=ke(r.groups),_s32=_u27&&"value-comment"===_u27.type,_a14=gB(r,_o52),_c18=PT([r.open?n("open"):"",IT([NT,TT([",",BT],e.map((function(e){var t=e.getValue(),r=n();if(mB(t)&&"value-comma_group"===t.type&&t.groups&&"value-paren_group"!==t.groups[0].type&&t.groups[2]&&"value-paren_group"===t.groups[2].type){var _e176=RT(r.contents.contents);return _e176[1]=PT(_e176[1]),PT(jT(r))}return r}),"groups"))]),LT(!_s32&&YT(t.parser,t.originalText)&&_i75&&IB(t)?",":""),NT,r.close?n("close"):""],{shouldBreak:_i75&&!_a14});return _a14?jT(_c18):_c18;case"value-func":return[r.value,HT(e,"supports")&&TB(r)?" ":"",n("group")];case"value-number":return[$B(r.value),WT(r.unit)];case"value-word":return r.isColor&&r.isHex||XT(r.value)?r.value.toLowerCase():r.value;case"value-colon":var _t153=e.getParentNode(),_n99=_t153&&_t153.groups.indexOf(r),_o53=_n99&&_t153.groups[_n99-1];return[r.value,_o53&&"string"==typeof _o53.value&&"\\"===ke(_o53.value)||UT(e,"url")?"":BT];case"value-string":return AT(r.raws.quote+r.value+r.raws.quote,t);case"value-atword":return["@",r.value];default:throw new Error("Unknown postcss type ".concat(JSON.stringify(r.type)))}},embed:Kw,insertPragma:VT,massageAstNode:Hw},WB={singleQuote:Ow.singleQuote},UB={name:"PostCSS",type:"markup",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",languageId:262764437},zB={name:"Less",type:"markup",color:"#1d365d",extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",languageId:198},HB={name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],languageId:329},GB={languages:[df({name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css"],languageId:50},(function(e){return{since:"1.4.0",parsers:["css"],vscodeLanguageIds:["css"],extensions:[].concat(_toConsumableArray(e.extensions),[".wxss"])}})),df(UB,(function(){return{since:"1.4.0",parsers:["css"],vscodeLanguageIds:["postcss"]}})),df(zB,(function(){return{since:"1.4.0",parsers:["less"],vscodeLanguageIds:["less"]}})),df(HB,(function(){return{since:"1.4.0",parsers:["scss"],vscodeLanguageIds:["scss"]}}))],options:WB,printers:{postcss:qB},parsers:{get css(){return{}.parsers.css},get less(){return{}.parsers.less},get scss(){return{}.parsers.scss}}},JB={locStart:function locStart(e){return e.loc.start.offset},locEnd:function locEnd(e){return e.loc.end.offset}};function XB(e,t){if("TextNode"===e.type){var _n100=e.chars.trim();if(!_n100)return null;t.chars=_n100.replace(/[\t\n\f\r ]+/g," ")}"AttrNode"===e.type&&"class"===e.name.toLowerCase()&&delete t.value}XB.ignoredProperties=new Set(["loc","selfClosing"]);var YB=XB,KB=new Set(["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"]);function QB(e){return ZB(e,["TextNode"])&&!/\S/.test(e.chars)}function ZB(e,t){return e&&t.includes(e.type)}function ek(e,t){return ZB(e.getParentNode(0),t)}function tk(e,t){var n=e.getValue(),r=e.getParentNode(0)||{},o=r.children||r.body||r.parts||[],i=o.indexOf(n);return-1!==i&&o[i+t]}function nk(e){return tk(e,-(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1))}function rk(e){return tk(e,1)}function ok(e){return ZB(e,["MustacheCommentStatement"])&&"string"==typeof e.value&&"prettier-ignore"===e.value.trim()}var ik={getNextNode:rk,getPreviousNode:nk,hasPrettierIgnore:function hasPrettierIgnore(e){var t=e.getValue(),n=nk(e,2);return ok(t)||ok(n)},isLastNodeOfSiblings:function isLastNodeOfSiblings(e){var t=e.getValue(),n=e.getParentNode(0);return!(!ek(e,["ElementNode"])||ke(n.children)!==t)||!(!ek(e,["Block"])||ke(n.body)!==t)},isNextNodeOfSomeType:function isNextNodeOfSomeType(e,t){return ZB(rk(e),t)},isNodeOfSomeType:ZB,isParentOfSomeType:ek,isPreviousNodeOfSomeType:function isPreviousNodeOfSomeType(e,t){return ZB(nk(e),t)},isVoid:function isVoid(e){return function(e){return ZB(e,["ElementNode"])&&"string"==typeof e.tag&&(function(e){return e.toUpperCase()===e}(e.tag[0])||e.tag.includes("."))}(e)&&e.children.every((function(e){return QB(e)}))||KB.has(e.tag)},isWhitespaceNode:QB},_Rn$builders36=Rn.builders,uk=_Rn$builders36.dedent,sk=_Rn$builders36.fill,ak=_Rn$builders36.group,ck=_Rn$builders36.hardline,lk=_Rn$builders36.ifBreak,pk=_Rn$builders36.indent,fk=_Rn$builders36.join,dk=_Rn$builders36.line,hk=_Rn$builders36.softline,mk=_Rn$builders36.literalline,gk=Rn.utils.getDocParts,yk=rn.isNonEmptyArray,Dk=rn.replaceEndOfLineWith,Ek=JB.locStart,bk=JB.locEnd,Ck=ik.getNextNode,vk=ik.getPreviousNode,Ak=ik.hasPrettierIgnore,Fk=ik.isLastNodeOfSiblings,xk=ik.isNextNodeOfSomeType,Sk=ik.isNodeOfSomeType,wk=ik.isParentOfSomeType,Tk=ik.isPreviousNodeOfSomeType,Bk=ik.isVoid,kk=ik.isWhitespaceNode;function Nk(e,t,n){var r=e.getValue().children.every((function(e){return kk(e)}));return"ignore"===t.htmlWhitespaceSensitivity&&r?"":e.map((function(e,r){var o=n();return 0===r&&"ignore"===t.htmlWhitespaceSensitivity?[hk,o]:o}),"children")}function Pk(e){return Bk(e)?lk([hk,"/>"],[" />",hk]):lk([hk,">"],">")}function Ok(e){return[!1===e.escaped?"{{{":"{{",e.strip&&e.strip.open?"~":""]}function Ik(e){var t=!1===e.escaped?"}}}":"}}";return[e.strip&&e.strip.close?"~":"",t]}function jk(e){return[Ok(e),e.closeStrip.open?"~":"","/"]}function Lk(e){var t=Ik(e);return[e.closeStrip.close?"~":"",t]}function _k(e){return[Ok(e),e.inverseStrip.open?"~":""]}function Mk(e){var t=Ik(e);return[e.inverseStrip.close?"~":"",t]}function Rk(e,t){var n=e.getValue(),r=function(e){return[Ok(e),e.openStrip.open?"~":"","#"]}(n),o=function(e){var t=Ik(e);return[e.openStrip.close?"~":"",t]}(n),i=[Zk(e,t)],u=eN(e,t);if(u&&i.push(dk,u),yk(n.program.blockParams)){var _e177=tN(n.program);i.push(dk,_e177)}return ak([r,pk(i),hk,o])}function Vk(e,t){return["ignore"===t.htmlWhitespaceSensitivity?ck:"",_k(e),"else",Mk(e)]}function $k(e,t){var n=e.getParentNode(1);return[_k(n),"else if ",eN(e,t),Mk(n)]}function qk(e,t,n){var r=e.getValue();return"ignore"===n.htmlWhitespaceSensitivity?[Wk(r)?hk:ck,jk(r),t("path"),Lk(r)]:[jk(r),t("path"),Lk(r)]}function Wk(e){return Sk(e,["BlockStatement"])&&e.program.body.every((function(e){return kk(e)}))}function Uk(e){return Sk(e,["BlockStatement"])&&e.inverse}function zk(e,t,n){if(Wk(e.getValue()))return"";var r=t("program");return"ignore"===n.htmlWhitespaceSensitivity?pk([ck,r]):pk(r)}function Hk(e,t,n){var r=e.getValue(),o=t("inverse"),i="ignore"===n.htmlWhitespaceSensitivity?[ck,o]:o;return function(e){return Uk(e)&&1===e.inverse.body.length&&Sk(e.inverse.body[0],["BlockStatement"])&&"if"===e.inverse.body[0].path.parts[0]}(r)?i:Uk(r)?[Vk(r,n),pk(i)]:""}function Gk(e){return gk(fk(dk,function(e){return e.split(/[\t\n\f\r ]+/)}(e)))}function Jk(e){return(e="string"==typeof e?e:"").split("\n").length-1}function Xk(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Array(Math.min(e,2)).fill(ck)}function Yk(e,t){var n={quote:'"',regex:/"/g},r={quote:"'",regex:/'/g},o=e.singleQuote?r:n,i=o===r?n:r,u=!1;return(t.includes(o.quote)||t.includes(i.quote))&&(u=(t.match(o.regex)||[]).length>(t.match(i.regex)||[]).length),u?i:o}function Kk(e,t){var n=Zk(e,t),r=eN(e,t);return r?pk([n,dk,ak(r)]):n}function Qk(e,t){var n=Zk(e,t),r=eN(e,t);return r?[pk([n,dk,r]),hk]:n}function Zk(e,t){return t("path")}function eN(e,t){var n=e.getValue(),r=[];if(n.params.length>0){var _n101=e.map(t,"params");r.push.apply(r,_toConsumableArray(_n101))}if(n.hash&&n.hash.pairs.length>0){var _e178=t("hash");r.push(_e178)}return 0===r.length?"":fk(dk,r)}function tN(e){return["as |",e.blockParams.join(" "),"|"]}var nN={print:function print(e,t,n){var r=e.getValue();if(!r)return"";if(Ak(e))return t.originalText.slice(Ek(r),bk(r));switch(r.type){case"Block":case"Program":case"Template":return ak(e.map(n,"body"));case"ElementNode":var _o54=ak(function(e,t){var n=e.getValue(),r=["attributes","modifiers","comments","blockParams"].filter((function(e){return yk(n[e])})).map((function(r){return[dk,"blockParams"===r?tN(n):fk(dk,e.map(t,r))]}));return["<",n.tag,pk(r),Pk(n)]}(e,n)),_i76="ignore"===t.htmlWhitespaceSensitivity&&xk(e,["ElementNode"])?hk:"";if(Bk(r))return[_o54,_i76];var _u28=[""];return 0===r.children.length?[_o54,pk(_u28),_i76]:"ignore"===t.htmlWhitespaceSensitivity?[_o54,pk(Nk(e,t,n)),ck,pk(_u28),_i76]:[_o54,pk(ak(Nk(e,t,n))),pk(_u28),_i76];case"BlockStatement":var _o55=e.getParentNode(1);return _o55&&_o55.inverse&&1===_o55.inverse.body.length&&_o55.inverse.body[0]===r&&"if"===_o55.inverse.body[0].path.parts[0]?[$k(e,n),zk(e,n,t),Hk(e,n,t)]:[Rk(e,n),ak([zk(e,n,t),Hk(e,n,t),qk(e,n,t)])];case"ElementModifierStatement":return ak(["{{",Qk(e,n),"}}"]);case"MustacheStatement":return ak([Ok(r),Qk(e,n),Ik(r)]);case"SubExpression":return ak(["(",Kk(e,n),hk,")"]);case"AttrNode":var _e179="TextNode"===r.value.type;if(_e179&&""===r.value.chars&&Ek(r.value)===bk(r.value))return r.name;var _o56=_e179?Yk(t,r.value.chars).quote:"ConcatStatement"===r.value.type?Yk(t,r.value.parts.filter((function(e){return"TextNode"===e.type})).map((function(e){return e.chars})).join("")).quote:"",_i77=n("value");return[r.name,"=",_o56,"class"===r.name&&_o56?ak(pk(_i77)):_i77,_o56];case"ConcatStatement":return e.map(n,"parts");case"Hash":return fk(dk,e.map(n,"pairs"));case"HashPair":return[r.key,"=",n("value")];case"TextNode":var _n102=r.chars.replace(/{{/g,"\\{{"),_o57=function(e){for(var _t154=0;_t154<2;_t154++){var _n103=e.getParentNode(_t154);if(_n103&&"AttrNode"===_n103.type)return _n103.name.toLowerCase()}}(e);if(_o57){if("class"===_o57){var _t155=_n102.trim().split(/\s+/).join(" "),_r109=!1,_o58=!1;return wk(e,["ConcatStatement"])&&(Tk(e,["MustacheStatement"])&&/^\s/.test(_n102)&&(_r109=!0),xk(e,["MustacheStatement"])&&/\s$/.test(_n102)&&""!==_t155&&(_o58=!0)),[_r109?dk:"",_t155,_o58?dk:""]}return Dk(_n102,mk)}var _i78=/^[\t\n\f\r ]*$/.test(_n102),_u29=!vk(e),_s33=!Ck(e);if("ignore"!==t.htmlWhitespaceSensitivity){var _t156=/^[\t\n\f\r ]*/,_r110=/[\t\n\f\r ]*$/,_o59=_s33&&wk(e,["Template"]),_a16=_u29&&wk(e,["Template"]);if(_i78){if(_a16||_o59)return"";var _t157=[dk],_r111=Jk(_n102);return _r111&&(_t157=Xk(_r111)),Fk(e)&&(_t157=_t157.map((function(e){return uk(e)}))),_t157}var _c20=_slicedToArray(_n102.match(_t156),1)[0],_l14=_slicedToArray(_n102.match(_r110),1)[0],_p13=[];if(_c20){_p13=[dk];var _e180=Jk(_c20);_e180&&(_p13=Xk(_e180)),_n102=_n102.replace(_t156,"")}var _f10=[];if(_l14){if(!_o59){_f10=[dk];var _t158=Jk(_l14);_t158&&(_f10=Xk(_t158)),Fk(e)&&(_f10=_f10.map((function(e){return uk(e)})))}_n102=_n102.replace(_r110,"")}return[].concat(_toConsumableArray(_p13),[sk(Gk(_n102))],_toConsumableArray(_f10))}var _a15=Jk(_n102),_c19=function(e){return Jk(((e="string"==typeof e?e:"").match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"")}(_n102),_l13=function(e){return Jk(((e="string"==typeof e?e:"").match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"")}(_n102);if((_u29||_s33)&&_i78&&wk(e,["Block","ElementNode","Template"]))return"";_i78&&_a15?(_c19=Math.min(_a15,2),_l13=0):(xk(e,["BlockStatement","ElementNode"])&&(_l13=Math.max(_l13,1)),Tk(e,["BlockStatement","ElementNode"])&&(_c19=Math.max(_c19,1)));var _p12="",_f9="";return 0===_l13&&xk(e,["MustacheStatement"])&&(_f9=" "),0===_c19&&Tk(e,["MustacheStatement"])&&(_p12=" "),_u29&&(_c19=0,_p12=""),_s33&&(_l13=0,_f9=""),_n102=_n102.replace(/^[\t\n\f\r ]+/g,_p12).replace(/[\t\n\f\r ]+$/,_f9),[].concat(_toConsumableArray(Xk(_c19)),[sk(Gk(_n102))],_toConsumableArray(Xk(_l13)));case"MustacheCommentStatement":var _e181=Ek(r),_n104=bk(r),_o60="~"===t.originalText.charAt(_e181+2),_i79="~"===t.originalText.charAt(_n104-3),_u30=r.value.includes("}}")?"--":"";return["{{",_o60?"~":"","!",_u30,r.value,_u30,_i79?"~":"","}}"];case"PathExpression":return r.original;case"BooleanLiteral":case"NumberLiteral":return String(r.value);case"CommentStatement":return["\x3c!--",r.value,"--\x3e"];case"StringLiteral":return function(e,t){var _Yk=Yk(t,e),n=_Yk.quote,r=_Yk.regex;return[n,e.replace(r,"\\".concat(n)),n]}(r.value,t);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Error("unknown glimmer type: "+JSON.stringify(r.type))}},massageAstNode:YB},rN={languages:[df({name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155},(function(){return{since:"2.3.0",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}}))],printers:{glimmer:nN},parsers:{get glimmer(){return{}.parsers.glimmer}}},oN={hasPragma:function hasPragma(e){return/^\s*#[^\S\n]*@(format|prettier)\s*(\n|$)/.test(e)},insertPragma:function insertPragma(e){return"# @format\n\n"+e}},iN={locStart:function locStart(e){return"number"==typeof e.start?e.start:e.loc&&e.loc.start},locEnd:function locEnd(e){return"number"==typeof e.end?e.end:e.loc&&e.loc.end}},_Rn$builders37=Rn.builders,uN=_Rn$builders37.join,sN=_Rn$builders37.hardline,aN=_Rn$builders37.line,cN=_Rn$builders37.softline,lN=_Rn$builders37.group,pN=_Rn$builders37.indent,fN=_Rn$builders37.ifBreak,dN=rn.isNextLineEmpty,hN=rn.isNonEmptyArray,mN=oN.insertPragma,gN=iN.locStart,yN=iN.locEnd;function DN(e,t,n){if(0===n.directives.length)return"";var r=uN(aN,e.map(t,"directives"));return"FragmentDefinition"===n.kind||"OperationDefinition"===n.kind?lN([aN,r]):[" ",lN(pN([cN,r]))]}function EN(e,t,n){var r=e.getValue().length;return e.map((function(e,o){var i=n();return dN(t.originalText,e.getValue(),yN)&&o0?lN(["(",pN([cN,uN([fN("",", "),cN],e.call((function(e){return EN(e,t,n)}),"arguments"))]),cN,")"]):"",DN(e,n,r),r.selectionSet?" ":"",n("selectionSet")]);case"Name":case"IntValue":case"FloatValue":case"EnumValue":return r.value;case"StringValue":return r.block?['"""',sN,uN(sN,r.value.replace(/"""/g,"\\$&").split("\n")),sN,'"""']:['"',r.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"'];case"BooleanValue":return r.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",n("name")];case"ListValue":return lN(["[",pN([cN,uN([fN("",", "),cN],e.map(n,"values"))]),cN,"]"]);case"ObjectValue":return lN(["{",t.bracketSpacing&&r.fields.length>0?" ":"",pN([cN,uN([fN("",", "),cN],e.map(n,"fields"))]),cN,fN("",t.bracketSpacing&&r.fields.length>0?" ":""),"}"]);case"ObjectField":case"Argument":return[n("name"),": ",n("value")];case"Directive":return["@",n("name"),r.arguments.length>0?lN(["(",pN([cN,uN([fN("",", "),cN],e.call((function(e){return EN(e,t,n)}),"arguments"))]),cN,")"]):""];case"NamedType":return n("name");case"VariableDefinition":return[n("variable"),": ",n("type"),r.defaultValue?[" = ",n("defaultValue")]:"",DN(e,n,r)];case"ObjectTypeExtension":case"ObjectTypeDefinition":return[n("description"),r.description?sN:"","ObjectTypeExtension"===r.kind?"extend ":"","type ",n("name"),r.interfaces.length>0?[" implements "].concat(_toConsumableArray(bN(e,t,n))):"",DN(e,n,r),r.fields.length>0?[" {",pN([sN,uN(sN,e.call((function(e){return EN(e,t,n)}),"fields"))]),sN,"}"]:""];case"FieldDefinition":return[n("description"),r.description?sN:"",n("name"),r.arguments.length>0?lN(["(",pN([cN,uN([fN("",", "),cN],e.call((function(e){return EN(e,t,n)}),"arguments"))]),cN,")"]):"",": ",n("type"),DN(e,n,r)];case"DirectiveDefinition":return[n("description"),r.description?sN:"","directive ","@",n("name"),r.arguments.length>0?lN(["(",pN([cN,uN([fN("",", "),cN],e.call((function(e){return EN(e,t,n)}),"arguments"))]),cN,")"]):"",r.repeatable?" repeatable":""," on ",uN(" | ",e.map(n,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[n("description"),r.description?sN:"","EnumTypeExtension"===r.kind?"extend ":"","enum ",n("name"),DN(e,n,r),r.values.length>0?[" {",pN([sN,uN(sN,e.call((function(e){return EN(e,t,n)}),"values"))]),sN,"}"]:""];case"EnumValueDefinition":return[n("description"),r.description?sN:"",n("name"),DN(e,n,r)];case"InputValueDefinition":return[n("description"),r.description?r.description.block?sN:aN:"",n("name"),": ",n("type"),r.defaultValue?[" = ",n("defaultValue")]:"",DN(e,n,r)];case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return[n("description"),r.description?sN:"","InputObjectTypeExtension"===r.kind?"extend ":"","input ",n("name"),DN(e,n,r),r.fields.length>0?[" {",pN([sN,uN(sN,e.call((function(e){return EN(e,t,n)}),"fields"))]),sN,"}"]:""];case"SchemaDefinition":return["schema",DN(e,n,r)," {",r.operationTypes.length>0?pN([sN,uN(sN,e.call((function(e){return EN(e,t,n)}),"operationTypes"))]):"",sN,"}"];case"OperationTypeDefinition":return[n("operation"),": ",n("type")];case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return[n("description"),r.description?sN:"","InterfaceTypeExtension"===r.kind?"extend ":"","interface ",n("name"),r.interfaces.length>0?[" implements "].concat(_toConsumableArray(bN(e,t,n))):"",DN(e,n,r),r.fields.length>0?[" {",pN([sN,uN(sN,e.call((function(e){return EN(e,t,n)}),"fields"))]),sN,"}"]:""];case"FragmentSpread":return["...",n("name"),DN(e,n,r)];case"InlineFragment":return["...",r.typeCondition?[" on ",n("typeCondition")]:"",DN(e,n,r)," ",n("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return lN([n("description"),r.description?sN:"",lN(["UnionTypeExtension"===r.kind?"extend ":"","union ",n("name"),DN(e,n,r),r.types.length>0?[" =",fN(""," "),pN([fN([aN," "]),uN([aN,"| "],e.map(n,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[n("description"),r.description?sN:"","ScalarTypeExtension"===r.kind?"extend ":"","scalar ",n("name"),DN(e,n,r)];case"NonNullType":return[n("type"),"!"];case"ListType":return["[",n("type"),"]"];default:throw new Error("unknown graphql type: "+JSON.stringify(r.kind))}},massageAstNode:CN,hasPrettierIgnore:function hasPrettierIgnore(e){var t=e.getValue();return t&&Array.isArray(t.comments)&&t.comments.some((function(e){return"prettier-ignore"===e.value.trim()}))},insertPragma:mN,printComment:function printComment(e){var t=e.getValue();if("Comment"===t.kind)return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))},canAttachComment:function canAttachComment(e){return e.kind&&"Comment"!==e.kind}},AN={bracketSpacing:Ow.bracketSpacing},FN={languages:[df({name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",languageId:139},(function(){return{since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]}}))],options:AN,printers:{graphql:vN},parsers:{get graphql(){return{}.parsers.graphql}}},xN={locStart:function locStart(e){return e.position.start.offset},locEnd:function locEnd(e){return e.position.end.offset}},SN=rn.getLast,wN=xN.locStart,TN=xN.locEnd,_cjkPattern$kPattern$={cjkPattern:"(?:[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u2ff0-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e\\udd50-\\udd52\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d])(?:[\\ufe00-\\ufe0f]|\\udb40[\\udd00-\\uddef])?",kPattern:"[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",punctuationPattern:"[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udf55-\\udf59]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]"},BN=_cjkPattern$kPattern$.cjkPattern,kN=_cjkPattern$kPattern$.kPattern,NN=_cjkPattern$kPattern$.punctuationPattern,PN=["liquidNode","inlineCode","emphasis","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],ON=[].concat(PN,["tableCell","paragraph","heading"]),IN=new RegExp(kN),jN=new RegExp(NN);function LN(e,t){var _t$slice$match2=_slicedToArray(t.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/),4);return{numberText:_t$slice$match2[1],marker:_t$slice$match2[2],leadingSpaces:_t$slice$match2[3]}}var _N={mapAst:function mapAst(e,t){return function e(n,r,o){var i=Object.assign({},t(n,r,o));return i.children&&(i.children=i.children.map((function(t,n){return e(t,n,[i].concat(_toConsumableArray(o)))}))),i}(e,null,[])},splitText:function splitText(e,t){var _step67,n="non-cjk",r="cj-letter",o="cjk-punctuation",i=[],u=("preserve"===t.proseWrap?e:e.replace(new RegExp("(".concat(BN,")\n(").concat(BN,")"),"g"),"$1$2")).split(/([\t\n ]+)/),_iterator67=_createForOfIteratorHelper(u.entries());try{for(_iterator67.s();!(_step67=_iterator67.n()).done;){var _step67$value=_slicedToArray(_step67.value,2),_e184=_step67$value[0],_t159=_step67$value[1];if(_e184%2!=1){if(0!==_e184&&_e184!==u.length-1||""!==_t159){var _step68,_a17=_t159.split(new RegExp("(".concat(BN,")"))),_iterator68=_createForOfIteratorHelper(_a17.entries());try{for(_iterator68.s();!(_step68=_iterator68.n()).done;){var _step68$value=_slicedToArray(_step68.value,2),_e185=_step68$value[0],_t160=_step68$value[1];(0!==_e185&&_e185!==_a17.length-1||""!==_t160)&&(_e185%2!=0?s(jN.test(_t160)?{type:"word",value:_t160,kind:o,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:_t160,kind:IN.test(_t160)?"k-letter":r,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1}):""!==_t160&&s({type:"word",value:_t160,kind:n,hasLeadingPunctuation:jN.test(_t160[0]),hasTrailingPunctuation:jN.test(SN(_t160))}))}}catch(err){_iterator68.e(err)}finally{_iterator68.f()}}}else i.push({type:"whitespace",value:/\n/.test(_t159)?"\n":" "})}}catch(err){_iterator67.e(err)}finally{_iterator67.f()}return i;function s(e){var u,s,t=SN(i);t&&"word"===t.type&&(t.kind===n&&e.kind===r&&!t.hasTrailingPunctuation||t.kind===r&&e.kind===n&&!e.hasLeadingPunctuation?i.push({type:"whitespace",value:" "}):(u=n,s=o,t.kind===u&&e.kind===s||t.kind===s&&e.kind===u||[t.value,e.value].some((function(e){return/\u3000/.test(e)}))||i.push({type:"whitespace",value:""}))),i.push(e)}},punctuationPattern:NN,getFencedCodeBlockValue:function getFencedCodeBlockValue(e,t){var n=e.value;return e.position.end.offset===t.length&&n.endsWith("\n")&&t.endsWith("\n")?n.slice(0,-1):n},getOrderedListItemInfo:LN,hasGitDiffFriendlyOrderedList:function hasGitDiffFriendlyOrderedList(e,t){if(!e.ordered)return!1;if(e.children.length<2)return!1;var n=Number(LN(e.children[0],t.originalText).numberText),r=Number(LN(e.children[1],t.originalText).numberText);if(0===n&&e.children.length>2){var _n106=Number(LN(e.children[2],t.originalText).numberText);return 1===r&&1===_n106}return 1===r},INLINE_NODE_TYPES:PN,INLINE_NODE_WRAPPER_TYPES:ON,isAutolink:function isAutolink(e){if(!e||"link"!==e.type||1!==e.children.length)return!1;var t=e.children[0];return t&&wN(e)===wN(t)&&TN(e)===TN(t)}},MN=rn.inferParserByLanguage,RN=rn.getMaxContinuousCount,_Rn$builders38=Rn.builders,VN=_Rn$builders38.hardline,$N=_Rn$builders38.markAsRoot,qN=Rn.utils.replaceNewlinesWithLiterallines,WN=_N.getFencedCodeBlockValue,UN=function UN(e,t,n,r){var o=e.getValue();if("code"===o.type&&null!==o.lang){var _e186=MN(o.lang,r);if(_e186){var _t161=r.__inJsTemplate?"~":"`",_i82=_t161.repeat(Math.max(3,RN(o.value,_t161)+1)),_u32=n(WN(o,r.originalText),{parser:_e186},{stripTrailingHardline:!0});return $N([_i82,o.lang,o.meta?" "+o.meta:"",VN,qN(_u32),VN,_i82])}}switch(o.type){case"front-matter":return Xw(o,n);case"importExport":return[n(o.value,{parser:"babel"},{stripTrailingHardline:!0}),VN];case"jsx":return n("<$>".concat(o.value,""),{parser:"__js_expression",rootMarker:"mdx"},{stripTrailingHardline:!0})}return null},zN=["format","prettier"];function HN(e){var t="@(".concat(zN.join("|"),")"),n=new RegExp(["\x3c!--\\s*".concat(t,"\\s*--\x3e"),"\x3c!--.*\r?\n[\\s\\S]*(^|\n)[^\\S\n]*".concat(t,"[^\\S\n]*($|\n)[\\s\\S]*\n.*--\x3e")].join("|"),"m"),r=e.match(n);return r&&0===r.index}var GN={startWithPragma:HN,hasPragma:function hasPragma(e){return HN(Zw(e).content.trimStart())},insertPragma:function insertPragma(e){var t=Zw(e),n="\x3c!-- @".concat(zN[0]," --\x3e");return t.frontMatter?"".concat(t.frontMatter.raw,"\n\n").concat(n,"\n\n").concat(t.content):"".concat(n,"\n\n").concat(t.content)}},JN=_N.getOrderedListItemInfo,XN=_N.mapAst,YN=_N.splitText,KN=/^([\u0000-\uffff]|[\ud800-\udbff][\udc00-\udfff])$/;function QN(e,t,n){return XN(e,(function(e){if(!e.children)return e;var r=e.children.reduce((function(e,r){var o=ke(e);return o&&t(o,r)?e.splice(-1,1,n(o,r)):e.push(r),e}),[]);return Object.assign({},e,{children:r})}))}var ZN=function ZN(e,t){return function(e){return QN(e,(function(e,t){return"importExport"===e.type&&"importExport"===t.type}),(function(e,t){return{type:"importExport",value:e.value+"\n\n"+t.value,position:{start:e.position.start,end:t.position.end}}}))}(e=function(e){return XN(e,(function(e){return"import"!==e.type&&"export"!==e.type?e:Object.assign({},e,{type:"importExport"})}))}(e=function(e,t){return XN(e,(function(e,n,_ref106){var r=_slicedToArray(_ref106,1)[0];if("text"!==e.type)return e;var o=e.value;return"paragraph"===r.type&&(0===n&&(o=o.trimStart()),n===r.children.length-1&&(o=o.trimEnd())),{type:"sentence",position:e.position,children:YN(o,t)}}))}(e=function(e,t){return XN(e,(function(e,t,n){if("list"===e.type&&e.children.length>0){for(var _t162=0;_t1621)return!0;var i=n(r);return-1!==i&&(1===e.children.length?i%t.tabWidth==0:i===n(o)&&(i%t.tabWidth==0||JN(o,t.originalText).leadingSpaces.length>1))}}(e=function(e,t){return XN(e,(function(e,n,r){if("code"===e.type){var _n107=/^\n?( {4,}|\t)/.test(t.originalText.slice(e.position.start.offset,e.position.end.offset));if(e.isIndented=_n107,_n107)for(var _e187=0;_e1870&&(n.children[0]===e||eP(n.children[0])&&n.children[1]===e)&&"html"===e.type&&tP(e.value)?null:void 0)}rP.ignoredProperties=nP;var oP=rP,iP=rn.getLast,uP=rn.getMinNotPresentContinuousCount,sP=rn.getMaxContinuousCount,aP=rn.getStringWidth,cP=rn.isNonEmptyArray,_Rn$builders39=Rn.builders,lP=_Rn$builders39.breakParent,pP=_Rn$builders39.join,fP=_Rn$builders39.line,dP=_Rn$builders39.literalline,hP=_Rn$builders39.markAsRoot,mP=_Rn$builders39.hardline,gP=_Rn$builders39.softline,yP=_Rn$builders39.ifBreak,DP=_Rn$builders39.fill,EP=_Rn$builders39.align,bP=_Rn$builders39.indent,CP=_Rn$builders39.group,vP=_Rn$builders39.hardlineWithoutBreakParent,AP=Rn.utils.normalizeDoc,FP=Rn.printer.printDocToString,xP=rn.replaceEndOfLineWith,SP=GN.insertPragma,wP=xN.locStart,TP=xN.locEnd,BP=_N.getFencedCodeBlockValue,kP=_N.hasGitDiffFriendlyOrderedList,NP=_N.splitText,PP=_N.punctuationPattern,OP=_N.INLINE_NODE_TYPES,IP=_N.INLINE_NODE_WRAPPER_TYPES,jP=_N.isAutolink,LP=new Set(["importExport"]),_P=["heading","tableCell","link","wikiLink"],MP=new Set(["listItem","definition","footnoteDefinition"]);function RP(e,t,n,r){var o=e.getValue(),i=null===o.checked?"":o.checked?"[x] ":"[ ] ";return[i,zP(e,t,n,{processor:function processor(e,o){if(0===o&&"list"!==e.getValue().type)return EP(" ".repeat(i.length),n());var s,a,c,u=" ".repeat((c=3,(s=t.tabWidth-r.length)<(a=0)?a:s>c?c:s));return[u,EP(u,n())]}})]}function VP(e,t){return function(e,t,n){var _step69,r=-1,_iterator69=_createForOfIteratorHelper(t.children);try{for(_iterator69.s();!(_step69=_iterator69.n()).done;){var _o62=_step69.value;if(_o62.type===e.type&&n(_o62)?r++:r=-1,_o62===e)return r}}catch(err){_iterator69.e(err)}finally{_iterator69.f()}}(e,t,(function(t){return t.ordered===e.ordered}))}function $P(e,t){for(var r,n=Array.isArray(t)?t:[t],o=-1;r=e.getParentNode(++o);)if(n.includes(r.type))return o;return-1}function qP(e,t){var n=$P(e,t);return-1===n?null:e.getParentNode(n)}function WP(e,t,n){if("preserve"===n.proseWrap&&"\n"===t)return mP;var r="always"===n.proseWrap&&!qP(e,_P);return""!==t?r?fP:" ":r?gP:""}function UP(e,t,n){var _step70,r=[],o=null,i=e.getValue().children,_iterator70=_createForOfIteratorHelper(i.entries());try{for(_iterator70.s();!(_step70=_iterator70.n()).done;){var _step70$value=_slicedToArray(_step70.value,2),_e189=_step70$value[0],_t164=_step70$value[1];switch(GP(_t164)){case"start":null===o&&(o={index:_e189,offset:_t164.position.end.offset});break;case"end":null!==o&&(r.push({start:o,end:{index:_e189,offset:_t164.position.start.offset}}),o=null)}}}catch(err){_iterator70.e(err)}finally{_iterator70.f()}return zP(e,t,n,{processor:function processor(e,o){if(r.length>0){var _e188=r[0];if(o===_e188.start.index)return[i[_e188.start.index].value,t.originalText.slice(_e188.start.offset,_e188.end.offset),i[_e188.end.index].value];if(_e188.start.index3&&void 0!==arguments[3]?arguments[3]:{},o=r.postprocessor,i=r.processor||function(){return n()},u=e.getValue(),s=[];return e.each((function(e,n){var r=e.getValue(),o=i(e,n);if(!1!==o){var _e190={parts:s,prevNode:a,parentNode:u,options:t};(function(e,t){var n=0===t.parts.length,r=OP.includes(e.type),o="html"===e.type&&IP.includes(t.parentNode.type);return!n&&!r&&!o})(r,_e190)&&(s.push(mP),a&&LP.has(a.type)||(function(e,t){var n=(t.prevNode&&t.prevNode.type)===e.type&&MP.has(e.type),r="listItem"===t.parentNode.type&&!t.parentNode.loose,o=t.prevNode&&"listItem"===t.prevNode.type&&t.prevNode.loose,i="next"===GP(t.prevNode),u="html"===e.type&&t.prevNode&&"html"===t.prevNode.type&&t.prevNode.position.end.line+1===e.position.start.line,s="html"===e.type&&"listItem"===t.parentNode.type&&t.prevNode&&"paragraph"===t.prevNode.type&&t.prevNode.position.end.line+1===e.position.start.line;return o||!(n||r||i||u||s)}(r,_e190)||JP(r,_e190))&&s.push(mP),JP(r,_e190)&&s.push(mP)),s.push(o),a=r}}),"children"),o?o(s):s}function HP(e){for(var t=e;cP(t.children);)t=iP(t.children);return t}function GP(e){if("html"!==e.type)return!1;var t=e.value.match(/^$/);return null!==t&&(t[1]?t[1]:"next")}function JP(e,t){var n=t.prevNode&&"list"===t.prevNode.type,r="code"===e.type&&e.isIndented;return n&&r}function XP(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[" "].concat(_toConsumableArray(Array.isArray(t)?t:[t]));return new RegExp(n.map((function(e){return"\\".concat(e)})).join("|")).test(e)?"<".concat(e,">"):e}function YP(e,t){if(!e)return"";if(!(arguments.length>2&&void 0!==arguments[2])||arguments[2])return" "+YP(e,t,!1);if((e=e.replace(/\\(["')])/g,"$1")).includes('"')&&e.includes("'")&&!e.includes(")"))return"(".concat(e,")");var r=e.split("'").length-1,o=e.split('"').length-1,i=r>o?'"':o>r||t.singleQuote?"'":'"';return e=(e=e.replace(/\\/,"\\\\")).replace(new RegExp("(".concat(i,")"),"g"),"\\$1"),"".concat(i).concat(e).concat(i)}var KP={preprocess:ZN,print:function print(e,t,n){var r=e.getValue();if(function(e){var t=qP(e,["linkReference","imageReference"]);return t&&("linkReference"!==t.type||"full"!==t.referenceType)}(e))return NP(t.originalText.slice(r.position.start.offset,r.position.end.offset),t).map((function(n){return"word"===n.type?n.value:""===n.value?"":WP(e,n.value,t)}));switch(r.type){case"front-matter":return t.originalText.slice(r.position.start.offset,r.position.end.offset);case"root":return 0===r.children.length?"":[AP(UP(e,t,n)),LP.has(HP(r).type)?"":mP];case"paragraph":return zP(e,t,n,{postprocessor:DP});case"sentence":return zP(e,t,n);case"word":var _t165=r.value.replace(/\*/g,"\\$&").replace(new RegExp(["(^|".concat(PP,")(_+)"),"(_+)(".concat(PP,"|$)")].join("|"),"g"),(function(e,t,n,r,o){return(n?"".concat(t).concat(n):"".concat(r).concat(o)).replace(/_/g,"\\_")})),_n108=function _n108(e,t,n){return"sentence"===e.type&&0===n},_o63=function _o63(e,t,n){return jP(e.children[n-1])};return _t165!==r.value&&(e.match(void 0,_n108,_o63)||e.match(void 0,_n108,(function(e,t,n){return"emphasis"===e.type&&0===n}),_o63))&&(_t165=_t165.replace(/^(\\?[*_])+/,(function(e){return e.replace(/\\/g,"")}))),_t165;case"whitespace":var _n109=e.getParentNode(),_o64=_n109.children.indexOf(r),_i83=_n109.children[_o64+1],_u33=_i83&&/^>|^([*+-]|#{1,6}|\d+[).])$/.test(_i83.value)?"never":t.proseWrap;return WP(e,r.value,{proseWrap:_u33});case"emphasis":var _o65;if(jP(r.children[0]))_o65=t.originalText[r.position.start.offset];else{var _t166=e.getParentNode(),_n110=_t166.children.indexOf(r),_i84=_t166.children[_n110-1],_u34=_t166.children[_n110+1];_o65=_i84&&"sentence"===_i84.type&&_i84.children.length>0&&"word"===iP(_i84.children).type&&!iP(_i84.children).hasTrailingPunctuation||_u34&&"sentence"===_u34.type&&_u34.children.length>0&&"word"===_u34.children[0].type&&!_u34.children[0].hasLeadingPunctuation||qP(e,"emphasis")?"*":"_"}return[_o65,zP(e,t,n),_o65];case"strong":return["**",zP(e,t,n),"**"];case"delete":return["~~",zP(e,t,n),"~~"];case"inlineCode":var _e191=uP(r.value,"`"),_t167="`".repeat(_e191||1),_n111=_e191&&!/^\s/.test(r.value)?" ":"";return[_t167,_n111,r.value,_n111,_t167];case"wikiLink":return["[[","preserve"===t.proseWrap?r.value:r.value.replace(/[\t\n]+/g," "),"]]"];case"link":switch(t.originalText[r.position.start.offset]){case"<":var _e193="mailto:";return["<",r.url.startsWith(_e193)&&t.originalText.slice(r.position.start.offset+1,r.position.start.offset+1+_e193.length)!==_e193?r.url.slice(_e193.length):r.url,">"];case"[":return["[",zP(e,t,n),"](",XP(r.url,")"),YP(r.title,t),")"];default:return t.originalText.slice(r.position.start.offset,r.position.end.offset)}case"image":return["![",r.alt||"","](",XP(r.url,")"),YP(r.title,t),")"];case"blockquote":return["> ",EP("> ",zP(e,t,n))];case"heading":return["#".repeat(r.depth)+" ",zP(e,t,n)];case"code":if(r.isIndented){var _e195=" ".repeat(4);return EP(_e195,[_e195].concat(_toConsumableArray(xP(r.value,mP))))}var _e194=t.__inJsTemplate?"~":"`",_n112=_e194.repeat(Math.max(3,sP(r.value,_e194)+1));return[_n112,r.lang||"",r.meta?" "+r.meta:"",mP].concat(_toConsumableArray(xP(BP(r,t.originalText),mP)),[mP,_n112]);case"html":var _t168=e.getParentNode(),_n113="root"===_t168.type&&iP(_t168.children)===r?r.value.trimEnd():r.value,_o66=/^$/.test(_n113);return xP(_n113,_o66?mP:hP(dP));case"list":var _o67=VP(r,e.getParentNode()),_i85=kP(r,t);return zP(e,t,n,{processor:function processor(e,u){var s=function(){var e=r.ordered?(0===u?r.start:_i85?1:r.start+u)+(_o67%2==0?". ":") "):_o67%2==0?"- ":"* ";return r.isAligned||r.hasIndentedCodeblock?function(e,t){var n=r();return e+" ".repeat(n>=4?0:n);function r(){var n=e.length%t.tabWidth;return 0===n?0:t.tabWidth-n}}(e,t):e}(),a=e.getValue();return 2===a.children.length&&"html"===a.children[1].type&&a.children[0].position.start.column!==a.children[1].position.start.column?[s,RP(e,t,n,s)]:[s,EP(" ".repeat(s.length),RP(e,t,n,s))]}});case"thematicBreak":var _t169=$P(e,"list");return-1===_t169?"---":VP(e.getParentNode(_t169),e.getParentNode(_t169+1))%2==0?"***":"---";case"linkReference":return["[",zP(e,t,n),"]","full"===r.referenceType?["[",r.identifier,"]"]:"collapsed"===r.referenceType?"[]":""];case"imageReference":return"full"===r.referenceType?["![",r.alt||"","][",r.identifier,"]"]:["![",r.alt,"]","collapsed"===r.referenceType?"[]":""];case"definition":var _e196="always"===t.proseWrap?fP:" ";return CP(["[",r.identifier,"]:",bP([_e196,XP(r.url),null===r.title?"":[_e196,YP(r.title,t,!1)]])]);case"footnote":return["[^",zP(e,t,n),"]"];case"footnoteReference":return["[^",r.identifier,"]"];case"footnoteDefinition":var _o68=e.getParentNode().children[e.getName()+1],_i86=1===r.children.length&&"paragraph"===r.children[0].type&&("never"===t.proseWrap||"preserve"===t.proseWrap&&r.children[0].position.start.line===r.children[0].position.end.line);return["[^",r.identifier,"]: ",_i86?zP(e,t,n):CP([EP(" ".repeat(4),zP(e,t,n,{processor:function processor(e,t){return 0===t?CP([gP,n()]):n()}})),_o68&&"footnoteDefinition"===_o68.type?gP:""])];case"table":return function(e,t,n){var r=e.getValue(),o=[],i=e.map((function(e){return e.map((function(e,r){var i=FP(n(),t).formatted,u=aP(i);return o[r]=Math.max(o[r]||3,u),{text:i,width:u}}),"children")}),"children"),u=a(!1);if("never"!==t.proseWrap)return[lP,u];var s=a(!0);return[lP,CP(yP(s,u))];function a(e){var t=[l(i[0],e),c(e)];return i.length>1&&t.push(pP(vP,i.slice(1).map((function(t){return l(t,e)})))),pP(vP,t)}function c(e){var t=o.map((function(t,n){var o=r.align[n],i="center"===o||"left"===o?":":"-",u="center"===o||"right"===o?":":"-",s=e?"-":"-".repeat(t-2);return"".concat(i).concat(s).concat(u)}));return"| ".concat(t.join(" | ")," |")}function l(e,t){var n=e.map((function(_ref108,i){var e=_ref108.text,n=_ref108.width;if(t)return e;var u=o[i]-n,s=r.align[i],a=0;"right"===s?a=u:"center"===s&&(a=Math.floor(u/2));var c=u-a;return"".concat(" ".repeat(a)).concat(e).concat(" ".repeat(c))}));return"| ".concat(n.join(" | ")," |")}}(e,t,n);case"tableCell":return zP(e,t,n);case"break":return/\s/.test(t.originalText[r.position.start.offset])?[" ",hP(dP)]:["\\",mP];case"liquidNode":return xP(r.value,mP);case"importExport":return[r.value,mP];case"jsx":return r.value;case"math":return["$$",mP,r.value?[].concat(_toConsumableArray(xP(r.value,mP)),[mP]):"","$$"];case"inlineMath":return t.originalText.slice(wP(r),TP(r));default:throw new Error("Unknown markdown type ".concat(JSON.stringify(r.type)))}},embed:UN,massageAstNode:oP,hasPrettierIgnore:function hasPrettierIgnore(e){var t=Number(e.getName());return 0!==t&&"next"===GP(e.getParentNode().children[t-1])},insertPragma:SP},QP={proseWrap:Ow.proseWrap,singleQuote:Ow.singleQuote},ZP={name:"Markdown",type:"prose",color:"#083fa1",aliases:["pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr"],tmScope:"source.gfm",languageId:222},eO={languages:[df(ZP,(function(e){return{since:"1.8.0",parsers:["markdown"],vscodeLanguageIds:["markdown"],filenames:[].concat(_toConsumableArray(e.filenames),["README"]),extensions:e.extensions.filter((function(e){return".mdx"!==e}))}})),df(ZP,(function(){return{name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]}}))],options:QP,printers:{mdast:KP},parsers:{get remark(){return{}.parsers.remark},get markdown(){return{}.parsers.remark},get mdx(){return{}.parsers.mdx}}},tO=rn.isFrontMatterNode,nO=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan"]);function rO(e,t){return"text"===e.type||"comment"===e.type||tO(e)||"yaml"===e.type||"toml"===e.type?null:("attribute"===e.type&&delete t.value,void("docType"===e.type&&delete t.value))}rO.ignoredProperties=nO;var oO=rO,iO={"*":["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","slot","spellcheck","style","tabindex","title","translate"],a:["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","tabindex","target","type"],abbr:["title"],applet:["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"],area:["accesskey","alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","tabindex","target","type"],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],base:["href","target"],basefont:["color","face","size"],bdo:["dir"],blockquote:["cite"],body:["alink","background","bgcolor","link","text","vlink"],br:["clear"],button:["accesskey","autofocus","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","tabindex","type","value"],canvas:["height","width"],caption:["align"],col:["align","char","charoff","span","valign","width"],colgroup:["align","char","charoff","span","valign","width"],data:["value"],del:["cite","datetime"],details:["open"],dfn:["title"],dialog:["open"],dir:["compact"],div:["align"],dl:["compact"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],font:["color","face","size"],form:["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"],frame:["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"],frameset:["cols","rows"],h1:["align"],h2:["align"],h3:["align"],h4:["align"],h5:["align"],h6:["align"],head:["profile"],hr:["align","noshade","size","width"],html:["manifest","version"],iframe:["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"],img:["align","alt","border","crossorigin","decoding","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"],input:["accept","accesskey","align","alt","autocomplete","autofocus","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","tabindex","title","type","usemap","value","width"],ins:["cite","datetime"],isindex:["prompt"],label:["accesskey","for","form"],legend:["accesskey","align"],li:["type","value"],link:["as","charset","color","crossorigin","disabled","href","hreflang","imagesizes","imagesrcset","integrity","media","nonce","referrerpolicy","rel","rev","sizes","target","title","type"],map:["name"],menu:["compact"],meta:["charset","content","http-equiv","name","scheme"],meter:["high","low","max","min","optimum","value"],object:["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","tabindex","type","typemustmatch","usemap","vspace","width"],ol:["compact","reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["for","form","name"],p:["align"],param:["name","type","value","valuetype"],pre:["width"],progress:["max","value"],q:["cite"],script:["async","charset","crossorigin","defer","integrity","language","nomodule","nonce","referrerpolicy","src","type"],select:["autocomplete","autofocus","disabled","form","multiple","name","required","size","tabindex"],slot:["name"],source:["media","sizes","src","srcset","type"],style:["media","nonce","title","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],tbody:["align","char","charoff","valign"],td:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],textarea:["accesskey","autocomplete","autofocus","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","tabindex","wrap"],tfoot:["align","char","charoff","valign"],th:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],thead:["align","char","charoff","valign"],time:["datetime"],tr:["align","bgcolor","char","charoff","valign"],track:["default","kind","label","src","srclang"],ul:["compact","type"],video:["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"]},uO=rn.inferParserByLanguage,sO=rn.isFrontMatterNode,_CSS_DISPLAY_TAGS$CSS2={CSS_DISPLAY_TAGS:{area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",details:"block",summary:"block",dialog:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},CSS_DISPLAY_DEFAULT:"inline",CSS_WHITE_SPACE_TAGS:{listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},CSS_WHITE_SPACE_DEFAULT:"normal"},aO=_CSS_DISPLAY_TAGS$CSS2.CSS_DISPLAY_TAGS,cO=_CSS_DISPLAY_TAGS$CSS2.CSS_DISPLAY_DEFAULT,lO=_CSS_DISPLAY_TAGS$CSS2.CSS_WHITE_SPACE_TAGS,pO=_CSS_DISPLAY_TAGS$CSS2.CSS_WHITE_SPACE_DEFAULT,fO=yO(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]),dO=function(e,t){for(var n=Object.create(null),_i87=0,_Object$entries10=Object.entries(e);_i87<_Object$entries10.length;_i87++){var _Object$entries10$_i=_slicedToArray(_Object$entries10[_i87],2),_r115=_Object$entries10$_i[0],_o69=_Object$entries10$_i[1];n[_r115]=t(_o69,_r115)}return n}(iO,yO),hO=new Set(["\t","\n","\f","\r"," "]),mO=function mO(e){return e.replace(/[\t\n\f\r ]+$/,"")},gO=function gO(e){return e.match(/^[\t\n\f\r ]*/)[0]};function yO(e){var _step71,t=Object.create(null),_iterator71=_createForOfIteratorHelper(e);try{for(_iterator71.s();!(_step71=_iterator71.n()).done;)t[_step71.value]=!0}catch(err){_iterator71.e(err)}finally{_iterator71.f()}return t}function DO(e,t){return!("ieConditionalComment"!==e.type||!e.lastChild||e.lastChild.isSelfClosing||e.lastChild.endSourceSpan)||"ieConditionalComment"===e.type&&!e.complete||!(!kO(e)||!e.children.some((function(e){return"text"!==e.type&&"interpolation"!==e.type})))||!(!LO(e,t)||bO(e)||"interpolation"===e.type)}function EO(e){return"attribute"!==e.type&&!!e.parent&&"number"==typeof e.index&&0!==e.index&&function(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}(e.parent.children[e.index-1])}function bO(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName||NO(e)&&("script"===e.name||"style"===e.name))}function CO(e){return PO(e).startsWith("pre")}function vO(e){return"element"===e.type&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function AO(e){return wO(e)||"element"===e.type&&"br"===e.fullName||FO(e)}function FO(e){return xO(e)&&SO(e)}function xO(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.linee.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function wO(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function TO(e){var _e$attrMap2=e.attrMap,t=_e$attrMap2.type,n=_e$attrMap2.lang;return"module"===t||"text/javascript"===t||"text/babel"===t||"application/javascript"===t||"jsx"===n?"babel":"application/x-typescript"===t||"ts"===n||"tsx"===n?"typescript":"text/markdown"===t?"markdown":"text/html"===t?"html":t&&(t.endsWith("json")||t.endsWith("importmap"))?"json":"text/x-handlebars-template"===t?"glimmer":void 0}function BO(e){return"block"===e||"list-item"===e||e.startsWith("table")}function kO(e){return PO(e).startsWith("pre")}function NO(e){return"element"===e.type&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}function PO(e){return"element"===e.type&&(!e.namespace||NO(e))&&lO[e.name]||pO}var OO=new Set(["template","style","script"]);function IO(e,t){return jO(e,t)&&!OO.has(e.fullName)}function jO(e,t){return"vue"===t.parser&&"element"===e.type&&"root"===e.parent.type&&"html"!==e.fullName.toLowerCase()}function LO(e,t){return jO(e,t)&&(IO(e,t)||e.attrMap.lang&&"html"!==e.attrMap.lang)}var _O={HTML_ELEMENT_ATTRIBUTES:dO,HTML_TAGS:fO,htmlTrim:function htmlTrim(e){return function(e){return e.replace(/^[\t\n\f\r ]+/,"")}(mO(e))},htmlTrimPreserveIndentation:function htmlTrimPreserveIndentation(e){return function(e){return e.replace(/^[\t\f\r ]*?\n/g,"")}(mO(e))},splitByHtmlWhitespace:function splitByHtmlWhitespace(e){return e.split(/[\t\n\f\r ]+/)},hasHtmlWhitespace:function hasHtmlWhitespace(e){return/[\t\n\f\r ]/.test(e)},getLeadingAndTrailingHtmlWhitespace:function getLeadingAndTrailingHtmlWhitespace(e){var _e$match4=_slicedToArray(e.match(/^([\t\n\f\r ]*)([\S\s]*?)([\t\n\f\r ]*)$/),4),t=_e$match4[1],n=_e$match4[2];return{leadingWhitespace:t,trailingWhitespace:_e$match4[3],text:n}},canHaveInterpolation:function canHaveInterpolation(e){return e.children&&!bO(e)},countChars:function countChars(e,t){for(var n=0,_r116=0;_r116=0;_r117--){var _o70=e.stack[_r117];_o70&&"object"==_typeof(_o70)&&!Array.isArray(_o70)&&t(_o70)&&n++}return n},dedentString:function dedentString(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){var _step72,t=Number.POSITIVE_INFINITY,_iterator72=_createForOfIteratorHelper(e.split("\n"));try{for(_iterator72.s();!(_step72=_iterator72.n()).done;){var _n115=_step72.value;if(0!==_n115.length){if(!hO.has(_n115[0]))return 0;var _e197=gO(_n115).length;_n115.length!==_e197&&_e1970&&(["body","script","style"].includes(e.name)||e.children.some((function(e){return function(e){return e.children&&e.children.some((function(e){return"text"!==e.type}))}(e)})))||e.firstChild&&e.firstChild===e.lastChild&&"text"!==e.firstChild.type&&xO(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||SO(e.lastChild))},forceNextEmptyLine:function forceNextEmptyLine(e){return sO(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1=t.$TAB&&e<=t.$SPACE||e==t.$NBSP},t.isDigit=n,t.isAsciiLetter=function(e){return e>=t.$a&&e<=t.$z||e>=t.$A&&e<=t.$Z},t.isAsciiHexDigit=function(e){return e>=t.$a&&e<=t.$f||e>=t.$A&&e<=t.$F||n(e)},t.isNewLine=function(e){return e===t.$LF||e===t.$CR},t.isOctalDigit=function(e){return t.$0<=e&&e<=t.$7}})),RO=function(){function RO(e,t,n){_classCallCheck(this,RO),this.filePath=e,this.name=t,this.members=n}return _createClass(RO,[{key:"assertNoMembers",value:function assertNoMembers(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got ".concat(JSON.stringify(this),"."))}}]),RO}(),VO=RO,$O=function(){function $O(){_classCallCheck(this,$O),this.cache=new Map}return _createClass($O,[{key:"get",value:function get(e,t,n){var r=(n=n||[]).length?".".concat(n.join(".")):"",o='"'.concat(e,'".').concat(t).concat(r),i=this.cache.get(o);return i||(i=new RO(e,t,n),this.cache.set(o,i)),i}}]),$O}(),qO=Object.defineProperty({StaticSymbol:VO,StaticSymbolCache:$O},"__esModule",{value:!0}),WO=/-+([a-z0-9])/g,UO=function UO(e){return e.replace(WO,(function(){for(var _len15=arguments.length,e=new Array(_len15),_key15=0;_key15<_len15;_key15++)e[_key15]=arguments[_key15];return e[1].toUpperCase()}))},zO=function zO(e,t){return GO(e,":",t)},HO=function HO(e,t){return GO(e,".",t)};function GO(e,t,n){var r=e.indexOf(t);return-1==r?n:[e.slice(0,r).trim(),e.slice(r+1).trim()]}function JO(e,t,n){return Array.isArray(e)?t.visitArray(e,n):function(e){return"object"==_typeof(e)&&null!==e&&Object.getPrototypeOf(e)===sI}(e)?t.visitStringMap(e,n):null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e?t.visitPrimitive(e,n):t.visitOther(e,n)}var XO=JO,YO=function YO(e){return null!=e},KO=function KO(e){return void 0===e?null:e},QO=function(){function QO(){_classCallCheck(this,QO)}return _createClass(QO,[{key:"visitArray",value:function visitArray(e,t){var _this20=this;return e.map((function(e){return JO(e,_this20,t)}))}},{key:"visitStringMap",value:function visitStringMap(e,t){var _this21=this,n={};return Object.keys(e).forEach((function(r){n[r]=JO(e[r],_this21,t)})),n}},{key:"visitPrimitive",value:function visitPrimitive(e,t){return e}},{key:"visitOther",value:function visitOther(e,t){return e}}]),QO}(),ZO={assertSync:function assertSync(e){if(pI(e))throw new Error("Illegal state: value cannot be a promise");return e},then:function then(e,t){return pI(e)?e.then(t):t(e)},all:function all(e){return e.some(pI)?Promise.all(e):e}},eI=function eI(e){throw new Error("Internal Error: ".concat(e))},tI=function tI(e,t){var n=Error(e);return n[nI]=!0,t&&(n[rI]=t),n},nI="ngSyntaxError",rI="ngParseErrors",oI=function oI(e){return e[nI]},iI=function iI(e){return e[rI]||[]},uI=function uI(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")},sI=Object.getPrototypeOf({}),aI=function aI(e){for(var t="",_n116=0;_n116=55296&&_r118<=56319&&e.length>_n116+1){var _t171=e.charCodeAt(_n116+1);_t171>=56320&&_t171<=57343&&(_n116++,_r118=(_r118-55296<<10)+_t171-56320+65536)}_r118<=127?t+=String.fromCharCode(_r118):_r118<=2047?t+=String.fromCharCode(_r118>>6&31|192,63&_r118|128):_r118<=65535?t+=String.fromCharCode(_r118>>12|224,_r118>>6&63|128,63&_r118|128):_r118<=2097151&&(t+=String.fromCharCode(_r118>>18&7|240,_r118>>12&63|128,_r118>>6&63|128,63&_r118|128))}return t},cI=function e(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(e).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);if(!t.toString)return"object";var n=t.toString();if(null==n)return""+n;var r=n.indexOf("\n");return-1===r?n:n.substring(0,r)},lI=function lI(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")?e():e};function pI(e){return!!e&&"function"==typeof e.then}var fI=pI,dI=_createClass((function dI(e){_classCallCheck(this,dI),this.full=e;var t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")})),hI="undefined"!=typeof window&&window,mI="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,gI=void 0!==r&&r||hI||mI,yI=Object.defineProperty({dashCaseToCamelCase:UO,splitAtColon:zO,splitAtPeriod:HO,visitValue:XO,isDefined:YO,noUndefined:KO,ValueTransformer:QO,SyncAsync:ZO,error:eI,syntaxError:tI,isSyntaxError:oI,getParseErrors:iI,escapeRegExp:uI,utf8Encode:aI,stringify:cI,resolveForwardRef:lI,isPromise:fI,Version:dI,global:gI},"__esModule",{value:!0}),DI=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function r(e){return e.replace(/\W/g,"_")}t.sanitizeIdentifier=r;var u,o=0;function i(e){if(!e||!e.reference)return null;var t=e.reference;if(t instanceof qO.StaticSymbol)return t.name;if(t.__anonymousType)return t.__anonymousType;var n=yI.stringify(t);return n.indexOf("(")>=0?(n="anonymous_".concat(o++),t.__anonymousType=n):n=r(n),n}t.identifierName=i,t.identifierModuleUrl=function(e){var t=e.reference;return t instanceof qO.StaticSymbol?t.filePath:"./".concat(yI.stringify(t))},t.viewClassName=function(e,t){return"View_".concat(i({reference:e}),"_").concat(t)},t.rendererTypeName=function(e){return"RenderType_".concat(i({reference:e}))},t.hostViewClassName=function(e){return"HostView_".concat(i({reference:e}))},t.componentFactoryName=function(e){return"".concat(i({reference:e}),"NgFactory")},function(e){e[e.Pipe=0]="Pipe",e[e.Directive=1]="Directive",e[e.NgModule=2]="NgModule",e[e.Injectable=3]="Injectable"}(u=t.CompileSummaryKind||(t.CompileSummaryKind={})),t.tokenName=function(e){return null!=e.value?r(e.value):i(e.identifier)},t.tokenReference=function(e){return null!=e.identifier?e.identifier.reference:e.value},t.CompileStylesheetMetadata=function(){function _class11(){var _ref109=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=_ref109.moduleUrl,t=_ref109.styles,n=_ref109.styleUrls;_classCallCheck(this,_class11),this.moduleUrl=e||null,this.styles=a(t),this.styleUrls=a(n)}return _createClass(_class11)}(),t.CompileTemplateMetadata=function(){function _class12(_ref110){var e=_ref110.encapsulation,t=_ref110.template,n=_ref110.templateUrl,r=_ref110.htmlAst,o=_ref110.styles,i=_ref110.styleUrls,u=_ref110.externalStylesheets,s=_ref110.animations,l=_ref110.ngContentSelectors,p=_ref110.interpolation,f=_ref110.isInline,d=_ref110.preserveWhitespaces;if(_classCallCheck(this,_class12),this.encapsulation=e,this.template=t,this.templateUrl=n,this.htmlAst=r,this.styles=a(o),this.styleUrls=a(i),this.externalStylesheets=a(u),this.animations=s?c(s):[],this.ngContentSelectors=l||[],p&&2!=p.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=p,this.isInline=f,this.preserveWhitespaces=d}return _createClass(_class12,[{key:"toSummary",value:function toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}}]),_class12}();var s=function(){function s(_ref111){var e=_ref111.isHost,t=_ref111.type,n=_ref111.isComponent,r=_ref111.selector,o=_ref111.exportAs,i=_ref111.changeDetection,u=_ref111.inputs,_s34=_ref111.outputs,c=_ref111.hostListeners,l=_ref111.hostProperties,p=_ref111.hostAttributes,f=_ref111.providers,d=_ref111.viewProviders,h=_ref111.queries,m=_ref111.guards,g=_ref111.viewQueries,y=_ref111.entryComponents,D=_ref111.template,E=_ref111.componentViewType,b=_ref111.rendererType,C=_ref111.componentFactory;_classCallCheck(this,s),this.isHost=!!e,this.type=t,this.isComponent=n,this.selector=r,this.exportAs=o,this.changeDetection=i,this.inputs=u,this.outputs=_s34,this.hostListeners=c,this.hostProperties=l,this.hostAttributes=p,this.providers=a(f),this.viewProviders=a(d),this.queries=a(h),this.guards=m,this.viewQueries=a(g),this.entryComponents=a(y),this.template=D,this.componentViewType=E,this.rendererType=b,this.componentFactory=C}return _createClass(s,[{key:"toSummary",value:function toSummary(){return{summaryKind:u.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}}],[{key:"create",value:function create(_ref112){var e=_ref112.isHost,t=_ref112.type,r=_ref112.isComponent,o=_ref112.selector,i=_ref112.exportAs,u=_ref112.changeDetection,a=_ref112.inputs,c=_ref112.outputs,l=_ref112.host,p=_ref112.providers,f=_ref112.viewProviders,d=_ref112.queries,h=_ref112.guards,m=_ref112.viewQueries,g=_ref112.entryComponents,y=_ref112.template,D=_ref112.componentViewType,E=_ref112.rendererType,b=_ref112.componentFactory,C={},v={},A={};null!=l&&Object.keys(l).forEach((function(e){var t=l[e],r=e.match(n);null===r?A[e]=t:null!=r[1]?v[r[1]]=t:null!=r[2]&&(C[r[2]]=t)}));var F={};null!=a&&a.forEach((function(e){var t=yI.splitAtColon(e,[e,e]);F[t[0]]=t[1]}));var x={};return null!=c&&c.forEach((function(e){var t=yI.splitAtColon(e,[e,e]);x[t[0]]=t[1]})),new s({isHost:e,type:t,isComponent:!!r,selector:o,exportAs:i,changeDetection:u,inputs:F,outputs:x,hostListeners:C,hostProperties:v,hostAttributes:A,providers:p,viewProviders:f,queries:d,guards:h,viewQueries:m,entryComponents:g,template:y,componentViewType:D,rendererType:E,componentFactory:b})}}]),s}();function a(e){return e||[]}function c(e){return e.reduce((function(e,t){var n=Array.isArray(t)?c(t):t;return e.concat(n)}),[])}function l(e){return e.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}t.CompileDirectiveMetadata=s,t.CompilePipeMetadata=function(){function _class13(_ref113){var e=_ref113.type,t=_ref113.name,n=_ref113.pure;_classCallCheck(this,_class13),this.type=e,this.name=t,this.pure=!!n}return _createClass(_class13,[{key:"toSummary",value:function toSummary(){return{summaryKind:u.Pipe,type:this.type,name:this.name,pure:this.pure}}}]),_class13}(),t.CompileShallowModuleMetadata=function(){function _class14(){_classCallCheck(this,_class14)}return _createClass(_class14)}(),t.CompileNgModuleMetadata=function(){function _class15(_ref114){var e=_ref114.type,t=_ref114.providers,n=_ref114.declaredDirectives,r=_ref114.exportedDirectives,o=_ref114.declaredPipes,i=_ref114.exportedPipes,u=_ref114.entryComponents,s=_ref114.bootstrapComponents,c=_ref114.importedModules,l=_ref114.exportedModules,p=_ref114.schemas,f=_ref114.transitiveModule,d=_ref114.id;_classCallCheck(this,_class15),this.type=e||null,this.declaredDirectives=a(n),this.exportedDirectives=a(r),this.declaredPipes=a(o),this.exportedPipes=a(i),this.providers=a(t),this.entryComponents=a(u),this.bootstrapComponents=a(s),this.importedModules=a(c),this.exportedModules=a(l),this.schemas=a(p),this.id=d||null,this.transitiveModule=f||null}return _createClass(_class15,[{key:"toSummary",value:function toSummary(){var e=this.transitiveModule;return{summaryKind:u.NgModule,type:this.type,entryComponents:e.entryComponents,providers:e.providers,modules:e.modules,exportedDirectives:e.exportedDirectives,exportedPipes:e.exportedPipes}}}]),_class15}(),t.TransitiveCompileNgModuleMetadata=function(){function _class16(){_classCallCheck(this,_class16),this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return _createClass(_class16,[{key:"addProvider",value:function addProvider(e,t){this.providers.push({provider:e,module:t})}},{key:"addDirective",value:function addDirective(e){this.directivesSet.has(e.reference)||(this.directivesSet.add(e.reference),this.directives.push(e))}},{key:"addExportedDirective",value:function addExportedDirective(e){this.exportedDirectivesSet.has(e.reference)||(this.exportedDirectivesSet.add(e.reference),this.exportedDirectives.push(e))}},{key:"addPipe",value:function addPipe(e){this.pipesSet.has(e.reference)||(this.pipesSet.add(e.reference),this.pipes.push(e))}},{key:"addExportedPipe",value:function addExportedPipe(e){this.exportedPipesSet.has(e.reference)||(this.exportedPipesSet.add(e.reference),this.exportedPipes.push(e))}},{key:"addModule",value:function addModule(e){this.modulesSet.has(e.reference)||(this.modulesSet.add(e.reference),this.modules.push(e))}},{key:"addEntryComponent",value:function addEntryComponent(e){this.entryComponentsSet.has(e.componentType)||(this.entryComponentsSet.add(e.componentType),this.entryComponents.push(e))}}]),_class16}(),t.ProviderMeta=function(){function _class17(e,_ref115){var t=_ref115.useClass,n=_ref115.useValue,r=_ref115.useExisting,o=_ref115.useFactory,i=_ref115.deps,u=_ref115.multi;_classCallCheck(this,_class17),this.token=e,this.useClass=t||null,this.useValue=n,this.useExisting=r,this.useFactory=o||null,this.dependencies=i||null,this.multi=!!u}return _createClass(_class17)}(),t.flatten=c,t.templateSourceUrl=function(e,t,n){var r;return r=n.isInline?t.type.reference instanceof qO.StaticSymbol?"".concat(t.type.reference.filePath,".").concat(t.type.reference.name,".html"):"".concat(i(e),"/").concat(i(t.type),".html"):n.templateUrl,t.type.reference instanceof qO.StaticSymbol?r:l(r)},t.sharedStylesheetJitUrl=function(e,t){var n=e.moduleUrl.split(/\/\\/g),r=n[n.length-1];return l("css/".concat(t).concat(r,".ngstyle.js"))},t.ngModuleJitUrl=function(e){return l("".concat(i(e.type),"/module.ngfactory.js"))},t.templateJitUrl=function(e,t){return l("".concat(i(e),"/").concat(i(t.type),".ngfactory.js"))}})),EI=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function n(e,t,_n117,r){_classCallCheck(this,n),this.file=e,this.offset=t,this.line=_n117,this.col=r}return _createClass(n,[{key:"toString",value:function toString(){return null!=this.offset?"".concat(this.file.url,"@").concat(this.line,":").concat(this.col):this.file.url}},{key:"moveBy",value:function moveBy(e){for(var t=this.file.content,r=t.length,o=this.offset,i=this.line,u=this.col;o>0&&e<0;)if(o--,e++,t.charCodeAt(o)==MO.$LF){i--;var _e198=t.substr(0,o-1).lastIndexOf(String.fromCharCode(MO.$LF));u=_e198>0?o-_e198:o}else u--;for(;o0;){var _n120=t.charCodeAt(o);o++,e--,_n120==MO.$LF?(i++,u=0):u++}return new n(this.file,o,i,u)}},{key:"getContext",value:function getContext(e,t){var _n119=this.file.content,r=this.offset;if(null!=r){r>_n119.length-1&&(r=_n119.length-1);for(var _o71=r,_i88=0,_u35=0;_i880&&(_i88++,"\n"!=_n119[--r]||++_u35!=t););for(_i88=0,_u35=0;_i882&&void 0!==arguments[2]?arguments[2]:null;_classCallCheck(this,o),this.start=e,this.end=t,this.details=n}return _createClass(o,[{key:"toString",value:function toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}}]),o}();t.ParseSourceSpan=o,t.EMPTY_PARSE_LOCATION=new n(new r("",""),0,0,0),t.EMPTY_SOURCE_SPAN=new o(t.EMPTY_PARSE_LOCATION,t.EMPTY_PARSE_LOCATION),function(e){e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR"}(i=t.ParseErrorLevel||(t.ParseErrorLevel={})),t.ParseError=function(){function _class18(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.ERROR;_classCallCheck(this,_class18),this.span=e,this.msg=t,this.level=n}return _createClass(_class18,[{key:"contextualMessage",value:function contextualMessage(){var e=this.span.start.getContext(100,3);return e?"".concat(this.msg,' ("').concat(e.before,"[").concat(i[this.level]," ->]").concat(e.after,'")'):this.msg}},{key:"toString",value:function toString(){var e=this.span.details?", ".concat(this.span.details):"";return"".concat(this.contextualMessage(),": ").concat(this.span.start).concat(e)}}]),_class18}(),t.typeSourceSpan=function(e,t){var i=DI.identifierModuleUrl(t),u=null!=i?"in ".concat(e," ").concat(DI.identifierName(t)," in ").concat(i):"in ".concat(e," ").concat(DI.identifierName(t)),s=new r("",u);return new o(new n(s,-1,-1,-1),new n(s,-1,-1,-1))},t.r3JitTypeSourceSpan=function(e,t,i){var u="in ".concat(e," ").concat(t," in ").concat(i),s=new r("",u);return new o(new n(s,-1,-1,-1),new n(s,-1,-1,-1))}})),bI=EI.ParseSourceSpan,CI=_O.htmlTrim,vI=_O.getLeadingAndTrailingHtmlWhitespace,AI=_O.hasHtmlWhitespace,FI=_O.canHaveInterpolation,xI=_O.getNodeCssStyleDisplay,SI=_O.isDanglingSpaceSensitiveNode,wI=_O.isIndentationSensitiveNode,TI=_O.isLeadingSpaceSensitiveNode,BI=_O.isTrailingSpaceSensitiveNode,kI=_O.isWhitespaceSensitiveNode,NI=[function(e){return e.map((function(e){if("element"===e.type&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&"text"===e.children[0].type&&"\n"===e.children[0].value[0]){var _e$children2=_toArray(e.children),_t172=_e$children2[0],_n121=_e$children2.slice(1);return e.clone({children:1===_t172.value.length?_n121:[_t172.clone({value:_t172.value.slice(1)})].concat(_toConsumableArray(_n121))})}return e}))},function(e){var t=function t(e){return"element"===e.type&&e.prev&&"ieConditionalStartComment"===e.prev.type&&e.prev.sourceSpan.end.offset===e.startSourceSpan.start.offset&&e.firstChild&&"ieConditionalEndComment"===e.firstChild.type&&e.firstChild.sourceSpan.start.offset===e.startSourceSpan.end.offset};return e.map((function(e){if(e.children){var _n122=e.children.map(t);if(_n122.some(Boolean)){for(var _t173=[],_r119=0;_r119")}))},function(e,t){if("html"===t.parser)return e;var n=/{{([\S\s]+?)}}/g;return e.map((function(e){if(!FI(e))return e;var _step73,t=[],_iterator73=_createForOfIteratorHelper(e.children);try{for(_iterator73.s();!(_step73=_iterator73.n()).done;){var _r122=_step73.value;if("text"===_r122.type)for(var _e200=_r122.sourceSpan.start,_o74=null,_i91=_r122.value.split(n),_n124=0;_n124<_i91.length;_n124++,_e200=_o74){var _r123=_i91[_n124];_n124%2!=0?(_o74=_e200.moveBy(_r123.length+4),t.push({type:"interpolation",sourceSpan:new bI(_e200,_o74),children:0===_r123.length?[]:[{type:"text",value:_r123,sourceSpan:new bI(_e200.moveBy(2),_o74.moveBy(-2))}]})):(_o74=_e200.moveBy(_r123.length),_r123.length>0&&t.push({type:"text",value:_r123,sourceSpan:new bI(_e200,_o74)}))}else t.push(_r122)}}catch(err){_iterator73.e(err)}finally{_iterator73.f()}return e.clone({children:t})}))},function(e){var t="whitespace";return e.map((function(e){if(!e.children)return e;if(0===e.children.length||1===e.children.length&&"text"===e.children[0].type&&0===CI(e.children[0].value).length)return e.clone({children:[],hasDanglingSpaces:e.children.length>0});var n=kI(e),r=wI(e);return e.clone({isWhitespaceSensitive:n,isIndentationSensitive:r,children:e.children.reduce((function(e,r){if("text"!==r.type||n)return[].concat(_toConsumableArray(e),[r]);var o=[],_vI=vI(r.value),i=_vI.leadingWhitespace,u=_vI.text,s=_vI.trailingWhitespace;return i&&o.push({type:t}),u&&o.push({type:"text",value:u,sourceSpan:new bI(r.sourceSpan.start.moveBy(i.length),r.sourceSpan.end.moveBy(-s.length))}),s&&o.push({type:t}),[].concat(_toConsumableArray(e),o)}),[]).reduce((function(e,n,r,o){if(n.type===t)return e;var i=0!==r&&o[r-1].type===t,u=r!==o.length-1&&o[r+1].type===t;return[].concat(_toConsumableArray(e),[Object.assign({},n,{hasLeadingSpaces:i,hasTrailingSpaces:u})])}),[])})}))},function(e,t){return e.map((function(e){return Object.assign(e,{cssDisplay:xI(e,t)})}))},function(e){return e.map((function(e){return Object.assign(e,{isSelfClosing:!e.children||"element"===e.type&&(e.tagDefinition.isVoid||e.startSourceSpan===e.endSourceSpan)})}))},function(e,t){return e.map((function(e){return"element"!==e.type?e:Object.assign(e,{hasHtmComponentClosingTag:e.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset))})}))},function(e,t){return e.map((function(e){return e.children?0===e.children.length?e.clone({isDanglingSpaceSensitive:SI(e)}):e.clone({children:e.children.map((function(e){return Object.assign({},e,{isLeadingSpaceSensitive:TI(e,t),isTrailingSpaceSensitive:BI(e,t)})})).map((function(e,t,n){return Object.assign({},e,{isLeadingSpaceSensitive:(0===t||n[t-1].isTrailingSpaceSensitive)&&e.isLeadingSpaceSensitive,isTrailingSpaceSensitive:(t===n.length-1||n[t+1].isLeadingSpaceSensitive)&&e.isTrailingSpaceSensitive})}))}):e}))},function(e){var t=function t(e){return"element"===e.type&&0===e.attrs.length&&1===e.children.length&&"text"===e.firstChild.type&&!AI(e.children[0].value)&&!e.firstChild.hasLeadingSpaces&&!e.firstChild.hasTrailingSpaces&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces&&e.prev&&"text"===e.prev.type&&e.next&&"text"===e.next.type};return e.map((function(e){if(e.children){var _n125=e.children.map(t);if(_n125.some(Boolean)){for(var _t175=[],_r124=0;_r124")+_o75.firstChild.value+"")+_i92.value,sourceSpan:new bI(_n126.sourceSpan.start,_i92.sourceSpan.end),isTrailingSpaceSensitive:_u37,hasTrailingSpaces:_s36}))}else _t175.push(_o75)}return e.clone({children:_t175})}}return e}))}],PI=function PI(e,t){var _step74,_iterator74=_createForOfIteratorHelper(NI);try{for(_iterator74.s();!(_step74=_iterator74.n()).done;)e=(0,_step74.value)(e,t)}catch(err){_iterator74.e(err)}finally{_iterator74.f()}return e},OI={hasPragma:function hasPragma(e){return/^\s*/.test(e)},insertPragma:function insertPragma(e){return"\x3c!-- @format --\x3e\n\n"+e.replace(/^\s*\n/,"")}},II={locStart:function locStart(e){return e.sourceSpan.start.offset},locEnd:function locEnd(e){return e.sourceSpan.end.offset}},jI=Rn.builders.group,LI={isVueEventBindingExpression:function isVueEventBindingExpression(e){var t=e.trim();return/^([\w$]+|\([^)]*?\))\s*=>|^function\s*\(/.test(t)||/^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[$A-Z_a-z][\w$]*])*$/.test(t)},printVueFor:function printVueFor(e,t){var _ref116=function(e){var t=/([^]*?)\s+(in|of)\s+([^]*)/,n=/,([^,\]}]*)(?:,([^,\]}]*))?$/,r=/^\(|\)$/g,o=e.match(t);if(o){var i={};i.for=o[3].trim();var u=o[1].trim().replace(r,""),s=u.match(n);return s?(i.alias=u.replace(n,""),i.iterator1=s[1].trim(),s[2]&&(i.iterator2=s[2].trim())):i.alias=u,{left:"".concat([i.alias,i.iterator1,i.iterator2].filter(Boolean).join(",")),operator:o[2],right:i.for}}}(e),n=_ref116.left,r=_ref116.operator,o=_ref116.right;return[jI(t("function _(".concat(n,") {}"),{parser:"babel",__isVueForBindingLeft:!0}))," ",r," ",t(o,{parser:"__js_expression"},{stripTrailingHardline:!0})]},printVueBindings:function printVueBindings(e,t){return t("function _(".concat(e,") {}"),{parser:"babel",__isVueBindings:!0})}},_I=i((function(e){!function(t,n){e.exports?e.exports=n():t.parseSrcset=n()}(r,(function(){return function(e,t){var n=t&&t.logger||console;function r(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function o(t){var n,r=t.exec(e.substring(y));if(r)return n=r[0],y+=n.length,n}for(var i,u,s,a,c,l=e.length,p=/^[ \t\n\r\u000c]+/,f=/^[, \t\n\r\u000c]+/,d=/^[^ \t\n\r\u000c]+/,h=/[,]+$/,m=/^\d+$/,g=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,y=0,D=[];;){if(o(f),y>=l)return D;i=o(d),u=[],","===i.slice(-1)?(i=i.replace(h,""),b()):E()}function E(){for(o(p),s="",a="in descriptor";;){if(c=e.charAt(y),"in descriptor"===a)if(r(c))s&&(u.push(s),s="",a="after descriptor");else{if(","===c)return y+=1,s&&u.push(s),void b();if("("===c)s+=c,a="in parens";else{if(""===c)return s&&u.push(s),void b();s+=c}}else if("in parens"===a)if(")"===c)s+=c,a="in descriptor";else{if(""===c)return u.push(s),void b();s+=c}else if("after descriptor"===a)if(r(c));else{if(""===c)return void b();a="in descriptor",y-=1}y+=1}}function b(){var t,r,o,s,a,c,l,p,f,d=!1,h={};for(s=0;s1)throw new Error("Mixed descriptor in srcset is not supported");var o=n?"w":r?"h":"d",i=n?"w":r?"h":"x",u=function u(e){return Math.max.apply(Math,_toConsumableArray(e))},s=t.map((function(e){return e.url})),a=u(s.map((function(e){return e.length}))),c=t.map((function(e){return e[o]})).map((function(e){return e?e.toString():""})),l=c.map((function(e){var t=e.indexOf(".");return-1===t?e.length:t})),p=u(l);return $I([",",qI],s.map((function(e,t){var n=[e],r=c[t];if(r){var _o76=a-e.length+1,_u38=p-l[t],_s37=" ".repeat(_o76+_u38);n.push(RI(_s37," "),r+i)}return n})))},printClassNames:function printClassNames(e){for(var r,t=e.trim().split(/\s+/),n=[],_e201=0;_e2010)||"element"===e.type&&e.isSelfClosing&&Zj(t)?"":!t.isLeadingSpaceSensitive||Bj(t)||Zj(t)&&e.lastChild&&tL(e.lastChild)&&e.lastChild.lastChild&&tL(e.lastChild.lastChild)?KI:t.hasLeadingSpaces?nj:oj}}function Wj(e,t){var n=e.startSourceSpan.end.offset;e.firstChild&&Qj(e.firstChild)&&(n-=uL(e).length);var r=e.endSourceSpan.start.offset;return e.lastChild&&tL(e.lastChild)?r+=sL(e,t).length:eL(e)&&(r-=aL(e.lastChild,t).length),t.originalText.slice(n,r)}function Uj(e,t,n){var r=e.getValue();if(!lj(r.attrs))return r.isSelfClosing?" ":"";var o=r.prev&&"comment"===r.prev.type&&bj(r.prev.value),i="boolean"==typeof o?function(){return o}:Array.isArray(o)?function(e){return o.includes(e.rawName)}:function(){return!1},u=e.map((function(e){var r=e.getValue();return i(r)?cj(t.originalText.slice(jj(r),Lj(r)),rj):n()}),"attrs"),s="element"===r.type&&"script"===r.fullName&&1===r.attrs.length&&"src"===r.attrs[0].fullName&&0===r.children.length,a=[ej([s?" ":nj,tj(nj,u)])];return r.firstChild&&Qj(r.firstChild)||r.isSelfClosing&&eL(r.parent)||s?a.push(r.isSelfClosing?" ":""):a.push(r.isSelfClosing?nj:oj),a}function zj(e,t,n){var r=e.getValue();return[Hj(r,t),Uj(e,t,n),r.isSelfClosing?"":Gj(r)]}function Hj(e,t){return e.prev&&Kj(e.prev)?"":[nL(e,t),iL(e)]}function Gj(e){return e.firstChild&&Qj(e.firstChild)?"":uL(e)}function Jj(e,t){return[e.isSelfClosing?"":Xj(e,t),Yj(e,t)]}function Xj(e,t){return e.lastChild&&tL(e.lastChild)?"":[rL(e,t),sL(e,t)]}function Yj(e,t){return(e.next?Zj(e.next):eL(e.parent))?"":[aL(e,t),oL(e,t)]}function Kj(e){return e.next&&!Tj(e.next)&&Tj(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function Qj(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Zj(e){return e.prev&&"docType"!==e.prev.type&&!Tj(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function eL(e){return e.lastChild&&e.lastChild.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!Tj(Ej(e.lastChild))&&!Oj(e)}function tL(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&Tj(Ej(e))}function nL(e,t){return Qj(e)?uL(e.parent):Zj(e)?aL(e.prev,t):""}function rL(e,t){return eL(e)?aL(e.lastChild,t):""}function oL(e,t){return tL(e)?sL(e.parent,t):Kj(e)?iL(e.next):""}function iL(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return"\x3c!--[if ".concat(e.condition);case"ieConditionalEndComment":return"\x3c!--\x3c!--\x3e<").concat(e.rawName);default:return"<".concat(e.rawName)}}function uL(e){switch(Il(!e.isSelfClosing),e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--"}}function sL(e,t){if(Il(!e.isSelfClosing),kj(e,t))return"";switch(e.type){case"ieConditionalComment":return"\x3c!--\x3e";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function cL(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.value;return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?cj(t,rj):cj(mj(pj(t)),KI):sj(tj(nj,fj(t)))}var lL={preprocess:PI,print:function print(e,t,n){var o,r=e.getValue();switch(r.type){case"front-matter":return cj(r.raw,rj);case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(r),[YI(qj(e,t,n)),KI];case"element":case"ieConditionalComment":if(Nj(r,t))return[nL(r,t),YI(zj(e,t,n))].concat(_toConsumableArray(cj(Wj(r,t),rj)),_toConsumableArray(Jj(r,t)),[oL(r,t)]);var _i93=1===r.children.length&&"interpolation"===r.firstChild.type&&r.firstChild.isLeadingSpaceSensitive&&!r.firstChild.hasLeadingSpaces&&r.lastChild.isTrailingSpaceSensitive&&!r.lastChild.hasTrailingSpaces,_u39=Symbol("element-attr-group-id");return[YI([YI(zj(e,t,n),{id:_u39}),0===r.children.length?r.hasDanglingSpaces&&r.isDanglingSpaceSensitive?nj:"":[yj(r)?GI:"",(o=[_i93?QI(oj,"",{groupId:_u39}):r.firstChild.hasLeadingSpaces&&r.firstChild.isLeadingSpaceSensitive?nj:"text"===r.firstChild.type&&r.isWhitespaceSensitive&&r.isIndentationSensitive?JI(oj):oj,qj(e,t,n)],_i93?ZI(o,{groupId:_u39}):!wj(r)&&!Aj(r,t)||"root"!==r.parent.type||"vue"!==t.parser||t.vueIndentScriptAndStyle?ej(o):o),(r.next?Zj(r.next):eL(r.parent))?r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?" ":"":_i93?QI(oj,"",{groupId:_u39}):r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?nj:("comment"===r.lastChild.type||"text"===r.lastChild.type&&r.isWhitespaceSensitive&&r.isIndentationSensitive)&&new RegExp("\\n[\\t ]{".concat(t.tabWidth*hj(e,(function(e){return e.parent&&"root"!==e.parent.type})),"}$")).test(r.lastChild.value)?"":oj]]),Jj(r,t)];case"ieConditionalStartComment":case"ieConditionalEndComment":return[Hj(r),Yj(r)];case"interpolation":return[Hj(r,t)].concat(_toConsumableArray(e.map(n,"children")),[Yj(r,t)]);case"text":if("interpolation"===r.parent.type){var _e203=/\n[^\S\n]*?$/,_t177=_e203.test(r.value),_n129=_t177?r.value.replace(_e203,""):r.value;return[].concat(_toConsumableArray(cj(_n129,rj)),[_t177?KI:""])}var _e202=uj([nL(r,t)].concat(_toConsumableArray(cL(r)),[oL(r,t)]));return aj(_e202)||"fill"===_e202.type?XI(sj(_e202)):_e202;case"docType":return[YI([Hj(r,t)," ",r.value.replace(/^html\b/i,"html").replace(/\s+/g," ")]),Yj(r,t)];case"comment":return[nL(r,t)].concat(_toConsumableArray(cj(t.originalText.slice(jj(r),Lj(r)),rj)),[oL(r,t)]);case"attribute":if(null===r.value)return r.rawName;var _e204=Pj(r.value),_t178=dj(_e204,"'")1&&void 0!==arguments[1])||arguments[1];return YI([ej([oj,e]),t?oj:""])},c=function c(e){return i?s(e):a(e)},l=function l(e,n){return t(e,Object.assign({__onHtmlBindingRoot:u,__embeddedInHtml:!0},n),{stripTrailingHardline:!0})};if("srcset"===e.fullName&&("img"===e.parent.fullName||"source"===e.parent.fullName))return a(Vj(o()));if("class"===e.fullName&&!n.parentParser){var _e209=o();if(!_e209.includes("{{"))return $j(_e209)}if("style"===e.fullName&&!n.parentParser){var _e210=o();if(!_e210.includes("{{"))return a(l(_e210,{parser:"css",__isHTMLStyleAttribute:!0}))}if("vue"===n.parser){if("v-for"===e.fullName)return _j(o(),l);if(xj(e)||Sj(e,n))return Mj(o(),l);var _t181=["^:","^v-bind:"],_i96=["^v-"];if(r(["^@","^v-on:"])){var _e211=o();return c(l(_e211,{parser:Rj(_e211)?"__js_expression":"__vue_event_binding"}))}if(r(_t181))return c(l(o(),{parser:"__vue_expression"}));if(r(_i96))return c(l(o(),{parser:"__js_expression"}))}if("angular"===n.parser){var _t182=function _t182(e,t){return l(e,Object.assign({},t,{trailingComma:"none"}))},_n130=["^\\*"],_i97=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],_u41=["^i18n(-.+)?$"];if(r(["^\\(.+\\)$","^on-"]))return c(_t182(o(),{parser:"__ng_action"}));if(r(_i97))return c(_t182(o(),{parser:"__ng_binding"}));if(r(_u41)){var _t183=o().trim();return a(XI(cL(e,_t183)),!_t183.includes("@@"))}if(r(_n130))return c(_t182(o(),{parser:"__ng_directive"}));var _s39=/{{([\S\s]+?)}}/g,_p14=o();if(_s39.test(_p14)){var _step76,_e212=[],_iterator76=_createForOfIteratorHelper(_p14.split(_s39).entries());try{for(_iterator76.s();!(_step76=_iterator76.n()).done;){var _step76$value=_slicedToArray(_step76.value,2),_n131=_step76$value[0],_r126=_step76$value[1];if(_n131%2==0)_e212.push(cj(_r126,rj));else try{_e212.push(YI(["{{",ej([nj,_t182(_r126,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),nj,"}}"]))}catch(t){_e212.push("{{",cj(_r126,rj),"}}")}}}catch(err){_iterator76.e(err)}finally{_iterator76.f()}return YI(_e212)}}return null}(o,(function(e,t){return n(e,Object.assign({__isInHtmlAttribute:!0,__embeddedInHtml:!0},t),{stripTrailingHardline:!0})}),r);if(_e208)return[o.rawName,'="',YI(ij(_e208,(function(e){return"string"==typeof e?e.replace(/"/g,"""):e}))),'"'];break;case"front-matter":return Xw(o,n)}}},pL="HTML",fL={htmlWhitespaceSensitivity:{since:"1.15.0",category:pL,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},vueIndentScriptAndStyle:{since:"1.19.0",category:pL,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},dL={name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".htm",".html.hl",".inc",".xht",".xhtml"],languageId:146},hL={name:"Vue",type:"markup",color:"#2c3e50",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",languageId:391},mL={languages:[df(dL,(function(){return{name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]}})),df(dL,(function(e){return{since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:[].concat(_toConsumableArray(e.extensions),[".mjml"])}})),df(dL,(function(){return{name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]}})),df(hL,(function(){return{since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]}}))],printers:{html:lL},options:fL,parsers:{get html(){return{}.parsers.html},get vue(){return{}.parsers.vue},get angular(){return{}.parsers.angular},get lwc(){return{}.parsers.lwc}}},gL={isPragma:function isPragma(e){return/^\s*@(prettier|format)\s*$/.test(e)},hasPragma:function hasPragma(e){return/^\s*#[^\S\n]*@(prettier|format)\s*?(\n|$)/.test(e)},insertPragma:function insertPragma(e){return"# @format\n\n".concat(e)}},yL={locStart:function locStart(e){return e.position.start.offset},locEnd:function locEnd(e){return e.position.end.offset}},DL=function DL(e,t,n,r){if("root"===e.getValue().type&&r.filepath&&/(?:[/\\]|^)\.prettierrc$/.test(r.filepath))return n(r.originalText,Object.assign({},r,{parser:"json"}))},EL=rn.getLast,bL=rn.isNonEmptyArray;function CL(e,t){return e&&"string"==typeof e.type&&(!t||t.includes(e.type))}function vL(e){return"prettier-ignore"===e.value.trim()}function AL(e){return e&&bL(e.leadingComments)}function FL(e){return e&&bL(e.middleComments)}function xL(e){return e&&e.indicatorComment}function SL(e){return e&&e.trailingComment}function wL(e){return e&&bL(e.endComments)}function TL(e){var n,_step77,t=[],_iterator77=_createForOfIteratorHelper(e.split(/( +)/g));try{for(_iterator77.s();!(_step77=_iterator77.n()).done;){var _r127=_step77.value;" "!==_r127?" "===n?t.push(_r127):t.push((t.pop()||"")+_r127):void 0===n&&t.unshift(""),n=_r127}}catch(err){_iterator77.e(err)}finally{_iterator77.f()}return" "===n&&t.push((t.pop()||"")+" "),""===t[0]&&(t.shift(),t.unshift(" "+(t.shift()||""))),t}var BL={getLast:EL,getAncestorCount:function getAncestorCount(e,t){for(var n=0,r=e.stack.length-1,_o78=0;_o780&&t.length>0&&!/^\s/.test(t[0])&&!/^\s|\s$/.test(EL(e))?[].concat(_toConsumableArray(e.slice(0,-1)),[[].concat(_toConsumableArray(EL(e)),_toConsumableArray(t))]):[].concat(_toConsumableArray(e),[t])}),[]).map((function(e){return e.reduce((function(e,t){return e.length>0&&/\s$/.test(EL(e))?[].concat(_toConsumableArray(e.slice(0,-1)),[EL(e)+" "+t]):[].concat(_toConsumableArray(e),[t])}),[])})).map((function(e){return"never"===r.proseWrap?[e.join(" ")]:e})));function a(t){if("keep"===e.chomping)return 0===EL(t).length?t.slice(0,-1):t;for(var r=0,_e214=t.length-1;_e214>=0&&0===t[_e214].length;_e214--)r++;return 0===r?t:r>=2&&!n?t.slice(0,-(r-1)):t.slice(0,-r)}},getFlowScalarLineContents:function getFlowScalarLineContents(e,t,n){var r=t.split("\n").map((function(e,t,n){return 0===t&&t===n.length-1?e:0!==t&&t!==n.length-1?e.trim():0===t?e.trimEnd():e.trimStart()}));return"preserve"===n.proseWrap?r.map((function(e){return 0===e.length?[]:[e]})):r.map((function(e){return 0===e.length?[]:TL(e)})).reduce((function(t,n,o){return 0!==o&&r[o-1].length>0&&n.length>0&&("quoteDouble"!==e||!EL(EL(t)).endsWith("\\"))?[].concat(_toConsumableArray(t.slice(0,-1)),[[].concat(_toConsumableArray(EL(t)),_toConsumableArray(n))]):[].concat(_toConsumableArray(t),[n])}),[]).map((function(e){return"never"===n.proseWrap?[e.join(" ")]:e}))},getLastDescendantNode:function e(t){return bL(t.children)?e(EL(t.children)):t},hasPrettierIgnore:function hasPrettierIgnore(e){var t=e.getValue();if("documentBody"===t.type){var _t185=e.getParentNode();return wL(_t185.head)&&vL(EL(_t185.head.endComments))}return AL(t)&&vL(EL(t.leadingComments))},hasLeadingComments:AL,hasMiddleComments:FL,hasIndicatorComment:xL,hasTrailingComment:SL,hasEndComments:wL},kL=BL.defineShortcut,NL=BL.mapNode;function PL(e){switch(e.type){case"document":kL(e,"head",(function(){return e.children[0]})),kL(e,"body",(function(){return e.children[1]}));break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":kL(e,"content",(function(){return e.children[0]}));break;case"mappingItem":case"flowMappingItem":kL(e,"key",(function(){return e.children[0]})),kL(e,"value",(function(){return e.children[1]}))}return e}var OL=function OL(e){return NL(e,PL)},_Rn$builders42=Rn.builders,IL=_Rn$builders42.softline,jL=_Rn$builders42.align,LL=BL.hasEndComments,_L=BL.isNextLineEmpty,ML=BL.isNode,RL=new WeakMap;function VL(e){return LL(e)&&!ML(e,["documentHead","documentBody","flowMapping","flowSequence"])}var $L={alignWithSpaces:function alignWithSpaces(e,t){return jL(" ".repeat(e),t)},shouldPrintEndComments:VL,printNextEmptyLine:function printNextEmptyLine(e,t){var o,n=e.getValue(),r=e.stack[0];return RL.has(r)?o=RL.get(r):(o=new Set,RL.set(r,o)),o.has(n.position.end.line)||(o.add(n.position.end.line),!_L(n,t)||VL(e.getParentNode()))?"":IL}},_Rn$builders43=Rn.builders,qL=_Rn$builders43.ifBreak,WL=_Rn$builders43.line,UL=_Rn$builders43.softline,zL=_Rn$builders43.hardline,HL=_Rn$builders43.join,GL=BL.isEmptyNode,JL=BL.getLast,XL=BL.hasEndComments,YL=$L.printNextEmptyLine,KL=$L.alignWithSpaces;function QL(e,t,n){var r=e.getValue(),o="flowMapping"===r.type,i=o?"{":"[",u=o?"}":"]",s=UL;o&&r.children.length>0&&n.bracketSpacing&&(s=WL);var a=JL(r.children),c=a&&"flowMappingItem"===a.type&&GL(a.key)&&GL(a.value);return[i,KL(n.tabWidth,[s,ZL(e,t,n),"none"===n.trailingComma?"":qL(","),XL(r)?[zL,HL(zL,e.map(t,"endComments"))]:""]),c?"":s,u]}function ZL(e,t,n){var r=e.getValue();return e.map((function(e,o){return[t(),o===r.children.length-1?"":[",",WL,r.children[o].position.start.line!==r.children[o+1].position.start.line?YL(e,n.originalText):""]]}),"children")}var e_={printFlowMapping:QL,printFlowSequence:QL},_Rn$builders44=Rn.builders,t_=_Rn$builders44.conditionalGroup,n_=_Rn$builders44.group,r_=_Rn$builders44.hardline,o_=_Rn$builders44.ifBreak,i_=_Rn$builders44.join,u_=_Rn$builders44.line,s_=BL.hasLeadingComments,a_=BL.hasMiddleComments,c_=BL.hasTrailingComment,l_=BL.hasEndComments,p_=BL.isNode,f_=BL.isEmptyNode,d_=BL.isInlineNode,h_=$L.alignWithSpaces;function m_(e,t){if(!e)return!0;switch(e.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if("preserve"===t.proseWrap)return e.position.start.line===e.position.end.line;if(/\\$/m.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case"never":return!e.value.includes("\n");case"always":return!/[\n ]/.test(e.value);default:return!1}}var g_=function g_(e,t,n,r,o){var i=e.key,u=e.value,s=f_(i),a=f_(u);if(s&&a)return": ";var c=r("key"),l=function(e){return e.key.content&&"alias"===e.key.content.type}(e)?" ":"";if(a)return"flowMappingItem"===e.type&&"flowMapping"===t.type?c:"mappingItem"!==e.type||!m_(i.content,o)||c_(i.content)||t.tag&&"tag:yaml.org,2002:set"===t.tag.value?["? ",h_(2,c)]:[c,l,":"];var p=r("value");if(s)return[": ",h_(2,p)];if(s_(u)||!d_(i.content))return["? ",h_(2,c),r_,i_("",n.map(r,"value","leadingComments").map((function(e){return[e,r_]}))),": ",h_(2,p)];if(function(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":return e.position.start.line===e.position.end.line;case"alias":return!0;default:return!1}}(i.content)&&!s_(i.content)&&!a_(i.content)&&!c_(i.content)&&!l_(i)&&!s_(u.content)&&!a_(u.content)&&!l_(u)&&m_(u.content,o))return[c,l,": ",p];var f=Symbol("mappingKey"),d=n_([o_("? "),n_(h_(2,c),{id:f})]),h=[r_,": ",h_(2,p)],m=[l,":"];s_(u.content)||l_(u)&&u.content&&!p_(u.content,["mapping","sequence"])||"mapping"===t.type&&c_(i.content)&&d_(u.content)||p_(u.content,["mapping","sequence"])&&null===u.content.tag&&null===u.content.anchor?m.push(r_):u.content&&m.push(u_),m.push(p);var g=h_(o.tabWidth,m);return t_([[d,o_(h,g,{groupId:f})]])},_Rn$builders45=Rn.builders,y_=_Rn$builders45.dedent,D_=_Rn$builders45.dedentToRoot,E_=_Rn$builders45.fill,b_=_Rn$builders45.hardline,C_=_Rn$builders45.join,v_=_Rn$builders45.line,A_=_Rn$builders45.literalline,F_=_Rn$builders45.markAsRoot,x_=Rn.utils.getDocParts,S_=BL.getAncestorCount,w_=BL.getBlockValueLineContents,T_=BL.hasIndicatorComment,B_=BL.isLastDescendantNode,k_=BL.isNode,N_=$L.alignWithSpaces,P_=function P_(e,t,n){var r=e.getValue(),o=S_(e,(function(e){return k_(e,["sequence","mapping"])})),i=B_(e),u=["blockFolded"===r.type?">":"|"];null!==r.indent&&u.push(r.indent.toString()),"clip"!==r.chomping&&u.push("keep"===r.chomping?"+":"-"),T_(r)&&u.push(" ",t("indicatorComment"));var _step78,s=w_(r,{parentIndent:o,isLastDescendant:i,options:n}),a=[],_iterator78=_createForOfIteratorHelper(s.entries());try{for(_iterator78.s();!(_step78=_iterator78.n()).done;){var _step78$value=_slicedToArray(_step78.value,2),_e215=_step78$value[0],_t186=_step78$value[1];0===_e215&&a.push(b_),a.push(E_(x_(C_(v_,_t186)))),_e215!==s.length-1?a.push(0===_t186.length?b_:F_(A_)):"keep"===r.chomping&&i&&a.push(D_(0===_t186.length?b_:A_))}}catch(err){_iterator78.e(err)}finally{_iterator78.f()}return null===r.indent?u.push(y_(N_(n.tabWidth,a))):u.push(D_(N_(r.indent-1+o,a))),u},_Rn$builders46=Rn.builders,O_=_Rn$builders46.breakParent,I_=_Rn$builders46.fill,j_=_Rn$builders46.group,L_=_Rn$builders46.hardline,__=_Rn$builders46.join,M_=_Rn$builders46.line,R_=_Rn$builders46.lineSuffix,V_=_Rn$builders46.literalline,$_=Rn.utils.getDocParts,q_=rn.replaceEndOfLineWith,W_=rn.isPreviousLineEmpty,U_=gL.insertPragma,z_=gL.isPragma,H_=yL.locStart,G_=BL.getFlowScalarLineContents,J_=BL.getLastDescendantNode,X_=BL.hasLeadingComments,Y_=BL.hasMiddleComments,K_=BL.hasTrailingComment,Q_=BL.hasEndComments,Z_=BL.hasPrettierIgnore,eM=BL.isLastDescendantNode,tM=BL.isNode,nM=BL.isInlineNode,rM=$L.alignWithSpaces,oM=$L.printNextEmptyLine,iM=$L.shouldPrintEndComments,uM=e_.printFlowMapping,sM=e_.printFlowSequence;function aM(e,t){return K_(e)||t&&(t.head.children.length>0||Q_(t.head))}function cM(e,t,n){var r=G_(e,t,n);return __(L_,r.map((function(e){return I_($_(__(M_,e)))})))}var lM={preprocess:OL,embed:DL,print:function print(e,t,n){var r=e.getValue(),o=[];"mappingValue"!==r.type&&X_(r)&&o.push([__(L_,e.map(n,"leadingComments")),L_]);var i=r.tag,u=r.anchor;i&&o.push(n("tag")),i&&u&&o.push(" "),u&&o.push(n("anchor"));var s="";tM(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!eM(e)&&(s=oM(e,t.originalText)),(i||u)&&(tM(r,["sequence","mapping"])&&!Y_(r)?o.push(L_):o.push(" ")),Y_(r)&&o.push([1===r.middleComments.length?"":L_,__(L_,e.map(n,"middleComments")),L_]);var a=e.getParentNode();return Z_(e)?o.push(q_(t.originalText.slice(r.position.start.offset,r.position.end.offset).trimEnd(),V_)):o.push(j_(function(e,t,n,r,o){switch(e.type){case"root":var _t187=e.children,_r130=[];n.each((function(e,n){var i=_t187[n],u=_t187[n+1];0!==n&&_r130.push(L_),_r130.push(o()),aM(i,u)?(_r130.push(L_,"..."),K_(i)&&_r130.push(" ",o("trailingComment"))):u&&!K_(u.head)&&_r130.push(L_,"---")}),"children");var _i98=J_(e);return tM(_i98,["blockLiteral","blockFolded"])&&"keep"===_i98.chomping||_r130.push(L_),_r130;case"document":var _i99=[];return"head"===function(e,t,n,r){return n.children[0]===e&&/---(\s|$)/.test(r.originalText.slice(H_(e),H_(e)+4))||e.head.children.length>0||Q_(e.head)||K_(e.head)?"head":!aM(e,t)&&!!t&&"root"}(e,t.children[n.getName()+1],t,r)&&((e.head.children.length>0||e.head.endComments.length>0)&&_i99.push(o("head")),K_(e.head)?_i99.push(["---"," ",o(["head","trailingComment"])]):_i99.push("---")),function(e){return e.body.children.length>0||Q_(e.body)}(e)&&_i99.push(o("body")),__(L_,_i99);case"documentHead":return __(L_,[].concat(_toConsumableArray(n.map(o,"children")),_toConsumableArray(n.map(o,"endComments"))));case"documentBody":var _t188=e.children,_r131=e.endComments,_i100="";if(_t188.length>0&&_r131.length>0){var _t189=J_(e);tM(_t189,["blockFolded","blockLiteral"])?"keep"!==_t189.chomping&&(_i100=[L_,L_]):_i100=L_}return[__(L_,n.map(o,"children")),_i100,__(L_,n.map(o,"endComments"))];case"directive":return["%",__(" ",[e.name].concat(_toConsumableArray(e.parameters)))];case"comment":return["#",e.value];case"alias":return["*",e.value];case"tag":return r.originalText.slice(e.position.start.offset,e.position.end.offset);case"anchor":return["&",e.value];case"plain":return cM(e.type,r.originalText.slice(e.position.start.offset,e.position.end.offset),r);case"quoteDouble":case"quoteSingle":var _t190="'",_n133='"',_o80=r.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if("quoteSingle"===e.type&&_o80.includes("\\")||"quoteDouble"===e.type&&/\\[^"]/.test(_o80)){var _i102="quoteDouble"===e.type?_n133:_t190;return[_i102,cM(e.type,_o80,r),_i102]}if(_o80.includes(_n133))return[_t190,cM(e.type,"quoteDouble"===e.type?_o80.replace(/\\"/g,_n133).replace(/'/g,_t190.repeat(2)):_o80,r),_t190];if(_o80.includes(_t190))return[_n133,cM(e.type,"quoteSingle"===e.type?_o80.replace(/''/g,_t190):_o80,r),_n133];var _i101=r.singleQuote?_t190:_n133;return[_i101,cM(e.type,_o80,r),_i101];case"blockFolded":case"blockLiteral":return P_(n,o,r);case"mapping":case"sequence":return __(L_,n.map(o,"children"));case"sequenceItem":return["- ",rM(2,e.content?o("content"):"")];case"mappingKey":case"mappingValue":return e.content?o("content"):"";case"mappingItem":case"flowMappingItem":return g_(e,t,n,o,r);case"flowMapping":return uM(n,o,r);case"flowSequence":return sM(n,o,r);case"flowSequenceItem":return o("content");default:throw new Error("Unexpected node type ".concat(e.type))}}(r,a,e,t,n))),K_(r)&&!tM(r,["document","documentHead"])&&o.push(R_(["mappingValue"!==r.type||r.content?" ":"","mappingKey"===a.type&&"mapping"===e.getParentNode(2).type&&nM(r)?"":O_,n("trailingComment")])),iM(r)&&o.push(rM("sequenceItem"===r.type?2:0,[L_,__(L_,e.map((function(e){return[W_(t.originalText,e.getValue(),H_)?L_:"",n()]}),"endComments"))])),o.push(s),o},massageAstNode:function massageAstNode(e,t){if(tM(t))switch(delete t.position,t.type){case"comment":if(z_(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote"}},insertPragma:U_},pM={bracketSpacing:Ow.bracketSpacing,singleQuote:Ow.singleQuote,proseWrap:Ow.proseWrap},fM=[qw,GB,rN,FN,eO,mL,{languages:[df({name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","glide.lock","yarn.lock"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407},(function(e){return{since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"],filenames:[].concat(_toConsumableArray(e.filenames.filter((function(e){return"yarn.lock"!==e}))),[".prettierrc"])}}))],printers:{yaml:lM},options:pM,parsers:{get yaml(){return{}.parsers.yaml}}}],dM=n.version,hM=Mt.getSupportInfo,mM=fM.map((function(t){return e(t,["parsers"])}));function gM(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return function(){for(var _len16=arguments.length,n=new Array(_len16),_key16=0;_key16<_len16;_key16++)n[_key16]=arguments[_key16];var r=n[t]||{},o=r.plugins||[];return n[t]=Object.assign({},r,{plugins:[].concat(_toConsumableArray(mM),_toConsumableArray(Array.isArray(o)?o:Object.values(o)))}),e.apply(void 0,n)}}var yM=gM($p.formatWithCursor);return{formatWithCursor:yM,format:function format(e,t){return yM(e,t).formatted},check:function check(e,t){return yM(e,t).formatted===e},doc:Rn,getSupportInfo:gM(hM,0),version:dM,util:ff,__debug:{parse:gM($p.parse),formatAST:gM($p.formatAST),formatDoc:gM($p.formatDoc),printToDoc:gM($p.printToDoc),printDocToString:gM($p.printDocToString)}}}()}(standalone);var prettier=Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_91__.L)(standalone.exports),formatter=memoizerific__WEBPACK_IMPORTED_MODULE_90___default()(2)((function(type,source){return!1===type?source:"dedent"===type||!0===type?Object(_index_681e4b07_js__WEBPACK_IMPORTED_MODULE_91__.J)(source):prettier.format(source,{parser:type,plugins:[prettierHtml],htmlWhitespaceSensitivity:"ignore"}).trim()}))},"./node_modules/core-js/internals/string-trim-start.js":function(module,exports,__webpack_require__){"use strict";var $trimStart=__webpack_require__("./node_modules/core-js/internals/string-trim.js").start,forcedStringTrimMethod=__webpack_require__("./node_modules/core-js/internals/string-trim-forced.js");module.exports=forcedStringTrimMethod("trimStart")?function trimStart(){return $trimStart(this)}:"".trimStart},"./node_modules/core-js/modules/es.string.anchor.js":function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__("./node_modules/core-js/internals/export.js"),createHTML=__webpack_require__("./node_modules/core-js/internals/create-html.js");$({target:"String",proto:!0,forced:__webpack_require__("./node_modules/core-js/internals/string-html-forced.js")("anchor")},{anchor:function anchor(name){return createHTML(this,"a","name",name)}})},"./node_modules/core-js/modules/es.string.code-point-at.js":function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__("./node_modules/core-js/internals/export.js"),codeAt=__webpack_require__("./node_modules/core-js/internals/string-multibyte.js").codeAt;$({target:"String",proto:!0},{codePointAt:function codePointAt(pos){return codeAt(this,pos)}})},"./node_modules/core-js/modules/es.string.from-code-point.js":function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__("./node_modules/core-js/internals/export.js"),uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),toAbsoluteIndex=__webpack_require__("./node_modules/core-js/internals/to-absolute-index.js"),$RangeError=RangeError,fromCharCode=String.fromCharCode,$fromCodePoint=String.fromCodePoint,join=uncurryThis([].join);$({target:"String",stat:!0,arity:1,forced:!!$fromCodePoint&&1!==$fromCodePoint.length},{fromCodePoint:function fromCodePoint(x){for(var code,elements=[],length=arguments.length,i=0;length>i;){if(code=+arguments[i++],toAbsoluteIndex(code,1114111)!==code)throw new $RangeError(code+" is not a valid code point");elements[i]=code<65536?fromCharCode(code):fromCharCode(55296+((code-=65536)>>10),code%1024+56320)}return join(elements,"")}})},"./node_modules/core-js/modules/es.string.trim-left.js":function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__("./node_modules/core-js/internals/export.js"),trimStart=__webpack_require__("./node_modules/core-js/internals/string-trim-start.js");$({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==trimStart},{trimLeft:trimStart})},"./node_modules/core-js/modules/es.string.trim-start.js":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.string.trim-left.js");var $=__webpack_require__("./node_modules/core-js/internals/export.js"),trimStart=__webpack_require__("./node_modules/core-js/internals/string-trim-start.js");$({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==trimStart},{trimStart:trimStart})},"./node_modules/core-js/modules/es.typed-array.uint16-array.js":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/internals/typed-array-constructor.js")("Uint16",(function(init){return function Uint16Array(data,byteOffset,length){return init(this,data,byteOffset,length)}}))},"./node_modules/core-js/modules/es.typed-array.uint8-array.js":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/internals/typed-array-constructor.js")("Uint8",(function(init){return function Uint8Array(data,byteOffset,length){return init(this,data,byteOffset,length)}}))},"./node_modules/core-js/modules/web.url.to-json.js":function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__("./node_modules/core-js/internals/export.js"),call=__webpack_require__("./node_modules/core-js/internals/function-call.js");$({target:"URL",proto:!0,enumerable:!0},{toJSON:function toJSON(){return call(URL.prototype.toString,this)}})}}]); +//# sourceMappingURL=9.4381b1d1.iframe.bundle.js.map \ No newline at end of file diff --git a/9.4381b1d1.iframe.bundle.js.LICENSE.txt b/9.4381b1d1.iframe.bundle.js.LICENSE.txt new file mode 100644 index 000000000..1ade02a1c --- /dev/null +++ b/9.4381b1d1.iframe.bundle.js.LICENSE.txt @@ -0,0 +1,31 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ diff --git a/9.4381b1d1.iframe.bundle.js.map b/9.4381b1d1.iframe.bundle.js.map new file mode 100644 index 000000000..824f2effd --- /dev/null +++ b/9.4381b1d1.iframe.bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"9.4381b1d1.iframe.bundle.js","sources":[],"mappings":";A","sourceRoot":""} \ No newline at end of file diff --git a/9.b98f3258c67a6081687f.manager.bundle.js b/9.b98f3258c67a6081687f.manager.bundle.js new file mode 100644 index 000000000..086cc3299 --- /dev/null +++ b/9.b98f3258c67a6081687f.manager.bundle.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{897:function(module,exports){module.exports=function(e,n){return n=n||{},new Promise((function(t,r){var s=new XMLHttpRequest,o=[],u=[],i={},a=function(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:a,headers:{keys:function(){return o},entries:function(){return u},get:function(e){return i[e.toLowerCase()]},has:function(e){return e.toLowerCase()in i}}}};for(var l in s.open(n.method||"get",e,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,n,t){o.push(n=n.toLowerCase()),u.push([n,t]),i[n]=i[n]?i[n]+","+t:t})),t(a())},s.onerror=r,s.withCredentials="include"==n.credentials,n.headers)s.setRequestHeader(l,n.headers[l]);s.send(n.body||null)}))}}}]); \ No newline at end of file diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 000000000..428500fde Binary files /dev/null and b/favicon.ico differ diff --git a/iframe.html b/iframe.html new file mode 100644 index 000000000..c4fe445db --- /dev/null +++ b/iframe.html @@ -0,0 +1,375 @@ +Webpack App

No Preview

Sorry, but you either have no stories or none are selected somehow.

  • Please check the Storybook config.
  • Try reloading the page.

If the problem persists, check the browser console, or the terminal you've run Storybook from.

\ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 000000000..677c99c67 --- /dev/null +++ b/index.html @@ -0,0 +1,59 @@ +Webpack App
\ No newline at end of file diff --git a/main.4133a2853cebaffbf8ed.manager.bundle.js b/main.4133a2853cebaffbf8ed.manager.bundle.js new file mode 100644 index 000000000..d11fc79bc --- /dev/null +++ b/main.4133a2853cebaffbf8ed.manager.bundle.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{460:function(module,exports,__webpack_require__){__webpack_require__(461),__webpack_require__(839),__webpack_require__(840),__webpack_require__(838),module.exports=__webpack_require__(841)},515:function(module,exports){}},[[460,3,4]]]); \ No newline at end of file diff --git a/main.7ab73a2c.iframe.bundle.js b/main.7ab73a2c.iframe.bundle.js new file mode 100644 index 000000000..721ad15a3 --- /dev/null +++ b/main.7ab73a2c.iframe.bundle.js @@ -0,0 +1,3 @@ +/*! For license information please see main.7ab73a2c.iframe.bundle.js.LICENSE.txt */ +(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{"./generated-stories-entry.js":function(module,exports,__webpack_require__){"use strict";(function(module){(0,__webpack_require__("./node_modules/@storybook/react/dist/esm/client/index.js").configure)([__webpack_require__("./src sync recursive ^\\.(?:(?:^|\\/|(?:(?:(?!(?:^|\\/)\\.).)*?)\\/)(?!\\.)(?=.)[^/]*?\\.stories\\.(js|tsx|mdx))$")],module,!1)}).call(this,__webpack_require__("./node_modules/webpack/buildin/module.js")(module))},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/lib/__experimental__typography.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-experimental__rem__units .sendbird-label--h-1{font-size:1.25rem}.sendbird-experimental__rem__units .sendbird-label--h-2{font-size:1.125rem}.sendbird-experimental__rem__units .sendbird-label--subtitle-1{font-size:1rem}.sendbird-experimental__rem__units .sendbird-label--subtitle-2{font-size:.875rem}.sendbird-experimental__rem__units .sendbird-label--body-1{font-size:.875rem}.sendbird-experimental__rem__units .sendbird-label--body-2{font-size:.75rem}.sendbird-experimental__rem__units .sendbird-label--button-1{font-size:.875rem}.sendbird-experimental__rem__units .sendbird-label--button-2{font-size:.875rem}.sendbird-experimental__rem__units .sendbird-label--caption-1{font-size:.875rem}.sendbird-experimental__rem__units .sendbird-label--caption-2{font-size:.75rem}.sendbird-experimental__rem__units .sendbird-label--caption-3{font-size:.75rem}.sendbird-experimental__rem__units .sendbird-message-search-pannel .sendbird-message-search-pannel__input__container__input-area{font-size:.875rem}.sendbird-experimental__rem__units .sendbird-checkbox{font-size:1.375rem}.sendbird-experimental__rem__units .sendbird-mention-user-label{font-size:.875rem}.sendbird-experimental__rem__units .sendbird-mention-user-label.purple{font-size:1.125rem}.sendbird-experimental__rem__units .sendbird-message-input .sendbird-message-input--textarea,.sendbird-experimental__rem__units .sendbird-message-input .sendbird-message-input--placeholder{font-size:.875rem}.sendbird-experimental__rem__units .sendbird-input .sendbird-input__input,.sendbird-experimental__rem__units .sendbird-input .sendbird-input__placeholder{font-size:.875rem}.sendbird-experimental__rem__units .sendbird-tooltip__text{font-size:.75rem}.sendbird-experimental__rem__units .sendbird-quote-message .sendbird-quote-message__replied-to .sendbird-quote-message__replied-to__text{font-size:.75rem}.sendbird-experimental__rem__units .sendbird-quote-message .sendbird-quote-message__replied-message .sendbird-quote-message__replied-message__text-message{font-size:.75rem}.sendbird-experimental__rem__units .sendbird-quote-message .sendbird-quote-message__replied-message__file-message{font-size:.75rem}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/lib/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,"@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap);"]),exports.push([module.i,':root{--sendbird-light-primary-500: #491389;--sendbird-light-primary-400: #6211c8;--sendbird-light-primary-300: #742ddd;--sendbird-light-primary-200: #c2a9fa;--sendbird-light-primary-100: #dbd1ff;--sendbird-light-secondary-500: #066858;--sendbird-light-secondary-400: #027d69;--sendbird-light-secondary-300: #259c72;--sendbird-light-secondary-200: #69c085;--sendbird-light-secondary-100: #a8e2ab;--sendbird-light-information-100: #adc9ff;--sendbird-highlight-100: #fff2b6;--sendbird-light-error-500: #9d091e;--sendbird-light-error-400: #bf0711;--sendbird-light-error-300: #de360b;--sendbird-light-error-200: #f66161;--sendbird-light-error-100: #fdaaaa;--sendbird-light-background-700: #000000;--sendbird-light-background-600: #161616;--sendbird-light-background-500: #2C2C2C;--sendbird-light-background-400: #393939;--sendbird-light-background-300: #bdbdbd;--sendbird-light-background-200: #e0e0e0;--sendbird-light-background-100: #eeeeee;--sendbird-light-background-50: #FFFFFF;--sendbird-light-overlay-01: rgba(0, 0, 0, 0.55);--sendbird-light-overlay-02: rgba(0, 0, 0, 0.32);--sendbird-light-onlight-01: rgba(0, 0, 0, 0.88);--sendbird-light-onlight-02: rgba(0, 0, 0, 0.50);--sendbird-light-onlight-03: rgba(0, 0, 0, 0.38);--sendbird-light-onlight-04: rgba(0, 0, 0, 0.12);--sendbird-light-onlight-05: rgba(0, 0, 0, 0.44);--sendbird-light-ondark-01: rgba(255, 255, 255, 0.88);--sendbird-light-ondark-02: rgba(255, 255, 255, 0.50);--sendbird-light-ondark-03: rgba(255, 255, 255, 0.38);--sendbird-light-ondark-04: rgba(255, 255, 255, 0.12);--sendbird-light-shadow-01: 0 1px 5px 0 rgba(33, 34, 66, 0.04), 0 0 3px 0 rgba(0, 0, 0, 0.08), 0 2px 1px 0 rgba(0, 0, 0, 0.12);--sendbird-light-shadow-02: 0 3px 5px -3px rgba(33, 34, 66, 0.04), 0 3px 14px 2px rgba(0, 0, 0, 0.08), 0 8px 10px 1px rgba(0, 0, 0, 0.12);--sendbird-light-shadow-03: 0 6px 10px -5px rgba(0, 0, 0, 0.04), 0 6px 30px 5px rgba(0, 0, 0, 0.08), 0 16px 24px 2px rgba(0, 0, 0, 0.12);--sendbird-light-shadow-04: 0 9px 15px -7px rgba(0, 0, 0, 0.04), 0 9px 46px 8px rgba(0, 0, 0, 0.08), 0 24px 38px 3px rgba(0, 0, 0, 0.12);--sendbird-light-shadow-05: 0 2px 8px 0 rgba(0, 0, 0, 0.08), 0 4px 6px 0 rgba(0, 0, 0, 0.12);--sendbird-light-shadow-message-input: 0 1px 5px 0 rgba(33, 34, 66, 0.12), 0 0 1px 0 rgba(33, 34, 66, 0.16), 0 2px 1px 0 rgba(33, 34, 66, 0.08), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}:root{--sendbird-dark-primary-500: #491389;--sendbird-dark-primary-400: #6211c8;--sendbird-dark-primary-300: #742ddd;--sendbird-dark-primary-200: #c2a9fa;--sendbird-dark-primary-100: #dbd1ff;--sendbird-dark-secondary-500: #066858;--sendbird-dark-secondary-400: #027d69;--sendbird-dark-secondary-300: #259c72;--sendbird-dark-secondary-200: #69c085;--sendbird-dark-secondary-100: #a8e2ab;--sendbird-dark-information-100: #adc9ff;--sendbird-highlight-100: #fff2b6;--sendbird-dark-error-500: #9d091e;--sendbird-dark-error-400: #bf0711;--sendbird-dark-error-300: #de360b;--sendbird-dark-error-200: #f66161;--sendbird-dark-error-100: #fdaaaa;--sendbird-dark-background-700: #000000;--sendbird-dark-background-600: #161616;--sendbird-dark-background-500: #2C2C2C;--sendbird-dark-background-400: #393939;--sendbird-dark-background-300: #bdbdbd;--sendbird-dark-background-200: #e0e0e0;--sendbird-dark-background-100: #eeeeee;--sendbird-dark-background-50: #FFFFFF;--sendbird-dark-overlay-01: rgba(0, 0, 0, 0.55);--sendbird-dark-overlay-02: rgba(0, 0, 0, 0.32);--sendbird-dark-onlight-01: rgba(0, 0, 0, 0.88);--sendbird-dark-onlight-02: rgba(0, 0, 0, 0.50);--sendbird-dark-onlight-03: rgba(0, 0, 0, 0.38);--sendbird-dark-onlight-04: rgba(0, 0, 0, 0.12);--sendbird-dark-ondark-01: rgba(255, 255, 255, 0.88);--sendbird-dark-ondark-02: rgba(255, 255, 255, 0.50);--sendbird-dark-ondark-03: rgba(255, 255, 255, 0.38);--sendbird-dark-ondark-04: rgba(255, 255, 255, 0.12);--sendbird-dark-ondark-05: rgba(255, 255, 255, 0.44);--sendbird-dark-shadow-01: 0 1px 5px 0 rgba(33, 34, 66, 0.04), 0 0 3px 0 rgba(0, 0, 0, 0.08), 0 2px 1px 0 rgba(0, 0, 0, 0.12);--sendbird-dark-shadow-02: 0 3px 5px -3px rgba(33, 34, 66, 0.04), 0 3px 14px 2px rgba(0, 0, 0, 0.08), 0 8px 10px 1px rgba(0, 0, 0, 0.12);--sendbird-dark-shadow-03: 0 6px 10px -5px rgba(0, 0, 0, 0.04), 0 6px 30px 5px rgba(0, 0, 0, 0.08), 0 16px 24px 2px rgba(0, 0, 0, 0.12);--sendbird-dark-shadow-04: 0 9px 15px -7px rgba(0, 0, 0, 0.04), 0 9px 46px 8px rgba(0, 0, 0, 0.08), 0 24px 38px 3px rgba(0, 0, 0, 0.12);--sendbird-light-shadow-05: 0 2px 8px 0 rgba(0, 0, 0, 0.08), 0 4px 6px 0 rgba(0, 0, 0, 0.12);--sendbird-dark-shadow-message-input: 0 1px 5px 0 rgba(33, 34, 66, 0.12), 0 0 1px 0 rgba(33, 34, 66, 0.16), 0 2px 1px 0 rgba(33, 34, 66, 0.08), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}:root{--sendbird-iconbutton-color: #825eeb;--sendbird-message-input-border-active: #7B53EF;--sendbird-selected-reaction-button-border-hover: #9E8CF5;--sendbird-add-reaction-button-border-hover: #9E8CF5;--sendbird-tooltip-background: #000000;--sendbird-tooltip-text-color: rgba(255, 255, 255, 0.88);--sendbird-button-border-focus: #FFFFFF;--sendbird-file-message-icon-background: #FFFFFF;--sendbird-font-family-default: "Roboto", sans-serif;--sendbird-message-balloon-width: 404px}',""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/App/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-app__wrap{width:100%;height:100%;display:flex;box-sizing:border-box}.sendbird-app__wrap .sendbird-app__searchpanel-wrap{width:320px;min-width:320px;overflow-x:hidden;overflow-y:scroll;box-sizing:border-box}.sendbird-theme--light .sendbird-app__wrap .sendbird-app__searchpanel-wrap{border-top:1px solid var(--sendbird-light-onlight-04);border-right:1px solid var(--sendbird-light-onlight-04);border-bottom:1px solid var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-app__wrap .sendbird-app__searchpanel-wrap{border-top:1px solid var(--sendbird-dark-background-600);border-right:1px solid var(--sendbird-dark-background-600);border-bottom:1px solid var(--sendbird-dark-background-600)}.sendbird-app__wrap .sendbird-app__conversation-wrap{flex:1;position:relative;width:calc(100% - 320px)}.sendbird-app__wrap .sendbird-app__channellist-wrap{max-width:320px}.sendbird-theme--light .sendbird-app__wrap .sendbird-app__channellist-wrap{border-top:1px solid var(--sendbird-light-onlight-04);border-left:1px solid var(--sendbird-light-onlight-04);border-bottom:1px solid var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-app__wrap .sendbird-app__channellist-wrap{border-top:1px solid var(--sendbird-dark-background-600);border-left:1px solid var(--sendbird-dark-background-600);border-bottom:1px solid var(--sendbird-dark-background-600)}.sendbird-theme--light .sendbird-app__wrap .sendbird-app__conversation--settings-open .sendbird-chat-header__info{background-color:var(--sendbird-light-primary-100)}.sendbird-theme--dark .sendbird-app__wrap .sendbird-app__conversation--settings-open .sendbird-chat-header__info{background-color:var(--sendbird-dark-background-700)}.sendbird-app__wrap .sendbird-chat-header__search{margin-right:16px}.sendbird-theme--light .sendbird-app__wrap .sendbird-app__conversation--search-open .sendbird-chat-header__search{background-color:var(--sendbird-light-primary-100)}.sendbird-theme--dark .sendbird-app__wrap .sendbird-app__conversation--search-open .sendbird-chat-header__search{background-color:var(--sendbird-dark-background-700)}.sendbird-app__wrap .sendbird-channel-settings{border-left:none}.sendbird-theme--light .sendbird-app__wrap .sendbird-channel-settings{border-top:1px solid var(--sendbird-light-onlight-04);border-right:1px solid var(--sendbird-light-onlight-04);border-bottom:1px solid var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-app__wrap .sendbird-channel-settings{border-top:1px solid var(--sendbird-dark-background-600);border-right:1px solid var(--sendbird-dark-background-600);border-bottom:1px solid var(--sendbird-dark-background-600)}.sendbird-app__wrap .sendbird-channel-settings .sendbird-channel-settings__header{height:64px}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/App/mobile.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sb_mobile{height:100%}.sb_mobile__panelwrap{height:100%}.sb-show-main{padding:0 !important}.sb_mobile__panelwrap .sendbird-thread{width:100%;height:100%}.sb_mobile__panelwrap .sendbird-thread .sendbird-thread-ui{max-width:100%}.sb_mobile__panelwrap .sendbird-thread .sendbird-thread-ui .sendbird-thread-ui__header{width:100%}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/App/stories/integrated-app.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-welcome{display:flex;height:100vh;width:100vw;justify-content:center;align-items:center;font-family:var(--sendbird-font-family-default)}.sendbird-theme--light .sendbird-welcome{background-color:var(--sendbird-light-primary-100);color:var(--sendbird-light-onlight-01)}.sendbird-theme--dark .sendbird-welcome{background-color:var(--sendbird-dark-background-700);color:var(--sendbird-dark-ondark-01)}.sendbird-welcome__content{text-align:center}.sendbird-welcome__dependencies{max-height:200px;overflow-y:scroll;text-align:left}.sendbird-integrated-sample-app{position:relative;display:flex;flex-direction:column;width:100vw;height:100vh}.sendbird-integrated-sample-app .integrated-app-theme--light{background-color:var(--sendbird-light-background-50)}.sendbird-integrated-sample-app .integrated-app-theme--dark{background-color:var(--sendbird-dark-background-600)}.sendbird-integrated-sample-app__title{position:relative;display:flex;height:120px;justify-content:center;align-items:center}.sendbird--mobile-mode .sendbird-integrated-sample-app__title{height:80px}.sendbird-integrated-sample-app__moderations{position:relative;padding:18px;display:flex;flex-direction:column;align-items:center}.sendbird-theme--light .sendbird-integrated-sample-app__moderations{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-integrated-sample-app__moderations{background-color:var(--sendbird-dark-background-500)}.sendbird-integrated-sample-app__moderations__option{position:relative;display:flex;flex-direction:row;align-items:flex-start;height:fit-content;margin-bottom:10px;padding-bottom:12px}.sendbird-theme--light .sendbird-integrated-sample-app__moderations__option{border-bottom:1px solid var(--sendbird-light-onlight-01)}.sendbird-theme--dark .sendbird-integrated-sample-app__moderations__option{border-bottom:1px solid var(--sendbird-dark-ondark-01)}.sendbird--mobile-mode .sendbird-integrated-sample-app__moderations__option{flex-direction:column;flex-wrap:wrap;align-items:center}.sendbird--mobile-mode .sendbird-integrated-sample-app__moderations__option--toggle{flex-direction:row;flex-wrap:wrap;width:100%;justify-content:space-between}.sendbird-integrated-sample-app__moderations__option--toggle .sendbird-integrated-sample-app__moderations__option__name,.sendbird-integrated-sample-app__moderations__option--toggle .sendbird-integrated-sample-app__moderations__option__input{display:flex}.sendbird-integrated-sample-app__moderations__option--toggle .sendbird-integrated-sample-app__moderations__option__name .sendbird-checkbox,.sendbird-integrated-sample-app__moderations__option--toggle .sendbird-integrated-sample-app__moderations__option__input .sendbird-checkbox{margin:2px 0 0 4px}.sendbird--mobile-mode .sendbird-integrated-sample-app__moderations__option--toggle .sendbird-integrated-sample-app__moderations__option__name,.sendbird--mobile-mode .sendbird-integrated-sample-app__moderations__option--toggle .sendbird-integrated-sample-app__moderations__option__input{width:auto}.sendbird-integrated-sample-app__moderations__option--toggle .sendbird-integrated-sample-app-toggle-button{text-align:right}.sendbird-integrated-sample-app__moderations__option__name{width:140px}.sendbird--mobile-mode .sendbird-integrated-sample-app__moderations__option__name{width:100%}.sendbird-integrated-sample-app__moderations__option__input{margin-left:20px}.sendbird--mobile-mode .sendbird-integrated-sample-app__moderations__option__input{width:100%;margin-left:0px}.sendbird-integrated-app-submit-area{display:flex;width:100%;justify-content:center;gap:10px;margin:16px 0px}.sendbird-integrated-sample-app-text-input{width:300px;height:24px}.sendbird-integrated-sample-app-toggle-button:hover{cursor:pointer}.sendbird-integrated-sample-app-multiple-buttons{display:flex;gap:6px}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/App/stories/theme.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".storybook-theme{--sendbird-light-primary-500: #a91409;--sendbird-light-primary-400: #e11a0c;--sendbird-light-primary-300: #f44336;--sendbird-light-primary-200: #fbb3ae;--sendbird-light-primary-100: #fef4f3}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/Channel/components/MessageFeedbackModal/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird--mobile-mode .sendbird-message-feedback-modal-content__mobile{max-width:280px;padding:16px}.sendbird-message-feedback-modal-footer__root{display:flex;justify-content:space-between;align-items:center}.sendbird-message-feedback-modal-footer__root_failed{display:flex;justify-content:flex-end;align-items:center;margin-top:48px}.sendbird-message-feedback-modal-footer__right-content{display:flex;gap:8px}.sendbird-message-feedback-modal-body__root{margin:21px 0}.sendbird--mobile-mode .sendbird-message-feedback-modal-header{font-size:18px;line-height:1.33}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/ChannelSettings/components/ChannelProfile/channel-profile.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-channel-profile{position:relative;text-align:center;padding:32px 40px 27px 40px}.sendbird-theme--light .sendbird-channel-profile{border-bottom:1px solid var(--sendbird-light-onlight-04);background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-channel-profile{border-bottom:1px solid var(--sendbird-dark-ondark-04);background-color:var(--sendbird-dark-background-600)}.sendbird-channel-profile .sendbird-channel-profile--inner{height:92px}.sendbird-channel-profile .sendbird-channel-profile__avatar{margin-bottom:16px;display:flex;justify-content:center}.sendbird-channel-profile .sendbird-channel-profile__title{display:block;max-width:240px;white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis;height:18px}.sendbird--mobile-mode .sendbird-channel-profile .sendbird-channel-profile__title{max-width:100%}.sendbird-channel-profile .sendbird-channel-profile__edit{position:absolute;top:10px;right:16px}.channel-profile-form .channel-profile-form__img-section{position:relative}.channel-profile-form .channel-profile-form__avatar-button{position:absolute;top:54px;left:96px}.channel-profile-form .channel-profile-form__avatar{margin-top:16px}.channel-profile-form .channel-profile-form__name-section{margin-top:12px}.channel-profile-form .channel-profile-form__name-section .sendbird-input{height:40px}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/ChannelSettings/components/ChannelSettingsUI/channel-settings-ui.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-channel-settings{height:100%;width:320px;display:inline-block;box-sizing:border-box}.sendbird--mobile-mode .sendbird-channel-settings{width:100%}.sendbird-theme--light .sendbird-channel-settings{background-color:var(--sendbird-light-background-50);border-left:1px solid var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-channel-settings{background-color:var(--sendbird-dark-background-600);border-left:1px solid var(--sendbird-dark-background-600)}.sendbird-channel-settings .sendbird-channel-settings__header-icon{cursor:pointer;position:absolute;top:16px;right:16px}.sendbird-theme--light .sendbird-channel-settings .sendbird-channel-settings__header-icon .sendbird-channel-settings__close-icon path{fill:var(--sendbird-light-onlight-01)}.sendbird-theme--dark .sendbird-channel-settings .sendbird-channel-settings__header-icon .sendbird-channel-settings__close-icon path{fill:var(--sendbird-dark-ondark-01)}.sendbird-channel-settings .sendbird-channel-settings__members .sendbird-badge__text{margin-top:-2px}.sendbird-channel-settings .sendbird-channel-settings__header{height:64px;min-height:64px;position:relative;padding:20px 24px;box-sizing:border-box}.sendbird-theme--light .sendbird-channel-settings .sendbird-channel-settings__header{border-bottom:solid 1px var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-channel-settings .sendbird-channel-settings__header{border-bottom:solid 1px var(--sendbird-dark-ondark-04)}.sendbird-channel-settings .sendbird-channel-settings__scroll-area{display:flex;flex-grow:1;flex-direction:column;height:calc(100% - 64px);overflow-y:auto}.sendbird-channel-settings .sendbird-channel-settings__panel-item{cursor:pointer;position:relative;padding:12px 22px 10px 56px}.sendbird-theme--light .sendbird-channel-settings .sendbird-channel-settings__panel-item{background-color:var(--sendbird-light-background-50);border-bottom:1px solid var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-channel-settings .sendbird-channel-settings__panel-item{background-color:var(--sendbird-dark-background-600);border-bottom:1px solid var(--sendbird-dark-ondark-04)}.sendbird-channel-settings .sendbird-channel-settings__panel-item:focus{outline:none}.sendbird-channel-settings .sendbird-channel-settings__panel-item.sendbird-channel-settings__panel-item__disabled{cursor:not-allowed}.sendbird-channel-settings .sendbird-channel-settings__panel-icon-left,.sendbird-channel-settings .sendbird-channel-settings__panel-icon-right{position:absolute;top:10px}.sendbird-channel-settings .sendbird-channel-settings__panel-icon-left{left:16px}.sendbird-channel-settings .sendbird-channel-settings__panel-icon-right{right:16px}.sendbird-channel-settings .sendbird-channel-settings__panel-icon--open{transform:rotate(90deg)}.sendbird-theme--light .sendbird-channel-settings .sendbird-channel-settings__panel-icon--chevron path{fill:var(--sendbird-light-onlight-01)}.sendbird-theme--dark .sendbird-channel-settings .sendbird-channel-settings__panel-icon--chevron path{fill:var(--sendbird-dark-ondark-01)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/ChannelSettings/components/LeaveChannel/leave-channel.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-channel-settings__leave-label--mobile{text-decoration:none}.sendbird-channel-settings__leave--mobile .sendbird-modal__content{max-width:calc(100% - 80px)}.sendbird-channel-settings__leave--mobile .sendbird-modal__close{display:none}.sendbird-channel-settings__leave--mobile .sendbird-channel-preview__leave-label--mobile{text-decoration:none}.sendbird-channel-settings__leave--mobile .sendbird-modal__header span{display:inline-block;width:calc(100% - 120px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/ChannelSettings/components/ModerationPanel/admin-panel.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-channel-settings__operator .sendbird-channel-settings__accordion-icon{position:absolute;left:14px}.sendbird-channel-settings__operator .sendbird-accordion__panel-heder{position:relative}.sendbird-more-members__popup-scroll{max-height:420px;overflow-x:hidden;overflow-y:scroll}.sendbird--mobile-mode .sendbird-more-members__popup-scroll{max-height:100%}.sendbird-more-members__popup-scroll .sendbird-user-list-item__operator{right:72px}.sendbird-more-members__popup-scroll .sendbird-user-list-item__title{max-width:240px}.sendbird-channel-settings__empty-list{text-align:center;margin-top:12px;margin-bottom:4px;display:block}.sendbird-channel-settings-accordion__footer{padding-top:16px;display:flex;justify-content:left;padding-left:12px}.sendbird-channel-settings-accordion__footer .sendbird-button:nth-child(2){margin-left:8px}.sendbird-channel-settings__freeze{max-width:320px;position:relative;padding:12px 22px 10px 56px}.sendbird--mobile-mode .sendbird-channel-settings__freeze{max-width:100%}.sendbird-theme--light .sendbird-channel-settings__freeze{background-color:var(--sendbird-light-background-50);border-bottom:1px solid var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-channel-settings__freeze{background-color:var(--sendbird-dark-background-600);border-bottom:1px solid var(--sendbird-dark-ondark-04)}.sendbird-channel-settings__frozen-icon{position:absolute;right:20px;top:12px}.sendbird-channel-settings__frozen-icon .sendbird-icon{cursor:pointer}.sendbird-channel-settings__members-list .sendbird-badge,.sendbird-channel-settings__members .sendbird-badge{position:absolute;right:44px;top:12px}.sendbird-theme--light .sendbird-channel-settings__members-list .sendbird-badge,.sendbird-theme--light .sendbird-channel-settings__members .sendbird-badge{background-color:var(--sendbird-light-background-200)}.sendbird-theme--dark .sendbird-channel-settings__members-list .sendbird-badge,.sendbird-theme--dark .sendbird-channel-settings__members .sendbird-badge{background-color:var(--sendbird-dark-background-400)}.sendbird-theme--light .sendbird-channel-settings__members-list .sendbird-badge .sendbird-label,.sendbird-theme--light .sendbird-channel-settings__members .sendbird-badge .sendbird-label{color:var(--sendbird-light-onlight-02)}.sendbird-theme--dark .sendbird-channel-settings__members-list .sendbird-badge .sendbird-label,.sendbird-theme--dark .sendbird-channel-settings__members .sendbird-badge .sendbird-label{color:var(--sendbird-dark-ondark-02)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/ChannelSettings/components/UserListItem/user-list-item.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-user-list-item--small{display:block;position:relative;box-sizing:border-box;height:40px;padding-left:12px}.sendbird-user-list-item--small__avatar{cursor:pointer;position:absolute;top:10px}.sendbird-user-list-item--small .sendbird-muted-avatar{position:absolute;top:10px;left:12px;pointer-events:none}.sendbird-user-list-item--small__title{position:absolute;top:10px;left:54px;width:160px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sendbird-user-list-item--small__subtitle{position:absolute;top:23px;left:140px;max-width:237px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sendbird--mobile-mode .sendbird-user-list-item--small__subtitle{max-width:40%}.sendbird-user-list-item--small__checkbox{position:absolute;top:16px;right:16px}.sendbird-user-list-item--small__action{display:none;position:absolute;right:10px;top:4px}.sendbird-user-list-item--small__operator{position:absolute;right:24px;top:10px}.sendbird-theme--light .sendbird-user-list-item--small:hover,.sendbird-theme--light .sendbird-user-list-item--small.sendbird-icon--pressed{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-user-list-item--small:hover,.sendbird-theme--dark .sendbird-user-list-item--small.sendbird-icon--pressed{background-color:var(--sendbird-dark-background-500)}.sendbird-user-list-item--small:hover .sendbird-user-list-item--small__action,.sendbird-user-list-item--small.sendbird-icon--pressed .sendbird-user-list-item--small__action{display:block}.sendbird-user-list-item--small:hover .sendbird-user-list-item--small__operator,.sendbird-user-list-item--small.sendbird-icon--pressed .sendbird-user-list-item--small__operator{display:none}.sendbird-theme--light .sendbird-user-list-item--small.sendbird-icon--pressed .sendbird-iconbutton{background-color:var(--sendbird-light-primary-100)}.sendbird-theme--dark .sendbird-user-list-item--small.sendbird-icon--pressed .sendbird-iconbutton{background-color:var(--sendbird-dark-background-700)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/ChannelSettings/components/UserPanel/user-panel.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-more-members__popup-scroll{max-height:420px;overflow-x:hidden;overflow-y:scroll}.sendbird--mobile-mode .sendbird-more-members__popup-scroll{max-height:100%}.sendbird-more-members__popup-scroll .sendbird-user-list-item__operator{right:72px}.sendbird-more-members__popup-scroll .sendbird-user-list-item__title{max-width:240px}.sendbird-channel-settings__badge{position:absolute;right:48px}.sendbird-theme--light .sendbird-channel-settings__badge{background-color:var(--sendbird-light-background-200)}.sendbird-theme--dark .sendbird-channel-settings__badge{background-color:var(--sendbird-dark-background-400)}.sendbird-theme--light .sendbird-channel-settings__badge .sendbird-label{color:var(--sendbird-light-onlight-02)}.sendbird-theme--dark .sendbird-channel-settings__badge .sendbird-label{color:var(--sendbird-dark-ondark-02)}.sendbird-channel-settings__user-panel .sendbird-channel-settings-accordion__footer{padding-left:14px;padding-top:14px}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/CreateChannel/components/CreateChannelUI/create-channel-ui.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird--mobile-mode .sendbird-add-channel__modal .sendbird-modal__content{margin:0 40px}.sendbird-add-channel__rectangle-wrap{margin-top:26px}.sendbird-add-channel__rectangle-footer{text-align:right;margin-top:32px}.sendbird-add-channel__rectangle{width:432px;height:72px;border-radius:4px;margin-bottom:8px;padding:25px 72px;position:relative;box-sizing:border-box;cursor:pointer}.sendbird--mobile-mode .sendbird-add-channel__rectangle{min-width:288px;width:100%;padding-right:0}.sendbird-theme--light .sendbird-add-channel__rectangle{border:1px solid var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-add-channel__rectangle{border:1px solid var(--sendbird-dark-ondark-04)}.sendbird-add-channel__rectangle .sendbird-icon{position:absolute;left:22px;top:24px}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/CreateChannel/components/InviteUsers/invite-users.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-create-channel--content{width:480px;max-height:552px}.sendbird-create-channel--scroll{height:360px;overflow-x:hidden;overflow-y:scroll}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/CreateOpenChannel/components/CreateOpenChannelUI/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-create-open-channel-ui{position:relative;display:inline-flex}.sendbird-create-open-channel-ui__profile-input{position:relative;display:inline-flex;flex-direction:column;justify-content:flex-start;width:100%;height:100%;box-sizing:border-box}.sendbird-create-open-channel-ui__profile-input .sendbird-create-open-channel-ui__profile-input__img-section{position:relative;margin-top:16px;display:inline-flex;flex-direction:row;align-items:center}.sendbird-create-open-channel-ui__profile-input .sendbird-create-open-channel-ui__profile-input__img-section .sendbird-create-open-channel-ui__profile-input__img-section__avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;width:80px;height:80px}.sendbird-create-open-channel-ui__profile-input .sendbird-create-open-channel-ui__profile-input__img-section .sendbird-create-open-channel-ui__profile-input__img-section__avatar--default{position:relative;display:inline-flex;align-items:center;justify-content:center;width:80px;height:80px;border-radius:50%}.sendbird-theme--light .sendbird-create-open-channel-ui__profile-input .sendbird-create-open-channel-ui__profile-input__img-section .sendbird-create-open-channel-ui__profile-input__img-section__avatar--default{background-color:var(--sendbird-light-background-200)}.sendbird-theme--dark .sendbird-create-open-channel-ui__profile-input .sendbird-create-open-channel-ui__profile-input__img-section .sendbird-create-open-channel-ui__profile-input__img-section__avatar--default{background-color:var(--sendbird-dark-background-400)}.sendbird-create-open-channel-ui__profile-input .sendbird-create-open-channel-ui__profile-input__img-section .sendbird-create-open-channel-ui__profile-input__img-section__button{position:relative;margin-left:18px;display:inline-flex}.sendbird-create-open-channel-ui__profile-input .sendbird-create-open-channel-ui__profile-input__name-section{position:relative;margin-top:8px;display:inline-flex;flex-direction:row}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/EditUserProfile/components/EditUserProfileUI/edit-user-profile.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-edit-user-profile section{margin-top:16px}.sendbird-edit-user-profile section .sendbird-input-label{display:block;margin-bottom:12px}.sendbird-edit-user-profile .sendbird-edit-user-profile__img .sendbird-input-label{margin-bottom:12px}.sendbird-edit-user-profile__img{position:relative}.sendbird-edit-user-profile__img__avatar-button{position:absolute;top:50px;left:96px}.sendbird-edit-user-profile__theme__theme-icon .sendbird-icon{cursor:pointer}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/GroupChannel/components/FileViewer/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-fileviewer__header__right__actions__download,.sendbird-fileviewer__header__right__actions__delete,.sendbird-fileviewer__header__right__actions__close{width:64px;padding:21px;box-sizing:border-box;cursor:pointer}.sendbird-fileviewer__header__right__actions__download .disabled,.sendbird-fileviewer__header__right__actions__delete .disabled,.sendbird-fileviewer__header__right__actions__close .disabled{cursor:not-allowed}.sendbird-fileviewer{width:100%;height:100%;position:fixed;top:0;left:0;z-index:100000}.sendbird-theme--light .sendbird-fileviewer{background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-fileviewer{background-color:var(--sendbird-dark-background-600)}.sendbird-fileviewer .sendbird-fileviewer__header{height:64px;min-height:64px;box-sizing:border-box;display:flex;justify-content:space-between}.sendbird--mobile-mode .sendbird-fileviewer .sendbird-fileviewer__header{position:relative}.sendbird-theme--light .sendbird-fileviewer .sendbird-fileviewer__header{border-bottom:1px solid var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-fileviewer .sendbird-fileviewer__header{border-bottom:1px solid var(--sendbird-dark-ondark-04)}.sendbird-fileviewer .sendbird-fileviewer__header .sendbird-fileviewer__header__left{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;height:64px;padding:16px 20px}.sendbird-fileviewer .sendbird-fileviewer__header .sendbird-fileviewer__header__left .sendbird-fileviewer__header__left__avatar{margin-right:8px}.sendbird-fileviewer .sendbird-fileviewer__header .sendbird-fileviewer__header__left .sendbird-fileviewer__header__left__filename{max-width:500px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block}.sendbird--mobile-mode .sendbird-fileviewer .sendbird-fileviewer__header .sendbird-fileviewer__header__left .sendbird-fileviewer__header__left__filename{position:absolute;left:64px;top:10px;display:block;max-width:calc(100vw - 240px)}.sendbird-fileviewer .sendbird-fileviewer__header .sendbird-fileviewer__header__left .sendbird-fileviewer__header__left__sender-name{max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-flex;margin-left:8px;padding-top:5px}.sendbird--mobile-mode .sendbird-fileviewer .sendbird-fileviewer__header .sendbird-fileviewer__header__left .sendbird-fileviewer__header__left__sender-name{position:absolute;left:56px;top:24px}.sendbird-fileviewer .sendbird-fileviewer__header .sendbird-fileviewer__header__right{display:flex;width:160px;justify-content:flex-end}.sendbird-fileviewer .sendbird-fileviewer__header .sendbird-fileviewer__header__right .sendbird-fileviewer__header__right__actions{right:0;display:flex;flex-direction:row}.sendbird-theme--light .sendbird-fileviewer .sendbird-fileviewer__header .sendbird-fileviewer__header__right .sendbird-fileviewer__header__right__actions__close{border-left:1px solid var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-fileviewer .sendbird-fileviewer__header .sendbird-fileviewer__header__right .sendbird-fileviewer__header__right__actions__close{border-left:1px solid var(--sendbird-dark-ondark-04)}.sendbird-fileviewer .sendbird-fileviewer__content{height:calc(100% - 72px);margin-top:4px;overflow-y:auto;display:flex;align-items:center;justify-content:center}.sendbird-fileviewer .sendbird-fileviewer__content .sendbird-fileviewer__content__video{max-width:100%;max-height:100%}.sendbird-fileviewer .sendbird-fileviewer__content .sendbird-fileviewer__content__img{max-width:90%;max-height:90%}.sendbird-fileviewer .sendbird-fileviewer__content .sendbird-fileviewer__content__unsupported{max-width:100%;max-height:100%;display:flex;justify-content:center;align-items:center}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/GroupChannel/components/FrozenNotification/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-notification{margin-top:8px;margin-left:24px;margin-right:24px;border-radius:4px;padding:0px 2px;height:32px;display:flex;align-items:center;justify-content:center}.sendbird-theme--light .sendbird-notification{background-color:var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-notification{background-color:var(--sendbird-dark-primary-200)}.sendbird-notification:hover{cursor:pointer}.sendbird-theme--light .sendbird-notification:hover{background-color:var(--sendbird-light-primary-400)}.sendbird-theme--dark .sendbird-notification:hover{background-color:var(--sendbird-dark-primary-300)}.sendbird-theme--light .sendbird-notification.sendbird-notification--frozen{background-color:var(--sendbird-light-information-100)}.sendbird-theme--dark .sendbird-notification.sendbird-notification--frozen{background-color:var(--sendbird-dark-information-100)}.sendbird-theme--light .sendbird-notification.sendbird-notification--frozen .sendbird-notification__text{color:var(--sendbird-light-onlight-01)}.sendbird-theme--dark .sendbird-notification.sendbird-notification--frozen .sendbird-notification__text{color:var(--sendbird-dark-onlight-01)}.sendbird-notification .sendbird-notification__text{display:flex;align-items:center;justify-content:center;margin-right:8px}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/GroupChannel/components/GroupChannelHeader/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-chat-header{position:relative;display:flex;flex-direction:row;justify-content:space-between;align-items:center;height:64px;min-height:64px;padding-left:20px;padding-right:16px;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box}.sendbird-theme--light .sendbird-chat-header{border-bottom:1px solid var(--sendbird-light-onlight-04);background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-chat-header{border-bottom:1px solid var(--sendbird-dark-ondark-04);background-color:var(--sendbird-dark-background-600)}.sendbird-chat-header__left{margin-right:24px}.sendbird-chat-header__left,.sendbird-chat-header__right{overflow:hidden;display:flex;flex-direction:row;align-items:center}.sendbird-chat-header .sendbird-chat-header__left__title{margin-left:8px;margin-right:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:780px}.sendbird--mobile-mode .sendbird-chat-header .sendbird-chat-header__left__title{max-width:calc(100vw - 240px)}.sendbird-chat-header .sendbird-chat-header__left__subtitle{max-width:240px;overflow:hidden;text-overflow:ellipsis}.sendbird-chat-header .sendbird-chat-header__right__mute{margin-right:18px}.sendbird-chat-header .sendbird-iconbutton--pressed{background-color:inherit}.sendbird-chat-header .sendbird-chat-header__right__info{margin-left:16px}.sendbird-chat-header__icon_back{margin-right:8px}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/GroupChannel/components/GroupChannelUI/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-conversation{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box}.sendbird-theme--light .sendbird-conversation{background-color:var(--sendbird-light-background-50);border:1px solid var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-conversation{background-color:var(--sendbird-dark-background-600);border:1px solid var(--sendbird-dark-ondark-04)}.sendbird-conversation__messages{overflow:hidden;flex:1 1 0;order:2}.sendbird-conversation__messages-list{display:flex;flex-direction:column;height:100%;justify-content:flex-end}.sendbird-conversation__footer{width:100%;order:3;padding:0px 0px 24px 0px}.sendbird-msg-hoc__animated .sendbird-message-content{animation:bounce 1s ease}@keyframes bounce{50%{transform:translateY(-10px)}60%{transform:translateY(0)}90%{transform:translateY(-10px)}100%{transform:translateY(0)}}.sendbird-conversation__scroll-container{display:flex;height:100%;overflow-y:auto;overflow-x:hidden;flex-direction:column}.sendbird-conversation__scroll-container .sendbird-conversation__padding{flex:1 1 0}.sendbird-conversation__footer{position:relative;box-sizing:border-box;margin-top:6px}.sendbird-conversation__footer .sendbird-conversation__footer__typing-indicator{position:absolute;display:inline-flex;bottom:8px}.sendbird-conversation__footer .sendbird-conversation__footer__typing-indicator .sendbird-conversation__footer__typing-indicator__text{margin-left:24px;margin-right:10px}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/GroupChannel/components/MessageInputWrapper/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-message-input-wrapper--voice-message,.sendbird-message-input-wrapper{position:relative;width:100%}.sendbird-message-input-wrapper--voice-message .sendbird-message-input-wrapper__quote-message-input,.sendbird-message-input-wrapper .sendbird-message-input-wrapper__quote-message-input{position:relative;width:100%}.sendbird-theme--light .sendbird-message-input-wrapper--voice-message .sendbird-message-input-wrapper__quote-message-input,.sendbird-theme--light .sendbird-message-input-wrapper .sendbird-message-input-wrapper__quote-message-input{border-top:solid 1px var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-message-input-wrapper--voice-message .sendbird-message-input-wrapper__quote-message-input,.sendbird-theme--dark .sendbird-message-input-wrapper .sendbird-message-input-wrapper__quote-message-input{border-top:solid 1px var(--sendbird-dark-ondark-04)}.sendbird-message-input-wrapper--voice-message .sendbird-message-input-wrapper__message-input,.sendbird-message-input-wrapper .sendbird-message-input-wrapper__message-input{position:relative;width:100%;box-sizing:border-box;padding-left:24px;padding-right:24px}.sendbird-theme--light .sendbird-message-input-wrapper--voice-message{border-top:1px solid var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-message-input-wrapper--voice-message{border-top:1px solid var(--sendbird-dark-ondark-04)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/GroupChannel/components/MessageInputWrapper/voice-message-wrapper.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-voice-message-input-wrapper .sendbird-voice-message-input__indicator{height:40px}.sendbird-voice-message-input-wrapper-alert__body{position:relative;display:flex;justify-content:flex-end;align-items:flex-end;width:100%;height:74px}.sendbird-voice-message-input-wrapper-alert__body__ok-button{width:74px}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/GroupChannel/components/MessageList/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-conversation__messages{position:relative}.sendbird-conversation__messages .sendbird-conversation__messages-padding{position:relative;height:100%;overflow-x:hidden}.sendbird-conversation__messages .sendbird-separator,.sendbird-conversation__messages .sendbird-admin-message{padding-top:8px;padding-bottom:8px}.sendbird-conversation__messages__notification{position:fixed;top:0px;width:calc(100% - 50px);margin-left:25px}.sendbird-conversation__scroll-bottom-button{position:sticky;display:flex;align-items:center;justify-content:center;bottom:30px;left:calc(100% - 65px);width:40px;height:40px;border-radius:24px}.sendbird-theme--light .sendbird-conversation__scroll-bottom-button{background-color:var(--sendbird-light-background-50);box-shadow:var(--sendbird-light-shadow-05)}.sendbird-theme--dark .sendbird-conversation__scroll-bottom-button{background-color:var(--sendbird-dark-background-400);box-shadow:var(--sendbird-dark-shadow-05)}.sendbird-conversation__scroll-bottom-button:hover{cursor:pointer}.sendbird-theme--light .sendbird-conversation__scroll-bottom-button:hover{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-conversation__scroll-bottom-button:hover{background-color:var(--sendbird-dark-background-500)}.sendbird-theme--light .sendbird-conversation__scroll-bottom-button:active{background-color:var(--sendbird-light-background-200)}.sendbird-theme--dark .sendbird-conversation__scroll-bottom-button:active{background-color:var(--sendbird-dark-background-700)}.sendbird-conversation__scroll-bottom-button:focus{outline:none}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/GroupChannel/components/SuggestedMentionList/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-mention-suggest-list{position:relative;display:flex;flex-direction:column;width:calc(100% - 56px);max-height:260px;overflow:scroll;margin-left:28px;margin-right:28px}.sendbird-theme--light .sendbird-mention-suggest-list{border:1px solid var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-mention-suggest-list{border:1px solid var(--sendbird-dark-background-500)}.sendbird-mention-suggest-list .sendbird-mention-suggest-list__user-item{position:relative;display:flex;align-items:center;padding:16px 8px}.sendbird-theme--light .sendbird-mention-suggest-list .sendbird-mention-suggest-list__user-item{background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-mention-suggest-list .sendbird-mention-suggest-list__user-item{background-color:var(--sendbird-dark-background-600)}.sendbird-theme--light .sendbird-mention-suggest-list .sendbird-mention-suggest-list__user-item.focused{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-mention-suggest-list .sendbird-mention-suggest-list__user-item.focused{background-color:var(--sendbird-dark-background-500)}.sendbird-mention-suggest-list .sendbird-mention-suggest-list__user-item .sendbird-mention-suggest-list__user-item__avatar{position:relative;display:inline-block}.sendbird-mention-suggest-list .sendbird-mention-suggest-list__user-item .sendbird-mention-suggest-list__user-item__nickname{position:relative;display:inline-block;margin-left:16px;max-width:calc(100% - 250px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sendbird--mobile-mode .sendbird-mention-suggest-list .sendbird-mention-suggest-list__user-item .sendbird-mention-suggest-list__user-item__nickname{max-width:calc(100% - 150px)}.sendbird-mention-suggest-list .sendbird-mention-suggest-list__user-item .sendbird-mention-suggest-list__user-item__user-id{position:absolute;display:inline-block;right:16px;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sendbird--mobile-mode .sendbird-mention-suggest-list .sendbird-mention-suggest-list__user-item .sendbird-mention-suggest-list__user-item__user-id{max-width:100px}.sendbird-mention-suggest-list .sendbird-mention-suggest-list__notice-item{position:relative;display:flex;align-items:center;padding:16px 8px}.sendbird-theme--light .sendbird-mention-suggest-list .sendbird-mention-suggest-list__notice-item{background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-mention-suggest-list .sendbird-mention-suggest-list__notice-item{background-color:var(--sendbird-dark-background-600)}.sendbird-mention-suggest-list .sendbird-mention-suggest-list__notice-item .sendbird-mention-suggest-list__notice-item__icon{margin-right:4px}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/GroupChannel/components/SuggestedReplies/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-suggested-replies{position:relative;display:flex;justify-content:flex-end;align-items:flex-end;flex-wrap:wrap;column-gap:10px;row-gap:8px;margin-top:16px;flex-direction:column}.sendbird-theme--light .sendbird-suggested-replies{font-family:var(--sendbird-font-family-default)}.sendbird-theme--dark .sendbird-suggested-replies{font-family:var(--sendbird-font-family-default)}.sendbird-suggested-replies__option{white-space:nowrap;height:32px;font-size:12px;padding:0 14px;display:flex;align-items:center;border-radius:18px;cursor:pointer}.sendbird-theme--light .sendbird-suggested-replies__option{color:var(--sendbird-light-primary-300);border:1px solid var(--sendbird-light-primary-300);background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-suggested-replies__option{color:var(--sendbird-dark-primary-200);border:1px solid var(--sendbird-dark-primary-200);background-color:var(--sendbird-dark-background-600)}.sendbird-theme--light .sendbird-suggested-replies__option:hover{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-suggested-replies__option:hover{background-color:var(--sendbird-dark-background-500)}.sendbird-theme--light .sendbird-suggested-replies__option:active{background-color:var(--sendbird-light-primary-300);color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-suggested-replies__option:active{background-color:var(--sendbird-dark-primary-200);color:var(--sendbird-dark-background-600)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/GroupChannel/components/UnreadCount/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-notification--hide,.sendbird-notification{position:absolute}.sendbird-notification{margin-top:8px;margin-left:24px;margin-right:24px;border-radius:4px;padding:0px 2px;height:32px;display:flex;align-items:center;justify-content:center}.sendbird-theme--light .sendbird-notification{background-color:var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-notification{background-color:var(--sendbird-dark-primary-200)}.sendbird-notification:hover{cursor:pointer}.sendbird-theme--light .sendbird-notification:hover{background-color:var(--sendbird-light-primary-400)}.sendbird-theme--dark .sendbird-notification:hover{background-color:var(--sendbird-dark-primary-300)}.sendbird-theme--light .sendbird-notification.sendbird-notification--frozen{background-color:var(--sendbird-light-information-100)}.sendbird-theme--dark .sendbird-notification.sendbird-notification--frozen{background-color:var(--sendbird-dark-information-100)}.sendbird-theme--light .sendbird-notification.sendbird-notification--frozen .sendbird-notification__text{color:var(--sendbird-light-onlight-01)}.sendbird-theme--dark .sendbird-notification.sendbird-notification--frozen .sendbird-notification__text{color:var(--sendbird-dark-onlight-01)}.sendbird-notification .sendbird-notification__text{display:flex;align-items:center;justify-content:center;margin-right:8px}.sendbird-notification--hide{display:none}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/GroupChannelList/components/GroupChannelListHeader/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-channel-header{position:relative;height:64px;min-height:64px;width:320px;padding:8px 64px 8px 8px;box-sizing:border-box}.sendbird-theme--light .sendbird-channel-header{border-bottom:1px solid var(--sendbird-light-onlight-04);background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-channel-header{border-bottom:1px solid var(--sendbird-dark-ondark-04);background-color:var(--sendbird-dark-background-600)}.sendbird--mobile-mode .sendbird-channel-header{width:100%}.sendbird-channel-header.sendbird-channel-header--allow-edit .sendbird-channel-header__title{cursor:pointer}.sendbird-channel-header .sendbird-channel-header__title{display:flex;flex-direction:row;width:260px;height:48px;border-radius:4px}.sendbird-theme--light .sendbird-channel-header .sendbird-channel-header__title:hover{background:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-channel-header .sendbird-channel-header__title:hover{background:var(--sendbird-dark-background-500)}.sendbird-channel-header .sendbird-channel-header__title:focus{outline:none}.sendbird-theme--light .sendbird-channel-header .sendbird-channel-header__title:focus{background:var(--sendbird-light-background-200)}.sendbird-theme--dark .sendbird-channel-header .sendbird-channel-header__title:focus{background:var(--sendbird-dark-background-400)}.sendbird-theme--light .sendbird-channel-header .sendbird-channel-header__title:active{border:solid 2px var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-channel-header .sendbird-channel-header__title:active{border:solid 2px var(--sendbird-dark-primary-200)}.sendbird-channel-header .sendbird-channel-header__title .sendbird-channel-header__title__left{width:48px;padding:8px;box-sizing:border-box}.sendbird-channel-header .sendbird-channel-header__title .sendbird-channel-header__title__right{margin-left:4px;padding-top:8px}.sendbird-channel-header .sendbird-channel-header__title .sendbird-channel-header__title__right__name,.sendbird-channel-header .sendbird-channel-header__title .sendbird-channel-header__title__right__user-id{display:block;max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sendbird-channel-header .sendbird-channel-header__right-icon{position:absolute;right:16px;top:16px}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/GroupChannelList/components/GroupChannelListItem/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-channel-preview__leave--mobile .sendbird-modal__content{max-width:calc(100% - 80px)}.sendbird-channel-preview__leave--mobile .sendbird-modal__close{display:none}.sendbird-channel-preview__leave--mobile .sendbird-channel-preview__leave-label--mobile{text-decoration:none}.sendbird-channel-preview__leave--mobile .sendbird-modal__header span{display:inline-block;width:calc(100% - 120px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sendbird__offline .sendbird-channel-preview{cursor:not-allowed}.sendbird-channel-preview{position:relative;cursor:pointer;box-sizing:border-box;width:320px;height:80px;display:flex;flex-direction:row;align-items:center;justify-content:center;padding:12px 16px 12px 16px}.sendbird-theme--light .sendbird-channel-preview{border-bottom:solid 1px var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-channel-preview{border-bottom:solid 1px var(--sendbird-dark-ondark-04)}.sendbird--mobile-mode .sendbird-channel-preview{width:100%}.sendbird-channel-preview:focus{outline:none}.sendbird-channel-preview .sendbird-channel-preview__avatar{width:56px;height:56px}.sendbird-channel-preview .sendbird-channel-preview__content{width:100%;height:100%;margin-left:16px}.sendbird--mobile-mode .sendbird-channel-preview .sendbird-channel-preview__content{position:relative;max-width:calc(100% - 72px)}.sendbird-channel-preview .sendbird-channel-preview__content .sendbird-channel-preview__content__upper{display:flex;justify-content:space-between;width:216px;height:16px}.sendbird--mobile-mode .sendbird-channel-preview .sendbird-channel-preview__content .sendbird-channel-preview__content__upper{width:auto}.sendbird-channel-preview .sendbird-channel-preview__content .sendbird-channel-preview__content__upper .sendbird-channel-preview__content__upper__header{display:flex;justify-content:flex-start;overflow:hidden;text-overflow:ellipsis}.sendbird-channel-preview .sendbird-channel-preview__content .sendbird-channel-preview__content__upper .sendbird-channel-preview__content__upper__header .sendbird-channel-preview__content__upper__header__broadcast-icon{padding-right:4px}.sendbird-channel-preview .sendbird-channel-preview__content .sendbird-channel-preview__content__upper .sendbird-channel-preview__content__upper__header .sendbird-channel-preview__content__upper__header__channel-name{overflow:hidden;text-overflow:ellipsis;max-width:128px;word-break:break-all;white-space:nowrap}.sendbird-channel-preview .sendbird-channel-preview__content .sendbird-channel-preview__content__upper .sendbird-channel-preview__content__upper__header .sendbird-channel-preview__content__upper__header__total-members{margin-top:2px;margin-left:4px}.sendbird-channel-preview .sendbird-channel-preview__content .sendbird-channel-preview__content__upper .sendbird-channel-preview__content__upper__header .sendbird-channel-preview__content__upper__header__frozen-icon{padding-left:4px}.sendbird-channel-preview .sendbird-channel-preview__content .sendbird-channel-preview__content__upper .sendbird-channel-preview__content__upper__last-message-at{margin-left:4px;margin-bottom:4px;white-space:nowrap}.sendbird-channel-preview .sendbird-channel-preview__content .sendbird-channel-preview__content__upper .sendbird-channel-preview__content__upper__last-message-at.sendbird-message-status{max-width:74px;justify-content:flex-end}.sendbird-channel-preview .sendbird-channel-preview__content .sendbird-channel-preview__content__lower{margin-top:8px;width:216px;height:32px;display:flex;justify-content:space-between}.sendbird--mobile-mode .sendbird-channel-preview .sendbird-channel-preview__content .sendbird-channel-preview__content__lower{width:100%}.sendbird-channel-preview .sendbird-channel-preview__content .sendbird-channel-preview__content__lower .sendbird-channel-preview__content__lower__last-message{overflow:hidden;text-overflow:ellipsis}.sendbird-channel-preview .sendbird-channel-preview__content .sendbird-channel-preview__content__lower .sendbird-channel-preview__content__lower__unread-message-count{display:flex;align-items:center;margin-left:8px;margin-bottom:12px}.sendbird-channel-preview .sendbird-channel-preview__content .sendbird-channel-preview__content__lower .sendbird-channel-preview__content__lower__unread-message-count .sendbird-channel-preview__content__lower__unread-message-count__mention{display:inline-flex;align-items:center;margin-right:4px}.sendbird-channel-preview .sendbird-channel-preview__action{position:absolute;top:12px;right:12px;display:inline-block}.sendbird-channel-preview .sendbird-channel-preview__action .sendbird-iconbutton{display:none}.sendbird-theme--light .sendbird-channel-preview:hover{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-channel-preview:hover{background-color:var(--sendbird-dark-background-500)}.sendbird-channel-preview:hover .sendbird-channel-preview__action .sendbird-iconbutton{display:inline-block}.sendbird-channel-preview:hover .sendbird-channel-preview__content__upper__last-message-at{display:none}.sendbird-channel-preview:hover .sendbird-channel-preview__content__lower__unread-message-count{display:none}.sendbird-channel-preview--active{padding:12px 16px 12px 12px}.sendbird-theme--light .sendbird-channel-preview--active{border-left:solid 4px var(--sendbird-light-primary-300);border-bottom:solid 1px var(--sendbird-light-onlight-04);background-color:var(--sendbird-light-primary-100)}.sendbird-theme--dark .sendbird-channel-preview--active{border-left:solid 4px var(--sendbird-dark-primary-200);border-bottom:solid 1px var(--sendbird-dark-ondark-04);background-color:var(--sendbird-dark-background-700)}.sendbird-theme--light .sendbird-channel-preview--active .sendbird-channel-preview__content__upper__header__channel-name{color:var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-channel-preview--active .sendbird-channel-preview__content__upper__header__channel-name{color:var(--sendbird-dark-primary-200)}.sendbird--mobile-mode .sendbird-channel-preview__content__lower__unread-message-count{position:absolute;right:0}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/GroupChannelList/components/GroupChannelListUI/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-channel-list{width:320px;height:100%;display:flex;flex-direction:column;box-sizing:border-box}.sendbird-theme--light .sendbird-channel-list{background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-channel-list{background-color:var(--sendbird-dark-background-600)}.sendbird--mobile-mode .sendbird-channel-list{width:100%}.sendbird-channel-list__header{height:64px;min-height:64px}.sendbird-channel-list__body{flex:1 1 0;-ms-flex:1;overflow-y:auto;overflow-x:hidden}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/MessageSearch/components/MessageSearchUI/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-message-search{position:relative;height:100%;overflow-x:hidden;overflow-y:scroll}.sendbird-theme--light .sendbird-message-search{background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-message-search{background-color:var(--sendbird-dark-background-600)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/MessageSearch/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-message-search-pannel{position:relative;display:flex;flex-direction:column;width:320px;height:100%;box-sizing:border-box}.sendbird-theme--light .sendbird-message-search-pannel{background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-message-search-pannel{background-color:var(--sendbird-dark-background-600)}.sendbird--mobile-mode .sendbird-message-search-pannel{width:100%}.sendbird-message-search-pannel .sendbird-message-search-pannel__input__container__input-area{position:absolute;top:14px;left:48px;margin:0px;padding:0px;border:0px;outline:none;font-size:14px;width:calc(100% - 90px)}.sendbird-theme--light .sendbird-message-search-pannel .sendbird-message-search-pannel__input__container__input-area{color:var(--sendbird-light-onlight-01);background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-message-search-pannel .sendbird-message-search-pannel__input__container__input-area{color:var(--sendbird-dark-ondark-01);background-color:var(--sendbird-dark-background-600)}.sendbird-message-search-pannel .sendbird-message-search-pannel__header{position:relative;display:flex;width:100%;height:64px;min-height:64px;box-sizing:border-box}.sendbird-theme--light .sendbird-message-search-pannel .sendbird-message-search-pannel__header{border-bottom:1px solid var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-message-search-pannel .sendbird-message-search-pannel__header{border-bottom:1px solid var(--sendbird-dark-ondark-04)}.sendbird-message-search-pannel .sendbird-message-search-pannel__header .sendbird-message-search-pannel__header__title{position:absolute;top:20px;left:24px;width:calc(100% - 74px);overflow-x:hidden;word-break:keep-all;text-overflow:ellipsis}.sendbird-message-search-pannel .sendbird-message-search-pannel__header .sendbird-message-search-pannel__header__close-button{position:absolute;top:16px;right:16px}.sendbird-message-search-pannel .sendbird-message-search-pannel__input{display:flex;position:relative;padding:16px;box-sizing:border-box}.sendbird-message-search-pannel .sendbird-message-search-pannel__input .sendbird-message-search-pannel__input__container{position:relative;border-radius:4px;width:100%;height:44px}.sendbird-theme--light .sendbird-message-search-pannel .sendbird-message-search-pannel__input .sendbird-message-search-pannel__input__container{border:1px solid var(--sendbird-light-onlight-03)}.sendbird-theme--dark .sendbird-message-search-pannel .sendbird-message-search-pannel__input .sendbird-message-search-pannel__input__container{border:1px solid var(--sendbird-dark-ondark-03)}.sendbird-message-search-pannel .sendbird-message-search-pannel__input .sendbird-message-search-pannel__input__container .sendbird-message-search-pannel__input__container__search-icon{position:absolute;top:10px;left:16px}.sendbird-message-search-pannel .sendbird-message-search-pannel__input .sendbird-message-search-pannel__input__container .sendbird-message-search-pannel__input__container__spinner{position:absolute;top:12px;right:12px}.sendbird-message-search-pannel .sendbird-message-search-pannel__input .sendbird-message-search-pannel__input__container .sendbird-message-search-pannel__input__container__reset-input-button{position:absolute;top:12px;right:12px}.sendbird-message-search-pannel .sendbird-message-search-pannel__input .sendbird-message-search-pannel__input__container .sendbird-message-search-pannel__input__container__reset-input-button:hover{cursor:pointer}.sendbird-message-search-pannel .sendbird-message-search-pannel__message-search{position:relative;box-sizing:border-box;width:100%;height:100%;overflow-y:hidden}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/OpenChannel/components/FrozenChannelNotification/frozen-channel-notification.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-frozen-channel-notification{position:relative;margin-top:8px;margin-right:24px;margin-left:24px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px}.sendbird-theme--light .sendbird-frozen-channel-notification{background-color:var(--sendbird-light-information-100)}.sendbird-theme--dark .sendbird-frozen-channel-notification{background-color:var(--sendbird-dark-information-100)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/OpenChannel/components/OpenChannelHeader/open-channel-header.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-oepnchannel-header__icon_back{position:absolute;left:12px;top:18px}.sendbird-openchannel-conversation-header{position:relative;min-height:64px;box-sizing:border-box}.sendbird-theme--light .sendbird-openchannel-conversation-header{border-bottom:1px solid var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-openchannel-conversation-header{border-bottom:1px solid var(--sendbird-dark-ondark-04)}.sendbird-openchannel-conversation-header .sendbird-openchannel-conversation-header__left__title{white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis;max-width:calc(100% - 120px)}.sendbird--mobile-mode .sendbird-openchannel-conversation-header .sendbird-openchannel-conversation-header__left__title{max-width:calc(100% - 160px)}.sendbird-openchannel-conversation-header__left [class*=sendbird-openchannel-conversation-header__left__cover-image]{position:absolute;left:20px;top:16px}.sendbird--mobile-mode .sendbird-openchannel-conversation-header__left [class*=sendbird-openchannel-conversation-header__left__cover-image]{left:50px}.sendbird-openchannel-conversation-header__left__title{position:absolute;left:60px;top:12px}.sendbird--mobile-mode .sendbird-openchannel-conversation-header__left__title{left:90px}.sendbird-openchannel-conversation-header__left__sub-title{position:absolute;left:60px;top:36px}.sendbird--mobile-mode .sendbird-openchannel-conversation-header__left__sub-title{left:90px}.sendbird-openchannel-conversation-header__right{position:absolute;top:0px;right:0px;width:64px;height:64px}.sendbird-openchannel-conversation-header__right__trigger{position:absolute;top:16px;right:16px;display:flex;align-items:center;justify-content:center}.sendbird-openchannel-conversation-header__left__cover-image--icon{display:flex;justify-content:center;align-items:center;border-radius:50%}.sendbird-theme--light .sendbird-openchannel-conversation-header__left__cover-image--icon{background-color:var(--sendbird-light-background-300)}.sendbird-theme--dark .sendbird-openchannel-conversation-header__left__cover-image--icon{background-color:var(--sendbird-dark-background-300)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/OpenChannel/components/OpenChannelMessageList/openchannel-message-list.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-openchannel-conversation-scroll{position:relative;width:100%}.sendbird-openchannel-conversation-scroll .sendbird-openchannel-conversation-scroll__container{position:sticky;width:100%;bottom:0px;height:100%;overflow:hidden}.sendbird-openchannel-conversation-scroll .sendbird-openchannel-conversation-scroll__container .sendbird-openchannel-conversation-scroll__container__padding{height:8px}.sendbird-openchannel-conversation-scroll .sendbird-openchannel-conversation-scroll__container .sendbird-openchannel-conversation-scroll__container__item-container{width:100%;height:100%;overflow:scroll}.sendbird-openchannel-conversation-scroll .sendbird-openchannel-conversation-scroll__container .sendbird-openchannel-conversation-scroll__container__item-container.no-messages{width:100%;height:100%}.sendbird-openchannel-conversation-scroll .sendbird-openchannel-conversation-scroll__container .sendbird-openchannel-conversation-scroll__container__item-container.no-messages .sendbird-openchannel-conversation-scroll__container__place-holder{width:100%;height:100%}.sendbird-openchannel-conversation-scroll .sendbird-openchannel-conversation-scroll__container__scroll-bottom-button{position:absolute;display:flex;align-items:center;justify-content:center;bottom:8px;left:calc(50% - 20px);width:40px;height:40px;border-radius:24px;z-index:1}.sendbird-theme--light .sendbird-openchannel-conversation-scroll .sendbird-openchannel-conversation-scroll__container__scroll-bottom-button{background-color:var(--sendbird-light-primary-300);box-shadow:var(--sendbird-light-shadow-05)}.sendbird-theme--dark .sendbird-openchannel-conversation-scroll .sendbird-openchannel-conversation-scroll__container__scroll-bottom-button{background-color:var(--sendbird-dark-primary-200);box-shadow:var(--sendbird-dark-shadow-05)}.sendbird-openchannel-conversation-scroll .sendbird-openchannel-conversation-scroll__container__scroll-bottom-button:hover{cursor:pointer}.sendbird-theme--light .sendbird-openchannel-conversation-scroll .sendbird-openchannel-conversation-scroll__container__scroll-bottom-button:hover{background-color:var(--sendbird-light-primary-400)}.sendbird-theme--dark .sendbird-openchannel-conversation-scroll .sendbird-openchannel-conversation-scroll__container__scroll-bottom-button:hover{background-color:var(--sendbird-dark-primary-300)}.sendbird-theme--light .sendbird-openchannel-conversation-scroll .sendbird-openchannel-conversation-scroll__container__scroll-bottom-button:active{background-color:var(--sendbird-light-primary-500)}.sendbird-theme--dark .sendbird-openchannel-conversation-scroll .sendbird-openchannel-conversation-scroll__container__scroll-bottom-button:active{background-color:var(--sendbird-dark-primary-400)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/OpenChannel/components/OpenChannelUI/open-channel-ui.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-openchannel-conversation{position:relative;display:flex;flex-direction:column;height:100%;width:100%}.sendbird-theme--light .sendbird-openchannel-conversation{background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-openchannel-conversation{background-color:var(--sendbird-dark-background-600)}.sendbird-openchannel-conversation .sendbird-openchannel-conversation-scroll{overflow-y:auto;flex:1 1 0;order:2;width:100%}.sendbird-openchannel-conversation .sendbird-openchannel-footer{order:3;padding:12px 24px 24px 24px}.sendbird-openchannel-conversation .sendbird-openchannel-conversation-scroll-container{display:flex;height:100%;overflow-y:auto;overflow-x:hidden;flex-direction:column}.sendbird-openchannel-conversation .sendbird-openchannel-conversation-scroll-container .sendbird-openchannel-conversation-scroll-padding{flex:1 1 0}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/OpenChannelApp/community.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".community-app{display:flex;flex-direction:row;height:99vh}.community-app *{font-family:var(--sendbird-font-family-default)}.community-app .community-app{flex:1}.community-app .channel-list{background-color:var(--bg-0);border-right:1px solid var(--gray-1)}.community-app .community-open-channel{flex:1;background-color:var(--bg-0)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/OpenChannelApp/components/dummy-stream.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".dummy-stream-empty,.dummy-stream{background-color:var(--stream-bg);height:100%;width:100%;overflow:scroll}.dummy-stream-empty .dummy-stream-banner,.dummy-stream .dummy-stream-banner{width:100%;text-align:center}.dummy-stream-empty .dummy-stream-banner img,.dummy-stream .dummy-stream-banner img{width:100%;max-height:700px}.dummy-stream-empty .dummy-stream-panel,.dummy-stream .dummy-stream-panel{padding:16px;box-sizing:border-box;border-radius:4px;margin:16px;height:128px;background-color:var(--stream-panel-bg);display:flex;flex-direction:row}.dummy-stream-empty .dummy-stream-panel .dummy-stream-panel__right,.dummy-stream .dummy-stream-panel .dummy-stream-panel__right{margin-left:16px}.dummy-stream-empty .dummy-stream-panel .stream-name,.dummy-stream .dummy-stream-panel .stream-name{display:flex;align-items:center}.dummy-stream-empty .dummy-stream-panel .live-badge,.dummy-stream .dummy-stream-panel .live-badge{border-radius:4px;background-color:red;color:#fff;width:40px;text-align:center;font-size:12px;font-weight:bold;display:inline-block}.dummy-stream-empty .dummy-stream-panel .channel-name,.dummy-stream .dummy-stream-panel .channel-name{display:inline-block;margin-left:8px;font-size:20px;font-weight:600;font-stretch:normal;font-style:normal;line-height:1.4;letter-spacing:-0.2px;color:var(--gray-0)}.dummy-stream-empty .dummy-stream-panel .stream-meta,.dummy-stream .dummy-stream-panel .stream-meta{margin:2px 0 19px 0px;font-size:14px;font-weight:normal;font-stretch:normal;font-style:normal;line-height:1.43;letter-spacing:normal;text-align:center;color:var(--gray-2)}.dummy-stream-empty .dummy-stream-panel .stream-creator,.dummy-stream .dummy-stream-panel .stream-creator{margin-top:24px;display:flex;flex-direction:row}.dummy-stream-empty .dummy-stream-panel .stream-creator-tags,.dummy-stream .dummy-stream-panel .stream-creator-tags{margin-left:8px;display:flex;flex-direction:row}.dummy-stream-empty .dummy-stream-panel .tag,.dummy-stream .dummy-stream-panel .tag{padding:2px 8px;margin-right:4px;border-radius:12px;font-size:14px;font-weight:600;font-stretch:normal;font-style:normal;line-height:1.43;letter-spacing:normal;color:var(--gray-2);background-color:var(--stream-tag-bg)}.dummy-stream-empty .dummy-stream-panel .stream-creator-name,.dummy-stream .dummy-stream-panel .stream-creator-name{display:inline-block;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.43;letter-spacing:normal;color:var(--gray-0)}.dummy-stream-empty .channel-avatar-large,.dummy-stream .channel-avatar-large{height:56px;width:56px}.dummy-stream-empty .channel-avatar-large img,.dummy-stream .channel-avatar-large img{height:100%;width:100%;border-radius:50%}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/OpenChannelApp/components/login.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".login-form{height:99vh;width:99vw;display:flex;align-items:center;justify-content:center}.login-form form{display:flex;align-items:center;justify-content:center;height:500px;width:500px;border:1px solid gray}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/OpenChannelApp/components/open-channel-preview.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".channel-preview{position:relative;cursor:pointer;width:264px;height:48px;box-sizing:border-box;display:flex;flex-direction:row;border-bottom:1px solid var(--gray-1);color:var(--gray-0)}.channel-preview:hover{background-color:var(--preview-hover)}.channel-preview.channel-preview--streaming .channel-preview__inner-right{padding-top:0px;padding-left:0px}.channel-preview.channel-preview--streaming .channel-preview__name,.channel-preview.channel-preview--streaming .channel-preview__creator-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:140px;left:4px}.channel-preview.channel-preview--streaming .channel-preview__name{position:absolute;top:8px}.channel-preview.channel-preview--streaming .channel-preview__creator-name{position:absolute;top:24px;font-size:14px;font-weight:normal;font-stretch:normal;font-style:normal;line-height:1.43;letter-spacing:normal;color:var(--selected-sub-text)}.channel-preview.channel-preview--streaming .channel-preview__count{position:absolute;right:10px;top:12px;display:flex;flex-direction:row}.channel-preview.channel-preview--streaming .channel-preview__count-icon{width:10px;height:10px;border-radius:50%;background-color:red}.channel-preview.channel-preview--streaming .channel-preview__count-text{font-size:12px;font-weight:normal;font-stretch:normal;font-style:normal;line-height:1;letter-spacing:normal;margin-left:4px;color:var(--gray-0)}.channel-preview.channel-preview--selected{background-color:var(--selected-bg-0);color:var(--selected-text-0)}.channel-preview.channel-preview--selected .channel-preview__selection{display:inline-block}.channel-preview .channel-preview__selection{display:none;position:absolute;top:0;left:0;height:100%;width:4px;background-color:#9e8cf5}.channel-preview .channel-preview__name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:210px;font-size:14px;font-weight:600;font-stretch:normal;font-style:normal;line-height:1.14;letter-spacing:-0.2px}.channel-preview .channel-preview__name svg{margin-left:3px;margin-bottom:-3px}.channel-preview .channel-preview__inner-left{padding-top:8px;padding-left:12px;position:relative;box-sizing:border-box}.channel-preview .channel-preview__inner-right{position:relative;width:calc(100% - 44px);padding:0px 12px;box-sizing:border-box;display:flex;align-items:center}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/OpenChannelApp/components/profile.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".profile-component{display:flex}.profile-component .profile-avatar{height:32px;width:32px}.profile-component .profile-avatar img{border-radius:50%;height:100%;width:100%}.profile-component .profile-text{margin-left:12px;max-width:180px;overflow:hidden}.profile-component .profile-text .profile-name{width:100%;overflow:hidden;text-overflow:ellipsis;color:var(--gray-0);font-size:14px;font-weight:600;font-stretch:normal;font-style:normal;line-height:1.14;letter-spacing:-0.2px}.profile-component .profile-text .profile-nickname{width:100%;overflow:hidden;text-overflow:ellipsis;color:var(--gray-2);font-size:12px;font-weight:normal;font-stretch:normal;font-style:normal;line-height:1.33;letter-spacing:normal}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/OpenChannelApp/components/streaming-channel-list.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".streaming-channel-list{width:264px;height:100%;display:flex;flex-direction:column}.streaming-channel-list .streaming-channel-list__list{height:100%;overflow-y:scroll;flex:1}.streaming-channel-list .streaming-channel-list__title{padding:20px 24px;box-sizing:border-box;font-size:18px;font-weight:600;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:-0.2px;color:var(--gray-0);border-bottom:1px solid var(--gray-1)}.streaming-channel-list .streaming-channel-list__placeholder{width:200px;height:16px;text-align:center;margin-left:32px;font-size:12px;font-weight:normal;font-stretch:normal;font-style:normal;line-height:1.33;letter-spacing:normal;color:var(--gray-2)}.streaming-channel-list .streaming-channel-list__footer{padding:16px;box-sizing:border-box;display:flex}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/OpenChannelApp/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-openchannel-app{position:relative;height:100%;width:100%;display:flex}.sendbird-openchannel-app .sendbird-openchannel-app__channel{position:relative;height:100%;width:100%}.sendbird-openchannel-app .sendbird-openchannel-app__settings{position:relative;top:0px;right:0px;height:100%}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/OpenChannelApp/streaming.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".streaming-app{display:flex;flex-direction:row;height:99vh;position:relative}.streaming-app *{font-family:var(--sendbird-font-family-default)}.streaming-app .expand-icon{position:absolute;cursor:pointer;top:15px;right:15px;width:32px;height:32px;display:flex;justify-content:center;align-items:center;background-color:rgba(255,255,255,.12)}.streaming-app .expand-icon path{fill:rgba(255,255,255,.88)}.streaming-app .channel-title{position:relative;font-size:18px;font-weight:600;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:-0.2px;color:var(--gray-0);border-bottom:1px solid var(--gray-1)}.streaming-app .channel-title .close{cursor:pointer;position:absolute;right:15px;top:15px}.streaming-app .channel-title .close path{fill:var(--icon-fill-solid)}.streaming-app .channel-title .collapse{cursor:pointer;position:absolute;left:15px;top:15px}.streaming-app .channel-title .collapse path{fill:var(--icon-fill-solid)}.streaming-app .channel-title .channel-title-text{margin:15px auto;width:100%;text-align:center}.streaming-app .stream{flex:1;min-width:450px}.streaming-app .channel-list{background-color:var(--bg-0)}.streaming-app .chat-panel{background-color:var(--bg-0);width:320px}.streaming-app .chat-panel .sendbird-openchannel-thumbnail-message__right__body__wrap .sendbird-openchannel-thumbnail-message__right__body__wrap__overlay,.streaming-app .chat-panel .sendbird-openchannel-thumbnail-message__right__body__wrap .sendbird-openchannel-thumbnail-message__right__body__wrap__video,.streaming-app .chat-panel .sendbird-openchannel-thumbnail-message__right__body__wrap .sendbird-openchannel-thumbnail-message__right__body__wrap__video__video{max-width:100% !important}.streaming-app .chat-panel .sendbird-openchannel-thumbnail-message__right__title,.streaming-app .chat-panel .sendbird-openchannel-og-message__top__right__title,.streaming-app .chat-panel .sendbird-openchannel-user-message__right__top,.streaming-app .chat-panel .sendbird-openchannel-file-message__right__title{width:230px !important}.streaming-app .chat-panel .sendbird-openchannel-thumbnail-message__right__title .sendbird-openchannel-thumbnail-message__right__title__sender-name,.streaming-app .chat-panel .sendbird-openchannel-thumbnail-message__right__title .sendbird-openchannel-og-message__top__right__title__sender-name,.streaming-app .chat-panel .sendbird-openchannel-thumbnail-message__right__title .sendbird-openchannel-file-message__right__title__sender-name,.streaming-app .chat-panel .sendbird-openchannel-thumbnail-message__right__title .sendbird-openchannel-user-message__right__top__sender-name,.streaming-app .chat-panel .sendbird-openchannel-og-message__top__right__title .sendbird-openchannel-thumbnail-message__right__title__sender-name,.streaming-app .chat-panel .sendbird-openchannel-og-message__top__right__title .sendbird-openchannel-og-message__top__right__title__sender-name,.streaming-app .chat-panel .sendbird-openchannel-og-message__top__right__title .sendbird-openchannel-file-message__right__title__sender-name,.streaming-app .chat-panel .sendbird-openchannel-og-message__top__right__title .sendbird-openchannel-user-message__right__top__sender-name,.streaming-app .chat-panel .sendbird-openchannel-user-message__right__top .sendbird-openchannel-thumbnail-message__right__title__sender-name,.streaming-app .chat-panel .sendbird-openchannel-user-message__right__top .sendbird-openchannel-og-message__top__right__title__sender-name,.streaming-app .chat-panel .sendbird-openchannel-user-message__right__top .sendbird-openchannel-file-message__right__title__sender-name,.streaming-app .chat-panel .sendbird-openchannel-user-message__right__top .sendbird-openchannel-user-message__right__top__sender-name,.streaming-app .chat-panel .sendbird-openchannel-file-message__right__title .sendbird-openchannel-thumbnail-message__right__title__sender-name,.streaming-app .chat-panel .sendbird-openchannel-file-message__right__title .sendbird-openchannel-og-message__top__right__title__sender-name,.streaming-app .chat-panel .sendbird-openchannel-file-message__right__title .sendbird-openchannel-file-message__right__title__sender-name,.streaming-app .chat-panel .sendbird-openchannel-file-message__right__title .sendbird-openchannel-user-message__right__top__sender-name{display:inline-block;width:180px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/OpenChannelApp/theme.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-theme--dark{--gray-0: rgba(255, 255, 255, 0.88);--gray-1: rgba(255, 255, 255, 0.12);--gray-2: rgba(255, 255, 255, 0.5);--bg-0: #161616;--selected-bg-0: #000;--selected-text-0: #9e8cf5;--selected-sub-text: rgba(255, 255, 255, 0.5);--preview-hover: #2c2c2c;--stream-bg: #000;--stream-panel-bg: #161616;--stream-tag-bg: #2c2c2c;--icon-fill-solid: #fff}.sendbird-theme--light{--gray-0: rgba(0, 0, 0, 0.88);--gray-1: rgba(0, 0, 0, 0.12);--gray-2: rgba(0, 0, 0, 0.5);--bg-0: #fff;--selected-bg-0: #e2dfff;--selected-text-0: #7b53ef;--selected-sub-text: rgba(0, 0, 0, 0.5);--preview-hover: #f0f0f0;--stream-bg: #f0f0f0;--stream-panel-bg: #fff;--stream-tag-bg: #f0f0f0;--icon-fill-solid: rgba(0, 0, 0, 0.88)}body{margin:0}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/OpenChannelList/components/OpenChannelListUI/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-open-channel-list,.sendbird-open-channel-list-ui{position:relative;display:inline-flex;flex-direction:column;width:256px;min-width:256px;height:100%;box-sizing:border-box}.sendbird--mobile-mode .sendbird-open-channel-list,.sendbird--mobile-mode .sendbird-open-channel-list-ui{width:100%}.sendbird-theme--light .sendbird-open-channel-list,.sendbird-theme--light .sendbird-open-channel-list-ui{border-right:solid 1px var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-open-channel-list,.sendbird-theme--dark .sendbird-open-channel-list-ui{border-right:solid 1px var(--sendbird-dark-ondark-04)}.sendbird-open-channel-list .sendbird-open-channel-list-ui__header,.sendbird-open-channel-list-ui .sendbird-open-channel-list-ui__header{position:relative;display:inline-flex;flex-direction:row;align-items:center;width:100%;height:64px;box-sizing:border-box}.sendbird-theme--light .sendbird-open-channel-list .sendbird-open-channel-list-ui__header,.sendbird-theme--light .sendbird-open-channel-list-ui .sendbird-open-channel-list-ui__header{background-color:var(--sendbird-light-background-50);border-bottom:solid 1px var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-open-channel-list .sendbird-open-channel-list-ui__header,.sendbird-theme--dark .sendbird-open-channel-list-ui .sendbird-open-channel-list-ui__header{background-color:var(--sendbird-dark-background-600);border-bottom:solid 1px var(--sendbird-dark-ondark-04)}.sendbird-open-channel-list .sendbird-open-channel-list-ui__header .sendbird-open-channel-list-ui__header__title,.sendbird-open-channel-list-ui .sendbird-open-channel-list-ui__header .sendbird-open-channel-list-ui__header__title{position:relative;margin-left:24px;display:inline-flex;align-items:center;box-sizing:border-box}.sendbird-open-channel-list .sendbird-open-channel-list-ui__header .sendbird-open-channel-list-ui__header__button-refresh,.sendbird-open-channel-list-ui .sendbird-open-channel-list-ui__header .sendbird-open-channel-list-ui__header__button-refresh{position:absolute;top:16px;right:56px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}.sendbird-open-channel-list .sendbird-open-channel-list-ui__header .sendbird-open-channel-list-ui__header__button-create-channel,.sendbird-open-channel-list-ui .sendbird-open-channel-list-ui__header .sendbird-open-channel-list-ui__header__button-create-channel{position:absolute;top:16px;right:16px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}.sendbird-open-channel-list .sendbird-open-channel-list-ui__channel-list,.sendbird-open-channel-list-ui .sendbird-open-channel-list-ui__channel-list{position:relative;display:inline-flex;flex-direction:column;width:100%;height:calc(100% - 64px);box-sizing:border-box;overflow-y:scroll}.sendbird-open-channel-list-ui__channel-list--place-holder--loading{position:relative;min-height:62px;display:inline-flex;align-items:center;justify-content:center}.sendbird-theme--light .sendbird-open-channel-list-ui__channel-list--place-holder--loading{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-open-channel-list-ui__channel-list--place-holder--loading{background-color:var(--sendbird-dark-background-500)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/OpenChannelList/components/OpenChannelPreview/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-open-channel-preview{position:relative;display:inline-flex;flex-direction:row;width:264px;height:58px;min-width:264px;min-height:58px;box-sizing:border-box}.sendbird--mobile-mode .sendbird-open-channel-preview{width:100%}.sendbird-theme--light .sendbird-open-channel-preview{background-color:var(--sendbird-light-background-50);border-bottom:solid 1px var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-open-channel-preview{background-color:var(--sendbird-dark-background-600);border-bottom:solid 1px var(--sendbird-dark-ondark-04)}.sendbird-theme--light .sendbird-open-channel-preview:hover{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-open-channel-preview:hover{background-color:var(--sendbird-dark-background-500)}.sendbird-theme--light .sendbird-open-channel-preview.selected{background-color:var(--sendbird-light-primary-100);border-left:solid 4px var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-open-channel-preview.selected{background-color:var(--sendbird-dark-primary-300);border-left:solid 4px var(--sendbird-dark-primary-200)}.sendbird-open-channel-preview .sendbird-open-channel-preview__cover-image{position:relative;margin-top:8px;margin-left:16px;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;box-sizing:border-box}.sendbird-open-channel-preview .sendbird-open-channel-preview__cover-image .sendbird-open-channel-preview__cover-image__avatar,.sendbird-open-channel-preview .sendbird-open-channel-preview__cover-image .sendbird-open-channel-preview__cover-image__avatar--default{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}.sendbird-open-channel-preview .sendbird-open-channel-preview__context{position:relative;margin-top:8px;margin-left:16px;display:inline-flex;flex-direction:column;width:calc(100% - 100px);box-sizing:border-box}.sendbird-open-channel-preview .sendbird-open-channel-preview__context .sendbird-open-channel-preview__context__title{position:relative;display:inline-flex;flex-direction:row;align-items:center;width:100%;height:16px;box-sizing:border-box}.sendbird-open-channel-preview .sendbird-open-channel-preview__context .sendbird-open-channel-preview__context__title .sendbird-open-channel-preview__context__title__channel-name{position:relative;display:inline-block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;overflow-x:hidden;text-overflow:ellipsis;word-break:keep-all}.sendbird-open-channel-preview .sendbird-open-channel-preview__context .sendbird-open-channel-preview__context__title .sendbird-open-channel-preview__context__title__channel-name.frozen{max-width:calc(100% - 20px)}.sendbird--mobile-mode .sendbird-open-channel-preview .sendbird-open-channel-preview__context .sendbird-open-channel-preview__context__title .sendbird-open-channel-preview__context__title__channel-name{overflow-y:hidden}.sendbird-open-channel-preview .sendbird-open-channel-preview__context .sendbird-open-channel-preview__context__title .sendbird-open-channel-preview__context__title__frozen{position:relative;margin-left:4px;display:inline-flex}.sendbird-open-channel-preview .sendbird-open-channel-preview__context .sendbird-open-channel-preview__context__participants{position:relative;margin-top:8px;display:inline-flex;flex-direction:row;align-items:center;width:100%;height:14px;box-sizing:border-box}.sendbird-open-channel-preview .sendbird-open-channel-preview__context .sendbird-open-channel-preview__context__participants .sendbird-open-channel-preview__context__participants__icon{position:relative;display:inline-flex;width:14px;height:14px;box-sizing:border-box}.sendbird-open-channel-preview .sendbird-open-channel-preview__context .sendbird-open-channel-preview__context__participants .sendbird-open-channel-preview__context__participants__count{position:relative;margin-left:4px;display:inline-flex;width:160px;max-width:160px;height:12px;box-sizing:border-box;overflow-x:hidden;text-overflow:ellipsis;word-break:keep-all}.sendbird--mobile-mode .sendbird-open-channel-preview .sendbird-open-channel-preview__context .sendbird-open-channel-preview__context__participants .sendbird-open-channel-preview__context__participants__count{overflow-y:hidden}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/OpenChannelSettings/components/OpenChannelProfile/channel-profile.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-openchannel-profile{position:relative;text-align:center;padding:32px 40px 27px 40px}.sendbird-theme--light .sendbird-openchannel-profile{border-bottom:1px solid var(--sendbird-light-onlight-04);background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-openchannel-profile{border-bottom:1px solid var(--sendbird-dark-ondark-04);background-color:var(--sendbird-dark-background-600)}.sendbird-openchannel-profile .sendbird-openchannel-profile--inner{height:116px}.sendbird-openchannel-profile .sendbird-openchannel-profile__avatar{margin-bottom:16px;text-align:center}.sendbird-openchannel-profile .sendbird-openchannel-profile__title{display:inline-block;max-width:240px;white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis;height:18px}.sendbird-openchannel-profile .sendbird-openchannel-profile__edit{position:absolute;top:10px;right:16px}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/OpenChannelSettings/components/OpenChannelSettingsUI/open-channel-ui.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-openchannel-settings{height:100%;width:320px;display:inline-block;overflow-y:scroll;position:relative}.sendbird--mobile-mode .sendbird-openchannel-settings{width:100%}.sendbird-theme--light .sendbird-openchannel-settings{background-color:var(--sendbird-light-background-50);border-left:1px solid var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-openchannel-settings{background-color:var(--sendbird-dark-background-600);border-left:1px solid var(--sendbird-dark-ondark-04)}.sendbird-openchannel-settings .sendbird-participants-accordion__footer{text-align:left;padding-top:16px;padding-left:16px}.sendbird-openchannel-settings .sendbird-openchannel-settings__operator-accordion-icon{position:absolute;left:14px}.sendbird-openchannel-settings .sendbird-openchannel-settings__accordion-icon,.sendbird-openchannel-settings .sendbird-openchannel-settings__panel-icon__delete{position:absolute;left:16px}.sendbird-openchannel-settings .sendbird-openchannel-settings__participant{height:100%}.sendbird-openchannel-settings .sendbird-openchannel-settings__participant .sendbird-openchannel-settings__participant-list{padding-top:64px;height:calc(100% - 64px);overflow-y:scroll}.sendbird-openchannel-settings .sendbird-openchannel-settings__participant .sendbird-openchannel-settings__header{display:block;width:100%;position:absolute;top:0;left:0}.sendbird-theme--light .sendbird-openchannel-settings .sendbird-openchannel-settings__participant .sendbird-openchannel-settings__header{background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-openchannel-settings .sendbird-openchannel-settings__participant .sendbird-openchannel-settings__header{background-color:var(--sendbird-dark-background-600)}.sendbird-openchannel-settings .sendbird-participants-accordion,.sendbird-openchannel-settings .sendbird-openchannel-settings__delete-channel{text-align:left}.sendbird-openchannel-settings .sendbird-openchannel-settings__members .sendbird-badge__text{margin-top:-2px}.sendbird-openchannel-settings .sendbird-openchannel-settings__header{height:64px;min-height:64px;position:relative;padding:20px 24px;box-sizing:border-box;text-align:left}.sendbird-theme--light .sendbird-openchannel-settings .sendbird-openchannel-settings__header{border-bottom:solid 1px var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-openchannel-settings .sendbird-openchannel-settings__header{border-bottom:solid 1px var(--sendbird-dark-ondark-04)}.sendbird-openchannel-settings .sendbird-openchannel-settings__close-icon{cursor:pointer;position:absolute;top:20px;right:16px}.sendbird-theme--light .sendbird-openchannel-settings .sendbird-openchannel-settings__close-icon path{fill:var(--sendbird-light-onlight-01)}.sendbird-theme--dark .sendbird-openchannel-settings .sendbird-openchannel-settings__close-icon path{fill:var(--sendbird-dark-ondark-01)}.sendbird-openchannel-settings .sendbird-openchannel-settings__placeholder{margin-top:40%}.sendbird-openchannel-settings .sendbird-openchannel-settings__url{padding:16px;box-sizing:border-box;position:relative}.sendbird-openchannel-settings .sendbird-openchannel-settings__url:hover .sendbird-openchannel-settings__copy-icon{display:inline-block}.sendbird-openchannel-settings .sendbird-openchannel-settings__url .sendbird-openchannel-settings__copy-icon{cursor:pointer;position:absolute;display:none;top:10px;right:18px}.sendbird-openchannel-settings .sendbird-openchannel-settings__url .sendbird-openchannel-settings__url-value{margin-top:8px}.sendbird-theme--light .sendbird-openchannel-settings .sendbird-openchannel-settings__url .sendbird-openchannel-settings__url-value{color:var(--sendbird-light-onlight-01)}.sendbird-theme--dark .sendbird-openchannel-settings .sendbird-openchannel-settings__url .sendbird-openchannel-settings__url-value{color:var(--sendbird-dark-ondark-01)}.sendbird-openchannel-settings .sendbird-openchannel-settings__url .sendbird-openchannel-settings__url-value,.sendbird-openchannel-settings .sendbird-openchannel-settings__url .sendbird-openchannel-settings__url-label{text-align:left;display:block;word-wrap:break-word}.sendbird-theme--light .sendbird-openchannel-settings .sendbird-openchannel-settings__url{background-color:var(--sendbird-light-background-50);border-bottom:1px solid var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-openchannel-settings .sendbird-openchannel-settings__url{background-color:var(--sendbird-dark-background-600);border-bottom:1px solid var(--sendbird-dark-ondark-04)}.sendbird-openchannel-settings .sendbird-openchannel-settings__panel-item{display:block;cursor:pointer;box-sizing:border-box;position:relative;padding:12px 22px 10px 56px}.sendbird-theme--light .sendbird-openchannel-settings .sendbird-openchannel-settings__panel-item{background-color:var(--sendbird-light-background-50);border-bottom:1px solid var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-openchannel-settings .sendbird-openchannel-settings__panel-item{background-color:var(--sendbird-dark-background-600);border-bottom:1px solid var(--sendbird-dark-ondark-04)}.sendbird-openchannel-settings .sendbird-openchannel-settings__panel-item:focus{outline:none}.sendbird-openchannel-settings .sendbird-openchannel-settings__panel-item.sendbird-channel-settings__panel-item__disabled{cursor:not-allowed}.sendbird-openchannel-settings .sendbird-participants-accordion__member{position:relative;padding:12px 0px 12px 56px;width:100%;height:40px;box-sizing:border-box;text-align:left}.sendbird-openchannel-settings .sendbird-participants-accordion__member .sendbird-label{max-width:190px;display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sendbird-openchannel-settings .sendbird-participants-accordion__member .sendbird-participants-accordion__member__title.self-operator,.sendbird-openchannel-settings .sendbird-participants-accordion__member .sendbird-participants-accordion__member__title.operator,.sendbird-openchannel-settings .sendbird-participants-accordion__member .sendbird-participants-accordion__member__title.user-id{position:absolute;right:16px}.sendbird-openchannel-settings .sendbird-participants-accordion__member .sendbird-participants-accordion__member__action{display:none}.sendbird-openchannel-settings .sendbird-participants-accordion__member:hover .sendbird-participants-accordion__member__title.operator,.sendbird-openchannel-settings .sendbird-participants-accordion__member:hover .sendbird-participants-accordion__member__title.user-id{display:none}.sendbird-openchannel-settings .sendbird-participants-accordion__member:hover .sendbird-participants-accordion__member__action{display:inline-block}.sendbird-openchannel-settings .sendbird-participants-accordion__member-avatar{position:absolute;left:16px;top:10px;cursor:pointer}.sendbird-openchannel-settings .sendbird-participants-accordion__member__action{position:absolute;display:none;top:4px;right:8px;cursor:pointer}.sendbird-openchannel-settings .sendbird-openchannel-operator-list__footer,.sendbird-openchannel-settings .sendbird-openchannel-participant-list__footer,.sendbird-openchannel-settings .sendbird-channel-settings-muted-participant-list__footer,.sendbird-openchannel-settings .sendbird-channel-settings-banned-user-list__footer{padding-top:16px;display:flex;justify-content:left;padding-left:12px}.sendbird-openchannel-settings .sendbird-openchannel-operator-list__footer .sendbird-button:nth-child(2),.sendbird-openchannel-settings .sendbird-openchannel-participant-list__footer .sendbird-button:nth-child(2),.sendbird-openchannel-settings .sendbird-channel-settings-muted-participant-list__footer .sendbird-button:nth-child(2),.sendbird-openchannel-settings .sendbird-channel-settings-banned-user-list__footer .sendbird-button:nth-child(2){margin-left:8px}.sendbird-participants-accordion__member-avatar__avatar{position:absolute}.sendbird-more-users__popup-scroll{max-height:420px;overflow:scroll}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/Thread/components/ParentMessageInfo/ParentMessageInfoItem.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-parent-message-info-item{margin-top:8px;position:relative}.sendbird-parent-message-info-item__text-message,.sendbird-parent-message-info-item__og-field{display:inline-block;padding-right:4px;white-space:pre-line;word-break:break-all}.sendbird-parent-message-info-item__og-field{display:inline-flex;flex-direction:column;margin-top:4px}.sendbird-parent-message-info-item__og-field__content{display:inline-flex;flex-direction:column;gap:4px;padding:8px 12px}.sendbird-parent-message-info-item__file-message{align-items:center;display:inline-flex;flex-direction:row;gap:8px}.sendbird-parent-message-info-item__file-message__file-name{display:inline-block;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sendbird-parent-message-info-item__thumbnail-message{display:block;height:148px;position:relative;width:200px}.sendbird-parent-message-info-item__multiple-files-message-wrapper{padding:0}.sendbird-theme--light .sendbird-parent-message-info-item__multiple-files-message-wrapper{background-color:rgba(0,0,0,0)}.sendbird-theme--dark .sendbird-parent-message-info-item__multiple-files-message-wrapper{background-color:rgba(0,0,0,0)}.sendbird-parent-message-info-item__thumbnail-message__thumbnail{border-radius:16px;position:absolute}.sendbird-parent-message-info-item__thumbnail-message__placeholder{align-items:center;display:flex;height:148px;justify-content:center;position:absolute;width:100%}.sendbird-parent-message-info-item__thumbnail-message__placeholder__icon{align-items:center;background-color:var(--sendbird-light-background-50);border-radius:50%;display:flex;height:56px;justify-content:center;width:56px}.sendbird-parent-message-info-item__thumbnail-message__image-cover{background-color:var(--sendbird-light-overlay-01);border-radius:16px;display:none;height:148px;position:absolute;top:0;width:100%}.sendbird-parent-message-info-item__thumbnail-message__video{border-radius:16px;height:148px;position:absolute;width:100%}.sendbird-parent-message-info-item__thumbnail-message__icon-wrapper{align-items:center;display:flex;height:148px;justify-content:center;position:absolute;width:100%}.sendbird-parent-message-info-item__thumbnail-message__icon-wrapper__icon{align-items:center;background-color:var(--sendbird-light-ondark-01);border-radius:50%;display:inline-flex;height:56px;justify-content:center;width:56px}.sendbird-parent-message-info-item__thumbnail-message:hover{cursor:pointer}.sendbird-parent-message-info-item__thumbnail-message:hover .sendbird-parent-message-info-item__thumbnail-message__image-cover{display:inline-flex}.sendbird-parent-message-info-item__voice-message__item{height:50px;min-width:136px}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/Thread/components/ParentMessageInfo/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-parent-message-info{position:relative;width:100%;height:fit-content;padding:12px 12px 12px 16px;display:inline-flex;flex-direction:row;align-items:flex-start;box-sizing:border-box}.sendbird-parent-message-info__sender{position:relative;min-width:40px;min-height:40px}.sendbird-parent-message-info__content{position:relative;margin-left:12px;display:inline-flex;flex-direction:column}.sendbird-parent-message-info__content__info{position:relative;max-width:188px;height:16px;display:inline-flex;flex-direction:row;justify-content:flex-start;align-items:center}.sendbird-parent-message-info__content__info__sender-name,.sendbird-parent-message-info__content__info__sender-name--use-reaction{position:relative;margin-right:6px;word-break:keep-all;overflow:hidden;text-overflow:ellipsis}.sendbird-parent-message-info__content__info__sender-name{max-width:142px}.sendbird-parent-message-info__content__info__sender-name--use-reaction{max-width:110px}.sendbird-parent-message-info__content__info__sent-at{position:relative;max-width:52px;height:12px;display:inline-flex;justify-content:flex-start;align-items:center;white-space:nowrap;word-break:keep-all}.sendbird-parent-message-info__content__body{position:relative;max-width:210px;overflow:hidden}.sendbird-parent-message-info__content__body.sendbird-thumbnail-message-item-body.incoming{min-width:200px;height:148px}.sendbird-parent-message-info__content__reactions{position:relative;max-width:240px;width:100%;height:100%}.sendbird-parent-message-info__context-menu{position:absolute;top:6px;right:12px;display:none}.sendbird-parent-message-info__context-menu.use-reaction{right:44px}.sendbird-parent-message-info__reaction-menu{position:absolute;top:6px;right:12px;display:none}.sendbird-parent-message-info .sendbird-text-message-item-body.reactions{border-radius:16px}.sendbird-theme--light .sendbird-parent-message-info .sendbird-emoji-reactions{border:1px solid var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-parent-message-info .sendbird-emoji-reactions{border:1px solid var(--sendbird-dark-background-600)}.sendbird-parent-message-info:hover .sendbird-parent-message-info__context-menu,.sendbird-parent-message-info:hover .sendbird-parent-message-info__reaction-menu,.sendbird-parent-message-info__context-menu.sendbird-mouse-hover,.sendbird-parent-message-info__reaction-menu.sendbird-mouse-hover{display:inline-flex}.sendbird-theme--light .sendbird-parent-message-info .sendbird-parent-message-info__content__body{background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-parent-message-info .sendbird-parent-message-info__content__body{background-color:var(--sendbird-dark-background-600)}.sendbird-theme--light .sendbird-parent-message-info:hover,.sendbird-theme--light .sendbird-parent-message-info:hover .sendbird-parent-message-info__content__body{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-parent-message-info:hover,.sendbird-theme--dark .sendbird-parent-message-info:hover .sendbird-parent-message-info__content__body{background-color:var(--sendbird-dark-background-500)}.sendbird--mobile-mode .sendbird-parent-message-info.sendbird-thread-ui__parent-message-info:hover{background-color:rgba(0,0,0,0)}.sendbird-theme--light .sendbird-parent-message-info:hover .sendbird-emoji-reactions{border:1px solid var(--sendbird-light-background-100);background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-parent-message-info:hover .sendbird-emoji-reactions{border:1px solid var(--sendbird-dark-background-500);background-color:var(--sendbird-dark-background-500)}.parent-message-info--suggested-mention-list{width:100%;margin-left:0px;margin-right:0px;min-height:200px}.parent-message-info--suggested-mention-list .sendbird-mention-suggest-list__user-item{padding-left:16px;padding-right:16px}.parent-message-info--suggested-mention-list .sendbird-mention-suggest-list__user-item .sendbird-mention-suggest-list__user-item__nickname{max-width:166px}.parent-message-info--suggested-mention-list .sendbird-mention-suggest-list__user-item .sendbird-mention-suggest-list__user-item__user-id{max-width:68px}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/Thread/components/ThreadHeader/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-thread-header{position:relative;min-width:320px;width:320px;min-height:64px;height:64px;display:inline;padding:13px 24px;box-sizing:border-box}.sendbird-thread-header__title{position:relative;max-width:254px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sendbird-thread-header__channel-name{position:relative;max-width:254px;height:12px;display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sendbird-thread-header__action{position:absolute;top:0px;right:0px;width:56px;height:100%;display:inline-flex;align-items:center;justify-content:center}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/Thread/components/ThreadList/ThreadListItemContent.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-thread-list-item-content{position:relative;display:inline-flex;flex-direction:row;width:100%;height:100%}.sendbird-thread-list-item-content.incoming{justify-content:flex-start}.sendbird-thread-list-item-content.outgoing{justify-content:flex-end}.sendbird-thread-list-item-content .sendbird-thread-list-item-content__middle{max-width:200px}.sendbird--mobile-mode .sendbird-thread-list-item-content .sendbird-thread-list-item-content__middle{max-width:calc(100vw - 100px)}.sendbird-thread-list-item-content .sendbird-thread-list-item-content__middle .sendbird-thread-list-item-content__middle__quote-message.use-quote{margin-top:-8px;bottom:-8px}.sendbird-thread-list-item-content__middle__body-container{width:100%}.sendbird-thread-list-item-content.incoming .sendbird-thread-list-item-content__left{position:relative;display:inline-flex;min-width:40px}.sendbird-thread-list-item-content.incoming .sendbird-thread-list-item-content__left .sendbird-thread-list-item-content__left__avatar{position:absolute;left:0px;bottom:2px}.sendbird-thread-list-item-content.incoming .sendbird-thread-list-item-content__middle{position:relative;display:inline-flex;flex-direction:column;align-items:flex-start}.sendbird-thread-list-item-content.incoming .sendbird-thread-list-item-content__middle .sendbird-thread-list-item-content__middle__body-container .sendbird-thread-list-item-content__middle__body-container__created-at{position:absolute;bottom:6px;right:-84px;white-space:nowrap;display:flex;flex-direction:row;min-width:80px}.sendbird-thread-list-item-content.incoming .sendbird-thread-list-item-content__middle .sendbird-thread-list-item-content__middle__body-container .sendbird-thread-list-item-content__middle__body-container__created-at.sendbird-mouse-hover{display:none}.sendbird-thread-list-item-content.incoming .sendbird-thread-list-item-content__middle .sendbird-thread-list-item-content__middle__sender-name{position:relative;margin-left:12px;margin-bottom:4px;width:100%;overflow:hidden;text-overflow:ellipsis}.sendbird-thread-list-item-content.incoming .sendbird-thread-list-item-content__middle .sendbird-thread-list-item-content__middle__quote-message{position:relative;width:100%;display:inline-flex}.sendbird-thread-list-item-content.incoming .sendbird-thread-list-item-content__middle .sendbird-thread-list-item-content__middle__quote-message.outgoing{justify-content:flex-end}.sendbird-thread-list-item-content.incoming .sendbird-thread-list-item-content__middle .sendbird-thread-list-item-content__middle__quote-message.incoming{justify-content:flex-start}.sendbird-thread-list-item-content.incoming .sendbird-thread-list-item-content__middle .sendbird-thread-list-item-content__middle__quote-message:hover{cursor:pointer}.sendbird-thread-list-item-content.incoming .sendbird-thread-list-item-content__right{position:relative;display:inline-flex;width:50px;margin-left:4px;padding-top:18px}.sendbird-thread-list-item-content.incoming .sendbird-thread-list-item-content__right.use-reactions{width:70px}.sendbird-thread-list-item-content.incoming .sendbird-thread-list-item-content__right.chain-top{padding-top:2px}.sendbird-thread-list-item-content.incoming .sendbird-thread-list-item-content__right.chain-top.use-quote{padding-top:18px}.sendbird-thread-list-item-content.incoming .sendbird-thread-list-item-content__right .sendbird-thread-list-item-content-menu{position:relative;flex-direction:row;height:32px;display:none}.sendbird-thread-list-item-content.incoming .sendbird-thread-list-item-content__right .sendbird-thread-list-item-content-menu.sendbird-mouse-hover{display:inline-flex}.sendbird-thread-list-item-content.incoming:hover .sendbird-thread-list-item-content__right .sendbird-thread-list-item-content-menu{display:inline-flex}.sendbird-thread-list-item-content.incoming:hover .sendbird-thread-list-item-content__middle .sendbird-thread-list-item-content__middle__body-container .sendbird-thread-list-item-content__middle__body-container__created-at{display:none}.sendbird-thread-list-item-content.outgoing .sendbird-thread-list-item-content__left{position:relative;box-sizing:border-box;display:inline-flex;justify-content:flex-end;width:50px}.sendbird-thread-list-item-content.outgoing .sendbird-thread-list-item-content__left.use-reactions{width:70px}.sendbird-thread-list-item-content.outgoing .sendbird-thread-list-item-content__left.use-quote .sendbird-thread-list-item-content-menu{top:18px}.sendbird-thread-list-item-content.outgoing .sendbird-thread-list-item-content__left .sendbird-thread-list-item-content-menu{position:absolute;top:2px;right:4px;flex-direction:row;display:none}.sendbird-thread-list-item-content.outgoing .sendbird-thread-list-item-content__left .sendbird-thread-list-item-content-menu.sendbird-mouse-hover{display:inline-flex}.sendbird-thread-list-item-content.outgoing .sendbird-thread-list-item-content__middle{position:relative;display:inline-flex;flex-direction:column;align-items:flex-end}.sendbird-thread-list-item-content.outgoing .sendbird-thread-list-item-content__middle .sendbird-thread-list-item-content__middle__quote-message{position:relative;width:100%;display:inline-flex}.sendbird-thread-list-item-content.outgoing .sendbird-thread-list-item-content__middle .sendbird-thread-list-item-content__middle__quote-message.outgoing{justify-content:flex-end}.sendbird-thread-list-item-content.outgoing .sendbird-thread-list-item-content__middle .sendbird-thread-list-item-content__middle__quote-message.incoming{justify-content:flex-start}.sendbird-thread-list-item-content.outgoing .sendbird-thread-list-item-content__middle .sendbird-thread-list-item-content__middle__body-container{position:relative}.sendbird-thread-list-item-content.outgoing .sendbird-thread-list-item-content__middle .sendbird-thread-list-item-content__middle__body-container .sendbird-thread-list-item-content__middle__body-container__created-at{position:absolute;bottom:2px;left:-84px;white-space:nowrap;display:flex;justify-content:flex-end;box-sizing:content-box;min-width:80px;min-height:16px}.sendbird-thread-list-item-content.outgoing .sendbird-thread-list-item-content__middle .sendbird-thread-list-item-content__middle__body-container .sendbird-thread-list-item-content__middle__body-container__created-at.sendbird-mouse-hover{display:none}.sendbird-thread-list-item-content.outgoing .sendbird-thread-list-item-content__middle .sendbird-thread-list-item-content__middle__body-container .sendbird-thread-list-item-content__middle__body-container__created-at .sendbird-thread-list-item-content__middle__body-container__created-at__component-container{position:relative;display:inline-flex}.sendbird-thread-list-item-content.outgoing .sendbird-thread-list-item-content__right{display:none}.sendbird-thread-list-item-content.outgoing:hover .sendbird-thread-list-item-content__left .sendbird-thread-list-item-content-menu{display:inline-flex}.sendbird-thread-list-item-content.outgoing:hover .sendbird-thread-list-item-content__middle .sendbird-thread-list-item-content__middle__body-container .sendbird-thread-list-item-content__middle__body-container__created-at{display:none}.sendbird-thread-list-item-content__middle__body-container{position:relative;display:flex;flex-direction:column}.sendbird-thread-list-item-content__middle__body-container .sendbird-thread-list-item-content__middle__message-item-body{width:100%;box-sizing:border-box}.sendbird-thread-list-item-content-reactions{position:relative;width:100%;max-width:400px;border-radius:0px 0px 16px 16px}.sendbird-theme--light .sendbird-thread-list-item-content-reactions{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-thread-list-item-content-reactions{background-color:var(--sendbird-dark-background-500)}.sendbird-theme--light .sendbird-thread-list-item-content-reactions.primary{background-color:var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-thread-list-item-content-reactions.primary{background-color:var(--sendbird-dark-primary-200)}.sendbird-theme--light .sendbird-thread-list-item-content-reactions.mouse-hover,.sendbird-theme--light .sendbird-thread-list-item-content-reactions:hover{background-color:var(--sendbird-light-background-200)}.sendbird-theme--dark .sendbird-thread-list-item-content-reactions.mouse-hover,.sendbird-theme--dark .sendbird-thread-list-item-content-reactions:hover{background-color:var(--sendbird-dark-background-400)}.sendbird-theme--light .sendbird-thread-list-item-content-reactions.mouse-hover.primary,.sendbird-theme--light .sendbird-thread-list-item-content-reactions:hover.primary{background-color:var(--sendbird-light-primary-400)}.sendbird-theme--dark .sendbird-thread-list-item-content-reactions.mouse-hover.primary,.sendbird-theme--dark .sendbird-thread-list-item-content-reactions:hover.primary{background-color:var(--sendbird-dark-primary-300)}.sendbird-thread-list-item-content__middle__thread-replies{margin-top:4px}.sendbird-thread-list-item-content__middle__message-item-body.sendbird-og-message-item-body,.sendbird-thread-list-item-content__middle__message-item-body.sendbird-thumbnail-message-item-body{min-width:200px;max-width:200px}.sendbird-thread-list-item-content__middle__message-item-body.sendbird-thumbnail-message-item-body{height:148px}.sendbird-thread-list-item-content__middle__message-item-body .sendbird-thumbnail-message-item-body__placeholder,.sendbird-thread-list-item-content__middle__message-item-body .sendbird-thumbnail-message-item-body__icon-wrapper,.sendbird-thread-list-item-content__middle__message-item-body .sendbird-thumbnail-message-item-body__video{height:148px}.sendbird-voice-message-item-body.sendbird-thread-list-item-content__middle__message-item-body{min-width:136px;height:50px}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/Thread/components/ThreadList/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-thread-list-item .sendbird-separator{margin:4px 0px}.sendbird-thread-list .sendbird-message-content__middle__sender-name{white-space:nowrap;max-width:210px;overflow:hidden;text-overflow:ellipsis}.sendbird-thread-list .sendbird-message-content.incoming .sendbird-message-content__middle{max-width:200px}.sendbird-thread-list .sendbird-thumbnail-message-item-body.outgoing{min-width:200px;min-height:148px;height:148px}.sendbird-thread-list .sendbird-message-content .sendbird-message-content__middle{max-width:230px}.sendbird-thread-list .sendbird-message-status__icon.sendbird-message-status--sent{display:none}.sendbird-thread-list .sendbird-mention-suggest-list{width:100%;margin-left:0px;margin-right:0px}.sendbird-thread-list .sendbird-mention-suggest-list__user-item{padding-left:16px;padding-right:16px}.sendbird-thread-list .sendbird-mention-suggest-list__user-item .sendbird-mention-suggest-list__user-item__nickname{max-width:134px}.sendbird-thread-list .sendbird-mention-suggest-list__user-item .sendbird-mention-suggest-list__user-item__user-id{max-width:46px}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/Thread/components/ThreadMessageInput/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-thread-message-input .sendbird-mention-suggest-list{width:100%;margin-left:0px;margin-right:0px}.sendbird-thread-message-input .sendbird-mention-suggest-list .sendbird-mention-suggest-list__user-item{padding-left:16px;padding-right:16px}.sendbird-thread-message-input .sendbird-mention-suggest-list .sendbird-mention-suggest-list__user-item .sendbird-mention-suggest-list__user-item__nickname{max-width:134px}.sendbird-thread-message-input .sendbird-mention-suggest-list .sendbird-mention-suggest-list__user-item .sendbird-mention-suggest-list__user-item__user-id{max-width:46px}.sendbird-theme--light .sendbird-thread-message-input--voice-message{border-top:1px solid var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-thread-message-input--voice-message{border-top:1px solid var(--sendbird-dark-ondark-04)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/Thread/components/ThreadUI/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-thread-ui{position:relative;max-width:320px;width:100%;height:100%;box-sizing:border-box;display:flex;flex-direction:column}.sendbird-theme--light .sendbird-thread-ui{border-right:1px solid var(--sendbird-light-onlight-04);border-bottom:1px solid var(--sendbird-light-onlight-04);background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-thread-ui{border-right:1px solid var(--sendbird-dark-ondark-04);border-bottom:1px solid var(--sendbird-dark-ondark-04);background-color:var(--sendbird-dark-background-600)}.sendbird-thread-ui__header{width:100%}.sendbird-theme--light .sendbird-thread-ui__header{border-top:1px solid var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-thread-ui__header{border-top:1px solid var(--sendbird-dark-ondark-04)}.sendbird-thread-ui--scroll{overflow-y:scroll;overflow-x:hidden;height:100%;display:inline-flex;flex-direction:column;justify-content:flex-start}.sendbird-theme--light .sendbird-thread-ui__parent-message-info{border-top:1px solid var(--sendbird-light-onlight-04);border-bottom:1px solid var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-thread-ui__parent-message-info{border-top:1px solid var(--sendbird-dark-ondark-04);border-bottom:1px solid var(--sendbird-dark-ondark-04)}.sendbird-theme--light .sendbird-thread-ui__parent-message-info .sendbird-word__mention .sendbird-label{color:var(--sendbird-light-onlight-01)}.sendbird-theme--dark .sendbird-thread-ui__parent-message-info .sendbird-word__mention .sendbird-label{color:var(--sendbird-dark-ondark-01)}.sendbird-thread-ui__reply-counts{position:relative;box-sizing:border-box;width:100%;height:42px;display:inline-flex;justify-content:flex-start;align-items:center;padding:16px 11px}.sendbird-theme--light .sendbird-thread-ui__reply-counts{border-top:1px solid var(--sendbird-light-onlight-04);border-bottom:1px solid var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-thread-ui__reply-counts{border-top:1px solid var(--sendbird-dark-ondark-04);border-bottom:1px solid var(--sendbird-dark-ondark-04)}.sendbird-thread-ui__thread-list{padding:16px}.sendbird-thread-ui__message-input{padding:0px 16px;margin-bottom:24px}.sendbird-thread-ui__thread-list.sendbird-place-holder{box-sizing:border-box}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/Accordion/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-accordion{padding:8px 0px 16px 0px;position:relative;box-sizing:border-box}.sendbird-theme--light .sendbird-accordion{border-bottom:1px solid var(--sendbird-light-onlight-04);background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-accordion{border-bottom:1px solid var(--sendbird-dark-ondark-04);background-color:var(--sendbird-dark-background-600)}.sendbird-accordion .sendbird-accordion__member{position:relative;padding:12px 0px 12px 44px;height:40px;box-sizing:border-box}.sendbird-accordion .sendbird-accordion__footer{display:flex;justify-content:flex-start;margin-top:8px}.sendbird-accordion__panel-header{cursor:pointer;position:relative;padding:12px 22px 10px 56px}.sendbird-theme--light .sendbird-accordion__panel-header{background-color:var(--sendbird-light-background-50);border-bottom:1px solid var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-accordion__panel-header{background-color:var(--sendbird-dark-background-600);border-bottom:1px solid var(--sendbird-dark-ondark-04)}.sendbird-accordion__panel-header:focus{outline:none}.sendbird-accordion__panel-header.sendbird-accordion__panel-item__disabled{cursor:not-allowed}.sendbird-accordion__panel-icon-left,.sendbird-accordion__panel-icon-right{position:absolute;top:10px}.sendbird-accordion__panel-icon-left{left:16px}.sendbird-accordion__panel-icon-right{right:16px}.sendbird-accordion__panel-icon--open{transform:rotate(90deg)}.sendbird-theme--light .sendbird-accordion__panel-icon--chevron path{fill:var(--sendbird-light-onlight-01)}.sendbird-theme--dark .sendbird-accordion__panel-icon--chevron path{fill:var(--sendbird-dark-ondark-01)}.sendbird-theme--light .sendbird-accordion__panel-icon__leave path{fill:var(--sendbird-light-error-300)}.sendbird-theme--dark .sendbird-accordion__panel-icon__leave path{fill:var(--sendbird-dark-error-300)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/AdminMessage/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-admin-message{display:flex;justify-content:center;align-items:center}.sendbird-admin-message .sendbird-admin-message__text{display:flex;text-align:center}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/Avatar/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-avatar{border-radius:50%;display:inline-block;overflow:hidden;position:relative}.sendbird-avatar:focus{outline:none}.sendbird-avatar .sendbird-avatar-img{align-items:center;display:flex;justify-content:center;left:50%;position:absolute;top:50%;transform:translate(-50%, -50%)}.sendbird-theme--light .sendbird-avatar .sendbird-avatar-img{background-color:var(--sendbird-light-background-300)}.sendbird-theme--dark .sendbird-avatar .sendbird-avatar-img{background-color:var(--sendbird-dark-background-300)}.sendbird-avatar .sendbird-avatar--inner__two-child .sendbird-avatar-img:first-child{transform:translate(2%, -50%)}.sendbird-avatar .sendbird-avatar--inner__two-child .sendbird-avatar-img:last-child{transform:translate(-102%, -50%)}.sendbird-avatar .sendbird-avatar--inner__three-child--upper .sendbird-avatar-img:first-child{transform:translate(-50%, -102%)}.sendbird-avatar .sendbird-avatar--inner__three-child--lower .sendbird-avatar-img:first-child{transform:translate(-77%, -23%) scale(0.5)}.sendbird-avatar .sendbird-avatar--inner__three-child--lower .sendbird-avatar-img:last-child{transform:translate(-23%, -23%) scale(0.5)}.sendbird-avatar .sendbird-avatar--inner__four-child .sendbird-avatar-img:first-child{transform:translate(-77%, -77%) scale(0.5)}.sendbird-avatar .sendbird-avatar--inner__four-child .sendbird-avatar-img:nth-child(2){transform:translate(-23%, -77%) scale(0.5)}.sendbird-avatar .sendbird-avatar--inner__four-child .sendbird-avatar-img:nth-child(3){transform:translate(-77%, -23%) scale(0.5)}.sendbird-avatar .sendbird-avatar--inner__four-child .sendbird-avatar-img:last-child{transform:translate(-23%, -23%) scale(0.5)}.sendbird-avatar .sendbird-avatar-img--default{align-items:center;display:flex;justify-content:center}.sendbird-theme--light .sendbird-avatar .sendbird-avatar-img--default{background-color:var(--sendbird-light-background-300)}.sendbird-theme--dark .sendbird-avatar .sendbird-avatar-img--default{background-color:var(--sendbird-dark-background-300)}.sendbird-theme--light .sendbird-avatar .sendbird-avatar-img--default.text{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-avatar .sendbird-avatar-img--default.text{background-color:var(--sendbird-dark-background-400)}.sendbird-avatar .sendbird-avatar-text{font-family:Roboto;font-size:8px;font-style:normal;font-weight:bold;font-weight:400;line-height:12px;text-align:center}.sendbird-theme--light .sendbird-avatar .sendbird-avatar-text{color:var(--sendbird-light-onlight-02)}.sendbird-theme--dark .sendbird-avatar .sendbird-avatar-text{color:var(--sendbird-dark-ondark-02)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/Avatar/muted-avatar-overlay.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-muted-avatar{border-radius:50%;display:inline-block}.sendbird-muted-avatar .sendbird-muted-avatar__icon{position:relative}.sendbird-muted-avatar .sendbird-muted-avatar__icon .sendbird-icon{position:absolute;top:4px;left:4px}.sendbird-muted-avatar .sendbird-muted-avatar__bg{opacity:.5;position:absolute;border-radius:50%;top:0;left:0}.sendbird-theme--light .sendbird-muted-avatar .sendbird-muted-avatar__bg{background-color:var(--sendbird-light-primary-400)}.sendbird-theme--dark .sendbird-muted-avatar .sendbird-muted-avatar__bg{background-color:var(--sendbird-dark-primary-300)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/Badge/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-badge{height:20px;min-width:20px;border-radius:10px;display:inline-flex;justify-content:center;align-items:center}.sendbird-theme--light .sendbird-badge{background-color:var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-badge{background-color:var(--sendbird-dark-primary-200)}.sendbird-badge .sendbird-badge__text{margin:0px 6px}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/BottomSheet/bottom-sheet.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-bottomsheet{position:fixed;top:0;left:0;width:100%;height:100%}.sendbird-bottomsheet__content{z-index:10001;position:fixed;bottom:0;left:0}.sendbird-bottomsheet__backdrop{position:fixed;z-index:10000;height:100%;width:100%;top:0;left:0}.sendbird-theme--light .sendbird-bottomsheet__backdrop{background-color:var(--sendbird-light-overlay-02)}.sendbird-theme--dark .sendbird-bottomsheet__backdrop{background-color:var(--sendbird-dark-overlay-02)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/Button/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-button{border-radius:4px;box-shadow:none;cursor:pointer;font-family:var(--sendbird-font-family-default);padding:0;display:inline-flex;justify-content:center;align-items:center}.sendbird-button:hover{box-shadow:none}.sendbird-button:focus{outline:none}.sendbird-button:active{box-shadow:none}.sendbird-button.sendbird-button__disabled{cursor:not-allowed}.sendbird-theme--light .sendbird-button.sendbird-button__disabled{background-color:var(--sendbird-light-background-200);border:none}.sendbird-theme--dark .sendbird-button.sendbird-button__disabled{background-color:var(--sendbird-dark-background-400);border:none}.sendbird-theme--light .sendbird-button.sendbird-button__disabled:hover{background-color:var(--sendbird-light-background-200)}.sendbird-theme--dark .sendbird-button.sendbird-button__disabled:hover{background-color:var(--sendbird-dark-background-400)}.sendbird-button--big{height:40px}.sendbird-button--big .sendbird-button__text{margin:10px 16px}.sendbird-button--small{height:32px}.sendbird-button--small .sendbird-button__text{margin:6px 16px}.sendbird-theme--light .sendbird-button--primary{background-color:var(--sendbird-light-primary-300);border:1px solid var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-button--primary{background-color:var(--sendbird-dark-primary-200);border:1px solid var(--sendbird-dark-primary-200)}.sendbird-theme--light .sendbird-button--primary .sendbird-button__text{color:var(--sendbird-light-ondark-01)}.sendbird-theme--dark .sendbird-button--primary .sendbird-button__text{color:var(--sendbird-dark-onlight-01)}.sendbird-theme--light .sendbird-button--primary:hover{background-color:var(--sendbird-light-primary-400);border-color:var(--sendbird-light-primary-400)}.sendbird-theme--dark .sendbird-button--primary:hover{background-color:var(--sendbird-dark-primary-300);border-color:var(--sendbird-dark-primary-300)}.sendbird-theme--light .sendbird-button--primary:focus{border:1px solid var(--sendbird-button-border-focus);box-shadow:0 0 0 2px var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-button--primary:focus{border:1px solid var(--sendbird-button-border-focus);box-shadow:0 0 0 2px var(--sendbird-dark-primary-200)}.sendbird-theme--light .sendbird-button--primary:active{background-color:var(--sendbird-light-primary-500)}.sendbird-theme--dark .sendbird-button--primary:active{background-color:var(--sendbird-dark-primary-400)}.sendbird-theme--light .sendbird-button--primary:focus .sendbird-button--primary:hover{box-shadow:0 0 0 2px var(--sendbird-light-primary-400)}.sendbird-theme--dark .sendbird-button--primary:focus .sendbird-button--primary:hover{box-shadow:0 0 0 2px var(--sendbird-dark-primary-300)}.sendbird-theme--light .sendbird-button--primary:focus .sendbird-button--primary:active{box-shadow:0 0 0 2px var(--sendbird-light-primary-500)}.sendbird-theme--dark .sendbird-button--primary:focus .sendbird-button--primary:active{box-shadow:0 0 0 2px var(--sendbird-dark-primary-400)}.sendbird-button--secondary{background-color:rgba(0,0,0,0)}.sendbird-theme--light .sendbird-button--secondary{border:1px solid var(--sendbird-light-onlight-03)}.sendbird-theme--dark .sendbird-button--secondary{border:1px solid var(--sendbird-dark-ondark-03)}.sendbird-theme--light .sendbird-button--secondary .sendbird-button__text{color:var(--sendbird-light-onlight-01)}.sendbird-theme--dark .sendbird-button--secondary .sendbird-button__text{color:var(--sendbird-dark-ondark-01)}.sendbird-button--secondary:hover{background-color:rgba(0,0,0,0)}.sendbird-theme--light .sendbird-button--secondary:hover{border:1px solid var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-button--secondary:hover{border:1px solid var(--sendbird-dark-primary-200)}.sendbird-theme--light .sendbird-button--secondary:hover .sendbird-button__text{color:var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-button--secondary:hover .sendbird-button__text{color:var(--sendbird-dark-primary-200)}.sendbird-button--secondary.sendbird-button__disabled{border:none;cursor:not-allowed}.sendbird-theme--light .sendbird-button--secondary.sendbird-button__disabled{background-color:var(--sendbird-light-background-200)}.sendbird-theme--dark .sendbird-button--secondary.sendbird-button__disabled{background-color:var(--sendbird-dark-background-400)}.sendbird-theme--light .sendbird-button--secondary.sendbird-button__disabled .sendbird-button__text{color:var(--sendbird-light-onlight-02)}.sendbird-theme--dark .sendbird-button--secondary.sendbird-button__disabled .sendbird-button__text{color:var(--sendbird-dark-ondark-02)}.sendbird-button--secondary.sendbird-button__disabled:hover{border:none}.sendbird-theme--light .sendbird-button--secondary.sendbird-button__disabled:hover{background-color:var(--sendbird-light-background-200)}.sendbird-theme--dark .sendbird-button--secondary.sendbird-button__disabled:hover{background-color:var(--sendbird-dark-background-400)}.sendbird-theme--light .sendbird-button--secondary.sendbird-button__disabled:hover .sendbird-button__text{color:var(--sendbird-light-onlight-02)}.sendbird-theme--dark .sendbird-button--secondary.sendbird-button__disabled:hover .sendbird-button__text{color:var(--sendbird-dark-ondark-02)}.sendbird-theme--light .sendbird-button--secondary:hover .sendbird-button--secondary:focus .sendbird-button__text{color:var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-button--secondary:hover .sendbird-button--secondary:focus .sendbird-button__text{color:var(--sendbird-dark-primary-200)}.sendbird-button--secondary:focus{background-color:rgba(0,0,0,0);border:1px solid rgba(0,0,0,0)}.sendbird-theme--light .sendbird-button--secondary:focus{box-shadow:var(--sendbird-light-primary-300) 0 0 0 2px}.sendbird-theme--dark .sendbird-button--secondary:focus{box-shadow:var(--sendbird-dark-primary-200) 0 0 0 2px}.sendbird-theme--light .sendbird-button--secondary:focus .sendbird-button__text{color:var(--sendbird-light-onlight-01)}.sendbird-theme--dark .sendbird-button--secondary:focus .sendbird-button__text{color:var(--sendbird-dark-ondark-01)}.sendbird-button--secondary:active{box-shadow:none}.sendbird-theme--light .sendbird-button--secondary:active{border:1px solid var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-button--secondary:active{border:1px solid var(--sendbird-dark-primary-200)}.sendbird-theme--light .sendbird-button--secondary:active .sendbird-button__text{color:var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-button--secondary:active .sendbird-button__text{color:var(--sendbird-dark-primary-200)}.sendbird-theme--light .sendbird-button--warning{background-color:rgba(0,0,0,0);border:1px solid var(--sendbird-light-error-300)}.sendbird-theme--dark .sendbird-button--warning{background-color:rgba(0,0,0,0);border:1px solid var(--sendbird-dark-error-200)}.sendbird-theme--light .sendbird-button--warning .sendbird-button__text{color:var(--sendbird-light-error-300)}.sendbird-theme--dark .sendbird-button--warning .sendbird-button__text{color:var(--sendbird-dark-error-200)}.sendbird-theme--light .sendbird-button--warning:hover{border-color:var(--sendbird-light-error-400)}.sendbird-theme--dark .sendbird-button--warning:hover{border-color:var(--sendbird-dark-error-100)}.sendbird-theme--light .sendbird-button--warning:hover .sendbird-button__text{color:var(--sendbird-light-error-400)}.sendbird-theme--dark .sendbird-button--warning:hover .sendbird-button__text{color:var(--sendbird-dark-error-100)}.sendbird-theme--light .sendbird-button--warning:focus{border-color:var(--sendbird-light-primary-300)}.sendbird-theme--light .sendbird-theme--light .sendbird-button--warning:focus .sendbird-button__text{color:var(--sendbird-light-error-300)}.sendbird-theme--dark .sendbird-theme--light .sendbird-button--warning:focus .sendbird-button__text{color:var(--sendbird-dark-error-200)}.sendbird-theme--dark .sendbird-button--warning:focus{border-color:var(--sendbird-dark-primary-200)}.sendbird-theme--light .sendbird-theme--dark .sendbird-button--warning:focus .sendbird-button__text{color:var(--sendbird-light-error-300)}.sendbird-theme--dark .sendbird-theme--dark .sendbird-button--warning:focus .sendbird-button__text{color:var(--sendbird-dark-error-200)}.sendbird-theme--light .sendbird-button--warning:hover .sendbird-button--warning:focus{border-color:var(--sendbird-light-primary-300)}.sendbird-theme--light .sendbird-theme--light .sendbird-button--warning:hover .sendbird-button--warning:focus .sendbird-button__text{color:var(--sendbird-light-error-400)}.sendbird-theme--dark .sendbird-theme--light .sendbird-button--warning:hover .sendbird-button--warning:focus .sendbird-button__text{color:var(--sendbird-dark-error-100)}.sendbird-theme--dark .sendbird-button--warning:hover .sendbird-button--warning:focus{border-color:var(--sendbird-dark-primary-200)}.sendbird-theme--light .sendbird-theme--dark .sendbird-button--warning:hover .sendbird-button--warning:focus .sendbird-button__text{color:var(--sendbird-light-error-400)}.sendbird-theme--dark .sendbird-theme--dark .sendbird-button--warning:hover .sendbird-button--warning:focus .sendbird-button__text{color:var(--sendbird-dark-error-100)}.sendbird-theme--light .sendbird-button--danger{background-color:var(--sendbird-light-error-300);border:1px solid var(--sendbird-light-error-300)}.sendbird-theme--dark .sendbird-button--danger{background-color:var(--sendbird-dark-error-200);border:1px solid var(--sendbird-dark-error-200)}.sendbird-theme--light .sendbird-button--danger .sendbird-button__text{color:var(--sendbird-light-ondark-01)}.sendbird-theme--dark .sendbird-button--danger .sendbird-button__text{color:var(--sendbird-dark-onlight-01)}.sendbird-theme--light .sendbird-button--danger:hover{background-color:var(--sendbird-light-error-400);border-color:var(--sendbird-light-error-400)}.sendbird-theme--dark .sendbird-button--danger:hover{background-color:var(--sendbird-dark-error-400);border-color:var(--sendbird-dark-error-400)}.sendbird-theme--light .sendbird-button--danger:focus{border-color:var(--sendbird-button-border-focus);box-shadow:0 0 0 2px var(--sendbird-light-error-300)}.sendbird-theme--dark .sendbird-button--danger:focus{border-color:var(--sendbird-button-border-focus);box-shadow:0 0 0 2px var(--sendbird-dark-error-300)}.sendbird-button--danger:active{box-shadow:none}.sendbird-theme--light .sendbird-button--danger:active{background-color:var(--sendbird-light-error-500)}.sendbird-theme--dark .sendbird-button--danger:active{background-color:var(--sendbird-dark-error-500)}.sendbird-theme--light .sendbird-button--danger:hover .sendbird-button--danger:focus{box-shadow:0 0 0 2px var(--sendbird-light-error-400)}.sendbird-theme--dark .sendbird-button--danger:hover .sendbird-button--danger:focus{box-shadow:0 0 0 2px var(--sendbird-dark-error-400)}.sendbird-theme--light .sendbird-button--danger:active .sendbird-button--danger:focus{box-shadow:0 0 0 2px var(--sendbird-light-error-500)}.sendbird-theme--dark .sendbird-button--danger:active .sendbird-button--danger:focus{box-shadow:0 0 0 2px var(--sendbird-dark-error-500)}.sendbird-button--disabled{border:1px solid rgba(0,0,0,0);cursor:not-allowed}.sendbird-theme--light .sendbird-button--disabled{background-color:var(--sendbird-light-background-200);color:var(--sendbird-light-ondark-01)}.sendbird-theme--dark .sendbird-button--disabled{background-color:var(--sendbird-dark-background-400);color:var(--sendbird-dark-onlight-01)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/ChannelAvatar/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-chat-header--default-avatar{width:56px;height:56px;display:flex;justify-content:center;align-items:center;border-radius:50%}.sendbird-theme--light .sendbird-chat-header--default-avatar{background-color:var(--sendbird-light-secondary-300)}.sendbird-theme--dark .sendbird-chat-header--default-avatar{background-color:var(--sendbird-dark-secondary-200)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/Checkbox/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,'.sendbird-checkbox{display:inline-block;position:relative;padding-left:35px;margin-bottom:12px;cursor:pointer;font-size:22px;user-select:none}.sendbird-checkbox input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.sendbird-checkbox--checkmark{position:absolute;top:0;left:0;height:18px;width:18px;border-radius:2px;background-color:inherit}.sendbird-theme--light .sendbird-checkbox--checkmark{border:solid 2px var(--sendbird-light-background-400)}.sendbird-theme--dark .sendbird-checkbox--checkmark{border:solid 2px var(--sendbird-dark-background-300)}.sendbird-theme--light .sendbird-checkbox--checkmark.disabled{border:solid 2px var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-checkbox--checkmark.disabled{border:solid 2px var(--sendbird-dark-ondark-04)}.sendbird-theme--light .sendbird-checkbox input:focus~.sendbird-checkbox--checkmark{box-shadow:0px 0px 0px 2px var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-checkbox input:focus~.sendbird-checkbox--checkmark{box-shadow:0px 0px 0px 2px var(--sendbird-dark-primary-200)}.sendbird-theme--light .sendbird-checkbox input:checked~.sendbird-checkbox--checkmark{background-color:var(--sendbird-light-primary-300);border:solid 2px var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-checkbox input:checked~.sendbird-checkbox--checkmark{background-color:var(--sendbird-dark-primary-200);border:solid 2px var(--sendbird-dark-primary-200)}.sendbird-checkbox input:checked~.sendbird-checkbox--checkmark.disabled{cursor:default}.sendbird-theme--light .sendbird-checkbox input:checked~.sendbird-checkbox--checkmark.disabled{background-color:var(--sendbird-light-onlight-04);border:solid 2px var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-checkbox input:checked~.sendbird-checkbox--checkmark.disabled{background-color:var(--sendbird-dark-ondark-04);border:solid 2px var(--sendbird-dark-ondark-04)}.sendbird-checkbox--checkmark:after{content:"";position:absolute;display:none}.sendbird-checkbox input:checked~.sendbird-checkbox--checkmark:after{display:block}.sendbird-theme--light .sendbird-checkbox .sendbird-checkbox--checkmark:after{left:5px;top:-0.5px;width:7px;height:12px;border:solid var(--sendbird-light-background-50);border-width:0 2px 2px 0;transform:rotate(45deg)}.sendbird-theme--dark .sendbird-checkbox .sendbird-checkbox--checkmark:after{left:5px;top:-0.5px;width:7px;height:12px;border:solid var(--sendbird-dark-background-600);border-width:0 2px 2px 0;transform:rotate(45deg)}',""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/ConnectionStatus/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-connection-status{display:flex;align-items:center;padding-top:5px}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/ContextMenu/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-context-menu{display:inline}.sendbird__offline .sendbird-dropdown__menu .sendbird-dropdown__menu-item{cursor:not-allowed}.sendbird__offline .sendbird-message-item-menu__list__menu-item.menu-item-delete{cursor:pointer}.sendbird-dropdown__menu{z-index:99999;position:absolute;top:100%;left:0;min-width:140px;margin:0px;padding:8px 0px;border-radius:4px;list-style:none}.sendbird-theme--light .sendbird-dropdown__menu{box-shadow:var(--sendbird-light-shadow-02);background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-dropdown__menu{box-shadow:var(--sendbird-dark-shadow-02);background-color:var(--sendbird-dark-background-500)}.sendbird-dropdown__menu .sendbird-dropdown__menu-item{cursor:pointer;white-space:nowrap;padding:8px 16px}.sendbird-dropdown__menu .sendbird-dropdown__menu-item.disable{cursor:not-allowed}.sendbird-theme--light .sendbird-dropdown__menu .sendbird-dropdown__menu-item.disable:hover{background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-dropdown__menu .sendbird-dropdown__menu-item.disable:hover{background-color:var(--sendbird-dark-background-500)}.sendbird-theme--light .sendbird-dropdown__menu .sendbird-dropdown__menu-item:hover{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-dropdown__menu .sendbird-dropdown__menu-item:hover{background-color:var(--sendbird-dark-background-400)}.sendbird-dropdown__reaction-bar{position:absolute;top:100%;left:0;min-width:44px;max-width:352px;max-height:208px;overflow-y:scroll;margin:0px;padding:8px;border-radius:8px;list-style:none}.sendbird-theme--light .sendbird-dropdown__reaction-bar{box-shadow:var(--sendbird-light-shadow-02);background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-dropdown__reaction-bar{box-shadow:var(--sendbird-dark-shadow-02);background-color:var(--sendbird-dark-background-500)}.sendbird-dropdown__reaction-bar .sendbird-dropdown__reaction-bar__row .sendbird-reaction-button,.sendbird-dropdown__reaction-bar .sendbird-dropdown__reaction-bar__row .sendbird-reaction-button--selected{margin:4px}.sendbird-dropdown__menu-backdrop{background-color:rgba(0,0,0,0);position:fixed;top:0;left:0;width:100%;height:100%}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/DateSeparator/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-separator{width:100%;display:flex;align-items:center}.sendbird-separator .sendbird-separator__left{border:none;height:1px;display:inline-block;width:100%}.sendbird-separator .sendbird-separator__right{border:none;height:1px;display:inline-block;width:100%}.sendbird-separator .sendbird-separator__text{margin:0px 16px;display:flex;white-space:nowrap}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/EmojiReactions/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-emoji-reactions{display:inline-block;border-radius:16px;box-sizing:border-box;width:100%;max-width:var(--sendbird-message-balloon-width);min-height:24px;padding:7px 5px 3px 5px}.sendbird-theme--light .sendbird-emoji-reactions{background-color:var(--sendbird-light-background-50);border:1px solid var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-emoji-reactions{background-color:var(--sendbird-dark-background-600);border:1px solid var(--sendbird-dark-background-500)}.sendbird-emoji-reactions .sendbird-emoji-reactions__reaction-badge{margin-left:2px;margin-right:1px;margin-bottom:4px}.sendbird-emoji-reactions:focus{outline:none}.sendbird-emoji-reactions .sendbird-context-menu{height:26px}.sendbird-emoji-reactions__add-reaction-badge{position:relative;top:-4px;display:inline-flex;width:36px;height:24px}.sendbird-emoji-reactions .sendbird-context-menu{margin-left:2px}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/FeedbackIconButton/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-iconbutton__feedback{display:flex;justify-content:center;align-items:center;background-color:rgba(0,0,0,0);cursor:pointer;border-radius:18px;border:1px solid;padding:5px 8px}.sendbird-theme--light .sendbird-iconbutton__feedback{border-color:var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-iconbutton__feedback{border-color:var(--sendbird-dark-ondark-04)}.sendbird-theme--light .sendbird-iconbutton__feedback:hover{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-iconbutton__feedback:hover{background-color:var(--sendbird-dark-background-500)}.sendbird-iconbutton__feedback.sendbird-iconbutton__feedback__disabled{cursor:not-allowed}.sendbird-iconbutton__feedback.sendbird-iconbutton__feedback__disabled:hover{background-color:rgba(0,0,0,0)}.sendbird-iconbutton__feedback.sendbird-iconbutton__feedback__pressed:hover{background-color:rgba(0,0,0,0)}.sendbird-theme--light .sendbird-iconbutton__feedback.sendbird-iconbutton__feedback__pressed{border-color:var(--sendbird-light-primary-300);background-color:var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-iconbutton__feedback.sendbird-iconbutton__feedback__pressed{border-color:var(--sendbird-dark-primary-200);background-color:var(--sendbird-dark-primary-200)}.sendbird-iconbutton__feedback__inner{display:flex;justify-content:center;align-items:center}.sendbird-theme--light .sendbird-iconbutton__feedback__inner svg path{fill:var(--sendbird-light-onlight-02)}.sendbird-theme--dark .sendbird-iconbutton__feedback__inner svg path{fill:var(--sendbird-dark-ondark-02)}.sendbird-theme--light .sendbird-iconbutton__feedback__inner.sendbird-iconbutton__feedback__inner__disabled svg path{fill:var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-iconbutton__feedback__inner.sendbird-iconbutton__feedback__inner__disabled svg path{fill:var(--sendbird-dark-ondark-04)}.sendbird-theme--light .sendbird-iconbutton__feedback__inner__pressed svg path{fill:var(--sendbird-light-ondark-01)}.sendbird-theme--dark .sendbird-iconbutton__feedback__inner__pressed svg path{fill:var(--sendbird-dark-onlight-01)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/FileMessageItemBody/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-file-message-item-body{position:relative;display:inline-block;box-sizing:border-box;padding:8px 12px;align-items:center;border-radius:16px}.sendbird-file-message-item-body.reactions{border-radius:16px 16px 0px 0px}.sendbird-theme--light .sendbird-file-message-item-body.outgoing{background-color:var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-file-message-item-body.outgoing{background-color:var(--sendbird-dark-primary-200)}.sendbird-theme--light .sendbird-file-message-item-body.incoming{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-file-message-item-body.incoming{background-color:var(--sendbird-dark-background-500)}.sendbird-theme--light .sendbird-file-message-item-body.mouse-hover.outgoing,.sendbird-theme--light .sendbird-file-message-item-body:hover.outgoing{background-color:var(--sendbird-light-primary-400)}.sendbird-theme--dark .sendbird-file-message-item-body.mouse-hover.outgoing,.sendbird-theme--dark .sendbird-file-message-item-body:hover.outgoing{background-color:var(--sendbird-dark-primary-300)}.sendbird-theme--light .sendbird-file-message-item-body.mouse-hover.incoming,.sendbird-theme--light .sendbird-file-message-item-body:hover.incoming{background-color:var(--sendbird-light-background-200)}.sendbird-theme--dark .sendbird-file-message-item-body.mouse-hover.incoming,.sendbird-theme--dark .sendbird-file-message-item-body:hover.incoming{background-color:var(--sendbird-dark-background-400)}.sendbird-file-message-item-body .sendbird-file-message-item-body__file-icon{width:28px;height:28px;min-width:28px;min-height:28px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;margin-right:8px}.sendbird-theme--light .sendbird-file-message-item-body .sendbird-file-message-item-body__file-icon{background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-file-message-item-body .sendbird-file-message-item-body__file-icon{background-color:var(--sendbird-dark-background-600)}.sendbird-file-message-item-body .sendbird-file-message-item-body__file-name{position:relative;top:-6px}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/FileViewer/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-fileviewer__header__right__actions__download,.sendbird-fileviewer__header__right__actions__delete,.sendbird-fileviewer__header__right__actions__close{width:64px;padding:21px;box-sizing:border-box;cursor:pointer}.sendbird-fileviewer__header__right__actions__download .disabled,.sendbird-fileviewer__header__right__actions__delete .disabled,.sendbird-fileviewer__header__right__actions__close .disabled{cursor:not-allowed}.sendbird-fileviewer{width:100%;height:100%;position:fixed;top:0;left:0;z-index:100000}.sendbird-theme--light .sendbird-fileviewer{background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-fileviewer{background-color:var(--sendbird-dark-background-600)}.sendbird-fileviewer .sendbird-fileviewer__header{height:64px;min-height:64px;box-sizing:border-box;display:flex;justify-content:space-between}.sendbird-theme--light .sendbird-fileviewer .sendbird-fileviewer__header{border-bottom:1px solid var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-fileviewer .sendbird-fileviewer__header{border-bottom:1px solid var(--sendbird-dark-ondark-04)}.sendbird-fileviewer .sendbird-fileviewer__header .sendbird-fileviewer__header__left{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;height:64px;padding:16px 20px}.sendbird-fileviewer .sendbird-fileviewer__header .sendbird-fileviewer__header__left .sendbird-fileviewer__header__left__avatar{margin-right:8px}.sendbird-fileviewer .sendbird-fileviewer__header .sendbird-fileviewer__header__left .sendbird-fileviewer__header__left__filename{max-width:500px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block}.sendbird-fileviewer .sendbird-fileviewer__header .sendbird-fileviewer__header__left .sendbird-fileviewer__header__left__sender-name{max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-flex;margin-left:8px;padding-top:5px}.sendbird-fileviewer .sendbird-fileviewer__header .sendbird-fileviewer__header__right{display:flex;width:160px;justify-content:flex-end}.sendbird-fileviewer .sendbird-fileviewer__header .sendbird-fileviewer__header__right .sendbird-fileviewer__header__right__actions{right:0;display:flex;flex-direction:row}.sendbird-theme--light .sendbird-fileviewer .sendbird-fileviewer__header .sendbird-fileviewer__header__right .sendbird-fileviewer__header__right__actions__close{border-left:1px solid var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-fileviewer .sendbird-fileviewer__header .sendbird-fileviewer__header__right .sendbird-fileviewer__header__right__actions__close{border-left:1px solid var(--sendbird-dark-ondark-04)}.sendbird-fileviewer .sendbird-fileviewer__content{position:relative;height:calc(100% - 72px);margin-top:4px;overflow-y:auto;display:flex;align-items:center;justify-content:center}.sendbird-fileviewer .sendbird-fileviewer__content .sendbird-fileviewer__content__video{max-width:100%;max-height:100%}.sendbird-fileviewer .sendbird-fileviewer__content .sendbird-fileviewer__content__img{max-width:90%;max-height:90%}.sendbird-fileviewer .sendbird-fileviewer__content .sendbird-fileviewer__content__img__multi{max-width:calc(100% - 64px - 56px);max-height:calc(100% - 64px)}.sendbird-fileviewer .sendbird-fileviewer__content .sendbird-fileviewer__content__unsupported{max-width:100%;max-height:100%;display:flex;justify-content:center;align-items:center}.sendbird-file-viewer-arrow--left,.sendbird-file-viewer-arrow--right{cursor:pointer;position:absolute;height:32px;width:32px;top:calc(50% - 16px)}.sendbird-file-viewer-arrow--left{left:14px}.sendbird-file-viewer-arrow--right{right:14px;transform:rotate(180deg)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/Icon/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-icon{display:inline-block}.sendbird-icon:focus{outline:none}.sendbird-theme--light .sendbird-icon-color--primary [class*=fill]{fill:var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-icon-color--primary [class*=fill]{fill:var(--sendbird-dark-primary-200)}.sendbird-theme--light .sendbird-icon-color--primary-2 [class*=fill]{fill:var(--sendbird-light-primary-200)}.sendbird-theme--dark .sendbird-icon-color--primary-2 [class*=fill]{fill:var(--sendbird-dark-primary-400)}.sendbird-theme--light .sendbird-icon-color--primary [class*=stroke]{stroke:var(--sendbird-light-primary-300);stroke-width:2px;stroke-linejoin:round}.sendbird-theme--dark .sendbird-icon-color--primary [class*=stroke]{stroke:var(--sendbird-dark-primary-200);stroke-width:2px;stroke-linejoin:round}.sendbird-theme--light .sendbird-icon-color--secondary [class*=fill]{fill:var(--sendbird-light-secondary-300)}.sendbird-theme--dark .sendbird-icon-color--secondary [class*=fill]{fill:var(--sendbird-dark-secondary-200)}.sendbird-theme--light .sendbird-icon-color--content [class*=fill]{fill:var(--sendbird-light-ondark-01)}.sendbird-theme--dark .sendbird-icon-color--content [class*=fill]{fill:var(--sendbird-dark-onlight-01)}.sendbird-theme--light .sendbird-icon-color--content-inverse [class*=fill]{fill:var(--sendbird-light-onlight-01)}.sendbird-theme--dark .sendbird-icon-color--content-inverse [class*=fill]{fill:var(--sendbird-dark-ondark-01)}.sendbird-theme--light .sendbird-icon-color--content-inverse-5 [class*=fill]{fill:var(--sendbird-light-onlight-05)}.sendbird-theme--dark .sendbird-icon-color--content-inverse-5 [class*=fill]{fill:var(--sendbird-dark-ondark-05)}.sendbird-icon-color--white [class*=fill]{fill:#fff}.sendbird-icon-color--gray [class*=fill]{fill:var(--sendbird-light-onlight-04)}.sendbird-icon-color--thumbnail-icon [class*=fill]{fill:var(--sendbird-light-onlight-02)}.sendbird-theme--light .sendbird-icon-color--sent [class*=fill]{fill:var(--sendbird-light-onlight-03)}.sendbird-theme--dark .sendbird-icon-color--sent [class*=fill]{fill:var(--sendbird-dark-ondark-03)}.sendbird-theme--light .sendbird-icon-color--read [class*=fill]{fill:var(--sendbird-light-secondary-300)}.sendbird-theme--dark .sendbird-icon-color--read [class*=fill]{fill:var(--sendbird-dark-secondary-200)}.sendbird-theme--light .sendbird-icon-color--on-background-1 [class*=fill]{fill:var(--sendbird-light-onlight-01)}.sendbird-theme--dark .sendbird-icon-color--on-background-1 [class*=fill]{fill:var(--sendbird-dark-ondark-01)}.sendbird-theme--light .sendbird-icon-color--on-background-2 [class*=fill]{fill:var(--sendbird-light-onlight-02)}.sendbird-theme--dark .sendbird-icon-color--on-background-2 [class*=fill]{fill:var(--sendbird-dark-ondark-02)}.sendbird-theme--light .sendbird-icon-color--on-background-3 [class*=fill]{fill:var(--sendbird-light-onlight-03)}.sendbird-theme--dark .sendbird-icon-color--on-background-3 [class*=fill]{fill:var(--sendbird-dark-ondark-03)}.sendbird-theme--light .sendbird-icon-color--on-background-4 [class*=fill]{fill:var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-icon-color--on-background-4 [class*=fill]{fill:var(--sendbird-dark-ondark-04)}.sendbird-theme--light .sendbird-icon-color--background-3 [class*=fill]{fill:var(--sendbird-light-background-300)}.sendbird-theme--dark .sendbird-icon-color--background-3 [class*=fill]{fill:var(--sendbird-dark-background-400)}.sendbird-theme--light .sendbird-icon-color--error [class*=fill]{fill:var(--sendbird-light-error-300)}.sendbird-theme--dark .sendbird-icon-color--error [class*=fill]{fill:var(--sendbird-dark-error-200)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/IconButton/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-iconbutton{color:var(--sendbird-iconbutton-color);display:inline-flex;justify-content:center;align-items:center;padding:3px;background-color:rgba(0,0,0,0);cursor:pointer;user-select:none;border:1px solid rgba(0,0,0,0);border-radius:4px;outline:0px}.sendbird-iconbutton .sendbird-iconbutton__inner{height:100%}.sendbird-theme--light .sendbird-iconbutton .sendbird-iconbutton__inner svg{fill:var(--sendbird-light-onlight-01)}.sendbird-theme--dark .sendbird-iconbutton .sendbird-iconbutton__inner svg{fill:var(--sendbird-dark-ondark-01)}.sendbird-theme--light .sendbird-iconbutton:hover{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-iconbutton:hover{background-color:var(--sendbird-dark-background-500)}.sendbird-theme--light .sendbird-iconbutton:active{background-color:var(--sendbird-light-background-200)}.sendbird-theme--dark .sendbird-iconbutton:active{background-color:var(--sendbird-dark-background-400)}.sendbird-iconbutton:disabled{cursor:not-allowed !important}.sendbird-theme--light .sendbird-iconbutton:disabled .sendbird-iconbutton__inner svg,.sendbird-theme--light .sendbird-iconbutton:disabled .sendbird-iconbutton__inner path{fill:var(--sendbird-light-onlight-02)}.sendbird-theme--dark .sendbird-iconbutton:disabled .sendbird-iconbutton__inner svg,.sendbird-theme--dark .sendbird-iconbutton:disabled .sendbird-iconbutton__inner path{fill:var(--sendbird-dark-ondark-02)}.sendbird-theme--light .sendbird-iconbutton--pressed{background-color:var(--sendbird-light-primary-100)}.sendbird-theme--dark .sendbird-iconbutton--pressed{background-color:var(--sendbird-dark-background-700)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/ImageGrid/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-image-grid-wrap{display:flex;justify-content:flex-end;width:100%}.sendbird-image-grid{border-radius:12px;display:grid;gap:4px;grid-template-columns:repeat(2, 1fr);padding:4px;width:fit-content}.sendbird-theme--light .sendbird-image-grid{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-image-grid{background-color:var(--sendbird-dark-background-500)}.sendbird-image-grid.reactions{border-radius:12px 12px 0 0}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/ImageRenderer/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-image-renderer{overflow:hidden;position:relative}.sendbird-image-renderer__hidden-image-loader{display:none}.sendbird-image-renderer,.sendbird-image-renderer__image{width:320px;height:180px}.sendbird-multiple-files-image-renderer__image-cover{position:absolute;top:0px;display:none;width:100%;height:100%;border-radius:16px;background-color:var(--sendbird-light-overlay-01)}.sendbird-image-renderer:hover .sendbird-multiple-files-image-renderer__image-cover{display:inline-flex}.sendbird-multiple-files-image-renderer__icon-wrapper{position:absolute;width:100%;height:100%;display:flex;align-items:center;justify-content:center;z-index:1}.sendbird-multiple-files-image-renderer__icon-wrapper .sendbird-multiple-files-image-renderer__icon-wrapper__icon{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:50%;background-color:var(--sendbird-light-ondark-01);z-index:2}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/Input/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-input{display:inline-block;width:100%;height:40px;position:relative}.sendbird-input .sendbird-input__input{width:100%;height:100%;border-radius:4px;font-family:var(--sendbird-font-family-default);font-size:14px;font-weight:normal;font-stretch:normal;font-style:normal;line-height:1.43;letter-spacing:normal;padding:10px 16px;box-sizing:border-box;background-color:inherit}.sendbird-theme--light .sendbird-input .sendbird-input__input{color:var(--sendbird-light-onlight-01);caret-color:var(--sendbird-light-primary-300);border:solid 1px var(--sendbird-light-onlight-03)}.sendbird-theme--dark .sendbird-input .sendbird-input__input{color:var(--sendbird-dark-ondark-01);caret-color:var(--sendbird-dark-primary-200);border:solid 1px var(--sendbird-dark-ondark-03)}.sendbird-input .sendbird-input__input:focus{outline:none}.sendbird-theme--light .sendbird-input .sendbird-input__input:focus{box-shadow:0 1px 5px 0 var(--sendbird-light-onlight-04),0 0 1px 0 rgba(0,0,0,.16),0 2px 1px 0 rgba(0,0,0,.08);color:var(--sendbird-light-onlight-01);border:solid 2px var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-input .sendbird-input__input:focus{box-shadow:0 1px 5px 0 var(--sendbird-dark-ondark-04),0 0 1px 0 rgba(0,0,0,.16),0 2px 1px 0 rgba(0,0,0,.08);color:var(--sendbird-dark-ondark-01);border:solid 2px var(--sendbird-dark-primary-200)}.sendbird-theme--light .sendbird-input .sendbird-input__input:active{box-shadow:0 1px 5px 0 var(--sendbird-light-onlight-04),0 0 1px 0 rgba(0,0,0,.16),0 2px 1px 0 rgba(0,0,0,.08);color:var(--sendbird-light-onlight-01);border:solid 1px var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-input .sendbird-input__input:active{box-shadow:0 1px 5px 0 var(--sendbird-dark-ondark-04),0 0 1px 0 rgba(0,0,0,.16),0 2px 1px 0 rgba(0,0,0,.08);color:var(--sendbird-dark-ondark-01);border:solid 1px var(--sendbird-dark-primary-200)}.sendbird-input .sendbird-input__input:disabled{cursor:not-allowed}.sendbird-theme--light .sendbird-input .sendbird-input__input:disabled{background-color:var(--sendbird-light-background-100);color:var(--sendbird-light-onlight-03)}.sendbird-theme--dark .sendbird-input .sendbird-input__input:disabled{background-color:var(--sendbird-dark-background-500);color:var(--sendbird-dark-ondark-03)}.sendbird-input .sendbird-input__placeholder{position:absolute;pointer-events:none;top:10px;left:16px;font-family:var(--sendbird-font-family-default);font-size:14px;line-height:1.43}.sendbird-theme--light .sendbird-input .sendbird-input__placeholder{color:var(--sendbird-light-onlight-03)}.sendbird-theme--dark .sendbird-input .sendbird-input__placeholder{color:var(--sendbird-dark-ondark-03)}.sendbird-input-label{margin:4px 0}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/Label/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird--mobile-mode .sendbird-label{-webkit-user-select:none;-webkit-touch-callout:none}[class*=sendbird-label]{font-family:var(--sendbird-font-family-default)}.sendbird-label--h-1{font-size:20px;font-weight:600;font-stretch:normal;font-style:normal;line-height:1.4;letter-spacing:-0.2px}.sendbird-label--h-2{font-size:18px;font-weight:600;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:-0.2px}.sendbird-label--subtitle-1{font-size:16px;font-weight:normal;font-stretch:normal;font-style:normal;line-height:1.38;letter-spacing:-0.2px}.sendbird-label--subtitle-2{font-size:14px;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.14;letter-spacing:-0.2px}.sendbird-label--body-1{font-size:14px;font-weight:normal;font-stretch:normal;font-style:normal;line-height:1.43;letter-spacing:normal}.sendbird-label--body-2{font-size:12px;font-weight:normal;font-stretch:normal;font-style:normal;line-height:1.33;letter-spacing:normal}.sendbird-label--button-1{font-size:14px;font-weight:600;font-stretch:normal;font-style:normal;line-height:1.43;letter-spacing:normal}.sendbird-label--button-2{font-size:14px;font-weight:normal;font-stretch:normal;font-style:normal;line-height:1.43;letter-spacing:normal}.sendbird-label--button-3{font-size:14px;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.43;letter-spacing:normal}.sendbird-label--caption-1{font-size:14px;font-weight:600;font-stretch:normal;font-style:normal;line-height:1.43;letter-spacing:normal}.sendbird-label--caption-2{font-size:12px;font-weight:bold;font-style:normal;line-height:1;letter-spacing:normal}.sendbird-label--caption-3{font-size:12px;font-weight:normal;font-stretch:normal;font-style:normal;line-height:1;letter-spacing:normal}.sendbird-theme--light .sendbird-label--color-onbackground-1{color:var(--sendbird-light-onlight-01)}.sendbird-theme--dark .sendbird-label--color-onbackground-1{color:var(--sendbird-dark-ondark-01)}.sendbird-theme--light .sendbird-label--color-onbackground-2{color:var(--sendbird-light-onlight-02)}.sendbird-theme--dark .sendbird-label--color-onbackground-2{color:var(--sendbird-dark-ondark-02)}.sendbird-theme--light .sendbird-label--color-onbackground-3{color:var(--sendbird-light-onlight-03)}.sendbird-theme--dark .sendbird-label--color-onbackground-3{color:var(--sendbird-dark-ondark-03)}.sendbird-theme--light .sendbird-label--color-onbackground-4{color:var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-label--color-onbackground-4{color:var(--sendbird-dark-ondark-04)}.sendbird-theme--light .sendbird-label--color-oncontent-1{color:var(--sendbird-light-ondark-01)}.sendbird-theme--dark .sendbird-label--color-oncontent-1{color:var(--sendbird-dark-onlight-01)}.sendbird-theme--light .sendbird-label--color-oncontent-2{color:var(--sendbird-light-ondark-02)}.sendbird-theme--dark .sendbird-label--color-oncontent-2{color:var(--sendbird-dark-onlight-02)}.sendbird-theme--light .sendbird-label--color-oncontent-inverse-1{color:var(--sendbird-light-onlight-01)}.sendbird-theme--dark .sendbird-label--color-oncontent-inverse-1{color:var(--sendbird-dark-ondark-01)}.sendbird-theme--light .sendbird-label--color-oncontent-inverse-5{color:var(--sendbird-light-onlight-05)}.sendbird-theme--dark .sendbird-label--color-oncontent-inverse-5{color:var(--sendbird-dark-ondark-05)}.sendbird-theme--light .sendbird-label--color-primary{color:var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-label--color-primary{color:var(--sendbird-dark-primary-200)}.sendbird-theme--light .sendbird-label--color-error{color:var(--sendbird-light-error-300)}.sendbird-theme--dark .sendbird-label--color-error{color:var(--sendbird-dark-error-200)}.sendbird-theme--light .sendbird-label--color-secondary-3{color:var(--sendbird-light-secondary-300)}.sendbird-theme--dark .sendbird-label--color-secondary-3{color:var(--sendbird-dark-secondary-200)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/LegacyEditUserProfile/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-edit-user-profile section{margin-top:16px}.sendbird-edit-user-profile section .sendbird-input-label{display:block;margin-bottom:12px}.sendbird-edit-user-profile .sendbird-edit-user-profile__img .sendbird-input-label{margin-bottom:12px}.sendbird-edit-user-profile__img{position:relative}.sendbird-edit-user-profile__img__avatar-button{position:absolute;top:50px;left:96px}.sendbird-edit-user-profile__theme__theme-icon .sendbird-icon{cursor:pointer}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/LinkLabel/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-link-label{text-decoration:unset}.sendbird-link-label:hover{cursor:pointer;text-decoration:underline}.sendbird-link-label:focus{outline:none}.sendbird-link-label__label{display:inline}.sendbird-theme--light .sendbird-link-label .sendbird-label--color-onbackground-1{color:var(--sendbird-light-onlight-01)}.sendbird-theme--dark .sendbird-link-label .sendbird-label--color-onbackground-1{color:var(--sendbird-dark-ondark-01)}.sendbird-theme--light .sendbird-link-label .sendbird-label--color-onbackground-2{color:var(--sendbird-light-onlight-02)}.sendbird-theme--dark .sendbird-link-label .sendbird-label--color-onbackground-2{color:var(--sendbird-dark-ondark-02)}.sendbird-theme--light .sendbird-link-label .sendbird-label--color-onbackground-3{color:var(--sendbird-light-onlight-03)}.sendbird-theme--dark .sendbird-link-label .sendbird-label--color-onbackground-3{color:var(--sendbird-dark-ondark-03)}.sendbird-theme--light .sendbird-link-label .sendbird-label--color-oncontent-1{color:var(--sendbird-light-ondark-01)}.sendbird-theme--dark .sendbird-link-label .sendbird-label--color-oncontent-1{color:var(--sendbird-dark-onlight-01)}.sendbird-theme--light .sendbird-link-label .sendbird-label--color-oncontent-2{color:var(--sendbird-light-ondark-02)}.sendbird-theme--dark .sendbird-link-label .sendbird-label--color-oncontent-2{color:var(--sendbird-dark-onlight-02)}.sendbird-theme--light .sendbird-link-label .sendbird-label--color-primary{color:var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-link-label .sendbird-label--color-primary{color:var(--sendbird-dark-primary-200)}.sendbird-theme--light .sendbird-link-label .sendbird-label--color-error{color:var(--sendbird-light-error-300)}.sendbird-theme--dark .sendbird-link-label .sendbird-label--color-error{color:var(--sendbird-dark-error-200)}.sendbird-theme--light .sendbird-link-label .sendbird-label--color-secondary-3{color:var(--sendbird-light-secondary-300)}.sendbird-theme--dark .sendbird-link-label .sendbird-label--color-secondary-3{color:var(--sendbird-dark-secondary-200)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/Loader/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-loader{display:inline-block;animation:1s infinite linear;animation-name:rotate}@keyframes rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/MentionLabel/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-word{white-space:break-spaces}.sendbird-word .sendbird-word__mention{display:inline-block}.sendbird-word .sendbird-word__mention:hover{cursor:pointer}.sendbird-theme--light .sendbird-word .sendbird-word__mention.sendbird-word__mention--me{background-color:var(--sendbird-highlight-100)}.sendbird-theme--dark .sendbird-word .sendbird-word__mention.sendbird-word__mention--me{background-color:var(--sendbird-highlight-100)}.sendbird-theme--light .sendbird-word .sendbird-word__mention.sendbird-word__mention--me .sendbird-label{color:var(--sendbird-light-onlight-01)}.sendbird-theme--dark .sendbird-word .sendbird-word__mention.sendbird-word__mention--me .sendbird-label{color:var(--sendbird-dark-onlight-01)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/MentionUserLabel/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-mention-user-label{display:inline-block;font-family:var(--sendbird-font-family-default);font-size:14px;font-weight:bold;font-stretch:normal;font-style:normal;line-height:1.43;letter-spacing:normal;white-space:pre-line;width:fit-content;max-width:100%;height:16px}.sendbird-mention-user-label:hover{cursor:pointer}.sendbird-theme--light .sendbird-mention-user-label{color:var(--sendbird-light-onlight-01)}.sendbird-theme--dark .sendbird-mention-user-label{color:var(--sendbird-dark-ondark-01)}.sendbird-theme--light .sendbird-mention-user-label.reverse{color:var(--sendbird-light-ondark-01)}.sendbird-theme--dark .sendbird-mention-user-label.reverse{color:var(--sendbird-dark-onlight-01)}.sendbird-mention-user-label.purple{font-family:Roboto;font-size:18px;font-weight:bold;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal}.sendbird-theme--light .sendbird-mention-user-label.purple{color:var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-mention-user-label.purple{color:var(--sendbird-dark-primary-200)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/MessageContent/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird--mobile-mode .sendbird-msg-hoc>.ui_container_type__full{padding:0;width:100%}.sendbird-message-content{display:inline-flex;flex-direction:row;position:relative;width:calc(100% - 48px);padding:0 24px}.sendbird-message-content.incoming{justify-content:flex-start}.sendbird-message-content.outgoing{justify-content:flex-end}.sendbird-message-content .sendbird-message-content__middle{max-width:400px}.sendbird--mobile-mode .sendbird-message-content .sendbird-message-content__middle{max-width:calc(100vw - 140px)}.sendbird--mobile-mode .sendbird-message-content .ui_container_type__wide{max-width:100%}.sendbird--mobile-mode .sendbird-message-content .ui_container_type__full{max-width:100%}.sendbird-message-content .sendbird-message-content__middle .sendbird-message-content__middle__quote-message.use-quote{bottom:-8px;margin-top:-8px}.sendbird-message-content__middle__quote-message__quote{width:100%}.sendbird-message-content.incoming .sendbird-message-content__left{display:inline-flex;min-width:40px;position:relative}.sendbird-message-content.incoming .sendbird-message-content__left .sendbird-message-content__left__avatar{bottom:2px;left:0;position:absolute}.sendbird-message-content.incoming .sendbird-message-content__left .sendbird-message-content__left__avatar.multiple{border:2px solid}.sendbird-theme--light .sendbird-message-content.incoming .sendbird-message-content__left .sendbird-message-content__left__avatar.multiple{border-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-message-content.incoming .sendbird-message-content__left .sendbird-message-content__left__avatar.multiple{border-color:var(--sendbird-dark-background-600)}.sendbird-message-content.incoming .sendbird-message-content__left .sendbird-message-content__left__avatar.use-thread-replies{bottom:35px}.sendbird-message-content.incoming .sendbird-message-content__middle{align-items:flex-start;display:inline-flex;flex-direction:column;position:relative}.sendbird-message-content.incoming .sendbird-message-content__middle .sendbird-message-content__middle__body-container .sendbird-message-content__middle__body-container__created-at{bottom:6px;display:flex;flex-direction:row;min-width:80px;position:absolute;right:-84px;white-space:nowrap}.sendbird-message-content.incoming .sendbird-message-content__middle .sendbird-message-content__middle__body-container .sendbird-message-content__middle__body-container__created-at.sendbird-mouse-hover{display:none}.sendbird-message-content.incoming .sendbird-message-content__middle .sendbird-message-content__middle__body-container .ui_container_type__default-carousel{min-width:fit-content;bottom:-16px;right:0px}.sendbird-message-content.incoming .sendbird-message-content__middle .sendbird-message-content__middle__body-container .ui_container_type__wide{min-width:fit-content;bottom:-16px;right:0px}.sendbird-message-content.incoming .sendbird-message-content__middle .sendbird-message-content__middle__body-container .ui_container_type__full{min-width:fit-content;bottom:-16px;right:0px}.sendbird-message-content.incoming .sendbird-message-content__middle .sendbird-message-content__middle__sender-name{margin-bottom:4px;margin-left:12px;overflow-x:hidden;position:relative;text-overflow:ellipsis;width:100%}.sendbird-message-content.incoming .sendbird-message-content__middle .sendbird-message-content__middle__quote-message{display:inline-flex;position:relative;width:100%}.sendbird-message-content.incoming .sendbird-message-content__middle .sendbird-message-content__middle__quote-message.outgoing{justify-content:flex-end}.sendbird-message-content.incoming .sendbird-message-content__middle .sendbird-message-content__middle__quote-message.incoming{justify-content:flex-start}.sendbird-message-content.incoming .sendbird-message-content__middle .sendbird-message-content__middle__quote-message:hover{cursor:pointer}.sendbird-message-content.incoming .sendbird-message-content__right{display:inline-flex;margin-left:4px;padding-top:18px;position:relative;width:50px}.sendbird-message-content.incoming .sendbird-message-content__right.use-reactions{width:70px}.sendbird-message-content.incoming .sendbird-message-content__right.chain-top{padding-top:2px}.sendbird-message-content.incoming .sendbird-message-content__right.chain-top.use-quote{padding-top:18px}.sendbird-message-content.incoming .sendbird-message-content__right .sendbird-message-content-menu{display:none;flex-direction:row;height:32px;position:relative}.sendbird-message-content.incoming .sendbird-message-content__right .sendbird-message-content-menu.sendbird-mouse-hover{display:inline-flex}.sendbird--mobile-mode .sendbird-message-content.incoming:hover .sendbird-message-content__middle .sendbird-message-content__middle__body-container .sendbird-message-content__middle__body-container__created-at{display:inline-flex}.sendbird-message-content.incoming:hover .sendbird-message-content__right .sendbird-message-content-menu{display:inline-flex}.sendbird-message-content.incoming:hover .sendbird-message-content__middle .sendbird-message-content__middle__body-container .sendbird-message-content__middle__body-container__created-at{display:none}.sendbird-message-content.incoming:hover .sendbird-message-content__middle .sendbird-message-content__middle__body-container .ui_container_type__default-carousel{display:flex}.sendbird-message-content.outgoing .sendbird-message-content__left{box-sizing:border-box;display:inline-flex;justify-content:flex-end;position:relative;width:50px}.sendbird-message-content.outgoing .sendbird-message-content__left.use-reactions{width:70px}.sendbird-message-content.outgoing .sendbird-message-content__left.use-quote .sendbird-message-content-menu{top:18px}.sendbird-message-content.outgoing .sendbird-message-content__left .sendbird-message-content-menu{display:none;flex-direction:row;position:absolute;right:4px;top:2px}.sendbird-message-content.outgoing .sendbird-message-content__left .sendbird-message-content-menu.sendbird-mouse-hover{display:inline-flex}.sendbird-message-content.outgoing .sendbird-message-content__middle{align-items:flex-end;display:inline-flex;flex-direction:column;position:relative}.sendbird-message-content.outgoing .sendbird-message-content__middle .sendbird-message-content__middle__quote-message{display:inline-flex;position:relative;width:100%}.sendbird-message-content.outgoing .sendbird-message-content__middle .sendbird-message-content__middle__quote-message.outgoing{justify-content:flex-end}.sendbird-message-content.outgoing .sendbird-message-content__middle .sendbird-message-content__middle__quote-message.incoming{justify-content:flex-start}.sendbird-message-content.outgoing .sendbird-message-content__middle .sendbird-message-content__middle__body-container{position:relative;width:100%}.sendbird-message-content.outgoing .sendbird-message-content__middle .sendbird-message-content__middle__body-container .sendbird-message-content__middle__body-container__created-at{bottom:2px;box-sizing:content-box;display:flex;justify-content:flex-end;left:-84px;min-height:16px;min-width:80px;position:absolute;white-space:nowrap}.sendbird-message-content.outgoing .sendbird-message-content__middle .sendbird-message-content__middle__body-container .sendbird-message-content__middle__body-container__created-at.sendbird-mouse-hover{display:none}.sendbird-message-content.outgoing .sendbird-message-content__middle .sendbird-message-content__middle__body-container .sendbird-message-content__middle__body-container__created-at .sendbird-message-content__middle__body-container__created-at__component-container{display:inline-flex;position:relative}.sendbird-message-content.outgoing .sendbird-message-content__middle .sendbird-message-content__middle__body-container .ui_container_type__default-carousel{min-width:fit-content;bottom:-20px;left:0px}.sendbird-message-content.outgoing .sendbird-message-content__middle .sendbird-message-content__middle__body-container .ui_container_type__wide{min-width:fit-content;bottom:-20px;left:0px}.sendbird-message-content.outgoing .sendbird-message-content__middle .sendbird-message-content__middle__body-container .ui_container_type__full{min-width:fit-content;bottom:-20px;left:0px}.sendbird-message-content.outgoing .sendbird-message-content__right{display:none}.sendbird--mobile-mode .sendbird-message-content.outgoing:hover .sendbird-message-content__middle .sendbird-message-content__middle__body-container .sendbird-message-content__middle__body-container__created-at{display:inline-flex}.sendbird-message-content.outgoing:hover .sendbird-message-content__left .sendbird-message-content-menu{display:inline-flex}.sendbird-message-content.outgoing:hover .sendbird-message-content__middle .sendbird-message-content__middle__body-container .sendbird-message-content__middle__body-container__created-at{display:none}.sendbird-message-content__middle__body-container{display:flex;flex-direction:column;position:relative;width:fit-content}.sendbird-message-content__middle__body-container .sendbird-message-content__middle__message-item-body{box-sizing:border-box;width:100%}.sendbird-message-content-reactions{border-radius:0 0 16px 16px;max-width:400px;position:relative;width:100%}.sendbird-theme--light .sendbird-message-content-reactions{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-message-content-reactions{background-color:var(--sendbird-dark-background-500)}.sendbird-theme--light .sendbird-message-content-reactions.primary{background-color:var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-message-content-reactions.primary{background-color:var(--sendbird-dark-primary-200)}.sendbird-theme--light .sendbird-message-content-reactions.mouse-hover,.sendbird-theme--light .sendbird-message-content-reactions:hover{background-color:var(--sendbird-light-background-200)}.sendbird-theme--dark .sendbird-message-content-reactions.mouse-hover,.sendbird-theme--dark .sendbird-message-content-reactions:hover{background-color:var(--sendbird-dark-background-400)}.sendbird-theme--light .sendbird-message-content-reactions.mouse-hover.primary,.sendbird-theme--light .sendbird-message-content-reactions:hover.primary{background-color:var(--sendbird-light-primary-400)}.sendbird-theme--dark .sendbird-message-content-reactions.mouse-hover.primary,.sendbird-theme--dark .sendbird-message-content-reactions:hover.primary{background-color:var(--sendbird-dark-primary-300)}.sendbird-theme--light .sendbird-message-content-reactions.image-grid{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-message-content-reactions.image-grid{background-color:var(--sendbird-dark-background-500)}.sendbird-message-content__middle__thread-replies{margin-top:4px}.sendbird-message-content__middle__feedback-buttons{margin-top:4px}.sendbird-voice-message-item-body.sendbird-message-content__middle__message-item-body{height:50px;min-width:136px}.sendbird-message-content__middle__body-container__feedback-buttons-container{margin-top:4px;position:relative;display:flex;gap:4px}.sendbird-message-content__middle__for_template_message{width:100%}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/MessageInput/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-message-input{display:inline-block;width:100%;position:relative}.sendbird-message-input .sendbird-message-input--textarea{position:relative;width:100%;border-radius:4px;font-size:14px;font-weight:normal;font-stretch:normal;font-style:normal;line-height:1.43;height:56px;overflow-y:scroll;letter-spacing:normal;padding:18px 64px 18px 16px;box-sizing:border-box;resize:none;font-family:var(--sendbird-font-family-default);background-color:inherit;white-space:pre-wrap}.sendbird-theme--light .sendbird-message-input .sendbird-message-input--textarea{color:var(--sendbird-light-onlight-01);caret-color:var(--sendbird-light-primary-300);border:solid 1px var(--sendbird-light-onlight-03);background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-message-input .sendbird-message-input--textarea{color:var(--sendbird-dark-ondark-01);caret-color:var(--sendbird-dark-primary-200);border:solid 1px var(--sendbird-dark-ondark-03);background-color:var(--sendbird-dark-background-500)}.sendbird-message-input .sendbird-message-input--textarea:focus{outline:none}.sendbird-theme--light .sendbird-message-input .sendbird-message-input--textarea:focus{color:var(--sendbird-light-onlight-01);border:solid 1px var(--sendbird-light-primary-300);box-shadow:var(--sendbird-light-shadow-message-input)}.sendbird-theme--dark .sendbird-message-input .sendbird-message-input--textarea:focus{color:var(--sendbird-dark-ondark-01);border:solid 1px var(--sendbird-dark-primary-200);box-shadow:var(--sendbird-dark-shadow-message-input)}.sendbird-theme--light .sendbird-message-input .sendbird-message-input--textarea:active{border:solid 1px var(--sendbird-message-input-border-active);color:var(--sendbird-light-onlight-01)}.sendbird-theme--dark .sendbird-message-input .sendbird-message-input--textarea:active{border:solid 1px var(--sendbird-message-input-border-active);color:var(--sendbird-dark-ondark-01)}.sendbird-message-input .sendbird-message-input--placeholder{position:absolute;pointer-events:none;top:18px;left:16px;font-family:var(--sendbird-font-family-default);font-size:14px;line-height:1.43}.sendbird-message-input .sendbird-message-input--attach{position:absolute;padding:6px;right:16px;bottom:14px}.sendbird-message-input .sendbird-message-input--attach.is-voice-message-enabled{right:48px}.sendbird-message-input .sendbird-message-input--voice-message{position:absolute;padding:6px;right:16px;bottom:14px}.sendbird-message-input .sendbird-message-input--send{position:absolute;padding:6px;right:16px;bottom:14px}.sendbird-message-input .sendbird-message-input--attach-input{display:none}.sendbird-message-input__edit{padding:16px;box-sizing:border-box}.sendbird-theme--light .sendbird-message-input__edit{background-color:var(--sendbird-light-primary-100)}.sendbird-theme--dark .sendbird-message-input__edit{background-color:var(--sendbird-dark-background-700)}.sendbird-message-input--edit-action{text-align:right;margin-top:4px}.sendbird-message-input--edit-action button:last-child{margin-left:8px}.sendbird-message-input--edit-action .sendbird-message-input--edit-action__cancel{width:80px}.sendbird-theme--light .sendbird-message-input--edit-action .sendbird-message-input--edit-action__cancel{border:solid 1px var(--sendbird-light-onlight-03)}.sendbird-theme--dark .sendbird-message-input--edit-action .sendbird-message-input--edit-action__cancel{border:solid 1px var(--sendbird-dark-ondark-03)}.sendbird-message-input--edit-action .sendbird-message-input--edit-action__save{width:80px}.sendbird-message-input-form__disabled{cursor:not-allowed}.sendbird-message-input__disabled{pointer-events:none;cursor:not-allowed}.sendbird-theme--light .sendbird-message-input__disabled .sendbird-message-input--textarea{color:var(--sendbird-light-onlight-04);border:1px solid var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-message-input__disabled .sendbird-message-input--textarea{color:var(--sendbird-dark-ondark-04);border:1px solid var(--sendbird-dark-ondark-04)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/MessageItemMenu/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-message-item-menu__list__menu-item:focus-visible{outline:none}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/MessageItemReactionMenu/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-text{color:var(--primary-1)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/MessageSearchFileItem/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-message-search-file-item{position:relative;display:inline-flex;flex-direction:row;width:100%;height:80px;cursor:pointer}.sendbird-theme--light .sendbird-message-search-file-item{border-bottom:1px solid var(--sendbird-light-onlight-04);background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-message-search-file-item{border-bottom:1px solid var(--sendbird-dark-ondark-04);background-color:var(--sendbird-dark-background-600)}.sendbird-theme--light .sendbird-message-search-file-item:hover{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-message-search-file-item:hover{background-color:var(--sendbird-dark-background-500)}.sendbird-message-search-file-item .sendbird-message-search-file-item__left{position:relative;display:flex;align-items:center;justify-content:center;width:90px;height:80px}.sendbird-message-search-file-item .sendbird-message-search-file-item__right{position:relative;display:flex;flex-direction:column;width:calc(100% - 106px)}.sendbird-message-search-file-item .sendbird-message-search-file-item__right .sendbird-message-search-file-item__right__sender-name{position:absolute;top:12px;display:inline-block;max-width:146px;height:16px;overflow:hidden;text-overflow:ellipsis}.sendbird-message-search-file-item .sendbird-message-search-file-item__right .sendbird-message-search-file-item__right__content{position:absolute;top:36px;box-sizing:border-box;width:100%;height:32px;display:flex;flex-direction:row;align-items:center}.sendbird-message-search-file-item .sendbird-message-search-file-item__right .sendbird-message-search-file-item__right__content .sendbird-message-search-file-item__right__content__type-icon{position:relative;margin-right:4px;display:flex;align-items:center;justify-content:center;width:26px;min-width:26px;height:26px;border-radius:8px}.sendbird-theme--light .sendbird-message-search-file-item .sendbird-message-search-file-item__right .sendbird-message-search-file-item__right__content .sendbird-message-search-file-item__right__content__type-icon{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-message-search-file-item .sendbird-message-search-file-item__right .sendbird-message-search-file-item__right__content .sendbird-message-search-file-item__right__content__type-icon{background-color:var(--sendbird-dark-background-500)}.sendbird-message-search-file-item .sendbird-message-search-file-item__right .sendbird-message-search-file-item__right__content .sendbird-message-search-file-item__right__content__url{height:16px;position:relative;display:inline;overflow:hidden;text-overflow:ellipsis;word-break:keep-all;white-space:nowrap}.sendbird-message-search-file-item .sendbird-message-search-file-item__message-created-at{position:absolute;top:12px;right:18px}.sendbird-message-search-file-item .sendbird-message-search-file-item__right-footer{width:16px}.sendbird-theme--light .sendbird-message-search-file-item.sendbird-message-search-file-item--selected{background-color:var(--sendbird-light-primary-100)}.sendbird-theme--dark .sendbird-message-search-file-item.sendbird-message-search-file-item--selected{background-color:var(--sendbird-dark-background-700)}.sendbird-theme--light .sendbird-message-search-file-item.sendbird-message-search-file-item--selected .sendbird-message-search-file-item__left{border-left:4px solid var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-message-search-file-item.sendbird-message-search-file-item--selected .sendbird-message-search-file-item__left{border-left:4px solid var(--sendbird-dark-primary-200)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/MessageSearchItem/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-message-search-item{display:inline-flex;flex-direction:row;width:100%;height:80px;position:relative;cursor:pointer}.sendbird-theme--light .sendbird-message-search-item{border-bottom:1px solid var(--sendbird-light-onlight-04);background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-message-search-item{border-bottom:1px solid var(--sendbird-dark-ondark-04);background-color:var(--sendbird-dark-background-600)}.sendbird-theme--light .sendbird-message-search-item:hover{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-message-search-item:hover{background-color:var(--sendbird-dark-background-500)}.sendbird-message-search-item .sendbird-message-search-item__left{display:flex;align-items:center;justify-content:center;width:90px;height:80px}.sendbird-message-search-item .sendbird-message-search-item__right{display:flex;flex-direction:column;width:calc(100% - 106px)}.sendbird-message-search-item .sendbird-message-search-item__right .sendbird-message-search-item__right__sender-name{position:absolute;top:12px;display:inline;max-width:150px;height:16px;overflow:hidden;text-overflow:ellipsis;word-break:keep-all}.sendbird-message-search-item .sendbird-message-search-item__right .sendbird-message-search-item__right__message-text{box-sizing:border-box;display:flex;width:inherit;height:32px;overflow:hidden;text-overflow:ellipsis;position:absolute;top:36px;word-break:break-word}.sendbird-message-search-item .sendbird-message-search-item__right .sendbird-message-search-item__right__message-created-at{position:absolute;top:12px;right:18px}.sendbird-message-search-item .sendbird-message-search-item__right-footer{width:16px}.sendbird-theme--light .sendbird-message-search-item.sendbird-message-search-item--selected{background-color:var(--sendbird-light-primary-100)}.sendbird-theme--dark .sendbird-message-search-item.sendbird-message-search-item--selected{background-color:var(--sendbird-dark-background-700)}.sendbird-theme--light .sendbird-message-search-item.sendbird-message-search-item--selected .sendbird-message-search-item__left{border-left:4px solid var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-message-search-item.sendbird-message-search-item--selected .sendbird-message-search-item__left{border-left:4px solid var(--sendbird-dark-primary-200)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/MessageStatus/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-message-status{position:relative;display:inline-flex;align-items:flex-start;width:100%;height:100%}.sendbird-message-status .sendbird-message-status__icon{position:relative;display:inline-block;top:-2px}.sendbird-message-status .sendbird-message-status__icon.hide-icon{display:none}.sendbird-message-status .sendbird-message-status__text{position:relative;display:inline-block;margin-left:4px}.sendbird-message-status .sendbird-message-status__text .sendbird-message-status__text__try-again{text-decoration:underline}.sendbird-message-status .sendbird-message-status__text .sendbird-message-status__text__try-again:hover{cursor:pointer}.sendbird-message-status .sendbird-message-status__text .sendbird-message-status__text__delete{text-decoration:underline}.sendbird-message-status .sendbird-message-status__text .sendbird-message-status__text__delete:hover{cursor:pointer}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/MessageTemplate/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-message-template__root *{box-sizing:border-box}.sendbird-message-template__root{border-radius:0;font-family:var(--sendbird-font-family-default)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/MobileFeedbackMenu/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-message__bottomsheet--feedback-options-menu{width:100vw;border-radius:8px 8px 0 0}.sendbird-theme--light .sendbird-message__bottomsheet--feedback-options-menu{background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-message__bottomsheet--feedback-options-menu{background-color:var(--sendbird-dark-background-500)}.sendbird-message__bottomsheet--feedback-options-menu :first-child{border-radius:8px 8px 0 0}.sendbird-message__bottomsheet--feedback-option{cursor:pointer;height:48px;display:flex;align-items:center;padding:0 24px}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/MobileMenu/mobile-menu-reacted-members.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-message__bottomsheet__reacted-members{position:relative;padding:0px 16px;box-sizing:border-box;width:100%;height:46px;overflow-x:scroll;display:inline-flex;flex-direction:row;justify-content:center;gap:16px}.sendbird-message__bottomsheet__reacted-members__item{position:relative;height:100%;display:inline-flex;gap:4px;flex-direction:row;align-items:center}.sendbird-message__bottomsheet__reactor-list{position:relative;padding:0px 16px;width:100%;height:216px;box-sizing:border-box;display:inline-flex;flex-direction:column;overflow-y:scroll}.sendbird-message__bottomsheet__reactor-list__item.sendbird-user-list-item{border-bottom:0px;min-height:48px}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/MobileMenu/mobile-menu.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-message__mobile-context-menu{border-radius:8px;width:180px}.sendbird-message__contextmenu--hyperlink{display:flex;justify-content:space-between}.sendbird-message__bottomsheet--hyperlink{display:block}.sendbird-message__bottomsheet--hyperlink,.sendbird-message__contextmenu--hyperlink{width:100%;text-decoration:none;color:inherit;font-size:inherit;font-weight:inherit;font-stretch:normal;font-style:normal;line-height:inherit;letter-spacing:inherit;font-family:inherit}.sendbird-message__mobile-context-menu-item .sendbird-dropdown__menu-item__text{display:flex;justify-content:space-between}.sendbird-theme--light .sendbird-message__mobile-context-menu-item:not(:last-child){border-bottom:1px solid var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-message__mobile-context-menu-item:not(:last-child){border-bottom:1px solid var(--sendbird-dark-ondark-04)}.sendbird-message__bottomsheet{width:100vw;border-top-left-radius:8px;border-top-right-radius:8px;padding-top:16px}.sendbird-theme--light .sendbird-message__bottomsheet{background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-message__bottomsheet{background-color:var(--sendbird-dark-background-600)}.sendbird-message__bottomsheet-reaction-bar{padding-left:0;display:flex;justify-content:center;margin-bottom:0px;margin-top:0}.sendbird-message__bottomsheet-reaction-bar__row{display:inline-block}.sendbird-message__bottomsheet-reaction-bar__row.sendbird-message__bottomsheet-reaction-bar__all{display:flex;flex-direction:row;flex-wrap:wrap}.sendbird-message__bottomsheet--action{cursor:pointer;height:48px;display:flex;align-items:center;padding-left:16px}.sendbird-message__bottomsheet--action .sendbird-icon{margin-right:24px}.sendbird-message__bottomsheet--action-disabled{cursor:not-allowed}.sendbird-theme--light .sendbird-message__bottomsheet--action-disabled{background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-message__bottomsheet--action-disabled{background-color:var(--sendbird-dark-background-500)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/Modal/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-modal--full-mobile .sendbird-modal__content{width:100vw;max-width:100%;height:100%}.sendbird-modal{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.sendbird-modal__backdrop--clickoutside{cursor:pointer}.sendbird-modal__content{width:480px;border-radius:4px;z-index:10001;padding:18px 24px 24px 24px;position:relative;box-sizing:border-box}.sendbird-theme--light .sendbird-modal__content{background-color:var(--sendbird-light-background-50);box-shadow:var(--sendbird-light-shadow-04)}.sendbird-theme--dark .sendbird-modal__content{background-color:var(--sendbird-dark-background-500);box-shadow:var(--sendbird-dark-shadow-04)}.sendbird-modal__content .sendbird-modal__close{position:absolute;top:16px;right:16px;cursor:pointer}.sendbird-theme--light .sendbird-modal__content .sendbird-modal__close path{fill:var(--sendbird-light-onlight-01)}.sendbird-theme--dark .sendbird-modal__content .sendbird-modal__close path{fill:var(--sendbird-dark-ondark-01)}.sendbird-modal__content .sendbird-modal__header{margin-bottom:16px}.sendbird-modal__content .sendbird-modal__body{height:calc(100% - 116px)}.sendbird-modal__content .sendbird-modal__footer{display:flex;flex-direction:row;justify-content:flex-end;margin-top:32px;text-align:right}.sendbird--mobile-mode .sendbird-modal__content .sendbird-modal__footer{position:sticky;bottom:24px}.sendbird-modal__content .sendbird-modal__footer .sendbird-button:last-child{margin-left:8px;min-width:80px;height:40px}.sendbird-modal__backdrop{position:fixed;z-index:10000;height:100%;width:100%;top:0;left:0}.sendbird-theme--light .sendbird-modal__backdrop{background-color:var(--sendbird-light-overlay-02)}.sendbird-theme--dark .sendbird-modal__backdrop{background-color:var(--sendbird-dark-overlay-02)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/MultipleFilesMessageItemBody/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-multiple-files-image-renderer-wrapper{cursor:pointer;width:100%}.sendbird-multiple-files-image-renderer__thumbnail__placeholder{position:absolute;display:flex;width:100%;height:100%;justify-content:center;border-radius:16px;align-items:center}.sendbird-theme--light .sendbird-multiple-files-image-renderer__thumbnail__placeholder{background-color:var(--sendbird-light-background-200)}.sendbird-theme--dark .sendbird-multiple-files-image-renderer__thumbnail__placeholder{background-color:var(--sendbird-dark-background-400)}.sendbird-multiple-files-image-renderer__thumbnail__placeholder .sendbird-multiple-files-image-renderer__thumbnail__placeholder__icon{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:50%;background-color:var(--sendbird-light-ondark-01)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/OGMessageItemBody/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-og-message-item-body{position:relative;display:inline-block;width:100%;min-width:320px;max-width:400px}.sendbird--mobile-mode .sendbird-og-message-item-body{min-width:160px}.sendbird-og-message-item-body .sendbird-og-message-item-body__text-bubble{position:relative;padding:8px 12px;box-sizing:border-box;border-radius:16px 16px 0px 0px;word-break:break-word;white-space:pre-line}.sendbird-og-message-item-body .sendbird-og-message-item-body__text-bubble .sendbird-og-message-item-body__text-bubble__message{display:inline;margin:0px 2px}.sendbird-og-message-item-body .sendbird-og-message-item-body__og-thumbnail{position:relative;overflow:hidden}.sendbird-og-message-item-body .sendbird-og-message-item-body__og-thumbnail .sendbird-og-message-item-body__og-thumbnail__image{width:100%;position:relative;display:flex;justify-content:center;align-items:center}.sendbird-og-message-item-body.reactions .sendbird-og-message-item-body__description{border-radius:0px}.sendbird-og-message-item-body .sendbird-og-message-item-body__description{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:8px 12px;display:flex;flex-direction:column;border-radius:0px 0px 16px 16px}.sendbird-theme--light .sendbird-og-message-item-body .sendbird-og-message-item-body__description{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-og-message-item-body .sendbird-og-message-item-body__description{background-color:var(--sendbird-dark-background-500)}.sendbird-og-message-item-body .sendbird-og-message-item-body__description .sendbird-og-message-item-body__description__title,.sendbird-og-message-item-body .sendbird-og-message-item-body__description .sendbird-og-message-item-body__description__description{margin-bottom:4px;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:inline-block}.sendbird-og-message-item-body .sendbird-og-message-item-body__description .sendbird-og-message-item-body__description__url{width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:inline-block;margin:4px 0px}.sendbird-og-message-item-body .sendbird-og-message-item-body__og-thumbnail:hover,.sendbird-og-message-item-body .sendbird-og-message-item-body__description:hover{cursor:pointer}.sendbird-theme--light .sendbird-og-message-item-body.outgoing .sendbird-og-message-item-body__text-bubble{background-color:var(--sendbird-light-primary-300);color:var(--sendbird-light-ondark-01)}.sendbird-theme--dark .sendbird-og-message-item-body.outgoing .sendbird-og-message-item-body__text-bubble{background-color:var(--sendbird-dark-primary-200);color:var(--sendbird-dark-onlight-01)}.sendbird-theme--light .sendbird-og-message-item-body.incoming .sendbird-og-message-item-body__text-bubble{background-color:var(--sendbird-light-background-100);color:var(--sendbird-light-onlight-01)}.sendbird-theme--dark .sendbird-og-message-item-body.incoming .sendbird-og-message-item-body__text-bubble{background-color:var(--sendbird-dark-background-500);color:var(--sendbird-dark-ondark-01)}.sendbird-theme--light .sendbird-og-message-item-body.mouse-hover .sendbird-og-message-item-body__description,.sendbird-theme--light .sendbird-og-message-item-body:hover .sendbird-og-message-item-body__description{background-color:var(--sendbird-light-background-200)}.sendbird-theme--dark .sendbird-og-message-item-body.mouse-hover .sendbird-og-message-item-body__description,.sendbird-theme--dark .sendbird-og-message-item-body:hover .sendbird-og-message-item-body__description{background-color:var(--sendbird-dark-background-400)}.sendbird-theme--light .sendbird-og-message-item-body.mouse-hover.outgoing .sendbird-og-message-item-body__text-bubble,.sendbird-theme--light .sendbird-og-message-item-body:hover.outgoing .sendbird-og-message-item-body__text-bubble{background-color:var(--sendbird-light-primary-400)}.sendbird-theme--dark .sendbird-og-message-item-body.mouse-hover.outgoing .sendbird-og-message-item-body__text-bubble,.sendbird-theme--dark .sendbird-og-message-item-body:hover.outgoing .sendbird-og-message-item-body__text-bubble{background-color:var(--sendbird-dark-primary-300)}.sendbird-theme--light .sendbird-og-message-item-body.mouse-hover.incoming .sendbird-og-message-item-body__text-bubble,.sendbird-theme--light .sendbird-og-message-item-body:hover.incoming .sendbird-og-message-item-body__text-bubble{background-color:var(--sendbird-light-background-200)}.sendbird-theme--dark .sendbird-og-message-item-body.mouse-hover.incoming .sendbird-og-message-item-body__text-bubble,.sendbird-theme--dark .sendbird-og-message-item-body:hover.incoming .sendbird-og-message-item-body__text-bubble{background-color:var(--sendbird-dark-background-400)}.sendbird-og-message-item-body .sendbird-og-message-item-body__cover{display:none;position:absolute;top:0%;left:0;width:100%;height:100%;border-radius:16px 16px 0px 0px}div.sendbird-og-message-item-body__text-bubble{margin:0px}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/OpenChannelAdminMessage/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-openchannel-admin-message{position:relative;margin:16px 24px;padding:12px 16px;border-radius:4px}.sendbird-theme--light .sendbird-openchannel-admin-message{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-openchannel-admin-message{background-color:var(--sendbird-dark-background-500)}.sendbird-theme--light .sendbird-openchannel-admin-message:hover{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-openchannel-admin-message:hover{background-color:var(--sendbird-dark-background-400)}.sendbird-openchannel-admin-message .sendbird-openchannel-admin-message__text{word-wrap:break-word}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/OpenChannelMobileMenu/open-channel-mobile-menu.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-openchannel__mobile-menu-hyperlink{display:block;width:100%;text-decoration:none;color:inherit;font-size:inherit;font-weight:inherit;font-stretch:normal;font-style:normal;line-height:inherit;letter-spacing:inherit;font-family:inherit}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/OpenchannelConversationHeader/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-openchannel-conversation-header{position:relative;min-height:64px;box-sizing:border-box}.sendbird-theme--light .sendbird-openchannel-conversation-header{border-bottom:1px solid var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-openchannel-conversation-header{border-bottom:1px solid var(--sendbird-dark-ondark-04)}.sendbird-openchannel-conversation-header .sendbird-openchannel-conversation-header__left__title{white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis;max-width:calc(100% - 120px)}.sendbird-openchannel-conversation-header__left [class*=sendbird-openchannel-conversation-header__left__cover-image]{position:absolute;left:20px;top:16px}.sendbird-openchannel-conversation-header__left__title{position:absolute;left:60px;top:12px}.sendbird-openchannel-conversation-header__left__sub-title{position:absolute;left:60px;top:36px}.sendbird-openchannel-conversation-header__right{position:absolute;top:0px;right:0px;width:64px;height:64px}.sendbird-openchannel-conversation-header__right__trigger{position:absolute;top:16px;right:16px;display:flex;align-items:center;justify-content:center}.sendbird-openchannel-conversation-header__left__cover-image--icon{display:flex;justify-content:center;align-items:center;border-radius:50%}.sendbird-theme--light .sendbird-openchannel-conversation-header__left__cover-image--icon{background-color:var(--sendbird-light-background-300)}.sendbird-theme--dark .sendbird-openchannel-conversation-header__left__cover-image--icon{background-color:var(--sendbird-dark-background-300)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/OpenchannelFileMessage/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-openchannel-file-message{position:relative;display:flex;flex-direction:row}.sendbird-theme--light .sendbird-openchannel-file-message:hover{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-openchannel-file-message:hover{background-color:var(--sendbird-dark-background-400)}.sendbird-openchannel-file-message:hover .sendbird-openchannel-file-message__context-menu{display:block}.sendbird-openchannel-file-message .sendbird-openchannel-file-message__left{position:relative;display:flex;width:52px;min-width:52px}.sendbird-openchannel-file-message .sendbird-openchannel-file-message__left .sendbird-openchannel-file-message__left__avatar{position:absolute;display:block;margin-top:8px;margin-left:24px}.sendbird-openchannel-file-message .sendbird-openchannel-file-message__right{position:relative;display:flex;flex-direction:column;margin-left:12px;margin-bottom:4px;width:calc(100% - 64px)}.sendbird-openchannel-file-message .sendbird-openchannel-file-message__right .sendbird-openchannel-file-message__right__title{position:relative;display:flex;margin-top:8px}.sendbird-openchannel-file-message .sendbird-openchannel-file-message__right .sendbird-openchannel-file-message__right__title .sendbird-openchannel-file-message__right__title__sender-name{position:relative;display:flex}.sendbird-openchannel-file-message .sendbird-openchannel-file-message__right .sendbird-openchannel-file-message__right__title .sendbird-openchannel-file-message__right__title__sent-at{position:relative;display:flex;margin-left:4px}.sendbird-openchannel-file-message .sendbird-openchannel-file-message__right .sendbird-openchannel-file-message__right__body{position:relative;display:flex;margin-top:4px;margin-bottom:4px;border-radius:8px}.sendbird-theme--light .sendbird-openchannel-file-message .sendbird-openchannel-file-message__right .sendbird-openchannel-file-message__right__body{background-color:var(--sendbird-light-background-100);border:solid 1px var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-openchannel-file-message .sendbird-openchannel-file-message__right .sendbird-openchannel-file-message__right__body{background-color:var(--sendbird-dark-background-500);border:solid 1px var(--sendbird-dark-ondark-04)}.sendbird-openchannel-file-message .sendbird-openchannel-file-message__right .sendbird-openchannel-file-message__right__body .sendbird-openchannel-file-message__right__body__icon{position:relative;display:inline-block;margin:8px;border-radius:8.6px}.sendbird-theme--light .sendbird-openchannel-file-message .sendbird-openchannel-file-message__right .sendbird-openchannel-file-message__right__body .sendbird-openchannel-file-message__right__body__icon{background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-openchannel-file-message .sendbird-openchannel-file-message__right .sendbird-openchannel-file-message__right__body .sendbird-openchannel-file-message__right__body__icon{background-color:var(--sendbird-dark-background-600)}.sendbird-openchannel-file-message .sendbird-openchannel-file-message__right .sendbird-openchannel-file-message__right__body .sendbird-openchannel-file-message__right__body__file-name{position:relative;display:flex;margin-top:22px;margin-right:16px;margin-left:4px;overflow:hidden;height:20px;max-height:20px;text-overflow:ellipsis;white-space:nowrap}.sendbird-openchannel-file-message .sendbird-openchannel-file-message__context-menu{position:absolute;display:none;top:8px;right:16px}.sendbird-theme--light .sendbird-openchannel-file-message .sendbird-openchannel-file-message__context-menu .sendbird-openchannel-file-message__context-menu__icon{background-color:var(--sendbird-light-background-200)}.sendbird-theme--dark .sendbird-openchannel-file-message .sendbird-openchannel-file-message__context-menu .sendbird-openchannel-file-message__context-menu__icon{background-color:var(--sendbird-dark-background-500)}.sendbird-theme--light .sendbird-openchannel-file-message .sendbird-openchannel-file-message__context-menu .sendbird-openchannel-file-message__context-menu__icon:hover{background-color:var(--sendbird-light-primary-100)}.sendbird-theme--dark .sendbird-openchannel-file-message .sendbird-openchannel-file-message__context-menu .sendbird-openchannel-file-message__context-menu__icon:hover{background-color:var(--sendbird-dark-background-700)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/OpenchannelOGMessage/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-openchannel-og-message{position:relative;display:flex;flex-direction:column;width:100%}.sendbird-theme--light .sendbird-openchannel-og-message:hover{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-openchannel-og-message:hover{background-color:var(--sendbird-dark-background-400)}.sendbird-openchannel-og-message:hover .sendbird-openchannel-og-message__top .sendbird-openchannel-og-message__top__context-menu{display:block}.sendbird-openchannel-og-message .sendbird-openchannel-og-message__top{box-sizing:border-box;position:relative;display:flex;flex-direction:row}.sendbird-openchannel-og-message .sendbird-openchannel-og-message__top .sendbird-openchannel-og-message__top__left{position:relative;display:flex;width:52px;min-width:52px}.sendbird-openchannel-og-message .sendbird-openchannel-og-message__top .sendbird-openchannel-og-message__top__left .sendbird-openchannel-og-message__top__left__avatar{position:absolute;display:flex;top:8px;left:24px}.sendbird-openchannel-og-message .sendbird-openchannel-og-message__top .sendbird-openchannel-og-message__top__right{position:relative;display:flex;box-sizing:border-box;flex-direction:column;margin:8px 24px 8px 12px}.sendbird-openchannel-og-message .sendbird-openchannel-og-message__top .sendbird-openchannel-og-message__top__right .sendbird-openchannel-og-message__top__right__title{position:relative;display:flex;margin-bottom:2px}.sendbird-openchannel-og-message .sendbird-openchannel-og-message__top .sendbird-openchannel-og-message__top__right .sendbird-openchannel-og-message__top__right__title .sendbird-openchannel-og-message__top__right__title__sender-name{position:relative;display:flex}.sendbird-openchannel-og-message .sendbird-openchannel-og-message__top .sendbird-openchannel-og-message__top__right .sendbird-openchannel-og-message__top__right__title .sendbird-openchannel-og-message__top__right__title__sent-at{position:relative;display:flex;margin-left:4px}.sendbird-openchannel-og-message .sendbird-openchannel-og-message__top .sendbird-openchannel-og-message__top__right .sendbird-openchannel-og-message__top__right__description .sendbird-openchannel-og-message__top__right__description__message{position:relative;display:inline;white-space:pre-wrap;word-break:break-all}.sendbird-theme--light .sendbird-openchannel-og-message .sendbird-openchannel-og-message__top .sendbird-openchannel-og-message__top__right .sendbird-openchannel-og-message__top__right__description .sendbird-openchannel-og-message__top__right__description__message .sendbird-word .sendbird-word__url{color:var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-openchannel-og-message .sendbird-openchannel-og-message__top .sendbird-openchannel-og-message__top__right .sendbird-openchannel-og-message__top__right__description .sendbird-openchannel-og-message__top__right__description__message .sendbird-word .sendbird-word__url{color:var(--sendbird-dark-primary-200)}.sendbird-openchannel-og-message .sendbird-openchannel-og-message__top .sendbird-openchannel-og-message__top__context-menu{position:absolute;right:16px;display:none}.sendbird-theme--light .sendbird-openchannel-og-message .sendbird-openchannel-og-message__top .sendbird-openchannel-og-message__top__context-menu .sendbird-openchannel-og-message__top__context-menu--icon{background-color:var(--sendbird-light-background-200)}.sendbird-theme--dark .sendbird-openchannel-og-message .sendbird-openchannel-og-message__top .sendbird-openchannel-og-message__top__context-menu .sendbird-openchannel-og-message__top__context-menu--icon{background-color:var(--sendbird-dark-background-500)}.sendbird-theme--light .sendbird-openchannel-og-message .sendbird-openchannel-og-message__top .sendbird-openchannel-og-message__top__context-menu .sendbird-openchannel-og-message__top__context-menu--icon:hover{background-color:var(--sendbird-light-primary-100)}.sendbird-theme--dark .sendbird-openchannel-og-message .sendbird-openchannel-og-message__top .sendbird-openchannel-og-message__top__context-menu .sendbird-openchannel-og-message__top__context-menu--icon:hover{background-color:var(--sendbird-dark-background-700)}.sendbird-openchannel-og-message .sendbird-openchannel-og-message__bottom{position:relative;display:inline;margin-bottom:8px;width:100%}.sendbird-openchannel-og-message .sendbird-openchannel-og-message__bottom .sendbird-openchannel-og-message__bottom__og-tag{position:relative;display:inline-block;box-sizing:border-box;width:calc(100% - 64px);max-width:360px;left:64px;padding:12px 12px 4px 12px;border-radius:8px}.sendbird-theme--light .sendbird-openchannel-og-message .sendbird-openchannel-og-message__bottom .sendbird-openchannel-og-message__bottom__og-tag{border:solid 1px var(--sendbird-light-onlight-04);background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-openchannel-og-message .sendbird-openchannel-og-message__bottom .sendbird-openchannel-og-message__bottom__og-tag{border:solid 1px var(--sendbird-dark-ondark-04);background-color:var(--sendbird-dark-background-500)}.sendbird-openchannel-og-message .sendbird-openchannel-og-message__bottom .sendbird-openchannel-og-message__bottom__og-tag .sendbird-openchannel-og-message__bottom__og-tag__url{position:relative;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:8px;max-width:336px}.sendbird-openchannel-og-message .sendbird-openchannel-og-message__bottom .sendbird-openchannel-og-message__bottom__og-tag .sendbird-openchannel-og-message__bottom__og-tag__title{position:relative;display:inline-block;white-space:pre-wrap;overflow-wrap:normal;margin-bottom:8px;max-width:336px}.sendbird-openchannel-og-message .sendbird-openchannel-og-message__bottom .sendbird-openchannel-og-message__bottom__og-tag .sendbird-openchannel-og-message__bottom__og-tag__title:hover{cursor:pointer}.sendbird-theme--light .sendbird-openchannel-og-message .sendbird-openchannel-og-message__bottom .sendbird-openchannel-og-message__bottom__og-tag .sendbird-openchannel-og-message__bottom__og-tag__title:hover{color:var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-openchannel-og-message .sendbird-openchannel-og-message__bottom .sendbird-openchannel-og-message__bottom__og-tag .sendbird-openchannel-og-message__bottom__og-tag__title:hover{color:var(--sendbird-dark-primary-200)}.sendbird-openchannel-og-message .sendbird-openchannel-og-message__bottom .sendbird-openchannel-og-message__bottom__og-tag .sendbird-openchannel-og-message__bottom__og-tag__description{position:relative;display:block;white-space:pre-wrap;overflow:hidden;text-overflow:ellipsis;word-break:break-all;max-height:32px;margin-bottom:8px;width:100%;max-width:336px}.sendbird-openchannel-og-message .sendbird-openchannel-og-message__bottom .sendbird-openchannel-og-message__bottom__og-tag .sendbird-openchannel-og-message__bottom__og-tag__thumbnail{box-sizing:border-box;position:relative;display:block;margin-top:4px;margin-bottom:8px;width:100%}.sendbird-openchannel-og-message .sendbird-openchannel-og-message__bottom .sendbird-openchannel-og-message__bottom__og-tag .sendbird-openchannel-og-message__bottom__og-tag__thumbnail:hover{cursor:pointer}.sendbird-openchannel-og-message .sendbird-openchannel-og-message__bottom .sendbird-openchannel-og-message__bottom__og-tag .sendbird-openchannel-og-message__bottom__og-tag__thumbnail .sendbird-openchannel-og-message__bottom__og-tag__thumbnail__image{border-radius:8px;width:100%;min-width:200px;max-width:336px}.sendbird-openchannel-og-message .sendbird-openchannel-og-message__bottom .sendbird-openchannel-og-message__bottom__og-tag .sendbird-openchannel-og-message__bottom__og-tag__thumbnail .sendbird-openchannel-og-message__bottom__og-tag__thumbnail__image--placeholder{border-radius:8px;width:100%;min-width:200px;max-width:336px}.sendbird-openchannel-og-message .sendbird-openchannel-og-message__top__right__tail{position:relative;left:64px;top:2px}.sendbird-openchannel-og-message--word{display:inline;margin:0px 2px;word-break:break-all}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/OpenchannelThumbnailMessage/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-openchannel-thumbnail-message{position:relative;display:flex;flex-direction:row}.sendbird-theme--light .sendbird-openchannel-thumbnail-message:hover{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-openchannel-thumbnail-message:hover{background-color:var(--sendbird-dark-background-400)}.sendbird-openchannel-thumbnail-message:hover .sendbird-openchannel-thumbnail-message__context-menu{display:block}.sendbird-theme--light .sendbird-openchannel-thumbnail-message:hover .sendbird-openchannel-thumbnail-message__context-menu .sendbird-openchannel-thumbnail-message__context-menu--icon{background-color:var(--sendbird-light-background-200)}.sendbird-theme--dark .sendbird-openchannel-thumbnail-message:hover .sendbird-openchannel-thumbnail-message__context-menu .sendbird-openchannel-thumbnail-message__context-menu--icon{background-color:var(--sendbird-dark-background-500)}.sendbird-theme--light .sendbird-openchannel-thumbnail-message:hover .sendbird-openchannel-thumbnail-message__context-menu .sendbird-openchannel-thumbnail-message__context-menu--icon:hover{background-color:var(--sendbird-light-primary-100)}.sendbird-theme--dark .sendbird-openchannel-thumbnail-message:hover .sendbird-openchannel-thumbnail-message__context-menu .sendbird-openchannel-thumbnail-message__context-menu--icon:hover{background-color:var(--sendbird-dark-background-700)}.sendbird-openchannel-thumbnail-message .sendbird-openchannel-thumbnail-message__left{position:relative;display:flex;width:52px;min-width:52px}.sendbird-openchannel-thumbnail-message .sendbird-openchannel-thumbnail-message__left .sendbird-openchannel-thumbnail-message__left__avatar{position:absolute;display:inline;margin-top:8px;margin-left:28px}.sendbird-openchannel-thumbnail-message .sendbird-openchannel-thumbnail-message__right{position:relative;display:flex;flex-direction:column;margin-top:8px;margin-bottom:8px;margin-left:12px;width:calc(100% - 64px)}.sendbird-openchannel-thumbnail-message .sendbird-openchannel-thumbnail-message__right .sendbird-openchannel-thumbnail-message__right__title{position:relative;display:inline;margin-bottom:4px}.sendbird-openchannel-thumbnail-message .sendbird-openchannel-thumbnail-message__right .sendbird-openchannel-thumbnail-message__right__title .sendbird-openchannel-thumbnail-message__right__title__sender-name{position:relative;display:inline;margin-right:4px}.sendbird-openchannel-thumbnail-message .sendbird-openchannel-thumbnail-message__right .sendbird-openchannel-thumbnail-message__right__title .sendbird-openchannel-thumbnail-message__right__title__sent-at{position:relative;display:inline}.sendbird-openchannel-thumbnail-message .sendbird-openchannel-thumbnail-message__right .sendbird-openchannel-thumbnail-message__right__body{position:relative;display:flex;border-radius:8px}.sendbird-openchannel-thumbnail-message .sendbird-openchannel-thumbnail-message__right .sendbird-openchannel-thumbnail-message__right__body:hover .sendbird-openchannel-thumbnail-message__right__body__wrap .sendbird-openchannel-thumbnail-message__right__body__wrap__overlay{opacity:1}.sendbird-openchannel-thumbnail-message .sendbird-openchannel-thumbnail-message__right .sendbird-openchannel-thumbnail-message__right__body .sendbird-openchannel-thumbnail-message__right__body__wrap{position:relative;box-sizing:content-box}.sendbird-openchannel-thumbnail-message .sendbird-openchannel-thumbnail-message__right .sendbird-openchannel-thumbnail-message__right__body .sendbird-openchannel-thumbnail-message__right__body__wrap .sendbird-openchannel-thumbnail-message__right__body__wrap__overlay{position:absolute;opacity:0;width:100%;height:100%;max-width:360px;top:0px;left:0px;border-radius:8px;cursor:pointer}.sendbird-theme--light .sendbird-openchannel-thumbnail-message .sendbird-openchannel-thumbnail-message__right .sendbird-openchannel-thumbnail-message__right__body .sendbird-openchannel-thumbnail-message__right__body__wrap .sendbird-openchannel-thumbnail-message__right__body__wrap__overlay{background-color:var(--sendbird-light-overlay-02)}.sendbird-theme--dark .sendbird-openchannel-thumbnail-message .sendbird-openchannel-thumbnail-message__right .sendbird-openchannel-thumbnail-message__right__body .sendbird-openchannel-thumbnail-message__right__body__wrap .sendbird-openchannel-thumbnail-message__right__body__wrap__overlay{background-color:var(--sendbird-dark-overlay-02)}.sendbird-openchannel-thumbnail-message .sendbird-openchannel-thumbnail-message__right .sendbird-openchannel-thumbnail-message__right__body .sendbird-openchannel-thumbnail-message__right__body__wrap .sendbird-openchannel-thumbnail-message__right__body__wrap__video{max-width:360px;max-height:360px}.sendbird-openchannel-thumbnail-message .sendbird-openchannel-thumbnail-message__right .sendbird-openchannel-thumbnail-message__right__body .sendbird-openchannel-thumbnail-message__right__body__wrap .sendbird-openchannel-thumbnail-message__right__body__wrap__video:hover{cursor:pointer}.sendbird-openchannel-thumbnail-message .sendbird-openchannel-thumbnail-message__right .sendbird-openchannel-thumbnail-message__right__body .sendbird-openchannel-thumbnail-message__right__body__wrap .sendbird-openchannel-thumbnail-message__right__body__wrap__video .sendbird-openchannel-thumbnail-message__right__body__wrap__video__video{max-width:360px;max-height:360px;border-radius:8px}.sendbird-openchannel-thumbnail-message .sendbird-openchannel-thumbnail-message__right .sendbird-openchannel-thumbnail-message__right__body .sendbird-openchannel-thumbnail-message__right__body__wrap .sendbird-openchannel-thumbnail-message__right__body__wrap__video .sendbird-openchannel-thumbnail-message__right__body__wrap__video__icon{position:absolute;top:calc(50% - 28px);left:calc(50% - 28px)}.sendbird-openchannel-thumbnail-message .sendbird-openchannel-thumbnail-message__right .sendbird-openchannel-thumbnail-message__right__body .sendbird-openchannel-thumbnail-message__right__body__wrap .sendbird-openchannel-thumbnail-message__right__body__wrap__video--icon{padding:107px 152px 107px 152px;border-radius:8px}.sendbird-theme--light .sendbird-openchannel-thumbnail-message .sendbird-openchannel-thumbnail-message__right .sendbird-openchannel-thumbnail-message__right__body .sendbird-openchannel-thumbnail-message__right__body__wrap .sendbird-openchannel-thumbnail-message__right__body__wrap__video--icon{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-openchannel-thumbnail-message .sendbird-openchannel-thumbnail-message__right .sendbird-openchannel-thumbnail-message__right__body .sendbird-openchannel-thumbnail-message__right__body__wrap .sendbird-openchannel-thumbnail-message__right__body__wrap__video--icon{background-color:var(--sendbird-dark-background-500)}.sendbird-openchannel-thumbnail-message .sendbird-openchannel-thumbnail-message__right .sendbird-openchannel-thumbnail-message__right__body .sendbird-openchannel-thumbnail-message__right__body__wrap .sendbird-openchannel-thumbnail-message__right__body__wrap__image{border-radius:8px}.sendbird-openchannel-thumbnail-message .sendbird-openchannel-thumbnail-message__right .sendbird-openchannel-thumbnail-message__right__body .sendbird-openchannel-thumbnail-message__right__body__wrap .sendbird-openchannel-thumbnail-message__right__body__wrap__image--icon{padding:107px 152px 107px 152px;border-radius:8px}.sendbird-theme--light .sendbird-openchannel-thumbnail-message .sendbird-openchannel-thumbnail-message__right .sendbird-openchannel-thumbnail-message__right__body .sendbird-openchannel-thumbnail-message__right__body__wrap .sendbird-openchannel-thumbnail-message__right__body__wrap__image--icon{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-openchannel-thumbnail-message .sendbird-openchannel-thumbnail-message__right .sendbird-openchannel-thumbnail-message__right__body .sendbird-openchannel-thumbnail-message__right__body__wrap .sendbird-openchannel-thumbnail-message__right__body__wrap__image--icon{background-color:var(--sendbird-dark-background-500)}.sendbird-openchannel-thumbnail-message .sendbird-openchannel-thumbnail-message__right .sendbird-openchannel-thumbnail-message__right__body .sendbird-openchannel-thumbnail-message__right__body__wrap .sendbird-openchannel-thumbnail-message__right__body__wrap__unknown{padding:107px 152px 107px 152px;border-radius:8px}.sendbird-theme--light .sendbird-openchannel-thumbnail-message .sendbird-openchannel-thumbnail-message__right .sendbird-openchannel-thumbnail-message__right__body .sendbird-openchannel-thumbnail-message__right__body__wrap .sendbird-openchannel-thumbnail-message__right__body__wrap__unknown{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-openchannel-thumbnail-message .sendbird-openchannel-thumbnail-message__right .sendbird-openchannel-thumbnail-message__right__body .sendbird-openchannel-thumbnail-message__right__body__wrap .sendbird-openchannel-thumbnail-message__right__body__wrap__unknown{background-color:var(--sendbird-dark-background-500)}.sendbird-openchannel-thumbnail-message .sendbird-openchannel-thumbnail-message__right .sendbird-openchannel-thumbnail-message__right__tail{position:relative;top:2px}.sendbird-openchannel-thumbnail-message .sendbird-openchannel-thumbnail-message__context-menu{position:absolute;display:none;top:8px;right:16px}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/OpenchannelUserMessage/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-openchannel-user-message{position:relative;display:flex;flex-direction:row;width:100%}.sendbird-theme--light .sendbird-openchannel-user-message:hover{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-openchannel-user-message:hover{background-color:var(--sendbird-dark-background-400)}.sendbird-openchannel-user-message:hover .sendbird-openchannel-user-message__context-menu{display:block}.sendbird-openchannel-user-message .sendbird-openchannel-user-message__left{position:relative;display:flex;width:52px;min-width:52px}.sendbird-openchannel-user-message .sendbird-openchannel-user-message__left .sendbird-openchannel-user-message__left__avatar{position:relative;display:flex;margin-top:8px;margin-left:24px}.sendbird-openchannel-user-message .sendbird-openchannel-user-message__right{position:relative;display:flex;flex-direction:column;width:100%;margin:8px 24px 8px 12px}.sendbird-openchannel-user-message .sendbird-openchannel-user-message__right .sendbird-openchannel-user-message__right__top{position:relative;display:flex;margin-bottom:2px}.sendbird-openchannel-user-message .sendbird-openchannel-user-message__right .sendbird-openchannel-user-message__right__top .sendbird-openchannel-user-message__right__top__sender-name{position:relative;display:flex}.sendbird-openchannel-user-message .sendbird-openchannel-user-message__right .sendbird-openchannel-user-message__right__top .sendbird-openchannel-user-message__right__top__sent-at{position:relative;display:flex;margin-left:4px}.sendbird-openchannel-user-message .sendbird-openchannel-user-message__right .sendbird-openchannel-user-message__right__bottom{position:relative;display:flex;width:100%}.sendbird-openchannel-user-message .sendbird-openchannel-user-message__right .sendbird-openchannel-user-message__right__bottom .sendbird-openchannel-user-message__right__bottom__message{position:relative;word-break:break-all;white-space:pre-line}.sendbird-openchannel-user-message .sendbird-openchannel-user-message__right .sendbird-openchannel-user-message__right__tail{position:relative;top:2px}.sendbird-openchannel-user-message .sendbird-openchannel-user-message__context-menu{position:absolute;right:16px;display:none}.sendbird-theme--light .sendbird-openchannel-user-message .sendbird-openchannel-user-message__context-menu .sendbird-openchannel-user-message__context-menu--icon{background-color:var(--sendbird-light-background-200)}.sendbird-theme--dark .sendbird-openchannel-user-message .sendbird-openchannel-user-message__context-menu .sendbird-openchannel-user-message__context-menu--icon{background-color:var(--sendbird-dark-background-500)}.sendbird-theme--light .sendbird-openchannel-user-message .sendbird-openchannel-user-message__context-menu .sendbird-openchannel-user-message__context-menu--icon:hover{background-color:var(--sendbird-light-primary-100)}.sendbird-theme--dark .sendbird-openchannel-user-message .sendbird-openchannel-user-message__context-menu .sendbird-openchannel-user-message__context-menu--icon:hover{background-color:var(--sendbird-dark-background-700)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/PlaceHolder/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-place-holder{position:relative;display:flex;justify-content:center;align-items:center;width:100%;height:100%}.sendbird-place-holder .sendbird-place-holder__body{display:flex;flex-direction:column;height:104px;align-items:center}.sendbird-place-holder .sendbird-place-holder__body .sendbird-place-holder__body__icon{margin-bottom:10px}.sendbird-place-holder .sendbird-place-holder__body .sendbird-place-holder__body__text{margin-top:10px}.sendbird-place-holder .sendbird-place-holder__body__reconnect{margin-top:18px;display:flex;flex-direction:row;cursor:pointer}.sendbird-place-holder .sendbird-place-holder__body__reconnect .sendbird-place-holder__body__reconnect__icon{margin-right:4px}.sendbird-place-holder .sendbird-place-holder__body--align-top{position:absolute;top:24px;display:flex;width:100%;flex-direction:column;justify-content:center}.sendbird-place-holder .sendbird-place-holder__body--align-top .sendbird-place-holder__body--align-top__text{display:flex;flex-direction:row;justify-content:center;padding-left:16px;padding-right:16px}.sendbird-place-holder .sendbird-place-holder__body--align-top .sendbird-place-holder__body--align-top__text .sendbird-place-holder__body--align-top__text__search-in{display:flex;min-width:60px;margin-right:2px}.sendbird-place-holder .sendbird-place-holder__body--align-top .sendbird-place-holder__body--align-top__text .sendbird-place-holder__body--align-top__text__channel-name{display:block;max-width:calc(100% - 62px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sendbird-place-holder .sendbird-place-holder__body--align-top .sendbird-place-hlder__body--align-top__searching,.sendbird-place-holder .sendbird-place-holder__body--align-top .sendbird-place-hlder__body--align-top__no-result{display:flex;justify-content:center}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/ProgressBar/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-progress-bar,.sendbird-progress-bar__fill{display:inline-flex;width:100%;height:100%}.sendbird-progress-bar{justify-content:flex-start}.sendbird-theme--light .sendbird-progress-bar__fill{background-color:var(--sendbird-light-onlight-03)}.sendbird-theme--dark .sendbird-progress-bar__fill{background-color:var(--sendbird-dark-ondark-03)}.sendbird-theme--light .progress-bar-color--primary{background-color:var(--sendbird-light-primary-300)}.sendbird-theme--dark .progress-bar-color--primary{background-color:var(--sendbird-dark-primary-200)}.sendbird-theme--light .sendbird-progress-bar.progress-bar--disabled,.sendbird-theme--light .progress-bar-color--gray{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-progress-bar.progress-bar--disabled,.sendbird-theme--dark .progress-bar-color--gray{background-color:var(--sendbird-dark-background-500)}.sendbird-progress-bar.progress-bar--disabled .sendbird-progress-bar__fill{background-color:rgba(0,0,0,0)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/QuoteMessage/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-quote-message{position:relative;display:inline-flex;box-sizing:border-box;flex-direction:column;width:100%;max-width:400px}.sendbird-quote-message.incoming{align-items:flex-start}.sendbird-quote-message.outgoing{align-items:flex-end}.sendbird-quote-message .sendbird-quote-message__replied-to{position:relative;display:inline-flex;flex-direction:row;align-items:center;height:16px;padding:0px 12px;width:100%}.sendbird-quote-message .sendbird-quote-message__replied-to .sendbird-quote-message__replied-to__icon{position:relative;margin-bottom:4px;margin-right:4px}.sendbird-quote-message .sendbird-quote-message__replied-to .sendbird-quote-message__replied-to__text{position:relative;max-width:360px;overflow:hidden;overflow-x:hidden;white-space:nowrap;word-break:keep-all;text-overflow:ellipsis;font-size:12px;display:inline-flex;flex-direction:row;align-items:center}.sendbird-quote-message .sendbird-quote-message__replied-to .sendbird-quote-message__replied-to__text .sendbird-quote-message__replied-to__text__nickname{display:inline-block;max-width:148px;overflow:hidden;text-overflow:ellipsis}.sendbird-quote-message .sendbird-quote-message__replied-to .sendbird-quote-message__replied-to__text .sendbird-quote-message__replied-to__text__text{margin:0px 4px}.sendbird-quote-message .sendbird-quote-message__replied-message{position:relative;display:inline-flex}.sendbird-quote-message .sendbird-quote-message__replied-message .sendbird-quote-message__replied-message__text-message{position:relative;white-space:pre-wrap;word-break:break-all;font-size:12px;padding:8px 12px 16px 12px;border-radius:16px;opacity:.5}.sendbird-theme--light .sendbird-quote-message .sendbird-quote-message__replied-message .sendbird-quote-message__replied-message__text-message{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-quote-message .sendbird-quote-message__replied-message .sendbird-quote-message__replied-message__text-message{background-color:var(--sendbird-dark-background-500)}.sendbird-quote-message .sendbird-quote-message__replied-message .sendbird-quote-message__replied-message__text-message .sendbird-quote-message__replied-message__text-message__word{position:relative;display:inline-flex;max-height:30px;overflow:hidden;text-overflow:ellipsis}.sendbird-quote-message .sendbird-quote-message__replied-message .sendbird-quote-message__replied-message__thumbnail-message{position:relative;width:144px;height:108px;border-radius:6.4px;overflow:hidden}.sendbird-theme--light .sendbird-quote-message .sendbird-quote-message__replied-message .sendbird-quote-message__replied-message__thumbnail-message{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-quote-message .sendbird-quote-message__replied-message .sendbird-quote-message__replied-message__thumbnail-message{background-color:var(--sendbird-dark-background-500)}.sendbird-quote-message .sendbird-quote-message__replied-message .sendbird-quote-message__replied-message__thumbnail-message .sendbird-quote-message__replied-message__thumbnail-message__video,.sendbird-quote-message .sendbird-quote-message__replied-message .sendbird-quote-message__replied-message__thumbnail-message .sendbird-quote-message__replied-message__thumbnail-message__image{position:absolute;top:0px;display:inline-flex;width:100%;height:100%;opacity:.5}.sendbird-quote-message .sendbird-quote-message__replied-message .sendbird-quote-message__replied-message__thumbnail-message .sendbird-quote-message__replied-message__thumbnail-message__placeholder{position:absolute;display:inline-flex;width:100%;height:100%;justify-content:center;align-items:center}.sendbird-quote-message .sendbird-quote-message__replied-message .sendbird-quote-message__replied-message__thumbnail-message .sendbird-quote-message__replied-message__thumbnail-message__placeholder .sendbird-quote-message__replied-message__thumbnail-message__placeholder__icon{display:inline-flex;justify-content:center;align-items:center;width:22px;height:22px;border-radius:50%}.sendbird-quote-message .sendbird-quote-message__replied-message .sendbird-quote-message__replied-message__thumbnail-message .sendbird-quote-message__replied-message__thumbnail-message__cover{position:absolute;display:inline-flex;width:100%;height:100%;justify-content:center;align-items:center;top:0px}.sendbird-theme--light .sendbird-quote-message .sendbird-quote-message__replied-message .sendbird-quote-message__replied-message__thumbnail-message .sendbird-quote-message__replied-message__thumbnail-message__cover{background-color:rgba(255,255,255,.4)}.sendbird-theme--dark .sendbird-quote-message .sendbird-quote-message__replied-message .sendbird-quote-message__replied-message__thumbnail-message .sendbird-quote-message__replied-message__thumbnail-message__cover{background-color:rgba(255,255,255,.4)}.sendbird-quote-message .sendbird-quote-message__replied-message .sendbird-quote-message__replied-message__thumbnail-message .sendbird-quote-message__replied-message__thumbnail-message__cover .sendbird-quote-message__replied-message__thumbnail-message__cover__icon{position:relative;display:inline-flex;justify-content:center;align-items:center;width:22px;height:22px;border-radius:50%}.sendbird-theme--light .sendbird-quote-message .sendbird-quote-message__replied-message .sendbird-quote-message__replied-message__thumbnail-message .sendbird-quote-message__replied-message__thumbnail-message__cover .sendbird-quote-message__replied-message__thumbnail-message__cover__icon{background-color:#fff}.sendbird-theme--dark .sendbird-quote-message .sendbird-quote-message__replied-message .sendbird-quote-message__replied-message__thumbnail-message .sendbird-quote-message__replied-message__thumbnail-message__cover .sendbird-quote-message__replied-message__thumbnail-message__cover__icon{background-color:#fff}.sendbird-quote-message .sendbird-quote-message__replied-message .sendbird-quote-message__replied-message__file-message{position:relative;display:inline-flex;flex-direction:row;font-size:12px;padding:8px 12px 16px 12px;border-radius:16px;opacity:.5}.sendbird-theme--light .sendbird-quote-message .sendbird-quote-message__replied-message .sendbird-quote-message__replied-message__file-message{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-quote-message .sendbird-quote-message__replied-message .sendbird-quote-message__replied-message__file-message{background-color:var(--sendbird-dark-background-500)}.sendbird-quote-message .sendbird-quote-message__replied-message .sendbird-quote-message__replied-message__file-message .sendbird-quote-message__replied-message__file-message__type-icon{margin-right:2px}.sendbird-quote-message:hover{cursor:pointer}.sendbird-quote-message.unavailable:hover{cursor:default}.sendbird-message-content.outgoing .sendbird-quote-message__replied-to{flex-direction:row-reverse;padding-right:0px}.sendbird-message-content.incoming .sendbird-quote-message__replied-to{padding-left:0px}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/QuoteMessageInput/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-quote_message_input{position:relative;padding:16px 80px 16px 40px;width:100%;height:76px;display:flex;flex-direction:row;box-sizing:border-box}.sendbird-quote_message_input .sendbird-quote_message_input__avatar{width:44px;min-width:44px;height:44px;min-height:44px;position:relative;border-radius:8px;display:flex;justify-content:center;align-items:center}.sendbird-theme--light .sendbird-quote_message_input .sendbird-quote_message_input__avatar{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-quote_message_input .sendbird-quote_message_input__avatar{background-color:var(--sendbird-dark-background-500)}.sendbird-quote_message_input .sendbird-quote_message_input__body{position:absolute;display:flex;flex-direction:column;align-items:flex-start;overflow:hidden}.sendbird-quote_message_input .sendbird-quote_message_input__body .sendbird-quote_message_input__body__sender-name{position:relative;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box;margin-bottom:8px}.sendbird-quote_message_input .sendbird-quote_message_input__body .sendbird-quote_message_input__body__message-content{position:relative;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box}.sendbird-quote_message_input .sendbird-quote_message_input__close-button{position:absolute;top:26px;right:40px}.sendbird-quote_message_input .sendbird-quote_message_input__close-button:hover{cursor:pointer}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/ReactionBadge/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-reaction-badge{display:inline-block;border-radius:15px;width:50px;height:24px}.sendbird-theme--light .sendbird-reaction-badge{background-color:var(--sendbird-light-background-100);border:solid 1px var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-reaction-badge{background-color:var(--sendbird-dark-background-500);border:solid 1px var(--sendbird-dark-background-500)}.sendbird-reaction-badge:hover{cursor:pointer}.sendbird-theme--light .sendbird-reaction-badge:hover{border:solid 1px var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-reaction-badge:hover{border:solid 1px var(--sendbird-dark-primary-200)}.sendbird-reaction-badge--is-add{display:inline-block;border-radius:15px;width:36px;height:24px}.sendbird-theme--light .sendbird-reaction-badge--is-add{background-color:var(--sendbird-light-background-100);border:solid 1px var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-reaction-badge--is-add{background-color:var(--sendbird-dark-background-500);border:solid 1px var(--sendbird-dark-background-500)}.sendbird-reaction-badge--is-add:hover{cursor:pointer}.sendbird-theme--light .sendbird-reaction-badge--is-add:hover{border:solid 1px var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-reaction-badge--is-add:hover{border:solid 1px var(--sendbird-dark-primary-200)}.sendbird-reaction-badge--is-add .sendbird-reaction-badge__inner .sendbird-reaction-badge__inner__icon{left:8px}.sendbird-reaction-badge--selected{display:inline-block;border-radius:15px;width:50px;height:24px}.sendbird-theme--light .sendbird-reaction-badge--selected{background-color:var(--sendbird-light-primary-100);border:solid 1px var(--sendbird-light-primary-100)}.sendbird-theme--dark .sendbird-reaction-badge--selected{background-color:var(--sendbird-dark-primary-400);border:solid 1px var(--sendbird-dark-primary-400)}.sendbird-reaction-badge--selected:hover{cursor:pointer}.sendbird-theme--light .sendbird-reaction-badge--selected:hover{border:solid 1px var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-reaction-badge--selected:hover{border:solid 1px var(--sendbird-dark-primary-200)}.sendbird-reaction-badge__inner{position:relative;display:flex;height:24px;flex-direction:row;align-items:center;justify-content:center;padding-left:20px;padding-right:4px}.sendbird-reaction-badge__inner .sendbird-reaction-badge__inner__icon{position:absolute;top:2px;left:4px}.sendbird-reaction-badge__inner .sendbird-reaction-badge__inner__count{margin-left:4px}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/ReactionButton/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-reaction-button{border-radius:8px;display:inline-block;border:solid 1px rgba(0,0,0,0);box-sizing:border-box;cursor:pointer}.sendbird-theme--light .sendbird-reaction-button:hover{border:solid 1px var(--sendbird-light-background-100);background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-reaction-button:hover{border:solid 1px var(--sendbird-dark-background-400);background-color:var(--sendbird-dark-background-400)}.sendbird-reaction-button__inner{margin:3px}.sendbird-reaction-button--selected{cursor:pointer;border-radius:8px;display:inline-block;box-sizing:border-box}.sendbird-theme--light .sendbird-reaction-button--selected{border:solid 1px var(--sendbird-light-primary-100);background-color:var(--sendbird-light-primary-100)}.sendbird-theme--dark .sendbird-reaction-button--selected{border:solid 1px var(--sendbird-dark-primary-400);background-color:var(--sendbird-dark-primary-400)}.sendbird-reaction-button--selected:hover{border:solid 1px var(--sendbird-selected-reaction-button-border-hover)}.sendbird-reaction-button--selected__inner{margin:3px}.sendbird-reaction-button--selected.sendbird-reactions--pressed{display:block !important}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/SortByRow/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-sort-by-row{display:flex;justify-content:flex-start;align-items:center}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/TemplateMessageItemBody/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-template-message-item-body{position:relative;display:inline-block;box-sizing:content-box;background-color:rgba(0,0,0,0);white-space:pre-line;word-break:break-word}.sendbird-template-message-item-body__fallback_message{position:relative;display:inline-block;box-sizing:content-box;padding:8px 12px;border-radius:16px;white-space:pre-line;word-break:break-word}.sendbird-theme--light .sendbird-template-message-item-body__fallback_message.incoming{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-template-message-item-body__fallback_message.incoming{background-color:var(--sendbird-dark-background-500)}.sendbird-theme--light .sendbird-template-message-item-body__fallback_message.outgoing{background-color:var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-template-message-item-body__fallback_message.outgoing{background-color:var(--sendbird-dark-primary-200)}.sendbird-theme--light .sendbird-template-message-item-body__fallback_message.mouse-hover.incoming,.sendbird-theme--light .sendbird-template-message-item-body__fallback_message:hover.incoming{background-color:var(--sendbird-light-background-200)}.sendbird-theme--dark .sendbird-template-message-item-body__fallback_message.mouse-hover.incoming,.sendbird-theme--dark .sendbird-template-message-item-body__fallback_message:hover.incoming{background-color:var(--sendbird-dark-background-400)}.sendbird-theme--light .sendbird-template-message-item-body__fallback_message.mouse-hover.outgoing,.sendbird-theme--light .sendbird-template-message-item-body__fallback_message:hover.outgoing{background-color:var(--sendbird-light-primary-400)}.sendbird-theme--dark .sendbird-template-message-item-body__fallback_message.mouse-hover.outgoing,.sendbird-theme--dark .sendbird-template-message-item-body__fallback_message:hover.outgoing{background-color:var(--sendbird-dark-primary-300)}.sendbird-template-message-item-body__fallback_message .sendbird-template-message-item-body__fallback_message__header{display:block}.sendbird-template-message-item-body__fallback_message .sendbird-template-message-item-body__fallback_message__description{display:block}.sendbird-template-loading-message-item-body{position:relative;display:inline-flex;justify-content:center;align-items:center;box-sizing:content-box;border-radius:16px;height:274px;width:100%}.sendbird-theme--light .sendbird-template-loading-message-item-body.incoming{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-template-loading-message-item-body.incoming{background-color:var(--sendbird-dark-background-500)}.sendbird-theme--light .sendbird-template-loading-message-item-body.outgoing{background-color:var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-template-loading-message-item-body.outgoing{background-color:var(--sendbird-dark-primary-200)}.sendbird-theme--light .sendbird-template-loading-message-item-body.mouse-hover.incoming,.sendbird-theme--light .sendbird-template-loading-message-item-body:hover.incoming{background-color:var(--sendbird-light-background-200)}.sendbird-theme--dark .sendbird-template-loading-message-item-body.mouse-hover.incoming,.sendbird-theme--dark .sendbird-template-loading-message-item-body:hover.incoming{background-color:var(--sendbird-dark-background-400)}.sendbird-theme--light .sendbird-template-loading-message-item-body.mouse-hover.outgoing,.sendbird-theme--light .sendbird-template-loading-message-item-body:hover.outgoing{background-color:var(--sendbird-light-primary-400)}.sendbird-theme--dark .sendbird-template-loading-message-item-body.mouse-hover.outgoing,.sendbird-theme--dark .sendbird-template-loading-message-item-body:hover.outgoing{background-color:var(--sendbird-dark-primary-300)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/TextButton/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-textbutton{text-decoration:underline;cursor:pointer;display:inline-block}.sendbird-textbutton--not-underline{text-decoration:none;cursor:pointer}.sendbird-textbutton--disabled{cursor:not-allowed}.sendbird-theme--light .sendbird-textbutton--disabled{color:var(--sendbird-light-onlight-03)}.sendbird-theme--dark .sendbird-textbutton--disabled{color:var(--sendbird-dark-ondark-03)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/TextMessageItemBody/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-text-message-item-body{position:relative;display:inline-block;box-sizing:content-box;padding:8px 12px;border-radius:16px;white-space:pre-line;word-break:break-word}.sendbird-text-message-item-body.reactions{border-radius:16px 16px 0px 0px}.sendbird-theme--light .sendbird-text-message-item-body.incoming{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-text-message-item-body.incoming{background-color:var(--sendbird-dark-background-500)}.sendbird-theme--light .sendbird-text-message-item-body.outgoing{background-color:var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-text-message-item-body.outgoing{background-color:var(--sendbird-dark-primary-200)}.sendbird-theme--light .sendbird-text-message-item-body.mouse-hover.incoming,.sendbird-theme--light .sendbird-text-message-item-body:hover.incoming{background-color:var(--sendbird-light-background-200)}.sendbird-theme--dark .sendbird-text-message-item-body.mouse-hover.incoming,.sendbird-theme--dark .sendbird-text-message-item-body:hover.incoming{background-color:var(--sendbird-dark-background-400)}.sendbird-theme--light .sendbird-text-message-item-body.mouse-hover.outgoing,.sendbird-theme--light .sendbird-text-message-item-body:hover.outgoing{background-color:var(--sendbird-light-primary-400)}.sendbird-theme--dark .sendbird-text-message-item-body.mouse-hover.outgoing,.sendbird-theme--dark .sendbird-text-message-item-body:hover.outgoing{background-color:var(--sendbird-dark-primary-300)}.sendbird-text-message-item-body .sendbird-text-message-item-body__text-bubble__message{display:inline;margin:0px 2px}div.sendbird-text-message-item-body{margin:0px}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/ThreadReplies/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-ui-thread-replies{position:relative;width:fit-content;height:20px;min-height:20px;display:inline-flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:4px 10px;gap:4px;border-radius:16px;flex:none;order:0;flex-grow:0}.sendbird-theme--light .sendbird-ui-thread-replies{background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-ui-thread-replies{background-color:var(--sendbird-dark-background-600)}.sendbird-ui-thread-replies:hover{cursor:pointer}.sendbird-theme--light .sendbird-ui-thread-replies:hover{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-ui-thread-replies:hover{background-color:var(--sendbird-dark-background-500)}.sendbird-ui-thread-replies__user-profiles{position:relative;width:100%;height:100%;gap:4px;display:inline-flex;flex-direction:row}.sendbird-ui-thread-replies__user-profiles__avatar{position:relative;width:20px;height:20px;display:inline-flex;justify-content:center;align-items:center}.sendbird-ui-thread-replies__user-profiles__avatar__image{position:absolute;top:0px;left:0px;width:20px;height:20px}.sendbird-ui-thread-replies__user-profiles__avatar__cover{position:absolute;top:0px;left:0px;width:20px;height:20px;border-radius:50%;background-color:var(--sendbird-light-overlay-01)}.sendbird-ui-thread-replies__user-profiles__avatar__plus{position:absolute;top:0px;left:0px;width:20px;height:20px;display:inline-flex;justify-content:center;align-items:center}.sendbird-ui-thread-replies__reply-counts{position:relative;min-width:fit-content;height:12px;display:inline-flex;flex-direction:row;justify-content:flex-start;align-items:center;white-space:nowrap}.sendbird-ui-thread-replies__icon{position:relative;display:inline-flex}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/ThumbnailMessageItemBody/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-thumbnail-message-item-body{position:relative;display:block;box-sizing:border-box;overflow:hidden;width:100%;min-width:360px;max-width:400px;height:270px;border-radius:16px}.sendbird--mobile-mode .sendbird-thumbnail-message-item-body{min-width:160px}.sendbird-thumbnail-message-item-body.reactions{border-radius:16px 16px 0px 0px}.sendbird-theme--light .sendbird-thumbnail-message-item-body{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-thumbnail-message-item-body{background-color:var(--sendbird-dark-background-500)}.sendbird-theme--light .sendbird-thumbnail-message-item-body.mouse-hover,.sendbird-theme--light .sendbird-thumbnail-message-item-body:hover{background-color:var(--sendbird-light-background-200)}.sendbird-theme--dark .sendbird-thumbnail-message-item-body.mouse-hover,.sendbird-theme--dark .sendbird-thumbnail-message-item-body:hover{background-color:var(--sendbird-dark-background-400)}.sendbird-thumbnail-message-item-body .sendbird-thumbnail-message-item-body__thumbnail{position:absolute;border-radius:16px}.sendbird-thumbnail-message-item-body .sendbird-thumbnail-message-item-body__placeholder{position:absolute;width:100%;height:270px;display:flex;justify-content:center;align-items:center}.sendbird-thumbnail-message-item-body .sendbird-thumbnail-message-item-body__placeholder .sendbird-thumbnail-message-item-body__placeholder__icon{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:50%;background-color:var(--sendbird-light-background-50)}.sendbird-thumbnail-message-item-body .sendbird-thumbnail-message-item-body__image-cover{position:absolute;top:0px;display:none;width:100%;height:270px;border-radius:16px;background-color:var(--sendbird-light-overlay-01)}.sendbird-thumbnail-message-item-body .sendbird-thumbnail-message-item-body__video{position:absolute;width:100%;height:270px;border-radius:16px}.sendbird-thumbnail-message-item-body .sendbird-thumbnail-message-item-body__icon-wrapper{position:absolute;width:100%;height:270px;display:flex;align-items:center;justify-content:center}.sendbird-thumbnail-message-item-body .sendbird-thumbnail-message-item-body__icon-wrapper .sendbird-thumbnail-message-item-body__icon-wrapper__icon{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:50%;background-color:var(--sendbird-light-ondark-01)}.sendbird-thumbnail-message-item-body:hover{cursor:pointer}.sendbird-thumbnail-message-item-body:hover .sendbird-thumbnail-message-item-body__image-cover{display:inline-flex}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/Toggle/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-input-toggle-button{position:relative;display:inline-flex;align-items:center;box-sizing:border-box;cursor:pointer}.sendbird-theme--light .sendbird-input-toggle-button--checked{background-color:var(--sendbird-light-primary-300);border:1px solid var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-input-toggle-button--checked{background-color:var(--sendbird-dark-primary-200);border:1px solid var(--sendbird-dark-primary-200)}.sendbird-theme--light .sendbird-input-toggle-button--unchecked{background-color:var(--sendbird-light-background-300);border:1px solid var(--sendbird-light-background-300)}.sendbird-theme--dark .sendbird-input-toggle-button--unchecked{background-color:var(--sendbird-dark-background-400);border:1px solid var(--sendbird-dark-background-400)}.sendbird-input-toggle-button--disabled{cursor:not-allowed}.sendbird-theme--light .sendbird-input-toggle-button--disabled{background-color:var(--sendbird-light-background-200);border:1px solid var(--sendbird-light-background-200)}.sendbird-theme--dark .sendbird-input-toggle-button--disabled{background-color:var(--sendbird-dark-background-400);border:1px solid var(--sendbird-dark-background-400)}.sendbird-input-toggle-button input{position:absolute;display:none}.sendbird-input-toggle-button__inner-dot{position:absolute;border-radius:50%;animation-iteration-count:1}.sendbird-theme--light .sendbird-input-toggle-button__inner-dot{background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-input-toggle-button__inner-dot{background-color:var(--sendbird-dark-background-600)}@keyframes sendbirdMoveToRight{0%{right:60%}100%{right:10%}}@keyframes sendbirdMoveToLeft{0%{right:10%}100%{right:60%}}.sendbird-input-toggle-button--turned-on .sendbird-input-toggle-button__inner-dot{animation-name:sendbirdMoveToRight}.sendbird-input-toggle-button--turned-off .sendbird-input-toggle-button__inner-dot{animation-name:sendbirdMoveToLeft}.sendbird-input-toggle-button--unchecked .sendbird-input-toggle-button__inner-dot{right:60%}.sendbird-input-toggle-button--checked .sendbird-input-toggle-button__inner-dot{right:10%}.sendbird-input-toggle-button--reversed .sendbird-input-toggle-button--turned-on .sendbird-input-toggle-button__inner-dot{animation-name:sendbirdMoveToLeft}.sendbird-input-toggle-button--reversed .sendbird-input-toggle-button--turned-off .sendbird-input-toggle-button__inner-dot{animation-name:sendbirdMoveToRight}.sendbird-input-toggle-button--reversed.sendbird-input-toggle-button--unchecked .sendbird-input-toggle-button__inner-dot{right:10%}.sendbird-input-toggle-button--reversed.sendbird-input-toggle-button--checked .sendbird-input-toggle-button__inner-dot{right:60%}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/Tooltip/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,'.sendbird-tooltip{position:relative;display:inline-flex;justify-content:center;max-width:200px;border-radius:8px;padding:8px 16px}.sendbird-theme--light .sendbird-tooltip{background-color:var(--sendbird-light-background-700)}.sendbird-theme--dark .sendbird-tooltip{background-color:var(--sendbird-dark-background-300)}.sendbird-tooltip::after{content:"";position:absolute;bottom:-4px;width:8px;height:8px;transform:rotate(45deg)}.sendbird-theme--light .sendbird-tooltip::after{background-color:var(--sendbird-light-background-700)}.sendbird-theme--dark .sendbird-tooltip::after{background-color:var(--sendbird-dark-background-300)}.sendbird-tooltip__text{font-family:var(--sendbird-font-family-default);font-size:12px;font-weight:bold;font-stretch:normal;font-style:normal;line-height:1.33;letter-spacing:normal;word-break:keep-all;max-width:180px;overflow:hidden;text-overflow:ellipsis}',""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/TooltipWrapper/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-tooltip-wrapper{position:relative;display:inline-flex}.sendbird-tooltip-wrapper__hover-tooltip{position:absolute;display:inline-flex;width:200px}.sendbird-tooltip-wrapper__hover-tooltip__inner__tooltip-container{position:relative;display:inline-flex}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/TypingIndicatorBubble/typingDots.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".typing-dots-container{align-items:center;border-radius:16px;display:flex;gap:6px;justify-content:center;padding:16px 12px}.sendbird-theme--light .typing-dots-container{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .typing-dots-container{background-color:var(--sendbird-dark-background-400)}.typing-dots-container span{animation:blink 1.4s infinite;animation-fill-mode:both;border-radius:50%;height:8px;width:8px}.sendbird-theme--light .typing-dots-container span{background-color:var(--sendbird-light-background-700)}.sendbird-theme--dark .typing-dots-container span{background-color:var(--sendbird-dark-background-50)}.typing-dots-container span:nth-child(1){animation-delay:.4s}.typing-dots-container span:nth-child(2){animation-delay:.6s}.typing-dots-container span:nth-child(3){animation-delay:.8s}@keyframes blink{0%{opacity:.12;transform:scale(1)}21.43%{opacity:.38;transform:scale(1.2)}42.86%{opacity:.12;transform:scale(1)}100%{opacity:.12;transform:scale(1)}}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/UnknownMessageItemBody/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-unknown-message-item-body{position:relative;display:inline-block;box-sizing:border-box;padding:8px 12px;border-radius:16px}.sendbird-unknown-message-item-body.reactions{border-radius:16px 16px 0px 0px}.sendbird-theme--light .sendbird-unknown-message-item-body.outgoing{background-color:var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-unknown-message-item-body.outgoing{background-color:var(--sendbird-dark-primary-200)}.sendbird-theme--light .sendbird-unknown-message-item-body.incoming{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-unknown-message-item-body.incoming{background-color:var(--sendbird-dark-background-500)}.sendbird-theme--light .sendbird-unknown-message-item-body.mouse-hover.outgoing,.sendbird-theme--light .sendbird-unknown-message-item-body:hover.outgoing{background-color:var(--sendbird-light-primary-400)}.sendbird-theme--dark .sendbird-unknown-message-item-body.mouse-hover.outgoing,.sendbird-theme--dark .sendbird-unknown-message-item-body:hover.outgoing{background-color:var(--sendbird-dark-primary-300)}.sendbird-theme--light .sendbird-unknown-message-item-body.mouse-hover.incoming,.sendbird-theme--light .sendbird-unknown-message-item-body:hover.incoming{background-color:var(--sendbird-light-background-200)}.sendbird-theme--dark .sendbird-unknown-message-item-body.mouse-hover.incoming,.sendbird-theme--dark .sendbird-unknown-message-item-body:hover.incoming{background-color:var(--sendbird-dark-background-400)}.sendbird-unknown-message-item-body .sendbird-unknown-message-item-body__header{display:block}.sendbird-unknown-message-item-body .sendbird-unknown-message-item-body__description{display:block}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/UserListItem/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-user-list-item{display:block;position:relative;box-sizing:border-box;width:432px;height:56px}.sendbird--mobile-mode .sendbird-user-list-item{width:100%}.sendbird-theme--light .sendbird-user-list-item{border-bottom:1px solid var(--sendbird-light-onlight-04);background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-user-list-item{border-bottom:1px solid var(--sendbird-dark-ondark-04);background-color:var(--sendbird-dark-background-500)}.sendbird-user-list-item .sendbird-user-list-item__avatar{position:absolute;top:8px;left:0px;cursor:pointer}.sendbird-user-list-item .sendbird-muted-avatar{position:absolute;top:8px;left:0px;pointer-events:none}.sendbird-user-list-item .sendbird-user-list-item__title{position:absolute;top:17px;left:56px;max-width:250px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sendbird--mobile-mode .sendbird-user-list-item .sendbird-user-list-item__title{max-width:62%}.sendbird-user-list-item .sendbird-user-list-item__subtitle{position:absolute;top:23px;left:140px;max-width:237px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sendbird--mobile-mode .sendbird-user-list-item .sendbird-user-list-item__subtitle{max-width:40%}.sendbird-user-list-item .sendbird-user-list-item__checkbox{position:absolute;top:16px;right:16px}.sendbird-user-list-item .sendbird-user-list-item__action{position:absolute;right:0;top:10px}.sendbird-user-list-item .sendbird-user-list-item__operator{position:absolute;right:40px;top:22px}.sendbird-user-list-item .sendbird-user-list-item__operator.checkbox{right:66px}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/UserProfile/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird__user-profile{width:320px;border-radius:4px;padding:24px;box-sizing:border-box;text-align:center}.sendbird-theme--light .sendbird__user-profile{box-shadow:var(--sendbird-light-shadow-02);background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird__user-profile{box-shadow:var(--sendbird-dark-shadow-02);background-color:var(--sendbird-dark-background-500)}.sendbird__user-profile .sendbird__user-profile-avatar{margin:8px 0px}.sendbird__user-profile .sendbird__user-profile-name{max-width:100%;white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis}.sendbird-theme--light .sendbird__user-profile .sendbird__user-profile-name{color:var(--sendbird-light-onlight-01)}.sendbird-theme--dark .sendbird__user-profile .sendbird__user-profile-name{color:var(--sendbird-dark-ondark-01)}.sendbird__user-profile .sendbird__user-profile-message{margin-top:20px}.sendbird__user-profile .sendbird__user-profile-message button{width:272px}.sendbird__user-profile .sendbird__user-profile-separator{margin:24px 0px;height:1px}.sendbird-theme--light .sendbird__user-profile .sendbird__user-profile-separator{background-color:var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird__user-profile .sendbird__user-profile-separator{background-color:var(--sendbird-dark-ondark-04)}.sendbird__user-profile .sendbird__user-profile-userId--label,.sendbird__user-profile .sendbird__user-profile-userId--value{width:100%;white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis;display:block;text-align:left}.sendbird__user-profile .sendbird__user-profile-userId--label{margin-bottom:8px}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/VoiceMessageInput/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-voice-message-input{position:relative;display:inline-flex;flex-direction:column;width:100%;height:110px;padding-top:22px;padding-left:24px;padding-right:24px;box-sizing:border-box}.sendbird-voice-message-input__indicator{position:relative;display:inline-flex;width:100%}.sendbird-voice-message-input__indicator__progress-bar{position:relative;display:inline-flex;width:100%;border-radius:28px;overflow:hidden}.sendbird-voice-message-input__indicator__on-rec{position:absolute;top:14px;right:53px}.sendbird-voice-message-input__indicator__playback-time{position:absolute;top:10px;right:16px}.sendbird-voice-message-input__controler{position:relative;display:inline-flex;flex-direction:row;justify-content:space-between;align-items:center;margin-top:14px;height:34px;min-height:34px}.sendbird-voice-message-input__controler__main{position:relative;display:inline-flex;justify-content:center;align-items:center;width:34px;height:34px;min-width:34px;min-height:34px;border-radius:50%}.sendbird-theme--light .sendbird-voice-message-input__controler__main{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-voice-message-input__controler__main{background-color:var(--sendbird-dark-background-500)}.sendbird-voice-message-input__controler__main:hover{cursor:pointer}.sendbird-voice-message-input__controler__submit{position:relative;display:inline-flex;justify-content:center;align-items:center;width:34px;height:34px;min-width:34px;min-height:34px;border-radius:50%}.sendbird-theme--light .sendbird-voice-message-input__controler__submit{background-color:var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-voice-message-input__controler__submit{background-color:var(--sendbird-dark-primary-200)}.sendbird-voice-message-input__controler__submit:hover{cursor:pointer}.sendbird-theme--light .sendbird-voice-message-input__controler__submit.voice-message--disabled{background-color:var(--sendbird-light-background-100)}.sendbird-theme--dark .sendbird-voice-message-input__controler__submit.voice-message--disabled{background-color:var(--sendbird-dark-background-500)}.sendbird-voice-message-input__controler__submit.voice-message--disabled:hover{cursor:default}@keyframes flickerAnimation{0%{opacity:0}50%{opacity:1}100%{opacity:0}}@-o-keyframes flickerAnimation{0%{opacity:0}50%{opacity:1}100%{opacity:0}}@-moz-keyframes flickerAnimation{0%{opacity:0}50%{opacity:1}100%{opacity:0}}@-webkit-keyframes flickerAnimation{0%{opacity:0}50%{opacity:1}100%{opacity:0}}.sendbird-voice-message-input__indicator__on-rec{width:12px;height:12px;min-width:12px;min-height:12px;border-radius:50%;-webkit-animation:flickerAnimation 1s infinite;-moz-animation:flickerAnimation 1s infinite;-o-animation:flickerAnimation 1s infinite;animation:flickerAnimation 1s infinite}.sendbird-theme--light .sendbird-voice-message-input__indicator__on-rec{background-color:var(--sendbird-light-error-300)}.sendbird-theme--dark .sendbird-voice-message-input__indicator__on-rec{background-color:var(--sendbird-dark-error-300)}.sendbird-voice-message-input__indicator__progress-bar__bar{height:40px}.sendbird-controler-icon{position:relative;display:inline-block}.sendbird-controler-icon.record-icon{width:20px;height:20px;min-width:20px;min-height:20px;border-radius:50%}.sendbird-theme--light .sendbird-controler-icon.record-icon{background-color:var(--sendbird-light-error-300)}.sendbird-theme--dark .sendbird-controler-icon.record-icon{background-color:var(--sendbird-dark-error-300)}.sendbird-controler-icon.stop-icon{width:14px;height:14px;min-width:14px;min-height:14px;border-radius:2px}.sendbird-theme--light .sendbird-controler-icon.stop-icon{background-color:var(--sendbird-light-onlight-01)}.sendbird-theme--dark .sendbird-controler-icon.stop-icon{background-color:var(--sendbird-dark-ondark-01)}.sendbird-controler-icon.pause-icon{display:inline-flex;width:100%;gap:3.75px;width:13.75px;height:13.75px;min-width:13.75px;min-height:13.75px}.sendbird-controler-icon.pause-icon-inner{display:inline-flex;min-width:4.38px;border-radius:2px}.sendbird-theme--light .sendbird-controler-icon.pause-icon-inner{background-color:var(--sendbird-light-onlight-01)}.sendbird-theme--dark .sendbird-controler-icon.pause-icon-inner{background-color:var(--sendbird-dark-ondark-01)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/VoiceMessageItemBody/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-voice-message-item-body{position:relative;display:inline-flex;width:100%;border-radius:16px;overflow:hidden}.sendbird-voice-message-item-body.is-reactions-contained{border-radius:16px 16px 0px 0px}.sendbird-voice-message-item-body__progress-bar{position:absolute;width:100%;height:50px}.sendbird-voice-message-item-body__status-button{position:relative;top:8px;left:12px;display:inline-flex;justify-content:center;align-items:center;width:34px;height:34px;min-width:34px;min-height:34px}.sendbird-voice-message-item-body__status-button__button{width:100%;height:100%;display:inline-flex;justify-content:center;align-items:center;border-radius:50%}.sendbird-theme--light .sendbird-voice-message-item-body__status-button__button{background-color:var(--sendbird-light-background-50)}.sendbird-theme--dark .sendbird-voice-message-item-body__status-button__button{background-color:var(--sendbird-dark-background-600)}.sendbird-voice-message-item-body__playback-time{position:absolute;top:15px;right:12px}.sendbird-voice-message-item-body__status-button__button__pause{position:relative;display:inline-flex;justify-content:space-between;align-items:center;width:13.75px;height:13.75px}.sendbird-voice-message-item-body__status-button__button__pause__inner{position:relative;display:inline-flex;width:4.38px;height:13.75px;border-radius:2px}.sendbird-theme--light .sendbird-voice-message-item-body__status-button__button__pause__inner{background-color:var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-voice-message-item-body__status-button__button__pause__inner{background-color:var(--sendbird-dark-primary-200)}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/Word/index.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-word{display:inline;height:fit-content}.sendbird-word__url{display:inline;color:inherit;word-break:break-all}",""]),module.exports=exports},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/utils/color.scss":function(module,exports,__webpack_require__){(exports=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(!1)).push([module.i,".sendbird-theme--light .sendbird-color--onbackground-1{color:var(--sendbird-light-onlight-01)}.sendbird-theme--dark .sendbird-color--onbackground-1{color:var(--sendbird-dark-ondark-01)}.sendbird-theme--light .sendbird-color--onbackground-1--background-color{background-color:var(--sendbird-light-onlight-01)}.sendbird-theme--dark .sendbird-color--onbackground-1--background-color{background-color:var(--sendbird-dark-ondark-01)}.sendbird-theme--light .sendbird-color--onbackground-2{color:var(--sendbird-light-onlight-02)}.sendbird-theme--dark .sendbird-color--onbackground-2{color:var(--sendbird-dark-ondark-02)}.sendbird-theme--light .sendbird-color--onbackground-2--background-color{background-color:var(--sendbird-light-onlight-02)}.sendbird-theme--dark .sendbird-color--onbackground-2--background-color{background-color:var(--sendbird-dark-ondark-02)}.sendbird-theme--light .sendbird-color--onbackground-3{color:var(--sendbird-light-onlight-03)}.sendbird-theme--dark .sendbird-color--onbackground-3{color:var(--sendbird-dark-ondark-03)}.sendbird-theme--light .sendbird-color--onbackground-3--background-color{background-color:var(--sendbird-light-onlight-03)}.sendbird-theme--dark .sendbird-color--onbackground-3--background-color{background-color:var(--sendbird-dark-ondark-03)}.sendbird-theme--light .sendbird-color--onbackground-4{color:var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-color--onbackground-4{color:var(--sendbird-dark-ondark-04)}.sendbird-theme--light .sendbird-color--onbackground-4--background-color{background-color:var(--sendbird-light-onlight-04)}.sendbird-theme--dark .sendbird-color--onbackground-4--background-color{background-color:var(--sendbird-dark-ondark-04)}.sendbird-theme--light .sendbird-color--oncontent-1{color:var(--sendbird-light-ondark-01)}.sendbird-theme--dark .sendbird-color--oncontent-1{color:var(--sendbird-dark-onlight-01)}.sendbird-theme--light .sendbird-color--oncontent-1--background-color{background-color:var(--sendbird-light-ondark-01)}.sendbird-theme--dark .sendbird-color--oncontent-1--background-color{background-color:var(--sendbird-dark-onlight-01)}.sendbird-theme--light .sendbird-color--primary{color:var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-color--primary{color:var(--sendbird-dark-primary-200)}.sendbird-theme--light .sendbird-color--primary--background-color{background-color:var(--sendbird-light-primary-300)}.sendbird-theme--dark .sendbird-color--primary--background-color{background-color:var(--sendbird-dark-primary-200)}.sendbird-theme--light .sendbird-color--error{color:var(--sendbird-light-error-300)}.sendbird-theme--dark .sendbird-color--error{color:var(--sendbird-dark-error-200)}.sendbird-theme--light .sendbird-color--error--background-color{background-color:var(--sendbird-light-error-300)}.sendbird-theme--dark .sendbird-color--error--background-color{background-color:var(--sendbird-dark-error-300)}",""]),module.exports=exports},"./package.json":function(module){module.exports=JSON.parse('{"name":"@sendbird/uikit-react","version":"3.14.0-beta.2","description":"Sendbird UIKit for React: A feature-rich and customizable chat UI kit with messaging, channel management, and user authentication.","keywords":["sendbird","uikit","react","chat","messaging","real-time","UI components","user authentication","channel management","SDK integration","customizable","feature-rich","social app","customer support","API"],"main":"dist/cjs/index.js","style":"dist/index.css","typings":"dist/index.d.ts","module":"dist/index.js","files":["release/**/*","dist/**/*","LICENSE","CHANGELOG.md"],"devEngines":{"node":"16.x"},"scripts":{"test":"jest","test-update-snapshot":"jest -u","test:coverage":"yarn test --coverage","cp-css":"./scripts/copy-css.sh","clean-release":"rm -rf ./dist","build":"yarn clean-release; rollup -c && yarn build:post","build:post":"node ./scripts/post_build.js;","start":"rollup -c -w","reset":"yarn cache clean; yarn install","prepublishOnly":"yarn build","predeploy":"yarn clean-release; yarn install; yarn build","storybook":"start-storybook -p 6006","storybook:stable":"NODE_OPTIONS=--openssl-legacy-provider && start-storybook -p 6006","build-storybook":"build-storybook","lint":"yarn eslint; yarn eslint-ts","lint:fix":"yarn eslint --fix; yarn eslint-ts --fix","eslint":"eslint --no-eslintrc -c .eslintrc.js \'src/**\'","eslint-ts":"eslint --no-eslintrc -c .eslintrc.json \'src/**/*.ts*\'","stylelint":"stylelint \'src/**\'","generate-component":"plop","deploy-storybook":"storybook-to-ghpages","inspect":"yarn test; yarn lint;"},"repository":{"type":"git","url":"git+git@github.com:sendbird/sendbird-uikit-react-sources.git"},"author":"SendBird ","license":"SEE LICENSE IN LICENSE.md","peerDependencies":{"react":"^16.8.6 || ^17.0.0 || ^18.0.0","react-dom":"^16.8.6 || ^17.0.0 || ^18.0.0"},"dependencies":{"@sendbird/chat":"^4.11.3","@sendbird/react-uikit-message-template-view":"0.0.1-alpha.69","@sendbird/uikit-tools":"0.0.1-alpha.69","css-vars-ponyfill":"^2.3.2","date-fns":"^2.16.1","dompurify":"^3.0.1"},"bugs":{"url":"https://community.sendbird.com"},"homepage":"https://sendbird.com","devDependencies":{"@babel/core":"^7.23.2","@babel/eslint-parser":"^7.22.15","@babel/plugin-proposal-class-properties":"^7.18.6","@babel/plugin-proposal-export-default-from":"^7.22.17","@babel/plugin-proposal-private-property-in-object":"^7.21.11","@babel/preset-env":"^7.23.2","@babel/preset-react":"^7.22.15","@babel/preset-typescript":"^7.23.2","@rollup/plugin-babel":"^6.0.4","@rollup/plugin-commonjs":"^25.0.7","@rollup/plugin-eslint":"^9.0.5","@rollup/plugin-node-resolve":"^15.2.3","@rollup/plugin-replace":"^5.0.4","@rollup/plugin-typescript":"^11.1.5","@storybook/addon-actions":"^6.5.10","@storybook/addon-docs":"^6.5.10","@storybook/addon-links":"^6.5.10","@storybook/addons":"^6.5.10","@storybook/preset-scss":"^1.0.3","@storybook/react":"^6.5.10","@storybook/storybook-deployer":"^2.8.12","@svgr/rollup":"^8.1.0","@svgr/webpack":"^5.1.0","@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@testing-library/user-event":"^14.4.3","@typescript-eslint/eslint-plugin":"^6.17.0","@typescript-eslint/parser":"^6.17.0","autoprefixer":"^9.7.4","babel-jest":"^29.0.1","babel-loader":"^8.0.6","browserslist":"^4.14.5","caniuse-lite":"^1.0.30001148","css-loader":"^3.4.2","eslint":"^8.40.0","eslint-config-airbnb":"^19.0.4","eslint-config-airbnb-base":"^15.0.0","eslint-plugin-babel":"^5.3.1","eslint-plugin-import":"^2.27.5","eslint-plugin-jsx-a11y":"^6.7.1","eslint-plugin-react":"^7.32.2","eslint-plugin-react-hooks":"^4.6.0","eslint-plugin-unused-imports":"^3.0.0","global-jsdom":"^8.5.0","husky":"^8.0.0","jest":"29.5.0","jest-environment-jsdom":"29.5.0","jest-extended":"^3.2.4","jsdom":"^20.0.0","np":"^7.5.0","plop":"^2.5.3","postcss":"^8.3.5","react":"^18.2.0","react-dom":"^18.2.0","rollup":"^4.9.2","rollup-plugin-analyzer":"^4.0.0","rollup-plugin-copy":"^3.5.0","rollup-plugin-polyfill-node":"^0.13.0","rollup-plugin-postcss":"^4.0.2","rollup-plugin-scss":"^4.0.0","rollup-plugin-typescript2":"^0.36.0","rollup-plugin-visualizer":"^5.9.2","sass":"^1.55.0","sass-loader":"^10.2.0","stylelint":"^13.0.0","stylelint-config-sass-guidelines":"^7.0.0","ts-pattern":"^4.2.2","tslib":"^2.0.0","typescript":"^4.7.4"},"browserslist":["defaults","IE 11"],"packageManager":"yarn@3.5.0","prettier":{"singleQuote":true,"printWidth":140,"tabWidth":2}}')},"./src sync recursive ^\\.(?:(?:^|\\/|(?:(?:(?!(?:^|\\/)\\.).)*?)\\/)(?!\\.)(?=.)[^/]*?\\.stories\\.(js|tsx|mdx))$":function(module,exports,__webpack_require__){var map={"./hooks/VoiceRecorder/stories/index.stories.tsx":"./src/hooks/VoiceRecorder/stories/index.stories.tsx","./lib/stories/index.stories.tsx":"./src/lib/stories/index.stories.tsx","./lib/stories/message.stories.tsx":"./src/lib/stories/message.stories.tsx","./modules/App/stories/index.stories.js":"./src/modules/App/stories/index.stories.js","./modules/App/stories/integrated.stories.js":"./src/modules/App/stories/integrated.stories.js","./modules/App/stories/theme.stories.js":"./src/modules/App/stories/theme.stories.js","./modules/Channel/stories/index.stories.tsx":"./src/modules/Channel/stories/index.stories.tsx","./modules/ChannelList/stories/index.stories.js":"./src/modules/ChannelList/stories/index.stories.js","./modules/OpenChannelApp/stories/index.stories.js":"./src/modules/OpenChannelApp/stories/index.stories.js","./modules/OpenChannelApp/stories/openchannel-mobile.stories.js":"./src/modules/OpenChannelApp/stories/openchannel-mobile.stories.js","./modules/OpenChannelList/stories/index.stories.js":"./src/modules/OpenChannelList/stories/index.stories.js","./ui/Accordion/stories/Accordion.stories.js":"./src/ui/Accordion/stories/Accordion.stories.js","./ui/Accordion/stories/AccordionGroup.stories.js":"./src/ui/Accordion/stories/AccordionGroup.stories.js","./ui/AdminMessage/stories/AdminMessage.stories.js":"./src/ui/AdminMessage/stories/AdminMessage.stories.js","./ui/Avatar/stories/MutedAvatarOverlay.stories.js":"./src/ui/Avatar/stories/MutedAvatarOverlay.stories.js","./ui/Avatar/stories/index.stories.js":"./src/ui/Avatar/stories/index.stories.js","./ui/Badge/stories/Badge.stories.js":"./src/ui/Badge/stories/Badge.stories.js","./ui/BottomSheet/stories/BottomSheet.stories.js":"./src/ui/BottomSheet/stories/BottomSheet.stories.js","./ui/Button/stories/Button.stories.js":"./src/ui/Button/stories/Button.stories.js","./ui/ChannelAvatar/stories/ChannelAvatar.stories.js":"./src/ui/ChannelAvatar/stories/ChannelAvatar.stories.js","./ui/ChannelAvatar/stories/OpenChannelAvatar.stories.js":"./src/ui/ChannelAvatar/stories/OpenChannelAvatar.stories.js","./ui/Checkbox/stories/Checkbox.stories.js":"./src/ui/Checkbox/stories/Checkbox.stories.js","./ui/ConnectionStatus/stories/ConnectionStatus.stories.js":"./src/ui/ConnectionStatus/stories/ConnectionStatus.stories.js","./ui/ContextMenu/stories/ContextMenu.stories.js":"./src/ui/ContextMenu/stories/ContextMenu.stories.js","./ui/DateSeparator/stories/DateSeparator.stories.js":"./src/ui/DateSeparator/stories/DateSeparator.stories.js","./ui/Docs/stories/Doc.stories.js":"./src/ui/Docs/stories/Doc.stories.js","./ui/EmojiReactions/stories/EmojiReactions.stories.js":"./src/ui/EmojiReactions/stories/EmojiReactions.stories.js","./ui/FileMessageItemBody/stories/FileMessageItemBody.stories.js":"./src/ui/FileMessageItemBody/stories/FileMessageItemBody.stories.js","./ui/FileViewer/stories/FileViewer.stories.tsx":"./src/ui/FileViewer/stories/FileViewer.stories.tsx","./ui/Icon/stories/Icon.stories.js":"./src/ui/Icon/stories/Icon.stories.js","./ui/IconButton/stories/index.stories.js":"./src/ui/IconButton/stories/index.stories.js","./ui/ImageGrid/stories/ImageGrid.stories.js":"./src/ui/ImageGrid/stories/ImageGrid.stories.js","./ui/ImageRenderer/stories/ImageRenderer.stories.js":"./src/ui/ImageRenderer/stories/ImageRenderer.stories.js","./ui/Input/stories/Input.stories.js":"./src/ui/Input/stories/Input.stories.js","./ui/Label/stories/index.stories.js":"./src/ui/Label/stories/index.stories.js","./ui/LegacyEditUserProfile/stories/EditUserProfile.stories.js":"./src/ui/LegacyEditUserProfile/stories/EditUserProfile.stories.js","./ui/LinkLabel/stories/LinkLabel.stories.js":"./src/ui/LinkLabel/stories/LinkLabel.stories.js","./ui/Loader/stories/Loader.stories.js":"./src/ui/Loader/stories/Loader.stories.js","./ui/MentionLabel/stories/MentionLabel.stories.js":"./src/ui/MentionLabel/stories/MentionLabel.stories.js","./ui/MentionUserLabel/stories/MentionUserLabel.stories.js":"./src/ui/MentionUserLabel/stories/MentionUserLabel.stories.js","./ui/MessageContent/stories/MessageContent.stories.js":"./src/ui/MessageContent/stories/MessageContent.stories.js","./ui/MessageInput/stories/index.stories.js":"./src/ui/MessageInput/stories/index.stories.js","./ui/MessageItemMenu/stories/MessageItemMenu.stories.js":"./src/ui/MessageItemMenu/stories/MessageItemMenu.stories.js","./ui/MessageItemReactionMenu/stories/MessageItemReactionMenu.stories.js":"./src/ui/MessageItemReactionMenu/stories/MessageItemReactionMenu.stories.js","./ui/MessageSearchFileItem/stories/MessageSearchFileItem.stories.js":"./src/ui/MessageSearchFileItem/stories/MessageSearchFileItem.stories.js","./ui/MessageSearchItem/stories/MessageSearchItem.stories.js":"./src/ui/MessageSearchItem/stories/MessageSearchItem.stories.js","./ui/MessageStatus/stories/MessageStatus.stories.js":"./src/ui/MessageStatus/stories/MessageStatus.stories.js","./ui/OGMessageItemBody/stories/OGMessageItemBody.stories.js":"./src/ui/OGMessageItemBody/stories/OGMessageItemBody.stories.js","./ui/OpenChannelAdminMessage/stories/OpenChannelAdminMessage.stories.js":"./src/ui/OpenChannelAdminMessage/stories/OpenChannelAdminMessage.stories.js","./ui/OpenchannelConversationHeader/stories/OpenchannelConversationHeader.stories.js":"./src/ui/OpenchannelConversationHeader/stories/OpenchannelConversationHeader.stories.js","./ui/OpenchannelFileMessage/stories/OpenchannelFileMessage.stories.js":"./src/ui/OpenchannelFileMessage/stories/OpenchannelFileMessage.stories.js","./ui/OpenchannelOGMessage/stories/OpenchannelOGMessage.stories.js":"./src/ui/OpenchannelOGMessage/stories/OpenchannelOGMessage.stories.js","./ui/OpenchannelThumbnailMessage/stories/OpenchannelThumbnailMessage.stories.js":"./src/ui/OpenchannelThumbnailMessage/stories/OpenchannelThumbnailMessage.stories.js","./ui/OpenchannelUserMessage/stories/OpenchannelUserMessage.stories.js":"./src/ui/OpenchannelUserMessage/stories/OpenchannelUserMessage.stories.js","./ui/PlaceHolder/stories/PlaceHolder.stories.js":"./src/ui/PlaceHolder/stories/PlaceHolder.stories.js","./ui/PlaybackTime/stories/PlaybackTime.stories.js":"./src/ui/PlaybackTime/stories/PlaybackTime.stories.js","./ui/ProgressBar/stories/ProgressBar.stories.js":"./src/ui/ProgressBar/stories/ProgressBar.stories.js","./ui/QuoteMessage/stories/QuoteMessage.stories.js":"./src/ui/QuoteMessage/stories/QuoteMessage.stories.js","./ui/QuoteMessageInput/stories/QuoteMessageInput.stories.js":"./src/ui/QuoteMessageInput/stories/QuoteMessageInput.stories.js","./ui/ReactionBadge/stories/ReactionBadge.stories.js":"./src/ui/ReactionBadge/stories/ReactionBadge.stories.js","./ui/ReactionButton/stories/ReactionButton.stories.js":"./src/ui/ReactionButton/stories/ReactionButton.stories.js","./ui/SortByRow/stories/SortByRow.stories.js":"./src/ui/SortByRow/stories/SortByRow.stories.js","./ui/TextButton/stories/TextButton.stories.js":"./src/ui/TextButton/stories/TextButton.stories.js","./ui/TextMessageItemBody/stories/TextMessageItemBody.stories.js":"./src/ui/TextMessageItemBody/stories/TextMessageItemBody.stories.js","./ui/ThreadReplies/stories/ThreadReplies.stories.js":"./src/ui/ThreadReplies/stories/ThreadReplies.stories.js","./ui/ThumbnailMessageItemBody/stories/ThumbnailMessageItemBody.stories.js":"./src/ui/ThumbnailMessageItemBody/stories/ThumbnailMessageItemBody.stories.js","./ui/Toggle/stories/Toggle.stories.js":"./src/ui/Toggle/stories/Toggle.stories.js","./ui/Tooltip/stories/Tooltip.stories.js":"./src/ui/Tooltip/stories/Tooltip.stories.js","./ui/TooltipWrapper/stories/TooltipWrapper.stories.js":"./src/ui/TooltipWrapper/stories/TooltipWrapper.stories.js","./ui/UnknownMessageItemBody/stories/UnknownMessageItemBody.stories.js":"./src/ui/UnknownMessageItemBody/stories/UnknownMessageItemBody.stories.js","./ui/UserListItem/stories/UserListItem.stories.js":"./src/ui/UserListItem/stories/UserListItem.stories.js","./ui/UserProfile/stories/UserProfile.stories.js":"./src/ui/UserProfile/stories/UserProfile.stories.js","./ui/VoiceMessageInput/stories/VoiceMessageInput.stories.js":"./src/ui/VoiceMessageInput/stories/VoiceMessageInput.stories.js","./ui/VoiceMessageItemBody/stories/VoiceMessageItemBody.stories.js":"./src/ui/VoiceMessageItemBody/stories/VoiceMessageItemBody.stories.js","./ui/Word/stories/Word.stories.js":"./src/ui/Word/stories/Word.stories.js","./ui/stories/index.stories.js":"./src/ui/stories/index.stories.js"};function webpackContext(req){var id=webpackContextResolve(req);return __webpack_require__(id)}function webpackContextResolve(req){if(!__webpack_require__.o(map,req)){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}return map[req]}webpackContext.keys=function webpackContextKeys(){return Object.keys(map)},webpackContext.resolve=webpackContextResolve,module.exports=webpackContext,webpackContext.id="./src sync recursive ^\\.(?:(?:^|\\/|(?:(?:(?!(?:^|\\/)\\.).)*?)\\/)(?!\\.)(?=.)[^/]*?\\.stories\\.(js|tsx|mdx))$"},"./src/hooks/VoicePlayer/dux/initialState.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return VOICE_PLAYER_STATUS})),__webpack_require__.d(__webpack_exports__,"a",(function(){return AudioUnitDefaultValue})),__webpack_require__.d(__webpack_exports__,"c",(function(){return voicePlayerInitialState}));var VOICE_PLAYER_STATUS={IDLE:"IDLE",PREPARING:"PREPARING",PLAYING:"PLAYING",PAUSED:"PAUSED",COMPLETED:"COMPLETED"},AudioUnitDefaultValue=function AudioUnitDefaultValue(){return{audioFile:null,playbackTime:0,duration:1e3,playingStatus:VOICE_PLAYER_STATUS.IDLE}},voicePlayerInitialState={currentPlayer:null,currentGroupKey:"",audioStorage:{}}},"./src/hooks/VoicePlayer/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return ALL})),__webpack_require__.d(__webpack_exports__,"b",(function(){return VoicePlayer_VoicePlayerProvider})),__webpack_require__.d(__webpack_exports__,"c",(function(){return VoicePlayer_useVoicePlayerContext}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/core-js/modules/web.url.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),initialState=(__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./src/hooks/VoicePlayer/dux/initialState.ts"));function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r0&&_duration>0&&(_audioUnit3.playbackTime=_currentTime,_audioUnit3.duration=_duration),_objectSpread(_objectSpread({},state),{},{audioStorage:_objectSpread(_objectSpread({},state.audioStorage),{},_defineProperty({},_groupKey5,_audioUnit3))});default:return state}}var consts=__webpack_require__("./src/utils/consts.ts"),useSendbirdStateContext=__webpack_require__("./src/hooks/useSendbirdStateContext.tsx");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&void 0!==arguments[0]?arguments[0]:"";currentGroupKey.includes(text)&&(logger.info("VoicePlayer: Pause playing(by text)."),pause(currentGroupKey))},voicePlayerStore:voicePlayerStore}},react_default.a.createElement("div",{id:consts.q,style:{display:"none"}}),children)},VoicePlayer_useVoicePlayerContext=function useVoicePlayerContext(){return Object(react.useContext)(Context)};try{VoicePlayer_VoicePlayerProvider.displayName="VoicePlayerProvider",VoicePlayer_VoicePlayerProvider.__docgenInfo={description:"",displayName:"VoicePlayerProvider",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/hooks/VoicePlayer/index.tsx#VoicePlayerProvider"]={docgenInfo:VoicePlayer_VoicePlayerProvider.__docgenInfo,name:"VoicePlayerProvider",path:"src/hooks/VoicePlayer/index.tsx#VoicePlayerProvider"})}catch(__react_docgen_typescript_loader_error){}},"./src/hooks/VoicePlayer/useVoicePlayer.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return useVoicePlayer_useVoicePlayer}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var react=__webpack_require__("./node_modules/react/index.js"),VoicePlayer=__webpack_require__("./src/hooks/VoicePlayer/index.tsx"),consts=__webpack_require__("./src/utils/consts.ts"),VoiceRecorder=__webpack_require__("./src/hooks/VoiceRecorder/index.tsx"),initialState=__webpack_require__("./src/hooks/VoicePlayer/dux/initialState.ts");__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&void 0!==arguments[1]?arguments[1]:"";return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"","-").concat(key)}(channelUrl,key)),groupKey=_slicedToArray(_useState,1)[0],_useVoicePlayerContex=Object(VoicePlayer.c)(),play=_useVoicePlayerContex.play,pause=_useVoicePlayerContex.pause,stop=_useVoicePlayerContex.stop,voicePlayerStore=_useVoicePlayerContex.voicePlayerStore,isRecordable=Object(VoiceRecorder.b)().isRecordable,currentAudioUnit=(null==voicePlayerStore||null===(_voicePlayerStore$aud=voicePlayerStore.audioStorage)||void 0===_voicePlayerStore$aud?void 0:_voicePlayerStore$aud[groupKey])||Object(initialState.a)();return Object(react.useEffect)((function(){return function(){if(audioFile||audioFileUrl){var _pause,_ref2,voiceAudioPlayerElement=document.getElementById(consts.p);null==voiceAudioPlayerElement||null===(_pause=(_ref2=voiceAudioPlayerElement).pause)||void 0===_pause||_pause.call(_ref2)}}}),[]),{play:function playVoicePlayer(){isRecordable||null==play||play({groupKey:groupKey,audioFile:audioFile,audioFileUrl:audioFileUrl})},pause:function pauseVoicePlayer(){null==pause||pause(groupKey)},stop:function stopVoicePlayer(){null==stop||stop(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")},playbackTime:1e3*((null==currentAudioUnit?void 0:currentAudioUnit.playbackTime)||0),duration:1e3*((null==currentAudioUnit?void 0:currentAudioUnit.duration)||0),playingStatus:currentAudioUnit.playingStatus}};try{useVoicePlayer_useVoicePlayer.displayName="useVoicePlayer",useVoicePlayer_useVoicePlayer.__docgenInfo={description:"",displayName:"useVoicePlayer",props:{key:{defaultValue:{value:""},description:"",name:"key",required:!1,type:{name:"string"}},channelUrl:{defaultValue:{value:""},description:"",name:"channelUrl",required:!1,type:{name:"string"}},audioFile:{defaultValue:{value:"null"},description:"",name:"audioFile",required:!1,type:{name:"File"}},audioFileUrl:{defaultValue:{value:""},description:"",name:"audioFileUrl",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/hooks/VoicePlayer/useVoicePlayer.tsx#useVoicePlayer"]={docgenInfo:useVoicePlayer_useVoicePlayer.__docgenInfo,name:"useVoicePlayer",path:"src/hooks/VoicePlayer/useVoicePlayer.tsx#useVoicePlayer"})}catch(__react_docgen_typescript_loader_error){}},"./src/hooks/VoiceRecorder/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return VoiceRecorderProvider})),__webpack_require__.d(__webpack_exports__,"b",(function(){return useVoiceRecorderContext}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.find.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js");var react__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_13__),_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./src/lib/LocalizationContext.tsx"),_ui_Modal__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./src/ui/Modal/index.tsx"),_utils_consts__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./src/utils/consts.ts"),_useSendbirdStateContext__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./src/hooks/useSendbirdStateContext.tsx");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i {\n return (\n
\n \n \n \n
\n );\n}'}},normal.parameters)},"./src/hooks/VoiceRecorder/useVoiceRecorder.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return VoiceRecorderStatus})),__webpack_require__.d(__webpack_exports__,"b",(function(){return useVoiceRecorder}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var react__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/react/index.js"),___WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./src/hooks/VoiceRecorder/index.tsx"),_useSendbirdStateContext__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./src/hooks/useSendbirdStateContext.tsx");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);imaxRecordingTime&&stopTimer(),newTime}))}),100);timer=interval}()},onRecordingEnded:function onRecordingEnded(audioFile){setRecordingStatus(VoiceRecorderStatus.COMPLETED),_onRecordingEnded(audioFile),setRecordedFile(audioFile),stopTimer()}})}),[_onRecordingStarted,_onRecordingEnded]),stop=Object(react__WEBPACK_IMPORTED_MODULE_10__.useCallback)((function(){null==voiceRecorder||voiceRecorder.stop(),stopTimer()}),[voiceRecorder]),cancel=Object(react__WEBPACK_IMPORTED_MODULE_10__.useCallback)((function(){stop(),setRecordedFile(null)}),[voiceRecorder]),_useState6=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_10__.useState)(0),2),recordingTime=_useState6[0],setRecordingTime=_useState6[1],timer=null;function stopTimer(){clearInterval(timer),timer=null}return Object(react__WEBPACK_IMPORTED_MODULE_10__.useEffect)((function(){recordingTime>maxRecordingTime&&stop()}),[recordingTime,maxRecordingTime,stop]),{start:start,stop:stop,cancel:cancel,recordingStatus:recordingStatus,recordingTime:recordingTime,recordedFile:recordedFile,recordingLimit:maxRecordingTime}};try{useVoiceRecorder.displayName="useVoiceRecorder",useVoiceRecorder.__docgenInfo={description:"",displayName:"useVoiceRecorder",props:{onRecordingStarted:{defaultValue:{value:"() => { /* noop */ }"},description:"",name:"onRecordingStarted",required:!1,type:{name:"() => void"}},onRecordingEnded:{defaultValue:{value:"() => { /* noop */ }"},description:"",name:"onRecordingEnded",required:!1,type:{name:"(props: File) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/hooks/VoiceRecorder/useVoiceRecorder.tsx#useVoiceRecorder"]={docgenInfo:useVoiceRecorder.__docgenInfo,name:"useVoiceRecorder",path:"src/hooks/VoiceRecorder/useVoiceRecorder.tsx#useVoiceRecorder"})}catch(__react_docgen_typescript_loader_error){}},"./src/hooks/useHandleOnScrollCallback/index.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return useHandleOnScrollCallback}));var _utils_consts__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/utils/consts.ts"),_useThrottleCallback__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/hooks/useThrottleCallback.ts"),_modules_Channel_context_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/modules/Channel/context/utils.ts"),_sendbird_uikit_tools__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@sendbird/uikit-tools/dist/esm/index.js"),DELAY=100;function useHandleOnScrollCallback(_ref){var hasMore=_ref.hasMore,hasNext=_ref.hasNext,onScroll=_ref.onScroll,scrollRef=_ref.scrollRef,setShowScrollDownButton=_ref.setShowScrollDownButton,scrollCb=Object(_sendbird_uikit_tools__WEBPACK_IMPORTED_MODULE_3__.h)((function(){var element=null==scrollRef?void 0:scrollRef.current;if(null!=element){var scrollTop=element.scrollTop,scrollHeight=element.scrollHeight,clientHeight=element.clientHeight,scrollBottom=function calcScrollBottom(scrollHeight,scrollTop){return scrollHeight-scrollTop}(scrollHeight,scrollTop);"function"==typeof setShowScrollDownButton&&setShowScrollDownButton(scrollHeight>scrollTop+clientHeight+1),hasMore&&Object(_modules_Channel_context_utils__WEBPACK_IMPORTED_MODULE_2__.c)(scrollTop,0,_utils_consts__WEBPACK_IMPORTED_MODULE_0__.l)&&onScroll((function(){element.scrollHeight>scrollHeight&&(element.scrollTop=element.scrollHeight-scrollBottom)})),hasNext&&Object(_modules_Channel_context_utils__WEBPACK_IMPORTED_MODULE_2__.c)(clientHeight+scrollTop,scrollHeight,_utils_consts__WEBPACK_IMPORTED_MODULE_0__.l)&&onScroll((function(){element.scrollHeight>scrollHeight&&(element.scrollTop=scrollTop)}))}}));return Object(_useThrottleCallback__WEBPACK_IMPORTED_MODULE_1__.b)(scrollCb,DELAY,{trailing:!0})}},"./src/hooks/useKeyDown/useKeyDown.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return useKeyDown}));var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_sendbird_uikit_tools__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@sendbird/uikit-tools/dist/esm/index.js");function useKeyDown(ref,keyDownCallbackMap){return Object(react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect)((function(){var _ref$current;null===(_ref$current=ref.current)||void 0===_ref$current||_ref$current.focus()}),[ref.current]),Object(_sendbird_uikit_tools__WEBPACK_IMPORTED_MODULE_1__.h)((function(event){var callback=keyDownCallbackMap[event.key];null==callback||callback(event),event.stopPropagation()}))}},"./src/hooks/useLongPress.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return useLongPress}));__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js");var react__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/react/index.js"),_lib_MediaQueryContext__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./src/lib/MediaQueryContext.tsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _defineProperty(obj,key,value){return(key=function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:String(i)}(key))in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&void 0!==arguments[1]?arguments[1]:{},_ref2$delay=_ref2.delay,delay=void 0===_ref2$delay?DEFAULT_DURATION:_ref2$delay,_ref2$shouldPreventDe=_ref2.shouldPreventDefault,shouldPreventDefault=void 0===_ref2$shouldPreventDe||_ref2$shouldPreventDe,_ref2$shouldStopPropa=_ref2.shouldStopPropagation,shouldStopPropagation=void 0!==_ref2$shouldStopPropa&&_ref2$shouldStopPropa,isMobile=Object(_lib_MediaQueryContext__WEBPACK_IMPORTED_MODULE_19__.b)().isMobile,_useState2=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_18__.useState)(!1),2),longPressTriggered=_useState2[0],setLongPressTriggered=_useState2[1],_useState4=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_18__.useState)(!1),2),dragTriggered=_useState4[0],setDragTriggered=_useState4[1],timeout=Object(react__WEBPACK_IMPORTED_MODULE_18__.useRef)(),target=Object(react__WEBPACK_IMPORTED_MODULE_18__.useRef)(),start=Object(react__WEBPACK_IMPORTED_MODULE_18__.useCallback)((function(e){e.persist();var clonedEvent=function _objectSpread(e){for(var r=1;r1&&void 0!==arguments[1])||arguments[1];setDragTriggered(!!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])),null!=timeout&&timeout.current&&clearTimeout(timeout.current),!shouldTriggerClick||longPressTriggered||dragTriggered||null==onClick||onClick(e),setLongPressTriggered(!1),shouldPreventDefault&&target.current&&target.current.removeEventListener("touchend",preventDefault)}),[shouldPreventDefault,onClick,longPressTriggered,dragTriggered]);return{onMouseDown:function onMouseDown(e){return start(e)},onMouseUp:function onMouseUp(e){return clear(e)},onMouseLeave:function onMouseLeave(e){return clear(e,!1)},onTouchStart:function onTouchStart(e){return start(e)},onTouchMove:function onTouchMove(e){return clear(e,!1,!0)},onTouchEnd:function onTouchEnd(e){return clear(e)}}}try{isTouchEvent.displayName="isTouchEvent",isTouchEvent.__docgenInfo={description:"",displayName:"isTouchEvent",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/hooks/useLongPress.tsx#isTouchEvent"]={docgenInfo:isTouchEvent.__docgenInfo,name:"isTouchEvent",path:"src/hooks/useLongPress.tsx#isTouchEvent"})}catch(__react_docgen_typescript_loader_error){}},"./src/hooks/useModal/ModalRoot/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return MODAL_ROOT}));__webpack_require__("./node_modules/react/index.js");var MODAL_ROOT="sendbird-modal-root"},"./src/hooks/useModal/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return GlobalModalProvider})),__webpack_require__.d(__webpack_exports__,"c",(function(){return useGlobalModalContext}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var react__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__),ts_pattern__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/ts-pattern/dist/index.js"),_utils_utils__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./src/utils/utils.ts"),_ui_Modal__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./src/ui/Modal/index.tsx"),_ModalRoot__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./src/hooks/useModal/ModalRoot/index.tsx");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i` at the top of your app.");return context}},"./src/hooks/useThrottleCallback.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return useThrottleCallback})),__webpack_require__.d(__webpack_exports__,"a",(function(){return throttle}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var react__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/react/index.js"),_sendbird_uikit_tools__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/@sendbird/uikit-tools/dist/esm/index.js");function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i2&&void 0!==arguments[2]?arguments[2]:{leading:!0,trailing:!1},timer=Object(react__WEBPACK_IMPORTED_MODULE_10__.useRef)(null),trailingArgs=Object(react__WEBPACK_IMPORTED_MODULE_10__.useRef)(null);return Object(react__WEBPACK_IMPORTED_MODULE_10__.useEffect)((function(){return function(){timer.current&&clearTimeout(timer.current)}}),[]),Object(_sendbird_uikit_tools__WEBPACK_IMPORTED_MODULE_11__.h)((function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];if(timer.current)trailingArgs.current=args;else{options.leading?callback.apply(void 0,args):trailingArgs.current=args;timer.current=setTimeout((function invoke(){options.trailing&&trailingArgs.current?(callback.apply(void 0,_toConsumableArray(trailingArgs.current)),trailingArgs.current=null,timer.current=setTimeout(invoke,delay)):timer.current=null}),delay)}}))}function throttle(callback,delay){var options=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{leading:!0,trailing:!1},timer=null,trailingArgs=null;return function(){for(var _len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++)args[_key2]=arguments[_key2];if(timer)trailingArgs=args;else{options.leading?callback.apply(void 0,args):trailingArgs=args;timer=setTimeout((function invoke(){options.trailing&&trailingArgs?(callback.apply(void 0,_toConsumableArray(trailingArgs)),trailingArgs=null,timer=setTimeout(invoke,delay)):timer=null}),delay)}}}},"./src/hooks/useUnmount.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return useUnmount}));var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function useUnmount(callback){var deps=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Object(react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect)((function(){return function(){callback()}}),deps)}},"./src/lib/LocalizationContext.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return LocalizationContext})),__webpack_require__.d(__webpack_exports__,"b",(function(){return LocalizationProvider})),__webpack_require__.d(__webpack_exports__,"c",(function(){return useLocalization}));var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__),_ui_Label_stringSet__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/ui/Label/stringSet.ts"),date_fns_locale_en_US__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/date-fns/esm/locale/en-US/index.js"),LocalizationContext=react__WEBPACK_IMPORTED_MODULE_0___default.a.createContext({stringSet:Object(_ui_Label_stringSet__WEBPACK_IMPORTED_MODULE_1__.a)("en"),dateLocale:date_fns_locale_en_US__WEBPACK_IMPORTED_MODULE_2__.a}),LocalizationProvider=function LocalizationProvider(props){var children=props.children;return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(LocalizationContext.Provider,{value:props},children)},useLocalization=function useLocalization(){return react__WEBPACK_IMPORTED_MODULE_0___default.a.useContext(LocalizationContext)};try{Context.displayName="Context",Context.__docgenInfo={description:"Context lets components pass information deep down without explicitly\npassing props.\n\nCreated from {@link createContext}",displayName:"Context",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/lib/LocalizationContext.tsx#Context"]={docgenInfo:Context.__docgenInfo,name:"Context",path:"src/lib/LocalizationContext.tsx#Context"})}catch(__react_docgen_typescript_loader_error){}try{LocalizationProvider.displayName="LocalizationProvider",LocalizationProvider.__docgenInfo={description:"",displayName:"LocalizationProvider",props:{stringSet:{defaultValue:null,description:"",name:"stringSet",required:!0,type:{name:"StringSet"}},dateLocale:{defaultValue:null,description:"",name:"dateLocale",required:!0,type:{name:"Locale"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/lib/LocalizationContext.tsx#LocalizationProvider"]={docgenInfo:LocalizationProvider.__docgenInfo,name:"LocalizationProvider",path:"src/lib/LocalizationContext.tsx#LocalizationProvider"})}catch(__react_docgen_typescript_loader_error){}},"./src/lib/Logger/index.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return LoggerFactory}));__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var _utils_utils__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./src/utils/utils.ts");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;rarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i2?_len-2:0),_key=2;_key<_len;_key++)payload[_key-2]=arguments[_key];return logInterface({level:lgLvl,title:title,description:description,payload:payload})}};return lvlArray.reduce((function(accumulator,currentLvl){return currentLvl===LOG_LEVELS_DEBUG||currentLvl===LOG_LEVELS_ALL?_objectSpread(_objectSpread({},accumulator),{},{info:applyLog(LOG_LEVELS_INFO),error:applyLog(LOG_LEVELS_ERROR),warning:applyLog(LOG_LEVELS_WARNING)}):currentLvl===LOG_LEVELS_INFO?_objectSpread(_objectSpread({},accumulator),{},{info:applyLog(LOG_LEVELS_INFO)}):currentLvl===LOG_LEVELS_ERROR?_objectSpread(_objectSpread({},accumulator),{},{error:applyLog(LOG_LEVELS_ERROR)}):currentLvl===LOG_LEVELS_WARNING?_objectSpread(_objectSpread({},accumulator),{},{warning:applyLog(LOG_LEVELS_WARNING)}):_objectSpread({},accumulator)}),function getDefaultLogger(){return{info:_utils_utils__WEBPACK_IMPORTED_MODULE_19__.b,error:_utils_utils__WEBPACK_IMPORTED_MODULE_19__.b,warning:_utils_utils__WEBPACK_IMPORTED_MODULE_19__.b}}())}},"./src/lib/MediaQueryContext.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return MediaQueryProvider})),__webpack_require__.d(__webpack_exports__,"b",(function(){return useMediaQueryContext}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var react__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_10__);function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function disconnectSdk(_x){return _disconnectSdk.apply(this,arguments)}function _disconnectSdk(){return _disconnectSdk=function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}(_regeneratorRuntime().mark((function _callee(_ref){var sdkDispatcher,userDispatcher,sdk;return _regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return sdkDispatcher=_ref.sdkDispatcher,userDispatcher=_ref.userDispatcher,sdk=_ref.sdk,_context.abrupt("return",new Promise((function(resolve){sdkDispatcher({type:SDK_ACTIONS.SET_SDK_LOADING,payload:!0}),null!=sdk&&sdk.disconnect?sdk.disconnect().then((function(){sdkDispatcher({type:SDK_ACTIONS.RESET_SDK}),userDispatcher({type:actionTypes.a.RESET_USER})})).finally((function(){resolve(!0)})):resolve(!0)})));case 2:case"end":return _context.stop()}}),_callee)}))),_disconnectSdk.apply(this,arguments)}__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js");var chat=__webpack_require__("./node_modules/@sendbird/chat/index.js"),_bundle_c578be85=__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-c578be85.js"),openChannel=__webpack_require__("./node_modules/@sendbird/chat/openChannel.js"),groupChannel=__webpack_require__("./node_modules/@sendbird/chat/groupChannel.js"),src_utils=__webpack_require__("./src/utils/index.ts");function setupConnection_typeof(o){return setupConnection_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},setupConnection_typeof(o)}function setupConnection_regeneratorRuntime(){setupConnection_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==setupConnection_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw new Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function setupConnection_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function setupConnection_asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){setupConnection_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){setupConnection_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}var APP_VERSION_STRING="__react_dev_mode__",INIT_SDK=SDK_ACTIONS.INIT_SDK,SET_SDK_LOADING=SDK_ACTIONS.SET_SDK_LOADING,RESET_SDK=SDK_ACTIONS.RESET_SDK,SDK_ERROR=SDK_ACTIONS.SDK_ERROR,INIT_USER=actionTypes.a.INIT_USER,UPDATE_USER_INFO=actionTypes.a.UPDATE_USER_INFO,RESET_USER=actionTypes.a.RESET_USER;function getMissingParamError(_ref){var userId=_ref.userId,appId=_ref.appId;return"SendbirdProvider | useConnect/setupConnection/Connection failed UserId: ".concat(userId," or appId: ").concat(appId," missing")}function setUpParams(_ref2){var appId=_ref2.appId,_ref2$isNewApp=_ref2.isNewApp,isNewApp=void 0!==_ref2$isNewApp&&_ref2$isNewApp,customApiHost=_ref2.customApiHost,customWebSocketHost=_ref2.customWebSocketHost,_ref2$sdkInitParams=_ref2.sdkInitParams,sdkInitParams=void 0===_ref2$sdkInitParams?{}:_ref2$sdkInitParams,params=Object.assign(sdkInitParams,{appId:appId,modules:[new groupChannel.b,new openChannel.c],newInstance:isNewApp,localCacheEnabled:!0});return customApiHost&&(params.customApiHost=customApiHost),customWebSocketHost&&(params.customWebSocketHost=customWebSocketHost),chat.a.init(params)}function setUpConnection(_x){return _setUpConnection.apply(this,arguments)}function _setUpConnection(){return _setUpConnection=setupConnection_asyncToGenerator(setupConnection_regeneratorRuntime().mark((function _callee2(_ref3){var logger,sdkDispatcher,userDispatcher,initDashboardConfigs,userId,appId,isNewApp,customApiHost,customWebSocketHost,configureSession,nickname,profileUrl,accessToken,isUserIdUsedForNickname,sdkInitParams,customExtensionParams,_ref3$isMobile,isMobile,eventHandlers,initializeMessageTemplatesInfo;return setupConnection_regeneratorRuntime().wrap((function _callee2$(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return logger=_ref3.logger,sdkDispatcher=_ref3.sdkDispatcher,userDispatcher=_ref3.userDispatcher,initDashboardConfigs=_ref3.initDashboardConfigs,userId=_ref3.userId,appId=_ref3.appId,isNewApp=_ref3.isNewApp,customApiHost=_ref3.customApiHost,customWebSocketHost=_ref3.customWebSocketHost,configureSession=_ref3.configureSession,nickname=_ref3.nickname,profileUrl=_ref3.profileUrl,accessToken=_ref3.accessToken,isUserIdUsedForNickname=_ref3.isUserIdUsedForNickname,sdkInitParams=_ref3.sdkInitParams,customExtensionParams=_ref3.customExtensionParams,_ref3$isMobile=_ref3.isMobile,isMobile=void 0!==_ref3$isMobile&&_ref3$isMobile,eventHandlers=_ref3.eventHandlers,initializeMessageTemplatesInfo=_ref3.initializeMessageTemplatesInfo,_context2.abrupt("return",new Promise((function(resolve,reject){var _logger$info,_eventHandlers$connec;null==logger||null===(_logger$info=logger.info)||void 0===_logger$info||_logger$info.call(logger,"SendbirdProvider | useConnect/setupConnection/init",{userId:userId,appId:appId});var onConnectionFailed=null==eventHandlers||null===(_eventHandlers$connec=eventHandlers.connection)||void 0===_eventHandlers$connec?void 0:_eventHandlers$connec.onFailed;if(sdkDispatcher({type:SET_SDK_LOADING,payload:!0}),userId&&appId){var _logger$info3,_newSdk$addSendbirdEx,_SendbirdProduct$UIKI,_SendbirdPlatform$JS,_DeviceOsPlatform$MOB,_DeviceOsPlatform$WEB,_logger$info8,newSdk=setUpParams({appId:appId,customApiHost:customApiHost,customWebSocketHost:customWebSocketHost,isNewApp:isNewApp,sdkInitParams:sdkInitParams});if(configureSession&&"function"==typeof configureSession){var _logger$info2,sessionHandler=configureSession(newSdk);null==logger||null===(_logger$info2=logger.info)||void 0===_logger$info2||_logger$info2.call(logger,"SendbirdProvider | useConnect/setupConnection/configureSession",sessionHandler),newSdk.setSessionHandler(sessionHandler)}null==logger||null===(_logger$info3=logger.info)||void 0===_logger$info3||_logger$info3.call(logger,"SendbirdProvider | useConnect/setupConnection/setVersion",{version:APP_VERSION_STRING}),null==newSdk||null===(_newSdk$addSendbirdEx=newSdk.addSendbirdExtensions)||void 0===_newSdk$addSendbirdEx||_newSdk$addSendbirdEx.call(newSdk,[{product:null!==(_SendbirdProduct$UIKI=null===_bundle_c578be85.G||void 0===_bundle_c578be85.G?void 0:_bundle_c578be85.G.UIKIT_CHAT)&&void 0!==_SendbirdProduct$UIKI?_SendbirdProduct$UIKI:"uikit-chat",version:APP_VERSION_STRING,platform:null!==(_SendbirdPlatform$JS=null===_bundle_c578be85.H||void 0===_bundle_c578be85.H?void 0:_bundle_c578be85.H.JS)&&void 0!==_SendbirdPlatform$JS?_SendbirdPlatform$JS:"js"}],{platform:isMobile?null!==(_DeviceOsPlatform$MOB=null===_bundle_c578be85.E||void 0===_bundle_c578be85.E?void 0:_bundle_c578be85.E.MOBILE_WEB)&&void 0!==_DeviceOsPlatform$MOB?_DeviceOsPlatform$MOB:"mobile_web":null!==(_DeviceOsPlatform$WEB=null===_bundle_c578be85.E||void 0===_bundle_c578be85.E?void 0:_bundle_c578be85.E.WEB)&&void 0!==_DeviceOsPlatform$WEB?_DeviceOsPlatform$WEB:"web"},customExtensionParams),newSdk.addExtension("sb_uikit",APP_VERSION_STRING);var connectCbSuccess=function(){var _ref4=setupConnection_asyncToGenerator(setupConnection_regeneratorRuntime().mark((function _callee(user){var _logger$info4,_logger$error,_logger$info6;return setupConnection_regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return null==logger||null===(_logger$info4=logger.info)||void 0===_logger$info4||_logger$info4.call(logger,"SendbirdProvider | useConnect/setupConnection/connectCbSuccess",user),sdkDispatcher({type:INIT_SDK,payload:newSdk}),userDispatcher({type:INIT_USER,payload:user}),_context.prev=3,_context.next=6,initializeMessageTemplatesInfo(newSdk);case 6:_context.next=11;break;case 8:_context.prev=8,_context.t0=_context.catch(3),null==logger||null===(_logger$error=logger.error)||void 0===_logger$error||_logger$error.call(logger,"SendbirdProvider | useConnect/setupConnection/upsertMessageTemplateListInLocalStorage failed",{error:_context.t0});case 11:initDashboardConfigs(newSdk).then((function(config){var _logger$info5;null==logger||null===(_logger$info5=logger.info)||void 0===_logger$info5||_logger$info5.call(logger,"SendbirdProvider | useConnect/setupConnection/getUIKitConfiguration success",{config:config})})).catch((function(error){var _logger$error2;null==logger||null===(_logger$error2=logger.error)||void 0===_logger$error2||_logger$error2.call(logger,"SendbirdProvider | useConnect/setupConnection/getUIKitConfiguration failed",{error:error})})),nickname===user.nickname&&profileUrl===user.profileUrl||Object(src_utils.Q)(nickname)&&Object(src_utils.Q)(profileUrl)?resolve():(null==logger||null===(_logger$info6=logger.info)||void 0===_logger$info6||_logger$info6.call(logger,"SendbirdProvider | useConnect/setupConnection/updateCurrentUserInfo",{nickname:nickname,profileUrl:profileUrl}),newSdk.updateCurrentUserInfo({nickname:nickname||user.nickname||(isUserIdUsedForNickname?user.userId:""),profileUrl:profileUrl||user.profileUrl}).then((function(namedUser){var _logger$info7;null==logger||null===(_logger$info7=logger.info)||void 0===_logger$info7||_logger$info7.call(logger,"SendbirdProvider | useConnect/setupConnection/updateCurrentUserInfo success",{nickname:nickname,profileUrl:profileUrl}),userDispatcher({type:UPDATE_USER_INFO,payload:namedUser})})).finally((function(){resolve()})));case 13:case"end":return _context.stop()}}),_callee,null,[[3,8]])})));return function connectCbSuccess(_x2){return _ref4.apply(this,arguments)}}();null==logger||null===(_logger$info8=logger.info)||void 0===_logger$info8||_logger$info8.call(logger,"SendbirdProvider | useConnect/setupConnection/connect connecting using ".concat(null!=accessToken?accessToken:userId)),newSdk.connect(userId,accessToken).then((function(res){return connectCbSuccess(res)})).catch((function(err){return function connectCbError(e){var _logger$error3,error,errorMessage="SendbirdProvider | useConnect/setupConnection/Connection failed. ".concat((null==(error=e)?void 0:error.code)||""," ").concat((null==error?void 0:error.message)||"");null==logger||null===(_logger$error3=logger.error)||void 0===_logger$error3||_logger$error3.call(logger,errorMessage,{e:e,appId:appId,userId:userId}),sdkDispatcher({type:RESET_SDK}),userDispatcher({type:RESET_USER}),sdkDispatcher({type:SDK_ERROR}),null==onConnectionFailed||onConnectionFailed(e),reject(errorMessage)}(err)}))}else{var _logger$error4,errorMessage=getMissingParamError({userId:userId,appId:appId});sdkDispatcher({type:SDK_ERROR}),null==onConnectionFailed||onConnectionFailed({message:errorMessage}),null==logger||null===(_logger$error4=logger.error)||void 0===_logger$error4||_logger$error4.call(logger,errorMessage),reject(errorMessage)}})));case 2:case"end":return _context2.stop()}}),_callee2)}))),_setUpConnection.apply(this,arguments)}function connect_typeof(o){return connect_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},connect_typeof(o)}function connect_regeneratorRuntime(){connect_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==connect_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw new Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function connect_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function connect(_x){return _connect.apply(this,arguments)}function _connect(){return _connect=function connect_asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){connect_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){connect_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}(connect_regeneratorRuntime().mark((function _callee(_ref){var logger,sdkDispatcher,userDispatcher,appInfoDispatcher,initDashboardConfigs,userId,appId,_ref$isNewApp,isNewApp,customApiHost,customWebSocketHost,configureSession,nickname,profileUrl,accessToken,sdk,sdkInitParams,customExtensionParams,isMobile,eventHandlers,isUserIdUsedForNickname,initializeMessageTemplatesInfo;return connect_regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return logger=_ref.logger,sdkDispatcher=_ref.sdkDispatcher,userDispatcher=_ref.userDispatcher,appInfoDispatcher=_ref.appInfoDispatcher,initDashboardConfigs=_ref.initDashboardConfigs,userId=_ref.userId,appId=_ref.appId,_ref$isNewApp=_ref.isNewApp,isNewApp=void 0!==_ref$isNewApp&&_ref$isNewApp,customApiHost=_ref.customApiHost,customWebSocketHost=_ref.customWebSocketHost,configureSession=_ref.configureSession,nickname=_ref.nickname,profileUrl=_ref.profileUrl,accessToken=_ref.accessToken,sdk=_ref.sdk,sdkInitParams=_ref.sdkInitParams,customExtensionParams=_ref.customExtensionParams,isMobile=_ref.isMobile,eventHandlers=_ref.eventHandlers,isUserIdUsedForNickname=_ref.isUserIdUsedForNickname,initializeMessageTemplatesInfo=_ref.initializeMessageTemplatesInfo,_context.next=3,disconnectSdk({logger:logger,sdkDispatcher:sdkDispatcher,userDispatcher:userDispatcher,sdk:sdk});case 3:return _context.next=5,setUpConnection({logger:logger,sdkDispatcher:sdkDispatcher,userDispatcher:userDispatcher,appInfoDispatcher:appInfoDispatcher,initDashboardConfigs:initDashboardConfigs,userId:userId,appId:appId,isNewApp:isNewApp,customApiHost:customApiHost,customWebSocketHost:customWebSocketHost,configureSession:configureSession,nickname:nickname,profileUrl:profileUrl,accessToken:accessToken,sdkInitParams:sdkInitParams,customExtensionParams:customExtensionParams,isMobile:isMobile,eventHandlers:eventHandlers,isUserIdUsedForNickname:isUserIdUsedForNickname,initializeMessageTemplatesInfo:initializeMessageTemplatesInfo});case 5:case"end":return _context.stop()}}),_callee)}))),_connect.apply(this,arguments)}function useConnect_typeof(o){return useConnect_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},useConnect_typeof(o)}function useConnect_regeneratorRuntime(){useConnect_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==useConnect_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw new Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function useConnect_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function useConnect_asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){useConnect_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){useConnect_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}function useConnect_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function useConnect_objectSpread(e){for(var r=1;r0&&void 0!==arguments[0]?arguments[0]:[],rootSelector=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"unknown";Object(react.useEffect)((function(){var root=document.querySelector(rootSelector);return root&&ids.forEach((function(id){var elem=document.createElement("div");elem.setAttribute("id",id),root.appendChild(elem)})),function(){root&&ids.forEach((function(id){var target=document.getElementById(id);target&&root.removeChild(target)}))}}),[])},VoicePlayer=__webpack_require__("./src/hooks/VoicePlayer/index.tsx"),VoiceRecorder=__webpack_require__("./src/hooks/VoiceRecorder/index.tsx"),VoiceMessageProvider_VoiceMessageProvider=function VoiceMessageProvider(_ref){var children=_ref.children;return react_default.a.createElement(VoicePlayer.b,null,react_default.a.createElement(VoiceRecorder.a,null,children))};try{VoiceMessageProvider_VoiceMessageProvider.displayName="VoiceMessageProvider",VoiceMessageProvider_VoiceMessageProvider.__docgenInfo={description:"",displayName:"VoiceMessageProvider",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/lib/VoiceMessageProvider.tsx#VoiceMessageProvider"]={docgenInfo:VoiceMessageProvider_VoiceMessageProvider.__docgenInfo,name:"VoiceMessageProvider",path:"src/lib/VoiceMessageProvider.tsx#VoiceMessageProvider"})}catch(__react_docgen_typescript_loader_error){}var LocalizationContext=__webpack_require__("./src/lib/LocalizationContext.tsx"),MediaQueryContext=__webpack_require__("./src/lib/MediaQueryContext.tsx"),Label_stringSet=__webpack_require__("./src/ui/Label/stringSet.ts"),consts=__webpack_require__("./src/utils/consts.ts"),resolvedReplyType=__webpack_require__("./src/lib/utils/resolvedReplyType.ts");var schedulerFactory=__webpack_require__("./src/lib/hooks/schedulerFactory.ts"),useUnmount=__webpack_require__("./src/hooks/useUnmount.ts");var useMarkAsDeliveredScheduler=__webpack_require__("./src/lib/hooks/useMarkAsDeliveredScheduler.ts"),useModal=__webpack_require__("./src/hooks/useModal/index.tsx");__webpack_require__("./node_modules/core-js/modules/es.array.flat-map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.unscopables.flat-map.js"),__webpack_require__("./node_modules/core-js/modules/es.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.find.js");function emojiManager_typeof(o){return emojiManager_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},emojiManager_typeof(o)}function _defineProperties(target,props){for(var i=0;i=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function uikitConfigStorage_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function uikitConfigStorage_asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){uikitConfigStorage_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){uikitConfigStorage_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}var uikitConfigStorage={getItem:function getItem(key){return uikitConfigStorage_asyncToGenerator(uikitConfigStorage_regeneratorRuntime().mark((function _callee(){var _localStorage$getItem;return uikitConfigStorage_regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.abrupt("return",null!==(_localStorage$getItem=localStorage.getItem(key))&&void 0!==_localStorage$getItem?_localStorage$getItem:null);case 1:case"end":return _context.stop()}}),_callee)})))()},setItem:function setItem(key,value){return uikitConfigStorage_asyncToGenerator(uikitConfigStorage_regeneratorRuntime().mark((function _callee2(){return uikitConfigStorage_regeneratorRuntime().wrap((function _callee2$(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return _context2.abrupt("return",localStorage.setItem(key,value));case 1:case"end":return _context2.stop()}}),_callee2)})))()}},getProcessedTemplate=(__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),function getProcessedTemplate(parsedTemplate){return{version:parsedTemplate.ui_template.version,uiTemplate:JSON.stringify(parsedTemplate.ui_template.body.items),colorVariables:parsedTemplate.color_variables}}),getProcessedTemplatesMap=function getProcessedTemplatesMap(parsedTemplates){var processedTemplates={};return parsedTemplates.forEach((function(template){processedTemplates[template.key]=getProcessedTemplate(template)})),processedTemplates};function useMessageTemplateUtils_typeof(o){return useMessageTemplateUtils_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},useMessageTemplateUtils_typeof(o)}function useMessageTemplateUtils_regeneratorRuntime(){useMessageTemplateUtils_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==useMessageTemplateUtils_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw new Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function useMessageTemplateUtils_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function useMessageTemplateUtils_asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){useMessageTemplateUtils_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){useMessageTemplateUtils_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}var INITIALIZE_MESSAGE_TEMPLATES_INFO=APP_INFO_ACTIONS_INITIALIZE_MESSAGE_TEMPLATES_INFO,UPSERT_MESSAGE_TEMPLATES=APP_INFO_ACTIONS_UPSERT_MESSAGE_TEMPLATES,UPSERT_WAITING_TEMPLATE_KEYS=APP_INFO_ACTIONS_UPSERT_WAITING_TEMPLATE_KEYS,MARK_ERROR_WAITING_TEMPLATE_KEYS=APP_INFO_ACTIONS_MARK_ERROR_WAITING_TEMPLATE_KEYS;__webpack_require__("./src/hooks/useSendbirdStateContext.tsx");function Sendbird_typeof(o){return Sendbird_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Sendbird_typeof(o)}function Sendbird_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function Sendbird_objectSpread(e){for(var r=1;rarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0?((cachedMessageTemplates=localStorage.getItem(consts.b))?(parsedTemplates=JSON.parse(cachedMessageTemplates),existingKeys=parsedTemplates.map((function(parsedTemplate){return parsedTemplate.key})),newParsedTemplates.forEach((function(newParsedTemplate){existingKeys.includes(newParsedTemplate.key)||parsedTemplates.push(newParsedTemplate)})),localStorage.setItem(consts.b,JSON.stringify(parsedTemplates))):localStorage.setItem(consts.b,JSON.stringify([newParsedTemplates])),appInfoDispatcher({type:UPSERT_MESSAGE_TEMPLATES,payload:newParsedTemplates.map((function(newParsedTemplate){return{key:newParsedTemplate.key,template:getProcessedTemplate(newParsedTemplate)}}))})):appInfoDispatcher({type:MARK_ERROR_WAITING_TEMPLATE_KEYS,payload:{keys:templateKeys,messageId:messageId}});case 21:case"end":return _context3.stop()}}),_callee3,null,[[3,17]])})));return function updateMessageTemplatesInfo(_x3,_x4,_x5){return _ref4.apply(this,arguments)}}();return{getCachedTemplate:function getCachedTemplate(key){var _messageTemplatesInfo;if(!messageTemplatesInfo)return null;var _cachedMessageTemplat,cachedTemplate=null,cachedMessageTemplates=null!==(_messageTemplatesInfo=null==messageTemplatesInfo?void 0:messageTemplatesInfo.templatesMap)&&void 0!==_messageTemplatesInfo?_messageTemplatesInfo:null;return cachedMessageTemplates&&(cachedTemplate=null!==(_cachedMessageTemplat=cachedMessageTemplates[key])&&void 0!==_cachedMessageTemplat?_cachedMessageTemplat:null),cachedTemplate},updateMessageTemplatesInfo:updateMessageTemplatesInfo,initializeMessageTemplatesInfo:initializeMessageTemplatesInfo}}({sdk:sdk,logger:logger,appInfoStore:appInfoStore,appInfoDispatcher:appInfoDispatcher}),getCachedTemplate=_useMessageTemplateUt.getCachedTemplate,updateMessageTemplatesInfo=_useMessageTemplateUt.updateMessageTemplatesInfo,initializeMessageTemplatesInfo=_useMessageTemplateUt.initializeMessageTemplatesInfo,utils={updateMessageTemplatesInfo:updateMessageTemplatesInfo,getCachedTemplate:getCachedTemplate},reconnect=function useConnect(triggerTypes,staticTypes){var _logger$info,userId=triggerTypes.userId,appId=triggerTypes.appId,accessToken=triggerTypes.accessToken,isMobile=triggerTypes.isMobile,isUserIdUsedForNickname=triggerTypes.isUserIdUsedForNickname,logger=staticTypes.logger,nickname=staticTypes.nickname,profileUrl=staticTypes.profileUrl,configureSession=staticTypes.configureSession,customApiHost=staticTypes.customApiHost,customWebSocketHost=staticTypes.customWebSocketHost,sdk=staticTypes.sdk,sdkDispatcher=staticTypes.sdkDispatcher,userDispatcher=staticTypes.userDispatcher,appInfoDispatcher=staticTypes.appInfoDispatcher,initDashboardConfigs=staticTypes.initDashboardConfigs,sdkInitParams=staticTypes.sdkInitParams,customExtensionParams=staticTypes.customExtensionParams,eventHandlers=staticTypes.eventHandlers,initializeMessageTemplatesInfo=staticTypes.initializeMessageTemplatesInfo;null==logger||null===(_logger$info=logger.info)||void 0===_logger$info||_logger$info.call(logger,"SendbirdProvider | useConnect",useConnect_objectSpread(useConnect_objectSpread({},triggerTypes),staticTypes));var connectDeps=Object(react.useRef)({appId:"",userId:""});return Object(react.useEffect)((function(){var _logger$info2;null==logger||null===(_logger$info2=logger.info)||void 0===_logger$info2||_logger$info2.call(logger,"SendbirdProvider | useConnect/useEffect",{userId:userId,appId:appId,accessToken:accessToken});var isNewApp=connectDeps.current.appId!==appId;connectDeps.current.appId===appId&&connectDeps.current.userId===userId||(connectDeps.current={appId:appId,userId:userId},connect({userId:userId,appId:appId,isNewApp:isNewApp,accessToken:accessToken,logger:logger,nickname:nickname,profileUrl:profileUrl,configureSession:configureSession,customApiHost:customApiHost,customWebSocketHost:customWebSocketHost,sdk:sdk,sdkDispatcher:sdkDispatcher,userDispatcher:userDispatcher,appInfoDispatcher:appInfoDispatcher,initDashboardConfigs:initDashboardConfigs,isUserIdUsedForNickname:isUserIdUsedForNickname,sdkInitParams:sdkInitParams,customExtensionParams:customExtensionParams,isMobile:isMobile,eventHandlers:eventHandlers,initializeMessageTemplatesInfo:initializeMessageTemplatesInfo}).catch((function(error){var _logger$error;null==logger||null===(_logger$error=logger.error)||void 0===_logger$error||_logger$error.call(logger,"SendbirdProvider | useConnect/useEffect",error)})))}),[userId,appId]),Object(react.useCallback)(useConnect_asyncToGenerator(useConnect_regeneratorRuntime().mark((function _callee(){var _logger$info3,_logger$error2;return useConnect_regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return null==logger||null===(_logger$info3=logger.info)||void 0===_logger$info3||_logger$info3.call(logger,"SendbirdProvider | useConnect/reconnect/useCallback",{sdk:sdk}),_context.prev=1,_context.next=4,connect({userId:userId,appId:appId,accessToken:accessToken,logger:logger,nickname:nickname,profileUrl:profileUrl,configureSession:configureSession,customApiHost:customApiHost,customWebSocketHost:customWebSocketHost,sdk:sdk,sdkDispatcher:sdkDispatcher,userDispatcher:userDispatcher,appInfoDispatcher:appInfoDispatcher,initDashboardConfigs:initDashboardConfigs,isUserIdUsedForNickname:isUserIdUsedForNickname,sdkInitParams:sdkInitParams,customExtensionParams:customExtensionParams,isMobile:isMobile,eventHandlers:eventHandlers,initializeMessageTemplatesInfo:initializeMessageTemplatesInfo});case 4:_context.next=9;break;case 6:_context.prev=6,_context.t0=_context.catch(1),null==logger||null===(_logger$error2=logger.error)||void 0===_logger$error2||_logger$error2.call(logger,"SendbirdProvider | useConnect/reconnect/useCallback",_context.t0);case 9:case"end":return _context.stop()}}),_callee,null,[[1,6]])}))),[sdk])}({appId:appId,userId:userId,accessToken:accessToken,isUserIdUsedForNickname:isUserIdUsedForNickname,isMobile:isMobile},{logger:logger,nickname:nickname,profileUrl:profileUrl,configureSession:configureSession,customApiHost:customApiHost,customWebSocketHost:customWebSocketHost,sdkInitParams:sdkInitParams,customExtensionParams:customExtensionParams,sdk:sdk,sdkDispatcher:sdkDispatcher,userDispatcher:userDispatcher,appInfoDispatcher:appInfoDispatcher,initDashboardConfigs:initDashboardConfigs,eventHandlers:eventHandlers,initializeMessageTemplatesInfo:initializeMessageTemplatesInfo});Object(useUnmount.a)((function(){"function"==typeof sdk.disconnect&&disconnectSdk({logger:logger,sdkDispatcher:sdkDispatcher,userDispatcher:userDispatcher,sdk:sdk})}),[sdk.disconnect]),Object(react.useEffect)((function(){setLogger(Object(Logger.a)(logLevel))}),[logLevel]),hooks_useAppendDomNode(["sendbird-modal-root","sendbird-dropdown-portal","sendbird-emoji-list-portal"],"body");var _useState6=_slicedToArray(Object(react.useState)(theme),2),currentTheme=_useState6[0],setCurrentTheme=_useState6[1];Object(react.useEffect)((function(){setCurrentTheme(theme)}),[theme]),Object(react.useEffect)((function(){var body=document.querySelector("body");body.classList.remove("sendbird-experimental__rem__units"),isREMUnitEnabled&&body.classList.add("sendbird-experimental__rem__units")}),[isREMUnitEnabled]),Object(react.useEffect)((function(){logger.info("Setup theme","Theme: ".concat(currentTheme));try{var body=document.querySelector("body");body.classList.remove("sendbird-theme--light"),body.classList.remove("sendbird-theme--dark"),body.classList.add("sendbird-theme--".concat(currentTheme||"light")),logger.info("Finish setup theme")}catch(e){logger.warning("Setup theme failed","".concat(e))}return function(){try{var _body=document.querySelector("body");_body.classList.remove("sendbird-theme--light"),_body.classList.remove("sendbird-theme--dark")}catch(_unused){}}}),[currentTheme]);var isOnline=Object(useOnlineStatus.a)(sdkStore.sdk,logger),markAsReadScheduler=function useMarkAsReadScheduler(_ref,_ref2){var isConnected=_ref.isConnected,logger=_ref2.logger,markAsReadScheduler=Object(react.useMemo)((function(){return Object(schedulerFactory.a)({logger:logger,cb:function cb(channel){try{channel.markAsRead()}catch(error){logger.warning("Channel: Mark as delivered failed",{channel:channel,error:error})}}})}),[]);return Object(react.useEffect)((function(){isConnected||markAsReadScheduler.clear()}),[isConnected]),Object(useUnmount.a)((function(){markAsReadScheduler.clear()})),markAsReadScheduler}({isConnected:isOnline},{logger:logger}),markAsDeliveredScheduler=Object(useMarkAsDeliveredScheduler.a)({isConnected:isOnline},{logger:logger}),localeStringSet=react_default.a.useMemo((function(){return stringSet?Sendbird_objectSpread(Sendbird_objectSpread({},Object(Label_stringSet.a)("en")),stringSet):Object(Label_stringSet.a)("en")}),[stringSet]),uikitMultipleFilesMessageLimit=Object(react.useMemo)((function(){return Math.min(consts.d,null!=multipleFilesMessageFileCountLimit?multipleFilesMessageFileCountLimit:Number.MAX_SAFE_INTEGER)}),[multipleFilesMessageFileCountLimit]),uikitUploadSizeLimit=Object(react.useMemo)((function(){return uploadSizeLimit}),[uploadSizeLimit]),emojiManager=Object(react.useMemo)((function(){return new emojiManager_EmojiManager({sdk:sdk,logger:logger})}),[sdkStore.initialized]);return react_default.a.createElement(SendbirdSdkContext.a.Provider,{value:{stores:{sdkStore:sdkStore,userStore:userStore,appInfoStore:appInfoStore},dispatchers:{sdkDispatcher:sdkDispatcher,userDispatcher:userDispatcher,appInfoDispatcher:appInfoDispatcher,reconnect:reconnect},config:{disableMarkAsDelivered:disableMarkAsDelivered,renderUserProfile:renderUserProfile,onUserProfileMessage:onUserProfileMessage,allowProfileEdit:allowProfileEdit,isOnline:isOnline,userId:userId,appId:appId,accessToken:accessToken,theme:currentTheme,setCurrentTheme:setCurrentTheme,setCurrenttheme:setCurrentTheme,isMultipleFilesMessageEnabled:isMultipleFilesMessageEnabled,uikitUploadSizeLimit:uikitUploadSizeLimit,uikitMultipleFilesMessageLimit:uikitMultipleFilesMessageLimit,userListQuery:userListQuery,logger:logger,pubSub:pubSub,imageCompression:Sendbird_objectSpread({compressionRate:.7},imageCompression),voiceRecord:{maxRecordingTime:null!==(_voiceRecord$maxRecor=null==voiceRecord?void 0:voiceRecord.maxRecordingTime)&&void 0!==_voiceRecord$maxRecor?_voiceRecord$maxRecor:consts.u,minRecordingTime:null!==(_voiceRecord$minRecor=null==voiceRecord?void 0:voiceRecord.minRecordingTime)&&void 0!==_voiceRecord$minRecor?_voiceRecord$minRecor:consts.v},userMention:{maxMentionCount:(null==userMention?void 0:userMention.maxMentionCount)||10,maxSuggestionCount:(null==userMention?void 0:userMention.maxSuggestionCount)||15},markAsReadScheduler:markAsReadScheduler,markAsDeliveredScheduler:markAsDeliveredScheduler,disableUserProfile:!configs.common.enableUsingDefaultUserProfile,isReactionEnabled:sdkInitialized&&configsWithAppAttr(sdk).groupChannel.channel.enableReactions,isMentionEnabled:configs.groupChannel.channel.enableMention,isVoiceMessageEnabled:configs.groupChannel.channel.enableVoiceMessage,replyType:Object(resolvedReplyType.a)(configs.groupChannel.channel.replyType).upperCase,isTypingIndicatorEnabledOnChannelList:configs.groupChannel.channelList.enableTypingIndicator,isMessageReceiptStatusEnabledOnChannelList:configs.groupChannel.channelList.enableMessageReceiptStatus,showSearchIcon:sdkInitialized&&configsWithAppAttr(sdk).groupChannel.setting.enableMessageSearch,groupChannel:{enableOgtag:sdkInitialized&&configsWithAppAttr(sdk).groupChannel.channel.enableOgtag,enableTypingIndicator:configs.groupChannel.channel.enableTypingIndicator,enableDocument:configs.groupChannel.channel.input.enableDocument,enableReactions:sdkInitialized&&configsWithAppAttr(sdk).groupChannel.channel.enableReactions,replyType:configs.groupChannel.channel.replyType,threadReplySelectType:Object(resolvedReplyType.b)(configs.groupChannel.channel.threadReplySelectType).lowerCase,typingIndicatorTypes:configs.groupChannel.channel.typingIndicatorTypes,enableFeedback:configs.groupChannel.channel.enableFeedback,enableSuggestedReplies:configs.groupChannel.channel.enableSuggestedReplies,showSuggestedRepliesFor:configs.groupChannel.channel.showSuggestedRepliesFor},openChannel:{enableOgtag:sdkInitialized&&configsWithAppAttr(sdk).openChannel.channel.enableOgtag,enableDocument:configs.openChannel.channel.input.enableDocument}},eventHandlers:eventHandlers,emojiManager:emojiManager,utils:utils}},react_default.a.createElement(MediaQueryContext.a,{logger:logger,breakpoint:breakpoint},react_default.a.createElement(LocalizationContext.b,{stringSet:localeStringSet,dateLocale:dateLocale},react_default.a.createElement(VoiceMessageProvider_VoiceMessageProvider,null,react_default.a.createElement(useModal.a,null,children)))))};__webpack_exports__.a=SendbirdProvider;try{SendbirdProvider.displayName="SendbirdProvider",SendbirdProvider.__docgenInfo={description:"",displayName:"SendbirdProvider",props:{appId:{defaultValue:null,description:"",name:"appId",required:!0,type:{name:"string"}},userId:{defaultValue:null,description:"",name:"userId",required:!0,type:{name:"string"}},accessToken:{defaultValue:null,description:"",name:"accessToken",required:!1,type:{name:"string"}},customApiHost:{defaultValue:null,description:"",name:"customApiHost",required:!1,type:{name:"string"}},customWebSocketHost:{defaultValue:null,description:"",name:"customWebSocketHost",required:!1,type:{name:"string"}},configureSession:{defaultValue:{value:"null"},description:"",name:"configureSession",required:!1,type:{name:"ConfigureSessionTypes"}},theme:{defaultValue:{value:"light"},description:"",name:"theme",required:!1,type:{name:"enum",value:[{value:'"light"'},{value:'"dark"'}]}},config:{defaultValue:{value:"{}"},description:"",name:"config",required:!1,type:{name:"SendbirdConfig"}},nickname:{defaultValue:{value:""},description:"",name:"nickname",required:!1,type:{name:"string"}},colorSet:{defaultValue:{value:"null"},description:"",name:"colorSet",required:!1,type:{name:"Record"}},stringSet:{defaultValue:{value:"null"},description:"",name:"stringSet",required:!1,type:{name:"Partial"}},dateLocale:{defaultValue:{value:"null"},description:"",name:"dateLocale",required:!1,type:{name:"Locale"}},profileUrl:{defaultValue:{value:""},description:"",name:"profileUrl",required:!1,type:{name:"string"}},voiceRecord:{defaultValue:null,description:"",name:"voiceRecord",required:!1,type:{name:"VoiceRecordOptions"}},userListQuery:{defaultValue:{value:"null"},description:"",name:"userListQuery",required:!1,type:{name:"() => UserListQueryType"}},imageCompression:{defaultValue:{value:"{}"},description:"",name:"imageCompression",required:!1,type:{name:"ImageCompressionOptions"}},allowProfileEdit:{defaultValue:{value:"false"},description:"",name:"allowProfileEdit",required:!1,type:{name:"boolean"}},disableMarkAsDelivered:{defaultValue:{value:"false"},description:"",name:"disableMarkAsDelivered",required:!1,type:{name:"boolean"}},breakpoint:{defaultValue:{value:"false"},description:"",name:"breakpoint",required:!1,type:{name:"string | boolean"}},renderUserProfile:{defaultValue:{value:"null"},description:"",name:"renderUserProfile",required:!1,type:{name:"(props: RenderUserProfileProps) => ReactElement>"}},onUserProfileMessage:{defaultValue:{value:"null"},description:"",name:"onUserProfileMessage",required:!1,type:{name:"(channel: GroupChannel) => void"}},uikitOptions:{defaultValue:null,description:"",name:"uikitOptions",required:!1,type:{name:'{ common?: { enableUsingDefaultUserProfile?: boolean; }; groupChannel?: { enableOgtag?: boolean; enableTypingIndicator?: boolean; enableReactions?: boolean; enableReactionsSupergroup?: boolean; ... 8 more ...; showSuggestedRepliesFor?: "all_messages" | "last_message_only"; }; groupChannelList?: { ...; }; groupChanne...'}},isUserIdUsedForNickname:{defaultValue:{value:"true"},description:"",name:"isUserIdUsedForNickname",required:!1,type:{name:"boolean"}},sdkInitParams:{defaultValue:null,description:"",name:"sdkInitParams",required:!1,type:{name:"SendbirdChatInitParams"}},customExtensionParams:{defaultValue:null,description:"",name:"customExtensionParams",required:!1,type:{name:"CustomExtensionParams"}},isMultipleFilesMessageEnabled:{defaultValue:{value:"false"},description:"",name:"isMultipleFilesMessageEnabled",required:!1,type:{name:"boolean"}},eventHandlers:{defaultValue:null,description:"",name:"eventHandlers",required:!1,type:{name:"SBUEventHandlers"}},replyType:{defaultValue:null,description:"",name:"replyType",required:!1,type:{name:"enum",value:[{value:'"NONE"'},{value:'"QUOTE_REPLY"'},{value:'"THREAD"'}]}},isMentionEnabled:{defaultValue:null,description:"",name:"isMentionEnabled",required:!1,type:{name:"boolean"}},isReactionEnabled:{defaultValue:null,description:"",name:"isReactionEnabled",required:!1,type:{name:"boolean"}},disableUserProfile:{defaultValue:null,description:"",name:"disableUserProfile",required:!1,type:{name:"boolean"}},isVoiceMessageEnabled:{defaultValue:null,description:"",name:"isVoiceMessageEnabled",required:!1,type:{name:"boolean"}},isTypingIndicatorEnabledOnChannelList:{defaultValue:null,description:"",name:"isTypingIndicatorEnabledOnChannelList",required:!1,type:{name:"boolean"}},isMessageReceiptStatusEnabledOnChannelList:{defaultValue:null,description:"",name:"isMessageReceiptStatusEnabledOnChannelList",required:!1,type:{name:"boolean"}},showSearchIcon:{defaultValue:null,description:"",name:"showSearchIcon",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/lib/Sendbird.tsx#SendbirdProvider"]={docgenInfo:SendbirdProvider.__docgenInfo,name:"SendbirdProvider",path:"src/lib/Sendbird.tsx#SendbirdProvider"})}catch(__react_docgen_typescript_loader_error){}},"./src/lib/SendbirdSdkContext.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return SendbirdSdkContext}));__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var react__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_16__);function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r ReactElement>"}},onUserProfileMessage:{defaultValue:{value:"null"},description:"",name:"onUserProfileMessage",required:!1,type:{name:"(channel: GroupChannel) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/lib/UserProfileContext.tsx#UserProfileProvider"]={docgenInfo:UserProfileProvider.__docgenInfo,name:"UserProfileProvider",path:"src/lib/UserProfileContext.tsx#UserProfileProvider"})}catch(__react_docgen_typescript_loader_error){}},"./src/lib/__experimental__typography.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/lib/__experimental__typography.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/lib/dux/user/actionTypes.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return USER_ACTIONS}));var USER_ACTIONS={INIT_USER:"INIT_USER",RESET_USER:"RESET_USER",UPDATE_USER_INFO:"UPDATE_USER_INFO"}},"./src/lib/hooks/schedulerFactory.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return schedulerFactory}));__webpack_require__("./node_modules/core-js/modules/es.array.find.js");var TIMEOUT=2e3;function schedulerFactory(_ref){var logger=_ref.logger,timeout=_ref.timeout,cb=_ref.cb,queue=[],interval=null;return{push:function push(channel){if(queue.find((function(c){return c.url===channel.url}))?logger.info("Channel: Mark as read already in queue",{channel:channel}):queue.push(channel),!interval){var item=queue.shift();item&&cb(item),interval=setInterval((function(){if(0===queue.length&&interval)return clearInterval(interval),void(interval=null);var item=queue.shift();item&&cb(item)}),timeout||TIMEOUT)}},clear:function clear(){queue=[],interval&&(clearInterval(interval),interval=null)},getQueue:function getQueue(){return queue}}}},"./src/lib/hooks/useMarkAsDeliveredScheduler.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return useMarkAsDeliveredScheduler}));__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.async-iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.math.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.json.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js");var react__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/react/index.js"),_schedulerFactory__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./src/lib/hooks/schedulerFactory.ts"),_hooks_useUnmount__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./src/hooks/useUnmount.ts");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _regeneratorRuntime(){_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw new Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function useMarkAsDeliveredScheduler(_ref,_ref2){var isConnected=_ref.isConnected,logger=_ref2.logger,markAsDeliveredScheduler=Object(react__WEBPACK_IMPORTED_MODULE_16__.useMemo)((function(){return Object(_schedulerFactory__WEBPACK_IMPORTED_MODULE_17__.a)({logger:logger,cb:(_cb=function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}(_regeneratorRuntime().mark((function _callee(channel){return _regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.prev=0,_context.next=3,channel.markAsDelivered();case 3:_context.next=8;break;case 5:_context.prev=5,_context.t0=_context.catch(0),logger.warning("Channel: Mark as delivered failed",{channel:channel,error:_context.t0});case 8:case"end":return _context.stop()}}),_callee,null,[[0,5]])}))),function cb(_x){return _cb.apply(this,arguments)})});var _cb}),[]);return Object(react__WEBPACK_IMPORTED_MODULE_16__.useEffect)((function(){isConnected||markAsDeliveredScheduler.clear()}),[isConnected]),Object(_hooks_useUnmount__WEBPACK_IMPORTED_MODULE_18__.a)((function(){markAsDeliveredScheduler.clear()})),markAsDeliveredScheduler}},"./src/lib/hooks/useOnlineStatus.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var _sendbird_chat__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-121c0f7c.js"),react__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/react/index.js"),_utils_uuid__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./src/utils/uuid.ts");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&void 0!==arguments[1]?arguments[1]:[];return function(channel,params){var handler=new UikitMessageHandler,pubSub=getPubSub(state);return channel.sendUserMessage(params).onFailed((function(error,message){pubSub.publish(_pubSub_topics__WEBPACK_IMPORTED_MODULE_11__.c.SEND_MESSAGE_FAILED,{error:error,message:message,channel:channel,publishingModules:publishingModules}),handler.triggerFailed(error,message)})).onPending((function(message){pubSub.publish(_pubSub_topics__WEBPACK_IMPORTED_MODULE_11__.c.SEND_MESSAGE_START,{message:message,channel:channel,publishingModules:publishingModules}),handler.triggerPending(message)})).onSucceeded((function(message){pubSub.publish(_pubSub_topics__WEBPACK_IMPORTED_MODULE_11__.c.SEND_USER_MESSAGE,{message:message,channel:channel,publishingModules:publishingModules}),handler.triggerSucceeded(message)})),handler}},getSendFileMessage:function getSendFileMessage(state){var publishingModules=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(channel,params){var handler=new UikitMessageHandler,pubSub=getPubSub(state);return channel.sendFileMessage(params).onFailed((function(error,message){pubSub.publish(_pubSub_topics__WEBPACK_IMPORTED_MODULE_11__.c.SEND_MESSAGE_FAILED,{error:error,message:message,channel:channel,publishingModules:publishingModules}),handler.triggerFailed(error,message)})).onPending((function(message){pubSub.publish(_pubSub_topics__WEBPACK_IMPORTED_MODULE_11__.c.SEND_MESSAGE_START,{message:message,channel:channel,publishingModules:publishingModules}),handler.triggerPending(message)})).onSucceeded((function(message){pubSub.publish(_pubSub_topics__WEBPACK_IMPORTED_MODULE_11__.c.SEND_FILE_MESSAGE,{message:message,channel:channel,publishingModules:publishingModules}),handler.triggerSucceeded(message)})),handler}},getUpdateUserMessage:function getUpdateUserMessage(state){var publishingModules=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(channel,messageId,params){return new Promise((function(resolve,reject){var pubSub=getPubSub(state);channel.updateUserMessage(messageId,params).then((function(message){pubSub.publish(_pubSub_topics__WEBPACK_IMPORTED_MODULE_11__.c.UPDATE_USER_MESSAGE,{message:message,channel:channel,fromSelector:!0,publishingModules:publishingModules}),resolve(message)})).catch(reject)}))}},getDeleteMessage:function getDeleteMessage(state){return function(channel,message){return new Promise((function(resolve,reject){var pubSub=getPubSub(state),messageId=message.messageId;channel.deleteMessage(message).then((function(){pubSub.publish(_pubSub_topics__WEBPACK_IMPORTED_MODULE_11__.c.DELETE_MESSAGE,{messageId:messageId,channel:channel}),resolve(message)})).catch(reject)}))}},getResendUserMessage:function getResendUserMessage(state){var publishingModules=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(channel,failedMessage){return new Promise((function(resolve,reject){var pubSub=getPubSub(state);channel.resendUserMessage(failedMessage).then((function(message){pubSub.publish(_pubSub_topics__WEBPACK_IMPORTED_MODULE_11__.c.SEND_USER_MESSAGE,{message:message,channel:channel,publishingModules:publishingModules}),resolve(message)})).catch(reject)}))}},getResendFileMessage:function getResendFileMessage(state){var publishingModules=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(channel,failedMessage,blob){return new Promise((function(resolve,reject){var pubSub=getPubSub(state);channel.resendFileMessage(failedMessage,blob).then((function(message){pubSub.publish(_pubSub_topics__WEBPACK_IMPORTED_MODULE_11__.c.SEND_FILE_MESSAGE,{message:message,channel:channel,publishingModules:publishingModules}),resolve(message)})).catch(reject)}))}}};__webpack_exports__.a=sendbirdSelectors},"./src/lib/stories/index.stories.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"getSdkStory",(function(){return getSdkStory})),__webpack_require__.d(__webpack_exports__,"createAndLeaveChannel",(function(){return createAndLeaveChannel}));__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js");var react__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_18__),_Sendbird__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./src/lib/Sendbird.tsx"),_SendbirdSdkContext__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/lib/SendbirdSdkContext.tsx"),_selectors__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./src/lib/selectors.ts"),_modules_ChannelList__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/modules/ChannelList/index.tsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;rarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i (\n \n \n \n)"}},getSdkStory.parameters),createAndLeaveChannel.parameters=_objectSpread({storySource:{source:"() => (\n \n <>\n \n
\n \n
\n \n
\n)"}},createAndLeaveChannel.parameters)},"./src/lib/stories/message.stories.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"createAndLeaveChannel",(function(){return createAndLeaveChannel}));__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js");var react__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_18__),_Sendbird__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./src/lib/Sendbird.tsx"),_SendbirdSdkContext__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/lib/SendbirdSdkContext.tsx"),_selectors__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./src/lib/selectors.ts"),_modules_Channel__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/modules/Channel/index.tsx"),_utils__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./src/utils/index.ts");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _defineProperty(obj,key,value){return(key=function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:String(i)}(key))in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i (\n \n <>\n \n
\n \n
\n \n
\n)"}},createAndLeaveChannel.parameters)},"./src/lib/types.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return Role}));var Role={OPERATOR:"operator",NONE:"none"}},"./src/lib/utils/resolvedReplyType.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";function getCaseResolvedReplyType(replyType){return{lowerCase:replyType.toLowerCase(),upperCase:replyType.toUpperCase()}}function getCaseResolvedThreadReplySelectType(threadReplySelectType){return{lowerCase:threadReplySelectType.toLowerCase(),upperCase:threadReplySelectType.toUpperCase()}}__webpack_require__.d(__webpack_exports__,"a",(function(){return getCaseResolvedReplyType})),__webpack_require__.d(__webpack_exports__,"b",(function(){return getCaseResolvedThreadReplySelectType}))},"./src/modules/App/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/App/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/App/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return App_App}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),Sendbird=__webpack_require__("./src/lib/Sendbird.tsx"),MediaQueryContext=__webpack_require__("./src/lib/MediaQueryContext.tsx"),_bundle_c578be85=(__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.async-iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.math.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.json.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/core-js/modules/es.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.number.max-safe-integer.js"),__webpack_require__("./node_modules/core-js/modules/es.array.find.js"),__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-c578be85.js")),_bundle_121c0f7c=__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-121c0f7c.js"),esm=__webpack_require__("./node_modules/@sendbird/uikit-tools/dist/esm/index.js"),UserProfileContext=__webpack_require__("./src/lib/UserProfileContext.tsx"),useSendbirdStateContext=__webpack_require__("./src/hooks/useSendbirdStateContext.tsx"),useToggleReactionCallback=__webpack_require__("./src/modules/GroupChannel/context/hooks/useToggleReactionCallback.ts"),resolvedReplyType=__webpack_require__("./src/lib/utils/resolvedReplyType.ts"),utils=__webpack_require__("./src/modules/GroupChannel/context/utils.ts"),useOnScrollReachedEndDetector=__webpack_require__("./src/hooks/useOnScrollReachedEndDetector/index.ts"),lib_pubSub=__webpack_require__("./src/lib/pubSub/index.ts");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&void 0!==arguments[1])||arguments[1]?setTimeout((function(){callback()})):callback()}function getScrollBehavior(behavior,animated){return"boolean"==typeof animated?animated?"smooth":"auto":behavior}var topics=__webpack_require__("./src/lib/pubSub/topics.ts"),consts=__webpack_require__("./src/utils/consts.ts");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _regeneratorRuntime(){_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw new Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function usePreventDuplicateRequest_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}var usePreventDuplicateRequest_usePreventDuplicateRequest=function usePreventDuplicateRequest(){var context=Object(react.useRef)({locked:!1,count:0}).current;return{lock:function lock(){context.locked=!0},run:function run(callback){return function usePreventDuplicateRequest_asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){usePreventDuplicateRequest_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){usePreventDuplicateRequest_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}(usePreventDuplicateRequest_regeneratorRuntime().mark((function _callee(){return usePreventDuplicateRequest_regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:if(!(context.locked&&context.count>0)){_context.next=2;break}return _context.abrupt("return");case 2:return _context.prev=2,context.count++,_context.next=6,callback();case 6:_context.next=10;break;case 8:_context.prev=8,_context.t0=_context.catch(2);case 10:case"end":return _context.stop()}}),_callee,null,[[2,8]])})))()},release:function release(){context.locked=!1,context.count=0}}};function GroupChannelProvider_typeof(o){return GroupChannelProvider_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},GroupChannelProvider_typeof(o)}function GroupChannelProvider_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function GroupChannelProvider_objectSpread(e){for(var r=1;r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function GroupChannelProvider_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function GroupChannelProvider_asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){GroupChannelProvider_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){GroupChannelProvider_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}function GroupChannelProvider_slicedToArray(arr,i){return function GroupChannelProvider_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function GroupChannelProvider_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function GroupChannelProvider_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return GroupChannelProvider_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GroupChannelProvider_arrayLikeToArray(o,minLen)}(arr,i)||function GroupChannelProvider_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function GroupChannelProvider_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i void"}},messageListQueryParams:{defaultValue:null,description:"",name:"messageListQueryParams",required:!1,type:{name:"MessageListQueryParamsType"}},onBeforeSendUserMessage:{defaultValue:null,description:"",name:"onBeforeSendUserMessage",required:!1,type:{name:"OnBeforeHandler"}},onBeforeSendFileMessage:{defaultValue:null,description:"",name:"onBeforeSendFileMessage",required:!1,type:{name:"OnBeforeHandler"}},onBeforeSendVoiceMessage:{defaultValue:null,description:"",name:"onBeforeSendVoiceMessage",required:!1,type:{name:"OnBeforeHandler"}},onBeforeSendMultipleFilesMessage:{defaultValue:null,description:"",name:"onBeforeSendMultipleFilesMessage",required:!1,type:{name:"OnBeforeHandler"}},onBeforeUpdateUserMessage:{defaultValue:null,description:"",name:"onBeforeUpdateUserMessage",required:!1,type:{name:"OnBeforeHandler"}},onBackClick:{defaultValue:null,description:"",name:"onBackClick",required:!1,type:{name:"() => void"}},onChatHeaderActionClick:{defaultValue:null,description:"",name:"onChatHeaderActionClick",required:!1,type:{name:"(event: MouseEvent) => void"}},onReplyInThreadClick:{defaultValue:null,description:"",name:"onReplyInThreadClick",required:!1,type:{name:"(props: { message: SendableMessageType; }) => void"}},onSearchClick:{defaultValue:null,description:"",name:"onSearchClick",required:!1,type:{name:"() => void"}},onQuoteMessageClick:{defaultValue:null,description:"",name:"onQuoteMessageClick",required:!1,type:{name:"(props: { message: SendableMessageType; }) => void"}},renderUserProfile:{defaultValue:null,description:"",name:"renderUserProfile",required:!1,type:{name:"(props: RenderUserProfileProps) => ReactElement>"}},renderUserMentionItem:{defaultValue:null,description:"",name:"renderUserMentionItem",required:!1,type:{name:"(props: { user: User; }) => Element"}},onUserProfileMessage:{defaultValue:null,description:"",name:"onUserProfileMessage",required:!1,type:{name:"(channel: GroupChannel) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannel/context/GroupChannelProvider.tsx#GroupChannelProvider"]={docgenInfo:GroupChannelProvider_GroupChannelProvider.__docgenInfo,name:"GroupChannelProvider",path:"src/modules/GroupChannel/context/GroupChannelProvider.tsx#GroupChannelProvider"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./node_modules/core-js/modules/es.object.assign.js");var GroupChannelUIView=__webpack_require__("./src/modules/GroupChannel/components/GroupChannelUI/GroupChannelUIView.tsx"),GroupChannelHeaderView=__webpack_require__("./src/modules/GroupChannel/components/GroupChannelHeader/GroupChannelHeaderView.tsx");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i void"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"FileMessage"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannel/components/FileViewer/index.tsx#FileViewer"]={docgenInfo:FileViewer_FileViewer.__docgenInfo,name:"FileViewer",path:"src/modules/GroupChannel/components/FileViewer/index.tsx#FileViewer"})}catch(__react_docgen_typescript_loader_error){}var RemoveMessageModalView=__webpack_require__("./src/modules/GroupChannel/components/RemoveMessageModal/RemoveMessageModalView.tsx");function RemoveMessageModal_extends(){return RemoveMessageModal_extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i void"}},onCancel:{defaultValue:null,description:"",name:"onCancel",required:!0,type:{name:"() => void"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"EveryMessage"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannel/components/RemoveMessageModal/index.tsx#RemoveMessageModal"]={docgenInfo:RemoveMessageModal_RemoveMessageModal.__docgenInfo,name:"RemoveMessageModal",path:"src/modules/GroupChannel/components/RemoveMessageModal/index.tsx#RemoveMessageModal"})}catch(__react_docgen_typescript_loader_error){}function Message_extends(){return Message_extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i void"}},children:{defaultValue:null,description:"Customizes all child components of the message.",name:"children",required:!1,type:{name:"ReactNode"}},renderMessageContent:{defaultValue:null,description:"A function that customizes the rendering of the content portion of message component.",name:"renderMessageContent",required:!1,type:{name:"(props: MessageContentProps) => ReactElement>"}},renderSuggestedReplies:{defaultValue:null,description:"A function that customizes the rendering of suggested replies component of messages.",name:"renderSuggestedReplies",required:!1,type:{name:"(props: SuggestedRepliesProps) => ReactElement>"}},renderCustomSeparator:{defaultValue:null,description:"A function that customizes the rendering of a separator between messages.",name:"renderCustomSeparator",required:!1,type:{name:"(props: RenderCustomSeparatorProps) => ReactElement>"}},renderEditInput:{defaultValue:null,description:"A function that customizes the rendering of the edit input portion of the message component.",name:"renderEditInput",required:!1,type:{name:"() => ReactElement>"}},renderMessage:{defaultValue:null,description:"@deprecated Please use `children` instead\n@description Customizes all child components of the message.",name:"renderMessage",required:!1,type:{name:"(props: RenderMessageParamsType) => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannel/components/Message/index.tsx#Message"]={docgenInfo:Message_Message.__docgenInfo,name:"Message",path:"src/modules/GroupChannel/components/Message/index.tsx#Message"})}catch(__react_docgen_typescript_loader_error){}var getMessagePartsInfo=__webpack_require__("./src/modules/GroupChannel/components/MessageList/getMessagePartsInfo.ts"),UnreadCount=__webpack_require__("./src/modules/GroupChannel/components/UnreadCount/index.tsx"),FrozenNotification=__webpack_require__("./src/modules/GroupChannel/components/FrozenNotification/index.tsx"),MessageProvider=__webpack_require__("./src/modules/Message/context/MessageProvider.tsx"),TypingIndicatorBubble=__webpack_require__("./src/ui/TypingIndicatorBubble/index.tsx");function MessageList_slicedToArray(arr,i){return function MessageList_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function MessageList_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function MessageList_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return MessageList_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return MessageList_arrayLikeToArray(o,minLen)}(arr,i)||function MessageList_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function MessageList_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&void 0!==arguments[0]&&arguments[0],elem=scrollRef.current;if(elem){var latestDistance=scrollDistanceFromBottomRef.current,currentDistance=elem.scrollHeight-elem.scrollTop-elem.offsetHeight;if(latestDistance "},description:"A function that customizes the rendering of each message component in the message list component.",name:"renderMessage",required:!1,type:{name:"(props: RenderMessageParamsType) => ReactElement>"}},renderMessageContent:{defaultValue:null,description:"A function that customizes the rendering of the content portion of each message component.",name:"renderMessageContent",required:!1,type:{name:"(props: MessageContentProps) => ReactElement>"}},renderCustomSeparator:{defaultValue:null,description:"A function that customizes the rendering of a separator component between messages.",name:"renderCustomSeparator",required:!1,type:{name:"(props: RenderCustomSeparatorProps) => ReactElement>"}},renderPlaceholderLoader:{defaultValue:{value:"() => "},description:"A function that customizes the rendering of a loading placeholder component.",name:"renderPlaceholderLoader",required:!1,type:{name:"() => ReactElement>"}},renderPlaceholderEmpty:{defaultValue:{value:'() => '},description:"A function that customizes the rendering of an empty placeholder component when there are no messages in the channel.",name:"renderPlaceholderEmpty",required:!1,type:{name:"() => ReactElement>"}},renderFrozenNotification:{defaultValue:{value:'() => '},description:"A function that customizes the rendering of a frozen notification component when the channel is frozen.",name:"renderFrozenNotification",required:!1,type:{name:"() => ReactElement>"}},renderSuggestedReplies:{defaultValue:null,description:"A function that customizes the rendering of a suggested replies component.",name:"renderSuggestedReplies",required:!1,type:{name:"(props: SuggestedRepliesProps) => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannel/components/MessageList/index.tsx#MessageList"]={docgenInfo:MessageList_MessageList.__docgenInfo,name:"MessageList",path:"src/modules/GroupChannel/components/MessageList/index.tsx#MessageList"})}catch(__react_docgen_typescript_loader_error){}var MessageInputWrapperView=__webpack_require__("./src/modules/GroupChannel/components/MessageInputWrapper/MessageInputWrapperView.tsx"),MessageInputWrapper_VoiceMessageInputWrapper=__webpack_require__("./src/modules/GroupChannel/components/MessageInputWrapper/VoiceMessageInputWrapper.tsx");function MessageInputWrapper_extends(){return MessageInputWrapper_extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i ReactElement>"}},renderVoiceMessageIcon:{defaultValue:null,description:"",name:"renderVoiceMessageIcon",required:!1,type:{name:"() => ReactElement>"}},renderSendMessageIcon:{defaultValue:null,description:"",name:"renderSendMessageIcon",required:!1,type:{name:"() => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannel/components/MessageInputWrapper/index.tsx#MessageInputWrapper"]={docgenInfo:MessageInputWrapper_MessageInputWrapper.__docgenInfo,name:"MessageInputWrapper",path:"src/modules/GroupChannel/components/MessageInputWrapper/index.tsx#MessageInputWrapper"})}catch(__react_docgen_typescript_loader_error){}try{VoiceMessageInputWrapper.displayName="VoiceMessageInputWrapper",VoiceMessageInputWrapper.__docgenInfo={description:"",displayName:"VoiceMessageInputWrapper",props:{channel:{defaultValue:null,description:"",name:"channel",required:!1,type:{name:"GroupChannel"}},onCancelClick:{defaultValue:null,description:"",name:"onCancelClick",required:!1,type:{name:"() => void"}},onSubmitClick:{defaultValue:null,description:"",name:"onSubmitClick",required:!1,type:{name:"(file: File, duration: number) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannel/components/MessageInputWrapper/index.tsx#VoiceMessageInputWrapper"]={docgenInfo:VoiceMessageInputWrapper.__docgenInfo,name:"VoiceMessageInputWrapper",path:"src/modules/GroupChannel/components/MessageInputWrapper/index.tsx#VoiceMessageInputWrapper"})}catch(__react_docgen_typescript_loader_error){}function GroupChannelUI_extends(){return GroupChannelUI_extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i ReactElement>"}},renderPlaceholderInvalid:{defaultValue:null,description:"A function that customizes the rendering of a invalid placeholder component.",name:"renderPlaceholderInvalid",required:!1,type:{name:"() => ReactElement>"}},renderPlaceholderEmpty:{defaultValue:null,description:"A function that customizes the rendering of an empty placeholder component when there are no messages in the channel.",name:"renderPlaceholderEmpty",required:!1,type:{name:"() => ReactElement>"}},renderChannelHeader:{defaultValue:null,description:"A function that customizes the rendering of a header component.",name:"renderChannelHeader",required:!1,type:{name:"(props: GroupChannelHeaderProps) => ReactElement>"}},renderMessageList:{defaultValue:null,description:"A function that customizes the rendering of a message list component.",name:"renderMessageList",required:!1,type:{name:"(props: GroupChannelMessageListProps) => ReactElement>"}},renderMessageInput:{defaultValue:null,description:"A function that customizes the rendering of a message input component.",name:"renderMessageInput",required:!1,type:{name:"() => ReactElement>"}},renderMessage:{defaultValue:null,description:"A function that customizes the rendering of each message component in the message list component.",name:"renderMessage",required:!1,type:{name:"(props: RenderMessageParamsType) => ReactElement>"}},renderMessageContent:{defaultValue:null,description:"A function that customizes the rendering of the content portion of each message component.",name:"renderMessageContent",required:!1,type:{name:"(props: MessageContentProps) => ReactElement>"}},renderSuggestedReplies:{defaultValue:null,description:"A function that customizes the rendering of the suggested replies of each message component.",name:"renderSuggestedReplies",required:!1,type:{name:"(props: SuggestedRepliesProps) => ReactElement>"}},renderCustomSeparator:{defaultValue:null,description:"A function that customizes the rendering of a separator component between messages.",name:"renderCustomSeparator",required:!1,type:{name:"(props: RenderCustomSeparatorProps) => ReactElement>"}},renderFrozenNotification:{defaultValue:null,description:"A function that customizes the rendering of a frozen notification component when the channel is frozen.",name:"renderFrozenNotification",required:!1,type:{name:"() => ReactElement>"}},renderFileUploadIcon:{defaultValue:null,description:"A function that customizes the rendering of the file upload icon in the message input component.",name:"renderFileUploadIcon",required:!1,type:{name:"() => ReactElement>"}},renderVoiceMessageIcon:{defaultValue:null,description:"A function that customizes the rendering of the voice message icon in the message input component.",name:"renderVoiceMessageIcon",required:!1,type:{name:"() => ReactElement>"}},renderSendMessageIcon:{defaultValue:null,description:"A function that customizes the rendering of the send message icon in the message input component.",name:"renderSendMessageIcon",required:!1,type:{name:"() => ReactElement>"}},renderTypingIndicator:{defaultValue:null,description:"A function that customizes the rendering of the typing indicator component.",name:"renderTypingIndicator",required:!1,type:{name:"() => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannel/components/GroupChannelUI/index.tsx#GroupChannelUI"]={docgenInfo:GroupChannelUI_GroupChannelUI.__docgenInfo,name:"GroupChannelUI",path:"src/modules/GroupChannel/components/GroupChannelUI/index.tsx#GroupChannelUI"})}catch(__react_docgen_typescript_loader_error){}var GroupChannel_GroupChannel=function GroupChannel(props){return react_default.a.createElement(GroupChannelProvider_GroupChannelProvider,props,react_default.a.createElement(components_GroupChannelUI,props))},modules_GroupChannel=GroupChannel_GroupChannel;try{GroupChannel_GroupChannel.displayName="GroupChannel",GroupChannel_GroupChannel.__docgenInfo={description:"",displayName:"GroupChannel",props:{channelUrl:{defaultValue:null,description:"",name:"channelUrl",required:!0,type:{name:"string"}},isReactionEnabled:{defaultValue:null,description:"",name:"isReactionEnabled",required:!1,type:{name:"boolean"}},isMessageGroupingEnabled:{defaultValue:null,description:"",name:"isMessageGroupingEnabled",required:!1,type:{name:"boolean"}},isMultipleFilesMessageEnabled:{defaultValue:null,description:"",name:"isMultipleFilesMessageEnabled",required:!1,type:{name:"boolean"}},showSearchIcon:{defaultValue:null,description:"",name:"showSearchIcon",required:!1,type:{name:"boolean"}},replyType:{defaultValue:null,description:"",name:"replyType",required:!1,type:{name:"enum",value:[{value:'"NONE"'},{value:'"QUOTE_REPLY"'},{value:'"THREAD"'}]}},threadReplySelectType:{defaultValue:null,description:"",name:"threadReplySelectType",required:!1,type:{name:"enum",value:[{value:'"PARENT"'},{value:'"THREAD"'}]}},disableUserProfile:{defaultValue:null,description:"",name:"disableUserProfile",required:!1,type:{name:"boolean"}},disableMarkAsRead:{defaultValue:null,description:"",name:"disableMarkAsRead",required:!1,type:{name:"boolean"}},scrollBehavior:{defaultValue:null,description:"",name:"scrollBehavior",required:!1,type:{name:"enum",value:[{value:'"smooth"'},{value:'"auto"'}]}},startingPoint:{defaultValue:null,description:"",name:"startingPoint",required:!1,type:{name:"number"}},animatedMessageId:{defaultValue:null,description:"",name:"animatedMessageId",required:!1,type:{name:"number"}},onMessageAnimated:{defaultValue:null,description:"",name:"onMessageAnimated",required:!1,type:{name:"() => void"}},messageListQueryParams:{defaultValue:null,description:"",name:"messageListQueryParams",required:!1,type:{name:"MessageListQueryParamsType"}},onBeforeSendUserMessage:{defaultValue:null,description:"",name:"onBeforeSendUserMessage",required:!1,type:{name:"OnBeforeHandler"}},onBeforeSendFileMessage:{defaultValue:null,description:"",name:"onBeforeSendFileMessage",required:!1,type:{name:"OnBeforeHandler"}},onBeforeSendVoiceMessage:{defaultValue:null,description:"",name:"onBeforeSendVoiceMessage",required:!1,type:{name:"OnBeforeHandler"}},onBeforeSendMultipleFilesMessage:{defaultValue:null,description:"",name:"onBeforeSendMultipleFilesMessage",required:!1,type:{name:"OnBeforeHandler"}},onBeforeUpdateUserMessage:{defaultValue:null,description:"",name:"onBeforeUpdateUserMessage",required:!1,type:{name:"OnBeforeHandler"}},onBackClick:{defaultValue:null,description:"",name:"onBackClick",required:!1,type:{name:"() => void"}},onChatHeaderActionClick:{defaultValue:null,description:"",name:"onChatHeaderActionClick",required:!1,type:{name:"(event: MouseEvent) => void"}},onReplyInThreadClick:{defaultValue:null,description:"",name:"onReplyInThreadClick",required:!1,type:{name:"(props: { message: SendableMessageType; }) => void"}},onSearchClick:{defaultValue:null,description:"",name:"onSearchClick",required:!1,type:{name:"() => void"}},onQuoteMessageClick:{defaultValue:null,description:"",name:"onQuoteMessageClick",required:!1,type:{name:"(props: { message: SendableMessageType; }) => void"}},renderUserProfile:{defaultValue:null,description:"",name:"renderUserProfile",required:!1,type:{name:"(props: RenderUserProfileProps) => ReactElement>"}},renderUserMentionItem:{defaultValue:null,description:"",name:"renderUserMentionItem",required:!1,type:{name:"(props: { user: User; }) => Element"}},onUserProfileMessage:{defaultValue:null,description:"",name:"onUserProfileMessage",required:!1,type:{name:"(channel: GroupChannel) => void"}},renderPlaceholderLoader:{defaultValue:null,description:"A function that customizes the rendering of a loading placeholder component.",name:"renderPlaceholderLoader",required:!1,type:{name:"() => ReactElement>"}},renderPlaceholderInvalid:{defaultValue:null,description:"A function that customizes the rendering of a invalid placeholder component.",name:"renderPlaceholderInvalid",required:!1,type:{name:"() => ReactElement>"}},renderPlaceholderEmpty:{defaultValue:null,description:"A function that customizes the rendering of an empty placeholder component when there are no messages in the channel.",name:"renderPlaceholderEmpty",required:!1,type:{name:"() => ReactElement>"}},renderChannelHeader:{defaultValue:null,description:"A function that customizes the rendering of a header component.",name:"renderChannelHeader",required:!1,type:{name:"(props: GroupChannelHeaderProps) => ReactElement>"}},renderMessageList:{defaultValue:null,description:"A function that customizes the rendering of a message list component.",name:"renderMessageList",required:!1,type:{name:"(props: GroupChannelMessageListProps) => ReactElement>"}},renderMessageInput:{defaultValue:null,description:"A function that customizes the rendering of a message input component.",name:"renderMessageInput",required:!1,type:{name:"() => ReactElement>"}},renderMessage:{defaultValue:null,description:"A function that customizes the rendering of each message component in the message list component.",name:"renderMessage",required:!1,type:{name:"(props: RenderMessageParamsType) => ReactElement>"}},renderMessageContent:{defaultValue:null,description:"A function that customizes the rendering of the content portion of each message component.",name:"renderMessageContent",required:!1,type:{name:"(props: MessageContentProps) => ReactElement>"}},renderSuggestedReplies:{defaultValue:null,description:"A function that customizes the rendering of the suggested replies of each message component.",name:"renderSuggestedReplies",required:!1,type:{name:"(props: SuggestedRepliesProps) => ReactElement>"}},renderCustomSeparator:{defaultValue:null,description:"A function that customizes the rendering of a separator component between messages.",name:"renderCustomSeparator",required:!1,type:{name:"(props: RenderCustomSeparatorProps) => ReactElement>"}},renderFrozenNotification:{defaultValue:null,description:"A function that customizes the rendering of a frozen notification component when the channel is frozen.",name:"renderFrozenNotification",required:!1,type:{name:"() => ReactElement>"}},renderFileUploadIcon:{defaultValue:null,description:"A function that customizes the rendering of the file upload icon in the message input component.",name:"renderFileUploadIcon",required:!1,type:{name:"() => ReactElement>"}},renderVoiceMessageIcon:{defaultValue:null,description:"A function that customizes the rendering of the voice message icon in the message input component.",name:"renderVoiceMessageIcon",required:!1,type:{name:"() => ReactElement>"}},renderSendMessageIcon:{defaultValue:null,description:"A function that customizes the rendering of the send message icon in the message input component.",name:"renderSendMessageIcon",required:!1,type:{name:"() => ReactElement>"}},renderTypingIndicator:{defaultValue:null,description:"A function that customizes the rendering of the typing indicator component.",name:"renderTypingIndicator",required:!1,type:{name:"() => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannel/index.tsx#GroupChannel"]={docgenInfo:GroupChannel_GroupChannel.__docgenInfo,name:"GroupChannel",path:"src/modules/GroupChannel/index.tsx#GroupChannel"})}catch(__react_docgen_typescript_loader_error){}var GroupChannelList=__webpack_require__("./src/modules/GroupChannelList/index.tsx"),Channel=__webpack_require__("./src/modules/Channel/index.tsx"),ChannelList=__webpack_require__("./src/modules/ChannelList/index.tsx"),ChannelSettings=__webpack_require__("./src/modules/ChannelSettings/index.tsx"),MessageSearch=__webpack_require__("./src/modules/MessageSearch/index.tsx"),context_utils=__webpack_require__("./src/modules/Thread/context/utils.ts"),ChannelStateTypes=(__webpack_require__("./node_modules/core-js/modules/es.array.find-index.js"),__webpack_require__("./node_modules/core-js/modules/es.array.flat.js"),function(ChannelStateTypes){return ChannelStateTypes.NIL="NIL",ChannelStateTypes.LOADING="LOADING",ChannelStateTypes.INVALID="INVALID",ChannelStateTypes.INITIALIZED="INITIALIZED",ChannelStateTypes}({})),ParentMessageStateTypes=function(ParentMessageStateTypes){return ParentMessageStateTypes.NIL="NIL",ParentMessageStateTypes.LOADING="LOADING",ParentMessageStateTypes.INVALID="INVALID",ParentMessageStateTypes.INITIALIZED="INITIALIZED",ParentMessageStateTypes}({}),ThreadListStateTypes=function(ThreadListStateTypes){return ThreadListStateTypes.NIL="NIL",ThreadListStateTypes.LOADING="LOADING",ThreadListStateTypes.INVALID="INVALID",ThreadListStateTypes.INITIALIZED="INITIALIZED",ThreadListStateTypes}({}),ThreadContextActionTypes=function(ThreadContextActionTypes){return ThreadContextActionTypes.INIT_USER_ID="INIT_USER_ID",ThreadContextActionTypes.GET_CHANNEL_START="GET_CHANNEL_START",ThreadContextActionTypes.GET_CHANNEL_SUCCESS="GET_CHANNEL_SUCCESS",ThreadContextActionTypes.GET_CHANNEL_FAILURE="GET_CHANNEL_FAILURE",ThreadContextActionTypes.SET_EMOJI_CONTAINER="SET_EMOJI_CONTAINER",ThreadContextActionTypes.GET_PARENT_MESSAGE_START="GET_PARENT_MESSAGE_START",ThreadContextActionTypes.GET_PARENT_MESSAGE_SUCCESS="GET_PARENT_MESSAGE_SUCCESS",ThreadContextActionTypes.GET_PARENT_MESSAGE_FAILURE="GET_PARENT_MESSAGE_FAILURE",ThreadContextActionTypes.INITIALIZE_THREAD_LIST_START="INITIALIZE_THREAD_LIST_START",ThreadContextActionTypes.INITIALIZE_THREAD_LIST_SUCCESS="INITIALIZE_THREAD_LIST_SUCCESS",ThreadContextActionTypes.INITIALIZE_THREAD_LIST_FAILURE="INITIALIZE_THREAD_LIST_FAILURE",ThreadContextActionTypes.GET_PREV_MESSAGES_START="GET_PREV_MESSAGES_START",ThreadContextActionTypes.GET_PREV_MESSAGES_SUCESS="GET_PREV_MESSAGES_SUCESS",ThreadContextActionTypes.GET_PREV_MESSAGES_FAILURE="GET_PREV_MESSAGES_FAILURE",ThreadContextActionTypes.GET_NEXT_MESSAGES_START="GET_NEXT_MESSAGES_START",ThreadContextActionTypes.GET_NEXT_MESSAGES_SUCESS="GET_NEXT_MESSAGES_SUCESS",ThreadContextActionTypes.GET_NEXT_MESSAGES_FAILURE="GET_NEXT_MESSAGES_FAILURE",ThreadContextActionTypes.SEND_MESSAGE_START="SEND_MESSAGE_START",ThreadContextActionTypes.SEND_MESSAGE_SUCESS="SEND_MESSAGE_SUCESS",ThreadContextActionTypes.SEND_MESSAGE_FAILURE="SEND_MESSAGE_FAILURE",ThreadContextActionTypes.RESEND_MESSAGE_START="RESEND_MESSAGE_START",ThreadContextActionTypes.ON_MESSAGE_DELETED_BY_REQ_ID="ON_MESSAGE_DELETED_BY_REQ_ID",ThreadContextActionTypes.ON_MESSAGE_RECEIVED="ON_MESSAGE_RECEIVED",ThreadContextActionTypes.ON_MESSAGE_UPDATED="ON_MESSAGE_UPDATED",ThreadContextActionTypes.ON_MESSAGE_DELETED="ON_MESSAGE_DELETED",ThreadContextActionTypes.ON_REACTION_UPDATED="ON_REACTION_UPDATED",ThreadContextActionTypes.ON_FILE_INFO_UPLOADED="ON_FILE_INFO_UPLOADED",ThreadContextActionTypes.ON_USER_MUTED="ON_USER_MUTED",ThreadContextActionTypes.ON_USER_UNMUTED="ON_USER_UNMUTED",ThreadContextActionTypes.ON_USER_BANNED="ON_USER_BANNED",ThreadContextActionTypes.ON_USER_UNBANNED="ON_USER_UNBANNED",ThreadContextActionTypes.ON_USER_LEFT="ON_USER_LEFT",ThreadContextActionTypes.ON_CHANNEL_FROZEN="ON_CHANNEL_FROZEN",ThreadContextActionTypes.ON_CHANNEL_UNFROZEN="ON_CHANNEL_UNFROZEN",ThreadContextActionTypes.ON_OPERATOR_UPDATED="ON_OPERATOR_UPDATED",ThreadContextActionTypes.ON_TYPING_STATUS_UPDATED="ON_TYPING_STATUS_UPDATED",ThreadContextActionTypes}({});function reducer_typeof(o){return reducer_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},reducer_typeof(o)}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return reducer_arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function reducer_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return reducer_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return reducer_arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function reducer_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);ianchorMessageCreatedAt})),prevThreadMessages=anchorIndex>-1?threadedMessages.slice(0,anchorIndex):threadedMessages,anchorThreadMessage=null!=anchorMessage&&anchorMessage.messageId?[anchorMessage]:[],nextThreadMessages=anchorIndex>-1?threadedMessages.slice(anchorIndex):[];return reducer_objectSpread(reducer_objectSpread({},state),{},{threadListState:ThreadListStateTypes.INITIALIZED,hasMorePrev:-1===anchorIndex||30===anchorIndex,hasMoreNext:threadedMessages.length-anchorIndex==30,allThreadMessages:[prevThreadMessages,anchorThreadMessage,nextThreadMessages].flat()});case ThreadContextActionTypes.INITIALIZE_THREAD_LIST_FAILURE:return reducer_objectSpread(reducer_objectSpread({},state),{},{threadListState:ThreadListStateTypes.INVALID,allThreadMessages:[]});case ThreadContextActionTypes.GET_NEXT_MESSAGES_START:return reducer_objectSpread({},state);case ThreadContextActionTypes.GET_NEXT_MESSAGES_SUCESS:var _threadedMessages=action.payload.threadedMessages;return reducer_objectSpread(reducer_objectSpread({},state),{},{hasMoreNext:30===_threadedMessages.length,allThreadMessages:[].concat(_toConsumableArray(state.allThreadMessages),_toConsumableArray(_threadedMessages))});case ThreadContextActionTypes.GET_NEXT_MESSAGES_FAILURE:return reducer_objectSpread(reducer_objectSpread({},state),{},{hasMoreNext:!1});case ThreadContextActionTypes.GET_PREV_MESSAGES_START:return reducer_objectSpread({},state);case ThreadContextActionTypes.GET_PREV_MESSAGES_SUCESS:var _threadedMessages2=action.payload.threadedMessages;return reducer_objectSpread(reducer_objectSpread({},state),{},{hasMorePrev:30===_threadedMessages2.length,allThreadMessages:[].concat(_toConsumableArray(_threadedMessages2),_toConsumableArray(state.allThreadMessages))});case ThreadContextActionTypes.GET_PREV_MESSAGES_FAILURE:return reducer_objectSpread(reducer_objectSpread({},state),{},{hasMorePrev:!1});case ThreadContextActionTypes.ON_MESSAGE_RECEIVED:var _state$currentChannel,_message$parentMessag,_state$parentMessage,_state$parentMessage2,_action$payload2=action.payload,channel=_action$payload2.channel,message=_action$payload2.message;if((null===(_state$currentChannel=state.currentChannel)||void 0===_state$currentChannel?void 0:_state$currentChannel.url)!==(null==channel?void 0:channel.url)||state.hasMoreNext||(null==message||null===(_message$parentMessag=message.parentMessage)||void 0===_message$parentMessag?void 0:_message$parentMessag.messageId)!==(null==state||null===(_state$parentMessage=state.parentMessage)||void 0===_state$parentMessage?void 0:_state$parentMessage.messageId))return state;var isAlreadyReceived=state.allThreadMessages.findIndex((function(m){return m.messageId===message.messageId}))>-1;return reducer_objectSpread(reducer_objectSpread({},state),{},{parentMessage:(null===(_state$parentMessage2=state.parentMessage)||void 0===_state$parentMessage2?void 0:_state$parentMessage2.messageId)===(null==message?void 0:message.messageId)?message:state.parentMessage,allThreadMessages:isAlreadyReceived?state.allThreadMessages.map((function(m){return m.messageId===message.messageId?message:m})):[].concat(_toConsumableArray(state.allThreadMessages.filter((function(m){return(null==m?void 0:m.reqId)!==(null==message?void 0:message.reqId)}))),[message])});case ThreadContextActionTypes.ON_MESSAGE_UPDATED:var _state$currentChannel2,_state$parentMessage3,_state$allThreadMessa,_action$payload3=action.payload,_channel=_action$payload3.channel,_message=_action$payload3.message;return(null===(_state$currentChannel2=state.currentChannel)||void 0===_state$currentChannel2?void 0:_state$currentChannel2.url)!==(null==_channel?void 0:_channel.url)?state:reducer_objectSpread(reducer_objectSpread({},state),{},{parentMessage:(null===(_state$parentMessage3=state.parentMessage)||void 0===_state$parentMessage3?void 0:_state$parentMessage3.messageId)===(null==_message?void 0:_message.messageId)?_message:state.parentMessage,allThreadMessages:null===(_state$allThreadMessa=state.allThreadMessages)||void 0===_state$allThreadMessa?void 0:_state$allThreadMessa.map((function(msg){return(null==msg?void 0:msg.messageId)===(null==_message?void 0:_message.messageId)?_message:msg}))});case ThreadContextActionTypes.ON_MESSAGE_DELETED:var _state$currentChannel3,_state$parentMessage4,_state$allThreadMessa2,_state$localThreadMes,_action$payload4=action.payload,_channel2=_action$payload4.channel,messageId=_action$payload4.messageId;return(null===(_state$currentChannel3=state.currentChannel)||void 0===_state$currentChannel3?void 0:_state$currentChannel3.url)!==(null==_channel2?void 0:_channel2.url)?state:(null==state||null===(_state$parentMessage4=state.parentMessage)||void 0===_state$parentMessage4?void 0:_state$parentMessage4.messageId)===messageId?reducer_objectSpread(reducer_objectSpread({},state),{},{parentMessage:null,parentMessageState:ParentMessageStateTypes.NIL,allThreadMessages:[]}):reducer_objectSpread(reducer_objectSpread({},state),{},{allThreadMessages:null===(_state$allThreadMessa2=state.allThreadMessages)||void 0===_state$allThreadMessa2?void 0:_state$allThreadMessa2.filter((function(msg){return(null==msg?void 0:msg.messageId)!==messageId})),localThreadMessages:null===(_state$localThreadMes=state.localThreadMessages)||void 0===_state$localThreadMes?void 0:_state$localThreadMes.filter((function(msg){return(null==msg?void 0:msg.messageId)!==messageId}))});case ThreadContextActionTypes.ON_MESSAGE_DELETED_BY_REQ_ID:return reducer_objectSpread(reducer_objectSpread({},state),{},{localThreadMessages:state.localThreadMessages.filter((function(m){return!Object(context_utils.a)(m.reqId,action.payload)}))});case ThreadContextActionTypes.ON_REACTION_UPDATED:var _action$payload5,_state$parentMessage5,_state$parentMessage6,_state$parentMessage7,reactionEvent=null===(_action$payload5=action.payload)||void 0===_action$payload5?void 0:_action$payload5.reactionEvent;if((null==state||null===(_state$parentMessage5=state.parentMessage)||void 0===_state$parentMessage5?void 0:_state$parentMessage5.messageId)===(null==reactionEvent?void 0:reactionEvent.messageId))null===(_state$parentMessage6=state.parentMessage)||void 0===_state$parentMessage6||null===(_state$parentMessage7=_state$parentMessage6.applyReactionEvent)||void 0===_state$parentMessage7||_state$parentMessage7.call(_state$parentMessage6,reactionEvent);return reducer_objectSpread(reducer_objectSpread({},state),{},{allThreadMessages:state.allThreadMessages.map((function(m){var _m$applyReactionEvent;return(null==reactionEvent?void 0:reactionEvent.messageId)===(null==m?void 0:m.messageId)?(null==m||null===(_m$applyReactionEvent=m.applyReactionEvent)||void 0===_m$applyReactionEvent||_m$applyReactionEvent.call(m,reactionEvent),m):m}))});case ThreadContextActionTypes.ON_USER_MUTED:var _state$currentChannel4,_action$payload6=action.payload,_channel3=_action$payload6.channel,user=_action$payload6.user;return(null===(_state$currentChannel4=state.currentChannel)||void 0===_state$currentChannel4?void 0:_state$currentChannel4.url)!==(null==_channel3?void 0:_channel3.url)||state.currentUserId!==(null==user?void 0:user.userId)?state:reducer_objectSpread(reducer_objectSpread({},state),{},{isMuted:!0});case ThreadContextActionTypes.ON_USER_UNMUTED:var _state$currentChannel5,_action$payload7=action.payload,_channel4=_action$payload7.channel,_user=_action$payload7.user;return(null===(_state$currentChannel5=state.currentChannel)||void 0===_state$currentChannel5?void 0:_state$currentChannel5.url)!==(null==_channel4?void 0:_channel4.url)||state.currentUserId!==(null==_user?void 0:_user.userId)?state:reducer_objectSpread(reducer_objectSpread({},state),{},{isMuted:!1});case ThreadContextActionTypes.ON_USER_BANNED:return reducer_objectSpread(reducer_objectSpread({},state),{},{channelState:ChannelStateTypes.NIL,threadListState:ThreadListStateTypes.NIL,parentMessageState:ParentMessageStateTypes.NIL,currentChannel:null,parentMessage:null,allThreadMessages:[],hasMorePrev:!1,hasMoreNext:!1});case ThreadContextActionTypes.ON_USER_UNBANNED:return reducer_objectSpread({},state);case ThreadContextActionTypes.ON_USER_LEFT:return reducer_objectSpread(reducer_objectSpread({},state),{},{channelState:ChannelStateTypes.NIL,threadListState:ThreadListStateTypes.NIL,parentMessageState:ParentMessageStateTypes.NIL,currentChannel:null,parentMessage:null,allThreadMessages:[],hasMorePrev:!1,hasMoreNext:!1});case ThreadContextActionTypes.ON_CHANNEL_FROZEN:return reducer_objectSpread(reducer_objectSpread({},state),{},{isChannelFrozen:!0});case ThreadContextActionTypes.ON_CHANNEL_UNFROZEN:return reducer_objectSpread(reducer_objectSpread({},state),{},{isChannelFrozen:!1});case ThreadContextActionTypes.ON_OPERATOR_UPDATED:var _state$currentChannel6,_channel5=action.payload.channel;return(null==_channel5?void 0:_channel5.url)===(null===(_state$currentChannel6=state.currentChannel)||void 0===_state$currentChannel6?void 0:_state$currentChannel6.url)?reducer_objectSpread(reducer_objectSpread({},state),{},{currentChannel:_channel5}):state;case ThreadContextActionTypes.SEND_MESSAGE_START:var _message2=action.payload.message;return reducer_objectSpread(reducer_objectSpread({},state),{},{localThreadMessages:[].concat(_toConsumableArray(state.localThreadMessages),[_message2])});case ThreadContextActionTypes.SEND_MESSAGE_SUCESS:var _message3=action.payload.message;return reducer_objectSpread(reducer_objectSpread({},state),{},{allThreadMessages:[].concat(_toConsumableArray(state.allThreadMessages.filter((function(m){return!Object(context_utils.a)(null==m?void 0:m.reqId,null==_message3?void 0:_message3.reqId)}))),[_message3]),localThreadMessages:state.localThreadMessages.filter((function(m){return!Object(context_utils.a)(null==m?void 0:m.reqId,null==_message3?void 0:_message3.reqId)}))});case ThreadContextActionTypes.SEND_MESSAGE_FAILURE:var _message4=action.payload.message;return reducer_objectSpread(reducer_objectSpread({},state),{},{localThreadMessages:state.localThreadMessages.map((function(m){return Object(context_utils.a)(null==m?void 0:m.reqId,null==_message4?void 0:_message4.reqId)?_message4:m}))});case ThreadContextActionTypes.RESEND_MESSAGE_START:var _message5=action.payload.message;return reducer_objectSpread(reducer_objectSpread({},state),{},{localThreadMessages:state.localThreadMessages.map((function(m){return Object(context_utils.a)(null==m?void 0:m.reqId,null==_message5?void 0:_message5.reqId)?_message5:m}))});case ThreadContextActionTypes.ON_FILE_INFO_UPLOADED:var _state$currentChannel7,_messageParams,_action$payload8=action.payload,channelUrl=_action$payload8.channelUrl,requestId=_action$payload8.requestId,index=_action$payload8.index,uploadableFileInfo=_action$payload8.uploadableFileInfo,error=_action$payload8.error;if(!Object(context_utils.a)(channelUrl,null===(_state$currentChannel7=state.currentChannel)||void 0===_state$currentChannel7?void 0:_state$currentChannel7.url))return state;if(error)return state;var localThreadMessages=state.localThreadMessages,messageToUpdate=localThreadMessages.find((function(message){return Object(context_utils.a)(function hasReqId(message){return"reqId"in message}(message)&&message.reqId,requestId)})),fileInfoList=null===(_messageParams=messageToUpdate.messageParams)||void 0===_messageParams?void 0:_messageParams.fileInfoList;return Array.isArray(fileInfoList)&&(fileInfoList[index]=uploadableFileInfo),reducer_objectSpread(reducer_objectSpread({},state),{},{localThreadMessages:localThreadMessages});case ThreadContextActionTypes.ON_TYPING_STATUS_UPDATED:var _state$currentChannel8,_action$payload9=action.payload,_channel6=_action$payload9.channel,typingMembers=_action$payload9.typingMembers;return Object(context_utils.a)(_channel6.url,null===(_state$currentChannel8=state.currentChannel)||void 0===_state$currentChannel8?void 0:_state$currentChannel8.url)?reducer_objectSpread(reducer_objectSpread({},state),{},{typingMembers:typingMembers}):state;default:return state}}var dux_initialState={currentChannel:null,allThreadMessages:[],localThreadMessages:[],parentMessage:null,channelState:ChannelStateTypes.NIL,parentMessageState:ParentMessageStateTypes.NIL,threadListState:ThreadListStateTypes.NIL,hasMorePrev:!1,hasMoreNext:!1,emojiContainer:{},isMuted:!1,isChannelFrozen:!1,currentUserId:"",typingMembers:[]};function useGetParentMessage_typeof(o){return useGetParentMessage_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},useGetParentMessage_typeof(o)}function useGetParentMessage_regeneratorRuntime(){useGetParentMessage_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==useGetParentMessage_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw new Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function useGetParentMessage_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function useGetParentMessage(_ref,_ref2){var channelUrl=_ref.channelUrl,sdkInit=_ref.sdkInit,parentMessage=_ref.parentMessage,sdk=_ref2.sdk,logger=_ref2.logger,threadDispatcher=_ref2.threadDispatcher;Object(react.useEffect)((function(){var _sdk$message;if(sdkInit&&null!=sdk&&null!==(_sdk$message=sdk.message)&&void 0!==_sdk$message&&_sdk$message.getMessage){threadDispatcher({type:ThreadContextActionTypes.GET_PARENT_MESSAGE_START,payload:null});var params={channelUrl:channelUrl,channelType:_bundle_c578be85.d.GROUP,messageId:null==parentMessage?void 0:parentMessage.messageId,includeMetaArray:!0,includeReactions:!0,includeThreadInfo:!0,includeParentMessageInfo:!0};logger.info("Thread | useGetParentMessage: Get parent message start.",params);var fetchParentMessage=function(){var _ref3=function useGetParentMessage_asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){useGetParentMessage_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){useGetParentMessage_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}(useGetParentMessage_regeneratorRuntime().mark((function _callee(){var _sdk$message$getMessa,_sdk$message2,data;return useGetParentMessage_regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=2,null===(_sdk$message$getMessa=(_sdk$message2=sdk.message).getMessage)||void 0===_sdk$message$getMessa?void 0:_sdk$message$getMessa.call(_sdk$message2,params);case 2:return data=_context.sent,_context.abrupt("return",data);case 4:case"end":return _context.stop()}}),_callee)})));return function fetchParentMessage(){return _ref3.apply(this,arguments)}}();fetchParentMessage().then((function(parentMsg){logger.info("Thread | useGetParentMessage: Get parent message succeeded.",parentMessage),parentMsg.ogMetaData=(null==parentMessage?void 0:parentMessage.ogMetaData)||null,threadDispatcher({type:ThreadContextActionTypes.GET_PARENT_MESSAGE_SUCCESS,payload:{parentMessage:parentMsg}})})).catch((function(error){logger.info("Thread | useGetParentMessage: Get parent message failed.",error),threadDispatcher({type:ThreadContextActionTypes.GET_PARENT_MESSAGE_FAILURE,payload:error})}))}}),[sdkInit,null==parentMessage?void 0:parentMessage.messageId])}__webpack_require__("./node_modules/core-js/modules/web.url.js");var actionTypes=__webpack_require__("./src/modules/Channel/context/dux/actionTypes.ts"),internalInterfaces=__webpack_require__("./src/modules/internalInterfaces.ts");function useHandleThreadPubsubEvents_typeof(o){return useHandleThreadPubsubEvents_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},useHandleThreadPubsubEvents_typeof(o)}function useHandleThreadPubsubEvents_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function useHandleThreadPubsubEvents_objectSpread(e){for(var r=1;r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function useThreadFetchers_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function useThreadFetchers_asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){useThreadFetchers_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){useThreadFetchers_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}function useThreadFetchers_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function useThreadFetchers_defineProperty(obj,key,value){return(key=function useThreadFetchers_toPropertyKey(t){var i=function useThreadFetchers_toPrimitive(t,r){if("object"!=useThreadFetchers_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=useThreadFetchers_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==useThreadFetchers_typeof(i)?i:String(i)}(key))in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function getThreadMessageListParams(params){return function useThreadFetchers_objectSpread(e){for(var r=1;rarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&(params.mentionedUsers=mentionedUsers),params.mentionedMessageTemplate=isMentionEnabled&&mentionTemplate?mentionTemplate:message,params}();logger.info("Thread | useUpdateMessageCallback: Message update start.",params),null==currentChannel||null===(_currentChannel$updat=currentChannel.updateUserMessage)||void 0===_currentChannel$updat||_currentChannel$updat.call(currentChannel,messageId,params).then((function(message){logger.info("Thread | useUpdateMessageCallback: Message update succeeded.",message),threadDispatcher({type:ThreadContextActionTypes.ON_MESSAGE_UPDATED,payload:{channel:currentChannel,message:message}}),pubSub.publish(topics.c.UPDATE_USER_MESSAGE,{fromSelector:!0,channel:currentChannel,message:message,publishingModules:[internalInterfaces.a.THREAD]})}))}),[currentChannel,isMentionEnabled])}({currentChannel:currentChannel,isMentionEnabled:isMentionEnabled},{logger:logger,pubSub:pubSub,threadDispatcher:threadDispatcher}),deleteMessage=function useDeleteMessageCallback(_ref,_ref2){var currentChannel=_ref.currentChannel,threadDispatcher=_ref.threadDispatcher,logger=_ref2.logger;return Object(react.useCallback)((function(message){logger.info("Thread | useDeleteMessageCallback: Deleting message.",message);var sendingStatus=message.sendingStatus;return new Promise((function(resolve,reject){var _currentChannel$delet;logger.info("Thread | useDeleteMessageCallback: Deleting message requestState:",sendingStatus),"failed"!==sendingStatus&&"pending"!==sendingStatus||(logger.info("Thread | useDeleteMessageCallback: Deleted message from local:",message),threadDispatcher({type:ThreadContextActionTypes.ON_MESSAGE_DELETED_BY_REQ_ID,payload:message.reqId}),resolve()),logger.info("Thread | useDeleteMessageCallback: Deleting message from remote:",sendingStatus),null==currentChannel||null===(_currentChannel$delet=currentChannel.deleteMessage)||void 0===_currentChannel$delet||_currentChannel$delet.call(currentChannel,message).then((function(){logger.info("Thread | useDeleteMessageCallback: Deleting message success!",message),threadDispatcher({type:ThreadContextActionTypes.ON_MESSAGE_DELETED,payload:{message:message,channel:currentChannel}}),resolve()})).catch((function(err){logger.warning("Thread | useDeleteMessageCallback: Deleting message failed!",err),reject(err)}))}))}),[currentChannel])}({currentChannel:currentChannel,threadDispatcher:threadDispatcher},{logger:logger}),nicknamesMap=Object(react.useMemo)((function(){return replyType&¤tChannel?Object(context_utils.b)(null==currentChannel?void 0:currentChannel.members):new Map}),[null==currentChannel?void 0:currentChannel.members]);return react_default.a.createElement(ThreadContext.Provider,{value:{channelUrl:channelUrl,message:propsMessage,onHeaderActionClick:onHeaderActionClick,onMoveToParentMessage:onMoveToParentMessage,isMultipleFilesMessageEnabled:isMultipleFilesMessageEnabled,currentChannel:currentChannel,allThreadMessages:allThreadMessages,localThreadMessages:localThreadMessages,parentMessage:parentMessage,channelState:channelState,threadListState:threadListState,parentMessageState:parentMessageState,hasMorePrev:hasMorePrev,hasMoreNext:hasMoreNext,emojiContainer:emojiContainer,fetchPrevThreads:loadPrevious,fetchNextThreads:loadNext,toggleReaction:toggleReaction,sendMessage:sendMessage,sendFileMessage:sendFileMessage,sendVoiceMessage:sendVoiceMessage,sendMultipleFilesMessage:sendMultipleFilesMessage,resendMessage:resendMessage,updateMessage:updateMessage,deleteMessage:deleteMessage,nicknamesMap:nicknamesMap,isMuted:isMuted,isChannelFrozen:isChannelFrozen,currentUserId:currentUserId,typingMembers:typingMembers}},react_default.a.createElement(UserProfileContext.b,{disableUserProfile:null!=disableUserProfile?disableUserProfile:config.disableUserProfile,renderUserProfile:renderUserProfile,onUserProfileMessage:onUserProfileMessage},children))},ThreadProvider_useThreadContext=function useThreadContext(){return react_default.a.useContext(ThreadContext)};try{ThreadProvider_ThreadProvider.displayName="ThreadProvider",ThreadProvider_ThreadProvider.__docgenInfo={description:"",displayName:"ThreadProvider",props:{channelUrl:{defaultValue:null,description:"",name:"channelUrl",required:!0,type:{name:"string"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"SendableMessageType"}},onHeaderActionClick:{defaultValue:null,description:"",name:"onHeaderActionClick",required:!1,type:{name:"() => void"}},onMoveToParentMessage:{defaultValue:null,description:"",name:"onMoveToParentMessage",required:!1,type:{name:"(props: { message: SendableMessageType; channel: GroupChannel; }) => void"}},onBeforeSendUserMessage:{defaultValue:null,description:"",name:"onBeforeSendUserMessage",required:!1,type:{name:"(message: string, quotedMessage?: SendableMessageType) => UserMessageCreateParams"}},onBeforeSendFileMessage:{defaultValue:null,description:"",name:"onBeforeSendFileMessage",required:!1,type:{name:"(file: File, quotedMessage?: SendableMessageType) => FileMessageCreateParams"}},onBeforeSendVoiceMessage:{defaultValue:null,description:"",name:"onBeforeSendVoiceMessage",required:!1,type:{name:"(file: File, quotedMessage?: SendableMessageType) => FileMessageCreateParams"}},onBeforeSendMultipleFilesMessage:{defaultValue:null,description:"",name:"onBeforeSendMultipleFilesMessage",required:!1,type:{name:"(files: File[], quotedMessage?: SendableMessageType) => MultipleFilesMessageCreateParams"}},disableUserProfile:{defaultValue:null,description:"",name:"disableUserProfile",required:!1,type:{name:"boolean"}},renderUserProfile:{defaultValue:null,description:"",name:"renderUserProfile",required:!1,type:{name:"(props: { user: User; close: () => void; }) => ReactElement>"}},isMultipleFilesMessageEnabled:{defaultValue:null,description:"",name:"isMultipleFilesMessageEnabled",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/Thread/context/ThreadProvider.tsx#ThreadProvider"]={docgenInfo:ThreadProvider_ThreadProvider.__docgenInfo,name:"ThreadProvider",path:"src/modules/Thread/context/ThreadProvider.tsx#ThreadProvider"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./src/modules/Thread/components/ThreadUI/index.scss");var LocalizationContext=__webpack_require__("./src/lib/LocalizationContext.tsx"),GroupChannelHeader_utils=__webpack_require__("./src/modules/GroupChannel/components/GroupChannelHeader/utils.ts"),format=(__webpack_require__("./node_modules/core-js/modules/es.array.splice.js"),__webpack_require__("./node_modules/date-fns/esm/format/index.js")),Modal=(__webpack_require__("./src/modules/Thread/components/ParentMessageInfo/index.scss"),__webpack_require__("./src/ui/Modal/index.tsx")),Button=__webpack_require__("./src/ui/Button/index.tsx"),stringFormatterUtils=__webpack_require__("./src/ui/Label/stringFormatterUtils.ts"),Thread_components_RemoveMessageModal=function RemoveMessage(props){var _message$threadInfo,onCancel=props.onCancel,_onSubmit=props.onSubmit,message=props.message,stringSet=Object(react.useContext)(LocalizationContext.a).stringSet,deleteMessage=ThreadProvider_useThreadContext().deleteMessage;return react_default.a.createElement(Modal.b,{type:Button.b.DANGER,disabled:(null==message||null===(_message$threadInfo=message.threadInfo)||void 0===_message$threadInfo?void 0:_message$threadInfo.replyCount)>0,onCancel:onCancel,onSubmit:function onSubmit(){deleteMessage(message).then((function(){null==onCancel||onCancel(),null==_onSubmit||_onSubmit()}))},submitText:stringSet.MESSAGE_MENU__DELETE,titleText:Object(stringFormatterUtils.a)(stringSet,message)})};try{RemoveMessageModal.displayName="RemoveMessageModal",RemoveMessageModal.__docgenInfo={description:"",displayName:"RemoveMessageModal",props:{onCancel:{defaultValue:null,description:"",name:"onCancel",required:!0,type:{name:"() => void"}},onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!1,type:{name:"() => void"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"SendableMessageType"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/Thread/components/RemoveMessageModal.tsx#RemoveMessageModal"]={docgenInfo:RemoveMessageModal.__docgenInfo,name:"RemoveMessageModal",path:"src/modules/Thread/components/RemoveMessageModal.tsx#RemoveMessageModal"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./src/modules/Thread/components/ParentMessageInfo/ParentMessageInfoItem.scss");var Label=__webpack_require__("./src/ui/Label/index.tsx"),ImageRenderer=__webpack_require__("./src/ui/ImageRenderer/index.tsx"),TextButton=__webpack_require__("./src/ui/TextButton/index.tsx"),EmojiReactions=__webpack_require__("./src/ui/EmojiReactions/index.tsx"),VoiceMessageItemBody=__webpack_require__("./src/ui/VoiceMessageItemBody/index.tsx"),TextFragment=__webpack_require__("./src/modules/Message/components/TextFragment/index.tsx"),tokenize=__webpack_require__("./src/modules/Message/utils/tokens/tokenize.ts"),MultipleFilesMessageItemBody=__webpack_require__("./src/ui/MultipleFilesMessageItemBody/index.tsx"),useThreadMessageKindKeySelector=__webpack_require__("./src/modules/Channel/context/hooks/useThreadMessageKindKeySelector.ts"),useFileInfoListWithUploaded=__webpack_require__("./src/modules/Channel/context/hooks/useFileInfoListWithUploaded.ts"),color=__webpack_require__("./src/utils/color.ts");function ParentMessageInfoItem_slicedToArray(arr,i){return function ParentMessageInfoItem_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function ParentMessageInfoItem_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function ParentMessageInfoItem_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return ParentMessageInfoItem_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ParentMessageInfoItem_arrayLikeToArray(o,minLen)}(arr,i)||function ParentMessageInfoItem_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ParentMessageInfoItem_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&(null==message||null===(_message$mentionedUse=message.mentionedUsers)||void 0===_message$mentionedUse?void 0:_message$mentionedUse.length)>0,isReactionActivated=isReactionEnabled&&"THREAD"===replyType&&!(null!=currentChannel&¤tChannel.isSuper)&&!(null!=currentChannel&¤tChannel.isBroadcast)&&(null==message||null===(_message$reactions=message.reactions)||void 0===_message$reactions?void 0:_message$reactions.length)>0,tokens=Object(react.useMemo)((function(){return isMentionedMessage?Object(tokenize.b)({mentionedUsers:null==message?void 0:message.mentionedUsers,messageText:null==message?void 0:message.mentionedMessageTemplate}):Object(tokenize.b)({messageText:null==message?void 0:message.message})}),[null==message?void 0:message.updatedAt,null==message?void 0:message.message]),_useState2=ParentMessageInfoItem_slicedToArray(Object(react.useState)(!1),2),isImageRendered=_useState2[0],setImageRendered=_useState2[1],thumbnailUrl=(null==message||null===(_thumbnails=message.thumbnails)||void 0===_thumbnails?void 0:_thumbnails.length)>0?null==message||null===(_thumbnails$=message.thumbnails[0])||void 0===_thumbnails$?void 0:_thumbnails$.url:"";return react_default.a.createElement("div",{className:"sendbird-parent-message-info-item ".concat(className)},Object(src_utils.T)(message)&&react_default.a.createElement(Label.d,{className:"sendbird-parent-message-info-item__text-message",type:Label.c.BODY_1,color:Label.a.ONBACKGROUND_1},react_default.a.createElement(TextFragment.a,{tokens:tokens}),Object(src_utils.x)(message)&&react_default.a.createElement(Label.d,{className:"sendbird-parent-message-info-item__text-message edited",type:Label.c.BODY_1,color:Label.a.ONBACKGROUND_2}," ".concat(stringSet.MESSAGE_EDITED," "))),Object(src_utils.t)(message)===Object(src_utils.u)().FILE&&react_default.a.createElement("div",{className:"sendbird-parent-message-info-item__file-message"},react_default.a.createElement("div",{className:"sendbird-parent-message-info-item__file-message__file-icon"},react_default.a.createElement(Icon.c,{className:"sendbird-parent-message-info-item__file-message__file-icon__icon",type:{IMAGE:Icon.b.PHOTO,VIDEO:Icon.b.PLAY,AUDIO:Icon.b.FILE_AUDIO,GIF:Icon.b.GIF,OTHERS:Icon.b.FILE_DOCUMENT}[Object(src_utils.r)(null==message?void 0:message.type)],fillColor:Icon.a.PRIMARY,width:"24px",height:"24px"})),react_default.a.createElement(TextButton.a,{className:"sendbird-parent-message-info-item__file-message__file-name",onClick:function onClick(){window.open(null==message?void 0:message.url)},color:color.a.ONBACKGROUND_1},react_default.a.createElement(Label.d,{className:"sendbird-parent-message-info-item__file-message__file-name__text",type:Label.c.BODY_1,color:Label.a.ONBACKGROUND_1},Object(src_utils.ab)((null==message?void 0:message.name)||(null==message?void 0:message.url),30)))),Object(src_utils.F)(message)&&react_default.a.createElement(MultipleFilesMessageItemBody.b,{className:"sendbird-parent-message-info-item__multiple-files-message-wrapper",message:message,isByMe:!1,isReactionEnabled:isReactionEnabled,threadMessageKindKey:threadMessageKindKey,statefulFileInfoList:statefulFileInfoList}),Object(src_utils.W)(message)&&react_default.a.createElement("div",{className:"sendbird-parent-message-info-item__voice-message"},react_default.a.createElement(VoiceMessageItemBody.a,{className:"sendbird-parent-message-info-item__voice-message__item",message:message,channelUrl:null==currentChannel?void 0:currentChannel.url,isByMe:!1,isReactionEnabled:isReactionEnabled})),Object(src_utils.S)(message)&&react_default.a.createElement("div",{className:"sendbird-parent-message-info-item__thumbnail-message",onClick:function onClick(){Object(src_utils.L)(message)&&showFileViewer(!0)}},react_default.a.createElement(ImageRenderer.a,{className:"sendbird-parent-message-info-item__thumbnail-message__thumbnail",url:thumbnailUrl||(null==message?void 0:message.url)||(null==message?void 0:message.plainUrl),alt:null==message?void 0:message.type,width:"200px",height:"148px",onLoad:function onLoad(){setImageRendered(!0)},placeHolder:function placeHolder(_ref3){var style=_ref3.style;return react_default.a.createElement("div",{className:"sendbird-parent-message-info-item__thumbnail-message__placeholder",style:style},react_default.a.createElement("div",{className:"sendbird-parent-message-info-item__thumbnail-message__placeholder__icon"},react_default.a.createElement(Icon.c,{type:Object(src_utils.V)(message)?Icon.b.PLAY:Icon.b.PHOTO,fillColor:Icon.a.ON_BACKGROUND_2,width:"34px",height:"34px"})))}}),Object(src_utils.V)(message)&&!thumbnailUrl&&!isImageRendered&&react_default.a.createElement("video",{className:"sendbird-parent-message-info-item__thumbnail-message__video"},react_default.a.createElement("source",{src:(null==message?void 0:message.url)||(null==message?void 0:message.plainUrl),type:null==message?void 0:message.type})),react_default.a.createElement("div",{className:"sendbird-parent-message-info-item__thumbnail-message__image-cover"}),(Object(src_utils.V)(message)||Object(src_utils.B)(message))&&react_default.a.createElement("div",{className:"sendbird-parent-message-info-item__thumbnail-message__icon-wrapper"},react_default.a.createElement("div",{className:"sendbird-parent-message-info-item__thumbnail-message__icon-wrapper__icon"},react_default.a.createElement(Icon.c,{type:Object(src_utils.V)(message)?Icon.b.PLAY:Icon.b.GIF,fillColor:Icon.a.ON_BACKGROUND_2,width:"34px",height:"34px"})))),Object(src_utils.t)(message)===(null===src_utils.u||void 0===src_utils.u||null===(_getUIKitMessageTypes=Object(src_utils.u)())||void 0===_getUIKitMessageTypes?void 0:_getUIKitMessageTypes.UNKNOWN)&&react_default.a.createElement("div",{className:"sendbird-parent-message-info-item__unknown-message"},react_default.a.createElement(Label.d,{className:"sendbird-parent-message-info-item__unknown-message__header",type:Label.c.BODY_1,color:Label.a.ONBACKGROUND_1},stringSet.UNKNOWN__UNKNOWN_MESSAGE_TYPE),react_default.a.createElement(Label.d,{className:"sendbird-parent-message-info-item__unknown-message__description",type:Label.c.BODY_1,color:Label.a.ONBACKGROUND_2},stringSet.UNKNOWN__CANNOT_READ_MESSAGE)),isReactionActivated&&react_default.a.createElement("div",{className:"sendbird-parent-message-info__reactions"},react_default.a.createElement(EmojiReactions.a,{userId:currentUserId,message:message,channel:currentChannel,isByMe:!1,emojiContainer:emojiContainer,memberNicknamesMap:nicknamesMap,toggleReaction:toggleReaction,onPressUserProfile:onPressUserProfileHandler})))}try{ParentMessageInfoItem_ParentMessageInfoItem.displayName="ParentMessageInfoItem",ParentMessageInfoItem_ParentMessageInfoItem.__docgenInfo={description:"",displayName:"ParentMessageInfoItem",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"SendableMessageType"}},showFileViewer:{defaultValue:null,description:"",name:"showFileViewer",required:!1,type:{name:"(bool: boolean) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/Thread/components/ParentMessageInfo/ParentMessageInfoItem.tsx#ParentMessageInfoItem"]={docgenInfo:ParentMessageInfoItem_ParentMessageInfoItem.__docgenInfo,name:"ParentMessageInfoItem",path:"src/modules/Thread/components/ParentMessageInfo/ParentMessageInfoItem.tsx#ParentMessageInfoItem"})}catch(__react_docgen_typescript_loader_error){}var getIsReactionEnabled=__webpack_require__("./src/utils/getIsReactionEnabled.ts"),SuggestedMentionListView=__webpack_require__("./src/modules/GroupChannel/components/SuggestedMentionList/SuggestedMentionListView.tsx");function SuggestedMentionList_extends(){return SuggestedMentionList_extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i Element"}},targetNickname:{defaultValue:null,description:"",name:"targetNickname",required:!0,type:{name:"string"}},memberListQuery:{defaultValue:null,description:"",name:"memberListQuery",required:!1,type:{name:"Record"}},onUserItemClick:{defaultValue:null,description:"",name:"onUserItemClick",required:!1,type:{name:"(member: User) => void"}},onFocusItemChange:{defaultValue:null,description:"",name:"onFocusItemChange",required:!1,type:{name:"(member: User) => void"}},onFetchUsers:{defaultValue:null,description:"",name:"onFetchUsers",required:!1,type:{name:"(users: User[]) => void"}},ableAddMention:{defaultValue:null,description:"",name:"ableAddMention",required:!0,type:{name:"boolean"}},maxMentionCount:{defaultValue:null,description:"",name:"maxMentionCount",required:!1,type:{name:"number"}},maxSuggestionCount:{defaultValue:null,description:"",name:"maxSuggestionCount",required:!1,type:{name:"number"}},inputEvent:{defaultValue:null,description:"",name:"inputEvent",required:!1,type:{name:"KeyboardEvent"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/Thread/components/SuggestedMentionList.tsx#SuggestedMentionList"]={docgenInfo:SuggestedMentionList_SuggestedMentionList.__docgenInfo,name:"SuggestedMentionList",path:"src/modules/Thread/components/SuggestedMentionList.tsx#SuggestedMentionList"})}catch(__react_docgen_typescript_loader_error){}var Avatar=__webpack_require__("./src/ui/Avatar/index.tsx"),ui_FileViewer=__webpack_require__("./src/ui/FileViewer/index.tsx"),MessageItemMenu=__webpack_require__("./src/ui/MessageItemMenu/index.tsx"),MessageItemReactionMenu=__webpack_require__("./src/ui/MessageItemReactionMenu/index.tsx"),ContextMenu=__webpack_require__("./src/ui/ContextMenu/index.tsx"),UserProfile=__webpack_require__("./src/ui/UserProfile/index.tsx"),MessageInput=__webpack_require__("./src/ui/MessageInput/index.tsx"),MessageInput_const=__webpack_require__("./src/ui/MessageInput/const.ts"),lib_types=__webpack_require__("./src/lib/types.ts"),useLongPress=__webpack_require__("./src/hooks/useLongPress.tsx"),MobileMenu=__webpack_require__("./src/ui/MobileMenu/index.tsx"),useDirtyGetMentions=__webpack_require__("./src/modules/Message/hooks/useDirtyGetMentions.ts");function ParentMessageInfo_typeof(o){return ParentMessageInfo_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},ParentMessageInfo_typeof(o)}function ParentMessageInfo_extends(){return ParentMessageInfo_extends=Object.assign?Object.assign.bind():function(target){for(var i=1;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&!isMuted&&!(isChannelFrozen&¤tChannel.myRole!==lib_types.a.OPERATOR),mentionNodes=Object(useDirtyGetMentions.a)({ref:editMessageInputRef},{logger:logger}),ableMention=(null==mentionNodes?void 0:mentionNodes.length)<(null==userMention?void 0:userMention.maxMentionCount);Object(react.useEffect)((function(){setMentionedUsers(mentionedUsers.filter((function(_ref2){var userId=_ref2.userId,i=mentionedUserIds.indexOf(userId);return!(i<0)&&(mentionedUserIds.splice(i,1),!0)})))}),[mentionedUserIds]);var avatarRef=Object(react.useRef)(null),_useContext=Object(react.useContext)(UserProfileContext.a),disableUserProfile=_useContext.disableUserProfile,renderUserProfile=_useContext.renderUserProfile;return showEditInput&&null!=parentMessage&&null!==(_parentMessage$isUser=parentMessage.isUserMessage)&&void 0!==_parentMessage$isUser&&_parentMessage$isUser.call(parentMessage)?react_default.a.createElement(react_default.a.Fragment,null,displaySuggestedMentionList&&react_default.a.createElement(components_SuggestedMentionList,{className:"parent-message-info--suggested-mention-list",targetNickname:mentionNickname,inputEvent:messageInputEvent,onUserItemClick:function onUserItemClick(user){user&&setMentionedUsers([].concat(ParentMessageInfo_toConsumableArray(mentionedUsers),[user])),setMentionNickname(""),setSelectedUser(user),setMessageInputEvent(null)},onFocusItemChange:function onFocusItemChange(){setMessageInputEvent(null)},onFetchUsers:function onFetchUsers(users){setMentionSuggestedUsers(users)},ableAddMention:ableMention,maxMentionCount:null==userMention?void 0:userMention.maxMentionCount,maxSuggestionCount:null==userMention?void 0:userMention.maxSuggestionCount}),react_default.a.createElement(MessageInput.a,{channel:currentChannel,isEdit:!0,disabled:disabled,ref:editMessageInputRef,mentionSelectedUser:selectedUser,isMentionEnabled:isMentionEnabled,message:parentMessage,onStartTyping:function onStartTyping(){var _currentChannel$start;null==currentChannel||null===(_currentChannel$start=currentChannel.startTyping)||void 0===_currentChannel$start||_currentChannel$start.call(currentChannel)},onUpdateMessage:function onUpdateMessage(_ref3){var _currentChannel$endTy,messageId=_ref3.messageId,message=_ref3.message,mentionTemplate=_ref3.mentionTemplate;updateMessage({messageId:messageId,message:message,mentionedUsers:mentionedUsers,mentionTemplate:mentionTemplate}),setShowEditInput(!1),null==currentChannel||null===(_currentChannel$endTy=currentChannel.endTyping)||void 0===_currentChannel$endTy||_currentChannel$endTy.call(currentChannel)},onCancelEdit:function onCancelEdit(){var _currentChannel$endTy2;setMentionNickname(""),setMentionedUsers([]),setMentionedUserIds([]),setMentionSuggestedUsers([]),setShowEditInput(!1),null==currentChannel||null===(_currentChannel$endTy2=currentChannel.endTyping)||void 0===_currentChannel$endTy2||_currentChannel$endTy2.call(currentChannel)},onUserMentioned:function onUserMentioned(user){(null==selectedUser?void 0:selectedUser.userId)===(null==user?void 0:user.userId)&&(setSelectedUser(null),setMentionNickname(""))},onMentionStringChange:function onMentionStringChange(mentionText){setMentionNickname(mentionText)},onMentionedUserIdsUpdated:function onMentionedUserIdsUpdated(userIds){setMentionedUserIds(userIds)},onKeyDown:function onKeyDown(e){return!!(displaySuggestedMentionList&&(null==mentionSuggestedUsers?void 0:mentionSuggestedUsers.length)>0&&(e.key===MessageInput_const.a.Enter&&ableMention||e.key===MessageInput_const.a.ArrowUp||e.key===MessageInput_const.a.ArrowDown))&&(setMessageInputEvent(e),!0)}})):react_default.a.createElement("div",ParentMessageInfo_extends({className:"sendbird-parent-message-info ".concat(className)},isMobile?function ParentMessageInfo_objectSpread(e){for(var r=1;r0,replyType:replyType,showEdit:setShowEditInput,showRemove:setShowRemove,setSupposedHover:setSupposedHover,onMoveToParentMessage:function onMoveToParentMessage(){_onMoveToParentMessage({message:parentMessage,channel:currentChannel})},deleteMessage:deleteMessage}),usingReaction&&!isMobile&&react_default.a.createElement(MessageItemReactionMenu.b,{className:"sendbird-parent-message-info__reaction-menu ".concat(supposedHover?"sendbird-mouse-hover":""),message:parentMessage,userId:userId,emojiContainer:emojiContainer,toggleReaction:toggleReaction,setSupposedHover:setSupposedHover}),showRemove&&react_default.a.createElement(Thread_components_RemoveMessageModal,{onCancel:function onCancel(){return setShowRemove(!1)},onSubmit:function onSubmit(){null==onHeaderActionClick||onHeaderActionClick()},message:parentMessage}),showFileViewer&&react_default.a.createElement(ui_FileViewer.a,{message:parentMessage,onClose:function onClose(){return setShowFileViewer(!1)},onDelete:function onDelete(){deleteMessage(parentMessage).then((function(){setShowFileViewer(!1)}))}}),showMobileMenu&&react_default.a.createElement(MobileMenu.a,{parentRef:mobileMenuRef,channel:currentChannel,message:parentMessage,userId:userId,replyType:replyType,hideMenu:function hideMenu(){setShowMobileMenu(!1)},deleteMessage:deleteMessage,deleteMenuState:0===(null==allThreadMessages?void 0:allThreadMessages.length)?"ACTIVE":"HIDE",isReactionEnabled:usingReaction,isByMe:isByMe,emojiContainer:emojiContainer,showEdit:setShowEditInput,showRemove:setShowRemove,toggleReaction:toggleReaction,isOpenedFromThread:!0}))}try{ParentMessageInfo_ParentMessageInfo.displayName="ParentMessageInfo",ParentMessageInfo_ParentMessageInfo.__docgenInfo={description:"",displayName:"ParentMessageInfo",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/Thread/components/ParentMessageInfo/index.tsx#ParentMessageInfo"]={docgenInfo:ParentMessageInfo_ParentMessageInfo.__docgenInfo,name:"ParentMessageInfo",path:"src/modules/Thread/components/ParentMessageInfo/index.tsx#ParentMessageInfo"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./src/modules/Thread/components/ThreadHeader/index.scss");var IconButton=__webpack_require__("./src/ui/IconButton/index.tsx");function ThreadHeader_ThreadHeader(_ref){var className=_ref.className,channelName=_ref.channelName,renderActionIcon=_ref.renderActionIcon,onActionIconClick=_ref.onActionIconClick,onChannelNameClick=_ref.onChannelNameClick,stringSet=Object(LocalizationContext.c)().stringSet,MemoizedActionIcon=Object(react.useMemo)((function(){return"function"==typeof renderActionIcon?renderActionIcon({onActionIconClick:onActionIconClick}):null}),[renderActionIcon]);return react_default.a.createElement("div",{className:"sendbird-thread-header ".concat(className)},react_default.a.createElement(Label.d,{className:"sendbird-thread-header__title",type:Label.c.H_2,color:Label.a.ONBACKGROUND_1},stringSet.THREAD__HEADER_TITLE),react_default.a.createElement(TextButton.a,{onClick:function onClick(e){return null==onChannelNameClick?void 0:onChannelNameClick(e)},disableUnderline:!0},react_default.a.createElement(Label.d,{className:"sendbird-thread-header__channel-name",type:Label.c.CAPTION_3,color:Label.a.ONBACKGROUND_2},channelName)),MemoizedActionIcon||react_default.a.createElement("div",{className:"sendbird-thread-header__action"},react_default.a.createElement(IconButton.a,{width:"32px",height:"32px",onClick:function onClick(e){return onActionIconClick(e)}},react_default.a.createElement(Icon.c,{type:Icon.b.CLOSE,fillColor:Icon.a.ON_BACKGROUND_1,width:"22px",height:"22px"}))))}try{ThreadHeader_ThreadHeader.displayName="ThreadHeader",ThreadHeader_ThreadHeader.__docgenInfo={description:"",displayName:"ThreadHeader",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},channelName:{defaultValue:null,description:"",name:"channelName",required:!0,type:{name:"string"}},renderActionIcon:{defaultValue:null,description:"",name:"renderActionIcon",required:!1,type:{name:"(props: { onActionIconClick: (e: EventType) => void; }) => ReactElement>"}},onActionIconClick:{defaultValue:null,description:"",name:"onActionIconClick",required:!1,type:{name:"(e: EventType) => void"}},onChannelNameClick:{defaultValue:null,description:"",name:"onChannelNameClick",required:!1,type:{name:"(e: EventType) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/Thread/components/ThreadHeader/index.tsx#ThreadHeader"]={docgenInfo:ThreadHeader_ThreadHeader.__docgenInfo,name:"ThreadHeader",path:"src/modules/Thread/components/ThreadHeader/index.tsx#ThreadHeader"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./src/modules/Thread/components/ThreadList/index.scss");var DateSeparator=__webpack_require__("./src/ui/DateSeparator/index.tsx"),MessageStatus=(__webpack_require__("./src/modules/Thread/components/ThreadList/ThreadListItemContent.scss"),__webpack_require__("./src/ui/MessageStatus/index.tsx")),TextMessageItemBody=__webpack_require__("./src/ui/TextMessageItemBody/index.tsx"),OGMessageItemBody=__webpack_require__("./src/ui/OGMessageItemBody/index.tsx"),FileMessageItemBody=__webpack_require__("./src/ui/FileMessageItemBody/index.tsx"),ThumbnailMessageItemBody=__webpack_require__("./src/ui/ThumbnailMessageItemBody/index.tsx"),UnknownMessageItemBody=__webpack_require__("./src/ui/UnknownMessageItemBody/index.tsx");function ThreadListItemContent_typeof(o){return ThreadListItemContent_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},ThreadListItemContent_typeof(o)}function ThreadListItemContent_extends(){return ThreadListItemContent_extends=Object.assign?Object.assign.bind():function(target){for(var i=1;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&react_default.a.createElement("div",{className:Object(src_utils.i)(["sendbird-thread-list-item-content-reactions",!isByMe||Object(src_utils.S)(message)||isOgMessageEnabledInGroupChannel&&Object(src_utils.G)(message)||Object(src_utils.F)(message)?"":"primary"])},react_default.a.createElement(EmojiReactions.a,{userId:userId,message:message,channel:channel,isByMe:isByMe,emojiContainer:emojiContainer,memberNicknamesMap:nicknamesMap,toggleReaction:toggleReaction,onPressUserProfile:onPressUserProfileHandler})),!isByMe&&!chainBottom&&react_default.a.createElement(Label.d,{className:Object(src_utils.i)(["sendbird-thread-list-item-content__middle__body-container__created-at","right",supposedHoverClassName]),type:Label.c.CAPTION_3,color:Label.a.ONBACKGROUND_2},Object(format.a)((null==message?void 0:message.createdAt)||0,"p",{locale:dateLocale})))),react_default.a.createElement("div",{className:"sendbird-thread-list-item-content__right ".concat(chainTop?"chain-top":""," ").concat(isByMe?"outgoing":"incoming")},!isByMe&&!isMobile&&react_default.a.createElement("div",{className:"sendbird-thread-list-item-content-menu ".concat(supposedHoverClassName)},isReactionEnabledInChannel&&react_default.a.createElement(MessageItemReactionMenu.b,{className:"sendbird-thread-list-item-content-menu__reaction-menu",message:message,userId:userId,emojiContainer:emojiContainer,toggleReaction:toggleReaction,setSupposedHover:setSupposedHover}),react_default.a.createElement(MessageItemMenu.b,{className:"sendbird-thread-list-item-content-menu__normal-menu",channel:channel,message:message,isByMe:isByMe,replyType:replyType,disabled:disabled,showRemove:showRemove,resendMessage:resendMessage,setSupposedHover:setSupposedHover,onReplyInThread:onReplyInThread,deleteMessage:deleteMessage}))),showMobileMenu&&react_default.a.createElement(MobileMenu.a,{parentRef:mobileMenuRef,channel:channel,message:message,userId:userId,replyType:replyType,hideMenu:function hideMenu(){setShowMobileMenu(!1)},isReactionEnabled:isReactionEnabled,isByMe:isByMe,emojiContainer:emojiContainer,showEdit:showEdit,showRemove:showRemove,toggleReaction:toggleReaction,isOpenedFromThread:!0,deleteMessage:deleteMessage}))}try{ThreadListItemContent_ThreadListItemContent.displayName="ThreadListItemContent",ThreadListItemContent_ThreadListItemContent.__docgenInfo={description:"",displayName:"ThreadListItemContent",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},userId:{defaultValue:null,description:"",name:"userId",required:!0,type:{name:"string"}},channel:{defaultValue:null,description:"",name:"channel",required:!0,type:{name:"GroupChannel"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"SendableMessageType"}},disabled:{defaultValue:{value:"false"},description:"",name:"disabled",required:!1,type:{name:"boolean"}},chainTop:{defaultValue:{value:"false"},description:"",name:"chainTop",required:!1,type:{name:"boolean"}},chainBottom:{defaultValue:{value:"false"},description:"",name:"chainBottom",required:!1,type:{name:"boolean"}},isMentionEnabled:{defaultValue:{value:"false"},description:"",name:"isMentionEnabled",required:!1,type:{name:"boolean"}},isReactionEnabled:{defaultValue:{value:"false"},description:"",name:"isReactionEnabled",required:!1,type:{name:"boolean"}},disableQuoteMessage:{defaultValue:{value:"false"},description:"",name:"disableQuoteMessage",required:!1,type:{name:"boolean"}},replyType:{defaultValue:null,description:"",name:"replyType",required:!1,type:{name:"enum",value:[{value:'"NONE"'},{value:'"QUOTE_REPLY"'},{value:'"THREAD"'}]}},nicknamesMap:{defaultValue:null,description:"",name:"nicknamesMap",required:!1,type:{name:"Map"}},emojiContainer:{defaultValue:null,description:"",name:"emojiContainer",required:!1,type:{name:"EmojiContainer"}},showEdit:{defaultValue:null,description:"",name:"showEdit",required:!1,type:{name:"(bool: boolean) => void"}},showRemove:{defaultValue:null,description:"",name:"showRemove",required:!1,type:{name:"(bool: boolean) => void"}},showFileViewer:{defaultValue:null,description:"",name:"showFileViewer",required:!1,type:{name:"(bool: boolean) => void"}},resendMessage:{defaultValue:null,description:"",name:"resendMessage",required:!1,type:{name:"(message: SendableMessageType) => void"}},toggleReaction:{defaultValue:null,description:"",name:"toggleReaction",required:!1,type:{name:"(message: SendableMessageType, reactionKey: string, isReacted: boolean) => void"}},onReplyInThread:{defaultValue:null,description:"",name:"onReplyInThread",required:!1,type:{name:"(props: { message: SendableMessageType; }) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/Thread/components/ThreadList/ThreadListItemContent.tsx#ThreadListItemContent"]={docgenInfo:ThreadListItemContent_ThreadListItemContent.__docgenInfo,name:"ThreadListItemContent",path:"src/modules/Thread/components/ThreadList/ThreadListItemContent.tsx#ThreadListItemContent"})}catch(__react_docgen_typescript_loader_error){}function ThreadListItem_toConsumableArray(arr){return function ThreadListItem_arrayWithoutHoles(arr){if(Array.isArray(arr))return ThreadListItem_arrayLikeToArray(arr)}(arr)||function ThreadListItem_iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||ThreadListItem_unsupportedIterableToArray(arr)||function ThreadListItem_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ThreadListItem_slicedToArray(arr,i){return function ThreadListItem_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function ThreadListItem_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||ThreadListItem_unsupportedIterableToArray(arr,i)||function ThreadListItem_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ThreadListItem_unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return ThreadListItem_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ThreadListItem_arrayLikeToArray(o,minLen):void 0}}function ThreadListItem_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&!isMuted&&!(isChannelFrozen&¤tChannel.myRole!==lib_types.a.OPERATOR),mentionNodes=Object(useDirtyGetMentions.a)({ref:editMessageInputRef},{logger:logger}),ableMention=(null==mentionNodes?void 0:mentionNodes.length)<(null==userMention?void 0:userMention.maxMentionCount);Object(react.useEffect)((function(){setMentionedUsers(mentionedUsers.filter((function(_ref2){var userId=_ref2.userId,i=mentionedUserIds.indexOf(userId);return!(i<0)&&(mentionedUserIds.splice(i,1),!0)})))}),[mentionedUserIds]);var disabled=!(threadListState===ThreadListStateTypes.INITIALIZED)||!isOnline||isMuted||isChannelFrozen,MemorizedSeparator=Object(react.useMemo)((function(){if("function"==typeof renderCustomSeparator)return null==renderCustomSeparator?void 0:renderCustomSeparator({message:message})}),[message,renderCustomSeparator]);return showEdit&&message.isUserMessage()?react_default.a.createElement(react_default.a.Fragment,null,displaySuggestedMentionList&&react_default.a.createElement(components_SuggestedMentionList,{targetNickname:mentionNickname,inputEvent:messageInputEvent,onUserItemClick:function onUserItemClick(user){user&&setMentionedUsers([].concat(ThreadListItem_toConsumableArray(mentionedUsers),[user])),setMentionNickname(""),setSelectedUser(user),setMessageInputEvent(null)},onFocusItemChange:function onFocusItemChange(){setMessageInputEvent(null)},onFetchUsers:function onFetchUsers(users){setMentionSuggestedUsers(users)},ableAddMention:ableMention,maxMentionCount:null==userMention?void 0:userMention.maxMentionCount,maxSuggestionCount:null==userMention?void 0:userMention.maxSuggestionCount}),react_default.a.createElement(MessageInput.a,{isEdit:!0,channel:currentChannel,disabled:disabled,ref:editMessageInputRef,mentionSelectedUser:selectedUser,isMentionEnabled:isMentionEnabled,message:message,onStartTyping:function onStartTyping(){var _currentChannel$start;null==currentChannel||null===(_currentChannel$start=currentChannel.startTyping)||void 0===_currentChannel$start||_currentChannel$start.call(currentChannel)},onUpdateMessage:function onUpdateMessage(_ref3){var _currentChannel$endTy,messageId=_ref3.messageId,message=_ref3.message,mentionTemplate=_ref3.mentionTemplate;updateMessage({messageId:messageId,message:message,mentionedUsers:mentionedUsers,mentionTemplate:mentionTemplate}),setShowEdit(!1),null==currentChannel||null===(_currentChannel$endTy=currentChannel.endTyping)||void 0===_currentChannel$endTy||_currentChannel$endTy.call(currentChannel)},onCancelEdit:function onCancelEdit(){var _currentChannel$endTy2;setMentionNickname(""),setMentionedUsers([]),setMentionedUserIds([]),setMentionSuggestedUsers([]),setShowEdit(!1),null==currentChannel||null===(_currentChannel$endTy2=currentChannel.endTyping)||void 0===_currentChannel$endTy2||_currentChannel$endTy2.call(currentChannel)},onUserMentioned:function onUserMentioned(user){(null==selectedUser?void 0:selectedUser.userId)===(null==user?void 0:user.userId)&&(setSelectedUser(null),setMentionNickname(""))},onMentionStringChange:function onMentionStringChange(mentionText){setMentionNickname(mentionText)},onMentionedUserIdsUpdated:function onMentionedUserIdsUpdated(userIds){setMentionedUserIds(userIds)},onKeyDown:function onKeyDown(e){return!!(displaySuggestedMentionList&&(null==mentionSuggestedUsers?void 0:mentionSuggestedUsers.length)>0&&(e.key===MessageInput_const.a.Enter&&ableMention||e.key===MessageInput_const.a.ArrowUp||e.key===MessageInput_const.a.ArrowDown))&&(setMessageInputEvent(e),!0)}})):react_default.a.createElement("div",{ref:messageScrollRef,className:"sendbird-thread-list-item ".concat(className)},hasSeparator&&(null==message?void 0:message.createdAt)&&(MemorizedSeparator||react_default.a.createElement(DateSeparator.a,null,react_default.a.createElement(Label.d,{type:Label.c.CAPTION_2,color:Label.a.ONBACKGROUND_2},Object(format.a)(null==message?void 0:message.createdAt,stringSet.DATE_FORMAT__THREAD_LIST__DATE_SEPARATOR,{locale:dateLocale})))),react_default.a.createElement(ThreadListItemContent_ThreadListItemContent,{userId:userId,channel:currentChannel,message:message,chainTop:chainTop,chainBottom:chainBottom,isReactionEnabled:usingReaction,isMentionEnabled:isMentionEnabled,disableQuoteMessage:!0,replyType:replyType,nicknamesMap:nicknamesMap,emojiContainer:emojiContainer,resendMessage:resendMessage,showRemove:setShowRemove,showFileViewer:setShowFileViewer,toggleReaction:toggleReaction,showEdit:setShowEdit}),showRemove&&react_default.a.createElement(Thread_components_RemoveMessageModal,{message:message,onCancel:function onCancel(){return setShowRemove(!1)}}),showFileViewer&&react_default.a.createElement(ui_FileViewer.a,{message:message,isByMe:(null==message||null===(_message$sender=message.sender)||void 0===_message$sender?void 0:_message$sender.userId)===userId,onClose:function onClose(){return setShowFileViewer(!1)},onDelete:function onDelete(){deleteMessage(message),setShowFileViewer(!1)}}))}try{ThreadListItem.displayName="ThreadListItem",ThreadListItem.__docgenInfo={description:"",displayName:"ThreadListItem",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"SendableMessageType"}},chainTop:{defaultValue:null,description:"",name:"chainTop",required:!1,type:{name:"boolean"}},chainBottom:{defaultValue:null,description:"",name:"chainBottom",required:!1,type:{name:"boolean"}},hasSeparator:{defaultValue:null,description:"",name:"hasSeparator",required:!1,type:{name:"boolean"}},renderCustomSeparator:{defaultValue:null,description:"",name:"renderCustomSeparator",required:!1,type:{name:"(props: { message: SendableMessageType; }) => ReactElement>"}},handleScroll:{defaultValue:null,description:"",name:"handleScroll",required:!1,type:{name:"() => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/Thread/components/ThreadList/ThreadListItem.tsx#ThreadListItem"]={docgenInfo:ThreadListItem.__docgenInfo,name:"ThreadListItem",path:"src/modules/Thread/components/ThreadList/ThreadListItem.tsx#ThreadListItem"})}catch(__react_docgen_typescript_loader_error){}var utils_messages=__webpack_require__("./src/utils/messages.ts"),isSameDay=__webpack_require__("./node_modules/date-fns/esm/isSameDay/index.js");function ThreadList_slicedToArray(arr,i){return function ThreadList_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function ThreadList_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function ThreadList_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return ThreadList_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ThreadList_arrayLikeToArray(o,minLen)}(arr,i)||function ThreadList_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ThreadList_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&Object(isSameDay.a)(null==message?void 0:message.createdAt,null==prevMessage?void 0:prevMessage.createdAt));return react_default.a.createElement(MessageProvider.a,{message:message,isByMe:isByMe,key:null==message?void 0:message.messageId},MemorizedMessage({message:message,chainTop:chainTop,chainBottom:chainBottom,hasSeparator:hasSeparator})||react_default.a.createElement(ThreadListItem,{message:message,chainTop:chainTop,chainBottom:chainBottom,hasSeparator:hasSeparator,renderCustomSeparator:renderCustomSeparator,handleScroll:function handleScroll(){var current=null==scrollRef?void 0:scrollRef.current;if(current){var bottom=current.scrollHeight-current.scrollTop-current.offsetHeight;scrollBottom0&&Object(isSameDay.a)(null==message?void 0:message.createdAt,null==prevMessage?void 0:prevMessage.createdAt));return react_default.a.createElement(MessageProvider.a,{message:message,isByMe:isByMe,key:null==message?void 0:message.messageId},MemorizedMessage({message:message,chainTop:chainTop,chainBottom:chainBottom,hasSeparator:hasSeparator})||react_default.a.createElement(ThreadListItem,{message:message,hasSeparator:!1,renderCustomSeparator:renderCustomSeparator,handleScroll:function handleScroll(){var current=null==scrollRef?void 0:scrollRef.current;if(current){var bottom=current.scrollHeight-current.scrollTop-current.offsetHeight;scrollBottom ReactElement>"}},renderCustomSeparator:{defaultValue:null,description:"",name:"renderCustomSeparator",required:!1,type:{name:"(props: { message: SendableMessageType; }) => ReactElement>"}},scrollRef:{defaultValue:null,description:"",name:"scrollRef",required:!1,type:{name:"RefObject"}},scrollBottom:{defaultValue:null,description:"",name:"scrollBottom",required:!1,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/Thread/components/ThreadList/index.tsx#ThreadList"]={docgenInfo:ThreadList_ThreadList.__docgenInfo,name:"ThreadList",path:"src/modules/Thread/components/ThreadList/index.tsx#ThreadList"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./src/modules/Thread/components/ThreadMessageInput/index.scss"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js");var useModal=__webpack_require__("./src/hooks/useModal/index.tsx"),compressImages=__webpack_require__("./src/utils/compressImages.ts");function useHandleUploadFiles_typeof(o){return useHandleUploadFiles_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},useHandleUploadFiles_typeof(o)}function useHandleUploadFiles_regeneratorRuntime(){useHandleUploadFiles_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==useHandleUploadFiles_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw new Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function useHandleUploadFiles_slicedToArray(arr,i){return function useHandleUploadFiles_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function useHandleUploadFiles_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function useHandleUploadFiles_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return useHandleUploadFiles_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return useHandleUploadFiles_arrayLikeToArray(o,minLen)}(arr,i)||function useHandleUploadFiles_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function useHandleUploadFiles_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iuikitMultipleFilesMessageLimit)){_context.next=10;break}return logger.info("Channel|useHandleUploadFiles: Cannot upload files more than ".concat(uikitMultipleFilesMessageLimit)),openModal({modalProps:{titleText:stringSet.FILE_UPLOAD_NOTIFICATION__COUNT_LIMIT.replace("%d","".concat(uikitMultipleFilesMessageLimit)),hideFooter:!0},childElement:function childElement(_ref4){var closeModal=_ref4.closeModal;return react_default.a.createElement(Modal.a,{type:Button.b.PRIMARY,submitText:stringSet.BUTTON__OK,hideCancelButton:!0,onCancel:closeModal,onSubmit:closeModal})}}),_context.abrupt("return");case 10:if(!files.some((function(file){return file.size>uikitUploadSizeLimit}))){_context.next=14;break}return logger.info("Channel|useHandleUploadFiles: Cannot upload file size exceeding ".concat(uikitUploadSizeLimit)),openModal({modalProps:{titleText:stringSet.FILE_UPLOAD_NOTIFICATION__SIZE_LIMIT.replace("%d","".concat(Math.floor(uikitUploadSizeLimit/consts.i))),hideFooter:!0},childElement:function childElement(_ref5){var closeModal=_ref5.closeModal;return react_default.a.createElement(Modal.a,{type:Button.b.PRIMARY,submitText:stringSet.BUTTON__OK,hideCancelButton:!0,onCancel:closeModal,onSubmit:closeModal})}}),_context.abrupt("return");case 14:return _context.next=16,Object(compressImages.a)({files:files,imageCompression:imageCompression,logger:logger});case 16:if(_yield$compressImages=_context.sent,compressedFiles=_yield$compressImages.compressedFiles,1!==(sendingFiles=compressedFiles).length){_context.next=25;break}logger.info("Channel|useHandleUploadFiles: sending one file."),_sendingFiles=useHandleUploadFiles_slicedToArray(sendingFiles,1),file=_sendingFiles[0],sendFileMessage(file,quoteMessage),_context.next=31;break;case 25:if(!(sendingFiles.length>1)){_context.next=31;break}return logger.info("Channel|useHandleUploadFiles: sending multiple files."),imageFiles=[],otherFiles=[],sendingFiles.forEach((function(file){Object(src_utils.C)(file.type)?imageFiles.push(file):otherFiles.push(file)})),_context.abrupt("return",otherFiles.reduce((function(previousPromise,item){return previousPromise.then((function(){return sendFileMessage(item,quoteMessage)}))}),0===imageFiles.length?Promise.resolve():1===imageFiles.length?sendFileMessage(imageFiles[0],quoteMessage):sendMultipleFilesMessage(imageFiles,quoteMessage)));case 31:case"end":return _context.stop()}}),_callee)})));return function(_x){return _ref3.apply(this,arguments)}}(),[sendFileMessage,sendMultipleFilesMessage,quoteMessage]);return handleUploadFiles},Channel_context_utils=__webpack_require__("./src/modules/Channel/context/utils.ts");function ThreadMessageInput_toConsumableArray(arr){return function ThreadMessageInput_arrayWithoutHoles(arr){if(Array.isArray(arr))return ThreadMessageInput_arrayLikeToArray(arr)}(arr)||function ThreadMessageInput_iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||ThreadMessageInput_unsupportedIterableToArray(arr)||function ThreadMessageInput_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ThreadMessageInput_slicedToArray(arr,i){return function ThreadMessageInput_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function ThreadMessageInput_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||ThreadMessageInput_unsupportedIterableToArray(arr,i)||function ThreadMessageInput_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ThreadMessageInput_unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return ThreadMessageInput_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ThreadMessageInput_arrayLikeToArray(o,minLen):void 0}}function ThreadMessageInput_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&!Object(Channel_context_utils.d)(currentChannel)&&!Object(Channel_context_utils.e)(currentChannel)&&!(null!=currentChannel&¤tChannel.isBroadcast);Object(react.useEffect)((function(){setShowVoiceMessageInput(!1)}),[null==currentChannel?void 0:currentChannel.url]);var mentionNodes=Object(useDirtyGetMentions.a)({ref:ref||messageInputRef},{logger:logger}),ableMention=(null==mentionNodes?void 0:mentionNodes.length)<(null==userMention?void 0:userMention.maxMentionCount);return Object(react.useEffect)((function(){setMentionedUsers(mentionedUsers.filter((function(_ref){var userId=_ref.userId,i=mentionedUserIds.indexOf(userId);return!(i<0)&&(mentionedUserIds.splice(i,1),!0)})))}),[mentionedUserIds]),null!=currentChannel&¤tChannel.isBroadcast&&(null==currentChannel?void 0:currentChannel.myRole)!==lib_types.a.OPERATOR?null:react_default.a.createElement("div",{className:"sendbird-thread-message-input".concat(showVoiceMessageInput?"--voice-message":""," ").concat(className)},displaySuggestedMentionList&&react_default.a.createElement(SuggestedMentionList_SuggestedMentionList,{targetNickname:mentionNickname,inputEvent:messageInputEvent,onUserItemClick:function onUserItemClick(user){user&&setMentionedUsers([].concat(ThreadMessageInput_toConsumableArray(mentionedUsers),[user])),setMentionNickname(""),setSelectedUser(user),setMessageInputEvent(null)},onFocusItemChange:function onFocusItemChange(){setMessageInputEvent(null)},onFetchUsers:function onFetchUsers(users){setMentionSuggestedUsers(users)},ableAddMention:ableMention,maxMentionCount:null==userMention?void 0:userMention.maxMentionCount,maxSuggestionCount:null==userMention?void 0:userMention.maxSuggestionCount}),showVoiceMessageInput?react_default.a.createElement(MessageInputWrapper_VoiceMessageInputWrapper.a,{channel:currentChannel,onSubmitClick:function onSubmitClick(recordedFile,duration){sendVoiceMessage(recordedFile,duration,parentMessage),setShowVoiceMessageInput(!1)},onCancelClick:function onCancelClick(){setShowVoiceMessageInput(!1)}}):react_default.a.createElement(MessageInput.a,{className:"sendbird-thread-message-input__message-input",messageFieldId:"sendbird-message-input-text-field--thread",channel:currentChannel,channelUrl:null==currentChannel?void 0:currentChannel.url,isMobile:isMobile,disabled:threadInputDisabled,acceptableMimeTypes:acceptableMimeTypes,setMentionedUsers:setMentionedUsers,mentionSelectedUser:selectedUser,isMentionEnabled:isMentionEnabled,isVoiceMessageEnabled:isVoiceMessageEnabled,isSelectingMultipleFilesEnabled:isMultipleFilesMessageEnabled,onVoiceMessageIconClick:function onVoiceMessageIconClick(){setShowVoiceMessageInput(!0)},renderFileUploadIcon:renderFileUploadIcon,renderVoiceMessageIcon:renderVoiceMessageIcon,renderSendMessageIcon:renderSendMessageIcon,ref:ref||messageInputRef,placeholder:(null==currentChannel?void 0:currentChannel.isFrozen)&&!((null==currentChannel?void 0:currentChannel.myRole)===lib_types.a.OPERATOR)&&stringSet.MESSAGE_INPUT__PLACE_HOLDER__DISABLED||(null==currentChannel?void 0:currentChannel.myMutedState)===_bundle_c578be85.Ob.MUTED&&stringSet.MESSAGE_INPUT__PLACE_HOLDER__MUTED_SHORT||(allThreadMessages.length>0?stringSet.THREAD__INPUT__REPLY_TO_THREAD:stringSet.THREAD__INPUT__REPLY_IN_THREAD),onStartTyping:function onStartTyping(){var _currentChannel$start;null==currentChannel||null===(_currentChannel$start=currentChannel.startTyping)||void 0===_currentChannel$start||_currentChannel$start.call(currentChannel)},onSendMessage:function onSendMessage(_ref2){var _currentChannel$endTy,message=_ref2.message,mentionTemplate=_ref2.mentionTemplate;sendMessage({message:message,mentionedUsers:mentionedUsers,mentionTemplate:mentionTemplate,quoteMessage:parentMessage}),setMentionNickname(""),setMentionedUsers([]),null==currentChannel||null===(_currentChannel$endTy=currentChannel.endTyping)||void 0===_currentChannel$endTy||_currentChannel$endTy.call(currentChannel)},onFileUpload:handleUploadFiles,onUserMentioned:function onUserMentioned(user){(null==selectedUser?void 0:selectedUser.userId)===(null==user?void 0:user.userId)&&(setSelectedUser(null),setMentionNickname(""))},onMentionStringChange:function onMentionStringChange(mentionText){setMentionNickname(mentionText)},onMentionedUserIdsUpdated:function onMentionedUserIdsUpdated(userIds){setMentionedUserIds(userIds)},onKeyDown:function onKeyDown(e){return!!(displaySuggestedMentionList&&(null==mentionSuggestedUsers?void 0:mentionSuggestedUsers.length)>0&&(e.key===MessageInput_const.a.Enter&&ableMention||e.key===MessageInput_const.a.ArrowUp||e.key===MessageInput_const.a.ArrowDown))&&(setMessageInputEvent(e),!0)}}))},Thread_components_ThreadMessageInput=react_default.a.forwardRef(ThreadMessageInput_ThreadMessageInput);try{ThreadMessageInput_ThreadMessageInput.displayName="ThreadMessageInput",ThreadMessageInput_ThreadMessageInput.__docgenInfo={description:"",displayName:"ThreadMessageInput",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},renderFileUploadIcon:{defaultValue:null,description:"",name:"renderFileUploadIcon",required:!1,type:{name:"() => ReactElement>"}},renderVoiceMessageIcon:{defaultValue:null,description:"",name:"renderVoiceMessageIcon",required:!1,type:{name:"() => ReactElement>"}},renderSendMessageIcon:{defaultValue:null,description:"",name:"renderSendMessageIcon",required:!1,type:{name:"() => ReactElement>"}},acceptableMimeTypes:{defaultValue:null,description:"",name:"acceptableMimeTypes",required:!1,type:{name:"string[]"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/Thread/components/ThreadMessageInput/index.tsx#ThreadMessageInput"]={docgenInfo:ThreadMessageInput_ThreadMessageInput.__docgenInfo,name:"ThreadMessageInput",path:"src/modules/Thread/components/ThreadMessageInput/index.tsx#ThreadMessageInput"})}catch(__react_docgen_typescript_loader_error){}var useMemorizedHeader_useMemorizedHeader=function useMemorizedHeader(_ref){var renderHeader=_ref.renderHeader;return Object(react.useMemo)((function(){return"function"==typeof renderHeader?renderHeader():null}),[renderHeader])},ThreadUI_useMemorizedHeader=useMemorizedHeader_useMemorizedHeader;try{useMemorizedHeader_useMemorizedHeader.displayName="useMemorizedHeader",useMemorizedHeader_useMemorizedHeader.__docgenInfo={description:"",displayName:"useMemorizedHeader",props:{renderHeader:{defaultValue:null,description:"",name:"renderHeader",required:!1,type:{name:"() => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/Thread/components/ThreadUI/useMemorizedHeader.tsx#useMemorizedHeader"]={docgenInfo:useMemorizedHeader_useMemorizedHeader.__docgenInfo,name:"useMemorizedHeader",path:"src/modules/Thread/components/ThreadUI/useMemorizedHeader.tsx#useMemorizedHeader"})}catch(__react_docgen_typescript_loader_error){}var useMemorizedParentMessageInfo_useMemorizedParentMessageInfo=function useMemorizedParentMessageInfo(_ref){var parentMessage=_ref.parentMessage,parentMessageState=_ref.parentMessageState,renderParentMessageInfo=_ref.renderParentMessageInfo,renderParentMessageInfoPlaceholder=_ref.renderParentMessageInfoPlaceholder;return Object(react.useMemo)((function(){if(parentMessageState===ParentMessageStateTypes.NIL||parentMessageState===ParentMessageStateTypes.LOADING||parentMessageState===ParentMessageStateTypes.INVALID){if("function"==typeof renderParentMessageInfoPlaceholder)return renderParentMessageInfoPlaceholder(parentMessageState);switch(parentMessageState){case ParentMessageStateTypes.NIL:return react_default.a.createElement(PlaceHolder.b,{className:"sendbird-thread-ui__parent-message-info placeholder-nil",type:PlaceHolder.a.NO_RESULTS,iconSize:"64px"});case ParentMessageStateTypes.LOADING:return react_default.a.createElement(PlaceHolder.b,{className:"sendbird-thread-ui__parent-message-info placeholder-loading",type:PlaceHolder.a.LOADING,iconSize:"64px"});case ParentMessageStateTypes.INVALID:return react_default.a.createElement(PlaceHolder.b,{className:"sendbird-thread-ui__parent-message-info placeholder-invalid",type:PlaceHolder.a.WRONG,iconSize:"64px"});default:return null}}else if(parentMessageState===ParentMessageStateTypes.INITIALIZED&&"function"==typeof renderParentMessageInfo)return renderParentMessageInfo();return null}),[parentMessage,parentMessageState,renderParentMessageInfo,renderParentMessageInfoPlaceholder])},ThreadUI_useMemorizedParentMessageInfo=useMemorizedParentMessageInfo_useMemorizedParentMessageInfo;try{useMemorizedParentMessageInfo_useMemorizedParentMessageInfo.displayName="useMemorizedParentMessageInfo",useMemorizedParentMessageInfo_useMemorizedParentMessageInfo.__docgenInfo={description:"",displayName:"useMemorizedParentMessageInfo",props:{parentMessage:{defaultValue:null,description:"",name:"parentMessage",required:!0,type:{name:"SendableMessageType"}},parentMessageState:{defaultValue:null,description:"",name:"parentMessageState",required:!0,type:{name:"enum",value:[{value:'"NIL"'},{value:'"LOADING"'},{value:'"INVALID"'},{value:'"INITIALIZED"'}]}},renderParentMessageInfo:{defaultValue:null,description:"",name:"renderParentMessageInfo",required:!1,type:{name:"() => ReactElement>"}},renderParentMessageInfoPlaceholder:{defaultValue:null,description:"",name:"renderParentMessageInfoPlaceholder",required:!1,type:{name:"(type: ParentMessageStateTypes) => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/Thread/components/ThreadUI/useMemorizedParentMessageInfo.tsx#useMemorizedParentMessageInfo"]={docgenInfo:useMemorizedParentMessageInfo_useMemorizedParentMessageInfo.__docgenInfo,name:"useMemorizedParentMessageInfo",path:"src/modules/Thread/components/ThreadUI/useMemorizedParentMessageInfo.tsx#useMemorizedParentMessageInfo"})}catch(__react_docgen_typescript_loader_error){}var useMemorizedThreadList_useMemorizedThreadList=function useMemorizedThreadList(_ref){var threadListState=_ref.threadListState,renderThreadListPlaceHolder=_ref.renderThreadListPlaceHolder;return Object(react.useMemo)((function(){if(threadListState===ThreadListStateTypes.NIL||threadListState===ThreadListStateTypes.LOADING||threadListState===ThreadListStateTypes.INVALID){if("function"==typeof renderThreadListPlaceHolder)return renderThreadListPlaceHolder(threadListState);switch(threadListState){case ThreadListStateTypes.LOADING:return react_default.a.createElement(PlaceHolder.b,{className:"sendbird-thread-ui__thread-list placeholder-loading",type:PlaceHolder.a.LOADING,iconSize:"64px"});case ThreadListStateTypes.INVALID:return react_default.a.createElement(PlaceHolder.b,{className:"sendbird-thread-ui__thread-list placeholder-invalid",type:PlaceHolder.a.WRONG,iconSize:"64px"});case ThreadListStateTypes.NIL:return react_default.a.createElement(react_default.a.Fragment,null);default:return null}}return null}),[threadListState,renderThreadListPlaceHolder])},ThreadUI_useMemorizedThreadList=useMemorizedThreadList_useMemorizedThreadList;try{useMemorizedThreadList_useMemorizedThreadList.displayName="useMemorizedThreadList",useMemorizedThreadList_useMemorizedThreadList.__docgenInfo={description:"",displayName:"useMemorizedThreadList",props:{threadListState:{defaultValue:null,description:"",name:"threadListState",required:!0,type:{name:"enum",value:[{value:'"NIL"'},{value:'"LOADING"'},{value:'"INVALID"'},{value:'"INITIALIZED"'}]}},renderThreadListPlaceHolder:{defaultValue:null,description:"",name:"renderThreadListPlaceHolder",required:!1,type:{name:"(tyep: ThreadListStateTypes) => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/Thread/components/ThreadUI/useMemorizedThreadList.tsx#useMemorizedThreadList"]={docgenInfo:useMemorizedThreadList_useMemorizedThreadList.__docgenInfo,name:"useMemorizedThreadList",path:"src/modules/Thread/components/ThreadUI/useMemorizedThreadList.tsx#useMemorizedThreadList"})}catch(__react_docgen_typescript_loader_error){}function ThreadUI_slicedToArray(arr,i){return function ThreadUI_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function ThreadUI_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function ThreadUI_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return ThreadUI_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ThreadUI_arrayLikeToArray(o,minLen)}(arr,i)||function ThreadUI_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ThreadUI_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&react_default.a.createElement("div",{className:"sendbird-thread-ui__reply-counts"},react_default.a.createElement(Label.d,{type:Label.c.BODY_1,color:Label.a.ONBACKGROUND_3},"".concat(replyCount," ").concat(replyCount>1?stringSet.THREAD__THREAD_REPLIES:stringSet.THREAD__THREAD_REPLY))),MemorizedThreadList||react_default.a.createElement(ThreadList_ThreadList,{className:"sendbird-thread-ui__thread-list",renderMessage:renderMessage,renderCustomSeparator:renderCustomSeparator,scrollRef:scrollRef,scrollBottom:scrollBottom})),(null==renderMessageInput?void 0:renderMessageInput())||react_default.a.createElement(Thread_components_ThreadMessageInput,{className:"sendbird-thread-ui__message-input",renderFileUploadIcon:renderFileUploadIcon,renderVoiceMessageIcon:renderVoiceMessageIcon,renderSendMessageIcon:renderSendMessageIcon}))},Thread_components_ThreadUI=ThreadUI_ThreadUI;try{ThreadUI_ThreadUI.displayName="ThreadUI",ThreadUI_ThreadUI.__docgenInfo={description:"",displayName:"ThreadUI",props:{renderHeader:{defaultValue:null,description:"",name:"renderHeader",required:!1,type:{name:"() => ReactElement>"}},renderParentMessageInfo:{defaultValue:null,description:"",name:"renderParentMessageInfo",required:!1,type:{name:"() => ReactElement>"}},renderMessage:{defaultValue:null,description:"",name:"renderMessage",required:!1,type:{name:"(props: { message: SendableMessageType; chainTop: boolean; chainBottom: boolean; hasSeparator: boolean; }) => ReactElement>"}},renderFileUploadIcon:{defaultValue:null,description:"",name:"renderFileUploadIcon",required:!1,type:{name:"() => ReactElement>"}},renderVoiceMessageIcon:{defaultValue:null,description:"",name:"renderVoiceMessageIcon",required:!1,type:{name:"() => ReactElement>"}},renderSendMessageIcon:{defaultValue:null,description:"",name:"renderSendMessageIcon",required:!1,type:{name:"() => ReactElement>"}},renderMessageInput:{defaultValue:null,description:"",name:"renderMessageInput",required:!1,type:{name:"() => ReactElement>"}},renderCustomSeparator:{defaultValue:null,description:"",name:"renderCustomSeparator",required:!1,type:{name:"() => ReactElement>"}},renderParentMessageInfoPlaceholder:{defaultValue:null,description:"",name:"renderParentMessageInfoPlaceholder",required:!1,type:{name:"(type: ParentMessageStateTypes) => ReactElement>"}},renderThreadListPlaceHolder:{defaultValue:null,description:"",name:"renderThreadListPlaceHolder",required:!1,type:{name:"(type: ThreadListStateTypes) => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/Thread/components/ThreadUI/index.tsx#ThreadUI"]={docgenInfo:ThreadUI_ThreadUI.__docgenInfo,name:"ThreadUI",path:"src/modules/Thread/components/ThreadUI/index.tsx#ThreadUI"})}catch(__react_docgen_typescript_loader_error){}var Thread_Thread=function Thread(props){var className=props.className,channelUrl=props.channelUrl,message=props.message,onHeaderActionClick=props.onHeaderActionClick,onMoveToParentMessage=props.onMoveToParentMessage,isMultipleFilesMessageEnabled=props.isMultipleFilesMessageEnabled,onBeforeSendUserMessage=props.onBeforeSendUserMessage,onBeforeSendFileMessage=props.onBeforeSendFileMessage,onBeforeSendVoiceMessage=props.onBeforeSendVoiceMessage,onBeforeSendMultipleFilesMessage=props.onBeforeSendMultipleFilesMessage,renderHeader=props.renderHeader,renderParentMessageInfo=props.renderParentMessageInfo,renderMessage=props.renderMessage,renderMessageInput=props.renderMessageInput,renderCustomSeparator=props.renderCustomSeparator,renderParentMessageInfoPlaceholder=props.renderParentMessageInfoPlaceholder,renderThreadListPlaceHolder=props.renderThreadListPlaceHolder,renderFileUploadIcon=props.renderFileUploadIcon,renderVoiceMessageIcon=props.renderVoiceMessageIcon,renderSendMessageIcon=props.renderSendMessageIcon;return react_default.a.createElement("div",{className:"sendbird-thread ".concat(className)},react_default.a.createElement(ThreadProvider_ThreadProvider,{channelUrl:channelUrl,message:message,onHeaderActionClick:onHeaderActionClick,onMoveToParentMessage:onMoveToParentMessage,onBeforeSendUserMessage:onBeforeSendUserMessage,onBeforeSendFileMessage:onBeforeSendFileMessage,onBeforeSendVoiceMessage:onBeforeSendVoiceMessage,onBeforeSendMultipleFilesMessage:onBeforeSendMultipleFilesMessage,isMultipleFilesMessageEnabled:isMultipleFilesMessageEnabled},react_default.a.createElement(Thread_components_ThreadUI,{renderHeader:renderHeader,renderParentMessageInfo:renderParentMessageInfo,renderMessage:renderMessage,renderMessageInput:renderMessageInput,renderCustomSeparator:renderCustomSeparator,renderParentMessageInfoPlaceholder:renderParentMessageInfoPlaceholder,renderThreadListPlaceHolder:renderThreadListPlaceHolder,renderFileUploadIcon:renderFileUploadIcon,renderVoiceMessageIcon:renderVoiceMessageIcon,renderSendMessageIcon:renderSendMessageIcon})))},modules_Thread=Thread_Thread;try{Thread_Thread.displayName="Thread",Thread_Thread.__docgenInfo={description:"",displayName:"Thread",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},channelUrl:{defaultValue:null,description:"",name:"channelUrl",required:!0,type:{name:"string"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"SendableMessageType"}},onHeaderActionClick:{defaultValue:null,description:"",name:"onHeaderActionClick",required:!1,type:{name:"() => void"}},onMoveToParentMessage:{defaultValue:null,description:"",name:"onMoveToParentMessage",required:!1,type:{name:"(props: { message: SendableMessageType; channel: GroupChannel; }) => void"}},onBeforeSendUserMessage:{defaultValue:null,description:"",name:"onBeforeSendUserMessage",required:!1,type:{name:"(message: string, quotedMessage?: SendableMessageType) => UserMessageCreateParams"}},onBeforeSendFileMessage:{defaultValue:null,description:"",name:"onBeforeSendFileMessage",required:!1,type:{name:"(file: File, quotedMessage?: SendableMessageType) => FileMessageCreateParams"}},onBeforeSendVoiceMessage:{defaultValue:null,description:"",name:"onBeforeSendVoiceMessage",required:!1,type:{name:"(file: File, quotedMessage?: SendableMessageType) => FileMessageCreateParams"}},onBeforeSendMultipleFilesMessage:{defaultValue:null,description:"",name:"onBeforeSendMultipleFilesMessage",required:!1,type:{name:"(files: File[], quotedMessage?: SendableMessageType) => MultipleFilesMessageCreateParams"}},disableUserProfile:{defaultValue:null,description:"",name:"disableUserProfile",required:!1,type:{name:"boolean"}},renderUserProfile:{defaultValue:null,description:"",name:"renderUserProfile",required:!1,type:{name:"(props: { user: User; close: () => void; }) => ReactElement>"}},isMultipleFilesMessageEnabled:{defaultValue:null,description:"",name:"isMultipleFilesMessageEnabled",required:!1,type:{name:"boolean"}},renderHeader:{defaultValue:null,description:"",name:"renderHeader",required:!1,type:{name:"() => ReactElement>"}},renderParentMessageInfo:{defaultValue:null,description:"",name:"renderParentMessageInfo",required:!1,type:{name:"() => ReactElement>"}},renderMessage:{defaultValue:null,description:"",name:"renderMessage",required:!1,type:{name:"(props: { message: SendableMessageType; chainTop: boolean; chainBottom: boolean; hasSeparator: boolean; }) => ReactElement>"}},renderFileUploadIcon:{defaultValue:null,description:"",name:"renderFileUploadIcon",required:!1,type:{name:"() => ReactElement>"}},renderVoiceMessageIcon:{defaultValue:null,description:"",name:"renderVoiceMessageIcon",required:!1,type:{name:"() => ReactElement>"}},renderSendMessageIcon:{defaultValue:null,description:"",name:"renderSendMessageIcon",required:!1,type:{name:"() => ReactElement>"}},renderMessageInput:{defaultValue:null,description:"",name:"renderMessageInput",required:!1,type:{name:"() => ReactElement>"}},renderCustomSeparator:{defaultValue:null,description:"",name:"renderCustomSeparator",required:!1,type:{name:"() => ReactElement>"}},renderParentMessageInfoPlaceholder:{defaultValue:null,description:"",name:"renderParentMessageInfoPlaceholder",required:!1,type:{name:"(type: ParentMessageStateTypes) => ReactElement>"}},renderThreadListPlaceHolder:{defaultValue:null,description:"",name:"renderThreadListPlaceHolder",required:!1,type:{name:"(type: ThreadListStateTypes) => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/Thread/index.tsx#Thread"]={docgenInfo:Thread_Thread.__docgenInfo,name:"Thread",path:"src/modules/Thread/index.tsx#Thread"})}catch(__react_docgen_typescript_loader_error){}var DesktopLayout_DesktopLayout=function DesktopLayout(props){var isReactionEnabled=props.isReactionEnabled,replyType=props.replyType,isMessageGroupingEnabled=props.isMessageGroupingEnabled,isMultipleFilesMessageEnabled=props.isMultipleFilesMessageEnabled,allowProfileEdit=props.allowProfileEdit,showSearchIcon=props.showSearchIcon,onProfileEditSuccess=props.onProfileEditSuccess,disableAutoSelect=props.disableAutoSelect,currentChannel=props.currentChannel,setCurrentChannel=props.setCurrentChannel,showSettings=props.showSettings,setShowSettings=props.setShowSettings,showSearch=props.showSearch,setShowSearch=props.setShowSearch,highlightedMessage=props.highlightedMessage,setHighlightedMessage=props.setHighlightedMessage,startingPoint=props.startingPoint,setStartingPoint=props.setStartingPoint,showThread=props.showThread,setShowThread=props.setShowThread,threadTargetMessage=props.threadTargetMessage,setThreadTargetMessage=props.setThreadTargetMessage,enableLegacyChannelModules=props.enableLegacyChannelModules,updateFocusedChannel=function updateFocusedChannel(channel){null==setStartingPoint||setStartingPoint(null),null==setHighlightedMessage||setHighlightedMessage(null),setCurrentChannel(channel||null)},onClickThreadReply=function onClickThreadReply(_ref){var message=_ref.message;setShowSettings(!1),setShowSearch(!1),"THREAD"===replyType&&(setThreadTargetMessage(message),setShowThread(!0))},channelListProps={allowProfileEdit:allowProfileEdit,activeChannelUrl:null==currentChannel?void 0:currentChannel.url,onProfileEditSuccess:onProfileEditSuccess,disableAutoSelect:disableAutoSelect,onChannelSelect:updateFocusedChannel,selectedChannelUrl:null==currentChannel?void 0:currentChannel.url,onChannelCreated:updateFocusedChannel,onUserProfileUpdated:onProfileEditSuccess},channelProps={channelUrl:(null==currentChannel?void 0:currentChannel.url)||"",onChatHeaderActionClick:function onChatHeaderActionClick(){setShowSearch(!1),setShowThread(!1),setShowSettings(!showSettings)},onSearchClick:function onSearchClick(){setShowSettings(!1),setShowThread(!1),setShowSearch(!showSearch)},onReplyInThread:onClickThreadReply,onQuoteMessageClick:function onQuoteMessageClick(_ref2){var message=_ref2.message;setShowSettings(!1),setShowSearch(!1),"THREAD"===replyType&&(setThreadTargetMessage(message),setShowThread(!0))},animatedMessage:highlightedMessage,onMessageAnimated:function onMessageAnimated(){return null==setHighlightedMessage?void 0:setHighlightedMessage(null)},showSearchIcon:showSearchIcon,startingPoint:startingPoint,isReactionEnabled:isReactionEnabled,replyType:replyType,isMessageGroupingEnabled:isMessageGroupingEnabled,isMultipleFilesMessageEnabled:isMultipleFilesMessageEnabled,animatedMessageId:highlightedMessage,onReplyInThreadClick:onClickThreadReply};return react_default.a.createElement("div",{className:"sendbird-app__wrap"},react_default.a.createElement("div",{className:"sendbird-app__channellist-wrap"},enableLegacyChannelModules?react_default.a.createElement(ChannelList.a,channelListProps):react_default.a.createElement(GroupChannelList.a,channelListProps)),react_default.a.createElement("div",{className:"\n ".concat(showSettings?"sendbird-app__conversation--settings-open":"","\n ").concat(showSearch?"sendbird-app__conversation--search-open":"","\n sendbird-app__conversation-wrap\n ")},enableLegacyChannelModules?react_default.a.createElement(Channel.a,channelProps):react_default.a.createElement(modules_GroupChannel,channelProps)),showSettings&&react_default.a.createElement("div",{className:"sendbird-app__settingspanel-wrap"},react_default.a.createElement(ChannelSettings.a,{className:"sendbird-channel-settings",channelUrl:(null==currentChannel?void 0:currentChannel.url)||"",onCloseClick:function onCloseClick(){setShowSettings(!1)}})),showSearch&&react_default.a.createElement("div",{className:"sendbird-app__searchpanel-wrap"},react_default.a.createElement(MessageSearch.a,{channelUrl:(null==currentChannel?void 0:currentChannel.url)||"",onResultClick:function onResultClick(message){message.messageId===highlightedMessage?(null==setHighlightedMessage||setHighlightedMessage(null),setTimeout((function(){null==setHighlightedMessage||setHighlightedMessage(message.messageId)}))):(null==setStartingPoint||setStartingPoint(message.createdAt),null==setHighlightedMessage||setHighlightedMessage(message.messageId))},onCloseClick:function onCloseClick(){setShowSearch(!1)}})),showThread&&react_default.a.createElement(modules_Thread,{className:"sendbird-app__thread",channelUrl:(null==currentChannel?void 0:currentChannel.url)||"",message:threadTargetMessage,onHeaderActionClick:function onHeaderActionClick(){setShowThread(!1)},onMoveToParentMessage:function onMoveToParentMessage(_ref3){var message=_ref3.message,channel=_ref3.channel;(null==channel?void 0:channel.url)!==(null==currentChannel?void 0:currentChannel.url)&&setCurrentChannel(channel),(null==message?void 0:message.messageId)!==highlightedMessage&&(null==setStartingPoint||setStartingPoint(null==message?void 0:message.createdAt)),setTimeout((function(){null==setStartingPoint||setStartingPoint(null),null==setHighlightedMessage||setHighlightedMessage(null==message?void 0:message.messageId)}),500)}}))};try{DesktopLayout_DesktopLayout.displayName="DesktopLayout",DesktopLayout_DesktopLayout.__docgenInfo={description:"",displayName:"DesktopLayout",props:{showSettings:{defaultValue:null,description:"",name:"showSettings",required:!0,type:{name:"boolean"}},setShowSettings:{defaultValue:null,description:"",name:"setShowSettings",required:!0,type:{name:"Dispatch"}},showSearch:{defaultValue:null,description:"",name:"showSearch",required:!0,type:{name:"boolean"}},setShowSearch:{defaultValue:null,description:"",name:"setShowSearch",required:!0,type:{name:"Dispatch"}},showThread:{defaultValue:null,description:"",name:"showThread",required:!0,type:{name:"boolean"}},setShowThread:{defaultValue:null,description:"",name:"setShowThread",required:!0,type:{name:"Dispatch"}},isReactionEnabled:{defaultValue:null,description:"",name:"isReactionEnabled",required:!1,type:{name:"boolean"}},replyType:{defaultValue:null,description:"",name:"replyType",required:!1,type:{name:"enum",value:[{value:'"NONE"'},{value:'"QUOTE_REPLY"'},{value:'"THREAD"'}]}},isMessageGroupingEnabled:{defaultValue:null,description:"",name:"isMessageGroupingEnabled",required:!1,type:{name:"boolean"}},isMultipleFilesMessageEnabled:{defaultValue:null,description:"",name:"isMultipleFilesMessageEnabled",required:!1,type:{name:"boolean"}},allowProfileEdit:{defaultValue:null,description:"",name:"allowProfileEdit",required:!1,type:{name:"boolean"}},showSearchIcon:{defaultValue:null,description:"",name:"showSearchIcon",required:!1,type:{name:"boolean"}},onProfileEditSuccess:{defaultValue:null,description:"",name:"onProfileEditSuccess",required:!1,type:{name:"(user: User) => void"}},disableAutoSelect:{defaultValue:null,description:"",name:"disableAutoSelect",required:!1,type:{name:"boolean"}},currentChannel:{defaultValue:null,description:"",name:"currentChannel",required:!1,type:{name:"GroupChannel"}},setCurrentChannel:{defaultValue:null,description:"",name:"setCurrentChannel",required:!0,type:{name:"Dispatch"}},enableLegacyChannelModules:{defaultValue:null,description:"",name:"enableLegacyChannelModules",required:!0,type:{name:"boolean"}},highlightedMessage:{defaultValue:null,description:"",name:"highlightedMessage",required:!1,type:{name:"number"}},setHighlightedMessage:{defaultValue:null,description:"",name:"setHighlightedMessage",required:!1,type:{name:"Dispatch"}},startingPoint:{defaultValue:null,description:"",name:"startingPoint",required:!1,type:{name:"number"}},setStartingPoint:{defaultValue:null,description:"",name:"setStartingPoint",required:!0,type:{name:"Dispatch"}},threadTargetMessage:{defaultValue:null,description:"",name:"threadTargetMessage",required:!0,type:{name:"SendableMessageType"}},setThreadTargetMessage:{defaultValue:null,description:"",name:"setThreadTargetMessage",required:!0,type:{name:"Dispatch"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/App/DesktopLayout.tsx#DesktopLayout"]={docgenInfo:DesktopLayout_DesktopLayout.__docgenInfo,name:"DesktopLayout",path:"src/modules/App/DesktopLayout.tsx#DesktopLayout"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./src/modules/App/mobile.scss");var VoicePlayer=__webpack_require__("./src/hooks/VoicePlayer/index.tsx");function MobileLayout_slicedToArray(arr,i){return function MobileLayout_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function MobileLayout_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function MobileLayout_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return MobileLayout_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return MobileLayout_arrayLikeToArray(o,minLen)}(arr,i)||function MobileLayout_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function MobileLayout_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i void"}},disableAutoSelect:{defaultValue:null,description:"",name:"disableAutoSelect",required:!1,type:{name:"boolean"}},currentChannel:{defaultValue:null,description:"",name:"currentChannel",required:!1,type:{name:"GroupChannel"}},setCurrentChannel:{defaultValue:null,description:"",name:"setCurrentChannel",required:!0,type:{name:"Dispatch"}},enableLegacyChannelModules:{defaultValue:null,description:"",name:"enableLegacyChannelModules",required:!0,type:{name:"boolean"}},highlightedMessage:{defaultValue:null,description:"",name:"highlightedMessage",required:!1,type:{name:"number"}},setHighlightedMessage:{defaultValue:null,description:"",name:"setHighlightedMessage",required:!1,type:{name:"Dispatch"}},startingPoint:{defaultValue:null,description:"",name:"startingPoint",required:!1,type:{name:"number"}},setStartingPoint:{defaultValue:null,description:"",name:"setStartingPoint",required:!0,type:{name:"Dispatch"}},threadTargetMessage:{defaultValue:null,description:"",name:"threadTargetMessage",required:!0,type:{name:"SendableMessageType"}},setThreadTargetMessage:{defaultValue:null,description:"",name:"setThreadTargetMessage",required:!0,type:{name:"Dispatch"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/App/MobileLayout.tsx#MobileLayout"]={docgenInfo:MobileLayout_MobileLayout.__docgenInfo,name:"MobileLayout",path:"src/modules/App/MobileLayout.tsx#MobileLayout"})}catch(__react_docgen_typescript_loader_error){}function AppLayout_slicedToArray(arr,i){return function AppLayout_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function AppLayout_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function AppLayout_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return AppLayout_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AppLayout_arrayLikeToArray(o,minLen)}(arr,i)||function AppLayout_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AppLayout_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i void"}},disableAutoSelect:{defaultValue:null,description:"",name:"disableAutoSelect",required:!1,type:{name:"boolean"}},currentChannel:{defaultValue:null,description:"",name:"currentChannel",required:!1,type:{name:"GroupChannel"}},setCurrentChannel:{defaultValue:null,description:"",name:"setCurrentChannel",required:!0,type:{name:"Dispatch"}},enableLegacyChannelModules:{defaultValue:null,description:"",name:"enableLegacyChannelModules",required:!0,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/App/AppLayout.tsx#AppLayout"]={docgenInfo:AppLayout_AppLayout.__docgenInfo,name:"AppLayout",path:"src/modules/App/AppLayout.tsx#AppLayout"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./src/modules/App/index.scss");function App_slicedToArray(arr,i){return function App_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function App_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function App_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return App_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return App_arrayLikeToArray(o,minLen)}(arr,i)||function App_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function App_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i UserListQueryType"}},nickname:{defaultValue:null,description:"",name:"nickname",required:!1,type:{name:"string"}},profileUrl:{defaultValue:null,description:"",name:"profileUrl",required:!1,type:{name:"string"}},dateLocale:{defaultValue:null,description:"",name:"dateLocale",required:!1,type:{name:"Locale"}},config:{defaultValue:null,description:"",name:"config",required:!1,type:{name:"SendbirdConfig"}},isReactionEnabled:{defaultValue:null,description:"",name:"isReactionEnabled",required:!1,type:{name:"boolean"}},isMentionEnabled:{defaultValue:null,description:"",name:"isMentionEnabled",required:!1,type:{name:"boolean"}},isVoiceMessageEnabled:{defaultValue:null,description:"",name:"isVoiceMessageEnabled",required:!1,type:{name:"boolean"}},voiceRecord:{defaultValue:null,description:"",name:"voiceRecord",required:!1,type:{name:"VoiceRecordOptions"}},replyType:{defaultValue:null,description:"",name:"replyType",required:!1,type:{name:"enum",value:[{value:'"NONE"'},{value:'"QUOTE_REPLY"'},{value:'"THREAD"'}]}},isMultipleFilesMessageEnabled:{defaultValue:null,description:"",name:"isMultipleFilesMessageEnabled",required:!1,type:{name:"boolean"}},colorSet:{defaultValue:null,description:"",name:"colorSet",required:!1,type:{name:"Record"}},stringSet:{defaultValue:null,description:"",name:"stringSet",required:!1,type:{name:"Partial"}},allowProfileEdit:{defaultValue:null,description:"",name:"allowProfileEdit",required:!1,type:{name:"boolean"}},disableUserProfile:{defaultValue:null,description:"",name:"disableUserProfile",required:!1,type:{name:"boolean"}},disableMarkAsDelivered:{defaultValue:null,description:"",name:"disableMarkAsDelivered",required:!1,type:{name:"boolean"}},renderUserProfile:{defaultValue:null,description:"",name:"renderUserProfile",required:!1,type:{name:"(props: RenderUserProfileProps) => ReactElement>"}},showSearchIcon:{defaultValue:null,description:"",name:"showSearchIcon",required:!1,type:{name:"boolean"}},imageCompression:{defaultValue:null,description:"",name:"imageCompression",required:!1,type:{name:"ImageCompressionOptions"}},isTypingIndicatorEnabledOnChannelList:{defaultValue:null,description:"",name:"isTypingIndicatorEnabledOnChannelList",required:!1,type:{name:"boolean"}},isMessageReceiptStatusEnabledOnChannelList:{defaultValue:null,description:"",name:"isMessageReceiptStatusEnabledOnChannelList",required:!1,type:{name:"boolean"}},uikitOptions:{defaultValue:null,description:"",name:"uikitOptions",required:!1,type:{name:'{ common?: { enableUsingDefaultUserProfile?: boolean; }; groupChannel?: { enableOgtag?: boolean; enableTypingIndicator?: boolean; enableReactions?: boolean; enableReactionsSupergroup?: boolean; ... 8 more ...; showSuggestedRepliesFor?: "all_messages" | "last_message_only"; }; groupChannelList?: { ...; }; groupChanne...'}},isUserIdUsedForNickname:{defaultValue:null,description:"",name:"isUserIdUsedForNickname",required:!1,type:{name:"boolean"}},sdkInitParams:{defaultValue:null,description:"",name:"sdkInitParams",required:!1,type:{name:"SendbirdChatInitParams"}},customExtensionParams:{defaultValue:null,description:"",name:"customExtensionParams",required:!1,type:{name:"CustomExtensionParams"}},eventHandlers:{defaultValue:null,description:"",name:"eventHandlers",required:!1,type:{name:"SBUEventHandlers"}},isMessageGroupingEnabled:{defaultValue:null,description:"",name:"isMessageGroupingEnabled",required:!1,type:{name:"boolean"}},disableAutoSelect:{defaultValue:null,description:"",name:"disableAutoSelect",required:!1,type:{name:"boolean"}},onProfileEditSuccess:{defaultValue:null,description:"",name:"onProfileEditSuccess",required:!1,type:{name:"(user: User) => void"}},enableLegacyChannelModules:{defaultValue:null,description:"The default value is false.\nIf this option is enabled, it uses legacy modules (Channel, ChannelList) that are not applied local caching.",name:"enableLegacyChannelModules",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/App/index.tsx#App"]={docgenInfo:App_App.__docgenInfo,name:"App",path:"src/modules/App/index.tsx#App"})}catch(__react_docgen_typescript_loader_error){}},"./src/modules/App/mobile.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/App/mobile.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/App/stories/index.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"versionInfo",(function(){return index_stories_versionInfo})),__webpack_require__.d(__webpack_exports__,"basicSDK",(function(){return index_stories_basicSDK})),__webpack_require__.d(__webpack_exports__,"darkTheme",(function(){return index_stories_darkTheme})),__webpack_require__.d(__webpack_exports__,"login",(function(){return index_stories_login})),__webpack_require__.d(__webpack_exports__,"updateProfile",(function(){return index_stories_updateProfile})),__webpack_require__.d(__webpack_exports__,"Korean",(function(){return index_stories_Korean})),__webpack_require__.d(__webpack_exports__,"user1",(function(){return index_stories_user1})),__webpack_require__.d(__webpack_exports__,"user2",(function(){return index_stories_user2})),__webpack_require__.d(__webpack_exports__,"user3",(function(){return index_stories_user3})),__webpack_require__.d(__webpack_exports__,"user4",(function(){return index_stories_user4})),__webpack_require__.d(__webpack_exports__,"customer1",(function(){return index_stories_customer1})),__webpack_require__.d(__webpack_exports__,"disableUserProfile",(function(){return index_stories_disableUserProfile})),__webpack_require__.d(__webpack_exports__,"renderUserProfile",(function(){return index_stories_renderUserProfile})),__webpack_require__.d(__webpack_exports__,"randomlyChangeUserEveryFiveSeconds",(function(){return index_stories_randomlyChangeUserEveryFiveSeconds})),__webpack_require__.d(__webpack_exports__,"userListQuery",(function(){return index_stories_userListQuery})),__webpack_require__.d(__webpack_exports__,"multipleFilesMessage",(function(){return index_stories_multipleFilesMessage}));__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.set.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.fill.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js");var react=__webpack_require__("./node_modules/react/index.js"),ko=__webpack_require__("./node_modules/date-fns/esm/locale/ko/index.js"),package_0=__webpack_require__("./package.json"),App=__webpack_require__("./src/modules/App/index.tsx"),Sendbird=__webpack_require__("./src/lib/Sendbird.tsx"),GroupChannelList=__webpack_require__("./src/modules/GroupChannelList/index.tsx"),Channel=__webpack_require__("./src/modules/Channel/index.tsx"),ChannelSettings=__webpack_require__("./src/modules/ChannelSettings/index.tsx"),MessageSearch=__webpack_require__("./src/modules/MessageSearch/index.tsx"),SendbirdSdkContext=(__webpack_require__("./src/modules/ChannelList/index.tsx"),__webpack_require__("./src/ui/Label/stringSet.ts"),__webpack_require__("./src/modules/OpenChannel/index.tsx"),__webpack_require__("./src/modules/OpenChannelSettings/index.tsx"),__webpack_require__("./src/lib/SendbirdSdkContext.tsx")),types=(__webpack_require__("./src/lib/selectors.ts"),__webpack_require__("./src/hooks/useSendbirdStateContext.tsx"),__webpack_require__("./src/types.ts")),utils=__webpack_require__("./src/modules/App/stories/utils.jsx"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _defineProperties(target,props){for(var i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i {\n const [showAll, setshowAll] = useState(false);\n return (\n
\n
\n

@sendbird/uikit-react

\n npm\n

UIKit: {pkg.version}

\n

Sendbird SDK: {pkg.dependencies['@sendbird/chat']}

\n \n {\n showAll && (\n
\n
Dependencies
\n {\n Object.keys(pkg.dependencies)\n .map((p) => (\n
{p}: {pkg.dependencies[p]}
\n ))\n }\n
Dev.dependencies
\n {\n Object.keys(pkg.devDependencies)\n .map((p) => (\n
{p}: {pkg.devDependencies[p]}
\n ))\n }\n
\n )\n }\n
\n
\n );\n}"}},index_stories_versionInfo.parameters),index_stories_basicSDK.parameters=Object.assign({storySource:{source:"() => fitPageSize(\n \n)"}},index_stories_basicSDK.parameters),index_stories_darkTheme.parameters=Object.assign({storySource:{source:'() => fitPageSize(\n \n)'}},index_stories_darkTheme.parameters),index_stories_login.parameters=Object.assign({storySource:{source:"() => {\n const [isLoginPage, setIsLoginPage] = useState(true);\n const [userId, setUserId] = useState('hoon100');\n const [nickname, setNickname] = useState('hoon100');\n const [theme, setTheme] = useState('light');\n const [messageSearch, setMessageSearch] = useState(true);\n const [profileEdit, setProfileEdit] = useState(true);\n const [useReply, setUseReply] = useState(true);\n const [useMention, setUseMention] = useState(true);\n const [isTypingOnChannelListEnabled, setIsTypingOnChannelListEnabled] = useState(true);\n const [isMessageStatusOnChannelListEnabled, setIsMessageStatusOnChannelListEnabled] = useState(true);\n return isLoginPage\n ? fitPageSize(\n \n

LogIn

\n setUserId(e.target.value)}\n />\n setNickname(e.target.value)}\n />\n {\n if (theme === 'light') {\n setTheme('dark');\n } else {\n setTheme('light');\n }\n }}\n />\n setMessageSearch(!messageSearch)}\n />\n setProfileEdit(!profileEdit)}\n />\n setUseReply(!useReply)}\n />\n setUseMention(!useMention)}\n />\n setIsTypingOnChannelListEnabled(!isTypingOnChannelListEnabled)}\n />\n setIsMessageStatusOnChannelListEnabled(!isMessageStatusOnChannelListEnabled)}\n />\n setIsLoginPage(false)}\n />\n \n )\n : fitPageSize(\n \n )\n}"}},index_stories_login.parameters),index_stories_updateProfile.parameters=Object.assign({storySource:{source:"() => {\n return fitPageSize(\n {\n alert(user.nickname);\n }}\n showSearchIcon\n allowProfileEdit\n config={{ logLevel: 'all' }}\n />\n );\n}"}},index_stories_updateProfile.parameters),index_stories_Korean.parameters=Object.assign({storySource:{source:"() => fitPageSize(\n \n)"}},index_stories_Korean.parameters),index_stories_user1.parameters=Object.assign({storySource:{source:"() => fitPageSize(\n \n)"}},index_stories_user1.parameters),index_stories_user2.parameters=Object.assign({storySource:{source:"() => fitPageSize(\n \n)"}},index_stories_user2.parameters),index_stories_user3.parameters=Object.assign({storySource:{source:'() => fitPageSize(\n \n)'}},index_stories_user3.parameters),index_stories_user4.parameters=Object.assign({storySource:{source:'() => fitPageSize(\n \n)'}},index_stories_user4.parameters),index_stories_customer1.parameters=Object.assign({storySource:{source:"() => fitPageSize()"}},index_stories_customer1.parameters),index_stories_disableUserProfile.parameters=Object.assign({storySource:{source:"() => fitPageSize(\n \n)"}},index_stories_disableUserProfile.parameters),index_stories_renderUserProfile.parameters=Object.assign({storySource:{source:"() => fitPageSize(\n {\n return user.userId;\n }}\n />\n)"}},index_stories_renderUserProfile.parameters),index_stories_randomlyChangeUserEveryFiveSeconds.parameters=Object.assign({storySource:{source:"() => {\n const [myUserId, setMyUserId] = useState('hoon100');\n useEffect(() => {\n function getRandomArbitrary() {\n return Math.round(Math.random() * (10) / 3);\n }\n const userIds = [\n 'hoon100',\n 'sravan',\n 'sendbird',\n ];\n setInterval(() => {\n const randomId = getRandomArbitrary();\n setMyUserId(userIds[randomId]);\n }, 5000);\n }, []);\n return (\n fitPageSize(\n \n )\n );\n}"}},index_stories_randomlyChangeUserEveryFiveSeconds.parameters),index_stories_userListQuery.parameters=Object.assign({storySource:{source:"() => fitPageSize(\n \n)"}},index_stories_userListQuery.parameters),index_stories_multipleFilesMessage.parameters=Object.assign({storySource:{source:"() => fitPageSize(\n \n)"}},index_stories_multipleFilesMessage.parameters),index_stories_versionInfo.__docgenInfo={description:"",methods:[],displayName:"versionInfo"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/App/stories/index.stories.js"]={name:"versionInfo",docgenInfo:index_stories_versionInfo.__docgenInfo,path:"src/modules/App/stories/index.stories.js"})},"./src/modules/App/stories/integrated-app.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/App/stories/integrated-app.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/App/stories/integrated.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"GroupChannel",(function(){return GroupChannel}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.set.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js");var react__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_17___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_17__),_index__WEBPACK_IMPORTED_MODULE_19__=(__webpack_require__("./src/modules/App/stories/integrated-app.scss"),__webpack_require__("./src/modules/App/index.tsx")),_OpenChannelApp_Community__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/modules/OpenChannelApp/Community.tsx"),_OpenChannelApp_Streaming__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./src/modules/OpenChannelApp/Streaming.tsx"),_ui_Label__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/ui/Label/index.tsx"),_ui_Icon__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./src/ui/Icon/index.tsx"),_ui_Checkbox__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./src/ui/Checkbox/index.tsx"),_ui_Button__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./src/ui/Button/index.tsx"),_lib_MediaQueryContext__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./src/lib/MediaQueryContext.tsx"),_types__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./src/types.ts"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./node_modules/react/jsx-runtime.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i {\n const store = useRef(storePolyfill());\n let globalEnvironments;\n try {\n globalEnvironments = JSON.parse(store.current.getItem(STORAGE_KEY));\n } catch {\n // no-op\n }\n if (globalEnvironments === null || globalEnvironments === undefined) {\n globalEnvironments = { currentAppId: '', apps: {}, login: false };\n }\n const appIdInputRef = useRef(null);\n const userIdInputRef = useRef(null);\n const [isLoggedin, setIsLoggedin] = useState(globalEnvironments.login);\n const [sampleOptions, setSampleOptions] = useState({\n appId: '',\n userId: '',\n nickname: '',\n theme: ThemeType.light,\n compressionRate: 0.7,\n resizingHeight: '',\n resizingWidth: '',\n replyType: ReplyType.QUOTE_REPLY,\n channelType: ChannelType.GROUP,\n ...Object\n .entries(toggleItems)\n .reduce((acc, [path, item]) => ({\n ...acc,\n [path]: item.defaultValue,\n }), {})\n });\n\n useEffect(() => {\n if (isLoggedin) {\n const currentApp = globalEnvironments.apps?.[globalEnvironments.currentAppId];\n setSampleOptions({\n ...sampleOptions,\n ...currentApp.users?.[currentApp?.currentUserId],\n });\n } else {\n const currentAppId = globalEnvironments.currentAppId;\n const appIds = Object.keys(globalEnvironments.apps);\n if (currentAppId && appIds.includes(currentAppId)) {\n // if (appIdInputRef?.current) {\n // appIdInputRef.current.value = currentAppId;\n // }\n // use current app info\n const currentApp = globalEnvironments.apps[currentAppId];\n const currentUserId = currentApp.currentUserId;\n const userIds = Object.keys(currentApp.users);\n if (currentUserId && userIds.includes(currentUserId)) {\n // if (userIdInputRef?.current) {\n // userIdInputRef.current.value = currentUserId;\n // }\n // use current user info\n const userLoginInfo = currentApp.users[currentUserId];\n setSampleOptions({\n ...sampleOptions,\n ...userLoginInfo,\n userId: currentUserId,\n });\n }\n }\n }\n }, []);\n\n useEffect(() => {\n if (appIdInputRef?.current) {\n appIdInputRef.current.value = sampleOptions.appId || globalEnvironments?.currentAppId;\n }\n if (userIdInputRef?.current) {\n userIdInputRef.current.value = sampleOptions.userId || globalEnvironments.apps?.[sampleOptions?.appId]?.currentUserId;\n }\n }, [appIdInputRef, userIdInputRef, sampleOptions.appId, sampleOptions.userId]);\n\n // Sendbird App\n if (isLoggedin) {\n return (\n
\n {\n setIsLoggedin(false);\n storeCurrentSampleOptions({ store, sampleOptions, globalEnvironments });\n }} />\n
\n {\n sampleOptions.channelType === ChannelType.GROUP && (\n {\n const nextOptions = {\n ...sampleOptions,\n nickname: user.nickname,\n };\n setSampleOptions(nextOptions);\n storeCurrentSampleOptions({ store, sampleOptions: nextOptions, globalEnvironments });\n }}\n stringSet={{\n // CHANNEL_SETTING__MODERATION__REGISTER_AS_OPERATOR: '오퍼레이터 등록',\n // CHANNEL_SETTING__MODERATION__UNREGISTER_OPERATOR: '오퍼레이터 해제',\n // CHANNEL_SETTING__MODERATION__MUTE: '유저 음소거',\n // CHANNEL_SETTING__MODERATION__UNMUTE: '유저 음소거 해제',\n // CHANNEL_SETTING__MODERATION__BAN: '유저 밴',\n // CHANNEL_SETTING__MODERATION__UNBAN: '유저 언밴',\n // BUTTON__CREATE: '만들다',\n // BUTTON__INVITE: '초대하다',\n // CHANNEL_SETTING__MODERATION__EMPTY_BAN: '차단된 된 유저가 아무도 없습니다',\n // CHANNEL_SETTING__MODERATION__ALL_BAN: '차단된 유저 모두보기'\n }}\n />\n )\n }\n {\n sampleOptions.channelType === ChannelType.COMMUNITY && (\n \n )\n }\n {\n sampleOptions.channelType === ChannelType.LIVE && (\n \n )\n }\n
\n
\n )\n }\n // Login Page\n return (\n \n {/* We need it for helping QA team on mobile */}\n \n
\n \n Run Sendbird Group Channel Sample\n \n
\n
\n \n \n \n {\n sampleOptions.appId\n ? (\n \n \n \n )\n : (\n
\n {\n setSampleOptions({\n ...sampleOptions,\n appId: appIdInputRef?.current.value,\n });\n }}\n >Next\n
\n )\n }\n {(sampleOptions.appId && sampleOptions.userId) && (<>\n \n {\n setSampleOptions({\n ...sampleOptions,\n nickname: e.target.value,\n });\n }}\n />\n \n \n {\n setSampleOptions({\n ...sampleOptions,\n theme: selectedOption,\n });\n }}\n />\n \n \n \n {typeof sampleOptions.replyType !== 'undefined' &&\n {\n setSampleOptions({\n ...sampleOptions,\n replyType: selectedOption,\n })\n }}\n />\n }\n {/** Checkbox is for setting the replyType value to 'undefined' */}\n
\n {\n setSampleOptions(prevOptions => ({\n ...prevOptions,\n replyType: prevOptions.replyType ? undefined : true,\n }));\n }}\n />\n
\n
\n \n {Object.entries(toggleItems).map(([path, { title }]) => (\n \n {/** Toggle is for setting the value to true or false */}\n {typeof sampleOptions[path] === 'boolean' &&\n {\n setSampleOptions(prevOptions => ({\n ...prevOptions,\n [path]: !prevOptions[path],\n }));\n }}\n />\n }\n {/** Checkbox is for setting the value to 'undefined' */}\n {\n setSampleOptions(prevOptions => ({\n ...prevOptions,\n [path]: prevOptions[path] ? undefined : true,\n }));\n }}\n />\n \n ))}\n \n {\n setSampleOptions({\n ...sampleOptions,\n imageCompression: !sampleOptions.imageCompression,\n });\n }}\n />\n {\n sampleOptions.imageCompression && (\n
\n {/* Compression Rate */}\n
\n
\n \n
\n
\n\n
\n
\n {/* Resizing Height */}\n
\n
\n \n
\n
\n\n
\n
\n {/* Resizing Width */}\n
\n
\n \n
\n
\n\n
\n
\n
\n )\n }\n
\n )}\n {(sampleOptions.appId && !sampleOptions.userId) && (\n
\n {\n setSampleOptions({\n ...sampleOptions,\n appId: '',\n });\n }}\n >Modify AppId\n {\n setSampleOptions({\n ...sampleOptions,\n userId: userIdInputRef?.current.value,\n });\n }}\n >Next\n
\n )}\n \n {\n setSampleOptions({\n ...sampleOptions,\n channelType: selectedOption,\n });\n }}\n />\n \n {(sampleOptions.appId && sampleOptions.userId) && (\n
\n {\n setSampleOptions({\n ...sampleOptions,\n userId: '',\n });\n }}\n >Modify UserId\n {\n setIsLoggedin(true);\n // save to Local Storage\n store.current.setItem(STORAGE_KEY, JSON.stringify({\n login: true,\n currentAppId: sampleOptions.appId,\n apps: {\n ...globalEnvironments?.apps,\n [sampleOptions.appId]: {\n currentUserId: sampleOptions.userId,\n users: {\n ...globalEnvironments?.apps?.[sampleOptions.appId]?.users,\n [sampleOptions.userId]: sampleOptions,\n },\n },\n },\n }));\n }}\n >RUN\n
\n )}\n \n
\n \n );\n}"}},GroupChannel.parameters),GroupChannel.__docgenInfo={description:"",methods:[],displayName:"GroupChannel"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/App/stories/integrated.stories.js"]={name:"GroupChannel",docgenInfo:GroupChannel.__docgenInfo,path:"src/modules/App/stories/integrated.stories.js"})},"./src/modules/App/stories/theme.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/App/stories/theme.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/App/stories/theme.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"appliedTheme",(function(){return appliedTheme})),__webpack_require__.d(__webpack_exports__,"appliedThemeIE",(function(){return appliedThemeIE})),__webpack_require__.d(__webpack_exports__,"viaConfigTheme",(function(){return viaConfigTheme}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _lib_hooks_useTheme__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/lib/hooks/useTheme.ts"),_index__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/modules/App/index.tsx"),_utils__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/modules/App/stories/utils.jsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__=(__webpack_require__("./src/modules/App/stories/theme.scss"),__webpack_require__("./node_modules/react/jsx-runtime.js")),appId="FEA2129A-EA73-4EB9-9E0B-EC738E7EB768",userId="sendbirdian84";__webpack_exports__.default={title:"Theme"};var appliedTheme=function appliedTheme(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.Fragment,{children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div",{className:"storybook-theme",children:Object(_utils__WEBPACK_IMPORTED_MODULE_4__.a)(Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_index__WEBPACK_IMPORTED_MODULE_3__.a,{appId:appId,userId:userId,nickname:"Sendbirdian2020"}))})})},appliedThemeIE=function appliedThemeIE(){return Object(_lib_hooks_useTheme__WEBPACK_IMPORTED_MODULE_2__.a)({"--sendbird-light-primary-500":"#2e6830","--sendbird-light-primary-400":"#3d8b40","--sendbird-light-primary-300":"#4caf50","--sendbird-light-primary-200":"#93cf95","--sendbird-light-primary-100":"#dbefdc"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.Fragment,{children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div",{className:"storybook-theme-ie",children:Object(_utils__WEBPACK_IMPORTED_MODULE_4__.a)(Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_index__WEBPACK_IMPORTED_MODULE_3__.a,{appId:appId,userId:userId,nickname:"Sendbirdian2020"}))})})},viaConfigTheme=function viaConfigTheme(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.Fragment,{children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div",{className:"storybook-theme-use-config",children:Object(_utils__WEBPACK_IMPORTED_MODULE_4__.a)(Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_index__WEBPACK_IMPORTED_MODULE_3__.a,{appId:appId,userId:userId,nickname:"Sendbirdian2020",colorSet:{"--sendbird-light-primary-500":"#00487c","--sendbird-light-primary-400":"#4bb3fd","--sendbird-light-primary-300":"#3e6680","--sendbird-light-primary-200":"#0496ff","--sendbird-light-primary-100":"#027bce"}}))})})};appliedTheme.parameters=Object.assign({storySource:{source:'() => (\n <>\n
\n {\n fitPageSize(\n \n )\n }\n
\n \n)'}},appliedTheme.parameters),appliedThemeIE.parameters=Object.assign({storySource:{source:'() => {\n useTheme({\n "--sendbird-light-primary-500": "#2e6830",\n "--sendbird-light-primary-400": "#3d8b40",\n "--sendbird-light-primary-300": "#4caf50",\n "--sendbird-light-primary-200": "#93cf95",\n "--sendbird-light-primary-100": "#dbefdc",\n });\n return (\n <>\n
\n {\n fitPageSize(\n \n )\n }\n
\n \n );\n}'}},appliedThemeIE.parameters),viaConfigTheme.parameters=Object.assign({storySource:{source:"() => {\n return (\n <>\n
\n {\n fitPageSize(\n \n )\n }\n
\n \n );\n}"}},viaConfigTheme.parameters),appliedTheme.__docgenInfo={description:"",methods:[],displayName:"appliedTheme"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/App/stories/theme.stories.js"]={name:"appliedTheme",docgenInfo:appliedTheme.__docgenInfo,path:"src/modules/App/stories/theme.stories.js"}),appliedThemeIE.__docgenInfo={description:"",methods:[],displayName:"appliedThemeIE"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/App/stories/theme.stories.js"]={name:"appliedThemeIE",docgenInfo:appliedThemeIE.__docgenInfo,path:"src/modules/App/stories/theme.stories.js"}),viaConfigTheme.__docgenInfo={description:"",methods:[],displayName:"viaConfigTheme"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/App/stories/theme.stories.js"]={name:"viaConfigTheme",docgenInfo:viaConfigTheme.__docgenInfo,path:"src/modules/App/stories/theme.stories.js"})},"./src/modules/App/stories/utils.jsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return fitPageSize}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/jsx-runtime.js"),fitPageSize=function fitPageSize(component){var style=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div",{style:Object.assign({height:"100vh",width:"100vw"},style),children:component})};fitPageSize.displayName="fitPageSize";fitPageSize.__docgenInfo={description:"",methods:[],displayName:"fitPageSize"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/App/stories/utils.jsx"]={name:"fitPageSize",docgenInfo:fitPageSize.__docgenInfo,path:"src/modules/App/stories/utils.jsx"})},"./src/modules/Channel/components/MessageFeedbackModal/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/Channel/components/MessageFeedbackModal/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/Channel/context/const.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return PREV_RESULT_SIZE})),__webpack_require__.d(__webpack_exports__,"a",(function(){return NEXT_RESULT_SIZE}));var _GroupChannel_context_const__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/modules/GroupChannel/context/const.ts");__webpack_require__.d(__webpack_exports__,"c",(function(){return _GroupChannel_context_const__WEBPACK_IMPORTED_MODULE_0__.c})),__webpack_require__.d(__webpack_exports__,"d",(function(){return _GroupChannel_context_const__WEBPACK_IMPORTED_MODULE_0__.d}));var PREV_RESULT_SIZE=30,NEXT_RESULT_SIZE=15},"./src/modules/Channel/context/dux/actionTypes.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"RESET_MESSAGES",(function(){return RESET_MESSAGES})),__webpack_require__.d(__webpack_exports__,"FETCH_INITIAL_MESSAGES_START",(function(){return FETCH_INITIAL_MESSAGES_START})),__webpack_require__.d(__webpack_exports__,"FETCH_INITIAL_MESSAGES_SUCCESS",(function(){return FETCH_INITIAL_MESSAGES_SUCCESS})),__webpack_require__.d(__webpack_exports__,"FETCH_INITIAL_MESSAGES_FAILURE",(function(){return FETCH_INITIAL_MESSAGES_FAILURE})),__webpack_require__.d(__webpack_exports__,"FETCH_PREV_MESSAGES_SUCCESS",(function(){return FETCH_PREV_MESSAGES_SUCCESS})),__webpack_require__.d(__webpack_exports__,"FETCH_PREV_MESSAGES_FAILURE",(function(){return FETCH_PREV_MESSAGES_FAILURE})),__webpack_require__.d(__webpack_exports__,"FETCH_NEXT_MESSAGES_SUCCESS",(function(){return FETCH_NEXT_MESSAGES_SUCCESS})),__webpack_require__.d(__webpack_exports__,"FETCH_NEXT_MESSAGES_FAILURE",(function(){return FETCH_NEXT_MESSAGES_FAILURE})),__webpack_require__.d(__webpack_exports__,"SEND_MESSAGE_START",(function(){return SEND_MESSAGE_START})),__webpack_require__.d(__webpack_exports__,"SEND_MESSAGE_SUCCESS",(function(){return SEND_MESSAGE_SUCCESS})),__webpack_require__.d(__webpack_exports__,"SEND_MESSAGE_FAILURE",(function(){return SEND_MESSAGE_FAILURE})),__webpack_require__.d(__webpack_exports__,"RESEND_MESSAGE_START",(function(){return RESEND_MESSAGE_START})),__webpack_require__.d(__webpack_exports__,"ON_MESSAGE_RECEIVED",(function(){return ON_MESSAGE_RECEIVED})),__webpack_require__.d(__webpack_exports__,"ON_MESSAGE_UPDATED",(function(){return ON_MESSAGE_UPDATED})),__webpack_require__.d(__webpack_exports__,"ON_MESSAGE_THREAD_INFO_UPDATED",(function(){return ON_MESSAGE_THREAD_INFO_UPDATED})),__webpack_require__.d(__webpack_exports__,"ON_MESSAGE_DELETED",(function(){return ON_MESSAGE_DELETED})),__webpack_require__.d(__webpack_exports__,"ON_MESSAGE_DELETED_BY_REQ_ID",(function(){return ON_MESSAGE_DELETED_BY_REQ_ID})),__webpack_require__.d(__webpack_exports__,"SET_CURRENT_CHANNEL",(function(){return SET_CURRENT_CHANNEL})),__webpack_require__.d(__webpack_exports__,"SET_CHANNEL_INVALID",(function(){return SET_CHANNEL_INVALID})),__webpack_require__.d(__webpack_exports__,"MARK_AS_READ",(function(){return MARK_AS_READ})),__webpack_require__.d(__webpack_exports__,"ON_REACTION_UPDATED",(function(){return ON_REACTION_UPDATED})),__webpack_require__.d(__webpack_exports__,"SET_EMOJI_CONTAINER",(function(){return SET_EMOJI_CONTAINER})),__webpack_require__.d(__webpack_exports__,"MESSAGE_LIST_PARAMS_CHANGED",(function(){return MESSAGE_LIST_PARAMS_CHANGED})),__webpack_require__.d(__webpack_exports__,"ON_FILE_INFO_UPLOADED",(function(){return ON_FILE_INFO_UPLOADED})),__webpack_require__.d(__webpack_exports__,"ON_TYPING_STATUS_UPDATED",(function(){return ON_TYPING_STATUS_UPDATED}));var RESET_MESSAGES="RESET_MESSAGES",FETCH_INITIAL_MESSAGES_START="FETCH_INITIAL_MESSAGES_START",FETCH_INITIAL_MESSAGES_SUCCESS="FETCH_INITIAL_MESSAGES_SUCCESS",FETCH_INITIAL_MESSAGES_FAILURE="FETCH_INITIAL_MESSAGES_FAILURE",FETCH_PREV_MESSAGES_SUCCESS="FETCH_PREV_MESSAGES_SUCCESS",FETCH_PREV_MESSAGES_FAILURE="FETCH_PREV_MESSAGES_FAILURE",FETCH_NEXT_MESSAGES_SUCCESS="FETCH_NEXT_MESSAGES_SUCCESS",FETCH_NEXT_MESSAGES_FAILURE="FETCH_NEXT_MESSAGES_FAILURE",SEND_MESSAGE_START="SEND_MESSAGE_START",SEND_MESSAGE_SUCCESS="SEND_MESSAGE_SUCCESS",SEND_MESSAGE_FAILURE="SEND_MESSAGE_FAILURE",RESEND_MESSAGE_START="RESEND_MESSAGE_START",ON_MESSAGE_RECEIVED="ON_MESSAGE_RECEIVED",ON_MESSAGE_UPDATED="ON_MESSAGE_UPDATED",ON_MESSAGE_THREAD_INFO_UPDATED="ON_MESSAGE_THREAD_INFO_UPDATED",ON_MESSAGE_DELETED="ON_MESSAGE_DELETED",ON_MESSAGE_DELETED_BY_REQ_ID="ON_MESSAGE_DELETED_BY_REQ_ID",SET_CURRENT_CHANNEL="SET_CURRENT_CHANNEL",SET_CHANNEL_INVALID="SET_CHANNEL_INVALID",MARK_AS_READ="MARK_AS_READ",ON_REACTION_UPDATED="ON_REACTION_UPDATED",SET_EMOJI_CONTAINER="SET_EMOJI_CONTAINER",MESSAGE_LIST_PARAMS_CHANGED="MESSAGE_LIST_PARAMS_CHANGED",ON_FILE_INFO_UPLOADED="ON_FILE_INFO_UPLOADED",ON_TYPING_STATUS_UPDATED="ON_TYPING_STATUS_UPDATED"},"./src/modules/Channel/context/hooks/useFileInfoListWithUploaded.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return useFileInfoListWithUploaded}));__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.map.js"),__webpack_require__("./node_modules/core-js/modules/web.url.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js");var _sendbird_chat_message__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-c578be85.js"),react__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/react/index.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r0&&(blobHandler.current.forEach((function(url){return URL.revokeObjectURL(url)})),blobHandler.current.clear())};return Object(react__WEBPACK_IMPORTED_MODULE_19__.useEffect)((function(){return function(){return revokeURLs()}}),[]),message&&message.isMultipleFilesMessage&&message.isMultipleFilesMessage()?message.sendingStatus===_sendbird_chat_message__WEBPACK_IMPORTED_MODULE_18__.tb.SUCCEEDED?(revokeURLs(),message.fileInfoList.map((function(it){return _objectSpread(_objectSpread({},it),{},{url:it.url,isUploaded:!0})}))):message.messageParams.fileInfoList.map((function(it,index){var _ref,_getObjectURL;return _objectSpread(_objectSpread({},it),{},{url:null!==(_ref=null!==(_getObjectURL=getObjectURL(index))&&void 0!==_getObjectURL?_getObjectURL:it.fileUrl)&&void 0!==_ref?_ref:it.file instanceof Blob?getObjectURL(index,it.file):void 0,isUploaded:!it.file&&"string"==typeof it.fileUrl&&it.fileUrl.length>0})})):[]}},"./src/modules/Channel/context/hooks/useReconnectOnIdle.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var react__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/react/index.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i2&&void 0!==arguments[2])||arguments[2],_useState2=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_10__.useState)(!1),2),isTabHidden=_useState2[0],setIsTabHidden=_useState2[1],wasOffline=!isOnline;return Object(react__WEBPACK_IMPORTED_MODULE_10__.useEffect)((function(){var handleVisibilityChange=function handleVisibilityChange(){reconnectOnIdle&&setIsTabHidden(document.hidden)};return document.addEventListener("visibilitychange",handleVisibilityChange),function(){document.removeEventListener("visibilitychange",handleVisibilityChange)}}),[reconnectOnIdle,document.hidden]),{shouldReconnect:wasOffline&&null!=(null==currentGroupChannel?void 0:currentGroupChannel.url)&&!isTabHidden}}},"./src/modules/Channel/context/hooks/useSendMultipleFilesMessage.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return useSendMultipleFilesMessage}));__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/index.js"),_lib_pubSub_topics__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/lib/pubSub/topics.ts"),_utils__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/modules/Channel/context/utils.ts"),_internalInterfaces__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/modules/internalInterfaces.ts"),_Thread_context_utils__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/modules/Thread/context/utils.ts"),_utils_consts__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./src/utils/consts.ts"),useSendMultipleFilesMessage=function useSendMultipleFilesMessage(_ref,_ref2){var currentChannel=_ref.currentChannel,onBeforeSendMultipleFilesMessage=_ref.onBeforeSendMultipleFilesMessage,publishingModules=_ref.publishingModules,logger=_ref2.logger,pubSub=_ref2.pubSub,scrollRef=_ref2.scrollRef;return[Object(react__WEBPACK_IMPORTED_MODULE_4__.useCallback)((function(files,quoteMessage){return new Promise((function(resolve,reject){currentChannel||(logger.warning("Channel: Sending MFm failed, because currentChannel is null.",{currentChannel:currentChannel}),reject()),files.length<=1&&(logger.warning("Channel: Sending MFM failed, because there are no multiple files.",{files:files}),reject());var messageParams={fileInfoList:files.map((function(file){return{file:file,fileName:file.name,fileSize:file.size,mimeType:file.type}}))};quoteMessage&&(messageParams.isReplyToChannel=!0,messageParams.parentMessageId=quoteMessage.messageId),"function"==typeof onBeforeSendMultipleFilesMessage&&(messageParams=onBeforeSendMultipleFilesMessage(files,quoteMessage)),logger.info("Channel: Start sending MFM",{messageParams:messageParams});try{currentChannel.sendMultipleFilesMessage(messageParams).onFileUploaded((function(requestId,index,uploadableFileInfo,error){logger.info("Channel: onFileUploaded during sending MFM",{requestId:requestId,index:index,error:error,uploadableFileInfo:uploadableFileInfo}),pubSub.publish(_lib_pubSub_topics__WEBPACK_IMPORTED_MODULE_5__.c.ON_FILE_INFO_UPLOADED,{response:{channelUrl:currentChannel.url,requestId:requestId,index:index,uploadableFileInfo:uploadableFileInfo,error:error},publishingModules:publishingModules})})).onPending((function(pendingMessage){logger.info("Channel: in progress of sending MFM",{pendingMessage:pendingMessage,fileInfoList:messageParams.fileInfoList}),pubSub.publish(_lib_pubSub_topics__WEBPACK_IMPORTED_MODULE_5__.c.SEND_MESSAGE_START,{message:pendingMessage,channel:currentChannel,publishingModules:publishingModules}),setTimeout((function(){scrollRef&&Object(_internalInterfaces__WEBPACK_IMPORTED_MODULE_7__.b)(publishingModules)&&Object(_utils__WEBPACK_IMPORTED_MODULE_6__.h)(0,scrollRef),Object(_internalInterfaces__WEBPACK_IMPORTED_MODULE_7__.c)(publishingModules)&&Object(_Thread_context_utils__WEBPACK_IMPORTED_MODULE_8__.e)(0)}),_utils_consts__WEBPACK_IMPORTED_MODULE_9__.k)})).onFailed((function(error,failedMessage){logger.error("Channel: Sending MFM failed.",{error:error,failedMessage:failedMessage}),pubSub.publish(_lib_pubSub_topics__WEBPACK_IMPORTED_MODULE_5__.c.SEND_MESSAGE_FAILED,{channel:currentChannel,message:failedMessage,publishingModules:publishingModules}),reject(error)})).onSucceeded((function(succeededMessage){logger.info("Channel: Sending voice message success!",{succeededMessage:succeededMessage}),pubSub.publish(_lib_pubSub_topics__WEBPACK_IMPORTED_MODULE_5__.c.SEND_FILE_MESSAGE,{channel:currentChannel,message:succeededMessage,publishingModules:publishingModules}),resolve(succeededMessage)}))}catch(error){logger.error("Channel: Sending MFM failed.",{error:error}),reject(error)}}))}),[currentChannel,onBeforeSendMultipleFilesMessage,publishingModules])]}},"./src/modules/Channel/context/hooks/useThreadMessageKindKeySelector.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return useThreadMessageKindKeySelector}));var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_ui_MultipleFilesMessageItemBody__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/ui/MultipleFilesMessageItemBody/index.tsx"),ts_pattern__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/ts-pattern/dist/index.js");function useThreadMessageKindKeySelector(_ref){var threadMessageKind=_ref.threadMessageKind,isMobile=_ref.isMobile;return Object(react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((function(){return Object(ts_pattern__WEBPACK_IMPORTED_MODULE_2__.b)(threadMessageKind).with(_ui_MultipleFilesMessageItemBody__WEBPACK_IMPORTED_MODULE_1__.a.PARENT,(function(){return isMobile?"THREAD_PARENT_MOBILE":"THREAD_PARENT_WEB"})).with(_ui_MultipleFilesMessageItemBody__WEBPACK_IMPORTED_MODULE_1__.a.CHILD,(function(){return isMobile?"THREAD_CHILD_MOBILE":"THREAD_CHILD_WEB"})).otherwise((function(){return isMobile?"CHAT_MOBILE":"CHAT_WEB"}))}),[isMobile,threadMessageKind])}},"./src/modules/Channel/context/utils.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"i",(function(){return scrollToRenderedMessage})),__webpack_require__.d(__webpack_exports__,"h",(function(){return scrollIntoLast})),__webpack_require__.d(__webpack_exports__,"d",(function(){return isDisabledBecauseFrozen})),__webpack_require__.d(__webpack_exports__,"e",(function(){return isDisabledBecauseMuted})),__webpack_require__.d(__webpack_exports__,"a",(function(){return getAllEmojisMapFromEmojiContainer})),__webpack_require__.d(__webpack_exports__,"b",(function(){return getNicknamesMapFromMembers})),__webpack_require__.d(__webpack_exports__,"f",(function(){return mergeAndSortMessages})),__webpack_require__.d(__webpack_exports__,"g",(function(){return passUnsuccessfullMessages})),__webpack_require__.d(__webpack_exports__,"c",(function(){return isAboutSame}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.sort.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.splice.js"),__webpack_require__("./node_modules/core-js/modules/es.number.parse-float.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.number.is-nan.js"),__webpack_require__("./node_modules/date-fns/esm/format/index.js");var _sendbird_chat_message__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-c578be85.js");function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1?arguments[1]:void 0,setIsScrolled=arguments.length>2?arguments[2]:void 0,currentTry=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(currentTry>10)null==setIsScrolled||setIsScrolled(!0);else try{var scrollDOM=(null==scrollRef?void 0:scrollRef.current)||document.querySelector(".sendbird-conversation__messages-padding");scrollDOM.scrollTop=scrollDOM.scrollHeight,null==setIsScrolled||setIsScrolled(!0)}catch(error){setTimeout((function(){scrollIntoLast(currentTry+1,scrollRef,setIsScrolled)}),500*currentTry)}},isDisabledBecauseFrozen=function isDisabledBecauseFrozen(groupChannel){return(null==groupChannel?void 0:groupChannel.isFrozen)&&!function isOperator(groupChannel){return"operator"===(null==groupChannel?void 0:groupChannel.myRole)}(groupChannel)},isDisabledBecauseMuted=function isDisabledBecauseMuted(groupChannel){return"muted"===(null==groupChannel?void 0:groupChannel.myMutedState)},getAllEmojisMapFromEmojiContainer=function getAllEmojisMapFromEmojiContainer(emojiContainer){for(var _emojiContainer$emoji=emojiContainer.emojiCategories,emojiCategories=void 0===_emojiContainer$emoji?[]:_emojiContainer$emoji,allEmojisMap=new Map,categoryIndex=0;categoryIndex0&&void 0!==arguments[0]?arguments[0]:[],nicknamesMap=new Map,memberIndex=0;memberIndexarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&void 0!==arguments[0]?arguments[0]:[])[0];return oldestMessage&&oldestMessage.createdAt||null},getLatestMessageTimeStamp=function getLatestMessageTimeStamp(){var messages=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],latestMessage=messages[messages.length-1];return latestMessage&&latestMessage.createdAt||null};function hasReqId(message){return"reqId"in message}function channelReducer(state,action){return Object(dist.b)(action).with({type:actionTypes.RESET_MESSAGES},(function(){return _objectSpread(_objectSpread({},state),{},{hasMorePrev:!1,hasMoreNext:!1,allMessages:[],localMessages:[]})})).with({type:actionTypes.FETCH_INITIAL_MESSAGES_START},(function(){return _objectSpread(_objectSpread({},state),{},{loading:!0,allMessages:state.allMessages.filter((function(m){return!Object(src_utils.K)(m)||m.sendingStatus!==_bundle_c578be85.tb.SUCCEEDED})),localMessages:[]})})).with({type:actionTypes.FETCH_INITIAL_MESSAGES_SUCCESS},(function(action){var _state$currentGroupCh,_action$payload=action.payload,currentGroupChannel=_action$payload.currentGroupChannel,messages=_action$payload.messages;if((null==currentGroupChannel?void 0:currentGroupChannel.url)!==(null===(_state$currentGroupCh=state.currentGroupChannel)||void 0===_state$currentGroupCh?void 0:_state$currentGroupCh.url))return state;var oldestMessageTimeStamp=getOldestMessageTimeStamp(messages),latestMessageTimeStamp=getLatestMessageTimeStamp(messages);return _objectSpread(_objectSpread({},state),{},{loading:!1,initialized:!0,hasMorePrev:!0,hasMoreNext:!0,oldestMessageTimeStamp:oldestMessageTimeStamp,latestMessageTimeStamp:latestMessageTimeStamp,allMessages:_toConsumableArray(messages)})})).with({type:actionTypes.FETCH_PREV_MESSAGES_SUCCESS},(function(action){var _state$currentGroupCh2,_messages$length,_state$messageListPar,_state$messageListPar2,_action$payload2=action.payload,currentGroupChannel=_action$payload2.currentGroupChannel,messages=_action$payload2.messages;if((null==currentGroupChannel?void 0:currentGroupChannel.url)!==(null===(_state$currentGroupCh2=state.currentGroupChannel)||void 0===_state$currentGroupCh2?void 0:_state$currentGroupCh2.url))return state;var hasMorePrev=(null!==(_messages$length=null==messages?void 0:messages.length)&&void 0!==_messages$length?_messages$length:0)>=(null!==(_state$messageListPar=null==state||null===(_state$messageListPar2=state.messageListParams)||void 0===_state$messageListPar2?void 0:_state$messageListPar2.prevResultSize)&&void 0!==_state$messageListPar?_state$messageListPar:context_const.b)+1,oldestMessageTimeStamp=getOldestMessageTimeStamp(messages),duplicatedMessageIds=[],updatedOldMessages=state.allMessages.map((function(msg){var duplicatedMessage=messages.find((function(_ref){var messageId=_ref.messageId;return Object(compareIds.a)(messageId,msg.messageId)}));return duplicatedMessage?(duplicatedMessageIds.push(duplicatedMessage.messageId),duplicatedMessage.updatedAt>msg.updatedAt?duplicatedMessage:msg):msg})),filteredNewMessages=duplicatedMessageIds.length>0?messages.filter((function(msg){return!duplicatedMessageIds.find((function(messageId){return Object(compareIds.a)(messageId,msg.messageId)}))})):messages;return _objectSpread(_objectSpread({},state),{},{hasMorePrev:hasMorePrev,oldestMessageTimeStamp:oldestMessageTimeStamp,allMessages:[].concat(_toConsumableArray(filteredNewMessages),_toConsumableArray(updatedOldMessages))})})).with({type:actionTypes.FETCH_NEXT_MESSAGES_SUCCESS},(function(action){var _state$currentGroupCh3,_messages$length2,_state$messageListPar3,_state$messageListPar4,_action$payload3=action.payload,currentGroupChannel=_action$payload3.currentGroupChannel,messages=_action$payload3.messages;if((null==currentGroupChannel?void 0:currentGroupChannel.url)!==(null===(_state$currentGroupCh3=state.currentGroupChannel)||void 0===_state$currentGroupCh3?void 0:_state$currentGroupCh3.url))return state;var hasMoreNext=(null!==(_messages$length2=null==messages?void 0:messages.length)&&void 0!==_messages$length2?_messages$length2:0)===(null!==(_state$messageListPar3=null==state||null===(_state$messageListPar4=state.messageListParams)||void 0===_state$messageListPar4?void 0:_state$messageListPar4.nextResultSize)&&void 0!==_state$messageListPar3?_state$messageListPar3:context_const.a)+1,latestMessageTimeStamp=getLatestMessageTimeStamp(messages),sortedMessages=Object(utils.f)(state.allMessages,messages);return _objectSpread(_objectSpread({},state),{},{hasMoreNext:hasMoreNext,latestMessageTimeStamp:latestMessageTimeStamp,allMessages:sortedMessages})})).with({type:dist.a.union(actionTypes.FETCH_INITIAL_MESSAGES_FAILURE,actionTypes.FETCH_PREV_MESSAGES_FAILURE,actionTypes.FETCH_NEXT_MESSAGES_FAILURE)},(function(action){var _state$currentGroupCh4,currentGroupChannel=action.payload.currentGroupChannel;if((null==currentGroupChannel?void 0:currentGroupChannel.url)!==(null==state||null===(_state$currentGroupCh4=state.currentGroupChannel)||void 0===_state$currentGroupCh4?void 0:_state$currentGroupCh4.url))return state;var shouldInvalid=[actionTypes.FETCH_INITIAL_MESSAGES_FAILURE].includes(action.type);return _objectSpread(_objectSpread({},state),{},{loading:!1,isInvalid:shouldInvalid,initialized:!1,allMessages:[],hasMorePrev:!1,hasMoreNext:!1,oldestMessageTimeStamp:null,latestMessageTimeStamp:null})})).with({type:actionTypes.SEND_MESSAGE_START},(function(action){return _objectSpread(_objectSpread({},state),{},{localMessages:[].concat(_toConsumableArray(state.localMessages),[action.payload])})})).with({type:actionTypes.SEND_MESSAGE_SUCCESS},(function(action){var message=action.payload,filteredMessages=state.allMessages.filter((function(m){return!hasReqId(m)||(null==m?void 0:m.reqId)!==(null==message?void 0:message.reqId)}));return _objectSpread(_objectSpread({},state),{},{allMessages:[].concat(_toConsumableArray(filteredMessages),[message]),localMessages:state.localMessages.filter((function(m){return hasReqId(m)&&(null==m?void 0:m.reqId)!==(null==message?void 0:message.reqId)}))})})).with({type:actionTypes.SEND_MESSAGE_FAILURE},(function(action){return action.payload.failed=!0,_objectSpread(_objectSpread({},state),{},{localMessages:state.localMessages.map((function(m){return Object(compareIds.a)(hasReqId(m)&&m.reqId,action.payload.reqId)?action.payload:m}))})})).with({type:actionTypes.SET_CURRENT_CHANNEL},(function(action){return _objectSpread(_objectSpread({},state),{},{currentGroupChannel:action.payload,isInvalid:!1})})).with({type:actionTypes.SET_CHANNEL_INVALID},(function(){return _objectSpread(_objectSpread({},state),{},{currentGroupChannel:null,allMessages:[],localMessages:[],isInvalid:!0})})).with({type:actionTypes.ON_MESSAGE_RECEIVED},(function(action){var _state$unreadSince,_state$unreadSinceDat,_action$payload4=action.payload,channel=_action$payload4.channel,message=_action$payload4.message,members=channel.members,sender=message.sender,currentGroupChannel=state.currentGroupChannel,currentGroupChannelUrl=null==currentGroupChannel?void 0:currentGroupChannel.url;if(!Object(compareIds.a)(null==channel?void 0:channel.url,currentGroupChannelUrl))return state;if(state.allMessages.some((function(msg){return msg.messageId===message.messageId})))return state;if(state.messageListParams&&!Object(src_utils.g)(state.messageListParams,message))return state;if(message.isAdminMessage&&message.isAdminMessage())return _objectSpread(_objectSpread({},state),{},{allMessages:Object(utils.g)(state.allMessages,message)});var senderMember=null==members?void 0:members.find((function(m){return(null==m?void 0:m.userId)===(null==sender?void 0:sender.userId)}));return(null==senderMember?void 0:senderMember.profileUrl)===(null==sender?void 0:sender.profileUrl)&&(null==senderMember?void 0:senderMember.friendName)===(null==sender?void 0:sender.friendName)&&(null==senderMember?void 0:senderMember.nickname)===(null==sender?void 0:sender.nickname)||(channel.members=members.map((function(member){return member.userId===sender.userId?sender:member}))),_objectSpread(_objectSpread({},state),{},{currentGroupChannel:channel,unreadSince:null!==(_state$unreadSince=state.unreadSince)&&void 0!==_state$unreadSince?_state$unreadSince:Object(format.a)(new Date,"p MMM dd"),unreadSinceDate:null!==(_state$unreadSinceDat=state.unreadSinceDate)&&void 0!==_state$unreadSinceDat?_state$unreadSinceDat:new Date,allMessages:Object(utils.g)(state.allMessages,message)})})).with({type:actionTypes.ON_MESSAGE_UPDATED},(function(action){var _state$currentGroupCh5,_action$payload5=action.payload,channel=_action$payload5.channel,message=_action$payload5.message,currentGroupChannelUrl=(null==state||null===(_state$currentGroupCh5=state.currentGroupChannel)||void 0===_state$currentGroupCh5?void 0:_state$currentGroupCh5.url)||"";return Object(compareIds.a)(null==channel?void 0:channel.url,currentGroupChannelUrl)?state.messageListParams&&!Object(src_utils.g)(state.messageListParams,message)?_objectSpread(_objectSpread({},state),{},{allMessages:state.allMessages.filter((function(m){return!Object(compareIds.a)(m.messageId,null==message?void 0:message.messageId)}))}):_objectSpread(_objectSpread({},state),{},{allMessages:state.allMessages.map((function(m){return Object(compareIds.a)(m.messageId,message.messageId)?message:(Object(compareIds.a)(m.parentMessageId,message.messageId)&&(m.parentMessage=message),m)}))}):state})).with({type:actionTypes.ON_MESSAGE_THREAD_INFO_UPDATED},(function(action){var _state$currentGroupCh6,_action$payload6=action.payload,channel=_action$payload6.channel,event=_action$payload6.event,channelUrl=event.channelUrl,threadInfo=event.threadInfo,targetMessageId=event.targetMessageId,currentGroupChannelUrl=(null==state||null===(_state$currentGroupCh6=state.currentGroupChannel)||void 0===_state$currentGroupCh6?void 0:_state$currentGroupCh6.url)||"";return Object(compareIds.a)(null==channel?void 0:channel.url,currentGroupChannelUrl)&&Object(compareIds.a)(null==channel?void 0:channel.url,channelUrl)?_objectSpread(_objectSpread({},state),{},{allMessages:state.allMessages.map((function(m){return Object(compareIds.a)(m.messageId,targetMessageId)&&(m.threadInfo=threadInfo),m}))}):state})).with({type:actionTypes.RESEND_MESSAGE_START},(function(action){return _objectSpread(_objectSpread({},state),{},{localMessages:state.localMessages.map((function(m){return Object(compareIds.a)(hasReqId(m)&&m.reqId,action.payload.reqId)?action.payload:m}))})})).with({type:actionTypes.MARK_AS_READ},(function(action){var _state$currentGroupCh7,_action$payload7;return(null===(_state$currentGroupCh7=state.currentGroupChannel)||void 0===_state$currentGroupCh7?void 0:_state$currentGroupCh7.url)!==(null===(_action$payload7=action.payload)||void 0===_action$payload7||null===(_action$payload7=_action$payload7.channel)||void 0===_action$payload7?void 0:_action$payload7.url)?state:_objectSpread(_objectSpread({},state),{},{unreadSince:null,unreadSinceDate:null})})).with({type:actionTypes.ON_MESSAGE_DELETED},(function(action){return _objectSpread(_objectSpread({},state),{},{allMessages:state.allMessages.filter((function(m){return!Object(compareIds.a)(m.messageId,action.payload)}))})})).with({type:actionTypes.ON_MESSAGE_DELETED_BY_REQ_ID},(function(action){return _objectSpread(_objectSpread({},state),{},{localMessages:state.localMessages.filter((function(m){return!Object(compareIds.a)(hasReqId(m)&&m.reqId,action.payload)}))})})).with({type:actionTypes.SET_EMOJI_CONTAINER},(function(action){return _objectSpread(_objectSpread({},state),{},{emojiContainer:action.payload})})).with({type:actionTypes.ON_REACTION_UPDATED},(function(action){return _objectSpread(_objectSpread({},state),{},{allMessages:state.allMessages.map((function(m){return Object(compareIds.a)(m.messageId,action.payload.messageId)?(m.applyReactionEvent&&"function"==typeof m.applyReactionEvent&&m.applyReactionEvent(action.payload),m):m}))})})).with({type:actionTypes.MESSAGE_LIST_PARAMS_CHANGED},(function(action){return _objectSpread(_objectSpread({},state),{},{messageListParams:action.payload})})).with({type:actionTypes.ON_FILE_INFO_UPLOADED},(function(action){var _state$currentGroupCh8,_messageParams,_action$payload8=action.payload,channelUrl=_action$payload8.channelUrl,requestId=_action$payload8.requestId,index=_action$payload8.index,uploadableFileInfo=_action$payload8.uploadableFileInfo,error=_action$payload8.error;if(!Object(compareIds.a)(channelUrl,null==state||null===(_state$currentGroupCh8=state.currentGroupChannel)||void 0===_state$currentGroupCh8?void 0:_state$currentGroupCh8.url))return state;if(error)return state;var localMessages=state.localMessages,fileInfoList=null===(_messageParams=localMessages.find((function(message){return Object(compareIds.a)(hasReqId(message)&&message.reqId,requestId)})).messageParams)||void 0===_messageParams?void 0:_messageParams.fileInfoList;return Array.isArray(fileInfoList)&&(fileInfoList[index]=uploadableFileInfo),_objectSpread(_objectSpread({},state),{},{localMessages:localMessages})})).with({type:actionTypes.ON_TYPING_STATUS_UPDATED},(function(action){var _state$currentGroupCh9,_action$payload9=action.payload,channel=_action$payload9.channel,typingMembers=_action$payload9.typingMembers;return Object(compareIds.a)(channel.url,null==state||null===(_state$currentGroupCh9=state.currentGroupChannel)||void 0===_state$currentGroupCh9?void 0:_state$currentGroupCh9.url)?_objectSpread(_objectSpread({},state),{},{typingMembers:typingMembers}):state})).otherwise((function(){return state}))}var chat_groupChannel=__webpack_require__("./node_modules/@sendbird/chat/groupChannel.js"),uuid=__webpack_require__("./src/utils/uuid.ts");var hooks_useHandleChannelEvents=function useHandleChannelEvents(_ref,_ref2){var _store$stores$sdkStor,sdkInit=_ref.sdkInit,currentGroupChannel=_ref.currentGroupChannel,disableMarkAsRead=_ref.disableMarkAsRead,sdk=_ref2.sdk,logger=_ref2.logger,scrollRef=_ref2.scrollRef,setQuoteMessage=_ref2.setQuoteMessage,messagesDispatcher=_ref2.messagesDispatcher,store=Object(useSendbirdStateContext.a)(),_store$config=store.config,markAsReadScheduler=_store$config.markAsReadScheduler,markAsDeliveredScheduler=_store$config.markAsDeliveredScheduler,disableMarkAsDelivered=_store$config.disableMarkAsDelivered,canSetMarkAsDelivered=null===(_store$stores$sdkStor=store.stores.sdkStore.sdk)||void 0===_store$stores$sdkStor||null===(_store$stores$sdkStor=_store$stores$sdkStor.appInfo)||void 0===_store$stores$sdkStor||null===(_store$stores$sdkStor=_store$stores$sdkStor.premiumFeatureList)||void 0===_store$stores$sdkStor?void 0:_store$stores$sdkStor.find((function(feature){return"delivery_receipt"===feature}));Object(react.useEffect)((function(){var channelUrl=null==currentGroupChannel?void 0:currentGroupChannel.url,channelHandlerId=Object(uuid.a)();if(channelUrl&&sdkInit){var _sdk$groupChannel,channelHandler={onMessageReceived:function onMessageReceived(channel,message){if(channel.isGroupChannel()&&Object(compareIds.a)(null==channel?void 0:channel.url,channelUrl)){var _document$getElementB,_document$getElementB2,scrollToEnd=!1;try{var current=scrollRef.current;scrollToEnd=current.offsetHeight+current.scrollTop>=current.scrollHeight-10}catch(error){}if(logger.info("Channel | useHandleChannelEvents: onMessageReceived",message),messagesDispatcher({type:actionTypes.ON_MESSAGE_RECEIVED,payload:{channel:channel,message:message}}),scrollToEnd&&0===(null===(_document$getElementB=document.getElementById("sendbird-dropdown-portal"))||void 0===_document$getElementB?void 0:_document$getElementB.childElementCount)&&0===(null===(_document$getElementB2=document.getElementById("sendbird-emoji-list-portal"))||void 0===_document$getElementB2?void 0:_document$getElementB2.childElementCount))try{setTimeout((function(){return Object(utils.h)(0,scrollRef)})),disableMarkAsRead||markAsReadScheduler.push(currentGroupChannel),canSetMarkAsDelivered&&!disableMarkAsDelivered&&markAsDeliveredScheduler.push(currentGroupChannel)}catch(error){logger.warning("Channel | onMessageReceived | scroll to end failed")}}},onUnreadMemberStatusUpdated:function onUnreadMemberStatusUpdated(channel){logger.info("Channel | useHandleChannelEvents: onUnreadMemberStatusUpdated",channel),Object(compareIds.a)(null==channel?void 0:channel.url,channelUrl)&&messagesDispatcher({type:actionTypes.SET_CURRENT_CHANNEL,payload:channel})},onUndeliveredMemberStatusUpdated:function onUndeliveredMemberStatusUpdated(channel){Object(compareIds.a)(null==channel?void 0:channel.url,channelUrl)&&(logger.info("Channel | useHandleChannelEvents: onDeliveryReceiptUpdated",channel),messagesDispatcher({type:actionTypes.SET_CURRENT_CHANNEL,payload:channel}))},onMessageUpdated:function onMessageUpdated(channel,message){channel.isGroupChannel()&&Object(compareIds.a)(null==channel?void 0:channel.url,channelUrl)&&(logger.info("Channel | useHandleChannelEvents: onMessageUpdated",message),messagesDispatcher({type:actionTypes.ON_MESSAGE_UPDATED,payload:{channel:channel,message:message}}))},onThreadInfoUpdated:function onThreadInfoUpdated(channel,threadInfoUpdateEvent){channel.isGroupChannel()&&Object(compareIds.a)(null==channel?void 0:channel.url,channelUrl)&&(logger.info("Channel | useHandleChannelEvents: onThreadInfoUpdated",{channel:channel,threadInfoUpdateEvent:threadInfoUpdateEvent}),messagesDispatcher({type:actionTypes.ON_MESSAGE_THREAD_INFO_UPDATED,payload:{channel:channel,event:threadInfoUpdateEvent}}))},onMessageDeleted:function onMessageDeleted(channel,messageId){logger.info("Channel | useHandleChannelEvents: onMessageDeleted",{channel:channel,messageId:messageId}),setQuoteMessage(null),messagesDispatcher({type:actionTypes.ON_MESSAGE_DELETED,payload:messageId})},onReactionUpdated:function onReactionUpdated(channel,reactionEvent){logger.info("Channel | useHandleChannelEvents: onReactionUpdated",{channel:channel,reactionEvent:reactionEvent}),messagesDispatcher({type:actionTypes.ON_REACTION_UPDATED,payload:reactionEvent})},onChannelChanged:function onChannelChanged(channel){channel.isGroupChannel()&&Object(compareIds.a)(null==channel?void 0:channel.url,channelUrl)&&(logger.info("Channel | useHandleChannelEvents: onChannelChanged",channel),messagesDispatcher({type:actionTypes.SET_CURRENT_CHANNEL,payload:channel}))},onChannelFrozen:function onChannelFrozen(channel){channel.isGroupChannel()&&Object(compareIds.a)(null==channel?void 0:channel.url,channelUrl)&&(logger.info("Channel | useHandleChannelEvents: onChannelFrozen",channel),messagesDispatcher({type:actionTypes.SET_CURRENT_CHANNEL,payload:channel}))},onChannelUnfrozen:function onChannelUnfrozen(channel){channel.isGroupChannel()&&Object(compareIds.a)(null==channel?void 0:channel.url,channelUrl)&&(logger.info("Channel | useHandleChannelEvents: onChannelUnFrozen",channel),messagesDispatcher({type:actionTypes.SET_CURRENT_CHANNEL,payload:channel}))},onUserMuted:function onUserMuted(channel,user){channel.isGroupChannel()&&Object(compareIds.a)(null==channel?void 0:channel.url,channelUrl)&&(logger.info("Channel | useHandleChannelEvents: onUserMuted",{channel:channel,user:user}),messagesDispatcher({type:actionTypes.SET_CURRENT_CHANNEL,payload:channel}))},onUserUnmuted:function onUserUnmuted(channel,user){channel.isGroupChannel()&&Object(compareIds.a)(null==channel?void 0:channel.url,channelUrl)&&(logger.info("Channel | useHandleChannelEvents: onUserUnmuted",{channel:channel,user:user}),messagesDispatcher({type:actionTypes.SET_CURRENT_CHANNEL,payload:channel}))},onUserBanned:function onUserBanned(channel,user){if(Object(compareIds.a)(null==channel?void 0:channel.url,channelUrl)){var _sdk$currentUser;logger.info("Channel | useHandleChannelEvents: onUserBanned",{channel:channel,user:user});var isByMe=(null==user?void 0:user.userId)===(null==sdk||null===(_sdk$currentUser=sdk.currentUser)||void 0===_sdk$currentUser?void 0:_sdk$currentUser.userId);messagesDispatcher({type:actionTypes.SET_CURRENT_CHANNEL,payload:isByMe?null:channel})}},onOperatorUpdated:function onOperatorUpdated(channel,users){channel.isGroupChannel()&&Object(compareIds.a)(null==channel?void 0:channel.url,channelUrl)&&(logger.info("Channel | useHandleChannelEvents: onOperatorUpdated",{channel:channel,users:users}),messagesDispatcher({type:actionTypes.SET_CURRENT_CHANNEL,payload:channel}))},onUserLeft:function onUserLeft(channel,user){if(Object(compareIds.a)(null==channel?void 0:channel.url,channelUrl)){var _sdk$currentUser2;logger.info("Channel | useHandleChannelEvents: onUserLeft",{channel:channel,user:user});var isByMe=(null==user?void 0:user.userId)===(null==sdk||null===(_sdk$currentUser2=sdk.currentUser)||void 0===_sdk$currentUser2?void 0:_sdk$currentUser2.userId);messagesDispatcher({type:actionTypes.SET_CURRENT_CHANNEL,payload:isByMe?null:channel})}},onTypingStatusUpdated:function onTypingStatusUpdated(channel){if(Object(compareIds.a)(null==channel?void 0:channel.url,channelUrl)){logger.info("Channel | onTypingStatusUpdated",{channel:channel});var typingMembers=channel.getTypingUsers();messagesDispatcher({type:actionTypes.ON_TYPING_STATUS_UPDATED,payload:{channel:channel,typingMembers:typingMembers}})}}};logger.info("Channel | useHandleChannelEvents: Setup event handler",{channelHandlerId:channelHandlerId,channelHandler:channelHandler}),null===(_sdk$groupChannel=sdk.groupChannel)||void 0===_sdk$groupChannel||_sdk$groupChannel.addGroupChannelHandler(channelHandlerId,new chat_groupChannel.a(channelHandler))}return function(){var _sdk$groupChannel2;null!=sdk&&null!==(_sdk$groupChannel2=sdk.groupChannel)&&void 0!==_sdk$groupChannel2&&_sdk$groupChannel2.removeGroupChannelHandler?(logger.info("Channel | useHandleChannelEvents: Removing message reciver handler",channelHandlerId),sdk.groupChannel.removeGroupChannelHandler(channelHandlerId)):null!=sdk&&sdk.groupChannel&&logger.error("Channel | useHandleChannelEvents: Not found the removeGroupChannelHandler")}}),[null==currentGroupChannel?void 0:currentGroupChannel.url,sdkInit])};var hooks_useGetChannel=function useGetChannel(_ref,_ref2){var channelUrl=_ref.channelUrl,sdkInit=_ref.sdkInit,disableMarkAsRead=_ref.disableMarkAsRead,messagesDispatcher=_ref2.messagesDispatcher,sdk=_ref2.sdk,logger=_ref2.logger,markAsReadScheduler=_ref2.markAsReadScheduler;Object(react.useEffect)((function(){channelUrl&&sdkInit&&sdk&&sdk.groupChannel&&(logger.info("Channel | useSetChannel fetching channel",channelUrl),sdk.groupChannel.getChannel(channelUrl).then((function(groupChannel){logger.info("Channel | useSetChannel fetched channel",groupChannel),messagesDispatcher({type:actionTypes.SET_CURRENT_CHANNEL,payload:groupChannel}),logger.info("Channel: Mark as read",groupChannel),disableMarkAsRead||markAsReadScheduler.push(groupChannel)})).catch((function(e){logger.warning("Channel | useSetChannel fetch channel failed",{channelUrl:channelUrl,e:e}),messagesDispatcher({type:actionTypes.SET_CHANNEL_INVALID})})),sdk.getAllEmoji().then((function(emojiContainer_){logger.info("Channel: Getting emojis success",emojiContainer_),messagesDispatcher({type:actionTypes.SET_EMOJI_CONTAINER,payload:emojiContainer_})})).catch((function(err){logger.error("Channel: Getting emojis failed",err)})))}),[channelUrl,sdkInit])},consts=(__webpack_require__("./node_modules/core-js/modules/es.promise.finally.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./src/utils/consts.ts"));var hooks_useInitialMessagesFetch=function useInitialMessagesFetch(_ref,_ref2){var currentGroupChannel=_ref.currentGroupChannel,initialTimeStamp=_ref.initialTimeStamp,userFilledMessageListQuery=_ref.userFilledMessageListQuery,replyType=_ref.replyType,setIsScrolled=_ref.setIsScrolled,logger=_ref2.logger,scrollRef=_ref2.scrollRef,messagesDispatcher=_ref2.messagesDispatcher,channelUrl=null==currentGroupChannel?void 0:currentGroupChannel.url,fetchMessages=Object(react.useCallback)((function(){if(logger.info("Channel useInitialMessagesFetch: Setup started",currentGroupChannel),setIsScrolled(!1),messagesDispatcher({type:actionTypes.RESET_MESSAGES,payload:null}),currentGroupChannel&&null!=currentGroupChannel&¤tGroupChannel.getMessagesByTimestamp){var messageListParams={prevResultSize:context_const.b,isInclusive:!0,includeReactions:!0,includeMetaArray:!0};initialTimeStamp&&(messageListParams.nextResultSize=context_const.a),"QUOTE_REPLY"!==replyType&&"THREAD"!==replyType||(messageListParams.includeThreadInfo=!0,messageListParams.includeParentMessageInfo=!0,messageListParams.replyType=_bundle_c578be85.Db.ONLY_REPLY_TO_CHANNEL),userFilledMessageListQuery&&Object.keys(userFilledMessageListQuery).forEach((function(key){messageListParams[key]=userFilledMessageListQuery[key]})),(replyType&&("QUOTE_REPLY"===replyType||"THREAD"===replyType)||userFilledMessageListQuery)&&(logger.info("Channel useInitialMessagesFetch: Setup messageListParams",messageListParams),messagesDispatcher({type:actionTypes.MESSAGE_LIST_PARAMS_CHANGED,payload:messageListParams})),logger.info("Channel: Fetching messages",{currentGroupChannel:currentGroupChannel,userFilledMessageListQuery:userFilledMessageListQuery}),messagesDispatcher({type:actionTypes.FETCH_INITIAL_MESSAGES_START,payload:null}),currentGroupChannel.getMessagesByTimestamp(initialTimeStamp||(new Date).getTime(),messageListParams).then((function(messages){messagesDispatcher({type:actionTypes.FETCH_INITIAL_MESSAGES_SUCCESS,payload:{currentGroupChannel:currentGroupChannel,messages:messages}})})).catch((function(error){logger.error("Channel: Fetching messages failed",error),messagesDispatcher({type:actionTypes.FETCH_INITIAL_MESSAGES_FAILURE,payload:{currentGroupChannel:currentGroupChannel}})})).finally((function(){initialTimeStamp?setTimeout((function(){utils.i(scrollRef,initialTimeStamp,setIsScrolled)}),500):setTimeout((function(){return utils.h(0,scrollRef,setIsScrolled)}),consts.j)}))}}),[channelUrl,userFilledMessageListQuery,initialTimeStamp]);return Object(react.useEffect)((function(){fetchMessages()}),[fetchMessages]),fetchMessages},useReconnectOnIdle=__webpack_require__("./src/modules/Channel/context/hooks/useReconnectOnIdle.ts");var hooks_useHandleReconnect=function useHandleReconnect(_ref,_ref2){var isOnline=_ref.isOnline,replyType=_ref.replyType,disableMarkAsRead=_ref.disableMarkAsRead,reconnectOnIdle=_ref.reconnectOnIdle,logger=_ref2.logger,sdk=_ref2.sdk,scrollRef=_ref2.scrollRef,currentGroupChannel=_ref2.currentGroupChannel,messagesDispatcher=_ref2.messagesDispatcher,markAsReadScheduler=_ref2.markAsReadScheduler,userFilledMessageListQuery=_ref2.userFilledMessageListQuery,shouldReconnect=Object(useReconnectOnIdle.a)(isOnline,currentGroupChannel,reconnectOnIdle).shouldReconnect;Object(react.useEffect)((function(){return function(){if(shouldReconnect){var _sdk$appInfo,_sdk$groupChannel;logger.info("Refreshing conversation state");var isReactionEnabled=(null==sdk||null===(_sdk$appInfo=sdk.appInfo)||void 0===_sdk$appInfo?void 0:_sdk$appInfo.useReaction)||!1,messageListParams={prevResultSize:context_const.b,isInclusive:!0,includeReactions:isReactionEnabled,includeMetaArray:!0,nextResultSize:context_const.a};replyType&&"QUOTE_REPLY"===replyType&&(messageListParams.includeThreadInfo=!0,messageListParams.includeParentMessageInfo=!0,messageListParams.replyType=_bundle_c578be85.Db.ONLY_REPLY_TO_CHANNEL),userFilledMessageListQuery&&Object.keys(userFilledMessageListQuery).forEach((function(key){messageListParams[key]=userFilledMessageListQuery[key]})),logger.info("Channel: Fetching messages",{currentGroupChannel:currentGroupChannel,userFilledMessageListQuery:userFilledMessageListQuery}),messagesDispatcher({type:actionTypes.FETCH_INITIAL_MESSAGES_START,payload:null}),null==sdk||null===(_sdk$groupChannel=sdk.groupChannel)||void 0===_sdk$groupChannel||_sdk$groupChannel.getChannel(null==currentGroupChannel?void 0:currentGroupChannel.url).then((function(groupChannel){var lastMessageTime=(new Date).getTime();groupChannel.getMessagesByTimestamp(lastMessageTime,messageListParams).then((function(messages){messagesDispatcher({type:actionTypes.FETCH_INITIAL_MESSAGES_SUCCESS,payload:{currentGroupChannel:currentGroupChannel,messages:messages}}),setTimeout((function(){return utils.h(0,scrollRef)}),consts.j)})).catch((function(error){logger.error("Channel: Fetching messages failed",error),messagesDispatcher({type:actionTypes.FETCH_INITIAL_MESSAGES_FAILURE,payload:{currentGroupChannel:currentGroupChannel}})})),disableMarkAsRead||markAsReadScheduler.push(currentGroupChannel)}))}}}),[shouldReconnect,replyType])};var hooks_useScrollCallback=function useScrollCallback(_ref,_ref2){var currentGroupChannel=_ref.currentGroupChannel,oldestMessageTimeStamp=_ref.oldestMessageTimeStamp,userFilledMessageListQuery=_ref.userFilledMessageListQuery,replyType=_ref.replyType,hasMorePrev=_ref2.hasMorePrev,logger=_ref2.logger,messagesDispatcher=_ref2.messagesDispatcher,sdk=_ref2.sdk;return Object(react.useCallback)((function(callback){var _sdk$appInfo$useReact,_sdk$appInfo;if(hasMorePrev){var messageListParams={prevResultSize:context_const.b,isInclusive:!0,includeMetaArray:!0,includeReactions:null!==(_sdk$appInfo$useReact=null==sdk||null===(_sdk$appInfo=sdk.appInfo)||void 0===_sdk$appInfo?void 0:_sdk$appInfo.useReaction)&&void 0!==_sdk$appInfo$useReact&&_sdk$appInfo$useReact};"QUOTE_REPLY"!==replyType&&"THREAD"!==replyType||(messageListParams.includeThreadInfo=!0,messageListParams.includeParentMessageInfo=!0,messageListParams.replyType=_bundle_c578be85.Db.ONLY_REPLY_TO_CHANNEL),userFilledMessageListQuery&&Object.keys(userFilledMessageListQuery).forEach((function(key){messageListParams[key]=userFilledMessageListQuery[key]})),logger.info("Channel: Fetching messages",{currentGroupChannel:currentGroupChannel,userFilledMessageListQuery:userFilledMessageListQuery}),currentGroupChannel.getMessagesByTimestamp(oldestMessageTimeStamp||(new Date).getTime(),messageListParams).then((function(messages){messagesDispatcher({type:actionTypes.FETCH_PREV_MESSAGES_SUCCESS,payload:{currentGroupChannel:currentGroupChannel,messages:messages}}),callback&&setTimeout((function(){return callback()}))})).catch((function(){messagesDispatcher({type:actionTypes.FETCH_PREV_MESSAGES_FAILURE,payload:{currentGroupChannel:currentGroupChannel}})}))}}),[currentGroupChannel,oldestMessageTimeStamp,replyType])};var hooks_useScrollDownCallback=function useScrollDownCallback(_ref,_ref2){var currentGroupChannel=_ref.currentGroupChannel,latestMessageTimeStamp=_ref.latestMessageTimeStamp,userFilledMessageListQuery=_ref.userFilledMessageListQuery,hasMoreNext=_ref.hasMoreNext,replyType=_ref.replyType,logger=_ref2.logger,messagesDispatcher=_ref2.messagesDispatcher,sdk=_ref2.sdk;return Object(react.useCallback)((function(cb){var _sdk$appInfo$useReact,_sdk$appInfo;if(hasMoreNext){var isReactionEnabled=null!==(_sdk$appInfo$useReact=null==sdk||null===(_sdk$appInfo=sdk.appInfo)||void 0===_sdk$appInfo?void 0:_sdk$appInfo.useReaction)&&void 0!==_sdk$appInfo$useReact&&_sdk$appInfo$useReact,messageListParams={nextResultSize:context_const.a,isInclusive:!0,includeReactions:isReactionEnabled,includeMetaArray:!0};!replyType||"QUOTE_REPLY"!==replyType&&"THREAD"!==replyType||(messageListParams.includeThreadInfo=!0,messageListParams.includeParentMessageInfo=!0,messageListParams.replyType=_bundle_c578be85.Db.ONLY_REPLY_TO_CHANNEL),userFilledMessageListQuery&&Object.keys(userFilledMessageListQuery).forEach((function(key){messageListParams[key]=userFilledMessageListQuery[key]})),logger.info("Channel: Fetching later messages",{currentGroupChannel:currentGroupChannel,userFilledMessageListQuery:userFilledMessageListQuery}),currentGroupChannel.getMessagesByTimestamp(latestMessageTimeStamp||(new Date).getTime(),messageListParams).then((function(messages){messagesDispatcher({type:actionTypes.FETCH_NEXT_MESSAGES_SUCCESS,payload:{currentGroupChannel:currentGroupChannel,messages:messages}}),setTimeout((function(){return cb([messages,null])}))})).catch((function(error){logger.error("Channel: Fetching later messages failed",error),messagesDispatcher({type:actionTypes.FETCH_NEXT_MESSAGES_FAILURE,payload:{currentGroupChannel:currentGroupChannel}}),setTimeout((function(){return cb([null,error])}))}))}}),[currentGroupChannel,latestMessageTimeStamp,hasMoreNext,replyType])};var hooks_useDeleteMessageCallback=function useDeleteMessageCallback(_ref,_ref2){var currentGroupChannel=_ref.currentGroupChannel,messagesDispatcher=_ref.messagesDispatcher,logger=_ref2.logger;return Object(react.useCallback)((function(message){logger.info("Channel | useDeleteMessageCallback: Deleting message",message);var sendingStatus=Object(src_utils.K)(message)?message.sendingStatus:void 0;return new Promise((function(resolve,reject){logger.info("Channel | useDeleteMessageCallback: Deleting message requestState:",sendingStatus),sendingStatus!==_bundle_c578be85.tb.FAILED&&sendingStatus!==_bundle_c578be85.tb.PENDING||!("reqId"in message)?(logger.info("Channel | useDeleteMessageCallback: Deleting message from remote:",sendingStatus),currentGroupChannel.deleteMessage(message).then((function(){logger.info("Channel | useDeleteMessageCallback: Deleting message success!",message),messagesDispatcher({type:actionTypes.ON_MESSAGE_DELETED,payload:message.messageId}),resolve()})).catch((function(err){logger.warning("Channel | useDeleteMessageCallback: Deleting message failed!",err),reject(err)}))):(logger.info("Channel | useDeleteMessageCallback: Deleted message from local:",message),messagesDispatcher({type:actionTypes.ON_MESSAGE_DELETED_BY_REQ_ID,payload:message.reqId}),resolve())}))}),[currentGroupChannel,messagesDispatcher])},topics=__webpack_require__("./src/lib/pubSub/topics.ts"),internalInterfaces=__webpack_require__("./src/modules/internalInterfaces.ts");var hooks_useUpdateMessageCallback=function useUpdateMessageCallback(_ref,_ref2){var currentGroupChannel=_ref.currentGroupChannel,messagesDispatcher=_ref.messagesDispatcher,onBeforeUpdateUserMessage=_ref.onBeforeUpdateUserMessage,isMentionEnabled=_ref.isMentionEnabled,logger=_ref2.logger,pubSub=_ref2.pubSub;return Object(react.useCallback)((function(props,callback){var messageId=props.messageId,message=props.message,mentionedUsers=props.mentionedUsers,mentionTemplate=props.mentionTemplate,shouldCreateCustomParams=onBeforeUpdateUserMessage&&"function"==typeof onBeforeUpdateUserMessage;shouldCreateCustomParams&&logger.info("Channel: creating params using onBeforeUpdateUserMessage",onBeforeUpdateUserMessage);var params=shouldCreateCustomParams?onBeforeUpdateUserMessage(message):function createParamsDefault(message){var params={message:message};return isMentionEnabled&&(null==mentionedUsers?void 0:mentionedUsers.length)>0&&(params.mentionedUsers=mentionedUsers),params.mentionedMessageTemplate=isMentionEnabled&&mentionTemplate?mentionTemplate:message,params}(message);logger.info("Channel: Updating message!",params),currentGroupChannel.updateUserMessage(messageId,params).then((function(msg){callback&&callback(null,msg),logger.info("Channel: Updating message success!",msg),messagesDispatcher({type:actionTypes.ON_MESSAGE_UPDATED,payload:{channel:currentGroupChannel,message:msg}}),pubSub.publish(topics.c.UPDATE_USER_MESSAGE,{message:msg,channel:currentGroupChannel,publishingModules:[internalInterfaces.a.CHANNEL]})})).catch((function(err){callback&&callback(err,null)}))}),[null==currentGroupChannel?void 0:currentGroupChannel.url,messagesDispatcher,onBeforeUpdateUserMessage])};var hooks_useResendMessageCallback=function useResendMessageCallback(_ref,_ref2){var currentGroupChannel=_ref.currentGroupChannel,messagesDispatcher=_ref.messagesDispatcher,logger=_ref2.logger,pubSub=_ref2.pubSub;return Object(react.useCallback)((function(failedMessage){logger.info("Channel: Resending message has started",failedMessage),null!=failedMessage&&failedMessage.isResendable?failedMessage.isUserMessage()?currentGroupChannel.resendMessage(failedMessage).onPending((function(message){logger.info("Channel: Resending message start!",message),messagesDispatcher({type:actionTypes.RESEND_MESSAGE_START,payload:message})})).onSucceeded((function(message){logger.info("Channel: Resending message success!",message),messagesDispatcher({type:actionTypes.SEND_MESSAGE_SUCCESS,payload:message})})).onFailed((function(e,message){logger.warning("Channel: Resending message failed!",e),messagesDispatcher({type:actionTypes.SEND_MESSAGE_FAILURE,payload:message})})):failedMessage.isFileMessage()?currentGroupChannel.resendMessage(failedMessage).onPending((function(message){logger.info("Channel: Resending file message start!",message),messagesDispatcher({type:actionTypes.RESEND_MESSAGE_START,payload:message})})).onSucceeded((function(message){logger.info("Channel: Resending file message success!",message),messagesDispatcher({type:actionTypes.SEND_MESSAGE_SUCCESS,payload:message})})).onFailed((function(e,message){logger.warning("Channel: Resending file message failed!",e),messagesDispatcher({type:actionTypes.SEND_MESSAGE_FAILURE,payload:message})})):failedMessage.isMultipleFilesMessage()&¤tGroupChannel.resendMessage(failedMessage).onPending((function(message){logger.info("Channel: Resending multiple files message start!",message),messagesDispatcher({type:actionTypes.RESEND_MESSAGE_START,payload:message})})).onFileUploaded((function(requestId,index,uploadableFileInfo,error){logger.info("Channel: Resending multiple files message file uploaded!",{requestId:requestId,index:index,error:error,uploadableFileInfo:uploadableFileInfo}),pubSub.publish(topics.c.ON_FILE_INFO_UPLOADED,{response:{channelUrl:currentGroupChannel.url,requestId:requestId,index:index,uploadableFileInfo:uploadableFileInfo,error:error},publishingModules:[topics.b.CHANNEL]})})).onSucceeded((function(message){logger.info("Channel: Resending multiple files message success!",message),messagesDispatcher({type:actionTypes.SEND_MESSAGE_SUCCESS,payload:message})})).onFailed((function(e,message){logger.warning("Channel: Resending multiple files message failed!",e),messagesDispatcher({type:actionTypes.SEND_MESSAGE_FAILURE,payload:message})})):logger.error("Message is not resendable",failedMessage)}),[currentGroupChannel,messagesDispatcher])};__webpack_require__("./node_modules/core-js/modules/web.url.js");function useSendFileMessageCallback_typeof(o){return useSendFileMessageCallback_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},useSendFileMessageCallback_typeof(o)}function useSendFileMessageCallback_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function useSendFileMessageCallback_objectSpread(e){for(var r=1;rarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&(params.mentionedUsers=mentionedUsers),isMentionEnabled&&mentionTemplate&&(null==mentionedUsers?void 0:mentionedUsers.length)>0&&(params.mentionedMessageTemplate=mentionTemplate),quoteMessage&&(params.isReplyToChannel=!0,params.parentMessageId=quoteMessage.messageId),params}();logger.info("Channel: Sending message has started",params),currentGroupChannel.sendUserMessage(params).onPending((function(pendingMsg){pubSub.publish(topics.c.SEND_MESSAGE_START,{message:pendingMsg,channel:currentGroupChannel,publishingModules:[internalInterfaces.a.CHANNEL]}),setTimeout((function(){return utils.h(0,scrollRef)}),consts.k)})).onFailed((function(err,msg){logger.warning("Channel: Sending message failed!",{message:msg,error:err}),messagesDispatcher({type:actionTypes.SEND_MESSAGE_FAILURE,payload:msg})})).onSucceeded((function(msg){logger.info("Channel: Sending message success!",msg),messagesDispatcher({type:actionTypes.SEND_MESSAGE_SUCCESS,payload:msg})}))}),[currentGroupChannel,onBeforeSendUserMessage])]}({currentGroupChannel:currentGroupChannel,isMentionEnabled:isMentionEnabled,onBeforeSendUserMessage:onBeforeSendUserMessage},{logger:logger,pubSub:pubSub,scrollRef:scrollRef,messagesDispatcher:messagesDispatcher}),_useSendMessageCallba2=_slicedToArray(_useSendMessageCallba,2),messageInputRef=_useSendMessageCallba2[0],sendMessage=_useSendMessageCallba2[1],_useSendFileMessageCa=function useSendFileMessageCallback(_ref,_ref2){var currentGroupChannel=_ref.currentGroupChannel,onBeforeSendFileMessage=_ref.onBeforeSendFileMessage,imageCompression=_ref.imageCompression,logger=_ref2.logger,pubSub=_ref2.pubSub,scrollRef=_ref2.scrollRef,messagesDispatcher=_ref2.messagesDispatcher,sendMessage=Object(react.useCallback)((function(compressedFile){var quoteMessage=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new Promise((function(resolve,reject){var params=null==onBeforeSendFileMessage?void 0:onBeforeSendFileMessage(compressedFile,quoteMessage);params||(params={file:compressedFile},quoteMessage&&(params.isReplyToChannel=!0,params.parentMessageId=quoteMessage.messageId)),logger.info("Channel: Uploading file message start!",params),currentGroupChannel.sendFileMessage(params).onPending((function(pendingMessage){pubSub.publish(topics.c.SEND_MESSAGE_START,{message:useSendFileMessageCallback_objectSpread(useSendFileMessageCallback_objectSpread({},pendingMessage),{},{url:URL.createObjectURL(compressedFile),requestState:"pending"}),channel:currentGroupChannel,publishingModules:[internalInterfaces.a.CHANNEL]}),setTimeout((function(){return utils.h(0,scrollRef)}),consts.k)})).onFailed((function(err,failedMessage){logger.error("Channel: Sending file message failed!",{failedMessage:failedMessage,err:err}),failedMessage.localUrl=URL.createObjectURL(compressedFile),failedMessage.file=compressedFile,messagesDispatcher({type:actionTypes.SEND_MESSAGE_FAILURE,payload:failedMessage}),reject(err)})).onSucceeded((function(succeededMessage){logger.info("Channel: Sending file message success!",succeededMessage),messagesDispatcher({type:actionTypes.SEND_MESSAGE_SUCCESS,payload:succeededMessage}),resolve(succeededMessage)}))}))}),[currentGroupChannel,onBeforeSendFileMessage,imageCompression]);return[sendMessage]}({currentGroupChannel:currentGroupChannel,imageCompression:imageCompression,onBeforeSendFileMessage:onBeforeSendFileMessage},{logger:logger,pubSub:pubSub,scrollRef:scrollRef,messagesDispatcher:messagesDispatcher}),sendFileMessage=_slicedToArray(_useSendFileMessageCa,1)[0],sendVoiceMessage=_slicedToArray(hooks_useSendVoiceMessageCallback({currentGroupChannel:currentGroupChannel,onBeforeSendVoiceMessage:onBeforeSendVoiceMessage},{logger:logger,pubSub:pubSub,scrollRef:scrollRef,messagesDispatcher:messagesDispatcher}),1)[0],sendMultipleFilesMessage=_slicedToArray(Object(useSendMultipleFilesMessage.a)({currentChannel:currentGroupChannel,onBeforeSendMultipleFilesMessage:onBeforeSendMultipleFilesMessage,publishingModules:[internalInterfaces.a.CHANNEL]},{logger:logger,pubSub:pubSub,scrollRef:scrollRef}),1)[0];return react_default.a.createElement(ChannelContext.Provider,{value:{channelUrl:channelUrl,isReactionEnabled:usingReaction,isMessageGroupingEnabled:isMessageGroupingEnabled,isMultipleFilesMessageEnabled:isMultipleFilesMessageEnabled,showSearchIcon:null!=showSearchIcon?showSearchIcon:globalConfigs.showSearchIcon,highlightedMessage:highlightedMessage,startingPoint:startingPoint,onBeforeSendUserMessage:onBeforeSendUserMessage,onBeforeSendFileMessage:onBeforeSendFileMessage,onBeforeUpdateUserMessage:onBeforeUpdateUserMessage,onChatHeaderActionClick:onChatHeaderActionClick,onSearchClick:onSearchClick,onBackClick:onBackClick,replyType:replyType,threadReplySelectType:null!==(_ref=null!=threadReplySelectType?threadReplySelectType:Object(resolvedReplyType.b)(groupChannel.threadReplySelectType).upperCase)&&void 0!==_ref?_ref:context_const.c.THREAD,queries:queries,filterMessageList:filterMessageList,disableMarkAsRead:disableMarkAsRead,onReplyInThread:onReplyInThread,onQuoteMessageClick:onQuoteMessageClick,onMessageAnimated:onMessageAnimated,onMessageHighlighted:onMessageHighlighted,allMessages:allMessages,localMessages:localMessages,loading:loading,initialized:initialized,unreadSince:unreadSince,unreadSinceDate:unreadSinceDate,isInvalid:isInvalid,currentGroupChannel:currentGroupChannel,hasMorePrev:hasMorePrev,hasMoreNext:hasMoreNext,oldestMessageTimeStamp:oldestMessageTimeStamp,latestMessageTimeStamp:latestMessageTimeStamp,emojiContainer:emojiContainer,readStatus:readStatus,typingMembers:typingMembers,scrollToMessage:scrollToMessage,quoteMessage:quoteMessage,setQuoteMessage:setQuoteMessage,deleteMessage:deleteMessage,updateMessage:updateMessage,resendMessage:resendMessage,messageInputRef:messageInputRef,sendMessage:sendMessage,sendFileMessage:sendFileMessage,sendVoiceMessage:sendVoiceMessage,sendMultipleFilesMessage:sendMultipleFilesMessage,initialTimeStamp:initialTimeStamp,messageActionTypes:actionTypes,messagesDispatcher:messagesDispatcher,setInitialTimeStamp:setInitialTimeStamp,setAnimatedMessageId:setAnimatedMessageId,setHighLightedMessageId:setHighLightedMessageId,animatedMessageId:animatedMessageId,highLightedMessageId:highLightedMessageId,nicknamesMap:nicknamesMap,emojiAllMap:emojiAllMap,onScrollCallback:onScrollCallback,onScrollDownCallback:onScrollDownCallback,scrollRef:scrollRef,scrollBehavior:scrollBehavior,toggleReaction:toggleReaction,isScrolled:isScrolled,setIsScrolled:setIsScrolled}},react_default.a.createElement(UserProfileContext.b,{disableUserProfile:null!==(_props$disableUserPro=null==props?void 0:props.disableUserProfile)&&void 0!==_props$disableUserPro?_props$disableUserPro:null==config?void 0:config.disableUserProfile,renderUserProfile:null==props?void 0:props.renderUserProfile,onUserProfileMessage:onUserProfileMessage},children))},ChannelProvider_useChannelContext=function useChannelContext(){return react_default.a.useContext(ChannelContext)};try{ChannelProvider_ChannelProvider.displayName="ChannelProvider",ChannelProvider_ChannelProvider.__docgenInfo={description:"",displayName:"ChannelProvider",props:{channelUrl:{defaultValue:null,description:"",name:"channelUrl",required:!0,type:{name:"string"}},isReactionEnabled:{defaultValue:null,description:"",name:"isReactionEnabled",required:!1,type:{name:"boolean"}},isMessageGroupingEnabled:{defaultValue:null,description:"",name:"isMessageGroupingEnabled",required:!1,type:{name:"boolean"}},isMultipleFilesMessageEnabled:{defaultValue:null,description:"",name:"isMultipleFilesMessageEnabled",required:!1,type:{name:"boolean"}},showSearchIcon:{defaultValue:null,description:"",name:"showSearchIcon",required:!1,type:{name:"boolean"}},animatedMessage:{defaultValue:null,description:"",name:"animatedMessage",required:!1,type:{name:"number"}},highlightedMessage:{defaultValue:null,description:"",name:"highlightedMessage",required:!1,type:{name:"number"}},startingPoint:{defaultValue:null,description:"",name:"startingPoint",required:!1,type:{name:"number"}},onBeforeSendUserMessage:{defaultValue:null,description:"",name:"onBeforeSendUserMessage",required:!1,type:{name:"(text: string, quotedMessage?: SendableMessageType) => UserMessageCreateParams"}},onBeforeSendFileMessage:{defaultValue:null,description:"",name:"onBeforeSendFileMessage",required:!1,type:{name:"(file: File, quotedMessage?: SendableMessageType) => FileMessageCreateParams"}},onBeforeUpdateUserMessage:{defaultValue:null,description:"",name:"onBeforeUpdateUserMessage",required:!1,type:{name:"(text: string) => UserMessageUpdateParams"}},onBeforeSendVoiceMessage:{defaultValue:null,description:"",name:"onBeforeSendVoiceMessage",required:!1,type:{name:"(file: File, quotedMessage?: SendableMessageType) => FileMessageCreateParams"}},onBeforeSendMultipleFilesMessage:{defaultValue:null,description:"",name:"onBeforeSendMultipleFilesMessage",required:!1,type:{name:"(files: File[], quotedMessage?: SendableMessageType) => MultipleFilesMessageCreateParams"}},onChatHeaderActionClick:{defaultValue:null,description:"",name:"onChatHeaderActionClick",required:!1,type:{name:"(event: MouseEvent) => void"}},onSearchClick:{defaultValue:null,description:"",name:"onSearchClick",required:!1,type:{name:"() => void"}},onBackClick:{defaultValue:null,description:"",name:"onBackClick",required:!1,type:{name:"() => void"}},replyType:{defaultValue:null,description:"",name:"replyType",required:!1,type:{name:"enum",value:[{value:'"NONE"'},{value:'"QUOTE_REPLY"'},{value:'"THREAD"'}]}},threadReplySelectType:{defaultValue:null,description:"",name:"threadReplySelectType",required:!1,type:{name:"enum",value:[{value:'"PARENT"'},{value:'"THREAD"'}]}},queries:{defaultValue:null,description:"",name:"queries",required:!1,type:{name:"ChannelQueries"}},renderUserProfile:{defaultValue:null,description:"",name:"renderUserProfile",required:!1,type:{name:"(props: RenderUserProfileProps) => ReactElement>"}},filterMessageList:{defaultValue:null,description:"",name:"filterMessageList",required:!1,type:{name:"(messages: BaseMessage) => boolean"}},disableUserProfile:{defaultValue:null,description:"",name:"disableUserProfile",required:!1,type:{name:"boolean"}},disableMarkAsRead:{defaultValue:null,description:"",name:"disableMarkAsRead",required:!1,type:{name:"boolean"}},onReplyInThread:{defaultValue:null,description:"",name:"onReplyInThread",required:!1,type:{name:"(props: { message: SendableMessageType; }) => void"}},onQuoteMessageClick:{defaultValue:null,description:"",name:"onQuoteMessageClick",required:!1,type:{name:"(props: { message: SendableMessageType; }) => void"}},onMessageAnimated:{defaultValue:null,description:"",name:"onMessageAnimated",required:!1,type:{name:"() => void"}},onMessageHighlighted:{defaultValue:null,description:"",name:"onMessageHighlighted",required:!1,type:{name:"() => void"}},scrollBehavior:{defaultValue:null,description:"",name:"scrollBehavior",required:!1,type:{name:"enum",value:[{value:'"smooth"'},{value:'"auto"'}]}},reconnectOnIdle:{defaultValue:null,description:"",name:"reconnectOnIdle",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/Channel/context/ChannelProvider.tsx#ChannelProvider"]={docgenInfo:ChannelProvider_ChannelProvider.__docgenInfo,name:"ChannelProvider",path:"src/modules/Channel/context/ChannelProvider.tsx#ChannelProvider"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./node_modules/core-js/modules/es.object.assign.js");var GroupChannelUIView=__webpack_require__("./src/modules/GroupChannel/components/GroupChannelUI/GroupChannelUIView.tsx"),GroupChannelHeaderView=__webpack_require__("./src/modules/GroupChannel/components/GroupChannelHeader/GroupChannelHeaderView.tsx");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i void"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"FileMessage"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/Channel/components/FileViewer/index.tsx#FileViewer"]={docgenInfo:FileViewer_FileViewer.__docgenInfo,name:"FileViewer",path:"src/modules/Channel/components/FileViewer/index.tsx#FileViewer"})}catch(__react_docgen_typescript_loader_error){}var RemoveMessageModalView=__webpack_require__("./src/modules/GroupChannel/components/RemoveMessageModal/RemoveMessageModalView.tsx");function RemoveMessageModal_extends(){return RemoveMessageModal_extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i void"}},onCancel:{defaultValue:null,description:"",name:"onCancel",required:!0,type:{name:"() => void"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"EveryMessage"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/Channel/components/RemoveMessageModal/index.tsx#RemoveMessageModal"]={docgenInfo:RemoveMessageModal_RemoveMessageModal.__docgenInfo,name:"RemoveMessageModal",path:"src/modules/Channel/components/RemoveMessageModal/index.tsx#RemoveMessageModal"})}catch(__react_docgen_typescript_loader_error){}function Message_extends(){return Message_extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i0,isReactionEnabled:isReactionEnabled,replyType:replyType,threadReplySelectType:threadReplySelectType,nicknamesMap:nicknamesMap,renderUserMentionItem:renderUserMentionItem,scrollToMessage:scrollToMessage,toggleReaction:toggleReaction,setQuoteMessage:setQuoteMessage,onQuoteMessageClick:onQuoteMessageClick,onReplyInThreadClick:onReplyInThread,sendUserMessage:function sendUserMessage(params){sendMessage({message:params.message,mentionedUsers:params.mentionedUsers,mentionTemplate:params.mentionedMessageTemplate})},updateUserMessage:function updateUserMessage(messageId,params){updateMessage({messageId:messageId,message:params.message,mentionedUsers:params.mentionedUsers,mentionTemplate:params.mentionedMessageTemplate})},resendMessage:resendMessage,deleteMessage:deleteMessage,animatedMessageId:animatedMessageId,setAnimatedMessageId:setAnimatedMessageId,onMessageAnimated:onMessageAnimated,renderFileViewer:function renderFileViewer(props){return react_default.a.createElement(components_FileViewer,props)},renderRemoveMessageModal:function renderRemoveMessageModal(props){return react_default.a.createElement(components_RemoveMessageModal,props)}}))},components_Message=Message_Message;try{Message_Message.displayName="Message",Message_Message.__docgenInfo={description:"",displayName:"Message",props:{message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"EveryMessage"}},hasSeparator:{defaultValue:null,description:"",name:"hasSeparator",required:!1,type:{name:"boolean"}},chainTop:{defaultValue:null,description:"",name:"chainTop",required:!1,type:{name:"boolean"}},chainBottom:{defaultValue:null,description:"",name:"chainBottom",required:!1,type:{name:"boolean"}},handleScroll:{defaultValue:null,description:"",name:"handleScroll",required:!1,type:{name:"(isBottomMessageAffected?: boolean) => void"}},children:{defaultValue:null,description:"Customizes all child components of the message.",name:"children",required:!1,type:{name:"ReactNode"}},renderMessageContent:{defaultValue:null,description:"A function that customizes the rendering of the content portion of message component.",name:"renderMessageContent",required:!1,type:{name:"(props: MessageContentProps) => ReactElement>"}},renderSuggestedReplies:{defaultValue:null,description:"A function that customizes the rendering of suggested replies component of messages.",name:"renderSuggestedReplies",required:!1,type:{name:"(props: SuggestedRepliesProps) => ReactElement>"}},renderCustomSeparator:{defaultValue:null,description:"A function that customizes the rendering of a separator between messages.",name:"renderCustomSeparator",required:!1,type:{name:"(props: RenderCustomSeparatorProps) => ReactElement>"}},renderEditInput:{defaultValue:null,description:"A function that customizes the rendering of the edit input portion of the message component.",name:"renderEditInput",required:!1,type:{name:"() => ReactElement>"}},renderMessage:{defaultValue:null,description:"@deprecated Please use `children` instead\n@description Customizes all child components of the message.",name:"renderMessage",required:!1,type:{name:"(props: RenderMessageParamsType) => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/Channel/components/Message/index.tsx#Message"]={docgenInfo:Message_Message.__docgenInfo,name:"Message",path:"src/modules/Channel/components/Message/index.tsx#Message"})}catch(__react_docgen_typescript_loader_error){}var types=__webpack_require__("./src/types.ts"),Channel_components_UnreadCount=__webpack_require__("./src/modules/GroupChannel/components/UnreadCount/index.tsx").a;try{UnreadCount.displayName="UnreadCount",UnreadCount.__docgenInfo={description:"",displayName:"UnreadCount",props:{className:{defaultValue:{value:""},description:"",name:"className",required:!1,type:{name:"string"}},count:{defaultValue:{value:"0"},description:"",name:"count",required:!1,type:{name:"number"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!0,type:{name:"() => void"}},lastReadAt:{defaultValue:null,description:"",name:"lastReadAt",required:!1,type:{name:"Date"}},time:{defaultValue:{value:""},description:"@deprecated Please use `lastReadAt` instead *",name:"time",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/Channel/components/UnreadCount/index.tsx#UnreadCount"]={docgenInfo:UnreadCount.__docgenInfo,name:"UnreadCount",path:"src/modules/Channel/components/UnreadCount/index.tsx#UnreadCount"})}catch(__react_docgen_typescript_loader_error){}var Channel_components_FrozenNotification=__webpack_require__("./src/modules/GroupChannel/components/FrozenNotification/index.tsx").a;try{FrozenNotification.displayName="FrozenNotification",FrozenNotification.__docgenInfo={description:"",displayName:"FrozenNotification",props:{className:{defaultValue:{value:""},description:"",name:"className",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/Channel/components/FrozenNotification/index.tsx#FrozenNotification"]={docgenInfo:FrozenNotification.__docgenInfo,name:"FrozenNotification",path:"src/modules/Channel/components/FrozenNotification/index.tsx#FrozenNotification"})}catch(__react_docgen_typescript_loader_error){}var MessageProvider=__webpack_require__("./src/modules/Message/context/MessageProvider.tsx"),useHandleOnScrollCallback=__webpack_require__("./src/hooks/useHandleOnScrollCallback/index.ts"),useThrottleCallback=__webpack_require__("./src/hooks/useThrottleCallback.ts");function useSetScrollToBottom_slicedToArray(arr,i){return function useSetScrollToBottom_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function useSetScrollToBottom_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function useSetScrollToBottom_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return useSetScrollToBottom_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return useSetScrollToBottom_arrayLikeToArray(o,minLen)}(arr,i)||function useSetScrollToBottom_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function useSetScrollToBottom_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i-1)&&(scrollRef.current.scrollTop=(null!==(_scrollRef$current$sc=null==scrollRef||null===(_scrollRef$current2=scrollRef.current)||void 0===_scrollRef$current2?void 0:_scrollRef$current2.scrollHeight)&&void 0!==_scrollRef$current$sc?_scrollRef$current$sc:0)-(null!==(_scrollRef$current$of=null==scrollRef||null===(_scrollRef$current3=scrollRef.current)||void 0===_scrollRef$current3?void 0:_scrollRef$current3.offsetHeight)&&void 0!==_scrollRef$current$of?_scrollRef$current$of:0))},moveScroll=function moveScroll(){var isBottomMessageAffected=arguments.length>0&&void 0!==arguments[0]&&arguments[0],current=null==scrollRef?void 0:scrollRef.current;if(current){var bottom=current.scrollHeight-current.scrollTop-current.offsetHeight;scrollBottom50&&react_default.a.createElement("div",{className:"sendbird-conversation__scroll-bottom-button",onClick:onClickScrollBot,onKeyDown:onClickScrollBot,tabIndex:0,role:"button"},react_default.a.createElement(Icon.c,{width:"24px",height:"24px",type:Icon.b.CHEVRON_DOWN,fillColor:Icon.a.PRIMARY}))))},Channel_components_MessageList=MessageList_MessageList;try{MessageList_MessageList.displayName="MessageList",MessageList_MessageList.__docgenInfo={description:"",displayName:"MessageList",props:{renderMessage:{defaultValue:null,description:"Customizes all child components of the message component.",name:"renderMessage",required:!1,type:{name:"(props: RenderMessageParamsType) => ReactElement>"}},className:{defaultValue:{value:""},description:"",name:"className",required:!1,type:{name:"string"}},renderMessageContent:{defaultValue:null,description:"A function that customizes the rendering of the content portion of each message component.",name:"renderMessageContent",required:!1,type:{name:"(props: MessageContentProps) => ReactElement>"}},renderCustomSeparator:{defaultValue:null,description:"A function that customizes the rendering of a separator component between messages.",name:"renderCustomSeparator",required:!1,type:{name:"(props: RenderCustomSeparatorProps) => ReactElement>"}},renderPlaceholderLoader:{defaultValue:{value:"() => "},description:"A function that customizes the rendering of a loading placeholder component.",name:"renderPlaceholderLoader",required:!1,type:{name:"() => ReactElement>"}},renderPlaceholderEmpty:{defaultValue:{value:'() => '},description:"A function that customizes the rendering of an empty placeholder component when there are no messages in the channel.",name:"renderPlaceholderEmpty",required:!1,type:{name:"() => ReactElement>"}},renderFrozenNotification:{defaultValue:{value:'() => '},description:"A function that customizes the rendering of a frozen notification component when the channel is frozen.",name:"renderFrozenNotification",required:!1,type:{name:"() => ReactElement>"}},renderSuggestedReplies:{defaultValue:null,description:"A function that customizes the rendering of a suggested replies component.",name:"renderSuggestedReplies",required:!1,type:{name:"(props: SuggestedRepliesProps) => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/Channel/components/MessageList/index.tsx#MessageList"]={docgenInfo:MessageList_MessageList.__docgenInfo,name:"MessageList",path:"src/modules/Channel/components/MessageList/index.tsx#MessageList"})}catch(__react_docgen_typescript_loader_error){}var MessageInputWrapperView=__webpack_require__("./src/modules/GroupChannel/components/MessageInputWrapper/MessageInputWrapperView.tsx");function MessageInputWrapper_extends(){return MessageInputWrapper_extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i0&&0===(null==localMessages?void 0:localMessages.length),disableMessageInput=props.disabled||isLastMessageSuggestedRepliesEnabled&&!(null===(_lastMessage$extended=lastMessage.extendedMessagePayload)||void 0===_lastMessage$extended||!_lastMessage$extended.disable_chat_input);return react_default.a.createElement(MessageInputWrapperView.a,MessageInputWrapper_extends({},props,context,{disabled:disableMessageInput,currentChannel:currentGroupChannel,sendUserMessage:function sendUserMessage(params){return sendMessage({message:params.message,mentionTemplate:params.mentionedMessageTemplate,mentionedUsers:params.mentionedUsers,quoteMessage:quoteMessage})},sendFileMessage:function sendFileMessage(params){return _sendFileMessage(params.file,quoteMessage)},sendVoiceMessage:function sendVoiceMessage(_ref,duration){var file=_ref.file;return _sendVoiceMessage(file,duration,quoteMessage)},sendMultipleFilesMessage:function sendMultipleFilesMessage(_ref2){var fileInfoList=_ref2.fileInfoList;return _sendMultipleFilesMessage(fileInfoList.map((function(fileInfo){return fileInfo.file})),quoteMessage)}}))},components_MessageInputWrapper=MessageInputWrapper_MessageInputWrapper;try{MessageInputWrapper_MessageInputWrapper.displayName="MessageInputWrapper",MessageInputWrapper_MessageInputWrapper.__docgenInfo={description:"",displayName:"MessageInputWrapper",props:{value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},acceptableMimeTypes:{defaultValue:null,description:"",name:"acceptableMimeTypes",required:!1,type:{name:"string[]"}},renderFileUploadIcon:{defaultValue:null,description:"",name:"renderFileUploadIcon",required:!1,type:{name:"() => ReactElement>"}},renderVoiceMessageIcon:{defaultValue:null,description:"",name:"renderVoiceMessageIcon",required:!1,type:{name:"() => ReactElement>"}},renderSendMessageIcon:{defaultValue:null,description:"",name:"renderSendMessageIcon",required:!1,type:{name:"() => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/Channel/components/MessageInputWrapper/index.tsx#MessageInputWrapper"]={docgenInfo:MessageInputWrapper_MessageInputWrapper.__docgenInfo,name:"MessageInputWrapper",path:"src/modules/Channel/components/MessageInputWrapper/index.tsx#MessageInputWrapper"})}catch(__react_docgen_typescript_loader_error){}function ChannelUI_extends(){return ChannelUI_extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i ReactElement>"}},renderPlaceholderLoader:{defaultValue:null,description:"A function that customizes the rendering of a loading placeholder component.",name:"renderPlaceholderLoader",required:!1,type:{name:"() => ReactElement>"}},renderPlaceholderInvalid:{defaultValue:null,description:"A function that customizes the rendering of a invalid placeholder component.",name:"renderPlaceholderInvalid",required:!1,type:{name:"() => ReactElement>"}},renderPlaceholderEmpty:{defaultValue:null,description:"A function that customizes the rendering of an empty placeholder component when there are no messages in the channel.",name:"renderPlaceholderEmpty",required:!1,type:{name:"() => ReactElement>"}},renderChannelHeader:{defaultValue:null,description:"A function that customizes the rendering of a header component.",name:"renderChannelHeader",required:!1,type:{name:"(props: GroupChannelHeaderProps) => ReactElement>"}},renderMessageList:{defaultValue:null,description:"A function that customizes the rendering of a message list component.",name:"renderMessageList",required:!1,type:{name:"(props: GroupChannelMessageListProps) => ReactElement>"}},renderMessageInput:{defaultValue:null,description:"A function that customizes the rendering of a message input component.",name:"renderMessageInput",required:!1,type:{name:"() => ReactElement>"}},renderMessageContent:{defaultValue:null,description:"A function that customizes the rendering of the content portion of each message component.",name:"renderMessageContent",required:!1,type:{name:"(props: MessageContentProps) => ReactElement>"}},renderSuggestedReplies:{defaultValue:null,description:"A function that customizes the rendering of the suggested replies of each message component.",name:"renderSuggestedReplies",required:!1,type:{name:"(props: SuggestedRepliesProps) => ReactElement>"}},renderCustomSeparator:{defaultValue:null,description:"A function that customizes the rendering of a separator component between messages.",name:"renderCustomSeparator",required:!1,type:{name:"(props: RenderCustomSeparatorProps) => ReactElement>"}},renderFrozenNotification:{defaultValue:null,description:"A function that customizes the rendering of a frozen notification component when the channel is frozen.",name:"renderFrozenNotification",required:!1,type:{name:"() => ReactElement>"}},renderFileUploadIcon:{defaultValue:null,description:"A function that customizes the rendering of the file upload icon in the message input component.",name:"renderFileUploadIcon",required:!1,type:{name:"() => ReactElement>"}},renderVoiceMessageIcon:{defaultValue:null,description:"A function that customizes the rendering of the voice message icon in the message input component.",name:"renderVoiceMessageIcon",required:!1,type:{name:"() => ReactElement>"}},renderSendMessageIcon:{defaultValue:null,description:"A function that customizes the rendering of the send message icon in the message input component.",name:"renderSendMessageIcon",required:!1,type:{name:"() => ReactElement>"}},renderTypingIndicator:{defaultValue:null,description:"A function that customizes the rendering of the typing indicator component.",name:"renderTypingIndicator",required:!1,type:{name:"() => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/Channel/components/ChannelUI/index.tsx#ChannelUI"]={docgenInfo:ChannelUI_ChannelUI.__docgenInfo,name:"ChannelUI",path:"src/modules/Channel/components/ChannelUI/index.tsx#ChannelUI"})}catch(__react_docgen_typescript_loader_error){}var Channel_Channel=function Channel(props){return react_default.a.createElement(ChannelProvider_ChannelProvider,props,react_default.a.createElement(components_ChannelUI,props))};__webpack_exports__.a=Channel_Channel;try{Channel_Channel.displayName="Channel",Channel_Channel.__docgenInfo={description:"",displayName:"Channel",props:{channelUrl:{defaultValue:null,description:"",name:"channelUrl",required:!0,type:{name:"string"}},isReactionEnabled:{defaultValue:null,description:"",name:"isReactionEnabled",required:!1,type:{name:"boolean"}},isMessageGroupingEnabled:{defaultValue:null,description:"",name:"isMessageGroupingEnabled",required:!1,type:{name:"boolean"}},isMultipleFilesMessageEnabled:{defaultValue:null,description:"",name:"isMultipleFilesMessageEnabled",required:!1,type:{name:"boolean"}},showSearchIcon:{defaultValue:null,description:"",name:"showSearchIcon",required:!1,type:{name:"boolean"}},animatedMessage:{defaultValue:null,description:"",name:"animatedMessage",required:!1,type:{name:"number"}},highlightedMessage:{defaultValue:null,description:"",name:"highlightedMessage",required:!1,type:{name:"number"}},startingPoint:{defaultValue:null,description:"",name:"startingPoint",required:!1,type:{name:"number"}},onBeforeSendUserMessage:{defaultValue:null,description:"",name:"onBeforeSendUserMessage",required:!1,type:{name:"(text: string, quotedMessage?: SendableMessageType) => UserMessageCreateParams"}},onBeforeSendFileMessage:{defaultValue:null,description:"",name:"onBeforeSendFileMessage",required:!1,type:{name:"(file: File, quotedMessage?: SendableMessageType) => FileMessageCreateParams"}},onBeforeUpdateUserMessage:{defaultValue:null,description:"",name:"onBeforeUpdateUserMessage",required:!1,type:{name:"(text: string) => UserMessageUpdateParams"}},onBeforeSendVoiceMessage:{defaultValue:null,description:"",name:"onBeforeSendVoiceMessage",required:!1,type:{name:"(file: File, quotedMessage?: SendableMessageType) => FileMessageCreateParams"}},onBeforeSendMultipleFilesMessage:{defaultValue:null,description:"",name:"onBeforeSendMultipleFilesMessage",required:!1,type:{name:"(files: File[], quotedMessage?: SendableMessageType) => MultipleFilesMessageCreateParams"}},onChatHeaderActionClick:{defaultValue:null,description:"",name:"onChatHeaderActionClick",required:!1,type:{name:"(event: MouseEvent) => void"}},onSearchClick:{defaultValue:null,description:"",name:"onSearchClick",required:!1,type:{name:"() => void"}},onBackClick:{defaultValue:null,description:"",name:"onBackClick",required:!1,type:{name:"() => void"}},replyType:{defaultValue:null,description:"",name:"replyType",required:!1,type:{name:"enum",value:[{value:'"NONE"'},{value:'"QUOTE_REPLY"'},{value:'"THREAD"'}]}},threadReplySelectType:{defaultValue:null,description:"",name:"threadReplySelectType",required:!1,type:{name:"enum",value:[{value:'"PARENT"'},{value:'"THREAD"'}]}},queries:{defaultValue:null,description:"",name:"queries",required:!1,type:{name:"ChannelQueries"}},renderUserProfile:{defaultValue:null,description:"",name:"renderUserProfile",required:!1,type:{name:"(props: RenderUserProfileProps) => ReactElement>"}},filterMessageList:{defaultValue:null,description:"",name:"filterMessageList",required:!1,type:{name:"(messages: BaseMessage) => boolean"}},disableUserProfile:{defaultValue:null,description:"",name:"disableUserProfile",required:!1,type:{name:"boolean"}},disableMarkAsRead:{defaultValue:null,description:"",name:"disableMarkAsRead",required:!1,type:{name:"boolean"}},onReplyInThread:{defaultValue:null,description:"",name:"onReplyInThread",required:!1,type:{name:"(props: { message: SendableMessageType; }) => void"}},onQuoteMessageClick:{defaultValue:null,description:"",name:"onQuoteMessageClick",required:!1,type:{name:"(props: { message: SendableMessageType; }) => void"}},onMessageAnimated:{defaultValue:null,description:"",name:"onMessageAnimated",required:!1,type:{name:"() => void"}},onMessageHighlighted:{defaultValue:null,description:"",name:"onMessageHighlighted",required:!1,type:{name:"() => void"}},scrollBehavior:{defaultValue:null,description:"",name:"scrollBehavior",required:!1,type:{name:"enum",value:[{value:'"smooth"'},{value:'"auto"'}]}},reconnectOnIdle:{defaultValue:null,description:"",name:"reconnectOnIdle",required:!1,type:{name:"boolean"}},isLoading:{defaultValue:null,description:"",name:"isLoading",required:!1,type:{name:"boolean"}},renderMessage:{defaultValue:null,description:"Customizes all child components of the message component.",name:"renderMessage",required:!1,type:{name:"(props: RenderMessageParamsType) => ReactElement>"}},renderPlaceholderLoader:{defaultValue:null,description:"A function that customizes the rendering of a loading placeholder component.",name:"renderPlaceholderLoader",required:!1,type:{name:"() => ReactElement>"}},renderPlaceholderInvalid:{defaultValue:null,description:"A function that customizes the rendering of a invalid placeholder component.",name:"renderPlaceholderInvalid",required:!1,type:{name:"() => ReactElement>"}},renderPlaceholderEmpty:{defaultValue:null,description:"A function that customizes the rendering of an empty placeholder component when there are no messages in the channel.",name:"renderPlaceholderEmpty",required:!1,type:{name:"() => ReactElement>"}},renderChannelHeader:{defaultValue:null,description:"A function that customizes the rendering of a header component.",name:"renderChannelHeader",required:!1,type:{name:"(props: GroupChannelHeaderProps) => ReactElement>"}},renderMessageList:{defaultValue:null,description:"A function that customizes the rendering of a message list component.",name:"renderMessageList",required:!1,type:{name:"(props: GroupChannelMessageListProps) => ReactElement>"}},renderMessageInput:{defaultValue:null,description:"A function that customizes the rendering of a message input component.",name:"renderMessageInput",required:!1,type:{name:"() => ReactElement>"}},renderMessageContent:{defaultValue:null,description:"A function that customizes the rendering of the content portion of each message component.",name:"renderMessageContent",required:!1,type:{name:"(props: MessageContentProps) => ReactElement>"}},renderSuggestedReplies:{defaultValue:null,description:"A function that customizes the rendering of the suggested replies of each message component.",name:"renderSuggestedReplies",required:!1,type:{name:"(props: SuggestedRepliesProps) => ReactElement>"}},renderCustomSeparator:{defaultValue:null,description:"A function that customizes the rendering of a separator component between messages.",name:"renderCustomSeparator",required:!1,type:{name:"(props: RenderCustomSeparatorProps) => ReactElement>"}},renderFrozenNotification:{defaultValue:null,description:"A function that customizes the rendering of a frozen notification component when the channel is frozen.",name:"renderFrozenNotification",required:!1,type:{name:"() => ReactElement>"}},renderFileUploadIcon:{defaultValue:null,description:"A function that customizes the rendering of the file upload icon in the message input component.",name:"renderFileUploadIcon",required:!1,type:{name:"() => ReactElement>"}},renderVoiceMessageIcon:{defaultValue:null,description:"A function that customizes the rendering of the voice message icon in the message input component.",name:"renderVoiceMessageIcon",required:!1,type:{name:"() => ReactElement>"}},renderSendMessageIcon:{defaultValue:null,description:"A function that customizes the rendering of the send message icon in the message input component.",name:"renderSendMessageIcon",required:!1,type:{name:"() => ReactElement>"}},renderTypingIndicator:{defaultValue:null,description:"A function that customizes the rendering of the typing indicator component.",name:"renderTypingIndicator",required:!1,type:{name:"() => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/Channel/index.tsx#Channel"]={docgenInfo:Channel_Channel.__docgenInfo,name:"Channel",path:"src/modules/Channel/index.tsx#Channel"})}catch(__react_docgen_typescript_loader_error){}},"./src/modules/Channel/stories/index.stories.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"ChannelWithFilter",(function(){return ChannelWithFilter}));__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js");var react__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_18__),_lib_Sendbird__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./src/lib/Sendbird.tsx"),_Channel__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/modules/Channel/index.tsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _defineProperty(obj,key,value){return(key=function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:String(i)}(key))in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);itwoWeeksAgo}),[]);return react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement(_lib_Sendbird__WEBPACK_IMPORTED_MODULE_19__.a,{appId:"FEA2129A-EA73-4EB9-9E0B-EC738E7EB768",userId:"sendbird"},react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("div",{style:{height:"90vh"}},react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("input",{type:"text",ref:channelInput}),react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("button",{onClick:function onClick(){var _channelInput$current;setChannel(null==channelInput||null===(_channelInput$current=channelInput.current)||void 0===_channelInput$current?void 0:_channelInput$current.value)}},"set channel url"),react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement(_Channel__WEBPACK_IMPORTED_MODULE_20__.a,{channelUrl:channel,filterMessageList:channelFilter})))};ChannelWithFilter.parameters=function _objectSpread(e){for(var r=1;r {\n const [channel, setChannel] = useState(null);\n const channelInput = React.createRef();\n const channelFilter = useCallback((message) => {\n const now = Date.now();\n const twoWeeksAgo = now - 1000 * 60 * 60 * 24 * 14;\n return message.createdAt > twoWeeksAgo;\n }, []);\n return (\n \n
\n \n {\n setChannel(channelInput?.current?.value);\n }}\n >\n set channel url\n \n \n
\n \n );\n}"}},ChannelWithFilter.parameters)},"./src/modules/ChannelList/components/ChannelPreview/utils.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";var _GroupChannelList_components_GroupChannelListItem_utils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/modules/GroupChannelList/components/GroupChannelListItem/utils.ts");__webpack_require__.d(__webpack_exports__,"a",(function(){return _GroupChannelList_components_GroupChannelListItem_utils__WEBPACK_IMPORTED_MODULE_0__.a})),__webpack_require__.d(__webpack_exports__,"b",(function(){return _GroupChannelList_components_GroupChannelListItem_utils__WEBPACK_IMPORTED_MODULE_0__.d}))},"./src/modules/ChannelList/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),groupChannel=(__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/@sendbird/chat/groupChannel.js")),_bundle_4d8e37ce=(__webpack_require__("./node_modules/core-js/modules/es.array.find.js"),__webpack_require__("./node_modules/core-js/modules/es.map.js"),__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-4d8e37ce.js")),topics=__webpack_require__("./src/lib/pubSub/topics.ts"),utils_createChannelListQuery=function createChannelListQuery(_ref2){var sdk=_ref2.sdk,_ref2$userFilledChann=_ref2.userFilledChannelListQuery,userFilledChannelListQuery=void 0===_ref2$userFilledChann?{}:_ref2$userFilledChann,params={includeEmpty:!1,limit:20,order:_bundle_4d8e37ce.c.LATEST_LAST_MESSAGE};return userFilledChannelListQuery&&Object.keys(userFilledChannelListQuery).forEach((function(key){params[key]=userFilledChannelListQuery[key]})),sdk.groupChannel.createMyGroupChannelListQuery(params)};var utils=function setupChannelList(_ref3){var _sdk$currentUser$user,_sdk$currentUser3,sdk=_ref3.sdk,sdkChannelHandlerId=_ref3.sdkChannelHandlerId,channelListDispatcher=_ref3.channelListDispatcher,setChannelSource=_ref3.setChannelSource,onChannelSelect=_ref3.onChannelSelect,userFilledChannelListQuery=_ref3.userFilledChannelListQuery,logger=_ref3.logger,sortChannelList=_ref3.sortChannelList,disableAutoSelect=_ref3.disableAutoSelect,markAsDeliveredScheduler=_ref3.markAsDeliveredScheduler,disableMarkAsDelivered=_ref3.disableMarkAsDelivered;null!=sdk&&sdk.groupChannel?function createEventHandler(_ref){var sdk=_ref.sdk,sdkChannelHandlerId=_ref.sdkChannelHandlerId,channelListDispatcher=_ref.channelListDispatcher,logger=_ref.logger,ChannelHandler=new groupChannel.a({onChannelChanged:function onChannelChanged(channel){channel.isGroupChannel()&&(logger.info("ChannelList: onChannelChanged",channel),channelListDispatcher({type:"ON_CHANNEL_CHANGED",payload:channel}))},onChannelDeleted:function onChannelDeleted(channelUrl){logger.info("ChannelList: onChannelDeleted",channelUrl),channelListDispatcher({type:"ON_CHANNEL_DELETED",payload:channelUrl})},onUserJoined:function onUserJoined(channel){logger.info("ChannelList: onUserJoined",channel),channelListDispatcher({type:"ON_USER_JOINED",payload:channel})},onUserBanned:function onUserBanned(channel,user){if(channel.isGroupChannel()){var _sdk$currentUser;logger.info("Channel: onUserBanned",channel);var isMe=user.userId===(null==sdk||null===(_sdk$currentUser=sdk.currentUser)||void 0===_sdk$currentUser?void 0:_sdk$currentUser.userId);channelListDispatcher({type:"ON_USER_LEFT",payload:{channel:channel,isMe:isMe}})}},onUserLeft:function onUserLeft(channel,user){var _sdk$currentUser2;logger.info("ChannelList: onUserLeft",channel);var isMe=user.userId===(null==sdk||null===(_sdk$currentUser2=sdk.currentUser)||void 0===_sdk$currentUser2?void 0:_sdk$currentUser2.userId);channelListDispatcher({type:"ON_USER_LEFT",payload:{channel:channel,isMe:isMe}})},onUnreadMemberStatusUpdated:function onUnreadMemberStatusUpdated(channel){logger.info("ChannelList: onUnreadMemberStatusUpdated",channel),channelListDispatcher({type:"ON_READ_RECEIPT_UPDATED",payload:channel})},onUndeliveredMemberStatusUpdated:function onUndeliveredMemberStatusUpdated(channel){logger.info("ChannelList: onUndeliveredMemberStatusUpdated",channel),channel.lastMessage&&channelListDispatcher({type:"ON_DELIVERY_RECEIPT_UPDATED",payload:channel})},onMessageUpdated:function onMessageUpdated(channel,message){channel.isGroupChannel()&&channel.lastMessage.isEqual(message)&&(logger.info("ChannelList: onMessageUpdated",channel),channelListDispatcher({type:"ON_LAST_MESSAGE_UPDATED",payload:channel}))},onChannelHidden:function onChannelHidden(channel){logger.info("ChannelList: onChannelHidden",channel),channelListDispatcher({type:"ON_CHANNEL_ARCHIVED",payload:channel})},onChannelFrozen:function onChannelFrozen(channel){channel.isGroupChannel()&&(logger.info("ChannelList: onChannelFrozen",channel),channelListDispatcher({type:"ON_CHANNEL_FROZEN",payload:channel}))},onChannelUnfrozen:function onChannelUnfrozen(channel){channel.isGroupChannel()&&(logger.info("ChannelList: onChannelUnfrozen",channel),channelListDispatcher({type:"ON_CHANNEL_UNFROZEN",payload:channel}))}});logger.info("ChannelList: Added channelHandler"),sdk.groupChannel.addGroupChannelHandler(sdkChannelHandlerId,ChannelHandler)}({sdk:sdk,channelListDispatcher:channelListDispatcher,sdkChannelHandlerId:sdkChannelHandlerId,logger:logger}):logger.warning("ChannelList - createEventHandler: sdk or sdk.ChannelHandler does not exist",sdk),logger.info("ChannelList - creating query",{userFilledChannelListQuery:userFilledChannelListQuery});var _sdk$currentUser$user2,_sdk$currentUser4,channelListQuery=utils_createChannelListQuery({sdk:sdk,userFilledChannelListQuery:userFilledChannelListQuery});logger.info("ChannelList - created query",channelListQuery),setChannelSource(channelListQuery),channelListDispatcher({type:"INIT_CHANNELS_START",payload:{currentUserId:null!==(_sdk$currentUser$user=null==sdk||null===(_sdk$currentUser3=sdk.currentUser)||void 0===_sdk$currentUser3?void 0:_sdk$currentUser3.userId)&&void 0!==_sdk$currentUser$user?_sdk$currentUser$user:""}}),userFilledChannelListQuery&&(logger.info("ChannelList - setting up channelListQuery",channelListQuery),channelListDispatcher({type:"CHANNEL_LIST_PARAMS_UPDATED",payload:{channelListQuery:channelListQuery,currentUserId:null!==(_sdk$currentUser$user2=null==sdk||null===(_sdk$currentUser4=sdk.currentUser)||void 0===_sdk$currentUser4?void 0:_sdk$currentUser4.userId)&&void 0!==_sdk$currentUser$user2?_sdk$currentUser$user2:""}})),logger.info("ChannelList - fetching channels"),channelListQuery.hasNext?channelListQuery.next().then((function(channelList){var _sdk$appInfo;logger.info("ChannelList - fetched channels",channelList),logger.info("ChannelList - highlight channel",channelList[0]);var sortedChannelList=channelList;sortChannelList&&"function"==typeof sortChannelList&&(sortedChannelList=sortChannelList(channelList),logger.info("ChannelList - channel list sorted",sortedChannelList)),disableAutoSelect||null==onChannelSelect||onChannelSelect(sortedChannelList[0]),channelListDispatcher({type:"INIT_CHANNELS_SUCCESS",payload:{channelList:sortedChannelList,disableAutoSelect:disableAutoSelect}}),(null==sdk||null===(_sdk$appInfo=sdk.appInfo)||void 0===_sdk$appInfo||null===(_sdk$appInfo=_sdk$appInfo.premiumFeatureList)||void 0===_sdk$appInfo?void 0:_sdk$appInfo.find((function(feature){return"delivery_receipt"===feature})))&&!disableMarkAsDelivered&&sortedChannelList.forEach((function(channel){markAsDeliveredScheduler.push(channel)}))})).catch((function(err){err&&(logger.error("ChannelList - couldnt fetch channels",err),channelListDispatcher({type:"INIT_CHANNELS_FAILURE"}))})):logger.info("ChannelList - there are no more channels")},uuid=__webpack_require__("./src/utils/uuid.ts"),utils_utils=__webpack_require__("./src/utils/utils.ts"),consts=__webpack_require__("./src/utils/consts.ts"),UserProfileContext=__webpack_require__("./src/lib/UserProfileContext.tsx"),useSendbirdStateContext=__webpack_require__("./src/hooks/useSendbirdStateContext.tsx"),dist=(__webpack_require__("./node_modules/core-js/modules/es.array.find-index.js"),__webpack_require__("./node_modules/core-js/modules/es.array.splice.js"),__webpack_require__("./node_modules/ts-pattern/dist/index.js")),src_utils=__webpack_require__("./src/utils/index.ts");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0){var _allChannels=_slicedToArray(allChannels,2),firstChannel=_allChannels[0],_allChannels$=_allChannels[1],secondChannel=void 0===_allChannels$?null:_allChannels$;nextChannel=firstChannel.url===channel.url?secondChannel:firstChannel}}else nextChannel=currentChannel;return nextChannel},dux_initialState={initialized:!1,loading:!0,allChannels:[],currentChannel:null,channelListQuery:null,currentUserId:"",disableAutoSelect:!1};function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return reducers_arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function reducers_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return reducers_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return reducers_arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function reducers_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0?channelList[0]:state.currentChannel})})).with({type:"REFRESH_CHANNELS_SUCCESS"},(function(action){var _action$payload2=action.payload,channelList=_action$payload2.channelList,currentChannel=_action$payload2.currentChannel;return _objectSpread(_objectSpread({},state),{},{loading:!1,allChannels:channelList,currentChannel:currentChannel})})).with({type:"FETCH_CHANNELS_SUCCESS"},(function(action){var currentChannels=state.allChannels.map((function(c){return c.url})),filteredChannels=action.payload.filter((function(_ref2){var url=_ref2.url;return!currentChannels.find((function(c){return c===url}))}));return _objectSpread(_objectSpread({},state),{},{allChannels:[].concat(_toConsumableArray(state.allChannels),_toConsumableArray(filteredChannels))})})).with({type:"CREATE_CHANNEL"},(function(action){var _state$channelListQue,channel=action.payload,allChannels=state.allChannels,currentUserId=state.currentUserId,channelListQuery=state.channelListQuery;return channelListQuery?Object(src_utils.f)(channelListQuery,channel,currentUserId)?_objectSpread(_objectSpread({},state),{},{currentChannel:channel,allChannels:Object(src_utils.h)(allChannels,channel,null===(_state$channelListQue=state.channelListQuery)||void 0===_state$channelListQue?void 0:_state$channelListQue.order)}):_objectSpread(_objectSpread({},state),{},{currentChannel:channel}):_objectSpread(_objectSpread({},state),{},{currentChannel:channel,allChannels:[channel].concat(_toConsumableArray(allChannels.filter((function(ch){return ch.url!==(null==channel?void 0:channel.url)}))))})})).with({type:"ON_CHANNEL_ARCHIVED"},(function(action){var _state$channelListQue2,channel=action.payload,allChannels=state.allChannels,currentUserId=state.currentUserId,currentChannel=state.currentChannel,channelListQuery=state.channelListQuery,disableAutoSelect=state.disableAutoSelect;if(channelListQuery&&Object(src_utils.f)(channelListQuery,channel,currentUserId))return _objectSpread(_objectSpread({},state),{},{allChannels:Object(src_utils.h)(allChannels,channel,null===(_state$channelListQue2=state.channelListQuery)||void 0===_state$channelListQue2?void 0:_state$channelListQue2.order)});var nextChannel=getNextChannel({channel:channel,currentChannel:currentChannel,allChannels:allChannels,disableAutoSelect:disableAutoSelect});return _objectSpread(_objectSpread({},state),{},{currentChannel:nextChannel,allChannels:allChannels.filter((function(_ref3){return _ref3.url!==(null==channel?void 0:channel.url)}))})})).with({type:dist.a.union("LEAVE_CHANNEL_SUCCESS","ON_CHANNEL_DELETED")},(function(action){var _state$currentChannel,channelUrl=action.payload,allChannels=state.allChannels.filter((function(_ref4){return _ref4.url!==channelUrl}));return _objectSpread(_objectSpread({},state),{},{currentChannel:channelUrl===(null===(_state$currentChannel=state.currentChannel)||void 0===_state$currentChannel?void 0:_state$currentChannel.url)?allChannels[0]:state.currentChannel,allChannels:allChannels})})).with({type:"ON_USER_LEFT"},(function(action){var _action$payload3=action.payload,channel=_action$payload3.channel,isMe=_action$payload3.isMe,allChannels=state.allChannels,currentUserId=state.currentUserId,currentChannel=state.currentChannel,channelListQuery=state.channelListQuery,disableAutoSelect=state.disableAutoSelect,nextChannels=_toConsumableArray(allChannels),nextChannel=channel;if(isMe||channelListQuery&&!Object(src_utils.f)(channelListQuery,channel,currentUserId)){var channelAt=allChannels.findIndex((function(ch){return ch.url===channel.url}));channelAt>-1&&(nextChannels.splice(channelAt,1),nextChannel=getNextChannel({channel:channel,currentChannel:currentChannel,allChannels:allChannels,disableAutoSelect:disableAutoSelect}))}else{var _state$channelListQue3;nextChannels=Object(src_utils.h)(allChannels,channel,null===(_state$channelListQue3=state.channelListQuery)||void 0===_state$channelListQue3?void 0:_state$channelListQue3.order),(null==currentChannel?void 0:currentChannel.url)===channel.url&&(nextChannel=channel)}return _objectSpread(_objectSpread({},state),{},{currentChannel:nextChannel,allChannels:nextChannels})})).with({type:dist.a.union("ON_USER_JOINED","ON_CHANNEL_CHANGED","ON_READ_RECEIPT_UPDATED","ON_DELIVERY_RECEIPT_UPDATED")},(function(action){var _channel$lastMessage,channel=action.payload,_state$allChannels=state.allChannels,allChannels=void 0===_state$allChannels?[]:_state$allChannels,currentUserId=state.currentUserId,currentChannel=state.currentChannel,channelListQuery=state.channelListQuery,disableAutoSelect=state.disableAutoSelect,unreadMessageCount=channel.unreadMessageCount;if(channelListQuery){var _state$channelListQue4;if(Object(src_utils.f)(channelListQuery,channel,currentUserId))return _objectSpread(_objectSpread({},state),{},{allChannels:Object(src_utils.h)(allChannels,channel,null===(_state$channelListQue4=state.channelListQuery)||void 0===_state$channelListQue4?void 0:_state$channelListQue4.order)});var nextChannel=getNextChannel({channel:channel,currentChannel:currentChannel,allChannels:allChannels,disableAutoSelect:disableAutoSelect});return _objectSpread(_objectSpread({},state),{},{currentChannel:nextChannel,allChannels:allChannels.filter((function(_ref5){return _ref5.url!==(null==channel?void 0:channel.url)}))})}return 0===unreadMessageCount&&(null==channel||null===(_channel$lastMessage=channel.lastMessage)||void 0===_channel$lastMessage||null===(_channel$lastMessage=_channel$lastMessage.sender)||void 0===_channel$lastMessage?void 0:_channel$lastMessage.userId)!==currentUserId?_objectSpread(_objectSpread({},state),{},{allChannels:allChannels.map((function(ch){return ch.url===(null==channel?void 0:channel.url)?channel:ch}))}):_objectSpread(_objectSpread({},state),{},{allChannels:[channel].concat(_toConsumableArray(allChannels.filter((function(_ref6){return _ref6.url!==channel.url}))))})})).with({type:"SET_CURRENT_CHANNEL"},(function(action){return _objectSpread(_objectSpread({},state),{},{currentChannel:action.payload})})).with({type:"ON_LAST_MESSAGE_UPDATED"},(function(action){return _objectSpread(_objectSpread({},state),{},{allChannels:state.allChannels.map((function(channel){return(null==channel?void 0:channel.url)===action.payload.url?action.payload:channel}))})})).with({type:"ON_CHANNEL_FROZEN"},(function(action){var channel=action.payload,allChannels=state.allChannels,currentUserId=state.currentUserId,currentChannel=state.currentChannel,channelListQuery=state.channelListQuery,disableAutoSelect=state.disableAutoSelect;if(channelListQuery){var _state$channelListQue5;if(Object(src_utils.f)(channelListQuery,channel,currentUserId))return _objectSpread(_objectSpread({},state),{},{allChannels:Object(src_utils.h)(allChannels,channel,null===(_state$channelListQue5=state.channelListQuery)||void 0===_state$channelListQue5?void 0:_state$channelListQue5.order)});var nextChannel=getNextChannel({channel:channel,currentChannel:currentChannel,allChannels:allChannels,disableAutoSelect:disableAutoSelect});return _objectSpread(_objectSpread({},state),{},{currentChannel:nextChannel,allChannels:allChannels.filter((function(_ref7){return _ref7.url!==(null==channel?void 0:channel.url)}))})}return _objectSpread(_objectSpread({},state),{},{allChannels:allChannels.map((function(ch){return ch.url===(null==channel?void 0:channel.url)?(ch.isFrozen=!0,ch):ch}))})})).with({type:"ON_CHANNEL_UNFROZEN"},(function(action){var channel=action.payload,allChannels=state.allChannels,currentUserId=state.currentUserId,currentChannel=state.currentChannel,channelListQuery=state.channelListQuery,disableAutoSelect=state.disableAutoSelect;if(channelListQuery){var _state$channelListQue6;if(Object(src_utils.f)(channelListQuery,channel,currentUserId))return _objectSpread(_objectSpread({},state),{},{allChannels:Object(src_utils.h)(allChannels,channel,null===(_state$channelListQue6=state.channelListQuery)||void 0===_state$channelListQue6?void 0:_state$channelListQue6.order)});var nextChannel=getNextChannel({channel:channel,currentChannel:currentChannel,allChannels:allChannels,disableAutoSelect:disableAutoSelect});return _objectSpread(_objectSpread({},state),{},{currentChannel:nextChannel,allChannels:allChannels.filter((function(_ref8){return _ref8.url!==(null==channel?void 0:channel.url)}))})}return _objectSpread(_objectSpread({},state),{},{allChannels:allChannels.map((function(ch){return ch.url===(null==channel?void 0:channel.url)?(ch.isFrozen=!1,ch):ch}))})})).with({type:"CHANNEL_LIST_PARAMS_UPDATED"},(function(action){return _objectSpread(_objectSpread({},state),{},{channelListQuery:action.payload.channelListQuery,currentUserId:action.payload.currentUserId})})).otherwise((function(){return state}))}var hooks_useActiveChannelUrl=function useActiveChannelUrl(_ref,_ref2){var activeChannelUrl=_ref.activeChannelUrl,channels=_ref.channels,sdk=_ref.sdk,logger=_ref2.logger,channelListDispatcher=_ref2.channelListDispatcher;return Object(react.useEffect)((function(){if(activeChannelUrl){logger.info("ChannelListProvider: looking for active channel",{activeChannelUrl:activeChannelUrl});var _sdk$groupChannel,activeChannel=null==channels?void 0:channels.find((function(channel){return channel.url===activeChannelUrl}));if(activeChannel)channelListDispatcher({type:"SET_CURRENT_CHANNEL",payload:activeChannel});else logger.info("ChannelListProvider: searching backend for active channel",{activeChannelUrl:activeChannelUrl}),null==sdk||null===(_sdk$groupChannel=sdk.groupChannel)||void 0===_sdk$groupChannel||_sdk$groupChannel.getChannel(activeChannelUrl).then((function(channel){channelListDispatcher({type:"FETCH_CHANNELS_SUCCESS",payload:[channel]}),channelListDispatcher({type:"SET_CURRENT_CHANNEL",payload:channel})})).catch((function(){logger.warning("ChannelListProvider: Active channel not found")}))}}),[activeChannelUrl])};__webpack_require__("./node_modules/core-js/modules/es.symbol.async-iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.math.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.json.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js");function useFetchChannelList_typeof(o){return useFetchChannelList_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},useFetchChannelList_typeof(o)}function _regeneratorRuntime(){_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==useFetchChannelList_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw new Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}var useReconnectOnIdle=__webpack_require__("./src/modules/Channel/context/hooks/useReconnectOnIdle.ts");var hooks_useHandleReconnectForChannelList=function useHandleReconnectForChannelList(_ref){var isOnline=_ref.isOnline,reconnectOnIdle=_ref.reconnectOnIdle,logger=_ref.logger,sdk=_ref.sdk,currentGroupChannel=_ref.currentGroupChannel,channelListDispatcher=_ref.channelListDispatcher,setChannelSource=_ref.setChannelSource,userFilledChannelListQuery=_ref.userFilledChannelListQuery,sortChannelList=_ref.sortChannelList,disableAutoSelect=_ref.disableAutoSelect,markAsDeliveredScheduler=_ref.markAsDeliveredScheduler,disableMarkAsDelivered=_ref.disableMarkAsDelivered,shouldReconnect=Object(useReconnectOnIdle.a)(isOnline,currentGroupChannel,reconnectOnIdle).shouldReconnect;Object(react.useEffect)((function(){return function(){if(shouldReconnect){var _sdk$currentUser$user,_sdk$currentUser;logger.info("ChannelList refresh - creating query",{userFilledChannelListQuery:userFilledChannelListQuery});var _sdk$currentUser$user2,_sdk$currentUser2,channelListQuery=utils_createChannelListQuery({sdk:sdk,userFilledChannelListQuery:userFilledChannelListQuery});if(logger.info("ChannelList refresh - created query",channelListQuery),setChannelSource(channelListQuery),channelListDispatcher({type:"INIT_CHANNELS_START",payload:{currentUserId:null!==(_sdk$currentUser$user=null==sdk||null===(_sdk$currentUser=sdk.currentUser)||void 0===_sdk$currentUser?void 0:_sdk$currentUser.userId)&&void 0!==_sdk$currentUser$user?_sdk$currentUser$user:""}}),userFilledChannelListQuery)logger.info("ChannelList refresh - setting up channelListQuery",channelListQuery),channelListDispatcher({type:"CHANNEL_LIST_PARAMS_UPDATED",payload:{channelListQuery:channelListQuery,currentUserId:null!==(_sdk$currentUser$user2=null==sdk||null===(_sdk$currentUser2=sdk.currentUser)||void 0===_sdk$currentUser2?void 0:_sdk$currentUser2.userId)&&void 0!==_sdk$currentUser$user2?_sdk$currentUser$user2:""}});logger.info("ChannelList refresh - fetching channels"),channelListQuery.hasNext?channelListQuery.next().then((function(channelList){var _sdk$appInfo;logger.info("ChannelList refresh - fetched channels",channelList);var sortedChannelList=channelList;sortChannelList&&"function"==typeof sortChannelList&&(sortedChannelList=sortChannelList(channelList),logger.info("ChannelList refresh - channel list sorted",sortedChannelList));var newCurrentChannel=disableAutoSelect?null:sortedChannelList[0];if(null!=currentGroupChannel&¤tGroupChannel.url){var foundChannel=sortedChannelList.find((function(channel){return channel.url===currentGroupChannel.url}));foundChannel&&(newCurrentChannel=foundChannel)}logger.info("ChannelList refresh - highlight channel",newCurrentChannel),channelListDispatcher({type:"REFRESH_CHANNELS_SUCCESS",payload:{channelList:sortedChannelList,currentChannel:newCurrentChannel}}),(null==sdk||null===(_sdk$appInfo=sdk.appInfo)||void 0===_sdk$appInfo||null===(_sdk$appInfo=_sdk$appInfo.premiumFeatureList)||void 0===_sdk$appInfo?void 0:_sdk$appInfo.find((function(feature){return feature===consts.e})))&&!disableMarkAsDelivered&&sortedChannelList.forEach((function(channel){markAsDeliveredScheduler.push(channel)}))})).catch((function(err){err&&(logger.error("ChannelList refresh - could not fetch channels",err),channelListDispatcher({type:"INIT_CHANNELS_FAILURE"}))})):logger.info("ChannelList refresh - there are no more channels")}}}),[shouldReconnect])};function ChannelListProvider_typeof(o){return ChannelListProvider_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},ChannelListProvider_typeof(o)}function ChannelListProvider_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function ChannelListProvider_objectSpread(e){for(var r=1;rarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0?[].concat(ChannelListProvider_toConsumableArray(channelList),[channel]):channelList)},onUnreadMemberStatusUpdated:function onUnreadMemberStatusUpdated(channel){channelListDispatcher({type:"ON_LAST_MESSAGE_UPDATED",payload:channel})},onUndeliveredMemberStatusUpdated:function onUndeliveredMemberStatusUpdated(channel){channelListDispatcher({type:"ON_LAST_MESSAGE_UPDATED",payload:channel})},onMessageUpdated:function onMessageUpdated(channel){channel.isGroupChannel()&&(channelListDispatcher({type:"ON_LAST_MESSAGE_UPDATED",payload:channel}),sdk.groupChannel.getChannelWithoutCache(channel.url).then((function(ch){channelListDispatcher({type:"ON_LAST_MESSAGE_UPDATED",payload:ch})})))},onMentionReceived:function onMentionReceived(channel){channel.isGroupChannel()&&(channelListDispatcher({type:"ON_LAST_MESSAGE_UPDATED",payload:channel}),sdk.groupChannel.getChannelWithoutCache(channel.url).then((function(ch){channelListDispatcher({type:"ON_LAST_MESSAGE_UPDATED",payload:ch})})))}});null==sdk||null===(_sdk$groupChannel5=sdk.groupChannel)||void 0===_sdk$groupChannel5||_sdk$groupChannel5.addGroupChannelHandler(typingHandlerId,handler)}return function(){var _sdk$groupChannel6;null!=sdk&&null!==(_sdk$groupChannel6=sdk.groupChannel)&&void 0!==_sdk$groupChannel6&&_sdk$groupChannel6.removeGroupChannelHandler&&""!==typingHandlerId&&sdk.groupChannel.removeGroupChannelHandler(typingHandlerId)}}),[null==sdk||null===(_sdk$currentUser=sdk.currentUser)||void 0===_sdk$currentUser?void 0:_sdk$currentUser.userId]);var queries_=Object(react.useMemo)((function(){return{applicationUserListQuery:userFilledApplicationUserListQuery,channelListQuery:userFilledChannelListQuery}}),[userFilledApplicationUserListQuery,userFilledChannelListQuery]),allChannels=channelListStore.allChannels,sortedChannels=sortChannelList&&"function"==typeof sortChannelList?sortChannelList(allChannels):allChannels;if(sortedChannels.length!==allChannels.length){var warning="ChannelList: You have removed/added extra channels on sortChannelList\n this could cause unexpected problems";console.warn(warning,{before:allChannels,after:sortedChannels}),logger.warning(warning,{before:allChannels,after:sortedChannels})}Object(react.useEffect)((function(){sdk&&sdk.groupChannel&&(null!=currentChannel&¤tChannel.url?sdk.groupChannel.getChannel(currentChannel.url).then((function(groupChannel){onChannelSelect(groupChannel||null)})):onChannelSelect(null))}),[null==currentChannel?void 0:currentChannel.url]),hooks_useActiveChannelUrl({activeChannelUrl:activeChannelUrl,channels:sortedChannels,sdk:sdk},{logger:logger,channelListDispatcher:channelListDispatcher}),hooks_useHandleReconnectForChannelList({isOnline:isOnline,reconnectOnIdle:reconnectOnIdle,logger:logger,sdk:sdk,currentGroupChannel:currentChannel,channelListDispatcher:channelListDispatcher,setChannelSource:setChannelSource,userFilledChannelListQuery:userFilledChannelListQuery,sortChannelList:sortChannelList,disableAutoSelect:disableAutoSelect,markAsDeliveredScheduler:markAsDeliveredScheduler,disableMarkAsDelivered:disableMarkAsDelivered});var fetchChannelList=function useFetchChannelList(_ref,_ref2){var channelSource=_ref.channelSource,disableMarkAsDelivered=_ref.disableMarkAsDelivered,channelListDispatcher=_ref2.channelListDispatcher,logger=_ref2.logger,markAsDeliveredScheduler=_ref2.markAsDeliveredScheduler;return Object(react.useCallback)(_asyncToGenerator(_regeneratorRuntime().mark((function _callee(){var channelList;return _regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:if(null!=channelSource&&channelSource.hasNext){_context.next=3;break}return logger.info("ChannelList: not able to fetch"),_context.abrupt("return");case 3:return logger.info("ChannelList: starting fetch"),channelListDispatcher({type:"FETCH_CHANNELS_START",payload:null}),_context.prev=5,_context.next=8,channelSource.next();case 8:channelList=_context.sent,logger.info("ChannelList: succeeded fetch",{channelList:channelList}),channelListDispatcher({type:"FETCH_CHANNELS_SUCCESS",payload:channelList}),disableMarkAsDelivered||(logger.info("ChannelList: mark as delivered to fetched channels"),null==channelList||channelList.forEach((function(channel){(null==channel?void 0:channel.unreadMessageCount)>0&&markAsDeliveredScheduler.push(channel)}))),_context.next=18;break;case 14:_context.prev=14,_context.t0=_context.catch(5),logger.error("ChannelList: failed fetch",{error:_context.t0}),channelListDispatcher({type:"FETCH_CHANNELS_FAILURE",payload:_context.t0});case 18:case"end":return _context.stop()}}),_callee,null,[[5,14]])}))),[channelSource,disableMarkAsDelivered])}({channelSource:channelSource,disableMarkAsDelivered:disableMarkAsDelivered||!premiumFeatureList.some((function(feature){return feature===consts.e}))},{channelListDispatcher:channelListDispatcher,logger:logger,markAsDeliveredScheduler:markAsDeliveredScheduler});return react_default.a.createElement(ChannelListContext.Provider,{value:ChannelListProvider_objectSpread(ChannelListProvider_objectSpread({className:className,disableUserProfile:disableUserProfile,queries:queries_,onProfileEditSuccess:onProfileEditSuccess,onThemeChange:onThemeChange,onBeforeCreateChannel:onBeforeCreateChannel,overrideInviteUser:overrideInviteUser,onChannelSelect:onChannelSelect,sortChannelList:sortChannelList,allowProfileEdit:enableEditProfile,channelListDispatcher:channelListDispatcher,channelSource:channelSource},channelListStore),{},{allChannels:sortedChannels,typingChannels:typingChannels,isTypingIndicatorEnabled:null!==isTypingIndicatorEnabled?isTypingIndicatorEnabled:isTypingIndicatorEnabledOnChannelList,isMessageReceiptStatusEnabled:null!==isMessageReceiptStatusEnabled?isMessageReceiptStatusEnabled:isMessageReceiptStatusEnabledOnChannelList,fetchChannelList:fetchChannelList})},react_default.a.createElement(UserProfileContext.b,{disableUserProfile:null!=userDefinedDisableUserProfile?userDefinedDisableUserProfile:null==config?void 0:config.disableUserProfile,renderUserProfile:userDefinedRenderProfile,onUserProfileMessage:onUserProfileMessage},react_default.a.createElement("div",{className:"sendbird-channel-list ".concat(className)},children)))};function useChannelListContext(){return Object(react.useContext)(ChannelListContext)}try{ChannelListProvider_ChannelListProvider.displayName="ChannelListProvider",ChannelListProvider_ChannelListProvider.__docgenInfo={description:"",displayName:"ChannelListProvider",props:{allowProfileEdit:{defaultValue:null,description:"",name:"allowProfileEdit",required:!1,type:{name:"boolean"}},onBeforeCreateChannel:{defaultValue:null,description:"",name:"onBeforeCreateChannel",required:!1,type:{name:"(users: string[]) => GroupChannelCreateParams"}},overrideInviteUser:{defaultValue:null,description:"",name:"overrideInviteUser",required:!1,type:{name:"(params: OverrideInviteUserType) => void"}},onThemeChange:{defaultValue:null,description:"",name:"onThemeChange",required:!1,type:{name:"(theme: string) => void"}},onProfileEditSuccess:{defaultValue:null,description:"",name:"onProfileEditSuccess",required:!1,type:{name:"(user: User) => void"}},onChannelSelect:{defaultValue:null,description:"",name:"onChannelSelect",required:!1,type:{name:"(channel: GroupChannel) => void"}},sortChannelList:{defaultValue:null,description:"",name:"sortChannelList",required:!1,type:{name:"(channels: GroupChannel[]) => GroupChannel[]"}},queries:{defaultValue:null,description:"",name:"queries",required:!1,type:{name:"ChannelListQueries"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string | string[]"}},renderUserProfile:{defaultValue:null,description:"",name:"renderUserProfile",required:!1,type:{name:"(props: RenderUserProfileProps) => ReactElement>"}},disableUserProfile:{defaultValue:null,description:"",name:"disableUserProfile",required:!1,type:{name:"boolean"}},disableAutoSelect:{defaultValue:null,description:"",name:"disableAutoSelect",required:!1,type:{name:"boolean"}},activeChannelUrl:{defaultValue:null,description:"",name:"activeChannelUrl",required:!1,type:{name:"string"}},typingChannels:{defaultValue:null,description:"",name:"typingChannels",required:!1,type:{name:"GroupChannel[]"}},isTypingIndicatorEnabled:{defaultValue:null,description:"",name:"isTypingIndicatorEnabled",required:!1,type:{name:"boolean"}},isMessageReceiptStatusEnabled:{defaultValue:null,description:"",name:"isMessageReceiptStatusEnabled",required:!1,type:{name:"boolean"}},reconnectOnIdle:{defaultValue:null,description:"",name:"reconnectOnIdle",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/ChannelList/context/ChannelListProvider.tsx#ChannelListProvider"]={docgenInfo:ChannelListProvider_ChannelListProvider.__docgenInfo,name:"ChannelListProvider",path:"src/modules/ChannelList/context/ChannelListProvider.tsx#ChannelListProvider"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./node_modules/core-js/modules/es.object.assign.js");var LocalizationContext=__webpack_require__("./src/lib/LocalizationContext.tsx"),ChannelPreview_utils=__webpack_require__("./src/modules/ChannelList/components/ChannelPreview/utils.ts"),GroupChannelListItemView=__webpack_require__("./src/modules/GroupChannelList/components/GroupChannelListItem/GroupChannelListItemView.tsx"),ChannelPreview_ChannelPreview=function ChannelPreview(_ref){var _channel$lastMessage,_channel$lastMessage2,_channel$lastMessage3,channel=_ref.channel,_ref$isActive=_ref.isActive,isActive=void 0!==_ref$isActive&&_ref$isActive,_ref$isSelected=_ref.isSelected,isSelected=void 0!==_ref$isSelected&&_ref$isSelected,_ref$isTyping=_ref.isTyping,isTyping=void 0!==_ref$isTyping&&_ref$isTyping,renderChannelAction=_ref.renderChannelAction,onLeaveChannel=_ref.onLeaveChannel,onClick=_ref.onClick,tabIndex=_ref.tabIndex,config=Object(useSendbirdStateContext.a)().config,stringSet=Object(LocalizationContext.c)().stringSet,_useChannelListContex=useChannelListContext(),_useChannelListContex2=_useChannelListContex.isTypingIndicatorEnabled,isTypingIndicatorEnabled=void 0!==_useChannelListContex2&&_useChannelListContex2,_useChannelListContex3=_useChannelListContex.isMessageReceiptStatusEnabled,isMessageReceiptStatusEnabled=void 0!==_useChannelListContex3&&_useChannelListContex3,userId=config.userId,isMessageStatusEnabled=isMessageReceiptStatusEnabled&&("user"===(null==channel||null===(_channel$lastMessage=channel.lastMessage)||void 0===_channel$lastMessage?void 0:_channel$lastMessage.messageType)||"file"===(null==channel||null===(_channel$lastMessage2=channel.lastMessage)||void 0===_channel$lastMessage2?void 0:_channel$lastMessage2.messageType))&&(null==channel||null===(_channel$lastMessage3=channel.lastMessage)||void 0===_channel$lastMessage3||null===(_channel$lastMessage3=_channel$lastMessage3.sender)||void 0===_channel$lastMessage3?void 0:_channel$lastMessage3.userId)===userId;return react_default.a.createElement(GroupChannelListItemView.a,{channel:channel,tabIndex:tabIndex,isTyping:isTypingIndicatorEnabled&&isTyping,isSelected:null!=isSelected?isSelected:isActive,channelName:Object(ChannelPreview_utils.a)(channel,userId,stringSet),isMessageStatusEnabled:isMessageStatusEnabled,onClick:onClick,onLeaveChannel:onLeaveChannel,renderChannelAction:renderChannelAction})},components_ChannelPreview=ChannelPreview_ChannelPreview;try{ChannelPreview_ChannelPreview.displayName="ChannelPreview",ChannelPreview_ChannelPreview.__docgenInfo={description:"",displayName:"ChannelPreview",props:{isActive:{defaultValue:{value:"false"},description:"@deprecated Please use `isSelected` instead",name:"isActive",required:!1,type:{name:"boolean"}},tabIndex:{defaultValue:null,description:"",name:"tabIndex",required:!0,type:{name:"number"}},channel:{defaultValue:null,description:"",name:"channel",required:!0,type:{name:"GroupChannel"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!0,type:{name:"() => void"}},renderChannelAction:{defaultValue:null,description:"",name:"renderChannelAction",required:!0,type:{name:"(props: GroupChannelPreviewActionProps) => ReactElement>"}},isSelected:{defaultValue:{value:"false"},description:"",name:"isSelected",required:!1,type:{name:"boolean"}},isTyping:{defaultValue:{value:"false"},description:"",name:"isTyping",required:!1,type:{name:"boolean"}},onLeaveChannel:{defaultValue:null,description:"",name:"onLeaveChannel",required:!1,type:{name:"() => Promise"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/ChannelList/components/ChannelPreview/index.tsx#ChannelPreview"]={docgenInfo:ChannelPreview_ChannelPreview.__docgenInfo,name:"ChannelPreview",path:"src/modules/ChannelList/components/ChannelPreview/index.tsx#ChannelPreview"})}catch(__react_docgen_typescript_loader_error){}var ChannelPreviewAction=__webpack_require__("./src/modules/GroupChannelList/components/GroupChannelPreviewAction.tsx").a;try{GroupChannelPreviewAction.displayName="GroupChannelPreviewAction",GroupChannelPreviewAction.__docgenInfo={description:"",displayName:"GroupChannelPreviewAction",props:{channel:{defaultValue:null,description:"",name:"channel",required:!1,type:{name:"GroupChannel"}},disabled:{defaultValue:{value:"false"},description:"",name:"disabled",required:!1,type:{name:"boolean"}},onLeaveChannel:{defaultValue:null,description:"",name:"onLeaveChannel",required:!1,type:{name:"() => Promise"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/ChannelList/components/ChannelPreviewAction.tsx#GroupChannelPreviewAction"]={docgenInfo:GroupChannelPreviewAction.__docgenInfo,name:"GroupChannelPreviewAction",path:"src/modules/ChannelList/components/ChannelPreviewAction.tsx#GroupChannelPreviewAction"})}catch(__react_docgen_typescript_loader_error){}var GroupChannelListUIView=__webpack_require__("./src/modules/GroupChannelList/components/GroupChannelListUI/GroupChannelListUIView.tsx"),AddGroupChannelView=__webpack_require__("./src/modules/GroupChannelList/components/AddGroupChannel/AddGroupChannelView.tsx");function AddChannel_slicedToArray(arr,i){return function AddChannel_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function AddChannel_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function AddChannel_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return AddChannel_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AddChannel_arrayLikeToArray(o,minLen)}(arr,i)||function AddChannel_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AddChannel_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function ChannelListUI_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}var ChannelListUI_ChannelListUI=function ChannelListUI(props){var renderHeader=props.renderHeader,renderChannelPreview=props.renderChannelPreview,renderPlaceHolderError=props.renderPlaceHolderError,renderPlaceHolderLoading=props.renderPlaceHolderLoading,renderPlaceHolderEmptyList=props.renderPlaceHolderEmptyList,_useChannelListContex=useChannelListContext(),onThemeChange=_useChannelListContex.onThemeChange,allowProfileEdit=_useChannelListContex.allowProfileEdit,allChannels=_useChannelListContex.allChannels,currentChannel=_useChannelListContex.currentChannel,channelListDispatcher=_useChannelListContex.channelListDispatcher,typingChannels=_useChannelListContex.typingChannels,initialized=_useChannelListContex.initialized,fetchChannelList=_useChannelListContex.fetchChannelList,onProfileEditSuccess=_useChannelListContex.onProfileEditSuccess,_useSendbirdStateCont=Object(useSendbirdStateContext.a)(),stores=_useSendbirdStateCont.stores,config=_useSendbirdStateCont.config,logger=config.logger,_config$isOnline=config.isOnline,isOnline=void 0!==_config$isOnline&&_config$isOnline,sdk=stores.sdkStore.sdk;return react_default.a.createElement(GroupChannelListUIView.a,{renderHeader:renderHeader,renderChannel:function renderListItem(props){var channel=props.item,index=props.index,previewProps={channel:channel,tabIndex:index,isSelected:(null==channel?void 0:channel.url)===(null==currentChannel?void 0:currentChannel.url),isTyping:null==typingChannels?void 0:typingChannels.some((function(_ref){return _ref.url===(null==channel?void 0:channel.url)})),renderChannelAction:function renderChannelAction(props){return react_default.a.createElement(ChannelPreviewAction,props)},onClick:function onClick(){isOnline||null!=sdk&&sdk.isCacheEnabled?(logger.info("ChannelList: Clicked on channel:",channel),channelListDispatcher({type:"SET_CURRENT_CHANNEL",payload:channel})):logger.warning("ChannelList: Inactivated clicking channel item during offline.")},onLeaveChannel:function onLeaveChannel(channel,cb){return function ChannelListUI_asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){ChannelListUI_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){ChannelListUI_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}(ChannelListUI_regeneratorRuntime().mark((function _callee(){var response;return ChannelListUI_regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:if(logger.info("ChannelList: Leaving channel",channel),!channel){_context.next=15;break}return _context.prev=2,_context.next=5,channel.leave();case 5:response=_context.sent,logger.info("ChannelList: Leaving channel success",response),cb&&"function"==typeof cb&&cb(channel,null),channelListDispatcher({type:"LEAVE_CHANNEL_SUCCESS",payload:channel.url}),_context.next=15;break;case 11:_context.prev=11,_context.t0=_context.catch(2),logger.error("ChannelList: Leaving channel failed",_context.t0),cb&&"function"==typeof cb&&cb(channel,_context.t0);case 15:case"end":return _context.stop()}}),_callee,null,[[2,11]])})))()}};return renderChannelPreview?react_default.a.createElement("div",{key:null==channel?void 0:channel.url,onClick:previewProps.onClick},renderChannelPreview(previewProps)):react_default.a.createElement(components_ChannelPreview,_extends({key:null==channel?void 0:channel.url},previewProps))},renderPlaceHolderError:renderPlaceHolderError,renderPlaceHolderLoading:renderPlaceHolderLoading,renderPlaceHolderEmptyList:renderPlaceHolderEmptyList,onChangeTheme:onThemeChange,allowProfileEdit:allowProfileEdit,onUserProfileUpdated:onProfileEditSuccess,channels:allChannels,onLoadMore:fetchChannelList,initialized:initialized,renderAddChannel:function renderAddChannel(){return react_default.a.createElement(components_AddChannel,null)}})},components_ChannelListUI=ChannelListUI_ChannelListUI;try{ChannelListUI_ChannelListUI.displayName="ChannelListUI",ChannelListUI_ChannelListUI.__docgenInfo={description:"",displayName:"ChannelListUI",props:{renderChannelPreview:{defaultValue:null,description:"",name:"renderChannelPreview",required:!1,type:{name:"(props: ChannelPreviewProps) => ReactElement>"}},renderHeader:{defaultValue:null,description:"",name:"renderHeader",required:!1,type:{name:"(props: void) => ReactElement>"}},renderPlaceHolderError:{defaultValue:null,description:"",name:"renderPlaceHolderError",required:!1,type:{name:"(props: void) => ReactElement>"}},renderPlaceHolderLoading:{defaultValue:null,description:"",name:"renderPlaceHolderLoading",required:!1,type:{name:"(props: void) => ReactElement>"}},renderPlaceHolderEmptyList:{defaultValue:null,description:"",name:"renderPlaceHolderEmptyList",required:!1,type:{name:"(props: void) => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/ChannelList/components/ChannelListUI/index.tsx#ChannelListUI"]={docgenInfo:ChannelListUI_ChannelListUI.__docgenInfo,name:"ChannelListUI",path:"src/modules/ChannelList/components/ChannelListUI/index.tsx#ChannelListUI"})}catch(__react_docgen_typescript_loader_error){}var ChannelList_ChannelList=function ChannelList(props){return react_default.a.createElement(ChannelListProvider_ChannelListProvider,{className:null==props?void 0:props.className,disableUserProfile:null==props?void 0:props.disableUserProfile,allowProfileEdit:null==props?void 0:props.allowProfileEdit,onBeforeCreateChannel:null==props?void 0:props.onBeforeCreateChannel,onThemeChange:null==props?void 0:props.onThemeChange,overrideInviteUser:null==props?void 0:props.overrideInviteUser,onProfileEditSuccess:null==props?void 0:props.onProfileEditSuccess,onChannelSelect:null==props?void 0:props.onChannelSelect,sortChannelList:null==props?void 0:props.sortChannelList,queries:null==props?void 0:props.queries,disableAutoSelect:null==props?void 0:props.disableAutoSelect,activeChannelUrl:null==props?void 0:props.activeChannelUrl,isTypingIndicatorEnabled:null==props?void 0:props.isTypingIndicatorEnabled,isMessageReceiptStatusEnabled:null==props?void 0:props.isMessageReceiptStatusEnabled,reconnectOnIdle:null==props?void 0:props.reconnectOnIdle},react_default.a.createElement(components_ChannelListUI,{renderChannelPreview:null==props?void 0:props.renderChannelPreview,renderHeader:null==props?void 0:props.renderHeader,renderPlaceHolderEmptyList:null==props?void 0:props.renderPlaceHolderEmptyList,renderPlaceHolderError:null==props?void 0:props.renderPlaceHolderError,renderPlaceHolderLoading:null==props?void 0:props.renderPlaceHolderLoading}))};__webpack_exports__.a=ChannelList_ChannelList;try{ChannelList_ChannelList.displayName="ChannelList",ChannelList_ChannelList.__docgenInfo={description:"",displayName:"ChannelList",props:{allowProfileEdit:{defaultValue:null,description:"",name:"allowProfileEdit",required:!1,type:{name:"boolean"}},onBeforeCreateChannel:{defaultValue:null,description:"",name:"onBeforeCreateChannel",required:!1,type:{name:"(users: string[]) => GroupChannelCreateParams"}},overrideInviteUser:{defaultValue:null,description:"",name:"overrideInviteUser",required:!1,type:{name:"(params: OverrideInviteUserType) => void"}},onThemeChange:{defaultValue:null,description:"",name:"onThemeChange",required:!1,type:{name:"(theme: string) => void"}},onProfileEditSuccess:{defaultValue:null,description:"",name:"onProfileEditSuccess",required:!1,type:{name:"(user: User) => void"}},onChannelSelect:{defaultValue:null,description:"",name:"onChannelSelect",required:!1,type:{name:"(channel: GroupChannel) => void"}},sortChannelList:{defaultValue:null,description:"",name:"sortChannelList",required:!1,type:{name:"(channels: GroupChannel[]) => GroupChannel[]"}},queries:{defaultValue:null,description:"",name:"queries",required:!1,type:{name:"ChannelListQueries"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string | string[]"}},renderUserProfile:{defaultValue:null,description:"",name:"renderUserProfile",required:!1,type:{name:"(props: RenderUserProfileProps) => ReactElement>"}},disableUserProfile:{defaultValue:null,description:"",name:"disableUserProfile",required:!1,type:{name:"boolean"}},disableAutoSelect:{defaultValue:null,description:"",name:"disableAutoSelect",required:!1,type:{name:"boolean"}},activeChannelUrl:{defaultValue:null,description:"",name:"activeChannelUrl",required:!1,type:{name:"string"}},typingChannels:{defaultValue:null,description:"",name:"typingChannels",required:!1,type:{name:"GroupChannel[]"}},isTypingIndicatorEnabled:{defaultValue:null,description:"",name:"isTypingIndicatorEnabled",required:!1,type:{name:"boolean"}},isMessageReceiptStatusEnabled:{defaultValue:null,description:"",name:"isMessageReceiptStatusEnabled",required:!1,type:{name:"boolean"}},reconnectOnIdle:{defaultValue:null,description:"",name:"reconnectOnIdle",required:!1,type:{name:"boolean"}},renderChannelPreview:{defaultValue:null,description:"",name:"renderChannelPreview",required:!1,type:{name:"(props: ChannelPreviewProps) => ReactElement>"}},renderHeader:{defaultValue:null,description:"",name:"renderHeader",required:!1,type:{name:"(props: void) => ReactElement>"}},renderPlaceHolderError:{defaultValue:null,description:"",name:"renderPlaceHolderError",required:!1,type:{name:"(props: void) => ReactElement>"}},renderPlaceHolderLoading:{defaultValue:null,description:"",name:"renderPlaceHolderLoading",required:!1,type:{name:"(props: void) => ReactElement>"}},renderPlaceHolderEmptyList:{defaultValue:null,description:"",name:"renderPlaceHolderEmptyList",required:!1,type:{name:"(props: void) => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/ChannelList/index.tsx#ChannelList"]={docgenInfo:ChannelList_ChannelList.__docgenInfo,name:"ChannelList",path:"src/modules/ChannelList/index.tsx#ChannelList"})}catch(__react_docgen_typescript_loader_error){}},"./src/modules/ChannelList/stories/index.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"IndependantChannelList",(function(){return IndependantChannelList})),__webpack_require__.d(__webpack_exports__,"CustomChannelPreview",(function(){return CustomChannelPreview})),__webpack_require__.d(__webpack_exports__,"DisableUserProfile",(function(){return DisableUserProfile})),__webpack_require__.d(__webpack_exports__,"RenderUserProfile",(function(){return RenderUserProfile})),__webpack_require__.d(__webpack_exports__,"CustomChannelListHeader",(function(){return CustomChannelListHeader})),__webpack_require__.d(__webpack_exports__,"CustomSort",(function(){return CustomSort})),__webpack_require__.d(__webpack_exports__,"EditProfile",(function(){return EditProfile})),__webpack_require__.d(__webpack_exports__,"OnBeforeCreateChannel",(function(){return OnBeforeCreateChannel})),__webpack_require__.d(__webpack_exports__,"QueryParamsForChannelList",(function(){return QueryParamsForChannelList})),__webpack_require__.d(__webpack_exports__,"preSelectedChannel",(function(){return preSelectedChannel}));__webpack_require__("./node_modules/core-js/modules/es.array.find.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.sort.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js");var react__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/react/index.js"),_lib_Sendbird__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./src/lib/Sendbird.tsx"),_ChannelList__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./src/modules/ChannelList/index.tsx"),_lib_selectors__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./src/lib/selectors.ts"),_lib_SendbirdSdkContext__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./src/lib/SendbirdSdkContext.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/react/jsx-runtime.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||_unsupportedIterableToArray(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||_unsupportedIterableToArray(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);ib.name?1:0})),[channel].concat(_toConsumableArray(otherChannels))}),[]);return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_20__.jsx)(_lib_Sendbird__WEBPACK_IMPORTED_MODULE_16__.a,{appId:appId,userId:userId,children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_20__.jsx)("div",{style:{height:"520px"},children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_20__.jsx)(_ChannelList__WEBPACK_IMPORTED_MODULE_17__.a,{sortChannelList:channelSort})})})};CustomSort.displayName="CustomSort";var EditProfile=function EditProfile(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_20__.jsx)(_lib_Sendbird__WEBPACK_IMPORTED_MODULE_16__.a,{appId:appId,userId:userId,children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_20__.jsx)("div",{style:{height:"520px"},children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_20__.jsx)(_ChannelList__WEBPACK_IMPORTED_MODULE_17__.a,{allowProfileEdit:!0,onThemeChange:function onThemeChange(theme){alert("New theme is: "+theme)},onProfileEditSuccess:function onProfileEditSuccess(user){alert("New nickname is: "+user.nickname)},onChannelSelect:function onChannelSelect(c){console.warn(c)}})})})};EditProfile.displayName="EditProfile";var ChannelWithOnBeforeCreateChannel=function ChannelWithOnBeforeCreateChannel(_ref3){var sdk=_ref3.sdk;return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_20__.jsx)("div",{style:{height:"520px"},children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_20__.jsx)(_ChannelList__WEBPACK_IMPORTED_MODULE_17__.a,{onBeforeCreateChannel:function onBeforeCreateChannel(selectedUsers){if(sdk&&sdk.GroupChannelParams){var params=new sdk.GroupChannelParams;return params.addUserIds(selectedUsers),params.operatorUserIds=[].concat(_toConsumableArray(selectedUsers),[userId]),params.name="custom name",params}}})})};ChannelWithOnBeforeCreateChannel.displayName="ChannelWithOnBeforeCreateChannel";var ConnectedChannelList=Object(_lib_SendbirdSdkContext__WEBPACK_IMPORTED_MODULE_19__.b)(ChannelWithOnBeforeCreateChannel,(function(store){return{sdk:Object(_lib_selectors__WEBPACK_IMPORTED_MODULE_18__.c)(store)}})),OnBeforeCreateChannel=function OnBeforeCreateChannel(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_20__.jsx)(_lib_Sendbird__WEBPACK_IMPORTED_MODULE_16__.a,{appId:appId,userId:userId,children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_20__.jsx)(ConnectedChannelList,{})})};OnBeforeCreateChannel.displayName="OnBeforeCreateChannel";var QueryParamsForChannelList=function QueryParamsForChannelList(){var _useState2=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_15__.useState)(!1),2),query=_useState2[0],setquery=_useState2[1];return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_20__.jsxs)(_lib_Sendbird__WEBPACK_IMPORTED_MODULE_16__.a,{appId:appId,userId:userId,children:[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_20__.jsx)("button",{onClick:function onClick(){setquery(!0)},children:"Click to change query"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_20__.jsx)("div",{style:{height:"520px"},children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_20__.jsx)(_ChannelList__WEBPACK_IMPORTED_MODULE_17__.a,{queries:{channelListQuery:query?{includeEmpty:!0}:null,applicationUserListQuery:{limit:30,metaDataKeyFilter:"areaGuid"}}})})]})};QueryParamsForChannelList.displayName="QueryParamsForChannelList";var preSelectedChannel=function preSelectedChannel(){var defaultChannel="sendbird_group_channel_199019523_b6febec0ad887b774dbe374e7a907841a9d2a61b",defaultQuery={channelListQuery:{limit:20}},_useState4=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_15__.useState)(defaultChannel),2),activeChannelUrl=_useState4[0],setActiveChannelUrl=_useState4[1],_useState6=_slicedToArray(Object(react__WEBPACK_IMPORTED_MODULE_15__.useState)(defaultQuery),2),queries=_useState6[0],setQueries=_useState6[1];return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_20__.jsxs)(_lib_Sendbird__WEBPACK_IMPORTED_MODULE_16__.a,{appId:appId,userId:userId,children:[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_20__.jsxs)("div",{children:[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_20__.jsx)("button",{onClick:function onClick(){setQueries(defaultQuery),setActiveChannelUrl("random_url")},children:"Set invalid URL "}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_20__.jsx)("button",{onClick:function onClick(){setQueries({channelListQuery:{limit:2}}),setActiveChannelUrl(defaultChannel)},children:"Set channel outside list "})]}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_20__.jsx)("div",{style:{height:"520px"},children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_20__.jsx)(_ChannelList__WEBPACK_IMPORTED_MODULE_17__.a,{queries:queries,onChannelSelect:function onChannelSelect(c){console.warn(c)},activeChannelUrl:activeChannelUrl})})]})};preSelectedChannel.displayName="preSelectedChannel",IndependantChannelList.parameters=Object.assign({storySource:{source:"() => (\n \n
\n \n
\n \n)"}},IndependantChannelList.parameters),CustomChannelPreview.parameters=Object.assign({storySource:{source:"() => (\n \n
\n { console.warn(c); }}\n />\n
\n \n)"}},CustomChannelPreview.parameters),DisableUserProfile.parameters=Object.assign({storySource:{source:"() => (\n \n
\n \n
\n \n)"}},DisableUserProfile.parameters),RenderUserProfile.parameters=Object.assign({storySource:{source:"() => (\n \n
\n (\n
{user.userId}
\n )}\n />\n
\n \n)"}},RenderUserProfile.parameters),CustomChannelListHeader.parameters=Object.assign({storySource:{source:"() => (\n \n
\n { console.warn(c); }}\n />\n
\n \n)"}},CustomChannelListHeader.parameters),CustomSort.parameters=Object.assign({storySource:{source:"() => {\n const channelSort = useCallback((channels) => {\n if (channels.length === 0 ) {\n return channels;\n }\n\n const channel = channels.find(c => c.name === 'hidden 3');\n\n if (!channel) {\n return channels;\n }\n\n const otherChannels = channels.filter(c => c.url !== channel.url);\n\n otherChannels.sort(function(a, b){\n if(a.name < b.name) { return -1; }\n if(a.name > b.name) { return 1; }\n return 0;\n });\n\n return [channel, ...otherChannels];\n }, []);\n return (\n \n
\n \n
\n \n )}"}},CustomSort.parameters),EditProfile.parameters=Object.assign({storySource:{source:"() => (\n \n
\n {\n alert(`New theme is: ${theme}`);\n }}\n onProfileEditSuccess={(user) => {\n alert(`New nickname is: ${user.nickname}`);\n }}\n onChannelSelect={(c) => { console.warn(c); }}\n />\n
\n \n)"}},EditProfile.parameters),OnBeforeCreateChannel.parameters=Object.assign({storySource:{source:"() => (\n \n \n \n)"}},OnBeforeCreateChannel.parameters),QueryParamsForChannelList.parameters=Object.assign({storySource:{source:"() => {\n const [query, setquery] = useState(false);\n return (\n \n \n
\n \n
\n \n );\n}"}},QueryParamsForChannelList.parameters),preSelectedChannel.parameters=Object.assign({storySource:{source:"() => {\n const defaultChannel = 'sendbird_group_channel_199019523_b6febec0ad887b774dbe374e7a907841a9d2a61b';\n const defaultQuery = {\n channelListQuery: {\n limit: 20,\n },\n };\n const [activeChannelUrl, setActiveChannelUrl] = useState(defaultChannel);\n const [queries, setQueries] = useState(defaultQuery);\n return (\n \n
\n {\n setQueries(defaultQuery)\n setActiveChannelUrl('random_url');\n }}\n >Set invalid URL \n {\n setQueries({\n channelListQuery: {\n limit: 2,\n }\n });\n setActiveChannelUrl(defaultChannel);\n }}\n >Set channel outside list \n
\n
\n { console.warn(c); }}\n activeChannelUrl={activeChannelUrl}\n />\n
\n\n \n );\n}"}},preSelectedChannel.parameters),IndependantChannelList.__docgenInfo={description:"",methods:[],displayName:"IndependantChannelList"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/ChannelList/stories/index.stories.js"]={name:"IndependantChannelList",docgenInfo:IndependantChannelList.__docgenInfo,path:"src/modules/ChannelList/stories/index.stories.js"}),CustomChannelPreview.__docgenInfo={description:"",methods:[],displayName:"CustomChannelPreview"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/ChannelList/stories/index.stories.js"]={name:"CustomChannelPreview",docgenInfo:CustomChannelPreview.__docgenInfo,path:"src/modules/ChannelList/stories/index.stories.js"}),DisableUserProfile.__docgenInfo={description:"",methods:[],displayName:"DisableUserProfile"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/ChannelList/stories/index.stories.js"]={name:"DisableUserProfile",docgenInfo:DisableUserProfile.__docgenInfo,path:"src/modules/ChannelList/stories/index.stories.js"}),RenderUserProfile.__docgenInfo={description:"",methods:[],displayName:"RenderUserProfile"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/ChannelList/stories/index.stories.js"]={name:"RenderUserProfile",docgenInfo:RenderUserProfile.__docgenInfo,path:"src/modules/ChannelList/stories/index.stories.js"}),CustomChannelListHeader.__docgenInfo={description:"",methods:[],displayName:"CustomChannelListHeader"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/ChannelList/stories/index.stories.js"]={name:"CustomChannelListHeader",docgenInfo:CustomChannelListHeader.__docgenInfo,path:"src/modules/ChannelList/stories/index.stories.js"}),CustomSort.__docgenInfo={description:"",methods:[],displayName:"CustomSort"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/ChannelList/stories/index.stories.js"]={name:"CustomSort",docgenInfo:CustomSort.__docgenInfo,path:"src/modules/ChannelList/stories/index.stories.js"}),EditProfile.__docgenInfo={description:"",methods:[],displayName:"EditProfile"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/ChannelList/stories/index.stories.js"]={name:"EditProfile",docgenInfo:EditProfile.__docgenInfo,path:"src/modules/ChannelList/stories/index.stories.js"}),OnBeforeCreateChannel.__docgenInfo={description:"",methods:[],displayName:"OnBeforeCreateChannel"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/ChannelList/stories/index.stories.js"]={name:"OnBeforeCreateChannel",docgenInfo:OnBeforeCreateChannel.__docgenInfo,path:"src/modules/ChannelList/stories/index.stories.js"}),QueryParamsForChannelList.__docgenInfo={description:"",methods:[],displayName:"QueryParamsForChannelList"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/ChannelList/stories/index.stories.js"]={name:"QueryParamsForChannelList",docgenInfo:QueryParamsForChannelList.__docgenInfo,path:"src/modules/ChannelList/stories/index.stories.js"}),preSelectedChannel.__docgenInfo={description:"",methods:[],displayName:"preSelectedChannel"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/ChannelList/stories/index.stories.js"]={name:"preSelectedChannel",docgenInfo:preSelectedChannel.__docgenInfo,path:"src/modules/ChannelList/stories/index.stories.js"})},"./src/modules/ChannelSettings/components/ChannelProfile/channel-profile.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/ChannelSettings/components/ChannelProfile/channel-profile.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/ChannelSettings/components/ChannelSettingsUI/channel-settings-ui.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/ChannelSettings/components/ChannelSettingsUI/channel-settings-ui.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/ChannelSettings/components/LeaveChannel/leave-channel.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/ChannelSettings/components/LeaveChannel/leave-channel.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/ChannelSettings/components/ModerationPanel/admin-panel.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/ChannelSettings/components/ModerationPanel/admin-panel.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/ChannelSettings/components/UserListItem/user-list-item.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/ChannelSettings/components/UserListItem/user-list-item.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/ChannelSettings/components/UserPanel/user-panel.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/ChannelSettings/components/UserPanel/user-panel.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/ChannelSettings/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),useSendbirdStateContext=(__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./src/modules/ChannelSettings/components/ChannelSettingsUI/channel-settings-ui.scss"),__webpack_require__("./src/hooks/useSendbirdStateContext.tsx")),UserProfileContext=(__webpack_require__("./node_modules/core-js/modules/es.symbol.async-iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.math.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.json.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./src/lib/UserProfileContext.tsx")),uuid=__webpack_require__("./src/utils/uuid.ts");__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _regeneratorRuntime(){_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw new Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;rarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function ChannelSettingsProvider_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function ChannelSettingsProvider_asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){ChannelSettingsProvider_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){ChannelSettingsProvider_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}function ChannelSettingsProvider_slicedToArray(arr,i){return function ChannelSettingsProvider_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function ChannelSettingsProvider_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function ChannelSettingsProvider_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return ChannelSettingsProvider_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ChannelSettingsProvider_arrayLikeToArray(o,minLen)}(arr,i)||function ChannelSettingsProvider_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ChannelSettingsProvider_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i void"}},onLeaveChannel:{defaultValue:null,description:"",name:"onLeaveChannel",required:!1,type:{name:"() => void"}},overrideInviteUser:{defaultValue:null,description:"",name:"overrideInviteUser",required:!1,type:{name:"(params: OverrideInviteUserType) => void"}},onChannelModified:{defaultValue:null,description:"",name:"onChannelModified",required:!1,type:{name:"(channel: GroupChannel) => void"}},onBeforeUpdateChannel:{defaultValue:null,description:"",name:"onBeforeUpdateChannel",required:!1,type:{name:"(currentTitle: string, currentImg: File, data: string) => GroupChannelUpdateParams"}},queries:{defaultValue:null,description:"",name:"queries",required:!1,type:{name:"ChannelSettingsQueries"}},renderUserProfile:{defaultValue:null,description:"",name:"renderUserProfile",required:!1,type:{name:"(props: RenderUserProfileProps) => ReactElement>"}},disableUserProfile:{defaultValue:null,description:"",name:"disableUserProfile",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/ChannelSettings/context/ChannelSettingsProvider.tsx#ChannelSettingsProvider"]={docgenInfo:ChannelSettingsProvider_ChannelSettingsProvider.__docgenInfo,name:"ChannelSettingsProvider",path:"src/modules/ChannelSettings/context/ChannelSettingsProvider.tsx#ChannelSettingsProvider"})}catch(__react_docgen_typescript_loader_error){}var LocalizationContext=__webpack_require__("./src/lib/LocalizationContext.tsx"),Label=__webpack_require__("./src/ui/Label/index.tsx"),IconButton=__webpack_require__("./src/ui/IconButton/index.tsx"),Icon=__webpack_require__("./src/ui/Icon/index.tsx"),ChannelSettingsHeader_ChannelSettingsHeader=function ChannelSettingsHeader(_ref){var onCloseClick=_ref.onCloseClick,stringSet=Object(LocalizationContext.c)().stringSet,logger=Object(useSendbirdStateContext.a)().config.logger;return react_default.a.createElement("div",{className:"sendbird-channel-settings__header"},react_default.a.createElement(Label.d,{type:Label.c.H_2,color:Label.a.ONBACKGROUND_1},stringSet.CHANNEL_SETTING__HEADER__TITLE),react_default.a.createElement("div",{className:"sendbird-channel-settings__header-icon"},react_default.a.createElement(IconButton.a,{width:"32px",height:"32px",onClick:function onClick(e){logger.info("ChannelSettings: Click close"),onCloseClick(e)}},react_default.a.createElement(Icon.c,{className:"sendbird-channel-settings__close-icon",type:Icon.b.CLOSE,height:"22px",width:"22px"}))))};try{ChannelSettingsHeader_ChannelSettingsHeader.displayName="ChannelSettingsHeader",ChannelSettingsHeader_ChannelSettingsHeader.__docgenInfo={description:"",displayName:"ChannelSettingsHeader",props:{onCloseClick:{defaultValue:null,description:"",name:"onCloseClick",required:!1,type:{name:"(e: MouseEvent) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/ChannelSettings/components/ChannelSettingsUI/ChannelSettingsHeader.tsx#ChannelSettingsHeader"]={docgenInfo:ChannelSettingsHeader_ChannelSettingsHeader.__docgenInfo,name:"ChannelSettingsHeader",path:"src/modules/ChannelSettings/components/ChannelSettingsUI/ChannelSettingsHeader.tsx#ChannelSettingsHeader"})}catch(__react_docgen_typescript_loader_error){}var PlaceHolder=__webpack_require__("./src/ui/PlaceHolder/index.tsx"),ChannelAvatar=(__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./src/modules/ChannelSettings/components/ChannelProfile/channel-profile.scss"),__webpack_require__("./src/ui/ChannelAvatar/index.tsx")),TextButton=__webpack_require__("./src/ui/TextButton/index.tsx"),Modal=(__webpack_require__("./node_modules/core-js/modules/web.url.js"),__webpack_require__("./src/ui/Modal/index.tsx")),Input=__webpack_require__("./src/ui/Input/index.tsx"),Avatar=__webpack_require__("./src/ui/Avatar/index.tsx"),Button=__webpack_require__("./src/ui/Button/index.tsx");function EditDetailsModal_slicedToArray(arr,i){return function EditDetailsModal_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function EditDetailsModal_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function EditDetailsModal_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return EditDetailsModal_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EditDetailsModal_arrayLikeToArray(o,minLen)}(arr,i)||function EditDetailsModal_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function EditDetailsModal_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i void"}},onCancel:{defaultValue:null,description:"",name:"onCancel",required:!0,type:{name:"() => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/ChannelSettings/components/EditDetailsModal/index.tsx#EditDetailsModal"]={docgenInfo:EditDetailsModal.__docgenInfo,name:"EditDetailsModal",path:"src/modules/ChannelSettings/components/EditDetailsModal/index.tsx#EditDetailsModal"})}catch(__react_docgen_typescript_loader_error){}function ChannelProfile_slicedToArray(arr,i){return function ChannelProfile_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function ChannelProfile_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function ChannelProfile_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return ChannelProfile_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ChannelProfile_arrayLikeToArray(o,minLen)}(arr,i)||function ChannelProfile_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ChannelProfile_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/ChannelSettings/components/UserListItem/index.tsx#UserListItem"]={docgenInfo:UserListItem_UserListItem.__docgenInfo,name:"UserListItem",path:"src/modules/ChannelSettings/components/UserListItem/index.tsx#UserListItem"})}catch(__react_docgen_typescript_loader_error){}var ui_UserListItem=__webpack_require__("./src/ui/UserListItem/index.tsx"),useOnScrollReachedEndDetector=__webpack_require__("./src/hooks/useOnScrollReachedEndDetector/index.ts");function OperatorsModal_typeof(o){return OperatorsModal_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},OperatorsModal_typeof(o)}function OperatorsModal_regeneratorRuntime(){OperatorsModal_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==OperatorsModal_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw new Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function OperatorsModal_toConsumableArray(arr){return function OperatorsModal_arrayWithoutHoles(arr){if(Array.isArray(arr))return OperatorsModal_arrayLikeToArray(arr)}(arr)||function OperatorsModal_iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||OperatorsModal_unsupportedIterableToArray(arr)||function OperatorsModal_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function OperatorsModal_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function OperatorsModal_slicedToArray(arr,i){return function OperatorsModal_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function OperatorsModal_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||OperatorsModal_unsupportedIterableToArray(arr,i)||function OperatorsModal_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function OperatorsModal_unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return OperatorsModal_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?OperatorsModal_arrayLikeToArray(o,minLen):void 0}}function OperatorsModal_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/ChannelSettings/components/ModerationPanel/OperatorsModal.tsx#OperatorsModal"]={docgenInfo:OperatorsModal.__docgenInfo,name:"OperatorsModal",path:"src/modules/ChannelSettings/components/ModerationPanel/OperatorsModal.tsx#OperatorsModal"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js");var _bundle_17fdda58=__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-17fdda58.js");function AddOperatorsModal_typeof(o){return AddOperatorsModal_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},AddOperatorsModal_typeof(o)}function AddOperatorsModal_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function AddOperatorsModal_objectSpread(e){for(var r=1;r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function AddOperatorsModal_toConsumableArray(arr){return function AddOperatorsModal_arrayWithoutHoles(arr){if(Array.isArray(arr))return AddOperatorsModal_arrayLikeToArray(arr)}(arr)||function AddOperatorsModal_iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||AddOperatorsModal_unsupportedIterableToArray(arr)||function AddOperatorsModal_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AddOperatorsModal_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function AddOperatorsModal_slicedToArray(arr,i){return function AddOperatorsModal_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function AddOperatorsModal_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||AddOperatorsModal_unsupportedIterableToArray(arr,i)||function AddOperatorsModal_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AddOperatorsModal_unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return AddOperatorsModal_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?AddOperatorsModal_arrayLikeToArray(o,minLen):void 0}}function AddOperatorsModal_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0?Label.a.PRIMARY:Label.a.ONBACKGROUND_3,type:Label.c.CAPTION_1},"".concat(selectedCount," ").concat(stringSet.MODAL__INVITE_MEMBER__SELECTED)),react_default.a.createElement("div",{className:"sendbird-more-members__popup-scroll",onScroll:Object(useOnScrollReachedEndDetector.a)({onReachedBottom:(_onReachedBottom=function AddOperatorsModal_asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){AddOperatorsModal_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){AddOperatorsModal_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}(AddOperatorsModal_regeneratorRuntime().mark((function _callee(){return AddOperatorsModal_regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:memberQuery.hasNext&&memberQuery.next().then((function(o){setMembers([].concat(AddOperatorsModal_toConsumableArray(members),AddOperatorsModal_toConsumableArray(o)))}));case 2:case"end":return _context.stop()}}),_callee)}))),function onReachedBottom(){return _onReachedBottom.apply(this,arguments)})})},members.map((function(member){return react_default.a.createElement(ui_UserListItem.a,{checkBox:!0,checked:selectedMembers[member.userId],isOperator:"operator"===(null==member?void 0:member.role),disabled:"operator"===(null==member?void 0:member.role),onChange:function onChange(event){var modifiedSelectedMembers=AddOperatorsModal_objectSpread(AddOperatorsModal_objectSpread({},selectedMembers),{},AddOperatorsModal_defineProperty({},event.target.id,event.target.checked));event.target.checked||delete modifiedSelectedMembers[event.target.id],setSelectedMembers(modifiedSelectedMembers)},user:member,key:member.userId})})))))}try{AddOperatorsModal.displayName="AddOperatorsModal",AddOperatorsModal.__docgenInfo={description:"",displayName:"AddOperatorsModal",props:{onCancel:{defaultValue:null,description:"",name:"onCancel",required:!0,type:{name:"() => void"}},onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!0,type:{name:"(members: string[]) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/ChannelSettings/components/ModerationPanel/AddOperatorsModal.tsx#AddOperatorsModal"]={docgenInfo:AddOperatorsModal.__docgenInfo,name:"AddOperatorsModal",path:"src/modules/ChannelSettings/components/ModerationPanel/AddOperatorsModal.tsx#AddOperatorsModal"})}catch(__react_docgen_typescript_loader_error){}function OperatorList_slicedToArray(arr,i){return function OperatorList_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function OperatorList_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function OperatorList_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return OperatorList_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OperatorList_arrayLikeToArray(o,minLen)}(arr,i)||function OperatorList_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function OperatorList_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function MembersModal_toConsumableArray(arr){return function MembersModal_arrayWithoutHoles(arr){if(Array.isArray(arr))return MembersModal_arrayLikeToArray(arr)}(arr)||function MembersModal_iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||MembersModal_unsupportedIterableToArray(arr)||function MembersModal_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function MembersModal_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function MembersModal_slicedToArray(arr,i){return function MembersModal_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function MembersModal_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||MembersModal_unsupportedIterableToArray(arr,i)||function MembersModal_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function MembersModal_unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return MembersModal_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?MembersModal_arrayLikeToArray(o,minLen):void 0}}function MembersModal_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/ChannelSettings/components/ModerationPanel/MembersModal.tsx#MembersModal"]={docgenInfo:MembersModal.__docgenInfo,name:"MembersModal",path:"src/modules/ChannelSettings/components/ModerationPanel/MembersModal.tsx#MembersModal"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./node_modules/core-js/modules/es.object.assign.js");function InviteUsersModal_typeof(o){return InviteUsersModal_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},InviteUsersModal_typeof(o)}function InviteUsersModal_defineProperty(obj,key,value){return(key=function InviteUsersModal_toPropertyKey(t){var i=function InviteUsersModal_toPrimitive(t,r){if("object"!=InviteUsersModal_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=InviteUsersModal_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==InviteUsersModal_typeof(i)?i:String(i)}(key))in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function InviteUsersModal_toConsumableArray(arr){return function InviteUsersModal_arrayWithoutHoles(arr){if(Array.isArray(arr))return InviteUsersModal_arrayLikeToArray(arr)}(arr)||function InviteUsersModal_iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||InviteUsersModal_unsupportedIterableToArray(arr)||function InviteUsersModal_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function InviteUsersModal_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function InviteUsersModal_asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){InviteUsersModal_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){InviteUsersModal_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}function InviteUsersModal_slicedToArray(arr,i){return function InviteUsersModal_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function InviteUsersModal_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||InviteUsersModal_unsupportedIterableToArray(arr,i)||function InviteUsersModal_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function InviteUsersModal_unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return InviteUsersModal_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?InviteUsersModal_arrayLikeToArray(o,minLen):void 0}}function InviteUsersModal_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i void"}},onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!0,type:{name:"(userIds: string[]) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/ChannelSettings/components/ModerationPanel/InviteUsersModal.tsx#InviteUsersModal"]={docgenInfo:InviteUsersModal.__docgenInfo,name:"InviteUsersModal",path:"src/modules/ChannelSettings/components/ModerationPanel/InviteUsersModal.tsx#InviteUsersModal"})}catch(__react_docgen_typescript_loader_error){}function MemberList_slicedToArray(arr,i){return function MemberList_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function MemberList_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function MemberList_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return MemberList_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return MemberList_arrayLikeToArray(o,minLen)}(arr,i)||function MemberList_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function MemberList_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function BannedUsersModal_toConsumableArray(arr){return function BannedUsersModal_arrayWithoutHoles(arr){if(Array.isArray(arr))return BannedUsersModal_arrayLikeToArray(arr)}(arr)||function BannedUsersModal_iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||BannedUsersModal_unsupportedIterableToArray(arr)||function BannedUsersModal_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function BannedUsersModal_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function BannedUsersModal_slicedToArray(arr,i){return function BannedUsersModal_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function BannedUsersModal_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||BannedUsersModal_unsupportedIterableToArray(arr,i)||function BannedUsersModal_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function BannedUsersModal_unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return BannedUsersModal_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?BannedUsersModal_arrayLikeToArray(o,minLen):void 0}}function BannedUsersModal_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/ChannelSettings/components/ModerationPanel/BannedUsersModal.tsx#BannedUsersModal"]={docgenInfo:BannedUsersModal.__docgenInfo,name:"BannedUsersModal",path:"src/modules/ChannelSettings/components/ModerationPanel/BannedUsersModal.tsx#BannedUsersModal"})}catch(__react_docgen_typescript_loader_error){}function BannedUserList_slicedToArray(arr,i){return function BannedUserList_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function BannedUserList_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function BannedUserList_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return BannedUserList_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return BannedUserList_arrayLikeToArray(o,minLen)}(arr,i)||function BannedUserList_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function BannedUserList_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function MutedMembersModal_toConsumableArray(arr){return function MutedMembersModal_arrayWithoutHoles(arr){if(Array.isArray(arr))return MutedMembersModal_arrayLikeToArray(arr)}(arr)||function MutedMembersModal_iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||MutedMembersModal_unsupportedIterableToArray(arr)||function MutedMembersModal_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function MutedMembersModal_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function MutedMembersModal_slicedToArray(arr,i){return function MutedMembersModal_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function MutedMembersModal_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||MutedMembersModal_unsupportedIterableToArray(arr,i)||function MutedMembersModal_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function MutedMembersModal_unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return MutedMembersModal_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?MutedMembersModal_arrayLikeToArray(o,minLen):void 0}}function MutedMembersModal_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/ChannelSettings/components/ModerationPanel/MutedMembersModal.tsx#MutedMembersModal"]={docgenInfo:MutedMembersModal.__docgenInfo,name:"MutedMembersModal",path:"src/modules/ChannelSettings/components/ModerationPanel/MutedMembersModal.tsx#MutedMembersModal"})}catch(__react_docgen_typescript_loader_error){}function MutedMemberList_slicedToArray(arr,i){return function MutedMemberList_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function MutedMemberList_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function MutedMemberList_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return MutedMemberList_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return MutedMemberList_arrayLikeToArray(o,minLen)}(arr,i)||function MutedMemberList_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function MutedMemberList_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i999?"".concat((Math.abs(num)/1e3).toFixed(1),"K"):num};function AdminPannel(){var _useState2=ModerationPanel_slicedToArray(Object(react.useState)(!1),2),frozen=_useState2[0],setFrozen=_useState2[1],stringSet=Object(react.useContext)(LocalizationContext.a).stringSet,channel=ChannelSettingsProvider_useChannelSettingsContext().channel;return Object(react.useEffect)((function(){setFrozen(null==channel?void 0:channel.isFrozen)}),[channel]),react_default.a.createElement(Accordion.a,{className:"sendbird-channel-settings__operator"},react_default.a.createElement(Accordion.b,{className:"sendbird-channel-settings__operators-list",id:"operators",renderTitle:function renderTitle(){return react_default.a.createElement(react_default.a.Fragment,null,react_default.a.createElement(Icon.c,{type:Icon.b.OPERATOR,fillColor:Icon.a.PRIMARY,width:24,height:24,className:"sendbird-channel-settings__accordion-icon"}),react_default.a.createElement(Label.d,{type:Label.c.SUBTITLE_1,color:Label.a.ONBACKGROUND_1},stringSet.CHANNEL_SETTING__OPERATORS__TITLE))},renderContent:function renderContent(){return react_default.a.createElement(ModerationPanel_OperatorList,null)}}),react_default.a.createElement(Accordion.b,{className:"sendbird-channel-settings__members-list",id:"members",renderTitle:function renderTitle(){return react_default.a.createElement(react_default.a.Fragment,null,react_default.a.createElement(Icon.c,{type:Icon.b.MEMBERS,fillColor:Icon.a.PRIMARY,width:24,height:24,className:"sendbird-channel-settings__accordion-icon"}),react_default.a.createElement(Label.d,{type:Label.c.SUBTITLE_1,color:Label.a.ONBACKGROUND_1},stringSet.CHANNEL_SETTING__MEMBERS__TITLE),react_default.a.createElement(Badge.a,{count:kFormatter(null==channel?void 0:channel.memberCount)}))},renderContent:function renderContent(){return react_default.a.createElement(ModerationPanel_MemberList,null)}}),!(null!=channel&&channel.isBroadcast)&&react_default.a.createElement(Accordion.b,{id:"mutedMembers",className:"sendbird-channel-settings__muted-members-list",renderTitle:function renderTitle(){return react_default.a.createElement(react_default.a.Fragment,null,react_default.a.createElement(Icon.c,{type:Icon.b.MUTE,fillColor:Icon.a.PRIMARY,width:24,height:24,className:"sendbird-channel-settings__accordion-icon"}),react_default.a.createElement(Label.d,{type:Label.c.SUBTITLE_1,color:Label.a.ONBACKGROUND_1},stringSet.CHANNEL_SETTING__MUTED_MEMBERS__TITLE))},renderContent:function renderContent(){return react_default.a.createElement(ModerationPanel_MutedMemberList,null)}}),react_default.a.createElement(Accordion.b,{className:"sendbird-channel-settings__banned-members-list",id:"bannedUsers",renderTitle:function renderTitle(){return react_default.a.createElement(react_default.a.Fragment,null,react_default.a.createElement(Icon.c,{type:Icon.b.BAN,fillColor:Icon.a.PRIMARY,width:24,height:24,className:"sendbird-channel-settings__accordion-icon"}),react_default.a.createElement(Label.d,{type:Label.c.SUBTITLE_1,color:Label.a.ONBACKGROUND_1},stringSet.CHANNEL_SETTING__BANNED_MEMBERS__TITLE))},renderContent:function renderContent(){return react_default.a.createElement(BannedUserList,null)}}),!(null!=channel&&channel.isBroadcast)&&react_default.a.createElement("div",{className:"sendbird-channel-settings__freeze"},react_default.a.createElement(Icon.c,{type:Icon.b.FREEZE,fillColor:Icon.a.PRIMARY,width:24,height:24,className:"sendbird-channel-settings__accordion-icon"}),react_default.a.createElement(Label.d,{type:Label.c.SUBTITLE_1,color:Label.a.ONBACKGROUND_1},stringSet.CHANNEL_SETTING__FREEZE_CHANNEL),react_default.a.createElement(Toggle.a,{className:"sendbird-channel-settings__frozen-icon",checked:frozen,onChange:function onChange(){frozen?null==channel||channel.unfreeze().then((function(){setFrozen((function(prev){return!prev}))})):null==channel||channel.freeze().then((function(){setFrozen((function(prev){return!prev}))}))}})))}__webpack_require__("./src/modules/ChannelSettings/components/LeaveChannel/leave-channel.scss");var MediaQueryContext=__webpack_require__("./src/lib/MediaQueryContext.tsx"),LeaveChannel_LeaveChannel=function LeaveChannel(props){var _state$config,_state$config2,_props$onSubmit=props.onSubmit,_onSubmit=void 0===_props$onSubmit?utils.b:_props$onSubmit,_props$onCancel=props.onCancel,onCancel=void 0===_props$onCancel?utils.b:_props$onCancel,_useChannelSettingsCo=ChannelSettingsProvider_useChannelSettingsContext(),channel=_useChannelSettingsCo.channel,onLeaveChannel=_useChannelSettingsCo.onLeaveChannel,stringSet=Object(LocalizationContext.c)().stringSet,state=Object(useSendbirdStateContext.a)(),logger=null==state||null===(_state$config=state.config)||void 0===_state$config?void 0:_state$config.logger,isOnline=null==state||null===(_state$config2=state.config)||void 0===_state$config2?void 0:_state$config2.isOnline;return Object(MediaQueryContext.b)().isMobile?react_default.a.createElement(Modal.b,{className:"sendbird-channel-settings__leave--mobile",titleText:function getChannelName(channel){return null!=channel&&channel.name&&"Group Channel"!==(null==channel?void 0:channel.name)?channel.name:"Group Channel"!==(null==channel?void 0:channel.name)&&null!=channel&&channel.name?stringSet.NO_TITLE:((null==channel?void 0:channel.members)||[]).map((function(member){return member.nickname||stringSet.NO_NAME})).join(", ")}(channel),hideFooter:!0,isCloseOnClickOutside:!0,onCancel:onCancel},react_default.a.createElement(TextButton.a,{onClick:function onClick(){logger.info("ChannelSettings: Leaving channel",channel),null==channel||channel.leave().then((function(){logger.info("ChannelSettings: Leaving channel successful!",channel),onLeaveChannel()}))},className:"sendbird-channel-settings__leave-label--mobile"},react_default.a.createElement(Label.d,{type:Label.c.SUBTITLE_1,color:Label.a.ONBACKGROUND_1},stringSet.CHANNEL_PREVIEW_MOBILE_LEAVE))):react_default.a.createElement(Modal.b,{isFullScreenOnMobile:!0,disabled:!isOnline,onCancel:onCancel,onSubmit:function onSubmit(){logger.info("ChannelSettings: Leaving channel",channel),null==channel||channel.leave().then((function(){logger.info("ChannelSettings: Leaving channel successful!",channel),onLeaveChannel?onLeaveChannel():_onSubmit()}))},submitText:stringSet.MODAL__LEAVE_CHANNEL__FOOTER,titleText:stringSet.MODAL__LEAVE_CHANNEL__TITLE})},components_LeaveChannel=LeaveChannel_LeaveChannel;try{LeaveChannel_LeaveChannel.displayName="LeaveChannel",LeaveChannel_LeaveChannel.__docgenInfo={description:"",displayName:"LeaveChannel",props:{onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!0,type:{name:"() => void"}},onCancel:{defaultValue:null,description:"",name:"onCancel",required:!0,type:{name:"() => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/ChannelSettings/components/LeaveChannel/index.tsx#LeaveChannel"]={docgenInfo:LeaveChannel_LeaveChannel.__docgenInfo,name:"LeaveChannel",path:"src/modules/ChannelSettings/components/LeaveChannel/index.tsx#LeaveChannel"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./src/modules/ChannelSettings/components/UserPanel/user-panel.scss");function UserPanel_slicedToArray(arr,i){return function UserPanel_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function UserPanel_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function UserPanel_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return UserPanel_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UserPanel_arrayLikeToArray(o,minLen)}(arr,i)||function UserPanel_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function UserPanel_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i999?"".concat((Math.abs(num)/1e3).toFixed(1),"K"):num},UserPanel_UserPanel=function UserPanel(){var stringSet=Object(react.useContext)(LocalizationContext.a).stringSet,_useState2=UserPanel_slicedToArray(Object(react.useState)(!1),2),showAccordion=_useState2[0],setShowAccordion=_useState2[1],channel=ChannelSettingsProvider_useChannelSettingsContext().channel;return react_default.a.createElement("div",{className:"sendbird-channel-settings__user-panel"},react_default.a.createElement("div",{className:["sendbird-channel-settings__panel-item","sendbird-channel-settings__members"].join(" "),role:"switch","aria-checked":showAccordion,onKeyDown:function onKeyDown(){return setShowAccordion(!showAccordion)},onClick:function onClick(){return setShowAccordion(!showAccordion)},tabIndex:0},react_default.a.createElement(Icon.c,{className:"sendbird-channel-settings__panel-icon-left",type:Icon.b.MEMBERS,fillColor:Icon.a.PRIMARY,height:"24px",width:"24px"}),react_default.a.createElement(Label.d,{type:Label.c.SUBTITLE_1,color:Label.a.ONBACKGROUND_1},stringSet.CHANNEL_SETTING__MEMBERS__TITLE,react_default.a.createElement(Badge.a,{className:"sendbird-channel-settings__badge",count:UserPanel_kFormatter(null==channel?void 0:channel.memberCount)})),react_default.a.createElement(Icon.c,{className:["sendbird-channel-settings__panel-icon-right","sendbird-channel-settings__panel-icon--chevron",showAccordion?"sendbird-channel-settings__panel-icon--open":""].join(" "),type:Icon.b.CHEVRON_RIGHT,height:"24px",width:"24px"})),showAccordion&&react_default.a.createElement(ModerationPanel_MemberList,null))},components_UserPanel=UserPanel_UserPanel;try{UserPanel_UserPanel.displayName="UserPanel",UserPanel_UserPanel.__docgenInfo={description:"",displayName:"UserPanel",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/ChannelSettings/components/UserPanel/index.tsx#UserPanel"]={docgenInfo:UserPanel_UserPanel.__docgenInfo,name:"UserPanel",path:"src/modules/ChannelSettings/components/UserPanel/index.tsx#UserPanel"})}catch(__react_docgen_typescript_loader_error){}function ChannelSettingsUI_slicedToArray(arr,i){return function ChannelSettingsUI_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function ChannelSettingsUI_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function ChannelSettingsUI_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return ChannelSettingsUI_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ChannelSettingsUI_arrayLikeToArray(o,minLen)}(arr,i)||function ChannelSettingsUI_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ChannelSettingsUI_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i "},description:"",name:"renderHeader",required:!1,type:{name:"(props: ChannelSettingsHeaderProps) => ReactElement>"}},renderChannelProfile:{defaultValue:null,description:"",name:"renderChannelProfile",required:!1,type:{name:"() => ReactElement>"}},renderModerationPanel:{defaultValue:null,description:"",name:"renderModerationPanel",required:!1,type:{name:"() => ReactElement>"}},renderLeaveChannel:{defaultValue:null,description:"",name:"renderLeaveChannel",required:!1,type:{name:"() => ReactElement>"}},renderPlaceholderError:{defaultValue:null,description:"",name:"renderPlaceholderError",required:!1,type:{name:"() => ReactElement>"}},renderPlaceholderLoading:{defaultValue:null,description:"",name:"renderPlaceholderLoading",required:!1,type:{name:"() => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/ChannelSettings/components/ChannelSettingsUI/index.tsx#ChannelSettingsUI"]={docgenInfo:ChannelSettingsUI_ChannelSettingsUI.__docgenInfo,name:"ChannelSettingsUI",path:"src/modules/ChannelSettings/components/ChannelSettingsUI/index.tsx#ChannelSettingsUI"})}catch(__react_docgen_typescript_loader_error){}var ChannelSettings_ChannelSettings=function ChannelSettings(props){return react_default.a.createElement(ChannelSettingsProvider_ChannelSettingsProvider,{overrideInviteUser:null==props?void 0:props.overrideInviteUser,channelUrl:props.channelUrl,onCloseClick:null==props?void 0:props.onCloseClick,onLeaveChannel:null==props?void 0:props.onLeaveChannel,onChannelModified:null==props?void 0:props.onChannelModified,onBeforeUpdateChannel:null==props?void 0:props.onBeforeUpdateChannel,queries:null==props?void 0:props.queries,className:null==props?void 0:props.className,disableUserProfile:null==props?void 0:props.disableUserProfile,renderUserProfile:null==props?void 0:props.renderUserProfile},react_default.a.createElement(components_ChannelSettingsUI,{renderPlaceholderError:null==props?void 0:props.renderPlaceholderError,renderChannelProfile:null==props?void 0:props.renderChannelProfile,renderModerationPanel:null==props?void 0:props.renderModerationPanel,renderLeaveChannel:null==props?void 0:props.renderLeaveChannel}))};__webpack_exports__.a=ChannelSettings_ChannelSettings;try{ChannelSettings_ChannelSettings.displayName="ChannelSettings",ChannelSettings_ChannelSettings.__docgenInfo={description:"",displayName:"ChannelSettings",props:{renderHeader:{defaultValue:null,description:"",name:"renderHeader",required:!1,type:{name:"(props: ChannelSettingsHeaderProps) => ReactElement>"}},renderChannelProfile:{defaultValue:null,description:"",name:"renderChannelProfile",required:!1,type:{name:"() => ReactElement>"}},renderModerationPanel:{defaultValue:null,description:"",name:"renderModerationPanel",required:!1,type:{name:"() => ReactElement>"}},renderLeaveChannel:{defaultValue:null,description:"",name:"renderLeaveChannel",required:!1,type:{name:"() => ReactElement>"}},renderPlaceholderError:{defaultValue:null,description:"",name:"renderPlaceholderError",required:!1,type:{name:"() => ReactElement>"}},renderPlaceholderLoading:{defaultValue:null,description:"",name:"renderPlaceholderLoading",required:!1,type:{name:"() => ReactElement>"}},channelUrl:{defaultValue:null,description:"",name:"channelUrl",required:!0,type:{name:"string"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},onCloseClick:{defaultValue:null,description:"",name:"onCloseClick",required:!1,type:{name:"() => void"}},onLeaveChannel:{defaultValue:null,description:"",name:"onLeaveChannel",required:!1,type:{name:"() => void"}},overrideInviteUser:{defaultValue:null,description:"",name:"overrideInviteUser",required:!1,type:{name:"(params: OverrideInviteUserType) => void"}},onChannelModified:{defaultValue:null,description:"",name:"onChannelModified",required:!1,type:{name:"(channel: GroupChannel) => void"}},onBeforeUpdateChannel:{defaultValue:null,description:"",name:"onBeforeUpdateChannel",required:!1,type:{name:"(currentTitle: string, currentImg: File, data: string) => GroupChannelUpdateParams"}},queries:{defaultValue:null,description:"",name:"queries",required:!1,type:{name:"ChannelSettingsQueries"}},renderUserProfile:{defaultValue:null,description:"",name:"renderUserProfile",required:!1,type:{name:"(props: RenderUserProfileProps) => ReactElement>"}},disableUserProfile:{defaultValue:null,description:"",name:"disableUserProfile",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/ChannelSettings/index.tsx#ChannelSettings"]={docgenInfo:ChannelSettings_ChannelSettings.__docgenInfo,name:"ChannelSettings",path:"src/modules/ChannelSettings/index.tsx#ChannelSettings"})}catch(__react_docgen_typescript_loader_error){}},"./src/modules/CreateChannel/components/CreateChannelUI/create-channel-ui.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/CreateChannel/components/CreateChannelUI/create-channel-ui.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/CreateChannel/components/InviteUsers/invite-users.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/CreateChannel/components/InviteUsers/invite-users.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/CreateOpenChannel/components/CreateOpenChannelUI/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/CreateOpenChannel/components/CreateOpenChannelUI/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/EditUserProfile/components/EditUserProfileUI/edit-user-profile.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/EditUserProfile/components/EditUserProfileUI/edit-user-profile.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/GroupChannel/components/FileViewer/FileViewerView.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return FileViewerView}));__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./src/modules/GroupChannel/components/FileViewer/index.scss");var react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__),react_dom__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react-dom/index.js"),_ui_Avatar__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/ui/Avatar/index.tsx"),_ui_Icon__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/ui/Icon/index.tsx"),_ui_Label__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/ui/Label/index.tsx"),_utils__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/utils/index.ts"),_hooks_useModal__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/hooks/useModal/index.tsx"),_hooks_useSendbirdStateContext__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./src/hooks/useSendbirdStateContext.tsx"),FileViewerView=function FileViewerView(_ref){var message=_ref.message,onCancel=_ref.onCancel,deleteMessage=_ref.deleteMessage,sender=message.sender,type=message.type,url=message.url,_message$name=message.name,name=void 0===_message$name?"":_message$name,threadInfo=message.threadInfo,profileUrl=sender.profileUrl,nickname=sender.nickname,userId=sender.userId,config=Object(_hooks_useSendbirdStateContext__WEBPACK_IMPORTED_MODULE_9__.a)().config;return Object(react_dom__WEBPACK_IMPORTED_MODULE_3__.createPortal)(react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(FileViewerComponent,{profileUrl:profileUrl,nickname:nickname,type:type,url:url,name:name,onCancel:onCancel,onDelete:function onDelete(){return deleteMessage(message).then((function(){return onCancel()}))},isByMe:config.userId===userId,disableDelete:(null==threadInfo?void 0:threadInfo.replyCount)>0}),document.getElementById(_hooks_useModal__WEBPACK_IMPORTED_MODULE_8__.b))},FileViewerComponent=function FileViewerComponent(_ref2){var profileUrl=_ref2.profileUrl,nickname=_ref2.nickname,name=_ref2.name,type=_ref2.type,url=_ref2.url,isByMe=_ref2.isByMe,onCancel=_ref2.onCancel,onDelete=_ref2.onDelete,disableDelete=_ref2.disableDelete;return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div",{className:"sendbird-fileviewer"},react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div",{className:"sendbird-fileviewer__header"},react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div",{className:"sendbird-fileviewer__header__left"},react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div",{className:"sendbird-fileviewer__header__left__avatar"},react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_ui_Avatar__WEBPACK_IMPORTED_MODULE_4__.a,{height:"32px",width:"32px",src:profileUrl})),react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_ui_Label__WEBPACK_IMPORTED_MODULE_6__.d,{className:"sendbird-fileviewer__header__left__filename",type:_ui_Label__WEBPACK_IMPORTED_MODULE_6__.c.H_2,color:_ui_Label__WEBPACK_IMPORTED_MODULE_6__.a.ONBACKGROUND_1},name),react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_ui_Label__WEBPACK_IMPORTED_MODULE_6__.d,{className:"sendbird-fileviewer__header__left__sender-name",type:_ui_Label__WEBPACK_IMPORTED_MODULE_6__.c.BODY_1,color:_ui_Label__WEBPACK_IMPORTED_MODULE_6__.a.ONBACKGROUND_2},nickname)),react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div",{className:"sendbird-fileviewer__header__right"},Object(_utils__WEBPACK_IMPORTED_MODULE_7__.N)(type)&&react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div",{className:"sendbird-fileviewer__header__right__actions"},react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("a",{className:"sendbird-fileviewer__header__right__actions__download",rel:"noopener noreferrer",href:url,target:"_blank"},react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_ui_Icon__WEBPACK_IMPORTED_MODULE_5__.c,{type:_ui_Icon__WEBPACK_IMPORTED_MODULE_5__.b.DOWNLOAD,fillColor:_ui_Icon__WEBPACK_IMPORTED_MODULE_5__.a.ON_BACKGROUND_1,height:"24px",width:"24px"})),onDelete&&isByMe&&react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div",{className:"sendbird-fileviewer__header__right__actions__delete"},react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_ui_Icon__WEBPACK_IMPORTED_MODULE_5__.c,{className:disableDelete?"disabled":"",type:_ui_Icon__WEBPACK_IMPORTED_MODULE_5__.b.DELETE,fillColor:disableDelete?_ui_Icon__WEBPACK_IMPORTED_MODULE_5__.a.GRAY:_ui_Icon__WEBPACK_IMPORTED_MODULE_5__.a.ON_BACKGROUND_1,height:"24px",width:"24px",onClick:function onClick(){disableDelete||onDelete()}}))),react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div",{className:"sendbird-fileviewer__header__right__actions__close"},react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_ui_Icon__WEBPACK_IMPORTED_MODULE_5__.c,{type:_ui_Icon__WEBPACK_IMPORTED_MODULE_5__.b.CLOSE,fillColor:_ui_Icon__WEBPACK_IMPORTED_MODULE_5__.a.ON_BACKGROUND_1,height:"24px",width:"24px",onClick:onCancel})))),react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div",{className:"sendbird-fileviewer__content"},Object(_utils__WEBPACK_IMPORTED_MODULE_7__.U)(type)&&react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("video",{controls:!0,className:"sendbird-fileviewer__content__video"},react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("source",{src:url,type:type})),Object(_utils__WEBPACK_IMPORTED_MODULE_7__.C)(type)&&react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("img",{src:url,alt:name,className:"sendbird-fileviewer__content__img"}),!Object(_utils__WEBPACK_IMPORTED_MODULE_7__.N)(type)&&react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div",{className:"sendbird-fileviewer__content__unsupported"},react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_ui_Label__WEBPACK_IMPORTED_MODULE_6__.d,{type:_ui_Label__WEBPACK_IMPORTED_MODULE_6__.c.H_1,color:_ui_Label__WEBPACK_IMPORTED_MODULE_6__.a.ONBACKGROUND_1},"Unsupoprted message"))))};try{FileViewerView.displayName="FileViewerView",FileViewerView.__docgenInfo={description:"",displayName:"FileViewerView",props:{deleteMessage:{defaultValue:null,description:"",name:"deleteMessage",required:!0,type:{name:"((message: SendableMessageType) => Promise) | DeleteMessageTypeLegacy"}},onCancel:{defaultValue:null,description:"",name:"onCancel",required:!0,type:{name:"() => void"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"FileMessage"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannel/components/FileViewer/FileViewerView.tsx#FileViewerView"]={docgenInfo:FileViewerView.__docgenInfo,name:"FileViewerView",path:"src/modules/GroupChannel/components/FileViewer/FileViewerView.tsx#FileViewerView"})}catch(__react_docgen_typescript_loader_error){}try{FileViewerComponent.displayName="FileViewerComponent",FileViewerComponent.__docgenInfo={description:"",displayName:"FileViewerComponent",props:{profileUrl:{defaultValue:null,description:"",name:"profileUrl",required:!0,type:{name:"string"}},nickname:{defaultValue:null,description:"",name:"nickname",required:!0,type:{name:"string"}},name:{defaultValue:null,description:"",name:"name",required:!0,type:{name:"string"}},type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"string"}},url:{defaultValue:null,description:"",name:"url",required:!0,type:{name:"string"}},isByMe:{defaultValue:null,description:"",name:"isByMe",required:!0,type:{name:"boolean"}},onCancel:{defaultValue:null,description:"",name:"onCancel",required:!0,type:{name:"() => void"}},onDelete:{defaultValue:null,description:"",name:"onDelete",required:!0,type:{name:"() => void"}},disableDelete:{defaultValue:null,description:"",name:"disableDelete",required:!0,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannel/components/FileViewer/FileViewerView.tsx#FileViewerComponent"]={docgenInfo:FileViewerComponent.__docgenInfo,name:"FileViewerComponent",path:"src/modules/GroupChannel/components/FileViewer/FileViewerView.tsx#FileViewerComponent"})}catch(__react_docgen_typescript_loader_error){}},"./src/modules/GroupChannel/components/FileViewer/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/GroupChannel/components/FileViewer/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/GroupChannel/components/FrozenNotification/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/GroupChannel/components/FrozenNotification/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/GroupChannel/components/FrozenNotification/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./src/modules/GroupChannel/components/FrozenNotification/index.scss");var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/lib/LocalizationContext.tsx"),_ui_Label__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/ui/Label/index.tsx"),FrozenNotification=function FrozenNotification(_ref){var _ref$className=_ref.className,className=void 0===_ref$className?"":_ref$className,stringSet=Object(react__WEBPACK_IMPORTED_MODULE_1__.useContext)(_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_2__.a).stringSet;return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",{className:"sendbird-notification sendbird-notification--frozen ".concat(className)},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ui_Label__WEBPACK_IMPORTED_MODULE_3__.d,{className:"sendbird-notification__text",type:_ui_Label__WEBPACK_IMPORTED_MODULE_3__.c.CAPTION_2},stringSet.CHANNEL_FROZEN))};__webpack_exports__.a=FrozenNotification;try{FrozenNotification.displayName="FrozenNotification",FrozenNotification.__docgenInfo={description:"",displayName:"FrozenNotification",props:{className:{defaultValue:{value:""},description:"",name:"className",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannel/components/FrozenNotification/index.tsx#FrozenNotification"]={docgenInfo:FrozenNotification.__docgenInfo,name:"FrozenNotification",path:"src/modules/GroupChannel/components/FrozenNotification/index.tsx#FrozenNotification"})}catch(__react_docgen_typescript_loader_error){}},"./src/modules/GroupChannel/components/GroupChannelHeader/GroupChannelHeaderView.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./src/modules/GroupChannel/components/GroupChannelHeader/index.scss");var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_ui_IconButton__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/IconButton/index.tsx"),_ui_Icon__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/ui/Icon/index.tsx"),_ui_Label__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/ui/Label/index.tsx"),_ui_ChannelAvatar__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/ui/ChannelAvatar/index.tsx"),_utils__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/modules/GroupChannel/components/GroupChannelHeader/utils.ts"),_lib_MediaQueryContext__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/lib/MediaQueryContext.tsx"),_hooks_useSendbirdStateContext__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/hooks/useSendbirdStateContext.tsx"),_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./src/lib/LocalizationContext.tsx"),GroupChannelHeaderView=function GroupChannelHeaderView(_ref){var _currentChannel$membe,className=_ref.className,currentChannel=_ref.currentChannel,showSearchIcon=_ref.showSearchIcon,onBackClick=_ref.onBackClick,onSearchClick=_ref.onSearchClick,onChatHeaderActionClick=_ref.onChatHeaderActionClick,config=Object(_hooks_useSendbirdStateContext__WEBPACK_IMPORTED_MODULE_8__.a)().config,userId=config.userId,theme=config.theme,isMobile=Object(_lib_MediaQueryContext__WEBPACK_IMPORTED_MODULE_7__.b)().isMobile,stringSet=Object(_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_9__.c)().stringSet,isMuted="muted"===(null==currentChannel?void 0:currentChannel.myMutedState),subTitle=(null==currentChannel?void 0:currentChannel.members)&&2!==(null==currentChannel||null===(_currentChannel$membe=currentChannel.members)||void 0===_currentChannel$membe?void 0:_currentChannel$membe.length);return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",{className:"sendbird-chat-header ".concat(className)},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",{className:"sendbird-chat-header__left"},isMobile&&react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ui_Icon__WEBPACK_IMPORTED_MODULE_3__.c,{className:"sendbird-chat-header__icon_back",onClick:onBackClick,fillColor:_ui_Icon__WEBPACK_IMPORTED_MODULE_3__.a.PRIMARY,width:"24px",height:"24px",type:_ui_Icon__WEBPACK_IMPORTED_MODULE_3__.b.ARROW_LEFT}),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ui_ChannelAvatar__WEBPACK_IMPORTED_MODULE_5__.a,{theme:theme,channel:currentChannel,userId:userId,height:32,width:32}),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ui_Label__WEBPACK_IMPORTED_MODULE_4__.d,{className:"sendbird-chat-header__left__title",type:_ui_Label__WEBPACK_IMPORTED_MODULE_4__.c.H_2,color:_ui_Label__WEBPACK_IMPORTED_MODULE_4__.a.ONBACKGROUND_1},Object(_utils__WEBPACK_IMPORTED_MODULE_6__.a)(currentChannel,userId,stringSet)),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ui_Label__WEBPACK_IMPORTED_MODULE_4__.d,{className:"sendbird-chat-header__left__subtitle",type:_ui_Label__WEBPACK_IMPORTED_MODULE_4__.c.BODY_1,color:_ui_Label__WEBPACK_IMPORTED_MODULE_4__.a.ONBACKGROUND_2},subTitle)),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",{className:"sendbird-chat-header__right"},isMuted&&react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ui_Icon__WEBPACK_IMPORTED_MODULE_3__.c,{className:"sendbird-chat-header__right__mute",type:_ui_Icon__WEBPACK_IMPORTED_MODULE_3__.b.NOTIFICATIONS_OFF_FILLED,fillColor:_ui_Icon__WEBPACK_IMPORTED_MODULE_3__.a.ON_BACKGROUND_2,width:"24px",height:"24px"}),showSearchIcon&&!(null!=currentChannel&¤tChannel.isEphemeral)&&react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ui_IconButton__WEBPACK_IMPORTED_MODULE_2__.a,{className:"sendbird-chat-header__right__search",width:"32px",height:"32px",onClick:onSearchClick},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ui_Icon__WEBPACK_IMPORTED_MODULE_3__.c,{type:_ui_Icon__WEBPACK_IMPORTED_MODULE_3__.b.SEARCH,fillColor:_ui_Icon__WEBPACK_IMPORTED_MODULE_3__.a.PRIMARY,width:"24px",height:"24px"})),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ui_IconButton__WEBPACK_IMPORTED_MODULE_2__.a,{className:"sendbird-chat-header__right__info",width:"32px",height:"32px",onClick:onChatHeaderActionClick},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ui_Icon__WEBPACK_IMPORTED_MODULE_3__.c,{type:_ui_Icon__WEBPACK_IMPORTED_MODULE_3__.b.INFO,fillColor:_ui_Icon__WEBPACK_IMPORTED_MODULE_3__.a.PRIMARY,width:"24px",height:"24px"}))))};__webpack_exports__.a=GroupChannelHeaderView;try{GroupChannelHeaderView.displayName="GroupChannelHeaderView",GroupChannelHeaderView.__docgenInfo={description:"",displayName:"GroupChannelHeaderView",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},currentChannel:{defaultValue:null,description:"",name:"currentChannel",required:!0,type:{name:"GroupChannel"}},showSearchIcon:{defaultValue:null,description:"",name:"showSearchIcon",required:!1,type:{name:"boolean"}},onBackClick:{defaultValue:null,description:"",name:"onBackClick",required:!1,type:{name:"() => void"}},onSearchClick:{defaultValue:null,description:"",name:"onSearchClick",required:!1,type:{name:"() => void"}},onChatHeaderActionClick:{defaultValue:null,description:"",name:"onChatHeaderActionClick",required:!1,type:{name:"(event: MouseEvent) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannel/components/GroupChannelHeader/GroupChannelHeaderView.tsx#GroupChannelHeaderView"]={docgenInfo:GroupChannelHeaderView.__docgenInfo,name:"GroupChannelHeaderView",path:"src/modules/GroupChannel/components/GroupChannelHeader/GroupChannelHeaderView.tsx#GroupChannelHeaderView"})}catch(__react_docgen_typescript_loader_error){}},"./src/modules/GroupChannel/components/GroupChannelHeader/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/GroupChannel/components/GroupChannelHeader/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/GroupChannel/components/GroupChannelHeader/utils.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return getChannelTitle}));__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js");var _ui_Label__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/ui/Label/index.tsx"),getChannelTitle=function getChannelTitle(channel,currentUserId,stringSet){var _channel$members,LABEL_STRING_SET=stringSet||_ui_Label__WEBPACK_IMPORTED_MODULE_4__.b;return null!=channel&&channel.name||null!=channel&&channel.members?null!=channel&&channel.name&&"Group Channel"!==channel.name?channel.name:1===(null==channel||null===(_channel$members=channel.members)||void 0===_channel$members?void 0:_channel$members.length)?LABEL_STRING_SET.NO_MEMBERS:null==channel?void 0:channel.members.filter((function(_ref){return _ref.userId!==currentUserId})).map((function(_ref2){return _ref2.nickname||LABEL_STRING_SET.NO_NAME})).join(", "):LABEL_STRING_SET.NO_TITLE}},"./src/modules/GroupChannel/components/GroupChannelUI/GroupChannelUIView.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return GroupChannelUIView}));__webpack_require__("./src/modules/GroupChannel/components/GroupChannelUI/index.scss");var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_hooks_useSendbirdStateContext__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/hooks/useSendbirdStateContext.tsx"),_TypingIndicator__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/modules/GroupChannel/components/TypingIndicator.tsx"),_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/types.ts"),_ui_ConnectionStatus__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/ui/ConnectionStatus/index.tsx"),_ui_PlaceHolder__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/ui/PlaceHolder/index.tsx"),GroupChannelUIView=function GroupChannelUIView(props){var _stores$sdkStore,_config$groupChannel,_config$groupChannel2,isLoading=props.isLoading,isInvalid=props.isInvalid,channelUrl=props.channelUrl,renderChannelHeader=props.renderChannelHeader,renderMessageList=props.renderMessageList,renderMessageInput=props.renderMessageInput,renderTypingIndicator=props.renderTypingIndicator,renderPlaceholderLoader=props.renderPlaceholderLoader,renderPlaceholderInvalid=props.renderPlaceholderInvalid,_useSendbirdStateCont=Object(_hooks_useSendbirdStateContext__WEBPACK_IMPORTED_MODULE_2__.a)(),stores=_useSendbirdStateCont.stores,config=_useSendbirdStateCont.config,sdkError=null==stores||null===(_stores$sdkStore=stores.sdkStore)||void 0===_stores$sdkStore?void 0:_stores$sdkStore.error,logger=config.logger,isOnline=config.isOnline;return isLoading?react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",{className:"sendbird-conversation"},(null==renderPlaceholderLoader?void 0:renderPlaceholderLoader())||react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ui_PlaceHolder__WEBPACK_IMPORTED_MODULE_6__.b,{type:_ui_PlaceHolder__WEBPACK_IMPORTED_MODULE_6__.a.LOADING})):channelUrl?isInvalid?react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",{className:"sendbird-conversation"},(null==renderPlaceholderInvalid?void 0:renderPlaceholderInvalid())||react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ui_PlaceHolder__WEBPACK_IMPORTED_MODULE_6__.b,{type:_ui_PlaceHolder__WEBPACK_IMPORTED_MODULE_6__.a.WRONG})):sdkError?react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",{className:"sendbird-conversation"},(null==renderPlaceholderInvalid?void 0:renderPlaceholderInvalid())||react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ui_PlaceHolder__WEBPACK_IMPORTED_MODULE_6__.b,{type:_ui_PlaceHolder__WEBPACK_IMPORTED_MODULE_6__.a.WRONG,retryToConnect:function retryToConnect(){logger.info("Channel: reconnecting")}})):react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",{className:"sendbird-conversation"},null==renderChannelHeader?void 0:renderChannelHeader({className:"sendbird-conversation__channel-header"}),null==renderMessageList?void 0:renderMessageList(props),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",{className:"sendbird-conversation__footer"},null==renderMessageInput?void 0:renderMessageInput(),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",{className:"sendbird-conversation__footer__typing-indicator"},(null==renderTypingIndicator?void 0:renderTypingIndicator())||(null==config||null===(_config$groupChannel=config.groupChannel)||void 0===_config$groupChannel?void 0:_config$groupChannel.enableTypingIndicator)&&(null==config||null===(_config$groupChannel2=config.groupChannel)||void 0===_config$groupChannel2||null===(_config$groupChannel2=_config$groupChannel2.typingIndicatorTypes)||void 0===_config$groupChannel2?void 0:_config$groupChannel2.has(_types__WEBPACK_IMPORTED_MODULE_4__.b.Text))&&react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_TypingIndicator__WEBPACK_IMPORTED_MODULE_3__.b,{channelUrl:channelUrl}),!isOnline&&react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ui_ConnectionStatus__WEBPACK_IMPORTED_MODULE_5__.a,null)))):react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",{className:"sendbird-conversation"},(null==renderPlaceholderInvalid?void 0:renderPlaceholderInvalid())||react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ui_PlaceHolder__WEBPACK_IMPORTED_MODULE_6__.b,{type:_ui_PlaceHolder__WEBPACK_IMPORTED_MODULE_6__.a.NO_CHANNELS}))};try{GroupChannelUIView.displayName="GroupChannelUIView",GroupChannelUIView.__docgenInfo={description:"",displayName:"GroupChannelUIView",props:{isLoading:{defaultValue:null,description:"",name:"isLoading",required:!1,type:{name:"boolean"}},isInvalid:{defaultValue:null,description:"",name:"isInvalid",required:!0,type:{name:"boolean"}},channelUrl:{defaultValue:null,description:"",name:"channelUrl",required:!0,type:{name:"string"}},renderChannelHeader:{defaultValue:null,description:"A function that customizes the rendering of a header component.",name:"renderChannelHeader",required:!0,type:{name:"(props: GroupChannelHeaderProps) => ReactElement>"}},renderMessageList:{defaultValue:null,description:"A function that customizes the rendering of a message list component.",name:"renderMessageList",required:!0,type:{name:"(props: GroupChannelMessageListProps) => ReactElement>"}},renderMessageInput:{defaultValue:null,description:"A function that customizes the rendering of a message input component.",name:"renderMessageInput",required:!0,type:{name:"() => ReactElement>"}},renderPlaceholderLoader:{defaultValue:null,description:"A function that customizes the rendering of a loading placeholder component.",name:"renderPlaceholderLoader",required:!1,type:{name:"() => ReactElement>"}},renderPlaceholderInvalid:{defaultValue:null,description:"A function that customizes the rendering of a invalid placeholder component.",name:"renderPlaceholderInvalid",required:!1,type:{name:"() => ReactElement>"}},renderPlaceholderEmpty:{defaultValue:null,description:"A function that customizes the rendering of an empty placeholder component when there are no messages in the channel.",name:"renderPlaceholderEmpty",required:!1,type:{name:"() => ReactElement>"}},renderMessage:{defaultValue:null,description:"A function that customizes the rendering of each message component in the message list component.",name:"renderMessage",required:!1,type:{name:"(props: RenderMessageParamsType) => ReactElement>"}},renderMessageContent:{defaultValue:null,description:"A function that customizes the rendering of the content portion of each message component.",name:"renderMessageContent",required:!1,type:{name:"(props: MessageContentProps) => ReactElement>"}},renderSuggestedReplies:{defaultValue:null,description:"A function that customizes the rendering of the suggested replies of each message component.",name:"renderSuggestedReplies",required:!1,type:{name:"(props: SuggestedRepliesProps) => ReactElement>"}},renderCustomSeparator:{defaultValue:null,description:"A function that customizes the rendering of a separator component between messages.",name:"renderCustomSeparator",required:!1,type:{name:"(props: RenderCustomSeparatorProps) => ReactElement>"}},renderFrozenNotification:{defaultValue:null,description:"A function that customizes the rendering of a frozen notification component when the channel is frozen.",name:"renderFrozenNotification",required:!1,type:{name:"() => ReactElement>"}},renderFileUploadIcon:{defaultValue:null,description:"A function that customizes the rendering of the file upload icon in the message input component.",name:"renderFileUploadIcon",required:!1,type:{name:"() => ReactElement>"}},renderVoiceMessageIcon:{defaultValue:null,description:"A function that customizes the rendering of the voice message icon in the message input component.",name:"renderVoiceMessageIcon",required:!1,type:{name:"() => ReactElement>"}},renderSendMessageIcon:{defaultValue:null,description:"A function that customizes the rendering of the send message icon in the message input component.",name:"renderSendMessageIcon",required:!1,type:{name:"() => ReactElement>"}},renderTypingIndicator:{defaultValue:null,description:"A function that customizes the rendering of the typing indicator component.",name:"renderTypingIndicator",required:!1,type:{name:"() => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannel/components/GroupChannelUI/GroupChannelUIView.tsx#GroupChannelUIView"]={docgenInfo:GroupChannelUIView.__docgenInfo,name:"GroupChannelUIView",path:"src/modules/GroupChannel/components/GroupChannelUI/GroupChannelUIView.tsx#GroupChannelUIView"})}catch(__react_docgen_typescript_loader_error){}},"./src/modules/GroupChannel/components/GroupChannelUI/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/GroupChannel/components/GroupChannelUI/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/GroupChannel/components/Message/MessageView.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.splice.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),format=__webpack_require__("./node_modules/date-fns/esm/format/index.js"),LocalizationContext=__webpack_require__("./src/lib/LocalizationContext.tsx"),useSendbirdStateContext=__webpack_require__("./src/hooks/useSendbirdStateContext.tsx"),context_const=__webpack_require__("./src/modules/GroupChannel/context/const.ts"),utils=__webpack_require__("./src/modules/GroupChannel/context/utils.ts"),useDirtyGetMentions=__webpack_require__("./src/modules/Message/hooks/useDirtyGetMentions.ts");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i void"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"BaseMessage"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannel/components/SuggestedReplies/index.tsx#SuggestedReplies"]={docgenInfo:SuggestedReplies_SuggestedReplies.__docgenInfo,name:"SuggestedReplies",path:"src/modules/GroupChannel/components/SuggestedReplies/index.tsx#SuggestedReplies"})}catch(__react_docgen_typescript_loader_error){}var SuggestedMentionListView=__webpack_require__("./src/modules/GroupChannel/components/SuggestedMentionList/SuggestedMentionListView.tsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return MessageView_arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||MessageView_unsupportedIterableToArray(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;rarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&!Object(utils.d)(channel)&&!Object(utils.e)(channel),mentionNodes=Object(useDirtyGetMentions.a)({ref:editMessageInputRef},{logger:logger}),ableMention=(null==mentionNodes?void 0:mentionNodes.length)0&&(e.key===MessageInput_const.a.Enter&&ableMention||e.key===MessageInput_const.a.ArrowUp||e.key===MessageInput_const.a.ArrowDown))&&(setMessageInputEvent(e),!0)}})):react_default.a.createElement("div",{className:Object(src_utils.i)(["sendbird-msg-hoc sendbird-msg--scroll-ref",isAnimated?"sendbird-msg-hoc__animated":""]),style:children||renderMessage?void 0:{marginBottom:"2px"},"data-sb-message-id":message.messageId,"data-sb-created-at":message.createdAt,ref:messageScrollRef},hasSeparator&&(renderedCustomSeparator||react_default.a.createElement(DateSeparator.a,null,react_default.a.createElement(Label.d,{type:Label.c.CAPTION_2,color:Label.a.ONBACKGROUND_2},Object(format.a)(message.createdAt,stringSet.DATE_FORMAT__MESSAGE_LIST__DATE_SEPARATOR,{locale:dateLocale})))),function renderChildren(){if(children)return children;if(renderMessage){var messageProps=_objectSpread(_objectSpread({},props),{},{renderMessage:void 0});return renderMessage(messageProps)}return react_default.a.createElement(react_default.a.Fragment,null,renderMessageContent({className:"sendbird-message-hoc__message-content",userId:userId,scrollToMessage:scrollToMessage,channel:channel,message:message,disabled:!isOnline,chainTop:chainTop,chainBottom:chainBottom,isReactionEnabled:isReactionEnabled,replyType:replyType,threadReplySelectType:threadReplySelectType,nicknamesMap:nicknamesMap,emojiContainer:emojiContainer,showEdit:setShowEdit,showRemove:setShowRemove,showFileViewer:setShowFileViewer,resendMessage:resendMessage,deleteMessage:deleteMessage,toggleReaction:toggleReaction,setQuoteMessage:setQuoteMessage,onReplyInThread:onReplyInThreadClick,onQuoteMessageClick:onQuoteMessageClick,onMessageHeightChange:function onMessageHeightChange(a){return handleScroll(a)}}),shouldRenderSuggestedReplies&&renderSuggestedReplies({replyOptions:Object(src_utils.q)(message),onSendMessage:sendUserMessage,message:message}),showRemove&&renderRemoveMessageModal({message:message,onCancel:function onCancel(){return setShowRemove(!1)}}),showFileViewer&&renderFileViewer({message:message,onCancel:function onCancel(){return setShowFileViewer(!1)}}))}())};__webpack_exports__.a=MessageView_MessageView;try{MessageView_MessageView.displayName="MessageView",MessageView_MessageView.__docgenInfo={description:"",displayName:"MessageView",props:{channel:{defaultValue:null,description:"",name:"channel",required:!0,type:{name:"GroupChannel"}},emojiContainer:{defaultValue:null,description:"",name:"emojiContainer",required:!0,type:{name:"EmojiContainer"}},editInputDisabled:{defaultValue:null,description:"",name:"editInputDisabled",required:!0,type:{name:"boolean"}},shouldRenderSuggestedReplies:{defaultValue:null,description:"",name:"shouldRenderSuggestedReplies",required:!0,type:{name:"boolean"}},isReactionEnabled:{defaultValue:null,description:"",name:"isReactionEnabled",required:!0,type:{name:"boolean"}},replyType:{defaultValue:null,description:"",name:"replyType",required:!0,type:{name:"enum",value:[{value:'"NONE"'},{value:'"QUOTE_REPLY"'},{value:'"THREAD"'}]}},threadReplySelectType:{defaultValue:null,description:"",name:"threadReplySelectType",required:!0,type:{name:"enum",value:[{value:'"PARENT"'},{value:'"THREAD"'}]}},nicknamesMap:{defaultValue:null,description:"",name:"nicknamesMap",required:!0,type:{name:"Map"}},renderUserMentionItem:{defaultValue:null,description:"",name:"renderUserMentionItem",required:!0,type:{name:"(props: { user: User; }) => ReactElement>"}},scrollToMessage:{defaultValue:null,description:"",name:"scrollToMessage",required:!0,type:{name:"(createdAt: number, messageId: number) => void"}},toggleReaction:{defaultValue:null,description:"",name:"toggleReaction",required:!0,type:{name:"(message: SendableMessageType, emojiKey: string, isReacted: boolean) => void"}},setQuoteMessage:{defaultValue:null,description:"",name:"setQuoteMessage",required:!0,type:{name:"Dispatch>"}},onQuoteMessageClick:{defaultValue:null,description:"",name:"onQuoteMessageClick",required:!0,type:{name:"(params: { message: SendableMessageType; }) => void"}},onReplyInThreadClick:{defaultValue:null,description:"",name:"onReplyInThreadClick",required:!0,type:{name:"(params: { message: SendableMessageType; }) => void"}},sendUserMessage:{defaultValue:null,description:"",name:"sendUserMessage",required:!0,type:{name:"(params: UserMessageCreateParams) => void"}},updateUserMessage:{defaultValue:null,description:"",name:"updateUserMessage",required:!0,type:{name:"(messageId: number, params: UserMessageUpdateParams) => void"}},resendMessage:{defaultValue:null,description:"",name:"resendMessage",required:!0,type:{name:"(failedMessage: SendableMessageType) => void"}},deleteMessage:{defaultValue:null,description:"",name:"deleteMessage",required:!0,type:{name:"(message: CoreMessageType) => Promise"}},renderFileViewer:{defaultValue:null,description:"",name:"renderFileViewer",required:!0,type:{name:"(props: { message: FileMessage; onCancel: () => void; }) => ReactElement>"}},renderRemoveMessageModal:{defaultValue:null,description:"",name:"renderRemoveMessageModal",required:!1,type:{name:"(props: { message: EveryMessage; onCancel: () => void; }) => ReactElement>"}},animatedMessageId:{defaultValue:null,description:"",name:"animatedMessageId",required:!0,type:{name:"number"}},setAnimatedMessageId:{defaultValue:null,description:"",name:"setAnimatedMessageId",required:!0,type:{name:"Dispatch>"}},onMessageAnimated:{defaultValue:null,description:"",name:"onMessageAnimated",required:!1,type:{name:"() => void"}},highLightedMessageId:{defaultValue:null,description:"@deprecated *",name:"highLightedMessageId",required:!1,type:{name:"number"}},setHighLightedMessageId:{defaultValue:null,description:"@deprecated *",name:"setHighLightedMessageId",required:!1,type:{name:"Dispatch>"}},onMessageHighlighted:{defaultValue:null,description:"@deprecated *",name:"onMessageHighlighted",required:!1,type:{name:"() => void"}},usedInLegacy:{defaultValue:null,description:"",name:"usedInLegacy",required:!1,type:{name:"boolean"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"EveryMessage"}},hasSeparator:{defaultValue:null,description:"",name:"hasSeparator",required:!1,type:{name:"boolean"}},chainTop:{defaultValue:null,description:"",name:"chainTop",required:!1,type:{name:"boolean"}},chainBottom:{defaultValue:null,description:"",name:"chainBottom",required:!1,type:{name:"boolean"}},handleScroll:{defaultValue:null,description:"",name:"handleScroll",required:!1,type:{name:"(isBottomMessageAffected?: boolean) => void"}},children:{defaultValue:null,description:"Customizes all child components of the message.",name:"children",required:!1,type:{name:"ReactNode"}},renderMessageContent:{defaultValue:null,description:"A function that customizes the rendering of the content portion of message component.",name:"renderMessageContent",required:!1,type:{name:"(props: MessageContentProps) => ReactElement>"}},renderSuggestedReplies:{defaultValue:null,description:"A function that customizes the rendering of suggested replies component of messages.",name:"renderSuggestedReplies",required:!1,type:{name:"(props: SuggestedRepliesProps) => ReactElement>"}},renderCustomSeparator:{defaultValue:null,description:"A function that customizes the rendering of a separator between messages.",name:"renderCustomSeparator",required:!1,type:{name:"(props: RenderCustomSeparatorProps) => ReactElement>"}},renderEditInput:{defaultValue:null,description:"A function that customizes the rendering of the edit input portion of the message component.",name:"renderEditInput",required:!1,type:{name:"() => ReactElement>"}},renderMessage:{defaultValue:null,description:"@deprecated Please use `children` instead\n@description Customizes all child components of the message.",name:"renderMessage",required:!1,type:{name:"(props: RenderMessageParamsType) => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannel/components/Message/MessageView.tsx#MessageView"]={docgenInfo:MessageView_MessageView.__docgenInfo,name:"MessageView",path:"src/modules/GroupChannel/components/Message/MessageView.tsx#MessageView"})}catch(__react_docgen_typescript_loader_error){}},"./src/modules/GroupChannel/components/MessageInputWrapper/MessageInputWrapperView.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.splice.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./src/modules/GroupChannel/components/MessageInputWrapper/index.scss");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),utils=__webpack_require__("./src/modules/GroupChannel/context/utils.ts"),useSendbirdStateContext=__webpack_require__("./src/hooks/useSendbirdStateContext.tsx"),LocalizationContext=__webpack_require__("./src/lib/LocalizationContext.tsx"),SuggestedMentionListView=__webpack_require__("./src/modules/GroupChannel/components/SuggestedMentionList/SuggestedMentionListView.tsx"),SuggestedMentionList_SuggestedMentionList=function SuggestedMentionList(props){return react_default.a.createElement(SuggestedMentionListView.a,props)},components_SuggestedMentionList=SuggestedMentionList_SuggestedMentionList;try{SuggestedMentionList_SuggestedMentionList.displayName="SuggestedMentionList",SuggestedMentionList_SuggestedMentionList.__docgenInfo={description:"",displayName:"SuggestedMentionList",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},currentChannel:{defaultValue:null,description:"",name:"currentChannel",required:!0,type:{name:"GroupChannel"}},targetNickname:{defaultValue:null,description:"",name:"targetNickname",required:!0,type:{name:"string"}},memberListQuery:{defaultValue:null,description:"",name:"memberListQuery",required:!1,type:{name:"Record"}},onUserItemClick:{defaultValue:null,description:"",name:"onUserItemClick",required:!1,type:{name:"(member: User) => void"}},onFocusItemChange:{defaultValue:null,description:"",name:"onFocusItemChange",required:!1,type:{name:"(member: User) => void"}},onFetchUsers:{defaultValue:null,description:"",name:"onFetchUsers",required:!1,type:{name:"(users: User[]) => void"}},renderUserMentionItem:{defaultValue:null,description:"",name:"renderUserMentionItem",required:!1,type:{name:"(props: { user: User; }) => Element"}},ableAddMention:{defaultValue:null,description:"",name:"ableAddMention",required:!0,type:{name:"boolean"}},maxMentionCount:{defaultValue:null,description:"",name:"maxMentionCount",required:!1,type:{name:"number"}},maxSuggestionCount:{defaultValue:null,description:"",name:"maxSuggestionCount",required:!1,type:{name:"number"}},inputEvent:{defaultValue:null,description:"",name:"inputEvent",required:!1,type:{name:"KeyboardEvent"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannel/components/SuggestedMentionList/index.tsx#SuggestedMentionList"]={docgenInfo:SuggestedMentionList_SuggestedMentionList.__docgenInfo,name:"SuggestedMentionList",path:"src/modules/GroupChannel/components/SuggestedMentionList/index.tsx#SuggestedMentionList"})}catch(__react_docgen_typescript_loader_error){}var useDirtyGetMentions=__webpack_require__("./src/modules/Message/hooks/useDirtyGetMentions.ts"),QuoteMessageInput=__webpack_require__("./src/ui/QuoteMessageInput/index.tsx"),MessageInputWrapper_VoiceMessageInputWrapper=__webpack_require__("./src/modules/GroupChannel/components/MessageInputWrapper/VoiceMessageInputWrapper.tsx"),MessageInput=__webpack_require__("./src/ui/MessageInput/index.tsx"),MediaQueryContext=__webpack_require__("./src/lib/MediaQueryContext.tsx"),MessageInput_const=__webpack_require__("./src/ui/MessageInput/const.ts"),src_utils=(__webpack_require__("./node_modules/core-js/modules/es.symbol.async-iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.math.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.json.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./src/utils/index.ts")),useModal=__webpack_require__("./src/hooks/useModal/index.tsx"),Button=__webpack_require__("./src/ui/Button/index.tsx"),Modal=__webpack_require__("./src/ui/Modal/index.tsx"),compressImages=__webpack_require__("./src/utils/compressImages.ts");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _regeneratorRuntime(){_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw new Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iuikitMultipleFilesMessageLimit)){_context.next=7;break}return logger.info("Channel|useHandleUploadFiles: Cannot upload files more than ".concat(uikitMultipleFilesMessageLimit)),openModal({modalProps:{titleText:stringSet.FILE_UPLOAD_NOTIFICATION__COUNT_LIMIT.replace("%d","".concat(uikitUploadSizeLimit)),hideFooter:!0},childElement:function childElement(_ref4){var closeModal=_ref4.closeModal;return react_default.a.createElement(Modal.a,{type:Button.b.PRIMARY,submitText:stringSet.BUTTON__OK,hideCancelButton:!0,onCancel:closeModal,onSubmit:closeModal})}}),_context.abrupt("return");case 7:if(!files.some((function(file){return file.size>uikitUploadSizeLimit}))){_context.next=12;break}return logger.info("Channel|useHandleUploadFiles: Cannot upload file size exceeding ".concat(uikitUploadSizeLimit)),1048576,openModal({modalProps:{titleText:stringSet.FILE_UPLOAD_NOTIFICATION__SIZE_LIMIT.replace("%d","".concat(Math.floor(uikitUploadSizeLimit/1048576))),hideFooter:!0},childElement:function childElement(_ref5){var closeModal=_ref5.closeModal;return react_default.a.createElement(Modal.a,{type:Button.b.PRIMARY,submitText:stringSet.BUTTON__OK,hideCancelButton:!0,onCancel:closeModal,onSubmit:closeModal})}}),_context.abrupt("return");case 12:return _context.next=14,Object(compressImages.a)({files:files,imageCompression:imageCompression,logger:logger});case 14:if(_yield$compressImages=_context.sent,compressedFiles=_yield$compressImages.compressedFiles,1!==(sendingFiles=compressedFiles).length){_context.next=23;break}return logger.info("Channel|useHandleUploadFiles: sending one file."),_sendingFiles=_slicedToArray(sendingFiles,1),file=_sendingFiles[0],_context.abrupt("return",sendFileMessage({file:file,parentMessageId:null==quoteMessage?void 0:quoteMessage.messageId}));case 23:if(!(sendingFiles.length>1)){_context.next=29;break}return logger.info("Channel|useHandleUploadFiles: sending multiple files."),imageFiles=[],otherFiles=[],sendingFiles.forEach((function(file){Object(src_utils.C)(file.type)?imageFiles.push(file):otherFiles.push(file)})),_context.abrupt("return",otherFiles.reduce((function(previousPromise,item){return previousPromise.then((function(){return sendFileMessage({file:item,parentMessageId:null==quoteMessage?void 0:quoteMessage.messageId})}))}),0===imageFiles.length?Promise.resolve():1===imageFiles.length?sendFileMessage({file:imageFiles[0]}):sendMultipleFilesMessage({fileInfoList:imageFiles.map((function(file){return{file:file,fileName:file.name,fileSize:file.size,mimeType:file.type}})),parentMessageId:null==quoteMessage?void 0:quoteMessage.messageId})));case 29:case"end":return _context.stop()}}),_callee)})));return function(_x){return _ref3.apply(this,arguments)}}(),[sendFileMessage,sendMultipleFilesMessage,quoteMessage])};function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return MessageInputWrapperView_arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||MessageInputWrapperView_unsupportedIterableToArray(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function MessageInputWrapperView_slicedToArray(arr,i){return function MessageInputWrapperView_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function MessageInputWrapperView_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||MessageInputWrapperView_unsupportedIterableToArray(arr,i)||function MessageInputWrapperView_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function MessageInputWrapperView_unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return MessageInputWrapperView_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?MessageInputWrapperView_arrayLikeToArray(o,minLen):void 0}}function MessageInputWrapperView_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&!isBroadcast,isMultipleFilesMessageEnabled=null!=localIsMFMEnabled?localIsMFMEnabled:globalIsMFMenabled,mentionNodes=Object(useDirtyGetMentions.a)({ref:ref||messageInputRef},{logger:logger}),ableMention=(null==mentionNodes?void 0:mentionNodes.length)0&&(e.key===MessageInput_const.a.Enter&&ableMention||e.key===MessageInput_const.a.ArrowUp||e.key===MessageInput_const.a.ArrowDown))&&(setMessageInputEvent(e),!0)}}))}));__webpack_exports__.a=MessageInputWrapperView;try{MessageInputWrapperView.displayName="MessageInputWrapperView",MessageInputWrapperView.__docgenInfo={description:"",displayName:"MessageInputWrapperView",props:{value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},currentChannel:{defaultValue:null,description:"",name:"currentChannel",required:!0,type:{name:"GroupChannel"}},isMultipleFilesMessageEnabled:{defaultValue:null,description:"",name:"isMultipleFilesMessageEnabled",required:!1,type:{name:"boolean"}},loading:{defaultValue:null,description:"",name:"loading",required:!0,type:{name:"boolean"}},quoteMessage:{defaultValue:null,description:"",name:"quoteMessage",required:!0,type:{name:"SendableMessageType"}},setQuoteMessage:{defaultValue:null,description:"",name:"setQuoteMessage",required:!0,type:{name:"Dispatch>"}},messageInputRef:{defaultValue:null,description:"",name:"messageInputRef",required:!0,type:{name:"MutableRefObject"}},sendUserMessage:{defaultValue:null,description:"",name:"sendUserMessage",required:!0,type:{name:"(params: UserMessageCreateParams) => void | Promise"}},sendFileMessage:{defaultValue:null,description:"",name:"sendFileMessage",required:!0,type:{name:"(params: FileMessageCreateParams) => Promise"}},sendVoiceMessage:{defaultValue:null,description:"",name:"sendVoiceMessage",required:!0,type:{name:"(params: FileMessageCreateParams, duration: number) => Promise"}},sendMultipleFilesMessage:{defaultValue:null,description:"",name:"sendMultipleFilesMessage",required:!0,type:{name:"(params: MultipleFilesMessageCreateParams) => Promise"}},renderUserMentionItem:{defaultValue:null,description:"",name:"renderUserMentionItem",required:!1,type:{name:"(props: { user: User; }) => ReactElement>"}},renderFileUploadIcon:{defaultValue:null,description:"",name:"renderFileUploadIcon",required:!1,type:{name:"() => ReactElement>"}},renderVoiceMessageIcon:{defaultValue:null,description:"",name:"renderVoiceMessageIcon",required:!1,type:{name:"() => ReactElement>"}},renderSendMessageIcon:{defaultValue:null,description:"",name:"renderSendMessageIcon",required:!1,type:{name:"() => ReactElement>"}},acceptableMimeTypes:{defaultValue:null,description:"",name:"acceptableMimeTypes",required:!1,type:{name:"string[]"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannel/components/MessageInputWrapper/MessageInputWrapperView.tsx#MessageInputWrapperView"]={docgenInfo:MessageInputWrapperView.__docgenInfo,name:"MessageInputWrapperView",path:"src/modules/GroupChannel/components/MessageInputWrapper/MessageInputWrapperView.tsx#MessageInputWrapperView"})}catch(__react_docgen_typescript_loader_error){}try{VoiceMessageInputWrapper.displayName="VoiceMessageInputWrapper",VoiceMessageInputWrapper.__docgenInfo={description:"",displayName:"VoiceMessageInputWrapper",props:{channel:{defaultValue:null,description:"",name:"channel",required:!1,type:{name:"GroupChannel"}},onCancelClick:{defaultValue:null,description:"",name:"onCancelClick",required:!1,type:{name:"() => void"}},onSubmitClick:{defaultValue:null,description:"",name:"onSubmitClick",required:!1,type:{name:"(file: File, duration: number) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannel/components/MessageInputWrapper/MessageInputWrapperView.tsx#VoiceMessageInputWrapper"]={docgenInfo:VoiceMessageInputWrapper.__docgenInfo,name:"VoiceMessageInputWrapper",path:"src/modules/GroupChannel/components/MessageInputWrapper/MessageInputWrapperView.tsx#VoiceMessageInputWrapper"})}catch(__react_docgen_typescript_loader_error){}},"./src/modules/GroupChannel/components/MessageInputWrapper/VoiceMessageInputWrapper.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return VoiceMessageInputWrapper}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./src/modules/GroupChannel/components/MessageInputWrapper/voice-message-wrapper.scss");var react__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__),_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./src/lib/LocalizationContext.tsx"),_hooks_VoicePlayer_useVoicePlayer__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./src/hooks/VoicePlayer/useVoicePlayer.tsx"),_hooks_VoiceRecorder_useVoiceRecorder__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./src/hooks/VoiceRecorder/useVoiceRecorder.tsx"),_context_utils__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./src/modules/GroupChannel/context/utils.ts"),_ui_VoiceMessageInput__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./src/ui/VoiceMessageInput/index.tsx"),_ui_VoiceMessageInput_types__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./src/ui/VoiceMessageInput/types.ts"),_ui_Modal__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./src/ui/Modal/index.tsx"),_ui_Button__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./src/ui/Button/index.tsx"),_hooks_useSendbirdStateContext__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/hooks/useSendbirdStateContext.tsx"),_utils_consts__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./src/utils/consts.ts"),_hooks_VoicePlayer_dux_initialState__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/hooks/VoicePlayer/dux/initialState.ts"),_utils_uuid__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./src/utils/uuid.ts");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=minRecordingTime&&!isDisabled?stop():isDisabled?(cancel(),setShowModal(!0),setVoiceInputState(_ui_VoiceMessageInput_types__WEBPACK_IMPORTED_MODULE_17__.a.READY_TO_RECORD)):(cancel(),setVoiceInputState(_ui_VoiceMessageInput_types__WEBPACK_IMPORTED_MODULE_17__.a.READY_TO_RECORD));break;case _ui_VoiceMessageInput_types__WEBPACK_IMPORTED_MODULE_17__.a.READY_TO_PLAY:play();break;case _ui_VoiceMessageInput_types__WEBPACK_IMPORTED_MODULE_17__.a.PLAYING:pause()}}}),showModal&&react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(_ui_Modal__WEBPACK_IMPORTED_MODULE_18__.b,{className:"sendbird-voice-message-input-wrapper-alert",titleText:Object(_context_utils__WEBPACK_IMPORTED_MODULE_15__.e)(channel)?stringSet.MODAL__VOICE_MESSAGE_INPUT_DISABLED__TITLE_MUTED:stringSet.MODAL__VOICE_MESSAGE_INPUT_DISABLED__TITLE_FROZEN,hideFooter:!0,isCloseOnClickOutside:!0,onCancel:function onCancel(){setShowModal(!1),_onCancelClick()}},react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div",{className:"sendbird-voice-message-input-wrapper-alert__body"},react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(_ui_Button__WEBPACK_IMPORTED_MODULE_19__.c,{className:"sendbird-voice-message-input-wrapper-alert__body__ok-button",type:_ui_Button__WEBPACK_IMPORTED_MODULE_19__.b.PRIMARY,size:_ui_Button__WEBPACK_IMPORTED_MODULE_19__.a.BIG,onClick:function onClick(){setShowModal(!1),_onCancelClick()}},stringSet.BUTTON__OK))))};__webpack_exports__.b=VoiceMessageInputWrapper;try{VoiceMessageInputWrapper.displayName="VoiceMessageInputWrapper",VoiceMessageInputWrapper.__docgenInfo={description:"",displayName:"VoiceMessageInputWrapper",props:{channel:{defaultValue:null,description:"",name:"channel",required:!1,type:{name:"GroupChannel"}},onCancelClick:{defaultValue:null,description:"",name:"onCancelClick",required:!1,type:{name:"() => void"}},onSubmitClick:{defaultValue:null,description:"",name:"onSubmitClick",required:!1,type:{name:"(file: File, duration: number) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannel/components/MessageInputWrapper/VoiceMessageInputWrapper.tsx#VoiceMessageInputWrapper"]={docgenInfo:VoiceMessageInputWrapper.__docgenInfo,name:"VoiceMessageInputWrapper",path:"src/modules/GroupChannel/components/MessageInputWrapper/VoiceMessageInputWrapper.tsx#VoiceMessageInputWrapper"})}catch(__react_docgen_typescript_loader_error){}},"./src/modules/GroupChannel/components/MessageInputWrapper/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/GroupChannel/components/MessageInputWrapper/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/GroupChannel/components/MessageInputWrapper/voice-message-wrapper.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/GroupChannel/components/MessageInputWrapper/voice-message-wrapper.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/GroupChannel/components/MessageList/getMessagePartsInfo.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return getMessagePartsInfo}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var date_fns_isSameDay__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/date-fns/esm/isSameDay/index.js"),_utils_messages__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./src/utils/messages.ts");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0,onCancel:onCancel,onSubmit:function onSubmit(){(message.isUserMessage()||message.isFileMessage()||message.isMultipleFilesMessage())&&deleteMessage(message).then((function(){_onSubmit(),onCancel()}))},submitText:stringSet.MESSAGE_MENU__DELETE,titleText:Object(_ui_Label_stringFormatterUtils__WEBPACK_IMPORTED_MODULE_4__.a)(stringSet,message)})};__webpack_exports__.a=RemoveMessageModalView;try{RemoveMessageModalView.displayName="RemoveMessageModalView",RemoveMessageModalView.__docgenInfo={description:"",displayName:"RemoveMessageModalView",props:{deleteMessage:{defaultValue:null,description:"",name:"deleteMessage",required:!0,type:{name:"(message: SendableMessageType) => Promise"}},onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!1,type:{name:"() => void"}},onCancel:{defaultValue:null,description:"",name:"onCancel",required:!0,type:{name:"() => void"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"EveryMessage"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannel/components/RemoveMessageModal/RemoveMessageModalView.tsx#RemoveMessageModalView"]={docgenInfo:RemoveMessageModalView.__docgenInfo,name:"RemoveMessageModalView",path:"src/modules/GroupChannel/components/RemoveMessageModal/RemoveMessageModalView.tsx#RemoveMessageModalView"})}catch(__react_docgen_typescript_loader_error){}},"./src/modules/GroupChannel/components/SuggestedMentionList/SuggestedMentionListView.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.find-index.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./src/modules/GroupChannel/components/SuggestedMentionList/index.scss");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),Label=__webpack_require__("./src/ui/Label/index.tsx"),Icon=__webpack_require__("./src/ui/Icon/index.tsx"),Avatar=__webpack_require__("./src/ui/Avatar/index.tsx"),LocalizationContext=__webpack_require__("./src/lib/LocalizationContext.tsx"),uuid=__webpack_require__("./src/utils/uuid.ts");function SuggestedUserMentionItem(props){var member=props.member,_props$isFocused=props.isFocused,isFocused=void 0!==_props$isFocused&&_props$isFocused,parentScrollRef=props.parentScrollRef,_onClick=props.onClick,_onMouseOver=props.onMouseOver,_onMouseMove=props.onMouseMove,renderUserMentionItem=props.renderUserMentionItem,scrollRef=Object(react.useRef)(null),stringSet=Object(react.useContext)(LocalizationContext.a).stringSet;Object(react.useEffect)((function(){isFocused&&null!=(null==parentScrollRef?void 0:parentScrollRef.current)&&null!=(null==scrollRef?void 0:scrollRef.current)&&(parentScrollRef.current.scrollTop>=scrollRef.current.offsetTop||parentScrollRef.current.scrollTop+parentScrollRef.current.clientHeight<=scrollRef.current.offsetTop)&&scrollRef.current.scrollIntoView({block:"nearest",inline:"nearest"})}),[isFocused]);var customMentionItem=Object(react.useMemo)((function(){if(renderUserMentionItem)return react_default.a.createElement("div",{className:"sendbird-mention-suggest-list__user-item",onClick:function onClick(event){return null==_onClick?void 0:_onClick({event:event,member:member,itemRef:scrollRef})},onMouseOver:function onMouseOver(event){return null==_onMouseOver?void 0:_onMouseOver({event:event,member:member,itemRef:scrollRef})},onMouseMove:function onMouseMove(event){return null==_onMouseMove?void 0:_onMouseMove({event:event,member:member,itemRef:scrollRef})},key:(null==member?void 0:member.userId)||Object(uuid.a)(),ref:scrollRef},renderUserMentionItem({user:member}))}),[renderUserMentionItem]);return customMentionItem||react_default.a.createElement("div",{className:"sendbird-mention-suggest-list__user-item ".concat(isFocused?"focused":""),onClick:function onClick(event){return null==_onClick?void 0:_onClick({event:event,member:member,itemRef:scrollRef})},onMouseOver:function onMouseOver(event){return null==_onMouseOver?void 0:_onMouseOver({event:event,member:member,itemRef:scrollRef})},onMouseMove:function onMouseMove(event){return null==_onMouseMove?void 0:_onMouseMove({event:event,member:member,itemRef:scrollRef})},key:(null==member?void 0:member.userId)||Object(uuid.a)(),ref:scrollRef},react_default.a.createElement(Avatar.a,{className:"sendbird-mention-suggest-list__user-item__avatar",src:null==member?void 0:member.profileUrl,alt:"user-profile",width:"24px",height:"24px"}),react_default.a.createElement(Label.d,{className:"sendbird-mention-suggest-list__user-item__nickname",type:Label.c.SUBTITLE_2,color:null!=member&&member.nickname?Label.a.ONBACKGROUND_1:Label.a.ONBACKGROUND_3},(null==member?void 0:member.nickname)||(null==stringSet?void 0:stringSet.MENTION_NAME__NO_NAME)),react_default.a.createElement(Label.d,{className:"sendbird-mention-suggest-list__user-item__user-id",type:Label.c.SUBTITLE_2,color:Label.a.ONBACKGROUND_2},null==member?void 0:member.userId))}var SuggestedMentionList_SuggestedUserMentionItem=SuggestedUserMentionItem;try{SuggestedUserMentionItem.displayName="SuggestedUserMentionItem",SuggestedUserMentionItem.__docgenInfo={description:"",displayName:"SuggestedUserMentionItem",props:{member:{defaultValue:null,description:"",name:"member",required:!0,type:{name:"User | Member"}},isFocused:{defaultValue:null,description:"",name:"isFocused",required:!1,type:{name:"boolean"}},parentScrollRef:{defaultValue:null,description:"",name:"parentScrollRef",required:!1,type:{name:"RefObject"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"(props: MentionItemUIEvent) => void"}},onMouseOver:{defaultValue:null,description:"",name:"onMouseOver",required:!1,type:{name:"(props: MentionItemUIEvent) => void"}},onMouseMove:{defaultValue:null,description:"",name:"onMouseMove",required:!1,type:{name:"(props: MentionItemUIEvent) => void"}},renderUserMentionItem:{defaultValue:null,description:"",name:"renderUserMentionItem",required:!1,type:{name:"(props: { user: User | Member; }) => Element"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannel/components/SuggestedMentionList/SuggestedUserMentionItem.tsx#SuggestedUserMentionItem"]={docgenInfo:SuggestedUserMentionItem.__docgenInfo,name:"SuggestedUserMentionItem",path:"src/modules/GroupChannel/components/SuggestedMentionList/SuggestedUserMentionItem.tsx#SuggestedUserMentionItem"})}catch(__react_docgen_typescript_loader_error){}var useSendbirdStateContext=__webpack_require__("./src/hooks/useSendbirdStateContext.tsx"),context_const=__webpack_require__("./src/modules/GroupChannel/context/const.ts"),MessageInput_const=__webpack_require__("./src/ui/MessageInput/const.ts");__webpack_require__("./node_modules/core-js/modules/es.symbol.async-iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.math.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.json.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.sort.js"),__webpack_require__("./node_modules/core-js/modules/es.string.starts-with.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _regeneratorRuntime(){_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw new Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}function fetchMembersFromChannel(_x,_x2,_x3,_x4){return _fetchMembersFromChannel.apply(this,arguments)}function _fetchMembersFromChannel(){return(_fetchMembersFromChannel=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(currentUserId,channel,maxSuggestionCount,searchString){return _regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.abrupt("return",channel.members.sort((function(a,b){var _a$nickname;return null===(_a$nickname=a.nickname)||void 0===_a$nickname?void 0:_a$nickname.localeCompare(b.nickname)})).filter((function(member){var _member$nickname;return(null===(_member$nickname=member.nickname)||void 0===_member$nickname?void 0:_member$nickname.toLowerCase().startsWith(searchString.toLowerCase()))&&member.userId!==currentUserId&&member.isActive})).slice(0,maxSuggestionCount));case 1:case"end":return _context.stop()}}),_callee)})))).apply(this,arguments)}function fetchMembersFromQuery(_x5,_x6,_x7,_x8){return _fetchMembersFromQuery.apply(this,arguments)}function _fetchMembersFromQuery(){return(_fetchMembersFromQuery=_asyncToGenerator(_regeneratorRuntime().mark((function _callee2(currentUserId,channel,maxSuggestionCount,searchString){var query;return _regeneratorRuntime().wrap((function _callee2$(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return query=channel.createMemberListQuery({limit:maxSuggestionCount+1,nicknameStartsWithFilter:searchString}),_context2.abrupt("return",query.next().then((function(memberList){return memberList.filter((function(member){return currentUserId!==(null==member?void 0:member.userId)})).slice(0,maxSuggestionCount)})));case 2:case"end":return _context2.stop()}}),_callee2)})))).apply(this,arguments)}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&onUserItemClick(currentFocusedMember),(null==inputEvent?void 0:inputEvent.key)===MessageInput_const.a.ArrowUp){var currentUserIndex=currentMemberList.findIndex((function(member){return(null==member?void 0:member.userId)===(null==currentFocusedMember?void 0:currentFocusedMember.userId)}));0"}},onUserItemClick:{defaultValue:null,description:"",name:"onUserItemClick",required:!1,type:{name:"(member: User) => void"}},onFocusItemChange:{defaultValue:null,description:"",name:"onFocusItemChange",required:!1,type:{name:"(member: User) => void"}},onFetchUsers:{defaultValue:null,description:"",name:"onFetchUsers",required:!1,type:{name:"(users: User[]) => void"}},renderUserMentionItem:{defaultValue:null,description:"",name:"renderUserMentionItem",required:!1,type:{name:"(props: { user: User; }) => Element"}},ableAddMention:{defaultValue:null,description:"",name:"ableAddMention",required:!0,type:{name:"boolean"}},maxMentionCount:{defaultValue:null,description:"",name:"maxMentionCount",required:!1,type:{name:"number"}},maxSuggestionCount:{defaultValue:null,description:"",name:"maxSuggestionCount",required:!1,type:{name:"number"}},inputEvent:{defaultValue:null,description:"",name:"inputEvent",required:!1,type:{name:"KeyboardEvent"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannel/components/SuggestedMentionList/SuggestedMentionListView.tsx#SuggestedMentionListView"]={docgenInfo:SuggestedMentionListView_SuggestedMentionListView.__docgenInfo,name:"SuggestedMentionListView",path:"src/modules/GroupChannel/components/SuggestedMentionList/SuggestedMentionListView.tsx#SuggestedMentionListView"})}catch(__react_docgen_typescript_loader_error){}},"./src/modules/GroupChannel/components/SuggestedMentionList/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/GroupChannel/components/SuggestedMentionList/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/GroupChannel/components/SuggestedReplies/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/GroupChannel/components/SuggestedReplies/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/GroupChannel/components/TypingIndicator.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return TypingIndicatorText}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var react__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__),_sendbird_chat_groupChannel__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/@sendbird/chat/groupChannel.js"),_ui_Label__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./src/ui/Label/index.tsx"),_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./src/lib/LocalizationContext.tsx"),_hooks_useSendbirdStateContext__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./src/hooks/useSendbirdStateContext.tsx"),_utils_uuid__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./src/utils/uuid.ts");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i Typing Indicator: onTypingStatusUpdated",groupChannel),groupChannel.url===channelUrl){var members=groupChannel.getTypingUsers();setTypingMembers(members)}}});sb.groupChannel.addGroupChannelHandler(newHandlerId,handler),setHandlerId(newHandlerId)}return function(){var _sb$groupChannel2;setTypingMembers([]),null!=sb&&null!==(_sb$groupChannel2=sb.groupChannel)&&void 0!==_sb$groupChannel2&&_sb$groupChannel2.removeGroupChannelHandler&&sb.groupChannel.removeGroupChannelHandler(handlerId)}}),[channelUrl]),react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(_ui_Label__WEBPACK_IMPORTED_MODULE_13__.d,{className:"sendbird-conversation__footer__typing-indicator__text",type:_ui_Label__WEBPACK_IMPORTED_MODULE_13__.c.CAPTION_2,color:_ui_Label__WEBPACK_IMPORTED_MODULE_13__.a.ONBACKGROUND_2},react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(TypingIndicatorText,{members:typingMembers}))};__webpack_exports__.b=TypingIndicator;try{TypingIndicatorText.displayName="TypingIndicatorText",TypingIndicatorText.__docgenInfo={description:"",displayName:"TypingIndicatorText",props:{members:{defaultValue:null,description:"",name:"members",required:!0,type:{name:"Member[]"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannel/components/TypingIndicator.tsx#TypingIndicatorText"]={docgenInfo:TypingIndicatorText.__docgenInfo,name:"TypingIndicatorText",path:"src/modules/GroupChannel/components/TypingIndicator.tsx#TypingIndicatorText"})}catch(__react_docgen_typescript_loader_error){}try{TypingIndicator.displayName="TypingIndicator",TypingIndicator.__docgenInfo={description:"",displayName:"TypingIndicator",props:{channelUrl:{defaultValue:null,description:"",name:"channelUrl",required:!0,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannel/components/TypingIndicator.tsx#TypingIndicator"]={docgenInfo:TypingIndicator.__docgenInfo,name:"TypingIndicator",path:"src/modules/GroupChannel/components/TypingIndicator.tsx#TypingIndicator"})}catch(__react_docgen_typescript_loader_error){}},"./src/modules/GroupChannel/components/UnreadCount/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/GroupChannel/components/UnreadCount/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/GroupChannel/components/UnreadCount/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.split.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.array.splice.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./src/modules/GroupChannel/components/UnreadCount/index.scss");var react__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_8__),_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./src/lib/LocalizationContext.tsx"),_ui_Label__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./src/ui/Label/index.tsx"),_ui_Icon__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./src/ui/Icon/index.tsx"),date_fns_format__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/date-fns/esm/format/index.js"),UnreadCount=function UnreadCount(_ref){var _ref$className=_ref.className,className=void 0===_ref$className?"":_ref$className,_ref$count=_ref.count,count=void 0===_ref$count?0:_ref$count,_ref$time=_ref.time,time=void 0===_ref$time?"":_ref$time,onClick=_ref.onClick,lastReadAt=_ref.lastReadAt,_useContext=Object(react__WEBPACK_IMPORTED_MODULE_8__.useContext)(_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_9__.a),stringSet=_useContext.stringSet,dateLocale=_useContext.dateLocale,unreadSince=Object(react__WEBPACK_IMPORTED_MODULE_8__.useMemo)((function(){if("on"!==stringSet.CHANNEL__MESSAGE_LIST__NOTIFICATION__ON){var _time$toString,timeArray=(null==time||null===(_time$toString=time.toString)||void 0===_time$toString||null===(_time$toString=_time$toString.call(time))||void 0===_time$toString?void 0:_time$toString.split(" "))||[];return null==timeArray||timeArray.splice(-2,0,stringSet.CHANNEL__MESSAGE_LIST__NOTIFICATION__ON),timeArray.join(" ")}if(lastReadAt)return Object(date_fns_format__WEBPACK_IMPORTED_MODULE_12__.a)(lastReadAt,stringSet.DATE_FORMAT__MESSAGE_LIST__NOTIFICATION__UNREAD_SINCE,{locale:dateLocale})}),[time,lastReadAt]);return react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{className:"sendbird-notification".concat(count<1?"--hide":""," ").concat(className),onClick:onClick},react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(_ui_Label__WEBPACK_IMPORTED_MODULE_10__.d,{className:"sendbird-notification__text",color:_ui_Label__WEBPACK_IMPORTED_MODULE_10__.a.ONCONTENT_1,type:_ui_Label__WEBPACK_IMPORTED_MODULE_10__.c.CAPTION_2},"".concat(count," "),stringSet.CHANNEL__MESSAGE_LIST__NOTIFICATION__NEW_MESSAGE," ".concat(unreadSince)),react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(_ui_Icon__WEBPACK_IMPORTED_MODULE_11__.c,{width:"24px",height:"24px",type:_ui_Icon__WEBPACK_IMPORTED_MODULE_11__.b.CHEVRON_DOWN,fillColor:_ui_Icon__WEBPACK_IMPORTED_MODULE_11__.a.CONTENT}))};__webpack_exports__.a=UnreadCount;try{UnreadCount.displayName="UnreadCount",UnreadCount.__docgenInfo={description:"",displayName:"UnreadCount",props:{className:{defaultValue:{value:""},description:"",name:"className",required:!1,type:{name:"string"}},count:{defaultValue:{value:"0"},description:"",name:"count",required:!1,type:{name:"number"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!0,type:{name:"() => void"}},lastReadAt:{defaultValue:null,description:"",name:"lastReadAt",required:!1,type:{name:"Date"}},time:{defaultValue:{value:""},description:"@deprecated Please use `lastReadAt` instead *",name:"time",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannel/components/UnreadCount/index.tsx#UnreadCount"]={docgenInfo:UnreadCount.__docgenInfo,name:"UnreadCount",path:"src/modules/GroupChannel/components/UnreadCount/index.tsx#UnreadCount"})}catch(__react_docgen_typescript_loader_error){}},"./src/modules/GroupChannel/context/const.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return MAX_USER_MENTION_COUNT})),__webpack_require__.d(__webpack_exports__,"b",(function(){return MAX_USER_SUGGESTION_COUNT})),__webpack_require__.d(__webpack_exports__,"d",(function(){return USER_MENTION_TEMP_CHAR})),__webpack_require__.d(__webpack_exports__,"c",(function(){return ThreadReplySelectType}));var MAX_USER_MENTION_COUNT=10,MAX_USER_SUGGESTION_COUNT=15,USER_MENTION_TEMP_CHAR="@",ThreadReplySelectType=function(ThreadReplySelectType){return ThreadReplySelectType.PARENT="PARENT",ThreadReplySelectType.THREAD="THREAD",ThreadReplySelectType}({})},"./src/modules/GroupChannel/context/hooks/useToggleReactionCallback.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return useToggleReactionCallback}));var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),LOG_PRESET="useToggleReactionCallback:";function useToggleReactionCallback(currentChannel,logger){return Object(react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((function(message,key,isReacted){currentChannel?isReacted?currentChannel.deleteReaction(message,key).then((function(res){logger.info("".concat(LOG_PRESET," Delete reaction success"),res)})).catch((function(err){logger.warning("".concat(LOG_PRESET," Delete reaction failed"),err)})):currentChannel.addReaction(message,key).then((function(res){logger.info("".concat(LOG_PRESET," Add reaction success"),res)})).catch((function(err){logger.warning("".concat(LOG_PRESET," Add reaction failed"),err)})):logger.warning("".concat(LOG_PRESET," currentChannel doesn't exist"),currentChannel)}),[currentChannel])}},"./src/modules/GroupChannel/context/utils.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";function getComponentKeyFromMessage(message){return"sendingStatus"in message?"succeeded"===message.sendingStatus?String(message.messageId):message.reqId:String(message.messageId)}function isContextMenuClosed(){var _document$getElementB,_document$getElementB2;return 0===(null===(_document$getElementB=document.getElementById("sendbird-dropdown-portal"))||void 0===_document$getElementB?void 0:_document$getElementB.childElementCount)&&0===(null===(_document$getElementB2=document.getElementById("sendbird-emoji-list-portal"))||void 0===_document$getElementB2?void 0:_document$getElementB2.childElementCount)}function getMessageTopOffset(messageCreatedAt){var _document$querySelect,element=null===(_document$querySelect=document.querySelectorAll('[data-sb-created-at="'.concat(messageCreatedAt,'"]')))||void 0===_document$querySelect?void 0:_document$querySelect[0];return element instanceof HTMLElement?element.offsetTop:null}__webpack_require__.d(__webpack_exports__,"a",(function(){return getComponentKeyFromMessage})),__webpack_require__.d(__webpack_exports__,"c",(function(){return isContextMenuClosed})),__webpack_require__.d(__webpack_exports__,"b",(function(){return getMessageTopOffset})),__webpack_require__.d(__webpack_exports__,"d",(function(){return isDisabledBecauseFrozen})),__webpack_require__.d(__webpack_exports__,"e",(function(){return isDisabledBecauseMuted}));var isDisabledBecauseFrozen=function isDisabledBecauseFrozen(groupChannel){return!!groupChannel&&(groupChannel.isFrozen&&"operator"!==groupChannel.myRole)},isDisabledBecauseMuted=function isDisabledBecauseMuted(groupChannel){return!!groupChannel&&"muted"===groupChannel.myMutedState}},"./src/modules/GroupChannelList/components/AddGroupChannel/AddGroupChannelView.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),IconButton=__webpack_require__("./src/ui/IconButton/index.tsx"),Icon=__webpack_require__("./src/ui/Icon/index.tsx"),selectors=(__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./src/modules/CreateChannel/components/CreateChannelUI/create-channel-ui.scss"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./src/lib/selectors.ts")),useSendbirdStateContext=__webpack_require__("./src/hooks/useSendbirdStateContext.tsx"),CHANNEL_TYPE=function(CHANNEL_TYPE){return CHANNEL_TYPE.GROUP="group",CHANNEL_TYPE.SUPERGROUP="supergroup",CHANNEL_TYPE.BROADCAST="broadcast",CHANNEL_TYPE}({});function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i UserListQuery"}},onCreateChannelClick:{defaultValue:null,description:"Overrides the action of the channel creation button.",name:"onCreateChannelClick",required:!1,type:{name:"(params: OverrideInviteUserType) => void"}},onChannelCreated:{defaultValue:null,description:"Called when the channel is created. (Should not have onCreateChannelClick for this to invoke.)",name:"onChannelCreated",required:!0,type:{name:"(channel: GroupChannel) => void"}},onBeforeCreateChannel:{defaultValue:null,description:"Called just before the channel is created. (Should not have onCreateChannelClick for this to invoke.)",name:"onBeforeCreateChannel",required:!1,type:{name:"(users: string[]) => GroupChannelCreateParams"}},onCreateChannel:{defaultValue:null,description:"@deprecated Use the onChannelCreated instead",name:"onCreateChannel",required:!1,type:{name:"(channel: GroupChannel) => void"}},overrideInviteUser:{defaultValue:null,description:"@deprecated Use the onCreateChannelClick instead",name:"overrideInviteUser",required:!1,type:{name:"(params: OverrideInviteUserType) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/CreateChannel/context/CreateChannelProvider.tsx#CreateChannelProvider"]={docgenInfo:CreateChannelProvider_CreateChannelProvider.__docgenInfo,name:"CreateChannelProvider",path:"src/modules/CreateChannel/context/CreateChannelProvider.tsx#CreateChannelProvider"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./src/modules/CreateChannel/components/InviteUsers/invite-users.scss");var LocalizationContext=__webpack_require__("./src/lib/LocalizationContext.tsx"),MediaQueryContext=__webpack_require__("./src/lib/MediaQueryContext.tsx"),Modal=__webpack_require__("./src/ui/Modal/index.tsx"),Label=__webpack_require__("./src/ui/Label/index.tsx"),Button=__webpack_require__("./src/ui/Button/index.tsx"),UserListItem=__webpack_require__("./src/ui/UserListItem/index.tsx"),setChannelType=(__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),function setChannelType(params,type){return"broadcast"===type&&(params.isBroadcast=!0),"supergroup"===type&&(params.isSuper=!0),params}),utils=__webpack_require__("./src/utils/utils.ts");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;rarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&0===Object.keys(selectedUsers).length,onCancel:onCancel,onSubmit:function onSubmit(){var selectedUserList=Object.keys(selectedUsers).length>0?Object.keys(selectedUsers):[userId],_onChannelCreated=null!=onChannelCreated?onChannelCreated:onCreateChannel,_onCreateChannelClick=null!=onCreateChannelClick?onCreateChannelClick:overrideInviteUser;if("function"!=typeof _onCreateChannelClick){if(onBeforeCreateChannel){var params=onBeforeCreateChannel(selectedUserList);setChannelType(params,type),createChannel(params).then((function(channel){return null==_onChannelCreated?void 0:_onChannelCreated(channel)}))}else{var _params={};_params.invitedUserIds=selectedUserList,_params.isDistinct=!1,userId&&(_params.operatorUserIds=[userId]),setChannelType(_params,type),createChannel(_params).then((function(channel){return null==_onChannelCreated?void 0:_onChannelCreated(channel)}))}null==onCancel||onCancel()}else _onCreateChannelClick({users:selectedUserList,onClose:null!=onCancel?onCancel:utils.b,channelType:type})}},react_default.a.createElement("div",null,react_default.a.createElement(Label.d,{color:selectedCount>0?Label.a.PRIMARY:Label.a.ONBACKGROUND_3,type:Label.c.CAPTION_1},"".concat(selectedCount," ").concat(stringSet.MODAL__INVITE_MEMBER__SELECTED)),react_default.a.createElement("div",{className:"sendbird-create-channel--scroll",style:isMobile?{height:"calc(".concat(scrollableAreaHeight,"px - 200px)")}:{},onScroll:function onScroll(e){if(usersDataSource){var eventTarget=e.target,hasNext=usersDataSource.hasNext,isLoading=usersDataSource.isLoading,fetchMore=eventTarget.clientHeight+eventTarget.scrollTop+50>eventTarget.scrollHeight;hasNext&&fetchMore&&!isLoading&&usersDataSource.next().then((function(usersBatch){setUsers([].concat(_toConsumableArray(users),_toConsumableArray(usersBatch)))}))}}},users.map((function(user){return!function filterUser(idsToFilter){return function(currentId){return null==idsToFilter?void 0:idsToFilter.includes(currentId)}}(idsToFilter)(user.userId)&&react_default.a.createElement(UserListItem.a,{key:user.userId,user:user,checkBox:!0,checked:selectedUsers[user.userId],onChange:function onChange(event){var modifiedSelectedUsers=_objectSpread(_objectSpread({},selectedUsers),{},_defineProperty({},event.target.id,event.target.checked));event.target.checked||delete modifiedSelectedUsers[event.target.id],setSelectedUsers(modifiedSelectedUsers)}})})))))},components_InviteUsers=InviteUsers_InviteUsers;try{InviteUsers_InviteUsers.displayName="InviteUsers",InviteUsers_InviteUsers.__docgenInfo={description:"",displayName:"InviteUsers",props:{onCancel:{defaultValue:null,description:"",name:"onCancel",required:!1,type:{name:"() => void"}},userListQuery:{defaultValue:null,description:"",name:"userListQuery",required:!1,type:{name:"() => UserListQuery"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/CreateChannel/components/InviteUsers/index.tsx#InviteUsers"]={docgenInfo:InviteUsers_InviteUsers.__docgenInfo,name:"InviteUsers",path:"src/modules/CreateChannel/components/InviteUsers/index.tsx#InviteUsers"})}catch(__react_docgen_typescript_loader_error){}var SelectChannelType_SelectChannelType=function SelectChannelType(props){var onCancel=props.onCancel,store=Object(useSendbirdStateContext.a)(),sdk=selectors.c(store),createChannelProps=CreateChannelProvider_useCreateChannelContext(),setStep=createChannelProps.setStep,setType=createChannelProps.setType,stringSet=Object(react.useContext)(LocalizationContext.a).stringSet,isBroadcastAvailable=function isBroadcastChannelEnabled(sdk){var _sdk$appInfo,applicationAttributes=null==sdk||null===(_sdk$appInfo=sdk.appInfo)||void 0===_sdk$appInfo?void 0:_sdk$appInfo.applicationAttributes;return!!Array.isArray(applicationAttributes)&&applicationAttributes.includes("allow_broadcast_channel")}(sdk),isSupergroupAvailable=function isSuperGroupChannelEnabled(sdk){var _sdk$appInfo2,applicationAttributes=null==sdk||null===(_sdk$appInfo2=sdk.appInfo)||void 0===_sdk$appInfo2?void 0:_sdk$appInfo2.applicationAttributes;return!!Array.isArray(applicationAttributes)&&applicationAttributes.includes("allow_super_group_channel")}(sdk);return react_default.a.createElement(Modal.b,{titleText:null==stringSet?void 0:stringSet.MODAL__CREATE_CHANNEL__TITLE,hideFooter:!0,onCancel:function(_onCancel){function onCancel(){return _onCancel.apply(this,arguments)}return onCancel.toString=function(){return _onCancel.toString()},onCancel}((function(){onCancel()})),className:"sendbird-add-channel__modal"},react_default.a.createElement("div",{className:"sendbird-add-channel__rectangle-wrap"},react_default.a.createElement("div",{className:"sendbird-add-channel__rectangle",onClick:function onClick(){setType(CHANNEL_TYPE.GROUP),setStep(1)},role:"button",tabIndex:0,onKeyDown:function onKeyDown(){setType(CHANNEL_TYPE.GROUP),setStep(1)}},react_default.a.createElement(Icon.c,{className:"sendbird-add-channel__rectangle__chat-icon",type:Icon.b.CHAT,fillColor:Icon.a.PRIMARY,width:"28px",height:"28px"}),react_default.a.createElement(Label.d,{type:Label.c.SUBTITLE_1,color:Label.a.ONBACKGROUND_1},stringSet.MODAL__CREATE_CHANNEL__GROUP)),isSupergroupAvailable&&react_default.a.createElement("div",{className:"sendbird-add-channel__rectangle",onClick:function onClick(){setType(CHANNEL_TYPE.SUPERGROUP),setStep(1)},role:"button",tabIndex:0,onKeyDown:function onKeyDown(){setType(CHANNEL_TYPE.SUPERGROUP),setStep(1)}},react_default.a.createElement(Icon.c,{className:"sendbird-add-channel__rectangle__supergroup-icon",type:Icon.b.SUPERGROUP,fillColor:Icon.a.PRIMARY,width:"28px",height:"28px"}),react_default.a.createElement(Label.d,{type:Label.c.SUBTITLE_1,color:Label.a.ONBACKGROUND_1},stringSet.MODAL__CREATE_CHANNEL__SUPER)),isBroadcastAvailable&&react_default.a.createElement("div",{className:"sendbird-add-channel__rectangle",onClick:function onClick(){setType(CHANNEL_TYPE.BROADCAST),setStep(1)},role:"button",tabIndex:0,onKeyDown:function onKeyDown(){setType(CHANNEL_TYPE.BROADCAST),setStep(1)}},react_default.a.createElement(Icon.c,{className:"sendbird-add-channel__rectangle__broadcast-icon",type:Icon.b.BROADCAST,fillColor:Icon.a.PRIMARY,width:"28px",height:"28px"}),react_default.a.createElement(Label.d,{type:Label.c.SUBTITLE_1,color:Label.a.ONBACKGROUND_1},stringSet.MODAL__CREATE_CHANNEL__BROADCAST))))},components_SelectChannelType=SelectChannelType_SelectChannelType;try{SelectChannelType_SelectChannelType.displayName="SelectChannelType",SelectChannelType_SelectChannelType.__docgenInfo={description:"",displayName:"SelectChannelType",props:{onCancel:{defaultValue:null,description:"",name:"onCancel",required:!1,type:{name:"() => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/CreateChannel/components/SelectChannelType.tsx#SelectChannelType"]={docgenInfo:SelectChannelType_SelectChannelType.__docgenInfo,name:"SelectChannelType",path:"src/modules/CreateChannel/components/SelectChannelType.tsx#SelectChannelType"})}catch(__react_docgen_typescript_loader_error){}var components_CreateChannelUI=function CreateChannel(props){var onCancel=props.onCancel,renderStepOne=props.renderStepOne,_useCreateChannelCont=CreateChannelProvider_useCreateChannelContext(),step=_useCreateChannelCont.step,setStep=_useCreateChannelCont.setStep,userListQuery=_useCreateChannelCont.userListQuery;return react_default.a.createElement(react_default.a.Fragment,null,0===step&&((null==renderStepOne?void 0:renderStepOne())||react_default.a.createElement(components_SelectChannelType,{onCancel:onCancel})),1===step&&react_default.a.createElement(components_InviteUsers,{userListQuery:userListQuery,onCancel:function(_onCancel){function onCancel(){return _onCancel.apply(this,arguments)}return onCancel.toString=function(){return _onCancel.toString()},onCancel}((function(){setStep(0),onCancel()}))}))};try{CreateChannelUI.displayName="CreateChannelUI",CreateChannelUI.__docgenInfo={description:"",displayName:"CreateChannelUI",props:{onCancel:{defaultValue:null,description:"",name:"onCancel",required:!1,type:{name:"() => void"}},renderStepOne:{defaultValue:null,description:"",name:"renderStepOne",required:!1,type:{name:"(props: void) => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/CreateChannel/components/CreateChannelUI/index.tsx#CreateChannelUI"]={docgenInfo:CreateChannelUI.__docgenInfo,name:"CreateChannelUI",path:"src/modules/CreateChannel/components/CreateChannelUI/index.tsx#CreateChannelUI"})}catch(__react_docgen_typescript_loader_error){}var CreateChannel_CreateChannel=function CreateChannel(props){return react_default.a.createElement(CreateChannelProvider_CreateChannelProvider,props,react_default.a.createElement(components_CreateChannelUI,props))},modules_CreateChannel=CreateChannel_CreateChannel;try{CreateChannel_CreateChannel.displayName="CreateChannel",CreateChannel_CreateChannel.__docgenInfo={description:"",displayName:"CreateChannel",props:{userListQuery:{defaultValue:null,description:"",name:"userListQuery",required:!1,type:{name:"() => UserListQuery"}},onCreateChannelClick:{defaultValue:null,description:"Overrides the action of the channel creation button.",name:"onCreateChannelClick",required:!1,type:{name:"(params: OverrideInviteUserType) => void"}},onChannelCreated:{defaultValue:null,description:"Called when the channel is created. (Should not have onCreateChannelClick for this to invoke.)",name:"onChannelCreated",required:!0,type:{name:"(channel: GroupChannel) => void"}},onBeforeCreateChannel:{defaultValue:null,description:"Called just before the channel is created. (Should not have onCreateChannelClick for this to invoke.)",name:"onBeforeCreateChannel",required:!1,type:{name:"(users: string[]) => GroupChannelCreateParams"}},onCreateChannel:{defaultValue:null,description:"@deprecated Use the onChannelCreated instead",name:"onCreateChannel",required:!1,type:{name:"(channel: GroupChannel) => void"}},overrideInviteUser:{defaultValue:null,description:"@deprecated Use the onCreateChannelClick instead",name:"overrideInviteUser",required:!1,type:{name:"(params: OverrideInviteUserType) => void"}},onCancel:{defaultValue:null,description:"",name:"onCancel",required:!1,type:{name:"() => void"}},renderStepOne:{defaultValue:null,description:"",name:"renderStepOne",required:!1,type:{name:"(props: void) => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/CreateChannel/index.tsx#CreateChannel"]={docgenInfo:CreateChannel_CreateChannel.__docgenInfo,name:"CreateChannel",path:"src/modules/CreateChannel/index.tsx#CreateChannel"})}catch(__react_docgen_typescript_loader_error){}var AddGroupChannelView_AddGroupChannelView=function AddGroupChannelView(_ref){var createChannelVisible=_ref.createChannelVisible,onChangeCreateChannelVisible=_ref.onChangeCreateChannelVisible,onBeforeCreateChannel=_ref.onBeforeCreateChannel,onCreateChannelClick=_ref.onCreateChannelClick,_onChannelCreated=_ref.onChannelCreated,config=Object(useSendbirdStateContext.a)().config;return react_default.a.createElement(react_default.a.Fragment,null,react_default.a.createElement(IconButton.a,{height:"32px",width:"32px",disabled:!config.isOnline,onClick:function onClick(){return onChangeCreateChannelVisible(!0)}},react_default.a.createElement(Icon.c,{type:Icon.b.CREATE,fillColor:Icon.a.PRIMARY,width:"24px",height:"24px"})),createChannelVisible&&react_default.a.createElement(modules_CreateChannel,{onCancel:function onCancel(){return onChangeCreateChannelVisible(!1)},onChannelCreated:function onChannelCreated(channel){null==_onChannelCreated||_onChannelCreated(channel),onChangeCreateChannelVisible(!1)},onBeforeCreateChannel:onBeforeCreateChannel,onCreateChannelClick:onCreateChannelClick}))};__webpack_exports__.a=AddGroupChannelView_AddGroupChannelView;try{AddGroupChannelView_AddGroupChannelView.displayName="AddGroupChannelView",AddGroupChannelView_AddGroupChannelView.__docgenInfo={description:"",displayName:"AddGroupChannelView",props:{createChannelVisible:{defaultValue:null,description:"",name:"createChannelVisible",required:!0,type:{name:"boolean"}},onChangeCreateChannelVisible:{defaultValue:null,description:"",name:"onChangeCreateChannelVisible",required:!0,type:{name:"(value: boolean) => void"}},onBeforeCreateChannel:{defaultValue:null,description:"",name:"onBeforeCreateChannel",required:!0,type:{name:"(users: string[]) => GroupChannelCreateParams"}},onCreateChannelClick:{defaultValue:null,description:"",name:"onCreateChannelClick",required:!0,type:{name:"(params: OverrideInviteUserType) => void"}},onChannelCreated:{defaultValue:null,description:"",name:"onChannelCreated",required:!0,type:{name:"(channel: GroupChannel) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannelList/components/AddGroupChannel/AddGroupChannelView.tsx#AddGroupChannelView"]={docgenInfo:AddGroupChannelView_AddGroupChannelView.__docgenInfo,name:"AddGroupChannelView",path:"src/modules/GroupChannelList/components/AddGroupChannel/AddGroupChannelView.tsx#AddGroupChannelView"})}catch(__react_docgen_typescript_loader_error){}},"./src/modules/GroupChannelList/components/GroupChannelListHeader/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/GroupChannelList/components/GroupChannelListHeader/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/GroupChannelList/components/GroupChannelListItem/GroupChannelListItemView.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return GroupChannelListItemView}));__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./src/modules/GroupChannelList/components/GroupChannelListItem/index.scss");var react__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_22___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_22__),_hooks_useSendbirdStateContext__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./src/hooks/useSendbirdStateContext.tsx"),_hooks_useLongPress__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./src/hooks/useLongPress.tsx"),_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./src/lib/LocalizationContext.tsx"),_lib_MediaQueryContext__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./src/lib/MediaQueryContext.tsx"),_utils_utils__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./src/utils/utils.ts"),_utils__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./src/utils/index.ts"),_utils__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./src/modules/GroupChannelList/components/GroupChannelListItem/utils.ts"),_GroupChannel_components_TypingIndicator__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./src/modules/GroupChannel/components/TypingIndicator.tsx"),_ui_Badge__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./src/ui/Badge/index.tsx"),_ui_ChannelAvatar__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("./src/ui/ChannelAvatar/index.tsx"),_ui_Icon__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__("./src/ui/Icon/index.tsx"),_ui_Label__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__("./src/ui/Label/index.tsx"),_ui_MentionUserLabel__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__("./src/ui/MentionUserLabel/index.tsx"),_ui_MessageStatus__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__("./src/ui/MessageStatus/index.tsx"),_ui_Modal__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__("./src/ui/Modal/index.tsx"),_ui_TextButton__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__("./src/ui/TextButton/index.tsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0?react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement(_ui_MentionUserLabel__WEBPACK_IMPORTED_MODULE_35__.a,{className:"sendbird-channel-preview__content__lower__unread-message-count__mention",color:"purple"},"@"):null,Object(_utils__WEBPACK_IMPORTED_MODULE_29__.b)(channel)?react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement(_ui_Badge__WEBPACK_IMPORTED_MODULE_31__.a,{count:Object(_utils__WEBPACK_IMPORTED_MODULE_29__.b)(channel)}):null))),!isMobile&&react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement("div",{className:"sendbird-channel-preview__action"},renderChannelAction({channel:channel}))),showMobileLeave&&isMobile&&react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement(_ui_Modal__WEBPACK_IMPORTED_MODULE_37__.b,{className:"sendbird-channel-preview__leave--mobile",titleText:channelName,hideFooter:!0,isCloseOnClickOutside:!0,onCancel:function onCancel(){return setShowMobileLeave(!1)}},react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement(_ui_TextButton__WEBPACK_IMPORTED_MODULE_38__.a,{onClick:function onClick(){onLeaveChannel(),setShowMobileLeave(!1)},className:"sendbird-channel-preview__leave-label--mobile"},react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement(_ui_Label__WEBPACK_IMPORTED_MODULE_34__.d,{type:_ui_Label__WEBPACK_IMPORTED_MODULE_34__.c.SUBTITLE_1,color:_ui_Label__WEBPACK_IMPORTED_MODULE_34__.a.ONBACKGROUND_1},stringSet.CHANNEL_PREVIEW_MOBILE_LEAVE))))};try{GroupChannelListItemView.displayName="GroupChannelListItemView",GroupChannelListItemView.__docgenInfo={description:"",displayName:"GroupChannelListItemView",props:{channelName:{defaultValue:null,description:"",name:"channelName",required:!0,type:{name:"string"}},isMessageStatusEnabled:{defaultValue:{value:"true"},description:"",name:"isMessageStatusEnabled",required:!1,type:{name:"boolean"}},tabIndex:{defaultValue:null,description:"",name:"tabIndex",required:!0,type:{name:"number"}},channel:{defaultValue:null,description:"",name:"channel",required:!0,type:{name:"GroupChannel"}},onClick:{defaultValue:{value:"() => { /** noop * */ }"},description:"",name:"onClick",required:!1,type:{name:"() => void"}},renderChannelAction:{defaultValue:null,description:"",name:"renderChannelAction",required:!0,type:{name:"(props: GroupChannelPreviewActionProps) => ReactElement>"}},isSelected:{defaultValue:null,description:"",name:"isSelected",required:!1,type:{name:"boolean"}},isTyping:{defaultValue:null,description:"",name:"isTyping",required:!1,type:{name:"boolean"}},onLeaveChannel:{defaultValue:{value:"() => Promise.resolve()"},description:"",name:"onLeaveChannel",required:!1,type:{name:"() => Promise"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannelList/components/GroupChannelListItem/GroupChannelListItemView.tsx#GroupChannelListItemView"]={docgenInfo:GroupChannelListItemView.__docgenInfo,name:"GroupChannelListItemView",path:"src/modules/GroupChannelList/components/GroupChannelListItem/GroupChannelListItemView.tsx#GroupChannelListItemView"})}catch(__react_docgen_typescript_loader_error){}},"./src/modules/GroupChannelList/components/GroupChannelListItem/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/GroupChannelList/components/GroupChannelListItem/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/GroupChannelList/components/GroupChannelListItem/utils.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return getChannelTitle})),__webpack_require__.d(__webpack_exports__,"d",(function(){return getLastMessageCreatedAt})),__webpack_require__.d(__webpack_exports__,"e",(function(){return getTotalMembers})),__webpack_require__.d(__webpack_exports__,"c",(function(){return getLastMessage})),__webpack_require__.d(__webpack_exports__,"b",(function(){return getChannelUnreadMessageCount}));__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js");var date_fns_isToday__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/date-fns/esm/isToday/index.js"),date_fns_format__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/date-fns/esm/format/index.js"),date_fns_isThisYear__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/date-fns/esm/isThisYear/index.js"),date_fns_isYesterday__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/date-fns/esm/isYesterday/index.js"),_utils__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/utils/index.ts"),_ui_Label__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./src/ui/Label/index.tsx"),getChannelTitle=function getChannelTitle(channel,currentUserId){var _channel$members,stringSet=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_ui_Label__WEBPACK_IMPORTED_MODULE_9__.b;return null!=channel&&channel.name||null!=channel&&channel.members?null!=channel&&channel.name&&"Group Channel"!==channel.name?channel.name:1===(null==channel||null===(_channel$members=channel.members)||void 0===_channel$members?void 0:_channel$members.length)?stringSet.NO_MEMBERS:((null==channel?void 0:channel.members)||[]).filter((function(_ref){return _ref.userId!==currentUserId})).map((function(_ref2){return _ref2.nickname||stringSet.NO_NAME})).join(", "):stringSet.NO_TITLE},getLastMessageCreatedAt=function getLastMessageCreatedAt(_ref3){var _channel$lastMessage,channel=_ref3.channel,locale=_ref3.locale,_ref3$stringSet=_ref3.stringSet,stringSet=void 0===_ref3$stringSet?_ui_Label__WEBPACK_IMPORTED_MODULE_9__.b:_ref3$stringSet,createdAt=null==channel||null===(_channel$lastMessage=channel.lastMessage)||void 0===_channel$lastMessage?void 0:_channel$lastMessage.createdAt,optionalParam=locale?{locale:locale}:null;return createdAt?Object(date_fns_isToday__WEBPACK_IMPORTED_MODULE_4__.a)(createdAt)?Object(date_fns_format__WEBPACK_IMPORTED_MODULE_5__.a)(createdAt,"p",optionalParam):Object(date_fns_isYesterday__WEBPACK_IMPORTED_MODULE_7__.a)(createdAt)?stringSet.MESSAGE_STATUS__YESTERDAY||"Yesterday":Object(date_fns_isThisYear__WEBPACK_IMPORTED_MODULE_6__.a)(createdAt)?Object(date_fns_format__WEBPACK_IMPORTED_MODULE_5__.a)(createdAt,"MMM d",optionalParam):Object(date_fns_format__WEBPACK_IMPORTED_MODULE_5__.a)(createdAt,"yyyy/M/d",optionalParam):""},getTotalMembers=function getTotalMembers(channel){return null!=channel&&channel.memberCount?channel.memberCount:0},getChannelPreviewFileDisplayString=function getChannelPreviewFileDisplayString(mimeType){var _stringSet$CHANNEL_PR6,_stringSet$CHANNEL_PR,_stringSet$CHANNEL_PR2,_stringSet$CHANNEL_PR3,_stringSet$CHANNEL_PR4,_stringSet$CHANNEL_PR5,stringSet=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_ui_Label__WEBPACK_IMPORTED_MODULE_9__.b;return Object(_utils__WEBPACK_IMPORTED_MODULE_8__.A)(mimeType)?null!==(_stringSet$CHANNEL_PR=null==stringSet?void 0:stringSet.CHANNEL_PREVIEW_LAST_MESSAGE_FILE_TYPE_GIF)&&void 0!==_stringSet$CHANNEL_PR?_stringSet$CHANNEL_PR:"":Object(_utils__WEBPACK_IMPORTED_MODULE_8__.C)(mimeType)?null!==(_stringSet$CHANNEL_PR2=null==stringSet?void 0:stringSet.CHANNEL_PREVIEW_LAST_MESSAGE_FILE_TYPE_PHOTO)&&void 0!==_stringSet$CHANNEL_PR2?_stringSet$CHANNEL_PR2:"":Object(_utils__WEBPACK_IMPORTED_MODULE_8__.U)(mimeType)?null!==(_stringSet$CHANNEL_PR3=null==stringSet?void 0:stringSet.CHANNEL_PREVIEW_LAST_MESSAGE_FILE_TYPE_VIDEO)&&void 0!==_stringSet$CHANNEL_PR3?_stringSet$CHANNEL_PR3:"":Object(_utils__WEBPACK_IMPORTED_MODULE_8__.v)(mimeType)?null!==(_stringSet$CHANNEL_PR4=null==stringSet?void 0:stringSet.CHANNEL_PREVIEW_LAST_MESSAGE_FILE_TYPE_AUDIO)&&void 0!==_stringSet$CHANNEL_PR4?_stringSet$CHANNEL_PR4:"":Object(_utils__WEBPACK_IMPORTED_MODULE_8__.X)(mimeType)?null!==(_stringSet$CHANNEL_PR5=null==stringSet?void 0:stringSet.CHANNEL_PREVIEW_LAST_MESSAGE_FILE_TYPE_VOICE_MESSAGE)&&void 0!==_stringSet$CHANNEL_PR5?_stringSet$CHANNEL_PR5:"":null!==(_stringSet$CHANNEL_PR6=null==stringSet?void 0:stringSet.CHANNEL_PREVIEW_LAST_MESSAGE_FILE_TYPE_GENERAL)&&void 0!==_stringSet$CHANNEL_PR6?_stringSet$CHANNEL_PR6:""},getLastMessage=function getLastMessage(channel){var stringSet=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_ui_Label__WEBPACK_IMPORTED_MODULE_9__.b;return null!=channel&&channel.lastMessage?function getPrettyLastMessage(){var _message$message,message=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,stringSet=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_ui_Label__WEBPACK_IMPORTED_MODULE_9__.b;if(!message)return"";if(Object(_utils__WEBPACK_IMPORTED_MODULE_8__.O)(message))return stringSet.CHANNEL_PREVIEW_LAST_MESSAGE_TEMPLATE_MESSAGE;if(message.isFileMessage())return getChannelPreviewFileDisplayString(message.type,stringSet);if(message.isMultipleFilesMessage()){var _message$fileInfoList,_stringSet$CHANNEL_PR7,mimeType=null===(_message$fileInfoList=message.fileInfoList)||void 0===_message$fileInfoList||null===(_message$fileInfoList=_message$fileInfoList[0])||void 0===_message$fileInfoList?void 0:_message$fileInfoList.mimeType;return Object(_utils__WEBPACK_IMPORTED_MODULE_8__.C)(mimeType)||Object(_utils__WEBPACK_IMPORTED_MODULE_8__.A)(mimeType)?null!==(_stringSet$CHANNEL_PR7=null==stringSet?void 0:stringSet.CHANNEL_PREVIEW_LAST_MESSAGE_FILE_TYPE_PHOTO)&&void 0!==_stringSet$CHANNEL_PR7?_stringSet$CHANNEL_PR7:"":getChannelPreviewFileDisplayString(mimeType,stringSet)}return null!==(_message$message=message.message)&&void 0!==_message$message?_message$message:""}(null==channel?void 0:channel.lastMessage,stringSet):""},getChannelUnreadMessageCount=function getChannelUnreadMessageCount(channel){return null!=channel&&channel.unreadMessageCount?channel.unreadMessageCount:0}},"./src/modules/GroupChannelList/components/GroupChannelListUI/GroupChannelListUIView.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return GroupChannelListUIView_GroupChannelListUIView}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./src/modules/GroupChannelList/components/GroupChannelListUI/index.scss");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),useSendbirdStateContext=(__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./src/modules/GroupChannelList/components/GroupChannelListHeader/index.scss"),__webpack_require__("./src/hooks/useSendbirdStateContext.tsx")),LocalizationContext=__webpack_require__("./src/lib/LocalizationContext.tsx"),Avatar=__webpack_require__("./src/ui/Avatar/index.tsx"),Label=__webpack_require__("./src/ui/Label/index.tsx"),GroupChannelListHeader_GroupChannelListHeader=function GroupChannelListHeader(_ref){var renderTitle=_ref.renderTitle,renderIconButton=_ref.renderIconButton,onEdit=_ref.onEdit,allowProfileEdit=_ref.allowProfileEdit,user=Object(useSendbirdStateContext.a)().stores.userStore.user,stringSet=Object(LocalizationContext.c)().stringSet;return react_default.a.createElement("div",{className:["sendbird-channel-header",allowProfileEdit?"sendbird-channel-header--allow-edit":""].join(" ")},(null==renderTitle?void 0:renderTitle())||react_default.a.createElement("div",{className:"sendbird-channel-header__title",role:"button",onClick:function onClick(){null==onEdit||onEdit()},onKeyDown:function onKeyDown(){null==onEdit||onEdit()},tabIndex:0},react_default.a.createElement("div",{className:"sendbird-channel-header__title__left"},react_default.a.createElement(Avatar.a,{width:"32px",height:"32px",src:user.profileUrl,alt:user.nickname})),react_default.a.createElement("div",{className:"sendbird-channel-header__title__right"},react_default.a.createElement(Label.d,{className:"sendbird-channel-header__title__right__name",type:Label.c.SUBTITLE_2,color:Label.a.ONBACKGROUND_1},user.nickname||stringSet.NO_NAME),react_default.a.createElement(Label.d,{className:"sendbird-channel-header__title__right__user-id",type:Label.c.BODY_2,color:Label.a.ONBACKGROUND_2},user.userId))),react_default.a.createElement("div",{className:"sendbird-channel-header__right-icon"},null==renderIconButton?void 0:renderIconButton()))},GroupChannelList_components_GroupChannelListHeader=GroupChannelListHeader_GroupChannelListHeader;try{GroupChannelListHeader_GroupChannelListHeader.displayName="GroupChannelListHeader",GroupChannelListHeader_GroupChannelListHeader.__docgenInfo={description:"",displayName:"GroupChannelListHeader",props:{renderTitle:{defaultValue:null,description:"",name:"renderTitle",required:!1,type:{name:"() => ReactElement>"}},renderIconButton:{defaultValue:null,description:"",name:"renderIconButton",required:!1,type:{name:"(props: void) => ReactElement>"}},onEdit:{defaultValue:null,description:"",name:"onEdit",required:!1,type:{name:"(props: void) => void"}},allowProfileEdit:{defaultValue:null,description:"",name:"allowProfileEdit",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannelList/components/GroupChannelListHeader/index.tsx#GroupChannelListHeader"]={docgenInfo:GroupChannelListHeader_GroupChannelListHeader.__docgenInfo,name:"GroupChannelListHeader",path:"src/modules/GroupChannelList/components/GroupChannelListHeader/index.tsx#GroupChannelListHeader"})}catch(__react_docgen_typescript_loader_error){}var EditUserProfileProviderContext=react_default.a.createContext(void 0),EditUserProfileProvider_EditUserProfileProvider=function EditUserProfileProvider(props){var children=props.children,onEditProfile=props.onEditProfile,onCancel=props.onCancel,onThemeChange=props.onThemeChange,value=Object(react.useMemo)((function(){return{onEditProfile:onEditProfile,onCancel:onCancel,onThemeChange:onThemeChange}}),[]);return react_default.a.createElement(EditUserProfileProviderContext.Provider,{value:value},children)};try{EditUserProfileProvider_EditUserProfileProvider.displayName="EditUserProfileProvider",EditUserProfileProvider_EditUserProfileProvider.__docgenInfo={description:"",displayName:"EditUserProfileProvider",props:{onCancel:{defaultValue:null,description:"",name:"onCancel",required:!1,type:{name:"() => void"}},onThemeChange:{defaultValue:null,description:"",name:"onThemeChange",required:!1,type:{name:"(theme: string) => void"}},onEditProfile:{defaultValue:null,description:"",name:"onEditProfile",required:!1,type:{name:"(updatedUser: User) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/EditUserProfile/context/EditUserProfileProvider.tsx#EditUserProfileProvider"]={docgenInfo:EditUserProfileProvider_EditUserProfileProvider.__docgenInfo,name:"EditUserProfileProvider",path:"src/modules/EditUserProfile/context/EditUserProfileProvider.tsx#EditUserProfileProvider"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./src/modules/EditUserProfile/components/EditUserProfileUI/edit-user-profile.scss");var actionTypes=__webpack_require__("./src/lib/dux/user/actionTypes.ts"),Modal=__webpack_require__("./src/ui/Modal/index.tsx"),Button=__webpack_require__("./src/ui/Button/index.tsx"),Input=(__webpack_require__("./node_modules/core-js/modules/web.url.js"),__webpack_require__("./src/ui/Input/index.tsx")),TextButton=__webpack_require__("./src/ui/TextButton/index.tsx"),Icon=__webpack_require__("./src/ui/Icon/index.tsx");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i"}},inputRef:{defaultValue:null,description:"",name:"inputRef",required:!0,type:{name:"MutableRefObject"}},onThemeChange:{defaultValue:null,description:"",name:"onThemeChange",required:!0,type:{name:"(theme: string) => void"}},setProfileImage:{defaultValue:null,description:"",name:"setProfileImage",required:!0,type:{name:"Dispatch"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/EditUserProfile/components/EditUserProfileUI/EditUserProfileUIView.tsx#EditUserProfileUIView"]={docgenInfo:EditUserProfileUIView_EditUserProfileUIView.__docgenInfo,name:"EditUserProfileUIView",path:"src/modules/EditUserProfile/components/EditUserProfileUI/EditUserProfileUIView.tsx#EditUserProfileUIView"})}catch(__react_docgen_typescript_loader_error){}function EditUserProfileUI_slicedToArray(arr,i){return function EditUserProfileUI_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function EditUserProfileUI_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function EditUserProfileUI_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return EditUserProfileUI_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EditUserProfileUI_arrayLikeToArray(o,minLen)}(arr,i)||function EditUserProfileUI_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function EditUserProfileUI_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/EditUserProfile/components/EditUserProfileUI/index.tsx#useEditUserProfileUISates"]={docgenInfo:EditUserProfileUI_useEditUserProfileUISates.__docgenInfo,name:"useEditUserProfileUISates",path:"src/modules/EditUserProfile/components/EditUserProfileUI/index.tsx#useEditUserProfileUISates"})}catch(__react_docgen_typescript_loader_error){}try{EditUserProfileUIView.displayName="EditUserProfileUIView",EditUserProfileUIView.__docgenInfo={description:"",displayName:"EditUserProfileUIView",props:{formRef:{defaultValue:null,description:"",name:"formRef",required:!0,type:{name:"MutableRefObject"}},inputRef:{defaultValue:null,description:"",name:"inputRef",required:!0,type:{name:"MutableRefObject"}},onThemeChange:{defaultValue:null,description:"",name:"onThemeChange",required:!0,type:{name:"(theme: string) => void"}},setProfileImage:{defaultValue:null,description:"",name:"setProfileImage",required:!0,type:{name:"Dispatch"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/EditUserProfile/components/EditUserProfileUI/index.tsx#EditUserProfileUIView"]={docgenInfo:EditUserProfileUIView.__docgenInfo,name:"EditUserProfileUIView",path:"src/modules/EditUserProfile/components/EditUserProfileUI/index.tsx#EditUserProfileUIView"})}catch(__react_docgen_typescript_loader_error){}var EditUserProfile_EditUserProfile=function EditUserProfile(props){var onEditProfile=props.onEditProfile,onCancel=props.onCancel,onThemeChange=props.onThemeChange;return react_default.a.createElement(EditUserProfileProvider_EditUserProfileProvider,{onEditProfile:onEditProfile,onCancel:onCancel,onThemeChange:onThemeChange},react_default.a.createElement(components_EditUserProfileUI,null))},modules_EditUserProfile=EditUserProfile_EditUserProfile;try{EditUserProfile_EditUserProfile.displayName="EditUserProfile",EditUserProfile_EditUserProfile.__docgenInfo={description:"",displayName:"EditUserProfile",props:{onCancel:{defaultValue:null,description:"",name:"onCancel",required:!1,type:{name:"() => void"}},onThemeChange:{defaultValue:null,description:"",name:"onThemeChange",required:!1,type:{name:"(theme: string) => void"}},onEditProfile:{defaultValue:null,description:"",name:"onEditProfile",required:!1,type:{name:"(updatedUser: User) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/EditUserProfile/index.tsx#EditUserProfile"]={docgenInfo:EditUserProfile_EditUserProfile.__docgenInfo,name:"EditUserProfile",path:"src/modules/EditUserProfile/index.tsx#EditUserProfile"})}catch(__react_docgen_typescript_loader_error){}var PlaceHolder=__webpack_require__("./src/ui/PlaceHolder/index.tsx"),useOnScrollReachedEndDetector=__webpack_require__("./src/hooks/useOnScrollReachedEndDetector/index.ts");function GroupChannelListUIView_slicedToArray(arr,i){return function GroupChannelListUIView_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function GroupChannelListUIView_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function GroupChannelListUIView_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return GroupChannelListUIView_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GroupChannelListUIView_arrayLikeToArray(o,minLen)}(arr,i)||function GroupChannelListUIView_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function GroupChannelListUIView_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i ReactElement>"}},renderPlaceHolderError:{defaultValue:null,description:"",name:"renderPlaceHolderError",required:!1,type:{name:"(props: void) => ReactElement>"}},renderPlaceHolderLoading:{defaultValue:null,description:"",name:"renderPlaceHolderLoading",required:!1,type:{name:"(props: void) => ReactElement>"}},renderPlaceHolderEmptyList:{defaultValue:null,description:"",name:"renderPlaceHolderEmptyList",required:!1,type:{name:"(props: void) => ReactElement>"}},onChangeTheme:{defaultValue:null,description:"",name:"onChangeTheme",required:!0,type:{name:"(theme: string) => void"}},onUserProfileUpdated:{defaultValue:null,description:"",name:"onUserProfileUpdated",required:!0,type:{name:"(user: User) => void"}},allowProfileEdit:{defaultValue:null,description:"",name:"allowProfileEdit",required:!0,type:{name:"boolean"}},channels:{defaultValue:null,description:"",name:"channels",required:!0,type:{name:"GroupChannel[]"}},onLoadMore:{defaultValue:null,description:"",name:"onLoadMore",required:!0,type:{name:"() => void"}},initialized:{defaultValue:null,description:"",name:"initialized",required:!0,type:{name:"boolean"}},renderChannel:{defaultValue:null,description:"",name:"renderChannel",required:!0,type:{name:"(props: { item: GroupChannel; index: number; }) => ReactElement>"}},renderAddChannel:{defaultValue:null,description:"",name:"renderAddChannel",required:!0,type:{name:"() => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannelList/components/GroupChannelListUI/GroupChannelListUIView.tsx#GroupChannelListUIView"]={docgenInfo:GroupChannelListUIView_GroupChannelListUIView.__docgenInfo,name:"GroupChannelListUIView",path:"src/modules/GroupChannelList/components/GroupChannelListUI/GroupChannelListUIView.tsx#GroupChannelListUIView"})}catch(__react_docgen_typescript_loader_error){}},"./src/modules/GroupChannelList/components/GroupChannelListUI/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/GroupChannelList/components/GroupChannelListUI/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/GroupChannelList/components/GroupChannelPreviewAction.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),LocalizationContext=__webpack_require__("./src/lib/LocalizationContext.tsx"),ContextMenu=__webpack_require__("./src/ui/ContextMenu/index.tsx"),IconButton=__webpack_require__("./src/ui/IconButton/index.tsx"),Icon=__webpack_require__("./src/ui/Icon/index.tsx"),Modal=__webpack_require__("./src/ui/Modal/index.tsx"),useSendbirdStateContext=__webpack_require__("./src/hooks/useSendbirdStateContext.tsx"),LeaveGroupChannel_LeaveGroupChannel=function LeaveGroupChannel(_ref){var channel=_ref.channel,_onSubmit=_ref.onSubmit,onCancel=_ref.onCancel,config=Object(useSendbirdStateContext.a)().config,logger=config.logger,isOnline=config.isOnline,stringSet=Object(LocalizationContext.c)().stringSet;if(channel)return react_default.a.createElement(Modal.b,{disabled:!isOnline,onCancel:onCancel,onSubmit:function onSubmit(){logger.info("LeaveGroupChannel: Leaving channel",channel),channel.leave().then((function(){logger.info("LeaveGroupChannel: Leaving channel successful!",channel),_onSubmit()}))},submitText:stringSet.MODAL__LEAVE_CHANNEL__FOOTER,titleText:stringSet.MODAL__LEAVE_CHANNEL__TITLE})},components_LeaveGroupChannel=LeaveGroupChannel_LeaveGroupChannel;try{LeaveGroupChannel_LeaveGroupChannel.displayName="LeaveGroupChannel",LeaveGroupChannel_LeaveGroupChannel.__docgenInfo={description:"",displayName:"LeaveGroupChannel",props:{channel:{defaultValue:null,description:"",name:"channel",required:!1,type:{name:"GroupChannel"}},onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!1,type:{name:"() => void"}},onCancel:{defaultValue:null,description:"",name:"onCancel",required:!1,type:{name:"() => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannelList/components/LeaveGroupChannel/index.tsx#LeaveGroupChannel"]={docgenInfo:LeaveGroupChannel_LeaveGroupChannel.__docgenInfo,name:"LeaveGroupChannel",path:"src/modules/GroupChannelList/components/LeaveGroupChannel/index.tsx#LeaveGroupChannel"})}catch(__react_docgen_typescript_loader_error){}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i Promise"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannelList/components/GroupChannelPreviewAction.tsx#GroupChannelPreviewAction"]={docgenInfo:GroupChannelPreviewAction.__docgenInfo,name:"GroupChannelPreviewAction",path:"src/modules/GroupChannelList/components/GroupChannelPreviewAction.tsx#GroupChannelPreviewAction"})}catch(__react_docgen_typescript_loader_error){}},"./src/modules/GroupChannelList/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),_bundle_17fdda58=(__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-17fdda58.js")),esm=__webpack_require__("./node_modules/@sendbird/uikit-tools/dist/esm/index.js"),useSendbirdStateContext=__webpack_require__("./src/hooks/useSendbirdStateContext.tsx"),UserProfileContext=__webpack_require__("./src/lib/UserProfileContext.tsx"),useMarkAsDeliveredScheduler=__webpack_require__("./src/lib/hooks/useMarkAsDeliveredScheduler.ts"),useOnlineStatus=__webpack_require__("./src/lib/hooks/useOnlineStatus.ts"),utils=__webpack_require__("./src/utils/utils.ts");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;rarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0?setTypingChannelUrls(channelList.concat(channel.url)):setTypingChannelUrls(channelList)}}),react_default.a.createElement(GroupChannelListContext.Provider,{value:{className:className,selectedChannelUrl:selectedChannelUrl,allowProfileEdit:null!=allowProfileEdit?allowProfileEdit:null==config?void 0:config.allowProfileEdit,disableAutoSelect:disableAutoSelect,isTypingIndicatorEnabled:null!=isTypingIndicatorEnabled?isTypingIndicatorEnabled:isTypingIndicatorEnabledOnChannelList,isMessageReceiptStatusEnabled:null!=isMessageReceiptStatusEnabled?isMessageReceiptStatusEnabled:isMessageReceiptStatusEnabledOnChannelList,onChannelSelect:onChannelSelect,onChannelCreated:onChannelCreated,onThemeChange:onThemeChange,onCreateChannelClick:onCreateChannelClick,onBeforeCreateChannel:onBeforeCreateChannel,onUserProfileUpdated:onUserProfileUpdated,typingChannelUrls:typingChannelUrls,refreshing:refreshing,initialized:initialized,groupChannels:groupChannels,refresh:refresh,loadMore:loadMore}},react_default.a.createElement(UserProfileContext.b,{disableUserProfile:null!=disableUserProfile?disableUserProfile:null==config?void 0:config.disableUserProfile,renderUserProfile:null!=renderUserProfile?renderUserProfile:null==config?void 0:config.renderUserProfile,onUserProfileMessage:null!=onUserProfileMessage?onUserProfileMessage:null==config?void 0:config.onUserProfileMessage},react_default.a.createElement("div",{className:"sendbird-channel-list ".concat(className)},children)))},GroupChannelListProvider_useGroupChannelListContext=function useGroupChannelListContext(){var context=Object(react.useContext)(GroupChannelListContext);if(!context)throw new Error("GroupChannelListContext not found. Use within the GroupChannelList module.");return context};function getCollectionCreator(sdk,channelListQueryParams){return function(defaultParams){var params=_objectSpread(_objectSpread({},defaultParams),channelListQueryParams);return sdk.groupChannel.createGroupChannelCollection(_objectSpread(_objectSpread({},params),{},{filter:new _bundle_17fdda58.f(params)}))}}try{GroupChannelListProvider_GroupChannelListProvider.displayName="GroupChannelListProvider",GroupChannelListProvider_GroupChannelListProvider.__docgenInfo={description:"",displayName:"GroupChannelListProvider",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string | string[]"}},allowProfileEdit:{defaultValue:null,description:"",name:"allowProfileEdit",required:!1,type:{name:"boolean"}},disableAutoSelect:{defaultValue:null,description:"",name:"disableAutoSelect",required:!1,type:{name:"boolean"}},onBeforeCreateChannel:{defaultValue:null,description:"",name:"onBeforeCreateChannel",required:!1,type:{name:"(users: string[]) => GroupChannelCreateParams"}},onThemeChange:{defaultValue:null,description:"",name:"onThemeChange",required:!1,type:{name:"(theme: string) => void"}},isTypingIndicatorEnabled:{defaultValue:null,description:"",name:"isTypingIndicatorEnabled",required:!1,type:{name:"boolean"}},isMessageReceiptStatusEnabled:{defaultValue:null,description:"",name:"isMessageReceiptStatusEnabled",required:!1,type:{name:"boolean"}},selectedChannelUrl:{defaultValue:null,description:"",name:"selectedChannelUrl",required:!1,type:{name:"string"}},channelListQueryParams:{defaultValue:null,description:"",name:"channelListQueryParams",required:!1,type:{name:"ChannelListQueryParamsType"}},onCreateChannelClick:{defaultValue:null,description:"",name:"onCreateChannelClick",required:!1,type:{name:"(params: OnCreateChannelClickParams) => void"}},onUserProfileUpdated:{defaultValue:null,description:"",name:"onUserProfileUpdated",required:!1,type:{name:"(user: User) => void"}},onChannelSelect:{defaultValue:null,description:"",name:"onChannelSelect",required:!0,type:{name:"(channel: GroupChannel) => void"}},onChannelCreated:{defaultValue:null,description:"",name:"onChannelCreated",required:!0,type:{name:"(channel: GroupChannel) => void"}},disableUserProfile:{defaultValue:null,description:"",name:"disableUserProfile",required:!1,type:{name:"boolean"}},renderUserProfile:{defaultValue:null,description:"",name:"renderUserProfile",required:!1,type:{name:"(props: RenderUserProfileProps) => ReactElement>"}},onUserProfileMessage:{defaultValue:null,description:"",name:"onUserProfileMessage",required:!1,type:{name:"(channel: GroupChannel) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannelList/context/GroupChannelListProvider.tsx#GroupChannelListProvider"]={docgenInfo:GroupChannelListProvider_GroupChannelListProvider.__docgenInfo,name:"GroupChannelListProvider",path:"src/modules/GroupChannelList/context/GroupChannelListProvider.tsx#GroupChannelListProvider"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.async-iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.math.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.json.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./src/modules/GroupChannelList/components/GroupChannelListUI/index.scss");var GroupChannelListUIView=__webpack_require__("./src/modules/GroupChannelList/components/GroupChannelListUI/GroupChannelListUIView.tsx"),GroupChannelPreviewAction=__webpack_require__("./src/modules/GroupChannelList/components/GroupChannelPreviewAction.tsx"),GroupChannelListItem_utils=__webpack_require__("./src/modules/GroupChannelList/components/GroupChannelListItem/utils.ts"),LocalizationContext=__webpack_require__("./src/lib/LocalizationContext.tsx"),GroupChannelListItemView=__webpack_require__("./src/modules/GroupChannelList/components/GroupChannelListItem/GroupChannelListItemView.tsx"),GroupChannelListItem_GroupChannelListItem=function GroupChannelListItem(_ref){var _channel$lastMessage,_channel$lastMessage2,channel=_ref.channel,isSelected=_ref.isSelected,isTyping=_ref.isTyping,renderChannelAction=_ref.renderChannelAction,onLeaveChannel=_ref.onLeaveChannel,onClick=_ref.onClick,tabIndex=_ref.tabIndex,config=Object(useSendbirdStateContext.a)().config,stringSet=Object(LocalizationContext.c)().stringSet,_useGroupChannelListC=GroupChannelListProvider_useGroupChannelListContext(),_useGroupChannelListC2=_useGroupChannelListC.isTypingIndicatorEnabled,isTypingIndicatorEnabled=void 0!==_useGroupChannelListC2&&_useGroupChannelListC2,_useGroupChannelListC3=_useGroupChannelListC.isMessageReceiptStatusEnabled,isMessageReceiptStatusEnabled=void 0!==_useGroupChannelListC3&&_useGroupChannelListC3,userId=config.userId,isMessageStatusEnabled=isMessageReceiptStatusEnabled&&!(null!==(_channel$lastMessage=channel.lastMessage)&&void 0!==_channel$lastMessage&&_channel$lastMessage.isAdminMessage())&&(null===(_channel$lastMessage2=channel.lastMessage)||void 0===_channel$lastMessage2||null===(_channel$lastMessage2=_channel$lastMessage2.sender)||void 0===_channel$lastMessage2?void 0:_channel$lastMessage2.userId)===userId;return react_default.a.createElement(GroupChannelListItemView.a,{channel:channel,tabIndex:tabIndex,channelName:GroupChannelListItem_utils.a(channel,userId,stringSet),isTyping:isTypingIndicatorEnabled&&isTyping,isSelected:isSelected,isMessageStatusEnabled:isMessageStatusEnabled,onClick:onClick,onLeaveChannel:onLeaveChannel,renderChannelAction:renderChannelAction})};try{GroupChannelListItem_GroupChannelListItem.displayName="GroupChannelListItem",GroupChannelListItem_GroupChannelListItem.__docgenInfo={description:"",displayName:"GroupChannelListItem",props:{tabIndex:{defaultValue:null,description:"",name:"tabIndex",required:!0,type:{name:"number"}},channel:{defaultValue:null,description:"",name:"channel",required:!0,type:{name:"GroupChannel"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!0,type:{name:"() => void"}},renderChannelAction:{defaultValue:null,description:"",name:"renderChannelAction",required:!0,type:{name:"(props: GroupChannelPreviewActionProps) => ReactElement>"}},isSelected:{defaultValue:null,description:"",name:"isSelected",required:!1,type:{name:"boolean"}},isTyping:{defaultValue:null,description:"",name:"isTyping",required:!1,type:{name:"boolean"}},onLeaveChannel:{defaultValue:null,description:"",name:"onLeaveChannel",required:!1,type:{name:"() => Promise"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannelList/components/GroupChannelListItem/index.tsx#GroupChannelListItem"]={docgenInfo:GroupChannelListItem_GroupChannelListItem.__docgenInfo,name:"GroupChannelListItem",path:"src/modules/GroupChannelList/components/GroupChannelListItem/index.tsx#GroupChannelListItem"})}catch(__react_docgen_typescript_loader_error){}var AddGroupChannelView=__webpack_require__("./src/modules/GroupChannelList/components/AddGroupChannel/AddGroupChannelView.tsx");function AddGroupChannel_slicedToArray(arr,i){return function AddGroupChannel_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function AddGroupChannel_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function AddGroupChannel_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return AddGroupChannel_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AddGroupChannel_arrayLikeToArray(o,minLen)}(arr,i)||function AddGroupChannel_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AddGroupChannel_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}var GroupChannelListUI_GroupChannelListUI=function GroupChannelListUI(props){var renderHeader=props.renderHeader,renderChannelPreview=props.renderChannelPreview,renderPlaceHolderError=props.renderPlaceHolderError,renderPlaceHolderLoading=props.renderPlaceHolderLoading,renderPlaceHolderEmptyList=props.renderPlaceHolderEmptyList,_useGroupChannelListC=GroupChannelListProvider_useGroupChannelListContext(),onChannelSelect=_useGroupChannelListC.onChannelSelect,onThemeChange=_useGroupChannelListC.onThemeChange,allowProfileEdit=_useGroupChannelListC.allowProfileEdit,typingChannelUrls=_useGroupChannelListC.typingChannelUrls,groupChannels=_useGroupChannelListC.groupChannels,initialized=_useGroupChannelListC.initialized,selectedChannelUrl=_useGroupChannelListC.selectedChannelUrl,loadMore=_useGroupChannelListC.loadMore,onUserProfileUpdated=_useGroupChannelListC.onUserProfileUpdated,_useSendbirdStateCont=Object(useSendbirdStateContext.a)(),stores=_useSendbirdStateCont.stores,config=_useSendbirdStateCont.config,logger=config.logger,isOnline=config.isOnline,sdk=stores.sdkStore.sdk;return react_default.a.createElement(GroupChannelListUIView.a,{renderHeader:renderHeader,renderChannel:function renderListItem(renderProps){var channel=renderProps.item,index=renderProps.index,itemProps={channel:channel,tabIndex:index,isSelected:channel.url===selectedChannelUrl,isTyping:typingChannelUrls.includes(channel.url),renderChannelAction:function renderChannelAction(props){return react_default.a.createElement(GroupChannelPreviewAction.a,props)},onClick:function onClick(){isOnline||null!=sdk&&sdk.isCacheEnabled?(logger.info("ChannelList: Clicked on channel:",channel),onChannelSelect(channel)):logger.warning("ChannelList: Inactivated clicking channel item during offline.")},onLeaveChannel:function onLeaveChannel(){return function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}(_regeneratorRuntime().mark((function _callee(){return _regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return logger.info("ChannelList: Leaving channel",channel),_context.next=3,channel.leave();case 3:logger.info("ChannelList: Leaving channel success");case 4:case"end":return _context.stop()}}),_callee)})))()}};return renderChannelPreview?react_default.a.createElement("div",{key:channel.url,onClick:itemProps.onClick},renderChannelPreview(itemProps)):react_default.a.createElement(GroupChannelListItem_GroupChannelListItem,_extends({key:channel.url},itemProps))},renderPlaceHolderError:renderPlaceHolderError,renderPlaceHolderLoading:renderPlaceHolderLoading,renderPlaceHolderEmptyList:renderPlaceHolderEmptyList,onChangeTheme:onThemeChange,allowProfileEdit:allowProfileEdit,onUserProfileUpdated:onUserProfileUpdated,channels:groupChannels,onLoadMore:loadMore,initialized:initialized,renderAddChannel:function renderAddChannel(){return react_default.a.createElement(components_AddGroupChannel,null)}})},GroupChannelList_components_GroupChannelListUI=GroupChannelListUI_GroupChannelListUI;try{GroupChannelListUI_GroupChannelListUI.displayName="GroupChannelListUI",GroupChannelListUI_GroupChannelListUI.__docgenInfo={description:"",displayName:"GroupChannelListUI",props:{renderChannelPreview:{defaultValue:null,description:"",name:"renderChannelPreview",required:!1,type:{name:"(props: GroupChannelItemProps) => ReactElement>"}},renderHeader:{defaultValue:null,description:"",name:"renderHeader",required:!1,type:{name:"(props: void) => ReactElement>"}},renderPlaceHolderError:{defaultValue:null,description:"",name:"renderPlaceHolderError",required:!1,type:{name:"(props: void) => ReactElement>"}},renderPlaceHolderLoading:{defaultValue:null,description:"",name:"renderPlaceHolderLoading",required:!1,type:{name:"(props: void) => ReactElement>"}},renderPlaceHolderEmptyList:{defaultValue:null,description:"",name:"renderPlaceHolderEmptyList",required:!1,type:{name:"(props: void) => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannelList/components/GroupChannelListUI/index.tsx#GroupChannelListUI"]={docgenInfo:GroupChannelListUI_GroupChannelListUI.__docgenInfo,name:"GroupChannelListUI",path:"src/modules/GroupChannelList/components/GroupChannelListUI/index.tsx#GroupChannelListUI"})}catch(__react_docgen_typescript_loader_error){}var GroupChannelList_GroupChannelList=function GroupChannelList(props){return react_default.a.createElement(GroupChannelListProvider_GroupChannelListProvider,props,react_default.a.createElement(GroupChannelList_components_GroupChannelListUI,props))};__webpack_exports__.a=GroupChannelList_GroupChannelList;try{GroupChannelList_GroupChannelList.displayName="GroupChannelList",GroupChannelList_GroupChannelList.__docgenInfo={description:"",displayName:"GroupChannelList",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string | string[]"}},allowProfileEdit:{defaultValue:null,description:"",name:"allowProfileEdit",required:!1,type:{name:"boolean"}},disableAutoSelect:{defaultValue:null,description:"",name:"disableAutoSelect",required:!1,type:{name:"boolean"}},onBeforeCreateChannel:{defaultValue:null,description:"",name:"onBeforeCreateChannel",required:!1,type:{name:"(users: string[]) => GroupChannelCreateParams"}},onThemeChange:{defaultValue:null,description:"",name:"onThemeChange",required:!1,type:{name:"(theme: string) => void"}},isTypingIndicatorEnabled:{defaultValue:null,description:"",name:"isTypingIndicatorEnabled",required:!1,type:{name:"boolean"}},isMessageReceiptStatusEnabled:{defaultValue:null,description:"",name:"isMessageReceiptStatusEnabled",required:!1,type:{name:"boolean"}},selectedChannelUrl:{defaultValue:null,description:"",name:"selectedChannelUrl",required:!1,type:{name:"string"}},channelListQueryParams:{defaultValue:null,description:"",name:"channelListQueryParams",required:!1,type:{name:"ChannelListQueryParamsType"}},onCreateChannelClick:{defaultValue:null,description:"",name:"onCreateChannelClick",required:!1,type:{name:"(params: OnCreateChannelClickParams) => void"}},onUserProfileUpdated:{defaultValue:null,description:"",name:"onUserProfileUpdated",required:!1,type:{name:"(user: User) => void"}},onChannelSelect:{defaultValue:null,description:"",name:"onChannelSelect",required:!0,type:{name:"(channel: GroupChannel) => void"}},onChannelCreated:{defaultValue:null,description:"",name:"onChannelCreated",required:!0,type:{name:"(channel: GroupChannel) => void"}},disableUserProfile:{defaultValue:null,description:"",name:"disableUserProfile",required:!1,type:{name:"boolean"}},renderUserProfile:{defaultValue:null,description:"",name:"renderUserProfile",required:!1,type:{name:"(props: RenderUserProfileProps) => ReactElement>"}},onUserProfileMessage:{defaultValue:null,description:"",name:"onUserProfileMessage",required:!1,type:{name:"(channel: GroupChannel) => void"}},renderChannelPreview:{defaultValue:null,description:"",name:"renderChannelPreview",required:!1,type:{name:"(props: GroupChannelItemProps) => ReactElement>"}},renderHeader:{defaultValue:null,description:"",name:"renderHeader",required:!1,type:{name:"(props: void) => ReactElement>"}},renderPlaceHolderError:{defaultValue:null,description:"",name:"renderPlaceHolderError",required:!1,type:{name:"(props: void) => ReactElement>"}},renderPlaceHolderLoading:{defaultValue:null,description:"",name:"renderPlaceHolderLoading",required:!1,type:{name:"(props: void) => ReactElement>"}},renderPlaceHolderEmptyList:{defaultValue:null,description:"",name:"renderPlaceHolderEmptyList",required:!1,type:{name:"(props: void) => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannelList/index.tsx#GroupChannelList"]={docgenInfo:GroupChannelList_GroupChannelList.__docgenInfo,name:"GroupChannelList",path:"src/modules/GroupChannelList/index.tsx#GroupChannelList"})}catch(__react_docgen_typescript_loader_error){}},"./src/modules/Message/components/TextFragment/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return TextFragment}));__webpack_require__("./node_modules/core-js/modules/es.array.map.js");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),dist=__webpack_require__("./node_modules/ts-pattern/dist/index.js"),types=__webpack_require__("./src/modules/Message/utils/tokens/types.ts"),MessageProvider=__webpack_require__("./src/modules/Message/context/MessageProvider.tsx");__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var MentionLabel=__webpack_require__("./src/ui/MentionLabel/index.tsx"),consts=__webpack_require__("./src/modules/Message/consts.ts"),LinkLabel=__webpack_require__("./src/ui/LinkLabel/index.tsx"),Label=__webpack_require__("./src/ui/Label/index.tsx"),tokenize=__webpack_require__("./src/modules/Message/utils/tokens/tokenize.ts");function TextFragment(_ref){var tokens=_ref.tokens,messageStore=Object(MessageProvider.b)(),message=null==messageStore?void 0:messageStore.message,isByMe=null==messageStore?void 0:messageStore.isByMe,updatedAt=message.updatedAt,createdAt=message.createdAt;return react_default.a.createElement(react_default.a.Fragment,null,null==tokens?void 0:tokens.map((function(token,idx){var key=function keyGenerator(createdAt,messageUpdatedAt,index){return"sb-msg_".concat(createdAt,"_").concat(messageUpdatedAt,"_").concat(index)}(createdAt,updatedAt,idx);return Object(dist.b)(token.type).with(types.a.mention,(function(){return react_default.a.createElement("span",{className:"sendbird-word",key:key},react_default.a.createElement(MentionLabel.a,{mentionTemplate:consts.a,mentionedUserId:token.userId,mentionedUserNickname:token.value,isByMe:isByMe}))})).with(types.a.url,(function(){return react_default.a.createElement("span",{className:"sendbird-word",key:key},react_default.a.createElement(LinkLabel.c,{className:"sendbird-word__url",src:token.value,type:Label.c.BODY_1},token.value))})).otherwise((function(){return react_default.a.createElement(react_default.a.Fragment,{key:key},Object(tokenize.a)(token.value))}))})))}try{TextFragment.displayName="TextFragment",TextFragment.__docgenInfo={description:"",displayName:"TextFragment",props:{tokens:{defaultValue:null,description:"",name:"tokens",required:!0,type:{name:"Token[]"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/Message/components/TextFragment/index.tsx#TextFragment"]={docgenInfo:TextFragment.__docgenInfo,name:"TextFragment",path:"src/modules/Message/components/TextFragment/index.tsx#TextFragment"})}catch(__react_docgen_typescript_loader_error){}},"./src/modules/Message/consts.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return USER_MENTION_PREFIX}));var USER_MENTION_PREFIX="@"},"./src/modules/Message/context/MessageProvider.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return MessageProvider})),__webpack_require__.d(__webpack_exports__,"b",(function(){return useMessageContext}));var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__),defaultValue={message:{},isByMe:!1},MessageContext=react__WEBPACK_IMPORTED_MODULE_0___default.a.createContext(defaultValue),MessageProvider=function MessageProvider(props){var children=props.children,message=props.message,_props$isByMe=props.isByMe,isByMe=void 0!==_props$isByMe&&_props$isByMe;return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(MessageContext.Provider,{value:{message:message,isByMe:isByMe}},children)},useMessageContext=function useMessageContext(){var value=react__WEBPACK_IMPORTED_MODULE_0___default.a.useContext(MessageContext);if(void 0===value)throw new Error("useMessageContext must be used within a MessageProvider");return value};try{MessageProvider.displayName="MessageProvider",MessageProvider.__docgenInfo={description:"",displayName:"MessageProvider",props:{message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"BaseMessage"}},isByMe:{defaultValue:null,description:"",name:"isByMe",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/Message/context/MessageProvider.tsx#MessageProvider"]={docgenInfo:MessageProvider.__docgenInfo,name:"MessageProvider",path:"src/modules/Message/context/MessageProvider.tsx#MessageProvider"})}catch(__react_docgen_typescript_loader_error){}},"./src/modules/Message/hooks/useDirtyGetMentions.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return useDirtyGetMentions}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var react=__webpack_require__("./node_modules/react/index.js");function getMentionNodes(root){if(root){var mentions=root.querySelectorAll("[data-sb-mention='true']");return Array.from(mentions)}return[]}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&setMentionNodes(getMentionNodes(targetNode))}));return targetNode&&observer.observe(targetNode,{childList:!0,subtree:!0}),function(){try{observer.disconnect()}catch(error){logger.error("useDirtyGetMentions: observer disconnect failed",{observer:observer})}}}),[targetNode]),mentionNodes}},"./src/modules/Message/utils/tokens/tokenize.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return tokenizeMessage})),__webpack_require__.d(__webpack_exports__,"a",(function(){return getWhiteSpacePreservedText}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.flat.js"),__webpack_require__("./node_modules/core-js/modules/es.string.split.js"),__webpack_require__("./node_modules/core-js/modules/es.string.match.js"),__webpack_require__("./node_modules/core-js/modules/es.array.find.js"),__webpack_require__("./node_modules/core-js/modules/es.string.match-all.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.string.trim.js");var _consts__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./src/modules/Message/consts.ts"),_types__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./src/modules/Message/utils/tokens/types.ts");function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&items.push({value:head,type:_types__WEBPACK_IMPORTED_MODULE_25__.a.string}),items.push({value:mid,type:_types__WEBPACK_IMPORTED_MODULE_25__.a.url}),tail.length>0&&items.push({value:tail,type:_types__WEBPACK_IMPORTED_MODULE_25__.a.string}),cursor=end})),items})).flat()}(identifyMentions({tokens:[{type:_types__WEBPACK_IMPORTED_MODULE_25__.a.undetermined,value:messageText}],mentionedUsers:mentionedUsers,templatePrefix:templatePrefix})))}function getWhiteSpacePreservedText(text){return text.split("\n").map((function(line){var _line$match,_line$match2,leadingWhitespace=(null===(_line$match=line.match(/^\s*/))||void 0===_line$match?void 0:_line$match[0])||"",trailingWhitespace=(null===(_line$match2=line.match(/\s*$/))||void 0===_line$match2?void 0:_line$match2[0])||"",convertedLeadingWhitespace=leadingWhitespace.replace(/ /g," "),convertedTrailingWhitespace=trailingWhitespace.replace(/ /g," ");return convertedLeadingWhitespace+line.trim()+convertedTrailingWhitespace})).join("\n")}},"./src/modules/Message/utils/tokens/types.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return TOKEN_TYPES}));var TOKEN_TYPES={string:"string",mention:"mention",url:"url",undetermined:"undetermined"}},"./src/modules/MessageSearch/components/MessageSearchUI/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/MessageSearch/components/MessageSearchUI/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/MessageSearch/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/MessageSearch/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/MessageSearch/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),LocalizationContext=(__webpack_require__("./src/modules/MessageSearch/index.scss"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./src/modules/MessageSearch/components/MessageSearchUI/index.scss"),__webpack_require__("./src/lib/LocalizationContext.tsx")),useSendbirdStateContext=__webpack_require__("./src/hooks/useSendbirdStateContext.tsx");__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=scrollHeight&&onScroll((function(){}))}}},null==props?void 0:props.children)};try{MessageSearchProvider_MessageSearchProvider.displayName="MessageSearchProvider",MessageSearchProvider_MessageSearchProvider.__docgenInfo={description:"",displayName:"MessageSearchProvider",props:{channelUrl:{defaultValue:null,description:"",name:"channelUrl",required:!0,type:{name:"string"}},searchString:{defaultValue:null,description:"",name:"searchString",required:!1,type:{name:"string"}},requestString:{defaultValue:null,description:"",name:"requestString",required:!1,type:{name:"string"}},messageSearchQuery:{defaultValue:null,description:"",name:"messageSearchQuery",required:!1,type:{name:"MessageSearchQueryParams"}},onResultLoaded:{defaultValue:null,description:"",name:"onResultLoaded",required:!1,type:{name:"(messages?: ClientSentMessages[], error?: SendbirdError) => void"}},onResultClick:{defaultValue:null,description:"",name:"onResultClick",required:!1,type:{name:"(message: ClientSentMessages) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/MessageSearch/context/MessageSearchProvider.tsx#MessageSearchProvider"]={docgenInfo:MessageSearchProvider_MessageSearchProvider.__docgenInfo,name:"MessageSearchProvider",path:"src/modules/MessageSearch/context/MessageSearchProvider.tsx#MessageSearchProvider"})}catch(__react_docgen_typescript_loader_error){}var MessageSearchItem=__webpack_require__("./src/ui/MessageSearchItem/index.tsx"),PlaceHolder=__webpack_require__("./src/ui/PlaceHolder/index.tsx"),MessageSearchFileItem=__webpack_require__("./src/ui/MessageSearchFileItem/index.tsx"),MessageSearchUI_MessageSearchUI=function MessageSearchUI(_ref){var renderPlaceHolderError=_ref.renderPlaceHolderError,renderPlaceHolderLoading=_ref.renderPlaceHolderLoading,renderPlaceHolderNoString=_ref.renderPlaceHolderNoString,renderPlaceHolderEmptyList=_ref.renderPlaceHolderEmptyList,renderSearchItem=_ref.renderSearchItem,_useMessageSearchCont=function useMessageSearchContext(){return react_default.a.useContext(MessageSearchContext)}(),isInvalid=_useMessageSearchCont.isInvalid,searchString=_useMessageSearchCont.searchString,requestString=_useMessageSearchCont.requestString,currentChannel=_useMessageSearchCont.currentChannel,retryCount=_useMessageSearchCont.retryCount,setRetryCount=_useMessageSearchCont.setRetryCount,loading=_useMessageSearchCont.loading,scrollRef=_useMessageSearchCont.scrollRef,hasMoreResult=_useMessageSearchCont.hasMoreResult,onScroll=_useMessageSearchCont.onScroll,allMessages=_useMessageSearchCont.allMessages,onResultClick=_useMessageSearchCont.onResultClick,selectedMessageId=_useMessageSearchCont.selectedMessageId,setSelectedMessageId=_useMessageSearchCont.setSelectedMessageId,stringSet=Object(react.useContext)(LocalizationContext.a).stringSet;return isInvalid&&searchString&&requestString?(null==renderPlaceHolderError?void 0:renderPlaceHolderError())||react_default.a.createElement("div",{className:"sendbird-message-search"},react_default.a.createElement(PlaceHolder.b,{type:PlaceHolder.a.WRONG,retryToConnect:function handleRetryToConnect(){setRetryCount(retryCount+1)}})):loading&&searchString&&requestString?(null==renderPlaceHolderLoading?void 0:renderPlaceHolderLoading())||react_default.a.createElement("div",{className:"sendbird-message-search"},react_default.a.createElement(PlaceHolder.b,{type:PlaceHolder.a.SEARCHING})):searchString?react_default.a.createElement("div",{className:"sendbird-message-search",onScroll:function handleOnScroll(e){var scrollElement=e.target,scrollTop=scrollElement.scrollTop,scrollHeight=scrollElement.scrollHeight,clientHeight=scrollElement.clientHeight;hasMoreResult&&scrollTop+clientHeight>=scrollHeight-1&&onScroll((function(){}))},ref:scrollRef},allMessages.length>0?allMessages.map((function(message){return renderSearchItem?renderSearchItem({message:message,onResultClick:onResultClick}):"file"===message.messageType?react_default.a.createElement(MessageSearchFileItem.a,{className:"".concat("sendbird-message-search","__message-search-item"),message:message,key:message.messageId,selected:selectedMessageId===message.messageId,onClick:function onClick(){onResultClick(message),setSelectedMessageId(message.messageId)}}):react_default.a.createElement(MessageSearchItem.a,{className:"".concat("sendbird-message-search","__message-search-item"),message:message,key:message.messageId,selected:selectedMessageId===message.messageId,onClick:function onClick(){onResultClick(message),setSelectedMessageId(message.messageId)}})})):(null==renderPlaceHolderEmptyList?void 0:renderPlaceHolderEmptyList())||react_default.a.createElement(PlaceHolder.b,{type:PlaceHolder.a.NO_RESULTS})):(null==renderPlaceHolderNoString?void 0:renderPlaceHolderNoString())||react_default.a.createElement("div",{className:"sendbird-message-search"},react_default.a.createElement(PlaceHolder.b,{type:PlaceHolder.a.SEARCH_IN,searchInString:function getChannelName(){return currentChannel&&null!=currentChannel&¤tChannel.name&&"Group Channel"!==(null==currentChannel?void 0:currentChannel.name)?null==currentChannel?void 0:currentChannel.name:!currentChannel||"Group Channel"!==(null==currentChannel?void 0:currentChannel.name)&&null!=currentChannel&¤tChannel.name?stringSet.NO_TITLE:currentChannel.members.map((function(member){return member.nickname||stringSet.NO_NAME})).join(", ")}()}))},MessageSearch_components_MessageSearchUI=MessageSearchUI_MessageSearchUI;try{MessageSearchUI_MessageSearchUI.displayName="MessageSearchUI",MessageSearchUI_MessageSearchUI.__docgenInfo={description:"",displayName:"MessageSearchUI",props:{renderPlaceHolderError:{defaultValue:null,description:"",name:"renderPlaceHolderError",required:!1,type:{name:"(props: void) => ReactElement>"}},renderPlaceHolderLoading:{defaultValue:null,description:"",name:"renderPlaceHolderLoading",required:!1,type:{name:"(props: void) => ReactElement>"}},renderPlaceHolderNoString:{defaultValue:null,description:"",name:"renderPlaceHolderNoString",required:!1,type:{name:"(props: void) => ReactElement>"}},renderPlaceHolderEmptyList:{defaultValue:null,description:"",name:"renderPlaceHolderEmptyList",required:!1,type:{name:"(props: void) => ReactElement>"}},renderSearchItem:{defaultValue:null,description:"",name:"renderSearchItem",required:!1,type:{name:"({ message, onResultClick, }: { message: ClientSentMessages; onResultClick?: (message: ClientSentMessages) => void; }) => Element"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/MessageSearch/components/MessageSearchUI/index.tsx#MessageSearchUI"]={docgenInfo:MessageSearchUI_MessageSearchUI.__docgenInfo,name:"MessageSearchUI",path:"src/modules/MessageSearch/components/MessageSearchUI/index.tsx#MessageSearchUI"})}catch(__react_docgen_typescript_loader_error){}var Icon=__webpack_require__("./src/ui/Icon/index.tsx"),IconButton=__webpack_require__("./src/ui/IconButton/index.tsx"),Label=__webpack_require__("./src/ui/Label/index.tsx"),Loader=__webpack_require__("./src/ui/Loader/index.tsx");function MessageSearch_slicedToArray(arr,i){return function MessageSearch_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function MessageSearch_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function MessageSearch_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return MessageSearch_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return MessageSearch_arrayLikeToArray(o,minLen)}(arr,i)||function MessageSearch_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function MessageSearch_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i void"}},onCloseClick:{defaultValue:null,description:"",name:"onCloseClick",required:!1,type:{name:"() => void"}},renderPlaceHolderError:{defaultValue:null,description:"",name:"renderPlaceHolderError",required:!1,type:{name:"(props: void) => ReactElement>"}},renderPlaceHolderLoading:{defaultValue:null,description:"",name:"renderPlaceHolderLoading",required:!1,type:{name:"(props: void) => ReactElement>"}},renderPlaceHolderNoString:{defaultValue:null,description:"",name:"renderPlaceHolderNoString",required:!1,type:{name:"(props: void) => ReactElement>"}},renderPlaceHolderEmptyList:{defaultValue:null,description:"",name:"renderPlaceHolderEmptyList",required:!1,type:{name:"(props: void) => ReactElement>"}},renderSearchItem:{defaultValue:null,description:"",name:"renderSearchItem",required:!1,type:{name:"({ message, onResultClick, }: { message: ClientSentMessages; onResultClick?: (message: ClientSentMessages) => void; }) => Element"}},channelUrl:{defaultValue:null,description:"",name:"channelUrl",required:!0,type:{name:"string"}},searchString:{defaultValue:null,description:"",name:"searchString",required:!1,type:{name:"string"}},requestString:{defaultValue:null,description:"",name:"requestString",required:!1,type:{name:"string"}},messageSearchQuery:{defaultValue:null,description:"",name:"messageSearchQuery",required:!1,type:{name:"MessageSearchQueryParams"}},onResultLoaded:{defaultValue:null,description:"",name:"onResultLoaded",required:!1,type:{name:"(messages?: ClientSentMessages[], error?: SendbirdError) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/MessageSearch/index.tsx#MessageSearchPannel"]={docgenInfo:MessageSearchPannel.__docgenInfo,name:"MessageSearchPannel",path:"src/modules/MessageSearch/index.tsx#MessageSearchPannel"})}catch(__react_docgen_typescript_loader_error){}},"./src/modules/OpenChannel/components/FrozenChannelNotification/frozen-channel-notification.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/OpenChannel/components/FrozenChannelNotification/frozen-channel-notification.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/OpenChannel/components/OpenChannelHeader/open-channel-header.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/OpenChannel/components/OpenChannelHeader/open-channel-header.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/OpenChannel/components/OpenChannelMessageList/openchannel-message-list.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/OpenChannel/components/OpenChannelMessageList/openchannel-message-list.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/OpenChannel/components/OpenChannelUI/open-channel-ui.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/OpenChannel/components/OpenChannelUI/open-channel-ui.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/OpenChannel/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),format=(__webpack_require__("./src/modules/OpenChannel/components/OpenChannelUI/open-channel-ui.scss"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.map.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.number.to-fixed.js"),__webpack_require__("./node_modules/core-js/modules/es.number.parse-float.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.number.is-nan.js"),__webpack_require__("./node_modules/date-fns/esm/format/index.js")),scrollIntoLast=function scrollIntoLast(){var scrollRef=arguments.length>1?arguments[1]:void 0,currentTry=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!(currentTry>10))try{var scrollDOM=(null==scrollRef?void 0:scrollRef.current)||document.querySelector(".sendbird-openchannel-conversation-scroll__container__item-container");scrollDOM.scrollTop=scrollDOM.scrollHeight}catch(error){setTimeout((function(){scrollIntoLast(currentTry+1,scrollRef)}),500*currentTry)}},fetchWithListQuery=function fetchWithListQuery(listQuery,logger,eachQueryNextCallback){logger.info("OpenChannel | FetchUserList start",listQuery),function fetchList(query){query.hasNext?query.next().then((function(users){eachQueryNextCallback(users),fetchList(query)})).catch((function(error){logger.warning("OpenChannel | FetchUserList failed",error)})):logger.info("OpenChannel | FetchUserList finished")}(listQuery)},UserProfileContext=__webpack_require__("./src/lib/UserProfileContext.tsx"),compareIds=(__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.find.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./src/utils/compareIds.ts"));function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&(null==allMessages?void 0:allMessages.length)>messageLimit){var sliceAt=allMessages.length-messageLimit;return _objectSpread(_objectSpread({},state),{},{allMessages:allMessages.slice(sliceAt)})}return state;case"RESENDING_MESSAGE_START":var eventedChannel=action.payload.channel,resentMessage=action.payload.message;return eventedChannel.url!==state.currentOpenChannel.url?state:_objectSpread(_objectSpread({},state),{},{allMessages:state.allMessages.map((function(m){return Object(compareIds.a)(m.reqId,resentMessage.reqId)?resentMessage:m}))});case"FETCH_PARTICIPANT_LIST":var _eventedChannel=action.payload.channel,fetchedParticipantList=action.payload.users;return _eventedChannel.url!==state.currentOpenChannel.url?state:_objectSpread(_objectSpread({},state),{},{participants:[].concat(_toConsumableArray(state.participants),_toConsumableArray(fetchedParticipantList))});case"FETCH_BANNED_USER_LIST":var _eventedChannel2=action.payload.channel,fetchedBannedUserList=action.payload.users;return _eventedChannel2.url===state.currentOpenChannel.url&&fetchedBannedUserList.every((function(user){return"string"==typeof user.userId}))?_objectSpread(_objectSpread({},state),{},{bannedParticipantIds:[].concat(_toConsumableArray(state.bannedParticipantIds),_toConsumableArray(fetchedBannedUserList.map((function(user){return user.userId}))))}):state;case"FETCH_MUTED_USER_LIST":var _eventedChannel3=action.payload.channel,fetchedMutedUserList=action.payload.users;return _eventedChannel3.url===state.currentOpenChannel.url&&fetchedMutedUserList.every((function(user){return"string"==typeof user.userId}))?_objectSpread(_objectSpread({},state),{},{mutedParticipantIds:[].concat(_toConsumableArray(state.mutedParticipantIds),_toConsumableArray(fetchedMutedUserList.map((function(user){return user.userId}))))}):state;case"ON_MESSAGE_RECEIVED":var _eventedChannel4=action.payload.channel,receivedMessage=action.payload.message,_currentOpenChannel=state.currentOpenChannel;return Object(compareIds.a)(_eventedChannel4.url,_currentOpenChannel.url)&&state.allMessages.map((function(message){return message.messageId})).indexOf(receivedMessage.messageId)<0?_objectSpread(_objectSpread({},state),{},{allMessages:[].concat(_toConsumableArray(state.allMessages),[receivedMessage])}):state;case"ON_MESSAGE_UPDATED":var _eventedChannel5=action.payload.channel,updatedMessage=action.payload.message,currentChannel=state.currentOpenChannel;return!currentChannel||currentChannel.url&¤tChannel.url!==_eventedChannel5.url?state:_objectSpread(_objectSpread({},state),{},{allMessages:state.allMessages.map((function(message){return message.isIdentical(updatedMessage)?updatedMessage:message}))});case"ON_MESSAGE_DELETED":var _eventedChannel6=action.payload.channel,deletedMessageId=action.payload.messageId,_currentChannel=state.currentOpenChannel;return!_currentChannel||_currentChannel.url&&_currentChannel.url!==_eventedChannel6.url?state:_objectSpread(_objectSpread({},state),{},{allMessages:state.allMessages.filter((function(message){return!Object(compareIds.a)(message.messageId,deletedMessageId)}))});case"ON_MESSAGE_DELETED_BY_REQ_ID":return _objectSpread(_objectSpread({},state),{},{allMessages:state.allMessages.filter((function(m){return!Object(compareIds.a)(m.reqId,action.payload)}))});case"ON_OPERATOR_UPDATED":var _eventedChannel7=action.payload.channel,updatedOperators=action.payload.operators,_currentChannel2=state.currentOpenChannel;return!_currentChannel2||_currentChannel2.url&&_currentChannel2.url!==_eventedChannel7.url?state:_objectSpread(_objectSpread({},state),{},{currentOpenChannel:_eventedChannel7,operators:updatedOperators});case"ON_USER_ENTERED":var _eventedChannel8=action.payload.channel,enteredUser=action.payload.user,_currentChannel3=state.currentOpenChannel;return!_currentChannel3||_currentChannel3.url&&_currentChannel3.url!==_eventedChannel8.url?state:_objectSpread(_objectSpread({},state),{},{participants:[].concat(_toConsumableArray(state.participants),[enteredUser])});case"ON_USER_EXITED":var _eventedChannel9=action.payload.channel,exitedUser=action.payload.user,_currentChannel4=state.currentOpenChannel;return!_currentChannel4||_currentChannel4.url&&_currentChannel4.url!==_eventedChannel9.url?state:_objectSpread(_objectSpread({},state),{},{participants:state.participants.filter((function(participant){return!Object(compareIds.a)(participant.userId,exitedUser.userId)}))});case"ON_USER_MUTED":var _eventedChannel10=action.payload.channel,mutedUser=action.payload.user,_currentChannel5=state.currentOpenChannel;return!_currentChannel5||_currentChannel5.url&&_currentChannel5.url!==_eventedChannel10.url||state.mutedParticipantIds.indexOf(mutedUser.userId)>=0?state:_objectSpread(_objectSpread({},state),{},{mutedParticipantIds:[].concat(_toConsumableArray(state.mutedParticipantIds),[mutedUser.userId])});case"ON_USER_UNMUTED":var _eventedChannel11=action.payload.channel,unmutedUser=action.payload.user,_currentChannel6=state.currentOpenChannel;return!_currentChannel6||_currentChannel6.url&&_currentChannel6.url!==_eventedChannel11.url||state.mutedParticipantIds.indexOf(unmutedUser.userId)<0?state:_objectSpread(_objectSpread({},state),{},{mutedParticipantIds:state.mutedParticipantIds.filter((function(userId){return userId!==unmutedUser.userId}))});case"ON_USER_BANNED":var _eventedChannel12=action.payload.channel,bannedUser=action.payload.user,currentUser=action.payload.currentUser,_currentChannel7=state.currentOpenChannel;return(null==_currentChannel7?void 0:_currentChannel7.url)===(null==_eventedChannel12?void 0:_eventedChannel12.url)&&(null==bannedUser?void 0:bannedUser.userId)===(null==currentUser?void 0:currentUser.userId)?_objectSpread(_objectSpread({},state),{},{currentOpenChannel:null}):(null==_currentChannel7?void 0:_currentChannel7.url)===(null==_eventedChannel12?void 0:_eventedChannel12.url)?_objectSpread(_objectSpread({},state),{},{bannedParticipantIds:[].concat(_toConsumableArray(state.bannedParticipantIds),[bannedUser.userId])}):state;case"ON_USER_UNBANNED":var _eventedChannel13=action.payload.channel,unbannedUser=action.payload.user,_currentChannel8=state.currentOpenChannel;return(null==_currentChannel8?void 0:_currentChannel8.url)===(null==_eventedChannel13?void 0:_eventedChannel13.url)?_objectSpread(_objectSpread({},state),{},{bannedParticipantIds:state.bannedParticipantIds.filter((function(userId){return userId!==unbannedUser.userId}))}):state;case"ON_CHANNEL_FROZEN":var frozenChannel=action.payload,_currentChannel9=state.currentOpenChannel;return!_currentChannel9||_currentChannel9.url&&_currentChannel9.url!==frozenChannel.url?state:_objectSpread(_objectSpread({},state),{},{frozen:!0});case"ON_CHANNEL_UNFROZEN":var unfrozenChannel=action.payload,_currentChannel10=state.currentOpenChannel;return!_currentChannel10||_currentChannel10.url&&_currentChannel10.url!==unfrozenChannel.url?state:_objectSpread(_objectSpread({},state),{},{frozen:!1});case"ON_CHANNEL_CHANGED":var changedChannel=action.payload,_currentChannel11=state.currentOpenChannel;return!_currentChannel11||_currentChannel11.url&&_currentChannel11.url!==changedChannel.url?state:_objectSpread(_objectSpread({},state),{},{currentOpenChannel:changedChannel});case"ON_CHANNEL_DELETED":var deletedChannelUrl=action.payload,_currentChannel12=null==state?void 0:state.currentOpenChannel;return(null==_currentChannel12?void 0:_currentChannel12.url)===deletedChannelUrl?_objectSpread(_objectSpread({},state),{},{currentOpenChannel:null}):state;default:return state}}var dux_initialState={allMessages:[],loading:!1,initialized:!1,currentOpenChannel:null,isInvalid:!1,hasMore:!1,lastMessageTimestamp:0,frozen:!1,operators:[],participants:[],bannedParticipantIds:[],mutedParticipantIds:[]},topics=__webpack_require__("./src/lib/pubSub/topics.ts");var hooks_useSetChannel=function useSetChannel(_ref,_ref2){var channelUrl=_ref.channelUrl,sdkInit=_ref.sdkInit,fetchingParticipants=_ref.fetchingParticipants,userId=_ref.userId,currentOpenChannel=_ref.currentOpenChannel,sdk=_ref2.sdk,logger=_ref2.logger,messagesDispatcher=_ref2.messagesDispatcher;Object(react.useEffect)((function(){if(channelUrl&&sdkInit&&null!=sdk&&sdk.openChannel){var _currentOpenChannel$e;if(currentOpenChannel&&null!=currentOpenChannel&¤tOpenChannel.exit)null===(_currentOpenChannel$e=currentOpenChannel.exit)||void 0===_currentOpenChannel$e||_currentOpenChannel$e.call(currentOpenChannel).then((function(){logger.info("OpenChannel | useSetChannel: Exit from the previous open channel",null==currentOpenChannel?void 0:currentOpenChannel.url),messagesDispatcher({type:"EXIT_CURRENT_CHANNEL",payload:currentOpenChannel})}));logger.info("OpenChannel | useSetChannel: Fetching channel",channelUrl),sdk.openChannel.getChannel(channelUrl).then((function(openChannel){logger.info("OpenChannel | useSetChannel: Succeeded to fetch channel",openChannel),messagesDispatcher({type:"SET_CURRENT_CHANNEL",payload:openChannel}),openChannel.enter().then((function(){if(openChannel.isOperator(userId)){var bannedParticipantListQuery=openChannel.createBannedUserListQuery(),mutedParticipantListQuery=openChannel.createMutedUserListQuery();fetchWithListQuery(bannedParticipantListQuery,logger,(function(users){messagesDispatcher({type:"FETCH_BANNED_USER_LIST",payload:{channel:openChannel,users:users}})})),fetchWithListQuery(mutedParticipantListQuery,logger,(function(users){messagesDispatcher({type:"FETCH_MUTED_USER_LIST",payload:{channel:openChannel,users:users}})}))}else openChannel.getMyMutedInfo().then((function(mutedInfo){null!=mutedInfo&&mutedInfo.isMuted&&messagesDispatcher({type:"FETCH_MUTED_USER_LIST",payload:{channel:openChannel,users:[null==sdk?void 0:sdk.currentUser]}})}));if(fetchingParticipants){var participantListQuery=openChannel.createParticipantListQuery({limit:openChannel.participantCount});fetchWithListQuery(participantListQuery,logger,(function(users){messagesDispatcher({type:"FETCH_PARTICIPANT_LIST",payload:{channel:openChannel,users:users}})}))}})).catch((function(error){logger.warning("OpenChannel | useSetChannel: Failed to enter channel",{channelUrl:channelUrl,error:error}),messagesDispatcher({type:"SET_CHANNEL_INVALID",payload:null})}))})).catch((function(error){logger.warning("OpenChannel | useSetChannel: Failed to fetch channel",{channelUrl:channelUrl,error:error}),messagesDispatcher({type:"SET_CHANNEL_INVALID",payload:null})}))}}),[channelUrl,sdkInit,fetchingParticipants])},_bundle_c578be85=__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-c578be85.js"),chat_openChannel=__webpack_require__("./node_modules/@sendbird/chat/openChannel.js"),uuid=__webpack_require__("./src/utils/uuid.ts");var hooks_useHandleChannelEvents=function useHandleChannelEvents(_ref,_ref2){var currentOpenChannel=_ref.currentOpenChannel,checkScrollBottom=_ref.checkScrollBottom,sdk=_ref2.sdk,logger=_ref2.logger,messagesDispatcher=_ref2.messagesDispatcher,scrollRef=_ref2.scrollRef;Object(react.useEffect)((function(){var _sdk$openChannel,messageReceiverId=Object(uuid.a)();if(currentOpenChannel&¤tOpenChannel.url&&null!=sdk&&null!==(_sdk$openChannel=sdk.openChannel)&&void 0!==_sdk$openChannel&&_sdk$openChannel.addOpenChannelHandler){var _sdk$openChannel2;logger.info("OpenChannel | useHandleChannelEvents: Setup evnet handler",messageReceiverId);var channelHandlerParams={onMessageReceived:function onMessageReceived(channel,message){var scrollToEnd=checkScrollBottom(),channelUrl=null==channel?void 0:channel.url;if(logger.info("OpenChannel | useHandleChannelEvents: onMessageReceived",{channelUrl:channelUrl,message:message}),messagesDispatcher({type:"ON_MESSAGE_RECEIVED",payload:{channel:channel,message:message}}),scrollToEnd)try{setTimeout((function(){scrollIntoLast(0,scrollRef)}))}catch(error){logger.warning("OpenChannel | onMessageReceived | scroll to end failed")}},onMessageUpdated:function onMessageUpdated(channel,message){var channelUrl=null==channel?void 0:channel.url;logger.info("OpenChannel | useHandleChannelEvents: onMessageUpdated",{channelUrl:channelUrl,message:message}),messagesDispatcher({type:"ON_MESSAGE_UPDATED",payload:{channel:channel,message:message}})},onMessageDeleted:function onMessageDeleted(channel,messageId){var channelUrl=null==channel?void 0:channel.url;logger.info("OpenChannel | useHandleChannelEvents: onMessageDeleted",{channelUrl:channelUrl,messageId:messageId}),messagesDispatcher({type:"ON_MESSAGE_DELETED",payload:{channel:channel,messageId:messageId}})},onOperatorUpdated:function onOperatorUpdated(channel,operators){var channelUrl=null==channel?void 0:channel.url;logger.info("OpenChannel | useHandleChannelEvents: onOperatorUpdated",{channelUrl:channelUrl,operators:operators}),messagesDispatcher({type:"ON_OPERATOR_UPDATED",payload:{channel:channel,operators:operators}})},onUserEntered:function onUserEntered(channel,user){var channelUrl=null==channel?void 0:channel.url;logger.info("OpenChannel | useHandleChannelEvents: onUserEntered",{channelUrl:channelUrl,user:user}),messagesDispatcher({type:"ON_USER_ENTERED",payload:{channel:channel,user:user}})},onUserExited:function onUserExited(channel,user){var channelUrl=null==channel?void 0:channel.url;logger.info("OpenChannel | useHandleChannelEvents: onUserExited",{channelUrl:channelUrl,user:user}),messagesDispatcher({type:"ON_USER_EXITED",payload:{channel:channel,user:user}})},onUserMuted:function onUserMuted(channel,user){var channelUrl=null==channel?void 0:channel.url;logger.info("OpenChannel | useHandleChannelEvents: onUserMuted",{channelUrl:channelUrl,user:user}),messagesDispatcher({type:"ON_USER_MUTED",payload:{channel:channel,user:user}})},onUserUnmuted:function onUserUnmuted(channel,user){var channelUrl=null==channel?void 0:channel.url;logger.info("OpenChannel | useHandleChannelEvents: onUserUnmuted",{channelUrl:channelUrl,user:user}),messagesDispatcher({type:"ON_USER_UNMUTED",payload:{channel:channel,user:user}})},onUserBanned:function onUserBanned(channel,user){var channelUrl=null==channel?void 0:channel.url;logger.info("OpenChannel | useHandleChannelEvents: onUserBanned",{channelUrl:channelUrl,user:user}),messagesDispatcher({type:"ON_USER_BANNED",payload:{channel:channel,user:user,currentUser:null==sdk?void 0:sdk.currentUser}})},onUserUnbanned:function onUserUnbanned(channel,user){var channelUrl=null==channel?void 0:channel.url;logger.info("OpenChannel | useHandleChannelEvents: onUserUnbanned",{channelUrl:channelUrl,user:user}),messagesDispatcher({type:"ON_USER_UNBANNED",payload:{channel:channel,user:user}})},onChannelFrozen:function onChannelFrozen(channel){logger.info("OpenChannel | useHandleChannelEvents: onChannelFrozen",channel),messagesDispatcher({type:"ON_CHANNEL_FROZEN",payload:channel})},onChannelUnfrozen:function onChannelUnfrozen(channel){logger.info("OpenChannel | useHandleChannelEvents: onChannelUnfrozen",channel),messagesDispatcher({type:"ON_CHANNEL_UNFROZEN",payload:channel})},onChannelChanged:function onChannelChanged(channel){logger.info("OpenChannel | useHandleChannelEvents: onChannelChanged",channel),messagesDispatcher({type:"ON_CHANNEL_CHANGED",payload:channel})},onMetaDataCreated:function onMetaDataCreated(channel,metaData){var channelUrl=null==channel?void 0:channel.url;logger.info("OpenChannel | useHandleChannelEvents: onMetaDataCreated",{channelUrl:channelUrl,metaData:metaData}),messagesDispatcher({type:"ON_META_DATA_CREATED",payload:{channel:channel,metaData:metaData}})},onMetaDataUpdated:function onMetaDataUpdated(channel,metaData){var channelUrl=null==channel?void 0:channel.url;logger.info("OpenChannel | useHandleChannelEvents: onMetaDataUpdated",{channelUrl:channelUrl,metaData:metaData}),messagesDispatcher({type:"ON_META_DATA_UPDATED",payload:{channel:channel,metaData:metaData}})},onMetaDataDeleted:function onMetaDataDeleted(channel,metaDataKeys){var channelUrl=null==channel?void 0:channel.url;logger.info("OpenChannel | useHandleChannelEvents: onMetaDataDeleted",{channelUrl:channelUrl,metaDataKeys:metaDataKeys}),messagesDispatcher({type:"ON_META_DATA_DELETED",payload:{channel:channel,metaDataKeys:metaDataKeys}})},onMetaCounterCreated:function onMetaCounterCreated(channel,metaCounter){var channelUrl=null==channel?void 0:channel.url;logger.info("OpenChannel | useHandleChannelEvents: onMetaCountersCreated",{channelUrl:channelUrl,metaCounter:metaCounter}),messagesDispatcher({type:"ON_META_COUNTERS_CREATED",payload:{channel:channel,metaCounter:metaCounter}})},onMetaCounterUpdated:function onMetaCounterUpdated(channel,metaCounter){var channelUrl=null==channel?void 0:channel.url;logger.info("OpenChannel | useHandleChannelEvents: onMetaCountersUpdated",{channelUrl:channelUrl,metaCounter:metaCounter}),messagesDispatcher({type:"ON_META_COUNTERS_UPDATED",payload:{channel:channel,metaCounter:metaCounter}})},onMetaCounterDeleted:function onMetaCounterDeleted(channel,metaCounterKeys){var channelUrl=null==channel?void 0:channel.url;logger.info("OpenChannel | useHandleChannelEvents: onMetaCountersDeleted",{channelUrl:channelUrl,metaCounterKeys:metaCounterKeys}),messagesDispatcher({type:"ON_META_COUNTERS_DELETED",payload:{channel:channel,metaCounterKeys:metaCounterKeys}})},onMentionReceived:function onMentionReceived(channel,message){var channelUrl=null==channel?void 0:channel.url;logger.info("OpenChannel | useHandleChannelEvents: onMentionReceived",{channelUrl:channelUrl,message:message}),messagesDispatcher({type:"ON_MENTION_RECEIVED",payload:{channel:channel,message:message}})},onChannelDeleted:function onChannelDeleted(channelUrl,channelType){channelType===_bundle_c578be85.d.OPEN&&(null==currentOpenChannel?void 0:currentOpenChannel.url)===channelUrl&&messagesDispatcher({type:"ON_CHANNEL_DELETED",payload:channelUrl})}},ChannelHandler=new chat_openChannel.b(channelHandlerParams);null==sdk||null===(_sdk$openChannel2=sdk.openChannel)||void 0===_sdk$openChannel2||_sdk$openChannel2.addOpenChannelHandler(messageReceiverId,ChannelHandler)}return function(){var _sdk$openChannel3;null!=sdk&&null!==(_sdk$openChannel3=sdk.openChannel)&&void 0!==_sdk$openChannel3&&_sdk$openChannel3.removeOpenChannelHandler&&(logger.info("OpenChannel | useHandleChannelEvents: Removing message receiver handler",messageReceiverId),sdk.openChannel.removeOpenChannelHandler(messageReceiverId))}}),[currentOpenChannel])};var hooks_useInitialMessagesFetch=function useInitialMessagesFetch(_ref,_ref2){var currentOpenChannel=_ref.currentOpenChannel,userFilledMessageListParams=_ref.userFilledMessageListParams,logger=_ref2.logger,messagesDispatcher=_ref2.messagesDispatcher,scrollRef=_ref2.scrollRef;Object(react.useEffect)((function(){if(logger.info("OpenChannel | useInitialMessagesFetch: Setup started",currentOpenChannel),messagesDispatcher({type:"RESET_MESSAGES",payload:null}),currentOpenChannel&¤tOpenChannel.getMessagesByTimestamp){var messageListParams={nextResultSize:0,prevResultSize:30,isInclusive:!0,includeReactions:!1};userFilledMessageListParams&&(Object.keys(userFilledMessageListParams).forEach((function(key){messageListParams[key]=userFilledMessageListParams[key]})),logger.info("OpenChannel | useInitialMessagesFetch: Used customizedMessageListParams")),logger.info("OpenChannel | useInitialMessagesFetch: Fetching messages",{currentOpenChannel:currentOpenChannel,messageListParams:messageListParams}),messagesDispatcher({type:"GET_PREV_MESSAGES_START",payload:null}),currentOpenChannel.getMessagesByTimestamp((new Date).getTime(),messageListParams).then((function(messages){logger.info("OpenChannel | useInitialMessagesFetch: Fetching messages succeeded",messages);var hasMore=messages&&messages.length>0,lastMessageTimestamp=hasMore?messages[0].createdAt:null;messagesDispatcher({type:"GET_PREV_MESSAGES_SUCESS",payload:{currentOpenChannel:currentOpenChannel,messages:messages,hasMore:hasMore,lastMessageTimestamp:lastMessageTimestamp}}),setTimeout((function(){scrollIntoLast(0,scrollRef)}))})).catch((function(error){logger.error("OpenChannel | useInitialMessagesFetch: Fetching messages failed",error),messagesDispatcher({type:"GET_PREV_MESSAGES_FAIL",payload:{currentOpenChannel:currentOpenChannel,messages:[],hasMore:!1,lastMessageTimestamp:0}})}))}}),[currentOpenChannel,userFilledMessageListParams])};var hooks_useScrollCallback=function useScrollCallback(_ref,_ref2){var currentOpenChannel=_ref.currentOpenChannel,lastMessageTimestamp=_ref.lastMessageTimestamp,fetchMore=_ref.fetchMore,sdk=_ref2.sdk,logger=_ref2.logger,messagesDispatcher=_ref2.messagesDispatcher,hasMore=_ref2.hasMore,userFilledMessageListParams=_ref2.userFilledMessageListParams;return Object(react.useCallback)((function(callback){if(fetchMore&&hasMore){logger.info("OpenChannel | useScrollCallback: start");var messageListParams={prevResultSize:30,includeReactions:!1,nextResultSize:0};userFilledMessageListParams&&(Object.keys(userFilledMessageListParams).forEach((function(key){messageListParams[key]=userFilledMessageListParams[key]})),logger.info("OpenChannel | useScrollCallback: Used userFilledMessageListParams",userFilledMessageListParams)),logger.info("OpenChannel | useScrollCallback: Fetching messages",{currentOpenChannel:currentOpenChannel,messageListParams:messageListParams}),currentOpenChannel.getMessagesByTimestamp(lastMessageTimestamp||(new Date).getTime(),messageListParams).then((function(messages){logger.info("OpenChannel | useScrollCallback: Fetching messages succeeded",messages);var hasMore=messages&&messages.length>0,lastMessageTimestamp=hasMore?messages[0].createdAt:null;messagesDispatcher({type:"GET_PREV_MESSAGES_SUCESS",payload:{currentOpenChannel:currentOpenChannel,messages:messages,hasMore:hasMore,lastMessageTimestamp:lastMessageTimestamp}}),setTimeout((function(){callback()}))})).catch((function(error){logger.error("OpenChannel | useScrollCallback: Fetching messages failed",error),messagesDispatcher({type:"GET_PREV_MESSAGES_FAIL",payload:{currentOpenChannel:currentOpenChannel,messages:[],hasMore:!1,lastMessageTimestamp:0}})}))}}),[currentOpenChannel,lastMessageTimestamp,fetchMore,sdk])};var hooks_useCheckScrollBottom=function useCheckScrollBottom(_ref,_ref2){var conversationScrollRef=_ref.conversationScrollRef,logger=_ref2.logger;return Object(react.useCallback)((function(){var isBottom=!0;if(conversationScrollRef&&null!=conversationScrollRef&&conversationScrollRef.current)try{var conversationScroll=conversationScrollRef.current;isBottom=conversationScroll.scrollHeight<=conversationScroll.scrollTop+conversationScroll.clientHeight}catch(error){logger.error("OpenChannel | useCheckScrollBottom",error)}return isBottom}),[conversationScrollRef])};var hooks_useSendMessageCallback=function useSendMessageCallback(_ref,_ref2){var currentOpenChannel=_ref.currentOpenChannel,onBeforeSendUserMessage=_ref.onBeforeSendUserMessage,messageInputRef=_ref.messageInputRef,sdk=_ref2.sdk,logger=_ref2.logger,messagesDispatcher=_ref2.messagesDispatcher,scrollRef=_ref2.scrollRef;return Object(react.useCallback)((function(){if(sdk){var _text=messageInputRef.current.innerText;onBeforeSendUserMessage&&"function"==typeof onBeforeSendUserMessage&&logger.info("OpenChannel | useSendMessageCallback: Creating params using onBeforeSendUserMessage",onBeforeSendUserMessage);var params=onBeforeSendUserMessage?onBeforeSendUserMessage(_text):function createParamsDefault(txt){return{message:txt}}(_text);logger.info("OpenChannel | useSendMessageCallback: Sending message has started",params);var pendingMsg=null;currentOpenChannel.sendUserMessage(params).onPending((function(pendingMessage){messagesDispatcher({type:"SENDING_MESSAGE_START",payload:{message:pendingMessage,channel:currentOpenChannel}}),pendingMsg=pendingMessage,setTimeout((function(){return scrollIntoLast(0,scrollRef)}))})).onSucceeded((function(message){logger.info("OpenChannel | useSendMessageCallback: Sending message succeeded",message),messagesDispatcher({type:"SENDING_MESSAGE_SUCCEEDED",payload:message})})).onFailed((function(error){logger.warning("OpenChannel | useSendMessageCallback: Sending message failed",error),messagesDispatcher({type:"SENDING_MESSAGE_FAILED",payload:pendingMsg}),900041===(null==error?void 0:error.code)&&messagesDispatcher({type:"ON_USER_MUTED",payload:{channel:currentOpenChannel,user:sdk.currentUser}})}))}}),[currentOpenChannel,onBeforeSendUserMessage,messageInputRef])},compressImages=(__webpack_require__("./node_modules/core-js/modules/es.symbol.async-iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.math.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.json.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/web.url.js"),__webpack_require__("./src/utils/compressImages.ts")),useSendbirdStateContext=__webpack_require__("./src/hooks/useSendbirdStateContext.tsx"),useModal=__webpack_require__("./src/hooks/useModal/index.tsx"),LocalizationContext=__webpack_require__("./src/lib/LocalizationContext.tsx"),consts=__webpack_require__("./src/utils/consts.ts"),Modal=__webpack_require__("./src/ui/Modal/index.tsx"),Button=__webpack_require__("./src/ui/Button/index.tsx");function useFileUploadCallback_typeof(o){return useFileUploadCallback_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},useFileUploadCallback_typeof(o)}function _regeneratorRuntime(){_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==useFileUploadCallback_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw new Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function useFileUploadCallback_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function useFileUploadCallback_objectSpread(e){for(var r=1;rarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iuikitUploadSizeLimit)){_context.next=8;break}return logger.info("OpenChannel | useFileUploadCallback: Cannot upload file size exceeding ".concat(uikitUploadSizeLimit)),openModal({modalProps:{titleText:stringSet.FILE_UPLOAD_NOTIFICATION__SIZE_LIMIT.replace("%d","".concat(Math.floor(uikitUploadSizeLimit/consts.i))),hideFooter:!0},childElement:function childElement(_ref4){var closeModal=_ref4.closeModal;return react_default.a.createElement(Modal.a,{type:Button.b.PRIMARY,submitText:stringSet.BUTTON__OK,hideCancelButton:!0,onCancel:closeModal,onSubmit:closeModal})}}),_context.abrupt("return");case 8:return _context.next=10,Object(compressImages.a)({files:[_file],imageCompression:imageCompression,logger:logger});case 10:_yield$compressImages=_context.sent,compressedFiles=_yield$compressImages.compressedFiles,_compressedFiles=_slicedToArray(compressedFiles,1),compressedFile=_compressedFiles[0],createCustomParams&&logger.info("OpenChannel | useFileUploadCallback: Creating params using onBeforeSendFileMessage",onBeforeSendFileMessage),params=onBeforeSendFileMessage?onBeforeSendFileMessage(compressedFile):createParamsDefault(compressedFile),logger.info("OpenChannel | useFileUploadCallback: Uploading file message start",params),currentOpenChannel.sendFileMessage(params).onPending((function(pendingMessage){messagesDispatcher({type:"SENDING_MESSAGE_START",payload:{message:useFileUploadCallback_objectSpread(useFileUploadCallback_objectSpread({},pendingMessage),{},{url:URL.createObjectURL(_file),requestState:"pending"}),channel:currentOpenChannel}}),setTimeout((function(){return scrollIntoLast(0,scrollRef)}))})).onSucceeded((function(message){logger.info("OpenChannel | useFileUploadCallback: Sending message succeeded",message),messagesDispatcher({type:"SENDING_MESSAGE_SUCCEEDED",payload:message})})).onFailed((function(error,message){logger.error("OpenChannel | useFileUploadCallback: Sending file message failed",{message:message,error:error}),message.localUrl=URL.createObjectURL(_file),message.file=_file,messagesDispatcher({type:"SENDING_MESSAGE_FAILED",payload:message})}));case 17:case"end":return _context.stop()}}),_callee)})));return function(_x){return _ref3.apply(this,arguments)}}(),[currentOpenChannel,onBeforeSendFileMessage,imageCompression])};var hooks_useUpdateMessageCallback=function useUpdateMessageCallback(_ref,_ref2){var currentOpenChannel=_ref.currentOpenChannel,onBeforeSendUserMessage=_ref.onBeforeSendUserMessage,logger=_ref2.logger,messagesDispatcher=_ref2.messagesDispatcher;return Object(react.useCallback)((function(messageId,text,callback){onBeforeSendUserMessage&&"function"==typeof onBeforeSendUserMessage&&logger.info("OpenChannel | useUpdateMessageCallback: Creating params using onBeforeUpdateUserMessage");var params=onBeforeSendUserMessage?onBeforeSendUserMessage(text):function createParamsDefault(txt){return{message:txt}}(text);currentOpenChannel.updateUserMessage(messageId,params).then((function(message){callback&&callback(),logger.info("OpenChannel | useUpdateMessageCallback: Updating message succeeded",{message:message,params:params}),messagesDispatcher({type:"ON_MESSAGE_UPDATED",payload:{channel:currentOpenChannel,message:message}})}))}),[currentOpenChannel,onBeforeSendUserMessage])};var hooks_useDeleteMessageCallback=function useDeleteMessageCallback(_ref,_ref2){var currentOpenChannel=_ref.currentOpenChannel,logger=_ref2.logger,messagesDispatcher=_ref2.messagesDispatcher;return Object(react.useCallback)((function(message,callback){logger.info("OpenChannel | useDeleteMessageCallback: Deleting message",message);var sendingStatus=message.sendingStatus;if(logger.info("OpenChannel | useDeleteMessageCallback: Deleting message requestState",sendingStatus),"failed"===sendingStatus||"pending"===sendingStatus)logger.info("OpenChannel | useDeleteMessageCallback: Deleted message from local",message),messagesDispatcher({type:"ON_MESSAGE_DELETED_BY_REQ_ID",payload:message.reqId}),callback&&callback();else{if("file"!==message.messageType&&"user"!==message.messageType)return;var messageToDelete=message;currentOpenChannel.deleteMessage(messageToDelete).then((function(){logger.info("OpenChannel | useDeleteMessageCallback: Deleting message on server",sendingStatus),callback&&callback(),logger.info("OpenChannel | useDeleteMessageCallback: Deleting message succeeded",message),messagesDispatcher({type:"ON_MESSAGE_DELETED",payload:{channel:currentOpenChannel,messageId:message.messageId}})})).catch((function(error){logger.warning("OpenChannel | useDeleteMessageCallback: Deleting message failed",error)}))}}),[currentOpenChannel])};var hooks_useResendMessageCallback=function useResendMessageCallback(_ref,_ref2){var currentOpenChannel=_ref.currentOpenChannel,logger=_ref2.logger,messagesDispatcher=_ref2.messagesDispatcher;return Object(react.useCallback)((function(failedMessage){logger.info("OpenChannel | useResendMessageCallback: Resending message has started",failedMessage),"boolean"==typeof(null==failedMessage?void 0:failedMessage.isResendable)&&failedMessage.isResendable?(failedMessage.isUserMessage()&¤tOpenChannel.resendMessage(failedMessage).onPending((function(message){messagesDispatcher({type:"RESENDING_MESSAGE_START",payload:{channel:currentOpenChannel,message:message}})})).onSucceeded((function(message){logger.info("OpenChannel | useResendMessageCallback: Reseding message succeeded",message),messagesDispatcher({type:"SENDING_MESSAGE_SUCCEEDED",payload:message})})).onFailed((function(error,message){logger.warning("OpenChannel | useResendMessageCallback: Resending message failed",error),messagesDispatcher({type:"SENDING_MESSAGE_FAILED",payload:message})})),failedMessage.isFileMessage()&¤tOpenChannel.resendMessage(failedMessage).onPending((function(message){messagesDispatcher({type:"RESENDING_MESSAGE_START",payload:{channel:currentOpenChannel,message:message}})})).onSucceeded((function(message){logger.info("OpenChannel | useResendMessageCallback: Resending file message succeeded",message),messagesDispatcher({type:"SENDING_MESSAGE_SUCCEEDED",payload:message})})).onFailed((function(error,message){logger.warning("OpenChannel | useResendMessageCallback: Resending file message failed",error),messagesDispatcher({type:"SENDING_MESSAGE_FAILED",payload:message})}))):(console.error("OpenChannel | useResendMessageCallback: Message is not resendable"),logger.warning("OpenChannel | useResendMessageCallback: Message is not resendable",failedMessage))}),[currentOpenChannel])};function useTrimMessageList_slicedToArray(arr,i){return function useTrimMessageList_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function useTrimMessageList_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function useTrimMessageList_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return useTrimMessageList_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return useTrimMessageList_arrayLikeToArray(o,minLen)}(arr,i)||function useTrimMessageList_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function useTrimMessageList_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);imessageLimit&&(logger.info("Trimming MessageList"),messagesDispatcher({type:"TRIM_MESSAGE_LIST",payload:{messageLimit:messageLimit}})),setInProgress(!0),setTimeout((function(){setInProgress(!1)}),5e3))}),[messagesLength,messageLimit])};function OpenChannelProvider_slicedToArray(arr,i){return function OpenChannelProvider_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function OpenChannelProvider_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function OpenChannelProvider_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return OpenChannelProvider_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OpenChannelProvider_arrayLikeToArray(o,minLen)}(arr,i)||function OpenChannelProvider_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function OpenChannelProvider_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i-1}(mutedParticipantIds,userId),amIBanned=Object(react.useMemo)((function(){return bannedParticipantIds.indexOf(user.userId)>=0}),[channelUrl,bannedParticipantIds,user]),amIMuted=Object(react.useMemo)((function(){return mutedParticipantIds.indexOf(user.userId)>=0}),[channelUrl,mutedParticipantIds,user]),amIOperator=Object(react.useMemo)((function(){return operators.map((function(operator){return operator.userId})).indexOf(user.userId)>=0}),[channelUrl,operators,user]);hooks_useSetChannel({channelUrl:channelUrl,sdkInit:sdkInit,fetchingParticipants:!1,userId:userId,currentOpenChannel:currentOpenChannel},{sdk:sdk,logger:logger,messagesDispatcher:messagesDispatcher});var checkScrollBottom=hooks_useCheckScrollBottom({conversationScrollRef:conversationScrollRef},{logger:logger});hooks_useHandleChannelEvents({currentOpenChannel:currentOpenChannel,checkScrollBottom:checkScrollBottom},{sdk:sdk,logger:logger,messagesDispatcher:messagesDispatcher,scrollRef:conversationScrollRef}),hooks_useInitialMessagesFetch({currentOpenChannel:currentOpenChannel,userFilledMessageListParams:userFilledMessageListParams},{logger:logger,messagesDispatcher:messagesDispatcher,scrollRef:conversationScrollRef});var fetchMore=function shouldFetchMore(messageLength,maxMessages){return"number"!=typeof maxMessages||"number"==typeof maxMessages&&maxMessages>messageLength}(null==allMessages?void 0:allMessages.length,messageLimit),onScroll=hooks_useScrollCallback({currentOpenChannel:currentOpenChannel,lastMessageTimestamp:lastMessageTimestamp,fetchMore:fetchMore},{sdk:sdk,logger:logger,messagesDispatcher:messagesDispatcher,hasMore:hasMore,userFilledMessageListParams:userFilledMessageListParams}),handleSendMessage=hooks_useSendMessageCallback({currentOpenChannel:currentOpenChannel,onBeforeSendUserMessage:onBeforeSendUserMessage,checkScrollBottom:checkScrollBottom,messageInputRef:messageInputRef},{sdk:sdk,logger:logger,messagesDispatcher:messagesDispatcher,scrollRef:conversationScrollRef}),handleFileUpload=hooks_useFileUploadCallback({currentOpenChannel:currentOpenChannel,onBeforeSendFileMessage:onBeforeSendFileMessage,checkScrollBottom:checkScrollBottom,imageCompression:imageCompression},{sdk:sdk,logger:logger,messagesDispatcher:messagesDispatcher,scrollRef:conversationScrollRef}),updateMessage=hooks_useUpdateMessageCallback({currentOpenChannel:currentOpenChannel,onBeforeSendUserMessage:onBeforeSendUserMessage},{logger:logger,messagesDispatcher:messagesDispatcher}),deleteMessage=hooks_useDeleteMessageCallback({currentOpenChannel:currentOpenChannel},{logger:logger,messagesDispatcher:messagesDispatcher}),resendMessage=hooks_useResendMessageCallback({currentOpenChannel:currentOpenChannel},{logger:logger,messagesDispatcher:messagesDispatcher});return hooks_useTrimMessageList({messagesLength:null==allMessages?void 0:allMessages.length,messageLimit:messageLimit},{messagesDispatcher:messagesDispatcher,logger:logger}),Object(react.useEffect)((function(){var subscriber=new Map;if(pubSub&&pubSub.subscribe)return subscriber.set(topics.c.SEND_USER_MESSAGE,pubSub.subscribe(topics.c.SEND_USER_MESSAGE,(function(msg){var channel=msg.channel,message=msg.message;scrollIntoLast(0,conversationScrollRef),channel&&channelUrl===(null==channel?void 0:channel.url)&&messagesDispatcher({type:"SENDING_MESSAGE_SUCCEEDED",payload:message})}))),subscriber.set(topics.c.SEND_MESSAGE_START,pubSub.subscribe(topics.c.SEND_MESSAGE_START,(function(msg){var channel=msg.channel,message=msg.message;channel&&channelUrl===(null==channel?void 0:channel.url)&&messagesDispatcher({type:"SENDING_MESSAGE_START",payload:{message:message,channel:channel}})}))),subscriber.set(topics.c.SEND_FILE_MESSAGE,pubSub.subscribe(topics.c.SEND_FILE_MESSAGE,(function(msg){var channel=msg.channel,message=msg.message;scrollIntoLast(0,conversationScrollRef),channel&&channelUrl===(null==channel?void 0:channel.url)&&messagesDispatcher({type:"SENDING_MESSAGE_SUCCEEDED",payload:{message:message,channel:channel}})}))),subscriber.set(topics.c.UPDATE_USER_MESSAGE,pubSub.subscribe(topics.c.UPDATE_USER_MESSAGE,(function(msg){var channel=msg.channel,message=msg.message;msg.fromSelector&&channel&&channelUrl===(null==channel?void 0:channel.url)&&messagesDispatcher({type:"ON_MESSAGE_UPDATED",payload:{channel:channel,message:message}})}))),subscriber.set(topics.c.DELETE_MESSAGE,pubSub.subscribe(topics.c.DELETE_MESSAGE,(function(msg){var channel=msg.channel,messageId=msg.messageId;channel&&channelUrl===(null==channel?void 0:channel.url)&&messagesDispatcher({type:"ON_MESSAGE_DELETED",payload:messageId})}))),function(){subscriber&&subscriber.forEach((function(s){try{s.remove()}catch(_unused){}}))}}),[channelUrl,sdkInit]),react_default.a.createElement(OpenChannelContext.Provider,{value:{channelUrl:channelUrl,children:children,isMessageGroupingEnabled:isMessageGroupingEnabled,queries:queries,onBeforeSendUserMessage:onBeforeSendUserMessage,messageLimit:messageLimit,onBeforeSendFileMessage:onBeforeSendFileMessage,onChatHeaderActionClick:onChatHeaderActionClick,onBackClick:onBackClick,allMessages:allMessages,loading:loading,initialized:initialized,currentOpenChannel:currentOpenChannel,isInvalid:isInvalid,hasMore:hasMore,lastMessageTimestamp:lastMessageTimestamp,operators:operators,bannedParticipantIds:bannedParticipantIds,mutedParticipantIds:mutedParticipantIds,messageInputRef:messageInputRef,conversationScrollRef:conversationScrollRef,disabled:disabled,amIBanned:amIBanned,amIMuted:amIMuted,amIOperator:amIOperator,checkScrollBottom:checkScrollBottom,fetchMore:fetchMore,onScroll:onScroll,handleSendMessage:handleSendMessage,handleFileUpload:handleFileUpload,updateMessage:updateMessage,deleteMessage:deleteMessage,resendMessage:resendMessage,frozen:messagesStore.frozen,disableUserProfile:disableUserProfile,renderUserProfile:renderUserProfile,participants:messagesStore.participants}},react_default.a.createElement(UserProfileContext.b,{isOpenChannel:!0,renderUserProfile:null==props?void 0:props.renderUserProfile,disableUserProfile:null!==(_props$disableUserPro=null==props?void 0:props.disableUserProfile)&&void 0!==_props$disableUserPro?_props$disableUserPro:null==config?void 0:config.disableUserProfile},children))},OpenChannelProvider_useOpenChannelContext=function useOpenChannelContext(){return react_default.a.useContext(OpenChannelContext)};try{OpenChannelProvider_OpenChannelProvider.displayName="OpenChannelProvider",OpenChannelProvider_OpenChannelProvider.__docgenInfo={description:"",displayName:"OpenChannelProvider",props:{channelUrl:{defaultValue:null,description:"",name:"channelUrl",required:!0,type:{name:"string"}},isMessageGroupingEnabled:{defaultValue:null,description:"",name:"isMessageGroupingEnabled",required:!1,type:{name:"boolean"}},queries:{defaultValue:null,description:"",name:"queries",required:!1,type:{name:"OpenChannelQueries"}},messageLimit:{defaultValue:null,description:"",name:"messageLimit",required:!1,type:{name:"number"}},onBeforeSendUserMessage:{defaultValue:null,description:"",name:"onBeforeSendUserMessage",required:!1,type:{name:"(text: string) => UserMessageCreateParams"}},onBeforeSendFileMessage:{defaultValue:null,description:"",name:"onBeforeSendFileMessage",required:!1,type:{name:"(file_: File) => FileMessageCreateParams"}},onChatHeaderActionClick:{defaultValue:null,description:"",name:"onChatHeaderActionClick",required:!1,type:{name:"() => void"}},onBackClick:{defaultValue:null,description:"",name:"onBackClick",required:!1,type:{name:"() => void"}},disableUserProfile:{defaultValue:null,description:"",name:"disableUserProfile",required:!1,type:{name:"boolean"}},renderUserProfile:{defaultValue:null,description:"",name:"renderUserProfile",required:!1,type:{name:"(props: RenderUserProfileProps) => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannel/context/OpenChannelProvider.tsx#OpenChannelProvider"]={docgenInfo:OpenChannelProvider_OpenChannelProvider.__docgenInfo,name:"OpenChannelProvider",path:"src/modules/OpenChannel/context/OpenChannelProvider.tsx#OpenChannelProvider"})}catch(__react_docgen_typescript_loader_error){}var MessageInput=__webpack_require__("./src/ui/MessageInput/index.tsx"),components_OpenChannelInput=react_default.a.forwardRef((function(props,ref){var _useOpenChannelContex=OpenChannelProvider_useOpenChannelContext(),currentOpenChannel=_useOpenChannelContex.currentOpenChannel,disabled=_useOpenChannelContex.disabled,handleSendMessage=_useOpenChannelContex.handleSendMessage,handleFileUpload=_useOpenChannelContex.handleFileUpload,amIMuted=_useOpenChannelContex.amIMuted,channel=currentOpenChannel,stringSet=Object(react.useContext)(LocalizationContext.a).stringSet,value=props.value;return channel?react_default.a.createElement("div",{className:"sendbird-openchannel-footer"},react_default.a.createElement(MessageInput.a,{channel:currentOpenChannel,ref:ref,value:value,disabled:disabled,isVoiceMessageEnabled:!1,onSendMessage:handleSendMessage,onFileUpload:handleFileUpload,placeholder:function getPlaceHolderString(){return amIMuted?stringSet.MESSAGE_INPUT__PLACE_HOLDER__MUTED:disabled?stringSet.MESSAGE_INPUT__PLACE_HOLDER__DISABLED:""}()})):null}));try{OpenChannelInput.displayName="OpenChannelInput",OpenChannelInput.__docgenInfo={description:"",displayName:"OpenChannelInput",props:{value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannel/components/OpenChannelInput/index.tsx#OpenChannelInput"]={docgenInfo:OpenChannelInput.__docgenInfo,name:"OpenChannelInput",path:"src/modules/OpenChannel/components/OpenChannelInput/index.tsx#OpenChannelInput"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./src/modules/OpenChannel/components/FrozenChannelNotification/frozen-channel-notification.scss");var Label=__webpack_require__("./src/ui/Label/index.tsx"),FrozenChannelNotification=function FrozenNotification(){var stringSet=Object(react.useContext)(LocalizationContext.a).stringSet;return react_default.a.createElement("div",{className:"sendbird-frozen-channel-notification"},react_default.a.createElement(Label.d,{className:"sendbird-frozen-channel-notification__text",type:Label.c.CAPTION_2},stringSet.CHANNEL_FROZEN))},Avatar=(__webpack_require__("./src/modules/OpenChannel/components/OpenChannelHeader/open-channel-header.scss"),__webpack_require__("./src/ui/Avatar/index.tsx")),Icon=__webpack_require__("./src/ui/Icon/index.tsx"),IconButton=__webpack_require__("./src/ui/IconButton/index.tsx"),MediaQueryContext=__webpack_require__("./src/lib/MediaQueryContext.tsx");function OpenchannelConversationHeader(){var stringSet=Object(react.useContext)(LocalizationContext.a).stringSet,_useOpenChannelContex=OpenChannelProvider_useOpenChannelContext(),currentOpenChannel=_useOpenChannelContex.currentOpenChannel,onChatHeaderActionClick=_useOpenChannelContex.onChatHeaderActionClick,amIOperator=_useOpenChannelContex.amIOperator,onBackClick=_useOpenChannelContex.onBackClick,title=null==currentOpenChannel?void 0:currentOpenChannel.name,subTitle="".concat(function kFormatter(num){return Math.abs(num)>999999?"".concat((Math.abs(num)/1e6).toFixed(1),"M"):Math.abs(num)>999?"".concat((Math.abs(num)/1e3).toFixed(1),"K"):"".concat(num)}(null==currentOpenChannel?void 0:currentOpenChannel.participantCount)," ").concat(stringSet.OPEN_CHANNEL_CONVERSATION__TITLE_PARTICIPANTS),coverImage=null==currentOpenChannel?void 0:currentOpenChannel.coverUrl,isMobile=Object(MediaQueryContext.b)().isMobile;return react_default.a.createElement("div",{className:"sendbird-openchannel-conversation-header"},react_default.a.createElement("div",{className:"sendbird-openchannel-conversation-header__left"},isMobile&&react_default.a.createElement(Icon.c,{className:"sendbird-oepnchannel-header__icon_back",onClick:onBackClick,fillColor:Icon.a.PRIMARY,width:"24px",height:"24px",type:Icon.b.ARROW_LEFT}),coverImage?react_default.a.createElement(Avatar.a,{className:"sendbird-openchannel-conversation-header__left__cover-image",src:coverImage,alt:"channel cover image",width:"32px",height:"32px"}):react_default.a.createElement("div",{className:"sendbird-openchannel-conversation-header__left__cover-image--icon",style:{width:32,height:32}},react_default.a.createElement(Icon.c,{type:Icon.b.CHANNELS,fillColor:Icon.a.CONTENT,width:"18px",height:"18px"})),react_default.a.createElement(Label.d,{className:"sendbird-openchannel-conversation-header__left__title",type:Label.c.H_2,color:Label.a.ONBACKGROUND_1},title||stringSet.NO_TITLE),react_default.a.createElement(Label.d,{className:"sendbird-openchannel-conversation-header__left__sub-title",type:Label.c.BODY_2,color:Label.a.ONBACKGROUND_2},subTitle||stringSet.NO_TITLE)),react_default.a.createElement("div",{className:"sendbird-openchannel-conversation-header__right"},react_default.a.createElement(IconButton.a,{className:"sendbird-openchannel-conversation-header__right__trigger",width:"32px",height:"32px",onClick:onChatHeaderActionClick},react_default.a.createElement(Icon.c,{type:amIOperator?Icon.b.INFO:Icon.b.MEMBERS,fillColor:Icon.a.PRIMARY,width:"24px",height:"24px"}))))}var PlaceHolder=__webpack_require__("./src/ui/PlaceHolder/index.tsx"),isSameDay=(__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./src/modules/OpenChannel/components/OpenChannelMessageList/openchannel-message-list.scss"),__webpack_require__("./node_modules/date-fns/esm/isSameDay/index.js")),OpenchannelUserMessage=__webpack_require__("./src/ui/OpenchannelUserMessage/index.tsx"),OpenChannelAdminMessage=__webpack_require__("./src/ui/OpenChannelAdminMessage/index.tsx"),OpenchannelOGMessage=__webpack_require__("./src/ui/OpenchannelOGMessage/index.tsx"),OpenchannelThumbnailMessage=__webpack_require__("./src/ui/OpenchannelThumbnailMessage/index.tsx"),OpenchannelFileMessage=__webpack_require__("./src/ui/OpenchannelFileMessage/index.tsx"),DateSeparator=__webpack_require__("./src/ui/DateSeparator/index.tsx"),FileViewer=__webpack_require__("./src/ui/FileViewer/index.tsx"),stringFormatterUtils=__webpack_require__("./src/ui/Label/stringFormatterUtils.ts");function RemoveMessageModal(_ref){var message=_ref.message,onCloseModal=_ref.onCloseModal,onDeleteMessage=_ref.onDeleteMessage,stringSet=Object(react.useContext)(LocalizationContext.a).stringSet;return react_default.a.createElement(Modal.b,{onCancel:onCloseModal,onSubmit:onDeleteMessage,submitText:stringSet.MESSAGE_MENU__DELETE,titleText:Object(stringFormatterUtils.a)(stringSet,message)})}try{RemoveMessageModal.displayName="RemoveMessageModal",RemoveMessageModal.__docgenInfo={description:"",displayName:"RemoveMessageModal",props:{message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"CoreMessageType"}},onCloseModal:{defaultValue:null,description:"",name:"onCloseModal",required:!0,type:{name:"() => void"}},onDeleteMessage:{defaultValue:null,description:"",name:"onDeleteMessage",required:!0,type:{name:"(message: ClientUserMessage | ClientFileMessage, callback?: () => void) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannel/components/OpenChannelMessage/RemoveMessageModal.tsx#RemoveMessageModal"]={docgenInfo:RemoveMessageModal.__docgenInfo,name:"RemoveMessageModal",path:"src/modules/OpenChannel/components/OpenChannelMessage/RemoveMessageModal.tsx#RemoveMessageModal"})}catch(__react_docgen_typescript_loader_error){}var types=__webpack_require__("./src/ui/FileViewer/types.ts"),MessageTypes={ADMIN:"ADMIN",USER:"USER",FILE:"FILE",THUMBNAIL:"THUMBNAIL",OG:"OG",UNKNOWN:"UNKNOWN"},SendingMessageStatus={NONE:"none",SUCCEEDED:"succeeded",FAILED:"failed",PENDING:"pending"},utils_getMessageType=function getMessageType(message,options){var _message$isUserMessag,_message$isAdminMessa,isOgMessageEnabledInOpenChannel=null==options?void 0:options.isOgMessageEnabledInOpenChannel;return null!=message&&null!==(_message$isUserMessag=message.isUserMessage)&&void 0!==_message$isUserMessag&&_message$isUserMessag.call(message)||"user"===(null==message?void 0:message.messageType)?null!=message&&message.ogMetaData&&isOgMessageEnabledInOpenChannel?MessageTypes.OG:MessageTypes.USER:null!=message&&null!==(_message$isAdminMessa=message.isAdminMessage)&&void 0!==_message$isAdminMessa&&_message$isAdminMessa.call(message)?MessageTypes.ADMIN:"file"===(null==message?void 0:message.messageType)?Object(types.b)(message.type)||Object(types.c)(message.type)?MessageTypes.THUMBNAIL:MessageTypes.FILE:MessageTypes.UNKNOWN};function OpenChannelMessage_typeof(o){return OpenChannelMessage_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},OpenChannelMessage_typeof(o)}function OpenChannelMessage_defineProperty(obj,key,value){return(key=function OpenChannelMessage_toPropertyKey(t){var i=function OpenChannelMessage_toPrimitive(t,r){if("object"!=OpenChannelMessage_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=OpenChannelMessage_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==OpenChannelMessage_typeof(i)?i:String(i)}(key))in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function OpenChannelMessage_slicedToArray(arr,i){return function OpenChannelMessage_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function OpenChannelMessage_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function OpenChannelMessage_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return OpenChannelMessage_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OpenChannelMessage_arrayLikeToArray(o,minLen)}(arr,i)||function OpenChannelMessage_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function OpenChannelMessage_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i ElementType"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"CoreMessageType"}},chainTop:{defaultValue:null,description:"",name:"chainTop",required:!1,type:{name:"boolean"}},chainBottom:{defaultValue:null,description:"",name:"chainBottom",required:!1,type:{name:"boolean"}},hasSeparator:{defaultValue:null,description:"",name:"hasSeparator",required:!1,type:{name:"boolean"}},editDisabled:{defaultValue:null,description:"",name:"editDisabled",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannel/components/OpenChannelMessage/index.tsx#OpenChannelMessage"]={docgenInfo:OpenChannelMessage.__docgenInfo,name:"OpenChannelMessage",path:"src/modules/OpenChannel/components/OpenChannelMessage/index.tsx#OpenChannelMessage"})}catch(__react_docgen_typescript_loader_error){}var MessageProvider=__webpack_require__("./src/modules/Message/context/MessageProvider.tsx"),useHandleOnScrollCallback=__webpack_require__("./src/hooks/useHandleOnScrollCallback/index.ts"),utils_messages=__webpack_require__("./src/utils/messages.ts");function OpenChannelMessageList_slicedToArray(arr,i){return function OpenChannelMessageList_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function OpenChannelMessageList_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function OpenChannelMessageList_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return OpenChannelMessageList_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OpenChannelMessageList_arrayLikeToArray(o,minLen)}(arr,i)||function OpenChannelMessageList_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function OpenChannelMessageList_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0?allMessages.map((function(message,index){var _sender,previousMessage=allMessages[index-1],nextMessage=allMessages[index-1],previousMessageCreatedAt=previousMessage&&previousMessage.createdAt,currentCreatedAt=null==message?void 0:message.createdAt,hasSeparator=!(previousMessageCreatedAt&&Object(isSameDay.a)(currentCreatedAt,previousMessageCreatedAt)),_ref2=OpenChannelMessageList_slicedToArray(isMessageGroupingEnabled?Object(utils_messages.a)(previousMessage,message,nextMessage):[!1,!1],2),chainTop=_ref2[0],chainBottom=_ref2[1],isByMe=(null==message||null===(_sender=message.sender)||void 0===_sender?void 0:_sender.userId)===userId,key=(null==message?void 0:message.messageId)||(null==message?void 0:message.reqId);return react_default.a.createElement(MessageProvider.a,{message:message,isByMe:isByMe,key:key},react_default.a.createElement(MessagOpenChannelMessageeHoc,{message:message,chainTop:chainTop,chainBottom:chainBottom,hasSeparator:hasSeparator,renderMessage:null==props?void 0:props.renderMessage}))})):(null==props||null===(_props$renderPlaceHol=props.renderPlaceHolderEmptyList)||void 0===_props$renderPlaceHol?void 0:_props$renderPlaceHol.call(props))||react_default.a.createElement(PlaceHolder.b,{className:"sendbird-openchannel-conversation-scroll__container__place-holder",type:PlaceHolder.a.NO_MESSAGES})}),[allMessages]);return react_default.a.createElement("div",{className:"sendbird-openchannel-conversation-scroll"},react_default.a.createElement("div",{className:"sendbird-openchannel-conversation-scroll__container"},react_default.a.createElement("div",{className:"sendbird-openchannel-conversation-scroll__container__padding"}),react_default.a.createElement("div",{className:["sendbird-openchannel-conversation-scroll__container__item-container",allMessages.length>0?"":"no-messages"].join(" "),onScroll:handleOnScroll,ref:scrollRef},memoizedMessageList)),showScrollDownButton&&react_default.a.createElement("div",{className:"sendbird-openchannel-conversation-scroll__container__scroll-bottom-button",onClick:scrollToBottom,onKeyDown:scrollToBottom,tabIndex:0,role:"button"},react_default.a.createElement(Icon.c,{width:"24px",height:"24px",type:Icon.b.CHEVRON_DOWN,fillColor:Icon.a.CONTENT})))}var OpenChannelMessageList=react_default.a.forwardRef(OpenchannelMessageList);try{OpenchannelMessageList.displayName="OpenchannelMessageList",OpenchannelMessageList.__docgenInfo={description:"",displayName:"OpenchannelMessageList",props:{renderMessage:{defaultValue:null,description:"",name:"renderMessage",required:!1,type:{name:"(props: RenderMessageProps) => ElementType"}},renderPlaceHolderEmptyList:{defaultValue:null,description:"",name:"renderPlaceHolderEmptyList",required:!1,type:{name:"() => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannel/components/OpenChannelMessageList/index.tsx#OpenchannelMessageList"]={docgenInfo:OpenchannelMessageList.__docgenInfo,name:"OpenchannelMessageList",path:"src/modules/OpenChannel/components/OpenChannelMessageList/index.tsx#OpenchannelMessageList"})}catch(__react_docgen_typescript_loader_error){}var COMPONENT_CLASS_NAME="sendbird-openchannel-conversation",OpenChannelUI_OpenChannelUI=function OpenChannelUI(_ref){var renderMessage=_ref.renderMessage,renderHeader=_ref.renderHeader,renderInput=_ref.renderInput,renderPlaceHolderEmptyList=_ref.renderPlaceHolderEmptyList,renderPlaceHolderError=_ref.renderPlaceHolderError,renderPlaceHolderLoading=_ref.renderPlaceHolderLoading,_useOpenChannelContex=OpenChannelProvider_useOpenChannelContext(),currentOpenChannel=_useOpenChannelContex.currentOpenChannel,amIBanned=_useOpenChannelContex.amIBanned,loading=_useOpenChannelContex.loading,isInvalid=_useOpenChannelContex.isInvalid,messageInputRef=_useOpenChannelContex.messageInputRef,conversationScrollRef=_useOpenChannelContex.conversationScrollRef;return currentOpenChannel&&null!=currentOpenChannel&¤tOpenChannel.url&&!amIBanned?loading?(null==renderPlaceHolderLoading?void 0:renderPlaceHolderLoading())||react_default.a.createElement("div",{className:COMPONENT_CLASS_NAME},react_default.a.createElement(PlaceHolder.b,{type:PlaceHolder.a.LOADING})):isInvalid?(null==renderPlaceHolderError?void 0:renderPlaceHolderError())||react_default.a.createElement("div",{className:COMPONENT_CLASS_NAME},react_default.a.createElement(PlaceHolder.b,{type:PlaceHolder.a.WRONG})):react_default.a.createElement("div",{className:COMPONENT_CLASS_NAME},(null==renderHeader?void 0:renderHeader())||react_default.a.createElement(OpenchannelConversationHeader,null),(null==currentOpenChannel?void 0:currentOpenChannel.isFrozen)&&react_default.a.createElement(FrozenChannelNotification,null),react_default.a.createElement(OpenChannelMessageList,{ref:conversationScrollRef,renderMessage:renderMessage,renderPlaceHolderEmptyList:renderPlaceHolderEmptyList}),(null==renderInput?void 0:renderInput())||react_default.a.createElement(components_OpenChannelInput,{ref:messageInputRef})):(null==renderPlaceHolderError?void 0:renderPlaceHolderError())||react_default.a.createElement("div",{className:COMPONENT_CLASS_NAME},react_default.a.createElement(PlaceHolder.b,{type:PlaceHolder.a.NO_CHANNELS}))},components_OpenChannelUI=OpenChannelUI_OpenChannelUI;try{OpenChannelUI_OpenChannelUI.displayName="OpenChannelUI",OpenChannelUI_OpenChannelUI.__docgenInfo={description:"",displayName:"OpenChannelUI",props:{renderMessage:{defaultValue:null,description:"",name:"renderMessage",required:!1,type:{name:"(props: RenderMessageProps) => ElementType"}},renderHeader:{defaultValue:null,description:"",name:"renderHeader",required:!1,type:{name:"() => ReactElement>"}},renderInput:{defaultValue:null,description:"",name:"renderInput",required:!1,type:{name:"() => ReactElement>"}},renderPlaceHolderEmptyList:{defaultValue:null,description:"",name:"renderPlaceHolderEmptyList",required:!1,type:{name:"() => ReactElement>"}},renderPlaceHolderError:{defaultValue:null,description:"",name:"renderPlaceHolderError",required:!1,type:{name:"() => ReactElement>"}},renderPlaceHolderLoading:{defaultValue:null,description:"",name:"renderPlaceHolderLoading",required:!1,type:{name:"() => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannel/components/OpenChannelUI/index.tsx#OpenChannelUI"]={docgenInfo:OpenChannelUI_OpenChannelUI.__docgenInfo,name:"OpenChannelUI",path:"src/modules/OpenChannel/components/OpenChannelUI/index.tsx#OpenChannelUI"})}catch(__react_docgen_typescript_loader_error){}var OpenChannel_OpenChannel=function OpenChannel(props){return react_default.a.createElement(OpenChannelProvider_OpenChannelProvider,{channelUrl:null==props?void 0:props.channelUrl,isMessageGroupingEnabled:null==props?void 0:props.isMessageGroupingEnabled,queries:null==props?void 0:props.queries,messageLimit:null==props?void 0:props.messageLimit,onBeforeSendUserMessage:null==props?void 0:props.onBeforeSendUserMessage,onBeforeSendFileMessage:null==props?void 0:props.onBeforeSendFileMessage,onChatHeaderActionClick:null==props?void 0:props.onChatHeaderActionClick,disableUserProfile:null==props?void 0:props.disableUserProfile,renderUserProfile:null==props?void 0:props.renderUserProfile,onBackClick:null==props?void 0:props.onBackClick},react_default.a.createElement(components_OpenChannelUI,{renderMessage:null==props?void 0:props.renderMessage,renderHeader:null==props?void 0:props.renderHeader,renderInput:null==props?void 0:props.renderInput,renderPlaceHolderEmptyList:null==props?void 0:props.renderPlaceHolderEmptyList,renderPlaceHolderError:null==props?void 0:props.renderPlaceHolderError,renderPlaceHolderLoading:null==props?void 0:props.renderPlaceHolderLoading}))};__webpack_exports__.a=OpenChannel_OpenChannel;try{OpenChannel_OpenChannel.displayName="OpenChannel",OpenChannel_OpenChannel.__docgenInfo={description:"",displayName:"OpenChannel",props:{channelUrl:{defaultValue:null,description:"",name:"channelUrl",required:!0,type:{name:"string"}},isMessageGroupingEnabled:{defaultValue:null,description:"",name:"isMessageGroupingEnabled",required:!1,type:{name:"boolean"}},queries:{defaultValue:null,description:"",name:"queries",required:!1,type:{name:"OpenChannelQueries"}},messageLimit:{defaultValue:null,description:"",name:"messageLimit",required:!1,type:{name:"number"}},onBeforeSendUserMessage:{defaultValue:null,description:"",name:"onBeforeSendUserMessage",required:!1,type:{name:"(text: string) => UserMessageCreateParams"}},onBeforeSendFileMessage:{defaultValue:null,description:"",name:"onBeforeSendFileMessage",required:!1,type:{name:"(file_: File) => FileMessageCreateParams"}},onChatHeaderActionClick:{defaultValue:null,description:"",name:"onChatHeaderActionClick",required:!1,type:{name:"() => void"}},onBackClick:{defaultValue:null,description:"",name:"onBackClick",required:!1,type:{name:"() => void"}},disableUserProfile:{defaultValue:null,description:"",name:"disableUserProfile",required:!1,type:{name:"boolean"}},renderUserProfile:{defaultValue:null,description:"",name:"renderUserProfile",required:!1,type:{name:"(props: RenderUserProfileProps) => ReactElement>"}},renderMessage:{defaultValue:null,description:"",name:"renderMessage",required:!1,type:{name:"(props: RenderMessageProps) => ElementType"}},renderHeader:{defaultValue:null,description:"",name:"renderHeader",required:!1,type:{name:"() => ReactElement>"}},renderInput:{defaultValue:null,description:"",name:"renderInput",required:!1,type:{name:"() => ReactElement>"}},renderPlaceHolderEmptyList:{defaultValue:null,description:"",name:"renderPlaceHolderEmptyList",required:!1,type:{name:"() => ReactElement>"}},renderPlaceHolderError:{defaultValue:null,description:"",name:"renderPlaceHolderError",required:!1,type:{name:"() => ReactElement>"}},renderPlaceHolderLoading:{defaultValue:null,description:"",name:"renderPlaceHolderLoading",required:!1,type:{name:"() => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannel/index.tsx#OpenChannel"]={docgenInfo:OpenChannel_OpenChannel.__docgenInfo,name:"OpenChannel",path:"src/modules/OpenChannel/index.tsx#OpenChannel"})}catch(__react_docgen_typescript_loader_error){}},"./src/modules/OpenChannelApp/Community.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return Community}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var react__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_10__),_lib_Sendbird__WEBPACK_IMPORTED_MODULE_13__=(__webpack_require__("./src/modules/OpenChannelApp/community.scss"),__webpack_require__("./src/modules/OpenChannelApp/theme.scss"),__webpack_require__("./src/lib/Sendbird.tsx")),_OpenChannel__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./src/modules/OpenChannel/index.tsx"),_OpenChannelSettings__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./src/modules/OpenChannelSettings/index.tsx"),_OpenChannelList__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./src/modules/OpenChannelList/index.tsx");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i void"}},isStreaming:{defaultValue:{value:"false"},description:"",name:"isStreaming",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannelApp/components/OpenChannelPreview.tsx#OpenChannelPreview"]={docgenInfo:OpenChannelPreview.__docgenInfo,name:"OpenChannelPreview",path:"src/modules/OpenChannelApp/components/OpenChannelPreview.tsx#OpenChannelPreview"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./src/modules/OpenChannelApp/components/profile.scss");function Profile(_ref){var user=_ref.user;return react_default.a.createElement("div",{className:"profile-component"},react_default.a.createElement("div",{className:"profile-avatar"},user.profileUrl?react_default.a.createElement("img",{src:user.profileUrl,alt:user.nickname}):react_default.a.createElement(Icons_ProfileAvatar,null)),react_default.a.createElement("div",{className:"profile-text"},react_default.a.createElement("div",{className:"profile-name"},user.nickname),react_default.a.createElement("div",{className:"profile-nickname"},user.userId)))}try{Profile.displayName="Profile",Profile.__docgenInfo={description:"",displayName:"Profile",props:{user:{defaultValue:null,description:"",name:"user",required:!0,type:{name:"User"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannelApp/components/Profile.tsx#Profile"]={docgenInfo:Profile.__docgenInfo,name:"Profile",path:"src/modules/OpenChannelApp/components/Profile.tsx#Profile"})}catch(__react_docgen_typescript_loader_error){}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&setCurrentChannel(openChannels[0])}))}}),[sdk]),react_default.a.createElement("div",{className:"streaming-channel-list"},react_default.a.createElement("div",{className:"streaming-channel-list__title"},"Live streaming"),react_default.a.createElement("div",{className:"streaming-channel-list__list"},0===channels.length?"No Channels":react_default.a.createElement("div",{className:"streaming-channel-list__scroll-wrap"},react_default.a.createElement("div",null,channels.map((function(c){return react_default.a.createElement(OpenChannelPreview,{isStreaming:!0,key:c.url,channel:c,selected:c.url===currentChannelUrl,onClick:function onClick(){setCurrentChannel(c)}})})))),react_default.a.createElement("p",{className:"streaming-channel-list__placeholder"},"Preset channels developed by UI Kit")),react_default.a.createElement("div",{className:"streaming-channel-list__footer"},react_default.a.createElement(Profile,{user:user})))}var components_StreamingChannelList=Object(SendbirdSdkContext.b)(StreamingChannelList,(function(store){return{sdk:selectors.c(store),user:store.stores.userStore.user}}));try{StreamingChannelList.displayName="StreamingChannelList",StreamingChannelList.__docgenInfo={description:"",displayName:"StreamingChannelList",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannelApp/components/StreamingChannelList.tsx#StreamingChannelList"]={docgenInfo:StreamingChannelList.__docgenInfo,name:"StreamingChannelList",path:"src/modules/OpenChannelApp/components/StreamingChannelList.tsx#StreamingChannelList"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./src/modules/OpenChannelApp/components/dummy-stream.scss");function DummyStream(_ref){var currentChannel=_ref.currentChannel,streamInfo=Object(react.useMemo)((function(){var channelMeta;try{channelMeta=JSON.parse(currentChannel.data)}catch(error){channelMeta=null}return channelMeta}),[currentChannel]);return streamInfo?react_default.a.createElement("div",{className:"dummy-stream-empty"},react_default.a.createElement("div",{className:"dummy-stream-banner"},react_default.a.createElement("img",{src:streamInfo.live_channel_url,alt:streamInfo.name})),react_default.a.createElement("div",{className:"dummy-stream-panel"},react_default.a.createElement("div",{className:"dummy-stream-panel__left"},react_default.a.createElement("div",{className:"channel-avatar-large"},react_default.a.createElement("img",{src:streamInfo.thumbnail_url,alt:streamInfo.name}))),react_default.a.createElement("div",{className:"dummy-stream-panel__right"},react_default.a.createElement("div",{className:"stream-name"},react_default.a.createElement(Icons_LiveBadge,null),react_default.a.createElement("div",{className:"channel-name"},currentChannel.name)),react_default.a.createElement("div",{className:"stream-meta"},currentChannel.participantCount," watching now. Started streaming 1 hours ago"),react_default.a.createElement("div",{className:"stream-creator"},react_default.a.createElement("div",{className:"stream-creator-name"},streamInfo.creator_info&&streamInfo.creator_info.name),react_default.a.createElement("div",{className:"stream-creator-tags"},streamInfo.tags&&streamInfo.tags.map((function(tag){return react_default.a.createElement("div",{className:"tag",key:tag},tag)}))))))):react_default.a.createElement("div",{className:"dummy-stream-empty"},"No information")}try{DummyStream.displayName="DummyStream",DummyStream.__docgenInfo={description:"",displayName:"DummyStream",props:{currentChannel:{defaultValue:null,description:"",name:"currentChannel",required:!0,type:{name:"OpenChannel"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannelApp/components/DummyStream.tsx#DummyStream"]={docgenInfo:DummyStream.__docgenInfo,name:"DummyStream",path:"src/modules/OpenChannelApp/components/DummyStream.tsx#DummyStream"})}catch(__react_docgen_typescript_loader_error){}function Streaming_slicedToArray(arr,i){return function Streaming_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function Streaming_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function Streaming_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return Streaming_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Streaming_arrayLikeToArray(o,minLen)}(arr,i)||function Streaming_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Streaming_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannelApp/components/Login.tsx#Login"]={docgenInfo:Login.__docgenInfo,name:"Login",path:"src/modules/OpenChannelApp/components/Login.tsx#Login"})}catch(__react_docgen_typescript_loader_error){}var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");function index_stories_slicedToArray(arr,i){return function index_stories_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function index_stories_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function index_stories_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return index_stories_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return index_stories_arrayLikeToArray(o,minLen)}(arr,i)||function index_stories_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function index_stories_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i fitPageSize(\n \n)'}},index_stories_OpenChannelApp.parameters),index_stories_user1.parameters=Object.assign({storySource:{source:'() => fitPageSize(\n \n)'}},index_stories_user1.parameters),index_stories_user2.parameters=Object.assign({storySource:{source:'() => fitPageSize(\n \n)'}},index_stories_user2.parameters),index_stories_EmptyChannel.parameters=Object.assign({storySource:{source:'() => fitPageSize(\n \n)'}},index_stories_EmptyChannel.parameters),index_stories_StreamingAppLogin.parameters=Object.assign({storySource:{source:"() => {\n const [userId, setUserId] = useState('');\n const [nickname, setNickname] = useState('');\n const [darkTheme, setDarkTheme] = useState(false);\n if (!appId || !userId || !nickname) {\n return (\n {\n setUserId(userId);\n setNickname(nickName);\n setDarkTheme(darkTheme);\n }}\n />\n );\n }\n return (\n \n );\n}"}},index_stories_StreamingAppLogin.parameters),index_stories_CommunityAppLogin.parameters=Object.assign({storySource:{source:"() => {\n const [userId, setUserId] = useState('');\n const [nickname, setNickname] = useState('');\n const [darkTheme, setDarkTheme] = useState(false);\n if (!appId || !userId || !nickname) {\n return (\n {\n setUserId(userId);\n setNickname(nickName);\n setDarkTheme(darkTheme);\n }}\n />\n );\n }\n return (\n \n );\n}"}},index_stories_CommunityAppLogin.parameters),index_stories_StreamingAppLogin.__docgenInfo={description:"",methods:[],displayName:"StreamingAppLogin"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannelApp/stories/index.stories.js"]={name:"StreamingAppLogin",docgenInfo:index_stories_StreamingAppLogin.__docgenInfo,path:"src/modules/OpenChannelApp/stories/index.stories.js"}),index_stories_CommunityAppLogin.__docgenInfo={description:"",methods:[],displayName:"CommunityAppLogin"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannelApp/stories/index.stories.js"]={name:"CommunityAppLogin",docgenInfo:index_stories_CommunityAppLogin.__docgenInfo,path:"src/modules/OpenChannelApp/stories/index.stories.js"})},"./src/modules/OpenChannelApp/stories/openchannel-mobile.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"OpenChannelApp",(function(){return OpenChannelApp})),__webpack_require__.d(__webpack_exports__,"OpenChannelAppDark",(function(){return OpenChannelAppDark}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js");var react__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/react/index.js"),_OpenChannelList__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./src/modules/OpenChannelList/index.tsx"),_OpenChannel__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./src/modules/OpenChannel/index.tsx"),_OpenChannelSettings__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./src/modules/OpenChannelSettings/index.tsx"),_lib_Sendbird__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./src/lib/Sendbird.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/react/jsx-runtime.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i {\n const [panel, setPanel] = useState(PANELS?.CHANNEL_LIST);\n const [currentChannelUrl, setCurrentChannelUrl] = useState(null);\n return (\n \n {\n panel === PANELS?.CHANNEL_LIST && (\n
\n {\n setCurrentChannelUrl(channel?.url);\n setPanel(PANELS.CHANNEL);\n }}\n disableAutoSelect\n />\n
\n )\n }\n {\n panel === PANELS?.CHANNEL && (\n
\n {\n setPanel(PANELS.CHANNEL_LIST);\n }}\n onChatHeaderActionClick={() => {\n setPanel(PANELS.CHANNEL_SETTINGS);\n }}\n />\n
\n )\n }\n {\n panel === PANELS?.CHANNEL_SETTINGS && (\n
\n {\n setPanel(PANELS.CHANNEL);\n }}\n onDeleteChannel={() => {\n setPanel(PANELS.CHANNEL_LIST);\n }}\n />\n
\n )\n }\n
\n );\n}"}},OpenChannelApp.parameters),OpenChannelAppDark.parameters=Object.assign({storySource:{source:"() => {\n const [panel, setPanel] = useState(PANELS?.CHANNEL_LIST);\n const [currentChannelUrl, setCurrentChannelUrl] = useState(null);\n return (\n \n {\n panel === PANELS?.CHANNEL_LIST && (\n
\n {\n setCurrentChannelUrl(channel?.url);\n setPanel(PANELS.CHANNEL);\n }}\n disableAutoSelect\n />\n
\n )\n }\n {\n panel === PANELS?.CHANNEL && (\n
\n {\n setPanel(PANELS.CHANNEL_LIST);\n }}\n onChatHeaderActionClick={() => {\n setPanel(PANELS.CHANNEL_SETTINGS);\n }}\n />\n
\n )\n }\n {\n panel === PANELS?.CHANNEL_SETTINGS && (\n
\n {\n setPanel(PANELS.CHANNEL);\n }}\n onDeleteChannel={() => {\n setPanel(PANELS.CHANNEL_LIST);\n }}\n />\n
\n )\n }\n
\n );\n}"}},OpenChannelAppDark.parameters),OpenChannelApp.__docgenInfo={description:"",methods:[],displayName:"OpenChannelApp"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannelApp/stories/openchannel-mobile.stories.js"]={name:"OpenChannelApp",docgenInfo:OpenChannelApp.__docgenInfo,path:"src/modules/OpenChannelApp/stories/openchannel-mobile.stories.js"}),OpenChannelAppDark.__docgenInfo={description:"",methods:[],displayName:"OpenChannelAppDark"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannelApp/stories/openchannel-mobile.stories.js"]={name:"OpenChannelAppDark",docgenInfo:OpenChannelAppDark.__docgenInfo,path:"src/modules/OpenChannelApp/stories/openchannel-mobile.stories.js"})},"./src/modules/OpenChannelApp/stories/utils.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return fitPageSize}));var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__),fitPageSize=function fitPageSize(component){return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{style:{height:"90vh",width:"90vw",paddingLeft:"10px",paddingTop:"10px"}},component)};try{fitPageSize.displayName="fitPageSize",fitPageSize.__docgenInfo={description:"",displayName:"fitPageSize",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannelApp/stories/utils.tsx#fitPageSize"]={docgenInfo:fitPageSize.__docgenInfo,name:"fitPageSize",path:"src/modules/OpenChannelApp/stories/utils.tsx#fitPageSize"})}catch(__react_docgen_typescript_loader_error){}},"./src/modules/OpenChannelApp/streaming.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/OpenChannelApp/streaming.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/OpenChannelApp/theme.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/OpenChannelApp/theme.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/OpenChannelList/components/OpenChannelListUI/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/OpenChannelList/components/OpenChannelListUI/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/OpenChannelList/components/OpenChannelPreview/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/OpenChannelList/components/OpenChannelPreview/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/OpenChannelList/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),Avatar=(__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./src/modules/OpenChannelList/components/OpenChannelListUI/index.scss"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./src/modules/OpenChannelList/components/OpenChannelPreview/index.scss"),__webpack_require__("./src/ui/Avatar/index.tsx")),Icon=__webpack_require__("./src/ui/Icon/index.tsx"),Label=__webpack_require__("./src/ui/Label/index.tsx");function OpenChannelPreview_OpenChannelPreview(_ref){var className=_ref.className,isSelected=_ref.isSelected,channel=_ref.channel,onClick=_ref.onClick;return react_default.a.createElement("div",{className:"sendbird-open-channel-preview ".concat(isSelected?"selected":""," ").concat(className),onClick:onClick},react_default.a.createElement("div",{className:"sendbird-open-channel-preview__cover-image"},react_default.a.createElement(Avatar.a,{className:"sendbird-open-channel-preview__cover-image__avatar",src:null==channel?void 0:channel.coverUrl,alt:"cover-image",width:"42px",height:"42px",customDefaultComponent:function customDefaultComponent(){return react_default.a.createElement("div",{className:"sendbird-open-channel-preview__cover-image__avatar--default"},react_default.a.createElement(Icon.c,{type:Icon.b.CHANNELS,fillColor:Icon.a.CONTENT,width:"24px",height:"24px"}))}})),react_default.a.createElement("div",{className:"sendbird-open-channel-preview__context"},react_default.a.createElement("div",{className:"sendbird-open-channel-preview__context__title"},react_default.a.createElement(Label.d,{className:"sendbird-open-channel-preview__context__title__channel-name ".concat(null!=channel&&channel.isFrozen?"frozen":""),type:Label.c.SUBTITLE_2,color:isSelected?Label.a.PRIMARY:Label.a.ONBACKGROUND_1},null==channel?void 0:channel.name),null!=channel&&channel.isFrozen?react_default.a.createElement(Icon.c,{className:"sendbird-open-channel-preview__context__title__frozen",type:Icon.b.FREEZE,fillColor:Icon.a.PRIMARY,width:"16px",height:"16px"}):""),react_default.a.createElement("div",{className:"sendbird-open-channel-preview__context__participants"},react_default.a.createElement(Icon.c,{className:"sendbird-open-channel-preview__context__participants__icon",type:Icon.b.MEMBERS,fillColor:Icon.a.ON_BACKGROUND_2,width:"14px",height:"14px"}),react_default.a.createElement(Label.d,{className:"sendbird-open-channel-preview__context__participants__count",type:Label.c.CAPTION_3,color:Label.a.ONBACKGROUND_2},(null==channel?void 0:channel.participantCount)||"0"))))}var components_OpenChannelPreview=OpenChannelPreview_OpenChannelPreview;try{OpenChannelPreview_OpenChannelPreview.displayName="OpenChannelPreview",OpenChannelPreview_OpenChannelPreview.__docgenInfo={description:"",displayName:"OpenChannelPreview",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},isSelected:{defaultValue:null,description:"",name:"isSelected",required:!1,type:{name:"boolean"}},channel:{defaultValue:null,description:"",name:"channel",required:!0,type:{name:"OpenChannel"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"(e: MouseEvent) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannelList/components/OpenChannelPreview/index.tsx#OpenChannelPreview"]={docgenInfo:OpenChannelPreview_OpenChannelPreview.__docgenInfo,name:"OpenChannelPreview",path:"src/modules/OpenChannelList/components/OpenChannelPreview/index.tsx#OpenChannelPreview"})}catch(__react_docgen_typescript_loader_error){}var PlaceHolder=__webpack_require__("./src/ui/PlaceHolder/index.tsx"),IconButton=__webpack_require__("./src/ui/IconButton/index.tsx"),OpenChannelListFetchingStatus=function(OpenChannelListFetchingStatus){return OpenChannelListFetchingStatus.EMPTY="EMPTY",OpenChannelListFetchingStatus.FETCHING="FETCHING",OpenChannelListFetchingStatus.DONE="DONE",OpenChannelListFetchingStatus.ERROR="ERROR",OpenChannelListFetchingStatus}({}),topics=(__webpack_require__("./node_modules/core-js/modules/es.map.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./src/lib/pubSub/topics.ts")),useSendbirdStateContext=__webpack_require__("./src/hooks/useSendbirdStateContext.tsx"),OpenChannelListActionTypes=(__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),function(OpenChannelListActionTypes){return OpenChannelListActionTypes.INIT_OPEN_CHANNEL_LIST_START="INIT_OPEN_CHANNEL_LIST_START",OpenChannelListActionTypes.INIT_OPEN_CHANNEL_LIST_SUCCESS="INIT_OPEN_CHANNEL_LIST_SUCCESS",OpenChannelListActionTypes.INIT_OPEN_CHANNEL_LIST_FAILURE="INIT_OPEN_CHANNEL_LIST_FAILURE",OpenChannelListActionTypes.RESET_OPEN_CHANNEL_LIST="RESET_OPEN_CHANNEL_LIST",OpenChannelListActionTypes.FETCH_OPEN_CHANNEL_LIST_START="FETCH_OPEN_CHANNEL_LIST_START",OpenChannelListActionTypes.FETCH_OPEN_CHANNEL_LIST_SUCCESS="FETCH_OPEN_CHANNEL_LIST_SUCCESS",OpenChannelListActionTypes.FETCH_OPEN_CHANNEL_LIST_FAILURE="FETCH_OPEN_CHANNEL_LIST_FAILURE",OpenChannelListActionTypes.CREATE_OPEN_CHANNEL="CREATE_OPEN_CHANNEL",OpenChannelListActionTypes.SET_CURRENT_OPEN_CHANNEL="SET_CURRENT_OPEN_CHANNEL",OpenChannelListActionTypes.UPDATE_OPEN_CHANNEL_LIST_QUERY="UPDATE_OPEN_CHANNEL_LIST_QUERY",OpenChannelListActionTypes.UPDATE_OPEN_CHANNEL="UPDATE_OPEN_CHANNEL",OpenChannelListActionTypes}(OpenChannelListActionTypes||{})),actionTypes=OpenChannelListActionTypes;function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0?OpenChannelListFetchingStatus.DONE:OpenChannelListFetchingStatus.EMPTY});case actionTypes.INIT_OPEN_CHANNEL_LIST_FAILURE:return _objectSpread(_objectSpread({},state),{},{allChannels:[],fetchingStatus:OpenChannelListFetchingStatus.ERROR});case actionTypes.RESET_OPEN_CHANNEL_LIST:return _objectSpread(_objectSpread({},state),{},{allChannels:[],fetchingStatus:OpenChannelListFetchingStatus.EMPTY});case actionTypes.FETCH_OPEN_CHANNEL_LIST_START:return state;case actionTypes.FETCH_OPEN_CHANNEL_LIST_SUCCESS:return _objectSpread(_objectSpread({},state),{},{allChannels:[].concat(_toConsumableArray(state.allChannels),_toConsumableArray(action.payload))});case actionTypes.FETCH_OPEN_CHANNEL_LIST_FAILURE:return state;case actionTypes.CREATE_OPEN_CHANNEL:return _objectSpread(_objectSpread({},state),{},{currentChannel:action.payload,allChannels:[action.payload].concat(_toConsumableArray(state.allChannels))});case actionTypes.SET_CURRENT_OPEN_CHANNEL:return _objectSpread(_objectSpread({},state),{},{currentChannel:action.payload});case actionTypes.UPDATE_OPEN_CHANNEL_LIST_QUERY:return _objectSpread(_objectSpread({},state),{},{channelListQuery:null==action?void 0:action.payload});case actionTypes.UPDATE_OPEN_CHANNEL:var _state$currentChannel,_action$payload2;return _objectSpread(_objectSpread({},state),{},{allChannels:state.allChannels.map((function(channel){var _action$payload;return(null==channel?void 0:channel.url)===(null===(_action$payload=action.payload)||void 0===_action$payload?void 0:_action$payload.url)?action.payload:channel})),currentChannel:(null===(_state$currentChannel=state.currentChannel)||void 0===_state$currentChannel?void 0:_state$currentChannel.url)===(null==action||null===(_action$payload2=action.payload)||void 0===_action$payload2?void 0:_action$payload2.url)?state.currentChannel:action.payload});default:return state}}var initialState={allChannels:[],currentChannel:null,fetchingStatus:OpenChannelListFetchingStatus.EMPTY,channelListQuery:null};var hooks_useFetchNextCallback=function useFetchNextCallback(_ref,_ref2){var sdkInitialized=_ref.sdkInitialized,openChannelListQuery=_ref.openChannelListQuery,logger=_ref2.logger,openChannelListDispatcher=_ref2.openChannelListDispatcher;return Object(react.useCallback)((function(callback){sdkInitialized&&null!=openChannelListQuery&&openChannelListQuery.hasNext?(logger.info("OpenChannelList|useFetchNextCallback : Fetch channels"),openChannelListDispatcher({type:actionTypes.FETCH_OPEN_CHANNEL_LIST_START,payload:null}),openChannelListQuery.next().then((function(channelList){callback(channelList,null),logger.info("OpenChannelList|useFetchNextCallback: Succeeded fetching channels",channelList),openChannelListDispatcher({type:actionTypes.FETCH_OPEN_CHANNEL_LIST_SUCCESS,payload:channelList})})).catch((function(err){callback(null,err),logger.error("OpenChannelList|useFetchNextCallback: Failed fetching channels",err),openChannelListDispatcher({type:actionTypes.FETCH_OPEN_CHANNEL_LIST_FAILURE,payload:null})}))):logger.info("OpenChannelList|useFetchNextCallback : There is no more channels")}),[sdkInitialized,openChannelListQuery])};var hooks_createChannelListQuery=function createChannelListQuery(_ref){var _sdk$openChannel,_sdk$openChannel$crea,sdk=_ref.sdk,logMessage=_ref.logMessage,openChannelListQuery=_ref.openChannelListQuery,logger=_ref.logger,openChannelListDispatcher=_ref.openChannelListDispatcher,params={limit:20,includeFrozen:!0};openChannelListQuery&&Object.keys(openChannelListQuery).forEach((function(key){params[key]=openChannelListQuery[key]}));var channelListQuery=null==sdk||null===(_sdk$openChannel=sdk.openChannel)||void 0===_sdk$openChannel||null===(_sdk$openChannel$crea=_sdk$openChannel.createOpenChannelListQuery)||void 0===_sdk$openChannel$crea?void 0:_sdk$openChannel$crea.call(_sdk$openChannel,params);return logger.info(logMessage,channelListQuery),openChannelListDispatcher({type:actionTypes.UPDATE_OPEN_CHANNEL_LIST_QUERY,payload:channelListQuery}),channelListQuery};var hooks_useSetupOpenChannelList=function useSetupOpenChannelList(_ref,_ref2){var sdk=_ref.sdk,sdkInitialized=_ref.sdkInitialized,openChannelListQuery=_ref.openChannelListQuery,logger=_ref2.logger,openChannelListDispatcher=_ref2.openChannelListDispatcher;Object(react.useEffect)((function(){var _sdk$openChannel;if(sdkInitialized)if(null!=sdk&&sdk.openChannel)if(null!=sdk&&null!==(_sdk$openChannel=sdk.openChannel)&&void 0!==_sdk$openChannel&&_sdk$openChannel.createOpenChannelListQuery){logger.info("OpenChannelList|useSetupOpenChannelList: Setup OpenChannelList",{sdkInitialized:sdkInitialized});var channelListQuery=hooks_createChannelListQuery({sdk:sdk,logger:logger,openChannelListQuery:openChannelListQuery,openChannelListDispatcher:openChannelListDispatcher,logMessage:"OpenChannelList|useSetupOpenChannelList: Succeeded create channelListQuery"});null!=channelListQuery&&channelListQuery.hasNext?(logger.info("OpenChannelList|useSetupOpenChannelList: Fetch channels"),openChannelListDispatcher({type:actionTypes.INIT_OPEN_CHANNEL_LIST_START,payload:null}),channelListQuery.next().then((function(channelList){logger.info("OpenChannelList|useSetupOpenChannelList: Succeeded fetching channels",channelList),openChannelListDispatcher({type:actionTypes.INIT_OPEN_CHANNEL_LIST_SUCCESS,payload:channelList})})).catch((function(err){logger.error("OpenChannelList|useSetupOpenChannelList: Failed fetching channels",err),openChannelListDispatcher({type:actionTypes.INIT_OPEN_CHANNEL_LIST_FAILURE,payload:null})}))):logger.info("OpenChannelList|useSetupOpenChannelList: There is no more channels")}else logger.warning("OpenChannelList|useSetupOpenChannelList: createOpenChannelListQuery is not included in the openChannel",sdk.openChannel);else logger.warning("OpenChannelList|useSetupOpenChannelList: openChannel is not included in the Chat SDK",sdk);else logger.info("OpenChannelList|useSetupOpenChannelList: Reset OpenChannelList",{sdkInitialized:sdkInitialized}),openChannelListDispatcher({type:actionTypes.RESET_OPEN_CHANNEL_LIST,payload:null})}),[sdkInitialized,openChannelListQuery])};var hooks_useRefreshOpenChannelList=function useRefreshOpenChannelList(_ref,_ref2){var sdk=_ref.sdk,sdkInitialized=_ref.sdkInitialized,openChannelListQuery=_ref.openChannelListQuery,logger=_ref2.logger,openChannelListDispatcher=_ref2.openChannelListDispatcher;return Object(react.useCallback)((function(){var _sdk$openChannel;if(!sdkInitialized)return logger.info("OpenChannelList|useRefreshOpenChannelList: Reset OpenChannelList",{sdkInitialized:sdkInitialized}),void openChannelListDispatcher({type:actionTypes.RESET_OPEN_CHANNEL_LIST,payload:null});if(null!=sdk&&sdk.openChannel)if(null!=sdk&&null!==(_sdk$openChannel=sdk.openChannel)&&void 0!==_sdk$openChannel&&_sdk$openChannel.createOpenChannelListQuery){logger.info("OpenChannelList|useRefreshOpenChannelList: Setup OpenChannelList",{sdkInitialized:sdkInitialized});var channelListQuery=hooks_createChannelListQuery({sdk:sdk,logger:logger,openChannelListQuery:openChannelListQuery,openChannelListDispatcher:openChannelListDispatcher,logMessage:"OpenChannelList|useRefreshOpenChannelList: Succeeded create channelListQuery"});channelListQuery.hasNext?(logger.info("OpenChannelList|useRefreshOpenChannelList: Fetch channels"),openChannelListDispatcher({type:actionTypes.INIT_OPEN_CHANNEL_LIST_START,payload:null}),channelListQuery.next().then((function(channelList){logger.info("OpenChannelList|useRefreshOpenChannelList: Succeeded fetching channels",channelList),openChannelListDispatcher({type:actionTypes.INIT_OPEN_CHANNEL_LIST_SUCCESS,payload:channelList})})).catch((function(err){logger.error("OpenChannelList|useRefreshOpenChannelList: Failed fetching channels",err),openChannelListDispatcher({type:actionTypes.INIT_OPEN_CHANNEL_LIST_FAILURE,payload:null})}))):logger.info("OpenChannelList|useRefreshOpenChannelList: There is no more channels")}else logger.warning("OpenChannelList|useRefreshOpenChannelList: createOpenChannelListQuery is not included in the openChannel",sdk.openChannel);else logger.warning("OpenChannelList|useRefreshOpenChannelList: openChannel is not included in the Chat SDK",sdk)}),[sdkInitialized,openChannelListQuery])};function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function OpenChannelListProvider_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return OpenChannelListProvider_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OpenChannelListProvider_arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function OpenChannelListProvider_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i void"}},onBeforeCreateChannel:{defaultValue:null,description:"",name:"onBeforeCreateChannel",required:!1,type:{name:"(params: OpenChannelCreateParams) => OpenChannelCreateParams"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/CreateOpenChannel/context/CreateOpenChannelProvider.tsx#CreateOpenChannelProvider"]={docgenInfo:CreateOpenChannelProvider_CreateOpenChannelProvider.__docgenInfo,name:"CreateOpenChannelProvider",path:"src/modules/CreateOpenChannel/context/CreateOpenChannelProvider.tsx#CreateOpenChannelProvider"})}catch(__react_docgen_typescript_loader_error){}function CreateOpenChannelUI_slicedToArray(arr,i){return function CreateOpenChannelUI_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function CreateOpenChannelUI_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function CreateOpenChannelUI_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return CreateOpenChannelUI_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CreateOpenChannelUI_arrayLikeToArray(o,minLen)}(arr,i)||function CreateOpenChannelUI_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function CreateOpenChannelUI_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i void"}},renderHeader:{defaultValue:null,description:"",name:"renderHeader",required:!1,type:{name:"() => ReactElement>"}},renderProfileInput:{defaultValue:null,description:"",name:"renderProfileInput",required:!1,type:{name:"() => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/CreateOpenChannel/components/CreateOpenChannelUI/index.tsx#CreateOpenChannelUI"]={docgenInfo:CreateOpenChannelUI_CreateOpenChannelUI.__docgenInfo,name:"CreateOpenChannelUI",path:"src/modules/CreateOpenChannel/components/CreateOpenChannelUI/index.tsx#CreateOpenChannelUI"})}catch(__react_docgen_typescript_loader_error){}function CreateOpenChannel(_ref){var className=_ref.className,onCreateChannel=_ref.onCreateChannel,onBeforeCreateChannel=_ref.onBeforeCreateChannel,closeModal=_ref.closeModal,renderHeader=_ref.renderHeader,renderProfileInput=_ref.renderProfileInput;return react_default.a.createElement(CreateOpenChannelProvider_CreateOpenChannelProvider,{className:className,onCreateChannel:onCreateChannel,onBeforeCreateChannel:onBeforeCreateChannel},react_default.a.createElement(components_CreateOpenChannelUI,{closeModal:closeModal,renderHeader:renderHeader,renderProfileInput:renderProfileInput}))}var modules_CreateOpenChannel=CreateOpenChannel;try{CreateOpenChannel.displayName="CreateOpenChannel",CreateOpenChannel.__docgenInfo={description:"",displayName:"CreateOpenChannel",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},onCreateChannel:{defaultValue:null,description:"",name:"onCreateChannel",required:!1,type:{name:"(channel: OpenChannel) => void"}},onBeforeCreateChannel:{defaultValue:null,description:"",name:"onBeforeCreateChannel",required:!1,type:{name:"(params: OpenChannelCreateParams) => OpenChannelCreateParams"}},closeModal:{defaultValue:null,description:"",name:"closeModal",required:!1,type:{name:"() => void"}},renderHeader:{defaultValue:null,description:"",name:"renderHeader",required:!1,type:{name:"() => ReactElement>"}},renderProfileInput:{defaultValue:null,description:"",name:"renderProfileInput",required:!1,type:{name:"() => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/CreateOpenChannel/index.tsx#CreateOpenChannel"]={docgenInfo:CreateOpenChannel.__docgenInfo,name:"CreateOpenChannel",path:"src/modules/CreateOpenChannel/index.tsx#CreateOpenChannel"})}catch(__react_docgen_typescript_loader_error){}var consts=__webpack_require__("./src/utils/consts.ts");function OpenChannelListUI_slicedToArray(arr,i){return function OpenChannelListUI_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function OpenChannelListUI_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function OpenChannelListUI_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return OpenChannelListUI_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OpenChannelListUI_arrayLikeToArray(o,minLen)}(arr,i)||function OpenChannelListUI_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function OpenChannelListUI_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i ReactElement>"}},renderChannelPreview:{defaultValue:null,description:"",name:"renderChannelPreview",required:!1,type:{name:"(props: RenderOpenChannelPreviewProps) => ReactElement>"}},renderPlaceHolderEmpty:{defaultValue:null,description:"",name:"renderPlaceHolderEmpty",required:!1,type:{name:"() => ReactElement>"}},renderPlaceHolderError:{defaultValue:null,description:"",name:"renderPlaceHolderError",required:!1,type:{name:"() => ReactElement>"}},renderPlaceHolderLoading:{defaultValue:null,description:"",name:"renderPlaceHolderLoading",required:!1,type:{name:"() => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannelList/components/OpenChannelListUI/index.tsx#OpenChannelListUI"]={docgenInfo:OpenChannelListUI_OpenChannelListUI.__docgenInfo,name:"OpenChannelListUI",path:"src/modules/OpenChannelList/components/OpenChannelListUI/index.tsx#OpenChannelListUI"})}catch(__react_docgen_typescript_loader_error){}function OpenChannelList(_ref){var className=_ref.className,queries=_ref.queries,onChannelSelected=_ref.onChannelSelected,renderHeader=_ref.renderHeader,renderChannelPreview=_ref.renderChannelPreview,renderPlaceHolderEmpty=_ref.renderPlaceHolderEmpty,renderPlaceHolderError=_ref.renderPlaceHolderError,renderPlaceHolderLoading=_ref.renderPlaceHolderLoading;return react_default.a.createElement(OpenChannelListProvider_OpenChannelListProvider,{className:className,queries:queries,onChannelSelected:onChannelSelected},react_default.a.createElement(components_OpenChannelListUI,{renderHeader:renderHeader,renderChannelPreview:renderChannelPreview,renderPlaceHolderEmpty:renderPlaceHolderEmpty,renderPlaceHolderError:renderPlaceHolderError,renderPlaceHolderLoading:renderPlaceHolderLoading}))}__webpack_exports__.a=OpenChannelList;try{OpenChannelList.displayName="OpenChannelList",OpenChannelList.__docgenInfo={description:"",displayName:"OpenChannelList",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},queries:{defaultValue:null,description:"",name:"queries",required:!1,type:{name:"{ openChannelListQuery?: UserFilledOpenChannelListQuery; }"}},onChannelSelected:{defaultValue:null,description:"",name:"onChannelSelected",required:!1,type:{name:"OnOpenChannelSelected"}},renderHeader:{defaultValue:null,description:"",name:"renderHeader",required:!1,type:{name:"() => ReactElement>"}},renderChannelPreview:{defaultValue:null,description:"",name:"renderChannelPreview",required:!1,type:{name:"(props: RenderOpenChannelPreviewProps) => ReactElement>"}},renderPlaceHolderEmpty:{defaultValue:null,description:"",name:"renderPlaceHolderEmpty",required:!1,type:{name:"() => ReactElement>"}},renderPlaceHolderError:{defaultValue:null,description:"",name:"renderPlaceHolderError",required:!1,type:{name:"() => ReactElement>"}},renderPlaceHolderLoading:{defaultValue:null,description:"",name:"renderPlaceHolderLoading",required:!1,type:{name:"() => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannelList/index.tsx#OpenChannelList"]={docgenInfo:OpenChannelList.__docgenInfo,name:"OpenChannelList",path:"src/modules/OpenChannelList/index.tsx#OpenChannelList"})}catch(__react_docgen_typescript_loader_error){}},"./src/modules/OpenChannelList/stories/index.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"OpenChannelListDefault",(function(){return OpenChannelListDefault}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js");var react__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/react/index.js"),_OpenChannel__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./src/modules/OpenChannel/index.tsx"),_index__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./src/modules/OpenChannelList/index.tsx"),_lib_Sendbird__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./src/lib/Sendbird.tsx"),_OpenChannelApp_stories_utils__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./src/modules/OpenChannelApp/stories/utils.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/react/jsx-runtime.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i fitPageSize()"}},OpenChannelListDefault.parameters)},"./src/modules/OpenChannelSettings/components/OpenChannelProfile/channel-profile.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/OpenChannelSettings/components/OpenChannelProfile/channel-profile.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/OpenChannelSettings/components/OpenChannelSettingsUI/open-channel-ui.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/OpenChannelSettings/components/OpenChannelSettingsUI/open-channel-ui.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/OpenChannelSettings/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),useSendbirdStateContext=(__webpack_require__("./src/modules/OpenChannelSettings/components/OpenChannelSettingsUI/open-channel-ui.scss"),__webpack_require__("./src/hooks/useSendbirdStateContext.tsx")),openChannel=(__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/@sendbird/chat/openChannel.js")),UserProfileContext=__webpack_require__("./src/lib/UserProfileContext.tsx"),uuid=__webpack_require__("./src/utils/uuid.ts");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i void"}},onBeforeUpdateChannel:{defaultValue:null,description:"",name:"onBeforeUpdateChannel",required:!1,type:{name:"(currentTitle: string, currentImg: File, data: string) => OpenChannelUpdateParams"}},onChannelModified:{defaultValue:null,description:"",name:"onChannelModified",required:!1,type:{name:"(channel: OpenChannel) => void"}},onDeleteChannel:{defaultValue:null,description:"",name:"onDeleteChannel",required:!1,type:{name:"(channel: OpenChannel) => void"}},disableUserProfile:{defaultValue:null,description:"",name:"disableUserProfile",required:!1,type:{name:"boolean"}},renderUserProfile:{defaultValue:null,description:"",name:"renderUserProfile",required:!1,type:{name:"(props: RenderUserProfileProps) => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannelSettings/context/OpenChannelSettingsProvider.tsx#OpenChannelSettingsProvider"]={docgenInfo:OpenChannelSettingsProvider_OpenChannelSettingsProvider.__docgenInfo,name:"OpenChannelSettingsProvider",path:"src/modules/OpenChannelSettings/context/OpenChannelSettingsProvider.tsx#OpenChannelSettingsProvider"})}catch(__react_docgen_typescript_loader_error){}var LocalizationContext=__webpack_require__("./src/lib/LocalizationContext.tsx"),Label=__webpack_require__("./src/ui/Label/index.tsx"),Icon=__webpack_require__("./src/ui/Icon/index.tsx"),PlaceHolder=__webpack_require__("./src/ui/PlaceHolder/index.tsx");function InvalidChannel(_ref){var onCloseClick=_ref.onCloseClick,stringSet=Object(react.useContext)(LocalizationContext.a).stringSet;return react_default.a.createElement("div",{className:"sendbird-openchannel-settings"},react_default.a.createElement("div",{className:"sendbird-openchannel-settings__header"},react_default.a.createElement(Label.d,{type:Label.c.H_2,color:Label.a.ONBACKGROUND_1},stringSet.CHANNEL_SETTING__HEADER__TITLE),react_default.a.createElement(Icon.c,{type:Icon.b.CLOSE,className:"sendbird-openchannel-settings__close-icon",height:"24px",width:"24px",onClick:function onClick(){onCloseClick()}})),react_default.a.createElement("div",{className:"sendbird-openchannel-settings__placeholder"},react_default.a.createElement(PlaceHolder.b,{type:PlaceHolder.a.WRONG})))}try{InvalidChannel.displayName="InvalidChannel",InvalidChannel.__docgenInfo={description:"",displayName:"InvalidChannel",props:{onCloseClick:{defaultValue:null,description:"",name:"onCloseClick",required:!1,type:{name:"() => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannelSettings/components/InvalidChannel.tsx#InvalidChannel"]={docgenInfo:InvalidChannel.__docgenInfo,name:"InvalidChannel",path:"src/modules/OpenChannelSettings/components/InvalidChannel.tsx#InvalidChannel"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./src/modules/OpenChannelSettings/components/OpenChannelProfile/channel-profile.scss");var TextButton=__webpack_require__("./src/ui/TextButton/index.tsx"),OpenChannelAvatar=__webpack_require__("./src/ui/ChannelAvatar/OpenChannelAvatar.tsx"),topics=(__webpack_require__("./node_modules/core-js/modules/web.url.js"),__webpack_require__("./src/lib/pubSub/topics.ts")),Modal=__webpack_require__("./src/ui/Modal/index.tsx"),Input=__webpack_require__("./src/ui/Input/index.tsx"),Avatar=__webpack_require__("./src/ui/Avatar/index.tsx"),Button=__webpack_require__("./src/ui/Button/index.tsx");function EditDetailsModal_slicedToArray(arr,i){return function EditDetailsModal_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function EditDetailsModal_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function EditDetailsModal_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return EditDetailsModal_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EditDetailsModal_arrayLikeToArray(o,minLen)}(arr,i)||function EditDetailsModal_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function EditDetailsModal_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannelSettings/components/EditDetailsModal.tsx#EditDetailsModal"]={docgenInfo:EditDetailsModal.__docgenInfo,name:"EditDetailsModal",path:"src/modules/OpenChannelSettings/components/EditDetailsModal.tsx#EditDetailsModal"})}catch(__react_docgen_typescript_loader_error){}function OpenChannelProfile_slicedToArray(arr,i){return function OpenChannelProfile_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function OpenChannelProfile_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function OpenChannelProfile_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return OpenChannelProfile_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OpenChannelProfile_arrayLikeToArray(o,minLen)}(arr,i)||function OpenChannelProfile_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function OpenChannelProfile_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannelSettings/components/ParticipantUI/ParticipantsModal.tsx#ParticipantsModal"]={docgenInfo:ParticipantsModal.__docgenInfo,name:"ParticipantsModal",path:"src/modules/OpenChannelSettings/components/ParticipantUI/ParticipantsModal.tsx#ParticipantsModal"})}catch(__react_docgen_typescript_loader_error){}var UserProfile=__webpack_require__("./src/ui/UserProfile/index.tsx"),MutedAvatarOverlay=__webpack_require__("./src/ui/Avatar/MutedAvatarOverlay.tsx");var ParticipantItem_UserListItem=function UserListItem(_ref){var user=_ref.user,currentUser=_ref.currentUser,isOperator=_ref.isOperator,action=_ref.action,avatarRef=Object(react.useRef)(null),actionRef=Object(react.useRef)(null),_useContext=Object(react.useContext)(UserProfileContext.a),disableUserProfile=_useContext.disableUserProfile,renderUserProfile=_useContext.renderUserProfile,stringSet=Object(react.useContext)(LocalizationContext.a).stringSet;return react_default.a.createElement("div",{className:"sendbird-participants-accordion__member"},react_default.a.createElement("div",{className:"sendbird-participants-accordion__member-avatar"},react_default.a.createElement(ContextMenu.h,{menuTrigger:function menuTrigger(toggleDropdown){return react_default.a.createElement(react_default.a.Fragment,null,react_default.a.createElement(Avatar.a,{className:"sendbird-participants-accordion__member-avatar__avatar",onClick:function onClick(){disableUserProfile||toggleDropdown()},ref:avatarRef,src:user.profileUrl,width:24,height:24}),null!=user&&user.isMuted?react_default.a.createElement(MutedAvatarOverlay.a,null):"")},menuItems:function menuItems(closeDropdown){return renderUserProfile?renderUserProfile({user:user,currentUserId:currentUser,close:closeDropdown,avatarRef:avatarRef}):react_default.a.createElement(ContextMenu.d,{openLeft:!0,parentRef:avatarRef,parentContainRef:avatarRef,closeDropdown:closeDropdown,style:{paddingTop:"0px",paddingBottom:"0px"}},react_default.a.createElement(UserProfile.a,{disableMessaging:!0,user:user,currentUserId:currentUser,onSuccess:closeDropdown}))}})),react_default.a.createElement(Label.d,{className:"sendbird-participants-accordion__member__title",type:Label.c.SUBTITLE_2,color:Label.a.ONBACKGROUND_1},user.nickname||stringSet.NO_NAME,currentUser===user.userId&&stringSet.OPEN_CHANNEL_SETTINGS__MEMBERS__YOU),!user.nickname&&react_default.a.createElement(Label.d,{className:"sendbird-participants-accordion__member__title user-id",type:Label.c.CAPTION_3,color:Label.a.ONBACKGROUND_2},user.userId),isOperator&&react_default.a.createElement(Label.d,{className:"sendbird-participants-accordion__member__title\n ".concat((null==user?void 0:user.userId)!==currentUser?"operator":"","\n ").concat((null==user?void 0:user.userId)===currentUser?"self-operator":"","\n "),type:Label.c.SUBTITLE_2,color:Label.a.ONBACKGROUND_2},stringSet.OPEN_CHANNEL_SETTINGS__MEMBERS__OPERATOR),action&&react_default.a.createElement("div",{className:"sendbird-participants-accordion__member__action",ref:actionRef},action({actionRef:actionRef})))};try{ParticipantItem.displayName="ParticipantItem",ParticipantItem.__docgenInfo={description:"",displayName:"ParticipantItem",props:{maxMembers:{defaultValue:null,description:"",name:"maxMembers",required:!1,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannelSettings/components/ParticipantUI/ParticipantItem.tsx#ParticipantItem"]={docgenInfo:ParticipantItem.__docgenInfo,name:"ParticipantItem",path:"src/modules/OpenChannelSettings/components/ParticipantUI/ParticipantItem.tsx#ParticipantItem"})}catch(__react_docgen_typescript_loader_error){}try{ParticipantItem_UserListItem.displayName="UserListItem",ParticipantItem_UserListItem.__docgenInfo={description:"",displayName:"UserListItem",props:{user:{defaultValue:null,description:"",name:"user",required:!0,type:{name:"Participant"}},currentUser:{defaultValue:null,description:"",name:"currentUser",required:!1,type:{name:"string"}},isOperator:{defaultValue:null,description:"",name:"isOperator",required:!1,type:{name:"boolean"}},action:{defaultValue:null,description:"",name:"action",required:!1,type:{name:"(props: ActionProps) => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannelSettings/components/ParticipantUI/ParticipantItem.tsx#UserListItem"]={docgenInfo:ParticipantItem_UserListItem.__docgenInfo,name:"UserListItem",path:"src/modules/OpenChannelSettings/components/ParticipantUI/ParticipantItem.tsx#UserListItem"})}catch(__react_docgen_typescript_loader_error){}function ParticipantUI_toConsumableArray(arr){return function ParticipantUI_arrayWithoutHoles(arr){if(Array.isArray(arr))return ParticipantUI_arrayLikeToArray(arr)}(arr)||function ParticipantUI_iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||ParticipantUI_unsupportedIterableToArray(arr)||function ParticipantUI_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ParticipantUI_slicedToArray(arr,i){return function ParticipantUI_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function ParticipantUI_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||ParticipantUI_unsupportedIterableToArray(arr,i)||function ParticipantUI_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ParticipantUI_unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return ParticipantUI_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ParticipantUI_arrayLikeToArray(o,minLen):void 0}}function ParticipantUI_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannelSettings/components/OperatorUI/OperatorsModal.tsx#OperatorsModal"]={docgenInfo:OperatorsModal.__docgenInfo,name:"OperatorsModal",path:"src/modules/OpenChannelSettings/components/OperatorUI/OperatorsModal.tsx#OperatorsModal"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.array.find.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;rarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0?Label.a.PRIMARY:Label.a.ONBACKGROUND_3,type:Label.c.CAPTION_1},"".concat(selectedCount," ").concat(stringSet.MODAL__INVITE_MEMBER__SELECTED)),react_default.a.createElement("div",{className:"sendbird-more-users__popup-scroll",onScroll:function onScroll(e){var hasNext=participantQuery.hasNext,target=e.target,fetchMore=target.clientHeight+target.scrollTop===target.scrollHeight;hasNext&&fetchMore&&participantQuery.next().then((function(o){setParticipants([].concat(AddOperatorsModal_toConsumableArray(participants),AddOperatorsModal_toConsumableArray(o)))}))}},participants.map((function(participant){var isOperator=!(null==channel||!channel.operators.find((function(operator){return(null==operator?void 0:operator.userId)===(null==participant?void 0:participant.userId)})));return react_default.a.createElement(ui_UserListItem.a,{checkBox:!0,checked:selectedUsers[participant.userId]||isOperator,disabled:isOperator,isOperator:isOperator,onChange:function onChange(event){var modifiedSelectedUsers=_objectSpread(_objectSpread({},selectedUsers),{},_defineProperty({},event.target.id,event.target.checked));event.target.checked||delete modifiedSelectedUsers[event.target.id],setSelectedUsers(modifiedSelectedUsers)},user:participant,key:participant.userId})})))))}try{AddOperatorsModal.displayName="AddOperatorsModal",AddOperatorsModal.__docgenInfo={description:"",displayName:"AddOperatorsModal",props:{onCancel:{defaultValue:null,description:"",name:"onCancel",required:!0,type:{name:"() => void"}},onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!0,type:{name:"(participants: string[]) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannelSettings/components/OperatorUI/AddOperatorsModal.tsx#AddOperatorsModal"]={docgenInfo:AddOperatorsModal.__docgenInfo,name:"AddOperatorsModal",path:"src/modules/OpenChannelSettings/components/OperatorUI/AddOperatorsModal.tsx#AddOperatorsModal"})}catch(__react_docgen_typescript_loader_error){}function OperatorList_slicedToArray(arr,i){return function OperatorList_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function OperatorList_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function OperatorList_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return OperatorList_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OperatorList_arrayLikeToArray(o,minLen)}(arr,i)||function OperatorList_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function OperatorList_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i10&&react_default.a.createElement(Button.c,{type:Button.b.SECONDARY,size:Button.a.SMALL,onClick:function onClick(){setShowMore(!0)}},stringSet.OPEN_CHANNEL_SETTINGS__OPERATORS__TITLE_ALL)),showMore&&react_default.a.createElement(react_default.a.Fragment,null,react_default.a.createElement(OperatorListModal,{onCancel:function onCancel(){setShowMore(!1)}})),showAdd&&react_default.a.createElement(react_default.a.Fragment,null,react_default.a.createElement(AddOperatorsModal,{onCancel:function onCancel(){return setShowAdd(!1)},onSubmit:function onSubmit(){setShowAdd(!1)}})))};function MutedParticipantsModal_toConsumableArray(arr){return function MutedParticipantsModal_arrayWithoutHoles(arr){if(Array.isArray(arr))return MutedParticipantsModal_arrayLikeToArray(arr)}(arr)||function MutedParticipantsModal_iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||MutedParticipantsModal_unsupportedIterableToArray(arr)||function MutedParticipantsModal_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function MutedParticipantsModal_slicedToArray(arr,i){return function MutedParticipantsModal_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function MutedParticipantsModal_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||MutedParticipantsModal_unsupportedIterableToArray(arr,i)||function MutedParticipantsModal_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function MutedParticipantsModal_unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return MutedParticipantsModal_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?MutedParticipantsModal_arrayLikeToArray(o,minLen):void 0}}function MutedParticipantsModal_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannelSettings/components/OperatorUI/MutedParticipantsModal.tsx#MutedParticipantsModal"]={docgenInfo:MutedParticipantsModal.__docgenInfo,name:"MutedParticipantsModal",path:"src/modules/OpenChannelSettings/components/OperatorUI/MutedParticipantsModal.tsx#MutedParticipantsModal"})}catch(__react_docgen_typescript_loader_error){}function MutedParticipantList_slicedToArray(arr,i){return function MutedParticipantList_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function MutedParticipantList_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function MutedParticipantList_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return MutedParticipantList_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return MutedParticipantList_arrayLikeToArray(o,minLen)}(arr,i)||function MutedParticipantList_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function MutedParticipantList_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannelSettings/components/OperatorUI/BannedUsersModal.tsx#BannedUsersModal"]={docgenInfo:BannedUsersModal.__docgenInfo,name:"BannedUsersModal",path:"src/modules/OpenChannelSettings/components/OperatorUI/BannedUsersModal.tsx#BannedUsersModal"})}catch(__react_docgen_typescript_loader_error){}function BannedUserList_slicedToArray(arr,i){return function BannedUserList_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function BannedUserList_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function BannedUserList_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return BannedUserList_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return BannedUserList_arrayLikeToArray(o,minLen)}(arr,i)||function BannedUserList_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function BannedUserList_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannelSettings/components/OperatorUI/index.tsx#OperatorUI"]={docgenInfo:OperatorUI_OperatorUI.__docgenInfo,name:"OperatorUI",path:"src/modules/OpenChannelSettings/components/OperatorUI/index.tsx#OperatorUI"})}catch(__react_docgen_typescript_loader_error){}var components_OpenChannelSettingsUI=function OpenChannelUI(_ref){var _globalStore$config,_globalStore$stores,renderOperatorUI=_ref.renderOperatorUI,renderParticipantList=_ref.renderParticipantList,_useOpenChannelSettin=OpenChannelSettingsProvider_useOpenChannelSettingsContext(),channel=_useOpenChannelSettin.channel,_onCloseClick=_useOpenChannelSettin.onCloseClick,isChannelInitialized=_useOpenChannelSettin.isChannelInitialized,globalStore=Object(useSendbirdStateContext.a)(),logger=null==globalStore||null===(_globalStore$config=globalStore.config)||void 0===_globalStore$config?void 0:_globalStore$config.logger,user=null==globalStore||null===(_globalStore$stores=globalStore.stores)||void 0===_globalStore$stores||null===(_globalStore$stores=_globalStore$stores.userStore)||void 0===_globalStore$stores?void 0:_globalStore$stores.user,stringSet=Object(react.useContext)(LocalizationContext.a).stringSet;return isChannelInitialized&&!channel?react_default.a.createElement(InvalidChannel,{onCloseClick:function onCloseClick(){logger.info("OpenChannelSettings: Click close"),_onCloseClick&&_onCloseClick()}}):react_default.a.createElement("div",{className:"sendbird-openchannel-settings"},(null==channel?void 0:channel.isOperator(user))&&((null==renderOperatorUI?void 0:renderOperatorUI())||react_default.a.createElement(components_OperatorUI,null)),!(null!=channel&&channel.isOperator(user))&&react_default.a.createElement("div",{className:"sendbird-openchannel-settings__participant"},react_default.a.createElement("div",{className:"sendbird-openchannel-settings__header"},react_default.a.createElement(Label.d,{type:Label.c.H_2,color:Label.a.ONBACKGROUND_1},stringSet.OPEN_CHANNEL_SETTINGS__PARTICIPANTS_TITLE),react_default.a.createElement(Icon.c,{type:Icon.b.CLOSE,className:"sendbird-openchannel-settings__close-icon",height:"24px",width:"24px",onClick:function onClick(){_onCloseClick()}})),(null==renderParticipantList?void 0:renderParticipantList())||react_default.a.createElement(ParticipantList,null)))};try{OpenChannelSettingsUI.displayName="OpenChannelSettingsUI",OpenChannelSettingsUI.__docgenInfo={description:"",displayName:"OpenChannelSettingsUI",props:{renderOperatorUI:{defaultValue:null,description:"",name:"renderOperatorUI",required:!1,type:{name:"() => ReactElement>"}},renderParticipantList:{defaultValue:null,description:"",name:"renderParticipantList",required:!1,type:{name:"() => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannelSettings/components/OpenChannelSettingsUI/index.tsx#OpenChannelSettingsUI"]={docgenInfo:OpenChannelSettingsUI.__docgenInfo,name:"OpenChannelSettingsUI",path:"src/modules/OpenChannelSettings/components/OpenChannelSettingsUI/index.tsx#OpenChannelSettingsUI"})}catch(__react_docgen_typescript_loader_error){}__webpack_exports__.a=function OpenChannelSetting(props){return react_default.a.createElement(OpenChannelSettingsProvider_OpenChannelSettingsProvider,{channelUrl:null==props?void 0:props.channelUrl,onCloseClick:null==props?void 0:props.onCloseClick,onBeforeUpdateChannel:null==props?void 0:props.onBeforeUpdateChannel,onChannelModified:null==props?void 0:props.onChannelModified,onDeleteChannel:null==props?void 0:props.onDeleteChannel,disableUserProfile:null==props?void 0:props.disableUserProfile,renderUserProfile:null==props?void 0:props.renderUserProfile},react_default.a.createElement(components_OpenChannelSettingsUI,{renderOperatorUI:null==props?void 0:props.renderOperatorUI,renderParticipantList:null==props?void 0:props.renderParticipantList}))};try{OpenChannelSettings.displayName="OpenChannelSettings",OpenChannelSettings.__docgenInfo={description:"",displayName:"OpenChannelSettings",props:{channelUrl:{defaultValue:null,description:"",name:"channelUrl",required:!0,type:{name:"string"}},onCloseClick:{defaultValue:null,description:"",name:"onCloseClick",required:!1,type:{name:"() => void"}},onBeforeUpdateChannel:{defaultValue:null,description:"",name:"onBeforeUpdateChannel",required:!1,type:{name:"(currentTitle: string, currentImg: File, data: string) => OpenChannelUpdateParams"}},onChannelModified:{defaultValue:null,description:"",name:"onChannelModified",required:!1,type:{name:"(channel: OpenChannel) => void"}},onDeleteChannel:{defaultValue:null,description:"",name:"onDeleteChannel",required:!1,type:{name:"(channel: OpenChannel) => void"}},disableUserProfile:{defaultValue:null,description:"",name:"disableUserProfile",required:!1,type:{name:"boolean"}},renderUserProfile:{defaultValue:null,description:"",name:"renderUserProfile",required:!1,type:{name:"(props: RenderUserProfileProps) => ReactElement>"}},renderOperatorUI:{defaultValue:null,description:"",name:"renderOperatorUI",required:!1,type:{name:"() => ReactElement>"}},renderParticipantList:{defaultValue:null,description:"",name:"renderParticipantList",required:!1,type:{name:"() => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/OpenChannelSettings/index.tsx#OpenChannelSettings"]={docgenInfo:OpenChannelSettings.__docgenInfo,name:"OpenChannelSettings",path:"src/modules/OpenChannelSettings/index.tsx#OpenChannelSettings"})}catch(__react_docgen_typescript_loader_error){}},"./src/modules/Thread/components/ParentMessageInfo/ParentMessageInfoItem.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/Thread/components/ParentMessageInfo/ParentMessageInfoItem.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/Thread/components/ParentMessageInfo/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/Thread/components/ParentMessageInfo/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/Thread/components/ThreadHeader/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/Thread/components/ThreadHeader/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/Thread/components/ThreadList/ThreadListItemContent.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/Thread/components/ThreadList/ThreadListItemContent.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/Thread/components/ThreadList/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/Thread/components/ThreadList/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/Thread/components/ThreadMessageInput/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/Thread/components/ThreadMessageInput/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/Thread/components/ThreadUI/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/modules/Thread/components/ThreadUI/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/modules/Thread/context/utils.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return getNicknamesMapFromMembers})),__webpack_require__.d(__webpack_exports__,"c",(function(){return getParentMessageFrom})),__webpack_require__.d(__webpack_exports__,"d",(function(){return isAboutSame})),__webpack_require__.d(__webpack_exports__,"a",(function(){return compareIds})),__webpack_require__.d(__webpack_exports__,"e",(function(){return scrollIntoLast}));__webpack_require__("./node_modules/core-js/modules/es.map.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/date-fns/esm/format/index.js"),__webpack_require__("./src/utils/exports/getOutgoingMessageState.ts");var getNicknamesMapFromMembers=function getNicknamesMapFromMembers(){for(var members=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],nicknamesMap=new Map,memberIndex=0;memberIndex0&&null===(null==message?void 0:message.threadInfo)},isAboutSame=function isAboutSame(a,b,px){return Math.abs(a-b)<=px},isEmpty=function isEmpty(val){return null==val};function compareIds(a,b){return!isEmpty(a)&&!isEmpty(b)&&a.toString()===b.toString()}var scrollIntoLast=function scrollIntoLast(){var currentTry=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!(currentTry>10))try{var scrollDOM=document.querySelector(".sendbird-thread-ui--scroll");scrollDOM.scrollTop=scrollDOM.scrollHeight}catch(error){setTimeout((function(){scrollIntoLast(currentTry+1)}),500*currentTry)}}},"./src/modules/internalInterfaces.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return PublishingModuleType})),__webpack_require__.d(__webpack_exports__,"b",(function(){return shouldPubSubPublishToChannel})),__webpack_require__.d(__webpack_exports__,"c",(function(){return shouldPubSubPublishToThread}));__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var PublishingModuleType=function(PublishingModuleType){return PublishingModuleType.CHANNEL="CHANNEL",PublishingModuleType.THREAD="THREAD",PublishingModuleType}({}),isTargetIncludedInModules=function isTargetIncludedInModules(target,modules){return!modules||0===modules.length||modules.includes(target)};function shouldPubSubPublishToChannel(modules){return isTargetIncludedInModules(PublishingModuleType.CHANNEL,modules)}function shouldPubSubPublishToThread(modules){return isTargetIncludedInModules(PublishingModuleType.THREAD,modules)}},"./src/svgs/icon-create.svg":function(module,__webpack_exports__,__webpack_require__){"use strict";var _path,react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i ReactElement>"}},renderContent:{defaultValue:null,description:"",name:"renderContent",required:!0,type:{name:"() => ReactElement>"}},renderFooter:{defaultValue:null,description:"",name:"renderFooter",required:!1,type:{name:"() => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Accordion/index.tsx#Accordion"]={docgenInfo:Accordion_Accordion.__docgenInfo,name:"Accordion",path:"src/ui/Accordion/index.tsx#Accordion"})}catch(__react_docgen_typescript_loader_error){}try{Accordion_AccordionGroup.displayName="AccordionGroup",Accordion_AccordionGroup.__docgenInfo={description:"",displayName:"AccordionGroup",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Accordion/index.tsx#AccordionGroup"]={docgenInfo:Accordion_AccordionGroup.__docgenInfo,name:"AccordionGroup",path:"src/ui/Accordion/index.tsx#AccordionGroup"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/Accordion/stories/Accordion.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return WithControl})),__webpack_require__.d(__webpack_exports__,"multipleAccordions",(function(){return multipleAccordions})),__webpack_require__.d(__webpack_exports__,"AccordionComponent",(function(){return AccordionComponent}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _index__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/Accordion/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/Accordion",component:_index__WEBPACK_IMPORTED_MODULE_2__.b,parameters:{docs:{description:{component:'\n `import Accordion from "@sendbird/uikit-react/ui/Accordion";`\n `import AccordionGroup from "@sendbird/uikit-react/ui/AccordionGroup";`\n \n A simple Accordion component, Accordion must be placed inside AccordionGroup\n'}}}};var WithControl=function WithControl(args){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.b,Object.assign({},args,{renderTitle:function renderTitle(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("div",{children:"Simple Accordion"})},renderContent:function renderContent(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("div",{children:"Content"})},renderFooter:function renderFooter(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("div",{children:"Footer"})}}))})};WithControl.displayName="WithControl";var multipleAccordions=function multipleAccordions(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{children:[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.b,{id:"a1",renderTitle:function renderTitle(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("div",{children:"Header"})},renderContent:function renderContent(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("div",{children:"Content"})},renderFooter:function renderFooter(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("div",{children:"Footer"})}}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.b,{id:"a2",renderTitle:function renderTitle(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("div",{children:"Header"})},renderContent:function renderContent(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("div",{children:"Content"})},renderFooter:function renderFooter(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("div",{children:"Footer"})}})]})};multipleAccordions.displayName="multipleAccordions";var AccordionComponent=function AccordionComponent(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.b,{id:"a1",renderTitle:function renderTitle(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("div",{children:"Header"})},renderContent:function renderContent(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("div",{children:"Content"})},renderFooter:function renderFooter(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("div",{children:"Footer"})}})})};AccordionComponent.displayName="AccordionComponent",WithControl.parameters=Object.assign({storySource:{source:"(args) => (\n \n (
Simple Accordion
)}\n renderContent={() => (
Content
)}\n renderFooter={() => (
Footer
)}\n />\n
\n)"}},WithControl.parameters),multipleAccordions.parameters=Object.assign({storySource:{source:'() => (\n \n (
Header
)}\n renderContent={() => (
Content
)}\n renderFooter={() => (
Footer
)}\n />\n (
Header
)}\n renderContent={() => (
Content
)}\n renderFooter={() => (
Footer
)}\n />\n
\n)'}},multipleAccordions.parameters),AccordionComponent.parameters=Object.assign({storySource:{source:'() => (\n \n (
Header
)}\n renderContent={() => (
Content
)}\n renderFooter={() => (
Footer
)}\n />\n
\n)'}},AccordionComponent.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Accordion/stories/Accordion.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/Accordion/stories/Accordion.stories.js"}),multipleAccordions.__docgenInfo={description:"",methods:[],displayName:"multipleAccordions"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Accordion/stories/Accordion.stories.js"]={name:"multipleAccordions",docgenInfo:multipleAccordions.__docgenInfo,path:"src/ui/Accordion/stories/Accordion.stories.js"}),AccordionComponent.__docgenInfo={description:"",methods:[],displayName:"AccordionComponent"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Accordion/stories/Accordion.stories.js"]={name:"AccordionComponent",docgenInfo:AccordionComponent.__docgenInfo,path:"src/ui/Accordion/stories/Accordion.stories.js"})},"./src/ui/Accordion/stories/AccordionGroup.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControls",(function(){return WithControls}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js");var _index__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/ui/Accordion/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/AccordionGroup",component:_index__WEBPACK_IMPORTED_MODULE_1__.a,parameters:{docs:{description:{component:'\n `import AccordionGroup from "@sendbird/uikit-react/ui/AccordionGroup";`\n \n Parent of Accordion component, Accordion must be placed inside AccordionGroup\n'}}}};var WithControls=function WithControls(args){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_index__WEBPACK_IMPORTED_MODULE_1__.a,Object.assign({},args))};WithControls.displayName="WithControls",WithControls.parameters=Object.assign({storySource:{source:"(args) => "}},WithControls.parameters),WithControls.__docgenInfo={description:"",methods:[],displayName:"WithControls"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Accordion/stories/AccordionGroup.stories.js"]={name:"WithControls",docgenInfo:WithControls.__docgenInfo,path:"src/ui/Accordion/stories/AccordionGroup.stories.js"})},"./src/ui/AdminMessage/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/AdminMessage/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/AdminMessage/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return AdminMessage}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var react__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__),_Label__WEBPACK_IMPORTED_MODULE_14__=(__webpack_require__("./src/ui/AdminMessage/index.scss"),__webpack_require__("./src/ui/Label/index.tsx"));function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i ()"}},AdminMessage_stories_WithControl.parameters),AdminMessage_stories_adminMessage.parameters=Object.assign({storySource:{source:"() => "}},AdminMessage_stories_adminMessage.parameters),AdminMessage_stories_WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/AdminMessage/stories/AdminMessage.stories.js"]={name:"WithControl",docgenInfo:AdminMessage_stories_WithControl.__docgenInfo,path:"src/ui/AdminMessage/stories/AdminMessage.stories.js"}),AdminMessage_stories_adminMessage.__docgenInfo={description:"",methods:[],displayName:"adminMessage"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/AdminMessage/stories/AdminMessage.stories.js"]={name:"adminMessage",docgenInfo:AdminMessage_stories_adminMessage.__docgenInfo,path:"src/ui/AdminMessage/stories/AdminMessage.stories.js"})},"./src/ui/Avatar/AvatarDefault.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.number.is-nan.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js");var react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__),_utils_pxToNumber__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/utils/pxToNumber.ts"),_Icon__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/ui/Icon/index.tsx"),AvatarDefault=function AvatarDefault(props){var width=props.width,height=props.height,text=props.text,iconWidth=Object(_utils_pxToNumber__WEBPACK_IMPORTED_MODULE_3__.a)(width),iconHeight=Object(_utils_pxToNumber__WEBPACK_IMPORTED_MODULE_3__.a)(height);return"number"!=typeof iconWidth||Number.isNaN(iconWidth)||(iconWidth*=.575),"number"!=typeof iconHeight||Number.isNaN(iconHeight)||(iconHeight*=.575),react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div",{className:"sendbird-avatar-img--default ".concat(text?"text":""),style:{width:width,height:height}},text?react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div",{className:"sendbird-avatar-text"},text):react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_4__.c,{type:_Icon__WEBPACK_IMPORTED_MODULE_4__.b.USER,fillColor:_Icon__WEBPACK_IMPORTED_MODULE_4__.a.CONTENT,width:iconWidth,height:iconHeight}))};__webpack_exports__.a=AvatarDefault;try{AvatarDefault.displayName="AvatarDefault",AvatarDefault.__docgenInfo={description:"",displayName:"AvatarDefault",props:{width:{defaultValue:null,description:"",name:"width",required:!0,type:{name:"string | number"}},height:{defaultValue:null,description:"",name:"height",required:!0,type:{name:"string | number"}},text:{defaultValue:null,description:"",name:"text",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Avatar/AvatarDefault.tsx#AvatarDefault"]={docgenInfo:AvatarDefault.__docgenInfo,name:"AvatarDefault",path:"src/ui/Avatar/AvatarDefault.tsx#AvatarDefault"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/Avatar/MutedAvatarOverlay.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return MutedAvatarOverlay}));__webpack_require__("./src/ui/Avatar/muted-avatar-overlay.scss");var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_Icon__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/Icon/index.tsx");function MutedAvatarOverlay(props){var _props$height=props.height,height=void 0===_props$height?24:_props$height,_props$width=props.width,width=void 0===_props$width?24:_props$width;return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",{className:"sendbird-muted-avatar",style:{height:"".concat(height,"px"),width:"".concat(width,"px")}},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",{className:"sendbird-muted-avatar__icon"},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",{className:"sendbird-muted-avatar__bg",style:{height:"".concat(height,"px"),width:"".concat(width,"px")}}),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_2__.c,{type:_Icon__WEBPACK_IMPORTED_MODULE_2__.b.MUTE,fillColor:_Icon__WEBPACK_IMPORTED_MODULE_2__.a.WHITE,width:"".concat(height-8,"px"),height:"".concat(width-8,"px")})))}try{MutedAvatarOverlay.displayName="MutedAvatarOverlay",MutedAvatarOverlay.__docgenInfo={description:"",displayName:"MutedAvatarOverlay",props:{height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"number"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Avatar/MutedAvatarOverlay.tsx#MutedAvatarOverlay"]={docgenInfo:MutedAvatarOverlay.__docgenInfo,name:"MutedAvatarOverlay",path:"src/ui/Avatar/MutedAvatarOverlay.tsx#MutedAvatarOverlay"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/Avatar/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/Avatar/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/Avatar/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js");var react__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_13__),_ImageRenderer__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./src/ui/ImageRenderer/index.tsx"),_AvatarDefault__WEBPACK_IMPORTED_MODULE_16__=(__webpack_require__("./src/ui/Avatar/index.scss"),__webpack_require__("./src/ui/Avatar/AvatarDefault.tsx"));function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Avatar/index.tsx#AvatarInner"]={docgenInfo:AvatarInner.__docgenInfo,name:"AvatarInner",path:"src/ui/Avatar/index.tsx#AvatarInner"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/Avatar/muted-avatar-overlay.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/Avatar/muted-avatar-overlay.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/Avatar/stories/MutedAvatarOverlay.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControls",(function(){return WithControls}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _MutedAvatarOverlay__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/Avatar/MutedAvatarOverlay.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/MutedAvatarOverlay",component:_MutedAvatarOverlay__WEBPACK_IMPORTED_MODULE_2__.a,parameters:{docs:{description:{component:'\n `import MutedAvatarOverlay from "@sendbird/uikit-react/ui/MutedAvatarOverlay";`\n'}}}};var WithControls=function WithControls(args){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_MutedAvatarOverlay__WEBPACK_IMPORTED_MODULE_2__.a,Object.assign({},args))};WithControls.displayName="WithControls",WithControls.parameters=Object.assign({storySource:{source:"(args) => (\n \n)"}},WithControls.parameters),WithControls.__docgenInfo={description:"",methods:[],displayName:"WithControls"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Avatar/stories/MutedAvatarOverlay.stories.js"]={name:"WithControls",docgenInfo:WithControls.__docgenInfo,path:"src/ui/Avatar/stories/MutedAvatarOverlay.stories.js"})},"./src/ui/Avatar/stories/index.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return WithControl})),__webpack_require__.d(__webpack_exports__,"basicAvatar",(function(){return basicAvatar})),__webpack_require__.d(__webpack_exports__,"basicAvatarWithDiamensions",(function(){return basicAvatarWithDiamensions})),__webpack_require__.d(__webpack_exports__,"oneSourceInArray",(function(){return oneSourceInArray})),__webpack_require__.d(__webpack_exports__,"twoSourceInArray",(function(){return twoSourceInArray})),__webpack_require__.d(__webpack_exports__,"threeSourceInArray",(function(){return threeSourceInArray})),__webpack_require__.d(__webpack_exports__,"fourOrMoreSourceInArray",(function(){return fourOrMoreSourceInArray})),__webpack_require__.d(__webpack_exports__,"emptySourceInArray",(function(){return emptySourceInArray}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _index__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/Avatar/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/Avatar",component:_index__WEBPACK_IMPORTED_MODULE_2__.a,parameters:{docs:{description:{component:'\n `import Avatar from "@sendbird/uikit-react/ui/Avatar";`\n'}}}};var src="https://avatars3.githubusercontent.com/u/46333979?s=460&v=4",src1="https://avatars1.githubusercontent.com/u/1384313?s=460&v=4",src2="https://avatars2.githubusercontent.com/u/11382805?s=460&v=4",WithControl=function WithControl(arg){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,Object.assign({},arg))};WithControl.displayName="WithControl";var basicAvatar=function basicAvatar(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{src:src})};basicAvatar.displayName="basicAvatar";var basicAvatarWithDiamensions=function basicAvatarWithDiamensions(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{src:src,height:"100px",width:"100px"})};basicAvatarWithDiamensions.displayName="basicAvatarWithDiamensions";var oneSourceInArray=function oneSourceInArray(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{src:[src]})};oneSourceInArray.displayName="oneSourceInArray";var twoSourceInArray=function twoSourceInArray(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{src:[src,src1]})};twoSourceInArray.displayName="twoSourceInArray";var threeSourceInArray=function threeSourceInArray(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{src:[src,src1,src2]})};threeSourceInArray.displayName="threeSourceInArray";var fourOrMoreSourceInArray=function fourOrMoreSourceInArray(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{src:[src,src1,src2,""]})};fourOrMoreSourceInArray.displayName="fourOrMoreSourceInArray";var emptySourceInArray=function emptySourceInArray(){return[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{src:[""]}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("br",{}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{src:["",""]}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("br",{}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{src:["","",""]}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("br",{}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{src:["","","",""]})]};WithControl.parameters=Object.assign({storySource:{source:"(arg) => "}},WithControl.parameters),basicAvatar.parameters=Object.assign({storySource:{source:"() => "}},basicAvatar.parameters),basicAvatarWithDiamensions.parameters=Object.assign({storySource:{source:'() => '}},basicAvatarWithDiamensions.parameters),oneSourceInArray.parameters=Object.assign({storySource:{source:"() => "}},oneSourceInArray.parameters),twoSourceInArray.parameters=Object.assign({storySource:{source:"() => "}},twoSourceInArray.parameters),threeSourceInArray.parameters=Object.assign({storySource:{source:"() => "}},threeSourceInArray.parameters),fourOrMoreSourceInArray.parameters=Object.assign({storySource:{source:"() => "}},fourOrMoreSourceInArray.parameters),emptySourceInArray.parameters=Object.assign({storySource:{source:"() => [\n ,\n

,\n ,\n

,\n ,\n

,\n ,\n]"}},emptySourceInArray.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Avatar/stories/index.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/Avatar/stories/index.stories.js"}),basicAvatar.__docgenInfo={description:"",methods:[],displayName:"basicAvatar"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Avatar/stories/index.stories.js"]={name:"basicAvatar",docgenInfo:basicAvatar.__docgenInfo,path:"src/ui/Avatar/stories/index.stories.js"}),basicAvatarWithDiamensions.__docgenInfo={description:"",methods:[],displayName:"basicAvatarWithDiamensions"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Avatar/stories/index.stories.js"]={name:"basicAvatarWithDiamensions",docgenInfo:basicAvatarWithDiamensions.__docgenInfo,path:"src/ui/Avatar/stories/index.stories.js"}),oneSourceInArray.__docgenInfo={description:"",methods:[],displayName:"oneSourceInArray"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Avatar/stories/index.stories.js"]={name:"oneSourceInArray",docgenInfo:oneSourceInArray.__docgenInfo,path:"src/ui/Avatar/stories/index.stories.js"}),twoSourceInArray.__docgenInfo={description:"",methods:[],displayName:"twoSourceInArray"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Avatar/stories/index.stories.js"]={name:"twoSourceInArray",docgenInfo:twoSourceInArray.__docgenInfo,path:"src/ui/Avatar/stories/index.stories.js"}),threeSourceInArray.__docgenInfo={description:"",methods:[],displayName:"threeSourceInArray"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Avatar/stories/index.stories.js"]={name:"threeSourceInArray",docgenInfo:threeSourceInArray.__docgenInfo,path:"src/ui/Avatar/stories/index.stories.js"}),fourOrMoreSourceInArray.__docgenInfo={description:"",methods:[],displayName:"fourOrMoreSourceInArray"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Avatar/stories/index.stories.js"]={name:"fourOrMoreSourceInArray",docgenInfo:fourOrMoreSourceInArray.__docgenInfo,path:"src/ui/Avatar/stories/index.stories.js"})},"./src/ui/Badge/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/Badge/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/Badge/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return Badge}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.repeat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var react__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_13__),_Label__WEBPACK_IMPORTED_MODULE_15__=(__webpack_require__("./src/ui/Badge/index.scss"),__webpack_require__("./src/ui/Label/index.tsx")),_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./src/lib/LocalizationContext.tsx");function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i6?6:maxLevel),10);return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{className:[].concat(_toConsumableArray(Array.isArray(className)?className:[className]),["sendbird-badge"]).join(" ")},react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{className:"sendbird-badge__text"},react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(_Label__WEBPACK_IMPORTED_MODULE_15__.d,{type:_Label__WEBPACK_IMPORTED_MODULE_15__.c.CAPTION_2,color:_Label__WEBPACK_IMPORTED_MODULE_15__.a.ONCONTENT_1},"string"==typeof count?count:count>maximumNumber?"".concat(maximumNumber).concat(stringSet.BADGE__OVER):count)))}try{Badge.displayName="Badge",Badge.__docgenInfo={description:"",displayName:"Badge",props:{count:{defaultValue:null,description:"",name:"count",required:!0,type:{name:"string | number"}},maxLevel:{defaultValue:{value:"2"},description:"",name:"maxLevel",required:!1,type:{name:"number"}},className:{defaultValue:{value:""},description:"",name:"className",required:!1,type:{name:"string | string[]"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Badge/index.tsx#Badge"]={docgenInfo:Badge.__docgenInfo,name:"Badge",path:"src/ui/Badge/index.tsx#Badge"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/Badge/stories/Badge.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControls",(function(){return WithControls})),__webpack_require__.d(__webpack_exports__,"defaultBadge",(function(){return defaultBadge})),__webpack_require__.d(__webpack_exports__,"wideBadge",(function(){return wideBadge})),__webpack_require__.d(__webpack_exports__,"overHundredBadge",(function(){return overHundredBadge}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _index__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/Badge/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/Badge",component:_index__WEBPACK_IMPORTED_MODULE_2__.a,parameters:{docs:{description:{component:'\n `import Badge from "@sendbird/uikit-react/ui/Badge";`\n'}}}};var WithControls=function WithControls(args){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,Object.assign({},args))};WithControls.displayName="WithControls";var defaultBadge=function defaultBadge(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{count:1})};defaultBadge.displayName="defaultBadge";var wideBadge=function wideBadge(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{count:10})};wideBadge.displayName="wideBadge";var overHundredBadge=function overHundredBadge(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{count:100})};overHundredBadge.displayName="overHundredBadge",WithControls.parameters=Object.assign({storySource:{source:"(args) => "}},WithControls.parameters),defaultBadge.parameters=Object.assign({storySource:{source:"() => "}},defaultBadge.parameters),wideBadge.parameters=Object.assign({storySource:{source:"() => "}},wideBadge.parameters),overHundredBadge.parameters=Object.assign({storySource:{source:"() => "}},overHundredBadge.parameters),WithControls.__docgenInfo={description:"",methods:[],displayName:"WithControls"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Badge/stories/Badge.stories.js"]={name:"WithControls",docgenInfo:WithControls.__docgenInfo,path:"src/ui/Badge/stories/Badge.stories.js"}),defaultBadge.__docgenInfo={description:"",methods:[],displayName:"defaultBadge"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Badge/stories/Badge.stories.js"]={name:"defaultBadge",docgenInfo:defaultBadge.__docgenInfo,path:"src/ui/Badge/stories/Badge.stories.js"}),wideBadge.__docgenInfo={description:"",methods:[],displayName:"wideBadge"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Badge/stories/Badge.stories.js"]={name:"wideBadge",docgenInfo:wideBadge.__docgenInfo,path:"src/ui/Badge/stories/Badge.stories.js"}),overHundredBadge.__docgenInfo={description:"",methods:[],displayName:"overHundredBadge"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Badge/stories/Badge.stories.js"]={name:"overHundredBadge",docgenInfo:overHundredBadge.__docgenInfo,path:"src/ui/Badge/stories/Badge.stories.js"})},"./src/ui/BottomSheet/bottom-sheet.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/BottomSheet/bottom-sheet.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/BottomSheet/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./src/ui/BottomSheet/bottom-sheet.scss");var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),react_dom__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react-dom/index.js"),_hooks_useModal__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/hooks/useModal/index.tsx"),BottomSheet=function BottomSheet(props){var _props$className=props.className,className=void 0===_props$className?"":_props$className,children=props.children,onBackdropClick=props.onBackdropClick,portalRoot=Object(react__WEBPACK_IMPORTED_MODULE_1__.useRef)();return portalRoot.current=document.getElementById(_hooks_useModal__WEBPACK_IMPORTED_MODULE_3__.b),portalRoot.current||(portalRoot.current=document.createElement("div"),portalRoot.current.setAttribute("id",_hooks_useModal__WEBPACK_IMPORTED_MODULE_3__.b),document.body.appendChild(portalRoot.current)),Object(react_dom__WEBPACK_IMPORTED_MODULE_2__.createPortal)(react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",{className:"".concat(className," sendbird-bottomsheet")},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",{className:"sendbird-bottomsheet__content",role:"dialog","aria-modal":"true","aria-expanded":"true"},children),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",{className:"\n sendbird-bottomsheet__backdrop\n ",onClick:function onClick(e){null==e||e.stopPropagation(),onBackdropClick()}})),portalRoot.current)};__webpack_exports__.a=BottomSheet;try{BottomSheet.displayName="BottomSheet",BottomSheet.__docgenInfo={description:"",displayName:"BottomSheet",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},onBackdropClick:{defaultValue:null,description:"",name:"onBackdropClick",required:!1,type:{name:"() => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/BottomSheet/index.tsx#BottomSheet"]={docgenInfo:BottomSheet.__docgenInfo,name:"BottomSheet",path:"src/ui/BottomSheet/index.tsx#BottomSheet"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/BottomSheet/stories/BottomSheet.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControls",(function(){return WithControls}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _index__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/BottomSheet/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/BottomSheet",component:_index__WEBPACK_IMPORTED_MODULE_2__.a,parameters:{docs:{description:{component:'\n `import BottomSheet from "@sendbird/uikit-react/ui/BottomSheet";`\n This is a component used in Mobile UI\n'}}}};var WithControls=function WithControls(args){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,Object.assign({},args,{children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.Fragment,{children:"Child component"})}))};WithControls.displayName="WithControls",WithControls.parameters=Object.assign({storySource:{source:"(args) => (\n \n <>Child component\n \n)"}},WithControls.parameters),WithControls.__docgenInfo={description:"",methods:[],displayName:"WithControls"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/BottomSheet/stories/BottomSheet.stories.js"]={name:"WithControls",docgenInfo:WithControls.__docgenInfo,path:"src/ui/BottomSheet/stories/BottomSheet.stories.js"})},"./src/ui/Button/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/Button/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/Button/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"c",(function(){return Button_Button})),__webpack_require__.d(__webpack_exports__,"b",(function(){return ButtonTypes})),__webpack_require__.d(__webpack_exports__,"a",(function(){return ButtonSizes}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),Label=(__webpack_require__("./src/ui/Button/index.scss"),__webpack_require__("./src/ui/Label/index.tsx")),ButtonTypes=function(ButtonTypes){return ButtonTypes.PRIMARY="PRIMARY",ButtonTypes.SECONDARY="SECONDARY",ButtonTypes.DANGER="DANGER",ButtonTypes.DISABLED="DISABLED",ButtonTypes.WARNING="WARNING",ButtonTypes}({}),ButtonSizes=function(ButtonSizes){return ButtonSizes.BIG="BIG",ButtonSizes.SMALL="SMALL",ButtonSizes}({});function changeTypeToClassName(type){switch(type){case ButtonTypes.PRIMARY:return"sendbird-button--primary";case ButtonTypes.SECONDARY:return"sendbird-button--secondary";case ButtonTypes.DANGER:return"sendbird-button--danger";case ButtonTypes.DISABLED:return"sendbird-button--disabled";case ButtonTypes.WARNING:return"sendbird-button--warning";default:return null}}function changeSizeToClassName(size){switch(size){case ButtonSizes.BIG:return"sendbird-button--big";case ButtonSizes.SMALL:return"sendbird-button--small";default:return null}}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i { /* noop */ }"},description:"",name:"onClick",required:!1,type:{name:"() => void"}},labelType:{defaultValue:{value:"BUTTON_1"},description:"",name:"labelType",required:!1,type:{name:"enum",value:[{value:'"H_1"'},{value:'"H_2"'},{value:'"SUBTITLE_1"'},{value:'"SUBTITLE_2"'},{value:'"BODY_1"'},{value:'"BODY_2"'},{value:'"BUTTON_1"'},{value:'"BUTTON_2"'},{value:'"BUTTON_3"'},{value:'"CAPTION_1"'},{value:'"CAPTION_2"'},{value:'"CAPTION_3"'}]}},labelColor:{defaultValue:{value:"ONCONTENT_1"},description:"",name:"labelColor",required:!1,type:{name:"enum",value:[{value:'"PRIMARY"'},{value:'"ERROR"'},{value:'"ONBACKGROUND_1"'},{value:'"ONBACKGROUND_2"'},{value:'"ONBACKGROUND_3"'},{value:'"ONBACKGROUND_4"'},{value:'"ONCONTENT_1"'},{value:'"ONCONTENT_2"'},{value:'"ONCONTENT_INVERSE_1"'},{value:'"ONCONTENT_INVERSE_5"'},{value:'"SECONDARY_3"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Button/index.tsx#Button"]={docgenInfo:Button_Button.__docgenInfo,name:"Button",path:"src/ui/Button/index.tsx#Button"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/Button/stories/Button.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControls",(function(){return WithControls})),__webpack_require__.d(__webpack_exports__,"defaultButton",(function(){return defaultButton})),__webpack_require__.d(__webpack_exports__,"smallButton",(function(){return smallButton}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _index__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/Button/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/Button",component:_index__WEBPACK_IMPORTED_MODULE_2__.c,parameters:{docs:{description:{component:'\n `import Button from "@sendbird/uikit-react/ui/Button";`\n'}}}};var WithControls=function WithControls(args){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.c,Object.assign({},args,{children:"TEXT"}))};WithControls.displayName="WithControls";var defaultButton=function defaultButton(){return[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.c,{children:"DEFAULT"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.c,{type:_index__WEBPACK_IMPORTED_MODULE_2__.b.PRIMARY,children:"PRIMARY"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.c,{type:_index__WEBPACK_IMPORTED_MODULE_2__.b.SECONDARY,children:"SECONDARY"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.c,{type:_index__WEBPACK_IMPORTED_MODULE_2__.b.DANGER,children:"DANGER"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.c,{type:_index__WEBPACK_IMPORTED_MODULE_2__.b.DISABLED,children:"DISABLED"})]},smallButton=function smallButton(){return[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.c,{type:_index__WEBPACK_IMPORTED_MODULE_2__.b.PRIMARY,size:_index__WEBPACK_IMPORTED_MODULE_2__.a.SMALL,children:"PRIMARY"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.c,{type:_index__WEBPACK_IMPORTED_MODULE_2__.b.SECONDARY,size:_index__WEBPACK_IMPORTED_MODULE_2__.a.SMALL,children:"SECONDARY"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.c,{type:_index__WEBPACK_IMPORTED_MODULE_2__.b.DANGER,size:_index__WEBPACK_IMPORTED_MODULE_2__.a.SMALL,children:"DANGER"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.c,{type:_index__WEBPACK_IMPORTED_MODULE_2__.b.DISABLED,size:_index__WEBPACK_IMPORTED_MODULE_2__.a.SMALL,children:"DISABLED"})]};WithControls.parameters=Object.assign({storySource:{source:"(args) => "}},WithControls.parameters),defaultButton.parameters=Object.assign({storySource:{source:"() => [\n ,\n ,\n ,\n ,\n ,\n]"}},defaultButton.parameters),smallButton.parameters=Object.assign({storySource:{source:"() => [\n ,\n ,\n ,\n ,\n]"}},smallButton.parameters),WithControls.__docgenInfo={description:"",methods:[],displayName:"WithControls"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Button/stories/Button.stories.js"]={name:"WithControls",docgenInfo:WithControls.__docgenInfo,path:"src/ui/Button/stories/Button.stories.js"})},"./src/ui/ChannelAvatar/OpenChannelAvatar.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_Avatar_index__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/Avatar/index.tsx"),_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/lib/LocalizationContext.tsx"),_utils__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/ui/ChannelAvatar/utils.ts");function ChannelAvatar(_ref){var channel=_ref.channel,theme=_ref.theme,_ref$height=_ref.height,height=void 0===_ref$height?56:_ref$height,_ref$width=_ref.width,width=void 0===_ref$width?56:_ref$width,stringSet=Object(react__WEBPACK_IMPORTED_MODULE_1__.useContext)(_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_3__.a).stringSet,memoizedAvatar=Object(react__WEBPACK_IMPORTED_MODULE_1__.useMemo)((function(){return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Avatar_index__WEBPACK_IMPORTED_MODULE_2__.a,{className:"sendbird-chat-header__avatar--open-channel",src:_utils__WEBPACK_IMPORTED_MODULE_4__.c(channel),width:"".concat(width,"px"),height:"".concat(height,"px"),alt:(null==channel?void 0:channel.name)||stringSet.OPEN_CHANNEL_SETTINGS__NO_TITLE})}),[null==channel?void 0:channel.coverUrl,theme]);return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_1___default.a.Fragment,null,memoizedAvatar)}__webpack_exports__.a=ChannelAvatar;try{ChannelAvatar.displayName="ChannelAvatar",ChannelAvatar.__docgenInfo={description:"",displayName:"ChannelAvatar",props:{channel:{defaultValue:null,description:"",name:"channel",required:!0,type:{name:"OpenChannel"}},theme:{defaultValue:null,description:"",name:"theme",required:!0,type:{name:"string"}},height:{defaultValue:{value:"56"},description:"",name:"height",required:!1,type:{name:"number"}},width:{defaultValue:{value:"56"},description:"",name:"width",required:!1,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ChannelAvatar/OpenChannelAvatar.tsx#ChannelAvatar"]={docgenInfo:ChannelAvatar.__docgenInfo,name:"ChannelAvatar",path:"src/ui/ChannelAvatar/OpenChannelAvatar.tsx#ChannelAvatar"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/ChannelAvatar/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/ChannelAvatar/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/ChannelAvatar/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./src/ui/ChannelAvatar/index.scss");var react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__),_Avatar_index__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/ui/Avatar/index.tsx"),_Icon__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/ui/Icon/index.tsx"),_utils__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/ui/ChannelAvatar/utils.ts");function ChannelAvatar(_ref){var channel=_ref.channel,userId=_ref.userId,theme=_ref.theme,_ref$width=_ref.width,width=void 0===_ref$width?56:_ref$width,_ref$height=_ref.height,height=void 0===_ref$height?56:_ref$height,isBroadcast=null==channel?void 0:channel.isBroadcast,memoizedAvatar=Object(react__WEBPACK_IMPORTED_MODULE_2__.useMemo)((function(){return isBroadcast?_utils__WEBPACK_IMPORTED_MODULE_5__.a(channel)?react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div",{className:"sendbird-chat-header--default-avatar",style:{width:width,height:height,display:"flex",justifyContent:"center",alignItems:"center"}},react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_4__.c,{type:_Icon__WEBPACK_IMPORTED_MODULE_4__.b.BROADCAST,fillColor:_Icon__WEBPACK_IMPORTED_MODULE_4__.a.CONTENT,width:.575*width,height:.575*height})):react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_Avatar_index__WEBPACK_IMPORTED_MODULE_3__.a,{className:"sendbird-chat-header--avatar--broadcast-channel",src:_utils__WEBPACK_IMPORTED_MODULE_5__.b(channel,userId),width:width,height:height,alt:null==channel?void 0:channel.name}):react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_Avatar_index__WEBPACK_IMPORTED_MODULE_3__.a,{className:"sendbird-chat-header--avatar--group-channel",src:_utils__WEBPACK_IMPORTED_MODULE_5__.b(channel,userId),width:"".concat(width,"px"),height:"".concat(height,"px"),alt:null==channel?void 0:channel.name})}),[_utils__WEBPACK_IMPORTED_MODULE_5__.b(channel,userId),theme]);return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_2___default.a.Fragment,null,memoizedAvatar)}__webpack_exports__.a=ChannelAvatar;try{ChannelAvatar.displayName="ChannelAvatar",ChannelAvatar.__docgenInfo={description:"",displayName:"ChannelAvatar",props:{channel:{defaultValue:null,description:"",name:"channel",required:!0,type:{name:"GroupChannel"}},userId:{defaultValue:null,description:"",name:"userId",required:!0,type:{name:"string"}},theme:{defaultValue:null,description:"",name:"theme",required:!0,type:{name:"string"}},width:{defaultValue:{value:"56"},description:"",name:"width",required:!1,type:{name:"number"}},height:{defaultValue:{value:"56"},description:"",name:"height",required:!1,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ChannelAvatar/index.tsx#ChannelAvatar"]={docgenInfo:ChannelAvatar.__docgenInfo,name:"ChannelAvatar",path:"src/ui/ChannelAvatar/index.tsx#ChannelAvatar"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/ChannelAvatar/stories/ChannelAvatar.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return WithControl})),__webpack_require__.d(__webpack_exports__,"simpleDefault",(function(){return simpleDefault})),__webpack_require__.d(__webpack_exports__,"defaultBroadcast",(function(){return defaultBroadcast})),__webpack_require__.d(__webpack_exports__,"defaultBroadcastDark",(function(){return defaultBroadcastDark}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _index__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/ChannelAvatar/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/ChannelAvatar",component:_index__WEBPACK_IMPORTED_MODULE_2__.a,parameters:{docs:{description:{component:'\n `import ChannelAvatar from "@sendbird/uikit-react/ui/ChannelAvatar";`\n'}}}};var WithControl=function WithControl(args){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,Object.assign({},args))};WithControl.displayName="WithControl";var simpleDefault=function simpleDefault(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{channel:{name:"12e"}})};simpleDefault.displayName="simpleDefault";var defaultBroadcast=function defaultBroadcast(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{channel:{isBroadcast:!0}})};defaultBroadcast.displayName="defaultBroadcast";var defaultBroadcastDark=function defaultBroadcastDark(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{channel:{isBroadcast:!0},theme:"dark"})};defaultBroadcastDark.displayName="defaultBroadcastDark",WithControl.parameters=Object.assign({storySource:{source:"(args) => "}},WithControl.parameters),simpleDefault.parameters=Object.assign({storySource:{source:'() => '}},simpleDefault.parameters),defaultBroadcast.parameters=Object.assign({storySource:{source:"() => "}},defaultBroadcast.parameters),defaultBroadcastDark.parameters=Object.assign({storySource:{source:'() => (\n \n)'}},defaultBroadcastDark.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ChannelAvatar/stories/ChannelAvatar.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/ChannelAvatar/stories/ChannelAvatar.stories.js"}),simpleDefault.__docgenInfo={description:"",methods:[],displayName:"simpleDefault"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ChannelAvatar/stories/ChannelAvatar.stories.js"]={name:"simpleDefault",docgenInfo:simpleDefault.__docgenInfo,path:"src/ui/ChannelAvatar/stories/ChannelAvatar.stories.js"}),defaultBroadcast.__docgenInfo={description:"",methods:[],displayName:"defaultBroadcast"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ChannelAvatar/stories/ChannelAvatar.stories.js"]={name:"defaultBroadcast",docgenInfo:defaultBroadcast.__docgenInfo,path:"src/ui/ChannelAvatar/stories/ChannelAvatar.stories.js"}),defaultBroadcastDark.__docgenInfo={description:"",methods:[],displayName:"defaultBroadcastDark"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ChannelAvatar/stories/ChannelAvatar.stories.js"]={name:"defaultBroadcastDark",docgenInfo:defaultBroadcastDark.__docgenInfo,path:"src/ui/ChannelAvatar/stories/ChannelAvatar.stories.js"})},"./src/ui/ChannelAvatar/stories/OpenChannelAvatar.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return WithControl}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _OpenChannelAvatar__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/ChannelAvatar/OpenChannelAvatar.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/OpenChannelAvatar",component:_OpenChannelAvatar__WEBPACK_IMPORTED_MODULE_2__.a,parameters:{docs:{description:{component:'\n `import OpenChannelAvatar from "@sendbird/uikit-react/ui/OpenChannelAvatar";`\n'}}}};var WithControl=function WithControl(args){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_OpenChannelAvatar__WEBPACK_IMPORTED_MODULE_2__.a,Object.assign({},args))};WithControl.displayName="WithControl",WithControl.parameters=Object.assign({storySource:{source:"(args) => "}},WithControl.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ChannelAvatar/stories/OpenChannelAvatar.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/ChannelAvatar/stories/OpenChannelAvatar.stories.js"})},"./src/ui/ChannelAvatar/utils.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"c",(function(){return getOpenChannelAvatar})),__webpack_require__.d(__webpack_exports__,"b",(function(){return getChannelAvatarSource})),__webpack_require__.d(__webpack_exports__,"a",(function(){return generateDefaultAvatar}));__webpack_require__("./node_modules/core-js/modules/es.regexp.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js");var getOpenChannelAvatar=function getOpenChannelAvatar(channel){if(null!=channel&&channel.coverUrl)return channel.coverUrl},getChannelAvatarSource=function getChannelAvatarSource(channel,currentUserId){return null!=channel&&channel.coverUrl&&!new RegExp("^".concat("https://static.sendbird.com/sample/cover/cover_")).test(channel.coverUrl)?channel.coverUrl:((null==channel?void 0:channel.members)||[]).filter((function(member){return member.userId!==currentUserId})).map((function(_ref){return _ref.profileUrl}))},generateDefaultAvatar=function generateDefaultAvatar(channel){return null==channel||!channel.coverUrl||!!new RegExp("^".concat("https://static.sendbird.com/sample/cover/cover_")).test(channel.coverUrl)}},"./src/ui/Checkbox/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/Checkbox/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/Checkbox/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return Checkbox}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js");var react__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__);__webpack_require__("./src/ui/Checkbox/index.scss");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Checkbox/index.tsx#Checkbox"]={docgenInfo:Checkbox.__docgenInfo,name:"Checkbox",path:"src/ui/Checkbox/index.tsx#Checkbox"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/Checkbox/stories/Checkbox.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return WithControl})),__webpack_require__.d(__webpack_exports__,"checkedCheckbox",(function(){return checkedCheckbox}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _index__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/Checkbox/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/Checkbox",component:_index__WEBPACK_IMPORTED_MODULE_2__.a,parameters:{docs:{description:{component:'\n `import Checkbox from "@sendbird/uikit-react/ui/Checkbox";`\n'}}}};var WithControl=function WithControl(arg){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,Object.assign({},arg))};WithControl.displayName="WithControl";var checkedCheckbox=function checkedCheckbox(){return[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{checked:!0}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{checked:!0,disabled:!0}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{disabled:!0})]};WithControl.parameters=Object.assign({storySource:{source:"(arg) => "}},WithControl.parameters),checkedCheckbox.parameters=Object.assign({storySource:{source:"() => [\n ,\n ,\n ,\n]"}},checkedCheckbox.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Checkbox/stories/Checkbox.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/Checkbox/stories/Checkbox.stories.js"})},"./src/ui/ConnectionStatus/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/ConnectionStatus/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/ConnectionStatus/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__),_Icon__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/ui/Icon/index.tsx"),_Label__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/Label/index.tsx"),_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/lib/LocalizationContext.tsx");__webpack_require__("./src/ui/ConnectionStatus/index.scss");__webpack_exports__.a=function ConnectionStatus(){var stringSet=Object(react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_3__.a).stringSet;return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{className:"sendbird-connection-status"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Label__WEBPACK_IMPORTED_MODULE_2__.d,{type:_Label__WEBPACK_IMPORTED_MODULE_2__.c.BODY_2,color:_Label__WEBPACK_IMPORTED_MODULE_2__.a.ONBACKGROUND_2},stringSet.TRYING_TO_CONNECT),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_1__.c,{type:_Icon__WEBPACK_IMPORTED_MODULE_1__.b.DISCONNECTED,fillColor:_Icon__WEBPACK_IMPORTED_MODULE_1__.a.SENT,width:"14px",height:"14px"}))}},"./src/ui/ConnectionStatus/stories/ConnectionStatus.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return WithControl}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _index__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/ConnectionStatus/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/ConnectionStatus",component:_index__WEBPACK_IMPORTED_MODULE_2__.a,parameters:{docs:{description:{component:'\n `import ConnectionStatus from "@sendbird/uikit-react/ui/ConnectionStatus";`\n \n This component has no props\n'}}}};var WithControl=function WithControl(arg){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,Object.assign({},arg))};WithControl.displayName="WithControl",WithControl.parameters=Object.assign({storySource:{source:"(arg) => "}},WithControl.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ConnectionStatus/stories/ConnectionStatus.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/ConnectionStatus/stories/ConnectionStatus.stories.js"})},"./src/ui/ContextMenu/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/ContextMenu/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/ContextMenu/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"d",(function(){return ContextMenu_MenuItems})),__webpack_require__.d(__webpack_exports__,"a",(function(){return ui_ContextMenu_EmojiListItems})),__webpack_require__.d(__webpack_exports__,"c",(function(){return ContextMenu_MenuItem})),__webpack_require__.d(__webpack_exports__,"e",(function(){return ContextMenu_MenuRoot})),__webpack_require__.d(__webpack_exports__,"b",(function(){return ContextMenu_EmojiReactionListRoot})),__webpack_require__.d(__webpack_exports__,"h",(function(){return ContextMenu_ContextMenu})),__webpack_require__.d(__webpack_exports__,"f",(function(){return MuteMenuItem_MuteMenuItem})),__webpack_require__.d(__webpack_exports__,"g",(function(){return OperatorMenuItem_OperatorMenuItem}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),react_dom=(__webpack_require__("./src/ui/ContextMenu/index.scss"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.reflect.construct.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.number.is-nan.js"),__webpack_require__("./node_modules/react-dom/index.js"));function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;rinnerHeight&&(menuStyle.top-=rect.height),x+rect.width>innerWidth&&!openLeft&&(menuStyle.left-=rect.width),menuStyle.top<0&&(menuStyle.top=rect.height"}},openLeft:{defaultValue:null,description:"",name:"openLeft",required:!1,type:{name:"boolean"}},parentRef:{defaultValue:null,description:"",name:"parentRef",required:!0,type:{name:"RefObject"}},parentContainRef:{defaultValue:null,description:"",name:"parentContainRef",required:!1,type:{name:"RefObject"}},closeDropdown:{defaultValue:null,description:"",name:"closeDropdown",required:!0,type:{name:"() => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ContextMenu/MenuItems.tsx#MenuItems"]={docgenInfo:MenuItems_MenuItems.__docgenInfo,name:"MenuItems",path:"src/ui/ContextMenu/MenuItems.tsx#MenuItems"})}catch(__react_docgen_typescript_loader_error){}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i {}"},description:"",name:"onChange",required:!1,type:{name:"(channel: BaseChannel, user: User, isMuted: boolean) => void"}},onError:{defaultValue:{value:"() => {}"},description:"",name:"onError",required:!1,type:{name:"(reason: any) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ContextMenu/items/MuteMenuItem.tsx#MuteMenuItem"]={docgenInfo:MuteMenuItem_MuteMenuItem.__docgenInfo,name:"MuteMenuItem",path:"src/ui/ContextMenu/items/MuteMenuItem.tsx#MuteMenuItem"})}catch(__react_docgen_typescript_loader_error){}var _bundle_c578be85=__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-c578be85.js"),openChannel=__webpack_require__("./node_modules/@sendbird/chat/openChannel.js");function OperatorMenuItem_slicedToArray(arr,i){return function OperatorMenuItem_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function OperatorMenuItem_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function OperatorMenuItem_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return OperatorMenuItem_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OperatorMenuItem_arrayLikeToArray(o,minLen)}(arr,i)||function OperatorMenuItem_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function OperatorMenuItem_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i {}"},description:"",name:"onChange",required:!1,type:{name:"(channel: BaseChannel, user: User, isOperator: boolean) => void"}},onError:{defaultValue:{value:"() => {}"},description:"",name:"onError",required:!1,type:{name:"(reason: any) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ContextMenu/items/OperatorMenuItem.tsx#OperatorMenuItem"]={docgenInfo:OperatorMenuItem_OperatorMenuItem.__docgenInfo,name:"OperatorMenuItem",path:"src/ui/ContextMenu/items/OperatorMenuItem.tsx#OperatorMenuItem"})}catch(__react_docgen_typescript_loader_error){}var SortByRow=__webpack_require__("./src/ui/SortByRow/index.tsx");function EmojiListItems_slicedToArray(arr,i){return function EmojiListItems_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function EmojiListItems_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function EmojiListItems_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return EmojiListItems_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EmojiListItems_arrayLikeToArray(o,minLen)}(arr,i)||function EmojiListItems_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function EmojiListItems_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i void"}},parentRef:{defaultValue:null,description:"",name:"parentRef",required:!0,type:{name:"RefObject"}},parentContainRef:{defaultValue:null,description:"",name:"parentContainRef",required:!0,type:{name:"RefObject"}},spaceFromTrigger:{defaultValue:{value:"{ x: 0, y: 0 }"},description:"",name:"spaceFromTrigger",required:!1,type:{name:"SpaceFromTrigger"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ContextMenu/EmojiListItems.tsx#EmojiListItems"]={docgenInfo:EmojiListItems_EmojiListItems.__docgenInfo,name:"EmojiListItems",path:"src/ui/ContextMenu/EmojiListItems.tsx#EmojiListItems"})}catch(__react_docgen_typescript_loader_error){}var utils=__webpack_require__("./src/utils/index.ts"),Label=__webpack_require__("./src/ui/Label/index.tsx");function ContextMenu_slicedToArray(arr,i){return function ContextMenu_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function ContextMenu_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function ContextMenu_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return ContextMenu_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ContextMenu_arrayLikeToArray(o,minLen)}(arr,i)||function ContextMenu_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ContextMenu_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i ReactElement>"}},menuItems:{defaultValue:null,description:"",name:"menuItems",required:!0,type:{name:"(func: MenuDisplayingFunc) => ReactElement>"}},isOpen:{defaultValue:null,description:"",name:"isOpen",required:!1,type:{name:"boolean"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"(...args: any[]) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ContextMenu/index.tsx#ContextMenu"]={docgenInfo:ContextMenu_ContextMenu.__docgenInfo,name:"ContextMenu",path:"src/ui/ContextMenu/index.tsx#ContextMenu"})}catch(__react_docgen_typescript_loader_error){}try{ContextMenu_MenuItems.displayName="MenuItems",ContextMenu_MenuItems.__docgenInfo={description:"",displayName:"MenuItems",props:{className:{defaultValue:{value:""},description:"",name:"className",required:!1,type:{name:"string"}},style:{defaultValue:null,description:"",name:"style",required:!1,type:{name:"Record"}},openLeft:{defaultValue:null,description:"",name:"openLeft",required:!1,type:{name:"boolean"}},parentRef:{defaultValue:null,description:"",name:"parentRef",required:!0,type:{name:"RefObject"}},parentContainRef:{defaultValue:null,description:"",name:"parentContainRef",required:!1,type:{name:"RefObject"}},closeDropdown:{defaultValue:null,description:"",name:"closeDropdown",required:!0,type:{name:"() => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ContextMenu/index.tsx#MenuItems"]={docgenInfo:ContextMenu_MenuItems.__docgenInfo,name:"MenuItems",path:"src/ui/ContextMenu/index.tsx#MenuItems"})}catch(__react_docgen_typescript_loader_error){}try{ui_ContextMenu_EmojiListItems.displayName="EmojiListItems",ui_ContextMenu_EmojiListItems.__docgenInfo={description:"",displayName:"EmojiListItems",props:{closeDropdown:{defaultValue:null,description:"",name:"closeDropdown",required:!0,type:{name:"() => void"}},parentRef:{defaultValue:null,description:"",name:"parentRef",required:!0,type:{name:"RefObject"}},parentContainRef:{defaultValue:null,description:"",name:"parentContainRef",required:!0,type:{name:"RefObject"}},spaceFromTrigger:{defaultValue:null,description:"",name:"spaceFromTrigger",required:!1,type:{name:"SpaceFromTrigger"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ContextMenu/index.tsx#EmojiListItems"]={docgenInfo:ui_ContextMenu_EmojiListItems.__docgenInfo,name:"EmojiListItems",path:"src/ui/ContextMenu/index.tsx#EmojiListItems"})}catch(__react_docgen_typescript_loader_error){}try{ContextMenu_MenuItem.displayName="MenuItem",ContextMenu_MenuItem.__docgenInfo={description:"",displayName:"MenuItem",props:{className:{defaultValue:{value:""},description:"",name:"className",required:!1,type:{name:"string | string[]"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"(e: MouseEvent) => void"}},disable:{defaultValue:{value:"false"},description:"",name:"disable",required:!1,type:{name:"boolean"}},dataSbId:{defaultValue:{value:""},description:"",name:"dataSbId",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ContextMenu/index.tsx#MenuItem"]={docgenInfo:ContextMenu_MenuItem.__docgenInfo,name:"MenuItem",path:"src/ui/ContextMenu/index.tsx#MenuItem"})}catch(__react_docgen_typescript_loader_error){}try{MuteMenuItem.displayName="MuteMenuItem",MuteMenuItem.__docgenInfo={description:"",displayName:"MuteMenuItem",props:{channel:{defaultValue:null,description:"",name:"channel",required:!0,type:{name:"BaseChannel"}},user:{defaultValue:null,description:"",name:"user",required:!0,type:{name:"User & { isMuted: boolean; }"}},className:{defaultValue:{value:""},description:"",name:"className",required:!1,type:{name:"string | string[]"}},disable:{defaultValue:{value:"false"},description:"",name:"disable",required:!1,type:{name:"boolean"}},dataSbId:{defaultValue:{value:""},description:"",name:"dataSbId",required:!1,type:{name:"string"}},onChange:{defaultValue:{value:"() => {}"},description:"",name:"onChange",required:!1,type:{name:"(channel: BaseChannel, user: User, isMuted: boolean) => void"}},onError:{defaultValue:{value:"() => {}"},description:"",name:"onError",required:!1,type:{name:"(reason: any) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ContextMenu/index.tsx#MuteMenuItem"]={docgenInfo:MuteMenuItem.__docgenInfo,name:"MuteMenuItem",path:"src/ui/ContextMenu/index.tsx#MuteMenuItem"})}catch(__react_docgen_typescript_loader_error){}try{OperatorMenuItem.displayName="OperatorMenuItem",OperatorMenuItem.__docgenInfo={description:"",displayName:"OperatorMenuItem",props:{channel:{defaultValue:null,description:"",name:"channel",required:!0,type:{name:"BaseChannel"}},user:{defaultValue:null,description:"",name:"user",required:!0,type:{name:"User & { isMuted: boolean; }"}},className:{defaultValue:{value:""},description:"",name:"className",required:!1,type:{name:"string | string[]"}},disable:{defaultValue:{value:"false"},description:"",name:"disable",required:!1,type:{name:"boolean"}},dataSbId:{defaultValue:{value:""},description:"",name:"dataSbId",required:!1,type:{name:"string"}},onChange:{defaultValue:{value:"() => {}"},description:"",name:"onChange",required:!1,type:{name:"(channel: BaseChannel, user: User, isOperator: boolean) => void"}},onError:{defaultValue:{value:"() => {}"},description:"",name:"onError",required:!1,type:{name:"(reason: any) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ContextMenu/index.tsx#OperatorMenuItem"]={docgenInfo:OperatorMenuItem.__docgenInfo,name:"OperatorMenuItem",path:"src/ui/ContextMenu/index.tsx#OperatorMenuItem"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/ContextMenu/stories/ContextMenu.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return WithControl}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js");var _storybook_addons__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@storybook/addons/dist/esm/hooks.js"),_index__WEBPACK_IMPORTED_MODULE_3__=(__webpack_require__("./node_modules/react/index.js"),__webpack_require__("./src/ui/ContextMenu/index.tsx")),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/ContextMenu",component:_index__WEBPACK_IMPORTED_MODULE_3__.h,subcomponents:{MenuItem:_index__WEBPACK_IMPORTED_MODULE_3__.c,MenuItems:_index__WEBPACK_IMPORTED_MODULE_3__.d},parameters:{docs:{description:{component:'\n `import ContextMenu, { MenuItems, MenuItem } from "@sendbird/uikit-react/ui/ContextMenu";`\n \n A simple context menu component, use menuTrigger & menuItems to render trigger and menu components respectively\n'}}}};var WithControl=function WithControl(args){var ref=Object(_storybook_addons__WEBPACK_IMPORTED_MODULE_1__.d)();return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div",{ref:ref,children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index__WEBPACK_IMPORTED_MODULE_3__.h,Object.assign({menuTrigger:function menuTrigger(toggleDropdown){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("button",{onClick:toggleDropdown,children:"click me to open menu"})},menuItems:function menuItems(closeDropdown){_index__WEBPACK_IMPORTED_MODULE_3__.d,_index__WEBPACK_IMPORTED_MODULE_3__.c,_index__WEBPACK_IMPORTED_MODULE_3__.c}},args))})};WithControl.displayName="WithControl",WithControl.parameters=Object.assign({storySource:{source:"(args) => {\n const ref = useRef()\n return (\n
\n \n \n }\n menuItems={(closeDropdown) => {\n \n Item 1\n Item 2\n \n }}\n {...args}\n />\n
\n );\n}"}},WithControl.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ContextMenu/stories/ContextMenu.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/ContextMenu/stories/ContextMenu.stories.js"})},"./src/ui/DateSeparator/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/DateSeparator/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/DateSeparator/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var react__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__),_utils_color__WEBPACK_IMPORTED_MODULE_14__=(__webpack_require__("./src/ui/DateSeparator/index.scss"),__webpack_require__("./src/utils/color.ts")),_Label__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./src/ui/Label/index.tsx");function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i "}},WithControl.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/DateSeparator/stories/DateSeparator.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/DateSeparator/stories/DateSeparator.stories.js"})},"./src/ui/Docs/stories/Doc.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return Doc_stories_WithControl}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react);function Introduction(){return react_default.a.createElement("article",null,react_default.a.createElement("h1",null,"Welcome to ",react_default.a.createElement("i",null,"@sendbird/uikit-react/ui")," Storybook"),react_default.a.createElement("main",null,react_default.a.createElement("p",null,"The list of UI components can be founder under `@sendbird/uikit-react/ui` in left panel"),react_default.a.createElement("p",null,"Use Docs tab on the top(beside canvas tab) to read docs and play around with the components")))}var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),Doc_stories_WithControl=(__webpack_exports__.default={title:"@sendbird/uikit-react/ui/Introduction",component:Introduction,parameters:{docs:{description:{component:"\n `@sendbird/uikit-react/ui/Introduction`\n"}}}},function WithControl(arg){return Object(jsx_runtime.jsx)(Introduction,Object.assign({},arg))});Doc_stories_WithControl.displayName="WithControl",Doc_stories_WithControl.parameters=Object.assign({storySource:{source:"(arg) => "}},Doc_stories_WithControl.parameters),Doc_stories_WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Docs/stories/Doc.stories.js"]={name:"WithControl",docgenInfo:Doc_stories_WithControl.__docgenInfo,path:"src/ui/Docs/stories/Doc.stories.js"})},"./src/ui/EmojiReactions/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/EmojiReactions/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/EmojiReactions/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.find.js"),__webpack_require__("./src/ui/EmojiReactions/index.scss");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),ReactionBadge=__webpack_require__("./src/ui/ReactionBadge/index.tsx"),ReactionButton=__webpack_require__("./src/ui/ReactionButton/index.tsx"),ImageRenderer=__webpack_require__("./src/ui/ImageRenderer/index.tsx"),Icon=__webpack_require__("./src/ui/Icon/index.tsx"),ContextMenu=__webpack_require__("./src/ui/ContextMenu/index.tsx"),utils=__webpack_require__("./src/utils/index.ts"),BottomSheet=(__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./src/ui/MobileMenu/mobile-menu-reacted-members.scss"),__webpack_require__("./src/ui/BottomSheet/index.tsx")),Label=__webpack_require__("./src/ui/Label/index.tsx"),UserListItem=__webpack_require__("./src/ui/UserListItem/index.tsx");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i void"}},emojiContainer:{defaultValue:null,description:"",name:"emojiContainer",required:!1,type:{name:"EmojiContainer"}},onPressUserProfileHandler:{defaultValue:null,description:"",name:"onPressUserProfileHandler",required:!1,type:{name:"(member: User) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MobileMenu/ReactedMembersBottomSheet.tsx#ReactedMembersBottomSheet"]={docgenInfo:ReactedMembersBottomSheet_ReactedMembersBottomSheet.__docgenInfo,name:"ReactedMembersBottomSheet",path:"src/ui/MobileMenu/ReactedMembersBottomSheet.tsx#ReactedMembersBottomSheet"})}catch(__react_docgen_typescript_loader_error){}var Tooltip=__webpack_require__("./src/ui/Tooltip/index.tsx"),TooltipWrapper=__webpack_require__("./src/ui/TooltipWrapper/index.tsx"),MediaQueryContext=__webpack_require__("./src/lib/MediaQueryContext.tsx"),useLongPress=__webpack_require__("./src/hooks/useLongPress.tsx"),LocalizationContext=__webpack_require__("./src/lib/LocalizationContext.tsx"),useSendbirdStateContext=__webpack_require__("./src/hooks/useSendbirdStateContext.tsx"),MessageProvider=__webpack_require__("./src/modules/Message/context/MessageProvider.tsx");function ReactionItem(_ref){var _emojisMap$get,reaction=_ref.reaction,memberNicknamesMap=_ref.memberNicknamesMap,setEmojiKey=_ref.setEmojiKey,toggleReaction=_ref.toggleReaction,emojisMap=_ref.emojisMap,channel=_ref.channel,message=_ref.message,store=Object(useSendbirdStateContext.a)(),isMobile=Object(MediaQueryContext.b)().isMobile,messageStore=Object(MessageProvider.b)(),stringSet=Object(react.useContext)(LocalizationContext.a).stringSet,userId=store.config.userId,reactedByMe=Object(utils.I)(userId,reaction),showHoverTooltip=reaction.userIds.length>0&&(null==channel?void 0:channel.isGroupChannel())&&!channel.isSuper,handleOnClick=function handleOnClick(){setEmojiKey(""),null==toggleReaction||toggleReaction(null!=message?message:null==messageStore?void 0:messageStore.message,reaction.key,reactedByMe)},longPress=Object(useLongPress.a)({onLongPress:function onLongPress(){setEmojiKey(reaction.key)},onClick:handleOnClick},{shouldPreventDefault:!0,shouldStopPropagation:!0});return react_default.a.createElement(TooltipWrapper.a,{className:"sendbird-emoji-reactions__reaction-badge",hoverTooltip:showHoverTooltip?react_default.a.createElement(Tooltip.a,null,Object(utils.l)(reaction,userId,memberNicknamesMap,stringSet)):react_default.a.createElement(react_default.a.Fragment,null)},react_default.a.createElement("div",isMobile?longPress:{onClick:handleOnClick},react_default.a.createElement(ReactionBadge.a,{count:reaction.userIds.length,selected:reactedByMe},react_default.a.createElement(ImageRenderer.a,{circle:!0,url:(null===(_emojisMap$get=emojisMap.get(null==reaction?void 0:reaction.key))||void 0===_emojisMap$get?void 0:_emojisMap$get.url)||"",width:"20px",height:"20px",defaultComponent:react_default.a.createElement(Icon.c,{width:"20px",height:"20px",type:Icon.b.QUESTION})}))))}try{ReactionItem.displayName="ReactionItem",ReactionItem.__docgenInfo={description:"",displayName:"ReactionItem",props:{reaction:{defaultValue:null,description:"",name:"reaction",required:!0,type:{name:"Reaction"}},memberNicknamesMap:{defaultValue:null,description:"",name:"memberNicknamesMap",required:!0,type:{name:"Map"}},setEmojiKey:{defaultValue:null,description:"",name:"setEmojiKey",required:!0,type:{name:"Dispatch>"}},toggleReaction:{defaultValue:null,description:"",name:"toggleReaction",required:!1,type:{name:"(message: SendableMessageType, key: string, byMe: boolean) => void"}},emojisMap:{defaultValue:null,description:"",name:"emojisMap",required:!0,type:{name:"Map"}},channel:{defaultValue:null,description:"",name:"channel",required:!0,type:{name:"GroupChannel | OpenChannel"}},message:{defaultValue:null,description:"",name:"message",required:!1,type:{name:"SendableMessageType"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/EmojiReactions/ReactionItem.tsx#ReactionItem"]={docgenInfo:ReactionItem.__docgenInfo,name:"ReactionItem",path:"src/ui/EmojiReactions/ReactionItem.tsx#ReactionItem"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./node_modules/core-js/modules/es.object.assign.js");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i | MouseEvent | TouchEvent) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/EmojiReactions/AddReactionBadgeItem.tsx#AddReactionBadgeItem"]={docgenInfo:AddReactionBadgeItem_AddReactionBadgeItem.__docgenInfo,name:"AddReactionBadgeItem",path:"src/ui/EmojiReactions/AddReactionBadgeItem.tsx#AddReactionBadgeItem"})}catch(__react_docgen_typescript_loader_error){}var MobileEmojisBottomSheet_MobileEmojisBottomSheet=function MobileEmojisBottomSheet(_ref){var userId=_ref.userId,message=_ref.message,emojiContainer=_ref.emojiContainer,hideMenu=_ref.hideMenu,toggleReaction=_ref.toggleReaction,emojiAllList=Object(react.useMemo)((function(){return Object(utils.j)(emojiContainer)}),[emojiContainer]);return react_default.a.createElement(BottomSheet.a,{onBackdropClick:hideMenu},react_default.a.createElement("div",{className:"sendbird-message__bottomsheet sendbird-message__emojis-bottomsheet"},emojiAllList.map((function(emoji){var _message$reactions$fi,_message$reactions,isReacted=null!==(_message$reactions$fi=null==message||null===(_message$reactions=message.reactions)||void 0===_message$reactions||null===(_message$reactions=_message$reactions.find((function(reaction){return reaction.key===emoji.key})))||void 0===_message$reactions||null===(_message$reactions=_message$reactions.userIds)||void 0===_message$reactions?void 0:_message$reactions.some((function(reactorId){return reactorId===userId})))&&void 0!==_message$reactions$fi&&_message$reactions$fi;return react_default.a.createElement(ReactionButton.a,{key:emoji.key,width:"44px",height:"44px",selected:isReacted,onClick:function onClick(e){null==e||e.stopPropagation(),null==toggleReaction||toggleReaction(message,emoji.key,isReacted),hideMenu()},dataSbId:"ui_mobile_emoji_reactions_menu_".concat(emoji.key)},react_default.a.createElement(ImageRenderer.a,{url:emoji.url,width:"38px",height:"38px",placeHolder:function placeHolder(_ref2){var style=_ref2.style;return react_default.a.createElement("div",{style:style},react_default.a.createElement(Icon.c,{type:Icon.b.QUESTION,fillColor:Icon.a.ON_BACKGROUND_3,width:"28px",height:"28px"}))}}))}))))};try{MobileEmojisBottomSheet_MobileEmojisBottomSheet.displayName="MobileEmojisBottomSheet",MobileEmojisBottomSheet_MobileEmojisBottomSheet.__docgenInfo={description:"",displayName:"MobileEmojisBottomSheet",props:{userId:{defaultValue:null,description:"",name:"userId",required:!0,type:{name:"string"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"SendableMessageType"}},emojiContainer:{defaultValue:null,description:"",name:"emojiContainer",required:!0,type:{name:"EmojiContainer"}},hideMenu:{defaultValue:null,description:"",name:"hideMenu",required:!0,type:{name:"() => void"}},toggleReaction:{defaultValue:null,description:"",name:"toggleReaction",required:!1,type:{name:"(message: SendableMessageType, key: string, byMe: boolean) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MobileMenu/MobileEmojisBottomSheet.tsx#MobileEmojisBottomSheet"]={docgenInfo:MobileEmojisBottomSheet_MobileEmojisBottomSheet.__docgenInfo,name:"MobileEmojisBottomSheet",path:"src/ui/MobileMenu/MobileEmojisBottomSheet.tsx#MobileEmojisBottomSheet"})}catch(__react_docgen_typescript_loader_error){}function EmojiReactions_slicedToArray(arr,i){return function EmojiReactions_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function EmojiReactions_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function EmojiReactions_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return EmojiReactions_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EmojiReactions_arrayLikeToArray(o,minLen)}(arr,i)||function EmojiReactions_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function EmojiReactions_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&(null===(_message$reactions3=message.reactions)||void 0===_message$reactions3?void 0:_message$reactions3.map((function(reaction){return react_default.a.createElement(ReactionItem,{key:null==reaction?void 0:reaction.key,reaction:reaction,memberNicknamesMap:memberNicknamesMap,setEmojiKey:setSelectedEmojiKey,toggleReaction:toggleReaction,emojisMap:emojisMap,channel:channel,message:message})}))),!isMobile&&showAddReactionBadge&&react_default.a.createElement(ContextMenu.h,{menuTrigger:function menuTrigger(toggleDropdown){return react_default.a.createElement(ReactionBadge.a,{className:"sendbird-emoji-reactions__add-reaction-badge",ref:addReactionRef,isAdd:!0,onClick:function onClick(e){var _e$stopPropagation;toggleDropdown(),null==e||null===(_e$stopPropagation=e.stopPropagation)||void 0===_e$stopPropagation||_e$stopPropagation.call(e)}},react_default.a.createElement(Icon.c,{type:Icon.b.EMOJI_MORE,fillColor:Icon.a.ON_BACKGROUND_3,width:"20px",height:"20px"}))},menuItems:function menuItems(closeDropdown){return react_default.a.createElement(ContextMenu.a,{parentRef:addReactionRef,parentContainRef:addReactionRef,closeDropdown:closeDropdown,spaceFromTrigger:spaceFromTrigger},Object(utils.j)(emojiContainer).map((function(emoji){var _message$reactions4,isReacted=(null==message||null===(_message$reactions4=message.reactions)||void 0===_message$reactions4||null===(_message$reactions4=_message$reactions4.find((function(reaction){return reaction.key===emoji.key})))||void 0===_message$reactions4||null===(_message$reactions4=_message$reactions4.userIds)||void 0===_message$reactions4?void 0:_message$reactions4.some((function(reactorId){return reactorId===userId})))||!1;return react_default.a.createElement(ReactionButton.a,{key:emoji.key,width:"36px",height:"36px",selected:isReacted,onClick:function onClick(e){closeDropdown(),null==toggleReaction||toggleReaction(message,emoji.key,isReacted),null==e||e.stopPropagation()},dataSbId:"ui_emoji_reactions_menu_".concat(emoji.key)},react_default.a.createElement(ImageRenderer.a,{url:(null==emoji?void 0:emoji.url)||"",width:"28px",height:"28px",placeHolder:function placeHolder(_ref2){var style=_ref2.style;return react_default.a.createElement("div",{style:style},react_default.a.createElement(Icon.c,{type:Icon.b.QUESTION,fillColor:Icon.a.ON_BACKGROUND_3,width:"28px",height:"28px"}))}}))})))}}),isMobile&&showAddReactionBadge&&react_default.a.createElement(AddReactionBadgeItem_AddReactionBadgeItem,{onClick:function onClick(){setShowEmojiList(!0)}}),isMobile&&showEmojiList&&react_default.a.createElement(MobileEmojisBottomSheet_MobileEmojisBottomSheet,{userId:userId,message:message,emojiContainer:emojiContainer,hideMenu:function hideMenu(){setShowEmojiList(!1)},toggleReaction:toggleReaction}),isMobile&&selectedEmojiKey&&null!==channel&&react_default.a.createElement(ReactedMembersBottomSheet_ReactedMembersBottomSheet,{message:message,channel:channel,emojiKey:selectedEmojiKey,hideMenu:function hideMenu(){setSelectedEmojiKey("")},emojiContainer:emojiContainer,onPressUserProfileHandler:onPressUserProfile}))};__webpack_exports__.a=EmojiReactions_EmojiReactions;try{EmojiReactions_EmojiReactions.displayName="EmojiReactions",EmojiReactions_EmojiReactions.__docgenInfo={description:"",displayName:"EmojiReactions",props:{className:{defaultValue:{value:""},description:"",name:"className",required:!1,type:{name:"string | string[]"}},userId:{defaultValue:null,description:"",name:"userId",required:!0,type:{name:"string"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"SendableMessageType"}},channel:{defaultValue:null,description:"",name:"channel",required:!0,type:{name:"GroupChannel"}},emojiContainer:{defaultValue:null,description:"",name:"emojiContainer",required:!0,type:{name:"EmojiContainer"}},memberNicknamesMap:{defaultValue:null,description:"",name:"memberNicknamesMap",required:!0,type:{name:"Map"}},spaceFromTrigger:{defaultValue:{value:"{ x: 0, y: 0 }"},description:"",name:"spaceFromTrigger",required:!1,type:{name:"SpaceFromTriggerType"}},isByMe:{defaultValue:{value:"false"},description:"",name:"isByMe",required:!1,type:{name:"boolean"}},toggleReaction:{defaultValue:null,description:"",name:"toggleReaction",required:!1,type:{name:"(message: SendableMessageType, key: string, byMe: boolean) => void"}},onPressUserProfile:{defaultValue:null,description:"",name:"onPressUserProfile",required:!1,type:{name:"(member: User) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/EmojiReactions/index.tsx#EmojiReactions"]={docgenInfo:EmojiReactions_EmojiReactions.__docgenInfo,name:"EmojiReactions",path:"src/ui/EmojiReactions/index.tsx#EmojiReactions"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/EmojiReactions/stories/EmojiReactions.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"SampleEmojiReactions",(function(){return SampleEmojiReactions}));__webpack_require__("./node_modules/core-js/modules/es.map.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.find.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js");var react__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/react/index.js"),_lib_Sendbird_tsx__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./src/lib/Sendbird.tsx"),_index_tsx__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./src/ui/EmojiReactions/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/react/jsx-runtime.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0?reaction:[])}:function(reactions){var _reactions$find,reaction=null!==(_reactions$find=reactions.find((function(_ref2){return _ref2.key===emojiKey})))&&void 0!==_reactions$find?_reactions$find:{key:emojiKey,userIds:[]};return reaction.userIds.push("hoon001"),reactions.filter((function(r){return r.key!==emojiKey})).concat(reaction)})}})})})};SampleEmojiReactions.displayName="SampleEmojiReactions",SampleEmojiReactions.parameters=Object.assign({storySource:{source:"() => {\n const [reactions, setReactions] = useState([\n {\n key: \"sendbird_emoji_heart_eyes\",\n userIds: ['hoon001'],\n },\n {\n key: \"sendbird_emoji_laughing\",\n userIds: ['hoon001', 'hoon002'],\n },\n {\n key: \"sendbird_emoji_rage\",\n userIds: ['hoon001', 'hoon002', 'hoon003'],\n },\n {\n key: \"sendbird_emoji_sob\",\n userIds: ['hoon001', 'hoon002', 'hoon003', 'hoon004'],\n },\n {\n key: \"sendbird_emoji_sweat_smile\",\n userIds: ['hoon001', 'hoon002', 'hoon003', 'hoon004', 'hoon005'],\n },\n ]);\n\n const currentUserId = 'hoon001';\n const currentMessageId = 'message-id'\n\n return (\n \n \n true,\n isSuper: false,\n members: [\n { userId: currentUserId },\n { userId: \"hoon002\" },\n { userId: \"hoon003\" },\n { userId: \"hoon004\" },\n { userId: \"hoon005\" },\n ],\n }}\n message={{ messageId: currentMessageId, reactions }}\n emojiContainer={mockEmojiContainer}\n memberNicknamesMap={mockMemberNicknamesMap}\n toggleReaction={(message, emojiKey, wasReacted) => {\n if (message.messageId !== currentMessageId) return null;\n if (wasReacted) {\n setReactions((reactions) => {\n const reaction = reactions.find(({ key }) => key === emojiKey);\n reaction.userIds = reaction.userIds.filter((userId) => userId !== currentUserId);\n return reactions.filter((r) => r.key !== emojiKey)\n .concat(reaction.userIds.length > 0 ? reaction : []);\n });\n } else {\n setReactions((reactions) => {\n const reaction = reactions.find(({ key }) => key === emojiKey) ?? {\n key: emojiKey,\n userIds: [],\n };\n reaction.userIds.push(currentUserId);\n return reactions.filter((r) => r.key !== emojiKey).concat(reaction);\n });\n }\n }}\n />\n \n \n )\n}"}},SampleEmojiReactions.parameters),SampleEmojiReactions.__docgenInfo={description:"",methods:[],displayName:"SampleEmojiReactions"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/EmojiReactions/stories/EmojiReactions.stories.js"]={name:"SampleEmojiReactions",docgenInfo:SampleEmojiReactions.__docgenInfo,path:"src/ui/EmojiReactions/stories/EmojiReactions.stories.js"})},"./src/ui/FeedbackIconButton/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/FeedbackIconButton/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/FileMessageItemBody/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/FileMessageItemBody/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/FileMessageItemBody/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return FileMessageItemBody}));__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./src/ui/FileMessageItemBody/index.scss");var react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__),_Label__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/ui/Label/index.tsx"),_Icon__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/ui/Icon/index.tsx"),_TextButton__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/ui/TextButton/index.tsx"),_utils__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/utils/index.ts"),_utils_color__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/utils/color.ts"),_lib_MediaQueryContext__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/lib/MediaQueryContext.tsx");function FileMessageItemBody(_ref){var _message$reactions,className=_ref.className,message=_ref.message,_ref$isByMe=_ref.isByMe,isByMe=void 0!==_ref$isByMe&&_ref$isByMe,_ref$mouseHover=_ref.mouseHover,mouseHover=void 0!==_ref$mouseHover&&_ref$mouseHover,_ref$isReactionEnable=_ref.isReactionEnabled,isReactionEnabled=void 0!==_ref$isReactionEnable&&_ref$isReactionEnable,_ref$truncateLimit=_ref.truncateLimit,truncateLimit=void 0===_ref$truncateLimit?null:_ref$truncateLimit,isMobile=Object(_lib_MediaQueryContext__WEBPACK_IMPORTED_MODULE_8__.b)().isMobile,truncateMaxNum=truncateLimit||(isMobile?20:null);return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div",{className:Object(_utils__WEBPACK_IMPORTED_MODULE_6__.i)([className,"sendbird-file-message-item-body",isByMe?"outgoing":"incoming",mouseHover?"mouse-hover":"",isReactionEnabled&&(null==message||null===(_message$reactions=message.reactions)||void 0===_message$reactions?void 0:_message$reactions.length)>0?"reactions":""])},react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div",{className:"sendbird-file-message-item-body__file-icon"},react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_4__.c,{className:"sendbird-file-message-item-body__file-icon__icon",type:{IMAGE:_Icon__WEBPACK_IMPORTED_MODULE_4__.b.PHOTO,VIDEO:_Icon__WEBPACK_IMPORTED_MODULE_4__.b.PLAY,AUDIO:_Icon__WEBPACK_IMPORTED_MODULE_4__.b.FILE_AUDIO,GIF:_Icon__WEBPACK_IMPORTED_MODULE_4__.b.GIF,OTHERS:_Icon__WEBPACK_IMPORTED_MODULE_4__.b.FILE_DOCUMENT}[Object(_utils__WEBPACK_IMPORTED_MODULE_6__.r)(null==message?void 0:message.type)],fillColor:_Icon__WEBPACK_IMPORTED_MODULE_4__.a.PRIMARY,width:"24px",height:"24px"})),react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_TextButton__WEBPACK_IMPORTED_MODULE_5__.a,{className:"sendbird-file-message-item-body__file-name",onClick:function onClick(){window.open(null==message?void 0:message.url)},color:isByMe?_utils_color__WEBPACK_IMPORTED_MODULE_7__.a.ONCONTENT_1:_utils_color__WEBPACK_IMPORTED_MODULE_7__.a.ONBACKGROUND_1},react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_Label__WEBPACK_IMPORTED_MODULE_3__.d,{className:"sendbird-file-message-item-body__file-name__text",type:_Label__WEBPACK_IMPORTED_MODULE_3__.c.BODY_1,color:isByMe?_Label__WEBPACK_IMPORTED_MODULE_3__.a.ONCONTENT_1:_Label__WEBPACK_IMPORTED_MODULE_3__.a.ONBACKGROUND_1},Object(_utils__WEBPACK_IMPORTED_MODULE_6__.ab)((null==message?void 0:message.name)||(null==message?void 0:message.url),truncateMaxNum))))}try{FileMessageItemBody.displayName="FileMessageItemBody",FileMessageItemBody.__docgenInfo={description:"",displayName:"FileMessageItemBody",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string | string[]"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"FileMessage"}},isByMe:{defaultValue:{value:"false"},description:"",name:"isByMe",required:!1,type:{name:"boolean"}},mouseHover:{defaultValue:{value:"false"},description:"",name:"mouseHover",required:!1,type:{name:"boolean"}},isReactionEnabled:{defaultValue:{value:"false"},description:"",name:"isReactionEnabled",required:!1,type:{name:"boolean"}},truncateLimit:{defaultValue:{value:"null"},description:"",name:"truncateLimit",required:!1,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/FileMessageItemBody/index.tsx#FileMessageItemBody"]={docgenInfo:FileMessageItemBody.__docgenInfo,name:"FileMessageItemBody",path:"src/ui/FileMessageItemBody/index.tsx#FileMessageItemBody"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/FileMessageItemBody/stories/FileMessageItemBody.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return FileMessageItemBody_stories_WithControl})),__webpack_require__.d(__webpack_exports__,"withText",(function(){return FileMessageItemBody_stories_withText}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var FileMessageItemBody=__webpack_require__("./src/ui/FileMessageItemBody/index.tsx"),dummyFileMessageImage={messageId:15814617,messageType:"file",channelUrl:"sendbird_group_channel_11985956_fa67b79d39e6aa5abbeda4413cde24ce1685eedb",data:"",customType:"",createdAt:1583104552977,updatedAt:0,channelType:"group",metaArrays:[],reactions:[],mentionType:"users",mentionedUsers:[],url:"72b35fef-acda-4e32-123323456789973567890dfvgbhnjmkiytdxbna0e4-37e1226b0615.pdf",name:"",size:0,type:"image/jpg",thumbnails:[],sender:{nickname:"ME",profileUrl:"https://static.sendbird.com/sample/profiles/profile_19_512px.png",userId:"6e3053ba-c47b-47dc-bb9a-5814091f9553",connectionStatus:"nonavailable",lastSeenAt:0,isActive:!0,friendDiscoveryKey:null,friendName:null,_preferredLanguages:null,isBlockedByMe:!1},reqId:"1583104547956",requireAuth:!1,requestState:"succeeded",requestedMentionUserIds:[],errorCode:0},dummyFileMessageAudio={messageId:15814617,messageType:"file",channelUrl:"sendbird_group_channel_11985956_fa67b79d39e6aa5abbeda4413cde24ce1685eedb",data:"",customType:"",createdAt:1583104552977,updatedAt:0,channelType:"group",metaArrays:[],reactions:[],mentionType:"users",mentionedUsers:[],url:"72b35fef-acda-4e32-123323456789973567890dfvgbhnjmkiytdxbna0e4-37e1226b0615.mp3",name:"",size:0,type:"audio/mp3",thumbnails:[],sender:{nickname:"ME",profileUrl:"https://static.sendbird.com/sample/profiles/profile_19_512px.png",userId:"6e3053ba-c47b-47dc-bb9a-5814091f9553",connectionStatus:"nonavailable",lastSeenAt:0,isActive:!0,friendDiscoveryKey:null,friendName:null,_preferredLanguages:null,isBlockedByMe:!1},reqId:"1583104547956",requireAuth:!1,requestState:"succeeded",requestedMentionUserIds:[],errorCode:0},dummyFileMessageVideo={messageId:15814617,messageType:"file",channelUrl:"sendbird_group_channel_11985956_fa67b79d39e6aa5abbeda4413cde24ce1685eedb",data:"",customType:"",createdAt:1583104552977,updatedAt:0,channelType:"group",metaArrays:[],reactions:[],mentionType:"users",mentionedUsers:[],url:"72b35fef-acda-4e32-123323456789973567890dfvgbhnjmkiytdxbna0e4-37e1226b0615.mp3",name:"",size:0,type:"video/mp4",thumbnails:[],sender:{nickname:"ME",profileUrl:"https://static.sendbird.com/sample/profiles/profile_19_512px.png",userId:"6e3053ba-c47b-47dc-bb9a-5814091f9553",connectionStatus:"nonavailable",lastSeenAt:0,isActive:!0,friendDiscoveryKey:null,friendName:null,_preferredLanguages:null,isBlockedByMe:!1},reqId:"1583104547956",requireAuth:!1,requestState:"succeeded",requestedMentionUserIds:[],errorCode:0},dummyFileMessageDocument={messageId:15814617,messageType:"file",channelUrl:"sendbird_group_channel_11985956_fa67b79d39e6aa5abbeda4413cde24ce1685eedb",data:"",customType:"",createdAt:1583104552977,updatedAt:0,channelType:"group",metaArrays:[],reactions:[],mentionType:"users",mentionedUsers:[],url:"72b35fef-acda-4e32-123323456789973567890dfvgbhnjmkiytdxbna0e4-37e1226b0615.mp3",name:"",size:0,type:"video",thumbnails:[],sender:{nickname:"ME",profileUrl:"https://static.sendbird.com/sample/profiles/profile_19_512px.png",userId:"6e3053ba-c47b-47dc-bb9a-5814091f9553",connectionStatus:"nonavailable",lastSeenAt:0,isActive:!0,friendDiscoveryKey:null,friendName:null,_preferredLanguages:null,isBlockedByMe:!1},reqId:"1583104547956",requireAuth:!1,requestState:"succeeded",requestedMentionUserIds:[],errorCode:0},jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),FileMessageItemBody_stories_WithControl=(__webpack_exports__.default={title:"@sendbird/uikit-react/ui/FileMessageItemBody",component:FileMessageItemBody.a,parameters:{docs:{description:{component:'\n `import FileMessageItemBody from "@sendbird/uikit-react/ui/FileMessageItemBody";`\n'}}}},function WithControl(arg){return Object(jsx_runtime.jsx)(FileMessageItemBody.a,Object.assign({message:dummyFileMessageImage},arg))});FileMessageItemBody_stories_WithControl.displayName="WithControl";var FileMessageItemBody_stories_withText=function withText(){return Object(jsx_runtime.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[Object(jsx_runtime.jsx)(FileMessageItemBody.a,{message:dummyFileMessageImage}),Object(jsx_runtime.jsx)("br",{}),Object(jsx_runtime.jsx)(FileMessageItemBody.a,{message:dummyFileMessageImage,isByMe:!0}),Object(jsx_runtime.jsx)("br",{}),Object(jsx_runtime.jsx)(FileMessageItemBody.a,{message:dummyFileMessageAudio}),Object(jsx_runtime.jsx)("br",{}),Object(jsx_runtime.jsx)(FileMessageItemBody.a,{message:dummyFileMessageAudio,isByMe:!0}),Object(jsx_runtime.jsx)("br",{}),Object(jsx_runtime.jsx)(FileMessageItemBody.a,{message:dummyFileMessageVideo}),Object(jsx_runtime.jsx)("br",{}),Object(jsx_runtime.jsx)(FileMessageItemBody.a,{message:dummyFileMessageVideo,isByMe:!0}),Object(jsx_runtime.jsx)("br",{}),Object(jsx_runtime.jsx)(FileMessageItemBody.a,{message:dummyFileMessageDocument}),Object(jsx_runtime.jsx)("br",{}),Object(jsx_runtime.jsx)(FileMessageItemBody.a,{message:dummyFileMessageDocument,isByMe:!0})]})};FileMessageItemBody_stories_withText.displayName="withText",FileMessageItemBody_stories_WithControl.parameters=Object.assign({storySource:{source:"(arg) => (\n \n)"}},FileMessageItemBody_stories_WithControl.parameters),FileMessageItemBody_stories_withText.parameters=Object.assign({storySource:{source:"() => (\n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n)"}},FileMessageItemBody_stories_withText.parameters),FileMessageItemBody_stories_WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/FileMessageItemBody/stories/FileMessageItemBody.stories.js"]={name:"WithControl",docgenInfo:FileMessageItemBody_stories_WithControl.__docgenInfo,path:"src/ui/FileMessageItemBody/stories/FileMessageItemBody.stories.js"}),FileMessageItemBody_stories_withText.__docgenInfo={description:"",methods:[],displayName:"withText"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/FileMessageItemBody/stories/FileMessageItemBody.stories.js"]={name:"withText",docgenInfo:FileMessageItemBody_stories_withText.__docgenInfo,path:"src/ui/FileMessageItemBody/stories/FileMessageItemBody.stories.js"})},"./src/ui/FileViewer/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/FileViewer/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/FileViewer/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return FileViewer_FileViewer}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./src/ui/FileViewer/index.scss");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),react_dom=__webpack_require__("./node_modules/react-dom/index.js"),LocalizationContext=__webpack_require__("./src/lib/LocalizationContext.tsx"),useModal=__webpack_require__("./src/hooks/useModal/index.tsx"),utils=__webpack_require__("./src/utils/index.ts"),utils_utils=__webpack_require__("./src/utils/utils.ts"),Avatar=__webpack_require__("./src/ui/Avatar/index.tsx"),Label=__webpack_require__("./src/ui/Label/index.tsx"),Icon=__webpack_require__("./src/ui/Icon/index.tsx"),types=__webpack_require__("./src/ui/FileViewer/types.ts");function DeleteButton(props){if(props.viewerType!==types.a.MULTI){var onDelete=props.onDelete,isByMe=props.isByMe,disableDelete=props.disableDelete,className=props.className;return isByMe?react_default.a.createElement("div",{className:"sendbird-fileviewer__header__right__actions__delete ".concat(className)},react_default.a.createElement(Icon.c,{className:disableDelete?"disabled":"",type:Icon.b.DELETE,fillColor:disableDelete?Icon.a.GRAY:Icon.a.ON_BACKGROUND_1,height:"24px",width:"24px",onClick:function onClick(e){disableDelete||null==onDelete||onDelete(e)}})):react_default.a.createElement(react_default.a.Fragment,null)}return react_default.a.createElement(react_default.a.Fragment,null)}try{DeleteButton.displayName="DeleteButton",DeleteButton.__docgenInfo={description:"",displayName:"DeleteButton",props:{viewerType:{defaultValue:null,description:"",name:"viewerType",required:!1,type:{name:"enum",value:[{value:'"SINGLE"'},{value:'"MULTI"'}]}},isByMe:{defaultValue:null,description:"",name:"isByMe",required:!1,type:{name:"boolean"}},disableDelete:{defaultValue:null,description:"",name:"disableDelete",required:!1,type:{name:"boolean"}},onDelete:{defaultValue:null,description:"",name:"onDelete",required:!0,type:{name:"(e: MouseEvent) => void"}},profileUrl:{defaultValue:null,description:"",name:"profileUrl",required:!0,type:{name:"string"}},nickname:{defaultValue:null,description:"",name:"nickname",required:!0,type:{name:"string"}},name:{defaultValue:null,description:"",name:"name",required:!0,type:{name:"string"}},type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"string"}},url:{defaultValue:null,description:"",name:"url",required:!0,type:{name:"string"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!0,type:{name:"(e: MouseEvent | KeyboardEvent) => void"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},fileInfoList:{defaultValue:null,description:"",name:"fileInfoList",required:!0,type:{name:"FileInfo[]"}},currentIndex:{defaultValue:null,description:"",name:"currentIndex",required:!0,type:{name:"number"}},onClickLeft:{defaultValue:null,description:"",name:"onClickLeft",required:!0,type:{name:"() => void"}},onClickRight:{defaultValue:null,description:"",name:"onClickRight",required:!0,type:{name:"() => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/FileViewer/DeleteButton.tsx#DeleteButton"]={docgenInfo:DeleteButton.__docgenInfo,name:"DeleteButton",path:"src/ui/FileViewer/DeleteButton.tsx#DeleteButton"})}catch(__react_docgen_typescript_loader_error){}var consts=__webpack_require__("./src/utils/consts.ts");function Slider(props){if(props.viewerType===types.a.MULTI){var onClickLeft=props.onClickLeft,onClickRight=props.onClickRight;return react_default.a.createElement("div",{className:"sendbird-file-viewer-slider"},react_default.a.createElement("div",{className:"sendbird-file-viewer-arrow--left"},react_default.a.createElement(Icon.c,{type:Icon.b.SLIDE_LEFT,fillColor:Icon.a.ON_BACKGROUND_1,height:consts.m,width:consts.m,onClick:function onClick(e){null==onClickLeft||onClickLeft(),e.stopPropagation()}})),react_default.a.createElement("div",{className:"sendbird-file-viewer-arrow--right"},react_default.a.createElement(Icon.c,{type:Icon.b.SLIDE_LEFT,fillColor:Icon.a.ON_BACKGROUND_1,height:consts.m,width:consts.m,onClick:function onClick(e){e.stopPropagation(),null==onClickRight||onClickRight()}})))}return react_default.a.createElement(react_default.a.Fragment,null)}try{Slider.displayName="Slider",Slider.__docgenInfo={description:"",displayName:"Slider",props:{viewerType:{defaultValue:null,description:"",name:"viewerType",required:!1,type:{name:"enum",value:[{value:'"SINGLE"'},{value:'"MULTI"'}]}},isByMe:{defaultValue:null,description:"",name:"isByMe",required:!1,type:{name:"boolean"}},disableDelete:{defaultValue:null,description:"",name:"disableDelete",required:!1,type:{name:"boolean"}},onDelete:{defaultValue:null,description:"",name:"onDelete",required:!0,type:{name:"(e: MouseEvent) => void"}},profileUrl:{defaultValue:null,description:"",name:"profileUrl",required:!0,type:{name:"string"}},nickname:{defaultValue:null,description:"",name:"nickname",required:!0,type:{name:"string"}},name:{defaultValue:null,description:"",name:"name",required:!0,type:{name:"string"}},type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"string"}},url:{defaultValue:null,description:"",name:"url",required:!0,type:{name:"string"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!0,type:{name:"(e: MouseEvent | KeyboardEvent) => void"}},fileInfoList:{defaultValue:null,description:"",name:"fileInfoList",required:!0,type:{name:"FileInfo[]"}},currentIndex:{defaultValue:null,description:"",name:"currentIndex",required:!0,type:{name:"number"}},onClickLeft:{defaultValue:null,description:"",name:"onClickLeft",required:!0,type:{name:"() => void"}},onClickRight:{defaultValue:null,description:"",name:"onClickRight",required:!0,type:{name:"() => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/FileViewer/Slider.tsx#Slider"]={docgenInfo:Slider.__docgenInfo,name:"Slider",path:"src/ui/FileViewer/Slider.tsx#Slider"})}catch(__react_docgen_typescript_loader_error){}var useKeyDown=__webpack_require__("./src/hooks/useKeyDown/useKeyDown.ts");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i0,onClose:onClose,onDelete:onDelete||utils_utils.b}),document.getElementById(useModal.b))}return react_default.a.createElement(react_default.a.Fragment,null)}try{FileViewer_FileViewer.displayName="FileViewer",FileViewer_FileViewer.__docgenInfo={description:"",displayName:"FileViewer",props:{message:{defaultValue:null,description:"",name:"message",required:!1,type:{name:"FileMessage | MultipleFilesMessage"}},statefulFileInfoList:{defaultValue:{value:"[]"},description:"",name:"statefulFileInfoList",required:!1,type:{name:"UploadedFileInfoWithUpload[]"}},isByMe:{defaultValue:{value:"false"},description:"",name:"isByMe",required:!1,type:{name:"boolean"}},currentIndex:{defaultValue:null,description:"",name:"currentIndex",required:!1,type:{name:"number"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!0,type:{name:"(e: MouseEvent) => void"}},onDelete:{defaultValue:null,description:"",name:"onDelete",required:!1,type:{name:"(e: MouseEvent) => void"}},onClickLeft:{defaultValue:null,description:"",name:"onClickLeft",required:!1,type:{name:"() => void"}},onClickRight:{defaultValue:null,description:"",name:"onClickRight",required:!1,type:{name:"() => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/FileViewer/index.tsx#FileViewer"]={docgenInfo:FileViewer_FileViewer.__docgenInfo,name:"FileViewer",path:"src/ui/FileViewer/index.tsx#FileViewer"})}catch(__react_docgen_typescript_loader_error){}try{FileViewer_FileViewerComponent.displayName="FileViewerComponent",FileViewer_FileViewerComponent.__docgenInfo={description:"",displayName:"FileViewerComponent",props:{viewerType:{defaultValue:null,description:"",name:"viewerType",required:!1,type:{name:"enum",value:[{value:'"SINGLE"'},{value:'"MULTI"'}]}},isByMe:{defaultValue:null,description:"",name:"isByMe",required:!1,type:{name:"boolean"}},disableDelete:{defaultValue:null,description:"",name:"disableDelete",required:!1,type:{name:"boolean"}},onDelete:{defaultValue:null,description:"",name:"onDelete",required:!0,type:{name:"(e: MouseEvent) => void"}},profileUrl:{defaultValue:null,description:"",name:"profileUrl",required:!0,type:{name:"string"}},nickname:{defaultValue:null,description:"",name:"nickname",required:!0,type:{name:"string"}},name:{defaultValue:null,description:"",name:"name",required:!0,type:{name:"string"}},type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"string"}},url:{defaultValue:null,description:"",name:"url",required:!0,type:{name:"string"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!0,type:{name:"(e: MouseEvent | KeyboardEvent) => void"}},fileInfoList:{defaultValue:null,description:"",name:"fileInfoList",required:!0,type:{name:"FileInfo[]"}},currentIndex:{defaultValue:null,description:"",name:"currentIndex",required:!0,type:{name:"number"}},onClickLeft:{defaultValue:null,description:"",name:"onClickLeft",required:!0,type:{name:"() => void"}},onClickRight:{defaultValue:null,description:"",name:"onClickRight",required:!0,type:{name:"() => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/FileViewer/index.tsx#FileViewerComponent"]={docgenInfo:FileViewer_FileViewerComponent.__docgenInfo,name:"FileViewerComponent",path:"src/ui/FileViewer/index.tsx#FileViewerComponent"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/FileViewer/stories/FileViewer.stories.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return FileViewer_stories_WithControl})),__webpack_require__.d(__webpack_exports__,"withImageGrid",(function(){return FileViewer_stories_withImageGrid}));__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),FileViewer=__webpack_require__("./src/ui/FileViewer/index.tsx"),PROFILE_FILE_INFO={name:"profile image",url:"https://static.sendbird.com/sample/profiles/profile_12_512px.png",type:"image/png"},EARTH_FILE_INFO={name:"earth image",url:"https://sendbird-upload.s3.amazonaws.com/2D7B4CDB-932F-4082-9B09-A1153792DC8D/upload/n/8af7775ca1d34d7681d7e61b56067136.jpg",type:"image/jpg"},FILE_INFO_LIST=[PROFILE_FILE_INFO,EARTH_FILE_INFO,PROFILE_FILE_INFO,EARTH_FILE_INFO,PROFILE_FILE_INFO],msg0={messageId:16131097,messageType:"file",channelUrl:"sendbird_group_channel_12373168_f986d10807a7cc7c184e22ca8ac2137bc32bc57c",data:"",customType:"",createdAt:1583415812675,updatedAt:0,channelType:"group",mentionType:"users",url:"https://static.sendbird.com/sample/profiles/profile_15_512px.png",name:"sent-mail (1).png",size:9250,type:"image/png",sender:{nickname:"hoon102",profileUrl:"https://static.sendbird.com/sample/profiles/profile_15_512px.png",userId:"hoon102",connectionStatus:"nonavailable",lastSeenAt:0},reqId:"1583413644783",requireAuth:!1,requestState:"succeeded",errorCode:0,isFileMessage:function isFileMessage(){return!0},isMultipleFilesMessage:function isMultipleFilesMessage(){return!1}},msg2={messageId:16134940,messageType:"file",channelUrl:"sendbird_group_channel_12373168_f986d10807a7cc7c184e22ca8ac2137bc32bc57c",data:"",customType:"",createdAt:1583419511455,updatedAt:0,channelType:"group",mentionType:"users",fileInfoList:FILE_INFO_LIST.map((function(fileInfo){return{fileName:fileInfo.name,mimeType:fileInfo.type,url:fileInfo.url}})),sender:{nickname:"hoon100",profileUrl:"https://static.sendbird.com/sample/profiles/profile_34_512px.png",userId:"hoon100",connectionStatus:"nonavailable",lastSeenAt:0},reqId:"1583418579600",requireAuth:!1,requestState:"succeeded",errorCode:0,isFileMessage:function isFileMessage(){return!1},isMultipleFilesMessage:function isMultipleFilesMessage(){return!0}},ImageRenderer=__webpack_require__("./src/ui/ImageRenderer/index.tsx"),Icon=__webpack_require__("./src/ui/Icon/index.tsx"),ImageGrid=__webpack_require__("./src/ui/ImageGrid/index.tsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;rarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i-1&&react_default.a.createElement(FileViewer.a,{message:msg2,currentIndex:currentIndex,onClickLeft:function onClickLeft(){setCurrentIndex(0===currentIndex?fileInfoList.length-1:currentIndex-1)},onClickRight:function onClickRight(){setCurrentIndex(currentIndex===fileInfoList.length-1?0:currentIndex+1)},onClose:function onClose(){setCurrentIndex(-1)}}),react_default.a.createElement(ImageGrid.a,null,fileInfoList.map((function(fileInfo,index){return react_default.a.createElement("div",{onClick:function onClick(){return setCurrentIndex(index)},style:{cursor:"pointer"},key:"image-renderer-".concat(index)},react_default.a.createElement(ImageRenderer.a,{url:fileInfo.url,width:"200px",height:"200px",borderRadius:"6px",defaultComponent:react_default.a.createElement(Icon.c,{type:Icon.b.ADD,fillColor:Icon.a.PRIMARY})}))}))))};FileViewer_stories_WithControl.parameters=_objectSpread({storySource:{source:"(arg) => (\n null}\n onDelete={() => null}\n message={msg0 as unknown as FileMessage}\n />\n)"}},FileViewer_stories_WithControl.parameters),FileViewer_stories_withImageGrid.parameters=_objectSpread({storySource:{source:"() => {\n const [fileInfoList] = useState(FILE_INFO_LIST);\n const [currentIndex, setCurrentIndex] = useState(-1);\n\n function onClose() {\n setCurrentIndex(-1);\n }\n\n // memoize these if you want to super optimize - but this is unnecessary\n // const onClickLeft = useCallback(() => {\n // setCurrentIndex((idx) => {\n // return idx === 0\n // ? fileInfoList.length - 1\n // : idx - 1;\n // });\n // }, [setCurrentIndex, fileInfoList.length]);\n\n function onClickLeft() {\n setCurrentIndex(\n currentIndex === 0\n ? fileInfoList.length - 1\n : currentIndex - 1,\n );\n }\n\n function onClickRight() {\n setCurrentIndex(\n currentIndex === fileInfoList.length - 1\n ? 0\n : currentIndex + 1,\n );\n }\n\n return (\n <>\n {\n currentIndex > -1 && \n }\n \n {\n fileInfoList.map((fileInfo: FileInfo, index: number) => {\n return setCurrentIndex(index)}\n style={{\n cursor: 'pointer',\n }}\n key={`image-renderer-${index}`}\n >\n \n }\n />\n ;\n })\n }\n \n \n );\n}"}},FileViewer_stories_withImageGrid.parameters);try{FileViewer_stories_WithControl.displayName="WithControl",FileViewer_stories_WithControl.__docgenInfo={description:"",displayName:"WithControl",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/FileViewer/stories/FileViewer.stories.tsx#WithControl"]={docgenInfo:FileViewer_stories_WithControl.__docgenInfo,name:"WithControl",path:"src/ui/FileViewer/stories/FileViewer.stories.tsx#WithControl"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/FileViewer/types.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return isImage})),__webpack_require__.d(__webpack_exports__,"c",(function(){return isVideo})),__webpack_require__.d(__webpack_exports__,"a",(function(){return ViewerTypes}));__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _defineProperty(obj,key,value){return(key=function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:String(i)}(key))in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var SUPPORTED_MIMES={IMAGE:["image/jpeg","image/jpg","image/png","image/gif","image/svg+xml","image/webp"],VIDEO:["video/mpeg","video/ogg","video/webm","video/mp4"]},isImage=function isImage(type){return SUPPORTED_MIMES.IMAGE.indexOf(type)>=0},isVideo=function isVideo(type){return SUPPORTED_MIMES.VIDEO.indexOf(type)>=0},ViewerTypes=(function _objectSpread(e){for(var r=1;rarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i { /** noop * */ }"},description:"",name:"onClick",required:!1,type:{name:"MouseEventHandler & KeyboardEventHandler"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Icon/index.tsx#Icon"]={docgenInfo:Icon_Icon.__docgenInfo,name:"Icon",path:"src/ui/Icon/index.tsx#Icon"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/Icon/stories/Icon.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return WithControl})),__webpack_require__.d(__webpack_exports__,"iconListDefault",(function(){return iconListDefault})),__webpack_require__.d(__webpack_exports__,"iconListPrimary",(function(){return iconListPrimary})),__webpack_require__.d(__webpack_exports__,"iconListSecondary",(function(){return iconListSecondary})),__webpack_require__.d(__webpack_exports__,"iconListContent",(function(){return iconListContent})),__webpack_require__.d(__webpack_exports__,"iconListContentInverse",(function(){return iconListContentInverse})),__webpack_require__.d(__webpack_exports__,"iconOnBackground2",(function(){return iconOnBackground2})),__webpack_require__.d(__webpack_exports__,"iconOnBackground3",(function(){return iconOnBackground3})),__webpack_require__.d(__webpack_exports__,"iconError",(function(){return iconError})),__webpack_require__.d(__webpack_exports__,"iconGray",(function(){return iconGray}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/react/index.js");var _index_tsx__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./src/ui/Icon/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/react/jsx-runtime.js");function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i (\n \n)"}},WithControl.parameters),iconListDefault.parameters=Object.assign({storySource:{source:"() => [\n ...Object.keys(IconTypes).map(\n type => (\n
\n

\n {type}\n

\n \n
\n )\n )\n]"}},iconListDefault.parameters),iconListPrimary.parameters=Object.assign({storySource:{source:"() => [\n ...Object.keys(IconTypes).map(\n type => (\n
\n

\n {type}\n

\n \n
\n )\n )\n]"}},iconListPrimary.parameters),iconListSecondary.parameters=Object.assign({storySource:{source:"() => [\n ...Object.keys(IconTypes).map(\n type => (\n
\n

\n {type}\n

\n \n
\n )\n )\n]"}},iconListSecondary.parameters),iconListContent.parameters=Object.assign({storySource:{source:"() => [\n ...Object.keys(IconTypes).map(\n type => (\n
\n

\n {type}\n

\n \n
\n )\n )\n]"}},iconListContent.parameters),iconListContentInverse.parameters=Object.assign({storySource:{source:"() => [\n ...Object.keys(IconTypes).map(\n type => (\n
\n

\n {type}\n

\n \n
\n )\n )\n]"}},iconListContentInverse.parameters),iconOnBackground2.parameters=Object.assign({storySource:{source:"() => [\n ...Object.keys(IconTypes).map(\n type => (\n
\n

\n {type}\n

\n \n
\n )\n )\n]"}},iconOnBackground2.parameters),iconOnBackground3.parameters=Object.assign({storySource:{source:"() => [\n ...Object.keys(IconTypes).map(\n type => (\n
\n

\n {type}\n

\n \n
\n )\n )\n]"}},iconOnBackground3.parameters),iconError.parameters=Object.assign({storySource:{source:"() => [\n ...Object.keys(IconTypes).map(\n type => (\n
\n

\n {type}\n

\n \n
\n )\n )\n]"}},iconError.parameters),iconGray.parameters=Object.assign({storySource:{source:"() => [\n ...Object.keys(IconTypes).map(\n type => (\n
\n

\n {type}\n

\n \n
\n )\n )\n]"}},iconGray.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Icon/stories/Icon.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/Icon/stories/Icon.stories.js"})},"./src/ui/IconButton/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/IconButton/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/IconButton/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var react__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_20___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_20__);__webpack_require__("./src/ui/IconButton/index.scss");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;rarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i) => void"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"(e: MouseEvent) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/IconButton/index.tsx#IconButton"]={docgenInfo:IconButton.__docgenInfo,name:"IconButton",path:"src/ui/IconButton/index.tsx#IconButton"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/IconButton/stories/index.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return WithControl})),__webpack_require__.d(__webpack_exports__,"simpleIconButton",(function(){return simpleIconButton}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _index__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/IconButton/index.tsx"),_svgs_icon_create_svg__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/svgs/icon-create.svg"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/IconButton",component:_index__WEBPACK_IMPORTED_MODULE_2__.a,parameters:{docs:{description:{component:'\n `import IconButton from "@sendbird/uikit-react/ui/IconButton";`\n'}}}};var WithControl=function WithControl(arg){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,Object.assign({onClick:function onClick(){return alert("clicked the button")}},arg,{children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_svgs_icon_create_svg__WEBPACK_IMPORTED_MODULE_3__.a,{})}))};WithControl.displayName="WithControl";var simpleIconButton=function simpleIconButton(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{onClick:function onClick(){return alert("clicked the button")},children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_svgs_icon_create_svg__WEBPACK_IMPORTED_MODULE_3__.a,{})})};simpleIconButton.displayName="simpleIconButton",WithControl.parameters=Object.assign({storySource:{source:'(arg) => (\n alert("clicked the button")} {...arg}>\n \n \n)'}},WithControl.parameters),simpleIconButton.parameters=Object.assign({storySource:{source:'() => (\n alert("clicked the button")}>\n \n \n)'}},simpleIconButton.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/IconButton/stories/index.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/IconButton/stories/index.stories.js"}),simpleIconButton.__docgenInfo={description:"",methods:[],displayName:"simpleIconButton"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/IconButton/stories/index.stories.js"]={name:"simpleIconButton",docgenInfo:simpleIconButton.__docgenInfo,path:"src/ui/IconButton/stories/index.stories.js"})},"./src/ui/ImageGrid/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/ImageGrid/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/ImageGrid/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return ImageGrid}));var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__),_utils__WEBPACK_IMPORTED_MODULE_2__=(__webpack_require__("./src/ui/ImageGrid/index.scss"),__webpack_require__("./src/utils/index.ts"));function ImageGrid(_ref){var _message$reactions,children=_ref.children,className=_ref.className,message=_ref.message,isReactionEnabled=_ref.isReactionEnabled;return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{className:"sendbird-image-grid-wrap"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{className:Object(_utils__WEBPACK_IMPORTED_MODULE_2__.i)([className,"sendbird-image-grid",isReactionEnabled&&(null==message||null===(_message$reactions=message.reactions)||void 0===_message$reactions?void 0:_message$reactions.length)>0?"reactions":""])},children))}try{ImageGrid.displayName="ImageGrid",ImageGrid.__docgenInfo={description:"",displayName:"ImageGrid",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"MultipleFilesMessage"}},isReactionEnabled:{defaultValue:null,description:"",name:"isReactionEnabled",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ImageGrid/index.tsx#ImageGrid"]={docgenInfo:ImageGrid.__docgenInfo,name:"ImageGrid",path:"src/ui/ImageGrid/index.tsx#ImageGrid"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/ImageGrid/stories/ImageGrid.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"withImages",(function(){return withImages}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _index_tsx__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/ImageGrid/index.tsx"),_ImageRenderer__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/ui/ImageRenderer/index.tsx"),_Icon__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/ui/Icon/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/react/jsx-runtime.js"),PROFILE_IMAGE="https://static.sendbird.com/sample/profiles/profile_12_512px.png",EARTH_IMAGE="https://sendbird-upload.s3.amazonaws.com/2D7B4CDB-932F-4082-9B09-A1153792DC8D/upload/n/8af7775ca1d34d7681d7e61b56067136.jpg";__webpack_exports__.default={title:"@sendbird/uikit-react/ui/ImageGrid",component:_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,parameters:{docs:{description:{component:'\n `import ImageGrid from "@sendbird/uikit-react/ui/ImageGrid";`\n'}}}};var withImages=function withImages(){var imageRenderers=[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_ImageRenderer__WEBPACK_IMPORTED_MODULE_3__.a,{url:PROFILE_IMAGE,width:"200px",height:"200px",borderRadius:"6px",defaultComponent:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_Icon__WEBPACK_IMPORTED_MODULE_4__.c,{type:_Icon__WEBPACK_IMPORTED_MODULE_4__.b.ADD,fillColor:_Icon__WEBPACK_IMPORTED_MODULE_4__.a.PRIMARY})}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_ImageRenderer__WEBPACK_IMPORTED_MODULE_3__.a,{url:EARTH_IMAGE,width:"200px",height:"200px",borderRadius:"6px",defaultComponent:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_Icon__WEBPACK_IMPORTED_MODULE_4__.c,{type:_Icon__WEBPACK_IMPORTED_MODULE_4__.b.ADD,fillColor:_Icon__WEBPACK_IMPORTED_MODULE_4__.a.PRIMARY})}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_ImageRenderer__WEBPACK_IMPORTED_MODULE_3__.a,{url:EARTH_IMAGE,width:"200px",height:"200px",borderRadius:"6px",defaultComponent:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_Icon__WEBPACK_IMPORTED_MODULE_4__.c,{type:_Icon__WEBPACK_IMPORTED_MODULE_4__.b.ADD,fillColor:_Icon__WEBPACK_IMPORTED_MODULE_4__.a.PRIMARY})}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_ImageRenderer__WEBPACK_IMPORTED_MODULE_3__.a,{url:PROFILE_IMAGE,width:"200px",height:"200px",borderRadius:"6px",defaultComponent:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_Icon__WEBPACK_IMPORTED_MODULE_4__.c,{type:_Icon__WEBPACK_IMPORTED_MODULE_4__.b.ADD,fillColor:_Icon__WEBPACK_IMPORTED_MODULE_4__.a.PRIMARY})}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_ImageRenderer__WEBPACK_IMPORTED_MODULE_3__.a,{url:PROFILE_IMAGE,width:"200px",height:"200px",borderRadius:"6px",defaultComponent:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_Icon__WEBPACK_IMPORTED_MODULE_4__.c,{type:_Icon__WEBPACK_IMPORTED_MODULE_4__.b.ADD,fillColor:_Icon__WEBPACK_IMPORTED_MODULE_4__.a.PRIMARY})})];return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{children:imageRenderers})};withImages.displayName="withImages",withImages.parameters=Object.assign({storySource:{source:"() => {\n const imageRenderers = [\n \n }\n />,\n \n }\n />,\n \n }\n />,\n \n }\n />,\n \n }\n />,\n ];\n return { imageRenderers };\n}"}},withImages.parameters),withImages.__docgenInfo={description:"",methods:[],displayName:"withImages"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ImageGrid/stories/ImageGrid.stories.js"]={name:"withImages",docgenInfo:withImages.__docgenInfo,path:"src/ui/ImageGrid/stories/ImageGrid.stories.js"})},"./src/ui/ImageRenderer/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/ImageRenderer/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/ImageRenderer/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return getBorderRadiusForMultipleImageRenderer}));__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),numberToPx=(__webpack_require__("./src/ui/ImageRenderer/index.scss"),function(value){return"number"==typeof value?"".concat(value,"px"):value});function getDynamicMinLengthInPx(sideLength,maxSideLength,defaultMinLength){var _numberToPx;return"min(".concat(null!=maxSideLength?maxSideLength:defaultMinLength,", ").concat(null!==(_numberToPx=numberToPx(sideLength))&&void 0!==_numberToPx?_numberToPx:defaultMinLength,")")}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&void 0!==arguments[0]&&arguments[0]?"50%":numberToPx(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)}function getBorderRadiusForMultipleImageRenderer(borderRadius,index,totalCount){var value="string"==typeof borderRadius?parseInt(borderRadius,10):borderRadius,lastIndex=totalCount-1,topRight=1===index?2*value:value,bottomRight=index===lastIndex?2*value:value,bottomLeft=index===lastIndex-1?2*value:value;return"".concat(0===index?2*value:value,"px ").concat(topRight,"px ").concat(bottomRight,"px ").concat(bottomLeft,"px")}var ImageRenderer_ImageRenderer=function ImageRenderer(_ref){var _ref$className=_ref.className,className=void 0===_ref$className?"":_ref$className,url=_ref.url,_ref$alt=_ref.alt,alt=void 0===_ref$alt?"":_ref$alt,_ref$width=_ref.width,width=void 0===_ref$width?null:_ref$width,_ref$maxSideLength=_ref.maxSideLength,maxSideLength=void 0===_ref$maxSideLength?null:_ref$maxSideLength,_ref$height=_ref.height,height=void 0===_ref$height?null:_ref$height,_ref$circle=_ref.circle,circle=void 0!==_ref$circle&&_ref$circle,_ref$fixedSize=_ref.fixedSize,fixedSize=void 0!==_ref$fixedSize&&_ref$fixedSize,_ref$placeHolder=_ref.placeHolder,placeHolder=void 0===_ref$placeHolder?null:_ref$placeHolder,_ref$defaultComponent=_ref.defaultComponent,defaultComponent=void 0===_ref$defaultComponent?null:_ref$defaultComponent,_ref$borderRadius=_ref.borderRadius,borderRadius=void 0===_ref$borderRadius?null:_ref$borderRadius,_ref$onLoad=_ref.onLoad,_onLoad=void 0===_ref$onLoad?utils.b:_ref$onLoad,_ref$onError=_ref.onError,_onError=void 0===_ref$onError?utils.b:_ref$onError,shadeOnHover=_ref.shadeOnHover,_ref$isUploaded=_ref.isUploaded,isUploaded=void 0===_ref$isUploaded||_ref$isUploaded,ref=Object(react.useRef)(null),internalUrl=useLazyImageLoader_useLazyImageLoader(ref)?url:null,_useState2=ImageRenderer_slicedToArray(Object(react.useState)(!1),2),defaultComponentVisible=_useState2[0],setDefaultComponentVisible=_useState2[1],_useState4=ImageRenderer_slicedToArray(Object(react.useState)(!0),2),placeholderVisible=_useState4[0],setPlaceholderVisible=_useState4[1],_useDynamicSideLength=function useDynamicSideLength(_ref){var width=_ref.width,height=_ref.height,maxSideLength=_ref.maxSideLength,defaultMinLength=_ref.defaultMinLength;return[Object(react.useMemo)((function(){return getDynamicMinLengthInPx(width,maxSideLength,defaultMinLength)}),[width]),Object(react.useMemo)((function(){return getDynamicMinLengthInPx(height,maxSideLength,defaultMinLength)}),[height])]}({width:width,height:height,maxSideLength:maxSideLength,defaultMinLength:"400px"}),_useDynamicSideLength2=ImageRenderer_slicedToArray(_useDynamicSideLength,2),dynamicMinWidth=_useDynamicSideLength2[0],dynamicMinHeight=_useDynamicSideLength2[1];return dynamicMinWidth&&dynamicMinHeight&&react_default.a.createElement("div",{ref:ref,className:[].concat(_toConsumableArray(Array.isArray(className)?className:[className]),["sendbird-image-renderer"]).join(" "),style:{width:"100%",minWidth:dynamicMinWidth,maxWidth:fixedSize?dynamicMinWidth:"400px",height:dynamicMinHeight}},placeholderVisible&&function renderPlaceholder(){return"function"==typeof placeHolder?placeHolder({style:{width:"100%",minWidth:dynamicMinWidth,maxWidth:fixedSize?dynamicMinWidth:"400px",height:dynamicMinHeight,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center"}}):placeHolder}(),defaultComponentVisible?function renderDefault(){return"function"==typeof defaultComponent?defaultComponent():defaultComponent}():function renderImage(){var backgroundStyle=internalUrl?{backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"cover",backgroundImage:"url(".concat(internalUrl,")")}:{};return react_default.a.createElement("div",{className:"sendbird-image-renderer__image",style:_objectSpread({width:"100%",minWidth:dynamicMinWidth,maxWidth:fixedSize?dynamicMinWidth:"400px",height:dynamicMinHeight,position:"absolute",borderRadius:getBorderRadiusForImageRenderer(circle,borderRadius)},backgroundStyle)})}(),shadeOnHover&&react_default.a.createElement("div",{className:"sendbird-multiple-files-image-renderer__image-cover",style:_objectSpread(_objectSpread({},{borderRadius:getBorderRadiusForImageRenderer(circle,borderRadius)}),isUploaded?{}:{display:"inline-flex"})}),internalUrl&&react_default.a.createElement(ImageRenderer_HiddenImageLoader,{src:internalUrl,alt:alt,onLoadStart:function onLoadStart(){setPlaceholderVisible(!0),setDefaultComponentVisible(!1)},onLoad:function onLoad(){setPlaceholderVisible(!1),setDefaultComponentVisible(!1),_onLoad()},onError:function onError(){setPlaceholderVisible(!1),setDefaultComponentVisible(!0),_onError()}}))},ImageRenderer_HiddenImageLoader=function HiddenImageLoader(props){var src=props.src,alt=props.alt,_props$onLoadStart=props.onLoadStart,onLoadStart=void 0===_props$onLoadStart?utils.b:_props$onLoadStart,_props$onLoad=props.onLoad,_onLoad2=void 0===_props$onLoad?utils.b:_props$onLoad,_props$onError=props.onError,_onError2=void 0===_props$onError?utils.b:_props$onError,reloadCtx=Object(react.useRef)({currSrc:src,prevSrc:src,loadFailure:!1});return reloadCtx.current.currSrc!==src&&(reloadCtx.current.prevSrc=reloadCtx.current.currSrc,reloadCtx.current.currSrc=src),Object(react.useLayoutEffect)((function(){if(src){var sourceChanged=reloadCtx.current.prevSrc!==reloadCtx.current.currSrc,loadFailure=reloadCtx.current.loadFailure;(sourceChanged||loadFailure)&&onLoadStart()}}),[src,navigator.onLine]),react_default.a.createElement("img",{className:"sendbird-image-renderer__hidden-image-loader",src:src,alt:alt,onLoad:function onLoad(){reloadCtx.current.loadFailure=!1,_onLoad2()},onError:function onError(){reloadCtx.current.loadFailure=!0,_onError2()}})};__webpack_exports__.a=ImageRenderer_ImageRenderer;try{ImageRenderer_ImageRenderer.displayName="ImageRenderer",ImageRenderer_ImageRenderer.__docgenInfo={description:"",displayName:"ImageRenderer",props:{className:{defaultValue:{value:""},description:"",name:"className",required:!1,type:{name:"string | string[]"}},url:{defaultValue:null,description:"",name:"url",required:!0,type:{name:"string"}},alt:{defaultValue:{value:""},description:"",name:"alt",required:!1,type:{name:"string"}},width:{defaultValue:{value:"null"},description:"",name:"width",required:!1,type:{name:"string | number"}},maxSideLength:{defaultValue:{value:"null"},description:"",name:"maxSideLength",required:!1,type:{name:"string"}},height:{defaultValue:{value:"null"},description:"",name:"height",required:!1,type:{name:"string | number"}},circle:{defaultValue:{value:"false"},description:"",name:"circle",required:!1,type:{name:"boolean"}},fixedSize:{defaultValue:{value:"false"},description:"",name:"fixedSize",required:!1,type:{name:"boolean"}},placeHolder:{defaultValue:{value:"null"},description:"",name:"placeHolder",required:!1,type:{name:"ReactElement> | ((props: { style: Record; }) => ReactElement>)"}},defaultComponent:{defaultValue:{value:"null"},description:"",name:"defaultComponent",required:!1,type:{name:"ReactElement> | (() => ReactElement>)"}},borderRadius:{defaultValue:{value:"null"},description:"",name:"borderRadius",required:!1,type:{name:"string | number"}},onLoad:{defaultValue:{value:"() => { /** noop * */ }"},description:"",name:"onLoad",required:!1,type:{name:"() => void"}},onError:{defaultValue:{value:"() => { /** noop * */ }"},description:"",name:"onError",required:!1,type:{name:"() => void"}},shadeOnHover:{defaultValue:null,description:"",name:"shadeOnHover",required:!1,type:{name:"boolean"}},isUploaded:{defaultValue:{value:"true"},description:"",name:"isUploaded",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ImageRenderer/index.tsx#ImageRenderer"]={docgenInfo:ImageRenderer_ImageRenderer.__docgenInfo,name:"ImageRenderer",path:"src/ui/ImageRenderer/index.tsx#ImageRenderer"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/ImageRenderer/stories/ImageRenderer.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return WithControl})),__webpack_require__.d(__webpack_exports__,"setDefaultComponent",(function(){return setDefaultComponent})),__webpack_require__.d(__webpack_exports__,"appliedSource",(function(){return appliedSource}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _index__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/ImageRenderer/index.tsx"),_Icon__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/ui/Icon/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/ImageRenderer",component:_index__WEBPACK_IMPORTED_MODULE_2__.a,parameters:{docs:{description:{component:'\n `import ImageRenderer from "@sendbird/uikit-react/ui/ImageRenderer";`\n'}}}};var WithControl=function WithControl(arg){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,Object.assign({},arg,{defaultComponent:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_Icon__WEBPACK_IMPORTED_MODULE_3__.c,{type:_Icon__WEBPACK_IMPORTED_MODULE_3__.b.ADD,fillColor:_Icon__WEBPACK_IMPORTED_MODULE_3__.a.PRIMARY})}))};WithControl.displayName="WithControl";var setDefaultComponent=function setDefaultComponent(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{url:"",width:"36px",height:"36px",defaultComponent:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_Icon__WEBPACK_IMPORTED_MODULE_3__.c,{type:_Icon__WEBPACK_IMPORTED_MODULE_3__.b.ADD,fillColor:_Icon__WEBPACK_IMPORTED_MODULE_3__.a.PRIMARY})})};setDefaultComponent.displayName="setDefaultComponent";var appliedSource=function appliedSource(){return[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{url:"https://static.sendbird.com/sample/profiles/profile_12_512px.png",width:"36px",height:"36px",defaultComponent:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_Icon__WEBPACK_IMPORTED_MODULE_3__.c,{type:_Icon__WEBPACK_IMPORTED_MODULE_3__.b.ADD,fillColor:_Icon__WEBPACK_IMPORTED_MODULE_3__.a.PRIMARY})}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{url:"...",width:"36px",height:"36px",defaultComponent:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_Icon__WEBPACK_IMPORTED_MODULE_3__.c,{type:_Icon__WEBPACK_IMPORTED_MODULE_3__.b.ADD,fillColor:_Icon__WEBPACK_IMPORTED_MODULE_3__.a.PRIMARY})}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{url:"https://sendbird-upload.s3.amazonaws.com/2D7B4CDB-932F-4082-9B09-A1153792DC8D/upload/n/8af7775ca1d34d7681d7e61b56067136.jpg",width:"36px",height:"36px",defaultComponent:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_Icon__WEBPACK_IMPORTED_MODULE_3__.c,{type:_Icon__WEBPACK_IMPORTED_MODULE_3__.b.ADD,fillColor:_Icon__WEBPACK_IMPORTED_MODULE_3__.a.PRIMARY})})]};WithControl.parameters=Object.assign({storySource:{source:"(arg) => (\n \n }\n />\n)"}},WithControl.parameters),setDefaultComponent.parameters=Object.assign({storySource:{source:'() => (\n \n }\n />\n)'}},setDefaultComponent.parameters),appliedSource.parameters=Object.assign({storySource:{source:'() => ([\n \n }\n />,\n \n }\n />,\n \n }\n />,\n])'}},appliedSource.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ImageRenderer/stories/ImageRenderer.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/ImageRenderer/stories/ImageRenderer.stories.js"}),setDefaultComponent.__docgenInfo={description:"",methods:[],displayName:"setDefaultComponent"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ImageRenderer/stories/ImageRenderer.stories.js"]={name:"setDefaultComponent",docgenInfo:setDefaultComponent.__docgenInfo,path:"src/ui/ImageRenderer/stories/ImageRenderer.stories.js"})},"./src/ui/Input/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/Input/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/Input/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return InputLabel}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var react__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_10__),_Label__WEBPACK_IMPORTED_MODULE_12__=(__webpack_require__("./src/ui/Input/index.scss"),__webpack_require__("./src/ui/Label/index.tsx"));function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i (\n \n)"}},WithControl.parameters),simpleInputWithText.parameters=Object.assign({storySource:{source:'() => (\n \n)'}},simpleInputWithText.parameters),longInputWithText.parameters=Object.assign({storySource:{source:'() => (\n \n)'}},longInputWithText.parameters),disabled.parameters=Object.assign({storySource:{source:'() => (\n \n)'}},disabled.parameters),inputWithLabel.parameters=Object.assign({storySource:{source:'() => (\n
\n MyLabel\n \n
\n)'}},inputWithLabel.parameters),refExample.parameters=Object.assign({storySource:{source:'() => {\n const inputEl = useRef(null);\n const [value, setvalue] = useState("initialState");\n const onButtonClick = () => {\n // `current` points to the mounted text input element\n setvalue(inputEl.current.value)\n };\n return (\n <>\n An exmple to get value from input using ref:\n \n \n {value}\n \n );\n}'}},refExample.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Input/stories/Input.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/Input/stories/Input.stories.js"}),simpleInputWithText.__docgenInfo={description:"",methods:[],displayName:"simpleInputWithText"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Input/stories/Input.stories.js"]={name:"simpleInputWithText",docgenInfo:simpleInputWithText.__docgenInfo,path:"src/ui/Input/stories/Input.stories.js"}),longInputWithText.__docgenInfo={description:"",methods:[],displayName:"longInputWithText"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Input/stories/Input.stories.js"]={name:"longInputWithText",docgenInfo:longInputWithText.__docgenInfo,path:"src/ui/Input/stories/Input.stories.js"}),disabled.__docgenInfo={description:"",methods:[],displayName:"disabled"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Input/stories/Input.stories.js"]={name:"disabled",docgenInfo:disabled.__docgenInfo,path:"src/ui/Input/stories/Input.stories.js"}),inputWithLabel.__docgenInfo={description:"",methods:[],displayName:"inputWithLabel"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Input/stories/Input.stories.js"]={name:"inputWithLabel",docgenInfo:inputWithLabel.__docgenInfo,path:"src/ui/Input/stories/Input.stories.js"}),refExample.__docgenInfo={description:"",methods:[],displayName:"refExample"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Input/stories/Input.stories.js"]={name:"refExample",docgenInfo:refExample.__docgenInfo,path:"src/ui/Input/stories/Input.stories.js"})},"./src/ui/Label/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/Label/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/Label/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"c",(function(){return LabelTypography})),__webpack_require__.d(__webpack_exports__,"a",(function(){return LabelColors})),__webpack_require__.d(__webpack_exports__,"b",(function(){return LabelStringSet}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var react__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__),_types__WEBPACK_IMPORTED_MODULE_14__=(__webpack_require__("./src/ui/Label/index.scss"),__webpack_require__("./src/ui/Label/types.ts")),_utils__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./src/ui/Label/utils.ts"),_stringSet__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./src/ui/Label/stringSet.ts");function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i (\n \n)"}},WithControl.parameters),OnBackground_1.parameters=Object.assign({storySource:{source:"() => [\n ...Object.keys(LabelTypography)\n .map(\n type =>\n
\n \n

\n

\n )\n]"}},OnBackground_1.parameters),OnBackground_2.parameters=Object.assign({storySource:{source:"() => [\n ...Object.keys(LabelTypography)\n .map(\n type =>\n
\n \n

\n

\n )\n]"}},OnBackground_2.parameters),OnBackground_3.parameters=Object.assign({storySource:{source:"() => [\n ...Object.keys(LabelTypography)\n .map(type =>\n
\n \n

\n

\n )\n]"}},OnBackground_3.parameters),OnContent.parameters=Object.assign({storySource:{source:"() => [\n ...Object.keys(LabelTypography)\n .map(type =>\n
\n \n

\n

\n )\n]"}},OnContent.parameters),Primary.parameters=Object.assign({storySource:{source:"() => [\n ...Object.keys(LabelTypography)\n .map(type =>\n
\n \n

\n

\n )\n]"}},Primary.parameters),Error.parameters=Object.assign({storySource:{source:"() => [\n ...Object.keys(LabelTypography)\n .map(type =>\n
\n \n

\n

\n )\n]"}},Error.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Label/stories/index.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/Label/stories/index.stories.js"})},"./src/ui/Label/stringFormatterUtils.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return getModalDeleteMessageTitle}));var _utils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/utils/index.ts"),ts_pattern__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/ts-pattern/dist/index.js");function getModalDeleteMessageTitle(stringSet,message){return Object(ts_pattern__WEBPACK_IMPORTED_MODULE_1__.b)(message).when(_utils__WEBPACK_IMPORTED_MODULE_0__.F,(function(){var filesCount=message.fileInfoList.length;return"Do you want to delete all ".concat(filesCount," photos?")})).otherwise((function(){return stringSet.MODAL__DELETE_MESSAGE__TITLE}))}},"./src/ui/Label/stringSet.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";var stringSet={en:{MESSAGE_STATUS__YESTERDAY:"Yesterday",CHANNEL__MESSAGE_LIST__NOTIFICATION__NEW_MESSAGE:"new message(s) since",CHANNEL__MESSAGE_LIST__NOTIFICATION__ON:"on",CHANNEL_PREVIEW_MOBILE_LEAVE:"Leave channel",CHANNEL_SETTING__HEADER__TITLE:"Channel information",CHANNEL_SETTING__PROFILE__EDIT:"Edit",CHANNEL_SETTING__MEMBERS__TITLE:"Members",CHANNEL_SETTING__MEMBERS__SEE_ALL_MEMBERS:"All members",CHANNEL_SETTING__MEMBERS__INVITE_MEMBER:"Invite users",CHANNEL_SETTING__MEMBERS__YOU:" (You)",CHANNEL_SETTING__MEMBERS__SELECT_TITLE:"Select members",CHANNEL_SETTING__MEMBERS__OPERATOR:"Operator",CHANNEL_SETTING__LEAVE_CHANNEL__TITLE:"Leave channel",CHANNEL_SETTING__OPERATORS__TITLE:"Operators",CHANNEL_SETTING__OPERATORS__TITLE_ALL:"All operators",CHANNEL_SETTING__OPERATORS__TITLE_ADD:"Add operator",CHANNEL_SETTING__OPERATORS__ADD_BUTTON:"Add",CHANNEL_SETTING__MUTED_MEMBERS__TITLE:"Muted members",CHANNEL_SETTING__MUTED_MEMBERS__TITLE_ALL:"All muted members",CHANNEL_SETTING__NO_UNMUTED:"No muted members yet",CHANNEL_SETTING__BANNED_MEMBERS__TITLE:"Banned users",CHANNEL_SETTING__FREEZE_CHANNEL:"Freeze Channel",CHANNEL_SETTING__MODERATION__REGISTER_AS_OPERATOR:"Register as operator",CHANNEL_SETTING__MODERATION__UNREGISTER_OPERATOR:"Unregister operator",CHANNEL_SETTING__MODERATION__MUTE:"Mute",CHANNEL_SETTING__MODERATION__UNMUTE:"Unmute",CHANNEL_SETTING__MODERATION__BAN:"Ban",CHANNEL_SETTING__MODERATION__UNBAN:"Unban",CHANNEL_SETTING__MODERATION__EMPTY_BAN:"No banned members yet",CHANNEL_SETTING__MODERATION__ALL_BAN:"All banned members",OPEN_CHANNEL_CONVERSATION__TITLE_PARTICIPANTS:"participants",OPEN_CHANNEL_CONVERSATION__SELECT_PARTICIPANTS:"Select participants",OPEN_CHANNEL_LIST__TITLE:"Channels",CREATE_OPEN_CHANNEL_LIST__TITLE:"New channel profile",CREATE_OPEN_CHANNEL_LIST__SUBTITLE__IMG_SECTION:"Channel image",CREATE_OPEN_CHANNEL_LIST__SUBTITLE__IMG_UPLOAD:"Upload",CREATE_OPEN_CHANNEL_LIST__SUBTITLE__TEXT_SECTION:"Channel name",CREATE_OPEN_CHANNEL_LIST__SUBTITLE__TEXT_PLACE_HOLDER:"Enter channel name",CREATE_OPEN_CHANNEL_LIST__SUBMIT:"Create",OPEN_CHANNEL_SETTINGS__OPERATOR_TITLE:"Channel Information",OPEN_CHANNEL_SETTINGS__OPERATOR_URL:"URL",OPEN_CHANNEL_SETTINGS__PARTICIPANTS_ACCORDION_TITLE:"Participants",OPEN_CHANNEL_SETTINGS__DELETE_CHANNEL_PANEL:"Delete channel",OPEN_CHANNEL_SETTINGS__DELETE_CHANNEL_TITLE:"Delete channel?",OPEN_CHANNEL_SETTINGS__DELETE_CHANNEL_CONTEXT:"Once deleted, this channel can't be restored.",OPEN_CHANNEL_SETTINGS__DELETE_CHANNEL_SUBMIT:"Delete",OPEN_CHANNEL_SETTINGS__OPERATORS_TITLE:"Operators",OPEN_CHANNEL_SETTINGS__OPERATORS__TITLE_ADD:"Add operator",OPEN_CHANNEL_SETTINGS__OPERATORS__TITLE_ALL:"All operators",OPEN_CHANNEL_SETTINGS__MUTED_MEMBERS__TITLE:"Muted participants",OPEN_CHANNEL_SETTINGS__MUTED_MEMBERS__TITLE_ALL:"All muted participants",OPEN_CHANNEL_SETTINGS__MUTED_MEMBERS__NO_ONE:"No muted participants yet",OPEN_CHANNEL_SETTINGS__BANNED_MEMBERS__TITLE:"Banned users",OPEN_CHANNEL_SETTINGS__BANNED_MEMBERS__TITLE_ALL:"All banned users",OPEN_CHANNEL_SETTINGS__BANNED_MEMBERS__NO_ONE:"No banned users yet",OPEN_CHANNEL_SETTINGS__MEMBERS__YOU:" (You)",OPEN_CHANNEL_SETTINGS__MEMBERS__OPERATOR:"Operator",OPEN_CHANNEL_SETTINGS__PARTICIPANTS_TITLE:"Participants",OPEN_CHANNEL_SETTINGS__EMPTY_LIST:"No participants yet",OPEN_CHANNEL_SETTINGS__SEE_ALL:"See all participants",OPEN_CHANNEL_SETTINGS__ALL_PARTICIPANTS_TITLE:"All participants",OPEN_CHANNEL_SETTINGS__NO_TITLE:"(No title)",OPEN_CHANNEL_SETTING__MODERATION__REGISTER_AS_OPERATOR:"Register as operator",OPEN_CHANNEL_SETTING__MODERATION__UNREGISTER_OPERATOR:"Unregister operator",OPEN_CHANNEL_SETTING__MODERATION__MUTE:"Mute",OPEN_CHANNEL_SETTING__MODERATION__UNMUTE:"Unmute",OPEN_CHANNEL_SETTING__MODERATION__BAN:"Ban",OPEN_CHANNEL_SETTING__MODERATION__UNBAN:"Unban",TRYING_TO_CONNECT:"Trying to connect…",TYPING_INDICATOR__IS_TYPING:"is typing...",TYPING_INDICATOR__AND:"and",TYPING_INDICATOR__ARE_TYPING:"are typing...",TYPING_INDICATOR__MULTIPLE_TYPING:"Several people are typing...",CHANNEL_FROZEN:"Channel frozen",PLACE_HOLDER__NO_CHANNEL:"No channels",PLACE_HOLDER__WRONG:"Something went wrong",PLACE_HOLDER__RETRY_TO_CONNECT:"Retry",PLACE_HOLDER__NO_MESSAGES:"No messages",TOOLTIP__AND_YOU:", and you",TOOLTIP__YOU:"you",TOOLTIP__UNKNOWN_USER:"(no name)",UNKNOWN__UNKNOWN_MESSAGE_TYPE:"(Unknown message type)",UNKNOWN__CANNOT_READ_MESSAGE:"Cannot read this message.",UNKNOWN__TEMPLATE_ERROR:"(Template error)",UNKNOWN__CANNOT_READ_TEMPLATE:"Cannot read this template.",MESSAGE_EDITED:"(edited)",MODAL__DELETE_MESSAGE__TITLE:"Delete this message?",MODAL__CHANNEL_INFORMATION__TITLE:"Edit channel information",MODAL__CHANNEL_INFORMATION__CHANNEL_IMAGE:"Channel image",MODAL__CHANNEL_INFORMATION__UPLOAD:"Upload",MODAL__CHANNEL_INFORMATION__CHANNEL_NAME:"Channel name",MODAL__CHANNEL_INFORMATION__INPUT__PLACE_HOLDER:"Enter name",MODAL__INVITE_MEMBER__TITLE:"Invite member",MODAL__INVITE_MEMBER__SELECTED:"selected",MODAL__CHOOSE_CHANNEL_TYPE__TITLE:"New channel",MODAL__CHOOSE_CHANNEL_TYPE__GROUP:"Group",MODAL__CHOOSE_CHANNEL_TYPE__SUPER_GROUP:"Super group",MODAL__CHOOSE_CHANNEL_TYPE__BROADCAST:"Broadcast",MODAL__CREATE_CHANNEL__TITLE:"New channel",MODAL__CREATE_CHANNEL__GROUP:"Group",MODAL__CREATE_CHANNEL__SUPER:"Super group",MODAL__CREATE_CHANNEL__BROADCAST:"Broadcast",MODAL__CREATE_CHANNEL__SELECTED:"selected",MODAL__LEAVE_CHANNEL__TITLE:"Leave this channel?",MODAL__LEAVE_CHANNEL__FOOTER:"Leave",MODAL__VOICE_MESSAGE_INPUT_DISABLED__TITLE_MUTED:"You're muted by the operator.",MODAL__VOICE_MESSAGE_INPUT_DISABLED__TITLE_FROZEN:"Channel is frozen.",USER_PROFILE__MESSAGE:"Message",USER_PROFILE__USER_ID:"User ID",EDIT_PROFILE__TITLE:"My profile",EDIT_PROFILE__IMAGE_LABEL:"Profile image",EDIT_PROFILE__IMAGE_UPLOAD:"Upload",EDIT_PROFILE__NICKNAME_LABEL:"Nickname",EDIT_PROFILE__NICKNAME_PLACEHOLDER:"Enter your nickname",EDIT_PROFILE__USERID_LABEL:"User ID",EDIT_PROFILE__THEME_LABEL:"Dark theme",MESSAGE_INPUT__PLACE_HOLDER:"Enter message",MESSAGE_INPUT__PLACE_HOLDER__DISABLED:"Chat is unavailable in this channel",MESSAGE_INPUT__PLACE_HOLDER__MUTED:"Chat is unavailable because you're muted",MESSAGE_INPUT__PLACE_HOLDER__MUTED_SHORT:"You're muted",MESSAGE_INPUT__QUOTE_REPLY__PLACE_HOLDER:"Reply to message",BUTTON__SUBMIT:"Submit",BUTTON__CANCEL:"Cancel",BUTTON__DELETE:"Delete",BUTTON__SAVE:"Save",BUTTON__CREATE:"Create",BUTTON__INVITE:"Invite",BUTTON__OK:"OK",BADGE__OVER:"+",NO_TITLE:"No title",NO_NAME:"(No name)",NO_MEMBERS:"(No members)",LABEL__OPERATOR:"Operator",MESSAGE_MENU__COPY:"Copy",MESSAGE_MENU__REPLY:"Reply",MESSAGE_MENU__THREAD:"Reply in thread",MESSAGE_MENU__OPEN_IN_CHANNEL:"Open in channel",MESSAGE_MENU__EDIT:"Edit",MESSAGE_MENU__RESEND:"Resend",MESSAGE_MENU__DELETE:"Delete",MESSAGE_MENU__SAVE:"Save",CONTEXT_MENU_DROPDOWN__COPY:"Copy",CONTEXT_MENU_DROPDOWN__EDIT:"Edit",CONTEXT_MENU_DROPDOWN__RESEND:"Resend",CONTEXT_MENU_DROPDOWN__DELETE:"Delete",CONTEXT_MENU_DROPDOWN__SAVE:"Save",SEARCH:"Search",SEARCH_IN_CHANNEL:"Search in channel",SEARCH_IN:"Search in",SEARCHING:"Searching for messages...",NO_SEARCHED_MESSAGE:"No results found.",QUOTE_MESSAGE_INPUT__REPLY_TO:"Reply to",QUOTE_MESSAGE_INPUT__FILE_TYPE_IMAGE:"Photo",QUOTE_MESSAGE_INPUT__FILE_TYPE_GIF:"GIF",QUOTE_MESSAGE_INPUT__FILE_TYPE__VIDEO:"Video",QUOTED_MESSAGE__REPLIED_TO:"replied to",QUOTED_MESSAGE__CURRENT_USER:"You",QUOTED_MESSAGE__UNAVAILABLE:"Message unavailable",THREAD__HEADER_TITLE:"Thread",CHANNEL__THREAD_REPLY:"reply",CHANNEL__THREAD_REPLIES:"replies",CHANNEL__THREAD_OVER_MAX:"99+",THREAD__THREAD_REPLY:"reply",THREAD__THREAD_REPLIES:"replies",THREAD__INPUT__REPLY_TO_THREAD:"Reply to thread",THREAD__INPUT__REPLY_IN_THREAD:"Reply in thread",MENTION_NAME__NO_NAME:"(No name)",MENTION_COUNT__OVER_LIMIT:"You can mention up to %d times at a time.",UI__FILE_VIEWER__UNSUPPORT:"Unsupported message",VOICE_RECORDING_PERMISSION_DENIED:"You cannot record the voice since\n voice recording is not permitted in your device system setting",VOICE_MESSAGE:"Voice Message",CHANNEL_PREVIEW_LAST_MESSAGE_FILE_TYPE_GIF:"GIF",CHANNEL_PREVIEW_LAST_MESSAGE_FILE_TYPE_PHOTO:"Photo",CHANNEL_PREVIEW_LAST_MESSAGE_FILE_TYPE_VIDEO:"Video",CHANNEL_PREVIEW_LAST_MESSAGE_FILE_TYPE_AUDIO:"Audio",CHANNEL_PREVIEW_LAST_MESSAGE_FILE_TYPE_VOICE_MESSAGE:"Voice message",CHANNEL_PREVIEW_LAST_MESSAGE_FILE_TYPE_GENERAL:"File",CHANNEL_PREVIEW_LAST_MESSAGE_TEMPLATE_MESSAGE:"Message",DATE_FORMAT__MESSAGE_LIST__NOTIFICATION__UNREAD_SINCE:"p 'on' MMM dd",DATE_FORMAT__MESSAGE_LIST__DATE_SEPARATOR:"MMMM dd, yyyy",DATE_FORMAT__THREAD_LIST__DATE_SEPARATOR:"MMM dd, yyyy",FILE_UPLOAD_NOTIFICATION__COUNT_LIMIT:"Up to %d files can be attached.",FILE_UPLOAD_NOTIFICATION__SIZE_LIMIT:"The maximum size per file is %d MB.",FEEDBACK_LIKE:"Like",FEEDBACK_DISLIKE:"Dislike",EDIT_COMMENT:"Edit comment",REMOVE_FEEDBACK:"Remove Feedback",FEEDBACK_MODAL_TITLE:"Provide additional feedback (optional)",FEEDBACK_CONTENT_PLACEHOLDER:"Leave a comment",BUTTON__REMOVE_FEEDBACK:"Remove feedback",FEEDBACK_FAILED_SUBMIT:"Couldn’t submit. Try again.",FEEDBACK_FAILED_SAVE:"Couldn’t save. Try again.",FEEDBACK_FAILED_DELETE:"Couldn’t delete. Try again."}};__webpack_exports__.a=function getStringSet(){return stringSet[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en"]}},"./src/ui/Label/types.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return Typography})),__webpack_require__.d(__webpack_exports__,"a",(function(){return Colors}));var Typography={H_1:"H_1",H_2:"H_2",SUBTITLE_1:"SUBTITLE_1",SUBTITLE_2:"SUBTITLE_2",BODY_1:"BODY_1",BODY_2:"BODY_2",BUTTON_1:"BUTTON_1",BUTTON_2:"BUTTON_2",BUTTON_3:"BUTTON_3",CAPTION_1:"CAPTION_1",CAPTION_2:"CAPTION_2",CAPTION_3:"CAPTION_3"},Colors={ONBACKGROUND_1:"ONBACKGROUND_1",ONBACKGROUND_2:"ONBACKGROUND_2",ONBACKGROUND_3:"ONBACKGROUND_3",ONBACKGROUND_4:"ONBACKGROUND_4",ONCONTENT_1:"ONCONTENT_1",ONCONTENT_2:"ONCONTENT_2",ONCONTENT_INVERSE_1:"ONCONTENT_INVERSE_1",ONCONTENT_INVERSE_5:"ONCONTENT_INVERSE_5",PRIMARY:"PRIMARY",ERROR:"ERROR",SECONDARY_3:"SECONDARY_3"}},"./src/ui/Label/utils.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return changeTypographyToClassName})),__webpack_require__.d(__webpack_exports__,"a",(function(){return changeColorToClassName}));var _types__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/ui/Label/types.ts");function changeTypographyToClassName(type){switch(type){case _types__WEBPACK_IMPORTED_MODULE_0__.b.H_1:return"sendbird-label--h-1";case _types__WEBPACK_IMPORTED_MODULE_0__.b.H_2:return"sendbird-label--h-2";case _types__WEBPACK_IMPORTED_MODULE_0__.b.SUBTITLE_1:return"sendbird-label--subtitle-1";case _types__WEBPACK_IMPORTED_MODULE_0__.b.SUBTITLE_2:return"sendbird-label--subtitle-2";case _types__WEBPACK_IMPORTED_MODULE_0__.b.BODY_1:return"sendbird-label--body-1";case _types__WEBPACK_IMPORTED_MODULE_0__.b.BODY_2:return"sendbird-label--body-2";case _types__WEBPACK_IMPORTED_MODULE_0__.b.BUTTON_1:return"sendbird-label--button-1";case _types__WEBPACK_IMPORTED_MODULE_0__.b.BUTTON_2:return"sendbird-label--button-2";case _types__WEBPACK_IMPORTED_MODULE_0__.b.BUTTON_3:return"sendbird-label--button-3";case _types__WEBPACK_IMPORTED_MODULE_0__.b.CAPTION_1:return"sendbird-label--caption-1";case _types__WEBPACK_IMPORTED_MODULE_0__.b.CAPTION_2:return"sendbird-label--caption-2";case _types__WEBPACK_IMPORTED_MODULE_0__.b.CAPTION_3:return"sendbird-label--caption-3";default:return""}}function changeColorToClassName(color){switch(color){case _types__WEBPACK_IMPORTED_MODULE_0__.a.ONBACKGROUND_1:return"sendbird-label--color-onbackground-1";case _types__WEBPACK_IMPORTED_MODULE_0__.a.ONBACKGROUND_2:return"sendbird-label--color-onbackground-2";case _types__WEBPACK_IMPORTED_MODULE_0__.a.ONBACKGROUND_3:return"sendbird-label--color-onbackground-3";case _types__WEBPACK_IMPORTED_MODULE_0__.a.ONBACKGROUND_4:return"sendbird-label--color-onbackground-4";case _types__WEBPACK_IMPORTED_MODULE_0__.a.ONCONTENT_1:return"sendbird-label--color-oncontent-1";case _types__WEBPACK_IMPORTED_MODULE_0__.a.ONCONTENT_2:return"sendbird-label--color-oncontent-2";case _types__WEBPACK_IMPORTED_MODULE_0__.a.ONCONTENT_INVERSE_1:return"sendbird-label--color-oncontent-inverse-1";case _types__WEBPACK_IMPORTED_MODULE_0__.a.ONCONTENT_INVERSE_5:return"sendbird-label--color-oncontent-inverse-5";case _types__WEBPACK_IMPORTED_MODULE_0__.a.PRIMARY:return"sendbird-label--color-primary";case _types__WEBPACK_IMPORTED_MODULE_0__.a.ERROR:return"sendbird-label--color-error";case _types__WEBPACK_IMPORTED_MODULE_0__.a.SECONDARY_3:return"sendbird-label--color-secondary-3";default:return""}}},"./src/ui/LegacyEditUserProfile/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/LegacyEditUserProfile/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/LegacyEditUserProfile/stories/EditUserProfile.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"simple",(function(){return EditUserProfile_stories_simple}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),Modal=(__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/web.url.js"),__webpack_require__("./src/ui/LegacyEditUserProfile/index.scss"),__webpack_require__("./src/ui/Modal/index.tsx")),SendbirdSdkContext=__webpack_require__("./src/lib/SendbirdSdkContext.tsx"),LocalizationContext=__webpack_require__("./src/lib/LocalizationContext.tsx"),Input=__webpack_require__("./src/ui/Input/index.tsx"),Avatar=__webpack_require__("./src/ui/Avatar/index.tsx"),Icon=__webpack_require__("./src/ui/Icon/index.tsx"),Button=__webpack_require__("./src/ui/Button/index.tsx"),Label=__webpack_require__("./src/ui/Label/index.tsx"),TextButton=__webpack_require__("./src/ui/TextButton/index.tsx"),utils=__webpack_require__("./src/utils/utils.ts");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i void"}},onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!0,type:{name:"(newFile: File, newNickname: string) => void"}},changeTheme:{defaultValue:{value:"() => { /** noop * */ }"},description:"",name:"changeTheme",required:!1,type:{name:"(theme: string) => void"}},onThemeChange:{defaultValue:{value:"null"},description:"",name:"onThemeChange",required:!1,type:{name:"(theme: string) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/LegacyEditUserProfile/index.tsx#EditUserProfile"]={docgenInfo:EditUserProfile.__docgenInfo,name:"EditUserProfile",path:"src/ui/LegacyEditUserProfile/index.tsx#EditUserProfile"})}catch(__react_docgen_typescript_loader_error){}var Sendbird=__webpack_require__("./src/lib/Sendbird.tsx"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");function EditUserProfile_stories_slicedToArray(arr,i){return function EditUserProfile_stories_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function EditUserProfile_stories_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function EditUserProfile_stories_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return EditUserProfile_stories_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EditUserProfile_stories_arrayLikeToArray(o,minLen)}(arr,i)||function EditUserProfile_stories_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function EditUserProfile_stories_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i {\n const [showModal, setShowModal] = useState(false);\n useLayoutEffect(() => {\n // to display modal after sendbird-modal-root is rendered\n setShowModal(true);\n }, []);\n return (\n \n
\n {\n showModal && (\n {}} />\n )\n }\n \n)}'}},EditUserProfile_stories_simple.parameters),EditUserProfile_stories_simple.__docgenInfo={description:"",methods:[],displayName:"simple"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/LegacyEditUserProfile/stories/EditUserProfile.stories.js"]={name:"simple",docgenInfo:EditUserProfile_stories_simple.__docgenInfo,path:"src/ui/LegacyEditUserProfile/stories/EditUserProfile.stories.js"})},"./src/ui/LinkLabel/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/LinkLabel/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/LinkLabel/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"c",(function(){return LinkLabel})),__webpack_require__.d(__webpack_exports__,"b",(function(){return LinkLabelTypography})),__webpack_require__.d(__webpack_exports__,"a",(function(){return LinkLabelColors}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var react__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__),_Label__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./src/ui/Label/index.tsx"),_Label_utils__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./src/ui/Label/utils.ts");__webpack_require__("./src/ui/LinkLabel/index.scss");function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i (\n Sample Text\n)"}},WithControl.parameters),RightLinks.parameters=Object.assign({storySource:{source:"() => (\n rightLinks.map(link => (\n \n {link}\n \n ))\n)"}},RightLinks.parameters),WrongLinks.parameters=Object.assign({storySource:{source:"() => (\n wrongLinks.map(link => (\n \n {link}\n \n ))\n)"}},WrongLinks.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/LinkLabel/stories/LinkLabel.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/LinkLabel/stories/LinkLabel.stories.js"})},"./src/ui/Loader/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/Loader/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/Loader/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return Loader}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var react__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__),_Icon__WEBPACK_IMPORTED_MODULE_14__=(__webpack_require__("./src/ui/Loader/index.scss"),__webpack_require__("./src/ui/Icon/index.tsx"));function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i "}},WithControl.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Loader/stories/Loader.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/Loader/stories/Loader.stories.js"})},"./src/ui/MentionLabel/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/MentionLabel/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/MentionLabel/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return MentionLabel}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./src/ui/MentionLabel/index.scss");var react__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__),_ContextMenu__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./src/ui/ContextMenu/index.tsx"),_Label__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./src/ui/Label/index.tsx"),_UserProfile__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./src/ui/UserProfile/index.tsx"),_hooks_useSendbirdStateContext__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./src/hooks/useSendbirdStateContext.tsx");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&setUser(members[0]),toggleDropdown()})):toggleDropdown()}),[sdk,mentionedUserId]);return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(_ContextMenu__WEBPACK_IMPORTED_MODULE_13__.h,{menuTrigger:function menuTrigger(toggleDropdown){return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("a",{className:"\n sendbird-word__mention\n ".concat(amIBeingMentioned?"sendbird-word__mention--me":"","\n "),onClick:function onClick(){return fetchUser(toggleDropdown)},ref:mentionRef,"data-userid":mentionedUserId,"data-nickname":mentionedUserNickname,"data-sb-mention":!0},react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(_Label__WEBPACK_IMPORTED_MODULE_14__.d,{type:_Label__WEBPACK_IMPORTED_MODULE_14__.c.CAPTION_1,color:isByMe?_Label__WEBPACK_IMPORTED_MODULE_14__.a.ONCONTENT_1:_Label__WEBPACK_IMPORTED_MODULE_14__.a.ONBACKGROUND_1},"".concat(mentionTemplate).concat(mentionedUserNickname)))},menuItems:function menuItems(closeDropdown){return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(_ContextMenu__WEBPACK_IMPORTED_MODULE_13__.d,{parentRef:mentionRef,parentContainRef:mentionRef,closeDropdown:closeDropdown,style:{paddingTop:"0px",paddingBottom:"0px"}},react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(_UserProfile__WEBPACK_IMPORTED_MODULE_15__.a,{user:user,onSuccess:closeDropdown,currentUserId:userId}))}})}try{MentionLabel.displayName="MentionLabel",MentionLabel.__docgenInfo={description:"",displayName:"MentionLabel",props:{mentionTemplate:{defaultValue:null,description:"",name:"mentionTemplate",required:!0,type:{name:"string"}},mentionedUserId:{defaultValue:null,description:"",name:"mentionedUserId",required:!0,type:{name:"string"}},mentionedUserNickname:{defaultValue:null,description:"",name:"mentionedUserNickname",required:!0,type:{name:"string"}},isByMe:{defaultValue:null,description:"",name:"isByMe",required:!0,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MentionLabel/index.tsx#MentionLabel"]={docgenInfo:MentionLabel.__docgenInfo,name:"MentionLabel",path:"src/ui/MentionLabel/index.tsx#MentionLabel"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/MentionLabel/stories/MentionLabel.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return WithControl}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _index_tsx__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/MentionLabel/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/MentionLabel",component:_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,parameters:{docs:{description:{component:'\n `import MentionLabel from "@sendbird/uikit-react/ui/MentionLabel";`\n'}}}};var WithControl=function WithControl(arg){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,Object.assign({},arg))};WithControl.displayName="WithControl",WithControl.parameters=Object.assign({storySource:{source:"(arg) => "}},WithControl.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MentionLabel/stories/MentionLabel.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/MentionLabel/stories/MentionLabel.stories.js"})},"./src/ui/MentionUserLabel/consts.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return MENTION_USER_LABEL_CLASSNAME}));var MENTION_USER_LABEL_CLASSNAME="sendbird-mention-user-label"},"./src/ui/MentionUserLabel/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/MentionUserLabel/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/MentionUserLabel/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return MentionUserLabel}));__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./src/ui/MentionUserLabel/index.scss");var react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__),_consts__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/ui/MentionUserLabel/consts.ts");function MentionUserLabel(_ref){var _ref$className=_ref.className,className=void 0===_ref$className?"":_ref$className,children=_ref.children,_ref$isReverse=_ref.isReverse,isReverse=void 0!==_ref$isReverse&&_ref$isReverse,color=_ref.color,userId=_ref.userId;return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span",{className:"".concat(_consts__WEBPACK_IMPORTED_MODULE_3__.a," ").concat(className," ").concat(isReverse?"reverse":""," ").concat(color),contentEditable:!1,"data-userid":userId,"data-sb-mention":!0},children)}try{MentionUserLabel.displayName="MentionUserLabel",MentionUserLabel.__docgenInfo={description:"",displayName:"MentionUserLabel",props:{className:{defaultValue:{value:""},description:"",name:"className",required:!1,type:{name:"string"}},isReverse:{defaultValue:{value:"false"},description:"",name:"isReverse",required:!1,type:{name:"boolean"}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"string"}},userId:{defaultValue:null,description:"",name:"userId",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MentionUserLabel/index.tsx#MentionUserLabel"]={docgenInfo:MentionUserLabel.__docgenInfo,name:"MentionUserLabel",path:"src/ui/MentionUserLabel/index.tsx#MentionUserLabel"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/MentionUserLabel/stories/MentionUserLabel.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return WithControl}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _index_tsx__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/MentionUserLabel/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/MentionUserLabel",component:_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,parameters:{docs:{description:{component:'\n `import MentionUserLabel from "@sendbird/uikit-react/ui/MentionUserLabel";`\n'}}}};var WithControl=function WithControl(arg){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,Object.assign({},arg))};WithControl.displayName="WithControl",WithControl.parameters=Object.assign({storySource:{source:"(arg) => "}},WithControl.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MentionUserLabel/stories/MentionUserLabel.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/MentionUserLabel/stories/MentionUserLabel.stories.js"})},"./src/ui/MessageContent/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/MessageContent/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/MessageContent/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return MessageContent_MessageContent}));__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.async-iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.math.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.json.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),format=__webpack_require__("./node_modules/date-fns/esm/format/index.js"),MessageStatus=(__webpack_require__("./src/ui/MessageContent/index.scss"),__webpack_require__("./src/ui/MessageStatus/index.tsx")),MessageItemMenu=__webpack_require__("./src/ui/MessageItemMenu/index.tsx"),MessageItemReactionMenu=__webpack_require__("./src/ui/MessageItemReactionMenu/index.tsx"),Label=__webpack_require__("./src/ui/Label/index.tsx"),EmojiReactions=__webpack_require__("./src/ui/EmojiReactions/index.tsx"),AdminMessage=__webpack_require__("./src/ui/AdminMessage/index.tsx"),QuoteMessage=__webpack_require__("./src/ui/QuoteMessage/index.tsx"),utils=__webpack_require__("./src/utils/index.ts"),LocalizationContext=__webpack_require__("./src/lib/LocalizationContext.tsx"),useSendbirdStateContext=__webpack_require__("./src/hooks/useSendbirdStateContext.tsx"),_bundle_121c0f7c=__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-121c0f7c.js"),useLongPress=__webpack_require__("./src/hooks/useLongPress.tsx"),MobileMenu=__webpack_require__("./src/ui/MobileMenu/index.tsx"),MediaQueryContext=__webpack_require__("./src/lib/MediaQueryContext.tsx"),ThreadReplies=__webpack_require__("./src/ui/ThreadReplies/index.tsx"),context_const=__webpack_require__("./src/modules/Channel/context/const.ts"),utils_utils=__webpack_require__("./src/utils/utils.ts"),ContextMenu=(__webpack_require__("./node_modules/core-js/modules/es.array.find.js"),__webpack_require__("./src/ui/ContextMenu/index.tsx")),Avatar=__webpack_require__("./src/ui/Avatar/index.tsx"),UserProfile=__webpack_require__("./src/ui/UserProfile/index.tsx"),UserProfileContext=__webpack_require__("./src/lib/UserProfileContext.tsx");function MessageProfile(props){var message=props.message,channel=props.channel,userId=props.userId,_props$chainBottom=props.chainBottom,chainBottom=void 0!==_props$chainBottom&&_props$chainBottom,isByMe=props.isByMe,displayThreadReplies=props.displayThreadReplies,bottom=props.bottom,avatarRef=Object(react.useRef)(null),_useContext=Object(react.useContext)(UserProfileContext.a),disableUserProfile=_useContext.disableUserProfile,renderUserProfile=_useContext.renderUserProfile;return isByMe||chainBottom||!Object(utils.K)(message)?null:react_default.a.createElement(ContextMenu.h,{menuTrigger:function menuTrigger(toggleDropdown){var _channel$members;return react_default.a.createElement(Avatar.a,{className:"sendbird-message-content__left__avatar ".concat(displayThreadReplies?"use-thread-replies":""),src:(null==channel||null===(_channel$members=channel.members)||void 0===_channel$members||null===(_channel$members=_channel$members.find((function(member){return(null==member?void 0:member.userId)===message.sender.userId})))||void 0===_channel$members?void 0:_channel$members.profileUrl)||message.sender.profileUrl||"",ref:avatarRef,width:"28px",height:"28px",bottom:bottom,onClick:function onClick(){disableUserProfile||toggleDropdown()}})},menuItems:function menuItems(closeDropdown){return renderUserProfile?renderUserProfile({user:message.sender,close:closeDropdown,currentUserId:userId,avatarRef:avatarRef}):react_default.a.createElement(ContextMenu.d,{parentRef:avatarRef,parentContainRef:avatarRef,closeDropdown:closeDropdown,style:{paddingTop:"0px",paddingBottom:"0px"}},react_default.a.createElement(UserProfile.a,{user:message.sender,onSuccess:closeDropdown}))}})}try{MessageProfile.displayName="MessageProfile",MessageProfile.__docgenInfo={description:"",displayName:"MessageProfile",props:{isByMe:{defaultValue:null,description:"",name:"isByMe",required:!1,type:{name:"boolean"}},displayThreadReplies:{defaultValue:null,description:"",name:"displayThreadReplies",required:!1,type:{name:"boolean"}},bottom:{defaultValue:null,description:"",name:"bottom",required:!1,type:{name:"string"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string | string[]"}},userId:{defaultValue:null,description:"",name:"userId",required:!0,type:{name:"string"}},channel:{defaultValue:null,description:"",name:"channel",required:!0,type:{name:"GroupChannel"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"CoreMessageType"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},chainTop:{defaultValue:null,description:"",name:"chainTop",required:!1,type:{name:"boolean"}},chainBottom:{defaultValue:null,description:"",name:"chainBottom",required:!1,type:{name:"boolean"}},isReactionEnabled:{defaultValue:null,description:"",name:"isReactionEnabled",required:!1,type:{name:"boolean"}},disableQuoteMessage:{defaultValue:null,description:"",name:"disableQuoteMessage",required:!1,type:{name:"boolean"}},replyType:{defaultValue:null,description:"",name:"replyType",required:!1,type:{name:"enum",value:[{value:'"NONE"'},{value:'"QUOTE_REPLY"'},{value:'"THREAD"'}]}},threadReplySelectType:{defaultValue:null,description:"",name:"threadReplySelectType",required:!1,type:{name:"enum",value:[{value:'"PARENT"'},{value:'"THREAD"'}]}},nicknamesMap:{defaultValue:null,description:"",name:"nicknamesMap",required:!1,type:{name:"Map"}},emojiContainer:{defaultValue:null,description:"",name:"emojiContainer",required:!1,type:{name:"EmojiContainer"}},scrollToMessage:{defaultValue:null,description:"",name:"scrollToMessage",required:!1,type:{name:"(createdAt: number, messageId: number) => void"}},showEdit:{defaultValue:null,description:"",name:"showEdit",required:!1,type:{name:"(bool: boolean) => void"}},showRemove:{defaultValue:null,description:"",name:"showRemove",required:!1,type:{name:"(bool: boolean) => void"}},showFileViewer:{defaultValue:null,description:"",name:"showFileViewer",required:!1,type:{name:"(bool: boolean) => void"}},resendMessage:{defaultValue:null,description:"",name:"resendMessage",required:!1,type:{name:"(message: SendableMessageType) => void"}},deleteMessage:{defaultValue:null,description:"",name:"deleteMessage",required:!1,type:{name:"(message: CoreMessageType) => Promise"}},toggleReaction:{defaultValue:null,description:"",name:"toggleReaction",required:!1,type:{name:"(message: SendableMessageType, reactionKey: string, isReacted: boolean) => void"}},setQuoteMessage:{defaultValue:null,description:"",name:"setQuoteMessage",required:!1,type:{name:"(message: SendableMessageType) => void"}},onReplyInThread:{defaultValue:null,description:"",name:"onReplyInThread",required:!1,type:{name:"(props: { message: SendableMessageType; }) => void"}},onQuoteMessageClick:{defaultValue:null,description:"",name:"onQuoteMessageClick",required:!1,type:{name:"(props: { message: SendableMessageType; }) => void"}},onMessageHeightChange:{defaultValue:null,description:"",name:"onMessageHeightChange",required:!1,type:{name:"(isBottomMessageAffected?: boolean) => void"}},renderSenderProfile:{defaultValue:null,description:"",name:"renderSenderProfile",required:!1,type:{name:"(props: MessageProfileProps) => ReactNode"}},renderMessageBody:{defaultValue:null,description:"",name:"renderMessageBody",required:!1,type:{name:"(props: MessageBodyProps) => ReactNode"}},renderMessageHeader:{defaultValue:null,description:"",name:"renderMessageHeader",required:!1,type:{name:"(props: MessageHeaderProps) => ReactNode"}},renderMessageMenu:{defaultValue:null,description:"",name:"renderMessageMenu",required:!1,type:{name:"(props: MessageMenuProps) => ReactNode"}},renderEmojiMenu:{defaultValue:null,description:"",name:"renderEmojiMenu",required:!1,type:{name:"(props: MessageEmojiMenuProps) => ReactNode"}},renderEmojiReactions:{defaultValue:null,description:"",name:"renderEmojiReactions",required:!1,type:{name:"(props: EmojiReactionsProps) => ReactNode"}},renderMobileMenuOnLongPress:{defaultValue:null,description:"",name:"renderMobileMenuOnLongPress",required:!1,type:{name:"(props: MobileBottomSheetProps) => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MessageContent/MessageProfile/index.tsx#MessageProfile"]={docgenInfo:MessageProfile.__docgenInfo,name:"MessageProfile",path:"src/ui/MessageContent/MessageProfile/index.tsx#MessageProfile"})}catch(__react_docgen_typescript_loader_error){}var OGMessageItemBody=__webpack_require__("./src/ui/OGMessageItemBody/index.tsx"),TextMessageItemBody=__webpack_require__("./src/ui/TextMessageItemBody/index.tsx"),FileMessageItemBody=__webpack_require__("./src/ui/FileMessageItemBody/index.tsx"),MultipleFilesMessageItemBody=__webpack_require__("./src/ui/MultipleFilesMessageItemBody/index.tsx"),VoiceMessageItemBody=__webpack_require__("./src/ui/VoiceMessageItemBody/index.tsx"),ThumbnailMessageItemBody=__webpack_require__("./src/ui/ThumbnailMessageItemBody/index.tsx"),UnknownMessageItemBody=__webpack_require__("./src/ui/UnknownMessageItemBody/index.tsx"),useThreadMessageKindKeySelector=__webpack_require__("./src/modules/Channel/context/hooks/useThreadMessageKindKeySelector.ts"),useFileInfoListWithUploaded=__webpack_require__("./src/modules/Channel/context/hooks/useFileInfoListWithUploaded.ts"),dist=__webpack_require__("./node_modules/ts-pattern/dist/index.js"),react_uikit_message_template_view_dist=(__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./src/ui/TemplateMessageItemBody/index.scss"),__webpack_require__("./node_modules/@sendbird/react-uikit-message-template-view/dist/index.js")),uikit_message_template_dist=__webpack_require__("./node_modules/@sendbird/uikit-message-template/dist/index.js"),CustomTemplate=(__webpack_require__("./src/ui/MessageTemplate/index.scss"),Object(uikit_message_template_dist.f)({parser:react_uikit_message_template_view_dist.b,renderer:react_uikit_message_template_view_dist.c,Container:function Container(_ref){var children=_ref.children;return react_default.a.createElement("div",{className:["sb-message-template__parent","sendbird-message-template__root"].join(" ")},children)}}).MessageTemplate);function MessageTemplate_MessageTemplate(_ref2){var templateItems=_ref2.templateItems,templateVersion=_ref2.templateVersion;return react_default.a.createElement(CustomTemplate,{templateItems:templateItems,templateVersion:templateVersion})}var ui_MessageTemplate=MessageTemplate_MessageTemplate;try{MessageTemplate_MessageTemplate.displayName="MessageTemplate",MessageTemplate_MessageTemplate.__docgenInfo={description:"",displayName:"MessageTemplate",props:{templateVersion:{defaultValue:null,description:"",name:"templateVersion",required:!0,type:{name:"number"}},templateItems:{defaultValue:null,description:"",name:"templateItems",required:!0,type:{name:"(Box | Text | Image | TextButton | ImageButton | Carousel)[]"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MessageTemplate/index.tsx#MessageTemplate"]={docgenInfo:MessageTemplate_MessageTemplate.__docgenInfo,name:"MessageTemplate",path:"src/ui/MessageTemplate/index.tsx#MessageTemplate"})}catch(__react_docgen_typescript_loader_error){}var MessageTemplateWrapper_MessageTemplateWrapper=function MessageTemplateWrapper(_ref){var message=_ref.message,templateVersion=_ref.templateVersion,templateItems=_ref.templateItems;return react_default.a.createElement(react_uikit_message_template_view_dist.a,{message:message},react_default.a.createElement(ui_MessageTemplate,{templateVersion:templateVersion,templateItems:templateItems}))},components_MessageTemplateWrapper=MessageTemplateWrapper_MessageTemplateWrapper;try{MessageTemplateWrapper_MessageTemplateWrapper.displayName="MessageTemplateWrapper",MessageTemplateWrapper_MessageTemplateWrapper.__docgenInfo={description:"",displayName:"MessageTemplateWrapper",props:{message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"BaseMessage"}},templateVersion:{defaultValue:null,description:"",name:"templateVersion",required:!0,type:{name:"number"}},templateItems:{defaultValue:null,description:"",name:"templateItems",required:!0,type:{name:"(Box | Text | Image | TextButton | ImageButton | Carousel)[]"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/GroupChannel/components/MessageTemplateWrapper/index.tsx#MessageTemplateWrapper"]={docgenInfo:MessageTemplateWrapper_MessageTemplateWrapper.__docgenInfo,name:"MessageTemplateWrapper",path:"src/modules/GroupChannel/components/MessageTemplateWrapper/index.tsx#MessageTemplateWrapper"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.number.is-nan.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var NumberValueKeys=["version","size","top","left","right","bottom","maxTextLines","value","pixelWidth","pixelHeight","radius"];function restoreNumbersFromMessageTemplateObject(value,key){if(Array.isArray(value))return value.map((function(item){return restoreNumbersFromMessageTemplateObject(item)}));if("object"===_typeof(value))return Object.keys(value).reduce((function(acc,key){return acc[key]=restoreNumbersFromMessageTemplateObject(value[key],key),acc}),{});if(null!=key&&NumberValueKeys.includes(key)){var numberValue=Number(value);return Number.isNaN(numberValue)?value:numberValue}return value}__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");function flattenObject_typeof(o){return flattenObject_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},flattenObject_typeof(o)}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i2&&void 0!==arguments[2]?arguments[2]:"",_i=0,_Object$entries=Object.entries(currentObject);_i<_Object$entries.length;_i++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i],2),key=_Object$entries$_i[0],value=_Object$entries$_i[1],currentKeyPath=parentKeyPath?"".concat(parentKeyPath,".").concat(key):key;value&&"object"===flattenObject_typeof(value)?flattenObjectHelper(value,flattenObject,currentKeyPath):flattenObject[currentKeyPath]=value}};__webpack_require__("./node_modules/core-js/modules/es.string.starts-with.js"),__webpack_require__("./node_modules/core-js/modules/es.string.split.js");function selectColorVariablesByTheme_slicedToArray(arr,i){return function selectColorVariablesByTheme_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function selectColorVariablesByTheme_iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function selectColorVariablesByTheme_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return selectColorVariablesByTheme_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return selectColorVariablesByTheme_arrayLikeToArray(o,minLen)}(arr,i)||function selectColorVariablesByTheme_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function selectColorVariablesByTheme_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0)!function tryFetchTemplateByKey(templateKeys){if(templateKeys.length>0){var waitingTemplateKeyDataList=[];templateKeys.forEach((function(templateKey){var waitingTemplateKeyData=waitingTemplateKeysMap[templateKey];waitingTemplateKeyDataList.push([templateKey,waitingTemplateKeyData])}));var requestedAt=Date.now(),keysToUpdate=[];waitingTemplateKeyDataList.forEach((function(_ref6){var _ref7=TemplateMessageItemBody_slicedToArray(_ref6,2),templateKey=_ref7[0],waitingTemplateKeyData=_ref7[1];if(!waitingTemplateKeyData||-1===waitingTemplateKeyData.erroredMessageIds.indexOf(message.messageId)&&requestedAt>waitingTemplateKeyData.requestedAt+500)keysToUpdate.push(templateKey);else if(waitingTemplateKeyData.erroredMessageIds.indexOf(message.messageId)>-1)throw new Error})),keysToUpdate.length>0&&updateMessageTemplatesInfo(keysToUpdate,message.messageId,requestedAt)}}(nonCachedTemplateKeys);else{var parsedUiTemplate=JSON.parse(cachedTemplate.uiTemplate);if(!Array.isArray(parsedUiTemplate)||0===parsedUiTemplate.length)throw logger.error("TemplateMessageItemBody | parsed template is missing ui_template: ",parsedUiTemplate),new Error;if(templateData.view_variables||"carouselView"===parsedUiTemplate[0].type||"string"==typeof parsedUiTemplate[0].items||parsedUiTemplate[0].spacing){if(!templateData.view_variables)throw logger.error("TemplateMessageItemBody | template key suggests composite template but template data is missing view_variables: ",templateKey,templateData),new Error;var carouselItem=parsedUiTemplate[0];if("carouselView"!==carouselItem.type||"string"!=typeof carouselItem.items||!Object(utils.Z)(carouselItem.items)||!carouselItem.spacing)throw logger.error("TemplateMessageItemBody | composite template is malformed: ",templateKey,carouselItem),new Error;if(parsedUiTemplate.length>1)throw logger.error("TemplateMessageItemBody | composite template currently does not support multiple items: ",parsedUiTemplate),new Error;var reservationKey=Object(utils.Y)(carouselItem.items),simpleTemplateDataList=templateData.view_variables[reservationKey];if(!simpleTemplateDataList)throw logger.error("TemplateMessageItemBody | no reservation key found in view_variables: ",reservationKey,templateData.view_variables),new Error;result.templateVersion=cachedTemplate.version,result.filledMessageTemplateItemsList=[{type:carouselItem.type,spacing:carouselItem.spacing,items:getFilledMessageTemplateItemsForCarouselTemplate(simpleTemplateDataList)}]}else result.filledMessageTemplateItemsList=function getFilledMessageTemplateItemsForSimpleTemplate(templateItems,colorVariables){var _templateData$variabl;return TemplateMessageItemBody_getFilledMessageTemplateWithData(templateItems,null!==(_templateData$variabl=templateData.variables)&&void 0!==_templateData$variabl?_templateData$variabl:{},colorVariables,theme)}(parsedUiTemplate,cachedTemplate.colorVariables)}}catch(e){result.isErrored=!0}return result}return Object(react.useEffect)((function(){if(!renderData.isErrored&&0===renderData.filledMessageTemplateItemsList.length){var newRenderData=getFilledMessageTemplateItems();setRenderData(newRenderData)}}),[templateData.key,waitingTemplateKeysMapString]),renderData.isErrored?react_default.a.createElement(TemplateMessageItemBody_FallbackTemplateMessageItemBody,{className:className,message:message,isByMe:isByMe}):0===renderData.filledMessageTemplateItemsList.length?react_default.a.createElement(TemplateMessageItemBody_LoadingTemplateMessageItemBody,{className:className,isByMe:isByMe}):react_default.a.createElement("div",{className:Object(utils.i)([className,isByMe?"outgoing":"incoming","sendbird-template-message-item-body"])},react_default.a.createElement(messageTemplateErrorBoundary,{fallbackMessage:react_default.a.createElement(TemplateMessageItemBody_FallbackTemplateMessageItemBody,{className:className,message:message,isByMe:isByMe}),logger:logger},react_default.a.createElement(components_MessageTemplateWrapper,{message:message,templateVersion:renderData.templateVersion,templateItems:renderData.filledMessageTemplateItemsList})))}var ui_TemplateMessageItemBody=TemplateMessageItemBody_TemplateMessageItemBody;try{TemplateMessageItemBody_TemplateMessageItemBody.displayName="TemplateMessageItemBody",TemplateMessageItemBody_TemplateMessageItemBody.__docgenInfo={description:"",displayName:"TemplateMessageItemBody",props:{className:{defaultValue:{value:""},description:"",name:"className",required:!1,type:{name:"string | string[]"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"BaseMessage"}},isByMe:{defaultValue:{value:"false"},description:"",name:"isByMe",required:!1,type:{name:"boolean"}},theme:{defaultValue:{value:"light"},description:"",name:"theme",required:!1,type:{name:"enum",value:[{value:'"light"'},{value:'"dark"'}]}},onLoad:{defaultValue:null,description:"",name:"onLoad",required:!1,type:{name:"() => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/TemplateMessageItemBody/index.tsx#TemplateMessageItemBody"]={docgenInfo:TemplateMessageItemBody_TemplateMessageItemBody.__docgenInfo,name:"TemplateMessageItemBody",path:"src/ui/TemplateMessageItemBody/index.tsx#TemplateMessageItemBody"})}catch(__react_docgen_typescript_loader_error){}var MESSAGE_ITEM_BODY_CLASSNAME="sendbird-message-content__middle__message-item-body";function MessageBody(props){var message=props.message,channel=props.channel,showFileViewer=props.showFileViewer,onMessageHeightChange=props.onMessageHeightChange,mouseHover=props.mouseHover,isMobile=props.isMobile,config=props.config,isReactionEnabledInChannel=props.isReactionEnabledInChannel,isByMe=props.isByMe,threadMessageKindKey=Object(useThreadMessageKindKeySelector.a)({isMobile:isMobile}),statefulFileInfoList=Object(useFileInfoListWithUploaded.a)(message),messageTypes=Object(utils.u)(),isOgMessageEnabledInGroupChannel=(null==channel?void 0:channel.isGroupChannel())&&config.groupChannel.enableOgtag;return Object(dist.b)(message).when(utils.O,(function(){return react_default.a.createElement(ui_TemplateMessageItemBody,{className:MESSAGE_ITEM_BODY_CLASSNAME,message:message,isByMe:isByMe,theme:null==config?void 0:config.theme})})).when((function(message){return isOgMessageEnabledInGroupChannel&&Object(utils.K)(message)&&Object(utils.G)(message)}),(function(){return react_default.a.createElement(OGMessageItemBody.a,{className:MESSAGE_ITEM_BODY_CLASSNAME,message:message,isByMe:isByMe,mouseHover:mouseHover,isMentionEnabled:(null==config?void 0:config.isMentionEnabled)||!1,isReactionEnabled:isReactionEnabledInChannel,onMessageHeightChange:onMessageHeightChange})})).when(utils.P,(function(){return react_default.a.createElement(TextMessageItemBody.a,{className:MESSAGE_ITEM_BODY_CLASSNAME,message:message,isByMe:isByMe,mouseHover:mouseHover,isMentionEnabled:(null==config?void 0:config.isMentionEnabled)||!1,isReactionEnabled:isReactionEnabledInChannel})})).when((function(message){return Object(utils.t)(message)===messageTypes.FILE}),(function(){return react_default.a.createElement(FileMessageItemBody.a,{className:MESSAGE_ITEM_BODY_CLASSNAME,message:message,isByMe:isByMe,mouseHover:mouseHover,isReactionEnabled:isReactionEnabledInChannel})})).when(utils.F,(function(){return react_default.a.createElement(MultipleFilesMessageItemBody.b,{className:MESSAGE_ITEM_BODY_CLASSNAME,message:message,isByMe:isByMe,mouseHover:mouseHover,isReactionEnabled:isReactionEnabledInChannel,threadMessageKindKey:threadMessageKindKey,statefulFileInfoList:statefulFileInfoList})})).when(utils.W,(function(){var _channel$url;return react_default.a.createElement(VoiceMessageItemBody.a,{className:MESSAGE_ITEM_BODY_CLASSNAME,message:message,channelUrl:null!==(_channel$url=null==channel?void 0:channel.url)&&void 0!==_channel$url?_channel$url:"",isByMe:isByMe,isReactionEnabled:isReactionEnabledInChannel})})).when(utils.S,(function(){return react_default.a.createElement(ThumbnailMessageItemBody.a,{className:MESSAGE_ITEM_BODY_CLASSNAME,message:message,isByMe:isByMe,mouseHover:mouseHover,isReactionEnabled:isReactionEnabledInChannel,showFileViewer:showFileViewer,style:isMobile?{width:"100%"}:{}})})).otherwise((function(message){return react_default.a.createElement(UnknownMessageItemBody.a,{className:MESSAGE_ITEM_BODY_CLASSNAME,message:message,isByMe:isByMe,mouseHover:mouseHover,isReactionEnabled:isReactionEnabledInChannel})}))}try{MessageBody.displayName="MessageBody",MessageBody.__docgenInfo={description:"",displayName:"MessageBody",props:{channel:{defaultValue:null,description:"",name:"channel",required:!0,type:{name:"GroupChannel"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"CoreMessageType"}},showFileViewer:{defaultValue:null,description:"",name:"showFileViewer",required:!1,type:{name:"(bool: boolean) => void"}},onMessageHeightChange:{defaultValue:null,description:"",name:"onMessageHeightChange",required:!1,type:{name:"(isBottomMessageAffected?: boolean) => void"}},mouseHover:{defaultValue:null,description:"",name:"mouseHover",required:!0,type:{name:"boolean"}},isMobile:{defaultValue:null,description:"",name:"isMobile",required:!0,type:{name:"boolean"}},config:{defaultValue:null,description:"",name:"config",required:!0,type:{name:"SendBirdStateConfig"}},isReactionEnabledInChannel:{defaultValue:null,description:"",name:"isReactionEnabledInChannel",required:!0,type:{name:"boolean"}},isByMe:{defaultValue:null,description:"",name:"isByMe",required:!0,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MessageContent/MessageBody/index.tsx#MessageBody"]={docgenInfo:MessageBody.__docgenInfo,name:"MessageBody",path:"src/ui/MessageContent/MessageBody/index.tsx#MessageBody"})}catch(__react_docgen_typescript_loader_error){}function MessageHeader(props){var _channel$members,channel=props.channel,message=props.message;return react_default.a.createElement(Label.d,{className:"sendbird-message-content__middle__sender-name",type:Label.c.CAPTION_2,color:Label.a.ONBACKGROUND_2},(null==channel||null===(_channel$members=channel.members)||void 0===_channel$members||null===(_channel$members=_channel$members.find((function(member){var _message$sender;return(null==member?void 0:member.userId)===(null==message||null===(_message$sender=message.sender)||void 0===_message$sender?void 0:_message$sender.userId)})))||void 0===_channel$members?void 0:_channel$members.nickname)||Object(utils.p)(message))}try{MessageHeader.displayName="MessageHeader",MessageHeader.__docgenInfo={description:"",displayName:"MessageHeader",props:{channel:{defaultValue:null,description:"",name:"channel",required:!0,type:{name:"GroupChannel"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"CoreMessageType"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MessageContent/MessageHeader/index.tsx#MessageHeader"]={docgenInfo:MessageHeader.__docgenInfo,name:"MessageHeader",path:"src/ui/MessageContent/MessageHeader/index.tsx#MessageHeader"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./src/ui/FeedbackIconButton/index.scss");var FeedbackIconButton_FeedbackIconButton=react_default.a.forwardRef((function(props,ref){var children=props.children,isSelected=props.isSelected,_props$onClick=props.onClick,_onClick=void 0===_props$onClick?function(){}:_props$onClick,_props$disabled=props.disabled,disabled=void 0!==_props$disabled&&_props$disabled;return react_default.a.createElement("button",{className:["sendbird-iconbutton__feedback",isSelected?"sendbird-iconbutton__feedback__pressed":"",disabled?"sendbird-iconbutton__feedback__disabled":""].join(" "),ref:ref,type:"button",onClick:function onClick(e){null==_onClick||_onClick(e)},disabled:disabled},react_default.a.createElement("span",{className:["sendbird-iconbutton__feedback__inner",isSelected?"sendbird-iconbutton__feedback__inner__pressed":"",disabled?"sendbird-iconbutton__feedback__inner__disabled":""].join(" ")},children))})),ui_FeedbackIconButton=FeedbackIconButton_FeedbackIconButton;try{FeedbackIconButton_FeedbackIconButton.displayName="FeedbackIconButton",FeedbackIconButton_FeedbackIconButton.__docgenInfo={description:"",displayName:"FeedbackIconButton",props:{isSelected:{defaultValue:null,description:"",name:"isSelected",required:!0,type:{name:"boolean"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"(e: MouseEvent) => void"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/FeedbackIconButton/index.tsx#FeedbackIconButton"]={docgenInfo:FeedbackIconButton_FeedbackIconButton.__docgenInfo,name:"FeedbackIconButton",path:"src/ui/FeedbackIconButton/index.tsx#FeedbackIconButton"})}catch(__react_docgen_typescript_loader_error){}var BottomSheet=__webpack_require__("./src/ui/BottomSheet/index.tsx");__webpack_require__("./src/ui/MobileFeedbackMenu/index.scss");function MobileFeedbackMenu_MobileFeedbackMenu(props){var hideMenu=props.hideMenu,onEditFeedback=props.onEditFeedback,onRemoveFeedback=props.onRemoveFeedback,stringSet=Object(LocalizationContext.c)().stringSet;return react_default.a.createElement(BottomSheet.a,{onBackdropClick:hideMenu},react_default.a.createElement("div",{className:"sendbird-message__bottomsheet--feedback-options-menu"},react_default.a.createElement("div",{className:"sendbird-message__bottomsheet--feedback-option",onClick:function onClick(){hideMenu(),onEditFeedback()}},react_default.a.createElement(Label.d,{type:Label.c.BODY_1,color:Label.a.ONBACKGROUND_1},stringSet.EDIT_COMMENT)),react_default.a.createElement("div",{className:"sendbird-message__bottomsheet--feedback-option",onClick:function onClick(){hideMenu(),onRemoveFeedback()}},react_default.a.createElement(Label.d,{type:Label.c.BODY_1,color:Label.a.ERROR},stringSet.REMOVE_FEEDBACK))))}try{MobileFeedbackMenu_MobileFeedbackMenu.displayName="MobileFeedbackMenu",MobileFeedbackMenu_MobileFeedbackMenu.__docgenInfo={description:"",displayName:"MobileFeedbackMenu",props:{hideMenu:{defaultValue:null,description:"",name:"hideMenu",required:!0,type:{name:"() => void"}},onEditFeedback:{defaultValue:null,description:"",name:"onEditFeedback",required:!0,type:{name:"() => void"}},onRemoveFeedback:{defaultValue:null,description:"",name:"onRemoveFeedback",required:!0,type:{name:"() => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MobileFeedbackMenu/index.tsx#MobileFeedbackMenu"]={docgenInfo:MobileFeedbackMenu_MobileFeedbackMenu.__docgenInfo,name:"MobileFeedbackMenu",path:"src/ui/MobileFeedbackMenu/index.tsx#MobileFeedbackMenu"})}catch(__react_docgen_typescript_loader_error){}var Modal=__webpack_require__("./src/ui/Modal/index.tsx"),Button=__webpack_require__("./src/ui/Button/index.tsx"),Input=__webpack_require__("./src/ui/Input/index.tsx"),useKeyDown=(__webpack_require__("./src/modules/Channel/components/MessageFeedbackModal/index.scss"),__webpack_require__("./src/hooks/useKeyDown/useKeyDown.ts"));function MessageFeedbackModal_MessageFeedbackModal(props){var _message$myFeedback,_message$myFeedback2,selectedFeedback=props.selectedFeedback,message=props.message,onClose=props.onClose,onSubmit=props.onSubmit,onUpdate=props.onUpdate,onRemove=props.onRemove,stringSet=Object(react.useContext)(LocalizationContext.a).stringSet,isMobile=Object(MediaQueryContext.b)().isMobile,isEdit=(null==message?void 0:message.myFeedback)&&selectedFeedback===message.myFeedback.rating,hasComment=null==message||null===(_message$myFeedback=message.myFeedback)||void 0===_message$myFeedback?void 0:_message$myFeedback.comment,onSubmitWrapper=function onSubmitWrapper(){var _inputRef$current$val;if(selectedFeedback){var comment=null!==(_inputRef$current$val=inputRef.current.value)&&void 0!==_inputRef$current$val?_inputRef$current$val:"";isEdit?comment!==message.myFeedback.comment?null==onUpdate||onUpdate(selectedFeedback,comment):null==onClose||onClose():message.myFeedback||null==onSubmit||onSubmit(selectedFeedback,comment)}},modalRef=Object(react.useRef)(null),inputRef=Object(react.useRef)(null),onKeyDown=Object(useKeyDown.a)(modalRef,{Enter:function Enter(){return onSubmitWrapper()},Escape:function Escape(){return null==onClose?void 0:onClose()}});return react_default.a.createElement("div",{onKeyDown:onKeyDown},react_default.a.createElement(Modal.b,{contentClassName:"sendbird-message-feedback-modal-content__mobile",type:Button.b.PRIMARY,onCancel:onClose,onSubmit:function onSubmit(){onSubmitWrapper()},submitText:stringSet.BUTTON__SUBMIT,renderHeader:function renderHeader(){return react_default.a.createElement("div",{className:"sendbird-modal__header"},react_default.a.createElement(Label.d,{type:Label.c.H_1,color:Label.a.ONBACKGROUND_1,className:"sendbird-message-feedback-modal-header"},stringSet.FEEDBACK_MODAL_TITLE))},customFooter:react_default.a.createElement("div",{className:"sendbird-message-feedback-modal-footer__root"},!isMobile&&null!=message&&message.myFeedback&&selectedFeedback===message.myFeedback.rating?react_default.a.createElement(Button.c,{type:Button.b.WARNING,onClick:onRemove,labelType:Label.c.BUTTON_3},stringSet.BUTTON__REMOVE_FEEDBACK):react_default.a.createElement("div",null),react_default.a.createElement("div",{className:"sendbird-message-feedback-modal-footer__right-content"},react_default.a.createElement(Button.c,{type:Button.b.SECONDARY,onClick:onClose},react_default.a.createElement(Label.d,{type:Label.c.BUTTON_3,color:Label.a.ONBACKGROUND_1},stringSet.BUTTON__CANCEL)),react_default.a.createElement(Button.c,{onClick:function onClick(){return onSubmitWrapper()}},react_default.a.createElement(Label.d,{type:Label.c.BUTTON_3,color:Label.a.ONCONTENT_1},hasComment?stringSet.BUTTON__SAVE:stringSet.BUTTON__SUBMIT))))},react_default.a.createElement("div",{className:"sendbird-message-feedback-modal-body__root"},react_default.a.createElement(Input.b,{name:"sendbird-message-feedback-modal-body__root",ref:inputRef,value:isEdit?null===(_message$myFeedback2=message.myFeedback)||void 0===_message$myFeedback2?void 0:_message$myFeedback2.comment:void 0,placeHolder:stringSet.FEEDBACK_CONTENT_PLACEHOLDER,autoFocus:!0}))))}try{MessageFeedbackModal_MessageFeedbackModal.displayName="MessageFeedbackModal",MessageFeedbackModal_MessageFeedbackModal.__docgenInfo={description:"",displayName:"MessageFeedbackModal",props:{selectedFeedback:{defaultValue:null,description:"",name:"selectedFeedback",required:!0,type:{name:"enum",value:[{value:'"good"'},{value:'"bad"'}]}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"CoreMessageType"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!1,type:{name:"() => void"}},onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!1,type:{name:"(selectedFeedback: FeedbackRating, comment: string) => void"}},onUpdate:{defaultValue:null,description:"",name:"onUpdate",required:!1,type:{name:"(selectedFeedback: FeedbackRating, comment: string) => void"}},onRemove:{defaultValue:null,description:"",name:"onRemove",required:!1,type:{name:"() => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/Channel/components/MessageFeedbackModal/index.tsx#MessageFeedbackModal"]={docgenInfo:MessageFeedbackModal_MessageFeedbackModal.__docgenInfo,name:"MessageFeedbackModal",path:"src/modules/Channel/components/MessageFeedbackModal/index.tsx#MessageFeedbackModal"})}catch(__react_docgen_typescript_loader_error){}var SbFeedbackStatus=function(SbFeedbackStatus){return SbFeedbackStatus.NOT_APPLICABLE="NOT_APPLICABLE",SbFeedbackStatus.NO_FEEDBACK="NO_FEEDBACK",SbFeedbackStatus.SUBMITTED="SUBMITTED",SbFeedbackStatus}({});function MessageFeedbackFailedModal(props){var text=props.text,onCancel=props.onCancel,stringSet=Object(react.useContext)(LocalizationContext.a).stringSet,modalRef=Object(react.useRef)(null),onKeyDown=Object(useKeyDown.a)(modalRef,{Enter:function Enter(){return null==onCancel?void 0:onCancel()},Escape:function Escape(){return null==onCancel?void 0:onCancel()}});return react_default.a.createElement("div",{onKeyDown:onKeyDown},react_default.a.createElement(Modal.b,{contentClassName:"sendbird-message-feedback-modal-content__mobile",type:Button.b.PRIMARY,onSubmit:onCancel,onClose:onCancel,submitText:stringSet.BUTTON__OK,renderHeader:function renderHeader(){return react_default.a.createElement("div",{className:"sendbird-modal__header"},react_default.a.createElement(Label.d,{type:Label.c.H_1,color:Label.a.ONBACKGROUND_1,className:"sendbird-message-feedback-modal-header"},text))},customFooter:react_default.a.createElement("div",{className:"sendbird-message-feedback-modal-footer__root_failed"},react_default.a.createElement(Button.c,{onClick:onCancel},react_default.a.createElement(Label.d,{type:Label.c.BUTTON_3,color:Label.a.ONCONTENT_1},stringSet.BUTTON__OK)))}))}try{MessageFeedbackFailedModal.displayName="MessageFeedbackFailedModal",MessageFeedbackFailedModal.__docgenInfo={description:"",displayName:"MessageFeedbackFailedModal",props:{text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}},onCancel:{defaultValue:null,description:"",name:"onCancel",required:!1,type:{name:"() => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/modules/Channel/components/MessageFeedbackFailedModal/index.tsx#MessageFeedbackFailedModal"]={docgenInfo:MessageFeedbackFailedModal.__docgenInfo,name:"MessageFeedbackFailedModal",path:"src/modules/Channel/components/MessageFeedbackFailedModal/index.tsx#MessageFeedbackFailedModal"})}catch(__react_docgen_typescript_loader_error){}function MessageContent_typeof(o){return MessageContent_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},MessageContent_typeof(o)}function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}function MessageContent_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function MessageContent_objectSpread(e){for(var r=1;rarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&"THREAD"===replyType,isFeedbackMessage=!isByMe&&(null==message?void 0:message.myFeedbackStatus)&&message.myFeedbackStatus!==SbFeedbackStatus.NOT_APPLICABLE,isFeedbackEnabled=(null==config||null===(_config$groupChannel=config.groupChannel)||void 0===_config$groupChannel?void 0:_config$groupChannel.enableFeedback)&&isFeedbackMessage,isNotTemplateMessage=!Object(utils.O)(message),showLongPressMenu=isNotTemplateMessage&&isMobile,showOutgoingMenu=isNotTemplateMessage&&isByMe&&!isMobile,showThreadReplies=isNotTemplateMessage&&displayThreadReplies,showRightContent=isNotTemplateMessage&&!isByMe&&!isMobile,isTimestampBottom=!!uiContainerType,onCloseFeedbackForm=function onCloseFeedbackForm(){setShowFeedbackModal(!1)},openFeedbackFormOrMenu=function openFeedbackFormOrMenu(){isMobile?setShowFeedbackOptionsMenu(!0):setShowFeedbackModal(!0)},longPress=Object(useLongPress.a)({onLongPress:function onLongPress(){showLongPressMenu&&setShowMenu(!0)},onClick:utils_utils.b},{delay:300,shouldPreventDefault:!1});return null!=message&&null!==(_message$isAdminMessa=message.isAdminMessage)&&void 0!==_message$isAdminMessa&&_message$isAdminMessa.call(message)||"admin"===(null==message?void 0:message.messageType)?react_default.a.createElement(AdminMessage.a,{message:message}):(Object(react.useEffect)((function(){setTotalBottom(function getTotalBottom(){var sum=2;return timestampRef.current&&isTimestampBottom&&(sum+=4+timestampRef.current.clientHeight),threadRepliesRef.current&&(sum+=4+threadRepliesRef.current.clientHeight),feedbackButtonsRef.current&&(sum+=4+feedbackButtonsRef.current.clientHeight),sum}())}),[isTimestampBottom]),react_default.a.createElement("div",{className:Object(utils.i)([className,"sendbird-message-content",isByMeClassName,uiContainerType]),onMouseOver:function onMouseOver(){return setMouseHover(!0)},onMouseLeave:function onMouseLeave(){return setMouseHover(!1)}},react_default.a.createElement("div",{className:Object(utils.i)(["sendbird-message-content__left",isReactionEnabledClassName,isByMeClassName,useReplyingClassName])},renderSenderProfile(MessageContent_objectSpread(MessageContent_objectSpread({},props),{},{isByMe:isByMe,displayThreadReplies:displayThreadReplies,bottom:totalBottom>0?totalBottom+"px":""})),showOutgoingMenu&&react_default.a.createElement("div",{className:Object(utils.i)(["sendbird-message-content-menu",isReactionEnabledClassName,supposedHoverClassName,isByMeClassName])},renderMessageMenu({channel:channel,message:message,isByMe:isByMe,replyType:replyType,disabled:disabled,showEdit:showEdit,showRemove:showRemove,resendMessage:resendMessage,setQuoteMessage:setQuoteMessage,setSupposedHover:setSupposedHover,onReplyInThread:function onReplyInThread(_ref2){var message=_ref2.message;if(threadReplySelectType===context_const.c.THREAD)_onReplyInThread({message:message});else if(threadReplySelectType===context_const.c.PARENT){var _message$parentMessag;scrollToMessage(null===(_message$parentMessag=message.parentMessage)||void 0===_message$parentMessag?void 0:_message$parentMessag.createdAt,message.parentMessageId)}},deleteMessage:deleteMessage}),isReactionEnabledInChannel&&renderEmojiMenu({message:message,userId:userId,emojiContainer:emojiContainer,toggleReaction:toggleReaction,setSupposedHover:setSupposedHover}))),react_default.a.createElement("div",_extends({className:Object(utils.i)(["sendbird-message-content__middle",Object(utils.O)(message)?"sendbird-message-content__middle__for_template_message":"",uiContainerType])},isMobile?MessageContent_objectSpread({},longPress):{},{ref:contentRef}),!isByMe&&!chainTop&&!useReplying&&renderMessageHeader(props),useReplying?react_default.a.createElement("div",{className:Object(utils.i)(["sendbird-message-content__middle__quote-message",isByMe?"outgoing":"incoming",useReplyingClassName])},react_default.a.createElement(QuoteMessage.a,{className:"sendbird-message-content__middle__quote-message__quote",message:message,userId:userId,isByMe:isByMe,isUnavailable:(null!==(_channel$messageOffse=null==channel?void 0:channel.messageOffsetTimestamp)&&void 0!==_channel$messageOffse?_channel$messageOffse:0)>(null!==(_message$parentMessag2=null===(_message$parentMessag3=message.parentMessage)||void 0===_message$parentMessag3?void 0:_message$parentMessag3.createdAt)&&void 0!==_message$parentMessag2?_message$parentMessag2:0),onClick:function onClick(){var _message$parentMessag4;"THREAD"===replyType&&threadReplySelectType===context_const.c.THREAD&&(null==onQuoteMessageClick||onQuoteMessageClick({message:message})),("QUOTE_REPLY"===replyType||"THREAD"===replyType&&threadReplySelectType===context_const.c.PARENT)&&null!=message&&null!==(_message$parentMessag4=message.parentMessage)&&void 0!==_message$parentMessag4&&_message$parentMessag4.createdAt&&null!=message&&message.parentMessageId&&scrollToMessage(message.parentMessage.createdAt,message.parentMessageId)}})):null,react_default.a.createElement("div",{className:Object(utils.i)(["sendbird-message-content__middle__body-container",Object(utils.O)(message)?"sendbird-message-content__middle__for_template_message":""])},isByMe&&!chainBottom&&react_default.a.createElement("div",{className:Object(utils.i)(["sendbird-message-content__middle__body-container__created-at","left",supposedHoverClassName,uiContainerType]),ref:timestampRef},react_default.a.createElement("div",{className:"sendbird-message-content__middle__body-container__created-at__component-container"},react_default.a.createElement(MessageStatus.b,{message:message,channel:channel}))),renderMessageBody({message:message,channel:channel,showFileViewer:showFileViewer,onMessageHeightChange:onMessageHeightChange,mouseHover:mouseHover,isMobile:isMobile,config:config,isReactionEnabledInChannel:isReactionEnabledInChannel,isByMe:isByMe}),isReactionEnabledInChannel&&(null==message||null===(_message$reactions=message.reactions)||void 0===_message$reactions?void 0:_message$reactions.length)>0&&react_default.a.createElement("div",{className:Object(utils.i)(["sendbird-message-content-reactions",Object(utils.F)(message)?"image-grid":!isByMe||Object(utils.S)(message)||Object(utils.G)(message)?"":"primary",mouseHover?"mouse-hover":""])},renderEmojiReactions({userId:userId,message:message,channel:channel,isByMe:isByMe,emojiContainer:emojiContainer,memberNicknamesMap:nicknamesMap,toggleReaction:toggleReaction,onPressUserProfile:onPressUserProfileHandler})),!isByMe&&!chainBottom&&react_default.a.createElement(Label.d,{className:Object(utils.i)(["sendbird-message-content__middle__body-container__created-at","right",supposedHoverClassName,uiContainerType]),type:Label.c.CAPTION_3,color:Label.a.ONBACKGROUND_2,ref:timestampRef},Object(format.a)((null==message?void 0:message.createdAt)||0,"p",{locale:dateLocale}))),isTimestampBottom&&react_default.a.createElement("div",{style:{width:"100%",height:(null!==(_timestampRef$current=null===(_timestampRef$current2=timestampRef.current)||void 0===_timestampRef$current2?void 0:_timestampRef$current2.clientHeight)&&void 0!==_timestampRef$current?_timestampRef$current:0)+"px",marginTop:"4px"}}),showThreadReplies&&react_default.a.createElement(ThreadReplies.a,{className:"sendbird-message-content__middle__thread-replies",threadInfo:null==message?void 0:message.threadInfo,onClick:function onClick(){return null==_onReplyInThread?void 0:_onReplyInThread({message:message})},ref:threadRepliesRef}),isFeedbackEnabled&&react_default.a.createElement("div",{className:"sendbird-message-content__middle__body-container__feedback-buttons-container",ref:feedbackButtonsRef},react_default.a.createElement(ui_FeedbackIconButton,{isSelected:(null==message||null===(_message$myFeedback=message.myFeedback)||void 0===_message$myFeedback?void 0:_message$myFeedback.rating)===_bundle_121c0f7c.z.GOOD,onClick:_asyncToGenerator(_regeneratorRuntime().mark((function _callee(){var _message$myFeedback2,_config$logger,_config$logger$error;return _regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:if(null!=message&&null!==(_message$myFeedback2=message.myFeedback)&&void 0!==_message$myFeedback2&&_message$myFeedback2.rating){_context.next=13;break}return _context.prev=1,_context.next=4,message.submitFeedback({rating:_bundle_121c0f7c.z.GOOD});case 4:openFeedbackFormOrMenu(),_context.next=11;break;case 7:_context.prev=7,_context.t0=_context.catch(1),null==config||null===(_config$logger=config.logger)||void 0===_config$logger||null===(_config$logger$error=_config$logger.error)||void 0===_config$logger$error||_config$logger$error.call(_config$logger,"Channel: Submit feedback failed.",_context.t0),setFeedbackFailedText(stringSet.FEEDBACK_FAILED_SUBMIT);case 11:_context.next=14;break;case 13:openFeedbackFormOrMenu();case 14:case"end":return _context.stop()}}),_callee,null,[[1,7]])}))),disabled:(null==message?void 0:message.myFeedback)&&message.myFeedback.rating!==_bundle_121c0f7c.z.GOOD},react_default.a.createElement(Icon.c,{type:Icon.b.FEEDBACK_LIKE,width:"24px",height:"24px"})),react_default.a.createElement(ui_FeedbackIconButton,{isSelected:(null==message||null===(_message$myFeedback3=message.myFeedback)||void 0===_message$myFeedback3?void 0:_message$myFeedback3.rating)===_bundle_121c0f7c.z.BAD,onClick:_asyncToGenerator(_regeneratorRuntime().mark((function _callee2(){var _message$myFeedback4,_config$logger2,_config$logger2$error;return _regeneratorRuntime().wrap((function _callee2$(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:if(null!=message&&null!==(_message$myFeedback4=message.myFeedback)&&void 0!==_message$myFeedback4&&_message$myFeedback4.rating){_context2.next=13;break}return _context2.prev=1,_context2.next=4,message.submitFeedback({rating:_bundle_121c0f7c.z.BAD});case 4:openFeedbackFormOrMenu(),_context2.next=11;break;case 7:_context2.prev=7,_context2.t0=_context2.catch(1),null==config||null===(_config$logger2=config.logger)||void 0===_config$logger2||null===(_config$logger2$error=_config$logger2.error)||void 0===_config$logger2$error||_config$logger2$error.call(_config$logger2,"Channel: Submit feedback failed.",_context2.t0),setFeedbackFailedText(stringSet.FEEDBACK_FAILED_SUBMIT);case 11:_context2.next=14;break;case 13:openFeedbackFormOrMenu();case 14:case"end":return _context2.stop()}}),_callee2,null,[[1,7]])}))),disabled:(null==message?void 0:message.myFeedback)&&message.myFeedback.rating!==_bundle_121c0f7c.z.BAD},react_default.a.createElement(Icon.c,{type:Icon.b.FEEDBACK_DISLIKE,width:"24px",height:"24px"})))),showRightContent&&react_default.a.createElement("div",{className:Object(utils.i)(["sendbird-message-content__right",chainTopClassName,isReactionEnabledClassName,useReplyingClassName])},react_default.a.createElement("div",{className:Object(utils.i)(["sendbird-message-content-menu",chainTopClassName,supposedHoverClassName,isByMeClassName])},isReactionEnabledInChannel&&renderEmojiMenu({className:"sendbird-message-content-menu__reaction-menu",message:message,userId:userId,emojiContainer:emojiContainer,toggleReaction:toggleReaction,setSupposedHover:setSupposedHover}),renderMessageMenu({className:"sendbird-message-content-menu__normal-menu",channel:channel,message:message,isByMe:isByMe,replyType:replyType,disabled:disabled,showRemove:showRemove,resendMessage:resendMessage,setQuoteMessage:setQuoteMessage,setSupposedHover:setSupposedHover,onReplyInThread:function onReplyInThread(_ref5){var message=_ref5.message;if(threadReplySelectType===context_const.c.THREAD)_onReplyInThread({message:message});else if(threadReplySelectType===context_const.c.PARENT){var _message$parentMessag5;scrollToMessage(null===(_message$parentMessag5=message.parentMessage)||void 0===_message$parentMessag5?void 0:_message$parentMessag5.createdAt,message.parentMessageId)}},deleteMessage:deleteMessage}))),showMenu&&((null==message||null===(_message$isUserMessag=message.isUserMessage)||void 0===_message$isUserMessag?void 0:_message$isUserMessag.call(message))||(null==message||null===(_message$isFileMessag=message.isFileMessage)||void 0===_message$isFileMessag?void 0:_message$isFileMessag.call(message))||(null==message||null===(_message$isMultipleFi=message.isMultipleFilesMessage)||void 0===_message$isMultipleFi?void 0:_message$isMultipleFi.call(message)))&&renderMobileMenuOnLongPress({parentRef:contentRef,channel:channel,hideMenu:function hideMenu(){setShowMenu(!1)},message:message,isReactionEnabled:isReactionEnabledInChannel,isByMe:isByMe,userId:userId,replyType:replyType,disabled:disabled,showRemove:showRemove,emojiContainer:emojiContainer,resendMessage:resendMessage,deleteMessage:deleteMessage,setQuoteMessage:setQuoteMessage,toggleReaction:toggleReaction,showEdit:showEdit,onReplyInThread:function onReplyInThread(_ref6){var message=_ref6.message;if(threadReplySelectType===context_const.c.THREAD)null==_onReplyInThread||_onReplyInThread({message:message});else if(threadReplySelectType===context_const.c.PARENT){var _message$parentMessag6;null==scrollToMessage||scrollToMessage((null==message||null===(_message$parentMessag6=message.parentMessage)||void 0===_message$parentMessag6?void 0:_message$parentMessag6.createdAt)||0,(null==message?void 0:message.parentMessageId)||0)}}}),(null==message||null===(_message$myFeedback5=message.myFeedback)||void 0===_message$myFeedback5?void 0:_message$myFeedback5.rating)&&showFeedbackOptionsMenu&&react_default.a.createElement(MobileFeedbackMenu_MobileFeedbackMenu,{hideMenu:function hideMenu(){setShowFeedbackOptionsMenu(!1)},onEditFeedback:function onEditFeedback(){setShowFeedbackOptionsMenu(!1),setShowFeedbackModal(!0)},onRemoveFeedback:_asyncToGenerator(_regeneratorRuntime().mark((function _callee3(){var _config$logger3,_config$logger3$error;return _regeneratorRuntime().wrap((function _callee3$(_context3){for(;;)switch(_context3.prev=_context3.next){case 0:return _context3.prev=0,_context3.next=3,message.deleteFeedback(message.myFeedback.id);case 3:_context3.next=9;break;case 5:_context3.prev=5,_context3.t0=_context3.catch(0),null==config||null===(_config$logger3=config.logger)||void 0===_config$logger3||null===(_config$logger3$error=_config$logger3.error)||void 0===_config$logger3$error||_config$logger3$error.call(_config$logger3,"Channel: Delete feedback failed.",_context3.t0),setFeedbackFailedText(stringSet.FEEDBACK_FAILED_DELETE);case 9:setShowFeedbackOptionsMenu(!1);case 10:case"end":return _context3.stop()}}),_callee3,null,[[0,5]])})))}),(null==message||null===(_message$myFeedback6=message.myFeedback)||void 0===_message$myFeedback6?void 0:_message$myFeedback6.rating)&&showFeedbackModal&&react_default.a.createElement(MessageFeedbackModal_MessageFeedbackModal,{selectedFeedback:message.myFeedback.rating,message:message,onUpdate:function(){var _ref8=_asyncToGenerator(_regeneratorRuntime().mark((function _callee4(selectedFeedback,comment){var newFeedback,_config$logger4,_config$logger4$error;return _regeneratorRuntime().wrap((function _callee4$(_context4){for(;;)switch(_context4.prev=_context4.next){case 0:return newFeedback=new _bundle_121c0f7c.U({id:message.myFeedback.id,rating:selectedFeedback,comment:comment}),_context4.prev=1,_context4.next=4,message.updateFeedback(newFeedback);case 4:_context4.next=10;break;case 6:_context4.prev=6,_context4.t0=_context4.catch(1),null==config||null===(_config$logger4=config.logger)||void 0===_config$logger4||null===(_config$logger4$error=_config$logger4.error)||void 0===_config$logger4$error||_config$logger4$error.call(_config$logger4,"Channel: Update feedback failed.",_context4.t0),setFeedbackFailedText(stringSet.FEEDBACK_FAILED_SAVE);case 10:onCloseFeedbackForm();case 11:case"end":return _context4.stop()}}),_callee4,null,[[1,6]])})));return function(_x,_x2){return _ref8.apply(this,arguments)}}(),onClose:onCloseFeedbackForm,onRemove:_asyncToGenerator(_regeneratorRuntime().mark((function _callee5(){var _config$logger5,_config$logger5$error;return _regeneratorRuntime().wrap((function _callee5$(_context5){for(;;)switch(_context5.prev=_context5.next){case 0:return _context5.prev=0,_context5.next=3,message.deleteFeedback(message.myFeedback.id);case 3:_context5.next=9;break;case 5:_context5.prev=5,_context5.t0=_context5.catch(0),null==config||null===(_config$logger5=config.logger)||void 0===_config$logger5||null===(_config$logger5$error=_config$logger5.error)||void 0===_config$logger5$error||_config$logger5$error.call(_config$logger5,"Channel: Delete feedback failed.",_context5.t0),setFeedbackFailedText(stringSet.FEEDBACK_FAILED_DELETE);case 9:onCloseFeedbackForm();case 10:case"end":return _context5.stop()}}),_callee5,null,[[0,5]])})))}),feedbackFailedText&&react_default.a.createElement(MessageFeedbackFailedModal,{text:feedbackFailedText,onCancel:function onCancel(){setFeedbackFailedText("")}})))}try{MessageContent_MessageContent.displayName="MessageContent",MessageContent_MessageContent.__docgenInfo={description:"",displayName:"MessageContent",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string | string[]"}},userId:{defaultValue:null,description:"",name:"userId",required:!0,type:{name:"string"}},channel:{defaultValue:null,description:"",name:"channel",required:!0,type:{name:"GroupChannel"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"CoreMessageType"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},chainTop:{defaultValue:null,description:"",name:"chainTop",required:!1,type:{name:"boolean"}},chainBottom:{defaultValue:null,description:"",name:"chainBottom",required:!1,type:{name:"boolean"}},isReactionEnabled:{defaultValue:null,description:"",name:"isReactionEnabled",required:!1,type:{name:"boolean"}},disableQuoteMessage:{defaultValue:null,description:"",name:"disableQuoteMessage",required:!1,type:{name:"boolean"}},replyType:{defaultValue:null,description:"",name:"replyType",required:!1,type:{name:"enum",value:[{value:'"NONE"'},{value:'"QUOTE_REPLY"'},{value:'"THREAD"'}]}},threadReplySelectType:{defaultValue:null,description:"",name:"threadReplySelectType",required:!1,type:{name:"enum",value:[{value:'"PARENT"'},{value:'"THREAD"'}]}},nicknamesMap:{defaultValue:null,description:"",name:"nicknamesMap",required:!1,type:{name:"Map"}},emojiContainer:{defaultValue:null,description:"",name:"emojiContainer",required:!1,type:{name:"EmojiContainer"}},scrollToMessage:{defaultValue:null,description:"",name:"scrollToMessage",required:!1,type:{name:"(createdAt: number, messageId: number) => void"}},showEdit:{defaultValue:null,description:"",name:"showEdit",required:!1,type:{name:"(bool: boolean) => void"}},showRemove:{defaultValue:null,description:"",name:"showRemove",required:!1,type:{name:"(bool: boolean) => void"}},showFileViewer:{defaultValue:null,description:"",name:"showFileViewer",required:!1,type:{name:"(bool: boolean) => void"}},resendMessage:{defaultValue:null,description:"",name:"resendMessage",required:!1,type:{name:"(message: SendableMessageType) => void"}},deleteMessage:{defaultValue:null,description:"",name:"deleteMessage",required:!1,type:{name:"(message: CoreMessageType) => Promise"}},toggleReaction:{defaultValue:null,description:"",name:"toggleReaction",required:!1,type:{name:"(message: SendableMessageType, reactionKey: string, isReacted: boolean) => void"}},setQuoteMessage:{defaultValue:null,description:"",name:"setQuoteMessage",required:!1,type:{name:"(message: SendableMessageType) => void"}},onReplyInThread:{defaultValue:null,description:"",name:"onReplyInThread",required:!1,type:{name:"(props: { message: SendableMessageType; }) => void"}},onQuoteMessageClick:{defaultValue:null,description:"",name:"onQuoteMessageClick",required:!1,type:{name:"(props: { message: SendableMessageType; }) => void"}},onMessageHeightChange:{defaultValue:null,description:"",name:"onMessageHeightChange",required:!1,type:{name:"(isBottomMessageAffected?: boolean) => void"}},renderSenderProfile:{defaultValue:null,description:"",name:"renderSenderProfile",required:!1,type:{name:"(props: MessageProfileProps) => ReactNode"}},renderMessageBody:{defaultValue:null,description:"",name:"renderMessageBody",required:!1,type:{name:"(props: MessageBodyProps) => ReactNode"}},renderMessageHeader:{defaultValue:null,description:"",name:"renderMessageHeader",required:!1,type:{name:"(props: MessageHeaderProps) => ReactNode"}},renderMessageMenu:{defaultValue:null,description:"",name:"renderMessageMenu",required:!1,type:{name:"(props: MessageMenuProps) => ReactNode"}},renderEmojiMenu:{defaultValue:null,description:"",name:"renderEmojiMenu",required:!1,type:{name:"(props: MessageEmojiMenuProps) => ReactNode"}},renderEmojiReactions:{defaultValue:null,description:"",name:"renderEmojiReactions",required:!1,type:{name:"(props: EmojiReactionsProps) => ReactNode"}},renderMobileMenuOnLongPress:{defaultValue:null,description:"",name:"renderMobileMenuOnLongPress",required:!1,type:{name:"(props: MobileBottomSheetProps) => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MessageContent/index.tsx#MessageContent"]={docgenInfo:MessageContent_MessageContent.__docgenInfo,name:"MessageContent",path:"src/ui/MessageContent/index.tsx#MessageContent"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/MessageContent/stories/MessageContent.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return WithControl})),__webpack_require__.d(__webpack_exports__,"withText",(function(){return withText}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _index_tsx__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/MessageContent/index.tsx"),_ContextMenu__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/ui/ContextMenu/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/MessageContent",component:_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,parameters:{docs:{description:{component:'\n `import MessageContent from "@sendbird/uikit-react/ui/MessageContent";`\n'}}}};var WithControl=function WithControl(arg){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,Object.assign({userId:"hoon-lord-01",channel:{isGroupChannel:function isGroupChannel(){return!0},getUnreadMemberCount:function getUnreadMemberCount(_){return 10},getUndeliveredMemberCount:function getUndeliveredMemberCount(_){return 0}},message:{message:"i am message",messageType:"user",sender:{profileUrl:"",nickname:"Sendorous",userId:"hoon-army-001",friendName:""},createdAt:0,updatedAt:0,sendingStatus:"succeeded",ogMetaData:null,reactions:[{key:"emoji1",userIds:["hoon-army-001","hoon-army-002","hoon-army-004"]}],isAdminMessage:function isAdminMessage(){return!1},isResendable:function isResendable(){return!1}}},arg))};WithControl.displayName="WithControl";var withText=function withText(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("div",{children:[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{userId:"hoon-lord-01",channel:{isGroupChannel:function isGroupChannel(){return!0},getUnreadMemberCount:function getUnreadMemberCount(_){return 10},getUndeliveredMemberCount:function getUndeliveredMemberCount(_){return 0}},message:{message:"i am message",messageType:"user",sender:{profileUrl:"",nickname:"Sendorous",userId:"hoon-army-001",friendName:""},createdAt:0,updatedAt:0,sendingStatus:"succeeded",ogMetaData:null,reactions:[{key:"emoji1",userIds:["hoon-army-001","hoon-army-002","hoon-army-004"]}],isAdminMessage:function isAdminMessage(){return!1},isResendable:function isResendable(){return!1}},optionalProps:{isReactionEnabled:!0,emojiContainer:{emojiCategories:[{emojis:[{key:"emoji1",url:""}]},{emojis:[{key:"emoji2",url:""}]}]}}}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("br",{}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("br",{}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div",{style:{width:"100%",textAlign:"right"},children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{userId:"hoon-army-001",channel:{isGroupChannel:function isGroupChannel(){return!0},getUnreadMemberCount:function getUnreadMemberCount(_){return 10},getUndeliveredMemberCount:function getUndeliveredMemberCount(_){return 0}},message:{message:"i am message",messageType:"user",sender:{profileUrl:"",nickname:"Sendorous",userId:"hoon-army-001",friendName:""},createdAt:0,updatedAt:0,sendingStatus:"succeeded",ogMetaData:null,reactions:[],isAdminMessage:function isAdminMessage(){return!1},isResendable:function isResendable(){return!1}},optionalProps:{isReactionEnabled:!0,emojiContainer:{emojiCategories:[{emojis:[{key:"emoji1",url:""}]},{emojis:[{key:"emoji2",url:""}]}]}}})}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_ContextMenu__WEBPACK_IMPORTED_MODULE_3__.e,{}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_ContextMenu__WEBPACK_IMPORTED_MODULE_3__.b,{})]})};withText.displayName="withText",WithControl.parameters=Object.assign({storySource:{source:"(arg) => (\n true,\n getUnreadMemberCount: (_) => 10,\n getUndeliveredMemberCount: (_) => 0,\n }}\n message={{\n message: 'i am message',\n messageType: 'user',\n sender: {\n profileUrl: '',\n nickname: 'Sendorous',\n userId: 'hoon-army-001',\n friendName: '',\n },\n createdAt: 0,\n updatedAt: 0,\n sendingStatus: 'succeeded',\n ogMetaData: null,\n reactions: [\n {\n key: 'emoji1',\n userIds: [ 'hoon-army-001', 'hoon-army-002', 'hoon-army-004' ],\n },\n ],\n // ogMetaData: { defaultImage: { url: '', alt: '' }, title: '', description: '', url: '' },\n // name: '',\n // url: '',\n // type: '',\n // thumbnails: [ { url: '' } ],\n isAdminMessage: () => false,\n isResendable: () => false,\n }}\n {...arg}\n />\n)"}},WithControl.parameters),withText.parameters=Object.assign({storySource:{source:"() => (\n
\n true,\n getUnreadMemberCount: (_) => 10,\n getUndeliveredMemberCount: (_) => 0,\n }}\n message={{\n message: 'i am message',\n messageType: 'user',\n sender: {\n profileUrl: '',\n nickname: 'Sendorous',\n userId: 'hoon-army-001',\n friendName: '',\n },\n createdAt: 0,\n updatedAt: 0,\n sendingStatus: 'succeeded',\n ogMetaData: null,\n reactions: [\n {\n key: 'emoji1',\n userIds: [ 'hoon-army-001', 'hoon-army-002', 'hoon-army-004' ],\n },\n ],\n // ogMetaData: { defaultImage: { url: '', alt: '' }, title: '', description: '', url: '' },\n // name: '',\n // url: '',\n // type: '',\n // thumbnails: [ { url: '' } ],\n isAdminMessage: () => false,\n isResendable: () => false,\n }}\n optionalProps={{\n // chainTop: true,\n // chainBottom: true,\n isReactionEnabled: true,\n emojiContainer: {\n emojiCategories: [\n { emojis: [ { key: 'emoji1', url: '' } ] },\n { emojis: [ { key: 'emoji2', url: '' } ] },\n ],\n },\n }}\n />\n
\n
\n
\n true,\n getUnreadMemberCount: (_) => 10,\n getUndeliveredMemberCount: (_) => 0,\n }}\n message={{\n message: 'i am message',\n messageType: 'user',\n sender: {\n profileUrl: '',\n nickname: 'Sendorous',\n userId: 'hoon-army-001',\n friendName: '',\n },\n createdAt: 0,\n updatedAt: 0,\n sendingStatus: 'succeeded',\n ogMetaData: null,\n reactions: [],\n // ogMetaData: { defaultImage: { url: '', alt: '' }, title: '', description: '', url: '' },\n // name: '',\n // url: '',\n // type: '',\n // thumbnails: [ { url: '' } ],\n isAdminMessage: () => false,\n isResendable: () => false,\n }}\n optionalProps={{\n // chainTop: true,\n // chainBottom: true,\n isReactionEnabled: true,\n emojiContainer: {\n emojiCategories: [\n { emojis: [ { key: 'emoji1', url: '' } ] },\n { emojis: [ { key: 'emoji2', url: '' } ] },\n ],\n },\n }}\n />\n
\n \n \n
\n)"}},withText.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MessageContent/stories/MessageContent.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/MessageContent/stories/MessageContent.stories.js"}),withText.__docgenInfo={description:"",methods:[],displayName:"withText"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MessageContent/stories/MessageContent.stories.js"]={name:"withText",docgenInfo:withText.__docgenInfo,path:"src/ui/MessageContent/stories/MessageContent.stories.js"})},"./src/ui/MessageInput/const.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return MessageInputKeys})),__webpack_require__.d(__webpack_exports__,"c",(function(){return NodeTypes})),__webpack_require__.d(__webpack_exports__,"b",(function(){return NodeNames}));var MessageInputKeys={Enter:"Enter",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",Backspace:"Backspace"},NodeTypes={ElementNode:1,TextNode:3},NodeNames={Span:"SPAN",Br:"BR",Div:"DIV"}},"./src/ui/MessageInput/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/MessageInput/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/MessageInput/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.string.trim.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.find.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),MessageInput_const=(__webpack_require__("./src/ui/MessageInput/index.scss"),__webpack_require__("./src/ui/MessageInput/const.ts")),context_const=__webpack_require__("./src/modules/Channel/context/const.ts"),IconButton=__webpack_require__("./src/ui/IconButton/index.tsx"),Button=__webpack_require__("./src/ui/Button/index.tsx"),purify=(__webpack_require__("./node_modules/core-js/modules/es.string.split.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/dompurify/dist/purify.js")),purify_default=__webpack_require__.n(purify),consts=__webpack_require__("./src/ui/MentionUserLabel/consts.ts");function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _toArray(arr){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i').concat(nickname,""),_token=_toArray(purify_default()(window).sanitize(el).split(" ")),spanTag=_token[0],rest=_token.slice(1);return[spanTag,'contenteditable="false"'].concat(_toConsumableArray(rest)).join(" ")}var Icon=__webpack_require__("./src/ui/Icon/index.tsx"),Label=__webpack_require__("./src/ui/Label/index.tsx"),LocalizationContext=__webpack_require__("./src/lib/LocalizationContext.tsx"),useSendbirdStateContext=__webpack_require__("./src/hooks/useSendbirdStateContext.tsx"),GroupChannel_context_const=(__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./src/modules/GroupChannel/context/const.ts")),sanitizeString=function sanitizeString(str){return null==str?void 0:str.replace(/[\u00A0-\u9999<>]/gim,(function(i){return"".concat("&#",String(i.charCodeAt(0)),";")}))},nodeListToArray=function nodeListToArray(childNodes){try{return Array.from(childNodes)}catch(error){return[]}};function isChannelTypeSupportsMultipleFilesMessage(channel){var _channel$isGroupChann;return channel&&(null===(_channel$isGroupChann=channel.isGroupChannel)||void 0===_channel$isGroupChann?void 0:_channel$isGroupChann.call(channel))&&!channel.isBroadcast&&!channel.isSuper}function isHTMLElement(node){return node.nodeType===MessageInput_const.c.ElementNode}function extractTextAndMentions(childNodes){var messageText="",mentionTemplate="";return childNodes.forEach((function(node){if(isHTMLElement(node)&&node.nodeName===MessageInput_const.b.Span){var innerText=node.innerText,_node$dataset=node.dataset,_dataset$userid=(void 0===_node$dataset?{}:_node$dataset).userid,userid=void 0===_dataset$userid?"":_dataset$userid;messageText+=innerText,mentionTemplate+="".concat(GroupChannel_context_const.d,"{").concat(userid,"}")}else if(isHTMLElement(node)&&node.nodeName===MessageInput_const.b.Br)messageText+="\n",mentionTemplate+="\n";else if(isHTMLElement(node)&&node.nodeName===MessageInput_const.b.Div){var _node$textContent=node.textContent,textContent=void 0===_node$textContent?"":_node$textContent;messageText+="\n".concat(textContent),mentionTemplate+="\n".concat(textContent)}else{var _node$textContent2=node.textContent,_textContent=void 0===_node$textContent2?"":_node$textContent2;messageText+=_textContent,mentionTemplate+=_textContent}})),{messageText:messageText,mentionTemplate:mentionTemplate}}var utils=__webpack_require__("./src/utils/index.ts");__webpack_require__("./node_modules/core-js/modules/es.object.values.js");var PASTE_NODE="sendbird-uikit__paste-node",MENTION_CLASS="sendbird-word__mention",MENTION_CLASS_IN_INPUT="sendbird-mention-user-label",MENTION_CLASS_COMBINED_QUERY=".".concat(MENTION_CLASS,", .").concat(MENTION_CLASS_IN_INPUT),TextMessageItemBody_consts=__webpack_require__("./src/ui/TextMessageItemBody/consts.ts"),OGMessageItemBody_consts=__webpack_require__("./src/ui/OGMessageItemBody/consts.ts");function utils_toConsumableArray(arr){return function utils_arrayWithoutHoles(arr){if(Array.isArray(arr))return utils_arrayLikeToArray(arr)}(arr)||function utils_iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function utils_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return utils_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return utils_arrayLikeToArray(o,minLen)}(arr)||function utils_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function utils_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&(text+=extractTextFromNodes(Array.from(textNodes))+" "),text+=node.innerText+" "})),text};var hooks_usePaste=function usePaste(_ref){var ref=_ref.ref,setIsInput=_ref.setIsInput,setHeight=_ref.setHeight,channel=_ref.channel,setMentionedUsers=_ref.setMentionedUsers;return Object(react.useCallback)((function(e){e.preventDefault();var html=null==e?void 0:e.clipboardData.getData("text/html");if(!html){var text=null==e?void 0:e.clipboardData.getData("text");return document.execCommand("insertHTML",!1,sanitizeString(text)),setIsInput(!0),void setHeight()}var clean=purify_default()(window).sanitize(html),pasteNode=function createPasteNode(){var pasteNode=document.body.querySelector("#".concat(PASTE_NODE));pasteNode&&(null==pasteNode||pasteNode.remove());var node=document.createElement("div");return node.id=PASTE_NODE,node.style.display="none",node}();if(pasteNode.innerHTML=clean,!function hasMention(parent){return!(null==parent||!parent.querySelector(MENTION_CLASS_COMBINED_QUERY))}(pasteNode)){var _text=utils_extractTextFromNodes(Array.from(pasteNode.children));return document.execCommand("insertHTML",!1,sanitizeString(_text)),pasteNode.remove(),setIsInput(!0),void setHeight()}var words=function domToMessageTemplate(nodeArray){return null==nodeArray?void 0:nodeArray.reduce((function(accumulator,currentValue){var mentionNode,text=null==currentValue?void 0:currentValue.innerText;if(currentValue instanceof Text&&(mentionNode=!1,text=currentValue.textContent),currentValue instanceof HTMLElement&&(mentionNode=currentValue.classList.contains(MENTION_CLASS)||currentValue.classList.contains(MENTION_CLASS_IN_INPUT)?currentValue:currentValue.querySelector(MENTION_CLASS_COMBINED_QUERY)),mentionNode){var _mentionNode$dataset,_text=null==currentValue?void 0:currentValue.innerText,userId=null===(_mentionNode$dataset=mentionNode.dataset)||void 0===_mentionNode$dataset?void 0:_mentionNode$dataset.userid;return[].concat(utils_toConsumableArray(accumulator),[{text:_text,userId:userId}])}return[].concat(utils_toConsumableArray(accumulator),[{text:text}])}),[])}(function getLeafNodes(master){var ogMessage=querySelectorIncludingSelf(master,".".concat(OGMessageItemBody_consts.a));if(ogMessage)return nodeListToArray(ogMessage.childNodes);var textMessageBody=querySelectorIncludingSelf(master,".".concat(TextMessageItemBody_consts.a));return nodeListToArray(textMessageBody?textMessageBody.childNodes:master.childNodes)}(pasteNode)),mentionedUsers=channel.isGroupChannel()?function getUsersFromWords(templates,channel){var userMap={},users=channel.members;return templates.forEach((function(template){if(template.userId){var mentionedMember=users.find((function(user){return user.userId===template.userId}));mentionedMember&&(userMap[template.userId]=mentionedMember)}})),Object.values(userMap)}(words,channel):[];setMentionedUsers(mentionedUsers),function inserTemplateToDOM(templateList){var nodes=templateList.map((function(template){var text=template.text,userId=template.userId;return userId?renderToString({userId:userId,nickname:text}):sanitizeString(text)})).join(" ").concat(" ");document.execCommand("insertHTML",!1,nodes)}(words),pasteNode.remove(),setIsInput(!0),setHeight()}),[ref,setIsInput,setHeight,channel,setMentionedUsers])},tokenize=__webpack_require__("./src/modules/Message/utils/tokens/tokenize.ts"),Message_consts=__webpack_require__("./src/modules/Message/consts.ts"),types=__webpack_require__("./src/modules/Message/utils/tokens/types.ts"),dist=__webpack_require__("./node_modules/ts-pattern/dist/index.js"),ChannelType=function(ChannelType){return ChannelType.BASE="base",ChannelType.GROUP="group",ChannelType.OPEN="open",ChannelType}(ChannelType||{}),utils_utils=__webpack_require__("./src/utils/utils.ts");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function MessageInput_toConsumableArray(arr){return function MessageInput_arrayWithoutHoles(arr){if(Array.isArray(arr))return MessageInput_arrayLikeToArray(arr)}(arr)||function MessageInput_iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||MessageInput_unsupportedIterableToArray(arr)||function MessageInput_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;rarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=76?MAX_HEIGHT0),setHeight()}),[initialValue]),Object(react.useEffect)((function(){isEdit||(setIsInput(!1),resetInput(internalRef))}),[channelUrl]),Object(react.useEffect)((function(){if(isEdit&&null!=message&&message.messageId){var _message$mentionedUse,_message$mentionedMes,_textField$textConten2,textField=null==internalRef?void 0:internalRef.current;if(isMentionEnabled&&(null==message||null===(_message$mentionedUse=message.mentionedUsers)||void 0===_message$mentionedUse?void 0:_message$mentionedUse.length)>0&&(null==message||null===(_message$mentionedMes=message.mentionedMessageTemplate)||void 0===_message$mentionedMes?void 0:_message$mentionedMes.length)>0){var _message$mentionedUse2=message.mentionedUsers,mentionedUsers=void 0===_message$mentionedUse2?[]:_message$mentionedUse2,tokens=Object(tokenize.b)({messageText:null==message?void 0:message.mentionedMessageTemplate,mentionedUsers:mentionedUsers});textField.innerHTML=tokens.map((function(token){if(token.type===types.a.mention){var mentionedUser=mentionedUsers.find((function(user){return user.userId===token.userId})),nickname="".concat(Message_consts.a).concat((null==mentionedUser?void 0:mentionedUser.nickname)||token.value||stringSet.MENTION_NAME__NO_NAME);return renderToString({userId:token.userId,nickname:nickname})}return sanitizeString(token.value)})).join(" ")}else{try{textField.innerHTML=sanitizeString(null==message?void 0:message.message)}catch(_unused3){}setMentionedUserIds([])}setIsInput((null==textField||null===(_textField$textConten2=textField.textContent)||void 0===_textField$textConten2?void 0:_textField$textConten2.trim().length)>0),setHeight()}}),[isEdit,message]);var useMentionedLabelDetection=Object(react.useCallback)((function(){var _textField$textConten3,textField=null==internalRef?void 0:internalRef.current;if(isMentionEnabled){var newMentionedUserIds=Array.from(textField.getElementsByClassName("sendbird-mention-user-label")).map((function(node){var _node$dataset;return null==node||null===(_node$dataset=node.dataset)||void 0===_node$dataset?void 0:_node$dataset.userid}));Object(utils.c)(mentionedUserIds,newMentionedUserIds)&&0!==newMentionedUserIds.length||(onMentionedUserIdsUpdated(newMentionedUserIds),setMentionedUserIds(newMentionedUserIds))}setIsInput((null===(_textField$textConten3=textField.textContent)||void 0===_textField$textConten3?void 0:_textField$textConten3.trim().length)>0)}),[targetStringInfo,isMentionEnabled]);Object(react.useEffect)((function(){if(isMentionEnabled&&mentionSelectedUser){var targetString=targetStringInfo.targetString,startNodeIndex=targetStringInfo.startNodeIndex,startOffsetIndex=targetStringInfo.startOffsetIndex,endNodeIndex=targetStringInfo.endNodeIndex,endOffsetIndex=targetStringInfo.endOffsetIndex;if(targetString&&null!==startNodeIndex&&null!==startOffsetIndex){var _document,_childNodes$startNode,_document2,_childNodes$endNodeIn,textField=null==internalRef?void 0:internalRef.current,childNodes=nodeListToArray(null==textField?void 0:textField.childNodes),frontTextNode=null===(_document=document)||void 0===_document?void 0:_document.createTextNode(null===(_childNodes$startNode=childNodes[startNodeIndex])||void 0===_childNodes$startNode?void 0:_childNodes$startNode.textContent.slice(0,startOffsetIndex)),backTextNode=null===(_document2=document)||void 0===_document2?void 0:_document2.createTextNode(" ".concat(null===(_childNodes$endNodeIn=childNodes[endNodeIndex])||void 0===_childNodes$endNodeIn?void 0:_childNodes$endNodeIn.textContent.slice(endOffsetIndex))),mentionLabel=renderToString({userId:null==mentionSelectedUser?void 0:mentionSelectedUser.userId,nickname:"".concat(context_const.d).concat((null==mentionSelectedUser?void 0:mentionSelectedUser.nickname)||stringSet.MENTION_NAME__NO_NAME)}),div=document.createElement("div");div.innerHTML=mentionLabel;var newNodes=[].concat(MessageInput_toConsumableArray(childNodes.slice(0,startNodeIndex)),[frontTextNode,div.childNodes[0],backTextNode],MessageInput_toConsumableArray(childNodes.slice(endNodeIndex+1)));if(textField.innerHTML="",newNodes.forEach((function(newNode){textField.appendChild(newNode)})),onUserMentioned(mentionSelectedUser),window.getSelection||document.getSelection){var selection=window.getSelection()||document.getSelection();selection.removeAllRanges();var range=new Range;range.selectNodeContents(textField),range.setStart(textField.childNodes[startNodeIndex+2],1),range.setEnd(textField.childNodes[startNodeIndex+2],1),range.collapse(!1),selection.addRange(range),textField.focus()}setTargetStringInfo(_objectSpread({},initialTargetStringInfo)),setHeight(),useMentionedLabelDetection()}}}),[mentionSelectedUser,isMentionEnabled]);var useMentionInputDetection=Object(react.useCallback)((function(){var _window,_window$getSelection,_document3,_document3$getSelecti,selection=(null===(_window=window)||void 0===_window||null===(_window$getSelection=_window.getSelection)||void 0===_window$getSelection?void 0:_window$getSelection.call(_window))||(null===(_document3=document)||void 0===_document3||null===(_document3$getSelecti=_document3.getSelection)||void 0===_document3$getSelecti?void 0:_document3$getSelecti.call(_document3)),textField=null==internalRef?void 0:internalRef.current;if(selection.anchorNode===textField&&onMentionStringChange(""),isMentionEnabled&&selection&&selection.anchorNode===selection.focusNode&&selection.anchorOffset===selection.focusOffset)for(var textStack="",startNodeIndex=null,startOffsetIndex=null,index=0;index0)textStack+=textContent;else{for(var charLastIndex=textContent.lastIndexOf(context_const.d),i=charLastIndex-1;i>-1&&textContent[i]===context_const.d;i-=1)charLastIndex=i;charLastIndex>-1&&(textStack=textContent,startNodeIndex=index,startOffsetIndex=charLastIndex)}}else textStack="",startNodeIndex=null,startOffsetIndex=null;if(currentNode===selection.anchorNode){var targetString=textStack?textStack.slice(startOffsetIndex):"";return setTargetStringInfo({targetString:targetString,startNodeIndex:startNodeIndex,startOffsetIndex:startOffsetIndex,endNodeIndex:index,endOffsetIndex:selection.anchorOffset}),void onMentionStringChange(targetString)}}}),[isMentionEnabled]),sendMessage=function sendMessage(){var textField=null==internalRef?void 0:internalRef.current;if(!isEdit&&null!=textField&&textField.textContent){var _extractTextAndMentio=extractTextAndMentions(textField.childNodes),messageText=_extractTextAndMentio.messageText,mentionTemplate=_extractTextAndMentio.mentionTemplate;onSendMessage({message:messageText,mentionTemplate:mentionTemplate}),resetInput(internalRef),textField.focus(),setIsInput(!1),setHeight()}},isEditDisabled=!(null!=internalRef&&null!==(_internalRef$current=internalRef.current)&&void 0!==_internalRef$current&&null!==(_internalRef$current=_internalRef$current.textContent)&&void 0!==_internalRef$current&&_internalRef$current.trim()),onPaste=hooks_usePaste({ref:internalRef,setMentionedUsers:setMentionedUsers,channel:channel,setIsInput:setIsInput,setHeight:setHeight});return react_default.a.createElement("form",{className:Object(utils.i)([className,isEdit?"sendbird-message-input__edit":"",disabled?"sendbird-message-input-form__disabled":""])},react_default.a.createElement("div",{className:Object(utils.i)(["sendbird-message-input",disabled?"sendbird-message-input__disabled":""])},react_default.a.createElement("div",{id:"".concat(textFieldId).concat(isEdit?null==message?void 0:message.messageId:""),className:"sendbird-message-input--textarea ".concat(textFieldId),contentEditable:!disabled,role:"textbox","aria-label":"Text Input",ref:externalRef,disabled:disabled,maxLength:maxLength,onKeyDown:function onKeyDown(e){var _internalRef$current2,_e$nativeEvent,_internalRef$current3,_internalRef$current4,_internalRef$current$;_onKeyDown(e)?e.preventDefault():(!e.shiftKey&&e.key===MessageInput_const.a.Enter&&!isMobile&&(null==internalRef||null===(_internalRef$current2=internalRef.current)||void 0===_internalRef$current2||null===(_internalRef$current2=_internalRef$current2.textContent)||void 0===_internalRef$current2?void 0:_internalRef$current2.trim().length)>0&&!0!==(null==e||null===(_e$nativeEvent=e.nativeEvent)||void 0===_e$nativeEvent?void 0:_e$nativeEvent.isComposing)&&(Object(utils_utils.a)(navigator.userAgent)||e.preventDefault(),sendMessage()),e.key!==MessageInput_const.a.Backspace||2!==(null==internalRef||null===(_internalRef$current3=internalRef.current)||void 0===_internalRef$current3||null===(_internalRef$current3=_internalRef$current3.childNodes)||void 0===_internalRef$current3?void 0:_internalRef$current3.length)||null!=internalRef&&null!==(_internalRef$current4=internalRef.current)&&void 0!==_internalRef$current4&&null!==(_internalRef$current4=_internalRef$current4.childNodes)&&void 0!==_internalRef$current4&&null!==(_internalRef$current4=_internalRef$current4[0])&&void 0!==_internalRef$current4&&_internalRef$current4.textContent||(null==internalRef||null===(_internalRef$current$=internalRef.current.childNodes)||void 0===_internalRef$current$||null===(_internalRef$current$=_internalRef$current$[1])||void 0===_internalRef$current$?void 0:_internalRef$current$.nodeType)!==MessageInput_const.c.ElementNode||null==internalRef||internalRef.current.removeChild(null==internalRef?void 0:internalRef.current.childNodes[1]))},onKeyUp:function onKeyUp(e){_onKeyUp(e)?e.preventDefault():useMentionInputDetection()},onClick:function onClick(){useMentionInputDetection()},onInput:function onInput(){var _internalRef$current5;setHeight(),onStartTyping(),setIsInput((null==internalRef||null===(_internalRef$current5=internalRef.current)||void 0===_internalRef$current5||null===(_internalRef$current5=_internalRef$current5.textContent)||void 0===_internalRef$current5?void 0:_internalRef$current5.trim().length)>0),useMentionedLabelDetection()},onPaste:onPaste}),0===(null!==(_internalRef$current$2=null==internalRef||null===(_internalRef$current6=internalRef.current)||void 0===_internalRef$current6||null===(_internalRef$current6=_internalRef$current6.textContent)||void 0===_internalRef$current6?void 0:_internalRef$current6.length)&&void 0!==_internalRef$current$2?_internalRef$current$2:0)&&react_default.a.createElement(Label.d,{className:"sendbird-message-input--placeholder",type:Label.c.BODY_1,color:disabled?Label.a.ONBACKGROUND_4:Label.a.ONBACKGROUND_3},placeholder||stringSet.MESSAGE_INPUT__PLACE_HOLDER),!isEdit&&isInput&&react_default.a.createElement(IconButton.a,{className:"sendbird-message-input--send",height:"32px",width:"32px",onClick:function onClick(){return sendMessage()}},(null==renderSendMessageIcon?void 0:renderSendMessageIcon())||react_default.a.createElement(Icon.c,{type:Icon.b.SEND,fillColor:disabled?Icon.a.ON_BACKGROUND_4:Icon.a.PRIMARY,width:"20px",height:"20px"})),!isEdit&&!isInput&&((null==renderFileUploadIcon?void 0:renderFileUploadIcon())||isFileUploadEnabled&&react_default.a.createElement(IconButton.a,{className:"sendbird-message-input--attach ".concat(isVoiceMessageEnabled?"is-voice-message-enabled":""),height:"32px",width:"32px",onClick:function onClick(){var _fileInputRef$current,_fileInputRef$current2;null==fileInputRef||null===(_fileInputRef$current=fileInputRef.current)||void 0===_fileInputRef$current||null===(_fileInputRef$current2=_fileInputRef$current.click)||void 0===_fileInputRef$current2||_fileInputRef$current2.call(_fileInputRef$current)}},react_default.a.createElement(Icon.c,{type:Icon.b.ATTACH,fillColor:disabled?Icon.a.ON_BACKGROUND_4:Icon.a.CONTENT_INVERSE,width:"20px",height:"20px"}),react_default.a.createElement("input",{className:"sendbird-message-input--attach-input",type:"file",ref:fileInputRef,onChange:function onChange(event){var files=event.currentTarget.files;onFileUpload(files&&1===files.length?[files[0]]:Array.from(files)),event.target.value=""},accept:Object(utils.o)(acceptableMimeTypes),multiple:isSelectingMultipleFilesEnabled&&isChannelTypeSupportsMultipleFilesMessage(channel)}))),isVoiceMessageEnabled&&!isEdit&&!isInput&&react_default.a.createElement(IconButton.a,{className:"sendbird-message-input--voice-message",width:"32px",height:"32px",onClick:onVoiceMessageIconClick},(null==renderVoiceMessageIcon?void 0:renderVoiceMessageIcon())||react_default.a.createElement(Icon.c,{type:Icon.b.AUDIO_ON_LINED,fillColor:disabled?Icon.a.ON_BACKGROUND_4:Icon.a.CONTENT_INVERSE,width:"20px",height:"20px"}))),isEdit&&react_default.a.createElement("div",{className:"sendbird-message-input--edit-action"},react_default.a.createElement(Button.c,{className:"sendbird-message-input--edit-action__cancel",type:Button.b.SECONDARY,size:Button.a.SMALL,onClick:onCancelEdit},stringSet.BUTTON__CANCEL),react_default.a.createElement(Button.c,{className:"sendbird-message-input--edit-action__save",type:Button.b.PRIMARY,size:Button.a.SMALL,disabled:isEditDisabled,onClick:function onClick(){return function editMessage(){var textField=null==internalRef?void 0:internalRef.current,messageId=null==message?void 0:message.messageId;if(isEdit&&messageId){var _extractTextAndMentio2=extractTextAndMentions(textField.childNodes),messageText=_extractTextAndMentio2.messageText,mentionTemplate=_extractTextAndMentio2.mentionTemplate;onUpdateMessage({messageId:messageId,message:messageText,mentionTemplate:mentionTemplate}),resetInput(internalRef)}}()}},stringSet.BUTTON__SAVE)))}));__webpack_exports__.a=MessageInput_MessageInput;try{MessageInput_MessageInput.displayName="MessageInput",MessageInput_MessageInput.__docgenInfo={description:"",displayName:"MessageInput",props:{channel:{defaultValue:null,description:"",name:"channel",required:!0,type:{name:"GroupChannel | OpenChannel"}},message:{defaultValue:null,description:"",name:"message",required:!1,type:{name:"UserMessage"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string | string[]"}},messageFieldId:{defaultValue:null,description:"",name:"messageFieldId",required:!1,type:{name:"string"}},isEdit:{defaultValue:null,description:"",name:"isEdit",required:!1,type:{name:"boolean"}},isMobile:{defaultValue:null,description:"",name:"isMobile",required:!1,type:{name:"boolean"}},isMentionEnabled:{defaultValue:null,description:"",name:"isMentionEnabled",required:!1,type:{name:"boolean"}},isVoiceMessageEnabled:{defaultValue:null,description:"",name:"isVoiceMessageEnabled",required:!1,type:{name:"boolean"}},isSelectingMultipleFilesEnabled:{defaultValue:null,description:"",name:"isSelectingMultipleFilesEnabled",required:!1,type:{name:"boolean"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"string"}},maxLength:{defaultValue:null,description:"",name:"maxLength",required:!1,type:{name:"number"}},onFileUpload:{defaultValue:null,description:"",name:"onFileUpload",required:!1,type:{name:"(file: File[]) => void"}},onSendMessage:{defaultValue:null,description:"",name:"onSendMessage",required:!1,type:{name:"(params: { message: string; mentionTemplate: string; }) => void"}},onUpdateMessage:{defaultValue:null,description:"",name:"onUpdateMessage",required:!1,type:{name:"(params: { messageId: number; message: string; mentionTemplate: string; }) => void"}},onCancelEdit:{defaultValue:null,description:"",name:"onCancelEdit",required:!1,type:{name:"() => void"}},onStartTyping:{defaultValue:null,description:"",name:"onStartTyping",required:!1,type:{name:"() => void"}},channelUrl:{defaultValue:null,description:"",name:"channelUrl",required:!1,type:{name:"string"}},mentionSelectedUser:{defaultValue:null,description:"",name:"mentionSelectedUser",required:!1,type:{name:"User"}},onUserMentioned:{defaultValue:null,description:"",name:"onUserMentioned",required:!1,type:{name:"(user: User) => void"}},onMentionStringChange:{defaultValue:null,description:"",name:"onMentionStringChange",required:!1,type:{name:"(mentionString: string) => void"}},onMentionedUserIdsUpdated:{defaultValue:null,description:"",name:"onMentionedUserIdsUpdated",required:!1,type:{name:"(mentionedUserIds: string[]) => void"}},onVoiceMessageIconClick:{defaultValue:null,description:"",name:"onVoiceMessageIconClick",required:!1,type:{name:"() => void"}},onKeyUp:{defaultValue:null,description:"",name:"onKeyUp",required:!1,type:{name:"(event: KeyboardEvent) => boolean"}},onKeyDown:{defaultValue:null,description:"",name:"onKeyDown",required:!1,type:{name:"(event: KeyboardEvent) => boolean"}},renderVoiceMessageIcon:{defaultValue:null,description:"",name:"renderVoiceMessageIcon",required:!1,type:{name:"() => ReactNode"}},renderFileUploadIcon:{defaultValue:null,description:"",name:"renderFileUploadIcon",required:!1,type:{name:"() => ReactNode"}},renderSendMessageIcon:{defaultValue:null,description:"",name:"renderSendMessageIcon",required:!1,type:{name:"() => ReactNode"}},setMentionedUsers:{defaultValue:null,description:"",name:"setMentionedUsers",required:!1,type:{name:"Dispatch>"}},acceptableMimeTypes:{defaultValue:null,description:"",name:"acceptableMimeTypes",required:!1,type:{name:"string[]"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MessageInput/index.tsx#MessageInput"]={docgenInfo:MessageInput_MessageInput.__docgenInfo,name:"MessageInput",path:"src/ui/MessageInput/index.tsx#MessageInput"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/MessageInput/stories/index.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return WithControl})),__webpack_require__.d(__webpack_exports__,"messageInputEdit",(function(){return messageInputEdit})),__webpack_require__.d(__webpack_exports__,"disabledMessageInput",(function(){return disabledMessageInput}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js");var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_index__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/MessageInput/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/MessageInput",component:_index__WEBPACK_IMPORTED_MODULE_2__.a,parameters:{docs:{description:{component:'\n `import MessageInput from "@sendbird/uikit-react/ui/MessageInput";`\n'}}}};var WithControl=function WithControl(arg){var ref=react__WEBPACK_IMPORTED_MODULE_1___default.a.useRef();return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,Object.assign({},arg,{ref:ref}))};WithControl.displayName="WithControl";var messageInputEdit=function messageInputEdit(){var ref=react__WEBPACK_IMPORTED_MODULE_1___default.a.useRef();return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{isEdit:!0,name:"example",ref:ref})};messageInputEdit.displayName="messageInputEdit";var disabledMessageInput=function disabledMessageInput(){var ref=react__WEBPACK_IMPORTED_MODULE_1___default.a.useRef();return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{disabled:!0,name:"example",ref:ref})};disabledMessageInput.displayName="disabledMessageInput",WithControl.parameters=Object.assign({storySource:{source:"(arg) => {\n const ref = React.useRef();\n return (\n \n )\n}"}},WithControl.parameters),messageInputEdit.parameters=Object.assign({storySource:{source:'() => {\n const ref = React.useRef();\n return (\n \n )\n}'}},messageInputEdit.parameters),disabledMessageInput.parameters=Object.assign({storySource:{source:'() => {\n const ref = React.useRef();\n return (\n \n )\n}'}},disabledMessageInput.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MessageInput/stories/index.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/MessageInput/stories/index.stories.js"}),messageInputEdit.__docgenInfo={description:"",methods:[],displayName:"messageInputEdit"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MessageInput/stories/index.stories.js"]={name:"messageInputEdit",docgenInfo:messageInputEdit.__docgenInfo,path:"src/ui/MessageInput/stories/index.stories.js"}),disabledMessageInput.__docgenInfo={description:"",methods:[],displayName:"disabledMessageInput"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MessageInput/stories/index.stories.js"]={name:"disabledMessageInput",docgenInfo:disabledMessageInput.__docgenInfo,path:"src/ui/MessageInput/stories/index.stories.js"})},"./src/ui/MessageItemMenu/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/MessageItemMenu/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/MessageItemMenu/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return MessageMenu}));__webpack_require__("./src/ui/MessageItemMenu/index.scss");var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_ContextMenu__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/ContextMenu/index.tsx"),_Icon__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/ui/Icon/index.tsx"),_IconButton__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/ui/IconButton/index.tsx"),_utils_index__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/utils/index.ts"),_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/lib/LocalizationContext.tsx"),_lib_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/lib/types.ts");function MessageMenu(_ref){var _channel$isGroupChann,className=_ref.className,message=_ref.message,channel=_ref.channel,_ref$isByMe=_ref.isByMe,isByMe=void 0!==_ref$isByMe&&_ref$isByMe,_ref$disabled=_ref.disabled,disabled=void 0!==_ref$disabled&&_ref$disabled,replyType=_ref.replyType,_ref$disableDeleteMes=_ref.disableDeleteMessage,disableDeleteMessage=void 0===_ref$disableDeleteMes?null:_ref$disableDeleteMes,showEdit=_ref.showEdit,showRemove=_ref.showRemove,deleteMessage=_ref.deleteMessage,resendMessage=_ref.resendMessage,setQuoteMessage=_ref.setQuoteMessage,setSupposedHover=_ref.setSupposedHover,onReplyInThread=_ref.onReplyInThread,_ref$onMoveToParentMe=_ref.onMoveToParentMessage,onMoveToParentMessage=void 0===_ref$onMoveToParentMe?null:_ref$onMoveToParentMe,stringSet=Object(react__WEBPACK_IMPORTED_MODULE_1__.useContext)(_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_6__.a).stringSet,triggerRef=Object(react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null),containerRef=Object(react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null),showMenuItemCopy=Object(_utils_index__WEBPACK_IMPORTED_MODULE_5__.T)(message),showMenuItemEdit=!(null!=channel&&channel.isEphemeral)&&Object(_utils_index__WEBPACK_IMPORTED_MODULE_5__.T)(message)&&Object(_utils_index__WEBPACK_IMPORTED_MODULE_5__.L)(message)&&isByMe,showMenuItemResend=Object(_utils_index__WEBPACK_IMPORTED_MODULE_5__.y)(message)&&(null==message?void 0:message.isResendable)&&isByMe,showMenuItemDelete=!(null!=channel&&channel.isEphemeral)&&!Object(_utils_index__WEBPACK_IMPORTED_MODULE_5__.H)(message)&&isByMe,showMenuItemOpenInChannel=null!==onMoveToParentMessage,isReplyTypeEnabled=!Object(_utils_index__WEBPACK_IMPORTED_MODULE_5__.y)(message)&&!Object(_utils_index__WEBPACK_IMPORTED_MODULE_5__.H)(message)&&(null==channel||null===(_channel$isGroupChann=channel.isGroupChannel)||void 0===_channel$isGroupChann?void 0:_channel$isGroupChann.call(channel))&&!(null!=channel&&channel.isEphemeral)&&((null==channel?void 0:channel.isBroadcast)&&(null==channel?void 0:channel.myRole)===_lib_types__WEBPACK_IMPORTED_MODULE_7__.a.OPERATOR||!(null!=channel&&channel.isBroadcast)),showMenuItemReply=isReplyTypeEnabled&&"QUOTE_REPLY"===replyType,showMenuItemThread=isReplyTypeEnabled&&"THREAD"===replyType&&!(null!=message&&message.parentMessageId)&&onReplyInThread;return showMenuItemCopy||showMenuItemReply||showMenuItemThread||showMenuItemOpenInChannel||showMenuItemEdit||showMenuItemResend||showMenuItemDelete?react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",{className:Object(_utils_index__WEBPACK_IMPORTED_MODULE_5__.i)([className,"sendbird-message-item-menu"]),ref:containerRef},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ContextMenu__WEBPACK_IMPORTED_MODULE_2__.h,{menuTrigger:function menuTrigger(toggleDropdown){return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_IconButton__WEBPACK_IMPORTED_MODULE_4__.a,{className:"sendbird-message-item-menu__trigger",ref:triggerRef,width:"32px",height:"32px",onClick:function onClick(){toggleDropdown(),setSupposedHover(!0)},onBlur:function onBlur(){setSupposedHover(!1)}},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_3__.c,{className:"sendbird-message-item-menu__trigger__icon",type:_Icon__WEBPACK_IMPORTED_MODULE_3__.b.MORE,fillColor:_Icon__WEBPACK_IMPORTED_MODULE_3__.a.CONTENT_INVERSE,width:"24px",height:"24px"}))},menuItems:function menuItems(close){var _message$threadInfo,closeDropdown=function closeDropdown(){close(),setSupposedHover(!1)};return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ContextMenu__WEBPACK_IMPORTED_MODULE_2__.d,{className:"sendbird-message-item-menu__list",parentRef:triggerRef,parentContainRef:containerRef,closeDropdown:closeDropdown,openLeft:isByMe},showMenuItemCopy&&react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ContextMenu__WEBPACK_IMPORTED_MODULE_2__.c,{className:"sendbird-message-item-menu__list__menu-item menu-item-copy",onClick:function onClick(){Object(_utils_index__WEBPACK_IMPORTED_MODULE_5__.e)(null==message?void 0:message.message),closeDropdown()},dataSbId:"ui_message_item_menu_copy"},stringSet.MESSAGE_MENU__COPY),showMenuItemReply&&react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ContextMenu__WEBPACK_IMPORTED_MODULE_2__.c,{className:"sendbird-message-item-menu__list__menu-item menu-item-reply",onClick:function onClick(){setQuoteMessage(message),closeDropdown()},disable:(null==message?void 0:message.parentMessageId)>0,dataSbId:"ui_message_item_menu_reply"},stringSet.MESSAGE_MENU__REPLY),showMenuItemThread&&react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ContextMenu__WEBPACK_IMPORTED_MODULE_2__.c,{className:"sendbird-message-item-menu__list__menu-item menu-item-thread",onClick:function onClick(){null==onReplyInThread||onReplyInThread({message:message}),closeDropdown()},dataSbId:"ui_message_item_menu_thread"},stringSet.MESSAGE_MENU__THREAD),showMenuItemOpenInChannel&&react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ContextMenu__WEBPACK_IMPORTED_MODULE_2__.c,{className:"sendbird-message-item-menu__list__menu-item menu-item-open-channel",onClick:function onClick(){null==onMoveToParentMessage||onMoveToParentMessage(),closeDropdown()},dataSbId:"ui_message_item_menu_open_in_channel"},stringSet.MESSAGE_MENU__OPEN_IN_CHANNEL),showMenuItemEdit&&react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ContextMenu__WEBPACK_IMPORTED_MODULE_2__.c,{className:"sendbird-message-item-menu__list__menu-item menu-item-edit",onClick:function onClick(){disabled||(showEdit(!0),closeDropdown())},dataSbId:"ui_message_item_menu_edit"},stringSet.MESSAGE_MENU__EDIT),showMenuItemResend&&react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ContextMenu__WEBPACK_IMPORTED_MODULE_2__.c,{className:"sendbird-message-item-menu__list__menu-item menu-item-resend",onClick:function onClick(){disabled||(resendMessage(message),closeDropdown())},dataSbId:"ui_message_item_menu_resend"},stringSet.MESSAGE_MENU__RESEND),showMenuItemDelete&&react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ContextMenu__WEBPACK_IMPORTED_MODULE_2__.c,{className:"sendbird-message-item-menu__list__menu-item menu-item-delete",onClick:function onClick(){Object(_utils_index__WEBPACK_IMPORTED_MODULE_5__.y)(message)?null==deleteMessage||deleteMessage(message):disabled||(showRemove(!0),closeDropdown())},disable:"boolean"==typeof disableDeleteMessage?disableDeleteMessage:(null==message||null===(_message$threadInfo=message.threadInfo)||void 0===_message$threadInfo?void 0:_message$threadInfo.replyCount)>0,dataSbId:"ui_message_item_menu_delete"},stringSet.MESSAGE_MENU__DELETE))}})):null}__webpack_exports__.b=MessageMenu;try{MessageMenu.displayName="MessageMenu",MessageMenu.__docgenInfo={description:"",displayName:"MessageMenu",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string | string[]"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"SendableMessageType"}},channel:{defaultValue:null,description:"",name:"channel",required:!0,type:{name:"GroupChannel | OpenChannel"}},isByMe:{defaultValue:{value:"false"},description:"",name:"isByMe",required:!1,type:{name:"boolean"}},disabled:{defaultValue:{value:"false"},description:"",name:"disabled",required:!1,type:{name:"boolean"}},replyType:{defaultValue:null,description:"",name:"replyType",required:!1,type:{name:"enum",value:[{value:'"NONE"'},{value:'"QUOTE_REPLY"'},{value:'"THREAD"'}]}},disableDeleteMessage:{defaultValue:{value:"null"},description:"",name:"disableDeleteMessage",required:!1,type:{name:"boolean"}},showEdit:{defaultValue:null,description:"",name:"showEdit",required:!1,type:{name:"(bool: boolean) => void"}},showRemove:{defaultValue:null,description:"",name:"showRemove",required:!1,type:{name:"(bool: boolean) => void"}},deleteMessage:{defaultValue:null,description:"",name:"deleteMessage",required:!1,type:{name:"(message: SendableMessageType) => void"}},resendMessage:{defaultValue:null,description:"",name:"resendMessage",required:!1,type:{name:"(message: SendableMessageType) => void"}},setQuoteMessage:{defaultValue:null,description:"",name:"setQuoteMessage",required:!1,type:{name:"(message: SendableMessageType) => void"}},setSupposedHover:{defaultValue:null,description:"",name:"setSupposedHover",required:!1,type:{name:"(bool: boolean) => void"}},onReplyInThread:{defaultValue:null,description:"",name:"onReplyInThread",required:!1,type:{name:"(props: { message: SendableMessageType; }) => void"}},onMoveToParentMessage:{defaultValue:{value:"null"},description:"",name:"onMoveToParentMessage",required:!1,type:{name:"() => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MessageItemMenu/index.tsx#MessageMenu"]={docgenInfo:MessageMenu.__docgenInfo,name:"MessageMenu",path:"src/ui/MessageItemMenu/index.tsx#MessageMenu"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/MessageItemMenu/stories/MessageItemMenu.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return WithControl})),__webpack_require__.d(__webpack_exports__,"messageItemMenu",(function(){return messageItemMenu}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _index_tsx__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/MessageItemMenu/index.tsx"),_ContextMenu__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/ui/ContextMenu/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/MessageItemMenu",component:_index_tsx__WEBPACK_IMPORTED_MODULE_2__.b,parameters:{docs:{description:{component:'\n `import MessageItemMenu from "@sendbird/uikit-react/ui/MessageItemMenu";`\n'}}}};var WithControl=function WithControl(arg){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.b,Object.assign({message:{sendingStatus:"succeeded",message:"Im copied message",messageType:"user",isResendable:function isResendable(){return!1}},channel:{isGroupChannel:function isGroupChannel(){return!0},getUnreadMemberCount:function getUnreadMemberCount(message){return 10},getUndeliveredMemberCount:function getUndeliveredMemberCount(message){return 0}},isByMe:!0,contextMenuProps:{disabled:!1,resendMessage:function resendMessage(){alert("resend message")},showEdit:function showEdit(){alert("show edit")},showRemove:function showRemove(){alert("who remove")}}},arg))})};WithControl.displayName="WithControl";var messageItemMenu=function messageItemMenu(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},children:[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_ContextMenu__WEBPACK_IMPORTED_MODULE_3__.e,{}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("h4",{children:"Sent Text message"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.b,{message:{sendingStatus:"succeeded",message:"Im copied message",messageType:"user",isResendable:function isResendable(){return!1}},channel:{isGroupChannel:function isGroupChannel(){return!0},getUnreadMemberCount:function getUnreadMemberCount(message){return 10},getUndeliveredMemberCount:function getUndeliveredMemberCount(message){return 0}},isByMe:!0,contextMenuProps:{disabled:!1,resendMessage:function resendMessage(){alert("resend message")},showEdit:function showEdit(){alert("show edit")},showRemove:function showRemove(){alert("who remove")}}}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("h4",{children:"Failed Text Message"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.b,{message:{sendingStatus:"failed",message:"Im copied message",messageType:"user",isResendable:function isResendable(){return!0}},channel:{isGroupChannel:function isGroupChannel(){return!0},getUnreadMemberCount:function getUnreadMemberCount(message){return 10},getUndeliveredMemberCount:function getUndeliveredMemberCount(message){return 0}},isByMe:!0,contextMenuProps:{disabled:!1,resendMessage:function resendMessage(){alert("resend message")},showEdit:function showEdit(){alert("show edit")},showRemove:function showRemove(){alert("who remove")}}}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("h4",{children:"Sent File message"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.b,{message:{sendingStatus:"succeeded",message:"Im copied message",messageType:"file",isResendable:function isResendable(){return!1}},channel:{isGroupChannel:function isGroupChannel(){return!0},getUnreadMemberCount:function getUnreadMemberCount(message){return 10},getUndeliveredMemberCount:function getUndeliveredMemberCount(message){return 0}},isByMe:!0,contextMenuProps:{disabled:!1,resendMessage:function resendMessage(){alert("resend message")},showEdit:function showEdit(){alert("show edit")},showRemove:function showRemove(){alert("who remove")}}}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("h4",{children:"Failed File Message"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.b,{message:{sendingStatus:"failed",message:"Im copied message",messageType:"file",isResendable:function isResendable(){return!0}},channel:{isGroupChannel:function isGroupChannel(){return!0},getUnreadMemberCount:function getUnreadMemberCount(message){return 10},getUndeliveredMemberCount:function getUndeliveredMemberCount(message){return 0}},isByMe:!0,contextMenuProps:{disabled:!1,resendMessage:function resendMessage(){alert("resend message")},showEdit:function showEdit(){alert("show edit")},showRemove:function showRemove(){alert("who remove")}}}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("h4",{children:"Received Text message"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.b,{message:{sendingStatus:"none",message:"Im copied message",messageType:"user",isResendable:function isResendable(){return!1}},channel:{isGroupChannel:function isGroupChannel(){return!0},getUnreadMemberCount:function getUnreadMemberCount(message){return 10},getUndeliveredMemberCount:function getUndeliveredMemberCount(message){return 0}},contextMenuProps:{disabled:!1,resendMessage:function resendMessage(){alert("resend message")},showEdit:function showEdit(){alert("show edit")},showRemove:function showRemove(){alert("who remove")}}}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("h4",{children:"Received File message"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.b,{message:{sendingStatus:"none",message:"Im copied message",messageType:"file",isResendable:function isResendable(){return!1}},channel:{isGroupChannel:function isGroupChannel(){return!0},getUnreadMemberCount:function getUnreadMemberCount(message){return 10},getUndeliveredMemberCount:function getUndeliveredMemberCount(message){return 0}},contextMenuProps:{disabled:!1,resendMessage:function resendMessage(){alert("resend message")},showEdit:function showEdit(){alert("show edit")},showRemove:function showRemove(){alert("who remove")}}})]})};messageItemMenu.displayName="messageItemMenu",WithControl.parameters=Object.assign({storySource:{source:"(arg) => (\n \n false,\n }}\n channel={{\n isGroupChannel: () => true,\n getUnreadMemberCount: (message) => 10,\n getUndeliveredMemberCount: (message) => 0,\n }}\n isByMe\n contextMenuProps={{\n disabled: false,\n resendMessage: () => { alert('resend message')},\n showEdit: () => { alert('show edit')},\n showRemove: () => {alert('who remove')},\n }}\n {...arg}\n />\n
\n)"}},WithControl.parameters),messageItemMenu.parameters=Object.assign({storySource:{source:"() => (\n \n \n

Sent Text message

\n false,\n }}\n channel={{\n isGroupChannel: () => true,\n getUnreadMemberCount: (message) => 10,\n getUndeliveredMemberCount: (message) => 0,\n }}\n isByMe\n contextMenuProps={{\n disabled: false,\n resendMessage: () => { alert('resend message')},\n showEdit: () => { alert('show edit')},\n showRemove: () => {alert('who remove')},\n }}\n />\n

Failed Text Message

\n true,\n }}\n channel={{\n isGroupChannel: () => true,\n getUnreadMemberCount: (message) => 10,\n getUndeliveredMemberCount: (message) => 0,\n }}\n isByMe\n contextMenuProps={{\n disabled: false,\n resendMessage: () => { alert('resend message')},\n showEdit: () => { alert('show edit')},\n showRemove: () => {alert('who remove')},\n }}\n />\n

Sent File message

\n false,\n }}\n channel={{\n isGroupChannel: () => true,\n getUnreadMemberCount: (message) => 10,\n getUndeliveredMemberCount: (message) => 0,\n }}\n isByMe\n contextMenuProps={{\n disabled: false,\n resendMessage: () => { alert('resend message')},\n showEdit: () => { alert('show edit')},\n showRemove: () => {alert('who remove')},\n }}\n />\n

Failed File Message

\n true,\n }}\n channel={{\n isGroupChannel: () => true,\n getUnreadMemberCount: (message) => 10,\n getUndeliveredMemberCount: (message) => 0,\n }}\n isByMe\n contextMenuProps={{\n disabled: false,\n resendMessage: () => { alert('resend message')},\n showEdit: () => { alert('show edit')},\n showRemove: () => {alert('who remove')},\n }}\n />\n

Received Text message

\n false,\n }}\n channel={{\n isGroupChannel: () => true,\n getUnreadMemberCount: (message) => 10,\n getUndeliveredMemberCount: (message) => 0,\n }}\n contextMenuProps={{\n disabled: false,\n resendMessage: () => { alert('resend message')},\n showEdit: () => { alert('show edit')},\n showRemove: () => {alert('who remove')},\n }}\n />\n

Received File message

\n false,\n }}\n channel={{\n isGroupChannel: () => true,\n getUnreadMemberCount: (message) => 10,\n getUndeliveredMemberCount: (message) => 0,\n }}\n contextMenuProps={{\n disabled: false,\n resendMessage: () => { alert('resend message')},\n showEdit: () => { alert('show edit')},\n showRemove: () => {alert('who remove')},\n }}\n />\n \n)"}},messageItemMenu.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MessageItemMenu/stories/MessageItemMenu.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/MessageItemMenu/stories/MessageItemMenu.stories.js"}),messageItemMenu.__docgenInfo={description:"",methods:[],displayName:"messageItemMenu"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MessageItemMenu/stories/MessageItemMenu.stories.js"]={name:"messageItemMenu",docgenInfo:messageItemMenu.__docgenInfo,path:"src/ui/MessageItemMenu/stories/MessageItemMenu.stories.js"})},"./src/ui/MessageItemReactionMenu/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/MessageItemReactionMenu/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/MessageItemReactionMenu/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return MessageEmojiMenu}));__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.find.js"),__webpack_require__("./src/ui/MessageItemReactionMenu/index.scss");var react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__),_ContextMenu__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/ui/ContextMenu/index.tsx"),_Icon__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/ui/Icon/index.tsx"),_IconButton__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/ui/IconButton/index.tsx"),_ImageRenderer__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/ui/ImageRenderer/index.tsx"),_ReactionButton__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/ui/ReactionButton/index.tsx"),_utils__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./src/utils/index.ts");function MessageEmojiMenu(_ref){var className=_ref.className,message=_ref.message,userId=_ref.userId,_ref$spaceFromTrigger=_ref.spaceFromTrigger,spaceFromTrigger=void 0===_ref$spaceFromTrigger?{x:0,y:0}:_ref$spaceFromTrigger,emojiContainer=_ref.emojiContainer,toggleReaction=_ref.toggleReaction,setSupposedHover=_ref.setSupposedHover,triggerRef=Object(react__WEBPACK_IMPORTED_MODULE_3__.useRef)(null),containerRef=Object(react__WEBPACK_IMPORTED_MODULE_3__.useRef)(null);return Object(_utils__WEBPACK_IMPORTED_MODULE_9__.H)(message)||Object(_utils__WEBPACK_IMPORTED_MODULE_9__.y)(message)?null:react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div",{className:Object(_utils__WEBPACK_IMPORTED_MODULE_9__.i)([className,"sendbird-message-item-reaction-menu"]),ref:containerRef},react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_ContextMenu__WEBPACK_IMPORTED_MODULE_4__.h,{menuTrigger:function menuTrigger(toggleDropdown){return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_IconButton__WEBPACK_IMPORTED_MODULE_6__.a,{className:"sendbird-message-item-reaction-menu__trigger",ref:triggerRef,width:"32px",height:"32px",onClick:function onClick(){toggleDropdown(),setSupposedHover(!0)},onBlur:function onBlur(){setSupposedHover(!1)}},react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_5__.c,{className:"sendbird-message-item-reaction-menu__trigger__icon",type:_Icon__WEBPACK_IMPORTED_MODULE_5__.b.EMOJI_MORE,fillColor:_Icon__WEBPACK_IMPORTED_MODULE_5__.a.CONTENT_INVERSE,width:"24px",height:"24px"}))},menuItems:function menuItems(close){var closeDropdown=function closeDropdown(){close(),setSupposedHover(!1)};return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_ContextMenu__WEBPACK_IMPORTED_MODULE_4__.a,{parentRef:triggerRef,parentContainRef:containerRef,closeDropdown:closeDropdown,spaceFromTrigger:spaceFromTrigger},Object(_utils__WEBPACK_IMPORTED_MODULE_9__.j)(emojiContainer).map((function(emoji){var _message$reactions,isReacted=(null==message||null===(_message$reactions=message.reactions)||void 0===_message$reactions||null===(_message$reactions=_message$reactions.find((function(reaction){return reaction.key===emoji.key})))||void 0===_message$reactions||null===(_message$reactions=_message$reactions.userIds)||void 0===_message$reactions?void 0:_message$reactions.some((function(reactorId){return reactorId===userId})))||!1;return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_ReactionButton__WEBPACK_IMPORTED_MODULE_8__.a,{key:emoji.key,width:"36px",height:"36px",selected:isReacted,onClick:function onClick(){closeDropdown(),toggleReaction(message,emoji.key,isReacted)},dataSbId:"ui_emoji_reactions_menu_".concat(emoji.key)},react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_ImageRenderer__WEBPACK_IMPORTED_MODULE_7__.a,{url:emoji.url,width:"28px",height:"28px",placeHolder:function placeHolder(_ref2){var style=_ref2.style;return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div",{style:style},react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_5__.c,{type:_Icon__WEBPACK_IMPORTED_MODULE_5__.b.QUESTION,fillColor:_Icon__WEBPACK_IMPORTED_MODULE_5__.a.ON_BACKGROUND_3,width:"28px",height:"28px"}))}}))})))}}))}__webpack_exports__.b=MessageEmojiMenu;try{MessageEmojiMenu.displayName="MessageEmojiMenu",MessageEmojiMenu.__docgenInfo={description:"",displayName:"MessageEmojiMenu",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string | string[]"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"SendableMessageType"}},userId:{defaultValue:null,description:"",name:"userId",required:!0,type:{name:"string"}},spaceFromTrigger:{defaultValue:{value:"{ x: 0, y: 0 }"},description:"",name:"spaceFromTrigger",required:!1,type:{name:"SpaceFromTriggerType"}},emojiContainer:{defaultValue:null,description:"",name:"emojiContainer",required:!1,type:{name:"EmojiContainer"}},toggleReaction:{defaultValue:null,description:"",name:"toggleReaction",required:!1,type:{name:"(message: SendableMessageType, reactionKey: string, isReacted: boolean) => void"}},setSupposedHover:{defaultValue:null,description:"",name:"setSupposedHover",required:!1,type:{name:"(bool: boolean) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MessageItemReactionMenu/index.tsx#MessageEmojiMenu"]={docgenInfo:MessageEmojiMenu.__docgenInfo,name:"MessageEmojiMenu",path:"src/ui/MessageItemReactionMenu/index.tsx#MessageEmojiMenu"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/MessageItemReactionMenu/stories/MessageItemReactionMenu.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return WithControl})),__webpack_require__.d(__webpack_exports__,"withText",(function(){return withText}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _ContextMenu__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/ContextMenu/index.tsx"),_index_tsx__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/ui/MessageItemReactionMenu/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/MessageItemReactionMenu",component:_index_tsx__WEBPACK_IMPORTED_MODULE_3__.b,parameters:{docs:{description:{component:'\n `import MessageItemReactionMenu from "@sendbird/uikit-react/ui/MessageItemReactionMenu";`\n'}}}};var message={message:"I am message haha",reactions:[{key:"emoji1",userIds:["hoon-army-001","hoon-army-002"]},{key:"emoji2",userIds:["sravan-001","sravan-002"]}]},contextMenuProps={emojiContainer:{emojiCategories:[{emojis:[{key:"emoji1",url:""}]},{emojis:[{key:"emoji2",url:""}]}]},toggleReaction:function toggleReaction(message,key,isReacted){return alert(message.message+" "+key+" "+(isReacted?"true":"false"))}},WithControl=function WithControl(arg){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("div",{children:[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_ContextMenu__WEBPACK_IMPORTED_MODULE_2__.b,{}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_3__.b,Object.assign({message:message,contextMenuProps:contextMenuProps},arg))]})};WithControl.displayName="WithControl";var withText=function withText(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("div",{children:[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_ContextMenu__WEBPACK_IMPORTED_MODULE_2__.b,{}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_3__.b,{message:message,userId:"hoon-army-001",contextMenuProps:contextMenuProps})]})};withText.displayName="withText",WithControl.parameters=Object.assign({storySource:{source:"(arg) => (\n
\n \n \n
\n)"}},WithControl.parameters),withText.parameters=Object.assign({storySource:{source:'() => (\n
\n \n \n
\n)'}},withText.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MessageItemReactionMenu/stories/MessageItemReactionMenu.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/MessageItemReactionMenu/stories/MessageItemReactionMenu.stories.js"}),withText.__docgenInfo={description:"",methods:[],displayName:"withText"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MessageItemReactionMenu/stories/MessageItemReactionMenu.stories.js"]={name:"withText",docgenInfo:withText.__docgenInfo,path:"src/ui/MessageItemReactionMenu/stories/MessageItemReactionMenu.stories.js"})},"./src/ui/MessageSearchFileItem/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/MessageSearchFileItem/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/MessageSearchFileItem/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return MessageSearchFileItem_MessageSearchFileItem}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./src/ui/MessageSearchFileItem/index.scss");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),Avatar=__webpack_require__("./src/ui/Avatar/index.tsx"),Icon=__webpack_require__("./src/ui/Icon/index.tsx"),Label=__webpack_require__("./src/ui/Label/index.tsx"),LocalizationContext=__webpack_require__("./src/lib/LocalizationContext.tsx"),format=(__webpack_require__("./node_modules/core-js/modules/es.string.match.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/date-fns/esm/format/index.js")),isToday=__webpack_require__("./node_modules/date-fns/esm/isToday/index.js"),isThisYear=__webpack_require__("./node_modules/date-fns/esm/isThisYear/index.js"),isYesterday=__webpack_require__("./node_modules/date-fns/esm/isYesterday/index.js"),utils=__webpack_require__("./src/utils/index.ts"),QuoteMessage_utils=__webpack_require__("./src/ui/QuoteMessage/utils.ts");function getIconOfFileType(message){var _getMessageFirstFileU,_fileMessageUrl$match,_fileMessageUrl$match2,fileExtension=null!==(_fileMessageUrl$match=null===(_fileMessageUrl$match2=(null!==(_getMessageFirstFileU=Object(QuoteMessage_utils.d)(message))&&void 0!==_getMessageFirstFileU?_getMessageFirstFileU:"").match(/\.([^.]*?)(?=\?|#|$)/))||void 0===_fileMessageUrl$match2?void 0:_fileMessageUrl$match2[1])&&void 0!==_fileMessageUrl$match?_fileMessageUrl$match:"";return/(jpg|jpeg|png)$/i.test(fileExtension)?Icon.b.PHOTO:/mp4$/i.test(fileExtension)||Object(utils.W)(message)?Icon.b.PLAY:/mp3/i.test(fileExtension)?Icon.b.FILE_AUDIO:/gif/i.test(fileExtension)?Icon.b.GIF:Icon.b.FILE_DOCUMENT}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MessageSearchFileItem/index.tsx#MessageSearchFileItem"]={docgenInfo:MessageSearchFileItem_MessageSearchFileItem.__docgenInfo,name:"MessageSearchFileItem",path:"src/ui/MessageSearchFileItem/index.tsx#MessageSearchFileItem"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/MessageSearchFileItem/stories/MessageSearchFileItem.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return MessageSearchFileItem_stories_WithControl})),__webpack_require__.d(__webpack_exports__,"normal",(function(){return MessageSearchFileItem_stories_normal}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var MessageSearchFileItem=__webpack_require__("./src/ui/MessageSearchFileItem/index.tsx"),docMock={messageId:15814617,messageType:"file",channelUrl:"sendbird_group_channel_11985956_fa67b79d39e6aa5abbeda4413cde24ce1685eedb",data:"",customType:"",createdAt:1579767478896,updatedAt:0,channelType:"group",metaArrays:[],reactions:[],mentionType:"users",mentionedUsers:[],url:"72b35fef-acda-4e32-123323456789973567890dfvgbhnjmkiytdxbna0e4-37e1226b0615.test",name:"",size:0,type:"",thumbnails:[],sender:{nickname:"ME",profileUrl:"https://static.sendbird.com/sample/profiles/profile_19_512px.png",userId:"hoon1234",connectionStatus:"nonavailable",lastSeenAt:0,isActive:!0,friendDiscoveryKey:null,friendName:null,_preferredLanguages:null,isBlockedByMe:!1},reqId:"1583104547956",requireAuth:!1,requestState:"succeeded",requestedMentionUserIds:[],errorCode:0},imageMock={messageId:15814617,messageType:"file",channelUrl:"sendbird_group_channel_11985956_fa67b79d39e6aa5abbeda4413cde24ce1685eedb",data:"",customType:"",createdAt:1579767478896,updatedAt:0,channelType:"group",metaArrays:[],reactions:[],mentionType:"users",mentionedUsers:[],url:"72b35fef-acda-4e32-123323456789973567890dfvgbhnjmkiytdxbna0e4-37e1226b0615.jpg",name:"",size:0,type:"",thumbnails:[],sender:{nickname:"ME",profileUrl:"https://static.sendbird.com/sample/profiles/profile_19_512px.png",userId:"hoon1234",connectionStatus:"nonavailable",lastSeenAt:0,isActive:!0,friendDiscoveryKey:null,friendName:null,_preferredLanguages:null,isBlockedByMe:!1},reqId:"1583104547956",requireAuth:!1,requestState:"succeeded",requestedMentionUserIds:[],errorCode:0},audioMock={messageId:15814617,messageType:"file",channelUrl:"sendbird_group_channel_11985956_fa67b79d39e6aa5abbeda4413cde24ce1685eedb",data:"",customType:"",createdAt:1579767478896,updatedAt:0,channelType:"group",metaArrays:[],reactions:[],mentionType:"users",mentionedUsers:[],url:"72b35fef-acda-4e32-123323456789973567890dfvgbhnjmkiytdxbna0e4-37e1226b0615.mp3",name:"",size:0,type:"",thumbnails:[],sender:{nickname:"ME",profileUrl:"https://static.sendbird.com/sample/profiles/profile_19_512px.png",userId:"hoon1234",connectionStatus:"nonavailable",lastSeenAt:0,isActive:!0,friendDiscoveryKey:null,friendName:null,_preferredLanguages:null,isBlockedByMe:!1},reqId:"1583104547956",requireAuth:!1,requestState:"succeeded",requestedMentionUserIds:[],errorCode:0},videoMock={messageId:15814617,messageType:"file",channelUrl:"sendbird_group_channel_11985956_fa67b79d39e6aa5abbeda4413cde24ce1685eedb",data:"",customType:"",createdAt:1579767478896,updatedAt:0,channelType:"group",metaArrays:[],reactions:[],mentionType:"users",mentionedUsers:[],url:"72b35fef-acda-4e32-123323456789973567890dfvgbhnjmkiytdxbna0e4-37e1226b0615.mp4",name:"",size:0,type:"",thumbnails:[],sender:{nickname:"ME",profileUrl:"https://static.sendbird.com/sample/profiles/profile_19_512px.png",userId:"hoon1234",connectionStatus:"nonavailable",lastSeenAt:0,isActive:!0,friendDiscoveryKey:null,friendName:null,_preferredLanguages:null,isBlockedByMe:!1},reqId:"1583104547956",requireAuth:!1,requestState:"succeeded",requestedMentionUserIds:[],errorCode:0},gifMock={messageId:15814617,messageType:"file",channelUrl:"sendbird_group_channel_11985956_fa67b79d39e6aa5abbeda4413cde24ce1685eedb",data:"",customType:"",createdAt:1579767478896,updatedAt:0,channelType:"group",metaArrays:[],reactions:[],mentionType:"users",mentionedUsers:[],url:"72b35fef-acda-4e32-123323456789973567890dfvgbhnjmkiytdxbna0e4-37e1226b0615.gif",name:"",size:0,type:"",thumbnails:[],sender:{nickname:"ME",profileUrl:"https://static.sendbird.com/sample/profiles/profile_19_512px.png",userId:"hoon1234",connectionStatus:"nonavailable",lastSeenAt:0,isActive:!0,friendDiscoveryKey:null,friendName:null,_preferredLanguages:null,isBlockedByMe:!1},reqId:"1583104547956",requireAuth:!1,requestState:"succeeded",requestedMentionUserIds:[],errorCode:0},jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),MessageSearchFileItem_stories_WithControl=(__webpack_exports__.default={title:"@sendbird/uikit-react/ui/MessageSearchFileItem",component:MessageSearchFileItem.a,parameters:{docs:{description:{component:'\n `import MessageSearchFileItem from "@sendbird/uikit-react/ui/MessageSearchFileItem";`\n'}}}},function WithControl(arg){return Object(jsx_runtime.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:Object(jsx_runtime.jsx)(MessageSearchFileItem.a,Object.assign({message:docMock,onClick:function onClick(){return console.log("doc click")}},arg))})});MessageSearchFileItem_stories_WithControl.displayName="WithControl";var MessageSearchFileItem_stories_normal=function normal(){return Object(jsx_runtime.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[Object(jsx_runtime.jsx)(MessageSearchFileItem.a,{message:docMock,onClick:function onClick(){return console.log("doc click")}}),Object(jsx_runtime.jsx)(MessageSearchFileItem.a,{message:imageMock,onClick:function onClick(){return console.log("image click")}}),Object(jsx_runtime.jsx)(MessageSearchFileItem.a,{message:audioMock,onClick:function onClick(){return console.log("audio click")}}),Object(jsx_runtime.jsx)(MessageSearchFileItem.a,{message:videoMock,onClick:function onClick(){return console.log("video click")}}),Object(jsx_runtime.jsx)(MessageSearchFileItem.a,{message:gifMock,onClick:function onClick(){return console.log("gif click")}}),Object(jsx_runtime.jsx)(MessageSearchFileItem.a,{message:docMock,selected:!0,onClick:function onClick(){return console.log("selected click")}})]})};MessageSearchFileItem_stories_normal.displayName="normal",MessageSearchFileItem_stories_WithControl.parameters=Object.assign({storySource:{source:"(arg) => (\n
\n console.log('doc click')}\n {...arg}\n />\n
\n)"}},MessageSearchFileItem_stories_WithControl.parameters),MessageSearchFileItem_stories_normal.parameters=Object.assign({storySource:{source:"() => {\n return (\n
\n console.log('doc click')}\n />\n console.log('image click')}\n />\n console.log('audio click')}\n />\n console.log('video click')}\n />\n console.log('gif click')}\n />\n console.log('selected click')}\n />\n
\n );\n}"}},MessageSearchFileItem_stories_normal.parameters),MessageSearchFileItem_stories_WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MessageSearchFileItem/stories/MessageSearchFileItem.stories.js"]={name:"WithControl",docgenInfo:MessageSearchFileItem_stories_WithControl.__docgenInfo,path:"src/ui/MessageSearchFileItem/stories/MessageSearchFileItem.stories.js"}),MessageSearchFileItem_stories_normal.__docgenInfo={description:"",methods:[],displayName:"normal"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MessageSearchFileItem/stories/MessageSearchFileItem.stories.js"]={name:"normal",docgenInfo:MessageSearchFileItem_stories_normal.__docgenInfo,path:"src/ui/MessageSearchFileItem/stories/MessageSearchFileItem.stories.js"})},"./src/ui/MessageSearchItem/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/MessageSearchItem/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/MessageSearchItem/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return MessageSearchItem_MessageSearchItem}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),format=(__webpack_require__("./src/ui/MessageSearchItem/index.scss"),__webpack_require__("./node_modules/date-fns/esm/format/index.js")),isToday=__webpack_require__("./node_modules/date-fns/esm/isToday/index.js"),isThisYear=__webpack_require__("./node_modules/date-fns/esm/isThisYear/index.js"),isYesterday=__webpack_require__("./node_modules/date-fns/esm/isYesterday/index.js"),getCreatedAt=function(_ref){var createdAt=_ref.createdAt,locale=_ref.locale,stringSet=_ref.stringSet,optionalParam=locale?{locale:locale}:null;return createdAt?Object(isToday.a)(createdAt)?Object(format.a)(createdAt,"p",optionalParam):Object(isYesterday.a)(createdAt)?(null==stringSet?void 0:stringSet.MESSAGE_STATUS__YESTERDAY)||"Yesterday":Object(isThisYear.a)(createdAt)?Object(format.a)(createdAt,"MMM d",optionalParam):Object(format.a)(createdAt,"yyyy/M/d",optionalParam):""},Avatar=__webpack_require__("./src/ui/Avatar/index.tsx"),Label=__webpack_require__("./src/ui/Label/index.tsx"),LocalizationContext=__webpack_require__("./src/lib/LocalizationContext.tsx");function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MessageSearchItem/index.tsx#MessageSearchItem"]={docgenInfo:MessageSearchItem_MessageSearchItem.__docgenInfo,name:"MessageSearchItem",path:"src/ui/MessageSearchItem/index.tsx#MessageSearchItem"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/MessageSearchItem/stories/MessageSearchItem.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return MessageSearchItem_stories_WithControl})),__webpack_require__.d(__webpack_exports__,"normal",(function(){return MessageSearchItem_stories_normal}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var MessageSearchItem=__webpack_require__("./src/ui/MessageSearchItem/index.tsx");function generateNormalMessage(pretreatment){var message={messageId:358312775,messageType:"user",channelUrl:"sendbird_group_channel_13883929_89ea0faddf24ba6328e95ff56b0b37960f400c83",data:"",customType:"",createdAt:1579767478896,updatedAt:0,channelType:"group",metaArrays:[],reactions:[],mentionType:"users",mentionedUsers:[],message:"Hello My name is SendBird.",sender:{nickname:"Sravan",profileUrl:"https://static.sendbird.com/sample/profiles/profile_33_512px.png",connectionStatus:"nonavailable",userId:"userIds[getRandomInt(2)]",lastSeenAt:0,metaData:{},isActive:!0,friendDiscoveryKey:null,friendName:null,preferredLanguages:null},reqId:"1579767478746",translations:{},requestState:"succeeded",requestedMentionUserIds:[],errorCode:0};return pretreatment?pretreatment(message):message}generateNormalMessage();var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),MessageSearchItem_stories_WithControl=(__webpack_exports__.default={title:"@sendbird/uikit-react/ui/MessageSearchItem",component:MessageSearchItem.a,parameters:{docs:{description:{component:'\n `import MessageSearchItem from "@sendbird/uikit-react/ui/MessageSearchItem";`\n'}}}},function WithControl(arg){return Object(jsx_runtime.jsx)(MessageSearchItem.a,Object.assign({message:generateNormalMessage()},arg))});MessageSearchItem_stories_WithControl.displayName="WithControl";var MessageSearchItem_stories_normal=function normal(){return Object(jsx_runtime.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[Object(jsx_runtime.jsx)(MessageSearchItem.a,{message:generateNormalMessage()}),Object(jsx_runtime.jsx)(MessageSearchItem.a,{message:(message={messageId:358312775,messageType:"user",channelUrl:"sendbird_group_channel_13883929_89ea0faddf24ba6328e95ff56b0b37960f400c83",data:"",customType:"",createdAt:1579767478896,updatedAt:0,channelType:"group",metaArrays:[],reactions:[],mentionType:"users",mentionedUsers:[],message:"Hello My name is SendBird Nice to meet you This meeting is my honer of my life. Hello My name is SendBird Nice to meet you This meeting is my honer of my life. Hello My name is SendBird Nice to meet you This meeting is my honer of my life. Hello My name is SendBird Nice to meet you This meeting is my honer of my life. Hello My name is SendBird Nice to meet you This meeting is my honer of my life. Hello My name is SendBird Nice to meet you This meeting is my honer of my life. Hello My name is SendBird Nice to meet you This meeting is my honer of my life. Hello My name is SendBird Nice to meet you This meeting is my honer of my life.",sender:{nickname:"Sravan",profileUrl:"https://static.sendbird.com/sample/profiles/profile_33_512px.png",connectionStatus:"nonavailable",userId:"userIds[getRandomInt(2)]",lastSeenAt:0,metaData:{},isActive:!0,friendDiscoveryKey:null,friendName:null,preferredLanguages:null},reqId:"1579767478746",translations:{},requestState:"succeeded",requestedMentionUserIds:[],errorCode:0},pretreatment?pretreatment(message):message)}),Object(jsx_runtime.jsx)(MessageSearchItem.a,{message:generateNormalMessage(),selected:!0})]});var pretreatment,message};MessageSearchItem_stories_normal.displayName="normal",MessageSearchItem_stories_WithControl.parameters=Object.assign({storySource:{source:"(arg) => (\n \n)"}},MessageSearchItem_stories_WithControl.parameters),MessageSearchItem_stories_normal.parameters=Object.assign({storySource:{source:"() => (\n
\n \n \n \n
\n)"}},MessageSearchItem_stories_normal.parameters),MessageSearchItem_stories_WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MessageSearchItem/stories/MessageSearchItem.stories.js"]={name:"WithControl",docgenInfo:MessageSearchItem_stories_WithControl.__docgenInfo,path:"src/ui/MessageSearchItem/stories/MessageSearchItem.stories.js"}),MessageSearchItem_stories_normal.__docgenInfo={description:"",methods:[],displayName:"normal"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MessageSearchItem/stories/MessageSearchItem.stories.js"]={name:"normal",docgenInfo:MessageSearchItem_stories_normal.__docgenInfo,path:"src/ui/MessageSearchItem/stories/MessageSearchItem.stories.js"})},"./src/ui/MessageStatus/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/MessageStatus/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/MessageStatus/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return MessageStatusTypes})),__webpack_require__.d(__webpack_exports__,"b",(function(){return MessageStatus}));__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./src/ui/MessageStatus/index.scss");var react__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_16__),date_fns_format__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./node_modules/date-fns/esm/format/index.js"),_Icon__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./src/ui/Icon/index.tsx"),_Label__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./src/ui/Label/index.tsx"),_Loader__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/ui/Loader/index.tsx"),_utils__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./src/utils/index.ts"),_utils_exports_getOutgoingMessageState__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/utils/exports/getOutgoingMessageState.ts"),_modules_ChannelList_components_ChannelPreview_utils__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./src/modules/ChannelList/components/ChannelPreview/utils.ts"),_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./src/lib/LocalizationContext.tsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i (\n \n)"}},MessageStatus_stories_WithControl.parameters),MessageStatus_stories_messageStatus.parameters=Object.assign({storySource:{source:"() => [\n

\n PENDING\n \n

,\n

\n SENT\n \n

,\n

\n DELIVERED\n \n

,\n

\n READ\n \n

,\n

\n FAILED\n \n

,\n]"}},MessageStatus_stories_messageStatus.parameters),MessageStatus_stories_WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MessageStatus/stories/MessageStatus.stories.js"]={name:"WithControl",docgenInfo:MessageStatus_stories_WithControl.__docgenInfo,path:"src/ui/MessageStatus/stories/MessageStatus.stories.js"})},"./src/ui/MessageTemplate/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/MessageTemplate/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/MobileFeedbackMenu/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/MobileFeedbackMenu/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/MobileMenu/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./src/ui/MobileMenu/mobile-menu.scss");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),ContextMenu=__webpack_require__("./src/ui/ContextMenu/index.tsx"),utils=__webpack_require__("./src/utils/index.ts"),LocalizationContext=__webpack_require__("./src/lib/LocalizationContext.tsx"),Icon=__webpack_require__("./src/ui/Icon/index.tsx"),Label=__webpack_require__("./src/ui/Label/index.tsx"),MobileContextMenu_MobileContextMenu=function MobileContextMenu(props){var _message$sender,_message$threadInfo$r,_message$threadInfo,hideMenu=props.hideMenu,channel=props.channel,message=props.message,replyType=props.replyType,userId=props.userId,resendMessage=props.resendMessage,showEdit=props.showEdit,showRemove=props.showRemove,deleteMenuState=props.deleteMenuState,deleteMessage=props.deleteMessage,setQuoteMessage=props.setQuoteMessage,parentRef=props.parentRef,onReplyInThread=props.onReplyInThread,_props$isOpenedFromTh=props.isOpenedFromThread,isOpenedFromThread=void 0!==_props$isOpenedFromTh&&_props$isOpenedFromTh,isByMe=(null==message||null===(_message$sender=message.sender)||void 0===_message$sender?void 0:_message$sender.userId)===userId,stringSet=Object(LocalizationContext.c)().stringSet,showMenuItemCopy=Object(utils.T)(message),showMenuItemEdit=Object(utils.T)(message)&&Object(utils.L)(message)&&isByMe,showMenuItemResend=Object(utils.y)(message)&&(null==message?void 0:message.isResendable)&&isByMe,showMenuItemDelete=!Object(utils.H)(message)&&isByMe,showMenuItemDeleteFinal=isByMe&&(void 0===deleteMenuState||"HIDE"!==deleteMenuState)&&showMenuItemDelete,disableDelete=void 0!==deleteMenuState&&"DISABLE"===deleteMenuState||(null!==(_message$threadInfo$r=null==message||null===(_message$threadInfo=message.threadInfo)||void 0===_message$threadInfo?void 0:_message$threadInfo.replyCount)&&void 0!==_message$threadInfo$r?_message$threadInfo$r:0)>0,showMenuItemDownload=!Object(utils.H)(message)&&Object(utils.z)(message)&&!(Object(utils.W)(message)&&(null!=channel&&channel.isSuper||null!=channel&&channel.isBroadcast)),showMenuItemReply="QUOTE_REPLY"===replyType&&!Object(utils.y)(message)&&!Object(utils.H)(message)&&(null==channel?void 0:channel.isGroupChannel()),showMenuItemThread="THREAD"===replyType&&!isOpenedFromThread&&!Object(utils.y)(message)&&!Object(utils.H)(message)&&!Object(utils.R)(message)&&(null==channel?void 0:channel.isGroupChannel()),fileMessage=message;return react_default.a.createElement(ContextMenu.h,{isOpen:!0,menuItems:function menuItems(){var _message$parentMessag,_message$parentMessag2,_message$parentMessag3;return react_default.a.createElement(ContextMenu.d,{className:"sendbird-message__mobile-context-menu",parentRef:parentRef,parentContainRef:parentRef,closeDropdown:hideMenu},showMenuItemCopy&&react_default.a.createElement(ContextMenu.c,{className:"sendbird-message__mobile-context-menu-item menu-item-copy",onClick:function onClick(){hideMenu(),Object(utils.e)(null==message?void 0:message.message)},dataSbId:"ui_mobile_message_item_menu_copy"},react_default.a.createElement(Label.d,{type:Label.c.SUBTITLE_1,color:Label.a.ONBACKGROUND_1},null==stringSet?void 0:stringSet.MESSAGE_MENU__COPY),react_default.a.createElement(Icon.c,{type:Icon.b.COPY,fillColor:Icon.a.PRIMARY,width:"24px",height:"24px"})),showMenuItemReply&&react_default.a.createElement(ContextMenu.c,{className:"sendbird-message__mobile-context-menu-item menu-item-reply",onClick:function onClick(){hideMenu(),setQuoteMessage(message)},disable:(null!==(_message$parentMessag=null==message?void 0:message.parentMessageId)&&void 0!==_message$parentMessag?_message$parentMessag:0)>0,dataSbId:"ui_mobile_message_item_menu_reply"},react_default.a.createElement(Label.d,{type:Label.c.SUBTITLE_1,color:(null!==(_message$parentMessag2=null==message?void 0:message.parentMessageId)&&void 0!==_message$parentMessag2?_message$parentMessag2:0)>0?Label.a.ONBACKGROUND_4:Label.a.ONBACKGROUND_1},stringSet.MESSAGE_MENU__REPLY),react_default.a.createElement(Icon.c,{type:Icon.b.REPLY,fillColor:(null!==(_message$parentMessag3=null==message?void 0:message.parentMessageId)&&void 0!==_message$parentMessag3?_message$parentMessag3:0)>0?Icon.a.ON_BACKGROUND_4:Icon.a.PRIMARY,width:"24px",height:"24px"})),showMenuItemThread&&react_default.a.createElement(ContextMenu.c,{className:"sendbird-message__mobile-context-menu-item menu-item-reply",onClick:function onClick(){hideMenu(),null==onReplyInThread||onReplyInThread({message:message})},dataSbId:"ui_mobile_message_item_menu_thread"},react_default.a.createElement(Label.d,{type:Label.c.SUBTITLE_1,color:Label.a.ONBACKGROUND_1},stringSet.MESSAGE_MENU__THREAD),react_default.a.createElement(Icon.c,{type:Icon.b.THREAD,fillColor:Icon.a.PRIMARY,width:"24px",height:"24px"})),showMenuItemEdit&&react_default.a.createElement(ContextMenu.c,{className:"sendbird-message__mobile-context-menu-item menu-item-edit",onClick:function onClick(){hideMenu(),showEdit(!0)},dataSbId:"ui_mobile_message_item_menu_edit"},react_default.a.createElement(Label.d,{type:Label.c.SUBTITLE_1,color:Label.a.ONBACKGROUND_1},stringSet.MESSAGE_MENU__EDIT),react_default.a.createElement(Icon.c,{type:Icon.b.EDIT,fillColor:Icon.a.PRIMARY,width:"24px",height:"24px"})),showMenuItemResend&&react_default.a.createElement(ContextMenu.c,{className:"sendbird-message__mobile-context-menu-item menu-item-resend",onClick:function onClick(){hideMenu(),resendMessage(message)},dataSbId:"ui_mobile_message_item_menu_resend"},react_default.a.createElement(Label.d,{type:Label.c.SUBTITLE_1,color:Label.a.ONBACKGROUND_1},stringSet.MESSAGE_MENU__RESEND),react_default.a.createElement(Icon.c,{type:Icon.b.REFRESH,fillColor:Icon.a.PRIMARY,width:"24px",height:"24px"})),showMenuItemDeleteFinal&&react_default.a.createElement(ContextMenu.c,{className:"sendbird-message__mobile-context-menu-item menu-item-delete",onClick:function onClick(){Object(utils.y)(message)?(hideMenu(),null==deleteMessage||deleteMessage(message)):disableDelete||(hideMenu(),null==showRemove||showRemove(!0))},disable:disableDelete,dataSbId:"ui_mobile_message_item_menu_delete"},react_default.a.createElement(Label.d,{type:Label.c.SUBTITLE_1,color:disableDelete?Label.a.ONBACKGROUND_4:Label.a.ONBACKGROUND_1},stringSet.MESSAGE_MENU__DELETE),react_default.a.createElement(Icon.c,{type:Icon.b.DELETE,fillColor:disableDelete?Icon.a.ON_BACKGROUND_4:Icon.a.PRIMARY,width:"24px",height:"24px"})),showMenuItemDownload&&react_default.a.createElement(ContextMenu.c,{className:"sendbird-message__mobile-context-menu-item menu-item-save",onClick:function onClick(){hideMenu()},dataSbId:"ui_mobile_message_item_menu_download_file"},react_default.a.createElement("a",{className:"sendbird-message__contextmenu--hyperlink",rel:"noopener noreferrer",href:null==fileMessage?void 0:fileMessage.url,target:"_blank"},react_default.a.createElement(Label.d,{type:Label.c.SUBTITLE_1,color:Label.a.ONBACKGROUND_1},stringSet.MESSAGE_MENU__SAVE),react_default.a.createElement(Icon.c,{type:Icon.b.DOWNLOAD,fillColor:Icon.a.PRIMARY,width:"24px",height:"24px"}))))}})},MobileMenu_MobileContextMenu=MobileContextMenu_MobileContextMenu;try{MobileContextMenu_MobileContextMenu.displayName="MobileContextMenu",MobileContextMenu_MobileContextMenu.__docgenInfo={description:"",displayName:"MobileContextMenu",props:{channel:{defaultValue:null,description:"",name:"channel",required:!0,type:{name:"GroupChannel | OpenChannel"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"SendableMessageType"}},userId:{defaultValue:null,description:"",name:"userId",required:!0,type:{name:"string"}},hideMenu:{defaultValue:null,description:"",name:"hideMenu",required:!0,type:{name:"() => void"}},isByMe:{defaultValue:null,description:"",name:"isByMe",required:!1,type:{name:"boolean"}},replyType:{defaultValue:null,description:"",name:"replyType",required:!1,type:{name:"enum",value:[{value:'"NONE"'},{value:'"QUOTE_REPLY"'},{value:'"THREAD"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},deleteMenuState:{defaultValue:null,description:"",name:"deleteMenuState",required:!1,type:{name:"enum",value:[{value:'"DISABLE"'},{value:'"HIDE"'},{value:'"ACTIVE"'}]}},showEdit:{defaultValue:null,description:"",name:"showEdit",required:!1,type:{name:"(bool: boolean) => void"}},showRemove:{defaultValue:null,description:"",name:"showRemove",required:!1,type:{name:"(bool: boolean) => void"}},resendMessage:{defaultValue:null,description:"",name:"resendMessage",required:!1,type:{name:"(message: SendableMessageType) => void"}},deleteMessage:{defaultValue:null,description:"",name:"deleteMessage",required:!1,type:{name:"(message: CoreMessageType) => Promise"}},setQuoteMessage:{defaultValue:null,description:"",name:"setQuoteMessage",required:!1,type:{name:"(message: SendableMessageType) => void"}},isReactionEnabled:{defaultValue:null,description:"",name:"isReactionEnabled",required:!1,type:{name:"boolean"}},parentRef:{defaultValue:null,description:"",name:"parentRef",required:!1,type:{name:"RefObject"}},onReplyInThread:{defaultValue:null,description:"",name:"onReplyInThread",required:!1,type:{name:"(props: { message: SendableMessageType; }) => void"}},isOpenedFromThread:{defaultValue:null,description:"",name:"isOpenedFromThread",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MobileMenu/MobileContextMenu.tsx#MobileContextMenu"]={docgenInfo:MobileContextMenu_MobileContextMenu.__docgenInfo,name:"MobileContextMenu",path:"src/ui/MobileMenu/MobileContextMenu.tsx#MobileContextMenu"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js");var BottomSheet=__webpack_require__("./src/ui/BottomSheet/index.tsx"),ImageRenderer=__webpack_require__("./src/ui/ImageRenderer/index.tsx"),ReactionButton=__webpack_require__("./src/ui/ReactionButton/index.tsx"),useSendbirdStateContext=__webpack_require__("./src/hooks/useSendbirdStateContext.tsx");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0,showMenuItemDownload=Object(utils.L)(message)&&Object(utils.z)(message)&&!Object(utils.W)(message),showReaction=!Object(utils.y)(message)&&!Object(utils.H)(message)&&isReactionEnabled,showMenuItemReply="QUOTE_REPLY"===replyType&&!Object(utils.y)(message)&&!Object(utils.H)(message)&&(null==channel?void 0:channel.isGroupChannel())&&!(null!=channel&&channel.isBroadcast),showMenuItemThread="THREAD"===replyType&&!isOpenedFromThread&&!Object(utils.y)(message)&&!Object(utils.H)(message)&&!Object(utils.R)(message)&&(null==channel?void 0:channel.isGroupChannel())&&!(null!=channel&&channel.isBroadcast),disableReaction=(null==message?void 0:message.parentMessageId)>0,fileMessage=message,maxEmojisPerRow=Math.floor(window.innerWidth/38)-1,_useState2=_slicedToArray(Object(react.useState)(!1),2),showEmojisOnly=_useState2[0],setShowEmojisOnly=_useState2[1],emojis=Object(utils.j)(emojiContainer),visibleEmojis=showEmojisOnly?emojis:null==emojis?void 0:emojis.slice(0,maxEmojisPerRow),canShowMoreEmojis=emojis.length>maxEmojisPerRow;return react_default.a.createElement(BottomSheet.a,{onBackdropClick:hideMenu},react_default.a.createElement("div",{className:"sendbird-message__bottomsheet"},showReaction&&react_default.a.createElement("div",{className:"sendbird-message__bottomsheet-reactions"},react_default.a.createElement("ul",{className:"sendbird-message__bottomsheet-reaction-bar"},react_default.a.createElement("div",{className:"\n sendbird-message__bottomsheet-reaction-bar__row\n ".concat(showEmojisOnly?"sendbird-message__bottomsheet-reaction-bar__all":"","\n ")},visibleEmojis.map((function(emoji){var _message$reactions,isReacted=null==message||null===(_message$reactions=message.reactions)||void 0===_message$reactions||null===(_message$reactions=_message$reactions.filter((function(reaction){return reaction.key===emoji.key}))[0])||void 0===_message$reactions||null===(_message$reactions=_message$reactions.userIds)||void 0===_message$reactions?void 0:_message$reactions.some((function(reactorId){return reactorId===userId}));return react_default.a.createElement(ReactionButton.a,{key:emoji.key,width:"".concat(38,"px"),height:"".concat(38,"px"),selected:isReacted,onClick:function onClick(){hideMenu(),toggleReaction(message,emoji.key,isReacted)},dataSbId:"ui_mobile_emoji_reactions_menu_".concat(emoji.key)},react_default.a.createElement(ImageRenderer.a,{url:(null==emoji?void 0:emoji.url)||"",width:"28px",height:"28px",placeHolder:function placeHolder(_ref){var style=_ref.style;return react_default.a.createElement("div",{style:style},react_default.a.createElement(Icon.c,{type:Icon.b.QUESTION,fillColor:Icon.a.ON_BACKGROUND_3,width:"28px",height:"28px"}))}}))})),canShowMoreEmojis&&!showEmojisOnly&&react_default.a.createElement(ReactionButton.a,{key:"emoji_more",width:"38px",height:"38px",onClick:function onClick(){setShowEmojisOnly(!0)},dataSbId:"ui_mobile_emoji_reactions_menu_emojiadd"},react_default.a.createElement(ImageRenderer.a,{url:"",width:"28px",height:"28px",placeHolder:function placeHolder(_ref2){var style=_ref2.style;return react_default.a.createElement("div",{style:style},react_default.a.createElement(Icon.c,{type:Icon.b.EMOJI_MORE,fillColor:Icon.a.ON_BACKGROUND_3,width:"28px",height:"28px"}))}}))))),!showEmojisOnly&&react_default.a.createElement("div",{className:"sendbird-message__bottomsheet--actions"},showMenuItemCopy&&react_default.a.createElement("div",{className:"sendbird-message__bottomsheet--action",onClick:function onClick(){hideMenu(),Object(utils.e)(null==message?void 0:message.message)}},react_default.a.createElement(Icon.c,{type:Icon.b.COPY,fillColor:Icon.a.PRIMARY,width:"24px",height:"24px"}),react_default.a.createElement(Label.d,{type:Label.c.SUBTITLE_1,color:Label.a.ONBACKGROUND_1},null==stringSet?void 0:stringSet.MESSAGE_MENU__COPY)),showMenuItemEdit&&react_default.a.createElement("div",{className:"sendbird-message__bottomsheet--action",onClick:function onClick(){hideMenu(),showEdit(!0)}},react_default.a.createElement(Icon.c,{type:Icon.b.EDIT,fillColor:Icon.a.PRIMARY,width:"24px",height:"24px"}),react_default.a.createElement(Label.d,{type:Label.c.SUBTITLE_1,color:Label.a.ONBACKGROUND_1},null==stringSet?void 0:stringSet.MESSAGE_MENU__EDIT)),showMenuItemResend&&react_default.a.createElement("div",{className:"sendbird-message__bottomsheet--action",onClick:function onClick(){hideMenu(),resendMessage(message)}},react_default.a.createElement(Icon.c,{type:Icon.b.REFRESH,fillColor:Icon.a.PRIMARY,width:"24px",height:"24px"}),react_default.a.createElement(Label.d,{type:Label.c.SUBTITLE_1,color:Label.a.ONBACKGROUND_1},null==stringSet?void 0:stringSet.MESSAGE_MENU__RESEND)),showMenuItemReply&&react_default.a.createElement("div",{className:"sendbird-message__bottomsheet--action\n ".concat(disableReaction?"sendbird-message__bottomsheet--action-disabled":"","\n "),role:"menuitem","aria-disabled":!!disableReaction,onClick:function onClick(){disableReaction||(hideMenu(),setQuoteMessage(message))}},react_default.a.createElement(Icon.c,{type:Icon.b.REPLY,fillColor:disableReaction?Icon.a.ON_BACKGROUND_3:Icon.a.PRIMARY,width:"24px",height:"24px"}),react_default.a.createElement(Label.d,{type:Label.c.SUBTITLE_1,color:disableReaction?Label.a.ONBACKGROUND_4:Label.a.ONBACKGROUND_1},null==stringSet?void 0:stringSet.MESSAGE_MENU__REPLY)),showMenuItemThread&&react_default.a.createElement("div",{className:"sendbird-message__bottomsheet--action",onClick:function onClick(){hideMenu(),null==onReplyInThread||onReplyInThread({message:message})}},react_default.a.createElement(Icon.c,{type:Icon.b.THREAD,fillColor:Icon.a.PRIMARY,width:"24px",height:"24px"}),react_default.a.createElement(Label.d,{type:Label.c.SUBTITLE_1,color:Label.a.ONBACKGROUND_1},stringSet.MESSAGE_MENU__THREAD)),showMenuItemDeleteFinal&&react_default.a.createElement("div",{className:"sendbird-message__bottomsheet--action",onClick:function onClick(){Object(utils.y)(message)?(hideMenu(),null==deleteMessage||deleteMessage(message)):disableDelete||(hideMenu(),null==showRemove||showRemove(!0))}},react_default.a.createElement(Icon.c,{type:Icon.b.DELETE,fillColor:disableDelete?Icon.a.ON_BACKGROUND_4:Icon.a.PRIMARY,width:"24px",height:"24px"}),react_default.a.createElement(Label.d,{type:Label.c.SUBTITLE_1,color:disableDelete?Label.a.ONBACKGROUND_4:Label.a.ONBACKGROUND_1},null==stringSet?void 0:stringSet.MESSAGE_MENU__DELETE)),showMenuItemDownload&&react_default.a.createElement("div",{className:"sendbird-message__bottomsheet--action",onClick:function onClick(){hideMenu()}},react_default.a.createElement("a",{className:"sendbird-message__bottomsheet--hyperlink",rel:"noopener noreferrer",href:null==fileMessage?void 0:fileMessage.url,target:"_blank"},react_default.a.createElement(Icon.c,{type:Icon.b.DOWNLOAD,fillColor:Icon.a.PRIMARY,width:"24px",height:"24px"}),react_default.a.createElement(Label.d,{type:Label.c.SUBTITLE_1,color:Label.a.ONBACKGROUND_1},null==stringSet?void 0:stringSet.MESSAGE_MENU__SAVE))))))},MobileMenu_MobileBottomSheet=MobileBottomSheet_MobileBottomSheet;try{MobileBottomSheet_MobileBottomSheet.displayName="MobileBottomSheet",MobileBottomSheet_MobileBottomSheet.__docgenInfo={description:"",displayName:"MobileBottomSheet",props:{emojiContainer:{defaultValue:null,description:"",name:"emojiContainer",required:!1,type:{name:"EmojiContainer"}},toggleReaction:{defaultValue:null,description:"",name:"toggleReaction",required:!1,type:{name:"(message: SendableMessageType, reactionKey: string, isReacted: boolean) => void"}},channel:{defaultValue:null,description:"",name:"channel",required:!0,type:{name:"GroupChannel | OpenChannel"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"SendableMessageType"}},userId:{defaultValue:null,description:"",name:"userId",required:!0,type:{name:"string"}},hideMenu:{defaultValue:null,description:"",name:"hideMenu",required:!0,type:{name:"() => void"}},isByMe:{defaultValue:null,description:"",name:"isByMe",required:!1,type:{name:"boolean"}},replyType:{defaultValue:null,description:"",name:"replyType",required:!1,type:{name:"enum",value:[{value:'"NONE"'},{value:'"QUOTE_REPLY"'},{value:'"THREAD"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},deleteMenuState:{defaultValue:null,description:"",name:"deleteMenuState",required:!1,type:{name:"enum",value:[{value:'"DISABLE"'},{value:'"HIDE"'},{value:'"ACTIVE"'}]}},showEdit:{defaultValue:null,description:"",name:"showEdit",required:!1,type:{name:"(bool: boolean) => void"}},showRemove:{defaultValue:null,description:"",name:"showRemove",required:!1,type:{name:"(bool: boolean) => void"}},resendMessage:{defaultValue:null,description:"",name:"resendMessage",required:!1,type:{name:"(message: SendableMessageType) => void"}},deleteMessage:{defaultValue:null,description:"",name:"deleteMessage",required:!1,type:{name:"(message: CoreMessageType) => Promise"}},setQuoteMessage:{defaultValue:null,description:"",name:"setQuoteMessage",required:!1,type:{name:"(message: SendableMessageType) => void"}},isReactionEnabled:{defaultValue:null,description:"",name:"isReactionEnabled",required:!1,type:{name:"boolean"}},parentRef:{defaultValue:null,description:"",name:"parentRef",required:!1,type:{name:"RefObject"}},onReplyInThread:{defaultValue:null,description:"",name:"onReplyInThread",required:!1,type:{name:"(props: { message: SendableMessageType; }) => void"}},isOpenedFromThread:{defaultValue:null,description:"",name:"isOpenedFromThread",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MobileMenu/MobileBottomSheet.tsx#MobileBottomSheet"]={docgenInfo:MobileBottomSheet_MobileBottomSheet.__docgenInfo,name:"MobileBottomSheet",path:"src/ui/MobileMenu/MobileBottomSheet.tsx#MobileBottomSheet"})}catch(__react_docgen_typescript_loader_error){}var MobileMenu_MobileMenu=function MobileMenu(props){var message=props.message,hideMenu=props.hideMenu,userId=props.userId,channel=props.channel,_props$isReactionEnab=props.isReactionEnabled,isReactionEnabled=void 0!==_props$isReactionEnab&&_props$isReactionEnab,isByMe=props.isByMe,replyType=props.replyType,disabled=props.disabled,deleteMenuState=props.deleteMenuState,showRemove=props.showRemove,showEdit=props.showEdit,resendMessage=props.resendMessage,deleteMessage=props.deleteMessage,setQuoteMessage=props.setQuoteMessage,emojiContainer=props.emojiContainer,toggleReaction=props.toggleReaction,parentRef=props.parentRef,onReplyInThread=props.onReplyInThread,isOpenedFromThread=props.isOpenedFromThread;return react_default.a.createElement(react_default.a.Fragment,null,isReactionEnabled?react_default.a.createElement(MobileMenu_MobileBottomSheet,{channel:channel,message:message,hideMenu:hideMenu,isByMe:isByMe,userId:userId,replyType:replyType,disabled:disabled,showRemove:showRemove,showEdit:showEdit,deleteMenuState:deleteMenuState,resendMessage:resendMessage,deleteMessage:deleteMessage,setQuoteMessage:setQuoteMessage,emojiContainer:emojiContainer,toggleReaction:toggleReaction,isReactionEnabled:isReactionEnabled,onReplyInThread:onReplyInThread,isOpenedFromThread:isOpenedFromThread}):react_default.a.createElement(MobileMenu_MobileContextMenu,{channel:channel,userId:userId,message:message,hideMenu:hideMenu,isByMe:isByMe,showEdit:showEdit,replyType:replyType,disabled:disabled,deleteMenuState:deleteMenuState,showRemove:showRemove,resendMessage:resendMessage,deleteMessage:deleteMessage,setQuoteMessage:setQuoteMessage,parentRef:parentRef,onReplyInThread:onReplyInThread,isOpenedFromThread:isOpenedFromThread}))};__webpack_exports__.a=MobileMenu_MobileMenu;try{MobileMenu_MobileMenu.displayName="MobileMenu",MobileMenu_MobileMenu.__docgenInfo={description:"",displayName:"MobileMenu",props:{emojiContainer:{defaultValue:null,description:"",name:"emojiContainer",required:!1,type:{name:"EmojiContainer"}},toggleReaction:{defaultValue:null,description:"",name:"toggleReaction",required:!1,type:{name:"(message: SendableMessageType, reactionKey: string, isReacted: boolean) => void"}},channel:{defaultValue:null,description:"",name:"channel",required:!0,type:{name:"GroupChannel | OpenChannel"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"SendableMessageType"}},userId:{defaultValue:null,description:"",name:"userId",required:!0,type:{name:"string"}},hideMenu:{defaultValue:null,description:"",name:"hideMenu",required:!0,type:{name:"() => void"}},isByMe:{defaultValue:null,description:"",name:"isByMe",required:!1,type:{name:"boolean"}},replyType:{defaultValue:null,description:"",name:"replyType",required:!1,type:{name:"enum",value:[{value:'"NONE"'},{value:'"QUOTE_REPLY"'},{value:'"THREAD"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},deleteMenuState:{defaultValue:null,description:"",name:"deleteMenuState",required:!1,type:{name:"enum",value:[{value:'"DISABLE"'},{value:'"HIDE"'},{value:'"ACTIVE"'}]}},showEdit:{defaultValue:null,description:"",name:"showEdit",required:!1,type:{name:"(bool: boolean) => void"}},showRemove:{defaultValue:null,description:"",name:"showRemove",required:!1,type:{name:"(bool: boolean) => void"}},resendMessage:{defaultValue:null,description:"",name:"resendMessage",required:!1,type:{name:"(message: SendableMessageType) => void"}},deleteMessage:{defaultValue:null,description:"",name:"deleteMessage",required:!1,type:{name:"(message: CoreMessageType) => Promise"}},setQuoteMessage:{defaultValue:null,description:"",name:"setQuoteMessage",required:!1,type:{name:"(message: SendableMessageType) => void"}},isReactionEnabled:{defaultValue:null,description:"",name:"isReactionEnabled",required:!1,type:{name:"boolean"}},parentRef:{defaultValue:null,description:"",name:"parentRef",required:!1,type:{name:"RefObject"}},onReplyInThread:{defaultValue:null,description:"",name:"onReplyInThread",required:!1,type:{name:"(props: { message: SendableMessageType; }) => void"}},isOpenedFromThread:{defaultValue:null,description:"",name:"isOpenedFromThread",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MobileMenu/index.tsx#MobileMenu"]={docgenInfo:MobileMenu_MobileMenu.__docgenInfo,name:"MobileMenu",path:"src/ui/MobileMenu/index.tsx#MobileMenu"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/MobileMenu/mobile-menu-reacted-members.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/MobileMenu/mobile-menu-reacted-members.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/MobileMenu/mobile-menu.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/MobileMenu/mobile-menu.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/Modal/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/Modal/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/Modal/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return ModalFooter}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js");var react__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__),react_dom__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/react-dom/index.js"),_utils_utils__WEBPACK_IMPORTED_MODULE_15__=(__webpack_require__("./src/ui/Modal/index.scss"),__webpack_require__("./src/utils/utils.ts")),_hooks_useModal_ModalRoot__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./src/hooks/useModal/ModalRoot/index.tsx"),_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./src/lib/LocalizationContext.tsx"),_lib_MediaQueryContext__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./src/lib/MediaQueryContext.tsx"),_IconButton__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./src/ui/IconButton/index.tsx"),_Button__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/ui/Button/index.tsx"),_Icon__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./src/ui/Icon/index.tsx"),_Label__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/ui/Label/index.tsx");function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i void"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!1,type:{name:"() => void"}},onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!1,type:{name:"(...args: any[]) => void"}},renderHeader:{defaultValue:null,description:"",name:"renderHeader",required:!1,type:{name:"() => ReactElement>"}},customFooter:{defaultValue:null,description:"",name:"customFooter",required:!1,type:{name:"ReactNode"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Modal/index.tsx#Modal"]={docgenInfo:Modal.__docgenInfo,name:"Modal",path:"src/ui/Modal/index.tsx#Modal"})}catch(__react_docgen_typescript_loader_error){}try{ModalHeader.displayName="ModalHeader",ModalHeader.__docgenInfo={description:"",displayName:"ModalHeader",props:{titleText:{defaultValue:null,description:"",name:"titleText",required:!0,type:{name:"string"}},onCloseClick:{defaultValue:null,description:"",name:"onCloseClick",required:!1,type:{name:"(e: MouseEvent) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Modal/index.tsx#ModalHeader"]={docgenInfo:ModalHeader.__docgenInfo,name:"ModalHeader",path:"src/ui/Modal/index.tsx#ModalHeader"})}catch(__react_docgen_typescript_loader_error){}try{ModalBody.displayName="ModalBody",ModalBody.__docgenInfo={description:"",displayName:"ModalBody",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Modal/index.tsx#ModalBody"]={docgenInfo:ModalBody.__docgenInfo,name:"ModalBody",path:"src/ui/Modal/index.tsx#ModalBody"})}catch(__react_docgen_typescript_loader_error){}try{ModalFooter.displayName="ModalFooter",ModalFooter.__docgenInfo={description:"",displayName:"ModalFooter",props:{submitText:{defaultValue:null,description:"",name:"submitText",required:!0,type:{name:"string"}},disabled:{defaultValue:{value:"false"},description:"",name:"disabled",required:!1,type:{name:"boolean"}},type:{defaultValue:{value:"ButtonTypes.DANGER"},description:"",name:"type",required:!1,type:{name:"enum",value:[{value:'"PRIMARY"'},{value:'"SECONDARY"'},{value:'"DANGER"'},{value:'"DISABLED"'},{value:'"WARNING"'}]}},onCancel:{defaultValue:null,description:"",name:"onCancel",required:!0,type:{name:"() => void"}},onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!0,type:{name:"() => void"}},hideCancelButton:{defaultValue:{value:"false"},description:"",name:"hideCancelButton",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Modal/index.tsx#ModalFooter"]={docgenInfo:ModalFooter.__docgenInfo,name:"ModalFooter",path:"src/ui/Modal/index.tsx#ModalFooter"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/MultipleFilesMessageItemBody/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/MultipleFilesMessageItemBody/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/MultipleFilesMessageItemBody/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return ThreadMessageKind})),__webpack_require__.d(__webpack_exports__,"b",(function(){return MultipleFilesMessageItemBody_MultipleFilesMessageItemBody}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),Icon=__webpack_require__("./src/ui/Icon/index.tsx"),_bundle_c578be85=__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-c578be85.js"),ImageRenderer=__webpack_require__("./src/ui/ImageRenderer/index.tsx"),ImageGrid=__webpack_require__("./src/ui/ImageGrid/index.tsx"),FileViewer=__webpack_require__("./src/ui/FileViewer/index.tsx"),MULTIPLE_FILES_IMAGE_SIDE_LENGTH=(__webpack_require__("./src/ui/MultipleFilesMessageItemBody/index.scss"),{CHAT_WEB:"calc(".concat(200,"px - ").concat(6,"px)"),CHAT_MOBILE:"calc(50vw - ".concat(77,"px)"),THREAD_PARENT_WEB:"calc(".concat(118,"px)"),THREAD_PARENT_MOBILE:"calc(50vw - ".concat(42,"px)"),THREAD_CHILD_WEB:"calc(".concat(94,"px)"),THREAD_CHILD_MOBILE:"calc(50vw - ".concat(72,"px)")}),MULTIPLE_FILES_IMAGE_BORDER_RADIUS={CHAT_WEB:"6px",CHAT_MOBILE:"6px",THREAD_PARENT_WEB:"6px",THREAD_PARENT_MOBILE:"6px",THREAD_CHILD_WEB:"6px",THREAD_CHILD_MOBILE:"6px"},utils=__webpack_require__("./src/utils/index.ts");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i-1&&react_default.a.createElement(FileViewer.a,{message:message,statefulFileInfoList:statefulFileInfoList,currentIndex:currentFileViewerIndex,onClickLeft:function onClickLeft(){setCurrentFileViewerIndex(0===currentFileViewerIndex?statefulFileInfoList.length-1:currentFileViewerIndex-1)},onClickRight:function onClickRight(){setCurrentFileViewerIndex(currentFileViewerIndex===statefulFileInfoList.length-1?0:currentFileViewerIndex+1)},onClose:function onClose(){setCurrentFileViewerIndex(-1)}}),react_default.a.createElement(ImageGrid.a,{className:className,message:message,isReactionEnabled:isReactionEnabled},statefulFileInfoList.map((function(fileInfo,index){var _fileInfo$thumbnails$,_fileInfo$thumbnails;return react_default.a.createElement("div",{className:"sendbird-multiple-files-image-renderer-wrapper",onClick:message.sendingStatus===_bundle_c578be85.tb.SUCCEEDED?function(){return setCurrentFileViewerIndex(index)}:void 0,key:"sendbird-multiple-files-image-renderer-".concat(index,"-").concat(fileInfo.url)},react_default.a.createElement(ImageRenderer.a,{url:null!==(_fileInfo$thumbnails$=null===(_fileInfo$thumbnails=fileInfo.thumbnails)||void 0===_fileInfo$thumbnails||null===(_fileInfo$thumbnails=_fileInfo$thumbnails[0])||void 0===_fileInfo$thumbnails?void 0:_fileInfo$thumbnails.url)&&void 0!==_fileInfo$thumbnails$?_fileInfo$thumbnails$:fileInfo.url,fixedSize:!1,width:MULTIPLE_FILES_IMAGE_SIDE_LENGTH[threadMessageKindKey],maxSideLength:MULTIPLE_FILES_IMAGE_SIDE_LENGTH.CHAT_WEB,height:MULTIPLE_FILES_IMAGE_SIDE_LENGTH[threadMessageKindKey],borderRadius:Object(ImageRenderer.b)(MULTIPLE_FILES_IMAGE_BORDER_RADIUS[threadMessageKindKey],index,statefulFileInfoList.length),shadeOnHover:!0,isUploaded:!!fileInfo.isUploaded,placeHolder:function placeHolder(_ref2){var style=_ref2.style;return Object(utils.A)(fileInfo.mimeType)?react_default.a.createElement(ImagePlaceholder.GIF,{style:style}):react_default.a.createElement(ImagePlaceholder.Default,{style:style})},defaultComponent:react_default.a.createElement(ImagePlaceholder.LoadError,null)}))}))))}var ImagePlaceholder={Default:function Default(_ref3){var style=_ref3.style;return react_default.a.createElement("div",{className:"sendbird-multiple-files-image-renderer__thumbnail__placeholder",style:style},react_default.a.createElement(Icon.c,{type:Icon.b.PHOTO,fillColor:Icon.a.ON_BACKGROUND_2,width:"34px",height:"34px"}))},GIF:function GIF(_ref4){var style=_ref4.style;return react_default.a.createElement("div",{className:"sendbird-multiple-files-image-renderer__thumbnail__placeholder",style:style},react_default.a.createElement("div",{className:"sendbird-multiple-files-image-renderer__thumbnail__placeholder__icon"},react_default.a.createElement(Icon.c,{type:Icon.b.GIF,fillColor:Icon.a.THUMBNAIL_ICON,width:"34px",height:"34px"})))},LoadError:function LoadError(){return react_default.a.createElement("div",{className:"sendbird-multiple-files-image-renderer__thumbnail__placeholder"},react_default.a.createElement(Icon.c,{type:Icon.b.THUMBNAIL_NONE,fillColor:Icon.a.ON_BACKGROUND_2,width:"34px",height:"34px"}))}};try{MultipleFilesMessageItemBody_MultipleFilesMessageItemBody.displayName="MultipleFilesMessageItemBody",MultipleFilesMessageItemBody_MultipleFilesMessageItemBody.__docgenInfo={description:"",displayName:"MultipleFilesMessageItemBody",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"MultipleFilesMessage"}},isByMe:{defaultValue:null,description:"",name:"isByMe",required:!1,type:{name:"boolean"}},mouseHover:{defaultValue:null,description:"",name:"mouseHover",required:!1,type:{name:"boolean"}},isReactionEnabled:{defaultValue:{value:"false"},description:"",name:"isReactionEnabled",required:!1,type:{name:"boolean"}},truncateLimit:{defaultValue:null,description:"",name:"truncateLimit",required:!1,type:{name:"number"}},threadMessageKindKey:{defaultValue:null,description:"",name:"threadMessageKindKey",required:!1,type:{name:"string"}},statefulFileInfoList:{defaultValue:{value:"[]"},description:"",name:"statefulFileInfoList",required:!1,type:{name:"UploadedFileInfoWithUpload[]"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/MultipleFilesMessageItemBody/index.tsx#MultipleFilesMessageItemBody"]={docgenInfo:MultipleFilesMessageItemBody_MultipleFilesMessageItemBody.__docgenInfo,name:"MultipleFilesMessageItemBody",path:"src/ui/MultipleFilesMessageItemBody/index.tsx#MultipleFilesMessageItemBody"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/OGMessageItemBody/consts.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return OG_MESSAGE_BODY_CLASSNAME}));var OG_MESSAGE_BODY_CLASSNAME="sendbird-og-message-item-body__text-bubble"},"./src/ui/OGMessageItemBody/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/OGMessageItemBody/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/OGMessageItemBody/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return OGMessageItemBody}));__webpack_require__("./node_modules/core-js/modules/es.string.starts-with.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./src/ui/OGMessageItemBody/index.scss");var react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__),_ImageRenderer__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/ui/ImageRenderer/index.tsx"),_Icon__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/ui/Icon/index.tsx"),_Label__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/ui/Label/index.tsx"),_utils__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/utils/index.ts"),_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./src/lib/LocalizationContext.tsx"),_modules_Message_components_TextFragment__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./src/modules/Message/components/TextFragment/index.tsx"),_modules_Message_utils_tokens_tokenize__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./src/modules/Message/utils/tokens/tokenize.ts"),_consts__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./src/ui/OGMessageItemBody/consts.ts");function OGMessageItemBody(_ref){var _message$mentionedMes,_message$mentionedUse,_message$reactions,_message$ogMetaData2,_message$ogMetaData3,_message$ogMetaData4,_message$ogMetaData5,_message$ogMetaData6,_message$ogMetaData7,className=_ref.className,message=_ref.message,_ref$isByMe=_ref.isByMe,isByMe=void 0!==_ref$isByMe&&_ref$isByMe,_ref$mouseHover=_ref.mouseHover,mouseHover=void 0!==_ref$mouseHover&&_ref$mouseHover,_ref$isMentionEnabled=_ref.isMentionEnabled,isMentionEnabled=void 0!==_ref$isMentionEnabled&&_ref$isMentionEnabled,_ref$isReactionEnable=_ref.isReactionEnabled,isReactionEnabled=void 0!==_ref$isReactionEnable&&_ref$isReactionEnable,_ref$onMessageHeightC=_ref.onMessageHeightChange,onMessageHeightChange=void 0===_ref$onMessageHeightC?function(){}:_ref$onMessageHeightC,imageRef=Object(react__WEBPACK_IMPORTED_MODULE_4__.useRef)(null),stringSet=Object(react__WEBPACK_IMPORTED_MODULE_4__.useContext)(_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_9__.a).stringSet,openOGUrl=function openOGUrl(){var _message$ogMetaData,url=null==message||null===(_message$ogMetaData=message.ogMetaData)||void 0===_message$ogMetaData?void 0:_message$ogMetaData.url;url&&(url.startsWith("http://")||url.startsWith("https://")||(url="https://"+url),window.open(url))},isMessageMentioned=isMentionEnabled&&(null==message||null===(_message$mentionedMes=message.mentionedMessageTemplate)||void 0===_message$mentionedMes?void 0:_message$mentionedMes.length)>0&&(null==message||null===(_message$mentionedUse=message.mentionedUsers)||void 0===_message$mentionedUse?void 0:_message$mentionedUse.length)>0,tokens=Object(react__WEBPACK_IMPORTED_MODULE_4__.useMemo)((function(){return isMessageMentioned?Object(_modules_Message_utils_tokens_tokenize__WEBPACK_IMPORTED_MODULE_11__.b)({mentionedUsers:null==message?void 0:message.mentionedUsers,messageText:null==message?void 0:message.mentionedMessageTemplate}):Object(_modules_Message_utils_tokens_tokenize__WEBPACK_IMPORTED_MODULE_11__.b)({messageText:null==message?void 0:message.message})}),[null==message?void 0:message.updatedAt,null==message?void 0:message.message]);return react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div",{className:Object(_utils__WEBPACK_IMPORTED_MODULE_8__.i)([className,"sendbird-og-message-item-body",isByMe?"outgoing":"incoming",mouseHover?"mouse-hover":"",isReactionEnabled&&(null==message||null===(_message$reactions=message.reactions)||void 0===_message$reactions?void 0:_message$reactions.length)>0?"reactions":""])},react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_Label__WEBPACK_IMPORTED_MODULE_7__.d,{type:_Label__WEBPACK_IMPORTED_MODULE_7__.c.BODY_1,color:isByMe?_Label__WEBPACK_IMPORTED_MODULE_7__.a.ONCONTENT_1:_Label__WEBPACK_IMPORTED_MODULE_7__.a.ONBACKGROUND_1},react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div",{className:_consts__WEBPACK_IMPORTED_MODULE_12__.a},react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_modules_Message_components_TextFragment__WEBPACK_IMPORTED_MODULE_10__.a,{tokens:tokens}),Object(_utils__WEBPACK_IMPORTED_MODULE_8__.x)(message)&&react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_Label__WEBPACK_IMPORTED_MODULE_7__.d,{className:"sendbird-og-message-item-body__text-bubble__message",type:_Label__WEBPACK_IMPORTED_MODULE_7__.c.BODY_1,color:isByMe?_Label__WEBPACK_IMPORTED_MODULE_7__.a.ONCONTENT_2:_Label__WEBPACK_IMPORTED_MODULE_7__.a.ONBACKGROUND_2}," ".concat(stringSet.MESSAGE_EDITED," ")))),react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div",{ref:imageRef,className:"sendbird-og-message-item-body__og-thumbnail\n ".concat(null!=message&&null!==(_message$ogMetaData2=message.ogMetaData)&&void 0!==_message$ogMetaData2&&null!==(_message$ogMetaData2=_message$ogMetaData2.defaultImage)&&void 0!==_message$ogMetaData2&&_message$ogMetaData2.url?"":"sendbird-og-message-item-body__og-thumbnail__empty","\n "),onClick:openOGUrl},react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_ImageRenderer__WEBPACK_IMPORTED_MODULE_5__.a,{className:"sendbird-og-message-item-body__og-thumbnail__image",url:(null==message||null===(_message$ogMetaData3=message.ogMetaData)||void 0===_message$ogMetaData3||null===(_message$ogMetaData3=_message$ogMetaData3.defaultImage)||void 0===_message$ogMetaData3?void 0:_message$ogMetaData3.url)||"",alt:null==message||null===(_message$ogMetaData4=message.ogMetaData)||void 0===_message$ogMetaData4||null===(_message$ogMetaData4=_message$ogMetaData4.defaultImage)||void 0===_message$ogMetaData4?void 0:_message$ogMetaData4.alt,width:"100%",onLoad:onMessageHeightChange,onError:function onError(){try{var _imageRef$current;null==imageRef||null===(_imageRef$current=imageRef.current)||void 0===_imageRef$current||null===(_imageRef$current=_imageRef$current.classList)||void 0===_imageRef$current||_imageRef$current.add("sendbird-og-message-item-body__og-thumbnail__empty")}catch(error){}},defaultComponent:react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div",{className:"sendbird-og-message-item-body__og-thumbnail__place-holder"},react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_6__.c,{className:"sendbird-og-message-item-body__og-thumbnail__place-holder__icon",type:_Icon__WEBPACK_IMPORTED_MODULE_6__.b.THUMBNAIL_NONE,width:"56px",height:"56px"}))})),react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div",{className:"sendbird-og-message-item-body__description",onClick:openOGUrl},(null==message||null===(_message$ogMetaData5=message.ogMetaData)||void 0===_message$ogMetaData5?void 0:_message$ogMetaData5.title)&&react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_Label__WEBPACK_IMPORTED_MODULE_7__.d,{className:"sendbird-og-message-item-body__description__title",type:_Label__WEBPACK_IMPORTED_MODULE_7__.c.SUBTITLE_2,color:_Label__WEBPACK_IMPORTED_MODULE_7__.a.ONBACKGROUND_1},message.ogMetaData.title),(null==message||null===(_message$ogMetaData6=message.ogMetaData)||void 0===_message$ogMetaData6?void 0:_message$ogMetaData6.description)&&react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_Label__WEBPACK_IMPORTED_MODULE_7__.d,{className:"sendbird-og-message-item-body__description__description",type:_Label__WEBPACK_IMPORTED_MODULE_7__.c.BODY_2,color:_Label__WEBPACK_IMPORTED_MODULE_7__.a.ONBACKGROUND_1},message.ogMetaData.description),(null==message||null===(_message$ogMetaData7=message.ogMetaData)||void 0===_message$ogMetaData7?void 0:_message$ogMetaData7.url)&&react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement(_Label__WEBPACK_IMPORTED_MODULE_7__.d,{className:"sendbird-og-message-item-body__description__url",type:_Label__WEBPACK_IMPORTED_MODULE_7__.c.CAPTION_3,color:_Label__WEBPACK_IMPORTED_MODULE_7__.a.ONBACKGROUND_2},message.ogMetaData.url)),react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div",{className:"sendbird-og-message-item-body__cover"}))}try{OGMessageItemBody.displayName="OGMessageItemBody",OGMessageItemBody.__docgenInfo={description:"",displayName:"OGMessageItemBody",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string | string[]"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"UserMessage"}},isByMe:{defaultValue:{value:"false"},description:"",name:"isByMe",required:!1,type:{name:"boolean"}},mouseHover:{defaultValue:{value:"false"},description:"",name:"mouseHover",required:!1,type:{name:"boolean"}},isMentionEnabled:{defaultValue:{value:"false"},description:"",name:"isMentionEnabled",required:!1,type:{name:"boolean"}},isReactionEnabled:{defaultValue:{value:"false"},description:"",name:"isReactionEnabled",required:!1,type:{name:"boolean"}},onMessageHeightChange:{defaultValue:{value:"() => { /* noop */ }"},description:"",name:"onMessageHeightChange",required:!1,type:{name:"() => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/OGMessageItemBody/index.tsx#OGMessageItemBody"]={docgenInfo:OGMessageItemBody.__docgenInfo,name:"OGMessageItemBody",path:"src/ui/OGMessageItemBody/index.tsx#OGMessageItemBody"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/OGMessageItemBody/stories/OGMessageItemBody.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return WithControl})),__webpack_require__.d(__webpack_exports__,"withText",(function(){return withText}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _index_tsx__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/OGMessageItemBody/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/jsx-runtime.js"),mockMessage=function mockMessage(process){var obj={message:"go to this link sendbird.com it will be usefull to you!!",ogMetaData:{title:"I am Title",description:"I'm description I'm description I'm description I'm description ",url:"https://sendbird.com/",defaultImage:{url:"https://static.sendbird.com/sample/profiles/profile_12_512px.png",alt:"test"}},sender:{profileUrl:"https://static.sendbird.com/sample/profiles/profile_12_512px.png",nickname:"Hoonying"},createdAt:2e6};return process&&"function"==typeof process?process(obj):obj};__webpack_exports__.default={title:"@sendbird/uikit-react/ui/OGMessageItemBody",component:_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,parameters:{docs:{description:{component:'\n `import OGMessageItemBody from "@sendbird/uikit-react/ui/OGMessageItemBody";`\n \n OGMessage is the message that captures summary of a hyperlink/webpage\n'}}}};var WithControl=function WithControl(arg){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,Object.assign({message:mockMessage()},arg))};WithControl.displayName="WithControl";var withText=function withText(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.Fragment,{children:[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{message:mockMessage(),isByMe:!0}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("br",{}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("br",{}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{message:mockMessage(),isByMe:!1})]})};WithControl.parameters=Object.assign({storySource:{source:"(arg) => (\n \n)"}},WithControl.parameters),withText.parameters=Object.assign({storySource:{source:"() => (\n <>\n \n
\n
\n \n \n)"}},withText.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/OGMessageItemBody/stories/OGMessageItemBody.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/OGMessageItemBody/stories/OGMessageItemBody.stories.js"}),withText.__docgenInfo={description:"",methods:[],displayName:"withText"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/OGMessageItemBody/stories/OGMessageItemBody.stories.js"]={name:"withText",docgenInfo:withText.__docgenInfo,path:"src/ui/OGMessageItemBody/stories/OGMessageItemBody.stories.js"})},"./src/ui/OpenChannelAdminMessage/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/OpenChannelAdminMessage/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/OpenChannelAdminMessage/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return OpenChannelAdminMessage}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var react__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__),_Label__WEBPACK_IMPORTED_MODULE_14__=(__webpack_require__("./src/ui/OpenChannelAdminMessage/index.scss"),__webpack_require__("./src/ui/Label/index.tsx"));function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i (\n \n)"}},WithControl.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/OpenChannelAdminMessage/stories/OpenChannelAdminMessage.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/OpenChannelAdminMessage/stories/OpenChannelAdminMessage.stories.js"})},"./src/ui/OpenChannelMobileMenu/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./src/ui/OpenChannelMobileMenu/open-channel-mobile-menu.scss");var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_ContextMenu__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/ContextMenu/index.tsx"),_utils_openChannelUtils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/utils/openChannelUtils.ts"),_hooks_useSendbirdStateContext__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/hooks/useSendbirdStateContext.tsx"),_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/lib/LocalizationContext.tsx"),OpenChannelMobileMenu=function OpenChannelMobileMenu(props){var _useSendbirdStateCont,message=props.message,parentRef=props.parentRef,resendMessage=props.resendMessage,showEdit=props.showEdit,showRemove=props.showRemove,copyToClipboard=props.copyToClipboard,hideMenu=props.hideMenu,_props$isEphemeral=props.isEphemeral,isEphemeral=void 0!==_props$isEphemeral&&_props$isEphemeral,userMessage=message,status=null==message?void 0:message.sendingStatus,stringSet=Object(_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_5__.c)().stringSet,userId=null===(_useSendbirdStateCont=Object(_hooks_useSendbirdStateContext__WEBPACK_IMPORTED_MODULE_4__.a)())||void 0===_useSendbirdStateCont||null===(_useSendbirdStateCont=_useSendbirdStateCont.config)||void 0===_useSendbirdStateCont?void 0:_useSendbirdStateCont.userId,fileMessage=message;return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ContextMenu__WEBPACK_IMPORTED_MODULE_2__.h,{isOpen:!0,menuItems:function menuItems(){return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ContextMenu__WEBPACK_IMPORTED_MODULE_2__.d,{className:"sendbird-openchannel__mobile-menu",parentRef:parentRef,parentContainRef:parentRef,closeDropdown:hideMenu},Object(_utils_openChannelUtils__WEBPACK_IMPORTED_MODULE_3__.e)({message:userMessage,userId:userId,status:status})&&react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ContextMenu__WEBPACK_IMPORTED_MODULE_2__.c,{className:"sendbird-openchannel-og-message__top__context-menu__copy",onClick:function onClick(){copyToClipboard()},dataSbId:"open_channel_mobile_context_menu_copy"},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_1___default.a.Fragment,null,stringSet.CONTEXT_MENU_DROPDOWN__COPY)),!isEphemeral&&Object(_utils_openChannelUtils__WEBPACK_IMPORTED_MODULE_3__.h)({message:message,userId:userId,status:status})&&react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ContextMenu__WEBPACK_IMPORTED_MODULE_2__.c,{className:"sendbird-openchannel-og-message__top__context-menu__edit",onClick:function onClick(){showEdit()},dataSbId:"open_channel_mobile_context_menu_edit"},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_1___default.a.Fragment,null,stringSet.CONTEXT_MENU_DROPDOWN__EDIT)),Object(_utils_openChannelUtils__WEBPACK_IMPORTED_MODULE_3__.i)({message:message,userId:userId,status:status})&&react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ContextMenu__WEBPACK_IMPORTED_MODULE_2__.c,{onClick:function onClick(){resendMessage()},dataSbId:"open_channel_mobile_context_menu_resend"},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_1___default.a.Fragment,null,stringSet.CONTEXT_MENU_DROPDOWN__RESEND)),!isEphemeral&&Object(_utils_openChannelUtils__WEBPACK_IMPORTED_MODULE_3__.f)({message:message,userId:userId,status:status})&&react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ContextMenu__WEBPACK_IMPORTED_MODULE_2__.c,{onClick:function onClick(){showRemove()},dataSbId:"open_channel_mobile_context_menu_delete"},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_1___default.a.Fragment,null,stringSet.CONTEXT_MENU_DROPDOWN__DELETE)),Object(_utils_openChannelUtils__WEBPACK_IMPORTED_MODULE_3__.g)({message:message,status:status})&&react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ContextMenu__WEBPACK_IMPORTED_MODULE_2__.c,{onClick:function onClick(){hideMenu()},dataSbId:"open_channel_mobile_context_menu_download_file"},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("a",{className:"sendbird-openchannel__mobile-menu-hyperlink",rel:"noopener noreferrer",href:null==fileMessage?void 0:fileMessage.url,target:"_blank"},stringSet.CONTEXT_MENU_DROPDOWN__SAVE)))}})};__webpack_exports__.a=OpenChannelMobileMenu;try{OpenChannelMobileMenu.displayName="OpenChannelMobileMenu",OpenChannelMobileMenu.__docgenInfo={description:"",displayName:"OpenChannelMobileMenu",props:{message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"SendableMessageType"}},parentRef:{defaultValue:null,description:"",name:"parentRef",required:!0,type:{name:"RefObject"}},resendMessage:{defaultValue:null,description:"",name:"resendMessage",required:!1,type:{name:"() => void"}},showRemove:{defaultValue:null,description:"",name:"showRemove",required:!1,type:{name:"() => void"}},copyToClipboard:{defaultValue:null,description:"",name:"copyToClipboard",required:!1,type:{name:"() => void"}},showEdit:{defaultValue:null,description:"",name:"showEdit",required:!1,type:{name:"() => void"}},hideMenu:{defaultValue:null,description:"",name:"hideMenu",required:!0,type:{name:"() => void"}},isEphemeral:{defaultValue:null,description:"",name:"isEphemeral",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/OpenChannelMobileMenu/index.tsx#OpenChannelMobileMenu"]={docgenInfo:OpenChannelMobileMenu.__docgenInfo,name:"OpenChannelMobileMenu",path:"src/ui/OpenChannelMobileMenu/index.tsx#OpenChannelMobileMenu"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/OpenChannelMobileMenu/open-channel-mobile-menu.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/OpenChannelMobileMenu/open-channel-mobile-menu.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/OpenchannelConversationHeader/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/OpenchannelConversationHeader/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/OpenchannelConversationHeader/stories/OpenchannelConversationHeader.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return OpenchannelConversationHeader_stories_WithControl})),__webpack_require__.d(__webpack_exports__,"filledProps",(function(){return OpenchannelConversationHeader_stories_filledProps}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),Avatar=(__webpack_require__("./src/ui/OpenchannelConversationHeader/index.scss"),__webpack_require__("./src/ui/Avatar/index.tsx")),Icon=__webpack_require__("./src/ui/Icon/index.tsx"),IconButton=__webpack_require__("./src/ui/IconButton/index.tsx"),Label=__webpack_require__("./src/ui/Label/index.tsx"),LocalizationContext=__webpack_require__("./src/lib/LocalizationContext.tsx");function OpenchannelConversationHeader_OpenchannelConversationHeader(_ref){var coverImage=_ref.coverImage,title=_ref.title,subTitle=_ref.subTitle,amIOperator=_ref.amIOperator,onActionClick=_ref.onActionClick,stringSet=Object(react.useContext)(LocalizationContext.a).stringSet;return react_default.a.createElement("div",{className:"sendbird-openchannel-conversation-header"},react_default.a.createElement("div",{className:"sendbird-openchannel-conversation-header__left"},coverImage?react_default.a.createElement(Avatar.a,{className:"sendbird-openchannel-conversation-header__left__cover-image",src:coverImage,alt:"channel cover image",width:"32px",height:"32px"}):react_default.a.createElement("div",{className:"sendbird-openchannel-conversation-header__left__cover-image--icon",style:{width:32,height:32}},react_default.a.createElement(Icon.c,{type:Icon.b.CHANNELS,fillColor:Icon.a.CONTENT,width:"18px",height:"18px"})),react_default.a.createElement(Label.d,{className:"sendbird-openchannel-conversation-header__left__title",type:Label.c.H_2,color:Label.a.ONBACKGROUND_1},title||stringSet.NO_TITLE),react_default.a.createElement(Label.d,{className:"sendbird-openchannel-conversation-header__left__sub-title",type:Label.c.BODY_2,color:Label.a.ONBACKGROUND_2},subTitle||stringSet.NO_TITLE)),react_default.a.createElement("div",{className:"sendbird-openchannel-conversation-header__right"},react_default.a.createElement(IconButton.a,{className:"sendbird-openchannel-conversation-header__right__trigger",width:"32px",height:"32px",onClick:onActionClick},react_default.a.createElement(Icon.c,{type:amIOperator?Icon.b.INFO:Icon.b.MEMBERS,fillColor:Icon.a.PRIMARY,width:"24px",height:"24px"}))))}try{OpenchannelConversationHeader_OpenchannelConversationHeader.displayName="OpenchannelConversationHeader",OpenchannelConversationHeader_OpenchannelConversationHeader.__docgenInfo={description:"",displayName:"OpenchannelConversationHeader",props:{coverImage:{defaultValue:null,description:"",name:"coverImage",required:!1,type:{name:"string"}},title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},subTitle:{defaultValue:null,description:"",name:"subTitle",required:!1,type:{name:"string"}},amIOperator:{defaultValue:null,description:"",name:"amIOperator",required:!1,type:{name:"boolean"}},onActionClick:{defaultValue:null,description:"",name:"onActionClick",required:!1,type:{name:"() => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/OpenchannelConversationHeader/index.tsx#OpenchannelConversationHeader"]={docgenInfo:OpenchannelConversationHeader_OpenchannelConversationHeader.__docgenInfo,name:"OpenchannelConversationHeader",path:"src/ui/OpenchannelConversationHeader/index.tsx#OpenchannelConversationHeader"})}catch(__react_docgen_typescript_loader_error){}var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),OpenchannelConversationHeader_stories_WithControl=(__webpack_exports__.default={title:"@sendbird/uikit-react/ui/OpenchannelConversationHeader",component:OpenchannelConversationHeader_OpenchannelConversationHeader,parameters:{docs:{description:{component:'\n `import OpenchannelConversationHeader from "@sendbird/uikit-react/ui/OpenchannelConversationHeader";`\n'}}}},function WithControl(arg){return Object(jsx_runtime.jsx)(OpenchannelConversationHeader_OpenchannelConversationHeader,Object.assign({},arg))});OpenchannelConversationHeader_stories_WithControl.displayName="WithControl";var OpenchannelConversationHeader_stories_filledProps=function filledProps(){return Object(jsx_runtime.jsx)(OpenchannelConversationHeader_OpenchannelConversationHeader,{title:"Open Channel Title",subTitle:"Open Channel Subtitle",onActionClick:function onActionClick(){console.log("Open Channel Trigger is clicked")},coverImage:"https://static.sendbird.com/sample/user_sdk/user_sdk_20.png"})};OpenchannelConversationHeader_stories_filledProps.displayName="filledProps",OpenchannelConversationHeader_stories_WithControl.parameters=Object.assign({storySource:{source:"(arg) => (\n \n)"}},OpenchannelConversationHeader_stories_WithControl.parameters),OpenchannelConversationHeader_stories_filledProps.parameters=Object.assign({storySource:{source:'() => (\n {\n console.log(\'Open Channel Trigger is clicked\');\n }}\n coverImage="https://static.sendbird.com/sample/user_sdk/user_sdk_20.png"\n />\n)'}},OpenchannelConversationHeader_stories_filledProps.parameters),OpenchannelConversationHeader_stories_WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/OpenchannelConversationHeader/stories/OpenchannelConversationHeader.stories.js"]={name:"WithControl",docgenInfo:OpenchannelConversationHeader_stories_WithControl.__docgenInfo,path:"src/ui/OpenchannelConversationHeader/stories/OpenchannelConversationHeader.stories.js"}),OpenchannelConversationHeader_stories_filledProps.__docgenInfo={description:"",methods:[],displayName:"filledProps"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/OpenchannelConversationHeader/stories/OpenchannelConversationHeader.stories.js"]={name:"filledProps",docgenInfo:OpenchannelConversationHeader_stories_filledProps.__docgenInfo,path:"src/ui/OpenchannelConversationHeader/stories/OpenchannelConversationHeader.stories.js"})},"./src/ui/OpenchannelFileMessage/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/OpenchannelFileMessage/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/OpenchannelFileMessage/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return OpenchannelFileMessage_OpenchannelFileMessage}));__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),format=__webpack_require__("./node_modules/date-fns/esm/format/index.js"),Avatar=(__webpack_require__("./src/ui/OpenchannelFileMessage/index.scss"),__webpack_require__("./src/ui/Avatar/index.tsx")),ContextMenu=__webpack_require__("./src/ui/ContextMenu/index.tsx"),Label=__webpack_require__("./src/ui/Label/index.tsx"),Loader=__webpack_require__("./src/ui/Loader/index.tsx"),Icon=__webpack_require__("./src/ui/Icon/index.tsx"),IconButton=__webpack_require__("./src/ui/IconButton/index.tsx"),TextButton=__webpack_require__("./src/ui/TextButton/index.tsx"),UserProfile=__webpack_require__("./src/ui/UserProfile/index.tsx"),UserProfileContext=__webpack_require__("./src/lib/UserProfileContext.tsx"),LocalizationContext=__webpack_require__("./src/lib/LocalizationContext.tsx"),utils_checkFileType=function checkFileType(fileUrl){return/(\.mp3)$/i.test(fileUrl)?Icon.b.FILE_AUDIO:/(\.gif)$/i.test(fileUrl)?Icon.b.GIF:Icon.b.FILE_DOCUMENT},truncate=function truncate(fullStr,strLen){if(null==fullStr)return"";if(fullStr.length<=strLen)return fullStr;var charsToShow=strLen-3,frontChars=Math.ceil(charsToShow/2),backChars=Math.floor(charsToShow/2);return fullStr.substr(0,frontChars)+"..."+fullStr.substr(fullStr.length-backChars)},openChannelUtils=__webpack_require__("./src/utils/openChannelUtils.ts"),MediaQueryContext=__webpack_require__("./src/lib/MediaQueryContext.tsx"),OpenChannelMobileMenu=__webpack_require__("./src/ui/OpenChannelMobileMenu/index.tsx"),useLongPress=__webpack_require__("./src/hooks/useLongPress.tsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i void"}},resendMessage:{defaultValue:null,description:"",name:"resendMessage",required:!0,type:{name:"(message: FileMessage) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/OpenchannelFileMessage/index.tsx#OpenchannelFileMessage"]={docgenInfo:OpenchannelFileMessage_OpenchannelFileMessage.__docgenInfo,name:"OpenchannelFileMessage",path:"src/ui/OpenchannelFileMessage/index.tsx#OpenchannelFileMessage"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/OpenchannelFileMessage/stories/OpenchannelFileMessage.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return OpenchannelFileMessage_stories_WithControl})),__webpack_require__.d(__webpack_exports__,"fileMessageImage",(function(){return OpenchannelFileMessage_stories_fileMessageImage})),__webpack_require__.d(__webpack_exports__,"fileMessageAudio",(function(){return OpenchannelFileMessage_stories_fileMessageAudio})),__webpack_require__.d(__webpack_exports__,"chainedFileMessages",(function(){return OpenchannelFileMessage_stories_chainedFileMessages}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var OpenchannelFileMessage=__webpack_require__("./src/ui/OpenchannelFileMessage/index.tsx");__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js");var dummyFileMessageImage={messageId:15814617,messageType:"file",channelUrl:"sendbird_group_channel_11985956_fa67b79d39e6aa5abbeda4413cde24ce1685eedb",data:"",customType:"",createdAt:1583104552977,updatedAt:0,channelType:"group",metaArrays:[],reactions:[],mentionType:"users",mentionedUsers:[],url:"72b35fef-acda-4e32-123323456789973567890dfvgbhnjmkiytdxbna0e4-37e1226b0615.pdf",name:"",size:0,type:"",thumbnails:[],sender:{nickname:"ME",profileUrl:"https://static.sendbird.com/sample/profiles/profile_19_512px.png",userId:"hoon1234",connectionStatus:"nonavailable",lastSeenAt:0,isActive:!0,friendDiscoveryKey:null,friendName:null,_preferredLanguages:null,isBlockedByMe:!1},reqId:"1583104547956",requireAuth:!1,requestState:"succeeded",requestedMentionUserIds:[],errorCode:0},dummyFileMessageAudio={messageId:15814617,messageType:"file",channelUrl:"sendbird_group_channel_11985956_fa67b79d39e6aa5abbeda4413cde24ce1685eedb",data:"",customType:"",createdAt:1583104552977,updatedAt:0,channelType:"group",metaArrays:[],reactions:[],mentionType:"users",mentionedUsers:[],url:"72b35fef-acda-4e32-123323456789973567890dfvgbhnjmkiytdxbna0e4-37e1226b0615.mp3",name:"",size:0,type:"",thumbnails:[],sender:{nickname:"ME",profileUrl:"https://static.sendbird.com/sample/profiles/profile_19_512px.png",userId:"hoon1234",connectionStatus:"nonavailable",lastSeenAt:0,isActive:!0,friendDiscoveryKey:null,friendName:null,_preferredLanguages:null,isBlockedByMe:!1},reqId:"1583104547956",requireAuth:!1,requestState:"succeeded",requestedMentionUserIds:[],errorCode:0},ContextMenu=__webpack_require__("./src/ui/ContextMenu/index.tsx"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),currentUserId=(__webpack_exports__.default={title:"@sendbird/uikit-react/ui/OpenchannelFileMessage",component:OpenchannelFileMessage.a,parameters:{docs:{description:{component:'\n `import OpenchannelFileMessage from "@sendbird/uikit-react/ui/OpenchannelFileMessage";`\n'}}}},dummyFileMessageImage.sender.userId);dummyFileMessageImage.isResendable=function(){return!0};var OpenchannelFileMessage_stories_WithControl=function WithControl(arg){return Object(jsx_runtime.jsx)(OpenchannelFileMessage.a,Object.assign({message:dummyFileMessageImage,userId:currentUserId},arg))};OpenchannelFileMessage_stories_WithControl.displayName="WithControl";var OpenchannelFileMessage_stories_fileMessageImage=function fileMessageImage(){return[Object(jsx_runtime.jsx)(OpenchannelFileMessage.a,{message:dummyFileMessageImage,userId:currentUserId}),Object(jsx_runtime.jsx)(OpenchannelFileMessage.a,{message:dummyFileMessageImage,userId:currentUserId,status:"pending"}),Object(jsx_runtime.jsx)(OpenchannelFileMessage.a,{message:dummyFileMessageImage,userId:currentUserId,status:"failed"}),Object(jsx_runtime.jsx)(ContextMenu.e,{})]},OpenchannelFileMessage_stories_fileMessageAudio=function fileMessageAudio(){return[Object(jsx_runtime.jsx)(OpenchannelFileMessage.a,{message:dummyFileMessageAudio,userId:currentUserId}),Object(jsx_runtime.jsx)(OpenchannelFileMessage.a,{message:dummyFileMessageAudio,userId:currentUserId,status:"pending"}),Object(jsx_runtime.jsx)(OpenchannelFileMessage.a,{message:dummyFileMessageAudio,userId:currentUserId,status:"failed"}),Object(jsx_runtime.jsx)(ContextMenu.e,{})]},OpenchannelFileMessage_stories_chainedFileMessages=function chainedFileMessages(){return[Object(jsx_runtime.jsx)(OpenchannelFileMessage.a,{message:dummyFileMessageAudio}),Object(jsx_runtime.jsx)(OpenchannelFileMessage.a,{message:dummyFileMessageAudio,chainTop:!0}),Object(jsx_runtime.jsx)(OpenchannelFileMessage.a,{message:dummyFileMessageImage}),Object(jsx_runtime.jsx)(OpenchannelFileMessage.a,{message:dummyFileMessageImage,chainTop:!0})]};OpenchannelFileMessage_stories_WithControl.parameters=Object.assign({storySource:{source:"(arg) => (\n \n)"}},OpenchannelFileMessage_stories_WithControl.parameters),OpenchannelFileMessage_stories_fileMessageImage.parameters=Object.assign({storySource:{source:'() => ([\n ,\n ,\n ,\n ,\n])'}},OpenchannelFileMessage_stories_fileMessageImage.parameters),OpenchannelFileMessage_stories_fileMessageAudio.parameters=Object.assign({storySource:{source:'() => ([\n ,\n ,\n ,\n ,\n])'}},OpenchannelFileMessage_stories_fileMessageAudio.parameters),OpenchannelFileMessage_stories_chainedFileMessages.parameters=Object.assign({storySource:{source:"() => [\n ,\n ,\n ,\n ,\n]"}},OpenchannelFileMessage_stories_chainedFileMessages.parameters),OpenchannelFileMessage_stories_WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/OpenchannelFileMessage/stories/OpenchannelFileMessage.stories.js"]={name:"WithControl",docgenInfo:OpenchannelFileMessage_stories_WithControl.__docgenInfo,path:"src/ui/OpenchannelFileMessage/stories/OpenchannelFileMessage.stories.js"})},"./src/ui/OpenchannelOGMessage/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/OpenchannelOGMessage/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/OpenchannelOGMessage/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return OpenchannelOGMessage_OpenchannelOGMessage}));__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),format=__webpack_require__("./node_modules/date-fns/esm/format/index.js"),Avatar=(__webpack_require__("./src/ui/OpenchannelOGMessage/index.scss"),__webpack_require__("./src/ui/Avatar/index.tsx")),ContextMenu=__webpack_require__("./src/ui/ContextMenu/index.tsx"),Icon=__webpack_require__("./src/ui/Icon/index.tsx"),IconButton=__webpack_require__("./src/ui/IconButton/index.tsx"),ImageRenderer=__webpack_require__("./src/ui/ImageRenderer/index.tsx"),LinkLabel=__webpack_require__("./src/ui/LinkLabel/index.tsx"),Label=__webpack_require__("./src/ui/Label/index.tsx"),Loader=__webpack_require__("./src/ui/Loader/index.tsx"),UserProfile=__webpack_require__("./src/ui/UserProfile/index.tsx"),UserProfileContext=__webpack_require__("./src/lib/UserProfileContext.tsx"),uuid=__webpack_require__("./src/utils/uuid.ts"),utils=__webpack_require__("./src/ui/OpenchannelUserMessage/utils.ts"),LocalizationContext=__webpack_require__("./src/lib/LocalizationContext.tsx"),checkOGIsEnalbed=function checkOGIsEnalbed(message){var ogMetaData=message.ogMetaData;return!!ogMetaData&&!!ogMetaData.url},openChannelUtils=__webpack_require__("./src/utils/openChannelUtils.ts"),MediaQueryContext=__webpack_require__("./src/lib/MediaQueryContext.tsx"),useLongPress=__webpack_require__("./src/hooks/useLongPress.tsx"),OpenChannelMobileMenu=__webpack_require__("./src/ui/OpenChannelMobileMenu/index.tsx"),TextFragment=__webpack_require__("./src/modules/Message/components/TextFragment/index.tsx"),tokenize=__webpack_require__("./src/modules/Message/utils/tokens/tokenize.ts");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i36?setContextStyle({top:"8px "}):setContextStyle({top:"2px"})}),[window.innerWidth]),message&&"user"===message.messageType?react_default.a.createElement(react_default.a.Fragment,null,react_default.a.createElement("div",_extends({className:[].concat(_toConsumableArray(Array.isArray(className)?className:[className]),["sendbird-openchannel-og-message"]).join(" "),ref:messageComponentRef},isMobile?function _objectSpread(e){for(var r=1;r0&&react_default.a.createElement(Label.d,{key:Object(uuid.a)(),className:"sendbird-openchannel-og-message--word",type:Label.c.BODY_1,color:Label.a.ONBACKGROUND_2},stringSet.MESSAGE_EDITED)))),!isMobile&&react_default.a.createElement("div",{className:"sendbird-openchannel-og-message__top__context-menu",ref:contextMenuRef,style:contextStyle},react_default.a.createElement(ContextMenu.h,{menuTrigger:function menuTrigger(toggleDropdown){return Object(openChannelUtils.j)({message:message,userId:userId,status:status})&&react_default.a.createElement(IconButton.a,{className:"sendbird-openchannel-og-message__top__context-menu--icon",width:"32px",height:"32px",onClick:function onClick(){toggleDropdown()}},react_default.a.createElement(Icon.c,{type:Icon.b.MORE,fillColor:Icon.a.CONTENT_INVERSE,width:"24px",height:"24px"}))},menuItems:function menuItems(closeDropdown){return react_default.a.createElement(ContextMenu.d,{parentRef:contextMenuRef,parentContainRef:contextMenuRef,closeDropdown:closeDropdown,openLeft:!0},Object(openChannelUtils.e)({message:message,userId:userId,status:status})&&react_default.a.createElement(ContextMenu.c,{className:"sendbird-openchannel-og-message__top__context-menu__copy",onClick:function onClick(){Object(utils.a)(message.message),closeDropdown()},dataSbId:"open_channel_og_message_menu_copy"},stringSet.CONTEXT_MENU_DROPDOWN__COPY),!isEphemeral&&Object(openChannelUtils.h)({message:message,userId:userId,status:status})&&react_default.a.createElement(ContextMenu.c,{className:"sendbird-openchannel-og-message__top__context-menu__edit",onClick:function onClick(){disabled||(showEdit(!0),closeDropdown())},dataSbId:"open_channel_og_message_menu_edit"},stringSet.CONTEXT_MENU_DROPDOWN__EDIT),Object(openChannelUtils.i)({message:message,userId:userId,status:status})&&react_default.a.createElement(ContextMenu.c,{className:"sendbird-openchannel-og-message__top__context-menu__resend",onClick:function onClick(){resendMessage(message),closeDropdown()},dataSbId:"open_channel_og_message_menu_resend"},stringSet.CONTEXT_MENU_DROPDOWN__RESEND),!isEphemeral&&Object(openChannelUtils.f)({message:message,userId:userId,status:status})&&react_default.a.createElement(ContextMenu.c,{className:"sendbird-openchannel-og-message__top__context-menu__delete",onClick:function onClick(){disabled||(showRemove(!0),closeDropdown())},dataSbId:"open_channel_og_message_menu_delete"},stringSet.CONTEXT_MENU_DROPDOWN__DELETE))}}))),react_default.a.createElement("div",{className:"sendbird-openchannel-og-message__bottom"},react_default.a.createElement("div",{className:"sendbird-openchannel-og-message__bottom__og-tag",ref:mobileMenuRef},ogMetaData.url&&react_default.a.createElement(Label.d,{className:"sendbird-openchannel-og-message__bottom__og-tag__url",type:Label.c.CAPTION_3,color:Label.a.ONBACKGROUND_2},ogMetaData.url),ogMetaData.title&&react_default.a.createElement(LinkLabel.c,{className:"sendbird-openchannel-og-message__bottom__og-tag__title",src:ogMetaData.url,type:Label.c.SUBTITLE_2,color:Label.a.PRIMARY},ogMetaData.title),ogMetaData.description&&react_default.a.createElement(Label.d,{className:"sendbird-openchannel-og-message__bottom__og-tag__description",type:Label.c.BODY_2,color:Label.a.ONBACKGROUND_1},ogMetaData.description),ogMetaData.url&&react_default.a.createElement("div",{className:"sendbird-openchannel-og-message__bottom__og-tag__thumbnail",role:"button",onClick:openLink,onKeyDown:openLink,tabIndex:0},defaultImage&&react_default.a.createElement(ImageRenderer.a,{className:"sendbird-openchannel-og-message__bottom__og-tag__thumbnail__image",url:defaultImage.url||"",alt:defaultImage.alt||"",height:"189px",defaultComponent:react_default.a.createElement("div",{className:"sendbird-openchannel-og-message__bottom__og-tag__thumbnail__image--placeholder"},react_default.a.createElement(Icon.c,{type:Icon.b.THUMBNAIL_NONE,width:"56px",height:"56px"}))}))),(isPending||isFailed)&&react_default.a.createElement("div",{className:"sendbird-openchannel-og-message__top__right__tail"},isPending&&react_default.a.createElement(Loader.a,{width:"16px",height:"16px"},react_default.a.createElement(Icon.c,{className:"sendbird-openchannel-og-message__top__right__tail__pending",type:Icon.b.SPINNER,fillColor:Icon.a.PRIMARY,width:"16px",height:"16px"})),isFailed&&react_default.a.createElement(Icon.c,{className:"sendbird-openchannel-og-message__top__right__tail__failed",type:Icon.b.ERROR,fillColor:Icon.a.ERROR,width:"16px",height:"16px"})))),showContextMenu&&react_default.a.createElement(OpenChannelMobileMenu.a,{message:message,parentRef:mobileMenuRef,hideMenu:function hideMenu(){setShowContextMenu(!1)},showRemove:function(_showRemove){function showRemove(){return _showRemove.apply(this,arguments)}return showRemove.toString=function(){return _showRemove.toString()},showRemove}((function(){setShowContextMenu(!1),showRemove(!0)})),showEdit:function(_showEdit){function showEdit(){return _showEdit.apply(this,arguments)}return showEdit.toString=function(){return _showEdit.toString()},showEdit}((function(){setShowContextMenu(!1),showEdit(!0)})),copyToClipboard:function copyToClipboard(){setShowContextMenu(!1),Object(utils.a)(null==message?void 0:message.message)},resendMessage:function(_resendMessage){function resendMessage(){return _resendMessage.apply(this,arguments)}return resendMessage.toString=function(){return _resendMessage.toString()},resendMessage}((function(){setShowContextMenu(!1),resendMessage(message)}))})):react_default.a.createElement(react_default.a.Fragment,null)}try{OpenchannelOGMessage_OpenchannelOGMessage.displayName="OpenchannelOGMessage",OpenchannelOGMessage_OpenchannelOGMessage.__docgenInfo={description:"",displayName:"OpenchannelOGMessage",props:{message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"UserMessage"}},isOperator:{defaultValue:null,description:"",name:"isOperator",required:!1,type:{name:"boolean"}},isEphemeral:{defaultValue:{value:"false"},description:"",name:"isEphemeral",required:!1,type:{name:"boolean"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string | string[]"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},showEdit:{defaultValue:null,description:"",name:"showEdit",required:!0,type:{name:"(bool: boolean) => void"}},showRemove:{defaultValue:null,description:"",name:"showRemove",required:!0,type:{name:"(bool: boolean) => void"}},resendMessage:{defaultValue:null,description:"",name:"resendMessage",required:!0,type:{name:"(message: UserMessage) => void"}},chainTop:{defaultValue:null,description:"",name:"chainTop",required:!1,type:{name:"boolean"}},chainBottom:{defaultValue:null,description:"",name:"chainBottom",required:!1,type:{name:"boolean"}},userId:{defaultValue:null,description:"",name:"userId",required:!0,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/OpenchannelOGMessage/index.tsx#OpenchannelOGMessage"]={docgenInfo:OpenchannelOGMessage_OpenchannelOGMessage.__docgenInfo,name:"OpenchannelOGMessage",path:"src/ui/OpenchannelOGMessage/index.tsx#OpenchannelOGMessage"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/OpenchannelOGMessage/stories/OpenchannelOGMessage.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return WithControl})),__webpack_require__.d(__webpack_exports__,"defaultOpenchannelOGMessage",(function(){return defaultOpenchannelOGMessage})),__webpack_require__.d(__webpack_exports__,"openchannelOGMessagesWithChainTop",(function(){return openchannelOGMessagesWithChainTop}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _index_tsx__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/OpenchannelOGMessage/index.tsx"),_ContextMenu__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/ui/ContextMenu/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/OpenchannelOGMessage",component:_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,parameters:{docs:{description:{component:'\n `import OpenchannelOGMessage from "@sendbird/uikit-react/ui/OpenchannelOGMessage";`\n'}}}};var defaultMessage={messageType:"user",message:"sendbird.com A Van Allen radiation belt is a zone of energetic charged particles, most of which orginate from the solar wind, that are captured by held around a planet",createdAt:11111110,updatedAt:0,ogMetaData:{url:"https://sendbird.com/",title:"This is the TITLE",description:"I am description I an who has much string in this og meta data",defaultImage:{url:"https://static.sendbird.com/sample/profiles/profile_12_512px.png",alt:"test"}},sender:{profileUrl:"https://static.sendbird.com/sample/profiles/profile_12_512px.png",friendName:"Hamtory",nickname:"Ham",userId:"hh-1234"},isResendable:function isResendable(){return!0}},WithControl=function WithControl(arg){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,Object.assign({message:defaultMessage,userId:"hh-1234"},arg))};WithControl.displayName="WithControl";var defaultOpenchannelOGMessage=function defaultOpenchannelOGMessage(){return[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{message:defaultMessage,userId:"hh-1234"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{message:defaultMessage,userId:"hh-1234",status:"pending"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{message:defaultMessage,userId:"hh-1234",status:"failed"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_ContextMenu__WEBPACK_IMPORTED_MODULE_3__.e,{})]},openchannelOGMessagesWithChainTop=function openchannelOGMessagesWithChainTop(){return[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{message:{messageType:"user",message:"sendbird.com A Van Allen radiation belt is a zone of energetic charged particles, most of which orginate from the solar wind, that are captured by held around a planet",createdAt:11111110,updatedAt:0,ogMetaData:{url:"https://sendbird.com/",title:"This is the TITLE",description:"I am description I an who has much string in this og meta data",defaultImage:{url:"https://static.sendbird.com/sample/profiles/profile_12_512px.png",alt:"test"}},sender:{profileUrl:"https://static.sendbird.com/sample/profiles/profile_12_512px.png",friendName:"Hamtory",nickname:"Ham",userId:"hh-1234"},isResendable:function isResendable(){return!1}}}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{message:{messageType:"user",message:"sendbird.com A Van Allen radiation belt is a zone of energetic charged particles, most of which orginate from the solar wind, that are captured by held around a planet",createdAt:11111110,updatedAt:0,ogMetaData:{url:"https://sendbird.com/",title:"This is the TITLE",description:"I am description I an who has much string in this og meta data",defaultImage:{url:"https://static.sendbird.com/sample/profiles/profile_12_512px.png",alt:"test"}},sender:{profileUrl:"https://static.sendbird.com/sample/profiles/profile_12_512px.png",friendName:"Hamtory",nickname:"Ham",userId:"hh-1234"},isResendable:function isResendable(){return!1}},chainTop:!0}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{message:{messageType:"user",message:"sendbird.com A Van Allen radiation belt is a zone of energetic charged particles, most of which orginate from the solar wind, that are captured by held around a planet",createdAt:11111110,updatedAt:0,ogMetaData:{url:"https://sendbird.com/",title:"This is the TITLE",description:"I am description I an who has much string in this og meta data",defaultImage:{url:"https://static.sendbird.com/sample/profiles/profile_12_512px.png",alt:"test"}},sender:{profileUrl:"https://static.sendbird.com/sample/profiles/profile_12_512px.png",friendName:"Hamtory",nickname:"Ham",userId:"hh-1234"},isResendable:function isResendable(){return!1}}})]};WithControl.parameters=Object.assign({storySource:{source:"(arg) => (\n \n)"}},WithControl.parameters),defaultOpenchannelOGMessage.parameters=Object.assign({storySource:{source:'() => ([\n ,\n ,\n ,\n ,\n])'}},defaultOpenchannelOGMessage.parameters),openchannelOGMessagesWithChainTop.parameters=Object.assign({storySource:{source:"() => [\n false,\n }}\n />,\n false,\n }}\n chainTop\n />,\n false,\n }}\n />,\n]"}},openchannelOGMessagesWithChainTop.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/OpenchannelOGMessage/stories/OpenchannelOGMessage.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/OpenchannelOGMessage/stories/OpenchannelOGMessage.stories.js"})},"./src/ui/OpenchannelThumbnailMessage/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/OpenchannelThumbnailMessage/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/OpenchannelThumbnailMessage/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return OpenchannelThumbnailMessage_OpenchannelThumbnailMessage}));__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),format=__webpack_require__("./node_modules/date-fns/esm/format/index.js"),SUPPORTING_TYPES=(__webpack_require__("./src/ui/OpenchannelThumbnailMessage/index.scss"),{IMAGE:"IMAGE",VIDEO:"VIDEO",UNSUPPORTED:"UNSUPPORTED"}),SUPPORTED_MIMES={IMAGE:["image/jpeg","image/jpg","image/png","image/gif","image/webp"],VIDEO:["video/mpeg","video/ogg","video/webm","video/mp4"]},getSupportingFileType=function getSupportingFileType(type){return SUPPORTED_MIMES.IMAGE.indexOf(type)>=0?SUPPORTING_TYPES.IMAGE:SUPPORTED_MIMES.VIDEO.indexOf(type)>=0?SUPPORTING_TYPES.VIDEO:SUPPORTING_TYPES.UNSUPPORTED},LocalizationContext=__webpack_require__("./src/lib/LocalizationContext.tsx"),Avatar=__webpack_require__("./src/ui/Avatar/index.tsx"),ContextMenu=__webpack_require__("./src/ui/ContextMenu/index.tsx"),Icon=__webpack_require__("./src/ui/Icon/index.tsx"),IconButton=__webpack_require__("./src/ui/IconButton/index.tsx"),ImageRenderer=__webpack_require__("./src/ui/ImageRenderer/index.tsx"),Label=__webpack_require__("./src/ui/Label/index.tsx"),Loader=__webpack_require__("./src/ui/Loader/index.tsx"),UserProfile=__webpack_require__("./src/ui/UserProfile/index.tsx"),UserProfileContext=__webpack_require__("./src/lib/UserProfileContext.tsx"),openChannelUtils=__webpack_require__("./src/utils/openChannelUtils.ts"),MediaQueryContext=__webpack_require__("./src/lib/MediaQueryContext.tsx"),OpenChannelMobileMenu=__webpack_require__("./src/ui/OpenChannelMobileMenu/index.tsx"),useLongPress=__webpack_require__("./src/hooks/useLongPress.tsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&thumbnails[0].url||null,_useLocalization=Object(LocalizationContext.c)(),stringSet=_useLocalization.stringSet,dateLocale=_useLocalization.dateLocale,_useContext=Object(react.useContext)(UserProfileContext.a),disableUserProfile=_useContext.disableUserProfile,renderUserProfile=_useContext.renderUserProfile,_useState2=_slicedToArray(Object(react.useState)(360),2),messageWidth=_useState2[0],setMessageWidth=_useState2[1],_useState4=_slicedToArray(Object(react.useState)(!1),2),contextMenu=_useState4[0],setContextMenu=_useState4[1],messageRef=Object(react.useRef)(null),mobileMenuRef=Object(react.useRef)(null),contextMenuRef=Object(react.useRef)(null),avatarRef=Object(react.useRef)(null),onLongPress=Object(useLongPress.a)({onLongPress:function onLongPress(){setContextMenu(!0)},onClick:function(_onClick){function onClick(){return _onClick.apply(this,arguments)}return onClick.toString=function(){return _onClick.toString()},onClick}((function(){onClick(!0)}))}),isMobile=Object(MediaQueryContext.b)().isMobile,memorizedThumbnailPlaceHolder=Object(react.useMemo)((function(){return function(type){return function(_ref2){var style=_ref2.style;return react_default.a.createElement("div",{style:style},react_default.a.createElement(Icon.c,{type:type,fillColor:Icon.a.ON_BACKGROUND_2,width:"56px",height:"56px"}))}}}),[]),isMessageSent=Object(openChannelUtils.c)(status),isPending=Object(openChannelUtils.b)(status),isFailed=Object(openChannelUtils.a)(status),sender=Object(openChannelUtils.d)(message);return Object(react.useEffect)((function(){var _messageRef$current$c,_messageRef$current,thumbnailWidth=(null!==(_messageRef$current$c=null==messageRef||null===(_messageRef$current=messageRef.current)||void 0===_messageRef$current?void 0:_messageRef$current.clientWidth)&&void 0!==_messageRef$current$c?_messageRef$current$c:0)-80;setMessageWidth(thumbnailWidth>360?360:thumbnailWidth)}),[]),react_default.a.createElement(react_default.a.Fragment,null,react_default.a.createElement("div",{className:[].concat(_toConsumableArray(Array.isArray(className)?className:[className]),["sendbird-openchannel-thumbnail-message"]).join(" "),ref:messageRef},react_default.a.createElement("div",{className:"sendbird-openchannel-thumbnail-message__left"},!chainTop&&react_default.a.createElement(ContextMenu.h,{menuTrigger:function menuTrigger(toggleDropdown){return react_default.a.createElement(Avatar.a,{className:"sendbird-openchannel-thumbnail-message__left__avatar",src:sender.profileUrl||"",ref:avatarRef,width:"28px",height:"28px",onClick:function onClick(){disableUserProfile||toggleDropdown()}})},menuItems:function menuItems(closeDropdown){return renderUserProfile?renderUserProfile({user:sender,close:closeDropdown,currentUserId:userId,avatarRef:avatarRef}):react_default.a.createElement(ContextMenu.d,{parentRef:avatarRef,parentContainRef:avatarRef,closeDropdown:closeDropdown,style:{paddingTop:"0px",paddingBottom:"0px"}},react_default.a.createElement(UserProfile.a,{user:sender,onSuccess:closeDropdown,disableMessaging:!0}))}})),react_default.a.createElement("div",{className:"sendbird-openchannel-thumbnail-message__right"},!chainTop&&react_default.a.createElement("div",{className:"sendbird-openchannel-thumbnail-message__right__title"},react_default.a.createElement(Label.d,{className:"sendbird-openchannel-thumbnail-message__right__title__sender-name",type:Label.c.CAPTION_2,color:isOperator?Label.a.SECONDARY_3:Label.a.ONBACKGROUND_2},sender&&(sender.friendName||sender.nickname||sender.userId)),react_default.a.createElement(Label.d,{className:"sendbird-openchannel-thumbnail-message__right__title__sent-at",type:Label.c.CAPTION_3,color:Label.a.ONBACKGROUND_3},(null==message?void 0:message.createdAt)&&Object(format.a)(message.createdAt,"p",{locale:dateLocale}))),react_default.a.createElement("div",{className:"sendbird-openchannel-thumbnail-message__right__body",ref:mobileMenuRef},react_default.a.createElement("div",_extends({className:"sendbird-openchannel-thumbnail-message__right__body__wrap",role:"button",onClick:function(_onClick2){function onClick(){return _onClick2.apply(this,arguments)}return onClick.toString=function(){return _onClick2.toString()},onClick}((function(){isMessageSent&&onClick(!0)})),onKeyDown:function onKeyDown(){isMessageSent&&onClick(!0)},tabIndex:0},isMobile?function _objectSpread(e){for(var r=1;r void"}},showRemove:{defaultValue:null,description:"",name:"showRemove",required:!0,type:{name:"(bool: boolean) => void"}},resendMessage:{defaultValue:null,description:"",name:"resendMessage",required:!0,type:{name:"(message: FileMessage) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/OpenchannelThumbnailMessage/index.tsx#OpenchannelThumbnailMessage"]={docgenInfo:OpenchannelThumbnailMessage_OpenchannelThumbnailMessage.__docgenInfo,name:"OpenchannelThumbnailMessage",path:"src/ui/OpenchannelThumbnailMessage/index.tsx#OpenchannelThumbnailMessage"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/OpenchannelThumbnailMessage/stories/OpenchannelThumbnailMessage.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return OpenchannelThumbnailMessage_stories_WithControl})),__webpack_require__.d(__webpack_exports__,"defaultThumbnailMessage",(function(){return OpenchannelThumbnailMessage_stories_defaultThumbnailMessage})),__webpack_require__.d(__webpack_exports__,"emptyThumbnailMessage",(function(){return OpenchannelThumbnailMessage_stories_emptyThumbnailMessage}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var OpenchannelThumbnailMessage=__webpack_require__("./src/ui/OpenchannelThumbnailMessage/index.tsx"),mockMessage={messageId:16131097,messageType:"file",channelUrl:"sendbird_group_channel_12373168_f986d10807a7cc7c184e22ca8ac2137bc32bc57c",data:"",customType:"",createdAt:1583415812675,updatedAt:0,channelType:"group",mentionType:"users",url:"https://sendbird-staging.s3.amazonaws.com/26FA710D-A7F6-4483-ABEA-1F07A07A112E/upload/n/e49e0a4111d4445a8840bd51f3c9d933.png",name:"sent-mail (1).png",size:9250,type:"image/png",sender:{nickname:"hoon102",profileUrl:"https://static.sendbird.com/sample/profiles/profile_15_512px.png",userId:"hoon102",connectionStatus:"nonavailable",lastSeenAt:0},reqId:"1583413644783",requireAuth:!1,requestState:"succeeded",errorCode:0},mockMessageVideo={messageId:16131097,messageType:"file",channelUrl:"sendbird_group_channel_12373168_f986d10807a7cc7c184e22ca8ac2137bc32bc57c",data:"",customType:"",createdAt:1583415812675,updatedAt:0,channelType:"group",mentionType:"users",url:"https://sendbird-upload.s3.amazonaws.com/2D7B4CDB-932F-4082-9B09-A1153792DC8D/upload/n/5a66f56bb5ed481aaf435b55bc209190.mp4",name:"sent-mail (1).png",size:9250,type:"video/mp4",sender:{nickname:"hoon102",profileUrl:"https://static.sendbird.com/sample/profiles/profile_15_512px.png",userId:"hoon102",connectionStatus:"nonavailable",lastSeenAt:0},reqId:"1583413644783",requireAuth:!1,requestState:"succeeded",errorCode:0},getMockMessageWithVideo=function getMockMessageWithVideo(callback){var message=Object.assign({},mockMessageVideo);return callback&&"function"==typeof callback&&callback(message),message},ContextMenu=__webpack_require__("./src/ui/ContextMenu/index.tsx"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),userId=(__webpack_exports__.default={title:"@sendbird/uikit-react/ui/OpenchannelThumbnailMessage",component:OpenchannelThumbnailMessage.a,parameters:{docs:{description:{component:'\n `import OpenchannelThumbnailMessage from "@sendbird/uikit-react/ui/OpenchannelThumbnailMessage";`\n'}}}},mockMessage.sender.userId),OpenchannelThumbnailMessage_stories_WithControl=function WithControl(arg){return Object(jsx_runtime.jsx)(OpenchannelThumbnailMessage.a,Object.assign({message:mockMessage,userId:userId},arg))};OpenchannelThumbnailMessage_stories_WithControl.displayName="WithControl";var OpenchannelThumbnailMessage_stories_defaultThumbnailMessage=function defaultThumbnailMessage(){return Object(jsx_runtime.jsxs)("div",{children:[Object(jsx_runtime.jsx)(OpenchannelThumbnailMessage.a,{message:mockMessage,userId:userId}),Object(jsx_runtime.jsx)(OpenchannelThumbnailMessage.a,{message:getMockMessageWithVideo(),userId:userId}),Object(jsx_runtime.jsx)(OpenchannelThumbnailMessage.a,{message:mockMessage,userId:userId,chainTop:!0}),Object(jsx_runtime.jsx)(OpenchannelThumbnailMessage.a,{message:getMockMessageWithVideo(),userId:userId,chainTop:!0}),Object(jsx_runtime.jsx)(OpenchannelThumbnailMessage.a,{message:getMockMessageWithVideo(),userId:userId,status:"pending"}),Object(jsx_runtime.jsx)(OpenchannelThumbnailMessage.a,{message:getMockMessageWithVideo((function(message){message.isResendable=function(){return!0}})),userId:userId,status:"failed"}),Object(jsx_runtime.jsx)(ContextMenu.e,{})]})};OpenchannelThumbnailMessage_stories_defaultThumbnailMessage.displayName="defaultThumbnailMessage";var OpenchannelThumbnailMessage_stories_emptyThumbnailMessage=function emptyThumbnailMessage(){var mock=function getMockMessage(callback){var message=Object.assign({},mockMessage);return callback&&"function"==typeof callback&&callback(message),message}();mock.url="";var mock2=getMockMessageWithVideo();mock2.url="";var mock3=getMockMessageWithVideo();return mock3.type="",Object(jsx_runtime.jsxs)("div",{children:[Object(jsx_runtime.jsx)(OpenchannelThumbnailMessage.a,{message:mock}),Object(jsx_runtime.jsx)(OpenchannelThumbnailMessage.a,{message:mock2,chainTop:!0}),Object(jsx_runtime.jsx)(OpenchannelThumbnailMessage.a,{message:mock3})]})};OpenchannelThumbnailMessage_stories_emptyThumbnailMessage.displayName="emptyThumbnailMessage",OpenchannelThumbnailMessage_stories_WithControl.parameters=Object.assign({storySource:{source:"(arg) => (\n \n)"}},OpenchannelThumbnailMessage_stories_WithControl.parameters),OpenchannelThumbnailMessage_stories_defaultThumbnailMessage.parameters=Object.assign({storySource:{source:'() => (\n
\n \n \n \n \n \n {\n message.isResendable = () => true;\n })}\n userId={userId}\n status="failed"\n />\n \n
\n)'}},OpenchannelThumbnailMessage_stories_defaultThumbnailMessage.parameters),OpenchannelThumbnailMessage_stories_emptyThumbnailMessage.parameters=Object.assign({storySource:{source:"() => {\n const mock = getMockMessage();\n mock.url = '';\n const mock2 = getMockMessageWithVideo();\n mock2.url = '';\n const mock3 = getMockMessageWithVideo();\n mock3.type = '';\n return (\n
\n \n \n \n
\n );\n}"}},OpenchannelThumbnailMessage_stories_emptyThumbnailMessage.parameters),OpenchannelThumbnailMessage_stories_WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/OpenchannelThumbnailMessage/stories/OpenchannelThumbnailMessage.stories.js"]={name:"WithControl",docgenInfo:OpenchannelThumbnailMessage_stories_WithControl.__docgenInfo,path:"src/ui/OpenchannelThumbnailMessage/stories/OpenchannelThumbnailMessage.stories.js"}),OpenchannelThumbnailMessage_stories_defaultThumbnailMessage.__docgenInfo={description:"",methods:[],displayName:"defaultThumbnailMessage"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/OpenchannelThumbnailMessage/stories/OpenchannelThumbnailMessage.stories.js"]={name:"defaultThumbnailMessage",docgenInfo:OpenchannelThumbnailMessage_stories_defaultThumbnailMessage.__docgenInfo,path:"src/ui/OpenchannelThumbnailMessage/stories/OpenchannelThumbnailMessage.stories.js"}),OpenchannelThumbnailMessage_stories_emptyThumbnailMessage.__docgenInfo={description:"",methods:[],displayName:"emptyThumbnailMessage"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/OpenchannelThumbnailMessage/stories/OpenchannelThumbnailMessage.stories.js"]={name:"emptyThumbnailMessage",docgenInfo:OpenchannelThumbnailMessage_stories_emptyThumbnailMessage.__docgenInfo,path:"src/ui/OpenchannelThumbnailMessage/stories/OpenchannelThumbnailMessage.stories.js"})},"./src/ui/OpenchannelUserMessage/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/OpenchannelUserMessage/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/OpenchannelUserMessage/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return OpenchannelUserMessage}));__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js");var react__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_22___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_22__),date_fns_format__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/date-fns/esm/format/index.js"),_Avatar__WEBPACK_IMPORTED_MODULE_25__=(__webpack_require__("./src/ui/OpenchannelUserMessage/index.scss"),__webpack_require__("./src/ui/Avatar/index.tsx")),_ContextMenu__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./src/ui/ContextMenu/index.tsx"),_Icon__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./src/ui/Icon/index.tsx"),_IconButton__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./src/ui/IconButton/index.tsx"),_Label__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./src/ui/Label/index.tsx"),_Loader__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./src/ui/Loader/index.tsx"),_UserProfile__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./src/ui/UserProfile/index.tsx"),_lib_UserProfileContext__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("./src/lib/UserProfileContext.tsx"),_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__("./src/lib/LocalizationContext.tsx"),_utils__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__("./src/ui/OpenchannelUserMessage/utils.ts"),_utils_uuid__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__("./src/utils/uuid.ts"),_utils_openChannelUtils__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__("./src/utils/openChannelUtils.ts"),_lib_MediaQueryContext__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__("./src/lib/MediaQueryContext.tsx"),_OpenChannelMobileMenu__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__("./src/ui/OpenChannelMobileMenu/index.tsx"),_hooks_useLongPress__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__("./src/hooks/useLongPress.tsx"),_utils__WEBPACK_IMPORTED_MODULE_40__=__webpack_require__("./src/utils/index.ts");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i36?setContextStyle({top:"8px "}):setContextStyle({top:"2px"})}),[window.innerWidth]);var onLongPress=Object(_hooks_useLongPress__WEBPACK_IMPORTED_MODULE_39__.a)({onLongPress:function onLongPress(){setContextMenu(!0)}}),isMobile=Object(_lib_MediaQueryContext__WEBPACK_IMPORTED_MODULE_37__.b)().isMobile;return message&&"user"===message.messageType?react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_22___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement("div",{className:[].concat(_toConsumableArray(Array.isArray(className)?className:[className]),["sendbird-openchannel-user-message"]).join(" "),ref:messageRef},react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement("div",{className:"sendbird-openchannel-user-message__left"},!chainTop&&react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement(_ContextMenu__WEBPACK_IMPORTED_MODULE_26__.h,{menuTrigger:function menuTrigger(toggleDropdown){return react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement(_Avatar__WEBPACK_IMPORTED_MODULE_25__.a,{className:"sendbird-openchannel-user-message__left__avatar",src:sender.profileUrl||"",ref:avatarRef,width:"28px",height:"28px",onClick:function onClick(){disableUserProfile||toggleDropdown()}})},menuItems:function menuItems(closeDropdown){return renderUserProfile?renderUserProfile({user:sender,close:closeDropdown,currentUserId:userId,avatarRef:avatarRef}):react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement(_ContextMenu__WEBPACK_IMPORTED_MODULE_26__.d,{parentRef:avatarRef,parentContainRef:avatarRef,closeDropdown:closeDropdown,style:{paddingTop:"0px",paddingBottom:"0px"}},react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement(_UserProfile__WEBPACK_IMPORTED_MODULE_31__.a,{user:sender,onSuccess:closeDropdown,disableMessaging:!0}))}})),react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement("div",{className:"sendbird-openchannel-user-message__right"},!chainTop&&react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement("div",{className:"sendbird-openchannel-user-message__right__top"},react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement(_Label__WEBPACK_IMPORTED_MODULE_29__.d,{className:"sendbird-openchannel-user-message__right__top__sender-name",type:_Label__WEBPACK_IMPORTED_MODULE_29__.c.CAPTION_2,color:isOperator?_Label__WEBPACK_IMPORTED_MODULE_29__.a.SECONDARY_3:_Label__WEBPACK_IMPORTED_MODULE_29__.a.ONBACKGROUND_2},sender&&(sender.friendName||sender.nickname||sender.userId)),react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement(_Label__WEBPACK_IMPORTED_MODULE_29__.d,{className:"sendbird-openchannel-user-message__right__top__sent-at",type:_Label__WEBPACK_IMPORTED_MODULE_29__.c.CAPTION_3,color:_Label__WEBPACK_IMPORTED_MODULE_29__.a.ONBACKGROUND_3},(null==message?void 0:message.createdAt)&&Object(date_fns_format__WEBPACK_IMPORTED_MODULE_23__.a)(null==message?void 0:message.createdAt,"p",{locale:dateLocale}))),react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement("div",_extends({},isMobile?function _objectSpread(e){for(var r=1;r void"}},showRemove:{defaultValue:null,description:"",name:"showRemove",required:!0,type:{name:"(bool: boolean) => void"}},resendMessage:{defaultValue:null,description:"",name:"resendMessage",required:!0,type:{name:"(message: UserMessage) => void"}},chainTop:{defaultValue:null,description:"",name:"chainTop",required:!1,type:{name:"boolean"}},chainBottom:{defaultValue:null,description:"",name:"chainBottom",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/OpenchannelUserMessage/index.tsx#OpenchannelUserMessage"]={docgenInfo:OpenchannelUserMessage.__docgenInfo,name:"OpenchannelUserMessage",path:"src/ui/OpenchannelUserMessage/index.tsx#OpenchannelUserMessage"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/OpenchannelUserMessage/stories/OpenchannelUserMessage.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return WithControl})),__webpack_require__.d(__webpack_exports__,"defaultUserMessage",(function(){return defaultUserMessage})),__webpack_require__.d(__webpack_exports__,"chainUserMessages",(function(){return chainUserMessages}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _index_tsx__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/OpenchannelUserMessage/index.tsx"),_ContextMenu__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/ui/ContextMenu/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/OpenchannelUserMessage",component:_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,parameters:{docs:{description:{component:'\n `import OpenchannelUserMessage from "@sendbird/uikit-react/ui/OpenchannelUserMessage";`\n'}}}};var getMockMessage=function getMockMessage(callback){var message={message:"A Van Allen radiation belt is a zone of energetic charged particles, most of which orginate from the solar wind, that are captured by held around a planet",messageType:"user",updatedAt:0,sender:{profileUrl:"https://static.sendbird.com/sample/profiles/profile_12_512px.png",friendName:"Hamtory",nickname:"Ham",userId:"hh-1234"},createdAt:1e7,isResendable:function isResendable(){}};return callback&&"function"==typeof callback&&callback(message),message},userId=getMockMessage().sender.userId,WithControl=function WithControl(arg){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,Object.assign({message:getMockMessage()},arg))};WithControl.displayName="WithControl";var defaultUserMessage=function defaultUserMessage(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("div",{children:[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{message:getMockMessage()}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{message:getMockMessage((function(message){message.isResendable=function(){return!0}})),userId:userId,status:"pending"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{message:getMockMessage((function(message){message.isResendable=function(){return!0}})),userId:userId,status:"failed"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_ContextMenu__WEBPACK_IMPORTED_MODULE_3__.e,{})]})};defaultUserMessage.displayName="defaultUserMessage";var chainUserMessages=function chainUserMessages(){return[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{message:getMockMessage((function(message){message.message="Single"}))}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{message:getMockMessage(),chainTop:!0})]};WithControl.parameters=Object.assign({storySource:{source:"(arg) => (\n \n)"}},WithControl.parameters),defaultUserMessage.parameters=Object.assign({storySource:{source:'() => (\n
\n \n {\n message.isResendable = () => true;\n })}\n userId={userId}\n status="pending"\n />\n {\n message.isResendable = () => true;\n })}\n userId={userId}\n status="failed"\n />\n \n
\n)'}},defaultUserMessage.parameters),chainUserMessages.parameters=Object.assign({storySource:{source:'() => [\n {\n message.message = "Single";\n })}\n />,\n ,\n]'}},chainUserMessages.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/OpenchannelUserMessage/stories/OpenchannelUserMessage.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/OpenchannelUserMessage/stories/OpenchannelUserMessage.stories.js"}),defaultUserMessage.__docgenInfo={description:"",methods:[],displayName:"defaultUserMessage"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/OpenchannelUserMessage/stories/OpenchannelUserMessage.stories.js"]={name:"defaultUserMessage",docgenInfo:defaultUserMessage.__docgenInfo,path:"src/ui/OpenchannelUserMessage/stories/OpenchannelUserMessage.stories.js"})},"./src/ui/OpenchannelUserMessage/utils.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return copyToClipboard}));var copyToClipboard=function copyToClipboard(text){if(window.clipboardData&&window.clipboardData.setData)return window.clipboardData.setData("Text",text);if(document.queryCommandSupported&&document.queryCommandSupported("copy")){var textarea=document.createElement("textarea");textarea.textContent=text,textarea.style.position="fixed",document.body.appendChild(textarea),textarea.select();try{return document.execCommand("copy")}catch(ex){return!1}finally{document.body.removeChild(textarea)}}return!1}},"./src/ui/PlaceHolder/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/PlaceHolder/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/PlaceHolder/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return PlaceHolderTypes})),__webpack_require__.d(__webpack_exports__,"b",(function(){return PlaceHolder}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var react__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__),_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_14__=(__webpack_require__("./src/ui/PlaceHolder/index.scss"),__webpack_require__("./src/lib/LocalizationContext.tsx")),_Icon__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./src/ui/Icon/index.tsx"),_Label__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./src/ui/Label/index.tsx"),_Loader__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./src/ui/Loader/index.tsx");function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/PlaceHolder/index.tsx#PlaceHolder"]={docgenInfo:PlaceHolder.__docgenInfo,name:"PlaceHolder",path:"src/ui/PlaceHolder/index.tsx#PlaceHolder"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/PlaceHolder/stories/PlaceHolder.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return WithControl})),__webpack_require__.d(__webpack_exports__,"loading",(function(){return loading})),__webpack_require__.d(__webpack_exports__,"noChannels",(function(){return noChannels})),__webpack_require__.d(__webpack_exports__,"somethingWrong",(function(){return somethingWrong})),__webpack_require__.d(__webpack_exports__,"placeHodersInHTML",(function(){return placeHodersInHTML}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _index__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/PlaceHolder/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/PlaceHolder",component:_index__WEBPACK_IMPORTED_MODULE_2__.b,subcomponents:{PlaceHolderTypes:_index__WEBPACK_IMPORTED_MODULE_2__.a},parameters:{docs:{description:{component:'\n `import PlaceHolder, { PlaceHolderTypes } from "@sendbird/uikit-react/ui/PlaceHolder";`\n'}}}};var WithControl=function WithControl(arg){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.b,Object.assign({type:_index__WEBPACK_IMPORTED_MODULE_2__.a.LOADING},arg))};WithControl.displayName="WithControl";var loading=function loading(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.b,{type:_index__WEBPACK_IMPORTED_MODULE_2__.a.LOADING})};loading.displayName="loading";var noChannels=function noChannels(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.b,{type:_index__WEBPACK_IMPORTED_MODULE_2__.a.NO_CHANNELS})};noChannels.displayName="noChannels";var somethingWrong=function somethingWrong(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.b,{type:_index__WEBPACK_IMPORTED_MODULE_2__.a.WRONG})};somethingWrong.displayName="somethingWrong";var placeHodersInHTML=function placeHodersInHTML(){return[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("div",{style:{display:"flex",flexDirection:"row"},children:[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("div",{style:{width:300,height:300,border:"solid 1px black",marginRight:"15px"},children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.b,{type:_index__WEBPACK_IMPORTED_MODULE_2__.a.LOADING})}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("div",{style:{width:300,height:300,border:"solid 1px black"},children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.b,{type:_index__WEBPACK_IMPORTED_MODULE_2__.a.NO_CHANNELS})})]}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("br",{}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("div",{style:{display:"flex",flexDirection:"row"},children:[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("div",{style:{width:300,height:300,border:"solid 1px black",marginRight:"15px"},children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.b,{type:_index__WEBPACK_IMPORTED_MODULE_2__.a.WRONG})}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("div",{style:{width:300,height:300,border:"solid 1px black"},children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.b,{type:_index__WEBPACK_IMPORTED_MODULE_2__.a.WRONG,retryToConnect:function retryToConnect(){return alert("Retry to connect")}})})]}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("br",{}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("div",{style:{display:"flex",flexDirection:"row"},children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("div",{style:{width:300,height:300,border:"solid 1px black",marginRight:"15px"},children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.b,{type:_index__WEBPACK_IMPORTED_MODULE_2__.a.NO_MESSAGES})})})]};WithControl.parameters=Object.assign({storySource:{source:"(arg) => (\n \n)"}},WithControl.parameters),loading.parameters=Object.assign({storySource:{source:"() => "}},loading.parameters),noChannels.parameters=Object.assign({storySource:{source:"() => "}},noChannels.parameters),somethingWrong.parameters=Object.assign({storySource:{source:"() => "}},somethingWrong.parameters),placeHodersInHTML.parameters=Object.assign({storySource:{source:"() => [\n
\n
\n \n
\n
\n \n
\n
,\n
,\n
\n
\n \n
\n
\n alert('Retry to connect')} />\n
\n
,\n
,\n
\n
\n \n
\n {/*
\n alert('Retry to connect')} />\n
*/}\n
,\n]"}},placeHodersInHTML.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/PlaceHolder/stories/PlaceHolder.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/PlaceHolder/stories/PlaceHolder.stories.js"}),loading.__docgenInfo={description:"",methods:[],displayName:"loading"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/PlaceHolder/stories/PlaceHolder.stories.js"]={name:"loading",docgenInfo:loading.__docgenInfo,path:"src/ui/PlaceHolder/stories/PlaceHolder.stories.js"}),noChannels.__docgenInfo={description:"",methods:[],displayName:"noChannels"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/PlaceHolder/stories/PlaceHolder.stories.js"]={name:"noChannels",docgenInfo:noChannels.__docgenInfo,path:"src/ui/PlaceHolder/stories/PlaceHolder.stories.js"}),somethingWrong.__docgenInfo={description:"",methods:[],displayName:"somethingWrong"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/PlaceHolder/stories/PlaceHolder.stories.js"]={name:"somethingWrong",docgenInfo:somethingWrong.__docgenInfo,path:"src/ui/PlaceHolder/stories/PlaceHolder.stories.js"})},"./src/ui/PlaybackTime/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_Label__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/Label/index.tsx"),PlaybackTime=function PlaybackTime(_ref){var className=_ref.className,_ref$time=_ref.time,time=void 0===_ref$time?0:_ref$time,_ref$labelType=_ref.labelType,labelType=void 0===_ref$labelType?_Label__WEBPACK_IMPORTED_MODULE_2__.c.CAPTION_2:_ref$labelType,_ref$labelColor=_ref.labelColor,labelColor=void 0===_ref$labelColor?_Label__WEBPACK_IMPORTED_MODULE_2__.a.ONCONTENT_1:_ref$labelColor,naturalTime=time<0?0:time,hour=Math.floor(naturalTime/36e5),min=Math.floor(naturalTime%36e5/6e4),sec=Math.floor(naturalTime%36e5%6e4/1e3);return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",{className:"sendbird-ui-play-time ".concat(className)},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Label__WEBPACK_IMPORTED_MODULE_2__.d,{type:labelType,color:labelColor},"".concat(hour?hour+":":"").concat(min<10?"0":"").concat(min||"0",":").concat(sec<10?"0":"").concat(sec)))};__webpack_exports__.a=PlaybackTime;try{PlaybackTime.displayName="PlaybackTime",PlaybackTime.__docgenInfo={description:"",displayName:"PlaybackTime",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},time:{defaultValue:{value:"0"},description:"",name:"time",required:!1,type:{name:"number"}},labelType:{defaultValue:{value:"CAPTION_2"},description:"",name:"labelType",required:!1,type:{name:"enum",value:[{value:'"H_1"'},{value:'"H_2"'},{value:'"SUBTITLE_1"'},{value:'"SUBTITLE_2"'},{value:'"BODY_1"'},{value:'"BODY_2"'},{value:'"BUTTON_1"'},{value:'"BUTTON_2"'},{value:'"BUTTON_3"'},{value:'"CAPTION_1"'},{value:'"CAPTION_2"'},{value:'"CAPTION_3"'}]}},labelColor:{defaultValue:{value:"ONCONTENT_1"},description:"",name:"labelColor",required:!1,type:{name:"enum",value:[{value:'"PRIMARY"'},{value:'"ERROR"'},{value:'"ONBACKGROUND_1"'},{value:'"ONBACKGROUND_2"'},{value:'"ONBACKGROUND_3"'},{value:'"ONBACKGROUND_4"'},{value:'"ONCONTENT_1"'},{value:'"ONCONTENT_2"'},{value:'"ONCONTENT_INVERSE_1"'},{value:'"ONCONTENT_INVERSE_5"'},{value:'"SECONDARY_3"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/PlaybackTime/index.tsx#PlaybackTime"]={docgenInfo:PlaybackTime.__docgenInfo,name:"PlaybackTime",path:"src/ui/PlaybackTime/index.tsx#PlaybackTime"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/PlaybackTime/stories/PlaybackTime.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"Basic",(function(){return Basic}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js");var react__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/react/index.js"),_index__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./src/ui/PlaybackTime/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/react/jsx-runtime.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i {\n const PERIOD = 10;\n const INIT_VALUE = 60000;// start from 1 min\n\n // PlaybackTime\n const [isCounting, setIsCounting] = useState(false);\n const [playbackTime, setPlaybackTime] = useState(INIT_VALUE);\n useEffect(() => {\n if (isCounting) {\n counter = setInterval(() => {\n setPlaybackTime((prev) => prev + 1000);// count up 1 sec\n }, PERIOD);\n } else {\n clearInterval(counter);\n }\n }, [isCounting]);\n\n return (\n \n {\n setIsCounting(!isCounting);\n }}\n />\n {\n setPlaybackTime(0);\n }}\n />\n
\n \n
\n \n )\n}"}},Basic.parameters),Basic.__docgenInfo={description:"",methods:[],displayName:"Basic"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/PlaybackTime/stories/PlaybackTime.stories.js"]={name:"Basic",docgenInfo:Basic.__docgenInfo,path:"src/ui/PlaybackTime/stories/PlaybackTime.stories.js"})},"./src/ui/ProgressBar/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/ProgressBar/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/ProgressBar/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return ProgressBarColorTypes}));__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),ProgressBarColorTypes=(__webpack_require__("./src/ui/ProgressBar/index.scss"),{PRIMARY:"progress-bar-color--primary",GRAY:"progress-bar-color--gray"}),ProgressBar=function ProgressBar(_ref){var _ref$className=_ref.className,className=void 0===_ref$className?"":_ref$className,_ref$disabled=_ref.disabled,disabled=void 0!==_ref$disabled&&_ref$disabled,maxSize=_ref.maxSize,_ref$currentSize=_ref.currentSize,currentSize=void 0===_ref$currentSize?0:_ref$currentSize,_ref$colorType=_ref.colorType,colorType=void 0===_ref$colorType?ProgressBarColorTypes.PRIMARY:_ref$colorType,width=Object(react__WEBPACK_IMPORTED_MODULE_1__.useMemo)((function(){return"".concat(currentSize/maxSize*100,"%")}),[currentSize,maxSize]);return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",{className:"sendbird-progress-bar ".concat(className," ").concat(colorType," ").concat(disabled?"progress-bar--disabled":"")},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",{className:"sendbird-progress-bar__fill",style:{width:width}}))};__webpack_exports__.b=ProgressBar;try{ProgressBar.displayName="ProgressBar",ProgressBar.__docgenInfo={description:"",displayName:"ProgressBar",props:{className:{defaultValue:{value:""},description:"",name:"className",required:!1,type:{name:"string"}},disabled:{defaultValue:{value:"false"},description:"",name:"disabled",required:!1,type:{name:"boolean"}},maxSize:{defaultValue:null,description:"",name:"maxSize",required:!0,type:{name:"number"}},currentSize:{defaultValue:{value:"0"},description:"",name:"currentSize",required:!1,type:{name:"number"}},colorType:{defaultValue:{value:"progress-bar-color--primary"},description:"",name:"colorType",required:!1,type:{name:"enum",value:[{value:'"progress-bar-color--primary"'},{value:'"progress-bar-color--gray"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ProgressBar/index.tsx#ProgressBar"]={docgenInfo:ProgressBar.__docgenInfo,name:"ProgressBar",path:"src/ui/ProgressBar/index.tsx#ProgressBar"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/ProgressBar/stories/ProgressBar.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"Basic",(function(){return Basic}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js");var react__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/react/index.js"),_index__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./src/ui/ProgressBar/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/react/jsx-runtime.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=3e3&&(setRunning(!1),clearInterval(interval))}),[currentSize]),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)("div",{style:{width:"100%",height:"100px",display:"flex",flexDirection:"column",gap:"10px",justifyContent:"center",alignItems:"center"},children:[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("button",{type:"button",onClick:function onClick(){setRunning(!0),setCurrentSize(0)},children:"Start"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_index__WEBPACK_IMPORTED_MODULE_12__.b,{maxSize:3e3,currentSize:currentSize})]})};Basic.displayName="Basic",Basic.parameters=Object.assign({storySource:{source:"() => {\n const maxSize = 3000;\n const frame = maxSize / 100;\n const [running, setRunning] = useState(false);\n const [currentSize, setCurrentSize] = useState(0);\n\n useEffect(() => {\n if (running) {\n interval = setInterval(() => {\n setCurrentSize((currentSize) => currentSize + frame);\n }, frame);\n } else {\n clearInterval(interval);\n }\n }, [running]);\n\n useEffect(() => {\n if (currentSize >= maxSize) {\n setRunning(false);\n clearInterval(interval);\n }\n }, [currentSize]);\n\n return (\n
\n \n \n
\n )\n}"}},Basic.parameters),Basic.__docgenInfo={description:"",methods:[],displayName:"Basic"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ProgressBar/stories/ProgressBar.stories.js"]={name:"Basic",docgenInfo:Basic.__docgenInfo,path:"src/ui/ProgressBar/stories/ProgressBar.stories.js"})},"./src/ui/QuoteMessage/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/QuoteMessage/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/QuoteMessage/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return QuoteMessage}));__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.split.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./src/ui/QuoteMessage/index.scss");var react__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_16__),_Icon__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./src/ui/Icon/index.tsx"),_Label__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./src/ui/Label/index.tsx"),_ImageRenderer__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./src/ui/ImageRenderer/index.tsx"),_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/lib/LocalizationContext.tsx"),_utils__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./src/utils/index.ts"),_utils__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/ui/QuoteMessage/utils.ts");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _defineProperty(obj,key,value){return(key=function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:String(i)}(key))in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&!isUnavailable&&react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div",{className:"sendbird-quote-message__replied-message__text-message"},react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(_Label__WEBPACK_IMPORTED_MODULE_18__.d,{className:"sendbird-quote-message__replied-message__text-message__word",type:_Label__WEBPACK_IMPORTED_MODULE_18__.c.BODY_2,color:_Label__WEBPACK_IMPORTED_MODULE_18__.a.ONBACKGROUND_1},null==parentMessage?void 0:parentMessage.message)),Object(_utils__WEBPACK_IMPORTED_MODULE_21__.W)(parentMessage)&&parentMessageUrl&&!isUnavailable&&react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div",{className:"sendbird-quote-message__replied-message__text-message"},react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(_Label__WEBPACK_IMPORTED_MODULE_18__.d,{className:"sendbird-quote-message__replied-message__text-message__word",type:_Label__WEBPACK_IMPORTED_MODULE_18__.c.BODY_2,color:_Label__WEBPACK_IMPORTED_MODULE_18__.a.ONBACKGROUND_1},stringSet.VOICE_MESSAGE)),(Object(_utils__WEBPACK_IMPORTED_MODULE_21__.S)(parentMessage)||Object(_utils__WEBPACK_IMPORTED_MODULE_21__.F)(parentMessage))&&parentMessageUrl&&!isUnavailable&&react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div",{className:"sendbird-quote-message__replied-message__thumbnail-message"},react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(_ImageRenderer__WEBPACK_IMPORTED_MODULE_19__.a,{className:"sendbird-quote-message__replied-message__thumbnail-message__image",url:parentMessageUrl,alt:parentMessageType,width:"144px",height:"108px",onLoad:function onLoad(){return setThumbnailLoaded(!0)},defaultComponent:react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div",{className:"sendbird-quote-message__replied-message__thumbnail-message__placeholder"},react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div",{className:"sendbird-quote-message__replied-message__thumbnail-message__placeholder__icon"},react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_17__.c,{type:Object(_utils__WEBPACK_IMPORTED_MODULE_21__.U)(parentMessageType)?_Icon__WEBPACK_IMPORTED_MODULE_17__.b.PLAY:_Icon__WEBPACK_IMPORTED_MODULE_17__.b.PHOTO,fillColor:_Icon__WEBPACK_IMPORTED_MODULE_17__.a.ON_BACKGROUND_2,width:"22px",height:"22px"})))}),Object(_utils__WEBPACK_IMPORTED_MODULE_21__.U)(parentMessageType)&&!((null==parentMessage||null===(_thumbnails=parentMessage.thumbnails)||void 0===_thumbnails?void 0:_thumbnails.length)>0)&&react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_16___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("video",{className:"sendbird-quote-message__replied-message__thumbnail-message__video"},react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("source",{src:parentMessageUrl,type:parentMessageType})),react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div",{className:"sendbird-quote-message__replied-message__thumbnail-message__cover"},react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div",{className:"sendbird-quote-message__replied-message__thumbnail-message__cover__icon"},react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_17__.c,{type:_Icon__WEBPACK_IMPORTED_MODULE_17__.b.PLAY,fillColor:_Icon__WEBPACK_IMPORTED_MODULE_17__.a.ON_BACKGROUND_2,width:"14px",height:"14px"})))),isThumbnailLoaded&&Object(_utils__WEBPACK_IMPORTED_MODULE_21__.A)(parentMessageType)&&react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div",{className:"sendbird-quote-message__replied-message__thumbnail-message__cover"},react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div",{className:"sendbird-quote-message__replied-message__thumbnail-message__cover__icon"},react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_17__.c,{type:_Icon__WEBPACK_IMPORTED_MODULE_17__.b.GIF,fillColor:_Icon__WEBPACK_IMPORTED_MODULE_17__.a.THUMBNAIL_ICON,width:"14px",height:"14px"})))),Object(_utils__WEBPACK_IMPORTED_MODULE_21__.t)(parentMessage)===_utils__WEBPACK_IMPORTED_MODULE_21__.b.FILE&&parentMessageUrl&&!isUnavailable&&react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div",{className:"sendbird-quote-message__replied-message__file-message"},react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_17__.c,{className:"sendbird-quote-message__replied-message__file-message__type-icon",type:_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},uikitFileTypes.IMAGE,_Icon__WEBPACK_IMPORTED_MODULE_17__.b.PHOTO),uikitFileTypes.VIDEO,_Icon__WEBPACK_IMPORTED_MODULE_17__.b.PLAY),uikitFileTypes.AUDIO,_Icon__WEBPACK_IMPORTED_MODULE_17__.b.FILE_AUDIO),uikitFileTypes.GIF,_Icon__WEBPACK_IMPORTED_MODULE_17__.b.GIF),uikitFileTypes.OTHERS,_Icon__WEBPACK_IMPORTED_MODULE_17__.b.FILE_DOCUMENT)[Object(_utils__WEBPACK_IMPORTED_MODULE_21__.r)(parentMessageType)],fillColor:_Icon__WEBPACK_IMPORTED_MODULE_17__.a.ON_BACKGROUND_3,width:"16px",height:"16px"}),react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(_Label__WEBPACK_IMPORTED_MODULE_18__.d,{className:"sendbird-quote-message__replied-message__file-message__file-name",type:_Label__WEBPACK_IMPORTED_MODULE_18__.c.BODY_2,color:_Label__WEBPACK_IMPORTED_MODULE_18__.a.ONBACKGROUND_3},Object(_utils__WEBPACK_IMPORTED_MODULE_21__.ab)(splitFileName[splitFileName.length-1])))))}try{QuoteMessage.displayName="QuoteMessage",QuoteMessage.__docgenInfo={description:"",displayName:"QuoteMessage",props:{className:{defaultValue:{value:""},description:"",name:"className",required:!1,type:{name:"string | string[]"}},message:{defaultValue:null,description:"",name:"message",required:!1,type:{name:"SendableMessageType"}},userId:{defaultValue:{value:""},description:"",name:"userId",required:!1,type:{name:"string"}},isByMe:{defaultValue:{value:"false"},description:"",name:"isByMe",required:!1,type:{name:"boolean"}},isUnavailable:{defaultValue:{value:"false"},description:"",name:"isUnavailable",required:!1,type:{name:"boolean"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"() => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/QuoteMessage/index.tsx#QuoteMessage"]={docgenInfo:QuoteMessage.__docgenInfo,name:"QuoteMessage",path:"src/ui/QuoteMessage/index.tsx#QuoteMessage"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/QuoteMessage/stories/QuoteMessage.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return WithControl})),__webpack_require__.d(__webpack_exports__,"withText",(function(){return withText}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _index_tsx__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/QuoteMessage/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/QuoteMessage",component:_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,parameters:{docs:{description:{component:'\n `import QuoteMessage from "@sendbird/uikit-react/ui/QuoteMessage";`\n'}}}};var WithControl=function WithControl(arg){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,Object.assign({message:{sender:{nickname:"Simon"},parentMessage:{messageType:"user",message:"Hello nice to meet you. Katherine and I are baking cupcakes this Sunday if anyone else wants to join?atherine and I are baking cupcakes this Sunday if anyone else can join. Welcome.",url:"",sender:{nickname:"Gabie"}}}},arg))};WithControl.displayName="WithControl";var withText=function withText(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{message:{sender:{nickname:"Simon"},parentMessage:{messageType:"user",message:"Hello nice to meet you. Katherine and I are baking cupcakes this Sunday if anyone else wants to join?atherine and I are baking cupcakes this Sunday if anyone else can join. Welcome.",url:"",sender:{nickname:"Gabie"}}},isByMe:!0}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("br",{}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{message:{sender:{nickname:"Simon00000000000000000000"},parentMessage:{messageType:"user",message:"Hello nice to meet you",url:"",sender:{nickname:"Gabie99999999999999999999"}}},isByMe:!0}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("br",{}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{message:{sender:{nickname:"Simon"},parentMessage:{messageType:"user",message:"Hello nice to meet you",url:"",sender:{nickname:"Gabie"}}},isByMe:!1}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("br",{}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{message:{sender:{nickname:"Simon00000000000000000000"},parentMessage:{messageType:"user",message:"Hello nice to meet you",url:"",sender:{nickname:"Gabie99999999999999999999"}}},isByMe:!1}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("br",{}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{message:{sender:{nickname:"Simon00000000000000000000"},parentMessage:{message:"",messageType:"file",type:"image/jpg",url:"https://sendbird-upload.s3.amazonaws.com/2D7B4CDB-932F-4082-9B09-A1153792DC8D/upload/n/b4095c0a8c2547d19cfe0ddb10b38a30.jpg",sender:{nickname:"Gabie0000000000000000000"}}},isByMe:!0}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("br",{}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{message:{sender:{nickname:"Simon"},parentMessage:{message:"",messageType:"file",type:"image/png",url:"https://static.sendbird.com/sample/user_sdk/user_sdk_23.png",sender:{nickname:"Gabie"}}},isByMe:!1}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("br",{}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{message:{sender:{nickname:"Simon00000000000000000000"},parentMessage:{message:"",messageType:"file",type:"image/fdfd",url:"https://sendbird-upload.s3.amazonaws.com/2D7B4CDB-932F-4082-9B09-A1153792DC8D/upload/n/b4095c0a8c2547d19cfe0ddb10b38a30.jpg",sender:{nickname:"Gabie99999999999999999999"}}},isByMe:!0}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("br",{}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{message:{sender:{nickname:"Simon"},parentMessage:{message:"",messageType:"file",type:"video/djfldfs",url:"https://static.sendbird.com/sample/user_sdk/user_sdk_23.png",sender:{nickname:"Gabie"}}},isByMe:!1})]})};withText.displayName="withText",WithControl.parameters=Object.assign({storySource:{source:"(arg) => (\n \n)"}},WithControl.parameters),withText.parameters=Object.assign({storySource:{source:"() => (\n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n \n
\n)"}},withText.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/QuoteMessage/stories/QuoteMessage.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/QuoteMessage/stories/QuoteMessage.stories.js"}),withText.__docgenInfo={description:"",methods:[],displayName:"withText"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/QuoteMessage/stories/QuoteMessage.stories.js"]={name:"withText",docgenInfo:withText.__docgenInfo,path:"src/ui/QuoteMessage/stories/QuoteMessage.stories.js"})},"./src/ui/QuoteMessage/utils.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"c",(function(){return getMessageFirstFileType})),__webpack_require__.d(__webpack_exports__,"a",(function(){return getMessageFirstFileName})),__webpack_require__.d(__webpack_exports__,"d",(function(){return getMessageFirstFileUrl})),__webpack_require__.d(__webpack_exports__,"b",(function(){return getMessageFirstFileThumbnailUrl}));__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var _utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/utils/index.ts"),ts_pattern__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/ts-pattern/dist/index.js");function getMessageFirstFileType(message){return Object(ts_pattern__WEBPACK_IMPORTED_MODULE_2__.b)(message).when(_utils__WEBPACK_IMPORTED_MODULE_1__.z,(function(){var _type;return null!==(_type=null==message?void 0:message.type)&&void 0!==_type?_type:""})).when(_utils__WEBPACK_IMPORTED_MODULE_1__.F,(function(){var _getFirstFileInfo$mim,_getFirstFileInfo;return null!==(_getFirstFileInfo$mim=null===(_getFirstFileInfo=getFirstFileInfo(message))||void 0===_getFirstFileInfo?void 0:_getFirstFileInfo.mimeType)&&void 0!==_getFirstFileInfo$mim?_getFirstFileInfo$mim:""})).otherwise((function(){return""}))}function getFirstFileInfo(message){var fileInfoList=message.fileInfoList;return fileInfoList.length>0?fileInfoList[0]:null}function getMessageFirstFileName(message){return Object(ts_pattern__WEBPACK_IMPORTED_MODULE_2__.b)(message).when(_utils__WEBPACK_IMPORTED_MODULE_1__.z,(function(){var _name;return null!==(_name=null==message?void 0:message.name)&&void 0!==_name?_name:""})).when(_utils__WEBPACK_IMPORTED_MODULE_1__.F,(function(){var _getFirstFileInfo$fil,_getFirstFileInfo2;return null!==(_getFirstFileInfo$fil=null===(_getFirstFileInfo2=getFirstFileInfo(message))||void 0===_getFirstFileInfo2?void 0:_getFirstFileInfo2.fileName)&&void 0!==_getFirstFileInfo$fil?_getFirstFileInfo$fil:""})).otherwise((function(){return""}))}function getMessageFirstFileUrl(message){return Object(ts_pattern__WEBPACK_IMPORTED_MODULE_2__.b)(message).when(_utils__WEBPACK_IMPORTED_MODULE_1__.z,(function(){var _url;return null!==(_url=null==message?void 0:message.url)&&void 0!==_url?_url:""})).when(_utils__WEBPACK_IMPORTED_MODULE_1__.F,(function(){var _getFirstFileInfo$url,_getFirstFileInfo3;return null!==(_getFirstFileInfo$url=null===(_getFirstFileInfo3=getFirstFileInfo(message))||void 0===_getFirstFileInfo3?void 0:_getFirstFileInfo3.url)&&void 0!==_getFirstFileInfo$url?_getFirstFileInfo$url:""})).otherwise((function(){return""}))}function getMessageFirstFileThumbnailUrl(message){var thumbnails=function getMessageFirstFileThumbnails(message){return Object(ts_pattern__WEBPACK_IMPORTED_MODULE_2__.b)(message).when(_utils__WEBPACK_IMPORTED_MODULE_1__.z,(function(){return message.thumbnails})).when(_utils__WEBPACK_IMPORTED_MODULE_1__.F,(function(){var _getFirstFileInfo$thu,_getFirstFileInfo4;return null!==(_getFirstFileInfo$thu=null===(_getFirstFileInfo4=getFirstFileInfo(message))||void 0===_getFirstFileInfo4?void 0:_getFirstFileInfo4.thumbnails)&&void 0!==_getFirstFileInfo$thu?_getFirstFileInfo$thu:[]})).otherwise((function(){return[]}))}(message);return thumbnails&&thumbnails.length>0?thumbnails[0].url:""}},"./src/ui/QuoteMessageInput/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/QuoteMessageInput/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/QuoteMessageInput/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return QuoteMessageInput_QuoteMessageInput}));__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./src/ui/QuoteMessageInput/index.scss");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),utils=__webpack_require__("./src/utils/index.ts"),Icon=__webpack_require__("./src/ui/Icon/index.tsx"),Label=__webpack_require__("./src/ui/Label/index.tsx"),LocalizationContext=__webpack_require__("./src/lib/LocalizationContext.tsx"),ImageRenderer=__webpack_require__("./src/ui/ImageRenderer/index.tsx"),QuoteMessage_utils=__webpack_require__("./src/ui/QuoteMessage/utils.ts"),componentClassname="sendbird-quote_message_input__avatar";function QuoteMessageThumbnail(_ref){var message=_ref.message;if(!Object(utils.z)(message)&&!Object(utils.F)(message)||Object(utils.W)(message))return null;var _message$isFileMessag,_message$isMultipleFi,thumbnailUrl=Object(QuoteMessage_utils.b)(message);thumbnailUrl||(null!==(_message$isFileMessag=message.isFileMessage)&&void 0!==_message$isFileMessag&&_message$isFileMessag.call(message)&&(Object(utils.E)(message)||Object(utils.V)(message))?thumbnailUrl=Object(QuoteMessage_utils.d)(message):null!==(_message$isMultipleFi=message.isMultipleFilesMessage)&&void 0!==_message$isMultipleFi&&_message$isMultipleFi.call(message)&&message.fileInfoList.length>0&&Object(utils.D)(message.fileInfoList[0])&&(thumbnailUrl=message.fileInfoList[0].url));return Object(utils.V)(message)&&thumbnailUrl?react_default.a.createElement("div",{className:componentClassname},react_default.a.createElement("video",{style:{width:"44px",height:"44px"},src:thumbnailUrl})):(Object(utils.S)(message)||Object(utils.F)(message))&&thumbnailUrl?react_default.a.createElement(ImageRenderer.a,{className:componentClassname,url:thumbnailUrl,alt:Object(QuoteMessage_utils.c)(message),width:"44px",height:"44px",fixedSize:!0}):Object(utils.w)(message)?react_default.a.createElement("div",{className:componentClassname},react_default.a.createElement(Icon.c,{type:Icon.b.FILE_AUDIO,fillColor:Icon.a.ON_BACKGROUND_2,width:"24px",height:"24px"})):react_default.a.createElement("div",{className:componentClassname},react_default.a.createElement(Icon.c,{type:Icon.b.FILE_DOCUMENT,fillColor:Icon.a.ON_BACKGROUND_2,width:"24px",height:"24px"}))}try{QuoteMessageThumbnail.displayName="QuoteMessageThumbnail",QuoteMessageThumbnail.__docgenInfo={description:"",displayName:"QuoteMessageThumbnail",props:{message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"FileMessage | MultipleFilesMessage"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/QuoteMessageInput/QuoteMessageThumbnail.tsx#QuoteMessageThumbnail"]={docgenInfo:QuoteMessageThumbnail.__docgenInfo,name:"QuoteMessageThumbnail",path:"src/ui/QuoteMessageInput/QuoteMessageThumbnail.tsx#QuoteMessageThumbnail"})}catch(__react_docgen_typescript_loader_error){}function QuoteMessageInput_QuoteMessageInput(_ref){var className=_ref.className,replyingMessage=_ref.replyingMessage,onClose=_ref.onClose,stringSet=Object(react.useContext)(LocalizationContext.a).stringSet,fileMessage=replyingMessage,sender=null==replyingMessage?void 0:replyingMessage.sender,displayFileIcon=(Object(utils.z)(replyingMessage)||Object(utils.F)(replyingMessage))&&!Object(utils.W)(replyingMessage);return react_default.a.createElement("div",{className:Object(utils.i)(["sendbird-quote_message_input",className])},displayFileIcon&&react_default.a.createElement(QuoteMessageThumbnail,{message:fileMessage}),react_default.a.createElement("div",{className:"sendbird-quote_message_input__body",style:{width:"calc(100% - ".concat(displayFileIcon?"164px":"120px",")"),left:displayFileIcon?"92px":"40px"}},react_default.a.createElement(Label.d,{className:"sendbird-quote_message_input__body__sender-name",type:Label.c.CAPTION_1,color:Label.a.ONBACKGROUND_1},"".concat(stringSet.QUOTE_MESSAGE_INPUT__REPLY_TO," ").concat(sender&&sender.nickname?sender.nickname:stringSet.NO_NAME)),react_default.a.createElement(Label.d,{className:"sendbird-quote_message_input__body__message-content",type:Label.c.BODY_2,color:Label.a.ONBACKGROUND_3},Object(utils.E)(fileMessage)&&!Object(utils.B)(fileMessage)&&stringSet.QUOTE_MESSAGE_INPUT__FILE_TYPE_IMAGE,Object(utils.V)(fileMessage)&&stringSet.QUOTE_MESSAGE_INPUT__FILE_TYPE__VIDEO,Object(utils.B)(fileMessage)&&stringSet.QUOTE_MESSAGE_INPUT__FILE_TYPE_GIF,Object(utils.T)(replyingMessage)&&replyingMessage.message,Object(utils.t)(replyingMessage)===utils.b.FILE&&Object(QuoteMessage_utils.a)(fileMessage),Object(utils.F)(replyingMessage)&&"".concat(fileMessage.fileInfoList.length," Photos"),Object(utils.W)(replyingMessage)&&stringSet.VOICE_MESSAGE)),react_default.a.createElement(Icon.c,{className:"sendbird-quote_message_input__close-button",type:Icon.b.CLOSE,fillColor:Icon.a.ON_BACKGROUND_2,width:"24px",height:"24px",onClick:function onClick(){return onClose(replyingMessage)}}))}try{QuoteMessageInput_QuoteMessageInput.displayName="QuoteMessageInput",QuoteMessageInput_QuoteMessageInput.__docgenInfo={description:"",displayName:"QuoteMessageInput",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string | string[]"}},replyingMessage:{defaultValue:null,description:"",name:"replyingMessage",required:!0,type:{name:"SendableMessageType"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!1,type:{name:"(message: SendableMessageType) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/QuoteMessageInput/index.tsx#QuoteMessageInput"]={docgenInfo:QuoteMessageInput_QuoteMessageInput.__docgenInfo,name:"QuoteMessageInput",path:"src/ui/QuoteMessageInput/index.tsx#QuoteMessageInput"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/QuoteMessageInput/stories/QuoteMessageInput.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return QuoteMessageInput_stories_WithControl})),__webpack_require__.d(__webpack_exports__,"withText",(function(){return QuoteMessageInput_stories_withText}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var QuoteMessageInput=__webpack_require__("./src/ui/QuoteMessageInput/index.tsx"),dummyFileMessageImage={isFileMessage:function isFileMessage(){return!0},messageId:15814617,messageType:"file",channelUrl:"sendbird_group_channel_11985956_fa67b79d39e6aa5abbeda4413cde24ce1685eedb",data:"",customType:"",createdAt:1583104552977,updatedAt:0,channelType:"group",metaArrays:[],reactions:[],mentionType:"users",mentionedUsers:[],url:"https://static.sendbird.com/sample/user_sdk/user_sdk_16.png",name:"Hello i am PDF",size:0,type:"image/pdf",thumbnails:[],sender:{nickname:"ME",profileUrl:"https://static.sendbird.com/sample/profiles/profile_19_512px.png",userId:"6e3053ba-c47b-47dc-bb9a-5814091f9553",connectionStatus:"nonavailable",lastSeenAt:0,isActive:!0,friendDiscoveryKey:null,friendName:null,_preferredLanguages:null,isBlockedByMe:!1},reqId:"1583104547956",requireAuth:!1,requestState:"succeeded",requestedMentionUserIds:[],errorCode:0},dummyFileMessageVideo={isFileMessage:function isFileMessage(){return!0},messageId:15814617,messageType:"file",channelUrl:"sendbird_group_channel_11985956_fa67b79d39e6aa5abbeda4413cde24ce1685eedb",data:"",customType:"",createdAt:1583104552977,updatedAt:0,channelType:"group",metaArrays:[],reactions:[],mentionType:"users",mentionedUsers:[],url:"https://sendbird-upload.s3.amazonaws.com/2D7B4CDB-932F-4082-9B09-A1153792DC8D/upload/n/fd4e65eb495f436ab687ba7c5683c922.mp4",name:"https://sendbird-upload.s3.amazonaws.com/2D7B4CDB-932F-4082-9B09-A1153792DC8D/upload/n/fd4e65eb495f436ab687ba7c5683c922.mp4",size:0,type:"video/mp4",thumbnails:[{url:"https://static.sendbird.com/sample/user_sdk/user_sdk_16.png",real_height:20,real_width:20,width:240,height:240},{url:"https://static.sendbird.com/sample/user_sdk/user_sdk_16.png",real_height:20,real_width:20,width:320,height:320}],sender:{nickname:"ME",profileUrl:"https://static.sendbird.com/sample/profiles/profile_19_512px.png",userId:"6e3053ba-c47b-47dc-bb9a-5814091f9553",connectionStatus:"nonavailable",lastSeenAt:0,isActive:!0,friendDiscoveryKey:null,friendName:null,_preferredLanguages:null,isBlockedByMe:!1},reqId:"1583104547956",requireAuth:!1,requestState:"succeeded",requestedMentionUserIds:[],errorCode:0},dummyFileMessageAudio={isFileMessage:function isFileMessage(){return!0},messageId:15814617,messageType:"file",channelUrl:"sendbird_group_channel_11985956_fa67b79d39e6aa5abbeda4413cde24ce1685eedb",data:"",customType:"",createdAt:1583104552977,updatedAt:0,channelType:"group",metaArrays:[],reactions:[],mentionType:"users",mentionedUsers:[],url:"72b35fef-acda-4e32-123323456789973567890dfvgbhnjmkiytdxbna0e4-37e1226b0615.mp3",name:"72b35fef-acda-4e32-123323456789973567890dfvgbhnjmkiytdxbna0e4-37e1226b0615.mp3",size:0,type:"audio/midi",thumbnails:[],sender:{nickname:"ME",profileUrl:"https://static.sendbird.com/sample/profiles/profile_19_512px.png",userId:"6e3053ba-c47b-47dc-bb9a-5814091f9553",connectionStatus:"nonavailable",lastSeenAt:0,isActive:!0,friendDiscoveryKey:null,friendName:null,_preferredLanguages:null,isBlockedByMe:!1},reqId:"1583104547956",requireAuth:!1,requestState:"succeeded",requestedMentionUserIds:[],errorCode:0},dummyFileMessageGif={isFileMessage:function isFileMessage(){return!0},messageId:15814617,messageType:"file",channelUrl:"sendbird_group_channel_11985956_fa67b79d39e6aa5abbeda4413cde24ce1685eedb",data:"",customType:"",createdAt:1583104552977,updatedAt:0,channelType:"group",metaArrays:[],reactions:[],mentionType:"users",mentionedUsers:[],url:"https://static.sendbird.com/sample/user_sdk/user_sdk_16.png",name:"GIF GIF GIF",size:0,type:"image/gif",thumbnails:[],sender:{nickname:"ME",profileUrl:"https://static.sendbird.com/sample/profiles/profile_19_512px.png",userId:"6e3053ba-c47b-47dc-bb9a-5814091f9553",connectionStatus:"nonavailable",lastSeenAt:0,isActive:!0,friendDiscoveryKey:null,friendName:null,_preferredLanguages:null,isBlockedByMe:!1},reqId:"1583104547956",requireAuth:!1,requestState:"succeeded",requestedMentionUserIds:[],errorCode:0},dummyFileMessageWithThumbnail={isFileMessage:function isFileMessage(){return!0},messageId:751865890,messageType:"file",channelUrl:"sendbird_group_channel_19238732_8e44958ac5c2fb88203146f42a18a9a4f4472dde",data:"",customType:"",createdAt:1583104853295,updatedAt:0,channelType:"group",metaArrays:[],reactions:[],mentionType:"users",mentionedUsers:[],url:"https://static.sendbird.com/sample/user_sdk/user_sdk_16.png",name:"ic-close.svg",size:404,type:"image/svg+xml",thumbnails:[{url:"https://static.sendbird.com/sample/user_sdk/user_sdk_16.png",real_height:20,real_width:20,width:240,height:240},{url:"https://static.sendbird.com/sample/user_sdk/user_sdk_16.png",real_height:20,real_width:20,width:320,height:320}],sender:{nickname:"hoon1000",profileUrl:"https://static.sendbird.com/sample/user_sdk/user_sdk_16.png",userId:"hoon1000",connectionStatus:"nonavailable",lastSeenAt:0,metaData:{},isActive:!0,friendDiscoveryKey:null,friendName:null,_preferredLanguages:null,isBlockedByMe:!1},reqId:"1583104837675",requireAuth:!0,requestState:"succeeded",requestedMentionUserIds:[],errorCode:0},jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),QuoteMessageInput_stories_WithControl=(__webpack_exports__.default={title:"@sendbird/uikit-react/ui/QuoteMessageInput",component:QuoteMessageInput.a,parameters:{docs:{description:{component:'\n `import QuoteMessageInput from "@sendbird/uikit-react/ui/QuoteMessageInput";`\n'}}}},function WithControl(arg){return Object(jsx_runtime.jsx)(QuoteMessageInput.a,Object.assign({replyingMessage:dummyFileMessageAudio},arg))});QuoteMessageInput_stories_WithControl.displayName="WithControl";var QuoteMessageInput_stories_withText=function withText(){return[Object(jsx_runtime.jsx)(QuoteMessageInput.a,{replyingMessage:dummyFileMessageAudio}),Object(jsx_runtime.jsx)(QuoteMessageInput.a,{replyingMessage:dummyFileMessageImage}),Object(jsx_runtime.jsx)(QuoteMessageInput.a,{replyingMessage:dummyFileMessageVideo}),Object(jsx_runtime.jsx)(QuoteMessageInput.a,{replyingMessage:dummyFileMessageGif}),Object(jsx_runtime.jsx)(QuoteMessageInput.a,{replyingMessage:dummyFileMessageWithThumbnail})]};QuoteMessageInput_stories_WithControl.parameters=Object.assign({storySource:{source:"(arg) => (\n \n)"}},QuoteMessageInput_stories_WithControl.parameters),QuoteMessageInput_stories_withText.parameters=Object.assign({storySource:{source:"() => [\n ,\n ,\n ,\n ,\n ,\n]"}},QuoteMessageInput_stories_withText.parameters),QuoteMessageInput_stories_WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/QuoteMessageInput/stories/QuoteMessageInput.stories.js"]={name:"WithControl",docgenInfo:QuoteMessageInput_stories_WithControl.__docgenInfo,path:"src/ui/QuoteMessageInput/stories/QuoteMessageInput.stories.js"})},"./src/ui/ReactionBadge/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/ReactionBadge/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/ReactionBadge/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var react__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__),_Label__WEBPACK_IMPORTED_MODULE_14__=(__webpack_require__("./src/ui/ReactionBadge/index.scss"),__webpack_require__("./src/ui/Label/index.tsx"));function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i | MouseEvent | TouchEvent) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ReactionBadge/index.tsx#ReactionBadge"]={docgenInfo:ReactionBadge.__docgenInfo,name:"ReactionBadge",path:"src/ui/ReactionBadge/index.tsx#ReactionBadge"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/ReactionBadge/stories/ReactionBadge.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return WithControl})),__webpack_require__.d(__webpack_exports__,"reactionBadge",(function(){return reactionBadge}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _index__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/ReactionBadge/index.tsx"),_Icon__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/ui/Icon/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/ReactionBadge",component:_index__WEBPACK_IMPORTED_MODULE_2__.a,parameters:{docs:{description:{component:'\n `import ReactionBadge from "@sendbird/uikit-react/ui/ReactionBadge";`\n'}}}};var WithControl=function WithControl(arg){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,Object.assign({},arg,{children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_Icon__WEBPACK_IMPORTED_MODULE_3__.c,{type:_Icon__WEBPACK_IMPORTED_MODULE_3__.b.CREATE,width:"20px",height:"20px"})}))};WithControl.displayName="WithControl";var reactionBadge=function reactionBadge(){return[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("h1",{children:"OnlyImage"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_Icon__WEBPACK_IMPORTED_MODULE_3__.c,{type:_Icon__WEBPACK_IMPORTED_MODULE_3__.b.CREATE,width:"20px",height:"20px"})}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("h1",{children:"Normal"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{count:"1",children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_Icon__WEBPACK_IMPORTED_MODULE_3__.c,{type:_Icon__WEBPACK_IMPORTED_MODULE_3__.b.CREATE,width:"20px",height:"20px"})}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("h1",{children:"Selected"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{count:"99+",selected:!0,children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_Icon__WEBPACK_IMPORTED_MODULE_3__.c,{type:_Icon__WEBPACK_IMPORTED_MODULE_3__.b.CREATE,width:"20px",height:"20px"})})]};WithControl.parameters=Object.assign({storySource:{source:'(arg) => (\n \n \n \n)'}},WithControl.parameters),reactionBadge.parameters=Object.assign({storySource:{source:'() => [\n

OnlyImage

,\n \n \n ,\n

Normal

,\n \n \n ,\n

Selected

,\n \n \n ,\n]'}},reactionBadge.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ReactionBadge/stories/ReactionBadge.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/ReactionBadge/stories/ReactionBadge.stories.js"})},"./src/ui/ReactionButton/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/ReactionButton/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/ReactionButton/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var react__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_13__),_hooks_useLongPress__WEBPACK_IMPORTED_MODULE_15__=(__webpack_require__("./src/ui/ReactionButton/index.scss"),__webpack_require__("./src/hooks/useLongPress.tsx")),_utils_utils__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./src/utils/utils.ts");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i | MouseEvent | TouchEvent) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ReactionButton/index.tsx#ReactionButton"]={docgenInfo:ReactionButton.__docgenInfo,name:"ReactionButton",path:"src/ui/ReactionButton/index.tsx#ReactionButton"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/ReactionButton/stories/ReactionButton.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return WithControl})),__webpack_require__.d(__webpack_exports__,"reactionButton",(function(){return reactionButton}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _index__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/ReactionButton/index.tsx"),_Icon__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/ui/Icon/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/ReactionButton",component:_index__WEBPACK_IMPORTED_MODULE_2__.a,parameters:{docs:{description:{component:'\n `import ReactionButton from "@sendbird/uikit-react/ui/ReactionButton";`\n'}}}};var WithControl=function WithControl(arg){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,Object.assign({},arg,{children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_Icon__WEBPACK_IMPORTED_MODULE_3__.c,{type:_Icon__WEBPACK_IMPORTED_MODULE_3__.b.ADD,width:"28px",height:"28px"})}))};WithControl.displayName="WithControl";var reactionButton=function reactionButton(){return[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("h2",{children:"normal"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{width:"36px",height:"36px",onClick:function onClick(){console.log("click reaction button")},children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_Icon__WEBPACK_IMPORTED_MODULE_3__.c,{type:_Icon__WEBPACK_IMPORTED_MODULE_3__.b.ADD,width:"28px",height:"28px"})}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("h2",{children:"selected"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{width:"36px",height:"36px",onClick:function onClick(){console.log("click reaction button")},selected:!0,children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_Icon__WEBPACK_IMPORTED_MODULE_3__.c,{type:_Icon__WEBPACK_IMPORTED_MODULE_3__.b.ADD,width:"28px",height:"28px"})})]};WithControl.parameters=Object.assign({storySource:{source:'(arg) => (\n \n \n \n)'}},WithControl.parameters),reactionButton.parameters=Object.assign({storySource:{source:'() => [\n

normal

,\n { console.log(\'click reaction button\') }}>\n \n ,\n

selected

,\n { console.log(\'click reaction button\') }} selected>\n \n ,\n]'}},reactionButton.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ReactionButton/stories/ReactionButton.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/ReactionButton/stories/ReactionButton.stories.js"})},"./src/ui/SortByRow/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/SortByRow/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/SortByRow/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return SortByRow}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var react__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__),_utils_uuid__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./src/utils/uuid.ts");__webpack_require__("./src/ui/SortByRow/index.scss");function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);imaxItemCount){for(var result=[],i=0;i (\n \n {\n array.map(() => (\n \n ))\n }\n \n)'}},WithControl.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/SortByRow/stories/SortByRow.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/SortByRow/stories/SortByRow.stories.js"})},"./src/ui/TemplateMessageItemBody/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/TemplateMessageItemBody/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/TextButton/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/TextButton/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/TextButton/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var react__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__),_utils_color__WEBPACK_IMPORTED_MODULE_14__=(__webpack_require__("./src/ui/TextButton/index.scss"),__webpack_require__("./src/utils/color.ts"));function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i { /* noop */ }"},description:"",name:"onClick",required:!1,type:{name:"(e: KeyboardEvent | MouseEvent) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/TextButton/index.tsx#TextButton"]={docgenInfo:TextButton.__docgenInfo,name:"TextButton",path:"src/ui/TextButton/index.tsx#TextButton"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/TextButton/stories/TextButton.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return WithControl})),__webpack_require__.d(__webpack_exports__,"labelTextButton",(function(){return labelTextButton}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _index__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/TextButton/index.tsx"),_Label__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/ui/Label/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/TextButton",component:_index__WEBPACK_IMPORTED_MODULE_2__.a,parameters:{docs:{description:{component:'\n `import TextButton from "@sendbird/uikit-react/ui/TextButton";`\n'}}}};var WithControl=function WithControl(arg){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,Object.assign({},arg,{children:"Textbutton"}))};WithControl.displayName="WithControl";var labelTextButton=function labelTextButton(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_Label__WEBPACK_IMPORTED_MODULE_3__.d,{type:_Label__WEBPACK_IMPORTED_MODULE_3__.c.SUBTITLE_1,color:_Label__WEBPACK_IMPORTED_MODULE_3__.a.ONBACKGROUND_1,children:"Textbutton"})})};labelTextButton.displayName="labelTextButton",WithControl.parameters=Object.assign({storySource:{source:"(arg) => Textbutton"}},WithControl.parameters),labelTextButton.parameters=Object.assign({storySource:{source:"() => (\n \n \n \n)"}},labelTextButton.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/TextButton/stories/TextButton.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/TextButton/stories/TextButton.stories.js"}),labelTextButton.__docgenInfo={description:"",methods:[],displayName:"labelTextButton"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/TextButton/stories/TextButton.stories.js"]={name:"labelTextButton",docgenInfo:labelTextButton.__docgenInfo,path:"src/ui/TextButton/stories/TextButton.stories.js"})},"./src/ui/TextMessageItemBody/consts.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return TEXT_MESSAGE_BODY_CLASSNAME}));var TEXT_MESSAGE_BODY_CLASSNAME="sendbird-text-message-item-body"},"./src/ui/TextMessageItemBody/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/TextMessageItemBody/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/TextMessageItemBody/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return TextMessageItemBody}));__webpack_require__("./src/ui/TextMessageItemBody/index.scss");var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_Label__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/Label/index.tsx"),_utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/utils/index.ts"),_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/lib/LocalizationContext.tsx"),_modules_Message_utils_tokens_tokenize__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/modules/Message/utils/tokens/tokenize.ts"),_modules_Message_components_TextFragment__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/modules/Message/components/TextFragment/index.tsx"),_consts__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/ui/TextMessageItemBody/consts.ts");function TextMessageItemBody(_ref){var _message$mentionedMes,_message$mentionedUse,_message$reactions,_ref$className=_ref.className,className=void 0===_ref$className?"":_ref$className,message=_ref.message,_ref$isByMe=_ref.isByMe,isByMe=void 0!==_ref$isByMe&&_ref$isByMe,_ref$mouseHover=_ref.mouseHover,mouseHover=void 0!==_ref$mouseHover&&_ref$mouseHover,_ref$isMentionEnabled=_ref.isMentionEnabled,isMentionEnabled=void 0!==_ref$isMentionEnabled&&_ref$isMentionEnabled,_ref$isReactionEnable=_ref.isReactionEnabled,isReactionEnabled=void 0!==_ref$isReactionEnable&&_ref$isReactionEnable,stringSet=Object(react__WEBPACK_IMPORTED_MODULE_1__.useContext)(_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_4__.a).stringSet,isMessageMentioned=isMentionEnabled&&(null==message||null===(_message$mentionedMes=message.mentionedMessageTemplate)||void 0===_message$mentionedMes?void 0:_message$mentionedMes.length)>0&&(null==message||null===(_message$mentionedUse=message.mentionedUsers)||void 0===_message$mentionedUse?void 0:_message$mentionedUse.length)>0,tokens=Object(react__WEBPACK_IMPORTED_MODULE_1__.useMemo)((function(){return isMessageMentioned?Object(_modules_Message_utils_tokens_tokenize__WEBPACK_IMPORTED_MODULE_5__.b)({mentionedUsers:null==message?void 0:message.mentionedUsers,messageText:null==message?void 0:message.mentionedMessageTemplate}):Object(_modules_Message_utils_tokens_tokenize__WEBPACK_IMPORTED_MODULE_5__.b)({messageText:null==message?void 0:message.message})}),[null==message?void 0:message.updatedAt,null==message?void 0:message.message]);return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Label__WEBPACK_IMPORTED_MODULE_2__.d,{type:_Label__WEBPACK_IMPORTED_MODULE_2__.c.BODY_1,color:isByMe?_Label__WEBPACK_IMPORTED_MODULE_2__.a.ONCONTENT_1:_Label__WEBPACK_IMPORTED_MODULE_2__.a.ONBACKGROUND_1},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",{className:Object(_utils__WEBPACK_IMPORTED_MODULE_3__.i)([className,_consts__WEBPACK_IMPORTED_MODULE_7__.a,isByMe?"outgoing":"incoming",mouseHover?"mouse-hover":"",isReactionEnabled&&(null==message||null===(_message$reactions=message.reactions)||void 0===_message$reactions?void 0:_message$reactions.length)>0?"reactions":""])},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_modules_Message_components_TextFragment__WEBPACK_IMPORTED_MODULE_6__.a,{tokens:tokens}),Object(_utils__WEBPACK_IMPORTED_MODULE_3__.x)(message)&&react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Label__WEBPACK_IMPORTED_MODULE_2__.d,{className:"sendbird-text-message-item-body__message edited",type:_Label__WEBPACK_IMPORTED_MODULE_2__.c.BODY_1,color:isByMe?_Label__WEBPACK_IMPORTED_MODULE_2__.a.ONCONTENT_2:_Label__WEBPACK_IMPORTED_MODULE_2__.a.ONBACKGROUND_2}," ".concat(stringSet.MESSAGE_EDITED," "))))}try{TextMessageItemBody.displayName="TextMessageItemBody",TextMessageItemBody.__docgenInfo={description:"",displayName:"TextMessageItemBody",props:{className:{defaultValue:{value:""},description:"",name:"className",required:!1,type:{name:"string | string[]"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"UserMessage"}},isByMe:{defaultValue:{value:"false"},description:"",name:"isByMe",required:!1,type:{name:"boolean"}},mouseHover:{defaultValue:{value:"false"},description:"",name:"mouseHover",required:!1,type:{name:"boolean"}},isMentionEnabled:{defaultValue:{value:"false"},description:"",name:"isMentionEnabled",required:!1,type:{name:"boolean"}},isReactionEnabled:{defaultValue:{value:"false"},description:"",name:"isReactionEnabled",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/TextMessageItemBody/index.tsx#TextMessageItemBody"]={docgenInfo:TextMessageItemBody.__docgenInfo,name:"TextMessageItemBody",path:"src/ui/TextMessageItemBody/index.tsx#TextMessageItemBody"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/TextMessageItemBody/stories/TextMessageItemBody.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return WithControl})),__webpack_require__.d(__webpack_exports__,"withText",(function(){return withText}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _index_tsx__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/TextMessageItemBody/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/TextMessageItemBody",component:_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,parameters:{docs:{description:{component:'\n `import TextMessageItemBody from "@sendbird/uikit-react/ui/TextMessageItemBody";`\n'}}}};var WithControl=function WithControl(arg){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,Object.assign({message:{message:"dhjfkldjfklasklfjdlskfjldksfjkldsjfkljdslk dhjfkldjfklasklfjdlskfjldksfjkldsjfkljdslk dhjfkldjfklasklfjdlskfjldksfjkldsjfkljdslk dhjfkldjfklasklfjdlskfjldksfjkldsjfkljdslk dhjfkldjfklasklfjdlskfjldksfjkldsjfkljdslk",sender:{userId:"hoon-army-001"},messageType:"user",updatedAt:0}},arg))};WithControl.displayName="WithControl";var withText=function withText(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("div",{children:[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{message:{message:"dhjfkldjfklasklfjdlskfjldksfjkldsjfkljdslk dhjfkldjfklasklfjdlskfjldksfjkldsjfkljdslk dhjfkldjfklasklfjdlskfjldksfjkldsjfkljdslk dhjfkldjfklasklfjdlskfjldksfjkldsjfkljdslk dhjfkldjfklasklfjdlskfjldksfjkldsjfkljdslk",sender:{userId:"hoon-army-001"},messageType:"user",updatedAt:0},isByMe:!0}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("br",{}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("br",{}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{message:{message:"dhjfkldjfklasklfjdlskfjldksfjkldsjfkljdslk dhjfkldjfklasklfjdlskfjldksfjkldsjfkljdslk dhjfkldjfklasklfjdlskfjldksfjkldsjfkljdslk dhjfkldjfklasklfjdlskfjldksfjkldsjfkljdslk dhjfkldjfklasklfjdlskfjldksfjkldsjfkljdslk",sender:{userId:"hoon-army-002"},messageType:"user",updatedAt:0},isByMe:!1}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("br",{}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("br",{}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{message:{message:"dhjfkldjfklasklfjdlskfjldksfjkldsjfkljdslk dhjfkldjfklasklfjdlskfjldksfjkldsjfkljdslk dhjfkldjfklasklfjdlskfjldksfjkldsjfkljdslk dhjfkldjfklasklfjdlskfjldksfjkldsjfkljdslk dhjfkldjfklasklfjdlskfjldksfjkldsjfkljdslk",sender:{userId:"hoon-army-001"},messageType:"user",updatedAt:10},isByMe:!0}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("br",{}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("br",{}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{message:{message:"dhjfkldjfklasklfjdlskfjldksfjkldsjfkljdslk dhjfkldjfklasklfjdlskfjldksfjkldsjfkljdslk dhjfkldjfklasklfjdlskfjldksfjkldsjfkljdslk dhjfkldjfklasklfjdlskfjldksfjkldsjfkljdslk dhjfkldjfklasklfjdlskfjldksfjkldsjfkljdslk",sender:{userId:"hoon-army-002"},messageType:"user",updatedAt:10},isByMe:!1})]})};withText.displayName="withText",WithControl.parameters=Object.assign({storySource:{source:"(arg) => (\n \n)"}},WithControl.parameters),withText.parameters=Object.assign({storySource:{source:"() => (\n
\n \n
\n
\n \n
\n
\n \n
\n
\n \n
\n)"}},withText.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/TextMessageItemBody/stories/TextMessageItemBody.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/TextMessageItemBody/stories/TextMessageItemBody.stories.js"}),withText.__docgenInfo={description:"",methods:[],displayName:"withText"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/TextMessageItemBody/stories/TextMessageItemBody.stories.js"]={name:"withText",docgenInfo:withText.__docgenInfo,path:"src/ui/TextMessageItemBody/stories/TextMessageItemBody.stories.js"})},"./src/ui/ThreadReplies/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/ThreadReplies/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/ThreadReplies/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__),_Avatar__WEBPACK_IMPORTED_MODULE_5__=(__webpack_require__("./src/ui/ThreadReplies/index.scss"),__webpack_require__("./src/ui/Avatar/index.tsx")),_Icon__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/ui/Icon/index.tsx"),_ui_Label__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/ui/Label/index.tsx"),_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/lib/LocalizationContext.tsx");function ThreadReplies(_ref,ref){var _mostRepliedUsers$,className=_ref.className,threadInfo=_ref.threadInfo,_onClick=_ref.onClick,_threadInfo$mostRepli=threadInfo.mostRepliedUsers,mostRepliedUsers=void 0===_threadInfo$mostRepli?[]:_threadInfo$mostRepli,replyCount=threadInfo.replyCount,stringSet=Object(_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_8__.c)().stringSet;return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div",{className:"sendbird-ui-thread-replies ".concat(className),role:"button",onClick:function onClick(e){_onClick(e),null==e||e.stopPropagation()},onKeyDown:function onKeyDown(e){_onClick(e),null==e||e.stopPropagation()},ref:ref},react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div",{className:"sendbird-ui-thread-replies__user-profiles"},mostRepliedUsers.slice(0,4).map((function(user){return react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_Avatar__WEBPACK_IMPORTED_MODULE_5__.a,{key:user.userId,className:"sendbird-ui-thread-replies__user-profiles__avatar",src:null==user?void 0:user.profileUrl,alt:"user profile",width:"20px",height:"20px"})})),(null==mostRepliedUsers?void 0:mostRepliedUsers.length)>=5&&react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div",{className:"sendbird-ui-thread-replies__user-profiles__avatar"},react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_Avatar__WEBPACK_IMPORTED_MODULE_5__.a,{className:"sendbird-ui-thread-replies__user-profiles__avatar__image",src:null==mostRepliedUsers||null===(_mostRepliedUsers$=mostRepliedUsers[4])||void 0===_mostRepliedUsers$?void 0:_mostRepliedUsers$.profileUrl,alt:"user profile",width:"20px",height:"20px"}),react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div",{className:"sendbird-ui-thread-replies__user-profiles__avatar__cover"}),react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div",{className:"sendbird-ui-thread-replies__user-profiles__avatar__plus"},react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_6__.c,{type:_Icon__WEBPACK_IMPORTED_MODULE_6__.b.PLUS,fillColor:_Icon__WEBPACK_IMPORTED_MODULE_6__.a.WHITE,width:"16px",height:"16px"})))),react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_ui_Label__WEBPACK_IMPORTED_MODULE_7__.d,{className:"sendbird-ui-thread-replies__reply-counts",type:_ui_Label__WEBPACK_IMPORTED_MODULE_7__.c.CAPTION_2,color:_ui_Label__WEBPACK_IMPORTED_MODULE_7__.a.PRIMARY},1===replyCount?"".concat(replyCount," ").concat(stringSet.CHANNEL__THREAD_REPLY):"".concat(replyCount>99?stringSet.CHANNEL__THREAD_OVER_MAX:replyCount," ").concat(stringSet.CHANNEL__THREAD_REPLIES)),react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_6__.c,{className:"sendbird-ui-thread-replies__icon",type:_Icon__WEBPACK_IMPORTED_MODULE_6__.b.CHEVRON_RIGHT,fillColor:_Icon__WEBPACK_IMPORTED_MODULE_6__.a.PRIMARY,width:"16px",height:"16px"}))}__webpack_exports__.a=react__WEBPACK_IMPORTED_MODULE_3___default.a.forwardRef(ThreadReplies)},"./src/ui/ThreadReplies/stories/ThreadReplies.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"withControl",(function(){return withControl})),__webpack_require__.d(__webpack_exports__,"fullStack",(function(){return fullStack}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _index__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/ThreadReplies/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/ThreadReplies",component:_index__WEBPACK_IMPORTED_MODULE_2__.a,parameters:{docs:{description:{component:'\n `import ThreadReplies from "@sendbird/uikit-react/ui/ThreadReplies";`\n'}}}};var withControl=function withControl(arg){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,Object.assign({threadInfo:{mostRepliedUsers:[{profileUrl:"https://file-ap-1.sendbird.com/9ed7a17fcfa64563a7c25c3e5156f448.jpg"}],replyCount:1}},arg))};withControl.displayName="withControl";var fullStack=function fullStack(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{threadInfo:{mostRepliedUsers:[{profileUrl:"https://file-ap-1.sendbird.com/9ed7a17fcfa64563a7c25c3e5156f448.jpg"},{profileUrl:"https://static.sendbird.com/sample/user_sdk/user_sdk_22.png"},{profileUrl:"https://static.sendbird.com/sample/user_sdk/user_sdk_23.png"},{profileUrl:"https://file-ap-1.sendbird.com/e7e4e55e91dd47fba5af972595ef0cc9.jpg"},{profileUrl:"https://file-ap-1.sendbird.com/9ed7a17fcfa64563a7c25c3e5156f448.jpg"}],replyCount:100}})};fullStack.displayName="fullStack",withControl.parameters=Object.assign({storySource:{source:"(arg) => (\n \n)"}},withControl.parameters),fullStack.parameters=Object.assign({storySource:{source:"() => (\n \n)"}},fullStack.parameters),withControl.__docgenInfo={description:"",methods:[],displayName:"withControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ThreadReplies/stories/ThreadReplies.stories.js"]={name:"withControl",docgenInfo:withControl.__docgenInfo,path:"src/ui/ThreadReplies/stories/ThreadReplies.stories.js"}),fullStack.__docgenInfo={description:"",methods:[],displayName:"fullStack"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ThreadReplies/stories/ThreadReplies.stories.js"]={name:"fullStack",docgenInfo:fullStack.__docgenInfo,path:"src/ui/ThreadReplies/stories/ThreadReplies.stories.js"})},"./src/ui/ThumbnailMessageItemBody/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/ThumbnailMessageItemBody/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/ThumbnailMessageItemBody/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return ThumbnailMessageItemBody}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./src/ui/ThumbnailMessageItemBody/index.scss");var react__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__),_Icon__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./src/ui/Icon/index.tsx"),_ImageRenderer__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./src/ui/ImageRenderer/index.tsx"),_utils__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./src/utils/index.ts"),_utils_utils__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./src/utils/utils.ts"),_hooks_useLongPress__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./src/hooks/useLongPress.tsx"),_QuoteMessage_utils__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./src/ui/QuoteMessage/utils.ts");function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0?"reactions":""])},onClickHandler),react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(_ImageRenderer__WEBPACK_IMPORTED_MODULE_14__.a,{className:"sendbird-thumbnail-message-item-body__thumbnail",url:thumbnailUrl||Object(_QuoteMessage_utils__WEBPACK_IMPORTED_MODULE_18__.d)(message),alt:Object(_QuoteMessage_utils__WEBPACK_IMPORTED_MODULE_18__.c)(message),width:(null==style?void 0:style.width)||"360px",height:(null==style?void 0:style.height)||"270px",onLoad:function onLoad(){setImageRendered(!0)},placeHolder:function placeHolder(_ref2){var style=_ref2.style;return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",{className:"sendbird-thumbnail-message-item-body__placeholder",style:style})}}),Object(_utils__WEBPACK_IMPORTED_MODULE_15__.V)(message)&&!thumbnailUrl&&!imageRendered&&react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("video",{className:"sendbird-thumbnail-message-item-body__video"},react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("source",{src:Object(_QuoteMessage_utils__WEBPACK_IMPORTED_MODULE_18__.d)(message),type:Object(_QuoteMessage_utils__WEBPACK_IMPORTED_MODULE_18__.c)(message)})),react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",{className:"sendbird-thumbnail-message-item-body__image-cover"}),(Object(_utils__WEBPACK_IMPORTED_MODULE_15__.V)(message)||Object(_utils__WEBPACK_IMPORTED_MODULE_15__.B)(message))&&react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",{className:"sendbird-thumbnail-message-item-body__icon-wrapper"},react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",{className:"sendbird-thumbnail-message-item-body__icon-wrapper__icon"},react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_13__.c,{type:Object(_utils__WEBPACK_IMPORTED_MODULE_15__.V)(message)?_Icon__WEBPACK_IMPORTED_MODULE_13__.b.PLAY:_Icon__WEBPACK_IMPORTED_MODULE_13__.b.GIF,fillColor:_Icon__WEBPACK_IMPORTED_MODULE_13__.a.THUMBNAIL_ICON,width:"34px",height:"34px"}))))}try{ThumbnailMessageItemBody.displayName="ThumbnailMessageItemBody",ThumbnailMessageItemBody.__docgenInfo={description:"",displayName:"ThumbnailMessageItemBody",props:{className:{defaultValue:{value:""},description:"",name:"className",required:!1,type:{name:"string | string[]"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"FileMessage | MultipleFilesMessage"}},isByMe:{defaultValue:{value:"false"},description:"",name:"isByMe",required:!1,type:{name:"boolean"}},mouseHover:{defaultValue:{value:"false"},description:"",name:"mouseHover",required:!1,type:{name:"boolean"}},isReactionEnabled:{defaultValue:{value:"false"},description:"",name:"isReactionEnabled",required:!1,type:{name:"boolean"}},showFileViewer:{defaultValue:{value:"() => { /** noop * */ }"},description:"",name:"showFileViewer",required:!1,type:{name:"(bool: boolean) => void"}},style:{defaultValue:{value:"{}"},description:"",name:"style",required:!1,type:{name:"Record"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ThumbnailMessageItemBody/index.tsx#ThumbnailMessageItemBody"]={docgenInfo:ThumbnailMessageItemBody.__docgenInfo,name:"ThumbnailMessageItemBody",path:"src/ui/ThumbnailMessageItemBody/index.tsx#ThumbnailMessageItemBody"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/ThumbnailMessageItemBody/stories/ThumbnailMessageItemBody.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return ThumbnailMessageItemBody_stories_WithControl})),__webpack_require__.d(__webpack_exports__,"withText",(function(){return ThumbnailMessageItemBody_stories_withText}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var ThumbnailMessageItemBody=__webpack_require__("./src/ui/ThumbnailMessageItemBody/index.tsx"),dummyData_mock={messageId:16131097,messageType:"file",channelUrl:"sendbird_group_channel_12373168_f986d10807a7cc7c184e22ca8ac2137bc32bc57c",data:"",customType:"",createdAt:1583415812675,updatedAt:0,channelType:"group",mentionType:"users",url:"https://sendbird-staging.s3.amazonaws.com/26FA710D-A7F6-4483-ABEA-1F07A07A112E/upload/n/e49e0a4111d4445a8840bd51f3c9d933.png",name:"sent-mail (1).png",size:9250,type:"image/png",sender:{nickname:"hoon102",profileUrl:"https://static.sendbird.com/sample/profiles/profile_15_512px.png",userId:"hoon102",connectionStatus:"nonavailable",lastSeenAt:0},reqId:"1583413644783",requireAuth:!1,requestState:"succeeded",errorCode:0},jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),imageSampleMessage=(__webpack_exports__.default={title:"@sendbird/uikit-react/ui/ThumbnailMessageItemBody",component:ThumbnailMessageItemBody.a,parameters:{docs:{description:{component:'\n `import ThumbnailMessageItemBody from "@sendbird/uikit-react/ui/ThumbnailMessageItemBody";`\n'}}}},Object.assign({},dummyData_mock));imageSampleMessage.url="https://static.sendbird.com/sample/user_sdk/user_sdk_10.png";var videoSampleMessage=Object.assign({},dummyData_mock);videoSampleMessage.url="https://sendbird-upload.s3.amazonaws.com/2D7B4CDB-932F-4082-9B09-A1153792DC8D/upload/n/b1ac6831a9b940bca831ea509f97fc35.mp4",videoSampleMessage.type="video/mp4";var gifSampleMessage=Object.assign({},dummyData_mock);gifSampleMessage.url="https://sendbird-upload.s3.amazonaws.com/2D7B4CDB-932F-4082-9B09-A1153792DC8D/upload/n/4715d139d7cf4a4ea99e6b9293664e53.gif",gifSampleMessage.type="image/gif";var ThumbnailMessageItemBody_stories_WithControl=function WithControl(arg){return Object(jsx_runtime.jsx)(ThumbnailMessageItemBody.a,Object.assign({message:imageSampleMessage},arg))};ThumbnailMessageItemBody_stories_WithControl.displayName="WithControl";var ThumbnailMessageItemBody_stories_withText=function withText(){return Object(jsx_runtime.jsxs)("div",{children:[Object(jsx_runtime.jsx)(ThumbnailMessageItemBody.a,{message:imageSampleMessage}),Object(jsx_runtime.jsx)("br",{}),Object(jsx_runtime.jsx)("br",{}),Object(jsx_runtime.jsx)(ThumbnailMessageItemBody.a,{message:videoSampleMessage}),Object(jsx_runtime.jsx)("br",{}),Object(jsx_runtime.jsx)("br",{}),Object(jsx_runtime.jsx)(ThumbnailMessageItemBody.a,{message:gifSampleMessage})]})};ThumbnailMessageItemBody_stories_withText.displayName="withText",ThumbnailMessageItemBody_stories_WithControl.parameters=Object.assign({storySource:{source:"(arg) => (\n \n)"}},ThumbnailMessageItemBody_stories_WithControl.parameters),ThumbnailMessageItemBody_stories_withText.parameters=Object.assign({storySource:{source:"() => (\n
\n \n
\n
\n \n
\n
\n \n
\n)"}},ThumbnailMessageItemBody_stories_withText.parameters),ThumbnailMessageItemBody_stories_WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ThumbnailMessageItemBody/stories/ThumbnailMessageItemBody.stories.js"]={name:"WithControl",docgenInfo:ThumbnailMessageItemBody_stories_WithControl.__docgenInfo,path:"src/ui/ThumbnailMessageItemBody/stories/ThumbnailMessageItemBody.stories.js"}),ThumbnailMessageItemBody_stories_withText.__docgenInfo={description:"",methods:[],displayName:"withText"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/ThumbnailMessageItemBody/stories/ThumbnailMessageItemBody.stories.js"]={name:"withText",docgenInfo:ThumbnailMessageItemBody_stories_withText.__docgenInfo,path:"src/ui/ThumbnailMessageItemBody/stories/ThumbnailMessageItemBody.stories.js"})},"./src/ui/Toggle/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/Toggle/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/Toggle/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return Toggle_Toggle})),__webpack_require__.d(__webpack_exports__,"b",(function(){return ToggleContainer_ToggleContainer})),__webpack_require__.d(__webpack_exports__,"c",(function(){return ToggleUI_ToggleUI}));__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),noop=(__webpack_require__("./src/ui/Toggle/index.scss"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),function noop(){}),TOGGLE_DEFAULT_VALUE={checked:null,defaultChecked:!1,disabled:!1,onChange:noop,onFocus:noop,onBlur:noop},ToggleContext=react_default.a.createContext(TOGGLE_DEFAULT_VALUE);function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i { /* noop */ }"},description:"",name:"onChange",required:!1,type:{name:"ChangeEventHandler"}},onFocus:{defaultValue:{value:"(): void => { /* noop */ }"},description:"",name:"onFocus",required:!1,type:{name:"ChangeEventHandler"}},onBlur:{defaultValue:{value:"(): void => { /* noop */ }"},description:"",name:"onBlur",required:!1,type:{name:"ChangeEventHandler"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Toggle/ToggleContainer.tsx#ToggleContainer"]={docgenInfo:ToggleContainer_ToggleContainer.__docgenInfo,name:"ToggleContainer",path:"src/ui/Toggle/ToggleContainer.tsx#ToggleContainer"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.flat.js"),__webpack_require__("./node_modules/core-js/modules/es.string.match.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js");var useSendbirdStateContext=__webpack_require__("./src/hooks/useSendbirdStateContext.tsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;rarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i"}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"string"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},ariaLabel:{defaultValue:null,description:"",name:"ariaLabel",required:!1,type:{name:"string"}},ariaLabelledby:{defaultValue:null,description:"",name:"ariaLabelledby",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Toggle/ToggleUI.tsx#ToggleUI"]={docgenInfo:ToggleUI_ToggleUI.__docgenInfo,name:"ToggleUI",path:"src/ui/Toggle/ToggleUI.tsx#ToggleUI"})}catch(__react_docgen_typescript_loader_error){}function Toggle_Toggle(props){var checked=props.checked,defaultChecked=props.defaultChecked,disabled=props.disabled,onChange=props.onChange,onFocus=props.onFocus,onBlur=props.onBlur,className=props.className,reversed=props.reversed,width=props.width,animationDuration=props.animationDuration,style=props.style,name=props.name,id=props.id,ariaLabel=props.ariaLabel,ariaLabelledby=props.ariaLabelledby;return react_default.a.createElement("div",{className:"sendbird-ui-toggle ".concat(className)},react_default.a.createElement(ToggleContainer_ToggleContainer,{checked:checked,defaultChecked:defaultChecked,disabled:disabled,onChange:onChange,onFocus:onFocus,onBlur:onBlur},react_default.a.createElement(ToggleUI_ToggleUI,{reversed:reversed,width:width,animationDuration:animationDuration,style:style,name:name,id:id,ariaLabel:ariaLabel,ariaLabelledby:ariaLabelledby})))}try{Toggle_Toggle.displayName="Toggle",Toggle_Toggle.__docgenInfo={description:"",displayName:"Toggle",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},checked:{defaultValue:null,description:"",name:"checked",required:!1,type:{name:"boolean"}},defaultChecked:{defaultValue:null,description:"",name:"defaultChecked",required:!1,type:{name:"boolean"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"ChangeEventHandler"}},onFocus:{defaultValue:null,description:"",name:"onFocus",required:!1,type:{name:"ChangeEventHandler"}},onBlur:{defaultValue:null,description:"",name:"onBlur",required:!1,type:{name:"ChangeEventHandler"}},reversed:{defaultValue:null,description:"",name:"reversed",required:!1,type:{name:"boolean"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"string"}},animationDuration:{defaultValue:null,description:"",name:"animationDuration",required:!1,type:{name:"string"}},style:{defaultValue:null,description:"",name:"style",required:!1,type:{name:"Record"}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"string"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},ariaLabel:{defaultValue:null,description:"",name:"ariaLabel",required:!1,type:{name:"string"}},ariaLabelledby:{defaultValue:null,description:"",name:"ariaLabelledby",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Toggle/index.tsx#Toggle"]={docgenInfo:Toggle_Toggle.__docgenInfo,name:"Toggle",path:"src/ui/Toggle/index.tsx#Toggle"})}catch(__react_docgen_typescript_loader_error){}try{ToggleContainer.displayName="ToggleContainer",ToggleContainer.__docgenInfo={description:"",displayName:"ToggleContainer",props:{checked:{defaultValue:{value:"null"},description:"",name:"checked",required:!1,type:{name:"boolean"}},defaultChecked:{defaultValue:{value:"false"},description:"",name:"defaultChecked",required:!1,type:{name:"boolean"}},disabled:{defaultValue:{value:"false"},description:"",name:"disabled",required:!1,type:{name:"boolean"}},onChange:{defaultValue:{value:"(): void => { /* noop */ }"},description:"",name:"onChange",required:!1,type:{name:"ChangeEventHandler"}},onFocus:{defaultValue:{value:"(): void => { /* noop */ }"},description:"",name:"onFocus",required:!1,type:{name:"ChangeEventHandler"}},onBlur:{defaultValue:{value:"(): void => { /* noop */ }"},description:"",name:"onBlur",required:!1,type:{name:"ChangeEventHandler"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Toggle/index.tsx#ToggleContainer"]={docgenInfo:ToggleContainer.__docgenInfo,name:"ToggleContainer",path:"src/ui/Toggle/index.tsx#ToggleContainer"})}catch(__react_docgen_typescript_loader_error){}try{ToggleUI.displayName="ToggleUI",ToggleUI.__docgenInfo={description:"",displayName:"ToggleUI",props:{reversed:{defaultValue:null,description:"",name:"reversed",required:!1,type:{name:"boolean"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"string"}},animationDuration:{defaultValue:null,description:"",name:"animationDuration",required:!1,type:{name:"string"}},style:{defaultValue:null,description:"",name:"style",required:!1,type:{name:"Record"}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"string"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},ariaLabel:{defaultValue:null,description:"",name:"ariaLabel",required:!1,type:{name:"string"}},ariaLabelledby:{defaultValue:null,description:"",name:"ariaLabelledby",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Toggle/index.tsx#ToggleUI"]={docgenInfo:ToggleUI.__docgenInfo,name:"ToggleUI",path:"src/ui/Toggle/index.tsx#ToggleUI"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/Toggle/stories/Toggle.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"withText",(function(){return withText}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _index_tsx__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/Toggle/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/Toggle"};var withText=function withText(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("div",{style:{paddingLeft:"10px"},children:[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("h5",{children:"Noraml: controll"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{onChange:function onChange(e){console.log("OnChange: ",e.currentTarget.checked)}}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("h5",{children:"Noraml: controll, default checked"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{onChange:function onChange(e){console.log("OnChange: ",e.currentTarget.checked)},defaultChecked:!0}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("h5",{children:"Noraml: uncontroll, checked"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{checked:!0,animationDuration:"0s"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("h5",{children:"Noraml: uncontroll, unchecked"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{checked:!1,animationDuration:"0s"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("h5",{children:"Noraml: disabled"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{disabled:!0}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("h5",{children:"Reverse: controll"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{reversed:!0,onChange:function onChange(e){console.log("OnChange: ",e.currentTarget.checked)}}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("h5",{children:"Size up: controll"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{onChange:function onChange(e){console.log("OnChange: ",e.currentTarget.checked)},width:"80px"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("h5",{children:"Size down: controll"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{onChange:function onChange(e){console.log("OnChange: ",e.currentTarget.checked)},width:"30px"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("h5",{children:"One Container and Several UI"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.b,{children:[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("span",{children:"normal"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.c,{}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("span",{children:"reversed"}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.c,{reversed:!0})]})]})};withText.displayName="withText",withText.parameters=Object.assign({storySource:{source:"() => {\n return (\n
\n
Noraml: controll
\n { console.log('OnChange: ', e.currentTarget.checked) }} />\n
Noraml: controll, default checked
\n { console.log('OnChange: ', e.currentTarget.checked) }} defaultChecked />\n
Noraml: uncontroll, checked
\n \n
Noraml: uncontroll, unchecked
\n \n
Noraml: disabled
\n \n
Reverse: controll
\n { console.log('OnChange: ', e.currentTarget.checked) }} />\n
Size up: controll
\n { console.log('OnChange: ', e.currentTarget.checked) }} width=\"80px\" />\n
Size down: controll
\n { console.log('OnChange: ', e.currentTarget.checked) }} width=\"30px\" />\n
One Container and Several UI
\n \n normal\n reversed\n \n
\n )\n}"}},withText.parameters),withText.__docgenInfo={description:"",methods:[],displayName:"withText"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Toggle/stories/Toggle.stories.js"]={name:"withText",docgenInfo:withText.__docgenInfo,path:"src/ui/Toggle/stories/Toggle.stories.js"})},"./src/ui/Tooltip/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/Tooltip/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/Tooltip/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return Tooltip}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var react__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__),_Label__WEBPACK_IMPORTED_MODULE_14__=(__webpack_require__("./src/ui/Tooltip/index.scss"),__webpack_require__("./src/ui/Label/index.tsx"));function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i (\n \n)"}},WithControl.parameters),normal.parameters=Object.assign({storySource:{source:"() => "}},normal.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Tooltip/stories/Tooltip.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/Tooltip/stories/Tooltip.stories.js"}),normal.__docgenInfo={description:"",methods:[],displayName:"normal"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Tooltip/stories/Tooltip.stories.js"]={name:"normal",docgenInfo:normal.__docgenInfo,path:"src/ui/Tooltip/stories/Tooltip.stories.js"})},"./src/ui/TooltipWrapper/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/TooltipWrapper/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/TooltipWrapper/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return TooltipWrapper}));__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var react__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__);__webpack_require__("./src/ui/TooltipWrapper/index.scss");function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||_unsupportedIterableToArray(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||_unsupportedIterableToArray(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/TooltipWrapper/index.tsx#TooltipWrapper"]={docgenInfo:TooltipWrapper.__docgenInfo,name:"TooltipWrapper",path:"src/ui/TooltipWrapper/index.tsx#TooltipWrapper"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/TooltipWrapper/stories/TooltipWrapper.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return WithControl})),__webpack_require__.d(__webpack_exports__,"withLongText",(function(){return withLongText}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _index__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/TooltipWrapper/index.tsx"),_Tooltip__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/ui/Tooltip/index.tsx"),_Icon__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/ui/Icon/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/TooltipWrapper",component:_index__WEBPACK_IMPORTED_MODULE_2__.a,parameters:{docs:{description:{component:'\n `import TooltipWrapper from "@sendbird/uikit-react/ui/TooltipWrapper";`\n'}}}};var WithControl=function WithControl(arg){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div",{style:{marginTop:100,marginLeft:100},children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,Object.assign({hoverTooltip:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_Tooltip__WEBPACK_IMPORTED_MODULE_3__.a,{children:"Test Text"})},arg,{children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_Icon__WEBPACK_IMPORTED_MODULE_4__.c,{type:_Icon__WEBPACK_IMPORTED_MODULE_4__.b.ADD,fillColor:_Icon__WEBPACK_IMPORTED_MODULE_4__.a.PRIMARY})}))})};WithControl.displayName="WithControl";var withLongText=function withLongText(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div",{style:{marginTop:200,marginLeft:100},children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__.a,{hoverTooltip:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_Tooltip__WEBPACK_IMPORTED_MODULE_3__.a,{children:"Test Text, Test Text, Test Text, Test Text, Test Text, Test Text, Test Text, Test Text, Test Text, Test Text, Test Text, Test Text, Test Text, Test Text, Test Text, Test Text, Test Text, Test Text, Test Text, Test Text, Test Text, Test Text, Test Text, Test Text, Test Text, "}),children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_Icon__WEBPACK_IMPORTED_MODULE_4__.c,{type:_Icon__WEBPACK_IMPORTED_MODULE_4__.b.ADD,fillColor:_Icon__WEBPACK_IMPORTED_MODULE_4__.a.PRIMARY})})})};withLongText.displayName="withLongText",WithControl.parameters=Object.assign({storySource:{source:"(arg) => (\n
\n Test Text\n }\n {...arg}\n >\n \n \n
\n)"}},WithControl.parameters),withLongText.parameters=Object.assign({storySource:{source:"() => (\n
\n \n }\n >\n \n \n
\n)"}},withLongText.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/TooltipWrapper/stories/TooltipWrapper.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/TooltipWrapper/stories/TooltipWrapper.stories.js"}),withLongText.__docgenInfo={description:"",methods:[],displayName:"withLongText"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/TooltipWrapper/stories/TooltipWrapper.stories.js"]={name:"withLongText",docgenInfo:withLongText.__docgenInfo,path:"src/ui/TooltipWrapper/stories/TooltipWrapper.stories.js"})},"./src/ui/TypingIndicatorBubble/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),Avatar=__webpack_require__("./src/ui/Avatar/index.tsx"),TypingIndicatorBubble_TypingDots=(__webpack_require__("./src/ui/TypingIndicatorBubble/typingDots.scss"),function TypingDots(){return react_default.a.createElement("div",{className:"typing-dots-container"},react_default.a.createElement("span",null),react_default.a.createElement("span",null),react_default.a.createElement("span",null))}),AvatarDefault=__webpack_require__("./src/ui/Avatar/AvatarDefault.tsx"),TypingIndicatorBubble_AvatarStack=function AvatarStack(props){var sources=props.sources,max=props.max;return react_default.a.createElement(react_default.a.Fragment,null," ",sources.slice(0,max).map((function(src,index){return react_default.a.createElement(Avatar.a,{className:"sendbird-message-content__left__avatar multiple",src:src||"",key:"avatar_stack_item_".concat(src),width:"".concat(28,"px"),height:"".concat(28,"px"),zIndex:index,left:"".concat(24*index-2,"px")})}))," ")},TypingIndicatorBubble_TypingIndicatorBubbleAvatar=function TypingIndicatorBubbleAvatar(props){var typingMembers=props.typingMembers,membersCount=typingMembers.length,displayCount=Math.min(membersCount,4),hiddenCount=membersCount-3,superImposedWidth=8*(displayCount-1);return react_default.a.createElement("div",{className:"sendbird-message-content__left incoming",style:{minWidth:32*displayCount-superImposedWidth+12}},react_default.a.createElement(TypingIndicatorBubble_AvatarStack,{sources:typingMembers.map((function(member){return member.profileUrl})),max:3}),hiddenCount>0?react_default.a.createElement(Avatar.a,{className:"sendbird-message-content__left__avatar multiple",width:"".concat(28,"px"),height:"".concat(28,"px"),zIndex:3,left:"".concat(72,"px"),customDefaultComponent:function customDefaultComponent(_ref){var width=_ref.width,height=_ref.height;return react_default.a.createElement(AvatarDefault.a,{width:width,height:height,text:"+".concat(hiddenCount)})}}):null)},TypingIndicatorBubble_TypingIndicatorBubble=function TypingIndicatorBubble(props){var typingMembers=props.typingMembers,handleScroll=props.handleScroll;return 0===typingMembers.length?null:(Object(react.useLayoutEffect)((function(){null==handleScroll||handleScroll(!0)}),[]),react_default.a.createElement("div",{className:"sendbird-message-content incoming",style:{marginBottom:"2px"}},react_default.a.createElement(TypingIndicatorBubble_TypingIndicatorBubbleAvatar,{typingMembers:typingMembers}),react_default.a.createElement("div",{className:"sendbird-message-content__middle"},react_default.a.createElement(TypingIndicatorBubble_TypingDots,null))))};__webpack_exports__.a=TypingIndicatorBubble_TypingIndicatorBubble;try{TypingIndicatorBubble_TypingIndicatorBubble.displayName="TypingIndicatorBubble",TypingIndicatorBubble_TypingIndicatorBubble.__docgenInfo={description:"",displayName:"TypingIndicatorBubble",props:{typingMembers:{defaultValue:null,description:"",name:"typingMembers",required:!0,type:{name:"Member[]"}},handleScroll:{defaultValue:null,description:"",name:"handleScroll",required:!1,type:{name:"(isBottomMessageAffected?: boolean) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/TypingIndicatorBubble/index.tsx#TypingIndicatorBubble"]={docgenInfo:TypingIndicatorBubble_TypingIndicatorBubble.__docgenInfo,name:"TypingIndicatorBubble",path:"src/ui/TypingIndicatorBubble/index.tsx#TypingIndicatorBubble"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/TypingIndicatorBubble/typingDots.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/TypingIndicatorBubble/typingDots.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/UnknownMessageItemBody/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/UnknownMessageItemBody/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/UnknownMessageItemBody/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return UnknownMessageItemBody}));var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__),_Label__WEBPACK_IMPORTED_MODULE_2__=(__webpack_require__("./src/ui/UnknownMessageItemBody/index.scss"),__webpack_require__("./src/ui/Label/index.tsx")),_utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/utils/index.ts"),_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/lib/LocalizationContext.tsx");function UnknownMessageItemBody(_ref){var _message$reactions,className=_ref.className,message=_ref.message,_ref$isByMe=_ref.isByMe,isByMe=void 0!==_ref$isByMe&&_ref$isByMe,_ref$mouseHover=_ref.mouseHover,mouseHover=void 0!==_ref$mouseHover&&_ref$mouseHover,_ref$isReactionEnable=_ref.isReactionEnabled,isReactionEnabled=void 0!==_ref$isReactionEnable&&_ref$isReactionEnable,stringSet=Object(react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_4__.a).stringSet;return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{className:Object(_utils__WEBPACK_IMPORTED_MODULE_3__.i)([className,"sendbird-unknown-message-item-body",isByMe?"outgoing":"incoming",mouseHover?"mouse-hover":"",isReactionEnabled&&(null==message||null===(_message$reactions=message.reactions)||void 0===_message$reactions?void 0:_message$reactions.length)>0?"reactions":""])},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Label__WEBPACK_IMPORTED_MODULE_2__.d,{className:"sendbird-unknown-message-item-body__header",type:_Label__WEBPACK_IMPORTED_MODULE_2__.c.BODY_1,color:isByMe?_Label__WEBPACK_IMPORTED_MODULE_2__.a.ONCONTENT_1:_Label__WEBPACK_IMPORTED_MODULE_2__.a.ONBACKGROUND_1},stringSet.UNKNOWN__UNKNOWN_MESSAGE_TYPE),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Label__WEBPACK_IMPORTED_MODULE_2__.d,{className:"sendbird-unknown-message-item-body__description",type:_Label__WEBPACK_IMPORTED_MODULE_2__.c.BODY_1,color:isByMe?_Label__WEBPACK_IMPORTED_MODULE_2__.a.ONCONTENT_2:_Label__WEBPACK_IMPORTED_MODULE_2__.a.ONBACKGROUND_2},stringSet.UNKNOWN__CANNOT_READ_MESSAGE))}try{UnknownMessageItemBody.displayName="UnknownMessageItemBody",UnknownMessageItemBody.__docgenInfo={description:"",displayName:"UnknownMessageItemBody",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string | string[]"}},isByMe:{defaultValue:{value:"false"},description:"",name:"isByMe",required:!1,type:{name:"boolean"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"BaseMessage"}},mouseHover:{defaultValue:{value:"false"},description:"",name:"mouseHover",required:!1,type:{name:"boolean"}},isReactionEnabled:{defaultValue:{value:"false"},description:"",name:"isReactionEnabled",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/UnknownMessageItemBody/index.tsx#UnknownMessageItemBody"]={docgenInfo:UnknownMessageItemBody.__docgenInfo,name:"UnknownMessageItemBody",path:"src/ui/UnknownMessageItemBody/index.tsx#UnknownMessageItemBody"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/UnknownMessageItemBody/stories/UnknownMessageItemBody.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return WithControl}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _index_tsx__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/UnknownMessageItemBody/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/UnknownMessageItemBody",component:_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,parameters:{docs:{description:{component:'\n `import UnknownMessageItemBody from "@sendbird/uikit-react/ui/UnknownMessageItemBody";`\n'}}}};var WithControl=function WithControl(arg){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,Object.assign({},arg))};WithControl.displayName="WithControl",WithControl.parameters=Object.assign({storySource:{source:"(arg) => (\n \n)"}},WithControl.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/UnknownMessageItemBody/stories/UnknownMessageItemBody.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/UnknownMessageItemBody/stories/UnknownMessageItemBody.stories.js"})},"./src/ui/UserListItem/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/UserListItem/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/UserListItem/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return UserListItem}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js");var react__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_13__),_lib_UserProfileContext__WEBPACK_IMPORTED_MODULE_15__=(__webpack_require__("./src/ui/UserListItem/index.scss"),__webpack_require__("./src/lib/UserProfileContext.tsx")),_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./src/lib/LocalizationContext.tsx"),_Avatar_index__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./src/ui/Avatar/index.tsx"),_Avatar_MutedAvatarOverlay__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./src/ui/Avatar/MutedAvatarOverlay.tsx"),_Checkbox__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./src/ui/Checkbox/index.tsx"),_UserProfile__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/ui/UserProfile/index.tsx"),_ContextMenu__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./src/ui/ContextMenu/index.tsx"),_Label__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/ui/Label/index.tsx");function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i; parentRef?: MutableRefObject; }) => ReactElement>"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"(e: ChangeEvent) => void"}},avatarSize:{defaultValue:{value:"40px"},description:"",name:"avatarSize",required:!1,type:{name:"string"}},onClick:{defaultValue:null,description:"@deprecated Please use the onUserAvatarClick instead",name:"onClick",required:!1,type:{name:"() => void"}},onUserAvatarClick:{defaultValue:null,description:"",name:"onUserAvatarClick",required:!1,type:{name:"() => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/UserListItem/index.tsx#UserListItem"]={docgenInfo:UserListItem.__docgenInfo,name:"UserListItem",path:"src/ui/UserListItem/index.tsx#UserListItem"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/UserListItem/stories/UserListItem.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return WithControl})),__webpack_require__.d(__webpack_exports__,"BasicUserList",(function(){return BasicUserList})),__webpack_require__.d(__webpack_exports__,"NoNickname",(function(){return NoNickname})),__webpack_require__.d(__webpack_exports__,"CheckBox",(function(){return CheckBox}));__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _index__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/ui/UserListItem/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/UserListItem",component:_index__WEBPACK_IMPORTED_MODULE_3__.a,parameters:{docs:{description:{component:'\n `import UserListItem from "@sendbird/uikit-react/ui/UserListItem";`\n'}}}};var useColumn=function useColumn(fn){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:fn()})};useColumn.displayName="useColumn";var WithControl=function WithControl(arg){return useColumn((function(){return[{userId:"userid-1",nickname:"Topy",profileUrl:"https://static.sendbird.com/sample/profiles/profile_12_512px.png"},{userId:"userid-2",nickname:"Middly",profileUrl:"https://static.sendbird.com/sample/user_sdk/user_sdk_01.png"},{userId:"userid-3",nickname:"Bottomy",profileUrl:"https://static.sendbird.com/sample/user_sdk/user_sdk_14.png"}].map((function(user){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index__WEBPACK_IMPORTED_MODULE_3__.a,Object.assign({user:user},arg))}))}))},BasicUserList=function BasicUserList(){return useColumn((function(){return[{userId:"userid-1",nickname:"Topy",profileUrl:"https://static.sendbird.com/sample/profiles/profile_12_512px.png"},{userId:"userid-2",nickname:"Middly",profileUrl:"https://static.sendbird.com/sample/user_sdk/user_sdk_01.png"},{userId:"userid-3",nickname:"Bottomy",profileUrl:"https://static.sendbird.com/sample/user_sdk/user_sdk_14.png"}].map((function(user){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index__WEBPACK_IMPORTED_MODULE_3__.a,{user:user})}))}))},NoNickname=function NoNickname(){return useColumn((function(){return[{userId:"userid-1",nickname:"Topy",profileUrl:"https://static.sendbird.com/sample/profiles/profile_12_512px.png"},{userId:"userid-2",nickname:"Middly",profileUrl:"https://static.sendbird.com/sample/user_sdk/user_sdk_01.png"},{userId:"userid-3",nickname:"Bottomy",profileUrl:"https://static.sendbird.com/sample/user_sdk/user_sdk_14.png"}].map((function(user){return user.nickname="",Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index__WEBPACK_IMPORTED_MODULE_3__.a,{user:user})}))}))},CheckBox=function CheckBox(){return useColumn((function(){return[{userId:"userid-1",nickname:"Topy",profileUrl:"https://static.sendbird.com/sample/profiles/profile_12_512px.png"},{userId:"userid-2",nickname:"Middly",profileUrl:"https://static.sendbird.com/sample/user_sdk/user_sdk_01.png"},{userId:"userid-3",nickname:"Bottomy",profileUrl:"https://static.sendbird.com/sample/user_sdk/user_sdk_14.png"}].map((function(user){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index__WEBPACK_IMPORTED_MODULE_3__.a,{user:user,checkBox:!0,checked:!0,onChange:function onChange(){}})}))}))};WithControl.parameters=Object.assign({storySource:{source:"(arg) => useColumn(\n () => getUserList().map((user) => )\n)"}},WithControl.parameters),BasicUserList.parameters=Object.assign({storySource:{source:"() => useColumn(\n () => getUserList().map((user) => )\n)"}},BasicUserList.parameters),NoNickname.parameters=Object.assign({storySource:{source:"() => useColumn(\n () => getUserList().map((user) => {\n user.nickname = '';\n return \n })\n)"}},NoNickname.parameters),CheckBox.parameters=Object.assign({storySource:{source:"() => useColumn(\n () => getUserList().map((user) => {}} />)\n)"}},CheckBox.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/UserListItem/stories/UserListItem.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/UserListItem/stories/UserListItem.stories.js"}),BasicUserList.__docgenInfo={description:"",methods:[],displayName:"BasicUserList"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/UserListItem/stories/UserListItem.stories.js"]={name:"BasicUserList",docgenInfo:BasicUserList.__docgenInfo,path:"src/ui/UserListItem/stories/UserListItem.stories.js"}),NoNickname.__docgenInfo={description:"",methods:[],displayName:"NoNickname"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/UserListItem/stories/UserListItem.stories.js"]={name:"NoNickname",docgenInfo:NoNickname.__docgenInfo,path:"src/ui/UserListItem/stories/UserListItem.stories.js"}),CheckBox.__docgenInfo={description:"",methods:[],displayName:"CheckBox"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/UserListItem/stories/UserListItem.stories.js"]={name:"CheckBox",docgenInfo:CheckBox.__docgenInfo,path:"src/ui/UserListItem/stories/UserListItem.stories.js"})},"./src/ui/UserProfile/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/UserProfile/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/UserProfile/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./src/ui/UserProfile/index.scss");var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/lib/LocalizationContext.tsx"),_lib_UserProfileContext__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/lib/UserProfileContext.tsx"),_lib_selectors__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/lib/selectors.ts"),_Avatar_index__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/ui/Avatar/index.tsx"),_Label__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/ui/Label/index.tsx"),_Button__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/ui/Button/index.tsx"),_hooks_useSendbirdStateContext__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/hooks/useSendbirdStateContext.tsx");function UserProfile(_ref){var _store$config,_store$config2,user=_ref.user,currentUserId=_ref.currentUserId,_ref$disableMessaging=_ref.disableMessaging,disableMessaging=void 0!==_ref$disableMessaging&&_ref$disableMessaging,onSuccess=_ref.onSuccess,store=Object(_hooks_useSendbirdStateContext__WEBPACK_IMPORTED_MODULE_8__.a)(),createChannel=Object(_lib_selectors__WEBPACK_IMPORTED_MODULE_4__.b)(store),logger=null==store||null===(_store$config=store.config)||void 0===_store$config?void 0:_store$config.logger,stringSet=Object(react__WEBPACK_IMPORTED_MODULE_1__.useContext)(_lib_LocalizationContext__WEBPACK_IMPORTED_MODULE_2__.a).stringSet,currentUserId_=currentUserId||(null==store||null===(_store$config2=store.config)||void 0===_store$config2?void 0:_store$config2.userId),onUserProfileMessage=Object(react__WEBPACK_IMPORTED_MODULE_1__.useContext)(_lib_UserProfileContext__WEBPACK_IMPORTED_MODULE_3__.a).onUserProfileMessage;return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",{className:"sendbird__user-profile"},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("section",{className:"sendbird__user-profile-avatar"},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Avatar_index__WEBPACK_IMPORTED_MODULE_5__.a,{height:"80px",width:"80px",src:null==user?void 0:user.profileUrl})),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("section",{className:"sendbird__user-profile-name"},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Label__WEBPACK_IMPORTED_MODULE_6__.d,{type:_Label__WEBPACK_IMPORTED_MODULE_6__.c.H_2,color:_Label__WEBPACK_IMPORTED_MODULE_6__.a.ONBACKGROUND_1},(null==user?void 0:user.nickname)||stringSet.NO_NAME)),(null==user?void 0:user.userId)!==currentUserId_&&!disableMessaging&&react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("section",{className:"sendbird__user-profile-message"},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Button__WEBPACK_IMPORTED_MODULE_7__.c,{type:_Button__WEBPACK_IMPORTED_MODULE_7__.b.SECONDARY,onClick:function onClick(){var params={isDistinct:!1,invitedUserIds:[null==user?void 0:user.userId],operatorUserIds:[currentUserId_]};onSuccess(),createChannel(params).then((function(groupChannel){logger.info("UserProfile, channel create",groupChannel),"function"==typeof onUserProfileMessage&&(null==onUserProfileMessage||onUserProfileMessage(groupChannel))}))}},stringSet.USER_PROFILE__MESSAGE)),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div",{className:"sendbird__user-profile-separator"}),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("section",{className:"sendbird__user-profile-userId"},react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Label__WEBPACK_IMPORTED_MODULE_6__.d,{className:"sendbird__user-profile-userId--label",type:_Label__WEBPACK_IMPORTED_MODULE_6__.c.CAPTION_2,color:_Label__WEBPACK_IMPORTED_MODULE_6__.a.ONBACKGROUND_2},stringSet.USER_PROFILE__USER_ID),react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Label__WEBPACK_IMPORTED_MODULE_6__.d,{className:"sendbird__user-profile-userId--value",type:_Label__WEBPACK_IMPORTED_MODULE_6__.c.BODY_1,color:_Label__WEBPACK_IMPORTED_MODULE_6__.a.ONBACKGROUND_1},null==user?void 0:user.userId)))}__webpack_exports__.a=UserProfile;try{UserProfile.displayName="UserProfile",UserProfile.__docgenInfo={description:"",displayName:"UserProfile",props:{user:{defaultValue:null,description:"",name:"user",required:!0,type:{name:"User"}},currentUserId:{defaultValue:null,description:"",name:"currentUserId",required:!1,type:{name:"string"}},logger:{defaultValue:null,description:"",name:"logger",required:!1,type:{name:"Logger"}},disableMessaging:{defaultValue:{value:"false"},description:"",name:"disableMessaging",required:!1,type:{name:"boolean"}},createChannel:{defaultValue:null,description:"",name:"createChannel",required:!1,type:{name:"(params: GroupChannelCreateParams) => Promise"}},onSuccess:{defaultValue:null,description:"",name:"onSuccess",required:!1,type:{name:"() => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/UserProfile/index.tsx#UserProfile"]={docgenInfo:UserProfile.__docgenInfo,name:"UserProfile",path:"src/ui/UserProfile/index.tsx#UserProfile"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/UserProfile/stories/UserProfile.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return WithControl})),__webpack_require__.d(__webpack_exports__,"myUserProfile",(function(){return myUserProfile}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _index_tsx__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/ui/UserProfile/index.tsx"),_lib_Sendbird__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/lib/Sendbird.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/UserProfile",component:_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,parameters:{docs:{description:{component:'\n `import UserProfile from "@sendbird/uikit-react/ui/UserProfile";`\n'}}}};var WithControl=function WithControl(arg){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_lib_Sendbird__WEBPACK_IMPORTED_MODULE_3__.a,{children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,Object.assign({user:{userId:"userid-1userid-1userid-1userid-1userid-1userid-1userid-1",nickname:"My long random name My long random name",profileUrl:"https://static.sendbird.com/sample/profiles/profile_12_512px.png"}},arg))})};WithControl.displayName="WithControl";var myUserProfile=function myUserProfile(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(_lib_Sendbird__WEBPACK_IMPORTED_MODULE_3__.a,{children:[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index_tsx__WEBPACK_IMPORTED_MODULE_2__.a,{user:{userId:"userid-1userid-1userid-1userid-1userid-1userid-1userid-1",nickname:"My long random name My long random name",profileUrl:"https://static.sendbird.com/sample/profiles/profile_12_512px.png"},currentUserId:"userid-1userid-1userid-1userid-1userid-1userid-1userid-1"}),";"]})};myUserProfile.displayName="myUserProfile",WithControl.parameters=Object.assign({storySource:{source:"(arg) => (\n \n \n \n)"}},WithControl.parameters),myUserProfile.parameters=Object.assign({storySource:{source:"() => (\n \n ;\n \n)"}},myUserProfile.parameters),WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/UserProfile/stories/UserProfile.stories.js"]={name:"WithControl",docgenInfo:WithControl.__docgenInfo,path:"src/ui/UserProfile/stories/UserProfile.stories.js"}),myUserProfile.__docgenInfo={description:"",methods:[],displayName:"myUserProfile"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/UserProfile/stories/UserProfile.stories.js"]={name:"myUserProfile",docgenInfo:myUserProfile.__docgenInfo,path:"src/ui/UserProfile/stories/UserProfile.stories.js"})},"./src/ui/VoiceMessageInput/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/VoiceMessageInput/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/VoiceMessageInput/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return VoiceMessageInput_VoiceMessageInput}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),PlaybackTime=(__webpack_require__("./src/ui/VoiceMessageInput/index.scss"),__webpack_require__("./src/ui/PlaybackTime/index.tsx")),ProgressBar=__webpack_require__("./src/ui/ProgressBar/index.tsx"),TextButton=__webpack_require__("./src/ui/TextButton/index.tsx"),Icon=__webpack_require__("./src/ui/Icon/index.tsx"),Label=__webpack_require__("./src/ui/Label/index.tsx"),LocalizationContext=__webpack_require__("./src/lib/LocalizationContext.tsx"),types=__webpack_require__("./src/ui/VoiceMessageInput/types.ts"),controlerIcons_ControlerIcon=function ControlerIcon(_ref){switch(_ref.inputState){case types.a.READY_TO_RECORD:return react_default.a.createElement("div",{className:"sendbird-controler-icon record-icon"});case types.a.RECORDING:return react_default.a.createElement("div",{className:"sendbird-controler-icon stop-icon"});case types.a.READY_TO_PLAY:return react_default.a.createElement(Icon.c,{className:"sendbird-controler-icon play-icon",width:"20px",height:"20px",type:Icon.b.PLAY,fillColor:Icon.a.ON_BACKGROUND_1});case types.a.PLAYING:return react_default.a.createElement("div",{className:"sendbird-controler-icon pause-icon"},react_default.a.createElement("div",{className:"sendbird-controler-icon pause-icon-inner"}),react_default.a.createElement("div",{className:"sendbird-controler-icon pause-icon-inner"}));default:return null}},VoiceMessageInput_controlerIcons=controlerIcons_ControlerIcon;try{controlerIcons_ControlerIcon.displayName="ControlerIcon",controlerIcons_ControlerIcon.__docgenInfo={description:"",displayName:"ControlerIcon",props:{inputState:{defaultValue:null,description:"",name:"inputState",required:!1,type:{name:"enum",value:[{value:'"READY_TO_RECORD"'},{value:'"RECORDING"'},{value:'"READY_TO_PLAY"'},{value:'"PLAYING"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/VoiceMessageInput/controlerIcons.tsx#ControlerIcon"]={docgenInfo:controlerIcons_ControlerIcon.__docgenInfo,name:"ControlerIcon",path:"src/ui/VoiceMessageInput/controlerIcons.tsx#ControlerIcon"})}catch(__react_docgen_typescript_loader_error){}try{controlerIcons.displayName="controlerIcons",controlerIcons.__docgenInfo={description:"",displayName:"controlerIcons",props:{inputState:{defaultValue:null,description:"",name:"inputState",required:!1,type:{name:"enum",value:[{value:'"READY_TO_RECORD"'},{value:'"RECORDING"'},{value:'"READY_TO_PLAY"'},{value:'"PLAYING"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/VoiceMessageInput/controlerIcons.tsx#controlerIcons"]={docgenInfo:controlerIcons.__docgenInfo,name:"controlerIcons",path:"src/ui/VoiceMessageInput/controlerIcons.tsx#controlerIcons"})}catch(__react_docgen_typescript_loader_error){}var consts=__webpack_require__("./src/utils/consts.ts");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);icurrentValue}),[currentType,minRecordTime,currentValue]),isPlayMode=Object(react.useMemo)((function(){return currentType===types.a.READY_TO_PLAY||currentType===types.a.PLAYING}),[currentType]),stringSet=Object(LocalizationContext.c)().stringSet,handleOnControlClick=Object(react.useCallback)((function(){var currentTime=Date.now();currentTime-lastClickTime>consts.t&&(onControlClick(currentType),setLastClickTime(currentTime))}),[currentType]);return react_default.a.createElement("div",{className:"sendbird-voice-message-input"},react_default.a.createElement("div",{className:"sendbird-voice-message-input__indicator"},react_default.a.createElement("div",{className:"sendbird-voice-message-input__indicator__progress-bar"},react_default.a.createElement(ProgressBar.b,{className:"sendbird-voice-message-input__indicator__progress-bar__bar",disabled:isReadyToRecord,maxSize:maximumValue,currentSize:currentValue})),isRecording?react_default.a.createElement("div",{className:"sendbird-voice-message-input__indicator__on-rec"}):null,react_default.a.createElement(PlaybackTime.a,{className:"sendbird-voice-message-input__indicator__playback-time",time:isPlayMode?maximumValue-currentValue:currentValue,labelColor:isReadyToRecord?Label.a.ONBACKGROUND_4:Label.a.ONCONTENT_1})),react_default.a.createElement("div",{className:"sendbird-voice-message-input__controler"},(null==renderCancelButton?void 0:renderCancelButton())||react_default.a.createElement(TextButton.a,{className:"sendbird-voice-message-input__controler__cancel",onClick:function handleOnCancelClick(){var currentTime=Date.now();currentTime-lastClickTime>consts.t&&(onCancelClick(),setLastClickTime(currentTime))},disableUnderline:!0},react_default.a.createElement(Label.d,{type:Label.c.BUTTON_1,color:Label.a.PRIMARY},stringSet.BUTTON__CANCEL)),(null==renderControlButton?void 0:renderControlButton(currentType))||react_default.a.createElement("div",{className:"sendbird-voice-message-input__controler__main",onClick:handleOnControlClick},react_default.a.createElement(VoiceMessageInput_controlerIcons,{inputState:currentType})),(null==renderSubmitButton?void 0:renderSubmitButton())||react_default.a.createElement("div",{className:"sendbird-voice-message-input__controler__submit ".concat(isSendButtonDisabled?"voice-message--disabled":""),onClick:function handleOnSubmitClick(){var currentTime=Date.now();currentTime-lastClickTime>consts.t&&(isSendButtonDisabled||onSubmitClick(),setLastClickTime(currentTime))}},react_default.a.createElement(Icon.c,{width:"19px",height:"19px",type:Icon.b.SEND,fillColor:isSendButtonDisabled?Icon.a.ON_BACKGROUND_4:Icon.a.CONTENT}))))};try{VoiceMessageInput_VoiceMessageInput.displayName="VoiceMessageInput",VoiceMessageInput_VoiceMessageInput.__docgenInfo={description:"",displayName:"VoiceMessageInput",props:{minRecordTime:{defaultValue:{value:"1000"},description:"",name:"minRecordTime",required:!1,type:{name:"number"}},maximumValue:{defaultValue:null,description:"",name:"maximumValue",required:!0,type:{name:"number"}},currentValue:{defaultValue:{value:"0"},description:"",name:"currentValue",required:!1,type:{name:"number"}},currentType:{defaultValue:null,description:"",name:"currentType",required:!0,type:{name:"enum",value:[{value:'"READY_TO_RECORD"'},{value:'"RECORDING"'},{value:'"READY_TO_PLAY"'},{value:'"PLAYING"'}]}},onCancelClick:{defaultValue:null,description:"",name:"onCancelClick",required:!1,type:{name:"() => void"}},onControlClick:{defaultValue:null,description:"",name:"onControlClick",required:!1,type:{name:"(type: VoiceMessageInputStatus) => void"}},onSubmitClick:{defaultValue:null,description:"",name:"onSubmitClick",required:!1,type:{name:"() => void"}},renderCancelButton:{defaultValue:null,description:"",name:"renderCancelButton",required:!1,type:{name:"() => ReactElement>"}},renderControlButton:{defaultValue:null,description:"",name:"renderControlButton",required:!1,type:{name:"(type: VoiceMessageInputStatus) => ReactElement>"}},renderSubmitButton:{defaultValue:null,description:"",name:"renderSubmitButton",required:!1,type:{name:"() => ReactElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/VoiceMessageInput/index.tsx#VoiceMessageInput"]={docgenInfo:VoiceMessageInput_VoiceMessageInput.__docgenInfo,name:"VoiceMessageInput",path:"src/ui/VoiceMessageInput/index.tsx#VoiceMessageInput"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/VoiceMessageInput/stories/VoiceMessageInput.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"Basic",(function(){return Basic}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js");var react__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/react/index.js"),_index__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./src/ui/VoiceMessageInput/index.tsx"),_types__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./src/ui/VoiceMessageInput/types.ts"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/react/jsx-runtime.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i {\n const [voiceMessageState, setVoiceMessageState] = useState(VoiceMessageInputStatus.READY_TO_RECORD);\n\n return (\n
\n {\n console.log('onCancelClick');\n }}\n onSubmitClick={() => {\n console.log('onSubmitClick');\n }}\n onRecordClick={() => {\n console.log('onRecordClick');\n setVoiceMessageState(VoiceMessageInputStatus.RECORDING);\n }}\n onRecordStopClick={() => {\n console.log('onRecordStopClick');\n setVoiceMessageState(VoiceMessageInputStatus.READY_TO_PLAY);\n }}\n onPlayClick={() => {\n console.log('onPlayClick');\n setVoiceMessageState(VoiceMessageInputStatus.PLAYING);\n }}\n onPauseClick={() => {\n console.log('onPauseClick');\n setVoiceMessageState(VoiceMessageInputStatus.READY_TO_PLAY);\n }}\n />\n
\n );\n}"}},Basic.parameters),Basic.__docgenInfo={description:"",methods:[],displayName:"Basic"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/VoiceMessageInput/stories/VoiceMessageInput.stories.js"]={name:"Basic",docgenInfo:Basic.__docgenInfo,path:"src/ui/VoiceMessageInput/stories/VoiceMessageInput.stories.js"})},"./src/ui/VoiceMessageInput/types.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return VoiceMessageInputStatus}));var VoiceMessageInputStatus={READY_TO_RECORD:"READY_TO_RECORD",RECORDING:"RECORDING",READY_TO_PLAY:"READY_TO_PLAY",PLAYING:"PLAYING"}},"./src/ui/VoiceMessageItemBody/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/VoiceMessageItemBody/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/VoiceMessageItemBody/index.tsx":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.find.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var react__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__),_ProgressBar__WEBPACK_IMPORTED_MODULE_14__=(__webpack_require__("./src/ui/VoiceMessageItemBody/index.scss"),__webpack_require__("./src/ui/ProgressBar/index.tsx")),_hooks_VoicePlayer_useVoicePlayer__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./src/hooks/VoicePlayer/useVoicePlayer.tsx"),_PlaybackTime__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./src/ui/PlaybackTime/index.tsx"),_Loader__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./src/ui/Loader/index.tsx"),_Icon__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./src/ui/Icon/index.tsx"),_Label__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./src/ui/Label/index.tsx"),_hooks_VoicePlayer_dux_initialState__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/hooks/VoicePlayer/dux/initialState.ts");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0?setUsingReaction(!0):setUsingReaction(!1)}),[isReactionEnabled,null==message||null===(_message$reactions2=message.reactions)||void 0===_message$reactions2?void 0:_message$reactions2.length]);var progresBarMaxSize=Object(react__WEBPACK_IMPORTED_MODULE_12__.useMemo)((function(){if(null!=message&&message.metaArrays){var _message$metaArrays$f,_duration=null==message||null===(_message$metaArrays$f=message.metaArrays.find((function(metaArray){return"KEY_VOICE_MESSAGE_DURATION"===metaArray.key})))||void 0===_message$metaArrays$f?void 0:_message$metaArrays$f.value[0];return _duration&&parseInt(_duration)}return 1}),[null==message?void 0:message.metaArrays]);return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",{className:"sendbird-voice-message-item-body ".concat(className," ").concat(usingReaction?"is-reactions-contained":"")},react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(_ProgressBar__WEBPACK_IMPORTED_MODULE_14__.b,{className:"sendbird-voice-message-item-body__progress-bar",maxSize:duration||progresBarMaxSize,currentSize:playbackTime,colorType:isByMe?_ProgressBar__WEBPACK_IMPORTED_MODULE_14__.a.PRIMARY:_ProgressBar__WEBPACK_IMPORTED_MODULE_14__.a.GRAY}),react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",{className:"sendbird-voice-message-item-body__status-button"},(playingStatus===_hooks_VoicePlayer_dux_initialState__WEBPACK_IMPORTED_MODULE_20__.b.IDLE||playingStatus===_hooks_VoicePlayer_dux_initialState__WEBPACK_IMPORTED_MODULE_20__.b.PAUSED)&&react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",{className:"sendbird-voice-message-item-body__status-button__button",onClick:play},react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_18__.c,{width:"18px",height:"18px",type:_Icon__WEBPACK_IMPORTED_MODULE_18__.b.PLAY,fillColor:_Icon__WEBPACK_IMPORTED_MODULE_18__.a.PRIMARY})),playingStatus===_hooks_VoicePlayer_dux_initialState__WEBPACK_IMPORTED_MODULE_20__.b.PREPARING&&react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(_Loader__WEBPACK_IMPORTED_MODULE_17__.a,{width:"22.2px",height:"22.2px"},react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(_Icon__WEBPACK_IMPORTED_MODULE_18__.c,{width:"22.2px",height:"22.2px",type:_Icon__WEBPACK_IMPORTED_MODULE_18__.b.SPINNER,fillColor:_Icon__WEBPACK_IMPORTED_MODULE_18__.a.PRIMARY_2})),playingStatus===_hooks_VoicePlayer_dux_initialState__WEBPACK_IMPORTED_MODULE_20__.b.PLAYING&&react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",{className:"sendbird-voice-message-item-body__status-button__button",onClick:function onClick(){pause()}},react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",{className:"sendbird-voice-message-item-body__status-button__button__pause"},react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",{className:"sendbird-voice-message-item-body__status-button__button__pause__inner"}),react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",{className:"sendbird-voice-message-item-body__status-button__button__pause__inner"})))),react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(_PlaybackTime__WEBPACK_IMPORTED_MODULE_16__.a,{className:"sendbird-voice-message-item-body__playback-time",time:progresBarMaxSize-playbackTime,labelType:_Label__WEBPACK_IMPORTED_MODULE_19__.c.BODY_1,labelColor:isByMe?_Label__WEBPACK_IMPORTED_MODULE_19__.a.ONCONTENT_1:_Label__WEBPACK_IMPORTED_MODULE_19__.a.ONBACKGROUND_1}))};__webpack_exports__.a=VoiceMessageItemBody;try{VoiceMessageItemBody.displayName="VoiceMessageItemBody",VoiceMessageItemBody.__docgenInfo={description:"",displayName:"VoiceMessageItemBody",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"FileMessage"}},channelUrl:{defaultValue:null,description:"",name:"channelUrl",required:!0,type:{name:"string"}},isByMe:{defaultValue:{value:"false"},description:"",name:"isByMe",required:!1,type:{name:"boolean"}},isReactionEnabled:{defaultValue:{value:"false"},description:"",name:"isReactionEnabled",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/VoiceMessageItemBody/index.tsx#VoiceMessageItemBody"]={docgenInfo:VoiceMessageItemBody.__docgenInfo,name:"VoiceMessageItemBody",path:"src/ui/VoiceMessageItemBody/index.tsx#VoiceMessageItemBody"})}catch(__react_docgen_typescript_loader_error){}},"./src/ui/VoiceMessageItemBody/stories/VoiceMessageItemBody.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"Basic",(function(){return Basic}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/react/index.js");var _hooks_VoicePlayer__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/hooks/VoicePlayer/index.tsx"),_index__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/ui/VoiceMessageItemBody/index.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/VoiceMessageItemBody",component:_index__WEBPACK_IMPORTED_MODULE_3__.a,parameters:{docs:{description:{component:'\n `import VoiceMessageItemBody from "@sendbird/uikit-react/ui/VoiceMessageItemBody";`\n'}}}};var Basic=function Basic(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("div",{style:{width:"100%",height:"500px",display:"flex",flexDirection:"column",gap:"100px"},children:Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(_hooks_VoicePlayer__WEBPACK_IMPORTED_MODULE_2__.b,{children:[Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index__WEBPACK_IMPORTED_MODULE_3__.a,{message:{url:"https://file-ap-1.sendbird.com/5ed2eac62e9b41609ac34340b6b3aa75.mp3"}}),Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index__WEBPACK_IMPORTED_MODULE_3__.a,{message:{url:"https://file-ap-1.sendbird.com/5ed2eac62e9b41609ac34340b6b3aa75.mp3"},isByMe:!0})]})})};Basic.displayName="Basic",Basic.parameters=Object.assign({storySource:{source:"() => {\n return (\n
\n \n \n \n \n
\n )\n}"}},Basic.parameters),Basic.__docgenInfo={description:"",methods:[],displayName:"Basic"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/VoiceMessageItemBody/stories/VoiceMessageItemBody.stories.js"]={name:"Basic",docgenInfo:Basic.__docgenInfo,path:"src/ui/VoiceMessageItemBody/stories/VoiceMessageItemBody.stories.js"})},"./src/ui/Word/index.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/Word/index.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/ui/Word/stories/Word.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"WithControl",(function(){return Word_stories_WithControl}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js");var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),Label=(__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./src/ui/Word/index.scss"),__webpack_require__("./src/ui/Label/index.tsx")),LinkLabel=__webpack_require__("./src/ui/LinkLabel/index.tsx"),utils=__webpack_require__("./src/utils/index.ts"),MentionLabel=__webpack_require__("./src/ui/MentionLabel/index.tsx");function Word_Word(props){var word=props.word,message=props.message,_props$isByMe=props.isByMe,isByMe=void 0!==_props$isByMe&&_props$isByMe,_props$mentionTemplat=props.mentionTemplate,mentionTemplate=void 0===_props$mentionTemplat?"@":_props$mentionTemplat,_props$renderString=props.renderString,renderString=void 0===_props$renderString?null:_props$renderString;return""===word?null:react_default.a.createElement("span",{className:"sendbird-word"},Object(utils.d)(word,null==message?void 0:message.mentionedUsers).map((function(stringObj,index){var type=(null==stringObj?void 0:stringObj.type)||"",value=(null==stringObj?void 0:stringObj.value)||"",userId=(null==stringObj?void 0:stringObj.userId)||"",key="".concat(value,"-").concat(index);return renderString&&"function"==typeof renderString?renderString(stringObj):type===utils.a.mention?react_default.a.createElement(MentionLabel.a,{key:key,mentionTemplate:mentionTemplate,mentionedUserId:userId,mentionedUserNickname:value,isByMe:isByMe}):type===utils.a.url?react_default.a.createElement(LinkLabel.c,{key:key,className:"sendbird-word__url",src:word,type:Label.c.BODY_1},value):value})))}try{Word_Word.displayName="Word",Word_Word.__docgenInfo={description:"",displayName:"Word",props:{word:{defaultValue:null,description:"",name:"word",required:!0,type:{name:"string"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"UserMessage"}},isByMe:{defaultValue:null,description:"",name:"isByMe",required:!1,type:{name:"boolean"}},mentionTemplate:{defaultValue:null,description:"",name:"mentionTemplate",required:!1,type:{name:"string"}},renderString:{defaultValue:null,description:"",name:"renderString",required:!1,type:{name:"(stringObj: StringObj) => Element"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Word/index.tsx#Word"]={docgenInfo:Word_Word.__docgenInfo,name:"Word",path:"src/ui/Word/index.tsx#Word"})}catch(__react_docgen_typescript_loader_error){}var jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js"),Word_stories_WithControl=(__webpack_exports__.default={title:"@sendbird/uikit-react/ui/Word",component:Word_Word,parameters:{docs:{description:{component:'\n `import Word from "@sendbird/uikit-react/ui/Word";`\n'}}}},function WithControl(arg){return Object(jsx_runtime.jsx)(Word_Word,Object.assign({word:"example"},arg))});Word_stories_WithControl.displayName="WithControl",Word_stories_WithControl.parameters=Object.assign({storySource:{source:'(arg) => '}},Word_stories_WithControl.parameters),Word_stories_WithControl.__docgenInfo={description:"",methods:[],displayName:"WithControl"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/ui/Word/stories/Word.stories.js"]={name:"WithControl",docgenInfo:Word_stories_WithControl.__docgenInfo,path:"src/ui/Word/stories/Word.stories.js"})},"./src/ui/stories/index.stories.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/jsx-runtime.js");__webpack_exports__.default={title:"@sendbird/uikit-react/ui/Another",component:function Story(){return Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment,{children:"\n # UI components\n Find all the reusable UI components under this list: '@sendbird/uikit-react/ui\n "})}}},"./src/utils/color.scss":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/utils/color.scss");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./src/utils/color.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return Colors})),__webpack_require__.d(__webpack_exports__,"b",(function(){return changeColorToClassName}));__webpack_require__("./src/utils/color.scss");var Colors=function(Colors){return Colors.ONBACKGROUND_1="ONBACKGROUND_1",Colors.ONBACKGROUND_2="ONBACKGROUND_2",Colors.ONBACKGROUND_3="ONBACKGROUND_3",Colors.ONBACKGROUND_4="ONBACKGROUND_4",Colors.ONCONTENT_1="ONCONTENT_1",Colors.ONCONTENT_2="ONCONTENT_2",Colors.PRIMARY="PRIMARY",Colors.ERROR="ERROR",Colors}({}),changeColorToClassName=function changeColorToClassName(color){switch(color){case Colors.ONBACKGROUND_1:return"sendbird-color--onbackground-1";case Colors.ONBACKGROUND_2:return"sendbird-color--onbackground-2";case Colors.ONBACKGROUND_3:return"sendbird-color--onbackground-3";case Colors.ONBACKGROUND_4:return"sendbird-color--onbackground-4";case Colors.ONCONTENT_1:return"sendbird-color--oncontent-1";case Colors.PRIMARY:return"sendbird-color--primary";case Colors.ERROR:return"sendbird-color--error";default:return null}}},"./src/utils/compareIds.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return compareIds}));__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js");var isEmpty=function isEmpty(val){return null==val};function compareIds(a,b){return!isEmpty(a)&&!isEmpty(b)&&a.toString()===b.toString()}},"./src/utils/compressImages.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return compressImages}));__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.async-iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.math.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.json.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/web.url.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js");var _pxToNumber__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./src/utils/pxToNumber.ts");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _regeneratorRuntime(){_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw new Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}var compressImage=function compressImage(_ref){var imageFile=_ref.imageFile,compressionRate=_ref.compressionRate,resizingWidth=_ref.resizingWidth,resizingHeight=_ref.resizingHeight,image=document.createElement("img");return new Promise((function(resolve,reject){image.src=URL.createObjectURL(imageFile),image.onerror=reject,image.onload=function(){URL.revokeObjectURL(image.src);var canvas=document.createElement("canvas"),originWidth=image.width,originHeight=image.height,targetResizingWidth=!resizingWidth||resizingWidth>originWidth?originWidth:resizingWidth,targetResizingHeight=!resizingHeight||resizingHeight>originHeight?originHeight:resizingHeight,widthRatio=originWidth/targetResizingWidth,heightRatio=originHeight/targetResizingHeight;widthRatio>heightRatio?targetResizingHeight=originHeight/(resizingWidth?widthRatio:1):heightRatio>widthRatio&&(targetResizingWidth=originWidth/(resizingHeight?heightRatio:1)),canvas.width=targetResizingWidth,canvas.height=targetResizingHeight;var ctx=canvas.getContext("2d");ctx?(ctx.drawImage(image,0,0,targetResizingWidth,targetResizingHeight),ctx.canvas.toBlob((function(blob){if(blob){var file=new File([blob],imageFile.name,{type:imageFile.type});resolve(file)}else reject(new Error("Failed to compress image"))}),imageFile.type,compressionRate)):reject(new Error("Failed to get canvas 2d context"))}}))},compressImages=function(){var _ref3=_asyncToGenerator(_regeneratorRuntime().mark((function _callee2(_ref2){var files,logger,imageCompression,compressionRate,resizingWidth,resizingHeight,result;return _regeneratorRuntime().wrap((function _callee2$(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:if(files=_ref2.files,logger=_ref2.logger,imageCompression=_ref2.imageCompression,compressionRate=imageCompression.compressionRate,resizingWidth=Object(_pxToNumber__WEBPACK_IMPORTED_MODULE_18__.a)(imageCompression.resizingWidth),resizingHeight=Object(_pxToNumber__WEBPACK_IMPORTED_MODULE_18__.a)(imageCompression.resizingHeight),result={failedIndexes:[],compressedFiles:[]},Array.isArray(files)&&files.length>0){_context2.next=8;break}return null==logger||logger.warning("utils - compressImages: There are no files.",files),_context2.abrupt("return",result);case 8:if(!(compressionRate<0||1arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0?acceptableMimeTypes.reduce((function(prev,curr){switch(curr){case"image":prev.push.apply(prev,_toConsumableArray(SUPPORTED_MIMES.IMAGE));break;case"video":prev.push.apply(prev,_toConsumableArray(SUPPORTED_MIMES.VIDEO));break;case"audio":prev.push.apply(prev,_toConsumableArray(SUPPORTED_MIMES.AUDIO));break;default:prev.push(curr)}return prev}),[]).join():Object.values(SUPPORTED_MIMES).reduce((function(prev,curr){return prev.concat(curr)}),[]).join()},UIKitMessageTypes={ADMIN:"ADMIN",TEXT:"TEXT",FILE:"FILE",MULTIPLE_FILES:"MULTIPLE_FILES",THUMBNAIL:"THUMBNAIL",OG:"OG",UNKNOWN:"UNKNOWN"},UIKitFileTypes={IMAGE:"IMAGE",AUDIO:"AUDIO",VIDEO:"VIDEO",GIF:"GIF",VOICE:"VOICE",OTHERS:"OTHERS"},isTextuallyNull=function isTextuallyNull(text){return""===text||null===text},isImage=function isImage(type){return SUPPORTED_MIMES.IMAGE.indexOf(type)>=0},isVideo=function isVideo(type){return SUPPORTED_MIMES.VIDEO.indexOf(type)>=0},isGif=function isGif(type){return"image/gif"===type},isSupportedFileView=function isSupportedFileView(type){return isImage(type)||isVideo(type)},isAudio=function isAudio(type){return SUPPORTED_MIMES.AUDIO.indexOf(type)>=0},getUIKitFileTypes=function getUIKitFileTypes(){return _objectSpread({},UIKitFileTypes)},getUIKitFileType=function getUIKitFileType(type){return isGif(type)?UIKitFileTypes.GIF:isImage(type)?UIKitFileTypes.IMAGE:isVideo(type)?UIKitFileTypes.VIDEO:isAudio(type)?UIKitFileTypes.AUDIO:UIKitFileTypes.OTHERS},isSentMessage=function isSentMessage(message){return"succeeded"===message.sendingStatus},isReadMessage=function isReadMessage(channel,message){return Object(_exports_getOutgoingMessageState__WEBPACK_IMPORTED_MODULE_36__.b)(channel,message)===_exports_getOutgoingMessageState__WEBPACK_IMPORTED_MODULE_36__.a.READ},isFailedMessage=function isFailedMessage(message){return"failed"===(null==message?void 0:message.sendingStatus)},isPendingMessage=function isPendingMessage(message){return"pending"===(null==message?void 0:message.sendingStatus)},isSentStatus=function isSentStatus(state){return state===_exports_getOutgoingMessageState__WEBPACK_IMPORTED_MODULE_36__.a.SENT||state===_exports_getOutgoingMessageState__WEBPACK_IMPORTED_MODULE_36__.a.DELIVERED||state===_exports_getOutgoingMessageState__WEBPACK_IMPORTED_MODULE_36__.a.READ},isUserMessage=function isUserMessage(message){return message&&(message.isUserMessage&&"function"==typeof message.isUserMessage?message.isUserMessage():"user"===(null==message?void 0:message.messageType))},isFileMessage=function isFileMessage(message){return message&&(message.isFileMessage&&"function"==typeof message.isFileMessage?message.isFileMessage():"file"===(null==message?void 0:message.messageType))},isMultipleFilesMessage=function isMultipleFilesMessage(message){return message&&(message.isMultipleFilesMessage&&"function"==typeof message.isMultipleFilesMessage?message.isMultipleFilesMessage():"file"===message.messageType&&Object.prototype.hasOwnProperty.call(message,"fileInfoList"))},isThreadMessage=function isThreadMessage(message){return!!message.parentMessageId&&!!message.parentMessage},isTemplateMessage=function isTemplateMessage(message){var _message$extendedMess;return!(!message||null===(_message$extendedMess=message.extendedMessagePayload)||void 0===_message$extendedMess||!_message$extendedMess.template)},UI_CONTAINER_TYPES=function(UI_CONTAINER_TYPES){return UI_CONTAINER_TYPES.DEFAULT="",UI_CONTAINER_TYPES.WIDE="ui_container_type__wide",UI_CONTAINER_TYPES.DEFAULT_CAROUSEL="ui_container_type__default-carousel",UI_CONTAINER_TYPES}({}),getMessageContentMiddleClassNameByContainerType=function getMessageContentMiddleClassNameByContainerType(_ref){var _message$extendedMess3,message=_ref.message,isMobile=_ref.isMobile,containerType=null===(_message$extendedMess3=message.extendedMessagePayload)||void 0===_message$extendedMess3||null===(_message$extendedMess3=_message$extendedMess3.ui)||void 0===_message$extendedMess3?void 0:_message$extendedMess3.container_type;return function isCompositeTemplateMessage(message){var _message$extendedMess2;return!(!message||null===(_message$extendedMess2=message.extendedMessagePayload)||void 0===_message$extendedMess2||null===(_message$extendedMess2=_message$extendedMess2.template)||void 0===_message$extendedMess2||!_message$extendedMess2.view_variables)}(message)?UI_CONTAINER_TYPES.DEFAULT_CAROUSEL:isMobile&&containerType===_types__WEBPACK_IMPORTED_MODULE_37__.a.WIDE?UI_CONTAINER_TYPES.WIDE:UI_CONTAINER_TYPES.DEFAULT},isOGMessage=function isOGMessage(message){var _message$ogMetaData,_message$ogMetaData2,_message$ogMetaData3,_message$ogMetaData4;return!!(message&&isUserMessage(message)&&null!=message&&message.ogMetaData&&(null!==(_message$ogMetaData=message.ogMetaData)&&void 0!==_message$ogMetaData&&_message$ogMetaData.url||null!==(_message$ogMetaData2=message.ogMetaData)&&void 0!==_message$ogMetaData2&&_message$ogMetaData2.title||null!==(_message$ogMetaData3=message.ogMetaData)&&void 0!==_message$ogMetaData3&&_message$ogMetaData3.description||null!==(_message$ogMetaData4=message.ogMetaData)&&void 0!==_message$ogMetaData4&&_message$ogMetaData4.defaultImage))},isTextMessage=function isTextMessage(message){return isUserMessage(message)},isThumbnailMessage=function isThumbnailMessage(message){return message&&isFileMessage(message)&&isSupportedFileView(message.type)},isImageMessage=function isImageMessage(message){return message&&message.isFileMessage()&&isThumbnailMessage(message)&&isImage(message.type)},isImageFileInfo=function isImageFileInfo(fileInfo){return fileInfo&&(isImage(fileInfo.mimeType)||isGif(fileInfo.mimeType))},isVideoMessage=function isVideoMessage(message){return message&&isThumbnailMessage(message)&&isVideo(message.type)},isGifMessage=function isGifMessage(message){return message&&isThumbnailMessage(message)&&isGif(message.type)},isAudioMessage=function isAudioMessage(message){return message&&isFileMessage(message)&&isAudio(message.type)},isVoiceMessageMimeType=function isVoiceMessageMimeType(type){return/^voice\//.test(type)},isVoiceMessage=function isVoiceMessage(message){var _message$metaArrays$f,_message$metaArrays;if(!message||!isFileMessage(message)||!message.type)return!1;var _type$split2=_slicedToArray(message.type.split(";"),2),mimeType=_type$split2[0],typeParameter=_type$split2[1];if(!function isAudioMessageMimeType(type){return/^audio\//.test(type)}(mimeType))return!1;if(typeParameter){var _typeParameter$split2=_slicedToArray(typeParameter.split("="),2),key=_typeParameter$split2[0],value=_typeParameter$split2[1];return"sbu_type"===key&&"voice"===value}return isVoiceMessageMimeType(null!==(_message$metaArrays$f=null==message||null===(_message$metaArrays=message.metaArrays)||void 0===_message$metaArrays||null===(_message$metaArrays=_message$metaArrays.find((function(metaArray){return"KEY_INTERNAL_MESSAGE_TYPE"===metaArray.key})))||void 0===_message$metaArrays||null===(_message$metaArrays=_message$metaArrays.value)||void 0===_message$metaArrays?void 0:_message$metaArrays[0])&&void 0!==_message$metaArrays$f?_message$metaArrays$f:"")},isEditedMessage=function isEditedMessage(message){return isUserMessage(message)&&(null==message?void 0:message.updatedAt)>0},getUIKitMessageTypes=function getUIKitMessageTypes(){return _objectSpread({},UIKitMessageTypes)},getUIKitMessageType=function getUIKitMessageType(message){return function isAdminMessage(message){return message&&(message.isAdminMessage&&"function"==typeof message.isAdminMessage?message.isAdminMessage():"admin"===(null==message?void 0:message.messageType))}(message)?UIKitMessageTypes.ADMIN:isUserMessage(message)?isOGMessage(message)?UIKitMessageTypes.OG:UIKitMessageTypes.TEXT:isMultipleFilesMessage(message)?UIKitMessageTypes.MULTIPLE_FILES:isFileMessage(message)?isThumbnailMessage(message)?UIKitMessageTypes.THUMBNAIL:isVoiceMessage(message)?UIKitFileTypes.VOICE:UIKitMessageTypes.FILE:UIKitMessageTypes.UNKNOWN},reducer=function reducer(accumulator,currentValue){return Array.isArray(currentValue)?[].concat(_toConsumableArray(accumulator),_toConsumableArray(currentValue)):(accumulator.push(currentValue),accumulator)},getClassName=function getClassName(classNames){return Array.isArray(classNames)?classNames.reduce(reducer,[]).join(" "):classNames},startsWithAtAndEndsWithBraces=function startsWithAtAndEndsWithBraces(str){return/^\{@.*\}$/.test(str)},removeAtAndBraces=function removeAtAndBraces(str){return str.replace(/^\{@|}$/g,"")},isReactedBy=function isReactedBy(userId,reaction){return reaction.userIds.some((function(reactorUserId){return reactorUserId===userId}))},getEmojiTooltipString=function getEmojiTooltipString(reaction,userId,memberNicknamesMap,stringSet){var you="";return isReactedBy(userId,reaction)&&(you=1===reaction.userIds.length?stringSet.TOOLTIP__YOU:stringSet.TOOLTIP__AND_YOU),"".concat(reaction.userIds.filter((function(reactorUserId){return reactorUserId!==userId})).map((function(reactorUserId){return memberNicknamesMap.get(reactorUserId)||stringSet.TOOLTIP__UNKNOWN_USER})).join(", ")).concat(you)};function getSuggestedReplies(message){var _message$extendedMess4;return Array.isArray(null==message||null===(_message$extendedMess4=message.extendedMessagePayload)||void 0===_message$extendedMess4?void 0:_message$extendedMess4.suggested_replies)?message.extendedMessagePayload.suggested_replies:[]}var URL_REG=/^((http|https):\/\/)?([a-z\d-]+\.)+[a-z]{2,}(\:[0-9]{1,5})?(\/[-a-zA-Z\d%_.~+&=]*)*(\?[;&a-zA-Z\d%_.~+=-]*)?(#\S*)?$/,isUrl=function isUrl(text){return URL_REG.test(text)},truncateString=function truncateString(fullStr,strLen){if(strLen||(strLen=40),null==fullStr)return"";if(fullStr.length<=strLen)return fullStr;var charsToShow=strLen-3,frontChars=Math.ceil(charsToShow/2),backChars=Math.floor(charsToShow/2);return fullStr.substr(0,frontChars)+"..."+fullStr.substr(fullStr.length-backChars)},copyToClipboard=function copyToClipboard(text){if(window.clipboardData&&window.clipboardData.setData)return window.clipboardData.setData("Text",text);if(document.queryCommandSupported&&document.queryCommandSupported("copy")){var textarea=document.createElement("textarea");textarea.textContent=text,textarea.style.position="fixed",document.body.appendChild(textarea),textarea.select();try{return document.execCommand("copy")}catch(ex){return!1}finally{document.body.removeChild(textarea)}}return!1},getEmojiListAll=function getEmojiListAll(emojiContainer){var _emojiContainer$emoji;return null==emojiContainer||null===(_emojiContainer$emoji=emojiContainer.emojiCategories)||void 0===_emojiContainer$emoji?void 0:_emojiContainer$emoji.map((function(emojiCategory){return emojiCategory.emojis})).reduce((function(prevArr,currArr){return prevArr.concat(currArr)}),[])},getEmojiMapAll=function getEmojiMapAll(emojiContainer){var _emojiContainer$emoji2,emojiMap=new Map;return null==emojiContainer||null===(_emojiContainer$emoji2=emojiContainer.emojiCategories)||void 0===_emojiContainer$emoji2||_emojiContainer$emoji2.forEach((function(category){var _category$emojis;null==category||null===(_category$emojis=category.emojis)||void 0===_category$emojis||_category$emojis.forEach((function(emoji){emoji&&emoji.key&&emojiMap.set(emoji.key,emoji)}))})),emojiMap},getEmojiUrl=function getEmojiUrl(emojiContainer,emojiKey){var _emojiContainer$emoji3,isFindingKey=function findEmojiUrl(targetKey){return function(_ref2){return _ref2.key===targetKey}}(null!=emojiKey?emojiKey:"");return(null==emojiContainer||null===(_emojiContainer$emoji3=emojiContainer.emojiCategories.find((function(category){return category.emojis.some(isFindingKey)})))||void 0===_emojiContainer$emoji3||null===(_emojiContainer$emoji3=_emojiContainer$emoji3.emojis.find(isFindingKey))||void 0===_emojiContainer$emoji3?void 0:_emojiContainer$emoji3.url)||""},getSenderName=function getSenderName(message){return(null==message?void 0:message.sender)&&function getUserName(user){return(null==user?void 0:user.friendName)||(null==user?void 0:user.nickname)||(null==user?void 0:user.userId)}(null==message?void 0:message.sender)},isFriend=function isFriend(user){return!!user&&!(!user.friendDiscoveryKey&&!user.friendName)},filterMessageListParams=function filterMessageListParams(params,message){var _params$senderUserIds,_params$customTypesFi=params.customTypesFilter,customTypesFilter=void 0===_params$customTypesFi?[]:_params$customTypesFi;if(null!=params&¶ms.messageTypeFilter&¶ms.messageTypeFilter!==message.messageType)return!1;if((null==customTypesFilter?void 0:customTypesFilter.length)>0){var customTypes=customTypesFilter.filter((function(item){return"*"!==item}));if(customTypes.length>0&&!customTypes.includes(message.customType))return!1}if(null!=params&¶ms.senderUserIdsFilter&&(null==params||null===(_params$senderUserIds=params.senderUserIdsFilter)||void 0===_params$senderUserIds?void 0:_params$senderUserIds.length)>0){var _message$isUserMessag,_message$isFileMessag;if(!(null!=message&&null!==(_message$isUserMessag=message.isUserMessage)&&void 0!==_message$isUserMessag&&_message$isUserMessag.call(message)||null!=message&&null!==(_message$isFileMessag=message.isFileMessage)&&void 0!==_message$isFileMessag&&_message$isFileMessag.call(message)))return!1;var _params$senderUserIds2,messageSender=message.sender||message._sender;if(null==params||null===(_params$senderUserIds2=params.senderUserIdsFilter)||void 0===_params$senderUserIds2||!_params$senderUserIds2.includes(null==messageSender?void 0:messageSender.userId))return!1}return!((null==params||!params.includeParentMessageInfo)&&(null!=message&&message.parentMessageId||null!=message&&message.parentMessage))},filterChannelListParams=function filterChannelListParams(params,channel,currentUserId){var _searchFilter$fields$,_searchFilter$fields,_userIdsFilter$userId,_channel$name2,includeEmpty=params.includeEmpty,includeFrozen=params.includeFrozen,searchFilter=params.searchFilter,userIdsFilter=params.userIdsFilter,customTypesFilter=params.customTypesFilter,channelUrlsFilter=params.channelUrlsFilter,customTypeStartsWithFilter=params.customTypeStartsWithFilter,channelNameContainsFilter=params.channelNameContainsFilter,nicknameContainsFilter=params.nicknameContainsFilter,myMemberStateFilter=params.myMemberStateFilter,hiddenChannelFilter=params.hiddenChannelFilter,unreadChannelFilter=params.unreadChannelFilter,publicChannelFilter=params.publicChannelFilter,superChannelFilter=params.superChannelFilter,_params$metadataKey=params.metadataKey,metadataKey=void 0===_params$metadataKey?"":_params$metadataKey,_params$metadataValue=params.metadataValues,metadataValues=void 0===_params$metadataValue?["a","b"]:_params$metadataValue,metadataValueStartsWith=params.metadataValueStartsWith;if(!includeEmpty&&null===(null==channel?void 0:channel.lastMessage))return!1;if(null!=searchFilter&&searchFilter.query&&(null!==(_searchFilter$fields$=null==searchFilter||null===(_searchFilter$fields=searchFilter.fields)||void 0===_searchFilter$fields?void 0:_searchFilter$fields.length)&&void 0!==_searchFilter$fields$?_searchFilter$fields$:0)>0){var searchQuery=searchFilter.query,searchFields=searchFilter.fields;if(searchQuery&&searchFields&&searchFields.length>0&&!searchFields.some((function(searchField){switch(searchField){case"channel_name":var _channel$name;return null==channel||null===(_channel$name=channel.name)||void 0===_channel$name?void 0:_channel$name.toLowerCase().includes(searchQuery.toLowerCase());case"member_nickname":var _channel$members;return null==channel||null===(_channel$members=channel.members)||void 0===_channel$members?void 0:_channel$members.some((function(member){return member.nickname.toLowerCase().includes(searchQuery.toLowerCase())}));default:return!0}})))return!1}if((null==userIdsFilter||null===(_userIdsFilter$userId=userIdsFilter.userIds)||void 0===_userIdsFilter$userId?void 0:_userIdsFilter$userId.length)>0){var _channel$members2,includeMode=userIdsFilter.includeMode,queryType=userIdsFilter.queryType,userIds=userIdsFilter.userIds,memberIds=null==channel||null===(_channel$members2=channel.members)||void 0===_channel$members2?void 0:_channel$members2.map((function(member){return member.userId}));if(includeMode){if(userIds.length>0)switch(queryType){case"AND":if(userIds.some((function(userId){return!memberIds.includes(userId)})))return!1;break;case"OR":if(userIds.every((function(userId){return!memberIds.includes(userId)})))return!1}}else{var _channel$members3;if(userIds.includes(currentUserId)||userIds.push(currentUserId),(null==channel||null===(_channel$members3=channel.members)||void 0===_channel$members3?void 0:_channel$members3.length)>userIds.length)return!1;if(!function hasSameMembers(a,b){if(a===b)return!0;if(null==a||null==b)return!1;if(a.length!==b.length)return!1;for(var sortedA=_toConsumableArray(a).sort(),sortedB=_toConsumableArray(b).sort(),i=0;i0},isFineResend=function isFineResend(_ref2){var message=_ref2.message,status=_ref2.status,userId=_ref2.userId;return checkIsByMe(message,userId)&&checkIsFailed(status)&&(null==message?void 0:message.isResendable)},isFineEdit=function isFineEdit(_ref3){var _message$isUserMessag,message=_ref3.message,status=_ref3.status,userId=_ref3.userId;return checkIsByMe(message,userId)&&checkIsSent(status)&&(null==message||null===(_message$isUserMessag=message.isUserMessage)||void 0===_message$isUserMessag?void 0:_message$isUserMessag.call(message))},isFineDelete=function isFineDelete(_ref4){var message=_ref4.message,userId=_ref4.userId;return checkIsByMe(message,userId)},isFineDownload=function isFineDownload(_ref5){var _message$isFileMessag,message=_ref5.message,status=_ref5.status;return!(null==message||null===(_message$isFileMessag=message.isFileMessage)||void 0===_message$isFileMessag||!_message$isFileMessag.call(message)||!checkIsSent(status))},showMenuTrigger=function showMenuTrigger(props){var message=props.message,status=props.status,userId=props.userId;return"user"===message.messageType?isFineDelete({message:message,status:status,userId:userId})||isFineEdit({message:message,status:status,userId:userId})||isFineCopy({message:message,status:status,userId:userId})||isFineResend({message:message,status:status,userId:userId}):isFineDelete({message:message,status:status,userId:userId})||isFineResend({message:message,status:status,userId:userId})}},"./src/utils/pxToNumber.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.number.parse-float.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.number.is-nan.js");__webpack_exports__.a=function pxToNumber(px){if("number"==typeof px)return px;if("string"==typeof px){var parsed=Number.parseFloat(px);if(!Number.isNaN(parsed))return parsed}return NaN}},"./src/utils/utils.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return noop})),__webpack_require__.d(__webpack_exports__,"a",(function(){return isMobileIOS}));var noop=function noop(){},isMobileIOS=function isMobileIOS(userAgent){var isIOS=/iPhone|iPad|iPod/i.test(userAgent),isWebkit=/WebKit/i.test(userAgent),isSafari=/Safari/i.test(userAgent);return isIOS&&(isWebkit||isSafari)}},"./src/utils/uuid.ts":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return uuidv4}));__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js");var uuidv4=function uuidv4(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(c){var r=16*Math.random()|0;return("x"===c?r:3&r|8).toString(16)}))};__webpack_exports__.a=uuidv4},"./storybook-init-framework-entry.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);__webpack_require__("./node_modules/@storybook/react/dist/esm/client/index.js")},0:function(module,exports,__webpack_require__){__webpack_require__("./node_modules/@storybook/core-client/dist/esm/globals/polyfills.js"),__webpack_require__("./node_modules/@storybook/core-client/dist/esm/globals/globals.js"),__webpack_require__("./storybook-init-framework-entry.js"),__webpack_require__("./node_modules/@storybook/react/dist/esm/client/docs/config-generated-config-entry.js"),__webpack_require__("./node_modules/@storybook/react/dist/esm/client/preview/config-generated-config-entry.js"),__webpack_require__("./node_modules/@storybook/addon-docs/preview.js-generated-config-entry.js"),__webpack_require__("./node_modules/@storybook/addon-actions/preview.js-generated-config-entry.js"),__webpack_require__("./node_modules/@storybook/addon-links/preview.js-generated-config-entry.js"),module.exports=__webpack_require__("./generated-stories-entry.js")},1:function(module,exports){}},[[0,6,7]]]); +//# sourceMappingURL=main.7ab73a2c.iframe.bundle.js.map \ No newline at end of file diff --git a/main.7ab73a2c.iframe.bundle.js.LICENSE.txt b/main.7ab73a2c.iframe.bundle.js.LICENSE.txt new file mode 100644 index 000000000..ae386fb79 --- /dev/null +++ b/main.7ab73a2c.iframe.bundle.js.LICENSE.txt @@ -0,0 +1 @@ +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ diff --git a/main.7ab73a2c.iframe.bundle.js.map b/main.7ab73a2c.iframe.bundle.js.map new file mode 100644 index 000000000..a297ffa3e --- /dev/null +++ b/main.7ab73a2c.iframe.bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"main.7ab73a2c.iframe.bundle.js","sources":[],"mappings":";A","sourceRoot":""} \ No newline at end of file diff --git a/project.json b/project.json new file mode 100644 index 000000000..49e349585 --- /dev/null +++ b/project.json @@ -0,0 +1 @@ +{"generatedAt":1711527543623,"builder":{"name":"webpack4"},"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"packageManager":{"type":"yarn","version":"3.5.0"},"storybookVersion":"6.5.16","language":"typescript","storybookPackages":{"@storybook/addons":{"version":"6.5.16"},"@storybook/react":{"version":"6.5.16"},"@storybook/storybook-deployer":{"version":"2.8.16"}},"framework":{"name":"react"},"addons":{"@storybook/addon-docs":{"version":"6.5.16"},"@storybook/addon-actions":{"version":"6.5.16"},"@storybook/addon-links":{"version":"6.5.16"},"@storybook/preset-scss":{"version":"1.0.3"}}} diff --git a/runtime~main.2ef74f7e.iframe.bundle.js b/runtime~main.2ef74f7e.iframe.bundle.js new file mode 100644 index 000000000..e0c7d4c84 --- /dev/null +++ b/runtime~main.2ef74f7e.iframe.bundle.js @@ -0,0 +1 @@ +!function(modules){function webpackJsonpCallback(data){for(var moduleId,chunkId,chunkIds=data[0],moreModules=data[1],executeModules=data[2],i=0,resolves=[];i=this._limit&&!!i,e.nextToken=i,this._metadata&&(this._metadata.token=i,(o=this._metadata.range).extends.apply(o,Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(r.map((function(e){return e.createdAt}))),!1)),this._metadata.completed=!e.hasNext),d.debug("channel background sync progress",e),[4,this.saveMetadata()];case 8:return h.sent(),[3,12];case 9:return s=h.sent(),d.debug("channel background sync error",s),s instanceof _lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc&&s.isInvalidTokenError?[4,this.clearMetaData()]:[3,11];case 10:h.sent(),h.label=11;case 11:throw s;case 12:return[3,14];case 13:e.hasNext=!1,e.nextToken="",h.label=14;case 14:return[2,e]}}))}))})),this._connectionEventContext=c.on((function(e){e instanceof _lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.c&&(e.stateType===_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.e.CONNECTED?r.resume():r.pause())}))}return e.of=function(t){return Oe[t]||(Oe[t]=new e({_iid:t})),Oe[t].ref++,Oe[t]},e.clear=function(e){Oe[e]&&(Oe[e].close(),delete Oe[e])},Object.defineProperty(e.prototype,"range",{get:function(){var e,t;return null!==(t=null===(e=this._metadata)||void 0===e?void 0:e.range)&&void 0!==t?t:new _lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.e({})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"completed",{get:function(){var e;return!!(null===(e=this._metadata)||void 0===e?void 0:e.completed)},enumerable:!1,configurable:!0}),e.prototype.loadMetadata=function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return this._metadata?[3,2]:[4,_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).cacheContext.preference.get(this._metadataKey)];case 1:e=t.sent(),this._metadata={token:e?e.token:"",range:new _lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.e(e?e.range:{top:Number.MAX_SAFE_INTEGER,bottom:0}),completed:!!e&&e.completed},t.label=2;case 2:return[2,this._metadata]}}))}))},e.prototype.saveMetadata=function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return this._metadata?[4,_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).cacheContext.preference.set(this._metadataKey,this._metadata)]:[3,2];case 1:return e.sent(),[2,!0];case 2:return[2,!1]}}))}))},e.prototype.clearMetaData=function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return[4,_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).cacheContext.preference.remove(this._metadataKey)];case 1:return e.sent(),this._metadata=void 0,[2]}}))}))},e.prototype.resume=function(){var e,t,n=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),a=n.logger;n.sessionManager.session.hasSession&&(a.debug("channel background sync resume()"),this._sync.start(null!==(t=null===(e=this._metadata)||void 0===e?void 0:e.token)&&void 0!==t?t:""))},e.prototype.pause=function(){_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).logger.debug("channel background sync stop()"),this._sync.stop()},e.prototype.close=function(){this.ref--,this.ref<=0&&(this.ref=0,this.pause(),this._connectionEventContext.close(),delete Oe[this._iid])},e}(),Ie={},He=function(){function e(e){var t=e._iid,n=this;this.ref=0,this._iid=t;var a,r=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),o=r.logger,l=r.sdkState,u=r.dispatcher,c=r.cacheContext;this._metadataKey=(a=l.userId,"sendbird:".concat(a,"@groupchannel/changelogs.meta"));var d=function(e){return"sendbird:".concat(e,"@groupchannel/changelogs")}(l.userId);this._sync=new _lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.d(d,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(n,void 0,void 0,(function(){var e,t,n,a,r,i,s,u,d,p;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(h){switch(h.label){case 0:return e={hasNext:!0,nextToken:0},[4,this.loadMetadata()];case 1:h.sent(),o.debug("channel changelog sync from",null===(u=this._metadata)||void 0===u?void 0:u.token),h.label=2;case 2:h.trys.push([2,9,,12]),t={includeEmpty:!0},h.label=3;case 3:return h.trys.push([3,5,,6]),[4,c.preference.get(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.k)(l.appId))];case 4:return n=h.sent(),t.includeChatNotification=Boolean(n),[3,6];case 5:return h.sent(),t.includeChatNotification=!1,[3,6];case 6:return[4,_lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.a.of(this._iid).getMyGroupChannelChangeLogs(null!==(p=null===(d=this._metadata)||void 0===d?void 0:d.token)&&void 0!==p?p:"",t,_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.SYNC_CHANNEL_CHANGELOGS)];case 7:return a=h.sent(),r=a.hasMore,i=a.token,e.hasNext=r,e.nextToken=i,this._metadata&&(this._metadata.token=i),o.debug("channel changelog sync progress",e),[4,this.saveMetadata()];case 8:return h.sent(),[3,12];case 9:return s=h.sent(),o.debug("channel changelog sync error",s),s instanceof _lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc&&s.isInvalidTokenError?[4,this.clearMetadata()]:[3,11];case 10:h.sent(),h.label=11;case 11:throw s;case 12:return[2,e]}}))}))})),this._connectionEventContext=u.on((function(e){e instanceof _lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.c&&(e.stateType===_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.e.CONNECTED?n.resume():n.pause())}))}return e.of=function(t){return Ie[t]||(Ie[t]=new e({_iid:t})),Ie[t].ref++,Ie[t]},e.clear=function(e){Ie[e]&&(Ie[e].close(),delete Ie[e])},e.prototype.loadMetadata=function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t,n,a;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(r){switch(r.label){case 0:return this._metadata?[3,2]:(e=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),t=e.cacheContext,n=e.firstConnectedAt,[4,t.preference.get(this._metadataKey)]);case 1:a=r.sent(),this._metadata={token:a?a.token:n},r.label=2;case 2:return[2,this._metadata]}}))}))},e.prototype.saveMetadata=function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return this._metadata?[4,_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).cacheContext.preference.set(this._metadataKey,this._metadata)]:[3,2];case 1:return e.sent(),[2,!0];case 2:return[2,!1]}}))}))},e.prototype.clearMetadata=function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return[4,_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).cacheContext.preference.remove(this._metadataKey)];case 1:return e.sent(),this._metadata=void 0,[2]}}))}))},e.prototype.resume=function(){_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).sessionManager.session.hasSession&&this._sync.start(0)},e.prototype.pause=function(){this._sync.stop()},e.prototype.close=function(){this.ref--,this.ref<=0&&(this.ref=0,this.pause(),this._connectionEventContext.close(),delete Ie[this._iid])},e}(),Re=function(e,t){return e.findIndex((function(e){return e.isIdentical(t)}))},Ve=function(e,t,n){if(e.length>0){for(var a=Re(e,t),r=0,i=e.length-1,s=Math.floor((r+i)/2);r0)i=s,s=Math.floor((r+i)/2);else{if(!(o<0))return{place:s,oldPosition:a};r=s+1,s=Math.floor((r+i)/2)}}return{place:Ke(e[s],t,n)>=0?s:s+1,oldPosition:a}}return{place:e.length,oldPosition:-1}},Ke=function(e,t,n){switch(n){case _lib_bundle_4d8e37ce_js__WEBPACK_IMPORTED_MODULE_3__.c.LATEST_LAST_MESSAGE:return e.lastMessage&&t.lastMessage?t.lastMessage.createdAt-e.lastMessage.createdAt:e.lastMessage?-1:t.lastMessage?1:t.createdAt-e.createdAt;case _lib_bundle_4d8e37ce_js__WEBPACK_IMPORTED_MODULE_3__.c.CHRONOLOGICAL:return t.createdAt-e.createdAt;case _lib_bundle_4d8e37ce_js__WEBPACK_IMPORTED_MODULE_3__.c.CHANNEL_NAME_ALPHABETICAL:var a=e.name.localeCompare(t.name);return 0===a?e.createdAt-t.createdAt:a;default:return 0}},Qe=function(){function e(e,t){var n=t.filter,a=t.order,r=t.limit,o=this;this.channels=[],this._iid=e,this._key="gcc-".concat(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.lc)()),this._isDisposed=!1,this._isGetRemoteChannelsSucceeded=!0,this.filter=null!=n?n:new _lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.f,this.order=null!=a?a:_lib_bundle_4d8e37ce_js__WEBPACK_IMPORTED_MODULE_3__.c.LATEST_LAST_MESSAGE,this._hasMore=!0,this._token="",this._limit=null!=r?r:_lib_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_2__.i;var l=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),u=l.sdkState,c=l.cacheContext,d=l.dispatcher;c.localCacheEnabled&&(this._backgroundSync=Pe.of(e),this._backgroundSync.resume()),this._changelogSync=He.of(e),this._changelogSync.resume(),_lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.a.of(this._iid).subscribeChannelEvent(this._key,{onUpdate:function(e,t){if(Object(_lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.q)(t)){var n=e.filter((function(e){return o.filter.match(e,u.userId)})),a=e.filter((function(e){return!o.filter.match(e,u.userId)})).map((function(e){return e.url}));n.length>0&&o._addChannelsToView(n,t),a.length>0&&o._removeChannelsFromView(a,t)}},onRemove:function(e,t){o._removeChannelsFromView(e,t)}}),_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).statLogCollector.put(new _lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Lb({type:_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Mb.FEATURE_LOCALCACHE,data:{use_local_cache:c.localCacheEnabled,collection_interface:{group_channel:!0}}})),d.on((function(e){e instanceof _lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.c&&(e.stateType===_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.e.CONNECTED?o._isGetRemoteChannelsSucceeded||Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(o,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return[4,this._revokeLoadMore()];case 1:return e.sent(),[2]}}))})):e.stateType===_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.e.LOGOUT&&o.dispose())}))}return Object.defineProperty(e.prototype,"hasMore",{get:function(){return!this._isDisposed&&this._hasMore},enumerable:!1,configurable:!0}),e.prototype.setGroupChannelCollectionHandler=function(e){this._handler=e},e.prototype._addChannelsToView=function(e,t,n){var a,r,s,o,l=this;void 0===n&&(n=!1);var u=[],c=[],d=[];try{for(var p=Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(e),f=p.next();!f.done;f=p.next()){var m=f.value,v=Re(this.channels,m);v>=0&&this.channels.splice(v,1);var _=Ve(this.channels,m,this.order).place;if(v<0)_===this.channels.length?!n&&this._hasMore||(u.push(m),this.channels.push(m)):(u.push(m),this.channels.splice(_,0,m));else switch(t){case _lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_UPDATED:case _lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_RECEIVED:case _lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.SYNC_CHANNEL_CHANGELOGS:case _lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_SENT:this.order===_lib_bundle_4d8e37ce_js__WEBPACK_IMPORTED_MODULE_3__.c.CHANNEL_NAME_ALPHABETICAL&&this._hasMore&&_===this.channels.length?d.push(m):(this.channels.splice(_,0,m),c.push(m));break;default:this.channels.splice(_,0,m),c.push(m)}}}catch(e){a={error:e}}finally{try{f&&!f.done&&(r=p.return)&&r.call(p)}finally{if(a)throw a.error}}if(d.length>0)try{for(var g=Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(d),y=g.next();!y.done;y=g.next()){m=y.value;var C=Re(this.channels,m);-1!==C&&this.channels.splice(C,1)}}catch(e){s={error:e}}finally{try{y&&!y.done&&(o=g.return)&&o.call(g)}finally{if(s)throw s.error}}Object(_lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.q)(t)&&Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(l,void 0,void 0,(function(){var e,n,a,r;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(i){return e=new _lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.g(t),u.length>0&&(null===(n=this._handler)||void 0===n?void 0:n.onChannelsAdded)&&this._handler.onChannelsAdded(e,u),c.length>0&&(null===(a=this._handler)||void 0===a?void 0:a.onChannelsUpdated)&&this._handler.onChannelsUpdated(e,c),d.length>0&&(null===(r=this._handler)||void 0===r?void 0:r.onChannelsDeleted)&&this._handler.onChannelsDeleted(e,d.map((function(e){return e.url}))),[2]}))}))}))},e.prototype._removeChannelsFromView=function(e,t){var n,a,r=this,s=[],o=function(e){var t=l.channels.findIndex((function(t){return t.url===e}));t>=0&&(s.push(l.channels[t].url),l.channels.splice(t,1))},l=this;try{for(var u=Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(e),c=u.next();!c.done;c=u.next())o(c.value)}catch(e){n={error:e}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(n)throw n.error}}return Object(_lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.q)(t)&&s.length>0&&Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(r,void 0,void 0,(function(){var e,n;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(a){return e=new _lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.g(t),(null===(n=this._handler)||void 0===n?void 0:n.onChannelsDeleted)&&this._handler.onChannelsDeleted(e,s),[2]}))}))})),s},e.prototype._getLocalChannels=function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return e=_lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.a.of(this._iid),t=this.channels.length>0?function(e,t){var n,a,r,i;switch(t){case _lib_bundle_4d8e37ce_js__WEBPACK_IMPORTED_MODULE_3__.c.LATEST_LAST_MESSAGE:return null!==(a=null===(n=e.lastMessage)||void 0===n?void 0:n.createdAt)&&void 0!==a?a:e.createdAt;case _lib_bundle_4d8e37ce_js__WEBPACK_IMPORTED_MODULE_3__.c.CHRONOLOGICAL:return e.createdAt;case _lib_bundle_4d8e37ce_js__WEBPACK_IMPORTED_MODULE_3__.c.CHANNEL_NAME_ALPHABETICAL:return e.name;default:return null!==(i=null===(r=e.lastMessage)||void 0===r?void 0:r.createdAt)&&void 0!==i?i:e.createdAt}}(this.channels[this.channels.length-1],this.order):null,[4,e.getChannelsFromCache(t,this.filter,this.order,this._limit,t?this.channels[this.channels.length-1].url:void 0)];case 1:return[2,n.sent()]}}))}))},e.prototype._getRemoteChannels=function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t,n;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(a){switch(a.label){case 0:return[4,_lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.a.of(this._iid).getMyGroupChannels(this._token,Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},this.filter),{order:this.order})),this._limit)];case 1:return e=a.sent(),t=e.channels,n=e.token,this._token=n,this._hasMore=!!n,[2,t]}}))}))},e.prototype._revokeLoadMore=function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:if(this._isDisposed)return[2];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this._getRemoteChannels()];case 2:return e=t.sent(),this._isGetRemoteChannelsSucceeded=!0,this._addChannelsToView(e,_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.REQUEST_CHANNEL,!0),[3,4];case 3:return t.sent(),this._isGetRemoteChannelsSucceeded=!1,[3,4];case 4:return[2]}}))}))},e.prototype.loadMore=function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t,n,a,r=this;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(o){switch(o.label){case 0:if(this._isDisposed)throw new _lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc({code:_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sb.COLLECTION_DISPOSED,message:"Collection has been disposed."});return this._hasMore?(e=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),t=e.cacheContext,n=e.connectionManager,a=[],!t.localCacheEnabled||n.isConnected&&!this._backgroundSync.completed?[3,2]:[4,Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.yc)((function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(r,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return[4,this._getLocalChannels()];case 1:return a=e.sent(),[2]}}))}))}))]):[3,6];case 1:return o.sent(),this._hasMore=a.length>=this._limit,[3,5];case 2:return o.trys.push([2,4,,5]),[4,this._getRemoteChannels()];case 3:return a=o.sent(),this._isGetRemoteChannelsSucceeded=!0,[3,5];case 4:return o.sent(),this._isGetRemoteChannelsSucceeded=!1,[3,5];case 5:return this._addChannelsToView(a,_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.REQUEST_CHANNEL,!0),[2,a];case 6:return[2,[]]}}))}))},e.prototype.dispose=function(){var e,t;this._isDisposed||(this._isDisposed=!0,this.channels.length>0&&this.channels.splice(0,this.channels.length),null===(e=this._backgroundSync)||void 0===e||e.close(),null===(t=this._changelogSync)||void 0===t||t.close(),_lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.a.of(this._iid).unsubscribeChannelEvent(this._key))},e}(),je=function(e){function t(t){var n=this,a=t.token,r=t.limit,i=t.order,s=t.includeEmpty,o=t.membershipFilter,l=t.channelNameContainsFilter,u=t.channelUrlsFilter,c=t.customTypesFilter,h=t.customTypeStartsWithFilter,d=t.superChannelFilter,p=t.metadataOrderKeyFilter,f=t.metadataKey,m=t.metadataValues,v=t.metadataValueStartsWith,_=t.includeFrozen,g=t.includeMetaData;return(n=e.call(this)||this).method=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,n.path=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qb,n.params=Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({token:a,limit:r,order:i,show_member:!0,show_read_receipt:!0,show_delivery_receipt:!0,show_empty:s,public_mode:_lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.c.PUBLIC,public_membership_mode:o,name_contains:l,channel_urls:u,custom_types:c,custom_type_startswith:h,super_mode:d,metadata_order_key:p,metadata_key:f,metadata_values:m,metadata_value_startswith:v,show_frozen:_,show_metadata:g})),n}return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),We=function(e){function t(t,n){var a=e.call(this,t,n)||this;a.channels=[];var r=n.next,i=n.channels,s=n.ts;return a.token=r,i&&i.length>0&&(a.channels=i.map((function(e){return e.ts=s,new _lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.h(t,e)}))),a.ts="number"==typeof s?s:0,a}return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc);(e=De||(De={})).ALL="all",e.JOINED="joined";var ze=function(e){function t(t,n){var a,r,i,s,o,l,u,c,h,d,p,f,m,v,_=this;return(_=e.call(this,t,n)||this).includeEmpty=!1,_.includeFrozen=!0,_.includeMetaData=!0,_.channelUrlsFilter=null,_.customTypesFilter=null,_.customTypeStartsWithFilter=null,_.channelNameContainsFilter=null,_.membershipFilter=De.ALL,_.superChannelFilter=_lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.i.ALL,_.metadataKey=null,_.metadataValues=null,_.metadataOrderKeyFilter=null,_.metadataValueStartsWith=null,_.order=_lib_bundle_4d8e37ce_js__WEBPACK_IMPORTED_MODULE_3__.d.CHRONOLOGICAL,_.includeEmpty=null!==(a=n.includeEmpty)&&void 0!==a&&a,_.includeFrozen=null===(r=n.includeFrozen)||void 0===r||r,_.includeMetaData=null===(i=n.includeMetaData)||void 0===i||i,_.channelUrlsFilter=null!==(s=n.channelUrlsFilter)&&void 0!==s?s:null,_.customTypesFilter=null!==(o=n.customTypesFilter)&&void 0!==o?o:null,_.customTypeStartsWithFilter=null!==(l=n.customTypeStartsWithFilter)&&void 0!==l?l:null,_.channelNameContainsFilter=null!==(u=n.channelNameContainsFilter)&&void 0!==u?u:null,_.membershipFilter=null!==(c=n.membershipFilter)&&void 0!==c?c:De.ALL,_.superChannelFilter=null!==(h=n.superChannelFilter)&&void 0!==h?h:_lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.i.ALL,_.metadataKey=null!==(d=n.metadataKey)&&void 0!==d?d:null,_.metadataValues=null!==(p=n.metadataValues)&&void 0!==p?p:null,_.metadataOrderKeyFilter=null!==(f=n.metadataOrderKeyFilter)&&void 0!==f?f:null,_.metadataValueStartsWith=null!==(m=n.metadataValueStartsWith)&&void 0!==m?m:null,_.order=null!==(v=n.order)&&void 0!==v?v:_lib_bundle_4d8e37ce_js__WEBPACK_IMPORTED_MODULE_3__.d.CHRONOLOGICAL,_}return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t.prototype._validate=function(){return e.prototype._validate.call(this)&&Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",this.includeEmpty)&&Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",this.includeFrozen)&&Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",this.includeMetaData)&&Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",this.channelNameContainsFilter,!0)&&Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",this.channelUrlsFilter,!0)&&Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",this.customTypesFilter,!0)&&Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",this.customTypeStartsWithFilter,!0)&&Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(De,this.membershipFilter)&&Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(_lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.i,this.superChannelFilter)&&Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(_lib_bundle_4d8e37ce_js__WEBPACK_IMPORTED_MODULE_3__.d,this.order)&&Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",this.metadataOrderKeyFilter,!0)&&Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",this.metadataKey,!0)&&Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",this.metadataValues,!0)&&Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",this.metadataValueStartsWith,!0)},t.prototype.next=function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t,n,a,r,i,o;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(l){switch(l.label){case 0:return this._validate()?this._isLoading?[3,3]:(e=[],this._hasNext?(this._isLoading=!0,t=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,n=new je(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},this),{token:this._token}))),[4,t.send(n)]):[3,2]):[3,5];case 1:return a=l.sent(),r=a.as(We),i=r.channels,o=r.token,this._token=o,this._hasNext=!!o,this._isLoading=!1,[2,i];case 2:return[2,e];case 3:throw _lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.queryInProgress;case 4:return[3,6];case 5:throw _lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters;case 6:return[2]}}))}))},t}(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.R),Be=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return Object.keys(t).forEach((function(e){n.hasOwnProperty(e)&&(n[e]=t[e])})),n}return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onUserJoined=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,t.onUserLeft=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,t.onUserReceivedInvitation=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,t.onUserDeclinedInvitation=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,t.onChannelHidden=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,t.onUnreadMemberStatusUpdated=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,t.onUndeliveredMemberStatusUpdated=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,t.onTypingStatusUpdated=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,t.onPollUpdated=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,t.onPollVoted=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,t.onPollDeleted=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,t.onPinnedMessageUpdated=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,t}return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_lib_bundle_a7cb5080_js__WEBPACK_IMPORTED_MODULE_4__.a)),qe=function(e){function t(t){var n=this,a=t.token,r=t.limit,i=t.order,s=t.reverse,o=t.channelUrl,l=t.messageTypeFilter,u=t.scheduledStatus;return(n=e.call(this)||this).method=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,n.path="".concat(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Nb),n.params=Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({token:a,limit:r,reverse:s,channel_url:o,order:i,message_type:l,status:u})),n}return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Je=function(e){function t(t,n){var a=e.call(this,t,n)||this;a.scheduledMessages=[];var r=n.next,i=n.scheduled_messages;return a.token=r,a.scheduledMessages=i.map((function(e){return Object(_lib_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_2__.j)(t,e)})),a}return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),Ye=function(e){function t(t,n){var a,r,i,s,o,l=this;return(l=e.call(this,t,n)||this).channelUrl=null,l.order=null,l.reverse=!1,l.scheduledStatus=null,l.messageTypeFilter=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.vb.ALL,l.channelUrl=null!==(a=n.channelUrl)&&void 0!==a?a:null,l.order=null!==(r=n.order)&&void 0!==r?r:null,l.reverse=null!==(i=n.reverse)&&void 0!==i&&i,l.scheduledStatus=null!==(s=n.scheduledStatus)&&void 0!==s?s:null,l.messageTypeFilter=null!==(o=n.messageTypeFilter)&&void 0!==o?o:_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.vb.ALL,l}return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t.prototype._validate=function(){return e.prototype._validate.call(this)&&Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",this.channelUrl,!0)&&(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(_lib_bundle_4d8e37ce_js__WEBPACK_IMPORTED_MODULE_3__.f,this.order)||null===this.order)&&Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",this.reverse)&&(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)(_lib_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_2__.k,this.scheduledStatus)||null===this.scheduledStatus)&&Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.vb,this.messageTypeFilter)},t.prototype.next=function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t,n,a,r,i;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(o){switch(o.label){case 0:return this._validate()?this._isLoading?[3,3]:this._hasNext?(this._isLoading=!0,e=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,t=new qe(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},this),{token:this._token}))),[4,e.send(t)]):[3,2]:[3,5];case 1:return n=o.sent(),a=n.as(Je),r=a.scheduledMessages,i=a.token,this._token=i,this._hasNext=!!i,this._isLoading=!1,[2,r];case 2:return[2,[]];case 3:throw _lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.queryInProgress;case 4:return[3,6];case 5:throw _lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters;case 6:return[2]}}))}))},t}(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.R),Xe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="groupChannel",t}return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t.prototype.init=function(t,n){var a=n.sdkState,r=n.dispatcher,i=n.sessionManager,s=n.requestQueue,o=n.logger,l=n.onlineDetector,u=n.cacheContext;e.prototype.init.call(this,t,{sdkState:a,dispatcher:r,sessionManager:i,requestQueue:s,logger:o,onlineDetector:l,cacheContext:u}),this._manager=new _lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.a(t,{sdkState:a,cacheContext:u,dispatcher:r,sessionManager:i,requestQueue:s,logger:o})},t.prototype.createGroupChannelCollection=function(e){return void 0===e&&(e={}),new Qe(this._iid,e)},t.prototype.createMyGroupChannelListQuery=function(e){return void 0===e&&(e={}),new _lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.j(this._iid,e)},t.prototype.createPublicGroupChannelListQuery=function(e){return void 0===e&&(e={}),new ze(this._iid,e)},t.prototype.createScheduledMessageListQuery=function(e){return void 0===e&&(e={}),new Ye(this._iid,e)},t.prototype.addGroupChannelHandler=function(e,t){Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e)&&t instanceof Be).throw(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),this._manager.addHandler(e,t)},t.prototype.removeGroupChannelHandler=function(e){Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e)).throw(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),this._manager.removeHandler(e)},t.prototype.removeAllGroupChannelHandlers=function(){this._manager.clearHandler()},t.prototype.buildGroupChannelFromSerializedData=function(e){return this._manager.buildGroupChannelFromSerializedData(e)},t.prototype.buildGroupChannelListQueryFromSerializedData=function(e){return this._manager.buildGroupChannelListQueryFromSerializedData(e)},t.prototype.buildMemberFromSerializedData=function(e){return this._manager.buildMemberFromSerializedData(e)},t.prototype.getChannel=function(e){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e)).throw(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),[2,this._manager.getChannel(e)]}))}))},t.prototype.getChannelWithoutCache=function(e){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e)).throw(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),[2,this._manager.getChannelWithoutCache(e)]}))}))},t.prototype.getMyGroupChannelChangeLogsByToken=function(e,t){return void 0===t&&(t={}),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(a){switch(a.label){case 0:return n=Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},_lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.k),t),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e)&&Object(_lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.r)(n)).throw(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),[4,this._manager.getMyGroupChannelChangeLogs(e,n)];case 1:return[2,a.sent()]}}))}))},t.prototype.getMyGroupChannelChangeLogsByTimestamp=function(e,t){return void 0===t&&(t={}),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(a){switch(a.label){case 0:return n=Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},_lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.k),t),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e)&&Object(_lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.r)(n)).throw(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),[4,this._manager.getMyGroupChannelChangeLogs(e,n)];case 1:return[2,a.sent()]}}))}))},t.prototype.getGroupChannelCount=function(e){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){return t=Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},_lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.l),e),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.m)(t)).throw(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),[2,this._manager.getGroupChannelCount(t)]}))}))},t.prototype.getUnreadItemCount=function(e){return void 0===e&&(e={}),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return[4,this._manager.getUnreadItemCount(e)];case 1:return[2,t.sent()]}}))}))},t.prototype.getTotalUnreadChannelCount=function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return[4,this._manager.getTotalUnreadChannelCount()];case 1:return[2,e.sent()]}}))}))},t.prototype.getTotalUnreadMessageCount=function(e){return void 0===e&&(e={}),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return[4,this._manager.getTotalUnreadMessageCount(e)];case 1:return[2,t.sent()]}}))}))},t.prototype.getTotalScheduledMessageCount=function(e){return void 0===e&&(e={}),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return[4,this._manager.getTotalScheduledMessageCount(e)];case 1:return[2,t.sent()]}}))}))},t.prototype.getSubscribedTotalUnreadMessageCount=function(){return this._manager.getSubscribedTotalUnreadMessageCount()},t.prototype.getSubscribedCustomTypeTotalUnreadMessageCount=function(){return this._manager.getSubscribedCustomTypeTotalUnreadMessageCount()},t.prototype.getSubscribedCustomTypeUnreadMessageCount=function(e){return this._manager.getSubscribedCustomTypeUnreadMessageCount(e)},t.prototype.createChannel=function(e){return void 0===e&&(e={}),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){return t=Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},_lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.n),e),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.o)(t)).throw(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),[2,this._manager.createChannel(t)]}))}))},t.prototype.createDistinctChannelIfNotExist=function(e){return void 0===e&&(e={}),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){return t=Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},_lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.n),e),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.o)(t)).throw(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),t&&(t.isDistinct=!0),[2,this.createChannel(t)]}))}))},t.prototype.createChannelWithUserIds=function(e,t,n,a,r,s){return void 0===t&&(t=!1),void 0===r&&(r=""),void 0===s&&(s=""),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var i;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(o){return i=Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},_lib_bundle_17fdda58_js__WEBPACK_IMPORTED_MODULE_1__.n),{invitedUserIds:e,isDistinct:t,name:n,data:r,customType:s}),"string"==typeof a?i.coverUrl=a:i.coverImage=a,[2,this.createChannel(i)]}))}))},t.prototype.markAsReadAll=function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return this._manager.markAsReadAll(),[2]}))}))},t.prototype.markAsReadWithChannelUrls=function(e){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",e)).throw(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),this._manager.markAsReadWithChannelUrls(e),[2]}))}))},t.prototype.markAsDelivered=function(e){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e)).throw(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),[4,this.getChannel(e)];case 1:return[4,t.sent().markAsDelivered()];case 2:return t.sent(),[2]}}))}))},t}(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.db)},"./node_modules/@sendbird/chat/index.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return bn}));var e,_bundle_c578be85=__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-c578be85.js"),_bundle_121c0f7c=__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-121c0f7c.js"),poll_g=function(r){function g(){var t=null!==r&&r.apply(this,arguments)||this;return t.name="poll",t}return Object(_bundle_c578be85.bc)(g,r),g.prototype.init=function(t,a){var n=a.sdkState,o=a.dispatcher,i=a.sessionManager,s=a.requestQueue,l=a.logger,u=a.onlineDetector,c=a.cacheContext;r.prototype.init.call(this,t,{sdkState:n,dispatcher:o,sessionManager:i,requestQueue:s,logger:l,onlineDetector:u,cacheContext:c}),this._manager=new _bundle_c578be85.Q(t,{sdkState:n,dispatcher:o,sessionManager:i,requestQueue:s,logger:l,onlineDetector:u,cacheContext:c})},g.prototype.create=function(t){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var e;return Object(_bundle_c578be85.Ib)(this,(function(a){return e=Object(_bundle_c578be85.fc)(Object(_bundle_c578be85.fc)({},_bundle_c578be85.eb),t),Object(_bundle_c578be85.sc)(Object(_bundle_c578be85.fb)(e)).throw(_bundle_c578be85.qc.invalidParameters),[2,this._manager.create(e)]}))}))},g.prototype.get=function(t){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var e;return Object(_bundle_c578be85.Ib)(this,(function(a){return e=Object(_bundle_c578be85.fc)(Object(_bundle_c578be85.fc)({},_bundle_c578be85.gb),t),Object(_bundle_c578be85.sc)(Object(_bundle_c578be85.hb)(e)).throw(_bundle_c578be85.qc.invalidParameters),[2,this._manager.get(e)]}))}))},g.prototype.getOption=function(t){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var e;return Object(_bundle_c578be85.Ib)(this,(function(a){return e=Object(_bundle_c578be85.fc)(Object(_bundle_c578be85.fc)({},_bundle_c578be85.C),t),Object(_bundle_c578be85.sc)(Object(_bundle_c578be85.Jb)(e)).throw(_bundle_c578be85.qc.invalidParameters),[2,this._manager.getOption(e)]}))}))},g.prototype.buildPollFromSerializedData=function(t){return this._manager.buildPollFromSerializedData(t)},g}(_bundle_c578be85.db),_bundle_4d8e37ce=__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-4d8e37ce.js"),_bundle_3ab0f541_r=function(n){function e(){return null!==n&&n.apply(this,arguments)||this}return Object(_bundle_c578be85.bc)(e,n),e}(_bundle_c578be85.Kb),dt=function(e){this.key=e.key,this.url=e.url},lt=function(e){this.id=e.id,this.name=e.name,this.url=e.url,this.emojis=e.emojis?e.emojis.map((function(e){return new dt(e)})):[]},ht=function(e){this.emojiHash=e.emoji_hash||"",this.emojiCategories=e.emoji_categories?e.emoji_categories.map((function(e){return new lt(e)})):[]},ft={profileImage:void 0,profileUrl:void 0,nickname:void 0},pt=function(e){return function(t,n){return Object(_bundle_c578be85.A)(void 0,void 0,void 0,(function(){var r,a,u,c;return Object(_bundle_c578be85.Ib)(this,(function(d){switch(d.label){case 0:switch(t){case 1:case 2:case 3:case 4:return[3,1];case 5:return[3,3]}return[3,10];case 1:return[4,e.clear()];case 2:return d.sent(),n(),[3,11];case 3:return d.trys.push([3,8,,9]),r=function(e){return{v2:function(){return Object(_bundle_c578be85.A)(void 0,void 0,void 0,(function(){return Object(_bundle_c578be85.Ib)(this,(function(t){switch(t.label){case 0:return[4,e.commitSchema([{collectionName:_bundle_121c0f7c.y,keyName:_bundle_121c0f7c.vb,index:[Object(_bundle_4d8e37ce.k)(_bundle_4d8e37ce.c.LATEST_LAST_MESSAGE),Object(_bundle_4d8e37ce.k)(_bundle_4d8e37ce.c.CHRONOLOGICAL),Object(_bundle_4d8e37ce.k)(_bundle_4d8e37ce.c.CHANNEL_NAME_ALPHABETICAL)]},{collectionName:_bundle_121c0f7c.m,keyName:_bundle_121c0f7c.wb,index:[Object(_bundle_121c0f7c.Ab)(_bundle_121c0f7c.l.CHANNEL_LATEST),Object(_bundle_121c0f7c.Ab)(_bundle_121c0f7c.l.NEWEST_CHILD_MESSAGE)]},{collectionName:_bundle_121c0f7c.xb,keyName:_bundle_121c0f7c.yb,index:[Object(_bundle_121c0f7c.Ab)(_bundle_121c0f7c.l.CHANNEL_LATEST),Object(_bundle_121c0f7c.Ab)(_bundle_121c0f7c.l.NEWEST_CHILD_MESSAGE)]},{collectionName:_bundle_121c0f7c.zb,keyName:_bundle_121c0f7c.Bb}])];case 1:return[2,t.sent()]}}))}))},v3:function(){return Object(_bundle_c578be85.A)(void 0,void 0,void 0,(function(){return Object(_bundle_c578be85.Ib)(this,(function(t){switch(t.label){case 0:return[4,e.commitSchema([{collectionName:_bundle_121c0f7c.Cb,keyName:_bundle_121c0f7c.Db,index:[["-lastMessageUpdatedAt","-createdAt","syncIndex"]]}])];case 1:return[2,t.sent()]}}))}))},v4:function(){return Object(_bundle_c578be85.A)(void 0,void 0,void 0,(function(){return Object(_bundle_c578be85.Ib)(this,(function(t){switch(t.label){case 0:return[4,e.commitSchema([{collectionName:_bundle_121c0f7c.Eb,keyName:_bundle_121c0f7c.Fb,index:[Object(_bundle_121c0f7c.Gb)()]}])];case 1:return[2,t.sent()]}}))}))}}}(e),a=r.v2,u=r.v3,c=r.v4,[4,a()];case 4:return d.sent(),[4,u()];case 5:return d.sent(),[4,c()];case 6:return d.sent(),[4,e.collection(_bundle_121c0f7c.m).removeIf({where:{channelType:_bundle_c578be85.d.OPEN}})];case 7:case 8:return d.sent(),[3,9];case 9:return n(),[3,11];case 10:n(),d.label=11;case 11:return[2]}}))}))}},vt=function(){return"undefined"!=typeof document?document.visibilityState:"visible"},gt=function(e){function t(t){var n=t.getVisibilityState,r=void 0===n?vt:n,i=t.initialState,s=void 0===i?"visible":i,o=t.isEnabled,a=void 0===o||o,u=t.pauseCheckDelay,c=void 0===u?3e4:u,d=e.call(this)||this;return d._pauseCheckDelay=3e4,d._currentState="visible",d._getVisibilityState=r,d._pauseCheckDelay=c,d._currentState=s,d._isEnabled=a,d._boundToggleState=d._toggleState.bind(d),d}return Object(_bundle_c578be85.bc)(t,e),Object.defineProperty(t.prototype,"currentState",{get:function(){return this._currentState},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAvailable",{get:function(){return"undefined"!=typeof window&&!!window.addEventListener&&!!window.removeEventListener},enumerable:!1,configurable:!0}),t.prototype._toggleState=function(){var e=this,t=this._getVisibilityState();"hidden"!==t?"hidden"===this._currentState&&(this._pauseDelayTimer&&(clearTimeout(this._pauseDelayTimer),this._pauseDelayTimer=void 0),this.dispatch("resume")):"hidden"!==this._currentState&&(this._pauseDelayTimer=setTimeout((function(){e._pauseDelayTimer=void 0,e.dispatch("pause")}),this._pauseCheckDelay)),this._currentState=t},t.prototype.start=function(){this._isEnabled&&this.isAvailable&&(this._boundToggleState=this._toggleState.bind(this),window.addEventListener("visibilitychange",this._boundToggleState,{capture:!0}))},t.prototype.stop=function(){this._isEnabled&&this.isAvailable&&this._boundToggleState&&window.removeEventListener("visibilitychange",this._boundToggleState,{capture:!0})},t}(_bundle_c578be85.f),bt=function(){function e(e){var t=e.logger,n=e.connectionDelegate,r=void 0===n?null:n,i=this;this._onlineWorker=function(){var e;return null===(e=i.connectionDelegate)||void 0===e?void 0:e.reconnect()},this._offlineWorker=function(){var e;return null===(e=i.connectionDelegate)||void 0===e?void 0:e.disconnect()},this.unsubscribes=[],this._onlineListener=function(e){if(i.isAvailableOnWeb)return window.addEventListener("online",e),function(){return window.removeEventListener("online",e,!1)}},this._offlineListener=function(e){if(i.isAvailableOnWeb)return window.addEventListener("offline",e),function(){return window.removeEventListener("offline",e,!1)}},this.logger=t,r&&(this.connectionDelegate=r)}return Object.defineProperty(e.prototype,"isAvailableOnWeb",{get:function(){return"undefined"!=typeof window&&!!window.addEventListener&&"ononline"in window&&"onoffline"in window&&"undefined"!=typeof navigator&&void 0!==navigator.onLine},enumerable:!1,configurable:!0}),e.prototype.setOnlineListener=function(e){Boolean(e)&&"function"==typeof e&&(this._onlineListener=e)},e.prototype.setOfflineListener=function(e){Boolean(e)&&"function"==typeof e&&(this._offlineListener=e)},e.prototype.start=function(){this.unsubscribes=[this._onlineListener(this._onlineWorker),this._offlineListener(this._offlineWorker)]},e.prototype.stop=function(){var e=this;this.unsubscribes.forEach((function(t){try{null==t||t()}catch(t){e.logger.warn(t.message)}})),this.unsubscribes=[]},e.prototype.isOnline=function(){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85.Ib)(this,(function(e){return this.isAvailableOnWeb?[2,navigator.onLine]:[2,new Promise((function(e){fetch("https://www.google.com",{method:_bundle_c578be85.b.GET,mode:"no-cors"}).then((function(){return e(!0)})).catch((function(){return e(!1)}))}))]}))}))},e}(),mt=function(e){function t(t){var n=t.userId,r=t.nickname,i=t.profileUrl,s=t.profileImage,o=t.preferredLanguages,a=e.call(this)||this;return a.method=_bundle_c578be85.b.PUT,a.path="".concat(_bundle_c578be85.cc,"/").concat(encodeURIComponent(n)),a.params=Object(_bundle_c578be85.dc)(Object(_bundle_c578be85.tc)({nickname:r,profile_url:i,profile_file:s,preferred_languages:o})),a}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.ec),_t=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.user=new _bundle_c578be85.v(t,Object(_bundle_c578be85.fc)({},n)),r}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.gc),yt=function(e){function t(t){var n=t.userId,r=t.token,i=e.call(this)||this;return i.method=_bundle_c578be85.b.POST,i.path="".concat(_bundle_c578be85.cc,"/").concat(encodeURIComponent(n),"/push/apns"),i.params={apns_device_token:r,always_push:!0},i}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.ec);e=_bundle_c578be85.gc,Object(_bundle_c578be85.bc)((function t(t,n){var r=e.call(this,t,n)||this;return r.token=n.token,r.type=n.type?_bundle_c578be85.q[n.type.toLowerCase()]:_bundle_c578be85.q.UNKNOWN,r.user=new _bundle_c578be85.v(t,n.user),r}),e);var wt=function(e){function t(t){var n=t.userId,r=t.token,i=e.call(this)||this;return i.method=_bundle_c578be85.b.POST,i.path="".concat(_bundle_c578be85.cc,"/").concat(encodeURIComponent(n),"/push/gcm"),i.params={gcm_reg_token:r,always_push:!0},i}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.ec);!function(e){Object(_bundle_c578be85.bc)((function t(t,n){var r=e.call(this,t,n)||this;return r.token=n.token,r.type=n.type?_bundle_c578be85.q[n.type.toLowerCase()]:_bundle_c578be85.q.UNKNOWN,r.user=new _bundle_c578be85.v(t,n.user),r}),e)}(_bundle_c578be85.gc);var It=function(e){function t(t){var n=t.userId,r=t.token,i=e.call(this)||this;return i.method=_bundle_c578be85.b.DELETE,i.path="".concat(_bundle_c578be85.cc,"/").concat(encodeURIComponent(n),"/push/apns/").concat(encodeURIComponent(r)),i}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.ec);!function(e){Object(_bundle_c578be85.bc)((function t(t,n){var r=e.call(this,t,n)||this;return r.token=n.token,r.user=new _bundle_c578be85.v(t,n.user),r.lastDeletedAt=n.device_token_last_deleted_at,r}),e)}(_bundle_c578be85.gc);var Ct=function(e){function t(t){var n=t.userId,r=t.token,i=e.call(this)||this;return i.method=_bundle_c578be85.b.DELETE,i.path="".concat(_bundle_c578be85.cc,"/").concat(encodeURIComponent(n),"/push/gcm/").concat(encodeURIComponent(r)),i}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.ec);!function(e){Object(_bundle_c578be85.bc)((function t(t,n){var r=e.call(this,t,n)||this;return r.token=n.token,r.user=new _bundle_c578be85.v(t,n.user),r.lastDeletedAt=n.device_token_last_deleted_at,r}),e)}(_bundle_c578be85.gc);var kt=function(e){function t(t){var n=t.userId,r=e.call(this)||this;return r.method=_bundle_c578be85.b.DELETE,r.path="".concat(_bundle_c578be85.cc,"/").concat(encodeURIComponent(n),"/push/apns"),r}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.ec);!function(e){Object(_bundle_c578be85.bc)((function t(t,n){var r=e.call(this,t,n)||this;return r.type=n.type?_bundle_c578be85.q[n.type.toLowerCase()]:_bundle_c578be85.q.UNKNOWN,r.user=new _bundle_c578be85.v(t,n.user),r.lastDeletedAt=n.device_token_last_deleted_at,r}),e)}(_bundle_c578be85.gc);var St=function(e){function t(t){var n=t.userId,r=e.call(this)||this;return r.method=_bundle_c578be85.b.DELETE,r.path="".concat(_bundle_c578be85.cc,"/").concat(encodeURIComponent(n),"/push/gcm"),r}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.ec);!function(e){Object(_bundle_c578be85.bc)((function t(t,n){var r=e.call(this,t,n)||this;return r.type=n.type?_bundle_c578be85.q[n.type.toLowerCase()]:_bundle_c578be85.q.UNKNOWN,r.user=new _bundle_c578be85.v(t,n.user),r.lastDeletedAt=n.device_token_last_deleted_at,r}),e)}(_bundle_c578be85.gc);var Tt=function(e){function t(t){var n=t.userId,r=t.type,i=t.token,s=t.ts,o=e.call(this)||this;return o.method=_bundle_c578be85.b.GET,o.path="".concat(_bundle_c578be85.cc,"/").concat(encodeURIComponent(n),"/push/").concat(encodeURIComponent(r),"/device_tokens"),o.params={created_ts:s,token:i},o}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.ec),Et=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.pushTokens={type:n.type?_bundle_c578be85.q[n.type.toLowerCase()]:_bundle_c578be85.q.UNKNOWN,deviceTokens:n.device_tokens,hasMore:n.has_more,token:n.token},r}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.gc),Pt=function(e){function t(t){var n=t.userId,r=e.call(this)||this;return r.method=_bundle_c578be85.b.GET,r.path="".concat(_bundle_c578be85.cc,"/").concat(encodeURIComponent(n),"/channel_invitation_preference"),r}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.ec),Ut=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.autoAccept=n.auto_accept,r}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.gc),Dt=function(e){function t(t){var n=t.userId,r=t.willAutoAccept,i=e.call(this)||this;return i.method=_bundle_c578be85.b.PUT,i.path="".concat(_bundle_c578be85.cc,"/").concat(encodeURIComponent(n),"/channel_invitation_preference"),i.params={auto_accept:r},i}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.ec),Ot=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.autoAccept=n.auto_accept,r}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.gc),At=function(e){function t(t){var n=t.userId,r=e.call(this)||this;return r.method=_bundle_c578be85.b.GET,r.path="".concat(_bundle_c578be85.cc,"/").concat(encodeURIComponent(n),"/push_preference"),r}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.ec),Nt=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.preference={doNotDisturbOn:n.do_not_disturb,startHour:n.start_hour,startMin:n.start_min,endHour:n.end_hour,endMin:n.end_min,timezone:n.timezone},r}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.gc),Lt=function(e){function t(t){var n=t.userId,r=t.doNotDisturbOn,i=t.startHour,s=t.startMin,o=t.endHour,a=t.endMin,u=t.timezone,l=e.call(this)||this;return l.method=_bundle_c578be85.b.PUT,l.path="".concat(_bundle_c578be85.cc,"/").concat(encodeURIComponent(n),"/push_preference"),l.params={do_not_disturb:r,start_hour:i,start_min:s,end_hour:o,end_min:a,timezone:u},l}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.ec),Mt=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.preference={doNotDisturbOn:n.do_not_disturb,startHour:n.start_hour,startMin:n.start_min,endHour:n.end_hour,endMin:n.end_min,timezone:n.timezone},r}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.gc),Rt=function(e){function t(t){var n=t.userId,r=e.call(this)||this;return r.method=_bundle_c578be85.b.GET,r.path="".concat(_bundle_c578be85.cc,"/").concat(encodeURIComponent(n),"/push_preference"),r}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.ec),zt=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.snoozePeriod={isSnoozeOn:n.snooze_enabled},"number"==typeof n.snooze_start_ts&&(r.snoozePeriod.startTs=n.snooze_start_ts),"number"==typeof n.snooze_end_ts&&(r.snoozePeriod.endTs=n.snooze_end_ts),r}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.gc),Qt=function(e){function t(t){var n=t.userId,r=t.snoozeOn,i=t.startTs,s=t.endTs,o=e.call(this)||this;return o.method=_bundle_c578be85.b.PUT,o.path="".concat(_bundle_c578be85.cc,"/").concat(encodeURIComponent(n),"/push_preference"),o.params={snooze_enabled:r,snooze_start_ts:i,snooze_end_ts:s},o}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.ec),jt=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.snoozePeriod={isSnoozeOn:n.snooze_enabled},"number"==typeof n.snooze_start_ts&&(r.snoozePeriod.startTs=n.snooze_start_ts),"number"==typeof n.snooze_end_ts&&(r.snoozePeriod.endTs=n.snooze_end_ts),r}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.gc),Ft=function(e){function t(t){var n=t.userId,r=t.blockedUserId,i=e.call(this)||this;return i.method=_bundle_c578be85.b.POST,i.path="".concat(_bundle_c578be85.cc,"/").concat(encodeURIComponent(n),"/block"),i.params={target_id:r},i}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.ec);!function(e){Object(_bundle_c578be85.bc)((function t(t,n){var r=e.call(this,t,n)||this;return r.user=new _bundle_c578be85.v(t,n),r}),e)}(_bundle_c578be85.gc);var qt=function(e){function t(t){var n=t.userId,r=t.unblockedUserId,i=e.call(this)||this;return i.method=_bundle_c578be85.b.DELETE,i.path="".concat(_bundle_c578be85.cc,"/").concat(encodeURIComponent(n),"/block/").concat(encodeURIComponent(r)),i}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.ec);!function(e){Object(_bundle_c578be85.bc)((function t(){return null!==e&&e.apply(this,arguments)||this}),e)}(_bundle_c578be85.gc);var Ht=function(e){function t(t){var n=t.userId,r=e.call(this)||this;return r.method=_bundle_c578be85.b.GET,r.path="".concat(_bundle_c578be85.cc,"/").concat(encodeURIComponent(n),"/push_preference"),r}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.ec),xt=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.pushTriggerOption=n.push_trigger_option,r}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.gc),Gt=function(e){function t(t){var n=t.userId,r=t.pushTriggerOption,i=e.call(this)||this;return i.method=_bundle_c578be85.b.PUT,i.path="".concat(_bundle_c578be85.cc,"/").concat(encodeURIComponent(n),"/push_preference"),i.params={push_trigger_option:r},i}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.ec),Wt=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.pushTriggerOption=n.push_trigger_option,r}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.gc),Bt=function(e){function t(t){var n=t.userId,r=e.call(this)||this;return r.method=_bundle_c578be85.b.GET,r.path="".concat(_bundle_c578be85.cc,"/").concat(encodeURIComponent(n),"/push/template"),r}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.ec),Kt=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.name=n.name,r}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.gc),Vt=function(e){function t(t){var n=t.userId,r=t.templateName,i=e.call(this)||this;return i.method=_bundle_c578be85.b.PUT,i.path="".concat(_bundle_c578be85.cc,"/").concat(encodeURIComponent(n),"/push/template"),i.params={name:r},i}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.ec),Jt=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.name=n.name,r}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.gc),Xt=function(e){function t(t){var n=t.userId,r=t.token,i=e.call(this)||this;return i.method=_bundle_c578be85.b.GET,i.path="".concat(_bundle_c578be85.cc,"/").concat(encodeURIComponent(n),"/friends/changelogs"),i.params={token:r},i}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.ec),Yt=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.changelogs={addedUsers:n.added.map((function(e){return new _bundle_c578be85.v(t,e)})),updatedUsers:n.updated.map((function(e){return new _bundle_c578be85.v(t,e)})),deletedUserIds:n.deleted,hasMore:n.has_more,token:n.next},r}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.gc),Zt=function(e){function t(t){var n=t.userId,r=t.discoveries,i=e.call(this)||this;return i.method=_bundle_c578be85.b.PUT,i.path="".concat(_bundle_c578be85.cc,"/").concat(encodeURIComponent(n),"/friend_discoveries"),i.params={friend_discoveries:r.map((function(e){return{friend_discovery_key:e.friendDiscoveryKey,friend_name:e.friendName}}))},i}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.ec),$t=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.friendDiscoveryRequestId=n.friend_discovery_request_id,r}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.gc),en=function(e){function t(t){var n=t.userId,r=t.discoveryKeys,i=e.call(this)||this;return i.method=_bundle_c578be85.b.DELETE,i.path="".concat(_bundle_c578be85.cc,"/").concat(encodeURIComponent(n),"/friend_discoveries"),i.params={friend_discovery_keys:r},i}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.ec);!function(e){Object(_bundle_c578be85.bc)((function t(){return null!==e&&e.apply(this,arguments)||this}),e)}(_bundle_c578be85.gc);var tn=function(e){function t(t){var n=t.userId,r=t.userIds,i=e.call(this)||this;return i.method=_bundle_c578be85.b.POST,i.path="".concat(_bundle_c578be85.cc,"/").concat(encodeURIComponent(n),"/friends"),i.params={user_ids:r},i}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.ec),nn=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.users=n.users.map((function(e){return new _bundle_c578be85.v(t,e)})),r}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.gc),rn=function(e){function t(t){var n=t.userId,r=t.userIds,i=e.call(this)||this;return i.method=_bundle_c578be85.b.DELETE,i.path="".concat(_bundle_c578be85.cc,"/").concat(encodeURIComponent(n),"/friends"),i.params={user_ids:r},i}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.ec);!function(e){Object(_bundle_c578be85.bc)((function t(){return null!==e&&e.apply(this,arguments)||this}),e)}(_bundle_c578be85.gc);var sn=function(e){function t(t){var n=t.userId,r=e.call(this)||this;return r.method=_bundle_c578be85.b.GET,r.path="".concat(_bundle_c578be85.cc,"/").concat(n,"/allow_friend_discovery"),r.params={},r}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.ec),on=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.allowFriendDiscovery=n.allow_friend_discovery,r}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.gc),an=function(e){function t(t){var n=t.userId,r=t.allowFriendDiscovery,i=e.call(this)||this;return i.method=_bundle_c578be85.b.PUT,i.path="".concat(_bundle_c578be85.cc,"/").concat(n,"/allow_friend_discovery"),i.params={allow_friend_discovery:r},i}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.ec);!function(e){Object(_bundle_c578be85.bc)((function t(){return null!==e&&e.apply(this,arguments)||this}),e)}(_bundle_c578be85.gc);var un,cn=function(e){function t(){var t=e.call(this)||this;return t.method=_bundle_c578be85.b.GET,t.path=_bundle_c578be85.ic,t}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.ec),dn=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.emojiContainer=new ht(n),r}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.gc),ln=function(e){function t(t){var n=t.categoryId,r=e.call(this)||this;return r.method=_bundle_c578be85.b.GET,r.path="".concat(_bundle_c578be85.ic,"/").concat(n),r}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.ec),hn=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.emojiCategory=new lt(n),r}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.gc),fn=function(e){function t(t){var n=t.key,r=e.call(this)||this;return r.method=_bundle_c578be85.b.GET,r.path="".concat(_bundle_c578be85.jc,"/").concat(n),r}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.ec),pn=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.emoji=new dt(n),r}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.gc),vn=function(e){function t(){var t=e.call(this)||this;return t.method=_bundle_c578be85.b.GET,t.path="".concat(_bundle_c578be85.kc),t}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.ec),gn=function(e){function t(t,n){var r,i=this,s=null!=n?n:{};return(i=e.call(this,t,n)||this).uikitConfiguration={string:JSON.stringify(s),json:s},i.updatedAt=null!==(r=null==n?void 0:n.updated_at)&&void 0!==r?r:0,i}return Object(_bundle_c578be85.bc)(t,e),t}(_bundle_c578be85.gc),bn=function(){function n(e,t,n){var r=this;this._storeInitialized=!1,this._iid=e,this.options=t;var o=_bundle_c578be85.w.of(e),a=o.sdkState,u=o.cacheContext,c=o.dispatcher,d=o.sessionManager,l=o.requestQueue,h=o.logger,f=o.userEventHandlers,p=o.appStateToggleEnabled;this._onlineDetector=new bt({logger:h,connectionDelegate:{reconnect:function(){return Object(_bundle_c578be85.A)(r,void 0,void 0,(function(){var t,n,r,i,o,a;return Object(_bundle_c578be85.Ib)(this,(function(s){switch(s.label){case 0:if(t=_bundle_c578be85.w.of(e),n=t.sdkState,r=t.connectionManager,(i=t.sessionManager).session.hasSession)return[3,5];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,r.connect(i.session.authToken)];case 2:return s.sent(),[3,4];case 3:if(o=s.sent(),Object(_bundle_c578be85.o)(o))throw o;return h.debug("connect failed by reconnect event = ",o),[3,4];case 4:return[3,9];case 5:if("foreground"!==n.appState)return[3,9];s.label=6;case 6:return s.trys.push([6,8,,9]),[4,r.resetAndReconnect()];case 7:return s.sent(),[3,9];case 8:if(a=s.sent(),Object(_bundle_c578be85.o)(a))throw a;return h.debug("resetAndReconnect failed by reconnect event = ",a),[3,9];case 9:return c.dispatch(new _bundle_3ab0f541_r),[2]}}))}))},disconnect:function(){Object(_bundle_c578be85.yc)((function(){return Object(_bundle_c578be85.A)(r,void 0,void 0,(function(){return Object(_bundle_c578be85.Ib)(this,(function(t){switch(t.label){case 0:return[4,_bundle_c578be85.w.of(e).connectionManager.disconnect()];case 1:return t.sent(),[2]}}))}))}))}}});var v=new _bundle_4d8e37ce.a(e,{localCacheEnabled:u.localCacheEnabled,enableAutoResend:u.localCacheConfig.enableAutoResend,dispatcher:c,sdkState:a,logger:h});n.forEach((function(t){t.init(e,{sdkState:a,cacheContext:u,dispatcher:c,sessionManager:d,requestQueue:l,logger:h,onlineDetector:r._onlineDetector}),r[t.name]=t})),this._appStateChangeDetector=new gt({isEnabled:p}),this._appStateChangeDetector.on("resume",(function(){h.debug("the page resumes from freeze"),r.setForegroundState()})).on("pause",(function(){h.debug("the page freezes"),r.setBackgroundState()})),c.on((function(t){var n;if(t instanceof _bundle_c578be85.c)t.stateType===_bundle_c578be85.e.CONNECTED&&v.processNonAutoResendRegisteredPendingMessages();else if(t instanceof _bundle_c578be85.x){if("USEV"===t.code){var o=t.as(_bundle_4d8e37ce.g).event;if(o.category===_bundle_4d8e37ce.h.FRIEND_DISCOVERED){var c=_bundle_4d8e37ce.i.getDataAsFriendDiscoveredEvent(e,o).friendDiscoveries;Object(_bundle_c578be85.g)((function(){return Object(_bundle_c578be85.A)(r,void 0,void 0,(function(){return Object(_bundle_c578be85.Ib)(this,(function(e){return[2,f.forEach((function(e){e.onFriendsDiscovered&&e.onFriendsDiscovered(c)}))]}))}))}))}}}else if(t instanceof _bundle_c578be85.h){var d=_bundle_c578be85.w.of(r._iid).subscribedUnreadMessageCount,l=!1,p=t.ts;if("number"==typeof p&&p>d.ts){if(d.all!==t.all&&(l=!0),d.all=t.all>=0?t.all:0,t.customTypes)for(var g in t.customTypes)d.customTypes[g]!==t.customTypes[g]&&(l=!0),d.customTypes[g]=t.customTypes[g];l=l&&d.ts>0,d.ts=p}l&&Object(_bundle_c578be85.g)((function(){return Object(_bundle_c578be85.A)(r,void 0,void 0,(function(){return Object(_bundle_c578be85.Ib)(this,(function(e){return[2,f.forEach((function(e){e.onTotalUnreadMessageCountChanged&&e.onTotalUnreadMessageCountChanged({groupChannelCount:d.all,feedChannelCount:d.feed,customTypeUnreadCount:d.customTypes}),e.onTotalUnreadMessageCountUpdated&&e.onTotalUnreadMessageCountUpdated(d.all,d.customTypes)}))]}))}))}))}else t instanceof _bundle_c578be85.i?(u.preference.set(r._getUserProfileCacheKey(a.userId),_bundle_c578be85.j.payloadify(t.userProfile)),(null===(n=t.userProfile.appInfo.notificationInfo)||void 0===n?void 0:n.isEnabled)&&u.preference.set(Object(_bundle_c578be85.k)(r.appId),{value:!0})):t instanceof _bundle_c578be85.l&&t.error&&t.error.isSessionInvalidatedError&&(h.debug("session revoked."),r.disconnect())}))}return n.init=function(e){var t=e.appId,r=e.appVersion,i=e.modules,s=void 0===i?[]:i,o=e.options,a=void 0===o?new _bundle_c578be85.t:o,u=e.debugMode,c=void 0!==u&&u,d=e.customApiHost,l=e.customWebSocketHost,h=e.newInstance,f=void 0!==h&&h,p=e.logLevel,v=e.localCacheEnabled,g=void 0!==v&&v,b=e.localCacheConfig,m=void 0===b?new _bundle_c578be85.m:b,_=e.localCacheEncryption,y=e.useAsyncStorageStore,w=void 0===y?null:y,I=e.appStateToggleEnabled,C=void 0===I||I;if(!un||f){var k="su-".concat(Object(_bundle_c578be85.lc)()),S=null!=_?_:{encrypt:function(e){return e},decrypt:function(e){return e}},E=new _bundle_121c0f7c.Hb({encryption:S});c||(E=Object(_bundle_c578be85.mc)()?w?new _bundle_121c0f7c.b({AsyncStorage:w,encryption:S}):new _bundle_121c0f7c.Hb({encryption:S}):new _bundle_121c0f7c.h({encryption:S})),new _bundle_c578be85.w(k,{appId:t,appVersion:r,options:a,apiHost:null!=d?d:"https://api-".concat(t,".sendbird.com"),websocketHost:null!=l?l:"wss://ws-".concat(t,".sendbird.com"),store:E,encryption:S,logLevel:p,localCacheEnabled:g,localCacheConfig:m,debugMode:c,appStateToggleEnabled:C});var P=[new _bundle_121c0f7c.Ib,new poll_g],U=new n(k,a,Object(_bundle_c578be85.nc)(Object(_bundle_c578be85.nc)([],Object(_bundle_c578be85.oc)(s),!1),Object(_bundle_c578be85.oc)(P),!1));return un||(un=U),U}return un},Object.defineProperty(n,"instance",{get:function(){return un},enumerable:!1,configurable:!0}),Object.defineProperty(n,"version",{get:function(){return _bundle_c578be85.uc},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"appId",{get:function(){return _bundle_c578be85.w.of(this._iid).sdkState.appId},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"appInfo",{get:function(){var e=_bundle_c578be85.w.of(this._iid).appInfo;return null!=e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"appVersion",{get:function(){var e;return null!==(e=_bundle_c578be85.w.of(this._iid).sdkState.appVersion)&&void 0!==e?e:""},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"debugMode",{get:function(){return!!_bundle_c578be85.w.of(this._iid).debugMode},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"logLevel",{get:function(){return _bundle_c578be85.w.of(this._iid).logger.level},set:function(e){_bundle_c578be85.w.of(this._iid).logger.level=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isCacheEnabled",{get:function(){return _bundle_c578be85.w.of(this._iid).cacheContext.localCacheEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"localCacheConfig",{get:function(){var e=_bundle_c578be85.w.of(this._iid).cacheContext;return e.localCacheEnabled?e.localCacheConfig:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ekey",{get:function(){return _bundle_c578be85.w.of(this._iid).sessionManager.ekey},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"currentUser",{get:function(){var e;return null!==(e=_bundle_c578be85.w.of(this._iid).sessionManager.currentUser)&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"connectionState",{get:function(){var e=_bundle_c578be85.w.of(this._iid).connectionManager;return e.isConnected?_bundle_c578be85.pc.OPEN:e.isConnecting?_bundle_c578be85.pc.CONNECTING:_bundle_c578be85.pc.CLOSED},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"lastConnectedAt",{get:function(){var e=_bundle_c578be85.w.of(this._iid),t=e.connectedAt;return e.connectionManager.isConnected?t:0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"fcmPushToken",{get:function(){var e;return null!==(e=this._fcmPushToken)&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"apnsPushToken",{get:function(){var e;return null!==(e=this._apnsPushToken)&&void 0!==e?e:null},enumerable:!1,configurable:!0}),n.prototype._getNestDBVersion=function(){return 6},n.prototype._getPreferenceCacheKey=function(e){return"sendbird@".concat(this.appId,"/").concat(e,".pref")},n.prototype._getUserProfileCacheKey=function(e){return"sendbird@".concat(this.appId,"/").concat(e,".profile")},n.prototype.getMemoryStoreForDebugging=function(){var e=_bundle_c578be85.w.of(this._iid),t=e.debugMode,n=e.cacheContext;if(t)return n.store instanceof _bundle_121c0f7c.Hb?n.store:null;throw _bundle_c578be85.qc.debugModeRequired},n.prototype.addExtension=function(e,t){var n=_bundle_c578be85.w.of(this._iid).sdkState;["sb_uikit","sb_syncmanager","device-os-platform"].indexOf(e)>-1&&n.extensions&&(n.extensions[e]=t)},n.prototype.addSendbirdExtensions=function(e,t,n){var r,i,s=_bundle_c578be85.w.of(this._iid),o=s.logger,a=s.sdkState,u=new RegExp(_bundle_c578be85.n);if(0===e.length)return o.debug("sb.addSendbirdExtensions() has failed because the given sendbirdExtensions is empty."),!1;if(e.find((function(e){return!u.test(e.version)})))return o.debug("sb.addSendbirdExtensions() has failed because the given version did not satisfy the SemVer specification."),!1;if(n)try{for(var c=Object(_bundle_c578be85.rc)(Object.entries(n)),d=c.next();!d.done;d=c.next()){var l=Object(_bundle_c578be85.oc)(d.value,2),h=l[0],f=l[1];if(/&|=/.test(h)||/&|=/.test(f))return o.debug("sb.addSendbirdExtensions() has failed because the given customData includes at least one invalid character: = or &."),!1}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}return a.sendbirdRuntimeEnvironment={sendbirdExtensions:e,deviceOS:t,customData:n},!0},n.prototype.setOnlineListener=function(e){this._onlineDetector.setOnlineListener(e)},n.prototype.setOfflineListener=function(e){this._onlineDetector.setOfflineListener(e)},n.prototype._safeInitializeStore=function(e){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var t;return Object(_bundle_c578be85.Ib)(this,(function(n){switch(n.label){case 0:t=_bundle_c578be85.w.of(this._iid).cacheContext,n.label=1;case 1:return n.trys.push([1,3,,5]),[4,t.store.init(e)];case 2:return n.sent(),this._storeInitialized=!0,[3,5];case 3:return n.sent(),t.replaceStore(new _bundle_121c0f7c.Hb),[4,this._safeInitializeStore(e)];case 4:return n.sent(),[3,5];case 5:return[2]}}))}))},n.prototype.initializeCache=function(e){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var t,n,r,i,o,a,u,c,d;return Object(_bundle_c578be85.Ib)(this,(function(s){switch(s.label){case 0:if(t=_bundle_c578be85.w.of(this._iid),n=t.sdkState,r=t.cacheContext,i=t.dispatcher,o=t.logger,n.userId&&n.userId===e)return[3,9];if(a="sendbird@".concat(n.appId,"/").concat(e,".db"),!r.localCacheEnabled)return[3,7];s.label=1;case 1:return s.trys.push([1,4,,6]),r.nestdb&&r.nestdb.state!==_bundle_121c0f7c.Pb.CLOSED&&r.nestdb.name===a?[3,3]:(u="sendbird@".concat(n.appId,"/").concat(e,".db"),(c=r.nestdb=new _bundle_121c0f7c.Lb({name:u,version:this._getNestDBVersion(),store:r.store,config:new _bundle_121c0f7c.Mb({dbname:u,itemSizeLimit:61440})})).on("upgrade",pt(c)),c.on("storeReplaced",(function(e){r.replaceStore(e),r.localCacheEnabled=!1,c.on("upgrade",pt(c))})),[4,c.open()]);case 2:s.sent(),this._storeInitialized=!0,i.dispatch(new _bundle_4d8e37ce.b(this._iid,{userId:e})),s.label=3;case 3:return n.userId=e,[3,6];case 4:return d=s.sent(),o.warn("Nest DB Open Failed. ",d),r.store instanceof _bundle_121c0f7c.Hb||(r.replaceStore(new _bundle_121c0f7c.Hb),r.localCacheEnabled=!1),[4,this._safeInitializeStore(a)];case 5:throw s.sent(),n.userId=e,_bundle_c578be85.qc.databaseError;case 6:return[3,9];case 7:return[4,this._safeInitializeStore(a)];case 8:s.sent(),n.userId=e,s.label=9;case 9:return[2]}}))}))},n.prototype.getCacheDataSize=function(){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var e;return Object(_bundle_c578be85.Ib)(this,(function(t){switch(t.label){case 0:return(e=_bundle_c578be85.w.of(this._iid).cacheContext).localCacheEnabled&&e.nestdb?[4,e.nestdb.estimateUsage()]:[3,2];case 1:return[2,t.sent()];case 2:return[2,0]}}))}))},n.prototype.clearCachedData=function(){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var e;return Object(_bundle_c578be85.Ib)(this,(function(t){switch(t.label){case 0:return(e=_bundle_c578be85.w.of(this._iid).cacheContext).localCacheEnabled&&e.nestdb?[4,e.nestdb.clear()]:[3,2];case 1:t.sent(),t.label=2;case 2:return this._storeInitialized?[4,e.preference.clear()]:[3,4];case 3:t.sent(),t.label=4;case 4:return[2]}}))}))},n.prototype.clearCachedMessages=function(e){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var t,n,r=this;return Object(_bundle_c578be85.Ib)(this,(function(o){switch(o.label){case 0:return Object(_bundle_c578be85.sc)(Object(_bundle_c578be85.p)("string",e)).throw(_bundle_c578be85.qc.invalidParameters),t=_bundle_121c0f7c.Nb.of(this._iid),n=_bundle_121c0f7c.Ob.of(this._iid),t&&n?[4,Promise.all(e.map((function(e){return Object(_bundle_c578be85.A)(r,void 0,void 0,(function(){return Object(_bundle_c578be85.Ib)(this,(function(r){switch(r.label){case 0:return[4,t.removeMessagesOfChannel(e)];case 1:return r.sent(),[4,n.removeMessagesOfChannel(e)];case 2:return r.sent(),[2]}}))}))})))]:[3,2];case 1:o.sent(),o.label=2;case 2:return[2]}}))}))},n.prototype._setupPreference=function(e){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var t,n,r,i,o;return Object(_bundle_c578be85.Ib)(this,(function(s){switch(s.label){case 0:return t=_bundle_c578be85.w.of(this._iid),n=t.sdkState,r=t.cacheContext,i=t.statLogCollector,[4,r.preference.init(this._getPreferenceCacheKey(e),this._getNestDBVersion())];case 1:return s.sent(),[4,r.preference.get(this._getUserProfileCacheKey(e))];case 2:return(o=s.sent())&&new _bundle_c578be85.j(this._iid,o).apply(),[4,i.init("sendbird@".concat(n.appId,"/").concat(e,".statlog"))];case 3:return s.sent(),[2]}}))}))},n.prototype._ready=function(e,n,r){return void 0===r&&(r={}),Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var i,o,a,u,c,d;return Object(_bundle_c578be85.Ib)(this,(function(s){switch(s.label){case 0:return Object(_bundle_c578be85.sc)(Object(_bundle_c578be85.B)("string",e)&&Object(_bundle_c578be85.B)("string",n,!0)).throw(_bundle_c578be85.qc.invalidParameters),i=_bundle_c578be85.w.of(this._iid),o=i.sdkState,a=i.cacheContext,u=i.connectionManager,c=r.errorForOtherUser,o.userId&&o.userId!==e?c?[3,2]:[4,u.logout()]:[3,3];case 1:return s.sent(),[3,3];case 2:throw c;case 3:return s.trys.push([3,5,6,8]),[4,this.initializeCache(e)];case 4:return s.sent(),_bundle_c578be85.w.of(this._iid).dispatcher.dispatch(new _bundle_4d8e37ce.e),[3,8];case 5:return s.sent(),d=_bundle_c578be85.w.of(this._iid).logger,a.localCacheEnabled=!1,d.warn("Cache initialization failed - cache is not available."),[3,8];case 6:return[4,this._setupPreference(e)];case 7:return s.sent(),[7];case 8:return[2]}}))}))},n.prototype.authenticateFeed=function(e,t){var n;return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var r,i,o;return Object(_bundle_c578be85.Ib)(this,(function(s){switch(s.label){case 0:return r=_bundle_c578be85.w.of(this._iid),i=r.sessionManager,o=r.connectionManager,[4,this._ready(e,t,{errorForOtherUser:o.isConnected?_bundle_c578be85.qc.alreadyConnectedAsAnotherUser:void 0})];case 1:return s.sent(),(null===(n=i.session.services)||void 0===n?void 0:n.includes(_bundle_c578be85.r.CHAT))?[3,3]:[4,i.authenticateFeed(e,t)];case 2:s.sent(),s.label=3;case 3:return[2,this.currentUser]}}))}))},n.prototype.connect=function(e,t){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85.Ib)(this,(function(n){switch(n.label){case 0:return[4,this._ready(e,t)];case 1:n.sent(),n.label=2;case 2:return n.trys.push([2,,4,5]),[4,_bundle_c578be85.w.of(this._iid).connectionManager.connect(t)];case 3:return n.sent(),[3,5];case 4:return this._onlineDetector.start(),this._appStateChangeDetector.start(),[7];case 5:return[2,this.currentUser]}}))}))},n.prototype.reconnect=function(){var e=_bundle_c578be85.w.of(this._iid),t=e.connectionManager,n=e.sdkState,r=e.sessionManager.session.hasSession;return r&&(this._appStateChangeDetector.start(),this._onlineDetector.start(),t.resetAndReconnect().then((function(){n.appState="foreground"})).catch((function(){}))),r},n.prototype.disconnect=function(){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var e,t,n,r;return Object(_bundle_c578be85.Ib)(this,(function(i){switch(i.label){case 0:return e=_bundle_c578be85.w.of(this._iid),t=e.connectionManager,n=e.sdkState,r=e.requestQueue,this._appStateChangeDetector.stop(),this._onlineDetector.stop(),r.cancelAll(),[4,t.logout()];case 1:return i.sent(),[4,this.clearCachedData()];case 2:return i.sent(),n.appState="foreground",[2]}}))}))},n.prototype.disconnectWebSocket=function(){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var e,t,n;return Object(_bundle_c578be85.Ib)(this,(function(r){switch(r.label){case 0:return e=_bundle_c578be85.w.of(this._iid),t=e.connectionManager,n=e.requestQueue,this._appStateChangeDetector.stop(),this._onlineDetector.stop(),n.cancelAll(),[4,t.disconnectWebSocket(!0)];case 1:return r.sent(),[2]}}))}))},n.prototype.setBackgroundState=function(){var e=_bundle_c578be85.w.of(this._iid),t=e.connectionManager,n=e.sdkState,r=e.logger;"foreground"===n.appState&&(n.appState="background",r.debug("going background state"),t.background().catch((function(e){r.debug("setBackgroundState error = ",e)})))},n.prototype.setForegroundState=function(){var e=_bundle_c578be85.w.of(this._iid),t=e.connectionManager,n=e.sdkState,r=e.dispatcher,i=e.logger;"background"===n.appState&&(n.appState="foreground",i.debug("going foreground state"),t.resetAndReconnect().catch((function(e){i.debug("setForgroundState error = ",e)})),r.dispatch(new _bundle_3ab0f541_r))},n.prototype.setSessionHandler=function(e){Object(_bundle_c578be85.sc)(e instanceof _bundle_121c0f7c.p).throw(_bundle_c578be85.qc.invalidParameters),_bundle_c578be85.w.of(this._iid).sessionManager.handler=e},n.prototype.addUserEventHandler=function(e,n){Object(_bundle_c578be85.sc)(Object(_bundle_c578be85.B)("string",e)&&n instanceof _bundle_121c0f7c.r).throw(_bundle_c578be85.qc.invalidParameters),_bundle_c578be85.w.of(this._iid).userEventHandlers.set(e,n)},n.prototype.removeUserEventHandler=function(e){_bundle_c578be85.w.of(this._iid).userEventHandlers.delete(e)},n.prototype.removeAllUserEventHandler=function(){_bundle_c578be85.w.of(this._iid).userEventHandlers.clear()},n.prototype.addConnectionHandler=function(e,n){Object(_bundle_c578be85.sc)(Object(_bundle_c578be85.B)("string",e)&&n instanceof _bundle_121c0f7c.d).throw(_bundle_c578be85.qc.invalidParameters),_bundle_c578be85.w.of(this._iid).connectionHandlers.set(e,n)},n.prototype.removeConnectionHandler=function(e){_bundle_c578be85.w.of(this._iid).connectionHandlers.delete(e)},n.prototype.removeAllConnectionHandler=function(){_bundle_c578be85.w.of(this._iid).connectionHandlers.clear()},n.prototype.createApplicationUserListQuery=function(e){return void 0===e&&(e={}),new _bundle_121c0f7c.Jb(this._iid,e)},n.prototype.createBlockedUserListQuery=function(e){return void 0===e&&(e={}),new _bundle_121c0f7c.c(this._iid,e)},n.prototype.createFriendListQuery=function(e){return void 0===e&&(e={}),new _bundle_121c0f7c.f(this._iid,e)},n.prototype.createMessageSearchQuery=function(e){return new _bundle_121c0f7c.Kb(this._iid,e)},n.prototype.createPollListQuery=function(e){return new _bundle_c578be85.vc(this._iid,Object(_bundle_c578be85.fc)({},e))},n.prototype.createPollVoterListQuery=function(e){return new _bundle_c578be85.wc(this._iid,Object(_bundle_c578be85.fc)({},e))},n.prototype.buildUserFromSerializedData=function(e){var t=Object(_bundle_c578be85.xc)(e);return new _bundle_c578be85.v(this._iid,_bundle_c578be85.v.payloadify(t))},n.prototype.updateCurrentUserInfo=function(n){return void 0===n&&(n={}),Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var r,i,o,a,u,c,d;return Object(_bundle_c578be85.Ib)(this,(function(s){switch(s.label){case 0:return r=Object(_bundle_c578be85.fc)(Object(_bundle_c578be85.fc)({},ft),n),Object(_bundle_c578be85.sc)(function(n){return Object(_bundle_c578be85.hc)(n.profileImage,!0)&&Object(_bundle_c578be85.B)("string",n.profileUrl,!0)&&Object(_bundle_c578be85.B)("string",n.nickname,!0)}(r)).throw(_bundle_c578be85.qc.invalidParameters),this.currentUser?(i=_bundle_c578be85.w.of(this._iid),o=i.sdkState,a=i.requestQueue,u=new mt(Object(_bundle_c578be85.fc)({userId:o.userId},r)),[4,a.send(u)]):[3,2];case 1:return c=s.sent(),d=c.as(_t).user,this.currentUser&&(r.nickname&&(this.currentUser.nickname=d.nickname),(r.profileUrl||r.profileImage)&&(this.currentUser.plainProfileUrl=d.profileUrl)),[2,d];case 2:throw _bundle_c578be85.qc.connectionRequired}}))}))},n.prototype.updateCurrentUserInfoWithPreferredLanguages=function(e){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var t,n,r,i,o,a;return Object(_bundle_c578be85.Ib)(this,(function(s){switch(s.label){case 0:return Object(_bundle_c578be85.sc)(Object(_bundle_c578be85.p)("string",e)).throw(_bundle_c578be85.qc.invalidParameters),this.currentUser?(t=_bundle_c578be85.w.of(this._iid),n=t.sdkState,r=t.requestQueue,i=new mt({userId:n.userId,preferredLanguages:e}),[4,r.send(i)]):[3,2];case 1:return o=s.sent(),a=o.as(_t).user,this.currentUser&&(this.currentUser.preferredLanguages=a.preferredLanguages),[2,a];case 2:throw _bundle_c578be85.qc.connectionRequired}}))}))},n.prototype.registerFCMPushTokenForCurrentUser=function(e){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var n,r,o,a,u,c=this;return Object(_bundle_c578be85.Ib)(this,(function(d){switch(d.label){case 0:if(Object(_bundle_c578be85.sc)(Object(_bundle_c578be85.B)("string",e)).throw(_bundle_c578be85.qc.invalidParameters),!this.currentUser)return[3,6];d.label=1;case 1:return d.trys.push([1,4,,5]),n=_bundle_c578be85.w.of(this._iid),r=n.sessionManager,o=n.sdkState,a=n.requestQueue,r.hasDeviceToken(_bundle_c578be85.q.FCM,e)?[2,_bundle_c578be85.s.SUCCESS]:(u=new wt({userId:o.userId,token:e}),[4,a.send(u)]);case 2:return d.sent(),[4,Object(_bundle_c578be85.yc)((function(){return Object(_bundle_c578be85.A)(c,void 0,void 0,(function(){return Object(_bundle_c578be85.Ib)(this,(function(t){switch(t.label){case 0:return r.setDeviceToken(_bundle_c578be85.q.FCM,e),[4,r.saveDeviceToken()];case 1:return t.sent(),[2]}}))}))}))];case 3:return d.sent(),this._fcmPushToken="",[2,_bundle_c578be85.s.SUCCESS];case 4:return d.sent(),[2,_bundle_c578be85.s.ERROR];case 5:return[3,7];case 6:return this._fcmPushToken=e,[2,_bundle_c578be85.s.PENDING];case 7:return[2]}}))}))},n.prototype.unregisterFCMPushTokenForCurrentUser=function(e){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var n,r,o,a,u,c,d=this;return Object(_bundle_c578be85.Ib)(this,(function(l){switch(l.label){case 0:if(Object(_bundle_c578be85.sc)(Object(_bundle_c578be85.B)("string",e)).throw(_bundle_c578be85.qc.invalidParameters),!this.currentUser)return[3,6];l.label=1;case 1:return l.trys.push([1,4,,5]),n=_bundle_c578be85.w.of(this._iid),r=n.sessionManager,o=n.sdkState,a=n.requestQueue,u=new Ct({userId:o.userId,token:e}),[4,a.send(u)];case 2:return c=l.sent().lastDeletedAt,[4,Object(_bundle_c578be85.yc)((function(){return Object(_bundle_c578be85.A)(d,void 0,void 0,(function(){return Object(_bundle_c578be85.Ib)(this,(function(t){switch(t.label){case 0:return r.unsetDeviceToken(_bundle_c578be85.q.FCM,e),r.setDeviceTokenDeletedAt(c),[4,r.saveDeviceToken()];case 1:return t.sent(),[2]}}))}))}))];case 3:return l.sent(),this._fcmPushToken="",[2,_bundle_c578be85.s.SUCCESS];case 4:return l.sent(),[2,_bundle_c578be85.s.ERROR];case 5:return[3,7];case 6:return this._fcmPushToken=e,[2,_bundle_c578be85.s.PENDING];case 7:return[2]}}))}))},n.prototype.unregisterFCMPushTokenAllForCurrentUser=function(){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var e,t,n,r,o,a,u=this;return Object(_bundle_c578be85.Ib)(this,(function(c){switch(c.label){case 0:return this.currentUser?(e=_bundle_c578be85.w.of(this._iid),t=e.sessionManager,n=e.sdkState,r=e.requestQueue,o=new St({userId:n.userId}),[4,r.send(o)]):[3,3];case 1:return a=c.sent().lastDeletedAt,[4,Object(_bundle_c578be85.yc)((function(){return Object(_bundle_c578be85.A)(u,void 0,void 0,(function(){return Object(_bundle_c578be85.Ib)(this,(function(e){switch(e.label){case 0:return t.unsetDeviceTokens(_bundle_c578be85.q.FCM),t.setDeviceTokenDeletedAt(a),[4,t.saveDeviceToken()];case 1:return e.sent(),[2]}}))}))}))];case 2:c.sent(),c.label=3;case 3:return[2]}}))}))},n.prototype.registerAPNSPushTokenForCurrentUser=function(e){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var n,r,o,a,u,c=this;return Object(_bundle_c578be85.Ib)(this,(function(d){switch(d.label){case 0:if(Object(_bundle_c578be85.sc)(Object(_bundle_c578be85.B)("string",e)).throw(_bundle_c578be85.qc.invalidParameters),!this.currentUser)return[3,6];d.label=1;case 1:return d.trys.push([1,4,,5]),n=_bundle_c578be85.w.of(this._iid),r=n.sessionManager,o=n.sdkState,a=n.requestQueue,r.hasDeviceToken(_bundle_c578be85.q.APNS,e)?[2,_bundle_c578be85.s.SUCCESS]:(u=new yt({userId:o.userId,token:e}),[4,a.send(u)]);case 2:return d.sent(),[4,Object(_bundle_c578be85.yc)((function(){return Object(_bundle_c578be85.A)(c,void 0,void 0,(function(){return Object(_bundle_c578be85.Ib)(this,(function(t){switch(t.label){case 0:return r.setDeviceToken(_bundle_c578be85.q.APNS,e),[4,r.saveDeviceToken()];case 1:return t.sent(),[2]}}))}))}))];case 3:return d.sent(),this._apnsPushToken="",[2,_bundle_c578be85.s.SUCCESS];case 4:return d.sent(),[2,_bundle_c578be85.s.ERROR];case 5:return[3,7];case 6:return this._apnsPushToken=e,[2,_bundle_c578be85.s.PENDING];case 7:return[2]}}))}))},n.prototype.unregisterAPNSPushTokenForCurrentUser=function(e){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var n,r,o,a,u,c,d=this;return Object(_bundle_c578be85.Ib)(this,(function(l){switch(l.label){case 0:if(Object(_bundle_c578be85.sc)(Object(_bundle_c578be85.B)("string",e)).throw(_bundle_c578be85.qc.invalidParameters),!this.currentUser)return[3,6];l.label=1;case 1:return l.trys.push([1,4,,5]),n=_bundle_c578be85.w.of(this._iid),r=n.sessionManager,o=n.sdkState,a=n.requestQueue,u=new It({userId:o.userId,token:e}),[4,a.send(u)];case 2:return c=l.sent().lastDeletedAt,[4,Object(_bundle_c578be85.yc)((function(){return Object(_bundle_c578be85.A)(d,void 0,void 0,(function(){return Object(_bundle_c578be85.Ib)(this,(function(t){switch(t.label){case 0:return r.unsetDeviceToken(_bundle_c578be85.q.APNS,e),r.setDeviceTokenDeletedAt(c),[4,r.saveDeviceToken()];case 1:return t.sent(),[2]}}))}))}))];case 3:return l.sent(),this._apnsPushToken="",[2,_bundle_c578be85.s.SUCCESS];case 4:return l.sent(),[2,_bundle_c578be85.s.ERROR];case 5:return[3,7];case 6:return this._apnsPushToken=e,[2,_bundle_c578be85.s.PENDING];case 7:return[2]}}))}))},n.prototype.unregisterAPNSPushTokenAllForCurrentUser=function(){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var e,t,n,r,o,a,u=this;return Object(_bundle_c578be85.Ib)(this,(function(c){switch(c.label){case 0:return this.currentUser?(e=_bundle_c578be85.w.of(this._iid),t=e.sessionManager,n=e.sdkState,r=e.requestQueue,o=new kt({userId:n.userId}),[4,r.send(o)]):[3,3];case 1:return a=c.sent().lastDeletedAt,[4,Object(_bundle_c578be85.yc)((function(){return Object(_bundle_c578be85.A)(u,void 0,void 0,(function(){return Object(_bundle_c578be85.Ib)(this,(function(e){switch(e.label){case 0:return t.unsetDeviceTokens(_bundle_c578be85.q.APNS),t.setDeviceTokenDeletedAt(a),[4,t.saveDeviceToken()];case 1:return e.sent(),[2]}}))}))}))];case 2:c.sent(),c.label=3;case 3:return[2]}}))}))},n.prototype.getChannelInvitationPreference=function(){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var e,t,n,r;return Object(_bundle_c578be85.Ib)(this,(function(s){switch(s.label){case 0:return e=_bundle_c578be85.w.of(this._iid),t=e.sdkState,n=e.requestQueue,r=new Pt({userId:t.userId}),[4,n.send(r)];case 1:return[2,{autoAccept:s.sent().as(Ut).autoAccept}]}}))}))},n.prototype.setChannelInvitationPreference=function(e){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var n,r,i,o;return Object(_bundle_c578be85.Ib)(this,(function(s){switch(s.label){case 0:return Object(_bundle_c578be85.sc)(Object(_bundle_c578be85.B)("boolean",e)).throw(_bundle_c578be85.qc.invalidParameters),n=_bundle_c578be85.w.of(this._iid),r=n.sdkState,i=n.requestQueue,o=new Dt({userId:r.userId,willAutoAccept:e}),[4,i.send(o)];case 1:return[2,{autoAccept:s.sent().as(Ot).autoAccept}]}}))}))},n.prototype.getDoNotDisturb=function(){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var e,t,n,r;return Object(_bundle_c578be85.Ib)(this,(function(s){switch(s.label){case 0:return e=_bundle_c578be85.w.of(this._iid),t=e.sdkState,n=e.requestQueue,r=new At({userId:t.userId}),[4,n.send(r)];case 1:return[2,s.sent().as(Nt).preference]}}))}))},n.prototype.setDoNotDisturb=function(e,n,r,o,a,u){return void 0===n&&(n=0),void 0===r&&(r=0),void 0===o&&(o=0),void 0===a&&(a=0),void 0===u&&(u=""),Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var i,c,d,l;return Object(_bundle_c578be85.Ib)(this,(function(s){switch(s.label){case 0:return Object(_bundle_c578be85.sc)(Object(_bundle_c578be85.B)("boolean",e)&&Object(_bundle_c578be85.B)("number",n)&&Object(_bundle_c578be85.B)("number",r)&&Object(_bundle_c578be85.B)("number",o)&&Object(_bundle_c578be85.B)("number",a)&&Object(_bundle_c578be85.B)("string",u)).throw(_bundle_c578be85.qc.invalidParameters),i=_bundle_c578be85.w.of(this._iid),c=i.sdkState,d=i.requestQueue,l=new Lt({userId:c.userId,doNotDisturbOn:e,startHour:n,startMin:r,endHour:o,endMin:a,timezone:u}),[4,d.send(l)];case 1:return[2,s.sent().as(Mt).preference]}}))}))},n.prototype.getSnoozePeriod=function(){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var e,t,n,r;return Object(_bundle_c578be85.Ib)(this,(function(s){switch(s.label){case 0:return e=_bundle_c578be85.w.of(this._iid),t=e.sdkState,n=e.requestQueue,r=new Rt({userId:t.userId}),[4,n.send(r)];case 1:return[2,s.sent().as(zt).snoozePeriod]}}))}))},n.prototype.setSnoozePeriod=function(e,n,r){return void 0===n&&(n=0),void 0===r&&(r=0),Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var i,o,a,u;return Object(_bundle_c578be85.Ib)(this,(function(s){switch(s.label){case 0:return Object(_bundle_c578be85.sc)(Object(_bundle_c578be85.B)("boolean",e)&&Object(_bundle_c578be85.B)("number",n)&&Object(_bundle_c578be85.B)("number",r)).throw(_bundle_c578be85.qc.invalidParameters),i=_bundle_c578be85.w.of(this._iid),o=i.sdkState,a=i.requestQueue,u=new Qt({userId:o.userId,snoozeOn:e,startTs:n,endTs:r}),[4,a.send(u)];case 1:return[2,s.sent().as(jt).snoozePeriod]}}))}))},n.prototype.getMyPushTokensByToken=function(e,n){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var r,i,o,a,u,c,d,l,h,f,p,v;return Object(_bundle_c578be85.Ib)(this,(function(s){switch(s.label){case 0:return Object(_bundle_c578be85.sc)(Object(_bundle_c578be85.B)("string",e)&&Object(_bundle_c578be85.u)(_bundle_c578be85.q,n)).throw(_bundle_c578be85.qc.invalidParameters),r=_bundle_c578be85.w.of(this._iid),i=r.sdkState,o=r.requestQueue,a=r.sessionManager,u=new Tt({userId:i.userId,type:n,token:e}),[4,o.send(u)];case 1:c=s.sent(),d=c.as(Et).pushTokens;try{for(l=Object(_bundle_c578be85.rc)(d.deviceTokens),h=l.next();!h.done;h=l.next())f=h.value,a.setDeviceToken(d.type,f)}catch(e){p={error:e}}finally{try{h&&!h.done&&(v=l.return)&&v.call(l)}finally{if(p)throw p.error}}return[4,a.saveDeviceToken()];case 2:return s.sent(),[2,d]}}))}))},n.prototype.getPushTriggerOption=function(){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var e,t,n,r;return Object(_bundle_c578be85.Ib)(this,(function(i){switch(i.label){case 0:return e=_bundle_c578be85.w.of(this._iid),t=e.sdkState,n=e.requestQueue,r=new Ht({userId:t.userId}),[4,n.send(r)];case 1:return[2,i.sent().as(xt).pushTriggerOption]}}))}))},n.prototype.setPushTriggerOption=function(e){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var t,n,r,i;return Object(_bundle_c578be85.Ib)(this,(function(s){switch(s.label){case 0:return Object(_bundle_c578be85.sc)(Object(_bundle_c578be85.u)(_bundle_c578be85.y,e)).throw(_bundle_c578be85.qc.invalidParameters),t=_bundle_c578be85.w.of(this._iid),n=t.sdkState,r=t.requestQueue,i=new Gt({userId:n.userId,pushTriggerOption:e}),[4,r.send(i)];case 1:return[2,s.sent().as(Wt).pushTriggerOption]}}))}))},n.prototype.getPushTemplate=function(){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var e,t,n,r;return Object(_bundle_c578be85.Ib)(this,(function(i){switch(i.label){case 0:return e=_bundle_c578be85.w.of(this._iid),t=e.sdkState,n=e.requestQueue,r=new Bt({userId:t.userId}),[4,n.send(r)];case 1:return[2,i.sent().as(Kt).name]}}))}))},n.prototype.setPushTemplate=function(e){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var t,n,r,i;return Object(_bundle_c578be85.Ib)(this,(function(s){switch(s.label){case 0:return Object(_bundle_c578be85.sc)(Object(_bundle_c578be85.u)(_bundle_c578be85.z,e)).throw(_bundle_c578be85.qc.invalidParameters),t=_bundle_c578be85.w.of(this._iid),n=t.sdkState,r=t.requestQueue,i=new Vt({userId:n.userId,templateName:e}),[4,r.send(i)];case 1:return[2,s.sent().as(Jt).name]}}))}))},n.prototype.blockUser=function(e){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var n,r,i,o;return Object(_bundle_c578be85.Ib)(this,(function(s){switch(s.label){case 0:return Object(_bundle_c578be85.sc)(e instanceof _bundle_c578be85.v||Object(_bundle_c578be85.B)("string",e)).throw(_bundle_c578be85.qc.invalidParameters),n=_bundle_c578be85.w.of(this._iid),r=n.sdkState,i=n.requestQueue,o=new Ft({userId:r.userId,blockedUserId:e instanceof _bundle_c578be85.v?e.userId:e}),[4,i.send(o)];case 1:return s.sent(),[2]}}))}))},n.prototype.blockUserWithUserId=function(e){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85.Ib)(this,(function(t){return[2,this.blockUser(e)]}))}))},n.prototype.unblockUser=function(e){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var n,r,i,o;return Object(_bundle_c578be85.Ib)(this,(function(s){switch(s.label){case 0:return Object(_bundle_c578be85.sc)(e instanceof _bundle_c578be85.v||Object(_bundle_c578be85.B)("string",e)).throw(_bundle_c578be85.qc.invalidParameters),n=_bundle_c578be85.w.of(this._iid),r=n.sdkState,i=n.requestQueue,o=new qt({userId:r.userId,unblockedUserId:e instanceof _bundle_c578be85.v?e.userId:e}),[4,i.send(o)];case 1:return s.sent(),[2]}}))}))},n.prototype.unblockUserWithUserId=function(e){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85.Ib)(this,(function(t){return[2,this.unblockUser(e)]}))}))},n.prototype.getFriendChangeLogsByToken=function(e){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var n,r,i,o;return Object(_bundle_c578be85.Ib)(this,(function(s){switch(s.label){case 0:return Object(_bundle_c578be85.sc)(Object(_bundle_c578be85.B)("string",e)).throw(_bundle_c578be85.qc.invalidParameters),n=_bundle_c578be85.w.of(this._iid),r=n.sdkState,i=n.requestQueue,o=new Xt({userId:r.userId,token:e}),[4,i.send(o)];case 1:return[2,s.sent().as(Yt).changelogs]}}))}))},n.prototype.getAllowFriendDiscovery=function(){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var e,t,n,r;return Object(_bundle_c578be85.Ib)(this,(function(s){switch(s.label){case 0:return e=_bundle_c578be85.w.of(this._iid),t=e.sdkState,n=e.requestQueue,r=new sn({userId:t.userId}),[4,n.send(r)];case 1:return[2,s.sent().as(on).allowFriendDiscovery]}}))}))},n.prototype.setAllowFriendDiscovery=function(e){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var n,r,i,o;return Object(_bundle_c578be85.Ib)(this,(function(s){switch(s.label){case 0:return Object(_bundle_c578be85.sc)(Object(_bundle_c578be85.B)("boolean",e)).throw(_bundle_c578be85.qc.invalidParameters),n=_bundle_c578be85.w.of(this._iid),r=n.sdkState,i=n.requestQueue,o=new an({userId:r.userId,allowFriendDiscovery:e}),[4,i.send(o)];case 1:return s.sent(),[2,e]}}))}))},n.prototype.uploadFriendDiscoveries=function(e){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var t,n,r,i;return Object(_bundle_c578be85.Ib)(this,(function(s){switch(s.label){case 0:return t=_bundle_c578be85.w.of(this._iid),n=t.sdkState,r=t.requestQueue,i=new Zt({userId:n.userId,discoveries:e}),[4,r.send(i)];case 1:return[2,s.sent().as($t).friendDiscoveryRequestId]}}))}))},n.prototype.deleteFriendDiscovery=function(e){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85.Ib)(this,(function(t){return[2,this.deleteFriendDiscoveries([e])]}))}))},n.prototype.deleteFriendDiscoveries=function(e){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var t,n,r,i;return Object(_bundle_c578be85.Ib)(this,(function(s){switch(s.label){case 0:return Object(_bundle_c578be85.sc)(Object(_bundle_c578be85.p)("string",e)).throw(_bundle_c578be85.qc.invalidParameters),t=_bundle_c578be85.w.of(this._iid),n=t.sdkState,r=t.requestQueue,i=new en({userId:n.userId,discoveryKeys:e}),[4,r.send(i)];case 1:return s.sent(),[2]}}))}))},n.prototype.addFriends=function(e){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var t,n,r,i;return Object(_bundle_c578be85.Ib)(this,(function(s){switch(s.label){case 0:return Object(_bundle_c578be85.sc)(Object(_bundle_c578be85.p)("string",e)).throw(_bundle_c578be85.qc.invalidParameters),t=_bundle_c578be85.w.of(this._iid),n=t.sdkState,r=t.requestQueue,i=new tn({userId:n.userId,userIds:e}),[4,r.send(i)];case 1:return[2,s.sent().as(nn).users]}}))}))},n.prototype.deleteFriend=function(e){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85.Ib)(this,(function(t){return[2,this.deleteFriends([e])]}))}))},n.prototype.deleteFriends=function(e){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var t,n,r,i;return Object(_bundle_c578be85.Ib)(this,(function(s){switch(s.label){case 0:return Object(_bundle_c578be85.sc)(Object(_bundle_c578be85.p)("string",e)).throw(_bundle_c578be85.qc.invalidParameters),t=_bundle_c578be85.w.of(this._iid),n=t.sdkState,r=t.requestQueue,i=new rn({userId:n.userId,userIds:e}),[4,r.send(i)];case 1:return s.sent(),[2]}}))}))},n.prototype.getAllEmoji=function(){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var e,t;return Object(_bundle_c578be85.Ib)(this,(function(r){switch(r.label){case 0:return e=_bundle_c578be85.w.of(this._iid).requestQueue,t=new cn,[4,e.send(t)];case 1:return[2,r.sent().as(dn).emojiContainer]}}))}))},n.prototype.getEmojiCategory=function(e){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var t,n;return Object(_bundle_c578be85.Ib)(this,(function(i){switch(i.label){case 0:return t=_bundle_c578be85.w.of(this._iid).requestQueue,n=new ln({categoryId:e}),[4,t.send(n)];case 1:return[2,i.sent().as(hn).emojiCategory]}}))}))},n.prototype.getEmoji=function(e){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var t,n;return Object(_bundle_c578be85.Ib)(this,(function(i){switch(i.label){case 0:return t=_bundle_c578be85.w.of(this._iid).requestQueue,n=new fn({key:e}),[4,t.send(n)];case 1:return[2,i.sent().as(pn).emoji]}}))}))},n.prototype.getUIKitConfiguration=function(){return Object(_bundle_c578be85.A)(this,void 0,void 0,(function(){var e,t,n;return Object(_bundle_c578be85.Ib)(this,(function(i){switch(i.label){case 0:return e=_bundle_c578be85.w.of(this._iid),Object(_bundle_c578be85.sc)(e.hasExtension("sb_uikit")).throw(_bundle_c578be85.qc.notSupportedError),t=e.requestQueue,n=new vn,[4,t.send(n)];case 1:return[2,i.sent().as(gn).uikitConfiguration]}}))}))},n}()},"./node_modules/@sendbird/chat/lib/__bundle-121c0f7c.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return Ln})),__webpack_require__.d(__webpack_exports__,"b",(function(){return ys})),__webpack_require__.d(__webpack_exports__,"c",(function(){return vi})),__webpack_require__.d(__webpack_exports__,"d",(function(){return ui})),__webpack_require__.d(__webpack_exports__,"e",(function(){return Vt})),__webpack_require__.d(__webpack_exports__,"f",(function(){return gi})),__webpack_require__.d(__webpack_exports__,"g",(function(){return Is})),__webpack_require__.d(__webpack_exports__,"h",(function(){return vs})),__webpack_require__.d(__webpack_exports__,"i",(function(){return zr})),__webpack_require__.d(__webpack_exports__,"j",(function(){return Et})),__webpack_require__.d(__webpack_exports__,"k",(function(){return at})),__webpack_require__.d(__webpack_exports__,"l",(function(){return gs})),__webpack_require__.d(__webpack_exports__,"m",(function(){return Qr})),__webpack_require__.d(__webpack_exports__,"n",(function(){return Ht})),__webpack_require__.d(__webpack_exports__,"o",(function(){return He})),__webpack_require__.d(__webpack_exports__,"p",(function(){return ci})),__webpack_require__.d(__webpack_exports__,"q",(function(){return ot})),__webpack_require__.d(__webpack_exports__,"r",(function(){return li})),__webpack_require__.d(__webpack_exports__,"s",(function(){return ct})),__webpack_require__.d(__webpack_exports__,"t",(function(){return _t})),__webpack_require__.d(__webpack_exports__,"u",(function(){return Tt})),__webpack_require__.d(__webpack_exports__,"v",(function(){return Gs})),__webpack_require__.d(__webpack_exports__,"w",(function(){return Pe})),__webpack_require__.d(__webpack_exports__,"x",(function(){return Wn})),__webpack_require__.d(__webpack_exports__,"y",(function(){return Br})),__webpack_require__.d(__webpack_exports__,"z",(function(){return Oe})),__webpack_require__.d(__webpack_exports__,"A",(function(){return ar})),__webpack_require__.d(__webpack_exports__,"B",(function(){return ir})),__webpack_require__.d(__webpack_exports__,"C",(function(){return nr})),__webpack_require__.d(__webpack_exports__,"D",(function(){return Zn})),__webpack_require__.d(__webpack_exports__,"E",(function(){return er})),__webpack_require__.d(__webpack_exports__,"F",(function(){return qr})),__webpack_require__.d(__webpack_exports__,"G",(function(){return dt})),__webpack_require__.d(__webpack_exports__,"H",(function(){return Je})),__webpack_require__.d(__webpack_exports__,"I",(function(){return yr})),__webpack_require__.d(__webpack_exports__,"J",(function(){return ht})),__webpack_require__.d(__webpack_exports__,"K",(function(){return ei})),__webpack_require__.d(__webpack_exports__,"L",(function(){return Wt})),__webpack_require__.d(__webpack_exports__,"M",(function(){return We})),__webpack_require__.d(__webpack_exports__,"N",(function(){return Sr})),__webpack_require__.d(__webpack_exports__,"O",(function(){return si})),__webpack_require__.d(__webpack_exports__,"P",(function(){return ke})),__webpack_require__.d(__webpack_exports__,"Q",(function(){return Ce})),__webpack_require__.d(__webpack_exports__,"R",(function(){return Fs})),__webpack_require__.d(__webpack_exports__,"S",(function(){return mt})),__webpack_require__.d(__webpack_exports__,"T",(function(){return Re})),__webpack_require__.d(__webpack_exports__,"U",(function(){return ze})),__webpack_require__.d(__webpack_exports__,"V",(function(){return fr})),__webpack_require__.d(__webpack_exports__,"W",(function(){return mr})),__webpack_require__.d(__webpack_exports__,"X",(function(){return dr})),__webpack_require__.d(__webpack_exports__,"Y",(function(){return Ut})),__webpack_require__.d(__webpack_exports__,"Z",(function(){return jr})),__webpack_require__.d(__webpack_exports__,"ab",(function(){return bt})),__webpack_require__.d(__webpack_exports__,"bb",(function(){return Qs})),__webpack_require__.d(__webpack_exports__,"cb",(function(){return hn})),__webpack_require__.d(__webpack_exports__,"db",(function(){return fn})),__webpack_require__.d(__webpack_exports__,"eb",(function(){return pn})),__webpack_require__.d(__webpack_exports__,"fb",(function(){return mn})),__webpack_require__.d(__webpack_exports__,"gb",(function(){return Ne})),__webpack_require__.d(__webpack_exports__,"hb",(function(){return Ke})),__webpack_require__.d(__webpack_exports__,"ib",(function(){return Fe})),__webpack_require__.d(__webpack_exports__,"jb",(function(){return It})),__webpack_require__.d(__webpack_exports__,"kb",(function(){return Zs})),__webpack_require__.d(__webpack_exports__,"lb",(function(){return ii})),__webpack_require__.d(__webpack_exports__,"mb",(function(){return Ss})),__webpack_require__.d(__webpack_exports__,"nb",(function(){return Ms})),__webpack_require__.d(__webpack_exports__,"ob",(function(){return Us})),__webpack_require__.d(__webpack_exports__,"pb",(function(){return As})),__webpack_require__.d(__webpack_exports__,"qb",(function(){return tn})),__webpack_require__.d(__webpack_exports__,"rb",(function(){return ti})),__webpack_require__.d(__webpack_exports__,"sb",(function(){return ln})),__webpack_require__.d(__webpack_exports__,"tb",(function(){return $t})),__webpack_require__.d(__webpack_exports__,"ub",(function(){return un})),__webpack_require__.d(__webpack_exports__,"vb",(function(){return Kr})),__webpack_require__.d(__webpack_exports__,"wb",(function(){return Gr})),__webpack_require__.d(__webpack_exports__,"xb",(function(){return Ns})),__webpack_require__.d(__webpack_exports__,"yb",(function(){return Cs})),__webpack_require__.d(__webpack_exports__,"zb",(function(){return Yr})),__webpack_require__.d(__webpack_exports__,"Ab",(function(){return Ts})),__webpack_require__.d(__webpack_exports__,"Bb",(function(){return Jr})),__webpack_require__.d(__webpack_exports__,"Cb",(function(){return Zr})),__webpack_require__.d(__webpack_exports__,"Db",(function(){return $r})),__webpack_require__.d(__webpack_exports__,"Eb",(function(){return Hr})),__webpack_require__.d(__webpack_exports__,"Fb",(function(){return Wr})),__webpack_require__.d(__webpack_exports__,"Gb",(function(){return ws})),__webpack_require__.d(__webpack_exports__,"Hb",(function(){return ps})),__webpack_require__.d(__webpack_exports__,"Ib",(function(){return ta})),__webpack_require__.d(__webpack_exports__,"Jb",(function(){return fi})),__webpack_require__.d(__webpack_exports__,"Kb",(function(){return Ys})),__webpack_require__.d(__webpack_exports__,"Lb",(function(){return bs})),__webpack_require__.d(__webpack_exports__,"Mb",(function(){return Ii})),__webpack_require__.d(__webpack_exports__,"Nb",(function(){return Rs})),__webpack_require__.d(__webpack_exports__,"Ob",(function(){return Ps})),__webpack_require__.d(__webpack_exports__,"Pb",(function(){return _s})),__webpack_require__.d(__webpack_exports__,"Qb",(function(){return oi}));var Ae,e,_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-c578be85.js"),Ne=function(){function r(e,t,n){var r,i;this.width=0,this.height=0,this.realWidth=0,this.realHeight=0,this._requireAuth=!1,this._iid=e,this.plainUrl=t.url,this.width=t.width,this.height=t.height,this.realWidth=null!==(r=t.real_width)&&void 0!==r?r:t.width,this.realHeight=null!==(i=t.real_height)&&void 0!==i?i:t.height,this._requireAuth=n}return r.payloadify=function(n){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(n instanceof r?{url:n.plainUrl,width:n.width,height:n.height,real_width:n.realWidth,real_height:n.realHeight}:{url:"",width:n.maxWidth,height:n.maxHeight,real_width:0,real_height:0}))},Object.defineProperty(r.prototype,"url",{get:function(){var e=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).sessionManager;return this._requireAuth&&e.ekey?"".concat(this.plainUrl,"?auth=").concat(e.ekey):this.plainUrl},enumerable:!1,configurable:!0}),r}(),Ce=function(t){function n(n){var r=t.call(this)||this;if(r.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.POST,r.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ib),r.params=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)({file:n.file,channel_url:n.channelUrl}),n.thumbnailSizes)for(var a=0;a0:void 0,u.lastRepliedAt=null!==(a=t.last_replied_at)&&void 0!==a?a:0,u.updatedAt=null!==(o=t.updated_at)&&void 0!==o?o:0,u}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(i,n),i.payloadify=function(r){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},n.payloadify.call(this,r)),{reply_count:r.replyCount,unread_message_count:r.unreadReplyCount,member_count:r.memberCount,most_replies:Array.isArray(r.mostRepliedUsers)?r.mostRepliedUsers.map((function(e){return _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v.payloadify(e)})):[],push_enabled:"boolean"==typeof r.isPushNotificationEnabled?r.isPushNotificationEnabled?1:0:void 0,last_replied_at:r.lastRepliedAt,updated_at:r.updatedAt})))},Object.defineProperty(i.prototype,"_isUpdateRequired",{get:function(){return void 0===this.unreadReplyCount||void 0===this.isPushNotificationEnabled},enumerable:!1,configurable:!0}),i.prototype._updateFrom=function(e){var t,n;this.unreadReplyCount=null!==(t=e.unreadReplyCount)&&void 0!==t?t:this.unreadReplyCount,this.isPushNotificationEnabled=null!==(n=e.isPushNotificationEnabled)&&void 0!==n?n:this.isPushNotificationEnabled},i}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.jb);(e=Ae||(Ae={})).ADD="add",e.DELETE="delete";var Oe,Re=function(e){this.messageId=0,this.operation=null,this.updatedAt=0;var t=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.msg_id)?parseInt(e.msg_id):e.msg_id,n=e.user_id,r=e.operation?e.operation.toLowerCase():null,i=e.reaction,s=e.updated_at;t&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",n)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",r)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(Ae,r)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",i)&&i&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",s)&&(this.messageId=t,this.userId=n,this.key=i,this.operation=r,this.updatedAt=s)},xe=function(){function n(e){var t,n,r,i=e.key,s=null!==(r=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(e.user_ids),!1))&&void 0!==r?r:[],a=e.updated_at;Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",i)&&i&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",s)&&s.length>0&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",a)&&(this.key=i,this.userIds=s,this.updatedAt=a);var o={};try{for(var u=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this.userIds),c=u.next();!c.done;c=u.next())o[c.value]=this.updatedAt}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}this._version=o}return Object.defineProperty(n.prototype,"isEmpty",{get:function(){return 0===this.userIds.length},enumerable:!1,configurable:!0}),n.payloadify=function(n){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({key:n.key,user_ids:n.userIds,updated_at:n.updatedAt}))},n.prototype.applyEvent=function(e){if(e.key===this.key&&this.updatedAt<=e.updatedAt){if(!this._version[e.userId]||this._version[e.userId]<=e.updatedAt){var t=this.userIds.indexOf(e.userId);switch(e.operation){case Ae.ADD:t<0&&this.userIds.push(e.userId);break;case Ae.DELETE:t>=0&&this.userIds.splice(t,1)}this._version[e.userId]=e.updatedAt}this.updatedAt=Math.max(this.updatedAt,e.updatedAt)}},n}(),De=function(){function n(e){this.secureUrl=null,this.type=null,this.width=0,this.height=0,this.alt=null,this.url=e.url,e.secure_url&&(this.secureUrl=e.secure_url),e.type&&(this.type=e.type),e.width&&(this.width=e.width),e.height&&(this.height=e.height),e.alt&&(this.alt=e.alt)}return n.payloadify=function(n){var r,i;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({url:n.url,secure_url:n.secureUrl,type:n.type,width:null!==(r=n.width)&&void 0!==r?r:0,height:null!==(i=n.height)&&void 0!==i?i:0,alt:n.alt}))},n}(),Le=function(){function n(e){this.title=null,this.url=null,this.description=null,this.defaultImage=null,e["og:title"]&&(this.title=e["og:title"]),e["og:url"]&&(this.url=e["og:url"]),e["og:description"]&&(this.description=e["og:description"]),e["og:image"]&&(this.defaultImage=new De(e["og:image"]))}return n.payloadify=function(n){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({"og:title":n.title,"og:url":n.url,"og:description":n.description,"og:image":n.defaultImage?De.payloadify(n.defaultImage):null}))},n}(),Fe=function(){function n(e){var t,n;this.volume=0,this.name=null!==(t=e.name)&&void 0!==t?t:"default",this.volume=null!==(n=e.volume)&&void 0!==n?n:1}return n.prototype.serialize=function(){return{name:this.name,volume:this.volume}},n.payloadify=function(n){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({name:n.name,volume:n.volume}))},n}();!function(e){e.GOOD="good",e.BAD="bad"}(Oe||(Oe={}));var qe,ze=function(){function n(e){this.id=e.id,this.rating=e.rating,this.comment=e.comment}return n.parseFeedbackStatusFromPayload=function(e){return e&&null!==e.id&&null!==e.rating?"SUBMITTED":"NOT_APPLICABLE"},n.payloadify=function(n){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({id:n.id,rating:n.rating,comment:n.comment}))},n}(),Be=function(n){function i(e,t){var r,i=this;return(i=n.call(this,e,t)||this).isBlockedByMe=!1,i.role=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.F,t.role)?t.role:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.F.NONE,i.isBlockedByMe=null!==(r=t.is_blocked_by_me)&&void 0!==r&&r,i}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(i,n),i.payloadify=function(r){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},n.payloadify.call(this,r)),{role:r.role,is_blocked_by_me:r.isBlockedByMe})))},i}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v),Ke=function(){function n(e){this.key=e.key,this.value=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",e.value)?Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(e.value),!1):[]}return n.payloadify=function(n){var r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({key:n.key,value:null!==(r=n.value)&&void 0!==r?r:[]}))},n}(),je=function(e){switch(e){case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.lb.BASE:return"";case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.lb.USER:return"MESG";case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.lb.FILE:return"FILE";case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.lb.ADMIN:return"ADMM"}},Qe=function(n){function i(e,t){var r,i,s,a,o,u,l,d,h,p,m=this;(m=n.call(this,e)||this).channelType=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.BASE,m.messageType=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.lb.BASE,m.mentionType=null,m.mentionedUsers=null,m.mentionedUserIds=null,m.metaArrays=[],m.extendedMessage={},m.createdAt=0,m.updatedAt=0,m.channelUrl=t.channel_url,m.channelType=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d,t.channel_type)?t.channel_type:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.GROUP,t.channel&&(t.channel.channel_url&&(m.channelUrl=t.channel.channel_url),t.channel.channel_type&&(m.channelType=t.channel.channel_type)),m.data=null!==(r=t.data)&&void 0!==r?r:"",m.customType=null!==(i=t.custom_type)&&void 0!==i?i:"",m.mentionType=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nb,t.mention_type)?t.mention_type:null,m.mentionedUsers=t.mentioned_users?t.mentioned_users.map((function(e){return new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v(m._iid,e)})):null,m.mentionedUserIds=null!==(s=t.mentioned_user_ids)&&void 0!==s?s:null,m.mentionedUsers&&!m.mentionedUserIds&&(m.mentionedUserIds=m.mentionedUsers.map((function(e){return e.userId}))),m.mentionedMessageTemplate=null!==(a=t.mentioned_message_template)&&void 0!==a?a:"";var v=null!==(o=t.metaarray)&&void 0!==o?o:{},y=null!==(u=t.metaarray_key_order)&&void 0!==u?u:Object.keys(v).sort((function(e,t){return e.localeCompare(t)}));m.metaArrays=[];for(var _=0;_0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isSubmittable",{get:function(){return this.fields.every((function(e){return e.isSubmittable}))},enumerable:!1,configurable:!0}),n.prototype.getFieldAnswer=function(e){var t;return null===(t=this.answers)||void 0===t?void 0:t[e]},n.payloadify=function(n){var r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({key:null!==(r=n.formKey)&&void 0!==r?r:n.key,fields:n.fields.map((function(e){return Ve.payloadify(e)}))}))},n.isFormPayload=function(e){var t;return Boolean(null===(t=null==e?void 0:e.forms)||void 0===t?void 0:t[0])},n}(),Ve=function(){function n(e){this.key=e.key,this.inputType=e.input_type,this.title=e.title,this.required=e.required,this.regex=e.regex,this.placeholder=e.placeholder,this.fieldKey=e.key}return n.prototype.isValid=function(e){if(!this.regex)return!0;try{return new RegExp(this.regex).test(e)}catch(e){return!0}},Object.defineProperty(n.prototype,"isSubmittable",{get:function(){return!(null!=this.temporaryAnswer&&!this.isValid(this.temporaryAnswer)||this.required&&null==this.temporaryAnswer)},enumerable:!1,configurable:!0}),n.payloadify=function(n){var r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({key:null!==(r=n.fieldKey)&&void 0!==r?r:n.key,input_type:n.inputType,title:n.title,required:n.required,regex:n.regex,placeholder:n.placeholder}))},n}(),He=function(e){function t(t,n){var r,i,s=this;return(s=e.call(this,t)||this).channelUrl=null!==(r=n.channel_url)&&void 0!==r?r:"",s.channelType=null!==(i=n.channel_type)&&void 0!==i?i:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.GROUP,s.reader=new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v(s._iid,n.user),s.readAt=n.ts,s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.jb),We=function(e){function t(t){var n=t.channelUrl;return e.call(this,{code:"READ",ackRequired:!0,payload:{channel_url:n}})||this}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ob),Je=(function(n){function s(r){var s=n.call(this)||this,a=r.channelUrl,o=r.channelType,u=r.userId,c=r.notificationIds;return s.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.PUT,s.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(o),"/").concat(encodeURIComponent(a),"/messages/mark_as_read"),s.params=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({user_id:u,message_ids:c})),s}Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(s,n)}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),function(e){function t(t,n,r){var i=e.call(this,t,"READ",r)||this;return i.readStatus=new He(t,r),i}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.x)),Ze=(function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.readAt=n.ts,r.unreadMessageCount=n.unread_message_count,r}Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e)}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),function(e){function t(t){var n=t.channelUrl,r=t.messageId;return e.call(this,{code:"READ",ackRequired:!0,payload:{channel_url:n,parent_message_id:r}})||this}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ob)),$e=function(e){function t(t){var n=t.channelType,r=t.channelUrl,s=t.messageId,a=t.pushEnabled,o=e.call(this)||this;return o.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.PUT,o.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(n),"/").concat(encodeURIComponent(r),"/messages/").concat(s,"/thread_push"),o.params={push_enabled:a},o}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec);!function(e){Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)((function t(t,n){return e.call(this,t,n)||this}),e)}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc);var et=function(t){function n(n){var r=t.call(this)||this;return r.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.POST,r.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qb,"/").concat(encodeURIComponent(n.channelUrl),"/messages/").concat(n.messageId,"/submit_forms"),r.params=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)({forms:n.forms}),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),tt=function(e){function t(t){var n=t.channelType,r=t.channelUrl,s=t.messageId,a=t.rating,o=t.comment,u=e.call(this)||this;return u.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.POST,u.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(n),"/").concat(encodeURIComponent(r),"/messages/").concat(s,"/feedbacks"),u.params={rating:a,comment:o},u}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),nt=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.feedback=new ze(n),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),rt=function(e){function t(t){var n=t.channelType,r=t.channelUrl,s=t.messageId,a=t.feedbackId,o=t.rating,u=t.comment,c=e.call(this)||this;return c.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.PUT,c.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(n),"/").concat(encodeURIComponent(r),"/messages/").concat(s,"/feedbacks/").concat(a),c.params={rating:o,comment:u},c}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),it=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.feedback=new ze(n),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),st=function(e){function t(t){var n=t.channelType,r=t.channelUrl,s=t.messageId,a=t.feedbackId,o=e.call(this)||this;return o.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.DELETE,o.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(n),"/").concat(encodeURIComponent(r),"/messages/").concat(s,"/feedbacks/").concat(a),o}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec);!function(e){Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)((function t(t,n){var r=e.call(this,t,n)||this;return r.feedback=new ze(n),r}),e)}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc);var at,ot,ut=function(i){function s(e,t){var n,r,s,a,o,c=this;return(c=i.call(this,e)||this).plainUrl="",c.fileName=null,c.mimeType=null,c.fileSize=0,c.thumbnails=[],c._requireAuth=!1,c.plainUrl=null!==(n=t.url)&&void 0!==n?n:"",c.fileName=null!==(r=t.file_name)&&void 0!==r?r:null,c.mimeType=null!==(s=t.file_type)&&void 0!==s?s:null,c.fileSize=null!==(a=t.file_size)&&void 0!==a?a:0,c._requireAuth=null!==(o=t.require_auth)&&void 0!==o&&o,c.thumbnails=t.thumbnails?t.thumbnails.map((function(e){var t;return new Ne(c._iid,"string"==typeof e?{url:e,width:0,height:0}:Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},e),{url:(null!==(t=e.url)&&void 0!==t?t:"").split("auth=")[0]}),c._requireAuth)})):[],c}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(s,i),s.payloadify=function(n){var r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({url:n.plainUrl,file_name:n.fileName,file_type:n.mimeType,file_size:n.fileSize,thumbnails:null===(r=n.thumbnails)||void 0===r?void 0:r.map((function(e){var t;return{url:(null!==(t=e.plainUrl)&&void 0!==t?t:"").split("auth=")[0],width:e.width,height:e.height,real_width:e.realWidth,real_height:e.realHeight}})),require_auth:n._requireAuth}))},Object.defineProperty(s.prototype,"url",{get:function(){var e=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).sessionManager;return this._requireAuth&&e.ekey?"".concat(this.plainUrl,"?auth=").concat(e.ekey):this.plainUrl},enumerable:!1,configurable:!0}),s}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.jb),ct=function(e){var t=e.channelUrl,n=e.channelType,r=e.parentMessage;this.channelUrl=t,this.channelType=n,this.parentMessage=r};!function(e){e.PENDING="pending",e.SENT="sent",e.FAILED="failed",e.CANCELED="canceled"}(at||(at={})),function(e){e.PENDING="pending",e.IN_QUEUE="in_queue",e.SENT="sent",e.FAILED="failed",e.CANCELED="canceled",e.REMOVED="removed"}(ot||(ot={}));var lt,dt=function(i){function s(e,t){var n,r,s,a,o,u,c,l,d,h,f=this;return(f=i.call(this,e,t)||this).parentMessage=null,f.silent=!1,f.isOperatorMessage=!1,f.threadInfo=null,f.reactions=[],f.appleCriticalAlertOptions=null,f.scheduledInfo=null,f.suggestedReplies=null,f.myFeedback=null,f.myFeedbackStatus="NOT_APPLICABLE",f.forms=null,f._isContinuousMessages=!1,f._scheduledStatus=null,f.messageId=null!==(r=null!==(n=t.msg_id)&&void 0!==n?n:t.message_id)&&void 0!==r?r:0,f.parentMessageId=null!==(s="string"==typeof t.parent_message_id?parseInt(t.parent_message_id):t.parent_message_id)&&void 0!==s?s:0,f.threadInfo=t.thread_info?new Pe(f._iid,t.thread_info):null,f.reactions=t.reactions?t.reactions.map((function(e){return new xe(e)})):[],f.ogMetaData=t.og_tag?new Le(t.og_tag):null,f.silent=null!==(a=t.silent)&&void 0!==a&&a,f.isOperatorMessage=null!==(o=t.is_op_msg)&&void 0!==o&&o,f.appleCriticalAlertOptions=t.apple_critical_alert_options?new Fe(t.apple_critical_alert_options):null,"number"==typeof t.scheduled_message_id&&"number"==typeof t.scheduled_at&&t.scheduled_status&&(f.scheduledInfo={scheduledMessageId:t.scheduled_message_id,scheduledAt:t.scheduled_at},f._scheduledStatus=t.scheduled_status),f._isContinuousMessages=null!==(u=t.is_continuous_messages)&&void 0!==u&&u,f.myFeedback=(null===(c=t.feedback)||void 0===c?void 0:c.id)?new ze(t.feedback):null,f.myFeedbackStatus=null!==(l=t.my_feedback_status)&&void 0!==l?l:ze.parseFeedbackStatusFromPayload(t.feedback),f.suggestedReplies=null!==(h=null===(d=t.extended_message_payload)||void 0===d?void 0:d.suggested_replies)&&void 0!==h?h:null,f.forms=Ge.isFormPayload(t.extended_message_payload)?t.extended_message_payload.forms.map((function(e){return new Ge(f.messageId,e.key,e.fields.map((function(e){return new Ve(e)})))})):null,f}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(s,i),s.payloadify=function(n){var r,s;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},i.payloadify.call(this,n)),{message_id:n.messageId,parent_message_id:n.parentMessageId,thread_info:n.threadInfo?Pe.payloadify(n.threadInfo):null,reactions:n.reactions.map((function(e){return xe.payloadify(e)})),og_tag:n.ogMetaData?Le.payloadify(n.ogMetaData):null,silent:n.silent,is_op_msg:n.isOperatorMessage,apple_critical_alert_options:n.appleCriticalAlertOptions?Fe.payloadify(n.appleCriticalAlertOptions):null,scheduled_message_id:null===(r=n.scheduledInfo)||void 0===r?void 0:r.scheduledMessageId,scheduled_at:null===(s=n.scheduledInfo)||void 0===s?void 0:s.scheduledAt,scheduled_status:n._scheduledStatus,feedback:n.myFeedback?ze.payloadify(n.myFeedback):null,my_feedback_status:n.myFeedbackStatus,forms:n.forms?n.forms.map((function(e){return Ge.payloadify(e)})):null})))},s._getParentMessageInfoPayload=function(n){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({type:je(n.messageType),ts:n.createdAt,user:n.sender?Be.payloadify(n.sender):null,message:n.message,file:{url:n.plainUrl,name:n.name,type:n.type,require_auth:n.requireAuth},files:Array.isArray(n.fileInfoList)?n.fileInfoList.map((function(e){return ut.payloadify(e)})):null}))},s.prototype.isIdentical=function(e){return this.messageId===e.messageId},s.prototype.applyThreadInfoUpdateEvent=function(e){return this.messageId===e.targetMessageId&&(e.threadInfo._isUpdateRequired&&this.threadInfo&&e.threadInfo._updateFrom(this.threadInfo),this.threadInfo=e.threadInfo,!0)},s.prototype.applyReactionEvent=function(e){if(this.messageId===e.messageId){for(var t=!1,n=0;n=t)return this.parentMessage=e,!0}return!1},s.prototype._triggerThreadInfoUpdatedEvent=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){return(e=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).dispatcher).dispatch(new ct({channelType:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.GROUP,channelUrl:this.channelUrl,parentMessage:this})),e.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rb({messages:[this],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_THREAD_INFO_UPDATED})),[2]}))}))},s.prototype.markThreadAsRead=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(r){switch(r.label){case 0:return e=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,t=new Ze({channelUrl:this.channelUrl,messageId:this.messageId}),[4,e.send(t)];case 1:return r.sent(),this.threadInfo&&0!==this.threadInfo.unreadReplyCount?(this.threadInfo.unreadReplyCount=0,[4,this._triggerThreadInfoUpdatedEvent()]):[3,3];case 2:r.sent(),r.label=3;case 3:return[2]}}))}))},s.prototype.setPushNotificationEnabled=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(i){switch(i.label){case 0:return t=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,r=new $e({channelUrl:this.channelUrl,channelType:this.channelType,messageId:this.messageId,pushEnabled:e}),[4,t.send(r)];case 1:return i.sent(),this.threadInfo&&this.threadInfo.isPushNotificationEnabled!==e&&(this.threadInfo.isPushNotificationEnabled=e),[2]}}))}))},s.prototype.submitForm=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,r,i,s,a,o,u;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(c){switch(c.label){case 0:if(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(e.form&&e.form instanceof Ge||Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.formId)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("object",e.answers)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),t=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),r=t.requestQueue,i=t.sdkState,s=t.logger,!e.form)return[3,2];if(!(a=e.form).isSubmittable)throw new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc({code:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sb.INVALID_PARAMETER,message:"The given form is not submittable."});if(a.isSubmitted)throw new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc({code:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sb.INVALID_PARAMETER,message:"The given form is already submitted."});if(a.messageId!=this.messageId)throw new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc({code:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sb.INVALID_PARAMETER,message:"This form does not belong to the message."});return o=a.fields.reduce((function(e,t){return e[t.key]=t.temporaryAnswer,e}),{}),u=new et({userId:i.userId,channelUrl:this.channelUrl,channelType:this.channelType,messageId:this.messageId,forms:[{form_key:a.key,data:o}]}),[4,r.send(u)];case 1:return c.sent(),[3,4];case 2:return e.formId&&e.answers?(s.warn("The submitForm method with formId and answers is deprecated. Use submitForm({ form: Form }) instead."),u=new et({userId:i.userId,channelUrl:this.channelUrl,channelType:this.channelType,messageId:this.messageId,forms:[{form_key:e.formId,data:e.answers}]}),[4,r.send(u)]):[3,4];case 3:c.sent(),c.label=4;case 4:return[2]}}))}))},s.prototype.submitFeedback=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,r,i,s,a,o;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(u){switch(u.label){case 0:return t=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),r=t.requestQueue,i=t.dispatcher,s=new tt({channelUrl:this.channelUrl,channelType:this.channelType,messageId:this.messageId,rating:e.rating,comment:e.comment}),[4,r.send(s)];case 1:return a=u.sent(),o=a.as(nt),this.myFeedback=o.feedback,this.myFeedbackStatus="SUBMITTED",i.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rb({messages:[this],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_FEEDBACK_ADDED})),[2]}}))}))},s.prototype.updateFeedback=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,r,i,s,a,o;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(u){switch(u.label){case 0:return t=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),r=t.requestQueue,i=t.dispatcher,s=new rt({channelUrl:this.channelUrl,channelType:this.channelType,messageId:this.messageId,feedbackId:e.id,rating:e.rating,comment:e.comment}),[4,r.send(s)];case 1:return a=u.sent(),o=a.as(it),this.myFeedback=o.feedback,this.myFeedbackStatus="SUBMITTED",i.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rb({messages:[this],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_FEEDBACK_UPDATED})),[2]}}))}))},s.prototype.deleteFeedback=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,r,i,s;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(a){switch(a.label){case 0:return t=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),r=t.requestQueue,i=t.dispatcher,s=new st({channelUrl:this.channelUrl,channelType:this.channelType,messageId:this.messageId,feedbackId:e}),[4,r.send(s)];case 1:return a.sent(),this.myFeedback=null,this.myFeedbackStatus="NO_FEEDBACK",i.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rb({messages:[this],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_FEEDBACK_DELETED})),[2]}}))}))},s}(Qe),ht=function(n){function i(e,t){var r,i,s,a,o=this;if((o=n.call(this,e,t)||this).reqId="",o.replyToChannel=!1,o.errorCode=0,o.sender=t.user?new Be(o._iid,t.user):t.sender_id,o.reqId=null!==(i=null!==(r=t.req_id)&&void 0!==r?r:t.request_id)&&void 0!==i?i:"",o.replyToChannel=null!==(s=t.is_reply_to_channel)&&void 0!==s&&s,t.request_state&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tb,t.request_state)&&(o.sendingStatus=t.request_state),!o.sendingStatus)if(o.messageId>0)o.sendingStatus=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tb.SUCCEEDED;else if(o.scheduledInfo)switch(t.scheduled_status&&(o._scheduledStatus=t.scheduled_status),t.scheduled_status){case ot.SENT:case ot.IN_QUEUE:o.sendingStatus=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tb.SUCCEEDED;break;case ot.PENDING:o.sendingStatus=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tb.SCHEDULED;break;case ot.FAILED:case ot.REMOVED:o.sendingStatus=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tb.FAILED;break;case ot.CANCELED:o.sendingStatus=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tb.CANCELED}else o.sendingStatus=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tb.PENDING;return o.errorCode=null!==(a=t.error_code)&&void 0!==a?a:0,o}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(i,n),i.payloadify=function(r){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},n.payloadify.call(this,r)),{user:Be.payloadify(r.sender),req_id:r.reqId,is_reply_to_channel:r.replyToChannel,request_state:r.sendingStatus,error_code:r.errorCode})))},Object.defineProperty(i.prototype,"isResendable",{get:function(){return(this.sendingStatus===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tb.FAILED||this.sendingStatus===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tb.CANCELED)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ub)(this.errorCode)},enumerable:!1,configurable:!0}),i.prototype.isIdentical=function(e){return this.messageId>0&&e.messageId>0?this.messageId===e.messageId:this.reqId===e.reqId},i}(dt),ft={prevResultSize:0,nextResultSize:0,isInclusive:!1,reverse:!1,messageTypeFilter:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.vb.ALL,customTypesFilter:void 0,senderUserIdsFilter:void 0,includeReactions:!1,includeMetaArray:!1,includeParentMessageInfo:!1},pt=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e.prevResultSize)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e.nextResultSize)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.isInclusive)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.reverse)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.messageTypeFilter)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.vb,e.messageTypeFilter)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",e.customTypesFilter,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",e.senderUserIdsFilter,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.includeMetaArray)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.includeReactions)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.includeParentMessageInfo)},mt=function(n){function i(r,i){var s,a,o,c,l=this;if((l=n.call(this,r,i)||this).translations={},l.message=null!==(s=i.message)&&void 0!==s?s:"",l.messageType=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.lb.ADMIN,l.translations=null!==(a=i.translations)&&void 0!==a?a:{},i.parent_message_info){var d=i.parent_message_info;l.parentMessage=Et(r,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},d),{message_id:l.parentMessageId,channel_url:l.channelUrl,channel_type:l.channelType,file:d.file,url:null===(o=d.file)||void 0===o?void 0:o.url,require_auth:null===(c=d.file)||void 0===c?void 0:c.require_auth}))))}return l}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(i,n),i.payloadify=function(r){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},n.payloadify.call(this,r)),{message:r.message,translations:r.translations,parent_message_info:r.parentMessage?n._getParentMessageInfoPayload.call(this,r.parentMessage):null})))},i.prototype.getThreadedMessagesByTimestamp=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(r){switch(r.label){case 0:return n=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},ft),t),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(this.messageId>0&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e)&&pt(n)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),[4,Qs.of(this._iid).getThreadedMessagesByTimestamp(this,e,n)];case 1:return[2,r.sent()]}}))}))},i}(dt),vt=function(){function n(e){var t,n;this.detail={},this.type=null!==(t=e.type)&&void 0!==t?t:"",this.vendor=null!==(n=e.vendor)&&void 0!==n?n:"",e.detail&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("object",e.detail)&&!Array.isArray(e.detail)&&(this.detail=e.detail)}return n.payloadify=function(n){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({type:n.type,vendor:n.vendor,detail:n.detail}))},n}(),yt=function(){function t(e){this.status=e.status,e.original_message_info&&(this.originalMessageInfo={createdAt:e.original_message_info.ts,messageId:e.original_message_info.id})}return t.payloadify=function(t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)({status:t.status,original_message_info:t.originalMessageInfo?{id:t.originalMessageInfo.messageId,ts:t.originalMessageInfo.createdAt}:void 0})},t}(),_t=function(n){function i(r,i){var s,a,o,c,l,d,h,f=this;if((f=n.call(this,r,i)||this).message="",f.messageParams=null,f.translations={},f.translationTargetLanguages=[],f.messageSurvivalSeconds=-1,f.plugins=[],f._poll=null,f.message=i.message,f.messageType=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.lb.USER,f.translations=null!==(o=i.translations)&&void 0!==o?o:{},f.translationTargetLanguages=null!==(c=i.target_langs)&&void 0!==c?c:[],0===Object.keys(f.translations).length&&f.translationTargetLanguages.length>0)try{for(var p=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(f.translationTargetLanguages),m=p.next();!m.done;m=p.next()){var y=m.value;f.translations[y]=""}}catch(e){s={error:e}}finally{try{m&&!m.done&&(a=p.return)&&a.call(p)}finally{if(s)throw s.error}}if(f.messageSurvivalSeconds=null!==(l=i.message_survival_seconds)&&void 0!==l?l:-1,f.plugins=i.plugins?i.plugins.map((function(e){return new vt(e)})):[],f._poll=i.poll?new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.wb(f._iid,i.poll):null,i.parent_message_info){var _=i.parent_message_info;f.parentMessage=Et(r,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},_),{created_at:_.ts,message_id:f.parentMessageId,channel_url:f.channelUrl,channel_type:f.channelType,file:_.file,url:null===(d=_.file)||void 0===d?void 0:d.url,require_auth:null===(h=_.file)||void 0===h?void 0:h.require_auth}))))}return i.review_info&&(f.messageReviewInfo=new yt(i.review_info)),f}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(i,n),i.payloadify=function(r){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},n.payloadify.call(this,r)),{message:r.message,translations:r.translations,message_survival_seconds:r.messageSurvivalSeconds,plugins:r.plugins.map((function(e){return vt.payloadify(e)})),poll:r._poll?_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.wb.payloadify(r._poll):null,parent_message_info:r.parentMessage?n._getParentMessageInfoPayload.call(this,r.parentMessage):null,review_info:r.messageReviewInfo?yt.payloadify(r.messageReviewInfo):void 0})))},i.prototype.getThreadedMessagesByTimestamp=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(r){switch(r.label){case 0:return n=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},ft),t),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(this.messageId>0&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e)&&pt(n)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),[4,Qs.of(this._iid).getThreadedMessagesByTimestamp(this,e,n)];case 1:return[2,r.sent()]}}))}))},i.prototype.applyPoll=function(e){return!(this._poll&&this._poll.id===e.id&&this._poll.updatedAt>e.updatedAt||(this._poll=e,0))},Object.defineProperty(i.prototype,"poll",{get:function(){return this._poll},enumerable:!1,configurable:!0}),i}(ht),gt=function(n){function i(r,i){var s,a,o,c,l,d=this;if((d=n.call(this,r,i)||this).messageParams=null,d.fileInfoList=[],d.messageSurvivalSeconds=-1,d.messageType=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.lb.FILE,d.fileInfoList=null!==(a=null===(s=i.files)||void 0===s?void 0:s.map((function(e){return new ut(r,e)})))&&void 0!==a?a:[],d.messageSurvivalSeconds=null!==(o=i.message_survival_seconds)&&void 0!==o?o:-1,i.parent_message_info){var h=i.parent_message_info;d.parentMessage=Et(r,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},h),{created_at:h.ts,message_id:d.parentMessageId,channel_url:d.channelUrl,channel_type:d.channelType,file:h.file,url:null===(c=h.file)||void 0===c?void 0:c.url,require_auth:null===(l=h.file)||void 0===l?void 0:l.require_auth}))))}return d}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(i,n),i.prototype.getThreadedMessagesByTimestamp=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(r){switch(r.label){case 0:return n=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},ft),t),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(this.messageId>0&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e)&&pt(n)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),[4,Qs.of(this._iid).getThreadedMessagesByTimestamp(this,e,n)];case 1:return[2,r.sent()]}}))}))},i.payloadify=function(r){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},n.payloadify.call(this,r)),{files:Array.isArray(r.fileInfoList)?r.fileInfoList.map((function(e){return ut.payloadify(e)})):null,message_survival_seconds:r.messageSurvivalSeconds,parent_message_info:r.parentMessage?n._getParentMessageInfoPayload.call(this,r.parentMessage):null})))},i._isMultipleFilesMessagePayload=function(e){var t=e.files;return Array.isArray(t)&&t.length>=2},i._isMultipleFilesMessageSerializedData=function(e){var t=e.fileInfoList;return Array.isArray(t)},i}(ht);!function(e){e.SENT="SENT",e.READ="READ"}(lt||(lt={}));var Ct,bt=function(n){function i(e,t){var r,i,s=this;if((s=n.call(this,e,t)||this).notificationData=null,s.notificationId=t.notification_message_id,s.messageType=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.lb.ADMIN,s.messageStatus=null!==(r=t.message_status)&&void 0!==r?r:lt.SENT,s.priority=null!==(i=t.priority)&&void 0!==i?i:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.xb.NORMAL,0===s.extendedMessage.sub_type)try{var a=JSON.parse(s.extendedMessage.sub_data),o=a.label,u=a.tags,c=void 0===u?[]:u,l=a.template_key,d=a.template_variables;s.notificationData={label:o,tags:c,templateKey:l,templateVariables:d}}catch(e){}return s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(i,n),i.payloadify=function(r){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},n.payloadify.call(this,r)),{notification_message_id:r.notificationId,message_status:r.messageStatus,priority:r.priority})))},i.prototype.isIdentical=function(e){return this.notificationId===e.notificationId},i}(Qe),It=function(e){if(e.notificationId)return bt.payloadify(e);switch(e.messageType){case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.lb.USER:return _t.payloadify(e);case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.lb.FILE:return e.fileInfoList?gt.payloadify(e):Tt.payloadify(e);case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.lb.ADMIN:return mt.payloadify(e);default:throw _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.unknown}},Et=function(e,t){if(t.notification_message_id)return new bt(e,t);switch(t.type){case"MESG":return new _t(e,t);case"FILE":return gt._isMultipleFilesMessagePayload(t)?new gt(e,t):new Tt(e,t);case"ADMM":case"BRDM":return new mt(e,t);default:return null}},Tt=function(i){function s(n,r){var s,a,o,c,l,d,h,f,p,m,v,y,_,b,I=this;(I=i.call(this,n,r)||this).messageParams=null,I.plainUrl="",I.requireAuth=!1,I.thumbnails=[],I.messageSurvivalSeconds=-1,I.messageType=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.lb.FILE;var E=r.file;if(I.plainUrl=(null!==(a=null!==(s=null==E?void 0:E.url)&&void 0!==s?s:r.url)&&void 0!==a?a:"").split("?auth=")[0],I.name=null!==(c=null!==(o=null==E?void 0:E.name)&&void 0!==o?o:r.name)&&void 0!==c?c:"File",I.size=null!==(d=null!==(l=null==E?void 0:E.size)&&void 0!==l?l:r.size)&&void 0!==d?d:0,I.data=null!==(f=null!==(h=null==E?void 0:E.data)&&void 0!==h?h:r.custom)&&void 0!==f?f:"",I.type=E?null!==(p=E.type)&&void 0!==p?p:"":null!==(m=r.type)&&void 0!==m?m:"",I.requireAuth=null!==(v=r.require_auth)&&void 0!==v&&v,I.thumbnails=r.thumbnails?r.thumbnails.map((function(e){var t;return new Ne(I._iid,"string"==typeof e?{url:e,width:0,height:0}:Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},e),{url:(null!==(t=e.url)&&void 0!==t?t:"").split("auth=")[0]}),I.requireAuth)})):[],I.messageSurvivalSeconds=null!==(y=r.message_survival_seconds)&&void 0!==y?y:-1,r.parent_message_info){var T=r.parent_message_info;I.parentMessage=Et(n,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},T),{created_at:T.ts,message_id:I.parentMessageId,channel_url:I.channelUrl,channel_type:I.channelType,file:T.file,url:null===(_=T.file)||void 0===_?void 0:_.url,require_auth:null===(b=T.file)||void 0===b?void 0:b.require_auth}))))}return I}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(s,i),s.payloadify=function(n){var r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},i.payloadify.call(this,n)),{url:n.plainUrl,require_auth:n.requireAuth,file:{name:n.name,size:n.size,type:n.type,data:n.data},thumbnails:null===(r=n.thumbnails)||void 0===r?void 0:r.map((function(e){return{url:e.plainUrl,width:e.width,height:e.height,real_width:e.realWidth,real_height:e.realHeight}})),message_survival_seconds:n.messageSurvivalSeconds,parent_message_info:n.parentMessage?i._getParentMessageInfoPayload.call(this,n.parentMessage):null})))},Object.defineProperty(s.prototype,"url",{get:function(){var e=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).sessionManager;return this.requireAuth&&e.ekey?"".concat(this.plainUrl,"?auth=").concat(e.ekey):this.plainUrl},enumerable:!1,configurable:!0}),s.prototype.getThreadedMessagesByTimestamp=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(r){switch(r.label){case 0:return n=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},ft),t),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(this.messageId>0&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e)&&pt(n)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),[4,Qs.of(this._iid).getThreadedMessagesByTimestamp(this,e,n)];case 1:return[2,r.sent()]}}))}))},s}(ht),wt=function(e){function t(t,n){var r=n.file,i=n.fileUrl,s=n.fileName,a=n.fileSize,o=n.mimeType,u=n.thumbnailSizes,c=n._uploadedMetaData,l=n._thumbnails,d=e.call(this,t)||this;return d._plainUrl=i,d.file=r,d.fileName=s,d.fileSize=a,d.mimeType=o,d.thumbnailSizes=u,d._uploadedMetaData=c,d._thumbnails=l,d}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t.getPlainUrl=function(e){return e instanceof t?e._plainUrl:e.fileUrl},Object.defineProperty(t.prototype,"fileUrl",{get:function(){var e,t=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).sessionManager;return this._plainUrl&&(null===(e=this._uploadedMetaData)||void 0===e?void 0:e.requireAuth)&&t.ekey?"".concat(this._plainUrl,"?auth=").concat(t.ekey):this._plainUrl},set:function(e){this._plainUrl=e},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){return{file:this.file,fileUrl:this._plainUrl,fileName:this.fileName,fileSize:this.fileSize,mimeType:this.mimeType,thumbnailSizes:this.thumbnailSizes,_thumbnails:this._thumbnails,_uploadedMetaData:this._uploadedMetaData}},t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.jb),St=function(n){function i(r){var i,s,a,o,u=[];return r.mentionType===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nb.USERS&&(r.mentionedUserIds?u=r.mentionedUserIds:r.mentionedUsers&&(u=r.mentionedUsers.map((function(e){return e.userId})))),n.call(this,{code:"FILE",ackRequired:!0,payload:Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({channel_url:r.channelUrl,files:r.files?Nt(r.files):null,url:r.url,name:null!==(i=r.fileName)&&void 0!==i?i:"",type:null!==(s=r.mimeType)&&void 0!==s?s:"",size:null!==(a=r.fileSize)&&void 0!==a?a:0,custom:r.data,custom_type:r.customType,thumbnails:null===(o=r._thumbnails)||void 0===o?void 0:o.map((function(e){return Ne.payloadify(e)})),require_auth:r.requireAuth,metaarray:r.metaArrays,mention_type:r.mentionType,mentioned_user_ids:u,push_option:r.pushNotificationDeliveryOption&&r.pushNotificationDeliveryOption!==_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.yb.DEFAULT?r.pushNotificationDeliveryOption:void 0,apple_critical_alert_options:r.appleCriticalAlertOptions?Fe.payloadify(r.appleCriticalAlertOptions):null,silent:r.silent,reply_to_channel:r.isReplyToChannel,parent_message_id:r.parentMessageId?r.parentMessageId:null,req_id:r.reqId,pin_message:r.isPinnedMessage}))})||this}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(i,n),i}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ob),Mt=function(n){function s(r){var s,a,o=this;o=n.call(this)||this;var u=[];return r.mentionType===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nb.USERS&&(r.mentionedUserIds?u=r.mentionedUserIds:r.mentionedUsers&&(u=r.mentionedUsers.map((function(e){return e.userId})))),o.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.POST,o.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(r.channelType),"/").concat(encodeURIComponent(r.channelUrl),"/messages"),o.params=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({message_type:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.lb.FILE,user_id:r.userId,files:r.files?Nt(r.files):null,url:r.fileUrl,mention_type:r.mentionType,mentioned_user_ids:u,file_name:r.fileName,file_size:r.fileSize,file_type:r.mimeType,data:r.data,custom_type:r.customType,thumbnails:null===(s=r._thumbnails)||void 0===s?void 0:s.map((function(e){return Ne.payloadify(e)})),require_auth:r.requireAuth,sorted_metaarray:null===(a=r.metaArrays)||void 0===a?void 0:a.map((function(e){return Ke.payloadify(e)})),push_option:r.pushNotificationDeliveryOption,parent_message_id:r.parentMessageId?r.parentMessageId:null,apple_critical_alert_options:r.appleCriticalAlertOptions?Fe.payloadify(r.appleCriticalAlertOptions):null,reply_to_channel:r.isReplyToChannel,req_id:r.reqId,pin_message:r.isPinnedMessage})),o}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(s,n),s}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Ut=function(e){function t(t,r,i){var s,a,o,u,c=this;(c=e.call(this,t,"FILE",i)||this).message=i.files&&i.files.length>=2?new gt(t,i):new Tt(t,i);var l=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(t).sdkState;return c.isMentioned=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.zb)(c.message.mentionType,null!==(o=null!==(s=c.message.mentionedUserIds)&&void 0!==s?s:null===(a=c.message.mentionedUsers)||void 0===a?void 0:a.map((function(e){return e.userId})))&&void 0!==o?o:[],l.userId),c.forceUpdateLastMessage=null!==(u=i.force_update_last_message)&&void 0!==u&&u,c}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.x),At=function(e){function t(t,r){var i,s,a,o,u=this;(u=e.call(this,t,r)||this).message=r.files&&r.files.length>=2?new gt(t,r):new Tt(t,r);var c=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(t).sdkState;return u.isMentioned=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.zb)(u.message.mentionType,null!==(a=null!==(i=u.message.mentionedUserIds)&&void 0!==i?i:null===(s=u.message.mentionedUsers)||void 0===s?void 0:s.map((function(e){return e.userId})))&&void 0!==a?a:[],c.userId),u.forceUpdateLastMessage=null!==(o=r.force_update_last_message)&&void 0!==o&&o,u}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc);function Nt(n){return n.map((function(n){var r,i;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({url:wt.getPlainUrl(n),file_name:n.fileName,file_type:n.mimeType,file_size:n.fileSize,thumbnails:null===(r=n._thumbnails)||void 0===r?void 0:r.map((function(e){return Ne.payloadify(e)})),require_auth:null===(i=n._uploadedMetaData)||void 0===i?void 0:i.requireAuth}))}))}!function(e){e[e.PENDING=0]="PENDING",e[e.UPLOADING=1]="UPLOADING",e[e.UPLOADED=2]="UPLOADED",e[e.SENDING=3]="SENDING",e[e.FAILED=4]="FAILED"}(Ct||(Ct={}));var Pt,kt=function(){function e(e,t){var n=t.sdkState,r=t.dispatcher,i=t.requestQueue,s=t.onlineDetector,a=t.cacheContext,o=this;this._queueMap=new Map,this._iid=e,this._sdkState=n,this._requestQueue=i,this._cacheContext=a,this._dispatcher=r,this._dispatcher.on((function(e){e instanceof _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.c&&(o._connectionState=e.stateType)})),this._onlineDetector=s}return Object.defineProperty(e.prototype,"_shouldSendThroughWebSocket",{get:function(){return this._connectionState===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.e.CONNECTED||this._connectionState===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.e.CONNECTING||this._connectionState===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.e.RECONNECTING},enumerable:!1,configurable:!0}),e.prototype._sendFileMessage=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n,r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(s){switch(s.label){case 0:return n=this._createSendFileMessageRequestParams(e,t),this._shouldSendThroughWebSocket?(r=new St(n),[4,this._requestQueue.send(r)]):[3,2];case 1:return[2,s.sent().as(Ut).message];case 2:return r=new Mt(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},n),{userId:this._sdkState.userId})),[4,this._requestQueue.send(r)];case 3:return[2,s.sent().as(At).message]}}))}))},e.prototype._createSendFileMessageRequestParams=function(e,t){var n=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},t.params),{channelUrl:e.url,channelType:e.channelType,reqId:t.requestId,url:""});if(t.multipleFileUploadInfo){var r=t.params;n.files=r.fileInfoList}else r=t.params,n.url=r.fileUrl,n.requireAuth=r.requireAuth;return n},e.prototype._resolveMessageQueue=function(e){var t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n,r,i,s,a,o,u,c,l,d,h,f,p;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(m){switch(m.label){case 0:if(!(n=this._queueMap.get(e.url)))return[3,21];if(n.isResolving)return[3,20];n.isResolving=!0,r=[],i=!0,m.label=1;case 1:m.trys.push([1,15,16,17]),s=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(n.messageQueue),a=s.next(),m.label=2;case 2:if(a.done)return[3,14];switch((o=a.value).state){case Ct.PENDING:case Ct.UPLOADING:return[3,3];case Ct.UPLOADED:return[3,4];case Ct.FAILED:return[3,12]}return[3,13];case 3:return i=!1,r.push(o),[3,13];case 4:if(!i)return[3,10];m.label=5;case 5:return m.trys.push([5,8,,9]),o.state=Ct.SENDING,[4,this._sendFileMessage(e,o)];case 6:return u=m.sent(),o.deferred.resolve(u),[4,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Bb)(100)];case 7:return m.sent(),[3,9];case 8:return c=m.sent(),o.deferred.reject(c),[3,9];case 9:return[3,11];case 10:r.push(o),m.label=11;case 11:return[3,13];case 12:return l=null!==(t=o.error)&&void 0!==t?t:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.unknown,o.deferred.reject(l.code===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sb.REQUEST_CANCELED?_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.fileUploadCanceled:l),[3,13];case 13:return a=s.next(),[3,2];case 14:return[3,17];case 15:return d=m.sent(),f={error:d},[3,17];case 16:try{a&&!a.done&&(p=s.return)&&p.call(s)}finally{if(f)throw f.error}return[7];case 17:return h=n.isResolveRequestPending,n.messageQueue=r,n.isResolving=!1,n.isResolveRequestPending=!1,h?[4,this._resolveMessageQueue(e)]:[3,19];case 18:m.sent(),m.label=19;case 19:return[3,21];case 20:n.isResolveRequestPending=!0,m.label=21;case 21:return[2]}}))}))},e.prototype._uploadNextPendingItem=function(e){var t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n,r,i,s,a,o,u,c,l,d;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(h){switch(h.label){case 0:return(n=this._queueMap.get(e.url))&&(r=n.messageQueue.find((function(e){return e.state===Ct.PENDING})))?r.multipleFileUploadInfo?(i=r.multipleFileUploadInfo,s=i.uploadIndex,a=i.uploadCount,o=i.requestHandler,d=r.params,u=d.fileInfoList[s],!Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.hc)(u.file)||(null===(t=u._uploadedMetaData)||void 0===t?void 0:t.isUploaded)?[3,2]:[4,this._tryUploadNextItemAndUpdateItemState(e,n,r)]):[3,4]:[3,9];case 1:return h.sent(),[3,3];case 2:r.state=s=0&&e.uploadQueue.splice(n,1)},e.prototype._uploadNextFileForSingleFileItemAndUpdateParams=function(e,t,n){var r,i,s;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var a,o,u,c,l,d,h,f,p,m;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(v){switch(v.label){case 0:return a=new Ce({file:n.file,channelUrl:e.url,thumbnailSizes:n.thumbnailSizes,requestId:t.requestId}),[4,this._requestQueue.send(a)];case 1:return o=v.sent(),u=o.as(ke),c=u.url,l=u.fileSize,d=void 0===l?n.fileSize:l,h=u.thumbnails,f=void 0===h?[]:h,p=u.requireAuth,m=void 0!==p&&p,n.fileName=null!==(r=n.fileName)&&void 0!==r?r:n.file.name,n.mimeType=null!==(i=n.mimeType)&&void 0!==i?i:n.file.type,n.fileSize=null!==(s=n.fileSize)&&void 0!==s?s:n.file.size,n.fileUrl=c,n.fileSize=d,n.requireAuth=m,n._thumbnails=f,[2]}}))}))},e.prototype._uploadNextFileForMultipleFilesItemAndUpdateParams=function(e,t,n){var r,i,s;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var a,o,c,l,d,h,f,p,m,v,y;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(_){switch(_.label){case 0:return a=t.multipleFileUploadInfo.uploadIndex,o=n.fileInfoList[a],c=new Ce({file:o.file,channelUrl:e.url,thumbnailSizes:o.thumbnailSizes,requestId:t.requestId}),[4,this._requestQueue.send(c)];case 1:return l=_.sent(),d=l.as(ke),h=d.url,f=d.fileSize,p=void 0===f?o.fileSize:f,m=d.thumbnails,v=d.requireAuth,y=void 0!==v&&v,o.fileName=null!==(r=o.fileName)&&void 0!==r?r:o.file.name,o.mimeType=null!==(i=o.mimeType)&&void 0!==i?i:o.file.type,o.fileSize=null!==(s=o.fileSize)&&void 0!==s?s:o.file.size,o.file=void 0,o.fileUrl=h,o.fileSize=p,o._thumbnails=m,o._uploadedMetaData=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},o._uploadedMetaData),{requireAuth:y,isUploaded:!0}),o instanceof wt||(n.fileInfoList[a]=new wt(this._iid,o)),[2]}}))}))},e.prototype.request=function(e,t,n,r){return void 0===r&&(r={}),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var i,s,a,o,c;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(l){return this._queueMap.has(e.url)||(i={messageQueue:[],uploadQueue:[],isResolving:!1,isResolveRequestPending:!1},this._queueMap.set(e.url,i)),s=this._queueMap.get(e.url),a=new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Cb,o={requestId:t,params:n,state:Ct.PENDING,deferred:a},function(e){return"fileInfoList"in e}(n)&&(c=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({uploadIndex:0,uploadCount:n.fileInfoList.length},r),o.multipleFileUploadInfo=c),s.messageQueue.push(o),this._uploadNextPendingItem(e),[2,a.promise]}))}))},e.prototype.cancel=function(e,t){var n,r,i=this._queueMap.get(e.url);if(i){var s=t?[i.messageQueue.find((function(e){return e.requestId===t}))]:Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(i.messageQueue),!1);try{for(var a=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(s),o=a.next();!o.done;o=a.next()){var u=o.value;if(u)switch(u.state){case Ct.PENDING:if(u.state=Ct.FAILED,u.error=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.requestCanceled,u.multipleFileUploadInfo&&!u.multipleFileUploadInfo.isCopy){var c=u.multipleFileUploadInfo,l=c.uploadIndex,d=c.requestHandler,h=u.params.fileInfoList[l];null==d||d._triggerOnFileUploaded(u.requestId,l,h,_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.fileUploadCanceled)}this._resolveMessageQueue(e);break;case Ct.UPLOADING:this._requestQueue.cancel(u.requestId),this._dispatcher.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ab({requestId:u.requestId}))}}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}else t&&(this._requestQueue.cancel(t),this._dispatcher.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ab({requestId:t})))},e}(),Ot={prevResultSize:0,nextResultSize:0,isInclusive:!1,reverse:!1,messageTypeFilter:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.vb.ALL,customTypesFilter:void 0,senderUserIdsFilter:void 0,replyType:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Db.NONE,includeReactions:!1,includeMetaArray:!1,includeParentMessageInfo:!1,includeThreadInfo:!1,showSubchannelMessagesOnly:!1},Rt=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e.prevResultSize)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e.nextResultSize)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.isInclusive)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.reverse)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.messageTypeFilter)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.vb,e.messageTypeFilter)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",e.customTypesFilter,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",e.senderUserIdsFilter,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Db,e.replyType)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.includeMetaArray)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.includeReactions)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.includeParentMessageInfo)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.includeThreadInfo)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.showSubchannelMessagesOnly)},xt={replyType:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Db.NONE,includeReactions:!1,includeThreadInfo:!1,includeMetaArray:!1,includeParentMessageInfo:!1},Dt=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Db,e.replyType)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.includeReactions)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.includeMetaArray)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.includeParentMessageInfo)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.includeThreadInfo)},Lt=function(e){function t(t){var n=t.channelType,r=t.channelUrl,s=t.messageId,a=t.includeMetaArray,o=t.includeReactions,u=t.includeThreadInfo,c=t.includeParentMessageInfo,l=e.call(this)||this;return l.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,l.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(n),"/").concat(encodeURIComponent(r),"/messages/").concat(encodeURIComponent(s)),l.params={is_sdk:!0,with_sorted_meta_array:a,include_reactions:o,include_thread_info:u,include_parent_message_info:c,include_poll_details:!0},l}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Ft=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.message=n?Et(t,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},n)):null,r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),qt=function(n){function s(r){var s=r.channelType,a=r.channelUrl,o=r.timestamp,u=r.token,c=r.prevResultSize,l=r.nextResultSize,d=r.isInclusive,h=r.reverse,f=r.messageTypeFilter,p=r.customTypesFilter,m=r.senderUserIdsFilter,v=r.replyType,y=r.includeMetaArray,_=r.includeReactions,g=r.parentMessageId,b=r.includeThreadInfo,I=r.includeParentMessageInfo,E=r.showSubchannelMessagesOnly,T=r.checkingHasNext,S=r.checkingContinuousMessages,M=n.call(this)||this;return M.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,M.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(s),"/").concat(encodeURIComponent(a),"/messages"),M.params=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({is_sdk:!0,prev_limit:c,next_limit:l,include:d,reverse:h,message_ts:o,message_id:u,message_type:null!=f?f:null,custom_types:p,sender_ids:m,include_reply_type:v,with_sorted_meta_array:y,include_reactions:_,parent_message_id:g,include_thread_info:b,include_parent_message_info:I,show_subchannel_message_only:E,include_poll_details:!0,checking_has_next:T,checking_continuous_messages:S})),M}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(s,n),s}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),zt=function(e){function t(t,n){var r=e.call(this,t,n)||this;return void 0!==n.is_continuous_messages&&(r.isContinuousMessages=n.is_continuous_messages),void 0!==n.has_next&&(r.hasNext=n.has_next),r.messages=n.messages.map((function(e){return Et(t,e)})),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),Bt=function(e){function t(t){var n=t.channelType,r=t.channelUrl,s=t.timestamp,a=t.token,o=t.replyType,u=t.includeMetaArray,c=t.includeReactions,l=t.includeThreadInfo,d=t.includeParentMessageInfo,h=e.call(this)||this;return h.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,h.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(n),"/").concat(encodeURIComponent(r),"/messages/changelogs"),h.params={change_ts:s,token:a,with_sorted_meta_array:u,include_reactions:c,include_thread_info:l,include_reply_type:o,include_parent_message_info:d,include_poll_details:!0},h}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Kt=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.updatedMessages=n.updated.map((function(e){return Et(t,e)})),r.deletedMessagesInfo=n.deleted.map((function(e){return{messageId:e.message_id,deletedAt:e.deleted_at}})),r.hasMore=n.has_more,r.nextToken=n.next,r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),jt=function(e){function t(t){var n=t.channelUrl,r=t.scheduledMessageId,s=e.call(this)||this;return s.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,s.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qb,"/").concat(encodeURIComponent(n),"/scheduled_messages/").concat(encodeURIComponent(r)),s.params={},s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Qt=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.message=n?Et(t,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},n)):null,r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc);!function(e){e.MUTED="muted",e.BANNED="banned"}(Pt||(Pt={}));var Gt=function(){function n(e){var t,n,r,i;this.restrictionType=null,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(Pt,e.restriction_type)&&(this.restrictionType=e.restriction_type),this.description=null!==(t=e.description)&&void 0!==t?t:null,this.endAt=null!==(r=null!==(n=e.end_at)&&void 0!==n?n:e.muted_end_at)&&void 0!==r?r:-1,this.remainingDuration=null!==(i=e.remaining_duration)&&void 0!==i?i:-1}return n.payloadify=function(n){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({restriction_type:n.restrictionType,description:n.description,end_at:n.endAt,remaining_duration:n.remainingDuration}))},n}(),Vt=function(n){function i(e,t){var r=n.call(this,e,t)||this;return r.restrictionInfo=new Gt(t),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(i,n),i.payloadify=function(r){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},n.payloadify.call(this,r)),Gt.payloadify(r.restrictionInfo))))},i}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v),Ht=function(e){function t(t,n){var r,i=this;return(i=e.call(this,t,n)||this).isMuted=!1,i.isMuted=null!==(r=n.is_muted)&&void 0!==r&&r,i}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v),Wt=function(){function e(){this._onPending=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this._onFailed=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this._onSucceeded=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb}return e.prototype._trigger=function(e){switch(null==e?void 0:e.sendingStatus){case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tb.PENDING:0===e.errorCode&&this._onPending(e);break;case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tb.SCHEDULED:case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tb.SUCCEEDED:this._onSucceeded(e)}},e.prototype._triggerFailed=function(e,t){switch(null==t?void 0:t.sendingStatus){case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tb.FAILED:case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tb.CANCELED:this._onFailed(e,t.scheduledInfo?null:t)}},e.prototype.onPending=function(e){return this._onPending=e,this},e.prototype.onFailed=function(e){return this._onFailed=e,this},e.prototype.onSucceeded=function(e){return this._onSucceeded=e,this},e}(),Yt={data:void 0,customType:void 0,mentionType:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nb.USERS,mentionedUserIds:void 0,mentionedUsers:void 0,mentionedMessageTemplate:void 0,metaArrays:void 0,parentMessageId:void 0,isReplyToChannel:!1,pushNotificationDeliveryOption:void 0,appleCriticalAlertOptions:void 0,isPinnedMessage:!1},Jt=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.data,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.customType,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nb,e.mentionType)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",e.mentionedUserIds,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v,e.mentionedUsers,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.mentionedMessageTemplate,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)(Ke,e.metaArrays,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e.parentMessageId,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.isReplyToChannel)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.yb,e.pushNotificationDeliveryOption,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)(Fe,e.appleCriticalAlertOptions,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.isPinnedMessage,!0)},Xt=function(e){return{isReplyToChannel:e.isReplyToChannel,pushNotificationDeliveryOption:e.pushNotificationDeliveryOption,pollId:e.pollId}},Zt=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},Yt),{message:"",translationTargetLanguages:void 0,pollId:void 0,extendedMessagePayload:void 0});function $t(e){var n,r,i;return null!==(n=e.messageParams)&&void 0!==n?n:Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},e),{mentionType:e.mentionType,mentionedUserIds:null!==(r=e.mentionedUserIds)&&void 0!==r?r:null===(i=e.mentionedUsers)||void 0===i?void 0:i.map((function(e){return e.userId})),translationTargetLanguages:Object.keys(e.translations),pushNotificationDeliveryOption:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.yb.DEFAULT,parentMessageId:null,isReplyToChannel:!1,isPinnedMessage:!1}))}var en,tn=function(n){var r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({data:n.data,customType:n.customType,mentionType:n.mentionType,mentionedUsers:n.mentionedUsers,mentionedUserIds:n.mentionedUserIds,mentionedMessageTemplate:n.mentionedMessageTemplate,metaArrays:n.metaArrays,pollId:null===(r=n.poll)||void 0===r?void 0:r.id,parentMessageId:n.parentMessageId,appleCriticalAlertOptions:n.appleCriticalAlertOptions,message:n.message,translationTargetLanguages:Object.keys(n.translations),extendedMessagePayload:n.extendedMessagePayload}))},nn=function(e){return Jt(e)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.message)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",e.translationTargetLanguages,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e.pollId,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("object",e.extendedMessagePayload,!0)};!function(e){e.FILE="file",e.BLOB="blob",e.BLOB_LIKE_OBJECT="blobLikeObject",e.URL="url"}(en||(en={}));var rn=function(e){return"undefined"!=typeof window&&"Blob"in window&&"undefined"!=typeof Blob&&e instanceof Blob},sn=function(e){return e===en.BLOB||e===en.FILE},an=function(e){return{file:e.file,fileKey:e.fileKey,fileType:e.fileType,isReplyToChannel:e.isReplyToChannel,pushNotificationDeliveryOption:e.pushNotificationDeliveryOption}},on=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},Yt),{file:void 0,fileKey:void 0,fileUrl:void 0,fileName:void 0,fileType:void 0,fileSize:void 0,mimeType:void 0,thumbnailSizes:void 0,requireAuth:!1});function un(e){var n,r,i,s;return null!==(n=e.messageParams)&&void 0!==n?n:Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},e),{fileUrl:e.plainUrl,fileName:e.name,fileSize:e.size,mimeType:e.type,mentionType:e.mentionType,mentionedUserIds:null!==(r=e.mentionedUserIds)&&void 0!==r?r:null===(i=e.mentionedUsers)||void 0===i?void 0:i.map((function(e){return e.userId})),pushNotificationDeliveryOption:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.yb.DEFAULT,parentMessageId:null,isReplyToChannel:!1,thumbnailSizes:null===(s=e.thumbnails)||void 0===s?void 0:s.map((function(e){return{maxWidth:e.width,maxHeight:e.height}})),requireAuth:e.requireAuth,isPinnedMessage:!1,_thumbnails:e.thumbnails}))}var cn,ln=function(n,r){var i;return n.messageParams?(!n.url&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.hc)(r)&&(n.messageParams.file=r),n.messageParams):Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({data:n.data,customType:n.customType,mentionType:n.mentionType,mentionedUsers:n.mentionedUsers,mentionedUserIds:n.mentionedUserIds,metaArrays:n.metaArrays,parentMessageId:n.parentMessageId,appleCriticalAlertOptions:n.appleCriticalAlertOptions,file:r,fileUrl:n.url,fileName:n.name,fileSize:n.size,mimeType:n.type,thumbnailSizes:null===(i=n.thumbnails)||void 0===i?void 0:i.map((function(e){return{maxWidth:e.width,maxHeight:e.height}}))}))},dn=function(e){return Jt(e)&&(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.hc)(e.file)||Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.fileUrl))&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.fileName,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.mimeType,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e.fileSize,!0)&&(null===e.thumbnailSizes||void 0===e.thumbnailSizes||Array.isArray(e.thumbnailSizes)&&e.thumbnailSizes.every((function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("object",e)&&e.maxWidth>0&&e.maxHeight>0})))},hn={data:void 0,customType:void 0,mentionType:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nb.USERS,mentionedUserIds:void 0,mentionedUsers:void 0,mentionedMessageTemplate:void 0,metaArrays:void 0,pushNotificationDeliveryOption:void 0,appleCriticalAlertOptions:void 0},fn=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.data,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.customType,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nb,e.mentionType)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",e.mentionedUserIds,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v,e.mentionedUsers,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.mentionedMessageTemplate,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)(Ke,e.metaArrays,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.yb,e.pushNotificationDeliveryOption,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)(Fe,e.appleCriticalAlertOptions,!0)},pn=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},hn),{message:void 0,translationTargetLanguages:void 0,pollId:void 0}),mn=function(e){return fn(e)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.message,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",e.translationTargetLanguages,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e.pollId,!0)},vn=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},hn),yn=function(e){function t(t){var n=t.channelUrl,r=t.channelType,s=t.token,a=t.limit,o=e.call(this)||this;return o.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,o.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(r),"/").concat(encodeURIComponent(n),"/operators"),o.params={token:s,limit:a},o}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),_n=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.operators=n.operators.map((function(e){return new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v(t,e)})),r.token=n.next,r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),gn=function(e){function t(t,n,r,i){return e.call(this,t,n,r,i)||this}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t.prototype._validate=function(){return e.prototype._validate.call(this)},t.prototype.next=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t,r,i,s,a,o;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(c){switch(c.label){case 0:return this._validate()?this._isLoading?[3,3]:(e=[],this._hasNext?(this._isLoading=!0,t=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,r=new yn(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},this),{channelUrl:this.channelUrl,token:this._token})),[4,t.send(r)]):[3,2]):[3,5];case 1:return i=c.sent(),s=i.as(_n),a=s.operators,o=s.token,this._token=o,this._hasNext=!!o,this._isLoading=!1,[2,a];case 2:return[2,e];case 3:throw _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.queryInProgress;case 4:return[3,6];case 5:throw _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters;case 6:return[2]}}))}))},t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Fb),bn=function(e){function n(t,n,r,i){var s,a,o,u,c,l,d,h,f,p,m=this;return(m=e.call(this,t,n,r,i)||this).reverse=!1,m.messageTypeFilter=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.vb.ALL,m.customTypesFilter=null,m.senderUserIdsFilter=null,m.replyType=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Db.NONE,m.includeMetaArray=!1,m.includeReactions=!1,m.includeParentMessageInfo=!1,m.includeThreadInfo=!1,m.showSubchannelMessagesOnly=!1,m._edge=Number.MAX_SAFE_INTEGER,m.reverse=null!==(s=i.reverse)&&void 0!==s&&s,m.messageTypeFilter=null!==(a=i.messageTypeFilter)&&void 0!==a?a:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.vb.ALL,m.customTypesFilter=null!==(o=i.customTypesFilter)&&void 0!==o?o:null,m.senderUserIdsFilter=null!==(u=i.senderUserIdsFilter)&&void 0!==u?u:null,m.replyType=null!==(c=i.replyType)&&void 0!==c?c:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Db.NONE,m.includeMetaArray=null!==(l=i.includeMetaArray)&&void 0!==l&&l,m.includeReactions=null!==(d=i.includeReactions)&&void 0!==d&&d,m.includeParentMessageInfo=null!==(h=i.includeParentMessageInfo)&&void 0!==h&&h,m.includeThreadInfo=null!==(f=i.includeThreadInfo)&&void 0!==f&&f,m.showSubchannelMessagesOnly=null!==(p=i.showSubchannelMessagesOnly)&&void 0!==p&&p,m}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,e),n.prototype._validate=function(){return e.prototype._validate.call(this)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",this.reverse)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.vb,this.messageTypeFilter)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Db,this.replyType)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",this.customTypesFilter,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",this.senderUserIdsFilter,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",this.includeMetaArray)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",this.includeReactions)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",this.includeParentMessageInfo)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",this.includeThreadInfo)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",this.showSubchannelMessagesOnly)},n.prototype.load=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return this._validate()?this._isLoading?[3,3]:this._hasNext?(this._isLoading=!0,[4,Qs.of(this._iid).getMessagesByTimestamp(this.channelUrl,this.channelType,this._edge,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({prevResultSize:this.limit,nextResultSize:0,isInclusive:!1,reverse:this.reverse,messageTypeFilter:this.messageTypeFilter,customTypesFilter:this.customTypesFilter,replyType:this.replyType,senderUserIdsFilter:this.senderUserIdsFilter,includeReactions:this.includeReactions,includeMetaArray:this.includeMetaArray,includeParentMessageInfo:this.includeParentMessageInfo,includeThreadInfo:this.includeThreadInfo,showSubchannelMessagesOnly:this.showSubchannelMessagesOnly}))]):[3,2]:[3,5];case 1:return e=n.sent(),this._edge=Math.min.apply(Math,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([Number.MAX_SAFE_INTEGER],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(e.map((function(e){return e.createdAt}))),!1)),this._hasNext=e.length>=this.limit,this._isLoading=!1,[2,e];case 2:return[2,[]];case 3:throw _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.queryInProgress;case 4:return[3,6];case 5:throw _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters;case 6:return[2]}}))}))},n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Fb),In=function(e){function t(t){var n=this,r=t.channelUrl,s=t.channelType,a=t.limit,o=t.token;return(n=e.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,n.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(s),"/").concat(encodeURIComponent(r),"/mute"),n.params={limit:a,token:o},n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),En=function(e){function t(t,n){var r=e.call(this,t,n)||this;r.mutedUsers=[];var i=n.next,s=n.muted_list;return r.token=i,s&&s.length>0&&(r.mutedUsers=s.map((function(e){return new Vt(t,e)}))),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),Tn=function(e){function t(t,n,r,i){return e.call(this,t,n,r,i)||this}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t.prototype.next=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t,r,i,s,a;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(o){switch(o.label){case 0:return this._validate()?this._isLoading?[3,3]:this._hasNext?(this._isLoading=!0,e=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,t=new In(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},this),{token:this._token})),[4,e.send(t)]):[3,2]:[3,5];case 1:return r=o.sent(),i=r.as(En),s=i.mutedUsers,a=i.token,this._token=a,this._hasNext=!!a,this._isLoading=!1,[2,s];case 2:return[2,[]];case 3:throw _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.queryInProgress;case 4:return[3,6];case 5:throw _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters;case 6:return[2]}}))}))},t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Fb),wn=function(t){function n(n){var r=this,s=n.channelUrl,a=n.channelType,o=n.limit,u=n.token;return(r=t.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,r.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(a),"/").concat(encodeURIComponent(s),"/ban"),r.params=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)({limit:o,token:u}),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Sn=function(e){function t(t,n){var r=e.call(this,t,n)||this;r.bannedUsers=[];var i=n.next,s=n.banned_list;return r.token=i,s&&s.length>0&&(r.bannedUsers=s.map((function(e){return new Vt(t,e.user)}))),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),Mn=function(e){function t(t,n,r,i){return e.call(this,t,n,r,i)||this}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t.prototype._validate=function(){return e.prototype._validate.call(this)},t.prototype.next=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t,r,i,s,a;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(o){switch(o.label){case 0:return this._validate()?this._isLoading?[3,3]:this._hasNext?(this._isLoading=!0,e=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,t=new wn(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},this),{token:this._token})),[4,e.send(t)]):[3,2]:[3,5];case 1:return r=o.sent(),i=r.as(Sn),s=i.bannedUsers,a=i.token,this._token=a,this._hasNext=!!a,this._isLoading=!1,[2,s];case 2:return[2,[]];case 3:throw _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.queryInProgress;case 4:return[3,6];case 5:throw _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters;case 6:return[2]}}))}))},t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Fb);!function(e){e.SPAM="spam",e.HARASSING="harassing",e.SUSPICIOUS="suspicious",e.INAPPROPRIATE="inappropriate"}(cn||(cn={}));var Un=function(e){function t(t){var n=this,r=t.channelUrl,s=t.channelType,a=t.operatorUserIds;return(n=e.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.POST,n.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(s),"/").concat(encodeURIComponent(r),"/operators"),n.params={operator_ids:a},n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec);!function(e){Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)((function t(){return null!==e&&e.apply(this,arguments)||this}),e)}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc);var An=function(e){function t(t){var n=this,r=t.channelUrl,s=t.channelType,a=t.operatorUserIds;return(n=e.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.DELETE,n.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(s),"/").concat(encodeURIComponent(r),"/operators"),n.params={operator_ids:a},n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec);!function(e){Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)((function t(t,n){return e.call(this,t,n)||this}),e)}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc);var Nn=function(e){function t(t){var n=this,r=t.channelUrl,s=t.channelType,a=t.userId;return(n=e.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,n.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(s),"/").concat(encodeURIComponent(r),"/mute/").concat(a),n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Cn=function(e){function t(t,n){var r=e.call(this,t,n)||this;r.isMuted=!1,r.startAt=0,r.endAt=0;var i=n.is_muted,s=n.start_at,a=n.end_at,o=n.remaining_duration,u=n.description;return r.isMuted=i,r.startAt=s,r.endAt=a,r.remainingDuration=o,r.description=u,r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),kn=function(e){function t(t){var n=this,r=t.channelUrl,s=t.channelType,a=t.keys;return(n=e.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,n.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(s),"/").concat(encodeURIComponent(r),"/metadata"),n.params={keys:a,include_ts:!0},n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Pn=function(e){function t(t,n){var r=e.call(this,t,n)||this,i=n.metadata,s=n.ts;return r.metadata=i,r.ts=s,r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),On=function(e){function t(t){var n=this,r=t.channelUrl,s=t.channelType,a=t.metadata;return(n=e.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.POST,n.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(s),"/").concat(encodeURIComponent(r),"/metadata"),n.params={metadata:a,include_ts:!0},n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Rn=function(e){function t(t,n){var r,i,s=this;return(s=e.call(this,t,n)||this).metaData=null!==(r=n.metadata)&&void 0!==r?r:{},s.ts=null!==(i=n.ts)&&void 0!==i?i:null,s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),xn=function(e){function t(t){var n=this,r=t.channelUrl,s=t.channelType,a=t.metadata,o=t.upsert;return(n=e.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.PUT,n.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(s),"/").concat(encodeURIComponent(r),"/metadata"),n.params={metadata:a,include_ts:!0,upsert:null!=o&&o},n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Dn=function(e){function t(t,n){var r=e.call(this,t,n)||this,i=n.metadata,s=n.ts;return r.metadata=i,r.ts=s,r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),Ln=function(e){function t(t,n,r){var i=e.call(this,t,"SYEV",r)||this;return r.data&&(i.created=r.data.created,i.updated=r.data.updated,i.deleted=r.data.deleted),i}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.x),Fn=function(e){function t(t){var n=this,r=t.channelUrl,s=t.channelType,a=t.key;return(n=e.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.DELETE,n.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(s),"/").concat(encodeURIComponent(r),"/metadata/").concat(a),n.params={include_ts:!0},n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),qn=function(e){function t(t,n){var r=e.call(this,t,n)||this,i=n.ts;return r.ts=i,r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),zn=function(e){function t(t){var n=this,r=t.channelUrl,s=t.channelType;return(n=e.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.DELETE,n.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(s),"/").concat(encodeURIComponent(r),"/metadata"),n.params={include_ts:!0},n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Bn=function(e){function t(t,n){var r=e.call(this,t,n)||this,i=n.ts;return r.ts=i,r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),Kn=function(e){function t(t){var n=this,r=t.channelUrl,s=t.channelType,a=t.keys;return(n=e.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,n.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(s),"/").concat(encodeURIComponent(r),"/metacounter"),n.params={keys:a},n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),jn=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.metaCounter=n,r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),Qn=function(e){function t(t){var n=this,r=t.channelUrl,s=t.channelType,a=t.metaCounter;return(n=e.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.POST,n.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(s),"/").concat(encodeURIComponent(r),"/metacounter"),n.params={metacounter:a},n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Gn=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.metaCounter=n,r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),Vn=function(e){function t(t){var n=this,r=t.channelUrl,s=t.channelType,a=t.metaCounter,o=t.upsert,u=void 0!==o&&o,c=t.mode,l=void 0===c?"set":c;return(n=e.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.PUT,n.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(s),"/").concat(encodeURIComponent(r),"/metacounter"),n.params={metacounter:a,upsert:u,mode:l},n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Hn=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.metaCounter=n,r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),Wn=function(e){function t(t,n,r){var i=e.call(this,t,"SYEV",r)||this;return r.data&&(i.created=r.data.created,i.updated=r.data.updated,i.deleted=r.data.deleted),i}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.x),Yn=function(e){function t(t){var n=this,r=t.channelUrl,s=t.channelType,a=t.key;return(n=e.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.DELETE,n.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(s),"/").concat(encodeURIComponent(r),"/metacounter/").concat(a),n.params={},n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec);!function(e){Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)((function t(t,n){return e.call(this,t,n)||this}),e)}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc);var Jn=function(e){function t(t){var n=this,r=t.channelUrl,s=t.channelType;return(n=e.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.DELETE,n.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(s),"/").concat(encodeURIComponent(r),"/metacounter"),n.params={},n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec);!function(e){Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)((function t(){return null!==e&&e.apply(this,arguments)||this}),e)}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc);var Xn=function(e){function t(t){var n=this,r=t.channelUrl,s=t.channelType,a=t.userId,o=t.seconds,u=t.description;return(n=e.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.POST,n.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(s),"/").concat(encodeURIComponent(r),"/mute"),n.params={user_id:a,seconds:o,description:u},n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec);!function(e){Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)((function t(t,n){return e.call(this,t,n)||this}),e)}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc);var Zn=function(e){function t(t,n,r){var i=e.call(this,t,"SYEV",r)||this;return i.user=new Vt(t,r.data),i}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.x),$n=function(e){function t(t){var n=this,r=t.channelUrl,s=t.channelType,a=t.userId;return(n=e.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.DELETE,n.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(s),"/").concat(encodeURIComponent(r),"/mute/").concat(encodeURIComponent(a)),n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec);!function(e){Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)((function t(){return null!==e&&e.apply(this,arguments)||this}),e)}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc);var er=function(e){function t(t,n,r){var i=e.call(this,t,"SYEV",r)||this;return i.user=new Vt(t,r.data),i}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.x),tr=function(t){function n(n){var r=this,s=n.channelUrl,a=n.channelType,o=n.userId,u=n.seconds,c=n.description;return(r=t.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.POST,r.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(a),"/").concat(encodeURIComponent(s),"/ban"),r.params=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)({user_id:o,seconds:u,description:c}),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec);!function(e){Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)((function t(){return null!==e&&e.apply(this,arguments)||this}),e)}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc);var nr=function(e){function t(t,n,r){var i=e.call(this,t,"SYEV",r)||this;return i.user=new Vt(t,r.data),r.data.member_count&&(i.memberCount=r.data.member_count),r.data.joined_member_count&&(i.joinedMemberCount=r.data.joined_member_count),i}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.x),rr=function(e){function t(t){var n=this,r=t.channelUrl,s=t.channelType,a=t.userId;return(n=e.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.DELETE,n.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(s),"/").concat(encodeURIComponent(r),"/ban/").concat(encodeURIComponent(a)),n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec);!function(e){Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)((function t(){return null!==e&&e.apply(this,arguments)||this}),e)}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc);var ir=function(e){function t(t,n,r){var i=e.call(this,t,"SYEV",r)||this;return i.user=new Vt(t,r.data),i}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.x),sr=function(e){function t(t){var n=this,r=t.channelUrl,s=t.channelType,a=t.freezing;return(n=e.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.PUT,n.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(s),"/").concat(encodeURIComponent(r),"/freeze"),n.params={freeze:a},n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec);!function(e){Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)((function t(){return null!==e&&e.apply(this,arguments)||this}),e)}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc);var ar=function(e){function t(t,n,r){var i=e.call(this,t,"SYEV",r)||this;return i.freeze=r.data.freeze,i}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.x),or=function(e){function t(t){var n=this,r=t.channelUrl,s=t.channelType,a=t.category,o=t.userId,u=t.description;return(n=e.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.POST,n.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Gb)(s),"/").concat(encodeURIComponent(r)),n.params={report_category:a,reporting_user_id:o,report_description:u},n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),ur=function(e){function t(t){var n=this,r=t.channelUrl,s=t.channelType,a=t.category,o=t.userId,u=t.offendingUserId,c=t.description;return(n=e.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.POST,n.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Hb,"/users/").concat(u),n.params={channel_url:r,channel_type:s===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.OPEN?"open_channels":"group_channels",report_category:a,reporting_user_id:o,report_description:c},n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),cr=function(e){function t(t){var n=this,r=t.channelUrl,s=t.channelType,a=t.category,o=t.userId,u=t.offendingUserId,c=t.messageId,l=t.description;return(n=e.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.POST,n.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Gb)(s),"/").concat(encodeURIComponent(r),"/messages/").concat(c),n.params={report_category:a,reporting_user_id:o,report_description:l,offending_user_id:u},n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),lr=function(n){function i(r){var i=[];return r.mentionType===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nb.USERS&&(r.mentionedUserIds?i=r.mentionedUserIds:r.mentionedUsers&&(i=r.mentionedUsers.map((function(e){return e.userId})))),n.call(this,{code:"MESG",ackRequired:!0,payload:Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({channel_url:r.channelUrl,message:r.message,data:r.data,custom_type:r.customType,metaarray:r.metaArrays,mention_type:r.mentionType,mentioned_user_ids:i,mentioned_message_template:r.mentionedMessageTemplate,target_langs:r.translationTargetLanguages,push_option:r.pushNotificationDeliveryOption&&r.pushNotificationDeliveryOption!==_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.yb.DEFAULT?r.pushNotificationDeliveryOption:void 0,apple_critical_alert_options:r.appleCriticalAlertOptions,silent:r.silent,reply_to_channel:r.isReplyToChannel,parent_message_id:r.parentMessageId?r.parentMessageId:null,req_id:r.reqId,poll_id:r.pollId,pin_message:r.isPinnedMessage,extended_message_payload:r.extendedMessagePayload}))})||this}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(i,n),i}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ob),dr=function(e){function t(t,r,i){var s,a,o,u,c=this;(c=e.call(this,t,"MESG",i)||this).message=new _t(t,i);var l=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(t).sdkState;return c.isMentioned=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.zb)(c.message.mentionType,null!==(o=null!==(s=c.message.mentionedUserIds)&&void 0!==s?s:null===(a=c.message.mentionedUsers)||void 0===a?void 0:a.map((function(e){return e.userId})))&&void 0!==o?o:[],l.userId),c.forceUpdateLastMessage=null!==(u=i.force_update_last_message)&&void 0!==u&&u,c}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.x),hr=function(n){function i(r){var i=null;return r.mentionType===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nb.USERS&&(r.mentionedUserIds?i=r.mentionedUserIds:r.mentionedUsers&&(i=r.mentionedUsers.map((function(e){return e.userId})))),n.call(this,{code:"MEDI",ackRequired:!0,payload:Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({channel_url:r.channelUrl,msg_id:r.messageId,message:r.message,data:r.data,custom_type:r.customType,metaarray:r.metaArrayParams,mention_type:r.mentionType,mentioned_user_ids:i,mentioned_message_template:r.mentionedMessageTemplate,apple_critical_alert_options:r.appleCriticalAlertOptions?Fe.payloadify(r.appleCriticalAlertOptions):null,poll_id:r.pollId}))})||this}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(i,n),i}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ob),fr=function(e){function i(r,i,s){var a,o,u,c,l,d=this;(d=e.call(this,r,"MEDI",s)||this).message=new _t(r,s);var h=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(r).sdkState;return d.mentionCountChange=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.I)({mentionType:null===(a=s.old_values)||void 0===a?void 0:a.mention_type,mentionedUserIds:null!==(u=null===(o=s.old_values)||void 0===o?void 0:o.mentioned_user_ids)&&void 0!==u?u:[]},Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({mentionType:d.message.mentionType,mentionedUserIds:null!==(c=d.message.mentionedUserIds)&&void 0!==c?c:null===(l=d.message.mentionedUsers)||void 0===l?void 0:l.map((function(e){return e.userId}))}),h.userId),d}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(i,e),i}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.x),pr=function(n){function i(r){var i=null;return r.mentionType===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nb.USERS&&(r.mentionedUserIds?i=r.mentionedUserIds:r.mentionedUsers&&(i=r.mentionedUsers.map((function(e){return e.userId})))),n.call(this,{code:"FEDI",ackRequired:!0,payload:Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({channel_url:r.channelUrl,msg_id:r.messageId,data:r.data,custom_type:r.customType,metaarray:r.metaArrayParams,mention_type:r.mentionType,mentioned_user_ids:i,apple_critical_alert_options:r.appleCriticalAlertOptions}))})||this}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(i,n),i}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ob),mr=function(e){function i(r,i,s){var a,o,u,c,l,d=this;(d=e.call(this,r,"FEDI",s)||this).message=new Tt(r,s);var h=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(r).sdkState;return d.mentionCountChange=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.I)({mentionType:null===(a=s.old_values)||void 0===a?void 0:a.mention_type,mentionedUserIds:null!==(u=null===(o=s.old_values)||void 0===o?void 0:o.mentioned_user_ids)&&void 0!==u?u:[]},Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({mentionType:d.message.mentionType,mentionedUserIds:null!==(c=d.message.mentionedUserIds)&&void 0!==c?c:null===(l=d.message.mentionedUsers)||void 0===l?void 0:l.map((function(e){return e.userId}))}),h.userId),d}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(i,e),i}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.x),vr=function(e){function t(t){var n=e.call(this)||this;return n.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.DELETE,n.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(t.channelType),"/").concat(t.channelUrl,"/messages/").concat(t.messageId),n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec);!function(e){Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)((function t(){return null!==e&&e.apply(this,arguments)||this}),e)}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc);var yr=function(e){function t(t,n,r){var i,s=this;return(s=e.call(this,t,"DELM",r)||this).channelUrl=r.channel_url,s.channelType=r.channel_type,s.messageId=Number(r.msg_id),s.silent=r.silent,s.messageCreatedAt=r.message_created_at?Number(r.message_created_at):-1,s.senderId=null!==(i=r.sender_id)&&void 0!==i?i:void 0,s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.x),_r=function(e){function t(t){var n=t.channelType,r=t.channelUrl,s=t.messageId,a=t.reactionKey,o=e.call(this)||this;return o.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.POST,o.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(n),"/").concat(encodeURIComponent(r),"/messages/").concat(s,"/reactions"),o.params={reaction:a},o}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),gr=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.reactionEvent=new Re(n),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),br=function(e){function t(t){var n=t.channelType,r=t.channelUrl,s=t.messageId,a=t.reactionKey,o=e.call(this)||this;return o.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.DELETE,o.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(n),"/").concat(encodeURIComponent(r),"/messages/").concat(s,"/reactions"),o.params={reaction:a},o}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Ir=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.reactionEvent=new Re(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},n)),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),Er=function(e){function t(t){var n=t.channelType,r=t.channelUrl,s=t.messageId,a=t.translationTargetLanguages,o=e.call(this)||this;return o.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.POST,o.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(n),"/").concat(encodeURIComponent(r),"/messages/").concat(encodeURIComponent(s),"/translation"),o.params={target_langs:a},o}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Tr=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.message=new _t(t,n),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),wr=function(n){function s(r){var s,a=this;a=n.call(this)||this;var o=[];r.mentionType===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nb.USERS&&(r.mentionedUserIds?o=r.mentionedUserIds:r.mentionedUsers&&(o=r.mentionedUsers.map((function(e){return e.userId}))));var u=r.channelType,c=r.channelUrl;return a.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.POST,a.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(u),"/").concat(encodeURIComponent(c),"/scheduled_messages"),a.params=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({req_id:r.reqId,scheduled_at:r.scheduledAt,message_type:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.J.USER,message:r.message,custom_type:r.customType,data:r.data,mention_type:r.mentionType,mentioned_user_ids:o,sorted_metaarray:null===(s=r.metaArrays)||void 0===s?void 0:s.map((function(e){return Ke.payloadify(e)})),apple_critical_alert_options:r.appleCriticalAlertOptions?Fe.payloadify(r.appleCriticalAlertOptions):null,target_langs:r.translationTargetLanguages,push_option:r.pushNotificationDeliveryOption})),a}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(s,n),s}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Sr=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.message=new _t(t,n),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),Mr=function(e){function n(n){var r,s,a=this;a=e.call(this)||this;var o=[];n.mentionType===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nb.USERS&&(n.mentionedUserIds?o=n.mentionedUserIds:n.mentionedUsers&&(o=n.mentionedUsers.map((function(e){return e.userId}))));var u=n.channelType,c=n.channelUrl;return a.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.POST,a.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(u),"/").concat(encodeURIComponent(c),"/scheduled_messages"),a.params=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({req_id:n.reqId,scheduled_at:n.scheduledAt,message_type:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.J.FILE,url:n.fileUrl,file_name:n.fileName,file_size:n.fileSize,file_type:n.mimeType,thumbnails:null===(r=n._thumbnails)||void 0===r?void 0:r.map((function(e){return Ne.payloadify(e)})),custom_type:n.customType,data:n.data,require_auth:n.requireAuth,mention_type:n.mentionType,mentioned_user_ids:o,sorted_metaarray:null===(s=n.metaArrays)||void 0===s?void 0:s.map((function(e){return Ke.payloadify(e)})),apple_critical_alert_options:n.appleCriticalAlertOptions?Fe.payloadify(n.appleCriticalAlertOptions):null,push_option:n.pushNotificationDeliveryOption}),a}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,e),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Ur=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.message=new Tt(t,n),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),Ar=function(e){function t(t){var n=t.pollId,r=t.title,s=t.data,a=t.allowUserSuggestion,o=t.allowMultipleVotes,u=t.closeAt,c=e.call(this)||this;return c.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.PUT,c.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.L,"/").concat(encodeURIComponent(n)),c.params={title:r,data:s,allow_user_suggestion:a,allow_multiple_votes:o,close_at:u},c}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Nr=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.poll=new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.wb(t,n),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),Cr=function(e){function t(t){var n=t.pollId,r=e.call(this)||this;return r.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.DELETE,r.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.L,"/").concat(encodeURIComponent(n)),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec);!function(e){Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)((function t(){return null!==e&&e.apply(this,arguments)||this}),e)}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc);var kr=function(e){function t(t){var n=t.pollId,r=e.call(this)||this;return r.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.PUT,r.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.L,"/").concat(encodeURIComponent(n),"/close"),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Pr=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.poll=new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.wb(t,n),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),Or=function(e){function t(t){var n=t.channelUrl,r=t.channelType,s=t.pollId,a=t.optionText,o=e.call(this)||this;return o.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.POST,o.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.L,"/").concat(encodeURIComponent(s),"/options"),o.params={channel_url:n,channel_type:r,text:a},o}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Rr=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.poll=new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.wb(t,n),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),xr=function(e){function t(t){var n=t.pollId,r=t.pollOptionId,s=t.optionText,a=e.call(this)||this;return a.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.PUT,a.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.L,"/").concat(encodeURIComponent(n),"/options/").concat(encodeURIComponent(r)),a.params={text:s},a}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Dr=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.poll=new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.wb(t,n),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),Lr=function(e){function t(t){var n=t.pollId,r=t.pollOptionId,s=e.call(this)||this;return s.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.DELETE,s.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.L,"/").concat(encodeURIComponent(n),"/options/").concat(encodeURIComponent(r)),s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec);!function(e){Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)((function t(){return null!==e&&e.apply(this,arguments)||this}),e)}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc);var Fr=function(t){function n(n){var r=n.reqId,i=n.channelType,s=n.channelUrl,a=n.pollId,o=n.pollOptionIds;return t.call(this,{code:"VOTE",ackRequired:!0,payload:Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)({req_id:r,channel_type:i===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.OPEN?"open_channels":"group_channels",channel_url:s,poll_id:a,option_ids:o})})||this}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ob),qr=function(e){function t(t,n,r){var i=e.call(this,t,"VOTE",r)||this;return i.event=new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.M(r),i.channelUrl=r.channel_url,i.channelType=r.channel_type,i}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.x),zr=100,Br="GroupChannel",Kr="url",jr=100,Qr="Message",Gr="messageId",Hr="NotificationMessage",Wr="notificationId",Yr="Poll",Jr="pollId",Zr="FeedChannel",$r="url";function ei(e){var n,r,i;return null!==(n=e.messageParams)&&void 0!==n?n:Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},e),{isReplyToChannel:!1,mentionedUserIds:null!==(r=e.mentionedUserIds)&&void 0!==r?r:null===(i=e.mentionedUsers)||void 0===i?void 0:i.map((function(e){return e.userId})),pushNotificationDeliveryOption:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.yb.DEFAULT,isPinnedMessage:!1,fileInfoList:e.fileInfoList.map((function(e){var t;return{fileUrl:e.plainUrl,fileName:e.fileName,fileSize:e.fileSize,mimeType:e.mimeType,thumbnailSizes:null===(t=e.thumbnails)||void 0===t?void 0:t.map((function(e){return{maxWidth:e.width,maxHeight:e.height}})),_thumbnails:e.thumbnails,_uploadedMetaData:{requireAuth:e._requireAuth,isUploaded:!0}}}))}))}var ti,ni=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},Yt),{fileInfoList:[]}),ii=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onFileUploaded=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,t}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t.prototype._triggerOnFileUploaded=function(e,t,n,r){this._onFileUploaded(e,t,n,r)},t.prototype.onFileUploaded=function(e){return this._onFileUploaded=e,this},t.prototype.onPending=function(t){return e.prototype.onPending.call(this,t),this},t.prototype.onFailed=function(t){return e.prototype.onFailed.call(this,t),this},t.prototype.onSucceeded=function(t){return e.prototype.onSucceeded.call(this,t),this},t}(Wt),si=2;!function(e){e.SEND="send",e.RESEND="resend",e.COPY="copy"}(ti||(ti={}));var ai,oi=function(i){function s(e,t){var n,r,s,a,o,u,l=this;return(l=i.call(this,e)||this)._name="",l._createdAt=0,l.channelType=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.BASE,l.coverUrl="",l.customType="",l.data="",l.isFrozen=!1,l.isEphemeral=!1,l.creator=null,l._messageCollectionLastAccessedAt=0,l._url=t.channel_url,l._name=null!==(n=t.name)&&void 0!==n?n:"",l._createdAt=1e3*t.created_at,l.coverUrl=null!==(r=t.cover_url)&&void 0!==r?r:"",l.customType=null!==(s=t.custom_type)&&void 0!==s?s:"",l.data=null!==(a=t.data)&&void 0!==a?a:"",l.isFrozen=null!==(o=t.freeze)&&void 0!==o&&o,l.isEphemeral=null!==(u=t.is_ephemeral)&&void 0!==u&&u,l.creator=t.created_by?new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v(l._iid,t.created_by):null,t.metadata&&Object.keys(t.metadata).length>0&&t.ts&&(l._cachedMetaData=new Map,Object.keys(t.metadata).forEach((function(e){l._cachedMetaData.set(e,{value:t.metadata[e],isRemoved:!1,updatedAt:t.ts})}))),l}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(s,i),Object.defineProperty(s.prototype,"url",{get:function(){return this._url},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"name",{get:function(){return this._name},set:function(e){this._name=e},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"createdAt",{get:function(){return this._createdAt},enumerable:!1,configurable:!0}),s.prototype.toJSON=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},this),{url:this._url,name:this._name,createdAt:this._createdAt})},s.payloadify=function(n){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},i.payloadify.call(this,n)),{channel_url:n.url,name:n.name,cover_url:n.coverUrl,custom_type:n.customType,data:n.data,freeze:n.isFrozen,is_ephemeral:n.isEphemeral,created_by:n.creator?_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v.payloadify(n.creator):null,created_at:n.createdAt/1e3})))},s.prototype.isGroupChannel=function(){return this.channelType===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.GROUP},s.prototype.isOpenChannel=function(){return this.channelType===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.OPEN},s.prototype.isFeedChannel=function(){return this.channelType===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.FEED},Object.defineProperty(s.prototype,"cachedMetaData",{get:function(){var e={};return this._cachedMetaData?(this._cachedMetaData.forEach((function(t,n){t.isRemoved||(e[n]=t.value)})),e):e},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"messageCollectionLastAccessedAt",{get:function(){return this._messageCollectionLastAccessedAt},enumerable:!1,configurable:!0}),s.prototype._updateMessageCollectionLastAccessedAt=function(){this._messageCollectionLastAccessedAt=Date.now()},s.prototype._update=function(t){var n=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(t);Object.assign(this,n)},s.prototype._upsertCachedMetaData=function(e,t){var n=this;Object.keys(e).forEach((function(r){n._cachedMetaData||(n._cachedMetaData=new Map);var i=n._cachedMetaData.get(r);(!i||i.updatedAt<=t)&&n._cachedMetaData.set(r,{value:e[r],isRemoved:!1,updatedAt:t})}))},s.prototype._updateCachedMetaData=function(e,t){var n=this;this._cachedMetaData?this._cachedMetaData.forEach((function(r,i){var s;r.updatedAt<=t&&n._cachedMetaData.set(i,{value:null!==(s=e[i])&&void 0!==s?s:r.value,isRemoved:!e[i],updatedAt:t})})):(this._cachedMetaData=new Map,Object.keys(e).forEach((function(r){n._cachedMetaData.set(r,{value:e[r],isRemoved:!1,updatedAt:t})})))},s.prototype._removeFromCachedMetaData=function(e,t){var n=this;this._cachedMetaData&&e.forEach((function(e){var r=n._cachedMetaData.get(e);r&&r.updatedAt0&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",t)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),r=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,i=new Er({channelType:this.channelType,channelUrl:this.url,messageId:e.messageId,translationTargetLanguages:t}),[4,r.send(i)];case 1:return[2,a.sent().as(Tr).message]}}))}))},s.prototype._createScheduledUserMessage=function(e,t){var r=this,i=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,s=Date.now(),a=this._generateRequestId();Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Bb)(2).then((function(){var n=r._createPendingScheduledUserMessage(e,a,s);Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(r,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return[2,t._trigger(n)]}))}))}))}));var o=new wr(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({reqId:a,channelType:this.channelType,channelUrl:this.url},e));i.send(o).then((function(e){var n=e.as(Sr).message;Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(r,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return[2,t._trigger(n)]}))}))}))})).catch((function(n){if(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.o)(n))throw n;Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Bb)(2).then((function(){var i=r._createPendingScheduledUserMessage(e,a,s);r._markMessageAsFailed(i,n),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(r,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return[2,t._triggerFailed(n,i)]}))}))}))}))}))},s.prototype.sendFileMessage=function(e){var t=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},on),e);return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(dn(t)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),this._sendFileMessage(t)},s.prototype.sendMultipleFilesMessage=function(e){var t,r=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},ni),e),i=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid);Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(function(e,t){return void 0===t&&(t=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.N),Jt(e)&&Array.isArray(e.fileInfoList)&&e.fileInfoList.length>=2&&e.fileInfoList.length<=t&&e.fileInfoList.every((function(e){return function(e){return(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.hc)(e.file)||Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.fileUrl))&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.fileName,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.mimeType,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e.fileSize,!0)&&(void 0===e.thumbnailSizes||Array.isArray(e.thumbnailSizes)&&e.thumbnailSizes.every((function(e){return e.maxWidth>0&&e.maxHeight>0})))}(e)}))}(r,null===(t=i.appInfo)||void 0===t?void 0:t.multipleFilesMessageFileCountLimit)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters);var s=!!e.fileInfoList.find((function(e){var t=i.appInfo.uploadSizeLimit;return e.file instanceof Blob&&e.file.size>t||e.fileSize>t}));return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(!s).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.fileSizeLimitExceededError),this._sendMultipleFilesMessage(r)},s.prototype._sendFileMessage=function(e,t,r){var i=this;void 0===t&&(t=ti.SEND);var s=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).dispatcher,a=Qs.of(this._iid).fileMessageQueue,o=null!=r?r:this._generateRequestId(),u=Date.now(),c=new Wt;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Bb)(2).then((function(){var r=i._createPendingFileMessage(e,o,u);s.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rb({messages:[r],source:t===ti.RESEND?_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.LOCAL_MESSAGE_RESEND_STARTED:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_SENT_PENDING})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(i,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return[2,c._trigger(r)]}))}))})),a.request(i,o,e).then((function(e){s.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rb({messages:[e],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_SENT_SUCCESS})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(i,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){return[2,c._trigger(e)]}))}))}))})).catch((function(t){if(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.o)(t))throw t;Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Bb)(2).then((function(){var r=i._createPendingFileMessage(e,o,u),a=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(i._iid).cacheContext,l=a.localCacheEnabled&&a.localCacheConfig.enableAutoResend&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.O)(t.code);i._markMessageAsFailed(r,t,l),s.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rb({messages:[r],source:r.sendingStatus===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tb.PENDING?_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.REQUEST_RESEND_MESSAGE:t.code===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sb.FILE_UPLOAD_CANCEL_FAILED?_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.LOCAL_MESSAGE_CANCELED:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_SENT_FAILED})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(i,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return[2,c._triggerFailed(t,r)]}))}))}))}))}))})),c},s.prototype._autoResendFileMessage=function(e){Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(e instanceof Tt&&!!e.messageParams).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters);var t=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).logger;return t.debug("autoResendFileMessage pending",e),this._sendFileMessage(e.messageParams,ti.SEND,e.reqId).onFailed((function(e){t.debug("autoResendFileMessage failed",e)})).onSucceeded((function(e){t.debug("autoResendFileMessage success",e)}))},s.prototype._sendMultipleFilesMessage=function(e,t,r){var i=this,s=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).dispatcher,a=Qs.of(this._iid).fileMessageQueue,o=null!=r?r:this._generateRequestId(),u=Date.now(),c=new ii;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Bb)(2).then((function(){var n=i._createPendingMultipleFilesMessage(e,o,u);s.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rb({messages:[n],source:t===ti.RESEND?_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.LOCAL_MESSAGE_RESEND_STARTED:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_SENT_PENDING})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(i,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return[2,c._trigger(n)]}))}))})),a.request(i,o,e,{requestHandler:c,isCopy:t===ti.COPY}).then((function(e){s.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rb({messages:[e],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_SENT_SUCCESS})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(i,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){return[2,c._trigger(e)]}))}))}))})).catch((function(t){if(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.o)(t))throw t;Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Bb)(2).then((function(){var n=i._createPendingMultipleFilesMessage(e,o,u);i._markMessageAsFailed(n,t),s.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rb({messages:[n],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_SENT_FAILED})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(i,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return[2,c._triggerFailed(t,n)]}))}))}))}))}))})),c},s.prototype._createScheduledFileMessage=function(e,t,r,i){var s=this,a=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,o=new Mr(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({reqId:r,channelType:this.channelType,channelUrl:this.url},e),{fileUrl:e.fileUrl,requireAuth:e.requireAuth}));a.send(o).then((function(e){var n=e.as(Ur).message;Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(s,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return[2,t._trigger(n)]}))}))}))})).catch((function(n){if(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.o)(n))throw n;Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Bb)(2).then((function(){var a=s._createPendingScheduledFileMessage(e,r,i);s._markMessageAsFailed(a,n),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(s,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return[2,t._triggerFailed(n,a)]}))}))}))}))}))},s.prototype.sendFileMessages=function(e){var t,n;Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(e.every((function(e){return dn(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},on),e))}))).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters);var r=new Wt;try{for(var i=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(e),s=i.next();!s.done;s=i.next()){var a=s.value;this.sendFileMessage(a).onPending((function(e){return r._trigger(e)})).onFailed((function(e,t){return r._triggerFailed(e,t)})).onSucceeded((function(e){return r._trigger(e)}))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},s.prototype.resendFileMessage=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n,r,i;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(s){return n=this._validateFailedFileMessageHasFile(e,t),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(e instanceof Tt&&n&&!e.scheduledInfo).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),r=new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Cb,i=ln(e,t),this._sendFileMessage(i,ti.RESEND,e.reqId).onFailed((function(e){return r.reject(e)})).onSucceeded((function(e){return r.resolve(e)})),[2,r.promise]}))}))},s.prototype.resendMessage=function(e,t){var n,r;if(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(e instanceof ht&&!e.scheduledInfo&&e.isResendable).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),e.isUserMessage()){var i=null!==(n=e.messageParams)&&void 0!==n?n:tn(e);return this._sendUserMessage(i,ti.RESEND,e.reqId)}if(e.isFileMessage()){var s=this._validateFailedFileMessageHasFile(e,t);return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(s).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),i=null!==(r=e.messageParams)&&void 0!==r?r:ln(e,t),this._sendFileMessage(i,ti.RESEND,e.reqId)}if(e.isMultipleFilesMessage())throw _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.channelTypeNotSupportedError},s.prototype.updateFileMessage=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var r,i,s;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(o){switch(o.label){case 0:return r=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},vn),t),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e)&&function(e){return fn(e)}(r)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),i=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,s=new pr(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({channelType:this.channelType,channelUrl:this.url,messageId:e,metaArrayParams:r.metaArrays?{array:r.metaArrays,mode:"add",upsert:!0}:void 0},r)),[4,i.send(s)];case 1:return[2,o.sent().as(mr).message]}}))}))},s.prototype.uploadFile=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,r,i,s,a,o,u;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(c){switch(c.label){case 0:return t=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,r=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.lc)(),(i=new Ce({file:e.file,channelUrl:this.url,thumbnailSizes:e.thumbnailSizes,requestId:r})).uploadProgressHandler=e.progressHandler,e.uploadStartedHandler&&e.uploadStartedHandler(r),[4,t.send(i)];case 1:return s=c.sent(),a=s.as(ke),o=a.url,u=a.thumbnails,[2,{requestId:r,url:o,thumbnails:u}]}}))}))},s.prototype.cancelUploadingFileMessage=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),Qs.of(this._iid).fileMessageQueue.cancel(this,e),[2,!0]}))}))},s.prototype.copyFileMessage=function(e,n){var r,i,a;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var o,c;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(l){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(e instanceof s&&n instanceof Tt&&n.sendingStatus===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tb.SUCCEEDED&&this.url===n.channelUrl&&!n.scheduledInfo).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),o=new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Cb,c=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},n),{fileUrl:n.url,fileName:n.name,fileSize:n.size,mimeType:n.type,mentionType:n.mentionType,mentionedUserIds:null!==(r=n.mentionedUserIds)&&void 0!==r?r:null===(i=n.mentionedUsers)||void 0===i?void 0:i.map((function(e){return e.userId})),pushNotificationDeliveryOption:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.yb.DEFAULT,parentMessageId:null,isReplyToChannel:!1,thumbnailSizes:null===(a=n.thumbnails)||void 0===a?void 0:a.map((function(e){return{maxWidth:e.width,maxHeight:e.height}})),requireAuth:n.requireAuth,isPinnedMessage:!1})),e._sendFileMessage(c).onSucceeded((function(e){return o.resolve(e)})).onFailed((function(e){return o.reject(e)})),[2,o.promise]}))}))},s.prototype.copyMessage=function(e,t){Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(e instanceof s&&t instanceof ht&&t.sendingStatus===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tb.SUCCEEDED&&this.url===t.channelUrl&&!t.scheduledInfo).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters);var n=t,r=e;if(n.isUserMessage()){Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(!n.poll).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.notSupportedError);var i=$t(n);return r._sendUserMessage(i)}if(n.isFileMessage())return i=un(n),r._sendFileMessage(i);if(t.isMultipleFilesMessage())throw _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.channelTypeNotSupportedError},s.prototype.deleteMessage=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(i){switch(i.label){case 0:return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(e instanceof dt).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),e.messageId>0?(t=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,r=new vr({channelType:this.channelType,channelUrl:this.url,messageId:e.messageId}),[4,t.send(r)]):[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}}))}))},s.prototype.addReaction=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var r,i;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(a){switch(a.label){case 0:return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(e instanceof dt&&e.messageId>0&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",t)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),r=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,i=new _r({channelType:this.channelType,channelUrl:this.url,messageId:e.messageId,reactionKey:t}),[4,r.send(i)];case 1:return[2,a.sent().as(gr).reactionEvent]}}))}))},s.prototype.deleteReaction=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var r,i;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(a){switch(a.label){case 0:return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(e instanceof dt&&e.messageId>0&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",t)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),r=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,i=new br({channelType:this.channelType,channelUrl:this.url,messageId:e.messageId,reactionKey:t}),[4,r.send(i)];case 1:return[2,a.sent().as(Ir).reactionEvent]}}))}))},s.prototype._updateUserMessageMetaArray=function(e,t,r,i){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var s,a,o,u,c,l;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(d){switch(d.label){case 0:return s=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),a=s.dispatcher,o=s.requestQueue,u=new hr({channelType:this.channelType,channelUrl:this.url,messageId:e,metaArrayParams:{array:t,mode:r,upsert:i}}),[4,o.send(u)];case 1:return c=d.sent(),l=c.as(fr).message,a.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rb({messages:[l],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_UPDATED})),[2,l]}}))}))},s.prototype._updateFileMessageMetaArray=function(e,t,r,i){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var s,a,o,u,c,l;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(d){switch(d.label){case 0:return s=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),a=s.dispatcher,o=s.requestQueue,u=new pr({channelType:this.channelType,channelUrl:this.url,messageId:e,metaArrayParams:{array:t,mode:r,upsert:i}}),[4,o.send(u)];case 1:return c=d.sent(),l=c.as(mr).message,a.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rb({messages:[l],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_UPDATED})),[2,l]}}))}))},s.prototype.createMessageMetaArrayKeys=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(r){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(e instanceof dt&&e.messageId>0&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",t)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),n=t.map((function(e){return new Ke({key:e})})),e instanceof Tt?[2,this._updateFileMessageMetaArray(e.messageId,n,"add",!0)]:[2,this._updateUserMessageMetaArray(e.messageId,n,"add",!0)]}))}))},s.prototype.deleteMessageMetaArrayKeys=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(r){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(e instanceof dt&&e.messageId>0&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",t)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),n=t.map((function(e){return new Ke({key:e})})),e instanceof Tt?[2,this._updateFileMessageMetaArray(e.messageId,n,"remove",!0)]:[2,this._updateUserMessageMetaArray(e.messageId,n,"remove",!0)]}))}))},s.prototype.addMessageMetaArrayValues=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(e instanceof dt&&e.messageId>0&&t.every((function(e){return e instanceof Ke}))).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),e instanceof Tt?[2,this._updateFileMessageMetaArray(e.messageId,t,"add",!0)]:[2,this._updateUserMessageMetaArray(e.messageId,t,"add",!0)]}))}))},s.prototype.removeMessageMetaArrayValues=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(e instanceof dt&&e.messageId>0&&t.every((function(e){return e instanceof Ke}))).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),e instanceof Tt?[2,this._updateFileMessageMetaArray(e.messageId,t,"remove",!0)]:[2,this._updateUserMessageMetaArray(e.messageId,t,"remove",!0)]}))}))},s.prototype.report=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var r,i,s,a;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(o){switch(o.label){case 0:return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(cn,e)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",t)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),r=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),i=r.sdkState,s=r.requestQueue,a=new or({channelUrl:this.url,channelType:this.channelType,userId:i.userId,category:e,description:t}),[4,s.send(a)];case 1:return o.sent(),[2]}}))}))},s.prototype.reportUser=function(e,t,r){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var i,s,a,o;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(u){switch(u.label){case 0:return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(e instanceof _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(cn,t)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",r)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),i=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),s=i.sdkState,a=i.requestQueue,o=new ur({channelUrl:this.url,channelType:this.channelType,userId:s.userId,offendingUserId:e.userId,category:t,description:r}),[4,a.send(o)];case 1:return u.sent(),[2]}}))}))},s.prototype.reportMessage=function(e,t,r){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var i,s,a,o;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(u){switch(u.label){case 0:return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(e instanceof ht&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(cn,t)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",r)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),i=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),s=i.sdkState,a=i.requestQueue,o=new cr({channelUrl:this.url,channelType:this.channelType,userId:s.userId,offendingUserId:e.sender.userId,messageId:e.messageId,category:t,description:r}),[4,a.send(o)];case 1:return u.sent(),[2]}}))}))},s.prototype.updatePoll=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var r,i;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(a){switch(a.label){case 0:return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e)&&function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.title,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.K)(e.data)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.allowUserSuggestion,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.allowMultipleVotes,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e.closeAt,!0)}(t)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),r=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,i=new Ar(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({pollId:e},t)),[4,r.send(i)];case 1:return[2,a.sent().as(Nr).poll]}}))}))},s.prototype.deletePoll=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,r,i;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(s){switch(s.label){case 0:return t=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(t).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),r=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,i=new Cr({pollId:e}),[4,r.send(i)];case 1:return s.sent(),[2]}}))}))},s.prototype.closePoll=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,r,i;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(a){switch(a.label){case 0:return t=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(t).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),r=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,i=new kr({pollId:e}),[4,r.send(i)];case 1:return[2,a.sent().as(Pr).poll]}}))}))},s.prototype.addPollOption=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var r,i,s;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(o){switch(o.label){case 0:return r=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",t)&&""!==t.trim(),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(r).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),i=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,s=new Or({channelUrl:this.url,channelType:this.channelType,pollId:e,optionText:t}),[4,i.send(s)];case 1:return[2,o.sent().as(Rr).poll]}}))}))},s.prototype.updatePollOption=function(e,t,r){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var i,s,a;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(u){switch(u.label){case 0:return i=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",t)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",r)&&""!==r.trim(),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(i).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),s=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,a=new xr({pollId:e,pollOptionId:t,optionText:r}),[4,s.send(a)];case 1:return[2,u.sent().as(Dr).poll]}}))}))},s.prototype.deletePollOption=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var r,i,s;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(a){switch(a.label){case 0:return r=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",t),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(r).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),i=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,s=new Lr({pollId:e,pollOptionId:t}),[4,i.send(s)];case 1:return a.sent(),[2]}}))}))},s.prototype.votePoll=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var r,i,s,a,o,u,c;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(l){switch(l.label){case 0:return r=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("number",t),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(r).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),i=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),s=i.requestQueue,a=i.dispatcher,o=new Fr({reqId:this._generateRequestId(),channelUrl:this.url,channelType:this.channelType,pollId:e,pollOptionIds:t}),[4,s.send(o)];case 1:return u=l.sent(),c=u.as(qr).event,a.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.P({event:c,source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_POLL_VOTED})),[2,c]}}))}))},s.prototype.getPollChangeLogsSinceTimestamp=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),[4,_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Q.of(this._iid).getPollChangeLogs(this.url,this.channelType,e)];case 1:return[2,t.sent()]}}))}))},s.prototype.getPollChangeLogsSinceToken=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e,!0)),[4,_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Q.of(this._iid).getPollChangeLogs(this.url,this.channelType,e)];case 1:return[2,t.sent()]}}))}))},s.prototype.createPollListQuery=function(e){return void 0===e&&(e=10),new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.vc(this._iid,{channelUrl:this.url,channelType:this.channelType,limit:e})},s.prototype.createPollVoterListQuery=function(e,t,n){return void 0===n&&(n=20),new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.wc(this._iid,{channelUrl:this.url,channelType:this.channelType,pollId:e,pollOptionId:t,limit:n})},s}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.jb),ui=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return Object.keys(t).forEach((function(e){n.hasOwnProperty(e)&&(n[e]=t[e])})),n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}((function(){this.onConnected=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this.onReconnectStarted=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this.onReconnectSucceeded=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this.onReconnectFailed=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this.onDisconnected=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb})),ci=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return Object.keys(t).forEach((function(e){n.hasOwnProperty(e)&&(n[e]=t[e])})),n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}((function(){this.onSessionExpired=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this.onSessionTokenRequired=function(e){return e(null)},this.onSessionError=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this.onSessionRefreshed=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this.onSessionClosed=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb})),li=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return Object.keys(t).forEach((function(e){n.hasOwnProperty(e)&&(n[e]=t[e])})),n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}((function(){this.onFriendsDiscovered=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this.onTotalUnreadMessageCountChanged=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this.onTotalUnreadMessageCountUpdated=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb})),di=function(t){function n(n){var r=n.limit,s=n.token,a=n.userIdsFilter,o=n.metaDataKeyFilter,u=n.metaDataValuesFilter,c=n.nicknameStartsWithFilter,l=t.call(this)||this;return l.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,l.path=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.cc,l.params=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)({limit:r,token:s,user_ids:a,metadatakey:o,metadatavalues_in:u,nickname_startswith:c}),l}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),hi=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.users=n.users.map((function(e){return new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v(t,e)})),r.next=n.next,r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),fi=function(e){function i(t,n){var r,i,s,a=this;return(a=e.call(this,t,n)||this).userIdsFilter=null,a.metaDataKeyFilter=null,a.metaDataValuesFilter=null,a.nicknameStartsWithFilter=null,a.userIdsFilter=null!==(r=n.userIdsFilter)&&void 0!==r?r:null,a.metaDataKeyFilter=null!==(i=n.metaDataKeyFilter)&&void 0!==i?i:null,a.metaDataValuesFilter=null!==(s=n.metaDataValuesFilter)&&void 0!==s?s:null,a.nicknameStartsWithFilter=n.nicknameStartsWithFilter||null,a}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(i,e),i.prototype._validate=function(){return e.prototype._validate.call(this)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",this.userIdsFilter,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",this.metaDataKeyFilter,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",this.metaDataValuesFilter,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",this.nicknameStartsWithFilter,!0)},i.prototype.next=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,r,i,s,a,o;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(c){switch(c.label){case 0:return this._validate()?this._isLoading?[3,3]:this._hasNext?(this._isLoading=!0,e=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,r=new di(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},this),{token:this._token}))),[4,e.send(r)]):[3,2]:[3,5];case 1:return i=c.sent(),s=i.as(hi),a=s.users,o=s.next,this._token=o,this._hasNext=!!o,this._isLoading=!1,[2,a];case 2:return[2,[]];case 3:throw _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.queryInProgress;case 4:return[3,6];case 5:throw _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters;case 6:return[2]}}))}))},i}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.R),pi=function(t){function n(n){var r=n.userId,s=n.limit,a=n.token,o=n.userIdsFilter,u=t.call(this)||this;return u.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,u.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.cc,"/").concat(r,"/block"),u.params=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)({limit:s,token:a,user_ids:o}),u}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),mi=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.users=n.users.map((function(e){return new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v(t,e)})),r.next=n.next,r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),vi=function(e){function i(t,n){var r,i=this;return(i=e.call(this,t,n)||this).userIdsFilter=null,i.userIdsFilter=null!==(r=n.userIdsFilter)&&void 0!==r?r:null,i}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(i,e),i.prototype._validate=function(){return e.prototype._validate.call(this)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",this.userIdsFilter,!0)},i.prototype.next=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,r,i,s,a,o,c,l;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(d){switch(d.label){case 0:return this._validate()?this._isLoading?[3,3]:this._hasNext?(this._isLoading=!0,e=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),r=e.sdkState,i=e.requestQueue,s=new pi(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},this),{userId:r.userId,token:this._token}))),[4,i.send(s)]):[3,2]:[3,5];case 1:return a=d.sent(),o=a.as(mi),c=o.users,l=o.next,this._token=l,this._hasNext=!!l,this._isLoading=!1,[2,c];case 2:return[2,[]];case 3:throw _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.queryInProgress;case 4:return[3,6];case 5:throw _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters;case 6:return[2]}}))}))},i}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.R),yi=function(e){function t(t){var n=t.userId,r=t.limit,s=t.token,a=e.call(this)||this;return a.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,a.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.cc,"/").concat(encodeURIComponent(n),"/friends"),a.params={limit:r,token:s},a}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),_i=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.hasMore=n.has_more,r.users=n.users.map((function(e){return new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v(t,e)})),r.next=n.next,r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),gi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t.prototype._validate=function(){return e.prototype._validate.call(this)},t.prototype.next=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t,r,i,s,a,o,c,l;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(d){switch(d.label){case 0:return this._validate()?this._isLoading?[3,3]:this._hasNext?(this._isLoading=!0,e=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),t=e.sdkState,r=e.requestQueue,i=new yi(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},this),{userId:t.userId,token:this._token})),[4,r.send(i)]):[3,2]:[3,5];case 1:return s=d.sent(),a=s.as(_i),o=a.users,c=a.hasMore,l=a.next,this._token=l,this._hasNext=c,this._isLoading=!1,[2,o];case 2:return[2,[]];case 3:throw _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.queryInProgress;case 4:return[3,6];case 5:throw _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters;case 6:return[2]}}))}))},t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.R),bi={},Ii=function(){function e(e){var t=e.dbname,n=e.itemSizeLimit,r=void 0===n?1048576:n,i=e.cacheLimit,s=void 0===i?256:i,a=e.blockHashBase,o=void 0===a?2:a,u=e.blockHashMultiplier,c=void 0===u?10:u,l=e.blockHashConstant,d=void 0===l?11:l,h=e.transactionApplyDelay,f=void 0===h?200:h,p=e.disableLogger,m=void 0!==p&&p;return bi[t]||(this.itemSizeLimit=r,this.cacheLimit=s,this.blockHashBase=o,this.blockHashMultiplier=c,this.blockHashConstant=d,this.transactionApplyDelay=f,this.disableLogger=m,bi[t]=this),bi[t]}return e.get=function(e){return bi[e]},e}();!function(e){e[e.UNKNOWN_ERROR=6e7]="UNKNOWN_ERROR",e[e.STORE_NOT_DEFINED=61001e3]="STORE_NOT_DEFINED",e[e.STORE_NOT_AVAILABLE=61001001]="STORE_NOT_AVAILABLE",e[e.STORE_NOT_AVAILABLE_IN_PRIVATE_BROWSING=61001002]="STORE_NOT_AVAILABLE_IN_PRIVATE_BROWSING",e[e.STORE_IS_FULL=61001003]="STORE_IS_FULL",e[e.STORE_NOT_INITIALIZED=61001004]="STORE_NOT_INITIALIZED",e[e.STORE_INVALID_KEY_TYPE=61002e3]="STORE_INVALID_KEY_TYPE",e[e.STORE_BROKEN_INTEGRITY=61002001]="STORE_BROKEN_INTEGRITY",e[e.STORE_BROKEN_BLOB=61002002]="STORE_BROKEN_BLOB",e[e.STORE_ENCRYPTION_INVALID=61002003]="STORE_ENCRYPTION_INVALID",e[e.STORE_ITEM_SIZE_LIMIT_EXCEEDED=61017e3]="STORE_ITEM_SIZE_LIMIT_EXCEEDED",e[e.STORE_READ_FAILED=61017001]="STORE_READ_FAILED",e[e.STORE_WRITE_FAILED=61017002]="STORE_WRITE_FAILED",e[e.DATABASE_SCHEMA_NOT_ON_UPGRADE=62002e3]="DATABASE_SCHEMA_NOT_ON_UPGRADE",e[e.COLLECTION_NOT_READY=63001e3]="COLLECTION_NOT_READY",e[e.COLLECTION_KEY_NOT_MATCH=63002e3]="COLLECTION_KEY_NOT_MATCH",e[e.COLLECTION_QUERY_NOT_VALID=63002001]="COLLECTION_QUERY_NOT_VALID",e[e.COLLECTION_KEY_NOT_FOUND=63004e3]="COLLECTION_KEY_NOT_FOUND",e[e.COLLECTION_KEY_NOT_GIVEN=63004001]="COLLECTION_KEY_NOT_GIVEN",e[e.COLLECTION_INSERT_DUPLICATE=63009e3]="COLLECTION_INSERT_DUPLICATE",e[e.COLLECTION_WRITE_FAILED=63017e3]="COLLECTION_WRITE_FAILED",e[e.COLLECTION_ITEM_SIZE_LIMIT_EXCEEDED=63017001]="COLLECTION_ITEM_SIZE_LIMIT_EXCEEDED",e[e.INDEX_TABLE_IS_REQUIRED=65001e3]="INDEX_TABLE_IS_REQUIRED",e[e.INDEX_TYPE_NOT_MATCH=65002e3]="INDEX_TYPE_NOT_MATCH",e[e.COMPARE_TYPE_NOT_MATCH=69002001]="COMPARE_TYPE_NOT_MATCH",e[e.CIRCULAR_REFERENCE_FOUND=69002002]="CIRCULAR_REFERENCE_FOUND"}(ai||(ai={}));var Ei,Ti=function(e){function t(n){var r=n.code,i=void 0===r?ai.UNKNOWN_ERROR:r,s=n.message,a=void 0===s?"Unknown error occurred.":s,o=e.call(this,a)||this;return o.code=i,Object.setPrototypeOf(o,t.prototype),o}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),Object.defineProperty(t,"storeNotDefined",{get:function(){return new t({code:ai.STORE_NOT_DEFINED,message:"Store is not defined. Specify the store on NestDB()"})},enumerable:!1,configurable:!0}),Object.defineProperty(t,"storeNotAvailable",{get:function(){return new t({code:ai.STORE_NOT_AVAILABLE,message:"Store is not available. Check your environment settings."})},enumerable:!1,configurable:!0}),Object.defineProperty(t,"storeNotAvailableInPrivateBrowsing",{get:function(){return new t({code:ai.STORE_NOT_AVAILABLE_IN_PRIVATE_BROWSING,message:"Store is not available because it is in private browsing."})},enumerable:!1,configurable:!0}),Object.defineProperty(t,"storeIsFull",{get:function(){return new t({code:ai.STORE_IS_FULL,message:"Store is full."})},enumerable:!1,configurable:!0}),Object.defineProperty(t,"storeNotInitialized",{get:function(){return new t({code:ai.STORE_NOT_INITIALIZED,message:"Store is not initialized."})},enumerable:!1,configurable:!0}),Object.defineProperty(t,"storeKeyTypeIsInvalid",{get:function(){return new t({code:ai.STORE_INVALID_KEY_TYPE,message:"Store key should be string type."})},enumerable:!1,configurable:!0}),Object.defineProperty(t,"storeBrokenIntegrity",{get:function(){return new t({code:ai.STORE_BROKEN_INTEGRITY,message:"Data should be in a store but it does not. Integrity is broken."})},enumerable:!1,configurable:!0}),Object.defineProperty(t,"storeBrokenBlob",{get:function(){return new t({code:ai.STORE_BROKEN_BLOB,message:"Data should be in a store but it does not. Blob data is broken."})},enumerable:!1,configurable:!0}),Object.defineProperty(t,"storeEncryptionInvalid",{get:function(){return new t({code:ai.STORE_ENCRYPTION_INVALID,message:"Encryption algorithm has changed. All the store should reset."})},enumerable:!1,configurable:!0}),Object.defineProperty(t,"storeItemSizeExceeded",{get:function(){return new t({code:ai.STORE_ITEM_SIZE_LIMIT_EXCEEDED,message:"The size of the item exceeds the limit that the store allows."})},enumerable:!1,configurable:!0}),Object.defineProperty(t,"storeReadFailed",{get:function(){return new t({code:ai.STORE_READ_FAILED,message:"Failed to read from store."})},enumerable:!1,configurable:!0}),Object.defineProperty(t,"storeWriteFailed",{get:function(){return new t({code:ai.STORE_WRITE_FAILED,message:"Failed to write to store."})},enumerable:!1,configurable:!0}),Object.defineProperty(t,"databaseSchemaNotOnUpgrade",{get:function(){return new t({code:ai.DATABASE_SCHEMA_NOT_ON_UPGRADE,message:"Committing schema is not allowed when upgrade is not running."})},enumerable:!1,configurable:!0}),Object.defineProperty(t,"collectionNotReady",{get:function(){return new t({code:ai.COLLECTION_NOT_READY,message:"Collection is not ready due to an error during initialization."})},enumerable:!1,configurable:!0}),Object.defineProperty(t,"collectionKeyNotMatch",{get:function(){return new t({code:ai.COLLECTION_KEY_NOT_MATCH,message:"keyName of collection could not change."})},enumerable:!1,configurable:!0}),Object.defineProperty(t,"collectionQueryNotValid",{get:function(){return new t({code:ai.COLLECTION_QUERY_NOT_VALID,message:"Query parameter is not a valid format."})},enumerable:!1,configurable:!0}),Object.defineProperty(t,"collectionInsertDuplicate",{get:function(){return new t({code:ai.COLLECTION_INSERT_DUPLICATE,message:"The key already exists."})},enumerable:!1,configurable:!0}),Object.defineProperty(t,"collectionKeyNotFound",{get:function(){return new t({code:ai.COLLECTION_KEY_NOT_FOUND,message:"The key is not found."})},enumerable:!1,configurable:!0}),Object.defineProperty(t,"collectionKeyNotGiven",{get:function(){return new t({code:ai.COLLECTION_KEY_NOT_GIVEN,message:"The item should contain [keyName] property."})},enumerable:!1,configurable:!0}),Object.defineProperty(t,"collectionWriteFailed",{get:function(){return new t({code:ai.COLLECTION_WRITE_FAILED,message:"Failed to write an item."})},enumerable:!1,configurable:!0}),Object.defineProperty(t,"collectionItemSizeExceeded",{get:function(){return new t({code:ai.COLLECTION_ITEM_SIZE_LIMIT_EXCEEDED,message:"The size of the item exceeds the limit that a collection allows."})},enumerable:!1,configurable:!0}),Object.defineProperty(t,"indexTableIsRequired",{get:function(){return new t({code:ai.INDEX_TABLE_IS_REQUIRED,message:"Index table is required."})},enumerable:!1,configurable:!0}),Object.defineProperty(t,"indexTypesNotMatch",{get:function(){return new t({code:ai.INDEX_TYPE_NOT_MATCH,message:"Indexed column should have primitive type."})},enumerable:!1,configurable:!0}),Object.defineProperty(t,"compareTypesNotMatch",{get:function(){return new t({code:ai.COMPARE_TYPE_NOT_MATCH,message:"Values to compare have different types."})},enumerable:!1,configurable:!0}),Object.defineProperty(t,"circularReferenceFound",{get:function(){return new t({code:ai.CIRCULAR_REFERENCE_FOUND,message:"Cannot handle circular referenced object."})},enumerable:!1,configurable:!0}),t}(Error);!function(e){e.INIT="init",e.READY="ready",e.CLOSED="closed"}(Ei||(Ei={}));var wi,Si=function(e,t){if(void 0===t&&(t=new WeakMap),"object"==typeof e&&null!==e){if(t.has(e))throw Ti.circularReferenceFound;t.set(e,!0);var n=void 0;if(Array.isArray(e))n=e.map((function(e){return Si(e,t)}));else if(e instanceof RegExp)n=e;else if(e instanceof Date)n=e;else for(var r in n={},e)n[r]=Si(e[r],t);return t.delete(e),n}return e},Mi=function(e,t){if(null==t)return 1;if(null==e)return-1;if(typeof e!=typeof t)throw Ti.compareTypesNotMatch;var n=0;switch(typeof e){case"boolean":case"number":n=e-t;break;case"string":n=e.localeCompare(t)}return n},Ui=function(e,t){for(var n=0,r=0;r>>0)%t},Ai=function(e){return new Promise((function(t){setTimeout((function(){return t()}),e)}))},Ni=function(e,t){if(!t)return!1;if("function"!=typeof e){for(var n in e)if(["/and","&&"].includes(n)){if(e[n].some((function(e){return!Ni(e,t)})))return!1}else if(["/or","||"].includes(n)){if(e[n].every((function(e){return!Ni(e,t)})))return!1}else if("/where"===n){if(!(0,e[n])(t))return!1}else{var r=n;if("object"==typeof e[r]){var i=e[r];for(var s in i)switch(s){case"/eq":case"=":if((a=t[r])!==(o=i[s]))return!1;break;case"/neq":case"!=":if((a=t[r])===(o=i[s]))return!1;break;case"/gt":case">":var a=t[r],o=i[s];if(!(Mi(a,o)>0))return!1;break;case"/gte":case">=":if(a=t[r],o=i[s],!(Mi(a,o)>=0))return!1;break;case"/lt":case"<":if(a=t[r],o=i[s],!(Mi(a,o)<0))return!1;break;case"/lte":case"<=":if(a=t[r],o=i[s],!(Mi(a,o)<=0))return!1;break;case"/in":if(a=t[r],!(o=i[s]).includes(a))return!1;break;case"/nin":if(a=t[r],(o=i[s]).includes(a))return!1;break;case"/contain":if(a=t[r],o=i[s],!a.includes(o))return!1;break;case"/regex":if(a=t[r],!(o=i[s]).test(a))return!1;break;case"/where":if(a=t[r],!(0,i[s])(a))return!1}}else if("function"==typeof e[r]){if(!e[r](t[r]))return!1}else if(e[r]!==t[r])return!1}return!0}return e(t)},Ci=function(){},ki=function(){return Promise.resolve()},Pi=function(e){return e},Oi=function(e,t){t()};!function(e){e[e.FORWARD=0]="FORWARD",e[e.BACKWARD=1]="BACKWARD"}(wi||(wi={}));var Ri,xi,Di,Li=function(){function e(e){var t=e.initialPrevValue,n=void 0===t?null:t,r=e.initialNextValue,i=void 0===r?null:r,s=e.iterator,a=e.map,o=void 0===a?Pi:a,u=e.backward,c=void 0===u?ki:u,l=e.forward,d=void 0===l?ki:l,h=e.complete,f=void 0===h?Ci:h;this._prevValue=n,this._nextValue=i,this._error=null,this._map=o,this._backward=c,this._forward=d,this._iterator=s,this._complete=f}return Object.defineProperty(e.prototype,"prevValue",{get:function(){return this._map(this._prevValue)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextValue",{get:function(){return this._map(this._nextValue)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"error",{get:function(){return this._error},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasPrevious",{get:function(){return!!this._prevValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasNext",{get:function(){return!!this._nextValue},enumerable:!1,configurable:!0}),e.prototype.prev=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t,n;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(r){switch(r.label){case 0:if(!this.hasPrevious)return[3,6];r.label=1;case 1:return r.trys.push([1,3,,4]),e=this._prevValue,t=this,[4,this._backward()];case 2:return t._prevValue=r.sent()||null,this._nextValue=e,[3,4];case 3:return n=r.sent(),this._error=n,[3,4];case 4:return[4,this._iterator(this)];case 5:return[2,r.sent()];case 6:this._complete(),r.label=7;case 7:return[2]}}))}))},e.prototype.next=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t,n;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(r){switch(r.label){case 0:if(!this.hasNext)return[3,6];r.label=1;case 1:return r.trys.push([1,3,,4]),e=this._nextValue,t=this,[4,this._forward()];case 2:return t._nextValue=r.sent()||null,this._prevValue=e,[3,4];case 3:return n=r.sent(),this._error=n,[3,4];case 4:return[4,this._iterator(this)];case 5:return[2,r.sent()];case 6:this._complete(),r.label=7;case 7:return[2]}}))}))},e.prototype.stop=function(){this._prevValue=null,this._nextValue=null,this._complete()},e}(),Fi=function(){function e(e){var t=e.condition,n=void 0===t?{}:t,r=e.backward,i=void 0!==r&&r,s=e.blockManager,a=e.indexer;this.condition=n,this.backward=i,this._blockManager=s,this._indexer=a}return e.prototype.findOptimizedStartPosition=function(){var e=this,t=["=","/eq",">",">=","/gt","/gte"],n=["=","/eq","<","<=","/lt","/lte"];if(this.backward){var r=this._indexer.origin.length-1;if("function"!=typeof this.condition)for(var i in this._indexer.fields){var s=this._indexer.fields[i],a=1;if("-"===s[0]&&(s=s.slice(1),a=-1),this.condition[s])if("object"==typeof this.condition[s]){var o=a>0?n:t;for(var u in this.condition[s])if(o.includes(u))for(var c=r;c>=0;c--)if(a*Mi(this._indexer.origin[c].columnValues[i],this.condition[s][u])<=0){r=c;break}}else for(c=r;c>=0;c--)if(a*Mi(this._indexer.origin[c].columnValues[i],this.condition[s])<=0){r=c;break}}return Math.min(r+1,this._indexer.origin.length-1)}var l=0;if("function"!=typeof this.condition){var d=function(r){var i=h._indexer.fields[r],s=1;if("-"===i[0]&&(i=i.slice(1),s=-1),h.condition[i])if("object"==typeof h.condition[i])Object.keys(h.condition[i]).forEach((function(a){if((s>0?t:n).includes(a))for(var o=l;o=0){l=o;break}}));else for(var a=l;a=0){l=a;break}},h=this;for(i=0;i-1){var r=this._items[n];return t===Di.PERSISTENT&&(r.state=xi.PERSISTENT),t!==Di.NO_CACHE&&this.put(r),r}return null},e.prototype.put=function(e){var t,n;if(this._limit>0){var r=this._items.map((function(e){return e.key})).indexOf(e.key);if(r>-1)Wi.includes(this._items[r].state)&&Wi.includes(e.state)?(this._items.splice(r,1),this._items.push(e)):(this._items[r].state=e.state,this._items[r].value=e.value);else{this._items.push(e);var i=this._items.filter((function(e){return e.state===xi.VOLATILE})),s=i.length-this._limit;if(s>0){var a=[];try{for(var o=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._items),u=o.next();!u.done;u=o.next()){var c=u.value;c.state===xi.VOLATILE&&s>0?s--:a.push(c)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}this._items=a}}}},e.prototype.remove=function(e){var t=this._items.map((function(e){return e.key})).indexOf(e);t>-1&&this._items.splice(t,1)},e.prototype.clearByCondition=function(e){this._items=this._items.filter((function(t){return!e(t)}))},e.prototype.clear=function(e){void 0===e&&(e=!1),this._items=e?[]:this._items.filter((function(e){return e.state!==xi.VOLATILE}))},e}(),Xi=function(){function e(e){var t=e.dbname,n=e.collectionName,r=e.store;this._requests=[],this._onCommit=new Map,this._onWrite=new Map,this._onError=new Map,this.dbname=t,this.collectionName=n,this.metadataKey=function(e,t){return"".concat(Bi(e,t),"/trans.metadata")}(t,n),this.recordsetKey=function(e,t){return"".concat(Bi(e,t),"/trans.recordset")}(t,n),this._store=r}return Object.defineProperty(e.prototype,"generation",{get:function(){return this._metadata?this._metadata.generation:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"requestCount",{get:function(){return this._requests.length},enumerable:!1,configurable:!0}),e.prototype._getReducedRecordset=function(e){return void 0===e&&(e=[]),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return[4,this._store.get(this.recordsetKey)];case 1:return(t=n.sent()||[]).push.apply(t,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(e),!1)),[2,this._reduceRecordSet(t)]}}))}))},e.prototype._reduceRecordSet=function(e){for(var t=[],n={},r=e.length-1;r>=0;r--){for(var i=e[r],s=[],a=i.requests.length-1;a>=0;a--){var o=i.requests[a],u=o.data;n[u.key]||(s.unshift(o),n[u.key]=!0)}s.length>0&&(i.requests=s,t.unshift(i))}return t},e.prototype._applyRecord=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n,r,i,s,a,o,c,l,d;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(h){switch(h.label){case 0:n=Ji.get(this.dbname),r=t.generation,i=t.requests,s=null,h.label=1;case 1:return h.trys.push([1,3,,4]),[4,this._store.setMany(i.map((function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},e.data),{generation:r})})))];case 2:for(a=h.sent(),o=0;o0))return[3,4];for(t=[],n={},o=e.length-1;o>=0;o--)r=e[o],l=r.data,n[l.key]||(n[l.key]=!0,t.unshift(r));return i={generation:this.generation,requests:t},[4,this._getReducedRecordset([i])];case 1:return s=p.sent(),[4,this._store.set({key:this.recordsetKey,value:s})];case 2:return p.sent(),this._metadata.generation++,[4,this._store.set({key:this.metadataKey,value:this._metadata})];case 3:for(p.sent(),a=Ji.get(this.dbname),o=0;o0?(r=this.createBlockId(e,n),[4,t.find(this._store,r)]):[3,4];case 2:if((i=a.sent())&&(null==(s=Zi.createFromCacheItem(i))?void 0:s.getItemByKey(e)))return[2,s];a.label=3;case 3:return n--,[3,1];case 4:return[2,null]}}))}))},e.prototype.getFromBlock=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return[4,this._findBlock(e)];case 1:return[2,(t=n.sent())?t.getItemByKey(e):null]}}))}))},e.prototype.putToBlock=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n,r,i,s,a;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(o){switch(o.label){case 0:return n=Ii.get(this.dbname),r=this.createBlockId(e),i=Math.floor(this._store.itemSizeLimit/n.itemSizeLimit),[4,Ji.get(this.dbname).find(this._store,r)];case 1:return s=o.sent(),(null==(a=s?Zi.createFromCacheItem(s):new Zi({blockId:r,keyName:this.keyName,items:[],limit:i}))?void 0:a.add(t))?(this._transaction.requestWrite({key:a.blockId,value:a.serialize()}),[2,!0]):[2,!1]}}))}))},e.prototype.removeFromBlock=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return[4,this._findBlock(e)];case 1:return(t=n.sent())&&t.remove(e)?(this._transaction.requestWrite({key:t.blockId,value:t.serialize()}),[2,!0]):[2,!1]}}))}))},e.prototype.clearAllBlocks=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t,n;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(r){switch(r.label){case 0:return e=ji(this.dbname,this.collectionName),[4,this._store.getAllKeys()];case 1:return t=r.sent(),n=t.filter((function(t){return t.startsWith(e)})),[4,this._store.removeMany(n)];case 2:return r.sent(),[4,this._transaction.clear()];case 3:return r.sent(),Ji.get(this.dbname).clearByCondition((function(t){return t.key.startsWith(e)})),[2]}}))}))},e}(),es={},ts=function(){function e(e){var t=e.dbname,n=e.collectionName,r=e.keyName,i=e.fields,s=e.transaction,a=e.store,o=this;this._origin=[],this._table=[];var u=function(e,t,n){return"".concat(Bi(e,t),"/index.").concat(n)}(t,n,i.join(">"));return es[u]||(this.dbname=t,this.collectionName=n,this.keyName=r,this.fields=i,this.indexerKey=u,this._transaction=s,this._store=a,this._transaction.on(Ri.COMMIT,this.indexerKey,(function(){return o.commit()})),this._transaction.on(Ri.ERROR,this.indexerKey,(function(){return o.abort()}))),es[u]}return e.createKey=function(e){return e.join(">")},e.parseKey=function(e){return e.split(">")},e.clearIndexerMap=function(){for(var e in es)delete es[e]},e.prototype._addItem=function(e){var t=e[this.keyName],n=this.getColumnValues(e),r=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(this.indexOf(n),2),i=r[0];return r[1]?!this._table[i].keys.includes(t)&&(this._table[i].keys.push(t),!0):(this._table.splice(i,0,{columnValues:n,keys:[t]}),!0)},e.prototype._removeItem=function(e){var t=e[this.keyName],n=this.getColumnValues(e),r=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(this.indexOf(n),2),i=r[0];if(r[1]){var s=this._table[i].keys.indexOf(t);if(s>-1)return this._table[i].keys.splice(s,1),0===this._table[i].keys.length&&this._table.splice(i,1),!0}return!1},Object.defineProperty(e.prototype,"origin",{get:function(){return this._origin},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"table",{get:function(){return this._table},enumerable:!1,configurable:!0}),e.prototype.getColumnValues=function(e){var t,n,r,i,s=[];try{for(var a=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this.fields),o=a.next();!o.done;o=a.next()){var u=o.value;if("-"===u[0]&&(u=u.slice(1)),r=e[u],void 0,i=typeof r,null!==r&&"undefined"!==i&&"boolean"!==i&&"number"!==i&&"string"!==i)throw Ti.indexTypesNotMatch;s.push(e[u])}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return s},e.prototype.diff=function(e,t){for(var n in this.fields){var r="-"===this.fields[n][0]?-1:1,i=Mi(e[n],t[n]);if(0!==i)return r*i}return 0},e.prototype.indexOf=function(e){if(this._table.length>0){for(var t=0,n=this._table.length-1;t<=n;){var r=Math.floor((t+n)/2),i=this.diff(e,this._table[r].columnValues);if(i>0)t=r+1;else{if(!(i<0))return[r,!0];n=r-1}}return[t,!1]}return[0,!1]},e.prototype.ensure=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t,n,r,i,s,a,o,u,c,l,d,h,f,p,m,y;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(_){switch(_.label){case 0:return[4,(e=Ji.get(this.dbname)).find(this._store,this.indexerKey,Di.PERSISTENT)];case 1:return(t=_.sent())?[3,11]:(n=ji(this.dbname,this.collectionName),[4,this._store.getAllKeys()]);case 2:r=_.sent(),_.label=3;case 3:_.trys.push([3,8,9,10]),i=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(r),s=i.next(),_.label=4;case 4:return s.done?[3,7]:(a=s.value).startsWith(n)?[4,e.find(this._store,a,Di.NO_CACHE)]:[3,6];case 5:if(o=_.sent(),u=Zi.createFromCacheItem(o))try{for(m=void 0,c=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(u.items),l=c.next();!l.done;l=c.next())d=l.value,this._addItem(d)}catch(e){m={error:e}}finally{try{l&&!l.done&&(y=c.return)&&y.call(c)}finally{if(m)throw m.error}}_.label=6;case 6:return s=i.next(),[3,4];case 7:return[3,10];case 8:return h=_.sent(),f={error:h},[3,10];case 9:try{s&&!s.done&&(p=i.return)&&p.call(i)}finally{if(f)throw f.error}return[7];case 10:return this._transaction.requestWrite({key:this.indexerKey,value:this._table},{persistent:!0}),[3,12];case 11:this._origin=t.value,this._table=Si(this._origin),_.label=12;case 12:return es[this.indexerKey]=this,[2]}}))}))},e.prototype.drop=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return Ji.get(this.dbname).remove(this.indexerKey),[4,this._store.remove(this.indexerKey)];case 1:return e.sent(),delete es[this.indexerKey],[2]}}))}))},e.prototype.addItem=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){return this._addItem(e)&&this._transaction.requestWrite({key:this.indexerKey,value:this._table},{persistent:!0}),[2]}))}))},e.prototype.removeItem=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){return this._removeItem(e)&&this._transaction.requestWrite({key:this.indexerKey,value:this._table},{persistent:!0}),[2]}))}))},e.prototype.clear=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return this._table=[],this._transaction.requestWrite({key:this.indexerKey,value:this._table},{persistent:!0}),[2]}))}))},e.prototype.commit=function(){this._origin=this._table,this._table=Si(this._origin)},e.prototype.abort=function(){this._table=Si(this._origin)},e}(),ns=function(){return"undefined"!=typeof document&&"undefined"!=typeof navigator&&"ReactNative"!==navigator.product},rs=function(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}))};!function(e){e[e.PROCESSING=0]="PROCESSING",e[e.DONE=1]="DONE"}(Vi||(Vi={})),function(e){e.NEWNODE="newnode",e.REMOVENODE="removenode",e.CLAIM_HOST="claimhost",e.SYNC_HOST="synchost",e.REQUEST_LOCK="requestlock",e.ACQUIRE_LOCK="acquirelock",e.RELEASE_LOCK="releaselock"}(Hi||(Hi={}));var is,ss={},as=function(){function e(e,t){void 0===t&&(t={});var n=this;return this._state=Vi.PROCESSING,this._queue=[],this._activationQueue=[],ss[e]&&!t.forceCreate||(this.nodeId=rs(),this.key=e,ns()&&(t.startAsInvisible?this.registerNode():"visible"===document.visibilityState?this.claimHost():this.registerNode(),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState&&n.claimHost()})),window.addEventListener("message",(function(e){var t,r,i=e.data,s=i.nodeId,a=i.requestId,o=i.key,u=i.op,c=i.data;if(s!==n.nodeId&&o===n.key)switch(u){case Hi.NEWNODE:n._sendSync();break;case Hi.CLAIM_HOST:n._sendSync(),n._hostId=s;break;case Hi.SYNC_HOST:if(!n.isInSync){n._activationTimeout&&clearTimeout(n._activationTimeout);var l=c,d=l.currentItemRequestId,h=l.queue,f=function(e){n._queue.findIndex((function(t){return t.requestId===e.requestId}))<0&&n._requestLock({nodeId:e.nodeId,requestId:e.requestId,key:n.key,op:Hi.REQUEST_LOCK,ts:e.ts})};try{for(var p=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(h),m=p.next();!m.done;m=p.next())f(m.value)}catch(e){t={error:e}}finally{try{m&&!m.done&&(r=p.return)&&r.call(p)}finally{if(t)throw t.error}}n._currentItem=n._queue.find((function(e){return e.requestId===d})),n._completeSync()}break;case Hi.REMOVENODE:n._queue=n._queue.filter((function(e){return e.nodeId!==i.nodeId})),n._currentItem&&n._currentItem.nodeId===i.nodeId&&(n._currentItem=void 0,n._acquire(n._queue[0]));break;case Hi.REQUEST_LOCK:n._requestLock(i);break;case Hi.ACQUIRE_LOCK:var y=n._queue.find((function(e){return e.requestId===a}));n._acquire(y);break;case Hi.RELEASE_LOCK:n._release(a)}})),window.addEventListener("beforeunload",(function(){n._send(Hi.REMOVENODE)}))),ss[e]=this),ss[e]}return Object.defineProperty(e.prototype,"locked",{get:function(){return!!this._currentItem},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isHost",{get:function(){return this._hostId===this.nodeId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInSync",{get:function(){return this._state==Vi.DONE},enumerable:!1,configurable:!0}),e.prototype._send=function(e,t){var n;void 0===t&&(t={});var r={nodeId:this.nodeId,requestId:null!==(n=null==t?void 0:t.requestId)&&void 0!==n?n:rs(),key:this.key,op:e,data:t.data,ts:Date.now()};return ns()&&window.postMessage(r,"*"),r},e.prototype._acquire=function(e){e?(this._currentItem=e,this._currentItem.onAcquired&&this._currentItem.onAcquired(e.requestId)):this._currentItem=void 0},e.prototype._release=function(e){if(this._currentItem&&this._currentItem.requestId===e){var t=this._currentItem;this._currentItem=void 0,t.nodeId===this.nodeId&&this._send(Hi.RELEASE_LOCK,{requestId:t.requestId});var n=this._queue.findIndex((function(t){return t.requestId===e}));n>-1&&this._queue.splice(n,1),t.onReleased&&t.onReleased(e)}},e.prototype._requestLock=function(e){var t=this;return new Promise((function(n){var r={nodeId:e.nodeId,requestId:e.requestId,ts:e.ts,onAcquired:function(e){t.isHost&&t._send(Hi.ACQUIRE_LOCK,{requestId:e}),n()},onReleased:function(){t._acquire(t._queue[0])}},i=!1;for(var s in t._queue)if(t._queue[s].ts>r.ts){t._queue.splice(parseInt(s),0,r),i=!0;break}i||t._queue.push(r),t._currentItem||t._acquire(t._queue[0])}))},e.prototype._sendSync=function(){var e;this.isHost&&this._send(Hi.SYNC_HOST,{data:{currentItemRequestId:null===(e=this._currentItem)||void 0===e?void 0:e.requestId,queue:this._queue.map((function(e){return{nodeId:e.nodeId,requestId:e.requestId,ts:e.ts}}))}})},e.prototype._waitUntilSyncCompleted=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){return this.isHost&&!this.isInSync?[2,new Promise((function(t){e._activationQueue.push(t)}))]:[2]}))}))},e.prototype._waitSync=function(){var e=this;this.isInSync||(this._activationTimeout=setTimeout((function(){e._completeSync()}),8))},e.prototype._completeSync=function(){this.isInSync||(this._state=Vi.DONE,this._activationQueue.forEach((function(e){return e()})),this._activationQueue=[])},e.prototype.registerNode=function(){this._send(Hi.NEWNODE),this._waitSync()},e.prototype.claimHost=function(){this._hostId=this.nodeId,this._send(Hi.CLAIM_HOST),this._waitSync()},e.prototype.lock=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return[4,this._waitUntilSyncCompleted()];case 1:return t.sent(),e=this._send(Hi.REQUEST_LOCK),[4,this._requestLock(e)];case 2:return t.sent(),[2]}}))}))},e.prototype.unlock=function(){var e;(null===(e=this._currentItem)||void 0===e?void 0:e.requestId)&&this._release(this._currentItem.requestId)},e}(),os=function(){function e(e){var t=e.dbname,n=e.collectionName,r=e.keyName,i=e.keyHash,s=e.indexes,a=e.store,o=this;this._state=Ei.INIT,this._indexers=[],this.dbname=t,this.name=n,this.keyName=r,this.indexes=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([[r]],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(s.filter((function(e){return ts.createKey(e)!==o.keyName}))),!1),this._keyHash=i,this._store=a,this._mutex=new as(function(e,t){return"".concat(Bi(e,t),".lock")}(t,n)),this._blobContainer=new Gi({dbname:t,collectionName:n,store:a}),this._transaction=new Xi({dbname:t,collectionName:n,store:a})}return e.metadataOf=function(e,t,n){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(i){switch(i.label){case 0:return r=Ki(e,t),[4,n.get(r)];case 1:return[2,i.sent()]}}))}))},Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isReady",{get:function(){return this._state===Ei.READY},enumerable:!1,configurable:!0}),e.prototype.init=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,r,i,s,a,o,u,c,l,d,h,f,y,_=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(g){switch(g.label){case 0:return[4,this._mutex.lock()];case 1:g.sent(),g.label=2;case 2:return g.trys.push([2,9,,10]),t=Ii.get(this.dbname),[4,e.metadataOf(this.dbname,this.name,this._store)];case 3:return n=g.sent(),this._metadata=n||{keyName:this.keyName,blockLevel:1,blockHashBase:t.blockHashBase,blockHashMultiplier:t.blockHashMultiplier,blockHashConstant:t.blockHashConstant,indexes:this.indexes},[4,this._transaction.init()];case 4:g.sent(),this._blockManager=new $i({dbname:this.dbname,collectionName:this.name,hashFunction:this._keyHash,metadata:this._metadata,transaction:this._transaction,store:this._store}),r=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(this.indexes),!1),i=[],s=r.map((function(e){return ts.createKey(e)})),a=n?n.indexes.map((function(e){return ts.createKey(e)})):[];try{for(o=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(a),u=o.next();!u.done;u=o.next())c=u.value,s.includes(c)||i.push(ts.parseKey(c))}catch(e){f={error:e}}finally{try{u&&!u.done&&(y=o.return)&&y.call(o)}finally{if(f)throw f.error}}return(l=[]).push.apply(l,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(r.map((function(e){var t=new ts({dbname:_.dbname,collectionName:_.name,keyName:_.keyName,fields:e,transaction:_._transaction,store:_._store});return _._indexers.push(t),t.ensure()}))),!1)),l.push.apply(l,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(i.map((function(e){return new ts({dbname:_.dbname,collectionName:_.name,keyName:_.keyName,fields:e,transaction:_._transaction,store:_._store}).drop()}))),!1)),[4,Promise.all(l)];case 5:return g.sent(),[4,this._transaction.commit()];case 6:return g.sent(),s.sort().join(",")===a.sort().join(",")?[3,8]:(d=Ki(this.dbname,this.name),this._metadata.indexes=r,[4,this._store.set({key:d,value:this._metadata})]);case 7:g.sent(),g.label=8;case 8:return this._state=Ei.READY,this._mutex.unlock(),[3,10];case 9:throw h=g.sent(),this._mutex.unlock(),h;case 10:return[2]}}))}))},e.prototype.close=function(){this._state=Ei.CLOSED},e.prototype._hasPropertyOfKeyName=function(e){var t=e[this.keyName];return"string"==typeof t&&!!t},e.prototype._getIndexerBy=function(e){var t,n;void 0===e&&(e=null),e||(e=[this.keyName]);var r=ts.createKey(e);try{for(var i=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._indexers),s=i.next();!s.done;s=i.next()){var a=s.value;if(r===ts.createKey(a.fields))return a}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}throw Ti.indexTableIsRequired},e.prototype._upgradeBlockLevel=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return e=Ki(this.dbname,this.name),this._metadata.blockLevel++,[4,this._store.set({key:e,value:this._metadata})];case 1:return t.sent(),[2]}}))}))},e.prototype._requestInsert=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,r,i,s,a;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(o){switch(o.label){case 0:return t=e[this.keyName],[4,this._blockManager.getFromBlock(t)];case 1:return o.sent()?[3,13]:[4,this._blockManager.putToBlock(t,e)];case 2:return o.sent()?[3,5]:[4,this._upgradeBlockLevel()];case 3:return o.sent(),[4,this._blockManager.putToBlock(t,e)];case 4:o.sent(),o.label=5;case 5:o.trys.push([5,10,11,12]),n=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._indexers),r=n.next(),o.label=6;case 6:return r.done?[3,9]:[4,r.value.addItem(e)];case 7:o.sent(),o.label=8;case 8:return r=n.next(),[3,6];case 9:return[3,12];case 10:return i=o.sent(),s={error:i},[3,12];case 11:try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(s)throw s.error}return[7];case 12:return[3,14];case 13:throw Ti.collectionInsertDuplicate;case 14:return[2]}}))}))},e.prototype._requestUpsert=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,r,i,s,a,o,u,c,l,d,h,f;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(p){switch(p.label){case 0:return t=e[this.keyName],[4,this._blockManager.getFromBlock(t)];case 1:return(n=p.sent())?[3,13]:[4,this._blockManager.putToBlock(t,e)];case 2:return p.sent()?[3,5]:[4,this._upgradeBlockLevel()];case 3:return p.sent(),[4,this._blockManager.putToBlock(t,e)];case 4:p.sent(),p.label=5;case 5:p.trys.push([5,10,11,12]),r=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._indexers),i=r.next(),p.label=6;case 6:return i.done?[3,9]:[4,(u=i.value).addItem(e)];case 7:p.sent(),p.label=8;case 8:return i=r.next(),[3,6];case 9:return[3,12];case 10:return s=p.sent(),l={error:s},[3,12];case 11:try{i&&!i.done&&(d=r.return)&&d.call(r)}finally{if(l)throw l.error}return[7];case 12:return[3,23];case 13:return[4,this._blockManager.putToBlock(t,e)];case 14:p.sent(),p.label=15;case 15:p.trys.push([15,21,22,23]),a=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._indexers),o=a.next(),p.label=16;case 16:return o.done?[3,20]:0===(u=o.value).diff(u.getColumnValues(n),u.getColumnValues(e))?[3,19]:[4,u.removeItem(n)];case 17:return p.sent(),[4,u.addItem(e)];case 18:p.sent(),p.label=19;case 19:return o=a.next(),[3,16];case 20:return[3,23];case 21:return c=p.sent(),h={error:c},[3,23];case 22:try{o&&!o.done&&(f=a.return)&&f.call(a)}finally{if(h)throw h.error}return[7];case 23:return[2]}}))}))},e.prototype._requestUpdate=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,r,i,s,a,o,u;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(c){switch(c.label){case 0:return t=e[this.keyName],[4,this._blockManager.getFromBlock(t)];case 1:return(n=c.sent())?[4,this._blockManager.putToBlock(t,e)]:[3,11];case 2:c.sent(),c.label=3;case 3:c.trys.push([3,9,10,11]),r=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._indexers),i=r.next(),c.label=4;case 4:return i.done?[3,8]:0===(s=i.value).diff(s.getColumnValues(n),s.getColumnValues(e))?[3,7]:[4,s.removeItem(n)];case 5:return c.sent(),[4,s.addItem(e)];case 6:c.sent(),c.label=7;case 7:return i=r.next(),[3,4];case 8:return[3,11];case 9:return a=c.sent(),o={error:a},[3,11];case 10:try{i&&!i.done&&(u=r.return)&&u.call(r)}finally{if(o)throw o.error}return[7];case 11:return[2]}}))}))},e.prototype._requestRemove=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,r,i,s,a;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(o){switch(o.label){case 0:return[4,this._blockManager.getFromBlock(e)];case 1:return(t=o.sent())?[4,this._blockManager.removeFromBlock(e)]:[3,10];case 2:o.sent(),o.label=3;case 3:o.trys.push([3,8,9,10]),n=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._indexers),r=n.next(),o.label=4;case 4:return r.done?[3,7]:[4,r.value.removeItem(t)];case 5:o.sent(),o.label=6;case 6:return r=n.next(),[3,4];case 7:return[3,10];case 8:return i=o.sent(),s={error:i},[3,10];case 9:try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(s)throw s.error}return[7];case 10:return[2]}}))}))},e.prototype._requestClear=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t,n,r,i;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(s){switch(s.label){case 0:return[4,this._blockManager.clearAllBlocks()];case 1:s.sent(),s.label=2;case 2:s.trys.push([2,7,8,9]),e=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._indexers),t=e.next(),s.label=3;case 3:return t.done?[3,6]:[4,t.value.clear()];case 4:s.sent(),s.label=5;case 5:return t=e.next(),[3,3];case 6:return[3,9];case 7:return n=s.sent(),r={error:n},[3,9];case 8:try{t&&!t.done&&(i=e.return)&&i.call(e)}finally{if(r)throw r.error}return[7];case 9:return[2]}}))}))},e.prototype.getByKey=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(r){switch(r.label){case 0:return this.isReady?[4,this._mutex.lock()]:[3,6];case 1:r.sent(),r.label=2;case 2:return r.trys.push([2,4,,5]),[4,this._blockManager.getFromBlock(e)];case 3:return t=r.sent(),this._mutex.unlock(),[2,Si(t)];case 4:throw n=r.sent(),this._mutex.unlock(),n;case 5:return[3,7];case 6:throw Ti.collectionNotReady;case 7:return[2]}}))}))},e.prototype.query=function(e){if(void 0===e&&(e={}),this.isReady)return new qi({condition:e.where,mutex:this._mutex,blockManager:this._blockManager,indexer:this._getIndexerBy(e.index),backward:!!e.backward});throw Ti.collectionNotReady},e.prototype.insertOne=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return this.isReady?[4,this._mutex.lock()]:[3,8];case 1:n.sent(),n.label=2;case 2:if(n.trys.push([2,5,,7]),!this._hasPropertyOfKeyName(e))throw Ti.collectionKeyNotGiven;return[4,this._requestInsert(Si(e))];case 3:return n.sent(),[4,this._transaction.commit()];case 4:return n.sent(),this._mutex.unlock(),[2,e];case 5:return t=n.sent(),[4,this._transaction.clear()];case 6:throw n.sent(),this._mutex.unlock(),t;case 7:return[3,9];case 8:throw Ti.collectionNotReady;case 9:return[2]}}))}))},e.prototype.insertMany=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,r,i,s,a,o,u=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(c){switch(c.label){case 0:return this.isReady?[4,this._mutex.lock()]:[3,15];case 1:c.sent(),c.label=2;case 2:if(c.trys.push([2,12,,14]),e.some((function(e){return!u._hasPropertyOfKeyName(e)})))throw Ti.collectionKeyNotGiven;c.label=3;case 3:c.trys.push([3,8,9,10]),t=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(e),n=t.next(),c.label=4;case 4:return n.done?[3,7]:(r=n.value,[4,this._requestInsert(Si(r))]);case 5:c.sent(),c.label=6;case 6:return n=t.next(),[3,4];case 7:return[3,10];case 8:return i=c.sent(),a={error:i},[3,10];case 9:try{n&&!n.done&&(o=t.return)&&o.call(t)}finally{if(a)throw a.error}return[7];case 10:return[4,this._transaction.commit()];case 11:return c.sent(),this._mutex.unlock(),[2,e];case 12:return s=c.sent(),[4,this._transaction.clear()];case 13:throw c.sent(),this._mutex.unlock(),s;case 14:return[3,16];case 15:throw Ti.collectionNotReady;case 16:return[2]}}))}))},e.prototype.upsertOne=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return this.isReady?[4,this._mutex.lock()]:[3,8];case 1:n.sent(),n.label=2;case 2:if(n.trys.push([2,5,,7]),!this._hasPropertyOfKeyName(e))throw Ti.collectionKeyNotGiven;return[4,this._requestUpsert(Si(e))];case 3:return n.sent(),[4,this._transaction.commit()];case 4:return n.sent(),this._mutex.unlock(),[2,e];case 5:return t=n.sent(),[4,this._transaction.clear()];case 6:throw n.sent(),this._mutex.unlock(),t;case 7:return[3,9];case 8:throw Ti.collectionNotReady;case 9:return[2]}}))}))},e.prototype.upsertMany=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,r,i,s,a,o,u=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(c){switch(c.label){case 0:return this.isReady?[4,this._mutex.lock()]:[3,15];case 1:c.sent(),c.label=2;case 2:if(c.trys.push([2,12,,14]),e.some((function(e){return!u._hasPropertyOfKeyName(e)})))throw Ti.collectionKeyNotGiven;c.label=3;case 3:c.trys.push([3,8,9,10]),t=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(e),n=t.next(),c.label=4;case 4:return n.done?[3,7]:(r=n.value,[4,this._requestUpsert(Si(r))]);case 5:c.sent(),c.label=6;case 6:return n=t.next(),[3,4];case 7:return[3,10];case 8:return i=c.sent(),a={error:i},[3,10];case 9:try{n&&!n.done&&(o=t.return)&&o.call(t)}finally{if(a)throw a.error}return[7];case 10:return[4,this._transaction.commit()];case 11:return c.sent(),this._mutex.unlock(),[2,e];case 12:return s=c.sent(),[4,this._transaction.clear()];case 13:throw c.sent(),this._mutex.unlock(),s;case 14:return[3,16];case 15:throw Ti.collectionNotReady;case 16:return[2]}}))}))},e.prototype.update=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return this.isReady?[4,this._mutex.lock()]:[3,8];case 1:n.sent(),n.label=2;case 2:if(n.trys.push([2,5,,7]),!this._hasPropertyOfKeyName(e))throw Ti.collectionKeyNotGiven;return[4,this._requestUpdate(Si(e))];case 3:return n.sent(),[4,this._transaction.commit()];case 4:return n.sent(),this._mutex.unlock(),[2,e];case 5:return t=n.sent(),[4,this._transaction.clear()];case 6:throw n.sent(),this._mutex.unlock(),t;case 7:return[3,9];case 8:throw Ti.collectionNotReady;case 9:return[2]}}))}))},e.prototype.updateIf=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n,r,i,s,a,o,u,c,l,d,h,f,p,m,y=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(_){switch(_.label){case 0:return this.isReady?[4,this._mutex.lock()]:[3,16];case 1:_.sent(),_.label=2;case 2:return _.trys.push([2,13,,15]),n=e.where,r=void 0===n?{}:n,i=e.index,s=void 0===i?null:i,a=e.backward,o=void 0!==a&&a,u=[],[4,new Fi({condition:r,blockManager:this._blockManager,backward:o,indexer:this._getIndexerBy(s)}).each((function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(y,void 0,void 0,(function(){var n,i;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(s){if(e.error)throw e.stop(),e.error;if(e.hasNext){if(n=e.nextValue,Ni(r,n)&&t.set){if("function"!=typeof t.set)for(i in t.set)n[i]=t.set[i];else t.set(n);u.push(n)}e.next()}else e.stop();return[2]}))}))}))];case 3:_.sent(),_.label=4;case 4:_.trys.push([4,9,10,11]),c=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(u),l=c.next(),_.label=5;case 5:return l.done?[3,8]:(d=l.value,[4,this._requestUpdate(Si(d))]);case 6:_.sent(),_.label=7;case 7:return l=c.next(),[3,5];case 8:return[3,11];case 9:return h=_.sent(),p={error:h},[3,11];case 10:try{l&&!l.done&&(m=c.return)&&m.call(c)}finally{if(p)throw p.error}return[7];case 11:return[4,this._transaction.commit()];case 12:return _.sent(),this._mutex.unlock(),[2,u];case 13:return f=_.sent(),[4,this._transaction.clear()];case 14:throw _.sent(),this._mutex.unlock(),f;case 15:return[3,17];case 16:throw this._transaction.clear(),Ti.collectionNotReady;case 17:return[2]}}))}))},e.prototype.remove=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return this.isReady?[4,this._mutex.lock()]:[3,8];case 1:n.sent(),n.label=2;case 2:return n.trys.push([2,5,,7]),[4,this._requestRemove(e)];case 3:return n.sent(),[4,this._transaction.commit()];case 4:return n.sent(),this._mutex.unlock(),[3,7];case 5:return t=n.sent(),[4,this._transaction.clear()];case 6:throw n.sent(),this._mutex.unlock(),t;case 7:return[3,9];case 8:throw Ti.collectionNotReady;case 9:return[2]}}))}))},e.prototype.removeIf=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,r,i,s,a,o,u,c,l,d,h,f,p,m=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(y){switch(y.label){case 0:return this.isReady?[4,this._mutex.lock()]:[3,15];case 1:y.sent(),y.label=2;case 2:return y.trys.push([2,13,,14]),t=e.where,n=void 0===t?{}:t,r=e.index,i=void 0===r?null:r,s=e.backward,a=void 0!==s&&s,o=[],[4,new Fi({condition:n,blockManager:this._blockManager,backward:a,indexer:this._getIndexerBy(i)}).each((function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(m,void 0,void 0,(function(){var t,r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(i){if(e.error)throw e.stop(),e.error;return e.hasNext?(t=e.nextValue,Ni(n,t)&&(r=t[this.keyName],o.push(r)),e.next()):e.stop(),[2]}))}))}))];case 3:y.sent(),y.label=4;case 4:y.trys.push([4,9,10,11]),u=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(o),c=u.next(),y.label=5;case 5:return c.done?[3,8]:(l=c.value,[4,this._requestRemove(l)]);case 6:y.sent(),y.label=7;case 7:return c=u.next(),[3,5];case 8:return[3,11];case 9:return d=y.sent(),f={error:d},[3,11];case 10:try{c&&!c.done&&(p=u.return)&&p.call(u)}finally{if(f)throw f.error}return[7];case 11:return[4,this._transaction.commit()];case 12:return y.sent(),this._mutex.unlock(),[2,o];case 13:throw h=y.sent(),this._mutex.unlock(),h;case 14:return[3,16];case 15:throw this._transaction.clear(),Ti.collectionNotReady;case 16:return[2]}}))}))},e.prototype.clear=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return this.isReady?[4,this._mutex.lock()]:[3,8];case 1:t.sent(),t.label=2;case 2:return t.trys.push([2,5,,7]),[4,this._requestClear()];case 3:return t.sent(),[4,this._transaction.commit()];case 4:return t.sent(),this._mutex.unlock(),[3,7];case 5:return e=t.sent(),[4,this._transaction.clear()];case 6:throw t.sent(),this._mutex.unlock(),e;case 7:return[3,9];case 8:throw Ti.collectionNotReady;case 9:return[2]}}))}))},e.prototype.getBlob=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return[4,this._blobContainer.get(e)];case 1:return[2,t.sent()]}}))}))},e.prototype.saveBlob=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return[4,this._blobContainer.save(e,t)];case 1:return[2,n.sent()]}}))}))},e.prototype.removeBlob=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return[4,this._blobContainer.remove(e)];case 1:return t.sent(),[2]}}))}))},e.prototype.removeAllBlobs=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return[4,this._blobContainer.clear()];case 1:return e.sent(),[2]}}))}))},e}(),us="[NESTDB]",cs=!0,ls=function(){function e(){}return e.off=function(){cs=!1},e.log=function(){for(var e=[],t=0;t1?[4,Promise.all(this._generateShardPostfixArray(null==i?void 0:i.shards).map((function(t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(o,void 0,void 0,(function(){var n,i;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(s){switch(s.label){case 0:return t>0?(n=this._getRawKey(e,".".concat(t)),[4,this._getRaw(n)]):[3,2];case 1:if(!(i=s.sent()))throw Ti.storeBrokenIntegrity;return[2,i.data];case 2:return[2,r]}}))}))})))]:[3,4];case 3:return a=u.sent(),[3,5];case 4:a=[r],u.label=5;case 5:return s=a,[2,this.encryption.decrypt(JSON.parse(s.join("")))];case 6:return u.sent(),[2,null];case 7:return[2,null]}}))}))},e.prototype.set=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return t=this._shardify(e),[4,this._setRaw(t)];case 1:return n.sent(),[2,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},e.value)]}}))}))},e.prototype.setMany=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(r){switch(r.label){case 0:return t=[],[4,this._setRaw(t.concat.apply(t,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(e.map((function(e){return n._shardify(e)}))),!1)))];case 1:return r.sent(),[2,e.map((function(e){return e.value}))]}}))}))},e.prototype.remove=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,r,i=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(s){switch(s.label){case 0:return t=this._getRawKey(e,".0"),[4,this._getRaw(t)];case 1:return(n=s.sent())?(r=n.metadata,[4,this._removeRaw(this._generateShardPostfixArray(null==r?void 0:r.shards).map((function(t){return i._getRawKey(e,".".concat(t))})))]):[3,3];case 2:return s.sent(),[2,!0];case 3:return[2,!1]}}))}))},e.prototype.removeMany=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,r,i,s,a,o,u,c,l=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(d){switch(d.label){case 0:t=[],n=function(e){var n,i,s;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(a){switch(a.label){case 0:return n=r._getRawKey(e,".0"),[4,r._getRaw(n)];case 1:return(i=a.sent())&&(s=i.metadata,t.push.apply(t,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(r._generateShardPostfixArray(null==s?void 0:s.shards).map((function(t){return l._getRawKey(e,".".concat(t))}))),!1))),[2]}}))},r=this,d.label=1;case 1:d.trys.push([1,6,7,8]),i=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(e),s=i.next(),d.label=2;case 2:return s.done?[3,5]:(a=s.value,[5,n(a)]);case 3:d.sent(),d.label=4;case 4:return s=i.next(),[3,2];case 5:return[3,8];case 6:return o=d.sent(),u={error:o},[3,8];case 7:try{s&&!s.done&&(c=i.return)&&c.call(i)}finally{if(u)throw u.error}return[7];case 8:return t.length>0?[4,this._removeRaw(t)]:[3,10];case 9:d.sent(),d.label=10;case 10:return[2,e]}}))}))},e}(),fs={},ps=function(e){function t(t){void 0===t&&(t={});var n,r=this;r=e.call(this,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},t),{itemSizeLimit:null!==(n=t.itemSizeLimit)&&void 0!==n?n:4194304}))||this;var i=t.delay,s=void 0===i?1:i;return r.delay=s,r.observer={},r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),Object.defineProperty(t.prototype,"rawData",{get:function(){return fs[this.dbname]},set:function(e){fs[this.dbname]=e},enumerable:!1,configurable:!0}),t.prototype._getAllRawKeys=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){if(fs[this.dbname])return[2,Object.keys(fs[this.dbname])];throw Ti.storeNotAvailable}))}))},t.prototype._getRaw=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return fs[this.dbname]?[4,Ai(this.delay)]:[3,2];case 1:return t.sent(),[2,fs[this.dbname][e]?Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({key:e},fs[this.dbname][e]):null];case 2:throw Ti.storeNotAvailable}}))}))},t.prototype._setRaw=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,r,i,s,a,o,u;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(c){switch(c.label){case 0:return fs[this.dbname]?[4,Ai(this.delay)]:[3,2];case 1:c.sent();try{for(t=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(e),n=t.next();!n.done;n=t.next())r=n.value,i=r.key,s=r.data,a=r.metadata,fs[this.dbname][i]=Object.freeze({data:s,metadata:a})}catch(e){o={error:e}}finally{try{n&&!n.done&&(u=t.return)&&u.call(t)}finally{if(o)throw o.error}}return[3,3];case 2:throw Ti.storeNotAvailable;case 3:return[2]}}))}))},t.prototype._removeRaw=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,r,i,s;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(a){switch(a.label){case 0:return fs[this.dbname]?[4,Ai(this.delay)]:[3,2];case 1:a.sent();try{for(t=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(e),n=t.next();!n.done;n=t.next())r=n.value,fs[this.dbname][r]&&delete fs[this.dbname][r]}catch(e){i={error:e}}finally{try{n&&!n.done&&(s=t.return)&&s.call(t)}finally{if(i)throw i.error}}return[3,3];case 2:throw Ti.storeNotAvailable;case 3:return[2]}}))}))},t.prototype.observe=function(e,t,n){var r=this;this.observer[e]||(this.observer[e]={}),t.forEach((function(t){return r.observer[e][t]=n}))},t.prototype.checkAvailability=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return[2]}))}))},t.prototype.init=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return this.dbname=e,fs[this.dbname]||(fs[this.dbname]={}),[4,this._resetIfEncryptionChanged()];case 1:return t.sent(),[2]}}))}))},t.prototype.set=function(t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n,r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(i){if((n=this.observer[t.key])&&"function"==typeof n.set&&(r=n.set()))throw r;return[2,e.prototype.set.call(this,t)]}))}))},t.prototype.setMany=function(t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n,r,i,s,a,o,u;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(c){try{for(n=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(t),r=n.next();!r.done;r=n.next())if(i=r.value,(s=this.observer[i.key])&&"function"==typeof s.set&&(a=s.set()))throw a}catch(e){o={error:e}}finally{try{r&&!r.done&&(u=n.return)&&u.call(n)}finally{if(o)throw o.error}}return[2,e.prototype.setMany.call(this,t)]}))}))},t.prototype.clear=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return[4,Ai(this.delay)];case 1:return e.sent(),fs[this.dbname]={},[2]}}))}))},t}(hs),ms="NestDBStore";!function(e){e[e.UNINITIALIZED=0]="UNINITIALIZED",e[e.OPENING=1]="OPENING",e[e.OPEN=2]="OPEN",e[e.CLOSED=3]="CLOSED"}(is||(is={}));var _s,vs=function(e){function t(t){void 0===t&&(t={});var n,r=this;return(r=e.call(this,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},t),{itemSizeLimit:null!==(n=t.itemSizeLimit)&&void 0!==n?n:104857600}))||this)._storeName=ms,r._state=is.UNINITIALIZED,r._openJobQueue=[],r._window="undefined"!=typeof window?window:void 0,r._indexedDb=r._window?r._window.indexedDB||r._window.mozIndexedDB||r._window.webkitIndexedDB||r._window.msIndexedDB:void 0,r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTransactionReusable",{get:function(){var e=null===navigator||void 0===navigator?void 0:navigator.userAgent;if(e){var t="15.0.0";if(e.includes("Safari/")?t=e.split("Safari/")[0].trim().split("Version/")[1]:e.includes("AppleWebKit/")&&(t=e.split("AppleWebKit/")[0].trim().split("Version/")[1]),(t?parseInt(t.split(".")[0]):0)<=14)return!1}return!0},enumerable:!1,configurable:!0}),t.prototype._putToObjectStore=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){return[2,new Promise((function(n,r){var i=e.put(t);i.addEventListener("success",(function(e){n(e.target.result)})),i.addEventListener("error",(function(){r("Failed to write.")}))}))]}))}))},t.prototype._deleteFromObjectStore=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){return[2,new Promise((function(n,r){var i=e.delete(t);i.addEventListener("success",(function(){return n(t)})),i.addEventListener("error",(function(e){return r(e.target.error)}))}))]}))}))},t.prototype._openDatabase=function(e){var t=this;return new Promise((function(n,r){if(t._indexedDb){t._state=is.OPENING;var i=t._indexedDb.open(e);i.addEventListener("upgradeneeded",(function(e){e.target.result.createObjectStore(ms,{keyPath:"key"})})),i.addEventListener("success",(function(r){t._state=is.OPEN,t._database=r.target.result,t._openJobQueue.forEach((function(e){return e()})),t._openJobQueue=[],t._database.onclose=function(){t._database=void 0,t._state=is.OPENING,setTimeout((function(){t._openDatabase(e)}),5)},n(t._database)})),i.addEventListener("error",(function(e){t._state=is.UNINITIALIZED,r(e.target.error)}))}else r(Ti.storeNotAvailable)}))},t.prototype._getObjectStore=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return this._database?[2,this._database.transaction(this._storeName,e).objectStore(this._storeName)]:[3,1];case 1:switch(this._state){case is.UNINITIALIZED:case is.OPEN:return[3,2];case is.OPENING:case is.CLOSED:return[3,3]}return[3,4];case 2:throw Ti.storeNotInitialized;case 3:return[2,new Promise((function(n){t._openJobQueue.push((function(){return n(t._getObjectStore(e))}))}))];case 4:return[4,this._getObjectStore(e)];case 5:return[2,n.sent()]}}))}))},t.prototype._getAllRawKeys=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return[4,this._getObjectStore("readonly")];case 1:return e=t.sent(),[4,new Promise((function(t,n){var r=e.getAllKeys();r.addEventListener("success",(function(e){t(e.target.result)})),r.addEventListener("error",(function(e){return n(e.target.error)}))}))];case 2:return[2,t.sent()]}}))}))},t.prototype._getRaw=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return[4,this._getObjectStore("readonly")];case 1:return t=n.sent(),[4,new Promise((function(n,r){var i=t.get(e);i.addEventListener("success",(function(e){var t;n(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.result)})),i.addEventListener("error",(function(e){return r(e.target.error)}))}))];case 2:return[2,n.sent()]}}))}))},t.prototype._setRaw=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,r,i,s,a,o,u=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(c){switch(c.label){case 0:return[4,this._getObjectStore("readwrite")];case 1:return t=c.sent(),this.isTransactionReusable?[4,Promise.all(e.map((function(e){return u._putToObjectStore(t,e)})))]:[3,3];case 2:return c.sent(),[3,10];case 3:c.trys.push([3,8,9,10]),n=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(e),r=n.next(),c.label=4;case 4:return r.done?[3,7]:(i=r.value,[4,this._putToObjectStore(t,i)]);case 5:c.sent(),c.label=6;case 6:return r=n.next(),[3,4];case 7:return[3,10];case 8:return s=c.sent(),a={error:s},[3,10];case 9:try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(a)throw a.error}return[7];case 10:return[2]}}))}))},t.prototype._removeRaw=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,r,i,s,a,o,u=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(c){switch(c.label){case 0:return[4,this._getObjectStore("readwrite")];case 1:return t=c.sent(),this.isTransactionReusable?[4,Promise.all(e.map((function(e){return u._deleteFromObjectStore(t,e)})))]:[3,3];case 2:return c.sent(),[3,10];case 3:c.trys.push([3,8,9,10]),n=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(e),r=n.next(),c.label=4;case 4:return r.done?[3,7]:(i=r.value,[4,this._deleteFromObjectStore(t,i)]);case 5:c.sent(),c.label=6;case 6:return r=n.next(),[3,4];case 7:return[3,10];case 8:return s=c.sent(),a={error:s},[3,10];case 9:try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(a)throw a.error}return[7];case 10:return[2]}}))}))},t.prototype._triggerDatabaseClose=function(){this._database&&this._database.onclose&&this._database.onclose(new Event("dummy"))},t.prototype.checkAvailability=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:if(!((null==(e="undefined"!=typeof window?window:null)?void 0:e.indexedDB)||(null==e?void 0:e.mozIndexedDB)||(null==e?void 0:e.webkitIndexedDB)||(null==e?void 0:e.msIndexedDB)))return[3,6];if(this._indexedDb=e.indexedDB||e.mozIndexedDB||e.webkitIndexedDB||e.msIndexedDB,!this._window||!ns())return[3,4];if(!(ns()&&navigator.userAgent&&navigator.userAgent.includes("Edge/")))return[3,1];if(!this._window.indexedDB&&(e.PointerEvent||e.MSPointerEvent))throw Ti.storeNotAvailableInPrivateBrowsing;return[3,3];case 1:return[4,new Promise((function(e,n){if(t._indexedDb)try{var r=t._indexedDb.open("_testMozilla");r.onerror=function(){return n(Ti.storeNotAvailableInPrivateBrowsing)},r.onsuccess=function(r){if(r.target.result.close(),t._indexedDb){var i=t._indexedDb.deleteDatabase("_testMozilla");i.onerror=function(){return e()},i.onsuccess=function(){return e()}}else n(Ti.storeNotAvailable)}}catch(e){n(Ti.storeNotAvailableInPrivateBrowsing)}else n(Ti.storeNotAvailable)}))];case 2:n.sent(),n.label=3;case 3:return[3,5];case 4:throw Ti.storeNotAvailable;case 5:return[3,7];case 6:throw Ti.storeNotAvailable;case 7:return[2]}}))}))},t.prototype.init=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return this.dbname=e,[4,this.checkAvailability()];case 1:return t.sent(),[4,this._openDatabase(e)];case 2:return t.sent(),[4,this._resetIfEncryptionChanged()];case 3:return t.sent(),[2]}}))}))},t.prototype.clear=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return[4,this._getObjectStore("readwrite")];case 1:return e=t.sent(),[4,new Promise((function(t,n){var r=e.clear();r.addEventListener("success",(function(){return t()})),r.addEventListener("error",(function(e){return n(e.target.error)}))}))];case 2:return[2,t.sent()]}}))}))},t}(hs),ys=function(e){function t(t){var n=this,r=t.AsyncStorage,i=t.itemSizeLimit,s=void 0===i?6291456:i,a=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.T)(t,["AsyncStorage","itemSizeLimit"]);return(n=e.call(this,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},a),{itemSizeLimit:s}))||this)._asyncStorage=r,n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t.prototype._isBelonging=function(e){return e.startsWith("".concat(this.dbname,"/"))},t.prototype._getActualKey=function(e){return"".concat(this.dbname,"/").concat(e)},t.prototype._getAllRawKeys=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return[4,this._asyncStorage.getAllKeys()];case 1:return[2,n.sent().filter((function(e){return t._isBelonging(e)})).map((function(e){return e.substring("".concat(t.dbname,"/").length)}))]}}))}))},t.prototype._getRaw=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return[4,this._asyncStorage.getItem(this._getActualKey(e))];case 1:return[2,(t=n.sent())?JSON.parse(t):null]}}))}))},t.prototype._setRaw=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,r,i,s,a,o;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(u){switch(u.label){case 0:t=[];try{for(n=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(e),r=n.next();!r.done;r=n.next())i=r.value,s=i.key,i.data.length<=this.adjustedItemSizeLimit&&t.push([this._getActualKey(s),JSON.stringify(i)])}catch(e){a={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(a)throw a.error}}return[4,this._asyncStorage.multiSet(t)];case 1:return u.sent(),[2]}}))}))},t.prototype._removeRaw=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return[4,this._asyncStorage.multiRemove(e.map((function(e){return t._getActualKey(e)})))];case 1:return n.sent(),[2]}}))}))},t.prototype.checkAvailability=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){if(!this._asyncStorage)throw Ti.storeNotAvailable;return[2]}))}))},t.prototype.init=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return this.dbname=e,[4,this._resetIfEncryptionChanged()];case 1:return t.sent(),[2]}}))}))},t.prototype.clear=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return[4,this.getAllKeys()];case 1:return e=t.sent(),[4,this.removeMany(e)];case 2:return t.sent(),[2]}}))}))},t}(hs);!function(e){function t(t){var n,r=this;return(r=e.call(this,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},t),{itemSizeLimit:null!==(n=t.itemSizeLimit)&&void 0!==n?n:6291456}))||this)._mmkv=t.MMKV,r}Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t.prototype._isBelonging=function(e){return e.startsWith("".concat(this.dbname,"/"))},t.prototype._getActualKey=function(e){return"".concat(this.dbname,"/").concat(e)},t.prototype._getAllRawKeys=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return[4,this._mmkv.getAllKeys()];case 1:return[2,n.sent().filter((function(e){return t._isBelonging(e)})).map((function(e){return e.substring("".concat(t.dbname,"/").length)}))]}}))}))},t.prototype._getRaw=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return[4,this._mmkv.getString(this._getActualKey(e))];case 1:return[2,(t=n.sent())?JSON.parse(t):null]}}))}))},t.prototype._setRaw=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,r,i,s,a;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(o){try{for(t=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(e),n=t.next();!n.done;n=t.next())r=n.value,i=r.key,r.data.length<=this.adjustedItemSizeLimit&&this._mmkv.set(this._getActualKey(i),JSON.stringify(r))}catch(e){s={error:e}}finally{try{n&&!n.done&&(a=t.return)&&a.call(t)}finally{if(s)throw s.error}}return[2]}))}))},t.prototype._removeRaw=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,r,i,s;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(a){try{for(t=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(e),n=t.next();!n.done;n=t.next())r=n.value,this._mmkv.delete(this._getActualKey(r))}catch(e){i={error:e}}finally{try{n&&!n.done&&(s=t.return)&&s.call(t)}finally{if(i)throw i.error}}return[2]}))}))},t.prototype.checkAvailability=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){if(!this._mmkv)throw Ti.storeNotAvailable;return[2]}))}))},t.prototype.init=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return this.dbname=e,[4,this._resetIfEncryptionChanged()];case 1:return t.sent(),[2]}}))}))},t.prototype.clear=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return[4,this.getAllKeys()];case 1:return e=t.sent(),[4,this.removeMany(e)];case 2:return t.sent(),[2]}}))}))}}(hs),function(e){e.INIT="INIT",e.OPENING="OPENING",e.OPENED="OPENED",e.CLOSED="CLOSED"}(_s||(_s={}));var gs,bs=function(){function e(e){var t=e.name,n=e.version,r=e.store,i=e.config;this.name=t,this._version=n,this._state=_s.INIT,this._config=i||new Ii({dbname:t}),this._store=r,this._event={success:Ci,error:Ci,storeReplaced:Ci,upgrade:Oi},this._collections=new Map,this._globalMutex=new as("".concat(this.name,".lock")),this._config.disableLogger&&ls.off(),new Ji({dbname:t,limit:this._config.cacheLimit})}return Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"store",{get:function(){return this._store},enumerable:!1,configurable:!0}),e.prototype.estimateUsage=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return[4,(t=this._store,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(void 0,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return[4,t.usage()];case 1:return[2,e.sent()]}}))})))];case 1:return[2,e.sent()]}var t}))}))},e.prototype.commitSchema=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return this._state!==_s.OPENING?[3,2]:[4,Promise.all(e.map((function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(t,void 0,void 0,(function(){var t,n,r,i,s;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(a){switch(a.label){case 0:return t=e.collectionName,n=e.keyName,r=e.index,i=void 0===r?[]:r,this._collections.has(t)||this._collections.set(t,new os({dbname:this.name,collectionName:t,keyName:n,indexes:i,store:this._store})),(s=this._collections.get(t))?[4,s.init()]:[3,2];case 1:a.sent(),a.label=2;case 2:return[2]}}))}))})))];case 1:return n.sent(),[3,3];case 2:throw Ti.databaseSchemaNotOnUpgrade;case 3:return[2]}}))}))},e.prototype.open=function(){var e;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,r,i,s=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(a){switch(a.label){case 0:return[4,this._globalMutex.lock()];case 1:if(a.sent(),this._state===_s.OPENED)return[3,12];this._state=_s.OPENING,a.label=2;case 2:return a.trys.push([2,5,,12]),[4,this._store.init(this.name)];case 3:return a.sent(),o=this.name,t="".concat(zi(o),".metadata"),n={version:0,collectionNames:[]},[4,this._store.get(t)];case 4:return r=null!==(e=a.sent())&&void 0!==e?e:n,[2,new Promise((function(e,n){var i=function(e){r.version0&&!this.customTypesFilter.includes("*")&&!this.customTypesFilter.includes(e.customType))return!1;if(this.senderUserIdsFilter&&this.senderUserIdsFilter.length>0){if(!(e instanceof ht))return!1;if(!this.senderUserIdsFilter.includes(e.sender.userId))return!1}if(e instanceof dt)switch(this.replyType){case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Db.NONE:if(e.parentMessageId>0)return!1;break;case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Db.ONLY_REPLY_TO_CHANNEL:if(e instanceof ht&&e.parentMessageId>0&&!e.replyToChannel)return!1}return!0},e}();!function(e){e.CHANNEL_LATEST="channel_latest",e.NEWEST_CHILD_MESSAGE="newest_child_message"}(gs||(gs={}));var Es,Ts=function(e){switch(e){case gs.CHANNEL_LATEST:return["channelUrl","-createdAt","-messageId"];case gs.NEWEST_CHILD_MESSAGE:return["channelUrl","-parentMessageId","-createdAt","-messageId"]}},ws=function(){return["channelUrl","-createdAt","-notificationId"]},Ss=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},Zt),{scheduledAt:void 0}),Ms=function(e){return nn(e)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e.scheduledAt,!0)},Us=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},Yt),{scheduledAt:0,file:void 0,fileUrl:void 0,fileName:void 0,mimeType:void 0,fileSize:void 0,thumbnailSizes:void 0,requireAuth:!1}),As=function(e){return Jt(e)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e.scheduledAt)&&(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.hc)(e.file)||Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.fileUrl))&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.fileName,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.mimeType,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e.fileSize,!0)&&(null===e.thumbnailSizes||void 0===e.thumbnailSizes||e.thumbnailSizes.every((function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("object",e)&&e.maxWidth>0&&e.maxHeight>0})))},Ns="UnsentMessage",Cs="reqId",ks={},Ps=function(t){function i(e){var n=t.call(this,e)||this;return n._mutex=new as("unsendmessagecache.lock"),ks[e]=n,n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(i,t),Object.defineProperty(i.prototype,"_cacheContext",{get:function(){return _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).cacheContext},enumerable:!1,configurable:!0}),i.of=function(e,t){return void 0===t&&(t=!1),ks[e]&&!t||(ks[e]=new i(e)),ks[e]},Object.defineProperty(i.prototype,"collection",{get:function(){var e=this._cacheContext.nestdb,t=null==e?void 0:e.collection(Ns);if(!t)throw _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.databaseError;return t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"localCacheEnabled",{get:function(){return this._cacheContext.localCacheEnabled&&!!this.collection},enumerable:!1,configurable:!0}),i.prototype._serialize=function(t){if(t.messageId>0)throw _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters;var n,r=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},t.serialize());return t instanceof _t?(t.messageParams&&(r.messageParams=Xt(t.messageParams)),t.scheduledInfo&&t.scheduledInfo.scheduledMessageParams&&(r.scheduledInfo.scheduledMessageParams=(n=t.scheduledInfo.scheduledMessageParams,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},Xt(n)),{scheduledAt:n.scheduledAt})))):t instanceof Tt?(t.messageParams&&(r.messageParams=an(t.messageParams)),t.scheduledInfo&&t.scheduledInfo.scheduledMessageParams&&(r.scheduledInfo.scheduledMessageParams=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},an(e)),{scheduledAt:e.scheduledAt})}(t.scheduledInfo.scheduledMessageParams))):t instanceof gt&&t.messageParams&&(r.messageParams=function(t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)({fileInfoList:t.fileInfoList,isReplyToChannel:t.isReplyToChannel,pushNotificationDeliveryOption:t.pushNotificationDeliveryOption})}(t.messageParams)),r},i.prototype._deserialize=function(e){return e=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},e),{messageId:parseInt(e.messageId)}),Qs.of(this._iid).buildMessageFromSerializedData(e)},i.prototype._deserializeWithMessageCreateParams=function(e){var t,n,r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var i,s,a,o,u,c,l=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(d){switch(d.label){case 0:return i=Qs.of(this._iid),s=this._deserialize(e),e.messageParams?s instanceof _t?(o=e.messageParams,s.messageParams=i.buildUserMessageCreateParamsFromSerializedData(o,s),[3,6]):[3,1]:[3,6];case 1:return s instanceof Tt?(o=e.messageParams).fileKey&&"string"==typeof o.fileKey&&sn(null!==(t=o.fileType)&&void 0!==t?t:"")?(a=o,[4,this.collection.getBlob(o.fileKey)]):[3,3]:[3,4];case 2:a.file=null!==(n=d.sent())&&void 0!==n?n:void 0,d.label=3;case 3:return s.messageParams=i.buildFileMessageCreateParamsFromSerializedData(o,s),[3,6];case 4:return s instanceof gt&&(o=e.messageParams)&&o.fileInfoList?(s.messageParams=i.buildMultipleFilesMessageCreateParamsFromSerializedData(o,s),[4,Promise.all(s.messageParams.fileInfoList.map((function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(l,void 0,void 0,(function(){var t,n,r,i,s;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(a){switch(a.label){case 0:return"string"==typeof(null===(n=e._uploadedMetaData)||void 0===n?void 0:n.fileKey)&&sn(null!==(i=null===(r=e._uploadedMetaData)||void 0===r?void 0:r.fileType)&&void 0!==i?i:"")?(t=e,[4,this.collection.getBlob(e._uploadedMetaData.fileKey)]):[3,2];case 1:t.file=null!==(s=a.sent())&&void 0!==s?s:void 0,a.label=2;case 2:return[2]}}))}))})))]):[3,6];case 5:d.sent(),d.label=6;case 6:return s.scheduledInfo&&e.scheduledInfo&&e.scheduledInfo.scheduledMessageParams?s instanceof _t?(u=e.scheduledInfo.scheduledMessageParams,s.scheduledInfo.scheduledMessageParams=i.buildScheduledUserMessageCreateParamsFromSerializedData(u,s),[3,10]):[3,7]:[3,10];case 7:return s instanceof Tt?(u=e.scheduledInfo.scheduledMessageParams).fileKey&&"string"==typeof u.fileKey&&"string"==typeof u.fileType&&sn(u.fileType)?(c=u,[4,this.collection.getBlob(u.fileKey)]):[3,9]:[3,10];case 8:c.file=null!==(r=d.sent())&&void 0!==r?r:void 0,d.label=9;case 9:s.scheduledInfo.scheduledMessageParams=i.buildScheduledFileMessageCreateParamsFromSerializedData(u,s),d.label=10;case 10:return[2,s]}}))}))},i.prototype._getFileInfoBlobKey=function(e,t){return"".concat(e,".").concat(t)},i.prototype.get=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return this.localCacheEnabled?[4,this.collection.getByKey("".concat(e))]:[3,2];case 1:if(t=n.sent())return[2,this._deserializeWithMessageCreateParams(t)];n.label=2;case 2:return[2,void 0]}}))}))},i.prototype.fetch=function(e){var t=e.channelUrl,n=e.filter,r=void 0===n?new Is:n,i=e.order,s=void 0===i?gs.CHANNEL_LATEST:i,a=e.sendingStatus,o=e.backward,u=void 0!==o&&o,c=e.parentMessageId;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,n,i,o,l=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(d){switch(d.label){case 0:return this.localCacheEnabled?(e=Ts(s),n={"/where":function(e){return!!(s!==gs.NEWEST_CHILD_MESSAGE||c&&0!==e.parentMessageId&&e.parentMessageId===c)&&r.match(l._deserialize(e))}},t&&(n.channelUrl=t),a&&(n.sendingStatus=a),i={where:n,index:e,backward:u},[4,this.collection.query(i)]):[3,3];case 1:return[4,d.sent().fetch({})];case 2:return o=d.sent(),[2,Promise.all(o.map((function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(l,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return[4,this._deserializeWithMessageCreateParams(e)];case 1:return[2,t.sent()]}}))}))})))];case 3:return[2,[]]}}))}))},i.prototype.getAllChildMessages=function(e,t){return void 0===t&&(t=new Is),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return[4,this.fetch({filter:t,order:gs.NEWEST_CHILD_MESSAGE,channelUrl:e.channelUrl,backward:!1,parentMessageId:e.messageId})];case 1:return[2,n.sent()]}}))}))},i.prototype.upsert=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return this.localCacheEnabled?[4,Promise.all(e.map((function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(t,void 0,void 0,(function(){var t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return e instanceof Tt||e instanceof gt?[4,this._mutex.lock()]:[3,4];case 1:return n.sent(),[4,this.saveBlob(e)];case 2:return n.sent(),[4,this._mutex.unlock()];case 3:n.sent(),n.label=4;case 4:return t=this._serialize(e),[4,this.collection.upsertOne(t)];case 5:return n.sent(),[2]}}))}))})))]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},i.prototype.upsertChildMessages=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return this.localCacheEnabled?[4,Promise.all(e.map((function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(t,void 0,void 0,(function(){var t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return t=[],e.threadInfo&&e.threadInfo.replyCount>0?[4,this.getAllChildMessages(e)]:[3,2];case 1:t=n.sent(),n.label=2;case 2:return t.length>0?(t.forEach((function(t){return t.applyParentMessage(e)})),[4,this.upsert(t)]):[3,4];case 3:n.sent(),n.label=4;case 4:return[2]}}))}))})))]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},i.prototype.remove=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,r,i,s,a;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(o){switch(o.label){case 0:if(!this.localCacheEnabled)return[3,8];o.label=1;case 1:o.trys.push([1,6,7,8]),t=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(e),n=t.next(),o.label=2;case 2:return n.done?[3,5]:(r=n.value,[4,this.collection.remove(r)]);case 3:o.sent(),o.label=4;case 4:return n=t.next(),[3,2];case 5:return[3,8];case 6:return i=o.sent(),s={error:i},[3,8];case 7:try{n&&!n.done&&(a=t.return)&&a.call(t)}finally{if(s)throw s.error}return[7];case 8:return[2]}}))}))},i.prototype.removeMessagesOfChannel=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return this.localCacheEnabled?[4,this.collection.removeIf({where:{channelUrl:e}})]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},i.prototype.clear=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return this.localCacheEnabled?[4,this.collection.clear()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},i.prototype.saveBlob=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,r,i=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(s){switch(s.label){case 0:return e instanceof Tt?e.messageParams&&(r=e.messageParams).file&&rn(r.file)?[4,this.collection.saveBlob(r.file,e.reqId)]:[3,2]:[3,5];case 1:n=s.sent(),r.fileKey=n,r.fileType=en.BLOB,s.label=2;case 2:return e.scheduledInfo&&e.scheduledInfo.scheduledMessageParams&&(t=e.scheduledInfo.scheduledMessageParams).file&&rn(t.file)?[4,this.collection.saveBlob(t.file,e.reqId)]:[3,4];case 3:n=s.sent(),t.fileKey=n,t.fileType=en.BLOB,s.label=4;case 4:return[3,7];case 5:return e instanceof gt&&(r=e.messageParams)&&r.fileInfoList&&Array.isArray(r.fileInfoList)?[4,Promise.all(r.fileInfoList.map((function(t,n){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(i,void 0,void 0,(function(){var r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(i){switch(i.label){case 0:return t.file&&rn(t.file)?[4,this.collection.saveBlob(t.file,this._getFileInfoBlobKey(e.reqId,n))]:[3,2];case 1:r=i.sent(),t._uploadedMetaData||(t._uploadedMetaData={}),t._uploadedMetaData.fileKey=r,t._uploadedMetaData.fileType=en.BLOB,i.label=2;case 2:return[2]}}))}))})))]:[3,7];case 6:s.sent(),s.label=7;case 7:return[2]}}))}))},i}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.jb),Os={},Rs=function(e){function t(t){var n=e.call(this,t)||this;return Os[t]=n,n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),Object.defineProperty(t.prototype,"_sdkState",{get:function(){return _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).sdkState},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_cacheContext",{get:function(){return _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).cacheContext},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_unsentMessageCache",{get:function(){return Ps.of(this._iid)},enumerable:!1,configurable:!0}),t.of=function(e,n){return void 0===n&&(n=!1),Os[e]&&!n||(Os[e]=new t(e)),Os[e]},Object.defineProperty(t.prototype,"collection",{get:function(){var e=this._cacheContext.nestdb;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(!!e).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.databaseError),e.collection(Qr)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"localCacheEnabled",{get:function(){return this._cacheContext.localCacheEnabled&&!!this.collection},enumerable:!1,configurable:!0}),t.prototype._serialize=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},e.serialize()),{messageId:"".concat(e.messageId)})},t.prototype._deserialize=function(e){return e=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},e),{messageId:parseInt(e.messageId)}),Qs.of(this._iid).buildMessageFromSerializedData(e)},t.prototype.get=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return this.localCacheEnabled?[4,this.collection.getByKey("".concat(e))]:[3,2];case 1:if(t=n.sent())return[2,this._deserialize(t)];n.label=2;case 2:return[2,void 0]}}))}))},t.prototype.fetch=function(e){var t=e.channelUrl,n=e.token,r=e.limit,i=void 0===r?100:r,s=e.filter,a=void 0===s?new Is:s,o=e.order,u=void 0===o?gs.CHANNEL_LATEST:o,c=e.backward,l=void 0!==c&&c,d=e.parentMessageId,h=e.isPollOnly,f=void 0!==h&&h,p=e.exactMatch,m=void 0!==p&&p,v=e.inclusive,y=void 0===v||v;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,r,s,o=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(c){switch(c.label){case 0:return this.localCacheEnabled?(e=Ts(u),r={where:{channelUrl:t,"/where":function(e){if(n)switch(u){case gs.CHANNEL_LATEST:if(m&&e.createdAt!==n)return!1;if(l){if(y&&e.createdAtn||!y&&e.createdAt>=n)return!1;break;case gs.NEWEST_CHILD_MESSAGE:if(!d||0===e.parentMessageId||e.parentMessageId!==d)return!1}return!(f&&!e._poll)&&a.match(o._deserialize(e))}},index:e,backward:l},[4,this.collection.query(r)]):[3,3];case 1:return[4,c.sent().fetch({limit:null!=i?i:void 0})];case 2:return s=c.sent(),[2,Promise.all(s.map((function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(o,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){return[2,this._deserialize(e)]}))}))})))];case 3:return[2,[]]}}))}))},t.prototype.getAllChildMessages=function(e,t){return void 0===t&&(t=new Is),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return[4,this.fetch({channelUrl:e.channelUrl,token:Date.now(),limit:null,backward:!1,filter:t,order:gs.NEWEST_CHILD_MESSAGE,parentMessageId:e.messageId})];case 1:return[2,n.sent()]}}))}))},t.prototype.upsert=function(e){var t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n,r,i,s,a,o,u,c,l=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(d){switch(d.label){case 0:return this.localCacheEnabled?[4,this.saveBlobs(e)]:[3,13];case 1:d.sent(),d.label=2;case 2:d.trys.push([2,7,8,9]),n=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(e),r=n.next(),d.label=3;case 3:return r.done?[3,6]:(i=r.value,(null===(t=i.threadInfo)||void 0===t?void 0:t._isUpdateRequired)?[4,this.get(i.messageId)]:[3,5]);case 4:(null==(s=d.sent())?void 0:s.threadInfo)&&i.threadInfo._updateFrom(s.threadInfo),d.label=5;case 5:return r=n.next(),[3,3];case 6:return[3,9];case 7:return a=d.sent(),u={error:a},[3,9];case 8:try{r&&!r.done&&(c=n.return)&&c.call(n)}finally{if(u)throw u.error}return[7];case 9:return o=e.map((function(e){return l._serialize(e)})),[4,this.collection.upsertMany(o)];case 10:return d.sent(),[4,this.upsertChildMessages(e)];case 11:return d.sent(),[4,this._unsentMessageCache.upsertChildMessages(e)];case 12:d.sent(),d.label=13;case 13:return[2]}}))}))},t.prototype.upsertChildMessages=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return this.localCacheEnabled?[4,Promise.all(e.map((function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(t,void 0,void 0,(function(){var t,n;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(r){switch(r.label){case 0:return t=[],(null===(n=e.threadInfo)||void 0===n?void 0:n.replyCount)&&e.threadInfo.replyCount>0?[4,this.getAllChildMessages(e)]:[3,2];case 1:t=r.sent(),r.label=2;case 2:return t.length>0?(t.forEach((function(t){return t.applyParentMessage(e)})),[4,this.upsert(t)]):[3,4];case 3:r.sent(),r.label=4;case 4:return[2]}}))}))})))]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},t.prototype.remove=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,r,i,s,a;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(o){switch(o.label){case 0:if(!this.localCacheEnabled)return[3,8];o.label=1;case 1:o.trys.push([1,6,7,8]),t=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(e),n=t.next(),o.label=2;case 2:return n.done?[3,5]:(r=n.value,[4,this.collection.remove("".concat(r))]);case 3:o.sent(),o.label=4;case 4:return n=t.next(),[3,2];case 5:return[3,8];case 6:return i=o.sent(),s={error:i},[3,8];case 7:try{n&&!n.done&&(a=t.return)&&a.call(t)}finally{if(s)throw s.error}return[7];case 8:return[2]}}))}))},t.prototype.removeMessagesOfChannel=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return this.localCacheEnabled?[4,this.collection.removeIf({where:{channelUrl:e},index:Ts(gs.CHANNEL_LATEST)})]:[3,6];case 1:return n.sent(),[4,(t=this._cacheContext.preference).remove("sendbird:".concat(this._sdkState.userId,"@groupchannel/").concat(e,"/message/sync"))];case 2:return n.sent(),[4,t.remove("sendbird:".concat(this._sdkState.userId,"@groupchannel/").concat(e,"/message/sync.meta"))];case 3:return n.sent(),[4,t.remove("sendbird:".concat(this._sdkState.userId,"@groupchannel/").concat(e,"/message/changelogs"))];case 4:return n.sent(),[4,t.remove("sendbird:".concat(this._sdkState.userId,"@groupchannel/").concat(e,"/message/changelogs.meta"))];case 5:n.sent(),n.label=6;case 6:return[2]}}))}))},t.prototype.removeUnderOffset=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return this.localCacheEnabled?[4,this.collection.removeIf({where:{channelUrl:e,createdAt:{"<":t}},index:Ts(gs.CHANNEL_LATEST)})]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},t.prototype.clear=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return this.localCacheEnabled?[4,this.collection.clear()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},t.prototype.countBetween=function(e,t,n){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var r,i=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(s){switch(s.label){case 0:return this.localCacheEnabled?(r=Ts(gs.CHANNEL_LATEST),[4,this.collection.query({where:{channelUrl:e,"/where":function(e){var r=i._deserialize(e);return n.includes(r.createdAt)&&t.match(r)}},index:r}).count()]):[3,2];case 1:return[2,s.sent()];case 2:return[2,0]}}))}))},t.prototype.saveBlobs=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return[4,Promise.all(e.map((function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(t,void 0,void 0,(function(){var t,n;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(r){switch(r.label){case 0:return e instanceof Tt&&e.messageParams&&(t=e.messageParams).file&&rn(t.file)?[4,this.collection.saveBlob(t.file,e.reqId)]:[3,2];case 1:n=r.sent(),t.fileKey=n,r.label=2;case 2:return[2]}}))}))})))];case 1:return n.sent(),[2]}}))}))},t.prototype._getGroupChannelPreferenceSize=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,r,i,s,a;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(o){switch(o.label){case 0:return t=0,[4,(n=this._cacheContext.preference).get("sendbird:".concat(this._sdkState.userId,"@groupchannel/").concat(e,"/message/sync"))];case 1:return r=o.sent(),[4,n.get("sendbird:".concat(this._sdkState.userId,"@groupchannel/").concat(e,"/message/sync.meta"))];case 2:return i=o.sent(),[4,n.get("sendbird:".concat(this._sdkState.userId,"@groupchannel/").concat(e,"/message/changelogs"))];case 3:return s=o.sent(),[4,n.get("sendbird:".concat(this._sdkState.userId,"@groupchannel/").concat(e,"/message/changelogs.meta"))];case 4:return a=o.sent(),r&&(t+=JSON.stringify(r).length),i&&(t+=JSON.stringify(i).length),s&&(t+=JSON.stringify(s).length),a&&(t+=JSON.stringify(a).length),[2,t]}}))}))},t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.jb),xs={},Ds=function(e){function t(t){var n=e.call(this,t)||this;return xs[t]=n,n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),Object.defineProperty(t.prototype,"_sdkState",{get:function(){return _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).sdkState},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_cacheContext",{get:function(){return _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).cacheContext},enumerable:!1,configurable:!0}),t.of=function(e,n){return void 0===n&&(n=!1),xs[e]&&!n||(xs[e]=new t(e)),xs[e]},Object.defineProperty(t.prototype,"collection",{get:function(){var e=this._cacheContext.nestdb;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(!!e).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.databaseError),e.collection(Hr)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"localCacheEnabled",{get:function(){return this._cacheContext.localCacheEnabled&&!!this.collection},enumerable:!1,configurable:!0}),t.prototype._serialize=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},e.serialize())},t.prototype._deserialize=function(e){return Qs.of(this._iid).buildMessageFromSerializedData(e)},t.prototype.get=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return this.localCacheEnabled?[4,this.collection.getByKey(e)]:[3,2];case 1:if(t=n.sent())return[2,this._deserialize(t)];n.label=2;case 2:return[2,void 0]}}))}))},t.prototype.fetch=function(e){var t=e.channelUrl,n=e.token,r=e.limit,i=void 0===r?100:r,s=e.filter,a=void 0===s?new Is:s,o=e.backward,u=void 0!==o&&o,c=e.exactMatch,l=void 0!==c&&c,d=e.inclusive,h=void 0===d||d;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,r=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(s){switch(s.label){case 0:return this.localCacheEnabled?(e={where:{channelUrl:t,"/where":function(e){if(n){if(l&&e.createdAt!==n)return!1;if(u){if(h&&e.createdAtn||!h&&e.createdAt>=n)return!1}return a.match(r._deserialize(e))}},index:["channelUrl","-createdAt","-notificationId"],backward:u},[4,this.collection.query(e)]):[3,3];case 1:return[4,s.sent().fetch({limit:null!=i?i:void 0})];case 2:return[2,s.sent().map((function(e){return r._deserialize(e)}))];case 3:return[2,[]]}}))}))},t.prototype.upsert=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(r){switch(r.label){case 0:return this.localCacheEnabled?(t=e.map((function(e){return n._serialize(e)})),[4,this.collection.upsertMany(t)]):[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}}))}))},t.prototype.remove=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,r,i,s,a;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(o){switch(o.label){case 0:if(!this.localCacheEnabled)return[3,8];o.label=1;case 1:o.trys.push([1,6,7,8]),t=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(e),n=t.next(),o.label=2;case 2:return n.done?[3,5]:(r=n.value,[4,this.collection.remove(r)]);case 3:o.sent(),o.label=4;case 4:return n=t.next(),[3,2];case 5:return[3,8];case 6:return i=o.sent(),s={error:i},[3,8];case 7:try{n&&!n.done&&(a=t.return)&&a.call(t)}finally{if(s)throw s.error}return[7];case 8:return[2]}}))}))},t.prototype.markAsReadByTimestamp=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return this.localCacheEnabled?[4,this.collection.updateIf({where:{channelUrl:e,messageStatus:lt.SENT,createdAt:{"<":t}}},{set:{messageStatus:lt.READ}})]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},t.prototype.markAsReadByMessageIds=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return this.localCacheEnabled?[4,this.collection.updateIf({where:{channelUrl:e,notificationId:{"/in":t},messageStatus:lt.SENT}},{set:{messageStatus:lt.READ}})]:[3,2];case 1:return[2,n.sent().length];case 2:return[2,0]}}))}))},t.prototype.removeMessagesOfChannel=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return this.localCacheEnabled?[4,this.collection.removeIf({where:{channelUrl:e},index:["channelUrl","-createdAt","-notificationId"]})]:[3,6];case 1:return n.sent(),[4,(t=this._cacheContext.preference).remove("sendbird:".concat(this._sdkState.userId,"@groupchannel/").concat(e,"/message/sync"))];case 2:return n.sent(),[4,t.remove("sendbird:".concat(this._sdkState.userId,"@groupchannel/").concat(e,"/message/sync.meta"))];case 3:return n.sent(),[4,t.remove("sendbird:".concat(this._sdkState.userId,"@groupchannel/").concat(e,"/message/changelogs"))];case 4:return n.sent(),[4,t.remove("sendbird:".concat(this._sdkState.userId,"@groupchannel/").concat(e,"/message/changelogs.meta"))];case 5:n.sent(),n.label=6;case 6:return[2]}}))}))},t.prototype.removeUnderOffset=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return this.localCacheEnabled?[4,this.collection.removeIf({where:{channelUrl:e,createdAt:{"<":t}},index:Ts(gs.CHANNEL_LATEST)})]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},t.prototype.clear=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return this.localCacheEnabled?[4,this.collection.clear()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},t.prototype.countBetween=function(e,t,n){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var r,i=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(s){switch(s.label){case 0:return this.localCacheEnabled?(r=["channelUrl","-createdAt","-notificationId"],[4,this.collection.query({where:{channelUrl:e,"/where":function(e){var r=i._deserialize(e);return n.includes(r.createdAt)&&t.match(r)}},index:r}).count()]):[3,2];case 1:return[2,s.sent()];case 2:return[2,0]}}))}))},t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.jb),Ls={},Fs=function(e){function t(t){var n=e.call(this,t)||this;return n._observers=new Map,n._dispatcherContext=n._dispatcher.on((function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(n,void 0,void 0,(function(){var t,n,r,i,s,a,o,u,c,l,d,h,f,p,m,v,y,_,g,b=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(E){switch(E.label){case 0:return e instanceof _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rb?(t=e.messages,g=e.source,a=e.isWebSocketEventComing,n=t.filter((function(e){return e instanceof dt&&e.channelType!==_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.OPEN&&e.messageId>0})),r=t.filter((function(e){return e instanceof dt&&e.channelType!==_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.OPEN&&0===e.messageId})),i=t.filter((function(e){return e instanceof bt})),n.length>0?[4,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.yc)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(b,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return[4,this._messageCache.upsert(n)];case 1:return e.sent(),[4,this._unsentMessageCache.remove(n.map((function(e){return e instanceof ht?e.reqId:null})).filter((function(e){return null!==e})))];case 2:return e.sent(),[2]}}))}))}))]:[3,2]):[3,7];case 1:E.sent(),a||this._broadcastUpdateEvent(n,g),E.label=2;case 2:return r.length>0?[4,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.yc)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(b,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return[4,this._unsentMessageCache.upsert(r)];case 1:return e.sent(),[2]}}))}))}))]:[3,4];case 3:E.sent(),a||this._broadcastUpdateEvent(r,g),E.label=4;case 4:return i.length>0?[4,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.yc)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(b,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return[4,this._notificationCache.upsert(i)];case 1:return e.sent(),[2]}}))}))}))]:[3,6];case 5:E.sent(),a||this._broadcastUpdateEvent(i,g),E.label=6;case 6:return[3,24];case 7:return e instanceof _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Z?(s=e.messageIds,g=e.source,a=e.isWebSocketEventComing,o=s.filter((function(e){return"number"==typeof e})),u=s.filter((function(e){return"string"==typeof e})),[4,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.yc)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(b,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return o.length>0?[4,this._messageCache.remove(o)]:[3,2];case 1:e.sent(),e.label=2;case 2:return u.length>0?[4,this._notificationCache.remove(u)]:[3,4];case 3:e.sent(),e.label=4;case 4:return[2]}}))}))}))]):[3,9];case 8:return E.sent(),a||this._broadcastRemoveEvent(s,g),[3,24];case 9:return e instanceof _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Y?(c=e.reqId,g=e.source,[4,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.yc)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(b,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return[4,this._unsentMessageCache.remove([c])];case 1:return e.sent(),[2]}}))}))}))]):[3,11];case 10:return E.sent(),this._broadcastRemoveUnsentEvent(c,g),[3,24];case 11:return e instanceof _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.X?(l=e.polls,g=e.source,this._cacheContext.localCacheEnabled?(d=l.map((function(e){return e.messageId})),[4,Promise.all(d.map((function(e){return b._messageCache.get(e)})))]):[3,14]):[3,15];case 12:return(h=E.sent().filter((function(e){return e}))).length>0&&l.forEach((function(e){var t=h.find((function(t){return t.messageId===e.messageId}));t&&t.applyPoll(e)})),[4,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.yc)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(b,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return[4,this._messageCache.upsert(h)];case 1:return[2,e.sent()]}}))}))}))];case 13:E.sent(),E.label=14;case 14:return this._broadcastPollChangeLogEvent(l,g),[3,24];case 15:return e instanceof _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.W?(f=e.event,g=e.source,[4,this._messageCache.get(f.messageId)]):[3,19];case 16:return(p=E.sent())&&p.isUserMessage()&&p.poll&&p.poll.applyPollUpdateEvent(f)?[4,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.yc)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(b,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return[4,this._messageCache.upsert([p])];case 1:return[2,e.sent()]}}))}))}))]:[3,18];case 17:E.sent(),E.label=18;case 18:return this._broadcastPollUpdateEvent(f,g),[3,24];case 19:return e instanceof _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.P?(m=e.event,g=e.source,[4,this._messageCache.get(m.messageId)]):[3,23];case 20:return(v=E.sent())&&v.isUserMessage()&&v.poll&&v.poll.applyPollVoteEvent(m)?[4,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.yc)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(b,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return[4,this._messageCache.upsert([v])];case 1:return[2,e.sent()]}}))}))}))]:[3,22];case 21:E.sent(),E.label=22;case 22:return this._broadcastPollVoteEvent(m,g),[3,24];case 23:e instanceof _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.U?(y=e.event,g=e.source,y.messageId>0&&this._broadcastReactionUpdateEvent(y,g)):e instanceof _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.V&&(_=e.event,g=e.source,this._broadcastThreadUpdateEvent(_,g)),E.label=24;case 24:return[2]}}))}))})),n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),Object.defineProperty(t.prototype,"_cacheContext",{get:function(){return _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).cacheContext},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_dispatcher",{get:function(){return _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).dispatcher},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_messageCache",{get:function(){return Rs.of(this._iid)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_unsentMessageCache",{get:function(){return Ps.of(this._iid)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_notificationCache",{get:function(){return Ds.of(this._iid)},enumerable:!1,configurable:!0}),t.of=function(e,n){var r;return void 0===n&&(n=!1),Ls[e]&&!n||(Ls[e]&&(null===(r=Ls[e]._dispatcherContext)||void 0===r||r.close()),Ls[e]=new t(e)),Ls[e]},t.prototype._broadcastUpdateEvent=function(e,t){var n,r;try{for(var i=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._observers.values()),s=i.next();!s.done;s=i.next()){var a=s.value;a.onUpdate&&a.onUpdate(e,t)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},t.prototype._broadcastPollChangeLogEvent=function(e,t){var n,r;try{for(var i=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._observers.values()),s=i.next();!s.done;s=i.next()){var a=s.value;a.onPollChangeLogUpdate&&a.onPollChangeLogUpdate(e,t)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},t.prototype._broadcastPollUpdateEvent=function(e,t){var n,r;try{for(var i=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._observers.values()),s=i.next();!s.done;s=i.next()){var a=s.value;a.onPollUpdate&&a.onPollUpdate(e,t)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},t.prototype._broadcastPollVoteEvent=function(e,t){var n,r;try{for(var i=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._observers.values()),s=i.next();!s.done;s=i.next()){var a=s.value;a.onPollVote&&a.onPollVote(e,t)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},t.prototype._broadcastRemoveEvent=function(e,t){var n,r;try{for(var i=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._observers.values()),s=i.next();!s.done;s=i.next()){var a=s.value;a.onRemove&&a.onRemove(e,t)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},t.prototype._broadcastRemoveUnsentEvent=function(e,t){var n,r;try{for(var i=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._observers.values()),s=i.next();!s.done;s=i.next()){var a=s.value;a.onRemoveUnsent&&a.onRemoveUnsent(e,t)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},t.prototype._broadcastReactionUpdateEvent=function(e,t){var n,r;try{for(var i=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._observers.values()),s=i.next();!s.done;s=i.next()){var a=s.value;a.onReactionUpdate&&a.onReactionUpdate(e,t)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},t.prototype._broadcastThreadUpdateEvent=function(e,t){var n,r;try{for(var i=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._observers.values()),s=i.next();!s.done;s=i.next()){var a=s.value;a.onThreadInfoUpdate&&a.onThreadInfoUpdate(e,t)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},t.prototype.subscribe=function(e,t){this._observers.set(e,t)},t.prototype.unsubscribe=function(e){this._observers.delete(e)},t.prototype.unsubscribeAll=function(){this._observers.clear()},t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.jb),qs=function(t){function n(n){var r=this,s=n.reverse,a=void 0!==s&&s,o=n.limit,u=void 0===o?20:o,c=n.keys,l=n.token;return(r=t.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,r.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ab),r.params=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)({token:l,limit:u,reverse:a,order:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bb.UPDATED_AT,show_ui_template:!0,show_color_variables:!0,keys:c}),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),zs=function(e){function t(t,n){var r=e.call(this,t,n)||this,i=n.next,s=n.has_more,a=void 0!==s&&s,o=n.templates;return r.nextToken=i,r.hasMore=a,r.templates=o.map((function(e){return{template:JSON.stringify(e)}})),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),Bs=function(e){function t(t){var n=this,r=t.key;return(n=e.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,n.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ab,"/").concat(r),n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Ks=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.template=JSON.stringify(n),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),js={},Qs=function(){function n(e,t){var n=t.sdkState,r=t.dispatcher,i=t.requestQueue,s=t.onlineDetector,a=t.cacheContext;this._iid=e,this._sdkState=n,this._requestQueue=i,this._dispatcher=r,this._cacheContext=a,Rs.of(e),Ps.of(e),Fs.of(e),this.fileMessageQueue=new kt(e,{sdkState:n,dispatcher:r,requestQueue:i,onlineDetector:s,cacheContext:a}),js[e]=this}return n.of=function(e){return js[e]},n.prototype.buildMessageFromSerializedData=function(e){var t=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.xc)(e);if(t.notificationId)return new bt(this._iid,bt.payloadify(t));switch(t.messageType){case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.lb.USER:return new _t(this._iid,_t.payloadify(t));case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.lb.FILE:return gt._isMultipleFilesMessageSerializedData(t)?new gt(this._iid,gt.payloadify(t)):new Tt(this._iid,Tt.payloadify(t));case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.lb.ADMIN:return new mt(this._iid,mt.payloadify(t))}throw _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters},n.prototype.buildUserMessageCreateParamsFromSerializedData=function(n,r){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({data:r.data,customType:r.customType,mentionType:r.mentionType,mentionedUserIds:r.mentionedUserIds,mentionedUsers:r.mentionedUsers,mentionedMessageTemplate:r.mentionedMessageTemplate,metaArrays:r.metaArrays,parentMessageId:r.parentMessageId,isReplyToChannel:n.isReplyToChannel,pushNotificationDeliveryOption:n.pushNotificationDeliveryOption,appleCriticalAlertOptions:r.appleCriticalAlertOptions,reqId:r.reqId,message:r.message,translationTargetLanguages:Object.keys(r.translations),pollId:n.pollId}))},n.prototype.buildFileMessageCreateParamsFromSerializedData=function(n,r){var i;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({data:r.data,customType:r.customType,mentionType:r.mentionType,mentionedUserIds:r.mentionedUserIds,mentionedUsers:r.mentionedUsers,mentionedMessageTemplate:r.mentionedMessageTemplate,metaArrays:r.metaArrays,parentMessageId:r.parentMessageId,isReplyToChannel:n.isReplyToChannel,pushNotificationDeliveryOption:n.pushNotificationDeliveryOption,appleCriticalAlertOptions:r.appleCriticalAlertOptions,reqId:r.reqId,file:n.file,fileKey:n.fileKey,fileUrl:r.plainUrl,fileName:r.name,fileSize:r.size,mimeType:r.type,thumbnailSizes:null===(i=r.thumbnails)||void 0===i?void 0:i.map((function(e){return{maxWidth:e.width,maxHeight:e.height}})),fileType:n.fileType,requireAuth:r.requireAuth}))},n.prototype.buildMultipleFilesMessageCreateParamsFromSerializedData=function(t,n){var r=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)({data:n.data,customType:n.customType,mentionType:n.mentionType,mentionedUserIds:n.mentionedUserIds,mentionedUsers:n.mentionedUsers,mentionedMessageTemplate:n.mentionedMessageTemplate,metaArrays:n.metaArrays,parentMessageId:n.parentMessageId,isReplyToChannel:t.isReplyToChannel,pushNotificationDeliveryOption:t.pushNotificationDeliveryOption,appleCriticalAlertOptions:n.appleCriticalAlertOptions,reqId:n.reqId,fileInfoList:t.fileInfoList.map((function(e){return new wt(r._iid,e)}))})},n.prototype.buildScheduledUserMessageCreateParamsFromSerializedData=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},this.buildUserMessageCreateParamsFromSerializedData(e,t)),{scheduledAt:e.scheduledAt})},n.prototype.buildScheduledFileMessageCreateParamsFromSerializedData=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},this.buildFileMessageCreateParamsFromSerializedData(e,t)),{scheduledAt:e.scheduledAt})},n.prototype.buildSenderFromSerializedData=function(e){var t=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.xc)(e);return new Be(this._iid,Be.payloadify(t))},n.prototype.getMessage=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(r){switch(r.label){case 0:return t=new Lt(e),[4,this._requestQueue.send(t)];case 1:return[2,r.sent().as(Ft).message]}}))}))},n.prototype.getScheduledMessage=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(r){switch(r.label){case 0:return t=new jt(e),[4,this._requestQueue.send(t)];case 1:return[2,r.sent().as(Qt).message]}}))}))},n.prototype.getMessagesByMessageId=function(e,t,n,r,i){return void 0===i&&(i=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.REQUEST_MESSAGE),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var s,a,o;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(c){switch(c.label){case 0:return s=new qt(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({channelType:t,channelUrl:e,token:String(n)},Ot),r)),[4,this._requestQueue.send(s)];case 1:return a=c.sent(),o=a.as(zt).messages,this._dispatcher.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rb({messages:o,source:i})),[2,o]}}))}))},n.prototype.getMessagesByTimestamp=function(e,t,n,r,i){return void 0===i&&(i=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.REQUEST_MESSAGE),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var s,a,o;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(c){switch(c.label){case 0:return s=new qt(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({channelType:t,channelUrl:e,timestamp:n},Ot),r)),[4,this._requestQueue.send(s)];case 1:return a=c.sent(),o=a.as(zt).messages,this._dispatcher.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rb({messages:o,source:i})),[2,o]}}))}))},n.prototype._getMessagesByTimestampForCollection=function(e,t,n,r,i,s,a){return void 0===i&&(i=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.REQUEST_MESSAGE),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var o,c,l,d,h,f;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(p){switch(p.label){case 0:return o=new qt(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({channelType:t,channelUrl:e,timestamp:n},Ot),r),{checkingHasNext:s,checkingContinuousMessages:a})),[4,this._requestQueue.send(o)];case 1:return c=p.sent(),l=c.as(zt),d=l.messages,h=l.isContinuousMessages,f=l.hasNext,this._dispatcher.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rb({messages:d,source:i})),[2,{messages:d,isContinuousMessages:h,hasNext:f}]}}))}))},n.prototype.getThreadedMessagesByTimestamp=function(e,t,n,r){return void 0===r&&(r=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.REQUEST_THREADED_MESSAGE),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var i,s,a,o;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(c){switch(c.label){case 0:return i=new qt(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({channelUrl:e.channelUrl,channelType:e.channelType,timestamp:t},ft),n),{replyType:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Db.ALL,parentMessageId:e.messageId,includeThreadInfo:!0})),[4,this._requestQueue.send(i)];case 1:return s=c.sent(),a=s.as(zt).messages,(o=a.slice(1)).forEach((function(t){t.parentMessage=e})),this._dispatcher.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rb({messages:o,source:r})),[2,{parentMessage:a[0],threadedMessages:o}]}}))}))},n.prototype.getMessageTemplatesByToken=function(e,t){return void 0===t&&(t={}),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n,r,i,s,a,o;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(c){switch(c.label){case 0:return n=new qs(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({token:e},t)),[4,this._requestQueue.send(n)];case 1:return r=c.sent(),i=r.as(zs),s=i.hasMore,a=i.nextToken,o=i.templates,[2,{hasMore:s,token:a,templates:o}]}}))}))},n.prototype.getMessageTemplate=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(r){switch(r.label){case 0:return t=new Bs({key:e}),[4,this._requestQueue.send(t)];case 1:return[2,{template:r.sent().as(Ks).template}]}}))}))},n.prototype.getMessageChangelogs=function(n,r,i,s,a){return void 0===a&&(a=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.REQUEST_MESSAGE_CHANGELOGS),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var o,c,l,d,h,f,p,m;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(v){switch(v.label){case 0:return o=new Bt(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({channelType:r,channelUrl:n,timestamp:"number"==typeof i?i:null,token:"string"==typeof i?i:null},xt),s)))),[4,this._requestQueue.send(o)];case 1:return c=v.sent(),l=c.as(Kt),d=l.updatedMessages,h=l.deletedMessagesInfo,f=l.hasMore,p=l.nextToken,m=h.map((function(e){return e.messageId})),d.length>0&&this._dispatcher.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rb({messages:d,source:a})),m.length>0&&this._dispatcher.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Z({messageIds:m,source:a})),[2,{updatedMessages:d,deletedMessageIds:m,hasMore:f,token:p}]}}))}))},n}(),Gs=function(e){function t(t,n){var r=e.call(this,t)||this;r.targetMessageId=0;var i=n.thread_info,s=n.parent_message_id,a=n.channel_url,o=n.channel_type;return i&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("object",i)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",s)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",a)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",o)&&(r.threadInfo=new Pe(t,i),r.targetMessageId=s,r.channelUrl=a,r.channelType=o),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.jb),Vs={channelUrl:"",channelType:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.BASE,messageId:0,includeReactions:!1,includeMetaArray:!1,includeParentMessageInfo:!1,includeThreadInfo:!1},Hs=function(e){function t(t){var n=t.channelCustomType,r=t.keyword,s=t.limit,a=t.reverse,o=t.exactMatch,u=t.channelUrl,c=t.order,l=t.messageTimestampFrom,d=t.messageTimestampTo,h=t.advancedQuery,f=t.targetFields,p=t.nextToken,m=e.call(this)||this;return m.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,m.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.cb,"/messages"),m.params={custom_type:n,query:r,limit:s,reverse:a,exact_match:o,channel_url:u,message_ts_from:l,message_ts_to:d,sort_field:c,advanced_query:h,target_fields:f,after:p},m}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Ws=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.messages=n.results.map((function(e){return Et(t,e)})),r.hasNext=n.has_next,r.nextToken=n.end_cursor,r.totalCount=n.total_count,r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc);!function(e){e.SCORE="score",e.TIMESTAMP="ts"}(Es||(Es={}));var Ys=function(e){function i(t,n){var r,i,s,a,o,u,c,l,d,h=this;return(h=e.call(this,t,n)||this).keyword="",h.reverse=!1,h.exactMatch=!1,h.channelUrl="",h.channelCustomType="",h.messageTimestampFrom=null,h.messageTimestampTo=null,h.order=Es.SCORE,h.advancedQuery=!1,h.targetFields=null,h._nextToken="",h.totalCount=-1,h.keyword=n.keyword,h.reverse=null!==(r=n.reverse)&&void 0!==r&&r,h.exactMatch=null!==(i=n.exactMatch)&&void 0!==i&&i,h.channelUrl=null!==(s=n.channelUrl)&&void 0!==s?s:"",h.channelCustomType=null!==(a=n.channelCustomType)&&void 0!==a?a:"",h.messageTimestampFrom=null!==(o=n.messageTimestampFrom)&&void 0!==o?o:null,h.messageTimestampTo=null!==(u=n.messageTimestampTo)&&void 0!==u?u:null,h.order=null!==(c=n.order)&&void 0!==c?c:Es.SCORE,h.advancedQuery=null!==(l=n.advancedQuery)&&void 0!==l&&l,h.targetFields=null!==(d=n.targetFields)&&void 0!==d?d:null,h}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(i,e),i.prototype._validate=function(){return e.prototype._validate.call(this)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",this.keyword)&&this.keyword.length>0&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",this.reverse)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",this.exactMatch)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",this.channelUrl)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",this.channelCustomType)&&(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",this.messageTimestampFrom)||null===this.messageTimestampFrom)&&(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",this.messageTimestampTo)||null===this.messageTimestampTo)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(Es,this.order)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",this.advancedQuery)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",this.targetFields,!0)},i.prototype.next=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,r,i,s,a,o,c,l;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(d){switch(d.label){case 0:return this._validate()?this._isLoading?[3,3]:this._hasNext?(this._isLoading=!0,e=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,r=new Hs(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},this),{nextToken:this._nextToken?this._nextToken:null}))),[4,e.send(r)]):[3,2]:[3,5];case 1:return i=d.sent(),s=i.as(Ws),a=s.messages,o=s.hasNext,c=s.nextToken,l=s.totalCount,this._nextToken=c,this._hasNext=o,this._isLoading=!1,this.totalCount=l,[2,a];case 2:return[2,[]];case 3:throw _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.queryInProgress;case 4:return[3,6];case 5:throw _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters;case 6:return[2]}}))}))},i}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.R),Js=function(n){function s(r){var s=r.channelType,a=r.channelUrl,o=r.limit,u=r.token,c=n.call(this)||this;return c.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,c.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(s),"/").concat(encodeURIComponent(a),"/messages/parent_thread_message"),c.params=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({limit:o,token:u})),c}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(s,n),s}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Xs=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.token=n.next,r.messages=n.messages.map((function(e){return Et(t,e)})),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),Zs=function(e){function t(t,n,r,i){var s=e.call(this,t,n,r,i)||this;return s._edge="",s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t.prototype._validate=function(){return e.prototype._validate.call(this)},t.prototype.load=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t,r,i,s,a;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(o){switch(o.label){case 0:return this._validate()?this._isLoading?[3,3]:this._hasNext?(this._isLoading=!0,e=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,t=new Js({channelType:this.channelType,channelUrl:this.channelUrl,token:this._edge,limit:this.limit}),[4,e.send(t)]):[3,2]:[3,5];case 1:return r=o.sent(),i=r.as(Xs),s=i.messages,a=i.token,this._edge=a,this._hasNext=!!a,this._isLoading=!1,[2,s];case 2:return[2,[]];case 3:throw _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.queryInProgress;case 4:return[3,6];case 5:throw _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters;case 6:return[2]}}))}))},t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Fb),$s={channelUrl:"",scheduledMessageId:0},ea={reverse:!1,limit:20},ta=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="message",t}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t.prototype.init=function(t,n){var r=n.sdkState,i=n.dispatcher,s=n.sessionManager,a=n.requestQueue,o=n.logger,u=n.onlineDetector,c=n.cacheContext;e.prototype.init.call(this,t,{sdkState:r,dispatcher:i,sessionManager:s,requestQueue:a,logger:o,onlineDetector:u,cacheContext:c}),this._manager=new Qs(t,{sdkState:r,dispatcher:i,requestQueue:a,onlineDetector:u,cacheContext:c})},t.prototype.buildMessageFromSerializedData=function(e){return this._manager.buildMessageFromSerializedData(e)},t.prototype.buildSenderFromSerializedData=function(e){return this._manager.buildSenderFromSerializedData(e)},t.prototype.getMessage=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(r){switch(r.label){case 0:return t=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},Vs),e),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.channelUrl)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d,e.channelType)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e.messageId)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.includeReactions,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.includeMetaArray,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.includeParentMessageInfo,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.includeThreadInfo,!0)}(t)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),[4,this._manager.getMessage(t)];case 1:if((n=r.sent())instanceof dt||n instanceof bt||null===n)return[2,n];throw"Unknown message type is given."}}))}))},t.prototype.getScheduledMessage=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){return t=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},$s),e),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.channelUrl)&&""!==e.channelUrl&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e.scheduledMessageId)&&e.scheduledMessageId>0}(t)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),[2,this._manager.getScheduledMessage(t)]}))}))},t.prototype.getMessageTemplatesByToken=function(e,t){return void 0===t&&(t={}),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(r){return n=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},ea),t),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e,!0)&&function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.reverse,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e.limit,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",e.keys,!0)}(n)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),[2,this._manager.getMessageTemplatesByToken(e,n)]}))}))},t.prototype.getMessageTemplate=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),[2,this._manager.getMessageTemplate(e)]}))}))},t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.db)},"./node_modules/@sendbird/chat/lib/__bundle-17fdda58.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return hs})),__webpack_require__.d(__webpack_exports__,"b",(function(){return Kt})),__webpack_require__.d(__webpack_exports__,"c",(function(){return zt})),__webpack_require__.d(__webpack_exports__,"d",(function(){return vs})),__webpack_require__.d(__webpack_exports__,"e",(function(){return cs})),__webpack_require__.d(__webpack_exports__,"f",(function(){return en})),__webpack_require__.d(__webpack_exports__,"g",(function(){return As})),__webpack_require__.d(__webpack_exports__,"h",(function(){return Cr})),__webpack_require__.d(__webpack_exports__,"i",(function(){return jt})),__webpack_require__.d(__webpack_exports__,"j",(function(){return rs})),__webpack_require__.d(__webpack_exports__,"k",(function(){return rn})),__webpack_require__.d(__webpack_exports__,"l",(function(){return on})),__webpack_require__.d(__webpack_exports__,"m",(function(){return un})),__webpack_require__.d(__webpack_exports__,"n",(function(){return nn})),__webpack_require__.d(__webpack_exports__,"o",(function(){return sn})),__webpack_require__.d(__webpack_exports__,"p",(function(){return _n})),__webpack_require__.d(__webpack_exports__,"q",(function(){return pn})),__webpack_require__.d(__webpack_exports__,"r",(function(){return an})),__webpack_require__.d(__webpack_exports__,"s",(function(){return fs}));var qt,e,_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-c578be85.js"),_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-121c0f7c.js"),_bundle_4d8e37ce_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-4d8e37ce.js"),_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-cce5a3db.js");(e=qt||(qt={})).NONE="none",e.JOINED="joined",e.INVITED="invited",e.LEFT="left";var zt,Wt,jt,Qt,Yt,Kt,Jt,Xt,Zt=function(a){function o(e,t){var n=a.call(this,e,t)||this;return n.state=null,n.role=null,n.isMuted=!1,n.isBlockedByMe=!1,n.isBlockingMe=!1,n.state=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(qt,t.state)?t.state:null,n.role=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.F,t.role)?t.role:null,"boolean"==typeof t.is_muted&&(n.isMuted=t.is_muted),"boolean"==typeof t.is_blocked_by_me&&(n.isBlockedByMe=t.is_blocked_by_me),"boolean"==typeof t.is_blocking_me&&(n.isBlockingMe=t.is_blocking_me),n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(o,a),o.payloadify=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},a.payloadify.call(this,e)),{state:e.state,role:e.role,is_muted:e.isMuted,is_blocked_by_me:e.isBlockedByMe,is_blocking_me:e.isBlockingMe})))},o}(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.e);!function(e){e.ALL="all",e.PUBLIC="public",e.PRIVATE="private"}(zt||(zt={})),function(e){e.ALL="all",e.JOINED="joined_only",e.INVITED="invited_only",e.INVITED_BY_FRIEND="invited_by_friend",e.INVITED_BY_NON_FRIEND="invited_by_non_friend"}(Wt||(Wt={})),function(e){e.ALL="all",e.SUPER="super",e.NON_SUPER="nonsuper",e.BROADCAST_ONLY="broadcast_only",e.EXCLUSIVE_ONLY="exclusive_only"}(jt||(jt={})),function(e){e.ALL="all",e.UNREAD_MESSAGE="unread_message"}(Qt||(Qt={})),function(e){e.ALL="all",e.UNHIDDEN="unhidden_only",e.HIDDEN="hidden_only",e.HIDDEN_ALLOW_AUTO_UNHIDE="hidden_allow_auto_unhide",e.HIDDEN_PREVENT_AUTO_UNHIDE="hidden_prevent_auto_unhide"}(Yt||(Yt={})),function(e){e.ALL="all",e.OPERATOR="operator",e.NONOPERATOR="nonoperator"}(Kt||(Kt={})),function(e){e.AND="AND",e.OR="OR"}(Jt||(Jt={})),function(e){e.MEMBER_NICKNAME="member_nickname",e.CHANNEL_NAME="channel_name"}(Xt||(Xt={}));var $t,en=function(){function e(e){var t,n,s,r,i,a,o,u,c,l,h,d,_,p;this._searchFilter=null,this._userIdsFilter=null,this.includeEmpty=null!==(t=null==e?void 0:e.includeEmpty)&&void 0!==t&&t,this.nicknameContainsFilter=null!==(n=null==e?void 0:e.nicknameContainsFilter)&&void 0!==n?n:null,this.nicknameStartsWithFilter=null!==(s=null==e?void 0:e.nicknameStartsWithFilter)&&void 0!==s?s:null,this.nicknameExactMatchFilter=null!==(r=null==e?void 0:e.nicknameExactMatchFilter)&&void 0!==r?r:null,this.channelNameContainsFilter=null!==(i=null==e?void 0:e.channelNameContainsFilter)&&void 0!==i?i:"",this.myMemberStateFilter=null!==(a=null==e?void 0:e.myMemberStateFilter)&&void 0!==a?a:Wt.ALL,this.customTypesFilter=null!==(o=null==e?void 0:e.customTypesFilter)&&void 0!==o?o:null,this.channelUrlsFilter=null!==(u=null==e?void 0:e.channelUrlsFilter)&&void 0!==u?u:null,this.superChannelFilter=null!==(c=null==e?void 0:e.superChannelFilter)&&void 0!==c?c:jt.ALL,this.publicChannelFilter=null!==(l=null==e?void 0:e.publicChannelFilter)&&void 0!==l?l:zt.ALL,this.customTypeStartsWithFilter=null!==(h=null==e?void 0:e.customTypeStartsWithFilter)&&void 0!==h?h:null,this.unreadChannelFilter=null!==(d=null==e?void 0:e.unreadChannelFilter)&&void 0!==d?d:Qt.ALL,this.hiddenChannelFilter=null!==(_=null==e?void 0:e.hiddenChannelFilter)&&void 0!==_?_:Yt.UNHIDDEN,this.includeFrozen=null===(p=null==e?void 0:e.includeFrozen)||void 0===p||p,(null==e?void 0:e.createdAfter)&&(this.createdAfter=e.createdAfter),(null==e?void 0:e.createdBefore)&&(this.createdBefore=e.createdBefore)}return e.prototype._isFriend=function(e){return!(!e||!e.friendDiscoveryKey&&!e.friendName)},Object.defineProperty(e.prototype,"searchFilter",{get:function(){return this._searchFilter},enumerable:!1,configurable:!0}),e.prototype.setSearchFilter=function(e,t){Array.isArray(e)&&0!==e.length&&"string"==typeof t&&t&&(this._searchFilter={query:t,fields:e})},Object.defineProperty(e.prototype,"userIdsFilter",{get:function(){return this._userIdsFilter},enumerable:!1,configurable:!0}),e.prototype.setUserIdsFilter=function(e,t,n){void 0===n&&(n=Jt.AND),this._userIdsFilter={userIds:e,includeMode:t,queryType:n}},e.prototype.clone=function(){var t,n=new e;this.searchFilter&&n.setSearchFilter(this.searchFilter.fields,null!==(t=this.searchFilter.query)&&void 0!==t?t:void 0),this.userIdsFilter&&n.setUserIdsFilter(this.userIdsFilter.userIds,this.userIdsFilter.includeMode,this.userIdsFilter.queryType);var s=JSON.parse(JSON.stringify(this));return Object.keys(s).forEach((function(e){n[e]=s[e]})),n},e.prototype.match=function(e,t){if(this._searchFilter){var n=this._searchFilter,s=n.query,r=n.fields;if(s&&r&&r.length>0&&!r.some((function(t){switch(t){case Xt.CHANNEL_NAME:return e.name.toLowerCase().includes(s.toLowerCase());case Xt.MEMBER_NICKNAME:return e.members.some((function(e){return e.nickname.toLowerCase().includes(s.toLowerCase())}));default:return!0}})))return!1}if(this._userIdsFilter){var i=this._userIdsFilter,o=i.userIds,u=i.includeMode,c=i.queryType,l=e.members.map((function(e){return e.userId}));if(u){if(o.length>0)switch(c){case Jt.AND:if(o.some((function(e){return!l.includes(e)})))return!1;break;case Jt.OR:if(o.every((function(e){return!l.includes(e)})))return!1}}else{if(o.includes(t)||o.push(t),e.members.length>o.length)return!1;if(!Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Pb)(o,l))return!1}}if(!this.includeEmpty&&!e.lastMessage)return!1;if(!this.includeFrozen&&e.isFrozen)return!1;if(this.customTypesFilter&&this.customTypesFilter.length>0&&!this.customTypesFilter.includes("*")&&!this.customTypesFilter.includes(e.customType))return!1;if(this.customTypeStartsWithFilter&&!new RegExp("^".concat(this.customTypeStartsWithFilter)).test(e.customType))return!1;if(this.channelNameContainsFilter&&!e.name.toLowerCase().includes(this.channelNameContainsFilter.toLowerCase()))return!1;if(this.nicknameContainsFilter){var h=this.nicknameContainsFilter.toLowerCase();if(!e.members.some((function(e){return e.userId!==t&&e.nickname.toLowerCase().includes(h)})))return!1}if(this.nicknameStartsWithFilter){var d=this.nicknameStartsWithFilter.toLowerCase();if(!e.members.some((function(e){return e.userId!==t&&e.nickname.toLowerCase().startsWith(d)})))return!1}if(this.nicknameExactMatchFilter){var _=this.nicknameExactMatchFilter.toLowerCase();if(!e.members.some((function(e){return e.userId!==t&&e.nickname.toLowerCase()!=_})))return!1}if(this.channelUrlsFilter&&this.channelUrlsFilter.length>0&&!this.channelUrlsFilter.includes(e.url))return!1;if(this.myMemberStateFilter)switch(this.myMemberStateFilter){case Wt.ALL:if("none"===e.myMemberState)return!1;break;case Wt.JOINED:if("joined"!==e.myMemberState)return!1;break;case Wt.INVITED:if("invited"!==e.myMemberState)return!1;break;case Wt.INVITED_BY_FRIEND:if("invited"!==e.myMemberState||!this._isFriend(e.inviter))return!1;break;case Wt.INVITED_BY_NON_FRIEND:if("invited"!==e.myMemberState||this._isFriend(e.inviter))return!1}if(this.hiddenChannelFilter)switch(this.hiddenChannelFilter){case Yt.UNHIDDEN:if(e.isHidden||"unhidden"!==e.hiddenState)return!1;break;case Yt.HIDDEN:if(!e.isHidden)return!1;break;case Yt.HIDDEN_ALLOW_AUTO_UNHIDE:if(!e.isHidden||"hidden_allow_auto_unhide"!==e.hiddenState)return!1;break;case Yt.HIDDEN_PREVENT_AUTO_UNHIDE:if(!e.isHidden||"hidden_prevent_auto_unhide"!==e.hiddenState)return!1}if(this.unreadChannelFilter&&this.unreadChannelFilter===Qt.UNREAD_MESSAGE&&0===e.unreadMessageCount)return!1;if(this.publicChannelFilter)switch(this.publicChannelFilter){case zt.PUBLIC:if(!e.isPublic)return!1;break;case zt.PRIVATE:if(e.isPublic)return!1}if(this.superChannelFilter)switch(this.superChannelFilter){case jt.SUPER:if(!e.isSuper)return!1;break;case jt.NON_SUPER:if(e.isSuper)return!1}return!(this.createdAfter&&e.createdAtthis.createdBefore)},e}(),tn=function(t){function n(e,n){var s=n.sdkState,r=n.cacheContext,i=t.call(this,e)||this;return i._channels=new Map,i._sdkState=s,i._cacheContext=r,i}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),Object.defineProperty(n.prototype,"collection",{get:function(){var e=this._cacheContext.nestdb;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(!!e).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.databaseError),e.collection(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.y)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"localCacheEnabled",{get:function(){return this._cacheContext.localCacheEnabled&&!!this.collection},enumerable:!1,configurable:!0}),n.prototype._serialize=function(e,t){return void 0===t&&(t=0),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},e.serialize()),{lastMessageUpdatedAt:e.lastMessage?e.lastMessage.createdAt:0,syncIndex:t})},n.prototype._deserialize=function(e){return hs.of(this._iid).buildGroupChannelFromSerializedData(e)},Object.defineProperty(n.prototype,"channels",{get:function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(this._channels.values()),!1)},enumerable:!1,configurable:!0}),n.prototype.isCachedInMemory=function(e){return this._channels.has(e)},n.prototype.filterOffsetChanged=function(e){var t=this;return e.filter((function(e){if(t._channels.has(e.url))return t._channels.get(e.url).messageOffsetTimestamp0)return!1;if(l&&l===e.url)return!1;break;case _bundle_4d8e37ce_js__WEBPACK_IMPORTED_MODULE_2__.c.CHRONOLOGICAL:if(!i&&e.createdAt>t||i&&e.createdAtt||i&&e.lastMessageUpdatedAte._messageCollectionLastAccessedAt&&Object.assign(e,{_messageCollectionLastAccessedAt:void 0}),e.cachedMetaData&&t&&(s._updateCachedMetaData(e.cachedMetaData,t),Object.assign(e,{_cachedMetaData:void 0})),s._update(e),n.push(s)}else i._channels.set(e.url,e),n.push(e)})),!this.localCacheEnabled)return[3,2];for(r in s=[],n)s.push(this._serialize(n[r],parseInt(r)));return[4,this.collection.upsertMany(s)];case 1:a.sent(),a.label=2;case 2:return[2,n]}}))}))},n.prototype.remove=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,s,r,i,a;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(o){switch(o.label){case 0:o.trys.push([0,5,6,7]),t=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(e),n=t.next(),o.label=1;case 1:return n.done?[3,4]:(s=n.value,this._channels.delete(s),this.localCacheEnabled?[4,this.collection.remove(s)]:[3,3]);case 2:o.sent(),o.label=3;case 3:return n=t.next(),[3,1];case 4:return[3,7];case 5:return r=o.sent(),i={error:r},[3,7];case 6:try{n&&!n.done&&(a=t.return)&&a.call(t)}finally{if(i)throw i.error}return[7];case 7:return[2]}}))}))},n.prototype.clear=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return this.clearMemoryCache(),this.localCacheEnabled?[4,this.collection.clear()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},n.prototype.clearMemoryCache=function(){this._channels.clear()},n.prototype._setBlockStateOfAllChannels=function(e,t,n){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var s,r,i,a,o,u,c,l,h,_,f,v,m,g,E,C,y,M,b;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(d){switch(d.label){case 0:if(s=[],e===this._sdkState.userId)try{for(r=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._channels.values()),i=r.next();!i.done;i=r.next()){l=i.value;try{for(g=void 0,a=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(l.members),o=a.next();!o.done;o=a.next())if((f=o.value).userId===t){f.isBlockedByMe=n,s.push(l);break}}catch(e){g={error:e}}finally{try{o&&!o.done&&(E=a.return)&&E.call(a)}finally{if(g)throw g.error}}}}catch(e){v={error:e}}finally{try{i&&!i.done&&(m=r.return)&&m.call(r)}finally{if(v)throw v.error}}else if(t===this._sdkState.userId)try{for(u=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._channels.values()),c=u.next();!c.done;c=u.next()){l=c.value;try{for(M=void 0,h=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(l.members),_=h.next();!_.done;_=h.next())if((f=_.value).userId===e){f.isBlockingMe=n,s.push(l);break}}catch(e){M={error:e}}finally{try{_&&!_.done&&(b=h.return)&&b.call(h)}finally{if(M)throw M.error}}}}catch(e){C={error:e}}finally{try{c&&!c.done&&(y=u.return)&&y.call(u)}finally{if(C)throw C.error}}return s.length>0?[4,this.upsert(s)]:[3,2];case 1:d.sent(),d.label=2;case 2:return[2]}}))}))},n.prototype.block=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return[4,this._setBlockStateOfAllChannels(e,t,!0)];case 1:return n.sent(),[2]}}))}))},n.prototype.unblock=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return[4,this._setBlockStateOfAllChannels(e,t,!1)];case 1:return n.sent(),[2]}}))}))},n.prototype.markAsRead=function(e,t){return void 0===t&&(t=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(this._channels.keys()),!1)),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n,s,r,i,a,o,u,c;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(l){switch(l.label){case 0:n=[],l.label=1;case 1:l.trys.push([1,6,7,8]),s=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(t),r=s.next(),l.label=2;case 2:return r.done?[3,5]:(i=r.value,[4,this.get(i)]);case 3:(null==(a=l.sent())?void 0:a._updateUnreadMemberState(this._sdkState.userId,e))&&(a._updateUnreadCount(0,0),n.push(a)),l.label=4;case 4:return r=s.next(),[3,2];case 5:return[3,8];case 6:return o=l.sent(),u={error:o},[3,8];case 7:try{r&&!r.done&&(c=s.return)&&c.call(s)}finally{if(u)throw u.error}return[7];case 8:return n.length>0?[4,this.upsert(n)]:[3,10];case 9:l.sent(),l.label=10;case 10:return[2]}}))}))},n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.jb),nn={invitedUserIds:void 0,channelUrl:void 0,coverUrl:void 0,coverImage:void 0,isDistinct:void 0,isSuper:void 0,isBroadcast:void 0,isExclusive:void 0,isPublic:void 0,isDiscoverable:void 0,isStrict:void 0,isEphemeral:void 0,accessCode:void 0,name:void 0,data:void 0,customType:void 0,operatorUserIds:void 0,messageSurvivalSeconds:void 0},sn=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",e.invitedUserIds,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.channelUrl,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.coverUrl,!0)&&(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.hc)(e.coverImage)||Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.coverImage,!0))&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.isDistinct,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.isSuper,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.isBroadcast,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.isExclusive,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.isPublic,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.isStrict,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.isDiscoverable,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.isEphemeral,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.accessCode,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.name,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.data,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.customType,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",e.operatorUserIds,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e.messageSurvivalSeconds,!0)},rn={customTypes:void 0,includeEmpty:!1,includeFrozen:!0,includeChatNotification:!1},an=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",e.customTypes,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.includeEmpty)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.includeFrozen)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.includeChatNotification)},on={myMemberStateFilter:Wt.ALL},un=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(Wt,e.myMemberStateFilter)};!function(e){e.GROUP_CHANNEL_UNREAD_MENTION_COUNT="group_channel_unread_mention_count",e.NONSUPER_UNREAD_MENTION_COUNT="non_super_group_channel_unread_mention_count",e.SUPER_UNREAD_MENTION_COUNT="super_group_channel_unread_mention_count",e.GROUP_CHANNEL_UNREAD_MESSAGE_COUNT="group_channel_unread_message_count",e.NONSUPER_UNREAD_MESSAGE_COUNT="non_super_group_channel_unread_message_count",e.SUPER_UNREAD_MESSAGE_COUNT="super_group_channel_unread_message_count",e.GROUP_CHANNEL_INVITATION_COUNT="group_channel_invitation_count",e.NONSUPER_INVITATION_COUNT="non_super_group_channel_invitation_count",e.SUPER_INVITATION_COUNT="super_group_channel_invitation_count"}($t||($t={}));var t,cn={keys:[]},ln={channelCustomTypesFilter:void 0,superChannelFilter:jt.ALL},dn={channelUrl:void 0,scheduledStatus:void 0,messageTypeFilter:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.vb.ALL},_n=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a),pn=function(e){return e.startsWith("EVENT_")||e===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.SYNC_CHANNEL_CHANGELOGS||e===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.REFRESH_CHANNEL},fn=function(t){function n(e){var n=e.channels,s=e.source,r=e.isWebSocketEventComing,i=void 0!==r&&r,a=e.data,o=void 0===a?null:a,u=e.ts,c=t.call(this)||this;return c.channels=n,c.source=s,c.isWebSocketEventComing=i,c.data=o,c.ts=u,c}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Kb),vn=function(t){function n(e){var n=e.channelUrls,s=e.source,r=e.isWebSocketEventComing,i=void 0!==r&&r,a=t.call(this)||this;return a.channelUrls=n,a.source=s,a.isWebSocketEventComing=i,a}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Kb),mn=function(){function e(e){var t=e.groupChannelCache,n=e.messageCache,s=e.unsentMessageCache,r=e.dispatcher,i=this;this._observers=new Map,r.on((function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(i,void 0,void 0,(function(){var r,i,a,o,u,c,l,_,f,v,m,g,E,C,M=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(b){switch(b.label){case 0:if(!(e instanceof fn))return[3,10];r=e.channels,m=e.source,g=e.isWebSocketEventComing,i=e.data,a=r.filter((function(e){return e instanceof Cr})),o=t.filterOffsetChanged(a),b.label=1;case 1:b.trys.push([1,6,7,8]),u=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(o),c=u.next(),b.label=2;case 2:return c.done?[3,5]:(l=c.value,[4,n.removeUnderOffset(l.url,l.messageOffsetTimestamp)]);case 3:b.sent(),b.label=4;case 4:return c=u.next(),[3,2];case 5:return[3,8];case 6:return _=b.sent(),E={error:_},[3,8];case 7:try{c&&!c.done&&(C=u.return)&&C.call(u)}finally{if(E)throw E.error}return[7];case 8:return[4,t.upsert(a,e.ts)];case 9:return f=b.sent(),g||this._broadcastUpdateEvent(f,m,i),[3,15];case 10:return e instanceof vn?(v=e.channelUrls,m=e.source,g=e.isWebSocketEventComing,[4,t.remove(v)]):[3,13];case 11:return b.sent(),[4,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.yc)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(M,void 0,void 0,(function(){var e,t,r,i,a,o;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(u){switch(u.label){case 0:u.trys.push([0,6,7,8]),e=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(v),t=e.next(),u.label=1;case 1:return t.done?[3,5]:(r=t.value,[4,n.removeMessagesOfChannel(r)]);case 2:return u.sent(),[4,s.removeMessagesOfChannel(r)];case 3:u.sent(),u.label=4;case 4:return t=e.next(),[3,1];case 5:return[3,8];case 6:return i=u.sent(),a={error:i},[3,8];case 7:try{t&&!t.done&&(o=e.return)&&o.call(e)}finally{if(a)throw a.error}return[7];case 8:return[2]}}))}))}))];case 12:return b.sent(),g||this._broadcastRemoveEvent(v,m),[3,15];case 13:return e instanceof _bundle_4d8e37ce_js__WEBPACK_IMPORTED_MODULE_2__.b?[4,t.fetch({token:Number.MAX_SAFE_INTEGER,limit:Number.MAX_SAFE_INTEGER})]:[3,15];case 14:b.sent(),b.label=15;case 15:return[2]}}))}))}))}return e.prototype._broadcastUpdateEvent=function(e,t,n){var s,r;try{for(var i=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._observers.values()),a=i.next();!a.done;a=i.next()){var o=a.value;o.onUpdate&&o.onUpdate(e,t,n)}}catch(e){s={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(s)throw s.error}}},e.prototype._broadcastRemoveEvent=function(e,t){var n,s;try{for(var r=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._observers.values()),i=r.next();!i.done;i=r.next()){var a=i.value;a.onRemove&&a.onRemove(e,t)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(s=r.return)&&s.call(r)}finally{if(n)throw n.error}}},e.prototype.subscribe=function(e,t){this._observers.set(e,t)},e.prototype.unsubscribe=function(e){this._observers.delete(e)},e.prototype.unsubscribeAll=function(){this._observers.clear()},e}(),gn=function(r){function i(e){var i=e.userId,a=e.ts,o=e.token,u=e.filter,c=e.includeChatNotification,l=void 0!==c&&c,h=r.call(this)||this,d=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},rn),u),_=d.customTypes,p=d.includeEmpty,f=d.includeFrozen;return h.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,h.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.cc,"/").concat(encodeURIComponent(i),"/my_group_channels/changelogs"),h.params=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({show_delivery_receipt:!0,show_member:!0,show_read_receipt:!0,change_ts:a||null,token:o,custom_types:_,show_empty:p,show_frozen:f,include_chat_notification:l})),h}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(i,r),i}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),En=function(t){function n(e,n){var s=t.call(this,e,n)||this;return s.updatedChannels=n.updated.map((function(t){return new Cr(e,Object.assign(t,{ts:n.ts}))})),s.deletedChannelUrls=n.deleted,s.hasMore=n.has_more,s.token=n.next,s.ts=n.ts,s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),Cn=function(t){function n(e){var n=e.channelUrl,s=e.isInternalCall,r=t.call(this)||this;return r.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,r.path="".concat(s?_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Qb:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qb,"/").concat(encodeURIComponent(n)),r.params={show_member:!0,show_read_receipt:!0,show_delivery_receipt:!0},r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),yn=function(t){function n(e,n){var s=t.call(this,e,n)||this;return s.channel=new Cr(e,n),s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),Mn={includeEmpty:!1,includeFrozen:!0,includeMetaData:!0,includeChatNotification:!1,channelUrlsFilter:void 0,customTypesFilter:void 0,customTypeStartsWithFilter:void 0,nicknameContainsFilter:void 0,nicknameStartsWithFilter:void 0,nicknameExactMatchFilter:void 0,channelNameContainsFilter:void 0,myMemberStateFilter:Wt.ALL,unreadChannelFilter:Qt.ALL,superChannelFilter:jt.ALL,publicChannelFilter:zt.ALL,hiddenChannelFilter:Yt.ALL,userIdsFilter:{userIds:[],includeMode:!0,queryType:Jt.AND},searchFilter:{query:void 0,fields:[]},metadataKey:void 0,metadataValues:void 0,metadataOrderKeyFilter:void 0,metadataValueStartsWith:void 0,order:_bundle_4d8e37ce_js__WEBPACK_IMPORTED_MODULE_2__.c.LATEST_LAST_MESSAGE,createdAfter:void 0,createdBefore:void 0},bn=function(n){function s(e){var s=this,r=e.userId,i=e.token,a=e.limit,o=e.order,u=e.includeEmpty,c=e.myMemberStateFilter,l=e.superChannelFilter,h=e.publicChannelFilter,d=e.unreadChannelFilter,_=e.nicknameContainsFilter,p=e.nicknameStartsWithFilter,f=e.nicknameExactMatchFilter,v=e.channelNameContainsFilter,m=e.channelUrlsFilter,g=e.customTypesFilter,E=e.customTypeStartsWithFilter,C=e.hiddenChannelFilter,y=e.metadataOrderKeyFilter,N=e.metadataKey,U=e.metadataValues,S=e.metadataValueStartsWith,T=e.includeFrozen,A=e.includeMetaData,I=e.searchFilter,w=e.userIdsFilter,L=e.includeChatNotification,D=void 0!==L&&L,R=e.includeLeftChannel,F=void 0!==R&&R,P=e.createdAfter,k=e.createdBefore;return(s=n.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,s.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.cc,"/").concat(encodeURIComponent(r),"/my_group_channels"),s.params=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)({token:i,limit:a,order:null!=o?o:Mn.order,show_member:!0,show_read_receipt:!0,show_delivery_receipt:!0,show_empty:null!=u?u:Mn.includeEmpty,member_state_filter:null!=c?c:Mn.myMemberStateFilter,super_mode:null!=l?l:Mn.superChannelFilter,public_mode:null!=h?h:Mn.publicChannelFilter,unread_filter:null!=d?d:Mn.unreadChannelFilter,members_nickname_contains:_,members_nickname_startswith:p,members_nickname:f,name_contains:v,channel_urls:m,custom_types:g,custom_type_startswith:E,hidden_mode:C,metadata_order_key:y,metadata_key:N,metadata_values:U,metadata_value_startswith:S,show_frozen:T,show_metadata:A,include_chat_notification:D,include_left_channel:F,created_after:P,created_before:k}),I&&I.query&&I.fields&&(s.params.search_query=I.query,s.params.search_fields=I.fields),w&&w.userIds&&w.userIds.length>0&&(w.includeMode?(s.params.members_include_in=w.userIds,s.params.query_type=w.queryType.toUpperCase()):s.params.members_exactly_in=w.userIds),s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(s,n),s}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Nn=function(t){function n(e,n){var s=t.call(this,e,n)||this;s.channels=[];var r=n.next,i=n.channels,a=n.ts;return s.token=r,i&&i.length>0&&(s.channels=i.map((function(t){return t.ts=a,new Cr(e,t)}))),s.ts=null!=a?a:0,s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),Un=function(t){function n(e){var n=e.userId,s=e.filter,r=t.call(this)||this,i=s.myMemberStateFilter;return r.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,r.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.cc,"/").concat(encodeURIComponent(n),"/group_channel_count"),r.params={state:null!=i?i:Wt.ALL},r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Sn=function(t){function n(e,n){var s=t.call(this,e,n)||this;return s.groupChannelCount=n.group_channel_count,s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),Tn=function(n){function s(e){var s=e.userId,r=e.filter,i=n.call(this)||this,a=r.keys;return i.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,i.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.cc,"/").concat(encodeURIComponent(s),"/unread_item_count"),i.params=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)({item_keys:a}),i}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(s,n),s}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),An=function(t){function n(e,n){var s=t.call(this,e,n)||this;return"number"==typeof n[$t.GROUP_CHANNEL_UNREAD_MENTION_COUNT]&&(s.groupChannelUnreadMentionCount=n[$t.GROUP_CHANNEL_UNREAD_MENTION_COUNT]),"number"==typeof n[$t.GROUP_CHANNEL_UNREAD_MESSAGE_COUNT]&&(s.groupChannelUnreadMessageCount=n[$t.GROUP_CHANNEL_UNREAD_MESSAGE_COUNT]),"number"==typeof n[$t.GROUP_CHANNEL_INVITATION_COUNT]&&(s.groupChannelInvitationCount=n[$t.GROUP_CHANNEL_INVITATION_COUNT]),"number"==typeof n[$t.SUPER_UNREAD_MENTION_COUNT]&&(s.superGroupChannelUnreadMentionCount=n[$t.SUPER_UNREAD_MENTION_COUNT]),"number"==typeof n[$t.SUPER_UNREAD_MESSAGE_COUNT]&&(s.superGroupChannelUnreadMessageCount=n[$t.SUPER_UNREAD_MESSAGE_COUNT]),"number"==typeof n[$t.SUPER_INVITATION_COUNT]&&(s.superGroupChannelInvitationCount=n[$t.SUPER_INVITATION_COUNT]),"number"==typeof n[$t.NONSUPER_UNREAD_MENTION_COUNT]&&(s.nonSuperGroupChannelUnreadMentionCount=n[$t.NONSUPER_UNREAD_MENTION_COUNT]),"number"==typeof n[$t.NONSUPER_UNREAD_MESSAGE_COUNT]&&(s.nonSuperGroupChannelUnreadMessageCount=n[$t.NONSUPER_UNREAD_MESSAGE_COUNT]),"number"==typeof n[$t.NONSUPER_INVITATION_COUNT]&&(s.nonSuperGroupChannelInvitationCount=n[$t.NONSUPER_INVITATION_COUNT]),s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),In=function(t){function n(e){var n=e.userId,s=t.call(this)||this;return s.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,s.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.cc,"/").concat(encodeURIComponent(n),"/unread_channel_count"),s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),wn=function(t){function n(e,n){var s=t.call(this,e,n)||this;return s.unreadCount=n.unread_count,s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),Ln=function(t){function n(e){var n=e.userId,s=e.filter,r=e.includeFeedChannel,i=void 0!==r&&r,a=t.call(this)||this,o=s.channelCustomTypesFilter,u=s.superChannelFilter;return a.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,a.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.cc,"/").concat(encodeURIComponent(n),"/unread_message_count"),a.params={super_mode:null!=u?u:jt.ALL,custom_types:o,include_feed_channel:i},a}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Dn=function(t){function n(e,n){var s=t.call(this,e,n)||this;return s.unreadCount=n.unread_count,s.unreadFeedCount=n.unread_feed_count,s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),Rn=function(t){function n(e){var n=e.channelUrl,s=e.scheduledStatus,r=e.messageTypeFilter,i=t.call(this)||this;return i.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,i.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Nb,"/count"),i.params={channel_url:n,status:Pn(s)},r&&(i.params.message_type=r),i}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Fn=function(t){function n(e,n){var s=t.call(this,e,n)||this;return s.count=n.count,s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),Pn=function(e){if(!e)return[];var t=[];return e.forEach((function(e){switch(e){case _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.k.PENDING:t.push(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.q.PENDING);break;case _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.k.SENT:t.push(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.q.IN_QUEUE),t.push(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.q.SENT);break;case _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.k.CANCELED:t.push(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.q.CANCELED);break;case _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.k.FAILED:t.push(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.q.FAILED)}})),t},kn=function(n){function s(e){var s=this,r=e.userId,i=e.channelUrl,a=e.coverUrl,o=e.coverImage,u=e.isDistinct,h=e.isSuper,d=e.isBroadcast,_=e.isPublic,p=e.isExclusive,f=e.isDiscoverable,v=e.isStrict,m=e.isEphemeral,g=e.accessCode,E=e.name,C=e.data,y=e.customType,b=e.messageSurvivalSeconds,N=e.invitedUserIds,U=e.operatorUserIds;return(s=n.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.POST,s.path=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qb,s.params=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)({user_ids:Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([r],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(null!=N?N:[]),!1).filter((function(e,t,n){return t===n.indexOf(e)})),channel_url:i,cover_url:a,cover_file:o,is_distinct:u,is_super:h,is_broadcast:d,is_exclusive:p,is_public:_,is_discoverable:f,strict:v,is_ephemeral:m,access_code:g,name:E,data:C,custom_type:y,operator_ids:U,message_survival_seconds:b}),s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(s,n),s}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),xn=function(t){function n(e,n){var s,r=this;return(r=t.call(this,e,n)||this).channel=new Cr(e,n),r.isCreated=null===(s=n.is_created)||void 0===s||s,r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),On=function(t){function n(e){var n=e.userId,s=e.channelUrls,r=t.call(this)||this;return r.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.PUT,r.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.cc,"/").concat(encodeURIComponent(n),"/mark_as_read_all"),r.params={channel_urls:s},r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec);t=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)((function n(){return null!==t&&t.apply(this,arguments)||this}),t);var Hn=function(t){function n(e){var n=this,s=e.channelUrl,r=e.userId,i=e.accessCode;return(n=t.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.PUT,n.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qb,"/").concat(encodeURIComponent(s),"/join"),n.params={user_id:r,access_code:i},n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Vn=function(t){function n(e,n){var s=t.call(this,e,n)||this;return s.channel=new Cr(e,n),s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),Gn=function(t){function n(e,n,s){var r=t.call(this,e,n,s)||this,i=s.data,a=i.member_count,o=void 0===a?0:a,u=i.joined_member_count,c=void 0===u?0:u,l=i.users,h=void 0===l?null:l;return r.memberCount=o,r.joinedMemberCount=c,r.members=Array.isArray(h)?h.map((function(t){return new Zt(e,t)})):[new Zt(e,s.data)],r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.c),Bn=function(t){function n(e){var n=this,s=e.channelUrl,r=e.userId,i=e.shouldRemoveOperatorStatus;return(n=t.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.PUT,n.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qb,"/").concat(encodeURIComponent(s),"/leave"),n.params={user_id:r,should_remove_operator_status:i},n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec);!function(t){Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)((function n(e,n){return t.call(this,e,n)||this}),t)}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc);var qn=function(t){function n(e,n,s){var r=t.call(this,e,n,s)||this,i=s.data,a=i.member_count,o=void 0===a?0:a,u=i.joined_member_count,c=void 0===u?0:u;return r.memberCount=o,r.joinedMemberCount=c,r.member=new Zt(r._iid,s.data),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.c),zn=function(t){function n(e){var n=this,s=e.channelUrl,r=e.userIds;return(n=t.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.POST,n.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qb,"/").concat(encodeURIComponent(s),"/invite"),n.params={user_ids:r},n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Wn=function(t){function n(e,n){var s=t.call(this,e,n)||this;return s.channel=new Cr(e,n),s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),jn=function(t){function n(e,n,s){var r=t.call(this,e,n,s)||this;r.inviter=null;var i=s.data,a=i.member_count,o=void 0===a?0:a,u=i.joined_member_count,c=void 0===u?0:u,l=i.inviter,h=i.invitees,d=void 0===h?[]:h;return r.memberCount=o,r.joinedMemberCount=c,l&&Object.keys(l).length>0&&(r.inviter=new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v(e,l)),r.invitees=d.map((function(t){return new Zt(e,t)})),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.c),Qn=function(t){function n(e){var n=this,s=e.channelUrl,r=e.userId;return(n=t.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.PUT,n.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qb,"/").concat(encodeURIComponent(s),"/decline"),n.params={user_id:r},n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec);!function(t){Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)((function n(e,n){var s=t.call(this,e,n)||this;return s.channel=new Cr(e,n),s.channel.myMemberState=qt.NONE,s}),t)}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc);var Yn=function(t){function n(e,n,s){var r=t.call(this,e,n,s)||this,i=s.data,a=i.member_count,o=i.joined_member_count,u=i.inviter,c=i.invitee;return r.memberCount=null!=a?a:0,r.joinedMemberCount=null!=o?o:0,r.inviter=new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v(e,u),r.invitee=new Zt(e,c),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.c),Kn={hidePreviousMessages:!1,allowAutoUnhide:!0},Jn=function(t){function n(e){var n=this,s=e.channelUrl,r=e.userId,i=e.hidePreviousMessages,a=e.allowAutoUnhide;return(n=t.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.PUT,n.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qb,"/").concat(encodeURIComponent(s),"/hide"),n.params={user_id:r,hide_previous_messages:null!=i?i:Kn.hidePreviousMessages,allow_auto_unhide:null!=a?a:Kn.allowAutoUnhide},n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Xn=function(t){function n(e,n){var s=t.call(this,e,n)||this,r=n.ts_message_offset;return s.messageOffsetTimestamp=r,s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),Zn=function(t){function n(e,n,s){var r,i,a,o=this;return(o=t.call(this,e,"SYEV",s)||this).allowAutoUnhide=null,o.hidePreviousMessages=null,o.messageOffsetTimestamp=null,s.data&&(o.allowAutoUnhide=null!==(r=s.data.allow_auto_unhide)&&void 0!==r?r:null,o.hidePreviousMessages=null!==(i=s.data.hide_previous_messages)&&void 0!==i?i:null),o.messageOffsetTimestamp=null!==(a=s.ts_message_offset)&&void 0!==a?a:null,o}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.x),$n=function(t){function n(e){var n=e.channelUrl,s=e.time;return t.call(this,{code:"TPST",ackRequired:!1,payload:{channel_url:n,time:s}})||this}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ob),es=function(t){function n(e,n,s){var r=t.call(this,e,"SYEV",s)||this;return r.user=new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v(e,s.data),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.x),ts=function(t){function n(e){var n=e.channelUrl,s=e.time;return t.call(this,{code:"TPEN",ackRequired:!1,payload:{channel_url:n,time:s}})||this}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ob),ns=function(t){function n(e,n,s){var r=t.call(this,e,"SYEV",s)||this;return r.user=new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v(e,s.data),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.x),ss=function(t){function n(e){var n=e.channelUrl,s=e.messageId;return t.call(this,{code:"MACK",ackRequired:!1,payload:{channel_url:n,msg_id:s}})||this}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ob),rs=function(t){function i(e,n){var s,r,i,a,o,u,c,l,h,d,_,p,f,v,m,g,E,C,y,M,b,N,U,S=this;return(S=t.call(this,e,n)||this).includeEmpty=!1,S.includeFrozen=!0,S.includeMetaData=!0,S.includeChatNotification=!1,S.channelUrlsFilter=null,S.customTypesFilter=null,S.customTypeStartsWithFilter=null,S.nicknameContainsFilter=null,S.nicknameStartsWithFilter=null,S.nicknameExactMatchFilter=null,S.channelNameContainsFilter="",S.myMemberStateFilter=Wt.ALL,S.unreadChannelFilter=Qt.ALL,S.superChannelFilter=jt.ALL,S.publicChannelFilter=zt.ALL,S.hiddenChannelFilter=Yt.UNHIDDEN,S.searchFilter={fields:[],query:null},S.userIdsFilter={userIds:[],includeMode:!0,queryType:Jt.AND},S.metadataKey=null,S.metadataValues=null,S.metadataOrderKeyFilter=null,S.metadataValueStartsWith=null,S.order=_bundle_4d8e37ce_js__WEBPACK_IMPORTED_MODULE_2__.c.LATEST_LAST_MESSAGE,S.includeEmpty=null!==(s=n.includeEmpty)&&void 0!==s&&s,S.includeFrozen=null===(r=n.includeFrozen)||void 0===r||r,S.includeMetaData=null===(i=n.includeMetaData)||void 0===i||i,S.includeChatNotification=null!==(a=n.includeChatNotification)&&void 0!==a&&a,S.channelUrlsFilter=null!==(o=n.channelUrlsFilter)&&void 0!==o?o:null,S.customTypesFilter=null!==(u=n.customTypesFilter)&&void 0!==u?u:null,S.customTypeStartsWithFilter=null!==(c=n.customTypeStartsWithFilter)&&void 0!==c?c:"",S.nicknameContainsFilter=null!==(l=n.nicknameContainsFilter)&&void 0!==l?l:null,S.nicknameStartsWithFilter=null!==(h=n.nicknameStartsWithFilter)&&void 0!==h?h:null,S.nicknameExactMatchFilter=null!==(d=n.nicknameExactMatchFilter)&&void 0!==d?d:null,S.channelNameContainsFilter=null!==(_=n.channelNameContainsFilter)&&void 0!==_?_:"",S.myMemberStateFilter=null!==(p=n.myMemberStateFilter)&&void 0!==p?p:Wt.ALL,S.unreadChannelFilter=null!==(f=n.unreadChannelFilter)&&void 0!==f?f:Qt.ALL,S.superChannelFilter=null!==(v=n.superChannelFilter)&&void 0!==v?v:jt.ALL,S.publicChannelFilter=null!==(m=n.publicChannelFilter)&&void 0!==m?m:zt.ALL,S.hiddenChannelFilter=null!==(g=n.hiddenChannelFilter)&&void 0!==g?g:Yt.UNHIDDEN,S.searchFilter=null!==(E=n.searchFilter)&&void 0!==E?E:{fields:[],query:null},S.userIdsFilter=null!==(C=n.userIdsFilter)&&void 0!==C?C:{userIds:[],includeMode:!0,queryType:Jt.AND},S.metadataKey=null!==(y=n.metadataKey)&&void 0!==y?y:null,S.metadataValues=null!==(M=n.metadataValues)&&void 0!==M?M:null,S.metadataOrderKeyFilter=null!==(b=n.metadataOrderKeyFilter)&&void 0!==b?b:null,S.metadataValueStartsWith=null!==(N=n.metadataValueStartsWith)&&void 0!==N?N:null,S.order=null!==(U=n.order)&&void 0!==U?U:_bundle_4d8e37ce_js__WEBPACK_IMPORTED_MODULE_2__.c.LATEST_LAST_MESSAGE,n.createdAfter&&(S.createdAfter=n.createdAfter),n.createdBefore&&(S.createdBefore=n.createdBefore),S}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(i,t),i.prototype._validate=function(){return t.prototype._validate.call(this)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",this.includeEmpty)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",this.includeFrozen)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",this.includeMetaData)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",this.channelNameContainsFilter)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",this.channelUrlsFilter,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",this.customTypesFilter,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",this.customTypeStartsWithFilter)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",this.nicknameContainsFilter,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",this.nicknameStartsWithFilter,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",this.nicknameExactMatchFilter,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(Wt,this.myMemberStateFilter)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(jt,this.superChannelFilter)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(zt,this.publicChannelFilter)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(Qt,this.unreadChannelFilter)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(Yt,this.hiddenChannelFilter)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)(Xt,this.searchFilter.fields)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",this.searchFilter.query,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",this.userIdsFilter.userIds)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",this.userIdsFilter.includeMode)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(Jt,this.userIdsFilter.queryType)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(_bundle_4d8e37ce_js__WEBPACK_IMPORTED_MODULE_2__.c,this.order)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",this.metadataOrderKeyFilter,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",this.metadataKey,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",this.metadataValues,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",this.metadataValueStartsWith,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Rb)(this.createdAfter,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Rb)(this.createdBefore,!0)},i.prototype.serialize=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.mb)(this)},i.prototype.next=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t,r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(i){switch(i.label){case 0:return this._validate()?this._isLoading?[3,3]:this._hasNext?(this._isLoading=!0,[4,hs.of(this._iid).getMyGroupChannels(this._token,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},this)),this.limit,_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.REQUEST_CHANNEL,!0)]):[3,2]:[3,5];case 1:return e=i.sent(),t=e.channels,r=e.token,this._token=r,this._hasNext=!!r,this._isLoading=!1,[2,t];case 2:return[2,[]];case 3:throw _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.queryInProgress;case 4:return[3,6];case 5:throw _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters;case 6:return[2]}}))}))},i}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.R),is=function(t){function n(e,n,r){var i,a=this;return(a=t.call(this,e,"SYEV",r)||this).pinnedMessageIds=[],a.latestPinnedMessage=null,a.ts=0,r.data&&(a.pinnedMessageIds=null!==(i=r.data.pinned_message_ids)&&void 0!==i?i:[],a.latestPinnedMessage=r.data.latest_pinned_message?Object(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.j)(e,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},r.data.latest_pinned_message)):null),a.ts=r.ts,a}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.x),as=function(n){function s(e){var s=e.channelUrl,r=e.userId,i=n.call(this)||this;return i.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.PUT,i.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qb,"/").concat(encodeURIComponent(s),"/messages/mark_as_delivered"),i.params=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)({userId:r}),i}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(s,n),s}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec);!function(t){Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)((function n(){return null!==t&&t.apply(this,arguments)||this}),t)}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc);var os,us=function(t){function n(e,n,s){var r=t.call(this,e,"DLVR",s)||this;return r.channelUrl=s.channel_url,r.deliveredStateUpdate=s.updated,r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.x),cs=function(){function e(e){var t=e.top,n=void 0===t?Number.MAX_SAFE_INTEGER:t,s=e.bottom,r=void 0===s?0:s;this.top=n,this.bottom=r}return e.prototype.includes=function(){for(var e=this,t=[],n=0;n0&&n.onMentionReceived&&n.onMentionReceived(m,f)}catch(e){s={error:e}}finally{try{t&&!t.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return[2]}))}))})),Rn.label=6;case 6:return[3,79];case 7:return N=e.as(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.I),me=N.channelUrl,ge=N.channelType,U=N.messageId,S=N.silent,T=N.messageCreatedAt,A=N.senderId,ge!==_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.GROUP?[3,9]:[4,this.getChannel(me,!0)];case 8:I=Rn.sent(),w=A===this._sdkState.userId,S||w||T>0&&I.myLastRead0&&I._updateUnreadCount(I.unreadMessageCount-1,0),this._dispatcher.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Z({messageIds:[U],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_DELETED})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Dn,void 0,void 0,(function(){var e,t,n,s,r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(i){try{for(e=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._groupChannelHandlers.values()),t=e.next();!t.done;t=e.next())(n=t.value).onMessageDeleted&&n.onMessageDeleted(I,U)}catch(e){s={error:e}}finally{try{t&&!t.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return[2]}))}))})),Rn.label=9;case 9:return[3,79];case 10:return(L=e.as(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.H).readStatus).channelType!==_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.GROUP?[3,12]:(V=this._groupChannelCache.isCachedInMemory(L.channelUrl),[4,this.getChannel(L.channelUrl,!0)]);case 11:D=Rn.sent(),V&&D._updateUnreadMemberState(L.reader.userId,L.readAt),L.reader.userId===this._sdkState.userId?V?(D.unreadMessageCount>0||D.unreadMentionCount>0)&&(D._updateUnreadCount(0,0),this._dispatcher.dispatch(new fn({channels:[D],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_READ})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Dn,void 0,void 0,(function(){var e,t,n,s,r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(i){try{for(e=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._groupChannelHandlers.values()),t=e.next();!t.done;t=e.next())(n=t.value).onChannelChanged&&n.onChannelChanged(D)}catch(e){s={error:e}}finally{try{t&&!t.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return[2]}))}))}))):0!==D.unreadMessageCount&&0!==D.unreadMentionCount||(this._dispatcher.dispatch(new fn({channels:[D],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_READ})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Dn,void 0,void 0,(function(){var e,t,n,s,r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(i){try{for(e=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._groupChannelHandlers.values()),t=e.next();!t.done;t=e.next())(n=t.value).onChannelChanged&&n.onChannelChanged(D)}catch(e){s={error:e}}finally{try{t&&!t.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return[2]}))}))}))):(this._dispatcher.dispatch(new fn({channels:[D],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_READ})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Dn,void 0,void 0,(function(){var e,t,n,s,r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(i){try{for(e=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._groupChannelHandlers.values()),t=e.next();!t.done;t=e.next())(n=t.value).onUnreadMemberStatusUpdated&&n.onUnreadMemberStatusUpdated(D)}catch(e){s={error:e}}finally{try{t&&!t.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return[2]}))}))}))),Rn.label=12;case 12:return[3,79];case 13:return R=e.as(us),me=R.channelUrl,F=R.deliveredStateUpdate,k=void 0===F?{}:F,V=this._groupChannelCache.isCachedInMemory(me),[4,this.getChannel(me,!0)];case 14:if(Y=Rn.sent(),V)for(J in k)Y._updateUndeliveredMemberState(J,k[J]);return Object.keys(k).some((function(e){return e!==Dn._sdkState.userId}))&&(this._dispatcher.dispatch(new fn({channels:[Y],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_DELIVERED})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Dn,void 0,void 0,(function(){var e,t,n,s,r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(i){try{for(e=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._groupChannelHandlers.values()),t=e.next();!t.done;t=e.next())(n=t.value).onUndeliveredMemberStatusUpdated&&n.onUndeliveredMemberStatusUpdated(Y)}catch(e){s={error:e}}finally{try{t&&!t.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return[2]}))}))}))),[3,79];case 15:return X=e.as(_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.g),me=X.channelUrl,ge=X.channelType,Z=X.event,ge!==_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.GROUP?[3,18]:[4,this.getChannel(me,!0)];case 16:return $=Rn.sent(),[4,this.getMessageFromCache(Z.messageId)];case 17:(ne=Rn.sent())?ne instanceof _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.G&&(ne.applyReactionEvent(Z),this._dispatcher.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rb({messages:[ne],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_REACTION_UPDATED}))):this._dispatcher.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.U({event:Z,source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_REACTION_UPDATED})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Dn,void 0,void 0,(function(){var e,t,n,s,r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(i){try{for(e=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._groupChannelHandlers.values()),t=e.next();!t.done;t=e.next())(n=t.value).onReactionUpdated&&n.onReactionUpdated($,Z)}catch(e){s={error:e}}finally{try{t&&!t.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return[2]}))}))})),Rn.label=18;case 18:return[3,79];case 19:return(ee=e.as(_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.h).event).channelType!==_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.GROUP?[3,22]:[4,this.getChannel(ee.channelUrl,!0)];case 20:return te=Rn.sent(),[4,this.getMessageFromCache(ee.targetMessageId)];case 21:(ne=Rn.sent())?ne instanceof _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.G&&(ne.applyThreadInfoUpdateEvent(ee),this._dispatcher.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rb({messages:[ne],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_THREADINFO_UPDATED}))):this._dispatcher.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.V({event:ee,source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_THREADINFO_UPDATED})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Dn,void 0,void 0,(function(){var e,t,n,s,r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(i){try{for(e=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._groupChannelHandlers.values()),t=e.next();!t.done;t=e.next())(n=t.value).onThreadInfoUpdated&&n.onThreadInfoUpdated(te,ee)}catch(e){s={error:e}}finally{try{t&&!t.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return[2]}))}))})),Rn.label=22;case 22:return[3,79];case 23:se=e.as(_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.d).groupChannelMemberCounts,re=[],Rn.label=24;case 24:Rn.trys.push([24,29,30,31]),ie=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(se),ae=ie.next(),Rn.label=25;case 25:return ae.done?[3,28]:(oe=ae.value,me=oe.channelUrl,lt=oe.memberCount,ht=oe.joinedMemberCount,ue=oe.updatedAt,[4,this.getChannelFromCache(me)]);case 26:(ce=Rn.sent())&&ce._setLatestMemberCount(lt,ht,ue)&&re.push(ce),Rn.label=27;case 27:return ae=ie.next(),[3,25];case 28:return[3,31];case 29:return le=Rn.sent(),Nn={error:le},[3,31];case 30:try{ae&&!ae.done&&(Un=ie.return)&&Un.call(ie)}finally{if(Nn)throw Nn.error}return[7];case 31:return re.length>0&&(this._dispatcher.dispatch(new fn({channels:re,source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_MEMBER_COUNT_UPDATED})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Dn,void 0,void 0,(function(){var e,t,n,s,r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(i){try{for(e=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._groupChannelHandlers.values()),t=e.next();!t.done;t=e.next())(n=t.value).onChannelMemberCountChanged&&n.onChannelMemberCountChanged(re)}catch(e){s={error:e}}finally{try{t&&!t.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return[2]}))}))}))),[3,79];case 32:return he=e.as(_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.f),de=he.event,_e=he.status,me=he.channelUrl,ge=he.channelType,me&&ge===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.GROUP?[4,this.getChannel(me,!0)]:[3,34];case 33:pe=Rn.sent(),this._dispatcher.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.W({event:de,source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_POLL_UPDATED})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)(_e===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Sb?function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Dn,void 0,void 0,(function(){var e,t,n,s,r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(i){try{for(e=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._groupChannelHandlers.values()),t=e.next();!t.done;t=e.next())(n=t.value).onPollDeleted&&n.onPollDeleted(pe,de.pollId)}catch(e){s={error:e}}finally{try{t&&!t.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return[2]}))}))}:function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Dn,void 0,void 0,(function(){var e,t,n,s,r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(i){try{for(e=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._groupChannelHandlers.values()),t=e.next();!t.done;t=e.next())(n=t.value).onPollUpdated&&n.onPollUpdated(pe,de)}catch(e){s={error:e}}finally{try{t&&!t.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return[2]}))}))}),Rn.label=34;case 34:return[3,79];case 35:return fe=e.as(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.F),ve=fe.event,me=fe.channelUrl,ge=fe.channelType,me&&ge===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.GROUP?[4,this.getChannel(me,!0)]:[3,37];case 36:Ee=Rn.sent(),this._dispatcher.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.P({event:ve,source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_POLL_VOTED})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Dn,void 0,void 0,(function(){var e,t,n,s,r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(i){try{for(e=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._groupChannelHandlers.values()),t=e.next();!t.done;t=e.next())(n=t.value).onPollVoted&&n.onPollVoted(Ee,ve)}catch(e){s={error:e}}finally{try{t&&!t.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return[2]}))}))})),Rn.label=37;case 37:return[3,79];case 38:if(!(Ce=e.as(_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.c).event).isGroupChannelEvent)return[3,77];switch(Ce.category){case _bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.j.CHANNEL_JOIN:return[3,39];case _bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.j.CHANNEL_LEAVE:return[3,41];case _bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.j.CHANNEL_OPERATOR_UPDATE:return[3,45];case _bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.j.CHANNEL_INVITE:return[3,47];case _bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.j.CHANNEL_DECLINE_INVITE:return[3,49];case _bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.j.TYPING_START:case _bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.j.TYPING_END:return[3,51];case _bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.j.USER_CHANNEL_MUTE:case _bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.j.USER_CHANNEL_UNMUTE:return[3,53];case _bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.j.USER_CHANNEL_BAN:return[3,55];case _bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.j.USER_CHANNEL_UNBAN:return[3,59];case _bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.j.CHANNEL_FREEZE:case _bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.j.CHANNEL_UNFREEZE:return[3,61];case _bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.j.CHANNEL_HIDE:return[3,63];case _bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.j.CHANNEL_UNHIDE:return[3,65];case _bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.j.CHANNEL_DELETED:return[3,67];case _bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.j.CHANNEL_PROP_CHANGED:return[3,69];case _bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.j.CHANNEL_META_DATA_CHANGED:return[3,71];case _bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.j.CHANNEL_META_COUNTERS_CHANGED:return[3,73];case _bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.j.PINNED_MESSAGE_CHANGED:return[3,75]}return[3,77];case 39:return[4,this.getChannel(Ce.channelUrl,!0)];case 40:return ye=Rn.sent(),Me=e.as(Gn),be=Me.memberCount,Ne=Me.joinedMemberCount,Ue=Me.members,Se=!1,Ue.forEach((function(e){ye.isExclusive||ye.isSuper||ye.isBroadcast?Se=Se||ye._setLatestMemberCount(be,Ne,Ce.ts):(e.state=qt.JOINED,ye.addMember(e,Ce.ts),Dn._updateJoinedMemberCount(ye)),e.userId===Dn._sdkState.userId&&(ye.myMemberState=qt.JOINED)})),this._dispatcher.dispatch(new fn({channels:[ye],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_JOINED})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Dn,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return this._groupChannelHandlers.forEach((function(e){var t,n;try{for(var s=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(Ue),r=s.next();!r.done;r=s.next()){var i=r.value;e.onUserJoined&&e.onUserJoined(ye,i)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}ye.isBroadcast&&Se&&e.onChannelMemberCountChanged&&e.onChannelMemberCountChanged([ye])})),[2]}))}))})),[3,77];case 41:return(bt=this._leftChannels.get(Ce.channelUrl))?(Ae=bt.channel,[3,44]):[3,42];case 42:return[4,this.getChannel(Ce.channelUrl,!0)];case 43:Ae=Rn.sent(),Rn.label=44;case 44:return Te=Ae,Ie=e.as(qn),lt=Ie.memberCount,ht=Ie.joinedMemberCount,we=Ie.member,Qe=!1,Ye=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).appInfo,Te.isExclusive||Te.isSuper||Te.isBroadcast?Qe=Te._setLatestMemberCount(lt,ht,Ce.ts):((null==Ye?void 0:Ye.enabledChannelMemberShipHistory)?((Ke=Te.members.find((function(e){return e.userId===we.userId})))&&(Ke.state=qt.LEFT),Te.memberCount=lt):Te.removeMember(we),this._updateJoinedMemberCount(Te)),we.userId===this._sdkState.userId?(Te.myMemberState=qt.NONE,Te.invitedAt=0,Te.joinedAt=0,Te._updateUnreadCount(0,0),Te.isPublic?this._dispatcher.dispatch(new fn({channels:[Te],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_LEFT})):(this._markAsLeave(Te),this._dispatcher.dispatch(new vn({channelUrls:[Te.url],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_LEFT})))):this._dispatcher.dispatch(new fn({channels:[Te],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_LEFT})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Dn,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return this._groupChannelHandlers.forEach((function(e){e.onUserLeft&&e.onUserLeft(Te,we),Te.isBroadcast&&Qe&&e.onChannelMemberCountChanged&&e.onChannelMemberCountChanged([Te])})),[2]}))}))})),[3,77];case 45:return[4,this.getChannel(Ce.channelUrl,!0)];case 46:Je=Rn.sent(),Xe=e.as(_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.e).operators,Ze=Xe.map((function(e){return e.userId}));try{for($e=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(Je.members),et=$e.next();!et.done;et=$e.next())(Mt=et.value).role=Ze.includes(Mt.userId)?_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.F.OPERATOR:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.F.NONE}catch(e){Sn={error:e}}finally{try{et&&!et.done&&(Tn=$e.return)&&Tn.call($e)}finally{if(Sn)throw Sn.error}}return Je.myRole=Ze.includes(this._sdkState.userId)?_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.F.OPERATOR:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.F.NONE,this._dispatcher.dispatch(new fn({channels:[Je],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_OPERATOR_UPDATED})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Dn,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return this._groupChannelHandlers.forEach((function(e){e.onOperatorUpdated&&e.onOperatorUpdated(Je,Xe)})),[2]}))}))})),[3,77];case 47:return[4,this.getChannel(Ce.channelUrl,!0)];case 48:tt=Rn.sent(),nt=e.as(jn),lt=nt.memberCount,ht=nt.joinedMemberCount,st=nt.inviter,(rt=nt.invitees).forEach((function(e){return e.state=qt.INVITED}));try{for(it=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(rt),at=it.next();!at.done;at=it.next())ot=at.value,tt.isExclusive||tt.isSuper||tt.isBroadcast?tt._setLatestMemberCount(lt,ht,Ce.ts):tt.addMember(ot,Ce.ts),this._sdkState.userId===ot.userId&&(tt.hiddenState=pr.UNHIDDEN,tt.myMemberState!==qt.JOINED&&(tt.myMemberState=qt.INVITED),tt.invitedAt=Ce.ts)}catch(e){An={error:e}}finally{try{at&&!at.done&&(In=it.return)&&In.call(it)}finally{if(An)throw An.error}}return this._dispatcher.dispatch(new fn({channels:[tt],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_INVITED})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Dn,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return this._groupChannelHandlers.forEach((function(e){e.onUserReceivedInvitation&&e.onUserReceivedInvitation(tt,st,rt)})),[2]}))}))})),[3,77];case 49:return[4,this.getChannel(Ce.channelUrl,!0)];case 50:return ut=Rn.sent(),ct=e.as(Yn),lt=ct.memberCount,ht=ct.joinedMemberCount,dt=ct.inviter,_t=ct.invitee,ut.isExclusive||ut.isSuper||ut.isBroadcast?ut._setLatestMemberCount(lt,ht,Ce.ts):ut.removeMember(_t),this._sdkState.userId===_t.userId?(ut.invitedAt=0,ut.myMemberState=qt.NONE,ut.isPublic?this._dispatcher.dispatch(new fn({channels:[ut],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_DECLINED_INVITE})):this._dispatcher.dispatch(new vn({channelUrls:[ut.url],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_DECLINED_INVITE}))):this._dispatcher.dispatch(new fn({channels:[ut],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_DECLINED_INVITE})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Dn,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return this._groupChannelHandlers.forEach((function(e){e.onUserDeclinedInvitation&&e.onUserDeclinedInvitation(ut,dt,_t)})),[2]}))}))})),[3,77];case 51:return[4,this.getChannel(Ce.channelUrl,!0)];case 52:return pt=Rn.sent(),ft=Ce.category===_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.j.TYPING_START,vt=e.as(ft?es:ns).user,pt._updateTypingStatus(vt,ft?Ce.ts:0),this._dispatcher.dispatch(new fn({channels:[pt],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_TYPING_STATUS_UPDATE})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Dn,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return this._groupChannelHandlers.forEach((function(e){e.onTypingStatusUpdated&&e.onTypingStatusUpdated(pt)})),[2]}))}))})),[3,77];case 53:return[4,this.getChannel(Ce.channelUrl,!0)];case 54:mt=Rn.sent(),gt=Ce.category===_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.j.USER_CHANNEL_MUTE,(Et=e.as(gt?_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.D:_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.E).user).userId===this._sdkState.userId&&(mt.myMutedState=gt?_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ob.MUTED:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ob.UNMUTED,mt._myMutedRemainingTime=Et.restrictionInfo.remainingDuration);try{for(Ct=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(mt.members),yt=Ct.next();!yt.done;yt=Ct.next())if((Mt=yt.value).userId===Et.userId){Mt.isMuted=gt;break}}catch(e){wn={error:e}}finally{try{yt&&!yt.done&&(Ln=Ct.return)&&Ln.call(Ct)}finally{if(wn)throw wn.error}}return this._dispatcher.dispatch(new fn({channels:[mt],source:gt?_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_MUTED:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_UNMUTED,data:Et.userId})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Dn,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return this._groupChannelHandlers.forEach((function(e){gt?e.onUserMuted&&e.onUserMuted(mt,Et):e.onUserUnmuted&&e.onUserUnmuted(mt,Et)})),[2]}))}))})),[3,77];case 55:return(bt=this._leftChannels.get(Ce.channelUrl))?(Ut=bt.channel,[3,58]):[3,56];case 56:return[4,this.getChannel(Ce.channelUrl,!0)];case 57:Ut=Rn.sent(),Rn.label=58;case 58:return Nt=Ut,this._markAsLeave(Nt),(St=e.as(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.C).user).userId===this._sdkState.userId&&this._dispatcher.dispatch(new vn({channelUrls:[Nt.url],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_BANNED})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Dn,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return this._groupChannelHandlers.forEach((function(e){e.onUserBanned&&e.onUserBanned(Nt,St)})),[2]}))}))})),[3,77];case 59:return[4,this.getChannel(Ce.channelUrl,!0)];case 60:return Tt=Rn.sent(),(At=e.as(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.B).user).userId===this._sdkState.userId&&this._dispatcher.dispatch(new vn({channelUrls:[Tt.url],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_UNBANNED})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Dn,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return this._groupChannelHandlers.forEach((function(e){e.onUserUnbanned&&e.onUserUnbanned(Tt,At)})),[2]}))}))})),[3,77];case 61:return[4,this.getChannel(Ce.channelUrl,!0)];case 62:return Dt=Rn.sent(),Ft=e.as(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.A).freeze,Dt.isFrozen=Ft,this._dispatcher.dispatch(new fn({channels:[Dt],source:Ft?_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_FROZEN:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_UNFROZEN})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Dn,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return this._groupChannelHandlers.forEach((function(e){Ft?e.onChannelFrozen&&e.onChannelFrozen(Dt):e.onChannelUnfrozen&&e.onChannelUnfrozen(Dt)})),[2]}))}))})),[3,77];case 63:return[4,this.getChannel(Ce.channelUrl,!0)];case 64:return zt=Rn.sent(),Wt=e.as(Zn),jt=Wt.allowAutoUnhide,Qt=Wt.hidePreviousMessages,Yt=Wt.messageOffsetTimestamp,null!==jt&&(zt.hiddenState=jt?pr.HIDDEN_ALLOW_AUTO_UNHIDE:pr.HIDDEN_PREVENT_AUTO_UNHIDE),null!==Qt&&Qt&&zt._updateUnreadCount(0,0),null!==Yt&&(zt.messageOffsetTimestamp=Yt),this._dispatcher.dispatch(new fn({channels:[zt],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_HIDDEN})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Dn,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return this._groupChannelHandlers.forEach((function(e){e.onChannelHidden&&e.onChannelHidden(zt)})),[2]}))}))})),[3,77];case 65:return[4,this.getChannel(Ce.channelUrl,!0)];case 66:return(Kt=Rn.sent()).hiddenState=pr.UNHIDDEN,this._dispatcher.dispatch(new fn({channels:[Kt],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_UNHIDDEN})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Dn,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return this._groupChannelHandlers.forEach((function(e){e.onChannelChanged&&e.onChannelChanged(Kt)})),[2]}))}))})),[3,77];case 67:return[4,this.getChannel(Ce.channelUrl,!0)];case 68:return Jt=Rn.sent(),this._dispatcher.dispatch(new vn({channelUrls:[Ce.channelUrl],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_DELETED})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Dn,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return this._groupChannelHandlers.forEach((function(e){e.onChannelDeleted&&e.onChannelDeleted(Jt.url,Jt.channelType)})),[2]}))}))})),[3,77];case 69:return[4,this.getChannelWithoutCache(Ce.channelUrl,!0)];case 70:return Xt=Rn.sent(),this._dispatcher.dispatch(new fn({channels:[Xt],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_UPDATED})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Dn,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return this._groupChannelHandlers.forEach((function(e){e.onChannelChanged&&e.onChannelChanged(Xt)})),[2]}))}))})),[3,77];case 71:return[4,this.getChannel(Ce.channelUrl,!0)];case 72:return Zt=Rn.sent(),$t=e.as(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.a),en=$t.created,tn=$t.updated,nn=$t.deleted,en&&(Zt._upsertCachedMetaData(en,Ce.ts),this._dispatcher.dispatch(new fn({channels:[Zt],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_METADATA_CREATED}))),tn&&(Zt._upsertCachedMetaData(tn,Ce.ts),this._dispatcher.dispatch(new fn({channels:[Zt],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_METADATA_UPDATED}))),nn&&(Zt._removeFromCachedMetaData(nn,Ce.ts),this._dispatcher.dispatch(new fn({channels:[Zt],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_METADATA_DELETED}))),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Dn,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return this._groupChannelHandlers.forEach((function(e){en&&e.onMetaDataCreated&&e.onMetaDataCreated(Zt,en),tn&&e.onMetaDataUpdated&&e.onMetaDataUpdated(Zt,tn),nn&&e.onMetaDataDeleted&&e.onMetaDataDeleted(Zt,nn)})),[2]}))}))})),[3,77];case 73:return[4,this.getChannel(Ce.channelUrl,!0)];case 74:return sn=Rn.sent(),rn=e.as(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.x),an=rn.created,on=rn.updated,un=rn.deleted,an&&this._dispatcher.dispatch(new fn({channels:[sn],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_METACOUNTER_CREATED})),on&&this._dispatcher.dispatch(new fn({channels:[sn],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_METACOUNTER_UPDATED})),un&&this._dispatcher.dispatch(new fn({channels:[sn],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_METACOUNTER_DELETED})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Dn,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return this._groupChannelHandlers.forEach((function(e){an&&e.onMetaCounterCreated&&e.onMetaCounterCreated(sn,an),on&&e.onMetaCounterUpdated&&e.onMetaCounterUpdated(sn,on),un&&e.onMetaCounterDeleted&&e.onMetaCounterDeleted(sn,un)})),[2]}))}))})),[3,77];case 75:return[4,this.getChannel(Ce.channelUrl,!0)];case 76:return cn=Rn.sent(),ln=e.as(is),hn=ln.pinnedMessageIds,dn=ln.latestPinnedMessage,(_n=ln.ts)>cn._pinnedMessagesUpdatedAt&&(cn.pinnedMessageIds=hn,cn.lastPinnedMessage=dn,cn._pinnedMessagesUpdatedAt=_n,this._dispatcher.dispatch(new fn({channels:[cn],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_PINNED_MESSAGE_UPDATED})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Dn,void 0,void 0,(function(){var e,t,n,s,r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(i){try{for(e=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._groupChannelHandlers.values()),t=e.next();!t.done;t=e.next())(n=t.value).onChannelChanged&&n.onChannelChanged(cn)}catch(e){s={error:e}}finally{try{t&&!t.done&&(r=e.return)&&r.call(e)}finally{if(s)throw s.error}}return[2]}))}))})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Dn,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return this._groupChannelHandlers.forEach((function(e){e.onPinnedMessageUpdated&&e.onPinnedMessageUpdated(cn)})),[2]}))}))}))),[3,77];case 77:return[3,79];case 78:switch((pn=e.as(_bundle_4d8e37ce_js__WEBPACK_IMPORTED_MODULE_2__.g).event).category){case _bundle_4d8e37ce_js__WEBPACK_IMPORTED_MODULE_2__.h.USER_BLOCK:mn=_bundle_4d8e37ce_js__WEBPACK_IMPORTED_MODULE_2__.i.getDataAsUserBlockEvent(this._iid,pn),En=mn.blocker,Cn=mn.blockee,this._groupChannelCache.block(En.userId,Cn.userId);break;case _bundle_4d8e37ce_js__WEBPACK_IMPORTED_MODULE_2__.h.USER_UNBLOCK:gn=_bundle_4d8e37ce_js__WEBPACK_IMPORTED_MODULE_2__.i.getDataAsUserBlockEvent(this._iid,pn),En=gn.blocker,Cn=gn.blockee,this._groupChannelCache.unblock(En.userId,Cn.userId)}return[3,79];case 79:return[3,81];case 80:if(yn=Rn.sent(),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.o)(yn))throw yn;return[3,81];case 81:return[2]}}))}))},_.prototype._markAsLeave=function(e){var t,n=this,s=null!==(t=this._leftChannels.get(e.url))&&void 0!==t?t:{channel:e,ref:0};s.ref++,this._leftChannels.set(e.url,s),setTimeout((function(){s.ref--,0===s.ref&&n._leftChannels.delete(e.url)}),1e4)},_.prototype.addHandler=function(e,t){this._groupChannelHandlers.set(e,t)},_.prototype.removeHandler=function(e){this._groupChannelHandlers.delete(e)},_.prototype.clearHandler=function(){this._groupChannelHandlers.clear()},_.prototype.subscribeChannelEvent=function(e,t){this._groupChannelBroadcast.subscribe(e,t)},_.prototype.unsubscribeChannelEvent=function(e){this._groupChannelBroadcast.unsubscribe(e)},_.prototype._updateJoinedMemberCount=function(e){e.joinedMemberCount=e.members.filter((function(e){return e.state===qt.JOINED})).length},_.prototype.getChannel=function(e,t){return void 0===t&&(t=!1),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(s){switch(s.label){case 0:Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.getChannelFromCache(e)];case 2:return(n=s.sent())?[2,n]:[3,4];case 3:return s.sent(),[3,4];case 4:return[4,this.getChannelWithoutCache(e,t)];case 5:return[2,s.sent()]}}))}))},_.prototype.getChannelWithoutCache=function(e,t){return void 0===t&&(t=!1),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n,s,r,i,a;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(c){switch(c.label){case 0:return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),n=new Cn({channelUrl:e,isInternalCall:t}),[4,this._requestQueue.send(n)];case 1:switch(s=c.sent(),r=s.as(yn).channel,i=r.unreadMessageCount,a=r.unreadMentionCount,r.myCountPreference){case _r.UNREAD_MESSAGE_COUNT_ONLY:a=0;break;case _r.UNREAD_MENTION_COUNT_ONLY:i=0;break;case _r.OFF:i=0,a=0}return r._updateUnreadCount(i,a),[4,this.upsertChannelsToCache([r])];case 2:return[2,c.sent()[0]]}}))}))},_.prototype.refreshChannel=function(e,t,n){return void 0===t&&(t=!0),void 0===n&&(n=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.REFRESH_CHANNEL),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var s,r,i,a,o;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(u){switch(u.label){case 0:return u.trys.push([0,5,,6]),s=new Cn({channelUrl:e,isInternalCall:t}),[4,this._requestQueue.send(s)];case 1:return r=u.sent(),(i=r.as(yn).channel).myMemberState!==qt.NONE?[3,2]:(this._dispatcher.dispatch(new vn({channelUrls:[i.url],source:n})),[3,4]);case 2:return[4,this.upsertChannelsToCache([i])];case 3:a=u.sent(),this._dispatcher.dispatch(new fn({channels:a,source:n})),u.label=4;case 4:return[3,6];case 5:return(o=u.sent()).code!==_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sb.NON_AUTHORIZED&&o.code!==_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sb.NOT_FOUND_IN_DATABASE||this._dispatcher.dispatch(new vn({channelUrls:[e],source:n})),[3,6];case 6:return[2]}}))}))},_.prototype.getMyGroupChannels=function(e,t,n,r,i){return void 0===r&&(r=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.REQUEST_CHANNEL),void 0===i&&(i=!1),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var a,o,u,c,l,h,_,p,f;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(d){switch(d.label){case 0:return t.createdAfter&&(t.createdAfter=Math.floor(t.createdAfter/1e3)),t.createdBefore&&(t.createdBefore=Math.floor(t.createdBefore/1e3)),a=!1,i&&(o=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),u=o.appInfo,(c=o.cacheContext)&&!c.localCacheEnabled&&(null==u?void 0:u.enabledChannelMemberShipHistory)&&(null==u?void 0:u.applicationAttributes.includes("left_user_view_support"))&&(a=!0)),l=new bn(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},t),{userId:this._sdkState.userId,token:e,limit:n,includeLeftChannel:i&&a})),[4,this._requestQueue.send(l)];case 1:return h=d.sent(),_=h.as(Nn),p=_.channels,f=_.token,this._dispatcher.dispatch(new fn({channels:p,source:r})),[2,{channels:p,token:f}]}}))}))},_.prototype.getMyGroupChannelChangeLogs=function(e,t,r){return void 0===r&&(r=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.REQUEST_CHANNEL_CHANGELOGS),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var i,a,c,l,h,_,p,f;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(d){switch(d.label){case 0:return i=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},rn),t),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)((Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e)||Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e))&&an(i)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),a=new gn(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({userId:this._sdkState.userId,ts:"number"==typeof e?e:null,token:"string"==typeof e?e:null,filter:i})),[4,this._requestQueue.send(a)];case 1:return c=d.sent(),l=c.as(En),h=l.updatedChannels,_=l.deletedChannelUrls,p=l.hasMore,f=l.ts,h.length>0&&this._dispatcher.dispatch(new fn({channels:h,source:r,ts:f})),_.length>0&&this._dispatcher.dispatch(new vn({channelUrls:_,source:r})),[2,{updatedChannels:h,deletedChannelUrls:_,hasMore:p,token:l.token}]}}))}))},_.prototype.getGroupChannelCount=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(i){switch(i.label){case 0:return t=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},on),e),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(un(t)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),n=new Un({userId:this._sdkState.userId,filter:t}),[4,this._requestQueue.send(n)];case 1:return[2,i.sent().as(Sn).groupChannelCount]}}))}))},_.prototype.getUnreadItemCount=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n,r,i,a,c,l,h,_,p,v,m,g,E,C,y,M;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(d){switch(d.label){case 0:return n=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},cn),e),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)($t,e.keys)}(n)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),r=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),i=r.sdkState,a=r.requestQueue,c=new Tn({userId:i.userId,filter:n}),[4,a.send(c)];case 1:return l=d.sent(),h=l.as(An),_=h.groupChannelUnreadMentionCount,p=h.groupChannelUnreadMessageCount,v=h.groupChannelInvitationCount,m=h.superGroupChannelUnreadMentionCount,g=h.superGroupChannelUnreadMessageCount,E=h.superGroupChannelInvitationCount,C=h.nonSuperGroupChannelUnreadMentionCount,y=h.nonSuperGroupChannelUnreadMessageCount,M=h.nonSuperGroupChannelInvitationCount,[2,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)({groupChannelUnreadMentionCount:_,groupChannelUnreadMessageCount:p,groupChannelInvitationCount:v,superGroupChannelUnreadMentionCount:m,superGroupChannelUnreadMessageCount:g,superGroupChannelInvitationCount:E,nonSuperGroupChannelUnreadMentionCount:C,nonSuperGroupChannelUnreadMessageCount:y,nonSuperGroupChannelInvitationCount:M})]}}))}))},_.prototype.getTotalUnreadChannelCount=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t,n,s;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(i){switch(i.label){case 0:return e=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),t=e.sdkState,n=e.requestQueue,s=new In({userId:t.userId}),[4,n.send(s)];case 1:return[2,i.sent().as(wn).unreadCount]}}))}))},_.prototype.getTotalUnreadMessageCount=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,r,i,a;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(l){switch(l.label){case 0:return t=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},ln),e),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",e.channelCustomTypesFilter,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(jt,e.superChannelFilter)}(t)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),n=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),r=n.sdkState,i=n.requestQueue,a=new Ln({userId:r.userId,filter:t}),[4,i.send(a)];case 1:return[2,l.sent().as(Dn).unreadCount]}}))}))},_.prototype.getTotalScheduledMessageCount=function(e){return void 0===e&&(e={}),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,i;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(c){switch(c.label){case 0:return t=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},dn),e),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.channelUrl,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.k,e.scheduledStatus,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.vb,e.messageTypeFilter)}(t)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),n=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,i=new Rn(t),[4,n.send(i)];case 1:return[2,c.sent().as(Fn).count]}}))}))},_.prototype.getSubscribedTotalUnreadMessageCount=function(){var e=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).subscribedUnreadMessageCount;return e.all>=0?e.all:0},_.prototype.getSubscribedCustomTypeTotalUnreadMessageCount=function(){var e=0,t=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).subscribedUnreadMessageCount;for(var n in t.customTypes)e+=t.customTypes[n];return e},_.prototype.getSubscribedCustomTypeUnreadMessageCount=function(e){var t;return null!==(t=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).subscribedUnreadMessageCount.customTypes[e])&&void 0!==t?t:0},_.prototype.createChannel=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,r,i;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(a){switch(a.label){case 0:return t=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},nn),e),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(sn(t)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),t.isPublic||(t.accessCode=void 0),n=new kn(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({userId:this._sdkState.userId},t)),[4,this._requestQueue.send(n)];case 1:return r=a.sent(),i=r.as(xn).channel,[4,this.upsertChannelsToCache([i])];case 2:return a.sent(),[2,i]}}))}))},_.prototype.markAsReadAll=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t,n,s,r,i,a,c;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(l){switch(l.label){case 0:return e=Date.now(),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(e-this._markAsReadAllLastSentAt>=1e3).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.markAsReadAllRateLimitExceeded),this._markAsReadAllLastSentAt=e,t=new On({userId:this._sdkState.userId}),[4,this._requestQueue.send(t)];case 1:l.sent(),n=this._groupChannelCache.channels;try{for(s=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(n),r=s.next();!r.done;r=s.next())(i=r.value)._updateUnreadMemberState(this._sdkState.userId,e),i._updateUnreadCount(0,0)}catch(e){a={error:e}}finally{try{r&&!r.done&&(c=s.return)&&c.call(s)}finally{if(a)throw a.error}}return n.length>0?[4,this.upsertChannelsToCache(n)]:[3,3];case 2:l.sent(),l.label=3;case 3:return[2]}}))}))},_.prototype.markAsReadWithChannelUrls=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,s,r,i,a,c,l,h;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(d){switch(d.label){case 0:return t=Date.now(),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",e)&&t-this._markAsReadAllLastSentAt>=1e3).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.markAsReadAllRateLimitExceeded),this._markAsReadAllLastSentAt=t,n=new On({userId:this._sdkState.userId,channelUrls:e}),[4,this._requestQueue.send(n)];case 1:d.sent(),s=this._groupChannelCache.channels,r=[];try{for(i=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(s),a=i.next();!a.done;a=i.next())c=a.value,e.includes(c.url)&&(c._updateUnreadMemberState(this._sdkState.userId,t),c._updateUnreadCount(0,0),r.push(c))}catch(e){l={error:e}}finally{try{a&&!a.done&&(h=i.return)&&h.call(i)}finally{if(l)throw l.error}}return r.length>0?[4,this.upsertChannelsToCache(r)]:[3,3];case 2:d.sent(),d.label=3;case 3:return[2]}}))}))},_.prototype.markAsDelivered=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return[4,this.getChannel(e)];case 1:return[4,t.sent().markAsDelivered()];case 2:return t.sent(),[2]}}))}))},_.prototype.getMessageFromCache=function(e){var t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return[4,this._messageCache.get(e)];case 1:return[2,null!==(t=n.sent())&&void 0!==t?t:null]}}))}))},_.prototype.getExactlyMatchingMessagesForTokenFromCache=function(e,t,n){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(s){switch(s.label){case 0:return[4,this._messageCache.fetch({channelUrl:e,token:t,filter:n,exactMatch:!0})];case 1:return[2,s.sent()]}}))}))},_.prototype.getMessagesFromCache=function(e,t,n,s,r,i){return void 0===r&&(r=_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.Z),void 0===i&&(i=!0),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(a){switch(a.label){case 0:return[4,this._messageCache.fetch({channelUrl:e,token:t,limit:r,filter:s,backward:"next"===n,inclusive:i})];case 1:return[2,a.sent()]}}))}))},_.prototype.getPollMessagesFromCache=function(e,t,n,s){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(r){switch(r.label){case 0:return[4,this._messageCache.fetch({channelUrl:e,token:t,limit:s,filter:n,backward:!1,isPollOnly:!0})];case 1:return[2,r.sent()]}}))}))},_.prototype.getCachedMessageCountBetween=function(e,t,n,s){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(r){switch(r.label){case 0:return[4,this._messageCache.countBetween(e,t,new cs({top:n,bottom:s}))];case 1:return[2,r.sent()]}}))}))},_.prototype.getUnsentMessagesFromCache=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return[4,this._unsentMessageCache.fetch({channelUrl:e,filter:t})];case 1:return[2,n.sent()]}}))}))},_.prototype.removeFailedMessageFromCache=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return[4,this._unsentMessageCache.remove([e])];case 1:return t.sent(),[2]}}))}))},_}(_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_3__.b),ds=function(e,t){return t instanceof _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.J?e.findIndex((function(e){return e instanceof _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.J&&t.isIdentical(e)})):e.findIndex((function(e){return e.isIdentical(t)}))},_s=function(e,t){return e.findIndex((function(e){return e instanceof _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.G?e.messageId===t:e instanceof _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.ab?e.notificationId===t:void 0}))},ps=function(e,t){if(e.length>0){for(var n=0,s=e.length-1,r=Math.floor((n+s)/2);n0)s=r,r=Math.floor((n+s)/2);else{if(!(i<0))return r;n=r+1,r=Math.floor((n+s)/2)}}return e[r].createdAt>t.createdAt?r:r+1}return e.length};!function(e){e[e.IDLE=0]="IDLE",e[e.RUNNING=1]="RUNNING",e[e.END=2]="END"}(os||(os={}));var fs,vs=function(t){function n(e,n,s,r){var i=t.call(this)||this;return i._state=os.IDLE,i._retryCount=0,i._retryLimit=3,i.priority=0,i._worker=n,i}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),Object.defineProperty(n.prototype,"isIdle",{get:function(){return this._state===os.IDLE},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isRunning",{get:function(){return this._state===os.RUNNING},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isDone",{get:function(){return this._state===os.END},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"retryCount",{get:function(){return this._retryCount},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"retryLimit",{get:function(){return this._retryLimit},enumerable:!1,configurable:!0}),n.prototype._run=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(s){switch(s.label){case 0:if(!this.isRunning)return[3,4];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this._worker(e)];case 2:return t=s.sent(),this._retryCount=0,this.dispatch("progress",t),t.hasNext?this._run(t.nextToken):this.end(),[3,4];case 3:return n=s.sent(),this.dispatch("error",n),this._retryCount0&&(r=s.map((function(e){return e.createdAt})),(null===(v=this._metadata)||void 0===v?void 0:(a=v.range).intersect.apply(a,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(r),!1)))?this.extendRange(s):this._metadata={range:new cs({top:Math.min.apply(Math,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(r),!1)),bottom:Math.max.apply(Math,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(r),!1))}),previousComplete:!1}),t.hasNext=s.length>=this._limit&&this._prevSyncLoopCount<1,this._metadata&&(t.nextToken=this._metadata.range.top,this._metadata.previousComplete=s.length0&&(r=s.map((function(e){return e.createdAt})),(null===(_=this._metadata)||void 0===_?void 0:(a=_.range).intersect.apply(a,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(r),!1)))?this.extendRange(s):this._metadata={range:new cs({top:Math.min.apply(Math,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(r),!1)),bottom:Math.max.apply(Math,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(r),!1))}),previousComplete:!1}),t.hasNext=s.length>=this._limit,this._metadata&&(t.nextToken=this._metadata.range.bottom),m.debug("message background next sync progress",t),[4,this.saveMetadata()];case 4:return d.sent(),[3,7];case 5:throw i=d.sent(),m.debug("message background next sync error",i),i;case 6:return g.put(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Tb({type:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Mb.FEATURE_LOCALCACHE_EVENT,ts:Date.now(),data:{channel_url:n.url,measured_on:"back_sync",event:"cache_fetch",max_db_size:null!==(v=null===(p=f.localCacheConfig)||void 0===p?void 0:p.maxSize)&&void 0!==v?v:0,use_local_cache:f.localCacheEnabled,starting_point:0,message_init_policy:""}})),[7];case 7:return[2,t]}}))}))})),this._connectionEventContext=v.on((function(e){e instanceof _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.c&&(e.stateType===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.e.CONNECTED?i.resume():i.pause())}))}return e.of=function(t,n){return ms[t]||(ms[t]={}),ms[t][n.url]||(ms[t][n.url]=new e({_iid:t,channel:n})),ms[t][n.url].ref++,ms[t][n.url]},e.clear=function(e,t){ms[e]&&ms[e][t]&&(ms[e][t].close(),delete ms[e])},Object.defineProperty(e.prototype,"range",{get:function(){var e,t;return null!==(t=null===(e=this._metadata)||void 0===e?void 0:e.range)&&void 0!==t?t:new cs({})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousComplete",{get:function(){var e;return!!(null===(e=this._metadata)||void 0===e?void 0:e.previousComplete)},enumerable:!1,configurable:!0}),e.prototype.isWrappingMessages=function(e){var t;return null===(t=this.range)||void 0===t?void 0:t.includes.apply(t,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(e.map((function(e){return e.createdAt}))),!1))},e.prototype.extendRange=function(e){var t;this._metadata&&(t=this._metadata.range).extends.apply(t,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(e.map((function(e){return e.createdAt}))),!1))},e.prototype.loadMetadata=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return this._metadata?[3,2]:[4,_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).cacheContext.preference.get(this._metadataKey)];case 1:e=t.sent(),this._metadata=e?{range:new cs(e.range),previousComplete:e.previousComplete}:{range:new cs({}),previousComplete:!1},t.label=2;case 2:return[2,this._metadata]}}))}))},e.prototype.saveMetadata=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return this._metadata?[4,_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).cacheContext.preference.set(this._metadataKey,this._metadata)]:[3,2];case 1:return e.sent(),[2,!0];case 2:return[2,!1]}}))}))},e.prototype.clearMetadata=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return[4,_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).cacheContext.preference.remove(this._metadataKey)];case 1:return e.sent(),this._metadata=void 0,[2]}}))}))},e.prototype.resume=function(e){var t,n,s,r;void 0===e&&(e=Date.now());var i=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),a=i.logger;i.sessionManager.session.hasSession&&(a.debug("message background sync resume()"),this._prevSyncLoopCount=0,this._metadata&&this._metadata.previousComplete||this._prevSync.start(null!==(n=null===(t=this._metadata)||void 0===t?void 0:t.range.top)&&void 0!==n?n:e),this._nextSync.start(null!==(r=null===(s=this._metadata)||void 0===s?void 0:s.range.bottom)&&void 0!==r?r:e))},e.prototype.pause=function(){_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).logger.debug("message background sync stop()"),this._prevSync.stop(),this._nextSync.stop()},e.prototype.close=function(){this.ref--,this.ref<=0&&(this.ref=0,this.pause(),this._connectionEventContext.close(),delete ms[this._iid][this._channel.url])},e}(),Es={},Cs=function(){function e(e){var t=e._iid,n=e.channel,r=e.includeParams,i=this;this.ref=0,this._iid=t,this._channel=n,this._includeParams=r;var a,o,c=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),l=c.logger,_=c.sdkState,p=c.dispatcher;this._metadataKey=(a=_.userId,o=n.url,"sendbird:".concat(a,"@groupchannel/").concat(o,"/message/changelogs.meta"));var f=function(e,t){return"sendbird:".concat(e,"@groupchannel/").concat(t,"/message/changelogs")}(_.userId,this._channel.url);this._sync=new vs(f,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(i,void 0,void 0,(function(){var e,t,n,r,i,a,o,c;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(h){switch(h.label){case 0:return e={hasNext:!0,nextToken:0},[4,this.loadMetadata()];case 1:h.sent(),l.debug("message changelog sync from",null===(c=this._metadata)||void 0===c?void 0:c.token),h.label=2;case 2:return h.trys.push([2,5,,8]),[4,_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.bb.of(this._iid).getMessageChangelogs(this._channel.url,this._channel.channelType,this._metadata.token,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({replyType:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Db.ALL},this._includeParams),_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.SYNC_MESSAGE_CHANGELOGS)];case 3:return t=h.sent(),n=t.updatedMessages,r=t.deletedMessageIds,i=t.hasMore,a=t.token,e.hasNext=i,e.nextToken=a,(n.length>0||r.length>0)&&this._metadata&&(this._metadata.token=a),l.debug("message changelog sync progress",e),[4,this.saveMetadata()];case 4:return h.sent(),[3,8];case 5:return o=h.sent(),l.debug("message changelog sync error",o),o instanceof _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc&&o.isInvalidTokenError?[4,this.clearMetadata()]:[3,7];case 6:h.sent(),h.label=7;case 7:throw o;case 8:return[2,e]}}))}))})),this._connectionEventContext=p.on((function(e){e instanceof _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.c&&(e.stateType===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.e.CONNECTED?i.resume():i.pause())}))}return e.of=function(t,n,s){return Es[t]||(Es[t]={}),Es[t][n.url]||(Es[t][n.url]=new e({_iid:t,channel:n,includeParams:s})),Es[t][n.url].ref++,Es[t][n.url]},e.clear=function(e,t){Es[e]&&Es[e][t]&&(Es[e][t].close(),delete Es[e])},e.prototype.loadMetadata=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t,n,s;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(r){switch(r.label){case 0:return this._metadata?[3,2]:(e=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),t=e.cacheContext,n=e.firstConnectedAt,[4,t.preference.get(this._metadataKey)]);case 1:s=r.sent(),this._metadata={token:s?s.token:n},r.label=2;case 2:return[2,this._metadata]}}))}))},e.prototype.saveMetadata=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return this._metadata?[4,_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).cacheContext.preference.set(this._metadataKey,this._metadata)]:[3,2];case 1:return e.sent(),[2,!0];case 2:return[2,!1]}}))}))},e.prototype.clearMetadata=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return[4,_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).cacheContext.preference.remove(this._metadataKey)];case 1:return e.sent(),this._metadata=void 0,[2]}}))}))},e.prototype.resume=function(){var e=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),t=e.logger;e.sessionManager.session.hasSession&&(t.debug("message changelog sync resume()"),this._sync.start(0))},e.prototype.pause=function(){_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).logger.debug("message changelog sync pause()"),this._sync.stop()},e.prototype.close=function(){this.ref--,this.ref<=0&&(this.ref=0,this.pause(),this._connectionEventContext.close(),delete Es[this._iid][this._channel.url])},e}(),ys={},Ms=function(){function e(e){var t=e._iid,n=e.channel,s=e.hasPollMessage,r=this;this.ref=0,this._iid=t,this._channel=n;var i,a,o=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),c=o.logger,l=o.sdkState,_=o.dispatcher;this._metadataKey=(i=l.userId,a=n.url,"sendbird:".concat(i,"@groupchannel/").concat(a,"/poll/changelogs.meta"));var p=function(e,t){return"sendbird:".concat(e,"@groupchannel/").concat(t,"/poll/changelogs")}(l.userId,this._channel.url);this._sync=new vs(p,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(r,void 0,void 0,(function(){var e,t,n,r,i,a,o,l;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(h){switch(h.label){case 0:return e={hasNext:!0,nextToken:0},[4,this.loadMetadata()];case 1:return h.sent(),c.debug("poll changelog sync from",null===(l=this._metadata)||void 0===l?void 0:l.token),(t=!this._metadata||!this._metadata.token)?[4,s()]:[3,3];case 2:t=!h.sent(),h.label=3;case 3:if(t)return[2,{hasNext:!1,nextToken:0}];this._metadata||(n=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).firstConnectedAt,this._metadata={token:n}),h.label=4;case 4:return h.trys.push([4,7,,10]),[4,_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Q.of(this._iid).getPollChangeLogs(this._channel.url,this._channel.channelType,this._metadata.token)];case 5:return r=h.sent(),i=r.hasMore,a=r.token,e.hasNext=i,e.nextToken=a,this._metadata.token=a,c.debug("poll changelog sync progress",e),[4,this.saveMetadata()];case 6:return h.sent(),[3,10];case 7:return o=h.sent(),c.debug("poll changelog sync error",o),o instanceof _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc&&o.isInvalidTokenError?[4,this.clearMetadata()]:[3,9];case 8:h.sent(),h.label=9;case 9:throw o;case 10:return[2,e]}}))}))})),this._connectionEventContext=_.on((function(e){e instanceof _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.c&&(e.stateType===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.e.CONNECTED?r.resume():r.pause())}))}return e.of=function(t,n,s){return ys[t]||(ys[t]={}),ys[t][n.url]||(ys[t][n.url]=new e({_iid:t,channel:n,hasPollMessage:s})),ys[t][n.url].ref++,ys[t][n.url]},e.prototype.loadMetadata=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return this._metadata?[3,2]:[4,_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).cacheContext.preference.get(this._metadataKey)];case 1:e=t.sent(),this._metadata=e?{token:e.token}:void 0,t.label=2;case 2:return[2]}}))}))},e.prototype.saveMetadata=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return this._metadata?[4,_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).cacheContext.preference.set(this._metadataKey,this._metadata)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},e.prototype.clearMetadata=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return[4,_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).cacheContext.preference.remove(this._metadataKey)];case 1:return e.sent(),this._metadata=void 0,[2]}}))}))},e.prototype.resume=function(){_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).logger.debug("poll changelog sync resume()"),this._sync.start(0)},e.prototype.pause=function(){_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).logger.debug("poll changelog sync pause()"),this._sync.stop()},e.prototype.close=function(){this.ref--,this.ref<=0&&(this.ref=0,this.pause(),this._connectionEventContext.close(),delete ys[this._iid][this._channel.url])},e}(),bs=function(t){function n(e){var n=e.channels,s=e.source,r=e.isWebSocketEventComing,i=void 0!==r&&r,a=e.data,o=void 0===a?null:a,u=t.call(this)||this;return u.channels=n,u.source=s,u.isWebSocketEventComing=i,u.data=o,u}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Kb),Us=(function(t){function n(e){var n=e.channelUrls,s=e.source,r=e.isWebSocketEventComing,i=void 0!==r&&r,a=t.call(this)||this;return a.channelUrls=n,a.source=s,a.isWebSocketEventComing=i,a}Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t)}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Kb),function(n){function s(e){var s,r,i,a,o,u,c,l,h,d,_=this;return(_=n.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,_.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(e.channelType),"/").concat(e.channelUrl,"/messages_gap"),_.params=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)({prev_start_ts:e.prevStart,prev_end_ts:e.prevEnd,prev_cache_count:e.prevCount,next_start_ts:e.nextStart,next_end_ts:e.nextEnd,next_cache_count:e.nextCount,huge_gap_threshold:null!==(s=e.threshold)&&void 0!==s?s:null,reverse:!0,custom_types:null!==(r=e.customTypes)&&void 0!==r?r:["*"],message_type:null!==(i=e.messageType)&&void 0!==i?i:null,include_reply_type:null!==(a=e.replyType)&&void 0!==a?a:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Db.NONE,include_reactions:null===(o=e.includeReactions)||void 0===o||o,include_meta_array:null===(u=e.includeMetaArray)||void 0===u||u,include_thread_info:null===(c=e.includeThreadInfo)||void 0===c||c,include_parent_message_info:null===(l=e.includeParentMessageInfo)||void 0===l||l,with_sorted_meta_array:null===(h=e.includeMetaArray)||void 0===h||h,show_subchannel_messages_only:null!==(d=e.showSubchannelMessagesOnly)&&void 0!==d&&d,include_poll_details:!0,checking_continuous_messages:e.checkingContinuousMessages}),_}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(s,n),s}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec)),Ss=function(t){function n(e,n){var s,r,i,a,o,u,c=this;return(c=t.call(this,e,n)||this).isHugeGap=n.is_huge_gap,c.prevMessages=(null!==(s=n.prev_messages)&&void 0!==s?s:[]).map((function(t){return Object(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.j)(e,t)})),c.prevHasMore=null!==(r=n.prev_hasmore)&&void 0!==r&&r,c.isContinuousPrevMessages=null!==(i=n.is_continuous_prev_messages)&&void 0!==i&&i,c.nextMessages=(null!==(a=n.next_messages)&&void 0!==a?a:[]).map((function(t){return Object(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.j)(e,t)})),c.nextHasmore=null!==(o=n.next_hasmore)&&void 0!==o&&o,c.isContinuousNextMessages=null!==(u=n.is_continuous_next_messages)&&void 0!==u&&u,c}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),Ts=function(e){this.source=e},As=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(Ts),Is=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(Ts),ws=function(e){this.source=e},Ls=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(ws),Ds=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(ws),Rs={includeMetaArray:!0,includeReactions:!0,includeThreadInfo:!0,includeParentMessageInfo:!0};!function(e){e.CACHE_AND_REPLACE_BY_API="cache_and_replace_by_api"}(fs||(fs={}));var Fs,Ps,ks,xs=function(){function e(){this._onCacheResult=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this._onApiResult=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb}return e.prototype._invokeResponse=function(e,t,n){var s=this;Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(s,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(s){switch(e){case"local":this._onCacheResult(t,n);break;case"remote":this._onApiResult(t,n)}return[2]}))}))}))},e.prototype.onCacheResult=function(e){return this._onCacheResult=e,this},e.prototype.onApiResult=function(e){return this._onApiResult=e,this},e}(),Os=function(){function e(e,t){var n=t.filter,s=t.startingPoint,r=t.limit,i=t.prevResultLimit,a=t.nextResultLimit,o=t.channel,u=t.channelManager,_=t.disableBackgroundSync,f=void 0!==_&&_,v=this;this._messages=[],this._unsentMessages=[],this._isLoadingPrevious=!1,this._isLoadingNext=!1,this._iid=e,this._key="mc-".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.lc)()),this._isDisposed=!1,this.filter=null!=n?n:new _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.g,this._channel=o,this._syncRange=new cs({}),this._hasPrevious=!0,this._hasNext=!0,this._startingPoint="number"==typeof s&&Number.isFinite(s)?s:Number.MAX_SAFE_INTEGER,this._limit=r||_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.Z,this._prevResultLimit=null!=i?i:Math.floor(this._limit/2),this._nextResultLimit=null!=a?a:Math.floor(this._limit/2),this._channelManager=u,this._channelManager.subscribeChannelEvent(this._key,{onUpdate:function(e,t,n){var s=e.findIndex((function(e){return e.isIdentical(v.channel)}));s>=0&&(v._replaceChannelOfCollection(e[s]),v.channel._runIfHandleableWithGroupChannel((function(e){switch(t){case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_UPDATED:var s=!1;for(var r in v._messages)if(v._messages[r].createdAt>=e.messageOffsetTimestamp){s=!0;var i=parseInt(r);if(i>0){var a=v._messages.splice(0,i);v._removeMessagesFromView(a.map((function(e){return v.keyOf(e)})),_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_OFFSET_UPDATED)}break}!s&&v._messages.length>0&&v._removeMessagesFromView(v._messages.map((function(e){return v.keyOf(e)})),_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_OFFSET_UPDATED);break;case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_UNMUTED:var o=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(v._iid).sdkState,u=n;o.userId===u&&v._clearCheckMyMutedTimer();break;case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_MUTED:o=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(v._iid).sdkState;var c=n;o.userId===c&&-1!==e._myMutedRemainingTime&&v._startCheckMyMutedTimer(e._myMutedRemainingTime);break;case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_LEFT:e.isPublic&&v._clearCheckMyMutedTimer()}Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(v,void 0,void 0,(function(){var e,n;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(s){return e=this._createChannelEventContext(t),pn(t)&&(null===(n=this._handler)||void 0===n?void 0:n.onChannelUpdated)&&this._handler.onChannelUpdated(e,this.channel),[2]}))}))}))})),v._postprocessChannelUpdateEvent(e[s],t))},onRemove:function(e,t){var n=e.indexOf(v.channel.url);n>=0&&(v._clearCheckMyMutedTimer(),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(v,void 0,void 0,(function(){var e,n;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(s){return e=this._createChannelEventContext(t),(null===(n=this._handler)||void 0===n?void 0:n.onChannelDeleted)&&this._handler.onChannelDeleted(e,this.channel.url),[2]}))}))})),v._postprocessChannelRemoveEvent(e[n]))}}),this._channelManager.subscribeMessageEvent(this._key,{onUpdate:function(e,t){var n,s,r=[],i=[];try{for(var a=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(e),o=a.next();!o.done;o=a.next()){var u=o.value;u.channelUrl===v._channel.url&&(v.filter.match(u)?r.push(u):i.push(v.keyOf(u)))}}catch(e){n={error:e}}finally{try{o&&!o.done&&(s=a.return)&&s.call(a)}finally{if(n)throw n.error}}if(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ub)(t)){if(r.length>0)switch(t){case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.LOCAL_MESSAGE_CANCELED:case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.LOCAL_MESSAGE_RESEND_STARTED:case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_SENT_FAILED:case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_SENT_SUCCESS:case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_UPDATED:case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_THREADINFO_UPDATED:case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_REACTION_UPDATED:case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_FEEDBACK_ADDED:case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_FEEDBACK_UPDATED:case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_FEEDBACK_DELETED:case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.SYNC_MESSAGE_CHANGELOGS:v._updateMessagesToView(r,t);break;case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_SENT_PENDING:v._addMessagesToView(r,t);break;case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_RECEIVED:v.hasNext||v._addMessagesToView(r,t);break;case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.SYNC_MESSAGE_FILL:v._addMessagesToView(r,t)}i.length>0&&v._removeMessagesFromView(i,t)}v._postprocessMessageUpdateEvent(e,t)},onRemove:function(e,t){v._removeMessagesFromView(e,t),v._postprocessMessageRemoveEvent(e)},onRemoveUnsent:function(e,t){v._removeUnsentMessageFromView(e,t)},onPollChangeLogUpdate:function(e,t){v._updatePollsToView(e,t)},onPollUpdate:function(e,t){v._applyPollUpdateEventToView(e,t)},onPollVote:function(e,t){v._applyPollVoteEventToView(e,t)},onReactionUpdate:function(e,t){v._applyReactionEventToView(e,t)},onThreadInfoUpdate:function(e,t){v._applyThreadInfoEventToView(e,t)}});var m=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),g=m.cacheContext,C=m.dispatcher;this._channel._updateMessageCollectionLastAccessedAt();var M=this._createChannelUpdateEventCommand(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.CHANNEL_LASTACCESSEDAT_UPDATED);M&&C.dispatch(M),!f&&this._shouldStartBackgroundSync()&&(this._backgroundSync=gs.of(this._iid,this._channel),this._backgroundSync.resume(this._startingPoint)),this._changelogSync=Cs.of(this._iid,this._channel,this.changelogIncludeParams),this._changelogSync.resume(),this._pollChangelogSync=Ms.of(this._iid,this._channel,this._hasPollMessage.bind(this)),this._pollChangelogSync.resume(),this._prevFill=new vs(this._key,(function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(v,void 0,void 0,(function(){var t,n,s,r,i,a,o;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(u){switch(u.label){case 0:return[4,this._getRemoteMessages(e,{prevLimit:this._prevResultLimit,source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.SYNC_MESSAGE_FILL,checkingContinuousMessages:g.localCacheEnabled})];case 1:return t=u.sent(),n=t.messages,s=t.isContinuousMessages,n.length>0?(r=Math.min.apply(Math,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(n.map((function(e){return e.createdAt}))),!1)),this._syncRange.extends(r),s&&(null===(i=this._backgroundSync)||void 0===i||i.range.extends(r)),[2,{hasNext:n.length>=this._prevResultLimit&&this.viewTop0?(r=Math.max.apply(Math,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(n.map((function(e){return e.createdAt}))),!1)),this._syncRange.extends(r),s&&(null===(i=this._backgroundSync)||void 0===i||i.range.extends(r)),[2,{hasNext:!(n.length>=this._nextResultLimit&&this._hasNext)||this.viewBottom>r,nextToken:this._syncRange.bottom}]):(b.put(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Tb({type:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Mb.FEATURE_LOCALCACHE_EVENT,ts:Date.now(),data:{channel_url:this.channel.url,measured_on:"gap_check",event:"cache_fetch",max_db_size:null!==(o=null===(a=g.localCacheConfig)||void 0===a?void 0:a.maxSize)&&void 0!==o?o:0,use_local_cache:g.localCacheEnabled,starting_point:0,message_init_policy:""}})),[2,{hasNext:!1,nextToken:0}])}}))}))})),this._connectionEventContext=C.on((function(e){if(e instanceof _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.c)switch(e.stateType){case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.e.CONNECTED:Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.yc)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(v,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return this._activate(),[2]}))}))}));break;case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.e.LOGOUT:v.dispose();break;default:v._clearCheckMyMutedTimer(),v._prevFill.stop(),v._nextFill.stop()}}));var b=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).statLogCollector;b.put(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Lb({type:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Mb.FEATURE_LOCALCACHE,data:{use_local_cache:g.localCacheEnabled,collection_interface:{message:!0}}}))}return e.prototype.keyOf=function(e){return 0},Object.defineProperty(e.prototype,"changelogIncludeParams",{get:function(){return{includeReactions:!0,includeThreadInfo:!0,includeMetaArray:!0,includeParentMessageInfo:!0}},enumerable:!1,configurable:!0}),e.prototype._postprocessChannelUpdateEvent=function(e,t){},e.prototype._postprocessChannelRemoveEvent=function(e){},e.prototype._postprocessMessageUpdateEvent=function(e,t){},e.prototype._postprocessMessageRemoveEvent=function(e){},Object.defineProperty(e.prototype,"channel",{get:function(){return this._channel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"succeededMessages",{get:function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(this._messages),!1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"failedMessages",{get:function(){return this._unsentMessages.filter((function(e){return e.sendingStatus===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tb.FAILED}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pendingMessages",{get:function(){return this._unsentMessages.filter((function(e){return e.sendingStatus===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tb.PENDING}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasPrevious",{get:function(){return this._hasPrevious},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasNext",{get:function(){return this._hasNext},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewTop",{get:function(){return Math.min.apply(Math,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(this._messages.map((function(e){return e.createdAt}))),!1),[Number.MAX_SAFE_INTEGER],!1))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewBottom",{get:function(){return Math.max.apply(Math,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(this._messages.map((function(e){return e.createdAt}))),!1),[0],!1))},enumerable:!1,configurable:!0}),e.prototype._activate=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).logger.debug("check huge gap"),this._checkHugeGap(),[4,this._refreshChannel(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.SYNC_CHANNEL_CHANGELOGS)];case 1:return e.sent(),[2]}}))}))},e.prototype._replaceChannelOfCollection=function(e){this._channel.isGroupChannel()?this._channel=e:this._channel.isFeedChannel()&&(this._channel._groupChannel=e._groupChannel)},e.prototype._shouldStartBackgroundSync=function(){var e=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).cacheContext;return this.channel.isGroupChannel()?e.localCacheEnabled&&!this.channel.isSuper:e.localCacheEnabled},e.prototype._createChannelEventContext=function(e){switch(!0){case this.channel.isGroupChannel():return new As(e);case this.channel.isFeedChannel():return new Is(e);default:throw new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc({code:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sb.WRONG_CHANNEL_TYPE,message:"Wrong channel type"})}},e.prototype._createMessageEventContext=function(e){switch(!0){case this.channel.isGroupChannel():return new Ls(e);case this.channel.isFeedChannel():return new Ds(e);default:throw new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc({code:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sb.WRONG_CHANNEL_TYPE,message:"Wrong channel type"})}},e.prototype._createChannelUpdateEventCommand=function(e){switch(!0){case this.channel.isGroupChannel():return new fn({channels:[this._channel],source:e});case this.channel.isFeedChannel():return new bs({channels:[this._channel],source:e});default:return null}},e.prototype._setBaseMessageCollectionHandler=function(e){this._handler=e},e.prototype._filterUnderOffsetMessage=function(e){return e},e.prototype._updateChildMessagesInView=function(e){var t=[];return this._messages.forEach((function(n){n instanceof _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.G&&n.parentMessageId===e.messageId&&n.applyParentMessage(e)&&t.push(n)})),t},e.prototype._updatePollsToView=function(e,t){var n,s,r=this,i=[];try{for(var a=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(e),o=a.next();!o.done;o=a.next()){var u=o.value,c=_s(this._messages,u.messageId);if(c>=0){var l=this._messages[c];l.isUserMessage()&&l.applyPoll(u),i.push(l)}}}catch(e){n={error:e}}finally{try{o&&!o.done&&(s=a.return)&&s.call(a)}finally{if(n)throw n.error}}return i.length>0&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ub)(t)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(r,void 0,void 0,(function(){var e,n,s;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(r){return e=this._createMessageEventContext(t),i.length>0&&(null===(s=(n=this._handler).onMessagesUpdated)||void 0===s||s.call(n,e,this.channel,i)),[2]}))}))})),i},e.prototype._applyPollUpdateEventToView=function(e,t){var n=this,s=_s(this._messages,e.messageId);if(s>=0){var r=this._messages[s];r&&r.isUserMessage()&&r.poll&&r.poll.applyPollUpdateEvent(e)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ub)(t)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(n,void 0,void 0,(function(){var e,n,s;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(i){return e=this._createMessageEventContext(t),null===(s=null===(n=this._handler)||void 0===n?void 0:n.onMessagesUpdated)||void 0===s||s.call(n,e,this.channel,[r]),[2]}))}))}))}},e.prototype._applyPollVoteEventToView=function(e,t){var n=this,s=_s(this._messages,e.messageId);if(s>=0){var r=this._messages[s];r&&r.isUserMessage()&&r.poll&&r.poll.applyPollVoteEvent(e)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ub)(t)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(n,void 0,void 0,(function(){var e,n,s;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(i){return e=this._createMessageEventContext(t),null===(s=null===(n=this._handler)||void 0===n?void 0:n.onMessagesUpdated)||void 0===s||s.call(n,e,this.channel,[r]),[2]}))}))}))}},e.prototype._applyReactionEventToView=function(e,t){var n=this,s=_s(this._messages,e.messageId);if(s>=0){var r=this._messages[s];r&&(r.isUserMessage()||r.isFileMessage()||r.isMultipleFilesMessage())&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ub)(t)&&(r.applyReactionEvent(e),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(n,void 0,void 0,(function(){var e,n,s;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(i){return e=this._createMessageEventContext(t),null===(s=null===(n=this._handler)||void 0===n?void 0:n.onMessagesUpdated)||void 0===s||s.call(n,e,this.channel,[r]),[2]}))}))})))}},e.prototype._applyThreadInfoEventToView=function(e,t){var n=this,s=_s(this._messages,e.targetMessageId);if(s>=0){var r=this._messages[s];r&&(r.isUserMessage()||r.isFileMessage()||r.isMultipleFilesMessage())&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ub)(t)&&(r.applyThreadInfoUpdateEvent(e),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(n,void 0,void 0,(function(){var e,n,s;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(i){return e=this._createMessageEventContext(t),null===(s=null===(n=this._handler)||void 0===n?void 0:n.onMessagesUpdated)||void 0===s||s.call(n,e,this.channel,[r]),[2]}))}))})))}},e.prototype._removeMessagesFromView=function(e,t){var n,s,r=this,i=[],a=[],o=function(e){var t=u._messages.findIndex((function(t){return r.keyOf(t)===e}));if(t>=0){var n=u._messages[t];i.push(u.keyOf(n)),a.push(n),u._messages.splice(t,1)}},u=this;try{for(var c=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(e),l=c.next();!l.done;l=c.next())o(l.value)}catch(e){n={error:e}}finally{try{l&&!l.done&&(s=c.return)&&s.call(c)}finally{if(n)throw n.error}}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ub)(t)&&a.length>0&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(r,void 0,void 0,(function(){var e,n,s;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(r){return e=this._createMessageEventContext(t),null===(s=null===(n=this._handler)||void 0===n?void 0:n.onMessagesDeleted)||void 0===s||s.call(n,e,this.channel,i,a),[2]}))}))})),i},e.prototype._removeUnsentMessageFromView=function(e,t){var n=this._unsentMessages.findIndex((function(t){return t.reqId===e}));n>=0&&this._unsentMessages.splice(n,1)},e.prototype._getLocalMessages=function(e,t){var n=t.prevLimit,s=void 0===n?0:n,r=t.nextLimit,i=void 0===r?0:r,a=t.inclusive,o=void 0===a||a;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,r,a,u;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(h){switch(h.label){case 0:return t=[],o?[4,this._channelManager.getExactlyMatchingMessagesForTokenFromCache(this._channel.url,e,this.filter)]:[3,2];case 1:t=h.sent(),h.label=2;case 2:return s>0?[4,this._channelManager.getMessagesFromCache(this._channel.url,e,"prev",this.filter,s,!1)]:[3,4];case 3:return r=h.sent(),[3,5];case 4:r=[],h.label=5;case 5:return n=r,i>0?[4,this._channelManager.getMessagesFromCache(this._channel.url,e,"next",this.filter,i,!1)]:[3,7];case 6:return u=h.sent(),[3,8];case 7:u=[],h.label=8;case 8:return a=u,[2,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(t),!1),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(n),!1),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(a),!1).sort((function(e,t){return t.createdAt-e.createdAt}))]}}))}))},e.prototype._getRemoteMessages=function(e,t){var r=t.prevLimit,i=void 0===r?0:r,a=t.nextLimit,o=void 0===a?0:a,u=t.source,c=void 0===u?_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.REQUEST_MESSAGE:u,l=t.reverse,_=void 0!==l&&l,p=t.checkingHasNext,f=void 0!==p&&p,v=t.checkingContinuousMessages,m=void 0!==v&&v;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(a){switch(a.label){case 0:return t=_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.bb.of(this._iid),i>0||o>0?[4,t._getMessagesByTimestampForCollection(this._channel.url,this._channel.channelType,e,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},this.filter),Rs),{isInclusive:!0,reverse:_,prevResultSize:i,nextResultSize:o})),c,f,m)]:[3,2];case 1:return r=a.sent(),[3,3];case 2:r={messages:[],isContinuousMessages:!1},a.label=3;case 3:return[2,r]}}))}))},e.prototype._checkHugeGap=function(){var e,t,n,r,i;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var a,o,_,p,f,v,m,g,C,y,M,b,N,U,S,T,A,I,w,L,D,R,F,k,x,O=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(V){switch(V.label){case 0:return a=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),o=a.dispatcher,_=a.requestQueue,p=a.cacheContext,f=a.statLogCollector,v=a.logger,this._messages.length>0?(m=this._syncRange.top,g=this.viewTop,C=this._syncRange.bottom,y=this.hasNext?this.viewBottom:Number.MAX_SAFE_INTEGER,[4,this._channelManager.getCachedMessageCountBetween(this._channel.url,this.filter,g,m)]):[3,8];case 1:return M=V.sent(),[4,this._channelManager.getCachedMessageCountBetween(this._channel.url,this.filter,C,y)];case 2:b=V.sent(),V.label=3;case 3:return V.trys.push([3,5,6,7]),[4,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Vb)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(O,void 0,void 0,(function(){var e,t,n,r,i,a,u,f,v,N,U,S,T,A,I,w,L,D=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(R){switch(R.label){case 0:return e=new Us(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({channelUrl:this._channel.url,channelType:this._channel.channelType,prevStart:g,prevEnd:m,prevCount:M,nextStart:C,nextEnd:y,nextCount:b,checkingContinuousMessages:p.localCacheEnabled},this.filter),Rs)),[4,_.send(e)];case 1:return t=R.sent(),n=t.as(Ss),r=n.isHugeGap,i=n.prevMessages,a=void 0===i?[]:i,u=n.prevHasMore,f=n.isContinuousPrevMessages,v=n.nextMessages,N=void 0===v?[]:v,U=n.nextHasmore,S=n.isContinuousNextMessages,r?Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(D,void 0,void 0,(function(){var e;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){return(null===(e=this._handler)||void 0===e?void 0:e.onHugeGapDetected)&&this._handler.onHugeGapDetected(),[2]}))}))})):(T=this.viewTop,A=this.viewBottom,I=Math.min.apply(Math,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([Number.MAX_SAFE_INTEGER,T],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(a.map((function(e){return e.createdAt}))),!1)),w=Math.max.apply(Math,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([0,A],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(N.map((function(e){return e.createdAt}))),!1)),o.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rb({messages:a,source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.SYNC_MESSAGE_FILL})),o.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rb({messages:N,source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.SYNC_MESSAGE_FILL})),this._syncRange.extends(I,w),(f||S)&&(null===(L=this._backgroundSync)||void 0===L||L.range.extends(I,w)),u&&this._prevFill.start(I),U&&this._nextFill.start(w)),[2]}}))}))}),1)];case 4:return V.sent(),[3,7];case 5:return N=V.sent(),v.debug("Failed HugeGap Check ",N),[3,7];case 6:return f.put(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Tb({type:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Mb.FEATURE_LOCALCACHE_EVENT,ts:Date.now(),data:{channel_url:this.channel.url,measured_on:"gap_check",event:"cache_fetch",max_db_size:null!==(t=null===(e=p.localCacheConfig)||void 0===e?void 0:e.maxSize)&&void 0!==t?t:0,use_local_cache:p.localCacheEnabled,starting_point:0,message_init_policy:""}})),[7];case 7:return[3,13];case 8:U=Date.now(),V.label=9;case 9:return V.trys.push([9,11,12,13]),[4,this._getRemoteMessages(U,{prevLimit:this._prevResultLimit,nextLimit:this._nextResultLimit,source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.SYNC_MESSAGE_FILL,checkingHasNext:!0,checkingContinuousMessages:p.localCacheEnabled})];case 10:if(S=V.sent(),T=S.messages,A=S.isContinuousMessages,I=S.hasNext,T.length>0){for(w=T.map((function(e){return e.createdAt})),L=0,D=0,R=0;R=U&&D++;this._hasPrevious=L>=this._prevResultLimit,this._hasNext=null!=I?I:D>=this._nextResultLimit,(x=this._syncRange).extends.apply(x,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(w),!1)),A&&(null===(n=this._backgroundSync)||void 0===n||n.range.extends(this._syncRange.top,this._syncRange.bottom)),this._addMessagesToView(T,_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.SYNC_MESSAGE_FILL)}else this._hasPrevious=!1,this._hasNext=!1;return[3,13];case 11:return(k=V.sent())instanceof _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc&&k.code===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sb.NOT_FOUND_IN_DATABASE&&(this._hasPrevious=!1,this._hasNext=!1),[3,13];case 12:return f.put(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Tb({type:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Mb.FEATURE_LOCALCACHE_EVENT,ts:Date.now(),data:{channel_url:this.channel.url,measured_on:"gap_check",event:"cache_fetch",max_db_size:null!==(i=null===(r=p.localCacheConfig)||void 0===r?void 0:r.maxSize)&&void 0!==i?i:0,use_local_cache:p.localCacheEnabled,starting_point:0,message_init_policy:""}})),[7];case 13:return[2]}}))}))},e.prototype._loadUnsentMessages=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return e=this,[4,this._channelManager.getUnsentMessagesFromCache(this._channel.url,this.filter)];case 1:return e._unsentMessages=t.sent(),[2]}}))}))},e.prototype._hasPollMessage=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return[4,this._channelManager.getPollMessagesFromCache(this._channel.url,Date.now()+6e5,this.filter,1)];case 1:return e.sent().length>0?[2,!0]:[2,!1]}}))}))},e.prototype._refreshChannel=function(e){var t=this;Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.yc)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(t,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return[4,this._channelManager.refreshChannel(this.channel.url,!0,e)];case 1:return t.sent(),[2]}}))}))}))},e.prototype._startCheckMyMutedTimer=function(e){var t=this;this._clearCheckMyMutedTimer(),this._checkMyMutedStateTimer=setTimeout((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(t,void 0,void 0,(function(){var e,t,n=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(s){switch(s.label){case 0:this._checkMyMutedStateTimer=void 0,e=!0,s.label=1;case 1:return s.trys.push([1,3,4,5]),[4,this._channel.getMyMutedInfo()];case 2:return t=s.sent(),e=!t.isMuted,[3,5];case 3:return s.sent(),e=!0,[3,5];case 4:return e&&this.channel._runIfHandleableWithGroupChannel((function(e){var t,s;e.myMutedState=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ob.UNMUTED;var r=n._createChannelEventContext(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_UNMUTED);null===(s=null===(t=n._handler)||void 0===t?void 0:t.onChannelUpdated)||void 0===s||s.call(t,r,n.channel)})),[7];case 5:return[2]}}))}))}),e+1e3)},e.prototype._clearCheckMyMutedTimer=function(){this._checkMyMutedStateTimer&&(clearTimeout(this._checkMyMutedStateTimer),this._checkMyMutedStateTimer=void 0)},e.prototype.initialize=function(e){var t=this,n=new xs;this._messages=[],this._unsentMessages=[],this._syncRange=new cs({}),this._hasNext=!0,this._hasPrevious=!0,this._refreshChannel(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.REFRESH_CHANNEL);var s=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),r=s.cacheContext,i=s.statLogCollector;return e===fs.CACHE_AND_REPLACE_BY_API&&this._getLocalMessages(this._startingPoint,{prevLimit:this._prevResultLimit,nextLimit:this._nextResultLimit}).then((function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(t,void 0,void 0,(function(){var t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(s){switch(s.label){case 0:return t=this._filterUnderOffsetMessage(e),this._addMessagesToView(t,_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.REQUEST_MESSAGE),[4,this._loadUnsentMessages()];case 1:return s.sent(),n._invokeResponse("local",null,t),[2]}}))}))})).catch((function(e){if(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.o)(e))throw e;n._invokeResponse("local",e,null)})).finally((function(){var s=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(t._iid).cacheContext;t._getRemoteMessages(t._startingPoint,{prevLimit:t._prevResultLimit,nextLimit:t._nextResultLimit,reverse:!0,checkingHasNext:!0,checkingContinuousMessages:s.localCacheEnabled}).then((function(r){var a,o,u,h,d,_,p=r.messages,f=r.isContinuousMessages,v=r.hasNext,m=t._filterUnderOffsetMessage(p),g=!0;if(t._messages.length===m.length){var C=t._messages.map((function(e){return t.keyOf(e)}));for(var y in m)if(!C.includes(t.keyOf(m[y]))){g=!1;break}}else g=!1;if(t._messages=[],m.length>0){var M=m.map((function(e){return e.createdAt})),b=0,N=0;for(y=0;yt._startingPoint&&N++}t._hasPrevious=b>=t._prevResultLimit,t._hasNext=null!=v?v:N>=t._nextResultLimit,(a=t._syncRange).extends.apply(a,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(m.map((function(e){return e.createdAt}))),!1)),f&&(null===(o=t._backgroundSync)||void 0===o||o.range.extends(t._syncRange.top,t._syncRange.bottom)),t._addMessagesToView(m,_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.REQUEST_MESSAGE)}else t._hasPrevious=!1,t._hasNext=!1;i.put(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Tb({type:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Mb.FEATURE_LOCALCACHE_EVENT,ts:Date.now(),data:{channel_url:t.channel.url,starting_point:t._startingPoint,measured_on:"initial_load",event:g?"cache_hit":"cache_miss",max_db_size:null!==(h=null===(u=s.localCacheConfig)||void 0===u?void 0:u.maxSize)&&void 0!==h?h:0,message_init_policy:e,use_local_cache:s.localCacheEnabled,collection_id:t._key}})),i.put(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Tb({type:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Mb.FEATURE_LOCALCACHE_EVENT,ts:Date.now(),data:{channel_url:t.channel.url,starting_point:t._startingPoint,measured_on:"initial_load",event:"cache_fetch",max_db_size:null!==(_=null===(d=s.localCacheConfig)||void 0===d?void 0:d.maxSize)&&void 0!==_?_:0,message_init_policy:e,use_local_cache:s.localCacheEnabled,collection_id:t._key}})),n._invokeResponse("remote",null,m)})).catch((function(e){if(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.o)(e))throw e;n._invokeResponse("remote",e,null)}))})),i.put(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Lb({type:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Mb.FEATURE_LOCALCACHE,data:{use_local_cache:r.localCacheEnabled,collection_interface:{message_init_policy:e}}})),n},e.prototype.loadPrevious=function(){var e,t,n;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var s,r,i,a,o,_,p,f,v=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(m){switch(m.label){case 0:if(this._isDisposed)throw new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc({code:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sb.COLLECTION_DISPOSED,message:"Collection has been disposed."});return s=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),r=s.cacheContext,i=s.statLogCollector,a=s.logger,this._hasPrevious?this._isLoadingPrevious?(a.warn("Messages are already fetching."),[2,[]]):(this._isLoadingPrevious=!0,o=this.viewTop,_=[],[4,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.yc)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(v,void 0,void 0,(function(){var e;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return e=this._filterUnderOffsetMessage,[4,this._getLocalMessages(o,{prevLimit:this._prevResultLimit,inclusive:!1})];case 1:return _=e.apply(this,[t.sent()]),[2]}}))}))}))]):[2,[]];case 1:return m.sent(),p=_.length>=this._prevResultLimit,i.put(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Tb({type:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Mb.FEATURE_LOCALCACHE_EVENT,ts:Date.now(),data:{channel_url:this.channel.url,starting_point:this._startingPoint,measured_on:"load_prev",event:r.localCacheEnabled&&p?"cache_hit":"cache_miss",max_db_size:null!==(t=null===(e=r.localCacheConfig)||void 0===e?void 0:e.maxSize)&&void 0!==t?t:0,use_local_cache:r.localCacheEnabled,collection_id:this._key,message_init_policy:""}})),p&&(null===(n=this._backgroundSync)||void 0===n?void 0:n.isWrappingMessages(_))?[3,3]:(f=!1,[4,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.yc)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(v,void 0,void 0,(function(){var e,t,n,s,r,a,u,h=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(d){switch(d.label){case 0:return e=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).cacheContext,[4,this._getRemoteMessages(o,{prevLimit:this._prevResultLimit,reverse:!0,checkingContinuousMessages:e.localCacheEnabled})];case 1:return t=d.sent(),(_=this._filterUnderOffsetMessage(t.messages)).length>0&&((n=this._syncRange).extends.apply(n,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(_.map((function(e){return e.createdAt}))),!1)),(null===(s=this._backgroundSync)||void 0===s?void 0:s.range.overlap(this._syncRange))&&t.isContinuousMessages&&(f=!0,null===(r=this._backgroundSync)||void 0===r||r.range.extends(this._syncRange.top))),_=_.filter((function(e){return ds(h._messages,e)<0})),this._hasPrevious=_.length>=this._prevResultLimit,f&&i.put(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Tb({type:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Mb.FEATURE_LOCALCACHE_EVENT,ts:Date.now(),data:{channel_url:this.channel.url,starting_point:this._startingPoint,measured_on:"load_prev",event:"cache_fetch",max_db_size:null!==(u=null===(a=e.localCacheConfig)||void 0===a?void 0:a.maxSize)&&void 0!==u?u:0,use_local_cache:e.localCacheEnabled,collection_id:this._key,message_init_policy:""}})),[2]}}))}))}))]);case 2:return m.sent(),this._addMessagesToView(_,_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.REQUEST_MESSAGE),[3,4];case 3:this._hasPrevious=_.length>=this._prevResultLimit,_.length>0&&this._addMessagesToView(_,_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.REQUEST_MESSAGE),m.label=4;case 4:return this._isLoadingPrevious=!1,[2,_]}}))}))},e.prototype.loadNext=function(){var e,t,n;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var s,r,i,a,o,_,p,f,v=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(m){switch(m.label){case 0:if(this._isDisposed)throw new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc({code:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sb.COLLECTION_DISPOSED,message:"Collection has been disposed."});return s=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),r=s.cacheContext,i=s.statLogCollector,a=s.logger,this._hasNext?this._isLoadingNext?(a.warn("Messages are already fetching."),[2,[]]):(this._isLoadingNext=!0,o=this.viewBottom,_=[],[4,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.yc)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(v,void 0,void 0,(function(){var e;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return e=this._filterUnderOffsetMessage,[4,this._getLocalMessages(o,{nextLimit:this._nextResultLimit,inclusive:!1})];case 1:return _=e.apply(this,[t.sent()]),[2]}}))}))}))]):[2,[]];case 1:return m.sent(),p=_.length>=this._nextResultLimit,i.put(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Tb({type:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Mb.FEATURE_LOCALCACHE_EVENT,ts:Date.now(),data:{channel_url:this.channel.url,starting_point:this._startingPoint,measured_on:"load_next",event:r.localCacheEnabled&&p?"cache_hit":"cache_miss",max_db_size:null!==(t=null===(e=r.localCacheConfig)||void 0===e?void 0:e.maxSize)&&void 0!==t?t:0,use_local_cache:r.localCacheEnabled,collection_id:this._key,message_init_policy:""}})),p&&(null===(n=this._backgroundSync)||void 0===n?void 0:n.isWrappingMessages(_))?[3,3]:(f=!1,[4,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.yc)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(v,void 0,void 0,(function(){var e,t,n,s,r,a,u,h,p=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(d){switch(d.label){case 0:return e=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).cacheContext,[4,this._getRemoteMessages(o,{nextLimit:this._nextResultLimit,reverse:!0,checkingHasNext:!0,checkingContinuousMessages:e.localCacheEnabled})];case 1:return t=d.sent(),(_=this._filterUnderOffsetMessage(t.messages)).length>0&&((n=this._syncRange).extends.apply(n,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(_.map((function(e){return e.createdAt}))),!1)),(null===(s=this._backgroundSync)||void 0===s?void 0:s.range.overlap(this._syncRange))&&t.isContinuousMessages&&(f=!0,null===(r=this._backgroundSync)||void 0===r||r.range.extends(this._syncRange.bottom))),_=_.filter((function(e){return ds(p._messages,e)<0})),this._hasNext=null!==(a=t.hasNext)&&void 0!==a?a:_.length>=this._nextResultLimit,f&&i.put(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Tb({type:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Mb.FEATURE_LOCALCACHE_EVENT,ts:Date.now(),data:{channel_url:this.channel.url,starting_point:this._startingPoint,measured_on:"load_next",event:"cache_fetch",max_db_size:null!==(h=null===(u=e.localCacheConfig)||void 0===u?void 0:u.maxSize)&&void 0!==h?h:0,use_local_cache:e.localCacheEnabled,collection_id:this._key,message_init_policy:""}})),[2]}}))}))}))]);case 2:return m.sent(),this._addMessagesToView(_,_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.REQUEST_MESSAGE),[3,4];case 3:this._hasNext=_.length>=this._nextResultLimit,_.length>0&&this._addMessagesToView(_,_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.REQUEST_MESSAGE),m.label=4;case 4:return this._isLoadingNext=!1,[2,_]}}))}))},e.prototype.removeFailedMessage=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:if(this._isDisposed)throw new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc({code:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sb.COLLECTION_DISPOSED,message:"Collection has been disposed."});return[4,this._channelManager.removeFailedMessageFromCache(e)];case 1:return n.sent(),(t=this._unsentMessages.findIndex((function(t){return t.reqId===e})))>-1&&this._unsentMessages.splice(t,1),[2]}}))}))},e.prototype.dispose=function(){var e,t,n,s=this;if(!this._isDisposed){this._isDisposed=!0;var r=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),i=r.cacheContext,a=r.dispatcher;this._messages=[],this._clearCheckMyMutedTimer(),this._channel._runIfHandleableWithGroupChannel((function(e){if(e.myMemberState!==qt.NONE){s._channel._updateMessageCollectionLastAccessedAt();var t=s._createChannelUpdateEventCommand(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.CHANNEL_LASTACCESSEDAT_UPDATED);t&&a.dispatch(t)}})),i.localCacheEnabled&&(this._prevFill.stop(),this._nextFill.stop()),null===(e=this._backgroundSync)||void 0===e||e.close(),null===(t=this._changelogSync)||void 0===t||t.close(),null===(n=this._pollChangelogSync)||void 0===n||n.close(),this._channelManager.unsubscribeChannelEvent(this._key),this._channelManager.unsubscribeMessageEvent(this._key),this._connectionEventContext&&this._connectionEventContext.close()}},e}(),Hs=function(t){function n(e,n){return t.call(this,e,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},n),{channelManager:hs.of(e)}))||this}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n.prototype.keyOf=function(e){return e.messageId},n.prototype.initialize=function(e){var n=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.yc)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(n,void 0,void 0,(function(){var e;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return[4,this.channel.getMyMutedInfo()];case 1:return(e=t.sent()).isMuted&&-1!==e.remainingDuration&&this._startCheckMyMutedTimer(e.remainingDuration),[2]}}))}))})),t.prototype.initialize.call(this,e)},n.prototype.setMessageCollectionHandler=function(e){this._setBaseMessageCollectionHandler(e)},n.prototype._activate=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return[4,t.prototype._activate.call(this)];case 1:return n.sent(),[4,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.yc)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(e,void 0,void 0,(function(){var e;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return[4,this.channel.getMyMutedInfo()];case 1:return(e=t.sent()).isMuted&&-1!==e.remainingDuration&&this._startCheckMyMutedTimer(e.remainingDuration),[2]}}))}))}))];case 2:return n.sent(),[2]}}))}))},n.prototype._addMessagesToView=function(e,t){var n,s,r=this,i=this._filterUnderOffsetMessage(e),a=[],o=[];try{for(var u=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(i),_=u.next();!_.done;_=u.next()){var f=_.value;if(t===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.SYNC_MESSAGE_FILL)if(f.messageId>0){if((C=ds(this._messages,f))<0){ds(this._unsentMessages,f)<0&&a.push(f);var v=ps(this._messages,f);this._messages.splice(v,0,f)}}else f instanceof _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.J&&(C=ds(this._unsentMessages,f))<0&&ds(this._messages,f)<0&&(this._unsentMessages.push(f),a.push(f));else if(f.messageId>0){if((C=ds(this._messages,f))<0){var m=ds(this._unsentMessages,f);m<0?a.push(f):(this._unsentMessages.splice(m,1),o.push(f)),v=ps(this._messages,f),this._messages.splice(v,0,f)}else o.push(f),this._messages[C]=f;if(f.updatedAt>0){var g=this._updateChildMessagesInView(f);o.push.apply(o,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(g),!1))}}else if(f instanceof _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.J){var C;(C=ds(this._unsentMessages,f))<0?ds(this._messages,f)<0&&(this._unsentMessages.push(f),a.push(f)):(o.push(f),this._unsentMessages[C]=f)}}}catch(e){n={error:e}}finally{try{_&&!_.done&&(s=u.return)&&s.call(u)}finally{if(n)throw n.error}}Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ub)(t)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(r,void 0,void 0,(function(){var e,n,s,r,i;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(u){return e=this._createMessageEventContext(t),a.length>0&&(null===(s=null===(n=this._handler)||void 0===n?void 0:n.onMessagesAdded)||void 0===s||s.call(n,e,this.channel,a)),o.length>0&&(null===(i=null===(r=this._handler)||void 0===r?void 0:r.onMessagesUpdated)||void 0===i||i.call(r,e,this.channel,o)),[2]}))}))}))},n.prototype._updateMessagesToView=function(e,t){var n,s,r=this,i=[],a=[],o=[];try{for(var u=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(e),_=u.next();!_.done;_=u.next()){var f,v=_.value;if(v.messageId>0)if((f=ds(this._messages,v))>=0)a.push(v),this._messages[f]=v;else{var m=ds(this._unsentMessages,v);if(m>=0){var g=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(this._unsentMessages.splice(m,1),1)[0];if(this.hasNext&&g)o.push(g);else{a.push(v);var E=ps(this._messages,v);this._messages.splice(E,0,v)}}else{var C=this._messages.map((function(e){return e.createdAt}));(v.createdAtMath.max.apply(Math,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(C),!1))&&!this._hasNext)&&i.push(v)}}else v instanceof _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.J&&(f=ds(this._unsentMessages,v))>=0&&(a.push(v),this._unsentMessages[f]=v)}}catch(e){n={error:e}}finally{try{_&&!_.done&&(s=u.return)&&s.call(u)}finally{if(n)throw n.error}}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ub)(t)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(r,void 0,void 0,(function(){var e,n,s,r,u;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(c){return e=this._createMessageEventContext(t),a.length>0?null===(s=null===(n=this._handler)||void 0===n?void 0:n.onMessagesUpdated)||void 0===s||s.call(n,e,this.channel,a):o.length>0?null===(u=null===(r=this._handler)||void 0===r?void 0:r.onMessagesDeleted)||void 0===u||u.call(r,e,this.channel,[],o):i.length>0&&this._addMessagesToView(i,t),[2]}))}))})),a},n}(Os),Vs={coverUrl:void 0,coverImage:void 0,isDistinct:void 0,isPublic:void 0,isDiscoverable:void 0,accessCode:void 0,name:void 0,data:void 0,customType:void 0,operatorUserIds:void 0,messageSurvivalSeconds:void 0},Gs=function(t){function n(e){var n=this,s=e.channelUrl,r=e.token,i=e.limit,a=e.order,o=e.mutedMemberFilter,u=e.memberStateFilter,c=e.nicknameStartsWithFilter,l=e.operatorFilter;return(n=t.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,n.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qb,"/").concat(encodeURIComponent(s),"/members"),n.params={token:r,limit:i,order:a,muted_member_filter:o,member_state_filter:u,nickname_startswith:c,operator_filter:l,show_member_is_muted:!0,show_read_receipt:!0,show_delivery_receipt:!0},n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Bs=function(t){function n(e,n){var s=t.call(this,e,n)||this;s.members=[];var r=n.next,i=n.members;return s.token=r,i&&i.length>0&&(s.members=i.map((function(t){return new Zt(e,t)}))),s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc);!function(e){e.ALL="all",e.MUTED="muted",e.UNMUTED="unmuted"}(Fs||(Fs={})),function(e){e.MEMBER_NICKNAME_ALPHABETICAL="member_nickname_alphabetical",e.OPERATOR_THEN_MEMBER_ALPHABETICAL="operator_then_member_alphabetical"}(Ps||(Ps={})),function(e){e.ALL="all",e.JOINED="joined_only",e.INVITED="invited_only",e.INVITED_BY_FRIEND="invited_by_friend",e.INVITED_BY_NON_FRIEND="invited_by_non_friend"}(ks||(ks={}));var qs=function(t){function i(e,n,s){var r,i,a,o,u=this;return(u=t.call(this,e,n,_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.GROUP,s)||this).mutedMemberFilter=Fs.ALL,u.memberStateFilter=ks.ALL,u.nicknameStartsWithFilter=null,u.operatorFilter=Kt.ALL,u.order=Ps.MEMBER_NICKNAME_ALPHABETICAL,u.mutedMemberFilter=null!==(r=s.mutedMemberFilter)&&void 0!==r?r:Fs.ALL,u.memberStateFilter=null!==(i=s.memberStateFilter)&&void 0!==i?i:ks.ALL,u.nicknameStartsWithFilter=null!==(a=s.nicknameStartsWithFilter)&&void 0!==a?a:null,u.order=null!==(o=s.order)&&void 0!==o?o:Ps.MEMBER_NICKNAME_ALPHABETICAL,u}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(i,t),i.prototype._validate=function(){return t.prototype._validate.call(this)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(Fs,this.mutedMemberFilter)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(ks,this.memberStateFilter)&&(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",this.nicknameStartsWithFilter)||null===this.nicknameStartsWithFilter)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(Kt,this.operatorFilter)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(Ps,this.order)},i.prototype.next=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t,r,i,a,o;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(c){switch(c.label){case 0:return this._validate()?this._isLoading?[3,3]:this._hasNext?(this._isLoading=!0,e=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,t=new Gs(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},this),{token:this._token}))),[4,e.send(t)]):[3,2]:[3,5];case 1:return r=c.sent(),i=r.as(Bs),a=i.members,o=i.token,this._token=o,this._hasNext=!!o,this._isLoading=!1,[2,a];case 2:return[2,[]];case 3:throw _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.queryInProgress;case 4:return[3,6];case 5:throw _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters;case 6:return[2]}}))}))},i}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Fb),zs=function(t){function n(e){var n=this,s=e.channelUrl,r=e.userId,i=e.accessCode;return(n=t.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.PUT,n.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qb,"/").concat(encodeURIComponent(s),"/accept"),n.params={user_id:r,access_code:i},n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Ws=function(t){function n(e,n){var s=t.call(this,e,n)||this;return s.channel=new Cr(e,n),s.channel.myMemberState=qt.JOINED,s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),js=function(n){function s(e){var s=this,r=e.channelUrl,i=e.isDistinct,a=e.isPublic,o=e.isDiscoverable,u=e.coverUrl,c=e.coverImage,l=e.accessCode,h=e.name,d=e.data,_=e.customType,p=e.operatorUserIds,f=e.messageSurvivalSeconds;return(s=n.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.PUT,s.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qb,"/").concat(encodeURIComponent(r)),s.params=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)({is_distinct:i,is_public:a,is_discoverable:o,name:h,data:d,custom_type:_,cover_url:u,cover_file:c,access_code:l,operator_ids:p,message_survival_seconds:f}),s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(s,n),s}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Qs=function(t){function n(e,n){var s=t.call(this,e,n)||this;return s.channel=new Cr(e,n),s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),Ys=function(t){function n(e){var n=this,s=e.channelUrl;return(n=t.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.DELETE,n.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qb,"/").concat(encodeURIComponent(s)),n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec);!function(t){Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)((function n(e,n){return t.call(this,e,n)||this}),t)}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc);var Ks=function(t){function n(e){var n=this,s=e.channelUrl;return(n=t.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.DELETE,n.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qb,"/").concat(encodeURIComponent(s),"/hide"),n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec);!function(t){Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)((function n(){return null!==t&&t.apply(this,arguments)||this}),t)}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc);var Js=function(t){function n(e){var n=e.userId,s=e.channelUrl,r=e.countPreference,i=t.call(this)||this;return i.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.PUT,i.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.cc,"/").concat(encodeURIComponent(n),"/count_preference/").concat(encodeURIComponent(s)),i.params={count_preference:r},i}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Xs=function(t){function n(e,n){var s=t.call(this,e,n)||this;return s.countPreference=n.count_preference,s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),Zs=function(t){function n(e){var n=this,s=e.channelUrl;return(n=t.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.PUT,n.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qb,"/").concat(encodeURIComponent(s),"/reset_user_history"),n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),$s=function(t){function n(e,n){var s=t.call(this,e,n)||this,r=n.ts_message_offset;return s.messageOffsetTimestamp=r,s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),er=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.cb),{scheduledAt:void 0,file:void 0,fileUrl:void 0,fileName:void 0,mimeType:void 0,fileSize:void 0,thumbnailSizes:void 0,requireAuth:!1}),tr=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.eb),{scheduledAt:void 0}),nr=function(s){function r(e){var r,i,a=this;a=s.call(this)||this;var o=[];e.mentionType===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nb.USERS&&(e.mentionedUserIds?o=e.mentionedUserIds:e.mentionedUsers&&(o=e.mentionedUsers.map((function(e){return e.userId}))));var u=e.channelType,c=e.channelUrl,l=e.scheduledMessageId;return a.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.PUT,a.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(u),"/").concat(encodeURIComponent(c),"/scheduled_messages/").concat(encodeURIComponent(l)),a.params=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({req_id:e.reqId,scheduled_at:e.scheduledAt,message_type:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.J.FILE,url:e.fileUrl,file_name:e.fileName,file_size:e.fileSize,file_type:e.mimeType,thumbnails:null===(r=e._thumbnails)||void 0===r?void 0:r.map((function(e){return _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.gb.payloadify(e)})),custom_type:e.customType,data:e.data,require_auth:e.requireAuth,mention_type:e.mentionType,mentioned_user_ids:o,sorted_metaarray:null===(i=e.metaArrays)||void 0===i?void 0:i.map((function(e){return _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.hb.payloadify(e)})),apple_critical_alert_options:e.appleCriticalAlertOptions?_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.ib.payloadify(e.appleCriticalAlertOptions):null,push_option:e.pushNotificationDeliveryOption})),a}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(r,s),r}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),sr=function(t){function n(e,n){var s=t.call(this,e,n)||this;return s.message=new _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.u(e,n),s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),rr=function(s){function r(e){var r,i=this;i=s.call(this)||this;var a=[];e.mentionType===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nb.USERS&&(e.mentionedUserIds?a=e.mentionedUserIds:e.mentionedUsers&&(a=e.mentionedUsers.map((function(e){return e.userId}))));var o=e.channelType,u=e.channelUrl,c=e.scheduledMessageId;return i.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.PUT,i.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(o),"/").concat(encodeURIComponent(u),"/scheduled_messages/").concat(encodeURIComponent(c)),i.params=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({req_id:e.reqId,scheduled_at:e.scheduledAt,message_type:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.J.USER,message:e.message,custom_type:e.customType,data:e.data,mention_type:e.mentionType,mentioned_user_ids:a,sorted_metaarray:null===(r=e.metaArrays)||void 0===r?void 0:r.map((function(e){return _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.hb.payloadify(e)})),apple_critical_alert_options:e.appleCriticalAlertOptions?_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.ib.payloadify(e.appleCriticalAlertOptions):null,target_langs:e.translationTargetLanguages,push_option:e.pushNotificationDeliveryOption})),i}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(r,s),r}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec);!function(t){Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)((function n(e,n){var s=t.call(this,e,n)||this;return s.message=new _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.t(e,n),s}),t)}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc);var ir=function(t){function n(e){var n=t.call(this)||this,s=e.channelType,r=e.channelUrl,i=e.scheduledMessageId;return n.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.DELETE,n.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(s),"/").concat(encodeURIComponent(r),"/scheduled_messages/").concat(encodeURIComponent(i)),n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),ar=function(t){function n(e){var n=t.call(this)||this,s=e.channelType,r=e.channelUrl,i=e.scheduledMessageId;return n.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.POST,n.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(s),"/").concat(encodeURIComponent(r),"/scheduled_messages/").concat(encodeURIComponent(i),"/send_now"),n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),or=function(t){function n(e){var n=e.userId,s=e.channelUrl,r=e.pushTriggerOption,i=t.call(this)||this;return i.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.PUT,i.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.cc,"/").concat(encodeURIComponent(n),"/push_preference/").concat(encodeURIComponent(s)),i.params={push_trigger_option:r},i}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),ur=function(t){function n(e,n){var s=t.call(this,e,n)||this;return s.pushTriggerOption=n.push_trigger_option,s.enabled=n.enable,s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),cr=function(t){function n(e){var n=e.userId,s=e.channelUrl,r=t.call(this)||this;return r.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,r.path="".concat(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.cc,"/").concat(encodeURIComponent(n),"/push_preference/").concat(encodeURIComponent(s)),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),lr=function(t){function n(e,n){var s=t.call(this,e,n)||this;return s.pushTriggerOption=n.push_trigger_option,s.enabled=n.enable,s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),hr=function(t){function n(e){var n=e.channelType,s=e.channelUrl,r=e.messageId,i=t.call(this)||this;return i.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.POST,i.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(n),"/").concat(encodeURIComponent(s),"/messages/").concat(r,"/pin"),i}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec);!function(t){Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)((function n(e,n){return t.call(this,e,n)||this}),t)}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc);var dr=function(t){function n(e){var n=e.channelType,s=e.channelUrl,r=e.messageId,i=t.call(this)||this;return i.method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.DELETE,i.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(n),"/").concat(encodeURIComponent(s),"/messages/").concat(r,"/pin"),i}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec);!function(t){Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)((function n(e,n){return t.call(this,e,n)||this}),t)}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc);var _r,pr,fr=function(t){function n(e,n){var s=t.call(this,e)||this;return s.message=null,s.message=Object(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.j)(e,n.message),s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.jb),vr=function(n){function s(e){var s=this,r=e.channelType,i=e.channelUrl,a=e.limit,o=e.token,u=e.includeReactions,c=e.includeMetaArray,l=e.includeParentMessageInfo,h=e.includeThreadInfo,d=e.includePollDetails;return(s=n.call(this)||this).method=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,s.path="".concat(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.pb)(r),"/").concat(encodeURIComponent(i),"/pinned_messages"),s.params=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)({limit:a,token:o,include_reactions:u,with_sorted_meta_array:c,include_thread_info:h,include_parent_message_info:l,include_poll_details:d}),s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(s,n),s}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),mr=function(t){function n(e,n){var s=t.call(this,e,n)||this,r=n.pinned_messages,i=n.has_more,a=n.next;return s.pinnedMessages=r.map((function(t){return new fr(e,t)})),s.hasMore=i,s.token=a,s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),gr=function(t){function n(e,n,s,r){var i=t.call(this,e,n,s,r)||this;return i.includeMetaArray=r.includeMetaArray,i.includeReactions=r.includeReactions,i.includeParentMessageInfo=r.includeParentMessageInfo,i.includeThreadInfo=r.includeThreadInfo,i.includePollDetails=r.includePollDetails,i}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n.prototype._validate=function(){return t.prototype._validate.call(this)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",this.includeMetaArray,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",this.includeReactions,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",this.includeParentMessageInfo,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",this.includeThreadInfo,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",this.includePollDetails,!0)},n.prototype.next=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t,n,r,i,a,o;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(c){switch(c.label){case 0:return this._validate()?this._isLoading?[3,3]:this._hasNext?(this._isLoading=!0,e=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,t=new vr(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},this),{token:this._token})),[4,e.send(t)]):[3,2]:[3,5];case 1:return n=c.sent(),r=n.as(mr),i=r.pinnedMessages,a=r.hasMore,o=r.token,this._token=o,this._hasNext=!!a,this._isLoading=!1,[2,i];case 2:return[2,[]];case 3:throw _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.queryInProgress;case 4:return[3,6];case 5:throw _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters;case 6:return[2]}}))}))},n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Fb),Er=function(t){function n(e,n){var s,r,i=this;return(i=t.call(this,e)||this).channelUrl=null!==(s=n.channel_url)&&void 0!==s?s:"",i.channelType=null!==(r=n.channel_type)&&void 0!==r?r:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.GROUP,i.member=new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v(i._iid,n.user),i.deliveryAt=n.ts,i}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(n,t),n}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.jb);!function(e){e.ALL="all",e.UNREAD_MESSAGE_COUNT_ONLY="unread_message_count_only",e.UNREAD_MENTION_COUNT_ONLY="unread_mention_count_only",e.OFF="off"}(_r||(_r={})),function(e){e.UNHIDDEN="unhidden",e.HIDDEN_ALLOW_AUTO_UNHIDE="hidden_allow_auto_unhide",e.HIDDEN_PREVENT_AUTO_UNHIDE="hidden_prevent_auto_unhide"}(pr||(pr={}));var Cr=function(a){function _(e,t){var n,o,u,h,d,_,p,f,m,g,E,C,y,M,b,N,U,S,T,A,w,L=this;return(L=a.call(this,e,t)||this)._unreadMemberStateMap=new Map,L._undeliveredMemberStateMap=new Map,L._typingStatus=new Map,L._lastMemberCountUpdated=0,L._typingStarted=0,L._typingEnded=0,L.isDistinct=!1,L.isSuper=!1,L.isBroadcast=!1,L.isExclusive=!1,L.isPublic=!1,L.isDiscoverable=!0,L.isChatNotification=!1,L.isAccessCodeRequired=!1,L.isPushEnabled=!1,L.unreadMessageCount=0,L.unreadMentionCount=0,L.totalUnreadReplyCount=0,L.members=[],L.memberCount=0,L.joinedMemberCount=0,L.hiddenState=pr.UNHIDDEN,L.lastMessage=null,L.messageOffsetTimestamp=0,L.messageSurvivalSeconds=-1,L.myMemberState=qt.NONE,L.myRole=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.F.NONE,L.myMutedState=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ob.UNMUTED,L.myLastRead=0,L.myCountPreference=_r.ALL,L.myPushTriggerOption=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.y.DEFAULT,L.inviter=null,L.invitedAt=0,L.joinedAt=0,L.pinnedMessageIds=[],L.lastPinnedMessage=null,L._pinnedMessagesUpdatedAt=0,L._myMutedRemainingTime=-1,L.channelType=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.GROUP,L.isDistinct=null!==(o=t.is_distinct)&&void 0!==o&&o,L.isSuper=null!==(u=t.is_super)&&void 0!==u&&u,L.isBroadcast=null!==(h=t.is_broadcast)&&void 0!==h&&h,L.isExclusive=null!==(d=t.is_exclusive)&&void 0!==d&&d,L.isPublic=null!==(_=t.is_public)&&void 0!==_&&_,L.isDiscoverable=null!==(p=t.is_discoverable)&&void 0!==p?p:L.isPublic,L.isChatNotification=null!==(f=t.is_chat_notification)&&void 0!==f&&f,L.isAccessCodeRequired=null!==(m=t.is_access_code_required)&&void 0!==m&&m,L.isPushEnabled=null!==(g=t.is_push_enabled)&&void 0!==g&&g,Array.isArray(t.members)&&(n=L.members).push.apply(n,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.nc)([],Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(t.members.map((function(e){return new Zt(L._iid,e)}))),!1)),L.memberCount=null!==(E=t.member_count)&&void 0!==E?E:0,L.joinedMemberCount=null!==(C=t.joined_member_count)&&void 0!==C?C:0,L.hiddenState=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(pr,t.hidden_state)?t.hidden_state:pr.UNHIDDEN,L.messageOffsetTimestamp=null!==(y=t.ts_message_offset)&&void 0!==y?y:0,L.messageSurvivalSeconds=null!==(M=t.message_survival_seconds)&&void 0!==M?M:-1,L.lastMessage=t.last_message?Object(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.j)(L._iid,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({channel_type:L.channelType},t.last_message)):null,t.read_receipt&&Object.keys(t.read_receipt).forEach((function(e){Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",t.read_receipt[e])&&L._updateUnreadMemberState(e,t.read_receipt[e])})),t.delivery_receipt&&Object.keys(t.delivery_receipt).forEach((function(e){Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",t.delivery_receipt[e])&&L._updateUndeliveredMemberState(e,t.delivery_receipt[e])})),L.myMemberState=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(qt,t.member_state)?t.member_state:qt.NONE,L.myRole=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.F,t.my_role)?t.my_role:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.F.NONE,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ob,t.is_muted)?L.myMutedState=t.is_muted:Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",t.is_muted)?L.myMutedState=t.is_muted?_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ob.MUTED:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ob.UNMUTED:L.myMutedState=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ob.UNMUTED,L.myCountPreference=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(_r,t.count_preference)?t.count_preference:_r.ALL,L.myPushTriggerOption=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.y,t.push_trigger_option)?t.push_trigger_option:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.y.ALL,L.myLastRead=null!==(b=t.user_last_read)&&void 0!==b?b:0,L.inviter=t.inviter?new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v(L._iid,t.inviter):null,L.invitedAt=null!==(N=t.invited_at)&&void 0!==N?N:0,L.joinedAt=null!==(U=t.joined_ts)&&void 0!==U?U:0,L._updateUnreadCount(null!==(S=t.unread_message_count)&&void 0!==S?S:0,null!==(T=t.unread_mention_count)&&void 0!==T?T:0),L.totalUnreadReplyCount=null!==(A=t.total_unread_thread_message_count)&&void 0!==A?A:0,L.pinnedMessageIds=null!==(w=t.pinned_message_ids)&&void 0!==w?w:[],L.lastPinnedMessage=t.latest_pinned_message?Object(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.j)(L._iid,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({channel_type:L.channelType},t.latest_pinned_message)):null,L}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(_,a),Object.defineProperty(_.prototype,"isHidden",{get:function(){return this.hiddenState!==pr.UNHIDDEN},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"isTyping",{get:function(){return this._typingStatus.size>0},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"cachedUnreadMemberState",{get:function(){var e,t,n={};try{for(var s=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._unreadMemberStateMap),r=s.next();!r.done;r=s.next()){var i=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(r.value,2),a=i[0],o=i[1];n[a]=o}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}return n},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"cachedUndeliveredMemberState",{get:function(){var e,t,n={};try{for(var s=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._undeliveredMemberStateMap),r=s.next();!r.done;r=s.next()){var i=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.oc)(r.value,2),a=i[0],o=i[1];n[a]=o}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}return n},enumerable:!1,configurable:!0}),_.payloadify=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},a.payloadify.call(this,e)),{is_access_code_required:e.isAccessCodeRequired,is_distinct:e.isDistinct,is_super:e.isSuper,is_broadcast:e.isBroadcast,is_exclusive:e.isExclusive,is_public:e.isPublic,is_discoverable:e.isDiscoverable,is_muted:e.myMutedState,is_push_enabled:e.isPushEnabled,unread_message_count:e.unreadMessageCount,unread_mention_count:e.unreadMentionCount,total_unread_thread_message_count:e.totalUnreadReplyCount,push_trigger_option:e.myPushTriggerOption,count_preference:e.myCountPreference,hidden_state:e.hiddenState,member_count:e.memberCount,joined_member_count:e.joinedMemberCount,member_state:e.myMemberState,my_role:e.myRole,user_last_read:e.myLastRead,ts_message_offset:e.messageOffsetTimestamp,message_survival_seconds:e.messageSurvivalSeconds,read_receipt:e.cachedUnreadMemberState,delivery_receipt:e.cachedUndeliveredMemberState,members:e.members.map((function(e){return Zt.payloadify(e)})),last_message:e.lastMessage?Object(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.jb)(e.lastMessage):null,inviter:e.inviter?_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v.payloadify(e.inviter):null,invited_at:e.invitedAt,joined_ts:e.joinedAt,pinned_message_ids:e.pinnedMessageIds,latest_pinned_message:e.lastPinnedMessage?Object(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.jb)(e.lastPinnedMessage):null})))},_.prototype._shouldUpdateLastMessageWith=function(e){return!(e instanceof _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.J&&e.parentMessageId>0&&!e.replyToChannel)&&!e.silent&&(!this.lastMessage||this.lastMessage.createdAt=0)if(this.myCountPreference===_r.ALL||this.myCountPreference===_r.UNREAD_MESSAGE_COUNT_ONLY)if(this.isExclusive||this.isSuper||this.isBroadcast){var n=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).maxSuperGroupChannelUnreadCount;this.unreadMessageCount=n&&e>=n?n:e}else this.unreadMessageCount=e;else this.unreadMessageCount=0;else this.unreadMessageCount=0;"number"==typeof t&&t>=0&&(this.myCountPreference===_r.ALL||this.myCountPreference===_r.UNREAD_MENTION_COUNT_ONLY)?this.unreadMentionCount=t:this.unreadMentionCount=0},_.prototype._updateUnreadMemberState=function(e,t){var n=this._unreadMemberStateMap.get(e);return(!n||n0?this._typingStatus.set(e.userId,{user:e,ts:t}):this._typingStatus.delete(e.userId)},_.prototype._clearTypingStatus=function(){this._typingStatus.clear(),this._typingStarted=0,this._typingEnded=0},_.prototype._setLatestMemberCount=function(e,t,n){var s=!1;return n>=this._lastMemberCountUpdated&&(this._lastMemberCountUpdated=n,s=e!==this.memberCount||t!==this.joinedMemberCount,this.memberCount=e,this.joinedMemberCount=t),s},_.prototype.isReadMessage=function(e){var t=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).sdkState,n=this._unreadMemberStateMap.get(t.userId);return!!n&&n>=e.createdAt},_.prototype.serialize=function(){var e=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.mb)(this,(function(t){t.cachedUnreadMemberState=e.cachedUnreadMemberState,t.cachedUndeliveredMemberState=e.cachedUndeliveredMemberState}))},_.prototype.createMessageCollection=function(e){return void 0===e&&(e={}),new Hs(this._iid,Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},e),{channel:this}))},_.prototype.createMemberListQuery=function(e){return void 0===e&&(e={}),new qs(this._iid,this.url,e)},_.prototype.createThreadedParentMessageListQuery=function(e){return void 0===e&&(e={}),new _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.kb(this._iid,this.url,this.channelType,e)},_.prototype.createPinnedMessageListQuery=function(e){return void 0===e&&(e={}),new gr(this._iid,this.url,this.channelType,e)},_.prototype.addMember=function(e,t){if(void 0===t&&(t=0),!this.isExclusive&&!this.isSuper&&!this.isBroadcast){var n=this.members.findIndex((function(t){return t.userId===e.userId}));if(n>-1){var s=this.members[n];s.state===qt.JOINED&&(e.state=s.state),this.members.splice(n,1),this.memberCount--}this.members.push(e),this.memberCount++,this._updateUnreadMemberState(e.userId,t),this._updateUndeliveredMemberState(e.userId,t)}},_.prototype.removeMember=function(e){if(!this.isExclusive&&!this.isSuper&&!this.isBroadcast){var t=e instanceof Zt?e.userId:e,n=this.members.findIndex((function(e){return e.userId===t}));if(n>-1)return this.members.splice(n,1),this.memberCount--,!0}return!1},_.prototype.getUnreadMemberCount=function(e){var t,n;if(e instanceof _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.J&&!this.isExclusive&&!this.isSuper&&!this.isBroadcast){var s=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).sdkState,r=e.createdAt,i=0;try{for(var a=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this.members),o=a.next();!o.done;o=a.next()){var u=o.value;s.userId!==u.userId&&u.state===qt.JOINED&&e.sender.userId!==u.userId&&(this.cachedUnreadMemberState[u.userId]||0)=e.createdAt&&i.push(a)}})),i},_.prototype.getUnreadMembers=function(e,t){var n=this;void 0===t&&(t=!1);var s=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).sdkState;if(!s.userId||this.isExclusive||this.isSuper||this.isBroadcast)return[];var r=e instanceof _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.J?e.sender:null,i=[];return this.members.forEach((function(a){if(t||a.userId!==s.userId&&a.userId!==(null==r?void 0:r.userId)){var o=n._unreadMemberStateMap.get(a.userId);o&&o=t&&(e._typingStatus.delete(i),s=!0)})),s},_.prototype.refresh=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return[2,this._refresh()]}))}))},_.prototype._refresh=function(e){return void 0===e&&(e=!1),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,s,r,i,a;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(o){switch(o.label){case 0:return t=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),n=t.requestQueue,s=t.dispatcher,r=new Cn({channelUrl:this.url}),[4,n.send(r)];case 1:return i=o.sent(),a=i.as(yn).channel,this._update(a),e||s.dispatch(new fn({channels:[a],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.REFRESH_CHANNEL})),[2,this]}}))}))},_.prototype.freeze=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return[4,a.prototype.freeze.call(this)];case 1:return e.sent(),_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).dispatcher.dispatch(new fn({channels:[this],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_FROZEN,isWebSocketEventComing:!0})),[2]}}))}))},_.prototype.unfreeze=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return[4,a.prototype.unfreeze.call(this)];case 1:return e.sent(),_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).dispatcher.dispatch(new fn({channels:[this],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_UNFROZEN,isWebSocketEventComing:!0})),[2]}}))}))},_.prototype.updateChannel=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,r,i,a,c,l;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(h){switch(h.label){case 0:return t=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},Vs),e),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.coverUrl,!0)&&(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.hc)(e.coverImage)||Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.coverImage,!0))&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.isDistinct,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.isPublic,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.isDiscoverable,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.accessCode,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.name,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.data,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.customType,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",e.operatorUserIds,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e.messageSurvivalSeconds,!0)}(t)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),n=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),r=n.dispatcher,i=n.requestQueue,a=new js(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({channelUrl:this.url},t)),[4,i.send(a)];case 1:return c=h.sent(),l=c.as(Qs).channel,this._update(l),r.dispatch(new fn({channels:[l],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_UPDATED,isWebSocketEventComing:!0})),[2,this]}}))}))},_.prototype.invite=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(e.every((function(e){return e instanceof _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v}))).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),[2,this.inviteWithUserIds(e.map((function(e){return e.userId})))]}))}))},_.prototype.inviteWithUserIds=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,s,r,i,a;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(c){switch(c.label){case 0:return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",e)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),t=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),n=t.dispatcher,s=t.requestQueue,r=new zn({channelUrl:this.url,userIds:e}),[4,s.send(r)];case 1:return i=c.sent(),a=i.as(Wn).channel,this._update(a),n.dispatch(new fn({channels:[a],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_INVITED,isWebSocketEventComing:!0})),[2,this]}}))}))},_.prototype.join=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,s,r,i,a,c;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(l){switch(l.label){case 0:return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e,!0)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),t=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),n=t.dispatcher,s=t.sdkState,r=t.requestQueue,i=new Hn({channelUrl:this.url,userId:s.userId,accessCode:e}),[4,r.send(i)];case 1:return a=l.sent(),(c=a.as(Vn).channel).myMemberState=this.myMemberState=qt.JOINED,this._update(c),n.dispatch(new fn({channels:[c],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_JOINED,isWebSocketEventComing:!0})),[2,this]}}))}))},_.prototype.leave=function(e){return void 0===e&&(e=!1),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,s,r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(i){switch(i.label){case 0:return t=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),n=t.sdkState,s=t.requestQueue,r=new Bn({channelUrl:this.url,userId:n.userId,shouldRemoveOperatorStatus:e}),[4,s.send(r)];case 1:return i.sent(),this.myMemberState=qt.NONE,[2]}}))}))},_.prototype.acceptInvitation=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,s,r,i,a,c;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(l){switch(l.label){case 0:return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e,!0)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),t=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),n=t.dispatcher,s=t.sdkState,r=t.requestQueue,i=new zs({channelUrl:this.url,userId:s.userId,accessCode:e}),[4,r.send(i)];case 1:return a=l.sent(),(c=a.as(Ws).channel).myMemberState=this.myMemberState=qt.JOINED,this._update(c),n.dispatch(new fn({channels:[c],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_ACCEPTED_INVITE,isWebSocketEventComing:!0})),[2,this]}}))}))},_.prototype.declineInvitation=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t,n,s;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(r){switch(r.label){case 0:return e=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),t=e.sdkState,n=e.requestQueue,s=new Qn({channelUrl:this.url,userId:t.userId}),[4,n.send(s)];case 1:return r.sent(),this.myMemberState=qt.NONE,[2,this]}}))}))},_.prototype.sendUserMessage=function(e){var t=this,n=new _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.L,s=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).dispatcher,r=_bundle_4d8e37ce_js__WEBPACK_IMPORTED_MODULE_2__.a.of(this._iid);return a.prototype.sendUserMessage.call(this,e).onPending((function(e){r.completeCurrentAndProcessNextAutoResend(e),n._trigger(e)})).onFailed((function(e,t){t&&r.completeCurrentAndProcessNextAutoResend(t),n._triggerFailed(e,t)})).onSucceeded((function(e){t.hiddenState===pr.HIDDEN_ALLOW_AUTO_UNHIDE&&(t.hiddenState=pr.UNHIDDEN),r.completeCurrentAndProcessNextAutoResend(e),t._updateLastMessage(e),hs.of(t._iid).handlers.map((function(e){e.onChannelChanged&&e.onChannelChanged(t)})),s.dispatch(new fn({channels:[t],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_SENT})),n._trigger(e)})),n},_.prototype.updateUserMessage=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n,s,r,i,o=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(u){switch(u.label){case 0:return n=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).dispatcher,[4,a.prototype.updateUserMessage.call(this,e,t)];case 1:return s=u.sent(),r=this._updateLastMessage(s),i=!1,this.lastPinnedMessage&&this.lastPinnedMessage.messageId===s.messageId&&(this.lastPinnedMessage=s,r=!0,i=!0),r&&(hs.of(this._iid).handlers.map((function(e){e.onChannelChanged&&e.onChannelChanged(o)})),n.dispatch(new fn({channels:[this],source:i?_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_PINNED_MESSAGE_UPDATED:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_UPDATED}))),i&&hs.of(this._iid).handlers.map((function(e){e.onPinnedMessageUpdated&&e.onPinnedMessageUpdated(o)})),n.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rb({messages:[s],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_UPDATED})),[2,s]}}))}))},_.prototype._autoResendUserMessage=function(e){var t=this,n=new _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.L,s=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).dispatcher,r=_bundle_4d8e37ce_js__WEBPACK_IMPORTED_MODULE_2__.a.of(this._iid);return a.prototype._autoResendUserMessage.call(this,e).onPending((function(e){r.completeCurrentAndProcessNextAutoResend(e),n._trigger(e)})).onFailed((function(e,t){r.completeCurrentAndProcessNextAutoResend(t),n._triggerFailed(e,t)})).onSucceeded((function(e){var i=hs.of(t._iid);r.completeCurrentAndProcessNextAutoResend(e),t._updateLastMessage(e),i.handlers.map((function(e){e.onChannelChanged&&e.onChannelChanged(t)})),s.dispatch(new fn({channels:[t],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_SENT})),n._trigger(e)})),n},_.prototype.sendFileMessage=function(e){var t=this,n=new _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.L,s=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).dispatcher,r=_bundle_4d8e37ce_js__WEBPACK_IMPORTED_MODULE_2__.a.of(this._iid);return a.prototype.sendFileMessage.call(this,e).onPending((function(e){r.completeCurrentAndProcessNextAutoResend(e),n._trigger(e)})).onFailed((function(e,t){t&&r.completeCurrentAndProcessNextAutoResend(t),n._triggerFailed(e,t)})).onSucceeded((function(e){var i=hs.of(t._iid);r.completeCurrentAndProcessNextAutoResend(e),t._updateLastMessage(e),i.handlers.map((function(e){e.onChannelChanged&&e.onChannelChanged(t)})),s.dispatch(new fn({channels:[t],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_SENT})),n._trigger(e)})),n},_.prototype.sendMultipleFilesMessage=function(e){var t=this,n=new _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.lb,s=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).dispatcher;return a.prototype.sendMultipleFilesMessage.call(this,e).onPending((function(e){n._trigger(e)})).onFailed((function(e,t){n._triggerFailed(e,t)})).onSucceeded((function(e){var r=hs.of(t._iid);t._updateLastMessage(e),r.handlers.map((function(e){e.onChannelChanged&&e.onChannelChanged(t)})),s.dispatch(new fn({channels:[t],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_SENT})),n._trigger(e)})).onFileUploaded((function(e,t,s,r){n._triggerOnFileUploaded(e,t,s,r)})),n},_.prototype.updateFileMessage=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n,s,r,i,o=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(u){switch(u.label){case 0:return n=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).dispatcher,[4,a.prototype.updateFileMessage.call(this,e,t)];case 1:return s=u.sent(),r=this._updateLastMessage(s),i=!1,this.lastPinnedMessage&&this.lastPinnedMessage.messageId===s.messageId&&(this.lastPinnedMessage=s,r=!0,i=!0),r&&(hs.of(this._iid).handlers.map((function(e){e.onChannelChanged&&e.onChannelChanged(o)})),n.dispatch(new fn({channels:[this],source:i?_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_PINNED_MESSAGE_UPDATED:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_UPDATED}))),i&&hs.of(this._iid).handlers.map((function(e){e.onPinnedMessageUpdated&&e.onPinnedMessageUpdated(o)})),n.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rb({messages:[s],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_UPDATED})),[2,s]}}))}))},_.prototype._autoResendFileMessage=function(e){var t=this,n=new _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.L,s=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).dispatcher,r=_bundle_4d8e37ce_js__WEBPACK_IMPORTED_MODULE_2__.a.of(this._iid);return a.prototype._autoResendFileMessage.call(this,e).onPending((function(e){r.completeCurrentAndProcessNextAutoResend(e),n._trigger(e)})).onFailed((function(e,t){r.completeCurrentAndProcessNextAutoResend(t),n._triggerFailed(e,t)})).onSucceeded((function(e){var i=hs.of(t._iid);r.completeCurrentAndProcessNextAutoResend(e),t._updateLastMessage(e),i.handlers.map((function(e){e.onChannelChanged&&e.onChannelChanged(t)})),s.dispatch(new fn({channels:[t],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_SENT})),n._trigger(e)})),n},_.prototype.deleteMessage=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return[4,a.prototype.deleteMessage.call(this,e)];case 1:return t.sent(),0===e.messageId&&e instanceof _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.J&&_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).dispatcher.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Y({reqId:e.reqId,source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_MESSAGE_DELETED})),[2]}}))}))},_.prototype.hide=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,r,i,a,c,l,h;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(d){switch(d.label){case 0:return t=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},Kn),e),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.hidePreviousMessages,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.allowAutoUnhide,!0)}(t)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),n=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),r=n.dispatcher,i=n.sdkState,a=n.requestQueue,c=new Jn(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({channelUrl:this.url,userId:i.userId},t)),[4,a.send(c)];case 1:return l=d.sent(),h=l.as(Xn).messageOffsetTimestamp,this.hiddenState=t.allowAutoUnhide?pr.HIDDEN_ALLOW_AUTO_UNHIDE:pr.HIDDEN_PREVENT_AUTO_UNHIDE,t.hidePreviousMessages&&this._updateUnreadCount(0,0),h&&(this.messageOffsetTimestamp=h),r.dispatch(new fn({channels:[this],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_HIDDEN,isWebSocketEventComing:!0})),[2,this]}}))}))},_.prototype.unhide=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t,n,s;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(r){switch(r.label){case 0:return e=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),t=e.dispatcher,n=e.requestQueue,s=new Ks({channelUrl:this.url}),[4,n.send(s)];case 1:return r.sent(),this.hiddenState=pr.UNHIDDEN,t.dispatch(new fn({channels:[this],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_UNHIDDEN,isWebSocketEventComing:!0})),[2,this]}}))}))},_.prototype.delete=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return e=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,t=new Ys({channelUrl:this.url}),[4,e.send(t)];case 1:return n.sent(),[2]}}))}))},_.prototype.markAsRead=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t,n,s,r,i,a,o=this;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(u){switch(u.label){case 0:return e=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),t=e.sdkState,n=e.dispatcher,s=e.requestQueue,r=new _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.M({channelUrl:this.url}),[4,s.send(r)];case 1:return i=u.sent(),a=i.as(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.H).readStatus,this._updateUnreadMemberState(t.userId,a.readAt),(this.unreadMessageCount>0||this.unreadMentionCount>0)&&(this._updateUnreadCount(0,0),hs.of(this._iid).handlers.map((function(e){e.onChannelChanged&&e.onChannelChanged(o)}))),n.dispatch(new fn({channels:[this],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_READ})),[2]}}))}))},_.prototype.markAsDelivered=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t,n,s;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(r){switch(r.label){case 0:return e=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),t=e.sdkState,n=e.requestQueue,s=new as({channelUrl:this.url,userId:t.userId}),[4,n.send(s)];case 1:return r.sent(),[2]}}))}))},_.prototype.startTyping=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t,n,s,r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(i){switch(i.label){case 0:return e=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),t=e.requestQueue,n=e.typingIndicatorThrottle,(s=(new Date).getTime())-this._typingStarted>=n?(this._typingStarted=s,this._typingEnded=0,r=new $n({channelUrl:this.url,time:this._typingStarted}),[4,t.send(r)]):[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}}))}))},_.prototype.endTyping=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t,n,s,r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(i){switch(i.label){case 0:return e=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),t=e.requestQueue,n=e.typingIndicatorThrottle,(s=(new Date).getTime())-this._typingEnded>=n?(this._typingStarted=0,this._typingEnded=s,r=new ts({channelUrl:this.url,time:this._typingStarted}),[4,t.send(r)]):[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}}))}))},_.prototype.createScheduledUserMessage=function(e){e=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.mb),e),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.nb)(e)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters);var t=new _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.L;return this._createScheduledUserMessage(e,t),t},_.prototype.updateScheduledUserMessage=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n,r,i;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(c){switch(c.label){case 0:return n=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},tr),t),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(function(e){return Object(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.fb)(e)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e.scheduledAt,!0)}(n)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),r=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,i=new rr(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({reqId:this._generateRequestId(),scheduledMessageId:e,channelType:this.channelType,channelUrl:this.url},n)),[4,r.send(i)];case 1:return[2,c.sent().as(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.N).message]}}))}))},_.prototype.createScheduledFileMessage=function(e){var t=this;e=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.ob),e),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.pb)(e)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters);var n=Date.now(),r=this._generateRequestId(),i=new _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.L;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Bb)(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.O).then((function(){var s=t._createPendingScheduledFileMessage(e,r,n);Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(t,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return[2,i._trigger(s)]}))}))}))})),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.hc)(e.file)?this._uploadFileAndUpdateParams(e).then((function(){return t._createScheduledFileMessage(e,i,r,n)})):this._createScheduledFileMessage(e,i,r,n),i},_.prototype.updateScheduledFileMessage=function(e,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n,r;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(a){switch(a.label){case 0:return n=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},er),t),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(function(e){return Object(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.db)(e)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e.scheduledAt,!0)&&(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.hc)(e.file)||Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.fileUrl))&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.fileName,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.mimeType,!0)&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e.fileSize,!0)&&(null===e.thumbnailSizes||void 0===e.thumbnailSizes||e.thumbnailSizes.every((function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("object",e)&&e.maxWidth>0&&e.maxHeight>0})))}(n)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.hc)(n.file)?[4,this._uploadFileAndUpdateParams(n)]:[3,2];case 1:a.sent(),a.label=2;case 2:return r=new nr(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({reqId:this._generateRequestId(),scheduledMessageId:e,channelType:this.channelType,channelUrl:this.url},n)),[4,_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue.send(r)];case 3:return[2,a.sent().as(sr).message]}}))}))},_.prototype.cancelScheduledMessage=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return t=new ir({scheduledMessageId:e,channelType:this.channelType,channelUrl:this.url}),[4,_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue.send(t)];case 1:return n.sent(),[2]}}))}))},_.prototype.sendScheduledMessageNow=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return t=new ar({scheduledMessageId:e,channelType:this.channelType,channelUrl:this.url}),[4,_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue.send(t)];case 1:return n.sent(),[2]}}))}))},_.prototype.getMyPushTriggerOption=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t,n,s,r,i;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(a){switch(a.label){case 0:return e=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),t=e.sdkState,n=e.requestQueue,s=new cr({userId:t.userId,channelUrl:this.url}),[4,n.send(s)];case 1:return r=a.sent(),i=r.as(lr).pushTriggerOption,this.myPushTriggerOption=i,[2,i]}}))}))},_.prototype.setMyPushTriggerOption=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,s,i,a,c,l;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(h){switch(h.label){case 0:return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.y,e)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),t=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),n=t.dispatcher,s=t.sdkState,i=t.requestQueue,a=new or({userId:s.userId,channelUrl:this.url,pushTriggerOption:e}),[4,i.send(a)];case 1:return c=h.sent(),l=c.as(ur).pushTriggerOption,this.myPushTriggerOption=l,n.dispatch(new fn({channels:[this],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_UPDATED,isWebSocketEventComing:!0})),[2,l]}}))}))},_.prototype.setMyCountPreference=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,s,i,a,c,l;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(h){switch(h.label){case 0:return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.u)(_r,e)).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),t=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),n=t.dispatcher,s=t.sdkState,i=t.requestQueue,a=new Js({channelUrl:this.url,userId:s.userId,countPreference:e}),[4,i.send(a)];case 1:return c=h.sent(),l=c.as(Xs).countPreference,this.myCountPreference=l,this._updateUnreadCount(this.unreadMessageCount,this.unreadMentionCount),n.dispatch(new fn({channels:[this],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_CHANNEL_UPDATED,isWebSocketEventComing:!0})),[2,l]}}))}))},_.prototype.resetMyHistory=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t,n,s,r,i;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(a){switch(a.label){case 0:return e=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid),t=e.dispatcher,n=e.requestQueue,s=new Zs({channelUrl:this.url}),[4,n.send(s)];case 1:return r=a.sent(),i=r.as($s).messageOffsetTimestamp,this.messageOffsetTimestamp=i,this.lastMessage&&this.lastMessage.createdAt0).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),t=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,n=new hr({channelType:this.channelType,channelUrl:this.url,messageId:e}),[4,t.send(n)];case 1:return s.sent(),[2]}}))}))},_.prototype.unpinMessage=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(s){switch(s.label){case 0:return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("number",e)&&e>0).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),t=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,n=new dr({channelType:this.channelType,channelUrl:this.url,messageId:e}),[4,t.send(n)];case 1:return s.sent(),[2]}}))}))},_.prototype._uploadFileAndUpdateParams=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var t,n,s,r,i,a,o,u,c,l;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(h){switch(h.label){case 0:return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.hc)(e.file)?(t=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,n=new _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.Q({file:e.file,channelUrl:this.url,thumbnailSizes:e.thumbnailSizes,requestId:this._generateRequestId()}),[4,t.send(n)]):[3,2];case 1:s=h.sent(),r=s.as(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.P),i=r.url,a=r.fileSize,o=void 0===a?e.fileSize:a,u=r.thumbnails,c=r.requireAuth,l=void 0!==c&&c,e.fileUrl=i,e.fileSize=o,e.requireAuth=l,e._thumbnails=u,h.label=2;case 2:return[2]}}))}))},_.prototype.resendMessage=function(e,t){var n,s=this;if(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(e instanceof _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.J&&!e.scheduledInfo&&e.isResendable).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),e.isUserMessage()){var r=null!==(n=e.messageParams)&&void 0!==n?n:Object(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.qb)(e),i=new _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.L;return this._sendUserMessage(r,_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.rb.RESEND,e.reqId).onPending((function(e){i._trigger(e)})).onFailed((function(e,t){i._triggerFailed(e,t)})).onSucceeded((function(e){s._tryUpdateLastMessageAndCallEvents(s,e),i._trigger(e)})),i}if(e.isFileMessage()){var a=this._validateFailedFileMessageHasFile(e,t);Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(a).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),r=Object(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.sb)(e,t);var c=new _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.L;return this._sendFileMessage(r,_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.rb.RESEND,e.reqId).onPending((function(e){c._trigger(e)})).onFailed((function(e,t){c._triggerFailed(e,t)})).onSucceeded((function(e){s._tryUpdateLastMessageAndCallEvents(s,e),c._trigger(e)})),c}if(e.isMultipleFilesMessage()){r=e.messageParams;var l=new _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.lb;return this._sendMultipleFilesMessage(r,_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.rb.RESEND,e.reqId).onPending((function(e){l._trigger(e)})).onFailed((function(e,t){l._triggerFailed(e,t)})).onSucceeded((function(e){s._tryUpdateLastMessageAndCallEvents(s,e),l._trigger(e)})).onFileUploaded((function(e,t,n,s){l._triggerOnFileUploaded(e,t,n,s)})),l}},_.prototype.copyMessage=function(e,t){var n=this;if(Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(e instanceof _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.Qb&&t instanceof _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.J&&t.sendingStatus===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tb.SUCCEEDED&&this.url===t.channelUrl&&!t.scheduledInfo).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),t.isUserMessage()){Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(!t.poll).throw(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.notSupportedError);var s=Object(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.tb)(t),r=new _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.L;return e._sendUserMessage(s).onPending((function(e){r._trigger(e)})).onFailed((function(e,t){r._triggerFailed(e,t)})).onSucceeded((function(t){e.isGroupChannel()&&n._tryUpdateLastMessageAndCallEvents(e,t),r._trigger(t)})),r}if(t.isFileMessage()){s=Object(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.ub)(t);var i=new _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.L;return e._sendFileMessage(s).onPending((function(e){i._trigger(e)})).onFailed((function(e,t){i._triggerFailed(e,t)})).onSucceeded((function(t){e.isGroupChannel()&&n._tryUpdateLastMessageAndCallEvents(e,t),i._trigger(t)})),i}if(t.isMultipleFilesMessage()){if(e.isGroupChannel()){s=Object(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.K)(t);var a=new _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.lb;return e._sendMultipleFilesMessage(s,_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.rb.COPY).onPending((function(e){a._trigger(e)})).onFailed((function(e,t){a._triggerFailed(e,t)})).onSucceeded((function(t){n._tryUpdateLastMessageAndCallEvents(e,t),a._trigger(t)})).onFileUploaded((function(e,t,n,s){a._triggerOnFileUploaded(e,t,n,s)})),a}throw _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.channelTypeNotSupportedError}},_}(_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.Qb)},"./node_modules/@sendbird/chat/lib/__bundle-4d8e37ce.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return S})),__webpack_require__.d(__webpack_exports__,"b",(function(){return N})),__webpack_require__.d(__webpack_exports__,"c",(function(){return E})),__webpack_require__.d(__webpack_exports__,"d",(function(){return p})),__webpack_require__.d(__webpack_exports__,"e",(function(){return D})),__webpack_require__.d(__webpack_exports__,"f",(function(){return R})),__webpack_require__.d(__webpack_exports__,"g",(function(){return T})),__webpack_require__.d(__webpack_exports__,"h",(function(){return C})),__webpack_require__.d(__webpack_exports__,"i",(function(){return v})),__webpack_require__.d(__webpack_exports__,"j",(function(){return b})),__webpack_require__.d(__webpack_exports__,"k",(function(){return L}));var E,p,R,e,_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-c578be85.js"),_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-121c0f7c.js");(e=E||(E={})).LATEST_LAST_MESSAGE="latest_last_message",e.CHRONOLOGICAL="chronological",e.CHANNEL_NAME_ALPHABETICAL="channel_name_alphabetical",e.METADATA_VALUE_ALPHABETICAL="metadata_value_alphabetical",function(e){e.CHRONOLOGICAL="chronological",e.CHANNEL_NAME_ALPHABETICAL="channel_name_alphabetical",e.METADATA_VALUE_ALPHABETICAL="metadata_value_alphabetical"}(p||(p={})),function(e){e.CREATED_AT="created_at",e.SCHEDULED_AT="scheduled_at"}(R||(R={}));var C,L=function(e){switch(e){case E.LATEST_LAST_MESSAGE:return["-lastMessageUpdatedAt","-createdAt","syncIndex"];case E.CHRONOLOGICAL:return["-createdAt","syncIndex"];case E.CHANNEL_NAME_ALPHABETICAL:return["name"];default:return["-lastMessageUpdatedAt","-createdAt","syncIndex"]}},b=function(t){function s(e){var s=e.message,n=t.call(this)||this;return n.message=s,n}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(s,t),s}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Kb),I={},S=function(){function e(e,t){var s=t.localCacheEnabled,n=t.enableAutoResend,r=t.dispatcher,a=t.sdkState,u=t.logger,c=this;this._iid=e,I[e]=this,this._localCacheEnabled=s,this._enableAutoResend=n,this._isProcessingAutoResend=!1,this._autoResendQueue=[],this._dispatcher=r,this._logger=u,this._sdkState=a,this._localCacheEnabled&&r.on((function(e){if(e instanceof _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.c)switch(e.stateType){case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.e.CONNECTED:c._isProcessingAutoResend||c.processAutoResendRegisteredPendingMessages().then((function(){return c._processNextAutoResend()}));break;case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.e.INTERNAL_DISCONNECTED:case _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.e.EXTERNAL_DISCONNECTED:c._isProcessingAutoResend=!1}}))}return e.of=function(e){return I[e]},e.prototype.processNonAutoResendRegisteredPendingMessages=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t,s,a,i,o;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return this._enableAutoResend?[4,this._fetchAllCachedPendingMessages()]:[2];case 1:e=n.sent();try{for(t=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(e),s=t.next();!s.done;s=t.next())0===(a=s.value).errorCode&&(this._logger.debug("cached pending message is not auto-resend registered. changing its sending status to failed: ",a.reqId),a.sendingStatus=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tb.FAILED,a.errorCode=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sb.ACK_TIMEOUT,this._dispatcher.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rb({messages:[a],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.LOCAL_MESSAGE_FAILED})))}catch(e){i={error:e}}finally{try{s&&!s.done&&(o=t.return)&&o.call(t)}finally{if(i)throw i.error}}return[2]}}))}))},e.prototype.processAutoResendRegisteredPendingMessages=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t,s,i,o,c,l,_;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return[4,this._fetchAllCachedPendingMessages()];case 1:e=n.sent();try{for(t=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(e),s=t.next();!s.done;s=t.next())i=s.value,this._enableAutoResend&&i.errorCode&&Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.O)(i.errorCode)&&(o=(new Date).getTime(),c=i.createdAt+2592e5,this._enableAutoResend&&o<=c?this._autoResendQueue.map((function(e){return e.reqId})).indexOf(i.reqId)<0&&this._autoResendQueue.push(i):(this._logger.debug("auto-resend registered pending messaged expired. expiration date: ",new Date(c).toLocaleString()),i.sendingStatus=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tb.FAILED,this._dispatcher.dispatch(new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rb({messages:[i],source:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.LOCAL_MESSAGE_FAILED}))))}catch(e){l={error:e}}finally{try{s&&!s.done&&(_=t.return)&&_.call(t)}finally{if(l)throw l.error}}return[2]}}))}))},e.prototype.completeCurrentAndProcessNextAutoResend=function(e){if(this._localCacheEnabled&&this._enableAutoResend&&(e.sendingStatus===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tb.SUCCEEDED||e.sendingStatus===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tb.FAILED&&!Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.O)(e.errorCode))){var t=this.indexOf(e);t>=0&&this._autoResendQueue.splice(t,1),0===t&&this._processNextAutoResend()}},e.prototype._fetchAllCachedPendingMessages=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,t;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(s){switch(s.label){case 0:return e=_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.Ob.of(this._iid),(t=new _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.g).replyType=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Db.ALL,[4,e.fetch({sendingStatus:_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tb.PENDING,backward:!0,filter:t})];case 1:return[2,s.sent()]}}))}))},e.prototype.indexOf=function(e){return this._autoResendQueue.length>0?this._autoResendQueue.map((function(e){return e.reqId})).indexOf(e.reqId):-1},e.prototype._isNotInQueue=function(e){return-1===this._autoResendQueue.map((function(e){return e.reqId})).indexOf(e.reqId)},e.prototype._processNextAutoResend=function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e;return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){if(this._localCacheEnabled&&this._enableAutoResend&&"foreground"===this._sdkState.appState)try{this._autoResendQueue.length>0?(this._isProcessingAutoResend||(this._logger.debug("auto-resend queue started."),this._isProcessingAutoResend=!0),e=this._autoResendQueue[0],this._dispatcher.dispatch(new b({message:e})),this._logger.debug("processing auto-resend for message request id: ",e.reqId)):(this._logger.debug("auto-resend queue finished."),this._isProcessingAutoResend=!1)}catch(e){this._logger.warn("process auto-resend error: ",e),this._isProcessingAutoResend=!1}return[2]}))}))},e}();!function(e){e[e.USER_BLOCK=20001]="USER_BLOCK",e[e.USER_UNBLOCK=2e4]="USER_UNBLOCK",e[e.FRIEND_DISCOVERED=20900]="FRIEND_DISCOVERED"}(C||(C={}));var v=function(){function e(e){this.category=e.cat,this.data=e.data}return e.getDataAsUserBlockEvent=function(e,t){var s=t.data,n=s.blocker,r=s.blockee;return{blocker:new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v(e,n),blockee:new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v(e,r)}},e.getDataAsFriendDiscoveredEvent=function(e,t){var s=t.data.friend_discoveries;return{friendDiscoveries:Array.isArray(s)?s.map((function(t){return new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v(e,t)})):[]}},e}(),N=function(t){function s(e,s){var n=s.userId,r=t.call(this)||this;return r._iid=e,r.userId=n,r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(s,t),s}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Kb),D=function(t){function s(){return t.call(this)||this}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(s,t),s}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Kb),T=function(t){function s(e,s,n){var r=t.call(this,e,"USEV",n)||this;return r.event=new v(n),r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(s,t),s}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.x)},"./node_modules/@sendbird/chat/lib/__bundle-a7cb5080.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return t}));var _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-c578be85.js"),t=function(){this.onUserMuted=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this.onUserUnmuted=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this.onUserBanned=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this.onUserUnbanned=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this.onChannelChanged=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this.onChannelDeleted=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this.onChannelFrozen=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this.onChannelUnfrozen=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this.onOperatorUpdated=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this.onChannelMemberCountChanged=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this.onMetaDataCreated=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this.onMetaDataUpdated=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this.onMetaDataDeleted=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this.onMetaCounterCreated=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this.onMetaCounterUpdated=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this.onMetaCounterDeleted=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this.onMessageReceived=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this.onMessageUpdated=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this.onMessageDeleted=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this.onMentionReceived=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this.onReactionUpdated=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,this.onThreadInfoUpdated=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb}},"./node_modules/@sendbird/chat/lib/__bundle-acd77193.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return s}));var s=function(s,i){this.pollId=0,this.messageId=0,this.pollId=i.poll.id,this.messageId=i.poll.message_id,this._iid=s,this._payload=i}},"./node_modules/@sendbird/chat/lib/__bundle-c578be85.js":function(module,__webpack_exports__,__webpack_require__){"use strict";(function(global){__webpack_require__.d(__webpack_exports__,"a",(function(){return Io})),__webpack_require__.d(__webpack_exports__,"b",(function(){return se})),__webpack_require__.d(__webpack_exports__,"c",(function(){return yr})),__webpack_require__.d(__webpack_exports__,"d",(function(){return z})),__webpack_require__.d(__webpack_exports__,"e",(function(){return vr})),__webpack_require__.d(__webpack_exports__,"f",(function(){return te})),__webpack_require__.d(__webpack_exports__,"g",(function(){return Yr})),__webpack_require__.d(__webpack_exports__,"h",(function(){return br})),__webpack_require__.d(__webpack_exports__,"i",(function(){return Kr})),__webpack_require__.d(__webpack_exports__,"j",(function(){return Br})),__webpack_require__.d(__webpack_exports__,"k",(function(){return Ar})),__webpack_require__.d(__webpack_exports__,"l",(function(){return Le})),__webpack_require__.d(__webpack_exports__,"m",(function(){return F})),__webpack_require__.d(__webpack_exports__,"n",(function(){return Qe})),__webpack_require__.d(__webpack_exports__,"o",(function(){return v})),__webpack_require__.d(__webpack_exports__,"p",(function(){return N})),__webpack_require__.d(__webpack_exports__,"q",(function(){return f})),__webpack_require__.d(__webpack_exports__,"r",(function(){return P})),__webpack_require__.d(__webpack_exports__,"s",(function(){return h})),__webpack_require__.d(__webpack_exports__,"t",(function(){return D})),__webpack_require__.d(__webpack_exports__,"u",(function(){return T})),__webpack_require__.d(__webpack_exports__,"v",(function(){return jr})),__webpack_require__.d(__webpack_exports__,"w",(function(){return Lo})),__webpack_require__.d(__webpack_exports__,"x",(function(){return xe})),__webpack_require__.d(__webpack_exports__,"y",(function(){return _})),__webpack_require__.d(__webpack_exports__,"z",(function(){return p})),__webpack_require__.d(__webpack_exports__,"A",(function(){return r})),__webpack_require__.d(__webpack_exports__,"B",(function(){return w})),__webpack_require__.d(__webpack_exports__,"C",(function(){return ls})),__webpack_require__.d(__webpack_exports__,"D",(function(){return M})),__webpack_require__.d(__webpack_exports__,"E",(function(){return je})),__webpack_require__.d(__webpack_exports__,"F",(function(){return V})),__webpack_require__.d(__webpack_exports__,"G",(function(){return Ge})),__webpack_require__.d(__webpack_exports__,"H",(function(){return qe})),__webpack_require__.d(__webpack_exports__,"I",(function(){return Ce})),__webpack_require__.d(__webpack_exports__,"J",(function(){return j})),__webpack_require__.d(__webpack_exports__,"K",(function(){return Qo})),__webpack_require__.d(__webpack_exports__,"L",(function(){return ge})),__webpack_require__.d(__webpack_exports__,"M",(function(){return $o})),__webpack_require__.d(__webpack_exports__,"N",(function(){return Ir})),__webpack_require__.d(__webpack_exports__,"O",(function(){return O})),__webpack_require__.d(__webpack_exports__,"P",(function(){return Ko})),__webpack_require__.d(__webpack_exports__,"Q",(function(){return ps})),__webpack_require__.d(__webpack_exports__,"R",(function(){return Xo})),__webpack_require__.d(__webpack_exports__,"S",(function(){return L})),__webpack_require__.d(__webpack_exports__,"T",(function(){return i})),__webpack_require__.d(__webpack_exports__,"U",(function(){return Vo})),__webpack_require__.d(__webpack_exports__,"V",(function(){return Ho})),__webpack_require__.d(__webpack_exports__,"W",(function(){return jo})),__webpack_require__.d(__webpack_exports__,"X",(function(){return qo})),__webpack_require__.d(__webpack_exports__,"Y",(function(){return Go})),__webpack_require__.d(__webpack_exports__,"Z",(function(){return zo})),__webpack_require__.d(__webpack_exports__,"ab",(function(){return Te})),__webpack_require__.d(__webpack_exports__,"bb",(function(){return X})),__webpack_require__.d(__webpack_exports__,"cb",(function(){return fe})),__webpack_require__.d(__webpack_exports__,"db",(function(){return xo})),__webpack_require__.d(__webpack_exports__,"eb",(function(){return cs})),__webpack_require__.d(__webpack_exports__,"fb",(function(){return us})),__webpack_require__.d(__webpack_exports__,"gb",(function(){return hs})),__webpack_require__.d(__webpack_exports__,"hb",(function(){return _s})),__webpack_require__.d(__webpack_exports__,"ib",(function(){return ue})),__webpack_require__.d(__webpack_exports__,"jb",(function(){return Dr})),__webpack_require__.d(__webpack_exports__,"kb",(function(){return y})),__webpack_require__.d(__webpack_exports__,"lb",(function(){return G})),__webpack_require__.d(__webpack_exports__,"mb",(function(){return Vr})),__webpack_require__.d(__webpack_exports__,"nb",(function(){return K})),__webpack_require__.d(__webpack_exports__,"ob",(function(){return Ue})),__webpack_require__.d(__webpack_exports__,"pb",(function(){return Se})),__webpack_require__.d(__webpack_exports__,"qb",(function(){return le})),__webpack_require__.d(__webpack_exports__,"rb",(function(){return Fo})),__webpack_require__.d(__webpack_exports__,"sb",(function(){return u})),__webpack_require__.d(__webpack_exports__,"tb",(function(){return Q})),__webpack_require__.d(__webpack_exports__,"ub",(function(){return C})),__webpack_require__.d(__webpack_exports__,"vb",(function(){return q})),__webpack_require__.d(__webpack_exports__,"wb",(function(){return Yo})),__webpack_require__.d(__webpack_exports__,"xb",(function(){return Y})),__webpack_require__.d(__webpack_exports__,"yb",(function(){return W})),__webpack_require__.d(__webpack_exports__,"zb",(function(){return Ae})),__webpack_require__.d(__webpack_exports__,"Ab",(function(){return Xe})),__webpack_require__.d(__webpack_exports__,"Bb",(function(){return to})),__webpack_require__.d(__webpack_exports__,"Cb",(function(){return Ye})),__webpack_require__.d(__webpack_exports__,"Db",(function(){return B})),__webpack_require__.d(__webpack_exports__,"Eb",(function(){return $e})),__webpack_require__.d(__webpack_exports__,"Fb",(function(){return Jo})),__webpack_require__.d(__webpack_exports__,"Gb",(function(){return Ne})),__webpack_require__.d(__webpack_exports__,"Hb",(function(){return pe})),__webpack_require__.d(__webpack_exports__,"Ib",(function(){return o})),__webpack_require__.d(__webpack_exports__,"Jb",(function(){return ds})),__webpack_require__.d(__webpack_exports__,"Kb",(function(){return ie})),__webpack_require__.d(__webpack_exports__,"Lb",(function(){return No})),__webpack_require__.d(__webpack_exports__,"Mb",(function(){return ke})),__webpack_require__.d(__webpack_exports__,"Nb",(function(){return be})),__webpack_require__.d(__webpack_exports__,"Ob",(function(){return H})),__webpack_require__.d(__webpack_exports__,"Pb",(function(){return I})),__webpack_require__.d(__webpack_exports__,"Qb",(function(){return de})),__webpack_require__.d(__webpack_exports__,"Rb",(function(){return A})),__webpack_require__.d(__webpack_exports__,"Sb",(function(){return Bo})),__webpack_require__.d(__webpack_exports__,"Tb",(function(){return Ke})),__webpack_require__.d(__webpack_exports__,"Ub",(function(){return Mo})),__webpack_require__.d(__webpack_exports__,"Vb",(function(){return io})),__webpack_require__.d(__webpack_exports__,"Wb",(function(){return Wo})),__webpack_require__.d(__webpack_exports__,"Xb",(function(){return _e})),__webpack_require__.d(__webpack_exports__,"Yb",(function(){return he})),__webpack_require__.d(__webpack_exports__,"Zb",(function(){return Pe})),__webpack_require__.d(__webpack_exports__,"ac",(function(){return He})),__webpack_require__.d(__webpack_exports__,"bc",(function(){return t})),__webpack_require__.d(__webpack_exports__,"cc",(function(){return ce})),__webpack_require__.d(__webpack_exports__,"dc",(function(){return re})),__webpack_require__.d(__webpack_exports__,"ec",(function(){return Ie})),__webpack_require__.d(__webpack_exports__,"fc",(function(){return n})),__webpack_require__.d(__webpack_exports__,"gc",(function(){return Re})),__webpack_require__.d(__webpack_exports__,"hc",(function(){return k})),__webpack_require__.d(__webpack_exports__,"ic",(function(){return ve})),__webpack_require__.d(__webpack_exports__,"jc",(function(){return Ee})),__webpack_require__.d(__webpack_exports__,"kc",(function(){return me})),__webpack_require__.d(__webpack_exports__,"lc",(function(){return $})),__webpack_require__.d(__webpack_exports__,"mc",(function(){return Be})),__webpack_require__.d(__webpack_exports__,"nc",(function(){return c})),__webpack_require__.d(__webpack_exports__,"oc",(function(){return a})),__webpack_require__.d(__webpack_exports__,"pc",(function(){return fr})),__webpack_require__.d(__webpack_exports__,"qc",(function(){return g})),__webpack_require__.d(__webpack_exports__,"rc",(function(){return s})),__webpack_require__.d(__webpack_exports__,"sc",(function(){return Gr})),__webpack_require__.d(__webpack_exports__,"tc",(function(){return oe})),__webpack_require__.d(__webpack_exports__,"uc",(function(){return l})),__webpack_require__.d(__webpack_exports__,"vc",(function(){return gs})),__webpack_require__.d(__webpack_exports__,"wc",(function(){return ys})),__webpack_require__.d(__webpack_exports__,"xc",(function(){return Hr})),__webpack_require__.d(__webpack_exports__,"yc",(function(){return Xr}));var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};function t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var n=function(){return n=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0&&r[r.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s}function c(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r0&&b.indexOf(e)>=0},O=function(e){return e>0&&m.indexOf(e)>=0},k=function(e,t){if(void 0===t&&(t=!1),t&&R(e))return!0;var n="object"==typeof e&&null!==e&&e.hasOwnProperty("name")&&"string"==typeof e.name&&e.hasOwnProperty("uri")&&"string"==typeof e.uri&&e.hasOwnProperty("type")&&"string"==typeof e.type;if(!n){if("undefined"!=typeof Blob)return e instanceof Blob;if("undefined"!=typeof File)return e instanceof File}return n},I=function(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(e.length!==t.length)return!1;for(var n=c([],a(e),!1).sort(),i=c([],a(t),!1).sort(),r=0;r=1e3&&e<=9e3&&(this._typingIndicatorThrottle=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"websocketResponseTimeout",{get:function(){return this._websocketResponseTimeout},set:function(e){w("number",e)&&e>=5e3&&e<=3e4&&(this._websocketResponseTimeout=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sessionTokenRefreshTimeout",{get:function(){return this._sessionTokenRefreshTimeout},set:function(e){w("number",e)&&(e<60?e=60:e>1800&&(e=1800),this._sessionTokenRefreshTimeout=e)},enumerable:!1,configurable:!0}),e}(),L={encrypt:function(e){return e},decrypt:function(e){return e}},x=function(){function e(e){var t=e.store;this._preference=new Map,this._store=t}return e.prototype._savePreferenceKeys=function(){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this._store.set({key:this._keysAddress,value:c([],a(this._preference.keys()),!1)})];case 1:return e.sent(),[2]}}))}))},e.prototype.init=function(e,t){var n;return void 0===t&&(t=1),r(this,void 0,void 0,(function(){var i,r,a,c,u,l,d,h,_,f;return o(this,(function(o){switch(o.label){case 0:return this._version=t,this._keysAddress=e,i="".concat(e,".metadata.version"),[4,this._store.get(i)];case 1:return r=o.sent(),[4,this._store.get(e)];case 2:return a=null!==(n=o.sent())&&void 0!==n?n:[],!r||r.versiont.channel.messageCollectionLastAccessedAt?1:-1},this._maxSize=Math.max(i,64),s?(this._clearOrder=o,this._customClearOrderComparator=s):this._clearOrder=E.MESSAGE_COLLECTION_ACCESSED_AT,this._enableAutoResend=c}return Object.defineProperty(e.prototype,"maxSize",{get:function(){return this._maxSize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clearOrder",{get:function(){return this._clearOrder},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clearOrderComparator",{get:function(){var e;return this._clearOrder===E.MESSAGE_COLLECTION_ACCESSED_AT?this._clearOrderComparatorUseMessageCollectionAccessedAt:null!==(e=this._customClearOrderComparator)&&void 0!==e?e:this._clearOrderComparatorUseMessageCollectionAccessedAt},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enableAutoResend",{get:function(){return this._enableAutoResend},enumerable:!1,configurable:!0}),e}();!function(e){e.FEED="feed",e.CHAT="chat"}(P||(P={}));var z,V,H,G,q,j,K,B,W,Q,Z,Y,X,J=function(){function e(){this.isRefreshing=!1}return Object.defineProperty(e.prototype,"hasSession",{get:function(){return!!this.sessionKey},enumerable:!1,configurable:!0}),e.prototype.clear=function(){this.authToken=void 0,this.sessionKey=void 0,this.services=[]},e}(),$=function(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}))},ee=function(){function e(e){var t=e.container;this._container={},this._container=t,this.key=$()}return e.prototype._register=function(e,t,n){var i;return e in this._container||(this._container[e]=new Map),null===(i=this._container[e])||void 0===i||i.set(this.key,{occurence:t,handler:n}),this},e.prototype.on=function(e,t){return this._register(e,-1,t)},e.prototype.once=function(e,t){return this._register(e,1,t)},e.prototype.close=function(){var e;for(var t in this._container)null===(e=this._container[t])||void 0===e||e.delete(this.key)},e}(),te=function(){function e(){this._container={}}return e.prototype.on=function(e,t){return new ee({container:this._container}).on(e,t)},e.prototype.once=function(e,t){return new ee({container:this._container}).once(e,t)},e.prototype.dispatch=function(e,t){var n,i,r=this._container[e];if(r){var o=[];try{for(var a=s(r.keys()),c=a.next();!c.done;c=a.next()){var u=c.value,l=r.get(u);l.handler(t),l.occurence>0&&(l.occurence--,0===l.occurence&&o.push(u))}}catch(e){n={error:e}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}o.forEach((function(e){return r.delete(e)}))}},e}(),ne=function(){function e(){this._dispatcher=new te}return e.prototype.on=function(e){return this._dispatcher.on("event",e)},e.prototype.once=function(e){return this._dispatcher.once("event",e)},e.prototype.dispatch=function(e){this._dispatcher.dispatch("event",e)},e}(),ie=function(){},re=function(e){var t={};return e&&Object.keys(e).forEach((function(n){void 0===e[n]||Number.isNaN(e[n])||null===e[n]||(t[n]=e[n])})),t},oe=function(e){if(null!=e){if("object"==typeof e){if(Array.isArray(e)){var t=c([],a(e),!1);for(var n in t)t[n]=oe(t[n]);return t}for(var i in e)null===e[i]&&delete e[i];return e}return e}};!function(e){e.BASE="base",e.GROUP="group",e.OPEN="open",e.FEED="feed"}(z||(z={})),function(e){e.OPERATOR="operator",e.NONE="none"}(V||(V={})),function(e){e.MUTED="muted",e.UNMUTED="unmuted"}(H||(H={})),function(e){e.BASE="base",e.USER="user",e.FILE="file",e.ADMIN="admin"}(G||(G={})),function(e){e.ALL="",e.USER="MESG",e.FILE="FILE",e.ADMIN="ADMM"}(q||(q={})),function(e){e.USER="MESG",e.FILE="FILE",e.ADMIN="ADMM"}(j||(j={})),function(e){e.USERS="users",e.CHANNEL="channel"}(K||(K={})),function(e){e.ALL="all",e.NONE="none",e.ONLY_REPLY_TO_CHANNEL="only_reply_to_channel"}(B||(B={})),function(e){e.DEFAULT="default",e.SUPPRESS="suppress"}(W||(W={})),function(e){e.PENDING="pending",e.SCHEDULED="scheduled",e.SUCCEEDED="succeeded",e.FAILED="failed",e.CANCELED="canceled"}(Q||(Q={})),function(e){e.INREVIEW="InReview",e.APPROVED="Approved"}(Z||(Z={})),function(e){e.HIGH="high",e.NORMAL="normal",e.LOW="low"}(Y||(Y={})),function(e){e.CREATED_AT="created_at",e.UPDATED_AT="updated_at"}(X||(X={}));var se,ae="v3",ce="/".concat(ae,"/users"),ue="/".concat(ae,"/storage/file"),le="/".concat(ae,"/group_channels"),de="/".concat(ae,"/sdk/group_channels"),he="/".concat(ae,"/open_channels"),_e="/".concat(ae,"/sdk/open_channels"),fe="/".concat(ae,"/search"),pe="/".concat(ae,"/report"),Ee="/".concat(ae,"/emojis"),ve="/".concat(ae,"/emoji_categories"),ge="/".concat(ae,"/polls"),be="/".concat(ae,"/scheduled_messages"),me="/".concat(ae,"/sdk/ui_kit/configuration"),ye="/".concat(ae,"/sdk/statistics"),Te=("/".concat(ae,"/notifications"),"/".concat(ae,"/message_templates")),Se=function(e){switch(e){case z.FEED:case z.GROUP:return le;case z.OPEN:return he;default:return null}},Ne=function(e){switch(e){case z.GROUP:return"".concat(pe,"/group_channels");case z.OPEN:return"".concat(pe,"/open_channels");default:return null}},Ae=function(e,t,n){var i,r;switch(e){case K.CHANNEL:return!0;case K.USERS:if(t)try{for(var o=s(t),a=o.next();!a.done;a=o.next())if(a.value===n)return!0}catch(e){i={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}}return!1},Ce=function(e,t,n){var i,r,o,s,a=Ae(null!==(i=e.mentionType)&&void 0!==i?i:null,null!==(r=e.mentionedUserIds)&&void 0!==r?r:[],n),c=Ae(null!==(o=t.mentionType)&&void 0!==o?o:null,null!==(s=t.mentionedUserIds)&&void 0!==s?s:[],n);return!a&&c?1:a&&!c?-1:0},Oe=function(e,t,n){var i,r=t||new FormData;for(var o in e)if(e.hasOwnProperty(o)){var s=e[o],a=n?"".concat(n,"[").concat(o,"]"):o;k(s)?r.append(a,s,null!==(i=s.name)&&void 0!==i?i:"filename"):"object"!=typeof s||null===s||Array.isArray(s)||s instanceof Blob?r.append(a,String(s)):r=Oe(s,r,a)}return r};!function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"}(se||(se={}));var ke,Ie=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.params={},t.requireAuth=!0,t.headers={},t.requestId=$(),t}return t(n,e),n.prototype.encodeParams=function(e){var t=this;return null==e||""===e?encodeURIComponent(""):Array.isArray(e)?e.map((function(e){return t.encodeParams(e)})).join(","):"object"==typeof e?encodeURIComponent(JSON.stringify(e)):encodeURIComponent(String(e))},Object.defineProperty(n.prototype,"query",{get:function(){var e=this,t=re(this.params);return"?".concat(Object.keys(t).map((function(n){return"".concat(encodeURIComponent(n),"=").concat(e.encodeParams(t[n]))})).join("&"))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"payload",{get:function(){var e=re(this.params);return Object.keys(e).some((function(t){return k(e[t])}))?Oe(e):JSON.stringify(e)},enumerable:!1,configurable:!0}),n}(ie),Re=function(e){function i(t,n){var i=e.call(this)||this;return i._iid=t,i._payload=n,i}return t(i,e),Object.defineProperty(i.prototype,"payload",{get:function(){return n({},this._payload)},enumerable:!1,configurable:!0}),i.prototype.as=function(e){return new e(this._iid,this.payload)},i}(ie),De=function(e){function n(t){var n=e.call(this)||this;return n.requestId=t,n}return t(n,e),n}(ie),Le=function(e){function n(t){var n=t.expires_in,i=t.reason,r=void 0===i?u.SESSION_KEY_EXPIRED:i,o=e.call(this)||this;switch(o.expiresIn=null!=n?n:0,r){case u.SESSION_KEY_EXPIRED:case u.SESSION_TOKEN_EXPIRED:case u.SESSION_REVOKED:case u.USER_AUTH_DEACTIVATED:case u.USER_AUTH_DELETED_OR_NOT_FOUND:o.error=new g({code:r})}return o}return t(n,e),Object.defineProperty(n.prototype,"invalidateSessionToken",{get:function(){var e;return!!(null===(e=this.error)||void 0===e?void 0:e.isSessionTokenExpiredError)},enumerable:!1,configurable:!0}),n}(ie),xe=function(e){function n(t,n,i,r){void 0===r&&(r="");var o,s=this;return(s=e.call(this)||this)._iid=t,s.code=n,s.payload=i,s.requestId=null!==(o=i.req_id)&&void 0!==o?o:r,s}return t(n,e),n.createFromRawMessage=function(e,t){var i=t.substring(0,4),r={};try{r=JSON.parse(t.substring(4))}catch(e){i="NOOP"}finally{return new n(e,i,r)}},n.prototype.convertToMessage=function(){return"".concat(this.code).concat(JSON.stringify(this.payload),"\n")},n.prototype.as=function(e){return new e(this._iid,this.code,this.payload)},n}(ie),Ue=function(e){function n(t){var n,i=t.code,r=t.ackRequired,o=t.payload,s=void 0===o?{}:o,a=this;return(a=e.call(this)||this).code=i,a.payload=s,a.requestId=null!==(n=a.payload.req_id)&&void 0!==n?n:$(),a.ackRequired=r,a.payload.req_id=a.requestId,a}return t(n,e),n.prototype.convertToMessage=function(){return"".concat(this.code).concat(JSON.stringify(this.payload),"\n")},n}(ie),Pe=function(e){function n(t){var n=t.userId,i=t.authToken,r=t.services,o=t.expiringSession,s=void 0===o||o,a=e.call(this)||this;return a.path="".concat(ce,"/").concat(n,"/session_key"),a.method=se.POST,a.params=re({token:i,services:r,expiring_session:!!s}),a.requireAuth=!1,a}return t(n,e),n}(Ie),Me=function(e){function n(t){var n=t.authToken,i=t.expiringSession,r=void 0===i||i,o=t.requestId,s=void 0===o?void 0:o;return e.call(this,{code:"LOGI",payload:{token:n,expiring_session:r?1:0,req_id:s},ackRequired:!0})||this}return t(n,e),n}(Ue),Fe=function(e){function n(t,n){var i=e.call(this,t,n)||this,r=n.key,o=n.expires_at,s=n.services;return i.key=r,i.expiresAt=o,i.services=s,i}return t(n,e),n}(Re),ze=function(e){function n(t,n,i){var r,o=this;return(o=e.call(this,t,"LOGI",i)||this).error=null,o.newKey=null,o.newKey=null!==(r=i.new_key)&&void 0!==r?r:null,o.error=i.error?new g(i):null,o}return t(n,e),n}(xe),Ve=function(e){function n(t){var n=e.call(this)||this;return n.statLog=t,n}return t(n,e),n}(ie),He=function(e){function n(t){var n=t.request,i=t.deferred,r=t.error,o=void 0===r?g.requestFailed:r,s=e.call(this)||this;return s.request=n,s.deferred=i,s.error=o,s}return t(n,e),n}(ie);!function(e){e.FEATURE_LOCALCACHE="feature:local_cache",e.FEATURE_LOCALCACHE_EVENT="feature:local_cache_event",e.NOTIFICATION="noti:stats",e.WEBSOCKET_CONNECT="ws:connect",e.API_RESULT="api:result"}(ke||(ke={}));var Ge,qe,je,Ke=function(){function e(e){var t=e.type,n=e.data,i=e.ts,r=void 0===i?Date.now():i;this.type=t,this.createdAt=r,this.data=n}return e.payloadify=function(e){return re({stat_type:e.type,ts:e.createdAt,data:re(e.data)})},e}(),Be=function(){return"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"==navigator.product},We=function(){return!("undefined"==typeof navigator||!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Windows Phone/i.test(navigator.userAgent))};!function(e){e.CHAT="chat",e.CALLS="calls",e.DESK="desk",e.LIVE="live",e.UIKIT_CHAT="uikit-chat",e.UIKIT_LIVE="uikit-live"}(Ge||(Ge={})),function(e){e.ANDROID="android",e.IOS="ios",e.JS="js",e.UNREAL="unreal",e.UNITY="unity",e.REACT_NATIVE="react-native",e.FLUTTER="flutter"}(qe||(qe={})),function(e){e.ANDROID="android",e.IOS="ios",e.WEB="web",e.MOBILE_WEB="mobile_web",e.WINDOWS="windows"}(je||(je={}));var Qe="^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",Ze=function(){function e(){}return e.sendbirdSdkUserAgentWithExtension=function(e){var t=Be()?qe.REACT_NATIVE:qe.JS,i={main_sdk_info:"chat/".concat(t,"/").concat(d.SDK_VERSION),device_os_platform:We()?"mobile-web":"web",os_version:d.OS_VERSION};if(e){var r=e.sendbirdExtensions,o=e.deviceOS,s=e.customData,c=void 0===s?{}:s;o.version&&(i.os_version=o.version),o.platform&&(i.device_os_platform=o.platform),r.length>0&&(i.extension_sdk_info=r.map((function(e){var t=e.product,n=e.platform,i=e.version;return"".concat(t,"/").concat(n,"/").concat(i)})).join(",")),Object.keys(i).forEach((function(e){return delete c[e]})),Object.keys(c).length>0&&(i=n(n({},i),c))}return Object.entries(i).map((function(e){var t=a(e,2),n=t[0],i=t[1];return"".concat(n,"=").concat(i)})).join("&")},e.userAgentWithExtension=function(e){var t=Be()?"reactnative":"JS",n=e.sb_syncmanager?"s".concat(e.sb_syncmanager):"",i=e.sb_uikit?"u".concat(e.sb_uikit):"",r=e["device-os-platform"]?"o".concat(e["device-os-platform"]):We()?"omobile-web":"oweb";return"".concat(t,"/c").concat(d.SDK_VERSION,"/").concat(n,"/").concat(i,"/").concat(r)},e}(),Ye=function(){var e=this;this.promise=new Promise((function(t,n){e.resolve=t,e.reject=function(e){n(e)}}))},Xe=function(e){function n(t){var n=e.call(this)||this;return n.requestId=t.requestId,n}return t(n,e),n}(ie),Je=function(){function e(e,t){var n=t.session,i=t.sdkState,r=t.dispatcher,o=t.logger,s=t.useFetchCompat,a=void 0!==s&&s,c=this;this._abortControl=new Map,this._shouldImportFetchCompat=!1,this._iid=e,this._session=n,this._sdkState=i,this._dispatcher=r,this._dispatcher.on((function(e){e instanceof De&&c.cancel(e.requestId)})),this._logger=o,this._shouldImportFetchCompat=a}return e.prototype._createHeader=function(e,t){var i=this._sdkState,r=i.appId,o=i.appVersion,s=i.sendbirdRuntimeEnvironment,a=n(n({},e.headers),{SendBird:"JS,".concat(d.OS_VERSION,",").concat(d.SDK_VERSION,",").concat(r).concat(o?",".concat(o):""),"SB-User-Agent":Ze.userAgentWithExtension(this._sdkState.extensions),"Request-Sent-Timestamp":Date.now().toString(),"SB-SDK-User-Agent":Ze.sendbirdSdkUserAgentWithExtension(s)});return t||(a["Content-Type"]="application/json; charset=utf-8"),e.requireAuth&&this._session.hasSession&&(a["Session-Key"]=this._session.sessionKey),this._session&&this._session.authToken&&(a["App-Id"]=r,a["Access-Token"]=this._session.authToken),a},e.prototype._statLogApiResult=function(e,t,n){this._dispatcher.dispatch(new Ve(new Ke({type:ke.API_RESULT,data:{endpoint:e.path,method:e.method,success:!n,latency:Date.now()-t,error_code:null==n?void 0:n.code,error_description:null==n?void 0:n.message}})))},e.prototype.send=function(e){return r(this,void 0,void 0,(function(){var t,n,i,r,s,a,c,l,d,h,_,f,p,E,v,b,m,y,w,T;return o(this,(function(o){switch(o.label){case 0:t=e.path,n=e.method,i=e.uploadProgressHandler,r=![se.GET,se.DELETE].includes(n),s=this._sdkState.api,a="".concat(s.host).concat(t).concat(r?"":e.query),c=r?e.payload:null,l=this._createHeader(e,c instanceof FormData?c:void 0),d=new AbortController,h=d.signal,this._abortControl.set(e.requestId,d),_=Date.now(),o.label=1;case 1:return o.trys.push([1,13,,14]),i?[4,__webpack_require__.e(11).then(__webpack_require__.bind(null,"./node_modules/@sendbird/chat/lib/__bundle-3b7d7c5b.js"))]:[3,6];case 2:f=o.sent().xmlHttpRequest,o.label=3;case 3:return o.trys.push([3,5,,6]),[4,f(this._iid,{requestId:e.requestId,method:e.method,url:a,headers:l,data:null!=c?c:void 0,uploadProgressHandler:i})];case 4:return p=o.sent(),this._logger.debug("receive api response",e.requestId),this._statLogApiResult(e,_),[2,p];case 5:if(!((E=o.sent())instanceof g&&E.code===u.XMLHTTPREQUEST_NOT_SUPPORTED))throw E;return this._logger.debug("XMLHttpRequest is not available in this environment. progressHandler is ignored."),[3,6];case 6:return this._shouldImportFetchCompat&&(this._shouldImportFetchCompat=!1,("undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==global&&global||{fetch:null}).fetch=null),"undefined"!=typeof AbortController?[3,8]:[4,__webpack_require__.e(10).then(__webpack_require__.t.bind(null,"./node_modules/@sendbird/chat/lib/__bundle-2aa1a987.js",7))];case 7:o.sent(),o.label=8;case 8:return"function"==typeof fetch?[3,10]:[4,__webpack_require__.e(12).then(__webpack_require__.t.bind(null,"./node_modules/@sendbird/chat/lib/__bundle-ba2b9764.js",7))];case 9:o.sent(),o.label=10;case 10:return[4,fetch(a,{method:n,body:c,headers:l,signal:h})];case 11:return[4,(v=o.sent()).json()];case 12:if(b=o.sent(),v.ok||v.redirected)return this._logger.debug("receive api response",e.requestId),this._statLogApiResult(e,_),[2,new Re(this._iid,b)];if(b){if((m=new g(b)).isSessionExpiredError){if(this._dispatcher.dispatch(new Le({reason:m.code})),!(e instanceof Pe))return y=new Ye,this._dispatcher.dispatch(new He({request:e,deferred:y,error:m})),[2,y.promise];throw m}throw m.isSessionInvalidatedError?(this._dispatcher.dispatch(new Le({reason:m.code})),m):m}throw g.requestFailed;case 13:throw w=o.sent(),this._statLogApiResult(e,_,w),w instanceof g?(this._logger.debug("fail api request",w),w):"AbortError"===(null==w?void 0:w.name)?g.requestCanceled:(T=g.networkError,this._logger.debug("fail api request",T),T);case 14:return[2]}}))}))},e.prototype.cancel=function(e){this._abortControl.has(e)&&(this._abortControl.get(e).abort(),this._abortControl.delete(e)),this._dispatcher.dispatch(new Xe({requestId:e}))},e.prototype.cancelAll=function(){var e,t;try{for(var n=s(this._abortControl.values()),i=n.next();!i.done;i=n.next())i.value.abort()}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this._abortControl.clear(),this._dispatcher.dispatch(new Xe({}))},e}(),$e=function(){};function et(e){let t=e.length;for(;--t>=0;)e[t]=0}const ot=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),st=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),at=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),ct=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ut=new Array(576);et(ut);const lt=new Array(60);et(lt);const dt=new Array(512);et(dt);const ht=new Array(256);et(ht);const _t=new Array(29);et(_t);const ft=new Array(30);function pt(e,t,n,i,r){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=e&&e.length}let Et,vt,gt;function bt(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}et(ft);const mt=e=>e<256?dt[e]:dt[256+(e>>>7)],yt=(e,t)=>{e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},wt=(e,t,n)=>{e.bi_valid>16-n?(e.bi_buf|=t<>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<{wt(e,n[2*t],n[2*t+1])},St=(e,t)=>{let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1},Nt=(e,t,n)=>{const i=new Array(16);let r,o,s=0;for(r=1;r<=15;r++)s=s+n[r-1]<<1,i[r]=s;for(o=0;o<=t;o++){let t=e[2*o+1];0!==t&&(e[2*o]=St(i[t]++,t))}},At=e=>{let t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},Ct=e=>{e.bi_valid>8?yt(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},Ot=(e,t,n,i)=>{const r=2*t,o=2*n;return e[r]{const i=e.heap[n];let r=n<<1;for(;r<=e.heap_len&&(r{let i,r,o,s,a=0;if(0!==e.sym_next)do{i=255&e.pending_buf[e.sym_buf+a++],i+=(255&e.pending_buf[e.sym_buf+a++])<<8,r=e.pending_buf[e.sym_buf+a++],0===i?Tt(e,r,t):(o=ht[r],Tt(e,o+256+1,t),s=ot[o],0!==s&&(r-=_t[o],wt(e,r,s)),i--,o=mt(i),Tt(e,o,n),s=st[o],0!==s&&(i-=ft[o],wt(e,i,s)))}while(a{const n=t.dyn_tree,i=t.stat_desc.static_tree,r=t.stat_desc.has_stree,o=t.stat_desc.elems;let s,a,c,u=-1;for(e.heap_len=0,e.heap_max=573,s=0;s>1;s>=1;s--)kt(e,n,s);c=o;do{s=e.heap[1],e.heap[1]=e.heap[e.heap_len--],kt(e,n,1),a=e.heap[1],e.heap[--e.heap_max]=s,e.heap[--e.heap_max]=a,n[2*c]=n[2*s]+n[2*a],e.depth[c]=(e.depth[s]>=e.depth[a]?e.depth[s]:e.depth[a])+1,n[2*s+1]=n[2*a+1]=c,e.heap[1]=c++,kt(e,n,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],((e,t)=>{const n=t.dyn_tree,i=t.max_code,r=t.stat_desc.static_tree,o=t.stat_desc.has_stree,s=t.stat_desc.extra_bits,a=t.stat_desc.extra_base,c=t.stat_desc.max_length;let u,l,d,h,_,f,p=0;for(h=0;h<=15;h++)e.bl_count[h]=0;for(n[2*e.heap[e.heap_max]+1]=0,u=e.heap_max+1;u<573;u++)l=e.heap[u],h=n[2*n[2*l+1]+1]+1,h>c&&(h=c,p++),n[2*l+1]=h,l>i||(e.bl_count[h]++,_=0,l>=a&&(_=s[l-a]),f=n[2*l],e.opt_len+=f*(h+_),o&&(e.static_len+=f*(r[2*l+1]+_)));if(0!==p){do{for(h=c-1;0===e.bl_count[h];)h--;e.bl_count[h]--,e.bl_count[h+1]+=2,e.bl_count[c]--,p-=2}while(p>0);for(h=c;0!==h;h--)for(l=e.bl_count[h];0!==l;)d=e.heap[--u],d>i||(n[2*d+1]!==h&&(e.opt_len+=(h-n[2*d+1])*n[2*d],n[2*d+1]=h),l--)}})(e,t),Nt(n,u,e.bl_count)},Dt=(e,t,n)=>{let i,r,o=-1,s=t[1],a=0,c=7,u=4;for(0===s&&(c=138,u=3),t[2*(n+1)+1]=65535,i=0;i<=n;i++)r=s,s=t[2*(i+1)+1],++a{let i,r,o=-1,s=t[1],a=0,c=7,u=4;for(0===s&&(c=138,u=3),i=0;i<=n;i++)if(r=s,s=t[2*(i+1)+1],!(++a{wt(e,0+(i?1:0),3),Ct(e),yt(e,n),yt(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n};var Mt={_tr_init:e=>{xt||((()=>{let e,t,n,i,r;const o=new Array(16);for(n=0,i=0;i<28;i++)for(_t[i]=n,e=0;e<1<>=7;i<30;i++)for(ft[i]=r<<7,e=0;e<1<{let r,o,s=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=(e=>{let t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0})(e)),Rt(e,e.l_desc),Rt(e,e.d_desc),s=(e=>{let t;for(Dt(e,e.dyn_ltree,e.l_desc.max_code),Dt(e,e.dyn_dtree,e.d_desc.max_code),Rt(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*ct[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t})(e),r=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=r&&(r=o)):r=o=n+5,n+4<=r&&-1!==t?Ut(e,t,n,i):4===e.strategy||o===r?(wt(e,2+(i?1:0),3),It(e,ut,lt)):(wt(e,4+(i?1:0),3),((e,t,n,i)=>{let r;for(wt(e,t-257,5),wt(e,n-1,5),wt(e,i-4,4),r=0;r(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(ht[n]+256+1)]++,e.dyn_dtree[2*mt(t)]++),e.sym_next===e.sym_end),_tr_align:e=>{wt(e,2,3),Tt(e,256,ut),(e=>{16===e.bi_valid?(yt(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)})(e)}},Ft=(e,t,n,i)=>{let r=65535&e,o=e>>>16&65535,s=0;for(;0!==n;){s=n>2e3?2e3:n,n-=s;do{r=r+t[i++]|0,o=o+r|0}while(--s);r%=65521,o%=65521}return r|o<<16};const zt=new Uint32Array((()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t})());var Vt=(e,t,n,i)=>{const r=zt,o=i+n;e^=-1;for(let n=i;n>>8^r[255&(e^t[n])];return~e},Ht={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Gt={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:qt,_tr_stored_block:jt,_tr_flush_block:Kt,_tr_tally:Bt,_tr_align:Wt}=Mt,{Z_NO_FLUSH:Qt,Z_PARTIAL_FLUSH:Zt,Z_FULL_FLUSH:Yt,Z_FINISH:Xt,Z_BLOCK:Jt,Z_OK:$t,Z_STREAM_END:en,Z_STREAM_ERROR:tn,Z_DATA_ERROR:nn,Z_BUF_ERROR:rn,Z_DEFAULT_COMPRESSION:on,Z_FILTERED:sn,Z_HUFFMAN_ONLY:an,Z_RLE:cn,Z_FIXED:un,Z_DEFAULT_STRATEGY:ln,Z_UNKNOWN:dn,Z_DEFLATED:hn}=Gt,fn=262,gn=(e,t)=>(e.msg=Ht[t],t),bn=e=>2*e-(e>4?9:0),mn=e=>{let t=e.length;for(;--t>=0;)e[t]=0},yn=e=>{let t,n,i,r=e.w_size;t=e.hash_size,i=t;do{n=e.head[--i],e.head[i]=n>=r?n-r:0}while(--t);t=r,i=t;do{n=e.prev[--i],e.prev[i]=n>=r?n-r:0}while(--t)};let wn=(e,t,n)=>(t<{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))},Sn=(e,t)=>{Kt(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Tn(e.strm)},Nn=(e,t)=>{e.pending_buf[e.pending++]=t},An=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},Cn=(e,t,n,i)=>{let r=e.avail_in;return r>i&&(r=i),0===r?0:(e.avail_in-=r,t.set(e.input.subarray(e.next_in,e.next_in+r),n),1===e.state.wrap?e.adler=Ft(e.adler,t,r,n):2===e.state.wrap&&(e.adler=Vt(e.adler,t,r,n)),e.next_in+=r,e.total_in+=r,r)},On=(e,t)=>{let n,i,r=e.max_chain_length,o=e.strstart,s=e.prev_length,a=e.nice_match;const c=e.strstart>e.w_size-fn?e.strstart-(e.w_size-fn):0,u=e.window,l=e.w_mask,d=e.prev,h=e.strstart+258;let _=u[o+s-1],f=u[o+s];e.prev_length>=e.good_match&&(r>>=2),a>e.lookahead&&(a=e.lookahead);do{if(n=t,u[n+s]===f&&u[n+s-1]===_&&u[n]===u[o]&&u[++n]===u[o+1]){o+=2,n++;do{}while(u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&os){if(e.match_start=t,s=i,i>=a)break;_=u[o+s-1],f=u[o+s]}}}while((t=d[t&l])>c&&0!=--r);return s<=e.lookahead?s:e.lookahead},kn=e=>{const t=e.w_size;let n,i,r;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-fn)&&(e.window.set(e.window.subarray(t,t+t-i),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),yn(e),i+=t),0===e.strm.avail_in)break;if(n=Cn(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=n,e.lookahead+e.insert>=3)for(r=e.strstart-e.insert,e.ins_h=e.window[r],e.ins_h=wn(e,e.ins_h,e.window[r+1]);e.insert&&(e.ins_h=wn(e,e.ins_h,e.window[r+3-1]),e.prev[r&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=r,r++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead{let n,i,r,o=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,s=0,a=e.strm.avail_in;do{if(n=65535,r=e.bi_valid+42>>3,e.strm.avail_outi+e.strm.avail_in&&(n=i+e.strm.avail_in),n>r&&(n=r),n>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,Tn(e.strm),i&&(i>n&&(i=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,n-=i),n&&(Cn(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n)}while(0===s);return a-=e.strm.avail_in,a&&(a>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=a&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-a,e.strm.next_in),e.strstart),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.block_start=e.strstart),e.high_waterr&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,r+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),r>e.strm.avail_in&&(r=e.strm.avail_in),r&&(Cn(e.strm,e.window,e.strstart,r),e.strstart+=r,e.insert+=r>e.w_size-e.insert?e.w_size-e.insert:r),e.high_water>3,r=e.pending_buf_size-r>65535?65535:e.pending_buf_size-r,o=r>e.w_size?e.w_size:r,i=e.strstart-e.block_start,(i>=o||(i||t===Xt)&&t!==Qt&&0===e.strm.avail_in&&i<=r)&&(n=i>r?r:i,s=t===Xt&&0===e.strm.avail_in&&n===i?1:0,jt(e,e.block_start,n,s),e.block_start+=n,Tn(e.strm)),s?3:1)},Rn=(e,t)=>{let n,i;for(;;){if(e.lookahead=3&&(e.ins_h=wn(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-fn&&(e.match_length=On(e,n)),e.match_length>=3)if(i=Bt(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=wn(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=wn(e,e.ins_h,e.window[e.strstart+1]);else i=Bt(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(Sn(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,t===Xt?(Sn(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Sn(e,!1),0===e.strm.avail_out)?1:2},Dn=(e,t)=>{let n,i,r;for(;;){if(e.lookahead=3&&(e.ins_h=wn(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-3,i=Bt(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=r&&(e.ins_h=wn(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,i&&(Sn(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if(i=Bt(e,0,e.window[e.strstart-1]),i&&Sn(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=Bt(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,t===Xt?(Sn(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Sn(e,!1),0===e.strm.avail_out)?1:2};function Ln(e,t,n,i,r){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=i,this.func=r}const xn=[new Ln(0,0,0,0,In),new Ln(4,4,8,4,Rn),new Ln(4,5,16,8,Rn),new Ln(4,6,32,32,Rn),new Ln(4,4,16,16,Dn),new Ln(8,16,32,32,Dn),new Ln(8,16,128,128,Dn),new Ln(8,32,128,256,Dn),new Ln(32,128,258,1024,Dn),new Ln(32,258,258,4096,Dn)];function Un(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=hn,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),mn(this.dyn_ltree),mn(this.dyn_dtree),mn(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),mn(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),mn(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Pn=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||42!==t.status&&57!==t.status&&69!==t.status&&73!==t.status&&91!==t.status&&103!==t.status&&113!==t.status&&666!==t.status?1:0},Mn=e=>{if(Pn(e))return gn(e,tn);e.total_in=e.total_out=0,e.data_type=dn;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=2===t.wrap?57:t.wrap?42:113,e.adler=2===t.wrap?0:1,t.last_flush=-2,qt(t),$t},Fn=e=>{const t=Mn(e);var n;return t===$t&&((n=e.state).window_size=2*n.w_size,mn(n.head),n.max_lazy_match=xn[n.level].max_lazy,n.good_match=xn[n.level].good_length,n.nice_match=xn[n.level].nice_length,n.max_chain_length=xn[n.level].max_chain,n.strstart=0,n.block_start=0,n.lookahead=0,n.insert=0,n.match_length=n.prev_length=2,n.match_available=0,n.ins_h=0),t},zn=(e,t,n,i,r,o)=>{if(!e)return tn;let s=1;if(t===on&&(t=6),i<0?(s=0,i=-i):i>15&&(s=2,i-=16),r<1||r>9||n!==hn||i<8||i>15||t<0||t>9||o<0||o>un||8===i&&1!==s)return gn(e,tn);8===i&&(i=9);const a=new Un;return e.state=a,a.strm=e,a.status=42,a.wrap=s,a.gzhead=null,a.w_bits=i,a.w_size=1<zn(e,t,hn,15,8,ln),deflateInit2:zn,deflateReset:Fn,deflateResetKeep:Mn,deflateSetHeader:(e,t)=>Pn(e)||2!==e.state.wrap?tn:(e.state.gzhead=t,$t),deflate:(e,t)=>{if(Pn(e)||t>Jt||t<0)return e?gn(e,tn):tn;const n=e.state;if(!e.output||0!==e.avail_in&&!e.input||666===n.status&&t!==Xt)return gn(e,0===e.avail_out?rn:tn);const i=n.last_flush;if(n.last_flush=t,0!==n.pending){if(Tn(e),0===e.avail_out)return n.last_flush=-1,$t}else if(0===e.avail_in&&bn(t)<=bn(i)&&t!==Xt)return gn(e,rn);if(666===n.status&&0!==e.avail_in)return gn(e,rn);if(42===n.status&&0===n.wrap&&(n.status=113),42===n.status){let t=hn+(n.w_bits-8<<4)<<8,i=-1;if(i=n.strategy>=an||n.level<2?0:n.level<6?1:6===n.level?2:3,t|=i<<6,0!==n.strstart&&(t|=32),t+=31-t%31,An(n,t),0!==n.strstart&&(An(n,e.adler>>>16),An(n,65535&e.adler)),e.adler=1,n.status=113,Tn(e),0!==n.pending)return n.last_flush=-1,$t}if(57===n.status)if(e.adler=0,Nn(n,31),Nn(n,139),Nn(n,8),n.gzhead)Nn(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Nn(n,255&n.gzhead.time),Nn(n,n.gzhead.time>>8&255),Nn(n,n.gzhead.time>>16&255),Nn(n,n.gzhead.time>>24&255),Nn(n,9===n.level?2:n.strategy>=an||n.level<2?4:0),Nn(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(Nn(n,255&n.gzhead.extra.length),Nn(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=Vt(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69;else if(Nn(n,0),Nn(n,0),Nn(n,0),Nn(n,0),Nn(n,0),Nn(n,9===n.level?2:n.strategy>=an||n.level<2?4:0),Nn(n,3),n.status=113,Tn(e),0!==n.pending)return n.last_flush=-1,$t;if(69===n.status){if(n.gzhead.extra){let t=n.pending,i=(65535&n.gzhead.extra.length)-n.gzindex;for(;n.pending+i>n.pending_buf_size;){let r=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+r),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>t&&(e.adler=Vt(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex+=r,Tn(e),0!==n.pending)return n.last_flush=-1,$t;t=0,i-=r}let r=new Uint8Array(n.gzhead.extra);n.pending_buf.set(r.subarray(n.gzindex,n.gzindex+i),n.pending),n.pending+=i,n.gzhead.hcrc&&n.pending>t&&(e.adler=Vt(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex=0}n.status=73}if(73===n.status){if(n.gzhead.name){let t,i=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=Vt(e.adler,n.pending_buf,n.pending-i,i)),Tn(e),0!==n.pending)return n.last_flush=-1,$t;i=0}t=n.gzindexi&&(e.adler=Vt(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=91}if(91===n.status){if(n.gzhead.comment){let t,i=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=Vt(e.adler,n.pending_buf,n.pending-i,i)),Tn(e),0!==n.pending)return n.last_flush=-1,$t;i=0}t=n.gzindexi&&(e.adler=Vt(e.adler,n.pending_buf,n.pending-i,i))}n.status=103}if(103===n.status){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Tn(e),0!==n.pending))return n.last_flush=-1,$t;Nn(n,255&e.adler),Nn(n,e.adler>>8&255),e.adler=0}if(n.status=113,Tn(e),0!==n.pending)return n.last_flush=-1,$t}if(0!==e.avail_in||0!==n.lookahead||t!==Qt&&666!==n.status){let i=0===n.level?In(n,t):n.strategy===an?((e,t)=>{let n;for(;;){if(0===e.lookahead&&(kn(e),0===e.lookahead)){if(t===Qt)return 1;break}if(e.match_length=0,n=Bt(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Sn(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===Xt?(Sn(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Sn(e,!1),0===e.strm.avail_out)?1:2})(n,t):n.strategy===cn?((e,t)=>{let n,i,r,o;const s=e.window;for(;;){if(e.lookahead<=258){if(kn(e),e.lookahead<=258&&t===Qt)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=e.strstart-1,i=s[r],i===s[++r]&&i===s[++r]&&i===s[++r])){o=e.strstart+258;do{}while(i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&re.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=Bt(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Bt(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Sn(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===Xt?(Sn(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Sn(e,!1),0===e.strm.avail_out)?1:2})(n,t):xn[n.level].func(n,t);if(3!==i&&4!==i||(n.status=666),1===i||3===i)return 0===e.avail_out&&(n.last_flush=-1),$t;if(2===i&&(t===Zt?Wt(n):t!==Jt&&(jt(n,0,0,!1),t===Yt&&(mn(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),Tn(e),0===e.avail_out))return n.last_flush=-1,$t}return t!==Xt?$t:n.wrap<=0?en:(2===n.wrap?(Nn(n,255&e.adler),Nn(n,e.adler>>8&255),Nn(n,e.adler>>16&255),Nn(n,e.adler>>24&255),Nn(n,255&e.total_in),Nn(n,e.total_in>>8&255),Nn(n,e.total_in>>16&255),Nn(n,e.total_in>>24&255)):(An(n,e.adler>>>16),An(n,65535&e.adler)),Tn(e),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?$t:en)},deflateEnd:e=>{if(Pn(e))return tn;const t=e.state.status;return e.state=null,113===t?gn(e,nn):$t},deflateSetDictionary:(e,t)=>{let n=t.length;if(Pn(e))return tn;const i=e.state,r=i.wrap;if(2===r||1===r&&42!==i.status||i.lookahead)return tn;if(1===r&&(e.adler=Ft(e.adler,t,n,0)),i.wrap=0,n>=i.w_size){0===r&&(mn(i.head),i.strstart=0,i.block_start=0,i.insert=0);let e=new Uint8Array(i.w_size);e.set(t.subarray(n-i.w_size,n),0),t=e,n=i.w_size}const o=e.avail_in,s=e.next_in,a=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,kn(i);i.lookahead>=3;){let e=i.strstart,t=i.lookahead-2;do{i.ins_h=wn(i,i.ins_h,i.window[e+3-1]),i.prev[e&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=e,e++}while(--t);i.strstart=e,i.lookahead=2,kn(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,e.next_in=s,e.input=a,e.avail_in=o,i.wrap=r,$t},deflateInfo:"pako deflate (from Nodeca project)"};const Hn=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var Gn={assign:function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(const t in n)Hn(n,t)&&(e[t]=n[t])}}return e},flattenChunks:e=>{let t=0;for(let n=0,i=e.length;n=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;jn[254]=jn[254]=1;var Kn={string2buf:e=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);let t,n,i,r,o,s=e.length,a=0;for(r=0;r>>6,t[o++]=128|63&n):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|63&n);return t},buf2string:(e,t)=>{const n=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));let i,r;const o=new Array(2*n);for(r=0,i=0;i4)o[r++]=65533,i+=s-1;else{for(t&=2===s?31:3===s?15:7;s>1&&i1?o[r++]=65533:t<65536?o[r++]=t:(t-=65536,o[r++]=55296|t>>10&1023,o[r++]=56320|1023&t)}}return((e,t)=>{if(t<65534&&e.subarray&&qn)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let i=0;i{(t=t||e.length)>e.length&&(t=e.length);let n=t-1;for(;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+jn[e[n]]>t?n:t}},Bn=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Wn=Object.prototype.toString,{Z_NO_FLUSH:Qn,Z_SYNC_FLUSH:Zn,Z_FULL_FLUSH:Yn,Z_FINISH:Xn,Z_OK:Jn,Z_STREAM_END:$n,Z_DEFAULT_COMPRESSION:ei,Z_DEFAULT_STRATEGY:ti,Z_DEFLATED:ni}=Gt;function ii(e){this.options=Gn.assign({level:ei,method:ni,chunkSize:16384,windowBits:15,memLevel:8,strategy:ti},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Bn,this.strm.avail_out=0;let n=Vn.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==Jn)throw new Error(Ht[n]);if(t.header&&Vn.deflateSetHeader(this.strm,t.header),t.dictionary){let e;if(e="string"==typeof t.dictionary?Kn.string2buf(t.dictionary):"[object ArrayBuffer]"===Wn.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,n=Vn.deflateSetDictionary(this.strm,e),n!==Jn)throw new Error(Ht[n]);this._dict_set=!0}}function ri(e,t){const n=new ii(t);if(n.push(e,!0),n.err)throw n.msg||Ht[n.err];return n.result}ii.prototype.push=function(e,t){const n=this.strm,i=this.options.chunkSize;let r,o;if(this.ended)return!1;for(o=t===~~t?t:!0===t?Xn:Qn,"string"==typeof e?n.input=Kn.string2buf(e):"[object ArrayBuffer]"===Wn.call(e)?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;)if(0===n.avail_out&&(n.output=new Uint8Array(i),n.next_out=0,n.avail_out=i),(o===Zn||o===Yn)&&n.avail_out<=6)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else{if(r=Vn.deflate(n,o),r===$n)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),r=Vn.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===Jn;if(0!==n.avail_out){if(o>0&&n.next_out>0)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else if(0===n.avail_in)break}else this.onData(n.output)}return!0},ii.prototype.onData=function(e){this.chunks.push(e)},ii.prototype.onEnd=function(e){e===Jn&&(this.result=Gn.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var oi={Deflate:ii,deflate:ri,deflateRaw:function(e,t){return(t=t||{}).raw=!0,ri(e,t)},gzip:function(e,t){return(t=t||{}).gzip=!0,ri(e,t)},constants:Gt};const si=16209;var ai=function(e,t){let n,i,r,o,s,a,c,u,l,d,h,_,f,p,E,v,g,b,m,y,w,T,S,N;const A=e.state;n=e.next_in,S=e.input,i=n+(e.avail_in-5),r=e.next_out,N=e.output,o=r-(t-e.avail_out),s=r+(e.avail_out-257),a=A.dmax,c=A.wsize,u=A.whave,l=A.wnext,d=A.window,h=A.hold,_=A.bits,f=A.lencode,p=A.distcode,E=(1<>>24,h>>>=b,_-=b,b=g>>>16&255,0===b)N[r++]=65535&g;else{if(!(16&b)){if(!(64&b)){g=f[(65535&g)+(h&(1<>>=b,_-=b),_<15&&(h+=S[n++]<<_,_+=8,h+=S[n++]<<_,_+=8),g=p[h&v];n:for(;;){if(b=g>>>24,h>>>=b,_-=b,b=g>>>16&255,!(16&b)){if(!(64&b)){g=p[(65535&g)+(h&(1<a){e.msg="invalid distance too far back",A.mode=si;break e}if(h>>>=b,_-=b,b=r-o,y>b){if(b=y-b,b>u&&A.sane){e.msg="invalid distance too far back",A.mode=si;break e}if(w=0,T=d,0===l){if(w+=c-b,b2;)N[r++]=T[w++],N[r++]=T[w++],N[r++]=T[w++],m-=3;m&&(N[r++]=T[w++],m>1&&(N[r++]=T[w++]))}else{w=r-y;do{N[r++]=N[w++],N[r++]=N[w++],N[r++]=N[w++],m-=3}while(m>2);m&&(N[r++]=N[w++],m>1&&(N[r++]=N[w++]))}break}}break}}while(n>3,n-=m,_-=m<<3,h&=(1<<_)-1,e.next_in=n,e.next_out=r,e.avail_in=n{const c=a.bits;let u,l,d,h,_,f,p=0,E=0,v=0,g=0,b=0,m=0,y=0,w=0,T=0,S=0,N=null;const A=new Uint16Array(16),C=new Uint16Array(16);let O,k,I,R=null;for(p=0;p<=15;p++)A[p]=0;for(E=0;E=1&&0===A[g];g--);if(b>g&&(b=g),0===g)return r[o++]=20971520,r[o++]=20971520,a.bits=1,0;for(v=1;v0&&(0===e||1!==g))return-1;for(C[1]=0,p=1;p<15;p++)C[p+1]=C[p]+A[p];for(E=0;E852||2===e&&T>592)return 1;for(;;){O=p-y,s[E]+1=f?(k=R[s[E]-f],I=N[s[E]-f]):(k=96,I=0),u=1<>y)+l]=O<<24|k<<16|I}while(0!==l);for(u=1<>=1;if(0!==u?(S&=u-1,S+=u):S=0,E++,0==--A[p]){if(p===g)break;p=t[n+s[E]]}if(p>b&&(S&h)!==d){for(0===y&&(y=b),_+=v,m=p-y,w=1<852||2===e&&T>592)return 1;d=S&h,r[d]=b<<24|m<<16|_-o}}return 0!==S&&(r[_+S]=p-y<<24|64<<16),a.bits=b,0};const{Z_FINISH:fi,Z_BLOCK:pi,Z_TREES:Ei,Z_OK:vi,Z_STREAM_END:gi,Z_NEED_DICT:bi,Z_STREAM_ERROR:mi,Z_DATA_ERROR:yi,Z_MEM_ERROR:wi,Z_BUF_ERROR:Ti,Z_DEFLATED:Si}=Gt,Ni=16180,Ai=16190,Ci=16191,Ii=16199,Ri=16200,Li=16209,xi=e=>(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24);function Ui(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Pi=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode16211?1:0},Mi=e=>{if(Pi(e))return mi;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=Ni,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,vi},Fi=e=>{if(Pi(e))return mi;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,Mi(e)},zi=(e,t)=>{let n;if(Pi(e))return mi;const i=e.state;return t<0?(n=0,t=-t):(n=5+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?mi:(null!==i.window&&i.wbits!==t&&(i.window=null),i.wrap=n,i.wbits=t,Fi(e))},Vi=(e,t)=>{if(!e)return mi;const n=new Ui;e.state=n,n.strm=e,n.window=null,n.mode=Ni;const i=zi(e,t);return i!==vi&&(e.state=null),i};let Hi,Gi,qi=!0;const ji=e=>{if(qi){Hi=new Int32Array(512),Gi=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(_i(1,e.lens,0,288,Hi,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;_i(2,e.lens,0,32,Gi,0,e.work,{bits:5}),qi=!1}e.lencode=Hi,e.lenbits=9,e.distcode=Gi,e.distbits=5},Ki=(e,t,n,i)=>{let r;const o=e.state;return null===o.window&&(o.wsize=1<=o.wsize?(o.window.set(t.subarray(n-o.wsize,n),0),o.wnext=0,o.whave=o.wsize):(r=o.wsize-o.wnext,r>i&&(r=i),o.window.set(t.subarray(n-i,n-i+r),o.wnext),(i-=r)?(o.window.set(t.subarray(n-i,n),0),o.wnext=i,o.whave=o.wsize):(o.wnext+=r,o.wnext===o.wsize&&(o.wnext=0),o.whaveVi(e,15),inflateInit2:Vi,inflate:(e,t)=>{let n,i,r,o,s,a,c,u,l,d,h,_,f,p,E,v,g,b,m,y,w,T,S=0;const N=new Uint8Array(4);let A,C;const O=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Pi(e)||!e.output||!e.input&&0!==e.avail_in)return mi;n=e.state,n.mode===Ci&&(n.mode=16192),s=e.next_out,r=e.output,c=e.avail_out,o=e.next_in,i=e.input,a=e.avail_in,u=n.hold,l=n.bits,d=a,h=c,T=vi;e:for(;;)switch(n.mode){case Ni:if(0===n.wrap){n.mode=16192;break}for(;l<16;){if(0===a)break e;a--,u+=i[o++]<>>8&255,n.check=Vt(n.check,N,2,0),u=0,l=0,n.mode=16181;break}if(n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=Li;break}if((15&u)!==Si){e.msg="unknown compression method",n.mode=Li;break}if(u>>>=4,l-=4,w=8+(15&u),0===n.wbits&&(n.wbits=w),w>15||w>n.wbits){e.msg="invalid window size",n.mode=Li;break}n.dmax=1<>8&1),512&n.flags&&4&n.wrap&&(N[0]=255&u,N[1]=u>>>8&255,n.check=Vt(n.check,N,2,0)),u=0,l=0,n.mode=16182;case 16182:for(;l<32;){if(0===a)break e;a--,u+=i[o++]<>>8&255,N[2]=u>>>16&255,N[3]=u>>>24&255,n.check=Vt(n.check,N,4,0)),u=0,l=0,n.mode=16183;case 16183:for(;l<16;){if(0===a)break e;a--,u+=i[o++]<>8),512&n.flags&&4&n.wrap&&(N[0]=255&u,N[1]=u>>>8&255,n.check=Vt(n.check,N,2,0)),u=0,l=0,n.mode=16184;case 16184:if(1024&n.flags){for(;l<16;){if(0===a)break e;a--,u+=i[o++]<>>8&255,n.check=Vt(n.check,N,2,0)),u=0,l=0}else n.head&&(n.head.extra=null);n.mode=16185;case 16185:if(1024&n.flags&&(_=n.length,_>a&&(_=a),_&&(n.head&&(w=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(i.subarray(o,o+_),w)),512&n.flags&&4&n.wrap&&(n.check=Vt(n.check,i,_,o)),a-=_,o+=_,n.length-=_),n.length))break e;n.length=0,n.mode=16186;case 16186:if(2048&n.flags){if(0===a)break e;_=0;do{w=i[o+_++],n.head&&w&&n.length<65536&&(n.head.name+=String.fromCharCode(w))}while(w&&_>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Ci;break;case 16189:for(;l<32;){if(0===a)break e;a--,u+=i[o++]<>>=7&l,l-=7&l,n.mode=16206;break}for(;l<3;){if(0===a)break e;a--,u+=i[o++]<>>=1,l-=1,3&u){case 0:n.mode=16193;break;case 1:if(ji(n),n.mode=Ii,t===Ei){u>>>=2,l-=2;break e}break;case 2:n.mode=16196;break;case 3:e.msg="invalid block type",n.mode=Li}u>>>=2,l-=2;break;case 16193:for(u>>>=7&l,l-=7&l;l<32;){if(0===a)break e;a--,u+=i[o++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=Li;break}if(n.length=65535&u,u=0,l=0,n.mode=16194,t===Ei)break e;case 16194:n.mode=16195;case 16195:if(_=n.length,_){if(_>a&&(_=a),_>c&&(_=c),0===_)break e;r.set(i.subarray(o,o+_),s),a-=_,o+=_,c-=_,s+=_,n.length-=_;break}n.mode=Ci;break;case 16196:for(;l<14;){if(0===a)break e;a--,u+=i[o++]<>>=5,l-=5,n.ndist=1+(31&u),u>>>=5,l-=5,n.ncode=4+(15&u),u>>>=4,l-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=Li;break}n.have=0,n.mode=16197;case 16197:for(;n.have>>=3,l-=3}for(;n.have<19;)n.lens[O[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,A={bits:n.lenbits},T=_i(0,n.lens,0,19,n.lencode,0,n.work,A),n.lenbits=A.bits,T){e.msg="invalid code lengths set",n.mode=Li;break}n.have=0,n.mode=16198;case 16198:for(;n.have>>24,v=S>>>16&255,g=65535&S,!(E<=l);){if(0===a)break e;a--,u+=i[o++]<>>=E,l-=E,n.lens[n.have++]=g;else{if(16===g){for(C=E+2;l>>=E,l-=E,0===n.have){e.msg="invalid bit length repeat",n.mode=Li;break}w=n.lens[n.have-1],_=3+(3&u),u>>>=2,l-=2}else if(17===g){for(C=E+3;l>>=E,l-=E,w=0,_=3+(7&u),u>>>=3,l-=3}else{for(C=E+7;l>>=E,l-=E,w=0,_=11+(127&u),u>>>=7,l-=7}if(n.have+_>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=Li;break}for(;_--;)n.lens[n.have++]=w}}if(n.mode===Li)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=Li;break}if(n.lenbits=9,A={bits:n.lenbits},T=_i(1,n.lens,0,n.nlen,n.lencode,0,n.work,A),n.lenbits=A.bits,T){e.msg="invalid literal/lengths set",n.mode=Li;break}if(n.distbits=6,n.distcode=n.distdyn,A={bits:n.distbits},T=_i(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,A),n.distbits=A.bits,T){e.msg="invalid distances set",n.mode=Li;break}if(n.mode=Ii,t===Ei)break e;case Ii:n.mode=Ri;case Ri:if(a>=6&&c>=258){e.next_out=s,e.avail_out=c,e.next_in=o,e.avail_in=a,n.hold=u,n.bits=l,ai(e,h),s=e.next_out,r=e.output,c=e.avail_out,o=e.next_in,i=e.input,a=e.avail_in,u=n.hold,l=n.bits,n.mode===Ci&&(n.back=-1);break}for(n.back=0;S=n.lencode[u&(1<>>24,v=S>>>16&255,g=65535&S,!(E<=l);){if(0===a)break e;a--,u+=i[o++]<>b)],E=S>>>24,v=S>>>16&255,g=65535&S,!(b+E<=l);){if(0===a)break e;a--,u+=i[o++]<>>=b,l-=b,n.back+=b}if(u>>>=E,l-=E,n.back+=E,n.length=g,0===v){n.mode=16205;break}if(32&v){n.back=-1,n.mode=Ci;break}if(64&v){e.msg="invalid literal/length code",n.mode=Li;break}n.extra=15&v,n.mode=16201;case 16201:if(n.extra){for(C=n.extra;l>>=n.extra,l-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=16202;case 16202:for(;S=n.distcode[u&(1<>>24,v=S>>>16&255,g=65535&S,!(E<=l);){if(0===a)break e;a--,u+=i[o++]<>b)],E=S>>>24,v=S>>>16&255,g=65535&S,!(b+E<=l);){if(0===a)break e;a--,u+=i[o++]<>>=b,l-=b,n.back+=b}if(u>>>=E,l-=E,n.back+=E,64&v){e.msg="invalid distance code",n.mode=Li;break}n.offset=g,n.extra=15&v,n.mode=16203;case 16203:if(n.extra){for(C=n.extra;l>>=n.extra,l-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=Li;break}n.mode=16204;case 16204:if(0===c)break e;if(_=h-c,n.offset>_){if(_=n.offset-_,_>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=Li;break}_>n.wnext?(_-=n.wnext,f=n.wsize-_):f=n.wnext-_,_>n.length&&(_=n.length),p=n.window}else p=r,f=s-n.offset,_=n.length;_>c&&(_=c),c-=_,n.length-=_;do{r[s++]=p[f++]}while(--_);0===n.length&&(n.mode=Ri);break;case 16205:if(0===c)break e;r[s++]=n.length,c--,n.mode=Ri;break;case 16206:if(n.wrap){for(;l<32;){if(0===a)break e;a--,u|=i[o++]<{if(Pi(e))return mi;let t=e.state;return t.window&&(t.window=null),e.state=null,vi},inflateGetHeader:(e,t)=>{if(Pi(e))return mi;const n=e.state;return 2&n.wrap?(n.head=t,t.done=!1,vi):mi},inflateSetDictionary:(e,t)=>{const n=t.length;let i,r,o;return Pi(e)?mi:(i=e.state,0!==i.wrap&&i.mode!==Ai?mi:i.mode===Ai&&(r=1,r=Ft(r,t,n,0),r!==i.check)?yi:(o=Ki(e,t,n,n),o?(i.mode=16210,wi):(i.havedict=1,vi)))},inflateInfo:"pako inflate (from Nodeca project)"},Wi=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const Qi=Object.prototype.toString,{Z_NO_FLUSH:Zi,Z_FINISH:Yi,Z_OK:Xi,Z_STREAM_END:Ji,Z_NEED_DICT:$i,Z_STREAM_ERROR:er,Z_DATA_ERROR:tr,Z_MEM_ERROR:nr}=Gt;function ir(e){this.options=Gn.assign({chunkSize:65536,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Bn,this.strm.avail_out=0;let n=Bi.inflateInit2(this.strm,t.windowBits);if(n!==Xi)throw new Error(Ht[n]);if(this.header=new Wi,Bi.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=Kn.string2buf(t.dictionary):"[object ArrayBuffer]"===Qi.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Bi.inflateSetDictionary(this.strm,t.dictionary),n!==Xi)))throw new Error(Ht[n])}function rr(e,t){const n=new ir(t);if(n.push(e),n.err)throw n.msg||Ht[n.err];return n.result}ir.prototype.push=function(e,t){const n=this.strm,i=this.options.chunkSize,r=this.options.dictionary;let o,s,a;if(this.ended)return!1;for(s=t===~~t?t:!0===t?Yi:Zi,"[object ArrayBuffer]"===Qi.call(e)?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(0===n.avail_out&&(n.output=new Uint8Array(i),n.next_out=0,n.avail_out=i),o=Bi.inflate(n,s),o===$i&&r&&(o=Bi.inflateSetDictionary(n,r),o===Xi?o=Bi.inflate(n,s):o===tr&&(o=$i));n.avail_in>0&&o===Ji&&n.state.wrap>0&&0!==e[n.next_in];)Bi.inflateReset(n),o=Bi.inflate(n,s);switch(o){case er:case tr:case $i:case nr:return this.onEnd(o),this.ended=!0,!1}if(a=n.avail_out,n.next_out&&(0===n.avail_out||o===Ji))if("string"===this.options.to){let e=Kn.utf8border(n.output,n.next_out),t=n.next_out-e,r=Kn.buf2string(n.output,e);n.next_out=t,n.avail_out=i-t,t&&n.output.set(n.output.subarray(e,e+t),0),this.onData(r)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(o!==Xi||0!==a){if(o===Ji)return o=Bi.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(0===n.avail_in)break}}return!0},ir.prototype.onData=function(e){this.chunks.push(e)},ir.prototype.onEnd=function(e){e===Xi&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Gn.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var or={Inflate:ir,inflate:rr,inflateRaw:function(e,t){return(t=t||{}).raw=!0,rr(e,t)},ungzip:rr,constants:Gt};const{Deflate:sr,deflate:ar,deflateRaw:cr,gzip:ur}=oi,{Inflate:lr,inflate:dr,inflateRaw:hr,ungzip:_r}=or;var fr,pr={Deflate:sr,deflate:ar,deflateRaw:cr,gzip:ur,Inflate:lr,inflate:dr,inflateRaw:hr,ungzip:_r,constants:Gt},Er=function(e){return r(void 0,void 0,void 0,(function(){var t;return o(this,(function(n){return t=pr.ungzip(e),[2,String.fromCharCode.apply(null,t)]}))}))};!function(e){e.CONNECTING="CONNECTING",e.OPEN="OPEN",e.CLOSED="CLOSED"}(fr||(fr={}));var vr,gr=function(e){function n(t,n){var i=n.sdkState,r=n.dispatcher,o=n.logger,s=e.call(this)||this;return s.lastActive=0,s._iid=t,s._sdkState=i,s._dispatcher=r,s._logger=o,s}return t(n,e),Object.defineProperty(n.prototype,"isOpen",{get:function(){return this.connectionState===fr.OPEN},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"connectionState",{get:function(){if(this._ws)switch(this._ws.readyState){case 0:return fr.CONNECTING;case 1:return fr.OPEN}return fr.CLOSED},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ws",{get:function(){var e;return null!==(e=this._ws)&&void 0!==e?e:null},enumerable:!1,configurable:!0}),n.prototype._handleMessage=function(e){var t=this;e.split("\n").forEach((function(e){if(e){var n=xe.createFromRawMessage(t._iid,e);if(t._logger.debug("receive websocket event",n),"LOGI"===n.code)t.dispatch("message",n);else if("PONG"===n.code)t.dispatch("pong");else if("EXPR"===n.code){if(n.payload){var i=new Le(n.payload);i.expiresIn>=0&&t._dispatcher.dispatch(i)}}else"NOOP"===n.code||t.dispatch("message",n)}}))},n.prototype.connect=function(e,t){var n=this;void 0===t&&(t=""),this._ws=new WebSocket(e,encodeURIComponent(t)),this._ws.onopen=function(){n._logger.debug("websocket open"),n.dispatch("open")},this._ws.onmessage=function(e){return r(n,void 0,void 0,(function(){var t,n,i,s,a=this;return o(this,(function(c){switch(c.label){case 0:return(null===(s=this._sdkState.websocket)||void 0===s?void 0:s.compression)?e.data instanceof Blob?((t=new FileReader).readAsArrayBuffer(e.data),t.onloadend=function(){return r(a,void 0,void 0,(function(){var e,n;return o(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,Er(t.result)];case 1:return e=i.sent(),this._handleMessage(e),[3,3];case 2:return n=i.sent(),this.error(n),[3,3];case 3:return[2]}}))}))},[3,7]):[3,1]:[3,8];case 1:if(!(e.data instanceof ArrayBuffer))return[3,6];c.label=2;case 2:return c.trys.push([2,4,,5]),[4,Er(new Uint8Array(e.data))];case 3:return n=c.sent(),this._handleMessage(n),[3,5];case 4:return i=c.sent(),this.error(i),[3,5];case 5:return[3,7];case 6:"string"==typeof e.data&&this._handleMessage(e.data),c.label=7;case 7:return[3,9];case 8:this._handleMessage(e.data),c.label=9;case 9:return[2]}}))}))},this._ws.onerror=function(){n._logger.debug("websocket error"),n.dispatch("error",g.networkError)},this._ws.onclose=function(){n._logger.debug("websocket close"),n.dispatch("close")},this.lastActive=Date.now()},n.prototype.disconnect=function(){var e=this;return new Promise((function(t){e._logger.debug("websocket disconnect"),e._ws?(e._ws.onopen=$e,e._ws.onmessage=$e,e._ws.onerror=$e,e.connectionState!==fr.CLOSED?(e._ws.onclose=function(){e.dispatch("close"),t()},e._ws.close(),e._ws=void 0):t()):t()}))},n.prototype.send=function(e){if(!this._ws)throw g.connectionClosed;"PING"!==e.code?this.dispatch("ping-refresh"):this._logger.debug("send ping",e),this._ws.send(e.convertToMessage())},n.prototype.error=function(e){this._logger.debug("websocket error",e),this.dispatch("error",e)},n}(te),br=function(e){function n(t){var n=t.all,i=t.feed,r=t.custom_types,o=t.ts,s=e.call(this)||this;return s.all=n,s.feed=i,s.customTypes=r,s.ts=o,s}return t(n,e),n}(ie),mr=function(){function e(e,t){var n=t.session,i=t.sdkState,r=t.dispatcher,o=t.logger,s=t.useFetchCompat,a=void 0!==s&&s,c=this;this._ackStateMap=new Map,this._sdkState=i,this._dispatcher=r,this._logger=o,this.apiClient=new Je(e,{session:n,sdkState:i,dispatcher:r,logger:o,useFetchCompat:a}),this.websocketClient=new gr(e,{sdkState:i,dispatcher:r,logger:o}),this.websocketClient.on("message",(function(e){if(e.payload.unread_cnt&&c._dispatcher.dispatch(new br(e.payload.unread_cnt)),e.requestId){if(c._ackStateMap.has(e.requestId)){var t=c._ackStateMap.get(e.requestId);"EROR"!==e.code?t.resolve(e):t.reject(new g({code:e.payload.code,message:e.payload.message}))}}else c._dispatcher.dispatch(e)})).on("close",(function(){c._ackStateMap.forEach((function(e){e.reject(g.connectionClosed)})),c._ackStateMap.clear()}))}return e.prototype._sendApiRequest=function(e){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.apiClient.send(e)];case 1:return[2,t.sent()]}}))}))},e.prototype._sendWebsocketRequest=function(e){return r(this,void 0,void 0,(function(){var t,n,i,r=this;return o(this,(function(o){if(!this._sdkState.websocket)throw g.connectionRequired;if(t=new Ye,e.ackRequired){i=function(i,o){r._ackStateMap.has(e.requestId)&&(r._ackStateMap.delete(e.requestId),n&&(clearTimeout(n),n=null),i?(r._logger.debug("fail websocket request",e.requestId,i),t.reject(i)):(r._logger.debug("receive websocket ack",e.requestId,e),r._logger.debug("receive websocket ack",o),t.resolve(o)))};try{n=setTimeout((function(){return i(g.noAckTimeout)}),this._sdkState.websocket.responseTimeout),this._ackStateMap.set(e.requestId,{resolve:function(e){return i(void 0,e)},reject:function(e){return i(e)}}),this.websocketClient.send(e)}catch(e){i(e)}}else try{this.websocketClient.send(e),t.resolve()}catch(e){t.reject(e)}return[2,t.promise]}))}))},e.prototype.send=function(e){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return e instanceof Ie?[4,this._sendApiRequest(e)]:[3,2];case 1:case 3:return[2,t.sent()];case 2:return e instanceof Ue?[4,this._sendWebsocketRequest(e)]:[3,4];case 4:throw g.invalidParameters}}))}))},e.prototype.cancel=function(e){this.apiClient.cancel(e)},e.prototype.cancelAll=function(){this.apiClient.cancelAll()},e}();!function(e){e[e.NONE=0]="NONE",e[e.INITIALIZED=1]="INITIALIZED",e[e.CONNECTING=2]="CONNECTING",e[e.CONNECTED=3]="CONNECTED",e[e.RECONNECTING=4]="RECONNECTING",e[e.INTERNAL_DISCONNECTED=5]="INTERNAL_DISCONNECTED",e[e.EXTERNAL_DISCONNECTED=6]="EXTERNAL_DISCONNECTED",e[e.LOGOUT=7]="LOGOUT"}(vr||(vr={}));var yr=function(e){function n(t){var n=t.stateType,i=e.call(this)||this;return i.stateType=n,i}return t(n,e),n}(ie),wr=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n}(ie),Tr=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n}(ie),Sr=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n}(ie),Nr=function(){function e(e){var t,n,i,r;this.isEnabled=null!==(t=e.enabled)&&void 0!==t&&t,this.feedChannels=null!==(n=e.feed_channels)&&void 0!==n?n:{},this.templateListToken=null!==(i=e.template_list_token)&&void 0!==i?i:null,this.settingsUpdatedAt=null!==(r=e.settings_updated_at)&&void 0!==r?r:0}return e.payloadify=function(e){return re(oe({enabled:e.isEnabled,feed_channels:e.feedChannels,template_list_token:e.templateListToken,settings_updated_at:e.settingsUpdatedAt}))},e}(),Ar=function(e){return"sendbird@".concat(e,"/changelog_include_chat_notifications")},Cr=function(){function e(e){var t;this.lastUpdatedAt=null!==(t=e.last_updated_at)&&void 0!==t?t:0}return e.payloadify=function(e){return re(oe({last_updated_at:e.lastUpdatedAt}))},e}(),Or=function(){function e(e){var t;this.token=null!==(t=e.template_list_token)&&void 0!==t?t:""}return e.payloadify=function(e){return re(oe({template_list_token:e.token}))},e}(),Ir=5,Rr=function(){function e(e){var t,n,i,r,o;void 0===e&&(e={}),this.emojiHash=e.emoji_hash||"",this.uploadSizeLimit=e.file_upload_size_limit?1048576*e.file_upload_size_limit:Number.MAX_SAFE_INTEGER,this.useReaction=!!e.use_reaction,this.applicationAttributes=null!==(t=e.application_attributes)&&void 0!==t?t:[],this.premiumFeatureList=null!==(n=e.premium_feature_list)&&void 0!==n?n:[],this.deviceTokenCache=this.applicationAttributes.includes("sdk_device_token_cache"),this.enabledChannelMemberShipHistory=this.applicationAttributes.includes("channel_membership_history"),this.multipleFilesMessageFileCountLimit=null!==(i=e.multiple_file_send_max_size)&&void 0!==i?i:5,this.allowSdkStatsUpload=null===(r=e.allow_sdk_log_ingestion)||void 0===r||r,this.uikitConfigInfo=new Cr(null!==(o=e.uikit_config)&&void 0!==o?o:{}),this.notificationInfo=e.notifications?new Nr(e.notifications):null,this.messageTemplateInfo=e.message_template?new Or(e.message_template):null}return e.payloadify=function(e){return re(oe({emoji_hash:e.emojiHash,file_upload_size_limit:e.uploadSizeLimit/1048576,application_attributes:e.applicationAttributes,premium_feature_list:e.premiumFeatureList,use_reaction:e.useReaction,allow_sdk_log_ingestion:e.allowSdkStatsUpload,uikit_config:e.uikitConfigInfo?Cr.payloadify(e.uikitConfigInfo):null,notifications:e.notificationInfo?Nr.payloadify(e.notificationInfo):null,message_template:e.messageTemplateInfo?Or.payloadify(e.messageTemplateInfo):null}))},e}(),Dr=function(){function e(e){this._iid="",this._iid=e}return e.payloadify=function(e){return{}},e}(),Lr=function(e){function n(t){var n=t.userId,i=t.metadata,r=e.call(this)||this;return r.method=se.POST,r.path="".concat(ce,"/").concat(n,"/metadata"),r.params={metadata:i},r}return t(n,e),n}(Ie),xr=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i.metaData=n,i}return t(n,e),n}(Re),Ur=function(e){function n(t){var n=t.userId,i=t.metadata,r=t.upsert,o=e.call(this)||this;return o.method=se.PUT,o.path="".concat(ce,"/").concat(n,"/metadata"),o.params={metadata:i,upsert:r},o}return t(n,e),n}(Ie),Pr=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i.metadata=n,i}return t(n,e),n}(Re),Mr=function(e){function n(t){var n=t.userId,i=t.metadataKey,r=e.call(this)||this;return r.method=se.DELETE,r.path="".concat(ce,"/").concat(n,"/metadata/").concat(i),r}return t(n,e),n}(Ie);!function(e){t((function n(){return null!==e&&e.apply(this,arguments)||this}),e)}(Re);var Fr=function(e){function n(t){var n=t.userId,i=e.call(this)||this;return i.method=se.DELETE,i.path="".concat(ce,"/").concat(n,"/metadata"),i}return t(n,e),n}(Ie);!function(e){t((function n(){return null!==e&&e.apply(this,arguments)||this}),e)}(Re);var zr,Vr=function(e,t){var n=JSON.parse(JSON.stringify(e));return n._iid&&delete n._iid,t&&t(n),n},Hr=function(e,t){var n=JSON.parse(JSON.stringify(e));return t&&t(n),n},Gr=function(e){return{do:function(t){e||t()},throw:function(t){if(!e)throw t}}};!function(e){e.ONLINE="online",e.OFFLINE="offline",e.NON_AVAILABLE="nonavailable"}(zr||(zr={}));var qr,jr=function(e){function i(t,n){var i,r,o,s,u,l,d,h,_,f,p,E,v=this;return(v=e.call(this,t)||this).userId=null!==(r=null!==(i=n.guest_id)&&void 0!==i?i:n.user_id)&&void 0!==r?r:"",v.nickname=null!==(s=null!==(o=n.nickname)&&void 0!==o?o:n.name)&&void 0!==s?s:"",v.plainProfileUrl=null!==(l=null!==(u=n.profile_url)&&void 0!==u?u:n.image)&&void 0!==l?l:"",v.requireAuth=null!==(d=n.require_auth_for_profile_image)&&void 0!==d&&d,v.metaData=null!==(h=n.metadata)&&void 0!==h?h:{},v.connectionStatus=zr.NON_AVAILABLE,T(zr,n.is_online)?v.connectionStatus=n.is_online:w("boolean",n.is_online)&&(v.connectionStatus=n.is_online?zr.ONLINE:zr.OFFLINE),v.isActive=null===(_=n.is_active)||void 0===_||_,v.lastSeenAt=null!==(f=n.last_seen_at)&&void 0!==f?f:null,v.preferredLanguages=n.preferred_languages?c([],a(n.preferred_languages),!1):null,v.friendDiscoveryKey=null!==(p=n.friend_discovery_key)&&void 0!==p?p:null,v.friendName=null!==(E=n.friend_name)&&void 0!==E?E:null,v}return t(i,e),i.payloadify=function(t){return re(oe(n(n({},e.payloadify.call(this,t)),{user_id:t.userId,nickname:t.nickname,profile_url:t.plainProfileUrl,require_auth_for_profile_image:t.requireAuth,metadata:t.metaData,is_online:t.connectionStatus,is_active:t.isActive,last_seen_at:t.lastSeenAt,preferred_languages:t.preferredLanguages,friend_discovery_key:t.friendDiscoveryKey,friend_name:t.friendName})))},Object.defineProperty(i.prototype,"profileUrl",{get:function(){var e=Lo.of(this._iid).sessionManager;return this.requireAuth&&e.ekey?"".concat(this.plainProfileUrl,"?auth=").concat(e.ekey):this.plainProfileUrl},enumerable:!1,configurable:!0}),i.prototype.serialize=function(){return Vr(this)},i.prototype._isValidMetaData=function(e){return!Array.isArray(e)&&Object.keys(e).length>0&&Object.keys(e).map((function(t){return e[t]})).every((function(e){return w("string",e)}))},i.prototype._applyMetaData=function(e,t){var n=this;void 0===t&&(t=!1),Object.keys(e).forEach((function(i){t?delete n.metaData[i]:n.metaData[i]=e[i]}))},i.prototype.createMetaData=function(e){return r(this,void 0,void 0,(function(){var t,n,i,r,s,a;return o(this,(function(o){switch(o.label){case 0:return Gr(this._isValidMetaData(e)).throw(g.invalidParameters),t=Lo.of(this._iid),n=t.sdkState,i=t.requestQueue,r=new Lr({userId:n.userId,metadata:e}),[4,i.send(r)];case 1:return s=o.sent(),a=s.as(xr).metaData,this._applyMetaData(a),[2,this.metaData]}}))}))},i.prototype.updateMetaData=function(e,t){return void 0===t&&(t=!1),r(this,void 0,void 0,(function(){var n,i,r,s,a,c;return o(this,(function(o){switch(o.label){case 0:return Gr(this._isValidMetaData(e)).throw(g.invalidParameters),n=Lo.of(this._iid),i=n.sdkState,r=n.requestQueue,s=new Ur({userId:i.userId,metadata:e,upsert:t}),[4,r.send(s)];case 1:return a=o.sent(),c=a.as(Pr).metadata,this._applyMetaData(c),[2,this.metaData]}}))}))},i.prototype.deleteMetaData=function(e){return r(this,void 0,void 0,(function(){var t,n,i,r,s;return o(this,(function(o){switch(o.label){case 0:return Gr(w("string",e)).throw(g.invalidParameters),t=Lo.of(this._iid),n=t.sdkState,i=t.requestQueue,r=new Mr({userId:n.userId,metadataKey:e}),[4,i.send(r)];case 1:return o.sent(),this._applyMetaData(((s={})[e]=!0,s),!0),[2,this.metaData]}}))}))},i.prototype.deleteAllMetaData=function(){return r(this,void 0,void 0,(function(){var e,t,n,i;return o(this,(function(r){switch(r.label){case 0:return e=Lo.of(this._iid),t=e.sdkState,n=e.requestQueue,i=new Fr({userId:t.userId}),[4,n.send(i)];case 1:return r.sent(),this.metaData={},[2]}}))}))},i}(Dr),Kr=function(e){function n(t){var n=t.userProfile,i=e.call(this)||this;return i.userProfile=n,i}return t(n,e),n}(ie),Br=function(){function e(e,t){var n,i,r,o,s,a,c,u,l,d,h,_,f,p;this._iid=e,this.appInfo=new Rr(t),this.user=new jr(e,t),this.connectedAt=null!==(n=t.login_ts)&&void 0!==n?n:0,this.firstConnectedAt=0,this.pingInterval=null!==(i=t.ping_interval)&&void 0!==i?i:15e3,this.pongTimeout=null!==(r=t.pong_timeout)&&void 0!==r?r:5e3,this.reconnectInterval=null!==(s=null===(o=t.reconnect)||void 0===o?void 0:o.interval)&&void 0!==s?s:3e3,this.reconnectMaxInterval=null!==(c=null===(a=t.reconnect)||void 0===a?void 0:a.max_interval)&&void 0!==c?c:6e4,this.reconnectRetryCount=null!==(l=null===(u=t.reconnect)||void 0===u?void 0:u.retry_cnt)&&void 0!==l?l:5,this.reconnectIntervalMultiple=null!==(h=null===(d=t.reconnect)||void 0===d?void 0:d.mul)&&void 0!==h?h:2,this.maxUnreadCountOnSuperGroup=null!==(_=t.max_unread_cnt_on_super_group)&&void 0!==_?_:100,this.profileImageEncryption=!!t.profile_image_encryption,this.concurrentCallLimit=null!==(f=t.concurrent_call_limit)&&void 0!==f?f:5,this.backOffDelay=null!==(p=t.back_off_delay)&&void 0!==p?p:100}return e.payloadify=function(e){return re(oe(n(n(n({},jr.payloadify(e.user)),Rr.payloadify(e.appInfo)),{login_ts:e.connectedAt,ping_interval:e.pingInterval,pong_timeout:e.pongTimeout,reconnect:{interval:e.reconnectInterval,max_interval:e.reconnectMaxInterval,retry_cnt:e.reconnectRetryCount,mul:e.reconnectIntervalMultiple},max_unread_cnt_on_super_group:e.maxUnreadCountOnSuperGroup,profile_image_encryption:e.profileImageEncryption,concurrent_call_limit:e.concurrentCallLimit,back_off_delay:e.backOffDelay})))},e.prototype.apply=function(){var e=this.reconnectInterval,t=this.reconnectMaxInterval,n=this.reconnectIntervalMultiple,i=Lo.of(this._iid);i.sdkState.websocket&&(i.sdkState.websocket.pingInterval=1e3*this.pingInterval,i.sdkState.websocket.pongTimeout=1e3*this.pongTimeout,i.sdkState.websocket.reconnectMaxRetry=this.reconnectRetryCount,i.sdkState.websocket.reconnectRetryStrategy={calcTimeout:function(i){return i>0?1e3*Math.min(e*Math.pow(n,i-1),t):10}}),i.appInfo=this.appInfo,i.sessionManager.currentUser=this.user,i.connectedAt=this.connectedAt,this.firstConnectedAt||(i.firstConnectedAt=this.connectedAt),i.maxSuperGroupChannelUnreadCount=this.maxUnreadCountOnSuperGroup,i.concurrentCallLimit=this.concurrentCallLimit,i.backOffDelay=this.backOffDelay,i.dispatcher.dispatch(new Kr({userProfile:this}))},e}(),Wr=function(e){function i(t){var i=t.request,r=void 0===i||i,o=t.features,s=void 0===o?{}:o,a=t.options,c=void 0===a?{}:a,u=e.call(this)||this;return u.request=r,u.features=n({localCache:!0,notification:!0},s),u.options=n({ingestion:!0},c),u}return t(i,e),i}(ie),Qr=function(e){function i(t,n,i){var r,o,s,a,c=this;return(c=e.call(this,t,n,i)||this).error=null,c.services=[],c.userProfile=new Br(t,i),c.deviceTokenLastDeletedAt=null!==(r=i.device_token_last_deleted_at)&&void 0!==r?r:0,c.key=null!==(o=i.key)&&void 0!==o?o:"",c.ekey=null!==(s=i.ekey)&&void 0!==s?s:"",c.error=i.error?new g(i):null,c.services=null!==(a=i.services)&&void 0!==a?a:[],c}return t(i,e),i.asError=function(e){return new i("","LOGI",n({user_id:"",error:!0},e))},i.prototype.applyTo=function(e){return r(this,void 0,void 0,(function(){var t,n,i;return o(this,(function(r){switch(r.label){case 0:return this.error?[3,4]:(t=Lo.of(e))?(n=t.sessionManager,i=t.dispatcher,[4,n.login(this)]):[3,2];case 1:return r.sent(),this.userProfile.apply(),i.dispatch(new Wr({request:this.userProfile.appInfo.applicationAttributes.includes("allow_sdk_request_log_publish"),features:{localCache:this.userProfile.appInfo.applicationAttributes.includes("allow_sdk_feature_local_cache_log_publish"),notification:this.userProfile.appInfo.applicationAttributes.includes("allow_sdk_noti_stats_log_publish")},options:{ingestion:this.userProfile.appInfo.allowSdkStatsUpload}})),[3,3];case 2:throw g.lostInstance;case 3:return[3,5];case 4:throw this.error;case 5:return[2]}}))}))},i}(xe),Zr=function(){function e(){this.type=vr.NONE,this.name="none"}return e.prototype.run=function(e){return r(this,void 0,void 0,(function(){return o(this,(function(e){return[2]}))}))},e.prototype.onConnect=function(e,t){return r(this,void 0,void 0,(function(){return o(this,(function(e){return[2]}))}))},e.prototype.onReconnect=function(e,t){return t.resetReconnectCount,r(this,void 0,void 0,(function(){return o(this,(function(e){return[2]}))}))},e.prototype.onDisconnect=function(e,t){return t.error,t.autoReconnect,t.cause,r(this,void 0,void 0,(function(){return o(this,(function(e){return[2]}))}))},e.prototype.onDisconnectWebSocket=function(e,t){return r(this,void 0,void 0,(function(){return o(this,(function(e){return[2]}))}))},e.prototype.onLogout=function(e){return r(this,void 0,void 0,(function(){return o(this,(function(e){return[2]}))}))},e}(),Yr=function(e){return r(void 0,void 0,void 0,(function(){var t;return o(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e()];case 1:return n.sent(),[3,3];case 2:if(!((t=n.sent())instanceof g))throw t;return t.throwOutside(),[3,3];case 3:return[2]}}))}))},Xr=function(e){return r(void 0,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,e()];case 1:case 2:return t.sent(),[3,3];case 3:return[2]}}))}))},Jr=function(e){function n(t){void 0===t&&(t={});var n,i=this;return(i=e.call(this)||this).type=vr.LOGOUT,i.name="logout",i._wasPreviouslyConnected=null===(n=t.wasPreviouslyConnected)||void 0===n||n,i}return t(n,e),n.prototype.run=function(e){return r(this,void 0,void 0,(function(){var t,n,i=this;return o(this,(function(s){switch(s.label){case 0:return t=Date.now(),n=e.sdkState.userId,[4,e.logout()];case 1:return s.sent(),[4,e.changeState(new lo,t)];case 2:return s.sent(),this._wasPreviouslyConnected&&Yr((function(){return r(i,void 0,void 0,(function(){return o(this,(function(t){return e.connectionHandlers.forEach((function(e){e.onDisconnected&&e.onDisconnected(n)})),[2]}))}))})),[2]}}))}))},n}(Zr),$r=function(e){function n(){var t=e.call(this)||this;return t.type=vr.EXTERNAL_DISCONNECTED,t.name="externaldisconnected",t}return t(n,e),n.prototype.run=function(e){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,e.disconnect()];case 1:return t.sent(),[2]}}))}))},n.prototype.onConnect=function(e,t){return r(this,void 0,void 0,(function(){var n;return o(this,(function(i){switch(i.label){case 0:return n=Date.now(),[4,e.disconnect()];case 1:return i.sent(),[4,e.changeState(new ao({authToken:t}),n)];case 2:return i.sent(),[2]}}))}))},n.prototype.onReconnect=function(e){return r(this,void 0,void 0,(function(){var t;return o(this,(function(n){switch(n.label){case 0:return t=Date.now(),[4,e.changeState(new ro,t)];case 1:return n.sent(),[2]}}))}))},n.prototype.onLogout=function(e){return r(this,void 0,void 0,(function(){var t;return o(this,(function(n){switch(n.label){case 0:return t=Date.now(),[4,e.changeState(new Jr,t)];case 1:return n.sent(),[2]}}))}))},n}(Zr),eo=function(e){function n(t){var n=t.autoReconnect,i=e.call(this)||this;return i.type=vr.INTERNAL_DISCONNECTED,i.name="internaldisconnected",i._autoReconnect=!1,i._autoReconnect=n,i}return t(n,e),n.prototype.run=function(e){return r(this,void 0,void 0,(function(){var t;return o(this,(function(n){switch(n.label){case 0:return t=Date.now(),[4,e.disconnect()];case 1:return n.sent(),this._autoReconnect?[4,e.changeState(new ro,t)]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}}))}))},n.prototype.onConnect=function(e,t){return r(this,void 0,void 0,(function(){var n;return o(this,(function(i){switch(i.label){case 0:return n=Date.now(),[4,e.disconnect()];case 1:return i.sent(),[4,e.changeState(new ao({authToken:t}),n)];case 2:return i.sent(),[2]}}))}))},n.prototype.onReconnect=function(e){return r(this,void 0,void 0,(function(){var t;return o(this,(function(n){switch(n.label){case 0:return t=Date.now(),[4,e.changeState(new ro,t)];case 1:return n.sent(),[2]}}))}))},n.prototype.onDisconnectWebSocket=function(e){return r(this,void 0,void 0,(function(){var t;return o(this,(function(n){switch(n.label){case 0:return t=Date.now(),[4,e.changeState(new $r,t)];case 1:return n.sent(),[2]}}))}))},n.prototype.onLogout=function(e){return r(this,void 0,void 0,(function(){var t;return o(this,(function(n){switch(n.label){case 0:return t=Date.now(),[4,e.changeState(new Jr,t)];case 1:return n.sent(),[2]}}))}))},n}(Zr),to=function(e){return r(void 0,void 0,void 0,(function(){return o(this,(function(t){return[2,new Promise((function(t){return setTimeout(t,e)}))]}))}))},no=function(){function e(){}return e.prototype.calcTimeout=function(){return 0},e}(),io=function(e,t,n){return void 0===n&&(n=new no),r(void 0,void 0,void 0,(function(){var i,r,s,a,c,u;return o(this,(function(o){switch(o.label){case 0:i=0,r=null,s=function(e){return r=null!=e?e:new Error("Halted")},a=function(){i=0},o.label=1;case 1:if(!(-1===t||i=this._stateUpdatedAt?(this._currentState=e,this._stateUpdatedAt=t,this._dispatcher.dispatch(new yr({stateType:e.type})),this._logger.debug("connection state changes to ".concat(e.name)),[4,this._currentState.run(this)]):[3,2];case 1:return n.sent(),[2,!0];case 2:return[2,!1]}}))}))},n.prototype._tryResolveConnectionRequest=function(){var e;return r(this,void 0,void 0,(function(){var t;return o(this,(function(n){switch(n.label){case 0:return t=this._unresolvedLogi,this._websocketClient.isOpen&&t?(this._unresolvedLogi=void 0,t.error?[3,2]:[4,t.applyTo(this._iid)]):[3,3];case 1:return n.sent(),this._statLogConnection(),null===(e=this._pinger)||void 0===e||e.start(),this._connectionRequestQueue.forEach((function(e){return e.resolve()})),this._connectionRequestQueue=[],this.sdkState.appState="foreground",[3,3];case 2:this._sessionManager.session.authToken=void 0,(t.error.isSessionExpiredError||t.error.isSessionInvalidatedError)&&this._dispatcher.dispatch(new Le({reason:t.error.code})),this._rejectConnectionRequest(t.error),n.label=3;case 3:return[2]}}))}))},n.prototype._rejectConnectionRequest=function(e){var t;if(null===(t=this._pinger)||void 0===t||t.stop(),this.clearLoginTimer(),this._connectionRequestQueue.length>0){var n=this._connectionRequestQueue;this._connectionRequestQueue=[],n.forEach((function(t){return t.reject(e)})),this._statLogConnection(e)}},n.prototype._url=function(){var e,t=this.sdkState,n=t.appId,i=t.appVersion,r=t.userId,o=t.extensions,s=t.sendbirdRuntimeEnvironment,a=this.cacheContext.localCacheEnabled,c=this._sessionManager.session,u=null===(e=this.sdkState.websocket)||void 0===e?void 0:e.compression,l=!!(null!=o?o:{}).sb_uikit,h=Ze.userAgentWithExtension(o);return"".concat(this.sdkState.websocket.host,"/?p=JS&pv=").concat(encodeURIComponent(d.OS_VERSION),"&sv=").concat(encodeURIComponent(d.SDK_VERSION),"&ai=").concat(n).concat(i?"&av=".concat(i):"").concat(c.hasSession?"":"&user_id=".concat(encodeURIComponent(r)),"&pmce=").concat(u?1:0,"&active=1&device_token_types=").concat(encodeURIComponent(["gcm","huawei","apns"].join(",")),"&SB-User-Agent=").concat(h,"&SB-SDK-User-Agent=").concat(encodeURIComponent(Ze.sendbirdSdkUserAgentWithExtension(s)),"&Request-Sent-Timestamp=").concat(Date.now().toString(),"&include_extra_data=").concat(encodeURIComponent(String(fo))).concat(this._sessionManager.handler?"&expiring_session=1":"","&use_local_cache=").concat(a?1:0,"&include_poll_details=1").concat(l?"&uikit_config=1":"")},n.prototype._statLogConnection=function(e){var t;this._dispatcher.dispatch(new Ve(new Ke({type:ke.WEBSOCKET_CONNECT,data:{host_url:null===(t=this.sdkState.websocket)||void 0===t?void 0:t.host,success:!e,latency:Date.now()-this._connectingAt,error_code:null==e?void 0:e.code,error_description:null==e?void 0:e.message}})))},n.prototype.connect=function(e){var t;return void 0===e&&(e=""),r(this,void 0,void 0,(function(){var n,i,r,s=this;return o(this,(function(o){return this._logiProcessingTimer&&(clearTimeout(this._logiProcessingTimer),this._logiProcessingTimer=void 0,this._rejectConnectionRequest(g.connectionCanceled)),n=this._url(),i=new Ye,this._connectionRequestQueue.push(i),1===this._connectionRequestQueue.length&&(this._connectingAt=Date.now(),this._loginTimer=setTimeout((function(){s._loginTimer=void 0,s._rejectConnectionRequest(g.loginTimeout)}),null===(t=this.sdkState.websocket)||void 0===t?void 0:t.responseTimeout),r=this._sessionManager.session,e&&(r.authToken=e),this._websocketClient.connect(n,JSON.stringify(r.hasSession?{auth:r.sessionKey}:{token:e}))),[2,i.promise]}))}))},n.prototype.cancelConnectForRetry=function(){this._dispatcher.dispatch(Qr.asError(g.connectionRenew))},n.prototype.disconnect=function(){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this._websocketClient.disconnect()];case 1:return e.sent(),[2]}}))}))},n.prototype.logout=function(){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return this.sdkState.userId=void 0,this._unresolvedLogi=void 0,[4,this.disconnect()];case 1:return e.sent(),[4,this._sessionManager.clear()];case 2:return e.sent(),[2]}}))}))},n.prototype.clearLoginTimer=function(){this._loginTimer&&(clearTimeout(this._loginTimer),this._loginTimer=void 0)},n}(te),Eo=function(e){function n(t){var n=t.appId,i=t.userId,r=t.services,o=t.includeUIKitConfig,s=void 0!==o&&o,a=t.localCacheEnabled,c=void 0===a||a,u=t.expiringSession,l=void 0===u||u,d=e.call(this)||this;return d.path="".concat(ce,"/").concat(i,"/login"),d.method=se.POST,d.params=re({expiring_session:!!l,services:r,include_logi:!0,include_extra_data:String(fo),uikit_config:s,use_local_cache:c,app_id:n}),d.requireAuth=!1,d}return t(n,e),n}(Ie),vo=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i.logi=new Qr(t,"LOGI",n),i}return t(n,e),n}(Re);!function(e){e[e.ALL=0]="ALL",e[e.WEBSOCKET=1]="WEBSOCKET",e[e.API=2]="API"}(uo||(uo={}));var go,bo=[Pe,Eo],mo=function(){function e(e,t){var n=t.session,i=t.sdkState,r=t.dispatcher,o=t.logger,a=t.useFetchCompat,c=void 0!==a&&a,u=this;this._currentConnectionStateType=vr.INITIALIZED,this._lazyCallQueue=[],this.commandRouter=new mr(e,{session:n,sdkState:i,dispatcher:r,logger:o,useFetchCompat:c}),this._session=n,this._logger=o,this._dispatcher=r,this._dispatcher.on((function(e){var t,n,i,r;if(e instanceof yr){var o=e.stateType;switch(u._currentConnectionStateType=o,o){case vr.CONNECTED:u._resolveLazyCallQueue();break;case vr.INITIALIZED:case vr.INTERNAL_DISCONNECTED:case vr.EXTERNAL_DISCONNECTED:case vr.LOGOUT:u._rejectLazyCallQueue((null===(i=u._session)||void 0===i?void 0:i.hasSession)?g.connectionClosed:g.connectionRequired)}}else if(e instanceof wr)(null===(r=u._session.services)||void 0===r?void 0:r.includes(P.CHAT))||u._resolveLazyCallQueue(uo.API);else if(e instanceof Tr||e instanceof Sr)u._rejectLazyCallQueue(g.connectionClosed);else if(e instanceof He){var a=e.request,c=e.deferred,l=e.error;try{for(var d=s(bo),h=d.next();!h.done;h=d.next())if(a instanceof h.value)return void c.reject(l)}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=d.return)&&n.call(d)}finally{if(t)throw t.error}}u._lazyCallQueue.push({command:a,deferred:c})}}))}return Object.defineProperty(e.prototype,"isReady",{get:function(){return this._currentConnectionStateType===vr.CONNECTED},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLazyCallActivated",{get:function(){return this._currentConnectionStateType===vr.CONNECTING||this._currentConnectionStateType===vr.RECONNECTING||this._session.isRefreshing},enumerable:!1,configurable:!0}),e.prototype._classifyLazyCallQueueByScope=function(e){var t,n=[],i=[];switch(e){case uo.ALL:t=null;break;case uo.WEBSOCKET:t=Ue;break;case uo.API:t=Ie}var r=!1;return this._lazyCallQueue.forEach((function(e){!t||e.command instanceof t||(r=!0),r?i.push(e):n.push(e)})),[n,i]},e.prototype._resolveLazyCallQueue=function(e){var t=this;void 0===e&&(e=uo.ALL);var n=a(this._classifyLazyCallQueueByScope(e),2),i=n[0],s=n[1];this._lazyCallQueue=s,i.forEach((function(e){return r(t,void 0,void 0,(function(){var t,n,i,r,s;return o(this,(function(o){switch(o.label){case 0:t=e.command,n=e.deferred,(i=e.timeout)&&clearTimeout(i),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.send(t)];case 2:return r=o.sent(),n.resolve(r),[3,4];case 3:return s=o.sent(),n.reject(s),[3,4];case 4:return[2]}}))}))}))},e.prototype._rejectLazyCallQueue=function(e,t){var n=this;void 0===t&&(t=uo.ALL);var i=a(this._classifyLazyCallQueueByScope(t),2),s=i[0],c=i[1];this._lazyCallQueue=c,s.forEach((function(t){return r(n,void 0,void 0,(function(){var n,i;return o(this,(function(r){return n=t.deferred,i=t.timeout,clearTimeout(i),n.reject(e),[2]}))}))}))},e.prototype.send=function(e){return r(this,void 0,void 0,(function(){var t,n,i=this;return o(this,(function(r){switch(r.label){case 0:return e instanceof Ue?this.isReady?(this._logger.debug("send websocket request",e),[4,this.commandRouter.send(e)]):[3,2]:[3,4];case 1:case 5:return[2,r.sent()];case 2:if(this.isLazyCallActivated)return this._logger.debug("wait websocket request",e),t=new Ye,this._lazyCallQueue.push({command:e,deferred:t,timeout:setTimeout((function(){return i.timeout(e.requestId)}),1e4)}),[2,t.promise];throw this._logger.debug("fail websocket request"),g.connectionRequired;case 3:case 7:return[3,9];case 4:return e instanceof Ie?this._session.hasSession?(this._logger.debug("send api request",e),[4,this.commandRouter.send(e)]):[3,6]:[3,8];case 6:if(this.isLazyCallActivated)return this._logger.debug("wait api request",e),t=new Ye,this._lazyCallQueue.push({command:e,deferred:t,timeout:setTimeout((function(){return i.timeout(e.requestId)}),1e4)}),[2,t.promise];throw n=g.connectionRequired,this._logger.debug("fail api request",n),n;case 8:throw g.invalidCommand;case 9:return[2]}}))}))},e.prototype.forceSend=function(e){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return this._logger.debug("send forced request",e),e instanceof Ue||e instanceof Ie?[4,this.commandRouter.send(e)]:[3,2];case 1:return[2,t.sent()];case 2:throw g.invalidCommand}}))}))},e.prototype.timeout=function(e){this._logger.debug("timeout request",e);var t=this._lazyCallQueue.findIndex((function(t){return t.command.requestId===e}));t>-1&&(this._lazyCallQueue[t].deferred.reject(g.connectionRequired),this._lazyCallQueue.splice(t,1))},e.prototype.cancel=function(e){this._logger.debug("cancel api request",e),this.commandRouter.cancel(e)},e.prototype.cancelAll=function(){this._logger.debug("cancel all api requests"),this.commandRouter.cancelAll()},e}(),yo="sendbird@devicetokens",wo=function(){function e(e){var t=e.type,n=e.token;this.type=t,this.token=n}return e.payloadify=function(e){return re(oe({type:e.type,token:e.token}))},e}(),To=new WeakMap,So=function(e){function n(t){var n=t._iid,i=t.session,r=t.cacheContext,o=t.sdkState,s=t.dispatcher,a=t.requestQueue,c=t.logger,u=e.call(this)||this;return u._currentConnectionStateType=vr.INITIALIZED,u._isRefreshingAuthToken=!1,u.currentUser=null,u.session=i,u._iid=n,u._cacheContext=r,u._sdkState=o,u._dispatcher=s,u._requestQueue=a,u._logger=c,u._deviceTokens=[],u._dispatcher.on((function(e){var t,n;if(e instanceof yr){var i=e.stateType;u._currentConnectionStateType=i}else e instanceof Le&&u.handler&&!u.isSessionKeyRefreshing&&(e.invalidateSessionToken&&(u.session.authToken=void 0),(null===(t=e.error)||void 0===t?void 0:t.isSessionInvalidatedError)?u.handler.onSessionClosed&&u.handler.onSessionClosed():(null===(n=e.error)||void 0===n?void 0:n.isSessionExpiredError)&&(u._logger.debug("session expired"),u.handler.onSessionExpired&&u.handler.onSessionExpired(),u.refresh().catch((function(e){if(v(e)&&"foreground"===u._sdkState.appState)throw e}))))})),u}return t(n,e),Object.defineProperty(n.prototype,"ekey",{get:function(){return To.get(this)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"deviceTokens",{get:function(){return this._deviceTokens},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"deviceTokenLastDeletedAt",{get:function(){return this._deviceTokenLastDeletedAt},enumerable:!1,configurable:!0}),n.prototype.indexOfDeviceToken=function(e,t){return this._deviceTokens.findIndex((function(n){return n.type===e&&n.token===t}))},n.prototype.hasDeviceToken=function(e,t){return this.indexOfDeviceToken(e,t)>=0},n.prototype.createRefreshWebsocketCommand=function(e,t){return new Me({authToken:e,expiringSession:!0,requestId:t})},n.prototype._refreshSessionKeyByWebSocket=function(e){return r(this,void 0,void 0,(function(){var t,n,i,r,s;return o(this,(function(o){switch(o.label){case 0:return t=this.createRefreshWebsocketCommand(e),[4,this._requestQueue.forceSend(t)];case 1:if(n=o.sent(),i=n.as(ze),r=i.newKey,s=i.error)throw s;return this.session.sessionKey=null!=r?r:this.session.sessionKey,[2]}}))}))},n.prototype._refreshSessionKeyByApi=function(e){return r(this,void 0,void 0,(function(){var t,n=this;return o(this,(function(i){switch(i.label){case 0:return t=new Pe({userId:this._sdkState.userId,authToken:e,services:this.session.services&&this.session.services.length>0?this.session.services:void 0,expiringSession:!0}),[4,io((function(e){return r(n,void 0,void 0,(function(){var n,i,r,s,a;return o(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this._requestQueue.forceSend(t)];case 1:return n=o.sent(),i=n.as(Fe),r=i.key,s=i.services,this.session.sessionKey=r,this.session.services=s,[3,3];case 2:if(a=o.sent(),!this._isSessionRelatedError(a))throw a;return e(a),[3,3];case 3:return[2]}}))}))}),3)];case 1:return i.sent(),[2]}}))}))},n.prototype._refreshSessionKey=function(e,t){return void 0===t&&(t=!0),r(this,void 0,void 0,(function(){var n,i;return o(this,(function(r){switch(r.label){case 0:if(this._currentConnectionStateType!==vr.CONNECTED)return[3,8];r.label=1;case 1:return r.trys.push([1,3,,8]),[4,this._refreshSessionKeyByWebSocket(e)];case 2:return r.sent(),this.complete(),[2];case 3:n=r.sent(),r.label=4;case 4:return r.trys.push([4,6,,7]),[4,this._handleSessionRefreshError(n,t)];case 5:return r.sent(),[2];case 6:return r.sent(),[3,7];case 7:return[3,8];case 8:return r.trys.push([8,10,,12]),[4,this._refreshSessionKeyByApi(e)];case 9:return r.sent(),this.complete(),[3,12];case 10:return i=r.sent(),[4,this._handleSessionRefreshError(i,t)];case 11:return r.sent(),[3,12];case 12:return[2]}}))}))},n.prototype._receiveNewAuthToken=function(){var e,t=this,n=new Ye;if(this._isRefreshingAuthToken=!0,this.session.sessionKey=void 0,this.session.authToken=void 0,null===(e=this.handler)||void 0===e?void 0:e.onSessionTokenRequired){var i=null,s=function(){i&&(clearTimeout(i),i=null)},a=function(e){s(),t._isRefreshingAuthToken&&(t._isRefreshingAuthToken=!1,n.resolve(e))},c=function(e){s(),t._isRefreshingAuthToken&&(t._isRefreshingAuthToken=!1,n.reject(e))};i=setTimeout((function(){return c()}),1e3*this._sdkState.sessionTokenRefreshTimeout),Yr((function(){return r(t,void 0,void 0,(function(){var e;return o(this,(function(t){return(null===(e=this.handler)||void 0===e?void 0:e.onSessionTokenRequired)&&this.handler.onSessionTokenRequired(a,c),[2]}))}))}))}else n.resolve(null);return n.promise},n.prototype._handleSessionRefreshError=function(e,t){return void 0===t&&(t=!1),r(this,void 0,void 0,(function(){var n;return o(this,(function(i){switch(i.label){case 0:return e instanceof g&&(e.isSessionTokenExpiredError||e.code===u.APPLICATION_NOT_FOUND)?(this.session.authToken=void 0,t?[4,this._receiveNewAuthToken()]:[3,6]):[3,6];case 1:return(n=i.sent())?(this.session.authToken=n,[4,this._refreshSessionKey(this.session.authToken,!1)]):[3,3];case 2:return i.sent(),this.complete(),[3,5];case 3:return[4,this.clear()];case 4:i.sent(),i.label=5;case 5:return[2];case 6:throw e}}))}))},n.prototype._isSessionRelatedError=function(e){return e instanceof g&&(e.isSessionExpiredError||e.isSessionInvalidatedError)},Object.defineProperty(n.prototype,"isSessionKeyRefreshing",{get:function(){return this.session.isRefreshing},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isRefreshingAuthToken",{get:function(){return this._isRefreshingAuthToken},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isSessionExpiring",{get:function(){return!!this.handler},enumerable:!1,configurable:!0}),n.prototype.authenticateFeed=function(e,t){var n;return r(this,void 0,void 0,(function(){var i,r,s;return o(this,(function(o){switch(o.label){case 0:return this.session.authToken=t,i=new Eo({appId:this._sdkState.appId,userId:e,services:[P.FEED],includeUIKitConfig:!!(null!==(n=this._sdkState.extensions)&&void 0!==n?n:{}).sb_uikit,localCacheEnabled:this._cacheContext.localCacheEnabled,expiringSession:!t||this.isSessionExpiring}),[4,this._requestQueue.commandRouter.send(i)];case 1:return r=o.sent(),(s=r.as(vo).logi).error?[3,3]:[4,s.applyTo(this._iid)];case 2:return o.sent(),[3,4];case 3:throw s.error;case 4:return[2]}}))}))},n.prototype.login=function(e){var t;return r(this,void 0,void 0,(function(){var n,i,r,s,a,c,u,l;return o(this,(function(o){switch(o.label){case 0:return n=e.key,i=e.ekey,r=e.services,s=e.userProfile,a=e.deviceTokenLastDeletedAt,c=void 0===a?0:a,this.session.sessionKey=n,this.session.services=r,To.set(this,i),this._deviceTokenCacheEnabled=null===(t=null==s?void 0:s.appInfo)||void 0===t?void 0:t.deviceTokenCache,u=this._cacheContext.preference,this._deviceTokenCacheEnabled?[4,u.get(yo)]:[3,5];case 1:return!(l=o.sent())||l.lastDeletedAt=this.limit||Date.now()-this.lastFlushedAt>=108e5&&this.queue.length>=this.minLimit},enumerable:!1,configurable:!0}),i.prototype._arrangeStat=function(){var e=c([],a(this.queue),!1);this._collectRequestStat||(e=e.filter((function(e){return e.type!==ke.API_RESULT&&e.type!==ke.WEBSOCKET_CONNECT}))),this._collectFeatureLocalCacheStat||(e=e.filter((function(e){return e.type!==ke.FEATURE_LOCALCACHE&&e.type!==ke.FEATURE_LOCALCACHE_EVENT}))),this._collectionNotificationStat||(e=e.filter((function(e){return e.type!==ke.NOTIFICATION}))),this.queue=e},i.prototype._save=function(){return r(this,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return this.isEnabled?(e=c(c([],a(this.queue),!1),a(this.flushWaitQueue),!1),[4,this.cacheContext.preference.set(this.key,{deviceId:this.deviceId,statLogs:e.map((function(e){return Ke.payloadify(e)})),generation:this.generation++,lastFlushedAt:this.lastFlushedAt})]):[3,2];case 1:t.sent(),this.dispatch("save",e),t.label=2;case 2:return[2]}}))}))},i.prototype._flush=function(){return r(this,void 0,void 0,(function(){var e,t,n,i,r;return o(this,(function(o){switch(o.label){case 0:if(!this.isEnabled)return[3,10];if(this.isFlushing)return[3,10];this.isFlushing=!0,o.label=1;case 1:return o.trys.push([1,5,9,10]),this._arrangeStat(),e=this.queue.filter((function(e){if(e instanceof No){var t=new Date,n=a([e.date.getFullYear(),t.getFullYear()],2),i=n[0],r=n[1];if(i0?(i=new Ao({deviceId:this.deviceId,statLogs:n}),[4,this.requestQueue.send(i)]):[3,4];case 2:return o.sent(),this.dispatch("flush",n),this.queue=c(c([],a(e),!1),a(t),!1).slice(n.length).concat(this.flushWaitQueue),this.flushWaitQueue=[],this.limit=this.baseLimit,this.lastFlushedAt=Date.now(),[4,this._save()];case 3:o.sent(),o.label=4;case 4:return[3,10];case 5:return(r=o.sent())instanceof g?r.code!==u.NON_AUTHORIZED?[3,7]:[4,this.clear()]:[3,8];case 6:return o.sent(),this.enabledState=go.DISABLED,[3,8];case 7:r.code===u.STAT_UPLOAD_NOT_ALLOWED&&(this.enabledState=go.COLLECT_ONLY),o.label=8;case 8:return this.limit=this.limit+20,[3,10];case 9:return this.isFlushing=!1,[7];case 10:return[2]}}))}))},i.prototype.init=function(e){return r(this,void 0,void 0,(function(){var t,i,r=this;return o(this,(function(o){switch(o.label){case 0:return this.key=e,[4,this.cacheContext.preference.get(this.key)];case 1:return(t=o.sent())?(this.deviceId=t.deviceId,this.queue=t.statLogs.map((function(e){var t;return e.stat_type===ke.FEATURE_LOCALCACHE_EVENT&&(e.data=n({message_init_policy:"",starting_point:0},e.data)),e.stat_type===ke.NOTIFICATION&&(e.data=re(n(n({},e.data),{message_id:null!==(t=e.data.notificationId)&&void 0!==t?t:e.data.message_id,notificationId:void 0}))),new Ke({type:e.stat_type,ts:e.ts,data:e.data})})),this.generation=t.generation,this.lastFlushedAt=t.lastFlushedAt,this.isReadyToFlush?(i=Math.min(Math.floor(18e4*Math.random()),100),[4,to(i)]):[3,4]):[3,4];case 2:return o.sent(),[4,this._flush()];case 3:o.sent(),o.label=4;case 4:return this.commandEventContext||(this.commandEventContext=this.dispatcher.on((function(e){if(e instanceof Ve){var t=e.statLog;r.put(t)}else if(e instanceof Wr){var n=e.request,i=e.features,o=e.options;r._collectRequestStat=n,r._collectFeatureLocalCacheStat=null==i?void 0:i.localCache,r._collectionNotificationStat=null==i?void 0:i.notification,r._arrangeStat(),r._collectRequestStat||r._collectFeatureLocalCacheStat||r._collectionNotificationStat?r.enabledState=o.ingestion?go.ENABLED:go.COLLECT_ONLY:r.enabledState=go.DISABLED,r.isEnabled?r.isReadyToFlush&&r._flush():r.clear()}}))),[2]}}))}))},i.prototype.put=function(e){return r(this,void 0,void 0,(function(){var t,n,i;return o(this,(function(r){switch(r.label){case 0:if(this.enabledState===go.DISABLED)return[3,3];if(t=this.isFlushing?this.flushWaitQueue:this.queue,e instanceof No)this._collectFeatureLocalCacheStat&&(n=a(this.queue.filter((function(t){return t instanceof No&&t.key===e.key})),1),(i=n[0])?i.data=Co(i.data,e.data):t.push(e));else switch(e.type){case ke.API_RESULT:case ke.WEBSOCKET_CONNECT:this._collectRequestStat&&t.push(e);break;case ke.FEATURE_LOCALCACHE:case ke.FEATURE_LOCALCACHE_EVENT:this._collectFeatureLocalCacheStat&&t.push(e);break;case ke.NOTIFICATION:this._collectionNotificationStat&&t.push(e)}return[4,this._save()];case 1:return r.sent(),this.isReadyToFlush?[4,this._flush()]:[3,3];case 2:r.sent(),r.label=3;case 3:return[2]}}))}))},i.prototype.clear=function(){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return this.queue=[],this.flushWaitQueue=[],this.generation=1,[4,this._save()];case 1:return e.sent(),[2]}}))}))},i.prototype.close=function(){this.commandEventContext&&(this.commandEventContext.close(),this.commandEventContext=void 0)},i}(te);!function(e){e[e.VERBOSE=0]="VERBOSE",e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.NONE=5]="NONE"}(Oo||(Oo={}));var Io,Ro=function(){function e(){this.level=Oo.WARN}return e.prototype.verbose=function(){for(var e=[],t=0;t0})).map((function(e){return e.id}))),this.allowUserSuggestion=null!==(a=e.allow_user_suggestion)&&void 0!==a?a:this.allowUserSuggestion,this.allowMultipleVotes=null!==(c=e.allow_multiple_votes)&&void 0!==c?c:this.allowMultipleVotes},i.payloadify=function(t){return re(oe(n(n({},e.payloadify.call(this,t)),{id:t.id,title:t.title,created_at:t.createdAt,updated_at:t.updatedAt,close_at:t.closeAt,status:t.status,message_id:t.messageId,data:t.data,voter_count:t.voterCount,options:t.options.map((function(e){return Zo.payloadify(e)})),created_by:t.createdBy,allow_user_suggestion:t.allowUserSuggestion,allow_multiple_votes:t.allowMultipleVotes,voted_option_ids:t.votedPollOptionIds})))},i.prototype.applyPollUpdateEvent=function(e){var t=e._payload.poll;return!(!t||this.id!==t.id||t.updated_at-1){var o=t[i];r>=o._lastVotedAt&&(o.voteCount=e.vote_count,o._lastVotedAt=r)}})),i.req_id&&i.voted_option_ids&&(this.votedPollOptionIds=i.voted_option_ids),"number"==typeof i.voter_count&&(this.voterCount=i.voter_count),!0},i.prototype.serialize=function(){return Vr(this)},i}(Dr),Xo=function(){function e(e,t){var n;this.limit=20,this._isLoading=!1,this._hasNext=!0,this._token="",this._iid=e,this.limit=null!==(n=t.limit)&&void 0!==n?n:20}return Object.defineProperty(e.prototype,"hasNext",{get:function(){return this._hasNext},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this._isLoading},enumerable:!1,configurable:!0}),e.prototype._validate=function(){return w("number",this.limit)&&this.limit>0},e}(),Jo=function(e){function n(t,n,i,r){var o=e.call(this,t,r)||this;return o.channelUrl=n,o.channelType=i,o}return t(n,e),n.prototype._validate=function(){return e.prototype._validate.call(this)&&w("string",this.channelUrl)&&T(z,this.channelType)},n}(Xo),$o=function(e){this.pollId=0,this.messageId=0,this.pollId=e.poll_id,this.messageId=e.message_id,this._payload=e},es=function(e){function n(t){var n=t.title,i=t.optionTexts,r=t.data,o=t.allowUserSuggestion,s=t.allowMultipleVotes,a=t.closeAt,c=e.call(this)||this;return c.method=se.POST,c.path=ge,c.params={title:n,options:i,data:r,allow_user_suggestion:o,allow_multiple_votes:s,close_at:a},c}return t(n,e),n}(Ie),ts=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i.poll=new Yo(t,n),i}return t(n,e),n}(Re),ns=function(e){function n(t){var n=t.channelUrl,i=t.channelType,r=t.pollId,o=e.call(this)||this;return o.method=se.GET,o.path="".concat(ge,"/").concat(encodeURIComponent(r)),o.params={channel_url:n,channel_type:i},o}return t(n,e),n}(Ie),is=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i.poll=new Yo(t,n),i}return t(n,e),n}(Re),rs=function(e){function n(t){var n=t.channelUrl,i=t.channelType,r=t.pollId,o=t.pollOptionId,s=e.call(this)||this;return s.method=se.GET,s.path="".concat(ge,"/").concat(encodeURIComponent(r),"/options/").concat(encodeURIComponent(o)),s.params={channel_url:n,channel_type:i},s}return t(n,e),n}(Ie),os=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i.pollOption=new Zo(t,n),i}return t(n,e),n}(Re),ss=function(e){function n(t){var n=t.channelType,i=t.channelUrl,r=t.timestamp,o=t.token,s=e.call(this)||this;return s.method=se.GET,s.path="".concat(Se(n),"/").concat(encodeURIComponent(i),"/polls/changelogs"),s.params=re({change_ts:r,token:o}),s}return t(n,e),n}(Ie),as=function(e){function n(t,n){var i=e.call(this,t,n)||this;return i.updatedPolls=n.updated.map((function(e){return function(e,t){return new Yo(e,t)}(t,e)})),i.deletedPollIds=n.deleted.map((function(e){return e})),i.hasMore=n.has_more,i.nextToken=n.next,i}return t(n,e),n}(Re),cs={title:"",optionTexts:[],data:void 0,allowUserSuggestion:void 0,allowMultipleVotes:void 0,closeAt:-1},us=function(e){return w("string",e.title)&&(t=e.optionTexts,N("string",t)&&t.every((function(e){return""!==e.trim()})))&&Qo(e.data)&&w("boolean",e.allowUserSuggestion,!0)&&w("boolean",e.allowMultipleVotes,!0)&&w("number",e.closeAt,!0);var t},ls={channelUrl:"",channelType:z.BASE,pollId:0,pollOptionId:0},ds=function(e){return w("string",e.channelUrl)&&""!==e.channelUrl&&T(z,e.channelType)&&w("number",e.pollId)&&e.pollId>0&&w("number",e.pollOptionId)&&e.pollOptionId>0},hs={channelUrl:"",channelType:z.BASE,pollId:0},_s=function(e){return w("string",e.channelUrl)&&""!==e.channelUrl&&T(z,e.channelType)&&w("number",e.pollId)},fs={},ps=function(){function e(e,t){var n=t.sdkState,i=t.dispatcher,r=t.sessionManager,o=t.requestQueue,s=t.logger;this._iid=e,this._sdkState=n,this._sessionManager=r,this._requestQueue=o,this._dispatcher=i,this._logger=s,fs[e]=this}return e.of=function(e){return fs[e]},e.prototype.buildPollFromSerializedData=function(e){var t=Hr(e);return new Yo(this._iid,Yo.payloadify(t))},e.prototype.get=function(e){return r(this,void 0,void 0,(function(){var t;return o(this,(function(r){switch(r.label){case 0:return Gr(_s(e)).throw(g.invalidParameters),t=new ns(n({},e)),[4,this._requestQueue.send(t)];case 1:return[2,r.sent().as(is).poll]}}))}))},e.prototype.create=function(e){return r(this,void 0,void 0,(function(){var t;return o(this,(function(r){switch(r.label){case 0:return Gr(us(e)).throw(g.invalidParameters),t=new es(n({},e)),[4,this._requestQueue.send(t)];case 1:return[2,r.sent().as(ts).poll]}}))}))},e.prototype.getOption=function(e){return r(this,void 0,void 0,(function(){var t;return o(this,(function(r){switch(r.label){case 0:return Gr(ds(e)).throw(g.invalidParameters),t=new rs(n({},e)),[4,this._requestQueue.send(t)];case 1:return[2,r.sent().as(os).pollOption]}}))}))},e.prototype.getPollChangeLogs=function(e,t,n,i){return void 0===i&&(i=Io.SYNC_POLL_CHANGELOGS),r(this,void 0,void 0,(function(){var r,s,a,c,u,l,d;return o(this,(function(o){switch(o.label){case 0:return r=new ss(oe({channelType:t,channelUrl:e,timestamp:"number"==typeof n?n:null,token:"string"==typeof n?n:null})),[4,this._requestQueue.send(r)];case 1:return s=o.sent(),a=s.as(as),c=a.updatedPolls,u=a.deletedPollIds,l=a.hasMore,d=a.nextToken,c.length>0&&this._dispatcher.dispatch(new qo({polls:c,source:i})),[2,{updatedPolls:c,deletedPollIds:u,hasMore:l,token:d}]}}))}))},e}(),Es=function(e){function n(t){var n=t.channelUrl,i=t.channelType,r=t.token,o=t.limit,s=e.call(this)||this;return s.method=se.GET,s.path=ge,s.params={channel_url:n,channel_type:i,token:r,limit:o},s}return t(n,e),n}(Ie),vs=function(e){function n(t,n){var i,r=this;return(r=e.call(this,t,n)||this).polls=(null!==(i=n.polls)&&void 0!==i?i:[]).map((function(e){return new Yo(t,e)})),r.token=n.next,r}return t(n,e),n}(Re),gs=function(e){function i(t,n){return e.call(this,t,n.channelUrl,n.channelType,n)||this}return t(i,e),i.prototype.next=function(){return r(this,void 0,void 0,(function(){var e,t,i,r,s,a;return o(this,(function(o){switch(o.label){case 0:return this._validate()?this._isLoading?[3,3]:this._hasNext?(this._isLoading=!0,e=Lo.of(this._iid).requestQueue,t=new Es(n(n({},this),{token:this._token})),[4,e.send(t)]):[3,2]:[3,5];case 1:return i=o.sent(),r=i.as(vs),s=r.polls,a=r.token,this._token=a,this._hasNext=!!a,this._isLoading=!1,[2,s];case 2:return[2,[]];case 3:throw g.queryInProgress;case 4:return[3,6];case 5:throw g.invalidParameters;case 6:return[2]}}))}))},i}(Jo),bs=function(e){function n(t){var n=t.channelUrl,i=t.channelType,r=t.pollId,o=t.pollOptionId,s=t.token,a=t.limit,c=e.call(this)||this;return c.method=se.GET,c.path="".concat(ge,"/").concat(encodeURIComponent(r),"/options/").concat(encodeURIComponent(o),"/voters"),c.params={channel_url:n,channel_type:i,token:s,limit:a},c}return t(n,e),n}(Ie),ms=function(e){function n(t,n){var i,r=this;return(r=e.call(this,t,n)||this).voters=(null!==(i=n.voters)&&void 0!==i?i:[]).map((function(e){return new jr(t,e)})),r.token=n.next,r}return t(n,e),n}(Re),ys=function(e){function i(t,n){var i=e.call(this,t,n.channelUrl,n.channelType,n)||this;return i.pollId=n.pollId,i.pollOptionId=n.pollOptionId,i}return t(i,e),i.prototype._validate=function(){return e.prototype._validate.call(this)&&w("number",this.pollId)&&w("number",this.pollOptionId)},i.prototype.next=function(){return r(this,void 0,void 0,(function(){var e,t,i,r,s,a;return o(this,(function(o){switch(o.label){case 0:return this._validate()?this._isLoading?[3,3]:this._hasNext?(this._isLoading=!0,e=Lo.of(this._iid).requestQueue,t=new bs(n(n({},this),{pollId:this.pollId,pollOptionId:this.pollOptionId,token:this._token})),[4,e.send(t)]):[3,2]:[3,5];case 1:return i=o.sent(),r=i.as(ms),s=r.voters,a=r.token,this._token=a,this._hasNext=!!a,this._isLoading=!1,[2,s];case 2:return[2,[]];case 3:throw g.queryInProgress;case 4:return[3,6];case 5:throw g.invalidParameters;case 6:return[2]}}))}))},i}(Jo)}).call(this,__webpack_require__("./node_modules/webpack/buildin/global.js"))},"./node_modules/@sendbird/chat/lib/__bundle-cce5a3db.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return H})),__webpack_require__.d(__webpack_exports__,"b",(function(){return v})),__webpack_require__.d(__webpack_exports__,"c",(function(){return f})),__webpack_require__.d(__webpack_exports__,"d",(function(){return U})),__webpack_require__.d(__webpack_exports__,"e",(function(){return m})),__webpack_require__.d(__webpack_exports__,"f",(function(){return I})),__webpack_require__.d(__webpack_exports__,"g",(function(){return L})),__webpack_require__.d(__webpack_exports__,"h",(function(){return g})),__webpack_require__.d(__webpack_exports__,"i",(function(){return T})),__webpack_require__.d(__webpack_exports__,"j",(function(){return A}));var A,e,_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-c578be85.js"),_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-121c0f7c.js"),_bundle_acd77193_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-acd77193.js");(e=A||(A={}))[e.NONE=0]="NONE",e[e.CHANNEL_ENTER=10102]="CHANNEL_ENTER",e[e.CHANNEL_EXIT=10103]="CHANNEL_EXIT",e[e.USER_CHANNEL_MUTE=10201]="USER_CHANNEL_MUTE",e[e.USER_CHANNEL_UNMUTE=10200]="USER_CHANNEL_UNMUTE",e[e.USER_CHANNEL_BAN=10601]="USER_CHANNEL_BAN",e[e.USER_CHANNEL_UNBAN=10600]="USER_CHANNEL_UNBAN",e[e.CHANNEL_FREEZE=10701]="CHANNEL_FREEZE",e[e.CHANNEL_UNFREEZE=10700]="CHANNEL_UNFREEZE",e[e.TYPING_START=10900]="TYPING_START",e[e.TYPING_END=10901]="TYPING_END",e[e.CHANNEL_JOIN=1e4]="CHANNEL_JOIN",e[e.CHANNEL_LEAVE=10001]="CHANNEL_LEAVE",e[e.CHANNEL_OPERATOR_UPDATE=10002]="CHANNEL_OPERATOR_UPDATE",e[e.CHANNEL_INVITE=10020]="CHANNEL_INVITE",e[e.CHANNEL_ACCEPT_INVITE=10021]="CHANNEL_ACCEPT_INVITE",e[e.CHANNEL_DECLINE_INVITE=10022]="CHANNEL_DECLINE_INVITE",e[e.CHANNEL_PROP_CHANGED=11e3]="CHANNEL_PROP_CHANGED",e[e.CHANNEL_DELETED=12e3]="CHANNEL_DELETED",e[e.CHANNEL_META_DATA_CHANGED=11100]="CHANNEL_META_DATA_CHANGED",e[e.CHANNEL_META_COUNTERS_CHANGED=11200]="CHANNEL_META_COUNTERS_CHANGED",e[e.CHANNEL_HIDE=13e3]="CHANNEL_HIDE",e[e.CHANNEL_UNHIDE=13001]="CHANNEL_UNHIDE",e[e.PINNED_MESSAGE_CHANGED=11300]="PINNED_MESSAGE_CHANGED";var p=function(){function n(e){var n;this.channelUrl=e.channel_url,this.channelType=e.channel_type,this.category=e.cat,this.data=null!==(n=e.data)&&void 0!==n?n:{},this.ts=e.ts}return Object.defineProperty(n.prototype,"isGroupChannelEvent",{get:function(){return this.channelType===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.GROUP},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isOpenChannelEvent",{get:function(){return this.channelType===_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.OPEN},enumerable:!1,configurable:!0}),n}(),f=function(e){function t(n,t,r){var s=e.call(this,n,"SYEV",r)||this;return s.event=new p(r),s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.x),m=function(e){function t(n,t,s){var o=e.call(this,n,t,s)||this,i=s.data.operators,a=void 0===i?[]:i;return o.operators=a.map((function(e){return new _bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v(o._iid,e)})),o}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(f),v=function(e){function t(n,t){var r=e.call(this,n)||this;return r._logger=t.logger,r._sdkState=t.sdkState,r._sessionManager=t.sessionManager,r._requestQueue=t.requestQueue,r._dispatcher=t.dispatcher,r._cacheContext=t.cacheContext,r._channelType=t.channelType,r}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),Object.defineProperty(t.prototype,"_messageBroadcast",{get:function(){return _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.R.of(this._iid)},enumerable:!1,configurable:!0}),t.prototype.subscribeMessageEvent=function(e,n){this._messageBroadcast.subscribe(e,n)},t.prototype.unsubscribeMessageEvent=function(e){this._messageBroadcast.unsubscribe(e)},t.prototype.getMessageFromCache=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return[2,null]}))}))},t.prototype.getExactlyMatchingMessagesForTokenFromCache=function(e,n,t){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return[2,[]]}))}))},t.prototype.getMessagesFromCache=function(e,n,t,r,i,a){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return[2,[]]}))}))},t.prototype.getPollMessagesFromCache=function(e,n,t,r){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return[2,[]]}))}))},t.prototype.getCachedMessageCountBetween=function(e,n,t,r){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return[2,0]}))}))},t.prototype.getUnsentMessagesFromCache=function(e,n){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return[2,[]]}))}))},t.prototype.removeFailedMessageFromCache=function(e){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return[2]}))}))},t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.jb),H=function(e){function t(n,t,r){var s,o,i,E,N=this;(N=e.call(this,n,"ADMM",r)||this).message=new _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.S(n,r);var c=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(n).sdkState;return N.isMentioned=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.zb)(N.message.mentionType,null!==(i=null!==(s=N.message.mentionedUserIds)&&void 0!==s?s:null===(o=N.message.mentionedUsers)||void 0===o?void 0:o.map((function(e){return e.userId})))&&void 0!==i?i:[],c.userId),N.forceUpdateLastMessage=null!==(E=r.force_update_last_message)&&void 0!==E&&E,N}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.x),T=function(e){function t(n,t,r){var s,o,i,u,c,_=this;(_=e.call(this,n,"AEDI",r)||this).message=new _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.S(n,r);var h=_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(n).sdkState;return _.mentionCountChange=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.I)({mentionType:null===(s=r.old_values)||void 0===s?void 0:s.mention_type,mentionedUserIds:null!==(i=null===(o=r.old_values)||void 0===o?void 0:o.mentioned_user_ids)&&void 0!==i?i:[]},Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({mentionType:_.message.mentionType,mentionedUserIds:null!==(u=_.message.mentionedUserIds)&&void 0!==u?u:null===(c=_.message.mentionedUsers)||void 0===c?void 0:c.map((function(e){return e.userId}))}),h.userId),_}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.x),L=function(e){function t(n,t,r){var s=e.call(this,n,"MRCT",r)||this;return s.channelUrl=r.channel_url,s.channelType=r.channel_type,s.event=new _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.T(r),s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.x),g=function(e){function t(n,t,r){var s=e.call(this,n,"MTHD",r)||this;return s.event=new _bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.v(n,r),s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.x),U=function(e){function t(n,t,r){var s=e.call(this,n,"MCNT",r)||this;return s.groupChannelMemberCounts=r.group_channels.map((function(e){return{channelUrl:e.channel_url,memberCount:e.member_count,joinedMemberCount:e.joined_member_count,updatedAt:e.ts}})),s.openChannelMemberCounts=r.open_channels.map((function(e){return{channelUrl:e.channel_url,participantCount:e.participant_count,updatedAt:e.ts}})),s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.x),I=function(e){function t(n,t,r){var s=e.call(this,n,"PEDI",r)||this;return s.event=new _bundle_acd77193_js__WEBPACK_IMPORTED_MODULE_2__.a(n,r),s.status=Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Wb)(r.poll.status)||r.poll.status,s.channelUrl=r.channel_url,s.channelType=r.channel_type,s}return Object(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,e),t}(_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.x)},"./node_modules/@sendbird/chat/openChannel.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return Pe})),__webpack_require__.d(__webpack_exports__,"b",(function(){return De})),__webpack_require__.d(__webpack_exports__,"c",(function(){return Ie}));var n,_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-c578be85.js"),_lib_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-121c0f7c.js"),_lib_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-cce5a3db.js"),_lib_bundle_a7cb5080_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-a7cb5080.js"),le=function(r){function a(){var e=null!==r&&r.apply(this,arguments)||this;return e._channels=new Map,e._enteredChannelUrls=[],e}return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(a,r),Object.defineProperty(a.prototype,"enteredChannels",{get:function(){var e=this;return this._enteredChannelUrls.map((function(n){return e._channels.get(n)})).filter((function(e){return!!e}))},enumerable:!1,configurable:!0}),a.prototype.isEnteredChannel=function(e){return this._enteredChannelUrls.includes(e)},a.prototype.enter=function(e){this._enteredChannelUrls.indexOf(e)<0&&this._enteredChannelUrls.push(e)},a.prototype.exit=function(e){var n=this._enteredChannelUrls.indexOf(e);n>=0&&this._enteredChannelUrls.splice(n,1)},a.prototype.exitAll=function(){this._enteredChannelUrls=[]},a.prototype.get=function(e){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){return[2,this._channels.get(e)]}))}))},a.prototype.upsert=function(e){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n,r=this;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){return n=[],e.forEach((function(e){if(r._channels.has(e.url)){var t=r._channels.get(e.url);Object.assign(t,e),n.push(t)}else r._channels.set(e.url,e),n.push(e)})),[2,n]}))}))},a.prototype.remove=function(e){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){return this._channels.delete(e),this.exit(e),[2]}))}))},a.prototype.clear=function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return this._channels.clear(),this._enteredChannelUrls=[],[2]}))}))},a}(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.jb),he={channelUrl:void 0,name:void 0,coverUrlOrImage:void 0,data:void 0,customType:void 0,operatorUserIds:void 0,isEphemeral:void 0},de=function(n){function t(e){var t=e.channelUrl,r=e.isInternalCall,a=n.call(this)||this;return a.method=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,a.path="".concat(r?_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Xb:_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Yb,"/").concat(encodeURIComponent(t)),a}return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,n),t}(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),pe=function(n){function t(e,t){var r=n.call(this,e,t)||this;return r.channel=new Pe(e,t),r}return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,n),t}(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),fe=function(n){function t(e){var t=this,r=e.channelUrl,a=e.coverUrlOrImage,u=e.name,l=e.data,h=e.customType,f=e.operatorUserIds,C=e.isEphemeral;return(t=n.call(this)||this).method=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.POST,t.path=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Yb,t.params=Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({channel_url:r,cover_url:Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",a)?a:null,cover_file:Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.hc)(a)?a:null,name:u,data:l,custom_type:h,operators:f,is_ephemeral:C})),t}return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,n),t}(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec);n=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc,Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)((function t(e,t){var r=n.call(this,e,t)||this;return r.channel=new Pe(e,t),r}),n);var Ce=function(n){function t(e){var t=e.channelUrl;return n.call(this,{code:"ENTR",payload:{channel_url:t},ackRequired:!0})||this}return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,n),t}(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ob),ve=function(n){function t(e,t,r){var a,o,i=this;return i=n.call(this,e,"SYEV",r)||this,r.data&&(i.participantCount=null!==(a=r.data.participant_count)&&void 0!==a?a:0,i.user=new _lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v(e,r.data),i.ts=null!==(o=r.data.edge_ts)&&void 0!==o?o:0),i}return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,n),t}(_lib_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_2__.c),_e=function(n){function t(e){var t=e.channelUrl;return n.call(this,{code:"EXIT",payload:{channel_url:t},ackRequired:!0})||this}return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,n),t}(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ob),ye=function(n){function t(e,t,r){var a,o,i=this;return i=n.call(this,e,"EXIT",r)||this,r.data&&(i.participantCount=null!==(a=r.data.participant_count)&&void 0!==a?a:0,i.user=new _lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v(e,r.data),i.ts=null!==(o=r.data.edge_ts)&&void 0!==o?o:0),i}return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,n),t}(_lib_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_2__.c),ge={},me=function(r){function s(e,a){var o=r.call(this,e,Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},a),{channelType:_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.OPEN}))||this;return o.subscribeChannelEvent=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,o.unsubscribeChannelEvent=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,o.refreshChannel=function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(o,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return[2,Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb)()]}))}))},o._openChannelCache=new le(e),o._openChannelHandlers=new Map,o._dispatcher.on((function(e){var n,t;if(e instanceof _lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.x)o._handleEvent(e).catch((function(e){if(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.o)(e)&&"foreground"===o._sdkState.appState)throw e}));else if(e instanceof _lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.c&&e.stateType===_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.e.CONNECTED){var r=o._openChannelCache.enteredChannels;try{for(var a=Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(r),i=a.next();!i.done;i=a.next())i.value.enter()}catch(e){n={error:e}}finally{try{i&&!i.done&&(t=a.return)&&t.call(a)}finally{if(n)throw n.error}}}})),ge[e]||(ge[e]=o),o}return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(s,r),s.of=function(e){return ge[e]},s.prototype.buildOpenChannelFromSerializedData=function(e){var n=Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.xc)(e);return new Pe(this._iid,Pe.payloadify(n))},s.prototype.getChannelFromCache=function(e){var r;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return[4,this._openChannelCache.get(e)];case 1:return[2,null!==(r=n.sent())&&void 0!==r?r:null]}}))}))},s.prototype.upsertChannelsToCache=function(e){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){switch(n.label){case 0:return[4,this._openChannelCache.upsert(e)];case 1:return[2,n.sent()]}}))}))},s.prototype.removeChannelsFromCache=function(e){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n,r,a,o,i,s;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:t.trys.push([0,5,6,7]),n=Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(e),r=n.next(),t.label=1;case 1:return r.done?[3,4]:(a=r.value,[4,this._openChannelCache.remove(a)]);case 2:t.sent(),t.label=3;case 3:return r=n.next(),[3,1];case 4:return[3,7];case 5:return o=t.sent(),i={error:o},[3,7];case 6:try{r&&!r.done&&(s=n.return)&&s.call(n)}finally{if(i)throw i.error}return[7];case 7:return[2]}}))}))},s.prototype.setEnteredToCache=function(e){this._openChannelCache.enter(e.url)},s.prototype.setExitedToCache=function(e){this._openChannelCache.exit(e.url)},s.prototype._handleEvent=function(e){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var r,a,o,i,s,u,c,l,h,d,p,f,C,v,_,g,m,E,w,D,O,x,I,A,L,R,$,Y,Z,ee,ce,le,he,de,pe,fe,Ce,_e,ge,me,Ue,Ee,we,Te,be,Me,Ne,Pe,De,Oe,He,xe,Ie,Ae,Le,Re,Fe,Se,ke,ze,qe,Qe,Ve,Be,Ke,We,je,Ge,Xe=this;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function($e){switch($e.label){case 0:switch($e.trys.push([0,57,,58]),e.code){case"MESG":case"FILE":case"ADMM":case"BRDM":return[3,1];case"MEDI":case"FEDI":case"AEDI":return[3,4];case"DELM":return[3,7];case"MRCT":return[3,10];case"MTHD":return[3,13];case"MCNT":return[3,16];case"PEDI":return[3,27];case"VOTE":return[3,30];case"SYEV":return[3,33]}return[3,56];case 1:return i=null,"MESG"===e.code?i=e.as(_lib_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.X):"FILE"===e.code?i=e.as(_lib_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.Y):"ADMM"!==e.code&&"BRDM"!=e.code||(i=e.as(_lib_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_2__.a)),i?(r=i.message,a=i.isMentioned,r.channelType!==_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.OPEN?[3,3]:[4,this.getChannel(r.channelUrl,!0)]):[3,3];case 2:o=$e.sent(),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Xe,void 0,void 0,(function(){var e,n,i,s,u;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){try{for(e=Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._openChannelHandlers.values()),n=e.next();!n.done;n=e.next())i=n.value,this._openChannelCache.isEnteredChannel(o.url)&&(i.onMessageReceived&&i.onMessageReceived(o,r),a&&i.onMentionReceived&&i.onMentionReceived(o,r))}catch(e){s={error:e}}finally{try{n&&!n.done&&(u=e.return)&&u.call(e)}finally{if(s)throw s.error}}return[2]}))}))})),$e.label=3;case 3:return[3,56];case 4:return i=null,"MEDI"===e.code?i=e.as(_lib_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.V):"FEDI"===e.code?i=e.as(_lib_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.W):"AEDI"===e.code&&(i=e.as(_lib_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_2__.i)),i?(s=i.message,u=i.mentionCountChange,s.channelType!==_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.OPEN?[3,6]:[4,this.getChannel(s.channelUrl,!0)]):[3,6];case 5:c=$e.sent(),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Xe,void 0,void 0,(function(){var e,n,r,a,o;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){try{for(e=Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._openChannelHandlers.values()),n=e.next();!n.done;n=e.next())r=n.value,this._openChannelCache.isEnteredChannel(c.url)&&(r.onMessageUpdated&&r.onMessageUpdated(c,s),u>0&&r.onMentionReceived&&r.onMentionReceived(c,s))}catch(e){a={error:e}}finally{try{n&&!n.done&&(o=e.return)&&o.call(e)}finally{if(a)throw a.error}}return[2]}))}))})),$e.label=6;case 6:return[3,56];case 7:return l=e.as(_lib_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.I),ce=l.channelUrl,le=l.channelType,h=l.messageId,le!==_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.OPEN?[3,9]:[4,this.getChannel(ce,!0)];case 8:d=$e.sent(),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Xe,void 0,void 0,(function(){var e,n,r,a,o;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){try{for(e=Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._openChannelHandlers.values()),n=e.next();!n.done;n=e.next())r=n.value,this._openChannelCache.isEnteredChannel(d.url)&&r.onMessageDeleted&&r.onMessageDeleted(d,h)}catch(e){a={error:e}}finally{try{n&&!n.done&&(o=e.return)&&o.call(e)}finally{if(a)throw a.error}}return[2]}))}))})),$e.label=9;case 9:return[3,56];case 10:return p=e.as(_lib_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_2__.g),ce=p.channelUrl,le=p.channelType,f=p.event,le!==_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.OPEN?[3,12]:[4,this.getChannel(ce,!0)];case 11:C=$e.sent(),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Xe,void 0,void 0,(function(){var e,n,r,a,o;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){try{for(e=Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._openChannelHandlers.values()),n=e.next();!n.done;n=e.next())r=n.value,this._openChannelCache.isEnteredChannel(C.url)&&r.onReactionUpdated&&r.onReactionUpdated(C,f)}catch(e){a={error:e}}finally{try{n&&!n.done&&(o=e.return)&&o.call(e)}finally{if(a)throw a.error}}return[2]}))}))})),$e.label=12;case 12:return[3,56];case 13:return(v=e.as(_lib_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_2__.h).event).channelType!==_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.OPEN?[3,15]:[4,this.getChannel(v.channelUrl,!0)];case 14:_=$e.sent(),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Xe,void 0,void 0,(function(){var e,n,r,a,o;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){try{for(e=Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._openChannelHandlers.values()),n=e.next();!n.done;n=e.next())r=n.value,this._openChannelCache.isEnteredChannel(_.url)&&r.onThreadInfoUpdated&&r.onThreadInfoUpdated(_,v)}catch(e){a={error:e}}finally{try{n&&!n.done&&(o=e.return)&&o.call(e)}finally{if(a)throw a.error}}return[2]}))}))})),$e.label=15;case 15:return[3,56];case 16:g=e.as(_lib_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_2__.d).openChannelMemberCounts,m=[],$e.label=17;case 17:$e.trys.push([17,22,23,24]),E=Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(g),w=E.next(),$e.label=18;case 18:return w.done?[3,21]:(D=w.value,ce=D.channelUrl,Ue=D.participantCount,O=D.updatedAt,[4,this.getChannelFromCache(ce)]);case 19:(x=$e.sent())&&x._updateParticipantCount(Ue,O)&&m.push(x),$e.label=20;case 20:return w=E.next(),[3,18];case 21:return[3,24];case 22:return I=$e.sent(),je={error:I},[3,24];case 23:try{w&&!w.done&&(Ge=E.return)&&Ge.call(E)}finally{if(je)throw je.error}return[7];case 24:return m.length>0?[4,this.upsertChannelsToCache(m)]:[3,26];case 25:A=$e.sent(),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Xe,void 0,void 0,(function(){var e,n,r,a,o;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){try{for(e=Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._openChannelHandlers.values()),n=e.next();!n.done;n=e.next())(r=n.value).onChannelMemberCountChanged&&r.onChannelMemberCountChanged(A)}catch(e){a={error:e}}finally{try{n&&!n.done&&(o=e.return)&&o.call(e)}finally{if(a)throw a.error}}return[2]}))}))})),$e.label=26;case 26:return[3,56];case 27:return L=e.as(_lib_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_2__.f),R=L.event,$=L.status,ce=L.channelUrl,le=L.channelType,ce&&le===_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.OPEN?[4,this.getChannel(ce,!0)]:[3,29];case 28:Y=$e.sent(),this._dispatcher.dispatch(new _lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.W({event:R,source:_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_POLL_UPDATED})),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)($===_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Sb?function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Xe,void 0,void 0,(function(){var e,n,r,a,o;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){try{for(e=Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._openChannelHandlers.values()),n=e.next();!n.done;n=e.next())(r=n.value).onPollDeleted&&r.onPollDeleted(Y,R.pollId)}catch(e){a={error:e}}finally{try{n&&!n.done&&(o=e.return)&&o.call(e)}finally{if(a)throw a.error}}return[2]}))}))}:function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Xe,void 0,void 0,(function(){var e,n,r,a,o;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){try{for(e=Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._openChannelHandlers.values()),n=e.next();!n.done;n=e.next())(r=n.value).onPollUpdated&&r.onPollUpdated(Y,R)}catch(e){a={error:e}}finally{try{n&&!n.done&&(o=e.return)&&o.call(e)}finally{if(a)throw a.error}}return[2]}))}))}),$e.label=29;case 29:return[3,56];case 30:return Z=e.as(_lib_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.F),ee=Z.event,ce=Z.channelUrl,le=Z.channelType,ce&&le===_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.OPEN?[4,this.getChannel(ce,!0)]:[3,32];case 31:he=$e.sent(),this._dispatcher.dispatch(new _lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.P({event:ee,source:_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.a.EVENT_POLL_VOTED})),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Xe,void 0,void 0,(function(){var e,n,r,a,o;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){try{for(e=Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.rc)(this._openChannelHandlers.values()),n=e.next();!n.done;n=e.next())(r=n.value).onPollVoted&&r.onPollVoted(he,ee)}catch(e){a={error:e}}finally{try{n&&!n.done&&(o=e.return)&&o.call(e)}finally{if(a)throw a.error}}return[2]}))}))})),$e.label=32;case 32:return[3,56];case 33:if(!(de=e.as(_lib_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_2__.c).event).isOpenChannelEvent)return[3,55];switch(de.category){case _lib_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_2__.j.CHANNEL_ENTER:return[3,34];case _lib_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_2__.j.CHANNEL_EXIT:return[3,36];case _lib_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_2__.j.CHANNEL_OPERATOR_UPDATE:return[3,38];case _lib_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_2__.j.USER_CHANNEL_MUTE:case _lib_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_2__.j.USER_CHANNEL_UNMUTE:return[3,40];case _lib_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_2__.j.USER_CHANNEL_BAN:case _lib_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_2__.j.USER_CHANNEL_UNBAN:return[3,42];case _lib_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_2__.j.CHANNEL_FREEZE:case _lib_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_2__.j.CHANNEL_UNFREEZE:return[3,44];case _lib_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_2__.j.CHANNEL_DELETED:return[3,46];case _lib_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_2__.j.CHANNEL_PROP_CHANGED:return[3,49];case _lib_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_2__.j.CHANNEL_META_DATA_CHANGED:return[3,51];case _lib_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_2__.j.CHANNEL_META_COUNTERS_CHANGED:return[3,53]}return[3,55];case 34:return[4,this.getChannel(de.channelUrl,!0)];case 35:return pe=$e.sent(),fe=e.as(ve),Ue=fe.participantCount,Ce=fe.user,_e=pe._updateParticipantCount(Ue,de.ts),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Xe,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return this._openChannelHandlers.forEach((function(e){e.onUserEntered&&e.onUserEntered(pe,Ce),_e&&e.onChannelParticipantCountChanged&&e.onChannelParticipantCountChanged(pe)})),[2]}))}))})),[3,55];case 36:return[4,this.getChannel(de.channelUrl,!0)];case 37:return ge=$e.sent(),me=e.as(ye),Ue=me.participantCount,Ee=me.user,we=ge._updateParticipantCount(Ue,de.ts),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Xe,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return this._openChannelHandlers.forEach((function(e){e.onUserExited&&e.onUserExited(ge,Ee),we&&e.onChannelParticipantCountChanged&&e.onChannelParticipantCountChanged(ge)})),[2]}))}))})),[3,55];case 38:return[4,this.getChannel(de.channelUrl,!0)];case 39:return Te=$e.sent(),be=e.as(_lib_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_2__.e).operators,Te.operators=be,this.upsertChannelsToCache([Te]),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Xe,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return this._openChannelHandlers.forEach((function(e){e.onOperatorUpdated&&e.onOperatorUpdated(Te,be)})),[2]}))}))})),[3,55];case 40:return[4,this.getChannel(de.channelUrl,!0)];case 41:return Me=$e.sent(),Ne=de.category===_lib_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_2__.j.USER_CHANNEL_MUTE,Pe=e.as(Ne?_lib_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.D:_lib_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.E).user,Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Xe,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return this._openChannelHandlers.forEach((function(e){Ne?e.onUserMuted&&e.onUserMuted(Me,Pe):e.onUserUnmuted&&e.onUserUnmuted(Me,Pe)})),[2]}))}))})),[3,55];case 42:return[4,this.getChannel(de.channelUrl,!0)];case 43:return De=$e.sent(),Oe=de.category===_lib_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_2__.j.USER_CHANNEL_BAN,He=e.as(Oe?_lib_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.C:_lib_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.B).user,Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Xe,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return this._openChannelHandlers.forEach((function(e){Oe?e.onUserBanned&&e.onUserBanned(De,He):e.onUserUnbanned&&e.onUserUnbanned(De,He)})),[2]}))}))})),[3,55];case 44:return[4,this.getChannel(de.channelUrl,!0)];case 45:return xe=$e.sent(),Ie=e.as(_lib_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.A).freeze,xe.isFrozen=Ie,this.upsertChannelsToCache([xe]),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Xe,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return this._openChannelHandlers.forEach((function(e){Ie?e.onChannelFrozen&&e.onChannelFrozen(xe):e.onChannelUnfrozen&&e.onChannelUnfrozen(xe)})),[2]}))}))})),[3,55];case 46:return[4,this.getChannel(de.channelUrl,!0)];case 47:return Ae=$e.sent(),[4,this.removeChannelsFromCache([Ae.url])];case 48:return $e.sent(),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Xe,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return this._openChannelHandlers.forEach((function(e){e.onChannelDeleted&&e.onChannelDeleted(Ae.url,Ae.channelType)})),[2]}))}))})),[3,55];case 49:return[4,this.getChannelWithoutCache(de.channelUrl,!0)];case 50:return Le=$e.sent(),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Xe,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return this._openChannelHandlers.forEach((function(e){e.onChannelChanged&&e.onChannelChanged(Le)})),[2]}))}))})),[3,55];case 51:return[4,this.getChannel(de.channelUrl,!0)];case 52:return Re=$e.sent(),Fe=e.as(_lib_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.a),Se=Fe.created,ke=Fe.updated,ze=Fe.deleted,Se&&Re._upsertCachedMetaData(Se,de.ts),ke&&Re._upsertCachedMetaData(ke,de.ts),ze&&Re._removeFromCachedMetaData(ze,de.ts),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Xe,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return this._openChannelHandlers.forEach((function(e){Se&&e.onMetaDataCreated&&e.onMetaDataCreated(Re,Se),ke&&e.onMetaDataUpdated&&e.onMetaDataUpdated(Re,ke),ze&&e.onMetaDataDeleted&&e.onMetaDataDeleted(Re,ze)})),[2]}))}))})),[3,55];case 53:return[4,this.getChannel(de.channelUrl,!0)];case 54:return qe=$e.sent(),Qe=e.as(_lib_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.x),Ve=Qe.created,Be=Qe.updated,Ke=Qe.deleted,Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.g)((function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(Xe,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){return this._openChannelHandlers.forEach((function(e){Ve&&e.onMetaCounterCreated&&e.onMetaCounterCreated(qe,Ve),Be&&e.onMetaCounterUpdated&&e.onMetaCounterUpdated(qe,Be),Ke&&e.onMetaCounterDeleted&&e.onMetaCounterDeleted(qe,Ke)})),[2]}))}))})),[3,55];case 55:return[3,56];case 56:return[3,58];case 57:if(We=$e.sent(),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.o)(We))throw We;return[3,58];case 58:return[2]}}))}))},s.prototype.addHandler=function(e,n){this._openChannelHandlers.set(e,n)},s.prototype.removeHandler=function(e){this._openChannelHandlers.delete(e)},s.prototype.clearHandler=function(){this._openChannelHandlers.clear()},s.prototype.getChannel=function(e,r){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e)).throw(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.getChannelFromCache(e)];case 2:return(n=t.sent())?[2,n]:[3,4];case 3:return t.sent(),[3,4];case 4:return[4,this.getChannelWithoutCache(e)];case 5:return[2,t.sent()]}}))}))},s.prototype.getChannelWithoutCache=function(e,r){return void 0===r&&(r=!1),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n,a,i;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e)).throw(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),n=new de({channelUrl:e,isInternalCall:r}),[4,this._requestQueue.send(n)];case 1:return a=t.sent(),i=a.as(pe).channel,[4,this.upsertChannelsToCache([i])];case 2:return[2,t.sent()[0]]}}))}))},s.prototype.createChannel=function(e){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n,r,s,u;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return n=Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},he),e),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(function(e){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",e.operatorUserIds,!0)&&(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.coverUrlOrImage,!0)||Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.hc)(e.coverUrlOrImage,!0))&&Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.name,!0)&&Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.data,!0)&&Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.customType,!0)&&(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.channelUrl)&&/^\w+$/.test(e.channelUrl)||null===e.channelUrl||void 0===e.channelUrl)&&Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",e.isEphemeral,!0)}(n)).throw(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),r=new fe(n),[4,this._requestQueue.send(r)];case 1:return s=t.sent(),u=s.as(pe).channel,this.upsertChannelsToCache([u]),[2,u]}}))}))},s}(_lib_bundle_cce5a3db_js__WEBPACK_IMPORTED_MODULE_2__.b),Ue={name:void 0,coverUrlOrImage:void 0,data:void 0,customType:void 0,operatorUserIds:void 0},Ee=function(n){function t(e){var t=this,r=e.channelUrl,a=e.token,o=e.limit;return(t=n.call(this)||this).method=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,t.path="".concat(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Yb,"/").concat(encodeURIComponent(r),"/participants"),t.params={token:a,limit:o},t}return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,n),t}(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),we=function(n){function t(e,t){var r=n.call(this,e,t)||this;r.participants=[];var a=t.next,o=t.participants;return r.token=a,r.participants=o.map((function(n){return new _lib_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.n(e,n)})),r}return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,n),t}(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),Te=function(r){function a(e,n,t){return r.call(this,e,n,_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.OPEN,t)||this}return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(a,r),a.prototype._validate=function(){return r.prototype._validate.call(this)},a.prototype.next=function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,n,r,a,o,i;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return this._validate()?this._isLoading?[3,3]:this._hasNext?(this._isLoading=!0,e=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,n=new Ee(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},this),{token:this._token})),[4,e.send(n)]):[3,2]:[3,5];case 1:return r=t.sent(),a=r.as(we),o=a.participants,i=a.token,this._token=i,this._hasNext=!!i,this._isLoading=!1,[2,o];case 2:return[2,[]];case 3:throw _lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.queryInProgress;case 4:return[3,6];case 5:throw _lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters;case 6:return[2]}}))}))},a}(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Fb),be=function(n){function t(e){var t=this,r=e.channelUrl,a=e.coverUrlOrImage,u=e.name,l=e.data,h=e.customType,f=e.operatorUserIds;return(t=n.call(this)||this).method=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.PUT,t.path="".concat(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Yb,"/").concat(encodeURIComponent(r)),t.params=Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)({cover_url:Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",a)?a:null,cover_file:Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.hc)(a)?a:null,name:u,data:l,custom_type:h,operators:f})),t}return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,n),t}(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),Me=function(n){function t(e,t){var r=n.call(this,e,t)||this;return r.channel=new Pe(e,t),r}return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,n),t}(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),Ne=function(n){function t(e){var t=this,r=e.channelUrl;return(t=n.call(this)||this).method=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.DELETE,t.path="".concat(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Yb,"/").concat(encodeURIComponent(r)),t}return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,n),t}(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec);!function(n){Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)((function t(e,t){return n.call(this,e,t)||this}),n)}(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc);var Pe=function(r){function s(e,n){var t,a=this;return(a=r.call(this,e,n)||this)._lastParticipantCountUpdated=0,a.participantCount=0,a.operators=[],a.channelType=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.d.OPEN,a.participantCount=null!==(t=n.participant_count)&&void 0!==t?t:0,a.operators=Array.isArray(n.operators)?n.operators.map((function(n){return new _lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v(e,n)})):[],a}return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(s,r),s.payloadify=function(e){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},_lib_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.Qb.payloadify(e)),{participant_count:e.participantCount,operators:e.operators.map((function(e){return _lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v.payloadify(e)}))})))},s.prototype.serialize=function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.mb)(this)},s.prototype.isOperator=function(e){return e instanceof _lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.v?this.isOperator(e.userId):this.operators.some((function(n){return n.userId===e}))},s.prototype._updateParticipantCount=function(e,n){return n>this._lastParticipantCountUpdated&&(this.participantCount=e,this._lastParticipantCountUpdated=n,!0)},s.prototype.createParticipantListQuery=function(e){return new Te(this._iid,this.url,e)},s.prototype.refresh=function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(e){switch(e.label){case 0:return[4,me.of(this._iid).getChannelWithoutCache(this.url)];case 1:return[2,e.sent()]}}))}))},s.prototype.enter=function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,n,r,a,o,i;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return e=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,n=new Ce({channelUrl:this.url}),[4,e.send(n)];case 1:return r=t.sent(),a=r.as(ve),o=a.participantCount,i=a.ts,this._updateParticipantCount(o,i),me.of(this._iid).setEnteredToCache(this),[2]}}))}))},s.prototype.exit=function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,n,r,a,o,i;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return e=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,n=new _e({channelUrl:this.url}),[4,e.send(n)];case 1:return r=t.sent(),a=r.as(ye),o=a.participantCount,i=a.ts,this._updateParticipantCount(o,i),me.of(this._iid).setExitedToCache(this),_lib_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.bb.of(this._iid).fileMessageQueue.cancel(this),[2]}}))}))},s.prototype.updateChannel=function(e){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n,r,s,u,c;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return n=Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},Ue),e),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(function(e){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",e.operatorUserIds,!0)&&(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.coverUrlOrImage,!0)||Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.hc)(e.coverUrlOrImage,!0))&&Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.name,!0)&&Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.data,!0)&&Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",e.customType,!0)}(n)).throw(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters),r=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,s=new be(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({channelUrl:this.url},n)),[4,r.send(s)];case 1:return u=t.sent(),c=u.as(Me).channel,this._update(c),[4,me.of(this._iid).upsertChannelsToCache([c])];case 2:return t.sent(),[2,this]}}))}))},s.prototype.updateChannelWithOperatorUserIds=function(e,r,a,o,i){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){return n=Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},Ue),{name:e,coverUrlOrImage:r,data:a,operatorUserIds:o,customType:i}),[2,this.updateChannel(n)]}))}))},s.prototype.delete=function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,n;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return e=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,n=new Ne({channelUrl:this.url}),[4,e.send(n)];case 1:return t.sent(),[4,me.of(this._iid).removeChannelsFromCache([this.url])];case 2:return t.sent(),[2]}}))}))},s.prototype.sendUserMessage=function(e){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(!e.isPinnedMessage).throw(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.notSupportedError),r.prototype.sendUserMessage.call(this,e)},s.prototype.sendFileMessage=function(e){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.sc)(!e.isPinnedMessage).throw(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.notSupportedError),r.prototype.sendFileMessage.call(this,e)},s}(_lib_bundle_121c0f7c_js__WEBPACK_IMPORTED_MODULE_1__.Qb),De=function(n){function t(e){void 0===e&&(e={});var t=n.call(this)||this;return Object.keys(e).forEach((function(n){t.hasOwnProperty(n)&&(t[n]=e[n])})),t}return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,n),t}(function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.onUserEntered=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,e.onUserExited=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,e.onChannelParticipantCountChanged=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,e.onPollUpdated=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,e.onPollVoted=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,e.onPollDeleted=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Eb,e}return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,n),t}(_lib_bundle_a7cb5080_js__WEBPACK_IMPORTED_MODULE_3__.a)),Oe=function(n){function t(e){var t=this,r=e.token,a=e.limit,o=e.nameKeyword,i=e.urlKeyword,u=e.customTypes,l=e.includeFrozen,h=e.includeMetaData;return(t=n.call(this)||this).method=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.b.GET,t.path=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Yb,t.params=Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.dc)({token:r,limit:a,name_contains:o,url_contains:i,custom_types:u,show_frozen:l,show_metadata:h}),t}return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,n),t}(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.ec),He=function(n){function t(e,t){var r=n.call(this,e,t)||this;r.channels=[];var a=t.next,o=t.channels,i=t.ts;return r.token=a,o&&o.length>0&&(r.channels=o.map((function(n){return new Pe(e,n)}))),r.ts="number"==typeof i?i:null,r}return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(t,n),t}(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.gc),xe=function(r){function i(e,n){var t,a,o,i,s,u=this;return(u=r.call(this,e,n)||this).includeFrozen=!0,u.includeMetaData=!0,u.nameKeyword=null,u.urlKeyword=null,u.customTypes=null,u.includeFrozen=null===(t=n.includeFrozen)||void 0===t||t,u.includeMetaData=null===(a=n.includeMetaData)||void 0===a||a,u.nameKeyword=null!==(o=n.nameKeyword)&&void 0!==o?o:null,u.urlKeyword=null!==(i=n.urlKeyword)&&void 0!==i?i:null,u.customTypes=null!==(s=n.customTypes)&&void 0!==s?s:null,u}return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(i,r),i.prototype._validate=function(){return r.prototype._validate.call(this)&&Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",this.includeFrozen)&&Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("boolean",this.includeMetaData)&&Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",this.nameKeyword,!0)&&Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.B)("string",this.urlKeyword,!0)&&Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.p)("string",this.customTypes,!0)},i.prototype.next=function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var e,n,r,a,o,i;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){switch(t.label){case 0:return this._validate()?this._isLoading?[3,4]:this._hasNext?(this._isLoading=!0,e=_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.w.of(this._iid).requestQueue,n=new Oe(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.tc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)(Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},this),{token:this._token}))),[4,e.send(n)]):[3,3]:[3,6];case 1:return r=t.sent(),a=r.as(He),o=a.channels,i=a.token,this._token=i,this._hasNext=!!i,[4,me.of(this._iid).upsertChannelsToCache(o)];case 2:return t.sent(),this._isLoading=!1,[2,o];case 3:return[2,[]];case 4:throw _lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.queryInProgress;case 5:return[3,7];case 6:throw _lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.qc.invalidParameters;case 7:return[2]}}))}))},i}(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.R),Ie=function(r){function a(){var e=null!==r&&r.apply(this,arguments)||this;return e.name="openChannel",e}return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.bc)(a,r),a.prototype.init=function(e,n){var t=n.sdkState,a=n.dispatcher,o=n.sessionManager,i=n.requestQueue,s=n.logger,u=n.onlineDetector,c=n.cacheContext;r.prototype.init.call(this,e,{sdkState:t,dispatcher:a,sessionManager:o,requestQueue:i,logger:s,onlineDetector:u,cacheContext:c}),this._manager=new me(e,{sdkState:t,dispatcher:a,requestQueue:i,logger:s,cacheContext:c,sessionManager:o})},a.prototype.createOpenChannelListQuery=function(e){return void 0===e&&(e={}),new xe(this._iid,e)},a.prototype.addOpenChannelHandler=function(e,n){this._manager.addHandler(e,n)},a.prototype.removeOpenChannelHandler=function(e){this._manager.removeHandler(e)},a.prototype.removeAllOpenChannelHandlers=function(){this._manager.clearHandler()},a.prototype.buildOpenChannelFromSerializedData=function(e){return this._manager.buildOpenChannelFromSerializedData(e)},a.prototype.getChannel=function(e){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){return[2,this._manager.getChannel(e)]}))}))},a.prototype.getChannelWithoutCache=function(e){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){return[2,this._manager.getChannelWithoutCache(e)]}))}))},a.prototype.createChannel=function(e){return void 0===e&&(e={}),Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(n){return[2,this._manager.createChannel(e)]}))}))},a.prototype.createChannelWithOperatorUserIds=function(e,r,a,o,i){return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.A)(this,void 0,void 0,(function(){var n;return Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.Ib)(this,(function(t){return(n=Object(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.fc)({},he)).name=e,n.coverUrlOrImage=r,n.data=a,n.operatorUserIds=o,n.customType=i,[2,this._manager.createChannel(n)]}))}))},a}(_lib_bundle_c578be85_js__WEBPACK_IMPORTED_MODULE_0__.db)},"./node_modules/@sendbird/react-uikit-message-template-view/dist/index.css":function(module,exports,__webpack_require__){var api=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),content=__webpack_require__("./node_modules/css-loader/dist/cjs.js?!./node_modules/@storybook/builder-webpack4/node_modules/postcss-loader/dist/cjs.js?!./node_modules/@sendbird/react-uikit-message-template-view/dist/index.css");"string"==typeof(content=content.__esModule?content.default:content)&&(content=[[module.i,content,""]]);var options={insert:"head",singleton:!1};api(content,options);module.exports=content.locals||{}},"./node_modules/@sendbird/react-uikit-message-template-view/dist/index.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"c",(function(){return renderer})),__webpack_require__.d(__webpack_exports__,"b",(function(){return parser})),__webpack_require__.d(__webpack_exports__,"a",(function(){return MessageProvider}));var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react),dist=__webpack_require__("./node_modules/@sendbird/uikit-message-template/dist/index.js");function shouldRenderAsFixed(item){var _a;return"fixed"===(null===(_a=item.props.templateItems[0].width)||void 0===_a?void 0:_a.type)}function CarouselItem({item:item,defaultWidth:defaultWidth}){return react_default.a.createElement("div",{style:shouldRenderAsFixed(item)?{width:"fit-content"}:{minWidth:defaultWidth,width:"100%"}},item)}const Carousel=react_default.a.memo((({children:children,gap:gap=8})=>{var _a,_b;const carouselRef=Object(react.useRef)(null),screenWidth=window.innerWidth,defaultItemWidth=null!==(_b=null===(_a=carouselRef.current)||void 0===_a?void 0:_a.clientWidth)&&void 0!==_b?_b:0,itemWidths=children.map((item=>{var _a;return shouldRenderAsFixed(item)?null===(_a=item.props.templateItems[0].width)||void 0===_a?void 0:_a.value:defaultItemWidth})),allItemsWidth=itemWidths.reduce(((prev,curr)=>prev+gap+curr)),lastItemWidth=itemWidths[itemWidths.length-1],isLastItemNarrow=lastItemWidth<=100,isLastTwoItemsFitScreen=function getIsLastTwoItemsFitScreen(){const restItemsWidth=itemWidths.slice(-2).reduce(((prev,curr)=>prev+gap+curr));return 64+restItemsWidth<=screenWidth}(),itemPositions=function getEachItemPositions(){let accumulator=0;return itemWidths.map(((itemWidth,i)=>{i>0&&(accumulator-=gap);const itemPosition={start:accumulator,end:accumulator-itemWidth};return accumulator-=itemWidth,itemPosition}))}(),[draggingInfo,setDraggingInfo]=Object(react.useState)({scrolling:!1,dragging:!1,startPos:null,offset:0,translateX:0,currentIndex:0}),handleMouseUp=()=>{draggingInfo.dragging&&handleDragEnd()},getNewDraggingInfo=(props={})=>{const{newTranslateX:newTranslateX,nextIndex:nextIndex}=props,{translateX:translateX,currentIndex:currentIndex}=draggingInfo;return{scrolling:!1,dragging:!1,startPos:null,offset:0,translateX:null!=newTranslateX?newTranslateX:translateX,currentIndex:null!=nextIndex?nextIndex:currentIndex}},handleDragEnd=()=>{const offset=draggingInfo.offset;if(Math.abs(offset)<15)return void setDraggingInfo(getNewDraggingInfo());const currentIndex=draggingInfo.currentIndex;if(offset<0&¤tIndex0&¤tIndex>0){const nextIndex=currentIndex-1;setDraggingInfo(getNewDraggingInfo({newTranslateX:itemPositions[nextIndex].start,nextIndex:nextIndex}))}else setDraggingInfo(getNewDraggingInfo())};return react_default.a.createElement("div",{ref:carouselRef,onMouseDown:event=>{setDraggingInfo(Object.assign(Object.assign({},draggingInfo),{scrolling:!1,dragging:!0,startPos:{x:event.clientX,y:event.clientY},offset:0}))},onMouseMove:event=>{if(!draggingInfo.dragging||!draggingInfo.startPos)return;const newOffset=event.clientX-draggingInfo.startPos.x;setDraggingInfo(Object.assign(Object.assign({},draggingInfo),{offset:newOffset}))},onMouseUp:handleMouseUp,onMouseLeave:handleMouseUp,onTouchStart:event=>{setDraggingInfo(Object.assign(Object.assign({},draggingInfo),{scrolling:!1,dragging:!1,startPos:{x:event.touches[0].clientX,y:event.touches[0].clientY},offset:0}))},onTouchMove:event=>{if(!draggingInfo.startPos||draggingInfo.scrolling)return;const startPos=draggingInfo.startPos,[touchMoveX,touchMoveY]=[event.touches[0].clientX,event.touches[0].clientY],[deltaX,deltaY]=[Math.abs(touchMoveX-startPos.x),Math.abs(touchMoveY-startPos.y)],newOffset=touchMoveX-startPos.x;newOffset!==draggingInfo.offset&&(draggingInfo.dragging?setDraggingInfo(Object.assign(Object.assign({},draggingInfo),{offset:newOffset})):deltaY>deltaX?setDraggingInfo(Object.assign(Object.assign({},draggingInfo),{scrolling:!0})):(carouselRef.current&&(carouselRef.current.style.touchAction="pan-x"),setDraggingInfo(Object.assign(Object.assign({},draggingInfo),{dragging:!0,offset:newOffset}))))},onTouchEnd:()=>{const{offset:offset,currentIndex:currentIndex}=draggingInfo;if(Math.abs(offset)<15)setDraggingInfo(getNewDraggingInfo());else{if(offset<0&¤tIndex0&¤tIndex>0){const nextIndex=currentIndex-1;setDraggingInfo(getNewDraggingInfo({newTranslateX:itemPositions[nextIndex].start,nextIndex:nextIndex}))}else setDraggingInfo(getNewDraggingInfo());draggingInfo.dragging&&carouselRef.current&&(carouselRef.current.style.touchAction="pan-y")}},className:"sb-message-template__carousel",style:{cursor:draggingInfo.dragging?"grabbing":"grab",transition:draggingInfo.dragging?"none":"transform 0.5s ease",transform:`translateX(${function getCurrentTranslateX(){return draggingInfo.translateX+draggingInfo.offset}()}px)`,gap:gap}},children.map(((item,index)=>react_default.a.createElement(CarouselItem,{key:index+"",item:item,defaultWidth:defaultItemWidth+"px"}))))}));var __rest=function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{const{imageSize:imageSize,canvasRef:canvasRef,canvasProps:canvasProps}=useCanvasMessageTemplateImage(props);return react_default.a.createElement("canvas",Object.assign({},canvasProps,{ref:canvasRef,width:null==imageSize?void 0:imageSize.width,height:null==imageSize?void 0:imageSize.height,onError:props.onError}))},useCanvasMessageTemplateImage=_a=>{var{metaData:metaData,tintColor:tintColor}=_a,props=__rest(_a,["metaData","tintColor"]);const canvasRef=Object(react.useRef)(null),[fallbackImageSize,setFallbackImageSize]=Object(react.useState)(),imageSize=Object(react.useMemo)((()=>(null==metaData?void 0:metaData.pixelHeight)&&(null==metaData?void 0:metaData.pixelWidth)?{width:metaData.pixelWidth,height:metaData.pixelHeight}:fallbackImageSize),[fallbackImageSize,null==metaData?void 0:metaData.pixelHeight,null==metaData?void 0:metaData.pixelWidth]);return Object(react.useEffect)((()=>{if(null==imageSize&&(console.log("Canvas_ReactMessageTemplateImage: no metaData, render fit to container"),canvasRef.current)){canvasRef.current.style.width="100%",canvasRef.current.style.height="100%";const containerSize=canvasRef.current.getBoundingClientRect();setFallbackImageSize(containerSize)}}),[imageSize]),Object(react.useEffect)((()=>{if(props.src){const img=new Image,onImageLoad=()=>{if(canvasRef.current&&tintColor&&imageSize){const ctx=canvasRef.current.getContext("2d");if(ctx){const{width:imageWidth,height:imageHeight}=imageSize;ctx.clearRect(0,0,imageWidth,imageHeight),ctx.beginPath(),ctx.globalCompositeOperation="source-over",ctx.fillStyle="#000",ctx.drawImage(img,0,0,imageWidth,imageHeight),ctx.globalCompositeOperation="source-atop",ctx.fillStyle=tintColor,ctx.fillRect(0,0,imageWidth,imageHeight)}}},onImageError=event=>{var _a;null===(_a=props.onError)||void 0===_a||_a.call(props,event)};return img.addEventListener("load",onImageLoad),img.addEventListener("error",onImageError),img.src=props.src,()=>{img.removeEventListener("load",onImageLoad),img.removeEventListener("error",onImageError)}}}),[props.src,imageSize,tintColor]),{canvasRef:canvasRef,canvasProps:props,imageSize:imageSize}},ImgReactMessageTemplateImage=props=>react_default.a.createElement("img",Object.assign({},props,{onError:props.onError,referrerPolicy:"no-referrer"})),PlaceholderReactMessageTemplateImage=props=>react_default.a.createElement("div",{style:Object.assign(Object.assign({},props.style),{backgroundColor:"transparent"})});var ReactMessageTemplateImage_rest=function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{const[hasError,setHasError]=Object(react.useState)(!1);return Object(react.useEffect)((()=>setHasError(!1)),[source]),{hasError:hasError,onError:Object(react.useCallback)((()=>setHasError(!0)),[])}};var components_ReactMessageTemplateImage=_a=>{var{tintColor:tintColor,metaData:metaData}=_a,props=ReactMessageTemplateImage_rest(_a,["tintColor","metaData"]);const{hasError:hasError,onError:onError}=useImageLoadError(props.src);return props.onError&&console.warn("`onError` is intercepted and not executed in the ReactMessageTemplateImage."),hasError?react_default.a.createElement(PlaceholderReactMessageTemplateImage,Object.assign({},props)):tintColor?react_default.a.createElement(CanvasReactMessageTemplateImage,Object.assign({},props,{onError:onError,tintColor:tintColor,metaData:metaData})):react_default.a.createElement(ImgReactMessageTemplateImage,Object.assign({},props,{onError:onError}))};const MessageContext=react_default.a.createContext(null),MessageProvider=props=>{const{message:message,handleWebAction:handleWebAction,handleCustomAction:handleCustomAction,handlePredefinedAction:handlePredefinedAction,children:children}=props,value=react_default.a.useMemo((()=>({message:message,handleWebAction:handleWebAction,handleCustomAction:handleCustomAction,handlePredefinedAction:handlePredefinedAction})),[null==message?void 0:message.updatedAt]);return react_default.a.createElement(MessageContext.Provider,{value:value},children)};function isWrappedText(view){var _a;return view.type===dist.a.Text&&(null===(_a=view.width)||void 0===_a?void 0:_a.value)==dist.b.WrapContent}const isSizeCompatibleWithOption=({size:size,option:option})=>"wrap"===option?"flex"===size.type&&size.value==dist.b.WrapContent:"fill"===option?"flex"===size.type&&size.value==dist.b.FillParent:"fixed"===size.type;function usePreservedCallback(callback){const callbackRef=Object(react.useRef)(callback);return Object(react.useEffect)((()=>{callbackRef.current=callback}),[callback]),Object(react.useCallback)(((...args)=>callbackRef.current(...args)),[callbackRef])}function noop(){}function useResizeObserver(onResize){const resizeCallback=usePreservedCallback(onResize);return function useRefEffect(callback,deps){const preservedCallback=usePreservedCallback(callback),disposeRef=Object(react.useRef)(noop);return Object(react.useCallback)((element=>{if(disposeRef.current(),disposeRef.current=noop,null!=element){const cleanup=callback(element);"function"==typeof cleanup&&(disposeRef.current=cleanup)}}),[preservedCallback,...deps])}((elem=>{const observer=new ResizeObserver((entries=>{null!=entries[0]&&resizeCallback(entries[0])}));return observer.observe(elem),()=>{observer.unobserve(elem)}}),[resizeCallback])}var useRecalculationSize_rest=function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{const{width:contentWidth,height:contentHeight}=entry.contentRect,target=entry.target,{width:width,height:height}=target.getBoundingClientRect();setWidth(width),setHeight(height),setContentWidth(contentWidth),setContentHeight(contentHeight),setPaddingWidth(width-contentWidth),setPaddingHeight(height-contentHeight)}));return{ref:ref,width:width,height:height,contentWidth:contentWidth,contentHeight:contentHeight,paddingWidth:paddingWidth,paddingHeight:paddingHeight}}(),{ref:elemRef}=_a,size=useRecalculationSize_rest(_a,["ref"]),{updateSize:updateSize,sizes:sizes}=Object(dist.j)(),{id:id,siblings:siblings,parentLayout:parentLayout}=props,{width:width,height:height,paddingWidth:paddingWidth,paddingHeight:paddingHeight,contentWidth:contentWidth,contentHeight:contentHeight}=size;Object(react.useEffect)((()=>{updateSize({id:props.id,width:width,height:height,paddingWidth:paddingWidth,paddingHeight:paddingHeight,contentWidth:contentWidth,contentHeight:contentHeight})}),[props.id,width,height,paddingWidth,paddingHeight,contentWidth,contentHeight,updateSize]);const currentStyle=Object(react.useMemo)((()=>{const sumViewSize=(acc=0,view)=>{var _a,_b,_c,_d;return parentLayout===dist.c.Row?acc+(null!==(_b=null===(_a=sizes[view.id])||void 0===_a?void 0:_a.contentWidth)&&void 0!==_b?_b:0):acc+(null!==(_d=null===(_c=sizes[view.id])||void 0===_c?void 0:_c.contentHeight)&&void 0!==_d?_d:0)};if(isViewCompatibleWithSizeOption({width:props.width,height:props.height,parentLayout:parentLayout,option:"fill"})){const wrapSiblingsSize=siblings.filter((({width:width,height:height})=>!isViewCompatibleWithSizeOption({width:width,height:height,parentLayout:parentLayout,option:"fill"}))).reduce(sumViewSize,0),fillSiblingCount=siblings.filter((({width:width,height:height})=>isViewCompatibleWithSizeOption({width:width,height:height,parentLayout:parentLayout,option:"fill"}))).length,maxSizeOption=parentLayout===dist.c.Row?{maxWidth:`calc((100% - ${wrapSiblingsSize}px) / ${fillSiblingCount})`}:{maxHeight:`calc((100% - ${wrapSiblingsSize}px) / ${fillSiblingCount})`};return Object.assign(Object.assign(Object.assign({},style),maxSizeOption),0==width&&{height:0})}{const currentElemIdx=siblings.findIndex((sibling=>sibling.id===id)),forwardSiblingsSize=siblings.slice(0,currentElemIdx).filter((({width:width,height:height})=>isViewCompatibleWithSizeOption({width:width,height:height,parentLayout:parentLayout,option:"wrap"}))).reduce(sumViewSize,0);return Object.assign(Object.assign(Object.assign({},style),0===width&&{height:0}),parentLayout===dist.c.Row?{maxWidth:`calc(100% - ${forwardSiblingsSize}px)`}:{maxHeight:`calc(100% - ${forwardSiblingsSize}px)`})}}),[props.width,props.height,parentLayout,sizes,siblings,style,width,id]);return{recalculatedStyle:currentStyle,elemRef:elemRef}}__webpack_require__("./node_modules/@sendbird/react-uikit-message-template-view/dist/index.css");function getDefaultStyles(overrides){return Object.assign({display:"flex",overflow:"hidden",boxSizing:"border-box"},overrides)}function setViewProps(styles,props,options){!function setViewSize(styles,props,options){var _a,_b;const{width:defaultWidth,height:defaultHeight}=dist.i.view.size,{parentLayout:parentLayout}=options,sizeStyle=function getViewSizeStyle(width,height,parentLayout){const style={};"flex"===width.type&&width.value==dist.b.FillParent?(style.width="100%",parentLayout===dist.c.Row&&(style.flex=1)):"fixed"===width.type&&width.value>=0&&(style.width=Number(width.value));"flex"===height.type&&height.value==dist.b.FillParent?(style.height="100%",parentLayout===dist.c.Column&&(style.flex=1)):"fixed"===height.type&&height.value>=0&&(style.height=Number(height.value));return style}(null!==(_a=props.width)&&void 0!==_a?_a:defaultWidth,null!==(_b=props.height)&&void 0!==_b?_b:defaultHeight,parentLayout);Object.assign(styles,sizeStyle)}(styles,props,options),function setViewStyle(styles,props){var _a,_b,_c,_d,_e,_f;const{viewStyle:viewStyle}=props;(null===(_a=null==viewStyle?void 0:viewStyle.margin)||void 0===_a?void 0:_a.top)&&(styles.marginTop=Number(viewStyle.margin.top));(null===(_b=null==viewStyle?void 0:viewStyle.margin)||void 0===_b?void 0:_b.bottom)&&(styles.marginBottom=Number(viewStyle.margin.bottom));(null===(_c=null==viewStyle?void 0:viewStyle.margin)||void 0===_c?void 0:_c.left)&&(styles.marginLeft=Number(viewStyle.margin.left));(null===(_d=null==viewStyle?void 0:viewStyle.margin)||void 0===_d?void 0:_d.right)&&(styles.marginRight=Number(viewStyle.margin.right));const marginHorizontal=Number(null!==(_e=styles.marginLeft)&&void 0!==_e?_e:"0")+Number(null!==(_f=styles.marginRight)&&void 0!==_f?_f:"0");marginHorizontal>0&&"100%"===styles.width&&(styles.width=`calc(100% - ${marginHorizontal}px)`);(null==viewStyle?void 0:viewStyle.backgroundColor)&&(styles.backgroundColor=viewStyle.backgroundColor);(null==viewStyle?void 0:viewStyle.backgroundImageUrl)&&(styles.backgroundImage=`url(${JSON.stringify(viewStyle.backgroundImageUrl)})`);!function setBorderStyle(styles,borderWidth,borderColor,radius){borderWidth&&(styles["--border-width"]=`${borderWidth}px`,styles["--border-color"]=borderColor||"transparent");radius&&(styles.borderRadius=Number(radius),styles["--border-radius"]=`${radius}px`)}(styles,null==viewStyle?void 0:viewStyle.borderWidth,null==viewStyle?void 0:viewStyle.borderColor,null==viewStyle?void 0:viewStyle.radius)}(styles,props)}function setAlign(styles,layout=dist.i.box.layout,align=dist.i.box.align){layout===dist.c.Row&&(styles.flexDirection="row",styles.alignItems=Object(dist.e)(align.vertical),styles.justifyContent=Object(dist.e)(align.horizontal)),layout===dist.c.Column&&(styles.flexDirection="column",styles.alignItems=Object(dist.e)(align.horizontal),styles.justifyContent=Object(dist.e)(align.vertical))}function setImageStyle(styles,imageStyle){const{contentMode:contentMode=dist.d.AspectFit}=imageStyle||{};if(contentMode)switch(contentMode){case dist.d.AspectFill:styles.objectFit="cover";break;case dist.d.AspectFit:styles.objectFit="contain";break;case dist.d.ScalesToFill:styles.objectFit="fill"}}function setImageAspectRatio(styles,props){var _a,_b,_c,_d;const imageMetaData=null==props?void 0:props.metaData;(null==imageMetaData?void 0:imageMetaData.pixelHeight)&&(null==imageMetaData?void 0:imageMetaData.pixelWidth)&&"fixed"!==(null===(_a=null==props?void 0:props.width)||void 0===_a?void 0:_a.type)&&"fixed"!==(null===(_b=null==props?void 0:props.height)||void 0===_b?void 0:_b.type)&&(styles.aspectRatio=`${null===(_c=null==props?void 0:props.metaData)||void 0===_c?void 0:_c.pixelWidth} / ${null===(_d=null==props?void 0:props.metaData)||void 0===_d?void 0:_d.pixelHeight}`)}function setTextStyle(styles,props,options){const{textStyle:textStyle,width:width}=props,{size:size,color:color,weight:weight="normal"}=textStyle||{};if(size&&(styles.fontSize=Number(size)),color&&(styles.color=color),weight&&(styles.fontWeight=weight),(null==width?void 0:width.value)==dist.b.WrapContent&&(styles.maxWidth="100%"),props.type===dist.a.Text){const{siblings:siblings,elemIdx:elemIdx}=options;null!=siblings&&siblings.length>=2&&siblings.every(isWrappedText)&&(styles.flexShrink=siblings.length-1===elemIdx?1:0)}}var ui_rest=function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k,_l,_m,_o,_p,_q,_r,_s;const{recalculatedStyle:recalculatedStyle,elemRef:elemRef}=useRecalculateWidth({style:style,props:props}),{message:message,handleWebAction:handleWebAction,handleCustomAction:handleCustomAction,handlePredefinedAction:handlePredefinedAction}=react_default.a.useContext(MessageContext),onClick=e=>{var _a,_b,_c,_d,_e;"web"===(null===(_a=null==props?void 0:props.action)||void 0===_a?void 0:_a.type)&&(handleWebAction?null==handleWebAction||handleWebAction(e,props.action,message):null===(_c=null===window||void 0===window?void 0:window.open(((url="")=>((url="")=>["http://","https://","ftp://"].some((protocol=>url.startsWith(protocol))))(url)?url:`https://${url}`)(null===(_b=null==props?void 0:props.action)||void 0===_b?void 0:_b.data),"_blank","noopener noreferrer"))||void 0===_c||_c.focus()),"custom"===(null===(_d=null==props?void 0:props.action)||void 0===_d?void 0:_d.type)&&(null==handleCustomAction||handleCustomAction(e,props.action,message)),"uikit"===(null===(_e=null==props?void 0:props.action)||void 0===_e?void 0:_e.type)&&(null==handlePredefinedAction||handlePredefinedAction(e,props.action,message))},borderClass=(null===(_a=props.viewStyle)||void 0===_a?void 0:_a.borderWidth)?" sb-message-template__border":"";if("sb-message-template__text-button"===className)return react_default.a.createElement("button",{className:`${className}${borderClass}`,"data-sb-template-id":props.elementId,style:Object.assign(Object.assign({},style),{paddingTop:null===(_c=null===(_b=props.viewStyle)||void 0===_b?void 0:_b.padding)||void 0===_c?void 0:_c.top,paddingRight:null===(_e=null===(_d=props.viewStyle)||void 0===_d?void 0:_d.padding)||void 0===_e?void 0:_e.right,paddingBottom:null===(_g=null===(_f=props.viewStyle)||void 0===_f?void 0:_f.padding)||void 0===_g?void 0:_g.bottom,paddingLeft:null===(_j=null===(_h=props.viewStyle)||void 0===_h?void 0:_h.padding)||void 0===_j?void 0:_j.left}),onClick:onClick},children);const{display:display,flexDirection:flexDirection,justifyContent:justifyContent,alignItems:alignItems,objectFit:objectFit}=recalculatedStyle,wrapperStyles=ui_rest(recalculatedStyle,["display","flexDirection","justifyContent","alignItems","objectFit"]);return react_default.a.createElement("div",{ref:elemRef,className:`${className}${borderClass} ${(null==props?void 0:props.action)?"sb-message-template__action":""}`,"data-sb-template-id":props.elementId,style:wrapperStyles,onClick:onClick},react_default.a.createElement("div",{style:{display:display,flexDirection:flexDirection,justifyContent:justifyContent,alignItems:alignItems,objectFit:objectFit,width:"100%",height:"100%",paddingTop:null===(_l=null===(_k=props.viewStyle)||void 0===_k?void 0:_k.padding)||void 0===_l?void 0:_l.top,paddingRight:null===(_o=null===(_m=props.viewStyle)||void 0===_m?void 0:_m.padding)||void 0===_o?void 0:_o.right,paddingBottom:null===(_q=null===(_p=props.viewStyle)||void 0===_p?void 0:_p.padding)||void 0===_q?void 0:_q.bottom,paddingLeft:null===(_s=null===(_r=props.viewStyle)||void 0===_r?void 0:_r.padding)||void 0===_s?void 0:_s.left}},children))};function renderText(view){const{text:text,maxTextLines:maxTextLines}=view,isToBeWrapped=function isFixedOrFill(view){var _a,_b,_c,_d;const heightType=null===(_a=null==view?void 0:view.height)||void 0===_a?void 0:_a.type,widthType=null===(_b=null==view?void 0:view.width)||void 0===_b?void 0:_b.type,isFixedDiamension="fixed"===heightType||"fixed"===widthType,isFill="flex"===heightType&&(null===(_c=null==view?void 0:view.height)||void 0===_c?void 0:_c.value)===dist.b.FillParent||"flex"===widthType&&(null===(_d=null==view?void 0:view.width)||void 0===_d?void 0:_d.value)===dist.b.FillParent;return isFixedDiamension||isFill}(view),isMultiLine=null!=maxTextLines&&maxTextLines>0;if(isMultiLine||isToBeWrapped){const wrapperStyling=Object.assign(Object.assign({},(isMultiLine||isToBeWrapped)&&{maxWidth:"100%"}),isToBeWrapped&&{maxHeight:"100%",overflow:"hidden"});return react_default.a.createElement("div",{style:wrapperStyling},isMultiLine?react_default.a.createElement("div",{style:(numberOfLines=maxTextLines,{WebkitLineClamp:numberOfLines,WebkitBoxOrient:"vertical",display:"-webkit-box",overflow:"hidden",overflowWrap:"anywhere",flex:1})},text):text)}var numberOfLines;return text}const renderer=Object(dist.h)({views:{box:props=>react_default.a.createElement(ActionHandler,{className:"sb-message-template__box",elementId:props.elementId,style:props.parsedProperties,props:props},props.children),text:props=>react_default.a.createElement(ActionHandler,{className:"sb-message-template__text",elementId:props.elementId,style:props.parsedProperties,props:props},renderText(props)),image(props){var _a;return react_default.a.createElement(ActionHandler,{className:"sb-message-template__image-container",elementId:props.elementId,style:props.parsedProperties,props:props},react_default.a.createElement(components_ReactMessageTemplateImage,{className:"sb-message-template__image",alt:"image",src:props.imageUrl,style:{width:"100%",height:"100%",aspectRatio:"inherit",objectFit:"inherit"},tintColor:null===(_a=props.imageStyle)||void 0===_a?void 0:_a.tintColor,metaData:props.metaData}))},textButton:props=>react_default.a.createElement(ActionHandler,{className:"sb-message-template__text-button",elementId:props.elementId,style:props.parsedProperties,props:props},renderText(props)),imageButton(props){var _a;return react_default.a.createElement(ActionHandler,{className:"sb-message-template__image-container sb-message-template__image-button",elementId:props.elementId,style:props.parsedProperties,props:props},react_default.a.createElement(components_ReactMessageTemplateImage,{className:"sb-message-template__image",alt:"image-button",src:props.imageUrl,style:{width:"100%",height:"100%",aspectRatio:"inherit",objectFit:"inherit"},tintColor:null===(_a=props.imageStyle)||void 0===_a?void 0:_a.tintColor,metaData:props.metaData}))},carouselView:props=>react_default.a.createElement(Carousel,{gap:props.spacing},props.children)}}),parser=Object(dist.g)({mapBoxProps(props,options){const styles=getDefaultStyles();return setViewProps(styles,props,options),setAlign(styles,props.layout,props.align),styles},mapTextProps(props,options){var _a;const styles=getDefaultStyles({whiteSpace:"pre-line"});return setViewProps(styles,props,options),setTextStyle(styles,props,options),setAlign(styles,dist.c.Row,props.align),function setTextAlign(styles,align=dist.i.box.align.horizontal){styles.textAlign=align}(styles,null===(_a=props.align)||void 0===_a?void 0:_a.horizontal),styles},mapImageProps(props,options){const styles=getDefaultStyles();return setViewProps(styles,props,options),setImageStyle(styles,props.imageStyle),setImageAspectRatio(styles,props),styles},mapTextButtonProps(props,options){const styles=getDefaultStyles({whiteSpace:"pre-line",alignItems:"center",justifyContent:"center"});return setViewProps(styles,props,options),setTextStyle(styles,Object.assign(Object.assign({},props),{textStyle:Object.assign({weight:500},props.textStyle)}),options),styles},mapImageButtonProps(props,options){const styles=getDefaultStyles();return setViewProps(styles,props,options),setImageStyle(styles,props.imageStyle),setImageAspectRatio(styles,props),styles},mapCarouselProps(props,options){const styles=getDefaultStyles();return setViewProps(styles,props,options),styles}}),{MessageTemplate:MessageTemplate}=Object(dist.f)({renderer:renderer,parser:parser,Container:({children:children})=>react_default.a.createElement("div",{className:"sb-message-template__parent",style:{display:"flex",flexDirection:"column",maxWidth:400,marginBottom:24}},children)})},"./node_modules/@sendbird/uikit-message-template/dist/index.js":function(module,__webpack_exports__,__webpack_require__){"use strict";var ComponentType,CompositeComponentType;__webpack_require__.d(__webpack_exports__,"g",(function(){return parser_createParser})),__webpack_require__.d(__webpack_exports__,"h",(function(){return createRenderer})),__webpack_require__.d(__webpack_exports__,"f",(function(){return core_messageTemplate_createMessageTemplate})),__webpack_require__.d(__webpack_exports__,"i",(function(){return defaultValues_defaultProperties})),__webpack_require__.d(__webpack_exports__,"c",(function(){return styles_Layout})),__webpack_require__.d(__webpack_exports__,"b",(function(){return styles_FlexSizeSpecValue})),__webpack_require__.d(__webpack_exports__,"d",(function(){return styles_MediaContentMode})),__webpack_require__.d(__webpack_exports__,"a",(function(){return ComponentType})),__webpack_require__.d(__webpack_exports__,"e",(function(){return dist_utils_alignInFlex})),__webpack_require__.d(__webpack_exports__,"j",(function(){return context_SizeProvider_useSizeContext})),function(ComponentType){ComponentType.Box="box",ComponentType.Text="text",ComponentType.Image="image",ComponentType.TextButton="textButton",ComponentType.ImageButton="imageButton"}(ComponentType||(ComponentType={})),function(CompositeComponentType){CompositeComponentType.Carousel="carouselView"}(CompositeComponentType||(CompositeComponentType={}));const MAPPER=()=>{},parser_createParser=params=>{const defaultMapper=(null==params?void 0:params.defaultMapper)||MAPPER,mapper={defaultMapper:defaultMapper,mapBoxProps:(null==params?void 0:params.mapBoxProps)||defaultMapper,mapTextProps:(null==params?void 0:params.mapTextProps)||defaultMapper,mapImageProps:(null==params?void 0:params.mapImageProps)||defaultMapper,mapTextButtonProps:(null==params?void 0:params.mapTextButtonProps)||defaultMapper,mapImageButtonProps:(null==params?void 0:params.mapImageButtonProps)||defaultMapper,mapCarouselProps:(null==params?void 0:params.mapCarouselProps)||defaultMapper};return{parse(item,options){switch(item.type){case ComponentType.Box:return{properties:mapper.mapBoxProps(item,options)};case ComponentType.Text:return{properties:mapper.mapTextProps(item,options)};case ComponentType.Image:return{properties:mapper.mapImageProps(item,options)};case ComponentType.TextButton:return{properties:mapper.mapTextButtonProps(item,options)};case ComponentType.ImageButton:return{properties:mapper.mapImageButtonProps(item,options)};case CompositeComponentType.Carousel:return{properties:mapper.mapCarouselProps(item,options)};default:return{properties:void 0}}}}};var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react);const renderer_FRAGMENT=({children:children})=>react_default.a.createElement(react_default.a.Fragment,null,children);function createRenderer(params){var _a,_b,_c,_d,_e,_f;return{box:(null===(_a=null==params?void 0:params.views)||void 0===_a?void 0:_a.box)||renderer_FRAGMENT,text:(null===(_b=null==params?void 0:params.views)||void 0===_b?void 0:_b.text)||renderer_FRAGMENT,image:(null===(_c=null==params?void 0:params.views)||void 0===_c?void 0:_c.image)||renderer_FRAGMENT,imageButton:(null===(_d=null==params?void 0:params.views)||void 0===_d?void 0:_d.imageButton)||renderer_FRAGMENT,textButton:(null===(_e=null==params?void 0:params.views)||void 0===_e?void 0:_e.textButton)||renderer_FRAGMENT,carouselView:(null===(_f=null==params?void 0:params.views)||void 0===_f?void 0:_f.carouselView)||renderer_FRAGMENT}}var components_ComponentType=function(ComponentType){return ComponentType.Box="box",ComponentType.Text="text",ComponentType.Image="image",ComponentType.TextButton="textButton",ComponentType.ImageButton="imageButton",ComponentType}({}),components_CompositeComponentType=function(CompositeComponentType){return CompositeComponentType.Carousel="carouselView",CompositeComponentType}({}),parser_MAPPER=function MAPPER(){},core_renderer_FRAGMENT=function FRAGMENT(_ref){var children=_ref.children;return react_default.a.createElement(react_default.a.Fragment,null,children)};function renderer_createRenderer(params){var _params$views,_params$views2,_params$views3,_params$views4,_params$views5,_params$views6;return{box:(null==params||null===(_params$views=params.views)||void 0===_params$views?void 0:_params$views.box)||core_renderer_FRAGMENT,text:(null==params||null===(_params$views2=params.views)||void 0===_params$views2?void 0:_params$views2.text)||core_renderer_FRAGMENT,image:(null==params||null===(_params$views3=params.views)||void 0===_params$views3?void 0:_params$views3.image)||core_renderer_FRAGMENT,imageButton:(null==params||null===(_params$views4=params.views)||void 0===_params$views4?void 0:_params$views4.imageButton)||core_renderer_FRAGMENT,textButton:(null==params||null===(_params$views5=params.views)||void 0===_params$views5?void 0:_params$views5.textButton)||core_renderer_FRAGMENT,carouselView:(null==params||null===(_params$views6=params.views)||void 0===_params$views6?void 0:_params$views6.carouselView)||core_renderer_FRAGMENT}}try{renderer_createRenderer.displayName="createRenderer",renderer_createRenderer.__docgenInfo={description:"",displayName:"createRenderer",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["node_modules/@sendbird/uikit-message-template/src/core/renderer.tsx#createRenderer"]={docgenInfo:renderer_createRenderer.__docgenInfo,name:"createRenderer",path:"node_modules/@sendbird/uikit-message-template/src/core/renderer.tsx#createRenderer"})}catch(__react_docgen_typescript_loader_error){}function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _excluded=["id"];function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i{}}),context_SizeProvider_SizeContextProvider=({children:children})=>{const[sizes,setSizes]=Object(react.useState)({}),updateSize=Object(react.useCallback)((_a=>{var{id:id}=_a,rest=__rest(_a,["id"]);id&&setSizes((prevSizes=>Object.assign(Object.assign({},prevSizes),{[id]:rest})))}),[]);return react_default.a.createElement(SizeProvider_SizeContext.Provider,{value:{sizes:sizes,updateSize:updateSize}},children)},context_SizeProvider_useSizeContext=()=>Object(react.useContext)(SizeProvider_SizeContext),templateItemId_setTemplateItemId=(fn=>{const cache=new Map,cached=function(val){return(cache.has(val)||cache.set(val,fn.call(this,val)))&&cache.get(val)};return cached.cache=cache,cached})((data=>{const addIdRecursively=(item,id)=>{"items"in item&&null!=(null==item?void 0:item.items)&&item.items.forEach(((subItem,subIdx)=>{const subId=`${id}-${subIdx}`;subItem.id=subId,addIdRecursively(subItem,subId)}))};return data.forEach(((item,idx)=>{const id=`${idx}`;item.id=id,addIdRecursively(item,id)})),data}));var styles_Layout,styles_AlignValue,styles_FlexSizeSpecValue,styles_FontWeight,styles_MediaContentMode;!function(Layout){Layout.Row="row",Layout.Column="column"}(styles_Layout||(styles_Layout={})),function(AlignValue){AlignValue.Center="center",AlignValue.Left="left",AlignValue.Right="right",AlignValue.Top="top",AlignValue.Bottom="bottom"}(styles_AlignValue||(styles_AlignValue={})),function(FlexSizeSpecValue){FlexSizeSpecValue[FlexSizeSpecValue.FillParent=0]="FillParent",FlexSizeSpecValue[FlexSizeSpecValue.WrapContent=1]="WrapContent"}(styles_FlexSizeSpecValue||(styles_FlexSizeSpecValue={})),function(FontWeight){FontWeight.Normal="normal",FontWeight.Bold="bold"}(styles_FontWeight||(styles_FontWeight={})),function(MediaContentMode){MediaContentMode.AspectFit="aspectFit",MediaContentMode.AspectFill="aspectFill",MediaContentMode.ScalesToFill="scalesToFill"}(styles_MediaContentMode||(styles_MediaContentMode={}));const defaultValues_defaultProperties={rootLayout:styles_Layout.Column,view:{size:{width:{type:"flex",value:styles_FlexSizeSpecValue.FillParent},height:{type:"flex",value:styles_FlexSizeSpecValue.WrapContent}}},box:{layout:styles_Layout.Row,align:{vertical:styles_AlignValue.Top,horizontal:styles_AlignValue.Left}}},core_messageTemplate_createMessageTemplate=opts=>{const Container=opts.Container||react_default.a.Fragment,UnknownMessage=opts.UnknownMessage||(()=>null),parser=opts.parser||parser_createParser(),renderer=opts.renderer||createRenderer(),MessageTemplateBase=({templateItems:templateItems,parentLayout:parentLayout=defaultValues_defaultProperties.box.layout,isRoot:isRoot=!1})=>{const renderItems=templateItems;return react_default.a.createElement(react_default.a.Fragment,null,renderItems.map(((item,index,siblings)=>{const{properties:properties}=parser.parse(item,{parentLayout:parentLayout,elemIdx:index,siblings:siblings}),props={key:index,parentLayout:parentLayout,parsedProperties:properties,siblings:siblings};switch(item.type){case CompositeComponentType.Carousel:if(!isRoot)throw new Error("Cannot parse template item as Carousel if the template item is not the root.");if(!item.items||!Array.isArray(item.items)||0===item.items.length)throw new Error("Cannot parse template item as Carousel if carousel has no items.");return react_default.a.createElement(renderer.carouselView,Object.assign({},item,props),item.items.map(((items,index)=>react_default.a.createElement(MessageTemplateBase,{key:index,templateItems:items||[],parentLayout:parentLayout}))));case ComponentType.Box:return react_default.a.createElement(renderer.box,Object.assign({},item,props),react_default.a.createElement(MessageTemplateBase,{templateItems:item.items||[],parentLayout:item.layout}));case ComponentType.Text:return react_default.a.createElement(renderer.text,Object.assign({},item,props));case ComponentType.Image:return react_default.a.createElement(renderer.image,Object.assign({},item,props));case ComponentType.TextButton:return react_default.a.createElement(renderer.textButton,Object.assign({},item,props));case ComponentType.ImageButton:return react_default.a.createElement(renderer.imageButton,Object.assign({},item,props));default:return react_default.a.createElement(UnknownMessage,{item:item})}})))};return{MessageTemplate:({parentLayout:parentLayout=defaultValues_defaultProperties.rootLayout,templateVersion:templateVersion,templateItems:templateItems})=>{const items=templateItemId_setTemplateItemId(templateItems);if(!isTemplateVersionSupported(templateVersion))throw new Error("Cannot parse template item due to unsupported template version.");return react_default.a.createElement(context_SizeProvider_SizeContextProvider,null,react_default.a.createElement(Container,null,react_default.a.createElement(MessageTemplateBase,{parentLayout:parentLayout,templateItems:items,isRoot:!0})))},MessageTemplateBase:MessageTemplateBase}};var properties_ActionType;!function(ActionType){ActionType.Web="web",ActionType.Custom="custom",ActionType.UIKit="uikit"}(properties_ActionType||(properties_ActionType={}));const dist_utils_alignInFlex=align=>{switch(align){case styles_AlignValue.Right:case styles_AlignValue.Bottom:return"flex-end";case styles_AlignValue.Center:return"center";case styles_AlignValue.Left:case styles_AlignValue.Top:default:return"flex-start"}};ComponentType.Image,properties_ActionType.Web,styles_MediaContentMode.AspectFill,ComponentType.Box,styles_Layout.Column,styles_FlexSizeSpecValue.FillParent,ComponentType.Box,styles_FlexSizeSpecValue.FillParent,styles_FlexSizeSpecValue.FillParent,ComponentType.Box,styles_Layout.Column,styles_FlexSizeSpecValue.FillParent,styles_FlexSizeSpecValue.WrapContent,ComponentType.Text,styles_AlignValue.Center,styles_AlignValue.Center,styles_FlexSizeSpecValue.FillParent,ComponentType.Image,properties_ActionType.Web,styles_FlexSizeSpecValue.FillParent,styles_MediaContentMode.AspectFill,ComponentType.Box,styles_FlexSizeSpecValue.FillParent,ComponentType.Box,styles_FlexSizeSpecValue.FillParent,styles_FlexSizeSpecValue.FillParent,ComponentType.Box,styles_Layout.Column,ComponentType.Box,styles_AlignValue.Left,styles_AlignValue.Center,styles_Layout.Row,styles_FlexSizeSpecValue.FillParent,ComponentType.Text,styles_FlexSizeSpecValue.FillParent,styles_AlignValue.Center,styles_AlignValue.Left,styles_FontWeight.Bold,ComponentType.ImageButton,properties_ActionType.UIKit,styles_MediaContentMode.AspectFit,ComponentType.Text,ComponentType.TextButton,properties_ActionType.Web,styles_FontWeight.Bold,ComponentType.Image,properties_ActionType.Web,styles_MediaContentMode.AspectFill,ComponentType.Box,styles_Layout.Column,styles_FlexSizeSpecValue.FillParent,ComponentType.Box,styles_FlexSizeSpecValue.FillParent,styles_Layout.Row,ComponentType.TextButton,properties_ActionType.Web,styles_FontWeight.Bold,ComponentType.TextButton,properties_ActionType.Web,styles_FlexSizeSpecValue.FillParent,styles_FontWeight.Bold,ComponentType.Box,styles_FlexSizeSpecValue.FillParent,styles_Layout.Row,ComponentType.Text,styles_FlexSizeSpecValue.FillParent,styles_FontWeight.Bold,ComponentType.ImageButton,properties_ActionType.UIKit,styles_MediaContentMode.AspectFit,ComponentType.Text,ComponentType.Box,styles_Layout.Column,ComponentType.Image,styles_MediaContentMode.AspectFill,ComponentType.Box,styles_Layout.Column,ComponentType.Text,styles_FontWeight.Bold,ComponentType.Text,ComponentType.Box,styles_AlignValue.Left,styles_AlignValue.Center,styles_Layout.Row,ComponentType.Image,styles_MediaContentMode.AspectFill,ComponentType.Box,styles_AlignValue.Left,styles_AlignValue.Center,styles_Layout.Column,ComponentType.Text,styles_FontWeight.Bold,ComponentType.Text,styles_FontWeight.Bold,ComponentType.Box,styles_AlignValue.Left,styles_AlignValue.Center,styles_Layout.Row,ComponentType.Image,styles_MediaContentMode.AspectFill,ComponentType.Box,styles_AlignValue.Left,styles_AlignValue.Center,styles_Layout.Column,ComponentType.Text,styles_FontWeight.Bold,ComponentType.Text,styles_FontWeight.Bold,ComponentType.Box,styles_AlignValue.Left,styles_AlignValue.Center,styles_Layout.Row,ComponentType.Image,styles_MediaContentMode.AspectFill,ComponentType.Box,styles_AlignValue.Left,styles_AlignValue.Center,styles_Layout.Column,ComponentType.Text,styles_FontWeight.Bold,ComponentType.Text,styles_FontWeight.Bold,ComponentType.Box,styles_AlignValue.Left,styles_AlignValue.Center,styles_Layout.Row,ComponentType.TextButton,properties_ActionType.Web,styles_FontWeight.Bold,ComponentType.TextButton,properties_ActionType.Web,styles_FontWeight.Bold,ComponentType.Box,styles_Layout.Column,ComponentType.Image,ComponentType.Box,styles_Layout.Column,ComponentType.Box,styles_Layout.Row,ComponentType.Box,styles_Layout.Column,ComponentType.Text,styles_FontWeight.Bold,ComponentType.Text,ComponentType.ImageButton,properties_ActionType.UIKit,ComponentType.Box,styles_Layout.Column,ComponentType.Box,styles_AlignValue.Left,styles_AlignValue.Center,styles_Layout.Row,ComponentType.Image,styles_MediaContentMode.AspectFill,ComponentType.Box,styles_Layout.Column,ComponentType.Text,styles_FontWeight.Bold,ComponentType.Text,ComponentType.Box,styles_AlignValue.Left,styles_AlignValue.Center,styles_Layout.Row,ComponentType.Image,styles_MediaContentMode.AspectFill,ComponentType.Box,styles_Layout.Column,ComponentType.Text,styles_FontWeight.Bold,ComponentType.Text,styles_FlexSizeSpecValue.FillParent,styles_FlexSizeSpecValue.FillParent,styles_FlexSizeSpecValue.FillParent,styles_FlexSizeSpecValue.FillParent,styles_FlexSizeSpecValue.FillParent,styles_FlexSizeSpecValue.FillParent,styles_FlexSizeSpecValue.FillParent,styles_FlexSizeSpecValue.WrapContent,styles_FlexSizeSpecValue.FillParent,styles_FlexSizeSpecValue.FillParent},"./node_modules/@sendbird/uikit-tools/dist/esm/index.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return UIKitConfigProvider})),__webpack_require__.d(__webpack_exports__,"i",(function(){return useUIKitConfig})),__webpack_require__.d(__webpack_exports__,"e",(function(){return useGroupChannelList})),__webpack_require__.d(__webpack_exports__,"f",(function(){return useGroupChannelMessages})),__webpack_require__.d(__webpack_exports__,"b",(function(){return useAsyncEffect})),__webpack_require__.d(__webpack_exports__,"c",(function(){return useAsyncLayoutEffect})),__webpack_require__.d(__webpack_exports__,"d",(function(){return useGroupChannelHandler})),__webpack_require__.d(__webpack_exports__,"g",(function(){return useIIFE})),__webpack_require__.d(__webpack_exports__,"h",(function(){return usePreservedCallback}));var react=__webpack_require__("./node_modules/react/index.js"),react_default=__webpack_require__.n(react);const applicationAttributes_reactions="reactions",applicationAttributes_message_search_v3="message_search_v3",applicationAttributes_enable_og_tag="enable_og_tag",premiumFeatures_delivery_receipt="delivery_receipt";const sbuConstants={collection:{groupChannel:{defaultLimit:20,defaultOrder:__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-4d8e37ce.js").c.LATEST_LAST_MESSAGE,defaultIncludeEmpty:!1},message:{defaultLimit:{next:25,prev:25},searchLimit:{next:10,prev:10}}}};var _bundle_17fdda58=__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-17fdda58.js"),__awaiter=function(thisArg,_arguments,P,generator){return new(P||(P=Promise))((function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):function adopt(value){return value instanceof P?value:new P((function(resolve){resolve(value)}))}(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())}))};const useAsyncEffect=(asyncEffect,deps)=>{Object(react.useEffect)(createAsyncEffectCallback(asyncEffect),deps)},useAsyncLayoutEffect=(asyncEffect,deps)=>{Object(react.useLayoutEffect)(createAsyncEffectCallback(asyncEffect),deps)},iife=callback=>callback(),createAsyncEffectCallback=asyncEffect=>()=>{const destructor=iife(asyncEffect);return()=>{destructor&&iife(destructor instanceof Promise?()=>__awaiter(void 0,void 0,void 0,(function*(){const awaitedDestructor=yield destructor;awaitedDestructor&&awaitedDestructor()})):destructor)}};var groupChannel=__webpack_require__("./node_modules/@sendbird/chat/groupChannel.js");let useUniqId_id=0;const useGroupChannelHandler=(sdk,hookHandler,handlerId)=>{const handlerRef=Object(react.useRef)(hookHandler),id=function useUniqId(){return Object(react.useState)((()=>""+useUniqId_id++))[0]}(),internalHandlerId=null!=handlerId?handlerId:id;handlerRef.current=hookHandler,Object(react.useEffect)((()=>{var _a;var handler;return null===(_a=null==sdk?void 0:sdk.groupChannel)||void 0===_a||_a.addGroupChannelHandler(internalHandlerId,(handler=new groupChannel.a,Object.keys(handler).forEach((key=>{handler[key]=(...args)=>{var _a,_b;return null===(_b=null===(_a=handlerRef.current)||void 0===_a?void 0:_a[key])||void 0===_b?void 0:_b.call(_a,...args)}})),handler)),()=>{var _a;null===(_a=null==sdk?void 0:sdk.groupChannel)||void 0===_a||_a.removeGroupChannelHandler(internalHandlerId)}}),[null==sdk?void 0:sdk.groupChannel,internalHandlerId])};function usePreservedCallback(callback){const callbackRef=Object(react.useRef)(callback);return callbackRef.current=callback,Object(react.useCallback)(((...args)=>callbackRef.current(...args)),[callbackRef])}var __rest=function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{var draft=__rest(_a,[]);const compareByOrder=createCompareByOrder(draft.order);switch(action.type){case"update_refreshing":draft.refreshing=action.value.status;break;case"update_initialized":draft.initialized=action.value.status;break;case"update_channels":getGroupChannels(action.value.channels).forEach((freshChannel=>{const idx=draft.groupChannels.findIndex((staleChannel=>staleChannel.url===freshChannel.url));idx>-1&&(draft.groupChannels[idx]=freshChannel)})),compareByOrder&&(draft.groupChannels=draft.groupChannels.sort(compareByOrder));break;case"delete_channels":action.value.channelUrls.forEach((url=>{const idx=draft.groupChannels.findIndex((c=>c.url===url));idx>-1&&draft.groupChannels.splice(idx,1)})),compareByOrder&&(draft.groupChannels=draft.groupChannels.sort(compareByOrder));break;case"append_channels":{const groupChannels=getGroupChannels(action.value.channels);action.value.clearBeforeAction?draft.groupChannels=groupChannels:draft.groupChannels=function mergeObjectArrays(A,B,key){const uniqueValues=new Set(A.map((obj=>obj[key]))),newArr=[...A];for(let i=0;i{if(order)return(channel1,channel2)=>{switch(order){case"latest_last_message":return channel1.lastMessage&&channel2.lastMessage?channel2.lastMessage.createdAt-channel1.lastMessage.createdAt:channel1.lastMessage?-1:channel2.lastMessage?1:channel2.createdAt-channel1.createdAt;case"chronological":return channel2.createdAt-channel1.createdAt;case"channel_name_alphabetical":return channel1.name.localeCompare(channel2.name);default:return 0}}};function getGroupChannels(channels){return channels.filter((it=>it.isGroupChannel()))}var useGroupChannelList_awaiter=function(thisArg,_arguments,P,generator){return new(P||(P=Promise))((function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):function adopt(value){return value instanceof P?value:new P((function(resolve){resolve(value)}))}(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())}))};const useGroupChannelList=(sdk,options)=>{var _a,_b,_c;const deliveryReceiptEnabled=Boolean(null===(_b=null===(_a=sdk.appInfo)||void 0===_a?void 0:_a.premiumFeatureList)||void 0===_b?void 0:_b.includes(premiumFeatures_delivery_receipt)),collectionRef=Object(react.useRef)(),internalOptions=Object(react.useRef)(options);internalOptions.current=options;const{initialized:initialized,groupChannels:groupChannels,refreshing:refreshing,appendChannels:appendChannels,deleteChannels:deleteChannels,updateRefreshing:updateRefreshing,updateInitialized:updateInitialized}=(order=>{const[{initialized:initialized,refreshing:refreshing,groupChannels:groupChannels},dispatch]=Object(react.useReducer)(defaultReducer,{initialized:!1,refreshing:!1,groupChannels:[],order:order});return{updateInitialized:status=>{dispatch({type:"update_initialized",value:{status:status}})},updateRefreshing:status=>{dispatch({type:"update_refreshing",value:{status:status}})},updateChannels:channels=>{dispatch({type:"update_channels",value:{channels:channels}})},deleteChannels:channelUrls=>{dispatch({type:"delete_channels",value:{channelUrls:channelUrls}})},appendChannels:(channels,clearBeforeAction)=>{dispatch({type:"append_channels",value:{channels:channels,clearBeforeAction:clearBeforeAction}})},updateOrder:order=>{dispatch({type:"update_order",value:{order:order}})},initialized:initialized,refreshing:refreshing,groupChannels:groupChannels}})(),updateChannelsAndMarkAsDelivered=(shouldMarkAsDelivered,source,updatedChannels)=>{var _a,_b,_c,_d;const channels=null!==(_b=null===(_a=collectionRef.current)||void 0===_a?void 0:_a.channels)&&void 0!==_b?_b:[];if(appendChannels(channels,!0),shouldMarkAsDelivered&&deliveryReceiptEnabled)switch(source){case _bundle_17fdda58.p.EVENT_MESSAGE_RECEIVED:case _bundle_17fdda58.p.EVENT_MESSAGE_SENT:case _bundle_17fdda58.p.SYNC_CHANNEL_BACKGROUND:case _bundle_17fdda58.p.SYNC_CHANNEL_CHANGELOGS:case void 0:null===(_d=null===(_c=internalOptions.current)||void 0===_c?void 0:_c.markAsDelivered)||void 0===_d||_d.call(_c,null!=updatedChannels?updatedChannels:channels)}},init=usePreservedCallback((uid=>useGroupChannelList_awaiter(void 0,void 0,void 0,(function*(){var _d,_e,_f,_g;collectionRef.current&&(null===(_d=collectionRef.current)||void 0===_d||_d.dispose()),uid&&(collectionRef.current=((sdk,collectionCreator)=>{const basicParams={includeEmpty:sbuConstants.collection.groupChannel.defaultIncludeEmpty,limit:sbuConstants.collection.groupChannel.defaultLimit,order:sbuConstants.collection.groupChannel.defaultOrder};return(null==collectionCreator?void 0:collectionCreator(basicParams))||sdk.groupChannel.createGroupChannelCollection(Object.assign(Object.assign({},basicParams),{filter:new _bundle_17fdda58.f(basicParams)}))})(sdk,null==options?void 0:options.collectionCreator),null===(_e=collectionRef.current)||void 0===_e||_e.setGroupChannelCollectionHandler({onChannelsAdded:(context,channels)=>{var _a,_b;const groupChannels=channels.filter((channel=>channel.isGroupChannel()));updateChannelsAndMarkAsDelivered(!0,context.source,groupChannels),null===(_b=null===(_a=internalOptions.current)||void 0===_a?void 0:_a.onChannelsAdded)||void 0===_b||_b.call(_a,groupChannels)},onChannelsUpdated:(context,channels)=>{var _a,_b;const groupChannels=channels.filter((channel=>channel.isGroupChannel()));updateChannelsAndMarkAsDelivered(!0,context.source,groupChannels),null===(_b=null===(_a=internalOptions.current)||void 0===_a?void 0:_a.onChannelsUpdated)||void 0===_b||_b.call(_a,groupChannels)},onChannelsDeleted:(_,channelUrls)=>{var _a,_b;updateChannelsAndMarkAsDelivered(!1),null===(_b=null===(_a=internalOptions.current)||void 0===_a?void 0:_a.onChannelsDeleted)||void 0===_b||_b.call(_a,channelUrls)}}),(null===(_f=collectionRef.current)||void 0===_f?void 0:_f.hasMore)&&(yield null===(_g=collectionRef.current)||void 0===_g?void 0:_g.loadMore(),updateChannelsAndMarkAsDelivered(!0)))}))));Object(react.useEffect)((()=>()=>{var _a;collectionRef.current&&(null===(_a=collectionRef.current)||void 0===_a||_a.dispose())}),[]),useAsyncEffect((()=>useGroupChannelList_awaiter(void 0,void 0,void 0,(function*(){updateInitialized(!1),sdk.currentUser&&(yield init(sdk.currentUser.userId),updateInitialized(!0))}))),[sdk,null===(_c=sdk.currentUser)||void 0===_c?void 0:_c.userId]),useGroupChannelHandler(sdk,{onUserBanned:(channel,user)=>{var _a,_b,_c;user.userId===(null===(_a=sdk.currentUser)||void 0===_a?void 0:_a.userId)?(deleteChannels([channel.url]),null===(_c=null===(_b=internalOptions.current)||void 0===_b?void 0:_b.onChannelsDeleted)||void 0===_c||_c.call(_b,[channel.url])):updateChannelsAndMarkAsDelivered(!1)}});return{initialized:initialized,groupChannels:groupChannels,refresh:usePreservedCallback((()=>useGroupChannelList_awaiter(void 0,void 0,void 0,(function*(){sdk.currentUser&&(updateRefreshing(!0),yield init(sdk.currentUser.userId),updateRefreshing(!1))})))),refreshing:refreshing,loadMore:usePreservedCallback((()=>useGroupChannelList_awaiter(void 0,void 0,void 0,(function*(){var _h,_j;(null===(_h=collectionRef.current)||void 0===_h?void 0:_h.hasMore)&&(yield null===(_j=collectionRef.current)||void 0===_j?void 0:_j.loadMore(),updateChannelsAndMarkAsDelivered(!0))}))))}};var _bundle_c578be85=__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-c578be85.js"),_bundle_121c0f7c=__webpack_require__("./node_modules/@sendbird/chat/lib/__bundle-121c0f7c.js");function isSendableMessage(msg){return null!=msg&&"sendingStatus"in msg}function isMyMessage(msg,currentUserId="##__USER_ID_IS_NOT_PROVIDED__##"){var _a;return!!isSendableMessage(msg)&&(null===(_a=msg.sender)||void 0===_a?void 0:_a.userId)===currentUserId}function getMessageUniqId(msg){return"sendingStatus"in msg?"succeeded"===msg.sendingStatus?String(msg.messageId):msg.reqId:String(msg.messageId)}function isBoolean(val){return"boolean"==typeof val}function isOneOf(val,values){return values.includes(val)}function isNotEmptyArray(arr){return!(!arr||!Array.isArray(arr))&&0!==arr.length}function snakeToCamel(obj){if("object"!=typeof obj||null===obj)return obj;if(Array.isArray(obj))return obj.map((item=>snakeToCamel(item)));const result={};return Object.keys(obj).forEach((key=>{const camelKey=key.replace(/_\w/g,(m=>m[1].toUpperCase()));result[camelKey]=snakeToCamel(obj[key])})),result}function arrayToMapWithGetter(arr,getSelector){return arr.reduce(((accum,curr)=>(accum[getSelector(curr)]=curr,accum)),{})}var reducer_rest=function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i{var draft=reducer_rest(_a,[]);switch(action.type){case"update_initialized":return draft.initialized=action.value.status,draft;case"update_refreshing":return draft.refreshing=action.value.status,draft;case"update_loading":return draft.loading=action.value.status,draft;case"update_messages":{const userId=action.value.currentUserId;if(action.value.clearBeforeAction)draft.messageMap=messagesToObject(action.value.messages);else{const nextMessages=action.value.messages.filter((next=>{var _a;if(isMyMessage(next,userId)){const prev=null!==(_a=draft.messageMap[next.reqId])&&void 0!==_a?_a:draft.messageMap[next.messageId];if(isMyMessage(prev,userId)){const shouldUpdate=shouldUpdateMessage(prev,next);return shouldUpdate&&(delete draft.messageMap[prev.reqId],delete draft.messageMap[prev.messageId]),shouldUpdate}}return!0})),obj=messagesToObject(nextMessages);draft.messageMap=Object.assign(Object.assign({},draft.messageMap),obj)}return draft}case"update_new_messages":{const userId=action.value.currentUserId,newMessages=action.value.messages.filter((it=>function isNewMessage(msg,currentUserId){return!isMyMessage(msg,currentUserId)&&!msg.isAdminMessage()&&0===msg.updatedAt}(it,userId)));if(action.value.clearBeforeAction)draft.newMessageMap=arrayToMapWithGetter(newMessages,getMessageUniqId);else{newMessages.map((it=>it.messageId)).forEach((key=>delete draft.newMessageMap[key])),draft.newMessageMap=Object.assign(Object.assign({},draft.newMessageMap),arrayToMapWithGetter(newMessages,getMessageUniqId))}return draft}case"delete_messages":case"delete_new_messages":{const key="delete_messages"===action.type?"messageMap":"newMessageMap";return draft[key]=Object.assign({},draft[key]),action.value.messageIds.forEach((msgId=>{const message=draft[key][msgId];message&&(isSendableMessage(message)&&delete draft[key][message.reqId],delete draft[key][message.messageId])})),action.value.reqIds.forEach((reqId=>{const message=draft[key][reqId];message&&(isSendableMessage(message)&&delete draft[key][message.reqId],delete draft[key][message.messageId])})),draft}}},messagesToObject=messages=>messages.reduce(((accum,curr)=>(isSendableMessage(curr)?(accum[curr.reqId]=curr,curr.sendingStatus===_bundle_c578be85.tb.SUCCEEDED&&(accum[curr.messageId]=curr)):accum[curr.messageId]=curr,accum)),{}),shouldUpdateMessage=(prev,next)=>prev.sendingStatus===_bundle_c578be85.tb.SUCCEEDED?next.sendingStatus===_bundle_c578be85.tb.SUCCEEDED:prev.sendingStatus!==next.sendingStatus,useChannelMessagesReducer=(sortComparator=defaultMessageComparator)=>{const[{initialized:initialized,loading:loading,refreshing:refreshing,messageMap:messageMap,newMessageMap:newMessageMap},dispatch]=Object(react.useReducer)(reducer_defaultReducer,{initialized:!1,loading:!0,refreshing:!1,messageMap:{},newMessageMap:{}}),newMessages=Object.values(newMessageMap);return{updateInitialized:status=>{dispatch({type:"update_initialized",value:{status:status}})},updateLoading:status=>{dispatch({type:"update_loading",value:{status:status}})},updateRefreshing:status=>{dispatch({type:"update_refreshing",value:{status:status}})},updateMessages:(messages,clearBeforeAction,currentUserId)=>{dispatch({type:"update_messages",value:{messages:messages,clearBeforeAction:clearBeforeAction,currentUserId:currentUserId}})},deleteMessages:(messageIds,reqIds)=>{dispatch({type:"delete_messages",value:{messageIds:messageIds,reqIds:reqIds}})},initialized:initialized,loading:loading,refreshing:refreshing,messages:Object(react.useMemo)((()=>Array.from(new Set(Object.values(messageMap))).sort(sortComparator)),[messageMap]),newMessages:newMessages,updateNewMessages:(messages,clearBeforeAction,currentUserId)=>{dispatch({type:"update_new_messages",value:{messages:messages,clearBeforeAction:clearBeforeAction,currentUserId:currentUserId}})},deleteNewMessages:(messageIds,reqIds)=>{dispatch({type:"delete_new_messages",value:{messageIds:messageIds,reqIds:reqIds}})}}},LARGE_OFFSET=Math.floor(Number.MAX_SAFE_INTEGER/10);function defaultMessageComparator(a,b){let aStatusOffset=0,bStatusOffset=0;return isSendableMessage(a)&&"succeeded"!==a.sendingStatus&&(aStatusOffset=LARGE_OFFSET),isSendableMessage(b)&&"succeeded"!==b.sendingStatus&&(bStatusOffset=LARGE_OFFSET),a.createdAt+aStatusOffset-(b.createdAt+bStatusOffset)}var useGroupChannelMessages_awaiter=function(thisArg,_arguments,P,generator){return new(P||(P=Promise))((function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):function adopt(value){return value instanceof P?value:new P((function(resolve){resolve(value)}))}(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())}))};function getCollectionLimitBy(startingPoint){return startingPoint{var _a,_b,_c;const internalOptions=Object(react.useRef)(options);internalOptions.current=options;const channelRef=Object(react.useRef)(channel);channelRef.current=channel;const logger=internalOptions.current.logger,initialStartingPoint=null!==(_a=internalOptions.current.startingPoint)&&void 0!==_a?_a:Number.MAX_SAFE_INTEGER,initialLimit=getCollectionLimitBy(initialStartingPoint),isFetching=Object(react.useRef)({prev:!1,next:!1}),forceUpdate=(()=>{const[,updater]=Object(react.useState)(0);return Object(react.useCallback)((()=>updater((prev=>prev+1))),[])})(),collectionRef=Object(react.useRef)({initialized:!1,apiInitialized:!1,instance:null}),{initialized:initialized,loading:loading,refreshing:refreshing,messages:messages,newMessages:newMessages,updateMessages:updateMessages,updateNewMessages:updateNewMessages,deleteNewMessages:deleteNewMessages,deleteMessages:deleteMessages,updateInitialized:updateInitialized,updateLoading:updateLoading,updateRefreshing:updateRefreshing}=useChannelMessagesReducer(null==options?void 0:options.sortComparator),markAsReadBySource=usePreservedCallback((source=>{var _a,_b,_c,_d;if(!channelRef.current||!channelRef.current.url)return null===(_a=null==logger?void 0:logger.error)||void 0===_a?void 0:_a.call(logger,"[useGroupChannelMessages] channel is required");try{switch(source){case _bundle_c578be85.a.EVENT_MESSAGE_RECEIVED:case _bundle_c578be85.a.EVENT_MESSAGE_SENT_SUCCESS:case _bundle_c578be85.a.SYNC_MESSAGE_FILL:case void 0:null===(_c=(_b=internalOptions.current).markAsRead)||void 0===_c||_c.call(_b,[channelRef.current])}}catch(e){null===(_d=null==logger?void 0:logger.warn)||void 0===_d||_d.call(logger,"[useGroupChannelMessages/markAsReadBySource]",e)}})),updateNewMessagesReceived=usePreservedCallback(((source,messages)=>{var _a,_b,_c,_d,_e;const incomingMessages=messages.filter((it=>{var _a;return!isMyMessage(it,null===(_a=sdk.currentUser)||void 0===_a?void 0:_a.userId)}));if(incomingMessages.length>0)switch(source){case _bundle_c578be85.a.EVENT_MESSAGE_RECEIVED:case _bundle_c578be85.a.SYNC_MESSAGE_FILL:(null===(_b=(_a=internalOptions.current).shouldCountNewMessages)||void 0===_b?void 0:_b.call(_a))&&updateNewMessages(incomingMessages,!1,null===(_c=sdk.currentUser)||void 0===_c?void 0:_c.userId),null===(_e=(_d=internalOptions.current).onMessagesReceived)||void 0===_e||_e.call(_d,incomingMessages)}})),init=usePreservedCallback(((startingPoint,limit)=>useGroupChannelMessages_awaiter(void 0,void 0,void 0,(function*(){return new Promise((resolve=>{var _a,_b;if(!channelRef.current||!channelRef.current.url)return null===(_a=null==logger?void 0:logger.error)||void 0===_a?void 0:_a.call(logger,"[useGroupChannelMessages] channel is required");collectionRef.current.instance&&collectionRef.current.instance.dispose(),markAsReadBySource(),updateNewMessages([],!0,null===(_b=sdk.currentUser)||void 0===_b?void 0:_b.userId);const updateUnsentMessages=()=>{var _a,_b,_c;const{pendingMessages:pendingMessages,failedMessages:failedMessages}=null!==(_a=collectionRef.current.instance)&&void 0!==_a?_a:{};isNotEmptyArray(pendingMessages)&&updateMessages(pendingMessages,!1,null===(_b=sdk.currentUser)||void 0===_b?void 0:_b.userId),isNotEmptyArray(failedMessages)&&updateMessages(failedMessages,!1,null===(_c=sdk.currentUser)||void 0===_c?void 0:_c.userId)},collectionInstance=((channel,limit,options)=>{var _a;const basicParams={prevResultLimit:limit.prev,nextResultLimit:limit.next,startingPoint:null==options?void 0:options.startingPoint,replyType:null==options?void 0:options.replyType},passedCollection=null===(_a=null==options?void 0:options.collectionCreator)||void 0===_a?void 0:_a.call(options,basicParams);return passedCollection||channel.createMessageCollection(Object.assign(Object.assign({},basicParams),{filter:new _bundle_121c0f7c.g(basicParams)}))})(channelRef.current,limit,Object.assign(Object.assign({},internalOptions.current),{startingPoint:startingPoint}));collectionRef.current={apiInitialized:!1,initialized:!1,instance:collectionInstance},collectionInstance.setMessageCollectionHandler({onMessagesAdded:(ctx,__,messages)=>{var _a;markAsReadBySource(ctx.source),updateNewMessagesReceived(ctx.source,messages),updateMessages(messages,!1,null===(_a=sdk.currentUser)||void 0===_a?void 0:_a.userId)},onMessagesUpdated:(ctx,__,messages)=>{var _a,_b,_c;markAsReadBySource(ctx.source),updateNewMessagesReceived(ctx.source,messages),updateMessages(messages,!1,null===(_a=sdk.currentUser)||void 0===_a?void 0:_a.userId),ctx.source===_bundle_c578be85.a.EVENT_MESSAGE_UPDATED&&(null===(_c=(_b=internalOptions.current).onMessagesUpdated)||void 0===_c||_c.call(_b,messages))},onMessagesDeleted:(_,__,___,messages)=>{const msgIds=messages.map((it=>it.messageId)),reqIds=messages.filter(isSendableMessage).map((it=>it.reqId));deleteMessages(msgIds,reqIds),deleteNewMessages(msgIds,reqIds)},onChannelDeleted:(_,channelUrl)=>{var _a,_b;null===(_b=(_a=internalOptions.current).onChannelDeleted)||void 0===_b||_b.call(_a,channelUrl)},onChannelUpdated:(_,channel)=>{var _a,_b;forceUpdate(),null===(_b=(_a=internalOptions.current).onChannelUpdated)||void 0===_b||_b.call(_a,channel)},onHugeGapDetected:()=>{init(Number.MAX_SAFE_INTEGER,sbuConstants.collection.message.defaultLimit)}}),collectionInstance.initialize(_bundle_17fdda58.s.CACHE_AND_REPLACE_BY_API).onCacheResult(((err,messages)=>{var _a,_b,_c;err?sdk.isCacheEnabled&&(null===(_a=null==logger?void 0:logger.error)||void 0===_a||_a.call(logger,"[useGroupChannelMessages/onCacheResult]",err)):messages&&(null===(_b=null==logger?void 0:logger.debug)||void 0===_b||_b.call(logger,"[useGroupChannelMessages/onCacheResult]","message length:",messages.length),updateMessages(messages,!0,null===(_c=sdk.currentUser)||void 0===_c?void 0:_c.userId),updateUnsentMessages(),messages.length>0&&(collectionRef.current.initialized=!0,resolve()))})).onApiResult(((err,messages)=>{var _a,_b,_c,_d,_e;err?null===(_a=null==logger?void 0:logger.warn)||void 0===_a||_a.call(logger,"[useGroupChannelMessages/onApiResult]",err):messages&&(null===(_b=null==logger?void 0:logger.debug)||void 0===_b||_b.call(logger,"[useGroupChannelMessages/onApiResult]","message length:",messages.length),updateMessages(messages,!0,null===(_c=sdk.currentUser)||void 0===_c?void 0:_c.userId),internalOptions.current.startingPoint||null===(_e=(_d=internalOptions.current).onMessagesReceived)||void 0===_e||_e.call(_d,messages),sdk.isCacheEnabled&&updateUnsentMessages()),collectionRef.current.initialized=!0,collectionRef.current.apiInitialized=!0,resolve()}))}))}))));useGroupChannelHandler(sdk,{onUserBanned(eventChannel,bannedUser){var _a,_b,_c;eventChannel.isGroupChannel()&&!function isDifferentChannel(a,b){return!a||!b||a.url!==b.url}(eventChannel,channelRef.current)&&(bannedUser.userId===(null===(_a=sdk.currentUser)||void 0===_a?void 0:_a.userId)?null===(_c=(_b=internalOptions.current).onCurrentUserBanned)||void 0===_c||_c.call(_b):forceUpdate())}}),Object(react.useLayoutEffect)((()=>{const timeout=setTimeout((()=>useGroupChannelMessages_awaiter(void 0,void 0,void 0,(function*(){sdk.currentUser&&channelRef.current&&(updateInitialized(!1),updateLoading(!0),yield init(initialStartingPoint,initialLimit),updateLoading(!1),updateInitialized(!0))}))));return()=>clearTimeout(timeout)}),[sdk,null===(_b=sdk.currentUser)||void 0===_b?void 0:_b.userId,null===(_c=channelRef.current)||void 0===_c?void 0:_c.url,internalOptions.current.replyType]),Object(react.useEffect)((()=>()=>{collectionRef.current.instance&&collectionRef.current.instance.dispose()}),[]);const refresh=usePreservedCallback((()=>useGroupChannelMessages_awaiter(void 0,void 0,void 0,(function*(){sdk.currentUser&&channelRef.current&&(updateRefreshing(!0),yield init(Number.MAX_SAFE_INTEGER,sbuConstants.collection.message.defaultLimit),updateRefreshing(!1))})))),loadPrevious=usePreservedCallback((()=>useGroupChannelMessages_awaiter(void 0,void 0,void 0,(function*(){var _d;const collection=collectionRef.current.instance;if((null==collection?void 0:collection.hasPrevious)&&!isFetching.current.prev)try{isFetching.current.prev=!0;const list=yield collection.loadPrevious();updateMessages(list,!1,null===(_d=sdk.currentUser)||void 0===_d?void 0:_d.userId)}catch(_e){}finally{isFetching.current.prev=!1}})))),hasPrevious=usePreservedCallback((()=>{const{initialized:initialized,instance:instance}=collectionRef.current;return!(!initialized||!instance)&&instance.hasPrevious})),loadNext=usePreservedCallback((()=>useGroupChannelMessages_awaiter(void 0,void 0,void 0,(function*(){var _f;const collection=collectionRef.current.instance;if((null==collection?void 0:collection.hasNext)&&!isFetching.current.next)try{isFetching.current.next=!0;const list=yield collection.loadNext();updateMessages(list,!1,null===(_f=sdk.currentUser)||void 0===_f?void 0:_f.userId)}catch(_g){}finally{isFetching.current.next=!1}})))),hasNext=usePreservedCallback((()=>{const{initialized:initialized,apiInitialized:apiInitialized,instance:instance}=collectionRef.current;return!!(apiInitialized&&initialized&&instance)&&instance.hasNext})),sendUserMessage=usePreservedCallback(((params,onPending)=>{var _a;if(!channelRef.current||!channelRef.current.url)throw null===(_a=null==logger?void 0:logger.error)||void 0===_a||_a.call(logger,"[useGroupChannelMessages] channel is required"),new Error("Channel is required");return new Promise(((resolve,reject)=>{channelRef.current.sendUserMessage(params).onPending((pendingMessage=>{var _a;pendingMessage.channelUrl===channelRef.current.url&&updateMessages([pendingMessage],!1,null===(_a=sdk.currentUser)||void 0===_a?void 0:_a.userId),null==onPending||onPending(pendingMessage)})).onSucceeded((sentMessage=>{var _a;sentMessage.channelUrl===channelRef.current.url&&updateMessages([sentMessage],!1,null===(_a=sdk.currentUser)||void 0===_a?void 0:_a.userId),resolve(sentMessage)})).onFailed(((err,failedMessage)=>{var _a;failedMessage&&failedMessage.channelUrl===channelRef.current.url&&updateMessages([failedMessage],!1,null===(_a=sdk.currentUser)||void 0===_a?void 0:_a.userId),reject(err)}))}))})),sendFileMessage=usePreservedCallback(((params,onPending)=>{var _a;if(!channelRef.current||!channelRef.current.url)throw null===(_a=null==logger?void 0:logger.error)||void 0===_a||_a.call(logger,"[useGroupChannelMessages] channel is required"),new Error("Channel is required");return new Promise(((resolve,reject)=>{channelRef.current.sendFileMessage(params).onPending((pendingMessage=>{var _a;pendingMessage.channelUrl===channelRef.current.url&&updateMessages([pendingMessage],!1,null===(_a=sdk.currentUser)||void 0===_a?void 0:_a.userId),null==onPending||onPending(pendingMessage)})).onSucceeded((sentMessage=>{var _a;sentMessage.channelUrl===channelRef.current.url&&updateMessages([sentMessage],!1,null===(_a=sdk.currentUser)||void 0===_a?void 0:_a.userId),resolve(sentMessage)})).onFailed(((err,failedMessage)=>{var _a;failedMessage&&failedMessage.channelUrl===channelRef.current.url&&updateMessages([failedMessage],!1,null===(_a=sdk.currentUser)||void 0===_a?void 0:_a.userId),reject(err)}))}))})),sendFileMessages=usePreservedCallback(((paramsList,onPending)=>useGroupChannelMessages_awaiter(void 0,void 0,void 0,(function*(){var _h;if(!channelRef.current||!channelRef.current.url)throw null===(_h=null==logger?void 0:logger.error)||void 0===_h||_h.call(logger,"[useGroupChannelMessages] channel is required"),new Error("Channel is required");return new Promise((resolve=>{const messages=[];channelRef.current.sendFileMessages(paramsList).onPending((pendingMessage=>{var _a;pendingMessage.channelUrl===channelRef.current.url&&updateMessages([pendingMessage],!1,null===(_a=sdk.currentUser)||void 0===_a?void 0:_a.userId),null==onPending||onPending(pendingMessage)})).onSucceeded((sentMessage=>{var _a;sentMessage.isFileMessage()&&sentMessage.channelUrl===channelRef.current.url&&(updateMessages([sentMessage],!1,null===(_a=sdk.currentUser)||void 0===_a?void 0:_a.userId),messages.push(sentMessage)),messages.length===paramsList.length&&resolve(messages)})).onFailed(((_,failedMessage)=>{var _a;failedMessage&&failedMessage.channelUrl===channelRef.current.url?(updateMessages([failedMessage],!1,null===(_a=sdk.currentUser)||void 0===_a?void 0:_a.userId),messages.push(failedMessage)):messages.push(null),messages.length===paramsList.length&&resolve(messages)}))}))})))),sendMultipleFilesMessage=usePreservedCallback(((params,onPending)=>{var _a;if(!channelRef.current||!channelRef.current.url)throw null===(_a=null==logger?void 0:logger.error)||void 0===_a||_a.call(logger,"[useGroupChannelMessages] channel is required"),new Error("Channel is required");return new Promise(((resolve,reject)=>{channelRef.current.sendMultipleFilesMessage(params).onPending((pendingMessage=>{var _a;pendingMessage.channelUrl===channelRef.current.url&&updateMessages([pendingMessage],!1,null===(_a=sdk.currentUser)||void 0===_a?void 0:_a.userId),null==onPending||onPending(pendingMessage)})).onFileUploaded((()=>{forceUpdate()})).onSucceeded((sentMessage=>{var _a;sentMessage.channelUrl===channelRef.current.url&&updateMessages([sentMessage],!1,null===(_a=sdk.currentUser)||void 0===_a?void 0:_a.userId),resolve(sentMessage)})).onFailed(((err,failedMessage)=>{var _a;failedMessage&&failedMessage.channelUrl===channelRef.current.url&&updateMessages([failedMessage],!1,null===(_a=sdk.currentUser)||void 0===_a?void 0:_a.userId),reject(err)}))}))})),updateUserMessage=usePreservedCallback(((messageId,params)=>useGroupChannelMessages_awaiter(void 0,void 0,void 0,(function*(){var _j,_k;if(!channelRef.current||!channelRef.current.url)throw null===(_j=null==logger?void 0:logger.error)||void 0===_j||_j.call(logger,"[useGroupChannelMessages] channel is required"),new Error("Channel is required");const updatedMessage=yield channelRef.current.updateUserMessage(messageId,params);return updatedMessage.channelUrl===channelRef.current.url&&updateMessages([updatedMessage],!1,null===(_k=sdk.currentUser)||void 0===_k?void 0:_k.userId),updatedMessage})))),updateFileMessage=usePreservedCallback(((messageId,params)=>useGroupChannelMessages_awaiter(void 0,void 0,void 0,(function*(){var _l,_m;if(!channelRef.current||!channelRef.current.url)throw null===(_l=null==logger?void 0:logger.error)||void 0===_l||_l.call(logger,"[useGroupChannelMessages] channel is required"),new Error("Channel is required");const updatedMessage=yield channelRef.current.updateFileMessage(messageId,params);return updatedMessage.channelUrl===channelRef.current.url&&updateMessages([updatedMessage],!1,null===(_m=sdk.currentUser)||void 0===_m?void 0:_m.userId),updatedMessage})))),resendMessage=usePreservedCallback((failedMessage=>useGroupChannelMessages_awaiter(void 0,void 0,void 0,(function*(){var _o;if(!channelRef.current||!channelRef.current.url)throw null===(_o=null==logger?void 0:logger.error)||void 0===_o||_o.call(logger,"[useGroupChannelMessages] channel is required"),new Error("Channel is required");return new Promise(((resolve,reject)=>{let handler;failedMessage.isUserMessage()&&(handler=channelRef.current.resendMessage(failedMessage)),failedMessage.isFileMessage()&&(handler=channelRef.current.resendMessage(failedMessage)),failedMessage.isMultipleFilesMessage()&&(handler=channelRef.current.resendMessage(failedMessage)),handler&&("onPending"in handler&&handler.onPending((message=>{var _a;message.channelUrl===channelRef.current.url&&updateMessages([message],!1,null===(_a=sdk.currentUser)||void 0===_a?void 0:_a.userId)})),"onFileUploaded"in handler&&handler.onFileUploaded((()=>{forceUpdate()})),"onSucceeded"in handler&&handler.onSucceeded((message=>{var _a;message.channelUrl===channelRef.current.url&&updateMessages([message],!1,null===(_a=sdk.currentUser)||void 0===_a?void 0:_a.userId),resolve(message)})),"onFailed"in handler&&handler.onFailed(((err,message)=>{var _a;message&&message.channelUrl===channelRef.current.url&&updateMessages([message],!1,null===(_a=sdk.currentUser)||void 0===_a?void 0:_a.userId),reject(err)})))}))})))),deleteMessage=usePreservedCallback((message=>useGroupChannelMessages_awaiter(void 0,void 0,void 0,(function*(){var _p,_q;if(!channelRef.current||!channelRef.current.url)throw null===(_p=null==logger?void 0:logger.error)||void 0===_p||_p.call(logger,"[useGroupChannelMessages] channel is required"),new Error("Channel is required");if("succeeded"===message.sendingStatus)message.isUserMessage()&&(yield channelRef.current.deleteMessage(message)),message.isFileMessage()&&(yield channelRef.current.deleteMessage(message)),message.isMultipleFilesMessage()&&(yield channelRef.current.deleteMessage(message));else try{yield null===(_q=collectionRef.current.instance)||void 0===_q?void 0:_q.removeFailedMessage(message.reqId)}finally{deleteMessages([message.messageId],[message.reqId])}})))),resetNewMessages=usePreservedCallback((()=>{var _a;updateNewMessages([],!0,null===(_a=sdk.currentUser)||void 0===_a?void 0:_a.userId)}));return{initialized:initialized,loading:loading,refreshing:refreshing,messages:messages,newMessages:newMessages,resetNewMessages:resetNewMessages,refresh:refresh,loadPrevious:loadPrevious,hasPrevious:hasPrevious,loadNext:loadNext,hasNext:hasNext,sendUserMessage:sendUserMessage,sendFileMessage:sendFileMessage,sendFileMessages:sendFileMessages,sendMultipleFilesMessage:sendMultipleFilesMessage,updateUserMessage:updateUserMessage,updateFileMessage:updateFileMessage,resendMessage:resendMessage,deleteMessage:deleteMessage,resetWithStartingPoint:usePreservedCallback((startingPoint=>useGroupChannelMessages_awaiter(void 0,void 0,void 0,(function*(){var _r;if(sdk.currentUser&&channelRef.current){const limit=getCollectionLimitBy(startingPoint);updateLoading(!0),updateMessages([],!0,null===(_r=sdk.currentUser)||void 0===_r?void 0:_r.userId),yield init(startingPoint,limit),updateLoading(!1)}})))),_dangerous_reducer_updateMessages:updateMessages,_dangerous_reducer_deleteMessages:deleteMessages}},useIIFE=callback=>useIIFE_iife(callback),useIIFE_iife=callback=>callback();function mergeObject(target,subset){const object=Object.assign({},target);return Object.keys(subset).forEach((key=>{Object.prototype.hasOwnProperty.call(object,key)&&function isSameType(a,b){return Object.prototype.toString.call(a)===Object.prototype.toString.call(b)}(object[key],subset[key])&&("object"!=typeof subset[key]||Array.isArray(subset[key])?object[key]=subset[key]:object[key]=mergeObject(object[key],subset[key]))})),object}const createInitialConfig=()=>({common:{enableUsingDefaultUserProfile:!1},groupChannel:{channel:{enableMention:!1,enableOgtag:!0,enableReactions:!0,enableReactionsSupergroup:!1,enableTypingIndicator:!0,enableVoiceMessage:!1,input:{camera:{enablePhoto:!0,enableVideo:!0},enableDocument:!0,gallery:{enablePhoto:!0,enableVideo:!0}},replyType:"quote_reply",threadReplySelectType:"thread",typingIndicatorTypes:new Set(["text"]),enableFeedback:!1,enableSuggestedReplies:!1,showSuggestedRepliesFor:"last_message_only"},channelList:{enableMessageReceiptStatus:!1,enableTypingIndicator:!1},setting:{enableMessageSearch:!1}},openChannel:{channel:{enableOgtag:!0,input:{camera:{enablePhoto:!0,enableVideo:!0},enableDocument:!0,gallery:{enablePhoto:!0,enableVideo:!0}}}}});const createInitialRemoteConfig=()=>function deleteLocalConfigs(config){return delete config.groupChannel.channel.typingIndicatorTypes,delete config.groupChannel.channel.enableFeedback,delete config.groupChannel.channel.enableSuggestedReplies,delete config.groupChannel.channel.showSuggestedRepliesFor,config}(createInitialConfig()),initialConfig=createInitialConfig(),initialRemoteConfig=createInitialRemoteConfig();var configManager_awaiter=function(thisArg,_arguments,P,generator){return new(P||(P=Promise))((function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):function adopt(value){return value instanceof P?value:new P((function(resolve){resolve(value)}))}(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())}))};const MemoryStorage={items:{},getItem(key){var _a;return configManager_awaiter(this,void 0,void 0,(function*(){return null!==(_a=MemoryStorage.items[key])&&void 0!==_a?_a:null}))},setItem(key,value){return configManager_awaiter(this,void 0,void 0,(function*(){MemoryStorage.items[key]=value}))}};class configManager_UIKitConfigManager{constructor(storage){this.storage=null!=storage?storage:MemoryStorage}init(appId){return this.key=`sbu@${appId}.uikitConfiguration`,this.get()}get safeKey(){if(!this.key)throw new Error("Please UIKitConfigManager.init() first");return this.key}update(remoteConfigPayload){return configManager_awaiter(this,void 0,void 0,(function*(){const storedConfigPayload=yield this.get(),mergedConfigPayload={updatedAt:remoteConfigPayload.updatedAt,configuration:mergeObject(storedConfigPayload.configuration,remoteConfigPayload.configuration)};return yield this.storage.setItem(this.safeKey,JSON.stringify(mergedConfigPayload)),mergedConfigPayload}))}get(){return configManager_awaiter(this,void 0,void 0,(function*(){const initialPayload={updatedAt:0,configuration:initialRemoteConfig};try{const storedConfig=yield this.storage.getItem(this.safeKey);return storedConfig?JSON.parse(storedConfig):initialPayload}catch(_a){return initialPayload}}))}}function updateGroupChannelConfigs(target,local,remote){!function updateChannelConfig(target,local,remote){var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k,_l,_m,_o,_p,_q,_r,_s,_t,_u,_v,_w,_x,_y,_z,_0,_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16,_17,_18,_19,_20,_21,_22,_23,_24,_25,_26,_27,_28,_29,_30,_31,_32,_33,_34,_35,_36,_37,_38,_39,_40,_41,_42,_43,_44,_45,_46,_47,_48,_49,_50,_51,_52,_53,_54,_55,_56,_57,_58,_59,_60,_61,_62,_63,_64,_65,_66,_67,_68,_69,_70,_71,_72,_73;(null===(_a=remote.groupChannel)||void 0===_a?void 0:_a.channel)&&isBoolean(null===(_c=null===(_b=remote.groupChannel)||void 0===_b?void 0:_b.channel)||void 0===_c?void 0:_c.enableOgtag)&&(target.channel.enableOgtag=remote.groupChannel.channel.enableOgtag);(null===(_d=local.groupChannel)||void 0===_d?void 0:_d.channel)&&isBoolean(null===(_f=null===(_e=local.groupChannel)||void 0===_e?void 0:_e.channel)||void 0===_f?void 0:_f.enableOgtag)&&(target.channel.enableOgtag=null===(_h=null===(_g=local.groupChannel)||void 0===_g?void 0:_g.channel)||void 0===_h?void 0:_h.enableOgtag);(null===(_j=remote.groupChannel)||void 0===_j?void 0:_j.channel)&&isBoolean(null===(_l=null===(_k=remote.groupChannel)||void 0===_k?void 0:_k.channel)||void 0===_l?void 0:_l.enableTypingIndicator)&&(target.channel.enableTypingIndicator=null===(_o=null===(_m=remote.groupChannel)||void 0===_m?void 0:_m.channel)||void 0===_o?void 0:_o.enableTypingIndicator);(null===(_p=local.groupChannel)||void 0===_p?void 0:_p.channel)&&isBoolean(null===(_r=null===(_q=local.groupChannel)||void 0===_q?void 0:_q.channel)||void 0===_r?void 0:_r.enableTypingIndicator)&&(target.channel.enableTypingIndicator=null===(_t=null===(_s=local.groupChannel)||void 0===_s?void 0:_s.channel)||void 0===_t?void 0:_t.enableTypingIndicator);(null===(_u=remote.groupChannel)||void 0===_u?void 0:_u.channel)&&isBoolean(null===(_w=null===(_v=remote.groupChannel)||void 0===_v?void 0:_v.channel)||void 0===_w?void 0:_w.enableReactions)&&(target.channel.enableReactions=null===(_y=null===(_x=remote.groupChannel)||void 0===_x?void 0:_x.channel)||void 0===_y?void 0:_y.enableReactions);(null===(_z=local.groupChannel)||void 0===_z?void 0:_z.channel)&&isBoolean(null===(_1=null===(_0=local.groupChannel)||void 0===_0?void 0:_0.channel)||void 0===_1?void 0:_1.enableReactions)&&(target.channel.enableReactions=null===(_3=null===(_2=local.groupChannel)||void 0===_2?void 0:_2.channel)||void 0===_3?void 0:_3.enableReactions);(null===(_4=remote.groupChannel)||void 0===_4?void 0:_4.channel)&&isBoolean(null===(_6=null===(_5=remote.groupChannel)||void 0===_5?void 0:_5.channel)||void 0===_6?void 0:_6.enableReactionsSupergroup)&&(target.channel.enableReactionsSupergroup=null===(_8=null===(_7=remote.groupChannel)||void 0===_7?void 0:_7.channel)||void 0===_8?void 0:_8.enableReactionsSupergroup);(null===(_9=local.groupChannel)||void 0===_9?void 0:_9.channel)&&isBoolean(null===(_11=null===(_10=local.groupChannel)||void 0===_10?void 0:_10.channel)||void 0===_11?void 0:_11.enableReactionsSupergroup)&&(target.channel.enableReactionsSupergroup=null===(_13=null===(_12=local.groupChannel)||void 0===_12?void 0:_12.channel)||void 0===_13?void 0:_13.enableReactionsSupergroup);(null===(_14=remote.groupChannel)||void 0===_14?void 0:_14.channel)&&isBoolean(null===(_16=null===(_15=remote.groupChannel)||void 0===_15?void 0:_15.channel)||void 0===_16?void 0:_16.enableMention)&&(target.channel.enableMention=null===(_18=null===(_17=remote.groupChannel)||void 0===_17?void 0:_17.channel)||void 0===_18?void 0:_18.enableMention);(null===(_19=local.groupChannel)||void 0===_19?void 0:_19.channel)&&isBoolean(null===(_21=null===(_20=local.groupChannel)||void 0===_20?void 0:_20.channel)||void 0===_21?void 0:_21.enableMention)&&(target.channel.enableMention=null===(_23=null===(_22=local.groupChannel)||void 0===_22?void 0:_22.channel)||void 0===_23?void 0:_23.enableMention);(null===(_24=remote.groupChannel)||void 0===_24?void 0:_24.channel)&&isOneOf(null===(_26=null===(_25=remote.groupChannel)||void 0===_25?void 0:_25.channel)||void 0===_26?void 0:_26.replyType,["none","quote_reply","thread"])&&(target.channel.replyType=null===(_28=null===(_27=remote.groupChannel)||void 0===_27?void 0:_27.channel)||void 0===_28?void 0:_28.replyType);(null===(_29=local.groupChannel)||void 0===_29?void 0:_29.channel)&&isOneOf(null===(_31=null===(_30=local.groupChannel)||void 0===_30?void 0:_30.channel)||void 0===_31?void 0:_31.replyType,["none","quote_reply","thread"])&&(target.channel.replyType=null===(_33=null===(_32=local.groupChannel)||void 0===_32?void 0:_32.channel)||void 0===_33?void 0:_33.replyType);(null===(_34=remote.groupChannel)||void 0===_34?void 0:_34.channel)&&isOneOf(null===(_36=null===(_35=remote.groupChannel)||void 0===_35?void 0:_35.channel)||void 0===_36?void 0:_36.threadReplySelectType,["thread","parent"])&&(target.channel.threadReplySelectType=null===(_38=null===(_37=remote.groupChannel)||void 0===_37?void 0:_37.channel)||void 0===_38?void 0:_38.threadReplySelectType);(null===(_39=local.groupChannel)||void 0===_39?void 0:_39.channel)&&isOneOf(null===(_41=null===(_40=local.groupChannel)||void 0===_40?void 0:_40.channel)||void 0===_41?void 0:_41.threadReplySelectType,["thread","parent"])&&(target.channel.threadReplySelectType=null===(_43=null===(_42=local.groupChannel)||void 0===_42?void 0:_42.channel)||void 0===_43?void 0:_43.threadReplySelectType);(null===(_44=remote.groupChannel)||void 0===_44?void 0:_44.channel)&&isBoolean(null===(_46=null===(_45=remote.groupChannel)||void 0===_45?void 0:_45.channel)||void 0===_46?void 0:_46.enableVoiceMessage)&&(target.channel.enableVoiceMessage=null===(_48=null===(_47=remote.groupChannel)||void 0===_47?void 0:_47.channel)||void 0===_48?void 0:_48.enableVoiceMessage);(null===(_49=local.groupChannel)||void 0===_49?void 0:_49.channel)&&isBoolean(null===(_51=null===(_50=local.groupChannel)||void 0===_50?void 0:_50.channel)||void 0===_51?void 0:_51.enableVoiceMessage)&&(target.channel.enableVoiceMessage=null===(_53=null===(_52=local.groupChannel)||void 0===_52?void 0:_52.channel)||void 0===_53?void 0:_53.enableVoiceMessage);(null===(_54=local.groupChannel)||void 0===_54?void 0:_54.channel)&&function isSet(val){return val instanceof Set}(null===(_56=null===(_55=local.groupChannel)||void 0===_55?void 0:_55.channel)||void 0===_56?void 0:_56.typingIndicatorTypes)&&(target.channel.typingIndicatorTypes=null===(_58=null===(_57=local.groupChannel)||void 0===_57?void 0:_57.channel)||void 0===_58?void 0:_58.typingIndicatorTypes);(null===(_59=local.groupChannel)||void 0===_59?void 0:_59.channel)&&isBoolean(null===(_61=null===(_60=local.groupChannel)||void 0===_60?void 0:_60.channel)||void 0===_61?void 0:_61.enableFeedback)&&(target.channel.enableFeedback=null===(_63=null===(_62=local.groupChannel)||void 0===_62?void 0:_62.channel)||void 0===_63?void 0:_63.enableFeedback);(null===(_64=local.groupChannel)||void 0===_64?void 0:_64.channel)&&isBoolean(null===(_66=null===(_65=local.groupChannel)||void 0===_65?void 0:_65.channel)||void 0===_66?void 0:_66.enableSuggestedReplies)&&(target.channel.enableSuggestedReplies=null===(_68=null===(_67=local.groupChannel)||void 0===_67?void 0:_67.channel)||void 0===_68?void 0:_68.enableSuggestedReplies);(null===(_69=local.groupChannel)||void 0===_69?void 0:_69.channel)&&isOneOf(null===(_71=null===(_70=local.groupChannel)||void 0===_70?void 0:_70.channel)||void 0===_71?void 0:_71.showSuggestedRepliesFor,["all_messages","last_message_only"])&&(target.channel.showSuggestedRepliesFor=null===(_73=null===(_72=local.groupChannel)||void 0===_72?void 0:_72.channel)||void 0===_73?void 0:_73.showSuggestedRepliesFor)}(target,local,remote),function updateChannelInputConfig(target,local,remote){var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k,_l,_m,_o,_p,_q,_r,_s,_t,_u,_v,_w,_x,_y,_z,_0,_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16,_17,_18,_19,_20,_21,_22,_23,_24,_25,_26,_27,_28,_29,_30,_31,_32,_33,_34,_35,_36,_37,_38,_39,_40,_41,_42,_43,_44,_45,_46,_47,_48,_49,_50,_51,_52,_53,_54,_55,_56,_57,_58,_59,_60,_61,_62,_63,_64,_65,_66,_67,_68,_69,_70,_71,_72,_73,_74,_75,_76,_77,_78,_79;(null===(_b=null===(_a=remote.groupChannel)||void 0===_a?void 0:_a.channel)||void 0===_b?void 0:_b.input)&&isBoolean(null===(_e=null===(_d=null===(_c=remote.groupChannel)||void 0===_c?void 0:_c.channel)||void 0===_d?void 0:_d.input)||void 0===_e?void 0:_e.enableDocument)&&(target.channel.input.enableDocument=null===(_h=null===(_g=null===(_f=remote.groupChannel)||void 0===_f?void 0:_f.channel)||void 0===_g?void 0:_g.input)||void 0===_h?void 0:_h.enableDocument);(null===(_k=null===(_j=local.groupChannel)||void 0===_j?void 0:_j.channel)||void 0===_k?void 0:_k.input)&&isBoolean(null===(_o=null===(_m=null===(_l=local.groupChannel)||void 0===_l?void 0:_l.channel)||void 0===_m?void 0:_m.input)||void 0===_o?void 0:_o.enableDocument)&&(target.channel.input.enableDocument=null===(_r=null===(_q=null===(_p=local.groupChannel)||void 0===_p?void 0:_p.channel)||void 0===_q?void 0:_q.input)||void 0===_r?void 0:_r.enableDocument);(null===(_u=null===(_t=null===(_s=remote.groupChannel)||void 0===_s?void 0:_s.channel)||void 0===_t?void 0:_t.input)||void 0===_u?void 0:_u.camera)&&isBoolean(null===(_y=null===(_x=null===(_w=null===(_v=remote.groupChannel)||void 0===_v?void 0:_v.channel)||void 0===_w?void 0:_w.input)||void 0===_x?void 0:_x.camera)||void 0===_y?void 0:_y.enablePhoto)&&(target.channel.input.camera.enablePhoto=null===(_2=null===(_1=null===(_0=null===(_z=remote.groupChannel)||void 0===_z?void 0:_z.channel)||void 0===_0?void 0:_0.input)||void 0===_1?void 0:_1.camera)||void 0===_2?void 0:_2.enablePhoto);(null===(_5=null===(_4=null===(_3=local.groupChannel)||void 0===_3?void 0:_3.channel)||void 0===_4?void 0:_4.input)||void 0===_5?void 0:_5.camera)&&isBoolean(null===(_9=null===(_8=null===(_7=null===(_6=local.groupChannel)||void 0===_6?void 0:_6.channel)||void 0===_7?void 0:_7.input)||void 0===_8?void 0:_8.camera)||void 0===_9?void 0:_9.enablePhoto)&&(target.channel.input.camera.enablePhoto=null===(_13=null===(_12=null===(_11=null===(_10=local.groupChannel)||void 0===_10?void 0:_10.channel)||void 0===_11?void 0:_11.input)||void 0===_12?void 0:_12.camera)||void 0===_13?void 0:_13.enablePhoto);(null===(_16=null===(_15=null===(_14=remote.groupChannel)||void 0===_14?void 0:_14.channel)||void 0===_15?void 0:_15.input)||void 0===_16?void 0:_16.camera)&&isBoolean(null===(_20=null===(_19=null===(_18=null===(_17=remote.groupChannel)||void 0===_17?void 0:_17.channel)||void 0===_18?void 0:_18.input)||void 0===_19?void 0:_19.camera)||void 0===_20?void 0:_20.enableVideo)&&(target.channel.input.camera.enableVideo=null===(_24=null===(_23=null===(_22=null===(_21=remote.groupChannel)||void 0===_21?void 0:_21.channel)||void 0===_22?void 0:_22.input)||void 0===_23?void 0:_23.camera)||void 0===_24?void 0:_24.enableVideo);(null===(_27=null===(_26=null===(_25=local.groupChannel)||void 0===_25?void 0:_25.channel)||void 0===_26?void 0:_26.input)||void 0===_27?void 0:_27.camera)&&isBoolean(null===(_31=null===(_30=null===(_29=null===(_28=local.groupChannel)||void 0===_28?void 0:_28.channel)||void 0===_29?void 0:_29.input)||void 0===_30?void 0:_30.camera)||void 0===_31?void 0:_31.enableVideo)&&(target.channel.input.camera.enableVideo=null===(_35=null===(_34=null===(_33=null===(_32=local.groupChannel)||void 0===_32?void 0:_32.channel)||void 0===_33?void 0:_33.input)||void 0===_34?void 0:_34.camera)||void 0===_35?void 0:_35.enableVideo);(null===(_38=null===(_37=null===(_36=remote.groupChannel)||void 0===_36?void 0:_36.channel)||void 0===_37?void 0:_37.input)||void 0===_38?void 0:_38.gallery)&&isBoolean(null===(_42=null===(_41=null===(_40=null===(_39=remote.groupChannel)||void 0===_39?void 0:_39.channel)||void 0===_40?void 0:_40.input)||void 0===_41?void 0:_41.gallery)||void 0===_42?void 0:_42.enablePhoto)&&(target.channel.input.gallery.enablePhoto=null===(_46=null===(_45=null===(_44=null===(_43=remote.groupChannel)||void 0===_43?void 0:_43.channel)||void 0===_44?void 0:_44.input)||void 0===_45?void 0:_45.gallery)||void 0===_46?void 0:_46.enablePhoto);(null===(_49=null===(_48=null===(_47=local.groupChannel)||void 0===_47?void 0:_47.channel)||void 0===_48?void 0:_48.input)||void 0===_49?void 0:_49.gallery)&&isBoolean(null===(_53=null===(_52=null===(_51=null===(_50=local.groupChannel)||void 0===_50?void 0:_50.channel)||void 0===_51?void 0:_51.input)||void 0===_52?void 0:_52.gallery)||void 0===_53?void 0:_53.enablePhoto)&&(target.channel.input.gallery.enablePhoto=null===(_57=null===(_56=null===(_55=null===(_54=local.groupChannel)||void 0===_54?void 0:_54.channel)||void 0===_55?void 0:_55.input)||void 0===_56?void 0:_56.gallery)||void 0===_57?void 0:_57.enablePhoto);(null===(_60=null===(_59=null===(_58=remote.groupChannel)||void 0===_58?void 0:_58.channel)||void 0===_59?void 0:_59.input)||void 0===_60?void 0:_60.gallery)&&isBoolean(null===(_64=null===(_63=null===(_62=null===(_61=remote.groupChannel)||void 0===_61?void 0:_61.channel)||void 0===_62?void 0:_62.input)||void 0===_63?void 0:_63.gallery)||void 0===_64?void 0:_64.enableVideo)&&(target.channel.input.gallery.enableVideo=null===(_68=null===(_67=null===(_66=null===(_65=remote.groupChannel)||void 0===_65?void 0:_65.channel)||void 0===_66?void 0:_66.input)||void 0===_67?void 0:_67.gallery)||void 0===_68?void 0:_68.enableVideo);(null===(_71=null===(_70=null===(_69=local.groupChannel)||void 0===_69?void 0:_69.channel)||void 0===_70?void 0:_70.input)||void 0===_71?void 0:_71.gallery)&&isBoolean(null===(_75=null===(_74=null===(_73=null===(_72=local.groupChannel)||void 0===_72?void 0:_72.channel)||void 0===_73?void 0:_73.input)||void 0===_74?void 0:_74.gallery)||void 0===_75?void 0:_75.enableVideo)&&(target.channel.input.gallery.enableVideo=null===(_79=null===(_78=null===(_77=null===(_76=local.groupChannel)||void 0===_76?void 0:_76.channel)||void 0===_77?void 0:_77.input)||void 0===_78?void 0:_78.gallery)||void 0===_79?void 0:_79.enableVideo)}(target,local,remote),function updateChannelListConfig(target,local,remote){var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k,_l,_m,_o,_p,_q,_r,_s,_t;(null===(_a=remote.groupChannel)||void 0===_a?void 0:_a.channelList)&&isBoolean(null===(_c=null===(_b=remote.groupChannel)||void 0===_b?void 0:_b.channelList)||void 0===_c?void 0:_c.enableTypingIndicator)&&(target.channelList.enableTypingIndicator=remote.groupChannel.channelList.enableTypingIndicator);(null===(_d=local.groupChannel)||void 0===_d?void 0:_d.channelList)&&isBoolean(null===(_f=null===(_e=local.groupChannel)||void 0===_e?void 0:_e.channelList)||void 0===_f?void 0:_f.enableTypingIndicator)&&(target.channelList.enableTypingIndicator=null===(_h=null===(_g=local.groupChannel)||void 0===_g?void 0:_g.channelList)||void 0===_h?void 0:_h.enableTypingIndicator);(null===(_j=remote.groupChannel)||void 0===_j?void 0:_j.channelList)&&isBoolean(null===(_l=null===(_k=remote.groupChannel)||void 0===_k?void 0:_k.channelList)||void 0===_l?void 0:_l.enableMessageReceiptStatus)&&(target.channelList.enableMessageReceiptStatus=null===(_o=null===(_m=remote.groupChannel)||void 0===_m?void 0:_m.channelList)||void 0===_o?void 0:_o.enableMessageReceiptStatus);(null===(_p=local.groupChannel)||void 0===_p?void 0:_p.channelList)&&isBoolean(null===(_r=null===(_q=local.groupChannel)||void 0===_q?void 0:_q.channelList)||void 0===_r?void 0:_r.enableMessageReceiptStatus)&&(target.channelList.enableMessageReceiptStatus=null===(_t=null===(_s=local.groupChannel)||void 0===_s?void 0:_s.channelList)||void 0===_t?void 0:_t.enableMessageReceiptStatus)}(target,local,remote),function updateChannelSettingConfig(target,local,remote){var _a,_b,_c,_d,_e,_f,_g,_h;(null===(_a=remote.groupChannel)||void 0===_a?void 0:_a.setting)&&isBoolean(null===(_c=null===(_b=remote.groupChannel)||void 0===_b?void 0:_b.setting)||void 0===_c?void 0:_c.enableMessageSearch)&&(target.setting.enableMessageSearch=remote.groupChannel.setting.enableMessageSearch);(null===(_d=local.groupChannel)||void 0===_d?void 0:_d.setting)&&isBoolean(null===(_f=null===(_e=local.groupChannel)||void 0===_e?void 0:_e.setting)||void 0===_f?void 0:_f.enableMessageSearch)&&(target.setting.enableMessageSearch=null===(_h=null===(_g=local.groupChannel)||void 0===_g?void 0:_g.setting)||void 0===_h?void 0:_h.enableMessageSearch)}(target,local,remote)}function updateOpenChannelConfigs(target,local,remote){!function updateOpenChannelConfigs_updateChannelConfig(target,local,remote){var _a,_b,_c,_d,_e,_f,_g,_h;(null===(_a=remote.openChannel)||void 0===_a?void 0:_a.channel)&&isBoolean(null===(_c=null===(_b=remote.openChannel)||void 0===_b?void 0:_b.channel)||void 0===_c?void 0:_c.enableOgtag)&&(target.channel.enableOgtag=remote.openChannel.channel.enableOgtag);(null===(_d=local.openChannel)||void 0===_d?void 0:_d.channel)&&isBoolean(null===(_f=null===(_e=local.openChannel)||void 0===_e?void 0:_e.channel)||void 0===_f?void 0:_f.enableOgtag)&&(target.channel.enableOgtag=null===(_h=null===(_g=local.openChannel)||void 0===_g?void 0:_g.channel)||void 0===_h?void 0:_h.enableOgtag)}(target,local,remote),function updateOpenChannelConfigs_updateChannelInputConfig(target,local,remote){var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k,_l,_m,_o,_p,_q,_r,_s,_t,_u,_v,_w,_x,_y,_z,_0,_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16,_17,_18,_19,_20,_21,_22,_23,_24,_25,_26,_27,_28,_29,_30,_31,_32,_33,_34,_35,_36,_37,_38,_39,_40,_41,_42,_43,_44,_45,_46,_47,_48,_49,_50,_51,_52,_53,_54,_55,_56,_57,_58,_59,_60,_61,_62,_63,_64,_65,_66,_67,_68,_69,_70,_71,_72,_73,_74,_75,_76,_77,_78,_79;(null===(_b=null===(_a=remote.openChannel)||void 0===_a?void 0:_a.channel)||void 0===_b?void 0:_b.input)&&isBoolean(null===(_e=null===(_d=null===(_c=remote.openChannel)||void 0===_c?void 0:_c.channel)||void 0===_d?void 0:_d.input)||void 0===_e?void 0:_e.enableDocument)&&(target.channel.input.enableDocument=null===(_h=null===(_g=null===(_f=remote.openChannel)||void 0===_f?void 0:_f.channel)||void 0===_g?void 0:_g.input)||void 0===_h?void 0:_h.enableDocument);(null===(_k=null===(_j=local.openChannel)||void 0===_j?void 0:_j.channel)||void 0===_k?void 0:_k.input)&&isBoolean(null===(_o=null===(_m=null===(_l=local.openChannel)||void 0===_l?void 0:_l.channel)||void 0===_m?void 0:_m.input)||void 0===_o?void 0:_o.enableDocument)&&(target.channel.input.enableDocument=null===(_r=null===(_q=null===(_p=local.openChannel)||void 0===_p?void 0:_p.channel)||void 0===_q?void 0:_q.input)||void 0===_r?void 0:_r.enableDocument);(null===(_u=null===(_t=null===(_s=remote.openChannel)||void 0===_s?void 0:_s.channel)||void 0===_t?void 0:_t.input)||void 0===_u?void 0:_u.camera)&&isBoolean(null===(_y=null===(_x=null===(_w=null===(_v=remote.openChannel)||void 0===_v?void 0:_v.channel)||void 0===_w?void 0:_w.input)||void 0===_x?void 0:_x.camera)||void 0===_y?void 0:_y.enablePhoto)&&(target.channel.input.camera.enablePhoto=null===(_2=null===(_1=null===(_0=null===(_z=remote.openChannel)||void 0===_z?void 0:_z.channel)||void 0===_0?void 0:_0.input)||void 0===_1?void 0:_1.camera)||void 0===_2?void 0:_2.enablePhoto);(null===(_5=null===(_4=null===(_3=local.openChannel)||void 0===_3?void 0:_3.channel)||void 0===_4?void 0:_4.input)||void 0===_5?void 0:_5.camera)&&isBoolean(null===(_9=null===(_8=null===(_7=null===(_6=local.openChannel)||void 0===_6?void 0:_6.channel)||void 0===_7?void 0:_7.input)||void 0===_8?void 0:_8.camera)||void 0===_9?void 0:_9.enablePhoto)&&(target.channel.input.camera.enablePhoto=null===(_13=null===(_12=null===(_11=null===(_10=local.openChannel)||void 0===_10?void 0:_10.channel)||void 0===_11?void 0:_11.input)||void 0===_12?void 0:_12.camera)||void 0===_13?void 0:_13.enablePhoto);(null===(_16=null===(_15=null===(_14=remote.openChannel)||void 0===_14?void 0:_14.channel)||void 0===_15?void 0:_15.input)||void 0===_16?void 0:_16.camera)&&isBoolean(null===(_20=null===(_19=null===(_18=null===(_17=remote.openChannel)||void 0===_17?void 0:_17.channel)||void 0===_18?void 0:_18.input)||void 0===_19?void 0:_19.camera)||void 0===_20?void 0:_20.enableVideo)&&(target.channel.input.camera.enableVideo=null===(_24=null===(_23=null===(_22=null===(_21=remote.openChannel)||void 0===_21?void 0:_21.channel)||void 0===_22?void 0:_22.input)||void 0===_23?void 0:_23.camera)||void 0===_24?void 0:_24.enableVideo);(null===(_27=null===(_26=null===(_25=local.openChannel)||void 0===_25?void 0:_25.channel)||void 0===_26?void 0:_26.input)||void 0===_27?void 0:_27.camera)&&isBoolean(null===(_31=null===(_30=null===(_29=null===(_28=local.openChannel)||void 0===_28?void 0:_28.channel)||void 0===_29?void 0:_29.input)||void 0===_30?void 0:_30.camera)||void 0===_31?void 0:_31.enableVideo)&&(target.channel.input.camera.enableVideo=null===(_35=null===(_34=null===(_33=null===(_32=local.openChannel)||void 0===_32?void 0:_32.channel)||void 0===_33?void 0:_33.input)||void 0===_34?void 0:_34.camera)||void 0===_35?void 0:_35.enableVideo);(null===(_38=null===(_37=null===(_36=remote.openChannel)||void 0===_36?void 0:_36.channel)||void 0===_37?void 0:_37.input)||void 0===_38?void 0:_38.gallery)&&isBoolean(null===(_42=null===(_41=null===(_40=null===(_39=remote.openChannel)||void 0===_39?void 0:_39.channel)||void 0===_40?void 0:_40.input)||void 0===_41?void 0:_41.gallery)||void 0===_42?void 0:_42.enablePhoto)&&(target.channel.input.gallery.enablePhoto=null===(_46=null===(_45=null===(_44=null===(_43=remote.openChannel)||void 0===_43?void 0:_43.channel)||void 0===_44?void 0:_44.input)||void 0===_45?void 0:_45.gallery)||void 0===_46?void 0:_46.enablePhoto);(null===(_49=null===(_48=null===(_47=local.openChannel)||void 0===_47?void 0:_47.channel)||void 0===_48?void 0:_48.input)||void 0===_49?void 0:_49.gallery)&&isBoolean(null===(_53=null===(_52=null===(_51=null===(_50=local.openChannel)||void 0===_50?void 0:_50.channel)||void 0===_51?void 0:_51.input)||void 0===_52?void 0:_52.gallery)||void 0===_53?void 0:_53.enablePhoto)&&(target.channel.input.gallery.enablePhoto=null===(_57=null===(_56=null===(_55=null===(_54=local.openChannel)||void 0===_54?void 0:_54.channel)||void 0===_55?void 0:_55.input)||void 0===_56?void 0:_56.gallery)||void 0===_57?void 0:_57.enablePhoto);(null===(_60=null===(_59=null===(_58=remote.openChannel)||void 0===_58?void 0:_58.channel)||void 0===_59?void 0:_59.input)||void 0===_60?void 0:_60.gallery)&&isBoolean(null===(_64=null===(_63=null===(_62=null===(_61=remote.openChannel)||void 0===_61?void 0:_61.channel)||void 0===_62?void 0:_62.input)||void 0===_63?void 0:_63.gallery)||void 0===_64?void 0:_64.enableVideo)&&(target.channel.input.gallery.enableVideo=null===(_68=null===(_67=null===(_66=null===(_65=remote.openChannel)||void 0===_65?void 0:_65.channel)||void 0===_66?void 0:_66.input)||void 0===_67?void 0:_67.gallery)||void 0===_68?void 0:_68.enableVideo);(null===(_71=null===(_70=null===(_69=local.openChannel)||void 0===_69?void 0:_69.channel)||void 0===_70?void 0:_70.input)||void 0===_71?void 0:_71.gallery)&&isBoolean(null===(_75=null===(_74=null===(_73=null===(_72=local.openChannel)||void 0===_72?void 0:_72.channel)||void 0===_73?void 0:_73.input)||void 0===_74?void 0:_74.gallery)||void 0===_75?void 0:_75.enableVideo)&&(target.channel.input.gallery.enableVideo=null===(_79=null===(_78=null===(_77=null===(_76=local.openChannel)||void 0===_76?void 0:_76.channel)||void 0===_77?void 0:_77.input)||void 0===_78?void 0:_78.gallery)||void 0===_79?void 0:_79.enableVideo)}(target,local,remote)}function getConfigsByPriority(localConfigs,remoteConfigs){const prioritizedConfigs=createInitialConfig();return function updateCommonConfigs(target,local,remote){var _a,_b;remote.common&&isBoolean(null===(_a=remote.common)||void 0===_a?void 0:_a.enableUsingDefaultUserProfile)&&(target.enableUsingDefaultUserProfile=remote.common.enableUsingDefaultUserProfile),local.common&&isBoolean(null===(_b=local.common)||void 0===_b?void 0:_b.enableUsingDefaultUserProfile)&&(target.enableUsingDefaultUserProfile=local.common.enableUsingDefaultUserProfile)}(prioritizedConfigs.common,localConfigs,remoteConfigs),updateGroupChannelConfigs(prioritizedConfigs.groupChannel,localConfigs,remoteConfigs),updateOpenChannelConfigs(prioritizedConfigs.openChannel,localConfigs,remoteConfigs),prioritizedConfigs}var context_awaiter=function(thisArg,_arguments,P,generator){return new(P||(P=Promise))((function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):function adopt(value){return value instanceof P?value:new P((function(resolve){resolve(value)}))}(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())}))};function getApplicationAttributes(sdk){var _a,_b;return null!==(_b=null===(_a=sdk.appInfo)||void 0===_a?void 0:_a.applicationAttributes)&&void 0!==_b?_b:[]}const UIKitConfigContext=Object(react.createContext)({initDashboardConfigs:()=>Promise.resolve(),configs:initialConfig,configsWithAppAttr:()=>initialConfig}),UIKitConfigProvider=({storage:storage,children:children,localConfigs:localConfigs={}})=>{const[remoteConfigs,setRemoteConfigs]=Object(react.useState)(createInitialRemoteConfig),[manager]=Object(react.useState)((()=>new configManager_UIKitConfigManager(storage))),initDashboardConfigs=Object(react.useCallback)((sdk=>context_awaiter(void 0,void 0,void 0,(function*(){const storedConfigPayload=yield manager.init(sdk.appId);if(sdk.appInfo&&sdk.appInfo.uikitConfigInfo.lastUpdatedAt===storedConfigPayload.updatedAt)setRemoteConfigs(storedConfigPayload.configuration);else try{const response=yield sdk.getUIKitConfiguration();if(function isRawSBUConfigPayload(json){return"object"==typeof json&&"configuration"in json&&"updated_at"in json}(response.json)){const remoteConfigPayload=snakeToCamel(response.json),updatedConfigPayload=yield manager.update(remoteConfigPayload);setRemoteConfigs(updatedConfigPayload.configuration)}}catch(_a){setRemoteConfigs(storedConfigPayload.configuration)}}))),[manager]),configs=getConfigsByPriority(localConfigs,remoteConfigs),configsWithAppAttr=usePreservedCallback((sdk=>({groupChannel:{channel:{get enableReactions(){return configs.groupChannel.channel.enableReactions&&getApplicationAttributes(sdk).includes(applicationAttributes_reactions)},get enableReactionsSupergroup(){return configs.groupChannel.channel.enableReactionsSupergroup&&getApplicationAttributes(sdk).includes(applicationAttributes_reactions)},get enableOgtag(){return configs.groupChannel.channel.enableOgtag&&getApplicationAttributes(sdk).includes(applicationAttributes_enable_og_tag)}},setting:{get enableMessageSearch(){return configs.groupChannel.setting.enableMessageSearch&&getApplicationAttributes(sdk).includes(applicationAttributes_message_search_v3)}}},openChannel:{channel:{get enableOgtag(){return configs.openChannel.channel.enableOgtag&&getApplicationAttributes(sdk).includes(applicationAttributes_enable_og_tag)}}}})));return react_default.a.createElement(UIKitConfigContext.Provider,{value:{initDashboardConfigs:initDashboardConfigs,configs:configs,configsWithAppAttr:configsWithAppAttr}},children)},useUIKitConfig=()=>Object(react.useContext)(UIKitConfigContext)},"./node_modules/@storybook/addon-actions/dist/esm/constants.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return PARAM_KEY})),__webpack_require__.d(__webpack_exports__,"a",(function(){return EVENT_ID}));var PARAM_KEY="actions",EVENT_ID=("".concat("storybook/actions","/panel"),"".concat("storybook/actions","/action-event"))},"./node_modules/@storybook/addon-actions/dist/esm/index.js":function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__("./node_modules/@storybook/addon-actions/dist/esm/constants.js");var _models__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@storybook/addon-actions/dist/esm/models/index.js");__webpack_require__.o(_models__WEBPACK_IMPORTED_MODULE_1__,"action")&&__webpack_require__.d(__webpack_exports__,"action",(function(){return _models__WEBPACK_IMPORTED_MODULE_1__.action})),__webpack_require__.o(_models__WEBPACK_IMPORTED_MODULE_1__,"withActions")&&__webpack_require__.d(__webpack_exports__,"withActions",(function(){return _models__WEBPACK_IMPORTED_MODULE_1__.withActions}));var _preview__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@storybook/addon-actions/dist/esm/preview/index.js");__webpack_require__.d(__webpack_exports__,"action",(function(){return _preview__WEBPACK_IMPORTED_MODULE_2__.a})),__webpack_require__.d(__webpack_exports__,"withActions",(function(){return _preview__WEBPACK_IMPORTED_MODULE_2__.b})),module&&module.hot&&module.hot.decline&&module.hot.decline()}).call(this,__webpack_require__("./node_modules/webpack/buildin/harmony-module.js")(module))},"./node_modules/@storybook/addon-actions/dist/esm/models/ActionDisplay.js":function(module,__webpack_exports__,__webpack_require__){},"./node_modules/@storybook/addon-actions/dist/esm/models/ActionOptions.js":function(module,__webpack_exports__,__webpack_require__){},"./node_modules/@storybook/addon-actions/dist/esm/models/ActionsFunction.js":function(module,__webpack_exports__,__webpack_require__){},"./node_modules/@storybook/addon-actions/dist/esm/models/ActionsMap.js":function(module,__webpack_exports__,__webpack_require__){},"./node_modules/@storybook/addon-actions/dist/esm/models/DecoratorFunction.js":function(module,exports){},"./node_modules/@storybook/addon-actions/dist/esm/models/HandlerFunction.js":function(module,exports){},"./node_modules/@storybook/addon-actions/dist/esm/models/index.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__("./node_modules/@storybook/addon-actions/dist/esm/models/ActionDisplay.js"),__webpack_require__("./node_modules/@storybook/addon-actions/dist/esm/models/ActionsFunction.js"),__webpack_require__("./node_modules/@storybook/addon-actions/dist/esm/models/ActionOptions.js"),__webpack_require__("./node_modules/@storybook/addon-actions/dist/esm/models/ActionsMap.js");var _DecoratorFunction__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@storybook/addon-actions/dist/esm/models/DecoratorFunction.js");__webpack_require__.o(_DecoratorFunction__WEBPACK_IMPORTED_MODULE_4__,"action")&&__webpack_require__.d(__webpack_exports__,"action",(function(){return _DecoratorFunction__WEBPACK_IMPORTED_MODULE_4__.action})),__webpack_require__.o(_DecoratorFunction__WEBPACK_IMPORTED_MODULE_4__,"withActions")&&__webpack_require__.d(__webpack_exports__,"withActions",(function(){return _DecoratorFunction__WEBPACK_IMPORTED_MODULE_4__.withActions}));var _HandlerFunction__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@storybook/addon-actions/dist/esm/models/HandlerFunction.js");__webpack_require__.o(_HandlerFunction__WEBPACK_IMPORTED_MODULE_5__,"action")&&__webpack_require__.d(__webpack_exports__,"action",(function(){return _HandlerFunction__WEBPACK_IMPORTED_MODULE_5__.action})),__webpack_require__.o(_HandlerFunction__WEBPACK_IMPORTED_MODULE_5__,"withActions")&&__webpack_require__.d(__webpack_exports__,"withActions",(function(){return _HandlerFunction__WEBPACK_IMPORTED_MODULE_5__.withActions}))},"./node_modules/@storybook/addon-actions/dist/esm/preview/index.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return action})),__webpack_require__.d(__webpack_exports__,"b",(function(){return withActions}));__webpack_require__("./node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var v4=__webpack_require__("./node_modules/uuid-browser/v4.js"),v4_default=__webpack_require__.n(v4),esm=__webpack_require__("./node_modules/@storybook/addons/dist/esm/index.js"),constants=__webpack_require__("./node_modules/@storybook/addon-actions/dist/esm/constants.js"),config={depth:10,clearOnStoryChange:!0,limit:50};function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}var findProto=function findProto(obj,callback){var proto=Object.getPrototypeOf(obj);return!proto||callback(proto)?proto:findProto(proto,callback)},isReactSyntheticEvent=function isReactSyntheticEvent(e){return Boolean("object"===_typeof(e)&&e&&findProto(e,(function(proto){return/^Synthetic(?:Base)?Event$/.test(proto.constructor.name)}))&&"function"==typeof e.persist)},serializeArg=function serializeArg(a){if(isReactSyntheticEvent(a)){var e=Object.create(a.constructor.prototype,Object.getOwnPropertyDescriptors(a));e.persist();var viewDescriptor=Object.getOwnPropertyDescriptor(e,"view"),view=null==viewDescriptor?void 0:viewDescriptor.value;return"object"===_typeof(view)&&"Window"===(null==view?void 0:view.constructor.name)&&Object.defineProperty(e,"view",Object.assign({},viewDescriptor,{value:Object.create(view.constructor.prototype)})),e}return a};function action(name){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},actionOptions=Object.assign({},config,options);return function actionHandler(){for(var channel=esm.a.getChannel(),id=v4_default()(),_len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];var serializedArgs=args.map(serializeArg),normalizedArgs=args.length>1?serializedArgs:serializedArgs[0],actionDisplayToEmit={id:id,count:0,data:{name:name,args:normalizedArgs},options:Object.assign({},actionOptions,{maxDepth:5+(actionOptions.depth||3),allowFunction:actionOptions.allowFunction||!1})};channel.emit(constants.a,actionDisplayToEmit)}}__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1?_len-1:0),_key=1;_key<_len;_key++)handles[_key-1]=arguments[_key];var actionsObject=actionsFn.apply(void 0,handles);return Object.entries(actionsObject).map((function(_ref){var _ref2=withActions_slicedToArray(_ref,2),key=_ref2[0],action=_ref2[1],_key$match2=withActions_slicedToArray(key.match(delegateEventSplitter),3),eventName=(_key$match2[0],_key$match2[1]),selector=_key$match2[2];return{eventName:eventName,handler:function handler(e){selector&&!hasMatchInAncestry(e.target,selector)||action(e)}}}))},applyEventHandlers=browser_default()((function(actionsFn){for(var _len2=arguments.length,handles=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)handles[_key2-1]=arguments[_key2];Object(hooks.c)((function(){if(null!=root){var handlers=createHandlers.apply(void 0,[actionsFn].concat(handles));return handlers.forEach((function(_ref3){var eventName=_ref3.eventName,handler=_ref3.handler;return root.addEventListener(eventName,handler)})),function(){return handlers.forEach((function(_ref4){var eventName=_ref4.eventName,handler=_ref4.handler;return root.removeEventListener(eventName,handler)}))}}}),[root,actionsFn,handles])}),Object(ts_dedent_esm.a)(withActions_templateObject||(withActions_templateObject=function withActions_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n withActions(options) is deprecated, please configure addon-actions using the addParameter api:\n\n addParameters({\n actions: {\n handles: options\n },\n });\n "])))),withActions=Object(make_decorator.a)({name:"withActions",parameterName:constants.b,skipIfNoParametersOrOptions:!0,wrapper:function wrapper(getStory,context,_ref5){var parameters=_ref5.parameters,options=_ref5.options;return function applyDeprecatedOptions(actionsFn,options){options&&applyEventHandlers(actionsFn,options)}(actions_actions,options),parameters&¶meters.handles&&applyEventHandlers.apply(void 0,[actions_actions].concat(_toConsumableArray(parameters.handles))),getStory(context)}})},"./node_modules/@storybook/addon-actions/preview.js-generated-config-entry.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var addon_actions_preview_namespaceObject={};__webpack_require__.r(addon_actions_preview_namespaceObject),__webpack_require__.d(addon_actions_preview_namespaceObject,"decorators",(function(){return decorators})),__webpack_require__.d(addon_actions_preview_namespaceObject,"argsEnhancers",(function(){return argsEnhancers}));var ClientApi=__webpack_require__("./node_modules/@storybook/client-api/dist/esm/ClientApi.js"),esm=__webpack_require__("./node_modules/@storybook/addon-actions/dist/esm/index.js"),decorators=[esm.withActions];__webpack_require__("./node_modules/core-js/modules/es.regexp.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i25)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return hooks.addRenderListeners(),result}}},areDepsEqual=function areDepsEqual(deps,nextDeps){return deps.length===nextDeps.length&&deps.every((function(dep,i){return dep===nextDeps[i]}))},invalidHooksError=function invalidHooksError(){return new Error("Storybook preview hooks can only be called inside decorators and story functions.")};function getHooksContextOrNull(){return globalWindow.STORYBOOK_HOOKS_CONTEXT||null}function getHooksContextOrThrow(){var hooks=getHooksContextOrNull();if(null==hooks)throw invalidHooksError();return hooks}function useMemoLike(name,nextCreate,deps){var _useHook=function useHook(name,callback,deps){var hooks=getHooksContextOrThrow();if("MOUNT"===hooks.currentPhase){null==deps||Array.isArray(deps)||_storybook_client_logger__WEBPACK_IMPORTED_MODULE_21__.a.warn("".concat(name," received a final argument that is not an array (instead, received ").concat(deps,"). When specified, the final argument must be an array."));var _hook={name:name,deps:deps};return hooks.currentHooks.push(_hook),callback(_hook),_hook}if("UPDATE"===hooks.currentPhase){var _hook2=hooks.getNextHook();if(null==_hook2)throw new Error("Rendered more hooks than during the previous render.");return _hook2.name!==name&&_storybook_client_logger__WEBPACK_IMPORTED_MODULE_21__.a.warn("Storybook has detected a change in the order of Hooks".concat(hooks.currentDecoratorName?" called by ".concat(hooks.currentDecoratorName):"",". This will lead to bugs and errors if not fixed.")),null!=deps&&null==_hook2.deps&&_storybook_client_logger__WEBPACK_IMPORTED_MODULE_21__.a.warn("".concat(name," received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.")),null!=deps&&null!=_hook2.deps&&deps.length!==_hook2.deps.length&&_storybook_client_logger__WEBPACK_IMPORTED_MODULE_21__.a.warn("The final argument passed to ".concat(name," changed size between renders. The order and size of this array must remain constant.\nPrevious: ").concat(_hook2.deps,"\nIncoming: ").concat(deps)),null!=deps&&null!=_hook2.deps&&areDepsEqual(deps,_hook2.deps)||(callback(_hook2),_hook2.deps=deps),_hook2}throw invalidHooksError()}(name,(function(hook){hook.memoizedState=nextCreate()}),deps);return _useHook.memoizedState}function useRefLike(name,initialValue){return useMemoLike(name,(function(){return{current:initialValue}}),[])}function useRef(initialValue){return useRefLike("useRef",initialValue)}function useEffect(create,deps){var hooks=getHooksContextOrThrow(),effect=useMemoLike("useEffect",(function(){return{create:create}}),deps);hooks.currentEffects.includes(effect)||hooks.currentEffects.push(effect)}},"./node_modules/@storybook/addons/dist/esm/index.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return addons}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.values.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js");var global_window=__webpack_require__("./node_modules/global/window.js"),window_default=__webpack_require__.n(global_window),esm=__webpack_require__("./node_modules/@storybook/client-logger/dist/esm/index.js"),dist_esm=__webpack_require__("./node_modules/@storybook/channels/dist/esm/index.js");var types;__webpack_require__("./node_modules/core-js/modules/es.array.find.js");function _defineProperties(target,props){for(var i=0;i1)return args.length>1?decorator(args).apply(void 0,arguments):decorator.apply(void 0,args).apply(void 0,arguments);throw new Error("Passing stories directly into ".concat(name,"() is not allowed,\n instead use addDecorator(").concat(name,") and pass options with the '").concat(parameterName,"' parameter"))}}}},"./node_modules/@storybook/channels/dist/esm/index.js":function(module,__webpack_exports__,__webpack_require__){"use strict";(function(setImmediate){__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/web.immediate.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js");var _templateObject,util_deprecate__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/util-deprecate/browser.js"),util_deprecate__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(util_deprecate__WEBPACK_IMPORTED_MODULE_8__),ts_dedent__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/ts-dedent/esm/index.js");function _defineProperties(target,props){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},transport=_ref.transport,_ref$async=_ref.async,async=void 0!==_ref$async&&_ref$async;!function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Channel),this.isAsync=void 0,this.sender=function generateRandomId(){return Math.random().toString(16).slice(2)}(),this.events={},this.data={},this.transport=void 0,this.addPeerListener=util_deprecate__WEBPACK_IMPORTED_MODULE_8___default()((function(eventName,listener){_this.addListener(eventName,listener)}),Object(ts_dedent__WEBPACK_IMPORTED_MODULE_9__.a)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n channel.addPeerListener is deprecated\n "])))),this.isAsync=async,transport&&(this.transport=transport,this.transport.setHandler((function(event){return _this.handleEvent(event)})))}return function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(Channel,[{key:"hasTransport",get:function get(){return!!this.transport}},{key:"addListener",value:function addListener(eventName,listener){this.events[eventName]=this.events[eventName]||[],this.events[eventName].push(listener)}},{key:"emit",value:function emit(eventName){for(var _this2=this,_len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];var event={type:eventName,args:args,from:this.sender},options={};args.length>=1&&args[0]&&args[0].options&&(options=args[0].options);var handler=function handler(){_this2.transport&&_this2.transport.send(event,options),_this2.handleEvent(event)};this.isAsync?setImmediate(handler):handler()}},{key:"last",value:function last(eventName){return this.data[eventName]}},{key:"eventNames",value:function eventNames(){return Object.keys(this.events)}},{key:"listenerCount",value:function listenerCount(eventName){var listeners=this.listeners(eventName);return listeners?listeners.length:0}},{key:"listeners",value:function listeners(eventName){var listeners=this.events[eventName];return listeners||void 0}},{key:"once",value:function once(eventName,listener){var onceListener=this.onceListener(eventName,listener);this.addListener(eventName,onceListener)}},{key:"removeAllListeners",value:function removeAllListeners(eventName){eventName?this.events[eventName]&&delete this.events[eventName]:this.events={}}},{key:"removeListener",value:function removeListener(eventName,listener){var listeners=this.listeners(eventName);listeners&&(this.events[eventName]=listeners.filter((function(l){return l!==listener})))}},{key:"on",value:function on(eventName,listener){this.addListener(eventName,listener)}},{key:"off",value:function off(eventName,listener){this.removeListener(eventName,listener)}},{key:"handleEvent",value:function handleEvent(event){var listeners=this.listeners(event.type);listeners&&listeners.length&&listeners.forEach((function(fn){fn.apply(event,event.args)})),this.data[event.type]=event.args}},{key:"onceListener",value:function onceListener(eventName,listener){var _this3=this,onceListener=function onceListener(){return _this3.removeListener(eventName,onceListener),listener.apply(void 0,arguments)};return onceListener}}]),Channel}();__webpack_exports__.a=Channel}).call(this,__webpack_require__("./node_modules/timers-browserify/main.js").setImmediate)},"./node_modules/@storybook/client-api/dist/esm/ClientApi.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"f",(function(){return addDecorator})),__webpack_require__.d(__webpack_exports__,"h",(function(){return addParameters})),__webpack_require__.d(__webpack_exports__,"g",(function(){return addLoader})),__webpack_require__.d(__webpack_exports__,"d",(function(){return addArgs})),__webpack_require__.d(__webpack_exports__,"b",(function(){return addArgTypes})),__webpack_require__.d(__webpack_exports__,"e",(function(){return addArgsEnhancer})),__webpack_require__.d(__webpack_exports__,"c",(function(){return addArgTypesEnhancer})),__webpack_require__.d(__webpack_exports__,"i",(function(){return setGlobalRender})),__webpack_require__.d(__webpack_exports__,"a",(function(){return ClientApi_ClientApi}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.set.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.values.js");var browser=__webpack_require__("./node_modules/util-deprecate/browser.js"),browser_default=__webpack_require__.n(browser),esm=__webpack_require__("./node_modules/ts-dedent/esm/index.js"),global_window=__webpack_require__("./node_modules/global/window.js"),window_default=__webpack_require__.n(global_window),dist_esm=__webpack_require__("./node_modules/@storybook/client-logger/dist/esm/index.js"),dist=__webpack_require__("./node_modules/@storybook/csf/dist/index.js"),esm_parameters=__webpack_require__("./node_modules/@storybook/store/dist/esm/parameters.js"),normalizeInputTypes=__webpack_require__("./node_modules/@storybook/store/dist/esm/csf/normalizeInputTypes.js"),synchronous_promise=(__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/synchronous-promise/index.js")),stable=__webpack_require__("./node_modules/stable/stable.js"),stable_default=__webpack_require__.n(stable),STORY_KIND_PATH_SEPARATOR=(__webpack_require__("./node_modules/core-js/modules/es.string.split.js"),__webpack_require__("./node_modules/core-js/modules/es.string.trim.js"),/\s*\/\s*/);var autoTitle_templateObject,sortStories_sortStoriesCommon=function sortStoriesCommon(stories,storySortParameter,fileNameOrder){var sortFn;storySortParameter?(sortFn="function"==typeof storySortParameter?storySortParameter:function storySort(){var options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(a,b){if(a.title===b.title&&!options.includeNames)return 0;var method=options.method||"configure",order=options.order||[],storyTitleA=a.title.trim().split(STORY_KIND_PATH_SEPARATOR),storyTitleB=b.title.trim().split(STORY_KIND_PATH_SEPARATOR);options.includeNames&&(storyTitleA.push(a.name),storyTitleB.push(b.name));for(var depth=0;storyTitleA[depth]||storyTitleB[depth];){if(!storyTitleA[depth])return-1;if(!storyTitleB[depth])return 1;var nameA=storyTitleA[depth],nameB=storyTitleB[depth];if(nameA!==nameB){var indexA=order.indexOf(nameA),indexB=order.indexOf(nameB),indexWildcard=order.indexOf("*");return-1!==indexA||-1!==indexB?(-1===indexA&&(indexA=-1!==indexWildcard?indexWildcard:order.length),-1===indexB&&(indexB=-1!==indexWildcard?indexWildcard:order.length),indexA-indexB):"configure"===method?0:nameA.localeCompare(nameB,options.locales?options.locales:void 0,{numeric:!0,sensitivity:"accent"})}var index=order.indexOf(nameA);order=-1!==index&&Array.isArray(order[index+1])?order[index+1]:[],depth+=1}return 0}}(storySortParameter),stable_default.a.inplace(stories,sortFn)):stable_default.a.inplace(stories,(function(s1,s2){return fileNameOrder.indexOf(s1.importPath)-fileNameOrder.indexOf(s2.importPath)}));return stories},toIndexEntry=function toIndexEntry(story){return{id:story.id,title:story.title,name:story.name,importPath:story.parameters.fileName}},slash=(__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/slash/index.js")),slash_default=__webpack_require__.n(slash);function _toArray(arr){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0?last.substr(0,dotIndex):last;parts[parts.length-1]=stripped;var _parts2=_toArray(parts),first=_parts2[0],rest=_parts2.slice(1);return""===first&&(parts=rest),parts}(path))).join("/")}return titlePrefix?slash_default()(pathJoin([titlePrefix,userTitle])):userTitle}},_excluded=["default","__namedExportsOrder"];function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function _slicedToArray(arr,i){return function StoryStoreFacade_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function StoryStoreFacade_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return StoryStoreFacade_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return StoryStoreFacade_arrayLikeToArray(o,minLen)}(arr,i)||function StoryStoreFacade_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function StoryStoreFacade_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i ","\n \n Are you using a V7-style sort function in V6 compatibility mode?\n \n More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#v7-style-story-sort\n "])),storySortParameter,err.message));throw err}return{v:3,stories:sortedV7.reduce((function(acc,s){return acc[s.id]=_this2.stories[s.id],acc}),{})}}},{key:"clearFilenameExports",value:function clearFilenameExports(fileName){var _this3=this;this.csfExports[fileName]&&(Object.entries(this.stories).forEach((function(_ref3){var _ref4=_slicedToArray(_ref3,2),id=_ref4[0];_ref4[1].importPath===fileName&&delete _this3.stories[id]})),this.csfExports[fileName]={})}},{key:"addStoriesFromExports",value:function addStoriesFromExports(fileName,fileExports){var _this4=this;if(this.csfExports[fileName]!==fileExports){this.clearFilenameExports(fileName);var defaultExport=fileExports.default,__namedExportsOrder=fileExports.__namedExportsOrder,namedExports=_objectWithoutProperties(fileExports,_excluded),_ref5=defaultExport||{},componentId=_ref5.id,title=_ref5.title,specifiers=(window_default.a.STORIES||[]).map((function(specifier){return Object.assign({},specifier,{importPathMatcher:new RegExp(specifier.importPathMatcher)})}));if(title=function userOrAutoTitle(fileName,storiesEntries,userTitle){for(var i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function ClientApi_defineProperties(target,props){for(var i=0;i1&&void 0!==arguments[1])||arguments[1]),singleton.addDecorator(decorator)},addParameters=function addParameters(parameters){ClientApi_checkMethod("addParameters",!(arguments.length>1&&void 0!==arguments[1])||arguments[1]),singleton.addParameters(parameters)},addLoader=function addLoader(loader){ClientApi_checkMethod("addLoader",!(arguments.length>1&&void 0!==arguments[1])||arguments[1]),singleton.addLoader(loader)},addArgs=function addArgs(args){ClientApi_checkMethod("addArgs",!1),singleton.addArgs(args)},addArgTypes=function addArgTypes(argTypes){ClientApi_checkMethod("addArgTypes",!1),singleton.addArgTypes(argTypes)},addArgsEnhancer=function addArgsEnhancer(enhancer){ClientApi_checkMethod("addArgsEnhancer",!1),singleton.addArgsEnhancer(enhancer)},addArgTypesEnhancer=function addArgTypesEnhancer(enhancer){ClientApi_checkMethod("addArgTypesEnhancer",!1),singleton.addArgTypesEnhancer(enhancer)},setGlobalRender=function setGlobalRender(render){ClientApi_checkMethod("setGlobalRender",!1),singleton.facade.projectAnnotations.render=render},invalidStoryTypes=new Set(["string","number","boolean","symbol"]),ClientApi_ClientApi=function(){function ClientApi(){var _this=this,storyStore=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).storyStore;!function ClientApi_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,ClientApi),this.facade=void 0,this.storyStore=void 0,this.addons=void 0,this.onImportFnChanged=void 0,this.lastFileName=0,this.setAddon=browser_default()((function(addon){_this.addons=Object.assign({},_this.addons,addon)}),Object(esm.a)(_templateObject3||(_templateObject3=ClientApi_taggedTemplateLiteral(["\n `setAddon` is deprecated and will be removed in Storybook 7.0.\n\n https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-setaddon\n "],["\n \\`setAddon\\` is deprecated and will be removed in Storybook 7.0.\n\n https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-setaddon\n "])))),this.addDecorator=function(decorator){_this.facade.projectAnnotations.decorators.push(decorator)},this.clearDecorators=browser_default()((function(){_this.facade.projectAnnotations.decorators=[]}),Object(esm.a)(_templateObject4||(_templateObject4=ClientApi_taggedTemplateLiteral(["\n `clearDecorators` is deprecated and will be removed in Storybook 7.0.\n\n https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-cleardecorators\n "],["\n \\`clearDecorators\\` is deprecated and will be removed in Storybook 7.0.\n\n https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-cleardecorators\n "])))),this.addParameters=function(_ref2){var globals=_ref2.globals,globalTypes=_ref2.globalTypes,parameters=ClientApi_objectWithoutProperties(_ref2,ClientApi_excluded);_this.facade.projectAnnotations.parameters=Object(esm_parameters.a)(_this.facade.projectAnnotations.parameters,parameters),globals&&(_this.facade.projectAnnotations.globals=Object.assign({},_this.facade.projectAnnotations.globals,globals)),globalTypes&&(_this.facade.projectAnnotations.globalTypes=Object.assign({},_this.facade.projectAnnotations.globalTypes,Object(normalizeInputTypes.a)(globalTypes)))},this.addLoader=function(loader){_this.facade.projectAnnotations.loaders.push(loader)},this.addArgs=function(args){_this.facade.projectAnnotations.args=Object.assign({},_this.facade.projectAnnotations.args,args)},this.addArgTypes=function(argTypes){_this.facade.projectAnnotations.argTypes=Object.assign({},_this.facade.projectAnnotations.argTypes,Object(normalizeInputTypes.a)(argTypes))},this.addArgsEnhancer=function(enhancer){_this.facade.projectAnnotations.argsEnhancers.push(enhancer)},this.addArgTypesEnhancer=function(enhancer){_this.facade.projectAnnotations.argTypesEnhancers.push(enhancer)},this.storiesOf=function(kind,m){if(!kind&&"string"!=typeof kind)throw new Error("Invalid or missing kind provided for stories, should be a string");if(m||dist_esm.a.warn("Missing 'module' parameter for story with a kind of '".concat(kind,"'. It will break your HMR")),m){var proto=Object.getPrototypeOf(m);proto.exports&&proto.exports.default&&dist_esm.a.error("Illegal mix of CSF default export and storiesOf calls in a single file: ".concat(proto.i))}for(var baseFilename=m&&m.id?"".concat(m.id):(_this.lastFileName++).toString(),fileName=baseFilename,i=1;_this.facade.csfExports[fileName]&&Object.keys(_this.facade.csfExports[fileName]).length>0;)i+=1,fileName="".concat(baseFilename,"-").concat(i);m&&m.hot&&m.hot.accept&&(m.hot.accept(),m.hot.dispose((function(){_this.facade.clearFilenameExports(fileName),setTimeout((function(){var _this$onImportFnChang;null===(_this$onImportFnChang=_this.onImportFnChanged)||void 0===_this$onImportFnChang||_this$onImportFnChang.call(_this,{importFn:_this.importFn.bind(_this)})}),0)})));var hasAdded=!1,api={kind:kind.toString(),add:function add(){return api},addDecorator:function addDecorator(){return api},addLoader:function addLoader(){return api},addParameters:function addParameters(){return api}};Object.keys(_this.addons).forEach((function(name){var addon=_this.addons[name];api[name]=function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return addon.apply(api,args),api}}));var meta={id:Object(dist.sanitize)(kind),title:kind,decorators:[],loaders:[],parameters:{}};_this.facade.csfExports[fileName]={default:meta};var counter=0;return api.add=function(storyName,storyFn){var parameters=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(hasAdded=!0,"string"!=typeof storyName)throw new Error('Invalid or missing storyName provided for a "'.concat(kind,'" story.'));if(!storyFn||Array.isArray(storyFn)||invalidStoryTypes.has(_typeof(storyFn)))throw new Error('Cannot load story "'.concat(storyName,'" in "').concat(kind,'" due to invalid format. Storybook expected a function/object but received ').concat(_typeof(storyFn)," instead."));var decorators=parameters.decorators,loaders=parameters.loaders,component=parameters.component,args=parameters.args,argTypes=parameters.argTypes,storyParameters=ClientApi_objectWithoutProperties(parameters,_excluded2),storyId=parameters.__id||Object(dist.toId)(kind,storyName),csfExports=_this.facade.csfExports[fileName];return csfExports["story".concat(counter)]={name:storyName,parameters:Object.assign({fileName:fileName,__id:storyId},storyParameters),decorators:decorators,loaders:loaders,args:args,argTypes:argTypes,component:component,render:storyFn},counter+=1,_this.facade.stories[storyId]={id:storyId,title:csfExports.default.title,name:storyName,importPath:fileName},api},api.addDecorator=function(decorator){if(hasAdded)throw new Error("You cannot add a decorator after the first story for a kind.\nRead more here: https://github.com/storybookjs/storybook/blob/master/MIGRATION.md#can-no-longer-add-decoratorsparameters-after-stories");return meta.decorators.push(decorator),api},api.addLoader=function(loader){if(hasAdded)throw new Error("You cannot add a loader after the first story for a kind.");return meta.loaders.push(loader),api},api.addParameters=function(_ref3){var component=_ref3.component,args=_ref3.args,argTypes=_ref3.argTypes,parameters=ClientApi_objectWithoutProperties(_ref3,_excluded3);if(hasAdded)throw new Error("You cannot add parameters after the first story for a kind.\nRead more here: https://github.com/storybookjs/storybook/blob/master/MIGRATION.md#can-no-longer-add-decoratorsparameters-after-stories");return meta.parameters=Object(esm_parameters.a)(meta.parameters,parameters),component&&(meta.component=component),args&&(meta.args=Object.assign({},meta.args,args)),argTypes&&(meta.argTypes=Object.assign({},meta.argTypes,argTypes)),api},api},this.getStorybook=function(){var stories=_this.storyStore.storyIndex.stories,kinds={};return Object.entries(stories).forEach((function(_ref4){var _ref5=ClientApi_slicedToArray(_ref4,2),storyId=_ref5[0],_ref5$=_ref5[1],title=_ref5$.title,name=_ref5$.name,importPath=_ref5$.importPath;kinds[title]||(kinds[title]={kind:title,fileName:importPath,stories:[]});var storyFn=_this.storyStore.fromId(storyId).storyFn;kinds[title].stories.push({name:name,render:storyFn})})),Object.values(kinds)},this.raw=function(){return _this.storyStore.raw()},this.facade=new StoryStoreFacade_StoryStoreFacade,this.addons={},this.storyStore=storyStore,singleton=this}return function ClientApi_createClass(Constructor,protoProps,staticProps){return protoProps&&ClientApi_defineProperties(Constructor.prototype,protoProps),staticProps&&ClientApi_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(ClientApi,[{key:"importFn",value:function importFn(path){return this.facade.importFn(path)}},{key:"getStoryIndex",value:function getStoryIndex(){if(!this.storyStore)throw new Error("Cannot get story index before setting storyStore");return this.facade.getStoryIndex(this.storyStore)}},{key:"_storyStore",get:function get(){return this.storyStore}}]),ClientApi}()},"./node_modules/@storybook/client-logger/dist/esm/index.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return logger})),__webpack_require__.d(__webpack_exports__,"b",(function(){return once})),__webpack_require__.d(__webpack_exports__,"c",(function(){return pretty}));__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.set.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js");var global__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/global/window.js"),global__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(global__WEBPACK_IMPORTED_MODULE_8__),LOGLEVEL=global__WEBPACK_IMPORTED_MODULE_8___default.a.LOGLEVEL,console=global__WEBPACK_IMPORTED_MODULE_8___default.a.console,levels={trace:1,debug:2,info:3,warn:4,error:5,silent:10},currentLogLevelNumber=levels[LOGLEVEL]||levels.info,logger={trace:function trace(message){for(var _len=arguments.length,rest=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)rest[_key-1]=arguments[_key];return currentLogLevelNumber<=levels.trace&&console.trace.apply(console,[message].concat(rest))},debug:function debug(message){for(var _len2=arguments.length,rest=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)rest[_key2-1]=arguments[_key2];return currentLogLevelNumber<=levels.debug&&console.debug.apply(console,[message].concat(rest))},info:function info(message){for(var _len3=arguments.length,rest=new Array(_len3>1?_len3-1:0),_key3=1;_key3<_len3;_key3++)rest[_key3-1]=arguments[_key3];return currentLogLevelNumber<=levels.info&&console.info.apply(console,[message].concat(rest))},warn:function warn(message){for(var _len4=arguments.length,rest=new Array(_len4>1?_len4-1:0),_key4=1;_key4<_len4;_key4++)rest[_key4-1]=arguments[_key4];return currentLogLevelNumber<=levels.warn&&console.warn.apply(console,[message].concat(rest))},error:function error(message){for(var _len5=arguments.length,rest=new Array(_len5>1?_len5-1:0),_key5=1;_key5<_len5;_key5++)rest[_key5-1]=arguments[_key5];return currentLogLevelNumber<=levels.error&&console.error.apply(console,[message].concat(rest))},log:function log(message){for(var _len6=arguments.length,rest=new Array(_len6>1?_len6-1:0),_key6=1;_key6<_len6;_key6++)rest[_key6-1]=arguments[_key6];return currentLogLevelNumber1?_len7-1:0),_key7=1;_key7<_len7;_key7++)rest[_key7-1]=arguments[_key7];return logger[type].apply(logger,[message].concat(rest))}}};once.clear=function(){return logged.clear()},once.trace=once("trace"),once.debug=once("debug"),once.info=once("info"),once.warn=once("warn"),once.error=once("error"),once.log=once("log");var pretty=function pretty(type){return function(){for(var argArray=[],_len8=arguments.length,args=new Array(_len8),_key8=0;_key8<_len8;_key8++)args[_key8]=arguments[_key8];if(args.length){var reResultArray,startTagRe=//gi;for(argArray.push(args[0].replace(startTagRe,"%c").replace(/<\/span>/gi,"%c"));reResultArray=startTagRe.exec(args[0]);)argArray.push(reResultArray[2]),argArray.push("");for(var j=1;j1)throw new Error("Invalid conditional test ".concat(JSON.stringify({exists:exists,eq:eq,neq:neq})));if(void 0!==eq)return(0,_isEqual.default)(value,eq);if(void 0!==neq)return!(0,_isEqual.default)(value,neq);if(void 0!==exists){var valueExists=void 0!==value;return exists?valueExists:!valueExists}return void 0===truthy||truthy?!!value:!value};exports.testValue=testValue;exports.includeConditionalArg=function includeConditionalArg(argType,args,globals){if(!argType.if)return!0;var _ref2=argType.if,arg=_ref2.arg,global=_ref2.global;if(1!==count([arg,global]))throw new Error("Invalid conditional value ".concat(JSON.stringify({arg:arg,global:global})));var value=arg?args[arg]:globals[global];return testValue(argType.if,value)}},"./node_modules/@storybook/csf/dist/index.js":function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={sanitize:!0,toId:!0,storyNameFromExport:!0,isExportStory:!0,parseKind:!0,includeConditionalArg:!0};exports.isExportStory=function isExportStory(key,_ref){var includeStories=_ref.includeStories,excludeStories=_ref.excludeStories;return"__esModule"!==key&&(!includeStories||matches(key,includeStories))&&(!excludeStories||!matches(key,excludeStories))},Object.defineProperty(exports,"includeConditionalArg",{enumerable:!0,get:function get(){return _includeConditionalArg.includeConditionalArg}}),exports.parseKind=exports.storyNameFromExport=exports.toId=exports.sanitize=void 0;var _startCase=function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}(__webpack_require__("./node_modules/lodash/startCase.js")),_includeConditionalArg=__webpack_require__("./node_modules/@storybook/csf/dist/includeConditionalArg.js"),_story=__webpack_require__("./node_modules/@storybook/csf/dist/story.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(arr)))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")};exports.sanitize=sanitize;var sanitizeSafe=function sanitizeSafe(string,part){var sanitized=sanitize(string);if(""===sanitized)throw new Error("Invalid ".concat(part," '").concat(string,"', must include alphanumeric characters"));return sanitized};exports.toId=function toId(kind,name){return"".concat(sanitizeSafe(kind,"kind")).concat(name?"--".concat(sanitizeSafe(name,"name")):"")};function matches(storyKey,arrayOrRegex){return Array.isArray(arrayOrRegex)?arrayOrRegex.includes(storyKey):storyKey.match(arrayOrRegex)}exports.storyNameFromExport=function storyNameFromExport(key){return(0,_startCase.default)(key)};exports.parseKind=function parseKind(kind,_ref2){var rootSeparator=_ref2.rootSeparator,groupSeparator=_ref2.groupSeparator,_kind$split2=_slicedToArray(kind.split(rootSeparator,2),2),root=_kind$split2[0],remainder=_kind$split2[1];return{root:remainder?root:null,groups:(remainder||kind).split(groupSeparator).filter((function(i){return!!i}))}}},"./node_modules/@storybook/csf/dist/story.js":function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _SBType=__webpack_require__("./node_modules/@storybook/csf/dist/SBType.js");Object.keys(_SBType).forEach((function(key){"default"!==key&&"__esModule"!==key&&Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _SBType[key]}})}))},"./node_modules/@storybook/docs-tools/dist/esm/argTypes/docgen/utils/string.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return str}));var str=function str(obj){if(!obj)return"";if("string"==typeof obj)return obj;throw new Error("Description: expected string, got: ".concat(JSON.stringify(obj)))}},"./node_modules/@storybook/react/dist/esm/client/docs/config-generated-config-entry.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var config_namespaceObject={};__webpack_require__.r(config_namespaceObject),__webpack_require__.d(config_namespaceObject,"parameters",(function(){return config_parameters})),__webpack_require__.d(config_namespaceObject,"decorators",(function(){return decorators})),__webpack_require__.d(config_namespaceObject,"argTypesEnhancers",(function(){return argTypesEnhancers}));var ClientApi=__webpack_require__("./node_modules/@storybook/client-api/dist/esm/ClientApi.js"),doctrine=(__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/doctrine/lib/doctrine.js")),doctrine_default=__webpack_require__.n(doctrine);var TypeSystem,DEFAULT_OPTIONS={tags:["param","arg","argument","returns","ignore"]},parseJsDoc=function parseJsDoc(value){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:DEFAULT_OPTIONS;if(!function containsJsDoc(value){return null!=value&&value.includes("@")}(value))return{includesJsDoc:!1,ignore:!1};var jsDocAst=function parse(content,tags){var ast;try{ast=doctrine_default.a.parse(content,{tags:tags,sloppy:!0})}catch(e){throw console.error(e),new Error("Cannot parse JSDoc tags.")}return ast}(value,options.tags),extractedTags=function extractJsDocTags(ast){for(var extractedTags={params:null,returns:null,ignore:!1},i=0;iMAX_TYPE_SUMMARY_LENGTH}function isTooLongForDefaultValueSummary(value){return value.length>MAX_DEFAULT_VALUE_SUMMARY_LENGTH}function createSummaryValue(summary,detail){return summary===detail?{summary:summary}:{summary:summary,detail:detail}}var FlowTypesType;function generateUnionElement(_ref){var name=_ref.name,value=_ref.value,elements=_ref.elements,raw=_ref.raw;return null!=value?value:null!=elements?elements.map(generateUnionElement).join(" | "):null!=raw?raw:name}function generateSignature(flowType){return"object"===flowType.type?function generateObjectSignature(_ref4){var type=_ref4.type,raw=_ref4.raw;return null!=raw?isTooLongForTypeSummary(raw)?createSummaryValue(type,raw):createSummaryValue(raw):createSummaryValue(type)}(flowType):function generateFuncSignature(_ref3){var type=_ref3.type,raw=_ref3.raw;return createSummaryValue(null!=raw?raw:type)}(flowType)}function createType(type){if(null==type)return null;switch(type.name){case FlowTypesType.UNION:return function generateUnion(_ref2){var name=_ref2.name,raw=_ref2.raw,elements=_ref2.elements;return createSummaryValue(null!=elements?elements.map(generateUnionElement).join(" | "):null!=raw?raw.replace(/^\|\s*/,""):name)}(type);case FlowTypesType.SIGNATURE:return generateSignature(type);default:return function generateDefault(_ref5){var name=_ref5.name,raw=_ref5.raw;return null!=raw?isTooLongForTypeSummary(raw)?createSummaryValue(name,raw):createSummaryValue(raw):createSummaryValue(name)}(type)}}!function(FlowTypesType){FlowTypesType.UNION="union",FlowTypesType.SIGNATURE="signature"}(FlowTypesType||(FlowTypesType={}));var BLACKLIST=["null","undefined"];function isDefaultValueBlacklisted(value){return BLACKLIST.some((function(x){return x===value}))}function createDefaultValue(defaultValue,type){if(null!=defaultValue){var value=defaultValue.value;if(!isDefaultValueBlacklisted(value))return isTooLongForDefaultValueSummary(value)?createSummaryValue(type.name,value):createSummaryValue(value)}return null}function createType_createType(_ref){var tsType=_ref.tsType,required=_ref.required;return null==tsType?null:createSummaryValue(required?tsType.name:tsType.name.replace(" | undefined",""))}function createDefaultValue_createDefaultValue(_ref){var defaultValue=_ref.defaultValue;if(null!=defaultValue){var value=defaultValue.value;if(!isDefaultValueBlacklisted(value))return createSummaryValue(value)}return null}__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js");var convert_convert=function convert(type){var name=type.name,raw=type.raw,base={};switch(void 0!==raw&&(base.raw=raw),type.name){case"string":case"number":case"symbol":case"boolean":return Object.assign({},base,{name:name});case"Array":return Object.assign({},base,{name:"array",value:type.elements.map(convert)});case"signature":return Object.assign({},base,function convertSig(type){switch(type.type){case"function":return{name:"function"};case"object":var values={};return type.signature.properties.forEach((function(prop){values[prop.key]=convert_convert(prop.value)})),{name:"object",value:values};default:throw new Error("Unknown: ".concat(type))}}(type));case"union":case"intersection":return Object.assign({},base,{name:name,value:type.elements.map(convert)});default:return Object.assign({},base,{name:"other",value:name})}},isLiteral=function isLiteral(type){return"literal"===type.name},toEnumOption=function toEnumOption(element){return element.value.replace(/['|"]/g,"")},flow_convert_convert=function convert(type){var name=type.name,raw=type.raw,base={};switch(void 0!==raw&&(base.raw=raw),type.name){case"literal":return Object.assign({},base,{name:"other",value:type.value});case"string":case"number":case"symbol":case"boolean":return Object.assign({},base,{name:name});case"Array":return Object.assign({},base,{name:"array",value:type.elements.map(convert)});case"signature":return Object.assign({},base,function convertSig(type){switch(type.type){case"function":return{name:"function"};case"object":var values={};return type.signature.properties.forEach((function(prop){values[prop.key]=flow_convert_convert(prop.value)})),{name:"object",value:values};default:throw new Error("Unknown: ".concat(type))}}(type));case"union":return type.elements.every(isLiteral)?Object.assign({},base,{name:"enum",value:type.elements.map(toEnumOption)}):Object.assign({},base,{name:name,value:type.elements.map(convert)});case"intersection":return Object.assign({},base,{name:name,value:type.elements.map(convert)});default:return Object.assign({},base,{name:"other",value:name})}},mapValues=(__webpack_require__("./node_modules/core-js/modules/es.number.is-nan.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.string.split.js"),__webpack_require__("./node_modules/lodash/mapValues.js")),mapValues_default=__webpack_require__.n(mapValues),QUOTE_REGEX=/^['"]|['"]$/g,SIGNATURE_REGEXP=/^\(.*\) => /,proptypes_convert_convert=function convert(type){var name=type.name,raw=type.raw,computed=type.computed,value=type.value,base={};switch(void 0!==raw&&(base.raw=raw),name){case"enum":var _values=computed?value:value.map((function(v){var trimmedValue=function trimQuotes(str){return str.replace(QUOTE_REGEX,"")}(v.value);return function includesQuotes(str){return QUOTE_REGEX.test(str)}(v.value)||Number.isNaN(Number(trimmedValue))?trimmedValue:Number(trimmedValue)}));return Object.assign({},base,{name:name,value:_values});case"string":case"number":case"symbol":case"object":return Object.assign({},base,{name:name});case"func":return Object.assign({},base,{name:"function"});case"bool":case"boolean":return Object.assign({},base,{name:"boolean"});case"arrayOf":case"array":return Object.assign({},base,{name:"array",value:value&&convert(value)});case"objectOf":return Object.assign({},base,{name:name,value:convert(value)});case"shape":case"exact":var values=mapValues_default()(value,(function(field){return convert(field)}));return Object.assign({},base,{name:"object",value:values});case"union":return Object.assign({},base,{name:"union",value:value.map((function(v){return convert(v)}))});default:if((null==name?void 0:name.indexOf("|"))>0)try{var literalValues=name.split("|").map((function(v){return JSON.parse(v)}));return Object.assign({},base,{name:"enum",value:literalValues})}catch(err){}var otherVal=value?"".concat(name,"(").concat(value,")"):name,otherName=SIGNATURE_REGEXP.test(name)?"function":"other";return Object.assign({},base,{name:otherName,value:otherVal})}},argTypes_convert_convert=function convert(docgenInfo){var type=docgenInfo.type,tsType=docgenInfo.tsType,flowType=docgenInfo.flowType;return null!=type?proptypes_convert_convert(type):null!=tsType?convert_convert(tsType):null!=flowType?flow_convert_convert(flowType):null};function createPropDef_createType(type){return null!=type?createSummaryValue(type.name):null}function createPropDef_createDefaultValue(defaultValue,type){if(null!=defaultValue){var value=defaultValue.value;if(!isDefaultValueBlacklisted(value))return function isReactDocgenTypescript(defaultValue){var computed=defaultValue.computed,func=defaultValue.func;return void 0===computed&&void 0===func}(defaultValue)&&function isStringValued(type){return!!type&&("string"===type.name||"enum"===type.name&&Array.isArray(type.value)&&type.value.every((function(_ref){var tv=_ref.value;return"string"==typeof tv&&'"'===tv[0]&&'"'===tv[tv.length-1]})))}(type)?createSummaryValue(JSON.stringify(value)):createSummaryValue(value)}return null}function createBasicPropDef(name,type,docgenInfo){var description=docgenInfo.description,required=docgenInfo.required,defaultValue=docgenInfo.defaultValue;return{name:name,type:createPropDef_createType(type),required:required,description:description,defaultValue:createPropDef_createDefaultValue(defaultValue,type)}}function applyJsDocResult(propDef,jsDocParsingResult){if(jsDocParsingResult.includesJsDoc){var description=jsDocParsingResult.description,extractedTags=jsDocParsingResult.extractedTags;null!=description&&(propDef.description=jsDocParsingResult.description);var hasParams=null!=extractedTags.params,hasReturns=null!=extractedTags.returns&&null!=extractedTags.returns.type;(hasParams||hasReturns)&&(propDef.jsDocTags={params:hasParams&&extractedTags.params.map((function(x){return{name:x.getPrettyName(),description:x.description}})),returns:hasReturns&&{description:extractedTags.returns.description}})}return propDef}var createPropDef_javaScriptFactory=function javaScriptFactory(propName,docgenInfo,jsDocParsingResult){var propDef=createBasicPropDef(propName,docgenInfo.type,docgenInfo);return propDef.sbType=argTypes_convert_convert(docgenInfo),applyJsDocResult(propDef,jsDocParsingResult)},createPropDef_tsFactory=function tsFactory(propName,docgenInfo,jsDocParsingResult){var propDef=function createTsPropDef(propName,docgenInfo){var description=docgenInfo.description,required=docgenInfo.required;return{name:propName,type:createType_createType(docgenInfo),required:required,description:description,defaultValue:createDefaultValue_createDefaultValue(docgenInfo)}}(propName,docgenInfo);return propDef.sbType=argTypes_convert_convert(docgenInfo),applyJsDocResult(propDef,jsDocParsingResult)},createPropDef_flowFactory=function flowFactory(propName,docgenInfo,jsDocParsingResult){var propDef=function createFlowPropDef(propName,docgenInfo){var flowType=docgenInfo.flowType,description=docgenInfo.description,required=docgenInfo.required,defaultValue=docgenInfo.defaultValue;return{name:propName,type:createType(flowType),required:required,description:description,defaultValue:createDefaultValue(defaultValue,flowType)}}(propName,docgenInfo);return propDef.sbType=argTypes_convert_convert(docgenInfo),applyJsDocResult(propDef,jsDocParsingResult)},unknownFactory=function unknownFactory(propName,docgenInfo,jsDocParsingResult){return applyJsDocResult(createBasicPropDef(propName,{name:"unknown"},docgenInfo),jsDocParsingResult)},createPropDef_getPropDefFactory=function getPropDefFactory(typeSystem){switch(typeSystem){case TypeSystem.JAVASCRIPT:return createPropDef_javaScriptFactory;case TypeSystem.TYPESCRIPT:return createPropDef_tsFactory;case TypeSystem.FLOW:return createPropDef_flowFactory;default:return unknownFactory}},extractDocgenProps_getTypeSystem=function getTypeSystem(docgenInfo){return null!=docgenInfo.type?TypeSystem.JAVASCRIPT:null!=docgenInfo.flowType?TypeSystem.FLOW:null!=docgenInfo.tsType?TypeSystem.TYPESCRIPT:TypeSystem.UNKNOWN},extractDocgenProps_extractComponentProps=function extractComponentProps(component,section){var docgenSection=getDocgenSection(component,section);return function isValidDocgenSection(docgenSection){return null!=docgenSection&&Object.keys(docgenSection).length>0}(docgenSection)?Array.isArray(docgenSection)?function extractComponentSectionArray(docgenSection){var typeSystem=extractDocgenProps_getTypeSystem(docgenSection[0]),createPropDef=createPropDef_getPropDefFactory(typeSystem);return docgenSection.map((function(item){var _item$type,sanitizedItem=item;return null!==(_item$type=item.type)&&void 0!==_item$type&&_item$type.elements&&(sanitizedItem=Object.assign({},item,{type:Object.assign({},item.type,{value:item.type.elements})})),extractProp(sanitizedItem.name,sanitizedItem,typeSystem,createPropDef)}))}(docgenSection):function extractComponentSectionObject(docgenSection){var docgenPropsKeys=Object.keys(docgenSection),typeSystem=extractDocgenProps_getTypeSystem(docgenSection[docgenPropsKeys[0]]),createPropDef=createPropDef_getPropDefFactory(typeSystem);return docgenPropsKeys.map((function(propName){var docgenInfo=docgenSection[propName];return null!=docgenInfo?extractProp(propName,docgenInfo,typeSystem,createPropDef):null})).filter(Boolean)}(docgenSection):[]};function extractProp(propName,docgenInfo,typeSystem,createPropDef){var jsDocParsingResult=parseJsDoc(docgenInfo.description);return jsDocParsingResult.includesJsDoc&&jsDocParsingResult.ignore?null:{propDef:createPropDef(propName,docgenInfo,jsDocParsingResult),jsDocTags:jsDocParsingResult.extractedTags,docgenInfo:docgenInfo,typeSystem:typeSystem}}var parameters=__webpack_require__("./node_modules/@storybook/store/dist/esm/parameters.js"),prop_types=(__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.map.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/prop-types/index.js")),prop_types_default=__webpack_require__.n(prop_types);function generateFuncSignature_generateFuncSignature(params,returns){var hasParams=null!=params,hasReturns=null!=returns;if(!hasParams&&!hasReturns)return"";var funcParts=[];if(hasParams){var funcParams=params.map((function(x){var prettyName=x.getPrettyName(),typeName=x.getTypeName();return null!=typeName?"".concat(prettyName,": ").concat(typeName):prettyName}));funcParts.push("(".concat(funcParams.join(", "),")"))}else funcParts.push("()");return hasReturns&&funcParts.push("=> ".concat(returns.getTypeName())),funcParts.join(" ")}function generateShortFuncSignature(params,returns){var hasParams=null!=params,hasReturns=null!=returns;if(!hasParams&&!hasReturns)return"";var funcParts=[];return hasParams?funcParts.push("( ... )"):funcParts.push("()"),hasReturns&&funcParts.push("=> ".concat(returns.getTypeName())),funcParts.join(" ")}var CUSTOM_CAPTION="custom",OBJECT_CAPTION="object",ARRAY_CAPTION="array",CLASS_CAPTION="class",FUNCTION_CAPTION="func",ELEMENT_CAPTION="element",html_tags=__webpack_require__("./node_modules/html-tags/index.js"),html_tags_default=__webpack_require__.n(html_tags);function isHtmlTag(tagName){return html_tags_default.a.includes(tagName.toLowerCase())}__webpack_require__("./node_modules/core-js/modules/es.string.ends-with.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.string.starts-with.js");var escodegen=__webpack_require__("./node_modules/escodegen/escodegen.js"),esm=__webpack_require__("./node_modules/ts-dedent/esm/index.js"),BASIC_OPTIONS={format:{indent:{style:" "},semicolons:!1}},COMPACT_OPTIONS=Object.assign({},BASIC_OPTIONS,{format:{newline:""}}),PRETTY_OPTIONS=Object.assign({},BASIC_OPTIONS);function generateCode(ast){var compact=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object(escodegen.generate)(ast,compact?COMPACT_OPTIONS:PRETTY_OPTIONS)}function generateObjectCode(ast){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?function generateCompactObjectCode(ast){var result=generateCode(ast,!0);result.endsWith(" }")||(result="".concat(result.slice(0,-1)," }"));return result}(ast):generateCode(ast)}function generateArrayCode(ast){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?function generateCompactArrayCode(ast){var result=generateCode(ast,!0);result.startsWith("[ ")&&(result=result.replace("[ ","["));return result}(ast):function generateMultilineArrayCode(ast){var result=generateCode(ast);result.endsWith(" }]")&&(result=Object(esm.a)(result));return result}(ast)}var InspectionType,isMemo=function isMemo(component){return component.$$typeof===Symbol.for("react.memo")};!function(InspectionType){InspectionType.IDENTIFIER="Identifier",InspectionType.LITERAL="Literal",InspectionType.OBJECT="Object",InspectionType.ARRAY="Array",InspectionType.FUNCTION="Function",InspectionType.CLASS="Class",InspectionType.ELEMENT="Element",InspectionType.UNKNOWN="Unknown"}(InspectionType||(InspectionType={}));var acorn=__webpack_require__("./node_modules/@storybook/react/node_modules/acorn/dist/acorn.mjs"),acorn_jsx=__webpack_require__("./node_modules/@storybook/react/node_modules/acorn-jsx/index.js"),acorn_jsx_default=__webpack_require__.n(acorn_jsx);function simple(node,visitors,baseVisitor,state,override){baseVisitor||(baseVisitor=walk_base),function c(node,st,override){var type=override||node.type,found=visitors[type];baseVisitor[type](node,st,c),found&&found(node,st)}(node,state,override)}Object.create;function skipThrough(node,st,c){c(node,st)}function ignore(_node,_st,_c){}var walk_base={};walk_base.Program=walk_base.BlockStatement=function(node,st,c){for(var i=0,list=node.body;i1&&void 0!==arguments[1]&&arguments[1]))}function prettyArray(ast){return cleanPropTypes(generateCode(ast,arguments.length>1&&void 0!==arguments[1]&&arguments[1]))}function generateTypeFromString(value,originalTypeName){var short,compact,full,_inspectValue=inspectValue(value),inferredType=_inspectValue.inferredType,ast=_inspectValue.ast,type=inferredType.type;switch(type){case InspectionType.IDENTIFIER:case InspectionType.LITERAL:short=value,compact=value;break;case InspectionType.OBJECT:var depth=inferredType.depth;short=OBJECT_CAPTION,compact=1===depth?prettyObject(ast,!0):null,full=prettyObject(ast);break;case InspectionType.ELEMENT:var identifier=inferredType.identifier;short=null==identifier||isHtmlTag(identifier)?ELEMENT_CAPTION:identifier,compact=1===splitIntoLines(value).length?value:null,full=value;break;case InspectionType.ARRAY:var _depth=inferredType.depth;short=ARRAY_CAPTION,compact=_depth<=2?prettyArray(ast,!0):null,full=prettyArray(ast);break;default:short=function getCaptionForInspectionType(type){switch(type){case InspectionType.OBJECT:return OBJECT_CAPTION;case InspectionType.ARRAY:return ARRAY_CAPTION;case InspectionType.CLASS:return CLASS_CAPTION;case InspectionType.FUNCTION:return FUNCTION_CAPTION;case InspectionType.ELEMENT:return ELEMENT_CAPTION;default:return CUSTOM_CAPTION}}(type),compact=1===splitIntoLines(value).length?value:null,full=value}return createTypeDef({name:originalTypeName,short:short,compact:compact,full:full,inferredType:type})}function objectOf(of){return"objectOf(".concat(of,")")}function generateEnum(type){if(Array.isArray(type.value)){var values=type.value.reduce((function(acc,v){var _generateEnumValue=function generateEnumValue(_ref7){var value=_ref7.value;return _ref7.computed?generateTypeFromString(value,"enumvalue"):createTypeDef({name:"enumvalue",short:value,compact:value})}(v),short=_generateEnumValue.short,compact=_generateEnumValue.compact,full=_generateEnumValue.full;return acc.short.push(short),acc.compact.push(compact),acc.full.push(full),acc}),{short:[],compact:[],full:[]});return createTypeDef({name:PropTypesType.ENUM,short:values.short.join(" | "),compact:values.compact.every((function(x){return null!=x}))?values.compact.join(" | "):null,full:values.full.join(" | ")})}return createTypeDef({name:PropTypesType.ENUM,short:type.value,compact:type.value})}function braceAfter(of){return"".concat(of,"[]")}function braceAround(of){return"[".concat(of,"]")}function createArrayOfObjectTypeDef(short,compact,full){return createTypeDef({name:PropTypesType.ARRAYOF,short:braceAfter(short),compact:null!=compact?braceAround(compact):null,full:braceAround(full)})}function generateType(type,extractedProp){try{switch(type.name){case PropTypesType.CUSTOM:return function generateCustom(_ref5){var raw=_ref5.raw;return null!=raw?generateTypeFromString(raw,PropTypesType.CUSTOM):createTypeDef({name:PropTypesType.CUSTOM,short:CUSTOM_CAPTION,compact:CUSTOM_CAPTION})}(type);case PropTypesType.FUNC:return function generateFunc(extractedProp){var jsDocTags=extractedProp.jsDocTags;return null==jsDocTags||null==jsDocTags.params&&null==jsDocTags.returns?createTypeDef({name:PropTypesType.FUNC,short:FUNCTION_CAPTION,compact:FUNCTION_CAPTION}):createTypeDef({name:PropTypesType.FUNC,short:generateShortFuncSignature(jsDocTags.params,jsDocTags.returns),compact:null,full:generateFuncSignature_generateFuncSignature(jsDocTags.params,jsDocTags.returns)})}(extractedProp);case PropTypesType.SHAPE:return function generateShape(type,extractedProp){var fields=Object.keys(type.value).map((function(key){return"".concat(key,": ").concat(generateType(type.value[key],extractedProp).full)})).join(", "),_inspectValue2=inspectValue("{ ".concat(fields," }")),inferredType=_inspectValue2.inferredType,ast=_inspectValue2.ast,depth=inferredType.depth;return createTypeDef({name:PropTypesType.SHAPE,short:OBJECT_CAPTION,compact:1===depth&&ast?prettyObject(ast,!0):null,full:ast?prettyObject(ast):null})}(type,extractedProp);case PropTypesType.INSTANCEOF:return createTypeDef({name:PropTypesType.INSTANCEOF,short:type.value,compact:type.value});case PropTypesType.OBJECTOF:return function generateObjectOf(type,extractedProp){var _generateType=generateType(type.value,extractedProp),short=_generateType.short,compact=_generateType.compact,full=_generateType.full;return createTypeDef({name:PropTypesType.OBJECTOF,short:objectOf(short),compact:null!=compact?objectOf(compact):null,full:objectOf(full)})}(type,extractedProp);case PropTypesType.UNION:return function createType_generateUnion(type,extractedProp){if(Array.isArray(type.value)){var values=type.value.reduce((function(acc,v){var _generateType2=generateType(v,extractedProp),short=_generateType2.short,compact=_generateType2.compact,full=_generateType2.full;return acc.short.push(short),acc.compact.push(compact),acc.full.push(full),acc}),{short:[],compact:[],full:[]});return createTypeDef({name:PropTypesType.UNION,short:values.short.join(" | "),compact:values.compact.every((function(x){return null!=x}))?values.compact.join(" | "):null,full:values.full.join(" | ")})}return createTypeDef({name:PropTypesType.UNION,short:type.value,compact:null})}(type,extractedProp);case PropTypesType.ENUM:return generateEnum(type);case PropTypesType.ARRAYOF:return function generateArray(type,extractedProp){var _generateType3=generateType(type.value,extractedProp),name=_generateType3.name,short=_generateType3.short,compact=_generateType3.compact,full=_generateType3.full,inferredType=_generateType3.inferredType;if(name===PropTypesType.CUSTOM){if(inferredType===InspectionType.OBJECT)return createArrayOfObjectTypeDef(short,compact,full)}else if(name===PropTypesType.SHAPE)return createArrayOfObjectTypeDef(short,compact,full);return createTypeDef({name:PropTypesType.ARRAYOF,short:braceAfter(short),compact:braceAfter(short)})}(type,extractedProp);default:return createTypeDef({name:type.name,short:type.name,compact:type.name})}}catch(e){console.error(e)}return createTypeDef({name:"unknown",short:"unknown",compact:"unknown"})}function generateObject(_ref){var inferredType=_ref.inferredType,ast=_ref.ast;if(1===inferredType.depth){var compactObject=generateObjectCode(ast,!0);if(!isTooLongForDefaultValueSummary(compactObject))return createSummaryValue(compactObject)}return createSummaryValue(OBJECT_CAPTION,generateObjectCode(ast))}function generateArray_generateArray(_ref){var inferredType=_ref.inferredType,ast=_ref.ast;if(inferredType.depth<=2){var compactArray=generateArrayCode(ast,!0);if(!isTooLongForDefaultValueSummary(compactArray))return createSummaryValue(compactArray)}return createSummaryValue(ARRAY_CAPTION,generateArrayCode(ast))}function getPrettyIdentifier(inferredType){var type=inferredType.type,identifier=inferredType.identifier;switch(type){case InspectionType.FUNCTION:return getPrettyFuncIdentifier(identifier,inferredType.hasParams);case InspectionType.ELEMENT:return getPrettyElementIdentifier(identifier);default:return identifier}}function getPrettyFuncIdentifier(identifier,hasArguments){return"".concat(identifier,hasArguments?"( ... )":"()")}function getPrettyElementIdentifier(identifier){return"<".concat(identifier," />")}function defaultValues_createDefaultValue_createDefaultValue(defaultValue){try{var inspectionResult=inspectValue(defaultValue);switch(inspectionResult.inferredType.type){case InspectionType.OBJECT:return generateObject(inspectionResult);case InspectionType.FUNCTION:return function createDefaultValue_generateFunc(_ref){var inferredType=_ref.inferredType,ast=_ref.ast;if(null!=inferredType.identifier)return createSummaryValue(getPrettyIdentifier(inferredType),generateCode(ast));var prettyCaption=generateCode(ast,!0);return isTooLongForDefaultValueSummary(prettyCaption)?createSummaryValue(FUNCTION_CAPTION,generateCode(ast)):createSummaryValue(prettyCaption)}(inspectionResult);case InspectionType.ELEMENT:return function generateElement(defaultValue,inspectionResult){var inferredType=inspectionResult.inferredType,identifier=inferredType.identifier;return null==identifier||isHtmlTag(identifier)?isTooLongForDefaultValueSummary(defaultValue)?createSummaryValue(ELEMENT_CAPTION,defaultValue):createSummaryValue(defaultValue):createSummaryValue(getPrettyIdentifier(inferredType),defaultValue)}(defaultValue,inspectionResult);case InspectionType.ARRAY:return generateArray_generateArray(inspectionResult);default:return null}}catch(e){console.error(e)}return null}!function(PropTypesType){PropTypesType.CUSTOM="custom",PropTypesType.ANY="any",PropTypesType.FUNC="func",PropTypesType.SHAPE="shape",PropTypesType.OBJECT="object",PropTypesType.INSTANCEOF="instanceOf",PropTypesType.OBJECTOF="objectOf",PropTypesType.UNION="union",PropTypesType.ENUM="enum",PropTypesType.ARRAYOF="arrayOf",PropTypesType.ELEMENT="element",PropTypesType.ELEMENTTYPE="elementType",PropTypesType.NODE="node"}(PropTypesType||(PropTypesType={}));__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js");var isPlainObject=__webpack_require__("./node_modules/lodash/isPlainObject.js"),isPlainObject_default=__webpack_require__.n(isPlainObject),isFunction=__webpack_require__("./node_modules/lodash/isFunction.js"),isFunction_default=__webpack_require__.n(isFunction),isString=__webpack_require__("./node_modules/lodash/isString.js"),isString_default=__webpack_require__.n(isString),cjs=__webpack_require__("./node_modules/react-element-to-jsx-string/dist/cjs/index.js"),cjs_default=__webpack_require__.n(cjs);function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function isReactElement(element){return null!=element.$$typeof}function extractFunctionName(func,propName){var name=func.name;return""!==name&&"anonymous"!==name&&name!==propName?name:null}var DEFAULT_TYPE_RESOLVERS={string:function stringResolver(rawDefaultProp){return createSummaryValue(JSON.stringify(rawDefaultProp))},object:function objectResolver(rawDefaultProp){return isReactElement(rawDefaultProp)&&null!=rawDefaultProp.type?function generateReactObject(rawDefaultProp){var type=rawDefaultProp.type,displayName=type.displayName,jsx=cjs_default()(rawDefaultProp,{});if(null!=displayName)return createSummaryValue(getPrettyElementIdentifier(displayName),jsx);if(isString_default()(type)&&isHtmlTag(type)){var jsxSummary=cjs_default()(rawDefaultProp,{tabStop:0}).replace(/\r?\n|\r/g,"");if(!isTooLongForDefaultValueSummary(jsxSummary))return createSummaryValue(jsxSummary)}return createSummaryValue(ELEMENT_CAPTION,jsx)}(rawDefaultProp):isPlainObject_default()(rawDefaultProp)?generateObject(inspectValue(JSON.stringify(rawDefaultProp))):Array.isArray(rawDefaultProp)?generateArray_generateArray(inspectValue(JSON.stringify(rawDefaultProp))):createSummaryValue(OBJECT_CAPTION)},function:function functionResolver(rawDefaultProp,propDef){var inspectionResult,isElement=!1;if(isFunction_default()(rawDefaultProp.render))isElement=!0;else if(null!=rawDefaultProp.prototype&&isFunction_default()(rawDefaultProp.prototype.render))isElement=!0;else{var innerElement;try{var _ref=(inspectionResult=inspectValue(rawDefaultProp.toString())).inferredType,hasParams=_ref.hasParams,params=_ref.params;hasParams?1===params.length&&"ObjectPattern"===params[0].type&&(innerElement=rawDefaultProp({})):innerElement=rawDefaultProp(),null!=innerElement&&isReactElement(innerElement)&&(isElement=!0)}catch(e){}}var funcName=extractFunctionName(rawDefaultProp,propDef.name);return null!=funcName?isElement?createSummaryValue(getPrettyElementIdentifier(funcName)):(null!=inspectionResult&&(inspectionResult=inspectValue(rawDefaultProp.toString())),createSummaryValue(getPrettyFuncIdentifier(funcName,inspectionResult.inferredType.hasParams))):createSummaryValue(isElement?ELEMENT_CAPTION:FUNCTION_CAPTION)},default:function defaultResolver(rawDefaultProp){return createSummaryValue(rawDefaultProp.toString())}};function createDefaultValueFromRawDefaultProp(rawDefaultProp,propDef){var typeResolvers=arguments.length>2&&void 0!==arguments[2]?arguments[2]:DEFAULT_TYPE_RESOLVERS;try{switch(_typeof(rawDefaultProp)){case"string":return typeResolvers.string(rawDefaultProp,propDef);case"object":return typeResolvers.object(rawDefaultProp,propDef);case"function":return typeResolvers.function(rawDefaultProp,propDef);default:return typeResolvers.default(rawDefaultProp,propDef)}}catch(e){console.error(e)}return null}__webpack_require__("./node_modules/core-js/modules/es.array.find.js");var rawDefaultPropTypeResolvers=function createTypeResolvers(){var customResolvers=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({},DEFAULT_TYPE_RESOLVERS,customResolvers)}({function:function funcResolver(rawDefaultProp,_ref){var name=_ref.name,type=_ref.type,isElement="element"===type.summary||"elementType"===type.summary,funcName=extractFunctionName(rawDefaultProp,name);return createSummaryValue(null!=funcName?isElement?getPrettyElementIdentifier(funcName):getPrettyFuncIdentifier(funcName,inspectValue(rawDefaultProp.toString()).inferredType.hasParams):isElement?ELEMENT_CAPTION:FUNCTION_CAPTION)}});function enhancePropTypesProp(extractedProp,rawDefaultProp){var propDef=extractedProp.propDef,newtype=function propTypes_createType_createType(extractedProp){var type=extractedProp.docgenInfo.type;if(null==type)return null;try{switch(type.name){case PropTypesType.CUSTOM:case PropTypesType.SHAPE:case PropTypesType.INSTANCEOF:case PropTypesType.OBJECTOF:case PropTypesType.UNION:case PropTypesType.ENUM:case PropTypesType.ARRAYOF:var _generateType4=generateType(type,extractedProp),short=_generateType4.short,compact=_generateType4.compact,full=_generateType4.full;return null==compact||isTooLongForTypeSummary(compact)?createSummaryValue(short,full):createSummaryValue(compact);case PropTypesType.FUNC:var detail,_generateType5=generateType(type,extractedProp),_short=_generateType5.short,_full=_generateType5.full,summary=_short;return _full.lengtharr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var jsxDecorator_applyBeforeRender=function applyBeforeRender(domString,options){return"function"!=typeof options.onBeforeRender?domString:browser_default()(options.onBeforeRender,Object(esm.a)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n StoryFn.parameters.jsx.onBeforeRender was deprecated.\n Prefer StoryFn.parameters.jsx.transformSource instead.\n See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-onbeforerender for details.\n "]))))(domString)},jsxDecorator_renderJsx=function renderJsx(code,options){if(void 0===code)return client_logger_dist_esm.a.warn("Too many skip or undefined component"),null;for(var renderedJSX=code,Type=renderedJSX.type,i=0;i1)return client_logger_dist_esm.a.warn("Trying to skip an array of elements"),null;void 0===renderedJSX.props.children?(client_logger_dist_esm.a.warn("Not enough children to skip elements."),"function"==typeof renderedJSX.type&&""===renderedJSX.type.name&&(renderedJSX=react_default.a.createElement(Type,renderedJSX.props))):renderedJSX="function"==typeof renderedJSX.props.children?renderedJSX.props.children():renderedJSX.props.children}var displayNameDefaults="string"==typeof options.displayName?{showFunctions:!0,displayName:function displayName(){return options.displayName}}:{displayName:function displayName(el){return el.type.displayName||getDocgenSection(el.type,"displayName")||("_default"!==el.type.name?el.type.name:null)||("function"==typeof el.type?"No Display Name":null)||(function isForwardRef(component){return component.$$typeof===Symbol.for("react.forward_ref")}(el.type)?el.type.render.name:null)||(isMemo(el.type)?el.type.type.name:null)||el.type}},filterDefaults={filterProps:function filterProps(value,key){return void 0!==value}},opts=Object.assign({},displayNameDefaults,filterDefaults,options);return react_default.a.Children.map(code,(function(c){var child="number"==typeof c?c.toString():c,string=jsxDecorator_applyBeforeRender(cjs_default()(child,opts),options);if(string.indexOf(""")>-1){var matches=string.match(/\S+=\\"([^"]*)\\"/g);matches&&matches.forEach((function(match){string=string.replace(match,match.replace(/"/g,"'"))}))}return string})).join("\n").replace(/function\s+noRefCheck\(\)\s+\{\}/,"() => {}")},defaultOpts={skip:0,showFunctions:!1,enableBeautify:!0,showDefaultProps:!1},jsxDecorator_mdxToJsx=function mdxToJsx(node){if(!function isMdx(node){var _node$type,_node$props;return"MDXCreateElement"===(null===(_node$type=node.type)||void 0===_node$type?void 0:_node$type.displayName)&&!(null===(_node$props=node.props)||void 0===_node$props||!_node$props.mdxType)}(node))return node;var _node$props2=node.props,originalType=(_node$props2.mdxType,_node$props2.originalType),children=_node$props2.children,rest=_objectWithoutProperties(_node$props2,_excluded),jsxChildren=[];children&&(jsxChildren=(Array.isArray(children)?children:[children]).map(mdxToJsx));return react.createElement.apply(void 0,[originalType,rest].concat(_toConsumableArray(jsxChildren)))},config_parameters={docs:{inlineStories:!0,prepareForInline:function prepareForInline(storyFn){return storyFn()},extractArgTypes:function extractArgTypes(component){if(component){var _extractProps=function extractProps(component){return{rows:getPropDefs(component,"props")}}(component),rows=_extractProps.rows;if(rows)return rows.reduce((function(acc,row){var name=row.name,description=row.description,type=row.type,sbType=row.sbType,defaultSummary=row.defaultValue,jsDocTags=row.jsDocTags,required=row.required;return acc[name]={name:name,description:description,type:Object.assign({required:required},sbType),table:{type:type,jsDocTags:jsDocTags,defaultValue:defaultSummary}},acc}),{})}return null},extractComponentDescription:function extractComponentDescription(component){return null!=component&&function getDocgenDescription(component){return hasDocgen(component)&&Object(utils_string.a)(component.__docgenInfo.description)}(component)}}},decorators=[function jsxDecorator(storyFn,context){var _context$parameters$d2,_context$parameters$d3,channel=dist_esm.a.getChannel(),skip=function skipJsxRender(context){var _context$parameters$d,sourceParams=null==context||null===(_context$parameters$d=context.parameters.docs)||void 0===_context$parameters$d?void 0:_context$parameters$d.source,isArgsStory=null==context?void 0:context.parameters.__isArgsStory;return(null==sourceParams?void 0:sourceParams.type)!==SourceType.DYNAMIC&&(!isArgsStory||(null==sourceParams?void 0:sourceParams.code)||(null==sourceParams?void 0:sourceParams.type)===SourceType.CODE)}(context),story=storyFn(),jsx="";if(Object(hooks.c)((function(){skip||channel.emit(SNIPPET_RENDERED,(context||{}).id,jsx)})),skip)return story;var options=Object.assign({},defaultOpts,(null==context?void 0:context.parameters.jsx)||{}),storyJsx=null!=context&&null!==(_context$parameters$d2=context.parameters.docs)&&void 0!==_context$parameters$d2&&null!==(_context$parameters$d3=_context$parameters$d2.source)&&void 0!==_context$parameters$d3&&_context$parameters$d3.excludeDecorators?context.originalStoryFn(context.args,context):story,sourceJsx=jsxDecorator_mdxToJsx(storyJsx),rendered=jsxDecorator_renderJsx(sourceJsx,options);return rendered&&(jsx=function applyTransformSource(domString,options,context){return"function"!=typeof options.transformSource?domString:options.transformSource(domString,context)}(rendered,options,context)),story}],argTypesEnhancers=[function enhanceArgTypes(context){var component=context.component,userArgTypes=context.argTypes,_context$parameters$d=context.parameters.docs,extractArgTypes=(void 0===_context$parameters$d?{}:_context$parameters$d).extractArgTypes,extractedArgTypes=extractArgTypes&&component?extractArgTypes(component):{};return extractedArgTypes?Object(parameters.a)(extractedArgTypes,userArgTypes):userArgTypes}];function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Object.keys(config_namespaceObject).forEach((function(key){var value=config_namespaceObject[key];switch(key){case"args":return Object(ClientApi.d)(value);case"argTypes":return Object(ClientApi.b)(value);case"decorators":return value.forEach((function(decorator){return Object(ClientApi.f)(decorator,!1)}));case"loaders":return value.forEach((function(loader){return Object(ClientApi.g)(loader,!1)}));case"parameters":return Object(ClientApi.h)(function _objectSpread(target){for(var i=1;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&void 0!==arguments[0]?arguments[0]:{v:3,stories:{}}).stories;!function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,StoryIndexStore),this.channel=void 0,this.stories=void 0,this.stories=stories}return function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(StoryIndexStore,[{key:"storyIdFromSpecifier",value:function storyIdFromSpecifier(specifier){var storyIds=Object.keys(this.stories);if("*"===specifier)return storyIds[0];if("string"==typeof specifier)return storyIds.indexOf(specifier)>=0?specifier:storyIds.find((function(storyId){return storyId.startsWith(specifier)}));var name=specifier.name,title=specifier.title,match=Object.entries(this.stories).find((function(_ref2){var _ref3=_slicedToArray(_ref2,2),story=(_ref3[0],_ref3[1]);return story.name===name&&story.title===title}));return match&&match[0]}},{key:"storyIdToEntry",value:function storyIdToEntry(storyId){var storyEntry=this.stories[storyId];if(!storyEntry)throw new Error(Object(esm.a)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["Couldn't find story matching '","' after HMR.\n - Did you remove it from your CSF file?\n - Are you sure a story with that id exists?\n - Please check your stories field of your main.js config.\n - Also check the browser console and terminal for error messages."])),storyId));return storyEntry}}]),StoryIndexStore}(),esm_args=__webpack_require__("./node_modules/@storybook/store/dist/esm/args.js");function ArgsStore_defineProperties(target,props){for(var i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var checkDisallowedParameters=function checkDisallowedParameters(parameters){parameters&&(function checkGlobals(parameters){var globals=parameters.globals,globalTypes=parameters.globalTypes;(globals||globalTypes)&&dist_esm.a.error("Global args/argTypes can only be set globally",JSON.stringify({globals:globals,globalTypes:globalTypes}))}(parameters),function checkStorySort(parameters){var options=parameters.options;null!=options&&options.storySort&&dist_esm.a.error("The storySort option parameter can only be set globally")}(parameters))};function processCSFFile(moduleExports,importPath,title){var defaultExport=moduleExports.default,namedExports=(moduleExports.__namedExportsOrder,_objectWithoutProperties(moduleExports,_excluded)),meta=Object(normalizeComponentAnnotations.a)(defaultExport,title,importPath);checkDisallowedParameters(meta.parameters);var csfFile={meta:meta,stories:{}};return Object.keys(namedExports).forEach((function(key){if(Object(dist.isExportStory)(key,meta)){var storyMeta=Object(normalizeStory.a)(key,namedExports[key],meta);checkDisallowedParameters(storyMeta.parameters),csfFile.stories[storyMeta.id]=storyMeta}})),csfFile}var prepareStory=__webpack_require__("./node_modules/@storybook/store/dist/esm/csf/prepareStory.js"),normalizeProjectAnnotations=__webpack_require__("./node_modules/@storybook/store/dist/esm/csf/normalizeProjectAnnotations.js"),hooks=__webpack_require__("./node_modules/@storybook/addons/dist/esm/hooks.js");function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function StoryStore_slicedToArray(arr,i){return function StoryStore_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function StoryStore_iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function StoryStore_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return StoryStore_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return StoryStore_arrayLikeToArray(o,minLen)}(arr,i)||function StoryStore_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function StoryStore_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&void 0!==arguments[0]?arguments[0]:{includeDocsOnly:!1};if(!this.cachedCSFFiles)throw new Error("Cannot call extract() unless you call cacheAllCSFFiles() first.");return Object.entries(this.storyIndex.stories).reduce((function(acc,_ref11){var _ref12=StoryStore_slicedToArray(_ref11,2),storyId=_ref12[0],importPath=_ref12[1].importPath,csfFile=_this6.cachedCSFFiles[importPath],story=_this6.storyFromCSFFile({storyId:storyId,csfFile:csfFile});return!options.includeDocsOnly&&story.parameters.docsOnly||(acc[storyId]=Object.entries(story).reduce((function(storyAcc,_ref13){var _ref14=StoryStore_slicedToArray(_ref13,2),key=_ref14[0],value=_ref14[1];return"function"==typeof value?storyAcc:Array.isArray(value)?Object.assign(storyAcc,_defineProperty({},key,value.slice().sort())):Object.assign(storyAcc,_defineProperty({},key,value))}),{args:story.initialArgs})),acc}),{})}},{key:"getSetStoriesPayload",value:function getSetStoriesPayload(){var stories=this.extract({includeDocsOnly:!0}),kindParameters=Object.values(stories).reduce((function(acc,_ref15){return acc[_ref15.title]={},acc}),{});return{v:2,globals:this.globals.get(),globalParameters:{},kindParameters:kindParameters,stories:stories}}},{key:"raw",value:function raw(){var _this7=this;return Object.values(this.extract()).map((function(_ref16){var id=_ref16.id;return _this7.fromId(id)}))}},{key:"fromId",value:function fromId(storyId){var importPath,_this8=this;if(!this.cachedCSFFiles)throw new Error("Cannot call fromId/raw() unless you call cacheAllCSFFiles() first.");try{importPath=this.storyIndex.storyIdToEntry(storyId).importPath}catch(err){return null}var csfFile=this.cachedCSFFiles[importPath],story=this.storyFromCSFFile({storyId:storyId,csfFile:csfFile});return Object.assign({},story,{storyFn:function storyFn(update){var context=Object.assign({},_this8.getStoryContext(story),{viewMode:"story"});return story.unboundStoryFn(Object.assign({},context,update))}})}}]),StoryStore}(),core_events_dist_esm=(__webpack_require__("./node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/es.reflect.construct.js"),__webpack_require__("./node_modules/core-js/modules/es.reflect.get.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/@storybook/core-events/dist/esm/index.js")),addons_dist_esm=__webpack_require__("./node_modules/@storybook/addons/dist/esm/index.js");__webpack_require__("./node_modules/core-js/modules/es.array.includes.js");function StoryRender_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function StoryRender_asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){StoryRender_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){StoryRender_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}function StoryRender_defineProperties(target,props){for(var i=0;i0&&void 0!==_args9[0]?_args9[0]:{}).initial,initial=void 0!==_ref2$initial&&_ref2$initial,_ref2$forceRemount=_ref2.forceRemount,forceRemount=void 0!==_ref2$forceRemount&&_ref2$forceRemount,this.story){_context9.next=3;break}throw new Error("cannot render when not prepared");case 3:return _this$story=this.story,id=_this$story.id,componentId=_this$story.componentId,title=_this$story.title,name=_this$story.name,applyLoaders=_this$story.applyLoaders,unboundStoryFn=_this$story.unboundStoryFn,playFunction=_this$story.playFunction,forceRemount&&!initial&&(this.cancelRender(),this.abortController=createController()),abortSignal=this.abortController.signal,_context9.prev=6,_context9.next=9,this.runPhase(abortSignal,"loading",StoryRender_asyncToGenerator(regeneratorRuntime.mark((function _callee5(){return regeneratorRuntime.wrap((function _callee5$(_context5){for(;;)switch(_context5.prev=_context5.next){case 0:return _context5.next=2,applyLoaders(Object.assign({},_this2.context(),{viewMode:_this2.viewMode}));case 2:loadedContext=_context5.sent;case 3:case"end":return _context5.stop()}}),_callee5)}))));case 9:if(!abortSignal.aborted){_context9.next=11;break}return _context9.abrupt("return");case 11:return renderStoryContext=Object.assign({},loadedContext,this.context(),{abortSignal:abortSignal,canvasElement:this.canvasElement}),_renderContext=Object.assign({componentId:componentId,title:title,kind:title,id:id,name:name,story:name},this.callbacks,{forceRemount:forceRemount||this.notYetRendered,storyContext:renderStoryContext,storyFn:function storyFn(){return unboundStoryFn(renderStoryContext)},unboundStoryFn:unboundStoryFn}),_context9.next=15,this.runPhase(abortSignal,"rendering",StoryRender_asyncToGenerator(regeneratorRuntime.mark((function _callee6(){return regeneratorRuntime.wrap((function _callee6$(_context6){for(;;)switch(_context6.prev=_context6.next){case 0:return _context6.abrupt("return",_this2.renderToScreen(_renderContext,_this2.canvasElement));case 1:case"end":return _context6.stop()}}),_callee6)}))));case 15:if(this.notYetRendered=!1,!abortSignal.aborted){_context9.next=18;break}return _context9.abrupt("return");case 18:if(!forceRemount||!playFunction){_context9.next=27;break}return this.disableKeyListeners=!0,_context9.next=22,this.runPhase(abortSignal,"playing",StoryRender_asyncToGenerator(regeneratorRuntime.mark((function _callee7(){return regeneratorRuntime.wrap((function _callee7$(_context7){for(;;)switch(_context7.prev=_context7.next){case 0:return _context7.abrupt("return",playFunction(_renderContext.storyContext));case 1:case"end":return _context7.stop()}}),_callee7)}))));case 22:return _context9.next=24,this.runPhase(abortSignal,"played");case 24:if(this.disableKeyListeners=!1,!abortSignal.aborted){_context9.next=27;break}return _context9.abrupt("return");case 27:return _context9.next=29,this.runPhase(abortSignal,"completed",StoryRender_asyncToGenerator(regeneratorRuntime.mark((function _callee8(){return regeneratorRuntime.wrap((function _callee8$(_context8){for(;;)switch(_context8.prev=_context8.next){case 0:return _context8.abrupt("return",_this2.channel.emit(core_events_dist_esm.STORY_RENDERED,id));case 1:case"end":return _context8.stop()}}),_callee8)}))));case 29:_context9.next=34;break;case 31:_context9.prev=31,_context9.t0=_context9.catch(6),this.callbacks.showException(_context9.t0);case 34:case"end":return _context9.stop()}}),_callee9,this,[[6,31]])}))),function render(){return _render.apply(this,arguments)})},{key:"rerender",value:(_rerender=StoryRender_asyncToGenerator(regeneratorRuntime.mark((function _callee10(){return regeneratorRuntime.wrap((function _callee10$(_context10){for(;;)switch(_context10.prev=_context10.next){case 0:return _context10.abrupt("return",this.render());case 1:case"end":return _context10.stop()}}),_callee10,this)}))),function rerender(){return _rerender.apply(this,arguments)})},{key:"remount",value:(_remount=StoryRender_asyncToGenerator(regeneratorRuntime.mark((function _callee11(){return regeneratorRuntime.wrap((function _callee11$(_context11){for(;;)switch(_context11.prev=_context11.next){case 0:return _context11.abrupt("return",this.render({forceRemount:!0}));case 1:case"end":return _context11.stop()}}),_callee11,this)}))),function remount(){return _remount.apply(this,arguments)})},{key:"cancelRender",value:function cancelRender(){this.abortController.abort()}},{key:"teardown",value:(_teardown=StoryRender_asyncToGenerator(regeneratorRuntime.mark((function _callee12(){var i;return regeneratorRuntime.wrap((function _callee12$(_context12){for(;;)switch(_context12.prev=_context12.next){case 0:this.cancelRender(),this.story&&this.store.cleanupStory(this.story),i=0;case 4:if(!(i<3)){_context12.next=12;break}if(this.isPending()){_context12.next=7;break}return _context12.abrupt("return");case 7:return _context12.next=9,new Promise((function(resolve){return setTimeout(resolve,0)}));case 9:i+=1,_context12.next=4;break;case 12:return window_default.a.window.location.reload(),_context12.next=15,new Promise((function(){}));case 15:case"end":return _context12.stop()}}),_callee12,this)}))),function teardown(){return _teardown.apply(this,arguments)})}]),StoryRender}();function Preview_toConsumableArray(arr){return function Preview_arrayWithoutHoles(arr){if(Array.isArray(arr))return Preview_arrayLikeToArray(arr)}(arr)||function Preview_iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function Preview_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return Preview_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Preview_arrayLikeToArray(o,minLen)}(arr)||function Preview_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Preview_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&void 0!==_args12[1]?_args12[1]:{}).viewModeChanged,this.storyRenders=this.storyRenders.filter((function(r){return r!==render})),_context12.next=4,null==render?void 0:render.teardown({viewModeChanged:viewModeChanged});case 4:case"end":return _context12.stop()}}),_callee12,this)}))),function teardownRender(_x7){return _teardownRender.apply(this,arguments)})},{key:"extract",value:(_extract=Preview_asyncToGenerator(regeneratorRuntime.mark((function _callee13(options){var _global$FEATURES4;return regeneratorRuntime.wrap((function _callee13$(_context13){for(;;)switch(_context13.prev=_context13.next){case 0:if(!this.previewEntryError){_context13.next=2;break}throw this.previewEntryError;case 2:if(this.storyStore.projectAnnotations){_context13.next=4;break}throw new Error(Object(esm.a)(_templateObject2||(_templateObject2=Preview_taggedTemplateLiteral(["Failed to initialize Storybook.\n \n Do you have an error in your `preview.js`? Check your Storybook's browser console for errors."],["Failed to initialize Storybook.\n \n Do you have an error in your \\`preview.js\\`? Check your Storybook's browser console for errors."]))));case 4:if(null===(_global$FEATURES4=window_default.a.FEATURES)||void 0===_global$FEATURES4||!_global$FEATURES4.storyStoreV7){_context13.next=7;break}return _context13.next=7,this.storyStore.cacheAllCSFFiles();case 7:return _context13.abrupt("return",this.storyStore.extract(options));case 8:case"end":return _context13.stop()}}),_callee13,this)}))),function extract(_x8){return _extract.apply(this,arguments)})},{key:"inlineStoryCallbacks",value:function inlineStoryCallbacks(storyId){return{showMain:function showMain(){},showError:function showError(err){return dist_esm.a.error("Error rendering docs story (".concat(storyId,")"),err)},showException:function showException(err){return dist_esm.a.error("Error rendering docs story (".concat(storyId,")"),err)}}}},{key:"renderPreviewEntryError",value:function renderPreviewEntryError(reason,err){this.previewEntryError=err,dist_esm.a.error(reason),dist_esm.a.error(err),this.channel.emit(core_events_dist_esm.CONFIG_ERROR,err)}}]),Preview}(),lib=(__webpack_require__("./node_modules/core-js/modules/es.string.match.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js"),__webpack_require__("./node_modules/qs/lib/index.js")),lib_default=__webpack_require__.n(lib),isPlainObject=(__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.ends-with.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.string.split.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/lodash/isPlainObject.js")),isPlainObject_default=__webpack_require__.n(isPlainObject);function parseArgsParam_slicedToArray(arr,i){return function parseArgsParam_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function parseArgsParam_iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function parseArgsParam_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return parseArgsParam_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return parseArgsParam_arrayLikeToArray(o,minLen)}(arr,i)||function parseArgsParam_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function parseArgsParam_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&void 0!==arguments[0]?arguments[0]:"",value=arguments.length>1?arguments[1]:void 0;return null!==key&&(!(""===key||!VALIDATION_REGEXP.test(key))&&(null==value||(value instanceof Date||("number"==typeof value||"boolean"==typeof value||("string"==typeof value?VALIDATION_REGEXP.test(value)||NUMBER_REGEXP.test(value)||HEX_REGEXP.test(value)||COLOR_REGEXP.test(value):Array.isArray(value)?value.every((function(v){return validateArgs(key,v)})):!!isPlainObject_default()(value)&&Object.entries(value).every((function(_ref){var _ref2=parseArgsParam_slicedToArray(_ref,2),k=_ref2[0],v=_ref2[1];return validateArgs(k,v)})))))))},QS_OPTIONS={delimiter:";",allowDots:!0,allowSparse:!0,decoder:function(_decoder){function decoder(_x,_x2,_x3,_x4){return _decoder.apply(this,arguments)}return decoder.toString=function(){return _decoder.toString()},decoder}((function(str,defaultDecoder,charset,type){if("value"===type&&str.startsWith("!")){if("!undefined"===str)return;if("!null"===str)return null;if(str.startsWith("!date(")&&str.endsWith(")"))return new Date(str.slice(6,-1));if(str.startsWith("!hex(")&&str.endsWith(")"))return"#".concat(str.slice(5,-1));var color=str.slice(1).match(COLOR_REGEXP);if(color)return str.startsWith("!rgba")?"".concat(color[1],"(").concat(color[2],", ").concat(color[3],", ").concat(color[4],", ").concat(color[5],")"):str.startsWith("!hsla")?"".concat(color[1],"(").concat(color[2],", ").concat(color[3],"%, ").concat(color[4],"%, ").concat(color[5],")"):str.startsWith("!rgb")?"".concat(color[1],"(").concat(color[2],", ").concat(color[3],", ").concat(color[4],")"):"".concat(color[1],"(").concat(color[2],", ").concat(color[3],"%, ").concat(color[4],"%)")}return"value"===type&&NUMBER_REGEXP.test(str)?Number(str):defaultDecoder(str,defaultDecoder,charset)}))},parseArgsParam_parseArgsParam=function parseArgsParam(argsString){var parts=argsString.split(";").map((function(part){return part.replace("=","~").replace(":","=")}));return Object.entries(lib_default.a.parse(parts.join(";"),QS_OPTIONS)).reduce((function(acc,_ref3){var _ref4=parseArgsParam_slicedToArray(_ref3,2),key=_ref4[0],value=_ref4[1];return parseArgsParam_validateArgs(key,value)?Object.assign(acc,function parseArgsParam_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}({},key,value)):(dist_esm.b.warn(Object(esm.a)(parseArgsParam_templateObject||(parseArgsParam_templateObject=function parseArgsParam_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n Omitted potentially unsafe URL args.\n\n More info: https://storybook.js.org/docs/react/writing-stories/args#setting-args-through-the-url\n "])))),acc)}),{})},UrlStore_excluded=["path","selectedKind","selectedStory"];function UrlStore_defineProperties(target,props){for(var i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var UrlStore_history=window_default.a.history,UrlStore_document=window_default.a.document;var WebView_templateObject,UrlStore_getQueryString=function getQueryString(_ref){var selection=_ref.selection,extraParams=_ref.extraParams,_document$location$se=UrlStore_document.location.search,search=void 0===_document$location$se?"":_document$location$se,_qs$parse=lib_default.a.parse(search,{ignoreQueryPrefix:!0}),rest=(_qs$parse.path,_qs$parse.selectedKind,_qs$parse.selectedStory,UrlStore_objectWithoutProperties(_qs$parse,UrlStore_excluded));return lib_default.a.stringify(Object.assign({},rest,extraParams,selection&&{id:selection.storyId,viewMode:selection.viewMode}),{encode:!1,addQueryPrefix:!0})},getFirstString=function getFirstString(v){return"string"==typeof v?v:Array.isArray(v)?getFirstString(v[0]):function isObject(val){return null!=val&&"object"===_typeof(val)&&!1===Array.isArray(val)}(v)?getFirstString(Object.values(v)):void 0},deprecatedLegacyQuery=browser_default()((function(){return 0}),"URL formats with `selectedKind` and `selectedName` query parameters are deprecated.\nUse `id=$storyId` instead.\nSee https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#new-url-structure"),UrlStore_getSelectionSpecifierFromPath=function getSelectionSpecifierFromPath(){var query=lib_default.a.parse(UrlStore_document.location.search,{ignoreQueryPrefix:!0}),args="string"==typeof query.args?parseArgsParam_parseArgsParam(query.args):void 0,globals="string"==typeof query.globals?parseArgsParam_parseArgsParam(query.globals):void 0,viewMode=getFirstString(query.viewMode);"string"==typeof viewMode&&viewMode.match(/docs|story/)||(viewMode="story");var path=getFirstString(query.path),storyId=path?function pathToId(path){var match=(path||"").match(/^\/story\/(.+)/);if(!match)throw new Error("Invalid path '".concat(path,"', must start with '/story/'"));return match[1]}(path):getFirstString(query.id);if(storyId)return{storySpecifier:storyId,args:args,globals:globals,viewMode:viewMode};var title=getFirstString(query.selectedKind),name=getFirstString(query.selectedStory);return title&&name?(deprecatedLegacyQuery(),{storySpecifier:{title:title,name:name},args:args,globals:globals,viewMode:viewMode}):null},UrlStore=function(){function UrlStore(){!function UrlStore_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,UrlStore),this.selectionSpecifier=void 0,this.selection=void 0,this.selectionSpecifier=UrlStore_getSelectionSpecifierFromPath()}return function UrlStore_createClass(Constructor,protoProps,staticProps){return protoProps&&UrlStore_defineProperties(Constructor.prototype,protoProps),staticProps&&UrlStore_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(UrlStore,[{key:"setSelection",value:function setSelection(selection){this.selection=selection,function setPath(selection){if(selection){var query=UrlStore_getQueryString({selection:selection}),_document$location$ha=UrlStore_document.location.hash,hash=void 0===_document$location$ha?"":_document$location$ha;UrlStore_document.title=selection.storyId,UrlStore_history.replaceState({},"","".concat(UrlStore_document.location.pathname).concat(query).concat(hash))}}(this.selection)}},{key:"setQueryParams",value:function setQueryParams(queryParams){var query=UrlStore_getQueryString({extraParams:queryParams}),_document$location$ha2=UrlStore_document.location.hash,hash=void 0===_document$location$ha2?"":_document$location$ha2;UrlStore_history.replaceState({},"","".concat(UrlStore_document.location.pathname).concat(query).concat(hash))}}]),UrlStore}(),ansi_to_html=__webpack_require__("./node_modules/ansi-to-html/lib/ansi_to_html.js"),ansi_to_html_default=__webpack_require__.n(ansi_to_html);function WebView_slicedToArray(arr,i){return function WebView_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function WebView_iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function WebView_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return WebView_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return WebView_arrayLikeToArray(o,minLen)}(arr,i)||function WebView_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function WebView_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&void 0!==arguments[0]?arguments[0]:"padded";if("none"===layout)return WebView_document.body.classList.remove(this.currentLayoutClass),void(this.currentLayoutClass=null);this.checkIfLayoutExists(layout);var layoutClass=layoutClassMap[layout];WebView_document.body.classList.remove(this.currentLayoutClass),WebView_document.body.classList.add(layoutClass),this.currentLayoutClass=layoutClass}},{key:"checkIfLayoutExists",value:function checkIfLayoutExists(layout){layoutClassMap[layout]||dist_esm.a.warn(Object(esm.a)(WebView_templateObject||(WebView_templateObject=function WebView_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["The desired layout: "," is not a valid option.\n The possible options are: ",", none."])),layout,Object.keys(layoutClassMap).join(", ")))}},{key:"showMode",value:function showMode(mode){clearTimeout(this.preparingTimeout),Object.keys(Mode).forEach((function(otherMode){otherMode===mode?WebView_document.body.classList.add(classes[otherMode]):WebView_document.body.classList.remove(classes[otherMode])}))}},{key:"showErrorDisplay",value:function showErrorDisplay(_ref){var _ref$message=_ref.message,message=void 0===_ref$message?"":_ref$message,_ref$stack=_ref.stack,header=message,detail=void 0===_ref$stack?"":_ref$stack,parts=message.split("\n");parts.length>1&&(header=WebView_slicedToArray(parts,1)[0],detail=parts.slice(1).join("\n"));WebView_document.getElementById("error-message").innerHTML=ansiConverter.toHtml(header),WebView_document.getElementById("error-stack").innerHTML=ansiConverter.toHtml(detail),this.showMode(Mode.ERROR)}},{key:"showNoPreview",value:function showNoPreview(){var _this$storyRoot,_this$docsRoot;this.testing||(this.showMode(Mode.NOPREVIEW),null===(_this$storyRoot=this.storyRoot())||void 0===_this$storyRoot||_this$storyRoot.setAttribute("hidden","true"),null===(_this$docsRoot=this.docsRoot())||void 0===_this$docsRoot||_this$docsRoot.setAttribute("hidden","true"))}},{key:"showPreparingStory",value:function showPreparingStory(){var _this=this,_ref2$immediate=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).immediate,immediate=void 0!==_ref2$immediate&&_ref2$immediate;clearTimeout(this.preparingTimeout),immediate?this.showMode(Mode.PREPARING_STORY):this.preparingTimeout=setTimeout((function(){return _this.showMode(Mode.PREPARING_STORY)}),100)}},{key:"showPreparingDocs",value:function showPreparingDocs(){var _this2=this;clearTimeout(this.preparingTimeout),this.preparingTimeout=setTimeout((function(){return _this2.showMode(Mode.PREPARING_DOCS)}),100)}},{key:"showMain",value:function showMain(){this.showMode(Mode.MAIN)}},{key:"showDocs",value:function showDocs(){this.storyRoot().setAttribute("hidden","true"),this.docsRoot().removeAttribute("hidden")}},{key:"showStory",value:function showStory(){this.docsRoot().setAttribute("hidden","true"),this.storyRoot().removeAttribute("hidden")}},{key:"showStoryDuringRender",value:function showStoryDuringRender(){WebView_document.body.classList.add(classes.MAIN)}}]),WebView}();function DocsRender_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function DocsRender_asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){DocsRender_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){DocsRender_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}function DocsRender_defineProperties(target,props){for(var i=0;i0&&void 0!==_args4[0]?_args4[0]:{}).viewModeChanged&&this.canvasElement){_context4.next=3;break}return _context4.abrupt("return");case 3:return _context4.next=5,__webpack_require__.e(4).then(__webpack_require__.bind(null,"./node_modules/@storybook/preview-web/dist/esm/renderDocs.js"));case 5:_context4.sent.unmountDocs(this.canvasElement);case 7:case"end":return _context4.stop()}}),_callee4,this)}))),function teardown(){return _teardown.apply(this,arguments)})}],[{key:"fromStoryRender",value:function fromStoryRender(storyRender){return new DocsRender(storyRender.channel,storyRender.store,storyRender.id,storyRender.story)}}]),DocsRender}();function PreviewWeb_typeof(obj){return PreviewWeb_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},PreviewWeb_typeof(obj)}function PreviewWeb_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function PreviewWeb_asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){PreviewWeb_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){PreviewWeb_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}function PreviewWeb_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}function PreviewWeb_defineProperties(target,props){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:new UrlStore,webview=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new WebView_WebView;return function PreviewWeb_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,PreviewWeb),(_this=_super.call(this)).urlStore=void 0,_this.view=void 0,_this.previewEntryError=void 0,_this.currentSelection=void 0,_this.currentRender=void 0,_this.view=webview,_this.urlStore=urlStore,_this.storyStore.getSelection=browser_default()((function(){return _this.urlStore.selection}),Object(esm.a)(PreviewWeb_templateObject||(PreviewWeb_templateObject=PreviewWeb_taggedTemplateLiteral(["\n `__STORYBOOK_STORY_STORE__.getSelection()` is deprecated and will be removed in 7.0.\n \n To get the current selection, use the `useStoryContext()` hook from `@storybook/addons`.\n "],["\n \\`__STORYBOOK_STORY_STORE__.getSelection()\\` is deprecated and will be removed in 7.0.\n \n To get the current selection, use the \\`useStoryContext()\\` hook from \\`@storybook/addons\\`.\n "])))),_this}return function PreviewWeb_createClass(Constructor,protoProps,staticProps){return protoProps&&PreviewWeb_defineProperties(Constructor.prototype,protoProps),staticProps&&PreviewWeb_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(PreviewWeb,[{key:"setupListeners",value:function setupListeners(){_get(_getPrototypeOf(PreviewWeb.prototype),"setupListeners",this).call(this),globalWindow.onkeydown=this.onKeydown.bind(this),this.channel.on(core_events_dist_esm.SET_CURRENT_STORY,this.onSetCurrentStory.bind(this)),this.channel.on(core_events_dist_esm.UPDATE_QUERY_PARAMS,this.onUpdateQueryParams.bind(this)),this.channel.on(core_events_dist_esm.PRELOAD_STORIES,this.onPreloadStories.bind(this))}},{key:"initializeWithProjectAnnotations",value:function initializeWithProjectAnnotations(projectAnnotations){var _this2=this;return _get(_getPrototypeOf(PreviewWeb.prototype),"initializeWithProjectAnnotations",this).call(this,projectAnnotations).then((function(){return _this2.setInitialGlobals()}))}},{key:"setInitialGlobals",value:(_setInitialGlobals=PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee(){var _ref,globals;return regeneratorRuntime.wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:_ref=this.urlStore.selectionSpecifier||{},(globals=_ref.globals)&&this.storyStore.globals.updateFromPersisted(globals),this.emitGlobals();case 3:case"end":return _context.stop()}}),_callee,this)}))),function setInitialGlobals(){return _setInitialGlobals.apply(this,arguments)})},{key:"initializeWithStoryIndex",value:function initializeWithStoryIndex(storyIndex){var _this3=this;return _get(_getPrototypeOf(PreviewWeb.prototype),"initializeWithStoryIndex",this).call(this,storyIndex).then((function(){var _global$FEATURES;return null!==(_global$FEATURES=window_default.a.FEATURES)&&void 0!==_global$FEATURES&&_global$FEATURES.storyStoreV7||_this3.channel.emit(core_events_dist_esm.SET_STORIES,_this3.storyStore.getSetStoriesPayload()),_this3.selectSpecifiedStory()}))}},{key:"selectSpecifiedStory",value:(_selectSpecifiedStory=PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee2(){var _this$urlStore$select,storySpecifier,viewMode,args,storyId;return regeneratorRuntime.wrap((function _callee2$(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:if(this.urlStore.selectionSpecifier){_context2.next=3;break}return this.renderMissingStory(),_context2.abrupt("return");case 3:if(_this$urlStore$select=this.urlStore.selectionSpecifier,storySpecifier=_this$urlStore$select.storySpecifier,viewMode=_this$urlStore$select.viewMode,args=_this$urlStore$select.args,storyId=this.storyStore.storyIndex.storyIdFromSpecifier(storySpecifier)){_context2.next=8;break}return"*"===storySpecifier?this.renderStoryLoadingException(storySpecifier,new Error(Object(esm.a)(PreviewWeb_templateObject2||(PreviewWeb_templateObject2=PreviewWeb_taggedTemplateLiteral(["\n Couldn't find any stories in your Storybook.\n - Please check your stories field of your main.js config.\n - Also check the browser console and terminal for error messages.\n "]))))):this.renderStoryLoadingException(storySpecifier,new Error(Object(esm.a)(_templateObject3||(_templateObject3=PreviewWeb_taggedTemplateLiteral(["\n Couldn't find story matching '","'.\n - Are you sure a story with that id exists?\n - Please check your stories field of your main.js config.\n - Also check the browser console and terminal for error messages.\n "])),storySpecifier))),_context2.abrupt("return");case 8:return this.urlStore.setSelection({storyId:storyId,viewMode:viewMode}),this.channel.emit(core_events_dist_esm.STORY_SPECIFIED,this.urlStore.selection),this.channel.emit(core_events_dist_esm.CURRENT_STORY_WAS_SET,this.urlStore.selection),_context2.next=13,this.renderSelection({persistedArgs:args});case 13:case"end":return _context2.stop()}}),_callee2,this)}))),function selectSpecifiedStory(){return _selectSpecifiedStory.apply(this,arguments)})},{key:"onGetProjectAnnotationsChanged",value:(_onGetProjectAnnotationsChanged=PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee3(_ref2){var getProjectAnnotations;return regeneratorRuntime.wrap((function _callee3$(_context3){for(;;)switch(_context3.prev=_context3.next){case 0:return getProjectAnnotations=_ref2.getProjectAnnotations,_context3.next=3,_get(_getPrototypeOf(PreviewWeb.prototype),"onGetProjectAnnotationsChanged",this).call(this,{getProjectAnnotations:getProjectAnnotations});case 3:this.renderSelection();case 4:case"end":return _context3.stop()}}),_callee3,this)}))),function onGetProjectAnnotationsChanged(_x){return _onGetProjectAnnotationsChanged.apply(this,arguments)})},{key:"onStoriesChanged",value:(_onStoriesChanged=PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee4(_ref3){var _global$FEATURES2,importFn,storyIndex;return regeneratorRuntime.wrap((function _callee4$(_context4){for(;;)switch(_context4.prev=_context4.next){case 0:if(importFn=_ref3.importFn,storyIndex=_ref3.storyIndex,_get(_getPrototypeOf(PreviewWeb.prototype),"onStoriesChanged",this).call(this,{importFn:importFn,storyIndex:storyIndex}),null!==(_global$FEATURES2=window_default.a.FEATURES)&&void 0!==_global$FEATURES2&&_global$FEATURES2.storyStoreV7){_context4.next=9;break}return _context4.t0=this.channel,_context4.t1=core_events_dist_esm.SET_STORIES,_context4.next=7,this.storyStore.getSetStoriesPayload();case 7:_context4.t2=_context4.sent,_context4.t0.emit.call(_context4.t0,_context4.t1,_context4.t2);case 9:if(!this.urlStore.selection){_context4.next=14;break}return _context4.next=12,this.renderSelection();case 12:_context4.next=16;break;case 14:return _context4.next=16,this.selectSpecifiedStory();case 16:case"end":return _context4.stop()}}),_callee4,this)}))),function onStoriesChanged(_x2){return _onStoriesChanged.apply(this,arguments)})},{key:"onKeydown",value:function onKeydown(event){var _this$currentRender;if(!(null!==(_this$currentRender=this.currentRender)&&void 0!==_this$currentRender&&_this$currentRender.disableKeyListeners||function focusInInput(event){var target=event.target;return/input|textarea/i.test(target.tagName)||null!==target.getAttribute("contenteditable")}(event))){var altKey=event.altKey,ctrlKey=event.ctrlKey,metaKey=event.metaKey,shiftKey=event.shiftKey,key=event.key,code=event.code,keyCode=event.keyCode;this.channel.emit(core_events_dist_esm.PREVIEW_KEYDOWN,{event:{altKey:altKey,ctrlKey:ctrlKey,metaKey:metaKey,shiftKey:shiftKey,key:key,code:code,keyCode:keyCode}})}}},{key:"onSetCurrentStory",value:function onSetCurrentStory(selection){this.urlStore.setSelection(Object.assign({viewMode:"story"},selection)),this.channel.emit(core_events_dist_esm.CURRENT_STORY_WAS_SET,this.urlStore.selection),this.renderSelection()}},{key:"onUpdateQueryParams",value:function onUpdateQueryParams(queryParams){this.urlStore.setQueryParams(queryParams)}},{key:"onUpdateGlobals",value:(_onUpdateGlobals=PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee5(_ref4){var globals;return regeneratorRuntime.wrap((function _callee5$(_context5){for(;;)switch(_context5.prev=_context5.next){case 0:if(globals=_ref4.globals,_get(_getPrototypeOf(PreviewWeb.prototype),"onUpdateGlobals",this).call(this,{globals:globals}),!(this.currentRender instanceof DocsRender_DocsRender)){_context5.next=5;break}return _context5.next=5,this.currentRender.rerender(!0);case 5:case"end":return _context5.stop()}}),_callee5,this)}))),function onUpdateGlobals(_x3){return _onUpdateGlobals.apply(this,arguments)})},{key:"onUpdateArgs",value:(_onUpdateArgs=PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee6(_ref5){var storyId,updatedArgs;return regeneratorRuntime.wrap((function _callee6$(_context6){for(;;)switch(_context6.prev=_context6.next){case 0:if(storyId=_ref5.storyId,updatedArgs=_ref5.updatedArgs,_get(_getPrototypeOf(PreviewWeb.prototype),"onUpdateArgs",this).call(this,{storyId:storyId,updatedArgs:updatedArgs}),!(this.currentRender instanceof DocsRender_DocsRender)){_context6.next=5;break}return _context6.next=5,this.currentRender.rerender(!1);case 5:case"end":return _context6.stop()}}),_callee6,this)}))),function onUpdateArgs(_x4){return _onUpdateArgs.apply(this,arguments)})},{key:"onPreloadStories",value:(_onPreloadStories=PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee7(ids){var _this4=this;return regeneratorRuntime.wrap((function _callee7$(_context7){for(;;)switch(_context7.prev=_context7.next){case 0:return _context7.next=2,Promise.all(ids.map((function(id){return _this4.storyStore.loadStory({storyId:id})})));case 2:case"end":return _context7.stop()}}),_callee7)}))),function onPreloadStories(_x5){return _onPreloadStories.apply(this,arguments)})},{key:"renderSelection",value:(_renderSelection=PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee8(){var _this$currentSelectio,_this$currentSelectio2,_lastRender,_global$FEATURES3,persistedArgs,selection,storyId,storyIdChanged,viewModeChanged,lastSelection,lastRender,storyRender,implementationChanged,_storyRender$context,parameters,initialArgs,argTypes,args,_this5=this,_args8=arguments;return regeneratorRuntime.wrap((function _callee8$(_context8){for(;;)switch(_context8.prev=_context8.next){case 0:if(persistedArgs=(_args8.length>0&&void 0!==_args8[0]?_args8[0]:{}).persistedArgs,selection=this.urlStore.selection){_context8.next=4;break}throw new Error("Cannot render story as no selection was made");case 4:if(storyId=selection.storyId,storyIdChanged=(null===(_this$currentSelectio=this.currentSelection)||void 0===_this$currentSelectio?void 0:_this$currentSelectio.storyId)!==storyId,viewModeChanged=(null===(_this$currentSelectio2=this.currentSelection)||void 0===_this$currentSelectio2?void 0:_this$currentSelectio2.viewMode)!==selection.viewMode,"story"===selection.viewMode?this.view.showPreparingStory({immediate:viewModeChanged}):this.view.showPreparingDocs(),lastSelection=this.currentSelection,lastRender=this.currentRender,null===(_lastRender=lastRender)||void 0===_lastRender||!_lastRender.isPreparing()){_context8.next=14;break}return _context8.next=13,this.teardownRender(lastRender);case 13:lastRender=null;case 14:return storyRender=new StoryRender_StoryRender(this.channel,this.storyStore,(function(){return _this5.view.showStoryDuringRender(),_this5.renderToDOM.apply(_this5,arguments)}),this.mainStoryCallbacks(storyId),storyId,"story"),this.currentSelection=selection,this.currentRender=storyRender,_context8.prev=17,_context8.next=20,storyRender.prepare();case 20:_context8.next=29;break;case 22:if(_context8.prev=22,_context8.t0=_context8.catch(17),_context8.t0===PREPARE_ABORTED){_context8.next=28;break}return _context8.next=27,this.teardownRender(lastRender);case 27:this.renderStoryLoadingException(storyId,_context8.t0);case 28:return _context8.abrupt("return");case 29:if(implementationChanged=!storyIdChanged&&!storyRender.isEqual(lastRender),persistedArgs&&this.storyStore.args.updateFromPersisted(storyRender.story,persistedArgs),_storyRender$context=storyRender.context(),parameters=_storyRender$context.parameters,initialArgs=_storyRender$context.initialArgs,argTypes=_storyRender$context.argTypes,args=_storyRender$context.args,!lastRender||storyIdChanged||implementationChanged||viewModeChanged){_context8.next=37;break}return this.currentRender=lastRender,this.channel.emit(core_events_dist_esm.STORY_UNCHANGED,storyId),this.view.showMain(),_context8.abrupt("return");case 37:return _context8.next=39,this.teardownRender(lastRender,{viewModeChanged:viewModeChanged});case 39:lastSelection&&(storyIdChanged||viewModeChanged)&&this.channel.emit(core_events_dist_esm.STORY_CHANGED,storyId),null!==(_global$FEATURES3=window_default.a.FEATURES)&&void 0!==_global$FEATURES3&&_global$FEATURES3.storyStoreV7&&this.channel.emit(core_events_dist_esm.STORY_PREPARED,{id:storyId,parameters:parameters,initialArgs:initialArgs,argTypes:argTypes,args:args}),(implementationChanged||persistedArgs)&&this.channel.emit(core_events_dist_esm.STORY_ARGS_UPDATED,{storyId:storyId,args:args}),"docs"===selection.viewMode||parameters.docsOnly?(this.currentRender=DocsRender_DocsRender.fromStoryRender(storyRender),this.currentRender.renderToElement(this.view.prepareForDocs(),this.renderStoryToElement.bind(this))):(this.storyRenders.push(storyRender),this.currentRender.renderToElement(this.view.prepareForStory(storyRender.story)));case 43:case"end":return _context8.stop()}}),_callee8,this,[[17,22]])}))),function renderSelection(){return _renderSelection.apply(this,arguments)})},{key:"renderStoryToElement",value:function renderStoryToElement(story,element){var _this6=this,render=new StoryRender_StoryRender(this.channel,this.storyStore,this.renderToDOM,this.inlineStoryCallbacks(story.id),story.id,"docs",story);return render.renderToElement(element),this.storyRenders.push(render),PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee9(){return regeneratorRuntime.wrap((function _callee9$(_context9){for(;;)switch(_context9.prev=_context9.next){case 0:return _context9.next=2,_this6.teardownRender(render);case 2:case"end":return _context9.stop()}}),_callee9)})))}},{key:"teardownRender",value:(_teardownRender=PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee10(render){var viewModeChanged,_args10=arguments;return regeneratorRuntime.wrap((function _callee10$(_context10){for(;;)switch(_context10.prev=_context10.next){case 0:return viewModeChanged=(_args10.length>1&&void 0!==_args10[1]?_args10[1]:{}).viewModeChanged,this.storyRenders=this.storyRenders.filter((function(r){return r!==render})),_context10.next=4,null==render?void 0:render.teardown({viewModeChanged:viewModeChanged});case 4:case"end":return _context10.stop()}}),_callee10,this)}))),function teardownRender(_x6){return _teardownRender.apply(this,arguments)})},{key:"extract",value:(_extract=PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee11(options){var _global$FEATURES4;return regeneratorRuntime.wrap((function _callee11$(_context11){for(;;)switch(_context11.prev=_context11.next){case 0:if(!this.previewEntryError){_context11.next=2;break}throw this.previewEntryError;case 2:if(this.storyStore.projectAnnotations){_context11.next=4;break}throw new Error(Object(esm.a)(_templateObject4||(_templateObject4=PreviewWeb_taggedTemplateLiteral(["Failed to initialize Storybook.\n \n Do you have an error in your `preview.js`? Check your Storybook's browser console for errors."],["Failed to initialize Storybook.\n \n Do you have an error in your \\`preview.js\\`? Check your Storybook's browser console for errors."]))));case 4:if(null===(_global$FEATURES4=window_default.a.FEATURES)||void 0===_global$FEATURES4||!_global$FEATURES4.storyStoreV7){_context11.next=7;break}return _context11.next=7,this.storyStore.cacheAllCSFFiles();case 7:return _context11.abrupt("return",this.storyStore.extract(options));case 8:case"end":return _context11.stop()}}),_callee11,this)}))),function extract(_x7){return _extract.apply(this,arguments)})},{key:"mainStoryCallbacks",value:function mainStoryCallbacks(storyId){var _this7=this;return{showMain:function showMain(){return _this7.view.showMain()},showError:function showError(err){return _this7.renderError(storyId,err)},showException:function showException(err){return _this7.renderException(storyId,err)}}}},{key:"inlineStoryCallbacks",value:function inlineStoryCallbacks(storyId){return{showMain:function showMain(){},showError:function showError(err){return dist_esm.a.error("Error rendering docs story (".concat(storyId,")"),err)},showException:function showException(err){return dist_esm.a.error("Error rendering docs story (".concat(storyId,")"),err)}}}},{key:"renderPreviewEntryError",value:function renderPreviewEntryError(reason,err){_get(_getPrototypeOf(PreviewWeb.prototype),"renderPreviewEntryError",this).call(this,reason,err),this.view.showErrorDisplay(err)}},{key:"renderMissingStory",value:function renderMissingStory(){this.view.showNoPreview(),this.channel.emit(core_events_dist_esm.STORY_MISSING)}},{key:"renderStoryLoadingException",value:function renderStoryLoadingException(storySpecifier,err){dist_esm.a.error("Unable to load story '".concat(storySpecifier,"':")),dist_esm.a.error(err),this.view.showErrorDisplay(err),this.channel.emit(core_events_dist_esm.STORY_MISSING,storySpecifier)}},{key:"renderException",value:function renderException(storyId,err){this.channel.emit(core_events_dist_esm.STORY_THREW_EXCEPTION,err),this.channel.emit(core_events_dist_esm.STORY_RENDER_PHASE_CHANGED,{newPhase:"errored",storyId:storyId}),err!==core_events_dist_esm.IGNORED_EXCEPTION&&(this.view.showErrorDisplay(err),dist_esm.a.error("Error rendering story '".concat(storyId,"':")),dist_esm.a.error(err))}},{key:"renderError",value:function renderError(storyId,_ref9){var title=_ref9.title,description=_ref9.description;dist_esm.a.error("Error rendering story ".concat(title,": ").concat(description)),this.channel.emit(core_events_dist_esm.STORY_ERRORED,{title:title,description:description}),this.channel.emit(core_events_dist_esm.STORY_RENDER_PHASE_CHANGED,{newPhase:"errored",storyId:storyId}),this.view.showErrorDisplay({message:title,stack:description})}}]),PreviewWeb}(Preview_Preview),channels_dist_esm=(__webpack_require__("./node_modules/core-js/modules/es.object.from-entries.js"),__webpack_require__("./node_modules/core-js/modules/es.number.is-integer.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/web.url.js"),__webpack_require__("./node_modules/core-js/modules/web.url-search-params.js"),__webpack_require__("./node_modules/@storybook/channels/dist/esm/index.js")),telejson_dist_esm=__webpack_require__("./node_modules/telejson/dist/esm/index.js");function esm_toConsumableArray(arr){return function esm_arrayWithoutHoles(arr){if(Array.isArray(arr))return esm_arrayLikeToArray(arr)}(arr)||esm_iterableToArray(arr)||esm_unsupportedIterableToArray(arr)||function esm_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function esm_iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}function esm_slicedToArray(arr,i){return esm_arrayWithHoles(arr)||function esm_iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||esm_unsupportedIterableToArray(arr,i)||esm_nonIterableRest()}function esm_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function esm_unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return esm_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?esm_arrayLikeToArray(o,minLen):void 0}}function esm_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i manager ':' preview ',eventString=Object.values(core_events_dist_esm).includes(event.type)?''.concat(event.type,""):''.concat(event.type,"");if(refId&&(event.refId=refId),event.source="preview"===this.config.page?rawEvent.origin:esm_getEventSourceUrl(rawEvent),!event.source)return void dist_esm.c.error("".concat(pageString," received ").concat(eventString," but was unable to determine the source of the event"));var message="".concat(pageString," received ").concat(eventString," (").concat(data.length,")");dist_esm.c.debug.apply(dist_esm.c,[esm_location.origin!==event.source?message:"".concat(message,' (on ').concat(esm_location.origin," from ").concat(event.source,")")].concat(esm_toConsumableArray(event.args))),this.handler(event)}}catch(error){dist_esm.a.error(error)}}}]),PostmsgTransport}(),esm_getEventSourceUrl=function getEventSourceUrl(event){var _frames$filter=esm_toConsumableArray(esm_document.querySelectorAll("iframe[data-is-storybook]")).filter((function(element){try{return element.contentWindow===event.source}catch(err){}var origin,src=element.getAttribute("src");try{origin=new URL(src,esm_document.location).origin}catch(err){return!1}return origin===event.origin})),_frames$filter2=function _toArray(arr){return esm_arrayWithHoles(arr)||esm_iterableToArray(arr)||esm_unsupportedIterableToArray(arr)||esm_nonIterableRest()}(_frames$filter),frame=_frames$filter2[0],remainder=_frames$filter2.slice(1);if(frame&&0===remainder.length){var src=frame.getAttribute("src"),_URL2=new URL(src,esm_document.location),protocol=_URL2.protocol,host=_URL2.host,pathname=_URL2.pathname;return"".concat(protocol,"//").concat(host).concat(pathname)}return remainder.length>0&&dist_esm.a.error("found multiple candidates for event source"),null};__webpack_require__("./node_modules/core-js/modules/es.map.js");function executeLoadable_slicedToArray(arr,i){return function executeLoadable_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function executeLoadable_iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function executeLoadable_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return executeLoadable_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return executeLoadable_arrayLikeToArray(o,minLen)}(arr,i)||function executeLoadable_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function executeLoadable_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&void 0!==arguments[1]?arguments[1]:{},decorateStory=_ref.decorateStory,render=_ref.render;if(start_globalWindow&&(start_globalWindow.IS_STORYBOOK=!0),null!=FEATURES&&FEATURES.storyStoreV7)return{forceReRender:removedApi("forceReRender"),getStorybook:removedApi("getStorybook"),configure:removedApi("configure"),clientApi:{addDecorator:removedApi("clientApi.addDecorator"),addParameters:removedApi("clientApi.addParameters"),clearDecorators:removedApi("clientApi.clearDecorators"),addLoader:removedApi("clientApi.addLoader"),setAddon:removedApi("clientApi.setAddon"),getStorybook:removedApi("clientApi.getStorybook"),storiesOf:removedApi("clientApi.storiesOf"),raw:removedApi("raw")}};var channel=function createChannel(_ref5){var page=_ref5.page,transport=new esm_PostmsgTransport({page:page});return new channels_dist_esm.a({transport:transport})}({page:"preview"});addons_dist_esm.a.setChannel(channel);var clientApi=new ClientApi.a,preview=new PreviewWeb_PreviewWeb,initialized=!1,importFn=function importFn(path){return clientApi.importFn(path)};function onStoriesChanged(){var storyIndex=clientApi.getStoryIndex();preview.onStoriesChanged({storyIndex:storyIndex,importFn:importFn})}return clientApi.onImportFnChanged=onStoriesChanged,clientApi.storyStore=preview.storyStore,start_globalWindow&&(start_globalWindow.__STORYBOOK_CLIENT_API__=clientApi,start_globalWindow.__STORYBOOK_ADDONS_CHANNEL__=channel,start_globalWindow.__STORYBOOK_PREVIEW__=preview,start_globalWindow.__STORYBOOK_STORY_STORE__=preview.storyStore),{forceReRender:function forceReRender(){return channel.emit(core_events_dist_esm.default.FORCE_RE_RENDER)},getStorybook:function getStorybook(){return[]},raw:function raw(){},clientApi:clientApi,configure:function configure(framework,loadable,m){(!(arguments.length>3&&void 0!==arguments[3])||arguments[3])&&configureDeprecationWarning(),clientApi.addParameters({framework:framework});var getProjectAnnotations=function getProjectAnnotations(){var _executeLoadableForCh=executeLoadableForChanges(loadable,m),added=_executeLoadableForCh.added,removed=_executeLoadableForCh.removed;return Array.from(added.entries()).forEach((function(_ref2){var _ref3=start_slicedToArray(_ref2,2),fileName=_ref3[0],fileExports=_ref3[1];return clientApi.facade.addStoriesFromExports(fileName,fileExports)})),Array.from(removed.entries()).forEach((function(_ref4){var fileName=start_slicedToArray(_ref4,1)[0];return clientApi.facade.clearFilenameExports(fileName)})),Object.assign({render:render},clientApi.facade.projectAnnotations,{renderToDOM:renderToDOM,applyDecorators:decorateStory})};initialized?(getProjectAnnotations(),onStoriesChanged()):(preview.initialize({getStoryIndex:function getStoryIndex(){return clientApi.getStoryIndex()},importFn:importFn,getProjectAnnotations:getProjectAnnotations}),initialized=!0)}}}dist.toId,ClientApi.a;var globals_globalWindow=window_default.a.window;globals_globalWindow&&(globals_globalWindow.STORYBOOK_ENV="react");var preview_render=__webpack_require__("./node_modules/@storybook/react/dist/esm/client/preview/render.js"),preview_framework="react",api=start(preview_render.b,{render:preview_render.a}),storiesOf=function storiesOf(kind,m){return api.clientApi.storiesOf(kind,m).addParameters({framework:preview_framework})},preview_configure=function configure(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return api.configure.apply(api,[preview_framework].concat(args))},addDecorator=api.clientApi.addDecorator,addParameters=api.clientApi.addParameters,setAddon=(api.clientApi.clearDecorators,api.clientApi.setAddon),preview_forceReRender=api.forceReRender,getStorybook=api.clientApi.getStorybook,raw=api.clientApi.raw},"./node_modules/@storybook/react/dist/esm/client/preview/render.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return render})),__webpack_require__.d(__webpack_exports__,"b",(function(){return renderToDOM}));__webpack_require__("./node_modules/regenerator-runtime/runtime.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.map.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/core-js/modules/es.string.starts-with.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/es.reflect.construct.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js");var global__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/global/window.js"),global__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(global__WEBPACK_IMPORTED_MODULE_14__),react__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_15__),react_dom__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/react-dom/index.js"),react_dom__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_16__);function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _defineProperties(target,props){for(var i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var GLOBAL_STORYBOOK_PROJECT_ANNOTATIONS={};function setProjectAnnotations(projectAnnotations){var annotations=Array.isArray(projectAnnotations)?projectAnnotations:[projectAnnotations];GLOBAL_STORYBOOK_PROJECT_ANNOTATIONS=function composeConfigs(moduleExportList){var allArgTypeEnhancers=getArrayField(moduleExportList,"argTypesEnhancers");return{parameters:parameters.a.apply(void 0,_toConsumableArray(getField(moduleExportList,"parameters"))),decorators:getArrayField(moduleExportList,"decorators"),args:getObjectField(moduleExportList,"args"),argsEnhancers:getArrayField(moduleExportList,"argsEnhancers"),argTypes:getObjectField(moduleExportList,"argTypes"),argTypesEnhancers:[].concat(_toConsumableArray(allArgTypeEnhancers.filter((function(e){return!e.secondPass}))),_toConsumableArray(allArgTypeEnhancers.filter((function(e){return e.secondPass})))),globals:getObjectField(moduleExportList,"globals"),globalTypes:getObjectField(moduleExportList,"globalTypes"),loaders:getArrayField(moduleExportList,"loaders"),render:getSingletonField(moduleExportList,"render"),renderToDOM:getSingletonField(moduleExportList,"renderToDOM"),applyDecorators:getSingletonField(moduleExportList,"applyDecorators")}}(annotations)}function composeStories(storiesImport,globalConfig,composeStoryFn){var meta=storiesImport.default,stories=(storiesImport.__esModule,storiesImport.__namedExportsOrder,_objectWithoutProperties(storiesImport,_excluded));return Object.entries(stories).reduce((function(storiesMap,_ref){var _ref2=_slicedToArray(_ref,2),exportsName=_ref2[0],story=_ref2[1];return Object(dist.isExportStory)(exportsName,meta)?Object.assign(storiesMap,function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}({},exportsName,composeStoryFn(story,meta,globalConfig,exportsName))):storiesMap}),{})}var esm=__webpack_require__("./node_modules/@storybook/client-logger/dist/esm/index.js");function testing_setProjectAnnotations(projectAnnotations){setProjectAnnotations(projectAnnotations)}function setGlobalConfig(projectAnnotations){esm.b.warn("setGlobalConfig is deprecated. Use setProjectAnnotations instead."),testing_setProjectAnnotations(projectAnnotations)}var defaultProjectAnnotations={render:__webpack_require__("./node_modules/@storybook/react/dist/esm/client/preview/render.js").a};function testing_composeStory(story,componentAnnotations,projectAnnotations,exportsName){return function composeStory(storyAnnotations,componentAnnotations){var _componentAnnotations,_storyAnnotations$sto,projectAnnotations=arguments.length>2&&void 0!==arguments[2]?arguments[2]:GLOBAL_STORYBOOK_PROJECT_ANNOTATIONS,defaultConfig=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},exportsName=arguments.length>4?arguments[4]:void 0;if(void 0===storyAnnotations)throw new Error("Expected a story but received undefined.");componentAnnotations.title=null!==(_componentAnnotations=componentAnnotations.title)&&void 0!==_componentAnnotations?_componentAnnotations:"ComposedStory";var normalizedComponentAnnotations=Object(normalizeComponentAnnotations.a)(componentAnnotations),storyName=exportsName||storyAnnotations.storyName||(null===(_storyAnnotations$sto=storyAnnotations.story)||void 0===_storyAnnotations$sto?void 0:_storyAnnotations$sto.name)||storyAnnotations.name,normalizedStory=Object(normalizeStory.a)(storyName,storyAnnotations,normalizedComponentAnnotations),normalizedProjectAnnotations=Object(normalizeProjectAnnotations.a)(Object.assign({},projectAnnotations,defaultConfig)),story=Object(prepareStory.a)(normalizedStory,normalizedComponentAnnotations,normalizedProjectAnnotations),defaultGlobals=Object(getValuesFromArgTypes.a)(projectAnnotations.globalTypes),composedStory=function composedStory(extraArgs){var context=Object.assign({},story,{hooks:new hooks.a,globals:defaultGlobals,args:Object.assign({},story.initialArgs,extraArgs)});return story.unboundStoryFn(context)};return composedStory.storyName=storyName,composedStory.args=story.initialArgs,composedStory.play=story.playFunction,composedStory.parameters=story.parameters,composedStory}(story,componentAnnotations,projectAnnotations,defaultProjectAnnotations,exportsName)}function testing_composeStories(csfExports,projectAnnotations){return composeStories(csfExports,projectAnnotations,testing_composeStory)}},"./node_modules/@storybook/react/node_modules/acorn-jsx/index.js":function(module,exports,__webpack_require__){"use strict";function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _defineProperties(target,props){for(var i=0;i...",!0,!0),tokContexts={tc_oTag:tc_oTag,tc_cTag:tc_cTag,tc_expr:tc_expr},tokTypes={jsxName:new TokenType("jsxName"),jsxText:new TokenType("jsxText",{beforeExpr:!0}),jsxTagStart:new TokenType("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new TokenType("jsxTagEnd")};tokTypes.jsxTagStart.updateContext=function(){this.context.push(tc_expr),this.context.push(tc_oTag),this.exprAllowed=!1},tokTypes.jsxTagEnd.updateContext=function(prevType){var out=this.context.pop();out===tc_oTag&&prevType===tt.slash||out===tc_cTag?(this.context.pop(),this.exprAllowed=this.curContext()===tc_expr):this.exprAllowed=!0},acornJsx={tokContexts:tokContexts,tokTypes:tokTypes},acornJsxMap.set(acorn,acornJsx)}return acornJsx}function getQualifiedJSXName(object){return object?"JSXIdentifier"===object.type?object.name:"JSXNamespacedName"===object.type?object.namespace.name+":"+object.name.name:"JSXMemberExpression"===object.type?getQualifiedJSXName(object.object)+"."+getQualifiedJSXName(object.property):void 0:object}module.exports=function(options){return options=options||{},function(Parser){return function plugin(options,Parser){var acorn=Parser.acorn||__webpack_require__("./node_modules/@storybook/react/node_modules/acorn/dist/acorn.mjs"),acornJsx=getJsxTokens(acorn),tt=acorn.tokTypes,tok=acornJsx.tokTypes,tokContexts=acorn.tokContexts,tc_oTag=acornJsx.tokContexts.tc_oTag,tc_cTag=acornJsx.tokContexts.tc_cTag,tc_expr=acornJsx.tokContexts.tc_expr,isNewLine=acorn.isNewLine,isIdentifierStart=acorn.isIdentifierStart,isIdentifierChar=acorn.isIdentifierChar;return function(_Parser){function _class(){return function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,_class),_callSuper(this,_class,arguments)}return function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}(_class,_Parser),function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(_class,[{key:"jsx_readToken",value:function jsx_readToken(){for(var out="",chunkStart=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");var ch=this.input.charCodeAt(this.pos);switch(ch){case 60:case 123:return this.pos===this.start?60===ch&&this.exprAllowed?(++this.pos,this.finishToken(tok.jsxTagStart)):this.getTokenFromCode(ch):(out+=this.input.slice(chunkStart,this.pos),this.finishToken(tok.jsxText,out));case 38:out+=this.input.slice(chunkStart,this.pos),out+=this.jsx_readEntity(),chunkStart=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(62===ch?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:isNewLine(ch)?(out+=this.input.slice(chunkStart,this.pos),out+=this.jsx_readNewLine(!0),chunkStart=this.pos):++this.pos}}}},{key:"jsx_readNewLine",value:function jsx_readNewLine(normalizeCRLF){var out,ch=this.input.charCodeAt(this.pos);return++this.pos,13===ch&&10===this.input.charCodeAt(this.pos)?(++this.pos,out=normalizeCRLF?"\n":"\r\n"):out=String.fromCharCode(ch),this.options.locations&&(++this.curLine,this.lineStart=this.pos),out}},{key:"jsx_readString",value:function jsx_readString(quote){for(var out="",chunkStart=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var ch=this.input.charCodeAt(this.pos);if(ch===quote)break;38===ch?(out+=this.input.slice(chunkStart,this.pos),out+=this.jsx_readEntity(),chunkStart=this.pos):isNewLine(ch)?(out+=this.input.slice(chunkStart,this.pos),out+=this.jsx_readNewLine(!1),chunkStart=this.pos):++this.pos}return out+=this.input.slice(chunkStart,this.pos++),this.finishToken(tt.string,out)}},{key:"jsx_readEntity",value:function jsx_readEntity(){var entity,str="",count=0,ch=this.input[this.pos];"&"!==ch&&this.raise(this.pos,"Entity must start with an ampersand");for(var startPos=++this.pos;this.pos")}var fragmentOrElement=openingElement.name?"Element":"Fragment";return node["opening"+fragmentOrElement]=openingElement,node["closing"+fragmentOrElement]=closingElement,node.children=children,this.type===tt.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(node,"JSX"+fragmentOrElement)}},{key:"jsx_parseText",value:function jsx_parseText(){var node=this.parseLiteral(this.value);return node.type="JSXText",node}},{key:"jsx_parseElement",value:function jsx_parseElement(){var startPos=this.start,startLoc=this.startLoc;return this.next(),this.jsx_parseElementAt(startPos,startLoc)}},{key:"parseExprAtom",value:function parseExprAtom(refShortHandDefaultPos){return this.type===tok.jsxText?this.jsx_parseText():this.type===tok.jsxTagStart?this.jsx_parseElement():_get(_getPrototypeOf(_class.prototype),"parseExprAtom",this).call(this,refShortHandDefaultPos)}},{key:"readToken",value:function readToken(code){var context=this.curContext();if(context===tc_expr)return this.jsx_readToken();if(context===tc_oTag||context===tc_cTag){if(isIdentifierStart(code))return this.jsx_readWord();if(62==code)return++this.pos,this.finishToken(tok.jsxTagEnd);if((34===code||39===code)&&context==tc_oTag)return this.jsx_readString(code)}return 60===code&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(tok.jsxTagStart)):_get(_getPrototypeOf(_class.prototype),"readToken",this).call(this,code)}},{key:"updateContext",value:function updateContext(prevType){if(this.type==tt.braceL){var curContext=this.curContext();curContext==tc_oTag?this.context.push(tokContexts.b_expr):curContext==tc_expr?this.context.push(tokContexts.b_tmpl):_get(_getPrototypeOf(_class.prototype),"updateContext",this).call(this,prevType),this.exprAllowed=!0}else{if(this.type!==tt.slash||prevType!==tok.jsxTagStart)return _get(_getPrototypeOf(_class.prototype),"updateContext",this).call(this,prevType);this.context.length-=2,this.context.push(tc_cTag),this.exprAllowed=!1}}}],[{key:"acornJsx",get:function get(){return acornJsx}}]),_class}(Parser)}({allowNamespaces:!1!==options.allowNamespaces,allowNamespacedObjects:!!options.allowNamespacedObjects},Parser)}},Object.defineProperty(module.exports,"tokTypes",{get:function get_tokTypes(){return getJsxTokens(__webpack_require__("./node_modules/@storybook/react/node_modules/acorn/dist/acorn.mjs")).tokTypes},configurable:!0,enumerable:!0})},"./node_modules/@storybook/react/node_modules/acorn-jsx/xhtml.js":function(module,exports,__webpack_require__){"use strict";module.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}},"./node_modules/@storybook/react/node_modules/acorn/dist/acorn.mjs":function(__webpack_module__,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"Node",(function(){return Node})),__webpack_require__.d(__webpack_exports__,"Parser",(function(){return Parser})),__webpack_require__.d(__webpack_exports__,"Position",(function(){return Position})),__webpack_require__.d(__webpack_exports__,"SourceLocation",(function(){return SourceLocation})),__webpack_require__.d(__webpack_exports__,"TokContext",(function(){return TokContext})),__webpack_require__.d(__webpack_exports__,"Token",(function(){return Token})),__webpack_require__.d(__webpack_exports__,"TokenType",(function(){return TokenType})),__webpack_require__.d(__webpack_exports__,"defaultOptions",(function(){return defaultOptions})),__webpack_require__.d(__webpack_exports__,"getLineInfo",(function(){return getLineInfo})),__webpack_require__.d(__webpack_exports__,"isIdentifierChar",(function(){return isIdentifierChar})),__webpack_require__.d(__webpack_exports__,"isIdentifierStart",(function(){return isIdentifierStart})),__webpack_require__.d(__webpack_exports__,"isNewLine",(function(){return isNewLine})),__webpack_require__.d(__webpack_exports__,"keywordTypes",(function(){return keywords$1})),__webpack_require__.d(__webpack_exports__,"lineBreak",(function(){return lineBreak})),__webpack_require__.d(__webpack_exports__,"lineBreakG",(function(){return lineBreakG})),__webpack_require__.d(__webpack_exports__,"nonASCIIwhitespace",(function(){return nonASCIIwhitespace})),__webpack_require__.d(__webpack_exports__,"parse",(function(){return parse})),__webpack_require__.d(__webpack_exports__,"parseExpressionAt",(function(){return parseExpressionAt})),__webpack_require__.d(__webpack_exports__,"tokContexts",(function(){return types$1})),__webpack_require__.d(__webpack_exports__,"tokTypes",(function(){return types})),__webpack_require__.d(__webpack_exports__,"tokenizer",(function(){return tokenizer})),__webpack_require__.d(__webpack_exports__,"version",(function(){return version}));var reservedWords={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},ecma5AndLessKeywords="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",keywords={5:ecma5AndLessKeywords,"5module":ecma5AndLessKeywords+" export import",6:ecma5AndLessKeywords+" const class extends export import super"},keywordRelationalOperator=/^in(stanceof)?$/,nonASCIIidentifierStartChars="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",nonASCIIidentifierChars="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",nonASCIIidentifierStart=new RegExp("["+nonASCIIidentifierStartChars+"]"),nonASCIIidentifier=new RegExp("["+nonASCIIidentifierStartChars+nonASCIIidentifierChars+"]");nonASCIIidentifierStartChars=nonASCIIidentifierChars=null;var astralIdentifierStartCodes=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],astralIdentifierCodes=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(code,set){for(var pos=65536,i=0;icode)return!1;if((pos+=set[i+1])>=code)return!0}}function isIdentifierStart(code,astral){return code<65?36===code:code<91||(code<97?95===code:code<123||(code<=65535?code>=170&&nonASCIIidentifierStart.test(String.fromCharCode(code)):!1!==astral&&isInAstralSet(code,astralIdentifierStartCodes)))}function isIdentifierChar(code,astral){return code<48?36===code:code<58||!(code<65)&&(code<91||(code<97?95===code:code<123||(code<=65535?code>=170&&nonASCIIidentifier.test(String.fromCharCode(code)):!1!==astral&&(isInAstralSet(code,astralIdentifierStartCodes)||isInAstralSet(code,astralIdentifierCodes)))))}var TokenType=function TokenType(label,conf){void 0===conf&&(conf={}),this.label=label,this.keyword=conf.keyword,this.beforeExpr=!!conf.beforeExpr,this.startsExpr=!!conf.startsExpr,this.isLoop=!!conf.isLoop,this.isAssign=!!conf.isAssign,this.prefix=!!conf.prefix,this.postfix=!!conf.postfix,this.binop=conf.binop||null,this.updateContext=null};function binop(name,prec){return new TokenType(name,{beforeExpr:!0,binop:prec})}var beforeExpr={beforeExpr:!0},startsExpr={startsExpr:!0},keywords$1={};function kw(name,options){return void 0===options&&(options={}),options.keyword=name,keywords$1[name]=new TokenType(name,options)}var types={num:new TokenType("num",startsExpr),regexp:new TokenType("regexp",startsExpr),string:new TokenType("string",startsExpr),name:new TokenType("name",startsExpr),eof:new TokenType("eof"),bracketL:new TokenType("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new TokenType("]"),braceL:new TokenType("{",{beforeExpr:!0,startsExpr:!0}),braceR:new TokenType("}"),parenL:new TokenType("(",{beforeExpr:!0,startsExpr:!0}),parenR:new TokenType(")"),comma:new TokenType(",",beforeExpr),semi:new TokenType(";",beforeExpr),colon:new TokenType(":",beforeExpr),dot:new TokenType("."),question:new TokenType("?",beforeExpr),questionDot:new TokenType("?."),arrow:new TokenType("=>",beforeExpr),template:new TokenType("template"),invalidTemplate:new TokenType("invalidTemplate"),ellipsis:new TokenType("...",beforeExpr),backQuote:new TokenType("`",startsExpr),dollarBraceL:new TokenType("${",{beforeExpr:!0,startsExpr:!0}),eq:new TokenType("=",{beforeExpr:!0,isAssign:!0}),assign:new TokenType("_=",{beforeExpr:!0,isAssign:!0}),incDec:new TokenType("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new TokenType("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("/<=/>=",7),bitShift:binop("<>/>>>",8),plusMin:new TokenType("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new TokenType("**",{beforeExpr:!0}),coalesce:binop("??",1),_break:kw("break"),_case:kw("case",beforeExpr),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",beforeExpr),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",beforeExpr),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",startsExpr),_if:kw("if"),_return:kw("return",beforeExpr),_switch:kw("switch"),_throw:kw("throw",beforeExpr),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:!0}),_with:kw("with"),_new:kw("new",{beforeExpr:!0,startsExpr:!0}),_this:kw("this",startsExpr),_super:kw("super",startsExpr),_class:kw("class",startsExpr),_extends:kw("extends",beforeExpr),_export:kw("export"),_import:kw("import",startsExpr),_null:kw("null",startsExpr),_true:kw("true",startsExpr),_false:kw("false",startsExpr),_in:kw("in",{beforeExpr:!0,binop:7}),_instanceof:kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},lineBreak=/\r\n?|\n|\u2028|\u2029/,lineBreakG=new RegExp(lineBreak.source,"g");function isNewLine(code,ecma2019String){return 10===code||13===code||!ecma2019String&&(8232===code||8233===code)}var nonASCIIwhitespace=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,skipWhiteSpace=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ref=Object.prototype,hasOwnProperty=ref.hasOwnProperty,toString=ref.toString;function has(obj,propName){return hasOwnProperty.call(obj,propName)}var isArray=Array.isArray||function(obj){return"[object Array]"===toString.call(obj)};function wordsRegexp(words){return new RegExp("^(?:"+words.replace(/ /g,"|")+")$")}var Position=function Position(line,col){this.line=line,this.column=col};Position.prototype.offset=function offset(n){return new Position(this.line,this.column+n)};var SourceLocation=function SourceLocation(p,start,end){this.start=start,this.end=end,null!==p.sourceFile&&(this.source=p.sourceFile)};function getLineInfo(input,offset){for(var line=1,cur=0;;){lineBreakG.lastIndex=cur;var match=lineBreakG.exec(input);if(!(match&&match.index=2015&&(options.ecmaVersion-=2009),null==options.allowReserved&&(options.allowReserved=options.ecmaVersion<5),isArray(options.onToken)){var tokens=options.onToken;options.onToken=function(token){return tokens.push(token)}}return isArray(options.onComment)&&(options.onComment=function pushComment(options,array){return function(block,text,start,end,startLoc,endLoc){var comment={type:block?"Block":"Line",value:text,start:start,end:end};options.locations&&(comment.loc=new SourceLocation(this,startLoc,endLoc)),options.ranges&&(comment.range=[start,end]),array.push(comment)}}(options,options.onComment)),options}function functionFlags(async,generator){return 2|(async?4:0)|(generator?8:0)}var Parser=function Parser(options,input,startPos){this.options=options=getOptions(options),this.sourceFile=options.sourceFile,this.keywords=wordsRegexp(keywords[options.ecmaVersion>=6?6:"module"===options.sourceType?"5module":5]);var reserved="";if(!0!==options.allowReserved){for(var v=options.ecmaVersion;!(reserved=reservedWords[v]);v--);"module"===options.sourceType&&(reserved+=" await")}this.reservedWords=wordsRegexp(reserved);var reservedStrict=(reserved?reserved+" ":"")+reservedWords.strict;this.reservedWordsStrict=wordsRegexp(reservedStrict),this.reservedWordsStrictBind=wordsRegexp(reservedStrict+" "+reservedWords.strictBind),this.input=String(input),this.containsEsc=!1,startPos?(this.pos=startPos,this.lineStart=this.input.lastIndexOf("\n",startPos-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(lineBreak).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=types.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===options.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},0===this.pos&&options.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null},prototypeAccessors={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};Parser.prototype.parse=function parse(){var node=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(node)},prototypeAccessors.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},prototypeAccessors.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},prototypeAccessors.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},prototypeAccessors.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},prototypeAccessors.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},prototypeAccessors.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Parser.prototype.inNonArrowFunction=function inNonArrowFunction(){return(2&this.currentThisScope().flags)>0},Parser.extend=function extend(){for(var plugins=[],len=arguments.length;len--;)plugins[len]=arguments[len];for(var cls=this,i=0;i=,?^&]/.test(next)||"!"===next&&"="===this.input.charAt(end+1))}start+=match[0].length,skipWhiteSpace.lastIndex=start,start+=skipWhiteSpace.exec(this.input)[0].length,";"===this.input[start]&&start++}},pp.eat=function(type){return this.type===type&&(this.next(),!0)},pp.isContextual=function(name){return this.type===types.name&&this.value===name&&!this.containsEsc},pp.eatContextual=function(name){return!!this.isContextual(name)&&(this.next(),!0)},pp.expectContextual=function(name){this.eatContextual(name)||this.unexpected()},pp.canInsertSemicolon=function(){return this.type===types.eof||this.type===types.braceR||lineBreak.test(this.input.slice(this.lastTokEnd,this.start))},pp.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},pp.semicolon=function(){this.eat(types.semi)||this.insertSemicolon()||this.unexpected()},pp.afterTrailingComma=function(tokType,notNext){if(this.type===tokType)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),notNext||this.next(),!0},pp.expect=function(type){this.eat(type)||this.unexpected()},pp.unexpected=function(pos){this.raise(null!=pos?pos:this.start,"Unexpected token")},pp.checkPatternErrors=function(refDestructuringErrors,isAssign){if(refDestructuringErrors){refDestructuringErrors.trailingComma>-1&&this.raiseRecoverable(refDestructuringErrors.trailingComma,"Comma is not permitted after the rest element");var parens=isAssign?refDestructuringErrors.parenthesizedAssign:refDestructuringErrors.parenthesizedBind;parens>-1&&this.raiseRecoverable(parens,"Parenthesized pattern")}},pp.checkExpressionErrors=function(refDestructuringErrors,andThrow){if(!refDestructuringErrors)return!1;var shorthandAssign=refDestructuringErrors.shorthandAssign,doubleProto=refDestructuringErrors.doubleProto;if(!andThrow)return shorthandAssign>=0||doubleProto>=0;shorthandAssign>=0&&this.raise(shorthandAssign,"Shorthand property assignments are valid only in destructuring patterns"),doubleProto>=0&&this.raiseRecoverable(doubleProto,"Redefinition of __proto__ property")},pp.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&this.unexpected(),this.parseFunctionStatement(node,!1,!context);case types._class:return context&&this.unexpected(),this.parseClass(node,!0);case types._if:return this.parseIfStatement(node);case types._return:return this.parseReturnStatement(node);case types._switch:return this.parseSwitchStatement(node);case types._throw:return this.parseThrowStatement(node);case types._try:return this.parseTryStatement(node);case types._const:case types._var:return kind=kind||this.value,context&&"var"!==kind&&this.unexpected(),this.parseVarStatement(node,kind);case types._while:return this.parseWhileStatement(node);case types._with:return this.parseWithStatement(node);case types.braceL:return this.parseBlock(!0,node);case types.semi:return this.parseEmptyStatement(node);case types._export:case types._import:if(this.options.ecmaVersion>10&&starttype===types._import){skipWhiteSpace.lastIndex=this.pos;var skip=skipWhiteSpace.exec(this.input),next=this.pos+skip[0].length,nextCh=this.input.charCodeAt(next);if(40===nextCh||46===nextCh)return this.parseExpressionStatement(node,this.parseExpression())}return this.options.allowImportExportEverywhere||(topLevel||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),starttype===types._import?this.parseImport(node):this.parseExport(node,exports);default:if(this.isAsyncFunction())return context&&this.unexpected(),this.next(),this.parseFunctionStatement(node,!0,!context);var maybeName=this.value,expr=this.parseExpression();return starttype===types.name&&"Identifier"===expr.type&&this.eat(types.colon)?this.parseLabeledStatement(node,maybeName,expr,context):this.parseExpressionStatement(node,expr)}},pp$1.parseBreakContinueStatement=function(node,keyword){var isBreak="break"===keyword;this.next(),this.eat(types.semi)||this.insertSemicolon()?node.label=null:this.type!==types.name?this.unexpected():(node.label=this.parseIdent(),this.semicolon());for(var i=0;i=6?this.eat(types.semi):this.semicolon(),this.finishNode(node,"DoWhileStatement")},pp$1.parseForStatement=function(node){this.next();var awaitAt=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(loopLabel),this.enterScope(0),this.expect(types.parenL),this.type===types.semi)return awaitAt>-1&&this.unexpected(awaitAt),this.parseFor(node,null);var isLet=this.isLet();if(this.type===types._var||this.type===types._const||isLet){var init$1=this.startNode(),kind=isLet?"let":this.value;return this.next(),this.parseVar(init$1,!0,kind),this.finishNode(init$1,"VariableDeclaration"),(this.type===types._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===init$1.declarations.length?(this.options.ecmaVersion>=9&&(this.type===types._in?awaitAt>-1&&this.unexpected(awaitAt):node.await=awaitAt>-1),this.parseForIn(node,init$1)):(awaitAt>-1&&this.unexpected(awaitAt),this.parseFor(node,init$1))}var refDestructuringErrors=new DestructuringErrors,init=this.parseExpression(!0,refDestructuringErrors);return this.type===types._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===types._in?awaitAt>-1&&this.unexpected(awaitAt):node.await=awaitAt>-1),this.toAssignable(init,!1,refDestructuringErrors),this.checkLVal(init),this.parseForIn(node,init)):(this.checkExpressionErrors(refDestructuringErrors,!0),awaitAt>-1&&this.unexpected(awaitAt),this.parseFor(node,init))},pp$1.parseFunctionStatement=function(node,isAsync,declarationPosition){return this.next(),this.parseFunction(node,FUNC_STATEMENT|(declarationPosition?0:FUNC_HANGING_STATEMENT),!1,isAsync)},pp$1.parseIfStatement=function(node){return this.next(),node.test=this.parseParenExpression(),node.consequent=this.parseStatement("if"),node.alternate=this.eat(types._else)?this.parseStatement("if"):null,this.finishNode(node,"IfStatement")},pp$1.parseReturnStatement=function(node){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(types.semi)||this.insertSemicolon()?node.argument=null:(node.argument=this.parseExpression(),this.semicolon()),this.finishNode(node,"ReturnStatement")},pp$1.parseSwitchStatement=function(node){var cur;this.next(),node.discriminant=this.parseParenExpression(),node.cases=[],this.expect(types.braceL),this.labels.push(switchLabel),this.enterScope(0);for(var sawDefault=!1;this.type!==types.braceR;)if(this.type===types._case||this.type===types._default){var isCase=this.type===types._case;cur&&this.finishNode(cur,"SwitchCase"),node.cases.push(cur=this.startNode()),cur.consequent=[],this.next(),isCase?cur.test=this.parseExpression():(sawDefault&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),sawDefault=!0,cur.test=null),this.expect(types.colon)}else cur||this.unexpected(),cur.consequent.push(this.parseStatement(null));return this.exitScope(),cur&&this.finishNode(cur,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(node,"SwitchStatement")},pp$1.parseThrowStatement=function(node){return this.next(),lineBreak.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),node.argument=this.parseExpression(),this.semicolon(),this.finishNode(node,"ThrowStatement")};var empty=[];pp$1.parseTryStatement=function(node){if(this.next(),node.block=this.parseBlock(),node.handler=null,this.type===types._catch){var clause=this.startNode();if(this.next(),this.eat(types.parenL)){clause.param=this.parseBindingAtom();var simple="Identifier"===clause.param.type;this.enterScope(simple?32:0),this.checkLVal(clause.param,simple?4:2),this.expect(types.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),clause.param=null,this.enterScope(0);clause.body=this.parseBlock(!1),this.exitScope(),node.handler=this.finishNode(clause,"CatchClause")}return node.finalizer=this.eat(types._finally)?this.parseBlock():null,node.handler||node.finalizer||this.raise(node.start,"Missing catch or finally clause"),this.finishNode(node,"TryStatement")},pp$1.parseVarStatement=function(node,kind){return this.next(),this.parseVar(node,!1,kind),this.semicolon(),this.finishNode(node,"VariableDeclaration")},pp$1.parseWhileStatement=function(node){return this.next(),node.test=this.parseParenExpression(),this.labels.push(loopLabel),node.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(node,"WhileStatement")},pp$1.parseWithStatement=function(node){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),node.object=this.parseParenExpression(),node.body=this.parseStatement("with"),this.finishNode(node,"WithStatement")},pp$1.parseEmptyStatement=function(node){return this.next(),this.finishNode(node,"EmptyStatement")},pp$1.parseLabeledStatement=function(node,maybeName,expr,context){for(var i$1=0,list=this.labels;i$1=0;i--){var label$1=this.labels[i];if(label$1.statementStart!==node.start)break;label$1.statementStart=this.start,label$1.kind=kind}return this.labels.push({name:maybeName,kind:kind,statementStart:this.start}),node.body=this.parseStatement(context?-1===context.indexOf("label")?context+"label":context:"label"),this.labels.pop(),node.label=expr,this.finishNode(node,"LabeledStatement")},pp$1.parseExpressionStatement=function(node,expr){return node.expression=expr,this.semicolon(),this.finishNode(node,"ExpressionStatement")},pp$1.parseBlock=function(createNewLexicalScope,node,exitStrict){for(void 0===createNewLexicalScope&&(createNewLexicalScope=!0),void 0===node&&(node=this.startNode()),node.body=[],this.expect(types.braceL),createNewLexicalScope&&this.enterScope(0);this.type!==types.braceR;){var stmt=this.parseStatement(null);node.body.push(stmt)}return exitStrict&&(this.strict=!1),this.next(),createNewLexicalScope&&this.exitScope(),this.finishNode(node,"BlockStatement")},pp$1.parseFor=function(node,init){return node.init=init,this.expect(types.semi),node.test=this.type===types.semi?null:this.parseExpression(),this.expect(types.semi),node.update=this.type===types.parenR?null:this.parseExpression(),this.expect(types.parenR),node.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(node,"ForStatement")},pp$1.parseForIn=function(node,init){var isForIn=this.type===types._in;return this.next(),"VariableDeclaration"===init.type&&null!=init.declarations[0].init&&(!isForIn||this.options.ecmaVersion<8||this.strict||"var"!==init.kind||"Identifier"!==init.declarations[0].id.type)?this.raise(init.start,(isForIn?"for-in":"for-of")+" loop variable declaration may not have an initializer"):"AssignmentPattern"===init.type&&this.raise(init.start,"Invalid left-hand side in for-loop"),node.left=init,node.right=isForIn?this.parseExpression():this.parseMaybeAssign(),this.expect(types.parenR),node.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(node,isForIn?"ForInStatement":"ForOfStatement")},pp$1.parseVar=function(node,isFor,kind){for(node.declarations=[],node.kind=kind;;){var decl=this.startNode();if(this.parseVarId(decl,kind),this.eat(types.eq)?decl.init=this.parseMaybeAssign(isFor):"const"!==kind||this.type===types._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===decl.id.type||isFor&&(this.type===types._in||this.isContextual("of"))?decl.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),node.declarations.push(this.finishNode(decl,"VariableDeclarator")),!this.eat(types.comma))break}return node},pp$1.parseVarId=function(decl,kind){decl.id=this.parseBindingAtom(),this.checkLVal(decl.id,"var"===kind?1:2,!1)};var FUNC_STATEMENT=1,FUNC_HANGING_STATEMENT=2;pp$1.parseFunction=function(node,statement,allowExpressionBody,isAsync){this.initFunction(node),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!isAsync)&&(this.type===types.star&&statement&FUNC_HANGING_STATEMENT&&this.unexpected(),node.generator=this.eat(types.star)),this.options.ecmaVersion>=8&&(node.async=!!isAsync),statement&FUNC_STATEMENT&&(node.id=4&statement&&this.type!==types.name?null:this.parseIdent(),!node.id||statement&FUNC_HANGING_STATEMENT||this.checkLVal(node.id,this.strict||node.generator||node.async?this.treatFunctionsAsVar?1:2:3));var oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,oldAwaitIdentPos=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(node.async,node.generator)),statement&FUNC_STATEMENT||(node.id=this.type===types.name?this.parseIdent():null),this.parseFunctionParams(node),this.parseFunctionBody(node,allowExpressionBody,!1),this.yieldPos=oldYieldPos,this.awaitPos=oldAwaitPos,this.awaitIdentPos=oldAwaitIdentPos,this.finishNode(node,statement&FUNC_STATEMENT?"FunctionDeclaration":"FunctionExpression")},pp$1.parseFunctionParams=function(node){this.expect(types.parenL),node.params=this.parseBindingList(types.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},pp$1.parseClass=function(node,isStatement){this.next();var oldStrict=this.strict;this.strict=!0,this.parseClassId(node,isStatement),this.parseClassSuper(node);var classBody=this.startNode(),hadConstructor=!1;for(classBody.body=[],this.expect(types.braceL);this.type!==types.braceR;){var element=this.parseClassElement(null!==node.superClass);element&&(classBody.body.push(element),"MethodDefinition"===element.type&&"constructor"===element.kind&&(hadConstructor&&this.raise(element.start,"Duplicate constructor in the same class"),hadConstructor=!0))}return this.strict=oldStrict,this.next(),node.body=this.finishNode(classBody,"ClassBody"),this.finishNode(node,isStatement?"ClassDeclaration":"ClassExpression")},pp$1.parseClassElement=function(constructorAllowsSuper){var this$1=this;if(this.eat(types.semi))return null;var method=this.startNode(),tryContextual=function(k,noLineBreak){void 0===noLineBreak&&(noLineBreak=!1);var start=this$1.start,startLoc=this$1.startLoc;return!!this$1.eatContextual(k)&&(!(this$1.type===types.parenL||noLineBreak&&this$1.canInsertSemicolon())||(method.key&&this$1.unexpected(),method.computed=!1,method.key=this$1.startNodeAt(start,startLoc),method.key.name=k,this$1.finishNode(method.key,"Identifier"),!1))};method.kind="method",method.static=tryContextual("static");var isGenerator=this.eat(types.star),isAsync=!1;isGenerator||(this.options.ecmaVersion>=8&&tryContextual("async",!0)?(isAsync=!0,isGenerator=this.options.ecmaVersion>=9&&this.eat(types.star)):tryContextual("get")?method.kind="get":tryContextual("set")&&(method.kind="set")),method.key||this.parsePropertyName(method);var key=method.key,allowsDirectSuper=!1;return method.computed||method.static||!("Identifier"===key.type&&"constructor"===key.name||"Literal"===key.type&&"constructor"===key.value)?method.static&&"Identifier"===key.type&&"prototype"===key.name&&this.raise(key.start,"Classes may not have a static property named prototype"):("method"!==method.kind&&this.raise(key.start,"Constructor can't have get/set modifier"),isGenerator&&this.raise(key.start,"Constructor can't be a generator"),isAsync&&this.raise(key.start,"Constructor can't be an async method"),method.kind="constructor",allowsDirectSuper=constructorAllowsSuper),this.parseClassMethod(method,isGenerator,isAsync,allowsDirectSuper),"get"===method.kind&&0!==method.value.params.length&&this.raiseRecoverable(method.value.start,"getter should have no params"),"set"===method.kind&&1!==method.value.params.length&&this.raiseRecoverable(method.value.start,"setter should have exactly one param"),"set"===method.kind&&"RestElement"===method.value.params[0].type&&this.raiseRecoverable(method.value.params[0].start,"Setter cannot use rest params"),method},pp$1.parseClassMethod=function(method,isGenerator,isAsync,allowsDirectSuper){return method.value=this.parseMethod(isGenerator,isAsync,allowsDirectSuper),this.finishNode(method,"MethodDefinition")},pp$1.parseClassId=function(node,isStatement){this.type===types.name?(node.id=this.parseIdent(),isStatement&&this.checkLVal(node.id,2,!1)):(!0===isStatement&&this.unexpected(),node.id=null)},pp$1.parseClassSuper=function(node){node.superClass=this.eat(types._extends)?this.parseExprSubscripts():null},pp$1.parseExport=function(node,exports){if(this.next(),this.eat(types.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(node.exported=this.parseIdent(!0),this.checkExport(exports,node.exported.name,this.lastTokStart)):node.exported=null),this.expectContextual("from"),this.type!==types.string&&this.unexpected(),node.source=this.parseExprAtom(),this.semicolon(),this.finishNode(node,"ExportAllDeclaration");if(this.eat(types._default)){var isAsync;if(this.checkExport(exports,"default",this.lastTokStart),this.type===types._function||(isAsync=this.isAsyncFunction())){var fNode=this.startNode();this.next(),isAsync&&this.next(),node.declaration=this.parseFunction(fNode,4|FUNC_STATEMENT,!1,isAsync)}else if(this.type===types._class){var cNode=this.startNode();node.declaration=this.parseClass(cNode,"nullableID")}else node.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(node,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())node.declaration=this.parseStatement(null),"VariableDeclaration"===node.declaration.type?this.checkVariableExport(exports,node.declaration.declarations):this.checkExport(exports,node.declaration.id.name,node.declaration.id.start),node.specifiers=[],node.source=null;else{if(node.declaration=null,node.specifiers=this.parseExportSpecifiers(exports),this.eatContextual("from"))this.type!==types.string&&this.unexpected(),node.source=this.parseExprAtom();else{for(var i=0,list=node.specifiers;i=6&&node)switch(node.type){case"Identifier":this.inAsync&&"await"===node.name&&this.raise(node.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":node.type="ObjectPattern",refDestructuringErrors&&this.checkPatternErrors(refDestructuringErrors,!0);for(var i=0,list=node.properties;i=8&&!containsEsc&&"async"===id.name&&!this.canInsertSemicolon()&&this.eat(types._function))return this.parseFunction(this.startNodeAt(startPos,startLoc),0,!1,!0);if(canBeArrow&&!this.canInsertSemicolon()){if(this.eat(types.arrow))return this.parseArrowExpression(this.startNodeAt(startPos,startLoc),[id],!1);if(this.options.ecmaVersion>=8&&"async"===id.name&&this.type===types.name&&!containsEsc)return id=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(types.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(startPos,startLoc),[id],!0)}return id;case types.regexp:var value=this.value;return(node=this.parseLiteral(value.value)).regex={pattern:value.pattern,flags:value.flags},node;case types.num:case types.string:return this.parseLiteral(this.value);case types._null:case types._true:case types._false:return(node=this.startNode()).value=this.type===types._null?null:this.type===types._true,node.raw=this.type.keyword,this.next(),this.finishNode(node,"Literal");case types.parenL:var start=this.start,expr=this.parseParenAndDistinguishExpression(canBeArrow);return refDestructuringErrors&&(refDestructuringErrors.parenthesizedAssign<0&&!this.isSimpleAssignTarget(expr)&&(refDestructuringErrors.parenthesizedAssign=start),refDestructuringErrors.parenthesizedBind<0&&(refDestructuringErrors.parenthesizedBind=start)),expr;case types.bracketL:return node=this.startNode(),this.next(),node.elements=this.parseExprList(types.bracketR,!0,!0,refDestructuringErrors),this.finishNode(node,"ArrayExpression");case types.braceL:return this.parseObj(!1,refDestructuringErrors);case types._function:return node=this.startNode(),this.next(),this.parseFunction(node,0);case types._class:return this.parseClass(this.startNode(),!1);case types._new:return this.parseNew();case types.backQuote:return this.parseTemplate();case types._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},pp$3.parseExprImport=function(){var node=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var meta=this.parseIdent(!0);switch(this.type){case types.parenL:return this.parseDynamicImport(node);case types.dot:return node.meta=meta,this.parseImportMeta(node);default:this.unexpected()}},pp$3.parseDynamicImport=function(node){if(this.next(),node.source=this.parseMaybeAssign(),!this.eat(types.parenR)){var errorPos=this.start;this.eat(types.comma)&&this.eat(types.parenR)?this.raiseRecoverable(errorPos,"Trailing comma is not allowed in import()"):this.unexpected(errorPos)}return this.finishNode(node,"ImportExpression")},pp$3.parseImportMeta=function(node){this.next();var containsEsc=this.containsEsc;return node.property=this.parseIdent(!0),"meta"!==node.property.name&&this.raiseRecoverable(node.property.start,"The only valid meta property for import is 'import.meta'"),containsEsc&&this.raiseRecoverable(node.start,"'import.meta' must not contain escaped characters"),"module"!==this.options.sourceType&&this.raiseRecoverable(node.start,"Cannot use 'import.meta' outside a module"),this.finishNode(node,"MetaProperty")},pp$3.parseLiteral=function(value){var node=this.startNode();return node.value=value,node.raw=this.input.slice(this.start,this.end),110===node.raw.charCodeAt(node.raw.length-1)&&(node.bigint=node.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(node,"Literal")},pp$3.parseParenExpression=function(){this.expect(types.parenL);var val=this.parseExpression();return this.expect(types.parenR),val},pp$3.parseParenAndDistinguishExpression=function(canBeArrow){var val,startPos=this.start,startLoc=this.startLoc,allowTrailingComma=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var spreadStart,innerStartPos=this.start,innerStartLoc=this.startLoc,exprList=[],first=!0,lastIsComma=!1,refDestructuringErrors=new DestructuringErrors,oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==types.parenR;){if(first?first=!1:this.expect(types.comma),allowTrailingComma&&this.afterTrailingComma(types.parenR,!0)){lastIsComma=!0;break}if(this.type===types.ellipsis){spreadStart=this.start,exprList.push(this.parseParenItem(this.parseRestBinding())),this.type===types.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}exprList.push(this.parseMaybeAssign(!1,refDestructuringErrors,this.parseParenItem))}var innerEndPos=this.start,innerEndLoc=this.startLoc;if(this.expect(types.parenR),canBeArrow&&!this.canInsertSemicolon()&&this.eat(types.arrow))return this.checkPatternErrors(refDestructuringErrors,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=oldYieldPos,this.awaitPos=oldAwaitPos,this.parseParenArrowList(startPos,startLoc,exprList);exprList.length&&!lastIsComma||this.unexpected(this.lastTokStart),spreadStart&&this.unexpected(spreadStart),this.checkExpressionErrors(refDestructuringErrors,!0),this.yieldPos=oldYieldPos||this.yieldPos,this.awaitPos=oldAwaitPos||this.awaitPos,exprList.length>1?((val=this.startNodeAt(innerStartPos,innerStartLoc)).expressions=exprList,this.finishNodeAt(val,"SequenceExpression",innerEndPos,innerEndLoc)):val=exprList[0]}else val=this.parseParenExpression();if(this.options.preserveParens){var par=this.startNodeAt(startPos,startLoc);return par.expression=val,this.finishNode(par,"ParenthesizedExpression")}return val},pp$3.parseParenItem=function(item){return item},pp$3.parseParenArrowList=function(startPos,startLoc,exprList){return this.parseArrowExpression(this.startNodeAt(startPos,startLoc),exprList)};var empty$1=[];pp$3.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var node=this.startNode(),meta=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(types.dot)){node.meta=meta;var containsEsc=this.containsEsc;return node.property=this.parseIdent(!0),"target"!==node.property.name&&this.raiseRecoverable(node.property.start,"The only valid meta property for new is 'new.target'"),containsEsc&&this.raiseRecoverable(node.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(node.start,"'new.target' can only be used in functions"),this.finishNode(node,"MetaProperty")}var startPos=this.start,startLoc=this.startLoc,isImport=this.type===types._import;return node.callee=this.parseSubscripts(this.parseExprAtom(),startPos,startLoc,!0),isImport&&"ImportExpression"===node.callee.type&&this.raise(startPos,"Cannot use new with import()"),this.eat(types.parenL)?node.arguments=this.parseExprList(types.parenR,this.options.ecmaVersion>=8,!1):node.arguments=empty$1,this.finishNode(node,"NewExpression")},pp$3.parseTemplateElement=function(ref){var isTagged=ref.isTagged,elem=this.startNode();return this.type===types.invalidTemplate?(isTagged||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),elem.value={raw:this.value,cooked:null}):elem.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),elem.tail=this.type===types.backQuote,this.finishNode(elem,"TemplateElement")},pp$3.parseTemplate=function(ref){void 0===ref&&(ref={});var isTagged=ref.isTagged;void 0===isTagged&&(isTagged=!1);var node=this.startNode();this.next(),node.expressions=[];var curElt=this.parseTemplateElement({isTagged:isTagged});for(node.quasis=[curElt];!curElt.tail;)this.type===types.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(types.dollarBraceL),node.expressions.push(this.parseExpression()),this.expect(types.braceR),node.quasis.push(curElt=this.parseTemplateElement({isTagged:isTagged}));return this.next(),this.finishNode(node,"TemplateLiteral")},pp$3.isAsyncProp=function(prop){return!prop.computed&&"Identifier"===prop.key.type&&"async"===prop.key.name&&(this.type===types.name||this.type===types.num||this.type===types.string||this.type===types.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===types.star)&&!lineBreak.test(this.input.slice(this.lastTokEnd,this.start))},pp$3.parseObj=function(isPattern,refDestructuringErrors){var node=this.startNode(),first=!0,propHash={};for(node.properties=[],this.next();!this.eat(types.braceR);){if(first)first=!1;else if(this.expect(types.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(types.braceR))break;var prop=this.parseProperty(isPattern,refDestructuringErrors);isPattern||this.checkPropClash(prop,propHash,refDestructuringErrors),node.properties.push(prop)}return this.finishNode(node,isPattern?"ObjectPattern":"ObjectExpression")},pp$3.parseProperty=function(isPattern,refDestructuringErrors){var isGenerator,isAsync,startPos,startLoc,prop=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(types.ellipsis))return isPattern?(prop.argument=this.parseIdent(!1),this.type===types.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(prop,"RestElement")):(this.type===types.parenL&&refDestructuringErrors&&(refDestructuringErrors.parenthesizedAssign<0&&(refDestructuringErrors.parenthesizedAssign=this.start),refDestructuringErrors.parenthesizedBind<0&&(refDestructuringErrors.parenthesizedBind=this.start)),prop.argument=this.parseMaybeAssign(!1,refDestructuringErrors),this.type===types.comma&&refDestructuringErrors&&refDestructuringErrors.trailingComma<0&&(refDestructuringErrors.trailingComma=this.start),this.finishNode(prop,"SpreadElement"));this.options.ecmaVersion>=6&&(prop.method=!1,prop.shorthand=!1,(isPattern||refDestructuringErrors)&&(startPos=this.start,startLoc=this.startLoc),isPattern||(isGenerator=this.eat(types.star)));var containsEsc=this.containsEsc;return this.parsePropertyName(prop),!isPattern&&!containsEsc&&this.options.ecmaVersion>=8&&!isGenerator&&this.isAsyncProp(prop)?(isAsync=!0,isGenerator=this.options.ecmaVersion>=9&&this.eat(types.star),this.parsePropertyName(prop,refDestructuringErrors)):isAsync=!1,this.parsePropertyValue(prop,isPattern,isGenerator,isAsync,startPos,startLoc,refDestructuringErrors,containsEsc),this.finishNode(prop,"Property")},pp$3.parsePropertyValue=function(prop,isPattern,isGenerator,isAsync,startPos,startLoc,refDestructuringErrors,containsEsc){if((isGenerator||isAsync)&&this.type===types.colon&&this.unexpected(),this.eat(types.colon))prop.value=isPattern?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,refDestructuringErrors),prop.kind="init";else if(this.options.ecmaVersion>=6&&this.type===types.parenL)isPattern&&this.unexpected(),prop.kind="init",prop.method=!0,prop.value=this.parseMethod(isGenerator,isAsync);else if(isPattern||containsEsc||!(this.options.ecmaVersion>=5)||prop.computed||"Identifier"!==prop.key.type||"get"!==prop.key.name&&"set"!==prop.key.name||this.type===types.comma||this.type===types.braceR||this.type===types.eq)this.options.ecmaVersion>=6&&!prop.computed&&"Identifier"===prop.key.type?((isGenerator||isAsync)&&this.unexpected(),this.checkUnreserved(prop.key),"await"!==prop.key.name||this.awaitIdentPos||(this.awaitIdentPos=startPos),prop.kind="init",isPattern?prop.value=this.parseMaybeDefault(startPos,startLoc,prop.key):this.type===types.eq&&refDestructuringErrors?(refDestructuringErrors.shorthandAssign<0&&(refDestructuringErrors.shorthandAssign=this.start),prop.value=this.parseMaybeDefault(startPos,startLoc,prop.key)):prop.value=prop.key,prop.shorthand=!0):this.unexpected();else{(isGenerator||isAsync)&&this.unexpected(),prop.kind=prop.key.name,this.parsePropertyName(prop),prop.value=this.parseMethod(!1);var paramCount="get"===prop.kind?0:1;if(prop.value.params.length!==paramCount){var start=prop.value.start;"get"===prop.kind?this.raiseRecoverable(start,"getter should have no params"):this.raiseRecoverable(start,"setter should have exactly one param")}else"set"===prop.kind&&"RestElement"===prop.value.params[0].type&&this.raiseRecoverable(prop.value.params[0].start,"Setter cannot use rest params")}},pp$3.parsePropertyName=function(prop){if(this.options.ecmaVersion>=6){if(this.eat(types.bracketL))return prop.computed=!0,prop.key=this.parseMaybeAssign(),this.expect(types.bracketR),prop.key;prop.computed=!1}return prop.key=this.type===types.num||this.type===types.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},pp$3.initFunction=function(node){node.id=null,this.options.ecmaVersion>=6&&(node.generator=node.expression=!1),this.options.ecmaVersion>=8&&(node.async=!1)},pp$3.parseMethod=function(isGenerator,isAsync,allowDirectSuper){var node=this.startNode(),oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,oldAwaitIdentPos=this.awaitIdentPos;return this.initFunction(node),this.options.ecmaVersion>=6&&(node.generator=isGenerator),this.options.ecmaVersion>=8&&(node.async=!!isAsync),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|functionFlags(isAsync,node.generator)|(allowDirectSuper?128:0)),this.expect(types.parenL),node.params=this.parseBindingList(types.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(node,!1,!0),this.yieldPos=oldYieldPos,this.awaitPos=oldAwaitPos,this.awaitIdentPos=oldAwaitIdentPos,this.finishNode(node,"FunctionExpression")},pp$3.parseArrowExpression=function(node,params,isAsync){var oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,oldAwaitIdentPos=this.awaitIdentPos;return this.enterScope(16|functionFlags(isAsync,!1)),this.initFunction(node),this.options.ecmaVersion>=8&&(node.async=!!isAsync),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,node.params=this.toAssignableList(params,!0),this.parseFunctionBody(node,!0,!1),this.yieldPos=oldYieldPos,this.awaitPos=oldAwaitPos,this.awaitIdentPos=oldAwaitIdentPos,this.finishNode(node,"ArrowFunctionExpression")},pp$3.parseFunctionBody=function(node,isArrowFunction,isMethod){var isExpression=isArrowFunction&&this.type!==types.braceL,oldStrict=this.strict,useStrict=!1;if(isExpression)node.body=this.parseMaybeAssign(),node.expression=!0,this.checkParams(node,!1);else{var nonSimple=this.options.ecmaVersion>=7&&!this.isSimpleParamList(node.params);oldStrict&&!nonSimple||(useStrict=this.strictDirective(this.end))&&nonSimple&&this.raiseRecoverable(node.start,"Illegal 'use strict' directive in function with non-simple parameter list");var oldLabels=this.labels;this.labels=[],useStrict&&(this.strict=!0),this.checkParams(node,!oldStrict&&!useStrict&&!isArrowFunction&&!isMethod&&this.isSimpleParamList(node.params)),this.strict&&node.id&&this.checkLVal(node.id,5),node.body=this.parseBlock(!1,void 0,useStrict&&!oldStrict),node.expression=!1,this.adaptDirectivePrologue(node.body.body),this.labels=oldLabels}this.exitScope()},pp$3.isSimpleParamList=function(params){for(var i=0,list=params;i-1||scope.functions.indexOf(name)>-1||scope.var.indexOf(name)>-1,scope.lexical.push(name),this.inModule&&1&scope.flags&&delete this.undefinedExports[name]}else if(4===bindingType){this.currentScope().lexical.push(name)}else if(3===bindingType){var scope$2=this.currentScope();redeclared=this.treatFunctionsAsVar?scope$2.lexical.indexOf(name)>-1:scope$2.lexical.indexOf(name)>-1||scope$2.var.indexOf(name)>-1,scope$2.functions.push(name)}else for(var i=this.scopeStack.length-1;i>=0;--i){var scope$3=this.scopeStack[i];if(scope$3.lexical.indexOf(name)>-1&&!(32&scope$3.flags&&scope$3.lexical[0]===name)||!this.treatFunctionsAsVarInScope(scope$3)&&scope$3.functions.indexOf(name)>-1){redeclared=!0;break}if(scope$3.var.push(name),this.inModule&&1&scope$3.flags&&delete this.undefinedExports[name],3&scope$3.flags)break}redeclared&&this.raiseRecoverable(pos,"Identifier '"+name+"' has already been declared")},pp$5.checkLocalExport=function(id){-1===this.scopeStack[0].lexical.indexOf(id.name)&&-1===this.scopeStack[0].var.indexOf(id.name)&&(this.undefinedExports[id.name]=id)},pp$5.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},pp$5.currentVarScope=function(){for(var i=this.scopeStack.length-1;;i--){var scope=this.scopeStack[i];if(3&scope.flags)return scope}},pp$5.currentThisScope=function(){for(var i=this.scopeStack.length-1;;i--){var scope=this.scopeStack[i];if(3&scope.flags&&!(16&scope.flags))return scope}};var Node=function Node(parser,pos,loc){this.type="",this.start=pos,this.end=0,parser.options.locations&&(this.loc=new SourceLocation(parser,loc)),parser.options.directSourceFile&&(this.sourceFile=parser.options.directSourceFile),parser.options.ranges&&(this.range=[pos,0])},pp$6=Parser.prototype;function finishNodeAt(node,type,pos,loc){return node.type=type,node.end=pos,this.options.locations&&(node.loc.end=loc),this.options.ranges&&(node.range[1]=pos),node}pp$6.startNode=function(){return new Node(this,this.start,this.startLoc)},pp$6.startNodeAt=function(pos,loc){return new Node(this,pos,loc)},pp$6.finishNode=function(node,type){return finishNodeAt.call(this,node,type,this.lastTokEnd,this.lastTokEndLoc)},pp$6.finishNodeAt=function(node,type,pos,loc){return finishNodeAt.call(this,node,type,pos,loc)};var TokContext=function TokContext(token,isExpr,preserveSpace,override,generator){this.token=token,this.isExpr=!!isExpr,this.preserveSpace=!!preserveSpace,this.override=override,this.generator=!!generator},types$1={b_stat:new TokContext("{",!1),b_expr:new TokContext("{",!0),b_tmpl:new TokContext("${",!1),p_stat:new TokContext("(",!1),p_expr:new TokContext("(",!0),q_tmpl:new TokContext("`",!0,!0,(function(p){return p.tryReadTemplateToken()})),f_stat:new TokContext("function",!1),f_expr:new TokContext("function",!0),f_expr_gen:new TokContext("function",!0,!1,null,!0),f_gen:new TokContext("function",!1,!1,null,!0)},pp$7=Parser.prototype;pp$7.initialContext=function(){return[types$1.b_stat]},pp$7.braceIsBlock=function(prevType){var parent=this.curContext();return parent===types$1.f_expr||parent===types$1.f_stat||(prevType!==types.colon||parent!==types$1.b_stat&&parent!==types$1.b_expr?prevType===types._return||prevType===types.name&&this.exprAllowed?lineBreak.test(this.input.slice(this.lastTokEnd,this.start)):prevType===types._else||prevType===types.semi||prevType===types.eof||prevType===types.parenR||prevType===types.arrow||(prevType===types.braceL?parent===types$1.b_stat:prevType!==types._var&&prevType!==types._const&&prevType!==types.name&&!this.exprAllowed):!parent.isExpr)},pp$7.inGeneratorContext=function(){for(var i=this.context.length-1;i>=1;i--){var context=this.context[i];if("function"===context.token)return context.generator}return!1},pp$7.updateContext=function(prevType){var update,type=this.type;type.keyword&&prevType===types.dot?this.exprAllowed=!1:(update=type.updateContext)?update.call(this,prevType):this.exprAllowed=type.beforeExpr},types.parenR.updateContext=types.braceR.updateContext=function(){if(1!==this.context.length){var out=this.context.pop();out===types$1.b_stat&&"function"===this.curContext().token&&(out=this.context.pop()),this.exprAllowed=!out.isExpr}else this.exprAllowed=!0},types.braceL.updateContext=function(prevType){this.context.push(this.braceIsBlock(prevType)?types$1.b_stat:types$1.b_expr),this.exprAllowed=!0},types.dollarBraceL.updateContext=function(){this.context.push(types$1.b_tmpl),this.exprAllowed=!0},types.parenL.updateContext=function(prevType){var statementParens=prevType===types._if||prevType===types._for||prevType===types._with||prevType===types._while;this.context.push(statementParens?types$1.p_stat:types$1.p_expr),this.exprAllowed=!0},types.incDec.updateContext=function(){},types._function.updateContext=types._class.updateContext=function(prevType){!prevType.beforeExpr||prevType===types.semi||prevType===types._else||prevType===types._return&&lineBreak.test(this.input.slice(this.lastTokEnd,this.start))||(prevType===types.colon||prevType===types.braceL)&&this.curContext()===types$1.b_stat?this.context.push(types$1.f_stat):this.context.push(types$1.f_expr),this.exprAllowed=!1},types.backQuote.updateContext=function(){this.curContext()===types$1.q_tmpl?this.context.pop():this.context.push(types$1.q_tmpl),this.exprAllowed=!1},types.star.updateContext=function(prevType){if(prevType===types._function){var index=this.context.length-1;this.context[index]===types$1.f_expr?this.context[index]=types$1.f_expr_gen:this.context[index]=types$1.f_gen}this.exprAllowed=!0},types.name.updateContext=function(prevType){var allowed=!1;this.options.ecmaVersion>=6&&prevType!==types.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(allowed=!0),this.exprAllowed=allowed};var ecma9BinaryProperties="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",ecma10BinaryProperties=ecma9BinaryProperties+" Extended_Pictographic",unicodeBinaryProperties={9:ecma9BinaryProperties,10:ecma10BinaryProperties,11:ecma10BinaryProperties},unicodeGeneralCategoryValues="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",ecma9ScriptValues="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",ecma10ScriptValues=ecma9ScriptValues+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",unicodeScriptValues={9:ecma9ScriptValues,10:ecma10ScriptValues,11:ecma10ScriptValues+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho"},data={};function buildUnicodeData(ecmaVersion){var d=data[ecmaVersion]={binary:wordsRegexp(unicodeBinaryProperties[ecmaVersion]+" "+unicodeGeneralCategoryValues),nonBinary:{General_Category:wordsRegexp(unicodeGeneralCategoryValues),Script:wordsRegexp(unicodeScriptValues[ecmaVersion])}};d.nonBinary.Script_Extensions=d.nonBinary.Script,d.nonBinary.gc=d.nonBinary.General_Category,d.nonBinary.sc=d.nonBinary.Script,d.nonBinary.scx=d.nonBinary.Script_Extensions}buildUnicodeData(9),buildUnicodeData(10),buildUnicodeData(11);var pp$8=Parser.prototype,RegExpValidationState=function RegExpValidationState(parser){this.parser=parser,this.validFlags="gim"+(parser.options.ecmaVersion>=6?"uy":"")+(parser.options.ecmaVersion>=9?"s":""),this.unicodeProperties=data[parser.options.ecmaVersion>=11?11:parser.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function codePointToString(ch){return ch<=65535?String.fromCharCode(ch):(ch-=65536,String.fromCharCode(55296+(ch>>10),56320+(1023&ch)))}function isSyntaxCharacter(ch){return 36===ch||ch>=40&&ch<=43||46===ch||63===ch||ch>=91&&ch<=94||ch>=123&&ch<=125}function isControlLetter(ch){return ch>=65&&ch<=90||ch>=97&&ch<=122}function isUnicodePropertyNameCharacter(ch){return isControlLetter(ch)||95===ch}function isUnicodePropertyValueCharacter(ch){return isUnicodePropertyNameCharacter(ch)||isDecimalDigit(ch)}function isDecimalDigit(ch){return ch>=48&&ch<=57}function isHexDigit(ch){return ch>=48&&ch<=57||ch>=65&&ch<=70||ch>=97&&ch<=102}function hexToInt(ch){return ch>=65&&ch<=70?ch-65+10:ch>=97&&ch<=102?ch-97+10:ch-48}function isOctalDigit(ch){return ch>=48&&ch<=55}RegExpValidationState.prototype.reset=function reset(start,pattern,flags){var unicode=-1!==flags.indexOf("u");this.start=0|start,this.source=pattern+"",this.flags=flags,this.switchU=unicode&&this.parser.options.ecmaVersion>=6,this.switchN=unicode&&this.parser.options.ecmaVersion>=9},RegExpValidationState.prototype.raise=function raise(message){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+message)},RegExpValidationState.prototype.at=function at(i,forceU){void 0===forceU&&(forceU=!1);var s=this.source,l=s.length;if(i>=l)return-1;var c=s.charCodeAt(i);if(!forceU&&!this.switchU||c<=55295||c>=57344||i+1>=l)return c;var next=s.charCodeAt(i+1);return next>=56320&&next<=57343?(c<<10)+next-56613888:c},RegExpValidationState.prototype.nextIndex=function nextIndex(i,forceU){void 0===forceU&&(forceU=!1);var s=this.source,l=s.length;if(i>=l)return l;var next,c=s.charCodeAt(i);return!forceU&&!this.switchU||c<=55295||c>=57344||i+1>=l||(next=s.charCodeAt(i+1))<56320||next>57343?i+1:i+2},RegExpValidationState.prototype.current=function current(forceU){return void 0===forceU&&(forceU=!1),this.at(this.pos,forceU)},RegExpValidationState.prototype.lookahead=function lookahead(forceU){return void 0===forceU&&(forceU=!1),this.at(this.nextIndex(this.pos,forceU),forceU)},RegExpValidationState.prototype.advance=function advance(forceU){void 0===forceU&&(forceU=!1),this.pos=this.nextIndex(this.pos,forceU)},RegExpValidationState.prototype.eat=function eat(ch,forceU){return void 0===forceU&&(forceU=!1),this.current(forceU)===ch&&(this.advance(forceU),!0)},pp$8.validateRegExpFlags=function(state){for(var validFlags=state.validFlags,flags=state.flags,i=0;i-1&&this.raise(state.start,"Duplicate regular expression flag")}},pp$8.validateRegExpPattern=function(state){this.regexp_pattern(state),!state.switchN&&this.options.ecmaVersion>=9&&state.groupNames.length>0&&(state.switchN=!0,this.regexp_pattern(state))},pp$8.regexp_pattern=function(state){state.pos=0,state.lastIntValue=0,state.lastStringValue="",state.lastAssertionIsQuantifiable=!1,state.numCapturingParens=0,state.maxBackReference=0,state.groupNames.length=0,state.backReferenceNames.length=0,this.regexp_disjunction(state),state.pos!==state.source.length&&(state.eat(41)&&state.raise("Unmatched ')'"),(state.eat(93)||state.eat(125))&&state.raise("Lone quantifier brackets")),state.maxBackReference>state.numCapturingParens&&state.raise("Invalid escape");for(var i=0,list=state.backReferenceNames;i=9&&(lookbehind=state.eat(60)),state.eat(61)||state.eat(33))return this.regexp_disjunction(state),state.eat(41)||state.raise("Unterminated group"),state.lastAssertionIsQuantifiable=!lookbehind,!0}return state.pos=start,!1},pp$8.regexp_eatQuantifier=function(state,noError){return void 0===noError&&(noError=!1),!!this.regexp_eatQuantifierPrefix(state,noError)&&(state.eat(63),!0)},pp$8.regexp_eatQuantifierPrefix=function(state,noError){return state.eat(42)||state.eat(43)||state.eat(63)||this.regexp_eatBracedQuantifier(state,noError)},pp$8.regexp_eatBracedQuantifier=function(state,noError){var start=state.pos;if(state.eat(123)){var min=0,max=-1;if(this.regexp_eatDecimalDigits(state)&&(min=state.lastIntValue,state.eat(44)&&this.regexp_eatDecimalDigits(state)&&(max=state.lastIntValue),state.eat(125)))return-1!==max&&max=9?this.regexp_groupSpecifier(state):63===state.current()&&state.raise("Invalid group"),this.regexp_disjunction(state),state.eat(41))return state.numCapturingParens+=1,!0;state.raise("Unterminated group")}return!1},pp$8.regexp_eatExtendedAtom=function(state){return state.eat(46)||this.regexp_eatReverseSolidusAtomEscape(state)||this.regexp_eatCharacterClass(state)||this.regexp_eatUncapturingGroup(state)||this.regexp_eatCapturingGroup(state)||this.regexp_eatInvalidBracedQuantifier(state)||this.regexp_eatExtendedPatternCharacter(state)},pp$8.regexp_eatInvalidBracedQuantifier=function(state){return this.regexp_eatBracedQuantifier(state,!0)&&state.raise("Nothing to repeat"),!1},pp$8.regexp_eatSyntaxCharacter=function(state){var ch=state.current();return!!isSyntaxCharacter(ch)&&(state.lastIntValue=ch,state.advance(),!0)},pp$8.regexp_eatPatternCharacters=function(state){for(var start=state.pos,ch=0;-1!==(ch=state.current())&&!isSyntaxCharacter(ch);)state.advance();return state.pos!==start},pp$8.regexp_eatExtendedPatternCharacter=function(state){var ch=state.current();return!(-1===ch||36===ch||ch>=40&&ch<=43||46===ch||63===ch||91===ch||94===ch||124===ch)&&(state.advance(),!0)},pp$8.regexp_groupSpecifier=function(state){if(state.eat(63)){if(this.regexp_eatGroupName(state))return-1!==state.groupNames.indexOf(state.lastStringValue)&&state.raise("Duplicate capture group name"),void state.groupNames.push(state.lastStringValue);state.raise("Invalid group")}},pp$8.regexp_eatGroupName=function(state){if(state.lastStringValue="",state.eat(60)){if(this.regexp_eatRegExpIdentifierName(state)&&state.eat(62))return!0;state.raise("Invalid capture group name")}return!1},pp$8.regexp_eatRegExpIdentifierName=function(state){if(state.lastStringValue="",this.regexp_eatRegExpIdentifierStart(state)){for(state.lastStringValue+=codePointToString(state.lastIntValue);this.regexp_eatRegExpIdentifierPart(state);)state.lastStringValue+=codePointToString(state.lastIntValue);return!0}return!1},pp$8.regexp_eatRegExpIdentifierStart=function(state){var start=state.pos,forceU=this.options.ecmaVersion>=11,ch=state.current(forceU);return state.advance(forceU),92===ch&&this.regexp_eatRegExpUnicodeEscapeSequence(state,forceU)&&(ch=state.lastIntValue),function isRegExpIdentifierStart(ch){return isIdentifierStart(ch,!0)||36===ch||95===ch}(ch)?(state.lastIntValue=ch,!0):(state.pos=start,!1)},pp$8.regexp_eatRegExpIdentifierPart=function(state){var start=state.pos,forceU=this.options.ecmaVersion>=11,ch=state.current(forceU);return state.advance(forceU),92===ch&&this.regexp_eatRegExpUnicodeEscapeSequence(state,forceU)&&(ch=state.lastIntValue),function isRegExpIdentifierPart(ch){return isIdentifierChar(ch,!0)||36===ch||95===ch||8204===ch||8205===ch}(ch)?(state.lastIntValue=ch,!0):(state.pos=start,!1)},pp$8.regexp_eatAtomEscape=function(state){return!!(this.regexp_eatBackReference(state)||this.regexp_eatCharacterClassEscape(state)||this.regexp_eatCharacterEscape(state)||state.switchN&&this.regexp_eatKGroupName(state))||(state.switchU&&(99===state.current()&&state.raise("Invalid unicode escape"),state.raise("Invalid escape")),!1)},pp$8.regexp_eatBackReference=function(state){var start=state.pos;if(this.regexp_eatDecimalEscape(state)){var n=state.lastIntValue;if(state.switchU)return n>state.maxBackReference&&(state.maxBackReference=n),!0;if(n<=state.numCapturingParens)return!0;state.pos=start}return!1},pp$8.regexp_eatKGroupName=function(state){if(state.eat(107)){if(this.regexp_eatGroupName(state))return state.backReferenceNames.push(state.lastStringValue),!0;state.raise("Invalid named reference")}return!1},pp$8.regexp_eatCharacterEscape=function(state){return this.regexp_eatControlEscape(state)||this.regexp_eatCControlLetter(state)||this.regexp_eatZero(state)||this.regexp_eatHexEscapeSequence(state)||this.regexp_eatRegExpUnicodeEscapeSequence(state,!1)||!state.switchU&&this.regexp_eatLegacyOctalEscapeSequence(state)||this.regexp_eatIdentityEscape(state)},pp$8.regexp_eatCControlLetter=function(state){var start=state.pos;if(state.eat(99)){if(this.regexp_eatControlLetter(state))return!0;state.pos=start}return!1},pp$8.regexp_eatZero=function(state){return 48===state.current()&&!isDecimalDigit(state.lookahead())&&(state.lastIntValue=0,state.advance(),!0)},pp$8.regexp_eatControlEscape=function(state){var ch=state.current();return 116===ch?(state.lastIntValue=9,state.advance(),!0):110===ch?(state.lastIntValue=10,state.advance(),!0):118===ch?(state.lastIntValue=11,state.advance(),!0):102===ch?(state.lastIntValue=12,state.advance(),!0):114===ch&&(state.lastIntValue=13,state.advance(),!0)},pp$8.regexp_eatControlLetter=function(state){var ch=state.current();return!!isControlLetter(ch)&&(state.lastIntValue=ch%32,state.advance(),!0)},pp$8.regexp_eatRegExpUnicodeEscapeSequence=function(state,forceU){void 0===forceU&&(forceU=!1);var start=state.pos,switchU=forceU||state.switchU;if(state.eat(117)){if(this.regexp_eatFixedHexDigits(state,4)){var lead=state.lastIntValue;if(switchU&&lead>=55296&&lead<=56319){var leadSurrogateEnd=state.pos;if(state.eat(92)&&state.eat(117)&&this.regexp_eatFixedHexDigits(state,4)){var trail=state.lastIntValue;if(trail>=56320&&trail<=57343)return state.lastIntValue=1024*(lead-55296)+(trail-56320)+65536,!0}state.pos=leadSurrogateEnd,state.lastIntValue=lead}return!0}if(switchU&&state.eat(123)&&this.regexp_eatHexDigits(state)&&state.eat(125)&&function isValidUnicode(ch){return ch>=0&&ch<=1114111}(state.lastIntValue))return!0;switchU&&state.raise("Invalid unicode escape"),state.pos=start}return!1},pp$8.regexp_eatIdentityEscape=function(state){if(state.switchU)return!!this.regexp_eatSyntaxCharacter(state)||!!state.eat(47)&&(state.lastIntValue=47,!0);var ch=state.current();return!(99===ch||state.switchN&&107===ch)&&(state.lastIntValue=ch,state.advance(),!0)},pp$8.regexp_eatDecimalEscape=function(state){state.lastIntValue=0;var ch=state.current();if(ch>=49&&ch<=57){do{state.lastIntValue=10*state.lastIntValue+(ch-48),state.advance()}while((ch=state.current())>=48&&ch<=57);return!0}return!1},pp$8.regexp_eatCharacterClassEscape=function(state){var ch=state.current();if(function isCharacterClassEscape(ch){return 100===ch||68===ch||115===ch||83===ch||119===ch||87===ch}(ch))return state.lastIntValue=-1,state.advance(),!0;if(state.switchU&&this.options.ecmaVersion>=9&&(80===ch||112===ch)){if(state.lastIntValue=-1,state.advance(),state.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(state)&&state.eat(125))return!0;state.raise("Invalid property name")}return!1},pp$8.regexp_eatUnicodePropertyValueExpression=function(state){var start=state.pos;if(this.regexp_eatUnicodePropertyName(state)&&state.eat(61)){var name=state.lastStringValue;if(this.regexp_eatUnicodePropertyValue(state)){var value=state.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(state,name,value),!0}}if(state.pos=start,this.regexp_eatLoneUnicodePropertyNameOrValue(state)){var nameOrValue=state.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(state,nameOrValue),!0}return!1},pp$8.regexp_validateUnicodePropertyNameAndValue=function(state,name,value){has(state.unicodeProperties.nonBinary,name)||state.raise("Invalid property name"),state.unicodeProperties.nonBinary[name].test(value)||state.raise("Invalid property value")},pp$8.regexp_validateUnicodePropertyNameOrValue=function(state,nameOrValue){state.unicodeProperties.binary.test(nameOrValue)||state.raise("Invalid property name")},pp$8.regexp_eatUnicodePropertyName=function(state){var ch=0;for(state.lastStringValue="";isUnicodePropertyNameCharacter(ch=state.current());)state.lastStringValue+=codePointToString(ch),state.advance();return""!==state.lastStringValue},pp$8.regexp_eatUnicodePropertyValue=function(state){var ch=0;for(state.lastStringValue="";isUnicodePropertyValueCharacter(ch=state.current());)state.lastStringValue+=codePointToString(ch),state.advance();return""!==state.lastStringValue},pp$8.regexp_eatLoneUnicodePropertyNameOrValue=function(state){return this.regexp_eatUnicodePropertyValue(state)},pp$8.regexp_eatCharacterClass=function(state){if(state.eat(91)){if(state.eat(94),this.regexp_classRanges(state),state.eat(93))return!0;state.raise("Unterminated character class")}return!1},pp$8.regexp_classRanges=function(state){for(;this.regexp_eatClassAtom(state);){var left=state.lastIntValue;if(state.eat(45)&&this.regexp_eatClassAtom(state)){var right=state.lastIntValue;!state.switchU||-1!==left&&-1!==right||state.raise("Invalid character class"),-1!==left&&-1!==right&&left>right&&state.raise("Range out of order in character class")}}},pp$8.regexp_eatClassAtom=function(state){var start=state.pos;if(state.eat(92)){if(this.regexp_eatClassEscape(state))return!0;if(state.switchU){var ch$1=state.current();(99===ch$1||isOctalDigit(ch$1))&&state.raise("Invalid class escape"),state.raise("Invalid escape")}state.pos=start}var ch=state.current();return 93!==ch&&(state.lastIntValue=ch,state.advance(),!0)},pp$8.regexp_eatClassEscape=function(state){var start=state.pos;if(state.eat(98))return state.lastIntValue=8,!0;if(state.switchU&&state.eat(45))return state.lastIntValue=45,!0;if(!state.switchU&&state.eat(99)){if(this.regexp_eatClassControlLetter(state))return!0;state.pos=start}return this.regexp_eatCharacterClassEscape(state)||this.regexp_eatCharacterEscape(state)},pp$8.regexp_eatClassControlLetter=function(state){var ch=state.current();return!(!isDecimalDigit(ch)&&95!==ch)&&(state.lastIntValue=ch%32,state.advance(),!0)},pp$8.regexp_eatHexEscapeSequence=function(state){var start=state.pos;if(state.eat(120)){if(this.regexp_eatFixedHexDigits(state,2))return!0;state.switchU&&state.raise("Invalid escape"),state.pos=start}return!1},pp$8.regexp_eatDecimalDigits=function(state){var start=state.pos,ch=0;for(state.lastIntValue=0;isDecimalDigit(ch=state.current());)state.lastIntValue=10*state.lastIntValue+(ch-48),state.advance();return state.pos!==start},pp$8.regexp_eatHexDigits=function(state){var start=state.pos,ch=0;for(state.lastIntValue=0;isHexDigit(ch=state.current());)state.lastIntValue=16*state.lastIntValue+hexToInt(ch),state.advance();return state.pos!==start},pp$8.regexp_eatLegacyOctalEscapeSequence=function(state){if(this.regexp_eatOctalDigit(state)){var n1=state.lastIntValue;if(this.regexp_eatOctalDigit(state)){var n2=state.lastIntValue;n1<=3&&this.regexp_eatOctalDigit(state)?state.lastIntValue=64*n1+8*n2+state.lastIntValue:state.lastIntValue=8*n1+n2}else state.lastIntValue=n1;return!0}return!1},pp$8.regexp_eatOctalDigit=function(state){var ch=state.current();return isOctalDigit(ch)?(state.lastIntValue=ch-48,state.advance(),!0):(state.lastIntValue=0,!1)},pp$8.regexp_eatFixedHexDigits=function(state,length){var start=state.pos;state.lastIntValue=0;for(var i=0;i>10),56320+(1023&code)))}pp$9.next=function(ignoreEscapeSequenceInKeyword){!ignoreEscapeSequenceInKeyword&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Token(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},pp$9.getToken=function(){return this.next(),new Token(this)},"undefined"!=typeof Symbol&&(pp$9[Symbol.iterator]=function(){var this$1=this;return{next:function(){var token=this$1.getToken();return{done:token.type===types.eof,value:token}}}}),pp$9.curContext=function(){return this.context[this.context.length-1]},pp$9.nextToken=function(){var curContext=this.curContext();return curContext&&curContext.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(types.eof):curContext.override?curContext.override(this):void this.readToken(this.fullCharCodeAtPos())},pp$9.readToken=function(code){return isIdentifierStart(code,this.options.ecmaVersion>=6)||92===code?this.readWord():this.getTokenFromCode(code)},pp$9.fullCharCodeAtPos=function(){var code=this.input.charCodeAt(this.pos);return code<=55295||code>=57344?code:(code<<10)+this.input.charCodeAt(this.pos+1)-56613888},pp$9.skipBlockComment=function(){var match,startLoc=this.options.onComment&&this.curPosition(),start=this.pos,end=this.input.indexOf("*/",this.pos+=2);if(-1===end&&this.raise(this.pos-2,"Unterminated comment"),this.pos=end+2,this.options.locations)for(lineBreakG.lastIndex=start;(match=lineBreakG.exec(this.input))&&match.index8&&ch<14||ch>=5760&&nonASCIIwhitespace.test(String.fromCharCode(ch))))break loop;++this.pos}}},pp$9.finishToken=function(type,val){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var prevType=this.type;this.type=type,this.value=val,this.updateContext(prevType)},pp$9.readToken_dot=function(){var next=this.input.charCodeAt(this.pos+1);if(next>=48&&next<=57)return this.readNumber(!0);var next2=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===next&&46===next2?(this.pos+=3,this.finishToken(types.ellipsis)):(++this.pos,this.finishToken(types.dot))},pp$9.readToken_slash=function(){var next=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===next?this.finishOp(types.assign,2):this.finishOp(types.slash,1)},pp$9.readToken_mult_modulo_exp=function(code){var next=this.input.charCodeAt(this.pos+1),size=1,tokentype=42===code?types.star:types.modulo;return this.options.ecmaVersion>=7&&42===code&&42===next&&(++size,tokentype=types.starstar,next=this.input.charCodeAt(this.pos+2)),61===next?this.finishOp(types.assign,size+1):this.finishOp(tokentype,size)},pp$9.readToken_pipe_amp=function(code){var next=this.input.charCodeAt(this.pos+1);if(next===code){if(this.options.ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(types.assign,3);return this.finishOp(124===code?types.logicalOR:types.logicalAND,2)}return 61===next?this.finishOp(types.assign,2):this.finishOp(124===code?types.bitwiseOR:types.bitwiseAND,1)},pp$9.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(types.assign,2):this.finishOp(types.bitwiseXOR,1)},pp$9.readToken_plus_min=function(code){var next=this.input.charCodeAt(this.pos+1);return next===code?45!==next||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!lineBreak.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(types.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===next?this.finishOp(types.assign,2):this.finishOp(types.plusMin,1)},pp$9.readToken_lt_gt=function(code){var next=this.input.charCodeAt(this.pos+1),size=1;return next===code?(size=62===code&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+size)?this.finishOp(types.assign,size+1):this.finishOp(types.bitShift,size)):33!==next||60!==code||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===next&&(size=2),this.finishOp(types.relational,size)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},pp$9.readToken_eq_excl=function(code){var next=this.input.charCodeAt(this.pos+1);return 61===next?this.finishOp(types.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===code&&62===next&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(types.arrow)):this.finishOp(61===code?types.eq:types.prefix,1)},pp$9.readToken_question=function(){var ecmaVersion=this.options.ecmaVersion;if(ecmaVersion>=11){var next=this.input.charCodeAt(this.pos+1);if(46===next){var next2=this.input.charCodeAt(this.pos+2);if(next2<48||next2>57)return this.finishOp(types.questionDot,2)}if(63===next){if(ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(types.assign,3);return this.finishOp(types.coalesce,2)}}return this.finishOp(types.question,1)},pp$9.getTokenFromCode=function(code){switch(code){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(types.parenL);case 41:return++this.pos,this.finishToken(types.parenR);case 59:return++this.pos,this.finishToken(types.semi);case 44:return++this.pos,this.finishToken(types.comma);case 91:return++this.pos,this.finishToken(types.bracketL);case 93:return++this.pos,this.finishToken(types.bracketR);case 123:return++this.pos,this.finishToken(types.braceL);case 125:return++this.pos,this.finishToken(types.braceR);case 58:return++this.pos,this.finishToken(types.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(types.backQuote);case 48:var next=this.input.charCodeAt(this.pos+1);if(120===next||88===next)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===next||79===next)return this.readRadixNumber(8);if(98===next||66===next)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(code);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(code);case 124:case 38:return this.readToken_pipe_amp(code);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(code);case 60:case 62:return this.readToken_lt_gt(code);case 61:case 33:return this.readToken_eq_excl(code);case 63:return this.readToken_question();case 126:return this.finishOp(types.prefix,1)}this.raise(this.pos,"Unexpected character '"+codePointToString$1(code)+"'")},pp$9.finishOp=function(type,size){var str=this.input.slice(this.pos,this.pos+size);return this.pos+=size,this.finishToken(type,str)},pp$9.readRegexp=function(){for(var escaped,inClass,start=this.pos;;){this.pos>=this.input.length&&this.raise(start,"Unterminated regular expression");var ch=this.input.charAt(this.pos);if(lineBreak.test(ch)&&this.raise(start,"Unterminated regular expression"),escaped)escaped=!1;else{if("["===ch)inClass=!0;else if("]"===ch&&inClass)inClass=!1;else if("/"===ch&&!inClass)break;escaped="\\"===ch}++this.pos}var pattern=this.input.slice(start,this.pos);++this.pos;var flagsStart=this.pos,flags=this.readWord1();this.containsEsc&&this.unexpected(flagsStart);var state=this.regexpState||(this.regexpState=new RegExpValidationState(this));state.reset(start,pattern,flags),this.validateRegExpFlags(state),this.validateRegExpPattern(state);var value=null;try{value=new RegExp(pattern,flags)}catch(e){}return this.finishToken(types.regexp,{pattern:pattern,flags:flags,value:value})},pp$9.readInt=function(radix,len,maybeLegacyOctalNumericLiteral){for(var allowSeparators=this.options.ecmaVersion>=12&&void 0===len,isLegacyOctalNumericLiteral=maybeLegacyOctalNumericLiteral&&48===this.input.charCodeAt(this.pos),start=this.pos,total=0,lastCode=0,i=0,e=null==len?1/0:len;i=97?code-97+10:code>=65?code-65+10:code>=48&&code<=57?code-48:1/0)>=radix)break;lastCode=code,total=total*radix+val}}return allowSeparators&&95===lastCode&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===start||null!=len&&this.pos-start!==len?null:total},pp$9.readRadixNumber=function(radix){var start=this.pos;this.pos+=2;var val=this.readInt(radix);return null==val&&this.raise(this.start+2,"Expected number in radix "+radix),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(val=stringToBigInt(this.input.slice(start,this.pos)),++this.pos):isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(types.num,val)},pp$9.readNumber=function(startsWithDot){var start=this.pos;startsWithDot||null!==this.readInt(10,void 0,!0)||this.raise(start,"Invalid number");var octal=this.pos-start>=2&&48===this.input.charCodeAt(start);octal&&this.strict&&this.raise(start,"Invalid number");var next=this.input.charCodeAt(this.pos);if(!octal&&!startsWithDot&&this.options.ecmaVersion>=11&&110===next){var val$1=stringToBigInt(this.input.slice(start,this.pos));return++this.pos,isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(types.num,val$1)}octal&&/[89]/.test(this.input.slice(start,this.pos))&&(octal=!1),46!==next||octal||(++this.pos,this.readInt(10),next=this.input.charCodeAt(this.pos)),69!==next&&101!==next||octal||(43!==(next=this.input.charCodeAt(++this.pos))&&45!==next||++this.pos,null===this.readInt(10)&&this.raise(start,"Invalid number")),isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var val=function stringToNumber(str,isLegacyOctalNumericLiteral){return isLegacyOctalNumericLiteral?parseInt(str,8):parseFloat(str.replace(/_/g,""))}(this.input.slice(start,this.pos),octal);return this.finishToken(types.num,val)},pp$9.readCodePoint=function(){var code;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var codePos=++this.pos;code=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,code>1114111&&this.invalidStringToken(codePos,"Code point out of bounds")}else code=this.readHexChar(4);return code},pp$9.readString=function(quote){for(var out="",chunkStart=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var ch=this.input.charCodeAt(this.pos);if(ch===quote)break;92===ch?(out+=this.input.slice(chunkStart,this.pos),out+=this.readEscapedChar(!1),chunkStart=this.pos):(isNewLine(ch,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return out+=this.input.slice(chunkStart,this.pos++),this.finishToken(types.string,out)};var INVALID_TEMPLATE_ESCAPE_ERROR={};pp$9.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(err){if(err!==INVALID_TEMPLATE_ESCAPE_ERROR)throw err;this.readInvalidTemplateToken()}this.inTemplateElement=!1},pp$9.invalidStringToken=function(position,message){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw INVALID_TEMPLATE_ESCAPE_ERROR;this.raise(position,message)},pp$9.readTmplToken=function(){for(var out="",chunkStart=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var ch=this.input.charCodeAt(this.pos);if(96===ch||36===ch&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==types.template&&this.type!==types.invalidTemplate?(out+=this.input.slice(chunkStart,this.pos),this.finishToken(types.template,out)):36===ch?(this.pos+=2,this.finishToken(types.dollarBraceL)):(++this.pos,this.finishToken(types.backQuote));if(92===ch)out+=this.input.slice(chunkStart,this.pos),out+=this.readEscapedChar(!0),chunkStart=this.pos;else if(isNewLine(ch)){switch(out+=this.input.slice(chunkStart,this.pos),++this.pos,ch){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:out+="\n";break;default:out+=String.fromCharCode(ch)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),chunkStart=this.pos}else++this.pos}},pp$9.readInvalidTemplateToken=function(){for(;this.pos=48&&ch<=55){var octalStr=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],octal=parseInt(octalStr,8);return octal>255&&(octalStr=octalStr.slice(0,-1),octal=parseInt(octalStr,8)),this.pos+=octalStr.length-1,ch=this.input.charCodeAt(this.pos),"0"===octalStr&&56!==ch&&57!==ch||!this.strict&&!inTemplate||this.invalidStringToken(this.pos-1-octalStr.length,inTemplate?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(octal)}return isNewLine(ch)?"":String.fromCharCode(ch)}},pp$9.readHexChar=function(len){var codePos=this.pos,n=this.readInt(16,len);return null===n&&this.invalidStringToken(codePos,"Bad character escape sequence"),n},pp$9.readWord1=function(){this.containsEsc=!1;for(var word="",first=!0,chunkStart=this.pos,astral=this.options.ecmaVersion>=6;this.posarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=value.length?res:res.concat(new Array(value.length-update.length).fill(void 0))}return lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_27___default()(value)&&lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_27___default()(update)?Object.keys(Object.assign({},value,update)).reduce((function(acc,key){var diff=deepDiff(null==value?void 0:value[key],null==update?void 0:update[key]);return diff===DEEPLY_EQUAL?acc:Object.assign(acc,_defineProperty({},key,diff))}),{}):update},NO_TARGET_NAME="";function groupArgsByTarget(_ref7){var args=_ref7.args,argTypes=_ref7.argTypes,groupedArgs={};return Object.entries(args).forEach((function(_ref8){var _ref9=_slicedToArray(_ref8,2),name=_ref9[0],value=_ref9[1],_ref10$target=(argTypes[name]||{}).target,target=void 0===_ref10$target?NO_TARGET_NAME:_ref10$target;groupedArgs[target]=groupedArgs[target]||{},groupedArgs[target][name]=value})),groupedArgs}},"./node_modules/@storybook/store/dist/esm/csf/getValuesFromArgTypes.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return getValuesFromArgTypes}));__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&void 0!==arguments[0]?arguments[0]:{};return Object.entries(argTypes).reduce((function(acc,_ref){var _ref2=_slicedToArray(_ref,2),arg=_ref2[0],defaultValue=_ref2[1].defaultValue;return void 0!==defaultValue&&(acc[arg]=defaultValue),acc}),{})}},"./node_modules/@storybook/store/dist/esm/csf/normalizeComponentAnnotations.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return normalizeComponentAnnotations}));__webpack_require__("./node_modules/core-js/modules/es.object.assign.js");var _storybook_csf__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@storybook/csf/dist/index.js"),_normalizeInputTypes__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@storybook/store/dist/esm/csf/normalizeInputTypes.js");function normalizeComponentAnnotations(defaultExport){var title=arguments.length>1&&void 0!==arguments[1]?arguments[1]:defaultExport.title,importPath=arguments.length>2?arguments[2]:void 0,id=defaultExport.id,argTypes=defaultExport.argTypes;return Object.assign({id:Object(_storybook_csf__WEBPACK_IMPORTED_MODULE_1__.sanitize)(id||title)},defaultExport,{title:title},argTypes&&{argTypes:Object(_normalizeInputTypes__WEBPACK_IMPORTED_MODULE_2__.a)(argTypes)},{parameters:Object.assign({fileName:importPath},defaultExport.parameters)})}},"./node_modules/@storybook/store/dist/esm/csf/normalizeInputTypes.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return normalizeInputTypes}));__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js");var lodash_mapValues__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/lodash/mapValues.js"),lodash_mapValues__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(lodash_mapValues__WEBPACK_IMPORTED_MODULE_3__),_excluded=["type","control"];function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var normalizeInputType=function normalizeInputType(inputType,key){var type=inputType.type,control=inputType.control,rest=_objectWithoutProperties(inputType,_excluded),normalized=Object.assign({name:key},rest);return type&&(normalized.type=function normalizeType(type){return"string"==typeof type?{name:type}:type}(type)),control?normalized.control=function normalizeControl(control){return"string"==typeof control?{type:control}:control}(control):!1===control&&(normalized.control={disable:!0}),normalized},normalizeInputTypes=function normalizeInputTypes(inputTypes){return lodash_mapValues__WEBPACK_IMPORTED_MODULE_3___default()(inputTypes,normalizeInputType)}},"./node_modules/@storybook/store/dist/esm/csf/normalizeProjectAnnotations.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return normalizeProjectAnnotations}));__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.set.js");var _templateObject,mapValues=__webpack_require__("./node_modules/lodash/mapValues.js"),mapValues_default=__webpack_require__.n(mapValues),esm=__webpack_require__("./node_modules/ts-dedent/esm/index.js"),dist_esm=__webpack_require__("./node_modules/@storybook/client-logger/dist/esm/index.js"),parameters=__webpack_require__("./node_modules/@storybook/store/dist/esm/parameters.js");function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}var inferArgTypes_inferType=function inferType(value,name,visited){var type=_typeof(value);switch(type){case"boolean":case"string":case"number":case"function":case"symbol":return{name:type}}return value?visited.has(value)?(dist_esm.a.warn(Object(esm.a)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n We've detected a cycle in arg '","'. Args should be JSON-serializable.\n\n Consider using the mapping feature or fully custom args:\n - Mapping: https://storybook.js.org/docs/react/writing-stories/args#mapping-to-complex-arg-values\n - Custom args: https://storybook.js.org/docs/react/essentials/controls#fully-custom-args\n "])),name)),{name:"other",value:"cyclic object"}):(visited.add(value),Array.isArray(value)?{name:"array",value:value.length>0?inferType(value[0],name,new Set(visited)):{name:"other",value:"unknown"}}:{name:"object",value:mapValues_default()(value,(function(field){return inferType(field,name,new Set(visited))}))}):{name:"object",value:{}}},inferArgTypes_inferArgTypes=function inferArgTypes(context){var id=context.id,_context$argTypes=context.argTypes,userArgTypes=void 0===_context$argTypes?{}:_context$argTypes,_context$initialArgs=context.initialArgs,initialArgs=void 0===_context$initialArgs?{}:_context$initialArgs,argTypes=mapValues_default()(initialArgs,(function(arg,key){return{name:key,type:inferArgTypes_inferType(arg,"".concat(id,".").concat(key),new Set)}})),userArgTypesNames=mapValues_default()(userArgTypes,(function(argType,key){return{name:key}}));return Object(parameters.a)(argTypes,userArgTypesNames,userArgTypes)};inferArgTypes_inferArgTypes.secondPass=!0;var filterArgTypes=__webpack_require__("./node_modules/@storybook/store/dist/esm/filterArgTypes.js"),inferControls_inferControls=function inferControls(context){var argTypes=context.argTypes,_context$parameters=context.parameters,__isArgsStory=_context$parameters.__isArgsStory,_context$parameters$c=_context$parameters.controls,_context$parameters$c2=(_context$parameters$c=void 0===_context$parameters$c?{}:_context$parameters$c).include,include=void 0===_context$parameters$c2?null:_context$parameters$c2,_context$parameters$c3=_context$parameters$c.exclude,exclude=void 0===_context$parameters$c3?null:_context$parameters$c3,_context$parameters$c4=_context$parameters$c.matchers,matchers=void 0===_context$parameters$c4?{}:_context$parameters$c4;if(!__isArgsStory)return argTypes;var filteredArgTypes=Object(filterArgTypes.a)(argTypes,include,exclude),withControls=mapValues_default()(filteredArgTypes,(function(argType,name){return(null==argType?void 0:argType.type)&&function inferControl(argType,name,matchers){var type=argType.type,options=argType.options;if(type||options){if(matchers.color&&matchers.color.test(name)){var controlType=argType.type.name;if("string"===controlType)return{control:{type:"color"}};dist_esm.a.warn('Addon controls: Control of type color only supports string, received "'.concat(controlType,'" instead'))}if(matchers.date&&matchers.date.test(name))return{control:{type:"date"}};switch(type.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":var value=type.value;return{control:{type:(null==value?void 0:value.length)<=5?"radio":"select"},options:value};case"function":case"symbol":return null;default:return{control:{type:options?"select":"object"}}}}}(argType,name,matchers)}));return Object(parameters.a)(withControls,filteredArgTypes)};inferControls_inferControls.secondPass=!0;var normalizeInputTypes=__webpack_require__("./node_modules/@storybook/store/dist/esm/csf/normalizeInputTypes.js"),_excluded=["argTypes","globalTypes","argTypesEnhancers"];function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function normalizeProjectAnnotations(_ref){var argTypes=_ref.argTypes,globalTypes=_ref.globalTypes,argTypesEnhancers=_ref.argTypesEnhancers,annotations=_objectWithoutProperties(_ref,_excluded);return Object.assign({},argTypes&&{argTypes:Object(normalizeInputTypes.a)(argTypes)},globalTypes&&{globalTypes:Object(normalizeInputTypes.a)(globalTypes)},{argTypesEnhancers:[].concat(_toConsumableArray(argTypesEnhancers||[]),[inferArgTypes_inferArgTypes,inferControls_inferControls])},annotations)}},"./node_modules/@storybook/store/dist/esm/csf/normalizeStory.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return normalizeStory}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js");var _templateObject,_storybook_csf__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/@storybook/csf/dist/index.js"),ts_dedent__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/ts-dedent/esm/index.js"),_storybook_client_logger__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/@storybook/client-logger/dist/esm/index.js"),util_deprecate__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./node_modules/util-deprecate/browser.js"),util_deprecate__WEBPACK_IMPORTED_MODULE_17___default=__webpack_require__.n(util_deprecate__WEBPACK_IMPORTED_MODULE_17__),_normalizeInputTypes__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/@storybook/store/dist/esm/csf/normalizeInputTypes.js");function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i StoryFn.storyName\n- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)\nSee https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.\n"]))),deprecatedStoryAnnotationWarning=util_deprecate__WEBPACK_IMPORTED_MODULE_17___default()((function(){}),deprecatedStoryAnnotation);function normalizeStory(key,storyAnnotations,meta){var userStoryFn,storyObject;"function"==typeof storyAnnotations?(userStoryFn=storyAnnotations,storyObject=storyAnnotations):storyObject=storyAnnotations;var story=storyObject.story;story&&(_storybook_client_logger__WEBPACK_IMPORTED_MODULE_16__.a.debug("deprecated story",story),deprecatedStoryAnnotationWarning());var exportName=Object(_storybook_csf__WEBPACK_IMPORTED_MODULE_14__.storyNameFromExport)(key),name="function"!=typeof storyObject&&storyObject.name||storyObject.storyName||(null==story?void 0:story.name)||exportName,decorators=[].concat(_toConsumableArray(storyObject.decorators||[]),_toConsumableArray((null==story?void 0:story.decorators)||[])),parameters=Object.assign({},null==story?void 0:story.parameters,storyObject.parameters),args=Object.assign({},null==story?void 0:story.args,storyObject.args),argTypes=Object.assign({},null==story?void 0:story.argTypes,storyObject.argTypes),loaders=[].concat(_toConsumableArray(storyObject.loaders||[]),_toConsumableArray((null==story?void 0:story.loaders)||[])),_storyObject2=storyObject,render=_storyObject2.render,play=_storyObject2.play,id=parameters.__id||Object(_storybook_csf__WEBPACK_IMPORTED_MODULE_14__.toId)(meta.id||meta.title,exportName);return Object.assign({id:id,name:name,decorators:decorators,parameters:parameters,args:args,argTypes:Object(_normalizeInputTypes__WEBPACK_IMPORTED_MODULE_18__.a)(argTypes),loaders:loaders},render&&{render:render},userStoryFn&&{userStoryFn:userStoryFn},play&&{play:play})}},"./node_modules/@storybook/store/dist/esm/csf/prepareStory.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return prepareStory}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/regenerator-runtime/runtime.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js");var esm=__webpack_require__("./node_modules/ts-dedent/esm/index.js"),browser=__webpack_require__("./node_modules/util-deprecate/browser.js"),browser_default=__webpack_require__.n(browser),global_window=__webpack_require__("./node_modules/global/window.js"),window_default=__webpack_require__.n(global_window),dist=__webpack_require__("./node_modules/@storybook/csf/dist/index.js"),esm_parameters=__webpack_require__("./node_modules/@storybook/store/dist/esm/parameters.js"),hooks=__webpack_require__("./node_modules/@storybook/addons/dist/esm/hooks.js"),_excluded=["componentId","title","kind","id","name","story","parameters","initialArgs","argTypes"];function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function defaultDecorateStory(storyFn,decorators){var contextStore={},bindWithContext=function bindWithContext(decoratedStoryFn){return function(update){return contextStore.value=Object.assign({},contextStore.value,function sanitizeStoryContextUpdate(){var _ref=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _ref.componentId,_ref.title,_ref.kind,_ref.id,_ref.name,_ref.story,_ref.parameters,_ref.initialArgs,_ref.argTypes,_objectWithoutProperties(_ref,_excluded)}(update)),decoratedStoryFn(contextStore.value)}},decoratedWithContextStore=decorators.reduce((function(story,decorator){return function decorateStory(storyFn,decorator,bindWithContext){var boundStoryFunction=bindWithContext(storyFn);return function(context){return decorator(boundStoryFunction,context)}}(story,decorator,bindWithContext)}),storyFn);return function(context){return contextStore.value=context,decoratedWithContextStore(context)}}var _templateObject,args=__webpack_require__("./node_modules/@storybook/store/dist/esm/args.js"),getValuesFromArgTypes=__webpack_require__("./node_modules/@storybook/store/dist/esm/csf/getValuesFromArgTypes.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||_unsupportedIterableToArray(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||_unsupportedIterableToArray(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0;var passedArgs=Object.assign({},projectAnnotations.args,componentAnnotations.args,storyAnnotations.args),contextForEnhancers={componentId:componentAnnotations.id,title:title,kind:title,id:id,name:name,story:name,component:componentAnnotations.component,subcomponents:componentAnnotations.subcomponents,parameters:parameters,initialArgs:passedArgs,argTypes:passedArgTypes};contextForEnhancers.argTypes=argTypesEnhancers.reduce((function(accumulatedArgTypes,enhancer){return enhancer(Object.assign({},contextForEnhancers,{argTypes:accumulatedArgTypes}))}),contextForEnhancers.argTypes);var defaultArgs=Object(getValuesFromArgTypes.a)(contextForEnhancers.argTypes);Object.keys(defaultArgs).length>0&&argTypeDefaultValueWarning();var initialArgsBeforeEnhancers=Object.assign({},defaultArgs,passedArgs);contextForEnhancers.initialArgs=argsEnhancers.reduce((function(accumulatedArgs,enhancer){return Object.assign({},accumulatedArgs,enhancer(Object.assign({},contextForEnhancers,{initialArgs:accumulatedArgs})))}),initialArgsBeforeEnhancers),null!==(_global$FEATURES=window_default.a.FEATURES)&&void 0!==_global$FEATURES&&_global$FEATURES.breakingChangesV7||(contextForEnhancers.parameters=Object.assign({},contextForEnhancers.parameters,{__id:id,globals:projectAnnotations.globals,globalTypes:projectAnnotations.globalTypes,args:contextForEnhancers.initialArgs,argTypes:contextForEnhancers.argTypes}));var applyLoaders=function(){var _ref=function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}(regeneratorRuntime.mark((function _callee(context){var loadResults,loaded;return regeneratorRuntime.wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=2,Promise.all(loaders.map((function(loader){return loader(context)})));case 2:return loadResults=_context.sent,loaded=Object.assign.apply(Object,[{}].concat(_toConsumableArray(loadResults))),_context.abrupt("return",Object.assign({},context,{loaded:loaded}));case 5:case"end":return _context.stop()}}),_callee)})));return function applyLoaders(_x){return _ref.apply(this,arguments)}}(),undecoratedStoryFn=function undecoratedStoryFn(context){var mappedArgs=Object.entries(context.args).reduce((function(acc,_ref2){var _context$argTypes$key,_ref3=_slicedToArray(_ref2,2),key=_ref3[0],val=_ref3[1],mapping=null===(_context$argTypes$key=context.argTypes[key])||void 0===_context$argTypes$key?void 0:_context$argTypes$key.mapping;return acc[key]=mapping&&val in mapping?mapping[val]:val,acc}),{}),includedArgs=Object.entries(mappedArgs).reduce((function(acc,_ref4){var _ref5=_slicedToArray(_ref4,2),key=_ref5[0],val=_ref5[1],argType=context.argTypes[key]||{};return Object(dist.includeConditionalArg)(argType,mappedArgs,context.globals)&&(acc[key]=val),acc}),{}),includedContext=Object.assign({},context,{args:includedArgs}),_context$parameters$p=context.parameters.passArgsFirst;return void 0===_context$parameters$p||_context$parameters$p?render(includedContext.args,includedContext):render(includedContext)},decoratedStoryFn=Object(hooks.b)(applyDecorators)(undecoratedStoryFn,decorators),playFunction=storyAnnotations.play;return Object.freeze(Object.assign({},contextForEnhancers,{originalStoryFn:render,undecoratedStoryFn:undecoratedStoryFn,unboundStoryFn:function unboundStoryFn(context){var _global$FEATURES2,finalContext=context;if(null!==(_global$FEATURES2=window_default.a.FEATURES)&&void 0!==_global$FEATURES2&&_global$FEATURES2.argTypeTargetsV7){var argsByTarget=Object(args.e)(Object.assign({args:context.args},context));finalContext=Object.assign({},context,{allArgs:context.args,argsByTarget:argsByTarget,args:argsByTarget[args.b]||{}})}return decoratedStoryFn(finalContext)},applyLoaders:applyLoaders,playFunction:playFunction}))}},"./node_modules/@storybook/store/dist/esm/filterArgTypes.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return filterArgTypes}));__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.match.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var lodash_pickBy__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/lodash/pickBy.js"),lodash_pickBy__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(lodash_pickBy__WEBPACK_IMPORTED_MODULE_5__),matches=function matches(name,descriptor){return Array.isArray(descriptor)?descriptor.includes(name):name.match(descriptor)},filterArgTypes=function filterArgTypes(argTypes,include,exclude){return include||exclude?argTypes&&lodash_pickBy__WEBPACK_IMPORTED_MODULE_5___default()(argTypes,(function(argType,key){var name=argType.name||key;return(!include||matches(name,include))&&(!exclude||!matches(name,exclude))})):argTypes}},"./node_modules/@storybook/store/dist/esm/parameters.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return combineParameters}));__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js");var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/lodash/isPlainObject.js"),lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_16__);function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||_unsupportedIterableToArray(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){var _i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null==_i)return;var _s,_e,_arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||_unsupportedIterableToArray(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function e(_e){throw _e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var it,err,normalCompletion=!0,didErr=!1;return{s:function s(){it=o[Symbol.iterator]()},n:function n(){var step=it.next();return normalCompletion=step.done,step},e:function e(_e2){didErr=!0,err=_e2},f:function f(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throw err}}}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0?40*red+55:0,g=green>0?40*green+55:0,b=blue>0?40*blue+55:0;colors[c]=function toColorHexString(ref){var _step,results=[],_iterator=_createForOfIteratorHelper(ref);try{for(_iterator.s();!(_step=_iterator.n()).done;){var r=_step.value;results.push(toHexString(r))}}catch(err){_iterator.e(err)}finally{_iterator.f()}return"#"+results.join("")}([r,g,b])}(red,green,blue,colors)}))}))})),range(0,23).forEach((function(gray){var c=gray+232,l=toHexString(10*gray+8);colors[c]="#"+l+l+l})),colors}()};function toHexString(num){for(var str=num.toString(16);str.length<2;)str="0"+str;return str}function generateOutput(stack,token,data,options){var result;return"text"===token?result=function pushText(text,options){if(options.escapeXML)return entities.encodeXML(text);return text}(data,options):"display"===token?result=function handleDisplay(stack,code,options){code=parseInt(code,10);var result,codeMap={"-1":function _(){return"
"},0:function _(){return stack.length&&resetStyles(stack)},1:function _(){return pushTag(stack,"b")},3:function _(){return pushTag(stack,"i")},4:function _(){return pushTag(stack,"u")},8:function _(){return pushStyle(stack,"display:none")},9:function _(){return pushTag(stack,"strike")},22:function _(){return pushStyle(stack,"font-weight:normal;text-decoration:none;font-style:normal")},23:function _(){return closeTag(stack,"i")},24:function _(){return closeTag(stack,"u")},39:function _(){return pushForegroundColor(stack,options.fg)},49:function _(){return pushBackgroundColor(stack,options.bg)},53:function _(){return pushStyle(stack,"text-decoration:overline")}};codeMap[code]?result=codeMap[code]():4"})).join("")}function range(low,high){for(var results=[],j=low;j<=high;j++)results.push(j);return results}function categoryForCode(code){var result=null;return 0===(code=parseInt(code,10))?result="all":1===code?result="bold":2")}function pushStyle(stack,style){return pushTag(stack,"span",style)}function pushForegroundColor(stack,color){return pushTag(stack,"span","color:"+color)}function pushBackgroundColor(stack,color){return pushTag(stack,"span","background-color:"+color)}function closeTag(stack,style){var last;if(stack.slice(-1)[0]===style&&(last=stack.pop()),last)return""}var Filter=function(){function Filter(options){!function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,Filter),(options=options||{}).colors&&(options.colors=Object.assign({},defaults.colors,options.colors)),this.options=Object.assign({},defaults,options),this.stack=[],this.stickyStack=[]}return function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}(Filter,[{key:"toHtml",value:function toHtml(input){var _this=this;input="string"==typeof input?[input]:input;var stack=this.stack,options=this.options,buf=[];return this.stickyStack.forEach((function(element){var output=generateOutput(stack,element.token,element.data,options);output&&buf.push(output)})),function tokenize(text,options,callback){var ansiMatch=!1;function remove(){return""}function newline(m){return options.newline?callback("display",-1):callback("text",m),""}var tokens=[{pattern:/^\x08+/,sub:remove},{pattern:/^\x1b\[[012]?K/,sub:remove},{pattern:/^\x1b\[\(B/,sub:remove},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:function rgb(m){return callback("rgb",m),""}},{pattern:/^\x1b\[38;5;(\d+)m/,sub:function removeXterm256(m,g1){return callback("xterm256",g1),""}},{pattern:/^\n/,sub:newline},{pattern:/^\r+\n/,sub:newline},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:function ansiMess(m,g1){ansiMatch=!0,0===g1.trim().length&&(g1="0");var _step2,_iterator2=_createForOfIteratorHelper(g1=g1.trimRight(";").split(";"));try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var g=_step2.value;callback("display",g)}}catch(err){_iterator2.e(err)}finally{_iterator2.f()}return""}},{pattern:/^\x1b\[\d?J/,sub:remove},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:remove},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:remove},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:function realText(m){return callback("text",m),""}}];function process(handler,i){i>3&&ansiMatch||(ansiMatch=!1,text=text.replace(handler.pattern,handler.sub))}var results1=[],length=text.length;outer:for(;length>0;){for(var i=0,o=0,len=tokens.length;o1?ToIntegerOrInfinity(arguments[1]):0;if($indexOf&&!$isNaN(searchElement)&&$isFinite(fromIndex)&&void 0!==searchElement)return $indexOf.apply(this,arguments)>-1;var O=ToObject(this),length=ToLength(O.length);if(0===length)return!1;for(var k=fromIndex>=0?fromIndex:$max(0,length+fromIndex);k0&&void 0!==arguments[0]&&(depthNum=ToIntegerOrInfinity(arguments[0]));var A=ArraySpeciesCreate(O,0);return FlattenIntoArray(A,O,sourceLen,0,depthNum),A}},"./node_modules/array.prototype.flat/polyfill.js":function(module,exports,__webpack_require__){"use strict";var implementation=__webpack_require__("./node_modules/array.prototype.flat/implementation.js");module.exports=function getPolyfill(){return Array.prototype.flat||implementation}},"./node_modules/array.prototype.flat/shim.js":function(module,exports,__webpack_require__){"use strict";var define=__webpack_require__("./node_modules/define-properties/index.js"),shimUnscopables=__webpack_require__("./node_modules/es-shim-unscopables/index.js"),getPolyfill=__webpack_require__("./node_modules/array.prototype.flat/polyfill.js");module.exports=function shimFlat(){var polyfill=getPolyfill();return define(Array.prototype,{flat:polyfill},{flat:function(){return Array.prototype.flat!==polyfill}}),shimUnscopables("flat"),polyfill}},"./node_modules/array.prototype.flatmap/auto.js":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/array.prototype.flatmap/shim.js")()},"./node_modules/array.prototype.flatmap/implementation.js":function(module,exports,__webpack_require__){"use strict";var ArraySpeciesCreate=__webpack_require__("./node_modules/es-abstract/2023/ArraySpeciesCreate.js"),FlattenIntoArray=__webpack_require__("./node_modules/es-abstract/2023/FlattenIntoArray.js"),Get=__webpack_require__("./node_modules/es-abstract/2023/Get.js"),IsCallable=__webpack_require__("./node_modules/es-abstract/2023/IsCallable.js"),ToLength=__webpack_require__("./node_modules/es-abstract/2023/ToLength.js"),ToObject=__webpack_require__("./node_modules/es-abstract/2023/ToObject.js");module.exports=function flatMap(mapperFunction){var T,O=ToObject(this),sourceLen=ToLength(Get(O,"length"));if(!IsCallable(mapperFunction))throw new TypeError("mapperFunction must be a function");arguments.length>1&&(T=arguments[1]);var A=ArraySpeciesCreate(O,0);return FlattenIntoArray(A,O,sourceLen,0,1,mapperFunction,T),A}},"./node_modules/array.prototype.flatmap/polyfill.js":function(module,exports,__webpack_require__){"use strict";var implementation=__webpack_require__("./node_modules/array.prototype.flatmap/implementation.js");module.exports=function getPolyfill(){return Array.prototype.flatMap||implementation}},"./node_modules/array.prototype.flatmap/shim.js":function(module,exports,__webpack_require__){"use strict";var define=__webpack_require__("./node_modules/define-properties/index.js"),shimUnscopables=__webpack_require__("./node_modules/es-shim-unscopables/index.js"),getPolyfill=__webpack_require__("./node_modules/array.prototype.flatmap/polyfill.js");module.exports=function shimFlatMap(){var polyfill=getPolyfill();return define(Array.prototype,{flatMap:polyfill},{flatMap:function(){return Array.prototype.flatMap!==polyfill}}),shimUnscopables("flatMap"),polyfill}},"./node_modules/array.prototype.map/implementation.js":function(module,exports,__webpack_require__){"use strict";var ArraySpeciesCreate=__webpack_require__("./node_modules/es-abstract/2023/ArraySpeciesCreate.js"),Call=__webpack_require__("./node_modules/es-abstract/2023/Call.js"),CreateDataPropertyOrThrow=__webpack_require__("./node_modules/es-abstract/2023/CreateDataPropertyOrThrow.js"),Get=__webpack_require__("./node_modules/es-abstract/2023/Get.js"),HasProperty=__webpack_require__("./node_modules/es-abstract/2023/HasProperty.js"),IsCallable=__webpack_require__("./node_modules/es-abstract/2023/IsCallable.js"),ToUint32=__webpack_require__("./node_modules/es-abstract/2023/ToUint32.js"),ToObject=__webpack_require__("./node_modules/es-abstract/2023/ToObject.js"),ToString=__webpack_require__("./node_modules/es-abstract/2023/ToString.js"),callBound=__webpack_require__("./node_modules/call-bind/callBound.js"),isString=__webpack_require__("./node_modules/is-string/index.js"),boxedString=Object("a"),splitString="a"!==boxedString[0]||!(0 in boxedString),strSplit=callBound("String.prototype.split");module.exports=function map(callbackfn){var T,O=ToObject(this),self=splitString&&isString(O)?strSplit(O,""):O,len=ToUint32(self.length);if(!IsCallable(callbackfn))throw new TypeError("Array.prototype.map callback must be a function");arguments.length>1&&(T=arguments[1]);for(var A=ArraySpeciesCreate(O,len),k=0;k1)accumulator=arguments[1];else{for(kPresent=!1;!kPresent&&k=0;i--)if(ka[i]!==kb[i])return!1;for(i=ka.length-1;i>=0;i--)if(!_deepEqual(a[key=ka[i]],b[key],strict,actualVisitedObjects))return!1;return!0}(actual,expected,strict,memos))}return strict?actual===expected:actual==expected}function isArguments(object){return"[object Arguments]"==Object.prototype.toString.call(object)}function expectedException(actual,expected){if(!actual||!expected)return!1;if("[object RegExp]"==Object.prototype.toString.call(expected))return expected.test(actual);try{if(actual instanceof expected)return!0}catch(e){}return!Error.isPrototypeOf(expected)&&!0===expected.call({},actual)}function _throws(shouldThrow,block,expected,message){var actual;if("function"!=typeof block)throw new TypeError('"block" argument must be a function');"string"==typeof expected&&(message=expected,expected=null),actual=function _tryBlock(block){var error;try{block()}catch(e){error=e}return error}(block),message=(expected&&expected.name?" ("+expected.name+").":".")+(message?" "+message:"."),shouldThrow&&!actual&&fail(actual,expected,"Missing expected exception"+message);var userProvidedMessage="string"==typeof message,isUnexpectedException=!shouldThrow&&actual&&!expected;if((!shouldThrow&&util.isError(actual)&&userProvidedMessage&&expectedException(actual,expected)||isUnexpectedException)&&fail(actual,expected,"Got unwanted exception"+message),shouldThrow&&actual&&expected&&!expectedException(actual,expected)||!shouldThrow&&actual)throw actual}assert.AssertionError=function AssertionError(options){this.name="AssertionError",this.actual=options.actual,this.expected=options.expected,this.operator=options.operator,options.message?(this.message=options.message,this.generatedMessage=!1):(this.message=function getMessage(self){return truncate(inspect(self.actual),128)+" "+self.operator+" "+truncate(inspect(self.expected),128)}(this),this.generatedMessage=!0);var stackStartFunction=options.stackStartFunction||fail;if(Error.captureStackTrace)Error.captureStackTrace(this,stackStartFunction);else{var err=new Error;if(err.stack){var out=err.stack,fn_name=getName(stackStartFunction),idx=out.indexOf("\n"+fn_name);if(idx>=0){var next_line=out.indexOf("\n",idx+1);out=out.substring(next_line+1)}this.stack=out}}},util.inherits(assert.AssertionError,Error),assert.fail=fail,assert.ok=ok,assert.equal=function equal(actual,expected,message){actual!=expected&&fail(actual,expected,message,"==",assert.equal)},assert.notEqual=function notEqual(actual,expected,message){actual==expected&&fail(actual,expected,message,"!=",assert.notEqual)},assert.deepEqual=function deepEqual(actual,expected,message){_deepEqual(actual,expected,!1)||fail(actual,expected,message,"deepEqual",assert.deepEqual)},assert.deepStrictEqual=function deepStrictEqual(actual,expected,message){_deepEqual(actual,expected,!0)||fail(actual,expected,message,"deepStrictEqual",assert.deepStrictEqual)},assert.notDeepEqual=function notDeepEqual(actual,expected,message){_deepEqual(actual,expected,!1)&&fail(actual,expected,message,"notDeepEqual",assert.notDeepEqual)},assert.notDeepStrictEqual=function notDeepStrictEqual(actual,expected,message){_deepEqual(actual,expected,!0)&&fail(actual,expected,message,"notDeepStrictEqual",notDeepStrictEqual)},assert.strictEqual=function strictEqual(actual,expected,message){actual!==expected&&fail(actual,expected,message,"===",assert.strictEqual)},assert.notStrictEqual=function notStrictEqual(actual,expected,message){actual===expected&&fail(actual,expected,message,"!==",assert.notStrictEqual)},assert.throws=function(block,error,message){_throws(!0,block,error,message)},assert.doesNotThrow=function(block,error,message){_throws(!1,block,error,message)},assert.ifError=function(err){if(err)throw err},assert.strict=objectAssign((function strict(value,message){value||fail(value,!0,message,"==",strict)}),assert,{equal:assert.strictEqual,deepEqual:assert.deepStrictEqual,notEqual:assert.notStrictEqual,notDeepEqual:assert.notDeepStrictEqual}),assert.strict.strict=assert.strict;var objectKeys=Object.keys||function(obj){var keys=[];for(var key in obj)hasOwn.call(obj,key)&&keys.push(key);return keys}}).call(this,__webpack_require__("./node_modules/webpack/buildin/global.js"))},"./node_modules/call-bind/callBound.js":function(module,exports,__webpack_require__){"use strict";var GetIntrinsic=__webpack_require__("./node_modules/get-intrinsic/index.js"),callBind=__webpack_require__("./node_modules/call-bind/index.js"),$indexOf=callBind(GetIntrinsic("String.prototype.indexOf"));module.exports=function callBoundIntrinsic(name,allowMissing){var intrinsic=GetIntrinsic(name,!!allowMissing);return"function"==typeof intrinsic&&$indexOf(name,".prototype.")>-1?callBind(intrinsic):intrinsic}},"./node_modules/call-bind/index.js":function(module,exports,__webpack_require__){"use strict";var bind=__webpack_require__("./node_modules/function-bind/index.js"),GetIntrinsic=__webpack_require__("./node_modules/get-intrinsic/index.js"),setFunctionLength=__webpack_require__("./node_modules/set-function-length/index.js"),$TypeError=__webpack_require__("./node_modules/es-errors/type.js"),$apply=GetIntrinsic("%Function.prototype.apply%"),$call=GetIntrinsic("%Function.prototype.call%"),$reflectApply=GetIntrinsic("%Reflect.apply%",!0)||bind.call($call,$apply),$defineProperty=__webpack_require__("./node_modules/es-define-property/index.js"),$max=GetIntrinsic("%Math.max%");module.exports=function callBind(originalFunction){if("function"!=typeof originalFunction)throw new $TypeError("a function is required");var func=$reflectApply(bind,$call,arguments);return setFunctionLength(func,1+$max(0,originalFunction.length-(arguments.length-1)),!0)};var applyBind=function applyBind(){return $reflectApply(bind,$apply,arguments)};$defineProperty?$defineProperty(module.exports,"apply",{value:applyBind}):module.exports.apply=applyBind},"./node_modules/core-js/actual/symbol/index.js":function(module,exports,__webpack_require__){"use strict";var parent=__webpack_require__("./node_modules/core-js/stable/symbol/index.js");__webpack_require__("./node_modules/core-js/modules/esnext.function.metadata.js"),__webpack_require__("./node_modules/core-js/modules/esnext.symbol.async-dispose.js"),__webpack_require__("./node_modules/core-js/modules/esnext.symbol.dispose.js"),__webpack_require__("./node_modules/core-js/modules/esnext.symbol.metadata.js"),module.exports=parent},"./node_modules/core-js/es/symbol/index.js":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.async-iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.has-instance.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.is-concat-spreadable.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.match.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.match-all.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.search.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.species.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.split.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.unscopables.js"),__webpack_require__("./node_modules/core-js/modules/es.json.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.math.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.reflect.to-string-tag.js");var path=__webpack_require__("./node_modules/core-js/internals/path.js");module.exports=path.Symbol},"./node_modules/core-js/features/symbol/index.js":function(module,exports,__webpack_require__){"use strict";module.exports=__webpack_require__("./node_modules/core-js/full/symbol/index.js")},"./node_modules/core-js/full/symbol/index.js":function(module,exports,__webpack_require__){"use strict";var parent=__webpack_require__("./node_modules/core-js/actual/symbol/index.js");__webpack_require__("./node_modules/core-js/modules/esnext.symbol.is-registered-symbol.js"),__webpack_require__("./node_modules/core-js/modules/esnext.symbol.is-well-known-symbol.js"),__webpack_require__("./node_modules/core-js/modules/esnext.symbol.matcher.js"),__webpack_require__("./node_modules/core-js/modules/esnext.symbol.observable.js"),__webpack_require__("./node_modules/core-js/modules/esnext.symbol.is-registered.js"),__webpack_require__("./node_modules/core-js/modules/esnext.symbol.is-well-known.js"),__webpack_require__("./node_modules/core-js/modules/esnext.symbol.metadata-key.js"),__webpack_require__("./node_modules/core-js/modules/esnext.symbol.pattern-match.js"),__webpack_require__("./node_modules/core-js/modules/esnext.symbol.replace-all.js"),module.exports=parent},"./node_modules/core-js/internals/a-callable.js":function(module,exports,__webpack_require__){"use strict";var isCallable=__webpack_require__("./node_modules/core-js/internals/is-callable.js"),tryToString=__webpack_require__("./node_modules/core-js/internals/try-to-string.js"),$TypeError=TypeError;module.exports=function(argument){if(isCallable(argument))return argument;throw new $TypeError(tryToString(argument)+" is not a function")}},"./node_modules/core-js/internals/a-constructor.js":function(module,exports,__webpack_require__){"use strict";var isConstructor=__webpack_require__("./node_modules/core-js/internals/is-constructor.js"),tryToString=__webpack_require__("./node_modules/core-js/internals/try-to-string.js"),$TypeError=TypeError;module.exports=function(argument){if(isConstructor(argument))return argument;throw new $TypeError(tryToString(argument)+" is not a constructor")}},"./node_modules/core-js/internals/a-possible-prototype.js":function(module,exports,__webpack_require__){"use strict";var isPossiblePrototype=__webpack_require__("./node_modules/core-js/internals/is-possible-prototype.js"),$String=String,$TypeError=TypeError;module.exports=function(argument){if(isPossiblePrototype(argument))return argument;throw new $TypeError("Can't set "+$String(argument)+" as a prototype")}},"./node_modules/core-js/internals/add-to-unscopables.js":function(module,exports,__webpack_require__){"use strict";var wellKnownSymbol=__webpack_require__("./node_modules/core-js/internals/well-known-symbol.js"),create=__webpack_require__("./node_modules/core-js/internals/object-create.js"),defineProperty=__webpack_require__("./node_modules/core-js/internals/object-define-property.js").f,UNSCOPABLES=wellKnownSymbol("unscopables"),ArrayPrototype=Array.prototype;void 0===ArrayPrototype[UNSCOPABLES]&&defineProperty(ArrayPrototype,UNSCOPABLES,{configurable:!0,value:create(null)}),module.exports=function(key){ArrayPrototype[UNSCOPABLES][key]=!0}},"./node_modules/core-js/internals/advance-string-index.js":function(module,exports,__webpack_require__){"use strict";var charAt=__webpack_require__("./node_modules/core-js/internals/string-multibyte.js").charAt;module.exports=function(S,index,unicode){return index+(unicode?charAt(S,index).length:1)}},"./node_modules/core-js/internals/an-instance.js":function(module,exports,__webpack_require__){"use strict";var isPrototypeOf=__webpack_require__("./node_modules/core-js/internals/object-is-prototype-of.js"),$TypeError=TypeError;module.exports=function(it,Prototype){if(isPrototypeOf(Prototype,it))return it;throw new $TypeError("Incorrect invocation")}},"./node_modules/core-js/internals/an-object.js":function(module,exports,__webpack_require__){"use strict";var isObject=__webpack_require__("./node_modules/core-js/internals/is-object.js"),$String=String,$TypeError=TypeError;module.exports=function(argument){if(isObject(argument))return argument;throw new $TypeError($String(argument)+" is not an object")}},"./node_modules/core-js/internals/array-buffer-non-extensible.js":function(module,exports,__webpack_require__){"use strict";var fails=__webpack_require__("./node_modules/core-js/internals/fails.js");module.exports=fails((function(){if("function"==typeof ArrayBuffer){var buffer=new ArrayBuffer(8);Object.isExtensible(buffer)&&Object.defineProperty(buffer,"a",{value:8})}}))},"./node_modules/core-js/internals/array-fill.js":function(module,exports,__webpack_require__){"use strict";var toObject=__webpack_require__("./node_modules/core-js/internals/to-object.js"),toAbsoluteIndex=__webpack_require__("./node_modules/core-js/internals/to-absolute-index.js"),lengthOfArrayLike=__webpack_require__("./node_modules/core-js/internals/length-of-array-like.js");module.exports=function fill(value){for(var O=toObject(this),length=lengthOfArrayLike(O),argumentsLength=arguments.length,index=toAbsoluteIndex(argumentsLength>1?arguments[1]:void 0,length),end=argumentsLength>2?arguments[2]:void 0,endPos=void 0===end?length:toAbsoluteIndex(end,length);endPos>index;)O[index++]=value;return O}},"./node_modules/core-js/internals/array-for-each.js":function(module,exports,__webpack_require__){"use strict";var $forEach=__webpack_require__("./node_modules/core-js/internals/array-iteration.js").forEach,STRICT_METHOD=__webpack_require__("./node_modules/core-js/internals/array-method-is-strict.js")("forEach");module.exports=STRICT_METHOD?[].forEach:function forEach(callbackfn){return $forEach(this,callbackfn,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-from.js":function(module,exports,__webpack_require__){"use strict";var bind=__webpack_require__("./node_modules/core-js/internals/function-bind-context.js"),call=__webpack_require__("./node_modules/core-js/internals/function-call.js"),toObject=__webpack_require__("./node_modules/core-js/internals/to-object.js"),callWithSafeIterationClosing=__webpack_require__("./node_modules/core-js/internals/call-with-safe-iteration-closing.js"),isArrayIteratorMethod=__webpack_require__("./node_modules/core-js/internals/is-array-iterator-method.js"),isConstructor=__webpack_require__("./node_modules/core-js/internals/is-constructor.js"),lengthOfArrayLike=__webpack_require__("./node_modules/core-js/internals/length-of-array-like.js"),createProperty=__webpack_require__("./node_modules/core-js/internals/create-property.js"),getIterator=__webpack_require__("./node_modules/core-js/internals/get-iterator.js"),getIteratorMethod=__webpack_require__("./node_modules/core-js/internals/get-iterator-method.js"),$Array=Array;module.exports=function from(arrayLike){var O=toObject(arrayLike),IS_CONSTRUCTOR=isConstructor(this),argumentsLength=arguments.length,mapfn=argumentsLength>1?arguments[1]:void 0,mapping=void 0!==mapfn;mapping&&(mapfn=bind(mapfn,argumentsLength>2?arguments[2]:void 0));var length,result,step,iterator,next,value,iteratorMethod=getIteratorMethod(O),index=0;if(!iteratorMethod||this===$Array&&isArrayIteratorMethod(iteratorMethod))for(length=lengthOfArrayLike(O),result=IS_CONSTRUCTOR?new this(length):$Array(length);length>index;index++)value=mapping?mapfn(O[index],index):O[index],createProperty(result,index,value);else for(next=(iterator=getIterator(O,iteratorMethod)).next,result=IS_CONSTRUCTOR?new this:[];!(step=call(next,iterator)).done;index++)value=mapping?callWithSafeIterationClosing(iterator,mapfn,[step.value,index],!0):step.value,createProperty(result,index,value);return result.length=index,result}},"./node_modules/core-js/internals/array-includes.js":function(module,exports,__webpack_require__){"use strict";var toIndexedObject=__webpack_require__("./node_modules/core-js/internals/to-indexed-object.js"),toAbsoluteIndex=__webpack_require__("./node_modules/core-js/internals/to-absolute-index.js"),lengthOfArrayLike=__webpack_require__("./node_modules/core-js/internals/length-of-array-like.js"),createMethod=function(IS_INCLUDES){return function($this,el,fromIndex){var O=toIndexedObject($this),length=lengthOfArrayLike(O);if(0===length)return!IS_INCLUDES&&-1;var value,index=toAbsoluteIndex(fromIndex,length);if(IS_INCLUDES&&el!=el){for(;length>index;)if((value=O[index++])!=value)return!0}else for(;length>index;index++)if((IS_INCLUDES||index in O)&&O[index]===el)return IS_INCLUDES||index||0;return!IS_INCLUDES&&-1}};module.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(module,exports,__webpack_require__){"use strict";var bind=__webpack_require__("./node_modules/core-js/internals/function-bind-context.js"),uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),IndexedObject=__webpack_require__("./node_modules/core-js/internals/indexed-object.js"),toObject=__webpack_require__("./node_modules/core-js/internals/to-object.js"),lengthOfArrayLike=__webpack_require__("./node_modules/core-js/internals/length-of-array-like.js"),arraySpeciesCreate=__webpack_require__("./node_modules/core-js/internals/array-species-create.js"),push=uncurryThis([].push),createMethod=function(TYPE){var IS_MAP=1===TYPE,IS_FILTER=2===TYPE,IS_SOME=3===TYPE,IS_EVERY=4===TYPE,IS_FIND_INDEX=6===TYPE,IS_FILTER_REJECT=7===TYPE,NO_HOLES=5===TYPE||IS_FIND_INDEX;return function($this,callbackfn,that,specificCreate){for(var value,result,O=toObject($this),self=IndexedObject(O),length=lengthOfArrayLike(self),boundFunction=bind(callbackfn,that),index=0,create=specificCreate||arraySpeciesCreate,target=IS_MAP?create($this,length):IS_FILTER||IS_FILTER_REJECT?create($this,0):void 0;length>index;index++)if((NO_HOLES||index in self)&&(result=boundFunction(value=self[index],index,O),TYPE))if(IS_MAP)target[index]=result;else if(result)switch(TYPE){case 3:return!0;case 5:return value;case 6:return index;case 2:push(target,value)}else switch(TYPE){case 4:return!1;case 7:push(target,value)}return IS_FIND_INDEX?-1:IS_SOME||IS_EVERY?IS_EVERY:target}};module.exports={forEach:createMethod(0),map:createMethod(1),filter:createMethod(2),some:createMethod(3),every:createMethod(4),find:createMethod(5),findIndex:createMethod(6),filterReject:createMethod(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(module,exports,__webpack_require__){"use strict";var fails=__webpack_require__("./node_modules/core-js/internals/fails.js"),wellKnownSymbol=__webpack_require__("./node_modules/core-js/internals/well-known-symbol.js"),V8_VERSION=__webpack_require__("./node_modules/core-js/internals/engine-v8-version.js"),SPECIES=wellKnownSymbol("species");module.exports=function(METHOD_NAME){return V8_VERSION>=51||!fails((function(){var array=[];return(array.constructor={})[SPECIES]=function(){return{foo:1}},1!==array[METHOD_NAME](Boolean).foo}))}},"./node_modules/core-js/internals/array-method-is-strict.js":function(module,exports,__webpack_require__){"use strict";var fails=__webpack_require__("./node_modules/core-js/internals/fails.js");module.exports=function(METHOD_NAME,argument){var method=[][METHOD_NAME];return!!method&&fails((function(){method.call(null,argument||function(){return 1},1)}))}},"./node_modules/core-js/internals/array-set-length.js":function(module,exports,__webpack_require__){"use strict";var DESCRIPTORS=__webpack_require__("./node_modules/core-js/internals/descriptors.js"),isArray=__webpack_require__("./node_modules/core-js/internals/is-array.js"),$TypeError=TypeError,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,SILENT_ON_NON_WRITABLE_LENGTH_SET=DESCRIPTORS&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(error){return error instanceof TypeError}}();module.exports=SILENT_ON_NON_WRITABLE_LENGTH_SET?function(O,length){if(isArray(O)&&!getOwnPropertyDescriptor(O,"length").writable)throw new $TypeError("Cannot set read only .length");return O.length=length}:function(O,length){return O.length=length}},"./node_modules/core-js/internals/array-slice.js":function(module,exports,__webpack_require__){"use strict";var uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js");module.exports=uncurryThis([].slice)},"./node_modules/core-js/internals/array-sort.js":function(module,exports,__webpack_require__){"use strict";var arraySlice=__webpack_require__("./node_modules/core-js/internals/array-slice.js"),floor=Math.floor,sort=function(array,comparefn){var length=array.length;if(length<8)for(var element,j,i=1;i0;)array[j]=array[--j];j!==i++&&(array[j]=element)}else for(var middle=floor(length/2),left=sort(arraySlice(array,0,middle),comparefn),right=sort(arraySlice(array,middle),comparefn),llength=left.length,rlength=right.length,lindex=0,rindex=0;lindex1?arguments[1]:void 0);entry=entry?entry.next:state.first;)for(boundFunction(entry.value,entry.key,this);entry&&entry.removed;)entry=entry.previous},has:function has(key){return!!getEntry(this,key)}}),defineBuiltIns(Prototype,IS_MAP?{get:function get(key){var entry=getEntry(this,key);return entry&&entry.value},set:function set(key,value){return define(this,0===key?0:key,value)}}:{add:function add(value){return define(this,value=0===value?0:value,value)}}),DESCRIPTORS&&defineBuiltInAccessor(Prototype,"size",{configurable:!0,get:function(){return getInternalState(this).size}}),Constructor},setStrong:function(Constructor,CONSTRUCTOR_NAME,IS_MAP){var ITERATOR_NAME=CONSTRUCTOR_NAME+" Iterator",getInternalCollectionState=internalStateGetterFor(CONSTRUCTOR_NAME),getInternalIteratorState=internalStateGetterFor(ITERATOR_NAME);defineIterator(Constructor,CONSTRUCTOR_NAME,(function(iterated,kind){setInternalState(this,{type:ITERATOR_NAME,target:iterated,state:getInternalCollectionState(iterated),kind:kind,last:void 0})}),(function(){for(var state=getInternalIteratorState(this),kind=state.kind,entry=state.last;entry&&entry.removed;)entry=entry.previous;return state.target&&(state.last=entry=entry?entry.next:state.state.first)?createIterResultObject("keys"===kind?entry.key:"values"===kind?entry.value:[entry.key,entry.value],!1):(state.target=void 0,createIterResultObject(void 0,!0))}),IS_MAP?"entries":"values",!IS_MAP,!0),setSpecies(CONSTRUCTOR_NAME)}}},"./node_modules/core-js/internals/collection-weak.js":function(module,exports,__webpack_require__){"use strict";var uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),defineBuiltIns=__webpack_require__("./node_modules/core-js/internals/define-built-ins.js"),getWeakData=__webpack_require__("./node_modules/core-js/internals/internal-metadata.js").getWeakData,anInstance=__webpack_require__("./node_modules/core-js/internals/an-instance.js"),anObject=__webpack_require__("./node_modules/core-js/internals/an-object.js"),isNullOrUndefined=__webpack_require__("./node_modules/core-js/internals/is-null-or-undefined.js"),isObject=__webpack_require__("./node_modules/core-js/internals/is-object.js"),iterate=__webpack_require__("./node_modules/core-js/internals/iterate.js"),ArrayIterationModule=__webpack_require__("./node_modules/core-js/internals/array-iteration.js"),hasOwn=__webpack_require__("./node_modules/core-js/internals/has-own-property.js"),InternalStateModule=__webpack_require__("./node_modules/core-js/internals/internal-state.js"),setInternalState=InternalStateModule.set,internalStateGetterFor=InternalStateModule.getterFor,find=ArrayIterationModule.find,findIndex=ArrayIterationModule.findIndex,splice=uncurryThis([].splice),id=0,uncaughtFrozenStore=function(state){return state.frozen||(state.frozen=new UncaughtFrozenStore)},UncaughtFrozenStore=function(){this.entries=[]},findUncaughtFrozen=function(store,key){return find(store.entries,(function(it){return it[0]===key}))};UncaughtFrozenStore.prototype={get:function(key){var entry=findUncaughtFrozen(this,key);if(entry)return entry[1]},has:function(key){return!!findUncaughtFrozen(this,key)},set:function(key,value){var entry=findUncaughtFrozen(this,key);entry?entry[1]=value:this.entries.push([key,value])},delete:function(key){var index=findIndex(this.entries,(function(it){return it[0]===key}));return~index&&splice(this.entries,index,1),!!~index}},module.exports={getConstructor:function(wrapper,CONSTRUCTOR_NAME,IS_MAP,ADDER){var Constructor=wrapper((function(that,iterable){anInstance(that,Prototype),setInternalState(that,{type:CONSTRUCTOR_NAME,id:id++,frozen:void 0}),isNullOrUndefined(iterable)||iterate(iterable,that[ADDER],{that:that,AS_ENTRIES:IS_MAP})})),Prototype=Constructor.prototype,getInternalState=internalStateGetterFor(CONSTRUCTOR_NAME),define=function(that,key,value){var state=getInternalState(that),data=getWeakData(anObject(key),!0);return!0===data?uncaughtFrozenStore(state).set(key,value):data[state.id]=value,that};return defineBuiltIns(Prototype,{delete:function(key){var state=getInternalState(this);if(!isObject(key))return!1;var data=getWeakData(key);return!0===data?uncaughtFrozenStore(state).delete(key):data&&hasOwn(data,state.id)&&delete data[state.id]},has:function has(key){var state=getInternalState(this);if(!isObject(key))return!1;var data=getWeakData(key);return!0===data?uncaughtFrozenStore(state).has(key):data&&hasOwn(data,state.id)}}),defineBuiltIns(Prototype,IS_MAP?{get:function get(key){var state=getInternalState(this);if(isObject(key)){var data=getWeakData(key);return!0===data?uncaughtFrozenStore(state).get(key):data?data[state.id]:void 0}},set:function set(key,value){return define(this,key,value)}}:{add:function add(value){return define(this,value,!0)}}),Constructor}}},"./node_modules/core-js/internals/collection.js":function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__("./node_modules/core-js/internals/export.js"),global=__webpack_require__("./node_modules/core-js/internals/global.js"),uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),isForced=__webpack_require__("./node_modules/core-js/internals/is-forced.js"),defineBuiltIn=__webpack_require__("./node_modules/core-js/internals/define-built-in.js"),InternalMetadataModule=__webpack_require__("./node_modules/core-js/internals/internal-metadata.js"),iterate=__webpack_require__("./node_modules/core-js/internals/iterate.js"),anInstance=__webpack_require__("./node_modules/core-js/internals/an-instance.js"),isCallable=__webpack_require__("./node_modules/core-js/internals/is-callable.js"),isNullOrUndefined=__webpack_require__("./node_modules/core-js/internals/is-null-or-undefined.js"),isObject=__webpack_require__("./node_modules/core-js/internals/is-object.js"),fails=__webpack_require__("./node_modules/core-js/internals/fails.js"),checkCorrectnessOfIteration=__webpack_require__("./node_modules/core-js/internals/check-correctness-of-iteration.js"),setToStringTag=__webpack_require__("./node_modules/core-js/internals/set-to-string-tag.js"),inheritIfRequired=__webpack_require__("./node_modules/core-js/internals/inherit-if-required.js");module.exports=function(CONSTRUCTOR_NAME,wrapper,common){var IS_MAP=-1!==CONSTRUCTOR_NAME.indexOf("Map"),IS_WEAK=-1!==CONSTRUCTOR_NAME.indexOf("Weak"),ADDER=IS_MAP?"set":"add",NativeConstructor=global[CONSTRUCTOR_NAME],NativePrototype=NativeConstructor&&NativeConstructor.prototype,Constructor=NativeConstructor,exported={},fixMethod=function(KEY){var uncurriedNativeMethod=uncurryThis(NativePrototype[KEY]);defineBuiltIn(NativePrototype,KEY,"add"===KEY?function add(value){return uncurriedNativeMethod(this,0===value?0:value),this}:"delete"===KEY?function(key){return!(IS_WEAK&&!isObject(key))&&uncurriedNativeMethod(this,0===key?0:key)}:"get"===KEY?function get(key){return IS_WEAK&&!isObject(key)?void 0:uncurriedNativeMethod(this,0===key?0:key)}:"has"===KEY?function has(key){return!(IS_WEAK&&!isObject(key))&&uncurriedNativeMethod(this,0===key?0:key)}:function set(key,value){return uncurriedNativeMethod(this,0===key?0:key,value),this})};if(isForced(CONSTRUCTOR_NAME,!isCallable(NativeConstructor)||!(IS_WEAK||NativePrototype.forEach&&!fails((function(){(new NativeConstructor).entries().next()})))))Constructor=common.getConstructor(wrapper,CONSTRUCTOR_NAME,IS_MAP,ADDER),InternalMetadataModule.enable();else if(isForced(CONSTRUCTOR_NAME,!0)){var instance=new Constructor,HASNT_CHAINING=instance[ADDER](IS_WEAK?{}:-0,1)!==instance,THROWS_ON_PRIMITIVES=fails((function(){instance.has(1)})),ACCEPT_ITERABLES=checkCorrectnessOfIteration((function(iterable){new NativeConstructor(iterable)})),BUGGY_ZERO=!IS_WEAK&&fails((function(){for(var $instance=new NativeConstructor,index=5;index--;)$instance[ADDER](index,index);return!$instance.has(-0)}));ACCEPT_ITERABLES||((Constructor=wrapper((function(dummy,iterable){anInstance(dummy,NativePrototype);var that=inheritIfRequired(new NativeConstructor,dummy,Constructor);return isNullOrUndefined(iterable)||iterate(iterable,that[ADDER],{that:that,AS_ENTRIES:IS_MAP}),that}))).prototype=NativePrototype,NativePrototype.constructor=Constructor),(THROWS_ON_PRIMITIVES||BUGGY_ZERO)&&(fixMethod("delete"),fixMethod("has"),IS_MAP&&fixMethod("get")),(BUGGY_ZERO||HASNT_CHAINING)&&fixMethod(ADDER),IS_WEAK&&NativePrototype.clear&&delete NativePrototype.clear}return exported[CONSTRUCTOR_NAME]=Constructor,$({global:!0,constructor:!0,forced:Constructor!==NativeConstructor},exported),setToStringTag(Constructor,CONSTRUCTOR_NAME),IS_WEAK||common.setStrong(Constructor,CONSTRUCTOR_NAME,IS_MAP),Constructor}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(module,exports,__webpack_require__){"use strict";var hasOwn=__webpack_require__("./node_modules/core-js/internals/has-own-property.js"),ownKeys=__webpack_require__("./node_modules/core-js/internals/own-keys.js"),getOwnPropertyDescriptorModule=__webpack_require__("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),definePropertyModule=__webpack_require__("./node_modules/core-js/internals/object-define-property.js");module.exports=function(target,source,exceptions){for(var keys=ownKeys(source),defineProperty=definePropertyModule.f,getOwnPropertyDescriptor=getOwnPropertyDescriptorModule.f,i=0;i9007199254740991)throw $TypeError("Maximum allowed index exceeded");return it}},"./node_modules/core-js/internals/dom-iterables.js":function(module,exports,__webpack_require__){"use strict";module.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/dom-token-list-prototype.js":function(module,exports,__webpack_require__){"use strict";var classList=__webpack_require__("./node_modules/core-js/internals/document-create-element.js")("span").classList,DOMTokenListPrototype=classList&&classList.constructor&&classList.constructor.prototype;module.exports=DOMTokenListPrototype===Object.prototype?void 0:DOMTokenListPrototype},"./node_modules/core-js/internals/engine-ff-version.js":function(module,exports,__webpack_require__){"use strict";var firefox=__webpack_require__("./node_modules/core-js/internals/engine-user-agent.js").match(/firefox\/(\d+)/i);module.exports=!!firefox&&+firefox[1]},"./node_modules/core-js/internals/engine-is-browser.js":function(module,exports,__webpack_require__){"use strict";var IS_DENO=__webpack_require__("./node_modules/core-js/internals/engine-is-deno.js"),IS_NODE=__webpack_require__("./node_modules/core-js/internals/engine-is-node.js");module.exports=!IS_DENO&&!IS_NODE&&"object"==typeof window&&"object"==typeof document},"./node_modules/core-js/internals/engine-is-bun.js":function(module,exports,__webpack_require__){"use strict";module.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},"./node_modules/core-js/internals/engine-is-deno.js":function(module,exports,__webpack_require__){"use strict";module.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},"./node_modules/core-js/internals/engine-is-ie-or-edge.js":function(module,exports,__webpack_require__){"use strict";var UA=__webpack_require__("./node_modules/core-js/internals/engine-user-agent.js");module.exports=/MSIE|Trident/.test(UA)},"./node_modules/core-js/internals/engine-is-ios-pebble.js":function(module,exports,__webpack_require__){"use strict";var userAgent=__webpack_require__("./node_modules/core-js/internals/engine-user-agent.js");module.exports=/ipad|iphone|ipod/i.test(userAgent)&&"undefined"!=typeof Pebble},"./node_modules/core-js/internals/engine-is-ios.js":function(module,exports,__webpack_require__){"use strict";var userAgent=__webpack_require__("./node_modules/core-js/internals/engine-user-agent.js");module.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent)},"./node_modules/core-js/internals/engine-is-node.js":function(module,exports,__webpack_require__){"use strict";var global=__webpack_require__("./node_modules/core-js/internals/global.js"),classof=__webpack_require__("./node_modules/core-js/internals/classof-raw.js");module.exports="process"===classof(global.process)},"./node_modules/core-js/internals/engine-is-webos-webkit.js":function(module,exports,__webpack_require__){"use strict";var userAgent=__webpack_require__("./node_modules/core-js/internals/engine-user-agent.js");module.exports=/web0s(?!.*chrome)/i.test(userAgent)},"./node_modules/core-js/internals/engine-user-agent.js":function(module,exports,__webpack_require__){"use strict";module.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},"./node_modules/core-js/internals/engine-v8-version.js":function(module,exports,__webpack_require__){"use strict";var match,version,global=__webpack_require__("./node_modules/core-js/internals/global.js"),userAgent=__webpack_require__("./node_modules/core-js/internals/engine-user-agent.js"),process=global.process,Deno=global.Deno,versions=process&&process.versions||Deno&&Deno.version,v8=versions&&versions.v8;v8&&(version=(match=v8.split("."))[0]>0&&match[0]<4?1:+(match[0]+match[1])),!version&&userAgent&&(!(match=userAgent.match(/Edge\/(\d+)/))||match[1]>=74)&&(match=userAgent.match(/Chrome\/(\d+)/))&&(version=+match[1]),module.exports=version},"./node_modules/core-js/internals/engine-webkit-version.js":function(module,exports,__webpack_require__){"use strict";var webkit=__webpack_require__("./node_modules/core-js/internals/engine-user-agent.js").match(/AppleWebKit\/(\d+)\./);module.exports=!!webkit&&+webkit[1]},"./node_modules/core-js/internals/enum-bug-keys.js":function(module,exports,__webpack_require__){"use strict";module.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(module,exports,__webpack_require__){"use strict";var global=__webpack_require__("./node_modules/core-js/internals/global.js"),getOwnPropertyDescriptor=__webpack_require__("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,createNonEnumerableProperty=__webpack_require__("./node_modules/core-js/internals/create-non-enumerable-property.js"),defineBuiltIn=__webpack_require__("./node_modules/core-js/internals/define-built-in.js"),defineGlobalProperty=__webpack_require__("./node_modules/core-js/internals/define-global-property.js"),copyConstructorProperties=__webpack_require__("./node_modules/core-js/internals/copy-constructor-properties.js"),isForced=__webpack_require__("./node_modules/core-js/internals/is-forced.js");module.exports=function(options,source){var target,key,targetProperty,sourceProperty,descriptor,TARGET=options.target,GLOBAL=options.global,STATIC=options.stat;if(target=GLOBAL?global:STATIC?global[TARGET]||defineGlobalProperty(TARGET,{}):global[TARGET]&&global[TARGET].prototype)for(key in source){if(sourceProperty=source[key],targetProperty=options.dontCallGetSet?(descriptor=getOwnPropertyDescriptor(target,key))&&descriptor.value:target[key],!isForced(GLOBAL?key:TARGET+(STATIC?".":"#")+key,options.forced)&&void 0!==targetProperty){if(typeof sourceProperty==typeof targetProperty)continue;copyConstructorProperties(sourceProperty,targetProperty)}(options.sham||targetProperty&&targetProperty.sham)&&createNonEnumerableProperty(sourceProperty,"sham",!0),defineBuiltIn(target,key,sourceProperty,options)}}},"./node_modules/core-js/internals/fails.js":function(module,exports,__webpack_require__){"use strict";module.exports=function(exec){try{return!!exec()}catch(error){return!0}}},"./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js":function(module,exports,__webpack_require__){"use strict";__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js");var call=__webpack_require__("./node_modules/core-js/internals/function-call.js"),defineBuiltIn=__webpack_require__("./node_modules/core-js/internals/define-built-in.js"),regexpExec=__webpack_require__("./node_modules/core-js/internals/regexp-exec.js"),fails=__webpack_require__("./node_modules/core-js/internals/fails.js"),wellKnownSymbol=__webpack_require__("./node_modules/core-js/internals/well-known-symbol.js"),createNonEnumerableProperty=__webpack_require__("./node_modules/core-js/internals/create-non-enumerable-property.js"),SPECIES=wellKnownSymbol("species"),RegExpPrototype=RegExp.prototype;module.exports=function(KEY,exec,FORCED,SHAM){var SYMBOL=wellKnownSymbol(KEY),DELEGATES_TO_SYMBOL=!fails((function(){var O={};return O[SYMBOL]=function(){return 7},7!==""[KEY](O)})),DELEGATES_TO_EXEC=DELEGATES_TO_SYMBOL&&!fails((function(){var execCalled=!1,re=/a/;return"split"===KEY&&((re={}).constructor={},re.constructor[SPECIES]=function(){return re},re.flags="",re[SYMBOL]=/./[SYMBOL]),re.exec=function(){return execCalled=!0,null},re[SYMBOL](""),!execCalled}));if(!DELEGATES_TO_SYMBOL||!DELEGATES_TO_EXEC||FORCED){var nativeRegExpMethod=/./[SYMBOL],methods=exec(SYMBOL,""[KEY],(function(nativeMethod,regexp,str,arg2,forceStringMethod){var $exec=regexp.exec;return $exec===regexpExec||$exec===RegExpPrototype.exec?DELEGATES_TO_SYMBOL&&!forceStringMethod?{done:!0,value:call(nativeRegExpMethod,regexp,str,arg2)}:{done:!0,value:call(nativeMethod,str,regexp,arg2)}:{done:!1}}));defineBuiltIn(String.prototype,KEY,methods[0]),defineBuiltIn(RegExpPrototype,SYMBOL,methods[1])}SHAM&&createNonEnumerableProperty(RegExpPrototype[SYMBOL],"sham",!0)}},"./node_modules/core-js/internals/flatten-into-array.js":function(module,exports,__webpack_require__){"use strict";var isArray=__webpack_require__("./node_modules/core-js/internals/is-array.js"),lengthOfArrayLike=__webpack_require__("./node_modules/core-js/internals/length-of-array-like.js"),doesNotExceedSafeInteger=__webpack_require__("./node_modules/core-js/internals/does-not-exceed-safe-integer.js"),bind=__webpack_require__("./node_modules/core-js/internals/function-bind-context.js"),flattenIntoArray=function(target,original,source,sourceLen,start,depth,mapper,thisArg){for(var element,elementLen,targetIndex=start,sourceIndex=0,mapFn=!!mapper&&bind(mapper,thisArg);sourceIndex0&&isArray(element)?(elementLen=lengthOfArrayLike(element),targetIndex=flattenIntoArray(target,original,element,elementLen,targetIndex,depth-1)-1):(doesNotExceedSafeInteger(targetIndex+1),target[targetIndex]=element),targetIndex++),sourceIndex++;return targetIndex};module.exports=flattenIntoArray},"./node_modules/core-js/internals/freezing.js":function(module,exports,__webpack_require__){"use strict";var fails=__webpack_require__("./node_modules/core-js/internals/fails.js");module.exports=!fails((function(){return Object.isExtensible(Object.preventExtensions({}))}))},"./node_modules/core-js/internals/function-apply.js":function(module,exports,__webpack_require__){"use strict";var NATIVE_BIND=__webpack_require__("./node_modules/core-js/internals/function-bind-native.js"),FunctionPrototype=Function.prototype,apply=FunctionPrototype.apply,call=FunctionPrototype.call;module.exports="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND?call.bind(apply):function(){return call.apply(apply,arguments)})},"./node_modules/core-js/internals/function-bind-context.js":function(module,exports,__webpack_require__){"use strict";var uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this-clause.js"),aCallable=__webpack_require__("./node_modules/core-js/internals/a-callable.js"),NATIVE_BIND=__webpack_require__("./node_modules/core-js/internals/function-bind-native.js"),bind=uncurryThis(uncurryThis.bind);module.exports=function(fn,that){return aCallable(fn),void 0===that?fn:NATIVE_BIND?bind(fn,that):function(){return fn.apply(that,arguments)}}},"./node_modules/core-js/internals/function-bind-native.js":function(module,exports,__webpack_require__){"use strict";var fails=__webpack_require__("./node_modules/core-js/internals/fails.js");module.exports=!fails((function(){var test=function(){}.bind();return"function"!=typeof test||test.hasOwnProperty("prototype")}))},"./node_modules/core-js/internals/function-bind.js":function(module,exports,__webpack_require__){"use strict";var uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),aCallable=__webpack_require__("./node_modules/core-js/internals/a-callable.js"),isObject=__webpack_require__("./node_modules/core-js/internals/is-object.js"),hasOwn=__webpack_require__("./node_modules/core-js/internals/has-own-property.js"),arraySlice=__webpack_require__("./node_modules/core-js/internals/array-slice.js"),NATIVE_BIND=__webpack_require__("./node_modules/core-js/internals/function-bind-native.js"),$Function=Function,concat=uncurryThis([].concat),join=uncurryThis([].join),factories={};module.exports=NATIVE_BIND?$Function.bind:function bind(that){var F=aCallable(this),Prototype=F.prototype,partArgs=arraySlice(arguments,1),boundFunction=function bound(){var args=concat(partArgs,arraySlice(arguments));return this instanceof boundFunction?function(C,argsLength,args){if(!hasOwn(factories,argsLength)){for(var list=[],i=0;i]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&'`]|\d{1,2})/g;module.exports=function(matched,str,position,captures,namedCaptures,replacement){var tailPos=position+matched.length,m=captures.length,symbols=SUBSTITUTION_SYMBOLS_NO_NAMED;return void 0!==namedCaptures&&(namedCaptures=toObject(namedCaptures),symbols=SUBSTITUTION_SYMBOLS),replace(replacement,symbols,(function(match,ch){var capture;switch(charAt(ch,0)){case"$":return"$";case"&":return matched;case"`":return stringSlice(str,0,position);case"'":return stringSlice(str,tailPos);case"<":capture=namedCaptures[stringSlice(ch,1,-1)];break;default:var n=+ch;if(0===n)return match;if(n>m){var f=floor(n/10);return 0===f?match:f<=m?void 0===captures[f-1]?charAt(ch,1):captures[f-1]+charAt(ch,1):match}capture=captures[n-1]}return void 0===capture?"":capture}))}},"./node_modules/core-js/internals/global.js":function(module,exports,__webpack_require__){"use strict";(function(global){var check=function(it){return it&&it.Math===Math&&it};module.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof global&&global)||check("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,__webpack_require__("./node_modules/webpack/buildin/global.js"))},"./node_modules/core-js/internals/has-own-property.js":function(module,exports,__webpack_require__){"use strict";var uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),toObject=__webpack_require__("./node_modules/core-js/internals/to-object.js"),hasOwnProperty=uncurryThis({}.hasOwnProperty);module.exports=Object.hasOwn||function hasOwn(it,key){return hasOwnProperty(toObject(it),key)}},"./node_modules/core-js/internals/hidden-keys.js":function(module,exports,__webpack_require__){"use strict";module.exports={}},"./node_modules/core-js/internals/host-report-errors.js":function(module,exports,__webpack_require__){"use strict";module.exports=function(a,b){try{1===arguments.length?console.error(a):console.error(a,b)}catch(error){}}},"./node_modules/core-js/internals/html.js":function(module,exports,__webpack_require__){"use strict";var getBuiltIn=__webpack_require__("./node_modules/core-js/internals/get-built-in.js");module.exports=getBuiltIn("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(module,exports,__webpack_require__){"use strict";var DESCRIPTORS=__webpack_require__("./node_modules/core-js/internals/descriptors.js"),fails=__webpack_require__("./node_modules/core-js/internals/fails.js"),createElement=__webpack_require__("./node_modules/core-js/internals/document-create-element.js");module.exports=!DESCRIPTORS&&!fails((function(){return 7!==Object.defineProperty(createElement("div"),"a",{get:function(){return 7}}).a}))},"./node_modules/core-js/internals/indexed-object.js":function(module,exports,__webpack_require__){"use strict";var uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),fails=__webpack_require__("./node_modules/core-js/internals/fails.js"),classof=__webpack_require__("./node_modules/core-js/internals/classof-raw.js"),$Object=Object,split=uncurryThis("".split);module.exports=fails((function(){return!$Object("z").propertyIsEnumerable(0)}))?function(it){return"String"===classof(it)?split(it,""):$Object(it)}:$Object},"./node_modules/core-js/internals/inherit-if-required.js":function(module,exports,__webpack_require__){"use strict";var isCallable=__webpack_require__("./node_modules/core-js/internals/is-callable.js"),isObject=__webpack_require__("./node_modules/core-js/internals/is-object.js"),setPrototypeOf=__webpack_require__("./node_modules/core-js/internals/object-set-prototype-of.js");module.exports=function($this,dummy,Wrapper){var NewTarget,NewTargetPrototype;return setPrototypeOf&&isCallable(NewTarget=dummy.constructor)&&NewTarget!==Wrapper&&isObject(NewTargetPrototype=NewTarget.prototype)&&NewTargetPrototype!==Wrapper.prototype&&setPrototypeOf($this,NewTargetPrototype),$this}},"./node_modules/core-js/internals/inspect-source.js":function(module,exports,__webpack_require__){"use strict";var uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),isCallable=__webpack_require__("./node_modules/core-js/internals/is-callable.js"),store=__webpack_require__("./node_modules/core-js/internals/shared-store.js"),functionToString=uncurryThis(Function.toString);isCallable(store.inspectSource)||(store.inspectSource=function(it){return functionToString(it)}),module.exports=store.inspectSource},"./node_modules/core-js/internals/internal-metadata.js":function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__("./node_modules/core-js/internals/export.js"),uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),hiddenKeys=__webpack_require__("./node_modules/core-js/internals/hidden-keys.js"),isObject=__webpack_require__("./node_modules/core-js/internals/is-object.js"),hasOwn=__webpack_require__("./node_modules/core-js/internals/has-own-property.js"),defineProperty=__webpack_require__("./node_modules/core-js/internals/object-define-property.js").f,getOwnPropertyNamesModule=__webpack_require__("./node_modules/core-js/internals/object-get-own-property-names.js"),getOwnPropertyNamesExternalModule=__webpack_require__("./node_modules/core-js/internals/object-get-own-property-names-external.js"),isExtensible=__webpack_require__("./node_modules/core-js/internals/object-is-extensible.js"),uid=__webpack_require__("./node_modules/core-js/internals/uid.js"),FREEZING=__webpack_require__("./node_modules/core-js/internals/freezing.js"),REQUIRED=!1,METADATA=uid("meta"),id=0,setMetadata=function(it){defineProperty(it,METADATA,{value:{objectID:"O"+id++,weakData:{}}})},meta=module.exports={enable:function(){meta.enable=function(){},REQUIRED=!0;var getOwnPropertyNames=getOwnPropertyNamesModule.f,splice=uncurryThis([].splice),test={};test[METADATA]=1,getOwnPropertyNames(test).length&&(getOwnPropertyNamesModule.f=function(it){for(var result=getOwnPropertyNames(it),i=0,length=result.length;iindex;index++)if((result=callFn(iterable[index]))&&isPrototypeOf(ResultPrototype,result))return result;return new Result(!1)}iterator=getIterator(iterable,iterFn)}for(next=IS_RECORD?iterable.next:iterator.next;!(step=call(next,iterator)).done;){try{result=callFn(step.value)}catch(error){iteratorClose(iterator,"throw",error)}if("object"==typeof result&&result&&isPrototypeOf(ResultPrototype,result))return result}return new Result(!1)}},"./node_modules/core-js/internals/iterator-close.js":function(module,exports,__webpack_require__){"use strict";var call=__webpack_require__("./node_modules/core-js/internals/function-call.js"),anObject=__webpack_require__("./node_modules/core-js/internals/an-object.js"),getMethod=__webpack_require__("./node_modules/core-js/internals/get-method.js");module.exports=function(iterator,kind,value){var innerResult,innerError;anObject(iterator);try{if(!(innerResult=getMethod(iterator,"return"))){if("throw"===kind)throw value;return value}innerResult=call(innerResult,iterator)}catch(error){innerError=!0,innerResult=error}if("throw"===kind)throw value;if(innerError)throw innerResult;return anObject(innerResult),value}},"./node_modules/core-js/internals/iterator-create-constructor.js":function(module,exports,__webpack_require__){"use strict";var IteratorPrototype=__webpack_require__("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,create=__webpack_require__("./node_modules/core-js/internals/object-create.js"),createPropertyDescriptor=__webpack_require__("./node_modules/core-js/internals/create-property-descriptor.js"),setToStringTag=__webpack_require__("./node_modules/core-js/internals/set-to-string-tag.js"),Iterators=__webpack_require__("./node_modules/core-js/internals/iterators.js"),returnThis=function(){return this};module.exports=function(IteratorConstructor,NAME,next,ENUMERABLE_NEXT){var TO_STRING_TAG=NAME+" Iterator";return IteratorConstructor.prototype=create(IteratorPrototype,{next:createPropertyDescriptor(+!ENUMERABLE_NEXT,next)}),setToStringTag(IteratorConstructor,TO_STRING_TAG,!1,!0),Iterators[TO_STRING_TAG]=returnThis,IteratorConstructor}},"./node_modules/core-js/internals/iterator-define.js":function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__("./node_modules/core-js/internals/export.js"),call=__webpack_require__("./node_modules/core-js/internals/function-call.js"),IS_PURE=__webpack_require__("./node_modules/core-js/internals/is-pure.js"),FunctionName=__webpack_require__("./node_modules/core-js/internals/function-name.js"),isCallable=__webpack_require__("./node_modules/core-js/internals/is-callable.js"),createIteratorConstructor=__webpack_require__("./node_modules/core-js/internals/iterator-create-constructor.js"),getPrototypeOf=__webpack_require__("./node_modules/core-js/internals/object-get-prototype-of.js"),setPrototypeOf=__webpack_require__("./node_modules/core-js/internals/object-set-prototype-of.js"),setToStringTag=__webpack_require__("./node_modules/core-js/internals/set-to-string-tag.js"),createNonEnumerableProperty=__webpack_require__("./node_modules/core-js/internals/create-non-enumerable-property.js"),defineBuiltIn=__webpack_require__("./node_modules/core-js/internals/define-built-in.js"),wellKnownSymbol=__webpack_require__("./node_modules/core-js/internals/well-known-symbol.js"),Iterators=__webpack_require__("./node_modules/core-js/internals/iterators.js"),IteratorsCore=__webpack_require__("./node_modules/core-js/internals/iterators-core.js"),PROPER_FUNCTION_NAME=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR=wellKnownSymbol("iterator"),returnThis=function(){return this};module.exports=function(Iterable,NAME,IteratorConstructor,next,DEFAULT,IS_SET,FORCED){createIteratorConstructor(IteratorConstructor,NAME,next);var CurrentIteratorPrototype,methods,KEY,getIterationMethod=function(KIND){if(KIND===DEFAULT&&defaultIterator)return defaultIterator;if(!BUGGY_SAFARI_ITERATORS&&KIND&&KIND in IterablePrototype)return IterablePrototype[KIND];switch(KIND){case"keys":return function keys(){return new IteratorConstructor(this,KIND)};case"values":return function values(){return new IteratorConstructor(this,KIND)};case"entries":return function entries(){return new IteratorConstructor(this,KIND)}}return function(){return new IteratorConstructor(this)}},TO_STRING_TAG=NAME+" Iterator",INCORRECT_VALUES_NAME=!1,IterablePrototype=Iterable.prototype,nativeIterator=IterablePrototype[ITERATOR]||IterablePrototype["@@iterator"]||DEFAULT&&IterablePrototype[DEFAULT],defaultIterator=!BUGGY_SAFARI_ITERATORS&&nativeIterator||getIterationMethod(DEFAULT),anyNativeIterator="Array"===NAME&&IterablePrototype.entries||nativeIterator;if(anyNativeIterator&&(CurrentIteratorPrototype=getPrototypeOf(anyNativeIterator.call(new Iterable)))!==Object.prototype&&CurrentIteratorPrototype.next&&(IS_PURE||getPrototypeOf(CurrentIteratorPrototype)===IteratorPrototype||(setPrototypeOf?setPrototypeOf(CurrentIteratorPrototype,IteratorPrototype):isCallable(CurrentIteratorPrototype[ITERATOR])||defineBuiltIn(CurrentIteratorPrototype,ITERATOR,returnThis)),setToStringTag(CurrentIteratorPrototype,TO_STRING_TAG,!0,!0),IS_PURE&&(Iterators[TO_STRING_TAG]=returnThis)),PROPER_FUNCTION_NAME&&"values"===DEFAULT&&nativeIterator&&"values"!==nativeIterator.name&&(!IS_PURE&&CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty(IterablePrototype,"name","values"):(INCORRECT_VALUES_NAME=!0,defaultIterator=function values(){return call(nativeIterator,this)})),DEFAULT)if(methods={values:getIterationMethod("values"),keys:IS_SET?defaultIterator:getIterationMethod("keys"),entries:getIterationMethod("entries")},FORCED)for(KEY in methods)(BUGGY_SAFARI_ITERATORS||INCORRECT_VALUES_NAME||!(KEY in IterablePrototype))&&defineBuiltIn(IterablePrototype,KEY,methods[KEY]);else $({target:NAME,proto:!0,forced:BUGGY_SAFARI_ITERATORS||INCORRECT_VALUES_NAME},methods);return IS_PURE&&!FORCED||IterablePrototype[ITERATOR]===defaultIterator||defineBuiltIn(IterablePrototype,ITERATOR,defaultIterator,{name:DEFAULT}),Iterators[NAME]=defaultIterator,methods}},"./node_modules/core-js/internals/iterators-core.js":function(module,exports,__webpack_require__){"use strict";var IteratorPrototype,PrototypeOfArrayIteratorPrototype,arrayIterator,fails=__webpack_require__("./node_modules/core-js/internals/fails.js"),isCallable=__webpack_require__("./node_modules/core-js/internals/is-callable.js"),isObject=__webpack_require__("./node_modules/core-js/internals/is-object.js"),create=__webpack_require__("./node_modules/core-js/internals/object-create.js"),getPrototypeOf=__webpack_require__("./node_modules/core-js/internals/object-get-prototype-of.js"),defineBuiltIn=__webpack_require__("./node_modules/core-js/internals/define-built-in.js"),wellKnownSymbol=__webpack_require__("./node_modules/core-js/internals/well-known-symbol.js"),IS_PURE=__webpack_require__("./node_modules/core-js/internals/is-pure.js"),ITERATOR=wellKnownSymbol("iterator"),BUGGY_SAFARI_ITERATORS=!1;[].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf(getPrototypeOf(arrayIterator)))!==Object.prototype&&(IteratorPrototype=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS=!0),!isObject(IteratorPrototype)||fails((function(){var test={};return IteratorPrototype[ITERATOR].call(test)!==test}))?IteratorPrototype={}:IS_PURE&&(IteratorPrototype=create(IteratorPrototype)),isCallable(IteratorPrototype[ITERATOR])||defineBuiltIn(IteratorPrototype,ITERATOR,(function(){return this})),module.exports={IteratorPrototype:IteratorPrototype,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS}},"./node_modules/core-js/internals/iterators.js":function(module,exports,__webpack_require__){"use strict";module.exports={}},"./node_modules/core-js/internals/length-of-array-like.js":function(module,exports,__webpack_require__){"use strict";var toLength=__webpack_require__("./node_modules/core-js/internals/to-length.js");module.exports=function(obj){return toLength(obj.length)}},"./node_modules/core-js/internals/make-built-in.js":function(module,exports,__webpack_require__){"use strict";var uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),fails=__webpack_require__("./node_modules/core-js/internals/fails.js"),isCallable=__webpack_require__("./node_modules/core-js/internals/is-callable.js"),hasOwn=__webpack_require__("./node_modules/core-js/internals/has-own-property.js"),DESCRIPTORS=__webpack_require__("./node_modules/core-js/internals/descriptors.js"),CONFIGURABLE_FUNCTION_NAME=__webpack_require__("./node_modules/core-js/internals/function-name.js").CONFIGURABLE,inspectSource=__webpack_require__("./node_modules/core-js/internals/inspect-source.js"),InternalStateModule=__webpack_require__("./node_modules/core-js/internals/internal-state.js"),enforceInternalState=InternalStateModule.enforce,getInternalState=InternalStateModule.get,$String=String,defineProperty=Object.defineProperty,stringSlice=uncurryThis("".slice),replace=uncurryThis("".replace),join=uncurryThis([].join),CONFIGURABLE_LENGTH=DESCRIPTORS&&!fails((function(){return 8!==defineProperty((function(){}),"length",{value:8}).length})),TEMPLATE=String(String).split("String"),makeBuiltIn=module.exports=function(value,name,options){"Symbol("===stringSlice($String(name),0,7)&&(name="["+replace($String(name),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),options&&options.getter&&(name="get "+name),options&&options.setter&&(name="set "+name),(!hasOwn(value,"name")||CONFIGURABLE_FUNCTION_NAME&&value.name!==name)&&(DESCRIPTORS?defineProperty(value,"name",{value:name,configurable:!0}):value.name=name),CONFIGURABLE_LENGTH&&options&&hasOwn(options,"arity")&&value.length!==options.arity&&defineProperty(value,"length",{value:options.arity});try{options&&hasOwn(options,"constructor")&&options.constructor?DESCRIPTORS&&defineProperty(value,"prototype",{writable:!1}):value.prototype&&(value.prototype=void 0)}catch(error){}var state=enforceInternalState(value);return hasOwn(state,"source")||(state.source=join(TEMPLATE,"string"==typeof name?name:"")),value};Function.prototype.toString=makeBuiltIn((function toString(){return isCallable(this)&&getInternalState(this).source||inspectSource(this)}),"toString")},"./node_modules/core-js/internals/math-trunc.js":function(module,exports,__webpack_require__){"use strict";var ceil=Math.ceil,floor=Math.floor;module.exports=Math.trunc||function trunc(x){var n=+x;return(n>0?floor:ceil)(n)}},"./node_modules/core-js/internals/microtask.js":function(module,exports,__webpack_require__){"use strict";var notify,toggle,node,promise,then,global=__webpack_require__("./node_modules/core-js/internals/global.js"),safeGetBuiltIn=__webpack_require__("./node_modules/core-js/internals/safe-get-built-in.js"),bind=__webpack_require__("./node_modules/core-js/internals/function-bind-context.js"),macrotask=__webpack_require__("./node_modules/core-js/internals/task.js").set,Queue=__webpack_require__("./node_modules/core-js/internals/queue.js"),IS_IOS=__webpack_require__("./node_modules/core-js/internals/engine-is-ios.js"),IS_IOS_PEBBLE=__webpack_require__("./node_modules/core-js/internals/engine-is-ios-pebble.js"),IS_WEBOS_WEBKIT=__webpack_require__("./node_modules/core-js/internals/engine-is-webos-webkit.js"),IS_NODE=__webpack_require__("./node_modules/core-js/internals/engine-is-node.js"),MutationObserver=global.MutationObserver||global.WebKitMutationObserver,document=global.document,process=global.process,Promise=global.Promise,microtask=safeGetBuiltIn("queueMicrotask");if(!microtask){var queue=new Queue,flush=function(){var parent,fn;for(IS_NODE&&(parent=process.domain)&&parent.exit();fn=queue.get();)try{fn()}catch(error){throw queue.head&¬ify(),error}parent&&parent.enter()};IS_IOS||IS_NODE||IS_WEBOS_WEBKIT||!MutationObserver||!document?!IS_IOS_PEBBLE&&Promise&&Promise.resolve?((promise=Promise.resolve(void 0)).constructor=Promise,then=bind(promise.then,promise),notify=function(){then(flush)}):IS_NODE?notify=function(){process.nextTick(flush)}:(macrotask=bind(macrotask,global),notify=function(){macrotask(flush)}):(toggle=!0,node=document.createTextNode(""),new MutationObserver(flush).observe(node,{characterData:!0}),notify=function(){node.data=toggle=!toggle}),microtask=function(fn){queue.head||notify(),queue.add(fn)}}module.exports=microtask},"./node_modules/core-js/internals/new-promise-capability.js":function(module,exports,__webpack_require__){"use strict";var aCallable=__webpack_require__("./node_modules/core-js/internals/a-callable.js"),$TypeError=TypeError,PromiseCapability=function(C){var resolve,reject;this.promise=new C((function($$resolve,$$reject){if(void 0!==resolve||void 0!==reject)throw new $TypeError("Bad Promise constructor");resolve=$$resolve,reject=$$reject})),this.resolve=aCallable(resolve),this.reject=aCallable(reject)};module.exports.f=function(C){return new PromiseCapability(C)}},"./node_modules/core-js/internals/not-a-regexp.js":function(module,exports,__webpack_require__){"use strict";var isRegExp=__webpack_require__("./node_modules/core-js/internals/is-regexp.js"),$TypeError=TypeError;module.exports=function(it){if(isRegExp(it))throw new $TypeError("The method doesn't accept regular expressions");return it}},"./node_modules/core-js/internals/number-parse-float.js":function(module,exports,__webpack_require__){"use strict";var global=__webpack_require__("./node_modules/core-js/internals/global.js"),fails=__webpack_require__("./node_modules/core-js/internals/fails.js"),uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),toString=__webpack_require__("./node_modules/core-js/internals/to-string.js"),trim=__webpack_require__("./node_modules/core-js/internals/string-trim.js").trim,whitespaces=__webpack_require__("./node_modules/core-js/internals/whitespaces.js"),charAt=uncurryThis("".charAt),$parseFloat=global.parseFloat,Symbol=global.Symbol,ITERATOR=Symbol&&Symbol.iterator,FORCED=1/$parseFloat(whitespaces+"-0")!=-1/0||ITERATOR&&!fails((function(){$parseFloat(Object(ITERATOR))}));module.exports=FORCED?function parseFloat(string){var trimmedString=trim(toString(string)),result=$parseFloat(trimmedString);return 0===result&&"-"===charAt(trimmedString,0)?-0:result}:$parseFloat},"./node_modules/core-js/internals/object-assign.js":function(module,exports,__webpack_require__){"use strict";var DESCRIPTORS=__webpack_require__("./node_modules/core-js/internals/descriptors.js"),uncurryThis=__webpack_require__("./node_modules/core-js/internals/function-uncurry-this.js"),call=__webpack_require__("./node_modules/core-js/internals/function-call.js"),fails=__webpack_require__("./node_modules/core-js/internals/fails.js"),objectKeys=__webpack_require__("./node_modules/core-js/internals/object-keys.js"),getOwnPropertySymbolsModule=__webpack_require__("./node_modules/core-js/internals/object-get-own-property-symbols.js"),propertyIsEnumerableModule=__webpack_require__("./node_modules/core-js/internals/object-property-is-enumerable.js"),toObject=__webpack_require__("./node_modules/core-js/internals/to-object.js"),IndexedObject=__webpack_require__("./node_modules/core-js/internals/indexed-object.js"),$assign=Object.assign,defineProperty=Object.defineProperty,concat=uncurryThis([].concat);module.exports=!$assign||fails((function(){if(DESCRIPTORS&&1!==$assign({b:1},$assign(defineProperty({},"a",{enumerable:!0,get:function(){defineProperty(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var A={},B={},symbol=Symbol("assign detection");return A[symbol]=7,"abcdefghijklmnopqrst".split("").forEach((function(chr){B[chr]=chr})),7!==$assign({},A)[symbol]||"abcdefghijklmnopqrst"!==objectKeys($assign({},B)).join("")}))?function assign(target,source){for(var T=toObject(target),argumentsLength=arguments.length,index=1,getOwnPropertySymbols=getOwnPropertySymbolsModule.f,propertyIsEnumerable=propertyIsEnumerableModule.f;argumentsLength>index;)for(var key,S=IndexedObject(arguments[index++]),keys=getOwnPropertySymbols?concat(objectKeys(S),getOwnPropertySymbols(S)):objectKeys(S),length=keys.length,j=0;length>j;)key=keys[j++],DESCRIPTORS&&!call(propertyIsEnumerable,S,key)||(T[key]=S[key]);return T}:$assign},"./node_modules/core-js/internals/object-create.js":function(module,exports,__webpack_require__){"use strict";var activeXDocument,anObject=__webpack_require__("./node_modules/core-js/internals/an-object.js"),definePropertiesModule=__webpack_require__("./node_modules/core-js/internals/object-define-properties.js"),enumBugKeys=__webpack_require__("./node_modules/core-js/internals/enum-bug-keys.js"),hiddenKeys=__webpack_require__("./node_modules/core-js/internals/hidden-keys.js"),html=__webpack_require__("./node_modules/core-js/internals/html.js"),documentCreateElement=__webpack_require__("./node_modules/core-js/internals/document-create-element.js"),sharedKey=__webpack_require__("./node_modules/core-js/internals/shared-key.js"),IE_PROTO=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(content){return"