/*! For license information please see 2.822372ce.chunk.js.LICENSE.txt */ (this["webpackJsonpvem-frontend"]=this["webpackJsonpvem-frontend"]||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(60)},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";function r(e){var t,n,o="";if("string"===typeof e||"number"===typeof e)o+=e;else if("object"===typeof e)if(Array.isArray(e))for(t=0;t1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var i=t.defaultTheme,s=t.withTheme,p=void 0!==s&&s,d=t.name,h=Object(o.a)(t,["defaultTheme","withTheme","name"]);var v=d,m=Object(l.a)(e,Object(r.a)({defaultTheme:i,Component:n,name:d||n.displayName,classNamePrefix:v},h)),y=a.a.forwardRef((function(e,t){e.classes;var s,u=e.innerRef,l=Object(o.a)(e,["classes","innerRef"]),h=m(Object(r.a)({},n.defaultProps,e)),v=l;return("string"===typeof d||p)&&(s=Object(f.a)()||i,d&&(v=Object(c.a)({theme:s,name:d,props:l})),p&&!v.theme&&(v.theme=s)),a.a.createElement(n,Object(r.a)({ref:u||t,classes:h},v))}));return u()(y,n),y}},d=n(24);t.a=function(e,t){return p(e,Object(r.a)({defaultTheme:d.a},t))}},function(e,t,n){"use strict";e.exports=n(66)},function(e,t,n){e.exports=n(67)()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(52);function o(e){if("string"!==typeof e)throw new Error(Object(r.a)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(16);function i(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){Object(o.a)(e,n),Object(o.a)(t,n)}}),[e,t])}},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(61)},function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;function i(e){var t=r.useRef(e);return o((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Object(r.a)(3,e));var o=e.substring(t+1,e.length-1).split(",");return{type:n,values:o=o.map((function(e){return parseFloat(e)}))}}function a(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function s(e,t){var n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function u(e){var t="hsl"===(e=i(e)).type?i(function(e){var t=(e=i(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-s*Math.max(Math.min(t-3,9-t,1),-1)},l="rgb",c=[Math.round(255*u(0)),Math.round(255*u(8)),Math.round(255*u(4))];return"hsla"===e.type&&(l+="a",c.push(t[3])),a({type:l,values:c})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function l(e,t){return e=i(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,a(e)}function c(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function f(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return a(e)}},function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(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}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(30);var o=n(34);function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i0?r:e)-l/100).concat(i,")")},between:p,only:function(e){return p(e,e)},width:function(e){return n[e]}},c)}function l(e,t,n){var o;return Object(a.a)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a.a)({paddingLeft:t(2),paddingRight:t(2)},n,Object(r.a)({},e.up("sm"),Object(a.a)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(o={minHeight:56},Object(r.a)(o,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Object(r.a)(o,e.up("sm"),{minHeight:64}),o)},n)}var c=n(52),f={black:"#000",white:"#fff"},p={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},d={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},h={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},v={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},y={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},b={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},g=n(15),w={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:f.white,default:p[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},_={text:{primary:f.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:p[800],default:"#303030"},action:{active:f.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function x(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Object(g.d)(e.main,o):"dark"===t&&(e.dark=Object(g.a)(e.main,i)))}function k(e){var t=e.primary,n=void 0===t?{light:d[300],main:d[500],dark:d[700]}:t,r=e.secondary,s=void 0===r?{light:h.A200,main:h.A400,dark:h.A700}:r,u=e.error,l=void 0===u?{light:v[300],main:v[500],dark:v[700]}:u,k=e.warning,O=void 0===k?{light:m[300],main:m[500],dark:m[700]}:k,E=e.info,S=void 0===E?{light:y[300],main:y[500],dark:y[700]}:E,j=e.success,C=void 0===j?{light:b[300],main:b[500],dark:b[700]}:j,T=e.type,P=void 0===T?"light":T,R=e.contrastThreshold,A=void 0===R?3:R,M=e.tonalOffset,D=void 0===M?.2:M,I=Object(o.a)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function N(e){return Object(g.c)(e,_.text.primary)>=A?_.text.primary:w.text.primary}var L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=Object(a.a)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Object(c.a)(4,t));if("string"!==typeof e.main)throw new Error(Object(c.a)(5,JSON.stringify(e.main)));return x(e,"light",n,D),x(e,"dark",r,D),e.contrastText||(e.contrastText=N(e.main)),e},z={dark:_,light:w};return Object(i.a)(Object(a.a)({common:f,type:P,primary:L(n),secondary:L(s,"A400","A200","A700"),error:L(l),warning:L(O),info:L(S),success:L(C),grey:p,contrastThreshold:A,getContrastText:N,augmentColor:L,tonalOffset:D},z[P]),I)}function O(e){return Math.round(1e5*e)/1e5}var E={textTransform:"uppercase"},S='"Roboto", "Helvetica", "Arial", sans-serif';function j(e,t){var n="function"===typeof t?t(e):t,r=n.fontFamily,s=void 0===r?S:r,u=n.fontSize,l=void 0===u?14:u,c=n.fontWeightLight,f=void 0===c?300:c,p=n.fontWeightRegular,d=void 0===p?400:p,h=n.fontWeightMedium,v=void 0===h?500:h,m=n.fontWeightBold,y=void 0===m?700:m,b=n.htmlFontSize,g=void 0===b?16:b,w=n.allVariants,_=n.pxToRem,x=Object(o.a)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var k=l/14,j=_||function(e){return"".concat(e/g*k,"rem")},C=function(e,t,n,r,o){return Object(a.a)({fontFamily:s,fontWeight:e,fontSize:j(t),lineHeight:n},s===S?{letterSpacing:"".concat(O(r/t),"em")}:{},o,w)},T={h1:C(f,96,1.167,-1.5),h2:C(f,60,1.2,-.5),h3:C(d,48,1.167,0),h4:C(d,34,1.235,.25),h5:C(d,24,1.334,0),h6:C(v,20,1.6,.15),subtitle1:C(d,16,1.75,.15),subtitle2:C(v,14,1.57,.1),body1:C(d,16,1.5,.15),body2:C(d,14,1.43,.15),button:C(v,14,1.75,.4,E),caption:C(d,12,1.66,.4),overline:C(d,12,2.66,1,E)};return Object(i.a)(Object(a.a)({htmlFontSize:g,pxToRem:j,round:O,fontFamily:s,fontSize:l,fontWeightLight:f,fontWeightRegular:d,fontWeightMedium:v,fontWeightBold:y},T),x,{clone:!1})}function C(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var T=["none",C(0,2,1,-1,0,1,1,0,0,1,3,0),C(0,3,1,-2,0,2,2,0,0,1,5,0),C(0,3,3,-2,0,3,4,0,0,1,8,0),C(0,2,4,-1,0,4,5,0,0,1,10,0),C(0,3,5,-1,0,5,8,0,0,1,14,0),C(0,3,5,-1,0,6,10,0,0,1,18,0),C(0,4,5,-2,0,7,10,1,0,2,16,1),C(0,5,5,-3,0,8,10,1,0,3,14,2),C(0,5,6,-3,0,9,12,1,0,3,16,2),C(0,6,6,-3,0,10,14,1,0,4,18,3),C(0,6,7,-4,0,11,15,1,0,4,20,3),C(0,7,8,-4,0,12,17,2,0,5,22,4),C(0,7,8,-4,0,13,19,2,0,5,24,4),C(0,7,9,-4,0,14,21,2,0,5,26,4),C(0,8,9,-5,0,15,22,2,0,6,28,5),C(0,8,10,-5,0,16,24,2,0,6,30,5),C(0,8,11,-5,0,17,26,2,0,6,32,5),C(0,9,11,-5,0,18,28,2,0,7,34,6),C(0,9,12,-6,0,19,29,2,0,7,36,6),C(0,10,13,-6,0,20,31,3,0,8,38,7),C(0,10,13,-6,0,21,33,3,0,8,40,7),C(0,10,14,-6,0,22,35,3,0,8,42,7),C(0,11,14,-7,0,23,36,3,0,9,44,8),C(0,11,15,-7,0,24,38,3,0,9,46,8)],P={borderRadius:4},R=n(25),A=(n(18),n(19));n(6);var M=function(e,t){return t?Object(i.a)(e,t,{clone:!1}):e},D={xs:0,sm:600,md:960,lg:1280,xl:1920},I={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(D[e],"px)")}};var N={m:"margin",p:"padding"},L={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},z={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},F=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!z[e])return[e];e=z[e]}var t=e.split(""),n=Object(R.a)(t,2),r=n[0],o=n[1],i=N[r],a=L[o]||"";return Array.isArray(a)?a.map((function(e){return i+e})):[i+a]})),B=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function U(e){var t=e.spacing||8;return"number"===typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"===typeof t?t:function(){}}function q(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function W(e){var t=U(e.theme);return Object.keys(e).map((function(n){if(-1===B.indexOf(n))return null;var r=q(F(n),t),o=e[n];return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||I;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===Object(A.a)(t)){var o=e.theme.breakpoints||I;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}(e,o,r)})).reduce(M,{})}W.propTypes={},W.filterProps=B;function V(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=U({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?$.standard:n,i=t.easing,a=void 0===i?H.easeInOut:i,s=t.delay,u=void 0===s?0:s;Object(o.a)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof r?r:K(r)," ").concat(a," ").concat("string"===typeof u?u:K(u))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},X=n(35);var Y=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,a=void 0===r?{}:r,s=e.palette,c=void 0===s?{}:s,f=e.spacing,p=e.typography,d=void 0===p?{}:p,h=Object(o.a)(e,["breakpoints","mixins","palette","spacing","typography"]),v=k(c),m=u(n),y=V(f),b=Object(i.a)({breakpoints:m,direction:"ltr",mixins:l(m,y,a),overrides:{},palette:v,props:{},shadows:T,typography:j(v,d),spacing:y,shape:P,transitions:Q,zIndex:X.a},h),g=arguments.length,w=new Array(g>1?g-1:0),_=1;_e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1){var n=e.shift();e[0]=n+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r0&&(o=o.replace(/^[\/]+/,"")),o=r0?"?":"")+a.join("&")}return function(){return e("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}},e.exports?e.exports=n():t.urljoin=n()})),s=Object.prototype.hasOwnProperty,u=Array.isArray,l=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),c=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(u(n)){for(var r=[],o=0;o=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?o+=r.charAt(i):a<128?o+=l[a]:a<2048?o+=l[192|a>>6]+l[128|63&a]:a<55296||a>=57344?o+=l[224|a>>12]+l[128|a>>6&63]+l[128|63&a]:(i+=1,a=65536+((1023&a)<<10|1023&r.charCodeAt(i)),o+=l[240|a>>18]+l[128|a>>12&63]+l[128|a>>6&63]+l[128|63&a])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(u(e)){for(var n=[],r=0;r-1?e.split(","):e},P=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=n.depth>0&&/(\[[^[\]]*])/.exec(o),s=a?o.slice(0,a.index):o,u=[];if(s){if(!n.plainObjects&&E.call(Object.prototype,s)&&!n.allowPrototypes)return;u.push(s)}for(var l=0;n.depth>0&&null!==(a=i.exec(o))&&l=0;--i){var a,s=e[i];if("[]"===s&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(u,10);n.parseArrays||""!==u?!isNaN(l)&&s!==u&&String(l)===u&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(a=[])[l]=o:a[u]=o:a={0:o}}o=a}return o}(u,t,n,r)}},R=function(e,t){var n,r=e,o=function(e){if(!e)return k;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||k.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=v.default;if(void 0!==e.format){if(!m.call(v.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=v.formatters[n],o=k.filter;return("function"==typeof e.filter||b(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:k.addQueryPrefix,allowDots:void 0===e.allowDots?k.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:k.charsetSentinel,delimiter:void 0===e.delimiter?k.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:k.encode,encoder:"function"==typeof e.encoder?e.encoder:k.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:k.encodeValuesOnly,filter:o,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:k.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:k.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:k.strictNullHandling}}(t);"function"==typeof o.filter?r=(0,o.filter)("",r):b(o.filter)&&(n=o.filter);var i,a=[];if("object"!=typeof r||null===r)return"";i=t&&t.arrayFormat in y?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var s=y[i];n||(n=Object.keys(r)),o.sort&&n.sort(o.sort);for(var u=0;u0?f+c:""},A=i((function(e){function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;ot?1:0}function z(e,t,n){var r,o=function e(t,n,r,o){var i;if("object"==typeof t&&null!==t){for(i=0;i0)for(var r=0;r=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(r){console.error(r)}if(t&&t.status&&t.status>=500&&501!==t.status)return!0;if(e){if(e.code&&H.includes(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},V.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},V.prototype.then=function(e,t){var n=this;if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(e,t){r.on("abort",(function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)t(n.timedoutError);else{var e=new Error("Aborted");e.code="ABORTED",e.status=n.status,e.method=n.method,e.url=n.url,t(e)}})),r.end((function(n,r){n?t(n):e(r)}))}))}return this._fullfilledPromise.then(e,t)},V.prototype.catch=function(e){return this.then(void 0,e)},V.prototype.use=function(e){return e(this),this},V.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},V.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},V.prototype.get=function(e){return this._header[e.toLowerCase()]},V.prototype.getHeader=V.prototype.get,V.prototype.set=function(e,t){if(U(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},V.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},V.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(U(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(n,e[n]);return this}if(Array.isArray(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(e,t[r]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),this._getFormData().append(e,t),this},V.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},V.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(r("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},V.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},V.prototype.redirects=function(e){return this._maxRedirects=e,this},V.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},V.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},V.prototype.send=function(e){var t=U(e),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&U(this._data))for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this._data[r]=e[r]);else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"===n?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||n||this.type("json"),this},V.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},V.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.slice(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,t)+"?"+n.join("&")}}},V.prototype._appendQueryString=function(){console.warn("Unsupported")},V.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=new Error("".concat(e+t,"ms exceeded"));r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)}},V.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))};var $=K;function K(e){if(e)return function(e){for(var t in K.prototype)Object.prototype.hasOwnProperty.call(K.prototype,t)&&(e[t]=K.prototype[t]);return e}(e)}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0||e instanceof Object)?t(e):null)},f.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r="cannot ".concat(t," ").concat(n," (").concat(this.status,")"),o=new Error(r);return o.status=this.status,o.method=t,o.url=n,o},i.Response=f,A(p.prototype),W(p.prototype),p.prototype.type=function(e){return this.set("Content-Type",i.types[e]||e),this},p.prototype.accept=function(e){return this.set("Accept",i.types[e]||e),this},p.prototype.auth=function(e,t,r){1===arguments.length&&(t=""),"object"===n(t)&&null!==t&&(r=t,t=""),r||(r={type:"function"==typeof btoa?"basic":"auto"});var o=function(e){if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(e,t,r,o)},p.prototype.query=function(e){return"string"!=typeof e&&(e=s(e)),e&&this._query.push(e),this},p.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},p.prototype._getFormData=function(){return this._formData||(this._formData=new r.FormData),this._formData},p.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},p.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},p.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},p.prototype.ca=p.prototype.agent,p.prototype.buffer=p.prototype.ca,p.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},p.prototype.pipe=p.prototype.write,p.prototype._isHost=function(e){return e&&"object"===n(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},p.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||o,this._finalizeQueryString(),this._end()},p.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},p.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=i.getXHR();var t=this.xhr,n=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===n){var r;try{r=t.status}catch(o){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",r.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",r.bind(null,"upload"))}catch(u){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(l){return this.callback(l)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var o=this._header["content-type"],a=this._serializer||i.serialize[o?o.split(";")[0]:""];!a&&c(o)&&(a=i.serialize["application/json"]),a&&(n=a(n))}for(var s in this.header)null!==this.header[s]&&Object.prototype.hasOwnProperty.call(this.header,s)&&t.setRequestHeader(s,this.header[s]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},i.agent=function(){return new Y},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){Y.prototype[e.toLowerCase()]=function(t,n){var r=new i.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}})),Y.prototype.del=Y.prototype.delete,i.get=function(e,t,n){var r=i("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},i.head=function(e,t,n){var r=i("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},i.options=function(e,t,n){var r=i("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},i.del=d,i.delete=d,i.patch=function(e,t,n){var r=i("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},i.post=function(e,t,n){var r=i("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},i.put=function(e,t,n){var r=i("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}})),J=(G.Request,[]),Z=[],ee=("undefined"!=typeof Uint8Array&&Uint8Array,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),te=0,ne=ee.length;te0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&t,[n,n===t?0:4-n%4]}function oe(e,t,n){for(var r,o,i=[],a=t;a>18&63]+J[o>>12&63]+J[o>>6&63]+J[63&o]);return i.join("")}Z["-".charCodeAt(0)]=62,Z["_".charCodeAt(0)]=63;var ie=function(e){for(var t,n=e.length,r=n%3,o=[],i=0,a=n-r;ia?a:i+16383));return 1===r?(t=e[n-1],o.push(J[t>>2]+J[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],o.push(J[t>>10]+J[t>>4&63]+J[t<<2&63]+"=")),o.join("")},ae=function(e){return ie(function(e){for(var t=new Array(e.length),n=0;n=65&&t<=90||!o&&t>=48&&t<=57?(n+="_",n+=e[r].toLowerCase()):n+=e[r].toLowerCase(),o=t>=48&&t<=57,i=t>=65&&t<=90,r++;return n}(o):o]=e(t[o]),r}),{}))},toCamelCase:function e(t,n,r){return"object"!=typeof t||pe.isArray(t)||null===t?t:(n=n||[],r=r||{},Object.keys(t).reduce((function(o,i){var a,s=-1===n.indexOf(i)?(a=i.split("_")).reduce((function(e,t){return e+t.charAt(0).toUpperCase()+t.slice(1)}),a.shift()):i;return o[s]=e(t[s]||t[i],[],r),r.keepOriginal&&(o[i]=e(t[i],[],r)),o}),{}))},blacklist:function(e,t){return Object.keys(e).reduce((function(n,r){return-1===t.indexOf(r)&&(n[r]=e[r]),n}),{})},merge:function(e,t){return{base:t?ve(e,t):e,with:function(e,t){return e=t?ve(e,t):e,ye(this.base,e)}}},pick:ve,getKeysNotIn:function(e,t){var n=[];for(var r in e)-1===t.indexOf(r)&&n.push(r);return n},extend:ye,getOriginFromUrl:function(e){if(e){var t=be(e);if(!t)return null;var n=t.protocol+"//"+t.hostname;return t.port&&(n+=":"+t.port),n}},getLocationFromUrl:be,trimUserDetails:function(e){return function(e,t){return["username","email","phoneNumber"].reduce(ge,e)}(e)},updatePropertyOn:function e(t,n,r){"string"==typeof n&&(n=n.split("."));var o=n[0];t.hasOwnProperty(o)&&(1===n.length?t[o]=r:e(t[o],n.slice(1),r))}};function _e(e){this.request=e,this.method=e.method,this.url=e.url,this.body=e._data,this.headers=e._header}function xe(e){this.request=e}function ke(e){this._sendTelemetry=!1!==e._sendTelemetry||e._sendTelemetry,this._telemetryInfo=e._telemetryInfo||null,this._timesToRetryFailedRequests=e._timesToRetryFailedRequests,this.headers=e.headers||{},this._universalLoginPage=e.universalLoginPage}function Oe(){return window}_e.prototype.abort=function(){this.request.abort()},_e.prototype.getMethod=function(){return this.method},_e.prototype.getBody=function(){return this.body},_e.prototype.getUrl=function(){return this.url},_e.prototype.getHeaders=function(){return this.headers},xe.prototype.set=function(e,t){return this.request=this.request.set(e,t),this},xe.prototype.send=function(e){return this.request=this.request.send(we.trimUserDetails(e)),this},xe.prototype.withCredentials=function(){return this.request=this.request.withCredentials(),this},xe.prototype.end=function(e){return this.request.end(e),new _e(this.request)},ke.prototype.setCommonConfiguration=function(e,t){if(t=t||{},this._timesToRetryFailedRequests>0&&(e=e.retry(this._timesToRetryFailedRequests)),t.noHeaders)return e;var n=this.headers;e=e.set("Content-Type","application/json");for(var r=Object.keys(this.headers),o=0;o0&&e.warning("Following parameters are not allowed on the `/authorize` endpoint: ["+n.join(",")+"]"),t},Be="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{};function Ue(e){var t={exports:{}};return e(t,t.exports),t.exports}var qe=Ue((function(e,t){e.exports=function(){function e(e){return"function"==typeof e}var t=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},n=0,o=void 0,i=void 0,a=function(e,t){d[n]=e,d[n+1]=t,2===(n+=2)&&(i?i(h):g())},s="undefined"!=typeof window?window:void 0,u=s||{},l=u.MutationObserver||u.WebKitMutationObserver,c="undefined"==typeof self&&"undefined"!=typeof r&&"[object process]"==={}.toString.call(r),f="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function p(){var e=setTimeout;return function(){return e(h,1)}}var d=new Array(1e3);function h(){for(var e=0;e>>2]|=(n[i>>>2]>>>24-i%4*8&255)<<24-(r+i)%4*8;else for(i=0;i>>2]=n[i>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=i.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],o=function(t){t=t;var n=987654321,r=4294967295;return function(){var o=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return o/=4294967296,(o+=.5)*(e.random()>.5?1:-1)}},i=0;i>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},l=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o>>2]>>>24-o%4*8&255));return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},c=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},f=o.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,o=n.sigBytes,i=this.blockSize,s=o/(4*i),u=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*i,l=e.min(4*u,o);if(u){for(var c=0;c>>7)^(h<<14|h>>>18)^h>>>3)+l[d-7]+((v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10)+l[d-16]}var m=r&o^r&i^o&i,y=p+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&f)+u[d]+l[d];p=f,f=c,c=s,s=a+y|0,a=i,i=o,o=r,r=y+(((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+m)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+f|0,n[7]=n[7]+p|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=e.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(c),t.HmacSHA256=i._createHmacHelper(c)}(Math),n.SHA256)})),He=Ue((function(e,t){var n,r;e.exports=(r=(n=We).lib.WordArray,n.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],i=0;i>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s>>6*(3-s)&63));var u=r.charAt(64);if(u)for(;o.length%4;)o.push(u);return o.join("")},parse:function(e){var t=e.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i>>6-a%4*2;o[i>>>2]|=(s|u)<<24-i%4*8,i++}return r.create(o,i)}(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)})),$e=Ue((function(e,t){e.exports=We.enc.Hex})),Ke=Ue((function(e,t){(function(){var t;function n(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):this.fromString(e,null==t&&"string"!=typeof e?256:t))}function r(){return new n(null)}var o="undefined"!=typeof navigator;o&&"Microsoft Internet Explorer"==navigator.appName?(n.prototype.am=function(e,t,n,r,o,i){for(var a=32767&t,s=t>>15;--i>=0;){var u=32767&this[e],l=this[e++]>>15,c=s*u+l*a;o=((u=a*u+((32767&c)<<15)+n[r]+(1073741823&o))>>>30)+(c>>>15)+s*l+(o>>>30),n[r++]=1073741823&u}return o},t=30):o&&"Netscape"!=navigator.appName?(n.prototype.am=function(e,t,n,r,o,i){for(;--i>=0;){var a=t*this[e++]+n[r]+o;o=Math.floor(a/67108864),n[r++]=67108863&a}return o},t=26):(n.prototype.am=function(e,t,n,r,o,i){for(var a=16383&t,s=t>>14;--i>=0;){var u=16383&this[e],l=this[e++]>>14,c=s*u+l*a;o=((u=a*u+((16383&c)<<14)+n[r]+o)>>28)+(c>>14)+s*l,n[r++]=268435455&u}return o},t=28),n.prototype.DB=t,n.prototype.DM=(1<>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function p(e){this.m=e}function d(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function g(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function w(){}function _(e){return e}function x(e){this.r2=r(),this.q3=r(),n.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}p.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},p.prototype.revert=function(e){return e},p.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},p.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},p.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},d.prototype.convert=function(e){var t=r();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(n.ZERO)>0&&this.m.subTo(t,t),t},d.prototype.revert=function(e){var t=r();return e.copyTo(t),this.reduce(t),t},d.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},d.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},d.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},n.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},n.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},n.prototype.fromString=function(e,t){var r;if(16==t)r=4;else if(8==t)r=3;else if(256==t)r=8;else if(2==t)r=1;else if(32==t)r=5;else{if(4!=t)return void this.fromRadix(e,t);r=2}this.t=0,this.s=0;for(var o=e.length,i=!1,a=0;--o>=0;){var s=8==r?255&e[o]:l(e,o);s<0?"-"==e.charAt(o)&&(i=!0):(i=!1,0==a?this[this.t++]=s:a+r>this.DB?(this[this.t-1]|=(s&(1<>this.DB-a):this[this.t-1]|=s<=this.DB&&(a-=this.DB))}8==r&&0!=(128&e[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==e;)--this.t},n.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},n.prototype.drShiftTo=function(e,t){for(var n=e;n=0;--n)t[n+a+1]=this[n]>>o|s,s=(this[n]&i)<=0;--n)t[n]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},n.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,o=this.DB-r,i=(1<>r;for(var a=n+1;a>r;r>0&&(t[this.t-n-1]|=(this.s&i)<>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()},n.prototype.multiplyTo=function(e,t){var r=this.abs(),o=e.abs(),i=r.t;for(t.t=i+o.t;--i>=0;)t[i]=0;for(i=0;i=0;)e[n]=0;for(n=0;n=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},n.prototype.divRemTo=function(e,t,o){var i=e.abs();if(!(i.t<=0)){var a=this.abs();if(a.t0?(i.lShiftTo(c,s),a.lShiftTo(c,o)):(i.copyTo(s),a.copyTo(o));var p=s.t,d=s[p-1];if(0!=d){var h=d*(1<1?s[p-2]>>this.F2:0),v=this.FV/h,m=(1<=0&&(o[o.t++]=1,o.subTo(w,o)),n.ONE.dlShiftTo(p,w),w.subTo(s,s);s.t=0;){var _=o[--b]==d?this.DM:Math.floor(o[b]*v+(o[b-1]+y)*m);if((o[b]+=s.am(0,_,o,g,0,p))<_)for(s.dlShiftTo(g,w),o.subTo(w,o);o[b]<--_;)o.subTo(w,o)}null!=t&&(o.drShiftTo(p,t),u!=l&&n.ZERO.subTo(t,t)),o.t=p,o.clamp(),c>0&&o.rShiftTo(c,o),u<0&&n.ZERO.subTo(o,o)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},n.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},n.prototype.exp=function(e,t){if(e>4294967295||e<1)return n.ONE;var o=r(),i=r(),a=t.convert(this),s=f(e)-1;for(a.copyTo(o);--s>=0;)if(t.sqrTo(o,i),(e&1<0)t.mulTo(i,a,o);else{var u=o;o=i,i=u}return t.revert(o)},n.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,r=(1<0)for(s>s)>0&&(o=!0,i=u(n));a>=0;)s>(s+=this.DB-t)):(n=this[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(o=!0),o&&(i+=u(n));return o?i:"0"},n.prototype.negate=function(){var e=r();return n.ZERO.subTo(this,e),e},n.prototype.abs=function(){return this.s<0?this.negate():this},n.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},n.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+f(this[this.t-1]^this.s&this.DM)},n.prototype.mod=function(e){var t=r();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(n.ZERO)>0&&e.subTo(t,t),t},n.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new p(t):new d(t),this.exp(e,n)},n.ZERO=c(0),n.ONE=c(1),w.prototype.convert=_,w.prototype.revert=_,w.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},w.prototype.sqrTo=function(e,t){e.squareTo(t)},x.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=r();return e.copyTo(t),this.reduce(t),t},x.prototype.revert=function(e){return e},x.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},x.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},x.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var k,O,E,S=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],j=(1<<26)/S[S.length-1];function C(){var e;e=(new Date).getTime(),O[E++]^=255&e,O[E++]^=e>>8&255,O[E++]^=e>>16&255,O[E++]^=e>>24&255,E>=I&&(E-=I)}if(n.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},n.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),o=c(n),i=r(),a=r(),s="";for(this.divRemTo(o,i,a);i.signum()>0;)s=(n+a.intValue()).toString(e).substr(1)+s,i.divRemTo(o,i,a);return a.intValue().toString(e)+s},n.prototype.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10);for(var r=this.chunkSize(t),o=Math.pow(t,r),i=!1,a=0,s=0,u=0;u=r&&(this.dMultiply(o),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(t,a)),this.dAddOffset(s,0)),i&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(e,t,r){if("number"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(n.ONE.shiftLeft(e-1),v,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(n.ONE.shiftLeft(e-1),this);else{var o=new Array,i=7&e;o.length=1+(e>>3),t.nextBytes(o),i>0?o[0]&=(1<>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()},n.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},n.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},n.prototype.multiplyLowerTo=function(e,t,n){var r,o=Math.min(this.t+e.t,t);for(n.s=0,n.t=o;o>0;)n[--o]=0;for(r=n.t-this.t;o=0;)n[r]=0;for(r=Math.max(t-this.t,0);r0)if(0==t)n=this[0]%e;else for(var r=this.t-1;r>=0;--r)n=(t*n+this[r])%e;return n},n.prototype.millerRabin=function(e){var t=this.subtract(n.ONE),o=t.getLowestSetBit();if(o<=0)return!1;var i=t.shiftRight(o);(e=e+1>>1)>S.length&&(e=S.length);for(var a=r(),s=0;s>24},n.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},n.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},n.prototype.toByteArray=function(){var e=this.t,t=new Array;t[0]=this.s;var n,r=this.DB-e*this.DB%8,o=0;if(e-- >0)for(r>r)!=(this.s&this.DM)>>r&&(t[o++]=n|this.s<=0;)r<8?(n=(this[e]&(1<>(r+=this.DB-8)):(n=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==o&&(128&this.s)!=(128&n)&&++o,(o>0||n!=this.s)&&(t[o++]=n);return t},n.prototype.equals=function(e){return 0==this.compareTo(e)},n.prototype.min=function(e){return this.compareTo(e)<0?this:e},n.prototype.max=function(e){return this.compareTo(e)>0?this:e},n.prototype.and=function(e){var t=r();return this.bitwiseTo(e,h,t),t},n.prototype.or=function(e){var t=r();return this.bitwiseTo(e,v,t),t},n.prototype.xor=function(e){var t=r();return this.bitwiseTo(e,m,t),t},n.prototype.andNot=function(e){var t=r();return this.bitwiseTo(e,y,t),t},n.prototype.not=function(){for(var e=r(),t=0;t=this.t?0!=this.s:0!=(this[t]&1<1){var v=r();for(o.sqrTo(s[1],v);u<=h;)s[u]=r(),o.mulTo(v,s[u-2],s[u]),u+=2}var m,y,b=e.t-1,g=!0,w=r();for(i=f(e[b])-1;b>=0;){for(i>=l?m=e[b]>>i-l&h:(m=(e[b]&(1<0&&(m|=e[b-1]>>this.DB+i-l)),u=n;0==(1&m);)m>>=1,--u;if((i-=u)<0&&(i+=this.DB,--b),g)s[m].copyTo(a),g=!1;else{for(;u>1;)o.sqrTo(a,w),o.sqrTo(w,a),u-=2;u>0?o.sqrTo(a,w):(y=a,a=w,w=y),o.mulTo(w,s[m],a)}for(;b>=0&&0==(e[b]&1<=0?(r.subTo(o,r),t&&i.subTo(s,i),a.subTo(u,a)):(o.subTo(r,o),t&&s.subTo(i,s),u.subTo(a,u))}return 0!=o.compareTo(n.ONE)?n.ZERO:u.compareTo(e)>=0?u.subtract(e):u.signum()<0?(u.addTo(e,u),u.signum()<0?u.add(e):u):u},n.prototype.pow=function(e){return this.exp(e,new w)},n.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var r=t;t=n,n=r}var o=t.getLowestSetBit(),i=n.getLowestSetBit();if(i<0)return t;for(o0&&(t.rShiftTo(i,t),n.rShiftTo(i,n));t.signum()>0;)(o=t.getLowestSetBit())>0&&t.rShiftTo(o,t),(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return i>0&&n.lShiftTo(i,n),n},n.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=S[S.length-1]){for(t=0;t>>8,O[E++]=255&T;E=0,C()}function A(){if(null==k){for(C(),(k=new D).init(O),E=0;E0&&t.length>0))throw new Error("Invalid key data");this.n=new Ke.BigInteger(e,16),this.e=parseInt(t,16)}Ye.prototype.verify=function(e,t){t=t.replace(/[^0-9a-f]|[\s\n]]/gi,"");var n=new Ke.BigInteger(t,16);if(n.bitLength()>this.n.bitLength())throw new Error("Signature does not match with the key modulus.");var r=function(e){for(var t in Qe){var n=Qe[t],r=n.length;if(e.substring(0,r)===n)return{alg:t,hash:e.substring(r)}}return[]}(n.modPowInt(this.e,this.n).toString(16).replace(/^1f+00/,""));if(0===r.length)return!1;if(!Xe.hasOwnProperty(r.alg))throw new Error("Hashing algorithm is not supported.");var o=Xe[r.alg](e).toString();return r.hash===o};for(var Ge=[],Je=[],Ze="undefined"!=typeof Uint8Array?Uint8Array:Array,et="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tt=0,nt=et.length;tt0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}(e),o=r[0],i=r[1],a=new Ze(function(e,t,n){return 3*(t+n)/4-n}(0,o,i)),s=0,u=i>0?o-4:o;for(n=0;n>16&255,a[s++]=t>>8&255,a[s++]=255&t;return 2===i&&(t=Je[e.charCodeAt(n)]<<2|Je[e.charCodeAt(n+1)]>>4,a[s++]=255&t),1===i&&(t=Je[e.charCodeAt(n)]<<10|Je[e.charCodeAt(n+1)]<<4|Je[e.charCodeAt(n+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t),a};function ot(e){var t=e.length%4;return 0===t?e:e+new Array(4-t+1).join("=")}function it(e){return e=ot(e).replace(/\-/g,"+").replace(/_/g,"/"),decodeURIComponent(function(e){for(var t="",n=0;n1){var n=e.shift();e[0]=n+e[0]}e[0]=e[0].match(/^file:\/\/\//)?e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r0&&(o=o.replace(/^[\/]+/,"")),o=o.replace(/[\/]+$/,r0?"?":"")+a.join("&")}return function(){return e("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}},e.exports?e.exports=n():t.urljoin=n()}));function ut(e,t){return t=t||{},new Promise((function(n,r){var o=new XMLHttpRequest,i=[],a=[],s={},u=function e(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(JSON.parse(o.responseText))},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:e,headers:{keys:function(){return i},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var l in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){i.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n})),n(u())},o.onerror=r,o.withCredentials="include"==t.credentials,t.headers)o.setRequestHeader(l,t.headers[l]);o.send(t.body||null)}))}function lt(e){if(e.ok)return e.json();var t=new Error(e.statusText);return t.response=e,Promise.reject(t)}function ct(e){this.name="ConfigurationError",this.message=e||""}function ft(e){this.name="TokenValidationError",this.message=e||""}ct.prototype=Error.prototype,ft.prototype=Error.prototype;var pt=function(){function e(){}var t=e.prototype;return t.get=function(){return null},t.has=function(){return null},t.set=function(){return null},e}();qe.polyfill();var dt=function(e){return"number"==typeof e},ht=function(){return new Date};function vt(e){var t=e||{};if(this.jwksCache=t.jwksCache||new pt,this.expectedAlg=t.expectedAlg||"RS256",this.issuer=t.issuer,this.audience=t.audience,this.leeway=0===t.leeway?0:t.leeway||60,this.jwksURI=t.jwksURI,this.maxAge=t.maxAge,this.__clock="function"==typeof t.__clock?t.__clock:ht,this.leeway<0||this.leeway>300)throw new ct("The leeway should be positive and lower than five minutes.");if("RS256"!==this.expectedAlg)throw new ct('Signature algorithm of "'+this.expectedAlg+'" is not supported. Expected the ID token to be signed with "RS256".')}function mt(e,t){this.plugins=t;for(var n=0;n1){if(!h||"string"!=typeof h)return n(new ft("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values"),null);if(h!==b.audience)return n(new ft('Authorized Party (azp) claim mismatch in the ID token; expected "'+b.audience+'", found "'+h+'"'),null)}if(!f||!dt(f))return n(new ft("Expiration Time (exp) claim must be a number present in the ID token"),null);if(!d||!dt(d))return n(new ft("Issued At (iat) claim must be a number present in the ID token"),null);var s=f+b.leeway,g=new Date(0);if(g.setUTCSeconds(s),y>g)return n(new ft('Expiration Time (exp) claim error in the ID token; current time "'+y+'" is after expiration time "'+g+'"'),null);if(p&&dt(p)){var w=p-b.leeway,_=new Date(0);if(_.setUTCSeconds(w),y<_)return n(new ft('Not Before Time (nbf) claim error in the ID token; current time "'+y+'" is before the not before time "'+_+'"'),null)}if(b.maxAge){if(!v||!dt(v))return n(new ft("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified"),null);var x=v+b.maxAge+b.leeway,k=new Date(0);if(k.setUTCSeconds(x),y>k)return n(new ft('Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time "'+y+'" is after last auth time at "'+k+'"'),null)}return n(null,r.payload)}))},vt.prototype.getRsaVerifier=function(e,t,n){var r=this,o=e+t;Promise.resolve(this.jwksCache.has(o)).then((function(n){return n?r.jwksCache.get(o):(i={jwksURI:r.jwksURI,iss:e,kid:t},("undefined"==typeof fetch?ut:fetch)(i.jwksURI||st(i.iss,".well-known","jwks.json")).then(lt).then((function(e){var t,n,r,o=null;for(t=0;t-1&&null!==new RegExp("rv:([0-9]{2,2}[.0-9]{0,})").exec(t)&&(e=parseFloat(RegExp.$1)),e>=8}();return"undefined"!=typeof window&&window.JSON&&window.JSON.stringify&&window.JSON.parse&&window.postMessage?{open:function(o,i){if(!i)throw"missing required callback argument";var a,s;o.url||(a="missing required 'url' parameter"),o.relay_url||(a="missing required 'relay_url' parameter"),a&&setTimeout((function(){i(a)}),0),o.window_name||(o.window_name=null),o.window_features&&!function(){try{var e=navigator.userAgent;return-1!=e.indexOf("Fennec/")||-1!=e.indexOf("Firefox/")&&-1!=e.indexOf("Android")}catch(Ue){}return!1}()||(o.window_features=void 0);var u,l=o.origin||n(o.url);if(l!==n(o.relay_url))return setTimeout((function(){i("invalid arguments: origin of url and relay_url must match")}),0);r&&((s=document.createElement("iframe")).setAttribute("src",o.relay_url),s.style.display="none",s.setAttribute("name","__winchan_relay_frame"),document.body.appendChild(s),u=s.contentWindow);var c=o.popup||window.open(o.url,o.window_name,o.window_features);o.popup&&(c.location.href=o.url),u||(u=c);var f=setInterval((function(){c&&c.closed&&(d(),i&&(i("User closed the popup window"),i=null))}),500),p=JSON.stringify({a:"request",d:o.params});function d(){if(s&&document.body.removeChild(s),s=void 0,f&&(f=clearInterval(f)),t(window,"message",h),t(window,"unload",d),c)try{c.close()}catch(e){u.postMessage("die",l)}c=u=void 0}function h(e){if(e.origin===l){try{var t=JSON.parse(e.data)}catch(a){if(i)return i(a);throw a}"ready"===t.a?u.postMessage(p,l):"error"===t.a?(d(),i&&(i(t.d),i=null)):"response"===t.a&&(d(),i&&(i(null,t.d),i=null))}}return e(window,"unload",d),e(window,"message",h),{originalPopup:c,close:d,focus:function(){if(c)try{c.focus()}catch(Ue){}}}},onOpen:function(n){var o="*",i=r?function(){for(var e=window.opener.frames,t=e.length-1;t>=0;t--)try{if(e[t].location.protocol===window.location.protocol&&e[t].location.host===window.location.host&&"__winchan_relay_frame"===e[t].name)return e[t]}catch(Ue){}}():window.opener;if(!i)throw"can't find relay frame";function a(e){e=JSON.stringify(e),r?i.doPost(e,o):i.postMessage(e,o)}function s(e){if("die"===e.data)try{window.close()}catch(t){}}e(r?i:window,"message",(function e(r){var i;try{i=JSON.parse(r.data)}catch(s){}i&&"request"===i.a&&(t(window,"message",e),o=r.origin,n&&setTimeout((function(){n(o,i.d,(function(e){n=void 0,a({a:"response",d:e})}))}),0))})),e(r?i:window,"message",s);try{a({a:"ready"})}catch(Ue){e(i,"load",(function(e){a({a:"ready"})}))}var u=function(){try{t(r?i:window,"message",s)}catch(e){}n&&a({a:"error",d:"client closed window"}),n=void 0;try{window.close()}catch(Ue){}};return e(window,"unload",u),{detach:function(){t(window,"unload",u)}}}}:{open:function(e,t,n,r){setTimeout((function(){r("unsupported browser")}),0)},onOpen:function(e){setTimeout((function(){e("unsupported browser")}),0)}}}();e.exports&&(e.exports=t)})),Et=function(e){/^https?:\/\//.test(e)||(e=window.location.href);var t=/^(https?:\/\/[-_a-zA-Z.0-9:]+)/.exec(e);return t?t[1]:e};function St(){this._current_popup=null}function jt(e,t){this.baseOptions=t,this.baseOptions.popupOrigin=t.popupOrigin,this.client=e.client,this.webAuth=e,this.transactionManager=new bt(this.baseOptions),this.crossOriginAuthentication=new _t(e,this.baseOptions),this.warn=new Te({disableWarnings:!!t._disableDeprecationWarnings})}function Ct(e){this.authenticationUrl=e.authenticationUrl,this.timeout=e.timeout||6e4,this.handler=null,this.postMessageDataType=e.postMessageDataType||!1,this.postMessageOrigin=e.postMessageOrigin||Ee.getWindow().location.origin||Ee.getWindow().location.protocol+"//"+Ee.getWindow().location.hostname+(Ee.getWindow().location.port?":"+Ee.getWindow().location.port:"")}function Tt(e){this.baseOptions=e,this.request=new ke(e),this.transactionManager=new bt(this.baseOptions)}function Pt(e,t){this.baseOptions=t,this.client=e,this.baseOptions.universalLoginPage=!0,this.request=new ke(this.baseOptions),this.warn=new Te({disableWarnings:!!t._disableDeprecationWarnings})}St.prototype.calculatePosition=function(e){var t=e.width||500,n=e.height||600,r=Ee.getWindow(),o=void 0!==r.screenX?r.screenX:r.screenLeft,i=void 0!==r.screenY?r.screenY:r.screenTop,a=void 0!==r.outerWidth?r.outerWidth:r.document.body.clientWidth,s=void 0!==r.outerHeight?r.outerHeight:r.document.body.clientHeight;return{width:t,height:n,left:e.left||o+(a-t)/2,top:e.top||i+(s-n)/2}},St.prototype.preload=function(e){var t=this,n=Ee.getWindow(),r=this.calculatePosition(e.popupOptions||{}),o=we.merge(r).with(e.popupOptions),i=e.url||"about:blank",a=R(o,{encode:!1,delimiter:","});return this._current_popup&&!this._current_popup.closed||(this._current_popup=n.open(i,"auth0_signup_popup",a),this._current_popup.kill=function(){this.close(),t._current_popup=null}),this._current_popup},St.prototype.load=function(e,t,n,r){var o=this,i=this.calculatePosition(n.popupOptions||{}),a=we.merge(i).with(n.popupOptions),s=we.merge({url:e,relay_url:t,window_features:R(a,{delimiter:",",encode:!1}),popup:this._current_popup}).with(n),u=Ot.open(s,(function(e,t){if(!e||"SyntaxError"!==e.name)return o._current_popup=null,r(e,t)}));return u.focus(),u},jt.prototype.buildPopupHandler=function(){var e=this.baseOptions.plugins.get("popup.getPopupHandler");return e?e.getPopupHandler():new St},jt.prototype.preload=function(e){e=e||{};var t=this.buildPopupHandler();return t.preload(e),t},jt.prototype.getPopupHandler=function(e,t){return e.popupHandler?e.popupHandler:t?this.preload(e):this.buildPopupHandler()},jt.prototype.callback=function(e){var t=this,n=Ee.getWindow(),r=(e=e||{}).popupOrigin||this.baseOptions.popupOrigin||Ee.getOrigin();n.opener?Ot.onOpen((function(n,o,i){if(n!==r)return i({error:"origin_mismatch",error_description:"The popup's origin ("+n+") should match the `popupOrigin` parameter ("+r+")."});t.webAuth.parseHash(e||{},(function(e,t){return i(e||t)}))})):n.doPost=function(e){n.parent&&n.parent.postMessage(e,r)}},jt.prototype.authorize=function(e,t){var n,r,o={},i=this.baseOptions.plugins.get("popup.authorize"),s=we.merge(this.baseOptions,["clientID","scope","domain","audience","tenant","responseType","redirectUri","_csrf","state","_intstate","nonce","organization","invitation"]).with(we.blacklist(e,["popupHandler"]));return pe.check(s,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),r=a(this.baseOptions.rootUrl,"relay.html"),e.owp?s.owp=!0:(o.origin=Et(s.redirectUri),r=s.redirectUri),e.popupOptions&&(o.popupOptions=we.pick(e.popupOptions,["width","height","top","left"])),i&&(s=i.processParams(s)),(s=this.transactionManager.process(s)).scope=s.scope||"openid profile email",delete s.domain,n=this.client.buildAuthorizeUrl(s),this.getPopupHandler(e).load(n,r,o,Ie(t,{keepOriginalCasing:!0}))},jt.prototype.loginWithCredentials=function(e,t){e.realm=e.realm||e.connection,e.popup=!0,e=we.merge(this.baseOptions,["redirectUri","responseType","state","nonce"]).with(we.blacklist(e,["popupHandler","connection"])),e=this.transactionManager.process(e),this.crossOriginAuthentication.login(e,t)},jt.prototype.passwordlessVerify=function(e,t){var n=this;return this.client.passwordless.verify(we.blacklist(e,["popupHandler"]),(function(r){if(r)return t(r);e.username=e.phoneNumber||e.email,e.password=e.verificationCode,delete e.email,delete e.phoneNumber,delete e.verificationCode,delete e.type,n.client.loginWithResourceOwner(e,t)}))},jt.prototype.signupAndLogin=function(e,t){var n=this;return this.client.dbConnection.signup(e,(function(r){if(r)return t(r);n.loginWithCredentials(e,t)}))},Ct.create=function(e){return new Ct(e)},Ct.prototype.login=function(e,t){this.handler=new gt({auth0:this.auth0,url:this.authenticationUrl,eventListenerType:e?"message":"load",callback:this.getCallbackHandler(t,e),timeout:this.timeout,eventValidator:this.getEventValidator(),timeoutCallback:function(){t(null,"#error=timeout&error_description=Timeout+during+authentication+renew.")},usePostMessage:e||!1}),this.handler.init()},Ct.prototype.getEventValidator=function(){var e=this;return{isValid:function(t){switch(t.event.type){case"message":return t.event.origin===e.postMessageOrigin&&t.event.source===e.handler.iframe.contentWindow&&(!1===e.postMessageDataType||t.event.data.type&&t.event.data.type===e.postMessageDataType);case"load":if("about:"===t.sourceObject.contentWindow.location.protocol)return!1;default:return!0}}}},Ct.prototype.getCallbackHandler=function(e,t){return function(n){var r;r=t?"object"==typeof n.event.data&&n.event.data.hash?n.event.data.hash:n.event.data:n.sourceObject.contentWindow.location.hash,e(null,r)}},Tt.prototype.login=function(e,t){var n,r;return n=a(this.baseOptions.rootUrl,"usernamepassword","login"),e.username=e.username||e.email,e=we.blacklist(e,["email","onRedirecting"]),r=we.merge(this.baseOptions,["clientID","redirectUri","tenant","responseType","responseMode","scope","audience"]).with(e),r=this.transactionManager.process(r),r=we.toSnakeCase(r,["auth0Client"]),this.request.post(n).send(r).end(Ie(t))},Tt.prototype.callback=function(e){var t,n=Ee.getDocument();(t=n.createElement("div")).innerHTML=e,n.body.appendChild(t).children[0].submit()},Pt.prototype.login=function(e,t){if(Ee.getWindow().location.host!==this.baseOptions.domain)throw new Error("This method is meant to be used only inside the Universal Login Page.");var n,r=we.merge(this.baseOptions,["clientID","redirectUri","tenant","responseType","responseMode","scope","audience","_csrf","state","_intstate","nonce"]).with(e);return pe.check(r,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),(n=new Tt(this.baseOptions)).login(r,(function(r,o){if(r)return t(r);function i(){n.callback(o)}if("function"==typeof e.onRedirecting)return e.onRedirecting((function(){i()}));i()}))},Pt.prototype.signupAndLogin=function(e,t){var n=this;return n.client.client.dbConnection.signup(e,(function(r){return r?t(r):n.login(e,t)}))},Pt.prototype.getSSOData=function(e,t){var n,r="";return"function"==typeof e&&(t=e,e=!1),pe.check(e,{type:"boolean",message:"withActiveDirectories parameter is not valid"}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),e&&(r="?"+R({ldaps:1,client_id:this.baseOptions.clientID})),n=a(this.baseOptions.rootUrl,"user","ssodata",r),this.request.get(n,{noHeaders:!0}).withCredentials().end(Ie(t))};var Rt=function(){},At={lang:"en",templates:{auth0:function(e){var t="code"===e.type?"Enter the code shown above":"Solve the formula shown above";return'
\n \n \n
\n'},recaptcha_v2:function(){return'
'},recaptcha_enterprise:function(){return'
'},error:function(){return'
Error getting the bot detection challenge. Please contact the system administrator.
'}}};function Mt(e){switch(e){case"recaptcha_v2":return window.grecaptcha;case"recaptcha_enterprise":return window.grecaptcha.enterprise;default:throw new Error("Unknown captcha provider")}}var Dt=function(e,t,n,r){function o(r){r=r||Rt,e.getChallenge((function(e,i){return e?(t.innerHTML=n.templates.error(e),r(e)):i.required?(t.style.display="","auth0"===i.provider?function(e,t,n,r){e.innerHTML=t.templates[n.provider](n),e.querySelector(".captcha-reload").addEventListener("click",(function(e){e.preventDefault(),r()}))}(t,n,i,o):"recaptcha_v2"!==i.provider&&"recaptcha_enterprise"!==i.provider||function(e,t,n){var r=e.hasAttribute("data-wid")&&e.getAttribute("data-wid");function o(t){e.querySelector('input[name="captcha"]').value=t||""}if(r)return o(),void Mt(n.provider).reset(r);e.innerHTML=t.templates[n.provider](n);var i=e.querySelector(".recaptcha");!function(e,t,n){var r="recaptchaCallback_"+Math.floor(1000001*Math.random());window[r]=function(){delete window[r],n()};var o=window.document.createElement("script");o.src=function(e,t,n){switch(e){case"recaptcha_v2":return"https://www.recaptcha.net/recaptcha/api.js?hl="+t+"&onload="+n;case"recaptcha_enterprise":return"https://www.recaptcha.net/recaptcha/enterprise.js?render=explicit&hl="+t+"&onload="+n;default:throw new Error("Unknown captcha provider")}}(t.provider,t.lang,r),o.async=!0,window.document.body.appendChild(o)}(0,{lang:t.lang,provider:n.provider},(function(){var t=Mt(n.provider);r=t.render(i,{callback:o,"expired-callback":function(){o()},"error-callback":function(){o()},sitekey:n.siteKey}),e.setAttribute("data-wid",r)}))}(t,n,i),void r()):(t.style.display="none",void(t.innerHTML=""))}))}return n=we.merge(At).with(n||{}),o(r),{reload:o,getValue:function(){var e=t.querySelector('input[name="captcha"]');if(e)return e.value}}};function It(){return new Date}function Nt(e){pe.check(e,{type:"object",message:"options parameter is not valid"},{domain:{type:"string",message:"domain option is required"},clientID:{type:"string",message:"clientID option is required"},responseType:{optional:!0,type:"string",message:"responseType is not valid"},responseMode:{optional:!0,type:"string",message:"responseMode is not valid"},redirectUri:{optional:!0,type:"string",message:"redirectUri is not valid"},scope:{optional:!0,type:"string",message:"scope is not valid"},audience:{optional:!0,type:"string",message:"audience is not valid"},popupOrigin:{optional:!0,type:"string",message:"popupOrigin is not valid"},leeway:{optional:!0,type:"number",message:"leeway is not valid"},plugins:{optional:!0,type:"array",message:"plugins is not valid"},maxAge:{optional:!0,type:"number",message:"maxAge is not valid"},_disableDeprecationWarnings:{optional:!0,type:"boolean",message:"_disableDeprecationWarnings option is not valid"},_sendTelemetry:{optional:!0,type:"boolean",message:"_sendTelemetry option is not valid"},_telemetryInfo:{optional:!0,type:"object",message:"_telemetryInfo option is not valid"},_timesToRetryFailedRequests:{optional:!0,type:"number",message:"_timesToRetryFailedRequests option is not valid"}}),e.overrides&&pe.check(e.overrides,{type:"object",message:"overrides option is not valid"},{__tenant:{optional:!0,type:"string",message:"__tenant option is required"},__token_issuer:{optional:!0,type:"string",message:"__token_issuer option is required"},__jwks_uri:{optional:!0,type:"string",message:"__jwks_uri is required"}}),this.baseOptions=e,this.baseOptions.plugins=new mt(this,this.baseOptions.plugins||[]),this.baseOptions._sendTelemetry=!1!==this.baseOptions._sendTelemetry||this.baseOptions._sendTelemetry,this.baseOptions._timesToRetryFailedRequests=e._timesToRetryFailedRequests?parseInt(e._timesToRetryFailedRequests,0):0,this.baseOptions.tenant=this.baseOptions.overrides&&this.baseOptions.overrides.__tenant||this.baseOptions.domain.split(".")[0],this.baseOptions.token_issuer=this.baseOptions.overrides&&this.baseOptions.overrides.__token_issuer||"https://"+this.baseOptions.domain+"/",this.baseOptions.jwksURI=this.baseOptions.overrides&&this.baseOptions.overrides.__jwks_uri,this.transactionManager=new bt(this.baseOptions),this.client=new Ft(this.baseOptions),this.redirect=new kt(this,this.baseOptions),this.popup=new jt(this,this.baseOptions),this.crossOriginAuthentication=new _t(this,this.baseOptions),this.webMessageHandler=new wt(this),this._universalLogin=new Pt(this,this.baseOptions),this.ssodataStorage=new Ae(this.baseOptions)}function Lt(e,t){this.baseOptions=t,this.request=e}function zt(e,t){this.baseOptions=t,this.request=e}function Ft(e,t){2===arguments.length?this.auth0=e:t=e,pe.check(t,{type:"object",message:"options parameter is not valid"},{domain:{type:"string",message:"domain option is required"},clientID:{type:"string",message:"clientID option is required"},responseType:{optional:!0,type:"string",message:"responseType is not valid"},responseMode:{optional:!0,type:"string",message:"responseMode is not valid"},redirectUri:{optional:!0,type:"string",message:"redirectUri is not valid"},scope:{optional:!0,type:"string",message:"scope is not valid"},audience:{optional:!0,type:"string",message:"audience is not valid"},_disableDeprecationWarnings:{optional:!0,type:"boolean",message:"_disableDeprecationWarnings option is not valid"},_sendTelemetry:{optional:!0,type:"boolean",message:"_sendTelemetry option is not valid"},_telemetryInfo:{optional:!0,type:"object",message:"_telemetryInfo option is not valid"}}),this.baseOptions=t,this.baseOptions._sendTelemetry=!1!==this.baseOptions._sendTelemetry||this.baseOptions._sendTelemetry,this.baseOptions.rootUrl=this.baseOptions.domain&&0===this.baseOptions.domain.toLowerCase().indexOf("http")?this.baseOptions.domain:"https://"+this.baseOptions.domain,this.request=new ke(this.baseOptions),this.passwordless=new Lt(this.request,this.baseOptions),this.dbConnection=new zt(this.request,this.baseOptions),this.warn=new Te({disableWarnings:!!t._disableDeprecationWarnings}),this.ssodataStorage=new Ae(this.baseOptions)}function Bt(e){pe.check(e,{type:"object",message:"options parameter is not valid"},{domain:{type:"string",message:"domain option is required"},token:{type:"string",message:"token option is required"},_sendTelemetry:{optional:!0,type:"boolean",message:"_sendTelemetry option is not valid"},_telemetryInfo:{optional:!0,type:"object",message:"_telemetryInfo option is not valid"}}),this.baseOptions=e,this.baseOptions.headers={Authorization:"Bearer "+this.baseOptions.token},this.request=new ke(this.baseOptions),this.baseOptions.rootUrl=a("https://"+this.baseOptions.domain,"api","v2")}Nt.prototype.parseHash=function(e,t){var n,r;t||"function"!=typeof e?e=e||{}:(t=e,e={});var o=Ee.getWindow(),i=void 0===e.hash?o.location.hash:e.hash;if((n=function(e,t){var n=function(e){if(!e)return j;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?j.charset:e.charset;return{allowDots:void 0===e.allowDots?j.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:j.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:j.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:j.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:j.comma,decoder:"function"==typeof e.decoder?e.decoder:j.decoder,delimiter:"string"==typeof e.delimiter||f.isRegExp(e.delimiter)?e.delimiter:j.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:j.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:j.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:j.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:j.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:j.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var r="string"==typeof e?function(e,t){var n,r={},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,a=o.split(t.delimiter,i),s=-1,u=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(c=S(c)?[c]:c),E.call(r,l)?r[l]=f.combine(r[l],c):r[l]=c}return r}(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(r),a=0;a0&&-1!==a.indexOf("token")&&!n.hasOwnProperty("access_token")?t(De.buildResponse("invalid_hash","response_type contains `token`, but the parsed hash does not contain an `access_token` property")):a.length>0&&-1!==a.indexOf("id_token")&&!n.hasOwnProperty("id_token")?t(De.buildResponse("invalid_hash","response_type contains `id_token`, but the parsed hash does not contain an `id_token` property")):this.validateAuthenticationResponse(e,n,t)},Nt.prototype.validateAuthenticationResponse=function(e,t,n){var r=this;e.__enableIdPInitiatedLogin=e.__enableIdPInitiatedLogin||e.__enableImpersonation;var o=t.state,i=this.transactionManager.getStoredTransaction(o),a=e.state||i&&i.state||null,s=a===o;if((o||a||!e.__enableIdPInitiatedLogin)&&!s)return n({error:"invalid_token",errorDescription:"`state` does not match."});var u=e.nonce||i&&i.nonce||null,l=i&&i.organization,c=e.state||i&&i.appState||null,f=function(e,o){return e?n(e):(i&&i.lastUsedConnection&&(o&&(a=o.sub),r.ssodataStorage.set(i.lastUsedConnection,a)),n(null,function(e,t,n){return{accessToken:e.access_token||null,idToken:e.id_token||null,idTokenPayload:n||null,appState:t||null,refreshToken:e.refresh_token||null,state:e.state||null,expiresIn:e.expires_in?parseInt(e.expires_in,10):null,tokenType:e.token_type||null,scope:e.scope||null}}(t,c,o)));var a};return t.id_token?this.validateToken(t.id_token,u,(function(e,n){if(!e){if(l){if(!n.org_id)return f(De.invalidToken("Organization Id (org_id) claim must be a string present in the ID token"));if(n.org_id!==l)return f(De.invalidToken('Organization Id (org_id) claim value mismatch in the ID token; expected "'+l+'", found "'+n.org_id+'"'))}return t.access_token&&n.at_hash?(new vt).validateAccessToken(t.access_token,"RS256",n.at_hash,(function(e){return e?f(De.invalidToken(e.message)):f(null,n)})):f(null,n)}if("invalid_token"!==e.error||e.errorDescription&&e.errorDescription.indexOf("Nonce (nonce) claim value mismatch in the ID token")>-1)return f(e);var o=(new vt).decode(t.id_token);return"HS256"!==o.header.alg?f(e):(o.payload.nonce||null)!==u?f({error:"invalid_token",errorDescription:'Nonce (nonce) claim value mismatch in the ID token; expected "'+u+'", found "'+o.payload.nonce+'"'}):t.access_token?r.client.userInfo(t.access_token,(function(e,t){return e?f(e):f(null,t)})):f({error:"invalid_token",description:"The id_token cannot be validated because it was signed with the HS256 algorithm and public clients (like a browser) can\u2019t store secrets. Please read the associated doc for possible ways to fix this. Read more: https://auth0.com/docs/errors/libraries/auth0-js/invalid-token#parsing-an-hs256-signed-id-token-without-an-access-token"})})):f(null,null)},Nt.prototype.validateToken=function(e,t,n){new vt({issuer:this.baseOptions.token_issuer,jwksURI:this.baseOptions.jwksURI,audience:this.baseOptions.clientID,leeway:this.baseOptions.leeway||60,maxAge:this.baseOptions.maxAge,__clock:this.baseOptions.__clock||It}).verify(e,t,(function(e,t){if(e)return n(De.invalidToken(e.message));n(null,t)}))},Nt.prototype.renewAuth=function(e,t){var n=!!e.usePostMessage,r=e.postMessageDataType||!1,o=e.postMessageOrigin||Ee.getWindow().origin,i=e.timeout,a=this,s=we.merge(this.baseOptions,["clientID","redirectUri","responseType","scope","audience","_csrf","state","_intstate","nonce"]).with(e);s.responseType=s.responseType||"token",s.responseMode=s.responseMode||"fragment",s=this.transactionManager.process(s),pe.check(s,{type:"object",message:"options parameter is not valid"}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),s.prompt="none",s=we.blacklist(s,["usePostMessage","tenant","postMessageDataType","postMessageOrigin"]),Ct.create({authenticationUrl:this.client.buildAuthorizeUrl(s),postMessageDataType:r,postMessageOrigin:o,timeout:i}).login(n,(function(e,n){if("object"==typeof n)return t(e,n);a.parseHash({hash:n},t)}))},Nt.prototype.checkSession=function(e,t){var n=we.merge(this.baseOptions,["clientID","responseType","redirectUri","scope","audience","_csrf","state","_intstate","nonce"]).with(e);return"code"===n.responseType?t({error:"error",error_description:"responseType can't be `code`"}):(e.nonce||(n=this.transactionManager.process(n)),n.redirectUri?(pe.check(n,{type:"object",message:"options parameter is not valid"}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),n=we.blacklist(n,["usePostMessage","tenant","postMessageDataType"]),void this.webMessageHandler.run(n,Ie(t,{forceLegacyError:!0,ignoreCasing:!0}))):t({error:"error",error_description:"redirectUri can't be empty"}))},Nt.prototype.changePassword=function(e,t){return this.client.dbConnection.changePassword(e,t)},Nt.prototype.passwordlessStart=function(e,t){var n=we.merge(this.baseOptions,["responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","nonce"]).with(e.authParams);return e.authParams=this.transactionManager.process(n),this.client.passwordless.start(e,t)},Nt.prototype.signup=function(e,t){return this.client.dbConnection.signup(e,t)},Nt.prototype.authorize=function(e){var t=we.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","nonce","organization","invitation"]).with(e);pe.check(t,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),(t=this.transactionManager.process(t)).scope=t.scope||"openid profile email",Ee.redirect(this.client.buildAuthorizeUrl(t))},Nt.prototype.signupAndAuthorize=function(e,t){var n=this;return this.client.dbConnection.signup(we.blacklist(e,["popupHandler"]),(function(r){if(r)return t(r);e.realm=e.connection,e.username||(e.username=e.email),n.client.login(e,t)}))},Nt.prototype.login=function(e,t){var n=we.merge(this.baseOptions,["clientID","responseType","redirectUri","scope","audience","_csrf","state","_intstate","nonce","onRedirecting","organization","invitation"]).with(e);n=this.transactionManager.process(n),Ee.getWindow().location.host===this.baseOptions.domain?(n.connection=n.realm,delete n.realm,this._universalLogin.login(n,t)):this.crossOriginAuthentication.login(n,t)},Nt.prototype.passwordlessLogin=function(e,t){var n=we.merge(this.baseOptions,["clientID","responseType","redirectUri","scope","audience","_csrf","state","_intstate","nonce","onRedirecting"]).with(e);if(n=this.transactionManager.process(n),Ee.getWindow().location.host===this.baseOptions.domain)this.passwordlessVerify(n,t);else{var r=we.extend({credentialType:"http://auth0.com/oauth/grant-type/passwordless/otp",realm:n.connection,username:n.email||n.phoneNumber,otp:n.verificationCode},we.blacklist(n,["connection","email","phoneNumber","verificationCode"]));this.crossOriginAuthentication.login(r,t)}},Nt.prototype.crossOriginAuthenticationCallback=function(){this.crossOriginVerification()},Nt.prototype.crossOriginVerification=function(){this.crossOriginAuthentication.callback()},Nt.prototype.logout=function(e){Ee.redirect(this.client.buildLogoutUrl(e))},Nt.prototype.passwordlessVerify=function(e,t){var n=this,r=we.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","nonce","onRedirecting"]).with(e);return pe.check(r,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),r=this.transactionManager.process(r),this.client.passwordless.verify(r,(function(o){if(o)return t(o);function i(){Ee.redirect(n.client.passwordless.buildVerifyUrl(r))}if("function"==typeof e.onRedirecting)return e.onRedirecting((function(){i()}));i()}))},Nt.prototype.renderCaptcha=function(e,t,n){return Dt(this.client,e,t,n)},Lt.prototype.buildVerifyUrl=function(e){var t,n;return pe.check(e,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},verificationCode:{type:"string",message:"verificationCode option is required"},phoneNumber:{optional:!1,type:"string",message:"phoneNumber option is required",condition:function(e){return!e.email}},email:{optional:!1,type:"string",message:"email option is required",condition:function(e){return!e.phoneNumber}}}),t=we.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","protocol","nonce"]).with(e),this.baseOptions._sendTelemetry&&(t.auth0Client=this.request.getTelemetryData()),t=we.toSnakeCase(t,["auth0Client"]),n=R(t),a(this.baseOptions.rootUrl,"passwordless","verify_redirect","?"+n)},Lt.prototype.start=function(e,t){var n,r;return pe.check(e,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},send:{type:"string",message:"send option is required",values:["link","code"],value_message:"send is not valid ([link, code])"},phoneNumber:{optional:!0,type:"string",message:"phoneNumber option is required",condition:function(e){return"code"===e.send||!e.email}},email:{optional:!0,type:"string",message:"email option is required",condition:function(e){return"link"===e.send||!e.phoneNumber}},authParams:{optional:!0,type:"object",message:"authParams option is required"}}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),n=a(this.baseOptions.rootUrl,"passwordless","start"),(r=we.merge(this.baseOptions,["clientID","responseType","redirectUri","scope"]).with(e)).scope&&(r.authParams=r.authParams||{},r.authParams.scope=r.authParams.scope||r.scope),r.redirectUri&&(r.authParams=r.authParams||{},r.authParams.redirect_uri=r.authParams.redirectUri||r.redirectUri),r.responseType&&(r.authParams=r.authParams||{},r.authParams.response_type=r.authParams.responseType||r.responseType),delete r.redirectUri,delete r.responseType,delete r.scope,r=we.toSnakeCase(r,["auth0Client","authParams"]),this.request.post(n).send(r).end(Ie(t))},Lt.prototype.verify=function(e,t){var n,r;return pe.check(e,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},verificationCode:{type:"string",message:"verificationCode option is required"},phoneNumber:{optional:!1,type:"string",message:"phoneNumber option is required",condition:function(e){return!e.email}},email:{optional:!1,type:"string",message:"email option is required",condition:function(e){return!e.phoneNumber}}}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),r=we.pick(e,["connection","verificationCode","phoneNumber","email","auth0Client"]),r=we.toSnakeCase(r,["auth0Client"]),n=a(this.baseOptions.rootUrl,"passwordless","verify"),this.request.post(n).send(r).end(Ie(t))},zt.prototype.signup=function(e,t){var n,r,o;return pe.check(e,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},email:{type:"string",message:"email option is required"},password:{type:"string",message:"password option is required"}}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),n=a(this.baseOptions.rootUrl,"dbconnections","signup"),o=(r=we.merge(this.baseOptions,["clientID","state"]).with(e)).user_metadata||r.userMetadata,r=we.blacklist(r,["scope","userMetadata","user_metadata"]),r=we.toSnakeCase(r,["auth0Client"]),o&&(r.user_metadata=o),this.request.post(n).send(r).end(Ie(t))},zt.prototype.changePassword=function(e,t){var n,r;return pe.check(e,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},email:{type:"string",message:"email option is required"}}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),n=a(this.baseOptions.rootUrl,"dbconnections","change_password"),r=we.merge(this.baseOptions,["clientID"]).with(e,["email","connection"]),r=we.toSnakeCase(r,["auth0Client"]),this.request.post(n).send(r).end(Ie(t))},Ft.prototype.buildAuthorizeUrl=function(e){var t,n;return pe.check(e,{type:"object",message:"options parameter is not valid"}),t=we.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience"]).with(e),pe.check(t,{type:"object",message:"options parameter is not valid"},{clientID:{type:"string",message:"clientID option is required"},redirectUri:{optional:!0,type:"string",message:"redirectUri option is required"},responseType:{type:"string",message:"responseType option is required"},nonce:{type:"string",message:"nonce option is required",condition:function(e){return-1===e.responseType.indexOf("code")&&-1!==e.responseType.indexOf("id_token")}},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),this.baseOptions._sendTelemetry&&(t.auth0Client=this.request.getTelemetryData()),t.connection_scope&&pe.isArray(t.connection_scope)&&(t.connection_scope=t.connection_scope.join(",")),t=we.blacklist(t,["username","popupOptions","domain","tenant","timeout","appState"]),t=we.toSnakeCase(t,["auth0Client"]),t=Fe(this.warn,t),n=R(t),a(this.baseOptions.rootUrl,"authorize","?"+n)},Ft.prototype.buildLogoutUrl=function(e){var t,n;return pe.check(e,{optional:!0,type:"object",message:"options parameter is not valid"}),t=we.merge(this.baseOptions,["clientID"]).with(e||{}),this.baseOptions._sendTelemetry&&(t.auth0Client=this.request.getTelemetryData()),t=we.toSnakeCase(t,["auth0Client","returnTo"]),n=R(we.blacklist(t,["federated"])),e&&void 0!==e.federated&&!1!==e.federated&&"false"!==e.federated&&(n+="&federated"),a(this.baseOptions.rootUrl,"v2","logout","?"+n)},Ft.prototype.loginWithDefaultDirectory=function(e,t){return pe.check(e,{type:"object",message:"options parameter is not valid"},{username:{type:"string",message:"username option is required"},password:{type:"string",message:"password option is required"},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),e.grantType="password",this.oauthToken(e,t)},Ft.prototype.login=function(e,t){return pe.check(e,{type:"object",message:"options parameter is not valid"},{username:{type:"string",message:"username option is required"},password:{type:"string",message:"password option is required"},realm:{type:"string",message:"realm option is required"},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),e.grantType="http://auth0.com/oauth/grant-type/password-realm",this.oauthToken(e,t)},Ft.prototype.oauthToken=function(e,t){var n,r;return pe.check(e,{type:"object",message:"options parameter is not valid"}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),n=a(this.baseOptions.rootUrl,"oauth","token"),r=we.merge(this.baseOptions,["clientID","scope","audience"]).with(e),pe.check(r,{type:"object",message:"options parameter is not valid"},{clientID:{type:"string",message:"clientID option is required"},grantType:{type:"string",message:"grantType option is required"},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),r=we.toSnakeCase(r,["auth0Client"]),r=ze(this.warn,r),this.request.post(n).send(r).end(Ie(t))},Ft.prototype.loginWithResourceOwner=function(e,t){var n,r;return pe.check(e,{type:"object",message:"options parameter is not valid"},{username:{type:"string",message:"username option is required"},password:{type:"string",message:"password option is required"},connection:{type:"string",message:"connection option is required"},scope:{optional:!0,type:"string",message:"scope option is required"}}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),n=a(this.baseOptions.rootUrl,"oauth","ro"),r=we.merge(this.baseOptions,["clientID","scope"]).with(e,["username","password","scope","connection","device"]),(r=we.toSnakeCase(r,["auth0Client"])).grant_type=r.grant_type||"password",this.request.post(n).send(r).end(Ie(t))},Ft.prototype.getSSOData=function(e,t){if(this.auth0||(this.auth0=new Nt(this.baseOptions)),Ee.getWindow().location.host===this.baseOptions.domain)return this.auth0._universalLogin.getSSOData(e,t);"function"==typeof e&&(t=e),pe.check(t,{type:"function",message:"cb parameter is not valid"});var n=this.baseOptions.clientID,r=this.ssodataStorage.get()||{};this.auth0.checkSession({responseType:"token id_token",scope:"openid profile email",connection:r.lastUsedConnection,timeout:5e3},(function(e,o){return e?"login_required"===e.error?t(null,{sso:!1}):("consent_required"===e.error&&(e.error_description="Consent required. When using `getSSOData`, the user has to be authenticated with the following scope: `openid profile email`."),t(e,{sso:!1})):r.lastUsedSub&&r.lastUsedSub!==o.idTokenPayload.sub?t(e,{sso:!1}):t(null,{lastUsedConnection:{name:r.lastUsedConnection},lastUsedUserID:o.idTokenPayload.sub,lastUsedUsername:o.idTokenPayload.email||o.idTokenPayload.name,lastUsedClientID:n,sessionClients:[n],sso:!0})}))},Ft.prototype.userInfo=function(e,t){var n;return pe.check(e,{type:"string",message:"accessToken parameter is not valid"}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),n=a(this.baseOptions.rootUrl,"userinfo"),this.request.get(n).set("Authorization","Bearer "+e).end(Ie(t,{ignoreCasing:!0}))},Ft.prototype.getChallenge=function(e){if(pe.check(e,{type:"function",message:"cb parameter is not valid"}),!this.baseOptions.state)return e();var t=a(this.baseOptions.rootUrl,"usernamepassword","challenge");return this.request.post(t).send({state:this.baseOptions.state}).end(Ie(e,{ignoreCasing:!0}))},Ft.prototype.delegation=function(e,t){var n,r;return pe.check(e,{type:"object",message:"options parameter is not valid"},{grant_type:{type:"string",message:"grant_type option is required"}}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),n=a(this.baseOptions.rootUrl,"delegation"),r=we.merge(this.baseOptions,["clientID"]).with(e),r=we.toSnakeCase(r,["auth0Client"]),this.request.post(n).send(r).end(Ie(t))},Ft.prototype.getUserCountry=function(e){var t;return pe.check(e,{type:"function",message:"cb parameter is not valid"}),t=a(this.baseOptions.rootUrl,"user","geoloc","country"),this.request.get(t).end(Ie(e))},Bt.prototype.getUser=function(e,t){var n;return pe.check(e,{type:"string",message:"userId parameter is not valid"}),pe.check(t,{type:"function",message:"cb parameter is not valid"}),n=a(this.baseOptions.rootUrl,"users",e),this.request.get(n).end(Ie(t,{ignoreCasing:!0}))},Bt.prototype.patchUserMetadata=function(e,t,n){var r;return pe.check(e,{type:"string",message:"userId parameter is not valid"}),pe.check(t,{type:"object",message:"userMetadata parameter is not valid"}),pe.check(n,{type:"function",message:"cb parameter is not valid"}),r=a(this.baseOptions.rootUrl,"users",e),this.request.patch(r).send({user_metadata:t}).end(Ie(n,{ignoreCasing:!0}))},Bt.prototype.patchUserAttributes=function(e,t,n){var r;return pe.check(e,{type:"string",message:"userId parameter is not valid"}),pe.check(t,{type:"object",message:"user parameter is not valid"}),pe.check(n,{type:"function",message:"cb parameter is not valid"}),r=a(this.baseOptions.rootUrl,"users",e),this.request.patch(r).send(t).end(Ie(n,{ignoreCasing:!0}))},Bt.prototype.linkUser=function(e,t,n){var r;return pe.check(e,{type:"string",message:"userId parameter is not valid"}),pe.check(t,{type:"string",message:"secondaryUserToken parameter is not valid"}),pe.check(n,{type:"function",message:"cb parameter is not valid"}),r=a(this.baseOptions.rootUrl,"users",e,"identities"),this.request.post(r).send({link_with:t}).end(Ie(n,{ignoreCasing:!0}))}}).call(this,n(40),n(64))},function(e,t,n){var r;e.exports=(r=n(0),function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=48)}([function(e,t){e.exports=r},function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(26)("wks"),o=n(17),i=n(3).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){e.exports=!n(8)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(7),o=n(16);e.exports=n(4)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(10),o=n(35),i=n(23),a=Object.defineProperty;t.f=n(4)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(40),o=n(22);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(11);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports={}},function(e,t,n){var r=n(39),o=n(27);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){e.exports=!0},function(e,t,n){var r=n(3),o=n(1),i=n(53),a=n(6),s=n(5),u=function e(t,n,u){var l,c,f,p=t&e.F,d=t&e.G,h=t&e.S,v=t&e.P,m=t&e.B,y=t&e.W,b=d?o:o[n]||(o[n]={}),g=b.prototype,w=d?r:h?r[n]:(r[n]||{}).prototype;for(l in d&&(u=n),u)(c=!p&&w&&void 0!==w[l])&&s(b,l)||(f=c?w[l]:u[l],b[l]=d&&"function"!=typeof w[l]?u[l]:m&&c?i(f,r):y&&w[l]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):v&&"function"==typeof f?i(Function.call,f):f,v&&((b.virtual||(b.virtual={}))[l]=f,t&e.R&&g&&!g[l]&&a(g,l,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(22);e.exports=function(e){return Object(r(e))}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";var r=n(52)(!0);n(34)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(11);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(26)("keys"),o=n(17);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(1),o=n(3),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(14)?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(7).f,o=n(5),i=n(2)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){n(62);for(var r=n(3),o=n(6),i=n(12),a=n(2)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;udocument.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[i[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=u(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(5),o=n(9),i=n(57)(!1),a=n(25)("IE_PROTO");e.exports=function(e,t){var n,s=o(e),u=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~i(l,n)||l.push(n));return l}},function(e,t,n){var r=n(24);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(39),o=n(27).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(24),o=n(2)("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){var n=/-?\d+(\.\d+)?%?/g;e.exports=function(e){return e.match(n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBase16Theme=t.createStyling=t.invertTheme=void 0;var r=d(n(49)),o=d(n(76)),i=d(n(81)),a=d(n(89)),s=d(n(93)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(94)),l=d(n(132)),c=d(n(133)),f=d(n(138)),p=n(139);function d(e){return e&&e.__esModule?e:{default:e}}var h=u.default,v=(0,a.default)(h),m=(0,f.default)(c.default,p.rgb2yuv,(function(e){var t,n=(0,i.default)(e,3);return[(t=n[0],t<.25?1:t<.5?.9-t:1.1-t),n[1],n[2]]}),p.yuv2rgb,l.default),y=function(e){return function(t){return{className:[t.className,e.className].filter(Boolean).join(" "),style:(0,o.default)({},t.style||{},e.style||{})}}},b=function(e,t){var n=(0,a.default)(t);for(var i in e)-1===n.indexOf(i)&&n.push(i);return n.reduce((function(n,i){return n[i]=function(e,t){if(void 0===e)return t;if(void 0===t)return e;var n=void 0===e?"undefined":(0,r.default)(e),i=void 0===t?"undefined":(0,r.default)(t);switch(n){case"string":switch(i){case"string":return[t,e].filter(Boolean).join(" ");case"object":return y({className:e,style:t});case"function":return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i2?n-2:0),s=2;s3?t-3:0),r=3;r1&&void 0!==arguments[1]?arguments[1]:{},u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=i.defaultBase16,c=void 0===l?h:l,f=i.base16Themes,p=_(u,void 0===f?null:f);p&&(u=(0,o.default)({},p,u));var d=v.reduce((function(e,t){return e[t]=u[t]||c[t],e}),{}),m=(0,a.default)(u).reduce((function(e,t){return-1===v.indexOf(t)?(e[t]=u[t],e):e}),{}),y=e(d),w=b(m,y);return(0,s.default)(g,2).apply(void 0,[w].concat(n))}),3),t.getBase16Theme=function(e,t){if(e&&e.extend&&(e=e.extend),"string"==typeof e){var n=e.split(":"),r=(0,i.default)(n,2),o=r[0],a=r[1];e=(t||{})[o]||u[o],"inverted"===a&&(e=w(e))}return e&&e.hasOwnProperty("base00")?e:void 0})},function(e,t,n){"use strict";var r,o="object"==typeof Reflect?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,r){function o(){void 0!==i&&e.removeListener("error",i),n([].slice.call(arguments))}var i;"error"!==t&&(i=function(n){e.removeListener(t,o),r(n)},e.once("error",i)),e.once(t,o)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function f(e,t,n,r){var o,i,a,s;if(l(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=c(e))>0&&a.length>o&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=p.bind(r);return o.listener=n,r.wrapFn=o,o}function h(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)i(u,this,t);else{var l=u.length,c=m(u,l);for(n=0;n=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},s.prototype.listenerCount=v,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){e.exports.Dispatcher=n(140)},function(e,t,n){e.exports=n(142)},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(50)),o=a(n(65)),i="function"==typeof o.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof o.default&&"symbol"===i(r.default)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":void 0===e?"undefined":i(e)}},function(e,t,n){e.exports={default:n(51),__esModule:!0}},function(e,t,n){n(20),n(29),e.exports=n(30).f("iterator")},function(e,t,n){var r=n(21),o=n(22);e.exports=function(e){return function(t,n){var i,a,s=String(o(t)),u=r(n),l=s.length;return u<0||u>=l?e?"":void 0:(i=s.charCodeAt(u))<55296||i>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):i:e?s.slice(u,u+2):a-56320+(i-55296<<10)+65536}}},function(e,t,n){var r=n(54);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var r=n(38),o=n(16),i=n(28),a={};n(6)(a,n(2)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var r=n(7),o=n(10),i=n(13);e.exports=n(4)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),s=a.length,u=0;s>u;)r.f(e,n=a[u++],t[n]);return e}},function(e,t,n){var r=n(9),o=n(58),i=n(59);e.exports=function(e){return function(t,n,a){var s,u=r(t),l=o(u.length),c=i(a,l);if(e&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var r=n(21),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(21),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t,n){var r=n(3).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(5),o=n(18),i=n(25)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){"use strict";var r=n(63),o=n(64),i=n(12),a=n(9);e.exports=n(34)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports={default:n(66),__esModule:!0}},function(e,t,n){n(67),n(73),n(74),n(75),e.exports=n(1).Symbol},function(e,t,n){"use strict";var r=n(3),o=n(5),i=n(4),a=n(15),s=n(37),u=n(68).KEY,l=n(8),c=n(26),f=n(28),p=n(17),d=n(2),h=n(30),v=n(31),m=n(69),y=n(70),b=n(10),g=n(11),w=n(18),_=n(9),x=n(23),k=n(16),O=n(38),E=n(71),S=n(72),j=n(32),C=n(7),T=n(13),P=S.f,R=C.f,A=E.f,M=r.Symbol,D=r.JSON,I=D&&D.stringify,N=d("_hidden"),L=d("toPrimitive"),z={}.propertyIsEnumerable,F=c("symbol-registry"),B=c("symbols"),U=c("op-symbols"),q=Object.prototype,W="function"==typeof M&&!!j.f,V=r.QObject,H=!V||!V.prototype||!V.prototype.findChild,$=i&&l((function(){return 7!=O(R({},"a",{get:function(){return R(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=P(q,t);r&&delete q[t],R(e,t,n),r&&e!==q&&R(q,t,r)}:R,K=function(e){var t=B[e]=O(M.prototype);return t._k=e,t},Q=W&&"symbol"==typeof M.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof M},X=function e(t,n,r){return t===q&&e(U,n,r),b(t),n=x(n,!0),b(r),o(B,n)?(r.enumerable?(o(t,N)&&t[N][n]&&(t[N][n]=!1),r=O(r,{enumerable:k(0,!1)})):(o(t,N)||R(t,N,k(1,{})),t[N][n]=!0),$(t,n,r)):R(t,n,r)},Y=function(e,t){b(e);for(var n,r=m(t=_(t)),o=0,i=r.length;i>o;)X(e,n=r[o++],t[n]);return e},G=function(e){var t=z.call(this,e=x(e,!0));return!(this===q&&o(B,e)&&!o(U,e))&&(!(t||!o(this,e)||!o(B,e)||o(this,N)&&this[N][e])||t)},J=function(e,t){if(e=_(e),t=x(t,!0),e!==q||!o(B,t)||o(U,t)){var n=P(e,t);return!n||!o(B,t)||o(e,N)&&e[N][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=A(_(e)),r=[],i=0;n.length>i;)o(B,t=n[i++])||t==N||t==u||r.push(t);return r},ee=function(e){for(var t,n=e===q,r=A(n?U:_(e)),i=[],a=0;r.length>a;)!o(B,t=r[a++])||n&&!o(q,t)||i.push(B[t]);return i};W||(s((M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function t(n){this===q&&t.call(U,n),o(this,N)&&o(this[N],e)&&(this[N][e]=!1),$(this,e,k(1,n))};return i&&H&&$(q,e,{configurable:!0,set:t}),K(e)}).prototype,"toString",(function(){return this._k})),S.f=J,C.f=X,n(41).f=E.f=Z,n(19).f=G,j.f=ee,i&&!n(14)&&s(q,"propertyIsEnumerable",G,!0),h.f=function(e){return K(d(e))}),a(a.G+a.W+a.F*!W,{Symbol:M});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)d(te[ne++]);for(var re=T(d.store),oe=0;re.length>oe;)v(re[oe++]);a(a.S+a.F*!W,"Symbol",{for:function(e){return o(F,e+="")?F[e]:F[e]=M(e)},keyFor:function(e){if(!Q(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){H=!0},useSimple:function(){H=!1}}),a(a.S+a.F*!W,"Object",{create:function(e,t){return void 0===t?O(e):Y(O(e),t)},defineProperty:X,defineProperties:Y,getOwnPropertyDescriptor:J,getOwnPropertyNames:Z,getOwnPropertySymbols:ee});var ie=l((function(){j.f(1)}));a(a.S+a.F*ie,"Object",{getOwnPropertySymbols:function(e){return j.f(w(e))}}),D&&a(a.S+a.F*(!W||l((function(){var e=M();return"[null]"!=I([e])||"{}"!=I({a:e})||"{}"!=I(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(g(t)||void 0!==e)&&!Q(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Q(t))return t}),r[1]=t,I.apply(D,r)}}),M.prototype[L]||n(6)(M.prototype,L,M.prototype.valueOf),f(M,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(e,t,n){var r=n(17)("meta"),o=n(11),i=n(5),a=n(7).f,s=0,u=Object.isExtensible||function(){return!0},l=!n(8)((function(){return u(Object.preventExtensions({}))})),c=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[r].w},onFreeze:function(e){return l&&f.NEED&&u(e)&&!i(e,r)&&c(e),e}}},function(e,t,n){var r=n(13),o=n(32),i=n(19);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,s=n(e),u=i.f,l=0;s.length>l;)u.call(e,a=s[l++])&&t.push(a);return t}},function(e,t,n){var r=n(24);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(9),o=n(41).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(r(e))}},function(e,t,n){var r=n(19),o=n(16),i=n(9),a=n(23),s=n(5),u=n(35),l=Object.getOwnPropertyDescriptor;t.f=n(4)?l:function(e,t){if(e=i(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t){},function(e,t,n){n(31)("asyncIterator")},function(e,t,n){n(31)("observable")},function(e,t,n){"use strict";t.__esModule=!0;var r,o=(r=n(77))&&r.__esModule?r:{default:r};t.default=o.default||function(e){for(var t=1;tc;)for(var d,h=u(arguments[c++]),v=f?o(h).concat(f(h)):o(h),m=v.length,y=0;m>y;)d=v[y++],r&&!p.call(h,d)||(n[d]=h[d]);return n}:l},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(82)),o=i(n(85));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(Array.isArray(e))return e;if((0,r.default)(Object(e)))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var s,u=(0,o.default)(e);!(r=(s=u.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){e.exports={default:n(83),__esModule:!0}},function(e,t,n){n(29),n(20),e.exports=n(84)},function(e,t,n){var r=n(42),o=n(2)("iterator"),i=n(12);e.exports=n(1).isIterable=function(e){var t=Object(e);return void 0!==t[o]||"@@iterator"in t||i.hasOwnProperty(r(t))}},function(e,t,n){e.exports={default:n(86),__esModule:!0}},function(e,t,n){n(29),n(20),e.exports=n(87)},function(e,t,n){var r=n(10),o=n(88);e.exports=n(1).getIterator=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,n){var r=n(42),o=n(2)("iterator"),i=n(12);e.exports=n(1).getIteratorMethod=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){e.exports={default:n(90),__esModule:!0}},function(e,t,n){n(91),e.exports=n(1).Object.keys},function(e,t,n){var r=n(18),o=n(13);n(92)("keys",(function(){return function(e){return o(r(e))}}))},function(e,t,n){var r=n(15),o=n(1),i=n(8);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i((function(){n(1)})),"Object",a)}},function(e,t,n){(function(t){var n=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],r=/^\s+|\s+$/g,o=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,i=/\{\n\/\* \[wrapped with (.+)\] \*/,a=/,? & /,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^\[object .+?Constructor\]$/,c=/^0o[0-7]+$/i,f=/^(?:0|[1-9]\d*)$/,p=parseInt,d="object"==typeof t&&t&&t.Object===Object&&t,h="object"==typeof self&&self&&self.Object===Object&&self,v=d||h||Function("return this")();function m(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function y(e,t){return!(!e||!e.length)&&function(e,t,n){if(t!=t)return function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i-1}function b(e){return e!=e}function g(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&r++;return r}function w(e,t){for(var n=-1,r=e.length,o=0,i=[];++n2?x:void 0);function N(e){return Z(e)?A(e):{}}function L(e){return!(!Z(e)||function(e){return!!j&&j in e}(e))&&(function(e){var t=Z(e)?P.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?R:l).test(function(e){if(null!=e){try{return C.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function z(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,u=t.length,l=M(i-a,0),c=Array(u+l),f=!r;++s1&&_.reverse(),c&&u1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(o,"{\n/* [wrapped with "+t+"] */\n")}function Q(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||f.test(e))&&e>-1&&e%1==0&&e1&&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[l]=255*i;return o}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t,r="object"==typeof self&&self&&self.Object===Object&&self,o=n||r||Function("return this")();function i(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function a(e,t){for(var n=-1,r=t.length,o=e.length;++n-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?l.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}(e)}(e)&&u.call(e,"callee")&&(!f.call(e,"callee")||"[object Arguments]"==l.call(e))}(e)||!!(p&&e&&e[p])}var v,m,y,b=Array.isArray,g=(m=function(e){var t=(e=function e(t,n,r,o,i){var s=-1,u=t.length;for(r||(r=h),i||(i=[]);++s0&&r(l)?n>1?e(l,n-1,r,o,i):a(i,l):o||(i[i.length]=l)}return i}(e,1)).length,n=t;for(v&&e.reverse();n--;)if("function"!=typeof e[n])throw new TypeError("Expected a function");return function(){for(var n=0,r=t?e[n].apply(this,arguments):arguments[0];++n2?n-2:0),i=2;i=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function k(e){var t=function(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(e);return"number"===t&&(t=isNaN(e)?"nan":(0|e)!=e?"float":"integer"),t}b.__suppressDeprecationWarning=!0,g.__suppressDeprecationWarning=!0,w.__suppressDeprecationWarning=!0;var O={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},E={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"},S={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px"},j=n(45),C=function(e){var t=function(e){return{backgroundColor:e.base00,ellipsisColor:e.base09,braceColor:e.base07,expandedIcon:e.base0D,collapsedIcon:e.base0E,keyColor:e.base07,arrayKeyColor:e.base0C,objectSize:e.base04,copyToClipboard:e.base0F,copyToClipboardCheck:e.base0D,objectBorder:e.base02,dataTypes:{boolean:e.base0E,date:e.base0D,float:e.base0B,function:e.base0D,integer:e.base0F,string:e.base09,nan:e.base08,null:e.base0A,undefined:e.base05,regexp:e.base0A,background:e.base02},editVariable:{editIcon:e.base0E,cancelIcon:e.base09,removeIcon:e.base09,addIcon:e.base0E,checkIcon:e.base0E,background:e.base01,color:e.base0A,border:e.base07},addKeyModal:{background:e.base05,border:e.base04,color:e.base0A,labelColor:e.base01},validationFailure:{background:e.base09,iconColor:e.base01,fontColor:e.base01}}}(e);return{"app-container":{fontFamily:S.globalFontFamily,cursor:S.globalCursor,backgroundColor:t.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:t.ellipsisColor,fontSize:S.ellipsisFontSize,lineHeight:S.ellipsisLineHeight,cursor:S.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:S.braceCursor,fontWeight:S.braceFontWeight,color:t.braceColor},"expanded-icon":{color:t.expandedIcon},"collapsed-icon":{color:t.collapsedIcon},colon:{display:"inline-block",margin:S.keyMargin,color:t.keyColor,verticalAlign:"top"},objectKeyVal:function(e,n){return{style:i({paddingTop:S.keyValPaddingTop,paddingRight:S.keyValPaddingRight,paddingBottom:S.keyValPaddingBottom,borderLeft:S.keyValBorderLeft+" "+t.objectBorder,":hover":{paddingLeft:n.paddingLeft-1+"px",borderLeft:S.keyValBorderHover+" "+t.objectBorder}},n)}},"object-key-val-no-border":{padding:S.keyValPadding},"pushed-content":{marginLeft:S.pushedContentMarginLeft},variableValue:function(e,t){return{style:i({display:"inline-block",paddingRight:S.variableValuePaddingRight,position:"relative"},t)}},"object-name":{display:"inline-block",color:t.keyColor,letterSpacing:S.keyLetterSpacing,fontStyle:S.keyFontStyle,verticalAlign:S.keyVerticalAlign,opacity:S.keyOpacity,":hover":{opacity:S.keyOpacityHover}},"array-key":{display:"inline-block",color:t.arrayKeyColor,letterSpacing:S.keyLetterSpacing,fontStyle:S.keyFontStyle,verticalAlign:S.keyVerticalAlign,opacity:S.keyOpacity,":hover":{opacity:S.keyOpacityHover}},"object-size":{color:t.objectSize,borderRadius:S.objectSizeBorderRadius,fontStyle:S.objectSizeFontStyle,margin:S.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:S.dataTypeFontSize,marginRight:S.dataTypeMarginRight,opacity:S.datatypeOpacity},boolean:{display:"inline-block",color:t.dataTypes.boolean},date:{display:"inline-block",color:t.dataTypes.date},"date-value":{marginLeft:S.dateValueMarginLeft},float:{display:"inline-block",color:t.dataTypes.float},function:{display:"inline-block",color:t.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:t.dataTypes.integer},string:{display:"inline-block",color:t.dataTypes.string},nan:{display:"inline-block",color:t.dataTypes.nan,fontSize:S.nanFontSize,fontWeight:S.nanFontWeight,backgroundColor:t.dataTypes.background,padding:S.nanPadding,borderRadius:S.nanBorderRadius},null:{display:"inline-block",color:t.dataTypes.null,fontSize:S.nullFontSize,fontWeight:S.nullFontWeight,backgroundColor:t.dataTypes.background,padding:S.nullPadding,borderRadius:S.nullBorderRadius},undefined:{display:"inline-block",color:t.dataTypes.undefined,fontSize:S.undefinedFontSize,padding:S.undefinedPadding,borderRadius:S.undefinedBorderRadius,backgroundColor:t.dataTypes.background},regexp:{display:"inline-block",color:t.dataTypes.regexp},"copy-to-clipboard":{cursor:S.clipboardCursor},"copy-icon":{color:t.copyToClipboard,fontSize:S.iconFontSize,marginRight:S.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:t.copyToClipboardCheck,marginLeft:S.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:S.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:S.metaDataPadding},"icon-container":{display:"inline-block",width:S.iconContainerWidth},tooltip:{padding:S.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:t.editVariable.removeIcon,cursor:S.iconCursor,fontSize:S.iconFontSize,marginRight:S.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:t.editVariable.addIcon,cursor:S.iconCursor,fontSize:S.iconFontSize,marginRight:S.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:t.editVariable.editIcon,cursor:S.iconCursor,fontSize:S.iconFontSize,marginRight:S.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:S.iconCursor,color:t.editVariable.checkIcon,fontSize:S.iconFontSize,paddingRight:S.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:S.iconCursor,color:t.editVariable.cancelIcon,fontSize:S.iconFontSize,paddingRight:S.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:S.editInputMinWidth,borderRadius:S.editInputBorderRadius,backgroundColor:t.editVariable.background,color:t.editVariable.color,padding:S.editInputPadding,marginRight:S.editInputMarginRight,fontFamily:S.editInputFontFamily},"detected-row":{paddingTop:S.detectedRowPaddingTop},"key-modal-request":{position:S.addKeyCoverPosition,top:S.addKeyCoverPositionPx,left:S.addKeyCoverPositionPx,right:S.addKeyCoverPositionPx,bottom:S.addKeyCoverPositionPx,backgroundColor:S.addKeyCoverBackground},"key-modal":{width:S.addKeyModalWidth,backgroundColor:t.addKeyModal.background,marginLeft:S.addKeyModalMargin,marginRight:S.addKeyModalMargin,padding:S.addKeyModalPadding,borderRadius:S.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:t.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:t.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:t.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:t.addKeyModal.labelColor,fontSize:S.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:t.editVariable.addIcon,fontSize:S.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:t.ellipsisColor,fontSize:S.ellipsisFontSize,lineHeight:S.ellipsisLineHeight,cursor:S.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:t.validationFailure.fontColor,backgroundColor:t.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:t.validationFailure.iconColor,fontSize:S.iconFontSize,transform:"rotate(45deg)"}}};function T(e,t,n){return e||console.error("theme has not been set"),function(e){var t=O;return!1!==e&&"none"!==e||(t=E),Object(j.createStyling)(C,{defaultBase16:t})(e)}(e)(t,n)}var P=function(e){c(n,e);var t=v(n);function n(){return a(this,n),t.apply(this,arguments)}return u(n,[{key:"render",value:function(){var e=this.props,t=(e.rjvId,e.type_name),n=e.displayDataTypes,r=e.theme;return n?y.a.createElement("span",Object.assign({className:"data-type-label"},T(r,"data-type-label")),t):null}}]),n}(y.a.PureComponent),R=function(e){c(n,e);var t=v(n);function n(){return a(this,n),t.apply(this,arguments)}return u(n,[{key:"render",value:function(){var e=this.props;return y.a.createElement("div",T(e.theme,"boolean"),y.a.createElement(P,Object.assign({type_name:"bool"},e)),e.value?"true":"false")}}]),n}(y.a.PureComponent),A=function(e){c(n,e);var t=v(n);function n(){return a(this,n),t.apply(this,arguments)}return u(n,[{key:"render",value:function(){var e=this.props;return y.a.createElement("div",T(e.theme,"date"),y.a.createElement(P,Object.assign({type_name:"date"},e)),y.a.createElement("span",Object.assign({className:"date-value"},T(e.theme,"date-value")),e.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),n}(y.a.PureComponent),M=function(e){c(n,e);var t=v(n);function n(){return a(this,n),t.apply(this,arguments)}return u(n,[{key:"render",value:function(){var e=this.props;return y.a.createElement("div",T(e.theme,"float"),y.a.createElement(P,Object.assign({type_name:"float"},e)),this.props.value)}}]),n}(y.a.PureComponent);function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function L(e){return function(e){if(Array.isArray(e))return D(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||I(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var z=n(46),F=new(n(47).Dispatcher),B=new(function(e){c(n,e);var t=v(n);function n(){var e;a(this,n);for(var r=arguments.length,o=new Array(r),s=0;st&&(o.style.cursor="pointer",this.state.collapsed&&(r=y.a.createElement("span",null,r.substring(0,t),y.a.createElement("span",T(n,"ellipsis")," ...")))),y.a.createElement("div",T(n,"string"),y.a.createElement(P,Object.assign({type_name:"string"},e)),y.a.createElement("span",Object.assign({className:"string-value"},o,{onClick:this.toggleCollapsed}),'"',r,'"'))}}]),n}(y.a.PureComponent),Q=function(e){c(n,e);var t=v(n);function n(){return a(this,n),t.apply(this,arguments)}return u(n,[{key:"render",value:function(){return y.a.createElement("div",T(this.props.theme,"undefined"),"undefined")}}]),n}(y.a.PureComponent);function X(){return(X=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),f=void 0!==c.value,p=Object(m.useRef)(null),d=Z(p,t),h=Object(m.useRef)(0),v=Object(m.useRef)(),y=function(){var e=p.current,t=r&&v.current?v.current:function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n,r=(n=t,oe.reduce((function(e,t){return e[t]=n[t],e}),{})),o=r.boxSizing;return""===o?null:(ie&&"border-box"===o&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px"),{sizingStyle:r,paddingSize:parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),borderSize:parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth)})}(e);if(t){v.current=t;var n=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1/0),ne||((ne=document.createElement("textarea")).setAttribute("tab-index","-1"),ne.setAttribute("aria-hidden","true"),te(ne)),null===ne.parentNode&&document.body.appendChild(ne);var o=e.paddingSize,i=e.borderSize,a=e.sizingStyle,s=a.boxSizing;Object.keys(a).forEach((function(e){var t=e;ne.style[t]=a[t]})),te(ne),ne.value=t;var u=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize}(ne,e);ne.value="x";var l=ne.scrollHeight-o,c=l*n;"border-box"===s&&(c=c+o+i),u=Math.max(c,u);var f=l*r;return"border-box"===s&&(f=f+o+i),[u=Math.min(f,u),l]}(t,e.value||e.placeholder||"x",i,o),a=n[0],s=n[1];h.current!==a&&(h.current=a,e.style.setProperty("height",a+"px","important"),l(a,{rowHeight:s}))}};return Object(m.useLayoutEffect)(y),n=G(y),Object(m.useLayoutEffect)((function(){var e=function(e){n.current(e)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),Object(m.createElement)("textarea",X({},c,{onChange:function(e){f||y(),s(e)},ref:d}))},se=Object(m.forwardRef)(ae);function ue(e){e=e.trim();try{if("["===(e=JSON.stringify(JSON.parse(e)))[0])return le("array",JSON.parse(e));if("{"===e[0])return le("object",JSON.parse(e));if(e.match(/\-?\d+\.\d+/)&&e.match(/\-?\d+\.\d+/)[0]===e)return le("float",parseFloat(e));if(e.match(/\-?\d+e-\d+/)&&e.match(/\-?\d+e-\d+/)[0]===e)return le("float",Number(e));if(e.match(/\-?\d+/)&&e.match(/\-?\d+/)[0]===e)return le("integer",parseInt(e));if(e.match(/\-?\d+e\+\d+/)&&e.match(/\-?\d+e\+\d+/)[0]===e)return le("integer",Number(e))}catch(e){}switch(e=e.toLowerCase()){case"undefined":return le("undefined",void 0);case"nan":return le("nan",NaN);case"null":return le("null",null);case"true":return le("boolean",!0);case"false":return le("boolean",!1);default:if(e=Date.parse(e))return le("date",new Date(e))}return le(!1,null)}function le(e,t){return{type:e,value:t}}var ce=function(e){c(n,e);var t=v(n);function n(){return a(this,n),t.apply(this,arguments)}return u(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=x(e,["style"]);return y.a.createElement("span",n,y.a.createElement("svg",Object.assign({},xe(t),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),y.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"})))}}]),n}(y.a.PureComponent),fe=function(e){c(n,e);var t=v(n);function n(){return a(this,n),t.apply(this,arguments)}return u(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=x(e,["style"]);return y.a.createElement("span",n,y.a.createElement("svg",Object.assign({},xe(t),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),y.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"})))}}]),n}(y.a.PureComponent),pe=function(e){c(n,e);var t=v(n);function n(){return a(this,n),t.apply(this,arguments)}return u(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=x(e,["style"]),r=xe(t).style;return y.a.createElement("span",n,y.a.createElement("svg",{fill:r.color,width:r.height,height:r.width,style:r,viewBox:"0 0 1792 1792"},y.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),n}(y.a.PureComponent),de=function(e){c(n,e);var t=v(n);function n(){return a(this,n),t.apply(this,arguments)}return u(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=x(e,["style"]),r=xe(t).style;return y.a.createElement("span",n,y.a.createElement("svg",{fill:r.color,width:r.height,height:r.width,style:r,viewBox:"0 0 1792 1792"},y.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),n}(y.a.PureComponent),he=function(e){c(n,e);var t=v(n);function n(){return a(this,n),t.apply(this,arguments)}return u(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=x(e,["style"]);return y.a.createElement("span",n,y.a.createElement("svg",{style:i(i({},xe(t).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},y.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),n}(y.a.PureComponent),ve=function(e){c(n,e);var t=v(n);function n(){return a(this,n),t.apply(this,arguments)}return u(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=x(e,["style"]);return y.a.createElement("span",n,y.a.createElement("svg",{style:i(i({},xe(t).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},y.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),n}(y.a.PureComponent),me=function(e){c(n,e);var t=v(n);function n(){return a(this,n),t.apply(this,arguments)}return u(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=x(e,["style"]);return y.a.createElement("span",n,y.a.createElement("svg",Object.assign({},xe(t),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),y.a.createElement("g",null,y.a.createElement("path",{d:"m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z"}))))}}]),n}(y.a.PureComponent),ye=function(e){c(n,e);var t=v(n);function n(){return a(this,n),t.apply(this,arguments)}return u(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=x(e,["style"]);return y.a.createElement("span",n,y.a.createElement("svg",Object.assign({},xe(t),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),y.a.createElement("g",null,y.a.createElement("path",{d:"m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),n}(y.a.PureComponent),be=function(e){c(n,e);var t=v(n);function n(){return a(this,n),t.apply(this,arguments)}return u(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=x(e,["style"]);return y.a.createElement("span",n,y.a.createElement("svg",Object.assign({},xe(t),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),y.a.createElement("g",null,y.a.createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),n}(y.a.PureComponent),ge=function(e){c(n,e);var t=v(n);function n(){return a(this,n),t.apply(this,arguments)}return u(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=x(e,["style"]);return y.a.createElement("span",n,y.a.createElement("svg",Object.assign({},xe(t),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),y.a.createElement("g",null,y.a.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),n}(y.a.PureComponent),we=function(e){c(n,e);var t=v(n);function n(){return a(this,n),t.apply(this,arguments)}return u(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=x(e,["style"]);return y.a.createElement("span",n,y.a.createElement("svg",Object.assign({},xe(t),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),y.a.createElement("g",null,y.a.createElement("path",{d:"m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z"}))))}}]),n}(y.a.PureComponent),_e=function(e){c(n,e);var t=v(n);function n(){return a(this,n),t.apply(this,arguments)}return u(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=x(e,["style"]);return y.a.createElement("span",n,y.a.createElement("svg",Object.assign({},xe(t),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),y.a.createElement("g",null,y.a.createElement("path",{d:"m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),n}(y.a.PureComponent);function xe(e){return e||(e={}),{style:i(i({verticalAlign:"middle"},e),{},{color:e.color?e.color:"#000000",height:"1em",width:"1em"})}}var ke=function(e){c(n,e);var t=v(n);function n(e){var r;return a(this,n),(r=t.call(this,e)).copiedTimer=null,r.handleCopy=function(){var e=document.createElement("textarea"),t=r.props,n=t.clickCallback,o=t.src,i=t.namespace;e.innerHTML=JSON.stringify(r.clipboardValue(o),null," "),document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),r.copiedTimer=setTimeout((function(){r.setState({copied:!1})}),5500),r.setState({copied:!0},(function(){"function"==typeof n&&n({src:o,namespace:i,name:i[i.length-1]})}))},r.getClippyIcon=function(){var e=r.props.theme;return r.state.copied?y.a.createElement("span",null,y.a.createElement(me,Object.assign({className:"copy-icon"},T(e,"copy-icon"))),y.a.createElement("span",T(e,"copy-icon-copied"),"\u2714")):y.a.createElement(me,Object.assign({className:"copy-icon"},T(e,"copy-icon")))},r.clipboardValue=function(e){switch(k(e)){case"function":case"regexp":return e.toString();default:return e}},r.state={copied:!1},r}return u(n,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var e=this.props,t=(e.src,e.theme),n=e.hidden,r=e.rowHovered,o=T(t,"copy-to-clipboard").style,a="inline";return n&&(a="none"),y.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:r?"inline-block":"none"}},y.a.createElement("span",{style:i(i({},o),{},{display:a}),onClick:this.handleCopy},this.getClippyIcon()))}}]),n}(y.a.PureComponent),Oe=function(e){c(n,e);var t=v(n);function n(e){var r;return a(this,n),(r=t.call(this,e)).getEditIcon=function(){var e=r.props,t=e.variable,n=e.theme;return y.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:r.state.hovered?"inline-block":"none"}},y.a.createElement(we,Object.assign({className:"click-to-edit-icon"},T(n,"editVarIcon"),{onClick:function(){r.prepopInput(t)}})))},r.prepopInput=function(e){if(!1!==r.props.onEdit){var t=function(e){var t;switch(k(e)){case"undefined":t="undefined";break;case"nan":t="NaN";break;case"string":t=e;break;case"date":case"function":case"regexp":t=e.toString();break;default:try{t=JSON.stringify(e,null," ")}catch(e){t=""}}return t}(e.value),n=ue(t);r.setState({editMode:!0,editValue:t,parsedInput:{type:n.type,value:n.value}})}},r.getRemoveIcon=function(){var e=r.props,t=e.variable,n=e.namespace,o=e.theme,i=e.rjvId;return y.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:r.state.hovered?"inline-block":"none"}},y.a.createElement(ye,Object.assign({className:"click-to-remove-icon"},T(o,"removeVarIcon"),{onClick:function(){F.dispatch({name:"VARIABLE_REMOVED",rjvId:i,data:{name:t.name,namespace:n,existing_value:t.value,variable_removed:!0}})}})))},r.getValue=function(e,t){var n=!t&&e.type,o=d(r).props;switch(n){case!1:return r.getEditInput();case"string":return y.a.createElement(K,Object.assign({value:e.value},o));case"integer":return y.a.createElement(H,Object.assign({value:e.value},o));case"float":return y.a.createElement(M,Object.assign({value:e.value},o));case"boolean":return y.a.createElement(R,Object.assign({value:e.value},o));case"function":return y.a.createElement(q,Object.assign({value:e.value},o));case"null":return y.a.createElement(V,o);case"nan":return y.a.createElement(W,o);case"undefined":return y.a.createElement(Q,o);case"date":return y.a.createElement(A,Object.assign({value:e.value},o));case"regexp":return y.a.createElement($,Object.assign({value:e.value},o));default:return y.a.createElement("div",{className:"object-value"},JSON.stringify(e.value))}},r.getEditInput=function(){var e=r.props.theme,t=r.state.editValue;return y.a.createElement("div",null,y.a.createElement(se,Object.assign({type:"text",inputRef:function(e){return e&&e.focus()},value:t,className:"variable-editor",onChange:function(e){var t=e.target.value,n=ue(t);r.setState({editValue:t,parsedInput:{type:n.type,value:n.value}})},onKeyDown:function(e){switch(e.key){case"Escape":r.setState({editMode:!1,editValue:""});break;case"Enter":(e.ctrlKey||e.metaKey)&&r.submitEdit(!0)}e.stopPropagation()},placeholder:"update this value",minRows:2},T(e,"edit-input"))),y.a.createElement("div",T(e,"edit-icon-container"),y.a.createElement(ye,Object.assign({className:"edit-cancel"},T(e,"cancel-icon"),{onClick:function(){r.setState({editMode:!1,editValue:""})}})),y.a.createElement(_e,Object.assign({className:"edit-check string-value"},T(e,"check-icon"),{onClick:function(){r.submitEdit()}})),y.a.createElement("div",null,r.showDetected())))},r.submitEdit=function(e){var t=r.props,n=t.variable,o=t.namespace,i=t.rjvId,a=r.state,s=a.editValue,u=a.parsedInput,l=s;e&&u.type&&(l=u.value),r.setState({editMode:!1}),F.dispatch({name:"VARIABLE_UPDATED",rjvId:i,data:{name:n.name,namespace:o,existing_value:n.value,new_value:l,variable_removed:!1}})},r.showDetected=function(){var e=r.props,t=e.theme,n=(e.variable,e.namespace,e.rjvId,r.state.parsedInput),o=(n.type,n.value,r.getDetectedInput());if(o)return y.a.createElement("div",null,y.a.createElement("div",T(t,"detected-row"),o,y.a.createElement(_e,{className:"edit-check detected",style:i({verticalAlign:"top",paddingLeft:"3px"},T(t,"check-icon").style),onClick:function(){r.submitEdit(!0)}})))},r.getDetectedInput=function(){var e=r.state.parsedInput,t=e.type,n=e.value,o=d(r).props,a=o.theme;if(!1!==t)switch(t.toLowerCase()){case"object":return y.a.createElement("span",null,y.a.createElement("span",{style:i(i({},T(a,"brace").style),{},{cursor:"default"})},"{"),y.a.createElement("span",{style:i(i({},T(a,"ellipsis").style),{},{cursor:"default"})},"..."),y.a.createElement("span",{style:i(i({},T(a,"brace").style),{},{cursor:"default"})},"}"));case"array":return y.a.createElement("span",null,y.a.createElement("span",{style:i(i({},T(a,"brace").style),{},{cursor:"default"})},"["),y.a.createElement("span",{style:i(i({},T(a,"ellipsis").style),{},{cursor:"default"})},"..."),y.a.createElement("span",{style:i(i({},T(a,"brace").style),{},{cursor:"default"})},"]"));case"string":return y.a.createElement(K,Object.assign({value:n},o));case"integer":return y.a.createElement(H,Object.assign({value:n},o));case"float":return y.a.createElement(M,Object.assign({value:n},o));case"boolean":return y.a.createElement(R,Object.assign({value:n},o));case"function":return y.a.createElement(q,Object.assign({value:n},o));case"null":return y.a.createElement(V,o);case"nan":return y.a.createElement(W,o);case"undefined":return y.a.createElement(Q,o);case"date":return y.a.createElement(A,Object.assign({value:new Date(n)},o))}},r.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},r}return u(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.variable,r=t.singleIndent,o=t.type,a=t.theme,s=t.namespace,u=t.indentWidth,l=t.enableClipboard,c=t.onEdit,f=t.onDelete,p=t.onSelect,d=t.displayArrayKey,h=t.quotesOnKeys,v=this.state.editMode;return y.a.createElement("div",Object.assign({},T(a,"objectKeyVal",{paddingLeft:u*r}),{onMouseEnter:function(){return e.setState(i(i({},e.state),{},{hovered:!0}))},onMouseLeave:function(){return e.setState(i(i({},e.state),{},{hovered:!1}))},className:"variable-row",key:n.name}),"array"==o?d?y.a.createElement("span",Object.assign({},T(a,"array-key"),{key:n.name+"_"+s}),n.name,y.a.createElement("div",T(a,"colon"),":")):null:y.a.createElement("span",null,y.a.createElement("span",Object.assign({},T(a,"object-name"),{className:"object-key",key:n.name+"_"+s}),!!h&&y.a.createElement("span",{style:{verticalAlign:"top"}},'"'),y.a.createElement("span",{style:{display:"inline-block"}},n.name),!!h&&y.a.createElement("span",{style:{verticalAlign:"top"}},'"')),y.a.createElement("span",T(a,"colon"),":")),y.a.createElement("div",Object.assign({className:"variable-value",onClick:!1===p&&!1===c?null:function(t){var r=L(s);(t.ctrlKey||t.metaKey)&&!1!==c?e.prepopInput(n):!1!==p&&(r.shift(),p(i(i({},n),{},{namespace:r})))}},T(a,"variableValue",{cursor:!1===p?"default":"pointer"})),this.getValue(n,v)),l?y.a.createElement(ke,{rowHovered:this.state.hovered,hidden:v,src:n.value,clickCallback:l,theme:a,namespace:[].concat(L(s),[n.name])}):null,!1!==c&&0==v?this.getEditIcon():null,!1!==f&&0==v?this.getRemoveIcon():null)}}]),n}(y.a.PureComponent),Ee=function(e){c(n,e);var t=v(n);function n(){var e;a(this,n);for(var r=arguments.length,o=new Array(r),s=0;s0?a:null,namespace:o.splice(0,o.length-1),existing_value:s,variable_removed:!1,key_name:null};"object"===k(s)?F.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:u,data:e}):F.dispatch({name:"VARIABLE_ADDED",rjvId:u,data:i(i({},e),{},{new_value:[].concat(L(s),[null])})})}})))},e.getRemoveObject=function(t){var n=e.props,r=n.theme,o=(n.hover,n.namespace),i=n.name,a=n.src,s=n.rjvId;if(1!==o.length)return y.a.createElement("span",{className:"click-to-remove",style:{display:t?"inline-block":"none"}},y.a.createElement(ye,Object.assign({className:"click-to-remove-icon"},T(r,"removeVarIcon"),{onClick:function(){F.dispatch({name:"VARIABLE_REMOVED",rjvId:s,data:{name:i,namespace:o.splice(0,o.length-1),existing_value:a,variable_removed:!0}})}})))},e.render=function(){var t=e.props,n=t.theme,r=t.onDelete,o=t.onAdd,i=t.enableClipboard,a=t.src,s=t.namespace,u=t.rowHovered;return y.a.createElement("div",Object.assign({},T(n,"object-meta-data"),{className:"object-meta-data",onClick:function(e){e.stopPropagation()}}),e.getObjectSize(),i?y.a.createElement(ke,{rowHovered:u,clickCallback:i,src:a,theme:n,namespace:s}):null,!1!==o?e.getAddAttribute(u):null,!1!==r?e.getRemoveObject(u):null)},e}return n}(y.a.PureComponent);function Se(e){var t=e.parent_type,n=e.namespace,r=e.quotesOnKeys,o=e.theme,i=e.jsvRoot,a=e.name,s=e.displayArrayKey,u=e.name?e.name:"";return!i||!1!==a&&null!==a?"array"==t?s?y.a.createElement("span",Object.assign({},T(o,"array-key"),{key:n}),y.a.createElement("span",{className:"array-key"},u),y.a.createElement("span",T(o,"colon"),":")):y.a.createElement("span",null):y.a.createElement("span",Object.assign({},T(o,"object-name"),{key:n}),y.a.createElement("span",{className:"object-key"},r&&y.a.createElement("span",{style:{verticalAlign:"top"}},'"'),y.a.createElement("span",null,u),r&&y.a.createElement("span",{style:{verticalAlign:"top"}},'"')),y.a.createElement("span",T(o,"colon"),":")):y.a.createElement("span",null)}function je(e){var t=e.theme;switch(e.iconStyle){case"triangle":return y.a.createElement(ve,Object.assign({},T(t,"expanded-icon"),{className:"expanded-icon"}));case"square":return y.a.createElement(pe,Object.assign({},T(t,"expanded-icon"),{className:"expanded-icon"}));default:return y.a.createElement(ce,Object.assign({},T(t,"expanded-icon"),{className:"expanded-icon"}))}}function Ce(e){var t=e.theme;switch(e.iconStyle){case"triangle":return y.a.createElement(he,Object.assign({},T(t,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return y.a.createElement(de,Object.assign({},T(t,"collapsed-icon"),{className:"collapsed-icon"}));default:return y.a.createElement(fe,Object.assign({},T(t,"collapsed-icon"),{className:"collapsed-icon"}))}}var Te=function(e){c(n,e);var t=v(n);function n(e){var r;return a(this,n),(r=t.call(this,e)).toggleCollapsed=function(e){var t=[];for(var n in r.state.expanded)t.push(r.state.expanded[n]);t[e]=!t[e],r.setState({expanded:t})},r.state={expanded:[]},r}return u(n,[{key:"getExpandedIcon",value:function(e){var t=this.props,n=t.theme,r=t.iconStyle;return this.state.expanded[e]?y.a.createElement(je,{theme:n,iconStyle:r}):y.a.createElement(Ce,{theme:n,iconStyle:r})}},{key:"render",value:function(){var e=this,t=this.props,n=t.src,r=t.groupArraysAfterLength,o=(t.depth,t.name),i=t.theme,a=t.jsvRoot,s=t.namespace,u=(t.parent_type,x(t,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),l=0,c=5*this.props.indentWidth;a||(l=5*this.props.indentWidth);var f=r,p=Math.ceil(n.length/f);return y.a.createElement("div",Object.assign({className:"object-key-val"},T(i,a?"jsv-root":"objectKeyVal",{paddingLeft:l})),y.a.createElement(Se,this.props),y.a.createElement("span",null,y.a.createElement(Ee,Object.assign({size:n.length},this.props))),L(Array(p)).map((function(t,r){return y.a.createElement("div",Object.assign({key:r,className:"object-key-val array-group"},T(i,"objectKeyVal",{marginLeft:6,paddingLeft:c})),y.a.createElement("span",T(i,"brace-row"),y.a.createElement("div",Object.assign({className:"icon-container"},T(i,"icon-container"),{onClick:function(t){e.toggleCollapsed(r)}}),e.getExpandedIcon(r)),e.state.expanded[r]?y.a.createElement(Ae,Object.assign({key:o+r,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:f,index_offset:r*f,src:n.slice(r*f,r*f+f),namespace:s,type:"array",parent_type:"array_group",theme:i},u)):y.a.createElement("span",Object.assign({},T(i,"brace"),{onClick:function(t){e.toggleCollapsed(r)},className:"array-group-brace"}),"[",y.a.createElement("div",Object.assign({},T(i,"array-group-meta-data"),{className:"array-group-meta-data"}),y.a.createElement("span",Object.assign({className:"object-size"},T(i,"object-size")),r*f," - ",r*f+f>n.length?n.length:r*f+f)),"]")))})))}}]),n}(y.a.PureComponent),Pe=function(e){c(n,e);var t=v(n);function n(e){var r;a(this,n),(r=t.call(this,e)).toggleCollapsed=function(){r.setState({expanded:!r.state.expanded},(function(){U.set(r.props.rjvId,r.props.namespace,"expanded",r.state.expanded)}))},r.getObjectContent=function(e,t,n){return y.a.createElement("div",{className:"pushed-content object-container"},y.a.createElement("div",Object.assign({className:"object-content"},T(r.props.theme,"pushed-content")),r.renderObjectContents(t,n)))},r.getEllipsis=function(){return 0===r.state.size?null:y.a.createElement("div",Object.assign({},T(r.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:r.toggleCollapsed}),"...")},r.getObjectMetaData=function(e){var t=r.props,n=(t.rjvId,t.theme,r.state),o=n.size,i=n.hovered;return y.a.createElement(Ee,Object.assign({rowHovered:i,size:o},r.props))},r.renderObjectContents=function(e,t){var n,o=r.props,i=o.depth,a=o.parent_type,s=o.index_offset,u=o.groupArraysAfterLength,l=o.namespace,c=r.state.object_type,f=[],p=Object.keys(e||{});return r.props.sortKeys&&"array"!==c&&(p=p.sort()),p.forEach((function(o){if(n=new Re(o,e[o]),"array_group"===a&&s&&(n.name=parseInt(n.name)+s),e.hasOwnProperty(o))if("object"===n.type)f.push(y.a.createElement(Ae,Object.assign({key:n.name,depth:i+1,name:n.name,src:n.value,namespace:l.concat(n.name),parent_type:c},t)));else if("array"===n.type){var p=Ae;u&&n.value.length>u&&(p=Te),f.push(y.a.createElement(p,Object.assign({key:n.name,depth:i+1,name:n.name,src:n.value,namespace:l.concat(n.name),type:"array",parent_type:c},t)))}else f.push(y.a.createElement(Oe,Object.assign({key:n.name+"_"+l,variable:n,singleIndent:5,namespace:l,type:r.props.type},t)))})),f};var o=n.getState(e);return r.state=i(i({},o),{},{prevProps:{}}),r}return u(n,[{key:"getBraceStart",value:function(e,t){var n=this,r=this.props,o=r.src,i=r.theme,a=r.iconStyle;if("array_group"===r.parent_type)return y.a.createElement("span",null,y.a.createElement("span",T(i,"brace"),"array"===e?"[":"{"),t?this.getObjectMetaData(o):null);var s=t?je:Ce;return y.a.createElement("span",null,y.a.createElement("span",Object.assign({onClick:function(e){n.toggleCollapsed()}},T(i,"brace-row")),y.a.createElement("div",Object.assign({className:"icon-container"},T(i,"icon-container")),y.a.createElement(s,{theme:i,iconStyle:a})),y.a.createElement(Se,this.props),y.a.createElement("span",T(i,"brace"),"array"===e?"[":"{")),t?this.getObjectMetaData(o):null)}},{key:"render",value:function(){var e=this,t=this.props,n=t.depth,r=t.src,o=(t.namespace,t.name,t.type,t.parent_type),a=t.theme,s=t.jsvRoot,u=t.iconStyle,l=x(t,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),c=this.state,f=c.object_type,p=c.expanded,d={};return s||"array_group"===o?"array_group"===o&&(d.borderLeft=0,d.display="inline"):d.paddingLeft=5*this.props.indentWidth,y.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return e.setState(i(i({},e.state),{},{hovered:!0}))},onMouseLeave:function(){return e.setState(i(i({},e.state),{},{hovered:!1}))}},T(a,s?"jsv-root":"objectKeyVal",d)),this.getBraceStart(f,p),p?this.getObjectContent(n,r,i({theme:a,iconStyle:u},l)):this.getEllipsis(),y.a.createElement("span",{className:"brace-row"},y.a.createElement("span",{style:i(i({},T(a,"brace").style),{},{paddingLeft:p?"3px":"0px"})},"array"===f?"]":"}"),p?null:this.getObjectMetaData(r)))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=t.prevProps;return e.src!==r.src||e.collapsed!==r.collapsed||e.name!==r.name||e.namespace!==r.namespace||e.rjvId!==r.rjvId?i(i({},n.getState(e)),{},{prevProps:e}):null}}]),n}(y.a.PureComponent);Pe.getState=function(e){var t=Object.keys(e.src).length,n=(!1===e.collapsed||!0!==e.collapsed&&e.collapsed>e.depth)&&(!e.shouldCollapse||!1===e.shouldCollapse({name:e.name,src:e.src,type:k(e.src),namespace:e.namespace}))&&0!==t;return{expanded:U.get(e.rjvId,e.namespace,"expanded",n),object_type:"array"===e.type?"array":"object",parent_type:"array"===e.type?"array":"object",size:t,hovered:!1}};var Re=function e(t,n){a(this,e),this.name=t,this.value=n,this.type=k(n)};_(Pe);var Ae=Pe,Me=function(e){c(n,e);var t=v(n);function n(){var e;a(this,n);for(var r=arguments.length,o=new Array(r),i=0;it.groupArraysAfterLength&&(r=Te),y.a.createElement("div",{className:"pretty-json-container object-container"},y.a.createElement("div",{className:"object-content"},y.a.createElement(r,Object.assign({namespace:n,depth:0,jsvRoot:!0},t))))},e}return n}(y.a.PureComponent),De=function(e){c(n,e);var t=v(n);function n(e){var r;return a(this,n),(r=t.call(this,e)).closeModal=function(){F.dispatch({rjvId:r.props.rjvId,name:"RESET"})},r.submit=function(){r.props.submit(r.state.input)},r.state={input:e.input?e.input:""},r}return u(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.theme,r=t.rjvId,o=t.isValid,i=this.state.input,a=o(i);return y.a.createElement("div",Object.assign({className:"key-modal-request"},T(n,"key-modal-request"),{onClick:this.closeModal}),y.a.createElement("div",Object.assign({},T(n,"key-modal"),{onClick:function(e){e.stopPropagation()}}),y.a.createElement("div",T(n,"key-modal-label"),"Key Name:"),y.a.createElement("div",{style:{position:"relative"}},y.a.createElement("input",Object.assign({},T(n,"key-modal-input"),{className:"key-modal-input",ref:function(e){return e&&e.focus()},spellCheck:!1,value:i,placeholder:"...",onChange:function(t){e.setState({input:t.target.value})},onKeyPress:function(t){a&&"Enter"===t.key?e.submit():"Escape"===t.key&&e.closeModal()}})),a?y.a.createElement(_e,Object.assign({},T(n,"key-modal-submit"),{className:"key-modal-submit",onClick:function(t){return e.submit()}})):null),y.a.createElement("span",T(n,"key-modal-cancel"),y.a.createElement(ge,Object.assign({},T(n,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){F.dispatch({rjvId:r,name:"RESET"})}})))))}}]),n}(y.a.PureComponent),Ie=function(e){c(n,e);var t=v(n);function n(){var e;a(this,n);for(var r=arguments.length,o=new Array(r),s=0;s"']/g,G=RegExp(X.source),J=RegExp(Y.source),Z=/<%-([\s\S]+?)%>/g,ee=/<%([\s\S]+?)%>/g,te=/<%=([\s\S]+?)%>/g,ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,re=/^\w*$/,oe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,ae=RegExp(ie.source),se=/^\s+/,ue=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,fe=/,? & /,pe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/[()=,{}\[\]\/\s]/,he=/\\(\\)?/g,ve=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ye=/^[-+]0x[0-9a-f]+$/i,be=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,we=/^0o[0-7]+$/i,_e=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ke=/($^)/,Oe=/['\n\r\u2028\u2029\\]/g,Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="\\u2700-\\u27bf",je="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Te="\\ufe0e\\ufe0f",Pe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Re="['\u2019]",Ae="[\\ud800-\\udfff]",Me="["+Pe+"]",De="["+Ee+"]",Ie="\\d+",Ne="[\\u2700-\\u27bf]",Le="["+je+"]",ze="[^\\ud800-\\udfff"+Pe+Ie+Se+je+Ce+"]",Fe="\\ud83c[\\udffb-\\udfff]",Be="[^\\ud800-\\udfff]",Ue="(?:\\ud83c[\\udde6-\\uddff]){2}",qe="[\\ud800-\\udbff][\\udc00-\\udfff]",We="["+Ce+"]",Ve="(?:"+Le+"|"+ze+")",He="(?:"+We+"|"+ze+")",$e="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ke="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Qe="(?:"+De+"|"+Fe+")"+"?",Xe="[\\ufe0e\\ufe0f]?",Ye=Xe+Qe+("(?:\\u200d(?:"+[Be,Ue,qe].join("|")+")"+Xe+Qe+")*"),Ge="(?:"+[Ne,Ue,qe].join("|")+")"+Ye,Je="(?:"+[Be+De+"?",De,Ue,qe,Ae].join("|")+")",Ze=RegExp(Re,"g"),et=RegExp(De,"g"),tt=RegExp(Fe+"(?="+Fe+")|"+Je+Ye,"g"),nt=RegExp([We+"?"+Le+"+"+$e+"(?="+[Me,We,"$"].join("|")+")",He+"+"+Ke+"(?="+[Me,We+Ve,"$"].join("|")+")",We+"?"+Ve+"+"+$e,We+"+"+Ke,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ie,Ge].join("|"),"g"),rt=RegExp("[\\u200d\\ud800-\\udfff"+Ee+Te+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,st={};st[L]=st[z]=st[F]=st[B]=st[U]=st[q]=st[W]=st[V]=st[H]=!0,st[g]=st[w]=st[I]=st[_]=st[N]=st[x]=st[k]=st[O]=st[S]=st[j]=st[C]=st[P]=st[R]=st[A]=st[D]=!1;var ut={};ut[g]=ut[w]=ut[I]=ut[N]=ut[_]=ut[x]=ut[L]=ut[z]=ut[F]=ut[B]=ut[U]=ut[S]=ut[j]=ut[C]=ut[P]=ut[R]=ut[A]=ut[M]=ut[q]=ut[W]=ut[V]=ut[H]=!0,ut[k]=ut[O]=ut[D]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,ft=parseInt,pt="object"==typeof e&&e&&e.Object===Object&&e,dt="object"==typeof self&&self&&self.Object===Object&&self,ht=pt||dt||Function("return this")(),vt=t&&!t.nodeType&&t,mt=vt&&"object"==typeof r&&r&&!r.nodeType&&r,yt=mt&&mt.exports===vt,bt=yt&&pt.process,gt=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||bt&&bt.binding&&bt.binding("util")}catch(t){}}(),wt=gt&>.isArrayBuffer,_t=gt&>.isDate,xt=gt&>.isMap,kt=gt&>.isRegExp,Ot=gt&>.isSet,Et=gt&>.isTypedArray;function St(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function jt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function Mt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function nn(e,t){for(var n=e.length;n--&&qt(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var on=Kt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),an=Kt({"&":"&","<":"<",">":">",'"':""","'":"'"});function sn(e){return"\\"+lt[e]}function un(e){return rt.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function fn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"});var bn=function e(t){var n=(t=null==t?ht:bn.defaults(ht.Object(),t,bn.pick(ht,it))).Array,r=t.Date,o=t.Error,ue=t.Function,Ee=t.Math,Se=t.Object,je=t.RegExp,Ce=t.String,Te=t.TypeError,Pe=n.prototype,Re=ue.prototype,Ae=Se.prototype,Me=t["__core-js_shared__"],De=Re.toString,Ie=Ae.hasOwnProperty,Ne=0,Le=function(){var e=/[^.]+$/.exec(Me&&Me.keys&&Me.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ze=Ae.toString,Fe=De.call(Se),Be=ht._,Ue=je("^"+De.call(Ie).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qe=yt?t.Buffer:i,We=t.Symbol,Ve=t.Uint8Array,He=qe?qe.allocUnsafe:i,$e=cn(Se.getPrototypeOf,Se),Ke=Se.create,Qe=Ae.propertyIsEnumerable,Xe=Pe.splice,Ye=We?We.isConcatSpreadable:i,Ge=We?We.iterator:i,Je=We?We.toStringTag:i,tt=function(){try{var e=di(Se,"defineProperty");return e({},"",{}),e}catch(t){}}(),rt=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,lt=r&&r.now!==ht.Date.now&&r.now,pt=t.setTimeout!==ht.setTimeout&&t.setTimeout,dt=Ee.ceil,vt=Ee.floor,mt=Se.getOwnPropertySymbols,bt=qe?qe.isBuffer:i,gt=t.isFinite,Ft=Pe.join,Kt=cn(Se.keys,Se),gn=Ee.max,wn=Ee.min,_n=r.now,xn=t.parseInt,kn=Ee.random,On=Pe.reverse,En=di(t,"DataView"),Sn=di(t,"Map"),jn=di(t,"Promise"),Cn=di(t,"Set"),Tn=di(t,"WeakMap"),Pn=di(Se,"create"),Rn=Tn&&new Tn,An={},Mn=Bi(En),Dn=Bi(Sn),In=Bi(jn),Nn=Bi(Cn),Ln=Bi(Tn),zn=We?We.prototype:i,Fn=zn?zn.valueOf:i,Bn=zn?zn.toString:i;function Un(e){if(rs(e)&&!$a(e)&&!(e instanceof Hn)){if(e instanceof Vn)return e;if(Ie.call(e,"__wrapped__"))return Ui(e)}return new Vn(e)}var qn=function(){function e(){}return function(t){if(!ns(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Wn(){}function Vn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Hn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=y,this.__views__=[]}function $n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function lr(e,t,n,r,o,a){var s,u=1&t,l=2&t,c=4&t;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!ns(e))return e;var f=$a(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ie.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!u)return Ro(e,s)}else{var p=mi(e),d=p==O||p==E;if(Ya(e))return Eo(e,u);if(p==C||p==g||d&&!o){if(s=l||d?{}:bi(e),!u)return l?function(e,t){return Ao(e,vi(e),t)}(e,function(e,t){return e&&Ao(t,Ds(t),e)}(s,e)):function(e,t){return Ao(e,hi(e),t)}(e,ir(s,e))}else{if(!ut[p])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case I:return So(e);case _:case x:return new r(+e);case N:return function(e,t){var n=t?So(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case L:case z:case F:case B:case U:case q:case W:case V:case H:return jo(e,n);case S:return new r;case j:case A:return new r(e);case P:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case R:return new r;case M:return o=e,Fn?Se(Fn.call(o)):{}}var o}(e,p,u)}}a||(a=new Yn);var h=a.get(e);if(h)return h;a.set(e,s),us(e)?e.forEach((function(r){s.add(lr(r,t,n,r,e,a))})):os(e)&&e.forEach((function(r,o){s.set(o,lr(r,t,n,o,e,a))}));var v=f?i:(c?l?ai:ii:l?Ds:Ms)(e);return Ct(v||e,(function(r,o){v&&(r=e[o=r]),nr(s,o,lr(r,t,n,o,e,a))})),s}function cr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Se(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function fr(e,t,n){if("function"!=typeof e)throw new Te(a);return Mi((function(){e.apply(i,n)}),t)}function pr(e,t,n,r){var o=-1,i=At,a=!0,s=e.length,u=[],l=t.length;if(!s)return u;n&&(t=Dt(t,Jt(n))),r?(i=Mt,a=!1):t.length>=200&&(i=en,a=!1,t=new Xn(t));e:for(;++o-1},Kn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Qn.prototype.clear=function(){this.size=0,this.__data__={hash:new $n,map:new(Sn||Kn),string:new $n}},Qn.prototype.delete=function(e){var t=fi(this,e).delete(e);return this.size-=t?1:0,t},Qn.prototype.get=function(e){return fi(this,e).get(e)},Qn.prototype.has=function(e){return fi(this,e).has(e)},Qn.prototype.set=function(e,t){var n=fi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Xn.prototype.add=Xn.prototype.push=function(e){return this.__data__.set(e,s),this},Xn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.clear=function(){this.__data__=new Kn,this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Yn.prototype.get=function(e){return this.__data__.get(e)},Yn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Kn){var r=n.__data__;if(!Sn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Qn(r)}return n.set(e,t),this.size=n.size,this};var dr=Io(_r),hr=Io(xr,!0);function vr(e,t){var n=!0;return dr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function mr(e,t,n){for(var r=-1,o=e.length;++r0&&n(s)?t>1?br(s,t-1,n,r,o):It(o,s):r||(o[o.length]=s)}return o}var gr=No(),wr=No(!0);function _r(e,t){return e&&gr(e,t,Ms)}function xr(e,t){return e&&wr(e,t,Ms)}function kr(e,t){return Rt(t,(function(t){return Za(e[t])}))}function Or(e,t){for(var n=0,r=(t=_o(t,e)).length;null!=e&&nt}function Cr(e,t){return null!=e&&Ie.call(e,t)}function Tr(e,t){return null!=e&&t in Se(e)}function Pr(e,t,r){for(var o=r?Mt:At,a=e[0].length,s=e.length,u=s,l=n(s),c=1/0,f=[];u--;){var p=e[u];u&&t&&(p=Dt(p,Jt(t))),c=wn(p.length,c),l[u]=!r&&(t||a>=120&&p.length>=120)?new Xn(u&&p):i}p=e[0];var d=-1,h=l[0];e:for(;++d=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function $r(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)s!==e&&Xe.call(s,u,1),Xe.call(e,u,1);return e}function Qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;wi(o)?Xe.call(e,o,1):po(e,o)}}return e}function Xr(e,t){return e+vt(kn()*(t-e+1))}function Yr(e,t){var n="";if(!e||t<1||t>v)return n;do{t%2&&(n+=e),(t=vt(t/2))&&(e+=e)}while(t);return n}function Gr(e,t){return Di(Ci(e,t,iu),e+"")}function Jr(e){return Jn(qs(e))}function Zr(e,t){var n=qs(e);return Li(n,ur(t,0,n.length))}function eo(e,t,n,r){if(!ns(e))return e;for(var o=-1,a=(t=_o(t,e)).length,s=a-1,u=e;null!=u&&++oi?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=n(i);++o>>1,a=e[i];null!==a&&!cs(a)&&(n?a<=t:a=200){var l=t?null:Go(e);if(l)return pn(l);a=!1,o=en,u=new Xn}else u=t?[]:s;e:for(;++r=r?e:oo(e,t,n)}var Oo=rt||function(e){return ht.clearTimeout(e)};function Eo(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function So(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function jo(e,t){var n=t?So(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Co(e,t){if(e!==t){var n=e!==i,r=null===e,o=e===e,a=cs(e),s=t!==i,u=null===t,l=t===t,c=cs(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||r&&s&&l||!n&&l||!o)return 1;if(!r&&!a&&!c&&e1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&_i(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=Se(t);++r-1?o[a?t[s]:s]:i}}function Uo(e){return oi((function(t){var n=t.length,r=n,o=Vn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Te(a);if(o&&!u&&"wrapper"==ui(s))var u=new Vn([],!0)}for(r=u?r:n;++r1&&g.reverse(),d&&cu))return!1;var c=a.get(e),f=a.get(t);if(c&&f)return c==t&&f==e;var p=-1,d=!0,h=2&n?new Xn:i;for(a.set(e,t),a.set(t,e);++p-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ct(b,(function(n){var r="_."+n[0];t&n[1]&&!At(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(fe):[]}(r),n)))}function Ni(e){var t=0,n=0;return function(){var r=_n(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Li(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,sa(e,n)}));function ha(e){var t=Un(e);return t.__chain__=!0,t}function va(e,t){return t(e)}var ma=oi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Hn&&wi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:va,args:[o],thisArg:i}),new Vn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)}));var ya=Mo((function(e,t,n){Ie.call(e,n)?++e[n]:ar(e,n,1)}));var ba=Bo(Hi),ga=Bo($i);function wa(e,t){return($a(e)?Ct:dr)(e,ci(t,3))}function _a(e,t){return($a(e)?Tt:hr)(e,ci(t,3))}var xa=Mo((function(e,t,n){Ie.call(e,n)?e[n].push(t):ar(e,n,[t])}));var ka=Gr((function(e,t,r){var o=-1,i="function"==typeof t,a=Qa(e)?n(e.length):[];return dr(e,(function(e){a[++o]=i?St(t,e,r):Rr(e,t,r)})),a})),Oa=Mo((function(e,t,n){ar(e,n,t)}));function Ea(e,t){return($a(e)?Dt:Br)(e,ci(t,3))}var Sa=Mo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ja=Gr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&_i(e,t[0],t[1])?t=[]:n>2&&_i(t[0],t[1],t[2])&&(t=[t[0]]),Hr(e,br(t,1),[])})),Ca=lt||function(){return ht.Date.now()};function Ta(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Zo(e,p,i,i,i,i,t)}function Pa(e,t){var n;if("function"!=typeof t)throw new Te(a);return e=ms(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Ra=Gr((function(e,t,n){var r=1;if(n.length){var o=fn(n,li(Ra));r|=c}return Zo(e,r,t,n,o)})),Aa=Gr((function(e,t,n){var r=3;if(n.length){var o=fn(n,li(Aa));r|=c}return Zo(t,r,e,n,o)}));function Ma(e,t,n){var r,o,s,u,l,c,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new Te(a);function v(t){var n=r,a=o;return r=o=i,f=t,u=e.apply(a,n)}function m(e){return f=e,l=Mi(b,t),p?v(e):u}function y(e){var n=e-c;return c===i||n>=t||n<0||d&&e-f>=s}function b(){var e=Ca();if(y(e))return g(e);l=Mi(b,function(e){var n=t-(e-c);return d?wn(n,s-(e-f)):n}(e))}function g(e){return l=i,h&&r?v(e):(r=o=i,u)}function w(){var e=Ca(),n=y(e);if(r=arguments,o=this,c=e,n){if(l===i)return m(c);if(d)return Oo(l),l=Mi(b,t),v(c)}return l===i&&(l=Mi(b,t)),u}return t=bs(t)||0,ns(n)&&(p=!!n.leading,s=(d="maxWait"in n)?gn(bs(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),w.cancel=function(){l!==i&&Oo(l),f=0,r=c=o=l=i},w.flush=function(){return l===i?u:g(Ca())},w}var Da=Gr((function(e,t){return fr(e,1,t)})),Ia=Gr((function(e,t,n){return fr(e,bs(t)||0,n)}));function Na(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Te(a);var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Na.Cache||Qn),n}function La(e){if("function"!=typeof e)throw new Te(a);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Na.Cache=Qn;var za=xo((function(e,t){var n=(t=1==t.length&&$a(t[0])?Dt(t[0],Jt(ci())):Dt(br(t,1),Jt(ci()))).length;return Gr((function(r){for(var o=-1,i=wn(r.length,n);++o=t})),Ha=Ar(function(){return arguments}())?Ar:function(e){return rs(e)&&Ie.call(e,"callee")&&!Qe.call(e,"callee")},$a=n.isArray,Ka=wt?Jt(wt):function(e){return rs(e)&&Sr(e)==I};function Qa(e){return null!=e&&ts(e.length)&&!Za(e)}function Xa(e){return rs(e)&&Qa(e)}var Ya=bt||bu,Ga=_t?Jt(_t):function(e){return rs(e)&&Sr(e)==x};function Ja(e){if(!rs(e))return!1;var t=Sr(e);return t==k||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!as(e)}function Za(e){if(!ns(e))return!1;var t=Sr(e);return t==O||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function es(e){return"number"==typeof e&&e==ms(e)}function ts(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=v}function ns(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function rs(e){return null!=e&&"object"==typeof e}var os=xt?Jt(xt):function(e){return rs(e)&&mi(e)==S};function is(e){return"number"==typeof e||rs(e)&&Sr(e)==j}function as(e){if(!rs(e)||Sr(e)!=C)return!1;var t=$e(e);if(null===t)return!0;var n=Ie.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&De.call(n)==Fe}var ss=kt?Jt(kt):function(e){return rs(e)&&Sr(e)==P};var us=Ot?Jt(Ot):function(e){return rs(e)&&mi(e)==R};function ls(e){return"string"==typeof e||!$a(e)&&rs(e)&&Sr(e)==A}function cs(e){return"symbol"==typeof e||rs(e)&&Sr(e)==M}var fs=Et?Jt(Et):function(e){return rs(e)&&ts(e.length)&&!!st[Sr(e)]};var ps=Qo(Fr),ds=Qo((function(e,t){return e<=t}));function hs(e){if(!e)return[];if(Qa(e))return ls(e)?vn(e):Ro(e);if(Ge&&e[Ge])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ge]());var t=mi(e);return(t==S?ln:t==R?pn:qs)(e)}function vs(e){return e?(e=bs(e))===h||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function ms(e){var t=vs(e),n=t%1;return t===t?n?t-n:t:0}function ys(e){return e?ur(ms(e),0,y):0}function bs(e){if("number"==typeof e)return e;if(cs(e))return m;if(ns(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ns(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Gt(e);var n=be.test(e);return n||we.test(e)?ft(e.slice(2),n?2:8):ye.test(e)?m:+e}function gs(e){return Ao(e,Ds(e))}function ws(e){return null==e?"":co(e)}var _s=Do((function(e,t){if(Ei(t)||Qa(t))Ao(t,Ms(t),e);else for(var n in t)Ie.call(t,n)&&nr(e,n,t[n])})),xs=Do((function(e,t){Ao(t,Ds(t),e)})),ks=Do((function(e,t,n,r){Ao(t,Ds(t),e,r)})),Os=Do((function(e,t,n,r){Ao(t,Ms(t),e,r)})),Es=oi(sr);var Ss=Gr((function(e,t){e=Se(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&_i(t[0],t[1],o)&&(r=1);++n1),t})),Ao(e,ai(e),n),r&&(n=lr(n,7,ni));for(var o=t.length;o--;)po(n,t[o]);return n}));var zs=oi((function(e,t){return null==e?{}:function(e,t){return $r(e,t,(function(t,n){return Ts(e,n)}))}(e,t)}));function Fs(e,t){if(null==e)return{};var n=Dt(ai(e),(function(e){return[e]}));return t=ci(t),$r(e,n,(function(e,n){return t(e,n[0])}))}var Bs=Jo(Ms),Us=Jo(Ds);function qs(e){return null==e?[]:Zt(e,Ms(e))}var Ws=zo((function(e,t,n){return t=t.toLowerCase(),e+(n?Vs(t):t)}));function Vs(e){return Js(ws(e).toLowerCase())}function Hs(e){return(e=ws(e))&&e.replace(xe,on).replace(et,"")}var $s=zo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ks=zo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Qs=Lo("toLowerCase");var Xs=zo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ys=zo((function(e,t,n){return e+(n?" ":"")+Js(t)}));var Gs=zo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Js=Lo("toUpperCase");function Zs(e,t,n){return e=ws(e),(t=n?i:t)===i?function(e){return ot.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(pe)||[]}(e):e.match(t)||[]}var eu=Gr((function(e,t){try{return St(e,i,t)}catch(n){return Ja(n)?n:new o(n)}})),tu=oi((function(e,t){return Ct(t,(function(t){t=Fi(t),ar(e,t,Ra(e[t],e))})),e}));function nu(e){return function(){return e}}var ru=Uo(),ou=Uo(!0);function iu(e){return e}function au(e){return Nr("function"==typeof e?e:lr(e,1))}var su=Gr((function(e,t){return function(n){return Rr(n,e,t)}})),uu=Gr((function(e,t){return function(n){return Rr(e,n,t)}}));function lu(e,t,n){var r=Ms(t),o=kr(t,r);null!=n||ns(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=kr(t,Ms(t)));var i=!(ns(n)&&"chain"in n)||!!n.chain,a=Za(e);return Ct(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=Ro(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,It([this.value()],arguments))})})),e}function cu(){}var fu=Ho(Dt),pu=Ho(Pt),du=Ho(zt);function hu(e){return xi(e)?$t(Fi(e)):function(e){return function(t){return Or(t,e)}}(e)}var vu=Ko(),mu=Ko(!0);function yu(){return[]}function bu(){return!1}var gu=Vo((function(e,t){return e+t}),0),wu=Yo("ceil"),_u=Vo((function(e,t){return e/t}),1),xu=Yo("floor");var ku=Vo((function(e,t){return e*t}),1),Ou=Yo("round"),Eu=Vo((function(e,t){return e-t}),0);return Un.after=function(e,t){if("function"!=typeof t)throw new Te(a);return e=ms(e),function(){if(--e<1)return t.apply(this,arguments)}},Un.ary=Ta,Un.assign=_s,Un.assignIn=xs,Un.assignInWith=ks,Un.assignWith=Os,Un.at=Es,Un.before=Pa,Un.bind=Ra,Un.bindAll=tu,Un.bindKey=Aa,Un.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return $a(e)?e:[e]},Un.chain=ha,Un.chunk=function(e,t,r){t=(r?_i(e,t,r):t===i)?1:gn(ms(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,u=n(dt(o/t));ao?0:o+n),(r=r===i||r>o?o:ms(r))<0&&(r+=o),r=n>r?0:ys(r);n>>0)?(e=ws(e))&&("string"==typeof t||null!=t&&!ss(t))&&!(t=co(t))&&un(e)?ko(vn(e),0,n):e.split(t,n):[]},Un.spread=function(e,t){if("function"!=typeof e)throw new Te(a);return t=null==t?0:gn(ms(t),0),Gr((function(n){var r=n[t],o=ko(n,0,t);return r&&It(o,r),St(e,this,o)}))},Un.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},Un.take=function(e,t,n){return e&&e.length?oo(e,0,(t=n||t===i?1:ms(t))<0?0:t):[]},Un.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,(t=r-(t=n||t===i?1:ms(t)))<0?0:t,r):[]},Un.takeRightWhile=function(e,t){return e&&e.length?vo(e,ci(t,3),!1,!0):[]},Un.takeWhile=function(e,t){return e&&e.length?vo(e,ci(t,3)):[]},Un.tap=function(e,t){return t(e),e},Un.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Te(a);return ns(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ma(e,t,{leading:r,maxWait:t,trailing:o})},Un.thru=va,Un.toArray=hs,Un.toPairs=Bs,Un.toPairsIn=Us,Un.toPath=function(e){return $a(e)?Dt(e,Fi):cs(e)?[e]:Ro(zi(ws(e)))},Un.toPlainObject=gs,Un.transform=function(e,t,n){var r=$a(e),o=r||Ya(e)||fs(e);if(t=ci(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ns(e)&&Za(i)?qn($e(e)):{}}return(o?Ct:_r)(e,(function(e,r,o){return t(n,e,r,o)})),n},Un.unary=function(e){return Ta(e,1)},Un.union=ra,Un.unionBy=oa,Un.unionWith=ia,Un.uniq=function(e){return e&&e.length?fo(e):[]},Un.uniqBy=function(e,t){return e&&e.length?fo(e,ci(t,2)):[]},Un.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?fo(e,i,t):[]},Un.unset=function(e,t){return null==e||po(e,t)},Un.unzip=aa,Un.unzipWith=sa,Un.update=function(e,t,n){return null==e?e:ho(e,t,wo(n))},Un.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:ho(e,t,wo(n),r)},Un.values=qs,Un.valuesIn=function(e){return null==e?[]:Zt(e,Ds(e))},Un.without=ua,Un.words=Zs,Un.wrap=function(e,t){return Fa(wo(t),e)},Un.xor=la,Un.xorBy=ca,Un.xorWith=fa,Un.zip=pa,Un.zipObject=function(e,t){return bo(e||[],t||[],nr)},Un.zipObjectDeep=function(e,t){return bo(e||[],t||[],eo)},Un.zipWith=da,Un.entries=Bs,Un.entriesIn=Us,Un.extend=xs,Un.extendWith=ks,lu(Un,Un),Un.add=gu,Un.attempt=eu,Un.camelCase=Ws,Un.capitalize=Vs,Un.ceil=wu,Un.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=bs(n))===n?n:0),t!==i&&(t=(t=bs(t))===t?t:0),ur(bs(e),t,n)},Un.clone=function(e){return lr(e,4)},Un.cloneDeep=function(e){return lr(e,5)},Un.cloneDeepWith=function(e,t){return lr(e,5,t="function"==typeof t?t:i)},Un.cloneWith=function(e,t){return lr(e,4,t="function"==typeof t?t:i)},Un.conformsTo=function(e,t){return null==t||cr(e,t,Ms(t))},Un.deburr=Hs,Un.defaultTo=function(e,t){return null==e||e!==e?t:e},Un.divide=_u,Un.endsWith=function(e,t,n){e=ws(e),t=co(t);var r=e.length,o=n=n===i?r:ur(ms(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Un.eq=qa,Un.escape=function(e){return(e=ws(e))&&J.test(e)?e.replace(Y,an):e},Un.escapeRegExp=function(e){return(e=ws(e))&&ae.test(e)?e.replace(ie,"\\$&"):e},Un.every=function(e,t,n){var r=$a(e)?Pt:vr;return n&&_i(e,t,n)&&(t=i),r(e,ci(t,3))},Un.find=ba,Un.findIndex=Hi,Un.findKey=function(e,t){return Bt(e,ci(t,3),_r)},Un.findLast=ga,Un.findLastIndex=$i,Un.findLastKey=function(e,t){return Bt(e,ci(t,3),xr)},Un.floor=xu,Un.forEach=wa,Un.forEachRight=_a,Un.forIn=function(e,t){return null==e?e:gr(e,ci(t,3),Ds)},Un.forInRight=function(e,t){return null==e?e:wr(e,ci(t,3),Ds)},Un.forOwn=function(e,t){return e&&_r(e,ci(t,3))},Un.forOwnRight=function(e,t){return e&&xr(e,ci(t,3))},Un.get=Cs,Un.gt=Wa,Un.gte=Va,Un.has=function(e,t){return null!=e&&yi(e,t,Cr)},Un.hasIn=Ts,Un.head=Qi,Un.identity=iu,Un.includes=function(e,t,n,r){e=Qa(e)?e:qs(e),n=n&&!r?ms(n):0;var o=e.length;return n<0&&(n=gn(o+n,0)),ls(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&qt(e,t,n)>-1},Un.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ms(n);return o<0&&(o=gn(r+o,0)),qt(e,t,o)},Un.inRange=function(e,t,n){return t=vs(t),n===i?(n=t,t=0):n=vs(n),function(e,t,n){return e>=wn(t,n)&&e=-9007199254740991&&e<=v},Un.isSet=us,Un.isString=ls,Un.isSymbol=cs,Un.isTypedArray=fs,Un.isUndefined=function(e){return e===i},Un.isWeakMap=function(e){return rs(e)&&mi(e)==D},Un.isWeakSet=function(e){return rs(e)&&"[object WeakSet]"==Sr(e)},Un.join=function(e,t){return null==e?"":Ft.call(e,t)},Un.kebabCase=$s,Un.last=Ji,Un.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=ms(n))<0?gn(r+o,0):wn(o,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Ut(e,Vt,o,!0)},Un.lowerCase=Ks,Un.lowerFirst=Qs,Un.lt=ps,Un.lte=ds,Un.max=function(e){return e&&e.length?mr(e,iu,jr):i},Un.maxBy=function(e,t){return e&&e.length?mr(e,ci(t,2),jr):i},Un.mean=function(e){return Ht(e,iu)},Un.meanBy=function(e,t){return Ht(e,ci(t,2))},Un.min=function(e){return e&&e.length?mr(e,iu,Fr):i},Un.minBy=function(e,t){return e&&e.length?mr(e,ci(t,2),Fr):i},Un.stubArray=yu,Un.stubFalse=bu,Un.stubObject=function(){return{}},Un.stubString=function(){return""},Un.stubTrue=function(){return!0},Un.multiply=ku,Un.nth=function(e,t){return e&&e.length?Vr(e,ms(t)):i},Un.noConflict=function(){return ht._===this&&(ht._=Be),this},Un.noop=cu,Un.now=Ca,Un.pad=function(e,t,n){e=ws(e);var r=(t=ms(t))?hn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return $o(vt(o),n)+e+$o(dt(o),n)},Un.padEnd=function(e,t,n){e=ws(e);var r=(t=ms(t))?hn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=kn();return wn(e+o*(t-e+ct("1e-"+((o+"").length-1))),t)}return Xr(e,t)},Un.reduce=function(e,t,n){var r=$a(e)?Nt:Qt,o=arguments.length<3;return r(e,ci(t,4),n,o,dr)},Un.reduceRight=function(e,t,n){var r=$a(e)?Lt:Qt,o=arguments.length<3;return r(e,ci(t,4),n,o,hr)},Un.repeat=function(e,t,n){return t=(n?_i(e,t,n):t===i)?1:ms(t),Yr(ws(e),t)},Un.replace=function(){var e=arguments,t=ws(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Un.result=function(e,t,n){var r=-1,o=(t=_o(t,e)).length;for(o||(o=1,e=i);++rv)return[];var n=y,r=wn(e,y);t=ci(t),e-=y;for(var o=Yt(r,t);++n=a)return e;var u=n-hn(r);if(u<1)return r;var l=s?ko(s,0,u).join(""):e.slice(0,u);if(o===i)return l+r;if(s&&(u+=l.length-u),ss(o)){if(e.slice(u).search(o)){var c,f=l;for(o.global||(o=je(o.source,ws(me.exec(o))+"g")),o.lastIndex=0;c=o.exec(f);)var p=c.index;l=l.slice(0,p===i?u:p)}}else if(e.indexOf(co(o),u)!=u){var d=l.lastIndexOf(o);d>-1&&(l=l.slice(0,d))}return l+r},Un.unescape=function(e){return(e=ws(e))&&G.test(e)?e.replace(X,yn):e},Un.uniqueId=function(e){var t=++Ne;return ws(e)+t},Un.upperCase=Gs,Un.upperFirst=Js,Un.each=wa,Un.eachRight=_a,Un.first=Qi,lu(Un,function(){var e={};return _r(Un,(function(t,n){Ie.call(Un.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Un.VERSION="4.17.21",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Un[e].placeholder=Un})),Ct(["drop","take"],(function(e,t){Hn.prototype[e]=function(n){n=n===i?1:gn(ms(n),0);var r=this.__filtered__&&!t?new Hn(this):this.clone();return r.__filtered__?r.__takeCount__=wn(n,r.__takeCount__):r.__views__.push({size:wn(n,y),type:e+(r.__dir__<0?"Right":"")}),r},Hn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ct(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Hn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ci(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Ct(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Hn.prototype[e]=function(){return this[n](1).value()[0]}})),Ct(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Hn.prototype[e]=function(){return this.__filtered__?new Hn(this):this[n](1)}})),Hn.prototype.compact=function(){return this.filter(iu)},Hn.prototype.find=function(e){return this.filter(e).head()},Hn.prototype.findLast=function(e){return this.reverse().find(e)},Hn.prototype.invokeMap=Gr((function(e,t){return"function"==typeof e?new Hn(this):this.map((function(n){return Rr(n,e,t)}))})),Hn.prototype.reject=function(e){return this.filter(La(ci(e)))},Hn.prototype.slice=function(e,t){e=ms(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Hn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=ms(t))<0?n.dropRight(-t):n.take(t-e)),n)},Hn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hn.prototype.toArray=function(){return this.take(y)},_r(Hn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Un[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(Un.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof Hn,l=s[0],c=u||$a(t),f=function(e){var t=o.apply(Un,It([e],s));return r&&p?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(u=c=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,v=u&&!d;if(!a&&c){t=v?t:new Hn(this);var m=e.apply(t,s);return m.__actions__.push({func:va,args:[f],thisArg:i}),new Vn(m,p)}return h&&v?e.apply(this,s):(m=this.thru(f),h?r?m.value()[0]:m.value():m)})})),Ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Pe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Un.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply($a(o)?o:[],e)}return this[n]((function(n){return t.apply($a(n)?n:[],e)}))}})),_r(Hn.prototype,(function(e,t){var n=Un[t];if(n){var r=n.name+"";Ie.call(An,r)||(An[r]=[]),An[r].push({name:t,func:n})}})),An[qo(i,2).name]=[{name:"wrapper",func:i}],Hn.prototype.clone=function(){var e=new Hn(this.__wrapped__);return e.__actions__=Ro(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ro(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ro(this.__views__),e},Hn.prototype.reverse=function(){if(this.__filtered__){var e=new Hn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=$a(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Un.prototype.plant=function(e){for(var t,n=this;n instanceof Wn;){var r=Ui(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Un.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hn){var t=e;return this.__actions__.length&&(t=new Hn(this)),(t=t.reverse()).__actions__.push({func:va,args:[na],thisArg:i}),new Vn(t,this.__chain__)}return this.thru(na)},Un.prototype.toJSON=Un.prototype.valueOf=Un.prototype.value=function(){return mo(this.__wrapped__,this.__actions__)},Un.prototype.first=Un.prototype.head,Ge&&(Un.prototype[Ge]=function(){return this}),Un}();ht._=bn,(o=function(){return bn}.call(t,n,t,r))===i||(r.exports=o)}).call(this)}).call(this,n(40),n(65)(e))},function(e,t,n){"use strict";var r=n(69),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var o=d(n);o&&o!==h&&e(t,o,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var s=u(t),v=u(n),m=0;m