@nyris/nyris-webapp 0.3.66 → 0.3.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ /*! For license information please see main.51350b85.js.LICENSE.txt */
2
+ (()=>{var e={7583:e=>{function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return"function"===typeof e}function r(e){return"object"===typeof e&&null!==e}function i(e){return void 0===e}e.exports=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){var t,o,a,s,l,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||r(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(i(o=this._events[e]))return!1;if(n(o))switch(arguments.length){case 1:o.call(this);break;case 2:o.call(this,arguments[1]);break;case 3:o.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),o.apply(this,s)}else if(r(o))for(s=Array.prototype.slice.call(arguments,1),a=(u=o.slice()).length,l=0;l<a;l++)u[l].apply(this,s);return!0},t.prototype.addListener=function(e,o){var a;if(!n(o))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,n(o.listener)?o.listener:o),this._events[e]?r(this._events[e])?this._events[e].push(o):this._events[e]=[this._events[e],o]:this._events[e]=o,r(this._events[e])&&!this._events[e].warned&&(a=i(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"===typeof console.trace&&console.trace()),this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!n(t))throw TypeError("listener must be a function");var r=!1;function i(){this.removeListener(e,i),r||(r=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},t.prototype.removeListener=function(e,t){var i,o,a,s;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(i=this._events[e]).length,o=-1,i===t||n(i.listener)&&i.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(r(i)){for(s=a;s-- >0;)if(i[s]===t||i[s].listener&&i[s].listener===t){o=s;break}if(o<0)return this;1===i.length?(i.length=0,delete this._events[e]):i.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},5923:(e,t,n)=>{"use strict";n.d(t,{X4:()=>u,a:()=>d,e$:()=>c,eM:()=>s});var r=n(2582);function i(e){var t=arguments.length>1&&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 o(e){if(e.type)return e;if("#"===e.charAt(0))return o(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((0,r.A)(3,e));var i=e.substring(t+1,e.length-1).split(",");return{type:n,values:i=i.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=l(e),r=l(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function l(e){var t="hsl"===(e=o(e)).type?o(function(e){var t=(e=o(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-s*Math.max(Math.min(t-3,9-t,1),-1)},u="rgb",c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),a({type:u,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 u(e,t){return e=o(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,a(e)}function c(e,t){if(e=o(e),t=i(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 d(e,t){if(e=o(e),t=i(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)}},3914:(e,t,n)=>{"use strict";n.d(t,{A:()=>W});var r=n(9850),i=n(2405),o=n(9575),a=["xs","sm","md","lg","xl"];var s=n(4586);function l(e,t,n){var r;return(0,o.A)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,o.A)({paddingLeft:t(2),paddingRight:t(2)},n,(0,s.A)({},e.up("sm"),(0,o.A)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,s.A)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,s.A)(r,e.up("sm"),{minHeight:64}),r)},n)}var u=n(2582);const c={black:"#000",white:"#fff"};const d={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"};const f={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"};const 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"};const p={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"};const g={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"};const m={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"};const y={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"};var v=n(5923),b={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:c.white,default:d[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}},x={text:{primary:c.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:d[800],default:"#303030"},action:{active:c.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 w(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,v.a)(e.main,i):"dark"===t&&(e.dark=(0,v.e$)(e.main,o)))}function M(e){return Math.round(1e5*e)/1e5}function S(e){return M(e)}var j={textTransform:"uppercase"},N='"Roboto", "Helvetica", "Arial", sans-serif';function C(e,t){var n="function"===typeof t?t(e):t,a=n.fontFamily,s=void 0===a?N:a,l=n.fontSize,u=void 0===l?14:l,c=n.fontWeightLight,d=void 0===c?300:c,f=n.fontWeightRegular,h=void 0===f?400:f,p=n.fontWeightMedium,g=void 0===p?500:p,m=n.fontWeightBold,y=void 0===m?700:m,v=n.htmlFontSize,b=void 0===v?16:v,x=n.allVariants,w=n.pxToRem,C=(0,r.A)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var A=u/14,T=w||function(e){return"".concat(e/b*A,"rem")},E=function(e,t,n,r,i){return(0,o.A)({fontFamily:s,fontWeight:e,fontSize:T(t),lineHeight:n},s===N?{letterSpacing:"".concat(M(r/t),"em")}:{},i,x)},D={h1:E(d,96,1.167,-1.5),h2:E(d,60,1.2,-.5),h3:E(h,48,1.167,0),h4:E(h,34,1.235,.25),h5:E(h,24,1.334,0),h6:E(g,20,1.6,.15),subtitle1:E(h,16,1.75,.15),subtitle2:E(g,14,1.57,.1),body1:E(h,16,1.5,.15),body2:E(h,14,1.43,.15),button:E(g,14,1.75,.4,j),caption:E(h,12,1.66,.4),overline:E(h,12,2.66,1,j)};return(0,i.A)((0,o.A)({htmlFontSize:b,pxToRem:T,round:S,fontFamily:s,fontSize:u,fontWeightLight:d,fontWeightRegular:h,fontWeightMedium:g,fontWeightBold:y},D),C,{clone:!1})}function A(){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(",")}const T=["none",A(0,2,1,-1,0,1,1,0,0,1,3,0),A(0,3,1,-2,0,2,2,0,0,1,5,0),A(0,3,3,-2,0,3,4,0,0,1,8,0),A(0,2,4,-1,0,4,5,0,0,1,10,0),A(0,3,5,-1,0,5,8,0,0,1,14,0),A(0,3,5,-1,0,6,10,0,0,1,18,0),A(0,4,5,-2,0,7,10,1,0,2,16,1),A(0,5,5,-3,0,8,10,1,0,3,14,2),A(0,5,6,-3,0,9,12,1,0,3,16,2),A(0,6,6,-3,0,10,14,1,0,4,18,3),A(0,6,7,-4,0,11,15,1,0,4,20,3),A(0,7,8,-4,0,12,17,2,0,5,22,4),A(0,7,8,-4,0,13,19,2,0,5,24,4),A(0,7,9,-4,0,14,21,2,0,5,26,4),A(0,8,9,-5,0,15,22,2,0,6,28,5),A(0,8,10,-5,0,16,24,2,0,6,30,5),A(0,8,11,-5,0,17,26,2,0,6,32,5),A(0,9,11,-5,0,18,28,2,0,7,34,6),A(0,9,12,-6,0,19,29,2,0,7,36,6),A(0,10,13,-6,0,20,31,3,0,8,38,7),A(0,10,13,-6,0,21,33,3,0,8,40,7),A(0,10,14,-6,0,22,35,3,0,8,42,7),A(0,11,14,-7,0,23,36,3,0,9,44,8),A(0,11,15,-7,0,24,38,3,0,9,46,8)];const E={borderRadius:4};var D=n(2061),k=n(7545),O={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(O[e],"px)")}};const _=function(e,t){return t?(0,i.A)(e,t,{clone:!1}):e};var P={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"},R=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=(0,D.A)(t,2),r=n[0],i=n[1],o=P[r],a=L[i]||"";return Array.isArray(a)?a.map((function(e){return o+e})):[o+a]})),F=["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 B(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 V(e){var t=U(e.theme);return Object.keys(e).map((function(n){if(-1===F.indexOf(n))return null;var r=B(R(n),t),i=e[n];return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||I;return t.reduce((function(e,i,o){return e[r.up(r.keys[o])]=n(t[o]),e}),{})}if("object"===(0,k.A)(t)){var i=e.theme.breakpoints||I;return Object.keys(t).reduce((function(e,r){return e[i.up(r)]=n(t[r]),e}),{})}return n(t)}(e,i,r)})).reduce(_,{})}V.propTypes={},V.filterProps=F;var Q=n(1980),H=n(5212);function Y(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,s=e.mixins,M=void 0===s?{}:s,S=e.palette,j=void 0===S?{}:S,N=e.spacing,A=e.typography,D=void 0===A?{}:A,k=(0,r.A)(e,["breakpoints","mixins","palette","spacing","typography"]),O=function(e){var t=e.primary,n=void 0===t?{light:f[300],main:f[500],dark:f[700]}:t,a=e.secondary,s=void 0===a?{light:h.A200,main:h.A400,dark:h.A700}:a,l=e.error,M=void 0===l?{light:p[300],main:p[500],dark:p[700]}:l,S=e.warning,j=void 0===S?{light:g[300],main:g[500],dark:g[700]}:S,N=e.info,C=void 0===N?{light:m[300],main:m[500],dark:m[700]}:N,A=e.success,T=void 0===A?{light:y[300],main:y[500],dark:y[700]}:A,E=e.type,D=void 0===E?"light":E,k=e.contrastThreshold,O=void 0===k?3:k,I=e.tonalOffset,_=void 0===I?.2:I,P=(0,r.A)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function L(e){return(0,v.eM)(e,x.text.primary)>=O?x.text.primary:b.text.primary}var z=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=(0,o.A)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error((0,u.A)(4,t));if("string"!==typeof e.main)throw new Error((0,u.A)(5,JSON.stringify(e.main)));return w(e,"light",n,_),w(e,"dark",r,_),e.contrastText||(e.contrastText=L(e.main)),e},R={dark:x,light:b};return(0,i.A)((0,o.A)({common:c,type:D,primary:z(n),secondary:z(s,"A400","A200","A700"),error:z(M),warning:z(j),info:z(C),success:z(T),grey:d,contrastThreshold:O,getContrastText:L,augmentColor:z,tonalOffset:_},R[D]),P)}(j),I=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,i=e.unit,s=void 0===i?"px":i,l=e.step,u=void 0===l?5:l,c=(0,r.A)(e,["values","unit","step"]);function d(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function f(e,t){var r=a.indexOf(t);return r===a.length-1?d(e):"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[a[r+1]]?n[a[r+1]]:t)-u/100).concat(s,")")}return(0,o.A)({keys:a,values:n,up:d,down:function(e){var t=a.indexOf(e)+1,r=n[a[t]];return t===a.length?d("xs"):"@media (max-width:".concat(("number"===typeof r&&t>0?r:e)-u/100).concat(s,")")},between:f,only:function(e){return f(e,e)},width:function(e){return n[e]}},c)}(n),_=function(){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;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"===typeof e)return e;var n=t(e);return"number"===typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}(N),P=(0,i.A)({breakpoints:I,direction:"ltr",mixins:l(I,_,M),overrides:{},palette:O,props:{},shadows:T,typography:C(O,D),spacing:_,shape:E,transitions:Q.Ay,zIndex:H.A},k),L=arguments.length,z=new Array(L>1?L-1:0),R=1;R<L;R++)z[R-1]=arguments[R];return P=z.reduce((function(e,t){return(0,i.A)(e,t)}),P)}const W=Y},4040:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(3914).A)()},1980:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,p0:()=>o});var r=n(9850),i={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},o={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(e){return"".concat(Math.round(e),"ms")}const s={easing:i,duration:o,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,s=void 0===n?o.standard:n,l=t.easing,u=void 0===l?i.easeInOut:l,c=t.delay,d=void 0===c?0:c;(0,r.A)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof s?s:a(s)," ").concat(u," ").concat("string"===typeof d?d:a(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},4458:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(9575),i=n(9850),o=n(810),a=n(2592),s=n.n(a),l=n(8943),u=n(5343),c=n(5341);const d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var a=t.defaultTheme,d=t.withTheme,f=void 0!==d&&d,h=t.name,p=(0,i.A)(t,["defaultTheme","withTheme","name"]);var g=h,m=(0,l.A)(e,(0,r.A)({defaultTheme:a,Component:n,name:h||n.displayName,classNamePrefix:g},p)),y=o.forwardRef((function(e,t){e.classes;var s,l=e.innerRef,d=(0,i.A)(e,["classes","innerRef"]),p=m((0,r.A)({},n.defaultProps,e)),g=d;return("string"===typeof h||f)&&(s=(0,c.A)()||a,h&&(g=(0,u.A)({theme:s,name:h,props:d})),f&&!g.theme&&(g.theme=s)),o.createElement(n,(0,r.A)({ref:l||t,classes:p},g))}));return s()(y,n),y}};var f=n(4040);const h=function(e,t){return d(e,(0,r.A)({defaultTheme:f.A},t))}},5212:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},6557:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2582);function i(e){if("string"!==typeof e)throw new Error((0,r.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},4315:(e,t,n)=>{"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}}),(function(){}))}n.d(t,{A:()=>r})},9984:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(9575),i=n(810),o=n(9850),a=n(4007),s=n(4458),l=n(6557),u=i.forwardRef((function(e,t){var n=e.children,s=e.classes,u=e.className,c=e.color,d=void 0===c?"inherit":c,f=e.component,h=void 0===f?"svg":f,p=e.fontSize,g=void 0===p?"medium":p,m=e.htmlColor,y=e.titleAccess,v=e.viewBox,b=void 0===v?"0 0 24 24":v,x=(0,o.A)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return i.createElement(h,(0,r.A)({className:(0,a.A)(s.root,u,"inherit"!==d&&s["color".concat((0,l.A)(d))],"default"!==g&&"medium"!==g&&s["fontSize".concat((0,l.A)(g))]),focusable:"false",viewBox:b,color:m,"aria-hidden":!y||void 0,role:y?"img":void 0,ref:t},x),n,y?i.createElement("title",null,y):null)}));u.muiName="SvgIcon";const c=(0,s.A)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(u);function d(e,t){var n=function(t,n){return i.createElement(c,(0,r.A)({ref:n},t),e)};return n.muiName=c.muiName,i.memo(i.forwardRef(n))}},376:(e,t,n)=>{"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,i)}),n)}return r.clear=function(){clearTimeout(t)},r}n.d(t,{A:()=>r})},7728:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>r.A,createChainedFunction:()=>i.A,createSvgIcon:()=>o.A,debounce:()=>a.A,deprecatedPropType:()=>s,isMuiElement:()=>l.A,ownerDocument:()=>u.A,ownerWindow:()=>c.A,requirePropFactory:()=>d,setRef:()=>f.A,unstable_useId:()=>y.A,unsupportedProp:()=>h,useControlled:()=>p.A,useEventCallback:()=>g.A,useForkRef:()=>m.A,useIsFocusVisible:()=>v.A});var r=n(6557),i=n(4315),o=n(9984),a=n(376);function s(e,t){return function(){return null}}var l=n(1948),u=n(5077),c=n(2964);function d(e){return function(){return null}}var f=n(5486);function h(e,t,n,r,i){return null}var p=n(6586),g=n(9917),m=n(6935),y=n(5102),v=n(8542)},1948:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(810);function i(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},5077:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{A:()=>r})},2964:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(5077);function i(e){return(0,r.A)(e).defaultView||window}},5486:(e,t,n)=>{"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{A:()=>r})},5102:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(810);function i(e){var t=r.useState(e),n=t[0],i=t[1],o=e||n;return r.useEffect((function(){null==n&&i("mui-".concat(Math.round(1e5*Math.random())))}),[n]),o}},6586:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(810);function i(e){var t=e.controlled,n=e.default,i=(e.name,e.state,r.useRef(void 0!==t).current),o=r.useState(n),a=o[0],s=o[1];return[i?t:a,r.useCallback((function(e){i||s(e)}),[])]}},9917:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(810),i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;function o(e){var t=r.useRef(e);return i((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},6935:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(810),i=n(5486);function o(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){(0,i.A)(e,n),(0,i.A)(t,n)}}),[e,t])}},8542:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(810),i=n(715),o=!0,a=!1,s=null,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function u(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function c(){o=!1}function d(){"hidden"===this.visibilityState&&a&&(o=!0)}function f(e){var t=e.target;try{return t.matches(":focus-visible")}catch(n){}return o||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!l[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function h(){a=!0,window.clearTimeout(s),s=window.setTimeout((function(){a=!1}),100)}function p(){return{isFocusVisible:f,onBlurVisible:h,ref:r.useCallback((function(e){var t,n=i.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",u,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",d,!0))}),[])}}},7823:(e,t)=>{"use strict";var n=60103,r=60106,i=60107,o=60108,a=60114,s=60109,l=60110,u=60112,c=60113,d=60120,f=60115,h=60116,p=60121,g=60122,m=60117,y=60129,v=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),i=b("react.fragment"),o=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),l=b("react.context"),u=b("react.forward_ref"),c=b("react.suspense"),d=b("react.suspense_list"),f=b("react.memo"),h=b("react.lazy"),p=b("react.block"),g=b("react.server.block"),m=b("react.fundamental"),y=b("react.debug_trace_mode"),v=b("react.legacy_hidden")}function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case a:case o:case c:case d:return e;default:switch(e=e&&e.$$typeof){case l:case u:case h:case f:case s:return e;default:return t}}case r:return t}}}},6331:(e,t,n)=>{"use strict";n(7823)},1204:(e,t,n)=>{"use strict";var r=n(4293),i=n(8920);t.A=void 0;var o=i(n(810)),a=(0,r(n(3829)).default)(o.createElement("path",{d:"M14 7l-5 5 5 5V7z"}),"ArrowLeft");t.A=a},7263:(e,t,n)=>{"use strict";var r=n(4293),i=n(8920);t.A=void 0;var o=i(n(810)),a=(0,r(n(3829)).default)(o.createElement("path",{d:"M10 17l5-5-5-5v10z"}),"ArrowRight");t.A=a},4307:(e,t,n)=>{"use strict";var r=n(4293),i=n(8920);t.A=void 0;var o=i(n(810)),a=(0,r(n(3829)).default)(o.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"}),"ChevronRightOutlined");t.A=a},1811:(e,t,n)=>{"use strict";var r=n(4293),i=n(8920);t.A=void 0;var o=i(n(810)),a=(0,r(n(3829)).default)(o.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}),"ClearOutlined");t.A=a},8596:(e,t,n)=>{"use strict";var r=n(4293),i=n(8920);t.A=void 0;var o=i(n(810)),a=(0,r(n(3829)).default)(o.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");t.A=a},8238:(e,t,n)=>{"use strict";var r=n(4293),i=n(8920);t.A=void 0;var o=i(n(810)),a=(0,r(n(3829)).default)(o.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}),"CloseOutlined");t.A=a},7106:(e,t,n)=>{"use strict";var r=n(4293),i=n(8920);t.A=void 0;var o=i(n(810)),a=(0,r(n(3829)).default)(o.createElement("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDown");t.A=a},1723:(e,t,n)=>{"use strict";var r=n(4293),i=n(8920);t.A=void 0;var o=i(n(810)),a=(0,r(n(3829)).default)(o.createElement("path",{d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");t.A=a},3829:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(7728)},4755:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__"},5343:(e,t,n)=>{"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i,o=t.props[n];for(i in o)void 0===r[i]&&(r[i]=o[i]);return r}n.d(t,{A:()=>r})},8943:(e,t,n)=>{"use strict";n.d(t,{A:()=>un});var r=n(9850),i=n(9575),o=n(810),a="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};const s="object"===("undefined"===typeof window?"undefined":a(window))&&"object"===("undefined"===typeof document?"undefined":a(document))&&9===document.nodeType;var l=n(414),u=n(9140),c=n(2474),d=n(7502),f={}.constructor;function h(e){if(null==e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map(h);if(e.constructor!==f)return e;var t={};for(var n in e)t[n]=h(e[n]);return t}function p(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=h(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var g=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},m=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=g(e[n]," ");else t=g(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function y(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function v(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function b(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var i=n.indent,o=void 0===i?0:i,a=t.fallbacks;!1===n.format&&(o=-1/0);var s=y(n),l=s.linebreak,u=s.space;if(e&&o++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var f in d){var h=d[f];null!=h&&(r&&(r+=l),r+=v(f+":"+u+m(h)+";",o))}}else for(var p in a){var g=a[p];null!=g&&(r&&(r+=l),r+=v(p+":"+u+m(g)+";",o))}for(var b in t){var x=t[b];null!=x&&"fallbacks"!==b&&(r&&(r+=l),r+=v(b+":"+u+m(x)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),v(""+e+u+"{"+r,--o)+v("}",o)):r}var x=/([[\].#*$><+~=|^:(),"'`\s])/g,w="undefined"!==typeof CSS&&CSS.escape,M=function(e){return w?w(e):e.replace(x,"\\$1")},S=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),j=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l((0,c.A)((0,c.A)(i)),s),i.selectorText="."+M(i.id)),i}(0,u.A)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!==typeof n?e[t]=n:Array.isArray(n)&&(e[t]=m(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,i.A)({},e,{allowEmpty:!0}):e;return b(this.selectorText,this.style,n)},(0,l.A)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(S),N={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new j(e,t,n)}},C={indent:1,children:!0},A=/@([\w-]+)/,T=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(A);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new $((0,i.A)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=C);var t=y(e).linebreak;if(null==e.indent&&(e.indent=C.indent),null==e.children&&(e.children=C.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),E=/@container|@media|@supports\s+/,D={onCreateRule:function(e,t,n){return E.test(e)?new T(e,t,n):null}},k={indent:1,children:!0},O=/@keyframes\s+([\w-]+)/,I=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(O);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,a=n.sheet,s=n.generateId;for(var l in this.id=!1===o?this.name:M(s(this,a)),this.rules=new $((0,i.A)({},n,{parent:this})),t)this.rules.add(l,t[l],(0,i.A)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=k);var t=y(e).linebreak;if(null==e.indent&&(e.indent=k.indent),null==e.children&&(e.children=k.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),_=/@keyframes\s+/,P=/\$([\w-]+)/g,L=function(e,t){return"string"===typeof e?e.replace(P,(function(e,n){return n in t?t[n]:e})):e},z=function(e,t,n){var r=e[t],i=L(r,n);i!==r&&(e[t]=i)},R={onCreateRule:function(e,t,n){return"string"===typeof e&&_.test(e)?new I(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&z(e,"animation-name",n.keyframes),"animation"in e&&z(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return L(e,r.keyframes);default:return e}}},F=function(e){function t(){return e.apply(this,arguments)||this}return(0,u.A)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,i.A)({},e,{allowEmpty:!0}):e;return b(this.key,this.style,n)},t}(S),U={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new F(e,t,n):null}},B=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=y(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=b(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return b(this.at,this.style,e)},e}(),V=/@font-face/,Q={onCreateRule:function(e,t,n){return V.test(e)?new B(e,t,n):null}},H=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return b(this.key,this.style,e)},e}(),Y={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new H(e,t,n):null}},W=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),G={"@charset":!0,"@import":!0,"@namespace":!0},q={onCreateRule:function(e,t,n){return e in G?new W(e,t,n):null}},Z=[N,D,R,U,Q,Y,q],K={process:!0},X={force:!0,process:!0},$=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,a=r.sheet,s=r.jss,l=r.Renderer,u=r.generateId,c=r.scoped,d=(0,i.A)({classes:this.classes,parent:o,sheet:a,jss:s,Renderer:l,generateId:u,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),f=e;e in this.raw&&(f=e+"-d"+this.counter++),this.raw[f]=t,f in this.classes&&(d.selector="."+M(this.classes[f]));var h=p(f,t,d);if(!h)return null;this.register(h);var g=void 0===d.index?this.index.length:d.index;return this.index.splice(g,0,h),h},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var a=n;return-1!==o&&(a=(0,i.A)({},n,{index:o})),this.add(e,t,a)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof j?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof I&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof j?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof I&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"===typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=K);var i=this.options,o=i.jss.plugins,a=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(o.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in o.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,X)}for(var c in s){var d=t.style[c],f=s[c];null==d&&d!==f&&t.prop(c,null,X)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=y(e).linebreak,o=0;o<this.index.length;o++){var a=this.index[o].toString(e);(a||r)&&(t&&(t+=i),t+=a)}return t},e}(),J=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=(0,i.A)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new $(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?r.renderable&&this.renderer.replaceRule(r.renderable,i):this.renderer.deleteRule(r)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"===typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),ee=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),te=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,d.A)(t,["attached"]),i=y(r).linebreak,o="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(o&&(o+=i),o+=s.toString(r))}return o},(0,l.A)(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),ne=new te,re="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window&&window.Math===Math?window:"undefined"!==typeof self&&self.Math===Math?self:Function("return this")(),ie="2f1acc6c3a606b082e5eef5e54414ffb";null==re[ie]&&(re[ie]=0);var oe=re[ie]++,ae=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i="",o="";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?""+(o||"c")+oe+i+t:o+n.key+"-"+oe+(i?"-"+i:"")+"-"+t}},se=function(e){var t;return function(){return t||(t=e()),t}},le=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(n){return""}},ue=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=m(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var i=r?r.indexOf("!important"):-1,o=i>-1?r.substr(0,i-1):r;e.style.setProperty(t,o,i>-1?"important":"")}}catch(a){return!1}return!0},ce=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(n){}},de=function(e,t){return e.selectorText=t,e.selectorText===t},fe=se((function(){return document.querySelector("head")}));function he(e){var t=ne.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"===typeof r){var i=function(e){for(var t=fe(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}var pe=se((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),ge=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(r){return!1}return e.cssRules[n]},me=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},ye=function(){function e(e){this.getPropertyValue=le,this.setProperty=ue,this.removeProperty=ce,this.setSelector=de,this.hasInsertedRules=!1,this.cssRules=[],e&&ne.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=pe();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=he(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"===typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else fe().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,i=n;if("conditional"===e.type||"keyframes"===e.type){var o=me(n,t);if(!1===(i=ge(n,r.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(r.rules,i),i}var a=e.toString();if(!a)return!1;var s=me(n,t),l=ge(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof J&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),ve=0,be=function(){function e(e){this.id=ve++,this.version="10.10.0",this.plugins=new ee,this.options={id:{minify:!1},createGenerateId:ae,Renderer:s?ye:null,plugins:[]},this.generateId=ae({minify:!1});for(var t=0;t<Z.length;t++)this.plugins.use(Z[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=(0,i.A)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!==typeof n&&(n=0===ne.index?0:ne.index+1);var r=new J(e,(0,i.A)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),ne.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"===typeof e)return this.createRule(void 0,e,t);var r=(0,i.A)({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=p(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),xe=function(e){return new be(e)},we="object"===typeof CSS&&null!=CSS&&"number"in CSS;function Me(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var o=Me(r);o&&(t||(t={}),t[n]=o)}}return t}xe();function Se(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var r=(0,i.A)({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}var je={set:function(e,t,n,r){var i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}};const Ne=je;var Ce=n(5341),Ae=n(4755),Te=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var Ee=Date.now(),De="fnValues"+Ee,ke="fnStyle"+ ++Ee;const Oe=function(){return{onCreateRule:function(e,t,n){if("function"!==typeof t)return null;var r=p(e,{},n);return r[ke]=t,r},onProcessStyle:function(e,t){if(De in t||ke in t)return e;var n={};for(var r in e){var i=e[r];"function"===typeof i&&(delete e[r],n[r]=i)}return t[De]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[ke];o&&(i.style=o(e)||{});var a=i[De];if(a)for(var s in a)i.prop(s,a[s](e),r)}}};var Ie="@global",_e="@global ",Pe=function(){function e(e,t,n){for(var r in this.type="global",this.at=Ie,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new $((0,i.A)({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Le=function(){function e(e,t,n){this.type="global",this.at=Ie,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,(0,i.A)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),ze=/\s*,\s*/g;function Re(e,t){for(var n=e.split(ze),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}const Fe=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Ie)return new Pe(e,t,n);if("@"===e[0]&&e.substr(0,8)===_e)return new Le(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[Ie]:null;if(o){for(var a in o)t.addRule(a,o[a],(0,i.A)({},n,{selector:Re(a,e.selector)}));delete r[Ie]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,Ie.length)===Ie){var a=Re(o.substr(Ie.length),e.selector);t.addRule(a,r[o],(0,i.A)({},n,{selector:a})),delete r[o]}}(e,t))}}};var Ue=/\s*,\s*/g,Be=/&/g,Ve=/\$([\w-]+)/g;const Qe=function(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?i.selector:r}}function t(e,t){for(var n=t.split(Ue),r=e.split(Ue),i="",o=0;o<n.length;o++)for(var a=n[o],s=0;s<r.length;s++){var l=r[s];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(Be,a):a+" "+l}return i}function n(e,t,n){if(n)return(0,i.A)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=(0,i.A)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,a){if("style"!==o.type)return r;var s,l,u=o,c=u.options.parent;for(var d in r){var f=-1!==d.indexOf("&"),h="@"===d[0];if(f||h){if(s=n(u,c,s),f){var p=t(d,u.selector);l||(l=e(c,a)),p=p.replace(Ve,l);var g=u.key+"-"+d;"replaceRule"in c?c.replaceRule(g,r[d],(0,i.A)({},s,{selector:p})):c.addRule(g,r[d],(0,i.A)({},s,{selector:p}))}else h&&c.addRule(d,{},s).addRule(u.key,r[d],{selector:u.selector});delete r[d]}}return r}}};var He=/[A-Z]/g,Ye=/^ms-/,We={};function Ge(e){return"-"+e.toLowerCase()}const qe=function(e){if(We.hasOwnProperty(e))return We[e];var t=e.replace(He,Ge);return We[e]=Ye.test(t)?"-"+t:t};function Ze(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:qe(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Ze):t.fallbacks=Ze(e.fallbacks)),t}const Ke=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Ze(e[t]);return e}return Ze(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=qe(t);return t===r?e:(n.prop(r,e),null)}}};var Xe=we&&CSS?CSS.px:"px",$e=we&&CSS?CSS.ms:"ms",Je=we&&CSS?CSS.percent:"%";function et(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var tt=et({"animation-delay":$e,"animation-duration":$e,"background-position":Xe,"background-position-x":Xe,"background-position-y":Xe,"background-size":Xe,border:Xe,"border-bottom":Xe,"border-bottom-left-radius":Xe,"border-bottom-right-radius":Xe,"border-bottom-width":Xe,"border-left":Xe,"border-left-width":Xe,"border-radius":Xe,"border-right":Xe,"border-right-width":Xe,"border-top":Xe,"border-top-left-radius":Xe,"border-top-right-radius":Xe,"border-top-width":Xe,"border-width":Xe,"border-block":Xe,"border-block-end":Xe,"border-block-end-width":Xe,"border-block-start":Xe,"border-block-start-width":Xe,"border-block-width":Xe,"border-inline":Xe,"border-inline-end":Xe,"border-inline-end-width":Xe,"border-inline-start":Xe,"border-inline-start-width":Xe,"border-inline-width":Xe,"border-start-start-radius":Xe,"border-start-end-radius":Xe,"border-end-start-radius":Xe,"border-end-end-radius":Xe,margin:Xe,"margin-bottom":Xe,"margin-left":Xe,"margin-right":Xe,"margin-top":Xe,"margin-block":Xe,"margin-block-end":Xe,"margin-block-start":Xe,"margin-inline":Xe,"margin-inline-end":Xe,"margin-inline-start":Xe,padding:Xe,"padding-bottom":Xe,"padding-left":Xe,"padding-right":Xe,"padding-top":Xe,"padding-block":Xe,"padding-block-end":Xe,"padding-block-start":Xe,"padding-inline":Xe,"padding-inline-end":Xe,"padding-inline-start":Xe,"mask-position-x":Xe,"mask-position-y":Xe,"mask-size":Xe,height:Xe,width:Xe,"min-height":Xe,"max-height":Xe,"min-width":Xe,"max-width":Xe,bottom:Xe,left:Xe,top:Xe,right:Xe,inset:Xe,"inset-block":Xe,"inset-block-end":Xe,"inset-block-start":Xe,"inset-inline":Xe,"inset-inline-end":Xe,"inset-inline-start":Xe,"box-shadow":Xe,"text-shadow":Xe,"column-gap":Xe,"column-rule":Xe,"column-rule-width":Xe,"column-width":Xe,"font-size":Xe,"font-size-delta":Xe,"letter-spacing":Xe,"text-decoration-thickness":Xe,"text-indent":Xe,"text-stroke":Xe,"text-stroke-width":Xe,"word-spacing":Xe,motion:Xe,"motion-offset":Xe,outline:Xe,"outline-offset":Xe,"outline-width":Xe,perspective:Xe,"perspective-origin-x":Je,"perspective-origin-y":Je,"transform-origin":Je,"transform-origin-x":Je,"transform-origin-y":Je,"transform-origin-z":Je,"transition-delay":$e,"transition-duration":$e,"vertical-align":Xe,"flex-basis":Xe,"shape-margin":Xe,size:Xe,gap:Xe,grid:Xe,"grid-gap":Xe,"row-gap":Xe,"grid-row-gap":Xe,"grid-column-gap":Xe,"grid-template-rows":Xe,"grid-template-columns":Xe,"grid-auto-rows":Xe,"grid-auto-columns":Xe,"box-shadow-x":Xe,"box-shadow-y":Xe,"box-shadow-blur":Xe,"box-shadow-spread":Xe,"font-line-height":Xe,"text-shadow-x":Xe,"text-shadow-y":Xe,"text-shadow-blur":Xe});function nt(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=nt(e,t[r],n);else if("object"===typeof t)if("fallbacks"===e)for(var i in t)t[i]=nt(i,t[i],n);else for(var o in t)t[o]=nt(e+"-"+o,t[o],n);else if("number"===typeof t&&!1===isNaN(t)){var a=n[e]||tt[e];return!a||0===t&&a===Xe?t.toString():"function"===typeof a?a(t).toString():""+t+a}return t}const rt=function(e){void 0===e&&(e={});var t=et(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=nt(r,e[r],t);return e},onChangeValue:function(e,n){return nt(n,e,t)}}};var it=n(4619),ot="",at="",st="",lt="",ut=s&&"ontouchstart"in document.documentElement;if(s){var ct={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},dt=document.createElement("p").style;for(var ft in ct)if(ft+"Transform"in dt){ot=ft,at=ct[ft];break}"Webkit"===ot&&"msHyphens"in dt&&(ot="ms",at=ct.ms,lt="edge"),"Webkit"===ot&&"-apple-trailing-word"in dt&&(st="apple")}var ht={js:ot,css:at,vendor:st,browser:lt,isTouch:ut};var pt={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===ht.js?"-webkit-"+e:ht.css+e)}},gt={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===ht.js?ht.css+"print-"+e:e)}},mt=/[-\s]+(.)?/g;function yt(e,t){return t?t.toUpperCase():""}function vt(e){return e.replace(mt,yt)}function bt(e){return vt("-"+e)}var xt,wt={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===ht.js){var n="mask-image";if(vt(n)in t)return e;if(ht.js+bt(n)in t)return ht.css+e}return e}},Mt={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==ht.vendor||ht.isTouch?e:ht.css+e)}},St={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:ht.css+e)}},jt={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:ht.css+e)}},Nt={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===ht.js||"ms"===ht.js&&"edge"!==ht.browser?ht.css+e:e)}},Ct={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===ht.js||"ms"===ht.js||"apple"===ht.vendor?ht.css+e:e)}},At={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===ht.js?"WebkitColumn"+bt(e)in t&&ht.css+"column-"+e:"Moz"===ht.js&&("page"+bt(e)in t&&"page-"+e))}},Tt={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===ht.js)return e;var n=e.replace("-inline","");return ht.js+bt(n)in t&&ht.css+n}},Et={supportedProperty:function(e,t){return vt(e)in t&&e}},Dt={supportedProperty:function(e,t){var n=bt(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:ht.js+n in t?ht.css+e:"Webkit"!==ht.js&&"Webkit"+n in t&&"-webkit-"+e}},kt={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===ht.js?""+ht.css+e:e)}},Ot={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===ht.js?ht.css+"scroll-chaining":e)}},It={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},_t={supportedProperty:function(e,t){var n=It[e];return!!n&&(ht.js+bt(n)in t&&ht.css+n)}},Pt={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Lt=Object.keys(Pt),zt=function(e){return ht.css+e},Rt={supportedProperty:function(e,t,n){var r=n.multiple;if(Lt.indexOf(e)>-1){var i=Pt[e];if(!Array.isArray(i))return ht.js+bt(i)in t&&ht.css+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(ht.js+bt(i[0])in t))return!1;return i.map(zt)}return!1}},Ft=[pt,gt,wt,Mt,St,jt,Nt,Ct,At,Tt,Et,Dt,kt,Ot,_t,Rt],Ut=Ft.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Bt=Ft.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,(0,it.A)(t.noPrefill)),e}),[]),Vt={};if(s){xt=document.createElement("p");var Qt=window.getComputedStyle(document.documentElement,"");for(var Ht in Qt)isNaN(Ht)||(Vt[Qt[Ht]]=Qt[Ht]);Bt.forEach((function(e){return delete Vt[e]}))}function Yt(e,t){if(void 0===t&&(t={}),!xt)return e;if(null!=Vt[e])return Vt[e];"transition"!==e&&"transform"!==e||(t[e]=e in xt.style);for(var n=0;n<Ut.length&&(Vt[e]=Ut[n](e,xt.style,t),!Vt[e]);n++);try{xt.style[e]=""}catch(r){return!1}return Vt[e]}var Wt,Gt={},qt={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Zt=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Kt(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Yt(t):", "+Yt(n);return r||(t||n)}function Xt(e,t){var n=t;if(!Wt||"content"===e)return t;if("string"!==typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Gt[r])return Gt[r];try{Wt.style[e]=n}catch(i){return Gt[r]=!1,!1}if(qt[e])n=n.replace(Zt,Kt);else if(""===Wt.style[e]&&("-ms-flex"===(n=ht.css+n)&&(Wt.style[e]="-ms-flexbox"),Wt.style[e]=n,""===Wt.style[e]))return Gt[r]=!1,!1;return Wt.style[e]="",Gt[r]=n,Gt[r]}s&&(Wt=document.createElement("p"));const $t=function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var i=!1,o=Yt(n);o&&o!==n&&(i=!0);var a=!1,s=Xt(o,m(r));s&&s!==r&&(a=!0),(i||a)&&(i&&delete t[n],t[o||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===ht.js?e:"@"+ht.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Xt(t,m(e))||e}}};const Jt=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o<i.length;o++)r[i[o]]=t[i[o]];return r}}};var en=xe({plugins:[Oe(),Fe(),Qe(),Ke(),rt(),"undefined"===typeof window?null:$t(),Jt()]}),tn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,i=void 0===r?"jss":r,o=e.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Te.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[Ae.A]&&""===a?"".concat(o,"-").concat(u()):o}return"".concat(s).concat(i).concat(u())}}(),nn={disableGeneration:!1,generateClassName:tn,jss:en,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},rn=o.createContext(nn);var on=-1e9;var an=n(2405);const sn={};function ln(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,a=e.stylesCreator,s=e.name;if(!o.disableGeneration){var l=Ne.get(o.sheetsManager,a,r);l||(l={refs:0,staticSheet:null,dynamicStyles:null},Ne.set(o.sheetsManager,a,r,l));var u=(0,i.A)({},a.options,o,{theme:r,flip:"boolean"===typeof o.flip?o.flip:"rtl"===r.direction});u.generateId=u.serverGenerateClassName||u.generateClassName;var c=o.sheetsRegistry;if(0===l.refs){var d;o.sheetsCache&&(d=Ne.get(o.sheetsCache,a,r));var f=a.create(r,s);d||((d=o.jss.createStyleSheet(f,(0,i.A)({link:!1},u))).attach(),o.sheetsCache&&Ne.set(o.sheetsCache,a,r,d)),c&&c.add(d),l.staticSheet=d,l.dynamicStyles=Me(f)}if(l.dynamicStyles){var h=o.jss.createStyleSheet(l.dynamicStyles,(0,i.A)({link:!0},u));h.update(t),h.attach(),n.dynamicSheet=h,n.classes=Se({baseClasses:l.staticSheet.classes,newClasses:h.classes}),c&&c.add(h)}else n.classes=l.staticSheet.classes;l.refs+=1}}function un(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,a=t.classNamePrefix,s=t.Component,l=t.defaultTheme,u=void 0===l?sn:l,c=(0,r.A)(t,["name","classNamePrefix","Component","defaultTheme"]),d=function(e){var t="function"===typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(l){throw l}if(!r||!n.overrides||!n.overrides[r])return o;var a=n.overrides[r],s=(0,i.A)({},o);return Object.keys(a).forEach((function(e){s[e]=(0,an.A)(s[e],a[e])})),s},options:{}}}(e),f=n||a||"makeStyles";d.options={index:on+=1,name:n,meta:f,classNamePrefix:f};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,Ce.A)()||u,r=(0,i.A)({},o.useContext(rn),c),a=o.useRef(),l=o.useRef();!function(e,t){var n,r=o.useRef([]),i=o.useMemo((function(){return{}}),t);r.current!==i&&(r.current=i,n=e()),o.useEffect((function(){return function(){n&&n()}}),[i])}((function(){var i={name:n,state:{},stylesCreator:d,stylesOptions:r,theme:t};return ln(i,e),l.current=!1,a.current=i,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,i=e.stylesCreator;if(!r.disableGeneration){var o=Ne.get(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&(Ne.delete(r.sheetsManager,i,n),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(i)}}),[t,d]),o.useEffect((function(){l.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(a.current,e),l.current=!0}));var f=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,i=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,i=!0),i&&(r.cacheClasses.value=Se({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(a.current,e.classes,s);return f}}},3789:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(810).createContext(null)},5341:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(810),i=n(3789);function o(){return r.useContext(i.A)}},2405:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(9575),i=n(7545);function o(e){return e&&"object"===(0,i.A)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},i=n.clone?(0,r.A)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(o(t[r])&&r in e?i[r]=a(e[r],t[r],n):i[r]=t[r])})),i}},2582:(e,t,n)=>{"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}n.d(t,{A:()=>r})},5033:(e,t,n)=>{"use strict";var r=n(4017),i=n(2477),o=n(7281);function a(e,t,n){return new r(e,t,n)}a.version=n(8308),a.AlgoliaSearchHelper=r,a.SearchParameters=i,a.SearchResults=o,e.exports=a},558:(e,t,n)=>{"use strict";var r=n(7583);function i(e,t){this.main=e,this.fn=t,this.lastResults=null}n(4832)(i,r),i.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},i.prototype.getModifiedState=function(e){return this.fn(e)},e.exports=i},7716:(e,t,n)=>{"use strict";var r=n(2104),i=n(7107),o=n(6089),a={addRefinement:function(e,t,n){if(a.isRefined(e,t,n))return e;var i=""+n,o=e[t]?e[t].concat(i):[i],s={};return s[t]=o,r({},s,e)},removeRefinement:function(e,t,n){if(void 0===n)return a.clearRefinement(e,(function(e,n){return t===n}));var r=""+n;return a.clearRefinement(e,(function(e,n){return t===n&&r===e}))},toggleRefinement:function(e,t,n){if(void 0===n)throw new Error("toggleRefinement should be used with a value");return a.isRefined(e,t,n)?a.removeRefinement(e,t,n):a.addRefinement(e,t,n)},clearRefinement:function(e,t,n){if(void 0===t)return i(e)?{}:e;if("string"===typeof t)return o(e,[t]);if("function"===typeof t){var r=!1,a=Object.keys(e).reduce((function(i,o){var a=e[o]||[],s=a.filter((function(e){return!t(e,o,n)}));return s.length!==a.length&&(r=!0),i[o]=s,i}),{});return r?a:e}},isRefined:function(e,t,n){var r=Boolean(e[t])&&e[t].length>0;if(void 0===n||!r)return r;var i=""+n;return-1!==e[t].indexOf(i)}};e.exports=a},2477:(e,t,n)=>{"use strict";var r=n(2104),i=n(2439),o=n(3569),a=n(3634),s=n(7107),l=n(6089),u=n(265),c=n(9094),d=n(7716);function f(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((function(e,n){return f(t[n],e)})):e===t}function h(e){var t=e?h._parseNumbers(e):{};void 0===t.userToken||c(t.userToken)||console.warn("[algoliasearch-helper] The `userToken` parameter is invalid. This can lead to wrong analytics.\n - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=t.facets||[],this.disjunctiveFacets=t.disjunctiveFacets||[],this.hierarchicalFacets=t.hierarchicalFacets||[],this.facetsRefinements=t.facetsRefinements||{},this.facetsExcludes=t.facetsExcludes||{},this.disjunctiveFacetsRefinements=t.disjunctiveFacetsRefinements||{},this.numericRefinements=t.numericRefinements||{},this.tagRefinements=t.tagRefinements||[],this.hierarchicalFacetsRefinements=t.hierarchicalFacetsRefinements||{};var n=this;Object.keys(t).forEach((function(e){var r=-1!==h.PARAMETERS.indexOf(e),i=void 0!==t[e];!r&&i&&(n[e]=t[e])}))}h.PARAMETERS=Object.keys(new h),h._parseNumbers=function(e){if(e instanceof h)return e;var t={};if(["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"].forEach((function(n){var r=e[n];if("string"===typeof r){var i=parseFloat(r);t[n]=isNaN(i)?r:i}})),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map((function(e){return Array.isArray(e)?e.map((function(e){return parseFloat(e)})):e}))),e.numericRefinements){var n={};Object.keys(e.numericRefinements).forEach((function(t){var r=e.numericRefinements[t]||{};n[t]={},Object.keys(r).forEach((function(e){var i=r[e].map((function(e){return Array.isArray(e)?e.map((function(e){return"string"===typeof e?parseFloat(e):e})):"string"===typeof e?parseFloat(e):e}));n[t][e]=i}))})),t.numericRefinements=n}return a({},e,t)},h.make=function(e){var t=new h(e);return(e.hierarchicalFacets||[]).forEach((function(e){if(e.rootPath){var n=t.getHierarchicalRefinement(e.name);n.length>0&&0!==n[0].indexOf(e.rootPath)&&(t=t.clearRefinements(e.name)),0===(n=t.getHierarchicalRefinement(e.name)).length&&(t=t.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}})),t},h.validate=function(e,t){var n=t||{};return e.tagFilters&&n.tagRefinements&&n.tagRefinements.length>0?new Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):e.tagRefinements.length>0&&n.tagFilters?new Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&n.numericRefinements&&s(n.numericRefinements)?new Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):s(e.numericRefinements)&&n.numericFilters?new Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},h.prototype={constructor:h,clearRefinements:function(e){var t={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:d.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:d.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:d.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:d.clearRefinement(this.hierarchicalFacetsRefinements,e,"hierarchicalFacet")};return t.numericRefinements===this.numericRefinements&&t.facetsRefinements===this.facetsRefinements&&t.facetsExcludes===this.facetsExcludes&&t.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&t.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(t)},clearTags:function(){return void 0===this.tagFilters&&0===this.tagRefinements.length?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(e){return e===this.index?this:this.setQueryParameters({index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(e,t,n){var r=u(n);if(this.isNumericRefined(e,t,r))return this;var i=a({},this.numericRefinements);return i[e]=a({},i[e]),i[e][t]?(i[e][t]=i[e][t].slice(),i[e][t].push(r)):i[e][t]=[r],this.setQueryParameters({numericRefinements:i})},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)&&this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsExcludes[e]||[]},removeNumericRefinement:function(e,t,n){var r=n;return void 0!==r?this.isNumericRefined(e,t,r)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(n,i){return i===e&&n.op===t&&f(n.val,u(r))}))}):this:void 0!==t?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(n,r){return r===e&&n.op===t}))}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(t,n){return n===e}))}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(e){if(void 0===e)return s(this.numericRefinements)?{}:this.numericRefinements;if("string"===typeof e)return l(this.numericRefinements,[e]);if("function"===typeof e){var t=!1,n=this.numericRefinements,r=Object.keys(n).reduce((function(r,i){var o=n[i],a={};return o=o||{},Object.keys(o).forEach((function(n){var r=o[n]||[],s=[];r.forEach((function(t){e({val:t,op:n},i,"numeric")||s.push(t)})),s.length!==r.length&&(t=!0),a[n]=s})),r[i]=a,r}),{});return t?r:this.numericRefinements}},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return d.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:d.addRefinement(this.facetsRefinements,e,t)})},addExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return d.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:d.addRefinement(this.facetsExcludes,e,t)})},addDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return d.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:d.addRefinement(this.disjunctiveFacetsRefinements,e,t)})},addTagRefinement:function(e){if(this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.concat(e)};return this.setQueryParameters(t)},removeFacet:function(e){return this.isConjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({facets:this.facets.filter((function(t){return t!==e}))}):this},removeDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter((function(t){return t!==e}))}):this},removeHierarchicalFacet:function(e){return this.isHierarchicalFacet(e)?this.clearRefinements(e).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter((function(t){return t.name!==e}))}):this},removeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return d.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:d.removeRefinement(this.facetsRefinements,e,t)}):this},removeExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return d.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:d.removeRefinement(this.facetsExcludes,e,t)}):this},removeDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return d.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:d.removeRefinement(this.disjunctiveFacetsRefinements,e,t)}):this},removeTagRefinement:function(e){if(!this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.filter((function(t){return t!==e}))};return this.setQueryParameters(t)},toggleRefinement:function(e,t){return this.toggleFacetRefinement(e,t)},toggleFacetRefinement:function(e,t){if(this.isHierarchicalFacet(e))return this.toggleHierarchicalFacetRefinement(e,t);if(this.isConjunctiveFacet(e))return this.toggleConjunctiveFacetRefinement(e,t);if(this.isDisjunctiveFacet(e))return this.toggleDisjunctiveFacetRefinement(e,t);throw new Error("Cannot refine the undeclared facet "+e+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:d.toggleRefinement(this.facetsRefinements,e,t)})},toggleExcludeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:d.toggleRefinement(this.facetsExcludes,e,t)})},toggleDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:d.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)})},toggleHierarchicalFacetRefinement:function(e,t){if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),i={};return void 0!==this.hierarchicalFacetsRefinements[e]&&this.hierarchicalFacetsRefinements[e].length>0&&(this.hierarchicalFacetsRefinements[e][0]===t||0===this.hierarchicalFacetsRefinements[e][0].indexOf(t+n))?-1===t.indexOf(n)?i[e]=[]:i[e]=[t.slice(0,t.lastIndexOf(n))]:i[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:r({},i,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw new Error(e+" is already refined.");if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var n={};return n[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:r({},n,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))return this;var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:r({},t,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(e){return this.isTagRefined(e)?this.removeTagRefinement(e):this.addTagRefinement(e)},isDisjunctiveFacet:function(e){return this.disjunctiveFacets.indexOf(e)>-1},isHierarchicalFacet:function(e){return void 0!==this.getHierarchicalFacetByName(e)},isConjunctiveFacet:function(e){return this.facets.indexOf(e)>-1},isFacetRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&d.isRefined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&d.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){return!!this.isDisjunctiveFacet(e)&&d.isRefined(this.disjunctiveFacetsRefinements,e,t)},isHierarchicalFacetRefined:function(e,t){if(!this.isHierarchicalFacet(e))return!1;var n=this.getHierarchicalRefinement(e);return t?-1!==n.indexOf(t):n.length>0},isNumericRefined:function(e,t,n){if(void 0===n&&void 0===t)return Boolean(this.numericRefinements[e]);var r=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][t];if(void 0===n||!r)return r;var o,a,s=u(n),l=void 0!==(o=this.numericRefinements[e][t],a=s,i(o,(function(e){return f(e,a)})));return r&&l},isTagRefined:function(e){return-1!==this.tagRefinements.indexOf(e)},getRefinedDisjunctiveFacets:function(){var e=this,t=o(Object.keys(this.numericRefinements).filter((function(t){return Object.keys(e.numericRefinements[t]).length>0})),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter((function(t){return e.disjunctiveFacetsRefinements[t].length>0})).concat(t).concat(this.getRefinedHierarchicalFacets()).sort()},getRefinedHierarchicalFacets:function(){var e=this;return o(this.hierarchicalFacets.map((function(e){return e.name})),Object.keys(this.hierarchicalFacetsRefinements).filter((function(t){return e.hierarchicalFacetsRefinements[t].length>0}))).sort()},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter((function(t){return-1===e.indexOf(t)}))},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var e=this.managedParameters,t={},n=this;return Object.keys(this).forEach((function(r){var i=n[r];-1===e.indexOf(r)&&void 0!==i&&(t[r]=i)})),t},setQueryParameter:function(e,t){if(this[e]===t)return this;var n={};return n[e]=t,this.setQueryParameters(n)},setQueryParameters:function(e){if(!e)return this;var t=h.validate(this,e);if(t)throw t;var n=this,r=h._parseNumbers(e),i=Object.keys(this).reduce((function(e,t){return e[t]=n[t],e}),{}),o=Object.keys(r).reduce((function(e,t){var n=void 0!==e[t],i=void 0!==r[t];return n&&!i?l(e,[t]):(i&&(e[t]=r[t]),e)}),i);return new this.constructor(o)},resetPage:function(){return void 0===this.page?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!==typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(e){return i(this.hierarchicalFacets,(function(t){return t.name===e}))},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e));return t.split(n).map((function(e){return e.trim()}))},toString:function(){return JSON.stringify(this,null,2)}},e.exports=h},3527:(e,t,n)=>{"use strict";e.exports=function(e){return function(t,n){var r=e.hierarchicalFacets[n],u=e.hierarchicalFacetsRefinements[r.name]&&e.hierarchicalFacetsRefinements[r.name][0]||"",c=e._getHierarchicalFacetSeparator(r),d=e._getHierarchicalRootPath(r),f=e._getHierarchicalShowParentLevel(r),h=o(e._getHierarchicalFacetSortBy(r)),p=t.every((function(e){return e.exhaustive})),g=function(e,t,n,r,o){return function(u,c,d){var f=u;if(d>0){var h=0;for(f=u;h<d;){var p=f&&Array.isArray(f.data)?f.data:[];f=i(p,(function(e){return e.isRefined})),h++}}if(f){var g=Object.keys(c.data).map((function(e){return[e,c.data[e]]})).filter((function(e){return function(e,t,n,r,i,o){if(i&&(0!==e.indexOf(i)||i===e))return!1;return!i&&-1===e.indexOf(r)||i&&e.split(r).length-i.split(r).length===1||-1===e.indexOf(r)&&-1===n.indexOf(r)||0===n.indexOf(e)||0===e.indexOf(t+r)&&(o||0===e.indexOf(n))}(e[0],f.path||n,o,t,n,r)}));f.data=a(g.map((function(e){var n=e[0];return function(e,t,n,r,i){var o=t.split(n);return{name:o[o.length-1].trim(),path:t,escapedValue:s(t),count:e,isRefined:r===t||0===r.indexOf(t+n),exhaustive:i,data:null}}(e[1],n,t,l(o),c.exhaustive)})),e[0],e[1])}return u}}(h,c,d,f,u),m=t;return d&&(m=t.slice(d.split(c).length)),m.reduce(g,{name:e.hierarchicalFacets[n].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:p,data:null})}};var r=n(4759),i=n(2439),o=n(3623),a=n(1419),s=r.escapeFacetValue,l=r.unescapeFacetValue},7281:(e,t,n)=>{"use strict";var r=n(1123),i=n(2104),o=n(4759),a=n(2439),s=n(5659),l=n(3623),u=n(3634),c=n(1419),d=o.escapeFacetValue,f=o.unescapeFacetValue,h=n(3527);function p(e){var t={};return e.forEach((function(e,n){t[e]=n})),t}function g(e,t,n){t&&t[n]&&(e.stats=t[n])}function m(e,t,n){var o=t[0];this._rawResults=t;var l=this;Object.keys(o).forEach((function(e){l[e]=o[e]})),Object.keys(n||{}).forEach((function(e){l[e]=n[e]})),this.processingTimeMS=t.reduce((function(e,t){return void 0===t.processingTimeMS?e:e+t.processingTimeMS}),0),this.disjunctiveFacets=[],this.hierarchicalFacets=e.hierarchicalFacets.map((function(){return[]})),this.facets=[];var c=e.getRefinedDisjunctiveFacets(),d=p(e.facets),m=p(e.disjunctiveFacets),y=1,v=o.facets||{};Object.keys(v).forEach((function(t){var n,r,i=v[t],u=(n=e.hierarchicalFacets,r=t,a(n,(function(e){return(e.attributes||[]).indexOf(r)>-1})));if(u){var c=u.attributes.indexOf(t),f=s(e.hierarchicalFacets,(function(e){return e.name===u.name}));l.hierarchicalFacets[f][c]={attribute:t,data:i,exhaustive:o.exhaustiveFacetsCount}}else{var h,p=-1!==e.disjunctiveFacets.indexOf(t),y=-1!==e.facets.indexOf(t);p&&(h=m[t],l.disjunctiveFacets[h]={name:t,data:i,exhaustive:o.exhaustiveFacetsCount},g(l.disjunctiveFacets[h],o.facets_stats,t)),y&&(h=d[t],l.facets[h]={name:t,data:i,exhaustive:o.exhaustiveFacetsCount},g(l.facets[h],o.facets_stats,t))}})),this.hierarchicalFacets=r(this.hierarchicalFacets),c.forEach((function(n){var r=t[y],a=r&&r.facets?r.facets:{},c=e.getHierarchicalFacetByName(n);Object.keys(a).forEach((function(t){var n,d=a[t];if(c){n=s(e.hierarchicalFacets,(function(e){return e.name===c.name}));var h=s(l.hierarchicalFacets[n],(function(e){return e.attribute===t}));if(-1===h)return;l.hierarchicalFacets[n][h].data=u({},l.hierarchicalFacets[n][h].data,d)}else{n=m[t];var p=o.facets&&o.facets[t]||{};l.disjunctiveFacets[n]={name:t,data:i({},d,p),exhaustive:r.exhaustiveFacetsCount},g(l.disjunctiveFacets[n],r.facets_stats,t),e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].forEach((function(r){!l.disjunctiveFacets[n].data[r]&&e.disjunctiveFacetsRefinements[t].indexOf(f(r))>-1&&(l.disjunctiveFacets[n].data[r]=0)}))}})),y++})),e.getRefinedHierarchicalFacets().forEach((function(n){var r=e.getHierarchicalFacetByName(n),o=e._getHierarchicalFacetSeparator(r),a=e.getHierarchicalRefinement(n);0===a.length||a[0].split(o).length<2||t.slice(y).forEach((function(t){var n=t&&t.facets?t.facets:{};Object.keys(n).forEach((function(t){var u=n[t],c=s(e.hierarchicalFacets,(function(e){return e.name===r.name})),d=s(l.hierarchicalFacets[c],(function(e){return e.attribute===t}));if(-1!==d){var f={};if(a.length>0){var h=a[0].split(o)[0];f[h]=l.hierarchicalFacets[c][d].data[h]}l.hierarchicalFacets[c][d].data=i(f,u,l.hierarchicalFacets[c][d].data)}})),y++}))})),Object.keys(e.facetsExcludes).forEach((function(t){var n=e.facetsExcludes[t],r=d[t];l.facets[r]={name:t,data:v[t],exhaustive:o.exhaustiveFacetsCount},n.forEach((function(e){l.facets[r]=l.facets[r]||{name:t},l.facets[r].data=l.facets[r].data||{},l.facets[r].data[e]=0}))})),this.hierarchicalFacets=this.hierarchicalFacets.map(h(e)),this.facets=r(this.facets),this.disjunctiveFacets=r(this.disjunctiveFacets),this._state=e}function y(e,t){function n(e){return e.name===t}if(e._state.isConjunctiveFacet(t)){var r=a(e.facets,n);return r?Object.keys(r.data).map((function(n){var i=d(n);return{name:n,escapedValue:i,count:r.data[n],isRefined:e._state.isFacetRefined(t,i),isExcluded:e._state.isExcludeRefined(t,n)}})):[]}if(e._state.isDisjunctiveFacet(t)){var i=a(e.disjunctiveFacets,n);return i?Object.keys(i.data).map((function(n){var r=d(n);return{name:n,escapedValue:r,count:i.data[n],isRefined:e._state.isDisjunctiveFacetRefined(t,r)}})):[]}if(e._state.isHierarchicalFacet(t)){var o=a(e.hierarchicalFacets,n);if(!o)return o;var s=e._state.getHierarchicalFacetByName(t),l=e._state._getHierarchicalFacetSeparator(s),u=f(e._state.getHierarchicalRefinement(t)[0]||"");0===u.indexOf(s.rootPath)&&(u=u.replace(s.rootPath+l,""));var c=u.split(l);return c.unshift(t),v(o,c,0),o}}function v(e,t,n){e.isRefined=e.name===t[n],e.data&&e.data.forEach((function(e){v(e,t,n+1)}))}function b(e,t,n,r){if(r=r||0,Array.isArray(t))return e(t,n[r]);if(!t.data||0===t.data.length)return t;var o=t.data.map((function(t){return b(e,t,n,r+1)})),a=e(o,n[r]);return i({data:a},t)}function x(e,t){var n=a(e,(function(e){return e.name===t}));return n&&n.stats}function w(e,t,n,r,i){var o=a(i,(function(e){return e.name===n})),s=o&&o.data&&o.data[r]?o.data[r]:0,l=o&&o.exhaustive||!1;return{type:t,attributeName:n,name:r,count:s,exhaustive:l}}m.prototype.getFacetByName=function(e){function t(t){return t.name===e}return a(this.facets,t)||a(this.disjunctiveFacets,t)||a(this.hierarchicalFacets,t)},m.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],m.prototype.getFacetValues=function(e,t){var n=y(this,e);if(n){var r,o=i({},t,{sortBy:m.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),a=this;if(Array.isArray(n))r=[e];else r=a._state.getHierarchicalFacetByName(n.name).attributes;return b((function(e,t){if(o.facetOrdering){var n=function(e,t){return e.renderingContent&&e.renderingContent.facetOrdering&&e.renderingContent.facetOrdering.values&&e.renderingContent.facetOrdering.values[t]}(a,t);if(n)return function(e,t){var n=[],r=[],i=(t.order||[]).reduce((function(e,t,n){return e[t]=n,e}),{});e.forEach((function(e){var t=e.path||e.name;void 0!==i[t]?n[i[t]]=e:r.push(e)})),n=n.filter((function(e){return e}));var o,a=t.sortRemainingBy;return"hidden"===a?n:(o="alpha"===a?[["path","name"],["asc","asc"]]:[["count"],["desc"]],n.concat(c(r,o[0],o[1])))}(e,n)}if(Array.isArray(o.sortBy)){var r=l(o.sortBy,m.DEFAULT_SORT);return c(e,r[0],r[1])}if("function"===typeof o.sortBy)return function(e,t){return t.sort(e)}(o.sortBy,e);throw new Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")}),n,r)}},m.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?x(this.facets,e):this._state.isDisjunctiveFacet(e)?x(this.disjunctiveFacets,e):void 0},m.prototype.getRefinements=function(){var e=this._state,t=this,n=[];return Object.keys(e.facetsRefinements).forEach((function(r){e.facetsRefinements[r].forEach((function(i){n.push(w(e,"facet",r,i,t.facets))}))})),Object.keys(e.facetsExcludes).forEach((function(r){e.facetsExcludes[r].forEach((function(i){n.push(w(e,"exclude",r,i,t.facets))}))})),Object.keys(e.disjunctiveFacetsRefinements).forEach((function(r){e.disjunctiveFacetsRefinements[r].forEach((function(i){n.push(w(e,"disjunctive",r,i,t.disjunctiveFacets))}))})),Object.keys(e.hierarchicalFacetsRefinements).forEach((function(r){e.hierarchicalFacetsRefinements[r].forEach((function(i){n.push(function(e,t,n,r){var i=e.getHierarchicalFacetByName(t),o=e._getHierarchicalFacetSeparator(i),s=n.split(o),l=a(r,(function(e){return e.name===t})),u=s.reduce((function(e,t){var n=e&&a(e.data,(function(e){return e.name===t}));return void 0!==n?n:e}),l),c=u&&u.count||0,d=u&&u.exhaustive||!1,f=u&&u.path||"";return{type:"hierarchical",attributeName:t,name:f,count:c,exhaustive:d}}(e,r,i,t.hierarchicalFacets))}))})),Object.keys(e.numericRefinements).forEach((function(t){var r=e.numericRefinements[t];Object.keys(r).forEach((function(e){r[e].forEach((function(r){n.push({type:"numeric",attributeName:t,name:r,numericValue:r,operator:e})}))}))})),e.tagRefinements.forEach((function(e){n.push({type:"tag",attributeName:"_tags",name:e})})),n},e.exports=m},4017:(e,t,n)=>{"use strict";var r=n(7583),i=n(558),o=n(4759).escapeFacetValue,a=n(4832),s=n(3634),l=n(7107),u=n(6089),c=n(3702),d=n(2477),f=n(7281),h=n(8308);function p(e,t,n){"function"===typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+h+")"),this.setClient(e);var r=n||{};r.index=t,this.state=d.make(r),this.lastResults=null,this._queryId=0,this._lastQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0}function g(e){if(e<0)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function m(){return this.state.page}a(p,r),p.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},p.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},p.prototype.getQuery=function(){var e=this.state;return c._getHitsSearchParams(e)},p.prototype.searchOnce=function(e,t){var n=e?this.state.setQueryParameters(e):this.state,r=c._getQueries(n.index,n),i=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:n}),!t)return this.client.search(r).then((function(e){return i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),{content:new f(n,e.results),state:n,_originalResponse:e}}),(function(e){throw i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),e}));this.client.search(r).then((function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(null,new f(n,e.results),n)})).catch((function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(e,null,n)}))},p.prototype.findAnswers=function(e){console.warn("[algoliasearch-helper] answers is no longer supported");var t=this.state,n=this.derivedHelpers[0];if(!n)return Promise.resolve([]);var r=n.getModifiedState(t),i=s({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:u(c._getHitsSearchParams(r),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),o="search for answers was called, but this client does not have a function client.initIndex(index).findAnswers";if("function"!==typeof this.client.initIndex)throw new Error(o);var a=this.client.initIndex(r.index);if("function"!==typeof a.findAnswers)throw new Error(o);return a.findAnswers(r.query,e.queryLanguages,i)},p.prototype.searchForFacetValues=function(e,t,n,r){var i="function"===typeof this.client.searchForFacetValues,a="function"===typeof this.client.initIndex;if(!i&&!a&&"function"!==typeof this.client.search)throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var s=this.state.setQueryParameters(r||{}),l=s.isDisjunctiveFacet(e),u=c.getSearchForFacetQuery(e,t,n,s);this._currentNbQueries++;var d,f=this;return i?d=this.client.searchForFacetValues([{indexName:s.index,params:u}]):a?d=this.client.initIndex(s.index).searchForFacetValues(u):(delete u.facetName,d=this.client.search([{type:"facet",facet:e,indexName:s.index,params:u}]).then((function(e){return e.results[0]}))),this.emit("searchForFacetValues",{state:s,facet:e,query:t}),d.then((function(t){return f._currentNbQueries--,0===f._currentNbQueries&&f.emit("searchQueueEmpty"),(t=Array.isArray(t)?t[0]:t).facetHits.forEach((function(t){t.escapedValue=o(t.value),t.isRefined=l?s.isDisjunctiveFacetRefined(e,t.escapedValue):s.isFacetRefined(e,t.escapedValue)})),t}),(function(e){throw f._currentNbQueries--,0===f._currentNbQueries&&f.emit("searchQueueEmpty"),e}))},p.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},p.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},p.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},p.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},p.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},p.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},p.prototype.addNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,n),isPageReset:!0}),this},p.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},p.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},p.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},p.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},p.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},p.prototype.removeNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,n),isPageReset:!0}),this},p.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},p.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},p.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},p.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},p.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},p.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},p.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},p.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},p.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},p.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},p.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},p.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},p.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},p.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},p.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},p.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},p.prototype.setCurrentPage=g,p.prototype.setPage=g,p.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},p.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},p.prototype.setState=function(e){return this._change({state:d.make(e),isPageReset:!1}),this},p.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new d(e),this},p.prototype.hasRefinements=function(e){return!!l(this.state.getNumericRefinements(e))||(this.state.isConjunctiveFacet(e)?this.state.isFacetRefined(e):this.state.isDisjunctiveFacet(e)?this.state.isDisjunctiveFacetRefined(e):!!this.state.isHierarchicalFacet(e)&&this.state.isHierarchicalFacetRefined(e))},p.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},p.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},p.prototype.hasTag=function(e){return this.state.isTagRefined(e)},p.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},p.prototype.getIndex=function(){return this.state.index},p.prototype.getCurrentPage=m,p.prototype.getPage=m,p.prototype.getTags=function(){return this.state.tagRefinements},p.prototype.getRefinements=function(e){var t=[];if(this.state.isConjunctiveFacet(e))this.state.getConjunctiveRefinements(e).forEach((function(e){t.push({value:e,type:"conjunctive"})})),this.state.getExcludeRefinements(e).forEach((function(e){t.push({value:e,type:"exclude"})}));else if(this.state.isDisjunctiveFacet(e)){this.state.getDisjunctiveRefinements(e).forEach((function(e){t.push({value:e,type:"disjunctive"})}))}var n=this.state.getNumericRefinements(e);return Object.keys(n).forEach((function(e){var r=n[e];t.push({value:r,operator:e,type:"numeric"})})),t},p.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},p.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},p.prototype._search=function(e){var t=this.state,n=[],r=[];e.onlyWithDerivedHelpers||(r=c._getQueries(t.index,t),n.push({state:t,queriesCount:r.length,helper:this}),this.emit("search",{state:t,results:this.lastResults}));var i=this.derivedHelpers.map((function(e){var r=e.getModifiedState(t),i=r.index?c._getQueries(r.index,r):[];return n.push({state:r,queriesCount:i.length,helper:e}),e.emit("search",{state:r,results:e.lastResults}),i})),o=Array.prototype.concat.apply(r,i),a=this._queryId++;if(this._currentNbQueries++,!o.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,n,a));try{this.client.search(o).then(this._dispatchAlgoliaResponse.bind(this,n,a)).catch(this._dispatchAlgoliaError.bind(this,a))}catch(s){this.emit("error",{error:s})}},p.prototype._dispatchAlgoliaResponse=function(e,t,n){if(!(t<this._lastQueryIdReceived)){this._currentNbQueries-=t-this._lastQueryIdReceived,this._lastQueryIdReceived=t,0===this._currentNbQueries&&this.emit("searchQueueEmpty");var r=n.results.slice();e.forEach((function(e){var t=e.state,n=e.queriesCount,i=e.helper,o=r.splice(0,n);t.index?(i.lastResults=new f(t,o),i.emit("result",{results:i.lastResults,state:t})):i.emit("result",{results:null,state:t})}))}},p.prototype._dispatchAlgoliaError=function(e,t){e<this._lastQueryIdReceived||(this._currentNbQueries-=e-this._lastQueryIdReceived,this._lastQueryIdReceived=e,this.emit("error",{error:t}),0===this._currentNbQueries&&this.emit("searchQueueEmpty"))},p.prototype.containsRefinement=function(e,t,n,r){return e||0!==t.length||0!==n.length||0!==r.length},p.prototype._hasDisjunctiveRefinements=function(e){return this.state.disjunctiveRefinements[e]&&this.state.disjunctiveRefinements[e].length>0},p.prototype._change=function(e){var t=e.state,n=e.isPageReset;t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:n}))},p.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},p.prototype.setClient=function(e){return this.client===e||("function"===typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+h+")"),this.client=e),this},p.prototype.getClient=function(){return this.client},p.prototype.derive=function(e){var t=new i(this,e);return this.derivedHelpers.push(t),t},p.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw new Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},p.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},e.exports=p},1123:e=>{"use strict";e.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}},2104:e=>{"use strict";e.exports=function(){return Array.prototype.slice.call(arguments).reduceRight((function(e,t){return Object.keys(Object(t)).forEach((function(n){void 0!==t[n]&&(void 0!==e[n]&&delete e[n],e[n]=t[n])})),e}),{})}},4759:e=>{"use strict";e.exports={escapeFacetValue:function(e){return"string"!==typeof e?e:String(e).replace(/^-/,"\\-")},unescapeFacetValue:function(e){return"string"!==typeof e?e:e.replace(/^\\-/,"-")}}},2439:e=>{"use strict";e.exports=function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}},5659:e=>{"use strict";e.exports=function(e,t){if(!Array.isArray(e))return-1;for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}},3623:(e,t,n)=>{"use strict";var r=n(2439);e.exports=function(e,t){var n=(t||[]).map((function(e){return e.split(":")}));return e.reduce((function(e,t){var i=t.split(":"),o=r(n,(function(e){return e[0]===i[0]}));return i.length>1||!o?(e[0].push(i[0]),e[1].push(i[1]),e):(e[0].push(o[0]),e[1].push(o[1]),e)}),[[],[]])}},4832:e=>{"use strict";e.exports=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}},3569:e=>{"use strict";e.exports=function(e,t){return e.filter((function(n,r){return t.indexOf(n)>-1&&e.indexOf(n)===r}))}},3634:e=>{"use strict";function t(e){return"function"===typeof e||Array.isArray(e)||"[object Object]"===Object.prototype.toString.call(e)}function n(e,r){if(e===r)return e;for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)&&"__proto__"!==i&&"constructor"!==i){var o=r[i],a=e[i];"undefined"!==typeof a&&"undefined"===typeof o||(t(a)&&t(o)?e[i]=n(a,o):e[i]="object"===typeof(s=o)&&null!==s?n(Array.isArray(s)?[]:{},s):s)}var s;return e}e.exports=function(e){t(e)||(e={});for(var r=1,i=arguments.length;r<i;r++){var o=arguments[r];t(o)&&n(e,o)}return e}},7107:e=>{"use strict";e.exports=function(e){return e&&Object.keys(e).length>0}},6089:e=>{"use strict";e.exports=function(e,t){if(null===e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}},1419:e=>{"use strict";function t(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=void 0!==t,o=null===t;if(!o&&e>t||r&&i||!n)return 1;if(!r&&e<t||o&&n||!i)return-1}return 0}e.exports=function(e,n,r){if(!Array.isArray(e))return[];Array.isArray(r)||(r=[]);var i=e.map((function(e,t){return{criteria:n.map((function(t){return e[t]})),index:t,value:e}}));return i.sort((function(e,n){for(var i=-1;++i<e.criteria.length;){var o=t(e.criteria[i],n.criteria[i]);if(o)return i>=r.length?o:"desc"===r[i]?-o:o}return e.index-n.index})),i.map((function(e){return e.value}))}},265:e=>{"use strict";e.exports=function e(t){if("number"===typeof t)return t;if("string"===typeof t)return parseFloat(t);if(Array.isArray(t))return t.map(e);throw new Error("The value should be a number, a parsable string or an array of those.")}},3702:(e,t,n)=>{"use strict";var r=n(3634);function i(e){return Object.keys(e).sort().reduce((function(t,n){return t[n]=e[n],t}),{})}var o={_getQueries:function(e,t){var n=[];return n.push({indexName:e,params:o._getHitsSearchParams(t)}),t.getRefinedDisjunctiveFacets().forEach((function(r){n.push({indexName:e,params:o._getDisjunctiveFacetSearchParams(t,r)})})),t.getRefinedHierarchicalFacets().forEach((function(r){var i=t.getHierarchicalFacetByName(r),a=t.getHierarchicalRefinement(r),s=t._getHierarchicalFacetSeparator(i);if(a.length>0&&a[0].split(s).length>1){var l=a[0].split(s).slice(0,-1).reduce((function(e,t,n){return e.concat({attribute:i.attributes[n],value:0===n?t:[e[e.length-1].value,t].join(s)})}),[]);l.forEach((function(r,a){var s=o._getDisjunctiveFacetSearchParams(t,r.attribute,0===a);function u(e){return i.attributes.some((function(t){return t===e.split(":")[0]}))}var c=(s.facetFilters||[]).reduce((function(e,t){if(Array.isArray(t)){var n=t.filter((function(e){return!u(e)}));n.length>0&&e.push(n)}return"string"!==typeof t||u(t)||e.push(t),e}),[]),d=l[a-1];s.facetFilters=a>0?c.concat(d.attribute+":"+d.value):c.length>0?c:void 0,n.push({indexName:e,params:s})}))}})),n},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(o._getHitsHierarchicalFacetsAttributes(e)).sort(),n=o._getFacetFilters(e),a=o._getNumericFilters(e),s=o._getTagFilters(e),l={facets:t.indexOf("*")>-1?["*"]:t,tagFilters:s};return n.length>0&&(l.facetFilters=n),a.length>0&&(l.numericFilters=a),i(r({},e.getQueryParams(),l))},_getDisjunctiveFacetSearchParams:function(e,t,n){var a=o._getFacetFilters(e,t,n),s=o._getNumericFilters(e,t),l=o._getTagFilters(e),u={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};l.length>0&&(u.tagFilters=l);var c=e.getHierarchicalFacetByName(t);return u.facets=c?o._getDisjunctiveHierarchicalFacetAttribute(e,c,n):t,s.length>0&&(u.numericFilters=s),a.length>0&&(u.facetFilters=a),i(r({},e.getQueryParams(),u))},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var n=[];return Object.keys(e.numericRefinements).forEach((function(r){var i=e.numericRefinements[r]||{};Object.keys(i).forEach((function(e){var o=i[e]||[];t!==r&&o.forEach((function(t){if(Array.isArray(t)){var i=t.map((function(t){return r+e+t}));n.push(i)}else n.push(r+e+t)}))}))})),n},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,n){var r=[],i=e.facetsRefinements||{};Object.keys(i).sort().forEach((function(e){(i[e]||[]).sort().forEach((function(t){r.push(e+":"+t)}))}));var o=e.facetsExcludes||{};Object.keys(o).sort().forEach((function(e){(o[e]||[]).sort().forEach((function(t){r.push(e+":-"+t)}))}));var a=e.disjunctiveFacetsRefinements||{};Object.keys(a).sort().forEach((function(e){var n=a[e]||[];if(e!==t&&n&&0!==n.length){var i=[];n.sort().forEach((function(t){i.push(e+":"+t)})),r.push(i)}}));var s=e.hierarchicalFacetsRefinements||{};return Object.keys(s).sort().forEach((function(i){var o=(s[i]||[])[0];if(void 0!==o){var a,l,u=e.getHierarchicalFacetByName(i),c=e._getHierarchicalFacetSeparator(u),d=e._getHierarchicalRootPath(u);if(t===i){if(-1===o.indexOf(c)||!d&&!0===n||d&&d.split(c).length===o.split(c).length)return;d?(l=d.split(c).length-1,o=d):(l=o.split(c).length-2,o=o.slice(0,o.lastIndexOf(c))),a=u.attributes[l]}else l=o.split(c).length-1,a=u.attributes[l];a&&r.push([a+":"+o])}})),r},_getHitsHierarchicalFacetsAttributes:function(e){return e.hierarchicalFacets.reduce((function(t,n){var r=e.getHierarchicalRefinement(n.name)[0];if(!r)return t.push(n.attributes[0]),t;var i=e._getHierarchicalFacetSeparator(n),o=r.split(i).length,a=n.attributes.slice(0,o+1);return t.concat(a)}),[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,n){var r=e._getHierarchicalFacetSeparator(t);if(!0===n){var i=e._getHierarchicalRootPath(t),o=0;return i&&(o=i.split(r).length),[t.attributes[o]]}var a=(e.getHierarchicalRefinement(t.name)[0]||"").split(r).length-1;return t.attributes.slice(0,a+1)},getSearchForFacetQuery:function(e,t,n,a){var s=a.isDisjunctiveFacet(e)?a.clearRefinements(e):a,l={facetQuery:t,facetName:e};return"number"===typeof n&&(l.maxFacetHits=n),i(r({},o._getHitsSearchParams(s),l))}};e.exports=o},9094:e=>{"use strict";e.exports=function(e){return null!==e&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)}},8308:e=>{"use strict";e.exports="3.14.0"},1041:function(e){e.exports=function(){"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(n){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?t(Object(i),!0).forEach((function(t){e(n,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))}))}return n}function r(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(e){var t,n="algoliasearch-client-js-".concat(e.key),r=function(){return void 0===t&&(t=e.localStorage||window.localStorage),t},o=function(){return JSON.parse(r().getItem(n)||"{}")},a=function(e){r().setItem(n,JSON.stringify(e))},s=function(){var t=e.timeToLive?1e3*e.timeToLive:null,n=o(),r=Object.fromEntries(Object.entries(n).filter((function(e){return void 0!==i(e,2)[1].timestamp})));if(a(r),t){var s=Object.fromEntries(Object.entries(r).filter((function(e){var n=i(e,2)[1],r=(new Date).getTime();return!(n.timestamp+t<r)})));a(s)}};return{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){s();var t=JSON.stringify(e);return o()[t]})).then((function(e){return Promise.all([e?e.value:t(),void 0!==e])})).then((function(e){var t=i(e,2),r=t[0],o=t[1];return Promise.all([r,o||n.miss(r)])})).then((function(e){return i(e,1)[0]}))},set:function(e,t){return Promise.resolve().then((function(){var i=o();return i[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},r().setItem(n,JSON.stringify(i)),t}))},delete:function(e){return Promise.resolve().then((function(){var t=o();delete t[JSON.stringify(e)],r().setItem(n,JSON.stringify(t))}))},clear:function(){return Promise.resolve().then((function(){r().removeItem(n)}))}}}function s(e){var t=o(e.caches),n=t.shift();return void 0===n?{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then((function(e){return Promise.all([e,n.miss(e)])})).then((function(e){return i(e,1)[0]}))},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return n.get(e,r,i).catch((function(){return s({caches:t}).get(e,r,i)}))},set:function(e,r){return n.set(e,r).catch((function(){return s({caches:t}).set(e,r)}))},delete:function(e){return n.delete(e).catch((function(){return s({caches:t}).delete(e)}))},clear:function(){return n.clear().catch((function(){return s({caches:t}).clear()}))}}}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},o=JSON.stringify(n);if(o in t)return Promise.resolve(e.serializable?JSON.parse(t[o]):t[o]);var a=r(),s=i&&i.miss||function(){return Promise.resolve()};return a.then((function(e){return s(e)})).then((function(){return a}))},set:function(n,r){return t[JSON.stringify(n)]=e.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function u(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}function c(e,t){return t?(Object.keys(t).forEach((function(n){e[n]=t[n](e)})),e):e}function d(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0;return e.replace(/%s/g,(function(){return encodeURIComponent(n[i++])}))}var f={WithinQueryParameters:0,WithinHeaders:1};function h(e,t){var n=e||{},r=n.data||{};return Object.keys(n).forEach((function(e){-1===["timeout","headers","queryParameters","data","cacheable"].indexOf(e)&&(r[e]=n[e])})),{data:Object.entries(r).length>0?r:void 0,timeout:n.timeout||t,headers:n.headers||{},queryParameters:n.queryParameters||{},cacheable:n.cacheable}}var p={Read:1,Write:2,Any:3},g=1,m=2,y=3;function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g;return n(n({},e),{},{status:t,lastUpdate:Date.now()})}function b(e){return"string"==typeof e?{protocol:"https",url:e,accept:p.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||p.Any}}var x="GET",w="POST";function M(e,t){return Promise.all(t.map((function(t){return e.get(t,(function(){return Promise.resolve(v(t))}))}))).then((function(e){var n=e.filter((function(e){return function(e){return e.status===g||Date.now()-e.lastUpdate>12e4}(e)})),r=e.filter((function(e){return function(e){return e.status===y&&Date.now()-e.lastUpdate<=12e4}(e)})),i=[].concat(o(n),o(r));return{getTimeout:function(e,t){return(0===r.length&&0===e?1:r.length+3+e)*t},statelessHosts:i.length>0?i.map((function(e){return b(e)})):t}}))}function S(e,t,r,i){var a=[],s=function(e,t){if(e.method!==x&&(void 0!==e.data||void 0!==t.data)){var r=Array.isArray(e.data)?e.data:n(n({},e.data),t.data);return JSON.stringify(r)}}(r,i),l=function(e,t){var r=n(n({},e.headers),t.headers),i={};return Object.keys(r).forEach((function(e){var t=r[e];i[e.toLowerCase()]=t})),i}(e,i),u=r.method,c=r.method!==x?{}:n(n({},r.data),i.data),d=n(n(n({"x-algolia-agent":e.userAgent.value},e.queryParameters),c),i.queryParameters),f=0,h=function t(n,o){var c=n.pop();if(void 0===c)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:A(a)};var h={data:s,headers:l,method:u,url:N(c,r.path,d),connectTimeout:o(f,e.timeouts.connect),responseTimeout:o(f,i.timeout)},p=function(e){var t={request:h,response:e,host:c,triesLeft:n.length};return a.push(t),t},g={onSuccess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw function(e,t){return{name:"DeserializationError",message:e,response:t}}(t.message,e)}}(e)},onRetry:function(r){var i=p(r);return r.isTimedOut&&f++,Promise.all([e.logger.info("Retryable failure",T(i)),e.hostsCache.set(c,v(c,r.isTimedOut?y:m))]).then((function(){return t(n,o)}))},onFail:function(e){throw p(e),function(e,t){var n=e.content,r=e.status,i=n;try{i=JSON.parse(n).message}catch(e){}return function(e,t,n){return{name:"ApiError",message:e,status:t,transporterStackTrace:n}}(i,r,t)}(e,A(a))}};return e.requester.send(h).then((function(e){return function(e,t){return function(e){var t=e.status;return e.isTimedOut||function(e){var t=e.isTimedOut,n=e.status;return!t&&0==~~n}(e)||2!=~~(t/100)&&4!=~~(t/100)}(e)?t.onRetry(e):2==~~(e.status/100)?t.onSuccess(e):t.onFail(e)}(e,g)}))};return M(e.hostsCache,t).then((function(e){return h(o(e.statelessHosts).reverse(),e.getTimeout)}))}function j(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(e){var n="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return-1===t.value.indexOf(n)&&(t.value="".concat(t.value).concat(n)),t}};return t}function N(e,t,n){var r=C(n),i="".concat(e.protocol,"://").concat(e.url,"/").concat("/"===t.charAt(0)?t.substr(1):t);return r.length&&(i+="?".concat(r)),i}function C(e){return Object.keys(e).map((function(t){return d("%s=%s",t,(n=e[t],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n)?JSON.stringify(e[t]):e[t]));var n})).join("&")}function A(e){return e.map((function(e){return T(e)}))}function T(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return n(n({},e),{},{request:n(n({},e.request),{},{headers:n(n({},e.request.headers),t)})})}var E=function(e){var t=e.appId,r=function(e,t,n){var r={"x-algolia-api-key":n,"x-algolia-application-id":t};return{headers:function(){return e===f.WithinHeaders?r:{}},queryParameters:function(){return e===f.WithinQueryParameters?r:{}}}}(void 0!==e.authMode?e.authMode:f.WithinHeaders,t,e.apiKey),o=function(e){var t=e.hostsCache,n=e.logger,r=e.requester,o=e.requestsCache,a=e.responsesCache,s=e.timeouts,l=e.userAgent,u=e.hosts,c=e.queryParameters,d={hostsCache:t,logger:n,requester:r,requestsCache:o,responsesCache:a,timeouts:s,userAgent:l,headers:e.headers,queryParameters:c,hosts:u.map((function(e){return b(e)})),read:function(e,t){var n=h(t,d.timeouts.read),r=function(){return S(d,d.hosts.filter((function(e){return 0!=(e.accept&p.Read)})),e,n)};if(!0!==(void 0!==n.cacheable?n.cacheable:e.cacheable))return r();var o={request:e,mappedRequestOptions:n,transporter:{queryParameters:d.queryParameters,headers:d.headers}};return d.responsesCache.get(o,(function(){return d.requestsCache.get(o,(function(){return d.requestsCache.set(o,r()).then((function(e){return Promise.all([d.requestsCache.delete(o),e])}),(function(e){return Promise.all([d.requestsCache.delete(o),Promise.reject(e)])})).then((function(e){var t=i(e,2);return t[0],t[1]}))}))}),{miss:function(e){return d.responsesCache.set(o,e)}})},write:function(e,t){return S(d,d.hosts.filter((function(e){return 0!=(e.accept&p.Write)})),e,h(t,d.timeouts.write))}};return d}(n(n({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:p.Read},{url:"".concat(t,".algolia.net"),accept:p.Write}].concat(u([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e),{},{headers:n(n(n({},r.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:n(n({},r.queryParameters()),e.queryParameters)}));return c({transporter:o,appId:t,addAlgoliaAgent:function(e,t){o.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([o.requestsCache.clear(),o.responsesCache.clear()]).then((function(){}))}},e.methods)},D=function(e){return function(t,n){return t.method===x?e.transporter.read(t,n):e.transporter.write(t,n)}},k=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c({transporter:e.transporter,appId:e.appId,indexName:t},n.methods)}},O=function(e){return function(t,r){var i=t.map((function(e){return n(n({},e),{},{params:C(e.params||{})})}));return e.transporter.read({method:w,path:"1/indexes/*/queries",data:{requests:i},cacheable:!0},r)}},I=function(e){return function(t,i){return Promise.all(t.map((function(t){var o=t.params,a=o.facetName,s=o.facetQuery,l=r(o,["facetName","facetQuery"]);return k(e)(t.indexName,{methods:{searchForFacetValues:L}}).searchForFacetValues(a,s,n(n({},i),l))})))}},_=function(e){return function(t,n,r){return e.transporter.read({method:w,path:d("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:n},cacheable:!0},r)}},P=function(e){return function(t,n){return e.transporter.read({method:w,path:d("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},n)}},L=function(e){return function(t,n,r){return e.transporter.read({method:w,path:d("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:n},cacheable:!0},r)}},z=1,R=2,F=3,U=function(e){return function(t,r){var i=t.map((function(e){return n(n({},e),{},{threshold:e.threshold||0})}));return e.transporter.read({method:w,path:"1/indexes/*/recommendations",data:{requests:i},cacheable:!0},r)}};function B(e,t,r){var i,o={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise((function(t){var n=new XMLHttpRequest;n.open(e.method,e.url,!0),Object.keys(e.headers).forEach((function(t){return n.setRequestHeader(t,e.headers[t])}));var r,i=function(e,r){return setTimeout((function(){n.abort(),t({status:0,content:r,isTimedOut:!0})}),1e3*e)},o=i(e.connectTimeout,"Connection timeout");n.onreadystatechange=function(){n.readyState>n.OPENED&&void 0===r&&(clearTimeout(o),r=i(e.responseTimeout,"Socket timeout"))},n.onerror=function(){0===n.status&&(clearTimeout(o),clearTimeout(r),t({content:n.responseText||"Network request failed",status:n.status,isTimedOut:!1}))},n.onload=function(){clearTimeout(o),clearTimeout(r),t({content:n.responseText,status:n.status,isTimedOut:!1})},n.send(e.data)}))}},logger:(i=F,{debug:function(e,t){return z>=i&&console.debug(e,t),Promise.resolve()},info:function(e,t){return R>=i&&console.info(e,t),Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}}),responsesCache:l(),requestsCache:l({serializable:!1}),hostsCache:s({caches:[a({key:"".concat("4.23.3","-").concat(e)}),l()]}),userAgent:j("4.23.3").add({segment:"Browser",version:"lite"}),authMode:f.WithinQueryParameters};return E(n(n(n({},o),r),{},{methods:{search:O,searchForFacetValues:I,multipleQueries:O,multipleSearchForFacetValues:I,customRequest:D,initIndex:function(e){return function(t){return k(e)(t,{methods:{search:P,searchForFacetValues:L,findAnswers:_}})}},getRecommendations:U}}))}return B.version="4.23.3",B}()},7621:(e,t,n)=>{"use strict";function r(e){o.length||(i(),!0),o[o.length]=e}e.exports=r;var i,o=[],a=0;function s(){for(;a<o.length;){var e=a;if(a+=1,o[e].call(),a>1024){for(var t=0,n=o.length-a;t<n;t++)o[t]=o[t+a];o.length-=a,a=0}}o.length=0,a=0,!1}var l="undefined"!==typeof n.g?n.g:self,u=l.MutationObserver||l.WebKitMutationObserver;function c(e){return function(){var t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}i="function"===typeof u?function(e){var t=1,n=new u(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}(s):c(s),r.requestFlush=i,r.makeRequestCallFromTimer=c},3129:(e,t)=>{"use strict";t.A=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?o===t.replace(/\/.*$/,""):i===t}))}return!0}},6783:(e,t,n)=>{e.exports=n(3425)},2622:(e,t,n)=>{"use strict";var r=n(7850),i=n(6072),o=n(2158),a=n(6036),s=n(4506),l=n(5073),u=n(8628),c=n(4449);e.exports=function(e){return new Promise((function(t,n){var d=e.data,f=e.headers,h=e.responseType;r.isFormData(d)&&delete f["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var g=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";f.Authorization="Basic "+btoa(g+":"+m)}var y=s(e.baseURL,e.url);function v(){if(p){var r="getAllResponseHeaders"in p?l(p.getAllResponseHeaders()):null,o={data:h&&"text"!==h&&"json"!==h?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};i(t,n,o),p=null}}if(p.open(e.method.toUpperCase(),a(y,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,"onloadend"in p?p.onloadend=v:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(v)},p.onabort=function(){p&&(n(c("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(c("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var b=(e.withCredentials||u(y))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;b&&(f[e.xsrfHeaderName]=b)}"setRequestHeader"in p&&r.forEach(f,(function(e,t){"undefined"===typeof d&&"content-type"===t.toLowerCase()?delete f[t]:p.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),h&&"json"!==h&&(p.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),n(e),p=null)})),d||(d=null),p.send(d)}))}},3425:(e,t,n)=>{"use strict";var r=n(7850),i=n(4470),o=n(241),a=n(9577);function s(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var l=s(n(9785));l.Axios=o,l.create=function(e){return s(a(l.defaults,e))},l.Cancel=n(5806),l.CancelToken=n(101),l.isCancel=n(66),l.all=function(e){return Promise.all(e)},l.spread=n(4926),l.isAxiosError=n(4001),e.exports=l,e.exports.default=l},5806:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},101:(e,t,n)=>{"use strict";var r=n(5806);function i(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},66:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},241:(e,t,n)=>{"use strict";var r=n(7850),i=n(6036),o=n(9873),a=n(2280),s=n(9577),l=n(5635),u=l.validators;function c(e){this.defaults=e,this.interceptors={request:new o,response:new o}}c.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(e){o.push(e.fulfilled,e.rejected)})),!r){var c=[a,void 0];for(Array.prototype.unshift.apply(c,n),c=c.concat(o),i=Promise.resolve(e);c.length;)i=i.then(c.shift(),c.shift());return i}for(var d=e;n.length;){var f=n.shift(),h=n.shift();try{d=f(d)}catch(p){h(p);break}}try{i=a(d)}catch(p){return Promise.reject(p)}for(;o.length;)i=i.then(o.shift(),o.shift());return i},c.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=c},9873:(e,t,n)=>{"use strict";var r=n(7850);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},4506:(e,t,n)=>{"use strict";var r=n(7275),i=n(9217);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},4449:(e,t,n)=>{"use strict";var r=n(4767);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},2280:(e,t,n)=>{"use strict";var r=n(7850),i=n(2535),o=n(66),a=n(9785);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},4767:e=>{"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},9577:(e,t,n)=>{"use strict";var r=n(7850);e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function u(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=l(void 0,e[i])):n[i]=l(e[i],t[i])}r.forEach(i,(function(e){r.isUndefined(t[e])||(n[e]=l(void 0,t[e]))})),r.forEach(o,u),r.forEach(a,(function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=l(void 0,e[i])):n[i]=l(void 0,t[i])})),r.forEach(s,(function(r){r in t?n[r]=l(e[r],t[r]):r in e&&(n[r]=l(void 0,e[r]))}));var c=i.concat(o).concat(a).concat(s),d=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===c.indexOf(e)}));return r.forEach(d,u),n}},6072:(e,t,n)=>{"use strict";var r=n(4449);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},2535:(e,t,n)=>{"use strict";var r=n(7850),i=n(9785);e.exports=function(e,t,n){var o=this||i;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},9785:(e,t,n)=>{"use strict";var r=n(7850),i=n(7136),o=n(4767),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(2622)),e}(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(i){if("SyntaxError"!==i.name)throw i}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(a){if("SyntaxError"===s.name)throw o(s,this,"E_JSON_PARSE");throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(a)})),e.exports=l},4470:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},6036:(e,t,n)=>{"use strict";var r=n(7850);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},9217:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},2158:(e,t,n)=>{"use strict";var r=n(7850);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},7275:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},4001:e=>{"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},8628:(e,t,n)=>{"use strict";var r=n(7850);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},7136:(e,t,n)=>{"use strict";var r=n(7850);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},5073:(e,t,n)=>{"use strict";var r=n(7850),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},4926:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},5635:(e,t,n)=>{"use strict";var r=n(8983),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={},a=r.version.split(".");function s(e,t){for(var n=t?t.split("."):a,r=e.split("."),i=0;i<3;i++){if(n[i]>r[i])return!0;if(n[i]<r[i])return!1}return!1}i.transitional=function(e,t,n){var i=t&&s(t);function a(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new Error(a(r," has been removed in "+t));return i&&!o[r]&&(o[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={isOlderVersion:s,assertOptions:function(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],a=t[o];if(a){var s=e[o],l=void 0===s||a(s,o,e);if(!0!==l)throw new TypeError("option "+o+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:i}},7850:(e,t,n)=>{"use strict";var r=n(4470),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&"object"===typeof e}function l(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!==typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:s,isPlainObject:l,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:u,isStream:function(e){return s(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:c,merge:function e(){var t={};function n(n,r){l(t[r])&&l(n)?t[r]=e(t[r],n):l(n)?t[r]=e({},n):o(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,(function(t,i){e[i]=n&&"function"===typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},3154:(e,t,n)=>{var r;!function(i){"use strict";var o=i.HTMLCanvasElement&&i.HTMLCanvasElement.prototype,a=i.Blob&&function(){try{return Boolean(new Blob)}catch(e){return!1}}(),s=a&&i.Uint8Array&&function(){try{return 100===new Blob([new Uint8Array(100)]).size}catch(e){return!1}}(),l=i.BlobBuilder||i.WebKitBlobBuilder||i.MozBlobBuilder||i.MSBlobBuilder,u=/^data:((.*?)(;charset=.*?)?)(;base64)?,/,c=(a||l)&&i.atob&&i.ArrayBuffer&&i.Uint8Array&&function(e){var t,n,r,i,o,c,d,f,h;if(!(t=e.match(u)))throw new Error("invalid data URI");for(n=t[2]?t[1]:"text/plain"+(t[3]||";charset=US-ASCII"),r=!!t[4],i=e.slice(t[0].length),o=r?atob(i):decodeURIComponent(i),c=new ArrayBuffer(o.length),d=new Uint8Array(c),f=0;f<o.length;f+=1)d[f]=o.charCodeAt(f);return a?new Blob([s?d:c],{type:n}):((h=new l).append(c),h.getBlob(n))};i.HTMLCanvasElement&&!o.toBlob&&(o.mozGetAsFile?o.toBlob=function(e,t,n){var r=this;setTimeout((function(){n&&o.toDataURL&&c?e(c(r.toDataURL(t,n))):e(r.mozGetAsFile("blob",t))}))}:o.toDataURL&&c&&(o.msToBlob?o.toBlob=function(e,t,n){var r=this;setTimeout((function(){(t&&"image/png"!==t||n)&&o.toDataURL&&c?e(c(r.toDataURL(t,n))):e(r.msToBlob(t))}))}:o.toBlob=function(e,t,n){var r=this;setTimeout((function(){e(c(r.toDataURL(t,n)))}))})),void 0===(r=function(){return c}.call(t,n,t,e))||(e.exports=r)}(window)},4664:(e,t,n)=>{e.exports=n(4850),n(2089),n(1322),n(1019),n(3813),n(3314),n(2063),n(7492),n(849)},3314:(e,t,n)=>{var r,i,o;!function(a){"use strict";i=[n(4850),n(3813)],void 0===(o="function"===typeof(r=function(e){e.ExifMap.prototype.tags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright",36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",42240:"Gamma",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"PhotographicSensitivity",34856:"OECF",34864:"SensitivityType",34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRatio",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",42016:"ImageUniqueID",42032:"CameraOwnerName",42033:"BodySerialNumber",42034:"LensSpecification",42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential",31:"GPSHPositioningError"},e.ExifMap.prototype.stringValues={ExposureProgram:{0:"Undefined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Undefined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},ComponentsConfiguration:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"},Orientation:{1:"top-left",2:"top-right",3:"bottom-right",4:"bottom-left",5:"left-top",6:"right-top",7:"right-bottom",8:"left-bottom"}},e.ExifMap.prototype.getText=function(e){var t=this.get(e);switch(e){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":case"Orientation":return this.stringValues[e][t];case"ExifVersion":case"FlashpixVersion":if(!t)return;return String.fromCharCode(t[0],t[1],t[2],t[3]);case"ComponentsConfiguration":if(!t)return;return this.stringValues[e][t[0]]+this.stringValues[e][t[1]]+this.stringValues[e][t[2]]+this.stringValues[e][t[3]];case"GPSVersionID":if(!t)return;return t[0]+"."+t[1]+"."+t[2]+"."+t[3]}return String(t)},function(e){var t,n=e.tags,r=e.map;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(r[n[t]]=t)}(e.ExifMap.prototype),e.ExifMap.prototype.getAll=function(){var e,t,n={};for(e in this)Object.prototype.hasOwnProperty.call(this,e)&&(t=this.tags[e])&&(n[t]=this.getText(t));return n}})?r.apply(t,i):r)||(e.exports=o)}()},3813:(e,t,n)=>{var r,i,o;!function(a){"use strict";i=[n(4850),n(1322)],void 0===(o="function"===typeof(r=function(e){e.ExifMap=function(){return this},e.ExifMap.prototype.map={Orientation:274},e.ExifMap.prototype.get=function(e){return this[e]||this[this.map[e]]},e.getExifThumbnail=function(t,n,r){if(r&&!(n+r>t.byteLength))return e.createObjectURL(new Blob([t.buffer.slice(n,n+r)]));console.log("Invalid Exif data: Invalid thumbnail data.")},e.exifTagTypes={1:{getValue:function(e,t){return e.getUint8(t)},size:1},2:{getValue:function(e,t){return String.fromCharCode(e.getUint8(t))},size:1,ascii:!0},3:{getValue:function(e,t,n){return e.getUint16(t,n)},size:2},4:{getValue:function(e,t,n){return e.getUint32(t,n)},size:4},5:{getValue:function(e,t,n){return e.getUint32(t,n)/e.getUint32(t+4,n)},size:8},9:{getValue:function(e,t,n){return e.getInt32(t,n)},size:4},10:{getValue:function(e,t,n){return e.getInt32(t,n)/e.getInt32(t+4,n)},size:8}},e.exifTagTypes[7]=e.exifTagTypes[1],e.getExifValue=function(t,n,r,i,o,a){var s,l,u,c,d,f,h=e.exifTagTypes[i];if(h){if(!((l=(s=h.size*o)>4?n+t.getUint32(r+8,a):r+8)+s>t.byteLength)){if(1===o)return h.getValue(t,l,a);for(u=[],c=0;c<o;c+=1)u[c]=h.getValue(t,l+c*h.size,a);if(h.ascii){for(d="",c=0;c<u.length&&"\0"!==(f=u[c]);c+=1)d+=f;return d}return u}console.log("Invalid Exif data: Invalid data offset.")}else console.log("Invalid Exif data: Invalid tag type.")},e.parseExifTag=function(t,n,r,i){return{number:t.getUint16(r,i),value:e.getExifValue(t,n,r,t.getUint16(r+2,i),t.getUint32(r+4,i),i)}},e.parseExifTags=function(e,t,n,r,i){var o,a,s,l,u;if(n+6>e.byteLength)console.log("Invalid Exif data: Invalid directory offset.");else{if(!((a=n+2+12*(o=e.getUint16(n,r)))+4>e.byteLength)){for(s=0;s<o;s+=1)l=n+2+12*s,u=this.parseExifTag(e,t,l,r,i),i.exif[u.number]=u.value,i.exifOffsets&&(i.exifOffsets[u.number]=l);return e.getUint32(a,r)}console.log("Invalid Exif data: Invalid directory size.")}},e.parseExifData=function(t,n,r,i,o){if(!o.disableExif){var a,s,l,u=n+10;if(1165519206===t.getUint32(n+4))if(u+8>t.byteLength)console.log("Invalid Exif data: Invalid segment size.");else if(0===t.getUint16(n+8)){switch(t.getUint16(u)){case 18761:a=!0;break;case 19789:a=!1;break;default:return void console.log("Invalid Exif data: Invalid byte alignment marker.")}42===t.getUint16(u+2,a)?(s=t.getUint32(u+4,a),i.exif=new e.ExifMap,o.disableExifOffsets||(i.exifOffsets=new e.ExifMap,i.exifTiffOffset=u,i.exifLittleEndian=a),(s=e.parseExifTags(t,u,u+s,a,i))&&!o.disableExifThumbnail&&(l={exif:{}},s=e.parseExifTags(t,u,u+s,a,l),l.exif[513]&&(i.exif.Thumbnail=e.getExifThumbnail(t,u+l.exif[513],l.exif[514]))),i.exif[34665]&&!o.disableExifSub&&e.parseExifTags(t,u,u+i.exif[34665],a,i),i.exif[34853]&&!o.disableExifGps&&e.parseExifTags(t,u,u+i.exif[34853],a,i)):console.log("Invalid Exif data: Missing TIFF marker.")}else console.log("Invalid Exif data: Missing byte alignment offset.")}},e.metaDataParsers.jpeg[65505].push(e.parseExifData),e.exifWriters={274:function(e,t,n){return new DataView(e,t.exifOffsets[274]+8,2).setUint16(0,n,t.exifLittleEndian),e}},e.writeExifData=function(t,n,r,i){e.exifWriters[n.exif.map[r]](t,n,i)}})?r.apply(t,i):r)||(e.exports=o)}()},1019:(e,t,n)=>{var r,i,o;!function(a){"use strict";i=[n(4850),n(1322)],void 0===(o="function"===typeof(r=function(e){"undefined"!==typeof fetch&&"undefined"!==typeof Request?e.fetchBlob=function(t,n,r){e.hasMetaOption(r)?fetch(new Request(t,r)).then((function(e){return e.blob()})).then(n).catch((function(e){console.log(e),n()})):n()}:"undefined"!==typeof XMLHttpRequest&&"undefined"!==typeof ProgressEvent&&(e.fetchBlob=function(t,n,r){if(e.hasMetaOption(r)){r=r||{};var i=new XMLHttpRequest;i.open(r.method||"GET",t),r.headers&&Object.keys(r.headers).forEach((function(e){i.setRequestHeader(e,r.headers[e])})),i.withCredentials="include"===r.credentials,i.responseType="blob",i.onload=function(){n(i.response)},i.onerror=i.onabort=i.ontimeout=function(e){console.log(e),n()},i.send(r.body)}else n()})})?r.apply(t,i):r)||(e.exports=o)}()},7492:(e,t,n)=>{var r,i,o;!function(a){"use strict";i=[n(4850),n(2063)],void 0===(o="function"===typeof(r=function(e){e.IptcMap.prototype.tags={3:"ObjectType",4:"ObjectAttribute",5:"ObjectName",7:"EditStatus",8:"EditorialUpdate",10:"Urgency",12:"SubjectRef",15:"Category",20:"SupplCategory",22:"FixtureID",25:"Keywords",26:"ContentLocCode",27:"ContentLocName",30:"ReleaseDate",35:"ReleaseTime",37:"ExpirationDate",38:"ExpirationTime",40:"SpecialInstructions",42:"ActionAdvised",45:"RefService",47:"RefDate",50:"RefNumber",55:"DateCreated",60:"TimeCreated",62:"DigitalCreationDate",63:"DigitalCreationTime",65:"OriginatingProgram",70:"ProgramVersion",75:"ObjectCycle",80:"Byline",85:"BylineTitle",90:"City",92:"Sublocation",95:"State",100:"CountryCode",101:"CountryName",103:"OrigTransRef",105:"Headline",110:"Credit",115:"Source",116:"CopyrightNotice",118:"Contact",120:"Caption",122:"WriterEditor",130:"ImageType",131:"ImageOrientation",135:"LanguageID"},e.IptcMap.prototype.getText=function(e){var t=this.get(e);return String(t)},function(e){var t,n=e.tags,r=e.map||{};for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(r[n[t]]=t)}(e.IptcMap.prototype),e.IptcMap.prototype.getAll=function(){var e,t,n={};for(e in this)Object.prototype.hasOwnProperty.call(this,e)&&(t=this.tags[e])&&(n[t]=this.getText(t));return n}})?r.apply(t,i):r)||(e.exports=o)}()},2063:(e,t,n)=>{var r,i,o;!function(a){"use strict";i=[n(4850),n(1322)],void 0===(o="function"===typeof(r=function(e){e.IptcMap=function(){return this},e.IptcMap.prototype.map={ObjectName:5},e.IptcMap.prototype.get=function(e){return this[e]||this[this.map[e]]},e.parseIptcTags=function(e,t,n,r){function i(e,t,n){for(var r="",i=t;i<t+n;i++)r+=String.fromCharCode(e.getUint8(i));return r}for(var o,a,s,l=t;l<t+n;)28===e.getUint8(l)&&2===e.getUint8(l+1)&&(s=e.getUint8(l+2))in r.iptc.tags&&(a=e.getInt16(l+3),o=i(e,l+5,a),Object.prototype.hasOwnProperty.call(r.iptc,s)?r.iptc[s]instanceof Array?r.iptc[s].push(o):r.iptc[s]=[r.iptc[s],o]:r.iptc[s]=o),l++},e.parseIptcData=function(t,n,r,i,o){if(!o.disableIptc){for(var a=n+r,s=function(e,t){return 943868237===e.getUint32(t)&&1028===e.getUint16(t+4)};n+8<a;){if(s(t,n)){var l=t.getUint8(n+7);l%2!==0&&(l+=1),0===l&&(l=4);var u=n+8+l;if(u>a){console.log("Invalid IPTC data: Invalid segment offset.");break}var c=t.getUint16(n+6+l);if(n+c>a){console.log("Invalid IPTC data: Invalid segment size.");break}return i.iptc=new e.IptcMap,e.parseIptcTags(t,u,c,i)}n++}console.log("No IPTC data at this offset - could be XMP")}},e.metaDataParsers.jpeg[65517].push(e.parseIptcData)})?r.apply(t,i):r)||(e.exports=o)}()},1322:(e,t,n)=>{var r,i,o;!function(a){"use strict";i=[n(4850)],r=function(e){var t="undefined"!==typeof Blob&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice);e.blobSlice=t&&function(){return(this.slice||this.webkitSlice||this.mozSlice).apply(this,arguments)},e.metaDataParsers={jpeg:{65505:[],65517:[]}},e.parseMetaData=function(t,n,r,i){i=i||{};var o=this,a=(r=r||{}).maxMetaDataSize||262144;!!("undefined"!==typeof DataView&&t&&t.size>=12&&"image/jpeg"===t.type&&e.blobSlice)&&e.readFile(e.blobSlice.call(t,0,a),(function(t){if(t.target.error)return console.log(t.target.error),void n(i);var a,s,l,u,c=t.target.result,d=new DataView(c),f=2,h=d.byteLength-4,p=f;if(65496===d.getUint16(0)){for(;f<h&&((a=d.getUint16(f))>=65504&&a<=65519||65534===a);){if(f+(s=d.getUint16(f+2)+2)>d.byteLength){console.log("Invalid meta data: Invalid segment size.");break}if((l=e.metaDataParsers.jpeg[a])&&!r.disableMetaDataParsers)for(u=0;u<l.length;u+=1)l[u].call(o,d,f,s,i,r);p=f+=s}!r.disableImageHead&&p>6&&(c.slice?i.imageHead=c.slice(0,p):i.imageHead=new Uint8Array(c).subarray(0,p))}else console.log("Invalid JPEG file: Missing JPEG marker.");n(i)}),"readAsArrayBuffer")||n(i)},e.replaceHead=function(t,n,r){e.parseMetaData(t,(function(i){r(new Blob([n,e.blobSlice.call(t,i.imageHead.byteLength)],{type:"image/jpeg"}))}),{maxMetaDataSize:256,disableMetaDataParsers:!0})},e.hasMetaOption=function(e){return e&&e.meta};var n=e.transform;e.transform=function(t,r,i,o,a){e.hasMetaOption(r)?e.parseMetaData(o,(function(a){n.call(e,t,r,i,o,a)}),r,a):n.apply(e,arguments)}},void 0===(o="function"===typeof r?r.apply(t,i):r)||(e.exports=o)}()},849:(e,t,n)=>{var r,i,o;!function(a){"use strict";i=[n(4850),n(2089),n(1322)],void 0===(o="function"===typeof(r=function(e){var t=e.hasCanvasOption,n=e.hasMetaOption,r=e.transformCoordinates,i=e.getTransformedOptions;(function(){var t="data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==",n=document.createElement("img");n.onload=function(){e.orientation=1===n.width&&2===n.height},n.src=t})(),e.hasCanvasOption=function(n){return!0===!!n.orientation&&!e.orientation||n.orientation>1&&n.orientation<9||t.call(e,n)},e.hasMetaOption=function(t){return t&&!0===t.orientation&&!e.orientation||n.call(e,t)},e.transformCoordinates=function(t,n){r.call(e,t,n);var i=t.getContext("2d"),o=t.width,a=t.height,s=t.style.width,l=t.style.height,u=n.orientation;if(u>1&&u<9)switch(u>4&&(t.width=a,t.height=o,t.style.width=l,t.style.height=s),u){case 2:i.translate(o,0),i.scale(-1,1);break;case 3:i.translate(o,a),i.rotate(Math.PI);break;case 4:i.translate(0,a),i.scale(1,-1);break;case 5:i.rotate(.5*Math.PI),i.scale(1,-1);break;case 6:i.rotate(.5*Math.PI),i.translate(0,-a);break;case 7:i.rotate(.5*Math.PI),i.translate(o,-a),i.scale(-1,1);break;case 8:i.rotate(-.5*Math.PI),i.translate(-o,0)}},e.getTransformedOptions=function(t,n,r){var o,a,s=i.call(e,t,n),l=s.orientation;if(!0===l){if(e.orientation)return s;l=r&&r.exif&&r.exif.get("Orientation")}if(!(l>1&&l<9))return s;for(a in o={},s)Object.prototype.hasOwnProperty.call(s,a)&&(o[a]=s[a]);switch(o.orientation=l,l){case 2:o.left=s.right,o.right=s.left;break;case 3:o.left=s.right,o.top=s.bottom,o.right=s.left,o.bottom=s.top;break;case 4:o.top=s.bottom,o.bottom=s.top;break;case 5:o.left=s.top,o.top=s.left,o.right=s.bottom,o.bottom=s.right;break;case 6:o.left=s.top,o.top=s.right,o.right=s.bottom,o.bottom=s.left;break;case 7:o.left=s.bottom,o.top=s.right,o.right=s.top,o.bottom=s.left;break;case 8:o.left=s.bottom,o.top=s.left,o.right=s.top,o.bottom=s.right}return o.orientation>4&&(o.maxWidth=s.maxHeight,o.maxHeight=s.maxWidth,o.minWidth=s.minHeight,o.minHeight=s.minWidth,o.sourceWidth=s.sourceHeight,o.sourceHeight=s.sourceWidth),o}})?r.apply(t,i):r)||(e.exports=o)}()},2089:(e,t,n)=>{var r,i,o;!function(a){"use strict";i=[n(4850)],void 0===(o="function"===typeof(r=function(e){var t=e.transform;e.transform=function(n,r,i,o,a){t.call(e,e.scale(n,r,a),r,i,o,a)},e.transformCoordinates=function(){},e.getTransformedOptions=function(e,t){var n,r,i,o,a=t.aspectRatio;if(!a)return t;for(r in n={},t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n.crop=!0,(i=e.naturalWidth||e.width)/(o=e.naturalHeight||e.height)>a?(n.maxWidth=o*a,n.maxHeight=o):(n.maxWidth=i,n.maxHeight=i/a),n},e.renderImageToCanvas=function(e,t,n,r,i,o,a,s,l,u,c){var d=e.getContext("2d");return!1===c.imageSmoothingEnabled?d.imageSmoothingEnabled=!1:c.imageSmoothingQuality&&(d.imageSmoothingQuality=c.imageSmoothingQuality),d.drawImage(t,n,r,i,o,a,s,l,u),e},e.hasCanvasOption=function(e){return e.canvas||e.crop||!!e.aspectRatio},e.scale=function(t,n,r){n=n||{};var i,o,a,s,l,u,c,d,f,h,p,g=document.createElement("canvas"),m=t.getContext||e.hasCanvasOption(n)&&g.getContext,y=t.naturalWidth||t.width,v=t.naturalHeight||t.height,b=y,x=v;function w(){var e=Math.max((a||b)/b,(s||x)/x);e>1&&(b*=e,x*=e)}function M(){var e=Math.min((i||b)/b,(o||x)/x);e<1&&(b*=e,x*=e)}if(m&&(c=(n=e.getTransformedOptions(t,n,r)).left||0,d=n.top||0,n.sourceWidth?(l=n.sourceWidth,void 0!==n.right&&void 0===n.left&&(c=y-l-n.right)):l=y-c-(n.right||0),n.sourceHeight?(u=n.sourceHeight,void 0!==n.bottom&&void 0===n.top&&(d=v-u-n.bottom)):u=v-d-(n.bottom||0),b=l,x=u),i=n.maxWidth,o=n.maxHeight,a=n.minWidth,s=n.minHeight,m&&i&&o&&n.crop?(b=i,x=o,(p=l/u-i/o)<0?(u=o*l/i,void 0===n.top&&void 0===n.bottom&&(d=(v-u)/2)):p>0&&(l=i*u/o,void 0===n.left&&void 0===n.right&&(c=(y-l)/2))):((n.contain||n.cover)&&(a=i=i||a,s=o=o||s),n.cover?(M(),w()):(w(),M())),m){if((f=n.pixelRatio)>1&&(g.style.width=b+"px",g.style.height=x+"px",b*=f,x*=f,g.getContext("2d").scale(f,f)),(h=n.downsamplingRatio)>0&&h<1&&b<l&&x<u)for(;l*h>b;)g.width=l*h,g.height=u*h,e.renderImageToCanvas(g,t,c,d,l,u,0,0,g.width,g.height,n),c=0,d=0,l=g.width,u=g.height,(t=document.createElement("canvas")).width=l,t.height=u,e.renderImageToCanvas(t,g,0,0,l,u,0,0,l,u,n);return g.width=b,g.height=x,e.transformCoordinates(g,n),e.renderImageToCanvas(g,t,c,d,l,u,0,0,b,x,n)}return t.width=b,t.height=x,t}})?r.apply(t,i):r)||(e.exports=o)}()},4850:function(e,t,n){var r;!function(i){"use strict";function o(e,t,n){var r,i=document.createElement("img");return i.onerror=function(r){return o.onerror(i,r,e,t,n)},i.onload=function(r){return o.onload(i,r,e,t,n)},"string"===typeof e?(o.fetchBlob(e,(function(t){t&&o.isInstanceOf("Blob",t)?(e=t,r=o.createObjectURL(e)):(r=e,n&&n.crossOrigin&&(i.crossOrigin=n.crossOrigin)),i.src=r}),n),i):o.isInstanceOf("Blob",e)||o.isInstanceOf("File",e)?(r=i._objectURL=o.createObjectURL(e))?(i.src=r,i):o.readFile(e,(function(e){var n=e.target;n&&n.result?i.src=n.result:t&&t(e)})):void 0}var a=i.createObjectURL&&i||i.URL&&URL.revokeObjectURL&&URL||i.webkitURL&&webkitURL;function s(e,t){!e._objectURL||t&&t.noRevoke||(o.revokeObjectURL(e._objectURL),delete e._objectURL)}o.fetchBlob=function(e,t){t()},o.isInstanceOf=function(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"},o.transform=function(e,t,n,r,i){n(e,i)},o.onerror=function(e,t,n,r,i){s(e,i),r&&r.call(e,t)},o.onload=function(e,t,n,r,i){s(e,i),r&&o.transform(e,i,r,n,{originalWidth:e.naturalWidth||e.width,originalHeight:e.naturalHeight||e.height})},o.createObjectURL=function(e){return!!a&&a.createObjectURL(e)},o.revokeObjectURL=function(e){return!!a&&a.revokeObjectURL(e)},o.readFile=function(e,t,n){if(i.FileReader){var r=new FileReader;if(r.onload=r.onerror=t,r[n=n||"readAsDataURL"])return r[n](e),r}return!1},void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}("undefined"!==typeof window&&window||this)},2753:(e,t,n)=>{"use strict";var r=n(6707),i=n(9361),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&o(e,".prototype.")>-1?i(n):n}},9361:(e,t,n)=>{"use strict";var r=n(2353),i=n(6707),o=n(1063),a=n(377),s=i("%Function.prototype.apply%"),l=i("%Function.prototype.call%"),u=i("%Reflect.apply%",!0)||r.call(l,s),c=n(1742),d=i("%Math.max%");e.exports=function(e){if("function"!==typeof e)throw new a("a function is required");var t=u(r,l,arguments);return o(t,1+d(0,e.length-(arguments.length-1)),!0)};var f=function(){return u(r,s,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f},4007:(e,t,n)=>{"use strict";function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}n.d(t,{A:()=>i});const i=function(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}},589:function(e){e.exports=function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}function s(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function l(e){var t=s(e,"string");return"symbol"===typeof t?t:String(t)}var u={exports:{}};!function(e){"undefined"!==typeof window&&function(t){var n=t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype,r=t.Blob&&function(){try{return Boolean(new Blob)}catch(e){return!1}}(),i=r&&t.Uint8Array&&function(){try{return 100===new Blob([new Uint8Array(100)]).size}catch(e){return!1}}(),o=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||t.MSBlobBuilder,a=/^data:((.*?)(;charset=.*?)?)(;base64)?,/,s=(r||o)&&t.atob&&t.ArrayBuffer&&t.Uint8Array&&function(e){var t,n,s,l,u,c,d,f,h;if(!(t=e.match(a)))throw new Error("invalid data URI");for(n=t[2]?t[1]:"text/plain"+(t[3]||";charset=US-ASCII"),s=!!t[4],l=e.slice(t[0].length),u=s?atob(l):decodeURIComponent(l),c=new ArrayBuffer(u.length),d=new Uint8Array(c),f=0;f<u.length;f+=1)d[f]=u.charCodeAt(f);return r?new Blob([i?d:c],{type:n}):((h=new o).append(c),h.getBlob(n))};t.HTMLCanvasElement&&!n.toBlob&&(n.mozGetAsFile?n.toBlob=function(e,t,r){var i=this;setTimeout((function(){r&&n.toDataURL&&s?e(s(i.toDataURL(t,r))):e(i.mozGetAsFile("blob",t))}))}:n.toDataURL&&s&&(n.msToBlob?n.toBlob=function(e,t,r){var i=this;setTimeout((function(){(t&&"image/png"!==t||r)&&n.toDataURL&&s?e(s(i.toDataURL(t,r))):e(i.msToBlob(t))}))}:n.toBlob=function(e,t,n){var r=this;setTimeout((function(){e(s(r.toDataURL(t,n)))}))})),e.exports?e.exports=s:t.dataURLtoBlob=s}(window)}(u);var c=u.exports,d=function(e){return"undefined"!==typeof Blob&&(e instanceof Blob||"[object Blob]"===Object.prototype.toString.call(e))},f={strict:!0,checkOrientation:!0,retainExif:!1,maxWidth:1/0,maxHeight:1/0,minWidth:0,minHeight:0,width:void 0,height:void 0,resize:"none",quality:.8,mimeType:"auto",convertTypes:["image/png"],convertSize:5e6,beforeDraw:null,drew:null,success:null,error:null},h="undefined"!==typeof window&&"undefined"!==typeof window.document?window:{},p=function(e){return e>0&&e<1/0},g=Array.prototype.slice;function m(e){return Array.from?Array.from(e):g.call(e)}var y=/^image\/.+$/;function v(e){return y.test(e)}function b(e){var t=v(e)?e.substr(6):"";return"jpeg"===t&&(t="jpg"),".".concat(t)}var x=String.fromCharCode;function w(e,t,n){var r,i="";for(n+=t,r=t;r<n;r+=1)i+=x(e.getUint8(r));return i}var M=h.btoa;function S(e,t){for(var n=[],r=8192,i=new Uint8Array(e);i.length>0;)n.push(x.apply(null,m(i.subarray(0,r)))),i=i.subarray(r);return"data:".concat(t,";base64,").concat(M(n.join("")))}function j(e){var t,n=new DataView(e);try{var r,i,o;if(255===n.getUint8(0)&&216===n.getUint8(1))for(var a=n.byteLength,s=2;s+1<a;){if(255===n.getUint8(s)&&225===n.getUint8(s+1)){i=s;break}s+=1}if(i){var l=i+10;if("Exif"===w(n,i+4,4)){var u=n.getUint16(l);if(((r=18761===u)||19789===u)&&42===n.getUint16(l+2,r)){var c=n.getUint32(l+4,r);c>=8&&(o=l+c)}}}if(o){var d,f,h=n.getUint16(o,r);for(f=0;f<h;f+=1)if(d=o+12*f+2,274===n.getUint16(d,r)){d+=8,t=n.getUint16(d,r),n.setUint16(d,1,r);break}}}catch(p){t=1}return t}function N(e){var t=0,n=1,r=1;switch(e){case 2:n=-1;break;case 3:t=-180;break;case 4:r=-1;break;case 5:t=90,r=-1;break;case 6:t=90;break;case 7:t=90,n=-1;break;case 8:t=-90}return{rotate:t,scaleX:n,scaleY:r}}var C=/\.\d*(?:0|9){12}\d*$/;function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return C.test(e)?Math.round(e*t)/t:e}function T(e){var t=e.aspectRatio,n=e.height,r=e.width,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none",o=p(r),a=p(n);if(o&&a){var s=n*t;("contain"===i||"none"===i)&&s>r||"cover"===i&&s<r?n=r/t:r=n*t}else o?n=r/t:a&&(r=n*t);return{width:r,height:n}}function E(e){for(var t=m(new Uint8Array(e)),n=t.length,r=[],i=0;i+3<n;){var o=t[i],a=t[i+1];if(255===o&&218===a)break;if(255===o&&216===a)i+=2;else{var s=i+(256*t[i+2]+t[i+3])+2,l=t.slice(i,s);r.push(l),i=s}}return r.reduce((function(e,t){return 255===t[0]&&225===t[1]?e.concat(t):e}),[])}function D(e,t){var n=m(new Uint8Array(e));if(255!==n[2]||224!==n[3])return e;var r=256*n[4]+n[5],i=[255,216].concat(t,n.slice(4+r));return new Uint8Array(i)}var k=h.ArrayBuffer,O=h.FileReader,I=h.URL||h.webkitURL,_=/\.\w+$/,P=h.Compressor;return function(){function e(r,i){n(this,e),this.file=r,this.exif=[],this.image=new Image,this.options=t(t({},f),i),this.aborted=!1,this.result=null,this.init()}return i(e,[{key:"init",value:function(){var e=this,t=this.file,n=this.options;if(d(t)){var r=t.type;if(v(r))if(I&&O){k||(n.checkOrientation=!1,n.retainExif=!1);var i="image/jpeg"===r,o=i&&n.checkOrientation,s=i&&n.retainExif;if(!I||o||s){var l=new O;this.reader=l,l.onload=function(n){var i=n.target.result,l={},u=1;o&&(u=j(i))>1&&a(l,N(u)),s&&(e.exif=E(i)),l.url=o||s?!I||u>1?S(i,r):I.createObjectURL(t):i,e.load(l)},l.onabort=function(){e.fail(new Error("Aborted to read the image with FileReader."))},l.onerror=function(){e.fail(new Error("Failed to read the image with FileReader."))},l.onloadend=function(){e.reader=null},o||s?l.readAsArrayBuffer(t):l.readAsDataURL(t)}else this.load({url:I.createObjectURL(t)})}else this.fail(new Error("The current browser does not support image compression."));else this.fail(new Error("The first argument must be an image File or Blob object."))}else this.fail(new Error("The first argument must be a File or Blob object."))}},{key:"load",value:function(e){var n=this,r=this.file,i=this.image;i.onload=function(){n.draw(t(t({},e),{},{naturalWidth:i.naturalWidth,naturalHeight:i.naturalHeight}))},i.onabort=function(){n.fail(new Error("Aborted to load the image."))},i.onerror=function(){n.fail(new Error("Failed to load the image."))},h.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(h.navigator.userAgent)&&(i.crossOrigin="anonymous"),i.alt=r.name,i.src=e.url}},{key:"draw",value:function(e){var t=this,n=e.naturalWidth,r=e.naturalHeight,i=e.rotate,o=void 0===i?0:i,a=e.scaleX,s=void 0===a?1:a,l=e.scaleY,u=void 0===l?1:l,d=this.file,f=this.image,h=this.options,g=document.createElement("canvas"),m=g.getContext("2d"),y=Math.abs(o)%180===90,b=("contain"===h.resize||"cover"===h.resize)&&p(h.width)&&p(h.height),x=Math.max(h.maxWidth,0)||1/0,w=Math.max(h.maxHeight,0)||1/0,M=Math.max(h.minWidth,0)||0,j=Math.max(h.minHeight,0)||0,N=n/r,C=h.width,E=h.height;if(y){var k=[w,x];x=k[0],w=k[1];var I=[j,M];M=I[0],j=I[1];var _=[E,C];C=_[0],E=_[1]}b&&(N=C/E);var P=T({aspectRatio:N,width:x,height:w},"contain");x=P.width,w=P.height;var L=T({aspectRatio:N,width:M,height:j},"cover");if(M=L.width,j=L.height,b){var z=T({aspectRatio:N,width:C,height:E},h.resize);C=z.width,E=z.height}else{var R=T({aspectRatio:N,width:C,height:E}),F=R.width;C=void 0===F?n:F;var U=R.height;E=void 0===U?r:U}var B=-(C=Math.floor(A(Math.min(Math.max(C,M),x))))/2,V=-(E=Math.floor(A(Math.min(Math.max(E,j),w))))/2,Q=C,H=E,Y=[];if(b){var W=0,G=0,q=n,Z=r,K=T({aspectRatio:N,width:n,height:r},{contain:"cover",cover:"contain"}[h.resize]);q=K.width,Z=K.height,W=(n-q)/2,G=(r-Z)/2,Y.push(W,G,q,Z)}if(Y.push(B,V,Q,H),y){var X=[E,C];C=X[0],E=X[1]}g.width=C,g.height=E,v(h.mimeType)||(h.mimeType=d.type);var $="transparent";d.size>h.convertSize&&h.convertTypes.indexOf(h.mimeType)>=0&&(h.mimeType="image/jpeg");var J="image/jpeg"===h.mimeType;if(J&&($="#fff"),m.fillStyle=$,m.fillRect(0,0,C,E),h.beforeDraw&&h.beforeDraw.call(this,m,g),!this.aborted&&(m.save(),m.translate(C/2,E/2),m.rotate(o*Math.PI/180),m.scale(s,u),m.drawImage.apply(m,[f].concat(Y)),m.restore(),h.drew&&h.drew.call(this,m,g),!this.aborted)){var ee=function(e){if(!t.aborted){var i=function(e){return t.done({naturalWidth:n,naturalHeight:r,result:e})};if(e&&J&&h.retainExif&&t.exif&&t.exif.length>0){var o=function(e){return i(c(S(D(e,t.exif),h.mimeType)))};if(e.arrayBuffer)e.arrayBuffer().then(o).catch((function(){t.fail(new Error("Failed to read the compressed image with Blob.arrayBuffer()."))}));else{var a=new O;t.reader=a,a.onload=function(e){var t=e.target;o(t.result)},a.onabort=function(){t.fail(new Error("Aborted to read the compressed image with FileReader."))},a.onerror=function(){t.fail(new Error("Failed to read the compressed image with FileReader."))},a.onloadend=function(){t.reader=null},a.readAsArrayBuffer(e)}}else i(e)}};g.toBlob?g.toBlob(ee,h.mimeType,h.quality):ee(c(g.toDataURL(h.mimeType,h.quality)))}}},{key:"done",value:function(e){var t=e.naturalWidth,n=e.naturalHeight,r=e.result,i=this.file,o=this.image,a=this.options;if(I&&0===o.src.indexOf("blob:")&&I.revokeObjectURL(o.src),r)if(a.strict&&!a.retainExif&&r.size>i.size&&a.mimeType===i.type&&!(a.width>t||a.height>n||a.minWidth>t||a.minHeight>n||a.maxWidth<t||a.maxHeight<n))r=i;else{var s=new Date;r.lastModified=s.getTime(),r.lastModifiedDate=s,r.name=i.name,r.name&&r.type!==i.type&&(r.name=r.name.replace(_,b(r.type)))}else r=i;this.result=r,a.success&&a.success.call(this,r)}},{key:"fail",value:function(e){var t=this.options;if(!t.error)throw e;t.error.call(this,e)}},{key:"abort",value:function(){this.aborted||(this.aborted=!0,this.reader?this.reader.abort():this.image.complete?this.fail(new Error("The compression process has been aborted.")):(this.image.onload=null,this.image.onabort()))}}],[{key:"noConflict",value:function(){return window.Compressor=P,e}},{key:"setDefaults",value:function(e){a(f,e)}}]),e}()}()},231:(e,t,n)=>{"use strict";var r=n(1742),i=n(1634),o=n(377),a=n(1605);e.exports=function(e,t,n){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new o("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(r)r(e,t,{configurable:null===u&&d?d.configurable:!u,enumerable:null===s&&d?d.enumerable:!s,value:n,writable:null===l&&d?d.writable:!l});else{if(!c&&(s||l||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},1742:(e,t,n)=>{"use strict";var r=n(6707)("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(i){r=!1}e.exports=r},7783:e=>{"use strict";e.exports=EvalError},7909:e=>{"use strict";e.exports=Error},7264:e=>{"use strict";e.exports=RangeError},5364:e=>{"use strict";e.exports=ReferenceError},1634:e=>{"use strict";e.exports=SyntaxError},377:e=>{"use strict";e.exports=TypeError},8303:e=>{"use strict";e.exports=URIError},9351:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n};e.exports=function(e){var i=this;if("function"!==typeof i||"[object Function]"!==t.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n}(arguments,1),s=n(0,i.length-a.length),l=[],u=0;u<s;u++)l[u]="$"+u;if(o=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(l,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var t=i.apply(this,r(a,arguments));return Object(t)===t?t:this}return i.apply(e,r(a,arguments))})),i.prototype){var c=function(){};c.prototype=i.prototype,o.prototype=new c,c.prototype=null}return o}},2353:(e,t,n)=>{"use strict";var r=n(9351);e.exports=Function.prototype.bind||r},6707:(e,t,n)=>{"use strict";var r,i=n(7909),o=n(7783),a=n(7264),s=n(5364),l=n(1634),u=n(377),c=n(8303),d=Function,f=function(e){try{return d('"use strict"; return ('+e+").constructor;")()}catch(t){}},h=Object.getOwnPropertyDescriptor;if(h)try{h({},"")}catch(P){h=null}var p=function(){throw new u},g=h?function(){try{return p}catch(e){try{return h(arguments,"callee").get}catch(t){return p}}}():p,m=n(9121)(),y=n(4214)(),v=Object.getPrototypeOf||(y?function(e){return e.__proto__}:null),b={},x="undefined"!==typeof Uint8Array&&v?v(Uint8Array):r,w={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":m&&v?v([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":b,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":m&&v?v(v([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&m&&v?v((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&m&&v?v((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":m&&v?v(""[Symbol.iterator]()):r,"%Symbol%":m?Symbol:r,"%SyntaxError%":l,"%ThrowTypeError%":g,"%TypedArray%":x,"%TypeError%":u,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet};if(v)try{null.error}catch(P){var M=v(v(P));w["%Error.prototype%"]=M}var S=function e(t){var n;if("%AsyncFunction%"===t)n=f("async function () {}");else if("%GeneratorFunction%"===t)n=f("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=f("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&v&&(n=v(i.prototype))}return w[t]=n,n},j={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},N=n(2353),C=n(3607),A=N.call(Function.call,Array.prototype.concat),T=N.call(Function.apply,Array.prototype.splice),E=N.call(Function.call,String.prototype.replace),D=N.call(Function.call,String.prototype.slice),k=N.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,I=/\\(\\)?/g,_=function(e,t){var n,r=e;if(C(j,r)&&(r="%"+(n=j[r])[0]+"%"),C(w,r)){var i=w[r];if(i===b&&(i=S(r)),"undefined"===typeof i&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===k(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=D(e,0,1),n=D(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var r=[];return E(e,O,(function(e,t,n,i){r[r.length]=n?E(i,I,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=_("%"+r+"%",t),o=i.name,a=i.value,s=!1,c=i.alias;c&&(r=c[0],T(n,A([0,1],c)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],g=D(p,0,1),m=D(p,-1);if(('"'===g||"'"===g||"`"===g||'"'===m||"'"===m||"`"===m)&&g!==m)throw new l("property names with quotes must have matching quotes");if("constructor"!==p&&f||(s=!0),C(w,o="%"+(r+="."+p)+"%"))a=w[o];else if(null!=a){if(!(p in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(h&&d+1>=n.length){var y=h(a,p);a=(f=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[p]}else f=C(a,p),a=a[p];f&&!s&&(w[o]=a)}}return a}},1605:(e,t,n)=>{"use strict";var r=n(6707)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(i){r=null}e.exports=r},3458:(e,t,n)=>{"use strict";var r=n(1742),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},4214:e=>{"use strict";var t={__proto__:null,foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof n)}},9121:(e,t,n)=>{"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n(1443);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},1443:e=>{"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},3607:(e,t,n)=>{"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(2353);e.exports=o.call(r,i)},2592:(e,t,n)=>{"use strict";var r=n(4665),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={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 l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),g=l(n),m=0;m<a.length;++m){var y=a[m];if(!o[y]&&(!r||!r[y])&&(!g||!g[y])&&(!s||!s[y])){var v=f(n,y);try{u(t,y,v)}catch(b){}}}}return t}},5370:function(e,t){var n;!function(t,n){"use strict";"object"===typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!==typeof window?window:this,(function(r,i){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,l=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},u=o.push,c=o.indexOf,d={},f=d.toString,h=d.hasOwnProperty,p=h.toString,g=p.call(Object),m={},y=function(e){return"function"===typeof e&&"number"!==typeof e.nodeType&&"function"!==typeof e.item},v=function(e){return null!=e&&e===e.window},b=r.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,i,o=(n=n||b).createElement("script");if(o.text=e,t)for(r in x)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function M(e){return null==e?e+"":"object"===typeof e||"function"===typeof e?d[f.call(e)]||"object":typeof e}var S="3.7.1",j=/HTML$/i,N=function(e,t){return new N.fn.init(e,t)};function C(e){var t=!!e&&"length"in e&&e.length,n=M(e);return!y(e)&&!v(e)&&("array"===n||0===t||"number"===typeof t&&t>0&&t-1 in e)}function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}N.fn=N.prototype={jquery:S,constructor:N,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=N.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return N.each(this,e)},map:function(e){return this.pushStack(N.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(N.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(N.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:o.sort,splice:o.splice},N.extend=N.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"===typeof a&&(u=a,a=arguments[s]||{},s++),"object"===typeof a||y(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(u&&r&&(N.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||N.isPlainObject(n)?n:{},i=!1,a[t]=N.extend(u,o,r)):void 0!==r&&(a[t]=r));return a},N.extend({expando:"jQuery"+(S+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==f.call(e))&&(!(t=a(e))||"function"===typeof(n=h.call(t,"constructor")&&t.constructor)&&p.call(n)===g)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(C(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)for(;t=e[r++];)n+=N.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(C(Object(e))?N.merge(n,"string"===typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:c.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!j.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(C(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return l(a)},guid:1,support:m}),"function"===typeof Symbol&&(N.fn[Symbol.iterator]=o[Symbol.iterator]),N.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var T=o.pop,E=o.sort,D=o.splice,k="[\\x20\\t\\r\\n\\f]",O=new RegExp("^"+k+"+|((?:^|[^\\\\])(?:\\\\.)*)"+k+"+$","g");N.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var I=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function _(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}N.escapeSelector=function(e){return(e+"").replace(I,_)};var P=b,L=u;!function(){var e,t,n,i,a,l,u,d,f,p,g=L,y=N.expando,v=0,b=0,x=ee(),w=ee(),M=ee(),S=ee(),j=function(e,t){return e===t&&(a=!0),0},C="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",I="(?:\\\\[\\da-fA-F]{1,6}"+k+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",_="\\["+k+"*("+I+")(?:"+k+"*([*^$|!~]?=)"+k+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+k+"*\\]",z=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+_+")*)|.*)\\)|)",R=new RegExp(k+"+","g"),F=new RegExp("^"+k+"*,"+k+"*"),U=new RegExp("^"+k+"*([>+~]|"+k+")"+k+"*"),B=new RegExp(k+"|>"),V=new RegExp(z),Q=new RegExp("^"+I+"$"),H={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+_),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+k+"*(even|odd|(([+-]|)(\\d*)n|)"+k+"*(?:([+-]|)"+k+"*(\\d+)|))"+k+"*\\)|)","i"),bool:new RegExp("^(?:"+C+")$","i"),needsContext:new RegExp("^"+k+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+k+"*((?:-\\d)?\\d*)"+k+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,W=/^h\d$/i,G=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,q=/[+~]/,Z=new RegExp("\\\\[\\da-fA-F]{1,6}"+k+"?|\\\\([^\\r\\n\\f])","g"),K=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},X=function(){le()},$=fe((function(e){return!0===e.disabled&&A(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{g.apply(o=s.call(P.childNodes),P.childNodes),o[P.childNodes.length].nodeType}catch(be){g={apply:function(e,t){L.apply(e,s.call(t))},call:function(e){L.apply(e,s.call(arguments,1))}}}function J(e,t,n,r){var i,o,a,s,u,c,h,p=t&&t.ownerDocument,v=t?t.nodeType:9;if(n=n||[],"string"!==typeof e||!e||1!==v&&9!==v&&11!==v)return n;if(!r&&(le(t),t=t||l,d)){if(11!==v&&(u=G.exec(e)))if(i=u[1]){if(9===v){if(!(a=t.getElementById(i)))return n;if(a.id===i)return g.call(n,a),n}else if(p&&(a=p.getElementById(i))&&J.contains(t,a)&&a.id===i)return g.call(n,a),n}else{if(u[2])return g.apply(n,t.getElementsByTagName(e)),n;if((i=u[3])&&t.getElementsByClassName)return g.apply(n,t.getElementsByClassName(i)),n}if(!S[e+" "]&&(!f||!f.test(e))){if(h=e,p=t,1===v&&(B.test(e)||U.test(e))){for((p=q.test(e)&&se(t.parentNode)||t)==t&&m.scope||((s=t.getAttribute("id"))?s=N.escapeSelector(s):t.setAttribute("id",s=y)),o=(c=ce(e)).length;o--;)c[o]=(s?"#"+s:":scope")+" "+de(c[o]);h=c.join(",")}try{return g.apply(n,p.querySelectorAll(h)),n}catch(b){S(e,!0)}finally{s===y&&t.removeAttribute("id")}}}return ve(e.replace(O,"$1"),t,n,r)}function ee(){var e=[];return function n(r,i){return e.push(r+" ")>t.cacheLength&&delete n[e.shift()],n[r+" "]=i}}function te(e){return e[y]=!0,e}function ne(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(be){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function re(e){return function(t){return A(t,"input")&&t.type===e}}function ie(e){return function(t){return(A(t,"input")||A(t,"button"))&&t.type===e}}function oe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&$(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ae(e){return te((function(t){return t=+t,te((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function se(e){return e&&"undefined"!==typeof e.getElementsByTagName&&e}function le(e){var n,r=e?e.ownerDocument||e:P;return r!=l&&9===r.nodeType&&r.documentElement?(u=(l=r).documentElement,d=!N.isXMLDoc(l),p=u.matches||u.webkitMatchesSelector||u.msMatchesSelector,u.msMatchesSelector&&P!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",X),m.getById=ne((function(e){return u.appendChild(e).id=N.expando,!l.getElementsByName||!l.getElementsByName(N.expando).length})),m.disconnectedMatch=ne((function(e){return p.call(e,"*")})),m.scope=ne((function(){return l.querySelectorAll(":scope")})),m.cssHas=ne((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(be){return!0}})),m.getById?(t.filter.ID=function(e){var t=e.replace(Z,K);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if("undefined"!==typeof t.getElementById&&d){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(Z,K);return function(e){var n="undefined"!==typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},t.find.ID=function(e,t){if("undefined"!==typeof t.getElementById&&d){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),t.find.TAG=function(e,t){return"undefined"!==typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if("undefined"!==typeof t.getElementsByClassName&&d)return t.getElementsByClassName(e)},f=[],ne((function(e){var t;u.appendChild(e).innerHTML="<a id='"+y+"' href='' disabled='disabled'></a><select id='"+y+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||f.push("\\["+k+"*(?:value|"+C+")"),e.querySelectorAll("[id~="+y+"-]").length||f.push("~="),e.querySelectorAll("a#"+y+"+*").length||f.push(".#.+[+~]"),e.querySelectorAll(":checked").length||f.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),u.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||f.push("\\["+k+"*name"+k+"*="+k+"*(?:''|\"\")")})),m.cssHas||f.push(":has"),f=f.length&&new RegExp(f.join("|")),j=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!m.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument==P&&J.contains(P,e)?-1:t===l||t.ownerDocument==P&&J.contains(P,t)?1:i?c.call(i,e)-c.call(i,t):0:4&n?-1:1)},l):l}for(e in J.matches=function(e,t){return J(e,null,null,t)},J.matchesSelector=function(e,t){if(le(e),d&&!S[t+" "]&&(!f||!f.test(t)))try{var n=p.call(e,t);if(n||m.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(be){S(t,!0)}return J(t,l,null,[e]).length>0},J.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),N.contains(e,t)},J.attr=function(e,n){(e.ownerDocument||e)!=l&&le(e);var r=t.attrHandle[n.toLowerCase()],i=r&&h.call(t.attrHandle,n.toLowerCase())?r(e,n,!d):void 0;return void 0!==i?i:e.getAttribute(n)},J.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},N.uniqueSort=function(e){var t,n=[],r=0,o=0;if(a=!m.sortStable,i=!m.sortStable&&s.call(e,0),E.call(e,j),a){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)D.call(e,n[r],1)}return i=null,e},N.fn.uniqueSort=function(){return this.pushStack(N.uniqueSort(s.apply(this)))},t=N.expr={cacheLength:50,createPseudo:te,match:H,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Z,K),e[3]=(e[3]||e[4]||e[5]||"").replace(Z,K),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||J.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&J.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return H.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&V.test(n)&&(t=ce(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Z,K).toLowerCase();return"*"===e?function(){return!0}:function(e){return A(e,t)}},CLASS:function(e){var t=x[e+" "];return t||(t=new RegExp("(^|"+k+")"+e+"("+k+"|$)"))&&x(e,(function(e){return t.test("string"===typeof e.className&&e.className||"undefined"!==typeof e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=J.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(R," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,d,f,h,p=o!==a?"nextSibling":"previousSibling",g=t.parentNode,m=s&&t.nodeName.toLowerCase(),b=!l&&!s,x=!1;if(g){if(o){for(;p;){for(d=t;d=d[p];)if(s?A(d,m):1===d.nodeType)return!1;h=p="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&b){for(x=(f=(u=(c=g[y]||(g[y]={}))[e]||[])[0]===v&&u[1])&&u[2],d=f&&g.childNodes[f];d=++f&&d&&d[p]||(x=f=0)||h.pop();)if(1===d.nodeType&&++x&&d===t){c[e]=[v,f,x];break}}else if(b&&(x=f=(u=(c=t[y]||(t[y]={}))[e]||[])[0]===v&&u[1]),!1===x)for(;(d=++f&&d&&d[p]||(x=f=0)||h.pop())&&(!(s?A(d,m):1===d.nodeType)||!++x||(b&&((c=d[y]||(d[y]={}))[e]=[v,x]),d!==t)););return(x-=i)===r||x%r===0&&x/r>=0}}},PSEUDO:function(e,n){var r,i=t.pseudos[e]||t.setFilters[e.toLowerCase()]||J.error("unsupported pseudo: "+e);return i[y]?i(n):i.length>1?(r=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,t){for(var r,o=i(e,n),a=o.length;a--;)e[r=c.call(e,o[a])]=!(t[r]=o[a])})):function(e){return i(e,0,r)}):i}},pseudos:{not:te((function(e){var t=[],n=[],r=ye(e.replace(O,"$1"));return r[y]?te((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:te((function(e){return function(t){return J(e,t).length>0}})),contains:te((function(e){return e=e.replace(Z,K),function(t){return(t.textContent||N.text(t)).indexOf(e)>-1}})),lang:te((function(e){return Q.test(e||"")||J.error("unsupported lang: "+e),e=e.replace(Z,K).toLowerCase(),function(t){var n;do{if(n=d?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=r.location&&r.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===u},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:oe(!1),disabled:oe(!0),checked:function(e){return A(e,"input")&&!!e.checked||A(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return W.test(e.nodeName)},input:function(e){return Y.test(e.nodeName)},button:function(e){return A(e,"input")&&"button"===e.type||A(e,"button")},text:function(e){var t;return A(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ae((function(){return[0]})),last:ae((function(e,t){return[t-1]})),eq:ae((function(e,t,n){return[n<0?n+t:n]})),even:ae((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ae((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ae((function(e,t,n){var r;for(r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:ae((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},t.pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=re(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=ie(e);function ue(){}function ce(e,n){var r,i,o,a,s,l,u,c=w[e+" "];if(c)return n?0:c.slice(0);for(s=e,l=[],u=t.preFilter;s;){for(a in r&&!(i=F.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),r=!1,(i=U.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(O," ")}),s=s.slice(r.length)),t.filter)!(i=H[a].exec(s))||u[a]&&!(i=u[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?J.error(e):w(e,l).slice(0)}function de(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function fe(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=b++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,l){var u,c,d=[v,s];if(l){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(c=t[y]||(t[y]={}),i&&A(t,i))t=t[r]||t;else{if((u=c[o])&&u[0]===v&&u[1]===s)return d[2]=u[2];if(c[o]=d,d[2]=e(t,n,l))return!0}return!1}}function he(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function pe(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),u&&t.push(s)));return a}function ge(e,t,n,r,i,o){return r&&!r[y]&&(r=ge(r)),i&&!i[y]&&(i=ge(i,o)),te((function(o,a,s,l){var u,d,f,h,p=[],m=[],y=a.length,v=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)J(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),b=!e||!o&&t?v:pe(v,p,e,s,l);if(n?n(b,h=i||(o?e:y||r)?[]:a,s,l):h=b,r)for(u=pe(h,m),r(u,[],s,l),d=u.length;d--;)(f=u[d])&&(h[m[d]]=!(b[m[d]]=f));if(o){if(i||e){if(i){for(u=[],d=h.length;d--;)(f=h[d])&&u.push(b[d]=f);i(null,h=[],u,l)}for(d=h.length;d--;)(f=h[d])&&(u=i?c.call(o,f):p[d])>-1&&(o[u]=!(a[u]=f))}}else h=pe(h===a?h.splice(y,h.length):h),i?i(null,a,h,l):g.apply(a,h)}))}function me(e){for(var r,i,o,a=e.length,s=t.relative[e[0].type],l=s||t.relative[" "],u=s?1:0,d=fe((function(e){return e===r}),l,!0),f=fe((function(e){return c.call(r,e)>-1}),l,!0),h=[function(e,t,i){var o=!s&&(i||t!=n)||((r=t).nodeType?d(e,t,i):f(e,t,i));return r=null,o}];u<a;u++)if(i=t.relative[e[u].type])h=[fe(he(h),i)];else{if((i=t.filter[e[u].type].apply(null,e[u].matches))[y]){for(o=++u;o<a&&!t.relative[e[o].type];o++);return ge(u>1&&he(h),u>1&&de(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(O,"$1"),i,u<o&&me(e.slice(u,o)),o<a&&me(e=e.slice(o)),o<a&&de(e))}h.push(i)}return he(h)}function ye(e,r){var i,o=[],a=[],s=M[e+" "];if(!s){for(r||(r=ce(e)),i=r.length;i--;)(s=me(r[i]))[y]?o.push(s):a.push(s);s=M(e,function(e,r){var i=r.length>0,o=e.length>0,a=function(a,s,u,c,f){var h,p,m,y=0,b="0",x=a&&[],w=[],M=n,S=a||o&&t.find.TAG("*",f),j=v+=null==M?1:Math.random()||.1,C=S.length;for(f&&(n=s==l||s||f);b!==C&&null!=(h=S[b]);b++){if(o&&h){for(p=0,s||h.ownerDocument==l||(le(h),u=!d);m=e[p++];)if(m(h,s||l,u)){g.call(c,h);break}f&&(v=j)}i&&((h=!m&&h)&&y--,a&&x.push(h))}if(y+=b,i&&b!==y){for(p=0;m=r[p++];)m(x,w,s,u);if(a){if(y>0)for(;b--;)x[b]||w[b]||(w[b]=T.call(c));w=pe(w)}g.apply(c,w),f&&!a&&w.length>0&&y+r.length>1&&N.uniqueSort(c)}return f&&(v=j,n=M),x};return i?te(a):a}(a,o)),s.selector=e}return s}function ve(e,n,r,i){var o,a,s,l,u,c="function"===typeof e&&e,f=!i&&ce(e=c.selector||e);if(r=r||[],1===f.length){if((a=f[0]=f[0].slice(0)).length>2&&"ID"===(s=a[0]).type&&9===n.nodeType&&d&&t.relative[a[1].type]){if(!(n=(t.find.ID(s.matches[0].replace(Z,K),n)||[])[0]))return r;c&&(n=n.parentNode),e=e.slice(a.shift().value.length)}for(o=H.needsContext.test(e)?0:a.length;o--&&(s=a[o],!t.relative[l=s.type]);)if((u=t.find[l])&&(i=u(s.matches[0].replace(Z,K),q.test(a[0].type)&&se(n.parentNode)||n))){if(a.splice(o,1),!(e=i.length&&de(a)))return g.apply(r,i),r;break}}return(c||ye(e,f))(i,n,!d,r,!n||q.test(e)&&se(n.parentNode)||n),r}ue.prototype=t.filters=t.pseudos,t.setFilters=new ue,m.sortStable=y.split("").sort(j).join("")===y,le(),m.sortDetached=ne((function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))})),N.find=J,N.expr[":"]=N.expr.pseudos,N.unique=N.uniqueSort,J.compile=ye,J.select=ve,J.setDocument=le,J.tokenize=ce,J.escape=N.escapeSelector,J.getText=N.text,J.isXML=N.isXMLDoc,J.selectors=N.expr,J.support=N.support,J.uniqueSort=N.uniqueSort}();var z=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&N(e).is(n))break;r.push(e)}return r},R=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},F=N.expr.match.needsContext,U=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function B(e,t,n){return y(t)?N.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?N.grep(e,(function(e){return e===t!==n})):"string"!==typeof t?N.grep(e,(function(e){return c.call(t,e)>-1!==n})):N.filter(t,e,n)}N.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?N.find.matchesSelector(r,e)?[r]:[]:N.find.matches(e,N.grep(t,(function(e){return 1===e.nodeType})))},N.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!==typeof e)return this.pushStack(N(e).filter((function(){for(t=0;t<r;t++)if(N.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)N.find(e,i[t],n);return r>1?N.uniqueSort(n):n},filter:function(e){return this.pushStack(B(this,e||[],!1))},not:function(e){return this.pushStack(B(this,e||[],!0))},is:function(e){return!!B(this,"string"===typeof e&&F.test(e)?N(e):e||[],!1).length}});var V,Q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(N.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||V,"string"===typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof N?t[0]:t,N.merge(this,N.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),U.test(r[1])&&N.isPlainObject(t))for(r in t)y(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=b.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(N):N.makeArray(e,this)}).prototype=N.fn,V=N(b);var H=/^(?:parents|prev(?:Until|All))/,Y={children:!0,contents:!0,next:!0,prev:!0};function W(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}N.fn.extend({has:function(e){var t=N(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(N.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!==typeof e&&N(e);if(!F.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&N.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?N.uniqueSort(o):o)},index:function(e){return e?"string"===typeof e?c.call(N(e),this[0]):c.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(N.uniqueSort(N.merge(this.get(),N(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),N.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return z(e,"parentNode")},parentsUntil:function(e,t,n){return z(e,"parentNode",n)},next:function(e){return W(e,"nextSibling")},prev:function(e){return W(e,"previousSibling")},nextAll:function(e){return z(e,"nextSibling")},prevAll:function(e){return z(e,"previousSibling")},nextUntil:function(e,t,n){return z(e,"nextSibling",n)},prevUntil:function(e,t,n){return z(e,"previousSibling",n)},siblings:function(e){return R((e.parentNode||{}).firstChild,e)},children:function(e){return R(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),N.merge([],e.childNodes))}},(function(e,t){N.fn[e]=function(n,r){var i=N.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"===typeof r&&(i=N.filter(r,i)),this.length>1&&(Y[e]||N.uniqueSort(i),H.test(e)&&i.reverse()),this.pushStack(i)}}));var G=/[^\x20\t\r\n\f]+/g;function q(e){return e}function Z(e){throw e}function K(e,t,n,r){var i;try{e&&y(i=e.promise)?i.call(e).done(t).fail(n):e&&y(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}N.Callbacks=function(e){e="string"===typeof e?function(e){var t={};return N.each(e.match(G)||[],(function(e,n){t[n]=!0})),t}(e):N.extend({},e);var t,n,r,i,o=[],a=[],s=-1,l=function(){for(i=i||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},u={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){N.each(n,(function(n,r){y(r)?e.unique&&u.has(r)||o.push(r):r&&r.length&&"string"!==M(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return N.each(arguments,(function(e,t){for(var n;(n=N.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--})),this},has:function(e){return e?N.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},N.extend({Deferred:function(e){var t=[["notify","progress",N.Callbacks("memory"),N.Callbacks("memory"),2],["resolve","done",N.Callbacks("once memory"),N.Callbacks("once memory"),0,"resolved"],["reject","fail",N.Callbacks("once memory"),N.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return N.Deferred((function(n){N.each(t,(function(t,r){var i=y(e[r[4]])&&e[r[4]];o[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,i){var o=0;function a(e,t,n,i){return function(){var s=this,l=arguments,u=function(){var r,u;if(!(e<o)){if((r=n.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");u=r&&("object"===typeof r||"function"===typeof r)&&r.then,y(u)?i?u.call(r,a(o,t,q,i),a(o,t,Z,i)):(o++,u.call(r,a(o,t,q,i),a(o,t,Z,i),a(o,t,q,t.notifyWith))):(n!==q&&(s=void 0,l=[r]),(i||t.resolveWith)(s,l))}},c=i?u:function(){try{u()}catch(r){N.Deferred.exceptionHook&&N.Deferred.exceptionHook(r,c.error),e+1>=o&&(n!==Z&&(s=void 0,l=[r]),t.rejectWith(s,l))}};e?c():(N.Deferred.getErrorHook?c.error=N.Deferred.getErrorHook():N.Deferred.getStackHook&&(c.error=N.Deferred.getStackHook()),r.setTimeout(c))}}return N.Deferred((function(r){t[0][3].add(a(0,r,y(i)?i:q,r.notifyWith)),t[1][3].add(a(0,r,y(e)?e:q)),t[2][3].add(a(0,r,y(n)?n:Z))})).promise()},promise:function(e){return null!=e?N.extend(e,i):i}},o={};return N.each(t,(function(e,r){var a=r[2],s=r[5];i[r[1]]=a.add,s&&a.add((function(){n=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(r[3].fire),o[r[0]]=function(){return o[r[0]+"With"](this===o?void 0:this,arguments),this},o[r[0]+"With"]=a.fireWith})),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=s.call(arguments),o=N.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?s.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(K(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||y(i[n]&&i[n].then)))return o.then();for(;n--;)K(i[n],a(n),o.reject);return o.promise()}});var X=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;N.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&X.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},N.readyException=function(e){r.setTimeout((function(){throw e}))};var $=N.Deferred();function J(){b.removeEventListener("DOMContentLoaded",J),r.removeEventListener("load",J),N.ready()}N.fn.ready=function(e){return $.then(e).catch((function(e){N.readyException(e)})),this},N.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--N.readyWait:N.isReady)||(N.isReady=!0,!0!==e&&--N.readyWait>0||$.resolveWith(b,[N]))}}),N.ready.then=$.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?r.setTimeout(N.ready):(b.addEventListener("DOMContentLoaded",J),r.addEventListener("load",J));var ee=function(e,t,n,r,i,o,a){var s=0,l=e.length,u=null==n;if("object"===M(n))for(s in i=!0,n)ee(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,y(r)||(a=!0),u&&(a?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(N(e),n)})),t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:u?t.call(e):l?t(e[0],n):o},te=/^-ms-/,ne=/-([a-z])/g;function re(e,t){return t.toUpperCase()}function ie(e){return e.replace(te,"ms-").replace(ne,re)}var oe=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function ae(){this.expando=N.expando+ae.uid++}ae.uid=1,ae.prototype={cache:function(e){var t=e[this.expando];return t||(t={},oe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"===typeof t)i[ie(t)]=n;else for(r in t)i[ie(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][ie(t)]},access:function(e,t,n){return void 0===t||t&&"string"===typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(ie):(t=ie(t))in r?[t]:t.match(G)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||N.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!N.isEmptyObject(t)}};var se=new ae,le=new ae,ue=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ce=/[A-Z]/g;function de(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ce,"-$&").toLowerCase(),"string"===typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ue.test(e)?JSON.parse(e):e)}(n)}catch(i){}le.set(e,t,n)}else n=void 0;return n}N.extend({hasData:function(e){return le.hasData(e)||se.hasData(e)},data:function(e,t,n){return le.access(e,t,n)},removeData:function(e,t){le.remove(e,t)},_data:function(e,t,n){return se.access(e,t,n)},_removeData:function(e,t){se.remove(e,t)}}),N.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=le.get(o),1===o.nodeType&&!se.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=ie(r.slice(5)),de(o,r,i[r]));se.set(o,"hasDataAttrs",!0)}return i}return"object"===typeof e?this.each((function(){le.set(this,e)})):ee(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=le.get(o,e))||void 0!==(n=de(o,e))?n:void 0;this.each((function(){le.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){le.remove(this,e)}))}}),N.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=se.get(e,t),n&&(!r||Array.isArray(n)?r=se.access(e,t,N.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=N.queue(e,t),r=n.length,i=n.shift(),o=N._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){N.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return se.get(e,n)||se.access(e,n,{empty:N.Callbacks("once memory").add((function(){se.remove(e,[t+"queue",n])}))})}}),N.fn.extend({queue:function(e,t){var n=2;return"string"!==typeof e&&(t=e,e="fx",n--),arguments.length<n?N.queue(this[0],e):void 0===t?this:this.each((function(){var n=N.queue(this,e,t);N._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&N.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){N.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=N.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!==typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=se.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var fe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,he=new RegExp("^(?:([+-])=|)("+fe+")([a-z%]*)$","i"),pe=["Top","Right","Bottom","Left"],ge=b.documentElement,me=function(e){return N.contains(e.ownerDocument,e)},ye={composed:!0};ge.getRootNode&&(me=function(e){return N.contains(e.ownerDocument,e)||e.getRootNode(ye)===e.ownerDocument});var ve=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&me(e)&&"none"===N.css(e,"display")};function be(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return N.css(e,t,"")},l=s(),u=n&&n[3]||(N.cssNumber[t]?"":"px"),c=e.nodeType&&(N.cssNumber[t]||"px"!==u&&+l)&&he.exec(N.css(e,t));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;a--;)N.style(e,t,c+u),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),c/=o;c*=2,N.style(e,t,c+u),n=n||[]}return n&&(c=+c||+l||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=c,r.end=i)),i}var xe={};function we(e){var t,n=e.ownerDocument,r=e.nodeName,i=xe[r];return i||(t=n.body.appendChild(n.createElement(r)),i=N.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),xe[r]=i,i)}function Me(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=se.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&ve(r)&&(i[o]=we(r))):"none"!==n&&(i[o]="none",se.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}N.fn.extend({show:function(){return Me(this,!0)},hide:function(){return Me(this)},toggle:function(e){return"boolean"===typeof e?e?this.show():this.hide():this.each((function(){ve(this)?N(this).show():N(this).hide()}))}});var Se=/^(?:checkbox|radio)$/i,je=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ne=/^$|^module$|\/(?:java|ecma)script/i;!function(){var e=b.createDocumentFragment().appendChild(b.createElement("div")),t=b.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),m.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,e.innerHTML="<option></option>",m.option=!!e.lastChild}();var Ce={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Ae(e,t){var n;return n="undefined"!==typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!==typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?N.merge([e],n):n}function Te(e,t){for(var n=0,r=e.length;n<r;n++)se.set(e[n],"globalEval",!t||se.get(t[n],"globalEval"))}Ce.tbody=Ce.tfoot=Ce.colgroup=Ce.caption=Ce.thead,Ce.th=Ce.td,m.option||(Ce.optgroup=Ce.option=[1,"<select multiple='multiple'>","</select>"]);var Ee=/<|&#?\w+;/;function De(e,t,n,r,i){for(var o,a,s,l,u,c,d=t.createDocumentFragment(),f=[],h=0,p=e.length;h<p;h++)if((o=e[h])||0===o)if("object"===M(o))N.merge(f,o.nodeType?[o]:o);else if(Ee.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(je.exec(o)||["",""])[1].toLowerCase(),l=Ce[s]||Ce._default,a.innerHTML=l[1]+N.htmlPrefilter(o)+l[2],c=l[0];c--;)a=a.lastChild;N.merge(f,a.childNodes),(a=d.firstChild).textContent=""}else f.push(t.createTextNode(o));for(d.textContent="",h=0;o=f[h++];)if(r&&N.inArray(o,r)>-1)i&&i.push(o);else if(u=me(o),a=Ae(d.appendChild(o),"script"),u&&Te(a),n)for(c=0;o=a[c++];)Ne.test(o.type||"")&&n.push(o);return d}var ke=/^([^.]*)(?:\.(.+)|)/;function Oe(){return!0}function Ie(){return!1}function _e(e,t,n,r,i,o){var a,s;if("object"===typeof t){for(s in"string"!==typeof n&&(r=r||n,n=void 0),t)_e(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"===typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Ie;else if(!i)return e;return 1===o&&(a=i,i=function(e){return N().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=N.guid++)),e.each((function(){N.event.add(this,t,i,r,n)}))}function Pe(e,t,n){n?(se.set(e,t,!1),N.event.add(e,t,{namespace:!1,handler:function(e){var n,r=se.get(this,t);if(1&e.isTrigger&&this[t]){if(r)(N.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),se.set(this,t,r),this[t](),n=se.get(this,t),se.set(this,t,!1),r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else r&&(se.set(this,t,N.event.trigger(r[0],r.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Oe)}})):void 0===se.get(e,t)&&N.event.add(e,t,Oe)}N.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,u,c,d,f,h,p,g,m=se.get(e);if(oe(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&N.find.matchesSelector(ge,i),n.guid||(n.guid=N.guid++),(l=m.events)||(l=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(t){return"undefined"!==typeof N&&N.event.triggered!==t.type?N.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(G)||[""]).length;u--;)h=g=(s=ke.exec(t[u])||[])[1],p=(s[2]||"").split(".").sort(),h&&(d=N.event.special[h]||{},h=(i?d.delegateType:d.bindType)||h,d=N.event.special[h]||{},c=N.extend({type:h,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&N.expr.match.needsContext.test(i),namespace:p.join(".")},o),(f=l[h])||((f=l[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,p,a)||e.addEventListener&&e.addEventListener(h,a)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,c):f.push(c),N.event.global[h]=!0)},remove:function(e,t,n,r,i){var o,a,s,l,u,c,d,f,h,p,g,m=se.hasData(e)&&se.get(e);if(m&&(l=m.events)){for(u=(t=(t||"").match(G)||[""]).length;u--;)if(h=g=(s=ke.exec(t[u])||[])[1],p=(s[2]||"").split(".").sort(),h){for(d=N.event.special[h]||{},f=l[h=(r?d.delegateType:d.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=f.length;o--;)c=f[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(f.splice(o,1),c.selector&&f.delegateCount--,d.remove&&d.remove.call(e,c));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,p,m.handle)||N.removeEvent(e,h,m.handle),delete l[h])}else for(h in l)N.event.remove(e,h+t[u],n,r,!0);N.isEmptyObject(l)&&se.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),l=N.event.fix(e),u=(se.get(this,"events")||Object.create(null))[l.type]||[],c=N.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(a=N.event.handlers.call(this,l,u),t=0;(i=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(r=((N.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,i,o,a,s=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?N(i,this).index(u)>-1:N.find(i,this,null,[u]).length),a[i]&&o.push(r);o.length&&s.push({elem:u,handlers:o})}return u=this,l<t.length&&s.push({elem:u,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(N.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[N.expando]?e:new N.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Se.test(t.type)&&t.click&&A(t,"input")&&Pe(t,"click",!0),!1},trigger:function(e){var t=this||e;return Se.test(t.type)&&t.click&&A(t,"input")&&Pe(t,"click"),!0},_default:function(e){var t=e.target;return Se.test(t.type)&&t.click&&A(t,"input")&&se.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},N.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},N.Event=function(e,t){if(!(this instanceof N.Event))return new N.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Oe:Ie,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&N.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[N.expando]=!0},N.Event.prototype={constructor:N.Event,isDefaultPrevented:Ie,isPropagationStopped:Ie,isImmediatePropagationStopped:Ie,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Oe,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Oe,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Oe,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},N.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},N.event.addProp),N.each({focus:"focusin",blur:"focusout"},(function(e,t){function n(e){if(b.documentMode){var n=se.get(this,"handle"),r=N.event.fix(e);r.type="focusin"===e.type?"focus":"blur",r.isSimulated=!0,n(e),r.target===r.currentTarget&&n(r)}else N.event.simulate(t,e.target,N.event.fix(e))}N.event.special[e]={setup:function(){var r;if(Pe(this,e,!0),!b.documentMode)return!1;(r=se.get(this,t))||this.addEventListener(t,n),se.set(this,t,(r||0)+1)},trigger:function(){return Pe(this,e),!0},teardown:function(){var e;if(!b.documentMode)return!1;(e=se.get(this,t)-1)?se.set(this,t,e):(this.removeEventListener(t,n),se.remove(this,t))},_default:function(t){return se.get(t.target,e)},delegateType:t},N.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=b.documentMode?this:r,o=se.get(i,t);o||(b.documentMode?this.addEventListener(t,n):r.addEventListener(e,n,!0)),se.set(i,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=b.documentMode?this:r,o=se.get(i,t)-1;o?se.set(i,t,o):(b.documentMode?this.removeEventListener(t,n):r.removeEventListener(e,n,!0),se.remove(i,t))}}})),N.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){N.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||N.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}})),N.fn.extend({on:function(e,t,n,r){return _e(this,e,t,n,r)},one:function(e,t,n,r){return _e(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,N(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"===typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!==typeof t||(n=t,t=void 0),!1===n&&(n=Ie),this.each((function(){N.event.remove(this,e,n,t)}))}});var Le=/<script|<style|<link/i,ze=/checked\s*(?:[^=]|=\s*.checked.)/i,Re=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Fe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&N(e).children("tbody")[0]||e}function Ue(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Be(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ve(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(se.hasData(e)&&(s=se.get(e).events))for(i in se.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)N.event.add(t,i,s[i][n]);le.hasData(e)&&(o=le.access(e),a=N.extend({},o),le.set(t,a))}}function Qe(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Se.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function He(e,t,n,r){t=l(t);var i,o,a,s,u,c,d=0,f=e.length,h=f-1,p=t[0],g=y(p);if(g||f>1&&"string"===typeof p&&!m.checkClone&&ze.test(p))return e.each((function(i){var o=e.eq(i);g&&(t[0]=p.call(this,i,o.html())),He(o,t,n,r)}));if(f&&(o=(i=De(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=N.map(Ae(i,"script"),Ue)).length;d<f;d++)u=i,d!==h&&(u=N.clone(u,!0,!0),s&&N.merge(a,Ae(u,"script"))),n.call(e[d],u,d);if(s)for(c=a[a.length-1].ownerDocument,N.map(a,Be),d=0;d<s;d++)u=a[d],Ne.test(u.type||"")&&!se.access(u,"globalEval")&&N.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?N._evalUrl&&!u.noModule&&N._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):w(u.textContent.replace(Re,""),u,c))}return e}function Ye(e,t,n){for(var r,i=t?N.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||N.cleanData(Ae(r)),r.parentNode&&(n&&me(r)&&Te(Ae(r,"script")),r.parentNode.removeChild(r));return e}N.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),l=me(e);if(!m.noCloneChecked&&(1===e.nodeType||11===e.nodeType)&&!N.isXMLDoc(e))for(a=Ae(s),r=0,i=(o=Ae(e)).length;r<i;r++)Qe(o[r],a[r]);if(t)if(n)for(o=o||Ae(e),a=a||Ae(s),r=0,i=o.length;r<i;r++)Ve(o[r],a[r]);else Ve(e,s);return(a=Ae(s,"script")).length>0&&Te(a,!l&&Ae(e,"script")),s},cleanData:function(e){for(var t,n,r,i=N.event.special,o=0;void 0!==(n=e[o]);o++)if(oe(n)){if(t=n[se.expando]){if(t.events)for(r in t.events)i[r]?N.event.remove(n,r):N.removeEvent(n,r,t.handle);n[se.expando]=void 0}n[le.expando]&&(n[le.expando]=void 0)}}}),N.fn.extend({detach:function(e){return Ye(this,e,!0)},remove:function(e){return Ye(this,e)},text:function(e){return ee(this,(function(e){return void 0===e?N.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return He(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Fe(this,e).appendChild(e)}))},prepend:function(){return He(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Fe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return He(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return He(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(N.cleanData(Ae(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return N.clone(this,e,t)}))},html:function(e){return ee(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"===typeof e&&!Le.test(e)&&!Ce[(je.exec(e)||["",""])[1].toLowerCase()]){e=N.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(N.cleanData(Ae(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return He(this,arguments,(function(t){var n=this.parentNode;N.inArray(this,e)<0&&(N.cleanData(Ae(this)),n&&n.replaceChild(t,this))}),e)}}),N.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){N.fn[e]=function(e){for(var n,r=[],i=N(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),N(i[a])[t](n),u.apply(r,n.get());return this.pushStack(r)}}));var We=new RegExp("^("+fe+")(?!px)[a-z%]+$","i"),Ge=/^--/,qe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=r),t.getComputedStyle(e)},Ze=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ke=new RegExp(pe.join("|"),"i");function Xe(e,t,n){var r,i,o,a,s=Ge.test(t),l=e.style;return(n=n||qe(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(O,"$1")||void 0),""!==a||me(e)||(a=N.style(e,t)),!m.pixelBoxStyles()&&We.test(a)&&Ke.test(t)&&(r=l.width,i=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=n.width,l.width=r,l.minWidth=i,l.maxWidth=o)),void 0!==a?a+"":a}function $e(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ge.appendChild(u).appendChild(c);var e=r.getComputedStyle(c);n="1%"!==e.top,l=12===t(e.marginLeft),c.style.right="60%",a=36===t(e.right),i=36===t(e.width),c.style.position="absolute",o=12===t(c.offsetWidth/3),ge.removeChild(u),c=null}}function t(e){return Math.round(parseFloat(e))}var n,i,o,a,s,l,u=b.createElement("div"),c=b.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===c.style.backgroundClip,N.extend(m,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,n,i;return null==s&&(e=b.createElement("table"),t=b.createElement("tr"),n=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",ge.appendChild(e).appendChild(t).appendChild(n),i=r.getComputedStyle(t),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,ge.removeChild(e)),s}}))}();var Je=["Webkit","Moz","ms"],et=b.createElement("div").style,tt={};function nt(e){var t=N.cssProps[e]||tt[e];return t||(e in et?e:tt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Je.length;n--;)if((e=Je[n]+t)in et)return e}(e)||e)}var rt=/^(none|table(?!-c[ea]).+)/,it={position:"absolute",visibility:"hidden",display:"block"},ot={letterSpacing:"0",fontWeight:"400"};function at(e,t,n){var r=he.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function st(e,t,n,r,i,o){var a="width"===t?1:0,s=0,l=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=N.css(e,n+pe[a],!0,i)),r?("content"===n&&(l-=N.css(e,"padding"+pe[a],!0,i)),"margin"!==n&&(l-=N.css(e,"border"+pe[a]+"Width",!0,i))):(l+=N.css(e,"padding"+pe[a],!0,i),"padding"!==n?l+=N.css(e,"border"+pe[a]+"Width",!0,i):s+=N.css(e,"border"+pe[a]+"Width",!0,i));return!r&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l+u}function lt(e,t,n){var r=qe(e),i=(!m.boxSizingReliable()||n)&&"border-box"===N.css(e,"boxSizing",!1,r),o=i,a=Xe(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(We.test(a)){if(!n)return a;a="auto"}return(!m.boxSizingReliable()&&i||!m.reliableTrDimensions()&&A(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===N.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===N.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+st(e,t,n||(i?"border":"content"),o,r,a)+"px"}function ut(e,t,n,r,i){return new ut.prototype.init(e,t,n,r,i)}N.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Xe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=ie(t),l=Ge.test(t),u=e.style;if(l||(t=nt(s)),a=N.cssHooks[t]||N.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:u[t];"string"===(o=typeof n)&&(i=he.exec(n))&&i[1]&&(n=be(e,t,i),o="number"),null!=n&&n===n&&("number"!==o||l||(n+=i&&i[3]||(N.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,r){var i,o,a,s=ie(t);return Ge.test(t)||(t=nt(s)),(a=N.cssHooks[t]||N.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Xe(e,t,r)),"normal"===i&&t in ot&&(i=ot[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),N.each(["height","width"],(function(e,t){N.cssHooks[t]={get:function(e,n,r){if(n)return!rt.test(N.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?lt(e,t,r):Ze(e,it,(function(){return lt(e,t,r)}))},set:function(e,n,r){var i,o=qe(e),a=!m.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===N.css(e,"boxSizing",!1,o),l=r?st(e,t,r,s,o):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-st(e,t,"border",!1,o)-.5)),l&&(i=he.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=N.css(e,t)),at(0,n,l)}}})),N.cssHooks.marginLeft=$e(m.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Xe(e,"marginLeft"))||e.getBoundingClientRect().left-Ze(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),N.each({margin:"",padding:"",border:"Width"},(function(e,t){N.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"===typeof n?n.split(" "):[n];r<4;r++)i[e+pe[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(N.cssHooks[e+t].set=at)})),N.fn.extend({css:function(e,t){return ee(this,(function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=qe(e),i=t.length;a<i;a++)o[t[a]]=N.css(e,t[a],!1,r);return o}return void 0!==n?N.style(e,t,n):N.css(e,t)}),e,t,arguments.length>1)}}),N.Tween=ut,ut.prototype={constructor:ut,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||N.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(N.cssNumber[n]?"":"px")},cur:function(){var e=ut.propHooks[this.prop];return e&&e.get?e.get(this):ut.propHooks._default.get(this)},run:function(e){var t,n=ut.propHooks[this.prop];return this.options.duration?this.pos=t=N.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ut.propHooks._default.set(this),this}},ut.prototype.init.prototype=ut.prototype,ut.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=N.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){N.fx.step[e.prop]?N.fx.step[e.prop](e):1!==e.elem.nodeType||!N.cssHooks[e.prop]&&null==e.elem.style[nt(e.prop)]?e.elem[e.prop]=e.now:N.style(e.elem,e.prop,e.now+e.unit)}}},ut.propHooks.scrollTop=ut.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},N.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},N.fx=ut.prototype.init,N.fx.step={};var ct,dt,ft=/^(?:toggle|show|hide)$/,ht=/queueHooks$/;function pt(){dt&&(!1===b.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(pt):r.setTimeout(pt,N.fx.interval),N.fx.tick())}function gt(){return r.setTimeout((function(){ct=void 0})),ct=Date.now()}function mt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=pe[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function yt(e,t,n){for(var r,i=(vt.tweeners[t]||[]).concat(vt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function vt(e,t,n){var r,i,o=0,a=vt.prefilters.length,s=N.Deferred().always((function(){delete l.elem})),l=function(){if(i)return!1;for(var t=ct||gt(),n=Math.max(0,u.startTime+u.duration-t),r=1-(n/u.duration||0),o=0,a=u.tweens.length;o<a;o++)u.tweens[o].run(r);return s.notifyWith(e,[u,r,n]),r<1&&a?n:(a||s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:N.extend({},t),opts:N.extend(!0,{specialEasing:{},easing:N.easing._default},n),originalProperties:t,originalOptions:n,startTime:ct||gt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=N.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)u.tweens[n].run(1);return t?(s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u,t])):s.rejectWith(e,[u,t]),this}}),c=u.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=ie(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=N.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,u.opts.specialEasing);o<a;o++)if(r=vt.prefilters[o].call(u,e,c,u.opts))return y(r.stop)&&(N._queueHooks(u.elem,u.opts.queue).stop=r.stop.bind(r)),r;return N.map(c,yt,u),y(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),N.fx.timer(N.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u}N.Animation=N.extend(vt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return be(n.elem,e,he.exec(t),n),n}]},tweener:function(e,t){y(e)?(t=e,e=["*"]):e=e.match(G);for(var n,r=0,i=e.length;r<i;r++)n=e[r],vt.tweeners[n]=vt.tweeners[n]||[],vt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,l,u,c,d="width"in t||"height"in t,f=this,h={},p=e.style,g=e.nodeType&&ve(e),m=se.get(e,"fxshow");for(r in n.queue||(null==(a=N._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,f.always((function(){f.always((function(){a.unqueued--,N.queue(e,"fx").length||a.empty.fire()}))}))),t)if(i=t[r],ft.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;g=!0}h[r]=m&&m[r]||N.style(e,r)}if((l=!N.isEmptyObject(t))||!N.isEmptyObject(h))for(r in d&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=m&&m.display)&&(u=se.get(e,"display")),"none"===(c=N.css(e,"display"))&&(u?c=u:(Me([e],!0),u=e.style.display||u,c=N.css(e,"display"),Me([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===N.css(e,"float")&&(l||(f.done((function(){p.display=u})),null==u&&(c=p.display,u="none"===c?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",f.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),l=!1,h)l||(m?"hidden"in m&&(g=m.hidden):m=se.access(e,"fxshow",{display:u}),o&&(m.hidden=!g),g&&Me([e],!0),f.done((function(){for(r in g||Me([e]),se.remove(e,"fxshow"),h)N.style(e,r,h[r])}))),l=yt(g?m[r]:0,r,f),r in m||(m[r]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?vt.prefilters.unshift(e):vt.prefilters.push(e)}}),N.speed=function(e,t,n){var r=e&&"object"===typeof e?N.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return N.fx.off?r.duration=0:"number"!==typeof r.duration&&(r.duration in N.fx.speeds?r.duration=N.fx.speeds[r.duration]:r.duration=N.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){y(r.old)&&r.old.call(this),r.queue&&N.dequeue(this,r.queue)},r},N.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ve).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=N.isEmptyObject(e),o=N.speed(t,n,r),a=function(){var t=vt(this,N.extend({},e),o);(i||se.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!==typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",o=N.timers,a=se.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&ht.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||N.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=se.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=N.timers,a=r?r.length:0;for(n.finish=!0,N.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),N.each(["toggle","show","hide"],(function(e,t){var n=N.fn[t];N.fn[t]=function(e,r,i){return null==e||"boolean"===typeof e?n.apply(this,arguments):this.animate(mt(t,!0),e,r,i)}})),N.each({slideDown:mt("show"),slideUp:mt("hide"),slideToggle:mt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){N.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),N.timers=[],N.fx.tick=function(){var e,t=0,n=N.timers;for(ct=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||N.fx.stop(),ct=void 0},N.fx.timer=function(e){N.timers.push(e),N.fx.start()},N.fx.interval=13,N.fx.start=function(){dt||(dt=!0,pt())},N.fx.stop=function(){dt=null},N.fx.speeds={slow:600,fast:200,_default:400},N.fn.delay=function(e,t){return e=N.fx&&N.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var i=r.setTimeout(t,e);n.stop=function(){r.clearTimeout(i)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",m.checkOn=""!==e.value,m.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",m.radioValue="t"===e.value}();var bt,xt=N.expr.attrHandle;N.fn.extend({attr:function(e,t){return ee(this,N.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){N.removeAttr(this,e)}))}}),N.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"===typeof e.getAttribute?N.prop(e,t,n):(1===o&&N.isXMLDoc(e)||(i=N.attrHooks[t.toLowerCase()]||(N.expr.match.bool.test(t)?bt:void 0)),void 0!==n?null===n?void N.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=N.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(G);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),bt={set:function(e,t,n){return!1===t?N.removeAttr(e,n):e.setAttribute(n,n),n}},N.each(N.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=xt[t]||N.find.attr;xt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=xt[a],xt[a]=i,i=null!=n(e,t,r)?a:null,xt[a]=o),i}}));var wt=/^(?:input|select|textarea|button)$/i,Mt=/^(?:a|area)$/i;function St(e){return(e.match(G)||[]).join(" ")}function jt(e){return e.getAttribute&&e.getAttribute("class")||""}function Nt(e){return Array.isArray(e)?e:"string"===typeof e&&e.match(G)||[]}N.fn.extend({prop:function(e,t){return ee(this,N.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[N.propFix[e]||e]}))}}),N.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&N.isXMLDoc(e)||(t=N.propFix[t]||t,i=N.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=N.find.attr(e,"tabindex");return t?parseInt(t,10):wt.test(e.nodeName)||Mt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(N.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),N.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){N.propFix[this.toLowerCase()]=this})),N.fn.extend({addClass:function(e){var t,n,r,i,o,a;return y(e)?this.each((function(t){N(this).addClass(e.call(this,t,jt(this)))})):(t=Nt(e)).length?this.each((function(){if(r=jt(this),n=1===this.nodeType&&" "+St(r)+" "){for(o=0;o<t.length;o++)i=t[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=St(n),r!==a&&this.setAttribute("class",a)}})):this},removeClass:function(e){var t,n,r,i,o,a;return y(e)?this.each((function(t){N(this).removeClass(e.call(this,t,jt(this)))})):arguments.length?(t=Nt(e)).length?this.each((function(){if(r=jt(this),n=1===this.nodeType&&" "+St(r)+" "){for(o=0;o<t.length;o++)for(i=t[o];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");a=St(n),r!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,r,i,o,a=typeof e,s="string"===a||Array.isArray(e);return y(e)?this.each((function(n){N(this).toggleClass(e.call(this,n,jt(this),t),t)})):"boolean"===typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=Nt(e),this.each((function(){if(s)for(o=N(this),i=0;i<n.length;i++)r=n[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==e&&"boolean"!==a||((r=jt(this))&&se.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===e?"":se.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+St(jt(n))+" ").indexOf(t)>-1)return!0;return!1}});var Ct=/\r/g;N.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=y(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,N(this).val()):e)?i="":"number"===typeof i?i+="":Array.isArray(i)&&(i=N.map(i,(function(e){return null==e?"":e+""}))),(t=N.valHooks[this.type]||N.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=N.valHooks[i.type]||N.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"===typeof(n=i.value)?n.replace(Ct,""):null==n?"":n:void 0}}),N.extend({valHooks:{option:{get:function(e){var t=N.find.attr(e,"value");return null!=t?t:St(N.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?o+1:i.length;for(r=o<0?l:a?o:0;r<l;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(t=N(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=N.makeArray(t),a=i.length;a--;)((r=i[a]).selected=N.inArray(N.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),N.each(["radio","checkbox"],(function(){N.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=N.inArray(N(e).val(),t)>-1}},m.checkOn||(N.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var At=r.location,Tt={guid:Date.now()},Et=/\?/;N.parseXML=function(e){var t,n;if(!e||"string"!==typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(i){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||N.error("Invalid XML: "+(n?N.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Dt=/^(?:focusinfocus|focusoutblur)$/,kt=function(e){e.stopPropagation()};N.extend(N.event,{trigger:function(e,t,n,i){var o,a,s,l,u,c,d,f,p=[n||b],g=h.call(e,"type")?e.type:e,m=h.call(e,"namespace")?e.namespace.split("."):[];if(a=f=s=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!Dt.test(g+N.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),u=g.indexOf(":")<0&&"on"+g,(e=e[N.expando]?e:new N.Event(g,"object"===typeof e&&e)).isTrigger=i?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:N.makeArray(t,[e]),d=N.event.special[g]||{},i||!d.trigger||!1!==d.trigger.apply(n,t))){if(!i&&!d.noBubble&&!v(n)){for(l=d.delegateType||g,Dt.test(l+g)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(n.ownerDocument||b)&&p.push(s.defaultView||s.parentWindow||r)}for(o=0;(a=p[o++])&&!e.isPropagationStopped();)f=a,e.type=o>1?l:d.bindType||g,(c=(se.get(a,"events")||Object.create(null))[e.type]&&se.get(a,"handle"))&&c.apply(a,t),(c=u&&a[u])&&c.apply&&oe(a)&&(e.result=c.apply(a,t),!1===e.result&&e.preventDefault());return e.type=g,i||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),t)||!oe(n)||u&&y(n[g])&&!v(n)&&((s=n[u])&&(n[u]=null),N.event.triggered=g,e.isPropagationStopped()&&f.addEventListener(g,kt),n[g](),e.isPropagationStopped()&&f.removeEventListener(g,kt),N.event.triggered=void 0,s&&(n[u]=s)),e.result}},simulate:function(e,t,n){var r=N.extend(new N.Event,n,{type:e,isSimulated:!0});N.event.trigger(r,null,t)}}),N.fn.extend({trigger:function(e,t){return this.each((function(){N.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return N.event.trigger(e,t,n,!0)}});var Ot=/\[\]$/,It=/\r?\n/g,_t=/^(?:submit|button|image|reset|file)$/i,Pt=/^(?:input|select|textarea|keygen)/i;function Lt(e,t,n,r){var i;if(Array.isArray(t))N.each(t,(function(t,i){n||Ot.test(e)?r(e,i):Lt(e+"["+("object"===typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==M(t))r(e,t);else for(i in t)Lt(e+"["+i+"]",t[i],n,r)}N.param=function(e,t){var n,r=[],i=function(e,t){var n=y(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!N.isPlainObject(e))N.each(e,(function(){i(this.name,this.value)}));else for(n in e)Lt(n,e[n],t,i);return r.join("&")},N.fn.extend({serialize:function(){return N.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=N.prop(this,"elements");return e?N.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!N(this).is(":disabled")&&Pt.test(this.nodeName)&&!_t.test(e)&&(this.checked||!Se.test(e))})).map((function(e,t){var n=N(this).val();return null==n?null:Array.isArray(n)?N.map(n,(function(e){return{name:t.name,value:e.replace(It,"\r\n")}})):{name:t.name,value:n.replace(It,"\r\n")}})).get()}});var zt=/%20/g,Rt=/#.*$/,Ft=/([?&])_=[^&]*/,Ut=/^(.*?):[ \t]*([^\r\n]*)$/gm,Bt=/^(?:GET|HEAD)$/,Vt=/^\/\//,Qt={},Ht={},Yt="*/".concat("*"),Wt=b.createElement("a");function Gt(e){return function(t,n){"string"!==typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(G)||[];if(y(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function qt(e,t,n,r){var i={},o=e===Ht;function a(s){var l;return i[s]=!0,N.each(e[s]||[],(function(e,s){var u=s(t,n,r);return"string"!==typeof u||o||i[u]?o?!(l=u):void 0:(t.dataTypes.unshift(u),a(u),!1)})),l}return a(t.dataTypes[0])||!i["*"]&&a("*")}function Zt(e,t){var n,r,i=N.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&N.extend(!0,e,r),e}Wt.href=At.href,N.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:At.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(At.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Yt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":N.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Zt(Zt(e,N.ajaxSettings),t):Zt(N.ajaxSettings,e)},ajaxPrefilter:Gt(Qt),ajaxTransport:Gt(Ht),ajax:function(e,t){"object"===typeof e&&(t=e,e=void 0),t=t||{};var n,i,o,a,s,l,u,c,d,f,h=N.ajaxSetup({},t),p=h.context||h,g=h.context&&(p.nodeType||p.jquery)?N(p):N.event,m=N.Deferred(),y=N.Callbacks("once memory"),v=h.statusCode||{},x={},w={},M="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(u){if(!a)for(a={};t=Ut.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(e,t){return null==u&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==u&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)S.always(e[S.status]);else for(t in e)v[t]=[v[t],e[t]];return this},abort:function(e){var t=e||M;return n&&n.abort(t),j(0,t),this}};if(m.promise(S),h.url=((e||h.url||At.href)+"").replace(Vt,At.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(G)||[""],null==h.crossDomain){l=b.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Wt.protocol+"//"+Wt.host!==l.protocol+"//"+l.host}catch(C){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!==typeof h.data&&(h.data=N.param(h.data,h.traditional)),qt(Qt,h,t,S),u)return S;for(d in(c=N.event&&h.global)&&0===N.active++&&N.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Bt.test(h.type),i=h.url.replace(Rt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(zt,"+")):(f=h.url.slice(i.length),h.data&&(h.processData||"string"===typeof h.data)&&(i+=(Et.test(i)?"&":"?")+h.data,delete h.data),!1===h.cache&&(i=i.replace(Ft,"$1"),f=(Et.test(i)?"&":"?")+"_="+Tt.guid+++f),h.url=i+f),h.ifModified&&(N.lastModified[i]&&S.setRequestHeader("If-Modified-Since",N.lastModified[i]),N.etag[i]&&S.setRequestHeader("If-None-Match",N.etag[i])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&S.setRequestHeader("Content-Type",h.contentType),S.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Yt+"; q=0.01":""):h.accepts["*"]),h.headers)S.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(p,S,h)||u))return S.abort();if(M="abort",y.add(h.complete),S.done(h.success),S.fail(h.error),n=qt(Ht,h,t,S)){if(S.readyState=1,c&&g.trigger("ajaxSend",[S,h]),u)return S;h.async&&h.timeout>0&&(s=r.setTimeout((function(){S.abort("timeout")}),h.timeout));try{u=!1,n.send(x,j)}catch(C){if(u)throw C;j(-1,C)}}else j(-1,"No Transport");function j(e,t,a,l){var d,f,b,x,w,M=t;u||(u=!0,s&&r.clearTimeout(s),n=void 0,o=l||"",S.readyState=e>0?4:0,d=e>=200&&e<300||304===e,a&&(x=function(e,t,n){for(var r,i,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(h,S,a)),!d&&N.inArray("script",h.dataTypes)>-1&&N.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),x=function(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(i in u)if((s=i.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[i]:!0!==u[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(C){return{state:"parsererror",error:a?C:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(h,x,S,d),d?(h.ifModified&&((w=S.getResponseHeader("Last-Modified"))&&(N.lastModified[i]=w),(w=S.getResponseHeader("etag"))&&(N.etag[i]=w)),204===e||"HEAD"===h.type?M="nocontent":304===e?M="notmodified":(M=x.state,f=x.data,d=!(b=x.error))):(b=M,!e&&M||(M="error",e<0&&(e=0))),S.status=e,S.statusText=(t||M)+"",d?m.resolveWith(p,[f,M,S]):m.rejectWith(p,[S,M,b]),S.statusCode(v),v=void 0,c&&g.trigger(d?"ajaxSuccess":"ajaxError",[S,h,d?f:b]),y.fireWith(p,[S,M]),c&&(g.trigger("ajaxComplete",[S,h]),--N.active||N.event.trigger("ajaxStop")))}return S},getJSON:function(e,t,n){return N.get(e,t,n,"json")},getScript:function(e,t){return N.get(e,void 0,t,"script")}}),N.each(["get","post"],(function(e,t){N[t]=function(e,n,r,i){return y(n)&&(i=i||r,r=n,n=void 0),N.ajax(N.extend({url:e,type:t,dataType:i,data:n,success:r},N.isPlainObject(e)&&e))}})),N.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),N._evalUrl=function(e,t,n){return N.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){N.globalEval(e,t,n)}})},N.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=N(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return y(e)?this.each((function(t){N(this).wrapInner(e.call(this,t))})):this.each((function(){var t=N(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=y(e);return this.each((function(n){N(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){N(this).replaceWith(this.childNodes)})),this}}),N.expr.pseudos.hidden=function(e){return!N.expr.pseudos.visible(e)},N.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},N.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var Kt={0:200,1223:204},Xt=N.ajaxSettings.xhr();m.cors=!!Xt&&"withCredentials"in Xt,m.ajax=Xt=!!Xt,N.ajaxTransport((function(e){var t,n;if(m.cors||Xt&&!e.crossDomain)return{send:function(i,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!==typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Kt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!==typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&r.setTimeout((function(){t&&n()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(l){if(t)throw l}},abort:function(){t&&t()}}})),N.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),N.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return N.globalEval(e),e}}}),N.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),N.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=N("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}}));var $t=[],Jt=/(=)\?(?=&|$)|\?\?/;N.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=$t.pop()||N.expando+"_"+Tt.guid++;return this[e]=!0,e}}),N.ajaxPrefilter("json jsonp",(function(e,t,n){var i,o,a,s=!1!==e.jsonp&&(Jt.test(e.url)?"url":"string"===typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Jt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Jt,"$1"+i):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||N.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=r[i],r[i]=function(){a=arguments},n.always((function(){void 0===o?N(r).removeProp(i):r[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,$t.push(i)),a&&y(o)&&o(a[0]),a=o=void 0})),"script"})),m.createHTMLDocument=function(){var e=b.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),N.parseHTML=function(e,t,n){return"string"!==typeof e?[]:("boolean"===typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((r=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(r)):t=b),o=!n&&[],(i=U.exec(e))?[t.createElement(i[1])]:(i=De([e],t,o),o&&o.length&&N(o).remove(),N.merge([],i.childNodes)));var r,i,o},N.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=St(e.slice(s)),e=e.slice(0,s)),y(t)?(n=t,t=void 0):t&&"object"===typeof t&&(i="POST"),a.length>0&&N.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){o=arguments,a.html(r?N("<div>").append(N.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},N.expr.pseudos.animated=function(e){return N.grep(N.timers,(function(t){return e===t.elem})).length},N.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,u=N.css(e,"position"),c=N(e),d={};"static"===u&&(e.style.position="relative"),s=c.offset(),o=N.css(e,"top"),l=N.css(e,"left"),("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),y(t)&&(t=t.call(e,n,N.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):c.css(d)}},N.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){N.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===N.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===N.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=N(e).offset()).top+=N.css(e,"borderTopWidth",!0),i.left+=N.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-N.css(r,"marginTop",!0),left:t.left-i.left-N.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===N.css(e,"position");)e=e.offsetParent;return e||ge}))}}),N.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;N.fn[e]=function(r){return ee(this,(function(e,r,i){var o;if(v(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i}),e,r,arguments.length)}})),N.each(["top","left"],(function(e,t){N.cssHooks[t]=$e(m.pixelPosition,(function(e,n){if(n)return n=Xe(e,t),We.test(n)?N(e).position()[t]+"px":n}))})),N.each({Height:"height",Width:"width"},(function(e,t){N.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){N.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!==typeof i),s=n||(!0===i||!0===o?"margin":"border");return ee(this,(function(t,n,i){var o;return v(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?N.css(t,n,s):N.style(t,n,i,s)}),t,a?i:void 0,a)}}))})),N.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){N.fn[t]=function(e){return this.on(t,e)}})),N.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),N.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){N.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var en=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;N.proxy=function(e,t){var n,r,i;if("string"===typeof t&&(n=e[t],t=e,e=n),y(e))return r=s.call(arguments,2),i=function(){return e.apply(t||this,r.concat(s.call(arguments)))},i.guid=e.guid=e.guid||N.guid++,i},N.holdReady=function(e){e?N.readyWait++:N.ready(!0)},N.isArray=Array.isArray,N.parseJSON=JSON.parse,N.nodeName=A,N.isFunction=y,N.isWindow=v,N.camelCase=ie,N.type=M,N.now=Date.now,N.isNumeric=function(e){var t=N.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},N.trim=function(e){return null==e?"":(e+"").replace(en,"$1")},void 0===(n=function(){return N}.apply(t,[]))||(e.exports=n);var tn=r.jQuery,nn=r.$;return N.noConflict=function(e){return r.$===N&&(r.$=nn),e&&r.jQuery===N&&(r.jQuery=tn),N},"undefined"===typeof i&&(r.jQuery=r.$=N),N}))},4822:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Animation=void 0;const r=n(2225),i=n(210),o=r.glob.performance&&r.glob.performance.now?function(){return r.glob.performance.now()}:function(){return(new Date).getTime()};class a{constructor(e,t){this.id=a.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:o(),frameRate:0},this.func=e,this.setLayers(t)}setLayers(e){let t=[];return e&&(t=Array.isArray(e)?e:[e]),this.layers=t,this}getLayers(){return this.layers}addLayer(e){const t=this.layers,n=t.length;for(let r=0;r<n;r++)if(t[r]._id===e._id)return!1;return this.layers.push(e),!0}isRunning(){const e=a.animations,t=e.length;for(let n=0;n<t;n++)if(e[n].id===this.id)return!0;return!1}start(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=o(),a._addAnimation(this),this}stop(){return a._removeAnimation(this),this}_updateFrameObject(e){this.frame.timeDiff=e-this.frame.lastTime,this.frame.lastTime=e,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(e){this.animations.push(e),this._handleAnimation()}static _removeAnimation(e){const t=e.id,n=this.animations,r=n.length;for(let i=0;i<r;i++)if(n[i].id===t){this.animations.splice(i,1);break}}static _runFrames(){const e={},t=this.animations;for(let n=0;n<t.length;n++){const r=t[n],i=r.layers,a=r.func;r._updateFrameObject(o());const s=i.length;let l;if(l=!a||!1!==a.call(r,r.frame),l)for(let t=0;t<s;t++){const n=i[t];void 0!==n._id&&(e[n._id]=n)}}for(let n in e)e.hasOwnProperty(n)&&e[n].batchDraw()}static _animationLoop(){const e=a;e.animations.length?(e._runFrames(),i.Util.requestAnimFrame(e._animationLoop)):e.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,i.Util.requestAnimFrame(this._animationLoop))}}t.Animation=a,a.animations=[],a.animIdCounter=0,a.animRunning=!1},8480:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.t2length=t.getQuadraticArcLength=t.getCubicArcLength=t.binomialCoefficients=t.cValues=t.tValues=void 0,t.tValues=[[],[],[-.5773502691896257,.5773502691896257],[0,-.7745966692414834,.7745966692414834],[-.33998104358485626,.33998104358485626,-.8611363115940526,.8611363115940526],[0,-.5384693101056831,.5384693101056831,-.906179845938664,.906179845938664],[.6612093864662645,-.6612093864662645,-.2386191860831969,.2386191860831969,-.932469514203152,.932469514203152],[0,.4058451513773972,-.4058451513773972,-.7415311855993945,.7415311855993945,-.9491079123427585,.9491079123427585],[-.1834346424956498,.1834346424956498,-.525532409916329,.525532409916329,-.7966664774136267,.7966664774136267,-.9602898564975363,.9602898564975363],[0,-.8360311073266358,.8360311073266358,-.9681602395076261,.9681602395076261,-.3242534234038089,.3242534234038089,-.6133714327005904,.6133714327005904],[-.14887433898163122,.14887433898163122,-.4333953941292472,.4333953941292472,-.6794095682990244,.6794095682990244,-.8650633666889845,.8650633666889845,-.9739065285171717,.9739065285171717],[0,-.26954315595234496,.26954315595234496,-.5190961292068118,.5190961292068118,-.7301520055740494,.7301520055740494,-.8870625997680953,.8870625997680953,-.978228658146057,.978228658146057],[-.1252334085114689,.1252334085114689,-.3678314989981802,.3678314989981802,-.5873179542866175,.5873179542866175,-.7699026741943047,.7699026741943047,-.9041172563704749,.9041172563704749,-.9815606342467192,.9815606342467192],[0,-.2304583159551348,.2304583159551348,-.44849275103644687,.44849275103644687,-.6423493394403402,.6423493394403402,-.8015780907333099,.8015780907333099,-.9175983992229779,.9175983992229779,-.9841830547185881,.9841830547185881],[-.10805494870734367,.10805494870734367,-.31911236892788974,.31911236892788974,-.5152486363581541,.5152486363581541,-.6872929048116855,.6872929048116855,-.827201315069765,.827201315069765,-.9284348836635735,.9284348836635735,-.9862838086968123,.9862838086968123],[0,-.20119409399743451,.20119409399743451,-.3941513470775634,.3941513470775634,-.5709721726085388,.5709721726085388,-.7244177313601701,.7244177313601701,-.8482065834104272,.8482065834104272,-.937273392400706,.937273392400706,-.9879925180204854,.9879925180204854],[-.09501250983763744,.09501250983763744,-.2816035507792589,.2816035507792589,-.45801677765722737,.45801677765722737,-.6178762444026438,.6178762444026438,-.755404408355003,.755404408355003,-.8656312023878318,.8656312023878318,-.9445750230732326,.9445750230732326,-.9894009349916499,.9894009349916499],[0,-.17848418149584785,.17848418149584785,-.3512317634538763,.3512317634538763,-.5126905370864769,.5126905370864769,-.6576711592166907,.6576711592166907,-.7815140038968014,.7815140038968014,-.8802391537269859,.8802391537269859,-.9506755217687678,.9506755217687678,-.9905754753144174,.9905754753144174],[-.0847750130417353,.0847750130417353,-.2518862256915055,.2518862256915055,-.41175116146284263,.41175116146284263,-.5597708310739475,.5597708310739475,-.6916870430603532,.6916870430603532,-.8037049589725231,.8037049589725231,-.8926024664975557,.8926024664975557,-.9558239495713977,.9558239495713977,-.9915651684209309,.9915651684209309],[0,-.16035864564022537,.16035864564022537,-.31656409996362983,.31656409996362983,-.46457074137596094,.46457074137596094,-.600545304661681,.600545304661681,-.7209661773352294,.7209661773352294,-.8227146565371428,.8227146565371428,-.9031559036148179,.9031559036148179,-.96020815213483,.96020815213483,-.9924068438435844,.9924068438435844],[-.07652652113349734,.07652652113349734,-.22778585114164507,.22778585114164507,-.37370608871541955,.37370608871541955,-.5108670019508271,.5108670019508271,-.636053680726515,.636053680726515,-.7463319064601508,.7463319064601508,-.8391169718222188,.8391169718222188,-.912234428251326,.912234428251326,-.9639719272779138,.9639719272779138,-.9931285991850949,.9931285991850949],[0,-.1455618541608951,.1455618541608951,-.2880213168024011,.2880213168024011,-.4243421202074388,.4243421202074388,-.5516188358872198,.5516188358872198,-.6671388041974123,.6671388041974123,-.7684399634756779,.7684399634756779,-.8533633645833173,.8533633645833173,-.9200993341504008,.9200993341504008,-.9672268385663063,.9672268385663063,-.9937521706203895,.9937521706203895],[-.06973927331972223,.06973927331972223,-.20786042668822127,.20786042668822127,-.34193582089208424,.34193582089208424,-.469355837986757,.469355837986757,-.5876404035069116,.5876404035069116,-.6944872631866827,.6944872631866827,-.7878168059792081,.7878168059792081,-.8658125777203002,.8658125777203002,-.926956772187174,.926956772187174,-.9700604978354287,.9700604978354287,-.9942945854823992,.9942945854823992],[0,-.1332568242984661,.1332568242984661,-.26413568097034495,.26413568097034495,-.3903010380302908,.3903010380302908,-.5095014778460075,.5095014778460075,-.6196098757636461,.6196098757636461,-.7186613631319502,.7186613631319502,-.8048884016188399,.8048884016188399,-.8767523582704416,.8767523582704416,-.9329710868260161,.9329710868260161,-.9725424712181152,.9725424712181152,-.9947693349975522,.9947693349975522],[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213]],t.cValues=[[],[],[1,1],[.8888888888888888,.5555555555555556,.5555555555555556],[.6521451548625461,.6521451548625461,.34785484513745385,.34785484513745385],[.5688888888888889,.47862867049936647,.47862867049936647,.23692688505618908,.23692688505618908],[.3607615730481386,.3607615730481386,.46791393457269104,.46791393457269104,.17132449237917036,.17132449237917036],[.4179591836734694,.3818300505051189,.3818300505051189,.27970539148927664,.27970539148927664,.1294849661688697,.1294849661688697],[.362683783378362,.362683783378362,.31370664587788727,.31370664587788727,.22238103445337448,.22238103445337448,.10122853629037626,.10122853629037626],[.3302393550012598,.1806481606948574,.1806481606948574,.08127438836157441,.08127438836157441,.31234707704000286,.31234707704000286,.26061069640293544,.26061069640293544],[.29552422471475287,.29552422471475287,.26926671930999635,.26926671930999635,.21908636251598204,.21908636251598204,.1494513491505806,.1494513491505806,.06667134430868814,.06667134430868814],[.2729250867779006,.26280454451024665,.26280454451024665,.23319376459199048,.23319376459199048,.18629021092773426,.18629021092773426,.1255803694649046,.1255803694649046,.05566856711617366,.05566856711617366],[.24914704581340277,.24914704581340277,.2334925365383548,.2334925365383548,.20316742672306592,.20316742672306592,.16007832854334622,.16007832854334622,.10693932599531843,.10693932599531843,.04717533638651183,.04717533638651183],[.2325515532308739,.22628318026289723,.22628318026289723,.2078160475368885,.2078160475368885,.17814598076194574,.17814598076194574,.13887351021978725,.13887351021978725,.09212149983772845,.09212149983772845,.04048400476531588,.04048400476531588],[.2152638534631578,.2152638534631578,.2051984637212956,.2051984637212956,.18553839747793782,.18553839747793782,.15720316715819355,.15720316715819355,.12151857068790319,.12151857068790319,.08015808715976021,.08015808715976021,.03511946033175186,.03511946033175186],[.2025782419255613,.19843148532711158,.19843148532711158,.1861610000155622,.1861610000155622,.16626920581699392,.16626920581699392,.13957067792615432,.13957067792615432,.10715922046717194,.10715922046717194,.07036604748810812,.07036604748810812,.03075324199611727,.03075324199611727],[.1894506104550685,.1894506104550685,.18260341504492358,.18260341504492358,.16915651939500254,.16915651939500254,.14959598881657674,.14959598881657674,.12462897125553388,.12462897125553388,.09515851168249279,.09515851168249279,.062253523938647894,.062253523938647894,.027152459411754096,.027152459411754096],[.17944647035620653,.17656270536699264,.17656270536699264,.16800410215645004,.16800410215645004,.15404576107681028,.15404576107681028,.13513636846852548,.13513636846852548,.11188384719340397,.11188384719340397,.08503614831717918,.08503614831717918,.0554595293739872,.0554595293739872,.02414830286854793,.02414830286854793],[.1691423829631436,.1691423829631436,.16427648374583273,.16427648374583273,.15468467512626524,.15468467512626524,.14064291467065065,.14064291467065065,.12255520671147846,.12255520671147846,.10094204410628717,.10094204410628717,.07642573025488905,.07642573025488905,.0497145488949698,.0497145488949698,.02161601352648331,.02161601352648331],[.1610544498487837,.15896884339395434,.15896884339395434,.15276604206585967,.15276604206585967,.1426067021736066,.1426067021736066,.12875396253933621,.12875396253933621,.11156664554733399,.11156664554733399,.09149002162245,.09149002162245,.06904454273764123,.06904454273764123,.0448142267656996,.0448142267656996,.019461788229726478,.019461788229726478],[.15275338713072584,.15275338713072584,.14917298647260374,.14917298647260374,.14209610931838204,.14209610931838204,.13168863844917664,.13168863844917664,.11819453196151841,.11819453196151841,.10193011981724044,.10193011981724044,.08327674157670475,.08327674157670475,.06267204833410907,.06267204833410907,.04060142980038694,.04060142980038694,.017614007139152118,.017614007139152118],[.14608113364969041,.14452440398997005,.14452440398997005,.13988739479107315,.13988739479107315,.13226893863333747,.13226893863333747,.12183141605372853,.12183141605372853,.10879729916714838,.10879729916714838,.09344442345603386,.09344442345603386,.0761001136283793,.0761001136283793,.057134425426857205,.057134425426857205,.036953789770852494,.036953789770852494,.016017228257774335,.016017228257774335],[.13925187285563198,.13925187285563198,.13654149834601517,.13654149834601517,.13117350478706238,.13117350478706238,.12325237681051242,.12325237681051242,.11293229608053922,.11293229608053922,.10041414444288096,.10041414444288096,.08594160621706773,.08594160621706773,.06979646842452049,.06979646842452049,.052293335152683286,.052293335152683286,.03377490158481415,.03377490158481415,.0146279952982722,.0146279952982722],[.13365457218610619,.1324620394046966,.1324620394046966,.12890572218808216,.12890572218808216,.12304908430672953,.12304908430672953,.11499664022241136,.11499664022241136,.10489209146454141,.10489209146454141,.09291576606003515,.09291576606003515,.07928141177671895,.07928141177671895,.06423242140852585,.06423242140852585,.04803767173108467,.04803767173108467,.030988005856979445,.030988005856979445,.013411859487141771,.013411859487141771],[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872]],t.binomialCoefficients=[[1],[1,1],[1,2,1],[1,3,3,1]];t.getCubicArcLength=(e,r,i)=>{let o,a,s;o=i/2,a=0;for(let l=0;l<20;l++)s=o*t.tValues[20][l]+o,a+=t.cValues[20][l]*n(e,r,s);return o*a};function n(e,t,n){const i=r(1,n,e),o=r(1,n,t),a=i*i+o*o;return Math.sqrt(a)}t.getQuadraticArcLength=(e,t,n)=>{void 0===n&&(n=1);const r=e[0]-2*e[1]+e[2],i=t[0]-2*t[1]+t[2],o=2*e[1]-2*e[0],a=2*t[1]-2*t[0],s=4*(r*r+i*i),l=4*(r*o+i*a),u=o*o+a*a;if(0===s)return n*Math.sqrt(Math.pow(e[2]-e[0],2)+Math.pow(t[2]-t[0],2));const c=l/(2*s),d=n+c,f=u/s-c*c,h=d*d+f>0?Math.sqrt(d*d+f):0,p=c*c+f>0?Math.sqrt(c*c+f):0,g=c+Math.sqrt(c*c+f)!==0?f*Math.log(Math.abs((d+h)/(c+p))):0;return Math.sqrt(s)/2*(d*h-c*p+g)};const r=(e,n,i)=>{const o=i.length-1;let a,s;if(0===o)return 0;if(0===e){s=0;for(let e=0;e<=o;e++)s+=t.binomialCoefficients[o][e]*Math.pow(1-n,o-e)*Math.pow(n,e)*i[e];return s}a=new Array(o);for(let t=0;t<o;t++)a[t]=o*(i[t+1]-i[t]);return r(e-1,n,a)};t.t2length=(e,t,n)=>{let r=1,i=e/t,o=(e-n(i))/t,a=0;for(;r>.001;){const s=n(i+o),l=Math.abs(e-s)/t;if(l<r)r=l,i+=o;else{const a=n(i-o),s=Math.abs(e-a)/t;s<r?(r=s,i-=o):o/=2}if(a++,a>500)break}return i}},6786:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HitCanvas=t.SceneCanvas=t.Canvas=void 0;const r=n(210),i=n(5595),o=n(2225),a=n(630),s=n(8049);var l;class u{constructor(e){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;var t=(e||{}).pixelRatio||o.Konva.pixelRatio||function(){if(l)return l;var e=r.Util.createCanvasElement(),t=e.getContext("2d");return l=(o.Konva._global.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1),r.Util.releaseCanvas(e),l}();this.pixelRatio=t,this._canvas=r.Util.createCanvasElement(),this._canvas.style.padding="0",this._canvas.style.margin="0",this._canvas.style.border="0",this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top="0",this._canvas.style.left="0"}getContext(){return this.context}getPixelRatio(){return this.pixelRatio}setPixelRatio(e){var t=this.pixelRatio;this.pixelRatio=e,this.setSize(this.getWidth()/t,this.getHeight()/t)}setWidth(e){this.width=this._canvas.width=e*this.pixelRatio,this._canvas.style.width=e+"px";var t=this.pixelRatio;this.getContext()._context.scale(t,t)}setHeight(e){this.height=this._canvas.height=e*this.pixelRatio,this._canvas.style.height=e+"px";var t=this.pixelRatio;this.getContext()._context.scale(t,t)}getWidth(){return this.width}getHeight(){return this.height}setSize(e,t){this.setWidth(e||0),this.setHeight(t||0)}toDataURL(e,t){try{return this._canvas.toDataURL(e,t)}catch(n){try{return this._canvas.toDataURL()}catch(i){return r.Util.error("Unable to get data URL. "+i.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}}t.Canvas=u,a.Factory.addGetterSetter(u,"pixelRatio",void 0,(0,s.getNumberValidator)());t.SceneCanvas=class extends u{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{width:0,height:0,willReadFrequently:!1};super(e),this.context=new i.SceneContext(this,{willReadFrequently:e.willReadFrequently}),this.setSize(e.width,e.height)}};t.HitCanvas=class extends u{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{width:0,height:0};super(e),this.hitCanvas=!0,this.context=new i.HitContext(this),this.setSize(e.width,e.height)}}},3503:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Container=void 0;const r=n(630),i=n(5862),o=n(8049);class a extends i.Node{constructor(){super(...arguments),this.children=[]}getChildren(e){if(!e)return this.children||[];const t=this.children||[];var n=[];return t.forEach((function(t){e(t)&&n.push(t)})),n}hasChildren(){return this.getChildren().length>0}removeChildren(){return this.getChildren().forEach((e=>{e.parent=null,e.index=0,e.remove()})),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach((e=>{e.parent=null,e.index=0,e.destroy()})),this.children=[],this._requestDraw(),this}add(){if(0===arguments.length)return this;if(arguments.length>1){for(var e=0;e<arguments.length;e++)this.add(e<0||arguments.length<=e?void 0:arguments[e]);return this}const t=arguments.length<=0?void 0:arguments[0];return t.getParent()?(t.moveTo(this),this):(this._validateAdd(t),t.index=this.getChildren().length,t.parent=this,t._clearCaches(),this.getChildren().push(t),this._fire("add",{child:t}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(e){return this._generalFind(e,!1)}findOne(e){var t=this._generalFind(e,!0);return t.length>0?t[0]:void 0}_generalFind(e,t){var n=[];return this._descendants((r=>{const i=r._isMatch(e);return i&&n.push(r),!(!i||!t)})),n}_descendants(e){let t=!1;const n=this.getChildren();for(const r of n){if(t=e(r),t)return!0;if(r.hasChildren()&&(t=r._descendants(e),t))return!0}return!1}toObject(){var e=i.Node.prototype.toObject.call(this);return e.children=[],this.getChildren().forEach((t=>{e.children.push(t.toObject())})),e}isAncestorOf(e){for(var t=e.getParent();t;){if(t._id===this._id)return!0;t=t.getParent()}return!1}clone(e){var t=i.Node.prototype.clone.call(this,e);return this.getChildren().forEach((function(e){t.add(e.clone())})),t}getAllIntersections(e){var t=[];return this.find("Shape").forEach((n=>{n.isVisible()&&n.intersects(e)&&t.push(n)})),t}_clearSelfAndDescendantCache(e){var t;super._clearSelfAndDescendantCache(e),this.isCached()||null===(t=this.children)||void 0===t||t.forEach((function(t){t._clearSelfAndDescendantCache(e)}))}_setChildrenIndices(){var e;null===(e=this.children)||void 0===e||e.forEach((function(e,t){e.index=t})),this._requestDraw()}drawScene(e,t,n){var r=this.getLayer(),i=e||r&&r.getCanvas(),o=i&&i.getContext(),a=this._getCanvasCache(),s=a&&a.scene,l=i&&i.isCache;if(!this.isVisible()&&!l)return this;if(s){o.save();var u=this.getAbsoluteTransform(t).getMatrix();o.transform(u[0],u[1],u[2],u[3],u[4],u[5]),this._drawCachedSceneCanvas(o),o.restore()}else this._drawChildren("drawScene",i,t,n);return this}drawHit(e,t){if(!this.shouldDrawHit(t))return this;var n=this.getLayer(),r=e||n&&n.hitCanvas,i=r&&r.getContext(),o=this._getCanvasCache();if(o&&o.hit){i.save();var a=this.getAbsoluteTransform(t).getMatrix();i.transform(a[0],a[1],a[2],a[3],a[4],a[5]),this._drawCachedHitCanvas(i),i.restore()}else this._drawChildren("drawHit",r,t);return this}_drawChildren(e,t,n,r){var i,o=t&&t.getContext(),a=this.clipWidth(),s=this.clipHeight(),l=this.clipFunc(),u="number"===typeof a&&"number"===typeof s||l;const c=n===this;if(u){o.save();var d=this.getAbsoluteTransform(n),f=d.getMatrix();let e;if(o.transform(f[0],f[1],f[2],f[3],f[4],f[5]),o.beginPath(),l)e=l.call(this,o,this);else{var h=this.clipX(),p=this.clipY();o.rect(h||0,p||0,a,s)}o.clip.apply(o,e),f=d.copy().invert().getMatrix(),o.transform(f[0],f[1],f[2],f[3],f[4],f[5])}var g=!c&&"source-over"!==this.globalCompositeOperation()&&"drawScene"===e;g&&(o.save(),o._applyGlobalCompositeOperation(this)),null===(i=this.children)||void 0===i||i.forEach((function(i){i[e](t,n,r)})),g&&o.restore(),u&&o.restore()}getClientRect(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t,n,r,i,o,a=e.skipTransform,s=e.relativeTo,l={x:1/0,y:1/0,width:0,height:0},u=this;null===(t=this.children)||void 0===t||t.forEach((function(t){if(t.visible()){var a=t.getClientRect({relativeTo:u,skipShadow:e.skipShadow,skipStroke:e.skipStroke});0===a.width&&0===a.height||(void 0===n?(n=a.x,r=a.y,i=a.x+a.width,o=a.y+a.height):(n=Math.min(n,a.x),r=Math.min(r,a.y),i=Math.max(i,a.x+a.width),o=Math.max(o,a.y+a.height)))}}));for(var c=this.find("Shape"),d=!1,f=0;f<c.length;f++){if(c[f]._isVisible(this)){d=!0;break}}return l=d&&void 0!==n?{x:n,y:r,width:i-n,height:o-r}:{x:0,y:0,width:0,height:0},a?l:this._transformedRect(l,s)}}t.Container=a,r.Factory.addComponentsGetterSetter(a,"clip",["x","y","width","height"]),r.Factory.addGetterSetter(a,"clipX",void 0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(a,"clipY",void 0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(a,"clipWidth",void 0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(a,"clipHeight",void 0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(a,"clipFunc")},5595:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HitContext=t.SceneContext=t.Context=void 0;const r=n(210),i=n(2225);var o=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","ellipse","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","roundRect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"];class a{constructor(e){this.canvas=e,i.Konva.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(e){e.fillEnabled()&&this._fill(e)}_fill(e){}strokeShape(e){e.hasStroke()&&this._stroke(e)}_stroke(e){}fillStrokeShape(e){e.attrs.fillAfterStrokeEnabled?(this.strokeShape(e),this.fillShape(e)):(this.fillShape(e),this.strokeShape(e))}getTrace(e,t){var n,i,o,a,s=this.traceArr,l=s.length,u="";for(n=0;n<l;n++)(o=(i=s[n]).method)?(a=i.args,u+=o,e?u+="()":r.Util._isArray(a[0])?u+="(["+a.join(",")+"])":(t&&(a=a.map((e=>"number"===typeof e?Math.floor(e):e))),u+="("+a.join(",")+")")):(u+=i.property,e||(u+="="+i.val)),u+=";";return u}clearTrace(){this.traceArr=[]}_trace(e){var t=this.traceArr;t.push(e),t.length>=100&&t.shift()}reset(){var e=this.getCanvas().getPixelRatio();this.setTransform(1*e,0,0,1*e,0,0)}getCanvas(){return this.canvas}clear(e){var t=this.getCanvas();e?this.clearRect(e.x||0,e.y||0,e.width||0,e.height||0):this.clearRect(0,0,t.getWidth()/t.pixelRatio,t.getHeight()/t.pixelRatio)}_applyLineCap(e){const t=e.attrs.lineCap;t&&this.setAttr("lineCap",t)}_applyOpacity(e){var t=e.getAbsoluteOpacity();1!==t&&this.setAttr("globalAlpha",t)}_applyLineJoin(e){const t=e.attrs.lineJoin;t&&this.setAttr("lineJoin",t)}setAttr(e,t){this._context[e]=t}arc(e,t,n,r,i,o){this._context.arc(e,t,n,r,i,o)}arcTo(e,t,n,r,i){this._context.arcTo(e,t,n,r,i)}beginPath(){this._context.beginPath()}bezierCurveTo(e,t,n,r,i,o){this._context.bezierCurveTo(e,t,n,r,i,o)}clearRect(e,t,n,r){this._context.clearRect(e,t,n,r)}clip(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._context.clip.apply(this._context,t)}closePath(){this._context.closePath()}createImageData(e,t){var n=arguments;return 2===n.length?this._context.createImageData(e,t):1===n.length?this._context.createImageData(e):void 0}createLinearGradient(e,t,n,r){return this._context.createLinearGradient(e,t,n,r)}createPattern(e,t){return this._context.createPattern(e,t)}createRadialGradient(e,t,n,r,i,o){return this._context.createRadialGradient(e,t,n,r,i,o)}drawImage(e,t,n,r,i,o,a,s,l){var u=arguments,c=this._context;3===u.length?c.drawImage(e,t,n):5===u.length?c.drawImage(e,t,n,r,i):9===u.length&&c.drawImage(e,t,n,r,i,o,a,s,l)}ellipse(e,t,n,r,i,o,a,s){this._context.ellipse(e,t,n,r,i,o,a,s)}isPointInPath(e,t,n,r){return n?this._context.isPointInPath(n,e,t,r):this._context.isPointInPath(e,t,r)}fill(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._context.fill.apply(this._context,t)}fillRect(e,t,n,r){this._context.fillRect(e,t,n,r)}strokeRect(e,t,n,r){this._context.strokeRect(e,t,n,r)}fillText(e,t,n,r){r?this._context.fillText(e,t,n,r):this._context.fillText(e,t,n)}measureText(e){return this._context.measureText(e)}getImageData(e,t,n,r){return this._context.getImageData(e,t,n,r)}lineTo(e,t){this._context.lineTo(e,t)}moveTo(e,t){this._context.moveTo(e,t)}rect(e,t,n,r){this._context.rect(e,t,n,r)}roundRect(e,t,n,r,i){this._context.roundRect(e,t,n,r,i)}putImageData(e,t,n){this._context.putImageData(e,t,n)}quadraticCurveTo(e,t,n,r){this._context.quadraticCurveTo(e,t,n,r)}restore(){this._context.restore()}rotate(e){this._context.rotate(e)}save(){this._context.save()}scale(e,t){this._context.scale(e,t)}setLineDash(e){this._context.setLineDash?this._context.setLineDash(e):"mozDash"in this._context?this._context.mozDash=e:"webkitLineDash"in this._context&&(this._context.webkitLineDash=e)}getLineDash(){return this._context.getLineDash()}setTransform(e,t,n,r,i,o){this._context.setTransform(e,t,n,r,i,o)}stroke(e){e?this._context.stroke(e):this._context.stroke()}strokeText(e,t,n,r){this._context.strokeText(e,t,n,r)}transform(e,t,n,r,i,o){this._context.transform(e,t,n,r,i,o)}translate(e,t){this._context.translate(e,t)}_enableTrace(){var e,t,n=this,i=o.length,a=this.setAttr,s=function(e){var i,o=n[e];n[e]=function(){return t=function(e){var t,n,i=[],o=e.length,a=r.Util;for(t=0;t<o;t++)n=e[t],a._isNumber(n)?n=Math.round(1e3*n)/1e3:a._isString(n)||(n+=""),i.push(n);return i}(Array.prototype.slice.call(arguments,0)),i=o.apply(n,arguments),n._trace({method:e,args:t}),i}};for(e=0;e<i;e++)s(o[e]);n.setAttr=function(){a.apply(n,arguments);var e=arguments[0],t=arguments[1];"shadowOffsetX"!==e&&"shadowOffsetY"!==e&&"shadowBlur"!==e||(t/=this.canvas.getPixelRatio()),n._trace({property:e,val:t})}}_applyGlobalCompositeOperation(e){const t=e.attrs.globalCompositeOperation;!t||"source-over"===t||this.setAttr("globalCompositeOperation",t)}}t.Context=a,["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","letterSpacing","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","direction","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled"].forEach((function(e){Object.defineProperty(a.prototype,e,{get(){return this._context[e]},set(t){this._context[e]=t}})}));t.SceneContext=class extends a{constructor(e){let{willReadFrequently:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(e),this._context=e._canvas.getContext("2d",{willReadFrequently:t})}_fillColor(e){var t=e.fill();this.setAttr("fillStyle",t),e._fillFunc(this)}_fillPattern(e){this.setAttr("fillStyle",e._getFillPattern()),e._fillFunc(this)}_fillLinearGradient(e){var t=e._getLinearGradient();t&&(this.setAttr("fillStyle",t),e._fillFunc(this))}_fillRadialGradient(e){const t=e._getRadialGradient();t&&(this.setAttr("fillStyle",t),e._fillFunc(this))}_fill(e){const t=e.fill(),n=e.getFillPriority();if(t&&"color"===n)return void this._fillColor(e);const r=e.getFillPatternImage();if(r&&"pattern"===n)return void this._fillPattern(e);const i=e.getFillLinearGradientColorStops();if(i&&"linear-gradient"===n)return void this._fillLinearGradient(e);const o=e.getFillRadialGradientColorStops();o&&"radial-gradient"===n?this._fillRadialGradient(e):t?this._fillColor(e):r?this._fillPattern(e):i?this._fillLinearGradient(e):o&&this._fillRadialGradient(e)}_strokeLinearGradient(e){const t=e.getStrokeLinearGradientStartPoint(),n=e.getStrokeLinearGradientEndPoint(),r=e.getStrokeLinearGradientColorStops(),i=this.createLinearGradient(t.x,t.y,n.x,n.y);if(r){for(var o=0;o<r.length;o+=2)i.addColorStop(r[o],r[o+1]);this.setAttr("strokeStyle",i)}}_stroke(e){var t=e.dash(),n=e.getStrokeScaleEnabled();if(e.hasStroke()){if(!n){this.save();var r=this.getCanvas().getPixelRatio();this.setTransform(r,0,0,r,0,0)}this._applyLineCap(e),t&&e.dashEnabled()&&(this.setLineDash(t),this.setAttr("lineDashOffset",e.dashOffset())),this.setAttr("lineWidth",e.strokeWidth()),e.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)"),e.getStrokeLinearGradientColorStops()?this._strokeLinearGradient(e):this.setAttr("strokeStyle",e.stroke()),e._strokeFunc(this),n||this.restore()}}_applyShadow(e){var t,n,r,i=null!==(t=e.getShadowRGBA())&&void 0!==t?t:"black",o=null!==(n=e.getShadowBlur())&&void 0!==n?n:5,a=null!==(r=e.getShadowOffset())&&void 0!==r?r:{x:0,y:0},s=e.getAbsoluteScale(),l=this.canvas.getPixelRatio(),u=s.x*l,c=s.y*l;this.setAttr("shadowColor",i),this.setAttr("shadowBlur",o*Math.min(Math.abs(u),Math.abs(c))),this.setAttr("shadowOffsetX",a.x*u),this.setAttr("shadowOffsetY",a.y*c)}};t.HitContext=class extends a{constructor(e){super(e),this._context=e._canvas.getContext("2d",{willReadFrequently:!0})}_fill(e){this.save(),this.setAttr("fillStyle",e.colorKey),e._fillFuncHit(this),this.restore()}strokeShape(e){e.hasHitStroke()&&this._stroke(e)}_stroke(e){if(e.hasHitStroke()){const i=e.getStrokeScaleEnabled();if(!i){this.save();var t=this.getCanvas().getPixelRatio();this.setTransform(t,0,0,t,0,0)}this._applyLineCap(e);var n=e.hitStrokeWidth(),r="auto"===n?e.strokeWidth():n;this.setAttr("lineWidth",r),this.setAttr("strokeStyle",e.colorKey),e._strokeFuncHit(this),i||this.restore()}}}},3230:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Konva=void 0;var r=n(4334);Object.defineProperty(t,"Konva",{enumerable:!0,get:function(){return r.Konva}});const i=n(4334);e.exports=i.Konva},7098:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DD=void 0;const r=n(2225),i=n(210);t.DD={get isDragging(){var e=!1;return t.DD._dragElements.forEach((t=>{"dragging"===t.dragStatus&&(e=!0)})),e},justDragged:!1,get node(){var e;return t.DD._dragElements.forEach((t=>{e=t.node})),e},_dragElements:new Map,_drag(e){const n=[];t.DD._dragElements.forEach(((t,r)=>{const{node:o}=t,a=o.getStage();a.setPointersPositions(e),void 0===t.pointerId&&(t.pointerId=i.Util._getFirstPointerId(e));const s=a._changedPointerPositions.find((e=>e.id===t.pointerId));if(s){if("dragging"!==t.dragStatus){var l=o.dragDistance();if(Math.max(Math.abs(s.x-t.startPointerPos.x),Math.abs(s.y-t.startPointerPos.y))<l)return;if(o.startDrag({evt:e}),!o.isDragging())return}o._setDragPosition(e,t),n.push(o)}})),n.forEach((t=>{t.fire("dragmove",{type:"dragmove",target:t,evt:e},!0)}))},_endDragBefore(e){const n=[];t.DD._dragElements.forEach((i=>{const{node:o}=i,a=o.getStage();e&&a.setPointersPositions(e);if(!a._changedPointerPositions.find((e=>e.id===i.pointerId)))return;"dragging"!==i.dragStatus&&"stopped"!==i.dragStatus||(t.DD.justDragged=!0,r.Konva._mouseListenClick=!1,r.Konva._touchListenClick=!1,r.Konva._pointerListenClick=!1,i.dragStatus="stopped");const s=i.node.getLayer()||i.node instanceof r.Konva.Stage&&i.node;s&&-1===n.indexOf(s)&&n.push(s)})),n.forEach((e=>{e.draw()}))},_endDragAfter(e){t.DD._dragElements.forEach(((n,r)=>{"stopped"===n.dragStatus&&n.node.fire("dragend",{type:"dragend",target:n.node,evt:e},!0),"dragging"!==n.dragStatus&&t.DD._dragElements.delete(r)}))}},r.Konva.isBrowser&&(window.addEventListener("mouseup",t.DD._endDragBefore,!0),window.addEventListener("touchend",t.DD._endDragBefore,!0),window.addEventListener("mousemove",t.DD._drag),window.addEventListener("touchmove",t.DD._drag),window.addEventListener("mouseup",t.DD._endDragAfter,!1),window.addEventListener("touchend",t.DD._endDragAfter,!1))},630:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Factory=void 0;const r=n(210),i=n(8049);var o="get",a="set";t.Factory={addGetterSetter(e,n,r,i,o){t.Factory.addGetter(e,n,r),t.Factory.addSetter(e,n,i,o),t.Factory.addOverloadedGetterSetter(e,n)},addGetter(e,t,n){var i=o+r.Util._capitalize(t);e.prototype[i]=e.prototype[i]||function(){var e=this.attrs[t];return void 0===e?n:e}},addSetter(e,n,i,o){var s=a+r.Util._capitalize(n);e.prototype[s]||t.Factory.overWriteSetter(e,n,i,o)},overWriteSetter(e,t,n,i){var o=a+r.Util._capitalize(t);e.prototype[o]=function(e){return n&&void 0!==e&&null!==e&&(e=n.call(this,e,t)),this._setAttr(t,e),i&&i.call(this),this}},addComponentsGetterSetter(e,n,s,l,u){var c,d,f=s.length,h=r.Util._capitalize,p=o+h(n),g=a+h(n);e.prototype[p]=function(){var e={};for(c=0;c<f;c++)e[d=s[c]]=this.getAttr(n+h(d));return e};var m=(0,i.getComponentValidator)(s);e.prototype[g]=function(e){var t,r=this.attrs[n];for(t in l&&(e=l.call(this,e)),m&&m.call(this,e,n),e)e.hasOwnProperty(t)&&this._setAttr(n+h(t),e[t]);return e||s.forEach((e=>{this._setAttr(n+h(e),void 0)})),this._fireChangeEvent(n,r,e),u&&u.call(this),this},t.Factory.addOverloadedGetterSetter(e,n)},addOverloadedGetterSetter(e,t){var n=r.Util._capitalize(t),i=a+n,s=o+n;e.prototype[t]=function(){return arguments.length?(this[i](arguments[0]),this):this[s]()}},addDeprecatedGetterSetter(e,n,i,a){r.Util.error("Adding deprecated "+n);var s=o+r.Util._capitalize(n),l=n+" property is deprecated and will be removed soon. Look at Konva change log for more information.";e.prototype[s]=function(){r.Util.error(l);var e=this.attrs[n];return void 0===e?i:e},t.Factory.addSetter(e,n,a,(function(){r.Util.error(l)})),t.Factory.addOverloadedGetterSetter(e,n)},backCompat(e,t){r.Util.each(t,(function(t,n){var i=e.prototype[n],s=o+r.Util._capitalize(t),l=a+r.Util._capitalize(t);function u(){i.apply(this,arguments),r.Util.error('"'+t+'" method is deprecated and will be removed soon. Use ""'+n+'" instead.')}e.prototype[t]=u,e.prototype[s]=u,e.prototype[l]=u}))},afterSetFilter(){this._filterUpToDate=!1}}},1775:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FastLayer=void 0;const r=n(210),i=n(689),o=n(2225);class a extends i.Layer{constructor(e){super(e),this.listening(!1),r.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}t.FastLayer=a,a.prototype.nodeType="FastLayer",(0,o._registerNode)(a)},2225:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._registerNode=t.Konva=t.glob=void 0;const r=Math.PI/180;t.glob="undefined"!==typeof n.g?n.g:"undefined"!==typeof window?window:"undefined"!==typeof WorkerGlobalScope?self:{},t.Konva={_global:t.glob,version:"9.3.9",isBrowser:"undefined"!==typeof window&&("[object Window]"==={}.toString.call(window)||"[object global]"==={}.toString.call(window)),isUnminified:/param/.test(function(e){}.toString()),dblClickWindow:400,getAngle:e=>t.Konva.angleDeg?e*r:e,enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,_fixTextRendering:!1,pixelRatio:"undefined"!==typeof window&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging:()=>t.Konva.DD.isDragging,isTransforming(){var e;return null===(e=t.Konva.Transformer)||void 0===e?void 0:e.isTransforming()},isDragReady:()=>!!t.Konva.DD.node,releaseCanvasOnDestroy:!0,document:t.glob.document,_injectGlobal(e){t.glob.Konva=e}};t._registerNode=e=>{t.Konva[e.prototype.getClassName()]=e},t.Konva._injectGlobal(t.Konva)},9739:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Group=void 0;const r=n(210),i=n(3503),o=n(2225);class a extends i.Container{_validateAdd(e){var t=e.getType();"Group"!==t&&"Shape"!==t&&r.Util.throw("You may only add groups and shapes to groups.")}}t.Group=a,a.prototype.nodeType="Group",(0,o._registerNode)(a)},689:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Layer=void 0;const r=n(210),i=n(3503),o=n(5862),a=n(630),s=n(6786),l=n(8049),u=n(7337),c=n(2225);var d=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],f=d.length;class h extends i.Container{constructor(e){super(e),this.canvas=new s.SceneCanvas,this.hitCanvas=new s.HitCanvas({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(e){return this.getContext().clear(e),this.getHitCanvas().getContext().clear(e),this}setZIndex(e){super.setZIndex(e);var t=this.getStage();return t&&t.content&&(t.content.removeChild(this.getNativeCanvasElement()),e<t.children.length-1?t.content.insertBefore(this.getNativeCanvasElement(),t.children[e+1].getCanvas()._canvas):t.content.appendChild(this.getNativeCanvasElement())),this}moveToTop(){o.Node.prototype.moveToTop.call(this);var e=this.getStage();return e&&e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.appendChild(this.getNativeCanvasElement())),!0}moveUp(){if(!o.Node.prototype.moveUp.call(this))return!1;var e=this.getStage();return!(!e||!e.content)&&(e.content.removeChild(this.getNativeCanvasElement()),this.index<e.children.length-1?e.content.insertBefore(this.getNativeCanvasElement(),e.children[this.index+1].getCanvas()._canvas):e.content.appendChild(this.getNativeCanvasElement()),!0)}moveDown(){if(o.Node.prototype.moveDown.call(this)){var e=this.getStage();if(e){var t=e.children;e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.insertBefore(this.getNativeCanvasElement(),t[this.index+1].getCanvas()._canvas))}return!0}return!1}moveToBottom(){if(o.Node.prototype.moveToBottom.call(this)){var e=this.getStage();if(e){var t=e.children;e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.insertBefore(this.getNativeCanvasElement(),t[1].getCanvas()._canvas))}return!0}return!1}getLayer(){return this}remove(){var e=this.getNativeCanvasElement();return o.Node.prototype.remove.call(this),e&&e.parentNode&&r.Util._isInDocument(e)&&e.parentNode.removeChild(e),this}getStage(){return this.parent}setSize(e){let{width:t,height:n}=e;return this.canvas.setSize(t,n),this.hitCanvas.setSize(t,n),this._setSmoothEnabled(),this}_validateAdd(e){var t=e.getType();"Group"!==t&&"Shape"!==t&&r.Util.throw("You may only add groups and shapes to a layer.")}_toKonvaCanvas(e){return(e=e||{}).width=e.width||this.getWidth(),e.height=e.height||this.getHeight(),e.x=void 0!==e.x?e.x:this.x(),e.y=void 0!==e.y?e.y:this.y(),o.Node.prototype._toKonvaCanvas.call(this,e)}_checkVisibility(){const e=this.visible();this.canvas._canvas.style.display=e?"block":"none"}_setSmoothEnabled(){this.getContext()._context.imageSmoothingEnabled=this.imageSmoothingEnabled()}getWidth(){if(this.parent)return this.parent.width()}setWidth(){r.Util.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){r.Util.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,r.Util.requestAnimFrame((()=>{this.draw(),this._waitingForDraw=!1}))),this}getIntersection(e){if(!this.isListening()||!this.isVisible())return null;for(var t=1,n=!1;;){for(let r=0;r<f;r++){const i=d[r],o=this._getIntersection({x:e.x+i.x*t,y:e.y+i.y*t}),a=o.shape;if(a)return a;if(n=!!o.antialiased,!o.antialiased)break}if(!n)return null;t+=1}}_getIntersection(e){const t=this.hitCanvas.pixelRatio,n=this.hitCanvas.context.getImageData(Math.round(e.x*t),Math.round(e.y*t),1,1).data,i=n[3];if(255===i){const e=r.Util._rgbToHex(n[0],n[1],n[2]),t=u.shapes["#"+e];return t?{shape:t}:{antialiased:!0}}return i>0?{antialiased:!0}:{}}drawScene(e,t){var n=this.getLayer(),r=e||n&&n.getCanvas();return this._fire("beforeDraw",{node:this}),this.clearBeforeDraw()&&r.getContext().clear(),i.Container.prototype.drawScene.call(this,r,t),this._fire("draw",{node:this}),this}drawHit(e,t){var n=this.getLayer(),r=e||n&&n.hitCanvas;return n&&n.clearBeforeDraw()&&n.getHitCanvas().getContext().clear(),i.Container.prototype.drawHit.call(this,r,t),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(e){r.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(e)}getHitGraphEnabled(e){return r.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(this.parent&&this.parent.content){var e=this.parent;!!this.hitCanvas._canvas.parentNode?e.content.removeChild(this.hitCanvas._canvas):e.content.appendChild(this.hitCanvas._canvas)}}destroy(){return r.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}}t.Layer=h,h.prototype.nodeType="Layer",(0,c._registerNode)(h),a.Factory.addGetterSetter(h,"imageSmoothingEnabled",!0),a.Factory.addGetterSetter(h,"clearBeforeDraw",!0),a.Factory.addGetterSetter(h,"hitGraphEnabled",!0,(0,l.getBooleanValidator)())},5862:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Node=void 0;const r=n(210),i=n(630),o=n(6786),a=n(2225),s=n(7098),l=n(8049);var u="absoluteOpacity",c="allEventListeners",d="absoluteTransform",f="absoluteScale",h="canvas",p="listening",g="mouseenter",m="mouseleave",y="Shape",v=" ",b="stage",x="transform",w="visible",M=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(v);let S=1;class j{constructor(e){this._id=S++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(e),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(e){e!==x&&e!==d||!this._cache.get(e)?e?this._cache.delete(e):this._cache.clear():this._cache.get(e).dirty=!0}_getCache(e,t){var n=this._cache.get(e);return(void 0===n||(e===x||e===d)&&!0===n.dirty)&&(n=t.call(this),this._cache.set(e,n)),n}_calculate(e,t,n){if(!this._attachedDepsListeners.get(e)){const n=t.map((e=>e+"Change.konva")).join(v);this.on(n,(()=>{this._clearCache(e)})),this._attachedDepsListeners.set(e,!0)}return this._getCache(e,n)}_getCanvasCache(){return this._cache.get(h)}_clearSelfAndDescendantCache(e){this._clearCache(e),e===d&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(h)){const{scene:e,filter:t,hit:n}=this._cache.get(h);r.Util.releaseCanvas(e,t,n),this._cache.delete(h)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(e){var t=e||{},n={};void 0!==t.x&&void 0!==t.y&&void 0!==t.width&&void 0!==t.height||(n=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));var i=Math.ceil(t.width||n.width),a=Math.ceil(t.height||n.height),s=t.pixelRatio,l=void 0===t.x?Math.floor(n.x):t.x,c=void 0===t.y?Math.floor(n.y):t.y,d=t.offset||0,p=t.drawBorder||!1,g=t.hitCanvasPixelRatio||1;if(!i||!a)return void r.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");i+=2*d+(Math.abs(Math.round(n.x)-l)>.5?1:0),a+=2*d+(Math.abs(Math.round(n.y)-c)>.5?1:0),l-=d,c-=d;var m=new o.SceneCanvas({pixelRatio:s,width:i,height:a}),y=new o.SceneCanvas({pixelRatio:s,width:0,height:0,willReadFrequently:!0}),v=new o.HitCanvas({pixelRatio:g,width:i,height:a}),b=m.getContext(),x=v.getContext();return v.isCache=!0,m.isCache=!0,this._cache.delete(h),this._filterUpToDate=!1,!1===t.imageSmoothingEnabled&&(m.getContext()._context.imageSmoothingEnabled=!1,y.getContext()._context.imageSmoothingEnabled=!1),b.save(),x.save(),b.translate(-l,-c),x.translate(-l,-c),this._isUnderCache=!0,this._clearSelfAndDescendantCache(u),this._clearSelfAndDescendantCache(f),this.drawScene(m,this),this.drawHit(v,this),this._isUnderCache=!1,b.restore(),x.restore(),p&&(b.save(),b.beginPath(),b.rect(0,0,i,a),b.closePath(),b.setAttr("strokeStyle","red"),b.setAttr("lineWidth",5),b.stroke(),b.restore()),this._cache.set(h,{scene:m,filter:y,hit:v,x:l,y:c}),this._requestDraw(),this}isCached(){return this._cache.has(h)}getClientRect(e){throw new Error('abstract "getClientRect" method call')}_transformedRect(e,t){var n=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}],r=1/0,i=1/0,o=-1/0,a=-1/0,s=this.getAbsoluteTransform(t);return n.forEach((function(e){var t=s.point(e);void 0===r&&(r=o=t.x,i=a=t.y),r=Math.min(r,t.x),i=Math.min(i,t.y),o=Math.max(o,t.x),a=Math.max(a,t.y)})),{x:r,y:i,width:o-r,height:a-i}}_drawCachedSceneCanvas(e){e.save(),e._applyOpacity(this),e._applyGlobalCompositeOperation(this);const t=this._getCanvasCache();e.translate(t.x,t.y);var n=this._getCachedSceneCanvas(),r=n.pixelRatio;e.drawImage(n._canvas,0,0,n.width/r,n.height/r),e.restore()}_drawCachedHitCanvas(e){var t=this._getCanvasCache(),n=t.hit;e.save(),e.translate(t.x,t.y),e.drawImage(n._canvas,0,0,n.width/n.pixelRatio,n.height/n.pixelRatio),e.restore()}_getCachedSceneCanvas(){var e,t,n,i,o=this.filters(),a=this._getCanvasCache(),s=a.scene,l=a.filter,u=l.getContext();if(o){if(!this._filterUpToDate){var c=s.pixelRatio;l.setSize(s.width/s.pixelRatio,s.height/s.pixelRatio);try{for(e=o.length,u.clear(),u.drawImage(s._canvas,0,0,s.getWidth()/c,s.getHeight()/c),t=u.getImageData(0,0,l.getWidth(),l.getHeight()),n=0;n<e;n++)"function"===typeof(i=o[n])?(i.call(this,t),u.putImageData(t,0,0)):r.Util.error("Filter should be type of function, but got "+typeof i+" instead. Please check correct filters")}catch(d){r.Util.error("Unable to apply filter. "+d.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}this._filterUpToDate=!0}return l}return s}on(e,t){if(this._cache&&this._cache.delete(c),3===arguments.length)return this._delegate.apply(this,arguments);var n,r,i,o,a=e.split(v),s=a.length;for(n=0;n<s;n++)i=(r=a[n].split("."))[0],o=r[1]||"",this.eventListeners[i]||(this.eventListeners[i]=[]),this.eventListeners[i].push({name:o,handler:t});return this}off(e,t){var n,r,i,o,a,s=(e||"").split(v),l=s.length;if(this._cache&&this._cache.delete(c),!e)for(r in this.eventListeners)this._off(r);for(n=0;n<l;n++)if(o=(i=s[n].split("."))[0],a=i[1],o)this.eventListeners[o]&&this._off(o,a,t);else for(r in this.eventListeners)this._off(r,a,t);return this}dispatchEvent(e){var t={target:this,type:e.type,evt:e};return this.fire(e.type,t),this}addEventListener(e,t){return this.on(e,(function(e){t.call(this,e.evt)})),this}removeEventListener(e){return this.off(e),this}_delegate(e,t,n){var i=this;this.on(e,(function(e){for(var o=e.target.findAncestors(t,!0,i),a=0;a<o.length;a++)(e=r.Util.cloneObject(e)).currentTarget=o[a],n.call(o[a],e)}))}remove(){return this.isDragging()&&this.stopDrag(),s.DD._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(d),this._clearSelfAndDescendantCache(u),this._clearSelfAndDescendantCache(f),this._clearSelfAndDescendantCache(b),this._clearSelfAndDescendantCache(w),this._clearSelfAndDescendantCache(p)}_remove(){this._clearCaches();var e=this.getParent();e&&e.children&&(e.children.splice(this.index,1),e._setChildrenIndices(),this.parent=null)}destroy(){return this.remove(),this.clearCache(),this}getAttr(e){var t="get"+r.Util._capitalize(e);return r.Util._isFunction(this[t])?this[t]():this.attrs[e]}getAncestors(){for(var e=this.getParent(),t=[];e;)t.push(e),e=e.getParent();return t}getAttrs(){return this.attrs||{}}setAttrs(e){return this._batchTransformChanges((()=>{var t,n;if(!e)return this;for(t in e)"children"!==t&&(n="set"+r.Util._capitalize(t),r.Util._isFunction(this[n])?this[n](e[t]):this._setAttr(t,e[t]))})),this}isListening(){return this._getCache(p,this._isListening)}_isListening(e){if(!this.listening())return!1;const t=this.getParent();return!t||t===e||this===e||t._isListening(e)}isVisible(){return this._getCache(w,this._isVisible)}_isVisible(e){if(!this.visible())return!1;const t=this.getParent();return!t||t===e||this===e||t._isVisible(e)}shouldDrawHit(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this._isVisible(e)&&this._isListening(e);var n=this.getLayer(),r=!1;s.DD._dragElements.forEach((e=>{"dragging"===e.dragStatus&&("Stage"===e.node.nodeType||e.node.getLayer()===n)&&(r=!0)}));var i=!t&&!a.Konva.hitOnDragEnabled&&(r||a.Konva.isTransforming());return this.isListening()&&this.isVisible()&&!i}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){var e,t,n,r,i=this.getDepth(),o=this,a=0;const s=this.getStage();return"Stage"!==o.nodeType&&s&&function s(l){for(e=[],t=l.length,n=0;n<t;n++)r=l[n],a++,r.nodeType!==y&&(e=e.concat(r.getChildren().slice())),r._id===o._id&&(n=t);e.length>0&&e[0].getDepth()<=i&&s(e)}(s.getChildren()),a}getDepth(){for(var e=0,t=this.parent;t;)e++,t=t.parent;return e}_batchTransformChanges(e){this._batchingTransformChange=!0,e(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(x),this._clearSelfAndDescendantCache(d)),this._needClearTransformCache=!1}setPosition(e){return this._batchTransformChanges((()=>{this.x(e.x),this.y(e.y)})),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const e=this.getStage();if(!e)return null;var t=e.getPointerPosition();if(!t)return null;var n=this.getAbsoluteTransform().copy();return n.invert(),n.point(t)}getAbsolutePosition(e){let t=!1,n=this.parent;for(;n;){if(n.isCached()){t=!0;break}n=n.parent}t&&!e&&(e=!0);var i=this.getAbsoluteTransform(e).getMatrix(),o=new r.Transform,a=this.offset();return o.m=i.slice(),o.translate(a.x,a.y),o.getTranslation()}setAbsolutePosition(e){const{x:t,y:n,...r}=this._clearTransform();this.attrs.x=t,this.attrs.y=n,this._clearCache(x);var i=this._getAbsoluteTransform().copy();return i.invert(),i.translate(e.x,e.y),e={x:this.attrs.x+i.getTranslation().x,y:this.attrs.y+i.getTranslation().y},this._setTransform(r),this.setPosition({x:e.x,y:e.y}),this._clearCache(x),this._clearSelfAndDescendantCache(d),this}_setTransform(e){var t;for(t in e)this.attrs[t]=e[t]}_clearTransform(){var e={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,e}move(e){var t=e.x,n=e.y,r=this.x(),i=this.y();return void 0!==t&&(r+=t),void 0!==n&&(i+=n),this.setPosition({x:r,y:i}),this}_eachAncestorReverse(e,t){var n,r,i=[],o=this.getParent();if(!t||t._id!==this._id){for(i.unshift(this);o&&(!t||o._id!==t._id);)i.unshift(o),o=o.parent;for(n=i.length,r=0;r<n;r++)e(i[r])}}rotate(e){return this.rotation(this.rotation()+e),this}moveToTop(){if(!this.parent)return r.Util.warn("Node has no parent. moveToTop function is ignored."),!1;var e=this.index;return e<this.parent.getChildren().length-1&&(this.parent.children.splice(e,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0)}moveUp(){if(!this.parent)return r.Util.warn("Node has no parent. moveUp function is ignored."),!1;var e=this.index;return e<this.parent.getChildren().length-1&&(this.parent.children.splice(e,1),this.parent.children.splice(e+1,0,this),this.parent._setChildrenIndices(),!0)}moveDown(){if(!this.parent)return r.Util.warn("Node has no parent. moveDown function is ignored."),!1;var e=this.index;return e>0&&(this.parent.children.splice(e,1),this.parent.children.splice(e-1,0,this),this.parent._setChildrenIndices(),!0)}moveToBottom(){if(!this.parent)return r.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;var e=this.index;return e>0&&(this.parent.children.splice(e,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0)}setZIndex(e){if(!this.parent)return r.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(e<0||e>=this.parent.children.length)&&r.Util.warn("Unexpected value "+e+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");var t=this.index;return this.parent.children.splice(t,1),this.parent.children.splice(e,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(u,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){var e=this.opacity(),t=this.getParent();return t&&!t._isUnderCache&&(e*=t.getAbsoluteOpacity()),e}moveTo(e){return this.getParent()!==e&&(this._remove(),e.add(this)),this}toObject(){var e,t,n,i,o=this.getAttrs();const a={attrs:{},className:this.getClassName()};for(e in o)t=o[e],r.Util.isObject(t)&&!r.Util._isPlainObject(t)&&!r.Util._isArray(t)||(n="function"===typeof this[e]&&this[e],delete o[e],i=n?n.call(this):null,o[e]=t,i!==t&&(a.attrs[e]=t));return r.Util._prepareToStringify(a)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(e,t,n){var r=[];t&&this._isMatch(e)&&r.push(this);for(var i=this.parent;i;){if(i===n)return r;i._isMatch(e)&&r.push(i),i=i.parent}return r}isAncestorOf(e){return!1}findAncestor(e,t,n){return this.findAncestors(e,t,n)[0]}_isMatch(e){if(!e)return!1;if("function"===typeof e)return e(this);var t,n,i=e.replace(/ /g,"").split(","),o=i.length;for(t=0;t<o;t++)if(n=i[t],r.Util.isValidSelector(n)||(r.Util.warn('Selector "'+n+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),r.Util.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),r.Util.warn("Konva is awesome, right?")),"#"===n.charAt(0)){if(this.id()===n.slice(1))return!0}else if("."===n.charAt(0)){if(this.hasName(n.slice(1)))return!0}else if(this.className===n||this.nodeType===n)return!0;return!1}getLayer(){var e=this.getParent();return e?e.getLayer():null}getStage(){return this._getCache(b,this._getStage)}_getStage(){var e=this.getParent();return e?e.getStage():null}fire(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return t.target=t.target||this,n?this._fireAndBubble(e,t):this._fire(e,t),this}getAbsoluteTransform(e){return e?this._getAbsoluteTransform(e):this._getCache(d,this._getAbsoluteTransform)}_getAbsoluteTransform(e){var t;if(e)return t=new r.Transform,this._eachAncestorReverse((function(e){var n=e.transformsEnabled();"all"===n?t.multiply(e.getTransform()):"position"===n&&t.translate(e.x()-e.offsetX(),e.y()-e.offsetY())}),e),t;t=this._cache.get(d)||new r.Transform,this.parent?this.parent.getAbsoluteTransform().copyInto(t):t.reset();var n=this.transformsEnabled();if("all"===n)t.multiply(this.getTransform());else if("position"===n){const e=this.attrs.x||0,n=this.attrs.y||0,r=this.attrs.offsetX||0,i=this.attrs.offsetY||0;t.translate(e-r,n-i)}return t.dirty=!1,t}getAbsoluteScale(e){for(var t=this;t;)t._isUnderCache&&(e=t),t=t.getParent();const n=this.getAbsoluteTransform(e).decompose();return{x:n.scaleX,y:n.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache(x,this._getTransform)}_getTransform(){var e,t,n=this._cache.get(x)||new r.Transform;n.reset();var i=this.x(),o=this.y(),s=a.Konva.getAngle(this.rotation()),l=null!==(e=this.attrs.scaleX)&&void 0!==e?e:1,u=null!==(t=this.attrs.scaleY)&&void 0!==t?t:1,c=this.attrs.skewX||0,d=this.attrs.skewY||0,f=this.attrs.offsetX||0,h=this.attrs.offsetY||0;return 0===i&&0===o||n.translate(i,o),0!==s&&n.rotate(s),0===c&&0===d||n.skew(c,d),1===l&&1===u||n.scale(l,u),0===f&&0===h||n.translate(-1*f,-1*h),n.dirty=!1,n}clone(e){var t,n,i,o,a,s=r.Util.cloneObject(this.attrs);for(t in e)s[t]=e[t];var l=new this.constructor(s);for(t in this.eventListeners)for(i=(n=this.eventListeners[t]).length,o=0;o<i;o++)(a=n[o]).name.indexOf("konva")<0&&(l.eventListeners[t]||(l.eventListeners[t]=[]),l.eventListeners[t].push(a));return l}_toKonvaCanvas(e){e=e||{};var t=this.getClientRect(),n=this.getStage(),r=void 0!==e.x?e.x:Math.floor(t.x),i=void 0!==e.y?e.y:Math.floor(t.y),a=e.pixelRatio||1,s=new o.SceneCanvas({width:e.width||Math.ceil(t.width)||(n?n.width():0),height:e.height||Math.ceil(t.height)||(n?n.height():0),pixelRatio:a}),l=s.getContext();const u=new o.SceneCanvas({width:s.width/s.pixelRatio+Math.abs(r),height:s.height/s.pixelRatio+Math.abs(i),pixelRatio:s.pixelRatio});return!1===e.imageSmoothingEnabled&&(l._context.imageSmoothingEnabled=!1),l.save(),(r||i)&&l.translate(-1*r,-1*i),this.drawScene(s,void 0,u),l.restore(),s}toCanvas(e){return this._toKonvaCanvas(e)._canvas}toDataURL(e){var t=(e=e||{}).mimeType||null,n=e.quality||null,r=this._toKonvaCanvas(e).toDataURL(t,n);return e.callback&&e.callback(r),r}toImage(e){return new Promise(((t,n)=>{try{const n=null===e||void 0===e?void 0:e.callback;n&&delete e.callback,r.Util._urlToImage(this.toDataURL(e),(function(e){t(e),null===n||void 0===n||n(e)}))}catch(i){n(i)}}))}toBlob(e){return new Promise(((t,n)=>{try{const n=null===e||void 0===e?void 0:e.callback;n&&delete e.callback,this.toCanvas(e).toBlob((e=>{t(e),null===n||void 0===n||n(e)}),null===e||void 0===e?void 0:e.mimeType,null===e||void 0===e?void 0:e.quality)}catch(r){n(r)}}))}setSize(e){return this.width(e.width),this.height(e.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return void 0!==this.attrs.dragDistance?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():a.Konva.dragDistance}_off(e,t,n){var r,i,o,a=this.eventListeners[e];for(r=0;r<a.length;r++)if(i=a[r].name,o=a[r].handler,("konva"!==i||"konva"===t)&&(!t||i===t)&&(!n||n===o)){if(a.splice(r,1),0===a.length){delete this.eventListeners[e];break}r--}}_fireChangeEvent(e,t,n){this._fire(e+"Change",{oldVal:t,newVal:n})}addName(e){if(!this.hasName(e)){var t=this.name(),n=t?t+" "+e:e;this.name(n)}return this}hasName(e){if(!e)return!1;const t=this.name();return!!t&&-1!==(t||"").split(/\s/g).indexOf(e)}removeName(e){var t=(this.name()||"").split(/\s/g),n=t.indexOf(e);return-1!==n&&(t.splice(n,1),this.name(t.join(" "))),this}setAttr(e,t){var n=this["set"+r.Util._capitalize(e)];return r.Util._isFunction(n)?n.call(this,t):this._setAttr(e,t),this}_requestDraw(){if(a.Konva.autoDrawEnabled){const e=this.getLayer()||this.getStage();null===e||void 0===e||e.batchDraw()}}_setAttr(e,t){var n=this.attrs[e];(n!==t||r.Util.isObject(t))&&(void 0===t||null===t?delete this.attrs[e]:this.attrs[e]=t,this._shouldFireChangeEvents&&this._fireChangeEvent(e,n,t),this._requestDraw())}_setComponentAttr(e,t,n){var r;void 0!==n&&((r=this.attrs[e])||(this.attrs[e]=this.getAttr(e)),this.attrs[e][t]=n,this._fireChangeEvent(e,r,n))}_fireAndBubble(e,t,n){if(t&&this.nodeType===y&&(t.target=this),!((e===g||e===m)&&(n&&(this===n||this.isAncestorOf&&this.isAncestorOf(n))||"Stage"===this.nodeType&&!n))){this._fire(e,t);var r=(e===g||e===m)&&n&&n.isAncestorOf&&n.isAncestorOf(this)&&!n.isAncestorOf(this.parent);(t&&!t.cancelBubble||!t)&&this.parent&&this.parent.isListening()&&!r&&(n&&n.parent?this._fireAndBubble.call(this.parent,e,t,n):this._fireAndBubble.call(this.parent,e,t))}}_getProtoListeners(e){var t,n,r;const i=null!==(t=this._cache.get(c))&&void 0!==t?t:{};let o=null===i||void 0===i?void 0:i[e];if(void 0===o){o=[];let t=Object.getPrototypeOf(this);for(;t;){const i=null!==(r=null===(n=t.eventListeners)||void 0===n?void 0:n[e])&&void 0!==r?r:[];o.push(...i),t=Object.getPrototypeOf(t)}i[e]=o,this._cache.set(c,i)}return o}_fire(e,t){(t=t||{}).currentTarget=this,t.type=e;const n=this._getProtoListeners(e);if(n)for(var r=0;r<n.length;r++)n[r].handler.call(this,t);const i=this.eventListeners[e];if(i)for(r=0;r<i.length;r++)i[r].handler.call(this,t)}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(e){var t=e?e.pointerId:void 0,n=this.getStage(),r=this.getAbsolutePosition();if(n){var i=n._getPointerById(t)||n._changedPointerPositions[0]||r;s.DD._dragElements.set(this._id,{node:this,startPointerPos:i,offset:{x:i.x-r.x,y:i.y-r.y},dragStatus:"ready",pointerId:t})}}startDrag(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];s.DD._dragElements.has(this._id)||this._createDragElement(e);s.DD._dragElements.get(this._id).dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:e&&e.evt},t)}_setDragPosition(e,t){const n=this.getStage()._getPointerById(t.pointerId);if(n){var i={x:n.x-t.offset.x,y:n.y-t.offset.y},o=this.dragBoundFunc();if(void 0!==o){const t=o.call(this,i,e);t?i=t:r.Util.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}this._lastPos&&this._lastPos.x===i.x&&this._lastPos.y===i.y||(this.setAbsolutePosition(i),this._requestDraw()),this._lastPos=i}}stopDrag(e){const t=s.DD._dragElements.get(this._id);t&&(t.dragStatus="stopped"),s.DD._endDragBefore(e),s.DD._endDragAfter(e)}setDraggable(e){this._setAttr("draggable",e),this._dragChange()}isDragging(){const e=s.DD._dragElements.get(this._id);return!!e&&"dragging"===e.dragStatus}_listenDrag(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",(function(e){if((!(void 0!==e.evt.button)||a.Konva.dragButtons.indexOf(e.evt.button)>=0)&&!this.isDragging()){var t=!1;s.DD._dragElements.forEach((e=>{this.isAncestorOf(e.node)&&(t=!0)})),t||this._createDragElement(e)}}))}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{if(this._dragCleanup(),!this.getStage())return;const e=s.DD._dragElements.get(this._id),t=e&&"dragging"===e.dragStatus,n=e&&"ready"===e.dragStatus;t?this.stopDrag():n&&s.DD._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{x:0,y:0};const t=this.getStage();if(!t)return!1;const n={x:-e.x,y:-e.y,width:t.width()+2*e.x,height:t.height()+2*e.y};return r.Util.haveIntersection(n,this.getClientRect())}static create(e,t){return r.Util._isString(e)&&(e=JSON.parse(e)),this._createNode(e,t)}static _createNode(e,t){var n,i,o,s=j.prototype.getClassName.call(e),l=e.children;t&&(e.attrs.container=t),a.Konva[s]||(r.Util.warn('Can not find a node with class name "'+s+'". Fallback to "Shape".'),s="Shape");if(n=new(0,a.Konva[s])(e.attrs),l)for(i=l.length,o=0;o<i;o++)n.add(j._createNode(l[o]));return n}}t.Node=j,j.prototype.nodeType="Node",j.prototype._attrsAffectingSize=[],j.prototype.eventListeners={},j.prototype.on.call(j.prototype,M,(function(){this._batchingTransformChange?this._needClearTransformCache=!0:(this._clearCache(x),this._clearSelfAndDescendantCache(d))})),j.prototype.on.call(j.prototype,"visibleChange.konva",(function(){this._clearSelfAndDescendantCache(w)})),j.prototype.on.call(j.prototype,"listeningChange.konva",(function(){this._clearSelfAndDescendantCache(p)})),j.prototype.on.call(j.prototype,"opacityChange.konva",(function(){this._clearSelfAndDescendantCache(u)}));const N=i.Factory.addGetterSetter;N(j,"zIndex"),N(j,"absolutePosition"),N(j,"position"),N(j,"x",0,(0,l.getNumberValidator)()),N(j,"y",0,(0,l.getNumberValidator)()),N(j,"globalCompositeOperation","source-over",(0,l.getStringValidator)()),N(j,"opacity",1,(0,l.getNumberValidator)()),N(j,"name","",(0,l.getStringValidator)()),N(j,"id","",(0,l.getStringValidator)()),N(j,"rotation",0,(0,l.getNumberValidator)()),i.Factory.addComponentsGetterSetter(j,"scale",["x","y"]),N(j,"scaleX",1,(0,l.getNumberValidator)()),N(j,"scaleY",1,(0,l.getNumberValidator)()),i.Factory.addComponentsGetterSetter(j,"skew",["x","y"]),N(j,"skewX",0,(0,l.getNumberValidator)()),N(j,"skewY",0,(0,l.getNumberValidator)()),i.Factory.addComponentsGetterSetter(j,"offset",["x","y"]),N(j,"offsetX",0,(0,l.getNumberValidator)()),N(j,"offsetY",0,(0,l.getNumberValidator)()),N(j,"dragDistance",null,(0,l.getNumberValidator)()),N(j,"width",0,(0,l.getNumberValidator)()),N(j,"height",0,(0,l.getNumberValidator)()),N(j,"listening",!0,(0,l.getBooleanValidator)()),N(j,"preventDefault",!0,(0,l.getBooleanValidator)()),N(j,"filters",null,(function(e){return this._filterUpToDate=!1,e})),N(j,"visible",!0,(0,l.getBooleanValidator)()),N(j,"transformsEnabled","all",(0,l.getStringValidator)()),N(j,"size"),N(j,"dragBoundFunc"),N(j,"draggable",!1,(0,l.getBooleanValidator)()),i.Factory.backCompat(j,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"})},6244:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.releaseCapture=t.setPointerCapture=t.hasPointerCapture=t.createEvent=t.getCapturedShape=void 0;const r=n(2225),i=new Map,o=void 0!==r.Konva._global.PointerEvent;function a(e){return{evt:e,pointerId:e.pointerId}}function s(e,t){const n=i.get(e);if(!n)return;const r=n.getStage();r&&r.content,i.delete(e),o&&n._fire("lostpointercapture",a(new PointerEvent("lostpointercapture")))}t.getCapturedShape=function(e){return i.get(e)},t.createEvent=a,t.hasPointerCapture=function(e,t){return i.get(e)===t},t.setPointerCapture=function(e,t){s(e),t.getStage()&&(i.set(e,t),o&&t._fire("gotpointercapture",a(new PointerEvent("gotpointercapture"))))},t.releaseCapture=s},7337:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Shape=t.shapes=void 0;const r=n(2225),i=n(210),o=n(630),a=n(5862),s=n(8049),l=n(2225),u=n(6244);var c="hasShadow",d="shadowRGBA",f="patternImage",h="linearGradient",p="radialGradient";let g;function m(){return g||(g=i.Util.createCanvasElement().getContext("2d"),g)}t.shapes={};class y extends a.Node{constructor(e){let n;for(super(e);n=i.Util.getRandomColor(),!n||n in t.shapes;);this.colorKey=n,t.shapes[n]=this}getContext(){return i.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return i.Util.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(c,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&0!==this.shadowOpacity()&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(f,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){const e=m().createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(e&&e.setTransform){const t=new i.Transform;t.translate(this.fillPatternX(),this.fillPatternY()),t.rotate(r.Konva.getAngle(this.fillPatternRotation())),t.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),t.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const n=t.getMatrix(),o="undefined"===typeof DOMMatrix?{a:n[0],b:n[1],c:n[2],d:n[3],e:n[4],f:n[5]}:new DOMMatrix(n);e.setTransform(o)}return e}}_getLinearGradient(){return this._getCache(h,this.__getLinearGradient)}__getLinearGradient(){var e=this.fillLinearGradientColorStops();if(e){for(var t=m(),n=this.fillLinearGradientStartPoint(),r=this.fillLinearGradientEndPoint(),i=t.createLinearGradient(n.x,n.y,r.x,r.y),o=0;o<e.length;o+=2)i.addColorStop(e[o],e[o+1]);return i}}_getRadialGradient(){return this._getCache(p,this.__getRadialGradient)}__getRadialGradient(){var e=this.fillRadialGradientColorStops();if(e){for(var t=m(),n=this.fillRadialGradientStartPoint(),r=this.fillRadialGradientEndPoint(),i=t.createRadialGradient(n.x,n.y,this.fillRadialGradientStartRadius(),r.x,r.y,this.fillRadialGradientEndRadius()),o=0;o<e.length;o+=2)i.addColorStop(e[o],e[o+1]);return i}}getShadowRGBA(){return this._getCache(d,this._getShadowRGBA)}_getShadowRGBA(){if(this.hasShadow()){var e=i.Util.colorToRGBA(this.shadowColor());return e?"rgba("+e.r+","+e.g+","+e.b+","+e.a*(this.shadowOpacity()||1)+")":void 0}}hasFill(){return this._calculate("hasFill",["fillEnabled","fill","fillPatternImage","fillLinearGradientColorStops","fillRadialGradientColorStops"],(()=>this.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops())))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],(()=>this.strokeEnabled()&&this.strokeWidth()&&!(!this.stroke()&&!this.strokeLinearGradientColorStops())))}hasHitStroke(){const e=this.hitStrokeWidth();return"auto"===e?this.hasStroke():this.strokeEnabled()&&!!e}intersects(e){var t=this.getStage();if(!t)return!1;const n=t.bufferHitCanvas;n.getContext().clear(),this.drawHit(n,void 0,!0);return n.context.getImageData(Math.round(e.x),Math.round(e.y),1,1).data[3]>0}destroy(){return a.Node.prototype.destroy.call(this),delete t.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(e){var t;if(!(null===(t=this.attrs.perfectDrawEnabled)||void 0===t||t))return!1;const n=e||this.hasFill(),r=this.hasStroke(),i=1!==this.getAbsoluteOpacity();if(n&&r&&i)return!0;const o=this.hasShadow(),a=this.shadowForStrokeEnabled();return!!(n&&r&&o&&a)}setStrokeHitEnabled(e){i.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),e?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return 0!==this.hitStrokeWidth()}getSelfRect(){var e=this.size();return{x:this._centroid?-e.width/2:0,y:this._centroid?-e.height/2:0,width:e.width,height:e.height}}getClientRect(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.skipTransform,n=e.relativeTo,r=this.getSelfRect(),i=!e.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,o=r.width+i,a=r.height+i,s=!e.skipShadow&&this.hasShadow(),l=s?this.shadowOffsetX():0,u=s?this.shadowOffsetY():0,c=o+Math.abs(l),d=a+Math.abs(u),f=s&&this.shadowBlur()||0,h={width:c+2*f,height:d+2*f,x:-(i/2+f)+Math.min(l,0)+r.x,y:-(i/2+f)+Math.min(u,0)+r.y};return t?h:this._transformedRect(h,n)}drawScene(e,t,n){var r,i,o=this.getLayer(),a=e||o.getCanvas(),s=a.getContext(),l=this._getCanvasCache(),u=this.getSceneFunc(),c=this.hasShadow(),d=a.isCache,f=t===this;if(!this.isVisible()&&!f)return this;if(l){s.save();var h=this.getAbsoluteTransform(t).getMatrix();return s.transform(h[0],h[1],h[2],h[3],h[4],h[5]),this._drawCachedSceneCanvas(s),s.restore(),this}if(!u)return this;if(s.save(),this._useBufferCanvas()&&!d){r=this.getStage();const e=n||r.bufferCanvas;(i=e.getContext()).clear(),i.save(),i._applyLineJoin(this);var p=this.getAbsoluteTransform(t).getMatrix();i.transform(p[0],p[1],p[2],p[3],p[4],p[5]),u.call(this,i,this),i.restore();var g=e.pixelRatio;c&&s._applyShadow(this),s._applyOpacity(this),s._applyGlobalCompositeOperation(this),s.drawImage(e._canvas,0,0,e.width/g,e.height/g)}else{if(s._applyLineJoin(this),!f){p=this.getAbsoluteTransform(t).getMatrix();s.transform(p[0],p[1],p[2],p[3],p[4],p[5]),s._applyOpacity(this),s._applyGlobalCompositeOperation(this)}c&&s._applyShadow(this),u.call(this,s,this)}return s.restore(),this}drawHit(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.shouldDrawHit(t,n))return this;var r=this.getLayer(),o=e||r.hitCanvas,a=o&&o.getContext(),s=this.hitFunc()||this.sceneFunc(),l=this._getCanvasCache(),u=l&&l.hit;if(this.colorKey||i.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),u){a.save();var c=this.getAbsoluteTransform(t).getMatrix();return a.transform(c[0],c[1],c[2],c[3],c[4],c[5]),this._drawCachedHitCanvas(a),a.restore(),this}if(!s)return this;a.save(),a._applyLineJoin(this);if(!(this===t)){var d=this.getAbsoluteTransform(t).getMatrix();a.transform(d[0],d[1],d[2],d[3],d[4],d[5])}return s.call(this,a,this),a.restore(),this}drawHitFromCache(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;var t,n,r,o,a,s=this._getCanvasCache(),l=this._getCachedSceneCanvas(),u=s.hit,c=u.getContext(),d=u.getWidth(),f=u.getHeight();c.clear(),c.drawImage(l._canvas,0,0,d,f);try{for(r=(n=(t=c.getImageData(0,0,d,f)).data).length,o=i.Util._hexToRgb(this.colorKey),a=0;a<r;a+=4)n[a+3]>e?(n[a]=o.r,n[a+1]=o.g,n[a+2]=o.b,n[a+3]=255):n[a+3]=0;c.putImageData(t,0,0)}catch(h){i.Util.error("Unable to draw hit graph from cached scene canvas. "+h.message)}return this}hasPointerCapture(e){return u.hasPointerCapture(e,this)}setPointerCapture(e){u.setPointerCapture(e,this)}releaseCapture(e){u.releaseCapture(e,this)}}t.Shape=y,y.prototype._fillFunc=function(e){const t=this.attrs.fillRule;t?e.fill(t):e.fill()},y.prototype._strokeFunc=function(e){e.stroke()},y.prototype._fillFuncHit=function(e){e.fill()},y.prototype._strokeFuncHit=function(e){e.stroke()},y.prototype._centroid=!1,y.prototype.nodeType="Shape",(0,l._registerNode)(y),y.prototype.eventListeners={},y.prototype.on.call(y.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",(function(){this._clearCache(c)})),y.prototype.on.call(y.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",(function(){this._clearCache(d)})),y.prototype.on.call(y.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",(function(){this._clearCache(f)})),y.prototype.on.call(y.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",(function(){this._clearCache(h)})),y.prototype.on.call(y.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",(function(){this._clearCache(p)})),o.Factory.addGetterSetter(y,"stroke",void 0,(0,s.getStringOrGradientValidator)()),o.Factory.addGetterSetter(y,"strokeWidth",2,(0,s.getNumberValidator)()),o.Factory.addGetterSetter(y,"fillAfterStrokeEnabled",!1),o.Factory.addGetterSetter(y,"hitStrokeWidth","auto",(0,s.getNumberOrAutoValidator)()),o.Factory.addGetterSetter(y,"strokeHitEnabled",!0,(0,s.getBooleanValidator)()),o.Factory.addGetterSetter(y,"perfectDrawEnabled",!0,(0,s.getBooleanValidator)()),o.Factory.addGetterSetter(y,"shadowForStrokeEnabled",!0,(0,s.getBooleanValidator)()),o.Factory.addGetterSetter(y,"lineJoin"),o.Factory.addGetterSetter(y,"lineCap"),o.Factory.addGetterSetter(y,"sceneFunc"),o.Factory.addGetterSetter(y,"hitFunc"),o.Factory.addGetterSetter(y,"dash"),o.Factory.addGetterSetter(y,"dashOffset",0,(0,s.getNumberValidator)()),o.Factory.addGetterSetter(y,"shadowColor",void 0,(0,s.getStringValidator)()),o.Factory.addGetterSetter(y,"shadowBlur",0,(0,s.getNumberValidator)()),o.Factory.addGetterSetter(y,"shadowOpacity",1,(0,s.getNumberValidator)()),o.Factory.addComponentsGetterSetter(y,"shadowOffset",["x","y"]),o.Factory.addGetterSetter(y,"shadowOffsetX",0,(0,s.getNumberValidator)()),o.Factory.addGetterSetter(y,"shadowOffsetY",0,(0,s.getNumberValidator)()),o.Factory.addGetterSetter(y,"fillPatternImage"),o.Factory.addGetterSetter(y,"fill",void 0,(0,s.getStringOrGradientValidator)()),o.Factory.addGetterSetter(y,"fillPatternX",0,(0,s.getNumberValidator)()),o.Factory.addGetterSetter(y,"fillPatternY",0,(0,s.getNumberValidator)()),o.Factory.addGetterSetter(y,"fillLinearGradientColorStops"),o.Factory.addGetterSetter(y,"strokeLinearGradientColorStops"),o.Factory.addGetterSetter(y,"fillRadialGradientStartRadius",0),o.Factory.addGetterSetter(y,"fillRadialGradientEndRadius",0),o.Factory.addGetterSetter(y,"fillRadialGradientColorStops"),o.Factory.addGetterSetter(y,"fillPatternRepeat","repeat"),o.Factory.addGetterSetter(y,"fillEnabled",!0),o.Factory.addGetterSetter(y,"strokeEnabled",!0),o.Factory.addGetterSetter(y,"shadowEnabled",!0),o.Factory.addGetterSetter(y,"dashEnabled",!0),o.Factory.addGetterSetter(y,"strokeScaleEnabled",!0),o.Factory.addGetterSetter(y,"fillPriority","color"),o.Factory.addComponentsGetterSetter(y,"fillPatternOffset",["x","y"]),o.Factory.addGetterSetter(y,"fillPatternOffsetX",0,(0,s.getNumberValidator)()),o.Factory.addGetterSetter(y,"fillPatternOffsetY",0,(0,s.getNumberValidator)()),o.Factory.addComponentsGetterSetter(y,"fillPatternScale",["x","y"]),o.Factory.addGetterSetter(y,"fillPatternScaleX",1,(0,s.getNumberValidator)()),o.Factory.addGetterSetter(y,"fillPatternScaleY",1,(0,s.getNumberValidator)()),o.Factory.addComponentsGetterSetter(y,"fillLinearGradientStartPoint",["x","y"]),o.Factory.addComponentsGetterSetter(y,"strokeLinearGradientStartPoint",["x","y"]),o.Factory.addGetterSetter(y,"fillLinearGradientStartPointX",0),o.Factory.addGetterSetter(y,"strokeLinearGradientStartPointX",0),o.Factory.addGetterSetter(y,"fillLinearGradientStartPointY",0),o.Factory.addGetterSetter(y,"strokeLinearGradientStartPointY",0),o.Factory.addComponentsGetterSetter(y,"fillLinearGradientEndPoint",["x","y"]),o.Factory.addComponentsGetterSetter(y,"strokeLinearGradientEndPoint",["x","y"]),o.Factory.addGetterSetter(y,"fillLinearGradientEndPointX",0),o.Factory.addGetterSetter(y,"strokeLinearGradientEndPointX",0),o.Factory.addGetterSetter(y,"fillLinearGradientEndPointY",0),o.Factory.addGetterSetter(y,"strokeLinearGradientEndPointY",0),o.Factory.addComponentsGetterSetter(y,"fillRadialGradientStartPoint",["x","y"]),o.Factory.addGetterSetter(y,"fillRadialGradientStartPointX",0),o.Factory.addGetterSetter(y,"fillRadialGradientStartPointY",0),o.Factory.addComponentsGetterSetter(y,"fillRadialGradientEndPoint",["x","y"]),o.Factory.addGetterSetter(y,"fillRadialGradientEndPointX",0),o.Factory.addGetterSetter(y,"fillRadialGradientEndPointY",0),o.Factory.addGetterSetter(y,"fillPatternRotation",0),o.Factory.addGetterSetter(y,"fillRule",void 0,(0,s.getStringValidator)()),o.Factory.backCompat(y,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})},5878:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Stage=t.stages=void 0;const r=n(210),i=n(630),o=n(3503),a=n(2225),s=n(6786),l=n(7098),u=n(2225),c=n(6244);var d="mouseleave",f="mouseover",h="mouseenter",p="mousemove",g="mousedown",m="mouseup",y="pointermove",v="pointerdown",b="pointerup",x="pointercancel",w="pointerout",M="pointerleave",S="pointerover",j="pointerenter",N="contextmenu",C="touchstart",A="touchend",T="touchmove",E="touchcancel",D="wheel",k=[[h,"_pointerenter"],[g,"_pointerdown"],[p,"_pointermove"],[m,"_pointerup"],[d,"_pointerleave"],[C,"_pointerdown"],[T,"_pointermove"],[A,"_pointerup"],[E,"_pointercancel"],[f,"_pointerover"],[D,"_wheel"],[N,"_contextmenu"],[v,"_pointerdown"],[y,"_pointermove"],[b,"_pointerup"],[x,"_pointercancel"],["lostpointercapture","_lostpointercapture"]];const O={mouse:{[w]:"mouseout",[M]:d,[S]:f,[j]:h,[y]:p,[v]:g,[b]:m,[x]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[w]:"touchout",[M]:"touchleave",[S]:"touchover",[j]:"touchenter",[y]:T,[v]:C,[b]:A,[x]:E,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[w]:w,[M]:M,[S]:S,[j]:j,[y]:y,[v]:v,[b]:b,[x]:x,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},I=e=>e.indexOf("pointer")>=0?"pointer":e.indexOf("touch")>=0?"touch":"mouse",_=e=>{const t=I(e);return"pointer"===t?a.Konva.pointerEventsEnabled&&O.pointer:"touch"===t?O.touch:"mouse"===t?O.mouse:void 0};function P(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e.clipFunc||e.clipWidth||e.clipHeight)&&r.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),e}t.stages=[];class L extends o.Container{constructor(e){super(P(e)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),t.stages.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",(()=>{P(this.attrs)})),this._checkVisibility()}_validateAdd(e){const t="Layer"===e.getType(),n="FastLayer"===e.getType();t||n||r.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const e=this.visible()?"":"none";this.content.style.display=e}setContainer(e){if("string"===typeof e){if("."===e.charAt(0)){var t=e.slice(1);e=document.getElementsByClassName(t)[0]}else{var n;n="#"!==e.charAt(0)?e:e.slice(1),e=document.getElementById(n)}if(!e)throw"Can not find container in document with id "+n}return this._setAttr("container",e),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),e.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){var e,t=this.children,n=t.length;for(e=0;e<n;e++)t[e].clear();return this}clone(e){return e||(e={}),e.container="undefined"!==typeof document&&document.createElement("div"),o.Container.prototype.clone.call(this,e)}destroy(){super.destroy();var e=this.content;e&&r.Util._isInDocument(e)&&this.container().removeChild(e);var n=t.stages.indexOf(this);return n>-1&&t.stages.splice(n,1),r.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const e=this._pointerPositions[0]||this._changedPointerPositions[0];return e?{x:e.x,y:e.y}:(r.Util.warn("Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);"),null)}_getPointerById(e){return this._pointerPositions.find((t=>t.id===e))}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(e){(e=e||{}).x=e.x||0,e.y=e.y||0,e.width=e.width||this.width(),e.height=e.height||this.height();var t=new s.SceneCanvas({width:e.width,height:e.height,pixelRatio:e.pixelRatio||1}),n=t.getContext()._context,r=this.children;return(e.x||e.y)&&n.translate(-1*e.x,-1*e.y),r.forEach((function(t){if(t.isVisible()){var r=t._toKonvaCanvas(e);n.drawImage(r._canvas,e.x,e.y,r.getWidth()/r.getPixelRatio(),r.getHeight()/r.getPixelRatio())}})),t}getIntersection(e){if(!e)return null;var t,n=this.children;for(t=n.length-1;t>=0;t--){const r=n[t].getIntersection(e);if(r)return r}return null}_resizeDOM(){var e=this.width(),t=this.height();this.content&&(this.content.style.width=e+"px",this.content.style.height=t+"px"),this.bufferCanvas.setSize(e,t),this.bufferHitCanvas.setSize(e,t),this.children.forEach((n=>{n.setSize({width:e,height:t}),n.draw()}))}add(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if(arguments.length>1){for(var o=0;o<arguments.length;o++)this.add(arguments[o]);return this}super.add(e);var s=this.children.length;return s>5&&r.Util.warn("The stage has "+s+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),e.setSize({width:this.width(),height:this.height()}),e.draw(),a.Konva.isBrowser&&this.content.appendChild(e.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(e){return c.hasPointerCapture(e,this)}setPointerCapture(e){c.setPointerCapture(e,this)}releaseCapture(e){c.releaseCapture(e,this)}getLayers(){return this.children}_bindContentEvents(){a.Konva.isBrowser&&k.forEach((e=>{let[t,n]=e;this.content.addEventListener(t,(e=>{this[n](e)}),{passive:!1})}))}_pointerenter(e){this.setPointersPositions(e);const t=_(e.type);t&&this._fire(t.pointerenter,{evt:e,target:this,currentTarget:this})}_pointerover(e){this.setPointersPositions(e);const t=_(e.type);t&&this._fire(t.pointerover,{evt:e,target:this,currentTarget:this})}_getTargetShape(e){let t=this[e+"targetShape"];return t&&!t.getStage()&&(t=null),t}_pointerleave(e){const t=_(e.type),n=I(e.type);if(t){this.setPointersPositions(e);var r=this._getTargetShape(n),i=!(a.Konva.isDragging()||a.Konva.isTransforming())||a.Konva.hitOnDragEnabled;r&&i?(r._fireAndBubble(t.pointerout,{evt:e}),r._fireAndBubble(t.pointerleave,{evt:e}),this._fire(t.pointerleave,{evt:e,target:this,currentTarget:this}),this[n+"targetShape"]=null):i&&(this._fire(t.pointerleave,{evt:e,target:this,currentTarget:this}),this._fire(t.pointerout,{evt:e,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}}_pointerdown(e){const t=_(e.type),n=I(e.type);if(t){this.setPointersPositions(e);var r=!1;this._changedPointerPositions.forEach((i=>{var o=this.getIntersection(i);if(l.DD.justDragged=!1,a.Konva["_"+n+"ListenClick"]=!0,!o||!o.isListening())return void(this[n+"ClickStartShape"]=void 0);a.Konva.capturePointerEventsEnabled&&o.setPointerCapture(i.id),this[n+"ClickStartShape"]=o,o._fireAndBubble(t.pointerdown,{evt:e,pointerId:i.id}),r=!0;const s=e.type.indexOf("touch")>=0;o.preventDefault()&&e.cancelable&&s&&e.preventDefault()})),r||this._fire(t.pointerdown,{evt:e,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}}_pointermove(e){const t=_(e.type),n=I(e.type);if(!t)return;if(a.Konva.isDragging()&&l.DD.node.preventDefault()&&e.cancelable&&e.preventDefault(),this.setPointersPositions(e),!(!(a.Konva.isDragging()||a.Konva.isTransforming())||a.Konva.hitOnDragEnabled))return;var r={};let i=!1;var o=this._getTargetShape(n);this._changedPointerPositions.forEach((a=>{const s=c.getCapturedShape(a.id)||this.getIntersection(a),l=a.id,u={evt:e,pointerId:l};var d=o!==s;if(d&&o&&(o._fireAndBubble(t.pointerout,{...u},s),o._fireAndBubble(t.pointerleave,{...u},s)),s){if(r[s._id])return;r[s._id]=!0}s&&s.isListening()?(i=!0,d&&(s._fireAndBubble(t.pointerover,{...u},o),s._fireAndBubble(t.pointerenter,{...u},o),this[n+"targetShape"]=s),s._fireAndBubble(t.pointermove,{...u})):o&&(this._fire(t.pointerover,{evt:e,target:this,currentTarget:this,pointerId:l}),this[n+"targetShape"]=null)})),i||this._fire(t.pointermove,{evt:e,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(e){const t=_(e.type),n=I(e.type);if(!t)return;this.setPointersPositions(e);const r=this[n+"ClickStartShape"],i=this[n+"ClickEndShape"];var o={};let s=!1;this._changedPointerPositions.forEach((u=>{const d=c.getCapturedShape(u.id)||this.getIntersection(u);if(d){if(d.releaseCapture(u.id),o[d._id])return;o[d._id]=!0}const f=u.id,h={evt:e,pointerId:f};let p=!1;a.Konva["_"+n+"InDblClickWindow"]?(p=!0,clearTimeout(this[n+"DblTimeout"])):l.DD.justDragged||(a.Konva["_"+n+"InDblClickWindow"]=!0,clearTimeout(this[n+"DblTimeout"])),this[n+"DblTimeout"]=setTimeout((function(){a.Konva["_"+n+"InDblClickWindow"]=!1}),a.Konva.dblClickWindow),d&&d.isListening()?(s=!0,this[n+"ClickEndShape"]=d,d._fireAndBubble(t.pointerup,{...h}),a.Konva["_"+n+"ListenClick"]&&r&&r===d&&(d._fireAndBubble(t.pointerclick,{...h}),p&&i&&i===d&&d._fireAndBubble(t.pointerdblclick,{...h}))):(this[n+"ClickEndShape"]=null,a.Konva["_"+n+"ListenClick"]&&this._fire(t.pointerclick,{evt:e,target:this,currentTarget:this,pointerId:f}),p&&this._fire(t.pointerdblclick,{evt:e,target:this,currentTarget:this,pointerId:f}))})),s||this._fire(t.pointerup,{evt:e,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),a.Konva["_"+n+"ListenClick"]=!1,e.cancelable&&"touch"!==n&&e.preventDefault()}_contextmenu(e){this.setPointersPositions(e);var t=this.getIntersection(this.getPointerPosition());t&&t.isListening()?t._fireAndBubble(N,{evt:e}):this._fire(N,{evt:e,target:this,currentTarget:this})}_wheel(e){this.setPointersPositions(e);var t=this.getIntersection(this.getPointerPosition());t&&t.isListening()?t._fireAndBubble(D,{evt:e}):this._fire(D,{evt:e,target:this,currentTarget:this})}_pointercancel(e){this.setPointersPositions(e);const t=c.getCapturedShape(e.pointerId)||this.getIntersection(this.getPointerPosition());t&&t._fireAndBubble(b,c.createEvent(e)),c.releaseCapture(e.pointerId)}_lostpointercapture(e){c.releaseCapture(e.pointerId)}setPointersPositions(e){var t=this._getContentPosition(),n=null,i=null;void 0!==(e=e||window.event).touches?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(e.touches,(e=>{this._pointerPositions.push({id:e.identifier,x:(e.clientX-t.left)/t.scaleX,y:(e.clientY-t.top)/t.scaleY})})),Array.prototype.forEach.call(e.changedTouches||e.touches,(e=>{this._changedPointerPositions.push({id:e.identifier,x:(e.clientX-t.left)/t.scaleX,y:(e.clientY-t.top)/t.scaleY})}))):(n=(e.clientX-t.left)/t.scaleX,i=(e.clientY-t.top)/t.scaleY,this.pointerPos={x:n,y:i},this._pointerPositions=[{x:n,y:i,id:r.Util._getFirstPointerId(e)}],this._changedPointerPositions=[{x:n,y:i,id:r.Util._getFirstPointerId(e)}])}_setPointerPosition(e){r.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(e)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};var e=this.content.getBoundingClientRect();return{top:e.top,left:e.left,scaleX:e.width/this.content.clientWidth||1,scaleY:e.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new s.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new s.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),a.Konva.isBrowser){var e=this.container();if(!e)throw"Stage has no container. A container is required.";e.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),e.appendChild(this.content),this._resizeDOM()}}cache(){return r.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach((function(e){e.batchDraw()})),this}}t.Stage=L,L.prototype.nodeType="Stage",(0,u._registerNode)(L),i.Factory.addGetterSetter(L,"container")},5403:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Easings=t.Tween=void 0;const r=n(210),i=n(4822),o=n(5862),a=n(2225);var s={node:1,duration:1,easing:1,onFinish:1,yoyo:1},l=0,u=["fill","stroke","shadowColor"];class c{constructor(e,t,n,r,i,o,a){this.prop=e,this.propFunc=t,this.begin=r,this._pos=r,this.duration=o,this._change=0,this.prevPos=0,this.yoyo=a,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=n,this._change=i-this.begin,this.pause()}fire(e){var t=this[e];t&&t()}setTime(e){e>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():e<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=e,this.update())}getTime(){return this._time}setPosition(e){this.prevPos=this._pos,this.propFunc(e),this._pos=e}getPosition(e){return void 0===e&&(e=this._time),this.func(e,this.begin,this._change,this.duration)}play(){this.state=2,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=3,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(e){this.pause(),this._time=e,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){var e=this.getTimer()-this._startTime;2===this.state?this.setTime(e):3===this.state&&this.setTime(this.duration-e)}pause(){this.state=1,this.fire("onPause")}getTimer(){return(new Date).getTime()}}class d{constructor(e){var n,o,u=this,f=e.node,h=f._id,p=e.easing||t.Easings.Linear,g=!!e.yoyo;n="undefined"===typeof e.duration?.3:0===e.duration?.001:e.duration,this.node=f,this._id=l++;var m=f.getLayer()||(f instanceof a.Konva.Stage?f.getLayers():null);for(o in m||r.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new i.Animation((function(){u.tween.onEnterFrame()}),m),this.tween=new c(o,(function(e){u._tweenFunc(e)}),p,0,1,1e3*n,g),this._addListeners(),d.attrs[h]||(d.attrs[h]={}),d.attrs[h][this._id]||(d.attrs[h][this._id]={}),d.tweens[h]||(d.tweens[h]={}),e)void 0===s[o]&&this._addAttr(o,e[o]);this.reset(),this.onFinish=e.onFinish,this.onReset=e.onReset,this.onUpdate=e.onUpdate}_addAttr(e,t){var n,i,o,a,s,l,c,f,h=this.node,p=h._id;if((o=d.tweens[p][e])&&delete d.attrs[p][o][e],n=h.getAttr(e),r.Util._isArray(t))if(i=[],s=Math.max(t.length,n.length),"points"===e&&t.length!==n.length&&(t.length>n.length?(c=n,n=r.Util._prepareArrayForTween(n,t,h.closed())):(l=t,t=r.Util._prepareArrayForTween(t,n,h.closed()))),0===e.indexOf("fill"))for(a=0;a<s;a++)if(a%2===0)i.push(t[a]-n[a]);else{var g=r.Util.colorToRGBA(n[a]);f=r.Util.colorToRGBA(t[a]),n[a]=g,i.push({r:f.r-g.r,g:f.g-g.g,b:f.b-g.b,a:f.a-g.a})}else for(a=0;a<s;a++)i.push(t[a]-n[a]);else-1!==u.indexOf(e)?(n=r.Util.colorToRGBA(n),i={r:(f=r.Util.colorToRGBA(t)).r-n.r,g:f.g-n.g,b:f.b-n.b,a:f.a-n.a}):i=t-n;d.attrs[p][this._id][e]={start:n,diff:i,end:t,trueEnd:l,trueStart:c},d.tweens[p][e]=this._id}_tweenFunc(e){var t,n,i,o,a,s,l,c,f=this.node,h=d.attrs[f._id][this._id];for(t in h){if(i=(n=h[t]).start,o=n.diff,c=n.end,r.Util._isArray(i))if(a=[],l=Math.max(i.length,c.length),0===t.indexOf("fill"))for(s=0;s<l;s++)s%2===0?a.push((i[s]||0)+o[s]*e):a.push("rgba("+Math.round(i[s].r+o[s].r*e)+","+Math.round(i[s].g+o[s].g*e)+","+Math.round(i[s].b+o[s].b*e)+","+(i[s].a+o[s].a*e)+")");else for(s=0;s<l;s++)a.push((i[s]||0)+o[s]*e);else a=-1!==u.indexOf(t)?"rgba("+Math.round(i.r+o.r*e)+","+Math.round(i.g+o.g*e)+","+Math.round(i.b+o.b*e)+","+(i.a+o.a*e)+")":i+o*e;f.setAttr(t,a)}}_addListeners(){this.tween.onPlay=()=>{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{var e=this.node,t=d.attrs[e._id][this._id];t.points&&t.points.trueEnd&&e.setAttr("points",t.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{var e=this.node,t=d.attrs[e._id][this._id];t.points&&t.points.trueStart&&e.points(t.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(e){return this.tween.seek(1e3*e),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){var e,t=this.node._id,n=this._id,r=d.tweens[t];for(e in this.pause(),r)delete d.tweens[t][e];delete d.attrs[t][n]}}t.Tween=d,d.attrs={},d.tweens={},o.Node.prototype.to=function(e){var t=e.onFinish;e.node=this,e.onFinish=function(){this.destroy(),t&&t()},new d(e).play()},t.Easings={BackEaseIn(e,t,n,r){var i=1.70158;return n*(e/=r)*e*((i+1)*e-i)+t},BackEaseOut(e,t,n,r){var i=1.70158;return n*((e=e/r-1)*e*((i+1)*e+i)+1)+t},BackEaseInOut(e,t,n,r){var i=1.70158;return(e/=r/2)<1?n/2*(e*e*((1+(i*=1.525))*e-i))+t:n/2*((e-=2)*e*((1+(i*=1.525))*e+i)+2)+t},ElasticEaseIn(e,t,n,r,i,o){var a=0;return 0===e?t:1===(e/=r)?t+n:(o||(o=.3*r),!i||i<Math.abs(n)?(i=n,a=o/4):a=o/(2*Math.PI)*Math.asin(n/i),-i*Math.pow(2,10*(e-=1))*Math.sin((e*r-a)*(2*Math.PI)/o)+t)},ElasticEaseOut(e,t,n,r,i,o){var a=0;return 0===e?t:1===(e/=r)?t+n:(o||(o=.3*r),!i||i<Math.abs(n)?(i=n,a=o/4):a=o/(2*Math.PI)*Math.asin(n/i),i*Math.pow(2,-10*e)*Math.sin((e*r-a)*(2*Math.PI)/o)+n+t)},ElasticEaseInOut(e,t,n,r,i,o){var a=0;return 0===e?t:2===(e/=r/2)?t+n:(o||(o=r*(.3*1.5)),!i||i<Math.abs(n)?(i=n,a=o/4):a=o/(2*Math.PI)*Math.asin(n/i),e<1?i*Math.pow(2,10*(e-=1))*Math.sin((e*r-a)*(2*Math.PI)/o)*-.5+t:i*Math.pow(2,-10*(e-=1))*Math.sin((e*r-a)*(2*Math.PI)/o)*.5+n+t)},BounceEaseOut:(e,t,n,r)=>(e/=r)<1/2.75?n*(7.5625*e*e)+t:e<2/2.75?n*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?n*(7.5625*(e-=2.25/2.75)*e+.9375)+t:n*(7.5625*(e-=2.625/2.75)*e+.984375)+t,BounceEaseIn:(e,n,r,i)=>r-t.Easings.BounceEaseOut(i-e,0,r,i)+n,BounceEaseInOut:(e,n,r,i)=>e<i/2?.5*t.Easings.BounceEaseIn(2*e,0,r,i)+n:.5*t.Easings.BounceEaseOut(2*e-i,0,r,i)+.5*r+n,EaseIn:(e,t,n,r)=>n*(e/=r)*e+t,EaseOut:(e,t,n,r)=>-n*(e/=r)*(e-2)+t,EaseInOut:(e,t,n,r)=>(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t,StrongEaseIn:(e,t,n,r)=>n*(e/=r)*e*e*e*e+t,StrongEaseOut:(e,t,n,r)=>n*((e=e/r-1)*e*e*e*e+1)+t,StrongEaseInOut:(e,t,n,r)=>(e/=r/2)<1?n/2*e*e*e*e*e+t:n/2*((e-=2)*e*e*e*e+2)+t,Linear:(e,t,n,r)=>n*e/r+t}},210:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Util=t.Transform=void 0;const r=n(2225);class i{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[1,0,0,1,0,0];this.dirty=!1,this.m=e&&e.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new i(this.m)}copyInto(e){e.m[0]=this.m[0],e.m[1]=this.m[1],e.m[2]=this.m[2],e.m[3]=this.m[3],e.m[4]=this.m[4],e.m[5]=this.m[5]}point(e){var t=this.m;return{x:t[0]*e.x+t[2]*e.y+t[4],y:t[1]*e.x+t[3]*e.y+t[5]}}translate(e,t){return this.m[4]+=this.m[0]*e+this.m[2]*t,this.m[5]+=this.m[1]*e+this.m[3]*t,this}scale(e,t){return this.m[0]*=e,this.m[1]*=e,this.m[2]*=t,this.m[3]*=t,this}rotate(e){var t=Math.cos(e),n=Math.sin(e),r=this.m[0]*t+this.m[2]*n,i=this.m[1]*t+this.m[3]*n,o=this.m[0]*-n+this.m[2]*t,a=this.m[1]*-n+this.m[3]*t;return this.m[0]=r,this.m[1]=i,this.m[2]=o,this.m[3]=a,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(e,t){var n=this.m[0]+this.m[2]*t,r=this.m[1]+this.m[3]*t,i=this.m[2]+this.m[0]*e,o=this.m[3]+this.m[1]*e;return this.m[0]=n,this.m[1]=r,this.m[2]=i,this.m[3]=o,this}multiply(e){var t=this.m[0]*e.m[0]+this.m[2]*e.m[1],n=this.m[1]*e.m[0]+this.m[3]*e.m[1],r=this.m[0]*e.m[2]+this.m[2]*e.m[3],i=this.m[1]*e.m[2]+this.m[3]*e.m[3],o=this.m[0]*e.m[4]+this.m[2]*e.m[5]+this.m[4],a=this.m[1]*e.m[4]+this.m[3]*e.m[5]+this.m[5];return this.m[0]=t,this.m[1]=n,this.m[2]=r,this.m[3]=i,this.m[4]=o,this.m[5]=a,this}invert(){var e=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),t=this.m[3]*e,n=-this.m[1]*e,r=-this.m[2]*e,i=this.m[0]*e,o=e*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),a=e*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=t,this.m[1]=n,this.m[2]=r,this.m[3]=i,this.m[4]=o,this.m[5]=a,this}getMatrix(){return this.m}decompose(){var e=this.m[0],n=this.m[1],r=this.m[2],i=this.m[3],o=e*i-n*r;let a={x:this.m[4],y:this.m[5],rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(0!=e||0!=n){var s=Math.sqrt(e*e+n*n);a.rotation=n>0?Math.acos(e/s):-Math.acos(e/s),a.scaleX=s,a.scaleY=o/s,a.skewX=(e*r+n*i)/o,a.skewY=0}else if(0!=r||0!=i){var l=Math.sqrt(r*r+i*i);a.rotation=Math.PI/2-(i>0?Math.acos(-r/l):-Math.acos(r/l)),a.scaleX=o/l,a.scaleY=l,a.skewX=0,a.skewY=(e*r+n*i)/o}return a.rotation=t.Util._getRotation(a.rotation),a}}t.Transform=i;var o=Math.PI/180,a=180/Math.PI,s="Konva error: ",l={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},u=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,c=[];const d="undefined"!==typeof requestAnimationFrame&&requestAnimationFrame||function(e){setTimeout(e,60)};t.Util={_isElement:e=>!(!e||1!=e.nodeType),_isFunction:e=>!!(e&&e.constructor&&e.call&&e.apply),_isPlainObject:e=>!!e&&e.constructor===Object,_isArray:e=>"[object Array]"===Object.prototype.toString.call(e),_isNumber:e=>"[object Number]"===Object.prototype.toString.call(e)&&!isNaN(e)&&isFinite(e),_isString:e=>"[object String]"===Object.prototype.toString.call(e),_isBoolean:e=>"[object Boolean]"===Object.prototype.toString.call(e),isObject:e=>e instanceof Object,isValidSelector(e){if("string"!==typeof e)return!1;var t=e[0];return"#"===t||"."===t||t===t.toUpperCase()},_sign:e=>0===e||e>0?1:-1,requestAnimFrame(e){c.push(e),1===c.length&&d((function(){const e=c;c=[],e.forEach((function(e){e()}))}))},createCanvasElement(){var e=document.createElement("canvas");try{e.style=e.style||{}}catch(t){}return e},createImageElement:()=>document.createElement("img"),_isInDocument(e){for(;e=e.parentNode;)if(e==document)return!0;return!1},_urlToImage(e,n){var r=t.Util.createImageElement();r.onload=function(){n(r)},r.src=e},_rgbToHex:(e,t,n)=>((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1),_hexToRgb(e){e=e.replace("#","");var t=parseInt(e,16);return{r:t>>16&255,g:t>>8&255,b:255&t}},getRandomColor(){for(var e=(16777215*Math.random()|0).toString(16);e.length<6;)e="0"+e;return"#"+e},getRGB(e){var t;return e in l?{r:(t=l[e])[0],g:t[1],b:t[2]}:"#"===e[0]?this._hexToRgb(e.substring(1)):"rgb("===e.substr(0,4)?(t=u.exec(e.replace(/ /g,"")),{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)}):{r:0,g:0,b:0}},colorToRGBA:e=>(e=e||"black",t.Util._namedColorToRBA(e)||t.Util._hex3ColorToRGBA(e)||t.Util._hex4ColorToRGBA(e)||t.Util._hex6ColorToRGBA(e)||t.Util._hex8ColorToRGBA(e)||t.Util._rgbColorToRGBA(e)||t.Util._rgbaColorToRGBA(e)||t.Util._hslColorToRGBA(e)),_namedColorToRBA(e){var t=l[e.toLowerCase()];return t?{r:t[0],g:t[1],b:t[2],a:1}:null},_rgbColorToRGBA(e){if(0===e.indexOf("rgb(")){var t=(e=e.match(/rgb\(([^)]+)\)/)[1]).split(/ *, */).map(Number);return{r:t[0],g:t[1],b:t[2],a:1}}},_rgbaColorToRGBA(e){if(0===e.indexOf("rgba(")){var t=(e=e.match(/rgba\(([^)]+)\)/)[1]).split(/ *, */).map(((e,t)=>"%"===e.slice(-1)?3===t?parseInt(e)/100:parseInt(e)/100*255:Number(e)));return{r:t[0],g:t[1],b:t[2],a:t[3]}}},_hex8ColorToRGBA(e){if("#"===e[0]&&9===e.length)return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:parseInt(e.slice(7,9),16)/255}},_hex6ColorToRGBA(e){if("#"===e[0]&&7===e.length)return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:1}},_hex4ColorToRGBA(e){if("#"===e[0]&&5===e.length)return{r:parseInt(e[1]+e[1],16),g:parseInt(e[2]+e[2],16),b:parseInt(e[3]+e[3],16),a:parseInt(e[4]+e[4],16)/255}},_hex3ColorToRGBA(e){if("#"===e[0]&&4===e.length)return{r:parseInt(e[1]+e[1],16),g:parseInt(e[2]+e[2],16),b:parseInt(e[3]+e[3],16),a:1}},_hslColorToRGBA(e){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(e)){const[t,...n]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e),r=Number(n[0])/360,i=Number(n[1])/100,o=Number(n[2])/100;let a,s,l;if(0===i)return l=255*o,{r:Math.round(l),g:Math.round(l),b:Math.round(l),a:1};a=o<.5?o*(1+i):o+i-o*i;const u=2*o-a,c=[0,0,0];for(let e=0;e<3;e++)s=r+1/3*-(e-1),s<0&&s++,s>1&&s--,l=6*s<1?u+6*(a-u)*s:2*s<1?a:3*s<2?u+(a-u)*(2/3-s)*6:u,c[e]=255*l;return{r:Math.round(c[0]),g:Math.round(c[1]),b:Math.round(c[2]),a:1}}},haveIntersection:(e,t)=>!(t.x>e.x+e.width||t.x+t.width<e.x||t.y>e.y+e.height||t.y+t.height<e.y),cloneObject(e){var t={};for(var n in e)this._isPlainObject(e[n])?t[n]=this.cloneObject(e[n]):this._isArray(e[n])?t[n]=this.cloneArray(e[n]):t[n]=e[n];return t},cloneArray:e=>e.slice(0),degToRad:e=>e*o,radToDeg:e=>e*a,_degToRad:e=>(t.Util.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),t.Util.degToRad(e)),_radToDeg:e=>(t.Util.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),t.Util.radToDeg(e)),_getRotation:e=>r.Konva.angleDeg?t.Util.radToDeg(e):e,_capitalize:e=>e.charAt(0).toUpperCase()+e.slice(1),throw(e){throw new Error(s+e)},error(e){console.error(s+e)},warn(e){r.Konva.showWarnings&&console.warn("Konva warning: "+e)},each(e,t){for(var n in e)t(n,e[n])},_inRange:(e,t,n)=>t<=e&&e<n,_getProjectionToSegment(e,t,n,r,i,o){var a,s,l,u=(e-n)*(e-n)+(t-r)*(t-r);if(0==u)a=e,s=t,l=(i-n)*(i-n)+(o-r)*(o-r);else{var c=((i-e)*(n-e)+(o-t)*(r-t))/u;c<0?(a=e,s=t,l=(e-i)*(e-i)+(t-o)*(t-o)):c>1?(a=n,s=r,l=(n-i)*(n-i)+(r-o)*(r-o)):l=((a=e+c*(n-e))-i)*(a-i)+((s=t+c*(r-t))-o)*(s-o)}return[a,s,l]},_getProjectionToLine(e,n,r){var i=t.Util.cloneObject(e),o=Number.MAX_VALUE;return n.forEach((function(a,s){if(r||s!==n.length-1){var l=n[(s+1)%n.length],u=t.Util._getProjectionToSegment(a.x,a.y,l.x,l.y,e.x,e.y),c=u[0],d=u[1],f=u[2];f<o&&(i.x=c,i.y=d,o=f)}})),i},_prepareArrayForTween(e,n,r){var i,o=[],a=[];if(e.length>n.length){var s=n;n=e,e=s}for(i=0;i<e.length;i+=2)o.push({x:e[i],y:e[i+1]});for(i=0;i<n.length;i+=2)a.push({x:n[i],y:n[i+1]});var l=[];return a.forEach((function(e){var n=t.Util._getProjectionToLine(e,o,r);l.push(n.x),l.push(n.y)})),l},_prepareToStringify(e){var n;for(var r in e.visitedByCircularReferenceRemoval=!0,e)if(e.hasOwnProperty(r)&&e[r]&&"object"==typeof e[r])if(n=Object.getOwnPropertyDescriptor(e,r),e[r].visitedByCircularReferenceRemoval||t.Util._isElement(e[r])){if(!n.configurable)return null;delete e[r]}else if(null===t.Util._prepareToStringify(e[r])){if(!n.configurable)return null;delete e[r]}return delete e.visitedByCircularReferenceRemoval,e},_assign(e,t){for(var n in t)e[n]=t[n];return e},_getFirstPointerId:e=>e.touches?e.changedTouches[0].identifier:e.pointerId||999,releaseCanvas(){if(r.Konva.releaseCanvasOnDestroy){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach((e=>{e.width=0,e.height=0}))}},drawRoundedRectPath(e,t,n,r){let i=0,o=0,a=0,s=0;"number"===typeof r?i=o=a=s=Math.min(r,t/2,n/2):(i=Math.min(r[0]||0,t/2,n/2),o=Math.min(r[1]||0,t/2,n/2),s=Math.min(r[2]||0,t/2,n/2),a=Math.min(r[3]||0,t/2,n/2)),e.moveTo(i,0),e.lineTo(t-o,0),e.arc(t-o,o,o,3*Math.PI/2,0,!1),e.lineTo(t,n-s),e.arc(t-s,n-s,s,0,Math.PI/2,!1),e.lineTo(a,n),e.arc(a,n-a,a,Math.PI/2,Math.PI,!1),e.lineTo(0,i),e.arc(i,i,i,Math.PI,3*Math.PI/2,!1)}}},8049:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getComponentValidator=t.getBooleanValidator=t.getNumberArrayValidator=t.getFunctionValidator=t.getStringOrGradientValidator=t.getStringValidator=t.getNumberOrAutoValidator=t.getNumberOrArrayOfNumbersValidator=t.getNumberValidator=t.alphaComponent=t.RGBComponent=void 0;const r=n(2225),i=n(210);function o(e){return i.Util._isString(e)?'"'+e+'"':"[object Number]"===Object.prototype.toString.call(e)||i.Util._isBoolean(e)?e:Object.prototype.toString.call(e)}t.RGBComponent=function(e){return e>255?255:e<0?0:Math.round(e)},t.alphaComponent=function(e){return e>1?1:e<1e-4?1e-4:e},t.getNumberValidator=function(){if(r.Konva.isUnminified)return function(e,t){return i.Util._isNumber(e)||i.Util.warn(o(e)+' is a not valid value for "'+t+'" attribute. The value should be a number.'),e}},t.getNumberOrArrayOfNumbersValidator=function(e){if(r.Konva.isUnminified)return function(t,n){let r=i.Util._isNumber(t),a=i.Util._isArray(t)&&t.length==e;return r||a||i.Util.warn(o(t)+' is a not valid value for "'+n+'" attribute. The value should be a number or Array<number>('+e+")"),t}},t.getNumberOrAutoValidator=function(){if(r.Konva.isUnminified)return function(e,t){return i.Util._isNumber(e)||"auto"===e||i.Util.warn(o(e)+' is a not valid value for "'+t+'" attribute. The value should be a number or "auto".'),e}},t.getStringValidator=function(){if(r.Konva.isUnminified)return function(e,t){return i.Util._isString(e)||i.Util.warn(o(e)+' is a not valid value for "'+t+'" attribute. The value should be a string.'),e}},t.getStringOrGradientValidator=function(){if(r.Konva.isUnminified)return function(e,t){const n=i.Util._isString(e),r="[object CanvasGradient]"===Object.prototype.toString.call(e)||e&&e.addColorStop;return n||r||i.Util.warn(o(e)+' is a not valid value for "'+t+'" attribute. The value should be a string or a native gradient.'),e}},t.getFunctionValidator=function(){if(r.Konva.isUnminified)return function(e,t){return i.Util._isFunction(e)||i.Util.warn(o(e)+' is a not valid value for "'+t+'" attribute. The value should be a function.'),e}},t.getNumberArrayValidator=function(){if(r.Konva.isUnminified)return function(e,t){const n=Int8Array?Object.getPrototypeOf(Int8Array):null;return n&&e instanceof n||(i.Util._isArray(e)?e.forEach((function(e){i.Util._isNumber(e)||i.Util.warn('"'+t+'" attribute has non numeric element '+e+". Make sure that all elements are numbers.")})):i.Util.warn(o(e)+' is a not valid value for "'+t+'" attribute. The value should be a array of numbers.')),e}},t.getBooleanValidator=function(){if(r.Konva.isUnminified)return function(e,t){return!0===e||!1===e||i.Util.warn(o(e)+' is a not valid value for "'+t+'" attribute. The value should be a boolean.'),e}},t.getComponentValidator=function(e){if(r.Konva.isUnminified)return function(t,n){return void 0===t||null===t||i.Util.isObject(t)||i.Util.warn(o(t)+' is a not valid value for "'+n+'" attribute. The value should be an object with properties '+e),t}}},4334:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Konva=void 0;const r=n(2225),i=n(210),o=n(5862),a=n(3503),s=n(5878),l=n(689),u=n(1775),c=n(9739),d=n(7098),f=n(7337),h=n(4822),p=n(5403),g=n(5595),m=n(6786);t.Konva=i.Util._assign(r.Konva,{Util:i.Util,Transform:i.Transform,Node:o.Node,Container:a.Container,Stage:s.Stage,stages:s.stages,Layer:l.Layer,FastLayer:u.FastLayer,Group:c.Group,DD:d.DD,Shape:f.Shape,shapes:f.shapes,Animation:h.Animation,Tween:p.Tween,Easings:p.Easings,Context:g.Context,Canvas:m.Canvas}),t.default=t.Konva},380:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Konva=void 0;const r=n(4334),i=n(2471),o=n(5914),a=n(4891),s=n(1633),l=n(4782),u=n(7561),c=n(6533),d=n(1084),f=n(3321),h=n(7565),p=n(9501),g=n(1922),m=n(8967),y=n(7228),v=n(8847),b=n(7208),x=n(9475),w=n(6787),M=n(5702),S=n(4084),j=n(6245),N=n(6766),C=n(8731),A=n(7643),T=n(1045),E=n(2630),D=n(4323),k=n(9246),O=n(2694),I=n(5490),_=n(5061),P=n(7151),L=n(3088),z=n(8814),R=n(1659),F=n(2128);t.Konva=r.Konva.Util._assign(r.Konva,{Arc:i.Arc,Arrow:o.Arrow,Circle:a.Circle,Ellipse:s.Ellipse,Image:l.Image,Label:u.Label,Tag:u.Tag,Line:c.Line,Path:d.Path,Rect:f.Rect,RegularPolygon:h.RegularPolygon,Ring:p.Ring,Sprite:g.Sprite,Star:m.Star,Text:y.Text,TextPath:v.TextPath,Transformer:b.Transformer,Wedge:x.Wedge,Filters:{Blur:w.Blur,Brighten:M.Brighten,Contrast:S.Contrast,Emboss:j.Emboss,Enhance:N.Enhance,Grayscale:C.Grayscale,HSL:A.HSL,HSV:T.HSV,Invert:E.Invert,Kaleidoscope:D.Kaleidoscope,Mask:k.Mask,Noise:O.Noise,Pixelate:I.Pixelate,Posterize:_.Posterize,RGB:P.RGB,RGBA:L.RGBA,Sepia:z.Sepia,Solarize:R.Solarize,Threshold:F.Threshold}})},6787:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Blur=void 0;const r=n(630),i=n(5862),o=n(8049);function a(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}var s=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],l=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];t.Blur=function(e){var t=Math.round(this.blurRadius());t>0&&function(e,t){var n,r,i,o,u,c,d,f,h,p,g,m,y,v,b,x,w,M,S,j,N,C,A,T,E=e.data,D=e.width,k=e.height,O=t+t+1,I=D-1,_=k-1,P=t+1,L=P*(P+1)/2,z=new a,R=null,F=z,U=null,B=null,V=s[t],Q=l[t];for(i=1;i<O;i++)F=F.next=new a,i===P&&(R=F);for(F.next=z,d=c=0,r=0;r<k;r++){for(x=w=M=S=f=h=p=g=0,m=P*(j=E[c]),y=P*(N=E[c+1]),v=P*(C=E[c+2]),b=P*(A=E[c+3]),f+=L*j,h+=L*N,p+=L*C,g+=L*A,F=z,i=0;i<P;i++)F.r=j,F.g=N,F.b=C,F.a=A,F=F.next;for(i=1;i<P;i++)o=c+((I<i?I:i)<<2),f+=(F.r=j=E[o])*(T=P-i),h+=(F.g=N=E[o+1])*T,p+=(F.b=C=E[o+2])*T,g+=(F.a=A=E[o+3])*T,x+=j,w+=N,M+=C,S+=A,F=F.next;for(U=z,B=R,n=0;n<D;n++)E[c+3]=A=g*V>>Q,0!==A?(A=255/A,E[c]=(f*V>>Q)*A,E[c+1]=(h*V>>Q)*A,E[c+2]=(p*V>>Q)*A):E[c]=E[c+1]=E[c+2]=0,f-=m,h-=y,p-=v,g-=b,m-=U.r,y-=U.g,v-=U.b,b-=U.a,o=d+((o=n+t+1)<I?o:I)<<2,f+=x+=U.r=E[o],h+=w+=U.g=E[o+1],p+=M+=U.b=E[o+2],g+=S+=U.a=E[o+3],U=U.next,m+=j=B.r,y+=N=B.g,v+=C=B.b,b+=A=B.a,x-=j,w-=N,M-=C,S-=A,B=B.next,c+=4;d+=D}for(n=0;n<D;n++){for(w=M=S=x=h=p=g=f=0,m=P*(j=E[c=n<<2]),y=P*(N=E[c+1]),v=P*(C=E[c+2]),b=P*(A=E[c+3]),f+=L*j,h+=L*N,p+=L*C,g+=L*A,F=z,i=0;i<P;i++)F.r=j,F.g=N,F.b=C,F.a=A,F=F.next;for(u=D,i=1;i<=t;i++)c=u+n<<2,f+=(F.r=j=E[c])*(T=P-i),h+=(F.g=N=E[c+1])*T,p+=(F.b=C=E[c+2])*T,g+=(F.a=A=E[c+3])*T,x+=j,w+=N,M+=C,S+=A,F=F.next,i<_&&(u+=D);for(c=n,U=z,B=R,r=0;r<k;r++)E[3+(o=c<<2)]=A=g*V>>Q,A>0?(A=255/A,E[o]=(f*V>>Q)*A,E[o+1]=(h*V>>Q)*A,E[o+2]=(p*V>>Q)*A):E[o]=E[o+1]=E[o+2]=0,f-=m,h-=y,p-=v,g-=b,m-=U.r,y-=U.g,v-=U.b,b-=U.a,o=n+((o=r+P)<_?o:_)*D<<2,f+=x+=U.r=E[o],h+=w+=U.g=E[o+1],p+=M+=U.b=E[o+2],g+=S+=U.a=E[o+3],U=U.next,m+=j=B.r,y+=N=B.g,v+=C=B.b,b+=A=B.a,x-=j,w-=N,M-=C,S-=A,B=B.next,c+=D}}(e,t)},r.Factory.addGetterSetter(i.Node,"blurRadius",0,(0,o.getNumberValidator)(),r.Factory.afterSetFilter)},5702:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Brighten=void 0;const r=n(630),i=n(5862),o=n(8049);t.Brighten=function(e){var t,n=255*this.brightness(),r=e.data,i=r.length;for(t=0;t<i;t+=4)r[t]+=n,r[t+1]+=n,r[t+2]+=n},r.Factory.addGetterSetter(i.Node,"brightness",0,(0,o.getNumberValidator)(),r.Factory.afterSetFilter)},4084:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Contrast=void 0;const r=n(630),i=n(5862),o=n(8049);t.Contrast=function(e){var t,n=Math.pow((this.contrast()+100)/100,2),r=e.data,i=r.length,o=150,a=150,s=150;for(t=0;t<i;t+=4)o=r[t],a=r[t+1],s=r[t+2],o/=255,o-=.5,o*=n,o+=.5,a/=255,a-=.5,a*=n,a+=.5,s/=255,s-=.5,s*=n,s+=.5,o=(o*=255)<0?0:o>255?255:o,a=(a*=255)<0?0:a>255?255:a,s=(s*=255)<0?0:s>255?255:s,r[t]=o,r[t+1]=a,r[t+2]=s},r.Factory.addGetterSetter(i.Node,"contrast",0,(0,o.getNumberValidator)(),r.Factory.afterSetFilter)},6245:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Emboss=void 0;const r=n(630),i=n(5862),o=n(210),a=n(8049);t.Emboss=function(e){var t=10*this.embossStrength(),n=255*this.embossWhiteLevel(),r=this.embossDirection(),i=this.embossBlend(),a=0,s=0,l=e.data,u=e.width,c=e.height,d=4*u,f=c;switch(r){case"top-left":a=-1,s=-1;break;case"top":a=-1,s=0;break;case"top-right":a=-1,s=1;break;case"right":a=0,s=1;break;case"bottom-right":a=1,s=1;break;case"bottom":a=1,s=0;break;case"bottom-left":a=1,s=-1;break;case"left":a=0,s=-1;break;default:o.Util.error("Unknown emboss direction: "+r)}do{var h=(f-1)*d,p=a;f+p<1&&(p=0),f+p>c&&(p=0);var g=(f-1+p)*u*4,m=u;do{var y=h+4*(m-1),v=s;m+v<1&&(v=0),m+v>u&&(v=0);var b=g+4*(m-1+v),x=l[y]-l[b],w=l[y+1]-l[b+1],M=l[y+2]-l[b+2],S=x,j=S>0?S:-S;if((w>0?w:-w)>j&&(S=w),(M>0?M:-M)>j&&(S=M),S*=t,i){var N=l[y]+S,C=l[y+1]+S,A=l[y+2]+S;l[y]=N>255?255:N<0?0:N,l[y+1]=C>255?255:C<0?0:C,l[y+2]=A>255?255:A<0?0:A}else{var T=n-S;T<0?T=0:T>255&&(T=255),l[y]=l[y+1]=l[y+2]=T}}while(--m)}while(--f)},r.Factory.addGetterSetter(i.Node,"embossStrength",.5,(0,a.getNumberValidator)(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"embossWhiteLevel",.5,(0,a.getNumberValidator)(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"embossDirection","top-left",null,r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"embossBlend",!1,null,r.Factory.afterSetFilter)},6766:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Enhance=void 0;const r=n(630),i=n(5862),o=n(8049);function a(e,t,n,r,i){var o=n-t,a=i-r;return 0===o?r+a/2:0===a?r:a*((e-t)/o)+r}t.Enhance=function(e){var t,n,r,i,o=e.data,s=o.length,l=o[0],u=l,c=o[1],d=c,f=o[2],h=f,p=this.enhance();if(0!==p){for(i=0;i<s;i+=4)(t=o[i+0])<l?l=t:t>u&&(u=t),(n=o[i+1])<c?c=n:n>d&&(d=n),(r=o[i+2])<f?f=r:r>h&&(h=r);var g,m,y,v,b,x,w,M,S;for(u===l&&(u=255,l=0),d===c&&(d=255,c=0),h===f&&(h=255,f=0),p>0?(m=u+p*(255-u),y=l-p*(l-0),b=d+p*(255-d),x=c-p*(c-0),M=h+p*(255-h),S=f-p*(f-0)):(m=u+p*(u-(g=.5*(u+l))),y=l+p*(l-g),b=d+p*(d-(v=.5*(d+c))),x=c+p*(c-v),M=h+p*(h-(w=.5*(h+f))),S=f+p*(f-w)),i=0;i<s;i+=4)o[i+0]=a(o[i+0],l,u,y,m),o[i+1]=a(o[i+1],c,d,x,b),o[i+2]=a(o[i+2],f,h,S,M)}},r.Factory.addGetterSetter(i.Node,"enhance",0,(0,o.getNumberValidator)(),r.Factory.afterSetFilter)},8731:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Grayscale=void 0;t.Grayscale=function(e){var t,n,r=e.data,i=r.length;for(t=0;t<i;t+=4)n=.34*r[t]+.5*r[t+1]+.16*r[t+2],r[t]=n,r[t+1]=n,r[t+2]=n}},7643:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HSL=void 0;const r=n(630),i=n(5862),o=n(8049);r.Factory.addGetterSetter(i.Node,"hue",0,(0,o.getNumberValidator)(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"saturation",0,(0,o.getNumberValidator)(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"luminance",0,(0,o.getNumberValidator)(),r.Factory.afterSetFilter);t.HSL=function(e){var t,n,r,i,o,a=e.data,s=a.length,l=Math.pow(2,this.saturation()),u=Math.abs(this.hue()+360)%360,c=127*this.luminance(),d=1*l*Math.cos(u*Math.PI/180),f=1*l*Math.sin(u*Math.PI/180),h=.299+.701*d+.167*f,p=.587-.587*d+.33*f,g=.114-.114*d-.497*f,m=.299-.299*d-.328*f,y=.587+.413*d+.035*f,v=.114-.114*d+.293*f,b=.299-.3*d+1.25*f,x=.587-.586*d-1.05*f,w=.114+.886*d-.2*f;for(t=0;t<s;t+=4)n=a[t+0],r=a[t+1],i=a[t+2],o=a[t+3],a[t+0]=h*n+p*r+g*i+c,a[t+1]=m*n+y*r+v*i+c,a[t+2]=b*n+x*r+w*i+c,a[t+3]=o}},1045:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HSV=void 0;const r=n(630),i=n(5862),o=n(8049);t.HSV=function(e){var t,n,r,i,o,a=e.data,s=a.length,l=Math.pow(2,this.value()),u=Math.pow(2,this.saturation()),c=Math.abs(this.hue()+360)%360,d=l*u*Math.cos(c*Math.PI/180),f=l*u*Math.sin(c*Math.PI/180),h=.299*l+.701*d+.167*f,p=.587*l-.587*d+.33*f,g=.114*l-.114*d-.497*f,m=.299*l-.299*d-.328*f,y=.587*l+.413*d+.035*f,v=.114*l-.114*d+.293*f,b=.299*l-.3*d+1.25*f,x=.587*l-.586*d-1.05*f,w=.114*l+.886*d-.2*f;for(t=0;t<s;t+=4)n=a[t+0],r=a[t+1],i=a[t+2],o=a[t+3],a[t+0]=h*n+p*r+g*i,a[t+1]=m*n+y*r+v*i,a[t+2]=b*n+x*r+w*i,a[t+3]=o},r.Factory.addGetterSetter(i.Node,"hue",0,(0,o.getNumberValidator)(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"saturation",0,(0,o.getNumberValidator)(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"value",0,(0,o.getNumberValidator)(),r.Factory.afterSetFilter)},2630:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Invert=void 0;t.Invert=function(e){var t,n=e.data,r=n.length;for(t=0;t<r;t+=4)n[t]=255-n[t],n[t+1]=255-n[t+1],n[t+2]=255-n[t+2]}},4323:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Kaleidoscope=void 0;const r=n(630),i=n(5862),o=n(210),a=n(8049);t.Kaleidoscope=function(e){var t,n,r,i,a,s,l,u,c,d=e.width,f=e.height,h=Math.round(this.kaleidoscopePower()),p=Math.round(this.kaleidoscopeAngle()),g=Math.floor(d*(p%360)/360);if(!(h<1)){var m=o.Util.createCanvasElement();m.width=d,m.height=f;var y=m.getContext("2d").getImageData(0,0,d,f);o.Util.releaseCanvas(m),function(e,t,n){var r,i,o,a,s=e.data,l=t.data,u=e.width,c=e.height,d=n.polarCenterX||u/2,f=n.polarCenterY||c/2,h=0,p=0,g=0,m=0,y=Math.sqrt(d*d+f*f);i=u-d,o=c-f,y=(a=Math.sqrt(i*i+o*o))>y?a:y;var v,b,x,w,M=c,S=u,j=360/S*Math.PI/180;for(b=0;b<S;b+=1)for(x=Math.sin(b*j),w=Math.cos(b*j),v=0;v<M;v+=1)i=Math.floor(d+y*v/M*w),h=s[0+(r=4*((o=Math.floor(f+y*v/M*x))*u+i))],p=s[r+1],g=s[r+2],m=s[r+3],l[0+(r=4*(b+v*u))]=h,l[r+1]=p,l[r+2]=g,l[r+3]=m}(e,y,{polarCenterX:d/2,polarCenterY:f/2});for(var v=d/Math.pow(2,h);v<=8;)v*=2,h-=1;var b=v=Math.ceil(v),x=0,w=b,M=1;for(g+v>d&&(x=b,w=0,M=-1),n=0;n<f;n+=1)for(t=x;t!==w;t+=M)u=4*(d*n+Math.round(t+g)%d),i=y.data[u+0],a=y.data[u+1],s=y.data[u+2],l=y.data[u+3],c=4*(d*n+t),y.data[c+0]=i,y.data[c+1]=a,y.data[c+2]=s,y.data[c+3]=l;for(n=0;n<f;n+=1)for(b=Math.floor(v),r=0;r<h;r+=1){for(t=0;t<b+1;t+=1)u=4*(d*n+t),i=y.data[u+0],a=y.data[u+1],s=y.data[u+2],l=y.data[u+3],c=4*(d*n+2*b-t-1),y.data[c+0]=i,y.data[c+1]=a,y.data[c+2]=s,y.data[c+3]=l;b*=2}!function(e,t,n){var r,i,o,a,s,l,u=e.data,c=t.data,d=e.width,f=e.height,h=n.polarCenterX||d/2,p=n.polarCenterY||f/2,g=0,m=0,y=0,v=0,b=Math.sqrt(h*h+p*p);i=d-h,o=f-p,b=(l=Math.sqrt(i*i+o*o))>b?l:b;var x,w,M,S=f,j=d,N=n.polarRotation||0;for(i=0;i<d;i+=1)for(o=0;o<f;o+=1)a=i-h,s=o-p,x=Math.sqrt(a*a+s*s)*S/b,w=(w=(180*Math.atan2(s,a)/Math.PI+360+N)%360)*j/360,M=Math.floor(w),g=u[0+(r=4*(Math.floor(x)*d+M))],m=u[r+1],y=u[r+2],v=u[r+3],c[0+(r=4*(o*d+i))]=g,c[r+1]=m,c[r+2]=y,c[r+3]=v}(y,e,{polarRotation:0})}},r.Factory.addGetterSetter(i.Node,"kaleidoscopePower",2,(0,a.getNumberValidator)(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"kaleidoscopeAngle",0,(0,a.getNumberValidator)(),r.Factory.afterSetFilter)},9246:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Mask=void 0;const r=n(630),i=n(5862),o=n(8049);function a(e,t,n){var r=4*(n*e.width+t),i=[];return i.push(e.data[r++],e.data[r++],e.data[r++],e.data[r++]),i}function s(e,t){return Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2))}t.Mask=function(e){var t=function(e,t){var n=a(e,0,0),r=a(e,e.width-1,0),i=a(e,0,e.height-1),o=a(e,e.width-1,e.height-1),l=t||10;if(s(n,r)<l&&s(r,o)<l&&s(o,i)<l&&s(i,n)<l){for(var u=function(e){for(var t=[0,0,0],n=0;n<e.length;n++)t[0]+=e[n][0],t[1]+=e[n][1],t[2]+=e[n][2];return t[0]/=e.length,t[1]/=e.length,t[2]/=e.length,t}([r,n,o,i]),c=[],d=0;d<e.width*e.height;d++){var f=s(u,[e.data[4*d],e.data[4*d+1],e.data[4*d+2]]);c[d]=f<l?0:255}return c}}(e,this.threshold());return t&&function(e,t){for(var n=0;n<e.width*e.height;n++)e.data[4*n+3]=t[n]}(e,t=function(e,t,n){for(var r=[1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9],i=Math.round(Math.sqrt(r.length)),o=Math.floor(i/2),a=[],s=0;s<n;s++)for(var l=0;l<t;l++){for(var u=s*t+l,c=0,d=0;d<i;d++)for(var f=0;f<i;f++){var h=s+d-o,p=l+f-o;if(h>=0&&h<n&&p>=0&&p<t){var g=r[d*i+f];c+=e[h*t+p]*g}}a[u]=c}return a}(t=function(e,t,n){for(var r=[1,1,1,1,1,1,1,1,1],i=Math.round(Math.sqrt(r.length)),o=Math.floor(i/2),a=[],s=0;s<n;s++)for(var l=0;l<t;l++){for(var u=s*t+l,c=0,d=0;d<i;d++)for(var f=0;f<i;f++){var h=s+d-o,p=l+f-o;if(h>=0&&h<n&&p>=0&&p<t){var g=r[d*i+f];c+=e[h*t+p]*g}}a[u]=c>=1020?255:0}return a}(t=function(e,t,n){for(var r=[1,1,1,1,0,1,1,1,1],i=Math.round(Math.sqrt(r.length)),o=Math.floor(i/2),a=[],s=0;s<n;s++)for(var l=0;l<t;l++){for(var u=s*t+l,c=0,d=0;d<i;d++)for(var f=0;f<i;f++){var h=s+d-o,p=l+f-o;if(h>=0&&h<n&&p>=0&&p<t){var g=r[d*i+f];c+=e[h*t+p]*g}}a[u]=2040===c?255:0}return a}(t,e.width,e.height),e.width,e.height),e.width,e.height)),e},r.Factory.addGetterSetter(i.Node,"threshold",0,(0,o.getNumberValidator)(),r.Factory.afterSetFilter)},2694:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Noise=void 0;const r=n(630),i=n(5862),o=n(8049);t.Noise=function(e){var t,n=255*this.noise(),r=e.data,i=r.length,o=n/2;for(t=0;t<i;t+=4)r[t+0]+=o-2*o*Math.random(),r[t+1]+=o-2*o*Math.random(),r[t+2]+=o-2*o*Math.random()},r.Factory.addGetterSetter(i.Node,"noise",.2,(0,o.getNumberValidator)(),r.Factory.afterSetFilter)},5490:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Pixelate=void 0;const r=n(630),i=n(210),o=n(5862),a=n(8049);t.Pixelate=function(e){var t,n,r,o,a,s,l,u,c,d,f,h,p,g,m=Math.ceil(this.pixelSize()),y=e.width,v=e.height,b=Math.ceil(y/m),x=Math.ceil(v/m),w=e.data;if(m<=0)i.Util.error("pixelSize value can not be <= 0");else for(h=0;h<b;h+=1)for(p=0;p<x;p+=1){for(o=0,a=0,s=0,l=0,c=(u=h*m)+m,f=(d=p*m)+m,g=0,t=u;t<c;t+=1)if(!(t>=y))for(n=d;n<f;n+=1)n>=v||(o+=w[(r=4*(y*n+t))+0],a+=w[r+1],s+=w[r+2],l+=w[r+3],g+=1);for(o/=g,a/=g,s/=g,l/=g,t=u;t<c;t+=1)if(!(t>=y))for(n=d;n<f;n+=1)n>=v||(w[(r=4*(y*n+t))+0]=o,w[r+1]=a,w[r+2]=s,w[r+3]=l)}},r.Factory.addGetterSetter(o.Node,"pixelSize",8,(0,a.getNumberValidator)(),r.Factory.afterSetFilter)},5061:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Posterize=void 0;const r=n(630),i=n(5862),o=n(8049);t.Posterize=function(e){var t,n=Math.round(254*this.levels())+1,r=e.data,i=r.length,o=255/n;for(t=0;t<i;t+=1)r[t]=Math.floor(r[t]/o)*o},r.Factory.addGetterSetter(i.Node,"levels",.5,(0,o.getNumberValidator)(),r.Factory.afterSetFilter)},7151:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RGB=void 0;const r=n(630),i=n(5862),o=n(8049);t.RGB=function(e){var t,n,r=e.data,i=r.length,o=this.red(),a=this.green(),s=this.blue();for(t=0;t<i;t+=4)n=(.34*r[t]+.5*r[t+1]+.16*r[t+2])/255,r[t]=n*o,r[t+1]=n*a,r[t+2]=n*s,r[t+3]=r[t+3]},r.Factory.addGetterSetter(i.Node,"red",0,(function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)})),r.Factory.addGetterSetter(i.Node,"green",0,(function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)})),r.Factory.addGetterSetter(i.Node,"blue",0,o.RGBComponent,r.Factory.afterSetFilter)},3088:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RGBA=void 0;const r=n(630),i=n(5862),o=n(8049);t.RGBA=function(e){var t,n,r=e.data,i=r.length,o=this.red(),a=this.green(),s=this.blue(),l=this.alpha();for(t=0;t<i;t+=4)n=1-l,r[t]=o*l+r[t]*n,r[t+1]=a*l+r[t+1]*n,r[t+2]=s*l+r[t+2]*n},r.Factory.addGetterSetter(i.Node,"red",0,(function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)})),r.Factory.addGetterSetter(i.Node,"green",0,(function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)})),r.Factory.addGetterSetter(i.Node,"blue",0,o.RGBComponent,r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"alpha",1,(function(e){return this._filterUpToDate=!1,e>1?1:e<0?0:e}))},8814:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sepia=void 0;t.Sepia=function(e){var t,n,r,i,o=e.data,a=o.length;for(t=0;t<a;t+=4)n=o[t+0],r=o[t+1],i=o[t+2],o[t+0]=Math.min(255,.393*n+.769*r+.189*i),o[t+1]=Math.min(255,.349*n+.686*r+.168*i),o[t+2]=Math.min(255,.272*n+.534*r+.131*i)}},1659:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Solarize=void 0;t.Solarize=function(e){var t=e.data,n=e.width,r=4*n,i=e.height;do{var o=(i-1)*r,a=n;do{var s=o+4*(a-1),l=t[s],u=t[s+1],c=t[s+2];l>127&&(l=255-l),u>127&&(u=255-u),c>127&&(c=255-c),t[s]=l,t[s+1]=u,t[s+2]=c}while(--a)}while(--i)}},2128:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Threshold=void 0;const r=n(630),i=n(5862),o=n(8049);t.Threshold=function(e){var t,n=255*this.threshold(),r=e.data,i=r.length;for(t=0;t<i;t+=1)r[t]=r[t]<n?0:255},r.Factory.addGetterSetter(i.Node,"threshold",.5,(0,o.getNumberValidator)(),r.Factory.afterSetFilter)},2792:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(380);e.exports=r.Konva},2471:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Arc=void 0;const r=n(630),i=n(7337),o=n(2225),a=n(8049),s=n(2225);class l extends i.Shape{_sceneFunc(e){var t=o.Konva.getAngle(this.angle()),n=this.clockwise();e.beginPath(),e.arc(0,0,this.outerRadius(),0,t,n),e.arc(0,0,this.innerRadius(),t,0,!n),e.closePath(),e.fillStrokeShape(this)}getWidth(){return 2*this.outerRadius()}getHeight(){return 2*this.outerRadius()}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}getSelfRect(){const e=this.innerRadius(),t=this.outerRadius(),n=this.clockwise(),r=o.Konva.getAngle(n?360-this.angle():this.angle()),i=Math.cos(Math.min(r,Math.PI)),a=Math.sin(Math.min(Math.max(Math.PI,r),3*Math.PI/2)),s=Math.sin(Math.min(r,Math.PI/2)),l=i*(i>0?e:t),u=a*(a>0?e:t),c=s*(s>0?t:e);return{x:l,y:n?-1*c:u,width:1*t-l,height:c-u}}}t.Arc=l,l.prototype._centroid=!0,l.prototype.className="Arc",l.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,s._registerNode)(l),r.Factory.addGetterSetter(l,"innerRadius",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(l,"outerRadius",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(l,"angle",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(l,"clockwise",!1,(0,a.getBooleanValidator)())},5914:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Arrow=void 0;const r=n(630),i=n(6533),o=n(8049),a=n(2225),s=n(1084);class l extends i.Line{_sceneFunc(e){super._sceneFunc(e);var t=2*Math.PI,n=this.points(),r=n,i=0!==this.tension()&&n.length>4;i&&(r=this.getTensionPoints());var o,a,l=this.pointerLength(),u=n.length;if(i){const e=[r[r.length-4],r[r.length-3],r[r.length-2],r[r.length-1],n[u-2],n[u-1]],t=s.Path.calcLength(r[r.length-4],r[r.length-3],"C",e),i=s.Path.getPointOnQuadraticBezier(Math.min(1,1-l/t),e[0],e[1],e[2],e[3],e[4],e[5]);o=n[u-2]-i.x,a=n[u-1]-i.y}else o=n[u-2]-n[u-4],a=n[u-1]-n[u-3];var c=(Math.atan2(a,o)+t)%t,d=this.pointerWidth();this.pointerAtEnding()&&(e.save(),e.beginPath(),e.translate(n[u-2],n[u-1]),e.rotate(c),e.moveTo(0,0),e.lineTo(-l,d/2),e.lineTo(-l,-d/2),e.closePath(),e.restore(),this.__fillStroke(e)),this.pointerAtBeginning()&&(e.save(),e.beginPath(),e.translate(n[0],n[1]),i?(o=(r[0]+r[2])/2-n[0],a=(r[1]+r[3])/2-n[1]):(o=n[2]-n[0],a=n[3]-n[1]),e.rotate((Math.atan2(-a,-o)+t)%t),e.moveTo(0,0),e.lineTo(-l,d/2),e.lineTo(-l,-d/2),e.closePath(),e.restore(),this.__fillStroke(e))}__fillStroke(e){var t=this.dashEnabled();t&&(this.attrs.dashEnabled=!1,e.setLineDash([])),e.fillStrokeShape(this),t&&(this.attrs.dashEnabled=!0)}getSelfRect(){const e=super.getSelfRect(),t=this.pointerWidth()/2;return{x:e.x-t,y:e.y-t,width:e.width+2*t,height:e.height+2*t}}}t.Arrow=l,l.prototype.className="Arrow",(0,a._registerNode)(l),r.Factory.addGetterSetter(l,"pointerLength",10,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(l,"pointerWidth",10,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(l,"pointerAtBeginning",!1),r.Factory.addGetterSetter(l,"pointerAtEnding",!0)},4891:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Circle=void 0;const r=n(630),i=n(7337),o=n(8049),a=n(2225);class s extends i.Shape{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.attrs.radius||0,0,2*Math.PI,!1),e.closePath(),e.fillStrokeShape(this)}getWidth(){return 2*this.radius()}getHeight(){return 2*this.radius()}setWidth(e){this.radius()!==e/2&&this.radius(e/2)}setHeight(e){this.radius()!==e/2&&this.radius(e/2)}}t.Circle=s,s.prototype._centroid=!0,s.prototype.className="Circle",s.prototype._attrsAffectingSize=["radius"],(0,a._registerNode)(s),r.Factory.addGetterSetter(s,"radius",0,(0,o.getNumberValidator)())},1633:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Ellipse=void 0;const r=n(630),i=n(7337),o=n(8049),a=n(2225);class s extends i.Shape{_sceneFunc(e){var t=this.radiusX(),n=this.radiusY();e.beginPath(),e.save(),t!==n&&e.scale(1,n/t),e.arc(0,0,t,0,2*Math.PI,!1),e.restore(),e.closePath(),e.fillStrokeShape(this)}getWidth(){return 2*this.radiusX()}getHeight(){return 2*this.radiusY()}setWidth(e){this.radiusX(e/2)}setHeight(e){this.radiusY(e/2)}}t.Ellipse=s,s.prototype.className="Ellipse",s.prototype._centroid=!0,s.prototype._attrsAffectingSize=["radiusX","radiusY"],(0,a._registerNode)(s),r.Factory.addComponentsGetterSetter(s,"radius",["x","y"]),r.Factory.addGetterSetter(s,"radiusX",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(s,"radiusY",0,(0,o.getNumberValidator)())},4782:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Image=void 0;const r=n(210),i=n(630),o=n(7337),a=n(2225),s=n(8049);class l extends o.Shape{constructor(e){super(e),this.on("imageChange.konva",(()=>{this._setImageLoad()})),this._setImageLoad()}_setImageLoad(){const e=this.image();e&&e.complete||e&&4===e.readyState||e&&e.addEventListener&&e.addEventListener("load",(()=>{this._requestDraw()}))}_useBufferCanvas(){return super._useBufferCanvas(!0)}_sceneFunc(e){const t=this.getWidth(),n=this.getHeight(),i=this.cornerRadius(),o=this.attrs.image;let a;if(o){const e=this.attrs.cropWidth,r=this.attrs.cropHeight;a=e&&r?[o,this.cropX(),this.cropY(),e,r,0,0,t,n]:[o,0,0,t,n]}(this.hasFill()||this.hasStroke()||i)&&(e.beginPath(),i?r.Util.drawRoundedRectPath(e,t,n,i):e.rect(0,0,t,n),e.closePath(),e.fillStrokeShape(this)),o&&(i&&e.clip(),e.drawImage.apply(e,a))}_hitFunc(e){var t=this.width(),n=this.height(),i=this.cornerRadius();e.beginPath(),i?r.Util.drawRoundedRectPath(e,t,n,i):e.rect(0,0,t,n),e.closePath(),e.fillStrokeShape(this)}getWidth(){var e,t;return null!==(e=this.attrs.width)&&void 0!==e?e:null===(t=this.image())||void 0===t?void 0:t.width}getHeight(){var e,t;return null!==(e=this.attrs.height)&&void 0!==e?e:null===(t=this.image())||void 0===t?void 0:t.height}static fromURL(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;var i=r.Util.createImageElement();i.onload=function(){var e=new l({image:i});t(e)},i.onerror=n,i.crossOrigin="Anonymous",i.src=e}}t.Image=l,l.prototype.className="Image",(0,a._registerNode)(l),i.Factory.addGetterSetter(l,"cornerRadius",0,(0,s.getNumberOrArrayOfNumbersValidator)(4)),i.Factory.addGetterSetter(l,"image"),i.Factory.addComponentsGetterSetter(l,"crop",["x","y","width","height"]),i.Factory.addGetterSetter(l,"cropX",0,(0,s.getNumberValidator)()),i.Factory.addGetterSetter(l,"cropY",0,(0,s.getNumberValidator)()),i.Factory.addGetterSetter(l,"cropWidth",0,(0,s.getNumberValidator)()),i.Factory.addGetterSetter(l,"cropHeight",0,(0,s.getNumberValidator)())},7561:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tag=t.Label=void 0;const r=n(630),i=n(7337),o=n(9739),a=n(8049),s=n(2225);var l=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],u="up",c="right",d="down",f="left",h=l.length;class p extends o.Group{constructor(e){super(e),this.on("add.konva",(function(e){this._addListeners(e.child),this._sync()}))}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(e){var t,n=this,r=function(){n._sync()};for(t=0;t<h;t++)e.on(l[t]+"Change.konva",r)}getWidth(){return this.getText().width()}getHeight(){return this.getText().height()}_sync(){var e,t,n,r,i,o,a,s=this.getText(),l=this.getTag();if(s&&l){switch(e=s.width(),t=s.height(),n=l.pointerDirection(),r=l.pointerWidth(),a=l.pointerHeight(),i=0,o=0,n){case u:i=e/2,o=-1*a;break;case c:i=e+r,o=t/2;break;case d:i=e/2,o=t+a;break;case f:i=-1*r,o=t/2}l.setAttrs({x:-1*i,y:-1*o,width:e,height:t}),s.setAttrs({x:-1*i,y:-1*o})}}}t.Label=p,p.prototype.className="Label",(0,s._registerNode)(p);class g extends i.Shape{_sceneFunc(e){var t=this.width(),n=this.height(),r=this.pointerDirection(),i=this.pointerWidth(),o=this.pointerHeight(),a=this.cornerRadius();let s=0,l=0,h=0,p=0;"number"===typeof a?s=l=h=p=Math.min(a,t/2,n/2):(s=Math.min(a[0]||0,t/2,n/2),l=Math.min(a[1]||0,t/2,n/2),p=Math.min(a[2]||0,t/2,n/2),h=Math.min(a[3]||0,t/2,n/2)),e.beginPath(),e.moveTo(s,0),r===u&&(e.lineTo((t-i)/2,0),e.lineTo(t/2,-1*o),e.lineTo((t+i)/2,0)),e.lineTo(t-l,0),e.arc(t-l,l,l,3*Math.PI/2,0,!1),r===c&&(e.lineTo(t,(n-o)/2),e.lineTo(t+i,n/2),e.lineTo(t,(n+o)/2)),e.lineTo(t,n-p),e.arc(t-p,n-p,p,0,Math.PI/2,!1),r===d&&(e.lineTo((t+i)/2,n),e.lineTo(t/2,n+o),e.lineTo((t-i)/2,n)),e.lineTo(h,n),e.arc(h,n-h,h,Math.PI/2,Math.PI,!1),r===f&&(e.lineTo(0,(n+o)/2),e.lineTo(-1*i,n/2),e.lineTo(0,(n-o)/2)),e.lineTo(0,s),e.arc(s,s,s,Math.PI,3*Math.PI/2,!1),e.closePath(),e.fillStrokeShape(this)}getSelfRect(){var e=0,t=0,n=this.pointerWidth(),r=this.pointerHeight(),i=this.pointerDirection(),o=this.width(),a=this.height();return i===u?(t-=r,a+=r):i===d?a+=r:i===f?(e-=1.5*n,o+=n):i===c&&(o+=1.5*n),{x:e,y:t,width:o,height:a}}}t.Tag=g,g.prototype.className="Tag",(0,s._registerNode)(g),r.Factory.addGetterSetter(g,"pointerDirection","none"),r.Factory.addGetterSetter(g,"pointerWidth",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(g,"pointerHeight",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(g,"cornerRadius",0,(0,a.getNumberOrArrayOfNumbersValidator)(4))},6533:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Line=void 0;const r=n(630),i=n(7337),o=n(8049),a=n(2225);function s(e,t,n,r,i,o,a){var s=Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2)),l=Math.sqrt(Math.pow(i-n,2)+Math.pow(o-r,2)),u=a*s/(s+l),c=a*l/(s+l);return[n-u*(i-e),r-u*(o-t),n+c*(i-e),r+c*(o-t)]}function l(e,t){var n,r,i=e.length,o=[];for(n=2;n<i-2;n+=2)r=s(e[n-2],e[n-1],e[n],e[n+1],e[n+2],e[n+3],t),isNaN(r[0])||(o.push(r[0]),o.push(r[1]),o.push(e[n]),o.push(e[n+1]),o.push(r[2]),o.push(r[3]));return o}class u extends i.Shape{constructor(e){super(e),this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",(function(){this._clearCache("tensionPoints")}))}_sceneFunc(e){var t,n,r,i=this.points(),o=i.length,a=this.tension(),s=this.closed(),l=this.bezier();if(o){if(e.beginPath(),e.moveTo(i[0],i[1]),0!==a&&o>4){for(n=(t=this.getTensionPoints()).length,r=s?0:4,s||e.quadraticCurveTo(t[0],t[1],t[2],t[3]);r<n-2;)e.bezierCurveTo(t[r++],t[r++],t[r++],t[r++],t[r++],t[r++]);s||e.quadraticCurveTo(t[n-2],t[n-1],i[o-2],i[o-1])}else if(l)for(r=2;r<o;)e.bezierCurveTo(i[r++],i[r++],i[r++],i[r++],i[r++],i[r++]);else for(r=2;r<o;r+=2)e.lineTo(i[r],i[r+1]);s?(e.closePath(),e.fillStrokeShape(this)):e.strokeShape(this)}}getTensionPoints(){return this._getCache("tensionPoints",this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():l(this.points(),this.tension())}_getTensionPointsClosed(){var e=this.points(),t=e.length,n=this.tension(),r=s(e[t-2],e[t-1],e[0],e[1],e[2],e[3],n),i=s(e[t-4],e[t-3],e[t-2],e[t-1],e[0],e[1],n),o=l(e,n);return[r[2],r[3]].concat(o).concat([i[0],i[1],e[t-2],e[t-1],i[2],i[3],r[0],r[1],e[0],e[1]])}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){var e=this.points();if(e.length<4)return{x:e[0]||0,y:e[1]||0,width:0,height:0};for(var t,n,r=(e=0!==this.tension()?[e[0],e[1],...this._getTensionPoints(),e[e.length-2],e[e.length-1]]:this.points())[0],i=e[0],o=e[1],a=e[1],s=0;s<e.length/2;s++)t=e[2*s],n=e[2*s+1],r=Math.min(r,t),i=Math.max(i,t),o=Math.min(o,n),a=Math.max(a,n);return{x:r,y:o,width:i-r,height:a-o}}}t.Line=u,u.prototype.className="Line",u.prototype._attrsAffectingSize=["points","bezier","tension"],(0,a._registerNode)(u),r.Factory.addGetterSetter(u,"closed",!1),r.Factory.addGetterSetter(u,"bezier",!1),r.Factory.addGetterSetter(u,"tension",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(u,"points",[],(0,o.getNumberArrayValidator)())},1084:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Path=void 0;const r=n(630),i=n(7337),o=n(2225),a=n(8480);class s extends i.Shape{constructor(e){super(e),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",(function(){this._readDataAttribute()}))}_readDataAttribute(){this.dataArray=s.parsePathData(this.data()),this.pathLength=s.getPathLength(this.dataArray)}_sceneFunc(e){var t=this.dataArray;e.beginPath();for(var n=!1,r=0;r<t.length;r++){var i=t[r].command,o=t[r].points;switch(i){case"L":e.lineTo(o[0],o[1]);break;case"M":e.moveTo(o[0],o[1]);break;case"C":e.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);break;case"Q":e.quadraticCurveTo(o[0],o[1],o[2],o[3]);break;case"A":var a=o[0],s=o[1],l=o[2],u=o[3],c=o[4],d=o[5],f=o[6],h=o[7],p=l>u?l:u,g=l>u?1:l/u,m=l>u?u/l:1;e.translate(a,s),e.rotate(f),e.scale(g,m),e.arc(0,0,p,c,c+d,1-h),e.scale(1/g,1/m),e.rotate(-f),e.translate(-a,-s);break;case"z":n=!0,e.closePath()}}n||this.hasFill()?e.fillStrokeShape(this):e.strokeShape(this)}getSelfRect(){var e=[];this.dataArray.forEach((function(t){if("A"===t.command){var n=t.points[4],r=t.points[5],i=t.points[4]+r,o=Math.PI/180;if(Math.abs(n-i)<o&&(o=Math.abs(n-i)),r<0)for(let r=n-o;r>i;r-=o){const n=s.getPointOnEllipticalArc(t.points[0],t.points[1],t.points[2],t.points[3],r,0);e.push(n.x,n.y)}else for(let r=n+o;r<i;r+=o){const n=s.getPointOnEllipticalArc(t.points[0],t.points[1],t.points[2],t.points[3],r,0);e.push(n.x,n.y)}}else if("C"===t.command)for(let a=0;a<=1;a+=.01){const n=s.getPointOnCubicBezier(a,t.start.x,t.start.y,t.points[0],t.points[1],t.points[2],t.points[3],t.points[4],t.points[5]);e.push(n.x,n.y)}else e=e.concat(t.points)}));for(var t,n,r=e[0],i=e[0],o=e[1],a=e[1],l=0;l<e.length/2;l++)t=e[2*l],n=e[2*l+1],isNaN(t)||(r=Math.min(r,t),i=Math.max(i,t)),isNaN(n)||(o=Math.min(o,n),a=Math.max(a,n));return{x:r,y:o,width:i-r,height:a-o}}getLength(){return this.pathLength}getPointAtLength(e){return s.getPointAtLengthOfDataArray(e,this.dataArray)}static getLineLength(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))}static getPathLength(e){let t=0;for(var n=0;n<e.length;++n)t+=e[n].pathLength;return t}static getPointAtLengthOfDataArray(e,t){var n,r=0,i=t.length;if(!i)return null;for(;r<i&&e>t[r].pathLength;)e-=t[r].pathLength,++r;if(r===i)return{x:(n=t[r-1].points.slice(-2))[0],y:n[1]};if(e<.01)return{x:(n=t[r].points.slice(0,2))[0],y:n[1]};var o=t[r],l=o.points;switch(o.command){case"L":return s.getPointOnLine(e,o.start.x,o.start.y,l[0],l[1]);case"C":return s.getPointOnCubicBezier((0,a.t2length)(e,s.getPathLength(t),(e=>(0,a.getCubicArcLength)([o.start.x,l[0],l[2],l[4]],[o.start.y,l[1],l[3],l[5]],e))),o.start.x,o.start.y,l[0],l[1],l[2],l[3],l[4],l[5]);case"Q":return s.getPointOnQuadraticBezier((0,a.t2length)(e,s.getPathLength(t),(e=>(0,a.getQuadraticArcLength)([o.start.x,l[0],l[2]],[o.start.y,l[1],l[3]],e))),o.start.x,o.start.y,l[0],l[1],l[2],l[3]);case"A":var u=l[0],c=l[1],d=l[2],f=l[3],h=l[4],p=l[5],g=l[6];return h+=p*e/o.pathLength,s.getPointOnEllipticalArc(u,c,d,f,h,g)}return null}static getPointOnLine(e,t,n,r,i,o,a){void 0===o&&(o=t),void 0===a&&(a=n);var s=(i-n)/(r-t+1e-8),l=Math.sqrt(e*e/(1+s*s));r<t&&(l*=-1);var u,c=s*l;if(r===t)u={x:o,y:a+c};else if((a-n)/(o-t+1e-8)===s)u={x:o+l,y:a+c};else{var d,f,h=this.getLineLength(t,n,r,i),p=(o-t)*(r-t)+(a-n)*(i-n);d=t+(p/=h*h)*(r-t),f=n+p*(i-n);var g=this.getLineLength(o,a,d,f),m=Math.sqrt(e*e-g*g);l=Math.sqrt(m*m/(1+s*s)),r<t&&(l*=-1),u={x:d+l,y:f+(c=s*l)}}return u}static getPointOnCubicBezier(e,t,n,r,i,o,a,s,l){function u(e){return e*e*e}function c(e){return 3*e*e*(1-e)}function d(e){return 3*e*(1-e)*(1-e)}function f(e){return(1-e)*(1-e)*(1-e)}return{x:s*u(e)+o*c(e)+r*d(e)+t*f(e),y:l*u(e)+a*c(e)+i*d(e)+n*f(e)}}static getPointOnQuadraticBezier(e,t,n,r,i,o,a){function s(e){return e*e}function l(e){return 2*e*(1-e)}function u(e){return(1-e)*(1-e)}return{x:o*s(e)+r*l(e)+t*u(e),y:a*s(e)+i*l(e)+n*u(e)}}static getPointOnEllipticalArc(e,t,n,r,i,o){var a=Math.cos(o),s=Math.sin(o),l=n*Math.cos(i),u=r*Math.sin(i);return{x:e+(l*a-u*s),y:t+(l*s+u*a)}}static parsePathData(e){if(!e)return[];var t=e,n=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];t=t.replace(new RegExp(" ","g"),",");for(var r=0;r<n.length;r++)t=t.replace(new RegExp(n[r],"g"),"|"+n[r]);var i,o=t.split("|"),a=[],s=[],l=0,u=0,c=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;for(r=1;r<o.length;r++){var d=o[r],f=d.charAt(0);for(d=d.slice(1),s.length=0;i=c.exec(d);)s.push(i[0]);for(var h=[],p=0,g=s.length;p<g;p++)if("00"!==s[p]){var m=parseFloat(s[p]);isNaN(m)?h.push(0):h.push(m)}else h.push(0,0);for(;h.length>0&&!isNaN(h[0]);){var y,v,b,x,w,M,S,j,N,C,A="",T=[],E=l,D=u;switch(f){case"l":l+=h.shift(),u+=h.shift(),A="L",T.push(l,u);break;case"L":l=h.shift(),u=h.shift(),T.push(l,u);break;case"m":var k=h.shift(),O=h.shift();if(l+=k,u+=O,A="M",a.length>2&&"z"===a[a.length-1].command)for(var I=a.length-2;I>=0;I--)if("M"===a[I].command){l=a[I].points[0]+k,u=a[I].points[1]+O;break}T.push(l,u),f="l";break;case"M":l=h.shift(),u=h.shift(),A="M",T.push(l,u),f="L";break;case"h":l+=h.shift(),A="L",T.push(l,u);break;case"H":l=h.shift(),A="L",T.push(l,u);break;case"v":u+=h.shift(),A="L",T.push(l,u);break;case"V":u=h.shift(),A="L",T.push(l,u);break;case"C":T.push(h.shift(),h.shift(),h.shift(),h.shift()),l=h.shift(),u=h.shift(),T.push(l,u);break;case"c":T.push(l+h.shift(),u+h.shift(),l+h.shift(),u+h.shift()),l+=h.shift(),u+=h.shift(),A="C",T.push(l,u);break;case"S":v=l,b=u,"C"===(y=a[a.length-1]).command&&(v=l+(l-y.points[2]),b=u+(u-y.points[3])),T.push(v,b,h.shift(),h.shift()),l=h.shift(),u=h.shift(),A="C",T.push(l,u);break;case"s":v=l,b=u,"C"===(y=a[a.length-1]).command&&(v=l+(l-y.points[2]),b=u+(u-y.points[3])),T.push(v,b,l+h.shift(),u+h.shift()),l+=h.shift(),u+=h.shift(),A="C",T.push(l,u);break;case"Q":T.push(h.shift(),h.shift()),l=h.shift(),u=h.shift(),T.push(l,u);break;case"q":T.push(l+h.shift(),u+h.shift()),l+=h.shift(),u+=h.shift(),A="Q",T.push(l,u);break;case"T":v=l,b=u,"Q"===(y=a[a.length-1]).command&&(v=l+(l-y.points[0]),b=u+(u-y.points[1])),l=h.shift(),u=h.shift(),A="Q",T.push(v,b,l,u);break;case"t":v=l,b=u,"Q"===(y=a[a.length-1]).command&&(v=l+(l-y.points[0]),b=u+(u-y.points[1])),l+=h.shift(),u+=h.shift(),A="Q",T.push(v,b,l,u);break;case"A":x=h.shift(),w=h.shift(),M=h.shift(),S=h.shift(),j=h.shift(),N=l,C=u,l=h.shift(),u=h.shift(),A="A",T=this.convertEndpointToCenterParameterization(N,C,l,u,S,j,x,w,M);break;case"a":x=h.shift(),w=h.shift(),M=h.shift(),S=h.shift(),j=h.shift(),N=l,C=u,l+=h.shift(),u+=h.shift(),A="A",T=this.convertEndpointToCenterParameterization(N,C,l,u,S,j,x,w,M)}a.push({command:A||f,points:T,start:{x:E,y:D},pathLength:this.calcLength(E,D,A||f,T)})}"z"!==f&&"Z"!==f||a.push({command:"z",points:[],start:void 0,pathLength:0})}return a}static calcLength(e,t,n,r){var i,o,l,u,c=s;switch(n){case"L":return c.getLineLength(e,t,r[0],r[1]);case"C":return(0,a.getCubicArcLength)([e,r[0],r[2],r[4]],[t,r[1],r[3],r[5]],1);case"Q":return(0,a.getQuadraticArcLength)([e,r[0],r[2]],[t,r[1],r[3]],1);case"A":i=0;var d=r[4],f=r[5],h=r[4]+f,p=Math.PI/180;if(Math.abs(d-h)<p&&(p=Math.abs(d-h)),o=c.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],d,0),f<0)for(u=d-p;u>h;u-=p)l=c.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],u,0),i+=c.getLineLength(o.x,o.y,l.x,l.y),o=l;else for(u=d+p;u<h;u+=p)l=c.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],u,0),i+=c.getLineLength(o.x,o.y,l.x,l.y),o=l;return l=c.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],h,0),i+=c.getLineLength(o.x,o.y,l.x,l.y)}return 0}static convertEndpointToCenterParameterization(e,t,n,r,i,o,a,s,l){var u=l*(Math.PI/180),c=Math.cos(u)*(e-n)/2+Math.sin(u)*(t-r)/2,d=-1*Math.sin(u)*(e-n)/2+Math.cos(u)*(t-r)/2,f=c*c/(a*a)+d*d/(s*s);f>1&&(a*=Math.sqrt(f),s*=Math.sqrt(f));var h=Math.sqrt((a*a*(s*s)-a*a*(d*d)-s*s*(c*c))/(a*a*(d*d)+s*s*(c*c)));i===o&&(h*=-1),isNaN(h)&&(h=0);var p=h*a*d/s,g=h*-s*c/a,m=(e+n)/2+Math.cos(u)*p-Math.sin(u)*g,y=(t+r)/2+Math.sin(u)*p+Math.cos(u)*g,v=function(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])},b=function(e,t){return(e[0]*t[0]+e[1]*t[1])/(v(e)*v(t))},x=function(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(b(e,t))},w=x([1,0],[(c-p)/a,(d-g)/s]),M=[(c-p)/a,(d-g)/s],S=[(-1*c-p)/a,(-1*d-g)/s],j=x(M,S);return b(M,S)<=-1&&(j=Math.PI),b(M,S)>=1&&(j=0),0===o&&j>0&&(j-=2*Math.PI),1===o&&j<0&&(j+=2*Math.PI),[m,y,a,s,w,j,u,o]}}t.Path=s,s.prototype.className="Path",s.prototype._attrsAffectingSize=["data"],(0,o._registerNode)(s),r.Factory.addGetterSetter(s,"data")},3321:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Rect=void 0;const r=n(630),i=n(7337),o=n(2225),a=n(210),s=n(8049);class l extends i.Shape{_sceneFunc(e){var t=this.cornerRadius(),n=this.width(),r=this.height();e.beginPath(),t?a.Util.drawRoundedRectPath(e,n,r,t):e.rect(0,0,n,r),e.closePath(),e.fillStrokeShape(this)}}t.Rect=l,l.prototype.className="Rect",(0,o._registerNode)(l),r.Factory.addGetterSetter(l,"cornerRadius",0,(0,s.getNumberOrArrayOfNumbersValidator)(4))},7565:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RegularPolygon=void 0;const r=n(630),i=n(7337),o=n(8049),a=n(2225);class s extends i.Shape{_sceneFunc(e){const t=this._getPoints();e.beginPath(),e.moveTo(t[0].x,t[0].y);for(var n=1;n<t.length;n++)e.lineTo(t[n].x,t[n].y);e.closePath(),e.fillStrokeShape(this)}_getPoints(){const e=this.attrs.sides,t=this.attrs.radius||0,n=[];for(var r=0;r<e;r++)n.push({x:t*Math.sin(2*r*Math.PI/e),y:-1*t*Math.cos(2*r*Math.PI/e)});return n}getSelfRect(){const e=this._getPoints();var t=e[0].x,n=e[0].y,r=e[0].x,i=e[0].y;return e.forEach((e=>{t=Math.min(t,e.x),n=Math.max(n,e.x),r=Math.min(r,e.y),i=Math.max(i,e.y)})),{x:t,y:r,width:n-t,height:i-r}}getWidth(){return 2*this.radius()}getHeight(){return 2*this.radius()}setWidth(e){this.radius(e/2)}setHeight(e){this.radius(e/2)}}t.RegularPolygon=s,s.prototype.className="RegularPolygon",s.prototype._centroid=!0,s.prototype._attrsAffectingSize=["radius"],(0,a._registerNode)(s),r.Factory.addGetterSetter(s,"radius",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(s,"sides",0,(0,o.getNumberValidator)())},9501:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Ring=void 0;const r=n(630),i=n(7337),o=n(8049),a=n(2225);var s=2*Math.PI;class l extends i.Shape{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.innerRadius(),0,s,!1),e.moveTo(this.outerRadius(),0),e.arc(0,0,this.outerRadius(),s,0,!0),e.closePath(),e.fillStrokeShape(this)}getWidth(){return 2*this.outerRadius()}getHeight(){return 2*this.outerRadius()}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}}t.Ring=l,l.prototype.className="Ring",l.prototype._centroid=!0,l.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,a._registerNode)(l),r.Factory.addGetterSetter(l,"innerRadius",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(l,"outerRadius",0,(0,o.getNumberValidator)())},1922:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sprite=void 0;const r=n(630),i=n(7337),o=n(4822),a=n(8049),s=n(2225);class l extends i.Shape{constructor(e){super(e),this._updated=!0,this.anim=new o.Animation((()=>{var e=this._updated;return this._updated=!1,e})),this.on("animationChange.konva",(function(){this.frameIndex(0)})),this.on("frameIndexChange.konva",(function(){this._updated=!0})),this.on("frameRateChange.konva",(function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())}))}_sceneFunc(e){var t=this.animation(),n=this.frameIndex(),r=4*n,i=this.animations()[t],o=this.frameOffsets(),a=i[r+0],s=i[r+1],l=i[r+2],u=i[r+3],c=this.image();if((this.hasFill()||this.hasStroke())&&(e.beginPath(),e.rect(0,0,l,u),e.closePath(),e.fillStrokeShape(this)),c)if(o){var d=o[t],f=2*n;e.drawImage(c,a,s,l,u,d[f+0],d[f+1],l,u)}else e.drawImage(c,a,s,l,u,0,0,l,u)}_hitFunc(e){var t=this.animation(),n=this.frameIndex(),r=4*n,i=this.animations()[t],o=this.frameOffsets(),a=i[r+2],s=i[r+3];if(e.beginPath(),o){var l=o[t],u=2*n;e.rect(l[u+0],l[u+1],a,s)}else e.rect(0,0,a,s);e.closePath(),e.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){var e=this;this.interval=setInterval((function(){e._updateIndex()}),1e3/this.frameRate())}start(){if(!this.isRunning()){var e=this.getLayer();this.anim.setLayers(e),this._setInterval(),this.anim.start()}}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){var e=this.frameIndex(),t=this.animation();e<this.animations()[t].length/4-1?this.frameIndex(e+1):this.frameIndex(0)}}t.Sprite=l,l.prototype.className="Sprite",(0,s._registerNode)(l),r.Factory.addGetterSetter(l,"animation"),r.Factory.addGetterSetter(l,"animations"),r.Factory.addGetterSetter(l,"frameOffsets"),r.Factory.addGetterSetter(l,"image"),r.Factory.addGetterSetter(l,"frameIndex",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(l,"frameRate",17,(0,a.getNumberValidator)()),r.Factory.backCompat(l,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"})},8967:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Star=void 0;const r=n(630),i=n(7337),o=n(8049),a=n(2225);class s extends i.Shape{_sceneFunc(e){var t=this.innerRadius(),n=this.outerRadius(),r=this.numPoints();e.beginPath(),e.moveTo(0,0-n);for(var i=1;i<2*r;i++){var o=i%2===0?n:t,a=o*Math.sin(i*Math.PI/r),s=-1*o*Math.cos(i*Math.PI/r);e.lineTo(a,s)}e.closePath(),e.fillStrokeShape(this)}getWidth(){return 2*this.outerRadius()}getHeight(){return 2*this.outerRadius()}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}}t.Star=s,s.prototype.className="Star",s.prototype._centroid=!0,s.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,a._registerNode)(s),r.Factory.addGetterSetter(s,"numPoints",5,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(s,"innerRadius",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(s,"outerRadius",0,(0,o.getNumberValidator)())},7228:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Text=t.stringToArray=void 0;const r=n(210),i=n(630),o=n(7337),a=n(2225),s=n(8049),l=n(2225);function u(e){return Array.from(e)}t.stringToArray=u;var c,d="auto",f="inherit",h="justify",p="left",g="middle",m="normal",y=" ",v="none",b=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],x=b.length;function w(){return c||(c=r.Util.createCanvasElement().getContext("2d"))}class M extends o.Shape{constructor(e){super(function(e){return(e=e||{}).fillLinearGradientColorStops||e.fillRadialGradientColorStops||e.fillPatternImage||(e.fill=e.fill||"black"),e}(e)),this._partialTextX=0,this._partialTextY=0;for(var t=0;t<x;t++)this.on(b[t]+"Change.konva",this._setTextData);this._setTextData()}_sceneFunc(e){var t=this.textArr,n=t.length;if(this.text()){var r,i=this.padding(),o=this.fontSize(),s=this.lineHeight()*o,l=this.verticalAlign(),c=this.direction(),d=0,m=this.align(),y=this.getWidth(),v=this.letterSpacing(),b=this.fill(),x=this.textDecoration(),w=-1!==x.indexOf("underline"),M=-1!==x.indexOf("line-through");c=c===f?e.direction:c;var S=s/2,j=g;if(a.Konva._fixTextRendering){var N=this.measureSize("M");j="alphabetic",S=(N.fontBoundingBoxAscent-N.fontBoundingBoxDescent)/2+s/2}var C=0,A=0;for("rtl"===c&&e.setAttr("direction",c),e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline",j),e.setAttr("textAlign",p),l===g?d=(this.getHeight()-n*s-2*i)/2:"bottom"===l&&(d=this.getHeight()-n*s-2*i),e.translate(i,d+i),r=0;r<n;r++){C=0,A=0;var T,E,D,k=t[r],O=k.text,I=k.width,_=k.lastInParagraph;if(e.save(),"right"===m?C+=y-I-2*i:"center"===m&&(C+=(y-I-2*i)/2),w){e.save(),e.beginPath();const t=C,n=S+A+(a.Konva._fixTextRendering?Math.round(o/4):Math.round(o/2));e.moveTo(t,n),E=0===(T=O.split(" ").length-1),D=m!==h||_?I:y-2*i,e.lineTo(t+Math.round(D),n),e.lineWidth=o/15;const r=this._getLinearGradient();e.strokeStyle=r||b,e.stroke(),e.restore()}if(M){e.save(),e.beginPath();let t=a.Konva._fixTextRendering?-Math.round(o/4):0;e.moveTo(C,S+A+t),E=0===(T=O.split(" ").length-1),D=m===h&&_&&!E?y-2*i:I,e.lineTo(C+Math.round(D),S+A+t),e.lineWidth=o/15;const n=this._getLinearGradient();e.strokeStyle=n||b,e.stroke(),e.restore()}if("rtl"===c||0===v&&m!==h)0!==v&&e.setAttr("letterSpacing","".concat(v,"px")),this._partialTextX=C,this._partialTextY=S+A,this._partialText=O,e.fillStrokeShape(this);else{T=O.split(" ").length-1;for(var P=u(O),L=0;L<P.length;L++){var z=P[L];" "!==z||_||m!==h||(C+=(y-2*i-I)/T),this._partialTextX=C,this._partialTextY=S+A,this._partialText=z,e.fillStrokeShape(this),C+=this.measureSize(z).width+v}}e.restore(),n>1&&(S+=s)}}}_hitFunc(e){var t=this.getWidth(),n=this.getHeight();e.beginPath(),e.rect(0,0,t,n),e.closePath(),e.fillStrokeShape(this)}setText(e){var t=r.Util._isString(e)?e:null===e||void 0===e?"":e+"";return this._setAttr("text",t),this}getWidth(){return this.attrs.width===d||void 0===this.attrs.width?this.getTextWidth()+2*this.padding():this.attrs.width}getHeight(){return this.attrs.height===d||void 0===this.attrs.height?this.fontSize()*this.textArr.length*this.lineHeight()+2*this.padding():this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return r.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(e){var t,n=w(),r=this.fontSize();return n.save(),n.font=this._getContextFont(),t=n.measureText(e),n.restore(),{actualBoundingBoxAscent:t.actualBoundingBoxAscent,actualBoundingBoxDescent:t.actualBoundingBoxDescent,actualBoundingBoxLeft:t.actualBoundingBoxLeft,actualBoundingBoxRight:t.actualBoundingBoxRight,alphabeticBaseline:t.alphabeticBaseline,emHeightAscent:t.emHeightAscent,emHeightDescent:t.emHeightDescent,fontBoundingBoxAscent:t.fontBoundingBoxAscent,fontBoundingBoxDescent:t.fontBoundingBoxDescent,hangingBaseline:t.hangingBaseline,ideographicBaseline:t.ideographicBaseline,width:t.width,height:r}}_getContextFont(){return this.fontStyle()+y+this.fontVariant()+y+(this.fontSize()+"px ")+this.fontFamily().split(",").map((e=>{const t=(e=e.trim()).indexOf(" ")>=0,n=e.indexOf('"')>=0||e.indexOf("'")>=0;return t&&!n&&(e='"'.concat(e,'"')),e})).join(", ")}_addTextLine(e){this.align()===h&&(e=e.trim());var t=this._getTextWidth(e);return this.textArr.push({text:e,width:t,lastInParagraph:!1})}_getTextWidth(e){var t=this.letterSpacing(),n=e.length;return w().measureText(e).width+(n?t*(n-1):0)}_setTextData(){var e=this.text().split("\n"),t=+this.fontSize(),n=0,r=this.lineHeight()*t,i=this.attrs.width,o=this.attrs.height,a=i!==d&&void 0!==i,s=o!==d&&void 0!==o,l=this.padding(),u=i-2*l,c=o-2*l,f=0,h=this.wrap(),p="char"!==h&&h!==v,g=this.ellipsis();this.textArr=[],w().font=this._getContextFont();for(var m=g?this._getTextWidth("\u2026"):0,b=0,x=e.length;b<x;++b){var M=e[b],S=this._getTextWidth(M);if(a&&S>u)for(;M.length>0;){for(var j=0,N=M.length,C="",A=0;j<N;){var T=j+N>>>1,E=M.slice(0,T+1),D=this._getTextWidth(E)+m;D<=u?(j=T+1,C=E,A=D):N=T}if(!C)break;if(p){var k,O=M[C.length];(k=(O===y||"-"===O)&&A<=u?C.length:Math.max(C.lastIndexOf(y),C.lastIndexOf("-"))+1)>0&&(j=k,C=C.slice(0,j),A=this._getTextWidth(C))}if(C=C.trimRight(),this._addTextLine(C),n=Math.max(n,A),f+=r,this._shouldHandleEllipsis(f)){this._tryToAddEllipsisToLastLine();break}if((M=(M=M.slice(j)).trimLeft()).length>0&&(S=this._getTextWidth(M))<=u){this._addTextLine(M),f+=r,n=Math.max(n,S);break}}else this._addTextLine(M),f+=r,n=Math.max(n,S),this._shouldHandleEllipsis(f)&&b<x-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),s&&f+r>c)break}this.textHeight=t,this.textWidth=n}_shouldHandleEllipsis(e){var t=+this.fontSize(),n=this.lineHeight()*t,r=this.attrs.height,i=r!==d&&void 0!==r,o=r-2*this.padding();return!(this.wrap()!==v)||i&&e+n>o}_tryToAddEllipsisToLastLine(){var e=this.attrs.width,t=e!==d&&void 0!==e,n=e-2*this.padding(),r=this.ellipsis(),i=this.textArr[this.textArr.length-1];if(i&&r){if(t)this._getTextWidth(i.text+"\u2026")<n||(i.text=i.text.slice(0,i.text.length-3));this.textArr.splice(this.textArr.length-1,1),this._addTextLine(i.text+"\u2026")}}getStrokeScaleEnabled(){return!0}_useBufferCanvas(){const e=-1!==this.textDecoration().indexOf("underline")||-1!==this.textDecoration().indexOf("line-through"),t=this.hasShadow();return!(!e||!t)||super._useBufferCanvas()}}t.Text=M,M.prototype._fillFunc=function(e){e.fillText(this._partialText,this._partialTextX,this._partialTextY)},M.prototype._strokeFunc=function(e){e.setAttr("miterLimit",2),e.strokeText(this._partialText,this._partialTextX,this._partialTextY)},M.prototype.className="Text",M.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"],(0,l._registerNode)(M),i.Factory.overWriteSetter(M,"width",(0,s.getNumberOrAutoValidator)()),i.Factory.overWriteSetter(M,"height",(0,s.getNumberOrAutoValidator)()),i.Factory.addGetterSetter(M,"direction",f),i.Factory.addGetterSetter(M,"fontFamily","Arial"),i.Factory.addGetterSetter(M,"fontSize",12,(0,s.getNumberValidator)()),i.Factory.addGetterSetter(M,"fontStyle",m),i.Factory.addGetterSetter(M,"fontVariant",m),i.Factory.addGetterSetter(M,"padding",0,(0,s.getNumberValidator)()),i.Factory.addGetterSetter(M,"align",p),i.Factory.addGetterSetter(M,"verticalAlign","top"),i.Factory.addGetterSetter(M,"lineHeight",1,(0,s.getNumberValidator)()),i.Factory.addGetterSetter(M,"wrap","word"),i.Factory.addGetterSetter(M,"ellipsis",!1,(0,s.getBooleanValidator)()),i.Factory.addGetterSetter(M,"letterSpacing",0,(0,s.getNumberValidator)()),i.Factory.addGetterSetter(M,"text","",(0,s.getStringValidator)()),i.Factory.addGetterSetter(M,"textDecoration","")},8847:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextPath=void 0;const r=n(210),i=n(630),o=n(7337),a=n(1084),s=n(7228),l=n(8049),u=n(2225);var c="normal";function d(e){e.fillText(this.partialText,0,0)}function f(e){e.strokeText(this.partialText,0,0)}class h extends o.Shape{constructor(e){super(e),this.dummyCanvas=r.Util.createCanvasElement(),this.dataArray=[],this._readDataAttribute(),this.on("dataChange.konva",(function(){this._readDataAttribute(),this._setTextData()})),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_getTextPathLength(){return a.Path.getPathLength(this.dataArray)}_getPointAtLength(e){if(!this.attrs.data)return null;return e-1>this.pathLength?null:a.Path.getPointAtLengthOfDataArray(e,this.dataArray)}_readDataAttribute(){this.dataArray=a.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(e){e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline",this.textBaseline()),e.setAttr("textAlign","left"),e.save();var t=this.textDecoration(),n=this.fill(),r=this.fontSize(),i=this.glyphInfo;"underline"===t&&e.beginPath();for(var o=0;o<i.length;o++){e.save();var a=i[o].p0;e.translate(a.x,a.y),e.rotate(i[o].rotation),this.partialText=i[o].text,e.fillStrokeShape(this),"underline"===t&&(0===o&&e.moveTo(0,r/2+1),e.lineTo(r,r/2+1)),e.restore()}"underline"===t&&(e.strokeStyle=n,e.lineWidth=r/20,e.stroke()),e.restore()}_hitFunc(e){e.beginPath();var t=this.glyphInfo;if(t.length>=1){var n=t[0].p0;e.moveTo(n.x,n.y)}for(var r=0;r<t.length;r++){var i=t[r].p1;e.lineTo(i.x,i.y)}e.setAttr("lineWidth",this.fontSize()),e.setAttr("strokeStyle",this.colorKey),e.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return r.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}setText(e){return s.Text.prototype.setText.call(this,e)}_getContextFont(){return s.Text.prototype._getContextFont.call(this)}_getTextSize(e){var t=this.dummyCanvas.getContext("2d");t.save(),t.font=this._getContextFont();var n=t.measureText(e);return t.restore(),{width:n.width,height:parseInt("".concat(this.fontSize()),10)}}_setTextData(){const{width:e,height:t}=this._getTextSize(this.attrs.text);if(this.textWidth=e,this.textHeight=t,this.glyphInfo=[],!this.attrs.data)return null;const n=this.letterSpacing(),r=this.align(),i=this.kerningFunc(),o=Math.max(this.textWidth+((this.attrs.text||"").length-1)*n,0);let l=0;"center"===r&&(l=Math.max(0,this.pathLength/2-o/2)),"right"===r&&(l=Math.max(0,this.pathLength-o));const u=(0,s.stringToArray)(this.text());let c=l;for(var d=0;d<u.length;d++){const e=this._getPointAtLength(c);if(!e)return;let t=this._getTextSize(u[d]).width+n;if(" "===u[d]&&"justify"===r){const e=this.text().split(" ").length-1;t+=(this.pathLength-o)/e}const s=this._getPointAtLength(c+t);if(!s)return;const l=a.Path.getLineLength(e.x,e.y,s.x,s.y);let h=0;if(i)try{h=i(u[d-1],u[d])*this.fontSize()}catch(f){h=0}e.x+=h,s.x+=h,this.textWidth+=h;const p=a.Path.getPointOnLine(h+l/2,e.x,e.y,s.x,s.y),g=Math.atan2(s.y-e.y,s.x-e.x);this.glyphInfo.push({transposeX:p.x,transposeY:p.y,text:u[d],rotation:g,p0:e,p1:s}),c+=t}}getSelfRect(){if(!this.glyphInfo.length)return{x:0,y:0,width:0,height:0};var e=[];this.glyphInfo.forEach((function(t){e.push(t.p0.x),e.push(t.p0.y),e.push(t.p1.x),e.push(t.p1.y)}));for(var t,n,r=e[0]||0,i=e[0]||0,o=e[1]||0,a=e[1]||0,s=0;s<e.length/2;s++)t=e[2*s],n=e[2*s+1],r=Math.min(r,t),i=Math.max(i,t),o=Math.min(o,n),a=Math.max(a,n);var l=this.fontSize();return{x:r-l/2,y:o-l/2,width:i-r+l,height:a-o+l}}destroy(){return r.Util.releaseCanvas(this.dummyCanvas),super.destroy()}}t.TextPath=h,h.prototype._fillFunc=d,h.prototype._strokeFunc=f,h.prototype._fillFuncHit=d,h.prototype._strokeFuncHit=f,h.prototype.className="TextPath",h.prototype._attrsAffectingSize=["text","fontSize","data"],(0,u._registerNode)(h),i.Factory.addGetterSetter(h,"data"),i.Factory.addGetterSetter(h,"fontFamily","Arial"),i.Factory.addGetterSetter(h,"fontSize",12,(0,l.getNumberValidator)()),i.Factory.addGetterSetter(h,"fontStyle",c),i.Factory.addGetterSetter(h,"align","left"),i.Factory.addGetterSetter(h,"letterSpacing",0,(0,l.getNumberValidator)()),i.Factory.addGetterSetter(h,"textBaseline","middle"),i.Factory.addGetterSetter(h,"fontVariant",c),i.Factory.addGetterSetter(h,"text",""),i.Factory.addGetterSetter(h,"textDecoration",null),i.Factory.addGetterSetter(h,"kerningFunc",null)},7208:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Transformer=void 0;const r=n(210),i=n(630),o=n(5862),a=n(7337),s=n(3321),l=n(9739),u=n(2225),c=n(8049),d=n(2225);var f="tr-konva",h=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange","anchorStyleFuncChange"].map((e=>e+".".concat(f))).join(" "),p="nodesRect",g=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],m={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135};const y="ontouchstart"in u.Konva._global;var v=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"];function b(e,t,n){const r=n.x+(e.x-n.x)*Math.cos(t)-(e.y-n.y)*Math.sin(t),i=n.y+(e.x-n.x)*Math.sin(t)+(e.y-n.y)*Math.cos(t);return{...e,rotation:e.rotation+t,x:r,y:i}}function x(e,t){const n=function(e){return{x:e.x+e.width/2*Math.cos(e.rotation)+e.height/2*Math.sin(-e.rotation),y:e.y+e.height/2*Math.cos(e.rotation)+e.width/2*Math.sin(e.rotation)}}(e);return b(e,t,n)}let w=0;class M extends l.Group{constructor(e){super(e),this._movingAnchorName=null,this._transforming=!1,this._createElements(),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this.update=this.update.bind(this),this.on(h,this.update),this.getNode()&&this.update()}attachTo(e){return this.setNode(e),this}setNode(e){return r.Util.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([e])}getNode(){return this._nodes&&this._nodes[0]}_getEventNamespace(){return f+this._id}setNodes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._nodes&&this._nodes.length&&this.detach();const t=e.filter((e=>!e.isAncestorOf(this)||(r.Util.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1)));return this._nodes=e=t,1===e.length&&this.useSingleNodeRotation()?this.rotation(e[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach((e=>{const t=()=>{1===this.nodes().length&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),this._transforming||this.isDragging()||this.update()},n=e._attrsAffectingSize.map((e=>e+"Change."+this._getEventNamespace())).join(" ");e.on(n,t),e.on(g.map((e=>e+".".concat(this._getEventNamespace()))).join(" "),t),e.on("absoluteTransformChange.".concat(this._getEventNamespace()),t),this._proxyDrag(e)})),this._resetTransformCache(),!!this.findOne(".top-left")&&this.update(),this}_proxyDrag(e){let t;e.on("dragstart.".concat(this._getEventNamespace()),(n=>{t=e.getAbsolutePosition(),this.isDragging()||e===this.findOne(".back")||this.startDrag(n,!1)})),e.on("dragmove.".concat(this._getEventNamespace()),(n=>{if(!t)return;const r=e.getAbsolutePosition(),i=r.x-t.x,o=r.y-t.y;this.nodes().forEach((t=>{if(t===e)return;if(t.isDragging())return;const r=t.getAbsolutePosition();t.setAbsolutePosition({x:r.x+i,y:r.y+o}),t.startDrag(n)})),t=null}))}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach((e=>{e.off("."+this._getEventNamespace())})),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(p),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(p,this.__getNodeRect)}__getNodeShape(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.rotation(),n=arguments.length>2?arguments[2]:void 0;var r=e.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),i=e.getAbsoluteScale(n),o=e.getAbsolutePosition(n),a=r.x*i.x-e.offsetX()*i.x,s=r.y*i.y-e.offsetY()*i.y;const l=(u.Konva.getAngle(e.getAbsoluteRotation())+2*Math.PI)%(2*Math.PI);return b({x:o.x+a*Math.cos(l)+s*Math.sin(-l),y:o.y+s*Math.cos(l)+a*Math.sin(l),width:r.width*i.x,height:r.height*i.y,rotation:l},-u.Konva.getAngle(t),{x:0,y:0})}__getNodeRect(){if(!this.getNode())return{x:-1e8,y:-1e8,width:0,height:0,rotation:0};const e=[];this.nodes().map((t=>{const n=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()});var r=[{x:n.x,y:n.y},{x:n.x+n.width,y:n.y},{x:n.x+n.width,y:n.y+n.height},{x:n.x,y:n.y+n.height}],i=t.getAbsoluteTransform();r.forEach((function(t){var n=i.point(t);e.push(n)}))}));const t=new r.Transform;t.rotate(-u.Konva.getAngle(this.rotation()));var n=1/0,i=1/0,o=-1/0,a=-1/0;e.forEach((function(e){var r=t.point(e);void 0===n&&(n=o=r.x,i=a=r.y),n=Math.min(n,r.x),i=Math.min(i,r.y),o=Math.max(o,r.x),a=Math.max(a,r.y)})),t.invert();const s=t.point({x:n,y:i});return{x:s.x,y:s.y,width:o-n,height:a-i,rotation:u.Konva.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),v.forEach((e=>{this._createAnchor(e)})),this._createAnchor("rotater")}_createAnchor(e){var t=new s.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:e+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:y?10:"auto"}),n=this;t.on("mousedown touchstart",(function(e){n._handleMouseDown(e)})),t.on("dragstart",(e=>{t.stopDrag(),e.cancelBubble=!0})),t.on("dragend",(e=>{e.cancelBubble=!0})),t.on("mouseenter",(()=>{var n=u.Konva.getAngle(this.rotation()),i=this.rotateAnchorCursor(),o=function(e,t,n){if("rotater"===e)return n;t+=r.Util.degToRad(m[e]||0);var i=(r.Util.radToDeg(t)%360+360)%360;return r.Util._inRange(i,337.5,360)||r.Util._inRange(i,0,22.5)?"ns-resize":r.Util._inRange(i,22.5,67.5)?"nesw-resize":r.Util._inRange(i,67.5,112.5)?"ew-resize":r.Util._inRange(i,112.5,157.5)?"nwse-resize":r.Util._inRange(i,157.5,202.5)?"ns-resize":r.Util._inRange(i,202.5,247.5)?"nesw-resize":r.Util._inRange(i,247.5,292.5)?"ew-resize":r.Util._inRange(i,292.5,337.5)?"nwse-resize":(r.Util.error("Transformer has unknown angle for cursor detection: "+i),"pointer")}(e,n,i);t.getStage().content&&(t.getStage().content.style.cursor=o),this._cursorChange=!0})),t.on("mouseout",(()=>{t.getStage().content&&(t.getStage().content.style.cursor=""),this._cursorChange=!1})),this.add(t)}_createBack(){var e=new a.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc(e,t){var n=t.getParent(),i=n.padding();e.beginPath(),e.rect(-i,-i,t.width()+2*i,t.height()+2*i),e.moveTo(t.width()/2,-i),n.rotateEnabled()&&n.rotateLineVisible()&&e.lineTo(t.width()/2,-n.rotateAnchorOffset()*r.Util._sign(t.height())-i),e.fillStrokeShape(t)},hitFunc:(e,t)=>{if(this.shouldOverdrawWholeArea()){var n=this.padding();e.beginPath(),e.rect(-n,-n,t.width()+2*n,t.height()+2*n),e.fillStrokeShape(t)}}});this.add(e),this._proxyDrag(e),e.on("dragstart",(e=>{e.cancelBubble=!0})),e.on("dragmove",(e=>{e.cancelBubble=!0})),e.on("dragend",(e=>{e.cancelBubble=!0})),this.on("dragmove",(e=>{this.update()}))}_handleMouseDown(e){this._movingAnchorName=e.target.name().split(" ")[0];var t=this._getNodeRect(),n=t.width,r=t.height,i=Math.sqrt(Math.pow(n,2)+Math.pow(r,2));this.sin=Math.abs(r/i),this.cos=Math.abs(n/i),"undefined"!==typeof window&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;var o=e.target.getAbsolutePosition(),a=e.target.getStage().getPointerPosition();this._anchorDragOffset={x:a.x-o.x,y:a.y-o.y},w++,this._fire("transformstart",{evt:e.evt,target:this.getNode()}),this._nodes.forEach((t=>{t._fire("transformstart",{evt:e.evt,target:t})}))}_handleMouseMove(e){var t,n,r,i=this.findOne("."+this._movingAnchorName),o=i.getStage();o.setPointersPositions(e);const a=o.getPointerPosition();let s={x:a.x-this._anchorDragOffset.x,y:a.y-this._anchorDragOffset.y};const l=i.getAbsolutePosition();this.anchorDragBoundFunc()&&(s=this.anchorDragBoundFunc()(l,s,e)),i.setAbsolutePosition(s);const c=i.getAbsolutePosition();if(l.x!==c.x||l.y!==c.y)if("rotater"!==this._movingAnchorName){var d,f=this.shiftBehavior();d="inverted"===f?this.keepRatio()&&!e.shiftKey:"none"===f?this.keepRatio():this.keepRatio()||e.shiftKey;var h=this.centeredScaling()||e.altKey;if("top-left"===this._movingAnchorName){if(d){var p=h?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};r=Math.sqrt(Math.pow(p.x-i.x(),2)+Math.pow(p.y-i.y(),2));var g=this.findOne(".top-left").x()>p.x?-1:1,m=this.findOne(".top-left").y()>p.y?-1:1;t=r*this.cos*g,n=r*this.sin*m,this.findOne(".top-left").x(p.x-t),this.findOne(".top-left").y(p.y-n)}}else if("top-center"===this._movingAnchorName)this.findOne(".top-left").y(i.y());else if("top-right"===this._movingAnchorName){if(d){p=h?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};r=Math.sqrt(Math.pow(i.x()-p.x,2)+Math.pow(p.y-i.y(),2));g=this.findOne(".top-right").x()<p.x?-1:1,m=this.findOne(".top-right").y()>p.y?-1:1;t=r*this.cos*g,n=r*this.sin*m,this.findOne(".top-right").x(p.x+t),this.findOne(".top-right").y(p.y-n)}var y=i.position();this.findOne(".top-left").y(y.y),this.findOne(".bottom-right").x(y.x)}else if("middle-left"===this._movingAnchorName)this.findOne(".top-left").x(i.x());else if("middle-right"===this._movingAnchorName)this.findOne(".bottom-right").x(i.x());else if("bottom-left"===this._movingAnchorName){if(d){p=h?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};r=Math.sqrt(Math.pow(p.x-i.x(),2)+Math.pow(i.y()-p.y,2));g=p.x<i.x()?-1:1,m=i.y()<p.y?-1:1;t=r*this.cos*g,n=r*this.sin*m,i.x(p.x-t),i.y(p.y+n)}y=i.position(),this.findOne(".top-left").x(y.x),this.findOne(".bottom-right").y(y.y)}else if("bottom-center"===this._movingAnchorName)this.findOne(".bottom-right").y(i.y());else if("bottom-right"===this._movingAnchorName){if(d){p=h?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()};r=Math.sqrt(Math.pow(i.x()-p.x,2)+Math.pow(i.y()-p.y,2));g=this.findOne(".bottom-right").x()<p.x?-1:1,m=this.findOne(".bottom-right").y()<p.y?-1:1;t=r*this.cos*g,n=r*this.sin*m,this.findOne(".bottom-right").x(p.x+t),this.findOne(".bottom-right").y(p.y+n)}}else console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));if(h=this.centeredScaling()||e.altKey){var v=this.findOne(".top-left"),b=this.findOne(".bottom-right"),w=v.x(),M=v.y(),S=this.getWidth()-b.x(),j=this.getHeight()-b.y();b.move({x:-w,y:-M}),v.move({x:S,y:j})}var N=this.findOne(".top-left").getAbsolutePosition();t=N.x,n=N.y;var C=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),A=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:t,y:n,width:C,height:A,rotation:u.Konva.getAngle(this.rotation())},e)}else{var T=this._getNodeRect();t=i.x()-T.width/2,n=-i.y()+T.height/2;let r=Math.atan2(-n,t)+Math.PI/2;T.height<0&&(r-=Math.PI);const o=u.Konva.getAngle(this.rotation())+r,a=u.Konva.getAngle(this.rotationSnapTolerance()),s=x(T,function(e,t,n){let r=t;for(let i=0;i<e.length;i++){const o=u.Konva.getAngle(e[i]),a=Math.abs(o-t)%(2*Math.PI);Math.min(a,2*Math.PI-a)<n&&(r=o)}return r}(this.rotationSnaps(),o,a)-T.rotation);this._fitNodesInto(s,e)}}_handleMouseUp(e){this._removeEvents(e)}getAbsoluteTransform(){return this.getTransform()}_removeEvents(e){var t;if(this._transforming){this._transforming=!1,"undefined"!==typeof window&&(window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("touchmove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp,!0),window.removeEventListener("touchend",this._handleMouseUp,!0));var n=this.getNode();w--,this._fire("transformend",{evt:e,target:n}),null===(t=this.getLayer())||void 0===t||t.batchDraw(),n&&this._nodes.forEach((t=>{var n;t._fire("transformend",{evt:e,target:t}),null===(n=t.getLayer())||void 0===n||n.batchDraw()})),this._movingAnchorName=null}}_fitNodesInto(e,t){var n=this._getNodeRect();if(r.Util._inRange(e.width,2*-this.padding()-1,1))return void this.update();if(r.Util._inRange(e.height,2*-this.padding()-1,1))return void this.update();var i=new r.Transform;if(i.rotate(u.Konva.getAngle(this.rotation())),this._movingAnchorName&&e.width<0&&this._movingAnchorName.indexOf("left")>=0){const t=i.point({x:2*-this.padding(),y:0});e.x+=t.x,e.y+=t.y,e.width+=2*this.padding(),this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=t.x,this._anchorDragOffset.y-=t.y}else if(this._movingAnchorName&&e.width<0&&this._movingAnchorName.indexOf("right")>=0){const t=i.point({x:2*this.padding(),y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=t.x,this._anchorDragOffset.y-=t.y,e.width+=2*this.padding()}if(this._movingAnchorName&&e.height<0&&this._movingAnchorName.indexOf("top")>=0){const t=i.point({x:0,y:2*-this.padding()});e.x+=t.x,e.y+=t.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=t.x,this._anchorDragOffset.y-=t.y,e.height+=2*this.padding()}else if(this._movingAnchorName&&e.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const t=i.point({x:0,y:2*this.padding()});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=t.x,this._anchorDragOffset.y-=t.y,e.height+=2*this.padding()}if(this.boundBoxFunc()){const t=this.boundBoxFunc()(n,e);t?e=t:r.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const o=1e7,a=new r.Transform;a.translate(n.x,n.y),a.rotate(n.rotation),a.scale(n.width/o,n.height/o);const s=new r.Transform,l=e.width/o,c=e.height/o;!1===this.flipEnabled()?(s.translate(e.x,e.y),s.rotate(e.rotation),s.translate(e.width<0?e.width:0,e.height<0?e.height:0),s.scale(Math.abs(l),Math.abs(c))):(s.translate(e.x,e.y),s.rotate(e.rotation),s.scale(l,c));const d=s.multiply(a.invert());this._nodes.forEach((e=>{var t;const n=e.getParent().getAbsoluteTransform(),i=e.getTransform().copy();i.translate(e.offsetX(),e.offsetY());const o=new r.Transform;o.multiply(n.copy().invert()).multiply(d).multiply(n).multiply(i);const a=o.decompose();e.setAttrs(a),null===(t=e.getLayer())||void 0===t||t.batchDraw()})),this.rotation(r.Util._getRotation(e.rotation)),this._nodes.forEach((e=>{this._fire("transform",{evt:t,target:e}),e._fire("transform",{evt:t,target:e})})),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(e,t){this.findOne(e).setAttrs(t)}update(){var e,t=this._getNodeRect();this.rotation(r.Util._getRotation(t.rotation));var n=t.width,i=t.height,o=this.enabledAnchors(),a=this.resizeEnabled(),s=this.padding(),l=this.anchorSize();const u=this.find("._anchor");u.forEach((e=>{e.setAttrs({width:l,height:l,offsetX:l/2,offsetY:l/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})})),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:l/2+s,offsetY:l/2+s,visible:a&&o.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:n/2,y:0,offsetY:l/2+s,visible:a&&o.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:n,y:0,offsetX:l/2-s,offsetY:l/2+s,visible:a&&o.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:i/2,offsetX:l/2+s,visible:a&&o.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:n,y:i/2,offsetX:l/2-s,visible:a&&o.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:i,offsetX:l/2+s,offsetY:l/2-s,visible:a&&o.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:n/2,y:i,offsetY:l/2-s,visible:a&&o.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:n,y:i,offsetX:l/2-s,offsetY:l/2-s,visible:a&&o.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:n/2,y:-this.rotateAnchorOffset()*r.Util._sign(i)-s,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:n,height:i,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0});const c=this.anchorStyleFunc();c&&u.forEach((e=>{c(e)})),null===(e=this.getLayer())||void 0===e||e.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();var e=this.findOne("."+this._movingAnchorName);e&&e.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),l.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return o.Node.prototype.toObject.call(this)}clone(e){return o.Node.prototype.clone.call(this,e)}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}t.Transformer=M,M.isTransforming=()=>w>0,M.prototype.className="Transformer",(0,d._registerNode)(M),i.Factory.addGetterSetter(M,"enabledAnchors",v,(function(e){return e instanceof Array||r.Util.warn("enabledAnchors value should be an array"),e instanceof Array&&e.forEach((function(e){-1===v.indexOf(e)&&r.Util.warn("Unknown anchor name: "+e+". Available names are: "+v.join(", "))})),e||[]})),i.Factory.addGetterSetter(M,"flipEnabled",!0,(0,c.getBooleanValidator)()),i.Factory.addGetterSetter(M,"resizeEnabled",!0),i.Factory.addGetterSetter(M,"anchorSize",10,(0,c.getNumberValidator)()),i.Factory.addGetterSetter(M,"rotateEnabled",!0),i.Factory.addGetterSetter(M,"rotateLineVisible",!0),i.Factory.addGetterSetter(M,"rotationSnaps",[]),i.Factory.addGetterSetter(M,"rotateAnchorOffset",50,(0,c.getNumberValidator)()),i.Factory.addGetterSetter(M,"rotateAnchorCursor","crosshair"),i.Factory.addGetterSetter(M,"rotationSnapTolerance",5,(0,c.getNumberValidator)()),i.Factory.addGetterSetter(M,"borderEnabled",!0),i.Factory.addGetterSetter(M,"anchorStroke","rgb(0, 161, 255)"),i.Factory.addGetterSetter(M,"anchorStrokeWidth",1,(0,c.getNumberValidator)()),i.Factory.addGetterSetter(M,"anchorFill","white"),i.Factory.addGetterSetter(M,"anchorCornerRadius",0,(0,c.getNumberValidator)()),i.Factory.addGetterSetter(M,"borderStroke","rgb(0, 161, 255)"),i.Factory.addGetterSetter(M,"borderStrokeWidth",1,(0,c.getNumberValidator)()),i.Factory.addGetterSetter(M,"borderDash"),i.Factory.addGetterSetter(M,"keepRatio",!0),i.Factory.addGetterSetter(M,"shiftBehavior","default"),i.Factory.addGetterSetter(M,"centeredScaling",!1),i.Factory.addGetterSetter(M,"ignoreStroke",!1),i.Factory.addGetterSetter(M,"padding",0,(0,c.getNumberValidator)()),i.Factory.addGetterSetter(M,"node"),i.Factory.addGetterSetter(M,"nodes"),i.Factory.addGetterSetter(M,"boundBoxFunc"),i.Factory.addGetterSetter(M,"anchorDragBoundFunc"),i.Factory.addGetterSetter(M,"anchorStyleFunc"),i.Factory.addGetterSetter(M,"shouldOverdrawWholeArea",!1),i.Factory.addGetterSetter(M,"useSingleNodeRotation",!0),i.Factory.backCompat(M,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"})},9475:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Wedge=void 0;const r=n(630),i=n(7337),o=n(2225),a=n(8049),s=n(2225);class l extends i.Shape{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.radius(),0,o.Konva.getAngle(this.angle()),this.clockwise()),e.lineTo(0,0),e.closePath(),e.fillStrokeShape(this)}getWidth(){return 2*this.radius()}getHeight(){return 2*this.radius()}setWidth(e){this.radius(e/2)}setHeight(e){this.radius(e/2)}}t.Wedge=l,l.prototype.className="Wedge",l.prototype._centroid=!0,l.prototype._attrsAffectingSize=["radius"],(0,s._registerNode)(l),r.Factory.addGetterSetter(l,"radius",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(l,"angle",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(l,"clockwise",!1),r.Factory.backCompat(l,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"})},4409:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=16,u=32,c=64,d=128,f=256,h=1/0,p=9007199254740991,g=NaN,m=4294967295,y=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",u],["partialRight",c],["rearg",f]],v="[object Arguments]",b="[object Array]",x="[object Boolean]",w="[object Date]",M="[object Error]",S="[object Function]",j="[object GeneratorFunction]",N="[object Map]",C="[object Number]",A="[object Object]",T="[object Promise]",E="[object RegExp]",D="[object Set]",k="[object String]",O="[object Symbol]",I="[object WeakMap]",_="[object ArrayBuffer]",P="[object DataView]",L="[object Float32Array]",z="[object Float64Array]",R="[object Int8Array]",F="[object Int16Array]",U="[object Int32Array]",B="[object Uint8Array]",V="[object Uint8ClampedArray]",Q="[object Uint16Array]",H="[object Uint32Array]",Y=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,Z=/[&<>"']/g,K=RegExp(q.source),X=RegExp(Z.source),$=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(ie.source),ae=/^\s+/,se=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ue=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,he=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ge=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,xe=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Me=/($^)/,Se=/['\n\r\u2028\u2029\\]/g,je="\\ud800-\\udfff",Ne="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ce="\\u2700-\\u27bf",Ae="a-z\\xdf-\\xf6\\xf8-\\xff",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",Ee="\\ufe0e\\ufe0f",De="\\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",ke="['\u2019]",Oe="["+je+"]",Ie="["+De+"]",_e="["+Ne+"]",Pe="\\d+",Le="["+Ce+"]",ze="["+Ae+"]",Re="[^"+je+De+Pe+Ce+Ae+Te+"]",Fe="\\ud83c[\\udffb-\\udfff]",Ue="[^"+je+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",Ve="[\\ud800-\\udbff][\\udc00-\\udfff]",Qe="["+Te+"]",He="\\u200d",Ye="(?:"+ze+"|"+Re+")",We="(?:"+Qe+"|"+Re+")",Ge="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",qe="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ze="(?:"+_e+"|"+Fe+")"+"?",Ke="["+Ee+"]?",Xe=Ke+Ze+("(?:"+He+"(?:"+[Ue,Be,Ve].join("|")+")"+Ke+Ze+")*"),$e="(?:"+[Le,Be,Ve].join("|")+")"+Xe,Je="(?:"+[Ue+_e+"?",_e,Be,Ve,Oe].join("|")+")",et=RegExp(ke,"g"),tt=RegExp(_e,"g"),nt=RegExp(Fe+"(?="+Fe+")|"+Je+Xe,"g"),rt=RegExp([Qe+"?"+ze+"+"+Ge+"(?="+[Ie,Qe,"$"].join("|")+")",We+"+"+qe+"(?="+[Ie,Qe+Ye,"$"].join("|")+")",Qe+"?"+Ye+"+"+Ge,Qe+"+"+qe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pe,$e].join("|"),"g"),it=RegExp("["+He+je+Ne+Ee+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["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"],st=-1,lt={};lt[L]=lt[z]=lt[R]=lt[F]=lt[U]=lt[B]=lt[V]=lt[Q]=lt[H]=!0,lt[v]=lt[b]=lt[_]=lt[x]=lt[P]=lt[w]=lt[M]=lt[S]=lt[N]=lt[C]=lt[A]=lt[E]=lt[D]=lt[k]=lt[I]=!1;var ut={};ut[v]=ut[b]=ut[_]=ut[P]=ut[x]=ut[w]=ut[L]=ut[z]=ut[R]=ut[F]=ut[U]=ut[N]=ut[C]=ut[A]=ut[E]=ut[D]=ut[k]=ut[O]=ut[B]=ut[V]=ut[Q]=ut[H]=!0,ut[M]=ut[S]=ut[I]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ft=parseInt,ht="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,pt="object"==typeof self&&self&&self.Object===Object&&self,gt=ht||pt||Function("return this")(),mt=t&&!t.nodeType&&t,yt=mt&&e&&!e.nodeType&&e,vt=yt&&yt.exports===mt,bt=vt&&ht.process,xt=function(){try{var e=yt&&yt.require&&yt.require("util").types;return e||bt&&bt.binding&&bt.binding("util")}catch(t){}}(),wt=xt&&xt.isArrayBuffer,Mt=xt&&xt.isDate,St=xt&&xt.isMap,jt=xt&&xt.isRegExp,Nt=xt&&xt.isSet,Ct=xt&&xt.isTypedArray;function At(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 Tt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function Et(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Dt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function kt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Ot(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function It(e,t){return!!(null==e?0:e.length)&&Qt(e,t,0)>-1}function _t(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Pt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Lt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function zt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function Rt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Ft(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Ut=Gt("length");function Bt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Vt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Qt(e,t,n){return t===t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Vt(e,Yt,n)}function Ht(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Yt(e){return e!==e}function Wt(e,t){var n=null==e?0:e.length;return n?Kt(e,t)/n:g}function Gt(e){return function(t){return null==t?i:t[e]}}function qt(e){return function(t){return null==e?i:e[t]}}function Zt(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Kt(e,t){for(var n,r=-1,o=e.length;++r<o;){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function Xt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function $t(e){return e?e.slice(0,mn(e)+1).replace(ae,""):e}function Jt(e){return function(t){return e(t)}}function en(e,t){return Pt(t,(function(t){return e[t]}))}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Qt(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Qt(t,e[n],0)>-1;);return n}var on=qt({"\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=qt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function sn(e){return"\\"+ct[e]}function ln(e){return it.test(e)}function un(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 dn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,o[i++]=n)}return o}function fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function hn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pn(e){return ln(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):Ut(e)}function gn(e){return ln(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function mn(e){for(var t=e.length;t--&&se.test(e.charAt(t)););return t}var yn=qt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var vn=function e(t){var n=(t=null==t?gt:vn.defaults(gt.Object(),t,vn.pick(gt,at))).Array,r=t.Date,se=t.Error,je=t.Function,Ne=t.Math,Ce=t.Object,Ae=t.RegExp,Te=t.String,Ee=t.TypeError,De=n.prototype,ke=je.prototype,Oe=Ce.prototype,Ie=t["__core-js_shared__"],_e=ke.toString,Pe=Oe.hasOwnProperty,Le=0,ze=function(){var e=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Re=Oe.toString,Fe=_e.call(Ce),Ue=gt._,Be=Ae("^"+_e.call(Pe).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ve=vt?t.Buffer:i,Qe=t.Symbol,He=t.Uint8Array,Ye=Ve?Ve.allocUnsafe:i,We=cn(Ce.getPrototypeOf,Ce),Ge=Ce.create,qe=Oe.propertyIsEnumerable,Ze=De.splice,Ke=Qe?Qe.isConcatSpreadable:i,Xe=Qe?Qe.iterator:i,$e=Qe?Qe.toStringTag:i,Je=function(){try{var e=fo(Ce,"defineProperty");return e({},"",{}),e}catch(t){}}(),nt=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,it=r&&r.now!==gt.Date.now&&r.now,ct=t.setTimeout!==gt.setTimeout&&t.setTimeout,ht=Ne.ceil,pt=Ne.floor,mt=Ce.getOwnPropertySymbols,yt=Ve?Ve.isBuffer:i,bt=t.isFinite,xt=De.join,Ut=cn(Ce.keys,Ce),qt=Ne.max,bn=Ne.min,xn=r.now,wn=t.parseInt,Mn=Ne.random,Sn=De.reverse,jn=fo(t,"DataView"),Nn=fo(t,"Map"),Cn=fo(t,"Promise"),An=fo(t,"Set"),Tn=fo(t,"WeakMap"),En=fo(Ce,"create"),Dn=Tn&&new Tn,kn={},On=Ro(jn),In=Ro(Nn),_n=Ro(Cn),Pn=Ro(An),Ln=Ro(Tn),zn=Qe?Qe.prototype:i,Rn=zn?zn.valueOf:i,Fn=zn?zn.toString:i;function Un(e){if(ts(e)&&!Ha(e)&&!(e instanceof Hn)){if(e instanceof Qn)return e;if(Pe.call(e,"__wrapped__"))return Fo(e)}return new Qn(e)}var Bn=function(){function e(){}return function(t){if(!es(t))return{};if(Ge)return Ge(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Vn(){}function Qn(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__=m,this.__views__=[]}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Gn;++t<n;)this.add(e[t])}function Zn(e){var t=this.__data__=new Wn(e);this.size=t.size}function Kn(e,t){var n=Ha(e),r=!n&&Qa(e),i=!n&&!r&&qa(e),o=!n&&!r&&!i&&us(e),a=n||r||i||o,s=a?Xt(e.length,Te):[],l=s.length;for(var u in e)!t&&!Pe.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||bo(u,l))||s.push(u);return s}function Xn(e){var t=e.length;return t?e[qr(0,t-1)]:i}function $n(e,t){return Po(Ei(e),sr(t,0,e.length))}function Jn(e){return Po(Ei(e))}function er(e,t,n){(n!==i&&!Ua(e[t],n)||n===i&&!(t in e))&&or(e,t,n)}function tr(e,t,n){var r=e[t];Pe.call(e,t)&&Ua(r,n)&&(n!==i||t in e)||or(e,t,n)}function nr(e,t){for(var n=e.length;n--;)if(Ua(e[n][0],t))return n;return-1}function rr(e,t,n,r){return fr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function ir(e,t){return e&&Di(t,ks(t),e)}function or(e,t,n){"__proto__"==t&&Je?Je(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ar(e,t){for(var r=-1,o=t.length,a=n(o),s=null==e;++r<o;)a[r]=s?i:Cs(e,t[r]);return a}function sr(e,t,n){return e===e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function lr(e,t,n,r,o,a){var s,l=1&t,u=2&t,c=4&t;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!es(e))return e;var d=Ha(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Pe.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Ei(e,s)}else{var f=go(e),h=f==S||f==j;if(qa(e))return Si(e,l);if(f==A||f==v||h&&!o){if(s=u||h?{}:yo(e),!l)return u?function(e,t){return Di(e,po(e),t)}(e,function(e,t){return e&&Di(t,Os(t),e)}(s,e)):function(e,t){return Di(e,ho(e),t)}(e,ir(s,e))}else{if(!ut[f])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case _:return ji(e);case x:case w:return new r(+e);case P:return function(e,t){var n=t?ji(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case L:case z:case R:case F:case U:case B:case V:case Q:case H:return Ni(e,n);case N:return new r;case C:case k:return new r(e);case E:return function(e){var t=new e.constructor(e.source,ge.exec(e));return t.lastIndex=e.lastIndex,t}(e);case D:return new r;case O:return i=e,Rn?Ce(Rn.call(i)):{}}var i}(e,f,l)}}a||(a=new Zn);var p=a.get(e);if(p)return p;a.set(e,s),as(e)?e.forEach((function(r){s.add(lr(r,t,n,r,e,a))})):ns(e)&&e.forEach((function(r,i){s.set(i,lr(r,t,n,i,e,a))}));var g=d?i:(c?u?io:ro:u?Os:ks)(e);return Et(g||e,(function(r,i){g&&(r=e[i=r]),tr(s,i,lr(r,t,n,i,e,a))})),s}function ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ce(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 cr(e,t,n){if("function"!=typeof e)throw new Ee(o);return ko((function(){e.apply(i,n)}),t)}function dr(e,t,n,r){var i=-1,o=It,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=Pt(t,Jt(n))),r?(o=_t,a=!1):t.length>=200&&(o=tn,a=!1,t=new qn(t));e:for(;++i<s;){var c=e[i],d=null==n?c:n(c);if(c=r||0!==c?c:0,a&&d===d){for(var f=u;f--;)if(t[f]===d)continue e;l.push(c)}else o(t,d,r)||l.push(c)}return l}Un.templateSettings={escape:$,evaluate:J,interpolate:ee,variable:"",imports:{_:Un}},Un.prototype=Vn.prototype,Un.prototype.constructor=Un,Qn.prototype=Bn(Vn.prototype),Qn.prototype.constructor=Qn,Hn.prototype=Bn(Vn.prototype),Hn.prototype.constructor=Hn,Yn.prototype.clear=function(){this.__data__=En?En(null):{},this.size=0},Yn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Yn.prototype.get=function(e){var t=this.__data__;if(En){var n=t[e];return n===a?i:n}return Pe.call(t,e)?t[e]:i},Yn.prototype.has=function(e){var t=this.__data__;return En?t[e]!==i:Pe.call(t,e)},Yn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=En&&t===i?a:t,this},Wn.prototype.clear=function(){this.__data__=[],this.size=0},Wn.prototype.delete=function(e){var t=this.__data__,n=nr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ze.call(t,n,1),--this.size,!0)},Wn.prototype.get=function(e){var t=this.__data__,n=nr(t,e);return n<0?i:t[n][1]},Wn.prototype.has=function(e){return nr(this.__data__,e)>-1},Wn.prototype.set=function(e,t){var n=this.__data__,r=nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Gn.prototype.clear=function(){this.size=0,this.__data__={hash:new Yn,map:new(Nn||Wn),string:new Yn}},Gn.prototype.delete=function(e){var t=uo(this,e).delete(e);return this.size-=t?1:0,t},Gn.prototype.get=function(e){return uo(this,e).get(e)},Gn.prototype.has=function(e){return uo(this,e).has(e)},Gn.prototype.set=function(e,t){var n=uo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},qn.prototype.add=qn.prototype.push=function(e){return this.__data__.set(e,a),this},qn.prototype.has=function(e){return this.__data__.has(e)},Zn.prototype.clear=function(){this.__data__=new Wn,this.size=0},Zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Zn.prototype.get=function(e){return this.__data__.get(e)},Zn.prototype.has=function(e){return this.__data__.has(e)},Zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Wn){var r=n.__data__;if(!Nn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Gn(r)}return n.set(e,t),this.size=n.size,this};var fr=Ii(xr),hr=Ii(wr,!0);function pr(e,t){var n=!0;return fr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function gr(e,t,n){for(var r=-1,o=e.length;++r<o;){var a=e[r],s=t(a);if(null!=s&&(l===i?s===s&&!ls(s):n(s,l)))var l=s,u=a}return u}function mr(e,t){var n=[];return fr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function yr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=vo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?yr(s,t-1,n,r,i):Lt(i,s):r||(i[i.length]=s)}return i}var vr=_i(),br=_i(!0);function xr(e,t){return e&&vr(e,t,ks)}function wr(e,t){return e&&br(e,t,ks)}function Mr(e,t){return Ot(t,(function(t){return Xa(e[t])}))}function Sr(e,t){for(var n=0,r=(t=bi(t,e)).length;null!=e&&n<r;)e=e[zo(t[n++])];return n&&n==r?e:i}function jr(e,t,n){var r=t(e);return Ha(e)?r:Lt(r,n(e))}function Nr(e){return null==e?e===i?"[object Undefined]":"[object Null]":$e&&$e in Ce(e)?function(e){var t=Pe.call(e,$e),n=e[$e];try{e[$e]=i;var r=!0}catch(a){}var o=Re.call(e);r&&(t?e[$e]=n:delete e[$e]);return o}(e):function(e){return Re.call(e)}(e)}function Cr(e,t){return e>t}function Ar(e,t){return null!=e&&Pe.call(e,t)}function Tr(e,t){return null!=e&&t in Ce(e)}function Er(e,t,r){for(var o=r?_t:It,a=e[0].length,s=e.length,l=s,u=n(s),c=1/0,d=[];l--;){var f=e[l];l&&t&&(f=Pt(f,Jt(t))),c=bn(f.length,c),u[l]=!r&&(t||a>=120&&f.length>=120)?new qn(l&&f):i}f=e[0];var h=-1,p=u[0];e:for(;++h<a&&d.length<c;){var g=f[h],m=t?t(g):g;if(g=r||0!==g?g:0,!(p?tn(p,m):o(d,m,r))){for(l=s;--l;){var y=u[l];if(!(y?tn(y,m):o(e[l],m,r)))continue e}p&&p.push(m),d.push(g)}}return d}function Dr(e,t,n){var r=null==(e=To(e,t=bi(t,e)))?e:e[zo(Ko(t))];return null==r?i:At(r,e,n)}function kr(e){return ts(e)&&Nr(e)==v}function Or(e,t,n,r,o){return e===t||(null==e||null==t||!ts(e)&&!ts(t)?e!==e&&t!==t:function(e,t,n,r,o,a){var s=Ha(e),l=Ha(t),u=s?b:go(e),c=l?b:go(t),d=(u=u==v?A:u)==A,f=(c=c==v?A:c)==A,h=u==c;if(h&&qa(e)){if(!qa(t))return!1;s=!0,d=!1}if(h&&!d)return a||(a=new Zn),s||us(e)?to(e,t,n,r,o,a):function(e,t,n,r,i,o,a){switch(n){case P:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _:return!(e.byteLength!=t.byteLength||!o(new He(e),new He(t)));case x:case w:case C:return Ua(+e,+t);case M:return e.name==t.name&&e.message==t.message;case E:case k:return e==t+"";case N:var s=un;case D:var l=1&r;if(s||(s=fn),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=to(s(e),s(t),r,i,o,a);return a.delete(e),c;case O:if(Rn)return Rn.call(e)==Rn.call(t)}return!1}(e,t,u,n,r,o,a);if(!(1&n)){var p=d&&Pe.call(e,"__wrapped__"),g=f&&Pe.call(t,"__wrapped__");if(p||g){var m=p?e.value():e,y=g?t.value():t;return a||(a=new Zn),o(m,y,n,r,a)}}if(!h)return!1;return a||(a=new Zn),function(e,t,n,r,o,a){var s=1&n,l=ro(e),u=l.length,c=ro(t),d=c.length;if(u!=d&&!s)return!1;var f=u;for(;f--;){var h=l[f];if(!(s?h in t:Pe.call(t,h)))return!1}var p=a.get(e),g=a.get(t);if(p&&g)return p==t&&g==e;var m=!0;a.set(e,t),a.set(t,e);var y=s;for(;++f<u;){var v=e[h=l[f]],b=t[h];if(r)var x=s?r(b,v,h,t,e,a):r(v,b,h,e,t,a);if(!(x===i?v===b||o(v,b,n,r,a):x)){m=!1;break}y||(y="constructor"==h)}if(m&&!y){var w=e.constructor,M=t.constructor;w==M||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof M&&M instanceof M||(m=!1)}return a.delete(e),a.delete(t),m}(e,t,n,r,o,a)}(e,t,n,r,Or,o))}function Ir(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;for(e=Ce(e);o--;){var l=n[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var u=(l=n[o])[0],c=e[u],d=l[1];if(s&&l[2]){if(c===i&&!(u in e))return!1}else{var f=new Zn;if(r)var h=r(c,d,u,e,t,f);if(!(h===i?Or(d,c,3,r,f):h))return!1}}return!0}function _r(e){return!(!es(e)||(t=e,ze&&ze in t))&&(Xa(e)?Be:ve).test(Ro(e));var t}function Pr(e){return"function"==typeof e?e:null==e?rl:"object"==typeof e?Ha(e)?Br(e[0],e[1]):Ur(e):fl(e)}function Lr(e){if(!jo(e))return Ut(e);var t=[];for(var n in Ce(e))Pe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function zr(e){if(!es(e))return function(e){var t=[];if(null!=e)for(var n in Ce(e))t.push(n);return t}(e);var t=jo(e),n=[];for(var r in e)("constructor"!=r||!t&&Pe.call(e,r))&&n.push(r);return n}function Rr(e,t){return e<t}function Fr(e,t){var r=-1,i=Wa(e)?n(e.length):[];return fr(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}function Ur(e){var t=co(e);return 1==t.length&&t[0][2]?Co(t[0][0],t[0][1]):function(n){return n===e||Ir(n,e,t)}}function Br(e,t){return wo(e)&&No(t)?Co(zo(e),t):function(n){var r=Cs(n,e);return r===i&&r===t?As(n,e):Or(t,r,3)}}function Vr(e,t,n,r,o){e!==t&&vr(t,(function(a,s){if(o||(o=new Zn),es(a))!function(e,t,n,r,o,a,s){var l=Eo(e,n),u=Eo(t,n),c=s.get(u);if(c)return void er(e,n,c);var d=a?a(l,u,n+"",e,t,s):i,f=d===i;if(f){var h=Ha(u),p=!h&&qa(u),g=!h&&!p&&us(u);d=u,h||p||g?Ha(l)?d=l:Ga(l)?d=Ei(l):p?(f=!1,d=Si(u,!0)):g?(f=!1,d=Ni(u,!0)):d=[]:is(u)||Qa(u)?(d=l,Qa(l)?d=ys(l):es(l)&&!Xa(l)||(d=yo(u))):f=!1}f&&(s.set(u,d),o(d,u,r,a,s),s.delete(u));er(e,n,d)}(e,t,s,n,Vr,r,o);else{var l=r?r(Eo(e,s),a,s+"",e,t,o):i;l===i&&(l=a),er(e,s,l)}}),Os)}function Qr(e,t){var n=e.length;if(n)return bo(t+=t<0?n:0,n)?e[t]:i}function Hr(e,t,n){t=t.length?Pt(t,(function(e){return Ha(e)?function(t){return Sr(t,1===e.length?e[0]:e)}:e})):[rl];var r=-1;t=Pt(t,Jt(lo()));var i=Fr(e,(function(e,n,i){var o=Pt(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(i,(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;for(;++r<a;){var l=Ci(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Yr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=Sr(e,a);n(s,a)&&Jr(o,bi(a,e),s)}return o}function Wr(e,t,n,r){var i=r?Ht:Qt,o=-1,a=t.length,s=e;for(e===t&&(t=Ei(t)),n&&(s=Pt(e,Jt(n)));++o<a;)for(var l=0,u=t[o],c=n?n(u):u;(l=i(s,c,l,r))>-1;)s!==e&&Ze.call(s,l,1),Ze.call(e,l,1);return e}function Gr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;bo(i)?Ze.call(e,i,1):di(e,i)}}return e}function qr(e,t){return e+pt(Mn()*(t-e+1))}function Zr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=pt(t/2))&&(e+=e)}while(t);return n}function Kr(e,t){return Oo(Ao(e,t,rl),e+"")}function Xr(e){return Xn(Us(e))}function $r(e,t){var n=Us(e);return Po(n,sr(t,0,n.length))}function Jr(e,t,n,r){if(!es(e))return e;for(var o=-1,a=(t=bi(t,e)).length,s=a-1,l=e;null!=l&&++o<a;){var u=zo(t[o]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(o!=s){var d=l[u];(c=r?r(d,u,l):i)===i&&(c=es(d)?d:bo(t[o+1])?[]:{})}tr(l,u,c),l=l[u]}return e}var ei=Dn?function(e,t){return Dn.set(e,t),e}:rl,ti=Je?function(e,t){return Je(e,"toString",{configurable:!0,enumerable:!1,value:el(t),writable:!0})}:rl;function ni(e){return Po(Us(e))}function ri(e,t,r){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=n(o);++i<o;)a[i]=e[i+t];return a}function ii(e,t){var n;return fr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function oi(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t===t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!ls(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return ai(e,t,rl,n)}function ai(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!==t,l=null===t,u=ls(t),c=t===i;o<a;){var d=pt((o+a)/2),f=n(e[d]),h=f!==i,p=null===f,g=f===f,m=ls(f);if(s)var y=r||g;else y=c?g&&(r||h):l?g&&h&&(r||!p):u?g&&h&&!p&&(r||!m):!p&&!m&&(r?f<=t:f<t);y?o=d+1:a=d}return bn(a,4294967294)}function si(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Ua(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function li(e){return"number"==typeof e?e:ls(e)?g:+e}function ui(e){if("string"==typeof e)return e;if(Ha(e))return Pt(e,ui)+"";if(ls(e))return Fn?Fn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ci(e,t,n){var r=-1,i=It,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=_t;else if(o>=200){var u=t?null:Zi(e);if(u)return fn(u);a=!1,i=tn,l=new qn}else l=t?[]:s;e:for(;++r<o;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,a&&d===d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(c)}else i(l,d,n)||(l!==s&&l.push(d),s.push(c))}return s}function di(e,t){return null==(e=To(e,t=bi(t,e)))||delete e[zo(Ko(t))]}function fi(e,t,n,r){return Jr(e,t,n(Sr(e,t)),r)}function hi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ri(e,r?0:o,r?o+1:i):ri(e,r?o+1:0,r?i:o)}function pi(e,t){var n=e;return n instanceof Hn&&(n=n.value()),zt(t,(function(e,t){return t.func.apply(t.thisArg,Lt([e],t.args))}),n)}function gi(e,t,r){var i=e.length;if(i<2)return i?ci(e[0]):[];for(var o=-1,a=n(i);++o<i;)for(var s=e[o],l=-1;++l<i;)l!=o&&(a[o]=dr(a[o]||s,e[l],t,r));return ci(yr(a,1),t,r)}function mi(e,t,n){for(var r=-1,o=e.length,a=t.length,s={};++r<o;){var l=r<a?t[r]:i;n(s,e[r],l)}return s}function yi(e){return Ga(e)?e:[]}function vi(e){return"function"==typeof e?e:rl}function bi(e,t){return Ha(e)?e:wo(e,t)?[e]:Lo(vs(e))}var xi=Kr;function wi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ri(e,t,n)}var Mi=nt||function(e){return gt.clearTimeout(e)};function Si(e,t){if(t)return e.slice();var n=e.length,r=Ye?Ye(n):new e.constructor(n);return e.copy(r),r}function ji(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function Ni(e,t){var n=t?ji(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ci(e,t){if(e!==t){var n=e!==i,r=null===e,o=e===e,a=ls(e),s=t!==i,l=null===t,u=t===t,c=ls(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||r&&s&&u||!n&&u||!o)return 1;if(!r&&!a&&!c&&e<t||c&&n&&o&&!r&&!a||l&&n&&o||!s&&o||!u)return-1}return 0}function Ai(e,t,r,i){for(var o=-1,a=e.length,s=r.length,l=-1,u=t.length,c=qt(a-s,0),d=n(u+c),f=!i;++l<u;)d[l]=t[l];for(;++o<s;)(f||o<a)&&(d[r[o]]=e[o]);for(;c--;)d[l++]=e[o++];return d}function Ti(e,t,r,i){for(var o=-1,a=e.length,s=-1,l=r.length,u=-1,c=t.length,d=qt(a-l,0),f=n(d+c),h=!i;++o<d;)f[o]=e[o];for(var p=o;++u<c;)f[p+u]=t[u];for(;++s<l;)(h||o<a)&&(f[p+r[s]]=e[o++]);return f}function Ei(e,t){var r=-1,i=e.length;for(t||(t=n(i));++r<i;)t[r]=e[r];return t}function Di(e,t,n,r){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],u=r?r(n[l],e[l],l,n,e):i;u===i&&(u=e[l]),o?or(n,l,u):tr(n,l,u)}return n}function ki(e,t){return function(n,r){var i=Ha(n)?Tt:rr,o=t?t():{};return i(n,e,lo(r,2),o)}}function Oi(e){return Kr((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&xo(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=Ce(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t}))}function Ii(e,t){return function(n,r){if(null==n)return n;if(!Wa(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Ce(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function _i(e){return function(t,n,r){for(var i=-1,o=Ce(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}function Pi(e){return function(t){var n=ln(t=vs(t))?gn(t):i,r=n?n[0]:t.charAt(0),o=n?wi(n,1).join(""):t.slice(1);return r[e]()+o}}function Li(e){return function(t){return zt(Xs(Qs(t).replace(et,"")),e,"")}}function zi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Bn(e.prototype),r=e.apply(n,t);return es(r)?r:n}}function Ri(e){return function(t,n,r){var o=Ce(t);if(!Wa(t)){var a=lo(n,3);t=ks(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,r);return s>-1?o[a?t[s]:s]:i}}function Fi(e){return no((function(t){var n=t.length,r=n,a=Qn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Ee(o);if(a&&!l&&"wrapper"==ao(s))var l=new Qn([],!0)}for(r=l?r:n;++r<n;){var u=ao(s=t[r]),c="wrapper"==u?oo(s):i;l=c&&Mo(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[ao(c[0])].apply(l,c[3]):1==s.length&&Mo(s)?l[u]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Ha(r))return l.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function Ui(e,t,r,o,a,s,l,u,c,f){var h=t&d,p=1&t,g=2&t,m=24&t,y=512&t,v=g?i:zi(e);return function d(){for(var b=arguments.length,x=n(b),w=b;w--;)x[w]=arguments[w];if(m)var M=so(d),S=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(x,M);if(o&&(x=Ai(x,o,a,m)),s&&(x=Ti(x,s,l,m)),b-=S,m&&b<f){var j=dn(x,M);return Gi(e,t,Ui,d.placeholder,r,x,j,u,c,f-b)}var N=p?r:this,C=g?N[e]:e;return b=x.length,u?x=function(e,t){var n=e.length,r=bn(t.length,n),o=Ei(e);for(;r--;){var a=t[r];e[r]=bo(a,n)?o[a]:i}return e}(x,u):y&&b>1&&x.reverse(),h&&c<b&&(x.length=c),this&&this!==gt&&this instanceof d&&(C=v||zi(C)),C.apply(N,x)}}function Bi(e,t){return function(n,r){return function(e,t,n,r){return xr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Vi(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=ui(n),r=ui(r)):(n=li(n),r=li(r)),o=e(n,r)}return o}}function Qi(e){return no((function(t){return t=Pt(t,Jt(lo())),Kr((function(n){var r=this;return e(t,(function(e){return At(e,r,n)}))}))}))}function Hi(e,t){var n=(t=t===i?" ":ui(t)).length;if(n<2)return n?Zr(t,e):t;var r=Zr(t,ht(e/pn(t)));return ln(t)?wi(gn(r),0,e).join(""):r.slice(0,e)}function Yi(e){return function(t,r,o){return o&&"number"!=typeof o&&xo(t,r,o)&&(r=o=i),t=hs(t),r===i?(r=t,t=0):r=hs(r),function(e,t,r,i){for(var o=-1,a=qt(ht((t-e)/(r||1)),0),s=n(a);a--;)s[i?a:++o]=e,e+=r;return s}(t,r,o=o===i?t<r?1:-1:hs(o),e)}}function Wi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ms(t),n=ms(n)),e(t,n)}}function Gi(e,t,n,r,o,a,s,l,d,f){var h=8&t;t|=h?u:c,4&(t&=~(h?c:u))||(t&=-4);var p=[e,t,o,h?a:i,h?s:i,h?i:a,h?i:s,l,d,f],g=n.apply(i,p);return Mo(e)&&Do(g,p),g.placeholder=r,Io(g,e,t)}function qi(e){var t=Ne[e];return function(e,n){if(e=ms(e),(n=null==n?0:bn(ps(n),292))&&bt(e)){var r=(vs(e)+"e").split("e");return+((r=(vs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Zi=An&&1/fn(new An([,-0]))[1]==h?function(e){return new An(e)}:ll;function Ki(e){return function(t){var n=go(t);return n==N?un(t):n==D?hn(t):function(e,t){return Pt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Xi(e,t,r,a,h,p,g,m){var y=2&t;if(!y&&"function"!=typeof e)throw new Ee(o);var v=a?a.length:0;if(v||(t&=-97,a=h=i),g=g===i?g:qt(ps(g),0),m=m===i?m:ps(m),v-=h?h.length:0,t&c){var b=a,x=h;a=h=i}var w=y?i:oo(e),M=[e,t,r,a,h,b,x,p,g,m];if(w&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,a=r==d&&8==n||r==d&&n==f&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!a)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?Ai(u,l,t[4]):l,e[4]=u?dn(e[3],s):t[4]}(l=t[5])&&(u=e[5],e[5]=u?Ti(u,l,t[6]):l,e[6]=u?dn(e[5],s):t[6]);(l=t[7])&&(e[7]=l);r&d&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(M,w),e=M[0],t=M[1],r=M[2],a=M[3],h=M[4],!(m=M[9]=M[9]===i?y?0:e.length:qt(M[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)S=8==t||t==l?function(e,t,r){var o=zi(e);return function a(){for(var s=arguments.length,l=n(s),u=s,c=so(a);u--;)l[u]=arguments[u];var d=s<3&&l[0]!==c&&l[s-1]!==c?[]:dn(l,c);return(s-=d.length)<r?Gi(e,t,Ui,a.placeholder,i,l,d,i,i,r-s):At(this&&this!==gt&&this instanceof a?o:e,this,l)}}(e,t,m):t!=u&&33!=t||h.length?Ui.apply(i,M):function(e,t,r,i){var o=1&t,a=zi(e);return function t(){for(var s=-1,l=arguments.length,u=-1,c=i.length,d=n(c+l),f=this&&this!==gt&&this instanceof t?a:e;++u<c;)d[u]=i[u];for(;l--;)d[u++]=arguments[++s];return At(f,o?r:this,d)}}(e,t,r,a);else var S=function(e,t,n){var r=1&t,i=zi(e);return function t(){return(this&&this!==gt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,r);return Io((w?ei:Do)(S,M),e,t)}function $i(e,t,n,r){return e===i||Ua(e,Oe[n])&&!Pe.call(r,n)?t:e}function Ji(e,t,n,r,o,a){return es(e)&&es(t)&&(a.set(t,e),Vr(e,t,i,Ji,a),a.delete(t)),e}function eo(e){return is(e)?i:e}function to(e,t,n,r,o,a){var s=1&n,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,p=2&n?new qn:i;for(a.set(e,t),a.set(t,e);++f<l;){var g=e[f],m=t[f];if(r)var y=s?r(m,g,f,t,e,a):r(g,m,f,e,t,a);if(y!==i){if(y)continue;h=!1;break}if(p){if(!Ft(t,(function(e,t){if(!tn(p,t)&&(g===e||o(g,e,n,r,a)))return p.push(t)}))){h=!1;break}}else if(g!==m&&!o(g,m,n,r,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function no(e){return Oo(Ao(e,i,Yo),e+"")}function ro(e){return jr(e,ks,ho)}function io(e){return jr(e,Os,po)}var oo=Dn?function(e){return Dn.get(e)}:ll;function ao(e){for(var t=e.name+"",n=kn[t],r=Pe.call(kn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function so(e){return(Pe.call(Un,"placeholder")?Un:e).placeholder}function lo(){var e=Un.iteratee||il;return e=e===il?Pr:e,arguments.length?e(arguments[0],arguments[1]):e}function uo(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function co(e){for(var t=ks(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,No(i)]}return t}function fo(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return _r(n)?n:i}var ho=mt?function(e){return null==e?[]:(e=Ce(e),Ot(mt(e),(function(t){return qe.call(e,t)})))}:gl,po=mt?function(e){for(var t=[];e;)Lt(t,ho(e)),e=We(e);return t}:gl,go=Nr;function mo(e,t,n){for(var r=-1,i=(t=bi(t,e)).length,o=!1;++r<i;){var a=zo(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Ja(i)&&bo(a,i)&&(Ha(e)||Qa(e))}function yo(e){return"function"!=typeof e.constructor||jo(e)?{}:Bn(We(e))}function vo(e){return Ha(e)||Qa(e)||!!(Ke&&e&&e[Ke])}function bo(e,t){var n=typeof e;return!!(t=null==t?p:t)&&("number"==n||"symbol"!=n&&xe.test(e))&&e>-1&&e%1==0&&e<t}function xo(e,t,n){if(!es(n))return!1;var r=typeof t;return!!("number"==r?Wa(n)&&bo(t,n.length):"string"==r&&t in n)&&Ua(n[t],e)}function wo(e,t){if(Ha(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ls(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Ce(t))}function Mo(e){var t=ao(e),n=Un[t];if("function"!=typeof n||!(t in Hn.prototype))return!1;if(e===n)return!0;var r=oo(n);return!!r&&e===r[0]}(jn&&go(new jn(new ArrayBuffer(1)))!=P||Nn&&go(new Nn)!=N||Cn&&go(Cn.resolve())!=T||An&&go(new An)!=D||Tn&&go(new Tn)!=I)&&(go=function(e){var t=Nr(e),n=t==A?e.constructor:i,r=n?Ro(n):"";if(r)switch(r){case On:return P;case In:return N;case _n:return T;case Pn:return D;case Ln:return I}return t});var So=Ie?Xa:ml;function jo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Oe)}function No(e){return e===e&&!es(e)}function Co(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==i||e in Ce(n)))}}function Ao(e,t,r){return t=qt(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=qt(i.length-t,0),s=n(a);++o<a;)s[o]=i[t+o];o=-1;for(var l=n(t+1);++o<t;)l[o]=i[o];return l[t]=r(s),At(e,this,l)}}function To(e,t){return t.length<2?e:Sr(e,ri(t,0,-1))}function Eo(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Do=_o(ei),ko=ct||function(e,t){return gt.setTimeout(e,t)},Oo=_o(ti);function Io(e,t,n){var r=t+"";return Oo(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Et(y,(function(n){var r="_."+n[0];t&n[1]&&!It(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ue);return t?t[1].split(ce):[]}(r),n)))}function _o(e){var t=0,n=0;return function(){var r=xn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Po(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var a=qr(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Lo=function(e){var t=_a(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,i){t.push(r?i.replace(he,"$1"):n||e)})),t}));function zo(e){if("string"==typeof e||ls(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ro(e){if(null!=e){try{return _e.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Fo(e){if(e instanceof Hn)return e.clone();var t=new Qn(e.__wrapped__,e.__chain__);return t.__actions__=Ei(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Uo=Kr((function(e,t){return Ga(e)?dr(e,yr(t,1,Ga,!0)):[]})),Bo=Kr((function(e,t){var n=Ko(t);return Ga(n)&&(n=i),Ga(e)?dr(e,yr(t,1,Ga,!0),lo(n,2)):[]})),Vo=Kr((function(e,t){var n=Ko(t);return Ga(n)&&(n=i),Ga(e)?dr(e,yr(t,1,Ga,!0),i,n):[]}));function Qo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ps(n);return i<0&&(i=qt(r+i,0)),Vt(e,lo(t,3),i)}function Ho(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=ps(n),o=n<0?qt(r+o,0):bn(o,r-1)),Vt(e,lo(t,3),o,!0)}function Yo(e){return(null==e?0:e.length)?yr(e,1):[]}function Wo(e){return e&&e.length?e[0]:i}var Go=Kr((function(e){var t=Pt(e,yi);return t.length&&t[0]===e[0]?Er(t):[]})),qo=Kr((function(e){var t=Ko(e),n=Pt(e,yi);return t===Ko(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Er(n,lo(t,2)):[]})),Zo=Kr((function(e){var t=Ko(e),n=Pt(e,yi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Er(n,i,t):[]}));function Ko(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Xo=Kr($o);function $o(e,t){return e&&e.length&&t&&t.length?Wr(e,t):e}var Jo=no((function(e,t){var n=null==e?0:e.length,r=ar(e,t);return Gr(e,Pt(t,(function(e){return bo(e,n)?+e:e})).sort(Ci)),r}));function ea(e){return null==e?e:Sn.call(e)}var ta=Kr((function(e){return ci(yr(e,1,Ga,!0))})),na=Kr((function(e){var t=Ko(e);return Ga(t)&&(t=i),ci(yr(e,1,Ga,!0),lo(t,2))})),ra=Kr((function(e){var t=Ko(e);return t="function"==typeof t?t:i,ci(yr(e,1,Ga,!0),i,t)}));function ia(e){if(!e||!e.length)return[];var t=0;return e=Ot(e,(function(e){if(Ga(e))return t=qt(e.length,t),!0})),Xt(t,(function(t){return Pt(e,Gt(t))}))}function oa(e,t){if(!e||!e.length)return[];var n=ia(e);return null==t?n:Pt(n,(function(e){return At(t,i,e)}))}var aa=Kr((function(e,t){return Ga(e)?dr(e,t):[]})),sa=Kr((function(e){return gi(Ot(e,Ga))})),la=Kr((function(e){var t=Ko(e);return Ga(t)&&(t=i),gi(Ot(e,Ga),lo(t,2))})),ua=Kr((function(e){var t=Ko(e);return t="function"==typeof t?t:i,gi(Ot(e,Ga),i,t)})),ca=Kr(ia);var da=Kr((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,oa(e,n)}));function fa(e){var t=Un(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var pa=no((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return ar(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Hn&&bo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ha,args:[o],thisArg:i}),new Qn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)}));var ga=ki((function(e,t,n){Pe.call(e,n)?++e[n]:or(e,n,1)}));var ma=Ri(Qo),ya=Ri(Ho);function va(e,t){return(Ha(e)?Et:fr)(e,lo(t,3))}function ba(e,t){return(Ha(e)?Dt:hr)(e,lo(t,3))}var xa=ki((function(e,t,n){Pe.call(e,n)?e[n].push(t):or(e,n,[t])}));var wa=Kr((function(e,t,r){var i=-1,o="function"==typeof t,a=Wa(e)?n(e.length):[];return fr(e,(function(e){a[++i]=o?At(t,e,r):Dr(e,t,r)})),a})),Ma=ki((function(e,t,n){or(e,n,t)}));function Sa(e,t){return(Ha(e)?Pt:Fr)(e,lo(t,3))}var ja=ki((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Na=Kr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&xo(e,t[0],t[1])?t=[]:n>2&&xo(t[0],t[1],t[2])&&(t=[t[0]]),Hr(e,yr(t,1),[])})),Ca=it||function(){return gt.Date.now()};function Aa(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Xi(e,d,i,i,i,i,t)}function Ta(e,t){var n;if("function"!=typeof t)throw new Ee(o);return e=ps(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Ea=Kr((function(e,t,n){var r=1;if(n.length){var i=dn(n,so(Ea));r|=u}return Xi(e,r,t,n,i)})),Da=Kr((function(e,t,n){var r=3;if(n.length){var i=dn(n,so(Da));r|=u}return Xi(t,r,e,n,i)}));function ka(e,t,n){var r,a,s,l,u,c,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new Ee(o);function g(t){var n=r,o=a;return r=a=i,d=t,l=e.apply(o,n)}function m(e){var n=e-c;return c===i||n>=t||n<0||h&&e-d>=s}function y(){var e=Ca();if(m(e))return v(e);u=ko(y,function(e){var n=t-(e-c);return h?bn(n,s-(e-d)):n}(e))}function v(e){return u=i,p&&r?g(e):(r=a=i,l)}function b(){var e=Ca(),n=m(e);if(r=arguments,a=this,c=e,n){if(u===i)return function(e){return d=e,u=ko(y,t),f?g(e):l}(c);if(h)return Mi(u),u=ko(y,t),g(c)}return u===i&&(u=ko(y,t)),l}return t=ms(t)||0,es(n)&&(f=!!n.leading,s=(h="maxWait"in n)?qt(ms(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),b.cancel=function(){u!==i&&Mi(u),d=0,r=c=a=u=i},b.flush=function(){return u===i?l:v(Ca())},b}var Oa=Kr((function(e,t){return cr(e,1,t)})),Ia=Kr((function(e,t,n){return cr(e,ms(t)||0,n)}));function _a(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ee(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(_a.Cache||Gn),n}function Pa(e){if("function"!=typeof e)throw new Ee(o);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)}}_a.Cache=Gn;var La=xi((function(e,t){var n=(t=1==t.length&&Ha(t[0])?Pt(t[0],Jt(lo())):Pt(yr(t,1),Jt(lo()))).length;return Kr((function(r){for(var i=-1,o=bn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return At(e,this,r)}))})),za=Kr((function(e,t){var n=dn(t,so(za));return Xi(e,u,i,t,n)})),Ra=Kr((function(e,t){var n=dn(t,so(Ra));return Xi(e,c,i,t,n)})),Fa=no((function(e,t){return Xi(e,f,i,i,i,t)}));function Ua(e,t){return e===t||e!==e&&t!==t}var Ba=Wi(Cr),Va=Wi((function(e,t){return e>=t})),Qa=kr(function(){return arguments}())?kr:function(e){return ts(e)&&Pe.call(e,"callee")&&!qe.call(e,"callee")},Ha=n.isArray,Ya=wt?Jt(wt):function(e){return ts(e)&&Nr(e)==_};function Wa(e){return null!=e&&Ja(e.length)&&!Xa(e)}function Ga(e){return ts(e)&&Wa(e)}var qa=yt||ml,Za=Mt?Jt(Mt):function(e){return ts(e)&&Nr(e)==w};function Ka(e){if(!ts(e))return!1;var t=Nr(e);return t==M||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function Xa(e){if(!es(e))return!1;var t=Nr(e);return t==S||t==j||"[object AsyncFunction]"==t||"[object Proxy]"==t}function $a(e){return"number"==typeof e&&e==ps(e)}function Ja(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ts(e){return null!=e&&"object"==typeof e}var ns=St?Jt(St):function(e){return ts(e)&&go(e)==N};function rs(e){return"number"==typeof e||ts(e)&&Nr(e)==C}function is(e){if(!ts(e)||Nr(e)!=A)return!1;var t=We(e);if(null===t)return!0;var n=Pe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&_e.call(n)==Fe}var os=jt?Jt(jt):function(e){return ts(e)&&Nr(e)==E};var as=Nt?Jt(Nt):function(e){return ts(e)&&go(e)==D};function ss(e){return"string"==typeof e||!Ha(e)&&ts(e)&&Nr(e)==k}function ls(e){return"symbol"==typeof e||ts(e)&&Nr(e)==O}var us=Ct?Jt(Ct):function(e){return ts(e)&&Ja(e.length)&&!!lt[Nr(e)]};var cs=Wi(Rr),ds=Wi((function(e,t){return e<=t}));function fs(e){if(!e)return[];if(Wa(e))return ss(e)?gn(e):Ei(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=go(e);return(t==N?un:t==D?fn:Us)(e)}function hs(e){return e?(e=ms(e))===h||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function ps(e){var t=hs(e),n=t%1;return t===t?n?t-n:t:0}function gs(e){return e?sr(ps(e),0,m):0}function ms(e){if("number"==typeof e)return e;if(ls(e))return g;if(es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=$t(e);var n=ye.test(e);return n||be.test(e)?ft(e.slice(2),n?2:8):me.test(e)?g:+e}function ys(e){return Di(e,Os(e))}function vs(e){return null==e?"":ui(e)}var bs=Oi((function(e,t){if(jo(t)||Wa(t))Di(t,ks(t),e);else for(var n in t)Pe.call(t,n)&&tr(e,n,t[n])})),xs=Oi((function(e,t){Di(t,Os(t),e)})),ws=Oi((function(e,t,n,r){Di(t,Os(t),e,r)})),Ms=Oi((function(e,t,n,r){Di(t,ks(t),e,r)})),Ss=no(ar);var js=Kr((function(e,t){e=Ce(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&xo(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],s=Os(a),l=-1,u=s.length;++l<u;){var c=s[l],d=e[c];(d===i||Ua(d,Oe[c])&&!Pe.call(e,c))&&(e[c]=a[c])}return e})),Ns=Kr((function(e){return e.push(i,Ji),At(_s,i,e)}));function Cs(e,t,n){var r=null==e?i:Sr(e,t);return r===i?n:r}function As(e,t){return null!=e&&mo(e,t,Tr)}var Ts=Bi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Re.call(t)),e[t]=n}),el(rl)),Es=Bi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Re.call(t)),Pe.call(e,t)?e[t].push(n):e[t]=[n]}),lo),Ds=Kr(Dr);function ks(e){return Wa(e)?Kn(e):Lr(e)}function Os(e){return Wa(e)?Kn(e,!0):zr(e)}var Is=Oi((function(e,t,n){Vr(e,t,n)})),_s=Oi((function(e,t,n,r){Vr(e,t,n,r)})),Ps=no((function(e,t){var n={};if(null==e)return n;var r=!1;t=Pt(t,(function(t){return t=bi(t,e),r||(r=t.length>1),t})),Di(e,io(e),n),r&&(n=lr(n,7,eo));for(var i=t.length;i--;)di(n,t[i]);return n}));var Ls=no((function(e,t){return null==e?{}:function(e,t){return Yr(e,t,(function(t,n){return As(e,n)}))}(e,t)}));function zs(e,t){if(null==e)return{};var n=Pt(io(e),(function(e){return[e]}));return t=lo(t),Yr(e,n,(function(e,n){return t(e,n[0])}))}var Rs=Ki(ks),Fs=Ki(Os);function Us(e){return null==e?[]:en(e,ks(e))}var Bs=Li((function(e,t,n){return t=t.toLowerCase(),e+(n?Vs(t):t)}));function Vs(e){return Ks(vs(e).toLowerCase())}function Qs(e){return(e=vs(e))&&e.replace(we,on).replace(tt,"")}var Hs=Li((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ys=Li((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ws=Pi("toLowerCase");var Gs=Li((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var qs=Li((function(e,t,n){return e+(n?" ":"")+Ks(t)}));var Zs=Li((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ks=Pi("toUpperCase");function Xs(e,t,n){return e=vs(e),(t=n?i:t)===i?function(e){return ot.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var $s=Kr((function(e,t){try{return At(e,i,t)}catch(n){return Ka(n)?n:new se(n)}})),Js=no((function(e,t){return Et(t,(function(t){t=zo(t),or(e,t,Ea(e[t],e))})),e}));function el(e){return function(){return e}}var tl=Fi(),nl=Fi(!0);function rl(e){return e}function il(e){return Pr("function"==typeof e?e:lr(e,1))}var ol=Kr((function(e,t){return function(n){return Dr(n,e,t)}})),al=Kr((function(e,t){return function(n){return Dr(e,n,t)}}));function sl(e,t,n){var r=ks(t),i=Mr(t,r);null!=n||es(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Mr(t,ks(t)));var o=!(es(n)&&"chain"in n)||!!n.chain,a=Xa(e);return Et(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Ei(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Lt([this.value()],arguments))})})),e}function ll(){}var ul=Qi(Pt),cl=Qi(kt),dl=Qi(Ft);function fl(e){return wo(e)?Gt(zo(e)):function(e){return function(t){return Sr(t,e)}}(e)}var hl=Yi(),pl=Yi(!0);function gl(){return[]}function ml(){return!1}var yl=Vi((function(e,t){return e+t}),0),vl=qi("ceil"),bl=Vi((function(e,t){return e/t}),1),xl=qi("floor");var wl=Vi((function(e,t){return e*t}),1),Ml=qi("round"),Sl=Vi((function(e,t){return e-t}),0);return Un.after=function(e,t){if("function"!=typeof t)throw new Ee(o);return e=ps(e),function(){if(--e<1)return t.apply(this,arguments)}},Un.ary=Aa,Un.assign=bs,Un.assignIn=xs,Un.assignInWith=ws,Un.assignWith=Ms,Un.at=Ss,Un.before=Ta,Un.bind=Ea,Un.bindAll=Js,Un.bindKey=Da,Un.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ha(e)?e:[e]},Un.chain=fa,Un.chunk=function(e,t,r){t=(r?xo(e,t,r):t===i)?1:qt(ps(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,l=n(ht(o/t));a<o;)l[s++]=ri(e,a,a+=t);return l},Un.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Un.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Lt(Ha(r)?Ei(r):[r],yr(t,1))},Un.cond=function(e){var t=null==e?0:e.length,n=lo();return e=t?Pt(e,(function(e){if("function"!=typeof e[1])throw new Ee(o);return[n(e[0]),e[1]]})):[],Kr((function(n){for(var r=-1;++r<t;){var i=e[r];if(At(i[0],this,n))return At(i[1],this,n)}}))},Un.conforms=function(e){return function(e){var t=ks(e);return function(n){return ur(n,e,t)}}(lr(e,1))},Un.constant=el,Un.countBy=ga,Un.create=function(e,t){var n=Bn(e);return null==t?n:ir(n,t)},Un.curry=function e(t,n,r){var o=Xi(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Un.curryRight=function e(t,n,r){var o=Xi(t,l,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Un.debounce=ka,Un.defaults=js,Un.defaultsDeep=Ns,Un.defer=Oa,Un.delay=Ia,Un.difference=Uo,Un.differenceBy=Bo,Un.differenceWith=Vo,Un.drop=function(e,t,n){var r=null==e?0:e.length;return r?ri(e,(t=n||t===i?1:ps(t))<0?0:t,r):[]},Un.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ri(e,0,(t=r-(t=n||t===i?1:ps(t)))<0?0:t):[]},Un.dropRightWhile=function(e,t){return e&&e.length?hi(e,lo(t,3),!0,!0):[]},Un.dropWhile=function(e,t){return e&&e.length?hi(e,lo(t,3),!0):[]},Un.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&xo(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=ps(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:ps(r))<0&&(r+=o),r=n>r?0:gs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Un.filter=function(e,t){return(Ha(e)?Ot:mr)(e,lo(t,3))},Un.flatMap=function(e,t){return yr(Sa(e,t),1)},Un.flatMapDeep=function(e,t){return yr(Sa(e,t),h)},Un.flatMapDepth=function(e,t,n){return n=n===i?1:ps(n),yr(Sa(e,t),n)},Un.flatten=Yo,Un.flattenDeep=function(e){return(null==e?0:e.length)?yr(e,h):[]},Un.flattenDepth=function(e,t){return(null==e?0:e.length)?yr(e,t=t===i?1:ps(t)):[]},Un.flip=function(e){return Xi(e,512)},Un.flow=tl,Un.flowRight=nl,Un.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Un.functions=function(e){return null==e?[]:Mr(e,ks(e))},Un.functionsIn=function(e){return null==e?[]:Mr(e,Os(e))},Un.groupBy=xa,Un.initial=function(e){return(null==e?0:e.length)?ri(e,0,-1):[]},Un.intersection=Go,Un.intersectionBy=qo,Un.intersectionWith=Zo,Un.invert=Ts,Un.invertBy=Es,Un.invokeMap=wa,Un.iteratee=il,Un.keyBy=Ma,Un.keys=ks,Un.keysIn=Os,Un.map=Sa,Un.mapKeys=function(e,t){var n={};return t=lo(t,3),xr(e,(function(e,r,i){or(n,t(e,r,i),e)})),n},Un.mapValues=function(e,t){var n={};return t=lo(t,3),xr(e,(function(e,r,i){or(n,r,t(e,r,i))})),n},Un.matches=function(e){return Ur(lr(e,1))},Un.matchesProperty=function(e,t){return Br(e,lr(t,1))},Un.memoize=_a,Un.merge=Is,Un.mergeWith=_s,Un.method=ol,Un.methodOf=al,Un.mixin=sl,Un.negate=Pa,Un.nthArg=function(e){return e=ps(e),Kr((function(t){return Qr(t,e)}))},Un.omit=Ps,Un.omitBy=function(e,t){return zs(e,Pa(lo(t)))},Un.once=function(e){return Ta(2,e)},Un.orderBy=function(e,t,n,r){return null==e?[]:(Ha(t)||(t=null==t?[]:[t]),Ha(n=r?i:n)||(n=null==n?[]:[n]),Hr(e,t,n))},Un.over=ul,Un.overArgs=La,Un.overEvery=cl,Un.overSome=dl,Un.partial=za,Un.partialRight=Ra,Un.partition=ja,Un.pick=Ls,Un.pickBy=zs,Un.property=fl,Un.propertyOf=function(e){return function(t){return null==e?i:Sr(e,t)}},Un.pull=Xo,Un.pullAll=$o,Un.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,lo(n,2)):e},Un.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,i,n):e},Un.pullAt=Jo,Un.range=hl,Un.rangeRight=pl,Un.rearg=Fa,Un.reject=function(e,t){return(Ha(e)?Ot:mr)(e,Pa(lo(t,3)))},Un.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=lo(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Gr(e,i),n},Un.rest=function(e,t){if("function"!=typeof e)throw new Ee(o);return Kr(e,t=t===i?t:ps(t))},Un.reverse=ea,Un.sampleSize=function(e,t,n){return t=(n?xo(e,t,n):t===i)?1:ps(t),(Ha(e)?$n:$r)(e,t)},Un.set=function(e,t,n){return null==e?e:Jr(e,t,n)},Un.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Jr(e,t,n,r)},Un.shuffle=function(e){return(Ha(e)?Jn:ni)(e)},Un.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&xo(e,t,n)?(t=0,n=r):(t=null==t?0:ps(t),n=n===i?r:ps(n)),ri(e,t,n)):[]},Un.sortBy=Na,Un.sortedUniq=function(e){return e&&e.length?si(e):[]},Un.sortedUniqBy=function(e,t){return e&&e.length?si(e,lo(t,2)):[]},Un.split=function(e,t,n){return n&&"number"!=typeof n&&xo(e,t,n)&&(t=n=i),(n=n===i?m:n>>>0)?(e=vs(e))&&("string"==typeof t||null!=t&&!os(t))&&!(t=ui(t))&&ln(e)?wi(gn(e),0,n):e.split(t,n):[]},Un.spread=function(e,t){if("function"!=typeof e)throw new Ee(o);return t=null==t?0:qt(ps(t),0),Kr((function(n){var r=n[t],i=wi(n,0,t);return r&&Lt(i,r),At(e,this,i)}))},Un.tail=function(e){var t=null==e?0:e.length;return t?ri(e,1,t):[]},Un.take=function(e,t,n){return e&&e.length?ri(e,0,(t=n||t===i?1:ps(t))<0?0:t):[]},Un.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ri(e,(t=r-(t=n||t===i?1:ps(t)))<0?0:t,r):[]},Un.takeRightWhile=function(e,t){return e&&e.length?hi(e,lo(t,3),!1,!0):[]},Un.takeWhile=function(e,t){return e&&e.length?hi(e,lo(t,3)):[]},Un.tap=function(e,t){return t(e),e},Un.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Ee(o);return es(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ka(e,t,{leading:r,maxWait:t,trailing:i})},Un.thru=ha,Un.toArray=fs,Un.toPairs=Rs,Un.toPairsIn=Fs,Un.toPath=function(e){return Ha(e)?Pt(e,zo):ls(e)?[e]:Ei(Lo(vs(e)))},Un.toPlainObject=ys,Un.transform=function(e,t,n){var r=Ha(e),i=r||qa(e)||us(e);if(t=lo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:es(e)&&Xa(o)?Bn(We(e)):{}}return(i?Et:xr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Un.unary=function(e){return Aa(e,1)},Un.union=ta,Un.unionBy=na,Un.unionWith=ra,Un.uniq=function(e){return e&&e.length?ci(e):[]},Un.uniqBy=function(e,t){return e&&e.length?ci(e,lo(t,2)):[]},Un.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ci(e,i,t):[]},Un.unset=function(e,t){return null==e||di(e,t)},Un.unzip=ia,Un.unzipWith=oa,Un.update=function(e,t,n){return null==e?e:fi(e,t,vi(n))},Un.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:fi(e,t,vi(n),r)},Un.values=Us,Un.valuesIn=function(e){return null==e?[]:en(e,Os(e))},Un.without=aa,Un.words=Xs,Un.wrap=function(e,t){return za(vi(t),e)},Un.xor=sa,Un.xorBy=la,Un.xorWith=ua,Un.zip=ca,Un.zipObject=function(e,t){return mi(e||[],t||[],tr)},Un.zipObjectDeep=function(e,t){return mi(e||[],t||[],Jr)},Un.zipWith=da,Un.entries=Rs,Un.entriesIn=Fs,Un.extend=xs,Un.extendWith=ws,sl(Un,Un),Un.add=yl,Un.attempt=$s,Un.camelCase=Bs,Un.capitalize=Vs,Un.ceil=vl,Un.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=ms(n))===n?n:0),t!==i&&(t=(t=ms(t))===t?t:0),sr(ms(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||ur(e,t,ks(t))},Un.deburr=Qs,Un.defaultTo=function(e,t){return null==e||e!==e?t:e},Un.divide=bl,Un.endsWith=function(e,t,n){e=vs(e),t=ui(t);var r=e.length,o=n=n===i?r:sr(ps(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Un.eq=Ua,Un.escape=function(e){return(e=vs(e))&&X.test(e)?e.replace(Z,an):e},Un.escapeRegExp=function(e){return(e=vs(e))&&oe.test(e)?e.replace(ie,"\\$&"):e},Un.every=function(e,t,n){var r=Ha(e)?kt:pr;return n&&xo(e,t,n)&&(t=i),r(e,lo(t,3))},Un.find=ma,Un.findIndex=Qo,Un.findKey=function(e,t){return Bt(e,lo(t,3),xr)},Un.findLast=ya,Un.findLastIndex=Ho,Un.findLastKey=function(e,t){return Bt(e,lo(t,3),wr)},Un.floor=xl,Un.forEach=va,Un.forEachRight=ba,Un.forIn=function(e,t){return null==e?e:vr(e,lo(t,3),Os)},Un.forInRight=function(e,t){return null==e?e:br(e,lo(t,3),Os)},Un.forOwn=function(e,t){return e&&xr(e,lo(t,3))},Un.forOwnRight=function(e,t){return e&&wr(e,lo(t,3))},Un.get=Cs,Un.gt=Ba,Un.gte=Va,Un.has=function(e,t){return null!=e&&mo(e,t,Ar)},Un.hasIn=As,Un.head=Wo,Un.identity=rl,Un.includes=function(e,t,n,r){e=Wa(e)?e:Us(e),n=n&&!r?ps(n):0;var i=e.length;return n<0&&(n=qt(i+n,0)),ss(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Qt(e,t,n)>-1},Un.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ps(n);return i<0&&(i=qt(r+i,0)),Qt(e,t,i)},Un.inRange=function(e,t,n){return t=hs(t),n===i?(n=t,t=0):n=hs(n),function(e,t,n){return e>=bn(t,n)&&e<qt(t,n)}(e=ms(e),t,n)},Un.invoke=Ds,Un.isArguments=Qa,Un.isArray=Ha,Un.isArrayBuffer=Ya,Un.isArrayLike=Wa,Un.isArrayLikeObject=Ga,Un.isBoolean=function(e){return!0===e||!1===e||ts(e)&&Nr(e)==x},Un.isBuffer=qa,Un.isDate=Za,Un.isElement=function(e){return ts(e)&&1===e.nodeType&&!is(e)},Un.isEmpty=function(e){if(null==e)return!0;if(Wa(e)&&(Ha(e)||"string"==typeof e||"function"==typeof e.splice||qa(e)||us(e)||Qa(e)))return!e.length;var t=go(e);if(t==N||t==D)return!e.size;if(jo(e))return!Lr(e).length;for(var n in e)if(Pe.call(e,n))return!1;return!0},Un.isEqual=function(e,t){return Or(e,t)},Un.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Or(e,t,i,n):!!r},Un.isError=Ka,Un.isFinite=function(e){return"number"==typeof e&&bt(e)},Un.isFunction=Xa,Un.isInteger=$a,Un.isLength=Ja,Un.isMap=ns,Un.isMatch=function(e,t){return e===t||Ir(e,t,co(t))},Un.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Ir(e,t,co(t),n)},Un.isNaN=function(e){return rs(e)&&e!=+e},Un.isNative=function(e){if(So(e))throw new se("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return _r(e)},Un.isNil=function(e){return null==e},Un.isNull=function(e){return null===e},Un.isNumber=rs,Un.isObject=es,Un.isObjectLike=ts,Un.isPlainObject=is,Un.isRegExp=os,Un.isSafeInteger=function(e){return $a(e)&&e>=-9007199254740991&&e<=p},Un.isSet=as,Un.isString=ss,Un.isSymbol=ls,Un.isTypedArray=us,Un.isUndefined=function(e){return e===i},Un.isWeakMap=function(e){return ts(e)&&go(e)==I},Un.isWeakSet=function(e){return ts(e)&&"[object WeakSet]"==Nr(e)},Un.join=function(e,t){return null==e?"":xt.call(e,t)},Un.kebabCase=Hs,Un.last=Ko,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=ps(n))<0?qt(r+o,0):bn(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):Vt(e,Yt,o,!0)},Un.lowerCase=Ys,Un.lowerFirst=Ws,Un.lt=cs,Un.lte=ds,Un.max=function(e){return e&&e.length?gr(e,rl,Cr):i},Un.maxBy=function(e,t){return e&&e.length?gr(e,lo(t,2),Cr):i},Un.mean=function(e){return Wt(e,rl)},Un.meanBy=function(e,t){return Wt(e,lo(t,2))},Un.min=function(e){return e&&e.length?gr(e,rl,Rr):i},Un.minBy=function(e,t){return e&&e.length?gr(e,lo(t,2),Rr):i},Un.stubArray=gl,Un.stubFalse=ml,Un.stubObject=function(){return{}},Un.stubString=function(){return""},Un.stubTrue=function(){return!0},Un.multiply=wl,Un.nth=function(e,t){return e&&e.length?Qr(e,ps(t)):i},Un.noConflict=function(){return gt._===this&&(gt._=Ue),this},Un.noop=ll,Un.now=Ca,Un.pad=function(e,t,n){e=vs(e);var r=(t=ps(t))?pn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Hi(pt(i),n)+e+Hi(ht(i),n)},Un.padEnd=function(e,t,n){e=vs(e);var r=(t=ps(t))?pn(e):0;return t&&r<t?e+Hi(t-r,n):e},Un.padStart=function(e,t,n){e=vs(e);var r=(t=ps(t))?pn(e):0;return t&&r<t?Hi(t-r,n)+e:e},Un.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(vs(e).replace(ae,""),t||0)},Un.random=function(e,t,n){if(n&&"boolean"!=typeof n&&xo(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=hs(e),t===i?(t=e,e=0):t=hs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Mn();return bn(e+o*(t-e+dt("1e-"+((o+"").length-1))),t)}return qr(e,t)},Un.reduce=function(e,t,n){var r=Ha(e)?zt:Zt,i=arguments.length<3;return r(e,lo(t,4),n,i,fr)},Un.reduceRight=function(e,t,n){var r=Ha(e)?Rt:Zt,i=arguments.length<3;return r(e,lo(t,4),n,i,hr)},Un.repeat=function(e,t,n){return t=(n?xo(e,t,n):t===i)?1:ps(t),Zr(vs(e),t)},Un.replace=function(){var e=arguments,t=vs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Un.result=function(e,t,n){var r=-1,o=(t=bi(t,e)).length;for(o||(o=1,e=i);++r<o;){var a=null==e?i:e[zo(t[r])];a===i&&(r=o,a=n),e=Xa(a)?a.call(e):a}return e},Un.round=Ml,Un.runInContext=e,Un.sample=function(e){return(Ha(e)?Xn:Xr)(e)},Un.size=function(e){if(null==e)return 0;if(Wa(e))return ss(e)?pn(e):e.length;var t=go(e);return t==N||t==D?e.size:Lr(e).length},Un.snakeCase=Gs,Un.some=function(e,t,n){var r=Ha(e)?Ft:ii;return n&&xo(e,t,n)&&(t=i),r(e,lo(t,3))},Un.sortedIndex=function(e,t){return oi(e,t)},Un.sortedIndexBy=function(e,t,n){return ai(e,t,lo(n,2))},Un.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=oi(e,t);if(r<n&&Ua(e[r],t))return r}return-1},Un.sortedLastIndex=function(e,t){return oi(e,t,!0)},Un.sortedLastIndexBy=function(e,t,n){return ai(e,t,lo(n,2),!0)},Un.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=oi(e,t,!0)-1;if(Ua(e[n],t))return n}return-1},Un.startCase=qs,Un.startsWith=function(e,t,n){return e=vs(e),n=null==n?0:sr(ps(n),0,e.length),t=ui(t),e.slice(n,n+t.length)==t},Un.subtract=Sl,Un.sum=function(e){return e&&e.length?Kt(e,rl):0},Un.sumBy=function(e,t){return e&&e.length?Kt(e,lo(t,2)):0},Un.template=function(e,t,n){var r=Un.templateSettings;n&&xo(e,t,n)&&(t=i),e=vs(e),t=ws({},t,r,$i);var o,a,s=ws({},t.imports,r.imports,$i),l=ks(s),u=en(s,l),c=0,d=t.interpolate||Me,f="__p += '",h=Ae((t.escape||Me).source+"|"+d.source+"|"+(d===ee?pe:Me).source+"|"+(t.evaluate||Me).source+"|$","g"),p="//# sourceURL="+(Pe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++st+"]")+"\n";e.replace(h,(function(t,n,r,i,s,l){return r||(r=i),f+=e.slice(c,l).replace(Se,sn),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),f+="';\n";var g=Pe.call(t,"variable")&&t.variable;if(g){if(fe.test(g))throw new se("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(Y,""):f).replace(W,"$1").replace(G,"$1;"),f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=$s((function(){return je(l,p+"return "+f).apply(i,u)}));if(m.source=f,Ka(m))throw m;return m},Un.times=function(e,t){if((e=ps(e))<1||e>p)return[];var n=m,r=bn(e,m);t=lo(t),e-=m;for(var i=Xt(r,t);++n<e;)t(n);return i},Un.toFinite=hs,Un.toInteger=ps,Un.toLength=gs,Un.toLower=function(e){return vs(e).toLowerCase()},Un.toNumber=ms,Un.toSafeInteger=function(e){return e?sr(ps(e),-9007199254740991,p):0===e?e:0},Un.toString=vs,Un.toUpper=function(e){return vs(e).toUpperCase()},Un.trim=function(e,t,n){if((e=vs(e))&&(n||t===i))return $t(e);if(!e||!(t=ui(t)))return e;var r=gn(e),o=gn(t);return wi(r,nn(r,o),rn(r,o)+1).join("")},Un.trimEnd=function(e,t,n){if((e=vs(e))&&(n||t===i))return e.slice(0,mn(e)+1);if(!e||!(t=ui(t)))return e;var r=gn(e);return wi(r,0,rn(r,gn(t))+1).join("")},Un.trimStart=function(e,t,n){if((e=vs(e))&&(n||t===i))return e.replace(ae,"");if(!e||!(t=ui(t)))return e;var r=gn(e);return wi(r,nn(r,gn(t))).join("")},Un.truncate=function(e,t){var n=30,r="...";if(es(t)){var o="separator"in t?t.separator:o;n="length"in t?ps(t.length):n,r="omission"in t?ui(t.omission):r}var a=(e=vs(e)).length;if(ln(e)){var s=gn(e);a=s.length}if(n>=a)return e;var l=n-pn(r);if(l<1)return r;var u=s?wi(s,0,l).join(""):e.slice(0,l);if(o===i)return u+r;if(s&&(l+=u.length-l),os(o)){if(e.slice(l).search(o)){var c,d=u;for(o.global||(o=Ae(o.source,vs(ge.exec(o))+"g")),o.lastIndex=0;c=o.exec(d);)var f=c.index;u=u.slice(0,f===i?l:f)}}else if(e.indexOf(ui(o),l)!=l){var h=u.lastIndexOf(o);h>-1&&(u=u.slice(0,h))}return u+r},Un.unescape=function(e){return(e=vs(e))&&K.test(e)?e.replace(q,yn):e},Un.uniqueId=function(e){var t=++Le;return vs(e)+t},Un.upperCase=Zs,Un.upperFirst=Ks,Un.each=va,Un.eachRight=ba,Un.first=Wo,sl(Un,function(){var e={};return xr(Un,(function(t,n){Pe.call(Un.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Un.VERSION="4.17.21",Et(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Un[e].placeholder=Un})),Et(["drop","take"],(function(e,t){Hn.prototype[e]=function(n){n=n===i?1:qt(ps(n),0);var r=this.__filtered__&&!t?new Hn(this):this.clone();return r.__filtered__?r.__takeCount__=bn(n,r.__takeCount__):r.__views__.push({size:bn(n,m),type:e+(r.__dir__<0?"Right":"")}),r},Hn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Et(["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:lo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Et(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Hn.prototype[e]=function(){return this[n](1).value()[0]}})),Et(["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(rl)},Hn.prototype.find=function(e){return this.filter(e).head()},Hn.prototype.findLast=function(e){return this.reverse().find(e)},Hn.prototype.invokeMap=Kr((function(e,t){return"function"==typeof e?new Hn(this):this.map((function(n){return Dr(n,e,t)}))})),Hn.prototype.reject=function(e){return this.filter(Pa(lo(e)))},Hn.prototype.slice=function(e,t){e=ps(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=ps(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(m)},xr(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,l=t instanceof Hn,u=s[0],c=l||Ha(t),d=function(e){var t=o.apply(Un,Lt([e],s));return r&&f?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var f=this.__chain__,h=!!this.__actions__.length,p=a&&!f,g=l&&!h;if(!a&&c){t=g?t:new Hn(this);var m=e.apply(t,s);return m.__actions__.push({func:ha,args:[d],thisArg:i}),new Qn(m,f)}return p&&g?e.apply(this,s):(m=this.thru(d),p?r?m.value()[0]:m.value():m)})})),Et(["pop","push","shift","sort","splice","unshift"],(function(e){var t=De[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 i=this.value();return t.apply(Ha(i)?i:[],e)}return this[n]((function(n){return t.apply(Ha(n)?n:[],e)}))}})),xr(Hn.prototype,(function(e,t){var n=Un[t];if(n){var r=n.name+"";Pe.call(kn,r)||(kn[r]=[]),kn[r].push({name:t,func:n})}})),kn[Ui(i,2).name]=[{name:"wrapper",func:i}],Hn.prototype.clone=function(){var e=new Hn(this.__wrapped__);return e.__actions__=Ei(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ei(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ei(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=Ha(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=bn(t,e+a);break;case"takeRight":e=qt(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,u=r?s:a-1,c=this.__iteratees__,d=c.length,f=0,h=bn(l,this.__takeCount__);if(!n||!r&&i==l&&h==l)return pi(e,this.__actions__);var p=[];e:for(;l--&&f<h;){for(var g=-1,m=e[u+=t];++g<d;){var y=c[g],v=y.iteratee,b=y.type,x=v(m);if(2==b)m=x;else if(!x){if(1==b)continue e;break e}}p[f++]=m}return p},Un.prototype.at=pa,Un.prototype.chain=function(){return fa(this)},Un.prototype.commit=function(){return new Qn(this.value(),this.__chain__)},Un.prototype.next=function(){this.__values__===i&&(this.__values__=fs(this.value()));var e=this.__index__>=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 Vn;){var r=Fo(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:ha,args:[ea],thisArg:i}),new Qn(t,this.__chain__)}return this.thru(ea)},Un.prototype.toJSON=Un.prototype.valueOf=Un.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},Un.prototype.first=Un.prototype.head,Xe&&(Un.prototype[Xe]=function(){return this}),Un}();gt._=vn,(r=function(){return vn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},4178:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,i){for(var o,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]))n.call(o,u)&&(s[u]=o[u]);if(t){a=t(o);for(var c=0;c<a.length;c++)r.call(o,a[c])&&(s[a[c]]=o[a[c]])}}return s}},9926:(e,t,n)=>{var r="function"===typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"===typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&l&&"function"===typeof l.get?l.get:null,c=s&&Set.prototype.forEach,d="function"===typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"===typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"===typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,g=Object.prototype.toString,m=Function.prototype.toString,y=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,x=String.prototype.toUpperCase,w=String.prototype.toLowerCase,M=RegExp.prototype.test,S=Array.prototype.concat,j=Array.prototype.join,N=Array.prototype.slice,C=Math.floor,A="function"===typeof BigInt?BigInt.prototype.valueOf:null,T=Object.getOwnPropertySymbols,E="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,D="function"===typeof Symbol&&"object"===typeof Symbol.iterator,k="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===D||"symbol")?Symbol.toStringTag:null,O=Object.prototype.propertyIsEnumerable,I=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function _(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||M.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-C(-e):C(e);if(r!==e){var i=String(r),o=v.call(t,i.length+1);return b.call(i,n,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var P=n(6973),L=P.custom,z=V(L)?L:null;function R(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function F(e){return b.call(String(e),/"/g,"&quot;")}function U(e){return"[object Array]"===Y(e)&&(!k||!("object"===typeof e&&k in e))}function B(e){return"[object RegExp]"===Y(e)&&(!k||!("object"===typeof e&&k in e))}function V(e){if(D)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!E)return!1;try{return E.call(e),!0}catch(t){}return!1}e.exports=function e(t,r,i,s){var l=r||{};if(H(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(H(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var g=!H(l,"customInspect")||l.customInspect;if("boolean"!==typeof g&&"symbol"!==g)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var x=l.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return G(t,l);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var M=String(t);return x?_(t,M):M}if("bigint"===typeof t){var C=String(t)+"n";return x?_(t,C):C}var T="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof i&&(i=0),i>=T&&T>0&&"object"===typeof t)return U(t)?"[Array]":"[Object]";var L=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=j.call(Array(e.indent+1)," ")}return{base:n,prev:j.call(Array(t+1),n)}}(l,i);if("undefined"===typeof s)s=[];else if(W(s,t)>=0)return"[Circular]";function Q(t,n,r){if(n&&(s=N.call(s)).push(n),r){var o={depth:l.depth};return H(l,"quoteStyle")&&(o.quoteStyle=l.quoteStyle),e(t,o,i+1,s)}return e(t,l,i+1,s)}if("function"===typeof t&&!B(t)){var q=function(e){if(e.name)return e.name;var t=y.call(m.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),ee=J(t,Q);return"[Function"+(q?": "+q:" (anonymous)")+"]"+(ee.length>0?" { "+j.call(ee,", ")+" }":"")}if(V(t)){var te=D?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):E.call(t);return"object"!==typeof t||D?te:Z(te)}if(function(e){if(!e||"object"!==typeof e)return!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"===typeof e.nodeName&&"function"===typeof e.getAttribute}(t)){for(var ne="<"+w.call(String(t.nodeName)),re=t.attributes||[],ie=0;ie<re.length;ie++)ne+=" "+re[ie].name+"="+R(F(re[ie].value),"double",l);return ne+=">",t.childNodes&&t.childNodes.length&&(ne+="..."),ne+="</"+w.call(String(t.nodeName))+">"}if(U(t)){if(0===t.length)return"[]";var oe=J(t,Q);return L&&!function(e){for(var t=0;t<e.length;t++)if(W(e[t],"\n")>=0)return!1;return!0}(oe)?"["+$(oe,L)+"]":"[ "+j.call(oe,", ")+" ]"}if(function(e){return"[object Error]"===Y(e)&&(!k||!("object"===typeof e&&k in e))}(t)){var ae=J(t,Q);return"cause"in Error.prototype||!("cause"in t)||O.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+j.call(ae,", ")+" }":"{ ["+String(t)+"] "+j.call(S.call("[cause]: "+Q(t.cause),ae),", ")+" }"}if("object"===typeof t&&g){if(z&&"function"===typeof t[z]&&P)return P(t,{depth:T-i});if("symbol"!==g&&"function"===typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!==typeof e)return!1;try{o.call(e);try{u.call(e)}catch(ne){return!0}return e instanceof Map}catch(t){}return!1}(t)){var se=[];return a&&a.call(t,(function(e,n){se.push(Q(n,t,!0)+" => "+Q(e,t))})),X("Map",o.call(t),se,L)}if(function(e){if(!u||!e||"object"!==typeof e)return!1;try{u.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var le=[];return c&&c.call(t,(function(e){le.push(Q(e,t))})),X("Set",u.call(t),le,L)}if(function(e){if(!d||!e||"object"!==typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(ne){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return K("WeakMap");if(function(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(ne){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return K("WeakSet");if(function(e){if(!h||!e||"object"!==typeof e)return!1;try{return h.call(e),!0}catch(t){}return!1}(t))return K("WeakRef");if(function(e){return"[object Number]"===Y(e)&&(!k||!("object"===typeof e&&k in e))}(t))return Z(Q(Number(t)));if(function(e){if(!e||"object"!==typeof e||!A)return!1;try{return A.call(e),!0}catch(t){}return!1}(t))return Z(Q(A.call(t)));if(function(e){return"[object Boolean]"===Y(e)&&(!k||!("object"===typeof e&&k in e))}(t))return Z(p.call(t));if(function(e){return"[object String]"===Y(e)&&(!k||!("object"===typeof e&&k in e))}(t))return Z(Q(String(t)));if("undefined"!==typeof window&&t===window)return"{ [object Window] }";if(t===n.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===Y(e)&&(!k||!("object"===typeof e&&k in e))}(t)&&!B(t)){var ue=J(t,Q),ce=I?I(t)===Object.prototype:t instanceof Object||t.constructor===Object,de=t instanceof Object?"":"null prototype",fe=!ce&&k&&Object(t)===t&&k in t?v.call(Y(t),8,-1):de?"Object":"",he=(ce||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fe||de?"["+j.call(S.call([],fe||[],de||[]),": ")+"] ":"");return 0===ue.length?he+"{}":L?he+"{"+$(ue,L)+"}":he+"{ "+j.call(ue,", ")+" }"}return String(t)};var Q=Object.prototype.hasOwnProperty||function(e){return e in this};function H(e,t){return Q.call(e,t)}function Y(e){return g.call(e)}function W(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function G(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return G(v.call(e,0,t.maxStringLength),t)+r}return R(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,q),"single",t)}function q(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+x.call(t.toString(16))}function Z(e){return"Object("+e+")"}function K(e){return e+" { ? }"}function X(e,t,n,r){return e+" ("+t+") {"+(r?$(n,r):j.call(n,", "))+"}"}function $(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+j.call(e,","+n)+"\n"+t.prev}function J(e,t){var n=U(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=H(e,i)?t(e[i],e):""}var o,a="function"===typeof T?T(e):[];if(D){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var l in e)H(e,l)&&(n&&String(Number(l))===l&&l<e.length||D&&o["$"+l]instanceof Symbol||(M.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"===typeof T)for(var u=0;u<a.length;u++)O.call(e,a[u])&&r.push("["+t(a[u])+"]: "+t(e[a[u]],e));return r}},9277:(e,t,n)=>{"use strict";var r=n(7621);function i(){}var o=null,a={};function s(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("Promise constructor's argument is not a function");this._x=0,this._y=0,this._z=null,this._A=null,e!==i&&h(e,this)}function l(e,t){for(;3===e._y;)e=e._z;if(s._B&&s._B(e),0===e._y)return 0===e._x?(e._x=1,void(e._A=t)):1===e._x?(e._x=2,void(e._A=[e._A,t])):void e._A.push(t);!function(e,t){r((function(){var n=1===e._y?t.onFulfilled:t.onRejected;if(null!==n){var r=function(e,t){try{return e(t)}catch(n){return o=n,a}}(n,e._z);r===a?c(t.promise,o):u(t.promise,r)}else 1===e._y?u(t.promise,e._z):c(t.promise,e._z)}))}(e,t)}function u(e,t){if(t===e)return c(e,new TypeError("A promise cannot be resolved with itself."));if(t&&("object"===typeof t||"function"===typeof t)){var n=function(e){try{return e.then}catch(t){return o=t,a}}(t);if(n===a)return c(e,o);if(n===e.then&&t instanceof s)return e._y=3,e._z=t,void d(e);if("function"===typeof n)return void h(n.bind(t),e)}e._y=1,e._z=t,d(e)}function c(e,t){e._y=2,e._z=t,s._C&&s._C(e,t),d(e)}function d(e){if(1===e._x&&(l(e,e._A),e._A=null),2===e._x){for(var t=0;t<e._A.length;t++)l(e,e._A[t]);e._A=null}}function f(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function h(e,t){var n=!1,r=function(e,t,n){try{e(t,n)}catch(r){return o=r,a}}(e,(function(e){n||(n=!0,u(t,e))}),(function(e){n||(n=!0,c(t,e))}));n||r!==a||(n=!0,c(t,o))}e.exports=s,s._B=null,s._C=null,s._D=i,s.prototype.then=function(e,t){if(this.constructor!==s)return function(e,t,n){return new e.constructor((function(r,o){var a=new s(i);a.then(r,o),l(e,new f(t,n,a))}))}(this,e,t);var n=new s(i);return l(this,new f(e,t,n)),n}},609:(e,t,n)=>{"use strict";var r=n(9277);e.exports=r;var i=c(!0),o=c(!1),a=c(null),s=c(void 0),l=c(0),u=c("");function c(e){var t=new r(r._D);return t._y=1,t._z=e,t}r.resolve=function(e){if(e instanceof r)return e;if(null===e)return a;if(void 0===e)return s;if(!0===e)return i;if(!1===e)return o;if(0===e)return l;if(""===e)return u;if("object"===typeof e||"function"===typeof e)try{var t=e.then;if("function"===typeof t)return new r(t.bind(e))}catch(n){return new r((function(e,t){t(n)}))}return c(e)};var d=function(e){return"function"===typeof Array.from?(d=Array.from,Array.from(e)):(d=function(e){return Array.prototype.slice.call(e)},Array.prototype.slice.call(e))};function f(e){return{status:"fulfilled",value:e}}function h(e){return{status:"rejected",reason:e}}function p(e){if(e&&("object"===typeof e||"function"===typeof e)){if(e instanceof r&&e.then===r.prototype.then)return e.then(f,h);var t=e.then;if("function"===typeof t)return new r(t.bind(e)).then(f,h)}return f(e)}function g(e){if("function"===typeof AggregateError)return new AggregateError(e,"All promises were rejected");var t=new Error("All promises were rejected");return t.name="AggregateError",t.errors=e,t}r.all=function(e){var t=d(e);return new r((function(e,n){if(0===t.length)return e([]);var i=t.length;function o(a,s){if(s&&("object"===typeof s||"function"===typeof s)){if(s instanceof r&&s.then===r.prototype.then){for(;3===s._y;)s=s._z;return 1===s._y?o(a,s._z):(2===s._y&&n(s._z),void s.then((function(e){o(a,e)}),n))}var l=s.then;if("function"===typeof l)return void new r(l.bind(s)).then((function(e){o(a,e)}),n)}t[a]=s,0===--i&&e(t)}for(var a=0;a<t.length;a++)o(a,t[a])}))},r.allSettled=function(e){return r.all(d(e).map(p))},r.reject=function(e){return new r((function(t,n){n(e)}))},r.race=function(e){return new r((function(t,n){d(e).forEach((function(e){r.resolve(e).then(t,n)}))}))},r.prototype.catch=function(e){return this.then(null,e)},r.any=function(e){return new r((function(t,n){var i=d(e),o=!1,a=[];function s(e){o||(o=!0,t(e))}function l(e){a.push(e),a.length===i.length&&n(g(a))}0===i.length?n(g(a)):i.forEach((function(e){r.resolve(e).then(s,l)}))}))}},3241:(e,t,n)=>{"use strict";var r=n(9277),i=[ReferenceError,TypeError,RangeError],o=!1;function a(){o=!1,r._B=null,r._C=null}function s(e,t){return t.some((function(t){return e instanceof t}))}t.disable=a,t.enable=function(e){e=e||{},o&&a();o=!0;var t=0,n=0,l={};function u(t){(e.allRejections||s(l[t].error,e.whitelist||i))&&(l[t].displayId=n++,e.onUnhandled?(l[t].logged=!0,e.onUnhandled(l[t].displayId,l[t].error)):(l[t].logged=!0,function(e,t){console.warn("Possible Unhandled Promise Rejection (id: "+e+"):"),((t&&(t.stack||t))+"").split("\n").forEach((function(e){console.warn(" "+e)}))}(l[t].displayId,l[t].error)))}r._B=function(t){2===t._y&&l[t._E]&&(l[t._E].logged?function(t){l[t].logged&&(e.onHandled?e.onHandled(l[t].displayId,l[t].error):l[t].onUnhandled||(console.warn("Promise Rejection Handled (id: "+l[t].displayId+"):"),console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+l[t].displayId+".")))}(t._E):clearTimeout(l[t._E].timeout),delete l[t._E])},r._C=function(e,n){0===e._x&&(e._E=t++,l[e._E]={displayId:null,error:n,timeout:setTimeout(u.bind(null,e._E),s(n,i)?100:2e3),logged:!1})}}},1276:(e,t,n)=>{"use strict";var r=n(5691);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},5754:(e,t,n)=>{e.exports=n(1276)()},5691:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2087:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",i="RFC3986";e.exports={default:i,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:i}},1139:(e,t,n)=>{"use strict";var r=n(3378),i=n(6316),o=n(2087);e.exports={formats:o,parse:i,stringify:r}},6316:(e,t,n)=>{"use strict";var r=n(5918),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),u=s?o.slice(0,s.index):o,c=[];if(u){if(!n.plainObjects&&i.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}for(var d=0;n.depth>0&&null!==(s=a.exec(o))&&d<n.depth;){if(d+=1,!n.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(s[1])}return s&&c.push("["+o.slice(s.index)+"]"),function(e,t,n,r){for(var i=r?t:l(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(u,10);n.parseArrays||""!==u?!isNaN(c)&&s!==u&&String(c)===u&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[])[c]=i:"__proto__"!==u&&(a[u]=i):a={0:i}}i=a}return i}(c,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof 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="undefined"===typeof e.charset?a.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var c="string"===typeof e?function(e,t){var n,u={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=c.split(t.delimiter,d),h=-1,p=t.charset;if(t.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?p="utf-8":"utf8=%26%2310003%3B"===f[n]&&(p="iso-8859-1"),h=n,n=f.length);for(n=0;n<f.length;++n)if(n!==h){var g,m,y=f[n],v=y.indexOf("]="),b=-1===v?y.indexOf("="):v+1;-1===b?(g=t.decoder(y,a.decoder,p,"key"),m=t.strictNullHandling?null:""):(g=t.decoder(y.slice(0,b),a.decoder,p,"key"),m=r.maybeMap(l(y.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,p,"value")}))),m&&t.interpretNumericEntities&&"iso-8859-1"===p&&(m=s(m)),y.indexOf("[]=")>-1&&(m=o(m)?[m]:m),i.call(u,g)?u[g]=r.combine(u[g],m):u[g]=m}return u}(e,n):e,d=n.plainObjects?Object.create(null):{},f=Object.keys(c),h=0;h<f.length;++h){var p=f[h],g=u(p,c[p],n,"string"===typeof e);d=r.merge(d,g,n)}return!0===n.allowSparse?d:r.compact(d)}},3378:(e,t,n)=>{"use strict";var r=n(1914),i=n(5918),o=n(2087),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,u=String.prototype.split,c=Array.prototype.push,d=function(e,t){c.apply(e,l(t)?t:[t])},f=Date.prototype.toISOString,h=o.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:h,formatter:o.formatters[h],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},g={},m=function e(t,n,o,a,s,c,f,h,m,y,v,b,x,w,M,S){for(var j,N=t,C=S,A=0,T=!1;void 0!==(C=C.get(g))&&!T;){var E=C.get(t);if(A+=1,"undefined"!==typeof E){if(E===A)throw new RangeError("Cyclic object value");T=!0}"undefined"===typeof C.get(g)&&(A=0)}if("function"===typeof h?N=h(n,N):N instanceof Date?N=v(N):"comma"===o&&l(N)&&(N=i.maybeMap(N,(function(e){return e instanceof Date?v(e):e}))),null===N){if(s)return f&&!w?f(n,p.encoder,M,"key",b):n;N=""}if("string"===typeof(j=N)||"number"===typeof j||"boolean"===typeof j||"symbol"===typeof j||"bigint"===typeof j||i.isBuffer(N)){if(f){var D=w?n:f(n,p.encoder,M,"key",b);if("comma"===o&&w){for(var k=u.call(String(N),","),O="",I=0;I<k.length;++I)O+=(0===I?"":",")+x(f(k[I],p.encoder,M,"value",b));return[x(D)+(a&&l(N)&&1===k.length?"[]":"")+"="+O]}return[x(D)+"="+x(f(N,p.encoder,M,"value",b))]}return[x(n)+"="+x(String(N))]}var _,P=[];if("undefined"===typeof N)return P;if("comma"===o&&l(N))_=[{value:N.length>0?N.join(",")||null:void 0}];else if(l(h))_=h;else{var L=Object.keys(N);_=m?L.sort(m):L}for(var z=a&&l(N)&&1===N.length?n+"[]":n,R=0;R<_.length;++R){var F=_[R],U="object"===typeof F&&"undefined"!==typeof F.value?F.value:N[F];if(!c||null!==U){var B=l(N)?"function"===typeof o?o(z,F):z:z+(y?"."+F:"["+F+"]");S.set(t,A);var V=r();V.set(g,S),d(P,e(U,B,o,a,s,c,f,h,m,y,v,b,x,w,M,V))}}return P};e.exports=function(e,t){var n,i=e,u=function(e){if(!e)return p;if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if("undefined"!==typeof 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=o.default;if("undefined"!==typeof e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],i=p.filter;return("function"===typeof e.filter||l(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?p.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:p.encode,encoder:"function"===typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"===typeof u.filter?i=(0,u.filter)("",i):l(u.filter)&&(n=u.filter);var c,f=[];if("object"!==typeof i||null===i)return"";c=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=s[c];if(t&&"commaRoundTrip"in t&&"boolean"!==typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var g="comma"===h&&t&&t.commaRoundTrip;n||(n=Object.keys(i)),u.sort&&n.sort(u.sort);for(var y=r(),v=0;v<n.length;++v){var b=n[v];u.skipNulls&&null===i[b]||d(f,m(i[b],b,h,g,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,y))}var x=f.join(u.delimiter),w=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),x.length>0?w+x:""}},5918:(e,t,n)=>{"use strict";var r=n(2087),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),l=0;l<s.length;++l){var u=s[l],c=a[u];"object"===typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:a,prop:u}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)"undefined"!==typeof n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},encode:function(e,t,n,i,o){if(0===e.length)return e;var s=e;if("symbol"===typeof e?s=Symbol.prototype.toString.call(e):"string"!==typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",u=0;u<s.length;++u){var c=s.charCodeAt(u);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===r.RFC1738&&(40===c||41===c)?l+=s.charAt(u):c<128?l+=a[c]:c<2048?l+=a[192|c>>6]+a[128|63&c]:c<55296||c>=57344?l+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c]:(u+=1,c=65536+((1023&c)<<10|1023&s.charCodeAt(u)),l+=a[240|c>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c])}return l},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(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!==typeof n){if(o(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var a=t;return o(t)&&!o(n)&&(a=s(t,r)),o(t)&&o(n)?(n.forEach((function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"===typeof a&&n&&"object"===typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t}),a)}}},9686:(e,t,n)=>{"use strict";n(2679),n(7005),n(1716),n(4837),"undefined"===typeof Promise&&(n(3241).enable(),self.Promise=n(609)),"undefined"!==typeof window&&n(1818),Object.assign=n(4178)},1809:(e,t,n)=>{"use strict";n(5238),n(9913),n(6067),n(8187),n(7575),n(1958),n(5533),n(3726),n(6468),n(6505),n(1613),n(1498),n(310),n(480),n(7296),n(149),n(9708),n(7817),n(8409),n(4837),n(2684),n(5332),n(8764),n(6028)},2157:(e,t,n)=>{"use strict";var r=n(810),i=n(320);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},p={};function g(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=m.hasOwnProperty(t)?m[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(p,e)||!d.call(h,e)&&(f.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,v);m[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,v);m[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,v);m[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),M=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),A=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),O=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var I=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var _=Symbol.iterator;function P(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=_&&e[_]||e["@@iterator"])?e:null}var L,z=Object.assign;function R(e){if(void 0===L)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var F=!1;function U(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"===typeof u.stack){for(var i=u.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?R(e):""}function B(e){switch(e.tag){case 5:return R(e.type);case 16:return R("Lazy");case 13:return R("Suspense");case 19:return R("SuspenseList");case 0:case 2:case 15:return e=U(e.type,!1);case 11:return e=U(e.type.render,!1);case 1:return e=U(e.type,!0);default:return""}}function V(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case S:return"Fragment";case M:return"Portal";case N:return"Profiler";case j:return"StrictMode";case E:return"Suspense";case D:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case A:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case k:return null!==(t=e.displayName||null)?t:V(e.type)||"Memo";case O:t=e._payload,e=e._init;try{return V(e(t))}catch(n){}}return null}function Q(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(t);case 8:return t===j?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function W(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function q(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function $(e,t){X(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return z({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function oe(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(he).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ye=z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ve(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Me=null,Se=null,je=null;function Ne(e){if(e=bi(e)){if("function"!==typeof Me)throw Error(o(280));var t=e.stateNode;t&&(t=wi(t),Me(e.stateNode,e.type,t))}}function Ce(e){Se?je?je.push(e):je=[e]:Se=e}function Ae(){if(Se){var e=Se,t=je;if(je=Se=null,Ne(e),t)for(e=0;e<t.length;e++)Ne(t[e])}}function Te(e,t){return e(t)}function Ee(){}var De=!1;function ke(e,t,n){if(De)return e(t,n);De=!0;try{return Te(e,t,n)}finally{De=!1,(null!==Se||null!==je)&&(Ee(),Ae())}}function Oe(e,t){var n=e.stateNode;if(null===n)return null;var r=wi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var Ie=!1;if(c)try{var _e={};Object.defineProperty(_e,"passive",{get:function(){Ie=!0}}),window.addEventListener("test",_e,_e),window.removeEventListener("test",_e,_e)}catch(ce){Ie=!1}function Pe(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Le=!1,ze=null,Re=!1,Fe=null,Ue={onError:function(e){Le=!0,ze=e}};function Be(e,t,n,r,i,o,a,s,l){Le=!1,ze=null,Pe.apply(Ue,arguments)}function Ve(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if(Ve(e)!==e)throw Error(o(188))}function Ye(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ve(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return He(i),e;if(a===r)return He(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?We(e):null}function We(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=We(e);if(null!==t)return t;e=e.sibling}return null}var Ge=i.unstable_scheduleCallback,qe=i.unstable_cancelCallback,Ze=i.unstable_shouldYield,Ke=i.unstable_requestPaint,Xe=i.unstable_now,$e=i.unstable_getCurrentPriorityLevel,Je=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=dt(s):0!==(o&=a)&&(r=dt(o))}else 0!==(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ut;return 0===(4194240&(ut<<=1))&&(ut=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function xt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var wt,Mt,St,jt,Nt,Ct=!1,At=[],Tt=null,Et=null,Dt=null,kt=new Map,Ot=new Map,It=[],_t="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Pt(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":Et=null;break;case"mouseover":case"mouseout":Dt=null;break;case"pointerover":case"pointerout":kt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ot.delete(t.pointerId)}}function Lt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=bi(t))&&Mt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function zt(e){var t=vi(e.target);if(null!==t){var n=Ve(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Qe(n)))return e.blockedOn=t,void Nt(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Rt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&Mt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Ft(e,t,n){Rt(e)&&n.delete(t)}function Ut(){Ct=!1,null!==Tt&&Rt(Tt)&&(Tt=null),null!==Et&&Rt(Et)&&(Et=null),null!==Dt&&Rt(Dt)&&(Dt=null),kt.forEach(Ft),Ot.forEach(Ft)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ut)))}function Vt(e){function t(t){return Bt(t,e)}if(0<At.length){Bt(At[0],e);for(var n=1;n<At.length;n++){var r=At[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&Bt(Tt,e),null!==Et&&Bt(Et,e),null!==Dt&&Bt(Dt,e),kt.forEach(t),Ot.forEach(t),n=0;n<It.length;n++)(r=It[n]).blockedOn===e&&(r.blockedOn=null);for(;0<It.length&&null===(n=It[0]).blockedOn;)zt(n),null===n.blockedOn&&It.shift()}var Qt=x.ReactCurrentBatchConfig,Ht=!0;function Yt(e,t,n,r){var i=bt,o=Qt.transition;Qt.transition=null;try{bt=1,Gt(e,t,n,r)}finally{bt=i,Qt.transition=o}}function Wt(e,t,n,r){var i=bt,o=Qt.transition;Qt.transition=null;try{bt=4,Gt(e,t,n,r)}finally{bt=i,Qt.transition=o}}function Gt(e,t,n,r){if(Ht){var i=Zt(e,t,n,r);if(null===i)Hr(e,t,r,qt,n),Pt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Tt=Lt(Tt,e,t,n,r,i),!0;case"dragenter":return Et=Lt(Et,e,t,n,r,i),!0;case"mouseover":return Dt=Lt(Dt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return kt.set(o,Lt(kt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Ot.set(o,Lt(Ot.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Pt(e,r),4&t&&-1<_t.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&wt(o),null===(o=Zt(e,t,n,r))&&Hr(e,t,r,qt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var qt=null;function Zt(e,t,n,r){if(qt=null,null!==(e=vi(e=we(r))))if(null===(t=Ve(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Qe(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return qt=e,null}function Kt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch($e()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,$t=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=$t,r=n.length,i="value"in Xt?Xt.value:Xt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Jt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return z(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=z({},un,{view:0,detail:0}),fn=on(dn),hn=z({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),pn=on(hn),gn=on(z({},hn,{dataTransfer:0})),mn=on(z({},dn,{relatedTarget:0})),yn=on(z({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=z({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(vn),xn=on(z({},un,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Mn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Nn(){return jn}var Cn=z({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Mn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),An=on(Cn),Tn=on(z({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),En=on(z({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nn})),Dn=on(z({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),kn=z({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),On=on(kn),In=[9,13,27,32],_n=c&&"CompositionEvent"in window,Pn=null;c&&"documentMode"in document&&(Pn=document.documentMode);var Ln=c&&"TextEvent"in window&&!Pn,zn=c&&(!_n||Pn&&8<Pn&&11>=Pn),Rn=String.fromCharCode(32),Fn=!1;function Un(e,t){switch(e){case"keyup":return-1!==In.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1;var Qn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Qn[e.type]:"textarea"===t}function Yn(e,t,n,r){Ce(r),0<(t=Wr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,Gn=null;function qn(e){Rr(e,0)}function Zn(e){if(G(xi(e)))return e}function Kn(e,t){if("change"===e)return t}var Xn=!1;if(c){var $n;if(c){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}$n=Jn}else $n=!1;Xn=$n&&(!document.documentMode||9<document.documentMode)}function tr(){Wn&&(Wn.detachEvent("onpropertychange",nr),Gn=Wn=null)}function nr(e){if("value"===e.propertyName&&Zn(Gn)){var t=[];Yn(t,Gn,e,we(e)),ke(qn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Gn=n,(Wn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Zn(Gn)}function or(e,t){if("click"===e)return Zn(t)}function ar(e,t){if("input"===e||"change"===e)return Zn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=q();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=q((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=cr(n,o);var a=cr(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gr=c&&"documentMode"in document&&11>=document.documentMode,mr=null,yr=null,vr=null,br=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==mr||mr!==q(r)||("selectionStart"in(r=mr)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&lr(vr,r)||(vr=r,0<(r=Wr(yr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Mr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Sr={},jr={};function Nr(e){if(Sr[e])return Sr[e];if(!Mr[e])return e;var t,n=Mr[e];for(t in n)if(n.hasOwnProperty(t)&&t in jr)return Sr[e]=n[t];return e}c&&(jr=document.createElement("div").style,"AnimationEvent"in window||(delete Mr.animationend.animation,delete Mr.animationiteration.animation,delete Mr.animationstart.animation),"TransitionEvent"in window||delete Mr.transitionend.transition);var Cr=Nr("animationend"),Ar=Nr("animationiteration"),Tr=Nr("animationstart"),Er=Nr("transitionend"),Dr=new Map,kr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Or(e,t){Dr.set(e,t),l(t,[e])}for(var Ir=0;Ir<kr.length;Ir++){var _r=kr[Ir];Or(_r.toLowerCase(),"on"+(_r[0].toUpperCase()+_r.slice(1)))}Or(Cr,"onAnimationEnd"),Or(Ar,"onAnimationIteration"),Or(Tr,"onAnimationStart"),Or("dblclick","onDoubleClick"),Or("focusin","onFocus"),Or("focusout","onBlur"),Or(Er,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Lr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Pr));function zr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,l,u){if(Be.apply(this,arguments),Le){if(!Le)throw Error(o(198));var c=ze;Le=!1,ze=null,Re||(Re=!0,Fe=c)}}(r,t,void 0,e),e.currentTarget=null}function Rr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;zr(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;zr(i,s,u),o=l}}}if(Re)throw e=Fe,Re=!1,Fe=null,e}function Fr(e,t){var n=t[gi];void 0===n&&(n=t[gi]=new Set);var r=e+"__bubble";n.has(r)||(Qr(t,e,2,!1),n.add(r))}function Ur(e,t,n){var r=0;t&&(r|=4),Qr(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Vr(e){if(!e[Br]){e[Br]=!0,a.forEach((function(t){"selectionchange"!==t&&(Lr.has(t)||Ur(t,!1,e),Ur(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,Ur("selectionchange",!1,t))}}function Qr(e,t,n,r){switch(Kt(t)){case 1:var i=Yt;break;case 4:i=Wt;break;default:i=Gt}n=i.bind(null,t,n,e),i=void 0,!Ie||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=vi(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}ke((function(){var r=o,i=we(n),a=[];e:{var s=Dr.get(e);if(void 0!==s){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=An;break;case"focusin":u="focus",l=mn;break;case"focusout":u="blur",l=mn;break;case"beforeblur":case"afterblur":l=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=En;break;case Cr:case Ar:case Tr:l=yn;break;case Er:l=Dn;break;case"scroll":l=fn;break;case"wheel":l=On;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}var c=0!==(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var h,p=r;null!==p;){var g=(h=p).stateNode;if(5===h.tag&&null!==g&&(h=g,null!==f&&(null!=(g=Oe(p,f))&&c.push(Yr(p,g,h)))),d)break;p=p.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===xe||!(u=n.relatedTarget||n.fromElement)||!vi(u)&&!u[pi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?vi(u):null)&&(u!==(d=Ve(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=pn,g="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,g="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:xi(l),h=null==u?s:xi(u),(s=new c(g,p+"leave",l,n,i)).target=d,s.relatedTarget=h,g=null,vi(i)===r&&((c=new c(f,p+"enter",u,n,i)).target=h,c.relatedTarget=d,g=c),d=g,l&&u)e:{for(f=u,p=0,h=c=l;h;h=Gr(h))p++;for(h=0,g=f;g;g=Gr(g))h++;for(;0<p-h;)c=Gr(c),p--;for(;0<h-p;)f=Gr(f),h--;for(;p--;){if(c===f||null!==f&&c===f.alternate)break e;c=Gr(c),f=Gr(f)}c=null}else c=null;null!==l&&qr(a,s,l,c,!1),null!==u&&null!==d&&qr(a,d,u,c,!0)}if("select"===(l=(s=r?xi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Kn;else if(Hn(s))if(Xn)m=ar;else{m=ir;var y=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=or);switch(m&&(m=m(e,r))?Yn(a,m,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ee(s,"number",s.value)),y=r?xi(r):window,e){case"focusin":(Hn(y)||"true"===y.contentEditable)&&(mr=y,yr=r,vr=null);break;case"focusout":vr=yr=mr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,xr(a,n,i);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":xr(a,n,i)}var v;if(_n)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Vn?Un(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(zn&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Vn&&(v=en()):($t="value"in(Xt=i)?Xt.value:Xt.textContent,Vn=!0)),0<(y=Wr(r,b)).length&&(b=new xn(b,e,null,n,i),a.push({event:b,listeners:y}),v?b.data=v:null!==(v=Bn(n))&&(b.data=v))),(v=Ln?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(Fn=!0,Rn);case"textInput":return(e=t.data)===Rn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Vn)return"compositionend"===e||!_n&&Un(e,t)?(e=en(),Jt=$t=Xt=null,Vn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return zn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Wr(r,"onBeforeInput")).length&&(i=new xn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v))}Rr(a,t)}))}function Yr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Oe(e,n))&&r.unshift(Yr(e,o,i)),null!=(o=Oe(e,t))&&r.push(Yr(e,o,i))),e=e.return}return r}function Gr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function qr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=Oe(n,o))&&a.unshift(Yr(n,l,s)):i||null!=(l=Oe(n,o))&&a.push(Yr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Zr=/\r\n?/g,Kr=/\u0000|\uFFFD/g;function Xr(e){return("string"===typeof e?e:""+e).replace(Zr,"\n").replace(Kr,"")}function $r(e,t,n){if(t=Xr(t),Xr(e)!==t&&n)throw Error(o(425))}function Jr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,oi="function"===typeof Promise?Promise:void 0,ai="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof oi?function(e){return oi.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout((function(){throw e}))}function li(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Vt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Vt(t)}function ui(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ci(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),fi="__reactFiber$"+di,hi="__reactProps$"+di,pi="__reactContainer$"+di,gi="__reactEvents$"+di,mi="__reactListeners$"+di,yi="__reactHandles$"+di;function vi(e){var t=e[fi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pi]||n[fi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ci(e);null!==e;){if(n=e[fi])return n;e=ci(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[fi]||e[pi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function wi(e){return e[hi]||null}var Mi=[],Si=-1;function ji(e){return{current:e}}function Ni(e){0>Si||(e.current=Mi[Si],Mi[Si]=null,Si--)}function Ci(e,t){Si++,Mi[Si]=e.current,e.current=t}var Ai={},Ti=ji(Ai),Ei=ji(!1),Di=Ai;function ki(e,t){var n=e.type.contextTypes;if(!n)return Ai;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Oi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ii(){Ni(Ei),Ni(Ti)}function _i(e,t,n){if(Ti.current!==Ai)throw Error(o(168));Ci(Ti,t),Ci(Ei,n)}function Pi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,Q(e)||"Unknown",i));return z({},n,r)}function Li(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ai,Di=Ti.current,Ci(Ti,e),Ci(Ei,Ei.current),!0}function zi(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Pi(e,t,Di),r.__reactInternalMemoizedMergedChildContext=e,Ni(Ei),Ni(Ti),Ci(Ti,e)):Ni(Ei),Ci(Ei,n)}var Ri=null,Fi=!1,Ui=!1;function Bi(e){null===Ri?Ri=[e]:Ri.push(e)}function Vi(){if(!Ui&&null!==Ri){Ui=!0;var e=0,t=bt;try{var n=Ri;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ri=null,Fi=!1}catch(i){throw null!==Ri&&(Ri=Ri.slice(e+1)),Ge(Je,Vi),i}finally{bt=t,Ui=!1}}return null}var Qi=[],Hi=0,Yi=null,Wi=0,Gi=[],qi=0,Zi=null,Ki=1,Xi="";function $i(e,t){Qi[Hi++]=Wi,Qi[Hi++]=Yi,Yi=e,Wi=t}function Ji(e,t,n){Gi[qi++]=Ki,Gi[qi++]=Xi,Gi[qi++]=Zi,Zi=e;var r=Ki;e=Xi;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Ki=1<<32-at(t)+i|n<<i|r,Xi=o+e}else Ki=1<<o|n<<i|r,Xi=e}function eo(e){null!==e.return&&($i(e,1),Ji(e,1,0))}function to(e){for(;e===Yi;)Yi=Qi[--Hi],Qi[Hi]=null,Wi=Qi[--Hi],Qi[Hi]=null;for(;e===Zi;)Zi=Gi[--qi],Gi[qi]=null,Xi=Gi[--qi],Gi[qi]=null,Ki=Gi[--qi],Gi[qi]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=ku(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ui(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Zi?{id:Ki,overflow:Xi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=ku(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function uo(e){if(io){var t=ro;if(t){var n=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ui(n.nextSibling);var r=no;t&&so(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function co(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function fo(e){if(e!==no)return!1;if(!io)return co(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw ho(),Error(o(418));for(;t;)ao(e,t),t=ui(t.nextSibling)}if(co(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ui(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ui(e.stateNode.nextSibling):null;return!0}function ho(){for(var e=ro;e;)e=ui(e.nextSibling)}function po(){ro=no=null,io=!1}function go(e){null===oo?oo=[e]:oo.push(e)}var mo=x.ReactCurrentBatchConfig;function yo(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function vo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bo(e){return(0,e._init)(e._payload)}function xo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Iu(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=zu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===O&&bo(o)===t.type)?((r=i(t,n.props)).ref=yo(e,t,n),r.return=e,r):((r=_u(n.type,n.key,n.props,null,e.mode,r)).ref=yo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ru(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Pu(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=zu(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case w:return(n=_u(t.type,t.key,t.props,null,e.mode,n)).ref=yo(e,null,t),n.return=e,n;case M:return(t=Ru(t,e.mode,n)).return=e,t;case O:return f(e,(0,t._init)(t._payload),n)}if(te(t)||P(t))return(t=Pu(t,e.mode,n,null)).return=e,t;vo(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===i?u(e,t,n,r):null;case M:return n.key===i?c(e,t,n,r):null;case O:return h(e,t,(i=n._init)(n._payload),r)}if(te(n)||P(n))return null!==i?null:d(e,t,n,r,null);vo(e,n)}return null}function p(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case M:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case O:return p(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||P(r))return d(t,e=e.get(n)||null,r,i,null);vo(t,r)}return null}function g(i,o,s,l){for(var u=null,c=null,d=o,g=o=0,m=null;null!==d&&g<s.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var y=h(i,d,s[g],l);if(null===y){null===d&&(d=m);break}e&&d&&null===y.alternate&&t(i,d),o=a(y,o,g),null===c?u=y:c.sibling=y,c=y,d=m}if(g===s.length)return n(i,d),io&&$i(i,g),u;if(null===d){for(;g<s.length;g++)null!==(d=f(i,s[g],l))&&(o=a(d,o,g),null===c?u=d:c.sibling=d,c=d);return io&&$i(i,g),u}for(d=r(i,d);g<s.length;g++)null!==(m=p(d,i,g,s[g],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),o=a(m,o,g),null===c?u=m:c.sibling=m,c=m);return e&&d.forEach((function(e){return t(i,e)})),io&&$i(i,g),u}function m(i,s,l,u){var c=P(l);if("function"!==typeof c)throw Error(o(150));if(null==(l=c.call(l)))throw Error(o(151));for(var d=c=null,g=s,m=s=0,y=null,v=l.next();null!==g&&!v.done;m++,v=l.next()){g.index>m?(y=g,g=null):y=g.sibling;var b=h(i,g,v.value,u);if(null===b){null===g&&(g=y);break}e&&g&&null===b.alternate&&t(i,g),s=a(b,s,m),null===d?c=b:d.sibling=b,d=b,g=y}if(v.done)return n(i,g),io&&$i(i,m),c;if(null===g){for(;!v.done;m++,v=l.next())null!==(v=f(i,v.value,u))&&(s=a(v,s,m),null===d?c=v:d.sibling=v,d=v);return io&&$i(i,m),c}for(g=r(i,g);!v.done;m++,v=l.next())null!==(v=p(g,i,m,v.value,u))&&(e&&null!==v.alternate&&g.delete(null===v.key?m:v.key),s=a(v,s,m),null===d?c=v:d.sibling=v,d=v);return e&&g.forEach((function(e){return t(i,e)})),io&&$i(i,m),c}return function e(r,o,a,l){if("object"===typeof a&&null!==a&&a.type===S&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===S){if(7===c.tag){n(r,c.sibling),(o=i(c,a.props.children)).return=r,r=o;break e}}else if(c.elementType===u||"object"===typeof u&&null!==u&&u.$$typeof===O&&bo(u)===c.type){n(r,c.sibling),(o=i(c,a.props)).ref=yo(r,c,a),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===S?((o=Pu(a.props.children,r.mode,l,a.key)).return=r,r=o):((l=_u(a.type,a.key,a.props,null,r.mode,l)).ref=yo(r,o,a),l.return=r,r=l)}return s(r);case M:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Ru(a,r.mode,l)).return=r,r=o}return s(r);case O:return e(r,o,(c=a._init)(a._payload),l)}if(te(a))return g(r,o,a,l);if(P(a))return m(r,o,a,l);vo(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=zu(a,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var wo=xo(!0),Mo=xo(!1),So=ji(null),jo=null,No=null,Co=null;function Ao(){Co=No=jo=null}function To(e){var t=So.current;Ni(So),e._currentValue=t}function Eo(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Do(e,t){jo=e,Co=No=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function ko(e){var t=e._currentValue;if(Co!==e)if(e={context:e,memoizedValue:t,next:null},null===No){if(null===jo)throw Error(o(308));No=e,jo.dependencies={lanes:0,firstContext:e}}else No=No.next=e;return t}var Oo=null;function Io(e){null===Oo?Oo=[e]:Oo.push(e)}function _o(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Io(t)):(n.next=i.next,i.next=n),t.interleaved=n,Po(e,r)}function Po(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Lo=!1;function zo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ro(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Uo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Tl)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Po(e,n)}return null===(i=r.interleaved)?(t.next=t,Io(r)):(t.next=i.next,i.next=t),r.interleaved=t,Po(e,n)}function Bo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}function Vo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Qo(e,t,n,r){var i=e.updateQueue;Lo=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,c=u=l=null,s=o;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,g=s;switch(f=t,h=n,g.tag){case 1:if("function"===typeof(p=g.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(f="function"===typeof(p=g.payload)?p.call(h,d,f):p)||void 0===f)break e;d=z({},d,f);break e;case 2:Lo=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=h,l=d):c=c.next=h,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===c&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Ll|=a,e.lanes=a,e.memoizedState=d}}function Ho(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(o(191,i));i.call(r)}}}var Yo={},Wo=ji(Yo),Go=ji(Yo),qo=ji(Yo);function Zo(e){if(e===Yo)throw Error(o(174));return e}function Ko(e,t){switch(Ci(qo,t),Ci(Go,e),Ci(Wo,Yo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ni(Wo),Ci(Wo,t)}function Xo(){Ni(Wo),Ni(Go),Ni(qo)}function $o(e){Zo(qo.current);var t=Zo(Wo.current),n=le(t,e.type);t!==n&&(Ci(Go,e),Ci(Wo,n))}function Jo(e){Go.current===e&&(Ni(Wo),Ni(Go))}var ea=ji(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var ia=x.ReactCurrentDispatcher,oa=x.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ua=null,ca=!1,da=!1,fa=0,ha=0;function pa(){throw Error(o(321))}function ga(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ma(e,t,n,r,i,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ia.current=null===e||null===e.memoizedState?Ja:es,e=n(r,i),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(o(301));a+=1,ua=la=null,t.updateQueue=null,ia.current=ts,e=n(r,i)}while(da)}if(ia.current=$a,t=null!==la&&null!==la.next,aa=0,ua=la=sa=null,ca=!1,t)throw Error(o(300));return e}function ya(){var e=0!==fa;return fa=0,e}function va(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ua?sa.memoizedState=ua=e:ua=ua.next=e,ua}function ba(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ua?sa.memoizedState:ua.next;if(null!==t)ua=t,la=e;else{if(null===e)throw Error(o(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ua?sa.memoizedState=ua=e:ua=ua.next=e}return ua}function xa(e,t){return"function"===typeof t?t(e):t}function wa(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=la,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((aa&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,s=r):u=u.next=f,sa.lanes|=d,Ll|=d}c=c.next}while(null!==c&&c!==a);null===u?s=r:u.next=l,sr(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,Ll|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ma(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Sa(){}function ja(e,t){var n=sa,r=ba(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,bs=!0),r=r.queue,La(Aa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ua&&1&ua.memoizedState.tag){if(n.flags|=2048,ka(9,Ca.bind(null,n,r,i,t),void 0,null),null===El)throw Error(o(349));0!==(30&aa)||Na(n,t,i)}return i}function Na(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ca(e,t,n,r){t.value=n,t.getSnapshot=r,Ta(t)&&Ea(e)}function Aa(e,t,n){return n((function(){Ta(t)&&Ea(e)}))}function Ta(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Ea(e){var t=Po(e,1);null!==t&&nu(t,e,1,-1)}function Da(e){var t=va();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:e},t.queue=e,e=e.dispatch=qa.bind(null,sa,e),[t.memoizedState,e]}function ka(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Oa(){return ba().memoizedState}function Ia(e,t,n,r){var i=va();sa.flags|=e,i.memoizedState=ka(1|t,n,void 0,void 0===r?null:r)}function _a(e,t,n,r){var i=ba();r=void 0===r?null:r;var o=void 0;if(null!==la){var a=la.memoizedState;if(o=a.destroy,null!==r&&ga(r,a.deps))return void(i.memoizedState=ka(t,n,o,r))}sa.flags|=e,i.memoizedState=ka(1|t,n,o,r)}function Pa(e,t){return Ia(8390656,8,e,t)}function La(e,t){return _a(2048,8,e,t)}function za(e,t){return _a(4,2,e,t)}function Ra(e,t){return _a(4,4,e,t)}function Fa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ua(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,_a(4,4,Fa.bind(null,t,e),n)}function Ba(){}function Va(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Qa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ha(e,t,n){return 0===(21&aa)?(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n):(sr(n,t)||(n=gt(),sa.lanes|=n,Ll|=n,e.baseState=!0),t)}function Ya(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=oa.transition;oa.transition={};try{e(!1),t()}finally{bt=n,oa.transition=r}}function Wa(){return ba().memoizedState}function Ga(e,t,n){var r=tu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Za(e))Ka(t,n);else if(null!==(n=_o(e,t,n,r))){nu(n,e,r,eu()),Xa(n,t,r)}}function qa(e,t,n){var r=tu(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Za(e))Ka(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(i.next=i,Io(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(u){}null!==(n=_o(e,t,i,r))&&(nu(n,e,r,i=eu()),Xa(n,t,r))}}function Za(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Ka(e,t){da=ca=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xa(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var $a={readContext:ko,useCallback:pa,useContext:pa,useEffect:pa,useImperativeHandle:pa,useInsertionEffect:pa,useLayoutEffect:pa,useMemo:pa,useReducer:pa,useRef:pa,useState:pa,useDebugValue:pa,useDeferredValue:pa,useTransition:pa,useMutableSource:pa,useSyncExternalStore:pa,useId:pa,unstable_isNewReconciler:!1},Ja={readContext:ko,useCallback:function(e,t){return va().memoizedState=[e,void 0===t?null:t],e},useContext:ko,useEffect:Pa,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ia(4194308,4,Fa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ia(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ia(4,2,e,t)},useMemo:function(e,t){var n=va();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=va();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ga.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},va().memoizedState=e},useState:Da,useDebugValue:Ba,useDeferredValue:function(e){return va().memoizedState=e},useTransition:function(){var e=Da(!1),t=e[0];return e=Ya.bind(null,e[1]),va().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,i=va();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===El)throw Error(o(349));0!==(30&aa)||Na(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Pa(Aa.bind(null,r,a,e),[e]),r.flags|=2048,ka(9,Ca.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=va(),t=El.identifierPrefix;if(io){var n=Xi;t=":"+t+"R"+(n=(Ki&~(1<<32-at(Ki)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ha++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:ko,useCallback:Va,useContext:ko,useEffect:La,useImperativeHandle:Ua,useInsertionEffect:za,useLayoutEffect:Ra,useMemo:Qa,useReducer:wa,useRef:Oa,useState:function(){return wa(xa)},useDebugValue:Ba,useDeferredValue:function(e){return Ha(ba(),la.memoizedState,e)},useTransition:function(){return[wa(xa)[0],ba().memoizedState]},useMutableSource:Sa,useSyncExternalStore:ja,useId:Wa,unstable_isNewReconciler:!1},ts={readContext:ko,useCallback:Va,useContext:ko,useEffect:La,useImperativeHandle:Ua,useInsertionEffect:za,useLayoutEffect:Ra,useMemo:Qa,useReducer:Ma,useRef:Oa,useState:function(){return Ma(xa)},useDebugValue:Ba,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Ha(t,la.memoizedState,e)},useTransition:function(){return[Ma(xa)[0],ba().memoizedState]},useMutableSource:Sa,useSyncExternalStore:ja,useId:Wa,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=z({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:z({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var is={isMounted:function(e){return!!(e=e._reactInternals)&&Ve(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),i=tu(e),o=Fo(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Uo(e,o,i))&&(nu(t,e,i,r),Bo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),i=tu(e),o=Fo(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Uo(e,o,i))&&(nu(t,e,i,r),Bo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),i=Fo(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=Uo(e,i,r))&&(nu(t,e,r,n),Bo(t,e,r))}};function os(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(i,o))}function as(e,t,n){var r=!1,i=Ai,o=t.contextType;return"object"===typeof o&&null!==o?o=ko(o):(i=Oi(t)?Di:Ti.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?ki(e,i):Ai),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=is,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ss(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&is.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},zo(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=ko(o):(o=Oi(t)?Di:Ti.current,i.context=ki(e,o)),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(rs(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&is.enqueueReplaceState(i,i.state,null),Qo(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function us(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i,digest:null}}function cs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var fs="function"===typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=Fo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,Yl=r),ds(0,t)},n}function ps(e,t,n){(n=Fo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ds(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!==typeof r&&(null===Wl?Wl=new Set([this]):Wl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Nu.bind(null,e,t,n),t.then(e,e))}function ms(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fo(-1,1)).tag=2,Uo(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var vs=x.ReactCurrentOwner,bs=!1;function xs(e,t,n,r){t.child=null===e?Mo(t,null,n,r):wo(t,e.child,n,r)}function ws(e,t,n,r,i){n=n.render;var o=t.ref;return Do(t,i),r=ma(e,t,n,r,o,i),n=ya(),null===e||bs?(io&&n&&eo(t),t.flags|=1,xs(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Hs(e,t,i))}function Ms(e,t,n,r,i){if(null===e){var o=n.type;return"function"!==typeof o||Ou(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=_u(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Ss(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Hs(e,t,i)}return t.flags|=1,(e=Iu(o,r)).ref=t.ref,e.return=t,t.child=e}function Ss(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,Hs(e,t,i);0!==(131072&e.flags)&&(bs=!0)}}return Cs(e,t,n,r,i)}function js(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ci(Il,Ol),Ol|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ci(Il,Ol),Ol|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Ci(Il,Ol),Ol|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ci(Il,Ol),Ol|=r;return xs(e,t,i,n),t.child}function Ns(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cs(e,t,n,r,i){var o=Oi(n)?Di:Ti.current;return o=ki(t,o),Do(t,i),n=ma(e,t,n,r,o,i),r=ya(),null===e||bs?(io&&r&&eo(t),t.flags|=1,xs(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Hs(e,t,i))}function As(e,t,n,r,i){if(Oi(n)){var o=!0;Li(t)}else o=!1;if(Do(t,i),null===t.stateNode)Qs(e,t),as(t,n,r),ls(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"===typeof u&&null!==u?u=ko(u):u=ki(t,u=Oi(n)?Di:Ti.current);var c=n.getDerivedStateFromProps,d="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==u)&&ss(t,a,r,u),Lo=!1;var f=t.memoizedState;a.state=f,Qo(t,r,a,i),l=t.memoizedState,s!==r||f!==l||Ei.current||Lo?("function"===typeof c&&(rs(t,n,c,r),l=t.memoizedState),(s=Lo||os(t,n,s,r,f,l,u))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ro(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ns(t.type,s),a.props=u,d=t.pendingProps,f=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=ko(l):l=ki(t,l=Oi(n)?Di:Ti.current);var h=n.getDerivedStateFromProps;(c="function"===typeof h||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||f!==l)&&ss(t,a,r,l),Lo=!1,f=t.memoizedState,a.state=f,Qo(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||Ei.current||Lo?("function"===typeof h&&(rs(t,n,h,r),p=t.memoizedState),(u=Lo||os(t,n,u,r,f,p,l)||!1)?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=u):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ts(e,t,n,r,o,i)}function Ts(e,t,n,r,i,o){Ns(e,t);var a=0!==(128&t.flags);if(!r&&!a)return i&&zi(t,n,!1),Hs(e,t,o);r=t.stateNode,vs.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=wo(t,e.child,null,o),t.child=wo(t,null,s,o)):xs(e,t,s,o),t.memoizedState=r.state,i&&zi(t,n,!0),t.child}function Es(e){var t=e.stateNode;t.pendingContext?_i(0,t.pendingContext,t.pendingContext!==t.context):t.context&&_i(0,t.context,!1),Ko(e,t.containerInfo)}function Ds(e,t,n,r,i){return po(),go(i),t.flags|=256,xs(e,t,n,r),t.child}var ks,Os,Is,_s,Ps={dehydrated:null,treeContext:null,retryLane:0};function Ls(e){return{baseLanes:e,cachePool:null,transitions:null}}function zs(e,t,n){var r,i=t.pendingProps,a=ea.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ci(ea,1&a),null===e)return uo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Lu(l,i,0,null),e=Pu(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ls(n),t.memoizedState=Ps,e):Rs(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,Fs(e,t,s,r=cs(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Lu({mode:"visible",children:r.children},i,0,null),(a=Pu(a,i,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&wo(t,e.child,null,s),t.child.memoizedState=Ls(s),t.memoizedState=Ps,a);if(0===(1&t.mode))return Fs(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,Fs(e,t,s,r=cs(a=Error(o(419)),r,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(r=El)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Po(e,i),nu(r,e,i,-1))}return gu(),Fs(e,t,s,r=cs(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Au.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=ui(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(Gi[qi++]=Ki,Gi[qi++]=Xi,Gi[qi++]=Zi,Ki=e.id,Xi=e.overflow,Zi=t),t=Rs(t,r.children),t.flags|=4096,t)}(e,t,l,i,r,a,n);if(s){s=i.fallback,l=t.mode,r=(a=e.child).sibling;var u={mode:"hidden",children:i.children};return 0===(1&l)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null):(i=Iu(a,u)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Iu(r,s):(s=Pu(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ls(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Ps,i}return e=(s=e.child).sibling,i=Iu(s,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Rs(e,t){return(t=Lu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&go(r),wo(t,e.child,null,n),(e=Rs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Us(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Eo(e.return,t,n)}function Bs(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Vs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(xs(e,t,r.children,n),0!==(2&(r=ea.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Us(e,n,t);else if(19===e.tag)Us(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ci(ea,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Bs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ta(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Bs(t,!0,n,null,o);break;case"together":Bs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Qs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ll|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Iu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Iu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ys(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ws(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Gs(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ws(t),null;case 1:case 17:return Oi(t.type)&&Ii(),Ws(t),null;case 3:return r=t.stateNode,Xo(),Ni(Ei),Ni(Ti),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(au(oo),oo=null))),Os(e,t),Ws(t),null;case 5:Jo(t);var i=Zo(qo.current);if(n=t.type,null!==e&&null!=t.stateNode)Is(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Ws(t),null}if(e=Zo(Wo.current),fo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[fi]=t,r[hi]=a,e=0!==(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(i=0;i<Pr.length;i++)Fr(Pr[i],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":K(r,a),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Fr("invalid",r);break;case"textarea":ie(r,a),Fr("invalid",r)}for(var l in ve(n,a),i=null,a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"===typeof u?r.textContent!==u&&(!0!==a.suppressHydrationWarning&&$r(r.textContent,u,e),i=["children",u]):"number"===typeof u&&r.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&$r(r.textContent,u,e),i=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Fr("scroll",r)}switch(n){case"input":W(r),J(r,a,!0);break;case"textarea":W(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Jr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[fi]=t,e[hi]=r,ks(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),i=r;break;case"iframe":case"object":case"embed":Fr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Pr.length;i++)Fr(Pr[i],e);i=r;break;case"source":Fr("error",e),i=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),i=r;break;case"details":Fr("toggle",e),i=r;break;case"input":K(e,r),i=Z(e,r),Fr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=z({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Fr("invalid",e)}for(a in ve(n,i),u=i)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?me(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===a?"string"===typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"===typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Fr("scroll",e):null!=c&&b(e,a,c,l))}switch(n){case"input":W(e),J(e,r,!1);break;case"textarea":W(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ws(t),null;case 6:if(e&&null!=t.stateNode)_s(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));if(n=Zo(qo.current),Zo(Wo.current),fo(t)){if(r=t.stateNode,n=t.memoizedProps,r[fi]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:$r(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&$r(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fi]=t,t.stateNode=r}return Ws(t),null;case 13:if(Ni(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&0!==(1&t.mode)&&0===(128&t.flags))ho(),po(),t.flags|=98560,a=!1;else if(a=fo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[fi]=t}else po(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ws(t),a=!1}else null!==oo&&(au(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ea.current)?0===_l&&(_l=3):gu())),null!==t.updateQueue&&(t.flags|=4),Ws(t),null);case 4:return Xo(),Os(e,t),null===e&&Vr(t.stateNode.containerInfo),Ws(t),null;case 10:return To(t.type._context),Ws(t),null;case 19:if(Ni(ea),null===(a=t.memoizedState))return Ws(t),null;if(r=0!==(128&t.flags),null===(l=a.rendering))if(r)Ys(a,!1);else{if(0!==_l||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Ys(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ci(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Xe()>Vl&&(t.flags|=128,r=!0,Ys(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ys(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return Ws(t),null}else 2*Xe()-a.renderingStartTime>Vl&&1073741824!==n&&(t.flags|=128,r=!0,Ys(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,n=ea.current,Ci(ea,r?1&n|2:1&n),t):(Ws(t),null);case 22:case 23:return du(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Ol)&&(Ws(t),6&t.subtreeFlags&&(t.flags|=8192)):Ws(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function qs(e,t){switch(to(t),t.tag){case 1:return Oi(t.type)&&Ii(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Xo(),Ni(Ei),Ni(Ti),ra(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Jo(t),null;case 13:if(Ni(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));po()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ni(ea),null;case 4:return Xo(),null;case 10:return To(t.type._context),null;case 22:case 23:return du(),null;default:return null}}ks=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Os=function(){},Is=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Zo(Wo.current);var o,a=null;switch(n){case"input":i=Z(e,i),r=Z(e,r),a=[];break;case"select":i=z({},i,{value:void 0}),r=z({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Jr)}for(c in ve(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!==typeof u&&"number"!==typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Fr("scroll",e),a||l===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},_s=function(e,t,n,r){n!==r&&(t.flags|=4)};var Zs=!1,Ks=!1,Xs="function"===typeof WeakSet?WeakSet:Set,$s=null;function Js(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){ju(e,t,r)}else n.current=null}function el(e,t,n){try{n()}catch(r){ju(e,t,r)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&el(t,n,o)}i=i.next}while(i!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function il(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function ol(e){var t=e.alternate;null!==t&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fi],delete t[hi],delete t[gi],delete t[mi],delete t[yi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var cl=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(s){}switch(n.tag){case 5:Ks||Js(n,t);case 6:var r=cl,i=dl;cl=null,fl(e,t,n),dl=i,null!==(cl=r)&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),Vt(e)):li(cl,n.stateNode));break;case 4:r=cl,i=dl,cl=n.stateNode.containerInfo,dl=!0,fl(e,t,n),cl=r,dl=i;break;case 0:case 11:case 14:case 15:if(!Ks&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&el(n,t,a),i=i.next}while(i!==r)}fl(e,t,n);break;case 1:if(!Ks&&(Js(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ju(n,t,s)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Ks=(r=Ks)||null!==n.memoizedState,fl(e,t,n),Ks=r):fl(e,t,n);break;default:fl(e,t,n)}}function pl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xs),t.forEach((function(t){var r=Tu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,dl=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===cl)throw Error(o(160));hl(a,s,i),cl=null,dl=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(c){ju(i,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ml(t,e),t=t.sibling}function ml(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),yl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(m){ju(e,e.return,m)}try{nl(5,e,e.return)}catch(m){ju(e,e.return,m)}}break;case 1:gl(t,e),yl(e),512&r&&null!==n&&Js(n,n.return);break;case 5:if(gl(t,e),yl(e),512&r&&null!==n&&Js(n,n.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(m){ju(e,e.return,m)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&X(i,a),be(l,s);var c=be(l,a);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];"style"===d?me(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):b(i,d,f,c)}switch(l){case"input":$(i,a);break;case"textarea":oe(i,a);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?ne(i,!!a.multiple,p,!1):h!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[hi]=a}catch(m){ju(e,e.return,m)}}break;case 6:if(gl(t,e),yl(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(m){ju(e,e.return,m)}}break;case 3:if(gl(t,e),yl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Vt(t.containerInfo)}catch(m){ju(e,e.return,m)}break;case 4:default:gl(t,e),yl(e);break;case 13:gl(t,e),yl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Bl=Xe())),4&r&&pl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ks=(c=Ks)||d,gl(t,e),Ks=c):gl(t,e),yl(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&0!==(1&e.mode))for($s=e,d=e.child;null!==d;){for(f=$s=d;null!==$s;){switch(p=(h=$s).child,h.tag){case 0:case 11:case 14:case 15:nl(4,h,h.return);break;case 1:Js(h,h.return);var g=h.stateNode;if("function"===typeof g.componentWillUnmount){r=h,n=h.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(m){ju(r,n,m)}}break;case 5:Js(h,h.return);break;case 22:if(null!==h.memoizedState){wl(f);continue}}null!==p?(p.return=h,$s=p):wl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,c?"function"===typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=void 0!==(u=f.memoizedProps.style)&&null!==u&&u.hasOwnProperty("display")?u.display:null,l.style.display=ge("display",s))}catch(m){ju(e,e.return,m)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(m){ju(e,e.return,m)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:gl(t,e),yl(e),4&r&&pl(e);case 21:}}function yl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(fe(i,""),r.flags&=-33),ul(e,sl(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(o(161))}}catch(s){ju(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vl(e,t,n){$s=e,bl(e,t,n)}function bl(e,t,n){for(var r=0!==(1&e.mode);null!==$s;){var i=$s,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Zs;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Ks;s=Zs;var u=Ks;if(Zs=a,(Ks=l)&&!u)for($s=i;null!==$s;)l=(a=$s).child,22===a.tag&&null!==a.memoizedState?Ml(i):null!==l?(l.return=a,$s=l):Ml(i);for(;null!==o;)$s=o,bl(o,t,n),o=o.sibling;$s=i,Zs=s,Ks=u}xl(e)}else 0!==(8772&i.subtreeFlags)&&null!==o?(o.return=i,$s=o):xl(e)}}function xl(e){for(;null!==$s;){var t=$s;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ks||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ks)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Ho(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ho(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Vt(f)}}}break;default:throw Error(o(163))}Ks||512&t.flags&&il(t)}catch(h){ju(t,t.return,h)}}if(t===e){$s=null;break}if(null!==(n=t.sibling)){n.return=t.return,$s=n;break}$s=t.return}}function wl(e){for(;null!==$s;){var t=$s;if(t===e){$s=null;break}var n=t.sibling;if(null!==n){n.return=t.return,$s=n;break}$s=t.return}}function Ml(e){for(;null!==$s;){var t=$s;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(l){ju(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(l){ju(t,i,l)}}var o=t.return;try{il(t)}catch(l){ju(t,o,l)}break;case 5:var a=t.return;try{il(t)}catch(l){ju(t,a,l)}}}catch(l){ju(t,t.return,l)}if(t===e){$s=null;break}var s=t.sibling;if(null!==s){s.return=t.return,$s=s;break}$s=t.return}}var Sl,jl=Math.ceil,Nl=x.ReactCurrentDispatcher,Cl=x.ReactCurrentOwner,Al=x.ReactCurrentBatchConfig,Tl=0,El=null,Dl=null,kl=0,Ol=0,Il=ji(0),_l=0,Pl=null,Ll=0,zl=0,Rl=0,Fl=null,Ul=null,Bl=0,Vl=1/0,Ql=null,Hl=!1,Yl=null,Wl=null,Gl=!1,ql=null,Zl=0,Kl=0,Xl=null,$l=-1,Jl=0;function eu(){return 0!==(6&Tl)?Xe():-1!==$l?$l:$l=Xe()}function tu(e){return 0===(1&e.mode)?1:0!==(2&Tl)&&0!==kl?kl&-kl:null!==mo.transition?(0===Jl&&(Jl=gt()),Jl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Kt(e.type)}function nu(e,t,n,r){if(50<Kl)throw Kl=0,Xl=null,Error(o(185));yt(e,n,r),0!==(2&Tl)&&e===El||(e===El&&(0===(2&Tl)&&(zl|=n),4===_l&&su(e,kl)),ru(e,r),1===n&&0===Tl&&0===(1&t.mode)&&(Vl=Xe()+500,Fi&&Vi()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=ht(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=ft(e,e===El?kl:0);if(0===r)null!==n&&qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&qe(n),1===t)0===e.tag?function(e){Fi=!0,Bi(e)}(lu.bind(null,e)):Bi(lu.bind(null,e)),ai((function(){0===(6&Tl)&&Vi()})),n=null;else{switch(xt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Eu(n,iu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function iu(e,t){if($l=-1,Jl=0,0!==(6&Tl))throw Error(o(327));var n=e.callbackNode;if(Mu()&&e.callbackNode!==n)return null;var r=ft(e,e===El?kl:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=mu(e,r);else{t=r;var i=Tl;Tl|=2;var a=pu();for(El===e&&kl===t||(Ql=null,Vl=Xe()+500,fu(e,t));;)try{vu();break}catch(l){hu(e,l)}Ao(),Nl.current=a,Tl=i,null!==Dl?t=0:(El=null,kl=0,t=_l)}if(0!==t){if(2===t&&(0!==(i=pt(e))&&(r=i,t=ou(e,i))),1===t)throw n=Pl,fu(e,0),su(e,r),ru(e,Xe()),n;if(6===t)su(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=mu(e,r))&&(0!==(a=pt(e))&&(r=a,t=ou(e,a))),1===t))throw n=Pl,fu(e,0),su(e,r),ru(e,Xe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:wu(e,Ul,Ql);break;case 3:if(su(e,r),(130023424&r)===r&&10<(t=Bl+500-Xe())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&r)!==r){eu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(wu.bind(null,e,Ul,Ql),t);break}wu(e,Ul,Ql);break;case 4:if(su(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*jl(r/1960))-r)){e.timeoutHandle=ri(wu.bind(null,e,Ul,Ql),r);break}wu(e,Ul,Ql);break;default:throw Error(o(329))}}}return ru(e,Xe()),e.callbackNode===n?iu.bind(null,e):null}function ou(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(fu(e,t).flags|=256),2!==(e=mu(e,t))&&(t=Ul,Ul=n,null!==t&&au(t)),e}function au(e){null===Ul?Ul=e:Ul.push.apply(Ul,e)}function su(e,t){for(t&=~Rl,t&=~zl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lu(e){if(0!==(6&Tl))throw Error(o(327));Mu();var t=ft(e,0);if(0===(1&t))return ru(e,Xe()),null;var n=mu(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=ou(e,r))}if(1===n)throw n=Pl,fu(e,0),su(e,t),ru(e,Xe()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wu(e,Ul,Ql),ru(e,Xe()),null}function uu(e,t){var n=Tl;Tl|=1;try{return e(t)}finally{0===(Tl=n)&&(Vl=Xe()+500,Fi&&Vi())}}function cu(e){null!==ql&&0===ql.tag&&0===(6&Tl)&&Mu();var t=Tl;Tl|=1;var n=Al.transition,r=bt;try{if(Al.transition=null,bt=1,e)return e()}finally{bt=r,Al.transition=n,0===(6&(Tl=t))&&Vi()}}function du(){Ol=Il.current,Ni(Il)}function fu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Dl)for(n=Dl.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Ii();break;case 3:Xo(),Ni(Ei),Ni(Ti),ra();break;case 5:Jo(r);break;case 4:Xo();break;case 13:case 19:Ni(ea);break;case 10:To(r.type._context);break;case 22:case 23:du()}n=n.return}if(El=e,Dl=e=Iu(e.current,null),kl=Ol=t,_l=0,Pl=null,Rl=zl=Ll=0,Ul=Fl=null,null!==Oo){for(t=0;t<Oo.length;t++)if(null!==(r=(n=Oo[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Oo=null}return e}function hu(e,t){for(;;){var n=Dl;try{if(Ao(),ia.current=$a,ca){for(var r=sa.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ca=!1}if(aa=0,ua=la=sa=null,da=!1,fa=0,Cl.current=null,null===n||null===n.return){_l=1,Pl=t,Dl=null;break}e:{var a=e,s=n.return,l=n,u=t;if(t=kl,l.flags|=32768,null!==u&&"object"===typeof u&&"function"===typeof u.then){var c=u,d=l,f=d.tag;if(0===(1&d.mode)&&(0===f||11===f||15===f)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=ms(s);if(null!==p){p.flags&=-257,ys(p,s,l,0,t),1&p.mode&&gs(a,c,t),u=c;var g=(t=p).updateQueue;if(null===g){var m=new Set;m.add(u),t.updateQueue=m}else g.add(u);break e}if(0===(1&t)){gs(a,c,t),gu();break e}u=Error(o(426))}else if(io&&1&l.mode){var y=ms(s);if(null!==y){0===(65536&y.flags)&&(y.flags|=256),ys(y,s,l,0,t),go(us(u,l));break e}}a=u=us(u,l),4!==_l&&(_l=2),null===Fl?Fl=[a]:Fl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Vo(a,hs(0,u,t));break e;case 1:l=u;var v=a.type,b=a.stateNode;if(0===(128&a.flags)&&("function"===typeof v.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Wl||!Wl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Vo(a,ps(a,l,t));break e}}a=a.return}while(null!==a)}xu(n)}catch(x){t=x,Dl===n&&null!==n&&(Dl=n=n.return);continue}break}}function pu(){var e=Nl.current;return Nl.current=$a,null===e?$a:e}function gu(){0!==_l&&3!==_l&&2!==_l||(_l=4),null===El||0===(268435455&Ll)&&0===(268435455&zl)||su(El,kl)}function mu(e,t){var n=Tl;Tl|=2;var r=pu();for(El===e&&kl===t||(Ql=null,fu(e,t));;)try{yu();break}catch(i){hu(e,i)}if(Ao(),Tl=n,Nl.current=r,null!==Dl)throw Error(o(261));return El=null,kl=0,_l}function yu(){for(;null!==Dl;)bu(Dl)}function vu(){for(;null!==Dl&&!Ze();)bu(Dl)}function bu(e){var t=Sl(e.alternate,e,Ol);e.memoizedProps=e.pendingProps,null===t?xu(e):Dl=t,Cl.current=null}function xu(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Gs(n,t,Ol)))return void(Dl=n)}else{if(null!==(n=qs(n,t)))return n.flags&=32767,void(Dl=n);if(null===e)return _l=6,void(Dl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Dl=t);Dl=t=e}while(null!==t);0===_l&&(_l=5)}function wu(e,t,n){var r=bt,i=Al.transition;try{Al.transition=null,bt=1,function(e,t,n,r){do{Mu()}while(null!==ql);if(0!==(6&Tl))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===El&&(Dl=El=null,kl=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Gl||(Gl=!0,Eu(tt,(function(){return Mu(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Al.transition,Al.transition=null;var s=bt;bt=1;var l=Tl;Tl|=4,Cl.current=null,function(e,t){if(ei=Ht,hr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(w){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||0!==i&&3!==f.nodeType||(l=s+i),f!==a||0!==r&&3!==f.nodeType||(u=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(p=f.firstChild);)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++c===i&&(l=s),h===a&&++d===r&&(u=s),null!==(p=f.nextSibling))break;h=(f=h).parentNode}f=p}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Ht=!1,$s=t;null!==$s;)if(e=(t=$s).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,$s=e;else for(;null!==$s;){t=$s;try{var g=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var m=g.memoizedProps,y=g.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:ns(t.type,m),y);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(o(163))}}catch(w){ju(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,$s=e;break}$s=t.return}g=tl,tl=!1}(e,n),ml(n,e),pr(ti),Ht=!!ei,ti=ei=null,e.current=n,vl(n,e,i),Ke(),Tl=l,bt=s,Al.transition=a}else e.current=n;if(Gl&&(Gl=!1,ql=e,Zl=i),a=e.pendingLanes,0===a&&(Wl=null),function(e){if(ot&&"function"===typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),ru(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Hl)throw Hl=!1,e=Yl,Yl=null,e;0!==(1&Zl)&&0!==e.tag&&Mu(),a=e.pendingLanes,0!==(1&a)?e===Xl?Kl++:(Kl=0,Xl=e):Kl=0,Vi()}(e,t,n,r)}finally{Al.transition=i,bt=r}return null}function Mu(){if(null!==ql){var e=xt(Zl),t=Al.transition,n=bt;try{if(Al.transition=null,bt=16>e?16:e,null===ql)var r=!1;else{if(e=ql,ql=null,Zl=0,0!==(6&Tl))throw Error(o(331));var i=Tl;for(Tl|=4,$s=e.current;null!==$s;){var a=$s,s=a.child;if(0!==(16&$s.flags)){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for($s=c;null!==$s;){var d=$s;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var f=d.child;if(null!==f)f.return=d,$s=f;else for(;null!==$s;){var h=(d=$s).sibling,p=d.return;if(ol(d),d===c){$s=null;break}if(null!==h){h.return=p,$s=h;break}$s=p}}}var g=a.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var y=m.sibling;m.sibling=null,m=y}while(null!==m)}}$s=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,$s=s;else e:for(;null!==$s;){if(0!==(2048&(a=$s).flags))switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,$s=v;break e}$s=a.return}}var b=e.current;for($s=b;null!==$s;){var x=(s=$s).child;if(0!==(2064&s.subtreeFlags)&&null!==x)x.return=s,$s=x;else e:for(s=b;null!==$s;){if(0!==(2048&(l=$s).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(M){ju(l,l.return,M)}if(l===s){$s=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,$s=w;break e}$s=l.return}}if(Tl=i,Vi(),ot&&"function"===typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(M){}r=!0}return r}finally{bt=n,Al.transition=t}}return!1}function Su(e,t,n){e=Uo(e,t=hs(0,t=us(n,t),1),1),t=eu(),null!==e&&(yt(e,1,t),ru(e,t))}function ju(e,t,n){if(3===e.tag)Su(e,e,n);else for(;null!==t;){if(3===t.tag){Su(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Wl||!Wl.has(r))){t=Uo(t,e=ps(t,e=us(n,e),1),1),e=eu(),null!==t&&(yt(t,1,e),ru(t,e));break}}t=t.return}}function Nu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,El===e&&(kl&n)===n&&(4===_l||3===_l&&(130023424&kl)===kl&&500>Xe()-Bl?fu(e,0):Rl|=n),ru(e,t)}function Cu(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var n=eu();null!==(e=Po(e,t))&&(yt(e,t,n),ru(e,n))}function Au(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Cu(e,n)}function Tu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Cu(e,n)}function Eu(e,t){return Ge(e,t)}function Du(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ku(e,t,n,r){return new Du(e,t,n,r)}function Ou(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Iu(e,t){var n=e.alternate;return null===n?((n=ku(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function _u(e,t,n,r,i,a){var s=2;if(r=e,"function"===typeof e)Ou(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case S:return Pu(n.children,i,a,t);case j:s=8,i|=8;break;case N:return(e=ku(12,n,t,2|i)).elementType=N,e.lanes=a,e;case E:return(e=ku(13,n,t,i)).elementType=E,e.lanes=a,e;case D:return(e=ku(19,n,t,i)).elementType=D,e.lanes=a,e;case I:return Lu(n,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case C:s=10;break e;case A:s=9;break e;case T:s=11;break e;case k:s=14;break e;case O:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=ku(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Pu(e,t,n,r){return(e=ku(7,e,r,t)).lanes=n,e}function Lu(e,t,n,r){return(e=ku(22,e,r,t)).elementType=I,e.lanes=n,e.stateNode={isHidden:!1},e}function zu(e,t,n){return(e=ku(6,e,null,t)).lanes=n,e}function Ru(e,t,n){return(t=ku(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Uu(e,t,n,r,i,o,a,s,l){return e=new Fu(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=ku(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zo(o),e}function Bu(e){if(!e)return Ai;e:{if(Ve(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Oi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Oi(n))return Pi(e,n,t)}return t}function Vu(e,t,n,r,i,o,a,s,l){return(e=Uu(n,r,!0,e,0,o,0,s,l)).context=Bu(null),n=e.current,(o=Fo(r=eu(),i=tu(n))).callback=void 0!==t&&null!==t?t:null,Uo(n,o,i),e.current.lanes=i,yt(e,i,r),ru(e,r),e}function Qu(e,t,n,r){var i=t.current,o=eu(),a=tu(i);return n=Bu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fo(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Uo(i,t,a))&&(nu(e,i,a,o),Bo(e,i,a)),a}function Hu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Yu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Wu(e,t){Yu(e,t),(e=e.alternate)&&Yu(e,t)}Sl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ei.current)bs=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Es(t),po();break;case 5:$o(t);break;case 1:Oi(t.type)&&Li(t);break;case 4:Ko(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ci(So,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ci(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?zs(e,t,n):(Ci(ea,1&ea.current),null!==(e=Hs(e,t,n))?e.sibling:null);Ci(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Vs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ci(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,js(e,t,n)}return Hs(e,t,n)}(e,t,n);bs=0!==(131072&e.flags)}else bs=!1,io&&0!==(1048576&t.flags)&&Ji(t,Wi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Qs(e,t),e=t.pendingProps;var i=ki(t,Ti.current);Do(t,n),i=ma(null,t,r,e,i,n);var a=ya();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Oi(r)?(a=!0,Li(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,zo(t),i.updater=is,t.stateNode=i,i._reactInternals=t,ls(t,r,e,n),t=Ts(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),xs(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Qs(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return Ou(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===T)return 11;if(e===k)return 14}return 2}(r),e=ns(r,e),i){case 0:t=Cs(null,t,r,e,n);break e;case 1:t=As(null,t,r,e,n);break e;case 11:t=ws(null,t,r,e,n);break e;case 14:t=Ms(null,t,r,ns(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Cs(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 1:return r=t.type,i=t.pendingProps,As(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 3:e:{if(Es(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,Ro(e,t),Qo(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ds(e,t,r,n,i=us(Error(o(423)),t));break e}if(r!==i){t=Ds(e,t,r,n,i=us(Error(o(424)),t));break e}for(ro=ui(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=Mo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(po(),r===i){t=Hs(e,t,n);break e}xs(e,t,r,n)}t=t.child}return t;case 5:return $o(t),null===e&&uo(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(t.flags|=32),Ns(e,t),xs(e,t,s,n),t.child;case 6:return null===e&&uo(t),null;case 13:return zs(e,t,n);case 4:return Ko(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wo(t,null,r,n):xs(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,ws(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 7:return xs(e,t,t.pendingProps,n),t.child;case 8:case 12:return xs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Ci(So,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Ei.current){t=Hs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===a.tag){(u=Fo(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),Eo(a.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Eo(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}xs(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Do(t,n),r=r(i=ko(i)),t.flags|=1,xs(e,t,r,n),t.child;case 14:return i=ns(r=t.type,t.pendingProps),Ms(e,t,r,i=ns(r.type,i),n);case 15:return Ss(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ns(r,i),Qs(e,t),t.tag=1,Oi(r)?(e=!0,Li(t)):e=!1,Do(t,n),as(t,r,i),ls(t,r,i,n),Ts(null,t,r,!0,e,n);case 19:return Vs(e,t,n);case 22:return js(e,t,n)}throw Error(o(156,t.tag))};var Gu="function"===typeof reportError?reportError:function(e){console.error(e)};function qu(e){this._internalRoot=e}function Zu(e){this._internalRoot=e}function Ku(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function $u(){}function Ju(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"===typeof i){var s=i;i=function(){var e=Hu(a);s.call(e)}}Qu(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"===typeof r){var o=r;r=function(){var e=Hu(a);o.call(e)}}var a=Vu(t,r,e,0,null,!1,0,"",$u);return e._reactRootContainer=a,e[pi]=a.current,Vr(8===e.nodeType?e.parentNode:e),cu(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof r){var s=r;r=function(){var e=Hu(l);s.call(e)}}var l=Uu(e,0,!1,null,0,!1,0,"",$u);return e._reactRootContainer=l,e[pi]=l.current,Vr(8===e.nodeType?e.parentNode:e),cu((function(){Qu(t,l,n,r)})),l}(n,t,e,i,r);return Hu(a)}Zu.prototype.render=qu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Qu(e,t,null,null)},Zu.prototype.unmount=qu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu((function(){Qu(null,e,null,null)})),t[pi]=null}},Zu.prototype.unstable_scheduleHydration=function(e){if(e){var t=jt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<It.length&&0!==t&&t<It[n].priority;n++);It.splice(n,0,e),0===n&&zt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(vt(t,1|n),ru(t,Xe()),0===(6&Tl)&&(Vl=Xe()+500,Vi()))}break;case 13:cu((function(){var t=Po(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}})),Wu(e,1)}},Mt=function(e){if(13===e.tag){var t=Po(e,134217728);if(null!==t)nu(t,e,134217728,eu());Wu(e,134217728)}},St=function(e){if(13===e.tag){var t=tu(e),n=Po(e,t);if(null!==n)nu(n,e,t,eu());Wu(e,t)}},jt=function(){return bt},Nt=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Me=function(e,t,n){switch(t){case"input":if($(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=wi(r);if(!i)throw Error(o(90));G(r),$(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=uu,Ee=cu;var ec={usingClientEntryPoint:!1,Events:[bi,xi,wi,Ce,Ae,uu]},tc={findFiberByHostInstance:vi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ye(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{it=rc.inject(nc),ot=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ku(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:M,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Ku(e))throw Error(o(299));var n=!1,r="",i=Gu;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Uu(e,1,!1,null,0,n,0,r,i),e[pi]=t.current,Vr(8===e.nodeType?e.parentNode:e),new qu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=Ye(t))?null:e.stateNode},t.flushSync=function(e){return cu(e)},t.hydrate=function(e,t,n){if(!Xu(t))throw Error(o(200));return Ju(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Ku(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=Gu;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Vu(t,null,e,1,null!=n?n:null,i,0,a,s),e[pi]=t.current,Vr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Zu(t)},t.render=function(e,t,n){if(!Xu(t))throw Error(o(200));return Ju(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xu(e))throw Error(o(40));return!!e._reactRootContainer&&(cu((function(){Ju(null,null,e,!1,(function(){e._reactRootContainer=null,e[pi]=null}))})),!0)},t.unstable_batchedUpdates=uu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xu(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Ju(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},3620:(e,t,n)=>{"use strict";var r=n(715);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},715:(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(2157)},7057:e=>{var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,u,c;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(!o(e[l],a[l]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;for(c=e.entries();!(l=c.next()).done;)if(!o(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof a.toString)return e.toString()===a.toString();if((s=(u=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(a,u[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!e.$$typeof)&&!o(e[u[l]],a[u[l]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},2085:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case m:case g:case l:return e;default:return t}}case i:return t}}}function M(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=m,t.Memo=g,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return M(e)||w(e)===c},t.isConcurrentMode=M,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===d||e===s||e===a||e===h||e===p||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===v||e.$$typeof===b||e.$$typeof===x||e.$$typeof===y)},t.typeOf=w},4665:(e,t,n)=>{"use strict";e.exports=n(2085)},9216:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Arc:()=>Fe,Arrow:()=>Qe,Circle:()=>Ee,Ellipse:()=>De,FastLayer:()=>Ne,Group:()=>Ce,Image:()=>_e,KonvaRenderer:()=>We,Label:()=>Ae,Layer:()=>je,Line:()=>Oe,Path:()=>Be,Rect:()=>Te,RegularPolygon:()=>Ve,Ring:()=>Re,Shape:()=>He,Sprite:()=>Ie,Stage:()=>Ge,Star:()=>ze,Tag:()=>Ue,Text:()=>Pe,TextPath:()=>Le,Transformer:()=>Ye,Wedge:()=>ke,useStrictMode:()=>qe});var r={};n.r(r),n.d(r,{appendChild:()=>H,appendChildToContainer:()=>Y,appendInitialChild:()=>j,cancelTimeout:()=>R,clearContainer:()=>re,commitMount:()=>X,commitTextUpdate:()=>K,commitUpdate:()=>$,createInstance:()=>N,createTextInstance:()=>C,detachDeletedInstance:()=>ie,finalizeInitialChildren:()=>A,getChildHostContext:()=>L,getCurrentEventPriority:()=>oe,getPublicInstance:()=>T,getRootHostContext:()=>P,hideInstance:()=>J,hideTextInstance:()=>ee,idlePriority:()=>w.unstable_IdlePriority,insertBefore:()=>W,insertInContainerBefore:()=>G,isPrimaryRenderer:()=>B,noTimeout:()=>F,now:()=>w.unstable_now,prepareForCommit:()=>E,preparePortalMount:()=>D,prepareUpdate:()=>k,removeChild:()=>q,removeChildFromContainer:()=>Z,resetAfterCommit:()=>O,resetTextContent:()=>I,run:()=>w.unstable_runWithPriority,scheduleTimeout:()=>z,shouldDeprioritizeSubtree:()=>_,shouldSetTextContent:()=>U,supportsMutation:()=>Q,unhideInstance:()=>te,unhideTextInstance:()=>ne,warnsIfNotActing:()=>V});n(2792);var i=n(810),o=n(3230),a=n.n(o),s=n(935),l=n.n(s),u=n(1738),c=n(2225);const d={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let f=!1,h=!1;const p=".react-konva-event";let g=!1;const m="ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled.\nPosition of a node will be changed during drag&drop, so you should update state of the react app as well.\nConsider to add onDragMove or onDragEnd events.\nFor more info see: https://github.com/konvajs/react-konva/issues/256\n",y='ReactKonva: You are using "zIndex" attribute for a Konva node.\nreact-konva may get confused with ordering. Just define correct order of elements in your render function of a component.\nFor more info see: https://github.com/konvajs/react-konva/issues/194\n',v={};function b(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v;if(!f&&"zIndex"in t&&(console.warn(y),f=!0),!h&&t.draggable){var r=void 0!==t.x||void 0!==t.y,i=t.onDragEnd||t.onDragMove;r&&!i&&(console.warn(m),h=!0)}for(var o in n)if(!d[o]){var a="on"===o.slice(0,2),s=n[o]!==t[o];if(a&&s)"content"===(M=o.substr(2).toLowerCase()).substr(0,7)&&(M="content"+M.substr(7,1).toUpperCase()+M.substr(8)),e.off(M,n[o]);!t.hasOwnProperty(o)&&e.setAttr(o,void 0)}var l=g||t._useStrictMode,u={},c=!1;const b={};for(var o in t)if(!d[o]){a="on"===o.slice(0,2);var w=n[o]!==t[o];if(a&&w)"content"===(M=o.substr(2).toLowerCase()).substr(0,7)&&(M="content"+M.substr(7,1).toUpperCase()+M.substr(8)),t[o]&&(b[M]=t[o]);!a&&(t[o]!==n[o]||l&&t[o]!==e.getAttr(o))&&(c=!0,u[o]=t[o])}for(var M in c&&(e.setAttrs(u),x(e)),b)e.on(M+p,b[M])}function x(e){if(!c.Konva.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}var w=n(320);const M={},S={};function j(e,t){"string"!==typeof t?(e.add(t),x(e)):console.error("Do not use plain text as child of Konva.Node. You are using text: ".concat(t))}function N(e,t,n){let r=a()[e];r||(console.error("Konva has no node with the type ".concat(e,'. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/').concat(e,'" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html')),r=a().Group);const i={},o={};for(var s in t){"on"===s.slice(0,2)?o[s]=t[s]:i[s]=t[s]}const l=new r(i);return b(l,o),l}function C(e,t,n){console.error('Text components are not supported for now in ReactKonva. Your text is: "'.concat(e,'"'))}function A(e,t,n){return!1}function T(e){return e}function E(){return null}function D(){return null}function k(e,t,n,r){return S}function O(){}function I(e){}function _(e,t){return!1}function P(){return M}function L(){return M}a().Node.prototype._applyProps=b;const z=setTimeout,R=clearTimeout,F=-1;function U(e,t){return!1}const B=!1,V=!0,Q=!0;function H(e,t){t.parent===e?t.moveToTop():e.add(t),x(e)}function Y(e,t){t.parent===e?t.moveToTop():e.add(t),x(e)}function W(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),x(e)}function G(e,t,n){W(e,t,n)}function q(e,t){t.destroy(),t.off(p),x(e)}function Z(e,t){t.destroy(),t.off(p),x(e)}function K(e,t,n){console.error('Text components are not yet supported in ReactKonva. You text is: "'.concat(n,'"'))}function X(e,t,n){}function $(e,t,n,r,i){b(e,i,r)}function J(e){e.hide(),x(e)}function ee(e){}function te(e,t){(null==t.visible||t.visible)&&e.show()}function ne(e,t){}function re(e){}function ie(){}const oe=()=>u.DefaultEventPriority;var ae,se,le=Object.defineProperty,ue=Object.defineProperties,ce=Object.getOwnPropertyDescriptors,de=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,pe=(e,t,n)=>t in e?le(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ge=(e,t)=>{for(var n in t||(t={}))fe.call(t,n)&&pe(e,n,t[n]);if(de)for(var n of de(t))he.call(t,n)&&pe(e,n,t[n]);return e};"undefined"===typeof window||!(null==(ae=window.document)?void 0:ae.createElement)&&"ReactNative"!==(null==(se=window.navigator)?void 0:se.product)?i.useEffect:i.useLayoutEffect;function me(e,t,n){if(!e)return;if(!0===n(e))return e;let r=t?e.return:e.child;for(;r;){const e=me(r,t,n);if(e)return e;r=t?null:r.sibling}}function ye(e){try{return Object.defineProperties(e,{_currentRenderer:{get:()=>null,set(){}},_currentRenderer2:{get:()=>null,set(){}}})}catch(t){return e}}const ve=console.error;console.error=function(){const e=[...arguments].join("");if(!(null==e?void 0:e.startsWith("Warning:"))||!e.includes("useContext"))return ve.apply(this,arguments);console.error=ve};const be=ye(i.createContext(null));class xe extends i.Component{render(){return i.createElement(be.Provider,{value:this._reactInternals},this.props.children)}}function we(){const e=i.useContext(be);if(null===e)throw new Error("its-fine: useFiber must be called within a <FiberProvider />!");const t=i.useId();return i.useMemo((()=>{for(const n of[e,null==e?void 0:e.alternate]){if(!n)continue;const e=me(n,!1,(e=>{let n=e.memoizedState;for(;n;){if(n.memoizedState===t)return!0;n=n.next}}));if(e)return e}}),[e,t])}function Me(){const e=function(){const e=we(),[t]=i.useState((()=>new Map));t.clear();let n=e;for(;n;){if(n.type&&"object"===typeof n.type){const e=void 0===n.type._context&&n.type.Provider===n.type?n.type:n.type._context;e&&e!==be&&!t.has(e)&&t.set(e,i.useContext(ye(e)))}n=n.return}return t}();return i.useMemo((()=>Array.from(e.keys()).reduce(((t,n)=>r=>{return i.createElement(t,null,i.createElement(n.Provider,(o=ge({},r),a={value:e.get(n)},ue(o,ce(a)))));var o,a}),(e=>i.createElement(xe,ge({},e))))),[e])}const Se=e=>{const t=i.useRef(),n=i.useRef(),r=i.useRef(),o=function(e){const t=i.useRef({});return i.useLayoutEffect((()=>{t.current=e})),i.useLayoutEffect((()=>()=>{t.current={}}),[]),t.current}(e),s=Me(),l=t=>{const{forwardedRef:n}=e;n&&("function"===typeof n?n(t):n.current=t)};return i.useLayoutEffect((()=>(n.current=new(a().Stage)({width:e.width,height:e.height,container:t.current}),l(n.current),r.current=We.createContainer(n.current,u.LegacyRoot,!1,null),We.updateContainer(i.createElement(s,{},e.children),r.current),()=>{a().isBrowser&&(l(null),We.updateContainer(null,r.current,null),n.current.destroy())})),[]),i.useLayoutEffect((()=>{l(n.current),b(n.current,e,o),We.updateContainer(i.createElement(s,{},e.children),r.current,null)})),i.createElement("div",{ref:t,id:e.id,accessKey:e.accessKey,className:e.className,role:e.role,style:e.style,tabIndex:e.tabIndex,title:e.title})},je="Layer",Ne="FastLayer",Ce="Group",Ae="Label",Te="Rect",Ee="Circle",De="Ellipse",ke="Wedge",Oe="Line",Ie="Sprite",_e="Image",Pe="Text",Le="TextPath",ze="Star",Re="Ring",Fe="Arc",Ue="Tag",Be="Path",Ve="RegularPolygon",Qe="Arrow",He="Shape",Ye="Transformer",We=l()(r);We.injectIntoDevTools({findHostInstanceByFiber:()=>null,bundleType:0,version:i.version,rendererPackageName:"react-konva"});const Ge=i.forwardRef(((e,t)=>i.createElement(xe,{},i.createElement(Se,{...e,forwardedRef:t})))),qe=function(e){g=e}},8982:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Animate:()=>X,NodeGroup:()=>G});var r=n(5152),i=n(414),o=n(1087);function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,o.A)(e,t)}var s=n(7545),l=n(2474);function u(e,t){if(t&&("object"===(0,s.A)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,l.A)(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var d,f,h=n(810),p=n(4586),g=0,m=0,y=0,v=1e3,b=0,x=0,w=0,M="object"===typeof performance&&performance.now?performance:Date,S="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function j(){return x||(S(N),x=M.now()+w)}function N(){x=0}function C(){this._call=this._time=this._next=null}function A(e,t,n){var r=new C;return r.restart(e,t,n),r}function T(){x=(b=M.now())+w,g=m=0;try{!function(){j(),++g;for(var e,t=d;t;)(e=x-t._time)>=0&&t._call.call(null,e),t=t._next;--g}()}finally{g=0,function(){var e,t,n=d,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:d=t);f=e,D(r)}(),x=0}}function E(){var e=M.now(),t=e-b;t>v&&(w-=t,b=e)}function D(e){g||(m&&(m=clearTimeout(m)),e-x>24?(e<1/0&&(m=setTimeout(T,e-M.now()-w)),y&&(y=clearInterval(y))):(y||(b=M.now(),y=setInterval(E,v)),g=1,S(T)))}function k(e,t,n){var r=new C;return t=null==t?0:+t,r.restart((function(n){r.stop(),e(n+t)}),t,n),r}function O(e){return O="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},O(e)}C.prototype=A.prototype={constructor:C,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?j():+n)+(null==t?0:+t),this._next||f===this||(f?f._next=this:d=this,f=this),this._call=e,this._time=n,D()},stop:function(){this._call&&(this._call=null,this._time=1/0,D())}};var I=0;function _(e,t){for(var n in t)e[n]=t[n]}var P={delay:0,duration:250,ease:function(e){return+e}};const L=function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.start=null,this.interrupt=null,this.end=null,t.events&&Object.keys(t.events).forEach((function(e){if("function"!==typeof t.events[e])throw new Error("Event handlers must be a function");n[e]=function(e){var t=!1;return function(){t||(t=!0,e.call(this))}}(t.events[e])}))};function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){R(e,t,n[t])}))}return e}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}function F(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}const U=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.state=t||{}}var t,n,r;return t=e,(n=[{key:"transition",value:function(e){if(Array.isArray(e)){var t=!0,n=!1,r=void 0;try{for(var i,o=e[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value;this.parse(a)}}catch(s){n=!0,r=s}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}}else this.parse(e)}},{key:"isTransitioning",value:function(){return!!this.transitionData}},{key:"stopTransitions",value:function(){var e=this.transitionData;e&&Object.keys(e).forEach((function(t){e[t].timer.stop()}))}},{key:"setState",value:function(e){_(this.state,"function"===typeof e?e(this.state):e)}},{key:"parse",value:function(e){var t=this,n=z({},e),r=new L(n);n.events&&delete n.events;var i=z({},P,n.timing||{},{time:j()});n.timing&&delete n.timing,Object.keys(n).forEach((function(e){var o,a,s=[],l=n[e];if("object"===O(a=l)&&!1===Array.isArray(a))Object.keys(l).forEach((function(n){var r=l[n];Array.isArray(r)?1===r.length?s.push(t.getTween(n,r[0],e)):(t.setState((function(t){var i,o;return(o={})[e]=z({},t[e],((i={})[n]=r[0],i)),o})),s.push(t.getTween(n,r[1],e))):"function"===typeof r?s.push((function(){return function(i){t.setState((function(t){var o,a;return(a={})[e]=z({},t[e],((o={})[n]=r(i),o)),a}))}})):(t.setState((function(t){var i,o;return(o={})[e]=z({},t[e],((i={})[n]=r,i)),o})),s.push(t.getTween(n,r,e)))}));else if(Array.isArray(l))1===l.length?s.push(t.getTween(e,l[0],null)):(t.setState(((o={})[e]=l[0],o)),s.push(t.getTween(e,l[1],null)));else if("function"===typeof l)s.push((function(){return function(n){var r;t.setState(((r={})[e]=l(n),r))}}));else{var u;t.setState(((u={})[e]=l,u)),s.push(t.getTween(e,l,null))}t.update({stateKey:e,timing:i,tweens:s,events:r,status:0})}))}},{key:"getTween",value:function(e,t,n){var r=this;return function(){var i=n?r.state[n][e]:r.state[e];if(i===t)return null;var o=r.getInterpolator(i,t,e,n);return null===n?function(t){var n;r.setState(((n={})[e]=o(t),n))}:function(t){r.setState((function(r){var i,a;return(a={})[n]=z({},r[n],((i={})[e]=o(t),i)),a}))}}}},{key:"update",value:function(e){this.transitionData||(this.transitionData={}),this.init(++I,e)}},{key:"init",value:function(e,t){var n=this,r=t.tweens.length,i=new Array(r);this.transitionData[e]=t,t.timer=A((function(e){t.status=1,t.timer.restart(o,t.timing.delay,t.timing.time),t.timing.delay<=e&&o(e-t.timing.delay)}),0,t.timing.time);var o=function o(l){if(1!==t.status)return s();for(var u in n.transitionData){var c=n.transitionData[u];if(c.stateKey===t.stateKey){if(3===c.status)return k(o);4===c.status?(c.status=6,c.timer.stop(),c.events.interrupt&&c.events.interrupt.call(n),delete n.transitionData[u]):+u<e&&(c.status=6,c.timer.stop(),delete n.transitionData[u])}}if(k((function(){3===t.status&&(t.status=4,t.timer.restart(a,t.timing.delay,t.timing.time),a(l))})),t.status=2,t.events.start&&t.events.start.call(n),2===t.status){t.status=3;for(var d=-1,f=0;f<r;++f){var h=t.tweens[f]();h&&(i[++d]=h)}i.length=d+1}},a=function(e){var r=1;e<t.timing.duration?r=t.timing.ease(e/t.timing.duration):(t.timer.restart(s),t.status=5);for(var o=-1;++o<i.length;)i[o](r);5===t.status&&(t.events.end&&t.events.end.call(n),s())},s=function(){for(var r in t.status=6,t.timer.stop(),delete n.transitionData[e],n.transitionData)return;delete n.transitionData}}}])&&F(t.prototype,n),r&&F(t,r),e}();const B=function(e,t,n,r){for(var i=[],o=0;o<n.length;o++)i[o]=n[o];for(var a=0;a<e.length;a++)void 0===r[e[a]]&&i.push(e[a]);return i.sort((function(e,i){var o=r[e],a=r[i],s=t[e],l=t[i];if(null!=o&&null!=a)return r[e]-r[i];if(null!=s&&null!=l)return t[e]-t[i];if(null!=o){for(var u=0;u<n.length;u++){var c=n[u];if(t[c]){if(o<r[c]&&l>t[c])return-1;if(o>r[c]&&l<t[c])return 1}}return 1}for(var d=0;d<n.length;d++){var f=n[d];if(t[f]){if(a<r[f]&&s>t[f])return 1;if(a>r[f]&&s<t[f])return-1}}return-1}))};var V="ENTER",Q="LEAVE";function H(e,t){var n=+e,r=+t-n;return function(e){return n+r*e}}function Y(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}var W=function(e){a(n,e);var t=Y(n);function n(e){var i;(0,r.A)(this,n),i=t.call(this,e),(0,p.A)((0,l.A)(i),"animate",(function(){var e=i.state,t=e.nodeKeys,n=e.nodeHash;if(!i.unmounting){for(var r=!1,o=[],a=t.length,s=0;s<a;s++){var l=t[s],u=n[l],c=u.isTransitioning();c&&(r=!0),u.type!==Q||c?o.push(l):delete n[l]}r||i.interval.stop(),i.setState((function(){return{nodeKeys:o,nodes:o.map((function(e){return n[e]}))}}))}})),(0,p.A)((0,l.A)(i),"interval",null),(0,p.A)((0,l.A)(i),"unmounting",!1);var o=e.interpolation,s=function(e){a(n,e);var t=Y(n);function n(e,i){var a;return(0,r.A)(this,n),a=t.call(this),(0,p.A)((0,l.A)(a),"getInterpolator",o),a.key=e,a.data=i,a.type=V,a}return n}(U);return i.state={Node:s,nodeKeys:[],nodeHash:{},nodes:[],data:null},i}return(0,i.A)(n,[{key:"componentDidMount",value:function(){this.startInterval()}},{key:"componentDidUpdate",value:function(e){e.data===this.props.data||this.unmounting||this.startInterval()}},{key:"startInterval",value:function(){this.interval?this.interval.restart(this.animate):this.interval=function(e,t,n){var r=new C,i=t;return null==t?(r.restart(e,t,n),r):(t=+t,n=null==n?j():+n,r.restart((function o(a){a+=i,r.restart(o,i+=t,n),e(a)}),t,n),r)}(this.animate)}},{key:"componentWillUnmount",value:function(){var e=this.state,t=e.nodeKeys,n=e.nodeHash;this.unmounting=!0,this.interval&&this.interval.stop(),t.forEach((function(e){n[e].stopTransitions()}))}},{key:"render",value:function(){var e=this.props.children(this.state.nodes);return e&&h.Children.only(e)}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(e.data!==t.data){for(var n=e.data,r=e.keyAccessor,i=e.start,o=e.enter,a=e.update,s=e.leave,l=t.Node,u=t.nodeKeys,c=t.nodeHash,d={},f=0;f<u.length;f++)d[u[f]]=f;for(var h={},p=[],g=0;g<n.length;g++){var m=n[g],y=r(m,g);if(h[y]=g,p.push(y),void 0===d[y]){var v=new l;v.key=y,v.data=m,v.type=V,c[y]=v}}for(var b=0;b<u.length;b++){var x=u[b],w=c[x];void 0!==h[x]?(w.data=n[h[x]],w.type="UPDATE"):w.type=Q}for(var M=B(u,d,p,h),S=0;S<M.length;S++){var j=M[S],N=c[j],C=N.data;N.type===V?(N.setState(i(C,h[j])),N.transition(o(C,h[j]))):N.type===Q?N.transition(s(C,d[j])):N.transition(a(C,h[j]))}return{data:n,nodes:M.map((function(e){return c[e]})),nodeHash:c,nodeKeys:M}}return null}}]),n}(h.Component);W.propTypes={},W.defaultProps={enter:function(){},update:function(){},leave:function(){},interpolation:H};const G=W;function q(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}var Z=function(){return"$$key$$"},K=function(e){a(n,e);var t=q(n);function n(){return(0,r.A)(this,n),t.apply(this,arguments)}return(0,i.A)(n,[{key:"render",value:function(){var e=this.props,t=e.show,n=e.start,r=e.enter,i=e.update,o=e.leave,a=e.interpolation,s=e.children,l="function"===typeof n?n():n;return h.createElement(G,{data:t?[l]:[],start:function(){return l},keyAccessor:Z,interpolation:a,enter:"function"===typeof r?r:function(){return r},update:"function"===typeof i?i:function(){return i},leave:"function"===typeof o?o:function(){return o}},(function(e){if(!e[0])return null;var t=s(e[0].state);return t&&h.Children.only(t)}))}}]),n}(h.Component);K.propTypes={},K.defaultProps={show:!0,interpolation:H};const X=K},6741:(e,t)=>{"use strict";t.DefaultEventPriority=16,t.LegacyRoot=0},9258:(e,t,n)=>{e.exports=function(e){var t={},r=n(810),i=n(320),o=Object.assign;function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,l=Symbol.for("react.element"),u=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),p=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),b=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var x=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var w=Symbol.iterator;function M(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=w&&e[w]||e["@@iterator"])?e:null}function S(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case c:return"Fragment";case u:return"Portal";case f:return"Profiler";case d:return"StrictMode";case m:return"Suspense";case y:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case p:return(e.displayName||"Context")+".Consumer";case h:return(e._context.displayName||"Context")+".Provider";case g:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case v:return null!==(t=e.displayName||null)?t:S(e.type)||"Memo";case b:t=e._payload,e=e._init;try{return S(e(t))}catch(n){}}return null}function j(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return S(t);case 8:return t===d?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function N(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function C(e){if(N(e)!==e)throw Error(a(188))}function A(e){var t=e.alternate;if(!t){if(null===(t=N(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return C(i),e;if(o===r)return C(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}function T(e){return null!==(e=A(e))?E(e):null}function E(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=E(e);if(null!==t)return t;e=e.sibling}return null}function D(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){if(4!==e.tag){var t=D(e);if(null!==t)return t}e=e.sibling}return null}var k,O=Array.isArray,I=e.getPublicInstance,_=e.getRootHostContext,P=e.getChildHostContext,L=e.prepareForCommit,z=e.resetAfterCommit,R=e.createInstance,F=e.appendInitialChild,U=e.finalizeInitialChildren,B=e.prepareUpdate,V=e.shouldSetTextContent,Q=e.createTextInstance,H=e.scheduleTimeout,Y=e.cancelTimeout,W=e.noTimeout,G=e.isPrimaryRenderer,q=e.supportsMutation,Z=e.supportsPersistence,K=e.supportsHydration,X=e.getInstanceFromNode,$=e.preparePortalMount,J=e.getCurrentEventPriority,ee=e.detachDeletedInstance,te=e.supportsMicrotasks,ne=e.scheduleMicrotask,re=e.supportsTestSelectors,ie=e.findFiberRoot,oe=e.getBoundingRect,ae=e.getTextContent,se=e.isHiddenSubtree,le=e.matchAccessibilityRole,ue=e.setFocusIfFocusable,ce=e.setupIntersectionObserver,de=e.appendChild,fe=e.appendChildToContainer,he=e.commitTextUpdate,pe=e.commitMount,ge=e.commitUpdate,me=e.insertBefore,ye=e.insertInContainerBefore,ve=e.removeChild,be=e.removeChildFromContainer,xe=e.resetTextContent,we=e.hideInstance,Me=e.hideTextInstance,Se=e.unhideInstance,je=e.unhideTextInstance,Ne=e.clearContainer,Ce=e.cloneInstance,Ae=e.createContainerChildSet,Te=e.appendChildToContainerChildSet,Ee=e.finalizeContainerChildren,De=e.replaceContainerChildren,ke=e.cloneHiddenInstance,Oe=e.cloneHiddenTextInstance,Ie=e.canHydrateInstance,_e=e.canHydrateTextInstance,Pe=e.canHydrateSuspenseInstance,Le=e.isSuspenseInstancePending,ze=e.isSuspenseInstanceFallback,Re=e.getSuspenseInstanceFallbackErrorDetails,Fe=e.registerSuspenseInstanceRetry,Ue=e.getNextHydratableSibling,Be=e.getFirstHydratableChild,Ve=e.getFirstHydratableChildWithinContainer,Qe=e.getFirstHydratableChildWithinSuspenseInstance,He=e.hydrateInstance,Ye=e.hydrateTextInstance,We=e.hydrateSuspenseInstance,Ge=e.getNextHydratableInstanceAfterSuspenseInstance,qe=e.commitHydratedContainer,Ze=e.commitHydratedSuspenseInstance,Ke=e.clearSuspenseBoundary,Xe=e.clearSuspenseBoundaryFromContainer,$e=e.shouldDeleteUnhydratedTailInstances,Je=e.didNotMatchHydratedContainerTextInstance,et=e.didNotMatchHydratedTextInstance;function tt(e){if(void 0===k)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);k=t&&t[1]||""}return"\n"+k+e}var nt=!1;function rt(e,t){if(!e||nt)return"";nt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"===typeof u.stack){for(var i=u.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{nt=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?tt(e):""}var it=Object.prototype.hasOwnProperty,ot=[],at=-1;function st(e){return{current:e}}function lt(e){0>at||(e.current=ot[at],ot[at]=null,at--)}function ut(e,t){at++,ot[at]=e.current,e.current=t}var ct={},dt=st(ct),ft=st(!1),ht=ct;function pt(e,t){var n=e.type.contextTypes;if(!n)return ct;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function gt(e){return null!==(e=e.childContextTypes)&&void 0!==e}function mt(){lt(ft),lt(dt)}function yt(e,t,n){if(dt.current!==ct)throw Error(a(168));ut(dt,t),ut(ft,n)}function vt(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(a(108,j(e)||"Unknown",i));return o({},n,r)}function bt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ct,ht=dt.current,ut(dt,e),ut(ft,ft.current),!0}function xt(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=vt(e,t,ht),r.__reactInternalMemoizedMergedChildContext=e,lt(ft),lt(dt),ut(dt,e)):lt(ft),ut(ft,n)}var wt=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(Mt(e)/St|0)|0},Mt=Math.log,St=Math.LN2;var jt=64,Nt=4194304;function Ct(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function At(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=Ct(s):0!==(o&=a)&&(r=Ct(o))}else 0!==(a=n&~i)?r=Ct(a):0!==o&&(r=Ct(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-wt(t)),r|=e[n],t&=~i;return r}function Tt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Et(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Dt(){var e=jt;return 0===(4194240&(jt<<=1))&&(jt=64),e}function kt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ot(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-wt(t)]=n}function It(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-wt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var _t=0;function Pt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var Lt=i.unstable_scheduleCallback,zt=i.unstable_cancelCallback,Rt=i.unstable_shouldYield,Ft=i.unstable_requestPaint,Ut=i.unstable_now,Bt=i.unstable_ImmediatePriority,Vt=i.unstable_UserBlockingPriority,Qt=i.unstable_NormalPriority,Ht=i.unstable_IdlePriority,Yt=null,Wt=null;var Gt="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},qt=null,Zt=!1,Kt=!1;function Xt(e){null===qt?qt=[e]:qt.push(e)}function $t(){if(!Kt&&null!==qt){Kt=!0;var e=0,t=_t;try{var n=qt;for(_t=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}qt=null,Zt=!1}catch(i){throw null!==qt&&(qt=qt.slice(e+1)),Lt(Bt,$t),i}finally{_t=t,Kt=!1}}return null}var Jt=[],en=0,tn=null,nn=0,rn=[],on=0,an=null,sn=1,ln="";function un(e,t){Jt[en++]=nn,Jt[en++]=tn,tn=e,nn=t}function cn(e,t,n){rn[on++]=sn,rn[on++]=ln,rn[on++]=an,an=e;var r=sn;e=ln;var i=32-wt(r)-1;r&=~(1<<i),n+=1;var o=32-wt(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,sn=1<<32-wt(t)+i|n<<i|r,ln=o+e}else sn=1<<o|n<<i|r,ln=e}function dn(e){null!==e.return&&(un(e,1),cn(e,1,0))}function fn(e){for(;e===tn;)tn=Jt[--en],Jt[en]=null,nn=Jt[--en],Jt[en]=null;for(;e===an;)an=rn[--on],rn[on]=null,ln=rn[--on],rn[on]=null,sn=rn[--on],rn[on]=null}var hn=null,pn=null,gn=!1,mn=!1,yn=null;function vn(e,t){var n=as(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function bn(e,t){switch(e.tag){case 5:return null!==(t=Ie(t,e.type,e.pendingProps))&&(e.stateNode=t,hn=e,pn=Be(t),!0);case 6:return null!==(t=_e(t,e.pendingProps))&&(e.stateNode=t,hn=e,pn=null,!0);case 13:if(null!==(t=Pe(t))){var n=null!==an?{id:sn,overflow:ln}:null;return e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=as(18,null,null,0)).stateNode=t,n.return=e,e.child=n,hn=e,pn=null,!0}return!1;default:return!1}}function xn(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function wn(e){if(gn){var t=pn;if(t){var n=t;if(!bn(e,t)){if(xn(e))throw Error(a(418));t=Ue(n);var r=hn;t&&bn(e,t)?vn(r,n):(e.flags=-4097&e.flags|2,gn=!1,hn=e)}}else{if(xn(e))throw Error(a(418));e.flags=-4097&e.flags|2,gn=!1,hn=e}}}function Mn(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;hn=e}function Sn(e){if(!K||e!==hn)return!1;if(!gn)return Mn(e),gn=!0,!1;if(3!==e.tag&&(5!==e.tag||$e(e.type)&&!V(e.type,e.memoizedProps))){var t=pn;if(t){if(xn(e))throw jn(),Error(a(418));for(;t;)vn(e,t),t=Ue(t)}}if(Mn(e),13===e.tag){if(!K)throw Error(a(316));if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));pn=Ge(e)}else pn=hn?Ue(e.stateNode):null;return!0}function jn(){for(var e=pn;e;)e=Ue(e)}function Nn(){K&&(pn=hn=null,mn=gn=!1)}function Cn(e){null===yn?yn=[e]:yn.push(e)}var An=s.ReactCurrentBatchConfig;function Tn(e,t){if(Gt(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!it.call(t,i)||!Gt(e[i],t[i]))return!1}return!0}function En(e){switch(e.tag){case 5:return tt(e.type);case 16:return tt("Lazy");case 13:return tt("Suspense");case 19:return tt("SuspenseList");case 0:case 2:case 15:return e=rt(e.type,!1);case 11:return e=rt(e.type.render,!1);case 1:return e=rt(e.type,!0);default:return""}}function Dn(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=r,o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function kn(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function On(e){return(0,e._init)(e._payload)}function In(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=ls(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function d(e,t,n,r){return null===t||6!==t.tag?((t=fs(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n,r){var o=n.type;return o===c?p(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===b&&On(o)===t.type)?((r=i(t,n.props)).ref=Dn(e,t,n),r.return=e,r):((r=us(n.type,n.key,n.props,null,e.mode,r)).ref=Dn(e,t,n),r.return=e,r)}function h(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=hs(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function p(e,t,n,r,o){return null===t||7!==t.tag?((t=cs(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function g(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=fs(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case l:return(n=us(t.type,t.key,t.props,null,e.mode,n)).ref=Dn(e,null,t),n.return=e,n;case u:return(t=hs(t,e.mode,n)).return=e,t;case b:return g(e,(0,t._init)(t._payload),n)}if(O(t)||M(t))return(t=cs(t,e.mode,n,null)).return=e,t;kn(e,t)}return null}function m(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:d(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case l:return n.key===i?f(e,t,n,r):null;case u:return n.key===i?h(e,t,n,r):null;case b:return m(e,t,(i=n._init)(n._payload),r)}if(O(n)||M(n))return null!==i?null:p(e,t,n,r,null);kn(e,n)}return null}function y(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return d(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case l:return f(t,e=e.get(null===r.key?n:r.key)||null,r,i);case u:return h(t,e=e.get(null===r.key?n:r.key)||null,r,i);case b:return y(e,t,n,(0,r._init)(r._payload),i)}if(O(r)||M(r))return p(t,e=e.get(n)||null,r,i,null);kn(t,r)}return null}function v(i,a,s,l){for(var u=null,c=null,d=a,f=a=0,h=null;null!==d&&f<s.length;f++){d.index>f?(h=d,d=null):h=d.sibling;var p=m(i,d,s[f],l);if(null===p){null===d&&(d=h);break}e&&d&&null===p.alternate&&t(i,d),a=o(p,a,f),null===c?u=p:c.sibling=p,c=p,d=h}if(f===s.length)return n(i,d),gn&&un(i,f),u;if(null===d){for(;f<s.length;f++)null!==(d=g(i,s[f],l))&&(a=o(d,a,f),null===c?u=d:c.sibling=d,c=d);return gn&&un(i,f),u}for(d=r(i,d);f<s.length;f++)null!==(h=y(d,i,f,s[f],l))&&(e&&null!==h.alternate&&d.delete(null===h.key?f:h.key),a=o(h,a,f),null===c?u=h:c.sibling=h,c=h);return e&&d.forEach((function(e){return t(i,e)})),gn&&un(i,f),u}function x(i,s,l,u){var c=M(l);if("function"!==typeof c)throw Error(a(150));if(null==(l=c.call(l)))throw Error(a(151));for(var d=c=null,f=s,h=s=0,p=null,v=l.next();null!==f&&!v.done;h++,v=l.next()){f.index>h?(p=f,f=null):p=f.sibling;var b=m(i,f,v.value,u);if(null===b){null===f&&(f=p);break}e&&f&&null===b.alternate&&t(i,f),s=o(b,s,h),null===d?c=b:d.sibling=b,d=b,f=p}if(v.done)return n(i,f),gn&&un(i,h),c;if(null===f){for(;!v.done;h++,v=l.next())null!==(v=g(i,v.value,u))&&(s=o(v,s,h),null===d?c=v:d.sibling=v,d=v);return gn&&un(i,h),c}for(f=r(i,f);!v.done;h++,v=l.next())null!==(v=y(f,i,h,v.value,u))&&(e&&null!==v.alternate&&f.delete(null===v.key?h:v.key),s=o(v,s,h),null===d?c=v:d.sibling=v,d=v);return e&&f.forEach((function(e){return t(i,e)})),gn&&un(i,h),c}return function e(r,o,a,d){if("object"===typeof a&&null!==a&&a.type===c&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case l:e:{for(var f=a.key,h=o;null!==h;){if(h.key===f){if((f=a.type)===c){if(7===h.tag){n(r,h.sibling),(o=i(h,a.props.children)).return=r,r=o;break e}}else if(h.elementType===f||"object"===typeof f&&null!==f&&f.$$typeof===b&&On(f)===h.type){n(r,h.sibling),(o=i(h,a.props)).ref=Dn(r,h,a),o.return=r,r=o;break e}n(r,h);break}t(r,h),h=h.sibling}a.type===c?((o=cs(a.props.children,r.mode,d,a.key)).return=r,r=o):((d=us(a.type,a.key,a.props,null,r.mode,d)).ref=Dn(r,o,a),d.return=r,r=d)}return s(r);case u:e:{for(h=a.key;null!==o;){if(o.key===h){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=hs(a,r.mode,d)).return=r,r=o}return s(r);case b:return e(r,o,(h=a._init)(a._payload),d)}if(O(a))return v(r,o,a,d);if(M(a))return x(r,o,a,d);kn(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=fs(a,r.mode,d)).return=r,r=o),s(r)):n(r,o)}}var _n=In(!0),Pn=In(!1),Ln=st(null),zn=null,Rn=null,Fn=null;function Un(){Fn=Rn=zn=null}function Bn(e,t,n){G?(ut(Ln,t._currentValue),t._currentValue=n):(ut(Ln,t._currentValue2),t._currentValue2=n)}function Vn(e){var t=Ln.current;lt(Ln),G?e._currentValue=t:e._currentValue2=t}function Qn(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Hn(e,t){zn=e,Fn=Rn=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Ii=!0),e.firstContext=null)}function Yn(e){var t=G?e._currentValue:e._currentValue2;if(Fn!==e)if(e={context:e,memoizedValue:t,next:null},null===Rn){if(null===zn)throw Error(a(308));Rn=e,zn.dependencies={lanes:0,firstContext:e}}else Rn=Rn.next=e;return t}var Wn=null;function Gn(e){null===Wn?Wn=[e]:Wn.push(e)}function qn(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Gn(t)):(n.next=i.next,i.next=n),t.interleaved=n,Zn(e,r)}function Zn(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Kn=!1;function Xn(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $n(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Jn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function er(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&na)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Zn(e,n)}return null===(i=r.interleaved)?(t.next=t,Gn(r)):(t.next=i.next,i.next=t),r.interleaved=t,Zn(e,n)}function tr(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,It(e,n)}}function nr(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function rr(e,t,n,r){var i=e.updateQueue;Kn=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(null!==l){i.shared.pending=null;var u=l,c=u.next;u.next=null,null===s?a=c:s.next=c,s=u;var d=e.alternate;null!==d&&((l=(d=d.updateQueue).lastBaseUpdate)!==s&&(null===l?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=u))}if(null!==a){var f=i.baseState;for(s=0,d=c=u=null,l=a;;){var h=l.lane,p=l.eventTime;if((r&h)===h){null!==d&&(d=d.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var g=e,m=l;switch(h=t,p=n,m.tag){case 1:if("function"===typeof(g=m.payload)){f=g.call(p,f,h);break e}f=g;break e;case 3:g.flags=-65537&g.flags|128;case 0:if(null===(h="function"===typeof(g=m.payload)?g.call(p,f,h):g)||void 0===h)break e;f=o({},f,h);break e;case 2:Kn=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(h=i.effects)?i.effects=[l]:h.push(l))}else p={eventTime:p,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===d?(c=d=p,u=f):d=d.next=p,s|=h;if(null===(l=l.next)){if(null===(l=i.shared.pending))break;l=(h=l).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}if(null===d&&(u=f),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=d,null!==(t=i.shared.interleaved)){i=t;do{s|=i.lane,i=i.next}while(i!==t)}else null===a&&(i.shared.lanes=0);ca|=s,e.lanes=s,e.memoizedState=f}}function ir(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(a(191,i));i.call(r)}}}var or={},ar=st(or),sr=st(or),lr=st(or);function ur(e){if(e===or)throw Error(a(174));return e}function cr(e,t){ut(lr,t),ut(sr,e),ut(ar,or),e=_(t),lt(ar),ut(ar,e)}function dr(){lt(ar),lt(sr),lt(lr)}function fr(e){var t=ur(lr.current),n=ur(ar.current);n!==(t=P(n,e.type,t))&&(ut(sr,e),ut(ar,t))}function hr(e){sr.current===e&&(lt(ar),lt(sr))}var pr=st(0);function gr(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Le(n)||ze(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var mr=[];function yr(){for(var e=0;e<mr.length;e++){var t=mr[e];G?t._workInProgressVersionPrimary=null:t._workInProgressVersionSecondary=null}mr.length=0}var vr=s.ReactCurrentDispatcher,br=s.ReactCurrentBatchConfig,xr=0,wr=null,Mr=null,Sr=null,jr=!1,Nr=!1,Cr=0,Ar=0;function Tr(){throw Error(a(321))}function Er(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Gt(e[n],t[n]))return!1;return!0}function Dr(e,t,n,r,i,o){if(xr=o,wr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,vr.current=null===e||null===e.memoizedState?hi:pi,e=n(r,i),Nr){o=0;do{if(Nr=!1,Cr=0,25<=o)throw Error(a(301));o+=1,Sr=Mr=null,t.updateQueue=null,vr.current=gi,e=n(r,i)}while(Nr)}if(vr.current=fi,t=null!==Mr&&null!==Mr.next,xr=0,Sr=Mr=wr=null,jr=!1,t)throw Error(a(300));return e}function kr(){var e=0!==Cr;return Cr=0,e}function Or(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Sr?wr.memoizedState=Sr=e:Sr=Sr.next=e,Sr}function Ir(){if(null===Mr){var e=wr.alternate;e=null!==e?e.memoizedState:null}else e=Mr.next;var t=null===Sr?wr.memoizedState:Sr.next;if(null!==t)Sr=t,Mr=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Mr=e).memoizedState,baseState:Mr.baseState,baseQueue:Mr.baseQueue,queue:Mr.queue,next:null},null===Sr?wr.memoizedState=Sr=e:Sr=Sr.next=e}return Sr}function _r(e,t){return"function"===typeof t?t(e):t}function Pr(e){var t=Ir(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Mr,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){o=i.next,r=r.baseState;var l=s=null,u=null,c=o;do{var d=c.lane;if((xr&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,s=r):u=u.next=f,wr.lanes|=d,ca|=d}c=c.next}while(null!==c&&c!==o);null===u?s=r:u.next=l,Gt(r,t.memoizedState)||(Ii=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{o=i.lane,wr.lanes|=o,ca|=o,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Lr(e){var t=Ir(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);Gt(o,t.memoizedState)||(Ii=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function zr(){}function Rr(e,t){var n=wr,r=Ir(),i=t(),o=!Gt(r.memoizedState,i);if(o&&(r.memoizedState=i,Ii=!0),r=r.queue,Kr(Br.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==Sr&&1&Sr.memoizedState.tag){if(n.flags|=2048,Yr(9,Ur.bind(null,n,r,i,t),void 0,null),null===ra)throw Error(a(349));0!==(30&xr)||Fr(n,t,i)}return i}function Fr(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=wr.updateQueue)?(t={lastEffect:null,stores:null},wr.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ur(e,t,n,r){t.value=n,t.getSnapshot=r,Vr(t)&&Qr(e)}function Br(e,t,n){return n((function(){Vr(t)&&Qr(e)}))}function Vr(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Gt(e,n)}catch(r){return!0}}function Qr(e){var t=Zn(e,1);null!==t&&Oa(t,e,1,-1)}function Hr(e){var t=Or();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_r,lastRenderedState:e},t.queue=e,e=e.dispatch=li.bind(null,wr,e),[t.memoizedState,e]}function Yr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=wr.updateQueue)?(t={lastEffect:null,stores:null},wr.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Wr(){return Ir().memoizedState}function Gr(e,t,n,r){var i=Or();wr.flags|=e,i.memoizedState=Yr(1|t,n,void 0,void 0===r?null:r)}function qr(e,t,n,r){var i=Ir();r=void 0===r?null:r;var o=void 0;if(null!==Mr){var a=Mr.memoizedState;if(o=a.destroy,null!==r&&Er(r,a.deps))return void(i.memoizedState=Yr(t,n,o,r))}wr.flags|=e,i.memoizedState=Yr(1|t,n,o,r)}function Zr(e,t){return Gr(8390656,8,e,t)}function Kr(e,t){return qr(2048,8,e,t)}function Xr(e,t){return qr(4,2,e,t)}function $r(e,t){return qr(4,4,e,t)}function Jr(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ei(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,qr(4,4,Jr.bind(null,t,e),n)}function ti(){}function ni(e,t){var n=Ir();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Er(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ri(e,t){var n=Ir();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Er(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ii(e,t,n){return 0===(21&xr)?(e.baseState&&(e.baseState=!1,Ii=!0),e.memoizedState=n):(Gt(n,t)||(n=Dt(),wr.lanes|=n,ca|=n,e.baseState=!0),t)}function oi(e,t){var n=_t;_t=0!==n&&4>n?n:4,e(!0);var r=br.transition;br.transition={};try{e(!1),t()}finally{_t=n,br.transition=r}}function ai(){return Ir().memoizedState}function si(e,t,n){var r=ka(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ui(e))ci(t,n);else if(null!==(n=qn(e,t,n,r))){Oa(n,e,r,Da()),di(n,t,r)}}function li(e,t,n){var r=ka(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ui(e))ci(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Gt(s,a)){var l=t.interleaved;return null===l?(i.next=i,Gn(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(u){}null!==(n=qn(e,t,i,r))&&(Oa(n,e,r,i=Da()),di(n,t,r))}}function ui(e){var t=e.alternate;return e===wr||null!==t&&t===wr}function ci(e,t){Nr=jr=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function di(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,It(e,n)}}var fi={readContext:Yn,useCallback:Tr,useContext:Tr,useEffect:Tr,useImperativeHandle:Tr,useInsertionEffect:Tr,useLayoutEffect:Tr,useMemo:Tr,useReducer:Tr,useRef:Tr,useState:Tr,useDebugValue:Tr,useDeferredValue:Tr,useTransition:Tr,useMutableSource:Tr,useSyncExternalStore:Tr,useId:Tr,unstable_isNewReconciler:!1},hi={readContext:Yn,useCallback:function(e,t){return Or().memoizedState=[e,void 0===t?null:t],e},useContext:Yn,useEffect:Zr,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Gr(4194308,4,Jr.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Gr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Gr(4,2,e,t)},useMemo:function(e,t){var n=Or();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Or();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=si.bind(null,wr,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Or().memoizedState=e},useState:Hr,useDebugValue:ti,useDeferredValue:function(e){return Or().memoizedState=e},useTransition:function(){var e=Hr(!1),t=e[0];return e=oi.bind(null,e[1]),Or().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=wr,i=Or();if(gn){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===ra)throw Error(a(349));0!==(30&xr)||Fr(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Zr(Br.bind(null,r,o,e),[e]),r.flags|=2048,Yr(9,Ur.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Or(),t=ra.identifierPrefix;if(gn){var n=ln;t=":"+t+"R"+(n=(sn&~(1<<32-wt(sn)-1)).toString(32)+n),0<(n=Cr++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Ar++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},pi={readContext:Yn,useCallback:ni,useContext:Yn,useEffect:Kr,useImperativeHandle:ei,useInsertionEffect:Xr,useLayoutEffect:$r,useMemo:ri,useReducer:Pr,useRef:Wr,useState:function(){return Pr(_r)},useDebugValue:ti,useDeferredValue:function(e){return ii(Ir(),Mr.memoizedState,e)},useTransition:function(){return[Pr(_r)[0],Ir().memoizedState]},useMutableSource:zr,useSyncExternalStore:Rr,useId:ai,unstable_isNewReconciler:!1},gi={readContext:Yn,useCallback:ni,useContext:Yn,useEffect:Kr,useImperativeHandle:ei,useInsertionEffect:Xr,useLayoutEffect:$r,useMemo:ri,useReducer:Lr,useRef:Wr,useState:function(){return Lr(_r)},useDebugValue:ti,useDeferredValue:function(e){var t=Ir();return null===Mr?t.memoizedState=e:ii(t,Mr.memoizedState,e)},useTransition:function(){return[Lr(_r)[0],Ir().memoizedState]},useMutableSource:zr,useSyncExternalStore:Rr,useId:ai,unstable_isNewReconciler:!1};function mi(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function yi(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var vi={isMounted:function(e){return!!(e=e._reactInternals)&&N(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Da(),i=ka(e),o=Jn(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=er(e,o,i))&&(Oa(t,e,i,r),tr(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Da(),i=ka(e),o=Jn(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=er(e,o,i))&&(Oa(t,e,i,r),tr(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Da(),r=ka(e),i=Jn(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=er(e,i,r))&&(Oa(t,e,r,n),tr(t,e,r))}};function bi(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!Tn(n,r)||!Tn(i,o))}function xi(e,t,n){var r=!1,i=ct,o=t.contextType;return"object"===typeof o&&null!==o?o=Yn(o):(i=gt(t)?ht:dt.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?pt(e,i):ct),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=vi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function wi(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&vi.enqueueReplaceState(t,t.state,null)}function Mi(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Xn(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=Yn(o):(o=gt(t)?ht:dt.current,i.context=pt(e,o)),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(yi(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&vi.enqueueReplaceState(i,i.state,null),rr(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function Si(e,t){try{var n="",r=t;do{n+=En(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i,digest:null}}function ji(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Ni(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var Ci="function"===typeof WeakMap?WeakMap:Map;function Ai(e,t,n){(n=Jn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){xa||(xa=!0,wa=r),Ni(0,t)},n}function Ti(e,t,n){(n=Jn(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Ni(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){Ni(0,t),"function"!==typeof r&&(null===Ma?Ma=new Set([this]):Ma.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Ei(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Ci;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=es.bind(null,e,t,n),t.then(e,e))}function Di(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ki(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Jn(-1,1)).tag=2,er(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var Oi=s.ReactCurrentOwner,Ii=!1;function _i(e,t,n,r){t.child=null===e?Pn(t,null,n,r):_n(t,e.child,n,r)}function Pi(e,t,n,r,i){n=n.render;var o=t.ref;return Hn(t,i),r=Dr(e,t,n,r,o,i),n=kr(),null===e||Ii?(gn&&n&&dn(t),t.flags|=1,_i(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,io(e,t,i))}function Li(e,t,n,r,i){if(null===e){var o=n.type;return"function"!==typeof o||ss(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=us(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,zi(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:Tn)(a,r)&&e.ref===t.ref)return io(e,t,i)}return t.flags|=1,(e=ls(o,r)).ref=t.ref,e.return=t,t.child=e}function zi(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(Tn(o,r)&&e.ref===t.ref){if(Ii=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,io(e,t,i);0!==(131072&e.flags)&&(Ii=!0)}}return Ui(e,t,n,r,i)}function Ri(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ut(sa,aa),aa|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ut(sa,aa),aa|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,ut(sa,aa),aa|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,ut(sa,aa),aa|=r;return _i(e,t,i,n),t.child}function Fi(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ui(e,t,n,r,i){var o=gt(n)?ht:dt.current;return o=pt(t,o),Hn(t,i),n=Dr(e,t,n,r,o,i),r=kr(),null===e||Ii?(gn&&r&&dn(t),t.flags|=1,_i(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,io(e,t,i))}function Bi(e,t,n,r,i){if(gt(n)){var o=!0;bt(t)}else o=!1;if(Hn(t,i),null===t.stateNode)ro(e,t),xi(t,n,r),Mi(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"===typeof u&&null!==u?u=Yn(u):u=pt(t,u=gt(n)?ht:dt.current);var c=n.getDerivedStateFromProps,d="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==u)&&wi(t,a,r,u),Kn=!1;var f=t.memoizedState;a.state=f,rr(t,r,a,i),l=t.memoizedState,s!==r||f!==l||ft.current||Kn?("function"===typeof c&&(yi(t,n,c,r),l=t.memoizedState),(s=Kn||bi(t,n,s,r,f,l,u))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,$n(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:mi(t.type,s),a.props=u,d=t.pendingProps,f=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=Yn(l):l=pt(t,l=gt(n)?ht:dt.current);var h=n.getDerivedStateFromProps;(c="function"===typeof h||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||f!==l)&&wi(t,a,r,l),Kn=!1,f=t.memoizedState,a.state=f,rr(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||ft.current||Kn?("function"===typeof h&&(yi(t,n,h,r),p=t.memoizedState),(u=Kn||bi(t,n,u,r,f,p,l)||!1)?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=u):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Vi(e,t,n,r,o,i)}function Vi(e,t,n,r,i,o){Fi(e,t);var a=0!==(128&t.flags);if(!r&&!a)return i&&xt(t,n,!1),io(e,t,o);r=t.stateNode,Oi.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=_n(t,e.child,null,o),t.child=_n(t,null,s,o)):_i(e,t,s,o),t.memoizedState=r.state,i&&xt(t,n,!0),t.child}function Qi(e){var t=e.stateNode;t.pendingContext?yt(0,t.pendingContext,t.pendingContext!==t.context):t.context&&yt(0,t.context,!1),cr(e,t.containerInfo)}function Hi(e,t,n,r,i){return Nn(),Cn(i),t.flags|=256,_i(e,t,n,r),t.child}var Yi,Wi,Gi,qi,Zi={dehydrated:null,treeContext:null,retryLane:0};function Ki(e){return{baseLanes:e,cachePool:null,transitions:null}}function Xi(e,t,n){var r,i=t.pendingProps,o=pr.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&o)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),ut(pr,1&o),null===e)return wn(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:ze(e)?t.lanes=8:t.lanes=1073741824,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=ds(l,i,0,null),e=cs(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ki(n),t.memoizedState=Zi,e):$i(t,l));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,i,o,s){if(n)return 256&t.flags?(t.flags&=-257,Ji(e,t,s,r=ji(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=ds({mode:"visible",children:r.children},i,0,null),(o=cs(o,i,s,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,0!==(1&t.mode)&&_n(t,e.child,null,s),t.child.memoizedState=Ki(s),t.memoizedState=Zi,o);if(0===(1&t.mode))return Ji(e,t,s,null);if(ze(i))return r=Re(i).digest,o=Error(a(419)),r=ji(o,r,void 0),Ji(e,t,s,r);if(n=0!==(s&e.childLanes),Ii||n){if(null!==(r=ra)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==o.retryLane&&(o.retryLane=i,Zn(e,i),Oa(r,e,i,-1))}return Ha(),Ji(e,t,s,r=ji(Error(a(421))))}return Le(i)?(t.flags|=128,t.child=e.child,t=ns.bind(null,e),Fe(i,t),null):(e=o.treeContext,K&&(pn=Qe(i),hn=t,gn=!0,yn=null,mn=!1,null!==e&&(rn[on++]=sn,rn[on++]=ln,rn[on++]=an,sn=e.id,ln=e.overflow,an=t)),t=$i(t,r.children),t.flags|=4096,t)}(e,t,l,i,r,o,n);if(s){s=i.fallback,l=t.mode,r=(o=e.child).sibling;var u={mode:"hidden",children:i.children};return 0===(1&l)&&t.child!==o?((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null):(i=ls(o,u)).subtreeFlags=14680064&o.subtreeFlags,null!==r?s=ls(r,s):(s=cs(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ki(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Zi,i}return e=(s=e.child).sibling,i=ls(s,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function $i(e,t){return(t=ds({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ji(e,t,n,r){return null!==r&&Cn(r),_n(t,e.child,null,n),(e=$i(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function eo(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Qn(e.return,t,n)}function to(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function no(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(_i(e,t,r.children,n),0!==(2&(r=pr.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&eo(e,n,t);else if(19===e.tag)eo(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ut(pr,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===gr(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),to(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===gr(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}to(t,!0,n,null,o);break;case"together":to(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ro(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function io(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),ca|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=ls(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=ls(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function oo(e){e.flags|=4}function ao(e,t){if(null!==e&&e.child===t.child)return!0;if(0!==(16&t.flags))return!1;for(e=t.child;null!==e;){if(0!==(12854&e.flags)||0!==(12854&e.subtreeFlags))return!1;e=e.sibling}return!0}if(q)Yi=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)F(e,n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Wi=function(){},Gi=function(e,t,n,r,i){if((e=e.memoizedProps)!==r){var o=t.stateNode,a=ur(ar.current);n=B(o,n,e,r,i,a),(t.updateQueue=n)&&oo(t)}},qi=function(e,t,n,r){n!==r&&oo(t)};else if(Z){Yi=function(e,t,n,r){for(var i=t.child;null!==i;){if(5===i.tag){var o=i.stateNode;n&&r&&(o=ke(o,i.type,i.memoizedProps,i)),F(e,o)}else if(6===i.tag)o=i.stateNode,n&&r&&(o=Oe(o,i.memoizedProps,i)),F(e,o);else if(4!==i.tag)if(22===i.tag&&null!==i.memoizedState)null!==(o=i.child)&&(o.return=i),Yi(e,i,!0,!0);else if(null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}};var so=function(e,t,n,r){for(var i=t.child;null!==i;){if(5===i.tag){var o=i.stateNode;n&&r&&(o=ke(o,i.type,i.memoizedProps,i)),Te(e,o)}else if(6===i.tag)o=i.stateNode,n&&r&&(o=Oe(o,i.memoizedProps,i)),Te(e,o);else if(4!==i.tag)if(22===i.tag&&null!==i.memoizedState)null!==(o=i.child)&&(o.return=i),so(e,i,!0,!0);else if(null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}};Wi=function(e,t){var n=t.stateNode;if(!ao(e,t)){e=n.containerInfo;var r=Ae(e);so(r,t,!1,!1),n.pendingChildren=r,oo(t),Ee(e,r)}},Gi=function(e,t,n,r,i){var o=e.stateNode,a=e.memoizedProps;if((e=ao(e,t))&&a===r)t.stateNode=o;else{var s=t.stateNode,l=ur(ar.current),u=null;a!==r&&(u=B(s,n,a,r,i,l)),e&&null===u?t.stateNode=o:(o=Ce(o,u,n,a,r,t,e,s),U(o,n,r,i,l)&&oo(t),t.stateNode=o,e?oo(t):Yi(o,t,!1,!1))}},qi=function(e,t,n,r){n!==r?(e=ur(lr.current),n=ur(ar.current),t.stateNode=Q(r,e,n,t),oo(t)):t.stateNode=e.stateNode}}else Wi=function(){},Gi=function(){},qi=function(){};function lo(e,t){if(!gn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function uo(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function co(e,t,n){var r=t.pendingProps;switch(fn(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return uo(t),null;case 1:case 17:return gt(t.type)&&mt(),uo(t),null;case 3:return n=t.stateNode,dr(),lt(ft),lt(dt),yr(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(Sn(t)?oo(t):null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==yn&&(La(yn),yn=null))),Wi(e,t),uo(t),null;case 5:hr(t),n=ur(lr.current);var i=t.type;if(null!==e&&null!=t.stateNode)Gi(e,t,i,r,n),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return uo(t),null}if(e=ur(ar.current),Sn(t)){if(!K)throw Error(a(175));e=He(t.stateNode,t.type,t.memoizedProps,n,e,t,!mn),t.updateQueue=e,null!==e&&oo(t)}else{var o=R(i,r,n,e,t);Yi(o,t,!1,!1),t.stateNode=o,U(o,i,r,n,e)&&oo(t)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return uo(t),null;case 6:if(e&&null!=t.stateNode)qi(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));if(e=ur(lr.current),n=ur(ar.current),Sn(t)){if(!K)throw Error(a(176));if(e=t.stateNode,n=t.memoizedProps,(r=Ye(e,n,t,!mn))&&null!==(i=hn))switch(i.tag){case 3:Je(i.stateNode.containerInfo,e,n,0!==(1&i.mode));break;case 5:et(i.type,i.memoizedProps,i.stateNode,e,n,0!==(1&i.mode))}r&&oo(t)}else t.stateNode=Q(r,e,n,t)}return uo(t),null;case 13:if(lt(pr),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(gn&&null!==pn&&0!==(1&t.mode)&&0===(128&t.flags))jn(),Nn(),t.flags|=98560,i=!1;else if(i=Sn(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(a(318));if(!K)throw Error(a(344));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(a(317));We(i,t)}else Nn(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;uo(t),i=!1}else null!==yn&&(La(yn),yn=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((n=null!==r)!==(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&pr.current)?0===la&&(la=3):Ha())),null!==t.updateQueue&&(t.flags|=4),uo(t),null);case 4:return dr(),Wi(e,t),null===e&&$(t.stateNode.containerInfo),uo(t),null;case 10:return Vn(t.type._context),uo(t),null;case 19:if(lt(pr),null===(i=t.memoizedState))return uo(t),null;if(r=0!==(128&t.flags),null===(o=i.rendering))if(r)lo(i,!1);else{if(0!==la||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(o=gr(e))){for(t.flags|=128,lo(i,!1),null!==(e=o.updateQueue)&&(t.updateQueue=e,t.flags|=4),t.subtreeFlags=0,e=n,n=t.child;null!==n;)i=e,(r=n).flags&=14680066,null===(o=r.alternate)?(r.childLanes=0,r.lanes=i,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=o.childLanes,r.lanes=o.lanes,r.child=o.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=o.memoizedProps,r.memoizedState=o.memoizedState,r.updateQueue=o.updateQueue,r.type=o.type,i=o.dependencies,r.dependencies=null===i?null:{lanes:i.lanes,firstContext:i.firstContext}),n=n.sibling;return ut(pr,1&pr.current|2),t.child}e=e.sibling}null!==i.tail&&Ut()>ma&&(t.flags|=128,r=!0,lo(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=gr(o))){if(t.flags|=128,r=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),lo(i,!0),null===i.tail&&"hidden"===i.tailMode&&!o.alternate&&!gn)return uo(t),null}else 2*Ut()-i.renderingStartTime>ma&&1073741824!==n&&(t.flags|=128,r=!0,lo(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=i.last)?e.sibling=o:t.child=o,i.last=o)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ut(),t.sibling=null,e=pr.current,ut(pr,r?1&e|2:1&e),t):(uo(t),null);case 22:case 23:return Ua(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&0!==(1&t.mode)?0!==(1073741824&aa)&&(uo(t),q&&6&t.subtreeFlags&&(t.flags|=8192)):uo(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function fo(e,t){switch(fn(t),t.tag){case 1:return gt(t.type)&&mt(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return dr(),lt(ft),lt(dt),yr(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return hr(t),null;case 13:if(lt(pr),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));Nn()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return lt(pr),null;case 4:return dr(),null;case 10:return Vn(t.type._context),null;case 22:case 23:return Ua(),null;default:return null}}var ho=!1,po=!1,go="function"===typeof WeakSet?WeakSet:Set,mo=null;function yo(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Ja(e,t,r)}else n.current=null}function vo(e,t,n){try{n()}catch(r){Ja(e,t,r)}}var bo=!1;function xo(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&vo(t,n,o)}i=i.next}while(i!==r)}}function wo(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Mo(e){var t=e.ref;if(null!==t){var n=e.stateNode;if(5===e.tag)e=I(n);else e=n;"function"===typeof t?t(e):t.current=e}}function So(e){var t=e.alternate;null!==t&&(e.alternate=null,So(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&ee(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function jo(e){return 5===e.tag||3===e.tag||4===e.tag}function No(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||jo(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Co(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?ye(n,e,t):fe(n,e);else if(4!==r&&null!==(e=e.child))for(Co(e,t,n),e=e.sibling;null!==e;)Co(e,t,n),e=e.sibling}function Ao(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?me(n,e,t):de(n,e);else if(4!==r&&null!==(e=e.child))for(Ao(e,t,n),e=e.sibling;null!==e;)Ao(e,t,n),e=e.sibling}var To=null,Eo=!1;function Do(e,t,n){for(n=n.child;null!==n;)ko(e,t,n),n=n.sibling}function ko(e,t,n){if(Wt&&"function"===typeof Wt.onCommitFiberUnmount)try{Wt.onCommitFiberUnmount(Yt,n)}catch(s){}switch(n.tag){case 5:po||yo(n,t);case 6:if(q){var r=To,i=Eo;To=null,Do(e,t,n),Eo=i,null!==(To=r)&&(Eo?be(To,n.stateNode):ve(To,n.stateNode))}else Do(e,t,n);break;case 18:q&&null!==To&&(Eo?Xe(To,n.stateNode):Ke(To,n.stateNode));break;case 4:q?(r=To,i=Eo,To=n.stateNode.containerInfo,Eo=!0,Do(e,t,n),To=r,Eo=i):(Z&&(r=n.stateNode.containerInfo,i=Ae(r),De(r,i)),Do(e,t,n));break;case 0:case 11:case 14:case 15:if(!po&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&vo(n,t,a),i=i.next}while(i!==r)}Do(e,t,n);break;case 1:if(!po&&(yo(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Ja(n,t,s)}Do(e,t,n);break;case 21:Do(e,t,n);break;case 22:1&n.mode?(po=(r=po)||null!==n.memoizedState,Do(e,t,n),po=r):Do(e,t,n);break;default:Do(e,t,n)}}function Oo(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new go),t.forEach((function(t){var r=rs.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Io(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t;if(q){var l=s;e:for(;null!==l;){switch(l.tag){case 5:To=l.stateNode,Eo=!1;break e;case 3:case 4:To=l.stateNode.containerInfo,Eo=!0;break e}l=l.return}if(null===To)throw Error(a(160));ko(o,s,i),To=null,Eo=!1}else ko(o,s,i);var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(c){Ja(i,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)_o(t,e),t=t.sibling}function _o(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Io(t,e),Po(e),4&r){try{xo(3,e,e.return),wo(3,e)}catch(h){Ja(e,e.return,h)}try{xo(5,e,e.return)}catch(h){Ja(e,e.return,h)}}break;case 1:Io(t,e),Po(e),512&r&&null!==n&&yo(n,n.return);break;case 5:if(Io(t,e),Po(e),512&r&&null!==n&&yo(n,n.return),q){if(32&e.flags){var i=e.stateNode;try{xe(i)}catch(h){Ja(e,e.return,h)}}if(4&r&&null!=(i=e.stateNode)){var o=e.memoizedProps;if(n=null!==n?n.memoizedProps:o,r=e.type,t=e.updateQueue,e.updateQueue=null,null!==t)try{ge(i,t,r,n,o,e)}catch(h){Ja(e,e.return,h)}}}break;case 6:if(Io(t,e),Po(e),4&r&&q){if(null===e.stateNode)throw Error(a(162));i=e.stateNode,o=e.memoizedProps,n=null!==n?n.memoizedProps:o;try{he(i,n,o)}catch(h){Ja(e,e.return,h)}}break;case 3:if(Io(t,e),Po(e),4&r){if(q&&K&&null!==n&&n.memoizedState.isDehydrated)try{qe(t.containerInfo)}catch(h){Ja(e,e.return,h)}if(Z){i=t.containerInfo,o=t.pendingChildren;try{De(i,o)}catch(h){Ja(e,e.return,h)}}}break;case 4:if(Io(t,e),Po(e),4&r&&Z){i=(o=e.stateNode).containerInfo,o=o.pendingChildren;try{De(i,o)}catch(h){Ja(e,e.return,h)}}break;case 13:Io(t,e),Po(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(ga=Ut())),4&r&&Oo(e);break;case 22:var s=null!==n&&null!==n.memoizedState;if(1&e.mode?(po=(n=po)||s,Io(t,e),po=n):Io(t,e),Po(e),8192&r){if(n=null!==e.memoizedState,(e.stateNode.isHidden=n)&&!s&&0!==(1&e.mode))for(mo=e,r=e.child;null!==r;){for(t=mo=r;null!==mo;){var l=(s=mo).child;switch(s.tag){case 0:case 11:case 14:case 15:xo(4,s,s.return);break;case 1:yo(s,s.return);var u=s.stateNode;if("function"===typeof u.componentWillUnmount){var c=s,d=s.return;try{var f=c;u.props=f.memoizedProps,u.state=f.memoizedState,u.componentWillUnmount()}catch(h){Ja(c,d,h)}}break;case 5:yo(s,s.return);break;case 22:if(null!==s.memoizedState){Fo(t);continue}}null!==l?(l.return=s,mo=l):Fo(t)}r=r.sibling}if(q)e:if(r=null,q)for(t=e;;){if(5===t.tag){if(null===r){r=t;try{i=t.stateNode,n?we(i):Se(t.stateNode,t.memoizedProps)}catch(h){Ja(e,e.return,h)}}}else if(6===t.tag){if(null===r)try{o=t.stateNode,n?Me(o):je(o,t.memoizedProps)}catch(h){Ja(e,e.return,h)}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}}break;case 19:Io(t,e),Po(e),4&r&&Oo(e);break;case 21:break;default:Io(t,e),Po(e)}}function Po(e){var t=e.flags;if(2&t){try{if(q){e:{for(var n=e.return;null!==n;){if(jo(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(xe(i),r.flags&=-33),Ao(e,No(e),i);break;case 3:case 4:var o=r.stateNode.containerInfo;Co(e,No(e),o);break;default:throw Error(a(161))}}}catch(s){Ja(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Lo(e,t,n){mo=e,zo(e,t,n)}function zo(e,t,n){for(var r=0!==(1&e.mode);null!==mo;){var i=mo,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||ho;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||po;s=ho;var u=po;if(ho=a,(po=l)&&!u)for(mo=i;null!==mo;)l=(a=mo).child,22===a.tag&&null!==a.memoizedState?Uo(i):null!==l?(l.return=a,mo=l):Uo(i);for(;null!==o;)mo=o,zo(o,t,n),o=o.sibling;mo=i,ho=s,po=u}Ro(e)}else 0!==(8772&i.subtreeFlags)&&null!==o?(o.return=i,mo=o):Ro(e)}}function Ro(e){for(;null!==mo;){var t=mo;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:po||wo(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!po)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:mi(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&ir(t,o,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:n=I(t.child.stateNode);break;case 1:n=t.child.stateNode}ir(t,s,n)}break;case 5:var l=t.stateNode;null===n&&4&t.flags&&pe(l,t.type,t.memoizedProps,t);break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(K&&null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&Ze(d)}}}break;default:throw Error(a(163))}po||512&t.flags&&Mo(t)}catch(f){Ja(t,t.return,f)}}if(t===e){mo=null;break}if(null!==(n=t.sibling)){n.return=t.return,mo=n;break}mo=t.return}}function Fo(e){for(;null!==mo;){var t=mo;if(t===e){mo=null;break}var n=t.sibling;if(null!==n){n.return=t.return,mo=n;break}mo=t.return}}function Uo(e){for(;null!==mo;){var t=mo;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{wo(4,t)}catch(l){Ja(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(l){Ja(t,i,l)}}var o=t.return;try{Mo(t)}catch(l){Ja(t,o,l)}break;case 5:var a=t.return;try{Mo(t)}catch(l){Ja(t,a,l)}}}catch(l){Ja(t,t.return,l)}if(t===e){mo=null;break}var s=t.sibling;if(null!==s){s.return=t.return,mo=s;break}mo=t.return}}var Bo=0,Vo=1,Qo=2,Ho=3,Yo=4;if("function"===typeof Symbol&&Symbol.for){var Wo=Symbol.for;Bo=Wo("selector.component"),Vo=Wo("selector.has_pseudo_class"),Qo=Wo("selector.role"),Ho=Wo("selector.test_id"),Yo=Wo("selector.text")}function Go(e){var t=X(e);if(null!=t){if("string"!==typeof t.memoizedProps["data-testname"])throw Error(a(364));return t}if(null===(e=ie(e)))throw Error(a(362));return e.stateNode.current}function qo(e,t){switch(t.$$typeof){case Bo:if(e.type===t.value)return!0;break;case Vo:e:{t=t.value,e=[e,0];for(var n=0;n<e.length;){var r=e[n++],i=e[n++],o=t[i];if(5!==r.tag||!se(r)){for(;null!=o&&qo(r,o);)o=t[++i];if(i===t.length){t=!0;break e}for(r=r.child;null!==r;)e.push(r,i),r=r.sibling}}t=!1}return t;case Qo:if(5===e.tag&&le(e.stateNode,t.value))return!0;break;case Yo:if((5===e.tag||6===e.tag)&&(null!==(e=ae(e))&&0<=e.indexOf(t.value)))return!0;break;case Ho:if(5===e.tag&&("string"===typeof(e=e.memoizedProps["data-testname"])&&e.toLowerCase()===t.value.toLowerCase()))return!0;break;default:throw Error(a(365))}return!1}function Zo(e){switch(e.$$typeof){case Bo:return"<"+(S(e.value)||"Unknown")+">";case Vo:return":has("+(Zo(e)||"")+")";case Qo:return'[role="'+e.value+'"]';case Yo:return'"'+e.value+'"';case Ho:return'[data-testname="'+e.value+'"]';default:throw Error(a(365))}}function Ko(e,t){var n=[];e=[e,0];for(var r=0;r<e.length;){var i=e[r++],o=e[r++],a=t[o];if(5!==i.tag||!se(i)){for(;null!=a&&qo(i,a);)a=t[++o];if(o===t.length)n.push(i);else for(i=i.child;null!==i;)e.push(i,o),i=i.sibling}}return n}function Xo(e,t){if(!re)throw Error(a(363));e=Ko(e=Go(e),t),t=[],e=Array.from(e);for(var n=0;n<e.length;){var r=e[n++];if(5===r.tag)se(r)||t.push(r.stateNode);else for(r=r.child;null!==r;)e.push(r),r=r.sibling}return t}var $o=Math.ceil,Jo=s.ReactCurrentDispatcher,ea=s.ReactCurrentOwner,ta=s.ReactCurrentBatchConfig,na=0,ra=null,ia=null,oa=0,aa=0,sa=st(0),la=0,ua=null,ca=0,da=0,fa=0,ha=null,pa=null,ga=0,ma=1/0,ya=null;function va(){ma=Ut()+500}var ba,xa=!1,wa=null,Ma=null,Sa=!1,ja=null,Na=0,Ca=0,Aa=null,Ta=-1,Ea=0;function Da(){return 0!==(6&na)?Ut():-1!==Ta?Ta:Ta=Ut()}function ka(e){return 0===(1&e.mode)?1:0!==(2&na)&&0!==oa?oa&-oa:null!==An.transition?(0===Ea&&(Ea=Dt()),Ea):0!==(e=_t)?e:J()}function Oa(e,t,n,r){if(50<Ca)throw Ca=0,Aa=null,Error(a(185));Ot(e,n,r),0!==(2&na)&&e===ra||(e===ra&&(0===(2&na)&&(da|=n),4===la&&za(e,oa)),Ia(e,r),1===n&&0===na&&0===(1&t.mode)&&(va(),Zt&&$t()))}function Ia(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-wt(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=Tt(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=At(e,e===ra?oa:0);if(0===r)null!==n&&zt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&zt(n),1===t)0===e.tag?function(e){Zt=!0,Xt(e)}(Ra.bind(null,e)):Xt(Ra.bind(null,e)),te?ne((function(){0===(6&na)&&$t()})):Lt(Bt,$t),n=null;else{switch(Pt(r)){case 1:n=Bt;break;case 4:n=Vt;break;case 16:default:n=Qt;break;case 536870912:n=Ht}n=is(n,_a.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function _a(e,t){if(Ta=-1,Ea=0,0!==(6&na))throw Error(a(327));var n=e.callbackNode;if(Xa()&&e.callbackNode!==n)return null;var r=At(e,e===ra?oa:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=Ya(e,r);else{t=r;var i=na;na|=2;var o=Qa();for(ra===e&&oa===t||(ya=null,va(),Ba(e,t));;)try{Ga();break}catch(l){Va(e,l)}Un(),Jo.current=o,na=i,null!==ia?t=0:(ra=null,oa=0,t=la)}if(0!==t){if(2===t&&(0!==(i=Et(e))&&(r=i,t=Pa(e,i))),1===t)throw n=ua,Ba(e,0),za(e,r),Ia(e,Ut()),n;if(6===t)za(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Gt(o(),i))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=Ya(e,r))&&(0!==(o=Et(e))&&(r=o,t=Pa(e,o))),1===t))throw n=ua,Ba(e,0),za(e,r),Ia(e,Ut()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:Ka(e,pa,ya);break;case 3:if(za(e,r),(130023424&r)===r&&10<(t=ga+500-Ut())){if(0!==At(e,0))break;if(((i=e.suspendedLanes)&r)!==r){Da(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=H(Ka.bind(null,e,pa,ya),t);break}Ka(e,pa,ya);break;case 4:if(za(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-wt(r);o=1<<s,(s=t[s])>i&&(i=s),r&=~o}if(r=i,10<(r=(120>(r=Ut()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*$o(r/1960))-r)){e.timeoutHandle=H(Ka.bind(null,e,pa,ya),r);break}Ka(e,pa,ya);break;default:throw Error(a(329))}}}return Ia(e,Ut()),e.callbackNode===n?_a.bind(null,e):null}function Pa(e,t){var n=ha;return e.current.memoizedState.isDehydrated&&(Ba(e,t).flags|=256),2!==(e=Ya(e,t))&&(t=pa,pa=n,null!==t&&La(t)),e}function La(e){null===pa?pa=e:pa.push.apply(pa,e)}function za(e,t){for(t&=~fa,t&=~da,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-wt(t),r=1<<n;e[n]=-1,t&=~r}}function Ra(e){if(0!==(6&na))throw Error(a(327));Xa();var t=At(e,0);if(0===(1&t))return Ia(e,Ut()),null;var n=Ya(e,t);if(0!==e.tag&&2===n){var r=Et(e);0!==r&&(t=r,n=Pa(e,r))}if(1===n)throw n=ua,Ba(e,0),za(e,t),Ia(e,Ut()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ka(e,pa,ya),Ia(e,Ut()),null}function Fa(e){null!==ja&&0===ja.tag&&0===(6&na)&&Xa();var t=na;na|=1;var n=ta.transition,r=_t;try{if(ta.transition=null,_t=1,e)return e()}finally{_t=r,ta.transition=n,0===(6&(na=t))&&$t()}}function Ua(){aa=sa.current,lt(sa)}function Ba(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==W&&(e.timeoutHandle=W,Y(n)),null!==ia)for(n=ia.return;null!==n;){var r=n;switch(fn(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&mt();break;case 3:dr(),lt(ft),lt(dt),yr();break;case 5:hr(r);break;case 4:dr();break;case 13:case 19:lt(pr);break;case 10:Vn(r.type._context);break;case 22:case 23:Ua()}n=n.return}if(ra=e,ia=e=ls(e.current,null),oa=aa=t,la=0,ua=null,fa=da=ca=0,pa=ha=null,null!==Wn){for(t=0;t<Wn.length;t++)if(null!==(r=(n=Wn[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Wn=null}return e}function Va(e,t){for(;;){var n=ia;try{if(Un(),vr.current=fi,jr){for(var r=wr.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}jr=!1}if(xr=0,Sr=Mr=wr=null,Nr=!1,Cr=0,ea.current=null,null===n||null===n.return){la=1,ua=t,ia=null;break}e:{var o=e,s=n.return,l=n,u=t;if(t=oa,l.flags|=32768,null!==u&&"object"===typeof u&&"function"===typeof u.then){var c=u,d=l,f=d.tag;if(0===(1&d.mode)&&(0===f||11===f||15===f)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=Di(s);if(null!==p){p.flags&=-257,ki(p,s,l,0,t),1&p.mode&&Ei(o,c,t),u=c;var g=(t=p).updateQueue;if(null===g){var m=new Set;m.add(u),t.updateQueue=m}else g.add(u);break e}if(0===(1&t)){Ei(o,c,t),Ha();break e}u=Error(a(426))}else if(gn&&1&l.mode){var y=Di(s);if(null!==y){0===(65536&y.flags)&&(y.flags|=256),ki(y,s,l,0,t),Cn(Si(u,l));break e}}o=u=Si(u,l),4!==la&&(la=2),null===ha?ha=[o]:ha.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,nr(o,Ai(0,u,t));break e;case 1:l=u;var v=o.type,b=o.stateNode;if(0===(128&o.flags)&&("function"===typeof v.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Ma||!Ma.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t,nr(o,Ti(o,l,t));break e}}o=o.return}while(null!==o)}Za(n)}catch(x){t=x,ia===n&&null!==n&&(ia=n=n.return);continue}break}}function Qa(){var e=Jo.current;return Jo.current=fi,null===e?fi:e}function Ha(){0!==la&&3!==la&&2!==la||(la=4),null===ra||0===(268435455&ca)&&0===(268435455&da)||za(ra,oa)}function Ya(e,t){var n=na;na|=2;var r=Qa();for(ra===e&&oa===t||(ya=null,Ba(e,t));;)try{Wa();break}catch(i){Va(e,i)}if(Un(),na=n,Jo.current=r,null!==ia)throw Error(a(261));return ra=null,oa=0,la}function Wa(){for(;null!==ia;)qa(ia)}function Ga(){for(;null!==ia&&!Rt();)qa(ia)}function qa(e){var t=ba(e.alternate,e,aa);e.memoizedProps=e.pendingProps,null===t?Za(e):ia=t,ea.current=null}function Za(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=co(n,t,aa)))return void(ia=n)}else{if(null!==(n=fo(n,t)))return n.flags&=32767,void(ia=n);if(null===e)return la=6,void(ia=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(ia=t);ia=t=e}while(null!==t);0===la&&(la=5)}function Ka(e,t,n){var r=_t,i=ta.transition;try{ta.transition=null,_t=1,function(e,t,n,r){do{Xa()}while(null!==ja);if(0!==(6&na))throw Error(a(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-wt(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,o),e===ra&&(ia=ra=null,oa=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Sa||(Sa=!0,is(Qt,(function(){return Xa(),null}))),o=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||o){o=ta.transition,ta.transition=null;var s=_t;_t=1;var l=na;na|=4,ea.current=null,function(e,t){for(L(e.containerInfo),mo=t;null!==mo;)if(t=(e=mo).child,0!==(1028&e.subtreeFlags)&&null!==t)t.return=e,mo=t;else for(;null!==mo;){e=mo;try{var n=e.alternate;if(0!==(1024&e.flags))switch(e.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==n){var r=n.memoizedProps,i=n.memoizedState,o=e.stateNode,s=o.getSnapshotBeforeUpdate(e.elementType===e.type?r:mi(e.type,r),i);o.__reactInternalSnapshotBeforeUpdate=s}break;case 3:q&&Ne(e.stateNode.containerInfo);break;default:throw Error(a(163))}}catch(l){Ja(e,e.return,l)}if(null!==(t=e.sibling)){t.return=e.return,mo=t;break}mo=e.return}n=bo,bo=!1}(e,n),_o(n,e),z(e.containerInfo),e.current=n,Lo(n,e,i),Ft(),na=l,_t=s,ta.transition=o}else e.current=n;if(Sa&&(Sa=!1,ja=e,Na=i),o=e.pendingLanes,0===o&&(Ma=null),function(e){if(Wt&&"function"===typeof Wt.onCommitFiberRoot)try{Wt.onCommitFiberRoot(Yt,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),Ia(e,Ut()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(xa)throw xa=!1,e=wa,wa=null,e;0!==(1&Na)&&0!==e.tag&&Xa(),o=e.pendingLanes,0!==(1&o)?e===Aa?Ca++:(Ca=0,Aa=e):Ca=0,$t()}(e,t,n,r)}finally{ta.transition=i,_t=r}return null}function Xa(){if(null!==ja){var e=Pt(Na),t=ta.transition,n=_t;try{if(ta.transition=null,_t=16>e?16:e,null===ja)var r=!1;else{if(e=ja,ja=null,Na=0,0!==(6&na))throw Error(a(331));var i=na;for(na|=4,mo=e.current;null!==mo;){var o=mo,s=o.child;if(0!==(16&mo.flags)){var l=o.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(mo=c;null!==mo;){var d=mo;switch(d.tag){case 0:case 11:case 15:xo(8,d,o)}var f=d.child;if(null!==f)f.return=d,mo=f;else for(;null!==mo;){var h=(d=mo).sibling,p=d.return;if(So(d),d===c){mo=null;break}if(null!==h){h.return=p,mo=h;break}mo=p}}}var g=o.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var y=m.sibling;m.sibling=null,m=y}while(null!==m)}}mo=o}}if(0!==(2064&o.subtreeFlags)&&null!==s)s.return=o,mo=s;else e:for(;null!==mo;){if(0!==(2048&(o=mo).flags))switch(o.tag){case 0:case 11:case 15:xo(9,o,o.return)}var v=o.sibling;if(null!==v){v.return=o.return,mo=v;break e}mo=o.return}}var b=e.current;for(mo=b;null!==mo;){var x=(s=mo).child;if(0!==(2064&s.subtreeFlags)&&null!==x)x.return=s,mo=x;else e:for(s=b;null!==mo;){if(0!==(2048&(l=mo).flags))try{switch(l.tag){case 0:case 11:case 15:wo(9,l)}}catch(M){Ja(l,l.return,M)}if(l===s){mo=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,mo=w;break e}mo=l.return}}if(na=i,$t(),Wt&&"function"===typeof Wt.onPostCommitFiberRoot)try{Wt.onPostCommitFiberRoot(Yt,e)}catch(M){}r=!0}return r}finally{_t=n,ta.transition=t}}return!1}function $a(e,t,n){e=er(e,t=Ai(0,t=Si(n,t),1),1),t=Da(),null!==e&&(Ot(e,1,t),Ia(e,t))}function Ja(e,t,n){if(3===e.tag)$a(e,e,n);else for(;null!==t;){if(3===t.tag){$a(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Ma||!Ma.has(r))){t=er(t,e=Ti(t,e=Si(n,e),1),1),e=Da(),null!==t&&(Ot(t,1,e),Ia(t,e));break}}t=t.return}}function es(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Da(),e.pingedLanes|=e.suspendedLanes&n,ra===e&&(oa&n)===n&&(4===la||3===la&&(130023424&oa)===oa&&500>Ut()-ga?Ba(e,0):fa|=n),Ia(e,t)}function ts(e,t){0===t&&(0===(1&e.mode)?t=1:(t=Nt,0===(130023424&(Nt<<=1))&&(Nt=4194304)));var n=Da();null!==(e=Zn(e,t))&&(Ot(e,t,n),Ia(e,n))}function ns(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),ts(e,n)}function rs(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),ts(e,n)}function is(e,t){return Lt(e,t)}function os(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function as(e,t,n,r){return new os(e,t,n,r)}function ss(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ls(e,t){var n=e.alternate;return null===n?((n=as(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function us(e,t,n,r,i,o){var s=2;if(r=e,"function"===typeof e)ss(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case c:return cs(n.children,i,o,t);case d:s=8,i|=8;break;case f:return(e=as(12,n,t,2|i)).elementType=f,e.lanes=o,e;case m:return(e=as(13,n,t,i)).elementType=m,e.lanes=o,e;case y:return(e=as(19,n,t,i)).elementType=y,e.lanes=o,e;case x:return ds(n,i,o,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case h:s=10;break e;case p:s=9;break e;case g:s=11;break e;case v:s=14;break e;case b:s=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=as(s,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function cs(e,t,n,r){return(e=as(7,e,r,t)).lanes=n,e}function ds(e,t,n,r){return(e=as(22,e,r,t)).elementType=x,e.lanes=n,e.stateNode={isHidden:!1},e}function fs(e,t,n){return(e=as(6,e,null,t)).lanes=n,e}function hs(e,t,n){return(t=as(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ps(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=W,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=kt(0),this.expirationTimes=kt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kt(0),this.identifierPrefix=r,this.onRecoverableError=i,K&&(this.mutableSourceEagerHydrationData=null)}function gs(e,t,n,r,i,o,a,s,l){return e=new ps(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=as(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xn(o),e}function ms(e){if(!e)return ct;e:{if(N(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(gt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(gt(n))return vt(e,n,t)}return t}function ys(e){var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return null===(e=T(t))?null:e.stateNode}function vs(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function bs(e,t){vs(e,t),(e=e.alternate)&&vs(e,t)}function xs(e){return null===(e=T(e))?null:e.stateNode}function ws(){return null}return ba=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||ft.current)Ii=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return Ii=!1,function(e,t,n){switch(t.tag){case 3:Qi(t),Nn();break;case 5:fr(t);break;case 1:gt(t.type)&&bt(t);break;case 4:cr(t,t.stateNode.containerInfo);break;case 10:Bn(0,t.type._context,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(ut(pr,1&pr.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Xi(e,t,n):(ut(pr,1&pr.current),null!==(e=io(e,t,n))?e.sibling:null);ut(pr,1&pr.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return no(e,t,n);t.flags|=128}var i=t.memoizedState;if(null!==i&&(i.rendering=null,i.tail=null,i.lastEffect=null),ut(pr,pr.current),r)break;return null;case 22:case 23:return t.lanes=0,Ri(e,t,n)}return io(e,t,n)}(e,t,n);Ii=0!==(131072&e.flags)}else Ii=!1,gn&&0!==(1048576&t.flags)&&cn(t,nn,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ro(e,t),e=t.pendingProps;var i=pt(t,dt.current);Hn(t,n),i=Dr(null,t,r,e,i,n);var o=kr();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,gt(r)?(o=!0,bt(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Xn(t),i.updater=vi,t.stateNode=i,i._reactInternals=t,Mi(t,r,e,n),t=Vi(null,t,r,!0,o,n)):(t.tag=0,gn&&o&&dn(t),_i(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ro(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return ss(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===g)return 11;if(e===v)return 14}return 2}(r),e=mi(r,e),i){case 0:t=Ui(null,t,r,e,n);break e;case 1:t=Bi(null,t,r,e,n);break e;case 11:t=Pi(null,t,r,e,n);break e;case 14:t=Li(null,t,r,mi(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ui(e,t,r,i=t.elementType===r?i:mi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Bi(e,t,r,i=t.elementType===r?i:mi(r,i),n);case 3:e:{if(Qi(t),null===e)throw Error(a(387));r=t.pendingProps,i=(o=t.memoizedState).element,$n(e,t),rr(t,r,null,n);var s=t.memoizedState;if(r=s.element,K&&o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Hi(e,t,r,n,i=Si(Error(a(423)),t));break e}if(r!==i){t=Hi(e,t,r,n,i=Si(Error(a(424)),t));break e}for(K&&(pn=Ve(t.stateNode.containerInfo),hn=t,gn=!0,yn=null,mn=!1),n=Pn(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Nn(),r===i){t=io(e,t,n);break e}_i(e,t,r,n)}t=t.child}return t;case 5:return fr(t),null===e&&wn(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,V(r,i)?s=null:null!==o&&V(r,o)&&(t.flags|=32),Fi(e,t),_i(e,t,s,n),t.child;case 6:return null===e&&wn(t),null;case 13:return Xi(e,t,n);case 4:return cr(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=_n(t,null,r,n):_i(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Pi(e,t,r,i=t.elementType===r?i:mi(r,i),n);case 7:return _i(e,t,t.pendingProps,n),t.child;case 8:case 12:return _i(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,Bn(0,r,s=i.value),null!==o)if(Gt(o.value,s)){if(o.children===i.children&&!ft.current){t=io(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var l=o.dependencies;if(null!==l){s=o.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===o.tag){(u=Jn(-1,n&-n)).tag=2;var c=o.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}o.lanes|=n,null!==(u=o.alternate)&&(u.lanes|=n),Qn(o.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===o.tag)s=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(s=o.return))throw Error(a(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Qn(s,n,t),s=o.sibling}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===t){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}_i(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Hn(t,n),r=r(i=Yn(i)),t.flags|=1,_i(e,t,r,n),t.child;case 14:return i=mi(r=t.type,t.pendingProps),Li(e,t,r,i=mi(r.type,i),n);case 15:return zi(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mi(r,i),ro(e,t),t.tag=1,gt(r)?(e=!0,bt(t)):e=!1,Hn(t,n),xi(t,r,i),Mi(t,r,i,n),Vi(null,t,r,!0,e,n);case 19:return no(e,t,n);case 22:return Ri(e,t,n)}throw Error(a(156,t.tag))},t.attemptContinuousHydration=function(e){if(13===e.tag){var t=Zn(e,134217728);if(null!==t)Oa(t,e,134217728,Da());bs(e,134217728)}},t.attemptDiscreteHydration=function(e){if(13===e.tag){var t=Zn(e,1);if(null!==t)Oa(t,e,1,Da());bs(e,1)}},t.attemptHydrationAtCurrentPriority=function(e){if(13===e.tag){var t=ka(e),n=Zn(e,t);if(null!==n)Oa(n,e,t,Da());bs(e,t)}},t.attemptSynchronousHydration=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ct(t.pendingLanes);0!==n&&(It(t,1|n),Ia(t,Ut()),0===(6&na)&&(va(),$t()))}break;case 13:Fa((function(){var t=Zn(e,1);if(null!==t){var n=Da();Oa(t,e,1,n)}})),bs(e,1)}},t.batchedUpdates=function(e,t){var n=na;na|=1;try{return e(t)}finally{0===(na=n)&&(va(),Zt&&$t())}},t.createComponentSelector=function(e){return{$$typeof:Bo,value:e}},t.createContainer=function(e,t,n,r,i,o,a){return gs(e,t,!1,null,0,r,0,o,a)},t.createHasPseudoClassSelector=function(e){return{$$typeof:Vo,value:e}},t.createHydrationContainer=function(e,t,n,r,i,o,a,s,l){return(e=gs(n,r,!0,e,0,o,0,s,l)).context=ms(null),n=e.current,(o=Jn(r=Da(),i=ka(n))).callback=void 0!==t&&null!==t?t:null,er(n,o,i),e.current.lanes=i,Ot(e,i,r),Ia(e,r),e},t.createPortal=function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:u,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}},t.createRoleSelector=function(e){return{$$typeof:Qo,value:e}},t.createTestNameSelector=function(e){return{$$typeof:Ho,value:e}},t.createTextSelector=function(e){return{$$typeof:Yo,value:e}},t.deferredUpdates=function(e){var t=_t,n=ta.transition;try{return ta.transition=null,_t=16,e()}finally{_t=t,ta.transition=n}},t.discreteUpdates=function(e,t,n,r,i){var o=_t,a=ta.transition;try{return ta.transition=null,_t=1,e(t,n,r,i)}finally{_t=o,ta.transition=a,0===na&&va()}},t.findAllNodes=Xo,t.findBoundingRects=function(e,t){if(!re)throw Error(a(363));t=Xo(e,t),e=[];for(var n=0;n<t.length;n++)e.push(oe(t[n]));for(t=e.length-1;0<t;t--)for(var r=(n=e[t]).x,i=r+n.width,o=n.y,s=o+n.height,l=t-1;0<=l;l--)if(t!==l){var u=e[l],c=u.x,d=c+u.width,f=u.y,h=f+u.height;if(r>=c&&o>=f&&i<=d&&s<=h){e.splice(t,1);break}if(!(r!==c||n.width!==u.width||h<o||f>s)){f>o&&(u.height+=f-o,u.y=o),h<s&&(u.height=s-f),e.splice(t,1);break}if(!(o!==f||n.height!==u.height||d<r||c>i)){c>r&&(u.width+=c-r,u.x=r),d<i&&(u.width=i-c),e.splice(t,1);break}}return e},t.findHostInstance=ys,t.findHostInstanceWithNoPortals=function(e){return null===(e=null!==(e=A(e))?D(e):null)?null:e.stateNode},t.findHostInstanceWithWarning=function(e){return ys(e)},t.flushControlled=function(e){var t=na;na|=1;var n=ta.transition,r=_t;try{ta.transition=null,_t=1,e()}finally{_t=r,ta.transition=n,0===(na=t)&&(va(),$t())}},t.flushPassiveEffects=Xa,t.flushSync=Fa,t.focusWithin=function(e,t){if(!re)throw Error(a(363));for(t=Ko(e=Go(e),t),t=Array.from(t),e=0;e<t.length;){var n=t[e++];if(!se(n)){if(5===n.tag&&ue(n.stateNode))return!0;for(n=n.child;null!==n;)t.push(n),n=n.sibling}}return!1},t.getCurrentUpdatePriority=function(){return _t},t.getFindAllNodesFailureDescription=function(e,t){if(!re)throw Error(a(363));var n=0,r=[];e=[Go(e),0];for(var i=0;i<e.length;){var o=e[i++],s=e[i++],l=t[s];if((5!==o.tag||!se(o))&&(qo(o,l)&&(r.push(Zo(l)),++s>n&&(n=s)),s<t.length))for(o=o.child;null!==o;)e.push(o,s),o=o.sibling}if(n<t.length){for(e=[];n<t.length;n++)e.push(Zo(t[n]));return"findAllNodes was able to match part of the selector:\n "+r.join(" > ")+"\n\nNo matching component was found for:\n "+e.join(" > ")}return null},t.getPublicRootInstance=function(e){return(e=e.current).child?5===e.child.tag?I(e.child.stateNode):e.child.stateNode:null},t.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:xs,findFiberByHostInstance:e.findFiberByHostInstance||ws,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1"},"undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)e=!0;else{try{Yt=t.inject(e),Wt=t}catch(n){}e=!!t.checkDCE}}return e},t.isAlreadyRendering=function(){return!1},t.observeVisibleRects=function(e,t,n,r){if(!re)throw Error(a(363));e=Xo(e,t);var i=ce(e,n,r).disconnect;return{disconnect:function(){i()}}},t.registerMutableSourceForHydration=function(e,t){var n=t._getVersion;n=n(t._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},t.runWithPriority=function(e,t){var n=_t;try{return _t=e,t()}finally{_t=n}},t.shouldError=function(){return null},t.shouldSuspend=function(){return!1},t.updateContainer=function(e,t,n,r){var i=t.current,o=Da(),a=ka(i);return n=ms(n),null===t.context?t.context=n:t.pendingContext=n,(t=Jn(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=er(i,t,a))&&(Oa(e,i,a,o),tr(e,i,a)),a},t}},1738:(e,t,n)=>{"use strict";e.exports=n(6741)},935:(e,t,n)=>{"use strict";e.exports=n(9258)},514:function(e,t,n){var r;r=e=>(()=>{var t={"./node_modules/css-mediaquery/index.js":(e,t)=>{"use strict";t.match=function(e,t){return s(e).some((function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var i=e.expressions.every((function(e){var n=e.feature,r=e.modifier,i=e.value,o=t[n];if(!o)return!1;switch(n){case"orientation":case"scan":return o.toLowerCase()===i.toLowerCase();case"width":case"height":case"device-width":case"device-height":i=c(i),o=c(o);break;case"resolution":i=u(i),o=u(o);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":i=l(i),o=l(o);break;case"grid":case"color":case"color-index":case"monochrome":i=parseInt(i,10)||1,o=parseInt(o,10)||0}switch(r){case"min":return o>=i;case"max":return o<=i;default:return o===i}}));return i&&!n||!i&&n}))},t.parse=s;var n=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,r=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,i=/^(?:(min|max)-)?(.+)/,o=/(em|rem|px|cm|mm|in|pt|pc)?$/,a=/(dpi|dpcm|dppx)?$/;function s(e){return e.split(",").map((function(e){var t=(e=e.trim()).match(n),o=t[1],a=t[2],s=t[3]||"",l={};return l.inverse=!!o&&"not"===o.toLowerCase(),l.type=a?a.toLowerCase():"all",s=s.match(/\([^\)]+\)/g)||[],l.expressions=s.map((function(e){var t=e.match(r),n=t[1].toLowerCase().match(i);return{modifier:n[1],feature:n[2],value:t[2]}})),l}))}function l(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function u(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function c(e){var t=parseFloat(e);switch(String(e).match(o)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},"./node_modules/hyphenate-style-name/index.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=/[A-Z]/g,i=/^ms-/,o={};function a(e){return"-"+e.toLowerCase()}const s=function(e){if(o.hasOwnProperty(e))return o[e];var t=e.replace(r,a);return o[e]=i.test(t)?"-"+t:t}},"./node_modules/matchmediaquery/index.js":(e,t,n)=>{"use strict";var r=n("./node_modules/css-mediaquery/index.js").match,i="undefined"!==typeof window?window.matchMedia:null;function o(e,t,n){var o=this;if(i&&!n){var a=i.call(window,e);this.matches=a.matches,this.media=a.media,a.addListener(s)}else this.matches=r(e,t),this.media=e;function s(e){o.matches=e.matches,o.media=e.media}this.addListener=function(e){a&&a.addListener(e)},this.removeListener=function(e){a&&a.removeListener(e)},this.dispose=function(){a&&a.removeListener(s)}}e.exports=function(e,t,n){return new o(e,t,n)}},"./node_modules/object-assign/index.js":e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,i){for(var o,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]))n.call(o,u)&&(s[u]=o[u]);if(t){a=t(o);for(var c=0;c<a.length;c++)r.call(o,a[c])&&(s[a[c]]=o[a[c]])}}return s}},"./node_modules/prop-types/checkPropTypes.js":(e,t,n)=>{"use strict";var r=function(){},i=n("./node_modules/prop-types/lib/ReactPropTypesSecret.js"),o={},a=n("./node_modules/prop-types/lib/has.js");function s(e,t,n,s,l){for(var u in e)if(a(e,u)){var c;try{if("function"!==typeof e[u]){var d=Error((s||"React class")+": "+n+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}c=e[u](t,u,s,n,null,i)}catch(h){c=h}if(!c||c instanceof Error||r((s||"React class")+": type specification of "+n+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in o)){o[c.message]=!0;var f=l?l():"";r("Failed "+n+" type: "+c.message+(null!=f?f:""))}}}r=function(e){var t="Warning: "+e;"undefined"!==typeof console&&console.error(t);try{throw new Error(t)}catch(n){}},s.resetWarningCache=function(){o={}},e.exports=s},"./node_modules/prop-types/factoryWithTypeCheckers.js":(e,t,n)=>{"use strict";var r=n("./node_modules/react-is/index.js"),i=n("./node_modules/object-assign/index.js"),o=n("./node_modules/prop-types/lib/ReactPropTypesSecret.js"),a=n("./node_modules/prop-types/lib/has.js"),s=n("./node_modules/prop-types/checkPropTypes.js"),l=function(){};function u(){return null}l=function(e){var t="Warning: "+e;"undefined"!==typeof console&&console.error(t);try{throw new Error(t)}catch(n){}},e.exports=function(e,t){var n="function"===typeof Symbol&&Symbol.iterator,c="@@iterator",d="<<anonymous>>",f={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:g(u),arrayOf:function(e){return g((function(t,n,r,i,a){if("function"!==typeof e)return new p("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s))return new p("Invalid "+i+" `"+a+"` of type `"+b(s)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l<s.length;l++){var u=e(s,l,r,i,a+"["+l+"]",o);if(u instanceof Error)return u}return null}))},element:g((function(t,n,r,i,o){var a=t[n];return e(a)?null:new p("Invalid "+i+" `"+o+"` of type `"+b(a)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:g((function(e,t,n,i,o){var a=e[t];return r.isValidElementType(a)?null:new p("Invalid "+i+" `"+o+"` of type `"+b(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return g((function(t,n,r,i,o){if(!(t[n]instanceof e)){var a=e.name||d;return new p("Invalid "+i+" `"+o+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:d)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:g((function(e,t,n,r,i){return v(e[t])?null:new p("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return g((function(t,n,r,i,s){if("function"!==typeof e)return new p("Property `"+s+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var l=t[n],u=b(l);if("object"!==u)return new p("Invalid "+i+" `"+s+"` of type `"+u+"` supplied to `"+r+"`, expected an object.");for(var c in l)if(a(l,c)){var d=e(l,c,r,i,s+"."+c,o);if(d instanceof Error)return d}return null}))},oneOf:function(e){return Array.isArray(e)?g((function(t,n,r,i,o){for(var a=t[n],s=0;s<e.length;s++)if(h(a,e[s]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===x(t)?String(t):t}));return new p("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+l+".")})):(l(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),u)},oneOfType:function(e){if(!Array.isArray(e))return l("Invalid argument supplied to oneOfType, expected an instance of array."),u;for(var t=0;t<e.length;t++){var n=e[t];if("function"!==typeof n)return l("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(n)+" at index "+t+"."),u}return g((function(t,n,r,i,s){for(var l=[],u=0;u<e.length;u++){var c=(0,e[u])(t,n,r,i,s,o);if(null==c)return null;c.data&&a(c.data,"expectedType")&&l.push(c.data.expectedType)}return new p("Invalid "+i+" `"+s+"` supplied to `"+r+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return g((function(t,n,r,i,a){var s=t[n],l=b(s);if("object"!==l)return new p("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var u in e){var c=e[u];if("function"!==typeof c)return y(r,i,a,u,x(c));var d=c(s,u,r,i,a+"."+u,o);if(d)return d}return null}))},exact:function(e){return g((function(t,n,r,s,l){var u=t[n],c=b(u);if("object"!==c)return new p("Invalid "+s+" `"+l+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");var d=i({},t[n],e);for(var f in d){var h=e[f];if(a(e,f)&&"function"!==typeof h)return y(r,s,l,f,x(h));if(!h)return new p("Invalid "+s+" `"+l+"` key `"+f+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=h(u,f,r,s,l+"."+f,o);if(g)return g}return null}))}};function h(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function p(e,t){this.message=e,this.data=t&&"object"===typeof t?t:{},this.stack=""}function g(e){var n={},r=0;function i(i,a,s,u,c,f,h){if(u=u||d,f=f||s,h!==o){if(t){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}if("undefined"!==typeof console){var m=u+":"+s;!n[m]&&r<3&&(l("You are manually calling a React.PropTypes validation function for the `"+f+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[m]=!0,r++)}}return null==a[s]?i?null===a[s]?new p("The "+c+" `"+f+"` is marked as required in `"+u+"`, but its value is `null`."):new p("The "+c+" `"+f+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(a,s,u,c,f)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function m(e){return g((function(t,n,r,i,o,a){var s=t[n];return b(s)!==e?new p("Invalid "+i+" `"+o+"` of type `"+x(s)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function y(e,t,n,r,i){return new p((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function v(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(v);if(null===t||e(t))return!0;var r=function(e){var t=e&&(n&&e[n]||e[c]);if("function"===typeof t)return t}(t);if(!r)return!1;var i,o=r.call(t);if(r!==t.entries){for(;!(i=o.next()).done;)if(!v(i.value))return!1}else for(;!(i=o.next()).done;){var a=i.value;if(a&&!v(a[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"===typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function x(e){if("undefined"===typeof e||null===e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=x(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,f.checkPropTypes=s,f.resetWarningCache=s.resetWarningCache,f.PropTypes=f,f}},"./node_modules/prop-types/index.js":(e,t,n)=>{var r=n("./node_modules/react-is/index.js");e.exports=n("./node_modules/prop-types/factoryWithTypeCheckers.js")(r.isElement,!0)},"./node_modules/prop-types/lib/ReactPropTypesSecret.js":e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},"./node_modules/prop-types/lib/has.js":e=>{e.exports=Function.call.bind(Object.prototype.hasOwnProperty)},"./node_modules/react-is/cjs/react-is.development.js":(e,t)=>{"use strict";!function(){var e="function"===typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var h=e.type;switch(h){case u:case c:case i:case a:case o:case f:return h;default:var m=h&&h.$$typeof;switch(m){case l:case d:case g:case p:case s:return m;default:return t}}case r:return t}}}var w=u,M=c,S=l,j=s,N=n,C=d,A=i,T=g,E=p,D=r,k=a,O=o,I=f,_=!1;function P(e){return x(e)===c}t.AsyncMode=w,t.ConcurrentMode=M,t.ContextConsumer=S,t.ContextProvider=j,t.Element=N,t.ForwardRef=C,t.Fragment=A,t.Lazy=T,t.Memo=E,t.Portal=D,t.Profiler=k,t.StrictMode=O,t.Suspense=I,t.isAsyncMode=function(e){return _||(_=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),P(e)||x(e)===u},t.isConcurrentMode=P,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===s},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===p},t.isPortal=function(e){return x(e)===r},t.isProfiler=function(e){return x(e)===a},t.isStrictMode=function(e){return x(e)===o},t.isSuspense=function(e){return x(e)===f},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===c||e===a||e===o||e===f||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===p||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===y||e.$$typeof===v||e.$$typeof===b||e.$$typeof===m)},t.typeOf=x}()},"./node_modules/react-is/index.js":(e,t,n)=>{"use strict";e.exports=n("./node_modules/react-is/cjs/react-is.development.js")},"./node_modules/shallow-equal/dist/index.esm.js":(e,t,n)=>{"use strict";function r(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var o=0;o<i;o++){var a=n[o];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}function i(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}n.r(t),n.d(t,{shallowEqualArrays:()=>i,shallowEqualObjects:()=>r})},"./src/Component.ts":function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n("./src/useMediaQuery.ts"));t.default=function(e){var t=e.children,n=e.device,i=e.onChange,a=r(e,["children","device","onChange"]),s=(0,o.default)(a,n,i);return"function"===typeof t?t(s):s?t:null}},"./src/Context.ts":(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(0,n("react").createContext)(void 0);t.default=r},"./src/index.ts":function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Context=t.toQuery=t.useMediaQuery=t.default=void 0;var i=r(n("./src/useMediaQuery.ts"));t.useMediaQuery=i.default;var o=r(n("./src/Component.ts"));t.default=o.default;var a=r(n("./src/toQuery.ts"));t.toQuery=a.default;var s=r(n("./src/Context.ts"));t.Context=s.default},"./src/mediaQuery.ts":function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(n("./node_modules/prop-types/index.js")),s=a.default.oneOfType([a.default.string,a.default.number]),l={all:a.default.bool,grid:a.default.bool,aural:a.default.bool,braille:a.default.bool,handheld:a.default.bool,print:a.default.bool,projection:a.default.bool,screen:a.default.bool,tty:a.default.bool,tv:a.default.bool,embossed:a.default.bool},u={orientation:a.default.oneOf(["portrait","landscape"]),scan:a.default.oneOf(["progressive","interlace"]),aspectRatio:a.default.string,deviceAspectRatio:a.default.string,height:s,deviceHeight:s,width:s,deviceWidth:s,color:a.default.bool,colorIndex:a.default.bool,monochrome:a.default.bool,resolution:s,type:Object.keys(l)},c=i(u,["type"]),d=r({minAspectRatio:a.default.string,maxAspectRatio:a.default.string,minDeviceAspectRatio:a.default.string,maxDeviceAspectRatio:a.default.string,minHeight:s,maxHeight:s,minDeviceHeight:s,maxDeviceHeight:s,minWidth:s,maxWidth:s,minDeviceWidth:s,maxDeviceWidth:s,minColor:a.default.number,maxColor:a.default.number,minColorIndex:a.default.number,maxColorIndex:a.default.number,minMonochrome:a.default.number,maxMonochrome:a.default.number,minResolution:s,maxResolution:s},c),f=r(r({},l),d);t.default={all:f,types:l,matchers:u,features:d}},"./src/toQuery.ts":function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n("./node_modules/hyphenate-style-name/index.js")),o=r(n("./src/mediaQuery.ts"));t.default=function(e){var t=[];return Object.keys(o.default.all).forEach((function(n){var r=e[n];null!=r&&t.push(function(e,t){var n=(0,i.default)(e);return"number"===typeof t&&(t="".concat(t,"px")),!0===t?n:!1===t?"not ".concat(n):"(".concat(n,": ").concat(t,")")}(n,r))})),t.join(" and ")}},"./src/useMediaQuery.ts":function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n("react"),o=r(n("./node_modules/matchmediaquery/index.js")),a=r(n("./node_modules/hyphenate-style-name/index.js")),s=n("./node_modules/shallow-equal/dist/index.esm.js"),l=r(n("./src/toQuery.ts")),u=r(n("./src/Context.ts")),c=function(e){if(e)return Object.keys(e).reduce((function(t,n){return t[(0,a.default)(n)]=e[n],t}),{})},d=function(){var e=(0,i.useRef)(!1);return(0,i.useEffect)((function(){e.current=!0}),[]),e.current},f=function(e){var t=function(){return function(e){return e.query||(0,l.default)(e)}(e)},n=(0,i.useState)(t),r=n[0],o=n[1];return(0,i.useEffect)((function(){var e=t();r!==e&&o(e)}),[e]),r};t.default=function(e,t,n){var r=function(e){var t=(0,i.useContext)(u.default),n=function(){return c(e)||c(t)},r=(0,i.useState)(n),o=r[0],a=r[1];return(0,i.useEffect)((function(){var e=n();(0,s.shallowEqualObjects)(o,e)||a(e)}),[e,t]),o}(t),a=f(e);if(!a)throw new Error("Invalid or missing MediaQuery!");var l=function(e,t){var n=function(){return(0,o.default)(e,t||{},!!t)},r=(0,i.useState)(n),a=r[0],s=r[1],l=d();return(0,i.useEffect)((function(){if(l){var e=n();return s(e),function(){e&&e.dispose()}}}),[e,t]),a}(a,r),h=function(e){var t=(0,i.useState)(e.matches),n=t[0],r=t[1];return(0,i.useEffect)((function(){var t=function(e){r(e.matches)};return e.addListener(t),r(e.matches),function(){e.removeListener(t)}}),[e]),n}(l),p=d();return(0,i.useEffect)((function(){p&&n&&n(h)}),[h]),(0,i.useEffect)((function(){return function(){l&&l.dispose()}}),[]),h}},react:t=>{"use strict";t.exports=e}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}};return t[e].call(o.exports,o,o.exports,r),o.exports}return r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r("./src/index.ts")})(),e.exports=r(n(810))},1665:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},2911:(e,t,n)=>{var r=n(1665);e.exports=h,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=f;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,a=0,s="",c=t&&t.delimiter||"/";null!=(n=i.exec(e));){var d=n[0],f=n[1],h=n.index;if(s+=e.slice(a,h),a=h+d.length,f)s+=f[1];else{var p=e[a],g=n[2],m=n[3],y=n[4],v=n[5],b=n[6],x=n[7];s&&(r.push(s),s="");var w=null!=g&&null!=p&&p!==g,M="+"===b||"*"===b,S="?"===b||"*"===b,j=n[2]||c,N=y||v;r.push({name:m||o++,prefix:g||"",delimiter:j,optional:S,repeat:M,partial:w,asterisk:!!x,pattern:N?u(N):x?".*":"[^"+l(j)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"===typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",d(t)));return function(t,i){for(var o="",s=t||{},l=(i||{}).pretty?a:encodeURIComponent,u=0;u<e.length;u++){var c=e[u];if("string"!==typeof c){var d,f=s[c.name];if(null==f){if(c.optional){c.partial&&(o+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(r(f)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var h=0;h<f.length;h++){if(d=l(f[h]),!n[u].test(d))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(d)+"`");o+=(0===h?c.prefix:c.delimiter)+d}}else{if(d=c.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(f),!n[u].test(d))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+d+'"');o+=c.prefix+d}}else o+=c}return o}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function c(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function f(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<e.length;s++){var u=e[s];if("string"===typeof u)a+=l(u);else{var f=l(u.prefix),h="(?:"+u.pattern+")";t.push(u),u.repeat&&(h+="(?:"+f+h+")*"),a+=h=u.optional?u.partial?f+"("+h+")?":"(?:"+f+"("+h+"))?":f+"("+h+")"}}var p=l(n.delimiter||"/"),g=a.slice(-p.length)===p;return i||(a=(g?a.slice(0,-p.length):a)+"(?:"+p+"(?=$))?"),a+=o?"$":i&&g?"":"(?="+p+"|$)",c(new RegExp("^"+a,d(n)),t)}function h(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return c(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(h(e[i],t,n).source);return c(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return f(o(e,n),t,n)}(e,t,n)}},8730:function(e,t,n){var r;r=function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.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 i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));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="./src/react-webcam.tsx")}({"./src/react-webcam.tsx":function(e,t,n){"use strict";n.r(t);var r=n("react"),i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)},a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function s(){return!(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)}"undefined"!==typeof window&&(void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(e){var t=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;return t?new Promise((function(n,r){t.call(navigator,e,n,r)})):Promise.reject(new Error("getUserMedia is not implemented in this browser"))}));var l=function(e){function t(t){var n=e.call(this,t)||this;return n.canvas=null,n.ctx=null,n.requestUserMediaId=0,n.unmounted=!1,n.state={hasUserMedia:!1},n}return i(t,e),t.prototype.componentDidMount=function(){var e=this.state,t=this.props;this.unmounted=!1,s()?(e.hasUserMedia||this.requestUserMedia(),t.children&&"function"!=typeof t.children&&console.warn("children must be a function")):t.onUserMediaError("getUserMedia not supported")},t.prototype.componentDidUpdate=function(e){var t=this.props;if(s()){var n=JSON.stringify(e.audioConstraints)!==JSON.stringify(t.audioConstraints),r=JSON.stringify(e.videoConstraints)!==JSON.stringify(t.videoConstraints),i=e.minScreenshotWidth!==t.minScreenshotWidth,o=e.minScreenshotHeight!==t.minScreenshotHeight;(r||i||o)&&(this.canvas=null,this.ctx=null),(n||r)&&(this.stopAndCleanup(),this.requestUserMedia())}else t.onUserMediaError("getUserMedia not supported")},t.prototype.componentWillUnmount=function(){this.unmounted=!0,this.stopAndCleanup()},t.stopMediaStream=function(e){e&&(e.getVideoTracks&&e.getAudioTracks?(e.getVideoTracks().map((function(t){e.removeTrack(t),t.stop()})),e.getAudioTracks().map((function(t){e.removeTrack(t),t.stop()}))):e.stop())},t.prototype.stopAndCleanup=function(){var e=this.state;e.hasUserMedia&&(t.stopMediaStream(this.stream),e.src&&window.URL.revokeObjectURL(e.src))},t.prototype.getScreenshot=function(e){var t=this.state,n=this.props;if(!t.hasUserMedia)return null;var r=this.getCanvas(e);return r&&r.toDataURL(n.screenshotFormat,n.screenshotQuality)},t.prototype.getCanvas=function(e){var t=this.state,n=this.props;if(!this.video)return null;if(!t.hasUserMedia||!this.video.videoHeight)return null;if(!this.ctx){var r=this.video.videoWidth,i=this.video.videoHeight;if(!this.props.forceScreenshotSourceSize){var o=r/i;i=(r=n.minScreenshotWidth||this.video.clientWidth)/o,n.minScreenshotHeight&&i<n.minScreenshotHeight&&(r=(i=n.minScreenshotHeight)*o)}this.canvas=document.createElement("canvas"),this.canvas.width=(null===e||void 0===e?void 0:e.width)||r,this.canvas.height=(null===e||void 0===e?void 0:e.height)||i,this.ctx=this.canvas.getContext("2d")}var a=this.ctx,s=this.canvas;return a&&s&&(s.width=(null===e||void 0===e?void 0:e.width)||s.width,s.height=(null===e||void 0===e?void 0:e.height)||s.height,n.mirrored&&(a.translate(s.width,0),a.scale(-1,1)),a.imageSmoothingEnabled=n.imageSmoothing,a.drawImage(this.video,0,0,(null===e||void 0===e?void 0:e.width)||s.width,(null===e||void 0===e?void 0:e.height)||s.height),n.mirrored&&(a.scale(-1,1),a.translate(-s.width,0))),s},t.prototype.requestUserMedia=function(){var e=this,n=this.props,r=function(r,i){var o={video:"undefined"===typeof i||i};n.audio&&(o.audio="undefined"===typeof r||r),e.requestUserMediaId++;var a=e.requestUserMediaId;navigator.mediaDevices.getUserMedia(o).then((function(n){e.unmounted||a!==e.requestUserMediaId?t.stopMediaStream(n):e.handleUserMedia(null,n)})).catch((function(t){e.handleUserMedia(t)}))};if("mediaDevices"in navigator)r(n.audioConstraints,n.videoConstraints);else{var i=function(e){return{optional:[{sourceId:e}]}},o=function(e){var t=e.deviceId;return"string"===typeof t?t:Array.isArray(t)&&t.length>0?t[0]:"object"===typeof t&&t.ideal?t.ideal:null};MediaStreamTrack.getSources((function(e){var t=null,a=null;e.forEach((function(e){"audio"===e.kind?t=e.id:"video"===e.kind&&(a=e.id)}));var s=o(n.audioConstraints);s&&(t=s);var l=o(n.videoConstraints);l&&(a=l),r(i(t),i(a))}))}},t.prototype.handleUserMedia=function(e,t){var n=this.props;if(e||!t)return this.setState({hasUserMedia:!1}),void n.onUserMediaError(e);this.stream=t;try{this.video&&(this.video.srcObject=t),this.setState({hasUserMedia:!0})}catch(r){this.setState({hasUserMedia:!0,src:window.URL.createObjectURL(t)})}n.onUserMedia(t)},t.prototype.render=function(){var e=this,t=this.state,n=this.props,i=n.audio,s=(n.forceScreenshotSourceSize,n.disablePictureInPicture),l=(n.onUserMedia,n.onUserMediaError,n.screenshotFormat,n.screenshotQuality,n.minScreenshotWidth,n.minScreenshotHeight,n.audioConstraints,n.videoConstraints,n.imageSmoothing,n.mirrored),u=n.style,c=void 0===u?{}:u,d=n.children,f=a(n,["audio","forceScreenshotSourceSize","disablePictureInPicture","onUserMedia","onUserMediaError","screenshotFormat","screenshotQuality","minScreenshotWidth","minScreenshotHeight","audioConstraints","videoConstraints","imageSmoothing","mirrored","style","children"]),h=l?o(o({},c),{transform:(c.transform||"")+" scaleX(-1)"}):c,p={getScreenshot:this.getScreenshot.bind(this)};return r.createElement(r.Fragment,null,r.createElement("video",o({autoPlay:!0,disablePictureInPicture:s,src:t.src,muted:!i,playsInline:!0,ref:function(t){e.video=t},style:h},f)),d&&d(p))},t.defaultProps={audio:!1,disablePictureInPicture:!1,forceScreenshotSourceSize:!1,imageSmoothing:!0,mirrored:!1,onUserMedia:function(){},onUserMediaError:function(){},screenshotFormat:"image/webp",screenshotQuality:.92},t}(r.Component);t.default=l},react:function(t,n){t.exports=e}}).default},e.exports=r(n(810))},3434:(e,t,n)=>{"use strict";var r=n(810),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,o={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:c,props:o,_owner:s.current}}t.Fragment=o,t.jsx=u,t.jsxs=u},181:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var x=b.prototype=new v;x.constructor=b,g(x,y.prototype),x.isPureReactComponent=!0;var w=Array.isArray,M=Object.prototype.hasOwnProperty,S={current:null},j={key:!0,ref:!0,__self:!0,__source:!0};function N(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)M.call(t,i)&&!j.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:S.current}}function C(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var A=/\/+/g;function T(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function E(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===o?"."+T(l,0):o,w(a)?(i="",null!=e&&(i=e.replace(A,"$&/")+"/"),E(a,t,i,"",(function(e){return e}))):null!=a&&(C(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(A,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",w(e))for(var u=0;u<e.length;u++){var c=o+T(s=e[u],u);l+=E(s,t,i,c,a)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=E(s=s.value,t,i,c=o+T(s,u++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function D(e,t,n){if(null==e)return e;var r=[],i=0;return E(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function k(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var O={current:null},I={transition:null},_={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:I,ReactCurrentOwner:S};function P(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:D,forEach:function(e,t,n){D(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return D(e,(function(){t++})),t},toArray:function(e){return D(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_,t.act=P,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=g({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=S.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)M.call(t,u)&&!j.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=N,t.createFactory=function(e){var t=N.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:k}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=P,t.useCallback=function(e,t){return O.current.useCallback(e,t)},t.useContext=function(e){return O.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return O.current.useDeferredValue(e)},t.useEffect=function(e,t){return O.current.useEffect(e,t)},t.useId=function(){return O.current.useId()},t.useImperativeHandle=function(e,t,n){return O.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return O.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return O.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return O.current.useMemo(e,t)},t.useReducer=function(e,t,n){return O.current.useReducer(e,t,n)},t.useRef=function(e){return O.current.useRef(e)},t.useState=function(e){return O.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return O.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return O.current.useTransition()},t.version="18.3.1"},810:(e,t,n)=>{"use strict";e.exports=n(181)},4434:(e,t,n)=>{"use strict";e.exports=n(3434)},9653:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,f=null,h=3,p=!1,g=!1,m=!1,y="function"===typeof setTimeout?setTimeout:null,v="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function x(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function w(e){if(m=!1,x(e),!g)if(null!==r(u))g=!0,I(M);else{var t=r(c);null!==t&&_(w,t.startTime-e)}}function M(e,n){g=!1,m&&(m=!1,v(C),C=-1),p=!0;var o=h;try{for(x(n),f=r(u);null!==f&&(!(f.expirationTime>n)||e&&!E());){var a=f.callback;if("function"===typeof a){f.callback=null,h=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?f.callback=s:f===r(u)&&i(u),x(n)}else i(u);f=r(u)}if(null!==f)var l=!0;else{var d=r(c);null!==d&&_(w,d.startTime-n),l=!1}return l}finally{f=null,h=o,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,j=!1,N=null,C=-1,A=5,T=-1;function E(){return!(t.unstable_now()-T<A)}function D(){if(null!==N){var e=t.unstable_now();T=e;var n=!0;try{n=N(!0,e)}finally{n?S():(j=!1,N=null)}}else j=!1}if("function"===typeof b)S=function(){b(D)};else if("undefined"!==typeof MessageChannel){var k=new MessageChannel,O=k.port2;k.port1.onmessage=D,S=function(){O.postMessage(null)}}else S=function(){y(D,0)};function I(e){N=e,j||(j=!0,S())}function _(e,n){C=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||p||(g=!0,I(M))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?a+o:a:o=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(c,e),null===r(u)&&e===r(c)&&(m?(v(C),C=-1):m=!0,_(w,o-a))):(e.sortIndex=s,n(u,e),g||p||(g=!0,I(M))),e},t.unstable_shouldYield=E,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},320:(e,t,n)=>{"use strict";e.exports=n(9653)},1063:(e,t,n)=>{"use strict";var r=n(6707),i=n(231),o=n(3458)(),a=n(1605),s=n(377),l=r("%Math.floor%");e.exports=function(e,t){if("function"!==typeof e)throw new s("`fn` is not a function");if("number"!==typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,u=!0;if("length"in e&&a){var c=a(e,"length");c&&!c.configurable&&(r=!1),c&&!c.writable&&(u=!1)}return(r||u||!n)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},1914:(e,t,n)=>{"use strict";var r=n(6707),i=n(2753),o=n(9926),a=n(377),s=r("%WeakMap%",!0),l=r("%Map%",!0),u=i("WeakMap.prototype.get",!0),c=i("WeakMap.prototype.set",!0),d=i("WeakMap.prototype.has",!0),f=i("Map.prototype.get",!0),h=i("Map.prototype.set",!0),p=i("Map.prototype.has",!0),g=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+o(e))},get:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(e)return u(e,r)}else if(l){if(t)return f(t,r)}else if(n)return function(e,t){var n=g(e,t);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(e)return d(e,r)}else if(l){if(t)return p(t,r)}else if(n)return function(e,t){return!!g(e,t)}(n,r);return!1},set:function(r,i){s&&r&&("object"===typeof r||"function"===typeof r)?(e||(e=new s),c(e,r,i)):l?(t||(t=new l),h(t,r,i)):(n||(n={key:{},next:null}),function(e,t,n){var r=g(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,i))}};return r}},197:(e,t,n)=>{"use strict";var r=n(810);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(r){return!0}}var c="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s((function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})}),[e,n,t]),a((function(){return u(i)&&c({inst:i}),e((function(){u(i)&&c({inst:i})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},1674:(e,t,n)=>{"use strict";var r=n(810),i=n(254);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},a=i.useSyncExternalStore,s=r.useRef,l=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=u((function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var n=r(e);return void 0!==i&&i(t,n)?t:(a=e,s=n)}var a,s,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,i]);var h=a(e,d[0],d[1]);return l((function(){f.hasValue=!0,f.value=h}),[h]),c(h),h}},7028:(e,t,n)=>{"use strict";var r=n(810);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,l=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,c){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l((function(){function e(e){if(!s){if(s=!0,o=e,e=r(e),void 0!==c&&f.hasValue){var t=f.value;if(c(t,e))return a=t}return a=e}if(t=a,i(o,e))return t;var n=r(e);return void 0!==c&&c(t,n)?t:(o=e,a=n)}var o,a,s=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,n,r,c]);var h=o(e,d[0],d[1]);return s((function(){f.hasValue=!0,f.value=h}),[h]),u(h),h}},254:(e,t,n)=>{"use strict";e.exports=n(197)},4544:(e,t,n)=>{"use strict";e.exports=n(1674)},652:(e,t,n)=>{"use strict";e.exports=n(7028)},7657:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},1818:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DOMException:()=>M,Headers:()=>c,Request:()=>y,Response:()=>x,fetch:()=>S});var r="undefined"!==typeof globalThis&&globalThis||"undefined"!==typeof self&&self||"undefined"!==typeof n.g&&n.g||{},i={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};if(i.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(e){return e&&o.indexOf(Object.prototype.toString.call(e))>-1};function s(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function l(e){return"string"!==typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i.iterable&&(t[Symbol.iterator]=function(){return t}),t}function c(e){this.map={},e instanceof c?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function d(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function h(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function p(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:i.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():i.arrayBuffer&&i.blob&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=p(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||a(e))?this._bodyArrayBuffer=p(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=d(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(i.blob)return this.blob().then(h);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=f(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=r?r[1]:"utf-8";return t.readAsText(e,i),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(v)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(e,t){e=s(e),t=l(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},c.prototype.delete=function(e){delete this.map[s(e)]},c.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},c.prototype.set=function(e,t){this.map[s(e)]=l(t)},c.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},c.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),u(e)},c.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),u(e)},c.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),u(e)},i.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var m=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function y(e,t){if(!(this instanceof y))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n=(t=t||{}).body;if(e instanceof y){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new c(t.headers)),this.method=function(e){var t=e.toUpperCase();return m.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in r)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function v(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function b(e){var t=new c;return e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();try{t.append(r,i)}catch(o){console.warn("Response "+o.message)}}})),t}function x(e,t){if(!(this instanceof x))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new c(t.headers),this.url=t.url||"",this._initBody(e)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},g.call(y.prototype),g.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},x.error=function(){var e=new x(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var w=[301,302,303,307,308];x.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new x(null,{status:t,headers:{location:e}})};var M=r.DOMException;try{new M}catch(j){(M=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),M.prototype.constructor=M}function S(e,t){return new Promise((function(n,o){var a=new y(e,t);if(a.signal&&a.signal.aborted)return o(new M("Aborted","AbortError"));var u=new XMLHttpRequest;function d(){u.abort()}if(u.onload=function(){var e={statusText:u.statusText,headers:b(u.getAllResponseHeaders()||"")};0===a.url.indexOf("file://")&&(u.status<200||u.status>599)?e.status=200:e.status=u.status,e.url="responseURL"in u?u.responseURL:e.headers.get("X-Request-URL");var t="response"in u?u.response:u.responseText;setTimeout((function(){n(new x(t,e))}),0)},u.onerror=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){o(new TypeError("Network request timed out"))}),0)},u.onabort=function(){setTimeout((function(){o(new M("Aborted","AbortError"))}),0)},u.open(a.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(a.url),!0),"include"===a.credentials?u.withCredentials=!0:"omit"===a.credentials&&(u.withCredentials=!1),"responseType"in u&&(i.blob?u.responseType="blob":i.arrayBuffer&&(u.responseType="arraybuffer")),t&&"object"===typeof t.headers&&!(t.headers instanceof c||r.Headers&&t.headers instanceof r.Headers)){var f=[];Object.getOwnPropertyNames(t.headers).forEach((function(e){f.push(s(e)),u.setRequestHeader(e,l(t.headers[e]))})),a.headers.forEach((function(e,t){-1===f.indexOf(t)&&u.setRequestHeader(t,e)}))}else a.headers.forEach((function(e,t){u.setRequestHeader(t,e)}));a.signal&&(a.signal.addEventListener("abort",d),u.onreadystatechange=function(){4===u.readyState&&a.signal.removeEventListener("abort",d)}),u.send("undefined"===typeof a._bodyInit?null:a._bodyInit)}))}S.polyfill=!0,r.fetch||(r.fetch=S,r.Headers=c,r.Request=y,r.Response=x)},8594:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(l){s=[6,l],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},l=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),n(3154);var c=u(n(1139)),d=n(4611),f=u(n(6783));o(n(4611),t),o(n(4875),t);var h=function(){function e(e){if(this.httpClient=f.default.create(),!e.apiKey)throw new Error("The api-key is not set.");this.apiKey=e.apiKey;var t=e.baseUrl||"https://api.nyris.io";this.imageMatchingUrl="".concat(t,"/find/v1.1"),this.imageMatchingUrlMulti="".concat(t,"/find/v1.2"),this.cadMatchingUrl="".concat(t,"/cad/find/v0.2"),this.imageMatchingUrlBySku="".concat(t,"/recommend/v1/"),this.imageMatchingSubmitManualUrl="".concat(t,"/find/v1/manual/"),this.feedbackUrl="".concat(t,"/feedback/v1/"),this.regionProposalUrl="".concat(t,"/find/v2/regions/"),this.findFilters="".concat(t,"/find/v1/filters"),this.requestImageUrl="".concat(t,"/cad/image"),this.responseFormat="application/offers.complete+json",this.maxHeight=e.maxHeight||1024,this.maxWidth=e.maxWidth||1024,this.jpegQuality=e.jpegQuality||.9,this.customSearchRequest=e.customSearchRequest,this.responseHook=e.responseHook,this.xOptions=e.xOptions}return e.prototype.prepareImage=function(e,t){return a(this,void 0,void 0,(function(){var n,r,i,o,a;return s(this,(function(s){switch(s.label){case 0:return n=t||{x1:0,x2:1,y1:0,y2:1},r=(0,d.getElementSize)(e),i=(0,d.getRectAspectRatio)(n,r),o=(0,d.getThumbSizeArea)(this.maxWidth,this.maxHeight,i),a=(0,d.elementToCanvas)(e,o,n),[4,(0,d.canvasToJpgBlob)(a,this.jpegQuality)];case 1:return[2,s.sent()]}}))}))},e.prototype.getSearchRequestHeaders=function(e){var t={"X-Api-Key":this.apiKey,"Accept-Language":"de,*;q=0.5",Accept:this.responseFormat,"Content-Type":e||"application/octet-stream"},n=[];return this.xOptions&&n.push(this.xOptions),n.length>0&&(t["X-Options"]=n.join(" ")),t},e.prototype.getMultiSearchRequestHeaders=function(e){return{"X-Api-Key":this.apiKey}},e.prototype.getRegionRequestHeaders=function(e){var t={"X-Api-Key":this.apiKey,"Content-Type":e||"application/octet-stream"},n=[];return this.xOptions&&n.push(this.xOptions),n.length>0&&(t["X-Options"]=n.join(" ")),t},e.prototype.getParams=function(e){var t=e.geoLocation?{lat:e.geoLocation.lat.toString(),lon:e.geoLocation.lon.toString(),dist:e.geoLocation.dist.toString()}:{};return t=r(r({},t),{text:e.text})},e.prototype.parseCategoryPredictions=function(e){return Object.entries(e||{}).map((function(e){return{name:e[0],score:e[1]}})).sort((function(e,t){return t.score-e.score}))},e.prototype.findByCad=function(e,t,n){return a(this,void 0,void 0,(function(){var r,i,o,a,l,u;return s(this,(function(s){switch(s.label){case 0:if(r=e.type,i=this.getSearchRequestHeaders(r),o=this.getParams(t),(a=new FormData).append("file",e),n&&n.length>0)for(l=0;l<n.length;l++)for(a.append("filters[".concat(l,"].filterType"),n[l].key),u=0;u<n[l].values.length;u++)a.append("filters[".concat(l,"].filterValues[").concat(u,"]"),n[l].values[u]);return[4,(0,d.timePromise)(this.httpClient.request({method:"POST",url:this.cadMatchingUrl,params:o,headers:i,responseType:"json",data:a}))];case 1:return[2,s.sent().res.data]}}))}))},e.prototype.find=function(e,t,n,i){return a(this,void 0,void 0,(function(){var o,a,u,c,f,h,p;return s(this,(function(s){switch(s.label){case 0:return o=new FormData,a={},u=this.getSearchRequestHeaders("image/jpeg"),i&&(u["X-Options"]=i),t&&e.text?(o.append("text",e.text),e.text,c=l(e,["text"]),a=this.getParams(c)):e.text&&n&&n.length>0?o.append("text",e.text):a=this.getParams(e),t?[4,this.prepareImage(t,e.cropRect)]:[3,2];case 1:if(f=s.sent(),this.customSearchRequest)return[2,this.customSearchRequest(f,this.httpClient)];o.append("image",f),s.label=2;case 2:if(n&&n.length>0)for(h=0;h<n.length;h++)for(o.append("filters[".concat(h,"].filterType"),n[h].key),p=0;p<n[h].values.length;p++)o.append("filters[".concat(h,"].filterValues[").concat(p,"]"),n[h].values[p]);return[4,(0,d.timePromise)(this.httpClient.request(r({method:"POST",url:this.imageMatchingUrl,params:a,headers:u,responseType:"json"},t||n&&n.length?{data:o}:{data:null})))];case 3:return[2,s.sent().res.data]}}))}))},e.prototype.findMulti=function(e,t,n,i,o){return void 0===n&&(n=[]),a(this,void 0,void 0,(function(){var a,u,c,f,h,p,g,m,y,v,b;return s(this,(function(s){switch(s.label){case 0:if(a=new FormData,u={},c=this.getMultiSearchRequestHeaders(),o&&(c["X-Options"]=o),t&&e.text?(a.append("text",e.text),e.text,f=l(e,["text"]),u=this.getParams(f)):e.text&&i&&i.length>0?a.append("text",e.text):u=this.getParams(e),!t)return[3,4];h=0,p=0,g=t,s.label=1;case 1:return p<g.length?(m=g[p],[4,this.prepareImage(m,n[h])]):[3,4];case 2:y=s.sent(),a.append("images",y),h+=1,s.label=3;case 3:return p++,[3,1];case 4:if(i&&i.length>0)for(v=0;v<i.length;v++)for(a.append("filters[".concat(v,"].filterType"),i[v].key),b=0;b<i[v].values.length;b++)a.append("filters[".concat(v,"].filterValues[").concat(b,"]"),i[v].values[b]);return[4,(0,d.timePromise)(this.httpClient.request(r({method:"POST",url:this.imageMatchingUrlMulti,params:u,headers:c,responseType:"json"},t||i&&i.length?{data:a}:{data:null})))];case 5:return[2,s.sent().res.data]}}))}))},e.prototype.findBySku=function(e,t){return a(this,void 0,void 0,(function(){var n,r,i;return s(this,(function(o){switch(o.label){case 0:return n=this.getSearchRequestHeaders(),r="".concat(this.imageMatchingUrlBySku).concat(encodeURIComponent(e),"/").concat(encodeURIComponent(t)),[4,this.httpClient.get(r,{headers:n,responseType:"json"})];case 1:return i=o.sent(),this.responseHook&&(i=this.responseHook),[2,i]}}))}))},e.prototype.findRegions=function(e){return a(this,void 0,void 0,(function(){var t,n,r,i,o,a,l,u;return s(this,(function(s){switch(s.label){case 0:return t=(0,d.getElementSize)(e),n=t.w,r=t.h,i=(0,d.getThumbSizeArea)(this.maxWidth,this.maxHeight,n/r),o=(0,d.elementToCanvas)(e,i),[4,(0,d.canvasToJpgBlob)(o,this.jpegQuality)];case 1:return a=s.sent(),l=this.getRegionRequestHeaders("image/jpeg"),[4,this.httpClient.request({method:"POST",url:this.regionProposalUrl,data:a,headers:l})];case 2:return u=s.sent(),[2,u.data.regions.map((function(e){return{classId:e.classId,confidence:e.confidence,normalizedRect:{x1:e.region.left/i.w,x2:e.region.right/i.w,y1:e.region.top/i.h,y2:e.region.bottom/i.h}}}))]}}))}))},e.prototype.sendFeedback=function(e){var t=e.sessionId,n=e.requestId,i=e.payload;return a(this,void 0,void 0,(function(){var e,o;return s(this,(function(a){switch(a.label){case 0:return e={"X-Api-Key":this.apiKey,"Content-Type":"application/json"},o=r({request_id:n,timestamp:new Date,session_id:t},i),[4,this.httpClient.request({method:"POST",url:this.feedbackUrl,headers:e,data:o})];case 1:return a.sent(),[2]}}))}))},e.prototype.getFilters=function(e){return a(this,void 0,void 0,(function(){var t,n;return s(this,(function(r){switch(r.label){case 0:return t=this.getSearchRequestHeaders(),n="".concat(this.findFilters,"?limit=").concat(e),[4,this.httpClient.get(n,{headers:t,responseType:"json"})];case 1:return[2,r.sent().data]}}))}))},e.prototype.searchFilters=function(e,t,n){return void 0===n&&(n=100),a(this,void 0,void 0,(function(){var r,i;return s(this,(function(o){switch(o.label){case 0:return r=this.getSearchRequestHeaders(),i="".concat(this.findFilters,"/").concat(e,"/").concat(t,"?limit=").concat(n),[4,this.httpClient.get(i,{headers:r,responseType:"json"})];case 1:return[2,o.sent().data]}}))}))},e.prototype.getCadRequestImage=function(e){return a(this,void 0,void 0,(function(){var t,n;return s(this,(function(r){switch(r.label){case 0:return t={"X-Api-Key":this.apiKey},[4,this.httpClient.get(this.requestImageUrl,{headers:t,params:{img:e},paramsSerializer:function(e){return c.default.stringify(e,{encode:!1})},responseType:"blob"})];case 1:return n=r.sent(),this.responseHook&&(n=this.responseHook),[2,n]}}))}))},e}();t.default=h},4875:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4611:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(l){s=[6,l],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.timePromise=t.isImageFile=t.isCadFile=t.cadExtensions=t.canvasToJpgBlob=t.urlOrBlobToCanvas=t.elementToCanvas=t.getElementSize=t.getRectAspectRatio=t.getRectSize=t.scaleRect=t.getThumbSizeLongestEdge=t.getThumbSizeArea=t.getUrlParam=void 0;var a=o(n(4664));function s(e,t){return{x1:e.x1*t.w,x2:e.x2*t.w,y1:e.y1*t.h,y2:e.y2*t.h}}function l(e){return{w:e.x2-e.x1,h:e.y2-e.y1}}function u(e){var t=e,n=e;return{w:t.naturalWidth||n.videoWidth||e.width,h:t.naturalHeight||n.videoHeight||e.height}}t.getUrlParam=function(e){var t=new RegExp("[?&]".concat(e,"(=([^&#]*))?(&|$|#)"),"i").exec(window.location.href);return t&&t[2]?decodeURIComponent(t[2]):!!t||void 0},t.getThumbSizeArea=function(e,t,n){var r=e*t,i=Math.sqrt(r*n);return{w:i,h:i/n}},t.getThumbSizeLongestEdge=function(e,t,n,r){return e/t>n/r?{w:n*t/r,h:t}:{w:e,h:r*e/n}},t.scaleRect=s,t.getRectSize=l,t.getRectAspectRatio=function(e,t){var n=l(s(e,t));return n.w/n.h},t.getElementSize=u,t.elementToCanvas=function(e,t,n){var r=u(e),i=r.w,o=r.h,a=n||{x1:0,x2:1,y1:0,y2:1},s=a.x1,l=a.x2,c=a.y1,d=i*s,f=i*(l-s),h=o*c,p=o*(a.y2-c),g=t&&t.w||i,m=t&&t.h||o,y=document.createElement("canvas");y.width=g,y.height=m;var v=y.getContext("2d");if(!v)throw Error("Error converting element to canvas: Can not get 2d context");return v.fillStyle="rgb(255, 255,255)",v.fillRect(0,0,g,m),v.drawImage(e,d,h,f,p,0,0,g,m),y},t.urlOrBlobToCanvas=function(e){return new Promise((function(t,n){(0,a.default)(e,(function(e){e?t(e):n()}),{canvas:!0,orientation:!0,crossOrigin:"anonymous"})}))},t.canvasToJpgBlob=function(e,t){return new Promise((function(n,r){e.toBlob((function(e){e?n(e):r()}),"image/jpeg",t)}))},t.cadExtensions=[".stp",".step",".stl",".obj",".glb",".gltf"],t.isCadFile=function(e){return t.cadExtensions.some((function(t){var n;return null===(n=null===e||void 0===e?void 0:e.name)||void 0===n?void 0:n.endsWith(t)}))},t.isImageFile=function(e){return e.type.startsWith("image/")},t.timePromise=function(e){return r(this,void 0,void 0,(function(){var t,n,r;return i(this,(function(i){switch(i.label){case 0:return t=Date.now(),[4,e];case 1:return n=i.sent(),r=Date.now(),[2,{res:n,durationSeconds:(r-t)/1e3}]}}))}))}},8598:(e,t,n)=>{var r;self,r=()=>(()=>{var e={541:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>a,default:()=>s});var r,i=n(15);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){return i.createElement("svg",o({width:16,height:17,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.643 4.652l-6.3-3.408a.716.716 0 00-.7 0l-6.3 3.408A.678.678 0 001 5.244v6.816c0 .246.137.473.357.593l6.3 3.408a.716.716 0 00.7 0l6.3-3.408A.678.678 0 0015 12.06V5.244a.679.679 0 00-.357-.592zM8 2.614l4.858 2.63L8 7.875l-4.858-2.63L8 2.613zm-5.6 3.79l4.9 2.65v5.255l-4.9-2.65V6.402zm6.3 7.905V9.054l4.9-2.65v5.254L8.7 14.31z",fill:"#2B2C46"})))}const s="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTciIHZpZXdCb3g9IjAgMCAxNiAxNyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC42NDMgNC42NTE1Mkw4LjM0MyAxLjI0MzY2QzguMTI2NDIgMS4xMjE5MSA3Ljg1OTU4IDEuMTIxOTEgNy42NDMgMS4yNDM2NkwxLjM0MzAzIDQuNjUxNTJDMS4xMjgyOCA0Ljc3NTQ4IDAuOTk3NTg4IDUuMDAxNDIgMS4wMDAwMyA1LjI0NDQ4VjEyLjA2MDJDMS4wMDA0NyAxMi4zMDYxIDEuMTM2ODkgMTIuNTMyNyAxLjM1NzAzIDEyLjY1MzJMNy42NTcgMTYuMDYxQzcuODczNTggMTYuMTgyOCA4LjE0MDQyIDE2LjE4MjggOC4zNTcgMTYuMDYxTDE0LjY1NyAxMi42NTMyQzE0Ljg3MTcgMTIuNTI5MiAxNS4wMDI0IDEyLjMwMzMgMTUgMTIuMDYwMlY1LjI0NDQ4QzE0Ljk5OTUgNC45OTg2IDE0Ljg2MzEgNC43NzIgMTQuNjQzIDQuNjUxNTJaTTcuOTk5ODIgMi42MTM2MUwxMi44NTc4IDUuMjQ0NDdMNy45OTk4MiA3Ljg3NTM0TDMuMTQxODUgNS4yNDQ0N0w3Ljk5OTgyIDIuNjEzNjFaTTIuNDAwMTUgNi40MDMxNUw3LjMwMDEyIDkuMDU0NDdWMTQuMzA5NEwyLjQwMDE1IDExLjY1ODFWNi40MDMxNVpNOC42OTk4MyAxNC4zMDk0VjkuMDU0NDdMMTMuNTk5OCA2LjQwMzE1VjExLjY1ODFMOC42OTk4MyAxNC4zMDk0WiIgZmlsbD0iIzJCMkM0NiIvPgo8L3N2Zz4K"},603:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>a,default:()=>s});var r,i=n(15);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){return i.createElement("svg",o({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.153 13.103a7.989 7.989 0 00.516-9.524A8.003 8.003 0 005.689.34 7.994 7.994 0 000 8.001c0 1.866.659 3.672 1.86 5.102l-.012.01c.022.026.046.05.07.075l.057.061c.034.039.069.076.104.113l.056.059c.16.173.324.34.497.497a4.2 4.2 0 00.111.096l.05.042a7.901 7.901 0 00.602.475l.037.03v-.008a7.955 7.955 0 009.15 0v.007l.036-.029a7.96 7.96 0 00.602-.475l.041-.035.12-.103c.173-.157.337-.324.497-.497l.057-.06a3.65 3.65 0 00.103-.112l.058-.062c.024-.024.048-.048.07-.075l-.013-.01zM8.006 3.429A2.572 2.572 0 115.433 6 2.572 2.572 0 018.006 3.43zm-1.715 6.857a2.856 2.856 0 00-2.856 2.817 6.832 6.832 0 009.142 0 2.856 2.856 0 00-2.855-2.817H6.29z",fill:"#2B2C46"})))}const s="data:image/svg+xml;base64,PHN2ZyAgdmlld0JveD0iMCAwIDE2IDE2IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE0LjE1MyAxMy4xMDI5QzE2LjQwOTMgMTAuMzg5NiAxNi42MTg5IDYuNTE5MjIgMTQuNjY4NiAzLjU3ODU5QzEyLjcxODQgMC42Mzc5NiA5LjA2OTUyIC0wLjY3NzU4MSA1LjY4OTQ1IDAuMzQxMjhDMi4zMDkzOCAxLjM2MDE0IC0wLjAwMjYzMjEyIDQuNDcyNDggMi4yNDg5MmUtMDYgOC4wMDAxOEMwLjAwMDQ1MDEzIDkuODY2NTEgMC42NTg2ODEgMTEuNjczMSAxLjg1OTE5IDEzLjEwMjlMMS44NDc3NSAxMy4xMTIzQzEuODY5ODUgMTMuMTM5IDEuODkzNjkgMTMuMTYzNSAxLjkxNzU2IDEzLjE4OEwxLjkxNzU3IDEzLjE4ODFMMS45MTc1OCAxMy4xODgxQzEuOTM2OTQgMTMuMjA4IDEuOTU2MzMgMTMuMjI3OSAxLjk3NDgyIDEzLjI0OUMyLjAwODUxIDEzLjI4NzggMi4wNDM3NyAxMy4zMjQ4IDIuMDc5MTMgMTMuMzYxOEwyLjA3OTE0IDEzLjM2MTlMMi4wNzkxOCAxMy4zNjE5QzIuMDk3ODEgMTMuMzgxNCAyLjExNjQ3IDEzLjQwMSAyLjEzNDk0IDEzLjQyMDlDMi4yOTUwNyAxMy41OTQyIDIuNDU5NDIgMTMuNzYxIDIuNjMyNDcgMTMuOTE4QzIuNjY4NjggMTMuOTUwOSAyLjcwNTgyIDEzLjk4MjQgMi43NDMwMSAxNC4wMTM5TDIuNzQzMDUgMTQuMDEzOUwyLjc5MjU5IDE0LjA1NjFDMi45NzU1OCAxNC4yMTM4IDMuMTYzMzggMTQuMzYzMSAzLjM1ODczIDE0LjUwMjZDMy4zNzEyNSAxNC41MTE0IDMuMzgzMDYgMTQuNTIxMiAzLjM5NDg5IDE0LjUzMTFMMy4zOTQ5MiAxNC41MzExQzMuNDA2OTEgMTQuNTQxMSAzLjQxODkyIDE0LjU1MTEgMy40MzE3IDE0LjU2MDFWMTQuNTUyOEM2LjE3NTk2IDE2LjQ4MjQgOS44MzcyOCAxNi40ODI0IDEyLjU4MTUgMTQuNTUyOFYxNC41NTk5QzEyLjU5NDMgMTQuNTUwOSAxMi42MDYzIDE0LjU0MDkgMTIuNjE4MyAxNC41MzFDMTIuNjMwMiAxNC41MjExIDEyLjY0MiAxNC41MTEzIDEyLjY1NDUgMTQuNTAyNUMxMi44NDk2IDE0LjM2MyAxMy4wMzc3IDE0LjIxMzcgMTMuMjIwNyAxNC4wNTZMMTMuMjYxNCAxNC4wMjE0TDEzLjI2MTQgMTQuMDIxNEMxMy4zMDE1IDEzLjk4NzQgMTMuMzQxNyAxMy45NTM0IDEzLjM4MDggMTMuOTE3OUMxMy41NTM4IDEzLjc2MDggMTMuNzE4MiAxMy41OTQgMTMuODc4MyAxMy40MjA4QzEzLjg5NzEgMTMuNDAwNSAxMy45MTYxIDEzLjM4MDYgMTMuOTM1IDEzLjM2MDdMMTMuOTM1MSAxMy4zNjA2QzEzLjk3IDEzLjMyMzkgMTQuMDA0OSAxMy4yODcyIDE0LjAzODQgMTMuMjQ4OUMxNC4wNTcgMTMuMjI3NiAxNC4wNzY2IDEzLjIwNzQgMTQuMDk2MiAxMy4xODczTDE0LjA5NjIgMTMuMTg3M0wxNC4wOTYyIDEzLjE4NzNDMTQuMTE5OSAxMy4xNjMgMTQuMTQzNiAxMy4xMzg2IDE0LjE2NTUgMTMuMTEyMkwxNC4xNTMgMTMuMTAyOVpNOC4wMDYxMSAzLjQyODkyQzkuNDI3MzUgMy40Mjg5MiAxMC41Nzk1IDQuNTgwMTUgMTAuNTc5NSA2LjAwMDI2QzEwLjU3OTUgNy40MjAzNiA5LjQyNzM1IDguNTcxNTkgOC4wMDYxMSA4LjU3MTU5QzYuNTg0ODYgOC41NzE1OSA1LjQzMjcxIDcuNDIwMzYgNS40MzI3MSA2LjAwMDI2QzUuNDMyNzEgNC41ODAxNSA2LjU4NDg2IDMuNDI4OTIgOC4wMDYxMSAzLjQyODkyWk02LjI5MDUxIDEwLjI4NThDNC43Mjc4OSAxMC4yODY2IDMuNDU1OCAxMS41NDE2IDMuNDM1MjUgMTMuMTAyOUM2LjAzMjk0IDE1LjQ0MTggOS45NzkyNyAxNS40NDE4IDEyLjU3NyAxMy4xMDI5QzEyLjU1NjQgMTEuNTQxNiAxMS4yODQzIDEwLjI4NjYgOS43MjE3IDEwLjI4NThINi4yOTA1MVoiIGZpbGw9IiMyQjJDNDYiLz4KPC9zdmc+Cg=="},881:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>a,default:()=>s});var r,i=n(15);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){return i.createElement("svg",o({width:14,height:13,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("path",{d:"M5.748 12.278a.635.635 0 00.898-.897L3.122 7.853A.5.5 0 013.476 7h9.72a.636.636 0 100-1.273h-9.72a.5.5 0 01-.354-.853l3.524-3.528A.635.635 0 005.748.45L.54 5.657a1 1 0 000 1.414l5.208 5.207z",fill:"#2B2C46"})))}const s="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTMiIHZpZXdCb3g9IjAgMCAxNCAxMyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTUuNzQ3ODYgMTIuMjc4NUM1Ljk5NTcyIDEyLjUyNjMgNi4zOTc1NyAxMi41MjYzIDYuNjQ1NDMgMTIuMjc4NUM2Ljg5MzE3IDEyLjAzMDcgNi44OTMzIDExLjYyOTEgNi42NDU3MiAxMS4zODEyTDMuMTIyNDggNy44NTMzMkMyLjgwNzgxIDcuNTM4MjQgMy4wMzA5NyA3IDMuNDc2MjYgN0wxMy4xOTY2IDdDMTMuNTQ4MSA3IDEzLjgzMyA2LjcxNTA5IDEzLjgzMyA2LjM2MzY0QzEzLjgzMyA2LjAxMjE4IDEzLjU0ODEgNS43MjcyNyAxMy4xOTY2IDUuNzI3MjdMMy40NzYyNiA1LjcyNzI3QzMuMDMwOTcgNS43MjcyNyAyLjgwNzgxIDUuMTg5MDMgMy4xMjI0OCA0Ljg3Mzk1TDYuNjQ1NzIgMS4zNDYwNkM2Ljg5MzMgMS4wOTgxNSA2Ljg5MzE3IDAuNjk2NTI2IDYuNjQ1NDMgMC40NDg3ODRDNi4zOTc1NyAwLjIwMDkyOCA1Ljk5NTcyIDAuMjAwOTI4IDUuNzQ3ODYgMC40NDg3ODRMMC41NDAxMTUgNS42NTY1M0MwLjE0OTU5IDYuMDQ3MDUgMC4xNDk1OSA2LjY4MDIyIDAuNTQwMTE1IDcuMDcwNzRMNS43NDc4NiAxMi4yNzg1WiIgZmlsbD0iIzJCMkM0NiIvPgo8L3N2Zz4K"},808:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>a,default:()=>s});var r,i=n(15);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){return i.createElement("svg",o({width:14,height:14,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("path",{d:"M12.385 14h-.092C1.713 13.392.21 4.464 0 1.74A1.615 1.615 0 011.486 0h2.967a1.077 1.077 0 011.002.678l.818 2.014a1.077 1.077 0 01-.237 1.163L4.89 5.013a5.045 5.045 0 004.082 4.092l1.168-1.157a1.077 1.077 0 011.169-.221l2.03.813A1.076 1.076 0 0114 9.542v2.843A1.615 1.615 0 0112.385 14zM1.615 1.077a.538.538 0 00-.538.538v.043c.248 3.188 1.836 10.727 11.276 11.265a.538.538 0 00.57-.506V9.542l-2.03-.814-1.545 1.535-.259-.032c-4.684-.587-5.32-5.272-5.32-5.32l-.032-.259 1.53-1.545-.808-2.03H1.616z",fill:"currentColor"})))}const s="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjM4NDkgMTRIMTIuMjkzM0MxLjcxMjU1IDEzLjM5MTUgMC4yMTAyNDYgNC40NjM4NSAwLjAwMDI0NTkzOSAxLjczOTIzQy0wLjAxNjY3NTEgMS41MjczOSAwLjAwODM3MDU5IDEuMzE0MjkgMC4wNzM5NDc4IDEuMTEyMTRDMC4xMzk1MjUgMC45MDk5OTkgMC4yNDQzNDUgMC43MjI3NzkgMC4zODI0MDEgMC41NjEyMTNDMC41MjA0NTggMC4zOTk2NDYgMC42ODkwMzggMC4yNjY5MDkgMC44Nzg0ODIgMC4xNzA2MDZDMS4wNjc5MyAwLjA3NDMwMjkgMS4yNzQ1MSAwLjAxNjMyNzEgMS40ODY0IDUuMDQ4NTdlLTA3SDQuNDUzMzJDNC42NjkwMSAtMC4wMDAyMDgyOTEgNC44Nzk3OSAwLjA2NDM1MTkgNS4wNTgzNiAwLjE4NTMxOEM1LjIzNjkzIDAuMzA2Mjg1IDUuMzc1MDYgMC40NzgwODQgNS40NTQ4NiAwLjY3ODQ2Mkw2LjI3MzMyIDIuNjkyMzFDNi4zNTIxMyAyLjg4ODA2IDYuMzcxNjggMy4xMDI2NiA2LjMyOTU2IDMuMzA5NDNDNi4yODc0NCAzLjUxNjIxIDYuMTg1NSAzLjcwNjA1IDYuMDM2NCAzLjg1NTM5TDQuODg5NDggNS4wMTMwOEM1LjA2ODYzIDYuMDMxMTcgNS41NTYxOSA2Ljk2OTY3IDYuMjg2MTkgNy43MDE1OUM3LjAxNjE5IDguNDMzNTIgNy45NTM0IDguOTIzNTUgOC45NzEwMSA5LjEwNTM4TDEwLjEzOTUgNy45NDc2OUMxMC4yOTExIDcuODAwMjQgMTAuNDgyNyA3LjcwMDY3IDEwLjY5MDUgNy42NjE0MUMxMC44OTgzIDcuNjIyMTUgMTEuMTEzIDcuNjQ0OTQgMTEuMzA3OSA3LjcyNjkyTDEzLjMzNzkgOC41NEMxMy41MzUzIDguNjIyMzIgMTMuNzAzNyA4Ljc2MTUzIDEzLjgyMTYgOC45Mzk5QzEzLjkzOTYgOS4xMTgyNyAxNC4wMDE4IDkuMzI3NzEgMTQuMDAwMiA5LjU0MTU0VjEyLjM4NDZDMTQuMDAwMiAxMi44MTMgMTMuODMwMSAxMy4yMjM5IDEzLjUyNzEgMTMuNTI2OUMxMy4yMjQyIDEzLjgyOTggMTIuODEzMyAxNCAxMi4zODQ5IDE0Wk0xLjYxNTYzIDEuMDc2OTJDMS40NzI4MiAxLjA3NjkyIDEuMzM1ODYgMS4xMzM2NSAxLjIzNDg4IDEuMjM0NjRDMS4xMzM5IDEuMzM1NjIgMS4wNzcxNyAxLjQ3MjU4IDEuMDc3MTcgMS42MTUzOVYxLjY1ODQ2QzEuMzI0ODYgNC44NDYxNSAyLjkxMzMyIDEyLjM4NDYgMTIuMzUyNiAxMi45MjMxQzEyLjQyMzMgMTIuOTI3NSAxMi40OTQyIDEyLjkxNzggMTIuNTYxMiAxMi44OTQ3QzEyLjYyODIgMTIuODcxNiAxMi42OSAxMi44MzU1IDEyLjc0MyAxMi43ODg1QzEyLjc5NjEgMTIuNzQxNSAxMi44MzkzIDEyLjY4NDUgMTIuODcwMiAxMi42MjA3QzEyLjkwMTIgMTIuNTU2OSAxMi45MTkyIDEyLjQ4NzcgMTIuOTIzMyAxMi40MTY5VjkuNTQxNTRMMTAuODkzMyA4LjcyODQ2TDkuMzQ3OTQgMTAuMjYzMUw5LjA4OTQ4IDEwLjIzMDhDNC40MDQ4NiA5LjY0Mzg1IDMuNzY5NDggNC45NTkyMyAzLjc2OTQ4IDQuOTEwNzdMMy43MzcxNyA0LjY1MjMxTDUuMjY2NCAzLjEwNjkyTDQuNDU4NzEgMS4wNzY5MkgxLjYxNTYzWiIgZmlsbD0iY3VycmVudENvbG9yIi8+Cjwvc3ZnPgo="},597:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>a,default:()=>s});var r,i=n(15);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){return i.createElement("svg",o({viewBox:"0 0 121 96",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("path",{d:"M81.731 54.517c0 11.932-9.746 21.64-21.726 21.64-11.98 0-21.727-9.708-21.727-21.64s9.747-21.64 21.727-21.64 21.726 9.708 21.726 21.64zm38.274-30.32v60.64c0 5.65-4.642 10.274-10.316 10.274H10.322C4.647 95.111.005 90.488.005 84.837v-60.64c0-5.65 4.642-10.274 10.316-10.274h23.943l3.62-8.348A9.272 9.272 0 0146.396 0h27.217c3.7 0 7.047 2.19 8.514 5.575l3.62 8.348h23.943c5.673 0 10.315 4.623 10.315 10.274zm-98.376 2.279a2.508 2.508 0 00-2.506-2.496h-6.908a2.508 2.508 0 00-2.506 2.496v3.372a2.508 2.508 0 002.506 2.496h6.908a2.508 2.508 0 002.506-2.496v-3.372zm70.629 28.04a31.82 31.82 0 00-2.536-12.504 32.007 32.007 0 00-6.91-10.21 32.15 32.15 0 00-10.25-6.881 32.164 32.164 0 00-12.556-2.527c-4.352 0-8.576.85-12.555 2.527a32.15 32.15 0 00-10.25 6.882 32.008 32.008 0 00-6.91 10.209 31.812 31.812 0 00-2.537 12.505c0 4.334.854 8.542 2.537 12.505a32.01 32.01 0 006.91 10.209 32.149 32.149 0 0010.25 6.882 32.162 32.162 0 0012.555 2.526c4.352 0 8.576-.85 12.555-2.526a32.149 32.149 0 0010.25-6.882 32.008 32.008 0 006.91-10.209 31.81 31.81 0 002.537-12.505z"})))}const s="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTIxIDk2IiBmaWxsPSJjdXJyZW50Q29sb3IiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIHN0eWxlPSJtaXgtYmxlbmQtbW9kZTptdWx0aXBseSI+CjxwYXRoIGQ9Ik04MS43MzE0IDU0LjUxNjlDODEuNzMxNCA2Ni40NDg5IDcxLjk4NSA3Ni4xNTYxIDYwLjAwNDkgNzYuMTU2MUM0OC4wMjQ4IDc2LjE1NjEgMzguMjc4NSA2Ni40NDg5IDM4LjI3ODUgNTQuNTE2OUMzOC4yNzg1IDQyLjU4NDkgNDguMDI0OCAzMi44Nzc3IDYwLjAwNDkgMzIuODc3N0M3MS45ODUgMzIuODc3NyA4MS43MzE0IDQyLjU4NDkgODEuNzMxNCA1NC41MTY5Wk0xMjAuMDA1IDI0LjE5NzJWODQuODM2NkMxMjAuMDA1IDkwLjQ4NzIgMTE1LjM2MyA5NS4xMTExIDEwOS42ODkgOTUuMTExMUgxMC4zMjE1QzQuNjQ4MDUgOTUuMTExMSAwLjAwNTQ5MzE2IDkwLjQ4NzggMC4wMDU0OTMxNiA4NC44MzY2VjI0LjE5NzJDMC4wMDU0OTMxNiAxOC41NDY2IDQuNjQ3NDggMTMuOTIyNyAxMC4zMjE1IDEzLjkyMjdIMzQuMjY0MUwzNy44ODM4IDUuNTc0ODRDMzkuMzUwMiAyLjE5MDkgNDIuNjk2MSAwIDQ2LjM5NjQgMEg3My42MTM0Qzc3LjMxMzcgMCA4MC42NjAyIDIuMTkwOSA4Mi4xMjcyIDUuNTc0ODRMODUuNzQ2OSAxMy45MjI3SDEwOS42OUMxMTUuMzYzIDEzLjkyMjcgMTIwLjAwNSAxOC41NDYgMTIwLjAwNSAyNC4xOTcySDEyMC4wMDVaTTIxLjYyODYgMjYuNDc1OEMyMS42Mjg2IDI1LjEwMjkgMjAuNTAxMSAyMy45OCAxOS4xMjI3IDIzLjk4SDEyLjIxNTFDMTAuODM2NiAyMy45OCA5LjcwOTIgMjUuMTAyOSA5LjcwOTIgMjYuNDc1OFYyOS44NDg0QzkuNzA5MiAzMS4yMjE0IDEwLjgzNjYgMzIuMzQ0MyAxMi4yMTUxIDMyLjM0NDNIMTkuMTIyN0MyMC41MDExIDMyLjM0NDMgMjEuNjI4NiAzMS4yMjE0IDIxLjYyODYgMjkuODQ4NFYyNi40NzU4Wk05Mi4yNTggNTQuNTE2OUM5Mi4yNTggNTAuMTgyNiA5MS40MDQ0IDQ1Ljk3NSA4OS43MjE1IDQyLjAxMThDODguMDk2NSAzOC4xODYxIDg1Ljc3MTkgMzQuNzUxMiA4Mi44MTE2IDMxLjgwMjlDNzkuODUxNCAyOC44NTQ1IDc2LjQwMjcgMjYuNTM5MiA3Mi41NjE1IDI0LjkyMDdDNjguNTgxOCAyMy4yNDQxIDY0LjM1NzggMjIuMzk0NCA2MC4wMDYxIDIyLjM5NDRDNTUuNjU0MyAyMi4zOTQ0IDUxLjQyOTggMjMuMjQ0NiA0Ny40NTA2IDI0LjkyMDdDNDMuNjA5NCAyNi41MzkyIDQwLjE2MDcgMjguODU0NSAzNy4yMDA1IDMxLjgwMjlDMzQuMjQwMyAzNC43NTEyIDMxLjkxNTYgMzguMTg2MSAzMC4yOTA2IDQyLjAxMThDMjguNjA3MiA0NS45NzU2IDI3Ljc1NDEgNTAuMTgyNiAyNy43NTQxIDU0LjUxNjlDMjcuNzU0MSA1OC44NTEyIDI4LjYwNzcgNjMuMDU4OCAzMC4yOTA2IDY3LjAyMkMzMS45MTU2IDcwLjg0NzcgMzQuMjQwMyA3NC4yODI1IDM3LjIwMDUgNzcuMjMwOUM0MC4xNjA3IDgwLjE3OTMgNDMuNjA5NCA4Mi40OTQ2IDQ3LjQ1MDYgODQuMTEzQzUxLjQzMDMgODUuNzg5NyA1NS42NTQzIDg2LjYzOTQgNjAuMDA2MSA4Ni42Mzk0QzY0LjM1NzggODYuNjM5NCA2OC41ODI0IDg1Ljc4OTIgNzIuNTYxNSA4NC4xMTNDNzYuNDAyNyA4Mi40OTQ2IDc5Ljg1MTQgODAuMTc5MyA4Mi44MTE2IDc3LjIzMDlDODUuNzcxOSA3NC4yODI1IDg4LjA5NjUgNzAuODQ3NyA4OS43MjE1IDY3LjAyMkM5MS40MDUgNjMuMDU4MiA5Mi4yNTggNTguODUxMiA5Mi4yNTggNTQuNTE2OVoiIGZpbGw9ImN1cnJlbnRDb2xvciIvPgo8L2c+Cjwvc3ZnPgo="},246:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>a,default:()=>s});var r,i=n(15);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){return i.createElement("svg",o({viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 13.714a.571.571 0 01-.571.571H.57A.571.571 0 010 13.714V4c0-.316.256-.572.571-.572h3.692l.977-1.457a.571.571 0 01.474-.257h4.572c.19 0 .369.097.474.257l.977 1.457h3.692c.315 0 .571.256.571.572v9.714zm-14.857-.572h13.714V4.571H11.43a.571.571 0 01-.475-.257l-.977-1.457H6.023l-.977 1.457a.571.571 0 01-.475.257H1.143v8.571zM8 12a3.429 3.429 0 110-6.858A3.429 3.429 0 018 12zm0-5.715a2.286 2.286 0 100 4.572 2.286 2.286 0 000-4.572z"})))}const s="data:image/svg+xml;base64,PHN2ZyAgdmlld0JveD0iMCAwIDE2IDE2IiBmaWxsPSJjdXJyZW50Q29sb3IiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTYgMTMuNzEzOUMxNiAxNC4wMjk1IDE1Ljc0NDIgMTQuMjg1MyAxNS40Mjg2IDE0LjI4NTNIMC41NzE0MjlDMC4yNTU4MzcgMTQuMjg1MyAwIDE0LjAyOTUgMCAxMy43MTM5VjMuOTk5NThDMCAzLjY4Mzk5IDAuMjU1ODM3IDMuNDI4MTUgMC41NzE0MjkgMy40MjgxNUg0LjI2Mjg2TDUuMjQgMS45NzEwMUM1LjM0NTEzIDEuODExMzYgNS41MjMxMyAxLjcxNDg2IDUuNzE0MjkgMS43MTM4N0gxMC4yODU3QzEwLjQ3NjkgMS43MTQ4NiAxMC42NTQ5IDEuODExMzYgMTAuNzYgMS45NzEwMUwxMS43MzcxIDMuNDI4MTVIMTUuNDI4NkMxNS43NDQyIDMuNDI4MTUgMTYgMy42ODM5OSAxNiAzLjk5OTU4VjEzLjcxMzlaTTEuMTQyODYgMTMuMTQyNEgxNC44NTcxVjQuNTcxMDFIMTEuNDI4NkMxMS4yMzc0IDQuNTcwMDIgMTEuMDU5NCA0LjQ3MzUyIDEwLjk1NDMgNC4zMTM4N0w5Ljk3NzE0IDIuODU2NzJINi4wMjI4Nkw1LjA0NTcxIDQuMzEzODdDNC45NDA1OCA0LjQ3MzUyIDQuNzYyNTggNC41NzAwMiA0LjU3MTQzIDQuNTcxMDFIMS4xNDI4NlYxMy4xNDI0Wk04IDExLjk5OTZDNi4xMDY0NSAxMS45OTk2IDQuNTcxNDMgMTAuNDY0NiA0LjU3MTQzIDguNTcxMDFDNC41NzE0MyA2LjY3NzQ2IDYuMTA2NDUgNS4xNDI0NCA4IDUuMTQyNDRDOS44OTM1NSA1LjE0MjQ0IDExLjQyODYgNi42Nzc0NiAxMS40Mjg2IDguNTcxMDFDMTEuNDI4NiAxMC40NjQ2IDkuODkzNTUgMTEuOTk5NiA4IDExLjk5OTZaTTggNi4yODUzQzYuNzM3NjQgNi4yODUzIDUuNzE0MjkgNy4zMDg2NSA1LjcxNDI5IDguNTcxMDFDNS43MTQyOSA5LjgzMzM3IDYuNzM3NjQgMTAuODU2NyA4IDEwLjg1NjdDOS4yNjIzNyAxMC44NTY3IDEwLjI4NTcgOS44MzMzNyAxMC4yODU3IDguNTcxMDFDMTAuMjg1NyA3LjMwODY1IDkuMjYyMzcgNi4yODUzIDggNi4yODUzWiIgZmlsbD0iY3VycmVudENvbG9yIi8+Cjwvc3ZnPgo="},60:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>a,default:()=>s});var r,i=n(15);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){return i.createElement("svg",o({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.475 3.575a.743.743 0 00-1.05-1.05L8.707 6.243a1 1 0 01-1.414 0L3.575 2.525a.742.742 0 10-1.05 1.05l3.718 3.718a1 1 0 010 1.414l-3.718 3.718a.742.742 0 101.05 1.05l3.718-3.718a1 1 0 011.414 0l3.718 3.718a.743.743 0 001.05-1.05L9.757 8.707a1 1 0 010-1.414l3.718-3.718z",fill:"currentColor"})))}const s="data:image/svg+xml;base64,PHN2ZyAgdmlld0JveD0iMCAwIDE2IDE2IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEzLjQ3NSAzLjU3NUMxMy43NjQ5IDMuMjg1MDUgMTMuNzY0OSAyLjgxNDk1IDEzLjQ3NSAyLjUyNUMxMy4xODUxIDIuMjM1MDUgMTIuNzE1IDIuMjM1MDUgMTIuNDI1IDIuNTI1TDguNzA3MTEgNi4yNDI4OUM4LjMxNjU4IDYuNjMzNDIgNy42ODM0MiA2LjYzMzQyIDcuMjkyODkgNi4yNDI4OUwzLjU3NSAyLjUyNUMzLjI4NTA1IDIuMjM1MDUgMi44MTQ5NSAyLjIzNTA1IDIuNTI1IDIuNTI1QzIuMjM1MDUgMi44MTQ5NSAyLjIzNTA1IDMuMjg1MDUgMi41MjUgMy41NzVMNi4yNDI4OSA3LjI5Mjg5QzYuNjMzNDIgNy42ODM0MiA2LjYzMzQyIDguMzE2NTggNi4yNDI4OSA4LjcwNzExTDIuNTI1IDEyLjQyNUMyLjIzNTA1IDEyLjcxNDkgMi4yMzUwNSAxMy4xODUxIDIuNTI1IDEzLjQ3NUMyLjgxNDk1IDEzLjc2NDkgMy4yODUwNSAxMy43NjQ5IDMuNTc1IDEzLjQ3NUw3LjI5Mjg5IDkuNzU3MTFDNy42ODM0MiA5LjM2NjU4IDguMzE2NTggOS4zNjY1OCA4LjcwNzExIDkuNzU3MTFMMTIuNDI1IDEzLjQ3NUMxMi43MTQ5IDEzLjc2NDkgMTMuMTg1MSAxMy43NjQ5IDEzLjQ3NSAxMy40NzVDMTMuNzY0OSAxMy4xODUxIDEzLjc2NDkgMTIuNzE1IDEzLjQ3NSAxMi40MjVMOS43NTcxMSA4LjcwNzExQzkuMzY2NTggOC4zMTY1OCA5LjM2NjU4IDcuNjgzNDIgOS43NTcxMSA3LjI5Mjg5TDEzLjQ3NSAzLjU3NVoiIGZpbGw9ImN1cnJlbnRDb2xvciIvPgo8L3N2Zz4K"},997:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>a,default:()=>s});var r,i=n(15);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){return i.createElement("svg",o({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("path",{d:"M1.48 1.48a.68.68 0 01.961 0l3.104 3.104a.2.2 0 00.342-.14l.002-1.326a.678.678 0 011.356.001v3.126a1 1 0 01-1 1H3.12a.678.678 0 01-.001-1.356l1.325-.002a.2.2 0 00.141-.342L1.48 2.441a.68.68 0 010-.96zM3.12 8.755a.678.678 0 00-.002 1.356l1.325.002a.2.2 0 01.141.342L1.48 13.559a.68.68 0 00.961.96l3.104-3.103a.2.2 0 01.342.14l.002 1.326a.678.678 0 001.356-.001V9.755a1 1 0 00-1-1H3.12zM14.52 1.48a.68.68 0 00-.961 0l-3.104 3.104a.2.2 0 01-.341-.14l-.003-1.326a.678.678 0 00-1.356.001v3.126a1 1 0 001 1h3.126a.678.678 0 00.001-1.356l-1.325-.002a.2.2 0 01-.141-.342l3.104-3.104a.68.68 0 000-.96zM14.52 14.52a.68.68 0 01-.961 0l-3.104-3.104a.2.2 0 00-.341.14l-.003 1.326a.678.678 0 01-1.356-.001V9.755a1 1 0 011-1h3.126a.678.678 0 01.001 1.356l-1.325.002a.2.2 0 00-.141.342l3.104 3.104a.68.68 0 010 .96z",fill:"#55566B"})))}const s="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEuNDgwMzkgMS40ODAzOUMxLjc0NTcxIDEuMjE1MDggMi4xNzU4NiAxLjIxNTA4IDIuNDQxMTggMS40ODAzOUw1LjU0NTEgNC41ODQzMUM1LjY3MDk2IDQuNzEwMTggNS44ODYxOCA0LjYyMTI3IDUuODg2NTIgNC40NDMyOEw1Ljg4OTA4IDMuMTE3ODdDNS44ODk4MSAyLjc0MzkzIDYuMTkzMTUgMi40NDExOCA2LjU2NzA5IDIuNDQxMThDNi45NDE1NCAyLjQ0MTE4IDcuMjQ1MSAyLjc0NDczIDcuMjQ1MSAzLjExOTE4VjYuMjQ1MUM3LjI0NTEgNi43OTczOCA2Ljc5NzM4IDcuMjQ1MSA2LjI0NTEgNy4yNDUxSDMuMTE5MThDMi43NDQ3MyA3LjI0NTEgMi40NDExOCA2Ljk0MTU0IDIuNDQxMTggNi41NjcwOUMyLjQ0MTE4IDYuMTkzMTUgMi43NDM5MyA1Ljg4OTgxIDMuMTE3ODcgNS44ODkwOEw0LjQ0MzI4IDUuODg2NTJDNC42MjEyNyA1Ljg4NjE4IDQuNzEwMTggNS42NzA5NiA0LjU4NDMxIDUuNTQ1MUwxLjQ4MDM5IDIuNDQxMThDMS4yMTUwOCAyLjE3NTg2IDEuMjE1MDggMS43NDU3MSAxLjQ4MDM5IDEuNDgwMzlaIiBmaWxsPSIjNTU1NjZCIi8+CjxwYXRoIGQ9Ik0zLjExOTE4IDguNzU0OUMyLjc0NDczIDguNzU0OSAyLjQ0MTE4IDkuMDU4NDYgMi40NDExOCA5LjQzMjkxQzIuNDQxMTggOS44MDY4NSAyLjc0MzkzIDEwLjExMDIgMy4xMTc4NyAxMC4xMTA5TDQuNDQzMjggMTAuMTEzNUM0LjYyMTI3IDEwLjExMzggNC43MTAxOCAxMC4zMjkgNC41ODQzMSAxMC40NTQ5TDEuNDgwMzkgMTMuNTU4OEMxLjIxNTA4IDEzLjgyNDEgMS4yMTUwOCAxNC4yNTQzIDEuNDgwMzkgMTQuNTE5NkMxLjc0NTcxIDE0Ljc4NDkgMi4xNzU4NiAxNC43ODQ5IDIuNDQxMTggMTQuNTE5Nkw1LjU0NTEgMTEuNDE1N0M1LjY3MDk2IDExLjI4OTggNS44ODYxOCAxMS4zNzg3IDUuODg2NTIgMTEuNTU2N0w1Ljg4OTA4IDEyLjg4MjFDNS44ODk4MSAxMy4yNTYxIDYuMTkzMTUgMTMuNTU4OCA2LjU2NzA5IDEzLjU1ODhDNi45NDE1NCAxMy41NTg4IDcuMjQ1MSAxMy4yNTUzIDcuMjQ1MSAxMi44ODA4VjkuNzU0OUM3LjI0NTEgOS4yMDI2MiA2Ljc5NzM4IDguNzU0OSA2LjI0NTEgOC43NTQ5SDMuMTE5MThaIiBmaWxsPSIjNTU1NjZCIi8+CjxwYXRoIGQ9Ik0xNC41MTk2IDEuNDgwMzlDMTQuMjU0MyAxLjIxNTA4IDEzLjgyNDEgMS4yMTUwOCAxMy41NTg4IDEuNDgwMzlMMTAuNDU0OSA0LjU4NDMxQzEwLjMyOSA0LjcxMDE4IDEwLjExMzggNC42MjEyNyAxMC4xMTM1IDQuNDQzMjhMMTAuMTEwOSAzLjExNzg3QzEwLjExMDIgMi43NDM5MyA5LjgwNjg1IDIuNDQxMTggOS40MzI5MSAyLjQ0MTE4QzkuMDU4NDYgMi40NDExOCA4Ljc1NDkgMi43NDQ3MyA4Ljc1NDkgMy4xMTkxOFY2LjI0NTFDOC43NTQ5IDYuNzk3MzggOS4yMDI2MiA3LjI0NTEgOS43NTQ5IDcuMjQ1MUgxMi44ODA4QzEzLjI1NTMgNy4yNDUxIDEzLjU1ODggNi45NDE1NCAxMy41NTg4IDYuNTY3MDlDMTMuNTU4OCA2LjE5MzE1IDEzLjI1NjEgNS44ODk4MSAxMi44ODIxIDUuODg5MDhMMTEuNTU2NyA1Ljg4NjUyQzExLjM3ODcgNS44ODYxOCAxMS4yODk4IDUuNjcwOTYgMTEuNDE1NyA1LjU0NTFMMTQuNTE5NiAyLjQ0MTE4QzE0Ljc4NDkgMi4xNzU4NiAxNC43ODQ5IDEuNzQ1NzEgMTQuNTE5NiAxLjQ4MDM5WiIgZmlsbD0iIzU1NTY2QiIvPgo8cGF0aCBkPSJNMTQuNTE5NiAxNC41MTk2QzE0LjI1NDMgMTQuNzg0OSAxMy44MjQxIDE0Ljc4NDkgMTMuNTU4OCAxNC41MTk2TDEwLjQ1NDkgMTEuNDE1N0MxMC4zMjkgMTEuMjg5OCAxMC4xMTM4IDExLjM3ODcgMTAuMTEzNSAxMS41NTY3TDEwLjExMDkgMTIuODgyMUMxMC4xMTAyIDEzLjI1NjEgOS44MDY4NSAxMy41NTg4IDkuNDMyOTEgMTMuNTU4OEM5LjA1ODQ2IDEzLjU1ODggOC43NTQ5IDEzLjI1NTMgOC43NTQ5IDEyLjg4MDhWOS43NTQ5QzguNzU0OSA5LjIwMjYyIDkuMjAyNjIgOC43NTQ5IDkuNzU0OSA4Ljc1NDlIMTIuODgwOEMxMy4yNTUzIDguNzU0OSAxMy41NTg4IDkuMDU4NDYgMTMuNTU4OCA5LjQzMjkxQzEzLjU1ODggOS44MDY4NSAxMy4yNTYxIDEwLjExMDIgMTIuODgyMSAxMC4xMTA5TDExLjU1NjcgMTAuMTEzNUMxMS4zNzg3IDEwLjExMzggMTEuMjg5OCAxMC4zMjkgMTEuNDE1NyAxMC40NTQ5TDE0LjUxOTYgMTMuNTU4OEMxNC43ODQ5IDEzLjgyNDEgMTQuNzg0OSAxNC4yNTQzIDE0LjUxOTYgMTQuNTE5NloiIGZpbGw9IiM1NTU2NkIiLz4KPC9zdmc+Cg=="},122:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>a,default:()=>s});var r,i=n(15);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){return i.createElement("svg",o({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.71 5.538a.71.71 0 00.71-.71V2.692c0-.701.57-1.272 1.272-1.272h2.181a.71.71 0 000-1.42H2.692A2.695 2.695 0 000 2.692v2.136c0 .392.318.71.71.71zM11.127 0h2.181A2.695 2.695 0 0116 2.692v2.136a.71.71 0 01-1.42 0V2.692c0-.701-.57-1.272-1.272-1.272h-2.181a.71.71 0 010-1.42zm3.453 11.172a.71.71 0 011.42 0v2.136A2.695 2.695 0 0113.308 16h-2.181a.71.71 0 010-1.42h2.181c.701 0 1.272-.57 1.272-1.272v-2.136zM2.692 14.58h2.181a.71.71 0 010 1.42H2.692A2.695 2.695 0 010 13.308v-2.136a.71.71 0 111.42 0v2.136c0 .701.57 1.272 1.272 1.272z",fill:"currentColor"})))}const s="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0wLjcxMDE0MiA1LjUzODI1QzEuMTAyMjEgNS41MzgyNSAxLjQyMDI4IDUuMjIwMTQgMS40MjAyOCA0LjgyODA0VjIuNjkyMTZDMS40MjAyOCAxLjk5MDg3IDEuOTkwNzEgMS40MjA0IDIuNjkxOTMgMS40MjA0SDQuODczMjNDNS4yNjUyOSAxLjQyMDQgNS41ODMzNyAxLjEwMjMgNS41ODMzNyAwLjcxMDIwMUM1LjU4MzM3IDAuMzE4MTA0IDUuMjY1MjkgMCA0Ljg3MzIzIDBIMi42OTE5M0MxLjIwNzU3IDAgMCAxLjIwNzY3IDAgMi42OTIxNlY0LjgyODA0QzAgNS4yMjAxNCAwLjMxODA3OCA1LjUzODI1IDAuNzEwMTQyIDUuNTM4MjVaTTExLjEyNjggMEgxMy4zMDgxQzE0Ljc5MjUgMCAxNiAxLjIwNzY3IDE2IDIuNjkyMTZWNC44MjgwNEMxNiA1LjIyMDE0IDE1LjY4MiA1LjUzODI1IDE1LjI4OTkgNS41MzgyNUMxNC44OTc4IDUuNTM4MjUgMTQuNTc5OCA1LjIyMDE0IDE0LjU3OTggNC44MjgwNFYyLjY5MjE2QzE0LjU3OTggMS45OTA4NyAxNC4wMDkzIDEuNDIwNCAxMy4zMDgxIDEuNDIwNEgxMS4xMjY4QzEwLjczNDcgMS40MjA0IDEwLjQxNjcgMS4xMDIzIDEwLjQxNjcgMC43MTAyMDFDMTAuNDE2NyAwLjMxODEwNCAxMC43MzQ3IDAgMTEuMTI2OCAwWk0xNC41Nzk4IDExLjE3MTZDMTQuNTc5OCAxMC43Nzk1IDE0Ljg5NzggMTAuNDYxNCAxNS4yODk5IDEwLjQ2MTRDMTUuNjgyIDEwLjQ2MTQgMTYgMTAuNzc5NSAxNiAxMS4xNzE2VjEzLjMwNzhDMTYgMTQuNzkyMyAxNC43OTI1IDE2IDEzLjMwODEgMTZIMTEuMTI2OEMxMC43MzQ3IDE2IDEwLjQxNjcgMTUuNjgxOSAxMC40MTY3IDE1LjI4OThDMTAuNDE2NyAxNC44OTc3IDEwLjczNDcgMTQuNTc5NiAxMS4xMjY4IDE0LjU3OTZIMTMuMzA4MUMxNC4wMDkzIDE0LjU3OTYgMTQuNTc5OCAxNC4wMDkxIDE0LjU3OTggMTMuMzA3OFYxMS4xNzE2Wk0yLjY5MTkzIDE0LjU3OTZINC44NzMyM0M1LjI2NTI5IDE0LjU3OTYgNS41ODMzNyAxNC44OTc3IDUuNTgzMzcgMTUuMjg5OEM1LjU4MzM3IDE1LjY4MTkgNS4yNjUyOSAxNiA0Ljg3MzIzIDE2SDIuNjkxOTNDMS4yMDc1NyAxNiAwIDE0Ljc5MjMgMCAxMy4zMDc4VjExLjE3MTZDMCAxMC43NzkyIDAuMzE4MDc4IDEwLjQ2MTQgMC43MTAxNDIgMTAuNDYxNEMxLjEwMjIxIDEwLjQ2MTQgMS40MjAyOCAxMC43Nzk1IDEuNDIwMjggMTEuMTcxNlYxMy4zMDc4QzEuNDIwMjggMTQuMDA5MSAxLjk5MDcxIDE0LjU3OTYgMi42OTE5MyAxNC41Nzk2WiIgZmlsbD0iY3VycmVudENvbG9yIi8+Cjwvc3ZnPgo="},760:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>a,default:()=>s});var r,i=n(15);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){return i.createElement("svg",o({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.505 6.454a.57.57 0 01.806.806l-4.604 4.604a1 1 0 01-1.414 0L2.689 7.26a.57.57 0 01.805-.806l2.228 2.224c.63.63 1.707.183 1.707-.707V.57a.571.571 0 111.142 0v7.4c0 .89 1.077 1.337 1.707.707l2.227-2.224zm.21 8.403a1 1 0 001-1v-.714a.571.571 0 111.142 0v1.714c0 .631-.512 1.143-1.143 1.143H2.286a1.143 1.143 0 01-1.143-1.143v-1.714a.571.571 0 111.143 0v.714a1 1 0 001 1h9.428z",fill:"currentColor"})))}const s="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMi41MDU1IDYuNDUzODlDMTIuNzI4MiA2LjIzMTU3IDEzLjA4ODggNi4yMzE2OSAxMy4zMTEzIDYuNDU0MTVDMTMuNTMzOCA2LjY3NjcyIDEzLjUzMzggNy4wMzc1NyAxMy4zMTEzIDcuMjYwMTNMOC43MDcwNyAxMS44NjQzQzguMzE2NTUgMTIuMjU0OCA3LjY4MzM4IDEyLjI1NDggNy4yOTI4NiAxMS44NjQzTDIuNjg4NjcgNy4yNjAxM0MyLjQ2NjEgNy4wMzc1NyAyLjQ2NjEgNi42NzY3MiAyLjY4ODY3IDYuNDU0MTVDMi45MTExMyA2LjIzMTY5IDMuMjcxNzggNi4yMzE1NyAzLjQ5NDM4IDYuNDUzODlMNS43MjE5IDguNjc4NDdDNi4zNTIwNSA5LjMwNzc5IDcuNDI4NTQgOC44NjE0OCA3LjQyODU0IDcuOTcwODlWMC41NzE0MjhDNy40Mjg1NCAwLjI1NTgzNyA3LjY4NDM3IDAgNy45OTk5NiAwQzguMzE1NTYgMCA4LjU3MTM5IDAuMjU1ODM4IDguNTcxMzkgMC41NzE0MjlWNy45NzA4OUM4LjU3MTM5IDguODYxNDggOS42NDc4OCA5LjMwNzc5IDEwLjI3OCA4LjY3ODQ3TDEyLjUwNTUgNi40NTM4OVpNMTIuNzE0MyAxNC44NTcxQzEzLjI2NjUgMTQuODU3MSAxMy43MTQzIDE0LjQwOTQgMTMuNzE0MyAxMy44NTcxVjEzLjE0MjlDMTMuNzE0MyAxMi44MjczIDEzLjk3MDEgMTIuNTcxNCAxNC4yODU3IDEyLjU3MTRDMTQuNjAxMyAxMi41NzE0IDE0Ljg1NzEgMTIuODI3MyAxNC44NTcxIDEzLjE0MjlWMTQuODU3MUMxNC44NTcxIDE1LjQ4ODMgMTQuMzQ1NCAxNiAxMy43MTQzIDE2SDIuMjg1NjhDMS42NTQ1IDE2IDEuMTQyODIgMTUuNDg4MyAxLjE0MjgyIDE0Ljg1NzFWMTMuMTQyOUMxLjE0MjgyIDEyLjgyNzMgMS4zOTg2NiAxMi41NzE0IDEuNzE0MjUgMTIuNTcxNEMyLjAyOTg0IDEyLjU3MTQgMi4yODU2OCAxMi44MjczIDIuMjg1NjggMTMuMTQyOVYxMy44NTcxQzIuMjg1NjggMTQuNDA5NCAyLjczMzQgMTQuODU3MSAzLjI4NTY4IDE0Ljg1NzFIMTIuNzE0M1oiIGZpbGw9ImN1cnJlbnRDb2xvciIvPgo8L3N2Zz4K"},855:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>a,default:()=>s});var r,i=n(15);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){return i.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"none"},e),r||(r=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.702 39.816l-.06-.058h-.003l-11.52-11.52a1.92 1.92 0 012.717-2.714l8.242 8.242V1.92c0-1.058.861-1.92 1.92-1.92 1.058 0 1.92.862 1.92 1.92v31.846l8.241-8.242a1.908 1.908 0 011.359-.562 1.92 1.92 0 011.358 3.276l-11.52 11.52c-.089.09-.187.17-.293.24-.045.032-.098.06-.151.087l-.004.002c-.06.033-.117.063-.176.087-.06.024-.125.045-.187.062a1.826 1.826 0 01-1.092 0 1.348 1.348 0 01-.36-.146 1.28 1.28 0 01-.161-.092 2.137 2.137 0 01-.23-.182zM44.16 34.56c0-1.058.862-1.92 1.92-1.92 1.058 0 1.92.862 1.92 1.92v11.52c0 1.058-.862 1.92-1.92 1.92H1.92A1.923 1.923 0 010 46.08V34.56c0-1.058.862-1.92 1.92-1.92 1.058 0 1.92.862 1.92 1.92v9.6h40.32v-9.6z",fill:"currentColor"})))}const s="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0OCIgaGVpZ2h0PSI0OCIgdmlld0JveD0iMCAwIDQ4IDQ4IiBmaWxsPSJub25lIj4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTIyLjcwMTYgMzkuODE2TDIyLjY0MTYgMzkuNzU4NEgyMi42MzkyTDExLjExOTIgMjguMjM4NEMxMC4zNzA0IDI3LjQ4OTYgMTAuMzcwNCAyNi4yNzI4IDExLjExOTIgMjUuNTI0QzExLjQ4MTYgMjUuMTYxNiAxMS45NjQgMjQuOTYyNCAxMi40Nzc2IDI0Ljk2MjRDMTIuOTkxMiAyNC45NjI0IDEzLjQ3MzYgMjUuMTYxNiAxMy44MzYgMjUuNTI0TDIyLjA3NzYgMzMuNzY1NlYxLjkyQzIyLjA3NzYgMC44NjE2IDIyLjkzOTIgMCAyMy45OTc2IDBDMjUuMDU2IDAgMjUuOTE3NiAwLjg2MTYgMjUuOTE3NiAxLjkyVjMzLjc2NTZMMzQuMTU5MiAyNS41MjRDMzQuNTIxNiAyNS4xNjE2IDM1LjAwNCAyNC45NjI0IDM1LjUxNzYgMjQuOTYyNEMzNi4wMzEyIDI0Ljk2MjQgMzYuNTEzNiAyNS4xNjE2IDM2Ljg3NiAyNS41MjRDMzcuNjI0OCAyNi4yNzI4IDM3LjYyNDggMjcuNDg5NiAzNi44NzYgMjguMjM4NEwyNS4zNTYgMzkuNzU4NEMyNS4yNjcyIDM5Ljg0NzIgMjUuMTY4OCAzOS45Mjg4IDI1LjA2MzIgMzkuOTk4NEMyNS4wMTc2IDQwLjAyOTYgMjQuOTY0OCA0MC4wNTg0IDI0LjkxMiA0MC4wODQ4TDI0LjkwODEgNDAuMDg2OUMyNC44NDcyIDQwLjExOTcgMjQuNzkwNyA0MC4xNTAxIDI0LjczMiA0MC4xNzM2QzI0LjY3MiA0MC4xOTc2IDI0LjYwNzIgNDAuMjE5MiAyNC41NDQ4IDQwLjIzNkMyNC40ODcyIDQwLjI1NTIgMjQuNDMyIDQwLjI2OTYgMjQuMzc0NCA0MC4yODE2QzI0LjI0OTYgNDAuMzA4IDI0LjEyMjQgNDAuMzIgMjMuOTk3NiA0MC4zMkMyMy44NzI4IDQwLjMyIDIzLjc0NTYgNDAuMzA1NiAyMy42MjA4IDQwLjI4MTZDMjMuNTYzMiA0MC4yNjk2IDIzLjUwOCA0MC4yNTUyIDIzLjQ1MjggNDAuMjM2QzIzLjM4OCA0MC4yMTkyIDIzLjMyNTYgNDAuMiAyMy4yNjMyIDQwLjE3MzZDMjMuMjAzMiA0MC4xNDk2IDIzLjE0OCA0MC4xMjA4IDIzLjA5MjggNDAuMDg5NkMyMy4wMzI4IDQwLjA2MDggMjIuOTgyNCA0MC4wMzIgMjIuOTMyIDM5Ljk5ODRDMjIuODUwNCAzOS45NDMyIDIyLjc3MzYgMzkuODgwOCAyMi43MDE2IDM5LjgxNlpNNDQuMTYgMzQuNTZDNDQuMTYgMzMuNTAxNiA0NS4wMjE2IDMyLjY0IDQ2LjA4IDMyLjY0QzQ3LjEzODQgMzIuNjQgNDggMzMuNTAxNiA0OCAzNC41NlY0Ni4wOEM0OCA0Ny4xMzg0IDQ3LjEzODQgNDggNDYuMDggNDhIMS45MkMwLjg2MTYgNDggMCA0Ny4xMzg0IDAgNDYuMDhWMzQuNTZDMCAzMy41MDE2IDAuODYxNiAzMi42NCAxLjkyIDMyLjY0QzIuOTc4NCAzMi42NCAzLjg0IDMzLjUwMTYgMy44NCAzNC41NlY0NC4xNkg0NC4xNlYzNC41NloiIGZpbGw9ImN1cnJlbnRDb2xvciIvPgo8L3N2Zz4="},722:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>a,default:()=>s});var r,i=n(15);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){return i.createElement("svg",o({width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("path",{d:"M10 0A9.938 9.938 0 000 10a9.938 9.938 0 0010 10 9.937 9.937 0 0010-10A9.937 9.937 0 0010 0zm3.89 15L5 6.11l1.111-1.11L15 13.888 13.89 15z",fill:"#E31B5D"})))}const s="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEwIDAuMDAwMTkxMDM3QzguNjg0NTMgLTAuMDA3OTY1MSA3LjM4MDUzIDAuMjQ1MTE5IDYuMTYzNjEgMC43NDQ3NjhDNC45NDY2OSAxLjI0NDQyIDMuODQxMDggMS45ODA2OSAyLjkxMDg4IDIuOTEwODhDMS45ODA2OSAzLjg0MTA4IDEuMjQ0NDIgNC45NDY2OSAwLjc0NDc2OCA2LjE2MzYxQzAuMjQ1MTE5IDcuMzgwNTMgLTAuMDA3OTY1MSA4LjY4NDUzIDAuMDAwMTkxMDM3IDEwQy0wLjAwNzk2NTEgMTEuMzE1NSAwLjI0NTExOSAxMi42MTk1IDAuNzQ0NzY4IDEzLjgzNjRDMS4yNDQ0MiAxNS4wNTMzIDEuOTgwNjkgMTYuMTU4OSAyLjkxMDg4IDE3LjA4OTFDMy44NDEwOCAxOC4wMTkzIDQuOTQ2NjkgMTguNzU1NiA2LjE2MzYxIDE5LjI1NTJDNy4zODA1MyAxOS43NTQ5IDguNjg0NTMgMjAuMDA4IDEwIDE5Ljk5OThDMTEuMzE1NSAyMC4wMDggMTIuNjE5NSAxOS43NTQ5IDEzLjgzNjQgMTkuMjU1MkMxNS4wNTMzIDE4Ljc1NTYgMTYuMTU4OSAxOC4wMTkzIDE3LjA4OTEgMTcuMDg5MUMxOC4wMTkzIDE2LjE1ODkgMTguNzU1NiAxNS4wNTMzIDE5LjI1NTIgMTMuODM2NEMxOS43NTQ5IDEyLjYxOTUgMjAuMDA4IDExLjMxNTUgMTkuOTk5OCAxMEMyMC4wMDggOC42ODQ1MyAxOS43NTQ5IDcuMzgwNTMgMTkuMjU1MiA2LjE2MzYxQzE4Ljc1NTYgNC45NDY2OSAxOC4wMTkzIDMuODQxMDggMTcuMDg5MSAyLjkxMDg4QzE2LjE1ODkgMS45ODA2OSAxNS4wNTMzIDEuMjQ0NDIgMTMuODM2NCAwLjc0NDc2OEMxMi42MTk1IDAuMjQ1MTE5IDExLjMxNTUgLTAuMDA3OTY1MSAxMCAwLjAwMDE5MTAzN1pNMTMuODg5MSAxNC45OTk5TDUuMDAwMSA2LjExMTI5TDYuMTExMjkgNS4wMDAxTDE0Ljk5OTkgMTMuODg5MUwxMy44ODkxIDE0Ljk5OTlaIiBmaWxsPSIjRTMxQjVEIi8+Cjwvc3ZnPgo="},174:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>a,default:()=>s});var r,i=n(15);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){return i.createElement("svg",o({width:16,height:16,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("path",{d:"M9.333 16H6.667a1.334 1.334 0 01-1.334-1.333v-5.06l-4.94-4.94A1.333 1.333 0 010 3.727V1.333A1.333 1.333 0 011.333 0h13.334A1.333 1.333 0 0116 1.333v2.394a1.333 1.333 0 01-.393.94l-4.94 4.94v5.06A1.333 1.333 0 019.333 16zm-8-14.667v2.394L6.667 9.06v5.607h2.666V9.06l5.334-5.333V1.333H1.333z"})))}const s="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0iY3VycmVudENvbG9yIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNOS4zMzMzMyAxNkg2LjY2NjY3QzYuMzEzMDUgMTYgNS45NzM5MSAxNS44NTk1IDUuNzIzODYgMTUuNjA5NUM1LjQ3MzgxIDE1LjM1OTQgNS4zMzMzMyAxNS4wMjAzIDUuMzMzMzMgMTQuNjY2N1Y5LjYwNjY3TDAuMzkzMzMzIDQuNjY2NjdDMC4xNDI5NDIgNC40MTc3NyAwLjAwMTQ4ODUzIDQuMDc5NzIgMCAzLjcyNjY3VjEuMzMzMzNDMCAwLjk3OTcxMSAwLjE0MDQ3NiAwLjY0MDU3MyAwLjM5MDUyNCAwLjM5MDUyNEMwLjY0MDU3MyAwLjE0MDQ3NiAwLjk3OTcxMSAwIDEuMzMzMzMgMEgxNC42NjY3QzE1LjAyMDMgMCAxNS4zNTk0IDAuMTQwNDc2IDE1LjYwOTUgMC4zOTA1MjRDMTUuODU5NSAwLjY0MDU3MyAxNiAwLjk3OTcxMSAxNiAxLjMzMzMzVjMuNzI2NjdDMTUuOTk4NSA0LjA3OTcyIDE1Ljg1NzEgNC40MTc3NyAxNS42MDY3IDQuNjY2NjdMMTAuNjY2NyA5LjYwNjY3VjE0LjY2NjdDMTAuNjY2NyAxNS4wMjAzIDEwLjUyNjIgMTUuMzU5NCAxMC4yNzYxIDE1LjYwOTVDMTAuMDI2MSAxNS44NTk1IDkuNjg2OTYgMTYgOS4zMzMzMyAxNlpNMS4zMzMzMyAxLjMzMzMzVjMuNzI2NjdMNi42NjY2NyA5LjA2VjE0LjY2NjdIOS4zMzMzM1Y5LjA2TDE0LjY2NjcgMy43MjY2N1YxLjMzMzMzSDEuMzMzMzNaIiBmaWxsPSJjdXJyZW50Q29sb3IiLz4KPC9zdmc+Cg=="},422:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>a,default:()=>s});var r,i=n(15);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){return i.createElement("svg",o({width:16,height:16,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 4h-2.05c-.25-1.15-1.25-2-2.45-2-1.2 0-2.2.85-2.45 2H1v1h7.05C8.3 6.15 9.3 7 10.5 7c1.2 0 2.2-.85 2.45-2H15V4zm-4.5 2C9.65 6 9 5.35 9 4.5S9.65 3 10.5 3s1.5.65 1.5 1.5S11.35 6 10.5 6zM1 12h2.05c.25 1.15 1.25 2 2.45 2 1.2 0 2.2-.85 2.45-2H15v-1H7.95C7.7 9.85 6.7 9 5.5 9c-1.2 0-2.2.85-2.45 2H1v1zm4.5-2c.85 0 1.5.65 1.5 1.5S6.35 13 5.5 13 4 12.35 4 11.5 4.65 10 5.5 10z"})))}const s="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0iY3VycmVudENvbG9yIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE1IDRIMTIuOTVDMTIuNyAyLjg1IDExLjcgMiAxMC41IDJDOS4zIDIgOC4zIDIuODUgOC4wNSA0SDFWNUg4LjA1QzguMyA2LjE1IDkuMyA3IDEwLjUgN0MxMS43IDcgMTIuNyA2LjE1IDEyLjk1IDVIMTVWNFpNMTAuNSA2QzkuNjUgNiA5IDUuMzUgOSA0LjVDOSAzLjY1IDkuNjUgMyAxMC41IDNDMTEuMzUgMyAxMiAzLjY1IDEyIDQuNUMxMiA1LjM1IDExLjM1IDYgMTAuNSA2Wk0xIDEySDMuMDVDMy4zIDEzLjE1IDQuMyAxNCA1LjUgMTRDNi43IDE0IDcuNyAxMy4xNSA3Ljk1IDEySDE1VjExSDcuOTVDNy43IDkuODUgNi43IDkgNS41IDlDNC4zIDkgMy4zIDkuODUgMy4wNSAxMUgxVjEyWk01LjUgMTBDNi4zNSAxMCA3IDEwLjY1IDcgMTEuNUM3IDEyLjM1IDYuMzUgMTMgNS41IDEzQzQuNjUgMTMgNCAxMi4zNSA0IDExLjVDNCAxMC42NSA0LjY1IDEwIDUuNSAxMFoiIGZpbGw9ImN1cnJlbnRDb2xvciIvPgo8L3N2Zz4K"},730:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>a,default:()=>s});var r,i=n(15);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){return i.createElement("svg",o({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.333 0h13.334c.353 0 .692.139.943.385.25.247.39.581.39.93v13.147c0 .349-.14.683-.39.93-.25.246-.59.385-.943.385H1.333c-.353 0-.692-.139-.942-.385a1.306 1.306 0 01-.391-.93V1.315C0 .966.14.632.39.385.64.14.98 0 1.334 0zm0 10.518v3.944h13.334v-1.315L11.333 9.86l-1.06 1.046a1.343 1.343 0 01-1.88 0L4.667 7.23l-3.334 3.287zm10.94-1.591l2.394 2.36V1.315H1.333v7.342l2.394-2.36a1.343 1.343 0 011.88 0l3.726 3.675 1.06-1.045a1.343 1.343 0 011.88 0zm-1.162-2.686a2.02 2.02 0 01-2.525-.246 1.953 1.953 0 01-.249-2.49c.22-.324.532-.577.898-.726a2.026 2.026 0 012.18.428 1.948 1.948 0 01.434 2.15c-.153.359-.409.667-.738.884zm-.74-2.187a.674.674 0 00-.842.082.653.653 0 00.216 1.072.676.676 0 00.726-.142.655.655 0 00.145-.717.66.66 0 00-.246-.295z",fill:"currentColor"})))}const s="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xLjMzMzMzIDBIMTQuNjY2N0MxNS4wMjAzIDAgMTUuMzU5NCAwLjEzODUxNSAxNS42MDk1IDAuMzg1MDc1QzE1Ljg1OTUgMC42MzE2MzYgMTYgMC45NjYwNDIgMTYgMS4zMTQ3M1YxNC40NjJDMTYgMTQuODEwNyAxNS44NTk1IDE1LjE0NTEgMTUuNjA5NSAxNS4zOTE3QzE1LjM1OTQgMTUuNjM4MiAxNS4wMjAzIDE1Ljc3NjcgMTQuNjY2NyAxNS43NzY3SDEuMzMzMzNDMC45Nzk3MTEgMTUuNzc2NyAwLjY0MDU3MyAxNS42MzgyIDAuMzkwNTI0IDE1LjM5MTdDMC4xNDA0NzYgMTUuMTQ1MSAwIDE0LjgxMDcgMCAxNC40NjJWMS4zMTQ3M0MwIDAuOTY2MDQyIDAuMTQwNDc2IDAuNjMxNjM2IDAuMzkwNTI0IDAuMzg1MDc1QzAuNjQwNTczIDAuMTM4NTE1IDAuOTc5NzExIDAgMS4zMzMzMyAwWk0xLjMzMzMzIDEwLjUxNzhWMTQuNDYySDE0LjY2NjdWMTMuMTQ3M0wxMS4zMzMzIDkuODYwNDdMMTAuMjczMyAxMC45MDU3QzEwLjAyMzUgMTEuMTUwNSA5LjY4NTU4IDExLjI4OCA5LjMzMzMzIDExLjI4OEM4Ljk4MTA5IDExLjI4OCA4LjY0MzE1IDExLjE1MDUgOC4zOTMzMyAxMC45MDU3TDQuNjY2NjcgNy4yMzEwMUwxLjMzMzMzIDEwLjUxNzhaTTEyLjI3MzMgOC45MjcwMUwxNC42NjY3IDExLjI4NjlWMS4zMTQ3M0gxLjMzMzMzVjguNjU3NDlMMy43MjY2NyA2LjI5NzU1QzMuOTc2NDggNi4wNTI2OCA0LjMxNDQyIDUuOTE1MjQgNC42NjY2NyA1LjkxNTI0QzUuMDE4OTEgNS45MTUyNCA1LjM1Njg1IDYuMDUyNjggNS42MDY2NyA2LjI5NzU1TDkuMzMzMzMgOS45NzIyMkwxMC4zOTMzIDguOTI3MDFDMTAuNjQzMiA4LjY4MjE0IDEwLjk4MTEgOC41NDQ3IDExLjMzMzMgOC41NDQ3QzExLjY4NTYgOC41NDQ3IDEyLjAyMzUgOC42ODIxNCAxMi4yNzMzIDguOTI3MDFaTTExLjExMTEgNi4yNDA3NEMxMC43ODIyIDYuNDU3NDQgMTAuMzk1NiA2LjU3MzA5IDEwIDYuNTczMDlDOS40Njk1NyA2LjU3MzA5IDguOTYwODYgNi4zNjUzMiA4LjU4NTc5IDUuOTk1NDhDOC4yMTA3MSA1LjYyNTY0IDggNS4xMjQwMyA4IDQuNjAxQzggNC4yMTA5NiA4LjExNzMgMy44Mjk2NyA4LjMzNzA2IDMuNTA1MzZDOC41NTY4MiAzLjE4MTA2IDguODY5MTggMi45MjgyOSA5LjIzNDYzIDIuNzc5MDJDOS42MDAwOSAyLjYyOTc2IDEwLjAwMjIgMi41OTA3MSAxMC4zOTAyIDIuNjY2OEMxMC43NzgxIDIuNzQyODkgMTEuMTM0NSAyLjkzMDcyIDExLjQxNDIgMy4yMDY1MkMxMS42OTM5IDMuNDgyMzIgMTEuODg0NCAzLjgzMzcyIDExLjk2MTYgNC4yMTYyN0MxMi4wMzg3IDQuNTk4ODEgMTEuOTk5MSA0Ljk5NTMzIDExLjg0NzggNS4zNTU2OUMxMS42OTY0IDUuNzE2MDQgMTEuNDQgNi4wMjQwNCAxMS4xMTExIDYuMjQwNzRaTTEwLjM3MDQgNC4wNTQ0MkMxMC4yNjA3IDMuOTgyMTkgMTAuMTMxOSAzLjk0MzY0IDEwIDMuOTQzNjRDOS44MjMxOSAzLjk0MzY0IDkuNjUzNjIgNC4wMTI4OSA5LjUyODU5IDQuMTM2MTdDOS40MDM1NyA0LjI1OTQ1IDkuMzMzMzMgNC40MjY2NiA5LjMzMzMzIDQuNjAxQzkuMzMzMzMgNC43MzEwMSA5LjM3MjQzIDQuODU4MTEgOS40NDU2OSA0Ljk2NjIxQzkuNTE4OTQgNS4wNzQzMiA5LjYyMzA2IDUuMTU4NTcgOS43NDQ4OCA1LjIwODMzQzkuODY2NyA1LjI1ODA4IDEwLjAwMDcgNS4yNzExIDEwLjEzMDEgNS4yNDU3NEMxMC4yNTk0IDUuMjIwMzcgMTAuMzc4MiA1LjE1Nzc2IDEwLjQ3MTQgNS4wNjU4M0MxMC41NjQ2IDQuOTczOSAxMC42MjgxIDQuODU2NzYgMTAuNjUzOSA0LjcyOTI1QzEwLjY3OTYgNC42MDE3MyAxMC42NjY0IDQuNDY5NTUgMTAuNjE1OSA0LjM0OTQ0QzEwLjU2NTUgNC4yMjkzMiAxMC40OCA0LjEyNjY2IDEwLjM3MDQgNC4wNTQ0MloiIGZpbGw9ImN1cnJlbnRDb2xvciIvPgo8L3N2Zz4K"},839:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>a,default:()=>s});var r,i=n(15);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){return i.createElement("svg",o({viewBox:"0 0 11 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.53 7.143h2.285v1.974c-.08.789.472 1.496 1.233 1.579.096.011.193.011.29 0h.597a.58.58 0 00.544-.462v-.047l.381-2.503 1.348-2.12h2.459V.038H3.434C.602.038.008 1.755.008 3.196v2.368c-.08.79.472 1.496 1.233 1.58.096.01.193.01.29 0zM8.384.827h1.522v3.948H8.383V.827zm-4.95 0C1.615.827.77 1.581.77 3.196v2.368c0 .569.213.79.761.79h3.046v2.763c0 .568.213.79.761.79h.43l.054-.396.278-2.12 1.522-2.34V.827H3.434z"})))}const s="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEgMTEiIGZpbGw9ImN1cnJlbnRDb2xvciIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xLjUzMDU5IDcuMTQzMDhIMy44MTQ2NlY5LjExNjc1QzMuNzM0OCA5LjkwNTkyIDQuMjg2OTkgMTAuNjEyOCA1LjA0ODA2IDEwLjY5NTdDNS4xNDQxNiAxMC43MDc1IDUuMjQxMjggMTAuNzA3NSA1LjMzNzM4IDEwLjY5NTdINS45MzUwNEM2LjE5Njc1IDEwLjY4ODIgNi40MjA1NiAxMC40OTg0IDYuNDc5NDEgMTAuMjMzOFYxMC4xODY1TDYuODYwMDkgNy42ODM4N0w4LjIwNzY5IDUuNTY0MTVIMTAuNjY2OVYwLjAzNzg5MjNIMy40MzM5OUMwLjYwMTc0MSAwLjAzNzg5MjMgMC4wMDc4ODMwNyAxLjc1NDk4IDAuMDA3ODgzMDcgMy4xOTU3NlY1LjU2NDE1Qy0wLjA3MTk4NTIgNi4zNTMzMiAwLjQ4MDIxMyA3LjA2MDIyIDEuMjQxMjggNy4xNDMwOEMxLjMzNzM4IDcuMTU0OTMgMS40MzQ0OSA3LjE1NDkzIDEuNTMwNTkgNy4xNDMwOFpNOC4zODI3NiAwLjgyNzM2MUg5LjkwNTQ4VjQuNzc0NjlIOC4zODI3NlYwLjgyNzM2MVpNMy40MzM4NCAwLjgyNzM1NUMxLjYxNDIgMC44MjczNTUgMC43NjkwOTIgMS41ODEzIDAuNzY5MDkyIDMuMTk1NzVWNS41NjQxNUMwLjc2OTA5MiA2LjEzMjU2IDAuOTgyMjcxIDYuMzUzNjEgMS41MzA0NSA2LjM1MzYxSDQuNTc1ODdWOS4xMTY3NEM0LjU3NTg3IDkuNjg1MTYgNC43ODkwNSA5LjkwNjIxIDUuMzM3MjMgOS45MDYyMUg1Ljc2NzM5TDUuODIwNjkgOS41MTE0OEw2LjA5ODU4IDcuMzkxNzZMNy42MjEzIDUuMDUxVjAuODI3MzU1SDMuNDMzODRaIiBmaWxsPSJjdXJyZW50Q29sb3IiLz4KPC9zdmc+Cg=="},426:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>a,default:()=>s});var r,i=n(15);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){return i.createElement("svg",o({width:17,height:12,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.689 0c.316 0 .604.192.735.49.05.104.076.222.076.34v10.326a.882.882 0 01-.053.296.804.804 0 01-.758.548H1.309a.804.804 0 01-.758-.548.867.867 0 01-.05-.343V.891a.867.867 0 01.05-.343A.804.804 0 011.31 0h14.379zm-7.19 6.908l6.506-5.805H1.994l6.505 5.805zM5.851 6L1.564 9.826V2.174L5.851 6zm.816.727l1.305 1.165a.793.793 0 00.527.204c.193 0 .38-.073.528-.204l1.305-1.165 4.673 4.17H1.994l4.673-4.17zm8.77 3.101L11.147 6l4.29-3.828v7.656z",fill:"currentColor"})))}const s="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxNyAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS42ODg4IDBDMTYuMDA0NyAwIDE2LjI5MzEgMC4xOTIxNTEgMTYuNDI0MSAwLjQ4OTY1MUMxNi40NzM4IDAuNTkzOTY1IDE2LjUgMC43MTE2MTggMTYuNSAwLjgzMDAxOFYxMS4xNTYxQzE2LjUgMTEuMjEzMyAxNi40OTQgMTEuMjcwMyAxNi40ODIxIDExLjMyNTZDMTYuNDczNyAxMS4zNjg2IDE2LjQ2MiAxMS40MTExIDE2LjQ0NzQgMTEuNDUyMUMxNi4zMjg1IDExLjc4NDkgMTYuMDMwOCAxMiAxNS42ODg4IDEySDEuMzA5NjFDMC45Njc2NDQgMTIgMC42Njk4ODkgMTEuNzg0OSAwLjU1MTAyNCAxMS40NTIxQzAuNTExNDc2IDExLjM0MTQgMC40OTQ3ODUgMTEuMjI2MSAwLjUwMTQxNSAxMS4xMDk0VjAuODkwNjI1QzAuNDk0Nzg1IDAuNzczOTI2IDAuNTExNDc2IDAuNjU4NjI4IDAuNTUxMDI0IDAuNTQ3ODkxQzAuNjY5ODc4IDAuMjE1MDYyIDAuOTY3NjQ0IDAgMS4zMDk2MSAwSDE1LjY4ODhaTTguNDk5MjEgNi45MDc5N0wxNS4wMDQ4IDEuMTAzMDZIMS45OTM2N0w4LjQ5OTIxIDYuOTA3OTdaTTUuODUxNSA2TDEuNTY0MDYgOS44MjU3VjIuMTc0M0w1Ljg1MTUgNlpNNi42NjY1NyA2LjcyNzI5TDcuOTcxODIgNy44OTE5OUM4LjExOTEzIDguMDIzNDIgOC4zMDY0MyA4LjA5NTggOC40OTkyMSA4LjA5NThDOC42OTIgOC4wOTU4IDguODc5MjkgOC4wMjM0MiA5LjAyNjU5IDcuODkxOTlMMTAuMzMxOSA2LjcyNzNMMTUuMDA0OCAxMC44OTY5SDEuOTkzNjdMNi42NjY1NyA2LjcyNzI5Wk0xNS40Mzc0IDkuODI4MzhMMTEuMTQ2OSA2TDE1LjQzNzQgMi4xNzE2MlY5LjgyODM4WiIgZmlsbD0iY3VycmVudENvbG9yIi8+Cjwvc3ZnPgo="},435:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>a,default:()=>s});var r,i=n(15);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){return i.createElement("svg",o({viewBox:"0 0 12 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.803 3.6H7.519V1.625C7.599.836 7.046.13 6.285.046a1.182 1.182 0 00-.289 0h-.598a.58.58 0 00-.544.463v.047l-.38 2.503-1.348 2.12H.666v5.526H7.9c2.833 0 3.426-1.718 3.426-3.158V5.178c.08-.789-.472-1.496-1.233-1.579a1.183 1.183 0 00-.29 0zM2.95 9.914H1.428V5.968H2.95v3.947zm4.949 0c1.82 0 2.664-.754 2.664-2.368V5.178c0-.568-.213-.79-.761-.79H6.757V1.627c0-.569-.213-.79-.76-.79h-.431l-.053.395-.278 2.12-1.523 2.34v4.224H7.9z"})))}const s="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTIgMTEiIGZpbGw9ImN1cnJlbnRDb2xvciIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik05LjgwMjc4IDMuNTk5MzhINy41MTg3MVYxLjYyNTcyQzcuNTk4NTggMC44MzY1NDUgNy4wNDYzOCAwLjEyOTY0OSA2LjI4NTMxIDAuMDQ2Nzg0N0M2LjE4OTIxIDAuMDM0OTQyMiA2LjA5MjEgMC4wMzQ5NDIyIDUuOTk2IDAuMDQ2Nzg0N0g1LjM5ODMzQzUuMTM2NjIgMC4wNTQyMTk3IDQuOTEyODIgMC4yNDQwOTMgNC44NTM5NiAwLjUwODYyMlYwLjU1NTk5TDQuNDczMjkgMy4wNTg2TDMuMTI1NjggNS4xNzgzMUgwLjY2NjUwNFYxMC43MDQ2SDcuODk5MzlDMTAuNzMxNiAxMC43MDQ2IDExLjMyNTUgOC45ODc0OCAxMS4zMjU1IDcuNTQ2NzFWNS4xNzgzMUMxMS40MDU0IDQuMzg5MTQgMTAuODUzMiAzLjY4MjI0IDEwLjA5MjEgMy41OTkzOEM5Ljk5NTk5IDMuNTg3NTQgOS44OTg4OCAzLjU4NzU0IDkuODAyNzggMy41OTkzOFpNMi45NTA2MSA5LjkxNTFIMS40Mjc5VjUuOTY3NzdIMi45NTA2MVY5LjkxNTFaTTcuODk5NTQgOS45MTUxQzkuNzE5MTggOS45MTUxIDEwLjU2NDMgOS4xNjExNiAxMC41NjQzIDcuNTQ2N1Y1LjE3ODNDMTAuNTY0MyA0LjYwOTg5IDEwLjM1MTEgNC4zODg4NCA5LjgwMjkzIDQuMzg4ODRINi43NTc1VjEuNjI1NzFDNi43NTc1IDEuMDU3MjkgNi41NDQzMiAwLjgzNjI0MyA1Ljk5NjE1IDAuODM2MjQzSDUuNTY1OThMNS41MTI2OCAxLjIzMDk4TDUuMjM0NzkgMy4zNTA2OUwzLjcxMjA4IDUuNjkxNDZWOS45MTUxSDcuODk5NTRaIiBmaWxsPSJjdXJyZW50Q29sb3IiLz4KPC9zdmc+Cg=="},750:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>a,default:()=>s});var r,i=n(15);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){return i.createElement("svg",o({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.372 22.117a.888.888 0 11-1.255 1.255l-5.27-5.27c-.457-.456-1.183-.481-1.724-.128A9.782 9.782 0 012.865 2.864a9.78 9.78 0 0115.11 12.259c-.354.541-.33 1.267.128 1.725l5.27 5.269zM9.797 1.807a7.99 7.99 0 00-7.99 7.99 7.998 7.998 0 007.99 7.989 7.99 7.99 0 100-15.98z",fill:"#000"})))}const s="data:image/svg+xml;base64,PHN2ZyAgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTIzLjM3MjMgMjIuMTE3QzIzLjcxOSAyMi40NjM3IDIzLjcxOSAyMy4wMjU3IDIzLjM3MjMgMjMuMzcyM0MyMy4wMjU3IDIzLjcxOSAyMi40NjM3IDIzLjcxOSAyMi4xMTcgMjMuMzcyM0wxNi44NDc1IDE4LjEwMjhDMTYuMzkwNCAxNy42NDU3IDE1LjY2NDEgMTcuNjIwOCAxNS4xMjMgMTcuOTc0NUMxMS4xNjA4IDIwLjU2MzkgNS44MjM2MyAxOS45NTI1IDIuNTU3NjkgMTYuMzc1NEMtMC45Njc5NzIgMTIuNTEzOCAtMC44MzI3MjYgNi41NjIxNSAyLjg2NDcxIDIuODY0NzFDNi41NjIxNSAtMC44MzI3MjYgMTIuNTEzOCAtMC45Njc5NzIgMTYuMzc1NCAyLjU1NzY5QzE5Ljk1MjUgNS44MjM2MyAyMC41NjM5IDExLjE2MDggMTcuOTc0NSAxNS4xMjNDMTcuNjIwOCAxNS42NjQxIDE3LjY0NTcgMTYuMzkwNCAxOC4xMDI4IDE2Ljg0NzVMMjMuMzcyMyAyMi4xMTdaTTkuNzk2NzcgMS44MDY4N0M1LjM4NDI4IDEuODA2ODcgMS44MDcyNSA1LjM4MzkgMS44MDcyNSA5Ljc5NjM5QzEuODEyMTQgMTQuMjA2OSA1LjM4NjMxIDE3Ljc4MSA5Ljc5Njc3IDE3Ljc4NTlDMTQuMjA5MyAxNy43ODU5IDE3Ljc4NjMgMTQuMjA4OSAxNy43ODYzIDkuNzk2MzlDMTcuNzg2MyA1LjM4MzkgMTQuMjA5MyAxLjgwNjg3IDkuNzk2NzcgMS44MDY4N1oiIGZpbGw9IiMwMDAiLz4KPC9zdmc+"},996:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>a,default:()=>s});var r,i=n(15);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){return i.createElement("svg",o({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.42 4.828a.71.71 0 01-1.42 0V2.692A2.695 2.695 0 012.692 0h2.181a.71.71 0 010 1.42H2.692c-.701 0-1.272.57-1.272 1.272v2.136zM13.308 0h-2.181a.71.71 0 000 1.42h2.181c.701 0 1.272.57 1.272 1.272v2.136a.71.71 0 001.42 0V2.692A2.695 2.695 0 0013.308 0zm1.982 10.461a.71.71 0 00-.71.71v2.137c0 .701-.57 1.272-1.272 1.272h-2.181a.71.71 0 000 1.42h2.181A2.695 2.695 0 0016 13.308v-2.136a.71.71 0 00-.71-.71zM4.873 14.58H2.692c-.701 0-1.272-.57-1.272-1.272v-2.136a.71.71 0 00-1.42 0v2.136A2.695 2.695 0 002.692 16h2.181a.71.71 0 000-1.42zm7.729-1.977a.811.811 0 01-.578.24v-.001a.811.811 0 01-.577-.24l-1.187-1.186a4.046 4.046 0 01-2.26.68 4.067 4.067 0 01-2.895-1.2 4.068 4.068 0 01-1.199-2.895c0-1.094.426-2.122 1.2-2.895A4.067 4.067 0 018 3.906c1.094 0 2.122.426 2.896 1.2A4.068 4.068 0 0112.094 8c0 .816-.233 1.592-.679 2.26l1.187 1.187a.818.818 0 010 1.155zM9.737 9.737a.965.965 0 01.046-.043c.437-.46.678-1.06.678-1.693A2.463 2.463 0 008 5.54 2.463 2.463 0 005.54 8 2.463 2.463 0 008 10.46c.633 0 1.233-.24 1.693-.677a.855.855 0 01.044-.047z",fill:"#2B2C46"})))}const s="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xLjQyMDI4IDQuODI4MDRDMS40MjAyOCA1LjIyMDE0IDEuMTAyMjEgNS41MzgyNSAwLjcxMDE0MiA1LjUzODI1QzAuMzE4MDc4IDUuNTM4MjUgMCA1LjIyMDE0IDAgNC44MjgwNFYyLjY5MjE2QzAgMS4yMDc2NyAxLjIwNzU3IDAgMi42OTE5MyAwSDQuODczMjNDNS4yNjUyOSAwIDUuNTgzMzcgMC4zMTgxMDQgNS41ODMzNyAwLjcxMDIwMUM1LjU4MzM3IDEuMTAyMyA1LjI2NTI5IDEuNDIwNCA0Ljg3MzIzIDEuNDIwNEgyLjY5MTkzQzEuOTkwNzEgMS40MjA0IDEuNDIwMjggMS45OTA4NyAxLjQyMDI4IDIuNjkyMTZWNC44MjgwNFpNMTMuMzA4MSAwSDExLjEyNjhDMTAuNzM0NyAwIDEwLjQxNjcgMC4zMTgxMDQgMTAuNDE2NyAwLjcxMDIwMUMxMC40MTY3IDEuMTAyMyAxMC43MzQ3IDEuNDIwNCAxMS4xMjY4IDEuNDIwNEgxMy4zMDgxQzE0LjAwOTMgMS40MjA0IDE0LjU3OTggMS45OTA4NyAxNC41Nzk4IDIuNjkyMTZWNC44MjgwNEMxNC41Nzk4IDUuMjIwMTQgMTQuODk3OCA1LjUzODI1IDE1LjI4OTkgNS41MzgyNUMxNS42ODIgNS41MzgyNSAxNiA1LjIyMDE0IDE2IDQuODI4MDRWMi42OTIxNkMxNiAxLjIwNzY3IDE0Ljc5MjUgMCAxMy4zMDgxIDBaTTE1LjI4OTkgMTAuNDYxNEMxNC44OTc4IDEwLjQ2MTQgMTQuNTc5OCAxMC43Nzk1IDE0LjU3OTggMTEuMTcxNlYxMy4zMDc4QzE0LjU3OTggMTQuMDA5MSAxNC4wMDkzIDE0LjU3OTYgMTMuMzA4MSAxNC41Nzk2SDExLjEyNjhDMTAuNzM0NyAxNC41Nzk2IDEwLjQxNjcgMTQuODk3NyAxMC40MTY3IDE1LjI4OThDMTAuNDE2NyAxNS42ODE5IDEwLjczNDcgMTYgMTEuMTI2OCAxNkgxMy4zMDgxQzE0Ljc5MjUgMTYgMTYgMTQuNzkyMyAxNiAxMy4zMDc4VjExLjE3MTZDMTYgMTAuNzc5NSAxNS42ODIgMTAuNDYxNCAxNS4yODk5IDEwLjQ2MTRaTTQuODczMjMgMTQuNTc5NkgyLjY5MTkzQzEuOTkwNzEgMTQuNTc5NiAxLjQyMDI4IDE0LjAwOTEgMS40MjAyOCAxMy4zMDc4VjExLjE3MTZDMS40MjAyOCAxMC43Nzk1IDEuMTAyMjEgMTAuNDYxNCAwLjcxMDE0MiAxMC40NjE0QzAuMzE4MDc4IDEwLjQ2MTQgMCAxMC43NzkyIDAgMTEuMTcxNlYxMy4zMDc4QzAgMTQuNzkyMyAxLjIwNzU3IDE2IDIuNjkxOTMgMTZINC44NzMyM0M1LjI2NTI5IDE2IDUuNTgzMzcgMTUuNjgxOSA1LjU4MzM3IDE1LjI4OThDNS41ODMzNyAxNC44OTc3IDUuMjY1MjkgMTQuNTc5NiA0Ljg3MzIzIDE0LjU3OTZaTTEyLjYwMTkgMTIuNjAyOUMxMi40NDc2IDEyLjc1NzIgMTIuMjQyNSAxMi44NDIxIDEyLjAyNDIgMTIuODQyMUwxMi4wMjQ1IDEyLjg0MThDMTEuODA2MiAxMi44NDE4IDExLjYwMTEgMTIuNzU2OSAxMS40NDY4IDEyLjYwMjZMMTAuMjYwNCAxMS40MTYxQzkuNTkyMTggMTEuODYxMyA4LjgxNjYzIDEyLjA5NTIgOC4wMDA0NyAxMi4wOTUyQzYuOTA2ODUgMTIuMDk1MiA1Ljg3ODYzIDExLjY2OTQgNS4xMDU0IDEwLjg5NjFDNC4zMzIxNyAxMC4xMjI4IDMuOTA2NDEgOS4wOTQ1MyAzLjkwNjQxIDguMDAwODJDMy45MDY0MSA2LjkwNzExIDQuMzMyMTcgNS44Nzg4MSA1LjEwNTQgNS4xMDU1MkM1Ljg3ODYzIDQuMzMyMjIgNi45MDY4NSAzLjkwNjQzIDguMDAwNDcgMy45MDY0M0M5LjA5NDA4IDMuOTA2NDMgMTAuMTIyMyA0LjMzMjIyIDEwLjg5NTUgNS4xMDU1MkMxMS42Njg4IDUuODc4ODEgMTIuMDk0NSA2LjkwNzExIDEyLjA5NDUgOC4wMDA4MkMxMi4wOTQ1IDguODE3MDYgMTEuODYwNyA5LjU5MjY2IDExLjQxNTQgMTAuMjYxMkwxMi42MDE5IDExLjQ0NzhDMTIuOTIwMyAxMS43NjYyIDEyLjkyMDMgMTIuMjg0NSAxMi42MDE5IDEyLjYwMjlaTTkuNzM2ODUgOS43MzcwMkM5Ljc1MTcxIDkuNzIyNDggOS43NjcyMyA5LjcwNzk1IDkuNzgzNDIgOS42OTQwN0MxMC4yMjAxIDkuMjM0MjYgMTAuNDYwNSA4LjYzMzczIDEwLjQ2MDUgOC4wMDA4MkMxMC40NjA1IDYuNjQ0MTggOS4zNTY2NyA1LjU0MDIzIDguMDAwMTQgNS41NDAyM0M2LjY0MzYgNS41NDAyMyA1LjUzOTc0IDYuNjQ0MTggNS41Mzk3NCA4LjAwMDgyQzUuNTM5NzQgOS4zNTc0NyA2LjY0MzI3IDEwLjQ2MTQgOC4wMDAxNCAxMC40NjE0QzguNjMyOTkgMTAuNDYxNCA5LjIzMzQ3IDEwLjIyMTMgOS42OTMyNSA5Ljc4NDI1QzkuNzA3NDUgOS43Njc3NCA5LjcyMTk4IDkuNzUxODggOS43MzY4NSA5LjczNzAyWiIgZmlsbD0iIzJCMkM0NiIvPgo8L3N2Zz4K"},41:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>a,default:()=>s});var r,i=n(15);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){return i.createElement("svg",o({viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.667 10.989A6 6 0 109.333 1.01a6 6 0 00-6.666 9.978zm.476-9.265a5.143 5.143 0 115.714 8.552 5.143 5.143 0 01-5.714-8.552zM6 2.57a.643.643 0 100 1.286.643.643 0 000-1.286zm.429 6V5.143H4.714V6h.857v2.571H4.286v.858h3.428V8.57H6.43z"})))}const s="data:image/svg+xml;base64,PHN2ZyAgdmlld0JveD0iMCAwIDEyIDEyIiBmaWxsPSJjdXJyZW50Q29sb3IiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMi42NjY1OCAxMC45ODg4QzMuNjUzMjggMTEuNjQ4MSA0LjgxMzMxIDEyIDYgMTJDNy41OTEzIDEyIDkuMTE3NDIgMTEuMzY3OSAxMC4yNDI2IDEwLjI0MjZDMTEuMzY3OSA5LjExNzQyIDEyIDcuNTkxMyAxMiA2QzEyIDQuODEzMzEgMTEuNjQ4MSAzLjY1MzI4IDEwLjk4ODggMi42NjY1OEMxMC4zMjk1IDEuNjc5ODkgOS4zOTI0NiAwLjkxMDg1MSA4LjI5NjEgMC40NTY3MjVDNy4xOTk3NSAwLjAwMjU5OTcgNS45OTMzNSAtMC4xMTYyMiA0LjgyOTQ2IDAuMTE1MjkxQzMuNjY1NTcgMC4zNDY4MDIgMi41OTY0OCAwLjkxODI0NyAxLjc1NzM2IDEuNzU3MzZDMC45MTgyNDcgMi41OTY0OCAwLjM0NjgwMiAzLjY2NTU3IDAuMTE1MjkxIDQuODI5NDZDLTAuMTE2MjIgNS45OTMzNSAwLjAwMjU5OTcgNy4xOTk3NSAwLjQ1NjcyNSA4LjI5NjFDMC45MTA4NTEgOS4zOTI0NiAxLjY3OTg5IDEwLjMyOTUgMi42NjY1OCAxMC45ODg4Wk0zLjE0Mjc4IDEuNzIzODdDMy45ODg1MiAxLjE1ODc3IDQuOTgyODQgMC44NTcxNDUgNiAwLjg1NzE0NUM3LjM2Mzk3IDAuODU3MTQ1IDguNjcyMDggMS4zOTg5OCA5LjYzNjU1IDIuMzYzNDVDMTAuNjAxIDMuMzI3OTMgMTEuMTQyOSA0LjYzNjAzIDExLjE0MjkgNkMxMS4xNDI5IDcuMDE3MTYgMTAuODQxMiA4LjAxMTQ4IDEwLjI3NjEgOC44NTcyMkM5LjcxMTAzIDkuNzAyOTYgOC45MDc4MiAxMC4zNjIxIDcuOTY4MDkgMTAuNzUxNEM3LjAyODM1IDExLjE0MDYgNS45OTQzIDExLjI0MjUgNC45OTY2OCAxMS4wNDRDMy45OTkwNiAxMC44NDU2IDMuMDgyNjkgMTAuMzU1OCAyLjM2MzQ1IDkuNjM2NTVDMS42NDQyMSA4LjkxNzMxIDEuMTU0NCA4LjAwMDk0IDAuOTU1OTY0IDcuMDAzMzJDMC43NTc1MjYgNi4wMDU3MSAwLjg1OTM3MiA0Ljk3MTY1IDEuMjQ4NjIgNC4wMzE5MkMxLjYzNzg3IDMuMDkyMTggMi4yOTcwNSAyLjI4ODk4IDMuMTQyNzggMS43MjM4N1pNNiAyLjU3MTQzQzUuODcyODUgMi41NzE0MyA1Ljc0ODU3IDIuNjA5MTMgNS42NDI4NSAyLjY3OTc3QzUuNTM3MTMgMi43NTA0MSA1LjQ1NDczIDIuODUwODEgNS40MDYwOCAyLjk2ODI3QzUuMzU3NDIgMy4wODU3NCA1LjM0NDY5IDMuMjE1IDUuMzY5NDkgMy4zMzk3QzUuMzk0MyAzLjQ2NDQgNS40NTU1MyAzLjU3ODk1IDUuNTQ1NDMgMy42Njg4NUM1LjYzNTM0IDMuNzU4NzYgNS43NDk4OCAzLjgxOTk5IDUuODc0NTggMy44NDQ3OUM1Ljk5OTI5IDMuODY5NiA2LjEyODU0IDMuODU2ODYgNi4yNDYwMSAzLjgwODIxQzYuMzYzNDggMy43NTk1NSA2LjQ2Mzg4IDMuNjc3MTUgNi41MzQ1MiAzLjU3MTQ0QzYuNjA1MTUgMy40NjU3MiA2LjY0Mjg2IDMuMzQxNDMgNi42NDI4NiAzLjIxNDI5QzYuNjQyODYgMy4wNDM3OSA2LjU3NTEzIDIuODgwMjggNi40NTQ1NyAyLjc1OTcyQzYuMzM0MDEgMi42MzkxNiA2LjE3MDUgMi41NzE0MyA2IDIuNTcxNDNaTTYuNDI4NTcgOC41NzE0M1Y1LjE0Mjg2SDQuNzE0MjhWNkg1LjU3MTQzVjguNTcxNDNINC4yODU3MVY5LjQyODU3SDcuNzE0MjhWOC41NzE0M0g2LjQyODU3WiIgZmlsbD0iY3VycmVudENvbG9yIi8+Cjwvc3ZnPgo="},0:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>a,default:()=>s});var r,i=n(15);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){return i.createElement("svg",o({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("path",{clipRule:"evenodd",d:"M14.797.01a.825.825 0 00-.026-.01h-4.605l-.05.016-.08.028c-.292.101-.477.301-.523.605-.046.303.065.553.317.734.155.113.334.135.52.135h2.914l.016.036.01.026a2.812 2.812 0 01-.065.05c-.05.037-.098.074-.141.117-1.429 1.441-2.857 2.884-4.285 4.326L7.735 7.148l-.577.582c-.384.387-.768.774-1.151 1.163-.27.275-.319.64-.135.942.267.441.838.483 1.23.089l7.429-7.502c.026-.027.053-.053.086-.083l.05-.047v.111c-.12 1.093-.215 2.186-.228 3.286-.005.457.296.802.723.817.443.016.778-.304.789-.768l.012-.518c.018-.8.037-1.602.037-2.402 0-.608-.031-1.218-.075-1.825-.04-.564-.279-.81-.835-.928a2.038 2.038 0 00-.132-.022 2.72 2.72 0 01-.1-.016.384.384 0 01-.06-.018zm-8.14.002L6.625 0H2.082l-.114.021c-.084.016-.168.03-.252.05a2.23 2.23 0 00-1.71 2.062 4.379 4.379 0 00-.004.203v3.292c0 2.682.001 5.364-.002 8.046 0 .776.284 1.406.9 1.881.29.223.621.36.984.416.023.004.047.011.07.019l.034.01h12l.012-.008c.009-.007.018-.013.027-.015 1.233-.252 1.925-1.094 1.925-2.344v-.81-3.237c0-.083-.003-.167-.015-.249a.745.745 0 00-.69-.637.743.743 0 00-.766.522 1.266 1.266 0 00-.041.354c-.002.714-.002 1.428-.002 2.142v1.999c-.001.48-.303.779-.784.779H2.295c-.482 0-.782-.3-.782-.78V2.294a.94.94 0 01.023-.232c.089-.347.37-.544.777-.544H6.402c.073-.001.146-.002.219-.01a.741.741 0 00.666-.676.75.75 0 00-.561-.798C6.703.028 6.68.02 6.657.012z"})))}const s="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTYgMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTQuNzk3MiAwLjAwOTI0NDE4QzE0Ljc4ODcgMC4wMDYxNzEzOSAxNC43ODAxIDAuMDAzMTAzNDYgMTQuNzcxNSAwLjAwMDMxMjQ5NEwxNC43NzE4IDBIMTAuMTY1OEMxMC4xNDk1IDAuMDA1NTA2MSAxMC4xMzMyIDAuMDEwOTI0NCAxMC4xMTY4IDAuMDE2MzM3MUMxMC4wODk3IDAuMDI1MzYyNiAxMC4wNjI1IDAuMDM0MzcyNyAxMC4wMzU1IDAuMDQzNzQ5MUM5Ljc0NDQgMC4xNDUzMSA5LjU1ODkyIDAuMzQ1MzA2IDkuNTEzMTggMC42NDkzNjJDOS40Njc0NCAwLjk1MjQ4MSA5LjU3ODM1IDEuMjAxNTQgOS44Mjk2MyAxLjM4MzFDOS45ODUzNCAxLjQ5NTYgMTAuMTY0MiAxLjUxNzc4IDEwLjM1MDQgMS41MTc3OEMxMS4wMDMyIDEuNTE3MTEgMTEuNjU1OSAxLjUxNzI0IDEyLjMwODUgMS41MTczN0MxMi41Njk1IDEuNTE3NDIgMTIuODMwNSAxLjUxNzQ3IDEzLjA5MTUgMS41MTc0N0gxMy4yNjM5QzEzLjI2OSAxLjUyOTggMTMuMjc0MyAxLjU0MjAxIDEzLjI3OTYgMS41NTQxOEMxMy4yODMyIDEuNTYyNjkgMTMuMjg2OSAxLjU3MTE3IDEzLjI5MDUgMS41Nzk2NkMxMy4yNjg5IDEuNTk2ODggMTMuMjQ2OCAxLjYxMzU0IDEzLjIyNDYgMS42MzAxOUMxMy4xNzU3IDEuNjY3IDEzLjEyNjcgMS43MDM4MSAxMy4wODQgMS43NDY4NEMxMS42NTU0IDMuMTg4MjQgMTAuMjI3NCA0LjYzMDY0IDguNzk5NDkgNi4wNzI5MkM4LjQ0NDU5IDYuNDMxMzkgOC4wODk3IDYuNzg5ODYgNy43MzQ4MSA3LjE0ODNDNy41NDI4IDcuMzQyMiA3LjM1MDU4IDcuNTM1OTMgNy4xNTgzNSA3LjcyOTY4QzYuNzc0MDQgOC4xMTcgNi4zODk3IDguNTA0MzcgNi4wMDY4OCA4Ljg5MzI2QzUuNzM3MTIgOS4xNjc2MyA1LjY4ODI0IDkuNTMyOTQgNS44NzE4NCA5LjgzNTQzQzYuMTM5NDIgMTAuMjc2NCA2LjcxMDI3IDEwLjMxODIgNy4xMDEyOSA5LjkyMzU2TDE0LjUzMDYgMi40MjE1MkMxNC41NTcxIDIuMzk0OSAxNC41ODQ0IDIuMzY5MTMgMTQuNjE2NiAyLjMzODgyQzE0LjYzMiAyLjMyNDI5IDE0LjY0ODUgMi4zMDg3MyAxNC42NjY2IDIuMjkxNTJDMTQuNjY2NiAyLjMxMDg0IDE0LjY2NjkgMi4zMjcwNiAxNC42NjczIDIuMzQxMjVDMTQuNjY3OCAyLjM2NjMgMTQuNjY4MyAyLjM4NTA0IDE0LjY2NjMgMi40MDMzOUMxNC41NDY2IDMuNDk1NTYgMTQuNDUxNiA0LjU4OTI4IDE0LjQzOTQgNS42ODg5NUMxNC40MzQ0IDYuMTQ1NSAxNC43MzQ2IDYuNDkxNDQgMTUuMTYyNSA2LjUwNjQzQzE1LjYwNDkgNi41MjIwNiAxNS45NDA1IDYuMjAxNzUgMTUuOTUwOCA1LjczODMzQzE1Ljk1NDcgNS41NjU2IDE1Ljk1ODcgNS4zOTI4NiAxNS45NjI3IDUuMjIwMTFDMTUuOTgxNCA0LjQxOTM1IDE2IDMuNjE4NDUgMTYgMi44MTc3NkMxNiAyLjIwOTY0IDE1Ljk2OSAxLjYwMDI4IDE1LjkyNTUgMC45OTM0MThDMTUuODg0NyAwLjQyOTA1NCAxNS42NDYzIDAuMTgyODA5IDE1LjA4OTkgMC4wNjUzMTEyQzE1LjA0NjMgMC4wNTYwMTkgMTUuMDAyMSAwLjA0OTU4OCAxNC45NTc4IDAuMDQzMTU0OUMxNC45MjQ2IDAuMDM4MzM4MiAxNC44OTE1IDAuMDMzNTIwNCAxNC44NTg2IDAuMDI3NDk5NUMxNC44Mzc3IDAuMDIzNzY4NiAxNC44MTc0IDAuMDE2NDkyOSAxNC43OTcyIDAuMDA5MjQ0MThaTTYuNjU3MzUgMC4wMTE2MDY2QzYuNjQ2NSAwLjAwNzc4MjQ2IDYuNjM1NjQgMC4wMDM5NTM4NSA2LjYyNDcxIDAuMDAwMzIwNzgzSDIuMDgxNjZDMi4wNDM5OCAwLjAwNzU2NTg4IDIuMDA2MjIgMC4wMTQ0MjI4IDEuOTY4NDUgMC4wMjEyNzkxQzEuODg0MDYgMC4wMzY2MDI0IDEuNzk5NjcgMC4wNTE5MjMyIDEuNzE2MzQgMC4wNzE1Njk0QzAuNzUxOTU2IDAuMzAwMzE1IDAuMDUxMDcyNSAxLjE0NTYxIDAuMDA1OTU1MjkgMi4xMzM0QzAuMDAyODIyMTUgMi4yMDA5IDAuMDAyMTk1NTIgMi4yNjg3MSAwLjAwMjE5NTUyIDIuMzM2MjFDMC4wMDIxMDQ1NiAzLjQzMzMzIDAuMDAyMjUxMjcgNC41MzA0OCAwLjAwMjM5Nzk4IDUuNjI3NjNDMC4wMDI3NTY2MSA4LjMwOTU5IDAuMDAzMTE1MjYgMTAuOTkxNiAyLjMyMTI3ZS0wNiAxMy42NzM1Qy0wLjAwMDkzNzYyMSAxNC40NDk3IDAuMjgzNTUxIDE1LjA4MDMgMC45MDA0NjcgMTUuNTU1M0MxLjE5MDYgMTUuNzc4NCAxLjUyMTE0IDE1LjkxNDQgMS44ODM2NSAxNS45NzEzQzEuOTA3NDQgMTUuOTc0OCAxLjkzMDUyIDE1Ljk4MjIgMS45NTM2NiAxNS45ODk2QzEuOTY0OTUgMTUuOTkzMiAxLjk3NjI2IDE1Ljk5NjggMS45ODc2NyAxNkgxMy45ODgyQzEzLjk5MjMgMTUuOTk3NSAxMy45OTYzIDE1Ljk5NDUgMTQuMDAwMyAxNS45OTE2QzE0LjAwOSAxNS45ODUyIDE0LjAxNzcgMTUuOTc4OCAxNC4wMjc0IDE1Ljk3NjlDMTUuMjYwMyAxNS43MjQ3IDE1Ljk1MjQgMTQuODgzMiAxNS45NTI0IDEzLjYzMzJDMTUuOTUyNCAxMy4zNjMyIDE1Ljk1MjQgMTMuMDkzMiAxNS45NTI0IDEyLjgyMzNDMTUuOTUyNSAxMS43NDQzIDE1Ljk1MjUgMTAuNjY1NCAxNS45NTE4IDkuNTg2MzhDMTUuOTUxOCA5LjUwMzI2IDE1Ljk0OTMgOS40MTkyIDE1LjkzNyA5LjMzNzMzQzE1Ljg4NSA4Ljk4NjA4IDE1LjYwOTMgOC43MzMyNyAxNS4yNDcxIDguNzAwMTVDMTQuOTEyNSA4LjY2OTUzIDE0LjU3ODggOC44OTAxNSAxNC40ODA3IDkuMjIxN0MxNC40NDc1IDkuMzM0MiAxNC40Mzk3IDkuNDU3NjMgMTQuNDM5NyA5LjU3NjA3QzE0LjQzODQgMTAuMjkgMTQuNDM4NCAxMS4wMDM4IDE0LjQzODMgMTEuNzE3NkMxNC40MzgzIDEyLjM4MzkgMTQuNDM4MyAxMy4wNTAyIDE0LjQzNzIgMTMuNzE2NkMxNC40MzY2IDE0LjE5NzkgMTQuMTM1MiAxNC40OTU3IDEzLjY1MzYgMTQuNDk1N0M5Ljg2NzUxIDE0LjQ5NjMgNi4wODE0MyAxNC40OTY2IDIuMjk1MzQgMTQuNDk1N0MxLjgxMjg0IDE0LjQ5NTcgMS41MTMgMTQuMTk2MyAxLjUxMyAxMy43MTU3QzEuNTEyMzcgOS45MDg1NiAxLjUxMjY4IDYuMTAxMTQgMS41MTM2MiAyLjI5NDAzQzEuNTEzNjIgMi4yMTY1MyAxLjUxNjQ0IDIuMTM2NTMgMS41MzU1NSAyLjA2MjE2QzEuNjI0NTQgMS43MTQ5NyAxLjkwNTI2IDEuNTE4NDIgMi4zMTI4OSAxLjUxODFDMy4wNzAyNSAxLjUxNzU4IDMuODI3NTIgMS41MTc1NCA0LjU4NDc1IDEuNTE3NTFDNS4xOTA1IDEuNTE3NDcgNS43OTYyMiAxLjUxNzQ0IDYuNDAxOTUgMS41MTcxN0M2LjQ3NDY0IDEuNTE2ODUgNi41NDgyNiAxLjUxNjIzIDYuNjIwNjQgMS41MDgxQzYuOTgyODMgMS40Njc3OSA3LjI2MTY4IDEuMTgzNzQgNy4yODcwNiAwLjgzMjE3OUM3LjMxNDYzIDAuNDUyNDk5IDcuMDg3NzkgMC4xMzAzMTggNi43MjU5MSAwLjAzMzc1NzZDNi43MDI3OSAwLjAyNzYyMTkgNi42ODAxIDAuMDE5NjI0IDYuNjU3MzUgMC4wMTE2MDY2WiIgLz4KPC9zdmc+"},594:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>a,default:()=>s});var r,i=n(15);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){return i.createElement("svg",o({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.5 22.5h-9A1.502 1.502 0 013 21V3a1.502 1.502 0 011.5-1.5h9A1.502 1.502 0 0115 3v2.25h-1.5V3h-9v18h9v-2.25H15V21a1.502 1.502 0 01-1.5 1.5zm4.629-9.75l-2.69 2.69L16.5 16.5 21 12l-4.5-4.5-1.06 1.06 2.689 2.69H8.25a.75.75 0 000 1.5h9.879z",fill:"currentColor"})))}const s="data:image/svg+xml;base64,PHN2ZyAgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEzLjUgMjIuNUg0LjVDNC4xMDIzMiAyMi40OTk1IDMuNzIxMDUgMjIuMzQxNCAzLjQzOTg0IDIyLjA2MDJDMy4xNTg2NCAyMS43Nzg5IDMuMDAwNDYgMjEuMzk3NyAzIDIxVjNDMy4wMDA0NiAyLjYwMjMyIDMuMTU4NjQgMi4yMjEwNSAzLjQzOTg0IDEuOTM5ODRDMy43MjEwNSAxLjY1ODY0IDQuMTAyMzIgMS41MDA0NiA0LjUgMS41SDEzLjVDMTMuODk3NyAxLjUwMDQ2IDE0LjI3OSAxLjY1ODY0IDE0LjU2MDIgMS45Mzk4NEMxNC44NDE0IDIuMjIxMDUgMTQuOTk5NSAyLjYwMjMyIDE1IDNWNS4yNUgxMy41VjNINC41VjIxSDEzLjVWMTguNzVIMTVWMjFDMTQuOTk5NSAyMS4zOTc3IDE0Ljg0MTQgMjEuNzc4OSAxNC41NjAyIDIyLjA2MDJDMTQuMjc5IDIyLjM0MTQgMTMuODk3NyAyMi40OTk1IDEzLjUgMjIuNVpNMTguMTI5IDEyLjc1TDE1LjQzOTUgMTUuNDM5NUwxNi41IDE2LjVMMjEgMTJMMTYuNSA3LjVMMTUuNDM5NSA4LjU2MDVMMTguMTI5IDExLjI1SDguMjVDNy44MzU3OSAxMS4yNSA3LjUgMTEuNTg1OCA3LjUgMTJDNy41IDEyLjQxNDIgNy44MzU3OSAxMi43NSA4LjI1IDEyLjc1SDE4LjEyOVoiIGZpbGw9ImN1cnJlbnRDb2xvciIvPgo8L3N2Zz4K"},320:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>a,default:()=>s});var r,i=n(15);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){return i.createElement("svg",o({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("rect",{x:3,y:7.363,width:10,height:1.274,rx:.637,fill:"#2B2C46"})))}const s="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTYgMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHg9IjMiIHk9IjcuMzYzMjgiIHdpZHRoPSIxMCIgaGVpZ2h0PSIxLjI3MzgzIiByeD0iMC42MzY5MTUiIGZpbGw9IiMyQjJDNDYiLz4KPC9zdmc+Cg=="},511:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>a,default:()=>s});var r,i=n(15);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){return i.createElement("svg",o({width:17,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("path",{d:"M9.585 2.449a.635.635 0 00-.898.897l3.524 3.528a.5.5 0 01-.354.854h-9.72a.636.636 0 000 1.272h9.72a.5.5 0 01.354.854l-3.524 3.528a.635.635 0 00.898.897l5.208-5.208a1 1 0 000-1.414L9.585 2.449z",fill:"currentColor"})))}const s="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNyAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTkuNTg1MTUgMi40NDkwNUM5LjMzNzI5IDIuMjAxMTkgOC45MzU0NCAyLjIwMTE5IDguNjg3NTggMi40NDkwNUM4LjQzOTg0IDIuNjk2NzkgOC40Mzk3MSAzLjA5ODQyIDguNjg3MjggMy4zNDYzMkwxMi4yMTA1IDYuODc0MjJDMTIuNTI1MiA3LjE4OTMgMTIuMzAyIDcuNzI3NTQgMTEuODU2NyA3LjcyNzU0TDIuMTM2MzYgNy43Mjc1NEMxLjc4NDkxIDcuNzI3NTQgMS41IDguMDEyNDUgMS41IDguMzYzOUMxLjUgOC43MTUzNiAxLjc4NDkxIDkuMDAwMjcgMi4xMzYzNiA5LjAwMDI3TDExLjg1NjcgOS4wMDAyN0MxMi4zMDIgOS4wMDAyNyAxMi41MjUyIDkuNTM4NTEgMTIuMjEwNSA5Ljg1MzU5TDguNjg3MjggMTMuMzgxNUM4LjQzOTcxIDEzLjYyOTQgOC40Mzk4NCAxNC4wMzEgOC42ODc1OCAxNC4yNzg4QzguOTM1NDQgMTQuNTI2NiA5LjMzNzI5IDE0LjUyNjYgOS41ODUxNSAxNC4yNzg4TDE0Ljc5MjkgOS4wNzEwMUMxNS4xODM0IDguNjgwNDkgMTUuMTgzNCA4LjA0NzMyIDE0Ljc5MjkgNy42NTY4TDkuNTg1MTUgMi40NDkwNVoiIGZpbGw9ImN1cnJlbnRDb2xvciIvPgo8L3N2Zz4K"},556:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>a,default:()=>s});var r,i=n(15);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){return i.createElement("svg",o({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("path",{d:"M8.625 7.375v-3.75a.625.625 0 10-1.25 0v3.75h-3.75a.625.625 0 100 1.25h3.75v3.75a.625.625 0 101.25 0v-3.75h3.75a.625.625 0 100-1.25h-3.75z",fill:"#2B2C46"})))}const s="data:image/svg+xml;base64,Cjxzdmcgdmlld0JveD0iMCAwIDE2IDE2IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNOC42MjUgNy4zNzVWMy42MjVDOC42MjUgMy4yNzk4MiA4LjM0NTE4IDMgOCAzQzcuNjU0ODIgMyA3LjM3NSAzLjI3OTgyIDcuMzc1IDMuNjI1VjcuMzc1SDMuNjI1QzMuMjc5ODIgNy4zNzUgMyA3LjY1NDgyIDMgOEMzIDguMzQ1MTggMy4yNzk4MiA4LjYyNSAzLjYyNSA4LjYyNUg3LjM3NVYxMi4zNzVDNy4zNzUgMTIuNzIwMiA3LjY1NDgyIDEzIDggMTNDOC4zNDUxOCAxMyA4LjYyNSAxMi43MjAyIDguNjI1IDEyLjM3NVY4LjYyNUgxMi4zNzVDMTIuNzIwMiA4LjYyNSAxMyA4LjM0NTE4IDEzIDhDMTMgNy42NTQ4MiAxMi43MjAyIDcuMzc1IDEyLjM3NSA3LjM3NUg4LjYyNVoiIGZpbGw9IiMyQjJDNDYiLz4KPC9zdmc+Cg=="},680:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>a,default:()=>s});var r,i=n(15);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){return i.createElement("svg",o({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("path",{d:"M9 7V0H7v7H0v2h7v7h2V9h7V7H9z",fill:"currentColor"})))}const s="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTkgN1YwSDdWN0gwVjlIN1YxNkg5VjlIMTZWN0g5WiIgZmlsbD0iY3VycmVudENvbG9yIi8+Cjwvc3ZnPgo="},175:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>a,default:()=>s});var r,i=n(15);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){return i.createElement("svg",o({width:16,height:16,xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.3 8.436v-.877l1.1-.963c.42-.369.512-.986.219-1.461l-1.353-2.292a1.146 1.146 0 00-1.358-.516l-1.392.47a6.52 6.52 0 00-.751-.43L10.473.923A1.146 1.146 0 009.327 0H6.645a1.146 1.146 0 00-1.146.923l-.293 1.444c-.261.126-.514.27-.756.43l-1.364-.493a1.146 1.146 0 00-.367-.035c-.409 0-.787.22-.991.574L.376 5.135A1.146 1.146 0 00.61 6.573l1.084.991v.877L.61 9.404a1.146 1.146 0 00-.234 1.461l1.352 2.293a1.146 1.146 0 001.358.515l1.393-.47c.24.16.49.304.75.43l.293 1.444c.108.545.59.933 1.146.923h2.704a1.146 1.146 0 001.146-.923l.293-1.444c.261-.126.514-.27.756-.43l1.387.47c.118.04.242.059.367.057.409 0 .787-.218.991-.572l1.307-2.293a1.146 1.146 0 00-.235-1.438L14.3 8.436zm-1.025 4.148l-1.966-.664c-.46.39-.986.694-1.553.9l-.406 2.057H6.645l-.407-2.035a5.364 5.364 0 01-1.547-.9l-1.972.642-1.352-2.292 1.559-1.375a5.1 5.1 0 010-1.794l-1.56-1.415L2.72 3.416l1.966.664c.46-.39.986-.694 1.553-.9l.407-2.057H9.35l.406 2.035a5.363 5.363 0 011.548.9l1.97-.642 1.353 2.292-1.558 1.375c.106.593.106 1.2 0 1.794l1.558 1.415-1.352 2.292zm-5.278-1.146A3.438 3.438 0 1111.435 8a3.404 3.404 0 01-3.438 3.438zm0-5.73A2.24 2.24 0 005.705 8a2.24 2.24 0 002.292 2.292A2.24 2.24 0 0010.29 8a2.24 2.24 0 00-2.292-2.292z"})))}const s="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC4zMDA3IDguNDM1NTJWOFY3LjU1ODc1TDE1LjQwMDkgNi41OTYwM0MxNS44MTk3IDYuMjI2OTUgMTUuOTExNiA1LjYwOTg4IDE1LjYxODcgNS4xMzQ3NUwxNC4yNjYzIDIuODQyNTRDMTQuMDYxOCAyLjQ4ODMgMTMuNjg0IDIuMjY5OTEgMTMuMjc0OSAyLjI2OTQ5QzEzLjE1MDQgMi4yNjg1NCAxMy4wMjY1IDIuMjg3ODkgMTIuOTA4MiAyLjMyNjhMMTEuNTE1NyAyLjc5NjdDMTEuMjc1MiAyLjYzNjk0IDExLjAyNDQgMi40OTMzNiAxMC43NjUgMi4zNjY5MUwxMC40NzI3IDAuOTIyODI1QzEwLjM2NDUgMC4zNzgyOTQgOS44ODE2NiAtMC4wMTA0MjQxIDkuMzI2NiAwLjAwMDIxMzA3N0g2LjY0NDcyQzYuMDg5NjYgLTAuMDEwNDI0MSA1LjYwNjc4IDAuMzc4Mjk0IDUuNDk4NjIgMC45MjI4MjVMNS4yMDYzNiAyLjM2NjkxQzQuOTQ1MDEgMi40OTMzMyA0LjY5MjMyIDIuNjM2OSA0LjQ0OTk0IDIuNzk2N0wzLjA4NjA4IDIuMzAzODhDMi45NjY0OCAyLjI3MjcyIDIuODQyNjMgMi4yNjExMSAyLjcxOTMyIDIuMjY5NDlDMi4zMTAyOCAyLjI2OTkxIDEuOTMyNDcgMi40ODgzIDEuNzI3OTUgMi44NDI1NEwwLjM3NTU0OCA1LjEzNDc1QzAuMDk5NjgxMyA1LjYwODY3IDAuMTk4MTY4IDYuMjExNiAwLjYxMDQ5OCA2LjU3MzFMMS42OTM1NiA3LjU2NDQ4VjhWOC40NDEyNUwwLjYxMDQ5OCA5LjQwMzk3QzAuMTg2MDExIDkuNzY4NDMgMC4wODY2OTg5IDEwLjM4NjEgMC4zNzU1NDggMTAuODY1M0wxLjcyNzk1IDEzLjE1NzVDMS45MzI0NyAxMy41MTE3IDIuMzEwMjggMTMuNzMwMSAyLjcxOTMyIDEzLjczMDVDMi44NDM4OCAxMy43MzE1IDIuOTY3NzUgMTMuNzEyMSAzLjA4NjA4IDEzLjY3MzJMNC40Nzg1OSAxMy4yMDMzQzQuNzE5MDEgMTMuMzYzMSA0Ljk2OTc5IDEzLjUwNjYgNS4yMjkyOSAxMy42MzMxTDUuNTIxNTQgMTUuMDc3MkM1LjYyOTcgMTUuNjIxNyA2LjExMjU4IDE2LjAxMDQgNi42Njc2NCAxNS45OTk4SDkuMzcyNDRDOS45Mjc1MSAxNi4wMTA0IDEwLjQxMDQgMTUuNjIxNyAxMC41MTg1IDE1LjA3NzJMMTAuODEwOCAxMy42MzMxQzExLjA3MjEgMTMuNTA2NyAxMS4zMjQ4IDEzLjM2MzEgMTEuNTY3MiAxMy4yMDMzTDEyLjk1NCAxMy42NzMyQzEzLjA3MjMgMTMuNzEyMSAxMy4xOTYyIDEzLjczMTUgMTMuMzIwOCAxMy43MzA1QzEzLjcyOTggMTMuNzMwMSAxNC4xMDc2IDEzLjUxMTcgMTQuMzEyMSAxMy4xNTc1TDE1LjYxODcgMTAuODY1M0MxNS44OTQ2IDEwLjM5MTMgMTUuNzk2MSA5Ljc4ODQgMTUuMzgzNyA5LjQyNjlMMTQuMzAwNyA4LjQzNTUyWk0xMy4yNzQ5IDEyLjU4NDRMMTEuMzA5NCAxMS45MTk3QzEwLjg0OTIgMTIuMzA5NCAxMC4zMjM0IDEyLjYxNDEgOS43NTYzOSAxMi44MTk0TDkuMzQ5NTIgMTQuODc2Nkg2LjY0NDcyTDYuMjM3ODYgMTIuODQyM0M1LjY3NTM2IDEyLjYzMTIgNS4xNTIzNCAxMi4zMjcgNC42OTA2MiAxMS45NDI2TDIuNzE5MzIgMTIuNTg0NEwxLjM2NjkzIDEwLjI5MjJMMi45MjU2MiA4LjkxNjg4QzIuODE5NjYgOC4zMjM2OSAyLjgxOTY2IDcuNzE2NDIgMi45MjU2MiA3LjEyMzIzTDEuMzY2OTMgNS43MDc4TDIuNzE5MzIgMy40MTU1OUw0LjY4NDg5IDQuMDgwMzNDNS4xNDUwMSAzLjY5MDYgNS42NzA4OCAzLjM4NTk0IDYuMjM3ODYgMy4xODA2NEw2LjY0NDcyIDEuMTIzMzlIOS4zNDk1Mkw5Ljc1NjM5IDMuMTU3NzJDMTAuMzE4OSAzLjM2ODg1IDEwLjg0MTkgMy42NzI5OCAxMS4zMDM2IDQuMDU3NDFMMTMuMjc0OSAzLjQxNTU5TDE0LjYyNzMgNS43MDc4TDEzLjA2ODYgNy4wODMxMkMxMy4xNzQ2IDcuNjc2MzEgMTMuMTc0NiA4LjI4MzU4IDEzLjA2ODYgOC44NzY3N0wxNC42MjczIDEwLjI5MjJMMTMuMjc0OSAxMi41ODQ0Wk03Ljk5NzEyIDExLjQzODNDNi4wOTgyIDExLjQzODMgNC41NTg4MiA5Ljg5ODkyIDQuNTU4ODIgOEM0LjU1ODgyIDYuMTAxMDggNi4wOTgyIDQuNTYxNyA3Ljk5NzEyIDQuNTYxN0M5Ljg5NjA0IDQuNTYxNyAxMS40MzU0IDYuMTAxMDggMTEuNDM1NCA4QzExLjQ0NDcgOC45MTQ3MSAxMS4wODU0IDkuNzk0NjYgMTAuNDM4NiAxMC40NDE1QzkuNzkxNzggMTEuMDg4MyA4LjkxMTgzIDExLjQ0NzYgNy45OTcxMiAxMS40MzgzWk03Ljk5NzEyIDUuNzA3OEM3LjM4NDkzIDUuNjkzNTQgNi43OTM1OCA1LjkzMDQ1IDYuMzYwNTggNi4zNjM0NUM1LjkyNzU3IDYuNzk2NDYgNS42OTA2NiA3LjM4NzgxIDUuNzA0OTIgOEM1LjY5MDY2IDguNjEyMTkgNS45Mjc1NyA5LjIwMzU0IDYuMzYwNTggOS42MzY1NUM2Ljc5MzU4IDEwLjA2OTUgNy4zODQ5MyAxMC4zMDY1IDcuOTk3MTIgMTAuMjkyMkM4LjYwOTMxIDEwLjMwNjUgOS4yMDA2NiAxMC4wNjk1IDkuNjMzNjcgOS42MzY1NUMxMC4wNjY3IDkuMjAzNTQgMTAuMzAzNiA4LjYxMjE5IDEwLjI4OTMgOEMxMC4zMDM2IDcuMzg3ODEgMTAuMDY2NyA2Ljc5NjQ2IDkuNjMzNjcgNi4zNjM0NUM5LjIwMDY2IDUuOTMwNDUgOC42MDkzMSA1LjY5MzU0IDcuOTk3MTIgNS43MDc4WiIgLz4KPC9zdmc+Cg=="},625:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>a,default:()=>s});var r,i=n(15);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){return i.createElement("svg",o({width:10,height:11,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.569 7.914a1.903 1.903 0 011.48-.72 1.903 1.903 0 11-1.902 1.903c.001-.17.027-.339.076-.502L3.44 6.856a1.903 1.903 0 110-2.367L6.223 2.75a1.823 1.823 0 01-.076-.502 1.903 1.903 0 11.422 1.183l-2.782 1.74c.102.327.102.677 0 1.004L6.57 7.914zm2.622-5.666a1.142 1.142 0 10-2.283 0 1.142 1.142 0 002.283 0zM1.96 6.814a1.142 1.142 0 110-2.283 1.142 1.142 0 010 2.283zm4.947 2.283a1.142 1.142 0 102.283 0 1.142 1.142 0 00-2.283 0z"})))}const s="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTEiIHZpZXdCb3g9IjAgMCAxMCAxMSIgZmlsbD0iY3VycmVudENvbG9yIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTYuNTY5MDUgNy45MTQwMUM2LjkyNzg5IDcuNDYyMjUgNy40NzIzNCA3LjE5NzczIDguMDQ5MjYgNy4xOTQ4M0M5LjEwMDAzIDcuMTk0ODMgOS45NTE4NSA4LjA0NjY1IDkuOTUxODUgOS4wOTc0MkM5Ljk1MTg1IDEwLjE0ODIgOS4xMDAwMyAxMSA4LjA0OTI2IDExQzYuOTk4NDkgMTEgNi4xNDY2NyAxMC4xNDgyIDYuMTQ2NjcgOS4wOTc0MkM2LjE0ODQ3IDguOTI3MjYgNi4xNzQwOCA4Ljc1ODE5IDYuMjIyNzcgOC41OTUxM0wzLjQ0MTE4IDYuODU2MTZDMi45Mzc4NSA3LjQ4OTc5IDIuMDg4OCA3LjczNTcxIDEuMzI0NzQgNy40NjkxN0MwLjU2MDY4NyA3LjIwMjY0IDAuMDQ4ODI4MSA2LjQ4MTk2IDAuMDQ4ODI4MSA1LjY3Mjc1QzAuMDQ4ODI4MSA0Ljg2MzU0IDAuNTYwNjg3IDQuMTQyODcgMS4zMjQ3NCAzLjg3NjMzQzIuMDg4OCAzLjYwOTc5IDIuOTM3ODUgMy44NTU3MSAzLjQ0MTE4IDQuNDg5MzRMNi4yMjI3NyAyLjc1MDM3QzYuMTc0MDggMi41ODczMiA2LjE0ODQ3IDIuNDE4MjUgNi4xNDY2NyAyLjI0ODA5QzYuMTQwODMgMS4zMjAyOCA2LjgwNTA4IDAuNTIzNTc0IDcuNzE4OCAwLjM2MjQ0QzguNjMyNTIgMC4yMDEzMDYgOS41MjkyMiAwLjcyMjc0NCA5Ljg0MTExIDEuNTk2NTdDMTAuMTUzIDIuNDcwNCA5Ljc4OTA5IDMuNDQxNzcgOC45Nzk4MyAzLjg5NTU5QzguMTcwNTcgNC4zNDk0MSA3LjE1MTk4IDQuMTUzMzIgNi41NjkwNSAzLjQzMTVMMy43ODc0NiA1LjE3MDQ3QzMuODg4ODMgNS40OTc2NSAzLjg4ODgzIDUuODQ3ODUgMy43ODc0NiA2LjE3NTA0TDYuNTY5MDUgNy45MTQwMVpNOS4xOTA2NiAyLjI0ODA4QzkuMTkwNjYgMS42MTc2MiA4LjY3OTU3IDEuMTA2NTMgOC4wNDkxMSAxLjEwNjUzQzcuNDE4NjQgMS4xMDY1MyA2LjkwNzU1IDEuNjE3NjIgNi45MDc1NSAyLjI0ODA4QzYuOTA3NTUgMi44Nzg1NSA3LjQxODY0IDMuMzg5NjQgOC4wNDkxMSAzLjM4OTY0QzguNjc5NTcgMy4zODk2NCA5LjE5MDY2IDIuODc4NTUgOS4xOTA2NiAyLjI0ODA4Wk0xLjk2MDg5IDYuODE0MzFDMS4zMzA0MyA2LjgxNDMxIDAuODE5MzM2IDYuMzAzMjIgMC44MTkzMzYgNS42NzI3NUMwLjgxOTMzNiA1LjA0MjI5IDEuMzMwNDMgNC41MzEyIDEuOTYwODkgNC41MzEyQzIuNTkxMzYgNC41MzEyIDMuMTAyNDUgNS4wNDIyOSAzLjEwMjQ1IDUuNjcyNzVDMy4xMDI0NSA2LjMwMzIyIDIuNTkxMzYgNi44MTQzMSAxLjk2MDg5IDYuODE0MzFaTTYuOTA3NTUgOS4wOTc0MkM2LjkwNzU1IDkuNzI3ODggNy40MTg2NCAxMC4yMzkgOC4wNDkxMSAxMC4yMzlDOC42Nzk1NyAxMC4yMzkgOS4xOTA2NiA5LjcyNzg4IDkuMTkwNjYgOS4wOTc0MkM5LjE5MDY2IDguNDY2OTUgOC42Nzk1NyA3Ljk1NTg2IDguMDQ5MTEgNy45NTU4NkM3LjQxODY0IDcuOTU1ODYgNi45MDc1NSA4LjQ2Njk1IDYuOTA3NTUgOS4wOTc0MloiIGZpbGw9ImN1cnJlbnRDb2xvciIvPgo8L3N2Zz4K"},302:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>a,default:()=>s});var r,i=n(15);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){return i.createElement("svg",o({width:14,height:14,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 .5a.5.5 0 00-.5-.5h-3a.5.5 0 000 1h3A.5.5 0 009 .5zM1.5 3a.5.5 0 010-1h11a.5.5 0 010 1 .5.5 0 00-.5.5V13a1 1 0 01-1 1H3a1 1 0 01-1-1V3.5a.5.5 0 00-.5-.5zM4 3a1 1 0 00-1 1v8a1 1 0 001 1h6a1 1 0 001-1V4a1 1 0 00-1-1H4zm2 2.5a.5.5 0 00-1 0v5a.5.5 0 001 0v-5zm3 0a.5.5 0 00-1 0v5a.5.5 0 001 0v-5z",fill:"currentColor"})))}const s="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik05IDAuNUM5IDAuMjIzODU4IDguNzc2MTQgMCA4LjUgMEg1LjVDNS4yMjM4NiAwIDUgMC4yMjM4NTggNSAwLjVDNSAwLjc3NjE0MiA1LjIyMzg2IDEgNS41IDFIOC41QzguNzc2MTQgMSA5IDAuNzc2MTQyIDkgMC41Wk0xLjUgM0MxLjIyMzg2IDMgMSAyLjc3NjE0IDEgMi41QzEgMi4yMjM4NiAxLjIyMzg2IDIgMS41IDJIMTIuNUMxMi43NzYxIDIgMTMgMi4yMjM4NiAxMyAyLjVDMTMgMi43NzYxNCAxMi43NzYxIDMgMTIuNSAzQzEyLjIyMzkgMyAxMiAzLjIyMzg2IDEyIDMuNVYxM0MxMiAxMy41NTIzIDExLjU1MjMgMTQgMTEgMTRIM0MyLjQ0NzcyIDE0IDIgMTMuNTUyMyAyIDEzVjMuNUMyIDMuMjIzODYgMS43NzYxNCAzIDEuNSAzWk00IDNDMy40NDc3MiAzIDMgMy40NDc3MiAzIDRWMTJDMyAxMi41NTIzIDMuNDQ3NzIgMTMgNCAxM0gxMEMxMC41NTIzIDEzIDExIDEyLjU1MjMgMTEgMTJWNEMxMSAzLjQ0NzcyIDEwLjU1MjMgMyAxMCAzSDRaTTYgNS41QzYgNS4yMjM4NiA1Ljc3NjE0IDUgNS41IDVDNS4yMjM4NiA1IDUgNS4yMjM4NiA1IDUuNVYxMC41QzUgMTAuNzc2MSA1LjIyMzg2IDExIDUuNSAxMUM1Ljc3NjE0IDExIDYgMTAuNzc2MSA2IDEwLjVWNS41Wk05IDUuNUM5IDUuMjIzODYgOC43NzYxNCA1IDguNSA1QzguMjIzODYgNSA4IDUuMjIzODYgOCA1LjVWMTAuNUM4IDEwLjc3NjEgOC4yMjM4NiAxMSA4LjUgMTFDOC43NzYxNCAxMSA5IDEwLjc3NjEgOSAxMC41VjUuNVoiIGZpbGw9ImN1cnJlbnRDb2xvciIvPgo8L3N2Zz4K"},989:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>s,default:()=>l});var r,i,o=n(15);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}function s(e){return o.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),r||(r=o.createElement("path",{d:"M0 0h24v24H0z",fill:"none"})),i||(i=o.createElement("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"})))}const l="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxwYXRoIGQ9Ik0wIDBoMjR2MjRIMHoiIGZpbGw9Im5vbmUiLz4KICAgIDxwYXRoIGQ9Ik0yMCAxMUg3LjgzbDUuNTktNS41OUwxMiA0bC04IDggOCA4IDEuNDEtMS40MUw3LjgzIDEzSDIwdi0yeiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg=="},572:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>l,default:()=>u});var r,i,o,a=n(15);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function l(e){return a.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:72,height:72},e),r||(r=a.createElement("defs",null,a.createElement("path",{id:"capture_svg__a",d:"M150 540a30 30 0 1160 0 30 30 0 01-60 0z"}),a.createElement("path",{id:"capture_svg__b",d:"M144 540a36 36 0 1172 0 36 36 0 01-72 0zm36 33.95a33.94 33.94 0 100-67.89 33.94 33.94 0 000 67.89z"}))),i||(i=a.createElement("use",{fill:"#c00",xlinkHref:"#capture_svg__a",transform:"translate(-144 -504)"})),o||(o=a.createElement("use",{fill:"#c00",fillOpacity:.9,xlinkHref:"#capture_svg__b",opacity:.7,transform:"translate(-144 -504)"})))}const u="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iNzIiIGhlaWdodD0iNzIiIHZpZXdCb3g9IjAgMCA3MiA3MiI+PGRlZnM+PHBhdGggaWQ9IjFoN3JhIiBkPSJNMTUwIDU0MGEzMCAzMCAwIDEgMSA2MCAwIDMwIDMwIDAgMCAxLTYwIDB6Ii8+PHBhdGggaWQ9IjFoN3JiIiBkPSJNMTQ0IDU0MGEzNiAzNiAwIDEgMSA3MiAwIDM2IDM2IDAgMCAxLTcyIDB6bTM2IDMzLjk1YTMzLjk0IDMzLjk0IDAgMSAwIDAtNjcuODkgMzMuOTQgMzMuOTQgMCAwIDAgMCA2Ny44OXoiLz48L2RlZnM+PGc+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTE0NCAtNTA0KSI+PHVzZSBmaWxsPSIjYzAwIiB4bGluazpocmVmPSIjMWg3cmEiLz48L2c+PGcgb3BhY2l0eT0iLjciIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xNDQgLTUwNCkiPjx1c2UgZmlsbD0iI2MwMCIgZmlsbC1vcGFjaXR5PSIuOSIgeGxpbms6aHJlZj0iIzFoN3JiIi8+PC9nPjwvZz48L3N2Zz4="},708:(e,t,n)=>{(t=n(549)(!1)).push([e.id,".nyris-capture-app-button {\n position: fixed;\n top: 0;\n right: 0;\n color: white;\n margin: 10px;\n padding: 10px;\n background-color: rgba(255,255,255,0.3);\n border-radius: 2px;\n text-shadow: 1px 1px 3px #000;\n line-height: 1em;\n box-shadow: 1px 1px 3px rgba(0, 0, 0,0.5);\n}\n\n.nyris-capture-inputFile {\n visibility: hidden;\n}\n\n.nyris-capture-captureUi {\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n height: 100%;\n width: 100%;\n background-color: black;\n z-index: 10000;\n}\n\n.nyris-capture-video {\n position: fixed;\n min-height: 100%;\n min-width: 100%;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n width: auto;\n height: auto;\n}\n\n.nyris-capture-searchBtn {\n position: fixed;\n bottom: 0;\n right: 0;\n z-index: 10001;\n left: 50%;\n transform: translateX(-50%);\n\n color: black;\n background-color: transparent;\n text-transform: uppercase;\n border: 0;\n margin: auto;\n display: block;\n filter: drop-shadow( 1px 1px 5px #000 );\n\n}\n\n.nyris-capture-backBtn {\n position: fixed;\n bottom: 0;\n left: 0;\n z-index: 10001;\n color: white;\n background-color: transparent;\n border: 0;\n\n text-transform: uppercase;\n border-radius: 50%;\n display: block;\n padding: 0;\n font-size: 16px;\n margin-bottom: 5px;\n margin-left: 5px;\n filter: drop-shadow( 1px 1px 5px #000 );\n}\n\n",""]),e.exports=t},549:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r,i,o=e[1]||"",a=e[3];if(!a)return o;if(t&&"function"==typeof btoa){var s=(n=a,r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(i," */")),l=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[o].concat(l).concat([s]).join("\n")}return[o].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);r&&i[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},501:(e,t,n)=>{"use strict";var r,i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),o=[];function a(e){for(var t=-1,n=0;n<o.length;n++)if(o[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},r=[],i=0;i<e.length;i++){var s=e[i],l=t.base?s[0]+t.base:s[0],u=n[l]||0,c="".concat(l," ").concat(u);n[l]=u+1;var d=a(c),f={css:s[1],media:s[2],sourceMap:s[3]};-1!==d?(o[d].references++,o[d].updater(f)):o.push({identifier:c,updater:g(f,t),references:1}),r.push(c)}return r}function l(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var u,c=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function d(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=c(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function f(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,p=0;function g(e,t){var n,r,i;if(t.singleton){var o=p++;n=h||(h=l(t)),r=d.bind(null,n,o,!1),i=d.bind(null,n,o,!0)}else n=l(t),r=f.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r));var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=a(n[r]);o[i].references--}for(var l=s(e,t),u=0;u<n.length;u++){var c=a(n[u]);0===o[c].references&&(o[c].updater(),o.splice(c,1))}n=l}}}},694:(e,t,n)=>{var r=n(501),i=n(708);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]),r(i,{insert:"head",singleton:!1}),e.exports=i.locals||{}},648:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.svgIconsConfig=void 0;var a=o(n(15)),s=n(996),l=n(625),u=n(839),c=n(435),d=n(0),f=n(760),h=n(855),p=n(60),g=n(881),m=n(603),y=n(174),v=n(594),b=n(246),x=n(422),w=n(680),M=n(122),S=n(997),j=n(302),N=n(41),C=n(541),A=n(175),T=n(730),E=n(511),D=n(320),k=n(556),O=n(750),I=n(426),_=n(808),P=n(722),L=n(597);t.svgIconsConfig={dislike:{component:u.ReactComponent},like:{component:c.ReactComponent},search_image:{component:s.ReactComponent},share:{component:l.ReactComponent},link:{component:d.ReactComponent},download:{component:f.ReactComponent},drop:{component:h.ReactComponent},close:{component:p.ReactComponent},back:{component:g.ReactComponent},avatar:{component:m.ReactComponent},filter:{component:y.ReactComponent},logout:{component:v.ReactComponent},camera_simple:{component:b.ReactComponent},filter_settings:{component:x.ReactComponent},plus:{component:w.ReactComponent},crop:{component:M.ReactComponent},collapse:{component:S.ReactComponent},trash:{component:j.ReactComponent},info:{component:N.ReactComponent},box3d:{component:C.ReactComponent},settings:{component:A.ReactComponent},gallery:{component:T.ReactComponent},next_arrow:{component:E.ReactComponent},minus:{component:D.ReactComponent},plus_rounded:{component:k.ReactComponent},search:{component:O.ReactComponent},email:{component:I.ReactComponent},call:{component:_.ReactComponent},error:{component:P.ReactComponent},camera:{component:L.ReactComponent}},t.default=function(e){var n,o=e.name,s=i(e,["name"]),l=null===(n=t.svgIconsConfig[o])||void 0===n?void 0:n.component;return l?a.default.createElement(l,r({width:16,height:16},s)):null}},677:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=o(n(15));n(694);var c=n(814),d=l(n(572)),f=l(n(989));t.default=function(e){var t=e.onCaptureComplete,n=e.onCaptureCanceled,r=e.useAppText,i=(0,u.useRef)(null),o=(0,u.useState)(),l=o[0],h=o[1];return(0,u.useEffect)((function(){navigator.mediaDevices.getUserMedia({video:{facingMode:"environment",width:640}}).then((function(e){var t=i.current;t&&(t.srcObject=e,h(e))})).catch((function(e){switch(e.name){case"NotFoundError":alert("Camera not found. Try with a file instead.");break;case"NotAllowedError":alert("You have to allow using the camera in order to take pictures. If you are not asked again for permissions, go to site settings and reset permissions there.");break;default:alert("Sorry, something has gone wrong while enabeling the camera. (".concat(e,")"))}}))}),[i]),(0,u.useEffect)((function(){return function(){l&&(l.getVideoTracks&&l.getAudioTracks?(l.getVideoTracks().map((function(e){return e.stop()})),l.getAudioTracks().map((function(e){return e.stop()}))):l.stop())}}),[l]),u.default.createElement("div",{className:"nyris-capture-captureUi"},u.default.createElement("video",{autoPlay:!0,playsInline:!0,ref:i,className:"nyris-capture-video"}),u.default.createElement("input",{type:"file",name:"file",id:"capture_file",className:"nyris-capture-inputFile",accept:"image/*",capture:"environment",onChange:function(e){return a(void 0,void 0,void 0,(function(){var n,r;return s(this,(function(i){switch(i.label){case 0:return(n=e.target)&&n.files?[4,(0,c.urlOrBlobToCanvas)(n.files[0])]:[3,2];case 1:r=i.sent(),t(r),i.label=2;case 2:return[2]}}))}))}}),u.default.createElement("label",{className:"nyris-capture-app-button",htmlFor:"capture_file"},r),u.default.createElement("button",{className:"nyris-capture-backBtn",onClick:n},u.default.createElement("img",{src:f.default,alt:"back",width:"72"})),u.default.createElement("button",{className:"nyris-capture-searchBtn",onClick:function(){if(i.current){var e=(0,c.elementToCanvas)(i.current);t(e)}}},u.default.createElement("img",{src:d.default,alt:"capture"})))}},161:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=a(n(15)),u=n(847),c=n(814),d=s(n(201)),f=n(967),h=function(e){return e.tlHover?"nw-resize":e.trHover?"ne-resize":e.blHover?"sw-resize":e.brHover?"se-resize":e.rectHover?"move":e.dotHover?"pointer":"default"},p=3.5;t.default=function(e){var t=e.dotColor,n=e.image,i=e.maxHeight,o=e.maxWidth,a=e.minHeight,s=void 0===a?80:a,g=e.minWidth,m=void 0===g?80:g,y=e.minCropHeight,v=e.minCropWidth,b=e.onSelectionChange,x=e.regions,w=e.rounded,M=e.selection,S=e.expandAnimation,j=e.shrinkAnimation,N=e.onExpand,C=e.showGrip,A=void 0===C||C,T=e.style,E=e.resize,D=e.draggable,k=void 0===D||D,O=(0,l.useRef)(null),I=(0,l.useRef)(null),_=(0,l.useRef)(j),P=(0,l.useRef)({width:0,height:0}),L=(0,l.useState)({width:0,height:0}),z=L[0],R=L[1],F=(0,l.useState)(M),U=F[0],B=F[1],V=(0,l.useState)(0),Q=V[0],H=V[1],Y=(0,l.useState)(o),W=Y[0],G=Y[1],q=(0,l.useState)(i),Z=q[0],K=q[1],X=20,$=X,J=-20;(0,l.useEffect)((function(){_.current=j}),[j]);var ee=function(){var e,t,n,r,i;(null===(e=O.current)||void 0===e?void 0:e.offsetWidth)&&!_.current&&(H(null===(t=O.current)||void 0===t?void 0:t.offsetWidth),Z||(K(null===(n=O.current)||void 0===n?void 0:n.offsetWidth),G(null===(r=O.current)||void 0===r?void 0:r.offsetWidth)),R({width:O.current.offsetWidth,height:O.current.offsetWidth})),(null===(i=O.current)||void 0===i?void 0:i.offsetWidth)&&(P.current={maxHeight:O.current.offsetWidth,maxWidth:O.current.offsetWidth})},te=Z||z.height,ne=W||z.width;(0,l.useEffect)((function(){var e={x1:M.x1*ae,x2:M.x2*ae,y1:M.y1*se,y2:M.y2*se},t=pe+X-(e.x2-e.x1)+p,n=ge+X-(e.y2-e.y1)+p;e.x2-e.x1<pe+X&&(e.x1=e.x1-t/2,e.x2=e.x2+t/2),e.y2-e.y1<ge+X&&(e.y1=e.y1-n/2,e.y2=e.y2+n/2),B({x1:e.x1/ae,x2:e.x2/ae,y1:e.y1/se,y2:e.y2/se})}),[M]),(0,l.useEffect)((function(){var e,t,n,r;return(null===(e=O.current)||void 0===e?void 0:e.offsetWidth)&&(H(null===(t=O.current)||void 0===t?void 0:t.offsetWidth),Z||(K(null===(n=O.current)||void 0===n?void 0:n.offsetWidth),G(null===(r=O.current)||void 0===r?void 0:r.offsetWidth)),j||R({width:O.current.offsetWidth,height:O.current.offsetWidth})),E&&window.addEventListener("resize",ee),function(){window.removeEventListener("resize",ee)}}),[]);var re=(0,c.getThumbSizeLongestEdge)(z.width,z.height,n.width,n.height),ie=re.w,oe=re.h,ae=Math.max(m,ie),se=Math.max(s,oe),le=function(e,t,n,r,i){var o=n.x1,a=n.x2,s=n.y1,l=n.y2,u={x1:Math.max(o*e,p),x2:Math.min(a*e,e-p),y1:Math.max(s*t,p),y2:Math.min(l*t,t-p)};return r&&i&&u.x2-u.x1<r&&u.y2-u.y1<i?{x1:Math.max(o*e-r/2,p),x2:Math.min(a*e+r/2,e-p),y1:Math.max(s*t-i/2,p),y2:Math.min(l*t+i/2,t-p)}:u}(ae,se,U,v,y),ue=le.x1,ce=le.y1,de=le.x2,fe=le.y2,he=[v,y],pe=he[0],ge=he[1],me=(0,l.useRef)(null),ye=(0,l.useState)({tlHover:!1,trHover:!1,blHover:!1,brHover:!1,dotHover:!1,rectHover:!1}),ve=ye[0],be=ye[1],xe=function(e){var t=r({tlHover:!1,trHover:!1,blHover:!1,brHover:!1,dotHover:!1,rectHover:!1},e);be(t)},we=function(e,t){if(!(t.target instanceof d.default.Stage)){var n=t.target.getAbsolutePosition(),r=n.x,i=n.y,o=t.target.getSize(),a=o.width,s=o.height,l=5,u=5;"tl"===e&&(l*=-1,u*=-1),"tr"===e&&(l*=1,u*=-1),"bl"===e&&(l*=-1,u*=1),"br"===e&&(l*=1,u*=1);var c=function(e,t,n,r,i,o){var a=e.x1,s=e.x2,l=e.y1,u=e.y2;switch(t){case"rect":return{x1:n,y1:r,x2:n+i,y2:r+o};case"tl":return{x1:n,y1:r,x2:s,y2:u};case"tr":return{x2:n,y1:r,x1:a,y2:u};case"bl":return{x1:n,y2:r,x2:s,y1:l};case"br":return{x2:n,y2:r,x1:a,y1:l}}}({x1:ue,x2:de,y1:ce,y2:fe},e,r+("rect"!==e?$+l:0),i+("rect"!==e?$+u:0),a,s),f={x1:c.x1/ae,x2:c.x2/ae,y1:c.y1/se,y2:c.y2/se};Ae(f)}};(0,l.useEffect)((function(){if(me.current){var e=new d.default.Animation((function(e){if(e&&me.current){var t=40*e.time/1e3;me.current.dashOffset(-t)}}),me.current.getLayer());return e.start(),function(){e&&e.stop()}}}),[me]);var Me=we.bind(null,"rect"),Se=we.bind(null,"tl"),je=we.bind(null,"tr"),Ne=we.bind(null,"bl"),Ce=we.bind(null,"br"),Ae=function(e){B(e)},Te=function(e){var t={x1:e.x1*ae,x2:e.x2*ae,y1:e.y1*se,y2:e.y2*se},n=pe+X-(t.x2-t.x1)+p,r=ge+X-(t.y2-t.y1)+p;t.x2-t.x1<pe+X&&(t.x1=t.x1-n/2,t.x2=t.x2+n/2),t.y2-t.y1<ge+X&&(t.y1=t.y1-r/2,t.y2=t.y2+r/2),B({x1:t.x1/ae,x2:t.x2/ae,y1:t.y1/se,y2:t.y2/se})};if(!n)return null;var Ee=x.map((function(e,t){var n=e.normalizedRect,r=n.x1,i=n.x2,o=n.y1,a=n.y2,s=ae*((i-r)/2+r),l=se*((a-o)/2+o);return{region:e,key:"".concat(s,"-").concat(l,"-").concat(t),x:s,y:l,show:e.show}})),De=j?.4:.3,ke=[4,4,4,4],Oe=function(e){e.beginPath();var t=0,n=0,r=0,i=0;"number"==typeof ke&&w?t=n=r=i=Math.min(ke,ae/2,se/2):w&&(t=Math.min(ke[0]||0,ne/2,te/2),n=Math.min(ke[1]||0,ne/2,te/2),i=Math.min(ke[2]||0,ne/2,te/2),r=Math.min(ke[3]||0,ne/2,te/2)),e.moveTo(t,0),e.lineTo(ne-n,0),e.arc(ne-n,n,n,3*Math.PI/2,0,!1),e.lineTo(ne,te-i),e.arc(ne-i,te-i,i,0,Math.PI/2,!1),e.lineTo(r,te),e.arc(r,te-r,r,Math.PI/2,Math.PI,!1),e.lineTo(0,t),e.arc(t,t,t,Math.PI,3*Math.PI/2,!1),e.closePath()},Ie=(0,l.useState)(!0),_e=Ie[0],Pe=Ie[1];return(0,l.useEffect)((function(){if(!P.current.maxWidth){var e=Z||O.current.offsetWidth,t=W||O.current.offsetWidth;P.current={maxHeight:e,maxWidth:t}}var n=P.current.maxWidth,r=P.current.maxHeight,i=new d.default.Animation((function(e){var t=e.time/200,o=m,a=s,l=n-o,u=r-a;R({width:Math.min(o+t*l,P.current.maxWidth),height:Math.min(a+t*u,P.current.maxHeight)}),e.time>=170&&(i.stop(),Pe(!0))}));return S&&(Pe(!1),i.start()),function(){i.stop()}}),[S]),(0,l.useEffect)((function(){var e,t,n,r,i=P.current.maxWidth,o=P.current.maxHeight,a=new d.default.Animation((function(e){var t,n,r=e.time/200;R({width:i+r*(m-i),height:o+r*(s-o)}),(r>=1||(null===(n=null===(t=I.current)||void 0===t?void 0:t.attrs)||void 0===n?void 0:n.width)<m)&&a.stop()}));return j&&(null===(t=null===(e=I.current)||void 0===e?void 0:e.attrs)||void 0===t?void 0:t.width)>m?a.start():0===(null===(r=null===(n=I.current)||void 0===n?void 0:n.attrs)||void 0===r?void 0:r.width)&&R({width:m||Q,height:s||Q}),function(){a.stop()}}),[j]),l.default.createElement("div",{ref:O,style:r({width:"100%"},T)},l.default.createElement(u.Stage,{width:ae,height:se,style:{cursor:h(ve),width:ae,height:se,margin:"auto"},ref:function(e){I.current=e},onClick:function(){N&&N()},onTap:function(){N&&N()}},l.default.createElement(u.Layer,{key:"img",clipFunc:Oe},l.default.createElement(u.Image,{image:n,width:ae,height:se,fill:"white"})),_e&&l.default.createElement(l.default.Fragment,null,l.default.createElement(u.Layer,{key:"selection",clipFunc:Oe},l.default.createElement(u.Rect,{stroke:"white",opacity:0,strokeWidth:0,x:ue,y:ce,width:de-ue,height:fe-ce}),l.default.createElement(u.Rect,{stroke:"black",draggable:!!k,onDragMove:Me,dragBoundFunc:function(e){var t=e.x,n=e.y,r=de-ue+p,i=fe-ce+p;return{x:Math.max(Math.min(t,ae-r),p),y:Math.max(Math.min(n,se-i),p)}},onDragEnd:function(){k&&xe({rectHover:!0}),b&&b(U)},onMouseOver:function(){k&&xe({rectHover:!0})},onMouseOut:function(){xe({rectHover:!1})},opacity:0,strokeWidth:2,x:ue,y:ce,width:de-ue,height:fe-ce,dash:[0,0],ref:me}),l.default.createElement(u.Rect,{fill:"black",opacity:De,x:0,y:0,width:ae,height:ce+.08}),l.default.createElement(u.Rect,{fill:"black",opacity:De,x:0,y:fe,width:ae,height:se-fe}),l.default.createElement(u.Rect,{fill:"black",opacity:De,x:0,y:ce,width:ue,height:fe-ce+.08}),l.default.createElement(u.Rect,{fill:"black",opacity:De,x:de,y:ce,width:ae-de,height:fe-ce+.08})),A&&l.default.createElement(u.Layer,null,l.default.createElement(u.Path,{data:"M2 18V10C2 5.58172 5.58172 2 10 2H18",stroke:"white",strokeWidth:p,lineCap:"round",opacity:1,x:ue-3,y:ce-3,shadowColor:"#000000",shadowBlur:4,shadowOffset:{x:0,y:0},shadowOpacity:.25}),l.default.createElement(u.Rect,{draggable:!0,onDragMove:Se,dragBoundFunc:function(e){var t=e.x,n=e.y,r=pe+$+X,i=ge+$+X;return de-t<r&&(t-=r-(de-t)),fe-n<i&&(n-=i-(fe-n)),{x:Math.max(t,-11.5),y:Math.max(n,-11.5)}},onMouseOver:function(){return xe({tlHover:!0})},onMouseOut:function(){return xe({tlHover:!1})},onDragEnd:function(){xe({tlHover:!1}),b&&b(U)},opacity:1,width:40,height:40,x:ue-$+5,y:ce-$+5}),l.default.createElement(u.Path,{data:"M2 2L10 2C14.4183 2 18 5.58172 18 10L18 18",stroke:"white",strokeWidth:p,lineCap:"round",opacity:1,x:de+3,y:ce-3,offsetX:X,shadowColor:"#000000",shadowBlur:4,shadowOffset:{x:0,y:0},shadowOpacity:.25}),l.default.createElement(u.Rect,{draggable:!0,onDragMove:je,dragBoundFunc:function(e){var t=e.x,n=e.y,r=ge+$+X;return fe-n<r&&(n-=r-(fe-n)),{x:Math.min(Math.max(t,ue+pe),ae+J-8.5),y:Math.max(n,-11.5)}},onMouseOver:function(){return xe({trHover:!0})},onMouseOut:function(){return xe({trHover:!1})},onDragEnd:function(){xe({trHover:!1}),b&&b(U)},opacity:1,width:40,height:40,x:de-$-5,y:ce-$+5,offsetX:0}),l.default.createElement(u.Path,{data:"M18 18L10 18C5.58172 18 2 14.4183 2 10L2 2",stroke:"white",strokeWidth:p,lineCap:"round",opacity:1,x:ue-3,y:fe+3,offsetY:X,shadowColor:"#000000",shadowBlur:4,shadowOffset:{x:0,y:0},shadowOpacity:.25}),l.default.createElement(u.Rect,{draggable:!0,onDragMove:Ne,dragBoundFunc:function(e){var t=e.x,n=e.y,r=t,i=pe+$+X;return de-r<i&&(r-=i-(de-r)),{x:Math.max(r,-11.5),y:Math.min(Math.max(n,ce+ge),se+J-8.5)}},onMouseOver:function(){return xe({blHover:!0})},onMouseOut:function(){return xe({blHover:!1})},onDragEnd:function(){xe({blHover:!1}),b&&b(U)},opacity:1,width:40,height:40,x:ue-$+5,y:fe-$-5,offsetY:0}),l.default.createElement(u.Path,{data:"M18 2L18 10C18 14.4183 14.4183 18 10 18L2 18",stroke:"white",strokeWidth:p,lineCap:"round",x:de+3,y:fe+3,opacity:1,offsetY:X,offsetX:X,shadowColor:"#000000",shadowBlur:4,shadowOffset:{x:0,y:0},shadowOpacity:.25}),l.default.createElement(u.Rect,{opacity:1,draggable:!0,onDragMove:Ce,dragBoundFunc:function(e){var t=e.x,n=e.y;return{x:Math.min(Math.max(t,ue+pe),ae+J-8.5),y:Math.min(Math.max(n,ce+ge),se+J-8.5)}},onMouseOver:function(){xe({brHover:!0})},onMouseOut:function(){xe({brHover:!1})},onDragEnd:function(){xe({brHover:!1}),b&&b(U)},x:de-$-5,y:fe-$-5,width:40,height:40,offsetY:0,offsetX:0})),l.default.createElement(f.NodeGroup,{data:Ee,keyAccessor:function(e){return e.key},start:function(e,t){return{opacity:0,x:-100,y:e.y}},enter:function(e,t){return{opacity:[1],x:[e.x],y:e.y,timing:{delay:100*t,duration:300}}}},(function(e){return l.default.createElement(u.Layer,{key:"dots"},e.map((function(e){var n=e.key,i=e.data,o=e.state;return l.default.createElement(u.Circle,r({onClick:function(){Te(i.region.normalizedRect),xe({dotHover:!1}),b&&b(i.region.normalizedRect)},onTap:function(){Te(i.region.normalizedRect),xe({dotHover:!1}),b&&b(i.region.normalizedRect)},onMouseOver:function(){return xe({dotHover:!0})},onMouseOut:function(){return xe({dotHover:!1})},key:n,radius:7},o,{stroke:t,fill:"white",strokeWidth:5,opacity:t?i.region.show:0}))})))})))))}},749:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Icon=t.Capture=t.Preview=void 0;var a=n(161);Object.defineProperty(t,"Preview",{enumerable:!0,get:function(){return o(a).default}});var s=n(677);Object.defineProperty(t,"Capture",{enumerable:!0,get:function(){return o(s).default}});var l=n(648);Object.defineProperty(t,"Icon",{enumerable:!0,get:function(){return o(l).default}}),i(n(622),t)},622:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeFileHandler=void 0,t.makeFileHandler=function(e){return function(t){var n=null,r=t;if(r&&r.target){var i=r.target;if(i.files&&i.files[0]&&(n=i.files[0]),i.value&&(i.value=""),n)return e(n)}var o=t;if(o&&(n=o.dataTransfer&&o.dataTransfer.files[0]),n)return e(n)}}},814:e=>{"use strict";e.exports=n(8594)},201:e=>{"use strict";e.exports=n(2792)},15:e=>{"use strict";e.exports=n(810)},847:e=>{"use strict";e.exports=n(9216)},967:e=>{"use strict";e.exports=n(8982)}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={id:n,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}return r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0,r(749)})(),e.exports=r()},6973:()=>{},4293:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},8920:(e,t,n)=>{var r=n(4319).default;function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o},e.exports.__esModule=!0,e.exports.default=e.exports},4319:e=>{function t(n){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4938:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,o(n)))}return e}function o(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},446:(e,t,n)=>{"use strict";var r=n(7777),i=n(4027),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a function")}},6376:(e,t,n)=>{"use strict";var r=n(5905),i=n(4027),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a constructor")}},7454:(e,t,n)=>{"use strict";var r=n(921),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},9385:(e,t,n)=>{"use strict";var r=n(5935),i=n(916),o=n(6405).f,a=r("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},1249:(e,t,n)=>{"use strict";var r=n(2915).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},6971:(e,t,n)=>{"use strict";var r=n(8445),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},5155:(e,t,n)=>{"use strict";var r=n(326),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not an object")}},6175:e=>{"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},7360:(e,t,n)=>{"use strict";var r,i,o,a=n(6175),s=n(304),l=n(5623),u=n(7777),c=n(326),d=n(9693),f=n(7287),h=n(4027),p=n(8719),g=n(8292),m=n(9766),y=n(8445),v=n(9959),b=n(9923),x=n(5935),w=n(9220),M=n(4481),S=M.enforce,j=M.get,N=l.Int8Array,C=N&&N.prototype,A=l.Uint8ClampedArray,T=A&&A.prototype,E=N&&v(N),D=C&&v(C),k=Object.prototype,O=l.TypeError,I=x("toStringTag"),_=w("TYPED_ARRAY_TAG"),P="TypedArrayConstructor",L=a&&!!b&&"Opera"!==f(l.opera),z=!1,R={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},F={BigInt64Array:8,BigUint64Array:8},U=function(e){var t=v(e);if(c(t)){var n=j(t);return n&&d(n,P)?n[P]:U(t)}},B=function(e){if(!c(e))return!1;var t=f(e);return d(R,t)||d(F,t)};for(r in R)(o=(i=l[r])&&i.prototype)?S(o)[P]=i:L=!1;for(r in F)(o=(i=l[r])&&i.prototype)&&(S(o)[P]=i);if((!L||!u(E)||E===Function.prototype)&&(E=function(){throw new O("Incorrect invocation")},L))for(r in R)l[r]&&b(l[r],E);if((!L||!D||D===k)&&(D=E.prototype,L))for(r in R)l[r]&&b(l[r].prototype,D);if(L&&v(T)!==D&&b(T,D),s&&!d(D,I))for(r in z=!0,m(D,I,{configurable:!0,get:function(){return c(this)?this[_]:void 0}}),R)l[r]&&p(l[r],_,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:L,TYPED_ARRAY_TAG:z&&_,aTypedArray:function(e){if(B(e))return e;throw new O("Target is not a typed array")},aTypedArrayConstructor:function(e){if(u(e)&&(!b||y(E,e)))return e;throw new O(h(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(s){if(n)for(var i in R){var o=l[i];if(o&&d(o.prototype,e))try{delete o.prototype[e]}catch(a){try{o.prototype[e]=t}catch(u){}}}D[e]&&!n||g(D,e,n?t:L&&C[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,i;if(s){if(b){if(n)for(r in R)if((i=l[r])&&d(i,e))try{delete i[e]}catch(o){}if(E[e]&&!n)return;try{return g(E,e,n?t:L&&E[e]||t)}catch(o){}}for(r in R)!(i=l[r])||i[e]&&!n||g(i,e,t)}},getTypedArrayConstructor:U,isView:function(e){if(!c(e))return!1;var t=f(e);return"DataView"===t||d(R,t)||d(F,t)},isTypedArray:B,TypedArray:E,TypedArrayPrototype:D}},3166:(e,t,n)=>{"use strict";var r=n(5623),i=n(9956),o=n(304),a=n(6175),s=n(1890),l=n(8719),u=n(9766),c=n(2939),d=n(7475),f=n(6971),h=n(2687),p=n(8098),g=n(8316),m=n(3493),y=n(1598),v=n(9959),b=n(9923),x=n(369),w=n(8604),M=n(7427),S=n(8168),j=n(1347),N=n(4481),C=s.PROPER,A=s.CONFIGURABLE,T="ArrayBuffer",E="DataView",D="prototype",k="Wrong index",O=N.getterFor(T),I=N.getterFor(E),_=N.set,P=r[T],L=P,z=L&&L[D],R=r[E],F=R&&R[D],U=Object.prototype,B=r.Array,V=r.RangeError,Q=i(x),H=i([].reverse),Y=y.pack,W=y.unpack,G=function(e){return[255&e]},q=function(e){return[255&e,e>>8&255]},Z=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},K=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},X=function(e){return Y(m(e),23,4)},$=function(e){return Y(e,52,8)},J=function(e,t,n){u(e[D],t,{configurable:!0,get:function(){return n(this)[t]}})},ee=function(e,t,n,r){var i=I(e),o=g(n),a=!!r;if(o+t>i.byteLength)throw new V(k);var s=i.bytes,l=o+i.byteOffset,u=w(s,l,l+t);return a?u:H(u)},te=function(e,t,n,r,i,o){var a=I(e),s=g(n),l=r(+i),u=!!o;if(s+t>a.byteLength)throw new V(k);for(var c=a.bytes,d=s+a.byteOffset,f=0;f<t;f++)c[d+f]=l[u?f:t-f-1]};if(a){var ne=C&&P.name!==T;d((function(){P(1)}))&&d((function(){new P(-1)}))&&!d((function(){return new P,new P(1.5),new P(NaN),1!==P.length||ne&&!A}))?ne&&A&&l(P,"name",T):((L=function(e){return f(this,z),M(new P(g(e)),this,L)})[D]=z,z.constructor=L,S(L,P)),b&&v(F)!==U&&b(F,U);var re=new R(new L(2)),ie=i(F.setInt8);re.setInt8(0,2147483648),re.setInt8(1,2147483649),!re.getInt8(0)&&re.getInt8(1)||c(F,{setInt8:function(e,t){ie(this,e,t<<24>>24)},setUint8:function(e,t){ie(this,e,t<<24>>24)}},{unsafe:!0})}else z=(L=function(e){f(this,z);var t=g(e);_(this,{type:T,bytes:Q(B(t),0),byteLength:t}),o||(this.byteLength=t,this.detached=!1)})[D],F=(R=function(e,t,n){f(this,F),f(e,z);var r=O(e),i=r.byteLength,a=h(t);if(a<0||a>i)throw new V("Wrong offset");if(a+(n=void 0===n?i-a:p(n))>i)throw new V("Wrong length");_(this,{type:E,buffer:e,byteLength:n,byteOffset:a,bytes:r.bytes}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=a)})[D],o&&(J(L,"byteLength",O),J(R,"buffer",I),J(R,"byteLength",I),J(R,"byteOffset",I)),c(F,{getInt8:function(e){return ee(this,1,e)[0]<<24>>24},getUint8:function(e){return ee(this,1,e)[0]},getInt16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return K(ee(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return K(ee(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return W(ee(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return W(ee(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){te(this,1,e,G,t)},setUint8:function(e,t){te(this,1,e,G,t)},setInt16:function(e,t){te(this,2,e,q,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){te(this,2,e,q,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){te(this,4,e,Z,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){te(this,4,e,Z,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){te(this,4,e,X,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){te(this,8,e,$,t,arguments.length>2&&arguments[2])}});j(L,T),j(R,E),e.exports={ArrayBuffer:L,DataView:R}},369:(e,t,n)=>{"use strict";var r=n(6569),i=n(5934),o=n(5506);e.exports=function(e){for(var t=r(this),n=o(t),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,u=void 0===l?n:i(l,n);u>s;)t[s++]=e;return t}},6230:(e,t,n)=>{"use strict";var r=n(5506);e.exports=function(e,t,n){for(var i=0,o=arguments.length>2?n:r(t),a=new e(o);o>i;)a[i]=t[i++];return a}},6632:(e,t,n)=>{"use strict";var r=n(7708),i=n(6265),o=n(6569),a=n(1824),s=n(1533),l=n(5905),u=n(5506),c=n(8332),d=n(5645),f=n(8311),h=Array;e.exports=function(e){var t=o(e),n=l(this),p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g;m&&(g=r(g,p>2?arguments[2]:void 0));var y,v,b,x,w,M,S=f(t),j=0;if(!S||this===h&&s(S))for(y=u(t),v=n?new this(y):h(y);y>j;j++)M=m?g(t[j],j):t[j],c(v,j,M);else for(v=n?new this:[],w=(x=d(t,S)).next;!(b=i(w,x)).done;j++)M=m?a(x,g,[b.value,j],!0):b.value,c(v,j,M);return v.length=j,v}},4909:(e,t,n)=>{"use strict";var r=n(4681),i=n(5934),o=n(5506),a=function(e){return function(t,n,a){var s=r(t),l=o(s);if(0===l)return!e&&-1;var u,c=i(a,l);if(e&&n!==n){for(;l>c;)if((u=s[c++])!==u)return!0}else for(;l>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},4865:(e,t,n)=>{"use strict";var r=n(7708),i=n(9956),o=n(4211),a=n(6569),s=n(5506),l=n(5569),u=i([].push),c=function(e){var t=1===e,n=2===e,i=3===e,c=4===e,d=6===e,f=7===e,h=5===e||d;return function(p,g,m,y){for(var v,b,x=a(p),w=o(x),M=s(w),S=r(g,m),j=0,N=y||l,C=t?N(p,M):n||f?N(p,0):void 0;M>j;j++)if((h||j in w)&&(b=S(v=w[j],j,x),e))if(t)C[j]=b;else if(b)switch(e){case 3:return!0;case 5:return v;case 6:return j;case 2:u(C,v)}else switch(e){case 4:return!1;case 7:u(C,v)}return d?-1:i||c?c:C}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},8604:(e,t,n)=>{"use strict";var r=n(9956);e.exports=r([].slice)},5244:(e,t,n)=>{"use strict";var r=n(8604),i=Math.floor,o=function(e,t){var n=e.length;if(n<8)for(var a,s,l=1;l<n;){for(s=l,a=e[l];s&&t(e[s-1],a)>0;)e[s]=e[--s];s!==l++&&(e[s]=a)}else for(var u=i(n/2),c=o(r(e,0,u),t),d=o(r(e,u),t),f=c.length,h=d.length,p=0,g=0;p<f||g<h;)e[p+g]=p<f&&g<h?t(c[p],d[g])<=0?c[p++]:d[g++]:p<f?c[p++]:d[g++];return e};e.exports=o},893:(e,t,n)=>{"use strict";var r=n(2812),i=n(5905),o=n(326),a=n(5935)("species"),s=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(i(t)&&(t===s||r(t.prototype))||o(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},5569:(e,t,n)=>{"use strict";var r=n(893);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},1824:(e,t,n)=>{"use strict";var r=n(5155),i=n(9804);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(a){i(e,"throw",a)}}},728:(e,t,n)=>{"use strict";var r=n(5935)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(s){}e.exports=function(e,t){try{if(!t&&!i)return!1}catch(s){return!1}var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(s){}return n}},540:(e,t,n)=>{"use strict";var r=n(9956),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},7287:(e,t,n)=>{"use strict";var r=n(5416),i=n(7777),o=n(540),a=n(5935)("toStringTag"),s=Object,l="Arguments"===o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=s(e),a))?n:l?o(t):"Object"===(r=o(t))&&i(t.callee)?"Arguments":r}},8168:(e,t,n)=>{"use strict";var r=n(9693),i=n(9963),o=n(2799),a=n(6405);e.exports=function(e,t,n){for(var s=i(t),l=a.f,u=o.f,c=0;c<s.length;c++){var d=s[c];r(e,d)||n&&r(n,d)||l(e,d,u(t,d))}}},3511:(e,t,n)=>{"use strict";var r=n(7475);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},2381:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},8719:(e,t,n)=>{"use strict";var r=n(304),i=n(6405),o=n(560);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},560:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},8332:(e,t,n)=>{"use strict";var r=n(304),i=n(6405),o=n(560);e.exports=function(e,t,n){r?i.f(e,t,o(0,n)):e[t]=n}},9766:(e,t,n)=>{"use strict";var r=n(6687),i=n(6405);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},8292:(e,t,n)=>{"use strict";var r=n(7777),i=n(6405),o=n(6687),a=n(3189);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:t;if(r(n)&&o(n,u,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(c){}l?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},2939:(e,t,n)=>{"use strict";var r=n(8292);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},3189:(e,t,n)=>{"use strict";var r=n(5623),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},304:(e,t,n)=>{"use strict";var r=n(7475);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},2947:(e,t,n)=>{"use strict";var r=n(5623),i=n(326),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},8300:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},4052:(e,t,n)=>{"use strict";var r=n(2947)("span").classList,i=r&&r.constructor&&r.constructor.prototype;e.exports=i===Object.prototype?void 0:i},9678:(e,t,n)=>{"use strict";var r=n(2140).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},6087:e=>{"use strict";e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},3590:(e,t,n)=>{"use strict";var r=n(2140);e.exports=/MSIE|Trident/.test(r)},9915:(e,t,n)=>{"use strict";var r=n(2140);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},6548:(e,t,n)=>{"use strict";var r=n(5623),i=n(540);e.exports="process"===i(r.process)},2140:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},1104:(e,t,n)=>{"use strict";var r,i,o=n(5623),a=n(2140),s=o.process,l=o.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(i=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},4988:(e,t,n)=>{"use strict";var r=n(2140).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},9747:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4538:(e,t,n)=>{"use strict";var r=n(5623),i=n(2799).f,o=n(8719),a=n(8292),s=n(3189),l=n(8168),u=n(8120);e.exports=function(e,t){var n,c,d,f,h,p=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[p]||s(p,{}):r[p]&&r[p].prototype)for(c in t){if(f=t[c],d=e.dontCallGetSet?(h=i(n,c))&&h.value:n[c],!u(g?c:p+(m?".":"#")+c,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&o(f,"sham",!0),a(n,c,f,e)}}},7475:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},7056:(e,t,n)=>{"use strict";n(7675);var r=n(6265),i=n(8292),o=n(495),a=n(7475),s=n(5935),l=n(8719),u=s("species"),c=RegExp.prototype;e.exports=function(e,t,n,d){var f=s(e),h=!a((function(){var t={};return t[f]=function(){return 7},7!==""[e](t)})),p=h&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t}));if(!h||!p||n){var g=/./[f],m=t(f,""[e],(function(e,t,n,i,a){var s=t.exec;return s===o||s===c.exec?h&&!a?{done:!0,value:r(g,t,n,i)}:{done:!0,value:r(e,n,t,i)}:{done:!1}}));i(String.prototype,e,m[0]),i(c,f,m[1])}d&&l(c[f],"sham",!0)}},9413:(e,t,n)=>{"use strict";var r=n(1300),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},7708:(e,t,n)=>{"use strict";var r=n(1568),i=n(446),o=n(1300),a=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},1300:(e,t,n)=>{"use strict";var r=n(7475);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6265:(e,t,n)=>{"use strict";var r=n(1300),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},1890:(e,t,n)=>{"use strict";var r=n(304),i=n(9693),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),l=s&&"something"===function(){}.name,u=s&&(!r||r&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},8294:(e,t,n)=>{"use strict";var r=n(9956),i=n(446);e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(o){}}},1568:(e,t,n)=>{"use strict";var r=n(540),i=n(9956);e.exports=function(e){if("Function"===r(e))return i(e)}},9956:(e,t,n)=>{"use strict";var r=n(1300),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);e.exports=r?a:function(e){return function(){return o.apply(e,arguments)}}},8283:(e,t,n)=>{"use strict";var r=n(5623),i=n(7777);e.exports=function(e,t){return arguments.length<2?(n=r[e],i(n)?n:void 0):r[e]&&r[e][t];var n}},8311:(e,t,n)=>{"use strict";var r=n(7287),i=n(898),o=n(5137),a=n(7217),s=n(5935)("iterator");e.exports=function(e){if(!o(e))return i(e,s)||i(e,"@@iterator")||a[r(e)]}},5645:(e,t,n)=>{"use strict";var r=n(6265),i=n(446),o=n(5155),a=n(4027),s=n(8311),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(i(n))return o(r(n,e));throw new l(a(e)+" is not iterable")}},898:(e,t,n)=>{"use strict";var r=n(446),i=n(5137);e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},5090:(e,t,n)=>{"use strict";var r=n(9956),i=n(6569),o=Math.floor,a=r("".charAt),s=r("".replace),l=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,f){var h=n+e.length,p=r.length,g=c;return void 0!==d&&(d=i(d),g=u),s(f,g,(function(i,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,h);case"<":u=d[l(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>p){var f=o(c/10);return 0===f?i:f<=p?void 0===r[f-1]?a(s,1):r[f-1]+a(s,1):i}u=r[c-1]}return void 0===u?"":u}))}},5623:function(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9693:(e,t,n)=>{"use strict";var r=n(9956),i=n(6569),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},7193:e=>{"use strict";e.exports={}},5441:(e,t,n)=>{"use strict";var r=n(8283);e.exports=r("document","documentElement")},5121:(e,t,n)=>{"use strict";var r=n(304),i=n(7475),o=n(2947);e.exports=!r&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},1598:e=>{"use strict";var t=Array,n=Math.abs,r=Math.pow,i=Math.floor,o=Math.log,a=Math.LN2;e.exports={pack:function(e,s,l){var u,c,d,f=t(l),h=8*l-s-1,p=(1<<h)-1,g=p>>1,m=23===s?r(2,-24)-r(2,-77):0,y=e<0||0===e&&1/e<0?1:0,v=0;for((e=n(e))!==e||e===1/0?(c=e!==e?1:0,u=p):(u=i(o(e)/a),e*(d=r(2,-u))<1&&(u--,d*=2),(e+=u+g>=1?m/d:m*r(2,1-g))*d>=2&&(u++,d/=2),u+g>=p?(c=0,u=p):u+g>=1?(c=(e*d-1)*r(2,s),u+=g):(c=e*r(2,g-1)*r(2,s),u=0));s>=8;)f[v++]=255&c,c/=256,s-=8;for(u=u<<s|c,h+=s;h>0;)f[v++]=255&u,u/=256,h-=8;return f[--v]|=128*y,f},unpack:function(e,t){var n,i=e.length,o=8*i-t-1,a=(1<<o)-1,s=a>>1,l=o-7,u=i-1,c=e[u--],d=127&c;for(c>>=7;l>0;)d=256*d+e[u--],l-=8;for(n=d&(1<<-l)-1,d>>=-l,l+=t;l>0;)n=256*n+e[u--],l-=8;if(0===d)d=1-s;else{if(d===a)return n?NaN:c?-1/0:1/0;n+=r(2,t),d-=s}return(c?-1:1)*n*r(2,d-t)}}},4211:(e,t,n)=>{"use strict";var r=n(9956),i=n(7475),o=n(540),a=Object,s=r("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?s(e,""):a(e)}:a},7427:(e,t,n)=>{"use strict";var r=n(7777),i=n(326),o=n(9923);e.exports=function(e,t,n){var a,s;return o&&r(a=t.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},8846:(e,t,n)=>{"use strict";var r=n(9956),i=n(7777),o=n(1833),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},4481:(e,t,n)=>{"use strict";var r,i,o,a=n(7650),s=n(5623),l=n(326),u=n(8719),c=n(9693),d=n(1833),f=n(2195),h=n(7193),p="Object already initialized",g=s.TypeError,m=s.WeakMap;if(a||d.state){var y=d.state||(d.state=new m);y.get=y.get,y.has=y.has,y.set=y.set,r=function(e,t){if(y.has(e))throw new g(p);return t.facade=e,y.set(e,t),t},i=function(e){return y.get(e)||{}},o=function(e){return y.has(e)}}else{var v=f("state");h[v]=!0,r=function(e,t){if(c(e,v))throw new g(p);return t.facade=e,u(e,v,t),t},i=function(e){return c(e,v)?e[v]:{}},o=function(e){return c(e,v)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw new g("Incompatible receiver, "+e+" required");return n}}}},1533:(e,t,n)=>{"use strict";var r=n(5935),i=n(7217),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},2812:(e,t,n)=>{"use strict";var r=n(540);e.exports=Array.isArray||function(e){return"Array"===r(e)}},5651:(e,t,n)=>{"use strict";var r=n(7287);e.exports=function(e){var t=r(e);return"BigInt64Array"===t||"BigUint64Array"===t}},7777:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports="undefined"==typeof t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},5905:(e,t,n)=>{"use strict";var r=n(9956),i=n(7475),o=n(7777),a=n(7287),s=n(8283),l=n(8846),u=function(){},c=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=r(d.exec),h=!d.test(u),p=function(e){if(!o(e))return!1;try{return c(u,[],e),!0}catch(t){return!1}},g=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!f(d,l(e))}catch(t){return!0}};g.sham=!0,e.exports=!c||i((function(){var e;return p(p.call)||!p(Object)||!p((function(){e=!0}))||e}))?g:p},8120:(e,t,n)=>{"use strict";var r=n(7475),i=n(7777),o=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n===c||n!==u&&(i(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},2331:(e,t,n)=>{"use strict";var r=n(326),i=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&i(e)===e}},5137:e=>{"use strict";e.exports=function(e){return null===e||void 0===e}},326:(e,t,n)=>{"use strict";var r=n(7777);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},921:(e,t,n)=>{"use strict";var r=n(326);e.exports=function(e){return r(e)||null===e}},3863:e=>{"use strict";e.exports=!1},5289:(e,t,n)=>{"use strict";var r=n(8283),i=n(7777),o=n(8445),a=n(6164),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,s(e))}},9804:(e,t,n)=>{"use strict";var r=n(6265),i=n(5155),o=n(898);e.exports=function(e,t,n){var a,s;i(e);try{if(!(a=o(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(l){s=!0,a=l}if("throw"===t)throw n;if(s)throw a;return i(a),n}},2710:(e,t,n)=>{"use strict";var r=n(3757).IteratorPrototype,i=n(916),o=n(560),a=n(1347),s=n(7217),l=function(){return this};e.exports=function(e,t,n,u){var c=t+" Iterator";return e.prototype=i(r,{next:o(+!u,n)}),a(e,c,!1,!0),s[c]=l,e}},8020:(e,t,n)=>{"use strict";var r=n(4538),i=n(6265),o=n(3863),a=n(1890),s=n(7777),l=n(2710),u=n(9959),c=n(9923),d=n(1347),f=n(8719),h=n(8292),p=n(5935),g=n(7217),m=n(3757),y=a.PROPER,v=a.CONFIGURABLE,b=m.IteratorPrototype,x=m.BUGGY_SAFARI_ITERATORS,w=p("iterator"),M="keys",S="values",j="entries",N=function(){return this};e.exports=function(e,t,n,a,p,m,C){l(n,t,a);var A,T,E,D=function(e){if(e===p&&P)return P;if(!x&&e&&e in I)return I[e];switch(e){case M:case S:case j:return function(){return new n(this,e)}}return function(){return new n(this)}},k=t+" Iterator",O=!1,I=e.prototype,_=I[w]||I["@@iterator"]||p&&I[p],P=!x&&_||D(p),L="Array"===t&&I.entries||_;if(L&&(A=u(L.call(new e)))!==Object.prototype&&A.next&&(o||u(A)===b||(c?c(A,b):s(A[w])||h(A,w,N)),d(A,k,!0,!0),o&&(g[k]=N)),y&&p===S&&_&&_.name!==S&&(!o&&v?f(I,"name",S):(O=!0,P=function(){return i(_,this)})),p)if(T={values:D(S),keys:m?P:D(M),entries:D(j)},C)for(E in T)(x||O||!(E in I))&&h(I,E,T[E]);else r({target:t,proto:!0,forced:x||O},T);return o&&!C||I[w]===P||h(I,w,P,{name:p}),g[t]=P,T}},3757:(e,t,n)=>{"use strict";var r,i,o,a=n(7475),s=n(7777),l=n(326),u=n(916),c=n(9959),d=n(8292),f=n(5935),h=n(3863),p=f("iterator"),g=!1;[].keys&&("next"in(o=[].keys())?(i=c(c(o)))!==Object.prototype&&(r=i):g=!0),!l(r)||a((function(){var e={};return r[p].call(e)!==e}))?r={}:h&&(r=u(r)),s(r[p])||d(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:g}},7217:e=>{"use strict";e.exports={}},5506:(e,t,n)=>{"use strict";var r=n(8098);e.exports=function(e){return r(e.length)}},6687:(e,t,n)=>{"use strict";var r=n(9956),i=n(7475),o=n(7777),a=n(9693),s=n(304),l=n(1890).CONFIGURABLE,u=n(8846),c=n(4481),d=c.enforce,f=c.get,h=String,p=Object.defineProperty,g=r("".slice),m=r("".replace),y=r([].join),v=s&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),b=String(String).split("String"),x=e.exports=function(e,t,n){"Symbol("===g(h(t),0,7)&&(t="["+m(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),v&&n&&a(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=d(e);return a(r,"source")||(r.source=y(b,"string"==typeof t?t:"")),e};Function.prototype.toString=x((function(){return o(this)&&f(this).source||u(this)}),"toString")},7160:(e,t,n)=>{"use strict";var r=n(6274),i=Math.abs,o=2220446049250313e-31,a=1/o;e.exports=function(e,t,n,s){var l=+e,u=i(l),c=r(l);if(u<s)return c*function(e){return e+a-a}(u/s/t)*s*t;var d=(1+t/o)*u,f=d-(d-u);return f>n||f!==f?c*(1/0):c*f}},3493:(e,t,n)=>{"use strict";var r=n(7160);e.exports=Math.fround||function(e){return r(e,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},6274:e=>{"use strict";e.exports=Math.sign||function(e){var t=+e;return 0===t||t!==t?t:t<0?-1:1}},8705:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},4087:(e,t,n)=>{"use strict";var r=n(446),i=TypeError,o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new i("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},9305:(e,t,n)=>{"use strict";var r=n(304),i=n(9956),o=n(6265),a=n(7475),s=n(700),l=n(9745),u=n(2393),c=n(6569),d=n(4211),f=Object.assign,h=Object.defineProperty,p=i([].concat);e.exports=!f||a((function(){if(r&&1!==f({b:1},f(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!==f({},e)[n]||s(f({},t)).join("")!==i}))?function(e,t){for(var n=c(e),i=arguments.length,a=1,f=l.f,h=u.f;i>a;)for(var g,m=d(arguments[a++]),y=f?p(s(m),f(m)):s(m),v=y.length,b=0;v>b;)g=y[b++],r&&!o(h,m,g)||(n[g]=m[g]);return n}:f},916:(e,t,n)=>{"use strict";var r,i=n(5155),o=n(5677),a=n(9747),s=n(7193),l=n(5441),u=n(2947),c=n(2195),d="prototype",f="script",h=c("IE_PROTO"),p=function(){},g=function(e){return"<"+f+">"+e+"</"+f+">"},m=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}y="undefined"!=typeof document?document.domain&&r?m(r):function(){var e,t=u("iframe"),n="java"+f+":";return t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F}():m(r);for(var e=a.length;e--;)delete y[d][a[e]];return y()};s[h]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p[d]=i(e),n=new p,p[d]=null,n[h]=e):n=y(),void 0===t?n:o.f(n,t)}},5677:(e,t,n)=>{"use strict";var r=n(304),i=n(2978),o=n(6405),a=n(5155),s=n(4681),l=n(700);t.f=r&&!i?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),i=l(t),u=i.length,c=0;u>c;)o.f(e,n=i[c++],r[n]);return e}},6405:(e,t,n)=>{"use strict";var r=n(304),i=n(5121),o=n(2978),a=n(5155),s=n(2429),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",h="writable";t.f=r?o?function(e,t,n){if(a(e),t=s(t),a(n),"function"===typeof e&&"prototype"===t&&"value"in n&&h in n&&!n[h]){var r=c(e,t);r&&r[h]&&(e[t]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:d in n?n[d]:r[d],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(a(e),t=s(t),a(n),i)try{return u(e,t,n)}catch(r){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},2799:(e,t,n)=>{"use strict";var r=n(304),i=n(6265),o=n(2393),a=n(560),s=n(4681),l=n(2429),u=n(9693),c=n(5121),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=l(t),c)try{return d(e,t)}catch(n){}if(u(e,t))return a(!i(o.f,e,t),e[t])}},5919:(e,t,n)=>{"use strict";var r=n(3832),i=n(9747).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},9745:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},9959:(e,t,n)=>{"use strict";var r=n(9693),i=n(7777),o=n(6569),a=n(2195),s=n(3511),l=a("IE_PROTO"),u=Object,c=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=o(e);if(r(t,l))return t[l];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},8445:(e,t,n)=>{"use strict";var r=n(9956);e.exports=r({}.isPrototypeOf)},3832:(e,t,n)=>{"use strict";var r=n(9956),i=n(9693),o=n(4681),a=n(4909).indexOf,s=n(7193),l=r([].push);e.exports=function(e,t){var n,r=o(e),u=0,c=[];for(n in r)!i(s,n)&&i(r,n)&&l(c,n);for(;t.length>u;)i(r,n=t[u++])&&(~a(c,n)||l(c,n));return c}},700:(e,t,n)=>{"use strict";var r=n(3832),i=n(9747);e.exports=Object.keys||function(e){return r(e,i)}},2393:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},9923:(e,t,n)=>{"use strict";var r=n(8294),i=n(326),o=n(930),a=n(7454);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(s){}return function(n,r){return o(n),a(r),i(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},7370:(e,t,n)=>{"use strict";var r=n(6265),i=n(7777),o=n(326),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!o(s=r(n,e)))return s;if(i(n=e.valueOf)&&!o(s=r(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!o(s=r(n,e)))return s;throw new a("Can't convert object to primitive value")}},9963:(e,t,n)=>{"use strict";var r=n(8283),i=n(9956),o=n(5919),a=n(9745),s=n(5155),l=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?l(t,n(e)):t}},8851:(e,t,n)=>{"use strict";var r=n(5623);e.exports=r},9754:(e,t,n)=>{"use strict";var r=n(5623);e.exports=r.Promise},5706:(e,t,n)=>{"use strict";var r=n(5155),i=n(326),o=n(4087);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},2814:(e,t,n)=>{"use strict";var r=n(6265),i=n(5155),o=n(7777),a=n(540),s=n(495),l=TypeError;e.exports=function(e,t){var n=e.exec;if(o(n)){var u=r(n,e,t);return null!==u&&i(u),u}if("RegExp"===a(e))return r(s,e,t);throw new l("RegExp#exec called on incompatible receiver")}},495:(e,t,n)=>{"use strict";var r=n(6265),i=n(9956),o=n(5827),a=n(1759),s=n(2601),l=n(2125),u=n(916),c=n(4481).get,d=n(7423),f=n(3898),h=l("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,g=p,m=i("".charAt),y=i("".indexOf),v=i("".replace),b=i("".slice),x=function(){var e=/a/,t=/b*/g;return r(p,e,"a"),r(p,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),w=s.BROKEN_CARET,M=void 0!==/()??/.exec("")[1];(x||M||w||d||f)&&(g=function(e){var t,n,i,s,l,d,f,S=this,j=c(S),N=o(e),C=j.raw;if(C)return C.lastIndex=S.lastIndex,t=r(g,C,N),S.lastIndex=C.lastIndex,t;var A=j.groups,T=w&&S.sticky,E=r(a,S),D=S.source,k=0,O=N;if(T&&(E=v(E,"y",""),-1===y(E,"g")&&(E+="g"),O=b(N,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==m(N,S.lastIndex-1))&&(D="(?: "+D+")",O=" "+O,k++),n=new RegExp("^(?:"+D+")",E)),M&&(n=new RegExp("^"+D+"$(?!\\s)",E)),x&&(i=S.lastIndex),s=r(p,T?n:S,O),T?s?(s.input=b(s.input,k),s[0]=b(s[0],k),s.index=S.lastIndex,S.lastIndex+=s[0].length):S.lastIndex=0:x&&s&&(S.lastIndex=S.global?s.index+s[0].length:i),M&&s&&s.length>1&&r(h,s[0],n,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(s[l]=void 0)})),s&&A)for(s.groups=d=u(null),l=0;l<A.length;l++)d[(f=A[l])[0]]=s[f[1]];return s}),e.exports=g},1759:(e,t,n)=>{"use strict";var r=n(5155);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},2601:(e,t,n)=>{"use strict";var r=n(7475),i=n(5623).RegExp,o=r((function(){var e=i("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=o||r((function(){return!i("a","y").sticky})),s=o||r((function(){var e=i("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},7423:(e,t,n)=>{"use strict";var r=n(7475),i=n(5623).RegExp;e.exports=r((function(){var e=i(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},3898:(e,t,n)=>{"use strict";var r=n(7475),i=n(5623).RegExp;e.exports=r((function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},930:(e,t,n)=>{"use strict";var r=n(5137),i=TypeError;e.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},2750:(e,t,n)=>{"use strict";var r=n(5623),i=n(304),o=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!i)return r[e];var t=o(r,e);return t&&t.value}},8212:(e,t,n)=>{"use strict";var r=n(5623),i=n(9413),o=n(7777),a=n(6087),s=n(2140),l=n(8604),u=n(4576),c=r.Function,d=/MSIE .\./.test(s)||a&&function(){var e=r.Bun.version.split(".");return e.length<3||"0"===e[0]&&(e[1]<3||"3"===e[1]&&"0"===e[2])}();e.exports=function(e,t){var n=t?2:1;return d?function(r,a){var s=u(arguments.length,1)>n,d=o(r)?r:c(r),f=s?l(arguments,n):[],h=s?function(){i(d,this,f)}:d;return t?e(h,a):e(h)}:e}},5469:(e,t,n)=>{"use strict";var r=n(8283),i=n(9766),o=n(5935),a=n(304),s=o("species");e.exports=function(e){var t=r(e);a&&t&&!t[s]&&i(t,s,{configurable:!0,get:function(){return this}})}},1347:(e,t,n)=>{"use strict";var r=n(6405).f,i=n(9693),o=n(5935)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,o)&&r(e,o,{configurable:!0,value:t})}},2195:(e,t,n)=>{"use strict";var r=n(2125),i=n(9220),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},1833:(e,t,n)=>{"use strict";var r=n(3863),i=n(5623),o=n(3189),a="__core-js_shared__",s=e.exports=i[a]||o(a,{});(s.versions||(s.versions=[])).push({version:"3.37.1",mode:r?"pure":"global",copyright:"\xa9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},2125:(e,t,n)=>{"use strict";var r=n(1833);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},8913:(e,t,n)=>{"use strict";var r=n(5155),i=n(6376),o=n(5137),a=n(5935)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||o(n=r(s)[a])?t:i(n)}},2915:(e,t,n)=>{"use strict";var r=n(9956),i=n(2687),o=n(5827),a=n(930),s=r("".charAt),l=r("".charCodeAt),u=r("".slice),c=function(e){return function(t,n){var r,c,d=o(a(t)),f=i(n),h=d.length;return f<0||f>=h?e?"":void 0:(r=l(d,f))<55296||r>56319||f+1===h||(c=l(d,f+1))<56320||c>57343?e?s(d,f):r:e?u(d,f,f+2):c-56320+(r-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},8505:(e,t,n)=>{"use strict";var r=n(9956),i=2147483647,o=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",l=RangeError,u=r(a.exec),c=Math.floor,d=String.fromCharCode,f=r("".charCodeAt),h=r([].join),p=r([].push),g=r("".replace),m=r("".split),y=r("".toLowerCase),v=function(e){return e+22+75*(e<26)},b=function(e,t,n){var r=0;for(e=n?c(e/700):e>>1,e+=c(e/t);e>455;)e=c(e/35),r+=36;return c(r+36*e/(e+38))},x=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=f(e,n++);if(i>=55296&&i<=56319&&n<r){var o=f(e,n++);56320===(64512&o)?p(t,((1023&i)<<10)+(1023&o)+65536):(p(t,i),n--)}else p(t,i)}return t}(e);var n,r,o=e.length,a=128,u=0,g=72;for(n=0;n<e.length;n++)(r=e[n])<128&&p(t,d(r));var m=t.length,y=m;for(m&&p(t,"-");y<o;){var x=i;for(n=0;n<e.length;n++)(r=e[n])>=a&&r<x&&(x=r);var w=y+1;if(x-a>c((i-u)/w))throw new l(s);for(u+=(x-a)*w,a=x,n=0;n<e.length;n++){if((r=e[n])<a&&++u>i)throw new l(s);if(r===a){for(var M=u,S=36;;){var j=S<=g?1:S>=g+26?26:S-g;if(M<j)break;var N=M-j,C=36-j;p(t,d(v(j+N%C))),M=c(N/C),S+=36}p(t,d(v(M))),g=b(u,w,y===m),u=0,y++}}u++,a++}return h(t,"")};e.exports=function(e){var t,n,r=[],i=m(g(y(e),a,"."),".");for(t=0;t<i.length;t++)n=i[t],p(r,u(o,n)?"xn--"+x(n):n);return h(r,".")}},6987:(e,t,n)=>{"use strict";var r=n(1104),i=n(7475),o=n(5623).String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},5517:(e,t,n)=>{"use strict";var r,i,o,a,s=n(5623),l=n(9413),u=n(7708),c=n(7777),d=n(9693),f=n(7475),h=n(5441),p=n(8604),g=n(2947),m=n(4576),y=n(9915),v=n(6548),b=s.setImmediate,x=s.clearImmediate,w=s.process,M=s.Dispatch,S=s.Function,j=s.MessageChannel,N=s.String,C=0,A={},T="onreadystatechange";f((function(){r=s.location}));var E=function(e){if(d(A,e)){var t=A[e];delete A[e],t()}},D=function(e){return function(){E(e)}},k=function(e){E(e.data)},O=function(e){s.postMessage(N(e),r.protocol+"//"+r.host)};b&&x||(b=function(e){m(arguments.length,1);var t=c(e)?e:S(e),n=p(arguments,1);return A[++C]=function(){l(t,void 0,n)},i(C),C},x=function(e){delete A[e]},v?i=function(e){w.nextTick(D(e))}:M&&M.now?i=function(e){M.now(D(e))}:j&&!y?(a=(o=new j).port2,o.port1.onmessage=k,i=u(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(O)?(i=O,s.addEventListener("message",k,!1)):i=T in g("script")?function(e){h.appendChild(g("script"))[T]=function(){h.removeChild(this),E(e)}}:function(e){setTimeout(D(e),0)}),e.exports={set:b,clear:x}},5934:(e,t,n)=>{"use strict";var r=n(2687),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},9218:(e,t,n)=>{"use strict";var r=n(173),i=TypeError;e.exports=function(e){var t=r(e,"number");if("number"==typeof t)throw new i("Can't convert number to bigint");return BigInt(t)}},8316:(e,t,n)=>{"use strict";var r=n(2687),i=n(8098),o=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw new o("Wrong length or index");return n}},4681:(e,t,n)=>{"use strict";var r=n(4211),i=n(930);e.exports=function(e){return r(i(e))}},2687:(e,t,n)=>{"use strict";var r=n(8705);e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},8098:(e,t,n)=>{"use strict";var r=n(2687),i=Math.min;e.exports=function(e){var t=r(e);return t>0?i(t,9007199254740991):0}},6569:(e,t,n)=>{"use strict";var r=n(930),i=Object;e.exports=function(e){return i(r(e))}},3161:(e,t,n)=>{"use strict";var r=n(4882),i=RangeError;e.exports=function(e,t){var n=r(e);if(n%t)throw new i("Wrong offset");return n}},4882:(e,t,n)=>{"use strict";var r=n(2687),i=RangeError;e.exports=function(e){var t=r(e);if(t<0)throw new i("The argument can't be less than 0");return t}},173:(e,t,n)=>{"use strict";var r=n(6265),i=n(326),o=n(5289),a=n(898),s=n(7370),l=n(5935),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var n,l=a(e,c);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!i(n)||o(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},2429:(e,t,n)=>{"use strict";var r=n(173),i=n(5289);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},5416:(e,t,n)=>{"use strict";var r={};r[n(5935)("toStringTag")]="z",e.exports="[object z]"===String(r)},5827:(e,t,n)=>{"use strict";var r=n(7287),i=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},9443:e=>{"use strict";var t=Math.round;e.exports=function(e){var n=t(e);return n<0?0:n>255?255:255&n}},4027:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(n){return"Object"}}},1595:(e,t,n)=>{"use strict";var r=n(4538),i=n(5623),o=n(6265),a=n(304),s=n(1193),l=n(7360),u=n(3166),c=n(6971),d=n(560),f=n(8719),h=n(2331),p=n(8098),g=n(8316),m=n(3161),y=n(9443),v=n(2429),b=n(9693),x=n(7287),w=n(326),M=n(5289),S=n(916),j=n(8445),N=n(9923),C=n(5919).f,A=n(8143),T=n(4865).forEach,E=n(5469),D=n(9766),k=n(6405),O=n(2799),I=n(6230),_=n(4481),P=n(7427),L=_.get,z=_.set,R=_.enforce,F=k.f,U=O.f,B=i.RangeError,V=u.ArrayBuffer,Q=V.prototype,H=u.DataView,Y=l.NATIVE_ARRAY_BUFFER_VIEWS,W=l.TYPED_ARRAY_TAG,G=l.TypedArray,q=l.TypedArrayPrototype,Z=l.isTypedArray,K="BYTES_PER_ELEMENT",X="Wrong length",$=function(e,t){D(e,t,{configurable:!0,get:function(){return L(this)[t]}})},J=function(e){var t;return j(Q,e)||"ArrayBuffer"===(t=x(e))||"SharedArrayBuffer"===t},ee=function(e,t){return Z(e)&&!M(t)&&t in e&&h(+t)&&t>=0},te=function(e,t){return t=v(t),ee(e,t)?d(2,e[t]):U(e,t)},ne=function(e,t,n){return t=v(t),!(ee(e,t)&&w(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?F(e,t,n):(e[t]=n.value,e)};a?(Y||(O.f=te,k.f=ne,$(q,"buffer"),$(q,"byteOffset"),$(q,"byteLength"),$(q,"length")),r({target:"Object",stat:!0,forced:!Y},{getOwnPropertyDescriptor:te,defineProperty:ne}),e.exports=function(e,t,n){var a=e.match(/\d+/)[0]/8,l=e+(n?"Clamped":"")+"Array",u="get"+e,d="set"+e,h=i[l],v=h,b=v&&v.prototype,x={},M=function(e,t){F(e,t,{get:function(){return function(e,t){var n=L(e);return n.view[u](t*a+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var i=L(e);i.view[d](t*a+i.byteOffset,n?y(r):r,!0)}(this,t,e)},enumerable:!0})};Y?s&&(v=t((function(e,t,n,r){return c(e,b),P(w(t)?J(t)?void 0!==r?new h(t,m(n,a),r):void 0!==n?new h(t,m(n,a)):new h(t):Z(t)?I(v,t):o(A,v,t):new h(g(t)),e,v)})),N&&N(v,G),T(C(h),(function(e){e in v||f(v,e,h[e])})),v.prototype=b):(v=t((function(e,t,n,r){c(e,b);var i,s,l,u=0,d=0;if(w(t)){if(!J(t))return Z(t)?I(v,t):o(A,v,t);i=t,d=m(n,a);var f=t.byteLength;if(void 0===r){if(f%a)throw new B(X);if((s=f-d)<0)throw new B(X)}else if((s=p(r)*a)+d>f)throw new B(X);l=s/a}else l=g(t),i=new V(s=l*a);for(z(e,{buffer:i,byteOffset:d,byteLength:s,length:l,view:new H(i)});u<l;)M(e,u++)})),N&&N(v,G),b=v.prototype=S(q)),b.constructor!==v&&f(b,"constructor",v),R(b).TypedArrayConstructor=v,W&&f(b,W,l);var j=v!==h;x[l]=v,r({global:!0,constructor:!0,forced:j,sham:!Y},x),K in v||f(v,K,a),K in b||f(b,K,a),E(l)}):e.exports=function(){}},1193:(e,t,n)=>{"use strict";var r=n(5623),i=n(7475),o=n(728),a=n(7360).NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,l=r.Int8Array;e.exports=!a||!i((function(){l(1)}))||!i((function(){new l(-1)}))||!o((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||i((function(){return 1!==new l(new s(2),1,void 0).length}))},8143:(e,t,n)=>{"use strict";var r=n(7708),i=n(6265),o=n(6376),a=n(6569),s=n(5506),l=n(5645),u=n(8311),c=n(1533),d=n(5651),f=n(7360).aTypedArrayConstructor,h=n(9218);e.exports=function(e){var t,n,p,g,m,y,v,b,x=o(this),w=a(e),M=arguments.length,S=M>1?arguments[1]:void 0,j=void 0!==S,N=u(w);if(N&&!c(N))for(b=(v=l(w,N)).next,w=[];!(y=i(b,v)).done;)w.push(y.value);for(j&&M>2&&(S=r(S,arguments[2])),n=s(w),p=new(f(x))(n),g=d(p),t=0;n>t;t++)m=j?S(w[t],t):w[t],p[t]=g?h(m):+m;return p}},9220:(e,t,n)=>{"use strict";var r=n(9956),i=0,o=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},9972:(e,t,n)=>{"use strict";var r=n(7475),i=n(5935),o=n(304),a=n(3863),s=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),n.delete("a",2),n.delete("b",void 0),a&&(!e.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!t.size&&(a||!o)||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://\u0442\u0435\u0441\u0442").host||"#%D0%B1"!==new URL("http://a#\u0431").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},6164:(e,t,n)=>{"use strict";var r=n(6987);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},2978:(e,t,n)=>{"use strict";var r=n(304),i=n(7475);e.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4576:e=>{"use strict";var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},7650:(e,t,n)=>{"use strict";var r=n(5623),i=n(7777),o=r.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},6835:(e,t,n)=>{"use strict";var r=n(8851),i=n(9693),o=n(3595),a=n(6405).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},3595:(e,t,n)=>{"use strict";var r=n(5935);t.f=r},5935:(e,t,n)=>{"use strict";var r=n(5623),i=n(2125),o=n(9693),a=n(9220),s=n(6987),l=n(6164),u=r.Symbol,c=i("wks"),d=l?u.for||u:u&&u.withoutSetter||a;e.exports=function(e){return o(c,e)||(c[e]=s&&o(u,e)?u[e]:d("Symbol."+e)),c[e]}},7956:(e,t,n)=>{"use strict";var r=n(4681),i=n(9385),o=n(7217),a=n(4481),s=n(6405).f,l=n(8020),u=n(2381),c=n(3863),d=n(304),f="Array Iterator",h=a.set,p=a.getterFor(f);e.exports=l(Array,"Array",(function(e,t){h(this,{type:f,target:r(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,u(void 0,!0);switch(e.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)}),"values");var g=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!c&&d&&"values"!==g.name)try{s(g,"name",{value:"values"})}catch(m){}},9913:(e,t,n)=>{"use strict";n(9385)("flatMap")},5238:(e,t,n)=>{"use strict";n(9385)("flat")},6067:(e,t,n)=>{"use strict";var r=n(4538),i=n(3863),o=n(9754),a=n(7475),s=n(8283),l=n(7777),u=n(8913),c=n(5706),d=n(8292),f=o&&o.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&a((function(){f.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=u(this,s("Promise")),n=l(e);return this.then(n?function(n){return c(t,e()).then((function(){return n}))}:e,n?function(n){return c(t,e()).then((function(){throw n}))}:e)}}),!i&&l(o)){var h=s("Promise").prototype.finally;f.finally!==h&&d(f,"finally",h,{unsafe:!0})}},7675:(e,t,n)=>{"use strict";var r=n(4538),i=n(495);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},8187:(e,t,n)=>{"use strict";var r=n(5623),i=n(304),o=n(9766),a=n(1759),s=n(7475),l=r.RegExp,u=l.prototype;i&&s((function(){var e=!0;try{l(".","d")}catch(s){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",i=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(o.hasIndices="d"),o)i(a,o[a]);return Object.getOwnPropertyDescriptor(u,"flags").get.call(t)!==r||n!==r}))&&o(u,"flags",{configurable:!0,get:a})},1192:(e,t,n)=>{"use strict";var r=n(2915).charAt,i=n(5827),o=n(4481),a=n(8020),s=n(2381),l="String Iterator",u=o.set,c=o.getterFor(l);a(String,"String",(function(e){u(this,{type:l,string:i(e),index:0})}),(function(){var e,t=c(this),n=t.string,i=t.index;return i>=n.length?s(void 0,!0):(e=r(n,i),t.index+=e.length,s(e,!1))}))},7575:(e,t,n)=>{"use strict";var r=n(9413),i=n(6265),o=n(9956),a=n(7056),s=n(7475),l=n(5155),u=n(7777),c=n(5137),d=n(2687),f=n(8098),h=n(5827),p=n(930),g=n(1249),m=n(898),y=n(5090),v=n(2814),b=n(5935)("replace"),x=Math.max,w=Math.min,M=o([].concat),S=o([].push),j=o("".indexOf),N=o("".slice),C="$0"==="a".replace(/./,"$0"),A=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(e,t,n){var o=A?"$":"$0";return[function(e,n){var r=p(this),o=c(e)?void 0:m(e,b);return o?i(o,e,r,n):i(t,h(r),e,n)},function(e,i){var a=l(this),s=h(e);if("string"==typeof i&&-1===j(i,o)&&-1===j(i,"$<")){var c=n(t,a,s,i);if(c.done)return c.value}var p=u(i);p||(i=h(i));var m,b=a.global;b&&(m=a.unicode,a.lastIndex=0);for(var C,A=[];null!==(C=v(a,s))&&(S(A,C),b);){""===h(C[0])&&(a.lastIndex=g(s,f(a.lastIndex),m))}for(var T,E="",D=0,k=0;k<A.length;k++){for(var O,I=h((C=A[k])[0]),_=x(w(d(C.index),s.length),0),P=[],L=1;L<C.length;L++)S(P,void 0===(T=C[L])?T:String(T));var z=C.groups;if(p){var R=M([I],P,_,s);void 0!==z&&S(R,z),O=h(r(i,void 0,R))}else O=y(I,s,_,P,z,i);_>=D&&(E+=N(s,D,_)+O,D=_+I.length)}return E+N(s,D)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!C||A)},7296:(e,t,n)=>{"use strict";var r=n(7360),i=n(369),o=n(9218),a=n(7287),s=n(6265),l=n(9956),u=n(7475),c=r.aTypedArray,d=r.exportTypedArrayMethod,f=l("".slice);d("fill",(function(e){var t=arguments.length;c(this);var n="Big"===f(a(this),0,3)?o(e):+e;return s(i,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),u((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},1958:(e,t,n)=>{"use strict";n(1595)("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},5533:(e,t,n)=>{"use strict";n(1595)("Float64",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},149:(e,t,n)=>{"use strict";var r=n(1193);(0,n(7360).exportTypedArrayStaticMethod)("from",n(8143),r)},6468:(e,t,n)=>{"use strict";n(1595)("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},6505:(e,t,n)=>{"use strict";n(1595)("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},3726:(e,t,n)=>{"use strict";n(1595)("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},9708:(e,t,n)=>{"use strict";var r=n(7360),i=n(1193),o=r.aTypedArrayConstructor;(0,r.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,n=new(o(this))(t);t>e;)n[e]=arguments[e++];return n}),i)},7817:(e,t,n)=>{"use strict";var r=n(5623),i=n(6265),o=n(7360),a=n(5506),s=n(3161),l=n(6569),u=n(7475),c=r.RangeError,d=r.Int8Array,f=d&&d.prototype,h=f&&f.set,p=o.aTypedArray,g=o.exportTypedArrayMethod,m=!u((function(){var e=new Uint8ClampedArray(2);return i(h,e,{length:1,0:3},1),3!==e[1]})),y=m&&o.NATIVE_ARRAY_BUFFER_VIEWS&&u((function(){var e=new d(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));g("set",(function(e){p(this);var t=s(arguments.length>1?arguments[1]:void 0,1),n=l(e);if(m)return i(h,this,n,t);var r=this.length,o=a(n),u=0;if(o+t>r)throw new c("Wrong length");for(;u<o;)this[t+u]=n[u++]}),!m||y)},8409:(e,t,n)=>{"use strict";var r=n(5623),i=n(1568),o=n(7475),a=n(446),s=n(5244),l=n(7360),u=n(9678),c=n(3590),d=n(1104),f=n(4988),h=l.aTypedArray,p=l.exportTypedArrayMethod,g=r.Uint16Array,m=g&&i(g.prototype.sort),y=!!m&&!(o((function(){m(new g(2),null)}))&&o((function(){m(new g(2),{})}))),v=!!m&&!o((function(){if(d)return d<74;if(u)return u<67;if(c)return!0;if(f)return f<602;var e,t,n=new g(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(m(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));p("sort",(function(e){return void 0!==e&&a(e),v?m(this,e):s(h(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!==n?-1:t!==t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!v||y)},310:(e,t,n)=>{"use strict";n(1595)("Uint16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},480:(e,t,n)=>{"use strict";n(1595)("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},1613:(e,t,n)=>{"use strict";n(1595)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},1498:(e,t,n)=>{"use strict";n(1595)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},2679:(e,t,n)=>{"use strict";var r=n(5623),i=n(6835),o=n(6405).f,a=n(2799).f,s=r.Symbol;if(i("dispose"),s){var l=a(s,"dispose");l.enumerable&&l.configurable&&l.writable&&o(s,"dispose",{value:l.value,enumerable:!1,configurable:!1,writable:!1})}},7005:(e,t,n)=>{"use strict";n(6835)("observable")},1716:(e,t,n)=>{"use strict";n(6835)("patternMatch")},7964:(e,t,n)=>{"use strict";var r=n(4538),i=n(5623),o=n(5517).clear;r({global:!0,bind:!0,enumerable:!0,forced:i.clearImmediate!==o},{clearImmediate:o})},4837:(e,t,n)=>{"use strict";var r=n(5623),i=n(8300),o=n(4052),a=n(7956),s=n(8719),l=n(1347),u=n(5935)("iterator"),c=a.values,d=function(e,t){if(e){if(e[u]!==c)try{s(e,u,c)}catch(r){e[u]=c}if(l(e,t,!0),i[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(r){e[n]=a[n]}}};for(var f in i)d(r[f]&&r[f].prototype,f);d(o,"DOMTokenList")},2684:(e,t,n)=>{"use strict";n(7964),n(1897)},1897:(e,t,n)=>{"use strict";var r=n(4538),i=n(5623),o=n(5517).set,a=n(8212),s=i.setImmediate?a(o,!1):o;r({global:!0,bind:!0,enumerable:!0,forced:i.setImmediate!==s},{setImmediate:s})},1170:(e,t,n)=>{"use strict";n(7956);var r=n(4538),i=n(5623),o=n(2750),a=n(6265),s=n(9956),l=n(304),u=n(9972),c=n(8292),d=n(9766),f=n(2939),h=n(1347),p=n(2710),g=n(4481),m=n(6971),y=n(7777),v=n(9693),b=n(7708),x=n(7287),w=n(5155),M=n(326),S=n(5827),j=n(916),N=n(560),C=n(5645),A=n(8311),T=n(2381),E=n(4576),D=n(5935),k=n(5244),O=D("iterator"),I="URLSearchParams",_=I+"Iterator",P=g.set,L=g.getterFor(I),z=g.getterFor(_),R=o("fetch"),F=o("Request"),U=o("Headers"),B=F&&F.prototype,V=U&&U.prototype,Q=i.RegExp,H=i.TypeError,Y=i.decodeURIComponent,W=i.encodeURIComponent,G=s("".charAt),q=s([].join),Z=s([].push),K=s("".replace),X=s([].shift),$=s([].splice),J=s("".split),ee=s("".slice),te=/\+/g,ne=Array(4),re=function(e){return ne[e-1]||(ne[e-1]=Q("((?:%[\\da-f]{2}){"+e+"})","gi"))},ie=function(e){try{return Y(e)}catch(t){return e}},oe=function(e){var t=K(e,te," "),n=4;try{return Y(t)}catch(r){for(;n;)t=K(t,re(n--),ie);return t}},ae=/[!'()~]|%20/g,se={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},le=function(e){return se[e]},ue=function(e){return K(W(e),ae,le)},ce=p((function(e,t){P(this,{type:_,target:L(e).entries,index:0,kind:t})}),I,(function(){var e=z(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,T(void 0,!0);var r=t[n];switch(e.kind){case"keys":return T(r.key,!1);case"values":return T(r.value,!1)}return T([r.key,r.value],!1)}),!0),de=function(e){this.entries=[],this.url=null,void 0!==e&&(M(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===G(e,0)?ee(e,1):e:S(e)))};de.prototype={type:I,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,o,s,l,u=this.entries,c=A(e);if(c)for(n=(t=C(e,c)).next;!(r=a(n,t)).done;){if(o=(i=C(w(r.value))).next,(s=a(o,i)).done||(l=a(o,i)).done||!a(o,i).done)throw new H("Expected sequence with length 2");Z(u,{key:S(s.value),value:S(l.value)})}else for(var d in e)v(e,d)&&Z(u,{key:d,value:S(e[d])})},parseQuery:function(e){if(e)for(var t,n,r=this.entries,i=J(e,"&"),o=0;o<i.length;)(t=i[o++]).length&&(n=J(t,"="),Z(r,{key:oe(X(n)),value:oe(q(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],Z(n,ue(e.key)+"="+ue(e.value));return q(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var fe=function(){m(this,he);var e=P(this,new de(arguments.length>0?arguments[0]:void 0));l||(this.size=e.entries.length)},he=fe.prototype;if(f(he,{append:function(e,t){var n=L(this);E(arguments.length,2),Z(n.entries,{key:S(e),value:S(t)}),l||this.length++,n.updateURL()},delete:function(e){for(var t=L(this),n=E(arguments.length,1),r=t.entries,i=S(e),o=n<2?void 0:arguments[1],a=void 0===o?o:S(o),s=0;s<r.length;){var u=r[s];if(u.key!==i||void 0!==a&&u.value!==a)s++;else if($(r,s,1),void 0!==a)break}l||(this.size=r.length),t.updateURL()},get:function(e){var t=L(this).entries;E(arguments.length,1);for(var n=S(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=L(this).entries;E(arguments.length,1);for(var n=S(e),r=[],i=0;i<t.length;i++)t[i].key===n&&Z(r,t[i].value);return r},has:function(e){for(var t=L(this).entries,n=E(arguments.length,1),r=S(e),i=n<2?void 0:arguments[1],o=void 0===i?i:S(i),a=0;a<t.length;){var s=t[a++];if(s.key===r&&(void 0===o||s.value===o))return!0}return!1},set:function(e,t){var n=L(this);E(arguments.length,1);for(var r,i=n.entries,o=!1,a=S(e),s=S(t),u=0;u<i.length;u++)(r=i[u]).key===a&&(o?$(i,u--,1):(o=!0,r.value=s));o||Z(i,{key:a,value:s}),l||(this.size=i.length),n.updateURL()},sort:function(){var e=L(this);k(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=L(this).entries,r=b(e,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new ce(this,"keys")},values:function(){return new ce(this,"values")},entries:function(){return new ce(this,"entries")}},{enumerable:!0}),c(he,O,he.entries,{name:"entries"}),c(he,"toString",(function(){return L(this).serialize()}),{enumerable:!0}),l&&d(he,"size",{get:function(){return L(this).entries.length},configurable:!0,enumerable:!0}),h(fe,I),r({global:!0,constructor:!0,forced:!u},{URLSearchParams:fe}),!u&&y(U)){var pe=s(V.has),ge=s(V.set),me=function(e){if(M(e)){var t,n=e.body;if(x(n)===I)return t=e.headers?new U(e.headers):new U,pe(t,"content-type")||ge(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),j(e,{body:N(0,S(n)),headers:N(0,t)})}return e};if(y(R)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return R(e,arguments.length>1?me(arguments[1]):{})}}),y(F)){var ye=function(e){return m(this,B),new F(e,arguments.length>1?me(arguments[1]):{})};B.constructor=ye,ye.prototype=B,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ye})}}e.exports={URLSearchParams:fe,getState:L}},6028:(e,t,n)=>{"use strict";n(1170)},9610:(e,t,n)=>{"use strict";n(1192);var r,i=n(4538),o=n(304),a=n(9972),s=n(5623),l=n(7708),u=n(9956),c=n(8292),d=n(9766),f=n(6971),h=n(9693),p=n(9305),g=n(6632),m=n(8604),y=n(2915).codeAt,v=n(8505),b=n(5827),x=n(1347),w=n(4576),M=n(1170),S=n(4481),j=S.set,N=S.getterFor("URL"),C=M.URLSearchParams,A=M.getState,T=s.URL,E=s.TypeError,D=s.parseInt,k=Math.floor,O=Math.pow,I=u("".charAt),_=u(/./.exec),P=u([].join),L=u(1..toString),z=u([].pop),R=u([].push),F=u("".replace),U=u([].shift),B=u("".split),V=u("".slice),Q=u("".toLowerCase),H=u([].unshift),Y="Invalid scheme",W="Invalid host",G="Invalid port",q=/[a-z]/i,Z=/[\d+-.a-z]/i,K=/\d/,X=/^0x/i,$=/^[0-7]+$/,J=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,re=/^[\u0000-\u0020]+/,ie=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,oe=/[\t\n\r]/g,ae=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)H(t,e%256),e=k(e/256);return P(t,".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(t=r,n=i),t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=L(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},se={},le=p({},se,{" ":1,'"':1,"<":1,">":1,"`":1}),ue=p({},le,{"#":1,"?":1,"{":1,"}":1}),ce=p({},ue,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),de=function(e,t){var n=y(e,0);return n>32&&n<127&&!h(t,e)?e:encodeURIComponent(e)},fe={ftp:21,file:null,http:80,https:443,ws:80,wss:443},he=function(e,t){var n;return 2===e.length&&_(q,I(e,0))&&(":"===(n=I(e,1))||!t&&"|"===n)},pe=function(e){var t;return e.length>1&&he(V(e,0,2))&&(2===e.length||"/"===(t=I(e,2))||"\\"===t||"?"===t||"#"===t)},ge=function(e){return"."===e||"%2e"===Q(e)},me={},ye={},ve={},be={},xe={},we={},Me={},Se={},je={},Ne={},Ce={},Ae={},Te={},Ee={},De={},ke={},Oe={},Ie={},_e={},Pe={},Le={},ze=function(e,t,n){var r,i,o,a=b(e);if(t){if(i=this.parse(a))throw new E(i);this.searchParams=null}else{if(void 0!==n&&(r=new ze(n,!0)),i=this.parse(a,null,r))throw new E(i);(o=A(new C)).bindURL(this),this.searchParams=o}};ze.prototype={type:"URL",parse:function(e,t,n){var i,o,a,s,l,u=this,c=t||me,d=0,f="",p=!1,y=!1,v=!1;for(e=b(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=F(e,re,""),e=F(e,ie,"$1")),e=F(e,oe,""),i=g(e);d<=i.length;){switch(o=i[d],c){case me:if(!o||!_(q,o)){if(t)return Y;c=ve;continue}f+=Q(o),c=ye;break;case ye:if(o&&(_(Z,o)||"+"===o||"-"===o||"."===o))f+=Q(o);else{if(":"!==o){if(t)return Y;f="",c=ve,d=0;continue}if(t&&(u.isSpecial()!==h(fe,f)||"file"===f&&(u.includesCredentials()||null!==u.port)||"file"===u.scheme&&!u.host))return;if(u.scheme=f,t)return void(u.isSpecial()&&fe[u.scheme]===u.port&&(u.port=null));f="","file"===u.scheme?c=Ee:u.isSpecial()&&n&&n.scheme===u.scheme?c=be:u.isSpecial()?c=Se:"/"===i[d+1]?(c=xe,d++):(u.cannotBeABaseURL=!0,R(u.path,""),c=_e)}break;case ve:if(!n||n.cannotBeABaseURL&&"#"!==o)return Y;if(n.cannotBeABaseURL&&"#"===o){u.scheme=n.scheme,u.path=m(n.path),u.query=n.query,u.fragment="",u.cannotBeABaseURL=!0,c=Le;break}c="file"===n.scheme?Ee:we;continue;case be:if("/"!==o||"/"!==i[d+1]){c=we;continue}c=je,d++;break;case xe:if("/"===o){c=Ne;break}c=Ie;continue;case we:if(u.scheme=n.scheme,o===r)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=m(n.path),u.query=n.query;else if("/"===o||"\\"===o&&u.isSpecial())c=Me;else if("?"===o)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=m(n.path),u.query="",c=Pe;else{if("#"!==o){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=m(n.path),u.path.length--,c=Ie;continue}u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=m(n.path),u.query=n.query,u.fragment="",c=Le}break;case Me:if(!u.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,c=Ie;continue}c=Ne}else c=je;break;case Se:if(c=je,"/"!==o||"/"!==I(f,d+1))continue;d++;break;case je:if("/"!==o&&"\\"!==o){c=Ne;continue}break;case Ne:if("@"===o){p&&(f="%40"+f),p=!0,a=g(f);for(var x=0;x<a.length;x++){var w=a[x];if(":"!==w||v){var M=de(w,ce);v?u.password+=M:u.username+=M}else v=!0}f=""}else if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()){if(p&&""===f)return"Invalid authority";d-=g(f).length+1,f="",c=Ce}else f+=o;break;case Ce:case Ae:if(t&&"file"===u.scheme){c=ke;continue}if(":"!==o||y){if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()){if(u.isSpecial()&&""===f)return W;if(t&&""===f&&(u.includesCredentials()||null!==u.port))return;if(s=u.parseHost(f))return s;if(f="",c=Oe,t)return;continue}"["===o?y=!0:"]"===o&&(y=!1),f+=o}else{if(""===f)return W;if(s=u.parseHost(f))return s;if(f="",c=Te,t===Ae)return}break;case Te:if(!_(K,o)){if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()||t){if(""!==f){var S=D(f,10);if(S>65535)return G;u.port=u.isSpecial()&&S===fe[u.scheme]?null:S,f=""}if(t)return;c=Oe;continue}return G}f+=o;break;case Ee:if(u.scheme="file","/"===o||"\\"===o)c=De;else{if(!n||"file"!==n.scheme){c=Ie;continue}switch(o){case r:u.host=n.host,u.path=m(n.path),u.query=n.query;break;case"?":u.host=n.host,u.path=m(n.path),u.query="",c=Pe;break;case"#":u.host=n.host,u.path=m(n.path),u.query=n.query,u.fragment="",c=Le;break;default:pe(P(m(i,d),""))||(u.host=n.host,u.path=m(n.path),u.shortenPath()),c=Ie;continue}}break;case De:if("/"===o||"\\"===o){c=ke;break}n&&"file"===n.scheme&&!pe(P(m(i,d),""))&&(he(n.path[0],!0)?R(u.path,n.path[0]):u.host=n.host),c=Ie;continue;case ke:if(o===r||"/"===o||"\\"===o||"?"===o||"#"===o){if(!t&&he(f))c=Ie;else if(""===f){if(u.host="",t)return;c=Oe}else{if(s=u.parseHost(f))return s;if("localhost"===u.host&&(u.host=""),t)return;f="",c=Oe}continue}f+=o;break;case Oe:if(u.isSpecial()){if(c=Ie,"/"!==o&&"\\"!==o)continue}else if(t||"?"!==o)if(t||"#"!==o){if(o!==r&&(c=Ie,"/"!==o))continue}else u.fragment="",c=Le;else u.query="",c=Pe;break;case Ie:if(o===r||"/"===o||"\\"===o&&u.isSpecial()||!t&&("?"===o||"#"===o)){if(".."===(l=Q(l=f))||"%2e."===l||".%2e"===l||"%2e%2e"===l?(u.shortenPath(),"/"===o||"\\"===o&&u.isSpecial()||R(u.path,"")):ge(f)?"/"===o||"\\"===o&&u.isSpecial()||R(u.path,""):("file"===u.scheme&&!u.path.length&&he(f)&&(u.host&&(u.host=""),f=I(f,0)+":"),R(u.path,f)),f="","file"===u.scheme&&(o===r||"?"===o||"#"===o))for(;u.path.length>1&&""===u.path[0];)U(u.path);"?"===o?(u.query="",c=Pe):"#"===o&&(u.fragment="",c=Le)}else f+=de(o,ue);break;case _e:"?"===o?(u.query="",c=Pe):"#"===o?(u.fragment="",c=Le):o!==r&&(u.path[0]+=de(o,se));break;case Pe:t||"#"!==o?o!==r&&("'"===o&&u.isSpecial()?u.query+="%27":u.query+="#"===o?"%23":de(o,se)):(u.fragment="",c=Le);break;case Le:o!==r&&(u.fragment+=de(o,le))}d++}},parseHost:function(e){var t,n,r;if("["===I(e,0)){if("]"!==I(e,e.length-1))return W;if(t=function(e){var t,n,r,i,o,a,s,l=[0,0,0,0,0,0,0,0],u=0,c=null,d=0,f=function(){return I(e,d)};if(":"===f()){if(":"!==I(e,1))return;d+=2,c=++u}for(;f();){if(8===u)return;if(":"!==f()){for(t=n=0;n<4&&_(ee,f());)t=16*t+D(f(),16),d++,n++;if("."===f()){if(0===n)return;if(d-=n,u>6)return;for(r=0;f();){if(i=null,r>0){if(!("."===f()&&r<4))return;d++}if(!_(K,f()))return;for(;_(K,f());){if(o=D(f(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;d++}l[u]=256*l[u]+i,2!==++r&&4!==r||u++}if(4!==r)return;break}if(":"===f()){if(d++,!f())return}else if(f())return;l[u++]=t}else{if(null!==c)return;d++,c=++u}}if(null!==c)for(a=u-c,u=7;0!==u&&a>0;)s=l[u],l[u--]=l[c+a-1],l[c+--a]=s;else if(8!==u)return;return l}(V(e,1,-1)),!t)return W;this.host=t}else if(this.isSpecial()){if(e=v(e),_(te,e))return W;if(t=function(e){var t,n,r,i,o,a,s,l=B(e,".");if(l.length&&""===l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(n=[],r=0;r<t;r++){if(""===(i=l[r]))return e;if(o=10,i.length>1&&"0"===I(i,0)&&(o=_(X,i)?16:8,i=V(i,8===o?1:2)),""===i)a=0;else{if(!_(10===o?J:8===o?$:ee,i))return e;a=D(i,o)}R(n,a)}for(r=0;r<t;r++)if(a=n[r],r===t-1){if(a>=O(256,5-t))return null}else if(a>255)return null;for(s=z(n),r=0;r<n.length;r++)s+=n[r]*O(256,3-r);return s}(e),null===t)return W;this.host=t}else{if(_(ne,e))return W;for(t="",n=g(e),r=0;r<n.length;r++)t+=de(n[r],se);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return h(fe,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&he(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,l=e.fragment,u=t+":";return null!==i?(u+="//",e.includesCredentials()&&(u+=n+(r?":"+r:"")+"@"),u+=ae(i),null!==o&&(u+=":"+o)):"file"===t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+P(a,"/"):"",null!==s&&(u+="?"+s),null!==l&&(u+="#"+l),u},setHref:function(e){var t=this.parse(e);if(t)throw new E(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new Re(e.path[0]).origin}catch(n){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+ae(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(b(e)+":",me)},getUsername:function(){return this.username},setUsername:function(e){var t=g(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=de(t[n],ce)}},getPassword:function(){return this.password},setPassword:function(e){var t=g(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=de(t[n],ce)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ae(e):ae(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Ce)},getHostname:function(){var e=this.host;return null===e?"":ae(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Ae)},getPort:function(){var e=this.port;return null===e?"":b(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=b(e))?this.port=null:this.parse(e,Te))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+P(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Oe))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=b(e))?this.query=null:("?"===I(e,0)&&(e=V(e,1)),this.query="",this.parse(e,Pe)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=b(e))?("#"===I(e,0)&&(e=V(e,1)),this.fragment="",this.parse(e,Le)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Re=function(e){var t=f(this,Fe),n=w(arguments.length,1)>1?arguments[1]:void 0,r=j(t,new ze(e,!1,n));o||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},Fe=Re.prototype,Ue=function(e,t){return{get:function(){return N(this)[e]()},set:t&&function(e){return N(this)[t](e)},configurable:!0,enumerable:!0}};if(o&&(d(Fe,"href",Ue("serialize","setHref")),d(Fe,"origin",Ue("getOrigin")),d(Fe,"protocol",Ue("getProtocol","setProtocol")),d(Fe,"username",Ue("getUsername","setUsername")),d(Fe,"password",Ue("getPassword","setPassword")),d(Fe,"host",Ue("getHost","setHost")),d(Fe,"hostname",Ue("getHostname","setHostname")),d(Fe,"port",Ue("getPort","setPort")),d(Fe,"pathname",Ue("getPathname","setPathname")),d(Fe,"search",Ue("getSearch","setSearch")),d(Fe,"searchParams",Ue("getSearchParams")),d(Fe,"hash",Ue("getHash","setHash"))),c(Fe,"toJSON",(function(){return N(this).serialize()}),{enumerable:!0}),c(Fe,"toString",(function(){return N(this).serialize()}),{enumerable:!0}),T){var Be=T.createObjectURL,Ve=T.revokeObjectURL;Be&&c(Re,"createObjectURL",l(Be,T)),Ve&&c(Re,"revokeObjectURL",l(Ve,T))}x(Re,"URL"),i({global:!0,constructor:!0,forced:!a,sham:!o},{URL:Re})},5332:(e,t,n)=>{"use strict";n(9610)},8764:(e,t,n)=>{"use strict";var r=n(4538),i=n(6265);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},6284:(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);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},2474:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},5152:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},414:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1369);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,r.A)(i.key),i)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},4586:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1369);function i(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},9575:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},9140:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1087);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.A)(e,t)}},9850:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7502);function i(e,t){if(null==e)return{};var n,i,o=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},7502:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},1087:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},2061:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7985);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||(0,r.A)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},4619:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6284);var i=n(7985);function o(e){return function(e){if(Array.isArray(e))return(0,r.A)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,i.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.")}()}},1369:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7545);function i(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=(0,r.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},7545:(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},r(e)}n.d(t,{A:()=>r})},7985:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6284);function i(e,t){if(e){if("string"===typeof e)return(0,r.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},8983:e=>{"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"===typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"===typeof r.then)return r}var o=Object.create(null);n.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&i&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(o,a),o}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="/",(()=>{"use strict";n(9686),n(1809);var e=n(3620),t=n(810),r=n(652),i=t,o=Symbol.for("react-redux-context"),a="undefined"!==typeof globalThis?globalThis:{};function s(){var e;if(!i.createContext)return{};const t=null!==(e=a[o])&&void 0!==e?e:a[o]=new Map;let n=t.get(i.createContext);return n||(n=i.createContext(null),t.set(i.createContext,n)),n}var l=s(),u=()=>{throw new Error("uSES not initialized!")};function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;return function(){return i.useContext(e)}}var d=c(),f=u,h=(e,t)=>e===t;function p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;const t=e===l?d:c(e),n=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{equalityFn:r=h,devModeChecks:o={}}="function"===typeof n?{equalityFn:n}:n;const{store:a,subscription:s,getServerState:l,stabilityCheck:u,identityFunctionCheck:c}=t(),d=(i.useRef(!0),i.useCallback({[e.name]:t=>e(t)}[e.name],[e,u,o.stabilityCheck])),p=f(s.addNestedSub,a.getState,l||a.getState,d,r);return i.useDebugValue(p),p};return Object.assign(n,{withTypes:()=>n}),n}var g=p();Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.client.reference");function m(e){e()}var y={notify(){},get:()=>[]};function v(e,t){let n,r=y,i=0,o=!1;function a(){u.onStateChange&&u.onStateChange()}function s(){i++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){m((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){r&&null!==e&&(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}())}function l(){i--,n&&0===i&&(n(),n=void 0,r.clear(),r=y)}const u={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,s())},tryUnsubscribe:function(){o&&(o=!1,l())},getListeners:()=>r};return u}var b=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),x="undefined"!==typeof navigator&&"ReactNative"===navigator.product,w=b||x?i.useLayoutEffect:i.useEffect;Object.defineProperty,Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;var M=function(e){let{store:t,context:n,children:r,serverState:o,stabilityCheck:a="once",identityFunctionCheck:s="once"}=e;const u=i.useMemo((()=>{const e=v(t);return{store:t,subscription:e,getServerState:o?()=>o:void 0,stabilityCheck:a,identityFunctionCheck:s}}),[t,o,a,s]),c=i.useMemo((()=>t.getState()),[t]);w((()=>{const{subscription:e}=u;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[u,c]);const d=n||l;return i.createElement(d.Provider,{value:u},r)};function S(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;const t=e===l?d:c(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var j=S();function N(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;const t=e===l?j:S(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var C,A=N();C=r.useSyncExternalStoreWithSelector,f=C,(e=>{e})(t.useSyncExternalStore);var T=n(9575),E=n(3789),D=n(5341),k=n(4755);const O=function(e){var n=e.children,r=e.theme,i=(0,D.A)(),o=t.useMemo((function(){var e=null===i?r:function(e,t){return"function"===typeof t?t(e):(0,T.A)({},e,t)}(i,r);return null!=e&&(e[k.A]=null!==i),e}),[r,i]);return t.createElement(E.A.Provider,{value:o},n)};var I=n(9140),_=n(5754),P=n.n(_);function L(e){return"/"===e.charAt(0)}function z(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}const R=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],o=e&&L(e),a=t&&L(t),s=o||a;if(e&&L(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var l=i[i.length-1];n="."===l||".."===l||""===l}else n=!1;for(var u=0,c=i.length;c>=0;c--){var d=i[c];"."===d?z(i,c):".."===d?(z(i,c),u++):u&&(z(i,c),u--)}if(!s)for(;u--;u)i.unshift("..");!s||""===i[0]||i[0]&&L(i[0])||i.unshift("");var f=i.join("/");return n&&"/"!==f.substr(-1)&&(f+="/"),f};var F=!0,U="Invariant failed";function B(e,t){if(!e){if(F)throw new Error(U);var n="function"===typeof t?t():t,r=n?"".concat(U,": ").concat(n):U;throw new Error(r)}}function V(e){return"/"===e.charAt(0)?e:"/"+e}function Q(e){return"/"===e.charAt(0)?e.substr(1):e}function H(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function Y(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function W(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function G(e,t,n,r){var i;"string"===typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),i.state=t):(void 0===(i=(0,T.A)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(qi){throw qi instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):qi}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=R(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function q(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"===typeof e?e(t,n):e;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var Z=!("undefined"===typeof window||!window.document||!window.document.createElement);function K(e,t){t(window.confirm(e))}var X="popstate",J="hashchange";function ee(){try{return window.history.state||{}}catch(qi){return{}}}function te(e){void 0===e&&(e={}),Z||B(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),r=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,o=i.forceRefresh,a=void 0!==o&&o,s=i.getUserConfirmation,l=void 0===s?K:s,u=i.keyLength,c=void 0===u?6:u,d=e.basename?Y(V(e.basename)):"";function f(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return d&&(o=H(o,d)),G(o,r,n)}function h(){return Math.random().toString(36).substr(2,c)}var p=q();function g(e){(0,T.A)(A,e),A.length=t.length,p.notifyListeners(A.location,A.action)}function m(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||b(f(e.state))}function y(){b(f(ee()))}var v=!1;function b(e){if(v)v=!1,g();else{p.confirmTransitionTo(e,"POP",l,(function(t){t?g({action:"POP",location:e}):function(e){var t=A.location,n=w.indexOf(t.key);-1===n&&(n=0);var r=w.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(v=!0,S(i))}(e)}))}}var x=f(ee()),w=[x.key];function M(e){return d+W(e)}function S(e){t.go(e)}var j=0;function N(e){1===(j+=e)&&1===e?(window.addEventListener(X,m),r&&window.addEventListener(J,y)):0===j&&(window.removeEventListener(X,m),r&&window.removeEventListener(J,y))}var C=!1;var A={length:t.length,action:"POP",location:x,createHref:M,push:function(e,r){var i="PUSH",o=G(e,r,h(),A.location);p.confirmTransitionTo(o,i,l,(function(e){if(e){var r=M(o),s=o.key,l=o.state;if(n)if(t.pushState({key:s,state:l},null,r),a)window.location.href=r;else{var u=w.indexOf(A.location.key),c=w.slice(0,u+1);c.push(o.key),w=c,g({action:i,location:o})}else window.location.href=r}}))},replace:function(e,r){var i="REPLACE",o=G(e,r,h(),A.location);p.confirmTransitionTo(o,i,l,(function(e){if(e){var r=M(o),s=o.key,l=o.state;if(n)if(t.replaceState({key:s,state:l},null,r),a)window.location.replace(r);else{var u=w.indexOf(A.location.key);-1!==u&&(w[u]=o.key),g({action:i,location:o})}else window.location.replace(r)}}))},go:S,goBack:function(){S(-1)},goForward:function(){S(1)},block:function(e){void 0===e&&(e=!1);var t=p.setPrompt(e);return C||(N(1),C=!0),function(){return C&&(C=!1,N(-1)),t()}},listen:function(e){var t=p.appendListener(e);return N(1),function(){N(-1),t()}}};return A}var ne="hashchange",re={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+Q(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:Q,decodePath:V},slash:{encodePath:V,decodePath:V}};function ie(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function oe(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function ae(e){window.location.replace(ie(window.location.href)+"#"+e)}function se(e){void 0===e&&{},Z||B(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,i=void 0===r?K:r,o=n.hashType,a=void 0===o?"slash":o,s=e.basename?Y(V(e.basename)):"",l=re[a],u=l.encodePath,c=l.decodePath;function d(){var e=c(oe());return s&&H(e,s),G(e)}var f=q();function h(e){(0,T.A)(N,e),N.length=t.length,f.notifyListeners(N.location,N.action)}var p=!1,g=null;function m(){var e=oe(),t=u(e);if(e!==t)ae(t);else{var n=d(),r=N.location;if(!p&&function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash}(r,n))return;if(g===W(n))return;null,function(e){if(p)!1,h();else{var t="POP";f.confirmTransitionTo(e,t,i,(function(n){n?h({action:t,location:e}):function(e){var t=N.location,n=x.lastIndexOf(W(t));-1===n&&0;var r=x.lastIndexOf(W(e));-1===r&&0;var i=n-r;i&&(!0,w(i))}(e)}))}}(n)}}var y=oe(),v=u(y);y!==v&&ae(v);var b=d(),x=[W(b)];function w(e){t.go(e)}var M=0;function S(e){1===(M+=e)&&1===e?window.addEventListener(ne,m):0===M&&window.removeEventListener(ne,m)}var j=!1;var N={length:t.length,action:"POP",location:b,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&ie(window.location.href),n+"#"+u(s+W(e))},push:function(e,t){var n="PUSH",r=G(e,void 0,void 0,N.location);f.confirmTransitionTo(r,n,i,(function(e){if(e){var t=W(r),i=u(s+t);if(oe()!==i){t,function(e){window.location.hash=e}(i);var o=x.lastIndexOf(W(N.location)),a=x.slice(0,o+1);a.push(t),a,h({action:n,location:r})}else h()}}))},replace:function(e,t){var n="REPLACE",r=G(e,void 0,void 0,N.location);f.confirmTransitionTo(r,n,i,(function(e){if(e){var t=W(r),i=u(s+t);oe()!==i&&(t,ae(i));var o=x.indexOf(W(N.location));-1!==o&&(x[o]=t),h({action:n,location:r})}}))},go:w,goBack:function(){w(-1)},goForward:function(){w(1)},block:function(e){void 0===e&&!1;var t=f.setPrompt(e);return j||(S(1),!0),function(){return j&&(!1,S(-1)),t()}},listen:function(e){var t=f.appendListener(e);return S(1),function(){S(-1),t()}}};return N}function le(e,t,n){return Math.min(Math.max(e,t),n)}var ue=n(2911),ce=n.n(ue),de=(n(4665),n(7502)),fe=(n(2592),1073741823),he="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{};var pe=t.createContext||function(e,n){var r,i,o="__create-react-context-"+function(){var e="__global_unique_id__";return he[e]=(he[e]||0)+1}()+"__",a=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).emitter=function(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}(t.props.value),t}(0,I.A)(t,e);var r=t.prototype;return r.getChildContext=function(){var e;return(e={})[o]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var t,r=this.props.value,i=e.value;!function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}(r,i)?(t="function"===typeof n?n(r,i):fe,0!==(t|=0)&&this.emitter.set(e.value,t)):t=0}},r.render=function(){return this.props.children},t}(t.Component);a.childContextTypes=((r={})[o]=P().object.isRequired,r);var s=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,I.A)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?fe:t},r.componentDidMount=function(){this.context[o]&&this.context[o].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?fe:e},r.componentWillUnmount=function(){this.context[o]&&this.context[o].off(this.onUpdate)},r.getValue=function(){return this.context[o]?this.context[o].get():e},r.render=function(){return function(e){return Array.isArray(e)?e[0]:e}(this.props.children)(this.state.value)},n}(t.Component);return s.contextTypes=((i={})[o]=P().object,i),{Provider:a,Consumer:s}},ge=function(e){var t=pe();return t.displayName=e,t},me=ge("Router-History"),ye=ge("Router"),ve=function(e){function n(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,I.A)(n,e),n.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var r=n.prototype;return r.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},r.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},r.render=function(){return t.createElement(ye.Provider,{value:{history:this.props.history,location:this.state.location,match:n.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},t.createElement(me.Provider,{children:this.props.children||null,value:this.props.history}))},n}(t.Component);t.Component;t.Component;var be={},xe=1e4,we=0;function Me(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,s=void 0!==a&&a,l=n.sensitive,u=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=be[n]||(be[n]={});if(r[e])return r[e];var i=[],o={regexp:ce()(e,i,t),keys:i};return we<xe&&(r[e]=o,we++),o}(n,{end:o,strict:s,sensitive:u}),i=r.regexp,a=r.keys,l=i.exec(e);if(!l)return null;var c=l[0],d=l.slice(1),f=e===c;return o&&!f?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:f,params:a.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var Se=function(e){function n(){return e.apply(this,arguments)||this}return(0,I.A)(n,e),n.prototype.render=function(){var e=this;return t.createElement(ye.Consumer,null,(function(n){n||B(!1);var r=e.props.location||n.location,i=e.props.computedMatch?e.props.computedMatch:e.props.path?Me(r.pathname,e.props):n.match,o=(0,T.A)({},n,{location:r,match:i}),a=e.props,s=a.children,l=a.component,u=a.render;return Array.isArray(s)&&function(e){return 0===t.Children.count(e)}(s)&&(s=null),t.createElement(ye.Provider,{value:o},o.match?s?"function"===typeof s?s(o):s:l?t.createElement(l,o):u?u(o):null:"function"===typeof s?s(o):null)}))},n}(t.Component);function je(e){return"/"===e.charAt(0)?e:"/"+e}function Ne(e,t){if(!e)return t;var n=je(e);return 0!==t.pathname.indexOf(n)?t:(0,T.A)({},t,{pathname:t.pathname.substr(n.length)})}function Ce(e){return"string"===typeof e?e:W(e)}function Ae(e){return function(){B(!1)}}function Te(){}t.Component;var Ee=function(e){function n(){return e.apply(this,arguments)||this}return(0,I.A)(n,e),n.prototype.render=function(){var e=this;return t.createElement(ye.Consumer,null,(function(n){n||B(!1);var r,i,o=e.props.location||n.location;return t.Children.forEach(e.props.children,(function(e){if(null==i&&t.isValidElement(e)){r=e;var a=e.props.path||e.props.from;i=a?Me(o.pathname,(0,T.A)({},e.props,{path:a})):n.match}})),i?t.cloneElement(r,{location:o,computedMatch:i}):null}))},n}(t.Component);var De=t.useContext;function ke(){return De(me)}function Oe(){return De(ye).location}var Ie=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=te(t.props),t}return(0,I.A)(n,e),n.prototype.render=function(){return t.createElement(ve,{history:this.history,children:this.props.children})},n}(t.Component);t.Component;var _e=function(e,t){return"function"===typeof e?e(t):e},Pe=function(e,t){return"string"===typeof e?G(e,null,null,t):e},Le=function(e){return e},ze=t.forwardRef;"undefined"===typeof ze&&(ze=Le);var Re=ze((function(e,n){var r=e.innerRef,i=e.navigate,o=e.onClick,a=(0,de.A)(e,["innerRef","navigate","onClick"]),s=a.target,l=(0,T.A)({},a,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||s&&"_self"!==s||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),i())}});return l.ref=Le!==ze&&n||r,t.createElement("a",l)}));var Fe=ze((function(e,n){var r=e.component,i=void 0===r?Re:r,o=e.replace,a=e.to,s=e.innerRef,l=(0,de.A)(e,["component","replace","to","innerRef"]);return t.createElement(ye.Consumer,null,(function(e){e||B(!1);var r=e.history,u=Pe(_e(a,e.location),e.location),c=u?r.createHref(u):"",d=(0,T.A)({},l,{href:c,navigate:function(){var t=_e(a,e.location),n=W(e.location)===W(Pe(t));(o||n?r.replace:r.push)(t)}});return Le!==ze?d.ref=n||s:d.innerRef=s,t.createElement(i,d)}))})),Ue=function(e){return e},Be=t.forwardRef;"undefined"===typeof Be&&(Be=Ue);var Ve=Be((function(e,n){var r=e["aria-current"],i=void 0===r?"page":r,o=e.activeClassName,a=void 0===o?"active":o,s=e.activeStyle,l=e.className,u=e.exact,c=e.isActive,d=e.location,f=e.sensitive,h=e.strict,p=e.style,g=e.to,m=e.innerRef,y=(0,de.A)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return t.createElement(ye.Consumer,null,(function(e){e||B(!1);var r=d||e.location,o=Pe(_e(g,r),r),v=o.pathname,b=v&&v.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),x=b?Me(r.pathname,{path:b,exact:u,sensitive:f,strict:h}):null,w=!!(c?c(x,r):x),M="function"===typeof l?l(w):l,S="function"===typeof p?p(w):p;w&&(M=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(M,a),S=(0,T.A)({},S,s));var j=(0,T.A)({"aria-current":w&&i||null,className:M,style:S,to:o},y);return Ue!==Be?j.ref=n||m:j.innerRef=m,t.createElement(Fe,j)}))})),Qe=n(514),He=n(4586),Ye=Symbol.for("immer-nothing"),We=Symbol.for("immer-draftable"),Ge=Symbol.for("immer-state");function qe(e){throw new Error("[Immer] minified error nr: ".concat(e,". Full error at: https://bit.ly/3cXEKWf"))}var Ze=Object.getPrototypeOf;function Ke(e){return!!e&&!!e[Ge]}function Xe(e){var t;return!!e&&(Je(e)||Array.isArray(e)||!!e[We]||!(null===(t=e.constructor)||void 0===t||!t[We])||it(e)||ot(e))}var $e=Object.prototype.constructor.toString();function Je(e){if(!e||"object"!==typeof e)return!1;const t=Ze(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===$e}function et(e,t){0===tt(e)?Reflect.ownKeys(e).forEach((n=>{t(n,e[n],e)})):e.forEach(((n,r)=>t(r,n,e)))}function tt(e){const t=e[Ge];return t?t.type_:Array.isArray(e)?1:it(e)?2:ot(e)?3:0}function nt(e,t){return 2===tt(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function rt(e,t,n){const r=tt(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function it(e){return e instanceof Map}function ot(e){return e instanceof Set}function at(e){return e.copy_||e.base_}function st(e,t){if(it(e))return new Map(e);if(ot(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Je(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[Ge];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Ze(e),t)}{const t=Ze(e);if(null!==t&&n)return{...e};const r=Object.create(t);return Object.assign(r,e)}}function lt(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return ct(e)||Ke(e)||!Xe(e)||(tt(e)>1&&(e.set=e.add=e.clear=e.delete=ut),Object.freeze(e),t&&Object.entries(e).forEach((e=>{let[t,n]=e;return lt(n,!0)}))),e}function ut(){qe(2)}function ct(e){return Object.isFrozen(e)}var dt,ft={};function ht(e){const t=ft[e];return t||qe(0),t}function pt(){return dt}function gt(e,t){t&&(ht("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function mt(e){yt(e),e.drafts_.forEach(bt),e.drafts_=null}function yt(e){e===dt&&(dt=e.parent_)}function vt(e){return dt={drafts_:[],parent_:dt,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function bt(e){const t=e[Ge];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function xt(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[Ge].modified_&&(mt(t),qe(4)),Xe(e)&&(e=wt(t,e),t.parent_||St(t,e)),t.patches_&&ht("Patches").generateReplacementPatches_(n[Ge].base_,e,t.patches_,t.inversePatches_)):e=wt(t,n,[]),mt(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Ye?e:void 0}function wt(e,t,n){if(ct(t))return t;const r=t[Ge];if(!r)return et(t,((i,o)=>Mt(e,r,t,i,o,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return St(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let i=t,o=!1;3===r.type_&&(i=new Set(t),t.clear(),o=!0),et(i,((i,a)=>Mt(e,r,t,i,a,n,o))),St(e,t,!1),n&&e.patches_&&ht("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Mt(e,t,n,r,i,o,a){if(Ke(i)){const a=wt(e,i,o&&t&&3!==t.type_&&!nt(t.assigned_,r)?o.concat(r):void 0);if(rt(n,r,a),!Ke(a))return;e.canAutoFreeze_=!1}else a&&n.add(i);if(Xe(i)&&!ct(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;wt(e,i),t&&t.scope_.parent_||"symbol"===typeof r||!Object.prototype.propertyIsEnumerable.call(n,r)||St(e,i)}}function St(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&lt(t,n)}var jt={get(e,t){if(t===Ge)return e;const n=at(e);if(!nt(n,t))return function(e,t,n){var r;const i=At(t,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!Xe(r)?r:r===Ct(e.base_,t)?(Et(e),e.copy_[t]=Dt(r,e)):r},has:(e,t)=>t in at(e),ownKeys:e=>Reflect.ownKeys(at(e)),set(e,t,n){const r=At(at(e),t);if(null!==r&&void 0!==r&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=Ct(at(e),t),i=null===r||void 0===r?void 0:r[Ge];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}(n,r)&&(void 0!==n||nt(e.base_,t)))return!0;Et(e),Tt(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==Ct(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Et(e),Tt(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=at(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){qe(11)},getPrototypeOf:e=>Ze(e.base_),setPrototypeOf(){qe(12)}},Nt={};function Ct(e,t){const n=e[Ge];return(n?at(n):e)[t]}function At(e,t){if(!(t in e))return;let n=Ze(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Ze(n)}}function Tt(e){e.modified_||(e.modified_=!0,e.parent_&&Tt(e.parent_))}function Et(e){e.copy_||(e.copy_=st(e.base_,e.scope_.immer_.useStrictShallowCopy_))}et(jt,((e,t)=>{Nt[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Nt.deleteProperty=function(e,t){return Nt.set.call(this,e,t,void 0)},Nt.set=function(e,t,n){return jt.set.call(this,e[0],t,n,e[0])};function Dt(e,t){const n=it(e)?ht("MapSet").proxyMap_(e,t):ot(e)?ht("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:pt(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=jt;n&&(i=[r],o=Nt);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}(e,t);return(t?t.scope_:pt()).drafts_.push(n),n}function kt(e){return Ke(e)||qe(10),Ot(e)}function Ot(e){if(!Xe(e)||ct(e))return e;const t=e[Ge];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=st(e,t.scope_.immer_.useStrictShallowCopy_)}else n=st(e,!0);return et(n,((e,t)=>{rt(n,e,Ot(t))})),t&&(t.finalized_=!1),n}var It=new class{constructor(e){var t=this;this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"===typeof e&&"function"!==typeof t){const n=t;t=e;const r=this;return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n;for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return r.produce(e,(e=>t.call(this,e,...o)))}}let r;if("function"!==typeof t&&qe(6),void 0!==n&&"function"!==typeof n&&qe(7),Xe(e)){const i=vt(this),o=Dt(e,void 0);let a=!0;try{r=t(o),a=!1}finally{a?mt(i):yt(i)}return gt(i,n),xt(r,i)}if(!e||"object"!==typeof e){if(r=t(e),void 0===r&&(r=e),r===Ye&&(r=void 0),this.autoFreeze_&&lt(r,!0),n){const t=[],i=[];ht("Patches").generateReplacementPatches_(e,r,t,i),n(t,i)}return r}qe(1)},this.produceWithPatches=(e,n)=>{if("function"===typeof e)return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return t.produceWithPatches(n,(t=>e(t,...i)))};let r,i;const o=this.produce(e,n,((e,t)=>{r=e,i=t}));return[o,r,i]},"boolean"===typeof(null===e||void 0===e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),"boolean"===typeof(null===e||void 0===e?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Xe(e)||qe(8),Ke(e)&&(e=kt(e));const t=vt(this),n=Dt(e,void 0);return n[Ge].isManual_=!0,yt(t),n}finishDraft(e,t){const n=e&&e[Ge];n&&n.isManual_||qe(9);const{scope_:r}=n;return gt(r,t),xt(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=ht("Patches").applyPatches_;return Ke(e)?r(e,t):this.produce(e,(e=>r(e,t)))}},_t=It.produce;It.produceWithPatches.bind(It),It.setAutoFreeze.bind(It),It.setUseStrictShallowCopy.bind(It),It.applyPatches.bind(It),It.createDraft.bind(It),It.finishDraft.bind(It);function Pt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"expected a function, instead received ".concat(typeof e);if("function"!==typeof e)throw new TypeError(t)}var Lt=e=>Array.isArray(e)?e:[e];function zt(e){const t=Array.isArray(e[0])?e[0]:e;return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"expected all items to be functions, instead received the following types: ";if(!e.every((e=>"function"===typeof e))){const n=e.map((e=>"function"===typeof e?"function ".concat(e.name||"unnamed","()"):typeof e)).join(", ");throw new TypeError("".concat(t,"[").concat(n,"]"))}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}Symbol(),Object.getPrototypeOf({});var Rt="undefined"!==typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}},Ft=0,Ut=1;function Bt(){return{s:Ft,v:void 0,o:null,p:null}}function Vt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Bt();const{resultEqualityCheck:r}=t;let i,o=0;function a(){let t=n;const{length:a}=arguments;for(let e=0,n=a;e<n;e++){const n=arguments[e];if("function"===typeof n||"object"===typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const r=e.get(n);void 0===r?(t=Bt(),e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);const r=e.get(n);void 0===r?(t=Bt(),e.set(n,t)):t=r}}const s=t;let l;if(t.s===Ut?l=t.v:(l=e.apply(null,arguments),o++),s.s=Ut,r){var u,c,d;const e=null!==(u=null===(c=i)||void 0===c||null===(d=c.deref)||void 0===d?void 0:d.call(c))&&void 0!==u?u:i;null!=e&&r(e,l)&&(l=e,0!==o&&o--);i="object"===typeof l&&null!==l||"function"===typeof l?new Rt(l):l}return s.v=l,l}return a.clearCache=()=>{n=Bt(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function Qt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i="function"===typeof e?{memoize:e,memoizeOptions:n}:e,o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r,o=0,a=0,s={},l=t.pop();"object"===typeof l&&(s=l,l=t.pop()),Pt(l,"createSelector expects an output function after the inputs, but received: [".concat(typeof l,"]"));const u={...i,...s},{memoize:c,memoizeOptions:d=[],argsMemoize:f=Vt,argsMemoizeOptions:h=[],devModeChecks:p={}}=u,g=Lt(d),m=Lt(h),y=zt(t),v=c((function(){return o++,l.apply(null,arguments)}),...g);const b=f((function(){a++;const e=function(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}(y,arguments);return r=v.apply(null,e),r}),...m);return Object.assign(b,{resultFunc:l,memoizedResultFunc:v,dependencies:y,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>r,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:c,argsMemoize:f})};return Object.assign(o,{withTypes:()=>o}),o}var Ht=Qt(Vt),Yt=Object.assign((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ht;!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"expected an object, instead received ".concat(typeof e);if("object"!==typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ".concat(typeof e));const n=Object.keys(e),r=n.map((t=>e[t])),i=t(r,(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})}));return i}),{withTypes:()=>Yt});function Wt(e){return"Minified Redux error #".concat(e,"; visit https://redux.js.org/Errors?code=").concat(e," for the full message or use the non-minified dev environment for full errors. ")}var Gt=(()=>"function"===typeof Symbol&&Symbol.observable||"@@observable")(),qt=()=>Math.random().toString(36).substring(7).split("").join("."),Zt={INIT:"@@redux/INIT".concat(qt()),REPLACE:"@@redux/REPLACE".concat(qt()),PROBE_UNKNOWN_ACTION:()=>"@@redux/PROBE_UNKNOWN_ACTION".concat(qt())};function Kt(e){if("object"!==typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function Xt(e,t,n){if("function"!==typeof e)throw new Error(Wt(2));if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(Wt(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(Wt(1));return n(Xt)(e,t)}let r=e,i=t,o=new Map,a=o,s=0,l=!1;function u(){a===o&&(a=new Map,o.forEach(((e,t)=>{a.set(t,e)})))}function c(){if(l)throw new Error(Wt(3));return i}function d(e){if("function"!==typeof e)throw new Error(Wt(4));if(l)throw new Error(Wt(5));let t=!0;u();const n=s++;return a.set(n,e),function(){if(t){if(l)throw new Error(Wt(6));t=!1,u(),a.delete(n),o=null}}}function f(e){if(!Kt(e))throw new Error(Wt(7));if("undefined"===typeof e.type)throw new Error(Wt(8));if("string"!==typeof e.type)throw new Error(Wt(17));if(l)throw new Error(Wt(9));try{l=!0,i=r(i,e)}finally{l=!1}return(o=a).forEach((e=>{e()})),e}f({type:Zt.INIT});return{dispatch:f,subscribe:d,getState:c,replaceReducer:function(e){if("function"!==typeof e)throw new Error(Wt(10));r=e,f({type:Zt.REPLACE})},[Gt]:function(){const e=d;return{subscribe(t){if("object"!==typeof t||null===t)throw new Error(Wt(11));function n(){const e=t;e.next&&e.next(c())}n();return{unsubscribe:e(n)}},[Gt](){return this}}}}}function $t(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const r=t[o];0,"function"===typeof e[r]&&(n[r]=e[r])}const r=Object.keys(n);let i;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if("undefined"===typeof n(void 0,{type:Zt.INIT}))throw new Error(Wt(12));if("undefined"===typeof n(void 0,{type:Zt.PROBE_UNKNOWN_ACTION()}))throw new Error(Wt(13))}))}(n)}catch(qi){i=qi}return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(i)throw i;let o=!1;const a={};for(let i=0;i<r.length;i++){const s=r[i],l=n[s],u=e[s],c=l(u,t);if("undefined"===typeof c){t&&t.type;throw new Error(Wt(14))}a[s]=c,o=o||c!==u}return o=o||r.length!==Object.keys(e).length,o?a:e}}function Jt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?e=>e:1===t.length?t[0]:t.reduce(((e,t)=>function(){return e(t(...arguments))}))}function en(e){return t=>{let{dispatch:n,getState:r}=t;return t=>i=>"function"===typeof i?i(n,r,e):t(i)}}var tn=en(),nn=en,rn=(function(){const e=Qt(...arguments),t=Object.assign((function(){const t=e(...arguments),n=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t(Ke(e)?kt(e):e,...r)};return Object.assign(n,t),n}),{withTypes:()=>t})}(Vt),"undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?Jt:Jt.apply(null,arguments)});"undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function on(e,t){function n(){if(t){let n=t(...arguments);if(!n)throw new Error(kn(0));return{type:e,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:e,payload:arguments.length<=0?void 0:arguments[0]}}return n.toString=()=>"".concat(e),n.type=e,n.match=t=>function(e){return Kt(e)&&"type"in e&&"string"===typeof e.type}(t)&&t.type===e,n}var an=class e extends Array{constructor(){super(...arguments),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return super.concat.apply(this,t)}prepend(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return 1===n.length&&Array.isArray(n[0])?new e(...n[0].concat(this)):new e(...n.concat(this))}};function sn(e){return Xe(e)?_t(e,(()=>{})):e}function ln(e,t,n){if(e.has(t)){let r=e.get(t);return n.update&&(r=n.update(r,t,e),e.set(t,r)),r}if(!n.insert)throw new Error(kn(10));const r=n.insert(t,e);return e.set(t,r),r}var un="RTK_autoBatch",cn=e=>t=>{setTimeout(t,e)},dn="undefined"!==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:cn(10),fn=e=>function(t){const{autoBatch:n=!0}=null!==t&&void 0!==t?t:{};let r=new an(e);return n&&r.push(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"raf"};return t=>function(){const n=t(...arguments);let r=!0,i=!1,o=!1;const a=new Set,s="tick"===e.type?queueMicrotask:"raf"===e.type?dn:"callback"===e.type?e.queueNotification:cn(e.timeout),l=()=>{o=!1,i&&(i=!1,a.forEach((e=>e())))};return Object.assign({},n,{subscribe(e){const t=n.subscribe((()=>r&&e()));return a.add(e),()=>{t(),a.delete(e)}},dispatch(e){try{var t;return r=!(null!==e&&void 0!==e&&null!==(t=e.meta)&&void 0!==t&&t[un]),i=!r,i&&(o||(o=!0,s(l))),n.dispatch(e)}finally{r=!0}}})}}("object"===typeof n?n:void 0)),r};function hn(e){const t={},n=[];let r;const i={addCase(e,n){const r="string"===typeof e?e:e.type;if(!r)throw new Error(kn(28));if(r in t)throw new Error(kn(29));return t[r]=n,i},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),i),addDefaultCase:e=>(r=e,i)};return e(i),[t,n,r]}var pn=function(){let e="",t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;for(;t--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e};var gn=Symbol.for("rtk-slice-createasyncthunk");function mn(e,t){return"".concat(e,"/").concat(t)}function yn(){var e;let{creators:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=null===t||void 0===t||null===(e=t.asyncThunk)||void 0===e?void 0:e[gn];return function(e){const{name:t,reducerPath:r=t}=e;if(!t)throw new Error(kn(11));const i=("function"===typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name](){return e(...arguments)}}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},o=Object.keys(i),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const n="string"===typeof e?e:e.type;if(!n)throw new Error(kn(12));if(n in a.sliceCaseReducersByType)throw new Error(kn(13));return a.sliceCaseReducersByType[n]=t,s},addMatcher:(e,t)=>(a.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(a.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(a.sliceCaseReducersByName[e]=t,s)};function l(){const[t={},n=[],r]="function"===typeof e.extraReducers?hn(e.extraReducers):[e.extraReducers],i={...t,...a.sliceCaseReducersByType};return function(e,t){let n,[r,i,o]=hn(t);if(function(e){return"function"===typeof e}(e))n=()=>sn(e());else{const t=sn(e);n=()=>t}function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n(),t=arguments.length>1?arguments[1]:void 0,a=[r[t.type],...i.filter((e=>{let{matcher:n}=e;return n(t)})).map((e=>{let{reducer:t}=e;return t}))];return 0===a.filter((e=>!!e)).length&&(a=[o]),a.reduce(((e,n)=>{if(n){if(Ke(e)){const r=n(e,t);return void 0===r?e:r}if(Xe(e))return _t(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(kn(9))}return r}}return e}),e)}return a.getInitialState=n,a}(e.initialState,(e=>{for(let t in i)e.addCase(t,i[t]);for(let t of a.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}))}o.forEach((r=>{const o=i[r],a={reducerName:r,type:mn(t,r),createNotation:"function"===typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(o)?function(e,t,n){let r,i,{type:o,reducerName:a,createNotation:s}=e;if("reducer"in t){if(s&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(t))throw new Error(kn(17));r=t.reducer,i=t.prepare}else r=t;n.addCase(o,r).exposeCaseReducer(a,r).exposeAction(a,i?on(o,i):on(o))}(a,o,s):function(e,t,n,r){let{type:i,reducerName:o}=e;if(!r)throw new Error(kn(18));const{payloadCreator:a,fulfilled:s,pending:l,rejected:u,settled:c,options:d}=t,f=r(i,a,d);n.exposeAction(o,f),s&&n.addCase(f.fulfilled,s);l&&n.addCase(f.pending,l);u&&n.addCase(f.rejected,u);c&&n.addMatcher(f.settled,c);n.exposeCaseReducer(o,{fulfilled:s||xn,pending:l||xn,rejected:u||xn,settled:c||xn})}(a,o,s,n)}));const u=e=>e,c=new Map;let d;function f(e,t){return d||(d=l()),d(e,t)}function h(){return d||(d=l()),d.getInitialState()}function p(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function r(e){let r=e[t];return"undefined"===typeof r&&n&&(r=h()),r}function i(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;const r=ln(c,n,{insert:()=>new WeakMap});return ln(r,t,{insert:()=>{const r={};for(const[o,a]of Object.entries(null!==(i=e.selectors)&&void 0!==i?i:{})){var i;r[o]=vn(a,t,h,n)}return r}})}return{reducerPath:t,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}const g={name:t,reducer:f,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:h,...p(r),injectInto(e){let{reducerPath:t,...n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=null!==t&&void 0!==t?t:r;return e.inject({reducerPath:i,reducer:f},n),{...g,...p(i,!0)}}};return g}}function vn(e,t,n,r){function i(i){let o=t(i);"undefined"===typeof o&&r&&(o=n());for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];return e(o,...s)}return i.unwrapped=e,i}var bn=yn();function xn(){}var wn="listener",Mn="completed",Sn="cancelled",jn=("task-".concat(Sn),"task-".concat(Mn),"".concat(wn,"-").concat(Sn),"".concat(wn,"-").concat(Mn),(e,t)=>{if("function"!==typeof e)throw new Error(kn(32))});var{assign:Nn}=Object,Cn="listenerMiddleware",An=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=on(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(kn(21));return jn(o),{predicate:i,type:t,effect:o}},Tn=Object.assign((e=>{const{type:t,predicate:n,effect:r}=An(e);return{id:pn(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(kn(22))}}}),{withTypes:()=>Tn}),En=Object.assign(on("".concat(Cn,"/add")),{withTypes:()=>En}),Dn=(on("".concat(Cn,"/removeAll")),Object.assign(on("".concat(Cn,"/remove")),{withTypes:()=>Dn}));Symbol.for("rtk-state-proxy-original");function kn(e){return"Minified Redux Toolkit error #".concat(e,"; visit https://redux-toolkit.js.org/Errors?code=").concat(e," for the full message or use the non-minified dev environment for full errors. ")}const On=n.p+"static/media/img-1-1.130fb8d0203452fee547.png",In=n.p+"static/media/img-1-2.c512de6393df34bd1e61.png",_n=n.p+"static/media/img2-1.2adc75df85eab5c127f9.png",Pn=n.p+"static/media/img2-2.c68532d4f95dbc63c69a.png",Ln=n.p+"static/media/img3-1.6eb26a22e6ea83629d27.png",zn=n.p+"static/media/img3-2.39ae54b4032d52c79a3a.png",Rn=n.p+"static/media/img4-1.a7594bfa47b01d2a0890.png",Fn=n.p+"static/media/img4-2.24c0cbafe1a7ad7c24b5.png",Un=n.p+"static/media/img5-1.e6865b52df58608fd968.png",Bn=n.p+"static/media/img5-2.ae59543efec34daf3554.png",Vn=n.p+"static/media/img6-1.c8bb209cdce72c2d8033.png",Qn=n.p+"static/media/img6-2.b442f90b3e503ac33510.png",Hn={x1:0,x2:1,y1:0,y2:1},Yn=[{value:10,label:"10"},{value:20,label:"20"},{value:30,label:"30"},{value:40,label:"40"},{value:50,label:"50"},{value:60,label:"60"},{value:70,label:"70"},{value:80,label:"80"},{value:90,label:"90"},{value:100,label:"100"}],Wn=[{title:"SELECT THE RIGHT IMAGE AREA",description:"The main object should occupy the major part of the image. Use the cropping tool available to crop the image and remove excess background.",imageLeft:On,imageRight:In},{title:"PICTURE CLARITY",description:"The image should not be blurred or out of focus.",imageLeft:_n,imageRight:Pn},{title:"OPTIMAL LIGHTING",description:"The images should be taken in a bright area or use your camera\u2019s flash to take a well-lit picture.",imageLeft:Ln,imageRight:zn},{title:"MONOCHROME BACKGROUND",description:"The object should be placed on a plain and light background and patterned background should be avoided.",imageLeft:Rn,imageRight:Fn},{title:"VISIBILITY OF THE OBJECT",description:"Click an image encapsulating most of the object\u2019s key components.",imageLeft:Un,imageRight:Bn},{title:"OCR CAPTURE",description:"It is recommended to take a clear picture of the text on the typeplate etc, to ensure that the model can detect the text and give accurate results.",imageLeft:Vn,imageRight:Qn}],Gn={categoryPredictions:[],codes:[],fetchingResults:!1,filterOptions:[],filters:[],isShowModalDetailItemMobile:!1,preFilter:{},loadingSearchAlgolia:!1,imageCaptureHelpModal:!1,regions:[],requestImage:void 0,results:[],selectedRegion:void 0,valueTextSearch:{configure:{filters:""},page:1,refinementList:""},postFilter:{},showFeedback:!1,firstSearchImage:"",firstSearchResults:null,firstSearchPrefilters:null};var qn=n(4409);const Zn=bn({name:"search",initialState:Gn,reducers:{setSearchResults:(e,t)=>{const{payload:n}=t,{results:r,session:i,categoryPredictions:o,codes:a,duration:s,filters:l}=n;return{...e,filters:l,results:r,requestId:i,categoryPredictions:o,codes:a,duration:s,sessionId:i,fetchingResults:!1}},setRegions:(e,t)=>({...e,regions:t.payload}),setSelectedRegion:(e,t)=>({...e,selectedRegion:t.payload}),setRequestImage:(e,t)=>({...e,requestImage:{canvas:t.payload,id:Math.random().toString()},regions:[]}),selectionChanged:(e,t)=>{const{payload:n}=t;return{...e,selectedRegion:n}},loadingActionResults:e=>({...e,fetchingResults:!0}),changeValueTextSearch:(e,t)=>{const{payload:n}=t;return{...e,valueTextSearch:n}},updateResults:(e,t)=>{const{payload:n}=t;return{...e,results:n}},updateQueryText:(e,t)=>{const{payload:n}=t;return{...e,queryText:n}},reset:(e,t)=>({results:[],regions:[],selectedRegion:Hn,requestImage:void 0,fetchingResults:!1,filterOptions:[],categoryPredictions:[],codes:[],errorMessage:"",valueTextSearch:{},resultSearchText:[],filters:[],loadingSearchAlgolia:!1,isShowModalDetailItemMobile:!1,preFilter:e.preFilter||{},postFilter:{},imageCaptureHelpModal:!1,showFeedback:!1,firstSearchImage:null,firstSearchResults:null,firstSearchPrefilters:null}),onResetRequestImage:(e,t)=>({...e,requestImage:void 0,results:[],regions:[]}),setUpdateSession:(e,t)=>{const{payload:n}=t;return{...e,sessionId:n}},updateResultChangePosition:(e,t)=>{const{payload:n}=t,{results:r}=n;return{...e,fetchingResults:!1,results:r}},updateStatusLoading:(e,t)=>{const{payload:n}=t;return{...e,loadingSearchAlgolia:n,fetchingResults:n}},onToggleModalItemDetail:(e,t)=>{const{payload:n}=t;return{...e,isShowModalDetailItemMobile:n}},setPreFilter:(e,t)=>{const{payload:n}=t;return{...e,preFilter:n}},setImageCaptureHelpModal:(e,t)=>({...e,imageCaptureHelpModal:t.payload}),setFilter:(e,t)=>({...e,filter:t.payload}),setPostFilter:(e,t)=>{const{payload:n}=t;let r={...e.postFilter}||{};const i=Object.keys(n)[0];return(0,qn.isUndefined)(r[i])||(0,qn.isUndefined)(r[i][n[i]])?r[i]?r[i]={...r[i],[n[i]]:!0}:r={...r,[i]:{[n[i]]:!0}}:r[i]={...r[i],[n[i]]:!r[i][n[i]]},{...e,postFilter:{...r}}},clearPostFilter:e=>({...e,postFilter:{}}),setShowFeedback:(e,t)=>({...e,showFeedback:t.payload}),setFirstSearchResults:(e,t)=>({...e,firstSearchResults:t.payload}),setFirstSearchImage:(e,t)=>({...e,firstSearchImage:t.payload}),setFirstSearchPrefilters:(e,t)=>({...e,firstSearchPrefilters:t.payload})}}),{changeValueTextSearch:Kn,clearPostFilter:Xn,loadingActionResults:$n,onResetRequestImage:Jn,onToggleModalItemDetail:er,reset:tr,selectionChanged:nr,setFilter:rr,setImageCaptureHelpModal:ir,setPostFilter:or,setPreFilter:ar,setRegions:sr,setRequestImage:lr,setSearchResults:ur,setSelectedRegion:cr,setUpdateSession:dr,updateQueryText:fr,updateResultChangePosition:hr,updateResults:pr,updateStatusLoading:gr,setShowFeedback:mr,setFirstSearchImage:yr,setFirstSearchResults:vr,setFirstSearchPrefilters:br}=Zn.actions,xr=Zn.reducer;var wr=n(589),Mr=n.n(wr);function Sr(e){let t=new RegExp("[?&]".concat(e,"(=([^&#]*))?(&|$|#)"),"i").exec(window.location.href);return t&&t[2]?decodeURIComponent(t[2]):!!t||void 0}const jr=async e=>{let t;if("string"===typeof e)if(e.startsWith("https:")){const n=await fetch(e);if(!n.ok)throw new Error("Failed to fetch image: ".concat(n.statusText));t=await n.blob()}else{const n=atob(e.split(",")[1]),r=e.split(",")[0].split(":")[1].split(";")[0],i=new ArrayBuffer(n.length),o=new Uint8Array(i);for(let e=0;e<n.length;e++)o[e]=n.charCodeAt(e);t=new Blob([i],{type:r})}else t=e;return new Promise(((e,n)=>{new(Mr())(t,{quality:.91,maxHeight:1024,maxWidth:1024,strict:!0,success:t=>{const r=new FileReader;r.onloadend=()=>{r.result?e(r.result):n(new Error("Failed to read compressed image data."))},r.onerror=()=>{n(new Error("Error reading compressed image data."))},r.readAsDataURL(t)},error:e=>{console.error("Compression error:",e),n(e)}})}))};var Nr,Cr;settings.algolia.enabled=!0,settings.showFeedbackAndShare=!1,settings.multiImageSearch=!1,settings.preview=!0,settings.clarityId="",settings.cadSearch=!0,null!==(Nr=settings.rfq)&&void 0!==Nr&&Nr.enabled&&null!==(Cr=settings.support)&&void 0!==Cr&&Cr.enabled&&(settings.support.enabled=!1);let Ar={auth0:{},algolia:{enabled:!0,apiKey:"",appId:"",indexName:""},xOptions:!1,apiKey:"UNSET",preview:!0,regions:!1,maxWidth:500,maxHeight:500,jpegQuality:.92,baseUrl:"https://api.nyris.io",instantRedirectPatterns:["^https?://(www.)?youtube.com/","^https?://(www.)?youtu.be/","^https?://(www.)?vimeo.com/","^https?://(www.)?dailymotion.com/","^https?://(www.)?dai.ly/"],mainTitle:"",secondaryTitle:"",theme:{},productDetails:"",support:{},...settings};Ar={...Ar,apiKey:Sr("apiKey")||Ar.apiKey,xOptions:Sr("xOptions")||Ar.xOptions,regions:Sr("use.regions")||Ar.regions,preview:Sr("use.preview")||Ar.preview};const Tr=function(e){const t=function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=null!==e&&void 0!==e?e:{};let o=new an;return t&&(function(e){return"boolean"===typeof e}(t)?o.push(tn):o.push(nn(t.extraArgument))),o},{reducer:n,middleware:r,devTools:i=!0,preloadedState:o,enhancers:a}=e||{};let s,l;if("function"===typeof n)s=n;else{if(!Kt(n))throw new Error(kn(1));s=$t(n)}l="function"===typeof r?r(t):t();let u=Jt;i&&(u=rn({trace:!1,..."object"===typeof i&&i}));const c=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>(n,r)=>{const i=e(n,r);let o=()=>{throw new Error(Wt(15))};const a={getState:i.getState,dispatch:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return o(e,...n)}},s=t.map((e=>e(a)));return o=Jt(...s)(i.dispatch),{...i,dispatch:o}}}(...l),d=fn(c);let f="function"===typeof a?a(d):d();return Xt(s,o,u(...f))}({reducer:$t({settings:()=>Ar,search:xr}),devTools:!1}),Er=()=>A(),Dr=g;var kr=n(7057),Or=n.n(kr),Ir=(0,t.createContext)({onInternalStateUpdate:function(){},createHrefForState:function(){return"#"},onSearchForFacetValues:function(){},onSearchStateChange:function(){},onSearchParameters:function(){},store:{},widgetsManager:{},mainTargetedIndex:""}),_r=Ir.Consumer,Pr=Ir.Provider,Lr=(0,t.createContext)(void 0),zr=Lr.Consumer;Lr.Provider;function Rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rr(Object(n),!0).forEach((function(t){Ur(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ur(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Br(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Br(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Br(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Br(e){return Br="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},Br(e)}var Vr=Object.prototype.hasOwnProperty,Qr=function(e,t){if(e===t)return!0;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Vr.call(t,n[i])||e[n[i]]!==t[n[i]])return!1;return!0},Hr=Promise.resolve(),Yr=function(e){Hr.then(e)},Wr=function e(t){return Object.keys(t).forEach((function(n){var r,i=t[n];(function(e){return"object"===Br(e)&&null!==e&&!Array.isArray(e)})(i)&&((r=i)&&Object.keys(r).length>0?e(i):delete t[n])})),t};function Gr(e,t){if(null===e||void 0===e)return{};for(var n={},r=Object.keys(e),i=0;i<r.length;i++){var o=r[i];t.indexOf(o)>=0||(n[o]=e[o])}return n}var qr=["contextValue"];function Zr(e){return Zr="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},Zr(e)}function Kr(){return Kr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kr.apply(this,arguments)}function Xr(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function $r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$r(Object(n),!0).forEach((function(t){oi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ei(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ai(r.key),r)}}function ti(e,t){return ti=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ti(e,t)}function ni(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(qi){return!1}}();return function(){var n,r=ii(e);if(t){var i=ii(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Zr(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ri(e)}(this,n)}}function ri(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ii(e){return ii=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ii(e)}function oi(e,t,n){return(t=ai(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ai(e){var t=function(e,t){if("object"!==Zr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Zr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Zr(t)?t:String(t)}function si(e){if(!e.displayName)throw new Error("`createConnector` requires you to provide a `displayName` property.");var n="function"===typeof e.getSearchParameters||"function"===typeof e.getMetadata||"function"===typeof e.transitionState;return function(r){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=function(i){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ti(e,t)}(u,i);var o,a,s,l=ni(u);function u(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),oi(ri(n=l.call(this,t)),"unsubscribe",void 0),oi(ri(n),"unregisterWidget",void 0),oi(ri(n),"cleanupTimerRef",null),oi(ri(n),"isUnmounting",!1),oi(ri(n),"state",{providedProps:n.getProvidedProps(n.props)}),oi(ri(n),"refine",(function(){for(var t,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];n.props.contextValue.onInternalStateUpdate((t=e.refine).call.apply(t,[ri(n),n.props,n.props.contextValue.store.getState().widgets].concat(i)))})),oi(ri(n),"createURL",(function(){for(var t,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n.props.contextValue.createHrefForState((t=e.refine).call.apply(t,[ri(n),n.props,n.props.contextValue.store.getState().widgets].concat(i)))})),oi(ri(n),"searchForFacetValues",(function(){for(var t,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];n.props.contextValue.onSearchForFacetValues((t=e.searchForFacetValues).call.apply(t,[ri(n),n.props,n.props.contextValue.store.getState().widgets].concat(i)))})),e.getSearchParameters&&n.props.contextValue.onSearchParameters(e.getSearchParameters.bind(ri(n)),{ais:n.props.contextValue,multiIndexContext:n.props.indexContextValue},n.props,e.getMetadata&&e.getMetadata.bind(ri(n)),e.displayName),n}return o=u,(a=[{key:"componentDidMount",value:function(){var e=this;this.cleanupTimerRef&&(clearTimeout(this.cleanupTimerRef),this.cleanupTimerRef=null),this.unsubscribe=this.props.contextValue.store.subscribe((function(){e.isUnmounting||e.setState({providedProps:e.getProvidedProps(e.props)})})),n&&(this.unregisterWidget=this.props.contextValue.widgetsManager.registerWidget(this))}},{key:"shouldComponentUpdate",value:function(t,n){if("function"===typeof e.shouldComponentUpdate)return e.shouldComponentUpdate.call(this,this.props,t,this.state,n);var r=Qr(this.props,t);return null===this.state.providedProps||null===n.providedProps?this.state.providedProps!==n.providedProps||!r:!r||!Qr(this.state.providedProps,n.providedProps)}},{key:"componentDidUpdate",value:function(t){Or()(t,this.props)||(this.setState({providedProps:this.getProvidedProps(this.props)}),n&&(this.props.contextValue.widgetsManager.update(),"function"===typeof e.transitionState&&this.props.contextValue.onSearchStateChange(e.transitionState.call(this,this.props,this.props.contextValue.store.getState().widgets,this.props.contextValue.store.getState().widgets))))}},{key:"componentWillUnmount",value:function(){var t=this;this.cleanupTimerRef=setTimeout((function(){if(t.isUnmounting=!0,t.unsubscribe&&t.unsubscribe(),t.unregisterWidget&&(t.unregisterWidget(),"function"===typeof e.cleanUp)){var n=e.cleanUp.call(t,t.props,t.props.contextValue.store.getState().widgets);t.props.contextValue.store.setState(Jr(Jr({},t.props.contextValue.store.getState()),{},{widgets:n})),t.props.contextValue.onSearchStateChange(Wr(n))}}))}},{key:"getProvidedProps",value:function(t){var n=this.props.contextValue.store.getState(),r=n.widgets,i=n.results,o=n.resultsFacetValues,a=n.searching,s=n.searchingForFacetValues,l=n.isSearchStalled,u=n.metadata,c={results:i,searching:a,searchingForFacetValues:s,isSearchStalled:l,error:n.error};return e.getProvidedProps.call(this,t,r,c,u,o)}},{key:"getSearchParameters",value:function(t){return"function"===typeof e.getSearchParameters?e.getSearchParameters.call(this,t,this.props,this.props.contextValue.store.getState().widgets):null}},{key:"getMetadata",value:function(t){return"function"===typeof e.getMetadata?e.getMetadata.call(this,this.props,t):{}}},{key:"transitionState",value:function(t,n){return"function"===typeof e.transitionState?e.transitionState.call(this,this.props,t,n):n}},{key:"render",value:function(){var n=this.props,i=(n.contextValue,Xr(n,qr)),o=this.state.providedProps;if(null===o)return null;var a="function"===typeof e.refine?{refine:this.refine,createURL:this.createURL}:{},s="function"===typeof e.searchForFacetValues?{searchForItems:this.searchForFacetValues}:{};return t.createElement(r,Kr({},i,o,a,s))}}])&&ei(o.prototype,a),s&&ei(o,s),Object.defineProperty(o,"prototype",{writable:!1}),u}(t.Component);return oi(a,"displayName","".concat(e.displayName,"(").concat((i=r).displayName||i.name||"UnknownComponent",")")),oi(a,"$$type",e.$$type),oi(a,"$$widgetType",o.$$widgetType),oi(a,"propTypes",e.propTypes),oi(a,"defaultProps",e.defaultProps),oi(a,"_connectorDesc",e),a}}const li=function(e){return function(n,r){var i=si(e)(n,r);return function(e){return t.createElement(_r,null,(function(n){return t.createElement(zr,null,(function(r){return t.createElement(i,Kr({contextValue:n,indexContextValue:r},e))}))}))}}};function ui(e){return ui="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},ui(e)}function ci(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function di(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ci(Object(n),!0).forEach((function(t){fi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ci(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fi(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ui(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ui(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ui(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hi(e){return gi(e)?e.multiIndexContext.targetedIndex:e.ais.mainTargetedIndex}function pi(e,t){if(e.results){if(e.results.hits)return e.results;var n=hi(t);if(e.results[n])return e.results[n]}return null}function gi(e){return e&&e.multiIndexContext}function mi(e,t,n,r,i){if(gi(n)){var o=hi(n);return i?function(e,t,n,r,i){var o,a=r?{page:1}:void 0,s=e.indices&&e.indices[n]?di(di({},e.indices),{},fi({},n,di(di({},e.indices[n]),{},(fi(o={},i,di(di({},e.indices[n][i]),t)),fi(o,"page",1),o)))):di(di({},e.indices),{},fi({},n,di(fi({},i,t),a)));return di(di({},e),{},{indices:s})}(e,t,o,r,i):function(e,t,n,r){var i=r?{page:1}:void 0,o=e.indices&&e.indices[n]?di(di({},e.indices),{},fi({},n,di(di(di({},e.indices[n]),t),i))):di(di({},e.indices),{},fi({},n,di(di({},t),i)));return di(di({},e),{},{indices:o})}(e,t,o,r)}return e.indices&&r&&Object.keys(e.indices).forEach((function(t){e=mi(e,{page:1},{multiIndexContext:{targetedIndex:t}},!0,i)})),i?function(e,t,n,r){var i=n?{page:1}:void 0;return di(di({},e),{},fi({},r,di(di({},e[r]),t)),i)}(e,t,r,i):function(e,t,n){var r=n?{page:1}:void 0;return di(di(di({},e),t),r)}(e,t,r)}function yi(e){var t=e.match(/^([^.]*)\.(.*)/);return{namespace:t&&t[1],attributeName:t&&t[2]}}function vi(e,t,n,r,i){var o=hi(n),a=yi(r),s=a.namespace,l=a.attributeName,u={multiIndex:gi(n),indexId:o,namespace:s,attributeName:l,id:r,searchState:t},c=function(e){var t=e.multiIndex,n=e.indexId,r=e.namespace,i=e.attributeName,o=e.id,a=e.searchState;return t&&r?a.indices&&a.indices[n]&&a.indices[n][r]&&Object.hasOwnProperty.call(a.indices[n][r],i):t?a.indices&&a.indices[n]&&Object.hasOwnProperty.call(a.indices[n],o):r?a[r]&&Object.hasOwnProperty.call(a[r],i):Object.hasOwnProperty.call(a,o)}(u);return c?function(e){var t=e.multiIndex,n=e.indexId,r=e.namespace,i=e.attributeName,o=e.id,a=e.searchState;return t&&r?a.indices[n][r][i]:t?a.indices[n][o]:r?a[r][i]:a[o]}(u):e.defaultRefinement?e.defaultRefinement:i}function bi(e,t,n){var r=hi(t),i=yi(n),o=i.namespace,a=i.attributeName;return gi(t)&&Boolean(e.indices)?function(e){var t=e.searchState,n=e.indexId,r=e.id,i=e.namespace,o=e.attribute,a=t.indices[n];if(i&&a)return di(di({},t),{},{indices:di(di({},t.indices),{},fi({},n,di(di({},a),{},fi({},i,Gr(a[i],[o])))))});if(a)return di(di({},t),{},{indices:di(di({},t.indices),{},fi({},n,Gr(a,[r])))});return t}({attribute:a,searchState:e,indexId:r,id:n,namespace:o}):function(e){var t=e.searchState,n=e.id,r=e.namespace,i=e.attribute;if(r)return di(di({},t),{},fi({},r,Gr(t[r],[i])));return Gr(t,[n])}({attribute:a,searchState:e,id:n,namespace:o})}function xi(e){return xi="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},xi(e)}function wi(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==xi(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==xi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===xi(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mi(e,t,n){var r=vi(e,t,n,"query","");return r||""}function Si(e,t,n,r){return mi(t,wi({},"query",n),r,!0)}const ji=li({displayName:"AlgoliaSearchBox",$$type:"ais.searchBox",propTypes:{defaultRefinement:P().string},getProvidedProps:function(e,t,n){return{currentRefinement:Mi(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),isSearchStalled:n.isSearchStalled}},refine:function(e,t,n){return Si(0,t,n,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){return function(e,t,n){return bi(t,n,"query")}(0,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},getSearchParameters:function(e,t,n){return e.setQuery(Mi(t,n,{ais:t.contextValue,multiIndexContext:t.indexContextValue}))},getMetadata:function(e,t){var n="query",r=Mi(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return{id:n,index:hi({ais:e.contextValue,multiIndexContext:e.indexContextValue}),items:null===r?[]:[{label:"".concat(n,": ").concat(r),value:function(t){return Si(0,t,"",{ais:e.contextValue,multiIndexContext:e.indexContextValue})},currentRefinement:r}]}}}),Ni=li({displayName:"AlgoliaStateResults",$$type:"ais.stateResults",getProvidedProps:function(e,t,n){return{searchState:t,searchResults:pi(n,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),allSearchResults:n.results,searching:n.searching,isSearchStalled:n.isSearchStalled,error:n.error,searchingForFacetValues:n.searchingForFacetValues,props:e}}});var Ci=n(4938),Ai=n.n(Ci);n(7657);Object.create(null);const Ti={};function Ei(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"===typeof t[0]&&Ti[t[0]]||("string"===typeof t[0]&&(Ti[t[0]]=new Date),function(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"===typeof t[0]&&(t[0]="react-i18next:: ".concat(t[0])),console.warn(...t)}}(...t))}const Di=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout((()=>{e.off("initialized",n)}),0),t()};e.on("initialized",n)}};function ki(e,t,n){e.loadNamespaces(t,Di(e,n))}function Oi(e,t,n,r){"string"===typeof n&&(n=[n]),n.forEach((t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,Di(e,r))}const Ii=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,_i={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xa9","&#169;":"\xa9","&reg;":"\xae","&#174;":"\xae","&hellip;":"\u2026","&#8230;":"\u2026","&#x2F;":"/","&#47;":"/"},Pi=e=>_i[e];let Li,zi={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(Ii,Pi)};const Ri={type:"3rdParty",init(e){!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};zi={...zi,...e}}(e.options.react),function(e){Li=e}(e)}},Fi=(0,t.createContext)();class Ui{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach((e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)}))}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Bi=(e,n)=>{const r=(0,t.useRef)();return(0,t.useEffect)((()=>{r.current=n?r.current:e}),[e,n]),r.current};function Vi(e,t,n,r){return e.getFixedT(t,n,r)}function Qi(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{i18n:r}=n,{i18n:i,defaultNS:o}=(0,t.useContext)(Fi)||{},a=r||i||Li;if(a&&!a.reportNamespaces&&(a.reportNamespaces=new Ui),!a){Ei("You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>"string"===typeof t?t:t&&"object"===typeof t&&"string"===typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}a.options.react&&void 0!==a.options.react.wait&&Ei("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const s={...zi,...a.options.react,...n},{useSuspense:l,keyPrefix:u}=s;let c=e||o||a.options&&a.options.defaultNS;c="string"===typeof c?[c]:c||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(c);const d=(a.isInitialized||a.initializedStoreOnce)&&c.every((e=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=t.languages[0],i=!!t.options&&t.options.fallbackLng,o=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;const a=(e,n)=>{const r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(r,e)||!(t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages))||!(!a(r,e)||i&&!a(o,e)))}(e,t,n):(Ei("i18n.languages were undefined or empty",t.languages),!0)}(e,a,s))),f=function(e,n,r,i){return(0,t.useCallback)(Vi(e,n,r,i),[e,n,r,i])}(a,n.lng||null,"fallback"===s.nsMode?c:c[0],u),h=()=>f,p=()=>Vi(a,n.lng||null,"fallback"===s.nsMode?c:c[0],u),[g,m]=(0,t.useState)(h);let y=c.join();n.lng&&(y="".concat(n.lng).concat(y));const v=Bi(y),b=(0,t.useRef)(!0);(0,t.useEffect)((()=>{const{bindI18n:e,bindI18nStore:t}=s;function r(){b.current&&m(p)}return b.current=!0,d||l||(n.lng?Oi(a,n.lng,c,(()=>{b.current&&m(p)})):ki(a,c,(()=>{b.current&&m(p)}))),d&&v&&v!==y&&b.current&&m(p),e&&a&&a.on(e,r),t&&a&&a.store.on(t,r),()=>{b.current=!1,e&&a&&e.split(" ").forEach((e=>a.off(e,r))),t&&a&&t.split(" ").forEach((e=>a.store.off(e,r)))}}),[a,y]),(0,t.useEffect)((()=>{b.current&&d&&m(h)}),[a,u,d]);const x=[g,a,d];if(x.t=g,x.i18n=a,x.ready=d,d)return x;if(!d&&!l)return x;throw new Promise((e=>{n.lng?Oi(a,n.lng,c,(()=>e())):ki(a,c,(()=>e()))}))}var Hi=function(e,t){return Hi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Hi(e,t)};var Yi=function(){return Yi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Yi.apply(this,arguments)};function Wi(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(qi){o(qi)}}function s(e){try{l(r.throw(e))}catch(qi){o(qi)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function Gi(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(qi){s=[6,qi],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function qi(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}"function"===typeof SuppressedError&&SuppressedError,"function"==typeof SuppressedError&&SuppressedError;var Zi="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function Ki(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xi(e,t){return e(t={exports:{}},t.exports),t.exports}var $i=Xi((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){var e=this;this.locked=new Map,this.addToLocked=function(t,n){var r=e.locked.get(t);void 0===r?void 0===n?e.locked.set(t,[]):e.locked.set(t,[n]):void 0!==n&&(r.unshift(n),e.locked.set(t,r))},this.isLocked=function(t){return e.locked.has(t)},this.lock=function(t){return new Promise((function(n,r){e.isLocked(t)?e.addToLocked(t,n):(e.addToLocked(t),n())}))},this.unlock=function(t){var n=e.locked.get(t);if(void 0!==n&&0!==n.length){var r=n.pop();e.locked.set(t,n),void 0!==r&&setTimeout(r,0)}else e.locked.delete(t)}}return e.getInstance=function(){return void 0===e.instance&&(e.instance=new e),e.instance},e}();t.default=function(){return n.getInstance()}}));Ki($i);var Ji=Ki(Xi((function(e,t){var n=Zi&&Zi.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,s)}l((r=r.apply(e,t||[])).next())}))},r=Zi&&Zi.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},i=Zi;Object.defineProperty(t,"__esModule",{value:!0});var o="browser-tabs-lock-key",a={key:function(e){return n(i,void 0,void 0,(function(){return r(this,(function(e){throw new Error("Unsupported")}))}))},getItem:function(e){return n(i,void 0,void 0,(function(){return r(this,(function(e){throw new Error("Unsupported")}))}))},clear:function(){return n(i,void 0,void 0,(function(){return r(this,(function(e){return[2,window.localStorage.clear()]}))}))},removeItem:function(e){return n(i,void 0,void 0,(function(){return r(this,(function(e){throw new Error("Unsupported")}))}))},setItem:function(e,t){return n(i,void 0,void 0,(function(){return r(this,(function(e){throw new Error("Unsupported")}))}))},keySync:function(e){return window.localStorage.key(e)},getItemSync:function(e){return window.localStorage.getItem(e)},clearSync:function(){return window.localStorage.clear()},removeItemSync:function(e){return window.localStorage.removeItem(e)},setItemSync:function(e,t){return window.localStorage.setItem(e,t)}};function s(e){return new Promise((function(t){return setTimeout(t,e)}))}function l(e){for(var t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",n="",r=0;r<e;r++)n+=t[Math.floor(61*Math.random())];return n}var u=function(){function e(t){this.acquiredIatSet=new Set,this.storageHandler=void 0,this.id=Date.now().toString()+l(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),this.storageHandler=t,void 0===e.waiters&&(e.waiters=[])}return e.prototype.acquireLock=function(t,i){return void 0===i&&(i=5e3),n(this,void 0,void 0,(function(){var n,u,c,d,f,h,p;return r(this,(function(r){switch(r.label){case 0:n=Date.now()+l(4),u=Date.now()+i,c=o+"-"+t,d=void 0===this.storageHandler?a:this.storageHandler,r.label=1;case 1:return Date.now()<u?[4,s(30)]:[3,8];case 2:return r.sent(),null!==d.getItemSync(c)?[3,5]:(f=this.id+"-"+t+"-"+n,[4,s(Math.floor(25*Math.random()))]);case 3:return r.sent(),d.setItemSync(c,JSON.stringify({id:this.id,iat:n,timeoutKey:f,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,s(30)];case 4:return r.sent(),null!==(h=d.getItemSync(c))&&(p=JSON.parse(h)).id===this.id&&p.iat===n?(this.acquiredIatSet.add(n),this.refreshLockWhileAcquired(c,n),[2,!0]):[3,7];case 5:return e.lockCorrector(void 0===this.storageHandler?a:this.storageHandler),[4,this.waitForSomethingToChange(u)];case 6:r.sent(),r.label=7;case 7:return n=Date.now()+l(4),[3,1];case 8:return[2,!1]}}))}))},e.prototype.refreshLockWhileAcquired=function(e,t){return n(this,void 0,void 0,(function(){var i=this;return r(this,(function(o){return setTimeout((function(){return n(i,void 0,void 0,(function(){var n,i,o;return r(this,(function(r){switch(r.label){case 0:return[4,$i.default().lock(t)];case 1:return r.sent(),this.acquiredIatSet.has(t)?(n=void 0===this.storageHandler?a:this.storageHandler,null===(i=n.getItemSync(e))?($i.default().unlock(t),[2]):((o=JSON.parse(i)).timeRefreshed=Date.now(),n.setItemSync(e,JSON.stringify(o)),$i.default().unlock(t),this.refreshLockWhileAcquired(e,t),[2])):($i.default().unlock(t),[2])}}))}))}),1e3),[2]}))}))},e.prototype.waitForSomethingToChange=function(t){return n(this,void 0,void 0,(function(){return r(this,(function(n){switch(n.label){case 0:return[4,new Promise((function(n){var r=!1,i=Date.now(),o=!1;function a(){if(o||(window.removeEventListener("storage",a),e.removeFromWaiting(a),clearTimeout(s),o=!0),!r){r=!0;var t=50-(Date.now()-i);t>0?setTimeout(n,t):n(null)}}window.addEventListener("storage",a),e.addToWaiting(a);var s=setTimeout(a,Math.max(0,t-Date.now()))}))];case 1:return n.sent(),[2]}}))}))},e.addToWaiting=function(t){this.removeFromWaiting(t),void 0!==e.waiters&&e.waiters.push(t)},e.removeFromWaiting=function(t){void 0!==e.waiters&&(e.waiters=e.waiters.filter((function(e){return e!==t})))},e.notifyWaiters=function(){void 0!==e.waiters&&e.waiters.slice().forEach((function(e){return e()}))},e.prototype.releaseLock=function(e){return n(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,this.releaseLock__private__(e)];case 1:return[2,t.sent()]}}))}))},e.prototype.releaseLock__private__=function(t){return n(this,void 0,void 0,(function(){var n,i,s,l;return r(this,(function(r){switch(r.label){case 0:return n=void 0===this.storageHandler?a:this.storageHandler,i=o+"-"+t,null===(s=n.getItemSync(i))?[2]:(l=JSON.parse(s)).id!==this.id?[3,2]:[4,$i.default().lock(l.iat)];case 1:r.sent(),this.acquiredIatSet.delete(l.iat),n.removeItemSync(i),$i.default().unlock(l.iat),e.notifyWaiters(),r.label=2;case 2:return[2]}}))}))},e.lockCorrector=function(t){for(var n=Date.now()-5e3,r=t,i=[],a=0;;){var s=r.keySync(a);if(null===s)break;i.push(s),a++}for(var l=!1,u=0;u<i.length;u++){var c=i[u];if(c.includes(o)){var d=r.getItemSync(c);if(null!==d){var f=JSON.parse(d);(void 0===f.timeRefreshed&&f.timeAcquired<n||void 0!==f.timeRefreshed&&f.timeRefreshed<n)&&(r.removeItemSync(c),l=!0)}}}l&&e.notifyWaiters()},e.waiters=void 0,e}();t.default=u})));const eo={timeoutInSeconds:60},to={name:"auth0-spa-js",version:"2.1.3"},no=()=>Date.now();class ro extends Error{constructor(e,t){super(t),this.error=e,this.error_description=t,Object.setPrototypeOf(this,ro.prototype)}static fromPayload(e){let{error:t,error_description:n}=e;return new ro(t,n)}}class io extends ro{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;super(e,t),this.state=n,this.appState=r,Object.setPrototypeOf(this,io.prototype)}}class oo extends ro{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,oo.prototype)}}class ao extends oo{constructor(e){super(),this.popup=e,Object.setPrototypeOf(this,ao.prototype)}}class so extends ro{constructor(e){super("cancelled","Popup closed"),this.popup=e,Object.setPrototypeOf(this,so.prototype)}}class lo extends ro{constructor(e,t,n){super(e,t),this.mfa_token=n,Object.setPrototypeOf(this,lo.prototype)}}class uo extends ro{constructor(e,t){super("missing_refresh_token","Missing Refresh Token (audience: '".concat(co(e,["default"]),"', scope: '").concat(co(t),"')")),this.audience=e,this.scope=t,Object.setPrototypeOf(this,uo.prototype)}}function co(e){return e&&!(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).includes(e)?e:""}const fo=()=>window.crypto,ho=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(fo().getRandomValues(new Uint8Array(43))).forEach((n=>t+=e[n%66])),t},po=e=>btoa(e),go=e=>{var{clientId:t}=e,n=qi(e,["clientId"]);return new URLSearchParams((e=>Object.keys(e).filter((t=>void 0!==e[t])).reduce(((t,n)=>Object.assign(Object.assign({},t),{[n]:e[n]})),{}))(Object.assign({client_id:t},n))).toString()},mo=e=>(e=>decodeURIComponent(atob(e).split("").map((e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2))).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),yo=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},vo=async function(e,t,n,r,i,o){let a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1e4;return i?(async(e,t,n,r,i,o,a)=>{return s={auth:{audience:t,scope:n},timeout:i,fetchUrl:e,fetchOptions:r,useFormData:a},l=o,new Promise((function(e,t){const n=new MessageChannel;n.port1.onmessage=function(r){r.data.error?t(new Error(r.data.error)):e(r.data),n.port1.close()},l.postMessage(s,[n.port2])}));var s,l})(e,t,n,r,a,i,o):(async(e,t,n)=>{const r=new AbortController;let i;return t.signal=r.signal,Promise.race([yo(e,t),new Promise(((e,t)=>{i=setTimeout((()=>{r.abort(),t(new Error("Timeout when executing 'fetch'"))}),n)}))]).finally((()=>{clearTimeout(i)}))})(e,r,a)};async function bo(e,t){var{baseUrl:n,timeout:r,audience:i,scope:o,auth0Client:a,useFormData:s}=e,l=qi(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const u=s?go(l):JSON.stringify(l);return await async function(e,t,n,r,i,o,a){let s,l=null;for(let p=0;p<3;p++)try{s=await vo(e,n,r,i,o,a,t),l=null;break}catch(qi){l=qi}if(l)throw l;const u=s.json,{error:c,error_description:d}=u,f=qi(u,["error","error_description"]),{ok:h}=s;if(!h){const t=d||"HTTP error. Unable to fetch ".concat(e);if("mfa_required"===c)throw new lo(c,t,f.mfa_token);if("missing_refresh_token"===c)throw new uo(n,r);throw new ro(c||"request_error",t)}return f}("".concat(n,"/oauth/token"),r,i||"default",o,{method:"POST",body:u,headers:{"Content-Type":s?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(a||to))}},t,s)}const xo=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(r=t.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(r))).join(" ");var r};class wo{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"@@auth0spajs@@",n=arguments.length>2?arguments[2]:void 0;this.prefix=t,this.suffix=n,this.clientId=e.clientId,this.scope=e.scope,this.audience=e.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(e){const[t,n,r,i]=e.split("::");return new wo({clientId:n,scope:i,audience:r},t)}static fromCacheEntry(e){const{scope:t,audience:n,client_id:r}=e;return new wo({scope:t,audience:n,clientId:r})}}class Mo{set(e,t){localStorage.setItem(e,JSON.stringify(t))}get(e){const t=window.localStorage.getItem(e);if(t)try{return JSON.parse(t)}catch(e){return}}remove(e){localStorage.removeItem(e)}allKeys(){return Object.keys(window.localStorage).filter((e=>e.startsWith("@@auth0spajs@@")))}}class So{constructor(){this.enclosedCache=function(){let e={};return{set(t,n){e[t]=n},get(t){const n=e[t];if(n)return n},remove(t){delete e[t]},allKeys:()=>Object.keys(e)}}()}}class jo{constructor(e,t,n){this.cache=e,this.keyManifest=t,this.nowProvider=n||no}async setIdToken(e,t,n){var r;const i=this.getIdTokenCacheKey(e);await this.cache.set(i,{id_token:t,decodedToken:n}),await(null===(r=this.keyManifest)||void 0===r?void 0:r.add(i))}async getIdToken(e){const t=await this.cache.get(this.getIdTokenCacheKey(e.clientId));if(!t&&e.scope&&e.audience){const t=await this.get(e);if(!t)return;if(!t.id_token||!t.decodedToken)return;return{id_token:t.id_token,decodedToken:t.decodedToken}}if(t)return{id_token:t.id_token,decodedToken:t.decodedToken}}async get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;var n;let r=await this.cache.get(e.toKey());if(!r){const t=await this.getCacheKeys();if(!t)return;const n=this.matchExistingCacheKey(e,t);n&&(r=await this.cache.get(n))}if(!r)return;const i=await this.nowProvider(),o=Math.floor(i/1e3);return r.expiresAt-t<o?r.body.refresh_token?(r.body={refresh_token:r.body.refresh_token},await this.cache.set(e.toKey(),r),r.body):(await this.cache.remove(e.toKey()),void await(null===(n=this.keyManifest)||void 0===n?void 0:n.remove(e.toKey()))):r.body}async set(e){var t;const n=new wo({clientId:e.client_id,scope:e.scope,audience:e.audience}),r=await this.wrapCacheEntry(e);await this.cache.set(n.toKey(),r),await(null===(t=this.keyManifest)||void 0===t?void 0:t.add(n.toKey()))}async clear(e){var t;const n=await this.getCacheKeys();n&&(await n.filter((t=>!e||t.includes(e))).reduce((async(e,t)=>{await e,await this.cache.remove(t)}),Promise.resolve()),await(null===(t=this.keyManifest)||void 0===t?void 0:t.clear()))}async wrapCacheEntry(e){const t=await this.nowProvider();return{body:e,expiresAt:Math.floor(t/1e3)+e.expires_in}}async getCacheKeys(){var e;return this.keyManifest?null===(e=await this.keyManifest.get())||void 0===e?void 0:e.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(e){return new wo({clientId:e},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(e,t){return t.filter((t=>{var n;const r=wo.fromKey(t),i=new Set(r.scope&&r.scope.split(" ")),o=(null===(n=e.scope)||void 0===n?void 0:n.split(" "))||[],a=r.scope&&o.reduce(((e,t)=>e&&i.has(t)),!0);return"@@auth0spajs@@"===r.prefix&&r.clientId===e.clientId&&r.audience===e.audience&&a}))[0]}}class No{constructor(e,t,n){this.storage=e,this.clientId=t,this.cookieDomain=n,this.storageKey="a0.spajs.txs.".concat(this.clientId)}create(e){this.storage.save(this.storageKey,e,{daysUntilExpire:1,cookieDomain:this.cookieDomain})}get(){return this.storage.get(this.storageKey)}remove(){this.storage.remove(this.storageKey,{cookieDomain:this.cookieDomain})}}const Co=e=>"number"==typeof e,Ao=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"];var To=Xi((function(e,t){var n=Zi&&Zi.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};function r(e,t){if(!t)return"";var n="; "+e;return!0===t?n:n+"="+t}function i(e,t,n){return encodeURIComponent(e).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(t).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(e){if("number"==typeof e.expires){var t=new Date;t.setMilliseconds(t.getMilliseconds()+864e5*e.expires),e.expires=t}return r("Expires",e.expires?e.expires.toUTCString():"")+r("Domain",e.domain)+r("Path",e.path)+r("Secure",e.secure)+r("SameSite",e.sameSite)}(n)}function o(e){for(var t={},n=e?e.split("; "):[],r=/(%[\dA-F]{2})+/gi,i=0;i<n.length;i++){var o=n[i].split("="),a=o.slice(1).join("=");'"'===a.charAt(0)&&(a=a.slice(1,-1));try{t[o[0].replace(r,decodeURIComponent)]=a.replace(r,decodeURIComponent)}catch(e){}}return t}function a(){return o(document.cookie)}function s(e,t,r){document.cookie=i(e,t,n({path:"/"},r))}t.__esModule=!0,t.encode=i,t.parse=o,t.getAll=a,t.get=function(e){return a()[e]},t.set=s,t.remove=function(e,t){s(e,"",n(n({},t),{expires:-1}))}}));Ki(To),To.encode,To.parse,To.getAll;var Eo=To.get,Do=To.set,ko=To.remove;const Oo={get(e){const t=Eo(e);if(void 0!==t)return JSON.parse(t)},save(e,t,n){let r={};"https:"===window.location.protocol&&(r={secure:!0,sameSite:"none"}),(null==n?void 0:n.daysUntilExpire)&&(r.expires=n.daysUntilExpire),(null==n?void 0:n.cookieDomain)&&(r.domain=n.cookieDomain),Do(e,JSON.stringify(t),r)},remove(e,t){let n={};(null==t?void 0:t.cookieDomain)&&(n.domain=t.cookieDomain),ko(e,n)}},Io={get:e=>Oo.get(e)||Oo.get("_legacy_".concat(e)),save(e,t,n){let r={};"https:"===window.location.protocol&&(r={secure:!0}),(null==n?void 0:n.daysUntilExpire)&&(r.expires=n.daysUntilExpire),(null==n?void 0:n.cookieDomain)&&(r.domain=n.cookieDomain),Do("_legacy_".concat(e),JSON.stringify(t),r),Oo.save(e,t,n)},remove(e,t){let n={};(null==t?void 0:t.cookieDomain)&&(n.domain=t.cookieDomain),ko(e,n),Oo.remove(e,t),Oo.remove("_legacy_".concat(e),t)}},_o={get(e){if("undefined"==typeof sessionStorage)return;const t=sessionStorage.getItem(e);return null!=t?JSON.parse(t):void 0},save(e,t){sessionStorage.setItem(e,JSON.stringify(t))},remove(e){sessionStorage.removeItem(e)}};var Po,Lo=("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9ImZ1bmN0aW9uIj09dHlwZW9mIFN1cHByZXNzZWRFcnJvciYmU3VwcHJlc3NlZEVycm9yO2NvbnN0IHM9ZT0+e3ZhcntjbGllbnRJZDp0fT1lLHI9ZnVuY3Rpb24oZSx0KXt2YXIgcj17fTtmb3IodmFyIHMgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxzKSYmdC5pbmRleE9mKHMpPDAmJihyW3NdPWVbc10pO2lmKG51bGwhPWUmJiJmdW5jdGlvbiI9PXR5cGVvZiBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKXt2YXIgbz0wO2ZvcihzPU9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMoZSk7bzxzLmxlbmd0aDtvKyspdC5pbmRleE9mKHNbb10pPDAmJk9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChlLHNbb10pJiYocltzW29dXT1lW3Nbb11dKX1yZXR1cm4gcn0oZSxbImNsaWVudElkIl0pO3JldHVybiBuZXcgVVJMU2VhcmNoUGFyYW1zKChlPT5PYmplY3Qua2V5cyhlKS5maWx0ZXIoKHQ9PnZvaWQgMCE9PWVbdF0pKS5yZWR1Y2UoKCh0LHIpPT5PYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sdCkse1tyXTplW3JdfSkpLHt9KSkoT2JqZWN0LmFzc2lnbih7Y2xpZW50X2lkOnR9LHIpKSkudG9TdHJpbmcoKX07bGV0IG89e307Y29uc3Qgbj0oZSx0KT0+YCR7ZX18JHt0fWA7YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGFzeW5jKHtkYXRhOnt0aW1lb3V0OmUsYXV0aDpyLGZldGNoVXJsOmksZmV0Y2hPcHRpb25zOmMsdXNlRm9ybURhdGE6YX0scG9ydHM6W3BdfSk9PntsZXQgZjtjb25zdHthdWRpZW5jZTp1LHNjb3BlOmx9PXJ8fHt9O3RyeXtjb25zdCByPWE/KGU9Pntjb25zdCB0PW5ldyBVUkxTZWFyY2hQYXJhbXMoZSkscj17fTtyZXR1cm4gdC5mb3JFYWNoKCgoZSx0KT0+e3JbdF09ZX0pKSxyfSkoYy5ib2R5KTpKU09OLnBhcnNlKGMuYm9keSk7aWYoIXIucmVmcmVzaF90b2tlbiYmInJlZnJlc2hfdG9rZW4iPT09ci5ncmFudF90eXBlKXtjb25zdCBlPSgoZSx0KT0+b1tuKGUsdCldKSh1LGwpO2lmKCFlKXRocm93IG5ldyB0KHUsbCk7Yy5ib2R5PWE/cyhPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKTpKU09OLnN0cmluZ2lmeShPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKX1sZXQgaCxnOyJmdW5jdGlvbiI9PXR5cGVvZiBBYm9ydENvbnRyb2xsZXImJihoPW5ldyBBYm9ydENvbnRyb2xsZXIsYy5zaWduYWw9aC5zaWduYWwpO3RyeXtnPWF3YWl0IFByb21pc2UucmFjZShbKGQ9ZSxuZXcgUHJvbWlzZSgoZT0+c2V0VGltZW91dChlLGQpKSkpLGZldGNoKGksT2JqZWN0LmFzc2lnbih7fSxjKSldKX1jYXRjaChlKXtyZXR1cm4gdm9pZCBwLnBvc3RNZXNzYWdlKHtlcnJvcjplLm1lc3NhZ2V9KX1pZighZylyZXR1cm4gaCYmaC5hYm9ydCgpLHZvaWQgcC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KTtmPWF3YWl0IGcuanNvbigpLGYucmVmcmVzaF90b2tlbj8oKChlLHQscik9PntvW24odCxyKV09ZX0pKGYucmVmcmVzaF90b2tlbix1LGwpLGRlbGV0ZSBmLnJlZnJlc2hfdG9rZW4pOigoZSx0KT0+e2RlbGV0ZSBvW24oZSx0KV19KSh1LGwpLHAucG9zdE1lc3NhZ2Uoe29rOmcub2ssanNvbjpmfSl9Y2F0Y2goZSl7cC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3I6ZS5lcnJvcixlcnJvcl9kZXNjcmlwdGlvbjplLm1lc3NhZ2V9fSl9dmFyIGR9KSl9KCk7Cgo=",null,!1,function(e){return Po=Po||function(e,t,n){var r=void 0===t?null:t,i=function(e,t){var n=atob(e);if(t){for(var r=new Uint8Array(n.length),i=0,o=n.length;i<o;++i)r[i]=n.charCodeAt(i);return String.fromCharCode.apply(null,new Uint16Array(r.buffer))}return n}(e,void 0!==n&&n),o=i.indexOf("\n",10)+1,a=i.substring(o)+(r?"//# sourceMappingURL="+r:""),s=new Blob([a],{type:"application/javascript"});return URL.createObjectURL(s)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9ImZ1bmN0aW9uIj09dHlwZW9mIFN1cHByZXNzZWRFcnJvciYmU3VwcHJlc3NlZEVycm9yO2NvbnN0IHM9ZT0+e3ZhcntjbGllbnRJZDp0fT1lLHI9ZnVuY3Rpb24oZSx0KXt2YXIgcj17fTtmb3IodmFyIHMgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxzKSYmdC5pbmRleE9mKHMpPDAmJihyW3NdPWVbc10pO2lmKG51bGwhPWUmJiJmdW5jdGlvbiI9PXR5cGVvZiBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKXt2YXIgbz0wO2ZvcihzPU9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMoZSk7bzxzLmxlbmd0aDtvKyspdC5pbmRleE9mKHNbb10pPDAmJk9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChlLHNbb10pJiYocltzW29dXT1lW3Nbb11dKX1yZXR1cm4gcn0oZSxbImNsaWVudElkIl0pO3JldHVybiBuZXcgVVJMU2VhcmNoUGFyYW1zKChlPT5PYmplY3Qua2V5cyhlKS5maWx0ZXIoKHQ9PnZvaWQgMCE9PWVbdF0pKS5yZWR1Y2UoKCh0LHIpPT5PYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sdCkse1tyXTplW3JdfSkpLHt9KSkoT2JqZWN0LmFzc2lnbih7Y2xpZW50X2lkOnR9LHIpKSkudG9TdHJpbmcoKX07bGV0IG89e307Y29uc3Qgbj0oZSx0KT0+YCR7ZX18JHt0fWA7YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGFzeW5jKHtkYXRhOnt0aW1lb3V0OmUsYXV0aDpyLGZldGNoVXJsOmksZmV0Y2hPcHRpb25zOmMsdXNlRm9ybURhdGE6YX0scG9ydHM6W3BdfSk9PntsZXQgZjtjb25zdHthdWRpZW5jZTp1LHNjb3BlOmx9PXJ8fHt9O3RyeXtjb25zdCByPWE/KGU9Pntjb25zdCB0PW5ldyBVUkxTZWFyY2hQYXJhbXMoZSkscj17fTtyZXR1cm4gdC5mb3JFYWNoKCgoZSx0KT0+e3JbdF09ZX0pKSxyfSkoYy5ib2R5KTpKU09OLnBhcnNlKGMuYm9keSk7aWYoIXIucmVmcmVzaF90b2tlbiYmInJlZnJlc2hfdG9rZW4iPT09ci5ncmFudF90eXBlKXtjb25zdCBlPSgoZSx0KT0+b1tuKGUsdCldKSh1LGwpO2lmKCFlKXRocm93IG5ldyB0KHUsbCk7Yy5ib2R5PWE/cyhPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKTpKU09OLnN0cmluZ2lmeShPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKX1sZXQgaCxnOyJmdW5jdGlvbiI9PXR5cGVvZiBBYm9ydENvbnRyb2xsZXImJihoPW5ldyBBYm9ydENvbnRyb2xsZXIsYy5zaWduYWw9aC5zaWduYWwpO3RyeXtnPWF3YWl0IFByb21pc2UucmFjZShbKGQ9ZSxuZXcgUHJvbWlzZSgoZT0+c2V0VGltZW91dChlLGQpKSkpLGZldGNoKGksT2JqZWN0LmFzc2lnbih7fSxjKSldKX1jYXRjaChlKXtyZXR1cm4gdm9pZCBwLnBvc3RNZXNzYWdlKHtlcnJvcjplLm1lc3NhZ2V9KX1pZighZylyZXR1cm4gaCYmaC5hYm9ydCgpLHZvaWQgcC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KTtmPWF3YWl0IGcuanNvbigpLGYucmVmcmVzaF90b2tlbj8oKChlLHQscik9PntvW24odCxyKV09ZX0pKGYucmVmcmVzaF90b2tlbix1LGwpLGRlbGV0ZSBmLnJlZnJlc2hfdG9rZW4pOigoZSx0KT0+e2RlbGV0ZSBvW24oZSx0KV19KSh1LGwpLHAucG9zdE1lc3NhZ2Uoe29rOmcub2ssanNvbjpmfSl9Y2F0Y2goZSl7cC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3I6ZS5lcnJvcixlcnJvcl9kZXNjcmlwdGlvbjplLm1lc3NhZ2V9fSl9dmFyIGR9KSl9KCk7Cgo=",null,false),new Worker(Po,e)});const zo={};class Ro{constructor(e,t){this.cache=e,this.clientId=t,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add(e){var t;const n=new Set((null===(t=await this.cache.get(this.manifestKey))||void 0===t?void 0:t.keys)||[]);n.add(e),await this.cache.set(this.manifestKey,{keys:[...n]})}async remove(e){const t=await this.cache.get(this.manifestKey);if(t){const n=new Set(t.keys);return n.delete(e),n.size>0?await this.cache.set(this.manifestKey,{keys:[...n]}):await this.cache.remove(this.manifestKey)}}get(){return this.cache.get(this.manifestKey)}clear(){return this.cache.remove(this.manifestKey)}createManifestKeyFrom(e){return"@@auth0spajs@@::".concat(e)}}const Fo={memory:()=>(new So).enclosedCache,localstorage:()=>new Mo},Uo=e=>Fo[e],Bo=e=>{const{openUrl:t,onRedirect:n}=e,r=qi(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},r),{openUrl:!1===t||t?t:n})},Vo=new Ji;class Qo{constructor(e){let t,n;if(this.userCache=(new So).enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await Vo.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)},this.options=Object.assign(Object.assign(Object.assign({},this.defaultOptions),e),{authorizationParams:Object.assign(Object.assign({},this.defaultOptions.authorizationParams),e.authorizationParams)}),"undefined"!=typeof window&&(()=>{if(!fo())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(void 0===fo().subtle)throw new Error("\n auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/main/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.\n ")})(),e.cache&&e.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),e.cache)n=e.cache;else{if(t=e.cacheLocation||"memory",!Uo(t))throw new Error('Invalid cache location "'.concat(t,'"'));n=Uo(t)()}this.httpTimeoutMs=e.httpTimeoutInSeconds?1e3*e.httpTimeoutInSeconds:1e4,this.cookieStorage=!1===e.legacySameSiteCookie?Oo:Io,this.orgHintCookieName="auth0.".concat(this.options.clientId,".organization_hint"),this.isAuthenticatedCookieName=(e=>"auth0.".concat(e,".is.authenticated"))(this.options.clientId),this.sessionCheckExpiryDays=e.sessionCheckExpiryDays||1;const r=e.useCookiesForTransactions?this.cookieStorage:_o;var i;this.scope=xo("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new No(r,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||no,this.cacheManager=new jo(n,n.allKeys?void 0:new Ro(n,this.options.clientId),this.nowProvider),this.domainUrl=(i=this.options.domain,/^https?:\/\//.test(i)?i:"https://".concat(i)),this.tokenIssuer=((e,t)=>e?e.startsWith("https://")?e:"https://".concat(e,"/"):"".concat(t,"/"))(this.options.issuer,this.domainUrl),"undefined"!=typeof window&&window.Worker&&this.options.useRefreshTokens&&"memory"===t&&(this.options.workerUrl?this.worker=new Worker(this.options.workerUrl):this.worker=new Lo)}_url(e){const t=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||to)));return"".concat(this.domainUrl).concat(e,"&auth0Client=").concat(t)}_authorizeUrl(e){return this._url("/authorize?".concat(go(e)))}async _verifyIdToken(e,t,n){const r=await this.nowProvider();return(e=>{if(!e.id_token)throw new Error("ID token is required but missing");const t=(e=>{const t=e.split("."),[n,r,i]=t;if(3!==t.length||!n||!r||!i)throw new Error("ID token could not be decoded");const o=JSON.parse(mo(r)),a={__raw:e},s={};return Object.keys(o).forEach((e=>{a[e]=o[e],Ao.includes(e)||(s[e]=o[e])})),{encoded:{header:n,payload:r,signature:i},header:JSON.parse(mo(n)),claims:a,user:s}})(e.id_token);if(!t.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(t.claims.iss!==e.iss)throw new Error('Issuer (iss) claim mismatch in the ID token; expected "'.concat(e.iss,'", found "').concat(t.claims.iss,'"'));if(!t.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if("RS256"!==t.header.alg)throw new Error('Signature algorithm of "'.concat(t.header.alg,'" is not supported. Expected the ID token to be signed with "RS256".'));if(!t.claims.aud||"string"!=typeof t.claims.aud&&!Array.isArray(t.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(t.claims.aud)){if(!t.claims.aud.includes(e.aud))throw new Error('Audience (aud) claim mismatch in the ID token; expected "'.concat(e.aud,'" but was not one of "').concat(t.claims.aud.join(", "),'"'));if(t.claims.aud.length>1){if(!t.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(t.claims.azp!==e.aud)throw new Error('Authorized Party (azp) claim mismatch in the ID token; expected "'.concat(e.aud,'", found "').concat(t.claims.azp,'"'))}}else if(t.claims.aud!==e.aud)throw new Error('Audience (aud) claim mismatch in the ID token; expected "'.concat(e.aud,'" but found "').concat(t.claims.aud,'"'));if(e.nonce){if(!t.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(t.claims.nonce!==e.nonce)throw new Error('Nonce (nonce) claim mismatch in the ID token; expected "'.concat(e.nonce,'", found "').concat(t.claims.nonce,'"'))}if(e.max_age&&!Co(t.claims.auth_time))throw new Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");if(null==t.claims.exp||!Co(t.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!Co(t.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const n=e.leeway||60,r=new Date(e.now||Date.now()),i=new Date(0);if(i.setUTCSeconds(t.claims.exp+n),r>i)throw new Error("Expiration Time (exp) claim error in the ID token; current time (".concat(r,") is after expiration time (").concat(i,")"));if(null!=t.claims.nbf&&Co(t.claims.nbf)){const e=new Date(0);if(e.setUTCSeconds(t.claims.nbf-n),r<e)throw new Error("Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (".concat(r,") is before ").concat(e))}if(null!=t.claims.auth_time&&Co(t.claims.auth_time)){const i=new Date(0);if(i.setUTCSeconds(parseInt(t.claims.auth_time)+e.max_age+n),r>i)throw new Error("Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (".concat(r,") is after last auth at ").concat(i))}if(e.organization){const n=e.organization.trim();if(n.startsWith("org_")){const e=n;if(!t.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(e!==t.claims.org_id)throw new Error('Organization ID (org_id) claim mismatch in the ID token; expected "'.concat(e,'", found "').concat(t.claims.org_id,'"'))}else{const e=n.toLowerCase();if(!t.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(e!==t.claims.org_name)throw new Error('Organization Name (org_name) claim mismatch in the ID token; expected "'.concat(e,'", found "').concat(t.claims.org_name,'"'))}}return t})({iss:this.tokenIssuer,aud:this.options.clientId,id_token:e,nonce:t,organization:n,leeway:this.options.leeway,max_age:(i=this.options.authorizationParams.max_age,"string"!=typeof i?i:parseInt(i,10)||void 0),now:r});var i}_processOrgHint(e){e?this.cookieStorage.save(this.orgHintCookieName,e,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(e,t,n){const r=po(ho()),i=po(ho()),o=ho(),a=(e=>{const t=new Uint8Array(e);return(e=>{const t={"+":"-","/":"_","=":""};return e.replace(/[+/=]/g,(e=>t[e]))})(window.btoa(String.fromCharCode(...Array.from(t))))})(await(async e=>{const t=fo().subtle.digest({name:"SHA-256"},(new TextEncoder).encode(e));return await t})(o)),s=((e,t,n,r,i,o,a,s)=>Object.assign(Object.assign(Object.assign({client_id:e.clientId},e.authorizationParams),n),{scope:xo(t,n.scope),response_type:"code",response_mode:s||"query",state:r,nonce:i,redirect_uri:a||e.authorizationParams.redirect_uri,code_challenge:o,code_challenge_method:"S256"}))(this.options,this.scope,e,r,i,a,e.redirect_uri||this.options.authorizationParams.redirect_uri||n,null==t?void 0:t.response_mode),l=this._authorizeUrl(s);return{nonce:i,code_verifier:o,scope:s.scope,audience:s.audience||"default",redirect_uri:s.redirect_uri,state:r,url:l}}async loginWithPopup(e,t){var n;if(e=e||{},!(t=t||{}).popup&&(t.popup=(e=>{const t=window.screenX+(window.innerWidth-400)/2,n=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup","left=".concat(t,",top=").concat(n,",width=400,height=600,resizable,scrollbars=yes,status=1"))})(),!t.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");const r=await this._prepareAuthorizeUrl(e.authorizationParams||{},{response_mode:"web_message"},window.location.origin);t.popup.location.href=r.url;const i=await(e=>new Promise(((t,n)=>{let r;const i=setInterval((()=>{e.popup&&e.popup.closed&&(clearInterval(i),clearTimeout(o),window.removeEventListener("message",r,!1),n(new so(e.popup)))}),1e3),o=setTimeout((()=>{clearInterval(i),n(new ao(e.popup)),window.removeEventListener("message",r,!1)}),1e3*(e.timeoutInSeconds||60));r=function(a){if(a.data&&"authorization_response"===a.data.type){if(clearTimeout(o),clearInterval(i),window.removeEventListener("message",r,!1),e.popup.close(),a.data.response.error)return n(ro.fromPayload(a.data.response));t(a.data.response)}},window.addEventListener("message",r)})))(Object.assign(Object.assign({},t),{timeoutInSeconds:t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(r.state!==i.state)throw new ro("state_mismatch","Invalid state");const o=(null===(n=e.authorizationParams)||void 0===n?void 0:n.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:r.audience,scope:r.scope,code_verifier:r.code_verifier,grant_type:"authorization_code",code:i.code,redirect_uri:r.redirect_uri},{nonceIn:r.nonce,organization:o})}async getUser(){var e;const t=await this._getIdTokenFromCache();return null===(e=null==t?void 0:t.decodedToken)||void 0===e?void 0:e.user}async getIdTokenClaims(){var e;const t=await this._getIdTokenFromCache();return null===(e=null==t?void 0:t.decodedToken)||void 0===e?void 0:e.claims}async loginWithRedirect(){var e;const t=Bo(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{openUrl:n,fragment:r,appState:i}=t,o=qi(t,["openUrl","fragment","appState"]),a=(null===(e=o.authorizationParams)||void 0===e?void 0:e.organization)||this.options.authorizationParams.organization,s=await this._prepareAuthorizeUrl(o.authorizationParams||{}),{url:l}=s,u=qi(s,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},u),{appState:i}),a&&{organization:a}));const c=r?"".concat(l,"#").concat(r):l;n?await n(c):window.location.assign(c)}async handleRedirectCallback(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.href).split("?").slice(1);if(0===e.length)throw new Error("There are no query params available for parsing.");const{state:t,code:n,error:r,error_description:i}=(e=>{e.indexOf("#")>-1&&(e=e.substring(0,e.indexOf("#")));const t=new URLSearchParams(e);return{state:t.get("state"),code:t.get("code")||void 0,error:t.get("error")||void 0,error_description:t.get("error_description")||void 0}})(e.join("")),o=this.transactionManager.get();if(!o)throw new ro("missing_transaction","Invalid state");if(this.transactionManager.remove(),r)throw new io(r,i||r,t,o.appState);if(!o.code_verifier||o.state&&o.state!==t)throw new ro("state_mismatch","Invalid state");const a=o.organization,s=o.nonce,l=o.redirect_uri;return await this._requestToken(Object.assign({audience:o.audience,scope:o.scope,code_verifier:o.code_verifier,grant_type:"authorization_code",code:n},l?{redirect_uri:l}:{}),{nonceIn:s,organization:a}),{appState:o.appState}}async checkSession(e){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}try{await this.getTokenSilently(e)}catch(e){}}async getTokenSilently(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;const n=Object.assign(Object.assign({cacheMode:"on"},e),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),e.authorizationParams),{scope:xo(this.scope,null===(t=e.authorizationParams)||void 0===t?void 0:t.scope)})}),r=await((e,t)=>{let n=zo[t];return n||(n=e().finally((()=>{delete zo[t],n=null})),zo[t]=n),n})((()=>this._getTokenSilently(n)),"".concat(this.options.clientId,"::").concat(n.authorizationParams.audience,"::").concat(n.authorizationParams.scope));return e.detailedResponse?r:null==r?void 0:r.access_token}async _getTokenSilently(e){const{cacheMode:t}=e,n=qi(e,["cacheMode"]);if("off"!==t){const e=await this._getEntryFromCache({scope:n.authorizationParams.scope,audience:n.authorizationParams.audience||"default",clientId:this.options.clientId});if(e)return e}if("cache-only"!==t){if(!await async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;for(let n=0;n<t;n++)if(await e())return!0;return!1}((()=>Vo.acquireLock("auth0.lock.getTokenSilently",5e3)),10))throw new oo;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),"off"!==t){const e=await this._getEntryFromCache({scope:n.authorizationParams.scope,audience:n.authorizationParams.audience||"default",clientId:this.options.clientId});if(e)return e}const e=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(n):await this._getTokenFromIFrame(n),{id_token:r,access_token:i,oauthTokenScope:o,expires_in:a}=e;return Object.assign(Object.assign({id_token:r,access_token:i},o?{scope:o}:null),{expires_in:a})}finally{await Vo.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n;const r=Object.assign(Object.assign({},e),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),e.authorizationParams),{scope:xo(this.scope,null===(n=e.authorizationParams)||void 0===n?void 0:n.scope)})});return t=Object.assign(Object.assign({},eo),t),await this.loginWithPopup(r,t),(await this.cacheManager.get(new wo({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId}))).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(e){null!==e.clientId?e.clientId=e.clientId||this.options.clientId:delete e.clientId;const t=e.logoutParams||{},{federated:n}=t,r=qi(t,["federated"]),i=n?"&federated":"";return this._url("/v2/logout?".concat(go(Object.assign({clientId:e.clientId},r))))+i}async logout(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Bo(e),{openUrl:n}=t,r=qi(t,["openUrl"]);null===e.clientId?await this.cacheManager.clear():await this.cacheManager.clear(e.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");const i=this._buildLogoutUrl(r);n?await n(i):!1!==n&&window.location.assign(i)}async _getTokenFromIFrame(e){const t=Object.assign(Object.assign({},e.authorizationParams),{prompt:"none"}),n=this.cookieStorage.get(this.orgHintCookieName);n&&!t.organization&&(t.organization=n);const{url:r,state:i,nonce:o,code_verifier:a,redirect_uri:s,scope:l,audience:u}=await this._prepareAuthorizeUrl(t,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new ro("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const n=e.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,c=await function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60;return new Promise(((r,i)=>{const o=window.document.createElement("iframe");o.setAttribute("width","0"),o.setAttribute("height","0"),o.style.display="none";const a=()=>{window.document.body.contains(o)&&(window.document.body.removeChild(o),window.removeEventListener("message",s,!1))};let s;const l=setTimeout((()=>{i(new oo),a()}),1e3*n);s=function(e){if(e.origin!=t)return;if(!e.data||"authorization_response"!==e.data.type)return;const n=e.source;n&&n.close(),e.data.response.error?i(ro.fromPayload(e.data.response)):r(e.data.response),clearTimeout(l),window.removeEventListener("message",s,!1),setTimeout(a,2e3)},window.addEventListener("message",s,!1),window.document.body.appendChild(o),o.setAttribute("src",e)}))}(r,this.domainUrl,n);if(i!==c.state)throw new ro("state_mismatch","Invalid state");const d=await this._requestToken(Object.assign(Object.assign({},e.authorizationParams),{code_verifier:a,code:c.code,grant_type:"authorization_code",redirect_uri:s,timeout:e.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:o,organization:t.organization});return Object.assign(Object.assign({},d),{scope:l,oauthTokenScope:d.scope,audience:u})}catch(e){throw"login_required"===e.error&&this.logout({openUrl:!1}),e}}async _getTokenUsingRefreshToken(e){const t=await this.cacheManager.get(new wo({scope:e.authorizationParams.scope,audience:e.authorizationParams.audience||"default",clientId:this.options.clientId}));if(!(t&&t.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(e);throw new uo(e.authorizationParams.audience||"default",e.authorizationParams.scope)}const n=e.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,r="number"==typeof e.timeoutInSeconds?1e3*e.timeoutInSeconds:null;try{const i=await this._requestToken(Object.assign(Object.assign(Object.assign({},e.authorizationParams),{grant_type:"refresh_token",refresh_token:t&&t.refresh_token,redirect_uri:n}),r&&{timeout:r}));return Object.assign(Object.assign({},i),{scope:e.authorizationParams.scope,oauthTokenScope:i.scope,audience:e.authorizationParams.audience||"default"})}catch(t){if((t.message.indexOf("Missing Refresh Token")>-1||t.message&&t.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(e);throw t}}async _saveEntryInCache(e){const{id_token:t,decodedToken:n}=e,r=qi(e,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:t,decodedToken:n}),await this.cacheManager.setIdToken(this.options.clientId,e.id_token,e.decodedToken),await this.cacheManager.set(r)}async _getIdTokenFromCache(){const e=this.options.authorizationParams.audience||"default",t=await this.cacheManager.getIdToken(new wo({clientId:this.options.clientId,audience:e,scope:this.scope})),n=this.userCache.get("@@user@@");return t&&t.id_token===(null==n?void 0:n.id_token)?n:(this.userCache.set("@@user@@",t),t)}async _getEntryFromCache(e){let{scope:t,audience:n,clientId:r}=e;const i=await this.cacheManager.get(new wo({scope:t,audience:n,clientId:r}),60);if(i&&i.access_token){const{access_token:e,oauthTokenScope:t,expires_in:n}=i,r=await this._getIdTokenFromCache();return r&&Object.assign(Object.assign({id_token:r.id_token,access_token:e},t?{scope:t}:null),{expires_in:n})}}async _requestToken(e,t){const{nonceIn:n,organization:r}=t||{},i=await bo(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},e),this.worker),o=await this._verifyIdToken(i.id_token,n,r);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},i),{decodedToken:o,scope:e.scope,audience:e.audience||"default"}),i.scope?{oauthTokenScope:i.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(r||o.claims.org_id),Object.assign(Object.assign({},i),{decodedToken:o})}}var Ho={isAuthenticated:!1,isLoading:!0},Yo=function(){throw new Error("You forgot to wrap your component in <Auth0Provider>.")},Wo=Yi(Yi({},Ho),{buildAuthorizeUrl:Yo,buildLogoutUrl:Yo,getAccessTokenSilently:Yo,getAccessTokenWithPopup:Yo,getIdTokenClaims:Yo,loginWithRedirect:Yo,loginWithPopup:Yo,logout:Yo,handleRedirectCallback:Yo}),Go=(0,t.createContext)(Wo),qo=function(e){function t(n,r){var i=e.call(this,r||n)||this;return i.error=n,i.error_description=r,Object.setPrototypeOf(i,t.prototype),i}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Hi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error),Zo=/[?&]code=[^&]+/,Ko=/[?&]state=[^&]+/,Xo=/[?&]error=[^&]+/,$o=function(e){return function(t){return t instanceof Error?t:null!==t&&"object"===typeof t&&"error"in t&&"string"===typeof t.error?"error_description"in t&&"string"===typeof t.error_description?new qo(t.error,t.error_description):new qo(t.error):new Error(e)}},Jo=$o("Login failed"),ea=$o("Get access token failed"),ta=function(e){var t;(null===e||void 0===e?void 0:e.redirectUri)&&(console.warn("Using `redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `redirectUri` will be no longer supported in a future version"),e.authorizationParams=e.authorizationParams||{},e.authorizationParams.redirect_uri=e.redirectUri,delete e.redirectUri),(null===(t=null===e||void 0===e?void 0:e.authorizationParams)||void 0===t?void 0:t.redirectUri)&&(console.warn("Using `authorizationParams.redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `authorizationParams.redirectUri` will be removed in a future version"),e.authorizationParams.redirect_uri=e.authorizationParams.redirectUri,delete e.authorizationParams.redirectUri)},na=function(e,t){switch(t.type){case"LOGIN_POPUP_STARTED":return Yi(Yi({},e),{isLoading:!0});case"LOGIN_POPUP_COMPLETE":case"INITIALISED":return Yi(Yi({},e),{isAuthenticated:!!t.user,user:t.user,isLoading:!1,error:void 0});case"HANDLE_REDIRECT_COMPLETE":case"GET_ACCESS_TOKEN_COMPLETE":return e.user===t.user?e:Yi(Yi({},e),{isAuthenticated:!!t.user,user:t.user});case"LOGOUT":return Yi(Yi({},e),{isAuthenticated:!1,user:void 0});case"ERROR":return Yi(Yi({},e),{isLoading:!1,error:t.error})}},ra=function(e){window.history.replaceState({},document.title,(null===e||void 0===e?void 0:e.returnTo)||window.location.pathname)},ia=function(e){var n=e.children,r=e.skipRedirectCallback,i=e.onRedirectCallback,o=void 0===i?ra:i,a=e.context,s=void 0===a?Go:a,l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["children","skipRedirectCallback","onRedirectCallback","context"]),u=(0,t.useState)((function(){return new Qo(function(e){return ta(e),Yi(Yi({},e),{auth0Client:{name:"auth0-react",version:"2.2.4"}})}(l))}))[0],c=(0,t.useReducer)(na,Ho),d=c[0],f=c[1],h=(0,t.useRef)(!1);(0,t.useEffect)((function(){h.current||(h.current=!0,Wi(void 0,void 0,void 0,(function(){var e,t,n;return Gi(this,(function(i){switch(i.label){case 0:return i.trys.push([0,7,,8]),e=void 0,void 0===a&&(a=window.location.search),!Zo.test(a)&&!Xo.test(a)||!Ko.test(a)||r?[3,3]:[4,u.handleRedirectCallback()];case 1:return t=i.sent().appState,[4,u.getUser()];case 2:return e=i.sent(),o(t,e),[3,6];case 3:return[4,u.checkSession()];case 4:return i.sent(),[4,u.getUser()];case 5:e=i.sent(),i.label=6;case 6:return f({type:"INITIALISED",user:e}),[3,8];case 7:return n=i.sent(),f({type:"ERROR",error:Jo(n)}),[3,8];case 8:return[2]}var a}))})))}),[u,o,r]);var p=(0,t.useCallback)((function(e){return ta(e),u.loginWithRedirect(e)}),[u]),g=(0,t.useCallback)((function(e,t){return Wi(void 0,void 0,void 0,(function(){var n,r;return Gi(this,(function(i){switch(i.label){case 0:f({type:"LOGIN_POPUP_STARTED"}),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,u.loginWithPopup(e,t)];case 2:return i.sent(),[3,4];case 3:return n=i.sent(),f({type:"ERROR",error:Jo(n)}),[2];case 4:return[4,u.getUser()];case 5:return r=i.sent(),f({type:"LOGIN_POPUP_COMPLETE",user:r}),[2]}}))}))}),[u]),m=(0,t.useCallback)((function(e){return void 0===e&&(e={}),Wi(void 0,void 0,void 0,(function(){return Gi(this,(function(t){switch(t.label){case 0:return[4,u.logout(e)];case 1:return t.sent(),(e.openUrl||!1===e.openUrl)&&f({type:"LOGOUT"}),[2]}}))}))}),[u]),y=(0,t.useCallback)((function(e){return Wi(void 0,void 0,void 0,(function(){var t,n,r,i;return Gi(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,3,5]),[4,u.getTokenSilently(e)];case 1:return t=o.sent(),[3,5];case 2:throw n=o.sent(),ea(n);case 3:return r=f,i={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,u.getUser()];case 4:return r.apply(void 0,[(i.user=o.sent(),i)]),[7];case 5:return[2,t]}}))}))}),[u]),v=(0,t.useCallback)((function(e,t){return Wi(void 0,void 0,void 0,(function(){var n,r,i,o;return Gi(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,3,5]),[4,u.getTokenWithPopup(e,t)];case 1:return n=a.sent(),[3,5];case 2:throw r=a.sent(),ea(r);case 3:return i=f,o={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,u.getUser()];case 4:return i.apply(void 0,[(o.user=a.sent(),o)]),[7];case 5:return[2,n]}}))}))}),[u]),b=(0,t.useCallback)((function(){return u.getIdTokenClaims()}),[u]),x=(0,t.useCallback)((function(e){return Wi(void 0,void 0,void 0,(function(){var t,n,r;return Gi(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,3,5]),[4,u.handleRedirectCallback(e)];case 1:return[2,i.sent()];case 2:throw t=i.sent(),ea(t);case 3:return n=f,r={type:"HANDLE_REDIRECT_COMPLETE"},[4,u.getUser()];case 4:return n.apply(void 0,[(r.user=i.sent(),r)]),[7];case 5:return[2]}}))}))}),[u]),w=(0,t.useMemo)((function(){return Yi(Yi({},d),{getAccessTokenSilently:y,getAccessTokenWithPopup:v,getIdTokenClaims:b,loginWithRedirect:p,loginWithPopup:g,logout:m,handleRedirectCallback:x})}),[d,y,v,b,p,g,m,x]);return t.createElement(s.Provider,{value:w},n)},oa=function(e){return void 0===e&&(e=Go),(0,t.useContext)(e)};const aa=()=>{const{search:e}=Oe();return(0,t.useMemo)((()=>new URLSearchParams(e)),[e])};var sa=n(9850),la=n(715),ua=n(5343),ca=n(5077),da=n(5486),fa=n(6935);var ha="undefined"!==typeof window?t.useLayoutEffect:t.useEffect,pa=t.forwardRef((function(e,n){var r=e.children,i=e.container,o=e.disablePortal,a=void 0!==o&&o,s=e.onRendered,l=t.useState(null),u=l[0],c=l[1],d=(0,fa.A)(t.isValidElement(r)?r.ref:null,n);return ha((function(){a||c(function(e){return e="function"===typeof e?e():e,la.findDOMNode(e)}(i)||document.body)}),[i,a]),ha((function(){if(u&&!a)return(0,da.A)(n,u),function(){(0,da.A)(n,null)}}),[n,u,a]),ha((function(){s&&(u||a)&&s()}),[s,u,a]),a?t.isValidElement(r)?t.cloneElement(r,{ref:d}):r:u?la.createPortal(r,u):u}));const ga=pa;var ma=n(4315),ya=n(9917),va=n(5212),ba=n(5152),xa=n(414),wa=n(4619);function Ma(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}var Sa=n(2964);function ja(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Na(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function Ca(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=[t,n].concat((0,wa.A)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===a.indexOf(e.tagName)&&ja(e,i)}))}function Aa(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function Ta(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,ca.A)(e);return t.body===e?(0,Sa.A)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=Ma();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(Na(o)+a,"px"),n=(0,ca.A)(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(Na(e)+a,"px")}))}var s=o.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var Ea=function(){function e(){(0,ba.A)(this,e),this.modals=[],this.containers=[]}return(0,xa.A)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&ja(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Ca(t,e.mountNode,e.modalRef,r,!0);var i=Aa(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=Aa(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=Ta(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=Aa(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&ja(e.modalRef,!0),Ca(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&ja(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();const Da=function(e){var n=e.children,r=e.disableAutoFocus,i=void 0!==r&&r,o=e.disableEnforceFocus,a=void 0!==o&&o,s=e.disableRestoreFocus,l=void 0!==s&&s,u=e.getDoc,c=e.isEnabled,d=e.open,f=t.useRef(),h=t.useRef(null),p=t.useRef(null),g=t.useRef(),m=t.useRef(null),y=t.useCallback((function(e){m.current=la.findDOMNode(e)}),[]),v=(0,fa.A)(n.ref,y),b=t.useRef();return t.useEffect((function(){b.current=d}),[d]),!b.current&&d&&"undefined"!==typeof window&&(g.current=u().activeElement),t.useEffect((function(){if(d){var e=(0,ca.A)(m.current);i||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){null!==m.current&&(e.hasFocus()&&!a&&c()&&!f.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():f.current=!1)},n=function(t){!a&&c()&&9===t.keyCode&&e.activeElement===m.current&&(f.current=!0,t.shiftKey?p.current.focus():h.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var r=setInterval((function(){t()}),50);return function(){clearInterval(r),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),l||(g.current&&g.current.focus&&g.current.focus(),g.current=null)}}}),[i,a,l,c,d]),t.createElement(t.Fragment,null,t.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelStart"}),t.cloneElement(n,{ref:v}),t.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelEnd"}))};var ka={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}};const Oa=t.forwardRef((function(e,n){var r=e.invisible,i=void 0!==r&&r,o=e.open,a=(0,sa.A)(e,["invisible","open"]);return o?t.createElement("div",(0,T.A)({"aria-hidden":!0,ref:n},a,{style:(0,T.A)({},ka.root,i?ka.invisible:{},a.style)})):null}));var Ia=new Ea,_a=t.forwardRef((function(e,n){var r=(0,D.A)(),i=(0,ua.A)({name:"MuiModal",props:(0,T.A)({},e),theme:r}),o=i.BackdropComponent,a=void 0===o?Oa:o,s=i.BackdropProps,l=i.children,u=i.closeAfterTransition,c=void 0!==u&&u,d=i.container,f=i.disableAutoFocus,h=void 0!==f&&f,p=i.disableBackdropClick,g=void 0!==p&&p,m=i.disableEnforceFocus,y=void 0!==m&&m,v=i.disableEscapeKeyDown,b=void 0!==v&&v,x=i.disablePortal,w=void 0!==x&&x,M=i.disableRestoreFocus,S=void 0!==M&&M,j=i.disableScrollLock,N=void 0!==j&&j,C=i.hideBackdrop,A=void 0!==C&&C,E=i.keepMounted,k=void 0!==E&&E,O=i.manager,I=void 0===O?Ia:O,_=i.onBackdropClick,P=i.onClose,L=i.onEscapeKeyDown,z=i.onRendered,R=i.open,F=(0,sa.A)(i,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),U=t.useState(!0),B=U[0],V=U[1],Q=t.useRef({}),H=t.useRef(null),Y=t.useRef(null),W=(0,fa.A)(Y,n),G=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(i),q=function(){return(0,ca.A)(H.current)},Z=function(){return Q.current.modalRef=Y.current,Q.current.mountNode=H.current,Q.current},K=function(){I.mount(Z(),{disableScrollLock:N}),Y.current.scrollTop=0},X=(0,ya.A)((function(){var e=function(e){return e="function"===typeof e?e():e,la.findDOMNode(e)}(d)||q().body;I.add(Z(),e),Y.current&&K()})),$=t.useCallback((function(){return I.isTopModal(Z())}),[I]),J=(0,ya.A)((function(e){H.current=e,e&&(z&&z(),R&&$()?K():ja(Y.current,!0))})),ee=t.useCallback((function(){I.remove(Z())}),[I]);if(t.useEffect((function(){return function(){ee()}}),[ee]),t.useEffect((function(){R?X():G&&c||ee()}),[R,ee,G,c,X]),!k&&!R&&(!G||B))return null;var te=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(r||{zIndex:va.A}),ne={};return void 0===l.props.tabIndex&&(ne.tabIndex=l.props.tabIndex||"-1"),G&&(ne.onEnter=(0,ma.A)((function(){V(!1)}),l.props.onEnter),ne.onExited=(0,ma.A)((function(){V(!0),c&&ee()}),l.props.onExited)),t.createElement(ga,{ref:J,container:d,disablePortal:w},t.createElement("div",(0,T.A)({ref:W,onKeyDown:function(e){"Escape"===e.key&&$()&&(L&&L(e),b||(e.stopPropagation(),P&&P(e,"escapeKeyDown")))},role:"presentation"},F,{style:(0,T.A)({},te.root,!R&&B?te.hidden:{},F.style)}),A?null:t.createElement(a,(0,T.A)({open:R,onClick:function(e){e.target===e.currentTarget&&(_&&_(e),!g&&P&&P(e,"backdropClick"))}},s)),t.createElement(Da,{disableEnforceFocus:y,disableAutoFocus:h,disableRestoreFocus:S,getDoc:q,isEnabled:$,open:R},t.cloneElement(l,ne))))}));const Pa=_a;var La=n(4434);const za=function(e){const{children:t,openModal:n=!1,handleClose:r,classNameModal:i,classNameComponentChild:o,rounded:a=!0}=e;return(0,La.jsx)(Pa,{open:n,onClose:r,className:"modal-container ".concat(i||""),style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,La.jsx)("div",{className:o,style:{overflowY:"auto",maxHeight:"95vh",borderRadius:a?8:0},children:t})})},Ra=e=>{let t;const n=new Set,r=(e,r)=>{const i="function"===typeof e?e(t):e;if(!Object.is(i,t)){const e=t;t=(null!=r?r:"object"!==typeof i||null===i)?i:Object.assign({},t,i),n.forEach((n=>n(t,e)))}},i=()=>t,o={setState:r,getState:i,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=t=e(r,i,o);return o},Fa=e=>e?Ra(e):Ra;var Ua=n(4544);const{useDebugValue:Ba}=t,{useSyncExternalStoreWithSelector:Va}=Ua;let Qa=!1;const Ha=e=>e;const Ya=e=>{"function"!==typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"===typeof e?Fa(e):e,n=(e,n)=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ha,n=arguments.length>2?arguments[2]:void 0;n&&!Qa&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Qa=!0);const r=Va(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Ba(r),r}(t,e,n);return Object.assign(n,t),n},Wa=e=>e?Ya(e):Ya;const Ga=Wa()(((e,t)=>({requestImages:[],query:"",regions:[Array(3)].map((()=>({x1:0,x2:1,y1:0,y2:1}))),addRequestImage:t=>e((e=>({requestImages:[...e.requestImages,t]}))),setRequestImages:t=>e((e=>({requestImages:t}))),removeImage:n=>{const r=t().requestImages;let i=[...r];n<0||n>=r.length||(i.splice(n,1),e((e=>({requestImages:i}))))},updateRegion:(n,r)=>{let i=[...t().regions];i[r]=n,e((e=>({regions:i})))},setRegions:t=>e((e=>({regions:t}))),setQuery:t=>e((e=>({query:t}))),resetRegions:()=>e((e=>({regions:[Array(3)].map((()=>({x1:0,x2:1,y1:0,y2:1})))}))),reset:()=>e((e=>({requestImages:[],query:"",regions:[Array(3)].map((()=>({x1:0,x2:1,y1:0,y2:1})))})))}))),qa=Ga;var Za=n(4007),Ka=n(4458),Xa=n(2061);const $a=!1,Ja=t.createContext(null);var es="unmounted",ts="exited",ns="entering",rs="entered",is="exiting",os=function(e){function n(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=ts,r.appearStatus=ns):i=rs:i=t.unmountOnExit||t.mountOnEnter?es:ts,r.state={status:i},r.nextCallback=null,r}(0,I.A)(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===es?{status:ts}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==ns&&n!==rs&&(t=ns):n!==ns&&n!==rs||(t=is)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===ns){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:la.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ts&&this.setState({status:es})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[la.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||$a?this.safeSetState({status:rs},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:ns},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:rs},(function(){t.props.onEntered(o,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:la.findDOMNode(this);t&&!$a?(this.props.onExit(r),this.safeSetState({status:is},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:ts},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:ts},(function(){e.props.onExited(r)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:la.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===es)return null;var n=this.props,r=n.children,i=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,(0,de.A)(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return t.createElement(Ja.Provider,{value:null},"function"===typeof r?r(e,i):t.cloneElement(t.Children.only(r),i))},n}(t.Component);function as(){}os.contextType=Ja,os.propTypes={},os.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:as,onEntering:as,onEntered:as,onExit:as,onExiting:as,onExited:as},os.UNMOUNTED=es,os.EXITED=ts,os.ENTERING=ns,os.ENTERED=rs,os.EXITING=is;const ss=os;var ls=n(1980),us=n(4040);function cs(){return(0,D.A)()||us.A}var ds=function(e){return e.scrollTop};function fs(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"===typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}var hs={entering:{opacity:1},entered:{opacity:1}},ps={enter:ls.p0.enteringScreen,exit:ls.p0.leavingScreen},gs=t.forwardRef((function(e,n){var r=e.children,i=e.disableStrictModeCompat,o=void 0!==i&&i,a=e.in,s=e.onEnter,l=e.onEntered,u=e.onEntering,c=e.onExit,d=e.onExited,f=e.onExiting,h=e.style,p=e.TransitionComponent,g=void 0===p?ss:p,m=e.timeout,y=void 0===m?ps:m,v=(0,sa.A)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),b=cs(),x=b.unstable_strictMode&&!o,w=t.useRef(null),M=(0,fa.A)(r.ref,n),S=(0,fa.A)(x?w:void 0,M),j=function(e){return function(t,n){if(e){var r=x?[w.current,t]:[t,n],i=(0,Xa.A)(r,2),o=i[0],a=i[1];void 0===a?e(o):e(o,a)}}},N=j(u),C=j((function(e,t){ds(e);var n=fs({style:h,timeout:y},{mode:"enter"});e.style.webkitTransition=b.transitions.create("opacity",n),e.style.transition=b.transitions.create("opacity",n),s&&s(e,t)})),A=j(l),E=j(f),D=j((function(e){var t=fs({style:h,timeout:y},{mode:"exit"});e.style.webkitTransition=b.transitions.create("opacity",t),e.style.transition=b.transitions.create("opacity",t),c&&c(e)})),k=j(d);return t.createElement(g,(0,T.A)({appear:!0,in:a,nodeRef:x?w:void 0,onEnter:C,onEntered:A,onEntering:N,onExit:D,onExited:k,onExiting:E,timeout:y},v),(function(e,n){return t.cloneElement(r,(0,T.A)({style:(0,T.A)({opacity:0,visibility:"exited"!==e||a?void 0:"hidden"},hs[e],h,r.props.style),ref:S},n))}))}));const ms=gs;var ys=t.forwardRef((function(e,n){var r=e.children,i=e.classes,o=e.className,a=e.invisible,s=void 0!==a&&a,l=e.open,u=e.transitionDuration,c=e.TransitionComponent,d=void 0===c?ms:c,f=(0,sa.A)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return t.createElement(d,(0,T.A)({in:l,timeout:u},f),t.createElement("div",{className:(0,Za.A)(i.root,o,s&&i.invisible),"aria-hidden":!0,ref:n},r))}));const vs=(0,Ka.A)({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(ys);var bs=n(376);function xs(e,t){var n=function(e,t){var n,r=t.getBoundingClientRect();if(t.fakeTransform)n=t.fakeTransform;else{var i=window.getComputedStyle(t);n=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var o=0,a=0;if(n&&"none"!==n&&"string"===typeof n){var s=n.split("(")[1].split(")")[0].split(",");o=parseInt(s[4],10),a=parseInt(s[5],10)}return"left"===e?"translateX(".concat(window.innerWidth,"px) translateX(").concat(o-r.left,"px)"):"right"===e?"translateX(-".concat(r.left+r.width-o,"px)"):"up"===e?"translateY(".concat(window.innerHeight,"px) translateY(").concat(a-r.top,"px)"):"translateY(-".concat(r.top+r.height-a,"px)")}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}var ws={enter:ls.p0.enteringScreen,exit:ls.p0.leavingScreen},Ms=t.forwardRef((function(e,n){var r=e.children,i=e.direction,o=void 0===i?"down":i,a=e.in,s=e.onEnter,l=e.onEntered,u=e.onEntering,c=e.onExit,d=e.onExited,f=e.onExiting,h=e.style,p=e.timeout,g=void 0===p?ws:p,m=e.TransitionComponent,y=void 0===m?ss:m,v=(0,sa.A)(e,["children","direction","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),b=cs(),x=t.useRef(null),w=t.useCallback((function(e){x.current=la.findDOMNode(e)}),[]),M=(0,fa.A)(r.ref,w),S=(0,fa.A)(M,n),j=function(e){return function(t){e&&(void 0===t?e(x.current):e(x.current,t))}},N=j((function(e,t){xs(o,e),ds(e),s&&s(e,t)})),C=j((function(e,t){var n=fs({timeout:g,style:h},{mode:"enter"});e.style.webkitTransition=b.transitions.create("-webkit-transform",(0,T.A)({},n,{easing:b.transitions.easing.easeOut})),e.style.transition=b.transitions.create("transform",(0,T.A)({},n,{easing:b.transitions.easing.easeOut})),e.style.webkitTransform="none",e.style.transform="none",u&&u(e,t)})),A=j(l),E=j(f),D=j((function(e){var t=fs({timeout:g,style:h},{mode:"exit"});e.style.webkitTransition=b.transitions.create("-webkit-transform",(0,T.A)({},t,{easing:b.transitions.easing.sharp})),e.style.transition=b.transitions.create("transform",(0,T.A)({},t,{easing:b.transitions.easing.sharp})),xs(o,e),c&&c(e)})),k=j((function(e){e.style.webkitTransition="",e.style.transition="",d&&d(e)})),O=t.useCallback((function(){x.current&&xs(o,x.current)}),[o]);return t.useEffect((function(){if(!a&&"down"!==o&&"right"!==o){var e=(0,bs.A)((function(){x.current&&xs(o,x.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[o,a]),t.useEffect((function(){a||O()}),[a,O]),t.createElement(y,(0,T.A)({nodeRef:x,onEnter:N,onEntered:A,onEntering:C,onExit:D,onExited:k,onExiting:E,appear:!0,in:a,timeout:g},v),(function(e,n){return t.cloneElement(r,(0,T.A)({ref:S,style:(0,T.A)({visibility:"exited"!==e||a?void 0:"hidden"},h,r.props.style)},n))}))}));const Ss=Ms;var js=t.forwardRef((function(e,n){var r=e.classes,i=e.className,o=e.component,a=void 0===o?"div":o,s=e.square,l=void 0!==s&&s,u=e.elevation,c=void 0===u?1:u,d=e.variant,f=void 0===d?"elevation":d,h=(0,sa.A)(e,["classes","className","component","square","elevation","variant"]);return t.createElement(a,(0,T.A)({className:(0,Za.A)(r.root,i,"outlined"===f?r.outlined:r["elevation".concat(c)],!l&&r.rounded),ref:n},h))}));const Ns=(0,Ka.A)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),(0,T.A)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(js);var Cs=n(6557),As={left:"right",right:"left",top:"down",bottom:"up"};var Ts={enter:ls.p0.enteringScreen,exit:ls.p0.leavingScreen},Es=t.forwardRef((function(e,n){var r=e.anchor,i=void 0===r?"left":r,o=e.BackdropProps,a=e.children,s=e.classes,l=e.className,u=e.elevation,c=void 0===u?16:u,d=e.ModalProps,f=(d=void 0===d?{}:d).BackdropProps,h=(0,sa.A)(d,["BackdropProps"]),p=e.onClose,g=e.open,m=void 0!==g&&g,y=e.PaperProps,v=void 0===y?{}:y,b=e.SlideProps,x=e.TransitionComponent,w=void 0===x?Ss:x,M=e.transitionDuration,S=void 0===M?Ts:M,j=e.variant,N=void 0===j?"temporary":j,C=(0,sa.A)(e,["anchor","BackdropProps","children","classes","className","elevation","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"]),A=cs(),E=t.useRef(!1);t.useEffect((function(){E.current=!0}),[]);var D=function(e,t){return"rtl"===e.direction&&function(e){return-1!==["left","right"].indexOf(e)}(t)?As[t]:t}(A,i),k=t.createElement(Ns,(0,T.A)({elevation:"temporary"===N?c:0,square:!0},v,{className:(0,Za.A)(s.paper,s["paperAnchor".concat((0,Cs.A)(D))],v.className,"temporary"!==N&&s["paperAnchorDocked".concat((0,Cs.A)(D))])}),a);if("permanent"===N)return t.createElement("div",(0,T.A)({className:(0,Za.A)(s.root,s.docked,l),ref:n},C),k);var O=t.createElement(w,(0,T.A)({in:m,direction:As[D],timeout:S,appear:E.current},b),k);return"persistent"===N?t.createElement("div",(0,T.A)({className:(0,Za.A)(s.root,s.docked,l),ref:n},C),O):t.createElement(Pa,(0,T.A)({BackdropProps:(0,T.A)({},o,f,{transitionDuration:S}),BackdropComponent:vs,className:(0,Za.A)(s.root,s.modal,l),open:m,onClose:p,ref:n},C,h),O)}));const Ds=(0,Ka.A)((function(e){return{root:{},docked:{flex:"0 0 auto"},paper:{overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:e.zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},paperAnchorLeft:{left:0,right:"auto"},paperAnchorRight:{left:"auto",right:0},paperAnchorTop:{top:0,left:0,bottom:"auto",right:0,height:"auto",maxHeight:"100%"},paperAnchorBottom:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},paperAnchorDockedLeft:{borderRight:"1px solid ".concat(e.palette.divider)},paperAnchorDockedTop:{borderBottom:"1px solid ".concat(e.palette.divider)},paperAnchorDockedRight:{borderLeft:"1px solid ".concat(e.palette.divider)},paperAnchorDockedBottom:{borderTop:"1px solid ".concat(e.palette.divider)},modal:{}}}),{name:"MuiDrawer",flip:!1})(Es);var ks=n(8730),Os=n.n(ks),Is=n(8594),_s=n.n(Is);const Ps=async e=>e instanceof HTMLCanvasElement?e:await(0,Is.urlOrBlobToCanvas)(e),Ls=async(e,t)=>{const n=new(_s())(t);let r=await n.findRegions(e);const i=(e=>{if(0===e.length)return Hn;const t=e.reduce(((e,t)=>(e.confidence=e.confidence||0,t.confidence=t.confidence||0,e.confidence>=t.confidence?e:t)));return t.normalizedRect})(r);return{selectedRegion:(0,qn.isEqual)(i,Hn)?Hn:i,regions:r}},zs=e=>{let{image:t,settings:n,region:r,filters:i,text:o}=e;const a=new(_s())(n);let s=o?{text:o}:{};return r&&(s={...s,cropRect:r}),a.find(s,t,i)},Rs=Wa()(((e,t)=>({detectedObject:{},setDetectedObject:(n,r)=>{let i={...t().detectedObject};i[r]=n,e((e=>({detectedObject:i})))},reset:()=>e((e=>({detectedObject:{}})))}))),Fs=Rs,Us=()=>{const e=Er(),n=Dr((e=>e.search.preFilter)),r=Dr((e=>e.search.firstSearchResults)),i=Dr((e=>e.settings.regions)),{setRequestImages:o,setImageRegions:a}=qa((e=>({setRequestImages:e.setRequestImages,setImageRegions:e.setRegions,requestImages:e.requestImages,regions:e.regions}))),{setDetectedObject:s}=Fs((e=>({setDetectedObject:e.setDetectedObject}))),l=(0,t.useCallback)((async t=>{let l,u,{image:c,settings:d,showFeedback:f=!0,imageRegion:h,newSearch:p,compress:g=!0,preFilterParams:m}=t,y=h;if(g)try{u=await jr(c)}catch(S){}let v=await Ps(u||c),b=await Ps(c);if(h||(e(lr(v)),o([v])),i&&!h)try{let t=await Ls(b,d);s(t.regions,0),e(sr(t.regions)),y=t.selectedRegion,e(cr(y)),a([y])}catch(S){}const x=[{key:d.visualSearchFilterKey,values:Object.keys(m||n)}];let w=[];try{var M;l=await zs({image:b,settings:d,filters:(0,qn.isEmpty)(m||n)?void 0:x,region:y}),null===(M=l)||void 0===M||M.results.forEach((e=>{w.push({sku:e.sku,score:e.score})}));const t={...l,filters:w};e(ur(t)),f&&e(mr(!0)),r&&!p||(e(vr(t)),e(yr(v)),e(br(n)))}catch(S){e(gr(!1))}return l}),[e,r,n,i,s,a,o]),u=(0,t.useCallback)((async t=>{let{images:r,settings:i,regions:o,showFeedback:a=!0,preFilterParams:s}=t;const l=[{key:i.visualSearchFilterKey,values:Object.keys(s||n)}];let u=[];try{const t=await(e=>{let{images:t,settings:n,regions:r,filters:i,text:o}=e,a=o?{text:o}:{};return new(_s())(n).findMulti(a,t,r,i)})({images:r,settings:i,regions:o,filters:(0,qn.isEmpty)(s||n)?void 0:l});null===t||void 0===t||t.results.forEach((e=>{u.push({sku:e.sku,score:e.score})}));const c={...t,filters:u};e(ur(c)),a&&e(mr(!0))}catch(c){e(gr(!1))}}),[e,n]);return{singleImageSearch:l,multiImageSearch:u}};var Bs=n(5923),Vs=n(8542),Qs=n(2474);function Hs(e,n){var r=Object.create(null);return e&&t.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return n&&(0,t.isValidElement)(e)?n(e):e}(e)})),r}function Ys(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Ws(e,n,r){var i=Hs(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var u=i[l][r];s[i[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(n,i);return Object.keys(o).forEach((function(a){var s=o[a];if((0,t.isValidElement)(s)){var l=a in n,u=a in i,c=n[a],d=(0,t.isValidElement)(c)&&!c.props.in;!u||l&&!d?u||!l||d?u&&l&&(0,t.isValidElement)(c)&&(o[a]=(0,t.cloneElement)(s,{onExited:r.bind(null,s),in:c.props.in,exit:Ys(s,"exit",e),enter:Ys(s,"enter",e)})):o[a]=(0,t.cloneElement)(s,{in:!1}):o[a]=(0,t.cloneElement)(s,{onExited:r.bind(null,s),in:!0,exit:Ys(s,"exit",e),enter:Ys(s,"enter",e)})}})),o}var Gs=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},qs=function(e){function n(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind((0,Qs.A)(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}(0,I.A)(n,e);var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(e,n){var r,i,o=n.children,a=n.handleExited;return{children:n.firstRender?(r=e,i=a,Hs(r.children,(function(e){return(0,t.cloneElement)(e,{onExited:i.bind(null,e),in:!0,appear:Ys(e,"appear",r),enter:Ys(e,"enter",r),exit:Ys(e,"exit",r)})}))):Ws(e,o,a),firstRender:!1}},r.handleExited=function(e,t){var n=Hs(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,T.A)({},t.children);return delete n[e.key],{children:n}})))},r.render=function(){var e=this.props,n=e.component,r=e.childFactory,i=(0,de.A)(e,["component","childFactory"]),o=this.state.contextValue,a=Gs(this.state.children).map(r);return delete i.appear,delete i.enter,delete i.exit,null===n?t.createElement(Ja.Provider,{value:o},a):t.createElement(Ja.Provider,{value:o},t.createElement(n,i,a))},n}(t.Component);qs.propTypes={},qs.defaultProps={component:"div",childFactory:function(e){return e}};const Zs=qs;var Ks="undefined"===typeof window?t.useEffect:t.useLayoutEffect;const Xs=function(e){var n=e.classes,r=e.pulsate,i=void 0!==r&&r,o=e.rippleX,a=e.rippleY,s=e.rippleSize,l=e.in,u=e.onExited,c=void 0===u?function(){}:u,d=e.timeout,f=t.useState(!1),h=f[0],p=f[1],g=(0,Za.A)(n.ripple,n.rippleVisible,i&&n.ripplePulsate),m={width:s,height:s,top:-s/2+a,left:-s/2+o},y=(0,Za.A)(n.child,h&&n.childLeaving,i&&n.childPulsate),v=(0,ya.A)(c);return Ks((function(){if(!l){p(!0);var e=setTimeout(v,d);return function(){clearTimeout(e)}}}),[v,l,d]),t.createElement("span",{className:g,style:m},t.createElement("span",{className:y}))};var $s=t.forwardRef((function(e,n){var r=e.center,i=void 0!==r&&r,o=e.classes,a=e.className,s=(0,sa.A)(e,["center","classes","className"]),l=t.useState([]),u=l[0],c=l[1],d=t.useRef(0),f=t.useRef(null);t.useEffect((function(){f.current&&(f.current(),f.current=null)}),[u]);var h=t.useRef(!1),p=t.useRef(null),g=t.useRef(null),m=t.useRef(null);t.useEffect((function(){return function(){clearTimeout(p.current)}}),[]);var y=t.useCallback((function(e){var n=e.pulsate,r=e.rippleX,i=e.rippleY,a=e.rippleSize,s=e.cb;c((function(e){return[].concat((0,wa.A)(e),[t.createElement(Xs,{key:d.current,classes:o,timeout:550,pulsate:n,rippleX:r,rippleY:i,rippleSize:a})])})),d.current+=1,f.current=s}),[o]),v=t.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,o=void 0!==r&&r,a=t.center,s=void 0===a?i||t.pulsate:a,l=t.fakeElement,u=void 0!==l&&l;if("mousedown"===e.type&&h.current)h.current=!1;else{"touchstart"===e.type&&(h.current=!0);var c,d,f,v=u?null:m.current,b=v?v.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,w=x.clientX,M=x.clientY;c=Math.round(w-b.left),d=Math.round(M-b.top)}if(s)(f=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2===0&&(f+=1);else{var S=2*Math.max(Math.abs((v?v.clientWidth:0)-c),c)+2,j=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;f=Math.sqrt(Math.pow(S,2)+Math.pow(j,2))}e.touches?null===g.current&&(g.current=function(){y({pulsate:o,rippleX:c,rippleY:d,rippleSize:f,cb:n})},p.current=setTimeout((function(){g.current&&(g.current(),g.current=null)}),80)):y({pulsate:o,rippleX:c,rippleY:d,rippleSize:f,cb:n})}}),[i,y]),b=t.useCallback((function(){v({},{pulsate:!0})}),[v]),x=t.useCallback((function(e,t){if(clearTimeout(p.current),"touchend"===e.type&&g.current)return e.persist(),g.current(),g.current=null,void(p.current=setTimeout((function(){x(e,t)})));g.current=null,c((function(e){return e.length>0?e.slice(1):e})),f.current=t}),[]);return t.useImperativeHandle(n,(function(){return{pulsate:b,start:v,stop:x}}),[b,v,x]),t.createElement("span",(0,T.A)({className:(0,Za.A)(o.root,a),ref:m},s),t.createElement(Zs,{component:null,exit:!0},u))}));const Js=(0,Ka.A)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(t.memo($s));var el=t.forwardRef((function(e,n){var r=e.action,i=e.buttonRef,o=e.centerRipple,a=void 0!==o&&o,s=e.children,l=e.classes,u=e.className,c=e.component,d=void 0===c?"button":c,f=e.disabled,h=void 0!==f&&f,p=e.disableRipple,g=void 0!==p&&p,m=e.disableTouchRipple,y=void 0!==m&&m,v=e.focusRipple,b=void 0!==v&&v,x=e.focusVisibleClassName,w=e.onBlur,M=e.onClick,S=e.onFocus,j=e.onFocusVisible,N=e.onKeyDown,C=e.onKeyUp,A=e.onMouseDown,E=e.onMouseLeave,D=e.onMouseUp,k=e.onTouchEnd,O=e.onTouchMove,I=e.onTouchStart,_=e.onDragLeave,P=e.tabIndex,L=void 0===P?0:P,z=e.TouchRippleProps,R=e.type,F=void 0===R?"button":R,U=(0,sa.A)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),B=t.useRef(null);var V=t.useRef(null),Q=t.useState(!1),H=Q[0],Y=Q[1];h&&H&&Y(!1);var W=(0,Vs.A)(),G=W.isFocusVisible,q=W.onBlurVisible,Z=W.ref;function K(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;return(0,ya.A)((function(r){return t&&t(r),!n&&V.current&&V.current[e](r),!0}))}t.useImperativeHandle(r,(function(){return{focusVisible:function(){Y(!0),B.current.focus()}}}),[]),t.useEffect((function(){H&&b&&!g&&V.current.pulsate()}),[g,b,H]);var X=K("start",A),$=K("stop",_),J=K("stop",D),ee=K("stop",(function(e){H&&e.preventDefault(),E&&E(e)})),te=K("start",I),ne=K("stop",k),re=K("stop",O),ie=K("stop",(function(e){H&&(q(e),Y(!1)),w&&w(e)}),!1),oe=(0,ya.A)((function(e){B.current||(B.current=e.currentTarget),G(e)&&(Y(!0),j&&j(e)),S&&S(e)})),ae=function(){var e=la.findDOMNode(B.current);return d&&"button"!==d&&!("A"===e.tagName&&e.href)},se=t.useRef(!1),le=(0,ya.A)((function(e){b&&!se.current&&H&&V.current&&" "===e.key&&(se.current=!0,e.persist(),V.current.stop(e,(function(){V.current.start(e)}))),e.target===e.currentTarget&&ae()&&" "===e.key&&e.preventDefault(),N&&N(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!h&&(e.preventDefault(),M&&M(e))})),ue=(0,ya.A)((function(e){b&&" "===e.key&&V.current&&H&&!e.defaultPrevented&&(se.current=!1,e.persist(),V.current.stop(e,(function(){V.current.pulsate(e)}))),C&&C(e),M&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&M(e)})),ce=d;"button"===ce&&U.href&&(ce="a");var de={};"button"===ce?(de.type=F,de.disabled=h):("a"===ce&&U.href||(de.role="button"),de["aria-disabled"]=h);var fe=(0,fa.A)(i,n),he=(0,fa.A)(Z,B),pe=(0,fa.A)(fe,he),ge=t.useState(!1),me=ge[0],ye=ge[1];t.useEffect((function(){ye(!0)}),[]);var ve=me&&!g&&!h;return t.createElement(ce,(0,T.A)({className:(0,Za.A)(l.root,u,H&&[l.focusVisible,x],h&&l.disabled),onBlur:ie,onClick:M,onFocus:oe,onKeyDown:le,onKeyUp:ue,onMouseDown:X,onMouseLeave:ee,onMouseUp:J,onDragLeave:$,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:pe,tabIndex:h?-1:L},de,U),s,ve?t.createElement(Js,(0,T.A)({ref:V,center:a},z)):null)}));const tl=(0,Ka.A)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(el);var nl=t.forwardRef((function(e,n){var r=e.children,i=e.classes,o=e.className,a=e.color,s=void 0===a?"default":a,l=e.component,u=void 0===l?"button":l,c=e.disabled,d=void 0!==c&&c,f=e.disableElevation,h=void 0!==f&&f,p=e.disableFocusRipple,g=void 0!==p&&p,m=e.endIcon,y=e.focusVisibleClassName,v=e.fullWidth,b=void 0!==v&&v,x=e.size,w=void 0===x?"medium":x,M=e.startIcon,S=e.type,j=void 0===S?"button":S,N=e.variant,C=void 0===N?"text":N,A=(0,sa.A)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),E=M&&t.createElement("span",{className:(0,Za.A)(i.startIcon,i["iconSize".concat((0,Cs.A)(w))])},M),D=m&&t.createElement("span",{className:(0,Za.A)(i.endIcon,i["iconSize".concat((0,Cs.A)(w))])},m);return t.createElement(tl,(0,T.A)({className:(0,Za.A)(i.root,i[C],o,"inherit"===s?i.colorInherit:"default"!==s&&i["".concat(C).concat((0,Cs.A)(s))],"medium"!==w&&[i["".concat(C,"Size").concat((0,Cs.A)(w))],i["size".concat((0,Cs.A)(w))]],h&&i.disableElevation,d&&i.disabled,b&&i.fullWidth),component:u,disabled:d,focusRipple:!g,focusVisibleClassName:(0,Za.A)(i.focusVisible,y),ref:n,type:j},A),t.createElement("span",{className:i.label},E,r,D))}));const rl=(0,Ka.A)((function(e){return{root:(0,T.A)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:(0,Bs.X4)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,Bs.X4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,Bs.X4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat((0,Bs.X4)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:(0,Bs.X4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat((0,Bs.X4)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:(0,Bs.X4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(nl);var il=n(8596);const ol=function(e){let{handleClose:t}=e;return(0,La.jsxs)("div",{className:"bg-white pb-6 h-full overflow-auto",children:[(0,La.jsx)("div",{style:{display:"flex",justifyContent:"end",position:"sticky",top:0,background:"white",width:"100%"},children:(0,La.jsx)(rl,{onClick:t,style:{paddingTop:"8px",paddingRight:"8px"},children:(0,La.jsx)(il.A,{fontSize:"small"})})}),(0,La.jsxs)("div",{children:[(0,La.jsx)("p",{style:{fontSize:"40px",lineHeight:"40px",fontWeight:700,color:"#2B2C46",paddingLeft:"24px",paddingRight:"24px"},children:"Six ways to optimize visual search"}),(0,La.jsx)("div",{style:{display:"flex",flexDirection:"column",rowGap:"16px",marginTop:"16px",paddingLeft:"24px",paddingRight:"24px"},children:Wn.map(((e,t)=>(0,La.jsxs)("div",{style:{display:"flex",flexDirection:"column",rowGap:"8px"},children:[(0,La.jsx)("p",{style:{fontSize:"16px",lineHeight:"24px",fontWeight:700,color:"#2B2C46",marginBottom:"0px"},children:"".concat(t+1,"- ").concat(e.title)}),(0,La.jsx)("p",{style:{fontSize:"14px",lineHeight:"20px",fontWeight:400,color:"#2B2C46",marginBottom:"0px"},children:e.description}),(0,La.jsxs)("div",{style:{display:"flex",columnGap:"16px"},children:[(0,La.jsx)("div",{children:(0,La.jsx)("img",{src:e.imageLeft,alt:""})}),(0,La.jsx)("div",{children:(0,La.jsx)("img",{src:e.imageRight,alt:""})})]})]},t)))})]})]})};var al=n(8598);const sl=()=>{const e=Er(),n=Dr((e=>e.search.preFilter)),{setRequestImages:r,setImageRegions:i}=qa((e=>({setRequestImages:e.setRequestImages,setImageRegions:e.setRegions,requestImages:e.requestImages,regions:e.regions}))),{setDetectedObject:o}=Fs((e=>({setDetectedObject:e.setDetectedObject})));return{cadSearch:(0,t.useCallback)((async t=>{var a;let s,{file:l,settings:u,showFeedback:c=!0,imageRegion:d,newSearch:f}=t;const h=[{key:u.visualSearchFilterKey,values:Object.keys(n)}];let p=[];try{var g,m,y,v;s=await(e=>{let{file:t,options:n,settings:r,filters:i}=e;return new(_s())(r).findByCad(t,{},i)})({file:l,settings:u,filters:(0,qn.isEmpty)(n)?void 0:h}),null===(g=s)||void 0===g||null===(m=g.responseBody)||void 0===m||m.results.forEach((e=>{p.push({sku:e.sku,score:e.score})}));const t={...null===(y=s)||void 0===y?void 0:y.responseBody,filters:p};e(ur(t));const a=null===(v=s)||void 0===v?void 0:v.requestUrl.split("?")[1],b=new URLSearchParams(a).get("img"),x=await(e=>{let{url:t,settings:n}=e;return new(_s())(n).getCadRequestImage(t)})({url:encodeURIComponent(b||""),settings:u});(function(e){return new Promise(((t,n)=>{const r=new Image,i=URL.createObjectURL(e);r.src=i,r.onload=()=>{const e=document.createElement("canvas"),o=e.getContext("2d");o?(e.width=r.width,e.height=r.height,o.drawImage(r,0,0),URL.revokeObjectURL(i),t(e)):n(new Error("Failed to get canvas context"))},r.onerror=()=>{URL.revokeObjectURL(i),n(new Error("Failed to load image from Blob"))}}))})(x.data).then((async t=>{e(lr(t)),r([t]),e(yr(t));try{let n=d,r=await Ls(t,u);o(r.regions,0),e(sr(r.regions)),n=r.selectedRegion,e(cr(n)),i([n])}catch(n){}})).catch((e=>{console.error("Error converting Blob to Canvas:",e)})),c&&e(mr(!0)),f&&(e(vr(t)),e(br(n)))}catch(b){e(gr(!1))}return null===(a=s)||void 0===a?void 0:a.responseBody}),[e,n,o,i,r])}};const ll=function(e){var n;const{show:r,onClose:i,newSearch:o}=e,a=(0,t.useRef)(null),s=Dr((e=>e.settings)),l=ke(),u=Er(),c=window.settings.cadSearch,{singleImageSearch:d,multiImageSearch:f}=Us(),{requestImages:h,setRequestImages:p,regions:g}=qa((e=>({requestImages:e.requestImages,setRequestImages:e.setRequestImages,regions:e.regions}))),{cadSearch:m}=sl(),[y,v]=(0,t.useState)([]),[b,x]=(0,t.useState)(0),[w,M]=(0,t.useState)(!1),S=h.length>0&&!o,j=y.length!==h.length,N=async e=>{const t=await jr(e);let n=await Ps(t);v((e=>[...e,n]))},C=async e=>{(0,Is.isCadFile)(e)&&c?(u(gr(!0)),u($n()),"/result"!==l.location.pathname&&l.push("/result"),m({file:e,settings:s,newSearch:!0}).then((e=>{u(gr(!1))}))):(u(gr(!0)),u($n()),"/result"!==l.location.pathname&&l.push("/result"),d({image:e,settings:s,newSearch:o,showFeedback:!0}).then((()=>{u(gr(!1))}))),u(er(!1)),A()},A=()=>{i()};return(0,t.useEffect)((()=>{o?(v([]),x(0)):(v([...h]),x(h.length))}),[h,o,r]),(0,La.jsxs)(La.Fragment,{children:[w&&(0,La.jsx)(La.Fragment,{children:(0,la.createPortal)((0,La.jsx)(La.Fragment,{children:(0,La.jsx)("div",{className:"wrap-filter-desktop absolute top-0 flex items-center justify-center bg-black/50 w-screen h-screen z-[9999]",children:(0,La.jsx)(ol,{handleClose:()=>M((e=>!e))})})}),document.body)}),(0,La.jsx)("div",{className:"box-camera-custom",children:(0,La.jsx)(Ds,{anchor:"bottom",open:r,onClose:()=>A(),className:"modal-togggle-cam !bg-[#2B2C46]",children:(0,La.jsxs)("div",{className:"h-full flex flex-col overflow-hidden",children:[(0,La.jsxs)("div",{className:"min-h-[60px] bg-[#2B2C46] flex justify-end",children:[(0,La.jsx)("div",{className:"h-[60px] w-[60px] flex justify-center items-center",onClick:()=>{M((e=>!e))},children:(0,La.jsx)(al.Icon,{name:"info",className:"text-white w-4 h-4"})}),(0,La.jsx)("div",{className:"h-[60px] w-[60px] flex justify-center items-center",onClick:()=>A(),children:(0,La.jsx)(al.Icon,{name:"close",className:"text-white w-4 h-4"})})]}),(0,La.jsx)("div",{className:Ai()(["flex","justify-center","items-center","h-full","overflow-hidden","px-2","rounded-lg"]),children:(0,La.jsx)("div",{className:"wrap-camera h-full w-full !bg-[#55566B] rounded-lg",children:(0,La.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",width:"100%"},className:"h-full rounded-lg",children:[b<y.length&&(0,La.jsx)("img",{className:"h-full object-contain",src:y[b].toDataURL(),alt:""}),(0,La.jsx)(Os(),{audio:!1,width:"100%",className:"rounded-lg",imageSmoothing:!0,screenshotFormat:"image/jpeg",forceScreenshotSourceSize:!0,videoConstraints:{width:1080,aspectRatio:1.11111,facingMode:"environment"},ref:a,style:{height:"100%",width:"100%",objectFit:"cover",transform:"scale(".concat(1,")"),display:b<y.length?"none":""},screenshotQuality:1,children:e=>{let{getScreenshot:t}=e;return(0,La.jsxs)("div",{className:Ai()(["absolute","left-0","right-0","mx-auto","bottom-8","items-center","justify-center","gap-x-8","mr-16",b<y.length?"hidden":"flex"]),children:[(0,La.jsxs)("div",{children:[(0,La.jsx)("input",{id:"icon-button-file",type:"file",style:{display:"none"},onChange:e=>{var t;const n=null===(t=e.target)||void 0===t?void 0:t.files[0];n&&(S?(x((e=>Math.min(e+1,2))),N(n)):C(n))},accept:"".concat(c?".stp,.step,.stl,.obj,.glb,.gltf,":"","image/jpeg,image/png,image/webp"),onClick:e=>{e.target.value=""}}),(0,La.jsx)("label",{htmlFor:"icon-button-file",children:(0,La.jsx)("div",{className:"w-12 h-12 bg-[#615e669f] rounded-full border-2 border-solid border-white flex justify-center items-center",children:(0,La.jsx)(al.Icon,{name:"gallery",className:"text-white w-4 h-4"})})})]}),(0,La.jsx)("button",{onClick:()=>{const e=t();S?(N(e),x((e=>Math.min(e+1,2)))):C(e)},className:Ai()(["w-fit","bg-transparent","border","border-white","rounded-full","flex","justify-center","items-center","p-0.5"]),children:(0,La.jsx)("svg",{width:"63",height:"63",viewBox:"0 0 63 63",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,La.jsx)("circle",{cx:"31.5",cy:"31.5",r:"31.5",fill:"white"})})})]})}})]})})}),0===y.length&&(0,La.jsx)("div",{className:Ai()(["min-h-[60px]","bg-[#2B2C46]","flex","justify-end"])}),y.length>0&&s.multiImageSearch&&(0,La.jsxs)(La.Fragment,{children:[(0,La.jsxs)("div",{className:Ai()(["min-h-[106px]","bg-primary","flex","justify-center","items-center","gap-x-1"]),children:[null===y||void 0===y?void 0:y.map(((e,t)=>(0,La.jsx)("div",{className:Ai()(["rounded-md","p-1.5",b===t?" bg-[#3E36DC]":"bg-transparent"]),children:(0,La.jsx)("img",{className:Ai()(["w-[70px]","h-[70px]","rounded-md","object-cover"]),src:e.toDataURL(),alt:"",onClick:()=>{x(t)}})},t))),null===(n=[...Array(3-y.length)])||void 0===n?void 0:n.map(((e,t)=>(0,La.jsx)("div",{className:Ai()(["rounded-md","p-1.5",b===t+y.length?" bg-[#3E36DC]":"bg-transparent"]),children:(0,La.jsx)("div",{className:Ai()(["w-[70px]","h-[70px]","flex","justify-center","items-center","rounded-md",b===t+y.length?"bg-primary":"border border-[#AAABB5] border-dashed bg-[#55566B]"]),onClick:()=>{x(t+y.length)}},t)},t)))]}),(0,La.jsx)("div",{className:"w-full flex justify-center pb-6 bg-primary",children:(0,La.jsxs)("div",{className:Ai()(["","h-11","w-full","px-7","max-w-[351px]","flex","justify-center","items-center","gap-x-4","rounded-3xl",j?"bg-secondary drop-shadow-md":"bg-primary"]),onClick:()=>{j&&(p(y),u(gr(!0)),u($n()),f({images:y,regions:g,settings:s}).then((()=>{u(gr(!1))})),A())},children:[(0,La.jsx)("div",{className:Ai()(["text-base","text-[#55566B]",j?"text-white":"text-[#55566B]"]),children:"Multi-Image Search for better matches"}),(0,La.jsx)(al.Icon,{name:"next_arrow",className:Ai()(["text-[#55566B]",j?"text-white":"text-[#55566B]"])})]})})]})]})})})]})};const ul=function(e){let{onClose:n,onContinue:r,isMobile:i}=e;const[o,a]=(0,t.useState)(!1),s=window.settings.cadSearch;return(0,La.jsx)(La.Fragment,{children:(0,la.createPortal)((0,La.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black/50 w-screen h-screen z-[9999]",children:(0,La.jsxs)("div",{className:"bg-white w-80",children:[(0,La.jsxs)("div",{className:"p-4",children:[(0,La.jsxs)("div",{className:"flex justify-between items-center",children:[(0,La.jsx)("div",{className:"font-bold text-xl",children:"Replace Current Data?"}),(0,La.jsx)(al.Icon,{name:"close",className:"cursor-pointer",width:12,height:12,onClick:n})]}),(0,La.jsx)("p",{className:"text-sm mt-4",children:"Uploading a new image will overwrite your current search parameters, text, and results. Are you sure you want to proceed?"}),(0,La.jsxs)("div",{className:"mt-4 gap-x-2 flex",children:[(0,La.jsx)("input",{type:"checkbox",className:"w-4",onChange:e=>{a(e.target.checked)}}),"Don't show this again"]})]}),(0,La.jsxs)("div",{className:"flex",children:[(0,La.jsx)("button",{className:"w-1/2 h-16 p-4 text-start text-sm text-white bg-[#2B2C46]",onClick:()=>n(),children:"Cancel"}),(0,La.jsx)("label",{className:"w-1/2 h-16 p-4 text-start text-sm text-white bg-[#E31B5D] cursor-pointer",htmlFor:i?"":"nyris__upload-photo",onClick:()=>{i&&r({dontShowAgain:o})},children:"Continue"}),(0,La.jsx)("input",{type:"file",name:"take-picture",id:"nyris__upload-photo",accept:"".concat(s?".stp,.step,.stl,.obj,.glb,.gltf,":"","image/jpeg,image/png,image/webp"),onChange:(0,al.makeFileHandler)((e=>r({file:e,dontShowAgain:o}))),style:{display:"none"}})]})]})}),document.body)})};var cl={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},dl=t.forwardRef((function(e,n){var r=e.align,i=void 0===r?"inherit":r,o=e.classes,a=e.className,s=e.color,l=void 0===s?"initial":s,u=e.component,c=e.display,d=void 0===c?"initial":c,f=e.gutterBottom,h=void 0!==f&&f,p=e.noWrap,g=void 0!==p&&p,m=e.paragraph,y=void 0!==m&&m,v=e.variant,b=void 0===v?"body1":v,x=e.variantMapping,w=void 0===x?cl:x,M=(0,sa.A)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),S=u||(y?"p":w[b]||cl[b])||"span";return t.createElement(S,(0,T.A)({className:(0,Za.A)(o.root,a,"inherit"!==b&&o[b],"initial"!==l&&o["color".concat((0,Cs.A)(l))],g&&o.noWrap,h&&o.gutterBottom,y&&o.paragraph,"inherit"!==i&&o["align".concat((0,Cs.A)(i))],"initial"!==d&&o["display".concat((0,Cs.A)(d))]),ref:n},M))}));const fl=(0,Ka.A)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(dl);var hl=n(2405);function pl(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var gl={entering:{opacity:1,transform:pl(1)},entered:{opacity:1,transform:"none"}},ml=t.forwardRef((function(e,n){var r=e.children,i=e.disableStrictModeCompat,o=void 0!==i&&i,a=e.in,s=e.onEnter,l=e.onEntered,u=e.onEntering,c=e.onExit,d=e.onExited,f=e.onExiting,h=e.style,p=e.timeout,g=void 0===p?"auto":p,m=e.TransitionComponent,y=void 0===m?ss:m,v=(0,sa.A)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),b=t.useRef(),x=t.useRef(),w=cs(),M=w.unstable_strictMode&&!o,S=t.useRef(null),j=(0,fa.A)(r.ref,n),N=(0,fa.A)(M?S:void 0,j),C=function(e){return function(t,n){if(e){var r=M?[S.current,t]:[t,n],i=(0,Xa.A)(r,2),o=i[0],a=i[1];void 0===a?e(o):e(o,a)}}},A=C(u),E=C((function(e,t){ds(e);var n,r=fs({style:h,timeout:g},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===g?(n=w.transitions.getAutoHeightDuration(e.clientHeight),x.current=n):n=i,e.style.transition=[w.transitions.create("opacity",{duration:n,delay:o}),w.transitions.create("transform",{duration:.666*n,delay:o})].join(","),s&&s(e,t)})),D=C(l),k=C(f),O=C((function(e){var t,n=fs({style:h,timeout:g},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===g?(t=w.transitions.getAutoHeightDuration(e.clientHeight),x.current=t):t=r,e.style.transition=[w.transitions.create("opacity",{duration:t,delay:i}),w.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=pl(.75),c&&c(e)})),I=C(d);return t.useEffect((function(){return function(){clearTimeout(b.current)}}),[]),t.createElement(y,(0,T.A)({appear:!0,in:a,nodeRef:M?S:void 0,onEnter:E,onEntered:D,onEntering:A,onExit:O,onExited:I,onExiting:k,addEndListener:function(e,t){var n=M?e:t;"auto"===g&&(b.current=setTimeout(n,x.current||0))},timeout:"auto"===g?null:g},v),(function(e,n){return t.cloneElement(r,(0,T.A)({style:(0,T.A)({opacity:0,transform:pl(.75),visibility:"exited"!==e||a?void 0:"hidden"},gl[e],h,r.props.style),ref:N},n))}))}));ml.muiSupportAuto=!0;const yl=ml;var vl="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,bl=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(vl&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var xl=vl&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),bl))}};function wl(e){return e&&"[object Function]"==={}.toString.call(e)}function Ml(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Sl(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function jl(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Ml(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:jl(Sl(e))}function Nl(e){return e&&e.referenceNode?e.referenceNode:e}var Cl=vl&&!(!window.MSInputMethodContext||!document.documentMode),Al=vl&&/MSIE 10/.test(navigator.userAgent);function Tl(e){return 11===e?Cl:10===e?Al:Cl||Al}function El(e){if(!e)return document.documentElement;for(var t=Tl(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Ml(n,"position")?El(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Dl(e){return null!==e.parentNode?Dl(e.parentNode):e}function kl(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||r.contains(i))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||El(e.firstElementChild)===e)}(a)?a:El(a);var s=Dl(e);return s.host?kl(s.host,t):kl(e,Dl(t).host)}function Ol(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function Il(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function _l(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Tl(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function Pl(e){var t=e.body,n=e.documentElement,r=Tl(10)&&getComputedStyle(n);return{height:_l("Height",t,n,r),width:_l("Width",t,n,r)}}var Ll=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),zl=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Rl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Fl(e){return Rl({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Ul(e){var t={};try{if(Tl(10)){t=e.getBoundingClientRect();var n=Ol(e,"top"),r=Ol(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(qi){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?Pl(e.ownerDocument):{},a=o.width||e.clientWidth||i.width,s=o.height||e.clientHeight||i.height,l=e.offsetWidth-a,u=e.offsetHeight-s;if(l||u){var c=Ml(e);l-=Il(c,"x"),u-=Il(c,"y"),i.width-=l,i.height-=u}return Fl(i)}function Bl(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Tl(10),i="HTML"===t.nodeName,o=Ul(e),a=Ul(t),s=jl(e),l=Ml(t),u=parseFloat(l.borderTopWidth),c=parseFloat(l.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=Fl({top:o.top-a.top-u,left:o.left-a.left-c,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!r&&i){var f=parseFloat(l.marginTop),h=parseFloat(l.marginLeft);d.top-=u-f,d.bottom-=u-f,d.left-=c-h,d.right-=c-h,d.marginTop=f,d.marginLeft=h}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Ol(t,"top"),i=Ol(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}(d,t)),d}function Vl(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===Ml(e,"position"))return!0;var n=Sl(e);return!!n&&Vl(n)}function Ql(e){if(!e||!e.parentElement||Tl())return document.documentElement;for(var t=e.parentElement;t&&"none"===Ml(t,"transform");)t=t.parentElement;return t||document.documentElement}function Hl(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?Ql(e):kl(e,Nl(t));if("viewport"===r)o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=Bl(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:Ol(n),s=t?0:Ol(n,"left");return Fl({top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o})}(a,i);else{var s=void 0;"scrollParent"===r?"BODY"===(s=jl(Sl(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=Bl(s,a,i);if("HTML"!==s.nodeName||Vl(a))o=l;else{var u=Pl(e.ownerDocument),c=u.height,d=u.width;o.top+=l.top-l.marginTop,o.bottom=c+l.top,o.left+=l.left-l.marginLeft,o.right=d+l.left}}var f="number"===typeof(n=n||0);return o.left+=f?n:n.left||0,o.top+=f?n:n.top||0,o.right-=f?n:n.right||0,o.bottom-=f?n:n.bottom||0,o}function Yl(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=Hl(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return Rl({key:e},s[e],{area:(t=s[e],t.width*t.height)});var t})).sort((function(e,t){return t.area-e.area})),u=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),c=u.length>0?u[0].key:l[0].key,d=e.split("-")[1];return c+(d?"-"+d:"")}function Wl(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Bl(n,r?Ql(t):kl(t,Nl(n)),r)}function Gl(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function ql(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function Zl(e,t,n){n=n.split("-")[0];var r=Gl(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",u=o?"width":"height";return i[a]=t[a]+t[l]/2-r[l]/2,i[s]=n===s?t[s]-r[u]:t[ql(s)],i}function Kl(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Xl(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=Kl(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&wl(n)&&(t.offsets.popper=Fl(t.offsets.popper),t.offsets.reference=Fl(t.offsets.reference),t=n(t,e))})),t}function $l(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Wl(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Yl(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=Zl(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Xl(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Jl(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function eu(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if("undefined"!==typeof document.body.style[o])return o}return null}function tu(){return this.state.isDestroyed=!0,Jl(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[eu("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function nu(e){var t=e.ownerDocument;return t?t.defaultView:window}function ru(e,t,n,r){var i="BODY"===e.nodeName,o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||ru(jl(o.parentNode),t,n,r),r.push(o)}function iu(e,t,n,r){n.updateBound=r,nu(e).addEventListener("resize",n.updateBound,{passive:!0});var i=jl(e);return ru(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function ou(){this.state.eventsEnabled||(this.state=iu(this.reference,this.options,this.state,this.scheduleUpdate))}function au(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,nu(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function su(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function lu(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&su(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var uu=vl&&/Firefox/i.test(navigator.userAgent);function cu(e,t,n){var r=Kl(e,(function(e){return e.name===t})),i=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}var du=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],fu=du.slice(3);function hu(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=fu.indexOf(e),r=fu.slice(n+1).concat(fu.slice(0,n));return t?r.reverse():r}var pu="flip",gu="clockwise",mu="counterclockwise";function yu(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(Kl(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return u=u.map((function(e,r){var i=(1===r?!o:o)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0===a.indexOf("%")){return Fl("%p"===a?n:r)[t]/100*o}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(e,i,t,n)}))})),u.forEach((function(e,t){e.forEach((function(n,r){su(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))}))})),i}var vu={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",u=s?"width":"height",c={start:zl({},l,o[l]),end:zl({},l,o[l]+o[u]-a[u])};e.offsets.popper=Rl({},a,c[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],l=void 0;return l=su(+n)?[+n,0]:yu(n,o,a,s),"left"===s?(o.top+=l[0],o.left-=l[1]):"right"===s?(o.top+=l[0],o.left+=l[1]):"top"===s?(o.left+=l[0],o.top-=l[1]):"bottom"===s&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||El(e.instance.popper);e.instance.reference===n&&(n=El(n));var r=eu("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=Hl(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=l;var u=t.priority,c=e.offsets.popper,d={primary:function(e){var n=c[e];return c[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(c[e],l[e])),zl({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=c[n];return c[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(c[n],l[e]-("right"===e?c.width:c.height))),zl({},n,r)}};return u.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=Rl({},c,d[t](e))})),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",l=a?"left":"top",u=a?"width":"height";return n[s]<o(r[l])&&(e.offsets.popper[l]=o(r[l])-n[u]),n[l]>o(r[s])&&(e.offsets.popper[l]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!cu(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"===typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,s=o.reference,l=-1!==["left","right"].indexOf(i),u=l?"height":"width",c=l?"Top":"Left",d=c.toLowerCase(),f=l?"left":"top",h=l?"bottom":"right",p=Gl(r)[u];s[h]-p<a[d]&&(e.offsets.popper[d]-=a[d]-(s[h]-p)),s[d]+p>a[h]&&(e.offsets.popper[d]+=s[d]+p-a[h]),e.offsets.popper=Fl(e.offsets.popper);var g=s[d]+s[u]/2-p/2,m=Ml(e.instance.popper),y=parseFloat(m["margin"+c]),v=parseFloat(m["border"+c+"Width"]),b=g-e.offsets.popper[d]-y-v;return b=Math.max(Math.min(a[u]-p,b),0),e.arrowElement=r,e.offsets.arrow=(zl(n={},d,Math.round(b)),zl(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(Jl(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=Hl(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=ql(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case pu:a=[r,i];break;case gu:a=hu(r);break;case mu:a=hu(r,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],i=ql(r);var u=e.offsets.popper,c=e.offsets.reference,d=Math.floor,f="left"===r&&d(u.right)>d(c.left)||"right"===r&&d(u.left)<d(c.right)||"top"===r&&d(u.bottom)>d(c.top)||"bottom"===r&&d(u.top)<d(c.bottom),h=d(u.left)<d(n.left),p=d(u.right)>d(n.right),g=d(u.top)<d(n.top),m=d(u.bottom)>d(n.bottom),y="left"===r&&h||"right"===r&&p||"top"===r&&g||"bottom"===r&&m,v=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(v&&"start"===o&&h||v&&"end"===o&&p||!v&&"start"===o&&g||!v&&"end"===o&&m),x=!!t.flipVariationsByContent&&(v&&"start"===o&&p||v&&"end"===o&&h||!v&&"start"===o&&m||!v&&"end"===o&&g),w=b||x;(f||y||w)&&(e.flipped=!0,(f||y)&&(r=a[l+1]),w&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=Rl({},e.offsets.popper,Zl(e.instance.popper,e.offsets.reference,e.placement)),e=Xl(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=ql(t),e.offsets.popper=Fl(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!cu(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Kl(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=Kl(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:t.gpuAcceleration,s=El(e.instance.popper),l=Ul(s),u={position:i.position},c=function(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(e){return e},l=o(i.width),u=o(r.width),c=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),f=t?c||d||l%2===u%2?o:a:s,h=t?o:s;return{left:f(l%2===1&&u%2===1&&!d&&t?r.left-1:r.left),top:h(r.top),bottom:h(r.bottom),right:f(r.right)}}(e,window.devicePixelRatio<2||!uu),d="bottom"===n?"top":"bottom",f="right"===r?"left":"right",h=eu("transform"),p=void 0,g=void 0;if(g="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+c.bottom:-l.height+c.bottom:c.top,p="right"===f?"HTML"===s.nodeName?-s.clientWidth+c.right:-l.width+c.right:c.left,a&&h)u[h]="translate3d("+p+"px, "+g+"px, 0)",u[d]=0,u[f]=0,u.willChange="transform";else{var m="bottom"===d?-1:1,y="right"===f?-1:1;u[d]=g*m,u[f]=p*y,u.willChange=d+", "+f}var v={"x-placement":e.placement};return e.attributes=Rl({},v,e.attributes),e.styles=Rl({},u,e.styles),e.arrowStyles=Rl({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return lu(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&lu(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,i){var o=Wl(i,t,e,n.positionFixed),a=Yl(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),lu(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},bu={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:vu},xu=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=xl(this.update.bind(this)),this.options=Rl({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Rl({},e.Defaults.modifiers,i.modifiers)).forEach((function(t){r.options.modifiers[t]=Rl({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return Rl({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&wl(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return Ll(e,[{key:"update",value:function(){return $l.call(this)}},{key:"destroy",value:function(){return tu.call(this)}},{key:"enableEventListeners",value:function(){return ou.call(this)}},{key:"disableEventListeners",value:function(){return au.call(this)}}]),e}();xu.Utils=("undefined"!==typeof window?window:n.g).PopperUtils,xu.placements=du,xu.Defaults=bu;const wu=xu;function Mu(e){return"function"===typeof e?e():e}var Su="undefined"!==typeof window?t.useLayoutEffect:t.useEffect,ju={},Nu=t.forwardRef((function(e,n){var r=e.anchorEl,i=e.children,o=e.container,a=e.disablePortal,s=void 0!==a&&a,l=e.keepMounted,u=void 0!==l&&l,c=e.modifiers,d=e.open,f=e.placement,h=void 0===f?"bottom":f,p=e.popperOptions,g=void 0===p?ju:p,m=e.popperRef,y=e.style,v=e.transition,b=void 0!==v&&v,x=(0,sa.A)(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),w=t.useRef(null),M=(0,fa.A)(w,n),S=t.useRef(null),j=(0,fa.A)(S,m),N=t.useRef(j);Su((function(){N.current=j}),[j]),t.useImperativeHandle(m,(function(){return S.current}),[]);var C=t.useState(!0),A=C[0],E=C[1],k=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(h,(0,D.A)()),O=t.useState(k),I=O[0],_=O[1];t.useEffect((function(){S.current&&S.current.update()}));var P=t.useCallback((function(){if(w.current&&r&&d){S.current&&(S.current.destroy(),N.current(null));var e=function(e){_(e.placement)},t=(Mu(r),new wu(Mu(r),w.current,(0,T.A)({placement:k},g,{modifiers:(0,T.A)({},s?{}:{preventOverflow:{boundariesElement:"window"}},c,g.modifiers),onCreate:(0,ma.A)(e,g.onCreate),onUpdate:(0,ma.A)(e,g.onUpdate)})));N.current(t)}}),[r,s,c,d,k,g]),L=t.useCallback((function(e){(0,da.A)(M,e),P()}),[M,P]),z=function(){S.current&&(S.current.destroy(),N.current(null))};if(t.useEffect((function(){return function(){z()}}),[]),t.useEffect((function(){d||b||z()}),[d,b]),!u&&!d&&(!b||A))return null;var R={placement:I};return b&&(R.TransitionProps={in:d,onEnter:function(){E(!1)},onExited:function(){E(!0),z()}}),t.createElement(ga,{disablePortal:s,container:o},t.createElement("div",(0,T.A)({ref:L,role:"tooltip"},x,{style:(0,T.A)({position:"fixed",top:0,left:0,display:d||!u||b?null:"none"},y)}),"function"===typeof i?i(R):i))}));const Cu=Nu;var Au=n(5102),Tu=n(6586);function Eu(e){return Math.round(1e5*e)/1e5}var Du=!1,ku=null;var Ou=t.forwardRef((function(e,n){var r=e.arrow,i=void 0!==r&&r,o=e.children,a=e.classes,s=e.disableFocusListener,l=void 0!==s&&s,u=e.disableHoverListener,c=void 0!==u&&u,d=e.disableTouchListener,f=void 0!==d&&d,h=e.enterDelay,p=void 0===h?100:h,g=e.enterNextDelay,m=void 0===g?0:g,y=e.enterTouchDelay,v=void 0===y?700:y,b=e.id,x=e.interactive,w=void 0!==x&&x,M=e.leaveDelay,S=void 0===M?0:M,j=e.leaveTouchDelay,N=void 0===j?1500:j,C=e.onClose,A=e.onOpen,E=e.open,D=e.placement,k=void 0===D?"bottom":D,O=e.PopperComponent,I=void 0===O?Cu:O,_=e.PopperProps,P=e.title,L=e.TransitionComponent,z=void 0===L?yl:L,R=e.TransitionProps,F=(0,sa.A)(e,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"]),U=cs(),B=t.useState(),V=B[0],Q=B[1],H=t.useState(null),Y=H[0],W=H[1],G=t.useRef(!1),q=t.useRef(),Z=t.useRef(),K=t.useRef(),X=t.useRef(),$=(0,Tu.A)({controlled:E,default:!1,name:"Tooltip",state:"open"}),J=(0,Xa.A)($,2),ee=J[0],te=J[1],ne=ee,re=(0,Au.A)(b);t.useEffect((function(){return function(){clearTimeout(q.current),clearTimeout(Z.current),clearTimeout(K.current),clearTimeout(X.current)}}),[]);var ie=function(e){clearTimeout(ku),Du=!0,te(!0),A&&A(e)},oe=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=o.props;"mouseover"===t.type&&n.onMouseOver&&e&&n.onMouseOver(t),G.current&&"touchstart"!==t.type||(V&&V.removeAttribute("title"),clearTimeout(Z.current),clearTimeout(K.current),p||Du&&m?(t.persist(),Z.current=setTimeout((function(){ie(t)}),Du?m:p)):ie(t))}},ae=(0,Vs.A)(),se=ae.isFocusVisible,le=ae.onBlurVisible,ue=ae.ref,ce=t.useState(!1),de=ce[0],fe=ce[1],he=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){V||Q(t.currentTarget),se(t)&&(fe(!0),oe()(t));var n=o.props;n.onFocus&&e&&n.onFocus(t)}},pe=function(e){clearTimeout(ku),ku=setTimeout((function(){Du=!1}),800+S),te(!1),C&&C(e),clearTimeout(q.current),q.current=setTimeout((function(){G.current=!1}),U.transitions.duration.shortest)},ge=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=o.props;"blur"===t.type&&(n.onBlur&&e&&n.onBlur(t),de&&(fe(!1),le())),"mouseleave"===t.type&&n.onMouseLeave&&t.currentTarget===V&&n.onMouseLeave(t),clearTimeout(Z.current),clearTimeout(K.current),t.persist(),K.current=setTimeout((function(){pe(t)}),S)}},me=function(e){G.current=!0;var t=o.props;t.onTouchStart&&t.onTouchStart(e)},ye=(0,fa.A)(Q,n),ve=(0,fa.A)(ue,ye),be=t.useCallback((function(e){(0,da.A)(ve,la.findDOMNode(e))}),[ve]),xe=(0,fa.A)(o.ref,be);""===P&&(ne=!1);var we=!ne&&!c,Me=(0,T.A)({"aria-describedby":ne?re:null,title:we&&"string"===typeof P?P:null},F,o.props,{className:(0,Za.A)(F.className,o.props.className),onTouchStart:me,ref:xe}),Se={};f||(Me.onTouchStart=function(e){me(e),clearTimeout(K.current),clearTimeout(q.current),clearTimeout(X.current),e.persist(),X.current=setTimeout((function(){oe()(e)}),v)},Me.onTouchEnd=function(e){o.props.onTouchEnd&&o.props.onTouchEnd(e),clearTimeout(X.current),clearTimeout(K.current),e.persist(),K.current=setTimeout((function(){pe(e)}),N)}),c||(Me.onMouseOver=oe(),Me.onMouseLeave=ge(),w&&(Se.onMouseOver=oe(!1),Se.onMouseLeave=ge(!1))),l||(Me.onFocus=he(),Me.onBlur=ge(),w&&(Se.onFocus=he(!1),Se.onBlur=ge(!1)));var je=t.useMemo((function(){return(0,hl.A)({popperOptions:{modifiers:{arrow:{enabled:Boolean(Y),element:Y}}}},_)}),[Y,_]);return t.createElement(t.Fragment,null,t.cloneElement(o,Me),t.createElement(I,(0,T.A)({className:(0,Za.A)(a.popper,w&&a.popperInteractive,i&&a.popperArrow),placement:k,anchorEl:V,open:!!V&&ne,id:Me["aria-describedby"],transition:!0},Se,je),(function(e){var n=e.placement,r=e.TransitionProps;return t.createElement(z,(0,T.A)({timeout:U.transitions.duration.shorter},r,R),t.createElement("div",{className:(0,Za.A)(a.tooltip,a["tooltipPlacement".concat((0,Cs.A)(n.split("-")[0]))],G.current&&a.touch,i&&a.tooltipArrow)},P,i?t.createElement("span",{className:a.arrow,ref:W}):null))})))}));const Iu=(0,Ka.A)((function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none"},popperInteractive:{pointerEvents:"auto"},popperArrow:{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}},tooltip:{backgroundColor:(0,Bs.X4)(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(Eu(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},tooltipArrow:{position:"relative",margin:"0"},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:(0,Bs.X4)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(Eu(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:(0,He.A)({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:(0,He.A)({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:(0,He.A)({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:(0,He.A)({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip",flip:!1})(Ou);var _u=t.forwardRef((function(e,n){var r=e.animation,i=void 0===r?"pulse":r,o=e.classes,a=e.className,s=e.component,l=void 0===s?"span":s,u=e.height,c=e.variant,d=void 0===c?"text":c,f=e.width,h=(0,sa.A)(e,["animation","classes","className","component","height","variant","width"]),p=Boolean(h.children);return t.createElement(l,(0,T.A)({ref:n,className:(0,Za.A)(o.root,o[d],a,p&&[o.withChildren,!f&&o.fitContent,!u&&o.heightAuto],!1!==i&&o[i])},h,{style:(0,T.A)({width:f,height:u},h.style)}))}));const Pu=(0,Ka.A)((function(e){return{root:{display:"block",backgroundColor:(0,Bs.X4)(e.palette.text.primary,"light"===e.palette.type?.11:.13),height:"1.2em"},text:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 60%",transform:"scale(1, 0.60)",borderRadius:e.shape.borderRadius,"&:empty:before":{content:'"\\00a0"'}},rect:{},circle:{borderRadius:"50%"},pulse:{animation:"$pulse 1.5s ease-in-out 0.5s infinite"},"@keyframes pulse":{"0%":{opacity:1},"50%":{opacity:.4},"100%":{opacity:1}},wave:{position:"relative",overflow:"hidden","&::after":{animation:"$wave 1.6s linear 0.5s infinite",background:"linear-gradient(90deg, transparent, ".concat(e.palette.action.hover,", transparent)"),content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}},"@keyframes wave":{"0%":{transform:"translateX(-100%)"},"60%":{transform:"translateX(100%)"},"100%":{transform:"translateX(100%)"}},withChildren:{"& > *":{visibility:"hidden"}},fitContent:{maxWidth:"fit-content"},heightAuto:{height:"auto"}}}),{name:"MuiSkeleton"})(_u);function Lu(e,t){return(null===e||void 0===e?void 0:e.length)>t?(null===e||void 0===e?void 0:e.slice(0,t))+"...":e}var zu=n(1811);const Ru=function(e){var n,r;const{handleClose:i}=e,o=Er(),a=Dr((e=>e)),{settings:s}=a,[l,u]=(0,t.useState)([]),c=aa().get("query")||"",{search:d}=a,{preFilter:f,requestImage:h,selectedRegion:p}=d,[g,m]=(0,t.useState)(f||{}),[y,v]=(0,t.useState)(""),[b,x]=(0,t.useState)(!1),[w,M]=(0,t.useState)(0),S=(0,Qe.useMediaQuery)({query:"(max-width: 776px)"}),{singleImageSearch:j,multiImageSearch:N}=Us(),{imageRegions:C,requestImages:A}=qa((e=>({requestImages:e.requestImages,updateRegion:e.updateRegion,resetRegions:e.resetRegions,imageRegions:e.regions}))),T=(0,t.useMemo)((()=>Object.keys(g).reduce(((e,t)=>!0===g[t]?e+1:e),0)),[g]);(0,t.useEffect)((()=>{E()}),[]);const E=async()=>{x(!0);const e=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=arguments.length>1?arguments[1]:void 0;return new(_s())(t).getFilters(e)}(1e3,s).then((e=>{var t;const n=((null===(t=e.find((e=>e.key===s.visualSearchFilterKey)))||void 0===t?void 0:t.values)||[]).sort().reduce(((e,t)=>{var n;if(!t[0])return e;let r=null===(n=t[0])||void 0===n?void 0:n.toLocaleUpperCase();return e[r]?e[r].push(t):e[r]=[t],e}),{});u(n),M(Object.keys(n).length)})).catch((e=>{console.log("err getDataFilterDesktop",e)})).finally((()=>{x(!1)}));return e},D=async e=>{if(!e)return void E();const t=await async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;const r=t||"";return new(_s())(n).searchFilters(e,r)}(s.visualSearchFilterKey,encodeURIComponent(e),s).then((e=>{e.length>0?(u({[e[0][0].toLocaleUpperCase()]:e}),e.length<=20?M(1):e.length<=40?M(2):M(4)):(u({}),M(4))})).catch((e=>{console.log("err filterSearchHandler",e)}));return t},k=()=>{var e;const t=(0,qn.pickBy)(g,(e=>!!e));if(o(ar(t)),i(),null!==(e=s.algolia)&&void 0!==e&&e.enabled||!c&&!h){if(0===A.length)return;o(gr(!0)),o($n()),1===A.length?j({image:A[0],settings:s,imageRegion:C[0],preFilterParams:t,compress:!1}).then((e=>{o(gr(!1))})):N({images:A,settings:s,regions:C,preFilterParams:t}).then((e=>{o(gr(!1))}))}else{let e,n=[];const r=[{key:s.visualSearchFilterKey,values:Object.keys(t)}];o(gr(!0)),zs({image:null===h||void 0===h?void 0:h.canvas,settings:s,filters:(0,qn.isEmpty)(t)?void 0:r,region:p,text:c}).then((t=>{null===t||void 0===t||t.results.forEach((e=>{n.push({sku:e.sku,score:e.score})})),e={...t,filters:n},o(ur(e)),o(gr(!1))})).catch((e=>{o(gr(!1))}))}},{t:O}=Qi();return(0,La.jsxs)("div",{className:"box-child-component-filter-desktop",style:{position:"relative",display:"flex",flexDirection:"column"},children:[(0,La.jsxs)("div",{style:{background:"white",width:"100%",display:"flex",justifyContent:"space-between",position:"sticky",top:0,zIndex:100},children:[(0,La.jsx)(fl,{style:{color:"#000",fontSize:"24px",fontWeight:700,paddingLeft:"14px",marginBottom:S?"0px":"-8px",marginTop:S?"0px":"24px"},children:s.preFilterTitle}),(0,La.jsx)(rl,{onClick:i,children:(0,La.jsx)(il.A,{})})]}),(0,La.jsx)("div",{className:"box-top",style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:(0,La.jsxs)("div",{className:"box-input-search-filter",style:{width:S?"100%":"",display:"flex",justifyItems:"center"},children:[(0,La.jsx)("div",{className:"icon-search",style:{marginRight:11,display:"flex",justifyContent:"center",alignItems:"center"},children:(0,La.jsx)(al.Icon,{name:"search",width:18,height:18,style:{maxWidth:"fit-content"}})}),(0,La.jsx)("input",{className:"input-search-filter",placeholder:O("Search"),onChange:e=>{D(e.target.value),v(e.target.value)},value:y}),(0,La.jsx)(rl,{className:"btn-clear-text",onClick:()=>{v(""),D("")},children:(0,La.jsx)(zu.A,{style:{fontSize:16,color:"#2B2C46"}})})]})}),!(0,qn.isEmpty)(g)&&T>0&&(0,La.jsx)("div",{style:{padding:"10px 16px 10px 16px",display:"flex",justifyContent:"space-between",backgroundColor:"#FAFAFA"},children:(0,La.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",rowGap:"8px",columnGap:"8px",alignItems:"baseline",fontSize:"12px",marginBottom:"4px"},children:[Object.keys(g).map(((e,t)=>g[e]?(0,La.jsxs)("div",{className:"box-keyFilter",style:{display:"flex",height:"fit-content",gap:"8px"},children:[(0,La.jsx)(fl,{className:"keyFilter",children:e}),(0,La.jsx)(rl,{style:{padding:0},onClick:()=>m({...g,[e]:!1}),children:(0,La.jsx)(il.A,{style:{fontSize:12,color:"#2B2C46"}})})]},t):(0,La.jsx)(La.Fragment,{}))),(0,La.jsx)("p",{style:{fontWeight:"bold",color:"#000"},children:"".concat(T,"/").concat(10)}),(0,La.jsx)("div",{style:{color:"#E31B5D",fontSize:"12px",cursor:"pointer",marginLeft:"12px"},onClick:()=>{m({})},children:O("Clear all")})]})}),(0,La.jsxs)("div",{className:"box-bottom",style:S?{columnCount:1,height:"100%",marginBottom:g?"50px":"0px"}:w<=4?{columnCount:w,height:"100%",padding:"24px 24px 40px 24px",backgroundColor:"#FAFAFA"}:{columnCount:4,padding:"24px 24px 40px 24px",height:"100%",backgroundColor:"#FAFAFA"},children:[Object.entries(l).sort().map(((e,t)=>{let[n,r]=e;return(0,La.jsx)("div",{className:"box-group-items",children:(0,La.jsxs)("div",{style:{display:"flex",flexDirection:"column",rowGap:"12px",width:"100%"},children:[(0,La.jsx)(fl,{style:{fontWeight:"bold",color:"#000",fontSize:"12px"},children:n}),r.map(((e,t)=>(0,La.jsx)(Iu,{title:e,placement:"top",arrow:!0,disableHoverListener:e.length<35,children:(0,La.jsx)("div",{"aria-label":e,style:{cursor:"pointer",fontSize:"12px",minHeight:"20px",color:"#2B2C46",width:"100%",maxWidth:"fit-content",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",backgroundColor:g[e]?"#E9E9EC":"",borderRadius:8,paddingLeft:"8px",paddingRight:"8px"},onClick:()=>{T<10&&m({...g,[e]:!g[e]})},children:Lu(e,35)})},e)))]})},n)})),b&&(0,La.jsx)("div",{style:{columnCount:S?1:4},children:Array(12).fill("").map(((e,t)=>(0,La.jsxs)("div",{style:{marginBottom:5},children:[(0,La.jsx)(Pu,{animation:"pulse",height:30,width:60}),Array(6).fill("").map(((e,t)=>(0,La.jsx)(Pu,{animation:"pulse",height:30},t)))]},t)))}),(0,qn.isEmpty)(l)&&!b&&(0,La.jsx)(fl,{children:"No result found"})]}),!S&&(0,La.jsxs)("div",{className:"footer",style:{height:64,marginTop:"auto",display:"flex"},children:[(0,La.jsx)(rl,{className:"button-left",style:{width:"50%",backgroundColor:s.theme.secondaryColor,color:"#fff",borderRadius:0,justifyContent:"flex-start",textTransform:"none",paddingLeft:"16px",paddingTop:"16px",paddingBottom:"32px"},onClick:()=>i(),children:O("Cancel")}),(0,La.jsx)(rl,{className:"button-right",style:{width:"50%",backgroundColor:null===(n=s.theme)||void 0===n?void 0:n.primaryColor,color:"#fff",borderRadius:0,justifyContent:"flex-start",textTransform:"none",paddingLeft:"16px",paddingTop:"16px",paddingBottom:"32px"},onClick:()=>k(),children:O("Apply")})]}),S&&(0,La.jsxs)("div",{className:"footer",style:{height:64,marginTop:"auto",position:"fixed",bottom:"0px",left:"0px",width:"100vw",display:"flex"},children:[(0,La.jsx)(rl,{className:"button-left",style:{width:"50%",backgroundColor:s.theme.secondaryColor,color:"#fff",borderRadius:0,justifyContent:"flex-start",textTransform:"none"},onClick:()=>i(),children:O("Cancel")}),(0,La.jsx)(rl,{className:"button-right",style:{width:"50%",backgroundColor:null===(r=s.theme)||void 0===r?void 0:r.primaryColor,color:"#fff",borderRadius:0,justifyContent:"flex-start",textTransform:"none"},onClick:()=>k(),children:O("Apply")})]})]})},Fu=()=>{var e;const n=Er(),r=ke(),{requestImages:i,regions:o}=qa((e=>({requestImages:e.requestImages,regions:e.regions}))),a=Dr((e=>e.settings)),s=null===(e=a.algolia)||void 0===e?void 0:e.enabled;return(0,t.useCallback)((0,qn.debounce)((e=>{if(!s){let t;n(fr(e));let r=[];const s=[{key:a.visualSearchFilterKey,values:Object.keys(Ru)}];e||i.length>0?(n(gr(!0)),(0,qn.find)({image:i[0],settings:a,filters:(0,qn.isEmpty)(Ru)?void 0:s,region:o[0],text:e}).then((e=>{null===e||void 0===e||e.results.forEach((e=>{r.push({sku:e.sku,score:e.score})})),t={...e,filters:r},n(ur(t)),n(gr(!1)),n(mr(!0))})).catch((e=>{n(gr(!1))}))):n(ur([]))}e?r.push({pathname:"/result",search:"?query=".concat(e)}):r.push("/result")}),500),[i,Ru,o,s])};var Uu=t.createContext();const Bu=Uu;var Vu=t.forwardRef((function(e,n){var r=e.edge,i=void 0!==r&&r,o=e.children,a=e.classes,s=e.className,l=e.color,u=void 0===l?"default":l,c=e.disabled,d=void 0!==c&&c,f=e.disableFocusRipple,h=void 0!==f&&f,p=e.size,g=void 0===p?"medium":p,m=(0,sa.A)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return t.createElement(tl,(0,T.A)({className:(0,Za.A)(a.root,s,"default"!==u&&a["color".concat((0,Cs.A)(u))],d&&a.disabled,"small"===g&&a["size".concat((0,Cs.A)(g))],{start:a.edgeStart,end:a.edgeEnd}[i]),centerRipple:!0,focusRipple:!h,disabled:d,ref:n},m),t.createElement("span",{className:a.label},o))}));const Qu=(0,Ka.A)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:(0,Bs.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,Bs.X4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,Bs.X4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(Vu);var Hu=t.forwardRef((function(e,n){var r=e.autoFocus,i=e.checked,o=e.checkedIcon,a=e.classes,s=e.className,l=e.defaultChecked,u=e.disabled,c=e.icon,d=e.id,f=e.inputProps,h=e.inputRef,p=e.name,g=e.onBlur,m=e.onChange,y=e.onFocus,v=e.readOnly,b=e.required,x=e.tabIndex,w=e.type,M=e.value,S=(0,sa.A)(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),j=(0,Tu.A)({controlled:i,default:Boolean(l),name:"SwitchBase",state:"checked"}),N=(0,Xa.A)(j,2),C=N[0],A=N[1],E=t.useContext(Bu),D=u;E&&"undefined"===typeof D&&(D=E.disabled);var k="checkbox"===w||"radio"===w;return t.createElement(Qu,(0,T.A)({component:"span",className:(0,Za.A)(a.root,s,C&&a.checked,D&&a.disabled),disabled:D,tabIndex:null,role:void 0,onFocus:function(e){y&&y(e),E&&E.onFocus&&E.onFocus(e)},onBlur:function(e){g&&g(e),E&&E.onBlur&&E.onBlur(e)},ref:n},S),t.createElement("input",(0,T.A)({autoFocus:r,checked:i,defaultChecked:l,className:a.input,disabled:D,id:k&&d,name:p,onChange:function(e){var t=e.target.checked;A(t),m&&m(e,t)},readOnly:v,ref:h,required:b,tabIndex:x,type:w,value:M},f)),C?o:c)}));const Yu=(0,Ka.A)({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(Hu);var Wu=n(9984);const Gu=(0,Wu.A)(t.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),qu=(0,Wu.A)(t.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Zu=(0,Wu.A)(t.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");var Ku=t.createElement(qu,null),Xu=t.createElement(Gu,null),$u=t.createElement(Zu,null),Ju=t.forwardRef((function(e,n){var r=e.checkedIcon,i=void 0===r?Ku:r,o=e.classes,a=e.color,s=void 0===a?"secondary":a,l=e.icon,u=void 0===l?Xu:l,c=e.indeterminate,d=void 0!==c&&c,f=e.indeterminateIcon,h=void 0===f?$u:f,p=e.inputProps,g=e.size,m=void 0===g?"medium":g,y=(0,sa.A)(e,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","size"]),v=d?h:u,b=d?h:i;return t.createElement(Yu,(0,T.A)({type:"checkbox",classes:{root:(0,Za.A)(o.root,o["color".concat((0,Cs.A)(s))],d&&o.indeterminate),checked:o.checked,disabled:o.disabled},color:s,inputProps:(0,T.A)({"data-indeterminate":d},p),icon:t.cloneElement(v,{fontSize:void 0===v.props.fontSize&&"small"===m?m:v.props.fontSize}),checkedIcon:t.cloneElement(b,{fontSize:void 0===b.props.fontSize&&"small"===m?m:b.props.fontSize}),ref:n},y))}));const ec=(0,Ka.A)((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,Bs.X4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,Bs.X4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiCheckbox"})(Ju);function tc(e){let{children:n,enabled:r=!0,...i}=e;const[o,a]=(0,t.useState)();return(0,t.useEffect)((()=>{a(r)}),[r]),o?(0,La.jsx)("div",{...i,children:n}):(0,La.jsx)(La.Fragment,{})}function nc(e){let{icon:n,label:r,labelPosition:i="bottom",className:o="gap-1",classNameLabel:a=""}=e;const[s,l]=(0,t.useState)("");return(0,t.useEffect)((()=>{l(n)}),[n]),(0,La.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",paddingRight:"2px"},children:[r&&(0,La.jsx)("div",{className:a,children:(0,La.jsx)("p",{style:{fontSize:12,color:"#2B2C46",fontWeight:500},children:r})}),"remove"===s?(0,La.jsx)(al.Icon,{name:"minus"}):(0,La.jsx)(al.Icon,{name:"plus_rounded"})]})}let rc=0;const ic=Symbol(),oc=e=>!!e[ic],ac=e=>!e[ic].c,sc=e=>{var t;const{b:n,c:r}=e[ic];r&&(r(),null==(t=cc.get(n))||t())},lc=(e,t)=>{const n=e[ic].o,r=t[ic].o;return n===r||e===r||oc(n)&&lc(n,t)},uc=(e,t)=>{const n={b:e,o:t,c:null},r=new Promise((e=>{n.c=()=>{n.c=null,e()},t.finally(n.c)}));return r[ic]=n,r},cc=new WeakMap,dc=e=>"init"in e,fc="r",hc="w",pc="c",gc="s",mc="h",yc="n",vc="l",bc="a",xc="m",wc=e=>{const t=new WeakMap,n=new WeakMap,r=new Map;let i,o;if(i=new Set,o=new Set,e)for(const[E,D]of e){const e={v:D,r:0,y:!0,d:new Map};Object.freeze(e),dc(E)||console.warn("Found initial value for derived atom which can cause unexpected behavior",E),t.set(E,e)}const a=new WeakMap,s=new WeakMap,l=e=>{let t=s.get(e);return t||(t=new Map,s.set(e,t)),t},u=(e,n)=>{if(e){const t=l(e);let r=t.get(n);return r||(r=u(e.p,n),r&&"p"in r&&ac(r.p)&&(r=void 0),r&&t.set(n,r)),r}return t.get(n)},c=(e,n,i)=>{if(Object.freeze(i),e){l(e).set(n,i)}else{const e=t.get(n);t.set(n,i),r.has(n)||r.set(n,e)}},d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,n=arguments.length>2?arguments[2]:void 0;if(!n)return t;const r=new Map;let i=!1;return n.forEach((n=>{var o;const a=(null==(o=u(e,n))?void 0:o.r)||0;r.set(n,a),t.get(n)!==a&&(i=!0)})),t.size!==r.size||i?r:t},f=(e,t,n,r,i)=>{const o=u(e,t);if(o){if(i&&(!("p"in o)||!lc(o.p,i)))return o;"p"in o&&sc(o.p)}const a={v:n,r:(null==o?void 0:o.r)||0,y:!0,d:d(e,null==o?void 0:o.d,r)};let s=!(null==o?void 0:o.y);return o&&"v"in o&&Object.is(o.v,n)?a.d===o.d||a.d.size===o.d.size&&Array.from(a.d.keys()).every((e=>o.d.has(e)))||(s=!0,Promise.resolve().then((()=>{N(e)}))):(s=!0,++a.r,a.d.has(t)&&(a.d=new Map(a.d).set(t,a.r))),o&&!s?o:(c(e,t,a),a)},h=(e,t,n,r,i)=>{const o=u(e,t);if(o){if(i&&(!("p"in o)||!lc(o.p,i)))return o;"p"in o&&sc(o.p)}const a={e:n,r:((null==o?void 0:o.r)||0)+1,y:!0,d:d(e,null==o?void 0:o.d,r)};return c(e,t,a),a},p=(e,t,n,r)=>{const i=u(e,t);if(i&&"p"in i){if(lc(i.p,n)&&!ac(i.p))return i.y?i:{...i,y:!0};sc(i.p)}((e,t,n)=>{let r=a.get(t);r||(r=new Map,a.set(t,r)),n.then((()=>{r.get(e)===n&&(r.delete(e),r.size||a.delete(t))})),r.set(e,n)})(e,t,n);const o={p:n,r:((null==i?void 0:i.r)||0)+1,y:!0,d:d(e,null==i?void 0:i.d,r)};return c(e,t,o),o},g=(e,t,n,r)=>{if(n instanceof Promise){const i=uc(n,n.then((n=>{f(e,t,n,r,i)})).catch((n=>{if(n instanceof Promise)return oc(n)?n.then((()=>{m(e,t,!0)})):n;h(e,t,n,r,i)})));return p(e,t,i,r)}return f(e,t,n,r)},m=(e,t,r)=>{if(!r){const r=u(e,t);if(r){if(r.y&&"p"in r&&!ac(r.p))return r;if(r.d.forEach(((r,i)=>{if(i!==t)if(n.has(i)){const t=u(e,i);t&&!t.y&&m(e,i)}else m(e,i)})),Array.from(r.d).every((t=>{let[n,r]=t;const i=u(e,n);return i&&!("p"in i)&&i.r===r})))return r.y?r:{...r,y:!0}}}const i=new Set;try{const n=t.read((n=>{i.add(n);const r=n===t?u(e,n):m(e,n);if(r){if("e"in r)throw r.e;if("p"in r)throw r.p;return r.v}if(dc(n))return n.init;throw new Error("no atom init")}));return g(e,t,n,i)}catch(o){if(o instanceof Promise){const n=oc(o)&&ac(o)?(e=>uc(e[ic].b,e[ic].o))(o):uc(o,o);return p(e,t,n,i)}return h(e,t,o,i)}},y=(e,t)=>m(t,e),v=(e,t)=>!t.l.size&&(!t.t.size||1===t.t.size&&t.t.has(e)),b=(e,t)=>{const r=n.get(t);null==r||r.t.forEach((n=>{n!==t&&(((e,t)=>{const n=u(e,t);if(n){const r={...n,y:!1};c(e,t,r)}else console.warn("[Bug] could not invalidate non existing atom",t)})(e,n),b(e,n))}))},x=(e,t,n)=>{let r=!0;const i=(t,n)=>{const r=m(e,t);if("e"in r)throw r.e;if("p"in r){if(null==n?void 0:n.unstable_promise)return r.p.then((()=>{const o=u(e,t);return o&&"p"in o&&o.p===r.p?new Promise((e=>setTimeout(e))).then((()=>i(t,n))):i(t,n)}));throw console.info("Reading pending atom state in write operation. We throw a promise for now.",t),r.p}if("v"in r)return r.v;throw console.warn("[Bug] no value found while reading atom in write operation. This is probably a bug.",t),new Error("no value found")},o=t.write(i,((n,i)=>{let o;if(n===t){if(!dc(n))throw new Error("atom not writable");const t=(e=>{const t=new Set,n=a.get(e);return n&&(a.delete(e),n.forEach(((e,n)=>{sc(e),t.add(n)}))),t})(n);t.forEach((t=>{t!==e&&g(t,n,i)}));u(e,n)!==g(e,n,i)&&b(e,n)}else o=x(e,n,i);return r||N(e),o}),n);return r=!1,o},w=(e,t,n)=>{const r=x(n,e,t);return N(n),r},M=(e,t,r)=>{const i={t:new Set(r&&[r]),l:new Set};n.set(t,i),o.add(t);if(m(void 0,t).d.forEach(((r,i)=>{const o=n.get(i);o?o.t.add(t):i!==t&&M(e,i,t)})),(e=>!!e.write)(t)&&t.onMount){const n=n=>w(t,n,e),r=t.onMount(n);e=void 0,r&&(i.u=r)}return i},S=(e,t)=>{var r;const i=null==(r=n.get(t))?void 0:r.u;i&&i(),n.delete(t),o.delete(t);const a=u(e,t);a?("p"in a&&sc(a.p),a.d.forEach(((r,i)=>{if(i!==t){const r=n.get(i);r&&(r.t.delete(t),v(i,r)&&S(e,i))}}))):console.warn("[Bug] could not find atom state to unmount",t)},j=(e,t,r,i)=>{const o=new Set(r.d.keys());null==i||i.forEach(((r,i)=>{if(o.has(i))return void o.delete(i);const a=n.get(i);a&&(a.t.delete(t),v(i,a)&&S(e,i))})),o.forEach((r=>{const i=n.get(r);i?i.t.add(t):n.has(t)&&M(e,r,t)}))},N=e=>{if(e){l(e).forEach(((r,i)=>{if(r!==t.get(i)){const t=n.get(i);null==t||t.l.forEach((t=>t(e)))}}))}else{for(;r.size;){const e=Array.from(r);r.clear(),e.forEach((e=>{let[t,r]=e;const i=u(void 0,t);if(i&&i.d!==(null==r?void 0:r.d)&&j(void 0,t,i,null==r?void 0:r.d),r&&!r.y&&(null==i?void 0:i.y))return;const o=n.get(t);null==o||o.l.forEach((e=>e()))}))}i.forEach((e=>e()))}},C=(e,n)=>{n&&(e=>{l(e).forEach(((n,r)=>{const i=t.get(r);(!i||n.r>i.r||n.y!==i.y||n.r===i.r&&n.d!==i.d)&&(t.set(r,n),n.d!==(null==i?void 0:i.d)&&j(e,r,n,null==i?void 0:i.d))}))})(n),N(void 0)},A=(e,t,r)=>{const i=((e,t)=>{let r=n.get(t);return r||(r=M(e,t)),r})(r,e),o=i.l;return o.add(t),()=>{o.delete(t),((e,t)=>{const r=n.get(t);r&&v(t,r)&&S(e,t)})(r,e)}},T=(e,t)=>{for(const[n,r]of e)dc(n)&&(g(t,n,r),b(t,n));N(t)};return{[fc]:y,[hc]:w,[pc]:C,[gc]:A,[mc]:T,[yc]:e=>(i.add(e),()=>{i.delete(e)}),[vc]:()=>o.values(),[bc]:e=>t.get(e),[xc]:e=>n.get(e)}},Mc=(e,t)=>({s:t?t(e).SECRET_INTERNAL_store:wc(e)}),Sc=new Map,jc=e=>(Sc.has(e)||Sc.set(e,(0,t.createContext)(Mc())),Sc.get(e));function Nc(e,t){return function(e,t){const n="atom".concat(++rc),r={toString:()=>n};return"function"===typeof e?r.read=e:(r.init=e,r.read=e=>e(r),r.write=(e,t,n)=>t(r,"function"===typeof n?n(e(r)):n)),t&&(r.write=t),r}(e,t)}function Cc(e,n){const r=jc(n),i=(0,t.useContext)(r),{s:o,v:a}=i,s=t=>{const n=o[fc](e,t);if(!n.y)throw new Error("should not be invalidated");if("e"in n)throw n.e;if("p"in n)throw n.p;if("v"in n)return n.v;throw new Error("no atom value")},[[l,u,c],d]=(0,t.useReducer)(((t,n)=>{const r=s(n);return Object.is(t[1],r)&&t[2]===e?t:[n,r,e]}),a,(t=>[t,s(t),e]));let f=u;return c!==e&&(d(l),f=s(l)),(0,t.useEffect)((()=>{const{v:t}=i;t&&o[pc](e,t);const n=o[gc](e,d,t);return d(t),n}),[o,e,i]),(0,t.useEffect)((()=>{o[pc](e,l)})),(0,t.useDebugValue)(f),f}function Ac(e,n){const r=jc(n),{s:i,w:o}=(0,t.useContext)(r),a=(0,t.useCallback)((t=>{if(!("write"in e))throw new Error("not writable atom");const n=n=>i[hc](e,t,n);return o?o(n):n()}),[i,o,e]);return a}function Tc(e,t){return"scope"in e&&(console.warn("atom.scope is deprecated. Please do useAtom(atom, scope) instead."),t=e.scope),[Cc(e,t),Ac(e,t)]}const Ec="undefined"!==typeof document,Dc={current:null},kc={current:!1};function Oc(){if(kc.current=!0,Ec)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Dc.current=e.matches;e.addListener(t),t()}else Dc.current=!1}const Ic=(0,t.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),_c=(0,t.createContext)({}),Pc=(0,t.createContext)(null),Lc=Ec?t.useLayoutEffect:t.useEffect,zc=(0,t.createContext)({strict:!1}),Rc=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Fc="data-"+Rc("framerAppearId"),Uc=!1,Bc=!1;class Vc{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}const Qc=["read","resolveKeyframes","update","preRender","render","postRender"];function Hc(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Qc.reduce(((e,t)=>(e[t]=function(e){let t=new Vc,n=new Vc,r=0,i=!1,o=!1;const a=new WeakSet,s={schedule:function(e){const o=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&i,s=o?t:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&a.add(e),s.add(e)&&o&&i&&(r=t.order.length),e},cancel:e=>{n.remove(e),a.delete(e)},process:l=>{if(i)o=!0;else{if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let n=0;n<r;n++){const r=t.order[n];a.has(r)&&(s.schedule(r),e()),r(l)}i=!1,o&&(o=!1,s.process(l))}}};return s}((()=>n=!0)),e)),{}),a=e=>{o[e].process(i)},s=()=>{const o=Bc?i.timestamp:performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,40),1),i.timestamp=o,i.isProcessing=!0,Qc.forEach(a),i.isProcessing=!1,n&&t&&(r=!1,e(s))},l=Qc.reduce(((t,a)=>{const l=o[a];return t[a]=function(t){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n||(n=!0,r=!0,i.isProcessing||e(s)),l.schedule(t,o,a)},t}),{});return{schedule:l,cancel:e=>Qc.forEach((t=>o[t].cancel(e))),state:i,steps:o}}const{schedule:Yc,cancel:Wc}=Hc(queueMicrotask,!1);function Gc(e){return e&&"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function qc(e,n,r){return(0,t.useCallback)((t=>{t&&e.mount&&e.mount(t),n&&(t?n.mount(t):n.unmount()),r&&("function"===typeof r?r(t):Gc(r)&&(r.current=t))}),[n])}function Zc(e){return"string"===typeof e||Array.isArray(e)}function Kc(e){return null!==e&&"object"===typeof e&&"function"===typeof e.start}const Xc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$c=["initial",...Xc];function Jc(e){return Kc(e.animate)||$c.some((t=>Zc(e[t])))}function ed(e){return Boolean(Jc(e)||e.variants)}function td(e){const{initial:n,animate:r}=function(e,t){if(Jc(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Zc(t)?t:void 0,animate:Zc(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,t.useContext)(_c));return(0,t.useMemo)((()=>({initial:n,animate:r})),[nd(n),nd(r)])}function nd(e){return Array.isArray(e)?e.join(" "):e}const rd={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},id={};for(const n in rd)id[n]={isEnabled:e=>rd[n].some((t=>!!e[t]))};const od=(0,t.createContext)({}),ad=(0,t.createContext)({}),sd=Symbol.for("motionComponentSymbol");function ld(e){let{preloadedFeatures:n,createVisualElement:r,useRender:i,useVisualState:o,Component:a}=e;n&&function(e){for(const t in e)id[t]={...id[t],...e[t]}}(n);const s=(0,t.forwardRef)((function(e,s){let l;const u={...(0,t.useContext)(Ic),...e,layoutId:ud(e)},{isStatic:c}=u,d=td(e),f=o(e,c);if(!c&&Ec){d.visualElement=function(e,n,r,i){const{visualElement:o}=(0,t.useContext)(_c),a=(0,t.useContext)(zc),s=(0,t.useContext)(Pc),l=(0,t.useContext)(Ic).reducedMotion,u=(0,t.useRef)();i=i||a.renderer,!u.current&&i&&(u.current=i(e,{visualState:n,parent:o,props:r,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:l}));const c=u.current;(0,t.useInsertionEffect)((()=>{c&&c.update(r,s)}));const d=(0,t.useRef)(Boolean(r[Fc]&&!window.HandoffComplete));return Lc((()=>{c&&(Yc.render(c.render),d.current&&c.animationState&&c.animationState.animateChanges())})),(0,t.useEffect)((()=>{c&&(c.updateFeatures(),!d.current&&c.animationState&&c.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))})),c}(a,f,u,r);const e=(0,t.useContext)(ad),i=(0,t.useContext)(zc).strict;d.visualElement&&(l=d.visualElement.loadFeatures(u,i,n,e))}return(0,La.jsxs)(_c.Provider,{value:d,children:[l&&d.visualElement?(0,La.jsx)(l,{visualElement:d.visualElement,...u}):null,i(a,e,qc(f,d.visualElement,s),f,c,d.visualElement)]})}));return s[sd]=a,s}function ud(e){let{layoutId:n}=e;const r=(0,t.useContext)(od).id;return r&&void 0!==n?r+"-"+n:n}function cd(e){function t(t){return ld(e(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}if("undefined"===typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const dd=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function fd(e){return"string"===typeof e&&!e.includes("-")&&!!(dd.indexOf(e)>-1||/[A-Z]/u.test(e))}const hd={};const pd=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],gd=new Set(pd);function md(e,t){let{layout:n,layoutId:r}=t;return gd.has(e)||e.startsWith("origin")||(n||void 0!==r)&&(!!hd[e]||"opacity"===e)}const yd=e=>Boolean(e&&e.getVelocity),vd={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},bd=pd.length;const xd=e=>t=>"string"===typeof t&&t.startsWith(e),wd=xd("--"),Md=xd("var(--"),Sd=e=>!!Md(e)&&jd.test(e.split("/*")[0].trim()),jd=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Nd=(e,t)=>t&&"number"===typeof e?t.transform(e):e,Cd=(e,t,n)=>n>t?t:n<e?e:n,Ad={test:e=>"number"===typeof e,parse:parseFloat,transform:e=>e},Td={...Ad,transform:e=>Cd(0,1,e)},Ed={...Ad,default:1},Dd=e=>Math.round(1e5*e)/1e5,kd=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,Od=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Id=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function _d(e){return"string"===typeof e}const Pd=e=>({test:t=>_d(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>"".concat(t).concat(e)}),Ld=Pd("deg"),zd=Pd("%"),Rd=Pd("px"),Fd=Pd("vh"),Ud=Pd("vw"),Bd={...zd,parse:e=>zd.parse(e)/100,transform:e=>zd.transform(100*e)},Vd={...Ad,transform:Math.round},Qd={borderWidth:Rd,borderTopWidth:Rd,borderRightWidth:Rd,borderBottomWidth:Rd,borderLeftWidth:Rd,borderRadius:Rd,radius:Rd,borderTopLeftRadius:Rd,borderTopRightRadius:Rd,borderBottomRightRadius:Rd,borderBottomLeftRadius:Rd,width:Rd,maxWidth:Rd,height:Rd,maxHeight:Rd,size:Rd,top:Rd,right:Rd,bottom:Rd,left:Rd,padding:Rd,paddingTop:Rd,paddingRight:Rd,paddingBottom:Rd,paddingLeft:Rd,margin:Rd,marginTop:Rd,marginRight:Rd,marginBottom:Rd,marginLeft:Rd,rotate:Ld,rotateX:Ld,rotateY:Ld,rotateZ:Ld,scale:Ed,scaleX:Ed,scaleY:Ed,scaleZ:Ed,skew:Ld,skewX:Ld,skewY:Ld,distance:Rd,translateX:Rd,translateY:Rd,translateZ:Rd,x:Rd,y:Rd,z:Rd,perspective:Rd,transformPerspective:Rd,opacity:Td,originX:Bd,originY:Bd,originZ:Rd,zIndex:Vd,backgroundPositionX:Rd,backgroundPositionY:Rd,fillOpacity:Td,strokeOpacity:Td,numOctaves:Vd};function Hd(e,t,n,r){const{style:i,vars:o,transform:a,transformOrigin:s}=e;let l=!1,u=!1,c=!0;for(const d in t){const e=t[d];if(wd(d)){o[d]=e;continue}const n=Qd[d],r=Nd(e,n);if(gd.has(d)){if(l=!0,a[d]=r,!c)continue;e!==(n.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,s[d]=r):i[d]=r}if(t.transform||(l||r?i.transform=function(e,t,n,r){let{enableHardwareAcceleration:i=!0,allowTransformNone:o=!0}=t,a="";for(let s=0;s<bd;s++){const t=pd[s];if(void 0!==e[t]){const n=vd[t]||t;a+="".concat(n,"(").concat(e[t],") ")}}return i&&!e.z&&(a+="translateZ(0)"),a=a.trim(),r?a=r(e,n?"":a):o&&n&&(a="none"),a}(e.transform,n,c,r):i.transform&&(i.transform="none")),u){const{originX:e="50%",originY:t="50%",originZ:n=0}=s;i.transformOrigin="".concat(e," ").concat(t," ").concat(n)}}const Yd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Wd(e,t,n){for(const r in t)yd(t[r])||md(r,n)||(e[r]=t[r])}function Gd(e,n,r){const i={};return Wd(i,e.style||{},e),Object.assign(i,function(e,n,r){let{transformTemplate:i}=e;return(0,t.useMemo)((()=>{const e=Yd();return Hd(e,n,{enableHardwareAcceleration:!r},i),Object.assign({},e.vars,e.style)}),[n])}(e,n,r)),i}function qd(e,t,n){const r={},i=Gd(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const Zd=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Kd(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Zd.has(e)}let Xd=e=>!Kd(e);try{($d=require("@emotion/is-prop-valid").default)&&(Xd=e=>e.startsWith("on")?!Kd(e):$d(e))}catch(Fk){}var $d;function Jd(e,t,n){return"string"===typeof e?e:Rd.transform(t+n*e)}const ef={offset:"stroke-dashoffset",array:"stroke-dasharray"},tf={offset:"strokeDashoffset",array:"strokeDasharray"};function nf(e,t,n,r,i){let{attrX:o,attrY:a,attrScale:s,originX:l,originY:u,pathLength:c,pathSpacing:d=1,pathOffset:f=0,...h}=t;if(Hd(e,h,n,i),r)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:p,style:g,dimensions:m}=e;p.transform&&(m&&(g.transform=p.transform),delete p.transform),m&&(void 0!==l||void 0!==u||g.transform)&&(g.transformOrigin=function(e,t,n){const r=Jd(t,e.x,e.width),i=Jd(n,e.y,e.height);return"".concat(r," ").concat(i)}(m,void 0!==l?l:.5,void 0!==u?u:.5)),void 0!==o&&(p.x=o),void 0!==a&&(p.y=a),void 0!==s&&(p.scale=s),void 0!==c&&function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];e.pathLength=1;const o=i?ef:tf;e[o.offset]=Rd.transform(-r);const a=Rd.transform(t),s=Rd.transform(n);e[o.array]="".concat(a," ").concat(s)}(p,c,d,f,!1)}const rf=()=>({...Yd(),attrs:{}}),of=e=>"string"===typeof e&&"svg"===e.toLowerCase();function af(e,n,r,i){const o=(0,t.useMemo)((()=>{const t=rf();return nf(t,n,{enableHardwareAcceleration:!1},of(i),e.transformTemplate),{...t.attrs,style:{...t.style}}}),[n]);if(e.style){const t={};Wd(t,e.style,e),o.style={...t,...o.style}}return o}function sf(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(n,r,i,o,a)=>{let{latestValues:s}=o;const l=(fd(n)?af:qd)(r,s,a,n),u=function(e,t,n){const r={};for(const i in e)"values"===i&&"object"===typeof e.values||(Xd(i)||!0===n&&Kd(i)||!t&&!Kd(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(r,"string"===typeof n,e),c=n!==t.Fragment?{...u,...l,ref:i}:{},{children:d}=r,f=(0,t.useMemo)((()=>yd(d)?d.get():d),[d]);return(0,t.createElement)(n,{...c,children:f})}}function lf(e,t,n,r){let{style:i,vars:o}=t;Object.assign(e.style,i,r&&r.getProjectionStyles(n));for(const a in o)e.style.setProperty(a,o[a])}const uf=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function cf(e,t,n,r){lf(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(uf.has(i)?i:Rc(i),t.attrs[i])}function df(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(yd(i[a])||t.style&&yd(t.style[a])||md(a,e)||void 0!==(null===(r=null===n||void 0===n?void 0:n.getValue(a))||void 0===r?void 0:r.liveStyle))&&(o[a]=i[a]);return o}function ff(e,t,n){const r=df(e,t,n);for(const i in e)if(yd(e[i])||yd(t[i])){r[-1!==pd.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]}return r}function hf(e){const t=[{},{}];return null===e||void 0===e||e.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function pf(e,t,n,r){if("function"===typeof t){const[i,o]=hf(r);t=t(void 0!==n?n:e.custom,i,o)}if("string"===typeof t&&(t=e.variants&&e.variants[t]),"function"===typeof t){const[i,o]=hf(r);t=t(void 0!==n?n:e.custom,i,o)}return t}const gf=e=>Array.isArray(e),mf=e=>Boolean(e&&"object"===typeof e&&e.mix&&e.toValue),yf=e=>gf(e)?e[e.length-1]||0:e;function vf(e){const t=yd(e)?e.get():e;return mf(t)?t.toValue():t}const bf=e=>(n,r)=>{const i=(0,t.useContext)(_c),o=(0,t.useContext)(Pc),a=()=>function(e,t,n,r){let{scrapeMotionValuesFromProps:i,createRenderState:o,onMount:a}=e;const s={latestValues:xf(t,n,r,i),renderState:o()};return a&&(s.mount=e=>a(t,e,s)),s}(e,n,i,o);return r?a():function(e){const n=(0,t.useRef)(null);return null===n.current&&(n.current=e()),n.current}(a)};function xf(e,t,n,r){const i={},o=r(e,{});for(const f in o)i[f]=vf(o[f]);let{initial:a,animate:s}=e;const l=Jc(e),u=ed(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial;c=c||!1===a;const d=c?s:a;if(d&&"boolean"!==typeof d&&!Kc(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const n=pf(e,t);if(!n)return;const{transitionEnd:r,transition:o,...a}=n;for(const e in a){let t=a[e];if(Array.isArray(t)){t=t[c?t.length-1:0]}null!==t&&(i[e]=t)}for(const e in r)i[e]=r[e]}))}return i}const wf=e=>e,{schedule:Mf,cancel:Sf,state:jf,steps:Nf}=Hc("undefined"!==typeof requestAnimationFrame?requestAnimationFrame:wf,!0),Cf={useVisualState:bf({scrapeMotionValuesFromProps:ff,createRenderState:rf,onMount:(e,t,n)=>{let{renderState:r,latestValues:i}=n;Mf.read((()=>{try{r.dimensions="function"===typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(qi){r.dimensions={x:0,y:0,width:0,height:0}}})),Mf.render((()=>{nf(r,i,{enableHardwareAcceleration:!1},of(t.tagName),e.transformTemplate),cf(t,r)}))}})},Af={useVisualState:bf({scrapeMotionValuesFromProps:df,createRenderState:Yd})};function Tf(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Ef=e=>"mouse"===e.pointerType?"number"!==typeof e.button||e.button<=0:!1!==e.isPrimary;function Df(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"page";return{point:{x:e["".concat(t,"X")],y:e["".concat(t,"Y")]}}}const kf=e=>t=>Ef(t)&&e(t,Df(t));function Of(e,t,n,r){return Tf(e,t,kf(n),r)}const If=(e,t)=>n=>t(e(n)),_f=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(If)};function Pf(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const Lf=Pf("dragHorizontal"),zf=Pf("dragVertical");function Rf(e){let t=!1;if("y"===e)t=zf();else if("x"===e)t=Lf();else{const e=Lf(),n=zf();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function Ff(){const e=Rf(!0);return!e||(e(),!1)}class Uf{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Bf(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd";return Of(e.current,n,((n,i)=>{if("touch"===n.pointerType||Ff())return;const o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t);const a=o[r];a&&Mf.postRender((()=>a(n,i)))}),{passive:!e.getProps()[r]})}const Vf=(e,t)=>!!t&&(e===t||Vf(e,t.parentElement));function Qf(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Df(n))}const Hf=new WeakMap,Yf=new WeakMap,Wf=e=>{const t=Hf.get(e.target);t&&t(e)},Gf=e=>{e.forEach(Wf)};function qf(e,t,n){const r=function(e){let{root:t,...n}=e;const r=t||document;Yf.has(r)||Yf.set(r,{});const i=Yf.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(Gf,{root:t,...n})),i[o]}(t);return Hf.set(e,n),r.observe(e),()=>{Hf.delete(e),r.unobserve(e)}}const Zf={some:0,all:1};const Kf={inView:{Feature:class extends Uf{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"===typeof r?r:Zf[r]};return qf(this.node.current,o,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,i&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=t?n:r;o&&o(e)}))}mount(){this.startObserver()}update(){if("undefined"===typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node,n=["amount","margin","root"].some(function(e){let{viewport:t={}}=e,{viewport:n={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=>t[e]!==n[e]}(e,t));n&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Uf{constructor(){super(...arguments),this.removeStartListeners=wf,this.removeEndListeners=wf,this.removeAccessibleListeners=wf,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),r=Of(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r,globalTapTarget:i}=this.node.getProps(),o=i||Vf(this.node.current,e.target)?n:r;o&&Mf.update((()=>o(e,t)))}),{passive:!(n.onTap||n.onPointerUp)}),i=Of(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=_f(r,i),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=Tf(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Tf(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&Qf("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&Mf.postRender((()=>n(e,t)))}))})),Qf("down",((e,t)=>{this.startPress(e,t)}))})),t=Tf(this.node.current,"blur",(()=>{this.isPressing&&Qf("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=_f(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Mf.postRender((()=>n(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Ff()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Mf.postRender((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=Of(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Tf(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=_f(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Uf{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(qi){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=_f(Tf(this.node.current,"focus",(()=>this.onFocus())),Tf(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Uf{mount(){this.unmount=_f(Bf(this.node,!0),Bf(this.node,!1))}unmount(){}}}};function Xf(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function $f(e,t,n){const r=e.getProps();return pf(r,t,void 0!==n?n:r.custom,e)}const Jf=e=>1e3*e,eh=e=>e/1e3,th={type:"spring",stiffness:500,damping:25,restSpeed:10},nh={type:"keyframes",duration:.8},rh={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ih=(e,t)=>{let{keyframes:n}=t;return n.length>2?nh:gd.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===n[1]?2*Math.sqrt(550):30,restSpeed:10}:th:rh};function oh(e,t){return e[t]||e.default||e}const ah=!1,sh=e=>null!==e;function lh(e,t,n){let{repeat:r,repeatType:i="loop"}=t;const o=e.filter(sh),a=r&&"loop"!==i&&r%2===1?0:o.length-1;return a&&void 0!==n?n:o[a]}let uh;function ch(){uh=void 0}const dh={now:()=>(void 0===uh&&dh.set(jf.isProcessing||Bc?jf.timestamp:performance.now()),uh),set:e=>{uh=e,queueMicrotask(ch)}},fh=e=>/^0[^.\s]+$/u.test(e);let hh=wf,ph=wf;const gh=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),mh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function yh(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;ph(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));const[r,i]=function(e){const t=mh.exec(e);if(!t)return[,];const[,n,r,i]=t;return["--".concat(null!==n&&void 0!==n?n:r),i]}(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const e=o.trim();return gh(e)?parseFloat(e):e}return Sd(i)?yh(i,t,n+1):i}const vh=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),bh=e=>e===Ad||e===Rd,xh=(e,t)=>parseFloat(e.split(", ")[t]),wh=(e,t)=>(n,r)=>{let{transform:i}=r;if("none"===i||!i)return 0;const o=i.match(/^matrix3d\((.+)\)$/u);if(o)return xh(o[1],t);{const t=i.match(/^matrix\((.+)\)$/u);return t?xh(t[1],e):0}},Mh=new Set(["x","y","z"]),Sh=pd.filter((e=>!Mh.has(e)));const jh={width:(e,t)=>{let{x:n}=e,{paddingLeft:r="0",paddingRight:i="0"}=t;return n.max-n.min-parseFloat(r)-parseFloat(i)},height:(e,t)=>{let{y:n}=e,{paddingTop:r="0",paddingBottom:i="0"}=t;return n.max-n.min-parseFloat(r)-parseFloat(i)},top:(e,t)=>{let{top:n}=t;return parseFloat(n)},left:(e,t)=>{let{left:n}=t;return parseFloat(n)},bottom:(e,t)=>{let{y:n}=e,{top:r}=t;return parseFloat(r)+(n.max-n.min)},right:(e,t)=>{let{x:n}=e,{left:r}=t;return parseFloat(r)+(n.max-n.min)},x:wh(4,13),y:wh(5,14)};jh.translateX=jh.x,jh.translateY=jh.y;const Nh=e=>t=>t.test(e),Ch=[Ad,Rd,zd,Ld,Ud,Fd,{test:e=>"auto"===e,parse:e=>e}],Ah=e=>Ch.find(Nh(e)),Th=new Set;let Eh=!1,Dh=!1;function kh(){if(Dh){const e=Array.from(Th).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=function(e){const t=[];return Sh.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t}(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((t=>{let[n,r]=t;var i;null===(i=e.getValue(n))||void 0===i||i.set(r)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}Dh=!1,Eh=!1,Th.forEach((e=>e.complete())),Th.clear()}function Oh(){Th.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(Dh=!0)}))}class Ih{constructor(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Th.add(this),Eh||(Eh=!0,Mf.read(Oh),Mf.resolveKeyframes(kh))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let i=0;i<e.length;i++)if(null===e[i])if(0===i){const i=null===r||void 0===r?void 0:r.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){const r=n.readValue(t,o);void 0!==r&&null!==r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===i&&r.set(e[0])}else e[i]=e[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Th.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Th.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const _h=(e,t)=>n=>Boolean(_d(n)&&Id.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Ph=(e,t,n)=>r=>{if(!_d(r))return r;const[i,o,a,s]=r.match(kd);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},Lh={...Ad,transform:e=>Math.round((e=>Cd(0,255,e))(e))},zh={test:_h("rgb","red"),parse:Ph("red","green","blue"),transform:e=>{let{red:t,green:n,blue:r,alpha:i=1}=e;return"rgba("+Lh.transform(t)+", "+Lh.transform(n)+", "+Lh.transform(r)+", "+Dd(Td.transform(i))+")"}};const Rh={test:_h("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:zh.transform},Fh={test:_h("hsl","hue"),parse:Ph("hue","saturation","lightness"),transform:e=>{let{hue:t,saturation:n,lightness:r,alpha:i=1}=e;return"hsla("+Math.round(t)+", "+zd.transform(Dd(n))+", "+zd.transform(Dd(r))+", "+Dd(Td.transform(i))+")"}},Uh={test:e=>zh.test(e)||Rh.test(e)||Fh.test(e),parse:e=>zh.test(e)?zh.parse(e):Fh.test(e)?Fh.parse(e):Rh.parse(e),transform:e=>_d(e)?e:e.hasOwnProperty("red")?zh.transform(e):Fh.transform(e)};const Bh="number",Vh="color",Qh="var",Hh="var(",Yh="${}",Wh=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Gh(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=t.replace(Wh,(e=>(Uh.test(e)?(r.color.push(o),i.push(Vh),n.push(Uh.parse(e))):e.startsWith(Hh)?(r.var.push(o),i.push(Qh),n.push(e)):(r.number.push(o),i.push(Bh),n.push(parseFloat(e))),++o,Yh))).split(Yh);return{values:n,split:a,indexes:r,types:i}}function qh(e){return Gh(e).values}function Zh(e){const{split:t,types:n}=Gh(e),r=t.length;return e=>{let i="";for(let o=0;o<r;o++)if(i+=t[o],void 0!==e[o]){const t=n[o];i+=t===Bh?Dd(e[o]):t===Vh?Uh.transform(e[o]):e[o]}return i}}const Kh=e=>"number"===typeof e?0:e;const Xh={test:function(e){var t,n;return isNaN(e)&&_d(e)&&((null===(t=e.match(kd))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Od))||void 0===n?void 0:n.length)||0)>0},parse:qh,createTransformer:Zh,getAnimatableNone:function(e){const t=qh(e);return Zh(e)(t.map(Kh))}},$h=new Set(["brightness","contrast","saturate","opacity"]);function Jh(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(kd)||[];if(!r)return e;const i=n.replace(r,"");let o=$h.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const ep=/\b([a-z-]*)\(.*?\)/gu,tp={...Xh,getAnimatableNone:e=>{const t=e.match(ep);return t?t.map(Jh).join(" "):e}},np={...Qd,color:Uh,backgroundColor:Uh,outlineColor:Uh,fill:Uh,stroke:Uh,borderColor:Uh,borderTopColor:Uh,borderRightColor:Uh,borderBottomColor:Uh,borderLeftColor:Uh,filter:tp,WebkitFilter:tp},rp=e=>np[e];function ip(e,t){let n=rp(e);return n!==tp&&(n=Xh),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const op=new Set(["auto","none","0"]);class ap extends Ih{constructor(e,t,n,r){super(e,t,n,r,null===r||void 0===r?void 0:r.owner,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t.current)return;super.readKeyframes();for(let s=0;s<e.length;s++){const n=e[s];if("string"===typeof n&&Sd(n)){const r=yh(n,t.current);void 0!==r&&(e[s]=r),s===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!vh.has(n)||2!==e.length)return;const[r,i]=e,o=Ah(r),a=Ah(i);if(o!==a)if(bh(o)&&bh(a))for(let s=0;s<e.length;s++){const t=e[s];"string"===typeof t&&(e[s]=parseFloat(t))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let i=0;i<e.length;i++)("number"===typeof(r=e[i])?0===r:null===r||"none"===r||"0"===r||fh(r))&&n.push(i);var r;n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){const t=e[i];"string"===typeof t&&!op.has(t)&&Gh(t).values.length&&(r=e[i]),i++}if(r&&n)for(const o of t)e[o]=ip(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=jh[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=r.length-1,a=r[o];r[o]=jh[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach((e=>{let[n,r]=e;t.getValue(n).set(r)})),this.resolveNoneKeyframes()}}const sp=(e,t)=>"zIndex"!==t&&(!("number"!==typeof e&&!Array.isArray(e))||!("string"!==typeof e||!Xh.test(e)&&"0"!==e||e.startsWith("url(")));class lp{constructor(e){let{autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...s}=e;this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...s},this.updateFinishedPromise()}get resolved(){return this._resolved||this.hasAttemptedResolve||(Oh(),kh()),this._resolved}onKeyframesResolved(e,t){this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:i,delay:o,onComplete:a,onUpdate:s,isGenerator:l}=this.options;if(!l&&!function(e,t,n,r){const i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;const o=e[e.length-1],a=sp(i,t),s=sp(o,t);return hh(a===s,"You are trying to animate ".concat(t,' from "').concat(i,'" to "').concat(o,'". ').concat(i," is not an animatable value - to enable this animation set ").concat(i," to a value animatable to ").concat(o," via the `style` property.")),!(!a||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||"spring"===n&&r)}(e,n,r,i)){if(ah||!o)return null===s||void 0===s||s(lh(e,this.options,t)),null===a||void 0===a||a(),void this.resolveFinishedPromise();this.options.duration=0}const u=this.initPlayback(e,t);!1!==u&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise((e=>{this.resolveFinishedPromise=e}))}}function up(e,t){return t?e*(1e3/t):0}const cp=5;function dp(e,t,n){const r=Math.max(t-cp,0);return up(n-e(r),t-r)}const fp=.001,hp=.01,pp=10,gp=.05,mp=1;function yp(e){let t,n,{duration:r=800,bounce:i=.25,velocity:o=0,mass:a=1}=e;hh(r<=Jf(pp),"Spring duration must be 10 seconds or less");let s=1-i;s=Cd(gp,mp,s),r=Cd(hp,pp,eh(r)),s<1?(t=e=>{const t=e*s,n=t*r,i=t-o,a=bp(e,s),l=Math.exp(-n);return fp-i/a*l},n=e=>{const n=e*s*r,i=n*o+o,a=Math.pow(s,2)*Math.pow(e,2)*r,l=Math.exp(-n),u=bp(Math.pow(e,2),s);return(-t(e)+fp>0?-1:1)*((i-a)*l)/u}):(t=e=>Math.exp(-e*r)*((e-o)*r+1)-fp,n=e=>Math.exp(-e*r)*(r*r*(o-e)));const l=function(e,t,n){let r=n;for(let i=1;i<vp;i++)r-=e(r)/t(r);return r}(t,n,5/r);if(r=Jf(r),isNaN(l))return{stiffness:100,damping:10,duration:r};{const e=Math.pow(l,2)*a;return{stiffness:e,damping:2*s*Math.sqrt(a*e),duration:r}}}const vp=12;function bp(e,t){return e*Math.sqrt(1-t*t)}const xp=["duration","bounce"],wp=["stiffness","damping","mass"];function Mp(e,t){return t.some((t=>void 0!==e[t]))}function Sp(e){let{keyframes:t,restDelta:n,restSpeed:r,...i}=e;const o=t[0],a=t[t.length-1],s={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:h}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Mp(e,wp)&&Mp(e,xp)){const n=yp(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...i,velocity:-eh(i.velocity||0)}),p=f||0,g=u/(2*Math.sqrt(l*c)),m=a-o,y=eh(Math.sqrt(l/c)),v=Math.abs(m)<5;let b;if(r||(r=v?.01:2),n||(n=v?.005:.5),g<1){const e=bp(y,g);b=t=>{const n=Math.exp(-g*y*t);return a-n*((p+g*y*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===g)b=e=>a-Math.exp(-y*e)*(m+(p+y*m)*e);else{const e=y*Math.sqrt(g*g-1);b=t=>{const n=Math.exp(-g*y*t),r=Math.min(e*t,300);return a-n*((p+g*y*m)*Math.sinh(r)+e*m*Math.cosh(r))/e}}return{calculatedDuration:h&&d||null,next:e=>{const t=b(e);if(h)s.done=e>=d;else{let i=p;0!==e&&(i=g<1?dp(b,e,t):0);const o=Math.abs(i)<=r,l=Math.abs(a-t)<=n;s.done=o&&l}return s.value=s.done?a:t,s}}}function jp(e){let{keyframes:t,velocity:n=0,power:r=.8,timeConstant:i=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:s,min:l,max:u,restDelta:c=.5,restSpeed:d}=e;const f=t[0],h={done:!1,value:f},p=e=>void 0===l?u:void 0===u||Math.abs(l-e)<Math.abs(u-e)?l:u;let g=r*n;const m=f+g,y=void 0===s?m:s(m);y!==m&&(g=y-f);const v=e=>-g*Math.exp(-e/i),b=e=>y+v(e),x=e=>{const t=v(e),n=b(e);h.done=Math.abs(t)<=c,h.value=h.done?y:n};let w,M;const S=e=>{(e=>void 0!==l&&e<l||void 0!==u&&e>u)(h.value)&&(w=e,M=Sp({keyframes:[h.value,p(h.value)],velocity:dp(b,e,h.value),damping:o,stiffness:a,restDelta:c,restSpeed:d}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return M||void 0!==w||(t=!0,x(e),S(e)),void 0!==w&&e>=w?M.next(e-w):(!t&&x(e),h)}}}const Np=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Cp=1e-7,Ap=12;function Tp(e,t,n,r){if(e===t&&n===r)return wf;const i=t=>function(e,t,n,r,i){let o,a,s=0;do{a=t+(n-t)/2,o=Np(a,r,i)-e,o>0?n=a:t=a}while(Math.abs(o)>Cp&&++s<Ap);return a}(t,0,1,e,n);return e=>0===e||1===e?e:Np(i(e),t,r)}const Ep=Tp(.42,0,1,1),Dp=Tp(0,0,.58,1),kp=Tp(.42,0,.58,1),Op=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ip=e=>t=>1-e(1-t),_p=e=>1-Math.sin(Math.acos(e)),Pp=Ip(_p),Lp=Op(_p),zp=Tp(.33,1.53,.69,.99),Rp=Ip(zp),Fp=Op(Rp),Up={linear:wf,easeIn:Ep,easeInOut:kp,easeOut:Dp,circIn:_p,circInOut:Lp,circOut:Pp,backIn:Rp,backInOut:Fp,backOut:zp,anticipate:e=>(e*=2)<1?.5*Rp(e):.5*(2-Math.pow(2,-10*(e-1)))},Bp=e=>{if(Array.isArray(e)){ph(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Tp(t,n,r,i)}return"string"===typeof e?(ph(void 0!==Up[e],"Invalid easing type '".concat(e,"'")),Up[e]):e},Vp=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Qp=(e,t,n)=>e+(t-e)*n;function Hp(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const Yp=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Wp=[Rh,zh,Fh];function Gp(e){const t=(e=>Wp.find((t=>t.test(e))))(e);ph(Boolean(t),"'".concat(e,"' is not an animatable color. Use the equivalent color code instead."));let n=t.parse(e);return t===Fh&&(n=function(e){let{hue:t,saturation:n,lightness:r,alpha:i}=e;t/=360,n/=100,r/=100;let o=0,a=0,s=0;if(n){const e=r<.5?r*(1+n):r+n-r*n,i=2*r-e;o=Hp(i,e,t+1/3),a=Hp(i,e,t),s=Hp(i,e,t-1/3)}else o=a=s=r;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*s),alpha:i}}(n)),n}const qp=(e,t)=>{const n=Gp(e),r=Gp(t),i={...n};return e=>(i.red=Yp(n.red,r.red,e),i.green=Yp(n.green,r.green,e),i.blue=Yp(n.blue,r.blue,e),i.alpha=Qp(n.alpha,r.alpha,e),zh.transform(i))},Zp=new Set(["none","hidden"]);function Kp(e,t){return n=>n>0?t:e}function Xp(e,t){return n=>Qp(e,t,n)}function $p(e){return"number"===typeof e?Xp:"string"===typeof e?Sd(e)?Kp:Uh.test(e)?qp:tg:Array.isArray(e)?Jp:"object"===typeof e?Uh.test(e)?qp:eg:Kp}function Jp(e,t){const n=[...e],r=n.length,i=e.map(((e,n)=>$p(e)(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function eg(e,t){const n={...e,...t},r={};for(const i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=$p(e[i])(e[i],t[i]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const tg=(e,t)=>{const n=Xh.createTransformer(t),r=Gh(e),i=Gh(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Zp.has(e)&&!i.values.length||Zp.has(t)&&!r.values.length?function(e,t){return Zp.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):_f(Jp(function(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],s=e.indexes[a][i[a]],l=null!==(n=e.values[s])&&void 0!==n?n:0;r[o]=l,i[a]++}return r}(r,i),i.values),n):(hh(!0,"Complex values '".concat(e,"' and '").concat(t,"' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.")),Kp(e,t))};function ng(e,t,n){if("number"===typeof e&&"number"===typeof t&&"number"===typeof n)return Qp(e,t,n);return $p(e)(e,t)}function rg(e,t){let{clamp:n=!0,ease:r,mixer:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=e.length;if(ph(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];if(2===o&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=function(e,t,n){const r=[],i=n||ng,o=e.length-1;for(let a=0;a<o;a++){let n=i(e[a],e[a+1]);if(t){const e=Array.isArray(t)?t[a]||wf:t;n=_f(e,n)}r.push(n)}return r}(t,r,i),s=a.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=Vp(e[n],e[n+1],t);return a[n](r)};return n?t=>l(Cd(e[0],e[o-1],t)):l}function ig(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Vp(0,t,r);e.push(Qp(n,1,i))}}(t,e.length-1),t}function og(e,t){return e.map((()=>t||kp)).splice(0,e.length-1)}function ag(e){let{duration:t=300,keyframes:n,times:r,ease:i="easeInOut"}=e;const o=(e=>Array.isArray(e)&&"number"!==typeof e[0])(i)?i.map(Bp):Bp(i),a={done:!1,value:n[0]},s=function(e,t){return e.map((e=>e*t))}(r&&r.length===n.length?r:ig(n),t),l=rg(s,n,{ease:Array.isArray(o)?o:og(n,o)});return{calculatedDuration:t,next:e=>(a.value=l(e),a.done=e>=t,a)}}const sg=e=>{const t=t=>{let{timestamp:n}=t;return e(n)};return{start:()=>Mf.update(t,!0),stop:()=>Sf(t),now:()=>jf.isProcessing?jf.timestamp:dh.now()}},lg={decay:jp,inertia:jp,tween:ag,keyframes:ag,spring:Sp},ug=e=>e/100;class cg extends lp{constructor(e){let{KeyframeResolver:t=Ih,...n}=e;super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:r,motionValue:i,keyframes:o}=this.options,a=(e,t)=>this.onKeyframesResolved(e,t);r&&i&&i.owner?this.resolver=i.owner.resolveKeyframes(o,a,r,i):this.resolver=new t(o,a,r,i),this.resolver.scheduleResolve()}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=this.options,a=lg[t]||ag;let s,l;a!==ag&&"number"!==typeof e[0]&&(s=_f(ug,ng(e[0],e[1])),e=[0,100]);const u=a({...this.options,keyframes:e});"mirror"===i&&(l=a({...this.options,keyframes:[...e].reverse(),velocity:-o})),null===u.calculatedDuration&&(u.calculatedDuration=function(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}(u));const{calculatedDuration:c}=u,d=c+r;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:s,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(n+1)-r}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:r,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:s,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(null===this.startTime)return i.next(0);const{delay:d,repeat:f,repeatType:h,repeatDelay:p,onUpdate:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const m=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?m<0:m>u;this.currentTime=Math.max(m,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let v=this.currentTime,b=i;if(f){const e=Math.min(this.currentTime,u)/c;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,f+1);Boolean(t%2)&&("reverse"===h?(n=1-n,p&&(n-=p/c)):"mirror"===h&&(b=o)),v=Cd(0,1,n)*c}const x=y?{done:!1,value:s[0]}:b.next(v);a&&(x.value=a(x.value));let{done:w}=x;y||null===l||(w=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const M=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return M&&void 0!==r&&(x.value=lh(s,this.options,r)),g&&g(x.value),M&&this.finish(),x}get duration(){const{resolved:e}=this;return e?eh(e.calculatedDuration):0}get time(){return eh(this.currentTime)}set time(e){e=Jf(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=eh(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=sg,onPlay:t}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime&&"finished"!==this.state||(this.startTime=n),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const dg=e=>Array.isArray(e)&&"number"===typeof e[0];function fg(e){return Boolean(!e||"string"===typeof e&&e in pg||dg(e)||Array.isArray(e)&&e.every(fg))}const hg=e=>{let[t,n,r,i]=e;return"cubic-bezier(".concat(t,", ").concat(n,", ").concat(r,", ").concat(i,")")},pg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:hg([0,.65,.55,1]),circOut:hg([.55,0,1,.45]),backIn:hg([.31,.01,.66,-.59]),backOut:hg([.33,1.53,.69,.99])};function gg(e){return mg(e)||pg.easeOut}function mg(e){return e?dg(e)?hg(e):Array.isArray(e)?e.map(gg):pg[e]:void 0}const yg=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),vg=new Set(["opacity","clipPath","filter","transform"]);class bg extends lp{constructor(e){super(e);const{name:t,motionValue:n,keyframes:r}=this.options;this.resolver=new ap(r,((e,t)=>this.onKeyframesResolved(e,t)),t,n),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let{duration:r=300,times:i,ease:o,type:a,motionValue:s,name:l}=this.options;if(!(null===(n=s.owner)||void 0===n?void 0:n.current))return!1;if("spring"===(u=this.options).type||"backgroundColor"===u.name||!fg(u.ease)){const{onComplete:t,onUpdate:n,motionValue:s,...l}=this.options,u=function(e,t){const n=new cg({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<2e4;)r=n.sample(o),i.push(r.value),o+=10;return{times:void 0,keyframes:i,duration:o-10,ease:"linear"}}(e,l);1===(e=u.keyframes).length&&(e[1]=e[0]),r=u.duration,i=u.times,o=u.ease,a="keyframes"}var u;const c=function(e,t,n){let{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s,times:l}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const u={[t]:n};l&&(u.offset=l);const c=mg(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(s.owner.current,l,e,{...this.options,duration:r,times:i,ease:o});return c.startTime=dh.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:n}=this.options;s.set(lh(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:i,type:a,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return eh(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return eh(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=Jf(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return wf;const{animation:n}=t;n.timeline=e,n.onfinish=null}else this.pendingTimeline=e;return wf}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:r,type:i,ease:o,times:a}=e;if("idle"!==t.playState&&"finished"!==t.playState){if(this.time){const{motionValue:e,onUpdate:t,onComplete:s,...l}=this.options,u=new cg({...l,keyframes:n,duration:r,type:i,ease:o,times:a,isGenerator:!0}),c=Jf(this.time);e.setWithVelocity(u.sample(c-10).value,u.sample(c).value,10)}this.cancel()}}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:a}=e;return yg()&&n&&vg.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!r&&"mirror"!==i&&0!==o&&"inertia"!==a}}const xg=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0;return a=>{const s=oh(r,e)||{},l=s.delay||r.delay||0;let{elapsed:u=0}=r;u-=Jf(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:i};(function(e){let{when:t,delay:n,delayChildren:r,staggerChildren:i,staggerDirection:o,repeat:a,repeatType:s,repeatDelay:l,from:u,elapsed:c,...d}=e;return!!Object.keys(d).length})(s)||(c={...c,...ih(e,c)}),c.duration&&(c.duration=Jf(c.duration)),c.repeatDelay&&(c.repeatDelay=Jf(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if((!1===c.type||0===c.duration&&!c.repeatDelay)&&(c.duration=0,0===c.delay&&(d=!0)),(ah||Uc)&&(d=!0,c.duration=0,c.delay=0),d&&!o&&void 0!==t.get()){const e=lh(c.keyframes,s);if(void 0!==e)return void Mf.update((()=>{c.onUpdate(e),c.onComplete()}))}return!o&&bg.supports(c)?new bg(c):new cg(c)}};function wg(e){return Boolean(yd(e)&&e.add)}function Mg(e,t){-1===e.indexOf(t)&&e.push(t)}function Sg(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class jg{constructor(){this.subscriptions=[]}add(e){return Mg(this.subscriptions,e),()=>Sg(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){const r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ng={current:void 0};class Cg{constructor(e){var t=this;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.version="11.2.6",this.canTrackVelocity=null,this.events={},this.updateAndNotify=function(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=dh.now();t.updatedAt!==r&&t.setPrevFrameValue(),t.prev=t.current,t.setCurrent(e),t.current!==t.prev&&t.events.change&&t.events.change.notify(t.current),n&&t.events.renderRequest&&t.events.renderRequest.notify(t.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){var t;this.current=e,this.updatedAt=dh.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.current;this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new jg);const n=this.events[e].add(t);return"change"===e?()=>{n(),Mf.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Ng.current&&Ng.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=dh.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return up(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ag(e,t){return new Cg(e,t)}function Tg(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ag(n))}function Eg(e,t){let{protectedKeys:n,needsAnimating:r}=e;const i=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,i}function Dg(e,t){let{delay:n=0,transitionOverride:r,type:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;const u=e.getValue("willChange");r&&(a=r);const c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const f in l){const t=e.getValue(f,null!==(o=e.latestValues[f])&&void 0!==o?o:null),r=l[f];if(void 0===r||d&&Eg(d,f))continue;const i={delay:n,elapsed:0,...oh(a||{},f)};let s=!1;if(window.HandoffAppearAnimations){const n=e.getProps()[Fc];if(n){const e=window.HandoffAppearAnimations(n,f,t,Mf);null!==e&&(i.elapsed=e,s=!0)}}t.start(xg(f,t,r,e.shouldReduceMotion&&gd.has(f)?{type:!1}:i,e,s));const h=t.animation;h&&(wg(u)&&(u.add(f),h.then((()=>u.remove(f)))),c.push(h))}return s&&Promise.all(c).then((()=>{Mf.update((()=>{s&&function(e,t){const n=$f(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o)Tg(e,a,yf(o[a]))}(e,s)}))})),c}function kg(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var r;const i=$f(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(Dg(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=arguments.length>5?arguments[5]:void 0;const a=[],s=(e.variantChildren.size-1)*r,l=1===i?function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*r}:function(){return s-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*r};return Array.from(e.variantChildren).sort(Og).forEach(((e,r)=>{e.notify("AnimationStart",t),a.push(kg(e,t,{...o,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then((()=>t()))}return Promise.all([a(),s(n.delay)])}function Og(e,t){return e.sortNodePosition(t)}const Ig=[...Xc].reverse(),_g=Xc.length;function Pg(e){return t=>Promise.all(t.map((t=>{let{animation:n,options:r}=t;return function(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.notify("AnimationStart",t),Array.isArray(t)){const i=t.map((t=>kg(e,t,r)));n=Promise.all(i)}else if("string"===typeof t)n=kg(e,t,r);else{const i="function"===typeof t?$f(e,t,r.custom):t;n=Promise.all(Dg(e,i,r))}return n.then((()=>{Mf.postRender((()=>{e.notify("AnimationComplete",t)}))}))}(e,n,r)})))}function Lg(e){let t=Pg(e);const n={animate:Rg(!0),whileInView:Rg(),whileHover:Rg(),whileTap:Rg(),whileDrag:Rg(),whileFocus:Rg(),exit:Rg()};let r=!0;const i=t=>(n,r)=>{var i;const o=$f(e,r,"exit"===t?null===(i=e.presenceContext)||void 0===i?void 0:i.custom:void 0);if(o){const{transition:e,transitionEnd:t,...r}=o;n={...n,...r,...t}}return n};function o(o){const a=e.getProps(),s=e.getVariantContext(!0)||{},l=[],u=new Set;let c={},d=1/0;for(let t=0;t<_g;t++){const f=Ig[t],h=n[f],p=void 0!==a[f]?a[f]:s[f],g=Zc(p),m=f===o?h.isActive:null;!1===m&&(d=t);let y=p===s[f]&&p!==a[f]&&g;if(y&&r&&e.manuallyAnimateOnMount&&(y=!1),h.protectedKeys={...c},!h.isActive&&null===m||!p&&!h.prevProp||Kc(p)||"boolean"===typeof p)continue;let v=zg(h.prevProp,p)||f===o&&h.isActive&&!y&&g||t>d&&g,b=!1;const x=Array.isArray(p)?p:[p];let w=x.reduce(i(f),{});!1===m&&(w={});const{prevResolvedValues:M={}}=h,S={...M,...w},j=t=>{v=!0,u.has(t)&&(b=!0,u.delete(t)),h.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in S){const t=w[e],n=M[e];if(c.hasOwnProperty(e))continue;let r=!1;r=gf(t)&&gf(n)?!Xf(t,n):t!==n,r?void 0!==t&&null!==t?j(e):u.add(e):void 0!==t&&u.has(e)?j(e):h.protectedKeys[e]=!0}h.prevProp=p,h.prevResolvedValues=w,h.isActive&&(c={...c,...w}),r&&e.blockInitialAnimation&&(v=!1),!v||y&&!b||l.push(...x.map((e=>({animation:e,options:{type:f}}))))}if(u.size){const t={};u.forEach((n=>{const r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=null!==r&&void 0!==r?r:null})),l.push({animation:t})}let f=Boolean(l.length);return!r||!1!==a.initial&&a.initial!==a.animate||e.manuallyAnimateOnMount||(f=!1),r=!1,f?t(l):Promise.resolve()}return{animateChanges:o,setActive:function(t,r){var i;if(n[t].isActive===r)return Promise.resolve();null===(i=e.variantChildren)||void 0===i||i.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const a=o(t);for(const e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function zg(e,t){return"string"===typeof t?t!==e:!!Array.isArray(t)&&!Xf(t,e)}function Rg(){return{isActive:arguments.length>0&&void 0!==arguments[0]&&arguments[0],protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Fg=0;const Ug={animation:{Feature:class extends Uf{constructor(e){super(e),e.animationState||(e.animationState=Lg(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Kc(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends Uf{constructor(){super(...arguments),this.id=Fg++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Bg=(e,t)=>Math.abs(e-t);class Vg{constructor(e,t){let{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Yg(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Bg(e.x,t.x),r=Bg(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:i}=jf;this.history.push({...r,timestamp:i});const{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Qg(t,this.transformPagePoint),Mf.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=Yg("pointercancel"===e.type?this.lastMoveEventInfo:Qg(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!Ef(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const o=Qg(Df(e),this.transformPagePoint),{point:a}=o,{timestamp:s}=jf;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=t;l&&l(e,Yg(o,this.history)),this.removeListeners=_f(Of(this.contextWindow,"pointermove",this.handlePointerMove),Of(this.contextWindow,"pointerup",this.handlePointerUp),Of(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Sf(this.updatePoint)}}function Qg(e,t){return t?{point:t(e.point)}:e}function Hg(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Yg(e,t){let{point:n}=e;return{point:n,delta:Hg(n,Gg(t)),offset:Hg(n,Wg(t)),velocity:qg(t,.1)}}function Wg(e){return e[0]}function Gg(e){return e[e.length-1]}function qg(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Gg(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Jf(t)));)n--;if(!r)return{x:0,y:0};const o=eh(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Zg(e){return e.max-e.min}function Kg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.01;return Math.abs(e-t)<=n}function Xg(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;e.origin=r,e.originPoint=Qp(t.min,t.max,e.origin),e.scale=Zg(n)/Zg(t),(Kg(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Qp(n.min,n.max,e.origin)-e.originPoint,(Kg(e.translate)||isNaN(e.translate))&&(e.translate=0)}function $g(e,t,n,r){Xg(e.x,t.x,n.x,r?r.originX:void 0),Xg(e.y,t.y,n.y,r?r.originY:void 0)}function Jg(e,t,n){e.min=n.min+t.min,e.max=e.min+Zg(t)}function em(e,t,n){e.min=t.min-n.min,e.max=e.min+Zg(t)}function tm(e,t,n){em(e.x,t.x,n.x),em(e.y,t.y,n.y)}function nm(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function rm(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const im=.35;function om(e,t,n){return{min:am(e,t),max:am(e,n)}}function am(e,t){return"number"===typeof e?e:e[t]||0}const sm=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),lm=()=>({x:{min:0,max:0},y:{min:0,max:0}});function um(e){return[e("x"),e("y")]}function cm(e){let{top:t,left:n,right:r,bottom:i}=e;return{x:{min:n,max:r},y:{min:t,max:i}}}function dm(e){return void 0===e||1===e}function fm(e){let{scale:t,scaleX:n,scaleY:r}=e;return!dm(t)||!dm(n)||!dm(r)}function hm(e){return fm(e)||pm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function pm(e){return gm(e.x)||gm(e.y)}function gm(e){return e&&"0%"!==e}function mm(e,t,n){return n+t*(e-n)}function ym(e,t,n,r,i){return void 0!==i&&(e=mm(e,i,r)),mm(e,n,r)+t}function vm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;e.min=ym(e.min,t,n,r,i),e.max=ym(e.max,t,n,r,i)}function bm(e,t){let{x:n,y:r}=t;vm(e.x,n.translate,n.scale,n.originPoint),vm(e.y,r.translate,r.scale,r.originPoint)}function xm(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function wm(e,t){e.min=e.min+t,e.max=e.max+t}function Mm(e,t,n){let[r,i,o]=n;const a=void 0!==t[o]?t[o]:.5,s=Qp(e.min,e.max,a);vm(e,t[r],t[i],s,t.scale)}const Sm=["x","scaleX","originX"],jm=["y","scaleY","originY"];function Nm(e,t){Mm(e.x,t,Sm),Mm(e.y,t,jm)}function Cm(e,t){return cm(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const Am=e=>{let{current:t}=e;return t?t.ownerDocument.defaultView:null},Tm=new WeakMap;class Em{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=lm(),this.visualElement=e}start(e){let{snapToCursor:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new Vg(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(Df(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Rf(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),um((e=>{let t=this.getAxisMotionValue(e).get()||0;if(zd.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=Zg(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),i&&Mf.postRender((()=>i(e,t)));const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(a),void(null!==this.currentDirection&&i&&i(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>um((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:Am(this.visualElement)})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:i}=this.getProps();i&&Mf.postRender((()=>i(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!Dm(e,r,this.currentDirection))return;const i=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,t,n){let{min:r,max:i}=t;return void 0!==r&&e<r?e=n?Qp(r,e,n.min):Math.max(e,r):void 0!==i&&e>i&&(e=n?Qp(i,e,n.max):Math.min(e,i)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,i=this.constraints;t&&Gc(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,t){let{top:n,left:r,bottom:i,right:o}=t;return{x:nm(e.x,r,o),y:nm(e.y,n,i)}}(r.layoutBox,t),this.elastic=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:im;return!1===e?e=0:!0===e&&(e=im),{x:om(e,"left","right"),y:om(e,"top","bottom")}}(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&um((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Gc(e))return!1;const n=e.current;ph(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=function(e,t,n){const r=Cm(e,n),{scroll:i}=t;return i&&(wm(r.x,i.offset.x),wm(r.y,i.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let o=function(e,t){return{x:rm(e.x,t.x),y:rm(e.y,t.y)}}(r.layout.layoutBox,i);if(t){const e=t(function(e){let{x:t,y:n}=e;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=cm(e))}return o}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=um((a=>{if(!Dm(a,t,this.currentDirection))return;let l=s&&s[a]||{};o&&(l={min:0,max:0});const u=r?200:1e6,c=r?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(xg(e,n,0,t,this.visualElement))}stopAnimation(){um((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){um((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t="_drag".concat(e.toUpperCase()),n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){um((t=>{const{drag:n}=this.getProps();if(!Dm(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:o}=r.layout.layoutBox[t];i.set(e[t]-Qp(n,o,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Gc(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};um((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=Zg(e),i=Zg(t);return i>r?n=Vp(t.min,t.max-r,e.min):r>i&&(n=Vp(e.min,e.max-i,t.min)),Cd(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),um((t=>{if(!Dm(t,e,null))return;const n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set(Qp(i,o,r[t]))}))}addListeners(){if(!this.visualElement.current)return;Tm.set(this.visualElement,this);const e=Of(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();Gc(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const i=Tf(window,"resize",(()=>this.scalePositionWithinConstraints())),o=n.addEventListener("didUpdate",(e=>{let{delta:t,hasLayoutChanged:n}=e;this.isDragging&&n&&(um((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{i(),e(),r(),o&&o()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=im,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function Dm(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}const km=e=>(t,n)=>{e&&Mf.postRender((()=>e(t,n)))};const Om={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Im(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const _m={correct:(e,t)=>{if(!t.target)return e;if("string"===typeof e){if(!Rd.test(e))return e;e=parseFloat(e)}const n=Im(e,t.target.x),r=Im(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},Pm={correct:(e,t)=>{let{treeScale:n,projectionDelta:r}=t;const i=e,o=Xh.parse(e);if(o.length>5)return i;const a=Xh.createTransformer(e),s="number"!==typeof o[0]?1:0,l=r.x.scale*n.x,u=r.y.scale*n.y;o[0+s]/=l,o[1+s]/=u;const c=Qp(l,u,.5);return"number"===typeof o[2+s]&&(o[2+s]/=c),"number"===typeof o[3+s]&&(o[3+s]/=c),a(o)}};class Lm extends t.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;var o;o=Rm,Object.assign(hd,o),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",(()=>{this.safeToRemove()})),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Om.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o?(o.isPresent=i,r||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||Mf.postRender((()=>{const e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Yc.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function zm(e){const[n,r]=function(){const e=(0,t.useContext)(Pc);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,o=(0,t.useId)();return(0,t.useEffect)((()=>i(o)),[]),!n&&r?[!1,()=>r&&r(o)]:[!0]}(),i=(0,t.useContext)(od);return(0,La.jsx)(Lm,{...e,layoutGroup:i,switchLayoutGroup:(0,t.useContext)(ad),isPresent:n,safeToRemove:r})}const Rm={borderRadius:{..._m,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:_m,borderTopRightRadius:_m,borderBottomLeftRadius:_m,borderBottomRightRadius:_m,boxShadow:Pm},Fm=["TopLeft","TopRight","BottomLeft","BottomRight"],Um=Fm.length,Bm=e=>"string"===typeof e?parseFloat(e):e,Vm=e=>"number"===typeof e||Rd.test(e);function Qm(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Hm=Wm(0,.5,Pp),Ym=Wm(.5,.95,wf);function Wm(e,t,n){return r=>r<e?0:r>t?1:n(Vp(e,t,r))}function Gm(e,t){e.min=t.min,e.max=t.max}function qm(e,t){Gm(e.x,t.x),Gm(e.y,t.y)}function Zm(e,t,n,r,i){return e=mm(e-=t,1/n,r),void 0!==i&&(e=mm(e,1/i,r)),e}function Km(e,t,n,r,i){let[o,a,s]=n;!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:e;zd.test(t)&&(t=parseFloat(t),t=Qp(a.min,a.max,t/100)-a.min);if("number"!==typeof t)return;let s=Qp(o.min,o.max,r);e===o&&(s-=t),e.min=Zm(e.min,t,n,s,i),e.max=Zm(e.max,t,n,s,i)}(e,t[o],t[a],t[s],t.scale,r,i)}const Xm=["x","scaleX","originX"],$m=["y","scaleY","originY"];function Jm(e,t,n,r){Km(e.x,t,Xm,n?n.x:void 0,r?r.x:void 0),Km(e.y,t,$m,n?n.y:void 0,r?r.y:void 0)}function ey(e){return 0===e.translate&&1===e.scale}function ty(e){return ey(e.x)&&ey(e.y)}function ny(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function ry(e){return Zg(e.x)/Zg(e.y)}class iy{constructor(){this.members=[]}add(e){Mg(this.members,e),e.scheduleRender()}remove(e){if(Sg(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let r=t;r>=0;r--){const e=this.members[r];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function oy(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(null===n||void 0===n?void 0:n.z)||0;if((i||o||a)&&(r="translate3d(".concat(i,"px, ").concat(o,"px, ").concat(a,"px) ")),1===t.x&&1===t.y||(r+="scale(".concat(1/t.x,", ").concat(1/t.y,") ")),n){const{transformPerspective:e,rotate:t,rotateX:i,rotateY:o,skewX:a,skewY:s}=n;e&&(r="perspective(".concat(e,"px) ").concat(r)),t&&(r+="rotate(".concat(t,"deg) ")),i&&(r+="rotateX(".concat(i,"deg) ")),o&&(r+="rotateY(".concat(o,"deg) ")),a&&(r+="skewX(".concat(a,"deg) ")),s&&(r+="skewY(".concat(s,"deg) "))}const s=e.x.scale*t.x,l=e.y.scale*t.y;return 1===s&&1===l||(r+="scale(".concat(s,", ").concat(l,")")),r||"none"}const ay=(e,t)=>e.depth-t.depth;class sy{constructor(){this.children=[],this.isDirty=!1}add(e){Mg(this.children,e),this.isDirty=!0}remove(e){Sg(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ay),this.isDirty=!1,this.children.forEach(e)}}const ly=["","X","Y","Z"],uy={visibility:"hidden"};let cy=0;const dy={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function fy(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function hy(e){let{attachResizeListener:t,defaultParent:n,measureScroll:r,checkIsScrollRoot:i,resetTransform:o}=e;return class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===n||void 0===n?void 0:n();this.id=cy++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;this.projectionUpdateScheduled=!1,dy.totalNodes=dy.resolvedTargetDeltas=dy.recalculatedProjection=0,this.nodes.forEach(my),this.nodes.forEach(Sy),this.nodes.forEach(jy),this.nodes.forEach(yy),e=dy,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=t?t.root||t:this,this.path=t?[...t.path,t]:[],this.parent=t,this.depth=t?t.depth+1:0;for(let n=0;n<this.path.length;n++)this.path[n].shouldResetTransform=!0;this.root===this&&(this.nodes=new sy)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new jg),this.eventHandlers.get(e).add(t)}notifyListeners(e){const t=this.eventHandlers.get(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t&&t.notify(...r)}hasListeners(e){return this.eventHandlers.has(e)}mount(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root.hasTreeAnimated;if(this.instance)return;var r;this.isSVG=(r=e)instanceof SVGElement&&"svg"!==r.tagName,this.instance=e;const{layoutId:i,layout:o,visualElement:a}=this.options;if(a&&!a.current&&a.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(o||i)&&(this.isLayoutDirty=!0),t){let n;const r=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=dh.now(),r=i=>{let{timestamp:o}=i;const a=o-n;a>=t&&(Sf(r),e(a-t))};return Mf.read(r,!0),()=>Sf(r)}(r,250),Om.hasAnimatedSinceResize&&(Om.hasAnimatedSinceResize=!1,this.nodes.forEach(My))}))}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&a&&(i||o)&&this.addEventListener("didUpdate",(e=>{let{delta:t,hasLayoutChanged:n,hasRelativeTargetChanged:r,layout:i}=e;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||Dy,{onLayoutAnimationStart:s,onLayoutAnimationComplete:l}=a.getProps(),u=!this.targetLayout||!ny(this.targetLayout,i)||r,c=!n&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||n&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,c);const e={...oh(o,"layout"),onPlay:s,onComplete:l};(a.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else n||My(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Sf(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes&&this.nodes.forEach(Ny),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let i=0;i<this.path.length;i++){const e=this.path[i];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(by);this.isUpdating||this.nodes.forEach(xy),this.isUpdating=!1,this.nodes.forEach(wy),this.nodes.forEach(py),this.nodes.forEach(gy),this.clearAllSnapshots();const e=dh.now();jf.delta=Cd(0,1e3/60,e-jf.timestamp),jf.timestamp=e,jf.isProcessing=!0,Nf.update.process(jf),Nf.preRender.process(jf),Nf.render.process(jf),jf.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Yc.read((()=>this.update())))}clearAllSnapshots(){this.nodes.forEach(vy),this.sharedNodes.forEach(Cy)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Mf.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Mf.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),(!this.options.alwaysMeasureLayout||!this.isLead())&&!this.isLayoutDirty)return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=lm(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:i(this.instance),offset:r(this.instance)})}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!ty(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||hm(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),Iy((r=n).x),Iy(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return lm();const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(wm(t.x,n.offset.x),wm(t.y,n.offset.y)),t}removeElementScroll(e){const t=lm();qm(t,e);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:i,options:o}=r;if(r!==this.root&&i&&o.layoutScroll){if(i.isRoot){qm(t,e);const{scroll:n}=this.root;n&&(wm(t.x,-n.offset.x),wm(t.y,-n.offset.y))}wm(t.x,i.offset.x),wm(t.y,i.offset.y)}}return t}applyTransform(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=lm();qm(n,e);for(let r=0;r<this.path.length;r++){const e=this.path[r];!t&&e.options.layoutScroll&&e.scroll&&e!==e.root&&Nm(n,{x:-e.scroll.offset.x,y:-e.scroll.offset.y}),hm(e.latestValues)&&Nm(n,e.latestValues)}return hm(this.latestValues)&&Nm(n,this.latestValues),n}removeTransform(e){const t=lm();qm(t,e);for(let n=0;n<this.path.length;n++){const e=this.path[n];if(!e.instance)continue;if(!hm(e.latestValues))continue;fm(e.latestValues)&&e.updateSnapshot();const r=lm();qm(r,e.measurePageBox()),Jm(t,e.latestValues,e.snapshot?e.snapshot.layoutBox:void 0,r)}return hm(this.latestValues)&&Jm(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==jf.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:i,layoutId:o}=this.options;if(this.layout&&(i||o)){if(this.resolvedRelativeTargetAt=jf.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lm(),this.relativeTargetOrigin=lm(),tm(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),qm(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target=lm(),this.targetWithTransforms=lm()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,Jg(a.x,s.x,l.x),Jg(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):qm(this.target,this.layout.layoutBox),bm(this.target,this.targetDelta)):qm(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lm(),this.relativeTargetOrigin=lm(),tm(this.relativeTargetOrigin,this.target,e.target),qm(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}dy.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!fm(this.parent.latestValues)&&!pm(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===jf.timestamp&&(r=!1),r)return;const{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!i&&!o)return;qm(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=n.length;if(!i)return;let o,a;t.x=t.y=1;for(let s=0;s<i;s++){o=n[s],a=o.projectionDelta;const i=o.instance;i&&i.style&&"contents"===i.style.display||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Nm(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,bm(e,a)),r&&hm(o.latestValues)&&Nm(e,o.latestValues))}t.x=xm(t.x),t.y=xm(t.y)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms=lm());const{target:l}=t;if(!l)return void(this.projectionTransform&&(this.projectionDelta=sm(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=sm(),this.projectionDeltaWithTransform=sm());const u=this.projectionTransform;$g(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=oy(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),dy.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},o=sm();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a=lm(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(s&&!u&&!0===this.options.crossfade&&!this.path.some(Ey));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;Ay(o.x,e.x,n),Ay(o.y,e.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(tm(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){Ty(e.x,t.x,n.x,r),Ty(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,a,n),d&&function(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=lm()),qm(d,this.relativeTarget)),s&&(this.animationValues=i,function(e,t,n,r,i,o){i?(e.opacity=Qp(0,void 0!==n.opacity?n.opacity:1,Hm(r)),e.opacityExit=Qp(void 0!==t.opacity?t.opacity:1,0,Ym(r))):o&&(e.opacity=Qp(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let a=0;a<Um;a++){const i="border".concat(Fm[a],"Radius");let o=Qm(t,i),s=Qm(n,i);void 0===o&&void 0===s||(o||(o=0),s||(s=0),0===o||0===s||Vm(o)===Vm(s)?(e[i]=Math.max(Qp(Bm(o),Bm(s),r),0),(zd.test(s)||zd.test(o))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=Qp(t.rotate||0,n.rotate||0,r))}(i,r,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Sf(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Mf.update((()=>{Om.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=yd(e)?e:Ag(e);return r.start(xg("",r,t,n)),r.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&_y(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||lm();const t=Zg(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=Zg(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}qm(t,n),Nm(t,i),$g(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new iy);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote(){let{needsReset:e,transition:t,preserveFollowOpacity:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&fy("z",e,r,this.animationValues);for(let i=0;i<ly.length;i++)fy("rotate".concat(ly[i]),e,r,this.animationValues),fy("skew".concat(ly[i]),e,r,this.animationValues);e.render();for(const i in r)e.setStaticValue(i,r[i]),this.animationValues&&(this.animationValues[i]=r[i]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return uy;const r={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=vf(null===e||void 0===e?void 0:e.pointerEvents)||"",r.transform=i?i(this.latestValues,""):"none",r;const o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=vf(null===e||void 0===e?void 0:e.pointerEvents)||""),this.hasProjected&&!hm(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}const a=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=oy(this.projectionDeltaWithTransform,this.treeScale,a),i&&(r.transform=i(a,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin="".concat(100*s.origin,"% ").concat(100*l.origin,"% 0"),o.animationValues?r.opacity=o===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=o===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const u in hd){if(void 0===a[u])continue;const{correct:e,applyTo:t}=hd[u],n="none"===r.transform?a[u]:e(a[u],o);if(t){const e=t.length;for(let i=0;i<e;i++)r[t[i]]=n}else r[u]=n}return this.options.layoutId&&(r.pointerEvents=o===this?vf(null===e||void 0===e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(by),this.root.sharedNodes.clear()}}}function py(e){e.updateLayout()}function gy(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;"size"===i?um((e=>{const r=o?n.measuredBox[e]:n.layoutBox[e],i=Zg(r);r.min=t[e].min,r.max=r.min+i})):_y(i,n.layoutBox,t)&&um((r=>{const i=o?n.measuredBox[r]:n.layoutBox[r],a=Zg(t[r]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)}));const a=sm();$g(a,t,n.layoutBox);const s=sm();o?$g(s,e.applyTransform(r,!0),n.measuredBox):$g(s,t,n.layoutBox);const l=!ty(a);let u=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:i,layout:o}=r;if(i&&o){const a=lm();tm(a,n.layoutBox,i.layoutBox);const s=lm();tm(s,t,o.layoutBox),ny(a,s)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function my(e){dy.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function yy(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function vy(e){e.clearSnapshot()}function by(e){e.clearMeasurements()}function xy(e){e.isLayoutDirty=!1}function wy(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function My(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Sy(e){e.resolveTargetDelta()}function jy(e){e.calcProjection()}function Ny(e){e.resetSkewAndRotation()}function Cy(e){e.removeLeadSnapshot()}function Ay(e,t,n){e.translate=Qp(t.translate,0,n),e.scale=Qp(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ty(e,t,n,r){e.min=Qp(t.min,n.min,r),e.max=Qp(t.max,n.max,r)}function Ey(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Dy={duration:.45,ease:[.4,0,.1,1]},ky=e=>"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Oy=ky("applewebkit/")&&!ky("chrome/")?Math.round:wf;function Iy(e){e.min=Oy(e.min),e.max=Oy(e.max)}function _y(e,t,n){return"position"===e||"preserve-aspect"===e&&!Kg(ry(t),ry(n),.2)}const Py=hy({attachResizeListener:(e,t)=>Tf(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ly={current:void 0},zy=hy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ly.current){const e=new Py({});e.mount(window),e.setOptions({layoutScroll:!0}),Ly.current=e}return Ly.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Ry={pan:{Feature:class extends Uf{constructor(){super(...arguments),this.removePointerDownListener=wf}onPointerDown(e){this.session=new Vg(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Am(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:km(e),onStart:km(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Mf.postRender((()=>r(e,t)))}}}mount(){this.removePointerDownListener=Of(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Uf{constructor(e){super(e),this.removeGroupControls=wf,this.removeListeners=wf,this.controls=new Em(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||wf}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:zy,MeasureLayout:zm}};const Fy=new WeakMap,Uy=[...Ch,Uh,Xh],By=Object.keys(id),Vy=By.length,Qy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Hy=$c.length;function Yy(e){if(e)return!1!==e.options.allowProjection?e.projection:Yy(e.parent)}class Wy{scrapeMotionValuesFromProps(e,t,n){return{}}constructor(e){let{parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a}=e,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.resolveKeyframes=(e,t,n,r)=>new this.KeyframeResolver(e,t,n,r,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ih,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Mf.render(this.render,!1,!0);const{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=Jc(n),this.isVariantNode=ed(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const e=d[f];void 0!==l[f]&&yd(e)&&(e.set(l[f],!1),wg(c)&&c.add(f))}}mount(e){this.current=e,Fy.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),kc.current||Oc(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Dc.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var e;Fy.delete(this.current),this.projection&&this.projection.unmount(),Sf(this.notifyUpdate),Sf(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)null===(e=this.features[t])||void 0===e||e.unmount();this.current=null}bindToMotionValue(e,t){const n=gd.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&Mf.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),i=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{r(),i(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures(e,t,n,r){let i,o,{children:a,...s}=e;for(let l=0;l<Vy;l++){const e=By[l],{isEnabled:t,Feature:n,ProjectionNode:r,MeasureLayout:a}=id[e];r&&(i=r),t(s)&&(!this.features[e]&&n&&(this.features[e]=new n(this)),a&&(o=a))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&i){const{layoutId:e,layout:t,drag:n,dragConstraints:o,layoutScroll:a,layoutRoot:l}=s;this.projection=new i(this.latestValues,s["data-framer-portal-id"]?void 0:Yy(this.parent)),this.projection.setOptions({layoutId:e,layout:t,alwaysMeasureLayout:Boolean(n)||o&&Gc(o),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"===typeof t?t:"both",initialPromotionConfig:r,layoutScroll:a,layoutRoot:l})}return o}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):lm()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<Qy.length;n++){const t=Qy[n];this.propEventSubscriptions[t]&&(this.propEventSubscriptions[t](),delete this.propEventSubscriptions[t]);const r=e["on"+t];r&&(this.propEventSubscriptions[t]=this.on(t,r))}this.prevMotionValues=function(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],a=n[i];if(yd(o))e.addValue(i,o),wg(r)&&r.add(i);else if(yd(a))e.addValue(i,Ag(o,{owner:e})),wg(r)&&r.remove(i);else if(a!==o)if(e.hasValue(i)){const t=e.getValue(i);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{const t=e.getStaticValue(i);e.addValue(i,Ag(void 0!==t?t:o,{owner:e}))}}for(const i in n)void 0===t[i]&&e.removeValue(i);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0])return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const e={};for(let t=0;t<Hy;t++){const n=$c[t],r=this.props[n];(Zc(r)||!1===r)&&(e[n]=r)}return e}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=Ag(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return void 0!==r&&null!==r&&("string"===typeof r&&(gh(r)||fh(r))?r=parseFloat(r):!(e=>Uy.find(Nh(e)))(r)&&Xh.test(t)&&(r=ip(e,t)),this.setBaseTarget(e,yd(r)?r.get():r)),yd(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let r;if("string"===typeof n||"object"===typeof n){const i=pf(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);i&&(r=i[e])}if(n&&void 0!==r)return r;const i=this.getBaseTargetFromProps(this.props,e);return void 0===i||yd(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new jg),this.events[e].add(t)}notify(e){if(this.events[e]){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.events[e].notify(...n)}}}class Gy extends Wy{constructor(){super(...arguments),this.KeyframeResolver=ap}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,t){let{vars:n,style:r}=t;delete n[e],delete r[e]}}class qy extends Gy{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(gd.has(t)){const e=rp(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),i=(wd(t)?r.getPropertyValue(t):r[t])||0;return"string"===typeof i?i.trim():i}var n}measureInstanceViewportBox(e,t){let{transformPagePoint:n}=t;return Cm(e,n)}build(e,t,n,r){Hd(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return df(e,t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;yd(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent="".concat(e))})))}renderInstance(e,t,n,r){lf(e,t,n,r)}}class Zy extends Gy{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(gd.has(t)){const e=rp(t);return e&&e.default||0}return t=uf.has(t)?t:Rc(t),e.getAttribute(t)}measureInstanceViewportBox(){return lm()}scrapeMotionValuesFromProps(e,t,n){return ff(e,t,n)}build(e,t,n,r){nf(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){cf(e,t,0,r)}mount(e){this.isSVGTag=of(e.tagName),super.mount(e)}}const Ky=(e,n)=>fd(e)?new Zy(n,{enableHardwareAcceleration:!1}):new qy(n,{allowProjection:e!==t.Fragment,enableHardwareAcceleration:!0}),Xy={...Ug,...Kf,...Ry,...{layout:{ProjectionNode:zy,MeasureLayout:zm}}},$y=cd(((e,t)=>function(e,t,n,r){let{forwardMotionProps:i=!1}=t;return{...fd(e)?Cf:Af,preloadedFeatures:n,useRender:sf(i),createVisualElement:r,Component:e}}(e,t,Xy,Ky)));const Jy={collapsed:e=>({height:e?"auto":0,opacity:0,pointerEvents:"none",transitionEnd:{display:"none"}}),expanded:e=>({height:"auto",opacity:1,pointerEvents:"auto",display:"block"})},ev={ease:[.16,1,.3,1],duration:.6};function tv(e){let{isCollapsed:n,className:r,children:i}=e;const o=function(){!kc.current&&Oc();const[e]=(0,t.useState)(Dc.current);return e}();return(0,La.jsx)(La.Fragment,{children:(0,La.jsx)($y.div,{initial:"collapsed",animate:n?"collapsed":"expanded",variants:Jy,className:Ai()("overflow-hidden",r),transition:ev,custom:o,children:i},"collapse")})}function nv(e){return nv="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},nv(e)}function rv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function iv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rv(Object(n),!0).forEach((function(t){ov(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ov(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==nv(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==nv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===nv(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const av=li({displayName:"AlgoliaCurrentRefinements",$$type:"ais.currentRefinements",propTypes:{transformItems:P().func},getProvidedProps:function(e,t,n,r){var i=r.reduce((function(t,n){return"undefined"!==typeof n.items&&(e.clearsQuery||"query"!==n.id)?e.clearsQuery&&"query"===n.id&&""===n.items[0].currentRefinement?t:t.concat(n.items.map((function(e){return iv(iv({},e),{},{id:n.id,index:n.index})}))):t}),[]),o=e.transformItems?e.transformItems(i):i;return{items:o,canRefine:o.length>0}},refine:function(e,t,n){return(n instanceof Array?n.map((function(e){return e.value})):[n]).reduce((function(e,t){return t(e)}),t)}});function sv(e){let{children:t,className:n,header:r,attributes:i=[],isOpened:o=!1,items:a,onToggle:s}=e;const l=(0,Qe.useMediaQuery)({query:"(max-width: 776px)"});return(0,La.jsx)("div",{children:(0,La.jsxs)("div",{className:Ai()(n),style:{borderTop:l?"":"1px solid #d3d4d8"},children:[(0,La.jsxs)(rl,{className:"w-full flex items-center justify-between group","aria-expanded":o,style:{paddingLeft:"2px",paddingRight:"2px",paddingTop:l?"0px":"8px",paddingBottom:"8px",marginTop:"16px",marginBottom:"16px"},onClick:e=>{"function"===typeof s&&s(e)},children:[(0,La.jsx)("div",{className:"flex items-center w-full subhead",children:(0,La.jsx)("p",{style:{textTransform:"none",fontFamily:"Source Sans 3 !important",fontSize:14,fontWeight:"bold",lineHeight:"16px"},children:r||i[0]})}),!l&&(0,La.jsx)(La.Fragment,{children:o?(0,La.jsx)(al.Icon,{name:"minus"}):(0,La.jsx)(al.Icon,{name:"plus_rounded"})})]}),(0,La.jsx)(tv,{isCollapsed:!o,children:(0,La.jsx)("div",{className:"mt-4",children:t})})]})})}const lv=av((0,t.memo)(sv));function uv(e){var t;return null!==e&&void 0!==e&&e.attributes?null===(t=e.options)||void 0===t?void 0:t.attributes.join(":"):null===e||void 0===e?void 0:e.attribute}function cv(e){const t=e.widgets,n=[];return null!==t&&void 0!==t&&t.length?t.forEach((e=>n.push(uv(e)))):n.push(uv(e)),n.join(":")}function dv(e){return null===e||void 0===e?void 0:e.attribute}function fv(e){const t=null===e||void 0===e?void 0:e.widgets,n=[];return null!==t&&void 0!==t&&t.length?t.forEach((e=>n.push(dv(e)))):n.push(dv(e)),n}function hv(e){const t={};return e.forEach((e=>{t[e]=(t[e]||0)+1})),Object.entries(t).map((e=>{let[t,n]=e;return{value:t,count:n}}))}const pv=e=>{const{postFilter:n}=Dr((e=>e.search)),r=(0,t.useMemo)((()=>((e,t)=>{const n={};return null===e||void 0===e||e.forEach((e=>{const r=e.filters||{},i=Object.keys(r);for(let o=0;o<i.length;o++){const e=i[o];let a=i.every((n=>{if(e!==n){const e=t[n]||{},i=r[n]||{},o=Object.keys(e).filter((t=>e[t]));return!((null===o||void 0===o?void 0:o.length)>0)||(null===o||void 0===o?void 0:o.some((e=>null===i||void 0===i?void 0:i.includes(e))))}return!0}));a&&(n[e]?n[e]=[...n[e],...r[e]]:n[e]=r[e])}})),n})(e,n)),[e,n]),i=(0,t.useMemo)((()=>{const e={};for(const t in r)r.hasOwnProperty(t)&&(e[t]=hv(r[t]));return e}),[r]);return Object.keys(n).forEach((e=>{const t=n[e];Object.keys(t).forEach((t=>{const n=i[e].some((e=>e.value===t));n||i[e].push({value:t,count:0})}))})),i};const gv=Nc((e=>Boolean(Object.values(e(mv)).find((e=>!0===e)))),((e,t,n)=>{const r=n(e(gv));var i,o;t(mv,(i=e(mv),o=r,Object.keys(i).reduce(((e,t)=>({...e,[t]:o})),{})))})),mv=Nc({});function yv(e){let{children:n,onToggle:r,panelId:i,...o}=e;const a=(0,t.useCallback)((()=>r(i)),[r,i]);return(0,La.jsx)(lv,{onToggle:a,...o,children:n})}function vv(e){var n,r;let{dynamicWidgets:i=!0,onApply:o}=e;const a=Dr((e=>e)),{settings:s,search:{postFilter:l,results:u}}=a,{refinements:c}=s,[d,f]=Tc(mv),[h,p]=Tc(gv),g=ke(),m=(0,Qe.useMediaQuery)({query:"(max-width: 776px)"}),{t:y}=Qi(),v=Er(),b=pv(u);(0,t.useEffect)((()=>{f((e=>({...e,...c.reduce(((e,t)=>({...e,[cv(t)]:Boolean(t.isExpanded)})),{})})))}),[]);const x=(0,t.useCallback)((e=>{f((t=>({...t,[e]:!t[e]})))}),[f]),w=(0,t.useMemo)((()=>c.map((e=>{const t=null===b||void 0===b?void 0:b[e.attribute];return(0,La.jsx)("div",{style:{display:"flex",flexDirection:"column",rowGap:"16px",marginBottom:"8px"},children:null===t||void 0===t?void 0:t.map(((t,n)=>(0,La.jsxs)("div",{style:{display:"flex",alignItems:"center",columnGap:"4px"},children:[(0,La.jsx)(ec,{color:"primary",size:"small",style:{padding:"0px"},checked:!!(0,qn.get)(l,"".concat(e.attribute,".").concat(t.value)),onChange:()=>{v(or({[e.attribute]:t.value}))}}),(0,La.jsx)("p",{style:{fontSize:"14px",paddingTop:"3px"},children:t.value}),(0,La.jsxs)("p",{style:{fontSize:"14px",paddingTop:"3px"},children:["(",t.count,")"]})]},n)))})}))),[c,b,l,v]),M=(0,t.useMemo)((()=>w.map(((e,t)=>{const n=c[t],r=cv(n),i=fv(n);return e?(0,La.jsx)(yv,{panelId:r,attributes:i,header:n.header,isOpened:m?!d[r]:d[r],onToggle:x,children:e},r):(0,La.jsx)(La.Fragment,{})}))),[w,c,x,d,m]),S=(0,t.useCallback)((()=>{p((e=>!e))}),[p]),j=()=>{o(),"/result"!==g.location.pathname&&g.push("/result")};return(0,La.jsxs)(La.Fragment,{children:[!m&&(0,La.jsx)("div",{className:"wrap-main-header-panel",children:(0,La.jsx)("div",{style:{cursor:"pointer",paddingBottom:"8px"},children:(0,La.jsx)("div",{onClick:S,style:{display:"flex",justifyContent:"flex-end"},children:(0,La.jsx)(nc,{icon:h?"remove":"add",label:"".concat(y(h?"Collapse all":"Expand all")," ")})})})}),(0,La.jsxs)("div",{children:[m&&(0,La.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",position:"sticky",top:"0px",zIndex:100,background:"white",alignItems:"center"},children:(0,La.jsx)(rl,{onClick:o,style:{width:"32px",height:"32px"},children:(0,La.jsx)(al.Icon,{name:"close",color:"#2B2C46"})})}),(0,La.jsx)("div",{className:"box-center-filter",style:{...m?{paddingLeft:"24px",paddingRight:"24px",overflow:"auto",marginBottom:"12px"}:{}},children:(0,La.jsx)(tc,{enabled:i,children:M})})]}),m&&(0,La.jsxs)("div",{style:{position:"sticky",bottom:0,width:"100%",display:"flex"},children:[(0,La.jsx)("div",{className:"text-white",style:{width:"100%",backgroundColor:null===(n=s.theme)||void 0===n?void 0:n.secondaryColor,fontWeight:500,fontSize:14,borderRadius:0,height:"66px",textTransform:"none",padding:"16px"},onClick:j,children:"Cancel"}),(0,La.jsx)("div",{className:"text-white",style:{width:"100%",backgroundColor:null===(r=s.theme)||void 0===r?void 0:r.primaryColor,fontWeight:500,fontSize:14,borderRadius:0,height:"66px",textTransform:"none",padding:"16px"},onClick:j,children:"Apply filters"})]})]})}function bv(e){return bv="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},bv(e)}function xv(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==bv(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==bv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bv(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wv="refinementList";function Mv(e){return e.attribute}function Sv(e,t,n){var r=vi(e,t,n,"".concat(wv,".").concat(Mv(e)),[]);return"string"!==typeof r?r:r?[r]:[]}function jv(e,t,n,r){var i=Sv(t,n,r);return-1===i.indexOf(e)?i.concat([e]):i.filter((function(t){return t!==e}))}function Nv(e){var t=e.showMore,n=e.limit,r=e.showMoreLimit;return t?r:n}function Cv(e,t,n,r){return mi(t,xv({},Mv(e),n.length>0?n:""),r,!0,wv)}var Av=["isRefined","count:desc","name:asc"];const Tv=li({displayName:"AlgoliaRefinementList",$$type:"ais.refinementList",propTypes:{id:P().string,attribute:P().string.isRequired,operator:P().oneOf(["and","or"]),showMore:P().bool,limit:P().number,showMoreLimit:P().number,defaultRefinement:P().arrayOf(P().oneOfType([P().string,P().number])),searchable:P().bool,transformItems:P().func,facetOrdering:P().bool},defaultProps:{operator:"or",showMore:!1,limit:10,showMoreLimit:20,facetOrdering:!0},getProvidedProps:function(e,t,n,r,i){var o=e.attribute,a=e.searchable,s=e.indexContextValue,l=e.facetOrdering,u=pi(n,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),c=Boolean(u)&&Boolean(u.getFacetByName(o)),d=Boolean(i&&i[o]&&""!==i.query);if(a&&s)throw new Error("react-instantsearch: searching in *List is not available when used inside a multi index context");if(!c)return{items:[],currentRefinement:Sv(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),canRefine:c,isFromSearch:d,searchable:a};var f=d?i[o].map((function(n){return{label:n.value,value:jv(n.escapedValue,e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),_highlightResult:{label:{value:n.highlighted}},count:n.count,isRefined:n.isRefined}})):u.getFacetValues(o,{sortBy:Av,facetOrdering:l}).map((function(n){return{label:n.name,value:jv(n.escapedValue,e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),count:n.count,isRefined:n.isRefined}})),h=e.transformItems?e.transformItems(f):f;return{items:h.slice(0,Nv(e)),currentRefinement:Sv(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),isFromSearch:d,searchable:a,canRefine:h.length>0}},refine:function(e,t,n){return Cv(e,t,n,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},searchForFacetValues:function(e,t,n){return{facetName:e.attribute,query:n,maxFacetHits:Nv(e)}},cleanUp:function(e,t){return function(e,t,n){return bi(t,n,"".concat(wv,".").concat(Mv(e)))}(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},getSearchParameters:function(e,t,n){var r=t.attribute,i="and"===t.operator?"addFacet":"addDisjunctiveFacet",o="".concat(i,"Refinement");return e=(e=e.setQueryParameters({maxValuesPerFacet:Math.max(e.maxValuesPerFacet||0,Nv(t))}))[i](r),Sv(t,n,{ais:t.contextValue,multiIndexContext:t.indexContextValue}).reduce((function(e,t){return e[o](r,t)}),e)},getMetadata:function(e,t){var n=Mv(e),r={ais:e.contextValue,multiIndexContext:e.indexContextValue};return{id:n,index:hi(r),items:Sv(e,t,r).length>0?[{attribute:e.attribute,label:"".concat(e.attribute,": "),currentRefinement:Sv(e,t,r),value:function(t){return Cv(e,t,[],r)},items:Sv(e,t,r).map((function(n){return{label:(i="".concat(n),i.replace(/^\\-/,"-")),value:function(i){var o=Sv(e,i,r).filter((function(e){return e!==n}));return Cv(e,t,o,r)}};var i}))}]:[]}}});function Ev(e){return function(e){if(Array.isArray(e))return Dv(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return Dv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dv(e,t)}(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 Dv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var kv=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ais";return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=r.filter((function(e){return e||""===e})).map((function(n){var r="".concat(t,"-").concat(e);return n?"".concat(r,"-").concat(n):r}));return Ai()(o)}},Ov=function(e){return 0===e.length?"":"".concat(e[0].toUpperCase()).concat(e.slice(1))};function Iv(e){var t=e.start,n=void 0===t?0:t,r=e.end,i=e.step,o=void 0===i?1:i,a=0===o?1:o,s=Math.round((r-n)/a);return Ev(Array(s)).map((function(e,t){return(n+t)*a}))}function _v(e){return _v="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},_v(e)}function Pv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bv(r.key),r)}}function Lv(e,t){return Lv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lv(e,t)}function zv(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(qi){return!1}}();return function(){var n,r=Fv(e);if(t){var i=Fv(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===_v(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Rv(e)}(this,n)}}function Rv(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fv(e){return Fv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fv(e)}function Uv(e,t,n){return(t=Bv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bv(e){var t=function(e,t){if("object"!==_v(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_v(t)?t:String(t)}var Vv=kv("Panel"),Qv=(0,t.createContext)((function(){})),Hv=Qv.Consumer,Yv=Qv.Provider,Wv=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lv(e,t)}(a,e);var n,r,i,o=zv(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Uv(Rv(e=o.call.apply(o,[this].concat(n))),"state",{canRefine:!0}),Uv(Rv(e),"setCanRefine",(function(t){e.setState({canRefine:t})})),e}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.children,r=e.className,i=e.header,o=e.footer,a=this.state.canRefine;return t.createElement("div",{className:Ai()(Vv("",!a&&"-noRefinement"),r)},i&&t.createElement("div",{className:Vv("header")},i),t.createElement("div",{className:Vv("body")},t.createElement(Yv,{value:this.setCanRefine},n)),o&&t.createElement("div",{className:Vv("footer")},o))}}],r&&Pv(n.prototype,r),i&&Pv(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(t.Component);Uv(Wv,"propTypes",{children:P().node.isRequired,className:P().string,header:P().node,footer:P().node}),Uv(Wv,"defaultProps",{className:"",header:null,footer:null});function Gv(e){return Gv="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},Gv(e)}function qv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$v(r.key),r)}}function Zv(e,t){return Zv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Zv(e,t)}function Kv(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(qi){return!1}}();return function(){var n,r=Xv(e);if(t){var i=Xv(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Gv(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Xv(e){return Xv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xv(e)}function $v(e){var t=function(e,t){if("object"!==Gv(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Gv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Gv(t)?t:String(t)}var Jv=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zv(e,t)}(o,e);var t,n,r,i=Kv(o);function o(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"componentDidMount",value:function(){this.props.setCanRefine(this.props.canRefine)}},{key:"componentDidUpdate",value:function(e){e.canRefine!==this.props.canRefine&&this.props.setCanRefine(this.props.canRefine)}},{key:"render",value:function(){return this.props.children}}])&&qv(t.prototype,n),r&&qv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(t.Component);!function(e,t,n){(t=$v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(Jv,"propTypes",{children:P().node.isRequired,canRefine:P().bool.isRequired,setCanRefine:P().func.isRequired});var eb=function(e){var n=e.canRefine,r=e.children;return t.createElement(Hv,null,(function(e){return t.createElement(Jv,{setCanRefine:e,canRefine:n},r)}))};eb.propTypes={canRefine:P().bool.isRequired,children:P().node.isRequired};const tb=eb;function nb(e){return nb="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},nb(e)}function rb(){return rb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rb.apply(this,arguments)}function ib(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ub(r.key),r)}}function ob(e,t){return ob=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ob(e,t)}function ab(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(qi){return!1}}();return function(){var n,r=lb(e);if(t){var i=lb(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===nb(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return sb(e)}(this,n)}}function sb(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lb(e){return lb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lb(e)}function ub(e){var t=function(e,t){if("object"!==nb(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==nb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===nb(t)?t:String(t)}function cb(e){return function(n){var r,i=function(r){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ob(e,t)}(l,r);var i,o,a,s=ab(l);function l(){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return function(e,t,n){(t=ub(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(sb(t=s.call.apply(s,[this].concat(r))),"translate",(function(n){var r=t.props.translations,i=r&&r.hasOwnProperty(n)?r[n]:e[n];if("function"===typeof i){for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return i.apply(void 0,a)}return i})),t}return i=l,(o=[{key:"render",value:function(){return t.createElement(n,rb({translate:this.translate},this.props))}}])&&ib(i.prototype,o),a&&ib(i,a),Object.defineProperty(i,"prototype",{writable:!1}),l}(t.Component),o=n.displayName||n.name||"UnknownComponent";return i.displayName="Translatable(".concat(o,")"),i.propTypes={translations:(r=Object.keys(e),function(e,t,n){var i=e[t];if(i)for(var o=0,a=Object.keys(i);o<a.length;o++){var s=a[o];if(-1===r.indexOf(s))return new Error("Unknown `".concat(t,"` key `").concat(s,"`. Check the render method ")+"of `".concat(n,"`."))}})},i}}var db={highlightPreTag:"<ais-highlight-0000000000>",highlightPostTag:"</ais-highlight-0000000000>"};function fb(e){var t=e.preTag,n=e.postTag,r=e.highlightedValue,i=(void 0===r?"":r).split(t),o=i.shift(),a=""===o?[]:[{value:o,isHighlighted:!1}];if(n===t){var s=!0;i.forEach((function(e){a.push({value:e,isHighlighted:s}),s=!s}))}else i.forEach((function(e){var t=e.split(n);a.push({value:t[0],isHighlighted:!0}),""!==t[1]&&a.push({value:t[1],isHighlighted:!1})}));return a}function hb(e){var t=e.preTag,n=void 0===t?"<em>":t,r=e.postTag,i=void 0===r?"</em>":r,o=e.highlightProperty,a=e.attribute,s=e.hit;if(!s)throw new Error("`hit`, the matching record, must be provided");var l,u,c=(l=s[o],u=a,(Array.isArray(u)?u:u.replace(/\[(\d+)]/g,".$1").split(".")).reduce((function(e,t){return e?e[t]:void 0}),l)||{});return Array.isArray(c)?c.map((function(e){return fb({preTag:n,postTag:i,highlightedValue:e.value})})):fb({preTag:n,postTag:i,highlightedValue:c.value})}var pb=function(e){var t=e.attribute,n=e.hit,r=e.highlightProperty,i=e.preTag,o=void 0===i?db.highlightPreTag:i,a=e.postTag;return hb({attribute:t,highlightProperty:r,hit:n,preTag:o,postTag:void 0===a?db.highlightPostTag:a})};const gb=li({displayName:"AlgoliaHighlighter",$$type:"ais.highlighter",propTypes:{},getProvidedProps:function(){return{highlight:pb}}});var mb=function(e){var n=e.cx,r=e.value,i=e.highlightedTagName,o=e.isHighlighted,a=e.nonHighlightedTagName,s=o?i:a,l=o?"highlighted":"nonHighlighted";return t.createElement(s,{className:n(l)},r)};mb.propTypes={cx:P().func.isRequired,value:P().string.isRequired,isHighlighted:P().bool.isRequired,highlightedTagName:P().string.isRequired,nonHighlightedTagName:P().string.isRequired};var yb=function(e){var n=e.cx,r=e.hit,i=e.attribute,o=e.highlight,a=e.highlightProperty,s=e.tagName,l=e.nonHighlightedTagName,u=e.separator,c=e.className,d=o({hit:r,attribute:i,highlightProperty:a});return t.createElement("span",{className:Ai()(n(""),c)},d.map((function(e,r){if(Array.isArray(e)){var i=r===d.length-1;return t.createElement("span",{key:r},e.map((function(e,r){return t.createElement(mb,{cx:n,key:r,value:e.value,highlightedTagName:s,nonHighlightedTagName:l,isHighlighted:e.isHighlighted})})),!i&&t.createElement("span",{className:n("separator")},u))}return t.createElement(mb,{cx:n,key:r,value:e.value,highlightedTagName:s,nonHighlightedTagName:l,isHighlighted:e.isHighlighted})})))};yb.propTypes={cx:P().func.isRequired,hit:P().object.isRequired,attribute:P().oneOfType([P().arrayOf(P().string),P().string]).isRequired,highlight:P().func.isRequired,highlightProperty:P().string.isRequired,tagName:P().string,nonHighlightedTagName:P().string,className:P().string,separator:P().node},yb.defaultProps={tagName:"em",nonHighlightedTagName:"span",className:"",separator:", "};const vb=yb;function bb(){return bb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bb.apply(this,arguments)}var xb=kv("Highlight");const wb=gb((function(e){return t.createElement(vb,bb({},e,{highlightProperty:"_highlightResult",cx:xb}))}),{$$widgetType:"ais.highlight"});function Mb(e){return Mb="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},Mb(e)}function Sb(){return Sb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sb.apply(this,arguments)}function jb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jb(Object(n),!0).forEach((function(t){kb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ob(r.key),r)}}function Ab(e,t){return Ab=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ab(e,t)}function Tb(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(qi){return!1}}();return function(){var n,r=Db(e);if(t){var i=Db(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Mb(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Eb(e)}(this,n)}}function Eb(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Db(e){return Db=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Db(e)}function kb(e,t,n){return(t=Ob(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ob(e){var t=function(e,t){if("object"!==Mb(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Mb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Mb(t)?t:String(t)}var Ib=kv("SearchBox"),_b=t.createElement("svg",{width:"18",height:"18",viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:"#444",className:Ib("loadingIcon"),"aria-hidden":"true"},t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("g",{transform:"translate(1 1)",strokeWidth:"2"},t.createElement("circle",{strokeOpacity:".5",cx:"18",cy:"18",r:"18"}),t.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},t.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"}))))),Pb=t.createElement("svg",{className:Ib("resetIcon"),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",width:"10",height:"10","aria-hidden":"true"},t.createElement("path",{d:"M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"})),Lb=t.createElement("svg",{className:Ib("submitIcon"),xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 40 40","aria-hidden":"true"},t.createElement("path",{d:"M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z"})),zb=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ab(e,t)}(a,e);var n,r,i,o=Tb(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),kb(Eb(t=o.call(this)),"getQuery",(function(){return t.props.searchAsYouType?t.props.currentRefinement:t.state.query})),kb(Eb(t),"onInputMount",(function(e){t.input=e,t.props.inputRef&&("function"===typeof t.props.inputRef?t.props.inputRef(e):t.props.inputRef.current=e)})),kb(Eb(t),"onKeyDown",(function(e){if(t.props.focusShortcuts){var n=t.props.focusShortcuts.map((function(e){return"string"===typeof e?e.toUpperCase().charCodeAt(0):e})),r=e.target||e.srcElement,i=r.tagName;if(!r.isContentEditable&&"INPUT"!==i&&"SELECT"!==i&&"TEXTAREA"!==i){var o=e.which||e.keyCode;-1!==n.indexOf(o)&&(t.input.focus(),e.stopPropagation(),e.preventDefault())}}})),kb(Eb(t),"onSubmit",(function(e){e.preventDefault(),e.stopPropagation(),t.input.blur();var n=t.props,r=n.refine;return n.searchAsYouType||r(t.getQuery()),!1})),kb(Eb(t),"onChange",(function(e){var n=t.props,r=n.searchAsYouType,i=n.refine,o=n.onChange,a=e.target.value;r?i(a):t.setState({query:a}),o&&o(e)})),kb(Eb(t),"onReset",(function(e){var n=t.props,r=n.searchAsYouType,i=n.refine,o=n.onReset;i(""),t.input.focus(),r||t.setState({query:""}),o&&o(e)})),t.state={query:e.searchAsYouType?null:e.currentRefinement},t}return n=a,r=[{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.onKeyDown)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.onKeyDown)}},{key:"componentDidUpdate",value:function(e){this.props.searchAsYouType||e.currentRefinement===this.props.currentRefinement||this.setState({query:this.props.currentRefinement})}},{key:"render",value:function(){var e=this,n=this.props,r=n.className,i=n.inputId,o=n.translate,a=n.autoFocus,s=n.loadingIndicator,l=n.submit,u=n.reset,c=this.getQuery(),d=Object.keys(this.props).reduce((function(t,n){return-1===["onsubmit","onreset","onchange"].indexOf(n.toLowerCase())&&0===n.indexOf("on")?Nb(Nb({},t),{},kb({},n,e.props[n])):t}),{}),f=this.props.showLoadingIndicator&&this.props.isSearchStalled;return t.createElement("div",{className:Ai()(Ib(""),r)},t.createElement("form",{ref:this.props.formRef,noValidate:!0,onSubmit:this.props.onSubmit?this.props.onSubmit:this.onSubmit,onReset:this.onReset,className:Ib("form",f&&"form--stalledSearch"),action:"",role:"search"},t.createElement("input",Sb({ref:this.onInputMount,id:i,type:"search",placeholder:o("placeholder"),autoFocus:a,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",required:!0,maxLength:"512",value:c,onChange:this.onChange},d,{className:Ib("input")})),t.createElement("button",{type:"submit",title:o("submitTitle"),className:Ib("submit")},l),t.createElement("button",{type:"reset",title:o("resetTitle"),className:Ib("reset"),hidden:!c||f},u),this.props.showLoadingIndicator&&t.createElement("span",{hidden:!f,className:Ib("loadingIndicator")},s)))}}],r&&Cb(n.prototype,r),i&&Cb(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(t.Component);kb(zb,"propTypes",{currentRefinement:P().string,className:P().string,refine:P().func.isRequired,translate:P().func.isRequired,loadingIndicator:P().node,reset:P().node,submit:P().node,focusShortcuts:P().arrayOf(P().oneOfType([P().string,P().number])),autoFocus:P().bool,searchAsYouType:P().bool,onSubmit:P().func,onReset:P().func,onChange:P().func,isSearchStalled:P().bool,showLoadingIndicator:P().bool,formRef:P().oneOfType([P().func,P().exact({current:P().object})]),inputRef:P().oneOfType([P().func,P().exact({current:P().object})]),inputId:P().string}),kb(zb,"defaultProps",{currentRefinement:"",className:"",focusShortcuts:["s","/"],autoFocus:!1,searchAsYouType:!0,showLoadingIndicator:!1,isSearchStalled:!1,loadingIndicator:_b,reset:Pb,submit:Lb});const Rb=cb({resetTitle:"Clear the search query.",submitTitle:"Submit your search query.",placeholder:"Search here\u2026"})(zb);function Fb(e){return Fb="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},Fb(e)}function Ub(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wb(r.key),r)}}function Bb(e,t){return Bb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Bb(e,t)}function Vb(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(qi){return!1}}();return function(){var n,r=Hb(e);if(t){var i=Hb(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Fb(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Qb(e)}(this,n)}}function Qb(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hb(e){return Hb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hb(e)}function Yb(e,t,n){return(t=Wb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wb(e){var t=function(e,t){if("object"!==Fb(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Fb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Fb(t)?t:String(t)}var Gb=P().arrayOf(P().shape({value:P().any,label:P().node.isRequired,items:function(){return Gb.apply(void 0,arguments)}})),qb=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bb(e,t)}(a,e);var n,r,i,o=Vb(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Yb(Qb(e=o.call(this)),"onShowMoreClick",(function(){e.setState((function(e){return{extended:!e.extended}}))})),Yb(Qb(e),"getLimit",(function(){var t=e.props,n=t.limit,r=t.showMoreLimit;return e.state.extended?r:n})),Yb(Qb(e),"resetQuery",(function(){e.setState({query:""})})),Yb(Qb(e),"renderItem",(function(n,r){var i=n.items&&Boolean(n.items.length);return t.createElement("li",{key:n.key||n.label,className:e.props.cx("item",n.isRefined&&"item--selected",n.noRefinement&&"item--noRefinement",i&&"item--parent")},e.props.renderItem(n,r),i&&t.createElement("ul",{className:e.props.cx("list","list--child")},n.items.slice(0,e.getLimit()).map((function(t){return e.renderItem(t,n)}))))})),e.state={extended:!1,query:""},e}return n=a,r=[{key:"renderShowMore",value:function(){var e=this.props,n=e.showMore,r=e.translate,i=e.cx,o=this.state.extended,a=this.props.limit>=this.props.items.length;return n?t.createElement("button",{disabled:a,className:i("showMore",a&&"showMore--disabled"),onClick:this.onShowMoreClick},r("showMore",o)):null}},{key:"renderSearchBox",value:function(){var e=this,n=this.props,r=n.cx,i=n.searchForItems,o=n.isFromSearch,a=n.translate,s=n.items,l=n.selectItem,u=0===s.length&&""!==this.state.query?t.createElement("div",{className:r("noResults")},a("noResults")):null;return t.createElement("div",{className:r("searchBox")},t.createElement(Rb,{currentRefinement:this.state.query,refine:function(t){e.setState({query:t}),i(t)},focusShortcuts:[],translate:a,onSubmit:function(t){t.preventDefault(),t.stopPropagation(),o&&s.length>0&&l(s[0],e.resetQuery)}}),u)}},{key:"render",value:function(){var e=this,n=this.props,r=n.cx,i=n.items,o=n.className,a=n.searchable,s=n.canRefine,l=a?this.renderSearchBox():null,u=Ai()(r("",!s&&"-noRefinement"),o);return 0===i.length?t.createElement("div",{className:u},l):t.createElement("div",{className:u},l,t.createElement("ul",{className:r("list",!s&&"list--noRefinement")},i.slice(0,this.getLimit()).map((function(t){return e.renderItem(t,e.resetQuery)}))),this.renderShowMore())}}],r&&Ub(n.prototype,r),i&&Ub(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(t.Component);Yb(qb,"propTypes",{cx:P().func.isRequired,translate:P().func,items:Gb,renderItem:P().func.isRequired,selectItem:P().func,className:P().string,showMore:P().bool,limit:P().number,showMoreLimit:P().number,show:P().func,searchForItems:P().func,searchable:P().bool,isFromSearch:P().bool,canRefine:P().bool}),Yb(qb,"defaultProps",{className:"",isFromSearch:!1});const Zb=qb;function Kb(e){return Kb="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},Kb(e)}function Xb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rx(r.key),r)}}function $b(e,t){return $b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$b(e,t)}function Jb(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(qi){return!1}}();return function(){var n,r=tx(e);if(t){var i=tx(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Kb(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ex(e)}(this,n)}}function ex(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tx(e){return tx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tx(e)}function nx(e,t,n){return(t=rx(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rx(e){var t=function(e,t){if("object"!==Kb(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Kb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Kb(t)?t:String(t)}var ix=kv("RefinementList"),ox=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$b(e,t)}(a,e);var n,r,i,o=Jb(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return nx(ex(e=o.call.apply(o,[this].concat(r))),"state",{query:""}),nx(ex(e),"selectItem",(function(t,n){n(),e.props.refine(t.value)})),nx(ex(e),"renderItem",(function(n,r){var i=e.props.isFromSearch?t.createElement(wb,{attribute:"label",hit:n}):n.label;return t.createElement("label",{className:ix("label")},t.createElement("input",{className:ix("checkbox"),type:"checkbox",checked:n.isRefined,onChange:function(){return e.selectItem(n,r)}}),t.createElement("span",{className:ix("labelText")},i)," ",t.createElement("span",{className:ix("count")},n.count.toLocaleString()))})),e}return n=a,(r=[{key:"render",value:function(){var e=this.props,n=e.translate,r=e.items,i=e.showMore,o=e.limit,a=e.showMoreLimit,s=e.isFromSearch,l=e.searchForItems,u=e.searchable,c=e.canRefine,d=e.className;return t.createElement(Zb,{renderItem:this.renderItem,selectItem:this.selectItem,cx:ix,translate:n,items:r,showMore:i,limit:o,showMoreLimit:a,isFromSearch:s,searchForItems:l,searchable:u,canRefine:c,className:d,query:this.state.query})}}])&&Xb(n.prototype,r),i&&Xb(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(t.Component);nx(ox,"propTypes",{translate:P().func.isRequired,refine:P().func.isRequired,searchForItems:P().func.isRequired,searchable:P().bool,createURL:P().func.isRequired,items:P().arrayOf(P().shape({label:P().string.isRequired,value:P().arrayOf(P().string).isRequired,count:P().number.isRequired,isRefined:P().bool.isRequired})),isFromSearch:P().bool.isRequired,canRefine:P().bool.isRequired,showMore:P().bool,limit:P().number,showMoreLimit:P().number,transformItems:P().func,className:P().string}),nx(ox,"defaultProps",{className:""});const ax=cb({showMore:function(e){return e?"Show less":"Show more"},noResults:"No results",submit:null,reset:null,resetTitle:"Clear the search query.",submitTitle:"Submit your search query.",placeholder:"Search here\u2026"})(ox);const sx=Tv((function(e){return t.createElement(tb,e,t.createElement(ax,e))}),{$$widgetType:"ais.refinementList"});const lx=Nc((e=>Boolean(Object.values(e(ux)).find((e=>!0===e)))),((e,t,n)=>{const r=n(e(lx));var i,o;t(ux,(i=e(ux),o=r,Object.keys(i).reduce(((e,t)=>({...e,[t]:o})),{})))})),ux=Nc({});function cx(e){let{children:n,onToggle:r,panelId:i,...o}=e;const a=(0,t.useCallback)((()=>r(i)),[r,i]);return(0,La.jsx)(lv,{onToggle:a,...o,children:n})}function dx(e){var n,r;let{dynamicWidgets:i=!0,onApply:o,disjunctiveFacets:a}=e;const s=Dr((e=>e)),{settings:l}=s,{refinements:u}=l,[c,d]=Tc(ux),[f,h]=Tc(lx),p=ke(),g=(0,Qe.useMediaQuery)({query:"(max-width: 776px)"}),{t:m}=Qi();(0,t.useEffect)((()=>{d((e=>({...e,...u.reduce(((e,t)=>({...e,[cv(t)]:!g||Boolean(t.isExpanded)})),{})})))}),[]);const y=(0,t.useCallback)((e=>{d((t=>({...t,[e]:!t[e]})))}),[d]),v=(0,t.useMemo)((()=>u.map((e=>(0,La.jsx)(sx,{className:"box-refinement-list",attribute:e.attribute,...e.options,translations:{noResults:"No results",placeholder:""},transformItems:e=>(0,qn.orderBy)(e,"label","desc")})))),[u]),b=(0,t.useMemo)((()=>v.map(((e,t)=>{const n=u[t],r=cv(n),i=fv(n);return e?(0,La.jsx)(cx,{panelId:r,attributes:i,header:n.header,isOpened:g?!c[r]:c[r],onToggle:y,children:e},r):(0,La.jsx)(La.Fragment,{})}))),[v,u,y,c,g]),x=(0,t.useCallback)((()=>{h((e=>!e))}),[h]),w=()=>{o(),"/result"!==p.location.pathname&&p.push("/result")};return(0,La.jsxs)(La.Fragment,{children:[!g&&(0,La.jsx)("div",{className:"wrap-main-header-panel",children:(0,La.jsx)("div",{style:{cursor:"pointer",paddingBottom:"8px"},children:(0,La.jsx)("div",{onClick:x,style:{display:"flex",justifyContent:"flex-end"},children:(0,La.jsx)(nc,{icon:f?"remove":"add",label:"".concat(m(f?"Collapse all":"Expand all")," ")})})})}),(0,La.jsxs)("div",{children:[g&&(0,La.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",position:"sticky",top:"0px",zIndex:100,background:"white",alignItems:"center"},children:(0,La.jsx)(rl,{onClick:()=>{o()},style:{width:"32px",height:"32px"},children:(0,La.jsx)(al.Icon,{name:"close",color:"#2B2C46"})})}),(0,La.jsx)("div",{className:"box-center-filter",style:{...g?{paddingLeft:"24px",paddingRight:"24px",overflow:"auto",marginBottom:"12px"}:{}},children:(0,La.jsx)(tc,{enabled:i,children:b})})]}),g&&(0,La.jsxs)("div",{style:{position:"sticky",bottom:0,width:"100%",display:"flex"},children:[(0,La.jsx)("div",{className:"text-white",style:{width:"100%",backgroundColor:null===(n=l.theme)||void 0===n?void 0:n.secondaryColor,fontWeight:500,fontSize:14,borderRadius:0,height:"66px",textTransform:"none",padding:"16px"},onClick:w,children:"Cancel"}),(0,La.jsx)("div",{className:"text-white",style:{width:"100%",backgroundColor:null===(r=l.theme)||void 0===r?void 0:r.primaryColor,fontWeight:500,fontSize:14,borderRadius:0,height:"66px",textTransform:"none",padding:"16px"},onClick:w,children:"Apply filters"})]})]})}function fx(e){const t=Dr((e=>e.settings)),{isOpenFilter:n,allSearchResults:r,onApply:i}=e;return(0,La.jsxs)(La.Fragment,{children:[t.algolia.enabled&&(0,La.jsx)(dx,{disjunctiveFacets:null===r||void 0===r?void 0:r.disjunctiveFacets,onApply:i}),!t.algolia.enabled&&n&&(0,La.jsx)(vv,{onApply:i})]})}const hx=Ni((0,t.memo)(fx));const px=ji((0,t.memo)(Ni((function(e){var n,r,i,o,a,s,l,u,c;const{refine:d}=e,{user:f,isAuthenticated:h,logout:p}=oa(),g=Er(),m=aa(),y=ke(),v=Dr((e=>e.settings.auth0)),b=Dr((e=>e.search.preFilter)),x=Dr((e=>e.search.valueTextSearch)),w=Dr((e=>e.search.queryText)),M=Dr((e=>e.search.results)),S=Dr((e=>e.search.postFilter)),j=Dr((e=>e.settings)),N=null===(n=j.algolia)||void 0===n?void 0:n.enabled,{resetRequestState:C,requestImages:A}=qa((e=>({resetRequestState:e.reset,requestImages:e.requestImages}))),[T,E]=(0,t.useState)(!1),[D,k]=(0,t.useState)(!1),[O,I]=(0,t.useState)(!1),[_,P]=(0,t.useState)(!1),[L,z]=(0,t.useState)(!1),[R,F]=(0,t.useState)(!1),[U,B]=(0,t.useState)(w||""),V=m.get("query")||"",Q=(0,t.useMemo)((()=>A.length>0),[A]);(0,t.useEffect)((()=>{var e;"/result"===(null===(e=y.location)||void 0===e?void 0:e.pathname)&&(Q||U)?E(!0):E(!1)}),[y.location,U,Q,A]),(0,t.useEffect)((()=>{Q?(y.push("/result"),B(""),N?d(""):g(fr(""))):N&&setTimeout((()=>{d(V)}),100)}),[Q,g,d,y,N,A]),(0,t.useEffect)((()=>{(0,qn.isEmpty)(V)||(B(V),N?(d(V),setTimeout((()=>{d(V)}),100)):g(fr(V)))}),[m,d,g,V,N]);const H=Fu(),Y=(0,t.useMemo)((()=>{let e=!1;if(N){if(null===x||void 0===x||!x.refinementList)return!1;Object.keys(null===x||void 0===x?void 0:x.refinementList).forEach((t=>{"object"!==typeof x.refinementList[t]||(e=!0)}))}else Object.keys(S).forEach((t=>{const n=S[t];Object.keys(n).forEach((t=>{n[t]&&(e=!0)}))}));return e}),[null===x||void 0===x?void 0:x.refinementList,j,S]),W=(0,t.useMemo)((()=>{var t;return N?!(j.postFilterOption&&(null===(t=e.allSearchResults)||void 0===t?void 0:t.hits.length)>0):!(j.postFilterOption&&(null===M||void 0===M?void 0:M.length)>0)}),[j,M,null===(r=e.allSearchResults)||void 0===r?void 0:r.hits]),G=(0,t.useMemo)((()=>j.shouldUseUserMetadata&&f?!(!j.preFilterOption||f["/user_metadata"].value):j.preFilterOption),[j.preFilterOption,j.shouldUseUserMetadata,f]),q=(0,t.useMemo)((()=>{const e=localStorage.getItem("upload-disclaimer-webapp");return 0===A.length||!!e&&"dont-show"===e}),[_,A]);return(0,La.jsxs)(La.Fragment,{children:[L&&(0,La.jsx)("div",{className:"box-filter open",style:{top:"0px",height:"100%",width:"100%",zIndex:999,position:"absolute"},children:(0,La.jsx)("div",{style:{width:"100%"},className:"wrap-filter-desktop",children:(0,La.jsx)("div",{className:"bg-white box-filter-desktop isMobile",children:(0,La.jsx)(Ru,{handleClose:()=>z((e=>!e))})})})}),(0,La.jsx)(za,{openModal:D,handleClose:()=>{k(!1)},children:(0,La.jsxs)("div",{style:{backgroundColor:"white",width:"360px",padding:"24px"},children:[(0,La.jsx)("div",{style:{display:"flex",justifyContent:"flex-end"},onClick:()=>k(!1),children:(0,La.jsx)(al.Icon,{name:"close",color:"black"})}),(0,La.jsx)("p",{style:{fontSize:"36px",fontWeight:"bold",color:"#2B2C46"},children:"Logout"}),(0,La.jsx)("p",{style:{fontSize:"13px",color:"#2B2C46",paddingTop:"16px"},children:"Are you sure you want to log out? Your session will be securely closed."}),(0,La.jsx)("p",{style:{fontSize:"13px",color:"#2B2C46",paddingTop:"16px"},children:"Email"}),(0,La.jsx)("div",{style:{backgroundColor:"#FAFAFA",height:"32px",paddingLeft:"16px",paddingRight:"16px",marginTop:"8px"},children:null===f||void 0===f?void 0:f.email}),(0,La.jsx)("div",{style:{display:"flex",width:"100%",marginTop:"16px"},children:(0,La.jsx)("div",{style:{width:"50%",backgroundColor:"#2B2C46",color:"white",padding:"16px"},onClick:()=>{p({logoutParams:{returnTo:window.location.origin}})},children:"Confirm log out"})})]})}),_&&(0,La.jsx)(ul,{onClose:()=>{P(!1)},onContinue:e=>{let{file:t,dontShowAgain:n}=e;n&&localStorage.setItem("upload-disclaimer-webapp","dont-show"),I(!0),P(!1)},isMobile:!0}),(0,La.jsxs)("div",{style:{width:"100%",background:"#fff"},children:[(0,La.jsxs)("div",{className:"box-content flex items-center justify-between h-12 pr-6 pl-4 ".concat("/result"===(null===(i=y.location)||void 0===i?void 0:i.pathname)?"border-solid border-b border-[#afafaf52] ":""),style:{background:null===(o=j.theme)||void 0===o?void 0:o.headerColor},children:[(0,La.jsx)(Ve,{to:"/",style:{lineHeight:0},onClick:()=>{g(tr("")),g(ar({})),C()},children:(0,La.jsx)("img",{src:null===(a=j.theme)||void 0===a?void 0:a.appBarLogoUrl,alt:"logo",style:{aspectRatio:1,width:null===(s=j.theme)||void 0===s?void 0:s.logoWidth,height:null===(l=j.theme)||void 0===l?void 0:l.logoHeight}})}),v.enabled&&h&&(0,La.jsx)("div",{onClick:()=>{k(!0)},children:(0,La.jsx)(al.Icon,{name:"logout",className:"text-[#AAABB5]",width:24,height:24})})]}),(0,La.jsxs)("div",{className:Ai()(["flex","md:hidden","fixed","/"!==(null===(u=y.location)||void 0===u?void 0:u.pathname)?"bottom-4":"bottom-12","w-full","px-2","gap-2"]),children:[(0,La.jsx)("div",{className:Ai()(["flex-grow"]),children:(0,La.jsxs)("div",{className:Ai()(["h-12","rounded-3xl","shadow-outer","w-full","bg-white","px-2","flex","items-center","justify-between"]),children:[(0,La.jsxs)("div",{className:"flex flex-1 gap-x-2",children:[G&&(0,La.jsxs)("button",{className:Ai()(["!min-w-8","min-h-8","rounded-3xl","flex","justify-center","items-center","bg-[#F3F3F5]","relative"]),onClick:()=>{z((e=>!e))},title:"pre-filter",children:[(0,La.jsx)("div",{className:Ai()([(0,qn.isEmpty)(b)?"hidden":"block","absolute","top-0","right-0","w-2","min-w-2","h-2","bg-[#3E36DC]","border-2","border-white","rounded-full"])}),(0,La.jsx)(al.Icon,{name:"filter_settings",className:Ai()((0,qn.isEmpty)(b)?"text-black":"text-[#3E36DC]")})]}),(0,La.jsx)(yx,{value:U,onChange:e=>{B(e.currentTarget.value),H(e.currentTarget.value),""===e.currentTarget.value&&(B(""),N&&d(""))}})]}),(0,La.jsx)("div",{className:"flex gap-x-2",children:(0,La.jsx)("div",{className:Ai()(["/"!==(null===(c=y.location)||void 0===c?void 0:c.pathname)?"flex":"hidden","w-8","h-8","rounded-3xl","justify-center","items-center","bg-[#F3F3F5]"]),onClick:()=>{q?I(!0):P(!0)},children:(0,La.jsx)(al.Icon,{name:"camera_simple"})})})]})}),T&&j.postFilterOption&&(0,La.jsxs)("div",{style:{position:"relative",width:"48px",height:"48px",padding:" 8px",flexShrink:0,borderRadius:"32px",background:"#FAFAFA",boxShadow:" 0px 0px 8px 0px rgba(0, 0, 0, 0.15)"},onClick:()=>{W&&!Y||(F(!0),z(!1))},children:[(0,La.jsx)("div",{style:{display:"flex",background:"".concat(W?"#F3F3F5":Y?"#F0EFFF":"#F3F3F5"),borderRadius:"40px",width:"32px",height:"32px",justifyContent:"center",alignItems:"center"},children:(0,La.jsx)(al.Icon,{name:"filter",className:Ai()([Y?"text-[#3E36DC]":W?"text-[#E0E0E0]":"text-[#2B2C46]"])})}),Y&&(0,La.jsx)("div",{style:{position:"absolute",top:"8px",left:"35px",display:"flex",justifyContent:"center",alignItems:"center",background:"white",width:"10px",height:"10px",borderRadius:"100%"},children:(0,La.jsx)("div",{style:{width:"8px",height:"8px",borderRadius:"100%"},className:Ai()([Y?"bg-[#3E36DC]":W?"bg-[#E0E0E0]":"bg-[#2B2C46]"])})})]})]}),(0,La.jsx)(ll,{show:O,onClose:()=>{I(!O)},newSearch:!0}),(0,La.jsx)("div",{className:"box-filter ".concat(R?"":"!hidden"),style:{top:"0px",height:"100%",width:"100%",position:"absolute"},children:(0,La.jsx)(hx,{isOpenFilter:R,onApply:()=>{F(!1)}})})]})]})})))),gx=px,mx="mobile-input-search",yx=e=>{let{value:n,onChange:r}=e;(0,t.useEffect)((()=>{const e=document.getElementById(mx),t=t=>{"Enter"===t.key&&(null===e||void 0===e||e.blur())};return null===e||void 0===e||e.addEventListener("keyup",t,!1),()=>{null===e||void 0===e||e.removeEventListener("scroll",t,!1)}}),[]);const{t:i}=Qi();return(0,La.jsx)("input",{style:{border:"0px",width:"100%",display:"flex",flexGrow:1,fontSize:14,paddingLeft:"12px",paddingRight:"4px",color:"#2B2C46",outline:"none",borderRadius:"32px"},className:"input-search",placeholder:i("Search"),value:n,onChange:r,id:mx})};n(6331);function vx(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function bx(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function xx(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function wx(e){return"function"===typeof e?e():e}var Mx=t.forwardRef((function(e,n){var r=e.action,i=e.anchorEl,o=e.anchorOrigin,a=void 0===o?{vertical:"top",horizontal:"left"}:o,s=e.anchorPosition,l=e.anchorReference,u=void 0===l?"anchorEl":l,c=e.children,d=e.classes,f=e.className,h=e.container,p=e.elevation,g=void 0===p?8:p,m=e.getContentAnchorEl,y=e.marginThreshold,v=void 0===y?16:y,b=e.onEnter,x=e.onEntered,w=e.onEntering,M=e.onExit,S=e.onExited,j=e.onExiting,N=e.open,C=e.PaperProps,A=void 0===C?{}:C,E=e.transformOrigin,D=void 0===E?{vertical:"top",horizontal:"left"}:E,k=e.TransitionComponent,O=void 0===k?yl:k,I=e.transitionDuration,_=void 0===I?"auto":I,P=e.TransitionProps,L=void 0===P?{}:P,z=(0,sa.A)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),R=t.useRef(),F=t.useCallback((function(e){if("anchorPosition"===u)return s;var t=wx(i),n=(t&&1===t.nodeType?t:(0,ca.A)(R.current).body).getBoundingClientRect(),r=0===e?a.vertical:"center";return{top:n.top+vx(n,r),left:n.left+bx(n,a.horizontal)}}),[i,a.horizontal,a.vertical,s,u]),U=t.useCallback((function(e){var t=0;if(m&&"anchorEl"===u){var n=m(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[a.vertical,u,m]),B=t.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:vx(e,D.vertical)+t,horizontal:bx(e,D.horizontal)}}),[D.horizontal,D.vertical]),V=t.useCallback((function(e){var t=U(e),n={width:e.offsetWidth,height:e.offsetHeight},r=B(n,t);if("none"===u)return{top:null,left:null,transformOrigin:xx(r)};var o=F(t),a=o.top-r.vertical,s=o.left-r.horizontal,l=a+n.height,c=s+n.width,d=(0,Sa.A)(wx(i)),f=d.innerHeight-v,h=d.innerWidth-v;if(a<v){var p=a-v;a-=p,r.vertical+=p}else if(l>f){var g=l-f;a-=g,r.vertical+=g}if(s<v){var m=s-v;s-=m,r.horizontal+=m}else if(c>h){var y=c-h;s-=y,r.horizontal+=y}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:xx(r)}}),[i,u,F,U,B,v]),Q=t.useCallback((function(){var e=R.current;if(e){var t=V(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[V]),H=t.useCallback((function(e){R.current=la.findDOMNode(e)}),[]);t.useEffect((function(){N&&Q()})),t.useImperativeHandle(r,(function(){return N?{updatePosition:function(){Q()}}:null}),[N,Q]),t.useEffect((function(){if(N){var e=(0,bs.A)((function(){Q()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[N,Q]);var Y=_;"auto"!==_||O.muiSupportAuto||(Y=void 0);var W=h||(i?(0,ca.A)(wx(i)).body:void 0);return t.createElement(Pa,(0,T.A)({container:W,open:N,ref:n,BackdropProps:{invisible:!0},className:(0,Za.A)(d.root,f)},z),t.createElement(O,(0,T.A)({appear:!0,in:N,onEnter:b,onEntered:x,onExit:M,onExited:S,onExiting:j,timeout:Y},L,{onEntering:(0,ma.A)((function(e,t){w&&w(e,t),Q()}),L.onEntering)}),t.createElement(Ns,(0,T.A)({elevation:g,ref:H},A,{className:(0,Za.A)(d.paper,A.className)}),c)))}));const Sx=(0,Ka.A)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(Mx);const jx=t.createContext({});var Nx=t.forwardRef((function(e,n){var r=e.children,i=e.classes,o=e.className,a=e.component,s=void 0===a?"ul":a,l=e.dense,u=void 0!==l&&l,c=e.disablePadding,d=void 0!==c&&c,f=e.subheader,h=(0,sa.A)(e,["children","classes","className","component","dense","disablePadding","subheader"]),p=t.useMemo((function(){return{dense:u}}),[u]);return t.createElement(jx.Provider,{value:p},t.createElement(s,(0,T.A)({className:(0,Za.A)(i.root,o,u&&i.dense,!d&&i.padding,f&&i.subheader),ref:n},h),f,r))}));const Cx=(0,Ka.A)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Nx);function Ax(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Tx(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Ex(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Dx(e,t,n,r,i,o){for(var a=!1,s=i(e,t,!!t&&n);s;){if(s===e.firstChild){if(a)return;a=!0}var l=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Ex(s,o)&&!l)return void s.focus();s=i(e,s,n)}}var kx="undefined"===typeof window?t.useEffect:t.useLayoutEffect,Ox=t.forwardRef((function(e,n){var r=e.actions,i=e.autoFocus,o=void 0!==i&&i,a=e.autoFocusItem,s=void 0!==a&&a,l=e.children,u=e.className,c=e.disabledItemsFocusable,d=void 0!==c&&c,f=e.disableListWrap,h=void 0!==f&&f,p=e.onKeyDown,g=e.variant,m=void 0===g?"selectedMenu":g,y=(0,sa.A)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),v=t.useRef(null),b=t.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});kx((function(){o&&v.current.focus()}),[o]),t.useImperativeHandle(r,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!v.current.style.width;if(e.clientHeight<v.current.clientHeight&&n){var r="".concat(Ma(),"px");v.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,v.current.style.width="calc(100% + ".concat(r,")")}return v.current}}}),[]);var x=t.useCallback((function(e){v.current=la.findDOMNode(e)}),[]),w=(0,fa.A)(x,n),M=-1;t.Children.forEach(l,(function(e,n){t.isValidElement(e)&&(e.props.disabled||("selectedMenu"===m&&e.props.selected||-1===M)&&(M=n))}));var S=t.Children.map(l,(function(e,n){if(n===M){var r={};return s&&(r.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===m&&(r.tabIndex=0),t.cloneElement(e,r)}return e}));return t.createElement(Cx,(0,T.A)({role:"menu",ref:w,className:u,onKeyDown:function(e){var t=v.current,n=e.key,r=(0,ca.A)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Dx(t,r,h,d,Ax);else if("ArrowUp"===n)e.preventDefault(),Dx(t,r,h,d,Tx);else if("Home"===n)e.preventDefault(),Dx(t,null,h,d,Ax);else if("End"===n)e.preventDefault(),Dx(t,null,h,d,Tx);else if(1===n.length){var i=b.current,o=n.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);var s=r&&!i.repeating&&Ex(r,i);i.previousKeyMatched&&(s||Dx(t,r,!1,d,Ax,i))?e.preventDefault():i.previousKeyMatched=!1}p&&p(e)},tabIndex:o?0:-1},y),S)}));const Ix=Ox;var _x={vertical:"top",horizontal:"right"},Px={vertical:"top",horizontal:"left"},Lx=t.forwardRef((function(e,n){var r=e.autoFocus,i=void 0===r||r,o=e.children,a=e.classes,s=e.disableAutoFocusItem,l=void 0!==s&&s,u=e.MenuListProps,c=void 0===u?{}:u,d=e.onClose,f=e.onEntering,h=e.open,p=e.PaperProps,g=void 0===p?{}:p,m=e.PopoverClasses,y=e.transitionDuration,v=void 0===y?"auto":y,b=e.TransitionProps,x=(b=void 0===b?{}:b).onEntering,w=(0,sa.A)(b,["onEntering"]),M=e.variant,S=void 0===M?"selectedMenu":M,j=(0,sa.A)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),N=cs(),C=i&&!l&&h,A=t.useRef(null),E=t.useRef(null),D=-1;t.Children.map(o,(function(e,n){t.isValidElement(e)&&(e.props.disabled||("menu"!==S&&e.props.selected||-1===D)&&(D=n))}));var k=t.Children.map(o,(function(e,n){return n===D?t.cloneElement(e,{ref:function(t){E.current=la.findDOMNode(t),(0,da.A)(e.ref,t)}}):e}));return t.createElement(Sx,(0,T.A)({getContentAnchorEl:function(){return E.current},classes:m,onClose:d,TransitionProps:(0,T.A)({onEntering:function(e,t){A.current&&A.current.adjustStyleForScrollbar(e,N),f&&f(e,t),x&&x(e,t)}},w),anchorOrigin:"rtl"===N.direction?_x:Px,transformOrigin:"rtl"===N.direction?_x:Px,PaperProps:(0,T.A)({},g,{classes:(0,T.A)({},g.classes,{root:a.paper})}),open:h,ref:n,transitionDuration:v},j),t.createElement(Ix,(0,T.A)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===D||l),autoFocusItem:C,variant:S},c,{className:(0,Za.A)(a.list,c.className)}),k))}));const zx=(0,Ka.A)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(Lx);var Rx=n(1948),Fx="undefined"===typeof window?t.useEffect:t.useLayoutEffect,Ux=t.forwardRef((function(e,n){var r=e.alignItems,i=void 0===r?"center":r,o=e.autoFocus,a=void 0!==o&&o,s=e.button,l=void 0!==s&&s,u=e.children,c=e.classes,d=e.className,f=e.component,h=e.ContainerComponent,p=void 0===h?"li":h,g=e.ContainerProps,m=(g=void 0===g?{}:g).className,y=(0,sa.A)(g,["className"]),v=e.dense,b=void 0!==v&&v,x=e.disabled,w=void 0!==x&&x,M=e.disableGutters,S=void 0!==M&&M,j=e.divider,N=void 0!==j&&j,C=e.focusVisibleClassName,A=e.selected,E=void 0!==A&&A,D=(0,sa.A)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),k=t.useContext(jx),O={dense:b||k.dense||!1,alignItems:i},I=t.useRef(null);Fx((function(){a&&I.current&&I.current.focus()}),[a]);var _=t.Children.toArray(u),P=_.length&&(0,Rx.A)(_[_.length-1],["ListItemSecondaryAction"]),L=t.useCallback((function(e){I.current=la.findDOMNode(e)}),[]),z=(0,fa.A)(L,n),R=(0,T.A)({className:(0,Za.A)(c.root,d,O.dense&&c.dense,!S&&c.gutters,N&&c.divider,w&&c.disabled,l&&c.button,"center"!==i&&c.alignItemsFlexStart,P&&c.secondaryAction,E&&c.selected),disabled:w},D),F=f||"li";return l&&(R.component=f||"div",R.focusVisibleClassName=(0,Za.A)(c.focusVisible,C),F=tl),P?(F=R.component||f?F:"div","li"===p&&("li"===F?F="div":"li"===R.component&&(R.component="div")),t.createElement(jx.Provider,{value:O},t.createElement(p,(0,T.A)({className:(0,Za.A)(c.container,m),ref:z},y),t.createElement(F,R,_),_.pop()))):t.createElement(jx.Provider,{value:O},t.createElement(F,(0,T.A)({ref:z},R),_))}));const Bx=(0,Ka.A)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(Ux);var Vx=t.forwardRef((function(e,n){var r,i=e.classes,o=e.className,a=e.component,s=void 0===a?"li":a,l=e.disableGutters,u=void 0!==l&&l,c=e.ListItemClasses,d=e.role,f=void 0===d?"menuitem":d,h=e.selected,p=e.tabIndex,g=(0,sa.A)(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(r=void 0!==p?p:-1),t.createElement(Bx,(0,T.A)({button:!0,role:f,tabIndex:r,component:s,selected:h,disableGutters:u,classes:(0,T.A)({dense:i.dense},c),className:(0,Za.A)(i.root,o,h&&i.selected,!u&&i.gutters),ref:n},g))}));const Qx=(0,Ka.A)((function(e){return{root:(0,T.A)({},e.typography.body1,(0,He.A)({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:(0,T.A)({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(Vx),Hx=e=>{var n,r,i;const{refine:o}=e,a=Dr((e=>e.search.preFilter)),s=Dr((e=>e.settings)),l=(0,t.useRef)(null),u=ke(),[c,d]=(0,t.useState)(""),f=Er(),h=aa(),[p,g]=(0,t.useState)(!1),{t:m}=Qi(),y=null===(n=s.algolia)||void 0===n?void 0:n.enabled,v=(0,t.useRef)(null),{singleImageSearch:b}=Us(),{cadSearch:x}=sl(),{user:w}=oa(),[M,S]=(0,t.useState)(!1),{requestImages:j}=qa((e=>({requestImages:e.requestImages}))),N=window.settings.cadSearch,C=(0,t.useMemo)((()=>j.length>0),[j]);(0,t.useEffect)((()=>{null!==l&&void 0!==l&&l.current&&(null===l||void 0===l||l.current.focus())}),[l]),(0,t.useEffect)((()=>{const e=e=>{v.current&&(v.current.contains(e.target)?v.current.classList.add("active"):v.current.classList.remove("active"))};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}),[v]),(0,t.useEffect)((()=>{const e=h.get("query")||"";(0,qn.isEmpty)(e)||(d(e),f(fr(e)),y&&(o(e),setTimeout((()=>{o(e)}),100)))}),[h,o,f,y]),(0,t.useEffect)((()=>{C&&(d(""),y&&o(""),u.push("/result"))}),[C,y,j]),(0,t.useEffect)((()=>{var e;"/"===(null===(e=u.location)||void 0===e?void 0:e.pathname)&&(d(""),f(fr("")))}),[u.location]);const A=Fu(),T=async e=>{(0,Is.isCadFile)(e)&&N?(f(gr(!0)),f($n()),"/result"!==u.location.pathname&&u.push("/result"),x({file:e,settings:s,newSearch:!0}).then((e=>{f(gr(!1))}))):(f(gr(!0)),f($n()),"/result"!==u.location.pathname&&u.push("/result"),b({image:e,settings:s,showFeedback:!0,newSearch:!0}).then((()=>{f(gr(!1))})))},E=(0,t.useMemo)((()=>s.shouldUseUserMetadata&&w?!(!s.preFilterOption||w["/user_metadata"].value):s.preFilterOption),[s.preFilterOption,s.shouldUseUserMetadata,w]),D=(0,t.useMemo)((()=>{const e=localStorage.getItem("upload-disclaimer-webapp");return 0===j.length||!!e&&"dont-show"===e}),[M,j]);return(0,La.jsxs)(La.Fragment,{children:[M&&(0,La.jsx)(ul,{onClose:()=>{S(!1)},onContinue:e=>{let{file:t,dontShowAgain:n}=e;n&&localStorage.setItem("upload-disclaimer-webapp","dont-show"),T(t),S(!1)},isMobile:!1}),(0,La.jsxs)("div",{className:"wrap-input-search-field",children:[(0,La.jsx)("div",{className:"box-input-search d-flex",children:(0,La.jsxs)("div",{className:"input-wrapper",children:[(0,La.jsxs)("div",{className:"box-inp",children:[(0,La.jsx)(Iu,{title:(0,qn.isEmpty)(a)?m("Add or change pre-filter"):Object.keys(a).join(", "),placement:"top",arrow:!0,disableHoverListener:!E,children:(0,La.jsxs)("div",{className:"pre-filter-icon",style:{cursor:E?"pointer":"default"},onClick:()=>!!E&&g(!0),children:[E&&(0,La.jsx)("div",{className:"icon-hover desktop",style:{...(0,qn.isEmpty)(a)?{backgroundColor:"#2B2C46"}:{backgroundColor:"".concat(null===(r=s.theme)||void 0===r?void 0:r.primaryColor)}},children:(0,La.jsx)(al.Icon,{name:"filter_settings",color:"white"})}),!E&&(0,La.jsx)(al.Icon,{name:"search",width:16,height:16}),!(0,qn.isEmpty)(a)&&E&&(0,La.jsx)("div",{style:{position:"absolute",top:"1px",left:"26px",display:"flex",justifyContent:"center",alignItems:"center",background:"white",width:"12px",height:"12px",borderRadius:"100%"},children:(0,La.jsx)("div",{style:{width:"8px",height:"8px",background:null===(i=s.theme)||void 0===i?void 0:i.primaryColor,borderRadius:"100%",strokeWidth:"2px"}})})]})}),(0,La.jsx)("input",{style:{border:"0px",width:"100%",fontSize:14,color:"#2B2C46"},className:"input-search hhhh",placeholder:m("Search"),value:c,onChange:e=>{d(e.currentTarget.value),A(e.currentTarget.value),""===e.currentTarget.value&&(d(""),y&&o(""))},ref:l})]}),"/result"===u.location.pathname&&c&&(0,La.jsx)(rl,{className:"btn-clear-text",onClick:()=>{if(C)return u.push("/result"),y||A(""),d(""),void(y&&o(""));d(""),y&&o(""),f(tr("")),u.push("/")},children:(0,La.jsx)(Iu,{title:m("Clear text search"),placement:"top",arrow:!0,children:(0,La.jsx)(zu.A,{style:{fontSize:16,color:"#2B2C46"}})})}),(0,La.jsxs)("div",{className:"wrap-box-input-mobile d-flex",children:[(0,La.jsx)("input",{accept:"".concat(N?".stp,.step,.stl,.obj,.glb,.gltf,":"","image/*"),id:"icon-button-file",type:"file",style:{display:"none"},onClick:e=>{e.stopPropagation()},onChange:e=>{var t;if(null!==e&&void 0!==e&&null!==(t=e.target)&&void 0!==t&&t.files){var n;const t=null===e||void 0===e||null===(n=e.target)||void 0===n?void 0:n.files[0];T(t)}}}),(0,La.jsx)(Iu,{title:m("Search with an image"),placement:"top",arrow:!0,children:(0,La.jsx)("label",{htmlFor:D?"icon-button-file":"",onClick:e=>{D||S(!0)},children:(0,La.jsx)(Qu,{color:"primary","aria-label":"upload picture",component:"span",style:{width:32,height:32,borderRadius:"100%",padding:7},children:(0,La.jsx)(al.Icon,{name:"camera_simple",width:18,height:18,fill:"#2B2C46"})})})})]})]})}),E&&(0,La.jsx)(za,{openModal:p,handleClose:()=>g(!1),classNameModal:"wrap-filter-desktop",classNameComponentChild:"bg-white box-filter-desktop",children:(0,La.jsx)(Ru,{handleClose:()=>g(!1)})})]})]})},Yx=ji((0,t.memo)(Hx));const Wx=function(){var e,n,r;const i=Er(),{settings:o}=Dr((e=>e)),{user:a,isAuthenticated:s,logout:l}=oa(),u=o.auth0,c=ke(),[d,f]=(0,t.useState)(!1),[h,p]=t.useState(null);(0,t.useEffect)((()=>{var e;"/"===(null===(e=c.location)||void 0===e?void 0:e.pathname)?f(!1):f(!0)}),[c.location]);const g=(0,Ka.A)({root:{},paper:{border:"0px",boxShadow:"0px 0px 8px 0px rgba(0, 0, 0, 0.20)",top:"58px !important",borderRadius:"0px !important"}})((e=>(0,La.jsx)(zx,{elevation:0,getContentAnchorEl:null,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...e}))),m=(0,Ka.A)((e=>({root:{"&:focus":{backgroundColor:e.palette.primary.main,"& .MuiListItemIcon-root, & .MuiListItemText-primary":{color:e.palette.common.white}},padding:"0px"}})))(Qx);return(0,La.jsxs)("div",{className:"box-content",style:{display:"flex",position:"relative"},children:[(0,La.jsx)("a",{href:window.location.origin,style:{lineHeight:0,paddingLeft:"10px"},onClick:()=>{i(tr("")),i(ar({}))},children:(0,La.jsx)("img",{src:null===(e=o.theme)||void 0===e?void 0:e.appBarLogoUrl,alt:"logo",style:{aspectRatio:1,width:null===(n=o.theme)||void 0===n?void 0:n.logoWidth,height:null===(r=o.theme)||void 0===r?void 0:r.logoHeight}})}),(0,La.jsx)("div",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",display:d?"block":"none"},children:(0,La.jsx)(Yx,{})}),u.enabled&&s&&(0,La.jsxs)("div",{style:{position:"relative"},children:[(0,La.jsxs)("div",{style:{display:"flex",columnGap:"16px",alignItems:"center",paddingRight:"24px",cursor:"pointer"},"aria-controls":"simple-menu","aria-haspopup":"true",onClick:e=>{p(e.currentTarget)},children:[(0,La.jsx)("p",{style:{color:"#2B2C46"},children:null===a||void 0===a?void 0:a.email}),(0,La.jsx)(al.Icon,{name:"avatar"})]}),(0,La.jsx)(g,{id:"simple-menu",anchorEl:h,keepMounted:!0,open:Boolean(h),onClose:()=>{p(null)},children:(0,La.jsx)(m,{children:(0,La.jsx)("div",{style:{display:"flex",width:"152px",paddingLeft:"8px",paddingRight:"8px",flexDirection:"column",alignItems:"flex-start",gap:"8px",boxShadow:"0px 0px 8px 0px rgba(0, 0, 0, 0.20)",backgroundColor:"#fff"},children:(0,La.jsx)("div",{style:{display:"flex",width:"75px",height:"24px",padding:"4px 8px",alignItems:"center",backgroundColor:"#2B2C46",color:"#fff",fontSize:"10px",cursor:"pointer"},onClick:()=>{l({logoutParams:{returnTo:window.location.origin}})},children:"Sign out"})})})})]})]})};const Gx=function(e){var t;let{children:n}=e;const r=ke();return(0,La.jsx)(La.Fragment,{children:(0,La.jsxs)("div",{className:"wrap-mobile",children:[(0,La.jsx)("div",{className:"box-header-mobile-main",children:(0,La.jsx)(gx,{})}),(0,La.jsx)("div",{style:{display:"flex",flexGrow:1,flexDirection:"column",overflowY:"auto",overflowX:"hidden",height:"100%",backgroundColor:"#fff"},children:n}),"/"===(null===(t=r.location)||void 0===t?void 0:t.pathname)&&(0,La.jsx)("footer",{className:"h-11 w-full flex justify-center items-center bg-white",children:(0,La.jsxs)("a",{href:"https://www.nyris.io",target:"_blank",rel:"noreferrer",className:"text-[#AAABB5] md:text-[#2B2C46]",children:[(0,La.jsx)("p",{className:"text-xs font-normal text-[#AAABB5] inline",children:"Powered by"}),(0,La.jsx)("p",{className:"text-xs font-bold text-[#AAABB5] inline pl-0.5",children:"nyris\xae"})]})})]})})};var qx=n(5370),Zx=n.n(qx);const Kx=()=>(0,La.jsxs)("svg",{width:150,height:150,viewBox:"0 0 150 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"loading-spinner",children:[(0,La.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M75 150C116.421 150 150 116.421 150 75C150 33.5786 116.421 0 75 0C33.5786 0 0 33.5786 0 75C0 116.421 33.5786 150 75 150ZM75 140.367C111.101 140.367 140.367 111.101 140.367 75.0003C140.367 38.8991 111.101 9.63332 75 9.63332C38.8988 9.63332 9.63304 38.8991 9.63304 75.0003C9.63304 111.101 38.8988 140.367 75 140.367Z",fill:"url(#paint0_linear_2236_26778)"}),(0,La.jsx)("defs",{children:(0,La.jsxs)("linearGradient",{id:"paint0_linear_2236_26778",x1:75,y1:0,x2:75,y2:150,gradientUnits:"userSpaceOnUse",children:[(0,La.jsx)("stop",{stopColor:"#3E36DC"}),(0,La.jsx)("stop",{offset:.916667,stopColor:"#1E1F31"})]})})]}),Xx=()=>{const{t:e}=Qi();return(0,La.jsxs)("div",{className:"loadingSpinCT",style:{top:0,bottom:0,display:"flex",justifyContent:"center",alignItems:"center"},children:[(0,La.jsx)("p",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",fontSize:16,color:"#fff",fontWeight:300},children:e("loading")}),(0,La.jsx)(Kx,{})]})},$x={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Jx{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||$x,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:("string"===typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}create(e){return new Jx(this.logger,{prefix:"".concat(this.prefix,":").concat(e,":"),...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Jx(this.logger,e)}}var ew=new Jx;class tw{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach((e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)})),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){Array.from(this.observers[e].entries()).forEach((e=>{let[t,r]=e;for(let i=0;i<r;i++)t(...n)}))}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach((t=>{let[r,i]=t;for(let o=0;o<i;o++)r.apply(r,[e,...n])}))}}}function nw(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}function rw(e){return null==e?"":""+e}const iw=/###/g;function ow(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(iw,"."):e}function i(){return!e||"string"===typeof e}const o="string"!==typeof t?t:t.split(".");let a=0;for(;a<o.length-1;){if(i())return{};const t=r(o[a]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++a}return i()?{}:{obj:e,k:r(o[a])}}function aw(e,t,n){const{obj:r,k:i}=ow(e,t,Object);if(void 0!==r||1===t.length)return void(r[i]=n);let o=t[t.length-1],a=t.slice(0,t.length-1),s=ow(e,a,Object);for(;void 0===s.obj&&a.length;)o="".concat(a[a.length-1],".").concat(o),a=a.slice(0,a.length-1),s=ow(e,a,Object),s&&s.obj&&"undefined"!==typeof s.obj["".concat(s.k,".").concat(o)]&&(s.obj=void 0);s.obj["".concat(s.k,".").concat(o)]=n}function sw(e,t){const{obj:n,k:r}=ow(e,t);if(n)return n[r]}function lw(e,t,n){for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"===typeof e[r]||e[r]instanceof String||"string"===typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):lw(e[r],t[r],n):e[r]=t[r]);return e}function uw(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var cw={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function dw(e){return"string"===typeof e?e.replace(/[&<>"'\/]/g,(e=>cw[e])):e}const fw=[" ",",","?","!",";"],hw=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20);function pw(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let o=0;o<r.length;){if(!i||"object"!==typeof i)return;let e,t="";for(let a=o;a<r.length;++a)if(a!==o&&(t+=n),t+=r[a],e=i[t],void 0!==e){if(["string","number","boolean"].indexOf(typeof e)>-1&&a<r.length-1)continue;o+=a-o+1;break}i=e}return i}function gw(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class mw extends tw{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):"string"===typeof n&&i?a.push(...n.split(i)):a.push(n)));const s=sw(this.data,a);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),s||!o||"string"!==typeof n?s:pw(this.data&&this.data[e]&&this.data[e][t],n,i)}addResource(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),aw(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const i in n)("string"===typeof n[i]||Array.isArray(n[i]))&&this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let s=sw(this.data,a)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?lw(s,n,i):s={...s,...n},aw(this.data,a,s),o.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}}var yw={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach((e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,i))})),t}};const vw={};class bw extends tw{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(e,t,n){e.forEach((e=>{t[e]&&(n[e]=t[e])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=ew.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(void 0===e||null===e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const o=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,n){t=t||"",n=n||"";const r=fw.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===r.length)return!0;const i=hw.getRegExp("(".concat(r.map((e=>"?"===e?"\\?":e)).join("|"),")"));let o=!i.test(e);if(!o){const t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o}(e,n,r);if(o&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:i};const o=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return"string"===typeof i&&(i=[i]),{key:e,namespaces:i}}translate(e,t,n){if("object"!==typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"===typeof t&&(t={...t}),t||(t={}),void 0===e||null===e)return"";Array.isArray(e)||(e=[String(e)]);const r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:o,namespaces:a}=this.extractFromKey(e[e.length-1],t),s=a[a.length-1],l=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(u){const e=t.nsSeparator||this.options.nsSeparator;return r?{res:"".concat(s).concat(e).concat(o),usedKey:o,exactUsedKey:o,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:"".concat(s).concat(e).concat(o)}return r?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:o}const c=this.resolve(e,t);let d=c&&c.res;const f=c&&c.usedKey||o,h=c&&c.exactUsedKey||o,p=Object.prototype.toString.apply(d),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject;if(m&&d&&("string"!==typeof d&&"boolean"!==typeof d&&"number"!==typeof d)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(p)<0&&("string"!==typeof g||!Array.isArray(d))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,d,{...t,ns:a}):"key '".concat(o," (").concat(this.language,")' returned an object instead of string.");return r?(c.res=e,c.usedParams=this.getUsedParamsDetails(t),c):e}if(i){const e=Array.isArray(d),n=e?[]:{},r=e?h:f;for(const o in d)if(Object.prototype.hasOwnProperty.call(d,o)){const e="".concat(r).concat(i).concat(o);n[o]=this.translate(e,{...t,joinArrays:!1,ns:a}),n[o]===e&&(n[o]=d[o])}d=n}}else if(m&&"string"===typeof g&&Array.isArray(d))d=d.join(g),d&&(d=this.extendTranslation(d,e,t,n));else{let r=!1,a=!1;const u=void 0!==t.count&&"string"!==typeof t.count,f=bw.hasDefaultValue(t),h=u?this.pluralResolver.getSuffix(l,t.count,t):"",p=t.ordinal&&u?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",g=u&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),m=g&&t["defaultValue".concat(this.options.pluralSeparator,"zero")]||t["defaultValue".concat(h)]||t["defaultValue".concat(p)]||t.defaultValue;!this.isValidLookup(d)&&f&&(r=!0,d=m),this.isValidLookup(d)||(a=!0,d=o);const y=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:d,v=f&&m!==d&&this.options.updateMissing;if(a||r||v){if(this.logger.log(v?"updateKey":"missingKey",l,s,o,v?m:d),i){const e=this.resolve(o,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const r=(e,n,r)=>{const i=f&&r!==d?r:y;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,n,i,v,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,n,i,v,t),this.emit("missingKey",e,s,n,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach((e=>{const n=this.pluralResolver.getSuffixes(e,t);g&&t["defaultValue".concat(this.options.pluralSeparator,"zero")]&&n.indexOf("".concat(this.options.pluralSeparator,"zero"))<0&&n.push("".concat(this.options.pluralSeparator,"zero")),n.forEach((n=>{r([e],o+n,t["defaultValue".concat(n)]||m)}))})):r(e,o,m))}d=this.extendTranslation(d,e,t,c,n),a&&d===o&&this.options.appendNamespaceToMissingKey&&(d="".concat(s,":").concat(o)),(a||r)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(s,":").concat(o):o,r?d:void 0):this.options.parseMissingKeyHandler(d))}return r?(c.res=d,c.usedParams=this.getUsedParamsDetails(t),c):d}extendTranslation(e,t,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const a="string"===typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(a){const t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let l=n.replace&&"string"!==typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),a){const t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return i&&i[0]===r[0]&&!n.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):o.translate(...r,t)}),n)),n.interpolation&&this.interpolator.reset()}const a=n.postProcess||this.options.postProcess,s="string"===typeof a?[a]:a;return void 0!==e&&null!==e&&s&&s.length&&!1!==n.applyPostProcessor&&(e=yw.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t,n,r,i,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"===typeof e&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(t))return;const s=this.extractFromKey(e,a),l=s.key;n=l;let u=s.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const c=void 0!==a.count&&"string"!==typeof a.count,d=c&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),f=void 0!==a.context&&("string"===typeof a.context||"number"===typeof a.context)&&""!==a.context,h=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);u.forEach((e=>{this.isValidLookup(t)||(o=e,!vw["".concat(h[0],"-").concat(e)]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(vw["".concat(h[0],"-").concat(e)]=!0,this.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((n=>{if(this.isValidLookup(t))return;i=n;const o=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,l,n,e,a);else{let e;c&&(e=this.pluralResolver.getSuffix(n,a.count,a));const t="".concat(this.options.pluralSeparator,"zero"),r="".concat(this.options.pluralSeparator,"ordinal").concat(this.options.pluralSeparator);if(c&&(o.push(l+e),a.ordinal&&0===e.indexOf(r)&&o.push(l+e.replace(r,this.options.pluralSeparator)),d&&o.push(l+t)),f){const n="".concat(l).concat(this.options.contextSeparator).concat(a.context);o.push(n),c&&(o.push(n+e),a.ordinal&&0===e.indexOf(r)&&o.push(n+e.replace(r,this.options.pluralSeparator)),d&&o.push(n+t))}}let s;for(;s=o.pop();)this.isValidLookup(t)||(r=s,t=this.getResource(n,e,s,a))})))}))})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&"string"!==typeof e.replace;let r=n?e.replace:e;if(n&&"undefined"!==typeof e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}function xw(e){return e.charAt(0).toUpperCase()+e.slice(1)}class ww{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ew.create("languageUtils")}getScriptPartFromCode(e){if(!(e=gw(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=gw(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"===typeof e&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map((e=>e.toLowerCase())):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=xw(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=xw(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=xw(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach((e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find((e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"===typeof e&&(e=e(t)),"string"===typeof e&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"===typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"===typeof e&&i(this.formatLanguageCode(e)),n.forEach((e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))})),r}}let Mw=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Sw={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};const jw=["v1","v2","v3"],Nw=["v4"],Cw={zero:0,one:1,two:2,few:3,many:4,other:5};class Aw{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=ew.create("pluralResolver"),this.options.compatibilityJSON&&!Nw.includes(this.options.compatibilityJSON)||"undefined"!==typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){const e={};return Mw.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:Sw[t.fc]}}))})),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(gw("dev"===e?"en":e),{type:t.ordinal?"ordinal":"cardinal"})}catch(n){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((e=>"".concat(t).concat(e)))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((e,t)=>Cw[e]-Cw[t])).map((e=>"".concat(this.options.prepend).concat(t.ordinal?"ordinal".concat(this.options.prepend):"").concat(e))):n.numbers.map((n=>this.getSuffix(e,n,t))):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(n.ordinal?"ordinal".concat(this.options.prepend):"").concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"===typeof r?"_plural_".concat(r.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!jw.includes(this.options.compatibilityJSON)}}function Tw(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=function(e,t,n){const r=sw(e,n);return void 0!==r?r:sw(t,n)}(e,t,n);return!o&&i&&"string"===typeof n&&(o=pw(e,n,r),void 0===o&&(o=pw(t,n,r))),o}class Ew{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=ew.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:o,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:h,nestingSuffixEscaped:p,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:y}=e.interpolation;this.escape=void 0!==t?t:dw,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?uw(i):o||"{{",this.suffix=a?uw(a):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?uw(d):f||uw("$t("),this.nestingSuffix=h?uw(h):p||uw(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==y&&y,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,"".concat(this.prefix,"(.+?)").concat(this.suffix)),this.regexpUnescape=e(this.regexpUnescape,"".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix)),this.nestingRegexp=e(this.nestingRegexp,"".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix))}interpolate(e,t,n,r){let i,o,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}const u=e=>{if(e.indexOf(this.formatSeparator)<0){const i=Tw(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}const i=e.split(this.formatSeparator),o=i.shift().trim(),a=i.join(this.formatSeparator).trim();return this.format(Tw(t,s,o,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:o})};this.resetRegExp();const c=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>l(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?l(this.escape(e)):l(e)}].forEach((t=>{for(a=0;i=t.regex.exec(e);){const n=i[1].trim();if(o=u(n),void 0===o)if("function"===typeof c){const t=c(e,i,r);o="string"===typeof t?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o="";else{if(d){o=i[0];continue}this.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),o=""}else"string"===typeof o||this.useRawValueToEscape||(o=rw(o));const s=t.safeValue(o);if(e=e.replace(i[0],s),d?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}})),e}nest(e,t){let n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function a(e,t){const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp("".concat(n,"[ ]*{")));let o="{".concat(r[1]);e=r[0],o=this.interpolate(o,i);const a=o.match(/'/g),s=o.match(/"/g);(a&&a.length%2===0&&!s||s.length%2!==0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(qi){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),qi),"".concat(e).concat(n).concat(o)}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){let s=[];i={...o},i=i.replace&&"string"!==typeof i.replace?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map((e=>e.trim()));n[1]=e.shift(),s=e,l=!0}if(r=t(a.call(this,n[1].trim(),i),i),r&&n[0]===e&&"string"!==typeof r)return r;"string"!==typeof r&&(r=rw(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=s.reduce(((e,t)=>this.format(e,t,o.lng,{...o,interpolationkey:n[1].trim()})),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}function Dw(e){const t={};return function(n,r,i){const o=r+JSON.stringify(i);let a=t[o];return a||(a=e(gw(r),i),t[o]=a),a(n)}}class kw{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=ew.create("formatter"),this.options=e,this.formats={number:Dw(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:Dw(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:Dw(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:Dw(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:Dw(((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)}))},this.init(e)}init(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Dw(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=t.split(this.formatSeparator).reduce(((e,t)=>{const{formatName:i,formatOptions:o}=function(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);"currency"===t&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach((e=>{if(e){const[t,...r]=e.split(":"),i=r.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();n[o]||(n[o]=i),"false"===i&&(n[o]=!1),"true"===i&&(n[o]=!0),isNaN(i)||(n[o]=parseInt(i,10))}}))}return{formatName:t,formatOptions:n}}(t);if(this.formats[i]){let t=e;try{const a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},s=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...o,...r,...a})}catch(a){this.logger.warn(a)}return t}return this.logger.warn("there was no format function for ".concat(i)),e}),e);return i}}class Ow extends tw{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=ew.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const i={},o={},a={},s={};return e.forEach((e=>{let r=!0;t.forEach((t=>{const a="".concat(e,"|").concat(t);!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===o[a]&&(o[a]=!0):(this.state[a]=1,r=!1,void 0===o[a]&&(o[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===s[t]&&(s[t]=!0)))})),r||(a[e]=!0)})),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){const r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),n&&this.store.addResourceBundle(i,o,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2;const a={};this.queue.forEach((n=>{!function(e,t,n,r){const{obj:i,k:o}=ow(e,t,Object);i[o]=i[o]||[],r&&(i[o]=i[o].concat(n)),r||i[o].push(n)}(n.loaded,[i],o),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((e=>{a[e]||(a[e]={});const t=n.loaded[e];t.length&&t.forEach((t=>{void 0===a[e][t]&&(a[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((e=>!e.done))}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:o});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&r<this.maxRetries?setTimeout((()=>{this.read.call(this,e,t,n,r+1,2*i,o)}),i):o(a,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,a);try{const n=s(e,t);n&&"function"===typeof n.then?n.then((e=>a(null,e))).catch(a):a(null,n)}catch(l){a(l)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"===typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"===typeof t&&(t=[t]);const i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,((n,o)=>{n&&this.logger.warn("".concat(t,"loading namespace ").concat(i," for language ").concat(r," failed"),n),!n&&o&&this.logger.log("".concat(t,"loaded namespace ").concat(i," for language ").concat(r),o),this.loaded(e,n,o)}))}saveMissing(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(void 0!==n&&null!==n&&""!==n){if(this.backend&&this.backend.create){const l={...o,isUpdate:i},u=this.backend.create.bind(this.backend);if(u.length<6)try{let i;i=5===u.length?u(e,t,n,r,l):u(e,t,n,r),i&&"function"===typeof i.then?i.then((e=>a(null,e))).catch(a):a(null,i)}catch(s){a(s)}else u(e,t,n,r,a,l)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}function Iw(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"===typeof e[1]&&(t=e[1]),"string"===typeof e[1]&&(t.defaultValue=e[1]),"string"===typeof e[2]&&(t.tDescription=e[2]),"object"===typeof e[2]||"object"===typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach((e=>{t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function _w(e){return"string"===typeof e.ns&&(e.ns=[e.ns]),"string"===typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"===typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Pw(){}class Lw extends tw{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=_w(e),this.services={},this.logger=ew,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((e=>{"function"===typeof n[e]&&(n[e]=n[e].bind(n))})),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"===typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"===typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=Iw();function i(e){return e?"function"===typeof e?new e:e:null}if(this.options={...r,...this.options,..._w(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?ew.init(i(this.modules.logger),this.options):ew.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!==typeof Intl&&(t=kw);const n=new ww(this.options);this.store=new mw(this.options.resources,this.options);const o=this.services;o.logger=ew,o.resourceStore=this.store,o.languageUtils=n,o.pluralResolver=new Aw(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(o.formatter=i(t),o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new Ew(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new Ow(i(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)})),this.modules.languageDetector&&(o.languageDetector=i(this.modules.languageDetector),o.languageDetector.init&&o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=i(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new bw(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)})),this.modules.external.forEach((e=>{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=Pw),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=function(){return e.store[t](...arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=function(){return e.store[t](...arguments),e}}));const o=nw(),a=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),o}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pw;const n="string"===typeof e?e:this.language;if("function"===typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],r=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)}))};if(n)r(n);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>r(e)))}this.options.preload&&this.options.preload.forEach((e=>r(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)}))}else t(null)}reloadResources(e,t,n){const r=nw();return e||(e=this.languages),t||(t=this.options.ns),n||(n=Pw),this.services.backendConnector.reload(e,t,(e=>{r.resolve(),n(e)})),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&yw.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t<this.languages.length;t++){const e=this.languages[t];if(!(["cimode","dev"].indexOf(e)>-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=nw();this.emit("languageChanging",e);const i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(e,o)=>{o?(i(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,r.resolve((function(){return n.t(...arguments)})),t&&t(e,(function(){return n.t(...arguments)}))},a=t=>{e||t||!this.services.languageDetector||(t=[]);const n="string"===typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||i(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,(e=>{o(e,n)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;const i=function(e,t){let o;if("object"!==typeof t){for(var a=arguments.length,s=new Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];o=r.options.overloadTranslationOptionHandler([e,t].concat(s))}else o={...t};o.lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs,o.ns=o.ns||i.ns,o.keyPrefix=o.keyPrefix||n||i.keyPrefix;const u=r.options.keySeparator||".";let c;return c=o.keyPrefix&&Array.isArray(e)?e.map((e=>"".concat(o.keyPrefix).concat(u).concat(e))):o.keyPrefix?"".concat(o.keyPrefix).concat(u).concat(e):e,r.t(c,o)};return"string"===typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const o=(e,t)=>{const n=this.services.backendConnector.state["".concat(e,"|").concat(t)];return-1===n||2===n};if(t.precheck){const e=t.precheck(this,o);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!o(n,e)||r&&!o(i,e)))}loadNamespaces(e,t){const n=nw();return this.options.ns?("string"===typeof e&&(e=[e]),e.forEach((e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)})),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=nw();"string"===typeof e&&(e=[e]);const r=this.options.preload||[],i=e.filter((e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e)));return i.length?(this.options.preload=r.concat(i),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new ww(Iw());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new Lw(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pw;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new Lw(r);void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e));return["store","services","language"].forEach((e=>{i[e]=this[e]})),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new mw(this.store.data,r),i.services.resourceStore=i.store),i.translator=new bw(i.services,r),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit(e,...n)})),i.init(r,t),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const zw=Lw.createInstance();zw.createInstance=Lw.createInstance;zw.createInstance,zw.dir,zw.init,zw.loadResources,zw.reloadResources,zw.use,zw.changeLanguage,zw.getFixedT,zw.t,zw.exists,zw.setDefaultNamespace,zw.hasLoadedNamespace,zw.loadNamespaces,zw.loadLanguages;var Rw=n(1041),Fw=n.n(Rw),Uw=n(5033),Bw=n.n(Uw);const Vw="6.40.4";var Qw=["resultsFacetValues"],Hw=["resultsFacetValues"],Yw=["resultsFacetValues"];function Ww(e){return Ww="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},Ww(e)}function Gw(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function qw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qw(Object(n),!0).forEach((function(t){Kw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kw(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Ww(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ww(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ww(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xw(e){"function"===typeof e.addAlgoliaAgent&&(e.addAlgoliaAgent("react (".concat(t.version,")")),e.addAlgoliaAgent("react-instantsearch (".concat(Vw,")")))}var $w=function(e){return gi({ais:e.props.contextValue,multiIndexContext:e.props.indexContextValue})},Jw=function(e,t){return e.props.indexContextValue.targetedIndex===t},eM=function(e){return Boolean(e.props.indexId)},tM=function(e,t){return e.props.indexId===t},nM=function(e,t){var n=eM(e),r=eM(t);return n&&!r?-1:!n&&r?1:0};function rM(e){return Object.keys(e).map((function(t){return function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0;return e.replace(/%s/g,(function(){return encodeURIComponent(n[i++])}))}("%s=%s",t,(n=e[t],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n)?JSON.stringify(e[t]):e[t]));var n})).join("&")}function iM(e){var t=e.indexName,n=e.initialState,r=void 0===n?{}:n,i=e.searchClient,o=e.resultsState,a=e.stalledSearchDelay,s=Bw()(i,t,Zw({},db));Xw(i),s.on("search",(function(){c||(c=setTimeout((function(){var e=h.getState(),t=(e.resultsFacetValues,Gw(e,Yw));h.setState(Zw(Zw({},t),{},{isSearchStalled:!0}))}),a))})).on("result",y({indexId:t})).on("error",v);var l,u=!1,c=null,d=s.state,f=function(e){var t=[],n=!1;function r(){n||(n=!0,Yr((function(){n=!1,e()})))}return{registerWidget:function(e){return t.push(e),r(),function(){t.splice(t.indexOf(e),1),r()}},update:r,getWidgets:function(){return t}}}((function(){var e=p(h.getState().widgets);h.setState(Zw(Zw({},h.getState()),{},{metadata:e,searching:!0})),m()}));!function(e,t){if(!t)return;if((!e.transporter||e._cacheHydrated)&&(!e._useCache||"function"!==typeof e.addAlgoliaAgent))return;if(e.transporter&&!e._cacheHydrated){e._cacheHydrated=!0;var n=e.search;e.search=function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var a=t.map((function(e){return Zw(Zw({},e),{},{params:rM(e.params)})}));return e.transporter.responsesCache.get({method:"search",args:[a].concat(i)},(function(){return n.apply(void 0,[t].concat(i))}))}}if(Array.isArray(t.results))return void function(e,t){if(e.transporter)return void e.transporter.responsesCache.set({method:"search",args:[t.reduce((function(e,t){return e.concat(t.rawResults.map((function(e){return{indexName:e.index,params:e.params}})))}),[])]},{results:t.reduce((function(e,t){return e.concat(t.rawResults)}),[])});var n="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:t.reduce((function(e,t){return e.concat(t.rawResults.map((function(e){return{indexName:e.index,params:e.params}})))}),[])}));e.cache=Zw(Zw({},e.cache),{},Kw({},n,JSON.stringify({results:t.reduce((function(e,t){return e.concat(t.rawResults)}),[])})))}(e,t.results);!function(e,t){if(e.transporter)return void e.transporter.responsesCache.set({method:"search",args:[t.rawResults.map((function(e){return{indexName:e.index,params:e.params}}))]},{results:t.rawResults});var n="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:t.rawResults.map((function(e){return{indexName:e.index,params:e.params}}))}));e.cache=Zw(Zw({},e.cache),{},Kw({},n,JSON.stringify({results:t.rawResults})))}(e,t)}(i,o);var h=function(e){var t=e,n=[];return{getState:function(){return t},setState:function(e){t=e,n.forEach((function(e){return e()}))},subscribe:function(e){return n.push(e),function(){n.splice(n.indexOf(e),1)}}}}({widgets:r,metadata:oM(o),results:function(e){if(!e)return null;if(Array.isArray(e.results))return e.results.reduce((function(e,t){return Zw(Zw({},e),{},Kw({},t._internalIndexId,new(Bw().SearchResults)(new(Bw().SearchParameters)(t.state),t.rawResults)))}),{});return new(Bw().SearchResults)(new(Bw().SearchParameters)(e.state),e.rawResults)}(o),error:null,searching:!1,isSearchStalled:!0,searchingForFacetValues:!1});function p(e){return f.getWidgets().filter((function(e){return Boolean(e.getMetadata)})).map((function(t){return t.getMetadata(e)}))}function g(){var e=f.getWidgets().filter((function(e){return Boolean(e.getSearchParameters)})).filter((function(e){return!$w(e)&&!eM(e)})).reduce((function(e,t){return t.getSearchParameters(e)}),d),n=f.getWidgets().filter((function(e){return Boolean(e.getSearchParameters)})).filter((function(e){var n=$w(e)&&Jw(e,t),r=eM(e)&&tM(e,t);return n||r})).sort(nM).reduce((function(e,t){return t.getSearchParameters(e)}),e),r=f.getWidgets().filter((function(e){return Boolean(e.getSearchParameters)})).filter((function(e){var n=$w(e)&&!Jw(e,t),r=eM(e)&&!tM(e,t);return n||r})).sort(nM).reduce((function(e,t){var n=$w(t)?t.props.indexContextValue.targetedIndex:t.props.indexId,r=e[n]||[];return Zw(Zw({},e),{},Kw({},n,r.concat(t)))}),{});return{mainParameters:n,derivedParameters:Object.keys(r).map((function(t){return{parameters:r[t].reduce((function(e,t){return t.getSearchParameters(e)}),e),indexId:t}}))}}function m(){if(!u){var e=g(s.state),t=e.mainParameters,n=e.derivedParameters;l=n.length+1,s.derivedHelpers.slice().forEach((function(e){e.detach()})),n.forEach((function(e){var t=e.indexId,n=e.parameters;s.derive((function(){return n})).on("result",y({indexId:t})).on("error",v)})),s.setState(t),s.search()}}function y(e){var t=e.indexId;return function(e){l--;var n=h.getState(),r=!s.derivedHelpers.length,i=n.results?n.results:{};i=!r&&i.getFacetByName?{}:i,i=r?e.results:Zw(Zw({},i),{},Kw({},t,e.results));var o=h.getState(),a=o.isSearchStalled;s.hasPendingRequests()||(clearTimeout(c),c=null,a=!1);o.resultsFacetValues;var u=Gw(o,Qw);h.setState(Zw(Zw({},u),{},{results:i,isSearchStalled:a,searching:l>0,error:null}))}}function v(e){var t=e.error,n=h.getState(),r=n.isSearchStalled;s.hasPendingRequests()||(clearTimeout(c),r=!1);n.resultsFacetValues;var i=Gw(n,Hw);h.setState(Zw(Zw({},i),{},{isSearchStalled:r,error:t,searching:!1}))}return{store:h,widgetsManager:f,getWidgetsIds:function(){return h.getState().metadata.reduce((function(e,t){return"undefined"!==typeof t.id?e.concat(t.id):e}),[])},getSearchParameters:g,onSearchForFacetValues:function(e){var t=e.facetName,n=e.query,r=e.maxFacetHits,i=void 0===r?10:r,o=Math.max(1,Math.min(i,100));h.setState(Zw(Zw({},h.getState()),{},{searchingForFacetValues:!0})),s.searchForFacetValues(t,n,o).then((function(e){var r;h.setState(Zw(Zw({},h.getState()),{},{error:null,searchingForFacetValues:!1,resultsFacetValues:Zw(Zw({},h.getState().resultsFacetValues),{},(r={},Kw(r,t,e.facetHits),Kw(r,"query",n),r))}))}),(function(e){h.setState(Zw(Zw({},h.getState()),{},{searchingForFacetValues:!1,error:e}))})).catch((function(e){setTimeout((function(){throw e}))}))},onExternalStateUpdate:function(e){var t=p(e);h.setState(Zw(Zw({},h.getState()),{},{widgets:e,metadata:t,searching:!0})),m()},transitionState:function(e){var t=h.getState().widgets;return f.getWidgets().filter((function(e){return Boolean(e.transitionState)})).reduce((function(e,n){return n.transitionState(t,e)}),e)},updateClient:function(e){Xw(e),s.setClient(e),m()},updateIndex:function(e){d=d.setIndex(e)},clearCache:function(){s.clearCache(),m()},skipSearch:function(){u=!0}}}function oM(e){return e?e.metadata.map((function(e){return Zw(Zw({value:function(){return{}}},e),{},{items:e.items&&e.items.map((function(e){return Zw(Zw({value:function(){return{}}},e),{},{items:e.items&&e.items.map((function(e){return Zw({value:function(){return{}}},e)}))})}))})})):[]}function aM(e){return aM="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},aM(e)}function sM(e,t){var n=document.createElement("meta"),r=document.querySelector("head");n.name="algolia:metadata";var i=function(e,t){var n=["contextValue","indexContextValue"],r=e.map((function(e){var t=e.props,r=e.constructor,i=r._connectorDesc||{},o=i.defaultProps,a=void 0===o?{}:o,s=i.displayName;return{displayName:void 0===s?r.displayName:s,$$type:r.$$type,$$widgetType:r.$$widgetType,params:Object.keys(t).filter((function(e){return!n.includes(e)&&a[e]!==t[e]&&void 0!==t[e]}))}})),i=t;return{ua:i.transporter&&i.transporter.userAgent?i.transporter.userAgent.value:i._ua,widgets:r}}(e,t);n.content=JSON.stringify(i),r.appendChild(n)}function lM(e){return lM="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},lM(e)}function uM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uM(Object(n),!0).forEach((function(t){mM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yM(r.key),r)}}function fM(e,t){return fM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fM(e,t)}function hM(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(qi){return!1}}();return function(){var n,r=gM(e);if(t){var i=gM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===lM(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return pM(e)}(this,n)}}function pM(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gM(e){return gM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gM(e)}function mM(e,t,n){return(t=yM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yM(e){var t=function(e,t){if("object"!==lM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==lM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===lM(t)?t:String(t)}function vM(e){return Boolean(e.searchState)}var bM=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fM(e,t)}(a,e);var n,r,i,o=hM(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),mM(pM(t=o.call(this,e)),"cleanupTimerRef",null),mM(pM(t),"isUnmounting",!1);var n=iM({indexName:t.props.indexName,searchClient:t.props.searchClient,initialState:t.props.searchState||{},resultsState:t.props.resultsState,stalledSearchDelay:t.props.stalledSearchDelay}),r={store:n.store,widgetsManager:n.widgetsManager,mainTargetedIndex:t.props.indexName,onInternalStateUpdate:t.onWidgetsInternalStateUpdate.bind(pM(t)),createHrefForState:t.createHrefForState.bind(pM(t)),onSearchForFacetValues:t.onSearchForFacetValues.bind(pM(t)),onSearchStateChange:t.onSearchStateChange.bind(pM(t)),onSearchParameters:t.onSearchParameters.bind(pM(t))};return t.state={isControlled:vM(t.props),instantSearchManager:n,contextValue:r},t}return n=a,r=[{key:"componentDidUpdate",value:function(e){var t=vM(e);if(t&&!this.state.isControlled)throw new Error("You can't switch <InstantSearch> from being controlled to uncontrolled");if(!t&&this.state.isControlled)throw new Error("You can't switch <InstantSearch> from being uncontrolled to controlled");this.props.refresh!==e.refresh&&this.props.refresh&&this.state.instantSearchManager.clearCache(),e.indexName!==this.props.indexName&&this.state.instantSearchManager.updateIndex(this.props.indexName),e.searchClient!==this.props.searchClient&&this.state.instantSearchManager.updateClient(this.props.searchClient)}},{key:"componentDidMount",value:function(){this.cleanupTimerRef&&(clearTimeout(this.cleanupTimerRef),this.cleanupTimerRef=null),"object"===("undefined"===typeof window?"undefined":aM(window))&&"object"===aM(window.navigator)&&"string"===typeof window.navigator.userAgent&&window.navigator.userAgent.includes("Algolia Crawler")&&"object"===aM(window.document)&&sM(this.state.instantSearchManager.widgetsManager.getWidgets(),this.props.searchClient)}},{key:"componentWillUnmount",value:function(){var e=this;this.cleanupTimerRef=setTimeout((function(){e.isUnmounting=!0,e.state.instantSearchManager.skipSearch()}))}},{key:"createHrefForState",value:function(e){return e=this.state.instantSearchManager.transitionState(e),this.state.isControlled&&this.props.createURL?this.props.createURL(e,this.getKnownKeys()):"#"}},{key:"onWidgetsInternalStateUpdate",value:function(e){e=this.state.instantSearchManager.transitionState(e),this.onSearchStateChange(e),this.state.isControlled||this.state.instantSearchManager.onExternalStateUpdate(e)}},{key:"onSearchStateChange",value:function(e){this.props.onSearchStateChange&&!this.isUnmounting&&this.props.onSearchStateChange(e)}},{key:"onSearchParameters",value:function(e,t,n,r,i){if(this.props.onSearchParameters){var o=this.props.searchState?this.props.searchState:{};this.props.onSearchParameters(e,t,n,o)}if(this.props.widgetsCollector){var a=this.props.searchState?this.props.searchState:{};this.props.widgetsCollector({getSearchParameters:e,getMetadata:r,context:t,props:n,searchState:a,displayName:i})}}},{key:"onSearchForFacetValues",value:function(e){this.state.instantSearchManager.onSearchForFacetValues(e)}},{key:"getKnownKeys",value:function(){return this.state.instantSearchManager.getWidgetsIds()}},{key:"render",value:function(){return 0===t.Children.count(this.props.children)?null:t.createElement(Pr,{value:this.state.contextValue},this.props.children)}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){var n=vM(e),r=t.instantSearchManager.store.getState().widgets,i=e.searchState;return n&&!Or()(r,i)&&t.instantSearchManager.onExternalStateUpdate(e.searchState),{isControlled:n,contextValue:cM(cM({},t.contextValue),{},{mainTargetedIndex:e.indexName})}}}],r&&dM(n.prototype,r),i&&dM(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(t.Component);mM(bM,"defaultProps",{stalledSearchDelay:200,refresh:!1}),mM(bM,"propTypes",{indexName:P().string.isRequired,searchClient:P().shape({search:P().func.isRequired,searchForFacetValues:P().func,addAlgoliaAgent:P().func,clearCache:P().func}).isRequired,createURL:P().func,refresh:P().bool,searchState:P().object,onSearchStateChange:P().func,onSearchParameters:P().func,widgetsCollector:P().func,resultsState:P().oneOfType([P().object,P().array]),children:P().node,stalledSearchDelay:P().number});const xM=bM;function wM(e){var n;let{children:r}=e;const i=Er(),{settings:o,search:a}=Dr((e=>e)),{valueTextSearch:s}=a,{apiKey:l,appId:u,indexName:c}=o.algolia,d=null===(n=o.algolia)||void 0===n?void 0:n.enabled,f=(0,t.useMemo)((()=>{const e=Fw()(u,l);return e.initIndex(c),{...e,search:t=>t.every((e=>{var t,n,r;return!(null!==(t=e.params)&&void 0!==t&&t.query)&&(!(null!==(n=e.params)&&void 0!==n&&n.filters)||(null===(r=e.params)||void 0===r?void 0:r.filters.endsWith("<score=1>")))}))?Promise.resolve({results:t.map((()=>({hits:[],nbHits:0,nbPages:0,processingTimeMS:0})))}):d?e.search(t):void 0}}),[l,u,c,d]);return(0,La.jsx)("div",{style:{position:"relative"},children:(0,La.jsx)(xM,{indexName:c,searchClient:f,searchState:d?s:{},onSearchStateChange:e=>{e.page&&void 0!==e.query&&d&&i(Kn(e))},children:r})})}const MM=(0,t.memo)(wM);var SM;function jM(){return jM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jM.apply(this,arguments)}function NM(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",jM({width:80,height:10,viewBox:"0 0 80 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,SM||(SM=t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M53.4951 2.32957V7.28957H54.9651V3.93957C55.1251 3.78624 55.2718 3.66957 55.4051 3.58957C55.5384 3.5029 55.6984 3.45957 55.8851 3.45957C56.0984 3.45957 56.2518 3.52624 56.3451 3.65957C56.4451 3.7929 56.4951 4.03957 56.4951 4.39957V7.28957H57.9651V4.20957C57.9651 3.58957 57.8451 3.1029 57.6051 2.74957C57.3651 2.38957 56.9718 2.20957 56.4251 2.20957C56.0918 2.20957 55.7951 2.2829 55.5351 2.42957C55.2751 2.57624 55.0418 2.7529 54.8351 2.95957H54.7951L54.6951 2.32957H53.4951ZM59.3778 9.19957C59.4911 9.21957 59.6211 9.22957 59.7677 9.22957C60.1611 9.22957 60.4877 9.15624 60.7477 9.00957C61.0144 8.86957 61.2378 8.65957 61.4177 8.37957C61.6044 8.09957 61.7777 7.7529 61.9377 7.33957L63.6577 2.32957H62.2477L61.6478 4.45957C61.5877 4.6929 61.5277 4.92957 61.4678 5.16957L61.3078 5.86957H61.2677C61.2011 5.6229 61.1377 5.3829 61.0777 5.14957C61.0177 4.91624 60.9511 4.68624 60.8778 4.45957L60.1677 2.32957H58.6877L60.5977 7.15957L60.5277 7.41957C60.4678 7.60624 60.3677 7.75957 60.2277 7.87957C60.0944 8.00624 59.9044 8.06957 59.6577 8.06957C59.6111 8.06957 59.5611 8.06624 59.5077 8.05957C59.4611 8.05957 59.4011 8.04957 59.3277 8.02957L59.0677 9.10957C59.1677 9.14957 59.2711 9.17957 59.3778 9.19957ZM64.4326 2.32957V7.28957H65.9026V4.40957C66.0359 4.06957 66.2026 3.8329 66.4026 3.69957C66.6093 3.56624 66.8059 3.49957 66.9926 3.49957C67.0993 3.49957 67.1893 3.50624 67.2626 3.51957C67.3359 3.52624 67.4126 3.53957 67.4926 3.55957L67.7726 2.30957C67.7059 2.27624 67.6259 2.2529 67.5326 2.23957C67.4393 2.21957 67.3226 2.20957 67.1826 2.20957C66.9226 2.20957 66.6659 2.2929 66.4126 2.45957C66.1659 2.61957 65.9526 2.86624 65.7726 3.19957H65.7326L65.6326 2.32957H64.4326ZM68.417 2.32957V7.28957H69.887V2.32957H68.417ZM68.547 1.38957C68.7003 1.52957 68.9003 1.59957 69.147 1.59957C69.3936 1.59957 69.5936 1.52957 69.747 1.38957C69.9003 1.24957 69.977 1.0629 69.977 0.829571C69.977 0.596237 69.9003 0.40957 69.747 0.269571C69.5936 0.12957 69.3936 0.0595703 69.147 0.0595703C68.9003 0.0595703 68.7003 0.12957 68.547 0.269571C68.3936 0.40957 68.317 0.596237 68.317 0.829571C68.317 1.0629 68.3936 1.24957 68.547 1.38957ZM71.6306 7.21957C71.9773 7.34624 72.314 7.40957 72.6406 7.40957C73.0873 7.40957 73.4606 7.33957 73.7606 7.19957C74.0606 7.0529 74.2873 6.85957 74.4406 6.61957C74.6006 6.37957 74.6806 6.10957 74.6806 5.80957C74.6806 5.53624 74.6206 5.3029 74.5006 5.10957C74.3806 4.91624 74.214 4.75624 74.0006 4.62957C73.794 4.49624 73.564 4.38624 73.3106 4.29957C73.104 4.2329 72.9306 4.1729 72.7906 4.11957C72.6573 4.05957 72.5573 3.99624 72.4906 3.92957C72.424 3.8629 72.3906 3.7829 72.3906 3.68957C72.3906 3.57624 72.4373 3.4829 72.5306 3.40957C72.624 3.33624 72.7673 3.29957 72.9606 3.29957C73.134 3.29957 73.3106 3.32957 73.4906 3.38957C73.6706 3.4429 73.8506 3.5329 74.0306 3.65957L74.6606 2.83957C74.4473 2.6529 74.1906 2.5029 73.8906 2.38957C73.5973 2.26957 73.2706 2.20957 72.9106 2.20957C72.344 2.20957 71.884 2.3529 71.5306 2.63957C71.184 2.91957 71.0106 3.2929 71.0106 3.75957C71.0106 4.01957 71.0706 4.2429 71.1906 4.42957C71.3173 4.61624 71.4806 4.77624 71.6806 4.90957C71.8806 5.0429 72.1006 5.1529 72.3406 5.23957C72.5206 5.30624 72.6806 5.36957 72.8206 5.42957C72.9673 5.4829 73.084 5.54624 73.1706 5.61957C73.264 5.6929 73.3106 5.78624 73.3106 5.89957C73.3106 6.02624 73.2606 6.12957 73.1606 6.20957C73.0606 6.2829 72.9006 6.31957 72.6806 6.31957C72.474 6.31957 72.2573 6.28624 72.0306 6.21957C71.8106 6.14624 71.5873 6.01957 71.3606 5.83957L70.7406 6.66957C70.9873 6.90957 71.284 7.0929 71.6306 7.21957ZM76.2742 3.91957C76.5742 4.0929 76.9076 4.17957 77.2742 4.17957C77.6342 4.17957 77.9642 4.0929 78.2642 3.91957C78.5709 3.74624 78.8109 3.50957 78.9842 3.20957C79.1642 2.9029 79.2542 2.5529 79.2542 2.15957C79.2542 1.76624 79.1642 1.41957 78.9842 1.11957C78.8109 0.812904 78.5709 0.572904 78.2642 0.399571C77.9642 0.226237 77.6342 0.13957 77.2742 0.13957C76.9076 0.13957 76.5742 0.226237 76.2742 0.399571C75.9742 0.572904 75.7342 0.812904 75.5542 1.11957C75.3742 1.41957 75.2842 1.76624 75.2842 2.15957C75.2842 2.5529 75.3742 2.9029 75.5542 3.20957C75.7342 3.50957 75.9742 3.74624 76.2742 3.91957ZM78.0142 3.49957C77.8009 3.62624 77.5542 3.68957 77.2742 3.68957C76.9942 3.68957 76.7442 3.62624 76.5242 3.49957C76.3109 3.3729 76.1409 3.19624 76.0142 2.96957C75.8942 2.73624 75.8342 2.46624 75.8342 2.15957C75.8342 1.8529 75.8942 1.58624 76.0142 1.35957C76.1409 1.12624 76.3109 0.946237 76.5242 0.819571C76.7442 0.692904 76.9942 0.629571 77.2742 0.629571C77.5542 0.629571 77.8009 0.692904 78.0142 0.819571C78.2276 0.946237 78.3942 1.12624 78.5142 1.35957C78.6409 1.58624 78.7042 1.8529 78.7042 2.15957C78.7042 2.46624 78.6409 2.73624 78.5142 2.96957C78.3942 3.19624 78.2276 3.3729 78.0142 3.49957ZM76.4642 1.15957V3.12957H77.0342V2.52957H77.3242L77.6242 3.12957H78.2242L77.8142 2.35957C77.9342 2.30624 78.0209 2.22957 78.0742 2.12957C78.1342 2.02957 78.1642 1.92624 78.1642 1.81957C78.1642 1.5929 78.0876 1.42624 77.9342 1.31957C77.7809 1.2129 77.5876 1.15957 77.3542 1.15957H76.4642ZM77.2442 2.12957H77.0342V1.58957H77.2442C77.3442 1.58957 77.4176 1.61624 77.4642 1.66957C77.5176 1.71624 77.5442 1.77624 77.5442 1.84957C77.5442 1.92957 77.5176 1.99624 77.4642 2.04957C77.4176 2.1029 77.3442 2.12957 77.2442 2.12957ZM0.745093 0.729571V7.28957H1.57509V4.68957H2.65509C3.13509 4.68957 3.55509 4.61624 3.91509 4.46957C4.28176 4.31624 4.56509 4.0929 4.76509 3.79957C4.97176 3.49957 5.07509 3.11957 5.07509 2.65957C5.07509 2.17957 4.97176 1.79957 4.76509 1.51957C4.55843 1.23957 4.27176 1.03957 3.90509 0.919571C3.53843 0.792904 3.10843 0.729571 2.61509 0.729571H0.745093ZM2.55509 4.00957H1.57509V1.39957H2.51509C3.08843 1.39957 3.51843 1.4929 3.80509 1.67957C4.09843 1.85957 4.24509 2.18624 4.24509 2.65957C4.24509 3.11957 4.10509 3.45957 3.82509 3.67957C3.55176 3.89957 3.12843 4.00957 2.55509 4.00957ZM6.86501 7.10957C7.21168 7.30957 7.58168 7.40957 7.97501 7.40957C8.37501 7.40957 8.74502 7.30957 9.08502 7.10957C9.42501 6.90957 9.69835 6.61957 9.90501 6.23957C10.1183 5.85957 10.225 5.4029 10.225 4.86957C10.225 4.3229 10.1183 3.85957 9.90501 3.47957C9.69835 3.09957 9.42501 2.80957 9.08502 2.60957C8.74502 2.40957 8.37501 2.30957 7.97501 2.30957C7.58168 2.30957 7.21168 2.40957 6.86501 2.60957C6.52501 2.80957 6.24835 3.09957 6.03501 3.47957C5.82835 3.85957 5.72501 4.3229 5.72501 4.86957C5.72501 5.4029 5.82835 5.85957 6.03501 6.23957C6.24835 6.61957 6.52501 6.90957 6.86501 7.10957ZM8.71501 6.49957C8.50168 6.6529 8.25501 6.72957 7.97501 6.72957C7.69501 6.72957 7.44835 6.6529 7.23501 6.49957C7.02835 6.33957 6.86501 6.11957 6.74501 5.83957C6.63168 5.55957 6.57501 5.23624 6.57501 4.86957C6.57501 4.49624 6.63168 4.16957 6.74501 3.88957C6.86501 3.6029 7.02835 3.3829 7.23501 3.22957C7.44835 3.06957 7.69501 2.98957 7.97501 2.98957C8.25501 2.98957 8.50168 3.06957 8.71501 3.22957C8.92835 3.3829 9.09168 3.6029 9.20502 3.88957C9.31835 4.16957 9.37502 4.49624 9.37502 4.86957C9.37502 5.23624 9.31835 5.55957 9.20502 5.83957C9.09168 6.11957 8.92835 6.33957 8.71501 6.49957ZM10.8859 2.42957L12.2359 7.28957H13.2559L13.9059 4.68957C13.9659 4.46957 14.0192 4.24624 14.0659 4.01957C14.1192 3.7929 14.1692 3.53624 14.2159 3.24957H14.2559C14.3092 3.53624 14.3592 3.7929 14.4059 4.01957C14.4592 4.23957 14.5125 4.4629 14.5659 4.68957L15.2159 7.28957H16.2859L17.5959 2.42957H16.7959L16.0859 5.23957L15.9459 5.89957C15.8992 6.11957 15.8492 6.35957 15.7959 6.61957H15.7559C15.7025 6.35957 15.6492 6.11957 15.5959 5.89957C15.5492 5.67957 15.4959 5.45957 15.4359 5.23957L14.7059 2.42957H13.8059L13.0859 5.23957L12.9259 5.89957C12.8792 6.11957 12.8292 6.35957 12.7759 6.61957H12.7359C12.6959 6.35957 12.6525 6.11957 12.6059 5.89957C12.5592 5.67957 12.5092 5.45957 12.4559 5.23957L11.7459 2.42957H10.8859ZM19.3943 7.10957C19.7543 7.30957 20.151 7.40957 20.5843 7.40957C20.9176 7.40957 21.2143 7.3629 21.4743 7.26957C21.741 7.17624 21.981 7.05624 22.1943 6.90957L21.8943 6.36957C21.7276 6.4829 21.541 6.5729 21.3343 6.63957C21.1343 6.70624 20.9176 6.73957 20.6843 6.73957C20.391 6.73957 20.121 6.66957 19.8743 6.52957C19.6276 6.3829 19.431 6.16957 19.2843 5.88957C19.1711 5.66316 19.1037 5.39316 19.082 5.07957H22.3343C22.3543 4.99957 22.3643 4.91957 22.3643 4.83957C22.371 4.75957 22.3743 4.67624 22.3743 4.58957C22.3743 4.12957 22.301 3.72957 22.1543 3.38957C22.0076 3.04957 21.7876 2.78624 21.4943 2.59957C21.2076 2.40624 20.8576 2.30957 20.4443 2.30957C20.071 2.30957 19.7176 2.4129 19.3843 2.61957C19.051 2.82624 18.7776 3.11957 18.5643 3.49957C18.351 3.87957 18.2443 4.3329 18.2443 4.85957C18.2443 5.39957 18.3476 5.85957 18.5543 6.23957C18.761 6.6129 19.041 6.9029 19.3943 7.10957ZM21.6343 4.42957H19.0962C19.1257 4.1659 19.185 3.94256 19.2743 3.75957C19.4143 3.48624 19.591 3.28957 19.8043 3.16957C20.0176 3.0429 20.2343 2.97957 20.4543 2.97957C20.8343 2.97957 21.1243 3.10624 21.3243 3.35957C21.531 3.60624 21.6343 3.9629 21.6343 4.42957ZM23.5752 2.42957V7.28957H24.3952V4.16957C24.5619 3.75624 24.7552 3.46624 24.9752 3.29957C25.2019 3.1329 25.4186 3.04957 25.6252 3.04957C25.7252 3.04957 25.8052 3.05624 25.8652 3.06957C25.9319 3.07624 26.0019 3.08957 26.0752 3.10957L26.2552 2.40957C26.1752 2.36957 26.0952 2.3429 26.0152 2.32957C25.9352 2.31624 25.8419 2.30957 25.7352 2.30957C25.4552 2.30957 25.1952 2.39957 24.9552 2.57957C24.7153 2.75957 24.5152 3.0029 24.3552 3.30957H24.3252L24.2552 2.42957H23.5752ZM27.7244 7.10957C28.0844 7.30957 28.4811 7.40957 28.9144 7.40957C29.2477 7.40957 29.5444 7.3629 29.8044 7.26957C30.0711 7.17624 30.3111 7.05624 30.5244 6.90957L30.2244 6.36957C30.0577 6.4829 29.8711 6.5729 29.6644 6.63957C29.4644 6.70624 29.2477 6.73957 29.0144 6.73957C28.7211 6.73957 28.4511 6.66957 28.2044 6.52957C27.9577 6.3829 27.7611 6.16957 27.6144 5.88957C27.5012 5.66316 27.4337 5.39316 27.4121 5.07957H30.6644C30.6844 4.99957 30.6944 4.91957 30.6944 4.83957C30.7011 4.75957 30.7044 4.67624 30.7044 4.58957C30.7044 4.12957 30.6311 3.72957 30.4844 3.38957C30.3377 3.04957 30.1177 2.78624 29.8244 2.59957C29.5377 2.40624 29.1877 2.30957 28.7744 2.30957C28.4011 2.30957 28.0477 2.4129 27.7144 2.61957C27.3811 2.82624 27.1077 3.11957 26.8944 3.49957C26.6811 3.87957 26.5744 4.3329 26.5744 4.85957C26.5744 5.39957 26.6777 5.85957 26.8844 6.23957C27.0911 6.6129 27.3711 6.9029 27.7244 7.10957ZM29.9644 4.42957H27.4262C27.4557 4.1659 27.5151 3.94256 27.6044 3.75957C27.7444 3.48624 27.9211 3.28957 28.1344 3.16957C28.3477 3.0429 28.5644 2.97957 28.7844 2.97957C29.1644 2.97957 29.4544 3.10624 29.6544 3.35957C29.8611 3.60624 29.9644 3.9629 29.9644 4.42957ZM32.0953 6.74957C32.462 7.18957 32.952 7.40957 33.5653 7.40957C33.852 7.40957 34.122 7.3429 34.3753 7.20957C34.6287 7.06957 34.8487 6.90624 35.0353 6.71957H35.0653L35.1353 7.28957H35.8153V0.169571H34.9853V2.03957L35.0253 2.86957C34.812 2.68957 34.602 2.5529 34.3953 2.45957C34.1953 2.35957 33.952 2.30957 33.6653 2.30957C33.292 2.30957 32.9453 2.4129 32.6253 2.61957C32.3053 2.82624 32.0453 3.1229 31.8453 3.50957C31.652 3.88957 31.5553 4.3429 31.5553 4.86957C31.5553 5.67624 31.7353 6.3029 32.0953 6.74957ZM34.3853 6.54957C34.1853 6.6629 33.972 6.71957 33.7453 6.71957C33.3187 6.71957 32.9887 6.55624 32.7553 6.22957C32.522 5.89624 32.4053 5.43957 32.4053 4.85957C32.4053 4.48624 32.4687 4.1629 32.5953 3.88957C32.722 3.60957 32.8887 3.3929 33.0953 3.23957C33.3087 3.07957 33.5453 2.99957 33.8053 2.99957C34.0053 2.99957 34.202 3.03957 34.3953 3.11957C34.5887 3.1929 34.7853 3.3229 34.9853 3.50957V6.04957C34.7853 6.26957 34.5853 6.43624 34.3853 6.54957ZM40.9042 7.24957C41.1442 7.35624 41.3775 7.40957 41.6042 7.40957C41.9708 7.40957 42.3142 7.30624 42.6342 7.09957C42.9542 6.8929 43.2108 6.5929 43.4042 6.19957C43.6042 5.80624 43.7042 5.3329 43.7042 4.77957C43.7042 4.27957 43.6308 3.84624 43.4842 3.47957C43.3375 3.10624 43.1208 2.81957 42.8342 2.61957C42.5475 2.4129 42.1942 2.30957 41.7742 2.30957C41.5075 2.30957 41.2408 2.37624 40.9742 2.50957C40.7142 2.63624 40.4742 2.79624 40.2542 2.98957L40.2742 2.10957V0.169571H39.4542V7.28957H40.1142L40.1842 6.78957H40.2142C40.4342 6.9829 40.6642 7.13624 40.9042 7.24957ZM42.1742 6.48957C41.9675 6.6429 41.7308 6.71957 41.4642 6.71957C41.3042 6.71957 41.1175 6.6829 40.9042 6.60957C40.6975 6.52957 40.4875 6.39624 40.2742 6.20957V3.65957C40.5075 3.43957 40.7308 3.27624 40.9442 3.16957C41.1642 3.05624 41.3742 2.99957 41.5742 2.99957C41.8808 2.99957 42.1275 3.07624 42.3142 3.22957C42.5008 3.37624 42.6375 3.58624 42.7242 3.85957C42.8108 4.12624 42.8542 4.43624 42.8542 4.78957C42.8542 5.18957 42.7942 5.53624 42.6742 5.82957C42.5542 6.11624 42.3875 6.33624 42.1742 6.48957ZM44.7124 9.34957C44.8124 9.36957 44.9158 9.37957 45.0224 9.37957C45.3491 9.37957 45.6258 9.30624 45.8524 9.15957C46.0791 9.0129 46.2724 8.80957 46.4324 8.54957C46.5924 8.29624 46.7291 8.00957 46.8424 7.68957L48.6724 2.42957H47.8724L47.0024 5.11957C46.9424 5.3329 46.8758 5.55957 46.8024 5.79957C46.7358 6.0329 46.6658 6.2629 46.5924 6.48957H46.5524C46.4791 6.2629 46.4024 6.02957 46.3224 5.78957C46.2424 5.54957 46.1624 5.32624 46.0824 5.11957L45.0924 2.42957H44.2424L46.1924 7.29957L46.0824 7.65957C45.9824 7.95957 45.8424 8.20624 45.6624 8.39957C45.4891 8.59957 45.2624 8.69957 44.9824 8.69957C44.9291 8.69957 44.8724 8.6929 44.8124 8.67957C44.7524 8.6729 44.6924 8.65957 44.6324 8.63957L44.4524 9.27957C44.5324 9.30624 44.6191 9.32957 44.7124 9.34957Z",fill:"currentColor"})))}const CM=t.forwardRef(NM);n.p;var AM,TM;function EM(){return EM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EM.apply(this,arguments)}function DM(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",EM({width:80,height:10,viewBox:"0 0 80 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,AM||(AM=t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M53.4951 2.66941V7.62941H54.9651V4.27941C55.1251 4.12608 55.2718 4.00941 55.4051 3.92941C55.5384 3.84275 55.6984 3.79941 55.8851 3.79941C56.0984 3.79941 56.2518 3.86608 56.3451 3.99941C56.4451 4.13275 56.4951 4.37941 56.4951 4.73941V7.62941H57.9651V4.54941C57.9651 3.92941 57.8451 3.44275 57.6051 3.08941C57.3651 2.72941 56.9718 2.54941 56.4251 2.54941C56.0918 2.54941 55.7951 2.62275 55.5351 2.76941C55.2751 2.91608 55.0418 3.09275 54.8351 3.29941H54.7951L54.6951 2.66941H53.4951ZM59.3778 9.53941C59.4911 9.55941 59.6211 9.56941 59.7677 9.56941C60.1611 9.56941 60.4877 9.49608 60.7477 9.34941C61.0144 9.20941 61.2378 8.99941 61.4177 8.71941C61.6044 8.43941 61.7777 8.09275 61.9377 7.67941L63.6577 2.66941H62.2477L61.6478 4.79941C61.5877 5.03275 61.5277 5.26941 61.4678 5.50941L61.3078 6.20941H61.2677C61.2011 5.96275 61.1377 5.72275 61.0777 5.48941C61.0177 5.25608 60.9511 5.02608 60.8778 4.79941L60.1677 2.66941H58.6877L60.5977 7.49941L60.5277 7.75941C60.4678 7.94608 60.3677 8.09941 60.2277 8.21941C60.0944 8.34608 59.9044 8.40941 59.6577 8.40941C59.6111 8.40941 59.5611 8.40608 59.5077 8.39942C59.4611 8.39942 59.4011 8.38941 59.3277 8.36941L59.0677 9.44941C59.1677 9.48941 59.2711 9.51941 59.3778 9.53941ZM64.4326 2.66941V7.62941H65.9026V4.74941C66.0359 4.40941 66.2026 4.17275 66.4026 4.03941C66.6093 3.90608 66.8059 3.83941 66.9926 3.83941C67.0993 3.83941 67.1893 3.84608 67.2626 3.85941C67.3359 3.86608 67.4126 3.87941 67.4926 3.89941L67.7726 2.64941C67.7059 2.61608 67.6259 2.59275 67.5326 2.57941C67.4393 2.55941 67.3226 2.54941 67.1826 2.54941C66.9226 2.54941 66.6659 2.63275 66.4126 2.79941C66.1659 2.95941 65.9526 3.20608 65.7726 3.53941H65.7326L65.6326 2.66941H64.4326ZM68.417 2.66941V7.62941H69.887V2.66941H68.417ZM68.547 1.72941C68.7003 1.86941 68.9003 1.93941 69.147 1.93941C69.3936 1.93941 69.5936 1.86941 69.747 1.72941C69.9003 1.58941 69.977 1.40275 69.977 1.16941C69.977 0.936081 69.9003 0.749414 69.747 0.609414C69.5936 0.469414 69.3936 0.399414 69.147 0.399414C68.9003 0.399414 68.7003 0.469414 68.547 0.609414C68.3936 0.749414 68.317 0.936081 68.317 1.16941C68.317 1.40275 68.3936 1.58941 68.547 1.72941ZM71.6306 7.55941C71.9773 7.68608 72.314 7.74941 72.6406 7.74941C73.0873 7.74941 73.4606 7.67941 73.7606 7.53941C74.0606 7.39275 74.2873 7.19941 74.4406 6.95941C74.6006 6.71941 74.6806 6.44941 74.6806 6.14941C74.6806 5.87608 74.6206 5.64275 74.5006 5.44941C74.3806 5.25608 74.214 5.09608 74.0006 4.96941C73.794 4.83608 73.564 4.72608 73.3106 4.63941C73.104 4.57275 72.9306 4.51275 72.7906 4.45941C72.6573 4.39941 72.5573 4.33608 72.4906 4.26941C72.424 4.20275 72.3906 4.12275 72.3906 4.02941C72.3906 3.91608 72.4373 3.82275 72.5306 3.74941C72.624 3.67608 72.7673 3.63941 72.9606 3.63941C73.134 3.63941 73.3106 3.66941 73.4906 3.72941C73.6706 3.78275 73.8506 3.87275 74.0306 3.99941L74.6606 3.17941C74.4473 2.99275 74.1906 2.84275 73.8906 2.72941C73.5973 2.60941 73.2706 2.54941 72.9106 2.54941C72.344 2.54941 71.884 2.69275 71.5306 2.97941C71.184 3.25941 71.0106 3.63275 71.0106 4.09941C71.0106 4.35941 71.0706 4.58275 71.1906 4.76941C71.3173 4.95608 71.4806 5.11608 71.6806 5.24941C71.8806 5.38275 72.1006 5.49275 72.3406 5.57941C72.5206 5.64608 72.6806 5.70941 72.8206 5.76941C72.9673 5.82275 73.084 5.88608 73.1706 5.95941C73.264 6.03275 73.3106 6.12608 73.3106 6.23941C73.3106 6.36608 73.2606 6.46941 73.1606 6.54941C73.0606 6.62275 72.9006 6.65941 72.6806 6.65941C72.474 6.65941 72.2573 6.62608 72.0306 6.55941C71.8106 6.48608 71.5873 6.35941 71.3606 6.17941L70.7406 7.00941C70.9873 7.24941 71.284 7.43275 71.6306 7.55941ZM76.2742 4.25941C76.5742 4.43275 76.9076 4.51941 77.2742 4.51941C77.6342 4.51941 77.9642 4.43275 78.2642 4.25941C78.5709 4.08608 78.8109 3.84941 78.9842 3.54941C79.1642 3.24275 79.2542 2.89275 79.2542 2.49941C79.2542 2.10608 79.1642 1.75941 78.9842 1.45941C78.8109 1.15275 78.5709 0.912748 78.2642 0.739414C77.9642 0.566081 77.6342 0.479414 77.2742 0.479414C76.9076 0.479414 76.5742 0.566081 76.2742 0.739414C75.9742 0.912748 75.7342 1.15275 75.5542 1.45941C75.3742 1.75941 75.2842 2.10608 75.2842 2.49941C75.2842 2.89275 75.3742 3.24275 75.5542 3.54941C75.7342 3.84941 75.9742 4.08608 76.2742 4.25941ZM78.0142 3.83941C77.8009 3.96608 77.5542 4.02941 77.2742 4.02941C76.9942 4.02941 76.7442 3.96608 76.5242 3.83941C76.3109 3.71275 76.1409 3.53608 76.0142 3.30941C75.8942 3.07608 75.8342 2.80608 75.8342 2.49941C75.8342 2.19275 75.8942 1.92608 76.0142 1.69941C76.1409 1.46608 76.3109 1.28608 76.5242 1.15941C76.7442 1.03275 76.9942 0.969414 77.2742 0.969414C77.5542 0.969414 77.8009 1.03275 78.0142 1.15941C78.2276 1.28608 78.3942 1.46608 78.5142 1.69941C78.6409 1.92608 78.7042 2.19275 78.7042 2.49941C78.7042 2.80608 78.6409 3.07608 78.5142 3.30941C78.3942 3.53608 78.2276 3.71275 78.0142 3.83941ZM76.4642 1.49941V3.46941H77.0342V2.86941H77.3242L77.6242 3.46941H78.2242L77.8142 2.69941C77.9342 2.64608 78.0209 2.56941 78.0742 2.46941C78.1342 2.36941 78.1642 2.26608 78.1642 2.15941C78.1642 1.93275 78.0876 1.76608 77.9342 1.65941C77.7809 1.55275 77.5876 1.49941 77.3542 1.49941H76.4642ZM77.2442 2.46941H77.0342V1.92941H77.2442C77.3442 1.92941 77.4176 1.95608 77.4642 2.00941C77.5176 2.05608 77.5442 2.11608 77.5442 2.18941C77.5442 2.26941 77.5176 2.33608 77.4642 2.38941C77.4176 2.44275 77.3442 2.46941 77.2442 2.46941ZM0.745093 1.06941V7.62941H1.57509V5.02941H2.65509C3.13509 5.02941 3.55509 4.95608 3.91509 4.80941C4.28176 4.65608 4.56509 4.43275 4.76509 4.13941C4.97176 3.83941 5.07509 3.45941 5.07509 2.99941C5.07509 2.51941 4.97176 2.13941 4.76509 1.85941C4.55843 1.57941 4.27176 1.37941 3.90509 1.25941C3.53843 1.13275 3.10843 1.06941 2.61509 1.06941H0.745093ZM2.55509 4.34941H1.57509V1.73941H2.51509C3.08843 1.73941 3.51843 1.83275 3.80509 2.01941C4.09843 2.19941 4.24509 2.52608 4.24509 2.99941C4.24509 3.45941 4.10509 3.79941 3.82509 4.01941C3.55176 4.23941 3.12843 4.34941 2.55509 4.34941ZM6.86501 7.44941C7.21168 7.64941 7.58168 7.74941 7.97501 7.74941C8.37501 7.74941 8.74502 7.64941 9.08502 7.44941C9.42501 7.24941 9.69835 6.95941 9.90501 6.57941C10.1183 6.19941 10.225 5.74275 10.225 5.20941C10.225 4.66275 10.1183 4.19941 9.90501 3.81941C9.69835 3.43941 9.42501 3.14941 9.08502 2.94941C8.74502 2.74941 8.37501 2.64941 7.97501 2.64941C7.58168 2.64941 7.21168 2.74941 6.86501 2.94941C6.52501 3.14941 6.24835 3.43941 6.03501 3.81941C5.82835 4.19941 5.72501 4.66275 5.72501 5.20941C5.72501 5.74275 5.82835 6.19941 6.03501 6.57941C6.24835 6.95941 6.52501 7.24941 6.86501 7.44941ZM8.71501 6.83941C8.50168 6.99275 8.25501 7.06941 7.97501 7.06941C7.69501 7.06941 7.44835 6.99275 7.23501 6.83941C7.02835 6.67941 6.86501 6.45941 6.74501 6.17941C6.63168 5.89941 6.57501 5.57608 6.57501 5.20941C6.57501 4.83608 6.63168 4.50941 6.74501 4.22941C6.86501 3.94275 7.02835 3.72275 7.23501 3.56941C7.44835 3.40941 7.69501 3.32941 7.97501 3.32941C8.25501 3.32941 8.50168 3.40941 8.71501 3.56941C8.92835 3.72275 9.09168 3.94275 9.20502 4.22941C9.31835 4.50941 9.37502 4.83608 9.37502 5.20941C9.37502 5.57608 9.31835 5.89941 9.20502 6.17941C9.09168 6.45941 8.92835 6.67941 8.71501 6.83941ZM10.8859 2.76941L12.2359 7.62941H13.2559L13.9059 5.02941C13.9659 4.80941 14.0192 4.58608 14.0659 4.35941C14.1192 4.13275 14.1692 3.87608 14.2159 3.58941H14.2559C14.3092 3.87608 14.3592 4.13275 14.4059 4.35941C14.4592 4.57941 14.5125 4.80275 14.5659 5.02941L15.2159 7.62941H16.2859L17.5959 2.76941H16.7959L16.0859 5.57941L15.9459 6.23941C15.8992 6.45941 15.8492 6.69941 15.7959 6.95941H15.7559C15.7025 6.69941 15.6492 6.45941 15.5959 6.23941C15.5492 6.01941 15.4959 5.79941 15.4359 5.57941L14.7059 2.76941H13.8059L13.0859 5.57941L12.9259 6.23941C12.8792 6.45941 12.8292 6.69941 12.7759 6.95941H12.7359C12.6959 6.69941 12.6525 6.45941 12.6059 6.23941C12.5592 6.01941 12.5092 5.79941 12.4559 5.57941L11.7459 2.76941H10.8859ZM19.3943 7.44941C19.7543 7.64941 20.151 7.74941 20.5843 7.74941C20.9176 7.74941 21.2143 7.70275 21.4743 7.60941C21.741 7.51608 21.981 7.39608 22.1943 7.24941L21.8943 6.70941C21.7276 6.82275 21.541 6.91275 21.3343 6.97941C21.1343 7.04608 20.9176 7.07941 20.6843 7.07941C20.391 7.07941 20.121 7.00941 19.8743 6.86941C19.6276 6.72275 19.431 6.50941 19.2843 6.22941C19.1711 6.003 19.1037 5.733 19.082 5.41941H22.3343C22.3543 5.33941 22.3643 5.25941 22.3643 5.17941C22.371 5.09941 22.3743 5.01608 22.3743 4.92941C22.3743 4.46941 22.301 4.06941 22.1543 3.72941C22.0076 3.38941 21.7876 3.12608 21.4943 2.93941C21.2076 2.74608 20.8576 2.64941 20.4443 2.64941C20.071 2.64941 19.7176 2.75275 19.3843 2.95941C19.051 3.16608 18.7776 3.45941 18.5643 3.83941C18.351 4.21941 18.2443 4.67275 18.2443 5.19941C18.2443 5.73941 18.3476 6.19941 18.5543 6.57941C18.761 6.95275 19.041 7.24275 19.3943 7.44941ZM21.6343 4.76941H19.0962C19.1257 4.50574 19.185 4.28241 19.2743 4.09941C19.4143 3.82608 19.591 3.62941 19.8043 3.50941C20.0176 3.38275 20.2343 3.31941 20.4543 3.31941C20.8343 3.31941 21.1243 3.44608 21.3243 3.69941C21.531 3.94608 21.6343 4.30275 21.6343 4.76941ZM23.5752 2.76941V7.62941H24.3952V4.50941C24.5619 4.09608 24.7552 3.80608 24.9752 3.63941C25.2019 3.47275 25.4186 3.38941 25.6252 3.38941C25.7252 3.38941 25.8052 3.39608 25.8652 3.40941C25.9319 3.41608 26.0019 3.42941 26.0752 3.44941L26.2552 2.74941C26.1752 2.70941 26.0952 2.68275 26.0152 2.66941C25.9352 2.65608 25.8419 2.64941 25.7352 2.64941C25.4552 2.64941 25.1952 2.73941 24.9552 2.91941C24.7153 3.09941 24.5152 3.34275 24.3552 3.64941H24.3252L24.2552 2.76941H23.5752ZM27.7244 7.44941C28.0844 7.64941 28.4811 7.74941 28.9144 7.74941C29.2477 7.74941 29.5444 7.70275 29.8044 7.60941C30.0711 7.51608 30.3111 7.39608 30.5244 7.24941L30.2244 6.70941C30.0577 6.82275 29.8711 6.91275 29.6644 6.97941C29.4644 7.04608 29.2477 7.07941 29.0144 7.07941C28.7211 7.07941 28.4511 7.00941 28.2044 6.86941C27.9577 6.72275 27.7611 6.50941 27.6144 6.22941C27.5012 6.003 27.4337 5.733 27.4121 5.41941H30.6644C30.6844 5.33941 30.6944 5.25941 30.6944 5.17941C30.7011 5.09941 30.7044 5.01608 30.7044 4.92941C30.7044 4.46941 30.6311 4.06941 30.4844 3.72941C30.3377 3.38941 30.1177 3.12608 29.8244 2.93941C29.5377 2.74608 29.1877 2.64941 28.7744 2.64941C28.4011 2.64941 28.0477 2.75275 27.7144 2.95941C27.3811 3.16608 27.1077 3.45941 26.8944 3.83941C26.6811 4.21941 26.5744 4.67275 26.5744 5.19941C26.5744 5.73941 26.6777 6.19941 26.8844 6.57941C27.0911 6.95275 27.3711 7.24275 27.7244 7.44941ZM29.9644 4.76941H27.4262C27.4557 4.50574 27.5151 4.28241 27.6044 4.09941C27.7444 3.82608 27.9211 3.62941 28.1344 3.50941C28.3477 3.38275 28.5644 3.31941 28.7844 3.31941C29.1644 3.31941 29.4544 3.44608 29.6544 3.69941C29.8611 3.94608 29.9644 4.30275 29.9644 4.76941ZM32.0953 7.08941C32.462 7.52941 32.952 7.74941 33.5653 7.74941C33.852 7.74941 34.122 7.68275 34.3753 7.54941C34.6287 7.40941 34.8487 7.24608 35.0353 7.05941H35.0653L35.1353 7.62941H35.8153V0.509414H34.9853V2.37941L35.0253 3.20941C34.812 3.02941 34.602 2.89275 34.3953 2.79941C34.1953 2.69941 33.952 2.64941 33.6653 2.64941C33.292 2.64941 32.9453 2.75275 32.6253 2.95941C32.3053 3.16608 32.0453 3.46275 31.8453 3.84941C31.652 4.22941 31.5553 4.68275 31.5553 5.20941C31.5553 6.01608 31.7353 6.64275 32.0953 7.08941ZM34.3853 6.88941C34.1853 7.00275 33.972 7.05941 33.7453 7.05941C33.3187 7.05941 32.9887 6.89608 32.7553 6.56941C32.522 6.23608 32.4053 5.77941 32.4053 5.19941C32.4053 4.82608 32.4687 4.50275 32.5953 4.22941C32.722 3.94941 32.8887 3.73275 33.0953 3.57941C33.3087 3.41941 33.5453 3.33941 33.8053 3.33941C34.0053 3.33941 34.202 3.37941 34.3953 3.45941C34.5887 3.53275 34.7853 3.66275 34.9853 3.84941V6.38941C34.7853 6.60941 34.5853 6.77608 34.3853 6.88941ZM40.9042 7.58941C41.1442 7.69608 41.3775 7.74941 41.6042 7.74941C41.9708 7.74941 42.3142 7.64608 42.6342 7.43941C42.9542 7.23275 43.2108 6.93275 43.4042 6.53941C43.6042 6.14608 43.7042 5.67275 43.7042 5.11941C43.7042 4.61941 43.6308 4.18608 43.4842 3.81941C43.3375 3.44608 43.1208 3.15941 42.8342 2.95941C42.5475 2.75275 42.1942 2.64941 41.7742 2.64941C41.5075 2.64941 41.2408 2.71608 40.9742 2.84941C40.7142 2.97608 40.4742 3.13608 40.2542 3.32941L40.2742 2.44941V0.509414H39.4542V7.62941H40.1142L40.1842 7.12941H40.2142C40.4342 7.32275 40.6642 7.47608 40.9042 7.58941ZM42.1742 6.82941C41.9675 6.98275 41.7308 7.05941 41.4642 7.05941C41.3042 7.05941 41.1175 7.02275 40.9042 6.94941C40.6975 6.86941 40.4875 6.73608 40.2742 6.54941V3.99941C40.5075 3.77941 40.7308 3.61608 40.9442 3.50941C41.1642 3.39608 41.3742 3.33941 41.5742 3.33941C41.8808 3.33941 42.1275 3.41608 42.3142 3.56941C42.5008 3.71608 42.6375 3.92608 42.7242 4.19941C42.8108 4.46608 42.8542 4.77608 42.8542 5.12941C42.8542 5.52941 42.7942 5.87608 42.6742 6.16941C42.5542 6.45608 42.3875 6.67608 42.1742 6.82941ZM44.7124 9.68941C44.8124 9.70941 44.9158 9.71941 45.0224 9.71941C45.3491 9.71941 45.6258 9.64608 45.8524 9.49941C46.0791 9.35275 46.2724 9.14942 46.4324 8.88941C46.5924 8.63608 46.7291 8.34941 46.8424 8.02941L48.6724 2.76941H47.8724L47.0024 5.45941C46.9424 5.67275 46.8758 5.89941 46.8024 6.13941C46.7358 6.37275 46.6658 6.60275 46.5924 6.82941H46.5524C46.4791 6.60275 46.4024 6.36941 46.3224 6.12941C46.2424 5.88941 46.1624 5.66608 46.0824 5.45941L45.0924 2.76941H44.2424L46.1924 7.63941L46.0824 7.99941C45.9824 8.29941 45.8424 8.54608 45.6624 8.73941C45.4891 8.93941 45.2624 9.03941 44.9824 9.03941C44.9291 9.03941 44.8724 9.03275 44.8124 9.01941C44.7524 9.01275 44.6924 8.99941 44.6324 8.97941L44.4524 9.61941C44.5324 9.64608 44.6191 9.66941 44.7124 9.68941Z",fill:"url(#paint0_linear_5277_64421)"})),TM||(TM=t.createElement("defs",null,t.createElement("linearGradient",{id:"paint0_linear_5277_64421",x1:53,y1:12.0596,x2:80,y2:12.0596,gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#3E36DC"}),t.createElement("stop",{offset:1,stopColor:"#E31B5D"})))))}const kM=t.forwardRef(DM);n.p;const OM=function(){const[e,n]=(0,t.useState)(!1);return(0,La.jsxs)("div",{className:"powered-by-nyris",style:{display:"flex",padding:"9px 0px",justifyContent:"center",borderTop:"1px solid #E0E0E0"},onMouseOver:()=>{n(!0)},onMouseOut:()=>{n(!1)},children:[e&&(0,La.jsx)(kM,{style:{cursor:"pointer"},onClick:()=>{window.open("https://www.nyris.io","_blank")}}),!e&&(0,La.jsx)(CM,{style:{cursor:"pointer"},onClick:()=>{window.open("https://www.nyris.io","_blank")},color:"#2B2C46"})]})},IM="0.3.68";function _M(e){var n,r,i;let{children:o}=e;const a=Er(),{settings:s,search:l}=Dr((e=>e)),{loadingSearchAlgolia:u}=l,c=(0,Qe.useMediaQuery)({query:"(max-width: 776px)"}),d=ke(),f=aa().get("query")||"";let h=c&&"/result"===(null===(n=d.location)||void 0===n?void 0:n.pathname)||"/"===(null===(r=d.location)||void 0===r?void 0:r.pathname);const p=Dr((e=>e.settings.language)),{user:g,isAuthenticated:m}=oa(),{auth0:y,showPoweredByNyris:v}=s,b=!y.enabled||y.enabled&&m;let x;zw.changeLanguage(p),(0,t.useEffect)((()=>{var e;"/"===(null===(e=d.location)||void 0===e?void 0:e.pathname)&&(document.title=s.appTitle||"",a(Jn("")))}),[d.location]),(0,t.useEffect)((()=>{s.shouldUseUserMetadata&&g&&g["/user_metadata"].value&&a(ar({[g["/user_metadata"].value]:!0}))}),[g,a,s.shouldUseUserMetadata]);let w="newVersion";c?(w="mobile",x=gx):x=Wx;let M=.01*window.innerHeight;return document.documentElement.style.setProperty("--vh","".concat(M,"px")),(0,t.useEffect)((()=>{console.log("App version:",IM);const e=()=>{let e=.01*window.innerHeight;document.documentElement.style.setProperty("--vh","".concat(e,"px"))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]),(0,t.useEffect)((()=>{l.requestImage&&f||a(Xn())}),[l.requestImage,f,a,l.regions]),(0,t.useEffect)((()=>{a(Xn())}),[a,l.selectedRegion]),(0,La.jsxs)("div",{style:{position:"relative"},children:[u&&(0,La.jsx)("div",{className:"box-wrap-loading",style:{zIndex:99999999},children:(0,La.jsx)(Xx,{})}),(0,La.jsxs)(MM,{children:[c&&b&&(0,La.jsx)(Gx,{children:o}),!c&&b&&(0,La.jsxs)("div",{className:"layout-main-".concat(w),children:[(0,La.jsx)("div",{className:c?h?"box-header-".concat(w,"-main"):"":"box-header-".concat(w,"-main"),style:{..."newVersion"===w?{background:null===(i=s.theme)||void 0===i?void 0:i.headerColor}:{}},children:(0,La.jsx)(x,{})}),(0,La.jsx)("div",{className:"box-body-".concat(w,"-wrap-main"),children:o}),v&&(0,La.jsx)(OM,{})]}),!b&&(0,La.jsxs)(La.Fragment,{children:[" ",o]})]})]})}Zx()(document).ready((function(){psol.core.setUserInfo({server_type:"oem_apps_cadenas_webcomponentsdemo",title:"Herr",firstname:"Max",lastname:"Mustermann",userfirm:"CADENAS GmbH",street:"Berliner Allee 28 b+c",zip:"86153",city:"Augsburg",country:"de",phone:"+49 (0) 821 2 58 58 0-0",fax:"+49 (0) 821 2 58 58 0-999",email:"info@cadenas.de"}),psol.core.setServiceBaseUrl("https://webapi.partcommunity.com"),window.onpageshow=function(e){e.persisted&&window.location.reload()}})),zw.use(Ri).init({resources:{en:{translation:{Search:"Search","Drag and drop":"Drag and drop","an image here":"an image here","Manufacturer Number":"Manufacturer No.","Mfr. No.":"Mfr. No.","Close group":"Close group","Show group":"Show group","Adjust the search frame around your object for improved results":"Adjust the search frame around your object for improved results","Crop the image for better results":"Crop the image for better results","Items per page":"Items per page","Search with an image":"Search with an image","Clear text search":"Clear text search","View details":"View details description","Clear image search":"Clear image search ","Add or change pre-filter":"Add or change pre-filter","Expand all":"Expand all","Collapse all":"Collapse all",Brand:"Brand","Product name":"Product name",loading:"loading","No products were found matching your search criteria.":"No products were found matching your search criteria.","Please upload an image or enter a keyword to search.":"Please upload an image or enter a keyword to search.","No matches found":"No matches found","No matches found for your request":"No matches found for your request","Clear all":"Clear all",Cancel:"Cancel",Apply:"Apply","Back to request image":"Back to request image"}},de:{translation:{Search:"Suche","Drag and drop":"Bild hierher ziehen","an image here":"","Mfr. No.":"Herst. Teile-Nr.","Manufacturer Number":"Herstellerteilenummer","Close group":"Schlie\xdfe Gruppe","Show group":"Zeige Gruppe","Adjust the search frame around your object for improved results":"Anpassen des Rahmens f\xfcr bessere Ergebnisse","Crop the image for better results":"Zuschneiden f\xfcr bessere Ergebnisse","Items per page":"Artikel pro Seite","Search with an image":"Bildsuche","Clear text search":"Suchtext l\xf6schen","View details":"Details anzeigen","Clear image search":"Bildsuche zur\xfcck setzen","Add or change pre-filter":"Vorfilter hinzuf\xfcgen oder \xe4ndern","Expand all":"Alles anzeigen","Collapse all":"Alles einklappen",Brand:"Marke","Product name":"Produktname",loading:"L\xe4dt","No products were found matching your search criteria.":"Keine Produkte entsprechen Ihren Suchkriterien.","Please upload an image or enter a keyword to search.":"F\xfcr die Suche bitte Bild hochladen oder Stichwort eingeben.","No matches found":"Keine Treffer f\xfcr Ihre Anfrage gefunden","No matches found for your request":"Keine Treffer f\xfcr Ihre Anfrage gefunden","Clear all":"Alles l\xf6schen",Cancel:"Abbrechen",Apply:"Anwenden","Back to request image":"Zur\xfcck zur Bildanfrage"}},pt:{translation:{Search:"Busca","Drag and drop":"Escolha uma imagem","an image here":"","Manufacturer Number":"N\xfamero do fabricante","Mfr. No.":"Nr. do Fab","Close group":"Fechar grupo","Show group":"Mostrar grupo","Adjust the search frame around your object for improved results":"Ajuste a caixa de busca para melhores resultados","Crop the image for better results":"Ajuste o campo de imagem para melhores resultados","Items per page":"Itens por p\xe1gina","Search with an image":"Busque com uma imagem","Clear text search":"Limpar busca","View details":"Ver detalhes","Clear image search":"Limpar imagem","Add or change pre-filter":"Adicionar ou selecionar pre-filtro","Expand all":"Expandir","Collapse all":"esconder tudo",Brand:"Marca",loading:"Carregando","No products were found matching your search criteria.":"Nenhum produto foi encontrado com estes crit\xe9rios ","Please upload an image or enter a keyword to search.":"Fa\xe7a o upload de uma imagem ou busque via texto","No matches found":"No matches found","No matches found for your request":"No matches found for your request","Clear all":"Clear all",Cancel:"Cancel",Apply:"Apply","Back to request image":"Retroceder para imagem inicial"}}},fallbackLng:"en",interpolation:{escapeValue:!1},returnNull:!1});const PM=(0,t.memo)(_M);var LM=n(1204),zM=n(7263);function RM(e,t){var n;let r;return t.forEach((t=>{(function(e,t){const n=e.attribute;return null!==n&&void 0!==n&&n.attributes?(null===n||void 0===n?void 0:n.attributes[0])===t.attribute:n===t.attribute})(t,e)&&(r=t)})),(null===e||void 0===e||null===(n=e.items)||void 0===n?void 0:n.map((e=>{var t;return{category:null===(t=r)||void 0===t?void 0:t.header,label:e.label,value:e.value}})))||[]}function FM(e){let{children:n,type:r="native",className:i,items:o,refine:a}=e;const s=(0,t.useCallback)((()=>a(o)),[a,o]),{settings:l}=Dr((e=>e));return(0,La.jsx)(rl,{type:r,disabled:!o.length,className:i,onClick:s,style:{color:l.theme.secondaryColor,fontWeight:"bold",textTransform:"none",padding:0},children:n})}const UM=av((0,t.memo)(FM,Or()));var BM=n(8238);const VM=av((function(e){let{items:n,refine:r,className:i,statusSwitchButton:o}=e;const a=Dr((e=>e)),{settings:s}=a,{t:l}=Qi(),[u,c]=(0,t.useState)([]);(0,t.useEffect)((()=>{o&&c(n)}),[n,o]);const d=(0,t.useMemo)((()=>u.reduce(((e,t)=>[...e,...RM(t,null===s||void 0===s?void 0:s.refinements)]),[])),[s,u]);return d.length?(0,La.jsx)("div",{className:i,style:{marginBottom:"16px"},children:(0,La.jsxs)("ul",{className:"flex flex-wrap gap-3",children:[d.map((e=>(0,La.jsxs)("li",{children:[e.label,(0,La.jsx)(BM.A,{style:{fontSize:"14px",fontWeight:"bold",cursor:"pointer"},onClick:()=>r(e.value)})]},[e.category,e.label].join(":")))),(0,La.jsx)("li",{className:Ai()("flex items-center",{hidden:d.length<2}),children:(0,La.jsx)(UM,{className:"text-f12 fw-600",children:l("Clear all")})},"clear")]})}):null}));var QM=[0,1,2,3,4,5,6,7,8,9,10],HM=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function YM(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var WM=t.forwardRef((function(e,n){var r=e.alignContent,i=void 0===r?"stretch":r,o=e.alignItems,a=void 0===o?"stretch":o,s=e.classes,l=e.className,u=e.component,c=void 0===u?"div":u,d=e.container,f=void 0!==d&&d,h=e.direction,p=void 0===h?"row":h,g=e.item,m=void 0!==g&&g,y=e.justify,v=e.justifyContent,b=void 0===v?"flex-start":v,x=e.lg,w=void 0!==x&&x,M=e.md,S=void 0!==M&&M,j=e.sm,N=void 0!==j&&j,C=e.spacing,A=void 0===C?0:C,E=e.wrap,D=void 0===E?"wrap":E,k=e.xl,O=void 0!==k&&k,I=e.xs,_=void 0!==I&&I,P=e.zeroMinWidth,L=void 0!==P&&P,z=(0,sa.A)(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","justifyContent","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),R=(0,Za.A)(s.root,l,f&&[s.container,0!==A&&s["spacing-xs-".concat(String(A))]],m&&s.item,L&&s.zeroMinWidth,"row"!==p&&s["direction-xs-".concat(String(p))],"wrap"!==D&&s["wrap-xs-".concat(String(D))],"stretch"!==a&&s["align-items-xs-".concat(String(a))],"stretch"!==i&&s["align-content-xs-".concat(String(i))],"flex-start"!==(y||b)&&s["justify-content-xs-".concat(String(y||b))],!1!==_&&s["grid-xs-".concat(String(_))],!1!==N&&s["grid-sm-".concat(String(N))],!1!==S&&s["grid-md-".concat(String(S))],!1!==w&&s["grid-lg-".concat(String(w))],!1!==O&&s["grid-xl-".concat(String(O))]);return t.createElement(c,(0,T.A)({className:R,ref:n},z))})),GM=(0,Ka.A)((function(e){return(0,T.A)({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-content-xs-center":{justifyContent:"center"},"justify-content-xs-flex-end":{justifyContent:"flex-end"},"justify-content-xs-space-between":{justifyContent:"space-between"},"justify-content-xs-space-around":{justifyContent:"space-around"},"justify-content-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return QM.forEach((function(r){var i=e.spacing(r);0!==i&&(n["spacing-".concat(t,"-").concat(r)]={margin:"-".concat(YM(i,2)),width:"calc(100% + ".concat(YM(i),")"),"& > $item":{padding:YM(i,2)}})})),n}(e,"xs"),e.breakpoints.keys.reduce((function(t,n){return function(e,t,n){var r={};HM.forEach((function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var i="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:i,flexGrow:0,maxWidth:i}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?(0,T.A)(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t}),{}))}),{name:"MuiGrid"})(WM);const qM=GM;function ZM(e){return ZM="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},ZM(e)}function KM(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ZM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ZM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ZM(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XM(e,t,n){var r=vi(e,t,n,"page",1);return"string"===typeof r?parseInt(r,10):r}const $M=li({displayName:"AlgoliaPagination",$$type:"ais.pagination",getProvidedProps:function(e,t,n){var r=pi(n,{ais:e.contextValue,multiIndexContext:e.indexContextValue});if(!r)return null;var i=r.nbPages;return{nbPages:i,currentRefinement:XM(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),canRefine:i>1}},refine:function(e,t,n){return function(e,t,n,r){return mi(t,KM({},"page",n),r,!1)}(0,t,n,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){return bi(t,{ais:e.contextValue,multiIndexContext:e.indexContextValue},"page")},getSearchParameters:function(e,t,n){return e.setPage(XM(t,n,{ais:t.contextValue,multiIndexContext:t.indexContextValue})-1)},getMetadata:function(){return{id:"page"}}});const JM=$M((function(e){let{children:t}=e;return(0,La.jsxs)(qM,{container:!0,justifyContent:"space-between",alignItems:"center",style:{height:"100%"},children:[t,(0,La.jsx)(qM,{item:!0,className:"item-notify-right",style:{minWidth:32}})]})})),eS=JM;var tS=n(4307);const nS=n.p+"static/media/no-image.0792bd463c7917d0b67f4a55a9bc55d9.svg",rS=async(e,t)=>{const{search:n,settings:r}=e,i=n.requestId;return await oS(r,void 0,i,{event:"feedback",data:{success:t}})},iS=async(e,t,n)=>{const{search:r,settings:i}=e;return await oS(i,r.sessionId,r.requestId,{event:"conversion",data:{positions:[t],...n?{product_ids:[n]}:{}}})},oS=async(e,t,n,r)=>{const i=new(_s())(e);if(n)try{await i.sendFeedback({sessionId:t,requestId:n,payload:r}).then((e=>{}))}catch(o){console.log("error sendFeedbackByApi",o)}};var aS=t.forwardRef((function(e,n){var r=e.children,i=e.classes,o=e.className,a=e.collapsedHeight,s=e.collapsedSize,l=void 0===s?"0px":s,u=e.component,c=void 0===u?"div":u,d=e.disableStrictModeCompat,f=void 0!==d&&d,h=e.in,p=e.onEnter,g=e.onEntered,m=e.onEntering,y=e.onExit,v=e.onExited,b=e.onExiting,x=e.style,w=e.timeout,M=void 0===w?ls.p0.standard:w,S=e.TransitionComponent,j=void 0===S?ss:S,N=(0,sa.A)(e,["children","classes","className","collapsedHeight","collapsedSize","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),C=cs(),A=t.useRef(),E=t.useRef(null),D=t.useRef(),k="number"===typeof(a||l)?"".concat(a||l,"px"):a||l;t.useEffect((function(){return function(){clearTimeout(A.current)}}),[]);var O=C.unstable_strictMode&&!f,I=t.useRef(null),_=(0,fa.A)(n,O?I:void 0),P=function(e){return function(t,n){if(e){var r=O?[I.current,t]:[t,n],i=(0,Xa.A)(r,2),o=i[0],a=i[1];void 0===a?e(o):e(o,a)}}},L=P((function(e,t){e.style.height=k,p&&p(e,t)})),z=P((function(e,t){var n=E.current?E.current.clientHeight:0,r=fs({style:x,timeout:M},{mode:"enter"}).duration;if("auto"===M){var i=C.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(i,"ms"),D.current=i}else e.style.transitionDuration="string"===typeof r?r:"".concat(r,"ms");e.style.height="".concat(n,"px"),m&&m(e,t)})),R=P((function(e,t){e.style.height="auto",g&&g(e,t)})),F=P((function(e){var t=E.current?E.current.clientHeight:0;e.style.height="".concat(t,"px"),y&&y(e)})),U=P(v),B=P((function(e){var t=E.current?E.current.clientHeight:0,n=fs({style:x,timeout:M},{mode:"exit"}).duration;if("auto"===M){var r=C.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(r,"ms"),D.current=r}else e.style.transitionDuration="string"===typeof n?n:"".concat(n,"ms");e.style.height=k,b&&b(e)}));return t.createElement(j,(0,T.A)({in:h,onEnter:L,onEntered:R,onEntering:z,onExit:F,onExited:U,onExiting:B,addEndListener:function(e,t){var n=O?e:t;"auto"===M&&(A.current=setTimeout(n,D.current||0))},nodeRef:O?I:void 0,timeout:"auto"===M?null:M},N),(function(e,n){return t.createElement(c,(0,T.A)({className:(0,Za.A)(i.root,i.container,o,{entered:i.entered,exited:!h&&"0px"===k&&i.hidden}[e]),style:(0,T.A)({minHeight:k},x),ref:_},n),t.createElement("div",{className:i.wrapper,ref:E},t.createElement("div",{className:i.wrapperInner},r)))}))}));aS.muiSupportAuto=!0;const sS=(0,Ka.A)((function(e){return{root:{height:0,overflow:"hidden",transition:e.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}}),{name:"MuiCollapse"})(aS);var lS=n(7106);function uS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var cS="(prefers-reduced-motion: reduce)",dS=4,fS=5,hS={CREATED:1,MOUNTED:2,IDLE:3,MOVING:dS,SCROLLING:fS,DRAGGING:6,DESTROYED:7};function pS(e){e.length=0}function gS(e,t,n){return Array.prototype.slice.call(e,t,n)}function mS(e){return e.bind.apply(e,[null].concat(gS(arguments,1)))}var yS=setTimeout,vS=function(){};function bS(e){return requestAnimationFrame(e)}function xS(e,t){return typeof t===e}function wS(e){return!CS(e)&&xS("object",e)}var MS=Array.isArray,SS=mS(xS,"function"),jS=mS(xS,"string"),NS=mS(xS,"undefined");function CS(e){return null===e}function AS(e){try{return e instanceof(e.ownerDocument.defaultView||window).HTMLElement}catch(qi){return!1}}function TS(e){return MS(e)?e:[e]}function ES(e,t){TS(e).forEach(t)}function DS(e,t){return e.indexOf(t)>-1}function kS(e,t){return e.push.apply(e,TS(t)),e}function OS(e,t,n){e&&ES(t,(function(t){t&&e.classList[n?"add":"remove"](t)}))}function IS(e,t){OS(e,jS(t)?t.split(" "):t,!0)}function _S(e,t){ES(t,e.appendChild.bind(e))}function PS(e,t){ES(e,(function(e){var n=(t||e).parentNode;n&&n.insertBefore(e,t)}))}function LS(e,t){return AS(e)&&(e.msMatchesSelector||e.matches).call(e,t)}function zS(e,t){var n=e?gS(e.children):[];return t?n.filter((function(e){return LS(e,t)})):n}function RS(e,t){return t?zS(e,t)[0]:e.firstElementChild}var FS=Object.keys;function US(e,t,n){return e&&(n?FS(e).reverse():FS(e)).forEach((function(n){"__proto__"!==n&&t(e[n],n)})),e}function BS(e){return gS(arguments,1).forEach((function(t){US(t,(function(n,r){e[r]=t[r]}))})),e}function VS(e){return gS(arguments,1).forEach((function(t){US(t,(function(t,n){MS(t)?e[n]=t.slice():wS(t)?e[n]=VS({},wS(e[n])?e[n]:{},t):e[n]=t}))})),e}function QS(e,t){ES(t||FS(e),(function(t){delete e[t]}))}function HS(e,t){ES(e,(function(e){ES(t,(function(t){e&&e.removeAttribute(t)}))}))}function YS(e,t,n){wS(t)?US(t,(function(t,n){YS(e,n,t)})):ES(e,(function(e){CS(n)||""===n?HS(e,t):e.setAttribute(t,String(n))}))}function WS(e,t,n){var r=document.createElement(e);return t&&(jS(t)?IS(r,t):YS(r,t)),n&&_S(n,r),r}function GS(e,t,n){if(NS(n))return getComputedStyle(e)[t];CS(n)||(e.style[t]=""+n)}function qS(e,t){GS(e,"display",t)}function ZS(e){e.setActive&&e.setActive()||e.focus({preventScroll:!0})}function KS(e,t){return e.getAttribute(t)}function XS(e,t){return e&&e.classList.contains(t)}function $S(e){return e.getBoundingClientRect()}function JS(e){ES(e,(function(e){e&&e.parentNode&&e.parentNode.removeChild(e)}))}function ej(e){return RS((new DOMParser).parseFromString(e,"text/html").body)}function tj(e,t){e.preventDefault(),t&&(e.stopPropagation(),e.stopImmediatePropagation())}function nj(e,t){return e&&e.querySelector(t)}function rj(e,t){return t?gS(e.querySelectorAll(t)):[]}function ij(e,t){OS(e,t,!1)}function oj(e){return e.timeStamp}function aj(e){return jS(e)?e:e?e+"px":""}var sj="splide",lj="data-"+sj;function uj(e,t){if(!e)throw new Error("["+sj+"] "+(t||""))}var cj=Math.min,dj=Math.max,fj=Math.floor,hj=Math.ceil,pj=Math.abs;function gj(e,t,n){return pj(e-t)<n}function mj(e,t,n,r){var i=cj(t,n),o=dj(t,n);return r?i<e&&e<o:i<=e&&e<=o}function yj(e,t,n){var r=cj(t,n),i=dj(t,n);return cj(dj(r,e),i)}function vj(e){return+(e>0)-+(e<0)}function bj(e,t){return ES(t,(function(t){e=e.replace("%s",""+t)})),e}function xj(e){return e<10?"0"+e:""+e}var wj={};function Mj(){var e=[];function t(e,t,n){ES(e,(function(e){e&&ES(t,(function(t){t.split(" ").forEach((function(t){var r=t.split(".");n(e,r[0],r[1])}))}))}))}return{bind:function(n,r,i,o){t(n,r,(function(t,n,r){var a="addEventListener"in t,s=a?t.removeEventListener.bind(t,n,i,o):t.removeListener.bind(t,i);a?t.addEventListener(n,i,o):t.addListener(i),e.push([t,n,r,i,s])}))},unbind:function(n,r,i){t(n,r,(function(t,n,r){e=e.filter((function(e){return!!(e[0]!==t||e[1]!==n||e[2]!==r||i&&e[3]!==i)||(e[4](),!1)}))}))},dispatch:function(e,t,n){var r,i=!0;return"function"===typeof CustomEvent?r=new CustomEvent(t,{bubbles:i,detail:n}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,i,!1,n),e.dispatchEvent(r),r},destroy:function(){e.forEach((function(e){e[4]()})),pS(e)}}}var Sj="mounted",jj="ready",Nj="move",Cj="moved",Aj="click",Tj="active",Ej="inactive",Dj="visible",kj="hidden",Oj="refresh",Ij="updated",_j="resize",Pj="resized",Lj="drag",zj="dragging",Rj="dragged",Fj="scroll",Uj="scrolled",Bj="destroy",Vj="arrows:mounted",Qj="arrows:updated",Hj="pagination:mounted",Yj="pagination:updated",Wj="navigation:mounted",Gj="autoplay:play",qj="autoplay:playing",Zj="autoplay:pause",Kj="lazyload:loaded",Xj="sk",$j="sh",Jj="ei";function eN(e){var t=e?e.event.bus:document.createDocumentFragment(),n=Mj();return e&&e.event.on(Bj,n.destroy),BS(n,{bus:t,on:function(e,r){n.bind(t,TS(e).join(" "),(function(e){r.apply(r,MS(e.detail)?e.detail:[])}))},off:mS(n.unbind,t),emit:function(e){n.dispatch(t,e,gS(arguments,1))}})}function tN(e,t,n,r){var i,o,a=Date.now,s=0,l=!0,u=0;function c(){if(!l){if(s=e?cj((a()-i)/e,1):1,n&&n(s),s>=1&&(t(),i=a(),r&&++u>=r))return d();o=bS(c)}}function d(){l=!0}function f(){o&&cancelAnimationFrame(o),s=0,o=0,l=!0}return{start:function(t){t||f(),i=a()-(t?s*e:0),l=!1,o=bS(c)},rewind:function(){i=a(),s=0,n&&n(s)},pause:d,cancel:f,set:function(t){e=t},isPaused:function(){return l}}}var nN="Arrow",rN=nN+"Left",iN=nN+"Right",oN=nN+"Up",aN=nN+"Down",sN="ttb",lN={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[oN,iN],ArrowRight:[aN,rN]};var uN="role",cN="tabindex",dN="aria-",fN=dN+"controls",hN=dN+"current",pN=dN+"selected",gN=dN+"label",mN=dN+"labelledby",yN=dN+"hidden",vN=dN+"orientation",bN=dN+"roledescription",xN=dN+"live",wN=dN+"busy",MN=dN+"atomic",SN=[uN,cN,"disabled",fN,hN,gN,mN,yN,vN,bN],jN=sj+"__",NN="is-",CN=sj,AN=jN+"track",TN=jN+"list",EN=jN+"slide",DN=EN+"--clone",kN=EN+"__container",ON=jN+"arrows",IN=jN+"arrow",_N=IN+"--prev",PN=IN+"--next",LN=jN+"pagination",zN=LN+"__page",RN=jN+"progress"+"__bar",FN=jN+"toggle",UN=jN+"sr",BN=NN+"initialized",VN=NN+"active",QN=NN+"prev",HN=NN+"next",YN=NN+"visible",WN=NN+"loading",GN=NN+"focus-in",qN=NN+"overflow",ZN=[VN,YN,QN,HN,WN,GN,qN],KN={slide:EN,clone:DN,arrows:ON,arrow:IN,prev:_N,next:PN,pagination:LN,page:zN,spinner:jN+"spinner"};var XN="touchstart mousedown",$N="touchmove mousemove",JN="touchend touchcancel mouseup click";var eC="slide",tC="loop",nC="fade";function rC(e,t,n,r){var i,o=eN(e),a=o.on,s=o.emit,l=o.bind,u=e.Components,c=e.root,d=e.options,f=d.isNavigation,h=d.updateOnMove,p=d.i18n,g=d.pagination,m=d.slideFocus,y=u.Direction.resolve,v=KS(r,"style"),b=KS(r,gN),x=n>-1,w=RS(r,"."+kN);function M(){var i=e.splides.map((function(e){var n=e.splide.Components.Slides.getAt(t);return n?n.slide.id:""})).join(" ");YS(r,gN,bj(p.slideX,(x?n:t)+1)),YS(r,fN,i),YS(r,uN,m?"button":""),m&&HS(r,bN)}function S(){i||j()}function j(){if(!i){var n=e.index;!function(){var e=N();e!==XS(r,VN)&&(OS(r,VN,e),YS(r,hN,f&&e||""),s(e?Tj:Ej,C))}(),function(){var t=function(){if(e.is(nC))return N();var t=$S(u.Elements.track),n=$S(r),i=y("left",!0),o=y("right",!0);return fj(t[i])<=hj(n[i])&&fj(n[o])<=hj(t[o])}(),n=!t&&(!N()||x);e.state.is([dS,fS])||YS(r,yN,n||"");YS(rj(r,d.focusableNodes||""),cN,n?-1:""),m&&YS(r,cN,n?-1:0);t!==XS(r,YN)&&(OS(r,YN,t),s(t?Dj:kj,C));if(!t&&document.activeElement===r){var i=u.Slides.getAt(e.index);i&&ZS(i.slide)}}(),OS(r,QN,t===n-1),OS(r,HN,t===n+1)}}function N(){var r=e.index;return r===t||d.cloneStatus&&r===n}var C={index:t,slideIndex:n,slide:r,container:w,isClone:x,mount:function(){x||(r.id=c.id+"-slide"+xj(t+1),YS(r,uN,g?"tabpanel":"group"),YS(r,bN,p.slide),YS(r,gN,b||bj(p.slideLabel,[t+1,e.length]))),l(r,"click",mS(s,Aj,C)),l(r,"keydown",mS(s,Xj,C)),a([Cj,$j,Uj],j),a(Wj,M),h&&a(Nj,S)},destroy:function(){i=!0,o.destroy(),ij(r,ZN),HS(r,SN),YS(r,"style",v),YS(r,gN,b||"")},update:j,style:function(e,t,n){GS(n&&w||r,e,t)},isWithin:function(n,r){var i=pj(n-t);return x||!d.rewind&&!e.is(tC)||(i=cj(i,e.length-i)),i<=r}};return C}var iC=lj+"-interval";var oC={passive:!1,capture:!0};var aC={Spacebar:" ",Right:iN,Left:rN,Up:oN,Down:aN};function sC(e){return e=jS(e)?e:e.key,aC[e]||e}var lC="keydown";var uC=lj+"-lazy",cC=uC+"-srcset",dC="["+uC+"], ["+cC+"]";var fC=[" ","Enter"];var hC=Object.freeze({__proto__:null,Media:function(e,t,n){var r=e.state,i=n.breakpoints||{},o=n.reducedMotion||{},a=Mj(),s=[];function l(e){e&&a.destroy()}function u(e,t){var n=matchMedia(t);a.bind(n,"change",c),s.push([e,n])}function c(){var t=r.is(7),i=n.direction,o=s.reduce((function(e,t){return VS(e,t[1].matches?t[0]:{})}),{});QS(n),d(o),n.destroy?e.destroy("completely"===n.destroy):t?(l(!0),e.mount()):i!==n.direction&&e.refresh()}function d(t,i,o){VS(n,t),i&&VS(Object.getPrototypeOf(n),t),!o&&r.is(1)||e.emit(Ij,n)}return{setup:function(){var e="min"===n.mediaQuery;FS(i).sort((function(t,n){return e?+t-+n:+n-+t})).forEach((function(t){u(i[t],"("+(e?"min":"max")+"-width:"+t+"px)")})),u(o,cS),c()},destroy:l,reduce:function(e){matchMedia(cS).matches&&(e?VS(n,o):QS(n,FS(o)))},set:d}},Direction:function(e,t,n){return{resolve:function(e,t,r){var i="rtl"!==(r=r||n.direction)||t?r===sN?0:-1:1;return lN[e]&&lN[e][i]||e.replace(/width|left|right/i,(function(e,t){var n=lN[e.toLowerCase()][i]||e;return t>0?n.charAt(0).toUpperCase()+n.slice(1):n}))},orient:function(e){return e*("rtl"===n.direction?1:-1)}}},Elements:function(e,t,n){var r,i,o,a=eN(e),s=a.on,l=a.bind,u=e.root,c=n.i18n,d={},f=[],h=[],p=[];function g(){r=v("."+AN),i=RS(r,"."+TN),uj(r&&i,"A track/list element is missing."),kS(f,zS(i,"."+EN+":not(."+DN+")")),US({arrows:ON,pagination:LN,prev:_N,next:PN,bar:RN,toggle:FN},(function(e,t){d[t]=v("."+e)})),BS(d,{root:u,track:r,list:i,slides:f}),function(){var e=u.id||function(e){return""+e+xj(wj[e]=(wj[e]||0)+1)}(sj),t=n.role;u.id=e,r.id=r.id||e+"-track",i.id=i.id||e+"-list",!KS(u,uN)&&"SECTION"!==u.tagName&&t&&YS(u,uN,t);YS(u,bN,c.carousel),YS(i,uN,"presentation")}(),y()}function m(e){var t=SN.concat("style");pS(f),ij(u,h),ij(r,p),HS([r,i],t),HS(u,e?t:["style",bN])}function y(){ij(u,h),ij(r,p),h=b(CN),p=b(AN),IS(u,h),IS(r,p),YS(u,gN,n.label),YS(u,mN,n.labelledby)}function v(e){var t=nj(u,e);return t&&function(e,t){if(SS(e.closest))return e.closest(t);for(var n=e;n&&1===n.nodeType&&!LS(n,t);)n=n.parentElement;return n}(t,"."+CN)===u?t:void 0}function b(e){return[e+"--"+n.type,e+"--"+n.direction,n.drag&&e+"--draggable",n.isNavigation&&e+"--nav",e===CN&&VN]}return BS(d,{setup:g,mount:function(){s(Oj,m),s(Oj,g),s(Ij,y),l(document,XN+" keydown",(function(e){o="keydown"===e.type}),{capture:!0}),l(u,"focusin",(function(){OS(u,GN,!!o)}))},destroy:m})},Slides:function(e,t,n){var r=eN(e),i=r.on,o=r.emit,a=r.bind,s=t.Elements,l=s.slides,u=s.list,c=[];function d(){l.forEach((function(e,t){h(e,t,-1)}))}function f(){g((function(e){e.destroy()})),pS(c)}function h(t,n,r){var i=rC(e,n,r,t);i.mount(),c.push(i),c.sort((function(e,t){return e.index-t.index}))}function p(e){return e?m((function(e){return!e.isClone})):c}function g(e,t){p(t).forEach(e)}function m(e){return c.filter(SS(e)?e:function(t){return jS(e)?LS(t.slide,e):DS(TS(e),t.index)})}return{mount:function(){d(),i(Oj,f),i(Oj,d)},destroy:f,update:function(){g((function(e){e.update()}))},register:h,get:p,getIn:function(e){var r=t.Controller,i=r.toIndex(e),o=r.hasFocus()?1:n.perPage;return m((function(e){return mj(e.index,i,i+o-1)}))},getAt:function(e){return m(e)[0]},add:function(e,t){ES(e,(function(e){if(jS(e)&&(e=ej(e)),AS(e)){var r=l[t];r?PS(e,r):_S(u,e),IS(e,n.classes.slide),function(e,t){var n=rj(e,"img"),r=n.length;r?n.forEach((function(e){a(e,"load error",(function(){--r||t()}))})):t()}(e,mS(o,_j))}})),o(Oj)},remove:function(e){JS(m(e).map((function(e){return e.slide}))),o(Oj)},forEach:g,filter:m,style:function(e,t,n){g((function(r){r.style(e,t,n)}))},getLength:function(e){return e?l.length:c.length},isEnough:function(){return c.length>n.perPage}}},Layout:function(e,t,n){var r,i,o,a=eN(e),s=a.on,l=a.bind,u=a.emit,c=t.Slides,d=t.Direction.resolve,f=t.Elements,h=f.root,p=f.track,g=f.list,m=c.getAt,y=c.style;function v(){r=n.direction===sN,GS(h,"maxWidth",aj(n.width)),GS(p,d("paddingLeft"),x(!1)),GS(p,d("paddingRight"),x(!0)),b(!0)}function b(e){var t=$S(h);(e||i.width!==t.width||i.height!==t.height)&&(GS(p,"height",function(){var e="";r&&(uj(e=w(),"height or heightRatio is missing."),e="calc("+e+" - "+x(!1)+" - "+x(!0)+")");return e}()),y(d("marginRight"),aj(n.gap)),y("width",n.autoWidth?null:aj(n.fixedWidth)||(r?"":M())),y("height",aj(n.fixedHeight)||(r?n.autoHeight?null:M():w()),!0),i=t,u(Pj),o!==(o=T())&&(OS(h,qN,o),u("overflow",o)))}function x(e){var t=n.padding,r=d(e?"right":"left");return t&&aj(t[r]||(wS(t)?0:t))||"0px"}function w(){return aj(n.height||$S(g).width*n.heightRatio)}function M(){var e=aj(n.gap);return"calc((100%"+(e&&" + "+e)+")/"+(n.perPage||1)+(e&&" - "+e)+")"}function S(){return $S(g)[d("width")]}function j(e,t){var n=m(e||0);return n?$S(n.slide)[d("width")]+(t?0:A()):0}function N(e,t){var n=m(e);if(n){var r=$S(n.slide)[d("right")],i=$S(g)[d("left")];return pj(r-i)+(t?0:A())}return 0}function C(t){return N(e.length-1)-N(0)+j(0,t)}function A(){var e=m(0);return e&&parseFloat(GS(e.slide,d("marginRight")))||0}function T(){return e.is(nC)||C(!0)>S()}return{mount:function(){v(),l(window,"resize load",function(e,t){var n=tN(t||0,e,null,1);return function(){n.isPaused()&&n.start()}}(mS(u,_j))),s([Ij,Oj],v),s(_j,b)},resize:b,listSize:S,slideSize:j,sliderSize:C,totalSize:N,getPadding:function(e){return parseFloat(GS(p,d("padding"+(e?"Right":"Left"))))||0},isOverflow:T}},Clones:function(e,t,n){var r,i=eN(e),o=i.on,a=t.Elements,s=t.Slides,l=t.Direction.resolve,u=[];function c(){o(Oj,d),o([Ij,_j],h),(r=p())&&(!function(t){var r=s.get().slice(),i=r.length;if(i){for(;r.length<t;)kS(r,r);kS(r.slice(-t),r.slice(0,t)).forEach((function(o,l){var c=l<t,d=function(t,r){var i=t.cloneNode(!0);return IS(i,n.classes.clone),i.id=e.root.id+"-clone"+xj(r+1),i}(o.slide,l);c?PS(d,r[0].slide):_S(a.list,d),kS(u,d),s.register(d,l-t+(c?0:i),o.index)}))}}(r),t.Layout.resize(!0))}function d(){f(),c()}function f(){JS(u),pS(u),i.destroy()}function h(){var e=p();r!==e&&(r<e||!e)&&i.emit(Oj)}function p(){var r=n.clones;if(e.is(tC)){if(NS(r)){var i=n[l("fixedWidth")]&&t.Layout.slideSize(0);r=i&&hj($S(a.track)[l("width")]/i)||n[l("autoWidth")]&&e.length||2*n.perPage}}else r=0;return r}return{mount:c,destroy:f}},Move:function(e,t,n){var r,i=eN(e),o=i.on,a=i.emit,s=e.state.set,l=t.Layout,u=l.slideSize,c=l.getPadding,d=l.totalSize,f=l.listSize,h=l.sliderSize,p=t.Direction,g=p.resolve,m=p.orient,y=t.Elements,v=y.list,b=y.track;function x(){t.Controller.isBusy()||(t.Scroll.cancel(),w(e.index),t.Slides.update())}function w(e){M(C(e,!0))}function M(n,r){if(!e.is(nC)){var i=r?n:function(n){if(e.is(tC)){var r=N(n),i=r>t.Controller.getEnd();(r<0||i)&&(n=S(n,i))}return n}(n);GS(v,"transform","translate"+g("X")+"("+i+"px)"),n!==i&&a($j)}}function S(e,t){var n=e-T(t),r=h();return e-=m(r*(hj(pj(n)/r)||1))*(t?1:-1)}function j(){M(A(),!0),r.cancel()}function N(e){for(var n=t.Slides.get(),r=0,i=1/0,o=0;o<n.length;o++){var a=n[o].index,s=pj(C(a,!0)-e);if(!(s<=i))break;i=s,r=a}return r}function C(t,r){var i=m(d(t-1)-function(e){var t=n.focus;return"center"===t?(f()-u(e,!0))/2:+t*u(e)||0}(t));return r?function(t){n.trimSpace&&e.is(eC)&&(t=yj(t,0,m(h(!0)-f())));return t}(i):i}function A(){var e=g("left");return $S(v)[e]-$S(b)[e]+m(c(!1))}function T(e){return C(e?t.Controller.getEnd():0,!!n.trimSpace)}return{mount:function(){r=t.Transition,o([Sj,Pj,Ij,Oj],x)},move:function(e,t,n,i){e!==t&&function(e){var t=m(S(A(),e));return e?t>=0:t<=v[g("scrollWidth")]-$S(b)[g("width")]}(e>n)&&(j(),M(S(A(),e>n),!0)),s(dS),a(Nj,t,n,e),r.start(t,(function(){s(3),a(Cj,t,n,e),i&&i()}))},jump:w,translate:M,shift:S,cancel:j,toIndex:N,toPosition:C,getPosition:A,getLimit:T,exceededLimit:function(e,t){t=NS(t)?A():t;var n=!0!==e&&m(t)<m(T(!1)),r=!1!==e&&m(t)>m(T(!0));return n||r},reposition:x}},Controller:function(e,t,n){var r,i,o,a,s=eN(e),l=s.on,u=s.emit,c=t.Move,d=c.getPosition,f=c.getLimit,h=c.toPosition,p=t.Slides,g=p.isEnough,m=p.getLength,y=n.omitEnd,v=e.is(tC),b=e.is(eC),x=mS(C,!1),w=mS(C,!0),M=n.start||0,S=M;function j(){i=m(!0),o=n.perMove,a=n.perPage,r=E();var e=yj(M,0,y?r:i-1);e!==M&&(M=e,c.reposition())}function N(){r!==E()&&u(Jj)}function C(e,t){var n=o||(I()?1:a),i=A(M+n*(e?-1:1),M,!(o||I()));return-1===i&&b&&!gj(d(),f(!e),1)?e?0:r:t?i:T(i)}function A(t,s,l){if(g()||I()){var u=function(t){if(b&&"move"===n.trimSpace&&t!==M)for(var r=d();r===h(t,!0)&&mj(t,0,e.length-1,!n.rewind);)t<M?--t:++t;return t}(t);u!==t&&(s=t,t=u,l=!1),t<0||t>r?t=o||!mj(0,t,s,!0)&&!mj(r,s,t,!0)?v?l?t<0?-(i%a||a):i:t:n.rewind?t<0?r:0:-1:D(k(t)):l&&t!==s&&(t=D(k(s)+(t<s?-1:1)))}else t=-1;return t}function T(e){return v?(e+i)%i||0:e}function E(){for(var e=i-(I()||v&&o?1:a);y&&e-- >0;)if(h(i-1,!0)!==h(e,!0)){e++;break}return yj(e,0,i-1)}function D(e){return yj(I()?e:a*e,0,r)}function k(e){return I()?cj(e,r):fj((e>=r?i-1:e)/a)}function O(e){e!==M&&(S=M,M=e)}function I(){return!NS(n.focus)||n.isNavigation}function _(){return e.state.is([dS,fS])&&!!n.waitForTransition}return{mount:function(){j(),l([Ij,Oj,Jj],j),l(Pj,N)},go:function(e,t,n){if(!_()){var i=function(e){var t=M;if(jS(e)){var n=e.match(/([+\-<>])(\d+)?/)||[],i=n[1],o=n[2];"+"===i||"-"===i?t=A(M+ +(""+i+(+o||1)),M):">"===i?t=o?D(+o):x(!0):"<"===i&&(t=w(!0))}else t=v?e:yj(e,0,r);return t}(e),o=T(i);o>-1&&(t||o!==M)&&(O(o),c.move(i,o,S,n))}},scroll:function(e,n,i,o){t.Scroll.scroll(e,n,i,(function(){var e=T(c.toIndex(d()));O(y?cj(e,r):e),o&&o()}))},getNext:x,getPrev:w,getAdjacent:C,getEnd:E,setIndex:O,getIndex:function(e){return e?S:M},toIndex:D,toPage:k,toDest:function(e){var t=c.toIndex(e);return b?yj(t,0,r):t},hasFocus:I,isBusy:_}},Arrows:function(e,t,n){var r,i,o=eN(e),a=o.on,s=o.bind,l=o.emit,u=n.classes,c=n.i18n,d=t.Elements,f=t.Controller,h=d.arrows,p=d.track,g=h,m=d.prev,y=d.next,v={};function b(){!function(){var e=n.arrows;!e||m&&y||(g=h||WS("div",u.arrows),m=S(!0),y=S(!1),r=!0,_S(g,[m,y]),!h&&PS(g,p));m&&y&&(BS(v,{prev:m,next:y}),qS(g,e?"":"none"),IS(g,i=ON+"--"+n.direction),e&&(a([Sj,Cj,Oj,Uj,Jj],j),s(y,"click",mS(M,">")),s(m,"click",mS(M,"<")),j(),YS([m,y],fN,p.id),l(Vj,m,y)))}(),a(Ij,x)}function x(){w(),b()}function w(){o.destroy(),ij(g,i),r?(JS(h?[m,y]:g),m=y=null):HS([m,y],SN)}function M(e){f.go(e,!0)}function S(e){return ej('<button class="'+u.arrow+" "+(e?u.prev:u.next)+'" type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40" focusable="false"><path d="'+(n.arrowPath||"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z")+'" />')}function j(){if(m&&y){var t=e.index,n=f.getPrev(),r=f.getNext(),i=n>-1&&t<n?c.last:c.prev,o=r>-1&&t>r?c.first:c.next;m.disabled=n<0,y.disabled=r<0,YS(m,gN,i),YS(y,gN,o),l(Qj,m,y,n,r)}}return{arrows:v,mount:b,destroy:w,update:j}},Autoplay:function(e,t,n){var r,i,o=eN(e),a=o.on,s=o.bind,l=o.emit,u=tN(n.interval,e.go.bind(e,">"),(function(e){var t=d.bar;t&&GS(t,"width",100*e+"%"),l(qj,e)})),c=u.isPaused,d=t.Elements,f=t.Elements,h=f.root,p=f.toggle,g=n.autoplay,m="pause"===g;function y(){c()&&t.Slides.isEnough()&&(u.start(!n.resetProgress),i=r=m=!1,x(),l(Gj))}function v(e){void 0===e&&(e=!0),m=!!e,x(),c()||(u.pause(),l(Zj))}function b(){m||(r||i?v(!1):y())}function x(){p&&(OS(p,VN,!m),YS(p,gN,n.i18n[m?"play":"pause"]))}function w(e){var r=t.Slides.getAt(e);u.set(r&&+KS(r.slide,iC)||n.interval)}return{mount:function(){g&&(!function(){n.pauseOnHover&&s(h,"mouseenter mouseleave",(function(e){r="mouseenter"===e.type,b()}));n.pauseOnFocus&&s(h,"focusin focusout",(function(e){i="focusin"===e.type,b()}));p&&s(p,"click",(function(){m?y():v(!0)}));a([Nj,Fj,Oj],u.rewind),a(Nj,w)}(),p&&YS(p,fN,d.track.id),m||y(),x())},destroy:u.cancel,play:y,pause:v,isPaused:c}},Cover:function(e,t,n){var r=eN(e).on;function i(e){t.Slides.forEach((function(t){var n=RS(t.container||t.slide,"img");n&&n.src&&o(e,n,t)}))}function o(e,t,n){n.style("background",e?'center/cover no-repeat url("'+t.src+'")':"",!0),qS(t,e?"none":"")}return{mount:function(){n.cover&&(r(Kj,mS(o,!0)),r([Sj,Ij,Oj],mS(i,!0)))},destroy:mS(i,!1)}},Scroll:function(e,t,n){var r,i,o=eN(e),a=o.on,s=o.emit,l=e.state.set,u=t.Move,c=u.getPosition,d=u.getLimit,f=u.exceededLimit,h=u.translate,p=e.is(eC),g=1;function m(e,n,o,a,d){var h=c();if(b(),o&&(!p||!f())){var m=t.Layout.sliderSize(),x=vj(e)*m*fj(pj(e)/m)||0;e=u.toPosition(t.Controller.toDest(e%m))+x}var w=gj(h,e,1);g=1,n=w?0:n||dj(pj(e-h)/1.5,800),i=a,r=tN(n,y,mS(v,h,e,d),1),l(fS),s(Fj),r.start()}function y(){l(3),i&&i(),s(Uj)}function v(e,t,r,o){var a=c(),s=e+(t-e)*function(e){var t=n.easingFunc;return t?t(e):1-Math.pow(1-e,4)}(o),l=(s-a)*g;h(a+l),p&&!r&&f()&&(g*=.6,pj(l)<10&&m(d(f(!0)),600,!1,i,!0))}function b(){r&&r.cancel()}function x(){r&&!r.isPaused()&&(b(),y())}return{mount:function(){a(Nj,b),a([Ij,Oj],x)},destroy:b,scroll:m,cancel:x}},Drag:function(e,t,n){var r,i,o,a,s,l,u,c,d=eN(e),f=d.on,h=d.emit,p=d.bind,g=d.unbind,m=e.state,y=t.Move,v=t.Scroll,b=t.Controller,x=t.Elements.track,w=t.Media.reduce,M=t.Direction,S=M.resolve,j=M.orient,N=y.getPosition,C=y.exceededLimit,A=!1;function T(){var e=n.drag;F(!e),a="free"===e}function E(e){if(l=!1,!u){var t=R(e);!function(e){var t=n.noDrag;return!LS(e,"."+zN+", ."+IN)&&(!t||!LS(e,t))}(e.target)||!t&&e.button||(b.isBusy()?tj(e,!0):(c=t?x:window,s=m.is([dS,fS]),o=null,p(c,$N,D,oC),p(c,JN,k,oC),y.cancel(),v.cancel(),I(e)))}}function D(t){if(m.is(6)||(m.set(6),h(Lj)),t.cancelable)if(s){y.translate(r+_(t)/(A&&e.is(eC)?5:1));var i=P(t)>200,o=A!==(A=C());(i||o)&&I(t),l=!0,h(zj),tj(t)}else(function(e){return pj(_(e))>pj(_(e,!0))})(t)&&(s=function(e){var t=n.dragMinThreshold,r=wS(t),i=r&&t.mouse||0,o=(r?t.touch:+t)||10;return pj(_(e))>(R(e)?o:i)}(t),tj(t))}function k(r){m.is(6)&&(m.set(3),h(Rj)),s&&(!function(r){var i=function(t){if(e.is(tC)||!A){var n=P(t);if(n&&n<200)return _(t)/n}return 0}(r),o=function(e){return N()+vj(e)*cj(pj(e)*(n.flickPower||600),a?1/0:t.Layout.listSize()*(n.flickMaxPages||1))}(i),s=n.rewind&&n.rewindByDrag;w(!1),a?b.scroll(o,0,n.snap):e.is(nC)?b.go(j(vj(i))<0?s?"<":"-":s?">":"+"):e.is(eC)&&A&&s?b.go(C(!0)?">":"<"):b.go(b.toDest(o),!0);w(!0)}(r),tj(r)),g(c,$N,D),g(c,JN,k),s=!1}function O(e){!u&&l&&tj(e,!0)}function I(e){o=i,i=e,r=N()}function _(e,t){return z(e,t)-z(L(e),t)}function P(e){return oj(e)-oj(L(e))}function L(e){return i===e&&o||i}function z(e,t){return(R(e)?e.changedTouches[0]:e)["page"+S(t?"Y":"X")]}function R(e){return"undefined"!==typeof TouchEvent&&e instanceof TouchEvent}function F(e){u=e}return{mount:function(){p(x,$N,vS,oC),p(x,JN,vS,oC),p(x,XN,E,oC),p(x,"click",O,{capture:!0}),p(x,"dragstart",tj),f([Sj,Ij],T)},disable:F,isDragging:function(){return s}}},Keyboard:function(e,t,n){var r,i,o=eN(e),a=o.on,s=o.bind,l=o.unbind,u=e.root,c=t.Direction.resolve;function d(){var e=n.keyboard;e&&(r="global"===e?window:u,s(r,lC,p))}function f(){l(r,lC)}function h(){var e=i;i=!0,yS((function(){i=e}))}function p(t){if(!i){var n=sC(t);n===c(rN)?e.go("<"):n===c(iN)&&e.go(">")}}return{mount:function(){d(),a(Ij,f),a(Ij,d),a(Nj,h)},destroy:f,disable:function(e){i=e}}},LazyLoad:function(e,t,n){var r=eN(e),i=r.on,o=r.off,a=r.bind,s=r.emit,l="sequential"===n.lazyLoad,u=[Cj,Uj],c=[];function d(){pS(c),t.Slides.forEach((function(e){rj(e.slide,dC).forEach((function(t){var r=KS(t,uC),i=KS(t,cC);if(r!==t.src||i!==t.srcset){var o=n.classes.spinner,a=t.parentElement,s=RS(a,"."+o)||WS("span",o,a);c.push([t,e,s]),t.src||qS(t,"none")}}))})),l?g():(o(u),i(u,f),f())}function f(){c=c.filter((function(t){var r=n.perPage*((n.preloadPages||1)+1)-1;return!t[1].isWithin(e.index,r)||h(t)})),c.length||o(u)}function h(e){var t=e[0];IS(e[1].slide,WN),a(t,"load error",mS(p,e)),YS(t,"src",KS(t,uC)),YS(t,"srcset",KS(t,cC)),HS(t,uC),HS(t,cC)}function p(e,t){var n=e[0],r=e[1];ij(r.slide,WN),"error"!==t.type&&(JS(e[2]),qS(n,""),s(Kj,n,r),s(_j)),l&&g()}function g(){c.length&&h(c.shift())}return{mount:function(){n.lazyLoad&&(d(),i(Oj,d))},destroy:mS(pS,c),check:f}},Pagination:function(e,t,n){var r,i,o=eN(e),a=o.on,s=o.emit,l=o.bind,u=t.Slides,c=t.Elements,d=t.Controller,f=d.hasFocus,h=d.getIndex,p=d.go,g=t.Direction.resolve,m=c.pagination,y=[];function v(){r&&(JS(m?gS(r.children):r),ij(r,i),pS(y),r=null),o.destroy()}function b(e){p(">"+e,!0)}function x(e,t){var n=y.length,r=sC(t),i=w(),o=-1;r===g(iN,!1,i)?o=++e%n:r===g(rN,!1,i)?o=(--e+n)%n:"Home"===r?o=0:"End"===r&&(o=n-1);var a=y[o];a&&(ZS(a.button),p(">"+o),tj(t,!0))}function w(){return n.paginationDirection||n.direction}function M(e){return y[d.toPage(e)]}function S(){var e=M(h(!0)),t=M(h());if(e){var n=e.button;ij(n,VN),HS(n,pN),YS(n,cN,-1)}if(t){var i=t.button;IS(i,VN),YS(i,pN,!0),YS(i,cN,"")}s(Yj,{list:r,items:y},e,t)}return{items:y,mount:function t(){v(),a([Ij,Oj,Jj],t);var o=n.pagination;m&&qS(m,o?"":"none"),o&&(a([Nj,Fj,Uj],S),function(){var t=e.length,o=n.classes,a=n.i18n,s=n.perPage,h=f()?d.getEnd()+1:hj(t/s);IS(r=m||WS("ul",o.pagination,c.track.parentElement),i=LN+"--"+w()),YS(r,uN,"tablist"),YS(r,gN,a.select),YS(r,vN,w()===sN?"vertical":"");for(var p=0;p<h;p++){var g=WS("li",null,r),v=WS("button",{class:o.page,type:"button"},g),M=u.getIn(p).map((function(e){return e.slide.id})),S=!f()&&s>1?a.pageX:a.slideX;l(v,"click",mS(b,p)),n.paginationKeyboard&&l(v,"keydown",mS(x,p)),YS(g,uN,"presentation"),YS(v,uN,"tab"),YS(v,fN,M.join(" ")),YS(v,gN,bj(S,p+1)),YS(v,cN,-1),y.push({li:g,button:v,page:p})}}(),S(),s(Hj,{list:r,items:y},M(e.index)))},destroy:v,getAt:M,update:S}},Sync:function(e,t,n){var r=n.isNavigation,i=n.slideFocus,o=[];function a(){e.splides.forEach((function(t){t.isParent||(l(e,t.splide),l(t.splide,e))})),r&&function(){var t=eN(e),n=t.on;n(Aj,c),n(Xj,d),n([Sj,Ij],u),o.push(t),t.emit(Wj,e.splides)}()}function s(){o.forEach((function(e){e.destroy()})),pS(o)}function l(e,t){var n=eN(e);n.on(Nj,(function(e,n,r){t.go(t.is(tC)?r:e)})),o.push(n)}function u(){YS(t.Elements.list,vN,n.direction===sN?"vertical":"")}function c(t){e.go(t.index)}function d(e,t){DS(fC,sC(t))&&(c(e),tj(t))}return{setup:mS(t.Media.set,{slideFocus:NS(i)?r:i},!0),mount:a,destroy:s,remount:function(){s(),a()}}},Wheel:function(e,t,n){var r=eN(e).bind,i=0;function o(r){if(r.cancelable){var o=r.deltaY,a=o<0,s=oj(r),l=n.wheelMinThreshold||0,u=n.wheelSleep||0;pj(o)>l&&s-i>u&&(e.go(a?"<":">"),i=s),function(r){return!n.releaseWheel||e.state.is(dS)||-1!==t.Controller.getAdjacent(r)}(a)&&tj(r)}}return{mount:function(){n.wheel&&r(t.Elements.track,"wheel",o,oC)}}},Live:function(e,t,n){var r=eN(e).on,i=t.Elements.track,o=n.live&&!n.isNavigation,a=WS("span",UN),s=tN(90,mS(l,!1));function l(e){YS(i,wN,e),e?(_S(i,a),s.start()):(JS(a),s.cancel())}function u(e){o&&YS(i,xN,e?"off":"polite")}return{mount:function(){o&&(u(!t.Autoplay.isPaused()),YS(i,MN,!0),a.textContent="\u2026",r(Gj,mS(u,!0)),r(Zj,mS(u,!1)),r([Cj,Uj],mS(l,!0)))},disable:u,destroy:function(){HS(i,[xN,MN,wN]),JS(a)}}}}),pC={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:KN,i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function gC(e,t,n){var r=t.Slides;function i(){r.forEach((function(e){e.style("transform","translateX(-"+100*e.index+"%)")}))}return{mount:function(){eN(e).on([Sj,Oj],i)},start:function(e,t){r.style("transition","opacity "+n.speed+"ms "+n.easing),yS(t)},cancel:vS}}function mC(e,t,n){var r,i=t.Move,o=t.Controller,a=t.Scroll,s=t.Elements.list,l=mS(GS,s,"transition");function u(){l(""),a.cancel()}return{mount:function(){eN(e).bind(s,"transitionend",(function(e){e.target===s&&r&&(u(),r())}))},start:function(t,s){var u=i.toPosition(t,!0),c=i.getPosition(),d=function(t){var r=n.rewindSpeed;if(e.is(eC)&&r){var i=o.getIndex(!0),a=o.getEnd();if(0===i&&t>=a||i>=a&&0===t)return r}return n.speed}(t);pj(u-c)>=1&&d>=1?n.useScroll?a.scroll(u,d,!1,s):(l("transform "+d+"ms "+n.easing),i.translate(u,!0),r=s):(i.jump(t),s())},cancel:u}}var yC=function(){function e(t,n){this.event=eN(),this.Components={},this.state=function(e){var t=e;return{set:function(e){t=e},is:function(e){return DS(TS(e),t)}}}(1),this.splides=[],this._o={},this._E={};var r=jS(t)?nj(document,t):t;uj(r,r+" is invalid."),this.root=r,n=VS({label:KS(r,gN)||"",labelledby:KS(r,mN)||""},pC,e.defaults,n||{});try{VS(n,JSON.parse(KS(r,lj)))}catch(qi){uj(!1,"Invalid JSON")}this._o=Object.create(VS({},n))}var t,n,r,i=e.prototype;return i.mount=function(e,t){var n=this,r=this.state,i=this.Components;return uj(r.is([1,7]),"Already mounted!"),r.set(1),this._C=i,this._T=t||this._T||(this.is(nC)?gC:mC),this._E=e||this._E,US(BS({},hC,this._E,{Transition:this._T}),(function(e,t){var r=e(n,i,n._o);i[t]=r,r.setup&&r.setup()})),US(i,(function(e){e.mount&&e.mount()})),this.emit(Sj),IS(this.root,BN),r.set(3),this.emit(jj),this},i.sync=function(e){return this.splides.push({splide:e}),e.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this._C.Sync.remount(),e.Components.Sync.remount()),this},i.go=function(e){return this._C.Controller.go(e),this},i.on=function(e,t){return this.event.on(e,t),this},i.off=function(e){return this.event.off(e),this},i.emit=function(e){var t;return(t=this.event).emit.apply(t,[e].concat(gS(arguments,1))),this},i.add=function(e,t){return this._C.Slides.add(e,t),this},i.remove=function(e){return this._C.Slides.remove(e),this},i.is=function(e){return this._o.type===e},i.refresh=function(){return this.emit(Oj),this},i.destroy=function(e){void 0===e&&(e=!0);var t=this.event,n=this.state;return n.is(1)?eN(this).on(jj,this.destroy.bind(this,e)):(US(this._C,(function(t){t.destroy&&t.destroy(e)}),!0),t.emit(Bj),t.destroy(),e&&pS(this.splides),n.set(7)),this},t=e,(n=[{key:"options",get:function(){return this._o},set:function(e){this._C.Media.set(e,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}])&&uS(t.prototype,n),r&&uS(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),vC=yC;vC.defaults={},vC.STATES=hS;var bC=[[Sj,"onMounted"],[jj,"onReady"],[Nj,"onMove"],[Cj,"onMoved"],[Aj,"onClick"],[Tj,"onActive"],[Ej,"onInactive"],[Dj,"onVisible"],[kj,"onHidden"],[Oj,"onRefresh"],[Ij,"onUpdated"],[_j,"onResize"],[Pj,"onResized"],[Lj,"onDrag"],[zj,"onDragging"],[Rj,"onDragged"],[Fj,"onScroll"],[Uj,"onScrolled"],[Bj,"onDestroy"],[Vj,"onArrowsMounted"],[Qj,"onArrowsUpdated"],[Hj,"onPaginationMounted"],[Yj,"onPaginationUpdated"],[Wj,"onNavigationMounted"],[Gj,"onAutoplayPlay"],[qj,"onAutoplayPlaying"],[Zj,"onAutoplayPause"],[Kj,"onLazyLoadLoaded"]];function xC(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}function wC(e){return null!==e&&"object"===typeof e}function MC(e,t){if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&!e.some(((e,n)=>!MC(e,t[n])));if(wC(e)&&wC(t)){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&!n.some((n=>!Object.prototype.hasOwnProperty.call(t,n)||!MC(e[n],t[n])))}return e===t}function SC(e,t){const n=e;return function(e,t){if(e){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=n[r];if("__proto__"!==i&&!1===t(e[i],i))break}}}(t,((e,t)=>{Array.isArray(e)?n[t]=e.slice():wC(e)?n[t]=SC(wC(n[t])?n[t]:{},e):n[t]=e})),n}var jC=e=>{let{children:n,className:r,...i}=e;return t.createElement("div",{className:xC("splide__track",r),...i},t.createElement("ul",{className:"splide__list"},n))},NC=class extends t.Component{constructor(){super(...arguments),this.splideRef=t.createRef(),this.slides=[]}componentDidMount(){const{options:e,extensions:t,transition:n}=this.props,{current:r}=this.splideRef;r&&(this.splide=new vC(r,e),this.bind(this.splide),this.splide.mount(t,n),this.options=SC({},e||{}),this.slides=this.getSlides())}componentWillUnmount(){this.splide&&(this.splide.destroy(),this.splide=void 0),this.options=void 0,this.slides.length=0}componentDidUpdate(){if(!this.splide)return;const{options:e}=this.props;e&&!MC(this.options,e)&&(this.splide.options=e,this.options=SC({},e));const t=this.getSlides();var n,r;n=this.slides,r=t,(n.length!==r.length||n.some(((e,t)=>e!==r[t])))&&(this.splide.refresh(),this.slides=t)}sync(e){var t;null==(t=this.splide)||t.sync(e)}go(e){var t;null==(t=this.splide)||t.go(e)}getSlides(){var e;if(this.splide){const t=null==(e=this.splide.Components.Elements)?void 0:e.list.children;return t&&Array.prototype.slice.call(t)||[]}return[]}bind(e){bC.forEach((t=>{let[n,r]=t;const i=this.props[r];"function"===typeof i&&e.on(n,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];i(e,...n)}))}))}omit(e,t){return t.forEach((t=>{Object.prototype.hasOwnProperty.call(e,t)&&delete e[t]})),e}render(){const{className:e,tag:n="div",hasTrack:r=!0,children:i,...o}=this.props;return t.createElement(n,{className:xC("splide",e),ref:this.splideRef,...this.omit(o,["options",...bC.map((e=>e[1]))])},r?t.createElement(jC,null,i):i)}},CC=e=>{let{children:n,className:r,...i}=e;return t.createElement("li",{className:xC("splide__slide",r),...i},n)};const AC=e=>{let{imgItem:n,setSelectedImage:r}=e;const i=(0,Qe.useMediaQuery)({query:"(max-width: 776px)"}),o=(0,t.useRef)(null),a=(0,t.useRef)(null),s=(0,t.useMemo)((()=>{const e=75+58*n.length,t=i?240:460;return e<t?e:t}),[n.length,i]),l=(0,t.useMemo)((()=>({type:"slide",perPage:1,perMove:1,gap:"1rem",pagination:!1,arrows:!1})),[]),u=(0,t.useMemo)((()=>({type:"slide",rewind:!0,gap:"1rem",pagination:!1,fixedWidth:40,fixedHeight:40,cover:!0,focus:"center",isNavigation:!0,arrows:n.length>1,width:s})),[n.length,s]),c=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return n.map((t=>(0,La.jsx)(CC,{className:e?"":"img-container",children:(0,La.jsx)("img",{style:{objectFit:"contain",height:"100%"},alt:"preview",src:t.url})},t.url)))};return t.useEffect((()=>{var e;o.current&&a.current&&null!==(e=a.current)&&void 0!==e&&e.splide&&o.current.sync(a.current.splide)}),[]),(0,La.jsxs)(La.Fragment,{children:[(0,La.jsx)(NC,{onActive:e=>{var t,n,i;r(null===e||void 0===e||null===(t=e.root)||void 0===t||null===(n=t.querySelector("li.is-active"))||void 0===n||null===(i=n.querySelector("img"))||void 0===i?void 0:i.src)},options:l,ref:o,style:{maxWidth:"100%",height:i?"80%":""},children:c()}),(0,La.jsx)("div",{className:"thumbs-list",children:(0,La.jsx)(NC,{options:u,ref:a,children:c(!0)})})]})};var TC=n(1723);const EC=function(e){const{title:t,value:n,padding:r=e.padding||"4px 16px",isTitleVisible:i="boolean"!==typeof e.isTitleVisible||e.isTitleVisible}=e;return(0,La.jsxs)("div",{className:"item-attribute",style:{display:"flex",flexDirection:"column",justifyContent:"center",borderRadius:2,height:"36px",backgroundColor:e.backgroundColor||"#E0E0E0",padding:r},children:[i?(0,La.jsx)(fl,{style:{color:"#2B2C46",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},className:"text-f12 fw-600",children:t}):"",(0,La.jsx)(Iu,{title:n,placement:"top",arrow:!0,disableHoverListener:!n,children:(0,La.jsx)(fl,{style:{color:"#2B2C46",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},className:"text-f12 fw-400",children:n||"-"})})]})},DC=()=>(0,La.jsxs)("svg",{width:150,height:150,viewBox:"0 0 150 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"loading-spinner",children:[(0,La.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M75 150C116.421 150 150 116.421 150 75C150 33.5787 116.421 1.31134e-05 75 1.31134e-05C33.5787 1.31134e-05 1.31134e-05 33.5787 1.31134e-05 75C1.31134e-05 116.421 33.5787 150 75 150ZM75 145C113.66 145 145 113.66 145 75C145 36.3401 113.66 5.00001 75 5.00001C36.3401 5.00001 5.00001 36.3401 5.00001 75C5.00001 113.66 36.3401 145 75 145Z",fill:"url(#paint0_linear_3392_14489)"}),(0,La.jsx)("defs",{children:(0,La.jsxs)("linearGradient",{id:"paint0_linear_3392_14489",x1:75,y1:0,x2:75,y2:150,gradientUnits:"userSpaceOnUse",children:[(0,La.jsx)("stop",{stopColor:"#D3D1FF"}),(0,La.jsx)("stop",{offset:1,stopColor:"white"})]})})]});const kC=function(){const e=(0,Qe.useMediaQuery)({query:"(max-width: 776px)"}),{t:t}=Qi();return(0,La.jsxs)("div",{style:{borderRadius:"2px",background:"linear-gradient(180deg, #FAFAFA 0%, #E4E3FF 100%)",width:"100%",height:e?"368px":"456px",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:[(0,La.jsx)("p",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:t("loading")}),(0,La.jsx)(DC,{})]})},OC=["actMeasureGrid","actCut","actAnimate","actIsometric","actExternalAR"];const IC=function(e){let{is3dView:n,sku:r,setStatus3dView:i,status3dView:o}=e;const[a,s]=(0,t.useState)(""),l=(0,Qe.useMediaQuery)({query:"(max-width: 776px)"}),{settings:u}=Dr((e=>e));(0,t.useEffect)((()=>{var e,t;let n={$container:$("#cnsWebViewer3d"),viewerBackendType:psol.components.WebViewer3D.ViewerBackends.WebGL,devicePixelRatio:window.devicePixelRatio,radialMenuActions:[],favoriteActions:OC,showProgressDialog:!1,webglViewerSettings:{ColorTL:"#fff",ColorTR:"#fff",ColorML:"#fff",ColorMR:"#fff",ColorBL:"#fff",ColorBR:"#fff",showLogo:!1,logoTexture:"./img/logo.png",logoScaleFactor:1,logoMixFactor:.5,material:{preset:"pcloud",edit:!1},measureGrid:{colors:{dimensions:"#000000",outline:"#0000ff",grid:"#757575",unit:"mm"}},helperOptions:{gridOn:!1,axisOn:!1},shadeMode:psol.components.WebViewer3D.ShadeModes.ShadeAndLines,enableEditableDimensions:!0,showPartNameTooltip:!1}},o=new psol.components.WebViewer3D(n);psol.core.setApiKey(null===(e=u.cadenas)||void 0===e?void 0:e.cadenasAPIKey),i("loading"),psol.core.ajaxGetOrPost({url:psol.core.getServiceBaseUrl()+"/service/reversemap",data:{catalog:null===(t=u.cadenas)||void 0===t?void 0:t.catalog,part:r,exact:"0"}}).then((function(e){let t=e.mident||"";s(t),o.show().then((function(){o.loadByVarset(null,null,t).then((()=>{i("loaded")})).catch((e=>{i("not-found")}))}))}))}),[r,i,u]);const c=!n||"loaded"!==o;return(0,La.jsxs)(La.Fragment,{children:["not-found"!==o&&(0,La.jsx)("div",{id:"cnsWebViewer3d",style:{height:c?"0px":l?"368px":"456px",width:"100%",opacity:c?0:1,transition:n&&"loaded"!==o?"opacity 2s ease":""}}),(0,La.jsx)("div",{style:{position:"absolute",bottom:"19px",right:"26px"},children:n&&"loaded"===o&&(0,La.jsx)("div",{style:{background:"#E9E9EC",width:"32px",height:"32px",borderRadius:"100%",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer"},onClick:()=>{new psol.components.DownloadDialog({mident:a}).show()},children:(0,La.jsx)(al.Icon,{name:"download",width:14,height:14,className:"text-black"})})}),"loading"===o&&n&&(0,La.jsx)(kC,{}),"not-found"===o&&n&&(0,La.jsx)("div",{style:{height:l?"368px":"456px",width:"100%",color:"#AAABB5",background:"linear-gradient(180deg, #fff 0%, #E9E9EC 100%)",fontSize:"16px",display:"flex",justifyContent:"center",alignItems:"center"},children:"No 3D View available for this item"})]})};var _C=n(8943);const PC=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,_C.A)(e,(0,T.A)({defaultTheme:us.A},t))}((e=>({buttonStyle3D:{bottom:e=>e?"20px":"68px",[e.breakpoints.up("md")]:{bottom:e=>e?"20px":"10px"}},buttonStyleImageSearch:{bottom:e=>e?"20px":"78px",[e.breakpoints.up("md")]:{bottom:e=>e?"20px":"4px"}}})));const LC=function(e){var n,r,i,o,a,s,l,u,c,d,f,h,p,g,m,y,v,b,x,w,M,S,j,N,C,A,T,E,D,k,O,I,_,P,L,z,R;const{dataItem:F,handleClose:U,show3dView:B=!1,onSearchImage:V}=e,{sku:Q}=F,H=(0,Qe.useMediaQuery)({query:"(max-width: 776px)"}),{settings:Y}=Dr((e=>e)),[W,G]=(0,t.useState)(!1),[q,Z]=(0,t.useState)(B),[K,X]=(0,t.useState)([]),[$,J]=(0,t.useState)(""),[ee,te]=(0,t.useState)(),{t:ne}=Qi(),re=PC(null===e||void 0===e?void 0:e.show3dView);(0,t.useEffect)((()=>{F&&(oe(F),ie(F["image(main_similarity)"]||F.main_image_link))}),[F]);const ie=(e,t)=>{t=t||5e3;let n,r=new Image;r.onerror=r.onabort=function(){clearTimeout(n),J("")},r.onload=function(){return clearTimeout(n),void J(e)},r.src=e},oe=e=>{const t=(e=>{let t=[];const n=e;if(!e)return[];for(let r in n)null!==r&&void 0!==r&&r.includes("image(recognition)")||null!==r&&void 0!==r&&r.includes("additional_image_link")?(0,qn.isEmpty)(n[r])||n[r]&&t.push({url:n[r]}):"image(main_similarity)"!==r&&"main_image_link"!==r||n[r]&&t.push({url:n[r]});return t})(e);X(t)},ae=(0,t.useMemo)((()=>{const e=(0,qn.get)(F,Y.productDetails);try{return e.join(", ")}catch(qi){return e}}),[F,Y.productDetails]);return(0,La.jsxs)("div",{className:"box-modal-default",style:{margin:H?0:"",width:"600px",backgroundColor:"#fff",borderRadius:12},children:[(0,La.jsx)("div",{className:"ml-auto",style:{width:"fit-content",marginRight:4,position:"absolute",top:"28px",right:"28px",zIndex:100},children:(0,La.jsx)(rl,{style:{padding:0},onClick:()=>null===U||void 0===U?void 0:U(),children:(0,La.jsx)(BM.A,{style:{fontSize:24,color:"#55566B"}})})}),(0,La.jsxs)("div",{style:{position:"relative"},children:[(null===(n=Y.cadenas)||void 0===n?void 0:n.cadenas3dWebView)&&(0,La.jsx)(IC,{is3dView:q,sku:Q,status3dView:ee,setStatus3dView:te}),(0,La.jsxs)("div",{className:"box-carosel",style:{...0===K.length?{display:"flex",justifyContent:"center"}:{},width:q?"0px":"100%",height:q?"0px":H?"368px":"60%",opacity:q?0:1,transition:q?"":"opacity 3s ease",paddingTop:q?"0px":"16px"},children:[K.length>0&&(0,La.jsx)(AC,{imgItem:K,setSelectedImage:e=>{J(e||$)}}),K.length>0&&!Y.noSimilarSearch&&(0,La.jsx)(rl,{className:re.buttonStyleImageSearch,style:{position:"absolute",right:"16px",background:"rgba(243, 243, 245, 0.4)",width:"32px",height:"32px",borderRadius:"100%",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",bottom:H?"25px":"4px"},onClick:()=>{if($.length>1)return V($),void(null===U||void 0===U||U())},children:(0,La.jsx)(al.Icon,{name:"search_image",color:"#AAABB5"})}),0===K.length&&(0,La.jsx)("div",{style:{width:"400px",height:"400px",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,La.jsx)("img",{src:nS,alt:"image_item",className:"img-style",style:{width:"150px",height:"150px",padding:"8px"}})})]}),(0,La.jsxs)("div",{className:re.buttonStyle3D,style:{position:"absolute",left:"16px",bottom:H?"25px":"10px"},children:[!q&&"not-found"!==ee&&(null===(r=Y.cadenas)||void 0===r?void 0:r.cadenas3dWebView)&&(0,La.jsx)("div",{style:{background:"#E9E9EC",width:"32px",height:"32px",borderRadius:"100%",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer"},onClick:()=>{Z(!0)},children:(0,La.jsx)(al.Icon,{name:"box3d",width:16,height:16,color:"#AAABB5"})}),q&&(0,La.jsx)("div",{style:{background:"#2B2C46",width:"32px",height:"32px",borderRadius:"100%",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer"},onClick:()=>{Z(!1)},children:(0,La.jsx)(al.Icon,{name:"close",color:"#FFF"})})]})]}),(0,La.jsx)("div",{style:{overflowY:"auto",maxHeight:"90svh",paddingLeft:"16px",paddingRight:"16px",paddingBottom:"16px",backgroundColor:Y.simpleCardView?"#FaFafa":"#F3F3F5",marginTop:"6px"},children:Y.simpleCardView?(0,La.jsxs)("div",{className:"info-container",children:[(0,La.jsx)("div",{className:"info-sku",children:F.sku}),(0,La.jsx)("div",{className:"info-marking",children:F.Bezeichnung}),(0,La.jsx)("div",{className:"info-description",children:"en"===Y.language?F.VK_Text_Englisch:F.VK_Text_Deutsch})]}):(0,La.jsx)("div",{className:"box-content",style:{display:"flex",marginTop:"16px",flexDirection:"column",backgroundColor:"#F3F3F5"},children:(0,La.jsx)("div",{className:"box-top",children:(0,La.jsxs)(qM,{container:!0,justifyContent:"space-between",style:{backgroundColor:"#F3F3F5"},children:[(0,La.jsxs)("div",{style:{gap:6,display:"flex",flexDirection:"row",flexWrap:"wrap",width:"100%"},children:[(0,La.jsxs)("div",{style:{width:"100%"},children:[Y.mainTitle&&(0,La.jsx)(Iu,{title:F[Y.mainTitle],placement:"top",arrow:!0,children:(0,La.jsx)(fl,{className:"text-f16 max-line-1 fw-700",style:{color:"#2B2C46",fontFamily:"Source Sans 3",fontSize:"16px",lineHeight:"22.78px",width:"fit-content",marginLeft:8},children:Lu(F[Y.mainTitle],45)})}),Y.secondaryTitle&&(0,La.jsx)(Iu,{title:F[Y.secondaryTitle]||"",placement:"top",arrow:!0,children:(0,La.jsx)(fl,{className:"text-f14 max-line-1 fw-400",style:{color:"#2B2C46",width:"fit-content",marginLeft:8,fontSize:14},children:Lu(F[Y.secondaryTitle],H?45:70)})})]}),(null===(i=Y.attributes)||void 0===i?void 0:i.productAttributes)&&(0,La.jsxs)("div",{className:"attribute-container",children:[(null===(o=Y.attributes)||void 0===o?void 0:o.attributeOneValue)&&(0,La.jsx)(EC,{title:null===(a=Y.attributes)||void 0===a?void 0:a.attributeOneLabelValue,value:(0,qn.get)(F,(null===(s=Y.attributes)||void 0===s?void 0:s.attributeOneValue)||""),padding:"4px 8px",backgroundColor:"#E0E0E0",isTitleVisible:!(null===(l=Y.attributes)||void 0===l||!l.attributeOneLabelValue)}),(null===(u=Y.attributes)||void 0===u?void 0:u.attributeTwoValue)&&(0,La.jsx)(EC,{title:null===(c=Y.attributes)||void 0===c?void 0:c.attributeTwoLabelValue,value:(0,qn.get)(F,(null===(d=Y.attributes)||void 0===d?void 0:d.attributeTwoValue)||""),padding:"4px 8px",backgroundColor:"#E0E0E0",isTitleVisible:!(null===(f=Y.attributes)||void 0===f||!f.attributeTwoLabelValue)}),(null===(h=Y.attributes)||void 0===h?void 0:h.attributeThreeValue)&&(0,La.jsx)(EC,{title:null===(p=Y.attributes)||void 0===p?void 0:p.attributeThreeLabelValue,value:(0,qn.get)(F,(null===(g=Y.attributes)||void 0===g?void 0:g.attributeThreeValue)||""),padding:"4px 8px",backgroundColor:"#E0E0E0",isTitleVisible:!(null===(m=Y.attributes)||void 0===m||!m.attributeThreeLabelValue)}),(null===(y=Y.attributes)||void 0===y?void 0:y.attributeFourValue)&&(0,La.jsx)(EC,{title:null===(v=Y.attributes)||void 0===v?void 0:v.attributeFourLabelValue,value:(0,qn.get)(F,(null===(b=Y.attributes)||void 0===b?void 0:b.attributeFourValue)||""),padding:"4px 8px",backgroundColor:"#E0E0E0",isTitleVisible:!(null===(x=Y.attributes)||void 0===x||!x.attributeFourLabelValue)})]})]}),(0,La.jsxs)(qM,{item:!0,xs:12,style:{backgroundColor:"#F3F3F5"},children:[(0,La.jsxs)("div",{style:{width:"100%",display:"flex",flexDirection:H?"column":"row",gap:H?0:"6px"},children:[(null===(w=Y.secondaryCTAButton)||void 0===w?void 0:w.secondaryCTAButton)&&(0,La.jsx)("div",{style:{background:(null===(M=Y.secondaryCTAButton)||void 0===M?void 0:M.secondaryCTAButtonColor)||"#2B2C46",borderRadius:2,marginTop:8,flex:1,display:"flex",justifyContent:"space-between",alignItems:"center",height:H?"34px":"50px",maxWidth:H?"100%":"calc(50% - 3px)"},className:"btn-detail-item",children:(0,La.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",padding:"0px 12px",minHeight:34,cursor:null!==(S=Y.secondaryCTAButton)&&void 0!==S&&S.secondaryCTALinkField?"pointer":"normal"},onClick:()=>{var e,t;null!==(e=Y.secondaryCTAButton)&&void 0!==e&&e.secondaryCTALinkField&&window.open("".concat((0,qn.get)(F,null===(t=Y.secondaryCTAButton)||void 0===t?void 0:t.secondaryCTALinkField)),"_blank")},children:[(0,La.jsx)(Iu,{title:(null===(j=Y.secondaryCTAButton)||void 0===j?void 0:j.secondaryCTAButtonText)||"",placement:"top",arrow:!0,children:(0,La.jsx)(fl,{className:"text-f16 fw-600 max-line-1",align:"left",style:{letterSpacing:"0.55px",maxWidth:"220px",paddingRight:"4px",color:Y.secondaryCTAButton.secondaryCTAButtonTextColor||"#FFFFFF"},children:null===(N=Y.secondaryCTAButton)||void 0===N?void 0:N.secondaryCTAButtonText})}),Y.secondaryCTAButton.secondaryCTAIcon&&(0,La.jsx)(al.Icon,{name:"settings",color:"white"})]})}),(null===(C=Y.CTAButton)||void 0===C?void 0:C.CTAButton)&&(0,La.jsx)("div",{style:{background:(null===(A=Y.CTAButton)||void 0===A?void 0:A.CTAButtonColor)||(null===(T=Y.theme)||void 0===T?void 0:T.primaryColor),borderRadius:2,marginTop:8,flex:1,display:"flex",justifyContent:"space-between",alignItems:"center",height:H?"34px":"50px",maxWidth:H?"100%":"calc(50% - 3px)"},className:"btn-detail-item",children:(0,La.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",padding:"0px 12px",minHeight:34,cursor:null!==(E=Y.CTAButton)&&void 0!==E&&E.CTALinkField?"pointer":"normal"},onClick:()=>{var e,t;null!==(e=Y.CTAButton)&&void 0!==e&&e.CTALinkField&&window.open("".concat((0,qn.get)(F,null===(t=Y.CTAButton)||void 0===t?void 0:t.CTALinkField)),"_blank")},children:[(0,La.jsx)(Iu,{title:(0,qn.get)(F,(null===(D=Y.CTAButton)||void 0===D?void 0:D.CTAButtonText)||"")||(null===(k=Y.CTAButton)||void 0===k?void 0:k.CTAButtonText)||"",placement:"top",arrow:!0,children:(0,La.jsx)(fl,{className:"text-f16 fw-600 max-line-1",align:"left",style:{color:(null===(O=Y.CTAButton)||void 0===O?void 0:O.CTAButtonTextColor)||"#FFFFFF",letterSpacing:"0.55px",maxWidth:"220px",paddingRight:"4px"},children:(0,qn.get)(F,(null===(I=Y.CTAButton)||void 0===I?void 0:I.CTAButtonText)||"")||(null===(_=Y.CTAButton)||void 0===_?void 0:_.CTAButtonText)||""})}),(null===(P=Y.CTAButton)||void 0===P?void 0:P.CTAIcon)&&(0,La.jsx)(al.Icon,{name:"link",fill:(null===(L=Y.CTAButton)||void 0===L?void 0:L.CTAButtonTextColor)||"#FFFFFF",width:16})]})})]}),ae&&(0,La.jsxs)("div",{className:"w-100",children:[(0,La.jsxs)(rl,{className:"w-100 button-hover",style:{backgroundColor:"#F3F3F5",color:"#2b2c46",display:"flex",fontSize:14,justifyContent:"space-between",marginTop:12,paddingLeft:"15px",paddingRight:"15px",textTransform:"initial"},onClick:()=>G((e=>!e)),children:[ne("View details"),W?(0,La.jsx)(TC.A,{htmlColor:null===(z=Y.theme)||void 0===z?void 0:z.secondaryColor}):(0,La.jsx)(lS.A,{htmlColor:null===(R=Y.theme)||void 0===R?void 0:R.secondaryColor})]}),(0,La.jsx)(sS,{in:W,children:(0,La.jsx)(fl,{style:{fontSize:14,padding:5,paddingLeft:15,paddingRight:15,color:"#2b2c46"},children:ae})})]})]})]})})})})]})};function zC(e){var n,r,i,o,a,s,l,u,c,d,f,h,p,g,m,y,v,b,x,w,M,S,j,N,C,A,T,E,D,k,O,I,_,P,L,z,R,F,U,B,V,Q,H,Y;const{dataItem:W,isHover:G=!1,onSearchImage:q,handlerGroupItem:Z,handlerFeedback:K,isGroupItem:X,handlerCloseGroup:$,main_image_link:J,indexItem:ee}=e,te=Er(),[ne,re]=(0,t.useState)(""),ie=Dr((e=>e)),{settings:oe}=ie,[ae,se]=(0,t.useState)(),{t:le}=Qi(),{collap:ue}=W,ce=(0,Qe.useMediaQuery)({query:"(max-width: 776px)"});(0,t.useEffect)((()=>{J&&de(J)}),[J]);const de=(e,t)=>{t=t||5e3;var n,r=new Image;r.onerror=r.onabort=function(){clearTimeout(n),re("")},r.onload=function(){return clearTimeout(n),void re(e)},r.src=e},fe=e=>{(async(e,t,n)=>{const{search:r,settings:i}=e;await oS(i,r.sessionId,r.requestId,{event:"click",data:{positions:[t],...n?{product_ids:[n]}:{}}})})(ie,ee,e.sku),se("image"),te(er(!0))};return(0,La.jsxs)("div",{className:"wrap-main-item-result",children:[(0,La.jsx)(za,{openModal:"3d"===ae||"image"===ae,handleClose:e=>{se(void 0)},children:(0,La.jsx)(LC,{dataItem:W,handleClose:()=>{se(void 0)},handlerFeedback:K,show3dView:"3d"===ae,onSearchImage:e=>{te(gr(!0)),q(e)}})}),(0,La.jsxs)("div",{className:"box-top",children:[X&&ue&&(0,La.jsx)("div",{className:"btn-show-result",children:(0,La.jsxs)(rl,{onClick:()=>{Z(W,ee)},children:[le("Show group"),(0,La.jsx)(tS.A,{style:{fontSize:"10px"}})]})}),X&&!ue&&(0,La.jsx)("div",{className:"btn-show-result",children:(0,La.jsxs)(rl,{onClick:()=>{$(W,ee)},children:[le("Close group"),(0,La.jsx)(tS.A,{style:{fontSize:"10px"}})]})}),!G&&J&&!oe.noSimilarSearch&&(0,La.jsx)("div",{className:"box-icon-modal",onClick:()=>{ne.length>1&&q(J)},children:(0,La.jsx)(al.Icon,{name:"search_image",width:16,height:16,color:"#AAABB5"})}),(null===(n=oe.cadenas)||void 0===n?void 0:n.cadenas3dWebView)&&(0,La.jsx)("div",{className:"box-icon-modal-3d",onClick:()=>{se("3d")},children:(0,La.jsx)(al.Icon,{name:"box3d",width:16,height:16,color:"#AAABB5"})}),(0,La.jsx)("div",{className:"box-image",children:(0,La.jsx)("div",{style:{width:"100%",height:"100%",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center"},onClick:e=>{e.preventDefault(),fe(W)},children:J?(0,La.jsx)("img",{src:J,alt:"image_item",className:"img-style product-image",style:{width:"100%",height:"100%",objectFit:"contain"}},J):(0,La.jsx)("img",{src:nS,alt:"image_item",style:{width:"70%",height:"50%"}})})})]}),oe.simpleCardView?(0,La.jsxs)("div",{className:"info-container",children:[(0,La.jsx)("div",{className:"info-sku",children:W.sku}),(0,La.jsx)("span",{className:"info-marking",children:W.Bezeichnung}),(0,La.jsx)(Iu,{title:"en"===oe.language?W.VK_Text_Englisch:W.VK_Text_Deutsch,placement:"top",arrow:!0,disableHoverListener:"en"===oe.language?(null===(r=W.VK_Text_Englisch)||void 0===r?void 0:r.length)<76:(null===(i=W.VK_Text_Deutsch)||void 0===i?void 0:i.length)<76,children:(0,La.jsx)("div",{className:"info-description",children:"en"===oe.language?W.VK_Text_Englisch:W.VK_Text_Deutsch})})]}):(0,La.jsxs)("div",{className:"box-content",style:{flexDirection:"column",backgroundColor:"#F3F3F5",flexGrow:1,zIndex:10,display:"flex",paddingTop:8},children:[(0,La.jsx)("div",{className:"box-top",style:{color:"#FFFFFF"},children:(0,La.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",flexDirection:"column",color:"#2B2C46"},children:[(0,La.jsxs)("div",{style:{maxHeight:"38px",height:"fit-content"},children:[W[oe.mainTitle]&&(0,La.jsx)(Iu,{title:W[oe.mainTitle]||"",placement:"top",arrow:!0,children:(0,La.jsx)(fl,{className:"text-f12 max-line-1 fw-700",style:{color:"#2B2C46",marginBottom:4,marginLeft:8},children:Lu(W[oe.mainTitle],45)})}),W[oe.secondaryTitle]&&(0,La.jsx)("div",{style:{display:"flex",justifyContent:"space-between",flexDirection:"row",color:"#2B2C46"},children:(0,La.jsx)(Iu,{title:W[oe.secondaryTitle],placement:"top",arrow:!0,disableHoverListener:(null===(o=W[oe.secondaryTitle])||void 0===o?void 0:o.length)<19||!W[oe.secondaryTitle],children:(0,La.jsx)(fl,{className:"text-f10 max-line-1 fw-400",style:{color:"#2B2C46",marginBottom:8,marginLeft:8},children:Lu(W[oe.secondaryTitle],ce?30:40)})})})]}),(null===(a=oe.attributes)||void 0===a?void 0:a.productAttributes)&&((null===(s=oe.attributes)||void 0===s?void 0:s.attributeOneValue)||(null===(l=oe.attributes)||void 0===l?void 0:l.attributeTwoValue)||(null===(u=oe.attributes)||void 0===u?void 0:u.attributeThreeValue)||(null===(c=oe.attributes)||void 0===c?void 0:c.attributeFourValue))&&(0,La.jsxs)("div",{className:"attribute-container",style:{display:"flex",justifyContent:"space-between",flexDirection:"row",flexWrap:"wrap",marginBottom:null!==(d=oe.CTAButton)&&void 0!==d&&d.CTAButton||null!==(f=oe.secondaryCTAButton)&&void 0!==f&&f.secondaryCTAButton?8:0,gridGap:8,color:"#2B2C46"},children:[(null===(h=oe.attributes)||void 0===h?void 0:h.attributeOneValue)&&(0,La.jsx)(EC,{title:null===(p=oe.attributes)||void 0===p?void 0:p.attributeOneLabelValue,value:(0,qn.get)(W,(null===(g=oe.attributes)||void 0===g?void 0:g.attributeOneValue)||""),padding:"4px 8px",backgroundColor:"#E0E0E0",isTitleVisible:!(null===(m=oe.attributes)||void 0===m||!m.attributeOneLabelValue)}),(null===(y=oe.attributes)||void 0===y?void 0:y.attributeTwoValue)&&(0,La.jsx)(EC,{title:null===(v=oe.attributes)||void 0===v?void 0:v.attributeTwoLabelValue,value:(0,qn.get)(W,(null===(b=oe.attributes)||void 0===b?void 0:b.attributeTwoValue)||""),padding:"4px 8px",backgroundColor:"#E0E0E0",isTitleVisible:!(null===(x=oe.attributes)||void 0===x||!x.attributeTwoLabelValue)}),(null===(w=oe.attributes)||void 0===w?void 0:w.attributeThreeValue)&&(0,La.jsx)(EC,{title:null===(M=oe.attributes)||void 0===M?void 0:M.attributeThreeLabelValue,value:(0,qn.get)(W,(null===(S=oe.attributes)||void 0===S?void 0:S.attributeThreeValue)||""),padding:"4px 8px",backgroundColor:"#E0E0E0",isTitleVisible:!(null===(j=oe.attributes)||void 0===j||!j.attributeThreeLabelValue)}),(null===(N=oe.attributes)||void 0===N?void 0:N.attributeFourValue)&&(0,La.jsx)(EC,{title:null===(C=oe.attributes)||void 0===C?void 0:C.attributeFourLabelValue,value:(0,qn.get)(W,(null===(A=oe.attributes)||void 0===A?void 0:A.attributeFourValue)||""),padding:"4px 8px",backgroundColor:"#E0E0E0",isTitleVisible:!(null===(T=oe.attributes)||void 0===T||!T.attributeFourLabelValue)})]})]})}),(0,La.jsxs)("div",{children:[(null===(E=oe.secondaryCTAButton)||void 0===E?void 0:E.secondaryCTAButton)&&(0,La.jsx)("div",{style:{boxShadow:"-2px 2px 4px rgba(170, 171, 181, 0.5)",minHeight:28,background:(null===(D=oe.secondaryCTAButton)||void 0===D?void 0:D.secondaryCTAButtonColor)||"#2B2C46",borderRadius:2,padding:"0px 8px",marginBottom:null!==(k=oe.CTAButton)&&void 0!==k&&k.CTAButton?8:0,display:"flex",justifyItems:"center",alignItems:"center",justifyContent:"space-between"},children:(0,La.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",padding:0,cursor:oe.secondaryCTAButton.secondaryCTALinkField?"pointer":"normal"},onClick:()=>{var e,t;null!==(e=oe.secondaryCTAButton)&&void 0!==e&&e.secondaryCTALinkField&&(iS(ie,ee,W.sku),window.open("".concat((0,qn.get)(W,null===(t=oe.secondaryCTAButton)||void 0===t?void 0:t.secondaryCTALinkField)),"_blank"))},children:[(0,La.jsx)(Iu,{title:(null===(O=oe.secondaryCTAButton)||void 0===O?void 0:O.secondaryCTAButtonText)||"",placement:"top",arrow:!0,children:(0,La.jsx)(fl,{className:"max-line-1",style:{overflow:"hidden",textOverflow:"ellipsis",fontWeight:600,fontSize:"12px",letterSpacing:"0.27px",wordBreak:"break-all",color:oe.secondaryCTAButton.secondaryCTAButtonTextColor||"#FFFFFF",maxWidth:!ce&&oe.secondaryCTAButton.secondaryCTALinkField?"136px":"164x",paddingRight:"8px"},align:"left",children:null===(I=oe.secondaryCTAButton)||void 0===I?void 0:I.secondaryCTAButtonText})}),oe.secondaryCTAButton.secondaryCTAIcon&&(0,La.jsx)("div",{style:{width:"16px"},children:(0,La.jsx)(al.Icon,{name:"settings",color:"white"})})]})}),(null===(_=oe.CTAButton)||void 0===_?void 0:_.CTAButton)&&(0,La.jsx)("div",{style:{boxShadow:"-2px 2px 4px rgba(170, 171, 181, 0.5)",minHeight:28,background:(null===(P=oe.CTAButton)||void 0===P?void 0:P.CTAButtonColor)||(null===(L=oe.theme)||void 0===L?void 0:L.primaryColor),borderRadius:2,padding:"0px 8px",display:"flex",justifyItems:"center",alignItems:"center",justifyContent:"space-between"},children:(0,La.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",padding:0,cursor:null!==(z=oe.CTAButton)&&void 0!==z&&z.CTALinkField?"pointer":"normal"},onClick:()=>{var e,t;null!==(e=oe.CTAButton)&&void 0!==e&&e.CTALinkField&&(iS(ie,ee,W.sku),window.open("".concat((0,qn.get)(W,null===(t=oe.CTAButton)||void 0===t?void 0:t.CTALinkField)),"_blank"))},children:[(0,La.jsx)(Iu,{title:(0,qn.get)(W,(null===(R=oe.CTAButton)||void 0===R?void 0:R.CTAButtonText)||"")||(null===(F=oe.CTAButton)||void 0===F?void 0:F.CTAButtonText)||"",placement:"top",arrow:!0,children:(0,La.jsx)(fl,{className:"max-line-1",style:{overflow:"hidden",textOverflow:"ellipsis",fontWeight:600,color:(null===(U=oe.CTAButton)||void 0===U?void 0:U.CTAButtonTextColor)||"#FFFFFF",fontSize:"12px",letterSpacing:"0.27px",wordBreak:"break-all",maxWidth:!ce&&null!==(B=oe.CTAButton)&&void 0!==B&&B.CTALinkField?"136px":"164x",paddingRight:"8px"},align:"left",children:(0,qn.get)(W,(null===(V=oe.CTAButton)||void 0===V?void 0:V.CTAButtonText)||"")||(null===(Q=oe.CTAButton)||void 0===Q?void 0:Q.CTAButtonText)||""})}),(null===(H=oe.CTAButton)||void 0===H?void 0:H.CTAIcon)&&(0,La.jsx)("div",{style:{width:"16px"},children:(0,La.jsx)(al.Icon,{name:"link",fill:(null===(Y=oe.CTAButton)||void 0===Y?void 0:Y.CTAButtonTextColor)||"#FFFFFF",width:16})})]})})]})]})]})}const RC=(0,t.memo)(zC);const FC=e=>{const{postFilter:n}=Dr((e=>e.search));return(0,t.useMemo)((()=>function(e,t){return null===e||void 0===e?void 0:e.filter((e=>Object.keys(t).every((n=>{const r=t[n],i=Object.keys(r).filter((e=>r[e]));if(i.length>0){const t=e.filters[n];if(t)return null===i||void 0===i?void 0:i.some((e=>t.includes(e)))}return!0}))))}(e,n||{})),[e,n])},UC=e=>{let{allSearchResults:n,isSearchStalled:r}=e;const{search:i,settings:o}=Dr((e=>e)),{valueTextSearch:a,results:s}=i||{},{showGroup:l,algolia:u}=o||{},[c,d]=(0,t.useState)([]),[f,h]=(0,t.useState)(!1),[p,g]=(0,t.useState)({});(0,t.useEffect)((()=>{var e;if(null===n||void 0===n||null===(e=n.hits)||void 0===e||!e.length)return void d([]);h(!1);const t=l?(e=>{var t;let n=[],r=[];const i=e.map((e=>e.group_id?e:{...e,group_id:(0,qn.uniqueId)("random-group-id")})),o=(0,qn.groupBy)(i,"group_id");return g(o),n=Object.values(o),0===(null===(t=n)||void 0===t?void 0:t.length)?e:(n.forEach((e=>{let t;(null===e||void 0===e?void 0:e.length)>=2?(t={...e[0],isGroup:!0,collap:!0},r.push(t)):(t={...e[0],isGroup:!1,collap:null},r.push(t))})),r)})(null===n||void 0===n?void 0:n.hits):null===n||void 0===n?void 0:n.hits;d(t)}),[null===n||void 0===n?void 0:n.hits,a]),(0,t.useEffect)((()=>{r&&h(!0)}),[r]);const m=FC(s),y=(0,t.useMemo)((()=>null===m||void 0===m?void 0:m.map((e=>({...e,main_image_link:e.image||(e.images?e.images[0]:"")})))),[m]);return{productList:null!==u&&void 0!==u&&u.enabled?c:y||[],handlerGroupItem:(e,t)=>{const n=e.group_id;let r=[...c];const i=r.slice(0,t+1);i.filter((e=>e.group_id===n))[0].collap=!1;let o=r.slice(t+1,r.length),a=[...p[n]];a.shift(),o=a.concat(o),d(i.concat(o))},handlerCloseGroup:(e,t)=>{const n=e.group_id;let r=[...c];const i=r.slice(0,t+1);i.filter((e=>e.group_id===n))[0].collap=!0;let o=r.slice(t+1,r.length);o=o.filter((e=>e.group_id!==n)),d(i.concat(o))},algoliaRequest:f,isLoading:!1,hasError:!1,errorMessage:"",loadProductList:()=>{},reset:()=>{}}};function BC(e){let{allSearchResults:n,getUrlToCanvasFile:r,sendFeedBackAction:i,searchQuery:o,requestImage:a,isSearchStalled:s}=e;const{search:l,settings:u}=Dr((e=>e)),{loadingSearchAlgolia:c}=l,d=(0,Qe.useMediaQuery)({query:"(max-width: 776px)"}),{t:f}=Qi(),{productList:h,handlerCloseGroup:p,handlerGroupItem:g,algoliaRequest:m}=UC({allSearchResults:n}),y=(0,t.useMemo)((()=>a||l.valueTextSearch.query||o||s?0!==h.length||c||s?h.map(((e,t)=>(0,La.jsx)("div",{style:{height:"fit-content"},className:u.simpleCardView?"border":"",children:(0,La.jsx)(RC,{dataItem:e,indexItem:t,isHover:!1,onSearchImage:e=>{r(e)},handlerFeedback:e=>{i(e)},handlerGroupItem:(e,t)=>g(e,t),handlerCloseGroup:(e,t)=>p(e,t),isGroupItem:!!u.showGroup&&(null===e||void 0===e?void 0:e.isGroup),main_image_link:e["image(main_similarity)"]||e.main_image_link})},t))):(0,La.jsx)("div",{style:{marginTop:"50px",width:"100%",textAlign:"center",marginBottom:"12px"},children:f("No products were found matching your search criteria.")}):(0,La.jsx)("div",{style:{marginTop:"50px",width:"100%",textAlign:"center"},children:f("Please upload an image or enter a keyword to search.")})),[h,o,a,l.valueTextSearch,s,m,c,d]);return(0,La.jsx)(La.Fragment,{children:y})}const VC=Ni((0,t.memo)(BC));function QC(e){return QC="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},QC(e)}var HC=["children","contextValue","indexContextValue"],YC=["children","contextValue","indexContextValue"];function WC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function GC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WC(Object(n),!0).forEach((function(t){qC(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qC(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==QC(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==QC(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===QC(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZC(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const KC=li({displayName:"AlgoliaConfigure",$$type:"ais.configure",getProvidedProps:function(){return{}},getSearchParameters:function(e,t){t.children,t.contextValue,t.indexContextValue;var n=ZC(t,HC);return e.setQueryParameters(n)},transitionState:function(e,t,n){var r="configure",i=(e.children,e.contextValue,e.indexContextValue,ZC(e,YC)),o=Object.keys(e),a=this._props?Object.keys(this._props).filter((function(e){return-1===o.indexOf(e)})):[];return this._props=e,mi(n,qC({},r,GC(GC({},Gr(n[r],a)),i)),{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){var n="configure",r=hi({ais:e.contextValue,multiIndexContext:e.indexContextValue}),i=gi({ais:e.contextValue,multiIndexContext:e.indexContextValue})&&t.indices?t.indices[r]:t,o=(i&&i[n]?Object.keys(i[n]):[]).reduce((function(t,r){return e[r]||(t[r]=i[n][r]),t}),{});return mi(t,qC({},n,o),{ais:e.contextValue,multiIndexContext:e.indexContextValue})}}),XC=KC((function(){return null}),{$$widgetType:"ais.configure"});function $C(e){return $C="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},$C(e)}function JC(){return JC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JC.apply(this,arguments)}function eA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,aA(r.key),r)}}function tA(e,t){return tA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tA(e,t)}function nA(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(qi){return!1}}();return function(){var n,r=iA(e);if(t){var i=iA(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===$C(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return rA(e)}(this,n)}}function rA(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iA(e){return iA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},iA(e)}function oA(e,t,n){return(t=aA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aA(e){var t=function(e,t){if("object"!==$C(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==$C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$C(t)?t:String(t)}var sA=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tA(e,t)}(a,e);var n,r,i,o=nA(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return oA(rA(e=o.call.apply(o,[this].concat(n))),"onClick",(function(t){(function(e){var t=1===e.button;return Boolean(t||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)})(t)||(e.props.onClick(),t.preventDefault())})),e}return n=a,(r=[{key:"render",value:function(){return t.createElement("a",JC({},this.props,{onClick:this.onClick}))}}])&&eA(n.prototype,r),i&&eA(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(t.Component);function lA(e){return lA="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},lA(e)}function uA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hA(r.key),r)}}function cA(e,t){return cA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cA(e,t)}function dA(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(qi){return!1}}();return function(){var n,r=fA(e);if(t){var i=fA(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===lA(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function fA(e){return fA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fA(e)}function hA(e){var t=function(e,t){if("object"!==lA(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==lA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===lA(t)?t:String(t)}oA(sA,"propTypes",{onClick:P().func.isRequired});var pA=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cA(e,t)}(a,e);var n,r,i,o=dA(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.cx,r=e.createURL,i=e.items,o=e.onSelect,a=e.canRefine;return t.createElement("ul",{className:n("list",!a&&"list--noRefinement")},i.map((function(e){return t.createElement("li",{key:void 0===e.key?e.value:e.key,className:n("item",e.selected&&!e.disabled&&"item--selected",e.disabled&&"item--disabled",e.modifier)},e.disabled?t.createElement("span",{className:n("link")},void 0===e.label?e.value:e.label):t.createElement(sA,{className:n("link",e.selected&&"link--selected"),"aria-label":e.ariaLabel,href:r(e.value),onClick:function(){return o(e.value)}},void 0===e.label?e.value:e.label))})))}}],r&&uA(n.prototype,r),i&&uA(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(t.Component);!function(e,t,n){(t=hA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(pA,"propTypes",{cx:P().func.isRequired,createURL:P().func.isRequired,items:P().arrayOf(P().shape({value:P().oneOfType([P().string,P().number,P().object]).isRequired,key:P().oneOfType([P().string,P().number]),label:P().node,modifier:P().string,ariaLabel:P().string,disabled:P().bool})),onSelect:P().func.isRequired,canRefine:P().bool.isRequired});var gA=["listComponent","nbPages","totalPages","currentRefinement","padding","showFirst","showPrevious","showNext","showLast","refine","createURL","canRefine","translate","className"];function mA(e){return mA="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},mA(e)}function yA(){return yA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yA.apply(this,arguments)}function vA(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function bA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jA(r.key),r)}}function xA(e,t){return xA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xA(e,t)}function wA(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(qi){return!1}}();return function(){var n,r=MA(e);if(t){var i=MA(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===mA(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function MA(e){return MA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},MA(e)}function SA(e,t,n){return(t=jA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jA(e){var t=function(e,t){if("object"!==mA(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==mA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===mA(t)?t:String(t)}var NA=kv("Pagination");function CA(e,t,n){var r=function(e,t){return Math.min(2*e+1,t)}(n,t);if(r===t)return Iv({start:1,end:t+1});var i=function(e,t,n,r){return e<=t?e:e>=n-t?r-(n-e):t+1}(e,n,t,r);return Iv({start:e-i+1,end:e+(r-i)+1})}var AA=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xA(e,t)}(a,e);var n,r,i,o=wA(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"getItem",value:function(e,t,n){var r=this.props,i=r.nbPages,o=r.totalPages,a=r.translate;return{key:"".concat(e,".").concat(n),modifier:e,disabled:n<1||n>=Math.min(o,i),label:a(t,n),value:n,ariaLabel:a("aria".concat(Ov(t)),n)}}},{key:"render",value:function(){var e=this.props,n=e.listComponent,r=e.nbPages,i=e.totalPages,o=e.currentRefinement,a=e.padding,s=e.showFirst,l=e.showPrevious,u=e.showNext,c=e.showLast,d=e.refine,f=e.createURL,h=e.canRefine,p=e.translate,g=e.className,m=vA(e,gA),y=Math.min(r,i),v=y,b=[];return s&&b.push({key:"first",modifier:"item--firstPage",disabled:1===o,label:p("first"),value:1,ariaLabel:p("ariaFirst")}),l&&b.push({key:"previous",modifier:"item--previousPage",disabled:1===o,label:p("previous"),value:o-1,ariaLabel:p("ariaPrevious")}),b=b.concat(CA(o,y,a).map((function(e){return{key:e,modifier:"item--page",label:p("page",e),value:e,selected:e===o,ariaLabel:p("ariaPage",e)}}))),u&&b.push({key:"next",modifier:"item--nextPage",disabled:o===v||v<=1,label:p("next"),value:o+1,ariaLabel:p("ariaNext")}),c&&b.push({key:"last",modifier:"item--lastPage",disabled:o===v||v<=1,label:p("last"),value:v,ariaLabel:p("ariaLast")}),t.createElement("div",{className:Ai()(NA("",!h&&"-noRefinement"),g)},t.createElement(n,yA({},m,{cx:NA,items:b,onSelect:d,createURL:f,canRefine:h})))}}],r&&bA(n.prototype,r),i&&bA(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(t.Component);SA(AA,"propTypes",{nbPages:P().number.isRequired,currentRefinement:P().number.isRequired,refine:P().func.isRequired,createURL:P().func.isRequired,canRefine:P().bool.isRequired,translate:P().func.isRequired,listComponent:P().func,showFirst:P().bool,showPrevious:P().bool,showNext:P().bool,showLast:P().bool,padding:P().number,totalPages:P().number,className:P().string}),SA(AA,"defaultProps",{listComponent:pA,showFirst:!0,showPrevious:!0,showNext:!0,showLast:!1,padding:3,totalPages:1/0,className:""});const TA=cb({previous:"\u2039",next:"\u203a",first:"\xab",last:"\xbb",page:function(e){return e.toString()},ariaPrevious:"Previous page",ariaNext:"Next page",ariaFirst:"First page",ariaLast:"Last page",ariaPage:function(e){return"Page ".concat(e.toString())}})(AA);const EA=$M((function(e){return t.createElement(tb,e,t.createElement(TA,e))}),{$$widgetType:"ais.pagination"});function DA(e){return DA="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},DA(e)}function kA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function OA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kA(Object(n),!0).forEach((function(t){IA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function IA(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==DA(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==DA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===DA(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _A(e,t,n){var r=vi(e,t,n,"hitsPerPage",null);return"string"===typeof r?parseInt(r,10):r}const PA=li({displayName:"AlgoliaHitsPerPage",$$type:"ais.hitsPerPage",propTypes:{defaultRefinement:P().number.isRequired,items:P().arrayOf(P().shape({label:P().string,value:P().number.isRequired})).isRequired,transformItems:P().func},getProvidedProps:function(e,t){var n=_A(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),r=e.items.map((function(e){return e.value===n?OA(OA({},e),{},{isRefined:!0}):OA(OA({},e),{},{isRefined:!1})}));return{items:e.transformItems?e.transformItems(r):r,currentRefinement:n}},refine:function(e,t,n){return mi(t,IA({},"hitsPerPage",n),{ais:e.contextValue,multiIndexContext:e.indexContextValue},!0)},cleanUp:function(e,t){return bi(t,{ais:e.contextValue,multiIndexContext:e.indexContextValue},"hitsPerPage")},getSearchParameters:function(e,t,n){return e.setHitsPerPage(_A(t,n,{ais:t.contextValue,multiIndexContext:t.indexContextValue}))},getMetadata:function(){return{id:"hitsPerPage"}}});function LA(e){return LA="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},LA(e)}function zA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,QA(r.key),r)}}function RA(e,t){return RA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},RA(e,t)}function FA(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(qi){return!1}}();return function(){var n,r=BA(e);if(t){var i=BA(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===LA(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return UA(e)}(this,n)}}function UA(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BA(e){return BA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},BA(e)}function VA(e,t,n){return(t=QA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QA(e){var t=function(e,t){if("object"!==LA(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==LA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===LA(t)?t:String(t)}var HA=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&RA(e,t)}(a,e);var n,r,i,o=FA(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return VA(UA(e=o.call.apply(o,[this].concat(n))),"onChange",(function(t){e.props.onSelect(t.target.value)})),e}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.cx,r=e.id,i=e.items,o=e.selectedItem;return t.createElement("select",{id:r,className:n("select"),value:o,onChange:this.onChange},i.map((function(e){return t.createElement("option",{className:n("option"),key:void 0===e.key?e.value:e.key,disabled:e.disabled,value:e.value},void 0===e.label?e.value:e.label)})))}}],r&&zA(n.prototype,r),i&&zA(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(t.Component);function YA(e){return YA="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},YA(e)}function WA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,XA(r.key),r)}}function GA(e,t){return GA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},GA(e,t)}function qA(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(qi){return!1}}();return function(){var n,r=ZA(e);if(t){var i=ZA(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===YA(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function ZA(e){return ZA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ZA(e)}function KA(e,t,n){return(t=XA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XA(e){var t=function(e,t){if("object"!==YA(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==YA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===YA(t)?t:String(t)}VA(HA,"propTypes",{cx:P().func.isRequired,id:P().string,onSelect:P().func.isRequired,items:P().arrayOf(P().shape({value:P().oneOfType([P().string,P().number]).isRequired,key:P().oneOfType([P().string,P().number]),label:P().string,disabled:P().bool})).isRequired,selectedItem:P().oneOfType([P().string,P().number]).isRequired});var $A=kv("HitsPerPage"),JA=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&GA(e,t)}(a,e);var n,r,i,o=qA(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.id,r=e.items,i=e.currentRefinement,o=e.refine,a=e.className;return t.createElement("div",{className:Ai()($A(""),a)},t.createElement(HA,{id:n,onSelect:o,selectedItem:i,items:r,cx:$A}))}}],r&&WA(n.prototype,r),i&&WA(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(t.Component);KA(JA,"propTypes",{id:P().string,items:P().arrayOf(P().shape({value:P().number.isRequired,label:P().string})).isRequired,currentRefinement:P().number.isRequired,refine:P().func.isRequired,className:P().string}),KA(JA,"defaultProps",{className:""});const eT=PA(JA,{$$widgetType:"ais.hitsPerPage"}),tT=(e,t)=>{let n=t||{x1:0,x2:1,y1:0,y2:1};if(!e)return null;const r=(0,Is.getElementSize)(e),i=(0,Is.getRectAspectRatio)(n,r);let o=(0,Is.getThumbSizeArea)(600,600,i);return(0,Is.elementToCanvas)(e,o,n)};class nT{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Network Error";this.status=e,this.text=t}}const rT={origin:"https://api.emailjs.com",blockHeadless:!1,storageProvider:(()=>{if("undefined"!==typeof localStorage)return{get:e=>Promise.resolve(localStorage.getItem(e)),set:(e,t)=>Promise.resolve(localStorage.setItem(e,t)),remove:e=>Promise.resolve(localStorage.removeItem(e))}})()},iT=e=>e?"string"===typeof e?{publicKey:e}:"[object Object]"===e.toString()?e:{}:{},oT=async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=await fetch(rT.origin+e,{method:"POST",headers:n,body:t}),i=await r.text(),o=new nT(r.status,i);if(r.ok)return o;throw o},aT=(e,t,n)=>{if(!e||"string"!==typeof e)throw"The public key is required. Visit https://dashboard.emailjs.com/admin/account";if(!t||"string"!==typeof t)throw"The service ID is required. Visit https://dashboard.emailjs.com/admin";if(!n||"string"!==typeof n)throw"The template ID is required. Visit https://dashboard.emailjs.com/admin/templates"},sT=e=>e.webdriver||!e.languages||0===e.languages.length,lT=()=>new nT(451,"Unavailable For Headless Browser"),uT=(e,t)=>{if((e=>{var t;return!(null!==(t=e.list)&&void 0!==t&&t.length)||!e.watchVariable})(e))return!1;((e,t)=>{if(!Array.isArray(e))throw"The BlockList list has to be an array";if("string"!==typeof t)throw"The BlockList watchVariable has to be a string"})(e.list,e.watchVariable);const n=(r=t,i=e.watchVariable,r instanceof FormData?r.get(i):r[i]);var r,i;return"string"===typeof n&&e.list.includes(n)},cT=()=>new nT(403,"Forbidden"),dT=async(e,t,n)=>{if(!t.throttle||!n)return!1;((e,t)=>{if("number"!==typeof e||e<0)throw"The LimitRate throttle has to be a positive number";if(t&&"string"!==typeof t)throw"The LimitRate ID has to be a string"})(t.throttle,t.id);const r=t.id||e,i=await(async(e,t,n)=>{const r=Number(await n.get(e)||0);return t-Date.now()+r})(r,t.throttle,n);return i>0||(await n.set(r,Date.now().toString()),!1)},fT=()=>new nT(429,"Too Many Requests"),hT={init:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"https://api.emailjs.com";if(!e)return;const n=iT(e);rT.publicKey=n.publicKey,rT.blockHeadless=n.blockHeadless,rT.storageProvider=n.storageProvider,rT.blockList=n.blockList,rT.limitRate=n.limitRate,rT.origin=n.origin||t},send:async(e,t,n,r)=>{const i=iT(r),o=i.publicKey||rT.publicKey,a=i.blockHeadless||rT.blockHeadless,s=rT.storageProvider||i.storageProvider,l={...rT.blockList,...i.blockList},u={...rT.limitRate,...i.limitRate};if(a&&sT(navigator))return Promise.reject(lT());if(aT(o,e,t),(e=>{if(e&&"[object Object]"!==e.toString())throw"The template params have to be the object. Visit https://www.emailjs.com/docs/sdk/send/"})(n),n&&uT(l,n))return Promise.reject(cT());if(await dT(location.pathname,u,s))return Promise.reject(fT());const c={lib_version:"4.3.3",user_id:o,service_id:e,template_id:t,template_params:n};return oT("/api/v1.0/email/send",JSON.stringify(c),{"Content-type":"application/json"})},sendForm:async(e,t,n,r)=>{const i=iT(r),o=i.publicKey||rT.publicKey,a=i.blockHeadless||rT.blockHeadless,s=rT.storageProvider||i.storageProvider,l={...rT.blockList,...i.blockList},u={...rT.limitRate,...i.limitRate};if(a&&sT(navigator))return Promise.reject(lT());const c=(e=>"string"===typeof e?document.querySelector(e):e)(n);aT(o,e,t),(e=>{if(!e||"FORM"!==e.nodeName)throw"The 3rd parameter is expected to be the HTML form element or the style selector of the form"})(c);const d=new FormData(c);return uT(l,d)?Promise.reject(cT()):await dT(location.pathname,u,s)?Promise.reject(fT()):(d.append("lib_version","4.3.3"),d.append("service_id",e),d.append("template_id",t),d.append("user_id",o),oT("/api/v1.0/email/send-form",d))},EmailJSResponseStatus:nT};function pT(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}let gT={data:""},mT=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||gT,yT=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,vT=/\/\*[^]*?\*\/| +/g,bT=/\n+/g,xT=(e,t)=>{let n="",r="",i="";for(let o in e){let a=e[o];"@"==o[0]?"i"==o[1]?n=o+" "+a+";":r+="f"==o[1]?xT(a,o):o+"{"+xT(a,"k"==o[1]?"":t)+"}":"object"==typeof a?r+=xT(a,t?t.replace(/([^,])+/g,(e=>o.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):o):null!=a&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=xT.p?xT.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},wT={},MT=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+MT(e[n]);return t}return e},ST=(e,t,n,r,i)=>{let o=MT(e),a=wT[o]||(wT[o]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(o));if(!wT[a]){let t=o!==e?e:(e=>{let t,n,r=[{}];for(;t=yT.exec(e.replace(vT,""));)t[4]?r.shift():t[3]?(n=t[3].replace(bT," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(bT," ").trim();return r[0]})(e);wT[a]=xT(i?{["@keyframes "+a]:t}:t,n?"":"."+a)}let s=n&&wT.g?wT.g:null;return n&&(wT.g=wT[a]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(wT[a],t,r,s),a},jT=(e,t,n)=>e.reduce(((e,r,i)=>{let o=t[i];if(o&&o.call){let e=o(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":xT(e,""):!1===e?"":e}return e+r+(null==o?"":o)}),"");function NT(e){let t=this||{},n=e.call?e(t.p):e;return ST(n.unshift?n.raw?jT(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,mT(t.target),t.g,t.o,t.k)}NT.bind({g:1});let CT,AT,TT,ET=NT.bind({k:1});function DT(e,t){let n=this||{};return function(){let r=arguments;function i(o,a){let s=Object.assign({},o),l=s.className||i.className;n.p=Object.assign({theme:AT&&AT()},s),n.o=/ *go\d+/.test(l),s.className=NT.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);let u=e;return e[0]&&(u=s.as||e,delete s.as),TT&&u[0]&&TT(s),CT(u,s)}return t?t(i):i}}var kT,OT,IT,_T,PT,LT,zT,RT,FT,UT,BT,VT,QT,HT,YT,WT,GT=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,qT=(()=>{let e=0;return()=>(++e).toString()})(),ZT=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),KT=new Map,XT=e=>{if(KT.has(e))return;let t=setTimeout((()=>{KT.delete(e),tE({type:4,toastId:e})}),1e3);KT.set(e,t)},$T=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return t.toast.id&&(e=>{let t=KT.get(e);t&&clearTimeout(t)})(t.toast.id),{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:n}=t;return e.toasts.find((e=>e.id===n.id))?$T(e,{type:1,toast:n}):$T(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?XT(r):e.toasts.forEach((e=>{XT(e.id)})),{...e,toasts:e.toasts.map((e=>e.id===r||void 0===r?{...e,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+i})))}}},JT=[],eE={toasts:[],pausedAt:void 0},tE=e=>{eE=$T(eE,e),JT.forEach((e=>{e(eE)}))},nE={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},rE=e=>(t,n)=>{let r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"blank",n=arguments.length>2?arguments[2]:void 0;return{createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||qT()}}(t,e,n);return tE({type:2,toast:r}),r.id},iE=(e,t)=>rE("blank")(e,t);iE.error=rE("error"),iE.success=rE("success"),iE.loading=rE("loading"),iE.custom=rE("custom"),iE.dismiss=e=>{tE({type:3,toastId:e})},iE.remove=e=>tE({type:4,toastId:e}),iE.promise=(e,t,n)=>{let r=iE.loading(t.loading,{...n,...null==n?void 0:n.loading});return e.then((e=>(iE.success(GT(t.success,e),{id:r,...n,...null==n?void 0:n.success}),e))).catch((e=>{iE.error(GT(t.error,e),{id:r,...n,...null==n?void 0:n.error})})),e};var oE=(e,t)=>{tE({type:1,toast:{id:e,height:t}})},aE=()=>{tE({type:5,time:Date.now()})},sE=e=>{let{toasts:n,pausedAt:r}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[n,r]=(0,t.useState)(eE);(0,t.useEffect)((()=>(JT.push(r),()=>{let e=JT.indexOf(r);e>-1&&JT.splice(e,1)})),[n]);let i=n.toasts.map((t=>{var n,r;return{...e,...e[t.type],...t,duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==e?void 0:e.duration)||nE[t.type],style:{...e.style,...null==(r=e[t.type])?void 0:r.style,...t.style}}}));return{...n,toasts:i}}(e);(0,t.useEffect)((()=>{if(r)return;let e=Date.now(),t=n.map((t=>{if(t.duration===1/0)return;let n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(n<0))return setTimeout((()=>iE.dismiss(t.id)),n);t.visible&&iE.dismiss(t.id)}));return()=>{t.forEach((e=>e&&clearTimeout(e)))}}),[n,r]);let i=(0,t.useCallback)((()=>{r&&tE({type:6,time:Date.now()})}),[r]),o=(0,t.useCallback)(((e,t)=>{let{reverseOrder:r=!1,gutter:i=8,defaultPosition:o}=t||{},a=n.filter((t=>(t.position||o)===(e.position||o)&&t.height)),s=a.findIndex((t=>t.id===e.id)),l=a.filter(((e,t)=>t<s&&e.visible)).length;return a.filter((e=>e.visible)).slice(...r?[l+1]:[0,l]).reduce(((e,t)=>e+(t.height||0)+i),0)}),[n]);return{toasts:n,handlers:{updateHeight:oE,startPause:aE,endPause:i,calculateOffset:o}}},lE=ET(kT||(kT=pT(["\nfrom {\n transform: scale(0) rotate(45deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n opacity: 1;\n}"]))),uE=ET(OT||(OT=pT(["\nfrom {\n transform: scale(0);\n opacity: 0;\n}\nto {\n transform: scale(1);\n opacity: 1;\n}"]))),cE=ET(IT||(IT=pT(["\nfrom {\n transform: scale(0) rotate(90deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(90deg);\n\topacity: 1;\n}"]))),dE=DT("div")(_T||(_T=pT(["\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ",";\n position: relative;\n transform: rotate(45deg);\n\n animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n\n &:after,\n &:before {\n content: '';\n animation: "," 0.15s ease-out forwards;\n animation-delay: 150ms;\n position: absolute;\n border-radius: 3px;\n opacity: 0;\n background: ",";\n bottom: 9px;\n left: 4px;\n height: 2px;\n width: 12px;\n }\n\n &:before {\n animation: "," 0.15s ease-out forwards;\n animation-delay: 180ms;\n transform: rotate(90deg);\n }\n"])),(e=>e.primary||"#ff4b4b"),lE,uE,(e=>e.secondary||"#fff"),cE),fE=ET(PT||(PT=pT(["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"]))),hE=DT("div")(LT||(LT=pT(["\n width: 12px;\n height: 12px;\n box-sizing: border-box;\n border: 2px solid;\n border-radius: 100%;\n border-color: ",";\n border-right-color: ",";\n animation: "," 1s linear infinite;\n"])),(e=>e.secondary||"#e0e0e0"),(e=>e.primary||"#616161"),fE),pE=ET(zT||(zT=pT(["\nfrom {\n transform: scale(0) rotate(45deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n\topacity: 1;\n}"]))),gE=ET(RT||(RT=pT(["\n0% {\n\theight: 0;\n\twidth: 0;\n\topacity: 0;\n}\n40% {\n height: 0;\n\twidth: 6px;\n\topacity: 1;\n}\n100% {\n opacity: 1;\n height: 10px;\n}"]))),mE=DT("div")(FT||(FT=pT(["\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ",";\n position: relative;\n transform: rotate(45deg);\n\n animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n &:after {\n content: '';\n box-sizing: border-box;\n animation: "," 0.2s ease-out forwards;\n opacity: 0;\n animation-delay: 200ms;\n position: absolute;\n border-right: 2px solid;\n border-bottom: 2px solid;\n border-color: ",";\n bottom: 6px;\n left: 6px;\n height: 10px;\n width: 6px;\n }\n"])),(e=>e.primary||"#61d345"),pE,gE,(e=>e.secondary||"#fff")),yE=DT("div")(UT||(UT=pT(["\n position: absolute;\n"]))),vE=DT("div")(BT||(BT=pT(["\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: 20px;\n min-height: 20px;\n"]))),bE=ET(VT||(VT=pT(["\nfrom {\n transform: scale(0.6);\n opacity: 0.4;\n}\nto {\n transform: scale(1);\n opacity: 1;\n}"]))),xE=DT("div")(QT||(QT=pT(["\n position: relative;\n transform: scale(0.6);\n opacity: 0.4;\n min-width: 20px;\n animation: "," 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n"])),bE),wE=e=>{let{toast:n}=e,{icon:r,type:i,iconTheme:o}=n;return void 0!==r?"string"==typeof r?t.createElement(xE,null,r):r:"blank"===i?null:t.createElement(vE,null,t.createElement(hE,{...o}),"loading"!==i&&t.createElement(yE,null,"error"===i?t.createElement(dE,{...o}):t.createElement(mE,{...o})))},ME=e=>"\n0% {transform: translate3d(0,".concat(-200*e,"%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n"),SE=e=>"\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,".concat(-150*e,"%,-1px) scale(.6); opacity:0;}\n"),jE=DT("div")(HT||(HT=pT(["\n display: flex;\n align-items: center;\n background: #fff;\n color: #363636;\n line-height: 1.3;\n will-change: transform;\n box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);\n max-width: 350px;\n pointer-events: auto;\n padding: 8px 10px;\n border-radius: 8px;\n"]))),NE=DT("div")(YT||(YT=pT(["\n display: flex;\n justify-content: center;\n margin: 4px 10px;\n color: inherit;\n flex: 1 1 auto;\n white-space: pre-line;\n"]))),CE=t.memo((e=>{let{toast:n,position:r,style:i,children:o}=e,a=n.height?((e,t)=>{let n=e.includes("top")?1:-1,[r,i]=ZT()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[ME(n),SE(n)];return{animation:t?"".concat(ET(r)," 0.35s cubic-bezier(.21,1.02,.73,1) forwards"):"".concat(ET(i)," 0.4s forwards cubic-bezier(.06,.71,.55,1)")}})(n.position||r||"top-center",n.visible):{opacity:0},s=t.createElement(wE,{toast:n}),l=t.createElement(NE,{...n.ariaProps},GT(n.message,n));return t.createElement(jE,{className:n.className,style:{...a,...i,...n.style}},"function"==typeof o?o({icon:s,message:l}):t.createElement(t.Fragment,null,s,l))}));!function(e,t,n,r){xT.p=t,CT=e,AT=n,TT=r}(t.createElement);var AE=e=>{let{id:n,className:r,style:i,onHeightUpdate:o,children:a}=e,s=t.useCallback((e=>{if(e){let t=()=>{let t=e.getBoundingClientRect().height;o(n,t)};t(),new MutationObserver(t).observe(e,{subtree:!0,childList:!0,characterData:!0})}}),[n,o]);return t.createElement("div",{ref:s,className:r,style:i},a)},TE=NT(WT||(WT=pT(["\n z-index: 9999;\n > * {\n pointer-events: auto;\n }\n"]))),EE=e=>{let{reverseOrder:n,position:r="top-center",toastOptions:i,gutter:o,children:a,containerStyle:s,containerClassName:l}=e,{toasts:u,handlers:c}=sE(i);return t.createElement("div",{style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...s},className:l,onMouseEnter:c.startPause,onMouseLeave:c.endPause},u.map((e=>{let i=e.position||r,s=((e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:ZT()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY(".concat(t*(n?1:-1),"px)"),...r,...i}})(i,c.calculateOffset(e,{reverseOrder:n,gutter:o,defaultPosition:r}));return t.createElement(AE,{id:e.id,key:e.id,onHeightUpdate:c.updateHeight,className:e.visible?TE:"",style:s},"custom"===e.type?GT(e.message,e):a?a(e):t.createElement(CE,{toast:e,position:i}))})))},DE=iE;class kE{static success(e){DE.success(e,{duration:3e3,style:{background:"#1E1F31",color:"#fff"}})}static error(e){DE.error(e,{duration:3e3,style:{background:"#1E1F31",color:"#fff"}})}}function OE(e,t){return parseInt(e[t],10)||0}var IE="undefined"!==typeof window?t.useLayoutEffect:t.useEffect,_E={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},PE=t.forwardRef((function(e,n){var r=e.onChange,i=e.rows,o=e.rowsMax,a=e.rowsMin,s=e.maxRows,l=e.minRows,u=void 0===l?1:l,c=e.style,d=e.value,f=(0,sa.A)(e,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),h=s||o,p=i||a||u,g=t.useRef(null!=d).current,m=t.useRef(null),y=(0,fa.A)(n,m),v=t.useRef(null),b=t.useRef(0),x=t.useState({}),w=x[0],M=x[1],S=t.useCallback((function(){var t=m.current,n=window.getComputedStyle(t),r=v.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var i=n["box-sizing"],o=OE(n,"padding-bottom")+OE(n,"padding-top"),a=OE(n,"border-bottom-width")+OE(n,"border-top-width"),s=r.scrollHeight-o;r.value="x";var l=r.scrollHeight-o,u=s;p&&(u=Math.max(Number(p)*l,u)),h&&(u=Math.min(Number(h)*l,u));var c=(u=Math.max(u,l))+("border-box"===i?o+a:0),d=Math.abs(u-s)<=1;M((function(e){return b.current<20&&(c>0&&Math.abs((e.outerHeightStyle||0)-c)>1||e.overflow!==d)?(b.current+=1,{overflow:d,outerHeightStyle:c}):e}))}),[h,p,e.placeholder]);t.useEffect((function(){var e=(0,bs.A)((function(){b.current=0,S()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[S]),IE((function(){S()})),t.useEffect((function(){b.current=0}),[d]);return t.createElement(t.Fragment,null,t.createElement("textarea",(0,T.A)({value:d,onChange:function(e){b.current=0,g||S(),r&&r(e)},ref:y,rows:p,style:(0,T.A)({height:w.outerHeightStyle,overflow:w.overflow?"hidden":null},c)},f)),t.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:v,tabIndex:-1,style:(0,T.A)({},_E,c)}))}));const LE=PE,zE=/.+\@.+\..+$/,RE=e=>{switch(e.status){case 400:default:return"Your email could not be sent, please try again or send an email to support@nyris.io";case 421:case 450:case 451:case 452:return"Email delivery failed. Rest assured, we're continuously attempting to send it for you. Alternatively, you can forward the email to support@nyris.io"}};function FE(e){var n;let{setIsRfqModalOpen:r,isRfqModalOpen:i,setRfqStatus:o}=e;const[a,s]=(0,t.useState)(""),[l,u]=(0,t.useState)(void 0),c=(0,Qe.useMediaQuery)({query:"(max-width: 776px)"}),{settings:d}=Dr((e=>e)),[f,h]=(0,t.useState)(""),{requestImages:p,regions:g}=qa((e=>({requestImages:e.requestImages,regions:e.regions}))),m=t.useCallback((e=>{h(e.slice(0,150))}),[h]);(0,t.useEffect)((()=>hT.init("SMGihPnuEGcYLm0V4")),[]),(0,t.useEffect)((()=>{a&&(zE.test(a)?u(!0):u(!1))}),[a]);return(0,La.jsx)(za,{openModal:i,handleClose:e=>{r(!1)},children:(0,La.jsxs)("div",{style:{display:"flex",width:c?"360px":"378px",flexDirection:"column",backgroundColor:"#fff"},children:[(0,La.jsxs)("div",{style:{padding:"16px",display:"flex",flexDirection:"column"},children:[(0,La.jsx)(il.A,{style:{fontSize:16,color:"black",alignSelf:"flex-end",cursor:"pointer"},onClick:()=>r(!1)}),(0,La.jsx)("p",{style:{color:"#2B2C46",fontSize:"20px",fontWeight:"bold"},children:"Submit your image for quotation"})]}),(0,La.jsx)("div",{style:{padding:"16px",backgroundColor:"#F3F3F5",display:"flex",justifyContent:"center"},children:(0,La.jsx)("img",{src:null===(n=tT(p[0],g[0]))||void 0===n?void 0:n.toDataURL(),alt:"request_image",style:{maxHeight:"200px"}})}),(0,La.jsxs)("div",{style:{padding:"0px 16px 16px 16px",backgroundColor:"#F3F3F5",display:"flex",flexDirection:"column",rowGap:"16px"},children:[(0,La.jsxs)("div",{children:[(0,La.jsx)("p",{style:{fontSize:"12px",color:"#2B2C46",marginBottom:"8px"},children:"Your email (required)"}),(0,La.jsx)("input",{value:a,onChange:e=>s(e.currentTarget.value.trim()),style:{width:"100%",border:"none",height:"32px",padding:"8px 16px 8px 16px"}}),!l&&!(0,qn.isUndefined)(l)&&(0,La.jsx)("p",{style:{color:"red",fontSize:"12px",paddingTop:"8px"},children:"Please enter a valid email."})]}),(0,La.jsxs)("div",{children:[(0,La.jsxs)("div",{style:{marginBottom:"8px",display:"flex",justifyContent:"space-between",fontSize:"12px",color:"#2B2C46"},children:[(0,La.jsx)("p",{children:"Additional information"}),(0,La.jsx)("p",{children:"".concat(f.length,"/150")})]}),(0,La.jsx)(LE,{value:f,onChange:e=>m(e.currentTarget.value),style:{width:"100%",border:"none",maxWidth:"346px",padding:"8px 16px 8px 16px"}})]})]}),(0,La.jsxs)("div",{style:{display:"flex"},children:[(0,La.jsx)("button",{style:{height:"66px",display:"flex",alignItems:"center",width:"50%",backgroundColor:"#4B4B4A",color:"white",fontSize:"14px",paddingLeft:"16px",border:"none",cursor:"pointer"},onClick:()=>r(!1),children:"Cancel"}),(0,La.jsx)("button",{style:{height:"66px",display:"flex",alignItems:"center",width:"50%",backgroundColor:l?"#4DBE51":"#E9E9EC",color:l?"#fff":"#AAABB5",fontSize:"14px",paddingLeft:"16px",border:"none",cursor:l?"pointer":"normal"},disabled:!l,onClick:async e=>{var t;e.preventDefault();const n=p[0],i=tT(n,g[0]);r(!1);const s=null===(t=d.rfq)||void 0===t?void 0:t.emailTemplateId;if(s){try{o("loading"),await hT.send("service_zfsxshi",s,{email_id:a.trim(),information_text:f,request_image:null===i||void 0===i?void 0:i.toDataURL()}),o("sent"),kE.success("Request sent successfully")}catch(l){o("inactive"),DE((e=>(0,La.jsxs)("div",{style:{display:"flex",flexDirection:"column",fontSize:"14px",width:"294px"},children:[(0,La.jsx)("span",{style:{fontWeight:"bold"},children:"Email not sent"}),(0,La.jsx)("span",{children:RE(l)}),(0,La.jsx)("a",{href:"mailto:support@nyris.io?subject=Request for quotation&body=".concat(f),style:{padding:"8px 16px 8px 16px",border:"1px solid #000",marginTop:"16px",backgroundColor:"transparent",color:"#000",cursor:"pointer",width:"fit-content"},children:"support@nyris.io"})]})),{duration:5e3,style:{background:"#FFE5EF",color:"#000000",maxWidth:"400px"},icon:(0,La.jsx)("div",{style:{minWidth:"20px",minHeight:"20px"},children:(0,La.jsx)(al.Icon,{name:"error"})})})}r(!1)}},children:"Send"})]})]})})}const UE=(e,n)=>(0,t.useMemo)((()=>null===e||void 0===e?void 0:e.map((e=>{var t,r,i,o;return(null===(t=e.normalizedRect)||void 0===t?void 0:t.x1)===(null===n||void 0===n?void 0:n.x1)&&(null===(r=e.normalizedRect)||void 0===r?void 0:r.x2)===(null===n||void 0===n?void 0:n.x2)&&(null===(i=e.normalizedRect)||void 0===i?void 0:i.y1)===(null===n||void 0===n?void 0:n.y1)&&(null===(o=e.normalizedRect)||void 0===o?void 0:o.y2)===(null===n||void 0===n?void 0:n.y2)||0===(null===n||void 0===n?void 0:n.x1)&&1===(null===n||void 0===n?void 0:n.x2)&&0===(null===n||void 0===n?void 0:n.y1)&&1===(null===n||void 0===n?void 0:n.y2)?{...e,show:!1}:{...e,show:!0}}))),[e,n]);function BE(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(qi){o(qi)}}function s(e){try{l(r.throw(e))}catch(qi){o(qi)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function VE(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(qi){s=[6,qi],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}Object.create;function QE(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function HE(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"===typeof SuppressedError&&SuppressedError;var YE=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function WE(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=YE.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!==typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"===typeof t?t:"string"===typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var GE=[".DS_Store","Thumbs.db"];function qE(e){return"object"===typeof e&&null!==e}function ZE(e){return JE(e.target.files).map((function(e){return WE(e)}))}function KE(e){return BE(this,void 0,void 0,(function(){return VE(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return WE(e)}))]}}))}))}function XE(e,t){return BE(this,void 0,void 0,(function(){var n;return VE(this,(function(r){switch(r.label){case 0:return e.items?(n=JE(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(eD))]):[3,2];case 1:return[2,$E(tD(r.sent()))];case 2:return[2,$E(JE(e.files).map((function(e){return WE(e)})))]}}))}))}function $E(e){return e.filter((function(e){return-1===GE.indexOf(e.name)}))}function JE(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function eD(e){if("function"!==typeof e.webkitGetAsEntry)return nD(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?iD(t):nD(e)}function tD(e){return e.reduce((function(e,t){return HE(HE([],QE(e),!1),QE(Array.isArray(t)?tD(t):[t]),!1)}),[])}function nD(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=WE(t);return Promise.resolve(n)}function rD(e){return BE(this,void 0,void 0,(function(){return VE(this,(function(t){return[2,e.isDirectory?iD(e):oD(e)]}))}))}function iD(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function i(){var o=this;t.readEntries((function(t){return BE(o,void 0,void 0,(function(){var o,a,s;return VE(this,(function(l){switch(l.label){case 0:if(t.length)return[3,5];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return o=l.sent(),e(o),[3,4];case 3:return a=l.sent(),n(a),[3,4];case 4:return[3,6];case 5:s=Promise.all(t.map(rD)),r.push(s),i(),l.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function oD(e){return BE(this,void 0,void 0,(function(){return VE(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=WE(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var aD=n(3129);function sD(e){return function(e){if(Array.isArray(e))return hD(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||fD(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 lD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lD(Object(n),!0).forEach((function(t){cD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dD(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||fD(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fD(e,t){if(e){if("string"===typeof e)return hD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hD(e,t):void 0}}function hD(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var pD="file-invalid-type",gD="file-too-large",mD="file-too-small",yD="too-many-files",vD=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:pD,message:"File type must be ".concat(t)}},bD=function(e){return{code:gD,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},xD=function(e){return{code:mD,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},wD={code:yD,message:"Too many files"};function MD(e,t){var n="application/x-moz-file"===e.type||(0,aD.A)(e,t);return[n,n?null:vD(t)]}function SD(e,t,n){if(jD(e.size))if(jD(t)&&jD(n)){if(e.size>n)return[!1,bD(n)];if(e.size<t)return[!1,xD(t)]}else{if(jD(t)&&e.size<t)return[!1,xD(t)];if(jD(n)&&e.size>n)return[!1,bD(n)]}return[!0,null]}function jD(e){return void 0!==e&&null!==e}function ND(e){return"function"===typeof e.isPropagationStopped?e.isPropagationStopped():"undefined"!==typeof e.cancelBubble&&e.cancelBubble}function CD(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function AD(e){e.preventDefault()}function TD(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.some((function(t){return!ND(e)&&t&&t.apply(void 0,[e].concat(r)),ND(e)}))}}function ED(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function DD(e){return/^.*\.[\w]+$/.test(e)}var kD=["children"],OD=["open"],ID=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],_D=["refKey","onChange","onClick"];function PD(e){return function(e){if(Array.isArray(e))return RD(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||zD(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 LD(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||zD(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zD(e,t){if(e){if("string"===typeof e)return RD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?RD(e,t):void 0}}function RD(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function FD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function UD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FD(Object(n),!0).forEach((function(t){BD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function BD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VD(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var QD=(0,t.forwardRef)((function(e,n){var r=e.children,i=WD(VD(e,kD)),o=i.open,a=VD(i,OD);return(0,t.useImperativeHandle)(n,(function(){return{open:o}}),[o]),t.createElement(t.Fragment,null,r(UD(UD({},a),{},{open:o})))}));QD.displayName="Dropzone";var HD={disabled:!1,getFilesFromEvent:function(e){return BE(this,void 0,void 0,(function(){return VE(this,(function(t){return qE(e)&&qE(e.dataTransfer)?[2,XE(e.dataTransfer,e.type)]:function(e){return qE(e)&&qE(e.target)}(e)?[2,ZE(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"===typeof e.getFile}))?[2,KE(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};QD.defaultProps=HD,QD.propTypes={children:P().func,accept:P().objectOf(P().arrayOf(P().string)),multiple:P().bool,preventDropOnDocument:P().bool,noClick:P().bool,noKeyboard:P().bool,noDrag:P().bool,noDragEventsBubbling:P().bool,minSize:P().number,maxSize:P().number,maxFiles:P().number,disabled:P().bool,getFilesFromEvent:P().func,onFileDialogCancel:P().func,onFileDialogOpen:P().func,useFsAccessApi:P().bool,autoFocus:P().bool,onDragEnter:P().func,onDragLeave:P().func,onDragOver:P().func,onDrop:P().func,onDropAccepted:P().func,onDropRejected:P().func,onError:P().func,validator:P().func};var YD={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function WD(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=UD(UD({},HD),e),r=n.accept,i=n.disabled,o=n.getFilesFromEvent,a=n.maxSize,s=n.minSize,l=n.multiple,u=n.maxFiles,c=n.onDragEnter,d=n.onDragLeave,f=n.onDragOver,h=n.onDrop,p=n.onDropAccepted,g=n.onDropRejected,m=n.onFileDialogCancel,y=n.onFileDialogOpen,v=n.useFsAccessApi,b=n.autoFocus,x=n.preventDropOnDocument,w=n.noClick,M=n.noKeyboard,S=n.noDrag,j=n.noDragEventsBubbling,N=n.onError,C=n.validator,A=(0,t.useMemo)((function(){return function(e){if(jD(e))return Object.entries(e).reduce((function(e,t){var n=dD(t,2),r=n[0],i=n[1];return[].concat(sD(e),[r],sD(i))}),[]).filter((function(e){return ED(e)||DD(e)})).join(",")}(r)}),[r]),T=(0,t.useMemo)((function(){return function(e){return jD(e)?[{description:"Files",accept:Object.entries(e).filter((function(e){var t=dD(e,2),n=t[0],r=t[1],i=!0;return ED(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),i=!1),Array.isArray(r)&&r.every(DD)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),i=!1),i})).reduce((function(e,t){var n=dD(t,2),r=n[0],i=n[1];return uD(uD({},e),{},cD({},r,i))}),{})}]:e}(r)}),[r]),E=(0,t.useMemo)((function(){return"function"===typeof y?y:qD}),[y]),D=(0,t.useMemo)((function(){return"function"===typeof m?m:qD}),[m]),k=(0,t.useRef)(null),O=(0,t.useRef)(null),I=LD((0,t.useReducer)(GD,YD),2),_=I[0],P=I[1],L=_.isFocused,z=_.isFileDialogActive,R=(0,t.useRef)("undefined"!==typeof window&&window.isSecureContext&&v&&"showOpenFilePicker"in window),F=function(){!R.current&&z&&setTimeout((function(){O.current&&(O.current.files.length||(P({type:"closeDialog"}),D()))}),300)};(0,t.useEffect)((function(){return window.addEventListener("focus",F,!1),function(){window.removeEventListener("focus",F,!1)}}),[O,z,D,R]);var U=(0,t.useRef)([]),B=function(e){k.current&&k.current.contains(e.target)||(e.preventDefault(),U.current=[])};(0,t.useEffect)((function(){return x&&(document.addEventListener("dragover",AD,!1),document.addEventListener("drop",B,!1)),function(){x&&(document.removeEventListener("dragover",AD),document.removeEventListener("drop",B))}}),[k,x]),(0,t.useEffect)((function(){return!i&&b&&k.current&&k.current.focus(),function(){}}),[k,b,i]);var V=(0,t.useCallback)((function(e){N?N(e):console.error(e)}),[N]),Q=(0,t.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),U.current=[].concat(PD(U.current),[e.target]),CD(e)&&Promise.resolve(o(e)).then((function(t){if(!ND(e)||j){var n=t.length,r=n>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,a=e.maxFiles,s=e.validator;return!(!o&&t.length>1||o&&a>=1&&t.length>a)&&t.every((function(e){var t=dD(MD(e,n),1)[0],o=dD(SD(e,r,i),1)[0],a=s?s(e):null;return t&&o&&!a}))}({files:t,accept:A,minSize:s,maxSize:a,multiple:l,maxFiles:u,validator:C});P({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),c&&c(e)}})).catch((function(e){return V(e)}))}),[o,c,V,j,A,s,a,l,u,C]),H=(0,t.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=CD(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(n){}return t&&f&&f(e),!1}),[f,j]),Y=(0,t.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=U.current.filter((function(e){return k.current&&k.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),U.current=t,t.length>0||(P({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),CD(e)&&d&&d(e))}),[k,d,j]),W=(0,t.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=LD(MD(e,A),2),i=t[0],o=t[1],l=LD(SD(e,s,a),2),u=l[0],c=l[1],d=C?C(e):null;if(i&&u&&!d)n.push(e);else{var f=[o,c];d&&(f=f.concat(d)),r.push({file:e,errors:f.filter((function(e){return e}))})}})),(!l&&n.length>1||l&&u>=1&&n.length>u)&&(n.forEach((function(e){r.push({file:e,errors:[wD]})})),n.splice(0)),P({acceptedFiles:n,fileRejections:r,type:"setFiles"}),h&&h(n,r,t),r.length>0&&g&&g(r,t),n.length>0&&p&&p(n,t)}),[P,l,A,s,a,u,h,p,g,C]),G=(0,t.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),U.current=[],CD(e)&&Promise.resolve(o(e)).then((function(t){ND(e)&&!j||W(t,e)})).catch((function(e){return V(e)})),P({type:"reset"})}),[o,W,V,j]),q=(0,t.useCallback)((function(){if(R.current){P({type:"openDialog"}),E();var e={multiple:l,types:T};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){W(e,null),P({type:"closeDialog"})})).catch((function(e){!function(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}(e)?!function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?V(e):(R.current=!1,O.current?(O.current.value=null,O.current.click()):V(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):(D(e),P({type:"closeDialog"}))}))}else O.current&&(P({type:"openDialog"}),E(),O.current.value=null,O.current.click())}),[P,E,D,v,W,V,T,l]),Z=(0,t.useCallback)((function(e){k.current&&k.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),q()))}),[k,q]),K=(0,t.useCallback)((function(){P({type:"focus"})}),[]),X=(0,t.useCallback)((function(){P({type:"blur"})}),[]),$=(0,t.useCallback)((function(){w||(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?q():setTimeout(q,0))}),[w,q]),J=function(e){return i?null:e},ee=function(e){return M?null:J(e)},te=function(e){return S?null:J(e)},ne=function(e){j&&e.stopPropagation()},re=(0,t.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.role,o=e.onKeyDown,a=e.onFocus,s=e.onBlur,l=e.onClick,u=e.onDragEnter,c=e.onDragOver,d=e.onDragLeave,f=e.onDrop,h=VD(e,ID);return UD(UD(BD({onKeyDown:ee(TD(o,Z)),onFocus:ee(TD(a,K)),onBlur:ee(TD(s,X)),onClick:J(TD(l,$)),onDragEnter:te(TD(u,Q)),onDragOver:te(TD(c,H)),onDragLeave:te(TD(d,Y)),onDrop:te(TD(f,G)),role:"string"===typeof r&&""!==r?r:"presentation"},n,k),i||M?{}:{tabIndex:0}),h)}}),[k,Z,K,X,$,Q,H,Y,G,M,S,i]),ie=(0,t.useCallback)((function(e){e.stopPropagation()}),[]),oe=(0,t.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,i=e.onClick,o=VD(e,_D);return UD(UD({},BD({accept:A,multiple:l,type:"file",style:{display:"none"},onChange:J(TD(r,G)),onClick:J(TD(i,ie)),tabIndex:-1},n,O)),o)}}),[O,r,l,G,i]);return UD(UD({},_),{},{isFocused:L&&!i,getRootProps:re,getInputProps:oe,rootRef:k,inputRef:O,open:J(q)})}function GD(e,t){switch(t.type){case"focus":return UD(UD({},e),{},{isFocused:!0});case"blur":return UD(UD({},e),{},{isFocused:!1});case"openDialog":return UD(UD({},YD),{},{isFileDialogActive:!0});case"closeDialog":return UD(UD({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return UD(UD({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return UD(UD({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return UD({},YD);default:return e}}function qD(){}function ZD(e){var n,r,i;let{showAdjustInfo:o=!1,isExpanded:a,isCameraUploadEnabled:s=!0}=e;const[l,u]=(0,t.useState)(!1),{t:c}=Qi(),d=Dr((e=>e.settings)),f=Dr((e=>e.search.preFilter)),h=null===(n=d.algolia)||void 0===n?void 0:n.enabled,p=d.multiImageSearch,g=aa(),m=Er(),y=ke(),{setRequestImages:v,resetRegions:b,requestImages:x,addRequestImage:w,regions:M,updateRegion:S,imageRegions:j}=qa((e=>({requestImages:e.requestImages,regions:e.regions,addRequestImage:e.addRequestImage,updateRegion:e.updateRegion,imageRegions:e.regions,resetRegions:e.resetRegions,setRequestImages:e.setRequestImages}))),{detectedObject:N}=Fs((e=>({detectedObject:e.detectedObject}))),{multiImageSearch:C,singleImageSearch:A}=Us(),[T,E]=(0,t.useState)(!1),[D,k]=(0,t.useState)(x.length-1),[O,I]=(0,t.useState)(!0),[_,P]=(0,t.useState)(0),L=(0,t.useRef)(null),z=g.get("query")||"",R=()=>{if(m(tr("")),b(),v([]),z||y.push("/"),!h){let e,t=[];const n=[{key:d.visualSearchFilterKey,values:Object.keys(f)}];z||x.length>0?(m(gr(!0)),zs({settings:d,filters:(0,qn.isEmpty)(f)?void 0:n,text:z}).then((n=>{null===n||void 0===n||n.results.forEach((e=>{t.push({sku:e.sku,score:e.score})})),e={...n,filters:t},m(ur(e)),m(gr(!1))})).catch((e=>{m(gr(!1))}))):m(ur([]))}},F=()=>{O?setTimeout((()=>{P(-1)}),300):P(0),I((e=>!e))},U=UE(N[D],M[D]),{getInputProps:B}=WD({onDrop:async e=>{if(!e[0])return;m(gr(!0)),m($n());const t=await jr(e[0]);let n=await Ps(t);C({images:[...x,n],regions:M,settings:d}).then((()=>{m(gr(!1))})),w(n)}}),V=(0,t.useCallback)((0,qn.debounce)((async(e,t)=>{m(gr(!0)),A({image:t,settings:d,imageRegion:e,showFeedback:!0,compress:!1}).then((e=>{m(gr(!1)),m(hr(e));e.results.find((e=>e.score>=.65))||u(!0),setTimeout((()=>{u(!1)}),2e3)}))}),250),[m,d,A]),Q=(0,t.useCallback)(((e,t)=>{m(gr(!0)),m($n());let n=[...j];n[t]=e,C({images:x,regions:n,settings:d}).then((()=>{m(gr(!1))}))}),[m,j,C,x,d]),H=(0,t.useCallback)((0,qn.debounce)(((e,t)=>{x.length>1&&!(0,qn.isUndefined)(t)?(S(e,t),Q(e,t)):(S(e,0),V(e,x[0]))}),50),[V,Q,x,S]),[Y,W]=(0,t.useState)(!1);return(0,La.jsxs)(La.Fragment,{children:[(0,La.jsxs)("div",{ref:L,className:Ai()(["bg-primary","justify-center",O?p?"pt-6":"py-5":"","px-7","w-full","desktop:px-5","relative","hidden","desktop:flex"]),style:{marginTop:O?"0px":"calc(-100% + 30px)",transition:O?"margin-top 0.4s linear":"",zIndex:_},children:[(0,La.jsx)("div",{className:"w-full bg-[#55566b] aspect-square flex just items-center",children:(0,La.jsx)(al.Preview,{onSelectionChange:e=>{H(e,D)},image:x[D],selection:M[D]||Hn,regions:U||[],dotColor:"#FBD914",minCropWidth:30,minCropHeight:30,rounded:!0})}),(l||o)&&(0,La.jsxs)("div",{style:{backgroundColor:"#3E36DC",display:"flex",columnGap:"6px",padding:"5px",width:"fit-content",marginTop:"auto",position:"absolute",bottom:-20,borderRadius:"16px",zIndex:1e3,height:"fit-content"},children:[(0,La.jsx)(al.Icon,{name:"info",color:"white",width:12,height:12}),(0,La.jsx)("p",{style:{fontSize:12,color:"#fff",paddingRight:"4px"},children:o?c("Crop the image for better results"):"Crop the image for better results"})]}),(0,La.jsx)("div",{onClick:()=>R(),className:"absolute left-2 top-2 flex justify-center items-center cursor-pointer",children:(0,La.jsx)("div",{className:"rounded-full bg-white/50 hover:bg-white w-6 h-6 flex justify-center items-center",children:(0,La.jsx)(al.Icon,{name:"trash",className:"text-primary",width:14,height:14})})})]}),(0,La.jsxs)("div",{className:Ai()(["bg-primary","justify-center","p-5",Y?"":"py-2","w-full","relative","flex","desktop:hidden"]),children:[(0,La.jsx)("div",{className:"w-full ".concat(Y?"bg-[#55566b] ":""," flex just items-center"),children:(0,La.jsx)(al.Preview,{onSelectionChange:e=>{H(e,D)},image:x[D],selection:M[D]||Hn,regions:U||[],minWidth:Math.min((null===(r=x[D])||void 0===r?void 0:r.width)/(null===(i=x[D])||void 0===i?void 0:i.height)*80,200),minHeight:80,dotColor:Y?"#FBD914":"",minCropWidth:Y?30:5,minCropHeight:Y?30:5,rounded:!1,expandAnimation:Y,shrinkAnimation:!Y,onExpand:()=>{W(!0)},showGrip:Y,draggable:!!Y})}),(l||o)&&(0,La.jsxs)("div",{style:{backgroundColor:"#3E36DC",display:"flex",columnGap:"6px",padding:"5px",width:"fit-content",marginTop:"auto",position:"absolute",bottom:-16,borderRadius:"16px",zIndex:1e3,height:"fit-content",alignItems:"center"},children:[(0,La.jsx)(al.Icon,{name:"info",color:"white",width:12,height:12}),(0,La.jsx)("p",{style:{fontSize:12,color:"#fff",paddingRight:"4px"},children:o?c("Crop the image for better results"):"Crop the image for better results"})]}),(0,La.jsx)("div",{onClick:()=>W((e=>!e)),className:"absolute right-1 ".concat(Y?"bottom-1":"bottom-8"," flex justify-center items-center desktop:hidden p-1"),children:(0,La.jsxs)("div",{className:"rounded-full bg-white w-6 h-6 flex justify-center items-center desktop:hidden",children:[Y&&(0,La.jsx)(al.Icon,{name:"collapse",className:"text-primary"}),!Y&&(0,La.jsx)(al.Icon,{name:"crop",className:"text-primary"})]})}),(0,La.jsx)("div",{onClick:()=>R(),className:"absolute left-1 ".concat(Y?"top-1":"top-8"," flex justify-center items-center desktop:hidden p-1"),children:(0,La.jsx)("div",{className:"rounded-full bg-white w-6 h-6 flex justify-center items-center desktop:hidden",children:(0,La.jsx)(al.Icon,{name:"trash",className:"text-primary",width:14,height:14})})})]}),(0,La.jsxs)("div",{className:Ai()([!p&&"hidden"]),children:[(0,La.jsxs)("div",{className:Ai()(["flex","items-center","gap-x-2","h-28","w-full","bg-primary","justify-center","relative","py-4","desktop:pt-7 desktop:pb-5"]),children:[x.map(((e,t)=>(0,La.jsxs)("div",{className:Ai()(["rounded-md","relative","p-1",D===t&&O?" bg-white":"bg-transparent"]),children:[(0,La.jsx)("img",{className:Ai()(["w-[70px]","h-[70px]","desktop:w-[52px]","desktop:h-[52px]","rounded-md","object-cover","shadow-inner"]),src:(()=>{if(null!==e&&void 0!==e&&e.toDataURL)return e.toDataURL()})(),alt:"",onClick:()=>{k(t),O||F()}}),D===t&&(0,La.jsx)("div",{className:Ai()(["absolute","w-[70px]","h-[70px]","desktop:w-[52px]","desktop:h-[52px]","rounded-md","top-1","bg-black/15"]),onClick:()=>{k(t),O||F()}})]},t))),x.length<3&&p&&(0,La.jsxs)("label",{className:Ai()(["w-[70px]","h-[70px]","desktop:w-[52px]","desktop:h-[52px]","bg-[#55566B]/50","flex","justify-center","items-center","border","border-dashed","border-[#AAABB5]","rounded-md","cursor-pointer"]),onClick:()=>{s&&E(!0)},htmlFor:s?"":"icon-add-image",children:[(0,La.jsx)("input",{accept:"image/*",id:"icon-add-image",type:"file",style:{display:"none"},...B({onClick:e=>{e.currentTarget.value="",e.stopPropagation()}})}),(0,La.jsx)(al.Icon,{name:"plus",className:Ai()(["text-[#AAABB5] desktop:hidden"])}),(0,La.jsx)("div",{className:"hidden desktop:block",children:(0,La.jsx)(al.Icon,{name:"download",className:Ai()(["text-[#AAABB5]"])})})]}),(0,La.jsx)("div",{onClick:()=>F(),className:"absolute right-5 flex justify-center items-center desktop:hidden p-2",children:(0,La.jsx)("div",{className:"rounded-full bg-white w-6 h-6 flex justify-center items-center desktop:hidden",children:(0,La.jsx)(al.Icon,{name:"crop",className:"text-primary"})})}),(0,La.jsx)(ll,{show:T,onClose:()=>E(!1)})]}),x.length<3&&p&&(0,La.jsx)("p",{className:"text-[10px] pb-4 w-full text-center bg-primary text-white -mt-[1px]",children:"Add up to three photos for a more accurate visual search."})]})]})}const KD=t.memo(ZD);const XD=function(e){let{showAdjustInfo:t,showPostFilter:n,disjunctiveFacets:r}=e;const i=Dr((e=>e)),{search:o,settings:a}=i,{requestImage:s}=o;return(0,La.jsx)("div",{className:"wrap-main-col-left",style:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:(0,La.jsxs)("div",{children:[a.preview&&s&&(0,La.jsx)("div",{className:"col-left",children:(0,La.jsx)("div",{className:"box-preview",children:(0,La.jsx)("div",{className:"preview-item",style:{backgroundColor:"white",width:"100%"},children:(0,La.jsx)("div",{style:{width:"100%"},children:(0,La.jsx)(KD,{showAdjustInfo:t,isExpanded:!0,isCameraUploadEnabled:!1})})})})}),n&&(0,La.jsxs)("div",{className:"col-left__bottom",style:{marginTop:s?"16px":"48px"},children:[a.algolia.enabled&&(0,La.jsx)(dx,{disjunctiveFacets:r}),!a.algolia.enabled&&(0,La.jsx)(vv,{})]})]})})};const $D=function(e){var t;let{requestImage:n,rfqRef:r,rfqStatus:i,selectedRegion:o,setIsRfqModalOpen:a}=e;const s=(0,Qe.useMediaQuery)({query:"(max-width: 776px)"});return(0,La.jsx)("div",{style:{padding:"0px 16px 0px 16px",backgroundColor:"#F6F3F1",width:"100%",marginBottom:s?"0px":"32px",alignSelf:"end",height:"248px",display:"flex",alignItems:"center"},className:"rfq-box",children:(0,La.jsxs)("div",{style:{width:"100%",display:"flex",columnGap:"16px",alignItems:"center",justifyContent:"space-around"},children:[(0,La.jsx)("div",{children:(0,La.jsx)("img",{src:null===(t=tT(n,o))||void 0===t?void 0:t.toDataURL(),alt:"request_image",style:{mixBlendMode:"inactive"!==i?"overlay":"unset",maxHeight:"181px",maxWidth:"181px",borderRadius:"2px"}})}),(0,La.jsxs)("div",{children:[(0,La.jsxs)("div",{style:{paddingBottom:"12px"},children:[(0,La.jsx)("div",{style:{fontSize:"14px",color:"inactive"===i?"#4B4B4A":"#CACAD1",fontWeight:"bold"},children:s?"No matches found?":"No matches found for your request?"}),(0,La.jsx)("div",{style:{fontSize:"12px",maxWidth:"320x",lineHeight:"14.1px",color:"inactive"===i?"#4B4B4A":"#CACAD1",fontWeight:"normal"},children:"Get personalised help from our team of product experts."})]}),(0,La.jsx)("button",{style:{maxWidth:"200px",background:"inactive"===i?"#4B4B4A":"#E9E9EC",boxShadow:"inactive"===i?"0px 0px 4px 0px rgba(0, 0, 0, 0.25)":"",borderRadius:"2px",padding:"16px 16px 16px 16px",display:"flex",alignItems:"center",color:"inactive"===i?"#fff":"#CACAD1",fontSize:"14px",height:"48px",cursor:"inactive"===i?"pointer":"default",border:"none"},disabled:"inactive"!==i,onClick:()=>{a(!0)},children:"Request a Quote"})]})]})})},JD=/.+\@.+\..+$/,ek=e=>{switch(e.status){case 400:default:return"Your email could not be sent, please try again or send an email to:";case 421:case 450:case 451:case 452:return"Email delivery failed. Rest assured, we're continuously attempting to send it for you. Alternatively, you can forward the email to:"}};function tk(e){var n,r;let{requestImage:i,selectedRegion:o,setIsInquiryModalOpen:a,isInquiryModalOpen:s}=e;const l=Dr((e=>e)),{search:{preFilter:u},settings:c}=l,d=Object.keys(u),[f,h]=(0,t.useState)(""),[p,g]=(0,t.useState)(void 0),m=(0,Qe.useMediaQuery)({query:"(max-width: 776px)"}),[y,v]=(0,t.useState)(""),b=t.useCallback((e=>{v(e.slice(0,150))}),[v]);(0,t.useEffect)((()=>hT.init("SMGihPnuEGcYLm0V4")),[]),(0,t.useEffect)((()=>{f&&(JD.test(f)?g(!0):g(!1))}),[f]);return(0,La.jsx)(za,{openModal:s,rounded:!1,handleClose:e=>{a(!1)},children:(0,La.jsxs)("div",{style:{display:"flex",width:m?"360px":"378px",flexDirection:"column",backgroundColor:"#F3F3F5"},children:[(0,La.jsxs)("div",{style:{padding:"16px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,La.jsx)("p",{style:{color:"#2B2C46",fontSize:m?"18px":"20px",fontWeight:"bold"},children:i?"Submit your image for inquiry":"Submit your inquiry"}),(0,La.jsx)("div",{onClick:()=>a(!1),style:{display:"flex",padding:"1px"},children:(0,La.jsx)(il.A,{style:{fontSize:16,color:"black",cursor:"pointer"}})})]}),i&&(0,La.jsx)("div",{style:{padding:"16px",backgroundColor:"#F3F3F5",display:"flex",justifyContent:"center"},children:(0,La.jsx)("img",{src:null===(n=tT(i,o))||void 0===n?void 0:n.toDataURL(),alt:"request_image",style:{maxHeight:"200px"}})}),(0,La.jsxs)("div",{style:{padding:"16px 16px 16px 16px",backgroundColor:"#F3F3F5",display:"flex",flexDirection:"column",rowGap:"16px"},children:[(0,La.jsxs)("div",{children:[(0,La.jsx)("p",{style:{fontSize:"12px",color:"#2B2C46",marginBottom:"8px"},children:"Your email (required)"}),(0,La.jsx)("input",{value:f,onChange:e=>h(e.currentTarget.value.trim()),style:{width:"100%",border:"none",height:"32px",padding:"8px 16px 8px 16px",fontSize:"13px",color:" #2B2C46"}}),!p&&!(0,qn.isUndefined)(p)&&(0,La.jsx)("p",{style:{color:"red",fontSize:"12px",paddingTop:"8px"},children:"Please enter a valid email."})]}),c.preFilterOption&&(0,La.jsxs)("div",{children:[(0,La.jsxs)("div",{style:{display:"flex",columnGap:"4px",alignItems:"center",marginBottom:"8px"},children:[(0,La.jsx)("p",{style:{fontSize:"12px",color:"#2B2C46"},children:"Machine"}),(0,La.jsx)(Iu,{title:"Please select a pre-filter before search request to refine and yield accurate results.",placement:"top",arrow:!0,children:(0,La.jsx)(al.Icon,{name:"info",style:{cursor:"pointer"},width:12,height:12})})]}),(0,La.jsx)("div",{style:{width:"100%",border:"none",padding:"8px 16px 8px 16px",fontSize:"13px",color:"#2B2C46",minHeight:"32px",backgroundColor:"#fff"},children:d.join(", ")||"Pre-filter is not selected"})]}),(0,La.jsxs)("div",{children:[(0,La.jsxs)("div",{style:{marginBottom:"8px",display:"flex",justifyContent:"space-between",fontSize:"12px",color:"#2B2C46"},children:[(0,La.jsx)("p",{children:"Additional information"}),(0,La.jsx)("p",{children:"".concat(y.length,"/150")})]}),(0,La.jsx)(LE,{value:y,onChange:e=>b(e.currentTarget.value),style:{width:"100%",border:"none",maxWidth:"346px",minHeight:"40px",padding:"8px 16px 8px 16px",fontSize:"13px",color:" #2B2C46"}})]})]}),(0,La.jsxs)("div",{style:{display:"flex"},children:[(0,La.jsx)("button",{style:{height:"66px",display:"flex",alignItems:"center",width:"50%",backgroundColor:"#2B2C46",color:"white",fontSize:"14px",paddingLeft:"16px",border:"none",cursor:"pointer"},onClick:()=>a(!1),children:"Cancel"}),(0,La.jsx)("button",{style:{height:"66px",display:"flex",alignItems:"center",width:"50%",backgroundColor:p?null===(r=c.theme)||void 0===r?void 0:r.primaryColor:"#E9E9EC",color:p?"#fff":"#AAABB5",fontSize:"14px",paddingLeft:"16px",border:"none",cursor:p?"pointer":"normal"},disabled:!p,onClick:async e=>{var t;e.preventDefault();const n=i?tT(i,o):null;a(!1);const r=null===(t=c.support)||void 0===t?void 0:t.emailTemplateId;if(r){try{await hT.send("service_zfsxshi",r,{email_id:f.trim(),information_text:y||"<not specified>",request_image:null===n||void 0===n?void 0:n.toDataURL(),prefilter_values:null!==d&&void 0!==d&&d.length?d.join(", "):"<not specified>"}),kE.success("Request sent successfully")}catch(s){DE((e=>(0,La.jsxs)("div",{style:{display:"flex",flexDirection:"column",fontSize:"14px",width:"294px"},children:[(0,La.jsx)("span",{style:{fontWeight:"bold"},children:"Email not sent"}),(0,La.jsx)("span",{children:ek(s)}),(0,La.jsx)("a",{href:"mailto:support@nyris.io?subject=Request for quotation&body=".concat(encodeURIComponent("Hello,\n I filled out the support form on the Search Suite, but it failed. I inquired the following:\n email:\n Pre-filter:\n Additional Text: ")),style:{padding:"8px 16px 8px 16px",border:"1px solid #000",marginTop:"16px",backgroundColor:"transparent",color:"#000",cursor:"pointer",width:"fit-content"},children:"support@nyris.io"})]})),{duration:5e3,style:{background:"#FFE5EF",color:"#000000",maxWidth:"400px"},icon:(0,La.jsx)("div",{style:{minWidth:"20px",minHeight:"20px"},children:(0,La.jsx)(al.Icon,{name:"error"})})})}a(!1)}},children:"Send"})]})]})})}const nk=function(e){var n;let{requestImage:r,selectedRegion:i,query:o}=e;const a=(0,Qe.useMediaQuery)({query:"(max-width: 776px)"}),[s,l]=(0,t.useState)(!1),[u,c]=(0,t.useState)("inactive");(0,t.useEffect)((()=>{c("inactive")}),[i,o]);const{description:d,emailInquiry:f,supportNumber:h}=Dr((e=>e.settings.support))||{},{secondaryColor:p}=Dr((e=>e.settings.theme))||{},{t:g}=Qi();return(0,La.jsxs)(La.Fragment,{children:[s&&(0,La.jsx)(tk,{requestImage:r,selectedRegion:i,setIsInquiryModalOpen:l,isInquiryModalOpen:s}),(0,La.jsx)("div",{style:{backgroundColor:"#F3F3F5",width:"100%",marginBottom:"24px",alignSelf:"end",display:"flex",alignItems:"center"},className:"rfq-box",children:(0,La.jsxs)("div",{style:{width:"100%",display:"flex",columnGap:a?"16px":"26px",alignItems:"center"},children:[r&&(0,La.jsx)("div",{children:(0,La.jsx)("img",{src:null===(n=tT(r,i))||void 0===n?void 0:n.toDataURL(),alt:"request_image",style:{mixBlendMode:"unset",maxHeight:a?"120px":"181px",maxWidth:a?"120px":"181px",borderRadius:"2px"}})}),(0,La.jsxs)("div",{style:{width:"100%"},children:[(0,La.jsxs)("div",{style:{paddingBottom:"8px",paddingLeft:"16px"},children:[(0,La.jsx)("div",{style:{fontSize:"14px",color:"inactive"===u?"#4B4B4A":"#2B2C46",fontWeight:"bold"},children:"".concat(g(a?"No matches found":"No matches found for your request"),"?")}),(0,La.jsx)("div",{style:{fontSize:"14px",maxWidth:"320x",lineHeight:"16px",color:"inactive"===u?"#4B4B4A":"#2B2C46",fontWeight:"normal"},children:d})]}),(0,La.jsxs)("div",{style:{display:"flex",gap:a?"8px":"16px",width:"100%",maxWidth:"400px"},className:"support-button-wrapper",children:[f&&(0,La.jsx)("div",{style:{width:f&&h?"50%":"100%",maxWidth:"170px",minWidth:"86px",background:"inactive"===u?p:"#E9E9EC",boxShadow:"inactive"===u?"0px 0px 4px 0px rgba(0, 0, 0, 0.25)":"",borderRadius:"2px",padding:a?"8px 8px 8px 8px":"8px 16px 8px 16px",display:"flex",alignItems:"center",color:"inactive"===u?"#fff":"#CACAD1",fontSize:"13px",cursor:"inactive"===u?"pointer":"default",border:"none"},onClick:()=>{l(!0)},children:(0,La.jsxs)("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,La.jsx)("p",{children:"Inquiry"}),(0,La.jsx)(al.Icon,{name:"email",color:"#fff",width:16,height:12})]})}),h&&(0,La.jsx)("a",{style:{width:f&&h?"50%":"100%",maxWidth:"170px",minWidth:"86px",background:p,boxShadow:"0px 0px 4px 0px rgba(0, 0, 0, 0.25)",borderRadius:"2px",padding:a?"8px 8px 8px 8px":"8px 16px 8px 16px",display:"flex",alignItems:"center",color:"#fff",fontSize:"13px",cursor:"pointer",border:"none",fontWeight:500},href:"tel:".concat(h),children:(0,La.jsxs)("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,La.jsx)("p",{children:" Call us"}),(0,La.jsx)(al.Icon,{name:"call",color:"#fff",width:16,height:16})]})})]})]})]})})]})};const rk=function(e){let{submitFeedback:n,onFeedbackClose:r}=e;const[i,o]=(0,t.useState)(!1);return(0,La.jsxs)("div",{className:"feedback-wrapper",style:{backgroundColor:i?"#D3D1FF":"#e4e3ffed",transition:"background-color 0.3s ease"},children:[(0,La.jsx)("p",{className:"desktop:w-[146px]",children:"Are these results useful?"}),(0,La.jsx)("div",{className:"feedback-icon-wrapper",onClick:()=>n(!1),onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:(0,La.jsx)(al.Icon,{name:"dislike"})}),(0,La.jsx)("div",{className:"feedback-icon-wrapper scroll-n",onClick:()=>n(!0),onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:(0,La.jsx)(al.Icon,{name:"like"})}),(0,La.jsx)("div",{className:"feedback-icon-wrapper-close",onClick:()=>r(),children:(0,La.jsx)(al.Icon,{name:"close"})})]})};Nc(0);function ik(e){let{className:n}=e;const r=Dr((e=>e)),i=Er(),{search:{postFilter:o,results:a}}=r,s=pv(a),l=(0,t.useMemo)((()=>{const e=[];return Object.keys(s).forEach((t=>{s[t].forEach((n=>{(0,qn.get)(o,"".concat(t,".").concat(n.value))&&e.push({key:t,...n})}))})),e}),[s,o]);return l.length?(0,La.jsx)("div",{className:"wrap-box-refinements",children:(0,La.jsxs)("div",{style:{display:"flex",flexFlow:"wrap",columnGap:"8px"},children:[l.map((e=>(0,La.jsxs)("div",{style:{display:"flex",alignItems:"center",columnGap:"12px",fontSize:"12px",padding:"4px 8px 4px 8px",backgroundColor:"#E9E9EC",borderRadius:"18px",width:"fit-content"},children:[(0,La.jsxs)("p",{children:[e.value," (",e.count,")"]}),(0,La.jsx)("div",{style:{padding:"2px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},onClick:()=>{i(or({[e.key]:e.value}))},children:(0,La.jsx)(al.Icon,{name:"close",width:12,height:12})})]},e.value))),(0,La.jsx)("div",{className:Ai()("flex items-center"),style:{padding:"4px",cursor:"pointer"},onClick:()=>i(Xn()),children:(0,La.jsx)("div",{className:"text-f12",style:{color:"#E31B5D"},children:"Clear all"})},"clear")]})}):null}const ok=av((e=>{let{items:n,refine:r}=e;const i=(0,Qe.useMediaQuery)({query:"(max-width: 776px)"}),o=Er(),a=Dr((e=>e)),{search:s}=a,{firstSearchResults:l,firstSearchImage:u,firstSearchPrefilters:c}=s,d=(0,t.useCallback)((()=>r(n)),[r,n]),{t:f}=Qi(),{setRequestImages:h,resetRegions:p}=qa((e=>({setRequestImages:e.setRequestImages,resetRegions:e.resetRegions})));return(0,La.jsxs)("div",{className:"go-back-button ".concat(i?"mobile-view":""),onClick:()=>(o(ur(l)),o(lr(u)),h([u]),o(ar(c)),o(Xn()),p(),void d()),children:[(0,La.jsx)(al.Icon,{name:"back"}),f("Back to request image")]})}));function ak(e){var n,r,i,o,a;const s=Er(),l=(0,t.useRef)(null),u=Dr((e=>e)),{search:c,settings:d}=u,{allSearchResults:f}=e,{requestImage:h,selectedRegion:p,preFilter:g,loadingSearchAlgolia:m,results:y,showFeedback:v,firstSearchResults:b,firstSearchImage:x,fetchingResults:w}=c,M=(0,Qe.useMediaQuery)({query:"(max-width: 776px)"}),S=()=>l.current.scrollIntoView("-100px"),[j,N]=(0,t.useState)(),{t:C}=Qi(),[A]=(0,t.useState)(!1),[T,E]=(0,t.useState)("inactive"),[D,k]=(0,t.useState)(!1),O=(0,t.useRef)(null),[I,_]=(0,t.useState)(),[P,L]=(0,t.useState)(!1),[z,R]=(0,t.useState)(!1),F=aa().get("query")||c.valueTextSearch.query,U=null===(n=d.algolia)||void 0===n?void 0:n.enabled,B=d.postFilterOption,V=ke(),{singleImageSearch:Q}=Us(),{resetRegions:H,imageRegions:Y,requestImages:W}=qa((e=>({requestImages:e.requestImages,updateRegion:e.updateRegion,resetRegions:e.resetRegions,imageRegions:e.regions})));(0,t.useEffect)((()=>{m&&(_("hidden"),L(!1))}),[m]),(0,t.useEffect)((()=>{p&&(E("inactive"),_("hidden"))}),[p]),(0,t.useEffect)((()=>{h&&(_("hidden"),S(),H())}),[h]);const G=h?["sku:DOES_NOT_EXIST<score=1> "]:[],q=null!==c&&void 0!==c&&c.results?null===c||void 0===c?void 0:c.results.slice().reverse().map(((e,t)=>"sku:'".concat(e.sku,"'<score=").concat(t,"> "))):"",Z=[...G,...q].join("OR ");(0,t.useEffect)((()=>{if(document.title="Search results",h||(0,qn.isEmpty)(F))return;const e=Object.keys(g),t=e.length>0?e.map((e=>"".concat(d.alogoliaFilterField,":'").concat(e,"'"))).join(" OR "):"";N(t)}),[g,h,F,d.alogoliaFilterField]),(0,t.useEffect)((()=>{if(!h)return;const e=Object.keys(g),t=e.length>0?e.map((e=>"".concat(d.alogoliaFilterField,":'").concat(e,"'"))).join(" OR "):"",n=e.length>0?Z?"(".concat(Z,") AND ").concat(t):t:Z;N(n)}),[Z,d.alogoliaFilterField]),(0,t.useEffect)((()=>{var e;"/"===(null===(e=V.location)||void 0===e?void 0:e.pathname)?R(!0):R(!1)}),[V.location]);const K=(0,t.useMemo)((()=>B&&((null===f||void 0===f?void 0:f.hits.length)>0&&U||(null===y||void 0===y?void 0:y.length)>0)),[B,f,U,y]),X=(0,t.useMemo)((()=>h||B&&K),[K,B,h]);(0,t.useEffect)((()=>{var t;if(0===(null===y||void 0===y?void 0:y.length)||0===(null===(t=e.allSearchResults)||void 0===t?void 0:t.hits.length))return _("hidden"),void mr(!1);if(!window.settings.showFeedback||!v)return;const n=()=>{_((e=>"submitted"===e?"submitted":"visible")),s(mr(!1))};return setTimeout((()=>{window.removeEventListener("scroll",n,{capture:!0}),_((e=>"submitted"===e?"submitted":"visible")),s(mr(!1))}),3e3),window.addEventListener("scroll",n,{capture:!0,once:!0}),()=>{window.removeEventListener("scroll",n)}}),[v,y,null===(r=e.allSearchResults)||void 0===r?void 0:r.hits]);return(0,La.jsx)(La.Fragment,{children:(0,La.jsx)("div",{className:"wrap-main-result loading",id:"wrap-main-result",ref:l,children:(0,La.jsxs)(La.Fragment,{children:[D&&(0,La.jsx)(FE,{setIsRfqModalOpen:k,isRfqModalOpen:D,setRfqStatus:E}),j&&U&&(0,La.jsx)(XC,{query:F,filters:j}),(0,La.jsxs)("div",{className:"box-wrap-result-component",children:[!M&&z&&(0,La.jsx)("div",{className:"box-search",children:(0,La.jsx)(Yx,{})}),(0,La.jsxs)("div",{className:"box-result",style:{height:d.showPoweredByNyris?"calc(100vh - 87px)":"calc(100vh - 148px)"},children:[!M&&X&&(0,La.jsx)(XD,{allSearchResults:e.allSearchResults,showAdjustInfo:A,showPostFilter:K,disjunctiveFacets:e.allSearchResults.disjunctiveFacets}),(0,La.jsxs)("div",{className:"col-right ".concat(d.preview&&"ml-auto mr-auto"," ").concat(M&&"col-right-result-mobile"),style:{paddingTop:M?"0px":"40px",overflow:M?"":"auto",display:"flex",flexDirection:"column",overflowX:"hidden",position:"relative"},children:[M||!b||W[0]===x||w?"":(0,La.jsx)(ok,{}),!M&&d.algolia.enabled&&(0,La.jsx)("div",{className:"wrap-box-refinements",children:(0,La.jsx)(VM,{statusSwitchButton:!0})}),(0,La.jsx)("div",{className:"flex flex-col h-fit desktop:hidden",children:d.preview&&W.length>0&&(0,La.jsx)(KD,{showAdjustInfo:!1})}),(0,La.jsxs)("div",{style:{display:"flex",flexDirection:"column",flexGrow:1,backgroundColor:"#FAFAFA"},className:"mt-4 desktop:mt-0",children:[M&&b&&W[0]!==x&&!w?(0,La.jsx)("div",{className:"go-back-mobile-container",children:(0,La.jsx)(ok,{})}):"",(0,La.jsx)("div",{className:"box-item-result ml-auto mr-auto",style:{paddingLeft:M?0:16,height:"100%",position:"relative"},children:(0,La.jsxs)("div",{className:"box-item-result ml-auto mr-auto",style:{height:"fit-content"},children:[!M&&!d.algolia.enabled&&(0,La.jsx)(ik,{}),(0,La.jsx)(VC,{getUrlToCanvasFile:async e=>{s(gr(!0)),M&&(S(),s(er(!1))),s($n()),Q({image:e,settings:d,showFeedback:!0,compress:!1}).then((()=>{s(gr(!1))}))},setLoading:!1,sendFeedBackAction:async e=>{rS(u,"like"===e)},requestImage:h,searchQuery:F}),(0,La.jsxs)("div",{className:"box-item-result ml-auto mr-auto",style:{position:"absolute"},children:[P&&(0,La.jsx)("div",{className:"feedback-floating",children:(0,La.jsx)("div",{className:"feedback-section",children:(0,La.jsx)("div",{className:"feedback-success",children:"Thanks for your feedback!"})})}),"visible"===I&&!P&&(0,La.jsxs)("div",{className:"feedback-floating",children:[(0,La.jsx)("div",{className:"feedback-section feedback-backdrop-blur"}),(0,La.jsx)("div",{className:"feedback-section",children:(0,La.jsx)(rk,{submitFeedback:async e=>{L(!0),setTimeout((()=>{L(!1)}),3e3),_("submitted"),s(mr(!1)),rS(u,e)},onFeedbackClose:()=>{_("submitted"),s(mr(!1))}})})]})]})]})}),(0,La.jsxs)("div",{className:"box-item-result ml-auto mr-auto",style:{display:"flex",flexDirection:"column",flexGrow:1,paddingLeft:M?0:16},children:[(null===(i=e.allSearchResults)||void 0===i?void 0:i.hits.length)>0&&(h||F)&&(0,La.jsx)("div",{className:"pagination-result",style:{width:"100%",marginTop:"24px",padding:"0 20%"},children:(0,La.jsx)(EA,{showFirst:!1,translations:{previous:(0,La.jsx)(LM.A,{style:{color:"#161616"}}),next:(0,La.jsx)(zM.A,{style:{color:"#161616"}})}})}),(0,La.jsxs)("div",{style:{display:"flex",flexGrow:1,marginTop:U?"":"24px"},children:[W.length>0&&!m&&!e.isSearchStalled&&d.rfq&&d.rfq.enabled&&(0,La.jsx)($D,{rfqRef:O,rfqStatus:T,setIsRfqModalOpen:k,requestImage:W[0],selectedRegion:Y[0]}),!m&&!e.isSearchStalled&&d.support&&d.support.enabled&&(F||h)&&(0,La.jsx)(nk,{requestImage:W[0],selectedRegion:Y[0],query:F})]})]})]}),!M&&(null===(o=e.allSearchResults)||void 0===o||null===(a=o.hits)||void 0===a?void 0:a.length)>0&&U&&(0,La.jsx)("div",{children:(0,La.jsx)("div",{className:"box-notify",children:(0,La.jsx)(eS,{search:c,children:(0,La.jsxs)("div",{style:{padding:"0 20px",display:"flex"},className:"box-change-hit-items",children:[(0,La.jsxs)("span",{style:{paddingRight:"10px"},children:[C("Items per page"),":"]}),(0,La.jsx)(eT,{items:Yn,defaultRefinement:20})]})})})}),M&&d.showPoweredByNyris&&(0,La.jsx)("div",{style:{backgroundColor:"#FAFAFA",display:"flex",justifyContent:"center",paddingBottom:"46px",paddingTop:"8px"},children:(0,La.jsx)(CM,{style:{cursor:"pointer"},onClick:()=>{window.open("https://www.nyris.io","_blank")},color:"#AAABB5"})})]})]})]})]})})})}const sk=Ni((0,t.memo)(ak));const lk=function(){const e=(0,Qe.useMediaQuery)({query:"(max-width: 776px)"}),{supportEmail:t}=Dr((e=>e.settings.auth0));return(0,La.jsxs)("div",{style:{backgroundColor:"white",height:"100%",paddingLeft:e?"32px":"64px",paddingTop:e?"24px":"32px",display:"flex",flexDirection:"column",gap:"16px"},children:[(0,La.jsx)("div",{style:{fontSize:"20px",fontWeight:"bold",color:"#2B2C46"},children:"Email verification is required"}),(0,La.jsx)("div",{style:{width:"200px",height:"4px",background:"#3E36DC",borderRadius:"4px"}}),(0,La.jsx)("p",{style:{color:"#2B2C46",fontSize:"13px"},children:"Please verify your email for access to the Search Suite. If you haven't received your verification email yet, contact support."}),(0,La.jsx)("a",{className:"contact-support",style:{backgroundColor:"#2B2C46",padding:"8px 16px 8px 16px",color:"#fff",border:"none",cursor:"pointer",fontSize:"14px",width:"fit-content"},href:"mailto:".concat(t||"support@nyris.io","?subject=Resend Email Verification&body="),children:"Contact Support"})]})},uk=e=>{let{component:n,...r}=e;const{auth0:i}=Dr((e=>e.settings)),{user:o,isAuthenticated:a,isLoading:s,loginWithRedirect:l}=oa();(0,t.useEffect)((()=>{s||o||a||!i.enabled||l()}),[l,s,o,a,i]);const u=n;return(0,La.jsx)(Se,{...r,render:e=>i.enabled?!a||null!==o&&void 0!==o&&o.email_verified?a&&null!==o&&void 0!==o&&o.email_verified?(0,La.jsx)(u,{...e}):(0,La.jsx)("div",{}):(0,La.jsx)(lk,{}):(0,La.jsx)(u,{...e})})},ck=()=>{const{user:e,isAuthenticated:n,isLoading:r,loginWithRedirect:i}=oa(),{auth0:o}=Dr((e=>e.settings));return(0,t.useEffect)((()=>{r||e||n||!o.enabled||i(),!n&&o.enabled||(window.location.href="/")}),[i,r,e,n,o]),(0,La.jsx)("div",{})},dk=()=>{const{user:e,isAuthenticated:n,isLoading:r,loginWithRedirect:i,logout:o}=oa(),{auth0:a}=Dr((e=>e.settings));return(0,t.useEffect)((()=>{r||e||n||!a.enabled?n?o({logoutParams:{returnTo:window.location.origin}}):a.enabled||(window.location.href="/"):i()}),[i,n,r,e,o,a]),(0,La.jsx)("div",{})};function fk(e){const t=ke(),n=Er(),{isLoading:r}=e,i=Dr((e=>e.settings)),{t:o}=Qi(),{cadSearch:a}=sl(),{singleImageSearch:s}=Us(),l=window.settings.cadSearch,{getRootProps:u,getInputProps:c,isDragActive:d}=WD({onDrop:async(e,r,o)=>{o.stopPropagation(),t.push("/result"),n(gr(!0)),n($n()),(0,Is.isCadFile)(e[0])&&l?(n(gr(!0)),n($n()),"/result"!==t.location.pathname&&t.push("/result"),a({file:e[0],settings:i,newSearch:!0}).then((e=>{n(gr(!1))}))):s({image:e[0],settings:i,showFeedback:!0}).then((()=>{n(gr(!1))}))}});return(0,La.jsxs)("div",{className:"box-content-main",style:{marginTop:32,paddingTop:0,display:"flex"},children:[r&&(0,La.jsx)(Xx,{}),(0,La.jsx)("div",{className:"box-border-none",style:{position:"relative"},...u({onClick:e=>{e.stopPropagation()}}),children:(0,La.jsxs)("div",{className:"box-content-drop ".concat(d?"drag-active":""),...u({onClick:e=>{e.stopPropagation()}}),children:[(0,La.jsx)("div",{style:{marginBottom:16},children:(0,La.jsx)(al.Icon,{name:"drop",width:48,height:48})}),(0,La.jsxs)("label",{className:"",style:{fontSize:14},children:[(0,La.jsx)("span",{className:"fw-700 text-f14",style:{paddingRight:"4px"},children:o("Drag and drop")}),o("an image here")]}),(0,La.jsx)("input",{...c(),type:"file",name:"file",id:"select_file",className:"inputFile",placeholder:"Choose photo",style:{display:"block",cursor:"pointer"},accept:"".concat(l?".stp,.step,.stl,.obj,.glb,.gltf,":"","image/*")})]})})]})}const hk=(0,t.memo)(fk);var pk;function gk(){return gk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gk.apply(this,arguments)}function mk(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",gk({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,pk||(pk=t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.42028 4.82804C1.42028 5.22014 1.10221 5.53825 0.710142 5.53825C0.318078 5.53825 0 5.22014 0 4.82804V2.69216C0 1.20767 1.20757 0 2.69193 0H4.87323C5.26529 0 5.58337 0.318104 5.58337 0.710201C5.58337 1.1023 5.26529 1.4204 4.87323 1.4204H2.69193C1.99071 1.4204 1.42028 1.99087 1.42028 2.69216V4.82804ZM13.3081 0H11.1268C10.7347 0 10.4167 0.318104 10.4167 0.710201C10.4167 1.1023 10.7347 1.4204 11.1268 1.4204H13.3081C14.0093 1.4204 14.5798 1.99087 14.5798 2.69216V4.82804C14.5798 5.22014 14.8978 5.53825 15.2899 5.53825C15.682 5.53825 16 5.22014 16 4.82804V2.69216C16 1.20767 14.7925 0 13.3081 0ZM15.2899 10.4614C14.8978 10.4614 14.5798 10.7795 14.5798 11.1716V13.3078C14.5798 14.0091 14.0093 14.5796 13.3081 14.5796H11.1268C10.7347 14.5796 10.4167 14.8977 10.4167 15.2898C10.4167 15.6819 10.7347 16 11.1268 16H13.3081C14.7925 16 16 14.7923 16 13.3078V11.1716C16 10.7795 15.682 10.4614 15.2899 10.4614ZM4.87323 14.5796H2.69193C1.99071 14.5796 1.42028 14.0091 1.42028 13.3078V11.1716C1.42028 10.7795 1.10221 10.4614 0.710142 10.4614C0.318078 10.4614 0 10.7792 0 11.1716V13.3078C0 14.7923 1.20757 16 2.69193 16H4.87323C5.26529 16 5.58337 15.6819 5.58337 15.2898C5.58337 14.8977 5.26529 14.5796 4.87323 14.5796ZM12.6019 12.6029C12.4476 12.7572 12.2425 12.8421 12.0242 12.8421L12.0245 12.8418C11.8062 12.8418 11.6011 12.7569 11.4468 12.6026L10.2604 11.4161C9.59218 11.8613 8.81663 12.0952 8.00047 12.0952C6.90685 12.0952 5.87863 11.6694 5.1054 10.8961C4.33217 10.1228 3.90641 9.09453 3.90641 8.00082C3.90641 6.90711 4.33217 5.87881 5.1054 5.10552C5.87863 4.33222 6.90685 3.90643 8.00047 3.90643C9.09408 3.90643 10.1223 4.33222 10.8955 5.10552C11.6688 5.87881 12.0945 6.90711 12.0945 8.00082C12.0945 8.81706 11.8607 9.59266 11.4154 10.2612L12.6019 11.4478C12.9203 11.7662 12.9203 12.2845 12.6019 12.6029ZM9.73685 9.73702C9.75171 9.72248 9.76723 9.70795 9.78342 9.69407C10.2201 9.23426 10.4605 8.63373 10.4605 8.00082C10.4605 6.64418 9.35667 5.54023 8.00014 5.54023C6.6436 5.54023 5.53974 6.64418 5.53974 8.00082C5.53974 9.35747 6.64327 10.4614 8.00014 10.4614C8.63299 10.4614 9.23347 10.2213 9.69325 9.78425C9.70745 9.76774 9.72198 9.75188 9.73685 9.73702Z",fill:"white"})))}const yk=t.forwardRef(mk);n.p;function vk(e){let{experienceVisualSearchBlobs:n}=e;const r=Er(),{settings:i}=Dr((e=>e)),[o,a]=(0,t.useState)(!1),s=(0,t.useRef)(null);let l=(0,t.useRef)(null);const u=ke(),{singleImageSearch:c}=Us();(0,t.useEffect)((()=>{if(document.body.getBoundingClientRect().width>=776)return o?null!==l&&void 0!==l&&l.current&&(clearInterval(null===l||void 0===l?void 0:l.current),null!==s&&void 0!==s&&s.current&&!s.current.classList.contains("hover")&&s.current.classList.toggle("hover")):l.current=setInterval((()=>{null!==s&&void 0!==s&&s.current&&s.current.classList.toggle("hover")}),3e3),()=>{null!==l&&void 0!==l&&l.current&&clearInterval(null===l||void 0===l?void 0:l.current)}}),[o]);const d=e=>{a(e),e?document.body.classList.add("overflow-hidden"):document.body.classList.remove("overflow-hidden")};return(0,La.jsxs)(La.Fragment,{children:[(0,La.jsxs)("div",{ref:s,className:"experience-visual-button",onClick:()=>d(!0),children:[(0,La.jsx)("span",{}),(0,La.jsx)(yk,{})]}),o&&(0,la.createPortal)((0,La.jsx)("div",{className:"custom-modal",onClick:e=>{e.stopPropagation(),d(!1)},children:(0,La.jsxs)("div",{className:"custom-modal-body",onClick:e=>{e.stopPropagation()},children:[(0,La.jsx)(BM.A,{style:{fontSize:24,color:"#55566B"},className:"close-icon",onClick:e=>{e.stopPropagation(),d(!1)}}),(0,La.jsx)("div",{className:"custom-modal-body-title",children:"Experience Visual Search"}),(0,La.jsx)("div",{className:"custom-modal-body-subtitle",children:"Start your visual search by selecting an image below."}),(0,La.jsx)("div",{className:"custom-modal-body-content experience-visual-search-images",children:new Array(4).fill(1).map(((e,t)=>{let o;return t<=n.length-1&&(o=URL.createObjectURL(n[t])),(0,La.jsxs)("div",{className:"experience-visual-search-image-container",onClick:()=>{o&&(d(!1),(async e=>{r(gr(!0)),r($n()),c({image:e,settings:i}).then((()=>{r(gr(!1))})),u.push("/result")})(o))},children:[(0,La.jsx)("div",{className:"experience-visual-search-image ".concat(o?"":"animate-pulse bg-gray-200"),style:{backgroundImage:"url(".concat(o,")")}}),o&&(0,La.jsx)("div",{className:"box-icon-modal",children:(0,La.jsx)(al.Icon,{name:"search_image",width:16,height:16,color:"#AAABB5"})})]},t)}))})]})}),document.body)]})}const bk=(0,t.memo)(vk);function xk(e){return xk="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},xk(e)}var wk=["page"];function Mk(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==xk(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==xk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===xk(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sk(e){return function(e){if(Array.isArray(e))return jk(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return jk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jk(e,t)}(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 jk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Nk(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ck(e,t,n){var r=vi(e,t,n,"page",1);return"string"===typeof r?parseInt(r,10):r}function Ak(e){var t=e||{};t.page;return Nk(t,wk)}function Tk(e){return Object.keys(e).map(Number).sort((function(e,t){return e-t})).reduce((function(t,n){return t.concat(e[n])}),[])}const Ek=li({displayName:"AlgoliaInfiniteHits",$$type:"ais.infiniteHits",getProvidedProps:function(e,t,n){var r=this,i=pi(n,{ais:e.contextValue,multiIndexContext:e.indexContextValue});if(!i)return{hits:[],hasPrevious:!1,hasMore:!1,refine:function(){},refinePrevious:function(){},refineNext:function(){}};var o=i.page,a=i.hits,s=i.hitsPerPage,l=i.nbPages,u=i._state;this._cache=e.cache?e.cache:this._cache||function(){var e=void 0,t=void 0;return{read:function(n){var r=n.state;return Or()(t,Ak(r))?e:null},write:function(n){var r=n.state,i=n.hits;t=Ak(r),e=i}}}();var c=this._cache.read({state:u})||{},d=function(e,t,n){return e.map((function(e,r){return Fr(Fr({},e),{},{__position:t*n+r+1})}))}(a,s,o),f=function(e,t){return t?e.map((function(e){return Fr(Fr({},e),{},{__queryID:t})})):e}(d,i.queryID);c[o]=f,this._cache.write({state:u,hits:c});var h=Math.min.apply(Math,Sk(Object.keys(c).map(Number))),p=Math.max.apply(Math,Sk(Object.keys(c).map(Number))),g=h>0,m=p<l-1;return{hits:Tk(c),hasPrevious:g,hasMore:m,refinePrevious:function(e){return r.refine(e,h-1)},refineNext:function(e){return r.refine(e,p+1)}}},getSearchParameters:function(e,t,n){return e.setQueryParameters({page:Ck(t,n,{ais:t.contextValue,multiIndexContext:t.indexContextValue})-1})},refine:function(e,t,n,r){return mi(t,Mk({},"page",r+1),{ais:e.contextValue,multiIndexContext:e.indexContextValue},!1)}});const Dk=function(e){let{experienceVisualSearchBlobs:n}=e;const{settings:r}=Dr((e=>e)),[i,o]=(0,t.useState)(!1),{apiKey:a,appId:s,indexName:l}=r.algolia;Fw()(s,a).initIndex(l);const u=Ek((e=>{let{hits:t}=e;return(0,La.jsx)("div",{})}));return(0,La.jsxs)("div",{className:"box-content-main ".concat(i?"loading":""," hidden desktop:flex"),children:[(0,La.jsxs)("div",{className:"box-content_top",style:{position:"relative"},children:[r.headerText&&(0,La.jsx)("div",{className:"fw-700 text-f32 text-dark2",style:{position:"absolute",bottom:"49px"},children:(0,La.jsx)("h1",{children:r.headerText})}),(0,La.jsxs)("div",{className:"wrap-input-search",children:[(0,La.jsx)("div",{style:{display:"none"},children:(0,La.jsx)(u,{})}),(0,La.jsx)(Yx,{})]})]}),(0,La.jsxs)("div",{className:"box-content_bottom",children:[(0,La.jsx)(hk,{acceptTypes:["image/*"],isLoading:i,onChangeLoading:e=>{o(e)}}),r.experienceVisualSearch?(0,La.jsx)(bk,{experienceVisualSearchBlobs:n}):""]})]})};const kk=function(e){let{experienceVisualSearchBlobs:n}=e;const{settings:r}=Dr((e=>e)),[i,o]=(0,t.useState)(!1);return(0,La.jsxs)("div",{style:{flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},className:"flex desktop:hidden",children:[(0,La.jsx)("div",{className:"take-photo",children:(0,La.jsx)("div",{className:"take-photo-wrapper",style:{background:"linear-gradient(90deg, #55566B 0%, #2B2C46 100%)"},children:(0,La.jsx)("div",{className:"outer",onClick:()=>{o(!i)},children:(0,La.jsx)("div",{className:"inner",children:(0,La.jsx)(al.Icon,{name:"camera",color:"#2B2C46",width:121,height:96})})})})}),(0,La.jsx)("div",{className:"box-screenshot-camera",children:(0,La.jsx)(ll,{show:i,onClose:()=>{o(!i)}})}),r.experienceVisualSearch?(0,La.jsx)(bk,{experienceVisualSearchBlobs:n}):""]})};const Ok=function(){const e=Dr((e=>e.settings.experienceVisualSearch)),n=Dr((e=>e.settings.experienceVisualSearchImages)),[r,i]=(0,t.useState)([]);return(0,t.useEffect)((()=>{(async()=>{if(e&&null!==n&&void 0!==n&&n.length){const e=null===n||void 0===n?void 0:n.slice(0,Math.min(null===n||void 0===n?void 0:n.length,4));try{const t=await Promise.all(e.map((e=>(async e=>{const t=await fetch(e,{cache:"force-cache"});return await t.blob()})(e))));i(t)}catch(t){console.error("Error fetching images:",t)}}})()}),[e,n]),(0,La.jsxs)(La.Fragment,{children:[(0,La.jsx)(kk,{experienceVisualSearchBlobs:r}),(0,La.jsx)(Dk,{experienceVisualSearchBlobs:r})]})};function Ik(){return(0,La.jsx)(Ee,{children:(0,La.jsxs)(Ee,{children:[(0,La.jsx)(Se,{path:"/login",exact:!0,component:ck}),(0,La.jsx)(Se,{path:"/logout",exact:!0,component:dk}),(0,La.jsxs)(PM,{children:[(0,La.jsx)(uk,{exact:!0,strict:!0,path:"/",component:Ok}),(0,La.jsx)(uk,{exact:!0,strict:!0,path:"/result",component:sk})]})]})})}const _k=(0,t.memo)(Ik);var Pk=n(3914);const Lk=()=>{const e=(0,Qe.useMediaQuery)({query:"(max-width: 776px)"});return(0,La.jsx)(EE,{containerStyle:e?{bottom:80}:{top:60},position:e?"bottom-center":"top-right",children:e=>(0,La.jsx)(CE,{toast:e,style:{padding:0,borderRadius:0},children:t=>{let{icon:n}=t;return(0,La.jsxs)(La.Fragment,{children:[(0,La.jsx)("span",{style:{width:5,height:"100%",background:"success"===e.type?"#61d345":"transparent",marginRight:7}}),(0,La.jsxs)("span",{style:{padding:15,display:"inline-flex"},children:[n,(0,La.jsxs)("span",{style:{fontSize:15,fontWeight:300,margin:"0 10px"},children:[" ",GT(e.message,e)]}),"loading"!==e.type&&(0,La.jsx)("span",{style:{display:"flex",alignItems:"center"},children:(0,La.jsx)(BM.A,{fontSize:"small",style:{cursor:"pointer",marginLeft:10},onClick:()=>DE.dismiss(e.id)})})]})]})}})})},zk=e=>{let{children:t}=e;const n=Dr((e=>e.settings));return n.auth0.enabled?(0,La.jsx)(ia,{domain:n.auth0.domain||"",clientId:n.auth0.clientId||"",authorizationParams:{redirect_uri:window.location.origin},children:t}):(0,La.jsx)(La.Fragment,{children:t})};document.title=window.location.host;let Rk=(0,Pk.A)({overrides:{MuiTooltip:{arrow:{color:"black"},tooltip:{backgroundColor:"black"}}}});e.createRoot(document.getElementById("root")).render((0,La.jsxs)(t.Fragment,{children:[(0,La.jsx)(Lk,{}),(0,La.jsx)(M,{store:Tr,children:(0,La.jsx)(zk,{children:(0,La.jsx)(O,{theme:Rk,children:(0,La.jsx)(Ie,{children:(0,La.jsx)(_k,{})})})})})]}))})()})();
3
+ //# sourceMappingURL=main.51350b85.js.map